Commit | Line | Data |
---|---|---|
100b3cbb GM |
1 | 2000-03-05 Gerd Moellmann <gerd@gnu.org> |
2 | ||
50df5e5a GM |
3 | * Makefile.in (tags): Include ../lwlib/TAGS in TAGS. |
4 | ||
5 | * xfns.c (QCdata): Moved to xdisp.c. | |
6 | ||
7 | * xdisp.c (QCdata): Moved here from xfns.c. | |
8 | (syms_of_xdisp): Initialize QCdata. | |
9 | ||
10 | * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define. | |
11 | ||
12 | * window.c (coordinates_in_window): Use | |
13 | FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of | |
14 | FRAME_INTERNAL_BORDER_WIDTH. | |
15 | ||
100b3cbb GM |
16 | * xdisp.c (try_window_id): Recompute unchanged information if |
17 | it is invalid. | |
18 | ||
19 | * xterm.c (x_term_init): Create a colormap if not using the | |
20 | default visual. | |
21 | ||
22 | * xterm.h (select_visual): Change prototype. | |
23 | ||
24 | * xfns.c (select_visual): Rewritten. Recognize user-specified | |
25 | visual classes. | |
26 | (visual_classes): New variable. | |
27 | ||
64d739c4 GM |
28 | 2000-03-04 Gerd Moellmann <gerd@gnu.org> |
29 | ||
30 | * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color) | |
31 | (lookup_pixel_color, x_laplace, x_build_heuristic_mask) | |
32 | (png_load): Access colormap of frame using FRAME_X_COLORMAP. | |
33 | (x_decode_color): Don't handle allocation of white and black | |
34 | specially. | |
35 | (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and | |
36 | XtNcolormap resources. | |
37 | (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow. | |
38 | (Fx_create_frame): Initialize color members of x_output structure. | |
39 | (xpm_load): Pass colormap to XPM lib. | |
40 | ||
41 | * xfaces.c (x_free_colors): Access colormap of frame using | |
42 | FRAME_X_COLORMAP. Be paranoid about freeing black and white | |
43 | when default colormap is used. | |
44 | ||
45 | * xterm.c (x_term_init): Set Colormap member of x_display_info | |
46 | structure. Copy colormap if resource `privateColormap' is | |
47 | specified (PseudoColor only). | |
48 | (x_setup_relief_color): Access colormap of frame using | |
49 | FRAME_X_COLORMAP. | |
50 | ||
51 | * xterm.h (struct x_display_info): Add Colormap member `cmap'. | |
52 | (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros. | |
53 | ||
c3cee013 JR |
54 | 2000-03-04 Jason Rumney <jasonr@gnu.org> |
55 | ||
56 | * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or | |
57 | other non-platform-specific equivalents. | |
64d739c4 | 58 | [WINDOWSNT]: Include w32term.h, fontset.h and define X |
c3cee013 JR |
59 | specific functions and macros as their w32 equivalents where |
60 | non-platform-specifics are not available. | |
61 | [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM. | |
62 | (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions. | |
63 | (clear_font_table) [WINDOWSNT]: Call w32_unload_font. | |
64 | (frame_update_line_height): Use macros to access f->output_data. | |
65 | (defined_color): Remove FIXME comments; fixed. | |
66 | (x_face_list_fonts, prepare_face_for_display): Put X specifics | |
67 | into #ifdef blocks. Add WINDOWSNT blocks. | |
68 | (Fx_list_fonts): Use macros for accessing font data. | |
69 | (set_lface_from_font_name): Different default fonts for X and | |
70 | WINDOWSNT. | |
71 | (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as | |
72 | scalable for backward compatibility. | |
64d739c4 | 73 | (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT. |
c3cee013 JR |
74 | (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default. |
75 | ||
64d739c4 | 76 | * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of |
c3cee013 JR |
77 | syms_of_w32faces. |
78 | ||
79 | * makefile.nt (w32faces.obj): Remove. | |
80 | (xfaces.obj): Add. | |
81 | ||
807cc41c JR |
82 | 2000-03-03 Jason Rumney <jasonr@gnu.org> |
83 | ||
84 | * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with | |
85 | correct parameters. | |
86 | ||
0007072a KR |
87 | 2000-03-03 Ken Raeburn <raeburn@gnu.org> |
88 | ||
89 | * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide | |
90 | standard ELF definitions here if the system header does not. | |
91 | ||
71a6ba55 GM |
92 | 2000-03-03 Gerd Moellmann <gerd@gnu.org> |
93 | ||
94 | * xterm.c (PER_CHAR_METRIC): Removed. | |
95 | (x_per_char_metric_1, x_default_char): New functions. | |
96 | (x_per_char_metric): If font's default char is invalid, return | |
97 | metrics of a suitably chosen usable default char. | |
98 | (x_draw_glyph_string_foreground): If font has an invalid default | |
64d739c4 GM |
99 | char, replace occurrences of unprintable chars with a suitably |
100 | chosen usable default char. | |
71a6ba55 | 101 | |
900fa1f1 GM |
102 | 2000-03-02 Gerd Moellmann <gerd@gnu.org> |
103 | ||
42f55fe0 GM |
104 | * xterm.c (note_mouse_highlight): Return quickly if frame's |
105 | glyph matrices have been freed. | |
106 | ||
107 | * dispnew.c (free_glyphs): Block input while freeing matrices. | |
108 | ||
900fa1f1 GM |
109 | * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors. |
110 | ||
111 | * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use | |
112 | x_free_colors. | |
113 | ||
114 | * dispextern.h (x_free_colors): Add prototype. | |
115 | ||
116 | * xfaces.c (x_free_colors): New function. | |
117 | (unload_color, free_face_colors): Use it. | |
118 | ||
2f950292 EZ |
119 | 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il> |
120 | ||
121 | * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero. | |
122 | ||
123 | * window.c [MSDOS]: Include msdos.h. | |
124 | ||
54d04320 DL |
125 | 2000-03-02 Dave Love <fx@gnu.org> |
126 | ||
127 | * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH. | |
128 | ||
129 | * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't | |
130 | set C_OPTIMIZE_SWITCH for gcc. | |
131 | ||
0ba93ac4 KH |
132 | 2000-03-02 Kenichi Handa <handa@etl.go.jp> |
133 | ||
134 | * coding.c (coding_save_composition): Be sure to allocate | |
135 | composition data area in coding even if there's no composition in | |
136 | the current run. | |
137 | ||
a2bc11d4 JR |
138 | 2000-03-01 Jason Rumney <jasonr@gnu.org> |
139 | ||
140 | * w32term.c: Equivalent changes to those made to xterm.c on | |
141 | 2000-02-25 and 2000-02-24. | |
142 | ||
143 | * w32fns.c: Equivalent changes to those made to xfns.c on | |
144 | 2000-02-25 and 2000-02-21. | |
145 | ||
146 | * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure | |
147 | correct line-end convention is followed. | |
148 | ||
149 | * w32menu.c [HAVE_BOXES]: Remove #undef. | |
150 | (single_keymap_panes): Remove code for simulating checkmarks. | |
151 | (single_menu_item): Remove notbuttons_ptr argument. Callers changed. | |
152 | Remove code for drawing simulated checkmarks. | |
153 | (w32_menu_show): make unibyte help string correctly. | |
154 | (add_menu_item): draw standard Windows checkmarks. Draw radio | |
155 | buttons as radio buttons if possible. | |
156 | ||
72d19d75 GM |
157 | 2000-03-01 Gerd Moellmann <gerd@gnu.org> |
158 | ||
2df636f4 GM |
159 | * sysdep.c (start_of_text): Don't define this function for NetBSD |
160 | with ELF. | |
161 | ||
162 | * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]: | |
163 | Don't define. | |
164 | (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o. | |
165 | (LINKER): Don't undef if __NetBSD__ is defined. | |
166 | ||
167 | * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define. | |
168 | ||
169 | * fileio.c [__NetBSD__]: Define `unix'. | |
170 | ||
72d19d75 GM |
171 | * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay. |
172 | ||
ed4d0512 GM |
173 | 2000-02-29 Gerd Moellmann <gerd@gnu.org> |
174 | ||
50b1039f GM |
175 | * atimer.c (start_atimer): Don't abort when timers are stopped. |
176 | (append_atimer_lists): New function. | |
177 | (cancel_atimer, stop_other_atimers, run_all_atimers): Handle | |
178 | arbitrary lists of stopped and running atimers. | |
179 | ||
ed4d0512 GM |
180 | * atimer.c (cancel_atimer): Handle canceling an atimer when |
181 | some timers are stopped. | |
182 | ||
183 | * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null | |
184 | after canceling it. | |
185 | ||
186 | * fns.c (maybe_resize_hash_table): Handle case of new size | |
187 | coming out as being the same as old size. | |
188 | ||
387023ee JR |
189 | 2000-02-27 Jason Rumney <jasonr@gnu.org> |
190 | ||
191 | * makefile.nt: Add atimer.h to dependencies. | |
192 | * w32.c (init_environment): Set Vw32_num_mouse_buttons here. | |
193 | * w32console.c: Only disable window system features for dispextern.h | |
194 | (initialize_w32_display): Build a display info for the console. | |
195 | * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17. | |
196 | * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN, | |
197 | WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice | |
198 | as 2 button mice. | |
199 | * w32gui.h (struct W32FontStruct): Revert last change after change | |
200 | to xdisp.c. | |
201 | * w32menu.c (single_submenu): Set up help string. | |
202 | [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip. | |
203 | (w32_dialog_show): Set up help string. | |
204 | * w32term.c (w32_display_info_for_display): Remove unused function. | |
205 | (w32_draw_bitmap): Use pre-built bitmaps. | |
206 | (w32_initialize_display_info): New function to initialize parts of | |
207 | display info that are common to both GUI and console frames. | |
208 | (w32_term_init): Use w32_initialize_display_info. Do not set | |
209 | Vw32_num_mouse_buttons here, as it is not called for console | |
210 | frames. Build bitmaps for indicating truncated lines etc. | |
211 | (x_delete_display): Destroy pre-built bitmaps. | |
212 | * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro. | |
213 | (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM. | |
214 | ||
4516715a DL |
215 | 2000-02-27 Dave Love <fx@gnu.org> |
216 | ||
217 | * lisp.h: Add a bunch of prototypes. | |
218 | ||
171ca836 KH |
219 | 2000-02-26 Kenichi Handa <handa@etl.go.jp> |
220 | ||
221 | * keyboard.c (read_char): Set `usec' correctly. | |
222 | ||
4013921d KH |
223 | 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp> |
224 | ||
225 | * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is | |
226 | `lambda', set reg[RRR] to the map index. | |
227 | (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set | |
228 | reg[RRR] to 0. Otherwise, set it to -1. | |
229 | ||
9244a058 GM |
230 | 2000-02-25 Gerd Moellmann <gerd@gnu.org> |
231 | ||
2df636f4 | 232 | * emacs.c (main): Remove code snippet commented out with `//'. |
9244a058 | 233 | |
f43d79c1 GM |
234 | 2000-02-25 Richard M. Stallman <rms@caffeine.ai.mit.edu> |
235 | ||
236 | * fileio.c (Ffile_symlink_p): If result starts with a `/' | |
237 | and contains a `:', prepend `/:'. | |
238 | ||
239 | * window.c (select_window_1): If selected_window is nil, | |
240 | don't "swap out" the buffer's point. | |
241 | (Fset_window_configuration): Set selected_window to nil | |
242 | before calling Fselect_window. | |
243 | (unshow_buffer): Don't set point in buffer from window's point | |
244 | if another more recently selected window also shows the buffer. | |
245 | ||
bed0c171 GM |
246 | 2000-02-25 Gerd Moellmann <gerd@gnu.org> |
247 | ||
449c3c52 GM |
248 | * keyboard.c (recursive_edit_1): Cancel busy-cursor. |
249 | ||
f5b58615 GM |
250 | * xfns.c (inhibit_busy_cursor, busy_count): Removed. |
251 | (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed. | |
252 | (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New | |
253 | variables. | |
254 | (DEFAULT_BUSY_CURSOR_DELAY): New define. | |
255 | (start_busy_cursor, cancel_busy_cursor, show_busy_cursor) | |
256 | (hide_busy_cursor): New functions. | |
257 | (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay. | |
258 | ||
259 | * minibuf.c (read_minibuf): Cancel busy-cursor. | |
260 | ||
261 | * keyboard.c (command_loop_1): Call start_busy_cursor before | |
262 | Fcommand_execute and cancel_busy_cursor after it. | |
263 | (timer_check): Remove busy-cursor code. | |
264 | (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy | |
265 | cursor timer. | |
266 | ||
267 | * process.c (wait_reading_process_input): Remove busy-cursor code. | |
268 | ||
269 | * eval.c (Fsignal): Call cancel_busy_cursor instead of | |
270 | Fx_hide_busy_cursor. | |
271 | ||
272 | * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor): | |
273 | Remove prototyoes. | |
274 | (start_busy_cursor, cancel_busy_cursor): Add prototypes. | |
275 | ||
276 | * lisp.h (Fx_hide_busy_cursor): Remove prototype. | |
277 | ||
278 | * xterm.c (XTread_socket): Remove busy-cursor code. | |
279 | ||
4eb8436f GM |
280 | * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function. |
281 | (build_frame_matrix_from_leaf_window): Put code handling | |
282 | glyph row's not being a slice of a frame row in #if 0. | |
283 | (sync_window_with_frame_matrix_rows): New function. | |
284 | (frame_row_to_window): New function. | |
285 | (mirror_line_dance): Handle copies between windows. | |
286 | ||
3cb65b0e GM |
287 | * lread.c (Fload): Use `xfree' instead of `free'. |
288 | (init_obarray): Use `xmalloc' instead of `malloc'. | |
289 | ||
bed0c171 GM |
290 | * window.c (Fset_window_buffer): Set WINDOW to the window |
291 | after decoding. | |
2add4349 GM |
292 | (coordinates_in_window): Take frame's internal border width |
293 | into account. | |
bed0c171 | 294 | |
42088c12 GM |
295 | 2000-02-24 Gerd Moellmann <gerd@gnu.org> |
296 | ||
297 | * xterm.c (x_display_and_set_cursor): Display cursor of | |
298 | non-selected windows depending on the setting of | |
299 | cursor_in_non_selected_windows. | |
300 | ||
301 | * xdisp.c (cursor_in_non_selected_windows): New variable. | |
302 | (syms_of_xdisp): DEFVAR_BOOL it. | |
303 | ||
d1e103b2 GM |
304 | 2000-02-23 Gerd Moellmann <gerd@gnu.org> |
305 | ||
723e779c GM |
306 | * data.c (Fstring_to_number): If number is greater than what |
307 | fits into an integer, return a float. | |
308 | ||
d1e103b2 GM |
309 | * eval.c (specbind): Remove references to |
310 | keyword_symbols_constant_flag. | |
311 | ||
312 | * data.c (keyword_symbols_constant_flag): Removed. | |
313 | (Fmakunbound, set_internal, syms_of_data): Remove references to | |
314 | keyword_symbols_constant_flag. | |
315 | ||
316 | * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag. | |
317 | ||
214f877f KH |
318 | 2000-02-23 Kenichi Handa <handa@etl.go.jp> |
319 | ||
320 | * syntax.c (multibyte_syntax_as_symbol): New variable. | |
321 | (syms_of_syntax): Declare it as a Lisp variable. | |
322 | (SYNTAX_WITH_MULTIBYTE_CHECK): New macro. | |
323 | (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are | |
324 | nonzero, treat all multibyte characters as symbol. | |
42088c12 | 325 | (init_syntax_once): Give syntax `word' to all multibyte |
214f877f KH |
326 | characters. |
327 | ||
130adcb7 EZ |
328 | 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il> |
329 | ||
3cb65b0e | 330 | * frame.c (Fdelete_frame): Don't let echo_area_window remain on |
130adcb7 EZ |
331 | a deleted frame. |
332 | ||
17cbbf95 GM |
333 | 2000-02-21 Gerd Moellmann <gerd@gnu.org> |
334 | ||
335 | * frame.c (Fmouse_position): GCPRO retval instead of x and y. | |
336 | ||
337 | * xfns.c (x_window_to_frame, x_any_window_to_frame) | |
338 | (x_non_menubar_window_to_frame): Check the busy-cursor window. | |
339 | ||
beb0bc36 DL |
340 | 2000-02-21 Dave Love <fx@gnu.org> |
341 | ||
342 | * frame.c (Vmouse_position_function): New variable. | |
343 | (Fmouse_position): Use it. | |
344 | (syms_of_frame): Install it. | |
345 | ||
346 | * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'. | |
347 | ||
1d92afcd GM |
348 | 2000-02-20 Gerd Moellmann <gerd@gnu.org> |
349 | ||
350 | * fileio.c (Finsert_file_contents): Unbind the binding of | |
351 | standard-output done by temp_output_buffer_setup. | |
329eed9f GM |
352 | |
353 | * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless | |
354 | Vmocklisp_arguments is nil. Inline Fcar and Fcdr. | |
355 | (specbind, unbind_to): Handle most common case of non-constant | |
356 | symbol with trivial value specially. | |
357 | ||
358 | * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case. | |
359 | ||
2d06696f RS |
360 | 2000-02-20 Richard M. Stallman <rms@caffeine.ai.mit.edu> |
361 | ||
362 | * data.c (Fmake_variable_buffer_local): Doc fix. | |
363 | Init found_for_buffer to 0. | |
364 | (Fmake_variable_frame_local): If the variable has already | |
365 | been buffer-local, set the check_frame field. | |
366 | ||
1d4311c3 EZ |
367 | 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il> |
368 | ||
369 | * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data | |
370 | produced for CODING_MODE_LAST_BLOCK requires. | |
371 | ||
2dc95ddd DL |
372 | 2000-02-18 Dave Love <fx@gnu.org> |
373 | ||
374 | * keyboard.c (echo_keystrokes): Remove declaration. | |
375 | (Vecho_keystrokes) New variable. | |
376 | (read_char, record_menu_key, read_key_sequence): Use it to allow | |
377 | use of float value. | |
378 | (syms_of_keyboard): Change Vecho_keystrokes declaration. | |
379 | ||
380 | * lread.c: Undef feature selection macros before defining. | |
381 | ||
f0930f35 GM |
382 | 2000-02-18 Gerd Moellmann <gerd@gnu.org> |
383 | ||
384 | * data.c (let_shadows_buffer_binding_p): Ignore specbindings | |
385 | for symbols other than the symbol in question. | |
386 | ||
e3d4de90 DL |
387 | 2000-02-17 Dave Love <fx@gnu.org> |
388 | ||
389 | * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization. | |
390 | ||
0b378936 GM |
391 | 2000-02-17 Gerd Moellmann <gerd@gnu.org> |
392 | ||
d621caf7 GM |
393 | * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef. |
394 | ||
0b378936 GM |
395 | * alloc.c (enum mem_type): Compile unconditionally. |
396 | ||
3b451f74 EZ |
397 | 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il> |
398 | ||
399 | * xfaces.c (tty_defined_color): Don't return faulire indication | |
400 | for unspecified-fg and unspecified-bg pseudo-colors. | |
401 | ||
10689a01 GM |
402 | 2000-02-17 Gerd Moellmann <gerd@gnu.org> |
403 | ||
1216f5e4 GM |
404 | * alloc.c (mark_object): Don't mark symbol names in pure space. |
405 | (gc_sweep): Don't unmark symbol names in pure space. | |
406 | ||
407 | * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS) | |
408 | (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES) | |
409 | [GC_MARK_STACK]: New defines. | |
410 | (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO) | |
411 | [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops. | |
412 | ||
413 | * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base. | |
414 | ||
415 | * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use | |
416 | allocate_buffer instead of xmalloc. | |
417 | ||
418 | * alloc.c (toplevel): Include setjmp.h. | |
419 | (PURE_POINTER_P): New define. | |
420 | (enum mem_type) [GC_MARK_STACK]: New enumeration. | |
421 | (Vdead) [GC_MARK_STACK]: New variable. | |
422 | (lisp_malloc): Add parameter TYPE, call mem_insert if | |
423 | GC_MARK_STACK is defined. | |
424 | (allocate_buffer): New function. | |
425 | (lisp_free) [GC_MARK_STACK]: Call mem_delete. | |
426 | (free_float) [GC_MARK_STACK]: Set type to Vdead. | |
427 | (free_cons) [GC_MARK_STACK]: Set car to Vdead. | |
428 | (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables. | |
429 | (MEM_NIL) [GC_MARK_STACK]: New define. | |
430 | (struct mem_node) [GC_MARK_STACK]: New structure. | |
431 | (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup) | |
432 | (mem_delete_fixup, mem_rotate_left, mem_rotate_right) | |
433 | (live_string_p, live_cons_p, live_symbol_p, live_float_p) | |
434 | (live_misc_p, live_vector_p, live_buffer_p, mark_memory) | |
435 | (mark_stack) [GC_MARK_STACK]: New functions. | |
436 | (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack. | |
437 | (clear_marks): Removed. | |
438 | (gc_sweep): Set free conses' car, free floats' type, free | |
439 | symbols' function to Vdead. Use lisp_free to free buffers. | |
440 | (init_alloc_once): Initialize Vdead. | |
441 | (survives_gc_p): Return non-zero for pure objects. | |
442 | ||
443 | * alloc.c: Add comments throughout the file. | |
444 | ||
2503c8b1 GM |
445 | * atimer.c (stop_other_atimers): Don't call cancel_atimer because |
446 | that unblocks alarms. | |
447 | ||
8389e1e2 GM |
448 | * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c, |
449 | emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h, | |
450 | Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'. | |
451 | ||
10689a01 GM |
452 | * frame.c (make_frame): Set frame initiallly to `garbaged'. |
453 | ||
bfc17d18 KH |
454 | 2000-02-17 Kenichi Handa <handa@etl.go.jp> |
455 | ||
4a09dee0 KH |
456 | * xdisp.c (decode_mode_spec_coding): Delete superfluous code to |
457 | avoid infinite error signaling. Allocate sufficient memory for | |
458 | eol_str in the case that eoltype is Lisp_Int. | |
bfc17d18 | 459 | |
2b927d02 SM |
460 | 2000-02-17 Stefan Monnier <monnier@cs.yale.edu> |
461 | ||
462 | * syntax.c (Fforward_comment): Undo the previous change, since cc-mode | |
463 | depends on the previous behavior. | |
464 | ||
b49cb764 GM |
465 | 2000-02-16 Gerd Moellmann <gerd@gnu.org> |
466 | ||
467 | * sysdep.c (vfork) [!HAVE_VFORK]: Removed. | |
468 | ||
99e95407 GM |
469 | 2000-02-15 Gerd Moellmann <gerd@gnu.org> |
470 | ||
471 | * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define. | |
472 | ||
473 | * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]: | |
b49cb764 | 474 | Workaround for FreeBSD bug. Clear output queue after EAGAIN in |
99e95407 GM |
475 | write(2). |
476 | ||
6ffd3cf7 RS |
477 | 2000-02-15 Richard M. Stallman <rms@gnu.org> |
478 | ||
479 | * data.c (set_internal): Don't make variable buffer-local | |
480 | if within a let-binding for the same buffer. | |
481 | (let_shadows_buffer_binding_p): New function. | |
482 | ||
483 | * eval.c (specbind): For buffer-local value, | |
484 | record the current buffer also. | |
485 | (unbind_to): Cope with that change. | |
486 | ||
cad53475 GM |
487 | 2000-02-15 Gerd Moellmann <gerd@gnu.org> |
488 | ||
489 | * window.c (Fsave_window_excursion): Doc fix. | |
490 | ||
1aa963c8 SM |
491 | 2000-02-15 Stefan Monnier <monnier@cs.yale.edu> |
492 | ||
493 | * syntax.c (back_comment): Make sure we only consider comment-starters | |
494 | of the relevant style and return -1 in case of a failure to find the | |
495 | beginning of the comment. | |
496 | (Fforward_comment): If back_comment fails, go back to the position just | |
497 | after the comment-end. | |
498 | (scan_lists): Add comment describing a very minor bug. | |
499 | ||
b9b84fd3 SM |
500 | 2000-02-14 Stefan Monnier <monnier@cs.yale.edu> |
501 | ||
502 | * minibuf.c (Ftry_completion, Fall_completions): Add a reference to | |
503 | `completion-regexp-list' in the docstring. | |
504 | ||
3a28db80 DL |
505 | 2000-02-14 Dave Love <fx@gnu.org> |
506 | ||
507 | * xfaces.c (tty_defined_color): Declare color_idx unsigned long. | |
508 | ||
fb4a568d SM |
509 | 2000-02-14 Stefan Monnier <monnier@cs.yale.edu> |
510 | ||
511 | * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS | |
512 | to Emacs' syntax. Also fix the comment about set/not-set meanings | |
513 | since Emacs syntax is not the value 0 any more. | |
514 | * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax | |
515 | since it's now part of RE_SYNTAX_EMACS. | |
516 | ||
1063ebb5 DL |
517 | 2000-02-12 Dave Love <fx@gnu.org> |
518 | ||
519 | * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on | |
520 | Alpha. | |
521 | ||
fb07a302 GM |
522 | 2000-02-12 Gerd Moellmann <gerd@gnu.org> |
523 | ||
524 | * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively. | |
525 | ||
aaf2320c DL |
526 | 2000-02-12 Dave Love <fx@gnu.org> |
527 | ||
528 | * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc. | |
529 | ||
530 | * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h: | |
fb07a302 GM |
531 | * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h: |
532 | * s/hpux.h: Don't define HAVE_VFORK. | |
aaf2320c DL |
533 | |
534 | * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST. | |
535 | ||
536 | * s/nextstep.h: Don't define HAVE_ALLOCA. | |
537 | ||
538 | * config.in: Add vfork bits. | |
539 | ||
eedf8bde GM |
540 | 2000-02-12 Gerd Moellmann <gerd@gnu.org> |
541 | ||
542 | * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register | |
543 | unwind function to undo the effect of stopping atimers. | |
544 | ||
545 | * keyboard.c (bind_polling_period): Stop all timers except | |
546 | poll_timer. | |
547 | ||
548 | * atimer.c (stopped_atimers): New variable. | |
549 | (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers): | |
550 | New functions. | |
551 | ||
552 | * atimer.h (stop_other_atimers, run_all_atimers) | |
553 | (unwind_stop_other_atimers): Add function prototypes. | |
554 | ||
555 | * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined. | |
556 | ||
8476c2f8 KR |
557 | 2000-02-11 Ken Raeburn <raeburn@gnu.org> |
558 | ||
559 | * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff | |
560 | library may depend on jpeg. | |
561 | (atimer.o): Depends on atimer.c. | |
562 | ||
0e85e4a3 KH |
563 | 2000-02-11 Kenichi Handa <handa@etl.go.jp> |
564 | ||
565 | * insdel.c (del_range_1): Call update_compositions. | |
566 | (del_range_both): Call update_compositions just once.. | |
567 | ||
97fa0cc8 DL |
568 | 2000-02-10 Dave Love <fx@gnu.org> |
569 | ||
570 | * xfns.c (create_frame_xic): Fix initialization of automatic | |
571 | aggregates for pcc. | |
572 | ||
25566a3c KH |
573 | 2000-02-09 Kenichi Handa <handa@etl.go.jp> |
574 | ||
575 | * ccl.c (CCL_MAKE_CHAR): New macro. | |
576 | (ccl_driver) <CCL_TranslateCharacter>: Check the validity of | |
577 | registers by CCL_MAKE_CHAR before calling translate_char. | |
578 | <CCL_TranslateCharacterConstTbl> Likewise. | |
579 | ||
69da54ba DL |
580 | 2000-02-08 Dave Love <fx@gnu.org> |
581 | ||
582 | * lread.c (__EXTENSIONS__): Define. | |
583 | ||
f7136ee8 GM |
584 | 2000-02-08 Gerd Moellmann <gerd@gnu.org> |
585 | ||
586 | * puresize.h (BASE_PURESIZE): Increase to 650000. | |
587 | ||
7768790b EZ |
588 | 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il> |
589 | ||
590 | * msdos.c (XMenuActivate): Turn off the cursor after displaying | |
591 | the help message. | |
592 | ||
38fd211b EZ |
593 | 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il> |
594 | ||
595 | * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue, | |
596 | md, mh, mb, mr, and me to the fake termcap entry. | |
597 | ||
66e4690f KR |
598 | 2000-02-06 Ken Raeburn <raeburn@gnu.org> |
599 | ||
600 | * sound.c (sound_cleanup): Don't call device close routine if the | |
601 | function pointer is null. | |
602 | ||
a75dfea0 AI |
603 | 2000-02-06 Andrew Innes <andrewi@gnu.org> |
604 | ||
605 | * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM, | |
606 | around image definitions and prototypes. | |
607 | (gamma_correct) [WINDOWSNT]: New prototype. | |
608 | ||
609 | * w32term.c (x_make_frame_visible): Replace call to | |
610 | input_poll_signal with poll_for_input. | |
611 | ||
612 | * window.c [WINDOWSNT]: Include w32term.h. | |
613 | ||
614 | * xdisp.c [WINDOWSNT]: Include w32term.h. | |
615 | ||
616 | * makefile.nt: Add dependencies on w32gui.h. | |
617 | (OBJ1): Include atimer.obj. | |
618 | ($(BLD)\atimer.obj): New dependency rule. | |
619 | ||
620 | * w32.c (sigmask): New function (does nothing). | |
621 | (sigunblock): Ditto. | |
622 | ||
623 | * frame.c [WINDOWSNT]: Include w32term.h. | |
624 | ||
625 | * w32gui.h (struct W32FontStruct): Add ascent and descent slots. | |
626 | ||
627 | * lread.c (syms_of_lread): Fix literal newlines. | |
628 | ||
629 | * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around | |
630 | the string constant limit (2048 bytes) in MSVC. | |
631 | (main): Ditto. | |
632 | ||
59ddecde GM |
633 | 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp> |
634 | ||
635 | * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit | |
636 | area. | |
637 | (x_display_cursor) [HAVE_X_I18N]: Don't set it here. | |
638 | (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't | |
639 | dispatch the event. | |
640 | ||
07590973 DL |
641 | 2000-02-04 Dave Love <fx@gnu.org> |
642 | ||
643 | * fileio.c: Remove some unused vars. | |
644 | (_GNU_SOURCE): Define (for euidaccess). | |
645 | ||
646 | * lread.c (_XOPEN_SOURCE): Declare (for ftello). | |
647 | ||
648 | * minibuf.c (read_minibuf_noninteractive): Remove undeclared | |
649 | gcpro1, gcpro2. | |
650 | (read_minibuf): Deal with allow_props correctly. | |
651 | ||
649351f9 EZ |
652 | 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il> |
653 | ||
654 | * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000. | |
655 | ||
66e4690f | 656 | 2000-02-03 Ken Raeburn <raeburn@gnu.org> |
f1b9c7c1 KR |
657 | |
658 | * search.c (compile_pattern): If a cache entry has a nil regexp, | |
659 | fill in that entry instead of clobbering a previously cached | |
660 | string regexp. | |
661 | ||
66e4690f | 662 | 2000-02-02 Ken Raeburn <raeburn@gnu.org> |
15c9cf81 KR |
663 | |
664 | * puresize.h (BASE_PURESIZE): Increase to 610000. | |
665 | ||
d240a249 GM |
666 | 2000-02-02 Gerd Moellmann <gerd@gnu.org> |
667 | ||
668 | * frame.c (Fframe_parameters): Add GCPRO because tty_color_name | |
669 | can GC. | |
670 | ||
ca91fb26 KH |
671 | 2000-02-02 Kenichi Handa <handa@etl.go.jp> |
672 | ||
25660570 KH |
673 | * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address |
674 | instead of incrementing ic directly. | |
675 | <CCL_WriteExprConst> Likewise. | |
676 | <ccl_set_expr>: Set ic to jump_address. | |
677 | ||
ca91fb26 KH |
678 | * fileio.c (e_write): Fix the handling of |
679 | CODING_FINISH_INSUFFICIENT_SRC. | |
680 | ||
2ede9689 DL |
681 | 2000-02-01 Dave Love <fx@gnu.org> |
682 | ||
683 | * editfns.c (Fpropertize): Doc fix. | |
684 | ||
685 | * process.c (Fstart_process): Doc fix. | |
686 | ||
687 | * eval.c: Fix various doc strings not to duplicate information | |
688 | from help-manyarg-func-alist. | |
689 | ||
690 | * window.c (Fset_window_margins): Don't make interactive. Doc | |
691 | fix. | |
692 | ||
693 | * doc.c (Vhelp_manyarg_func_alist): New variable. | |
694 | (Fdocumentation): Use it. | |
695 | (syms_of_doc): Define it. | |
696 | ||
b6680a0e GM |
697 | 2000-01-31 Gerd Moellmann <gerd@gnu.org> |
698 | ||
2cb750ba GM |
699 | * xterm.c (xim_open_dpy): Remove unused local variable. |
700 | ||
74e9213b GM |
701 | * emacs.c (USAGE): Use term `display options' instead of `X |
702 | options'. | |
703 | ||
704 | * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function. | |
705 | (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it. | |
706 | ||
b6680a0e GM |
707 | * fns.c (sweep_weak_table): New function. |
708 | (sweep_weak_hash_tables): Use it. Keep on marking until there | |
709 | is no more change. | |
710 | ||
994c5afe GM |
711 | 2000-01-30 Gerd Moellmann <gerd@gnu.org> |
712 | ||
713 | * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure | |
714 | that XTread_socket does not crash by trying to call XNoOp on a | |
715 | closed display. | |
716 | ||
f00276e3 JR |
717 | 2000-01-30 Jason Rumney <jasonr@gnu.org> |
718 | ||
719 | * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to): | |
720 | Change selected_frame to SELECTED_FRAME (). | |
721 | (w32_console_mouse_position): Remove #ifndef MULE from around | |
722 | `insist' parameter. | |
723 | ||
724 | * makefile.nt: Remove dosfns.obj. | |
725 | ||
726 | * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors. | |
727 | ||
728 | * w32fns.c (w32_defined_color): Check for valid frame before | |
729 | applying gamma correction. Eliminate dependency on frame elsewhere. | |
730 | (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH. | |
731 | (w32_to_x_font): Use resx and resy not height_in and width_in. | |
732 | (x_to_w32_font): Doc fix. | |
733 | (xlfd_strip_height): New function to strip and return font height. | |
734 | (w32_font_match): Compare height separately from rest of xlfd | |
735 | spec, using xlfd_strip_height. | |
736 | ||
737 | * w32term.c (w32_term_init): Swap resx and height_in, resy and | |
738 | width_in. Use w32_defined_color in place of defined_color. | |
739 | ||
740 | * w32faces.c: Merge more of DOS and X specifics in preparation for | |
741 | merge with xfaces.c. | |
742 | (defined_color): Remove FIXME comment. | |
743 | (tty_color_name): Provide w32-specific function. | |
744 | (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially. | |
745 | ||
746 | * w32console.c (turn_on_face, turn_off_face): Removed. | |
747 | (w32_face_attributes): New function. | |
748 | (Global_variables): Reduce scope where possible. | |
749 | (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as | |
750 | fill attribute. | |
751 | (hl_mode): Don't modify text attributes. | |
752 | (write_glyphs): Don't do anything if len <= 0. Use | |
753 | w32_face_attributes to get attributes for drawing. Write | |
754 | terminating codes using char_attr_normal. | |
755 | (reset_terminal_modes, set_terminal_modes): Turn off highlight. | |
756 | (update_begin, update_end): Likewise. | |
757 | (vga_stdcolor_name): New function. | |
758 | (initialize_w32_display): Remove char_attr_reverse and char_attr. | |
759 | (Fset_screen_color): Remove char_attr_reverse. | |
760 | ||
b08e8bb2 GM |
761 | 2000-01-29 Gerd Moellmann <gerd@gnu.org> |
762 | ||
763 | * xfns.c (xic_set_preeditarea): Take window parameter and | |
764 | window-relative pixel-positions. | |
765 | ||
766 | * xterm.c (x_display_cursor): Set XIC pre-edit area only if window | |
767 | is its frame's selected window. | |
768 | (xim_instantiate_callback): Likewise. | |
769 | ||
770 | * xfns.c (x_create_im): Removed. | |
771 | (DEFAULT_STYLE, DEFAULT_FONT): Removed. | |
772 | (supported_xim_styles): Renamed from supported_styles. | |
773 | (best_xim_style): Renamed from best_style. | |
774 | (create_frame_xic): Renamed from xic_create_frame. | |
775 | (free_frame_xic): Renamed from xic_destroy_frame. | |
776 | ||
777 | 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp> | |
778 | ||
779 | * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of | |
780 | our frames, call XFilterEvent with 2nd parameter `None'. | |
781 | (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString | |
782 | returning XBufferOverflow. | |
783 | (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status | |
784 | area. | |
785 | (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area. | |
786 | (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset. | |
787 | (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback) | |
788 | (xim_initialize, xim_close) | |
789 | [HAVE_X_I18N && HAVE_X11R6]: New functions. | |
790 | (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame. | |
791 | (x_term_init) [HAVE_X_I18N]: Call xim_initialize. | |
792 | (x_delete_display) [HAVE_X_I18N]: Call xim_close. | |
793 | ||
794 | * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim' | |
795 | and `xim_styles'. | |
796 | (struct x_output) [HAVE_X_I18N]: Remove member `xim', add | |
797 | `xic_style' and `xic_xfs'. | |
798 | (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES) | |
799 | (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros. | |
800 | (FRAME_XIM): Removed. | |
801 | ||
802 | * xfns.c (supported_styles): New variable. | |
803 | (DEFAULT_STYLE, DEFAULT_FONT): New macros | |
804 | (xic_create_xfontset, best_style, xic_create_frame) | |
805 | (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea) | |
806 | (xic_set_xfontset): New functions. | |
807 | ||
142e109c DL |
808 | 2000-01-28 Dave Love <fx@gnu.org> |
809 | ||
810 | * s/irix6-5.h: Revert last change after change to irix5-0.h. | |
811 | ||
812 | * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0. | |
813 | ||
b02786f9 GM |
814 | 2000-01-28 Gerd Moellmann <gerd@gnu.org> |
815 | ||
d060bc9f GM |
816 | * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode |
817 | for *scratch* if it already existed. | |
818 | ||
b02786f9 GM |
819 | * emacs.c (USAGE): New macro. |
820 | (main): Use it to display usage information. | |
821 | ||
2c52d7e4 EZ |
822 | 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il> |
823 | ||
824 | Support for the menu-help feature: | |
825 | ||
826 | * msdos.h: Change prototypes of XMenuAddSelection and | |
827 | XMenuActivate. | |
828 | ||
829 | * msdos.c (IT_clear_end_of_line): Print the extent of the cleared | |
830 | part of the line to the termscript file. | |
831 | (IT_clear_to_end): Clear the entire line, not just its beginning. | |
832 | (menu_help_message, prev_menu_help_message): New variables. | |
833 | (IT_menu_make_room): Make room for the help_text member. | |
834 | (IT_menu_display): New argument disp_help; all callers changed. | |
835 | If disp_help is non-zero, store the help text of the active menu | |
836 | item in menu_help_message. | |
837 | (XMenuAddPane): Initialize the help_text member to NULL. | |
838 | (XMenuAddSelection): New argument help_text. Store it in the | |
839 | XMenu structure. | |
840 | (XMenuActivate): New argument help_callback. If the value of | |
841 | menu_help_message has changed since the last time, display the | |
842 | menu help message text while waiting for the mouse to move. Clear | |
843 | the echo area before exiting. | |
844 | (XMenuDestroy): Free the help_text member. | |
845 | ||
ffe0bcd1 GM |
846 | 2000-01-27 Gerd Moellmann <gerd@gnu.org> |
847 | ||
848 | * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to | |
849 | XMenuAddSelection. Pass help callback to XMenuActivate. | |
850 | (menu_help_callback) [!USE_X_TOOLKIT]: New function. | |
851 | ||
50dbd23f EZ |
852 | 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il> |
853 | ||
854 | * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS | |
855 | and EMACS_SET_USECS. | |
856 | ||
f5941bf8 GM |
857 | 2000-01-26 Dave Love <fx@gnu.org> |
858 | ||
6c67ddee DL |
859 | * editfns.c (Fchar_after, Fchar_before): Doc fix. |
860 | ||
f5941bf8 GM |
861 | * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where |
862 | an error may be signalled. | |
863 | ||
9e49c990 GM |
864 | 2000-01-26 Gerd Moellmann <gerd@gnu.org> |
865 | ||
fc3cb460 GM |
866 | * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef |
867 | LD_SWITCH_SYSTEM inherited from irix5-0.h. | |
868 | ||
9e49c990 GM |
869 | * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo. |
870 | ||
d0c037d8 GM |
871 | 2000-01-25 Gerd Moellmann <gerd@gnu.org> |
872 | ||
873 | * charset.c (Fstring): If there is a multibyte char among | |
874 | the args, always return a multibyte string. | |
875 | ||
e12489f9 GM |
876 | 2000-01-25 Gerd Moellmann <gerd@gnu.org> |
877 | ||
878 | * sysdep.c (sys_select): Turn atimers off and on instead of | |
879 | recording and restoring old alarm handler | |
880 | ||
881 | * process.c (toplevel): Include atimer.h. | |
882 | (create_process_1): Rewritten. | |
883 | (create_process): Use atimers instead of alarm. | |
884 | (wait_reading_process_input) [hpux]: Turn atimers off instead | |
885 | of turning off SIGALRM. | |
886 | (wait_reading_process_input): Turn off atimers instead off | |
887 | calling stop_polling. | |
888 | ||
889 | * emacs.c (main): Call init_atimer. | |
890 | ||
891 | * keyboard.c (toplevel): Include systime.h and atimer.h. | |
892 | (polling_for_input): Removed because unused. | |
893 | (input_poll_signal) [POLL_FOR_INPUT]: Removed. | |
894 | (poll_timer): New variable. | |
895 | (poll_for_input, poll_for_input_1): New functions. | |
896 | (start_polling, stop_polling): Rewritten. | |
897 | ||
898 | * keyboard.h (polling_for_input): Removed. | |
899 | ||
900 | * atimer.h, atimer.c: New files. | |
901 | ||
902 | * Makefile.in (obj): Add atimer.o. | |
903 | (atimer.o): New target. | |
904 | ||
905 | * blockinput.h (pending_atimers): Add extern declaration. | |
906 | (UNBLOCK_INPUT): Rewritten. Handle pending atimers. | |
907 | ||
908 | * lisp.h (popup_activated_flag): Add extern declaration. | |
909 | ||
910 | * xmenu.c (popup_activated_flag): Make externally visible. | |
911 | (popup_activate_callback) [USE_MOTIF]: Increment | |
912 | popup_activated_flag. | |
913 | (popup_deactivate_callback) [USE_MOTIF]: Decrement it. | |
914 | ||
915 | * xterm.c (toplevel): Include atimer.h. | |
916 | (toolkit_scroll_bar_interaction): New variable. | |
917 | (Fxt_process_timeouts): Removed. | |
918 | (x_process_timeouts): New function. | |
919 | (xt_action_hook): Clear toolkit_scroll_bar_interaction. | |
920 | (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction. | |
921 | (x_make_frame_visible): Call poll_for_input_1 instead of | |
922 | input_poll_signal. Don't call alarm. | |
923 | (x_initialize): Install timer calling x_process_timeouts. | |
924 | ||
1e5279b9 DL |
925 | 2000-01-24 Dave Love <fx@gnu.org> |
926 | ||
6c67ddee | 927 | * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now. |
1e5279b9 DL |
928 | Don't use -cckr -- apparently not now necessary. |
929 | ||
edf6aeb8 EZ |
930 | 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il> |
931 | ||
932 | * msdos.c (IT_menu_display): Truncate long menu lines at the right | |
933 | screen boundary. | |
934 | ||
9badad41 JR |
935 | 2000-01-23 Jason Rumney <jasonr@gnu.org> |
936 | ||
937 | * w32fns.c (w32_defined_color): Apply gamma correction before | |
938 | trying to map to the palette. | |
939 | (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame | |
940 | to w32_clear_rect. | |
941 | ||
942 | * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc | |
943 | here. Callers changed to always pass real device context. | |
944 | (w32_draw_bitmap): Likewise. | |
945 | (w32_get_glyph_overhangs): Likewise. | |
946 | (w32_draw_box_rect): Make use of s->hdc rather than getting a new | |
947 | one. | |
948 | (w32_set_vertical_scroll_bar): Pass correct HWND parameters to | |
949 | pfnSetScrollInfo and SetScrollRange. | |
950 | (x_get_char_face_and_encoding): Don't turn iso8859-1 characters | |
951 | back into MULE characters after decoding them. | |
952 | (x_get_glyph_face_and_encoding): Likewise. | |
953 | (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when | |
954 | GetCharABCWidthsW fails, since this is defined on Windows 9x. | |
955 | (x_produce_glyphs): Calculate per char metrics for a character | |
956 | that we know exists in default font when font_not_found_p is true. | |
957 | ||
63bd786b JR |
958 | 2000-01-22 Jason Rumney <jasonr@gnu.org> |
959 | ||
960 | * makefile.nt (intervals.obj, composite.obj): New modules. | |
961 | (composite.h): Added as dependency where appropriate. | |
962 | ||
963 | * w32gui.h (XGCValue): New struct for emulating X GCs. | |
964 | ||
965 | * w32term.h (XCharStruct): New struct for emulating X. | |
966 | ||
967 | * w32console.c (turn_on_face, turn_off_face): New functions. | |
968 | (change_line_highlight): New prototype for new redisplay. | |
969 | (write_glyphs): Support multibyte text. Support faces. | |
970 | ||
971 | * w32faces.c: Complete rewrite for new redisplay based on new | |
972 | xfaces.c. | |
973 | ||
974 | * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame | |
975 | throughout. struct frame * in place of FRAME_PTR. | |
976 | Skeleton support for images, toolbars, tooltips from xfns.c. | |
977 | (Fx_create_frame): Use system default for default scroll bar | |
978 | width. | |
979 | (w32_get_arg): Renamed from x_get_arg. | |
980 | (Fx_file_dialog): New function. | |
981 | (w32_list_fonts): Check cache before asking system. | |
982 | (Vw32_enable_synthesized_fonts): New variable. | |
983 | (Vw32_enable_italics): Obsolete, removed. | |
984 | ||
985 | * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to): | |
986 | Use SELECTED_FRAME macro. | |
987 | ||
988 | * w32menu.c: Add skeleton support for help strings on menus. | |
989 | (add_menu_item): Native checkbox and radio support added, but not | |
990 | yet enabled due to bugs. | |
991 | (push_menu_item): Add parameters type, selection and help. | |
992 | Callers updated. | |
993 | Formatting changes to reduce unnecessary diffs with xmenu.c. | |
994 | ||
995 | * w32select.c (Fw32_set_clipboard_data): Update call to | |
996 | find_charset_in_str. | |
997 | ||
998 | * w32term.c: Complete rewrite for new redisplay based on new | |
999 | xterm.c with necessary sections merged back in from old w32term.c. | |
1000 | ||
6ffd3cf7 | 1001 | 2000-01-21 Richard M. Stallman <rms@gnu.org> |
b50c9214 RS |
1002 | |
1003 | * data.c (set_internal): Further fix in same criterion. | |
1004 | ||
6ffd3cf7 | 1005 | 2000-01-20 Richard M. Stallman <rms@gnu.org> |
8cc95642 RS |
1006 | |
1007 | * data.c (set_internal): Fix the criteria for whether | |
1008 | to swap out the old cached binding. | |
1009 | ||
60af03f1 DL |
1010 | 2000-01-19 Dave Love <fx@gnu.org> |
1011 | ||
1012 | * lread.c: (syms_of_lread) [user-init-file]: Doc change. | |
1013 | ||
f9be074f KH |
1014 | 2000-01-18 Kenichi Handa <handa@etl.go.jp> |
1015 | ||
1016 | * regex.c (re_compile_fastmap): While checking a range table for | |
1017 | `charset', skip flag bits for a character class correctly. | |
1018 | ||
52b8dbf9 GM |
1019 | 2000-01-17 Gerd Moellmann <gerd@gnu.org> |
1020 | ||
d36100c9 GM |
1021 | * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC. |
1022 | ||
52b8dbf9 GM |
1023 | * xfns.c (x_window): Call lw_create_widget with new parameter |
1024 | list. | |
1025 | ||
1026 | * widget.c (EmacsFrameSetCharSize): Change size of children first | |
1027 | because of problems with main window geometry management under | |
1028 | Lesstif. | |
1029 | ||
1030 | * xmenu.c (enum menu_item_idx): New enumeration replacing defines | |
1031 | MENU_ITEMS_ITEM_.*. | |
1032 | (MENU_ITEMS_ITEM_HELP): New enumerator. | |
1033 | (push_menu_item): Add parameter HELP. Record help in menu_items. | |
1034 | (single_menu_item, single_submenu, list_of_items): Call | |
1035 | push_menu_item with new parameter. | |
1036 | (single_submenu): Set help string in widget value. | |
1037 | (menu_highlight_callback): New function. | |
1038 | (set_frame_menubar): Call lw_create_widget with new | |
1039 | parameter list. | |
1040 | (xmenu_show, xdialog_show): Ditto. | |
1041 | ||
3139018f GM |
1042 | 2000-01-13 Gerd Moellmann <gerd@gnu.org> |
1043 | ||
1044 | * sound.c (Fplay_sound): Improve doc string. | |
1045 | ||
83c8f461 RS |
1046 | 2000-01-11 Richard M. Stallman <rms@gnu.org> |
1047 | ||
1048 | * lisp.h (set_internal): Enter the new arg. | |
1049 | ||
1050 | * eval.c (specbind): Record buffer-local variables specially, | |
1051 | indicating which buffer's binding was saved. | |
1052 | (unbind_to): Restore buffer-local variables specially | |
1053 | in the proper buffer. | |
1054 | ||
1055 | * data.c (set_internal): New arg BUF. | |
1056 | ||
1057 | * eval.c (specbind, unbind_to): Pass new arg to set_internal. | |
1058 | * data.c (Fset): Pass new arg to set_internal. | |
1059 | * bytecode.c (Fbyte_code): Pass new arg to set_internal. | |
1060 | ||
1fab1775 GM |
1061 | 2000-01-11 Gerd Moellmann <gerd@gnu.org> |
1062 | ||
1063 | * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, | |
1064 | xprintsym. | |
1065 | ||
83c8f461 | 1066 | 2000-01-11 Richard M. Stallman <rms@gnu.org> |
6f59462e RS |
1067 | |
1068 | * minibuf.c (Ftry_completion): Doc fix. | |
1069 | ||
7a85e4df GM |
1070 | 2000-01-11 Gerd Moellmann <gerd@gnu.org> |
1071 | ||
1072 | * keyboard.c (Fclear_this_command_keys): Clear recent_keys | |
1073 | vector, too. | |
1074 | ||
a970dae4 AS |
1075 | 2000-01-11 Andreas Schwab <schwab@suse.de> |
1076 | ||
1077 | * coding.c (code_convert_region): Initialize total_skip. | |
1078 | ||
c65d14ee DL |
1079 | 2000-01-08 Dave Love <fx@gnu.org> |
1080 | ||
1081 | * eval.c (Fuser_variable_p): Check customizability too. | |
1082 | ||
834938d2 GM |
1083 | 2000-01-07 Gerd Moellmann <gerd@gnu.org> |
1084 | ||
1085 | * minibuf.c (Fcompleting_read): Doc fix. | |
1086 | ||
e0303cd6 GM |
1087 | 2000-01-05 Gerd Moellmann <gerd@gnu.org> |
1088 | ||
8a26744b GM |
1089 | * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and |
1090 | -L /usr/local/lib. | |
1091 | ||
e0303cd6 GM |
1092 | * xfns.c (x_create_im): New function to set IM and IC of a frame. |
1093 | Check that input style is supported before trying to create an | |
1094 | IC for it. | |
1095 | (x_window): Call x_create_im. | |
1096 | ||
2e471eb5 GM |
1097 | 2000-01-04 Gerd Moellmann <gerd@gnu.org> |
1098 | ||
560a7bd2 GM |
1099 | * xfns.c (current_gif_memory_src): New variable. |
1100 | (gif_load): Record the address of the current memory source | |
1101 | in current_gif_memory_src. | |
1102 | (gif_read_from_memory): Use current_gif_memory_src. | |
1103 | ||
f9ee84a3 GM |
1104 | * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give |
1105 | macros statement form. | |
1106 | ||
d1299cde GM |
1107 | * sound.c (struct sound): Renamed from struct sound_file. |
1108 | (struct sound): Add members `data' and `header_size'. | |
1109 | (enum sound_attr): Add SOUND_DATA. | |
1110 | (current_sound, current_sound_device): Variables renamed from | |
1111 | sound_file and sound_device. | |
1112 | (parse_sound): Parse :data. | |
1113 | (parse_sound): Handle sound data in strings. | |
1114 | (find_sound_type): Function renamed from find_sound_file_type. | |
1115 | (wav_init, au_init): Fail if sound's header_size is smaller than | |
1116 | needed header size. | |
1117 | (wav_play, au_play): Play sounds from string data. | |
1118 | ||
2e471eb5 GM |
1119 | * puresize.h (BASE_PURE_SIZE): Increase to 600000. |
1120 | ||
1121 | * lisp.h: Add prototype for allocate_string_data. | |
1122 | ||
1123 | * alloc.c (Fgarbage_collect): Return number of live and free | |
1124 | strings. | |
1125 | ||
1126 | * alloc.c (mark_buffer): Remove code in #if 0. | |
1127 | (gc_sweep): Ditto. | |
1128 | (UNMARK_BALANCE_INTERVALS): Give the macro statement form. | |
1129 | (strings_consed): New variable. | |
1130 | (allocate_string): Set it. | |
1131 | (syms_of_alloc): Add DEFVAR_INT for strings_consed. | |
1132 | (Fmemory_use_counts): Return strings_consed. Use Flist. | |
1133 | ||
1134 | * alloc.c: General cleanup in comments etc. Remove conditional | |
1135 | compilation for `standalone'. | |
1136 | ||
1137 | * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'. | |
1138 | ||
1139 | * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): | |
1140 | (GC_STRING_BYTES, GC_STRING_CHARS): New macros. | |
1141 | (DONT_COPY_FLAG): Removed. | |
1142 | (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros. | |
1143 | (struct sdata, struct sblock): New | |
1144 | (struct string_block): Rewritten. | |
1145 | (STRINGS_IN_STRING_BLOCK): New macro. | |
1146 | (oldest_sblock, current_sblock, total_strings, total_free_strings) | |
1147 | (large_sblocks, string_blocks, string_free_list): New variables. | |
1148 | (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros. | |
1149 | (init_strings): Rewritten. | |
1150 | (allocate_string, allocate_string_data, compact_small_strings) | |
1151 | (free_large_strings, sweep_strings): New functions. | |
1152 | (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE) | |
1153 | (struct string_block_head, current_string_block) | |
1154 | (first_string_block, large_string_blocks, STRING_FULLSIZE) | |
1155 | (STRING_PAD): Removed. | |
1156 | (make_uninit_multibyte_string, make_pure_string): Rewritten. | |
1157 | (Fgarbage_collect): Don't set mark bit in large strings. | |
1158 | (mark_object): Mark strings differently. Mark symbol names | |
1159 | differently. | |
1160 | (survives_gc_p): Test marked strings differently. | |
1161 | (gc_sweep): Sweep strings differently, unmark strings in | |
1162 | symbol names. | |
1163 | (compact_strings): Removed. | |
1164 | ||
42608ba8 EZ |
1165 | 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il> |
1166 | ||
1167 | * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and | |
1168 | Scolor_supported_p even if HAVE_X_WINDOWS is not defined. | |
1169 | ||
e0a09e1a KH |
1170 | 2000-01-04 Kenichi Handa <handa@etl.go.jp> |
1171 | ||
dd9f0750 KH |
1172 | * fileio.c (Finsert_file_contents): Signal error if visiting file |
1173 | in a non-empty buffer. | |
1174 | ||
3c0f3b15 | 1175 | * term.c (encode_terminal_code): Fix the previous change. |
e0a09e1a | 1176 | |
44cd3ae5 GM |
1177 | 2000-01-03 Gerd Moellmann <gerd@gnu.org> |
1178 | ||
1179 | * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to | |
1180 | Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p. | |
1181 | ||
1182 | * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU. | |
1183 | ||
c182a70f EZ |
1184 | 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il> |
1185 | ||
1186 | * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No | |
1187 | need to test for MSDOS frames. | |
1188 | ||
24480d5b EZ |
1189 | 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il> |
1190 | ||
1191 | * dosfns.c (unspecified_colors): Remove. | |
1192 | (msdos_stdcolor_idx): Use global variables unspecified_fg and | |
1193 | unspecified_bg. | |
1194 | (msdos_stdcolor_name): Return strings for unspecified fore- and | |
1195 | back-ground colors. | |
1196 | ||
1197 | * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove. | |
aaf2320c | 1198 | (syms_of_xfaces): Remove their staticpro's. |
24480d5b EZ |
1199 | (tty_color_name): Return Lisp strings for unspecified fore- and |
1200 | back-ground colors. | |
1201 | (Finternal_set_lisp_face_attribute): Remove the special treatment | |
1202 | for Qunspecified_{f,b}g. | |
1203 | (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp | |
1204 | string. | |
1205 | ||
047f434a GM |
1206 | 2000-01-03 Gerd Moellmann <gerd@gnu.org> |
1207 | ||
1208 | * xdisp.c (reseat_at_next_visible_line_start): Position before | |
1209 | newline only if ending up on a newline. | |
1210 | (next_element_from_ellipsis): Return success. Handle case of | |
1211 | displaying no ellipsis. Fix case of ellipsis defined in display | |
1212 | table. | |
1213 | (next_element_from_buffer): Return 0 if next_element_from_ellipsis | |
1214 | returns 0. | |
1215 | ||
d684c676 EZ |
1216 | 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il> |
1217 | ||
1218 | * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p. | |
1219 | (Fcolor_supported_p): Renamed from face-color-supported-p. | |
1220 | ||
5fe1d139 EZ |
1221 | 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il> |
1222 | ||
1223 | * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The | |
1224 | list of colors renamed to tty-defined-color-alist. | |
1225 | (tty_color_name): Pass the frame to tty-color-by-index. | |
1226 | (realize_tty_face): tty-color-alist is now a function which | |
1227 | accepts the frame as argument. | |
1228 | ||
1229 | * term.c (Ftty_display_color_p): Accept an optional argument | |
1230 | FRAME. | |
1231 | ||
816be8b8 EZ |
1232 | 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il> |
1233 | ||
1234 | * term.c (insert_glyphs): Pass glyph, not &glyph, to | |
1235 | encode_terminal_code. | |
1236 | ||
b635321e EZ |
1237 | 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il> |
1238 | ||
1239 | * dispnew.c (mode_line_string): Support termcap frames as well. | |
1240 | ||
9b784e96 GM |
1241 | 2000-01-01 Gerd Moellmann <gerd@gnu.org> |
1242 | ||
27189709 GM |
1243 | * syntax.c (Fforward_word): Undo previous change. |
1244 | ||
1245 | * editfns.c (Fconstrain_to_field): Don't constrain if | |
1246 | inhibit-field-text-motion is non-nil. | |
1247 | (Fline_beginning_position): Undo previous change. | |
1248 | (Fline_end_position): Ditto. | |
1249 | ||
1250 | * syntax.c (Fforward_word): Notice field boundaries only if | |
1251 | inhibit-field-text-motion is nil. | |
1252 | ||
1253 | * lisp.h: Add extern declaration for Vinhibit_field_text_motion. | |
1254 | ||
1255 | * editfns.c (Vinhibit_field_text_motion): New variable. | |
1256 | (inhibit-field-text-motion): New DEFVAR_LISP. | |
1257 | (Fline_beginning_position, Fline_end_position): Notice field | |
1258 | boundaries only if inhibit-field-text-motion is nil. | |
1259 | ||
45158a91 GM |
1260 | * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE. |
1261 | All calls adjusted. | |
1262 | (x_build_heuristic_mask): Likewise. | |
1263 | (xbm_load_image_from_file): Change error output. | |
1264 | (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load) | |
1265 | (gif_load, gs_load, x_kill_gs_process): Ditto. | |
1266 | ||
9b784e96 GM |
1267 | * xfns.c (gif_load): Avoid sign extension and thus out of bounds |
1268 | color indices when accessing raster pixels. | |
63cec32f GM |
1269 | (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only |
1270 | one of :file or :data. | |
1271 | (enum pbm_keyword_index): Add PBM_DATA. | |
1272 | (pbm_format): Add :data. | |
1273 | (pbm_image_p): Allow either :file or :data. | |
1274 | (pbm_read_file): New function. | |
1275 | (pbm_scan_number): Rewritten to read from string. | |
1276 | (pbm_load): Support :data. | |
9b784e96 | 1277 | |
5ad6a5fb GM |
1278 | 1999-12-31 Gerd Moellmann <gerd@gnu.org> |
1279 | ||
1280 | * xfns.c: New image functions adapted to Emacs conventions. | |
1281 | (png_load, tiff_load, jpeg_load, gif_load): Always GCPRO local | |
1282 | variable `file'. | |
1283 | ||
63448a4d WP |
1284 | 1999-12-31 William M. Perry <wmperry@aventail.com> |
1285 | ||
1286 | * xfns.c (jpeg_format): Added the :data keyword | |
1287 | (jpeg_image_p): JPEG is valid with :file _or_ :data | |
1288 | (jpeg_memory_src): Defined new JPEG image source to read from a | |
1289 | memory buffer. | |
1290 | (jpeg_load): Pay attention to the :data keyword if specified. | |
1291 | Instantiates a jpeg_memory_src instead of jpeg_stdio_src if | |
1292 | found. | |
1293 | (png_format): Added the :data keyword | |
1294 | (png_image_p): PNG is valid with :file _or_ :data | |
1295 | (png_read_from_memory): New PNG read function to read from a | |
1296 | memory buffer. | |
1297 | (png_load): Pay attention to the :data keyword if specified. Uses | |
1298 | png_set_read_fn() instead of png_init_io() if specified. | |
1299 | (tiff_format): Added the :data keyword for TIFF images. | |
1300 | (tiff_image_p): TIFF is valid with :file _or_ :data | |
1301 | (tiff_read_from_memory): Defined new TIFF I/O functions to read | |
1302 | from a memory buffer. | |
1303 | (tiff_load): Pay attention to the :data keyword if specified. | |
1304 | Uses TIFFClientOpen() instead of TIFFOpen() if specified. | |
1305 | (gif_format): Added the :data keyword | |
1306 | (gif_image_p): GIF is valid with :file _or_ :data | |
1307 | (gif_read_from_memory): New GIF input function to read from a | |
1308 | memory buffer. | |
c65d14ee | 1309 | (gif_load): Pay attention to the :data keyword. Uses DGifOpen() |
63448a4d WP |
1310 | instead of DGifOpenFileName() if specified. |
1311 | ||
c880678e GM |
1312 | 1999-12-31 Gerd Moellmann <gerd@gnu.org> |
1313 | ||
1314 | * xdisp.c (next_element_from_buffer): Change assertion at the end | |
1315 | because it doesn't hold when there's an overlay string at the end | |
1316 | from which we deliver an image. | |
1317 | ||
8ccb9a54 EZ |
1318 | 1999-12-30 Eli Zaretskii <eliz@is.elta.co.il> |
1319 | ||
1320 | * msdos.c (IT_update_begin): Don't dereference members of struct | |
1321 | window for deleted windows. | |
1322 | ||
12ce2351 GM |
1323 | 1999-12-30 Gerd Moellmann <gerd@gnu.org> |
1324 | ||
a915c648 GM |
1325 | * abbrev.c (Fexpand_abbrev): If expanding an abbrev which has only |
1326 | a hook, and the hook has a non-nil `no-self-insert' property, let | |
1327 | the return value of the hook specify whether an expansion took | |
1328 | place. If it returns nil, no expansion has been performed. | |
1329 | ||
12ce2351 GM |
1330 | * xterm.c (x_make_frame_visible): Wait for frame becoming visible |
1331 | differently. | |
1332 | ||
04ee4f45 EZ |
1333 | 1999-12-30 Eli Zaretskii <eliz@is.elta.co.il> |
1334 | ||
1335 | * msdos.c (IT_write_glyphs): Track last changes to struct glyph. | |
1336 | ||
7f4bc0c3 EZ |
1337 | 1999-12-29 Eli Zaretskii <eliz@is.elta.co.il> |
1338 | ||
1339 | * dispnew.c (mode_line_string): Support MS-DOS frames. | |
1340 | ||
dac204bc GM |
1341 | 1999-12-29 Gerd Moellmann <gerd@gnu.org> |
1342 | ||
1343 | * eval.c (syms_of_eval): Initialize debugger_may_continue. | |
1344 | ||
7b712ad8 KH |
1345 | 1999-12-29 Kenichi Handa <handa@etl.go.jp> |
1346 | ||
1347 | * process.c (read_process_output): Fix the args CHARPOS and LENINS | |
1348 | to signal_after_change. | |
1349 | ||
adb9900f EZ |
1350 | 1999-12-28 Eli Zaretskii <eliz@is.elta.co.il> |
1351 | ||
41ad069b EZ |
1352 | * msdos.c (dos_set_window_size) [__DJGPP__ > 1]: If the frame |
1353 | dimensions changed, invalidate the mouse highlight info. | |
1354 | (disable_mouse_highlight, help_echo, previous_help_echo): New | |
1355 | variables. | |
1356 | (IT_set_mouse_pointer, show_mouse_face, clear_mouse_face) | |
1357 | (fast_find_position, IT_note_mode_line_highlight) | |
1358 | (IT_note_mouse_highlight): New functions. | |
1359 | (IT_update_begin): If the redisplay affects the window where the | |
1360 | mouse highlight is, clear the highlight. If the frame where the | |
1361 | highlight was displayed was killed, invalidate the highlight | |
1362 | info. | |
1363 | (IT_update_end): Reset the highlight flag. Reset the mouse | |
1364 | highlight-defer flag. | |
1365 | (IT_frame_up_to_date): New function, if mouse highlight was | |
1366 | deferred due to GC, do it now. | |
1367 | (internal_terminal_init): Initialize mouse-highlight related | |
1368 | members of the_only_x_display. Assign IT_frame_up_to_date to | |
1369 | frame_up_to_date_hook. | |
1370 | (dos_rawgetc): If the mouse moved, update mouse highlight. If | |
1371 | help_echo changed value, generate a HELP_EVENT event. | |
1372 | (syms_of_msdos): Staticpro help_echo and previous_help_echo. | |
1373 | ||
adb9900f EZ |
1374 | * msdos.h (struct display_info): New. |
1375 | (struct x_output): Add the display_info member. | |
1376 | (FRAME_X_DISPLAY_INFO): New macro. | |
1377 | ||
481b5054 GM |
1378 | 1999-12-28 Gerd Moellmann <gerd@gnu.org> |
1379 | ||
1380 | * xdisp.c (try_window_id): Compute BEG_UNCHANGED and END_UNCHANGED | |
1381 | if MODIFF > 1. | |
6448a6b3 | 1382 | (dump_glyph_row): Adapt to changes in struct glyph. |
481b5054 GM |
1383 | |
1384 | * buffer.c (modify_overlay): Always compute unchanged info. | |
1385 | ||
a2882b0d KH |
1386 | 1999-12-27 Kenichi Handa <handa@etl.go.jp> |
1387 | ||
1388 | * dispextern.h (FACE_FROM_ID): Cast the arg ID to `unsigned'. | |
1389 | ||
89ba5b5f KH |
1390 | 1999-12-27 Kenichi Handa <handa@etl.go.jp> |
1391 | ||
1392 | The following changes are to use more bits for face IDs. | |
1393 | ||
1394 | * lisp.h (GLYPH): Defined as `int', not `unsigned int'. Now the | |
1395 | lowest 8 bits are single byte character code, the bits above are | |
1396 | face ID. | |
481b5054 | 1397 | (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the change |
89ba5b5f | 1398 | above. |
481b5054 GM |
1399 | (FAST_MAKE_GLYPH, FSST_GLYPH_FACE): Likewise. |
1400 | (GLYPH_MASK_REV_DIR, GLYPH_MASK_PADDING): Macros deleted. | |
89ba5b5f KH |
1401 | |
1402 | * charset.h (CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) instead | |
1403 | of GLYPH_MASK_CHAR. | |
1404 | ||
1405 | * charset.c (char_bytes): Use ((1 << CHARACTERBITS) - 1) instead | |
1406 | of GLYPH_MASK_CHAR. | |
1407 | ||
1408 | * dispextern.h (struct glyph): Make face_id and padding_p the top | |
1409 | level members. Change members in union `u'. | |
1410 | (GLYPH_EQUAL_P): Check also members face_id and padding_p. | |
1411 | (GLYPH_CHAR_AND_FACE_EQUAL_P): New macro. | |
1412 | (SET_CHAR_GLYPH): Adjusted for the change of struct glyph. | |
1413 | (CHAR_GLYPH_PADDING_P): Likewise. | |
1414 | (GLYPH_FROM_CHAR_GLYPH): Likewise. Always return -1 for multibyte | |
1415 | characters. | |
1416 | ||
481b5054 | 1417 | * dispnew.c (line_hash_code, direct_output_for_insert): Adjusted |
89ba5b5f KH |
1418 | for the change of struct glyph. |
1419 | (line_draw_cost): Adjusted for the change of | |
1420 | GLYPH_FROM_CHAR_GLYPH. | |
1421 | (count_match): Use macro GLYPH_CHAR_AND_FACE_EQUAL_P. | |
1422 | ||
1423 | * term.c (encode_terminal_code): Adjusted for the change of struct | |
1424 | glyph and GLYPH_FROM_CHAR_GLYPH. | |
481b5054 | 1425 | (write_glyphs, insert_glyphs, append_glyph): Adjusted for the |
89ba5b5f KH |
1426 | change of struct glyph. |
1427 | ||
1428 | * xdisp.c: All codes adjusted for the change of struct glyph. | |
1429 | ||
1430 | * xterm.c: All codes adjusted for the change of struct glyph. | |
1431 | ||
5bcd116c KH |
1432 | 1999-12-27 Kenichi Handa <handa@etl.go.jp> |
1433 | ||
1434 | * composite.h (struct composition): Change the order of declaring | |
1435 | members to reduce the byte size of the structure. | |
1436 | ||
f21b06b7 GM |
1437 | 1999-12-25 Gerd Moellmann <gerd@gnu.org> |
1438 | ||
1439 | * search.c (looking_at_1): Reset immediate_quit before modifying | |
1440 | global data. | |
1441 | ||
e36557c9 KH |
1442 | 1999-12-24 Kenichi Handa <handa@etl.go.jp> |
1443 | ||
1444 | * process.c (read_process_output): Fix the arg FROM to | |
1445 | update_compositions. | |
1446 | ||
83c8f461 | 1447 | 1999-12-22 Richard M. Stallman <rms@gnu.org> |
f7c9e039 RS |
1448 | |
1449 | * search.c (Freplace_match): For nonliteral replacement in buffer, | |
1450 | construct all the new text first, then insert all at once. | |
1451 | ||
0b863bd9 DL |
1452 | 1999-12-22 Dave Love <fx@gnu.org> |
1453 | ||
1454 | * xfns.c (Fx_show_tip): Gcpro `timeout' too. | |
1455 | ||
6d8e8ef3 GM |
1456 | 1999-12-22 Gerd Moellmann <gerd@gnu.org> |
1457 | ||
28d7281d GM |
1458 | * xfns.c (Fx_create_frame): Move x_default_parameter calls that |
1459 | lead to size changes to after the X window has been created. | |
1460 | ||
e22ef6eb | 1461 | * xfaces.c (realize_x_face): Don't use uninitialized local |
6d8e8ef3 GM |
1462 | variable in xassert. |
1463 | ||
8affcced KH |
1464 | 1999-12-22 Kenichi Handa <handa@etl.go.jp> |
1465 | ||
1466 | * xfaces.c (face_color_supported_p): Check by tty_defined_color | |
6d8e8ef3 | 1467 | only when the frame is not for a window system. |
8affcced | 1468 | |
f2be1146 GM |
1469 | 1999-12-22 Gerd Moellmann <gerd@gnu.org> |
1470 | ||
deca1348 GM |
1471 | * buffer.c (Fset_buffer_multibyte): Arrange for a thorough |
1472 | redisplay after changing the multibyteness of a buffer. | |
1473 | ||
f2be1146 GM |
1474 | * xterm.c (XTread_socket): At the beginning of the loop, pass the |
1475 | frame's X window to XFilterEvent instead of None because that's | |
1476 | the X window for which the IC was created. This makes dead | |
1477 | accents work when the pointer is not in Emacs' frame. | |
1478 | (XTread_socket) <KeyPress>: Don't call XFilterEvent here. | |
1479 | ||
a744a2ec DL |
1480 | 1999-12-20 Dave Love <fx@gnu.org> |
1481 | ||
1482 | * xfns.c (Fx_show_tip): Add missing UNGCPRO. | |
1483 | ||
9e6985ed GM |
1484 | 1999-12-19 Gerd Moellmann <gerd@gnu.org> |
1485 | ||
1486 | * eval.c (debugger_may_continue): New variable. | |
1487 | (syms_of_eval): Add a DEFVAR_BOOL for it. | |
1488 | (call_debugger): Bind it. | |
1489 | ||
3b620731 EZ |
1490 | 1999-12-19 Eli Zaretskii <eliz@is.elta.co.il> |
1491 | ||
1492 | * msdos.c (IT_set_face): Don't swap face colors when highlight or | |
1493 | fp->tty_reverse_p is set, unless the computed colors are identical | |
1494 | to frame colors. Print both original and computed colors to | |
1495 | termscript file. | |
1496 | (IT_write_glyphs): Track the changes in handling of composite | |
1497 | characters. | |
1498 | (IT_set_frame_parameters): Don't set frame colors from | |
1499 | unspecified-fg and unspecified-bg pseudo-colors. | |
1500 | ||
0f9a51c4 DL |
1501 | 1999-12-17 Dave Love <fx@gnu.org> |
1502 | ||
1503 | * data.c (Fkeywordp): New function. | |
1504 | (syms_of_data): Install it. | |
1505 | ||
363e4e42 EZ |
1506 | 1999-12-16 Eli Zaretskii <eliz@is.elta.co.il> |
1507 | ||
1508 | * xfaces.c (tty_defined_color): Fix last change. | |
1509 | ||
cfad01b4 GM |
1510 | 1999-12-15 Gerd Moellmann <gerd@gnu.org> |
1511 | ||
1512 | * xdisp.c (redisplay_window) <optional new window start>: Check | |
1513 | that window start is in [BEGV..ZV]. | |
1514 | ||
f9d2fdc4 EZ |
1515 | 1999-12-15 Eli Zaretskii <eliz@is.elta.co.il> |
1516 | ||
1517 | * dispextern.h (FACE_TTY_DEFAULT_FG_COLOR) | |
1518 | (FACE_TTY_DEFAULT_BG_COLOR): New macros. | |
1519 | ||
1520 | * xfaces.c (Qunspecified_fg, Qunspecified_bg): New variables. | |
1521 | (syms_of_xfaces): Initialize and staticpro them. | |
1522 | (tty_defined_color): If the color name is unspecified-fg or | |
1523 | unspecified-bg, return FACE_TTY_DEFAULT_FG_COLOR and | |
1524 | FACE_TTY_DEFAULT_BG_COLOR, respectively, as the pixel value. | |
1525 | (tty_color_name): If the color pixel value is either | |
1526 | FACE_TTY_DEFAULT_FG_COLOR or FACE_TTY_DEFAULT_BG_COLOR, return | |
1527 | Qunspecified_fg or Qunspecified_bg, respectively. | |
1528 | (Finternal_set_lisp_face_attribute): Allow values Qunspecified_fg | |
1529 | and Qunspecified_bg for foreground and background colors. | |
1530 | (realize_default_face): If the foreground and background colors | |
1531 | are not specified, default to Qunspecified_fg and Qunspecified_bg. | |
1532 | (realize_tty_face): By default, set the face colors to | |
1533 | FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR. | |
1534 | [MSDOS]: Handle FACE_TTY_DEFAULT_FG_COLOR and | |
1535 | FACE_TTY_DEFAULT_BG_COLOR when face colors are not defined. | |
1536 | Reverse the colors if the default colors were reversed. | |
1537 | ||
1538 | * dispnew.c (init_display): Initialize the frame pixels of the | |
1539 | initial frame to FACE_TTY_DEFAULT_FG_COLOR and | |
1540 | FACE_TTY_DEFAULT_BG_COLOR. | |
1541 | ||
1542 | * term.c (turn_on_face): If the default fore- and background | |
1543 | colors are reversed, enter inverse video mode. Don't send color | |
1544 | escape sequences for unspecified foreground and background colors. | |
1545 | (turn_off_face): Handle unspecified-fg and unspecified-bg colors. | |
1546 | ||
1547 | * dosfns.c (unspecified_colors): New variable. | |
1548 | (msdos_stdcolor_idx): Handle unspecified-fg and unspecified-bg | |
1549 | color names, return FACE_TTY_DEFAULT_FG_COLOR and | |
1550 | FACE_TTY_DEFAULT_BG_COLOR, respectively. | |
1551 | (msdos_stdcolor_name): Handle FACE_TTY_DEFAULT_FG_COLOR and | |
1552 | FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg and | |
1553 | Qunspecified_bg, respectively. | |
1554 | ||
1555 | * msdos.c (IT_set_face): Support FACE_TTY_DEFAULT_FG_COLOR and | |
1556 | FACE_TTY_DEFAULT_BG_COLOR as pixel values. | |
1557 | ||
e19539f1 KH |
1558 | 1999-12-15 Kenichi Handa <handa@etl.go.jp> |
1559 | ||
1560 | * coding.c (code_convert_region): Fix the secoding arg to | |
1561 | update_compositions. | |
1562 | ||
5ec14d3c KH |
1563 | 1999-12-15 Kenichi Handa <handa@etl.go.jp> |
1564 | ||
1565 | The following changes are for the new composition mechanism. We | |
1566 | have deleted `composition' charset and composite characters, | |
1567 | instead introduced a special text property `composition'. | |
1568 | ||
1569 | * Makefile.in (INTERVAL_SRC): Include composite.h. | |
1570 | (INTERVAL_OBJ): Include composite.o. | |
1571 | (SOME_MACHINE_OBJECTS): Include composite.o. | |
1572 | (casefiddle.o) (dispnew.o) (indent.o) (process.o) (search.o) | |
1573 | (syntax.o) (window.o) (xdisp.o) (xfaces.o) (xterm.o) (print.o): | |
1574 | Depend on composite.h. | |
1575 | (doc.o): Depend on charset.h. | |
1576 | (keyboard.o) (textprop.o) (intervals.o): Depend on INTERVAL_SRC. | |
1577 | (composite.o): New target. | |
1578 | ||
1579 | * alloc.c (Fmake_string): Adjusted for the change of CHAR_STRING. | |
1580 | ||
1581 | * callproc.c (Fcall_process): Call code_convert_string to encode | |
1582 | arguments. Use CODING_REQUIRE_DECODING to check if the process | |
1583 | output should be decoded. | |
1584 | ||
1585 | * casefiddle.c: Include composite.h. | |
1586 | (casify_object): Use MAX_MULTIBYTE_LENGTH to allocate memory for a | |
1587 | multibyte character. Adjusted for the change of CHAR_STRING. | |
1588 | (casify_region): Likewise. Call update_compositions. | |
1589 | ||
1590 | * category.h (CATEGORY_SET): Delete codes for a composite | |
1591 | character. | |
1592 | ||
1593 | * category.c (word_boundary_p): Delete codes for a composite | |
1594 | character. | |
1595 | (Fmake_category_table): New function. | |
1596 | (syms_of_category): Defsubr it. | |
1597 | ||
1598 | * ccl.c (CCL_WRITE_CHAR): Adjusted for the change of CHAR_STRING. | |
1599 | (ccl_driver): Delete codes for a composite character. | |
1600 | ||
1601 | * charset.h: In this entry, just `Modified' means that codes for a | |
1602 | composite character is deleted. | |
1603 | (LEADING_CODE_COMPOSITION) (CHARSET_COMPOSITION) | |
1604 | (charset_composition) (MIN_CHAR_COMPOSITION) | |
1605 | (MAX_CHAR_COMPOSITION) (GENERIC_COMPOSITION_CHAR) | |
1606 | (COMPOSITE_CHAR_P) (MAKE_COMPOSITE_CHAR) (COMPOSITE_CHAR_ID) | |
1607 | (PARSE_COMPOSITE_SEQ) (PARSE_CHARACTER_SEQ): Deleted. | |
1608 | (MAX_CHAR) (CHARSET_VALID_P) (CHARSET_DEFINED_P) (CHARSET_AT) | |
1609 | (FIRST_CHARSET_AT) (SAME_CHARSET_P) (MAKE_NON_ASCII_CHAR) | |
1610 | (PARSE_MULTIBYTE_SEQ) (SPLIT_NON_ASCII_CHAR) (CHAR_PRINTABLE_P): | |
1611 | Modified. | |
1612 | (SPLIT_STRING): Call split_string, not split_non_ascii_string. | |
1613 | (CHAR_STRING): Delete WORKBUF argument. Call char_string, not | |
1614 | non_ascii_char_to_string. | |
1615 | (STRING_CHAR): Call string_to_char, not string_to_non_ascii_char. | |
1616 | (STRING_CHAR_AND_LENGTH): Likewise. | |
1617 | (FETCH_CHAR_ADVANCE): New macro. | |
1618 | (MAX_COMPONENT_COUNT) (struct cmpchar_info): Deleted. | |
1619 | (MAX_MULTIBYTE_LENGTH): New macro. | |
1620 | (MAX_LENGTH_OF_MULTI_BYTE_FORM): Deleted. | |
1621 | (find_charset_in_str): Argument adjusted. | |
1622 | (CHAR_LEN): Modified. | |
1623 | ||
1624 | * charset.c: In this entry, just `Modified' means that codes for a | |
1625 | composite character is deleted. | |
1626 | (Qcomposition) (leading_code_composition) | |
1627 | (charset_composition) (min_composite_char) (cmpchar_table) | |
1628 | (cmpchar_table_size) (n_cmpchars): Deleted. | |
1629 | (SPLIT_COMPOSITE_SEQ): Deleted. | |
1630 | (SPLIT_MULTIBYTE_SEQ): Modified. | |
1631 | (char_to_string): Renamed from non_ascii_char_to_string. | |
1632 | Modified. | |
1633 | (string_to_char): Renamed from string_to_non_ascii_char. | |
1634 | (split_string): Renamed from split_non_ascii_string. | |
1635 | (char_printable_p) (Fsplit_char) | |
1636 | (Ffind_charset_region) (Ffind_charset_string) (char_valid_p) | |
1637 | (char_bytes) (Fchar_width) (strwidth): Modified. | |
1638 | (find_charset_in_str): Argument CMPCHARP deleted. Modified. | |
1639 | (Fstring): Adjusted for the change of CHAR_STRING. Modified. | |
1640 | (hash_string) (CMPCHAR_HASH_TABLE_SIZE) (cmpchar_hash_table) | |
1641 | (CMPCHAR_HASH_SIZE) (CMPCHAR_HASH_USED) (CMPCHAR_HASH_CMPCHAR_ID) | |
1642 | (str_cmpchar_id) (cmpchar_component) (Fcmpcharp) | |
1643 | (Fcmpchar_component) (Fcmpchar_cmp_rule) (Fcmpchar_cmp_rule_p) | |
1644 | (Fcmpchar_cmp_count): Deleted. | |
1645 | (Fcompose_string): Implemented by Emacs Lisp in composite.el. | |
1646 | (init_charset_once): Modified. | |
1647 | (syms_of_charset): Modified. | |
1648 | ||
1649 | * cmds.c (internal_self_insert): Adjusted for the change of | |
1650 | CHAR_STRING. | |
1651 | ||
1652 | * coding.h (emacs_code_class_type): Delete the member | |
1653 | EMACS_leading_code_composition. | |
1654 | (COMPOSING_NO) (COMPOSING_WITH_RULE_HEAD) (COMPOSING_NO_RULE_HEAD) | |
1655 | (COMPOSING_WITH_RULE_TAIL) (COMPOSING_NO_RULE_TAIL) | |
1656 | (COMPOSING_WITH_RULE_RULE) (COMPOSING_HEAD_P) | |
1657 | (COMPOSING_WITH_RULE_P): Macros deleted. | |
1658 | (COMPOSITION_DATA_SIZE) (COMPOSITION_DATA_MAX_BUNCH_LENGTH): New | |
1659 | macros. | |
1660 | (struct composition_data): New structure. | |
1661 | (CODING_FINISH_INSUFFICIENT_CMP): New macro. | |
1662 | (struct coding_system): New members composition_rule_follows, | |
1663 | cmp_data, cmp_data_start, cmp_data_index. | |
1664 | (coding_save_composition) (coding_free_composition_data) | |
1665 | (coding_adjust_composition_offset): Extern them. | |
1666 | ||
1667 | * coding.c: Include composite.h. | |
1668 | (DECODE_CHARACTER_ASCII): Don't handle composition here. | |
1669 | (DECODE_CHARACTER_DIMENSION1): Likewise. Don't check the validity | |
1670 | of multibyte code here. | |
1671 | (DECODE_CHARACTER_DIMENSION2): Likewise. | |
1672 | (detect_coding_emacs_mule): Change the case label from | |
1673 | EMACS_leading_code_composition to 0x80. | |
1674 | (detect_coding_iso2022): Handle new composition sequence. | |
1675 | (DECODE_ISO_CHARACTER): Likewise. | |
1676 | (check_composing_code): Deleted. | |
1677 | (coding_allocate_composition_data): New function. | |
1678 | (CODING_ADD_COMPOSITION_START) (CODING_ADD_COMPOSITION_END) | |
1679 | (CODING_ADD_COMPOSITION_COMPONENT) (DECODE_COMPOSITION_START) | |
1680 | (DECODE_COMPOSITION_END) (DECODE_COMPOSITION_RULE): New macros. | |
1681 | (decode_coding_iso2022): Handle new composition sequence. | |
1682 | (ENCODE_ISO_CHARACTER): Don't check composition here. | |
1683 | (ENCODE_COMPOSITION_RULE) (ENCODE_COMPOSITION_START): New macros. | |
1684 | (ENCODE_COMPOSITION_NO_RULE_START) | |
1685 | (ENCODE_COMPOSITION_WITH_RULE_START): Deleted. | |
1686 | (ENCODE_COMPOSITION_END): Handle new composition sequence. | |
1687 | (ENCODE_COMPOSITION_FAKE_START): New macro. | |
1688 | (encode_coding_iso2022): Handle new composition sequence. | |
1689 | (ENCODE_SJIS_BIG5_CHARACTER): Delete superfluous `;' at the tail. | |
1690 | (encode_coding_sjis_big5): Ignore composition. | |
1691 | (setup_coding_system): Initialize new members of struct | |
1692 | coding_system. Enable composition only when the coding system has | |
1693 | `composition' property t. | |
1694 | (coding_free_composition_data) (coding_adjust_composition_offset) | |
1695 | (coding_save_composition) (coding_restore_composition): New | |
1696 | functions. | |
1697 | (code_convert_region): Call coding_save_composition for encoding | |
1698 | and coding_allocate_composition_data for decoding. Don't skip | |
1699 | ASCII characters if we handle composition on encoding. Call | |
1700 | signal_after_change with Check_BORDER. | |
1701 | (code_convert_string): Call coding_save_composition for encoding | |
1702 | and coding_allocate_composition_data for decoding. Don't skip | |
1703 | ASCII characters if we handle composition on encoding. | |
1704 | (code_convert_string1): Set Vlast_coding_system_used after calling | |
1705 | code_convert_string. | |
1706 | (code_convert_string_norecord): Disable composition. | |
1707 | (Fset_terminal_coding_system_internal): Likewise. | |
1708 | (Fset_safe_terminal_coding_system_internal): Likewise. | |
1709 | (Fset_keyboard_coding_system_internal): Likewise. | |
1710 | (init_coding_once): Set emacs_code_class[0x80] to | |
1711 | EMACS_invalid_code. | |
1712 | ||
1713 | * composite.h: New file. | |
1714 | ||
1715 | * composite.c: New file. | |
1716 | ||
1717 | * data.c (Faref): Delete codes for a composite character.. | |
1718 | (Faset): Likewise. Adjusted for the change of CHAR_STRING. | |
1719 | ||
1720 | * dispextern.h (enum glyph_type): New member COMPOSITE_GLYPH. | |
1721 | (struct glyph): Add new sub-structure cmp to the union `u'. | |
1722 | (enum display_element_type): New member IT_COMPOSITION. | |
1723 | (enum prop_idx): New member COMPOSITION_PROP_IDX. | |
1724 | (struct it): New members cmp_id, cmp_len. | |
1725 | ||
1726 | * dispnew.c (direct_output_forward_char): Check point moving into | |
1727 | or out of a composition. If so, give up direct method. | |
1728 | ||
1729 | * doprnt.c (doprnt1): Adjusted for the change of CHAR_STRING. | |
1730 | ||
1731 | * editfns.c (Fchar_to_string): Adjusted for the change of | |
1732 | CHAR_STRING. | |
1733 | (general_insert_function): Likewise. | |
1734 | (Finsert_char): Likewise. | |
1735 | (Fsubst_char_in_region): Likewise. Call update_compositions. | |
1736 | (Ftranslate_region): Call update_compositions. | |
1737 | (Ftranspose_regions): Call update_compositions. | |
1738 | ||
1739 | * emacs.c (main): Call syms_of_composite. | |
1740 | ||
1741 | * fileio.c (Fsubstitute_in_file_name): Adjusted for the change of | |
1742 | CHAR_STRING. | |
1743 | (Finsert_file_contents): Set Vlast_coding_system_used before | |
1744 | calling signal_after_change. Call update_compositions if some | |
1745 | texts are inserted.. | |
1746 | (Fwrite_region): Adjusted for the change of a_write and e_write. | |
1747 | (a_write): Argument changed. Work based on character position, | |
1748 | not byte position. | |
1749 | (e_write): Argument changed. Handle new way of composition. | |
1750 | ||
1751 | * fns.c (Flength): The length of char-table is MAX_CHAR. | |
1752 | (concat): Adjusted for the change of CHAR_STRING. | |
1753 | (Ffillarray): Adjusted for the change of CHAR_STRING. | |
1754 | (Fset_char_table_default): Delete codes for a composite character. | |
1755 | (hash_put): Return hash index. | |
1756 | ||
1757 | * fontset.h (struct font_info): New member vertical_centering. | |
1758 | (Vvertical_centering_font_regexp): Extern it. | |
1759 | ||
1760 | * fontset.c (Vvertical_centering_font_regexp): New variable. | |
1761 | (syms_of_fontset): Declare it as a Lisp variable and initialize. | |
1762 | Set Vignore_relative_composition to nil. | |
1763 | (fs_load_font): Initialize `vertical_centering' of struct | |
1764 | font_info. | |
1765 | ||
1766 | * indent.c (check_composition): New function. | |
1767 | (MULTIBYTE_BYTES_WIDTH): Call STRING_CHAR_AND_LENGTH with | |
1768 | MAX_MULTIBYTE_LENGTH, not MAX_LENGTH_OF_MULTI_BYTE_FORM. | |
1769 | (current_column_1): Handle new way of composition. | |
1770 | (Fmove_to_column): Likewise. | |
1771 | (compute_motion): Likewise. | |
1772 | ||
1773 | * insdel.c (copy_text): Adjusted for the change of CHAR_STRING. | |
1774 | (insert_char): Likewise. | |
1775 | (insert): Call update_compositions. | |
1776 | (insert_and_inherit): Likewise. | |
1777 | (insert_before_markers): Likewise. | |
1778 | (insert_before_markers_and_inherit): Likewise. | |
1779 | (insert_from_string): Likewise. | |
1780 | (insert_from_string_before_markers): Likewise. | |
1781 | (insert_from_buffer): Likewise. | |
1782 | (replace_range): Likewise. | |
1783 | (count_combining_composition): Deleted. | |
1784 | (count_combining_before): Delete codes for a composite character. | |
1785 | (count_combining_after): Likewise. | |
1786 | (del_range_1): Call update_compositions. | |
1787 | (del_range_byte): Likewise. | |
1788 | (del_range_both): Likewise. | |
1789 | (Fcombine_after_change_execute): Likewise. | |
1790 | ||
1791 | * intervals.h: Include composite.h. | |
1792 | (get_property_and_range): Extern it. | |
1793 | (Vtext_property_default_nonsticky): Extern it. | |
1794 | ||
1795 | * intervals.c (adjust_intervals_for_insertion): To check stickines | |
1796 | of properties, pay attention to text-property-default-nonsticky. | |
1797 | (merge_properties_sticky): Likewise. | |
1798 | (get_property_and_range): New function. | |
1799 | ||
1800 | * keyboard.c (Vdisable_point_adjustment): New variable. | |
1801 | (Vglobal_disable_point_adjustment): New variable. | |
1802 | (syms_of_keyboard): Declare them as Lisp variables. | |
1803 | (command_loop_1): Check them and call adjust_point_for_property if | |
1804 | necessary. | |
1805 | (adjust_point_for_property): New function. | |
1806 | ||
1807 | * keymap.c (push_key_description): Adjusted for the change of | |
1808 | CHAR_STRING. | |
1809 | (Ftext_char_description): Likewise. | |
1810 | ||
1811 | * lisp.h (QCtest, QCweakness, Qequal): Extern them. | |
1812 | (hash_put): Adjusted for the change of the definition. | |
1813 | (signal_after_change): Likewise. | |
1814 | (check_point_in_composition): Extern it. | |
1815 | ||
1816 | * lread.c (readchar): Adjusted for the change of CHAR_STRING. | |
1817 | Delete a code that handles an invalid too-long multibyte sequence | |
1818 | because we are now sure that we never encounter with such a | |
1819 | sequence. | |
1820 | (read_multibyte): Use macro MAX_MULTIBYTE_LENGTH, not | |
1821 | MAX_LENGTH_OF_MULTI_BYTE_FORM. | |
1822 | (init_obarray): Likewise. | |
1823 | (read1): Likewise. Adjusted for the change of CHAR_STRING. | |
1824 | ||
1825 | * print.c (printchar): Adjusted for the change of CHAR_STRING. | |
1826 | ||
1827 | * process.c: Include composite.h. | |
1828 | (read_process_output): Call update_compositions. | |
1829 | ||
1830 | * regex.c (regex_compile): Adjusted for the change of CHAR_STRING. | |
1831 | ||
1832 | * search.c (search_buffer): Adjusted for the change of CHAR_STRING. | |
1833 | ||
1834 | * syntax.h (SYNTAX_ENTRY_INT): Delete codes for a composite | |
1835 | character. | |
1836 | ||
1837 | * term.c (encode_terminal_code): Delete codes for a composite | |
1838 | character. Adjusted for the change of CHAR_STRING. | |
1839 | (produce_glyphs): When called, it->what can be IT_COMPOSITION. | |
1840 | Delete codes for a composite character. | |
1841 | ||
1842 | * textprop.c (Vtext_property_default_nonsticky): New variable | |
1843 | (syms_of_textprop): Declare it as a Lisp variable. | |
1844 | ||
1845 | * window.c (Frecenter): Clear all caches of compositions. | |
1846 | ||
1847 | * xdisp.c (it_props): Add an entry for composition. | |
1848 | (face_before_or_after_it_pos): For composition, check face of a | |
1849 | character after the composition. | |
1850 | (handle_composition_prop): New function. | |
1851 | (get_next_display_element): Adjusted for the change of | |
1852 | CHAR_STRING. | |
1853 | (set_iterator_to_next): Handle the case that it->method == | |
1854 | next_element_from_composition. | |
1855 | (next_element_from_composition): New function. | |
1856 | (message_dolog): Adjusted for the change of CHAR_STRING. | |
1857 | (set_message_1): Likewise. | |
1858 | (check_point_in_composition): New function. | |
1859 | (reconsider_clip_changes): If point moved into or out of | |
1860 | composition, set b->clip_changed to 1 to force updating of the | |
1861 | screen. | |
1862 | (disp_char_vector): Delete codes for a composite character. | |
1863 | (decode_mode_spec_coding): Adjusted for the change of CHAR_STRING. | |
1864 | ||
1865 | * xfaces.c (choose_face_fontset_font): Delete codes for a | |
1866 | composite character. | |
1867 | (realize_x_face): Likewise. Change a place to set local variable | |
1868 | `f' to avoid a bug of GCC 2.8.1 on Solaris. | |
1869 | ||
1870 | * xfns.c: Include intervals.h. | |
1871 | (syms_of_xfns): Make `display' property nonsticky by default. | |
1872 | ||
1873 | * xselect.c (lisp_data_to_selection_data): Adjusted for the change | |
1874 | for find_charset_in_str. | |
1875 | ||
1876 | * xterm.h (struct x_output): Change member font_baseline to | |
1877 | baseline_offset. | |
1878 | ||
1879 | * xterm.c (x_append_glyph): Setup members of struct glyph properly | |
1880 | for composition. | |
1881 | (x_append_composite_glyph): New function. | |
1882 | (VCENTER_BASELINE_OFFSET): New macro. | |
1883 | (x_produce_glyphs): If it->what == IT_COMPOSITION, setup members | |
1884 | of struct it for the composition. Cache pixel offsets in the | |
1885 | struct composition. Delete codes for a composite character. | |
1886 | Handle Vignore_relative_composition in composition code. | |
1887 | (struct glyph_string): Delete member cmpcharp, add new member cmp. | |
1888 | (x_set_cursor_gc): Check s->cmp, not s->cmpcharp. | |
1889 | (x_compute_glyph_string_overhangs): Likewise. | |
1890 | (x_get_glyph_overhangs): Delete codes for a composite character. | |
1891 | (x_right_overwritten): Check s->cmp, not s->cmpcharp. | |
1892 | (x_draw_glyph_string_background): Likewise. Delete codes for | |
1893 | checking s->gidx for a composition. | |
1894 | (x_draw_glyph_string_foreground): Delete code for a composite | |
1895 | character. | |
1896 | (x_draw_composite_glyph_string_foreground): New function. | |
1897 | (x_draw_glyph_string_box): Check s->cmp, not s->cmpcharp. | |
1898 | (x_draw_glyph_string): Handle the case of COMPOSITE_GLYPH. | |
1899 | (struct work): Deleted. | |
1900 | (x_fill_composite_glyph_string): Argument changed. Mostly | |
1901 | rewritten for that. | |
1902 | (x_fill_glyph_string): Don't check CHARSET_COMPOSITION. | |
1903 | (BUILD_CHAR_GLYPH_STRINGS): Don't handle composition here. | |
1904 | (BUILD_COMPOSITE_GLYPH_STRING): New macro. | |
1905 | (BUILD_GLYPH_STRINGS): For composition, call | |
1906 | BUILD_COMPOSITE_GLYPH_STRING. | |
1907 | (x_new_font): Initialize f->output_data.x->baseline_offset, not | |
1908 | f->output_data.x->font_baseline. | |
1909 | ||
c3c60f13 GM |
1910 | 1999-12-14 Gerd Moellmann <gerd@gnu.org> |
1911 | ||
1912 | * xterm.c (show_mouse_face): Don't use updated_area, use | |
1913 | TEXT_AREA. | |
1914 | ||
83c8f461 | 1915 | 1999-12-12 Richard M. Stallman <rms@gnu.org> |
c838eb57 RS |
1916 | |
1917 | * minibuf.c (Fall_completions): Doc fix. | |
1918 | ||
83c8f461 | 1919 | 1999-12-12 Richard M. Stallman <rms@gnu.org> |
c838eb57 RS |
1920 | |
1921 | * macros.c (Fstart_kbd_macro): Handle case where last-kbd-macro | |
1922 | has been changed by the Lisp code. | |
1923 | ||
d8eccf12 GM |
1924 | 1999-12-12 Gerd Moellmann <gerd@gnu.org> |
1925 | ||
1926 | * xfns.c: Indentation fixes. | |
1927 | ||
ae56feae SM |
1928 | 1999-12-10 Stefan Monnier <monnier@cs.yale.edu> |
1929 | ||
1930 | * xterm.c (x_initialize): Only setup xaw3d_* if they've been declared. | |
1931 | ||
dfa1c6ae GM |
1932 | 1999-12-10 Gerd Moellmann <gerd@gnu.org> |
1933 | ||
1934 | * frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL) | |
1935 | [!MSDOS && !WINDOWSNT && !macintosh]: Moved here from xterm.h. | |
1936 | ||
1937 | * xterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Moved | |
1938 | to frame.h. | |
1939 | ||
ec18280f SM |
1940 | 1999-12-09 Stefan Monnier <monnier@cs.yale.edu> |
1941 | ||
1942 | * keyboard.c (Qratio): New symbol. | |
1943 | (scroll_bar_parts): Add `Qratio' to it. | |
1944 | (syms_of_keyboard): Init `Qratio'. | |
1945 | * termhooks.h (scroll_bar_part): Add `scroll_bar_move_ratio'. | |
1946 | * xterm.c (#includes): Allow compilation with only Xaw. | |
1947 | (xaw3d_arrow_scroll, xaw3d_pick_top): New variables. | |
1948 | (xt_action_hook): Replace XAW3D by XAW. | |
1949 | (xaw3d_jump_callback): Renamed to xaw_jump_callback. | |
1950 | (xaw_jump_callback): Renamed from xaw3d_jump_callback. | |
1951 | Determine epsilon dynamically and don't try to be too clever. | |
1952 | (xaw3d_scroll_callback): Renamed to xaw_scroll_callback. | |
1953 | (xaw_scroll_callback): Renamed from xaw3d_scroll_callback. | |
1954 | Handle both Xaw3d with arrow-scrollbars and with Xaw-style | |
1955 | scrollbar (using `ratio'). | |
1956 | (x_create_toolkit_scroll_bar): Try to detect which style of Xaw3d | |
1957 | scrollbar we have so as to set it up more optimally and to fix | |
1958 | xaw3d_arrow_scroll and xaw3d_pick_top. | |
1959 | (x_set_toolkit_scroll_bar_thumb): Try to maintain 2 spare pixels at the | |
1960 | bottom of the Xaw3d scrollbar, to work around its tendency to refuse | |
1961 | shrinking the thumb. Also make sure that `XawScrollbarSetThumb' | |
1962 | is not ignored, using a major gross hack. | |
1963 | (x_initialize): Init default values for xaw3d_arrow_scroll and | |
1964 | xaw3d_pick_top. | |
1965 | ||
83b6d970 DL |
1966 | 1999-12-09 Dave Love <fx@gnu.org> |
1967 | ||
1968 | * frame.h: (PIX_TYPE) [! HAVE_X_WINDOWS]: Define PIX_TYPE. | |
1969 | ||
3648c842 GM |
1970 | 1999-12-08 Gerd Moellmann <gerd@gnu.org> |
1971 | ||
1972 | * eval.c: Remove conditional compilation on `standalone'. | |
1973 | (call_debugger): When entering the debugger while redisplaying, | |
1974 | reset redisplaying_p, and go back to the top-level if the debugger | |
1975 | returns. | |
1976 | ||
05e71564 GM |
1977 | 1999-12-07 Gerd Moellmann <gerd@gnu.org> |
1978 | ||
1979 | * xfaces.c (x_set_menu_resources_from_menu_face): Make sure | |
1980 | basic faces are realized before trying to use face `menu'. | |
1981 | ||
1982 | * window.c (delete_window): Block input for the time window | |
1983 | matrices are being changed. | |
1984 | ||
b46cd536 DL |
1985 | 1999-12-07 Dave Love <fx@gnu.org> |
1986 | ||
1987 | * lread.c (Fintern_soft): Fix newlines in doc string. | |
1988 | ||
96acb1f7 GM |
1989 | 1999-12-07 Alexandre Oliva <oliva@dcc.unicamp.br> |
1990 | ||
1991 | * unexelf.c: Include <syms.h>, not <sym.h> on IRIX. Removed | |
1992 | duplicate definition of ElfW. | |
1993 | (find_section): Copied from unexsgi.c. | |
1994 | (unexec): Use find_section. Adjust whitespace. Initialize | |
1995 | new_data2_offset based on old_data, not sbss (this fixes a bug on | |
1996 | IRIX6). Change #ifdef __mips to __sgi, since it's IRIX-specific. | |
1997 | Adjust test for presence of .mdebug section to the new return | |
1998 | value of find_section. | |
1999 | ||
2000 | 1999-12-07 Gerd Moellmann <gerd@gnu.org> | |
2001 | ||
2002 | * unexelf.c: Merge changes from 20.5. | |
2003 | (unexec): Handle .lit4 and .lit8 unconditionally. | |
2004 | ||
2005 | * m/iris4d.h (UNEXEC) [USG5_4]: Use unexelf.o instead of | |
2006 | unexsgi.o again. | |
2007 | ||
2008 | * m/iris5d.h (UNEXEC): Likewise. | |
2009 | ||
7dae4502 SM |
2010 | 1999-12-06 Stefan Monnier <monnier@cs.yale.edu> |
2011 | ||
2012 | * editfns.c (Fdelete_and_extract_region): New function. | |
05e71564 GM |
2013 | (syms_of_editfns): Register it. |
2014 | * insdel.c (del_range): Update del_range_1 call. | |
7dae4502 SM |
2015 | (del_range_1, del_range_2): Add a ret_string argument to |
2016 | request that the deleted text be returned. | |
2017 | (del_range_byte, del_range_both): Update del_range_2 call. | |
05e71564 | 2018 | * lisp.h (del_range_1, del_range_2): Change prototype |
7dae4502 SM |
2019 | * casefiddle.c (casify_region): Update del_range_1 call. |
2020 | * coding.c (code_convert_region): Update del_range_2 call. | |
2021 | * fileio.c (Finsert_file_contents): Update del_range_2 call. | |
2022 | ||
397e4fae GM |
2023 | 1999-12-06 Gerd Moellmann <gerd@gnu.org> |
2024 | ||
2025 | * xfaces.c (set_lface_from_font_name): Fix incomplete merge. | |
2026 | ||
3d973f71 GM |
2027 | 1999-12-04 Hrvoje Niksic <hniksic@iskon.hr> |
2028 | ||
2029 | * lread.c (Fintern_soft): Accept a symbol argument. | |
2030 | ||
740e985f EZ |
2031 | 1999-12-06 Eli Zaretskii <eliz@is.elta.co.il> |
2032 | ||
2033 | * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 40000. | |
809f3d51 EZ |
2034 | |
2035 | * insdel.c (adjust_markers_for_delete): Fix last change. | |
2036 | ||
2d764c78 EZ |
2037 | 1999-12-06 Eli Zaretskii <eliz@is.elta.co.il> |
2038 | ||
2039 | Changes for automatic remapping of X colors on terminal frames: | |
2040 | ||
2041 | * xfaces.c (XColor) [!HAVE_X_WINDOWS]: Provide a typedef for non-X | |
2042 | frames. | |
2043 | (Vface_tty_color_alist): Remove. | |
2044 | (tty_defined_color): New function. | |
2045 | (defined_color): Rewrite to support any type of frame. | |
2046 | (tty_color_name): New function. | |
2047 | (face_color_supported_p, Fface_color_gray_p, | |
2048 | Fface_color_supported_p): Support non-X frames. | |
2049 | (load_color): Enclose the color name in quotes, in the log | |
2050 | messages. Remove DOS-specific version of load_color. | |
2051 | (realize_tty_face): Take the supported colors from | |
2052 | tty-color-alist. Support translation of X colors to the closest | |
2053 | tty color, for both MSDOS and tty frames. | |
2054 | [MSDOS]: Don't invert face colors if they were taken from the | |
2055 | frame colors. | |
2056 | (Fface_register_tty_color, Fface_clear_tty_colors): Remove. | |
2057 | ||
2058 | * frame.h (struct x_output) [!MSDOS, !WINDOWSNT, !HAVE_X_WINDOWS]: | |
2059 | Define a mostly empty surrogate. | |
2060 | (tty_display): Declare. | |
2061 | ||
2062 | * frame.c (make_terminal_frame) [!macintosh]: Don't use | |
2063 | tty_display. | |
2064 | (Fframe_parameters): Don't invert colors of non-FRAME_WINDOW_P | |
2065 | frames when the frame's param_alist includes 'reverse. | |
2066 | (tty_display): Define. | |
2067 | (make_terminal_frame) [!MSDOS]: Assign &tty_display to the | |
2068 | output_data.x member. | |
2069 | (Fframe_parameters): Return foreground and background color names | |
2070 | on tty frames as well, in addition to MSDOS frames. | |
2071 | ||
2072 | * msdos.h (DisplayWidth, DisplayHeight): Changes for Lisp_Object | |
2073 | selected_frame. | |
2074 | (struct x_output): Remove unused members; document who uses each | |
2075 | member. | |
2076 | (FRAME_PARAM_FACES, FRAME_N_PARAM_FACES, FRAME_DEFAULT_PARAM_FACE, | |
2077 | FRAME_MODE_LINE_PARAM_FACE, FRAME_COMPUTED_FACES, | |
2078 | FRAME_N_COMPUTED_FACES, FRAME_SIZE_COMPUTED_FACES, | |
2079 | FRAME_DEFAULT_FACE, FRAME_MODE_LINE_FACE, unload_color): Remove | |
2080 | unused macro definintions. | |
2081 | ||
2082 | * msdos.c (IT_set_frame_parameters): Don't call | |
2083 | recompute_basic_faces, the next redisplay will, anyway. | |
2084 | (x_current_display): Remove unused variable. | |
2085 | Many functions: changes for Lisp_object selected_frame. | |
2086 | (IT_set_face): If the tty_reverse_p flag is set for the face, | |
2087 | reverse the foreground and background colors. | |
2088 | (Fmsdos_remember_default_colors): New function. | |
2089 | (syms_of_msdos): Defsubr it. | |
2090 | (IT_set_frame_parameters): Use initial_screen_colors[] when | |
2091 | creating a new frame. If the frame parameters include 'reverse, | |
2092 | swap the foreground and background colors. | |
2093 | (internal_terminal_init): Initialize initial_screen_colors to -1. | |
2094 | (syms_of_msdos): Add DEFVAR_BOOL for x-stretch-cursor, to shut up | |
2095 | cus-start.el. | |
2096 | ||
2097 | * Makefile.in (lisp, shortlisp): Add lisp/term/tty-colors.elc. | |
2098 | ||
2099 | * xfns.c (x_defined_color): Rename from defined_color. All | |
2100 | callers changed. | |
2101 | (Fxw_color_defined_p): Renamed from Fx_color_defined_p; | |
2102 | all callers changed. | |
2103 | (Fxw_color_values): Renamed from Fx_color_values; all callers | |
2104 | changed. | |
2105 | (Fxw_display_color_p): Renamed from Fx_display_color_p; all | |
2106 | callers changed. | |
2107 | (x_window_to_frame, x_any_window_to_frame, | |
2108 | x_non_menubar_window_to_frame, x_menubar_window_to_frame, | |
2109 | x_top_window_to_frame): Use !FRAME_X_P instead of | |
2110 | f->output_data.nothing. | |
2111 | * xterm.h (x_defined_color): Rename from defined_color. | |
2112 | ||
2113 | * w32fns.c (x_window_to_frame): Use FRAME_W32_P instead of | |
2114 | f->output_data.nothing. | |
2115 | (Fxw_color_defined_p): Renamed from Fx_color_defined_p; | |
2116 | all callers changed. | |
2117 | (Fxw_color_values): Renamed from Fx_color_values; all callers | |
2118 | changed. | |
2119 | (Fxw_display_color_p): Renamed from Fx_display_color_p; all | |
2120 | callers changed. | |
2121 | ||
2122 | * dispextern.h (tty_color_name): Add prototype. | |
2123 | ||
2124 | * xmenu.c (menubar_id_to_frame): Use FRAME_WINDOW_P instead of | |
2125 | f->output_data.nothing. | |
2126 | * w32menu.c (menubar_id_to_frame): Likewise. | |
2127 | * w32term.h (w32_output): Declare. | |
2128 | ||
2129 | * dosfns.c (Qmsdos_color_translate): Remove. | |
2130 | (msdos_stdcolor_name): Now returns a Lisp_Object. | |
2131 | * dosfns.h (Qmsdos_color_translate): Remove. | |
2132 | ||
2133 | * s/msdos.h (INTERNAL_TERMINAL): Add entries for color support. | |
2134 | ||
b3e5232e KH |
2135 | 1999-12-06 Kenichi Handa <handa@etl.go.jp> |
2136 | ||
2137 | * fileio.c (decide_coding_unwind): Renamed from | |
2138 | set_auto_coding_unwind. | |
2139 | (Finsert_file_contents): Make single unwind protect to call both | |
2140 | Vset_auto_coding_function and Ffind_operation_coding_system. | |
2141 | ||
2142 | * insdel.c (adjust_markers_for_delete): Make it non-static. | |
2143 | ||
db0e466c SM |
2144 | 1999-12-04 Stefan Monnier <monnier@cs.yale.edu> |
2145 | ||
2146 | * regex.c (regex_compile): Recognize *?, +? and ?? as non-greedy | |
2147 | operators and handle them properly. | |
2148 | * regex.h (RE_ALL_GREEDY): New option. | |
2149 | (RE_UNMATCHED_RIGHT_PAREN_ORD): Moved to the end where alphabetic | |
2150 | sorting would put it. | |
2151 | (RE_SYNTAX_AWK, RE_SYNTAX_GREP, RE_SYNTAX_EGREP) | |
2152 | (_RE_SYNTAX_POSIX_COMMON): Use the new option to keep old behavior. | |
2153 | ||
22afa6e8 DL |
2154 | 1999-12-04 Dave Love <d.love@dl.ac.uk> |
2155 | ||
2156 | * m/arm.h: New file. | |
2157 | ||
40afb967 DL |
2158 | 1999-12-03 Dave Love <fx@gnu.org> |
2159 | ||
2160 | * editfns.c (Fmessage_or_box): Use use_dialog_box. | |
2161 | ||
ddf8eff5 GM |
2162 | 1999-12-02 Gerd Moellmann <gerd@gnu.org> |
2163 | ||
2164 | * s/usg5-4.h (LIBS_SYSTEM): Add -lgen because that's needed | |
2165 | for building with Motif. | |
2166 | ||
2167 | * m/iris4d.h (UNEXEC) [USG5_4]: Use unexsgi.o instead of | |
2168 | unexelf.o. | |
2169 | ||
2170 | * m/iris5d.h (UNEXEC): Use unexsgi.o instead of unexelf.o. | |
2171 | ||
fa09a82d DL |
2172 | 1999-12-01 Dave Love <fx@gnu.org> |
2173 | ||
2174 | * emacs.c (main): Set LANG=C iff AX3_2 defined. | |
2175 | ||
ddf8eff5 GM |
2176 | 1999-11-28 Gerd Moellmann <gerd@gnu.org> |
2177 | ||
2178 | * systime.h (EMACS_TIME_CMP, EMACS_TIME_EQ, EMACS_TIME_NE) | |
2179 | (EMACS_TIME_GT, EMACS_TIME_GE, EMACS_TIME_LT,EMACS_TIME_LE): New | |
2180 | macros. | |
2181 | ||
2182 | * config.in (HAVE_SETITIMER, HAVE_UALARM): New. | |
2183 | ||
fa09a82d DL |
2184 | 1999-11-28 eliz <eliz@dlpx1> |
2185 | ||
2186 | * emacs.c (synchronize_locale): Avoid compiler warnings about | |
2187 | pointer type mismatch. | |
2188 | ||
f9632fc8 GM |
2189 | 1999-11-28 Gerd Moellmann <gerd@gnu.org> |
2190 | ||
717d0121 GM |
2191 | * window.c (Fwindow_end): Don't call temp_set_pt_both with |
2192 | out of range position. | |
2193 | ||
f9632fc8 GM |
2194 | * xterm.c (XTread_socket) <ClientMessage, Xatom_Scrollbar>: |
2195 | Switch off busy-cursor by setting inhibit_busy_cursor to 2. | |
2196 | ||
59c65f1e EZ |
2197 | 1999-11-28 Eli Zaretskii <eliz@is.elta.co.il> |
2198 | ||
613a8346 EZ |
2199 | * charset.c (Fmake_char_internal): Print the charset ID when |
2200 | signalling an error. | |
2201 | ||
59c65f1e EZ |
2202 | * emacs.c (synchronize_locale): Avoid compiler warnings about |
2203 | pointer type mismatch. | |
2204 | ||
83c8f461 | 2205 | 1999-11-26 Richard M. Stallman <rms@gnu.org> |
d01f3570 RS |
2206 | |
2207 | * editfns.c (Fdelete_field): Make it noninteractive. Return nil. | |
2208 | ||
18df9369 GM |
2209 | 1999-11-26 Gerd Moellmann <gerd@gnu.org> |
2210 | ||
65a3ccf7 GM |
2211 | * puresize.h (BASE_PURESIZE): Increase to 550000. |
2212 | ||
b3b98592 GM |
2213 | * textprop.c (set_text_properties): New function. Like |
2214 | Fset_text_properties, but with additional parameter | |
2215 | SIGNAL_AFTER_CHANGE_P. If that is nil, don't signal after | |
2216 | changes. | |
2217 | (Fset_text_properties): Use it. | |
2218 | ||
2219 | * insdel.c (insert_1_both): Call set_text_properties with last | |
2220 | parameter nil so that no after changes will be signaled. | |
2221 | ||
2222 | * lisp.h: Add prototype for set_text_properties. | |
2223 | ||
18df9369 GM |
2224 | * xfaces.c (set_lface_from_font_name): Fix previous change. |
2225 | (recompute_basic_faces): Change assert to abort. | |
2226 | ||
71a8e74b DL |
2227 | 1999-11-25 Dave Love <fx@gnu.org> |
2228 | ||
2229 | * fns.c (Fnthcdr, Fnreverse): Inline cdr. | |
2230 | (Fmember, Fdelq, Fdelete): Inline car. | |
2231 | (Fy_or_n_p): Doc fix. | |
2232 | ||
bc6a5782 GM |
2233 | 1999-11-25 Gerd Moellmann <gerd@gnu.org> |
2234 | ||
3221576b | 2235 | * xfaces.c (set_lface_from_font_name): New parameter may_fail_p. |
18df9369 | 2236 | Callers changed. If specified font name is bogus, and may_fail_p |
3221576b GM |
2237 | is not set, try to use a reasonable default. |
2238 | ||
bc6a5782 GM |
2239 | * dispnew.c (direct_output_for_insert): Set glyph row's |
2240 | displays_text_p flag. Correct window's window_end_vpos if | |
2241 | necessary. | |
2242 | ||
0c8559bb PE |
2243 | 1999-11-25 Paul Eggert <eggert@twinsun.com> |
2244 | ||
2245 | * emacs.c (fixup_locale): Don't bother to record initial locale. | |
2246 | (synchronize_locale): If the desired locale is nil, | |
2247 | treat it as if it were the empty string, | |
2248 | so that we set the locale from the environment. | |
2249 | ||
35737351 KH |
2250 | 1999-11-25 Kenichi Handa <handa@etl.go.jp> |
2251 | ||
2252 | * fileio.c (Finsert_file_contents): Set buffer-file-coding-system | |
2253 | of the current buffer via Fset. | |
2254 | ||
5562b47f DL |
2255 | 1999-11-24 Dave Love <fx@gnu.org> |
2256 | ||
2257 | * xfns.c: Don't duplicate Qdisplay definition done elsewhere. | |
2258 | ||
2259 | * xfaces.c: Don't duplicate Qmode_line definition done elsewhere. | |
2260 | ||
2261 | * xfns.c: Don't duplicate Qdisplay definition done elsewhere. | |
2262 | ||
00da0e4a GM |
2263 | 1999-11-24 Gerd Moellmann <gerd@gnu.org> |
2264 | ||
2265 | * lisp.h (enum pvec_type): Put PVEC_FLAG in #if 0. | |
2266 | ||
2267 | * emacs.c (PVEC_FLAG): New variable. | |
2268 | ||
b1775dc1 GM |
2269 | 1999-11-23 Gerd Moellmann <gerd@gnu.org> |
2270 | ||
2271 | * unexaix.c (unexec): Use unsigned instead of uintptr_t because | |
2272 | that fails on IBM PowerPC, AIX 4.2. | |
2273 | ||
08de6200 EZ |
2274 | 1999-11-22 Eli Zaretskii <eliz@is.elta.co.il> |
2275 | ||
2276 | * buffer.c (syms_of_buffer): Add %z, %Z, %m and %& to the doc | |
2277 | string of mode-line-format. Remove the obsolete %t. | |
2278 | ||
02fda8ff GM |
2279 | 1999-11-22 Gerd Moellmann <gerd@gnu.org> |
2280 | ||
f2fa858f GM |
2281 | * dispnew.c (direct_output_for_insert): Increment glyph positions |
2282 | for glyphs from buffer text only. | |
2283 | ||
02fda8ff GM |
2284 | * emacs.c (gdb_valbits, gdb_gctypebits, gdb_emacs_intbits) |
2285 | (gdb_data_seg_bits): New variables. | |
2286 | ||
2287 | * lisp.h (enum gdb_lisp_params): Put in #if 0, since it doesn't | |
2288 | work on systems not allowing enumerators > INT_MAX, and it | |
2289 | won't work if EMACS_INT is long long. | |
2290 | ||
1b0d24e7 PE |
2291 | 1999-11-22 Paul Eggert <eggert@twinsun.com> |
2292 | ||
2293 | Port to SunOS 4.1.x again. Help out with Alpha port. | |
2294 | Rename messages-locale to system-messages-locale, | |
2295 | and likewise for time-locale. | |
2296 | ||
2297 | * callproc.c (strerror): Remove decl. | |
2298 | * fileio.c (strerror): Likewise. | |
2299 | * process.c (strerror): Likewise. | |
2300 | * emacs.c (strerror): Likewise. | |
2301 | (Vsystem_messages_locale): Renamed from Vmessages_locale. | |
2302 | All uses changed. | |
2303 | (Vprevious_system_messages_locale): Likewise, from | |
2304 | Vprevious_messages_locale. | |
2305 | (Vsystem_time_locale): Likewise, from Vtime_locale. | |
2306 | (Vprevious_system_time_locale): Likewise, from Vprevious_time_locale. | |
2307 | (ABORT_RETURN_TYPE): New macro. | |
2308 | (abort): Return type is now ABORT_RETURN_TYPE. | |
2309 | (main): Always invoke init_signals, even if POSIX_SIGNALS is not | |
2310 | defined. | |
2311 | (syms_of_emacs): messages-locale -> system-messages-locale, | |
2312 | previous-messages-locale -> previous-system-messages-locale, | |
2313 | time-locale -> system-time-locale, | |
2314 | previous-time-locale -> previous-system-time-locale. | |
2315 | ||
2316 | * gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined. | |
2317 | (const): Do not define; that's config.h's job. | |
2318 | (<limits.h>): Include if HAVE_LIMITS_H is defined. | |
2319 | (CHAR_BIT): Move test for definedness outside of limits.h condition. | |
2320 | (<stddef.h>): Include if STDC_HEADERS is defined. | |
2321 | (FREE_RETURN_TYPE): New macro. | |
2322 | (free): Return type is now FREE_RETURN_TYPE. | |
2323 | ||
2324 | * lisp.h (synchronize_system_time_locale): Renamed from | |
2325 | synchronize_time_locale. All uses changed. | |
2326 | (synchronize_system_messages_locale): Likewise, from | |
2327 | synchronize_messages_locale. | |
2328 | ||
2329 | * m/alpha.h (malloc, realloc, calloc): Remove decls; | |
2330 | stdlib.h now does this. | |
2331 | ||
2332 | * process.c (sys_siglist): Remove. | |
2333 | ||
2334 | * s/sunos4-0.h (ABORT_RETURN_TYPE, FREE_RETURN_TYPE): | |
2335 | New macros. | |
2336 | ||
2337 | * syntax.c (scan_sexps_forward): Use abort, not assert. | |
2338 | ||
2339 | * sysdep.c (my_sys_siglist): New var. | |
2340 | (sys_siglist): New macro. Remove old initialized vars of same name. | |
2341 | (init_signals): Initialize sys_siglist. | |
2342 | ||
2343 | * xfns.c (abort): Remove decl; stdlib.h now does this. | |
2344 | ||
0dcd5b54 DL |
2345 | 1999-11-18 Dave Love <fx@gnu.org> |
2346 | ||
946173ad DL |
2347 | * filelock.c: Add forward declaration for get_boot_time_1. |
2348 | ||
0dcd5b54 DL |
2349 | * dispnew.c (Finternal_show_cursor_p): Fix doc string. |
2350 | ||
71447e8f GM |
2351 | 1999-11-18 Gerd Moellmann <gerd@gnu.org> |
2352 | ||
2353 | * buffer.h (struct buffer_text): Add comment about moving | |
2354 | buffer text if REL_ALLOC is defined. | |
2355 | ||
eeedff63 KH |
2356 | 1999-11-18 Kenichi Handa <handa@etl.go.jp> |
2357 | ||
2358 | * lisp.h (KEY_DESCRIPTION_SIZE): New macro. | |
2359 | ||
2360 | * keyboard.c (echo_char): Use KEY_DESCRIPTION_SIZE to check free | |
2361 | memory for push_key_description. | |
2362 | ||
2363 | * keymap.c (Fsingle_key_description): Use KEY_DESCRIPTION_SIZE to | |
2364 | allocate memory for push_key_description. | |
2365 | (describe_buffer_bindings): Likewise. | |
2366 | ||
5d7e4a2c GM |
2367 | 1999-11-17 Gerd Moellmann <gerd@gnu.org> |
2368 | ||
2369 | * xfns.c (Fx_show_busy_cursor): Doc-fix. | |
2370 | (Fx_hide_busy_cursor): Ditto. | |
2371 | ||
2372 | 1999-11-17 Marco Walther <walther@siemens-pyramid.com> | |
2373 | ||
2374 | * unexsni.c (unexec): Handle .rel.dyn section. | |
2375 | ||
b5b41e02 DL |
2376 | 1999-11-16 Dave Love <fx@gnu.org> |
2377 | ||
2378 | * doc.c (Fdocumentation): Remove gcpro here too. | |
2379 | ||
e35b6123 GM |
2380 | 1999-11-16 Gerd Moellmann <gerd@gnu.org> |
2381 | ||
2382 | * keyboard.c (command_loop_1): Remove no_redisplay. | |
2383 | ||
83c8f461 | 2384 | 1999-11-16 Richard M. Stallman <rms@gnu.org> |
0a14b9bb GM |
2385 | |
2386 | * print.c (PRINTPREPARE): Don't call setup_echo_area_for_printing | |
2387 | in noninteractive. | |
2388 | ||
b05d3bee GM |
2389 | 1999-11-14 Gerd Moellmann <gerd@gnu.org> |
2390 | ||
5bcfeb49 GM |
2391 | * xdisp.c (ensure_echo_area_buffers): New. |
2392 | (with_echo_area_buffer): Use it. | |
2393 | (setup_echo_area_for_printing): Ditto. | |
2394 | ||
b05d3bee GM |
2395 | * buffer.c (indicate-empty-lines): Doc-fix. |
2396 | ||
9b2e6e4c GM |
2397 | 1999-11-12 Gerd Moellmann <gerd@gnu.org> |
2398 | ||
e7f90eab GM |
2399 | * term.c (term_init): If "op" isn't available, don't support color |
2400 | because we can't switch back to the default foreground and | |
2401 | background. | |
2402 | ||
9b2e6e4c GM |
2403 | * doc.c (Fdocumentation_property): Remove GCPRO because |
2404 | Fsubstitute_command_keys gcpro's the string. | |
2405 | ||
1bf21027 KH |
2406 | 1999-11-12 Kenichi Handa <handa@etl.go.jp> |
2407 | ||
2408 | * editfns.c (Ftranslate_region): Check the buffer multibyteness. | |
2409 | ||
3bc6df53 GM |
2410 | 1999-11-11 Gerd Moellmann <gerd@gnu.org> |
2411 | ||
2412 | * print.c, keymap.c, indent.c, insdel.c, keyboard.c, intervals.c, | |
2413 | lread.c, textprop.c, undo.c, emacs.c, lisp.h, intervals.h, | |
2414 | buffer.h, config.in, Makefile.in: Remove USE_TEXT_PROPERTIES. | |
2415 | ||
35a5514b GM |
2416 | 1999-11-10 Gerd Moellmann <gerd@gnu.org> |
2417 | ||
2418 | * xfns.c (QCuser_data): Removed. | |
2419 | (syms_of_xfns): Initialization of QCuser_data removed. | |
2420 | (parse_image_spec): Don't handle :user-data specially. Allow | |
2421 | unknown keys. Remove parameter ALLOW_OTHER_KEYS. | |
2422 | (xbm_image_p, xbm_load, xpm_image_p, pbm_image_p, png_image_p) | |
2423 | (tiff_image_p, jpeg_image_p, gif_image_p, gs_image_p): Call | |
2424 | parse_image_spec accordingly. | |
2425 | ||
83c8f461 | 2426 | 1999-11-09 Richard M. Stallman <rms@gnu.org> |
4ea68fcc RS |
2427 | |
2428 | * cmds.c (Fbeginning_of_line): Doc fix. | |
2429 | (Fend_of_line): Doc fix. | |
2430 | ||
2431 | * editfns.c (Fline_beginning_position): If N is not 1, | |
2432 | pass t to Fconstrain_to_field for ESCAPE-FROM-EDGE. | |
2433 | ||
2434 | * syntax.c (Fforward_word): Handle fields even if would have hit | |
2435 | an edge of the buffer. Return nil if affected by fields. | |
2436 | ||
83c8f461 | 2437 | 1999-11-09 Richard M. Stallman <rms@gnu.org> |
4ea68fcc RS |
2438 | |
2439 | * editfns.c (preceding_pos): Function deleted. | |
2440 | (text_property_stickiness): Decrement POS directly. | |
2441 | Fix a confusion that used PT instead of POS. | |
2442 | ||
2443 | * editfns.c (find_field): Properly handle the case | |
2444 | of a field boundary where `field' inherits from neither side. | |
2445 | ||
2446 | * editfns.c (Ffield_beginning, Ffield_end): Doc fixes. | |
2447 | (Ferase_field, Ffield_string, Ffield_string_no_properties): Doc fixes. | |
2448 | ||
fa9aabf6 GM |
2449 | 1999-11-08 Gerd Moellmann <gerd@gnu.org> |
2450 | ||
2451 | * bytecode.c (Fbyte_code) <BinsertN, Bcall>: Do the | |
2452 | BEFORE_POTENTIAL_GC before DISCARD. | |
2453 | ||
4015b3c0 GM |
2454 | 1999-11-07 Gerd Moellmann <gerd@gnu.org> |
2455 | ||
033a5fa3 GM |
2456 | * alloc.c (Fgarbage_collect): Call unmark_byte_stack. |
2457 | ||
2458 | * lisp.h: Add prototype for unmark_byte_stack. | |
2459 | ||
2460 | * bytecode.c (mark_byte_stack): Use XMARKBIT and XMARK. | |
2461 | (unmark_byte_stack): Renamed from relocate_byte_pcs. Use | |
2462 | XUNMARK. | |
2463 | ||
55b064bd GM |
2464 | * xdisp.c (resize_mini_window): Fix computation of needed |
2465 | mini-window height. | |
2466 | ||
2467 | * alloc.c, buffer.c, editfns.c, xdisp.c: Remove conditional | |
2468 | compilation on USE_TEXT_PROPERTIES. | |
01e9b9df | 2469 | |
4015b3c0 | 2470 | * Fbyte_code: Use block statements in cases and declare v1 and v2 |
60af03f1 | 2471 | locally there. Rearrange case statements so that those most |
4015b3c0 GM |
2472 | frequently executed come first. Avoid goto's in frequently |
2473 | executed cases. | |
2474 | ||
fe512f27 GM |
2475 | 1999-11-05 Gerd Moellmann <gerd@gnu.org> |
2476 | ||
dd59e217 GM |
2477 | * bytecode.c (Fbyte_code): Use BEFORE_POTENTIAL_GC and |
2478 | AFTER_POTENTIAL_GC around internal_catch. | |
2479 | ||
bcf28080 GM |
2480 | * alloc.c (Fgarbage_collect): Call mark_byte_stack and |
2481 | relocate_byte_pcs. | |
2482 | (init_alloc_once, init_alloc): Set byte_stack_list to null. | |
2483 | ||
2484 | * eval.c (struct catchtag): Add member byte_stack. | |
2485 | (internal_catch, Fcondition_case, internal_condition_case) | |
dd59e217 | 2486 | (internal_condition_case_1): Save value of byte_stack_list in |
bcf28080 GM |
2487 | catchtag. |
2488 | (unwind_to_catch): Restore byte_stack_list from catchtag. | |
2489 | ||
2490 | * lisp.h: Add prototypes for new functions in bytecode.c. | |
2491 | Add extern declaration for byte_stack_list. | |
2492 | ||
2493 | * bytecode.c (struct byte_stack): New. | |
2494 | (byte_stack_list, mark_byte_stack, relocate_byte_pcs): New | |
2495 | (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): New. | |
2496 | (FETCH, PUSH, POP, DISCARD, TOP, MAYBE_GC): Rewritten. | |
2497 | (HANDLE_RELOCATION): Removed. | |
2498 | (Fbyte_code): Use byte_stack structures. | |
2499 | ||
4d59c34c GM |
2500 | * filelock.c (Ffile_locked_p): Make FILENAME a required argument. |
2501 | ||
fe512f27 GM |
2502 | * buffer.c (syms_of_buffer): Extend documentation of |
2503 | mode-line-format. | |
2504 | ||
60b64cd6 GM |
2505 | 1999-11-04 Gerd Moellmann <gerd@gnu.org> |
2506 | ||
2507 | * editfns.c (Fdelete_field): Renamed from Ferase_field. | |
2508 | ||
2509 | * minibuf.c (do_completion, Fminibuffer_complete_word): Use | |
2510 | Ferase_field instead of Fdelete_field. | |
2511 | ||
b51b619b GM |
2512 | 1999-11-03 Gerd Moellmann <gerd@gnu.org> |
2513 | ||
2514 | * dispnew.c (Finternal_show_cursor): Change it to set the | |
2515 | cursor on/off, not toggle its state. | |
2516 | (Finternal_show_cursor_p): New. | |
2517 | (syms_of_display): Defsubr Sinternal_show_cursor_p. | |
2518 | ||
5865af0d DL |
2519 | 1999-11-03 Dave Love <fx@gnu.org> |
2520 | ||
2521 | * charset.c (split_non_ascii_string): Define return value. | |
2522 | ||
82a700f3 GM |
2523 | 1999-11-03 Gerd Moellmann <gerd@gnu.org> |
2524 | ||
edfef199 GM |
2525 | * minibuf.c (string_to_object): New. |
2526 | (read_minibuf_noninteractive): New. | |
2527 | (read_minibuf): Call read_minibuf_noninteractive if | |
2528 | noninteractive. Use string_to_object. | |
2529 | ||
82a700f3 GM |
2530 | * doc.c (Fdocumentation_property): Fix bug bypassing UNGCPRO. |
2531 | ||
b5540f0d DL |
2532 | 1999-11-02 Dave Love <fx@gnu.org> |
2533 | ||
e69dcd60 DL |
2534 | * gnu-linux.h: Use SIGCHLD, not SIGCLD (not in glibc 2.1). |
2535 | ||
827a1788 DL |
2536 | * process.c: Define _GNU_SOURCE before config.h to get strsignal |
2537 | declared with glibc2. | |
b5540f0d | 2538 | |
a69a6e61 GM |
2539 | 1999-11-02 Gerd Moellmann <gerd@gnu.org> |
2540 | ||
2541 | * lisp.h (QUIT): Give it statement form. | |
2542 | ||
87e21fbd DL |
2543 | 1999-11-02 Dave Love <fx@gnu.org> |
2544 | ||
2545 | * eval.c (init_eval): Conditionalize declaration of gcpro_level. | |
2546 | ||
1b335865 GM |
2547 | 1999-11-02 Gerd Moellmann <gerd@gnu.org> |
2548 | ||
9fb5e03d GM |
2549 | * xfns.c (QCuser_data): New. |
2550 | (syms_of_xfns): Initialize QCuser_data. | |
2551 | (parse_image_spec): Ignore :user-data DATA properties. | |
2552 | ||
1b335865 GM |
2553 | * xdisp.c (display_line): Set charpos of first glyph in blank |
2554 | lines not corresponding to any text to -1, even if no glyphs are | |
2555 | filled in in that line. | |
2556 | ||
e76f1c44 GM |
2557 | 1999-11-01 Gerd Moellmann <gerd@gnu.org> |
2558 | ||
36fcd3d9 GM |
2559 | * xfns.c (png_load) [PNG_READ_sRGB_SUPPORTED]: Put code using |
2560 | png_get_sRGB in #ifdef. | |
2561 | ||
111259b4 GM |
2562 | * dispnew.c (Finternal_show_cursor): Renamed from Fshow_cursor. |
2563 | (syms_of_display): Use the new name. | |
2564 | ||
dd5c96e8 GM |
2565 | * textprop.c (verify_interval_modification): Signal text-read-only |
2566 | instead of calling error. | |
2567 | ||
db8878fb GM |
2568 | * data.c (Qtext_read_only): New built-in error. |
2569 | (syms_of_data): Initialize it. | |
2570 | ||
2571 | * lisp.h: Add extern declaration for Qtext_read_only. | |
2572 | ||
e76f1c44 GM |
2573 | * syntax.c: Remove whitespace after open or in front of closing |
2574 | parentheses. | |
2575 | ||
83c8f461 | 2576 | 1999-11-01 Richard M. Stallman <rms@gnu.org> |
cb3a6c48 GM |
2577 | |
2578 | * Makefile.in (w16select.o, sound.o): Don't depend on lisp.h. | |
2579 | ||
7843e09c GM |
2580 | 1999-10-31 Gerd Moellmann <gerd@gnu.org> |
2581 | ||
575ed805 GM |
2582 | * xdisp.c (resize_mini_window): Compute needed height differently. |
2583 | ||
7843e09c GM |
2584 | * fns.c (Flength): Unroll loop over lists. |
2585 | ||
2586 | * xdisp.c (append_space): Return non-zero if space was appended. | |
2587 | (display_line): Set charpos of first glyph to -1 only if that | |
2588 | glyph is the space added by append_glyph. | |
2589 | ||
83c8f461 | 2590 | 1999-10-30 Richard M. Stallman <rms@gnu.org> |
cb3a6c48 GM |
2591 | |
2592 | * print.c (strout): Consider `noninteractive' and use stdout | |
2593 | only when PRINTCHARFUN is t. | |
2594 | ||
2595 | * lisp.h (struct gcpro) [DEBUG_GCPRO]: New field `level'. | |
2596 | (gcpro_level): Declare it extern. | |
2597 | [DEBUG_GCPRO] (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5): | |
2598 | Alternate definitions that set `level' and increment `gcpro_level'. | |
2599 | [DEBUG_GCPRO] (UNGCPRO): Alternate definition that checks gcpro_level. | |
2600 | ||
2601 | * eval.c [DEBUG_GCPRO] (gcpro_level): New variable. | |
2602 | (init_eval) [DEBUG_GCPRO]: Initialize it. | |
2603 | (unwind_to_catch) [DEBUG_GCPRO]: Set gcpro_level | |
2604 | from remaining gcprolist. | |
2605 | ||
3636f7a3 KH |
2606 | 1999-10-29 Kenichi Handa <handa@etl.go.jp> |
2607 | ||
2608 | * coding.c (code_convert_region): Update `dst' correctly. | |
2609 | ||
a2ad7096 GM |
2610 | 1999-10-28 Gerd Moellmann <gerd@gnu.org> |
2611 | ||
2612 | * fns.c (Fmemq, Fassq, Frassq, assq_no_quit, Fassoc) | |
2613 | (Frassoc): Rewritten. | |
2614 | ||
1e3196e8 GM |
2615 | 1999-10-27 Noah Friedman <friedman@splode.com> |
2616 | ||
2617 | * s/gnu-linux.h [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'. | |
2618 | Define PTY_NAME_SPRINTF. | |
2619 | Redefine PTY_TTY_NAME_SPRINTF. | |
2620 | * config.in: Add undef for HAVE_DEV_PTMX. | |
2621 | ||
83c8f461 | 2622 | 1999-10-26 Richard M. Stallman <rms@gnu.org> |
4ea68fcc RS |
2623 | |
2624 | * regex.c (POP_FAILURE_POINT): Use failure_id.integer | |
2625 | as arg to DEBUG_POP and DEBUG_PRINT. | |
2626 | ||
83c8f461 | 2627 | 1999-10-27 Richard M. Stallman <rms@gnu.org> |
17dbfaad GM |
2628 | |
2629 | * data.c (Qad_activate_internal): Renamed from Qad_activate. | |
2630 | (Ffset): Call Qad_activate_internal. | |
2631 | (syms_of_data): Initialize Qad_activate_internal. | |
2632 | ||
26922151 GM |
2633 | 1999-10-27 Gerd Moellmann <gerd@gnu.org> |
2634 | ||
2635 | * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing if | |
2636 | Vterminal_frame is selected and Vwindow_system is non-nil. | |
2637 | ||
67a5596f GM |
2638 | 1999-10-26 Gerd Moellmann <gerd@gnu.org> |
2639 | ||
2bea706b GM |
2640 | * xdisp.c (echo_area_display): Put previous change in #if 0. |
2641 | ||
67a5596f GM |
2642 | * emacs.c (standard_args): Add `file' as synonym for `visit', |
2643 | `execute' as synonym for `eval'. | |
2644 | (main): Add new options to usage message. | |
2645 | ||
81dc5de5 GM |
2646 | 1999-10-25 Gerd Moellmann <gerd@gnu.org> |
2647 | ||
2648 | * data.c (Qhash_table): New. | |
2649 | (Ftype_of): Return it for hash tables. | |
2650 | (syms_of_data): Initialize Qhash_table. | |
2651 | ||
83c8f461 | 2652 | 1999-10-25 Richard M. Stallman <rms@gnu.org> |
bd3c545d GM |
2653 | |
2654 | * regex.c (POP_FAILURE_POINT): Extract failure_id as an integer. | |
2655 | ||
66e4690f | 2656 | 1999-10-24 Ken Raeburn <raeburn@gnu.org> |
3a7093d8 | 2657 | |
7539e11f KR |
2658 | * alloc.c: Undef HIDE_LISP_IMPLEMENTATION before including |
2659 | lisp.h. | |
2660 | ||
2661 | * buffer.c (Fbuffer_list, Fget_file_buffer, get_truename_buffer, | |
2662 | Fbuffer_local_variables, Fother_buffer, record_buffer, | |
2663 | set_buffer_internal_1, Fbury_buffer, Fkill_all_local_variables, | |
2664 | swap_out_buffer_local_variables, overlays_at, overlays_in, | |
2665 | overlay_touches_p, overlay_strings, recenter_overlay_lists, | |
2666 | fix_overlays_in_range, fix_overlays_before, Foverlay_get, | |
2667 | Foverlay_put, report_overlay_modification, evaporate_overlays): | |
2668 | Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member | |
2669 | references. | |
2670 | * data.c (Fcar, Fcar_safe, Fcdr, Fcdr_safe, Fsetcar, Fsetcdr, | |
2671 | swap_in_symval_forwarding, set_internal, default_value, | |
2672 | Fset_default, Fmake_variable_buffer_local, Fmake_local_variable, | |
2673 | Fmake_variable_frame_local, Flocal_variable_p, | |
2674 | Flocal_variable_if_set_p, arithcompare, Fzerop, cons_to_long, | |
2675 | Fnumber_to_string, float_arith_driver, Fadd1, Fsub1): Likewise. | |
2676 | * dispnew.c (Fframe_or_buffer_changed_p): Likewise. | |
2677 | * emacs.c (main): Likewise. | |
2678 | * fontset.c (fs_load_font, fs_register_fontset, | |
2679 | CACHED_FONTSET_NAME, CACHED_FONTSET_REGEX, Fquery_fontset, | |
2680 | Fnew_fontset, Fset_fontset_font): Likewise. | |
2681 | * frame.c (do_switch_frame, next_frame, prev_frame, | |
2682 | other_visible_frames, Fdelete_frame, Fvisible_frame_list): | |
2683 | Likewise. | |
2684 | * keyboard.c (read_char, help_char_p, event_to_kboard, | |
2685 | kbd_buffer_get_event, timer_start_idle, timer_check, | |
2686 | make_lispy_event, apply_modifiers, reorder_modifiers, | |
2687 | Fevent_convert_list, lucid_event_type_list_p, menu_bar_items, | |
2688 | menu_bar_one_keymap, menu_item_eval_property_1, parse_menu_item, | |
2689 | tool_bar_items, read_char_x_menu_prompt, read_key_sequence, | |
2690 | Fcommand_execute, Fexecute_extended_command): Likewise. | |
2691 | * minibuf.c (read_minibuf, get_minibuffer, Ftry_completion, | |
2692 | Fall_completions): Likewise. | |
2693 | * window.c (Fset_window_margins): Likewise. | |
2694 | ||
2695 | * callint.c (quotify_args): Don't explicitly use struct | |
2696 | Lisp_Cons, use Lisp_Object and XCAR/XCDR instead. | |
2697 | ||
3a7093d8 KR |
2698 | * s/netbsd.h (HAVE_GETLOADAVG): Define as 1. |
2699 | (UNEXEC, START_FILES, LIB_STANDARD, LIB_GCC): Define ELF versions, | |
2700 | if __ELF__ is defined. | |
2701 | ||
2a3d7146 GM |
2702 | 1999-10-24 Gerd Moellmann <gerd@gnu.org> |
2703 | ||
2704 | * window.c (Fnext_window): Add a QUIT in the loop. | |
2705 | ||
8ac52782 GM |
2706 | 1999-10-23 Gerd Moellmann <gerd@gnu.org> |
2707 | ||
2708 | * Makefile.in (bootstrap, bootstrap-emacs, bootstrap-temacs): | |
2709 | New targets. | |
2710 | ||
05f0d15a DL |
2711 | 1999-10-22 Dave Love <fx@gnu.org> |
2712 | ||
2713 | * emacs.c (main): Enable profiling conditional on __linux also. | |
2714 | ||
882fb0e6 GM |
2715 | 1999-10-20 Gerd Moellmann <gerd@gnu.org> |
2716 | ||
2717 | * xrdb.c (x_load_resources): Set default resources for resource | |
2718 | classes instead of for the specific Emacs. | |
2719 | ||
b5f5bc31 GM |
2720 | 1999-10-19 Gerd Moellmann <gerd@gnu.org> |
2721 | ||
66f4dd69 GM |
2722 | * s/freebsd.h (HAVE_GETLOADAVG): Define as 1 because config.h |
2723 | defines it that way. | |
2724 | ||
b5f5bc31 GM |
2725 | * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing |
2726 | if selected_frame is equal to Vterminal_frame. | |
2727 | ||
68c45bf0 PE |
2728 | 1999-10-19 Paul Eggert <eggert@twinsun.com> |
2729 | ||
2730 | Add support for large files, 64-bit Solaris, system locale codings. | |
2731 | ||
2732 | * Makefile.in (emacs): Set the LC_ALL environment variable to "C" | |
2733 | when dumping, so that the dumped Emacs doesn't have stray locale info. | |
2734 | (dired.o): Depend on systime.h. | |
2735 | (editfns.o): Depend on coding.h. | |
2736 | ||
2737 | * alloc.c, buffer.c, callproc.c, ccl.c, charset.c, coding.c, data.c, | |
2738 | dispnew.c, editfns.c, emacs.c, filelock.c, floatfns.c, hftctl.c, | |
2739 | keyboard.c, process.c, sysdep.c, unexelf.c, unexhp9k800.c, | |
2740 | unexsunos4.c, vmsfns.c, vmsgmalloc.c, w32faces.c, w32menu.c, w32term.c, | |
2741 | w32xfns.c, xfaces.c, xfns.c, xmenu.c, xterm.c: | |
2742 | Include <config.h> before any system include files. | |
2743 | ||
2744 | * alloc.c, buffer.c, ccl.c, data.c, editfns.c, emacs.c, eval.c, | |
2745 | fileio.c, filelock.c, frame.c, insdel.c, keymap.c, lread.c, | |
2746 | m/alpha.h, print.c, search.c, sysdep.c, xdisp.c, xfaces.c, xfns.c, | |
2747 | xmenu.c, xterm.c: | |
2748 | Do not include <stdlib.h>, as <config.h> does this now. | |
2749 | ||
2750 | * callproc.c (Fcall_process): | |
2751 | Synchronize messages locale before invoking strerror. | |
2752 | Decode resulting string with locale-coding-system. | |
2753 | ||
2754 | * coding.c (Vlocale_coding_system): New var. | |
2755 | (syms_of_coding): Adjust to above change. | |
2756 | (emacs_strerror): New function. | |
2757 | ||
2758 | * coding.h (emacs_strerror, Vlocale_coding_system): New decls. | |
2759 | ||
2760 | * config.in (HAVE_STDIO_EXT_H, HAVE_TM_GMTOFF, HAVE___FPENDING, | |
2761 | HAVE_FTELLO, HAVE_GETLOADAVG, HAVE_MBLEN, HAVE_MBRLEN, | |
2762 | HAVE_STRSIGNAL): New macros. | |
2763 | (BITS_PER_LONG): Default to 64 if _LP64 is defined. | |
2764 | <stdlib.h>: Include if HAVE_STDLIB_H is defined and NOT_C_CODE isn't. | |
2765 | ||
2766 | * dired.c: Include "systime.h". | |
2767 | (Ffile_attributes): Do not cast s.st_size to int; this loses | |
2768 | information if int is 32 bits but st_size and EMACS_INT are larger. | |
2769 | Treat large device numbers like large inode numbers. | |
2770 | ||
2771 | * dispnew.c (PENDING_OUTPUT_COUNT): Use __fpending if available. | |
2772 | ||
2773 | * editfns.c: Include coding.h. | |
2774 | (emacs_strftime): Remove decl. | |
2775 | (emacs_strftimeu): New decl. | |
2776 | (emacs_memftimeu): Renamed from emacs_memftime; new arg UT. | |
2777 | Use emacs_strftimeu instead of emacs_strftime. | |
2778 | (Fformat_time_string): Convert format string using | |
2779 | Vlocale_coding_system, and convert result back. Synchronize time | |
2780 | locale before invoking lower level function. Invoke | |
2781 | emacs_memftimeu, passing ut, instead of emacs_memftime. | |
2782 | ||
2783 | * emacs.c: Include <locale.h> if HAVE_SETLOCALE is defined. | |
2784 | (Vmessages_locale, Vprevious_messages_locale, Vtime_locale, | |
2785 | Vprevious_time_locale): New variables. | |
2786 | (main): Invoke setlocale early, so that initial error messages are | |
2787 | localized properly. But skip locale-setting if LC_ALL is "C". | |
2788 | Fix up locale when it's safe to do so. | |
2789 | (fixup_locale): Moved here from xterm.c. | |
2790 | (synchronize_locale, synchronize_time_locale, | |
2791 | synchronize_messages_locale): New functions. | |
2792 | (syms_of_emacs): Accommodate above changes. | |
2793 | ||
2794 | * fileio.c (report_file_error): Convert strerror output according | |
2795 | to Vlocale_coding_system. | |
2796 | (Finsert_file_contents): Check for arithmetic overflow in | |
2797 | computations that depend on file size. Report IO errors | |
2798 | with emacs_strerror, not strerror. | |
2799 | ||
2800 | * fns.c (Fgethash): Declare dflt parameter. | |
2801 | ||
2802 | * gmalloc.c: Do not define const to nothing if HAVE_CONFIG_H | |
2803 | is defined; that's config.h's job. | |
2804 | ||
2805 | * lisp.h (EMACS_INT, BITS_PER_EMACS_INT, EMACS_UINT): If _LP64, | |
2806 | default these values to long, BITS_PER_LONG, and unsigned long. | |
2807 | (VALBITS, MARKBIT, XINT): Do not assume 32-bit EMACS_INT. | |
2808 | (PNTR_COMPARISON_TYPE): Default to EMACS_UINT, not to unsigned int. | |
2809 | (code_convert_string_norecord, fixup_locale, | |
2810 | synchronize_messages_locale, synchronize_time_locale, | |
2811 | emacs_open, emacs_close, emacs_read, emacs_write): New decls. | |
2812 | All Emacs callers of open, close, read, write changed to use | |
2813 | emacs_open, emacs_close, emacs_read, emacs_write. | |
2814 | ||
2815 | * lread.c (file_offset, file_tell): New macros. All uses of ftell | |
2816 | changed to file_tell. | |
2817 | (saved_doc_string_position, prev_saved_doc_string_position): Now | |
2818 | of type file_offset. | |
2819 | (init_lread): Do not fix locale here; fixup_locale now does this. | |
2820 | ||
2821 | * m/amdahl.h, s/usg5-4.h: | |
2822 | (NSIG): Remove. | |
2823 | (NSIG_MINIMUM): New macro. | |
2824 | ||
2825 | * m/cydra5.h, m/dpx2.h, m/mips.h, m/pfa50.h, m/sps7.h, m/stride.h, | |
2826 | m/ustation.h, s/gnu-linux.h, s/hpux.h, s/iris3-5.h, s/iris3-6.h, | |
2827 | s/umips.h, s/usg5-4.h: | |
2828 | (SIGIO): Do not undef. | |
2829 | (BROKEN_SIGIO): New macro. | |
2830 | ||
2831 | * m/ustation.h: | |
2832 | (SIGTSTP): Do not undef. | |
2833 | (BROKEN_SIGTSTP): New macro. | |
2834 | ||
2835 | * s/gnu-linux.h: | |
2836 | (SIGPOLL, SIGURG): Do not undef. | |
2837 | (BROKEN_SIGPOLL, BROKEN_SIGURG): New macros. | |
2838 | ||
2839 | * s/ptx4.h: | |
2840 | (SIGINFO): Do not undef. | |
2841 | (BROKEN_SIGINFO): New macros. | |
2842 | ||
2843 | * m/delta.h, s/ptx.h, s/template.h: Doc fix. | |
2844 | ||
2845 | * mktime.c, strftime.c: Update to glibc 2.1.2 version, with | |
2846 | some Emacs-related changes merged. | |
2847 | ||
2848 | * print.c (float_to_string): Prepend "-" to representation of a | |
2849 | NaN if the NaN is negative. | |
2850 | ||
2851 | * process.c (sys_siglist): Omit if HAVE_STRSIGNAL. | |
2852 | (wait_reading_process_input): Use emacs_strerror, not strerror. | |
2853 | ||
2854 | * process.c (status_message, sigchld_handler): Synchronize locale, | |
2855 | then use strsignal istead of sys_siglist. | |
2856 | * w32proc.c (sys_wait): Likewise. | |
2857 | ||
2858 | * s/aix3-1.h, s/bsd4-1.h, s/dgux.h, s/gnu-linux.h, s/hiuxmpp.h, | |
2859 | s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/osf1.h, s/rtu.h, | |
2860 | s/sunos4-1.h, s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, | |
2861 | s/usg5-2.h, s/usg5-3.h, s/xenix.h: | |
2862 | (open, close, read, write, INTERRUPTIBLE_OPEN, | |
2863 | INTERRUPTIBLE_CLOSE, INTERRUPTIBLE_IO): Remove. | |
2864 | ||
2865 | * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): New macros. | |
2866 | ||
2867 | * sysdep.c (sys_read, sys_write, read, write, sys_close, close, | |
2868 | sys_open, open): Remove. | |
2869 | (emacs_open, emacs_close, emacs_read, emacs_write): Always define; | |
2870 | the old INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE, and INTERRUPTIBLE_IO | |
2871 | macros are no longer used. | |
2872 | (emacs_open): Renamed from sys_open. Merge BSD4_1 version. | |
2873 | (emacs_close): Renamed from sys_close. | |
2874 | (emacs_read): Renamed from sys_read. | |
2875 | (emacs_write): Renamed from sys_write. | |
2876 | (sys_siglist): Do not declare if HAVE_STRSIGNAL. | |
2877 | (dup2): Do not print error on failure; the real dup2 doesn't. | |
2878 | (strsignal): New function, defined if !HAVE_STRSIGNAL. | |
2879 | ||
2880 | * syssignal.h (SIGINFO): Undef if defined and if BROKEN_SIGINFO | |
2881 | is defined. | |
2882 | (SIGIO, SIGPOLL, SIGTSTP, SIGURG): Likewise. | |
2883 | (NSIG): If less than NSIG_MINIMUM, define to NSIG_MINIMUM. | |
2884 | (strsignal): Declare if !HAVE_STRSIGNAL. | |
2885 | ||
2886 | * unexelf.c (ElfBitsW, ELFSIZE, ElfExpandBitsW): New macros. | |
2887 | (ElfW): Define in terms of ElfExpandBitsW. | |
2888 | ||
2889 | * w32proc.c (sys_siglist): Remove decl. | |
2890 | ||
2891 | * xdisp.c (decode_mode_spec): 3rd arg is int, not char, to comply | |
2892 | with ANSI C. | |
2893 | (display_string): Declare face_string_pos arg. | |
2894 | ||
2895 | * xfns.c (Fx_show_tip): Declare timeout param. | |
2896 | ||
2897 | * xterm.c: No need to include locale.h. | |
2898 | (x_alloc_lighter_color, x_setup_relief_color): | |
2899 | Pass arg as double, not float, for compatibility with ANSI C. | |
2900 | (fixup_locale): Move to emacs.c. | |
2901 | (x_term_init): Do not setlocale or fixup locale; the main program | |
2902 | does this now. | |
2903 | ||
2f0b74ea DL |
2904 | 1999-10-18 Dave Love <fx@gnu.org> |
2905 | ||
2906 | * doc.c (Fdocumentation_property): Gcpro `tem'. | |
2907 | ||
471aa4a0 KH |
2908 | 1999-10-18 Kenichi Handa <handa@etl.go.jp> |
2909 | ||
2910 | * lread.c (Fload): Calculate bytes of filename correctly. | |
2911 | (openp): Likewise. | |
2912 | ||
aca2020b KH |
2913 | 1999-10-18 Keisuke Nishida <kxn30@po.cwru.edu> |
2914 | ||
2915 | * print.c (print_preprocess): In case print-circle is nil, | |
2916 | add OBJ to Vprint_number_table only when OBJ is a symbol. | |
2917 | ||
1f5fe392 | 2918 | 1999-10-18 Kenichi Handa <handa@etl.go.jp> |
b843d1ae KH |
2919 | |
2920 | * coding.c (code_convert_string): Add record_unwind_protect to | |
2921 | assure setting inhibit_pre_post_conversion back to zero. Take | |
2922 | care of the multibyteness of the working buffer. | |
2923 | ||
2924 | * coding.c (inhibit_pre_post_conversion): New variable. | |
2925 | (setup_coding_system): If inhibit_pre_post_conversion is nonzero, | |
2926 | ignore post-read-conversion and pre-write-conversion property of | |
2927 | the coding system. | |
2928 | (code_convert_region_unwind): New function. | |
2929 | (code_convert_region): Set inhibit_pre_post_conversion to 1 while | |
2930 | running pre-write-conversion and post-read-conversion. | |
2931 | (code_convert_string): Likewise. | |
2932 | ||
cd876a91 GM |
2933 | 1999-10-17 Miles Bader <miles@gnu.org> |
2934 | ||
2935 | * editfns.c: Doc fix. | |
2936 | ||
2937 | 1999-10-17 Miles Bader <miles@gnu.org> | |
2938 | ||
2939 | * editfns.c (Fconstrain_to_field): Make sure we don't violate the | |
2940 | argument preconditions of find_before_next_newline in the case | |
2941 | where both ONLY_IN_LINE and ESCAPE_FROM_EDGE are set and OLD_POS | |
2942 | was indeed at the edge. | |
2943 | ||
2944 | 1999-10-17 Miles Bader <miles@gnu.org> | |
2945 | ||
2946 | * minibuf.c (Fminibuffer_complete_and_exit): Supply value for new | |
2947 | ESCAPE_FROM_EDGE parameter to Ffield_beginning. | |
2948 | ||
2949 | * editfns.c (text_property_eq, text_property_stickiness): Don't | |
2950 | use initializers for auto variables of type Lisp_Object. | |
2951 | (find_field): Likewise. Use braces around nested ifs. | |
2952 | (Fline_end_position): Store the raw eol in a variable, so that the | |
2953 | final expression doesn't look so ugly. | |
2954 | (Fconstrain_to_field): Doc fix. | |
2955 | (preceding_pos): Renamed from `preceeding_pos'. | |
2956 | (text_property_stickiness, find_field): Call preceding_pos, | |
2957 | not preceeding_pos. | |
2958 | ||
2959 | 1999-10-17 Miles Bader <miles@gnu.org> | |
2960 | ||
2961 | * editfns.c (Ffield_string_no_properties): New function. | |
2962 | (text_property_stickiness, preceeding_pos): New functions. | |
2963 | (Ffield_string): Remove PROPS parameter. | |
2964 | (find_field): Add MERGE_AT_BOUNDARY parameter. | |
2965 | Rewrite to use stickiness of `field' property to resolve | |
2966 | ambiguous cases. | |
2967 | (Ffield_beginning, Ffield_end): Add ESCAPE_FROM_EDGE parameter. | |
2968 | (Fconstrain_to_field): Likewise. | |
2969 | (syms_of_editfns): Init Sfield_string_no_properties. | |
2970 | (Ffield_string, Ferase_field, Ffield_end): | |
2971 | Supply new MERGE_AT_BOUNDARY argument to find_field. | |
2972 | (Fline_beginning_position, Fline_end_position): Supply new | |
2973 | ESCAPE_FROM_EDGE parameter to Fconstrain_to_field. | |
2974 | Pass a value of Qt for the ONLY_IN_LINE argument to | |
2975 | Fconstrain_to_field (only matters if N != 1). | |
2976 | * syntax.c (Fforward_word): Supply new ESCAPE_FROM_EDGE parameter | |
2977 | to Fconstrain_to_field. | |
2978 | ||
2979 | * minibuf.c (Fminibuffer_complete_word): Use | |
2980 | Ffield_beginning to find the prompt end. | |
2981 | ||
2982 | 1999-10-17 Miles Bader <miles@gnu.org> | |
2983 | ||
2984 | * editfns.c (Fconstrain_to_field): Add get/set-current-point | |
2985 | behavior when NEW_POS is nil. | |
2986 | (find_field): Use XSETFASTINT instead of make_number. | |
2987 | * minibuf.c (Fminibuffer_complete_and_exit): Test for an empty | |
2988 | input string by seeing where the field begins, instead of | |
2989 | looking at text-properties. | |
2990 | ||
2991 | 1999-10-17 Miles Bader <miles@gnu.org> | |
2992 | ||
2993 | * editfns.c (Qfield): New variable. | |
2994 | (find_field, Ferase_field, Ffield_string, | |
2995 | Ffield_beginning, Ffield_end, Fconstrain_to_field): New functions. | |
2996 | (Fline_beginning_position, Fline_end_position): Constrain to any field. | |
2997 | (make_buffer_string_both): Remove minibuffer-prompt hack. | |
2998 | (syms_of_editfns): Initialize Qfield, and subr entries for | |
2999 | field functions above. | |
3000 | * minibuf.c (read_minibuf): Don't save minibuffer prompt length on | |
3001 | minibuf_save_list. | |
3002 | Don't initialize minibuffer prompt length. | |
3003 | Wrap prompt text-properties around the entire prompt. | |
3004 | Add 'prompt text-property to prompt. | |
3005 | Get final value with Ffield_string instead of make_buffer_string. | |
3006 | (read_minibuf_unwind): Don't restore minibuffer prompt length from | |
3007 | minibuf_save_list. | |
3008 | (do_completion): Get minibuffer input with Ffield_string | |
3009 | instead of Fbuffer_string. | |
3010 | Erase minibuffer input with Ferase_field instead of erase_buffer. | |
3011 | (Fminibuffer_complete_and_exit): Likewise. | |
3012 | Test whether buffer is empty by looking for the 'prompt text | |
3013 | property at the end. | |
3014 | Set prompt length by looking for the end of the prompt text property, | |
3015 | and save prompt length for later use (since there is no longer a | |
3016 | buffer variable to get it from). | |
3017 | (Fminibuffer_prompt_width, Fminibuffer_prompt_end): Functions removed. | |
3018 | (syms_of_minibuf): Remove initializations of | |
3019 | Sminibuffer_prompt_width and Sminibuffer_prompt_end. | |
3020 | * buffer.h (struct buffer): Remove prompt_end_charpos field. | |
3021 | * buffer.c (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer): | |
3022 | Don't initialize prompt_end_charpos field. | |
3023 | * syntax.c (Fforward_word): Likewise. | |
3024 | Constrain to any field. | |
3025 | ||
3f6f7508 GM |
3026 | 1999-10-16 Gerd Moellmann <gerd@gnu.org> |
3027 | ||
3028 | * window.c (enum save_restore_action): New. | |
3029 | (save_restore_orig_size): Change parameter list. Add | |
3030 | functionality to check for valid orig_top and orig_height members | |
3031 | in a window tree. | |
3032 | (grow_mini_window): Call save_restore_orig_size with new parameter | |
3033 | list. | |
3034 | (shrink_mini_window): Restore old window sizes only if old | |
3035 | size information is valid in all windows in a window tree. | |
3036 | ||
06482119 GM |
3037 | 1999-10-15 Gerd Moellmann <gerd@gnu.org> |
3038 | ||
2710454d GM |
3039 | * xmenu.c (set_frame_menubar): Don't call |
3040 | x_set_menu_resources_from_menu_face here. | |
3041 | (update_frame_menubar): Call x_set_menu_resources_from_menu_face. | |
3042 | ||
06482119 GM |
3043 | * xfns.c (gif_load): Fix handling of interlaced GIFs. |
3044 | ||
17fa2837 DL |
3045 | 1999-10-14 Dave Love <fx@gnu.org> |
3046 | ||
3047 | * xdisp.c (handle_fontified_prop): GCPRO `pos'. | |
3048 | ||
45f93416 GM |
3049 | 1999-10-14 Gerd Moellmann <gerd@gnu.org> |
3050 | ||
3051 | * process.c (Fopen_network_stream): Don't loop if gethostbyname | |
3052 | fails and h_errno is TRY_AGAIN. | |
3053 | ||
c765b723 DL |
3054 | 1999-10-13 Dave Love <fx@gnu.org> |
3055 | ||
3056 | * filelock.c (lock_file): Move gcpro of `fn'. | |
3057 | ||
dace7f4e GM |
3058 | 1999-10-10 Gerd Moellmann <gerd@gnu.org> |
3059 | ||
3060 | * keyboard.c (auto-save-interval): Fix documentation. | |
3061 | ||
83c8f461 | 3062 | 1999-10-09 Richard M. Stallman <rms@gnu.org> |
73fb36f1 RS |
3063 | |
3064 | * print.c (print): When removing objects from Vprint_number_table, | |
3065 | only scan the newly added objects. | |
3066 | (print_preprocess): If OBJ is a gensym, and print-continuous-numbering, | |
3067 | unconditionally force it to stay in the table. | |
3068 | ||
85177c86 GM |
3069 | 1999-10-09 Gerd Moellmann <gerd@gnu.org> |
3070 | ||
3071 | * xfns.c (prepare_image_for_display): Don't try to load image if | |
3072 | loading it failed before. | |
3073 | (lookup_image, prepare_image_for_display): Remember if loading the | |
3074 | image failed. | |
3075 | (xpm_load): Add missing UNBLOCK_INPUT. | |
3076 | ||
3077 | * dispextern.h (struct image): New member load_failed_p. | |
3078 | ||
11e4de5d SM |
3079 | 1999-10-08 Stefan Monnier <monnier@cs.yale.edu> |
3080 | ||
f28eba7b | 3081 | * fileio.c (Fmake_temp_name): Add a reference to `make-temp-file' |
11e4de5d SM |
3082 | in the docstring. |
3083 | ||
f1da8f06 GM |
3084 | 1999-10-08 Gerd Moellmann <gerd@gnu.org> |
3085 | ||
3086 | * xterm.c (XTread_socket) <ClientMessage, WM_TAKE_FOCUS>: | |
3087 | Don't call XSetInputFocus because that can generate additional | |
3088 | FocusIn events. | |
3089 | ||
c37bbd4f GM |
3090 | 1999-10-07 Jeffrey C Honig <jch@bsdi.com> |
3091 | ||
3092 | * bsdos4.h [HAVE_LIBNCURSES]: Define TERMINFO and LIBS_TERMCAP. | |
3093 | ||
83c8f461 | 3094 | 1999-10-07 Richard M. Stallman <rms@gnu.org> |
78cc5c64 GM |
3095 | |
3096 | * process.c (wait_reading_process_input): When trying to suck | |
3097 | input from one process, for accept-process-output, | |
3098 | exit that loop if we get EAGAIN or EWOULDBLOCK. | |
3099 | ||
577d9e2f GM |
3100 | 1999-10-07 Gerd Moellmann <gerd@gnu.org> |
3101 | ||
3102 | * xfaces.c (Qbitmap_spec_p): Replaces Qpixmap_spec_p. | |
3103 | (Fbitmap_spec_p): Replaces Fpixmap_spec_p. | |
3104 | (load_pixmap): Use Fbitmap_spec_p and Qbitmap_spec_p instead of | |
3105 | Fpixmap_spec_p and Qpixmap_spec_p. | |
3106 | (load_face_colors, check_lface_attrs, | |
3107 | merge_face_vector_with_property, | |
3108 | Finternal_set_lisp_face_attribute): Use Fbitmap_spec_p. | |
3109 | (syms_of_xfaces): Initialize Qbitmap_spec_p, defsubr | |
3110 | Fbitmap_spec_p. | |
3111 | ||
f5737ad2 GM |
3112 | 1999-10-07 Gerd Moellmann <gerd@gnu.org> |
3113 | ||
3114 | * xdisp.c (display_menu_bar): Use MENU_FACE_ID instead of | |
3115 | MODE_LINE_FACE_ID. | |
3116 | ||
3117 | * xfaces.c (toplevel) [USE_MOTIF]: Include some Motif headers. | |
3118 | (struct x_resources) [USE_X_TOOLKIT]: New. | |
3119 | (xm_apply_resources, xm_set_menu_resources_from_menu_face) | |
3120 | [USE_MOTIF]: New. | |
3121 | (xl_apply_resources, xl_set_menu_resources_from_menu_face) | |
3122 | [USE_LUCID]: New. | |
3123 | (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: New. | |
3124 | (Qmenu): New. | |
3125 | (syms_of_xfaces): Initialize Qmenu. | |
3126 | (realize_basic_faces): Realize face `menu'. | |
3127 | (resolve_face_name): New. | |
3128 | (lface_from_face_name): Use it. | |
3129 | (Finternal_set_lisp_face_attribute): Ditto. | |
3130 | (Fpixmap_spec_p): Rewritten. Extend doc string. | |
3131 | ||
3132 | * xmenu.c (set_frame_menubar, xmenu_show): Call | |
3133 | x_set_menu_resources_from_menu_face. | |
3134 | ||
3135 | * dispextern.h (enum face_id): Add MENU_FACE_ID. | |
3136 | (toplevel): Include X11/Intrinsic.h. | |
3137 | ||
6a1aa823 DL |
3138 | 1999-10-03 Ken'ichi Handa <handa@gnu.org> |
3139 | ||
3140 | * coding.c (DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR | |
3141 | correctly. | |
3142 | ||
26901792 DL |
3143 | 1999-09-30 Kenichi Handa <handa@etl.go.jp> |
3144 | ||
3145 | * category.c (modify_lower_category_set): Set default value of | |
3146 | TABLE correctly. | |
3147 | ||
3148 | * minibuf.c (Fminibuffer_complete_word): Calculate string byte | |
3149 | size correctly. | |
3150 | ||
3151 | 1999-09-29 Gerd Moellmann <gerd@gnu.org> | |
3152 | ||
3153 | * editfns.c (Fpropertize): Renamed from Fproperties. | |
3154 | ||
3155 | 1999-09-29 Gerd Moellmann <gerd@gnu.org> | |
3156 | ||
3157 | * xdisp.c (resize_mini_window): Do nothing if frame is an X | |
3158 | frame that hasn't been initialized yet. | |
3159 | ||
83c8f461 | 3160 | 1999-09-28 Richard M. Stallman <rms@gnu.org> |
a04f1a93 PR |
3161 | |
3162 | * keymap.c (Fsingle_key_description): Make tem big enough. | |
3163 | (describe_buffer_bindings): Make buf big enough. | |
3164 | ||
83c8f461 | 3165 | 1999-09-27 Richard M. Stallman <rms@gnu.org> |
d177c583 PR |
3166 | |
3167 | * intervals.c (get_local_map): Use indirect_function, | |
3168 | not Findirect_function. | |
3169 | ||
26901792 DL |
3170 | 1999-09-27 Dave Love <fx@gnu.org> |
3171 | ||
3172 | * cm.h: Remove unneeded declaration of ospeed. | |
3173 | ||
3174 | 1999-09-26 Gerd Moellmann <gerd@gnu.org> | |
3175 | ||
3176 | * lisp.h (toplevel): Add prototype for | |
3177 | next_single_char_property_change. | |
3178 | ||
3179 | * textprop.c (next_single_char_property_change): New. | |
3180 | ||
3181 | * xdisp.c (display_prop_end, invisible_text_between_p): Use | |
3182 | next_single_char_property_change. | |
3183 | ||
3184 | 1999-09-25 Gerd Moellmann <gerd@gnu.org> | |
3185 | ||
3186 | * editfns.c (Fproperties): New. | |
3187 | (syms_of_editfns): Defsubr it. | |
3188 | ||
3189 | * xfns.c (lookup_image): Set image's timestamp because it's | |
3190 | used when we look it up. | |
3191 | ||
3192 | 1999-09-23 Gerd Moellmann <gerd@gnu.org> | |
3193 | ||
3194 | * window.c (enlarge_window): Add window parameter instead of using | |
3195 | selected_window. | |
3196 | (Fdisplay_buffer): Call it with window parameter instead of | |
3197 | setting selected_window. | |
3198 | (Fenlarge_window, Fshrink_window): Ditto. | |
3199 | (shrink_mini_window): If there is no recorded height and position | |
3200 | info, resize mini-window to height 1. | |
3201 | ||
3202 | * xfns.c (image_error): Use add_to_log. | |
3203 | ||
3204 | * xfaces.c (load_pixmap): Call add_to_log without frame parameter. | |
3205 | (load_face_font_or_fontset, load_color, | |
3206 | merge_face_vector_with_property): Ditto. | |
3207 | ||
3208 | * dispextern.h: Add prototype for add_to_log. | |
3209 | ||
3210 | * xfaces.c (add_to_log): Move to xdisp.c. | |
3211 | ||
3212 | * xdisp.c (add_to_log): Moved from xfaces.c. Remove frame | |
3213 | parameter. | |
3214 | ||
3215 | 1999-09-23 Gerd Moellmann <gerd@gnu.org> | |
3216 | ||
3217 | * xterm.c (XTread_socket) <MotionNotify>: Change #ifdef | |
3218 | USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS. | |
3219 | ||
3220 | * xdisp.c (resize_mini_window): Use grow_mini_window and | |
3221 | shrink_mini_window. | |
3222 | ||
3223 | * window.c (window_min_size): Add parameter ignore_fixed_p. | |
3224 | (change_window_height): Call window_min_size with new parameter. | |
3225 | (shrink_window_lowest_first, save_restore_orig_size, | |
3226 | grow_mini_window, shrink_mini_window): New. | |
3227 | (make_window, replace_window): Initialize orig_top and | |
3228 | orig_height. | |
3229 | (enlarge_window): Renamed from change_window_height. Make it | |
3230 | static. | |
3231 | (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call | |
3232 | enlarge_window instead of change_window_height. | |
3233 | ||
3234 | * window.h (struct window): New members orig_top, orig_height. | |
3235 | (toplevel): Add prototypes for grow_mini_window and | |
3236 | shrink_mini_window. Remove prototype for change_window_height. | |
3237 | ||
3238 | 1999-09-21 Eli Zaretskii <eliz@gnu.org> | |
3239 | ||
3240 | * frame.c (frame_name_fnn_p): Fix previous change. | |
3241 | ||
3242 | 1999-09-20 Gerd Moellmann <gerd@gnu.org> | |
3243 | ||
3244 | * minibuf.c (toplevel): Move include of stdio.h to other includes. | |
3245 | ||
3246 | * dispnew.c (direct_output_for_insert): Cast arguments to | |
3247 | safe_bcopy to char *. | |
3248 | ||
3249 | * lread.c (readchar): Remove unused variables. | |
3250 | (read_filtered_event, read1, Fmapatoms): Ditto. | |
3251 | (toplevel): Include intervals.h. | |
3252 | ||
3253 | * eval.c (Fsignal): Remove unused variables. | |
3254 | (Fcommandp, do_autoload): Ditto. | |
3255 | ||
3256 | * lisp.h: Add prototype for safe_bcopy, fatal. | |
3257 | ||
3258 | * editfns.c (init_editfns): Remove unused variables. | |
3259 | (Fgoto_char, Fchar_after, Fformat): Ditto. | |
3260 | (message_text, message_length): Put in #ifndef HAVE_MENUS. | |
3261 | ||
3262 | * data.c (find_symbol_value): Remove unused variables. | |
3263 | (Faref, Fstring_to_number): Ditto. | |
3264 | (toplevel): Include stdio.h. | |
3265 | (Fnumber_to_string): Cast XINT to long for %ld. | |
3266 | ||
3267 | * casefiddle.c (casify_object): Remove unused variables. | |
3268 | (casify_region): Ditto. | |
3269 | ||
3270 | * filelock.c (get_boot_time): Put local variable used in | |
3271 | conditinally compiled section in #ifdef. | |
3272 | (toplevel): Include stdio.h. | |
3273 | ||
3274 | * keymap.c (Flookup_key, Faccessible_keymaps, describe_vector, | |
3275 | keys_of_keymap, syms_of_keymap): Remove unused variables. | |
3276 | ||
3277 | 1999-09-20 Gerd Moellmann <gerd@gnu.org> | |
3278 | ||
3279 | * xdisp.c (sync_frame_with_window_matrix_rows): Disable frame rows | |
3280 | whose corresponding window rows have been disabled in | |
3281 | try_window_id. | |
3282 | ||
3283 | 1999-09-20 Gerd Moellmann <gerd@gnu.org> | |
3284 | ||
3285 | * xdisp.c (compute_window_start_on_continuation_line): Handle case | |
3286 | that window start is out of range. | |
3287 | (handle_display_prop, handle_single_display_prop): Replace | |
3288 | marginal area specifications like `left-margin' with `(margin | |
3289 | left-margin)'. | |
3290 | (Qmargin): New. | |
3291 | (syms_of_xdisp): Initialize Qmargin. | |
3292 | ||
3293 | 1999-09-19 Gerd Moellmann <gerd@gnu.org> | |
3294 | ||
3295 | * syntax.c (update_syntax_table, find_defun_start, back_comment, | |
3296 | describe_syntax, skip_chars): Remove unused variables. | |
3297 | (back_comment, forw_comment): Add braces to if-statement with | |
3298 | if-else as dependent statement. | |
3299 | ||
3300 | * process.c (list_processes_1): Remove unused variables. | |
3301 | (Fopen_network_stream, create_process): Add parentheses to | |
3302 | conditional expressions. | |
3303 | (create_process): Put declaration of sigchld in #if 0. | |
3304 | (Fopen_network_stream): Removed unused variables. | |
3305 | (Fopen_network_stream, wait_reading_process_input, | |
3306 | wait_reading_process_input, send_process, send_process): Ditto. | |
3307 | (toplevel): Add prototypes for set_waiting_for_input and | |
3308 | keyboard_bit_set. | |
3309 | ||
3310 | * abbrev.c (Fexpand_abbrev): Remove unused variables. | |
3311 | ||
3312 | * textprop.c (Fset_text_properties): Remove unused variables. | |
3313 | (text_property_list, verify_interval_modification, | |
3314 | interval_has_all_properties): Ditto. | |
3315 | ||
3316 | * callproc.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h. | |
3317 | (Fcall_process): Remove unused variable. | |
3318 | ||
3319 | * keyboard.c (Frecursive_edit): Remove unused variable. | |
3320 | (command_loop_1, safe_run_hooks, kbd_buffer_get_event, | |
3321 | timer_check, make_lispy_event, menu_bar_items, | |
3322 | menu_bar_one_keymap, menu_bar_item, parse_menu_item, | |
3323 | parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence, | |
3324 | kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt, | |
3325 | read_key_sequence): Ditto. Fread_key_sequence, | |
3326 | Fread_key_sequence_vector, Fsuspend_emacs): Ditto. | |
3327 | (read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only | |
3328 | used when GOBBLE_FIRST_EVENT is defined in #ifdef | |
3329 | (Fexecute_extended_command): Cast XINT to long for %ld. | |
3330 | (toplevel) [HAVE_UNISTD_H]: Include unistd.h. | |
3331 | (toplevel): Include sys/types.h. | |
3332 | ||
3333 | * lisp.h (RETURN_UNGCPRO): Use do-while (0) idiom. | |
3334 | (toplevel): Add prototypes for stuff_char, and | |
3335 | code_convert_string_norecord. | |
3336 | ||
3337 | 1999-09-19 Gerd Moellmann <gerd@gnu.org> | |
3338 | ||
3339 | * buffer.h: Add prototype for r_re_alloc. | |
3340 | ||
3341 | * insdel.c (copy_text): Removed unused variables. | |
3342 | (count_combining_after, count_combining_after, insert_1_both, | |
3343 | insert_from_string_1, insert_from_buffer_1, check_markers): Ditto. | |
3344 | (adjust_after_replace, replace_range): Add parentheses to logical | |
3345 | expressions. Remove unused variables. | |
3346 | (CHECK_BYTE_COMBINING_FOR_INSERT): Add parentheses to logical | |
3347 | expression. | |
3348 | ||
3349 | * alloc.c (Fgarbage_collect): Remove unused variable. | |
3350 | (compact_strings): Add parentheses around assignments in | |
3351 | conditional context. | |
3352 | (toplevel): Put declaration of unused function clear_marks | |
3353 | in #if 0 like its definition. | |
3354 | ||
3355 | * lisp.h: Add prototype for shrink_regexp_cache, | |
3356 | sweep_weak_hash_tables. | |
3357 | ||
3358 | 1999-09-19 Dave Love <fx@gnu.org> | |
3359 | ||
3360 | * process.c (Fopen_network_stream): Use strerror, not gai_strerror. | |
3361 | ||
3362 | * doc.c (read_bytecode_char): Declare arg. | |
3363 | ||
3364 | * lisp.h: Declare Fcurrent_message, Fmake_temp_name, | |
3365 | read_bytecode_char, Fx_hide_busy_cursor, getloadavg. | |
3366 | ||
3367 | 1999-09-18 Richard Stallman <rms@gnu.org> | |
3368 | ||
3369 | * xdisp.c (echo_area_display): Turn off code that returned | |
3370 | without doing anything when using a terminal frame. | |
3371 | ||
83c8f461 | 3372 | 1999-09-17 Richard M. Stallman <rms@gnu.org> |
27271329 PR |
3373 | |
3374 | * unexelf.c (unexec): Don't get confused by a short section | |
3375 | just before the bss section. | |
3376 | ||
26901792 DL |
3377 | 1999-09-16 Gerd Moellmann <gerd@gnu.org> |
3378 | ||
3379 | * emacs.c (main): Remove unused variables. | |
3380 | (sort_args, Fkill_emacs, Fkill_emacs): Ditto. | |
3381 | ||
3382 | * lisp.h: Add prototype for uninterrupt_malloc, memory_warnings, | |
3383 | init_fileio_once, syms_of_sound, init_xfns, init_fns | |
3384 | init_sound, check_message_stack. | |
3385 | ||
3386 | * emacs.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h. | |
3387 | ||
3388 | * intervals.c (rotate_right, rotate_left): Add braces to avoid | |
3389 | ambiguous else warning. | |
3390 | (split_interval_left): Remove unused variables. | |
3391 | (previous_interval, adjust_intervals_for_deletion, | |
3392 | set_point_both, set_point_both, set_intervals_multibyte_1): Ditto. | |
3393 | (icount, idepth, zero_length): Move into #if 0 section below | |
3394 | original position where these are used. | |
3395 | ||
3396 | * buffer.h [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free. | |
3397 | ||
3398 | * buffer.c (Fkill_buffer): Remove unused variables. | |
3399 | (Fkill_buffer, overlays_at, overlays_in, recenter_overlay_lists, | |
3400 | fix_overlays_in_range, Fmove_overlay, Fprevious_overlay_change, | |
3401 | init_buffer_once, (syms_of_buffer): Ditto. | |
3402 | ||
3403 | * xrdb.c (get_fallback): Remove unused variable. | |
3404 | (x_load_resources): Ditto. Put local variable used for Motif only | |
3405 | in #ifdef USE_MOTIF. | |
3406 | ||
3407 | 1999-09-16 Gerd Moellmann <gerd@gnu.org> | |
3408 | ||
3409 | * minibuf.c (read_minibuf): Remove unused variables. | |
3410 | (read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto. | |
3411 | (do_completion): Move assignment out of conditional context. | |
3412 | (Fdisplay_completion_list): Add parentheses to conditional expression. | |
3413 | ||
3414 | * cm.c (toplevel) [HAVE_TERMCAP_H]: Include termcap.h. | |
3415 | ||
3416 | * lisp.h: Add prototype for no_switch_window. | |
3417 | ||
3418 | * window.c (Fset_window_buffer): Remove unused variables. | |
3419 | (Fset_window_margins): Ditto. | |
3420 | ||
3421 | * xdisp.c (resize_mini_window): Temporarily set the selected | |
3422 | window's or Vminibuf_scroll_window's height to "fixed" around | |
3423 | the call the change_window_height. | |
3424 | ||
3425 | * window.c (window_fixed_size_p): Check window's height_fixed_p | |
3426 | flag. | |
3427 | ||
3428 | * window.h (struct window): New member height_fixed_p. | |
3429 | ||
3430 | * dispnew.c (direct_output_forward_char): Don't use this method | |
3431 | if showing a message or a message was just cleared because we | |
3432 | might need to resize the mini-window. | |
3433 | ||
3434 | 1999-09-16 Gerd Moellmann <gerd@gnu.org> | |
3435 | ||
3436 | * frame.c (Fdelete_frame): Correct local variable pointing to | |
3437 | selected frame after selecting new frame. | |
3438 | ||
3439 | 1999-09-15 Richard Stallman <rms@gnu.org> | |
3440 | ||
3441 | * puresize.h (BASE_PURESIZE): Increase to 525000. | |
3442 | ||
3443 | * filelock.c (Vtemporary_file_directory): New variable. | |
3444 | (syms_of_filelock): Set up Lisp variable. | |
3445 | ||
3446 | 1999-09-15 Gerd Moellmann <gerd@gnu.org> | |
3447 | ||
3448 | * term.c (OUTPUT_IF, OUTPUT1_IF): Use do-while. | |
3449 | (encode_terminal_code): Remove unused variables. | |
3450 | (turn_off_face): Ditto. | |
3451 | (toplevel): Include termcap.h if HAVE_TERMCAP_H. | |
3452 | ||
3453 | * dispnew.c (update_frame_line): If writing whole desired line, | |
3454 | don't clear to end of line if already at the end. | |
3455 | ||
3456 | 1999-09-15 Gerd Moellmann <gerd@gnu.org> | |
3457 | ||
3458 | * xdisp.c (resize_mini_window): Don't report changed window | |
3459 | height if it actually hasn't changed. | |
3460 | ||
3461 | * widget.c (set_frame_size, EmacsFrameSetCharSize): Remove | |
3462 | unused variables. | |
3463 | (mark_shell_size_user_specified): Put in #if 0 because not used. | |
3464 | (create_frame_gcs): Put in #if 0 because currently unused. | |
3465 | (first_frame_p): Ditto. | |
3466 | ||
3467 | * xmenu.c (single_menu_item, Fx_popup_menu, Fx_popup_menu, | |
3468 | single_submenu, update_frame_menubar, set_frame_menubar, | |
3469 | free_frame_menubar, xmenu_show, xdialog_show): Remove unused | |
3470 | variables. | |
3471 | ||
3472 | * print.c (PRINTFULLP): Removed because it is no longer used and | |
3473 | is misleading. | |
3474 | (Ferror_message_string): Remove unused variables. | |
3475 | (print_object): Cast argument of sprintf to long for `%ld' | |
3476 | specifier. Remove unused variable. | |
3477 | ||
3478 | 1999-09-14 Gerd Moellmann <gerd@gnu.org> | |
3479 | ||
3480 | * sound.c (Fplay_sound): Remove usused variables. | |
3481 | (be2hs): Put in #if 0 because it's currently not used. | |
3482 | ||
3483 | 1999-09-14 Ken Raeburn <raeburn@gnu.org> | |
3484 | ||
3485 | * print.c (Ferror_message_string, print_error_message, | |
3486 | print_object): Use XCAR, XCDR and XFLOAT_DATA instead of explicit | |
3487 | member access. | |
3488 | ||
3489 | 1999-09-14 Gerd Moellmann <gerd@gnu.org> | |
3490 | ||
3491 | * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while. | |
3492 | ||
3493 | * frame.c (Fnext_frame): Remove unused variable(s). | |
3494 | (Fprevious_frame, Fmouse_pixel_position, frame_name_fnn_p): Ditto. | |
3495 | (store_frame_param): Add parentheses to conditional expression. | |
3496 | (Fmodify_frame_parameters): Remove unused variables. | |
3497 | (Fmodify_frame_parameters, Fset_frame_size, Fset_frame_position): | |
3498 | Ditto. | |
3499 | ||
3500 | * xfns.c (x_set_background_color): Remove unused variable(s). | |
3501 | (x_set_border_pixel): Ditto. | |
3502 | (x_set_menu_bar_lines): Put local variable used only for | |
3503 | non-toolkit case in #ifdef/#endif. | |
3504 | (x_figure_window_size): Remove unused variable(s). | |
3505 | (x_figure_window_size, x_window, lookup_image, | |
3506 | xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load, | |
3507 | png_load, jpeg_load, gif_load, x_create_tip_frame, | |
3508 | x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto. | |
3509 | ||
3510 | * xterm.c (x_scroll_bar_handle_click): Compile only if | |
3511 | not USE_TOOLKIT_SCROLL_BARS. | |
3512 | (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Ditto. | |
3513 | ||
3514 | * dispextern.h: Add prototypes for gamma_correct and | |
3515 | x_kill_gs_process. | |
3516 | ||
3517 | * xterm.c (x_produce_glyphs): Remove unused variable(s). | |
3518 | (x_alloc_nearest_color_for_widget, note_tool_bar_highlight, | |
3519 | x_set_toolkit_scroll_bar_thumb): Ditto. | |
3520 | (x_scroll_bar_create): Move local variable to the | |
3521 | conditionally compiled section of code where it is used. | |
3522 | (x_scroll_bar_create): Remove unused variable(s). | |
3523 | (x_scroll_bar_remove, XTread_socket): Ditto. | |
3524 | (XTread_socket) <ConfigureNotify>: Move variables used for | |
3525 | non-toolkit case into conditionally compiled section of code. | |
3526 | ||
3527 | * window.h (freeze_window_starts): Fix typo in prototype. | |
3528 | ||
3529 | * xdisp.c (display_echo_area_1, try_window_id): Remove unused | |
3530 | variable(s). | |
3531 | ||
3532 | * lisp.h: Add prototype for debug_print. | |
3533 | ||
3534 | * dispextern.h (xassert) [GLYPH_DEBUG]: Change definition | |
3535 | to use do-while. | |
3536 | ||
3537 | * fns.c (SXHASH_COMBINE): Add missing parentheses. | |
3538 | (Fchar_table_range, Fset_char_table_default, mapcar1, | |
3539 | Fyes_or_no_p, sweep_weak_hash_tables): Remove unused variable(s). | |
3540 | ||
3541 | * lisp.h: Add prototype for getloadavg. | |
3542 | ||
3543 | 1999-09-14 Andreas Schwab <schwab@gnu.org> | |
3544 | ||
3545 | * process.c (Fopen_network_stream): Avoid socket decriptor leak. | |
3546 | ||
3547 | * lisp.h: Declare close_file_unwind. | |
3548 | ||
3549 | 1999-09-14 Richard Stallman <rms@gnu.org> | |
3550 | ||
3551 | * filelock.c (get_boot_time): Make the temp name in the proper dir. | |
3552 | ||
3553 | 1999-09-13 Gerd Moellmann <gerd@gnu.org> | |
3554 | ||
3555 | * xdisp.c (redisplay_window): Make sure start_at_line_beg | |
3556 | is always set correctly. | |
3557 | ||
3558 | 1999-09-13 Dave Love <fx@gnu.org> | |
3559 | ||
3560 | * xdisp.c (move_it_in_display_line_to): Make type consistent with | |
3561 | declaration. | |
3562 | ||
3563 | 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org> | |
3564 | ||
3565 | * xdisp.c (QCfile): Move here from xfns.c. | |
3566 | (syms_of_xdisp): Initialize it. | |
3567 | (message2_nolog): Change for Lisp_Object selected_frame. | |
3568 | (message3_nolog, message_with_string, message, | |
3569 | setup_echo_area_for_printing, truncate_echo_area, | |
3570 | prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto. | |
3571 | ||
3572 | 1999-09-13 Dave Love <fx@gnu.org> | |
3573 | ||
3574 | * xterm.c: Don't continue #define args for benefit of old cc. | |
3575 | (xt_action_hook): Indent #error for benefit of K&R cc. | |
3576 | ||
3577 | 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org> | |
3578 | ||
3579 | * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame. | |
3580 | (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto. | |
3581 | (XRINGBELL): Removed. | |
3582 | ||
3583 | 1999-09-13 Dave Love <fx@gnu.org> | |
3584 | ||
3585 | * xfns.c (x_put_x_image): Make type consistent with declaration. | |
3586 | ||
3587 | * fns.c (Fmake_hash_table): Fix string continuation. | |
3588 | ||
3589 | 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org> | |
3590 | ||
3591 | * xfns.c (QCfile): Moved to xdisp.c. | |
3592 | (syms_of_xfns): Don't initialize QCfile. | |
3593 | (check_x_frame): Change for Lisp_Object selected_frame. | |
3594 | (check_x_display_info, x_get_resource_string): Ditto. | |
3595 | ||
3596 | 1999-09-13 Gerd Moellmann <gerd@gnu.org> | |
3597 | ||
3598 | * minibuf.c (choose_minibuf_frame): Don't try to set the | |
3599 | mini-buffer window's buffer, if the buffer is invalid. | |
3600 | ||
3601 | * xfns.c (QCfile): Moved to xdisp.c. | |
3602 | (syms_of_xfns): Don't initialize QCfile. | |
3603 | ||
3604 | * xdisp.c (QCfile): Move here from xfns.c. | |
3605 | (syms_of_xdisp): Initialize it. | |
3606 | ||
3607 | * lisp.h (selected_frame): Add external declaration. | |
3608 | ||
3609 | * xselect.c (x_own_selection): Change for Lisp_Object selected_frame. | |
3610 | (Fx_store_cut_buffer_internal): Ditto. | |
3611 | (Fx_rotate_cut_buffers_internal): Ditto. | |
3612 | ||
3613 | * xfaces.c (frame_or_selected_frame): Change for Lisp_Object | |
3614 | selected_frame. | |
3615 | (Finternal_set_lisp_face_attribute): Ditto. | |
3616 | (Finternal_get_lisp_face_attribute): Ditto. | |
3617 | (Finternal_lisp_face_empty_p): Ditto. | |
3618 | (Fdump_face): Ditto. | |
3619 | ||
3620 | * term.c (OUTPUT): Change for Lisp_Object selected_frame. | |
3621 | (OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes, | |
3622 | set_terminal_window, set_scroll_region, reassert_line_highlight, | |
3623 | change_line_highlight, cursor_to, raw_cursor_to, clear_to_end, | |
3624 | clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw, | |
3625 | encode_terminal_code, write_glyphs, term_init): Ditto. | |
3626 | ||
3627 | * sysdep.c (reset_sys_modes): Change for Lisp_Object selected_frame. | |
3628 | (kbd_input_ast, read_input_waiting): Ditto. | |
3629 | ||
3630 | * minibuf.c (choose_minibuf_frame): Change for Lisp_Object | |
3631 | selected_frame. | |
3632 | (read_minibuf): Ditto. | |
3633 | ||
3634 | * keyboard.c (command_loop_1): Change for Lisp_Object | |
3635 | selected_frame. | |
3636 | (cmd_error_internal, command_loop_1, read_char, | |
3637 | kbd_buffer_get_event, read_avail_input, | |
3638 | read_char_minibuf_menu_prompt, read_key_sequence, Fsuspend_emacs, | |
3639 | interrupt_signal, quit_throw_to_read_char): Ditto. | |
3640 | ||
3641 | * fontset.c (Ffont_info): Change for Lisp_Object selected_frame. | |
3642 | (Ffontset_info): DItto. | |
3643 | ||
3644 | * emacs.c (handle_USR1_signal): Change for Lisp_Object selected_frame. | |
3645 | ||
3646 | * dispnew.c (selected_frame): Make it a Lisp_Object. | |
3647 | (adjust_frame_glyphs_initially): Change for Lisp_Object selected_frame. | |
3648 | (direct_output_for_insert, direct_output_forward_char, | |
3649 | init_display): Ditto. | |
3650 | ||
3651 | * data.c (swap_in_symval_forwarding): Change for Lisp_Object | |
3652 | selected_frame. | |
3653 | (set_internal): Ditto. | |
3654 | ||
3655 | * buffer.c (Fother_buffer): Change for Lisp_Object selected_frame. | |
3656 | (record_buffer): Ditto. | |
3657 | ||
3658 | * frame.c (Fmake_terminal_frame): Use SELECTED_FRAME. | |
3659 | (do_switch_frame): Change for Lisp_Object selected_frame. | |
3660 | (Fselected_frame): Ditto. | |
3661 | (Fframe_first_window): Use SELECTED_FRAME. | |
3662 | (Fframe_root_window): Change for Lisp_Object selected_frame. | |
3663 | (Fframe_selected_window, Fset_frame_selected_window, Fnext_frame, | |
3664 | Fprevious_frame, other_visible_frames, Fdelete_frame, | |
3665 | Fmouse_position, Fmouse_pixel_position, Fmake_frame_visible, | |
3666 | Fmake_frame_invisible, Ficonify_frame, Fraise_frame, Flower_frame, | |
3667 | Fframe_parameters, Fmodify_frame_parameters, Fframe_char_height, | |
3668 | Fframe_char_width, Fframe_pixel_height, Fframe_pixel_width, | |
3669 | Fset_frame_height, Fset_frame_width): Ditto. | |
3670 | ||
3671 | 1999-09-13 Gerd Moellmann <gerd@gnu.org> | |
3672 | ||
3673 | * xdisp.c (message2_nolog): Change for Lisp_Object selected_frame. | |
3674 | (message3_nolog, message_with_string, message, | |
3675 | setup_echo_area_for_printing, truncate_echo_area, | |
3676 | prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto. | |
3677 | ||
3678 | * xmenu.c (Fx_popup_menu): Change for Lisp_Object selected_frame. | |
3679 | (Fx_popup_dialog): Ditto. | |
3680 | ||
3681 | * xfns.c (check_x_frame): Change for Lisp_Object selected_frame. | |
3682 | (check_x_display_info, x_get_resource_string): Ditto. | |
3683 | ||
3684 | * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame. | |
3685 | (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto. | |
3686 | (XRINGBELL): Removed. | |
3687 | ||
3688 | * window.c (Fminibuffer_window): Change for Lisp_Object | |
3689 | selected_frame. | |
3690 | (Fwindow_at, Fprevious_window, window_loop, select_window_1, | |
3691 | display_buffer_1, Fdisplay_buffer, temp_output_buffer_show, | |
3692 | Fcurrent_window_configuration, init_window_once): Ditto. | |
3693 | ||
3694 | * frame.h (SELECTED_FRAME): New. | |
3695 | ||
3696 | 1999-09-12 Ken Raeburn <raeburn@gnu.org> | |
3697 | ||
3698 | * category.c (word_boundary_p): Use XCAR and XCDR. | |
3699 | * ccl.c (ccl_driver, resolve_symbol_ccl_program, | |
3700 | Fregister_code_conversion_map): Likewise. | |
3701 | * coding.c (setup_coding_system, detect_coding_system, | |
3702 | Ffind_operation_coding_system, Fset_coding_priority_internal): | |
3703 | Likewise. | |
3704 | * doc.c (get_doc_string, Fdocumentation, | |
3705 | store_function_docstring): Likewise. | |
3706 | * editfns.c (save_restriction_restore): Likewise. | |
3707 | * eval.c (Fcond, Fmacroexpand, Fcondition_case, wants_debugger, | |
3708 | skip_debugger, find_handler_clause, Fautoload, Fapply, | |
3709 | run_hook_with_args, run_hook_list_with_args, Ffetch_bytecode): | |
3710 | Likewise. | |
3711 | * fileio.c (Ffind_file_name_handler, Finsert_file_contents, | |
3712 | Fwrite_region, do_auto_save_unwind, Fdo_auto_save, | |
3713 | Fread_file_name): Likewise. | |
3714 | * filelock.c (unlock_all_files): Likewise. | |
3715 | * insdel.c (Fcombine_after_change_execute): Likewise. | |
3716 | * intervals.c (adjust_intervals_for_insertion): Likewise. | |
3717 | * keymap.c (get_keymap_1, Fkeymap_parent, Fset_keymap_parent, | |
3718 | Fset_keymap_parent, fix_submap_inheritance, access_keymap, | |
3719 | store_in_keymap, Fcopy_keymap, define_as_prefix, | |
3720 | current_minor_maps, Faccessible_keymaps, | |
3721 | accessible_keymaps_char_table, Fkey_description, | |
3722 | Fwhere_is_internal, where_is_internal_2, where_is_internal_1, | |
3723 | describe_buffer_bindings, describe_map_tree, shadow_lookup, | |
3724 | describe_map): Likewise. | |
3725 | * lread.c (Fload, load_unwind, close_load_descs, read_vector, | |
3726 | read_list, init_lread): Likewise. | |
3727 | * search.c (Fmatch_data): Likewise. | |
3728 | * sunfns.c (Fsun_menu_internal): Likewise. | |
3729 | * syntax.c (describe_syntax): Likewise. | |
3730 | * undo.c (record_insert, record_delete, Fundo_boundary, | |
3731 | truncate_undo_list): Likewise. | |
3732 | * vmsproc.c (child_sig): Likewise. | |
3733 | ||
3734 | * editfns.c (Fformat): Use XFLOAT_DATA. | |
3735 | ||
3736 | 1999-09-12 Gerd Moellmann <gerd@gnu.org> | |
3737 | ||
3738 | * keyboard.c (command_loop_1): Resize mini-window to the | |
3739 | exact size of a message displayed, if any. | |
3740 | ||
3741 | * xdisp.c (resize_mini_window): Add parameter exact_p. Resize | |
3742 | to exact size if exact_p is non-zero. | |
3743 | (display_echo_area_1): Call resize_mini_window with | |
3744 | new parameter. | |
3745 | (redisplay_internal): Ditto. | |
3746 | (resize_echo_area_axactly): New. | |
3747 | ||
3748 | * minibuf.c (read_minibuf_unwind): Call resize_mini_window with | |
3749 | new parameter. | |
3750 | ||
3751 | * dispextern.h: Change prototype of resize_mini_window. | |
3752 | Add prototype for resize_echo_area_axactly. | |
3753 | ||
3754 | * xfaces.c (Fx_family_fonts): Replaces Fx_font_list. | |
3755 | (syms_of_xfaces): Defsubr accordingly. | |
3756 | ||
3757 | * xdisp.c (hscroll_window_tree): Choose cursor row from | |
3758 | desired or current matrix. | |
3759 | (redisplay_internal): Hscroll before updating. | |
3760 | ||
3761 | 1999-09-12 Gerd Moellmann <gerd@gnu.org> | |
3762 | ||
3763 | * syntax.c (Fforward_word): Use prompt_end_charpos instead | |
3764 | of minibuffer_prompt_length. | |
3765 | ||
3766 | * minibuf.c (read_minibuf): Use prompt_end_charpos instead | |
3767 | of minibuffer_prompt_length. | |
3768 | (read_minibuf_unwind): Ditto. | |
3769 | (Fminibuffer_complete_and_exit): Ditto. | |
3770 | (Fminibuffer_complete_word): Ditto. | |
3771 | (Fminibuffer_prompt_end): Ditto. | |
3772 | ||
3773 | * editfns.c (Fbuffer_string): Use prompt_end_charpos instead | |
3774 | of minibuffer_prompt_length. | |
3775 | (Fline_beginning_position): Ditto. | |
3776 | ||
3777 | * buffer.c (Fget_buffer_create): Use prompt_end_charpos instead | |
3778 | of minibuffer_prompt_length. | |
3779 | (Fmake_indirect_buffer): Ditto. | |
3780 | (Fkill_buffer): Ditto. | |
3781 | (Ferase_buffer): Ditto. | |
3782 | ||
3783 | * buffer.h (prompt_end_charpos): Replaces | |
3784 | minibuffer_prompt_length. | |
3785 | ||
3786 | * minibuf.c (read_minibuf): Return mini-buffer contents | |
3787 | without the prompt. | |
3788 | ||
3789 | * editfns.c (make_buffer_string_both): Take out the code | |
3790 | to handle mini-buffer prompts. | |
3791 | (Fbuffer_string): Handle the prompt here, instead. | |
3792 | ||
3793 | * xfaces.c (lface_from_face_name): Resolve face aliases. | |
3794 | (Qmode_line): Replaces Qmodeline. | |
3795 | (realize_basic_faces): Use Qmode_line. | |
3796 | (syms_of_xfaces): Initialize Qmode_line. | |
3797 | ||
3798 | 1999-09-12 Gerd Moellmann <gerd@gnu.org> | |
3799 | ||
3800 | * minibuf.c (read_minibuf): Set minibuf_prompt_width to the | |
3801 | current column after inserting prompt. | |
3802 | (Fminibuffer_prompt_width): Return minibuf_prompt_width. | |
3803 | ||
3804 | * xfaces.c (Qframe_update_face_colors): New. | |
3805 | (syms_of_xfaces): Initialize call. | |
3806 | (update_face_from_frame_parameter): Call that function when | |
3807 | the frame's background changes. | |
3808 | ||
3809 | 1999-09-12 Richard Stallman <rms@gnu.org> | |
3810 | ||
3811 | * insdel.c (del_range_1): Don't treat minibuffer prompt specially. | |
3812 | ||
3813 | 1999-09-12 Ken Raeburn <raeburn@gnu.org> | |
3814 | ||
3815 | * alloc.c (Fcons, pure_cons, Fpurecopy, Fgarbage_collect, | |
3816 | mark_object, mark_buffer): Use XCAR and XCDR. | |
3817 | * bytecode.c (Fbyte_code): Likewise. | |
3818 | * callint.c (Fcall_interactively, Fprefix_numeric_value): | |
3819 | Likewise. | |
3820 | * callproc.c (Fcall_process, Fcall_process_region, child_setup, | |
3821 | getenv_internal): Likewise. | |
3822 | * dired.c (file_name_completion): Likewise. | |
3823 | * fns.c (Fsafe_length, concat, Fcopy_alist, Fmember, Fmemq, Fassq, | |
3824 | assq_no_quit, Fassoc, Frassq, Frassoc, Fdelq, Fdelete, Freverse, | |
3825 | Fplist_get, Fplist_put, internal_equal, mapcar1): Likewise. | |
3826 | * indent.c (Fcompute_motion): Likewise. | |
3827 | * process.c (decode_status, Fprocess_status, Fprocess_exit_status, | |
3828 | list_processes_1, Fstart_process, Fopen_network_stream, | |
3829 | wait_reading_process_input, read_process_output_call, | |
3830 | kill_buffer_processes, sigchld_handler, exec_sentinel_unwind, | |
3831 | status_notify, wait_reading_process_input): Likewise. | |
3832 | * textprop.c (PLIST_ELT_P, property_value, set_properties, | |
3833 | extend_property_ranges): Likewise. | |
3834 | * w32faces.c (Fpixmap_spec_p, merge_face_list): Likewise. | |
3835 | * w32fns.c (x_window_to_frame, x_set_frame_parameters, | |
3836 | x_report_frame_params, x_set_cursor_type, x_icon_type, | |
3837 | x_figure_window_size, Fx_create_frame, w32_load_system_font, | |
3838 | w32_load_font, enum_font_cb2, w32_list_bdf_fonts, w32_list_fonts, | |
3839 | w32_list_synthesized_fonts, w32_find_ccl_program, Fx_list_fonts, | |
3840 | Fw32_find_bdf_fonts, w32_find_bdf_fonts_in_dir, | |
3841 | x_display_info_for_name, Fx_display_list): Likewise. | |
3842 | * w32menu.c (menubar_id_to_frame, single_keymap_panes, | |
3843 | Fx_popup_menu, Fx_popup_dialog): Likewise. | |
3844 | * w32proc.c (Fw32_set_keyboard_layout): Likewise. | |
3845 | * w32term.c (x_window_to_scroll_bar, w32_read_socket, | |
3846 | w32_term_init, x_delete_display): Likewise. | |
3847 | * xfns.c (x_window_to_frame, x_any_window_to_frame, | |
3848 | x_non_menubar_window_to_frame, x_menubar_window_to_frame, | |
3849 | x_top_window_to_frame, x_set_frame_parameters, | |
3850 | x_report_frame_params, x_set_cursor_type, x_icon_type, | |
3851 | x_figure_window_size, Fx_create_frame, x_display_info_for_name, | |
3852 | Fx_display_list, x_create_tip_frame): Likewise. | |
3853 | * xmenu.c (menubar_id_to_frame, single_keymap_panes, | |
3854 | Fx_popup_menu, Fx_popup_dialog): Likewise. | |
3855 | * xselect.c (x_own_selection, x_get_local_selection, | |
3856 | x_handle_selection_request, x_handle_selection_clear, | |
3857 | x_clear_frame_selections, wait_for_property_change_unwind, | |
3858 | wait_for_property_change, x_handle_property_notify, | |
3859 | copy_multiple_data, x_get_foreign_selection, | |
3860 | lisp_data_to_selection_data, clean_local_selection_data, | |
3861 | x_handle_selection_notify, Fx_get_selection_internal, | |
3862 | x_disown_buffer_selections): Likewise. | |
3863 | * xterm.c (x_window_to_scroll_bar, XTread_socket, x_list_fonts, | |
3864 | x_load_font, x_find_ccl_program, x_term_init, x_delete_display): | |
3865 | Likewise. | |
3866 | ||
3867 | * alloc.c (make_float, make_pure_float, Fpurecopy): Use | |
3868 | XFLOAT_DATA. | |
3869 | * bytecode.c (Fbyte_code): Likewise. | |
3870 | * floatfns.c (extract_float, Fexpt, Fabs, rounding_driver, | |
3871 | fmod_float): Likewise. | |
3872 | ||
3873 | 1999-09-11 Richard Stallman <rms@gnu.org> | |
3874 | ||
3875 | * xdisp.c (run_window_scroll_functions): If hook functions switch | |
3876 | buffers, switch back after. | |
3877 | ||
3878 | 1999-09-11 Ken Raeburn <raeburn@gnu.org> | |
3879 | ||
3880 | * charset.h (GET_TRANSLATION_TABLE): Use XCDR. | |
3881 | * frame.h (FOR_EACH_FRAME): Use XCAR and XCDR. | |
3882 | (PIXEL_X_FROM_CANON_X, PIXEL_Y_FROM_CANON_Y): Use XFLOAT_DATA. | |
3883 | * keyboard.h (EVENT_HEAD, EVENT_START, EVENT_END, POSN_WINDOW, | |
3884 | POSN_BUFFER_POSN, POSN_WINDOW_POSN, POSN_TIMESTAMP): Use XCAR and | |
3885 | XCDR. | |
3886 | * syntax.h (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Use XCAR and | |
3887 | XCDR. | |
3888 | ||
3889 | 1999-09-10 Richard Stallman <rms@gnu.org> | |
3890 | ||
3891 | * xterm.c (XTread_socket): In XSetInputFocus, use RevertToParent, | |
3892 | not RevertToPointerRoot. | |
3893 | (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]: | |
3894 | Fix the code to clear around the scroll bar. | |
3895 | ||
3896 | 1999-09-10 Keisuke Nishida <kxn30@po.cwru.edu> | |
3897 | ||
3898 | * print.c: Support print-circle and related features. | |
3899 | (Vprint_gensym_alist): Removed. | |
3900 | (Vprint_circle, Vprint_continuous_numbering, print_number_index | |
3901 | Vprint_number_table): New variables. | |
3902 | (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): New macros. | |
3903 | (PRINTPREPARE, PRINTFINISH): Don't set Vprint_gensym_alist. | |
3904 | (print, print_preprocess, print_preprocess_string, print_object): | |
3905 | New/modified functions with print-circle feature. Use | |
3906 | Vprint_number_table instead of Vprint_gensym_alist for print-gensym. | |
3907 | (syms_of_print): Defined new Lisp variables `print-circle', | |
3908 | `print-continuous-numbering', `print-number-table'. | |
3909 | ||
3910 | 1999-09-10 Gerd Moellmann <gerd@gnu.org> | |
3911 | ||
3912 | * xfns.c (x_build_heuristic_mask): Accept a list `(R G B)' | |
3913 | as background color specification instead of an integer. | |
3914 | (image-cache-eviction-delay): Replaces image-eviction-seconds. | |
3915 | (Vimage_cache_eviction_delay): Replaces Vimage_eviction_seconds. | |
3916 | (clear_image_cache, syms_of_xfns): Use it. | |
3917 | (Qpostscript): Replaces Qghostscript. | |
3918 | (gs_type): Use it. | |
3919 | (gs_image_p): Ditto. | |
3920 | (syms_of_xfns): Initialize Qpostscript. | |
3921 | ||
3922 | 1999-09-10 Richard Stallman <rms@gnu.org> | |
3923 | ||
3924 | * buffer.c (Ferase_buffer): Don't erase the minibuffer prompt. | |
3925 | ||
3926 | 1999-09-09 Richard Stallman <rms@gnu.org> | |
3927 | ||
3928 | * editfns.c (Fline_beginning_position): Handle minibuffer prompt here. | |
3929 | ||
3930 | * cmds.c (Fbeginning_of_line): Don't handle minibuffer prompt here. | |
3931 | ||
3932 | 1999-09-09 Gerd Moellmann <gerd@gnu.org> | |
3933 | ||
3934 | * fns.c (Fmakehash): Accept just one optional argument TEST. | |
3935 | ||
3936 | * xfns.c (QCindex): New. | |
3937 | (syms_of_xfns): Initialize QCindex. | |
3938 | (gif_load): Use it instead of `:image'. | |
3939 | ||
3940 | 1999-09-09 Richard Stallman <rms@gnu.org> | |
3941 | ||
3942 | * fileio.c (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW. | |
3943 | (Fwrite_region) [DOS_NT]: Handle `excl' here too. | |
3944 | ||
3945 | 1999-09-08 Gerd Moellmann <gerd@gnu.org> | |
3946 | ||
3947 | * xdisp.c (Qwhen): Replaces QCwhen. | |
3948 | (syms_of_xdisp): Initialized it instead of QCwhen. | |
3949 | (handle_single_display_prop): Use it instead of QCwhen. | |
3950 | ||
3951 | 1999-09-08 Ken'ichi Handa <handa@gnu.org> | |
3952 | ||
3953 | * charset.c (translate_char): Reset MSBs of arguments of | |
3954 | MAKE_CHAR. | |
3955 | (CHAR_COMPONENTS_VALID_P): Fix for ASCII. | |
3956 | ||
3957 | 1999-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org> | |
3958 | ||
3959 | * editfns.c (Fbufsize): Accept an extra BUFFER parameter. | |
3960 | ||
3961 | * fns.c (Fbase64_decode_region): Don't place point outside of the | |
3962 | current accessible portion. | |
3963 | ||
3964 | 1999-09-07 Richard Stallman <rms@gnu.org> | |
3965 | ||
3966 | * keymap.c (fix_submap_inheritance): Do nothing if the proper | |
3967 | parent is an ancestor of SUBMAP; otherwise, add it as the | |
3968 | ultimate ancestor. | |
3969 | ||
3970 | 1999-09-07 Gerd Moellmann <gerd@gnu.org> | |
3971 | ||
3972 | * xdisp.c (handle_single_display_prop): Change conditional | |
3973 | display property to `:when FORM . VALUE'. | |
3974 | ||
3975 | 1999-09-07 Richard Stallman <rms@gnu.org> | |
3976 | ||
3977 | * fileio.c (Fwrite_region): Doc fix. | |
3978 | ||
3979 | 1999-09-07 Stefan Monnier <monnier@cs.yale.edu> | |
3980 | ||
3981 | * fileio.c (Qexcl): New variable. | |
3982 | (report_file_error): Handle EEXIST specially. | |
3983 | (Fwrite_region): Special handling for CONFIRM = `excl'. | |
3984 | (syms_of_fileio): Initialize Qexcl. | |
3985 | ||
3986 | 1999-09-07 Gerd Moellmann <gerd@gnu.org> | |
3987 | ||
3988 | * xfns.c (x_set_foreground_color): Call | |
3989 | update_face_from_frame_parameter. | |
3990 | (x_set_background_color): Ditto. | |
3991 | (x_set_mouse_color): Ditto. | |
3992 | (x_set_cursor_color): Ditto. | |
3993 | (x_set_border_color): Ditto. | |
3994 | (x_set_scroll_bar_foreground): Ditto. | |
3995 | (x_set_scroll_bar_background): Ditto. | |
3996 | ||
3997 | * xfaces.c (recompute_basic_faces): Clear face cache. | |
3998 | (Finternal_set_lisp_face_attribute): Modify frame parameters | |
3999 | if attributes of certain faces are changed. | |
4000 | (update_face_from_frame_parameter): New. | |
4001 | ||
4002 | * xfaces.c (realize_basic_faces): Realize new basic faces. | |
4003 | ||
4004 | * dispextern.h (SCROLL_BAR_FACE_ID, BORDER_FACE_ID, | |
4005 | CURSOR_FACE_ID, MOUSE_FACE_ID): New. | |
4006 | ||
4007 | * xfaces.c (Qscroll_bar, Qcursor, Qborder, Qmouse): New. | |
4008 | (syms_of_xfaces): Intialize new symbols. | |
4009 | ||
4010 | * fns.c (Fmakehash): Take one argument, test, make all the | |
4011 | rest keyword arguments. | |
4012 | ||
4013 | * window.c (Fset_window_margins): Make window the first argument. | |
4014 | (set_window_buffer): Call Fset_window_margins with window as first | |
4015 | argument. | |
4016 | ||
4017 | 1999-09-07 Gerd Moellmann <gerd@gnu.org> | |
4018 | ||
4019 | * xfaces.c (Qfringe): Replaces Qmargin. | |
4020 | ||
4021 | 1999-09-07 Kenichi Handa <handa@etl.go.jp> | |
4022 | ||
4023 | * charset.h: Lots of comments fixed. | |
4024 | (PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string. | |
4025 | (STRING_CHAR_AND_CHAR_LENGTH): This macro removed. | |
4026 | ||
4027 | * charset.c : Lots of comments fixed. | |
4028 | (SPLIT_MULTIBYTE_SEQ): Make it work also for ASCII string. | |
4029 | (CHAR_COMPONENTS_VALID_P): Name changed from | |
4030 | CHAR_COMPONENT_VALID_P. Caller changed. | |
4031 | ||
4032 | 1999-09-06 Richard Stallman <rms@gnu.org> | |
4033 | ||
4034 | * insdel.c (syms_of_insdel): Define Lisp variable | |
4035 | inhibit-modification-hooks. | |
4036 | ||
4037 | 1999-09-06 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de> | |
4038 | ||
4039 | * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new | |
4040 | unexaix.c. | |
4041 | ||
4042 | * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c. | |
4043 | ||
4044 | 1999-09-06 Dave Love <fx@gnu.org> | |
4045 | ||
4046 | * unexaix.c: New version incorporating Michael Sperber's changes | |
4047 | from XEmacs. Should solve problems on AIX 4.3. | |
4048 | ||
4049 | * lread.c (Vbyte_boolean_vars): New variable. | |
4050 | (defvar_bool, syms_of_lread): Use it. | |
4051 | ||
4052 | 1999-09-05 Richard Stallman <rms@gnu.org> | |
4053 | ||
4054 | * minibuf.c (read_minibuf): Put all three properties on the | |
4055 | same range, the whole prompt. | |
4056 | ||
4057 | 1999-09-05 Gerd Moellmann <gerd@gnu.org> | |
4058 | ||
4059 | * sound.c (Qplay_sound_functions): Replaces Qplay_sound_hook. | |
4060 | (Fplay_sound, syms_of_sound): Use it. | |
4061 | (parse_sound): Allow float volume values in the range [0, 1]. | |
4062 | (Fplay_sound): Ditto. | |
4063 | ||
4064 | * window.c (Fset_window_vscroll): Make window the first argument, | |
4065 | amount to scroll the second. Take non-negative vscroll as | |
4066 | argument. | |
4067 | (Fwindow_vscroll): Return non-negative vscroll. | |
4068 | ||
4069 | * xfns.c (Fx_show_tip): Improve documentation. | |
4070 | ||
4071 | 1999-09-05 Gerd Moellmann <gerd@gnu.org> | |
4072 | ||
4073 | * buffer.c, buffer.h, dispextern.h, dispnew.c, keyboard.c, | |
4074 | window.c, xdisp.c, xfaces.c, xterm.c, keyboard.h: Change | |
4075 | `top-line' and `top_line' to `header-line' and `header_line'. | |
4076 | Likewise for similar spellings. | |
4077 | ||
4078 | 1999-09-05 Gerd Moellmann <gerd@gnu.org> | |
4079 | ||
4080 | * xdisp.c (row_containing_pos): New. | |
4081 | (try_window_id): Use it. | |
4082 | ||
4083 | * alloc.c, dispextern.h, dispnew.c, frame.c, frame.h, keyboard.c, | |
4084 | lisp.h, termhooks.h, window.c xdisp.c, xfaces.c, xfns.c, xterm.c: | |
4085 | Change spelling of `toolbar' to `tool_bar' or `tool-bar'. | |
4086 | Likewise for upper-case etc. | |
4087 | ||
4088 | 1999-09-05 Gerd Moellmann <gerd@gnu.org> | |
4089 | ||
4090 | * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]: | |
4091 | Fix reference to renamed variable. | |
4092 | ||
4093 | 1999-09-04 Gerd Moellmann <gerd@gnu.org> | |
4094 | ||
4095 | * window.c (Qwindow_size_fixed): Replaces Qfixed_window_size. | |
4096 | (window_fixed_size_p): Use Qwindow_size_fixed instead of | |
4097 | Qfixed_window_size. | |
4098 | (syms_of_window): Ditto. | |
4099 | ||
4100 | * fns.c (Fmakehash): Exchange optional test and size arguments. | |
4101 | ||
4102 | 1999-09-03 Gerd Moellmann <gerd@gnu.org> | |
4103 | ||
4104 | * xterm.c (XTset_vertical_scroll_bar): Block input when clearing | |
4105 | under newly created scroll bar. | |
4106 | (expose_window): If window is not yet fully initialized, do | |
4107 | nothing. This can happen when toolkit scroll bars are used and a | |
4108 | window is split. Reconfiguring the scroll bars will generate an | |
4109 | expose for a newly created window. | |
4110 | ||
4111 | * frame.h (struct frame): New member `gamma'. | |
4112 | ||
4113 | * xfns.c: Include math.h. Add extern declaration for atof in case | |
4114 | we don't see one. | |
4115 | (Qscreen_gamma): New. | |
4116 | (struct x_frame_parm_table): Add prototypes, add | |
4117 | x_set_screen_gamma. | |
4118 | (gamma_correct): New function. | |
4119 | (defined_color): Call it. | |
4120 | (x_set_screen_gamma): New. | |
4121 | (x_set_title): Add parameter old_value. | |
4122 | (RES_TYPE_FLOAT): New. | |
4123 | (x_get_arg): Handle RES_TYPE_FLOAT. | |
4124 | (Fx_create_frame): Call x_default_parameter for `screen-gamma'. | |
4125 | (lookup_pixel_color): Change call to x_alloc_nearest_color to | |
4126 | new prototype. | |
4127 | (lookup_rgb_color): Ditto. | |
4128 | (syms_of_xfns): Initialize Qscreen_gamma. | |
4129 | ||
4130 | * xterm.c (x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]: | |
4131 | New. Allocate color for lwlib widgets. | |
4132 | (x_alloc_nearest_color): Change parameter list include the | |
4133 | frame on which to allocate colors. Gamma-correct colors. | |
4134 | (x_alloc_lighter_color): Call x_alloc_lighter_color with new | |
4135 | parameter list. | |
4136 | ||
4137 | * xterm.h: Change protorype of x_alloc_nearest_color. | |
4138 | ||
4139 | 1999-09-03 Richard Stallman <rms@gnu.org> | |
4140 | ||
4141 | * callproc.c: Delete the system-independent include of stdlib.h | |
4142 | (leaving only the one in the WINDOWSNT conditional). | |
4143 | ||
4144 | 1999-09-03 Andrew Choi <choi@cs.hku.hk> | |
4145 | ||
4146 | * callproc.c (call-process) [macintosh]: Call mac_run_command in | |
4147 | sysdep.c. The Mac code is modeled after the DOS code. | |
4148 | ||
4149 | * dispextern.h [macintosh]: Include macterm.h to define substitute X | |
4150 | Window types and macros. | |
4151 | ||
4152 | * frame.h: Do nothing if included a second time. | |
4153 | (enum output_method): Add mac_output frame type. | |
4154 | (union output_data): Add new alternative `mac'. | |
4155 | (FRAME_MAC_P): New macro. | |
4156 | ||
4157 | * frame.c (Fframep) [macintosh]: Handle mac frame type. | |
4158 | (syms_of_frame_1): Initialize Qmac. | |
4159 | (make_terminal_frame) [macintosh]: Initialize output_data.mac fields. | |
4160 | (Fmake_terminal_frame) [macintosh]: Add an alternate error check. | |
4161 | (Fmodify_frame_parameters) [macintosh]: Call | |
4162 | mac_set_frame_parameter in macterm.c. | |
4163 | ||
4164 | * keyboard.c [macintosh]: Set KBD_BUFFER_SIZE to a smaller value | |
4165 | (512) because Mac compilers limit local data of a function to 32K. | |
4166 | ||
4167 | * make-docfiles.c: Correctly handle input files with Mac-style | |
4168 | eol's. | |
4169 | ||
4170 | * sysdep.c: Define numerous routines to emulate Unix system calls. | |
4171 | ||
4172 | * xfaces.c: on MacOS, define the set of colors listed in rgb.txt | |
4173 | file of an X Window environment. | |
4174 | ||
4175 | * xfaces.c: on MacOS, define the Lisp functions x-display-color-p, | |
4176 | x-display-grayscale, x-color-defined-p, and x-color-values. | |
4177 | ||
4178 | * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access) | |
4179 | (open, creat, unlink, read, write, rename, fopen, pause, alarm) | |
4180 | (signal, sleep, gmtime, localtime, ctime, time, index, mktemp) | |
4181 | (getpwuid, getpwnam, dup, dup2, isatty, getgid, getegid, getuid) | |
4182 | (geteuid, getpid, getenv, uname, opendir, closedir, readdir, getwd.): | |
4183 | New functions, replacing POSIX features. | |
4184 | ||
4185 | * sysdep.c [macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm) | |
4186 | (InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy): | |
4187 | (InitEmacsPasswdDir, run_mac_command): New subroutines. | |
4188 | ||
4189 | * sysdep.c [macintosh] (targetTicks, alarm_signal_func, myPasswdName) | |
4190 | (myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask) | |
4191 | (myPasswdDir, TempDirName, sys_siglist): New variables. | |
4192 | ||
4193 | * sysdep.c [macintosh] (execvp, wait, croak, fork, kill, sigsetmask) | |
4194 | (sigblock, request_sigio, unrequest_sigio, setpgrp, pipe, symlink) | |
4195 | (link, lstat, readlink, umask, chmod, sbrk, fsync, ioctl): | |
4196 | Define empty stubs so Emacs will link. | |
4197 | ||
4198 | 1999-09-03 Gerd Moellmann <gerd@gnu.org> | |
4199 | ||
4200 | * xdisp.c: Use XCAR and XCDR instead of XCONS. | |
4201 | ||
4202 | * window.h: New member frozen_window_start_p. | |
4203 | ||
4204 | * window.c (foreach_window, foreach_window_1): New. | |
4205 | (freeze_window_start, freeze_window_starts): New. | |
4206 | (make_window): Initialize frozen_window_start_p. | |
4207 | (replace_window): Ditto. | |
4208 | (Fset_window_point): Remove references to deleted variables. | |
4209 | (Fset_window_start): Ditto. | |
4210 | ||
4211 | * xdisp.c (Vresize_mini_config, resize_mini_frame, | |
4212 | resize_mini_initial_height): Removed. | |
4213 | (syms_of_xdisp): Remove references to these variables. | |
4214 | (resize_mini_window): Don't save window configuration, freeze | |
4215 | window starts instead. Enlarge window until displaying an empty | |
4216 | buffer, then shrink it. Make the function externally visible. | |
4217 | (redisplay_window): Treat frozen window start like forced start, | |
4218 | but accept point outside of the window. | |
4219 | ||
4220 | * dispextern.h: Add function prototype for resize_mini_window. | |
4221 | ||
4222 | * minibuf.c (read_minibuf_unwind): Resize mini-window when | |
4223 | reaching minibuf_level 0. | |
4224 | ||
4225 | * lisp.h: Remove extern declarations for variables deleted from | |
4226 | xdisp.c. | |
4227 | ||
4228 | * dispnew.c (adjust_frame_glyphs): Remove reference to | |
4229 | Vresize_mini_config. | |
4230 | ||
4231 | 1999-09-03 Gerd Moellmann <gerd@gnu.org> | |
4232 | ||
4233 | * xfns.c (x_set_scroll_bar_width): Change conditional compilation | |
4234 | to USE_TOOLKIT_SCROLL_BARS. | |
4235 | ||
4236 | * xterm.c (x_scroll_bar_create): Don't clear under scroll bar | |
4237 | here. | |
4238 | (XTset_vertical_scroll_bar): Clarify position computations. Clear | |
4239 | under newly created scroll bar. Put toolkit scroll bars in the | |
4240 | middle of the area reserved for the scroll bar. | |
4241 | ||
4242 | 1999-09-03 Kenichi Handa <handa@etl.go.jp> | |
4243 | ||
4244 | The following changes are for the new handling of mulitbyte | |
4245 | sequence. Now, except for a composite character, no multibyte | |
4246 | character in string/buffer has trailing garbage bytes. For | |
4247 | instance, the length of string "\201\300\300" is now 2, the first | |
4248 | character is Latin-1 A-grave, the second is raw \300. | |
4249 | ||
4250 | * charset.h (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2 | |
4251 | are negative. | |
4252 | (MAKE_CHAR): Don't set MSBs of C1 and C2 to 0. | |
4253 | (VALID_MULTIBYTE_CHAR_P): This macro deleted. | |
4254 | (PARSE_COMPOSITE_SEQ): New macro. | |
4255 | (PARSE_CHARACTER_SEQ): New macro. | |
4256 | (PARSE_MULTIBYTE_SEQ): New macro. | |
4257 | (CHAR_PRINTABLE_P): New macro. | |
4258 | (STRING_CHAR): Adjusted for the change of string_to_non_ascii_char. | |
4259 | (STRING_CHAR_AND_LENGTH): Likewise. | |
4260 | (STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH. | |
4261 | (INC_POS): Use the macro PARSE_MULTIBYTE_SEQ. | |
4262 | (DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise, | |
4263 | ||
4264 | * charset.c (SPLIT_COMPOSITE_SEQ): New macro. | |
4265 | (SPLIT_CHARACTER_SEQ): New macro. | |
4266 | (SPLIT_MULTIBYTE_SEQ): New macro. | |
4267 | (CHAR_COMPONENT_VALID_P): New macro. | |
4268 | (non_ascii_char_to_string): Generate a multibyte sequence as far | |
4269 | as possible. | |
4270 | (string_to_non_ascii_char): The 4th arg exclude_tail_garbage is | |
4271 | deleted. Caller changed. Use the macro SPLIT_MULTIBYTE_SEQ. | |
4272 | (split_non_ascii_string): Likewise. | |
4273 | (multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ. | |
4274 | (char_printable_p): New function. | |
4275 | (translate_char): Check character by NATNUMP instead of INTEGERP. | |
4276 | (unibyte_char_to_multibyte): Call char_valid_p instead of | |
4277 | VALID_MULTIBYTE_CHAR_P. | |
4278 | (Fmake_char_internal): Check the arguments more rigidly. | |
4279 | (Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ. | |
4280 | (char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P. | |
4281 | (Fmultibyte_char_to_unibyte): Check the validity of character by | |
4282 | CHAR_VALID_P. | |
4283 | (chars_in_text): Call multibyte_chars_in_text. | |
4284 | (multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ. | |
4285 | (Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of | |
4286 | STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now). | |
4287 | ||
4288 | * data.c (Faset): Adjust the way to check byte-combining | |
4289 | possibility for the new handling of multibyte sequence. | |
4290 | ||
4291 | * editfns.c (Fsubst_char_in_region): Likewise. | |
4292 | ||
4293 | * fns.c (count_combining): Use the macro PARSE_MULTIBYTE_SEQ. | |
4294 | (string_char_to_byte): Likewise. | |
4295 | (string_byte_to_char): Likewise. | |
4296 | ||
4297 | * indent.c (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use the | |
4298 | macro STRING_CHAR_AND_LENGTH. Caller changed. | |
4299 | ||
4300 | * insdel.c (count_combining_composition): New function. | |
4301 | (count_combining_before): Adjust the way to check byte-combining | |
4302 | possibility for the new handling of multibyte sequence. Call | |
4303 | count_combining_composition for a composite character. | |
4304 | (count_combining_after): Likewise. | |
4305 | ||
4306 | * print.c (print_string): Use the macro STRING_CHAR_AND_LENGTH. | |
4307 | (print): Likewise. | |
4308 | ||
4309 | * dispextern.h (struct it): Change the size of the member | |
4310 | `ctl_chars'. | |
4311 | ||
4312 | * xdisp.c (get_next_display_element): Display incomplete multibyte | |
4313 | sequence (e.g. \222\300) by octal form. | |
4314 | ||
4315 | 1999-09-02 Gerd Moellmann <gerd@gnu.org> | |
4316 | ||
4317 | * xterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0. | |
4318 | ||
4319 | * fns.c (Fhash_table_weakness): Replaces Fhash_table_weak. | |
4320 | (cmpfn_eql, sxhash): Use XFLOAT_DATA. | |
4321 | ||
4322 | 1999-09-02 Gerd Moellmann <gerd@gnu.org> | |
4323 | ||
4324 | * buffer.c (set_buffer_internal): Never set | |
4325 | windows_or_buffers_changed. | |
4326 | ||
4327 | * xdisp.c (try_window_id): Reset first_unchanged_at_end_row | |
4328 | if we have displayed to the bottom of the window. | |
4329 | ||
4330 | * syntax.c (Fforward_word): Stop at a mini-buffer prompt end | |
4331 | in both directions. Extend documentation. | |
4332 | ||
4333 | 1999-09-01 Gerd Moellmann <gerd@gnu.org> | |
4334 | ||
4335 | * minibuf.c (read_minibuf): Flush display after setting cursor to | |
4336 | column 0. | |
4337 | ||
4338 | 1999-08-31 Gerd Moellmann <gerd@gnu.org> | |
4339 | ||
4340 | * s/freebsd.h (__FreeBSD_version): Don't define it if it is | |
4341 | already defined. This avoids a warning from buffer.c. | |
4342 | ||
4343 | 1999-08-30 Gerd Moellmann <gerd@gnu.org> | |
4344 | ||
4345 | * xterm.h (FRAME_X_FLAGS_AREA_COLS): Define it as the total width | |
4346 | of both margins. | |
4347 | (FRAME_X_FLAGS_AREA_WIDTH): Likewise. | |
4348 | (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New. | |
4349 | (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New. | |
4350 | ||
4351 | * frame.h (FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS | |
4352 | once instead of twice. | |
4353 | (FRAME_LEFT_FLAGS_AREA_WIDTH): New. | |
4354 | ||
4355 | * xterm.c: Remove unused bitmaps. | |
4356 | (continued_bits, continuation_bits, overlay_bits): Change images. | |
4357 | (x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH | |
4358 | instead of FRAME_X_FLAGS_AREA_WIDTH. | |
4359 | (x_after_update_window_line): Ditto. | |
4360 | (x_draw_bitmap): Likewise. | |
4361 | (x_draw_row_bitmaps): Likewise. | |
4362 | (x_draw_glyph_string_box): Likewise. | |
4363 | (x_draw_glyphs): Likewise. | |
4364 | (x_scroll_run): Likewise. | |
4365 | (expose_window_tree): Likewise. | |
4366 | (note_mode_line_highlight): Likewise. | |
4367 | (XTset_vertical_scroll_bar): Likewise. | |
4368 | (x_clip_to_row): Likewise. | |
4369 | (x_set_window_size): Likewise. | |
4370 | ||
4371 | * xfns.c (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead | |
4372 | of 2 * that value. | |
4373 | ||
4374 | * xdisp.c (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of | |
4375 | 2 * that value. | |
4376 | (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of | |
4377 | FRAME_FLAGS_AREA_WIDTH. | |
4378 | ||
4379 | * window.c (coordinates_in_window): Use | |
4380 | FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH. | |
4381 | (window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once | |
4382 | instead of twice. | |
4383 | ||
4384 | * widget.c (set_frame_size): Set flags_area_extra to | |
4385 | FRAME_FLAGS_AREA_WIDTH instead of 2 * that width. | |
4386 | (EmacsFrameSetCharSize): Ditto. | |
4387 | ||
4388 | * dispnew.c (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH | |
4389 | instead of FRAME_FLAGS_AREA_WIDTH. | |
4390 | ||
4391 | * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract | |
4392 | FRAME_FLAGS_AREA_COLS once. | |
4393 | (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Add | |
4394 | FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH. | |
4395 | ||
4396 | 1999-08-30 Gerd Moellmann <gerd@gnu.org> | |
4397 | ||
4398 | * freebsd.h (C_SWITCH_SYSTEM): Added to let configure find headers | |
4399 | in /usr/X11R6/include which are checked for with AC_CHECK_HEADER. | |
4400 | ||
4401 | 1999-08-30 Gerd Moellmann <gerd@gnu.org> | |
4402 | ||
4403 | * fns.c (QCweakness): Replaces QCweak. | |
4404 | (Fmake_hash_table): Ditto. | |
4405 | (Fmakehash): Ditto. | |
4406 | (syms_of_fns): Ditto. | |
4407 | ||
4408 | 1999-08-29 Richard Stallman <rms@gnu.org> | |
4409 | ||
4410 | * search.c (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp. | |
4411 | ||
4412 | * sysdep.c (read_input_waiting): Pass read_socket_hook just 4 args. | |
4413 | ||
4414 | * syntax.h (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED): | |
4415 | Add support for nested comments. | |
4416 | ||
863476d1 SM |
4417 | * syntax.c (Fforward_comment, scan_lists, scan_sexps_forward): |
4418 | Consolidate the forward comment code into the new `forw_comment'. | |
4419 | (forw_comment): New subroutine. Added support for nested comments. | |
4420 | (lisp_parse_state, back_comment, Fmodify_syntax_entry) | |
4421 | (Fparse_partial_sexp): Add support for nested comments. | |
26901792 DL |
4422 | |
4423 | 1999-08-28 Ken Raeburn <raeburn@gnu.org> | |
4424 | ||
4425 | * lisp.h (struct Lisp_Cons, XCAR, XCDR, struct Lisp_Float): Change | |
4426 | names of structure elements if HIDE_LISP_IMPLEMENTATION is | |
4427 | defined, to help detect code that uses knowledge of the Lisp | |
4428 | internals that it shouldn't have. | |
4429 | (XFLOAT_DATA): New macro. | |
4430 | ||
4431 | 1999-08-25 Gerd Moellmann <gerd@gnu.org> | |
4432 | ||
4433 | * syntax.c (Fforward_word): If in a mini-buffer and moving | |
4434 | backwards, stop in front of the prompt to prevent accidentially | |
4435 | moving into the read-only prompt. | |
4436 | ||
4437 | * window.c (Frecenter): Clear frame if called with nil or no arg. | |
4438 | ||
4439 | * xdisp.c (resize_mini_window): Don't resize if | |
4440 | Vmax_mini_window_height is nil. Otherwise, use a default if | |
4441 | Vmax_mini_window_height is not ot a number. | |
4442 | (syms_of_xdisp): Extend documentation of Vmax_mini_window_height. | |
4443 | ||
4444 | 1999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br> | |
4445 | ||
4446 | * unexelf.c: Merge IRIX debugging info patch from unexsgi.c | |
4447 | * m/iris4d.h: Use unexelf for IRIX 5.*. | |
4448 | * m/iris5d.h: Use unexelf for IRIX 6.*. | |
4449 | * unexsgi.c: Deleted. | |
4450 | ||
4451 | * unexelf.c: Auto-detect .sbss section. | |
4452 | (round_up): Make it static. | |
4453 | (unexec): Declare alignment as Elf Word. Skip ``Program | |
4454 | segment above .bss'' test on MIPS without .sbss. | |
4455 | Copy sections .got and .sdata1 sections. Adjust offsets in | |
4456 | sections .sdata, .lit4, .lit8, .got and .sdata1. | |
4457 | ||
4458 | 1999-08-25 Gerd Moellmann <gerd@gnu.org> | |
4459 | ||
4460 | * xdisp.c (try_window_id): Remove typo. | |
4461 | ||
4462 | 1999-08-24 Gerd Moellmann <gerd@gnu.org> | |
4463 | ||
4464 | * xdisp.c (try_window_id): Recognize case that PT == ZV and in | |
4465 | unchanged text at the bottom when computing the cursor position. | |
4466 | (message3_nolog): Raise frame only if minibuffer_auto_raise is | |
4467 | set. | |
4468 | ||
4469 | * lisp.h (PVEC_TYPE_MASK): Add the bit for hash tables. | |
4470 | ||
4471 | 1999-08-24 Gerd Moellmann <gerd@gnu.org> | |
4472 | ||
4473 | * xfaces.c (Qmargin): Replacement for Qbitmap_area. | |
4474 | (realize_basic_faces): Replace Qmargin for Qbitmap_area. | |
4475 | (syms_of_xfaces): Ditto. | |
4476 | ||
4477 | * window.c (Fset_window_point): Reset Vresize_mini_config. | |
4478 | (Fset_window_start): Ditto. | |
4479 | (set_window_buffer): Ditto. | |
4480 | ||
4481 | * dispnew.c (adjust_frame_glyphs): Reset Vresize_mini_config. | |
4482 | ||
4483 | * xdisp.c (redisplay_window): Don't ever test just_this_one_p | |
4484 | before calling try_window. | |
4485 | (echo_area_display): If height has changed, update other windows. | |
4486 | (resize_mini_frame, resize_mini_initial_height): New. | |
4487 | (resize_mini_window): Save/restore window configuration | |
4488 | differently. | |
4489 | ||
4490 | * lisp.h (Vresize_mini_config, resize_mini_frame, | |
4491 | resize_mini_initial_height): Add extern declarations. | |
4492 | ||
4493 | * xterm.c (expose_window_tree): Fix typo CANON_Y_UNIT to | |
4494 | CANON_X_UNIT. | |
4495 | ||
4496 | * xfns.c [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H | |
4497 | being redefined in jconfig.h. | |
4498 | ||
4499 | 1999-08-23 Ken'ichi Handa <handa@gnu.org> | |
4500 | ||
4501 | * coding.h: Include "ccl.h" instead of "../src/ccl.h". | |
4502 | ||
4503 | 1999-08-22 Gerd Moellmann <gerd@gnu.org> | |
4504 | ||
4505 | * alloc.c (mark_glyph_matrix): Mark strings only. | |
4506 | ||
4507 | * xdisp.c (redisplay_internal): Clear garbaged frames after | |
4508 | resizing mini-window. | |
4509 | ||
4510 | 1999-08-22 Gerd Moellmann <gerd@gnu.org> | |
4511 | ||
4512 | * xdisp.c (unwind_with_echo_area_buffer): Use | |
4513 | set_buffer_internal_1 instead of set_buffer_internal. | |
4514 | (with_echo_area_buffer): Ditto. | |
4515 | ||
4516 | * buffer.c (set_buffer_internal): Set windows_or_buffers_changed | |
4517 | only if buffer is displayed somewhere. | |
4518 | ||
4519 | * buffer.h (BUF_COMPUTE_UNCHANGED): New. | |
4520 | ||
4521 | * insdel.c (gap_left): Use BUF_COMPUTE_UNCHANGED. | |
4522 | (gap_right): Ditto. | |
4523 | (modify_region): Ditto. | |
4524 | ||
4525 | * buffer.c (modify_overlay): Use BUF_COMPUTE_UNCHANGED. | |
4526 | ||
4527 | * xdisp.c (Vresize_mini_config): New. | |
4528 | (resize_mini_window): Use it to save restore original window | |
4529 | configuration | |
4530 | (syms_of_xdisp): Initialize it. | |
4531 | ||
4532 | * buffer.h (struct buffer): Add prevent_redisplay_optimizations_p. | |
4533 | ||
4534 | * dispextern.h (struct glyph_matrix): Add buffer, begv, and zv. | |
4535 | ||
4536 | * xdisp.c (reconsider_clip_changes): New. | |
4537 | (redisplay_internal, redisplay_window): Call it. | |
4538 | (mark_window_display_accurate, redisplay_internal): Set current | |
4539 | matrix' buffer, begv, zv. | |
4540 | ||
4541 | * window.c (Fset_window_hscroll): Set | |
4542 | prevent_redisplay_optimizations_p instead of clip_changed. | |
4543 | (Fset_window_hscroll): Ditto. | |
4544 | (temp_output_buffer_show): Ditto. | |
4545 | (Fset_window_vscroll): Ditto. | |
4546 | ||
4547 | * buffer.c (reset_buffer): Set clip_changed to 0 and | |
4548 | prevent_redisplay_optimizations_p to 1. | |
4549 | (Fget_buffer_create): Set prevent_redisplay_optimizations_p to 1. | |
4550 | ||
4551 | * buffer.h (BUF_UNCHANGED_MODIFIED, UNCHANGED_MODIFIED, | |
4552 | BUF_OVERLAY_UNCHANGED_MODIFIED, OVERLAY_UNCHANGED_MODIFIED, | |
4553 | BUF_BEG_UNCHANGED, BEG_UNCHANGED, BUF_END_UNCHANGED, | |
4554 | END_UNCHANGED): New. | |
4555 | (struct buffer_text): Add beg_unchanged, end_unchanged, | |
4556 | unchanged_modified, overlay_unchanged_modified. | |
4557 | ||
4558 | * window.h (beg_unchanged, end_unchanged, unchanged_modified, | |
4559 | overlay_unchanged_modified): Removed. | |
4560 | (with_echo_area_unwind_data): Don't save beg/end_unchanged. | |
4561 | (unwind_with_echo_area_buffer): Don't restore them. | |
4562 | (debug_beg_unchanged, debug_end_unchanged) [GLYPH_DEBUG]: Removed. | |
4563 | (text_outside_line_unchanged_p, redisplay_internal, | |
4564 | try_scrolling): Use/set buffer-specific beg/end_unchanged. | |
4565 | (redisplay_window): Let try_window_id be called if more than one | |
4566 | window is displayed. Use/set buffer-specific beg/end_unchanged. | |
4567 | (get_last_unchanged_at_beg_row, get_first_unchanged_at_end_row, | |
4568 | try_window_id): | |
4569 | Use buffer-specific beg/end_unchanged. | |
4570 | ||
4571 | * window.h (beg_unchanged, end_unchanged, unchanged_modified, | |
4572 | overlay_unchanged_modified): Remove extern declarations. | |
4573 | ||
4574 | * keyboard.c (command_loop_1): Set beg/end_unchanged per | |
4575 | buffer. | |
4576 | ||
4577 | * insdel.c (gap_left): Compute beg/end_unchanged per buffer. | |
4578 | (gap_right): Ditto. | |
4579 | (adjust_after_replace): Likewise. | |
4580 | (replace_range, del_range_2, modify_region): Likewise. | |
4581 | ||
4582 | * dispnew.c (direct_output_for_insert): Set beg_unchanged | |
4583 | and unchanged_modified per buffer. | |
4584 | ||
4585 | * coding.c (code_convert_region): Compute beg/end_unchanged per | |
4586 | buffer. | |
4587 | ||
4588 | * buffer.c (modify_overlay): Compute beg/end_unchanged | |
4589 | per buffer. | |
4590 | (Fget_buffer_create): Initialize new members of the buffer | |
4591 | structure. | |
4592 | ||
4593 | 1999-08-22 Gerd Moellmann <gerd@gnu.org> | |
4594 | ||
4595 | * lisp.h: Add prototype for copy_hash_table and Fcopy_hash_table. | |
4596 | ||
4597 | * fns.c (Qkey, Qvalue): Renamed from Qkey_weak, and Qvalue_weak. | |
4598 | (Qkey_value_weak): Removed. | |
4599 | (make_hash_table): Use nil, `key', `value', t for weakness. | |
4600 | (Fmake_hash_table): Ditto. | |
4601 | (copy_hash_table): New. | |
4602 | (Fcopy_hash_table): New. | |
4603 | ||
4604 | 1999-08-22 Gerd Moellmann <gerd@gnu.org> | |
4605 | ||
4606 | * xfns.c: Call change_frame_size and do_pending_window_change with | |
4607 | new parameter. | |
4608 | ||
4609 | 1999-08-21 Gerd Moellmann <gerd@gnu.org> | |
4610 | ||
4611 | * xdisp.c (resize_mini_window): Do it for truncate-lines t as | |
4612 | well. | |
4613 | (redisplay_internal): Resize mini-window only if text might | |
4614 | have changed. | |
4615 | (display_echo_area): Reset displayed echo_area_buffer to nil | |
4616 | at the end if we're displaying a nil message. | |
4617 | ||
4618 | 1999-08-21 Gerd Moellmann <gerd@gnu.org> | |
4619 | ||
4620 | * fns.c (hash_lookup): Test with EQ before calling key comparion | |
4621 | function. | |
4622 | (hash_remove): Ditto. | |
4623 | (cmpfn_eq): Removed. | |
4624 | (cmpfn_eql): Don't test with EQ. | |
4625 | (cmpfn_equal): Ditto. | |
4626 | (make_hash_table): Set comparison function for `eq' to null. | |
4627 | ||
4628 | * buffer.c, cmds.c, editfns.c, indent.c, insdel.c, buffer.h: | |
4629 | Remove conditional compilation on NO_PROMPT_IN_BUFFER. | |
4630 | ||
4631 | * dispextern.h (NO_PROMPT_IN_BUFFER): Removed. | |
4632 | ||
4633 | * window.c, widget.c, process.c, keyboard.c, frame.c, xdisp.c, | |
4634 | xterm.c: Call change_frame_size and do_pending_window_change with | |
4635 | new parameter. | |
4636 | ||
4637 | * dispnew.c (do_pending_window_change): Add parameter `safe'. | |
4638 | (change_frame_size): Ditto. | |
4639 | (change_frame_size_1): Ditto. Deley size changes if redisplaying | |
4640 | and not called from a safe place. | |
4641 | (window_change_signal): Call change_frame_size with new parameter. | |
4642 | ||
4643 | * dispextern.h: Change prototypes for do_pending_window_change | |
4644 | and change_frame_size. | |
4645 | ||
4646 | * xfaces.c (face_at_buffer_position): Don't xassert that | |
4647 | window's buffers equals current_buffer; this is not the | |
4648 | case during echo area display. | |
4649 | ||
4650 | 1999-08-21 Gerd Moellmann <gerd@gnu.org> | |
4651 | ||
4652 | * xdisp.c, minibuf.c: Remove conditional compilation on | |
4653 | NO_PROMPT_IN_BUFFER. | |
4654 | ||
4655 | * minibuf.c (Fminibuffer_prompt_end): New. | |
4656 | (syms_of_minibuf): Defsubr it. Remove | |
4657 | minibuffer-prompt-in-buffer. | |
4658 | (Fminibuffer_prompt_width): Return 0 if not in mini-buffer. | |
4659 | Extend documentation. | |
4660 | ||
4661 | * xdisp.c (get_next_display_element): Display \r as ^M. | |
4662 | ||
4663 | * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear | |
4664 | under scroll bar widget. | |
4665 | ||
4666 | 1999-08-21 Gerd Moellmann <gerd@gnu.org> | |
4667 | ||
4668 | * xdisp.c (minibuffer_scroll_overlap): Removed because not used | |
4669 | anywhere. | |
4670 | (unwind_redisplay): Return nil. | |
4671 | (clear_garbaged_frames): New. | |
4672 | (redisplay_internal): Use it. | |
4673 | (echo_area_display): Ditto. | |
4674 | (resize_mini_window): Mew. | |
4675 | (display_echo_area_1): Use it to resize echo area window. | |
4676 | (redisplay_internal): Use it to resize active mini-window. | |
4677 | ||
4678 | * dispextern.h, lisp.h: Add function prototypes. | |
4679 | ||
4680 | * dispnew.c (set_window_cursor_after_update): Do the | |
4681 | cursor_in_echo_area case only for a mini-window showing | |
4682 | a message. Don't let cursor end up after the end of a row. | |
4683 | ||
4684 | * xdisp.c (echo_area_glyphs, echo_area_message, | |
4685 | echo_area_glyphs_length, previous_echo_glyphs, | |
4686 | previous_echo_area_message, previous_echo_area_glyphs_length): | |
4687 | Removed. | |
4688 | (Vmessage_stack, echo_area_buffer, echo_buffer, | |
4689 | display_last_displayed_message_p, Vwith_echo_area_save_vector): New. | |
4690 | (message2_nolog): Use set_message and clear_message. | |
4691 | (message3): Rename parameter len to nbytes to make clear what | |
4692 | it is. | |
4693 | (message3_nolog): Ditto. Use set_message and clear_message. | |
4694 | (update_echo_area): Rewritten. | |
4695 | (with_echo_area_buffer): New. | |
4696 | (with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New. | |
4697 | (setup_echo_area_for_printing): New. | |
4698 | (display_echo_area, display_echo_area_1): New. | |
4699 | ||
4700 | (current_message, current_message_1): New. | |
4701 | (push_message, restore_message, pop_message, | |
4702 | check_message_stack): New. | |
4703 | (truncate_echo_area): Rewritten. | |
4704 | (truncate_message_1): New. | |
4705 | (set_message, set_message_1, clear_message): New. | |
4706 | (echo_area_display): Rewritten. | |
4707 | (redisplay_internal): Check for needed echo area update | |
4708 | differently. | |
4709 | (redisplay_preserve_echo_area): Rewritten. | |
4710 | (redisplay_window): Check for mini-window displaying echo area | |
4711 | message differently. | |
4712 | (syms_of_xdisp): Initialize Vmessage_stack and echo area buffers. | |
4713 | Remove initialzation of removed variables. | |
4714 | (init_xdisp): Remove references to removed variables. | |
4715 | ||
4716 | * dispnew.c (adjust_frame_message_buffer): Removed references | |
4717 | to echo_area_glyphs and previous_echo_glyphs. | |
4718 | (direct_output_for_insert): Check for mini-window displaying | |
4719 | echo area message differently. | |
4720 | (update_frame): Likewise. | |
4721 | (set_window_cursor_after_update): Likewise. In echo area, | |
4722 | don't try to set cursor on rows that aren't enabled. | |
4723 | ||
4724 | * print.c: Remove conditional compilation on `standalone'. | |
4725 | (glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy, | |
4726 | glyph_to_str_cpy): Remove that section because GLYPHs are no | |
4727 | longer used in that way. | |
4728 | (PRINTDECLARE): Add multibyte. | |
4729 | (PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently. | |
4730 | (printbufidx): Removed. | |
4731 | (printchar, strout): Rewritten. | |
4732 | ||
4733 | * keyboard.c (ok_to_echo_at_next_pause): Make it a pointer to | |
4734 | a struct kboard. | |
4735 | (echo_kboard): New. | |
4736 | (echo_now): Set echo_kboard to the current kboard. | |
4737 | (cancel_echoing): Set echo_kboard to null. | |
4738 | (cmd_error_internal): Use clear_message, remove references | |
4739 | to echo_area_glyphs and echo_area_message. | |
4740 | (command_loop_1): Check for echo area messages differently. | |
4741 | (read_char): Likewise. | |
4742 | (record_menu_key): Use clear_message. | |
4743 | (Fexecute_extended_command): Check for echo area messages | |
4744 | differently. Use push_message, restore_message, pop_message. | |
4745 | ||
4746 | * alloc.c (Fgarbage_collect): Use push_message, restore_message, | |
4747 | pop_message. | |
4748 | ||
4749 | * emacs.c (shut_down_emacs): Call check_message_stack. | |
4750 | ||
4751 | * lisp.h: Add function prototypes and extern declarations for | |
4752 | new functions and variables. | |
4753 | ||
4754 | * fileio.c (Fdo_auto_save): Use push_message, restore_message, | |
4755 | pop_message. | |
4756 | ||
4757 | * minibuf.c (read_minibuf): Use clear_message instead of | |
4758 | setting echo_area_glyphs. | |
4759 | (Fminibuffer_completion_help): Ditto. | |
4760 | ||
4761 | * editfns.c (Fcurrent_message): Rewritten. | |
4762 | ||
4763 | * frame.c, window.h: Remove references to echo_area_glyphs | |
4764 | and previous_echo_glyphs. | |
4765 | ||
4766 | 1999-08-21 Dave Love <fx@gnu.org> | |
4767 | ||
4768 | * aix3-2-5.h (C_DEBUG_SWITCH): Use -g -O. | |
4769 | * aix4-1.h: Likewise. | |
4770 | ||
4771 | * irix6-5.h (C_DEBUG_SWITCH): Set for debug and optimize. | |
4772 | ||
4773 | 1999-08-20 Gerd Moellmann <gerd@gnu.org> | |
4774 | ||
4775 | * xfns.c: Remove tiff34 prefix from include. | |
4776 | ||
4777 | 1999-08-20 Dave Love <fx@gnu.org> | |
4778 | ||
4779 | * cm.c: Revert previous change. | |
4780 | ||
4781 | 1999-08-19 Gerd Moellmann <gerd@gnu.org> | |
4782 | ||
4783 | * xterm.c (XTset_vertical_scroll_bar): Fix previous change. Clear | |
4784 | under scroll bar with width FRAME_SCROLL_BAR_COLS. | |
4785 | ||
4786 | 1999-08-18 Dave Love <fx@gnu.org> | |
4787 | ||
4788 | * callproc.c, filelock.c, insdel.c, sysdep.c, xmenu.c: Use | |
4789 | stdlib.h. | |
4790 | ||
4791 | * doprnt.c: Use stdlib.h, unistd.h. | |
4792 | ||
4793 | * config.in: Add HAVE_TERMCAP_H. | |
4794 | ||
4795 | * cm.c: Use termcap.h. | |
4796 | ||
4797 | 1999-08-18 Gerd Moellmann <gerd@gnu.org> | |
4798 | ||
4799 | * xfns.c (x_window) [USE_X_TOOLKIT]: Remove test for | |
4800 | FRAME_X_WINDOW (f) being null at the of the function. If widgets | |
4801 | cannot be created we will already have crashed earlier. Call | |
4802 | lw_set_main_areas with a null menu-bar widget, so that we have | |
4803 | a reasonable default. | |
4804 | (Fx_create_frame): Rearranged so that Lisp errors during frame | |
4805 | initialization cause less damage. Initialize menu bar widget | |
4806 | here. | |
4807 | ||
4808 | 1999-08-18 Gerd Moellmann <gerd@gnu.org> | |
4809 | ||
4810 | * dispnew.c (update_frame_line): Fix previous change. If writing | |
4811 | whole line clear to end of frame. | |
4812 | ||
4813 | 1999-08-17 Gerd Moellmann <gerd@gnu.org> | |
4814 | ||
4815 | * window.c (Fcoordinates_in_window_p): Return `left-bitmap-area' | |
4816 | and `right-bitmap-area' if position is in the bitmap areas. This | |
4817 | avoids an error when clicking on the bitmap areas. Instead, they | |
4818 | are currently treated like clicks inside the window. | |
4819 | (coordinates_in_window): Return 5 and 6 for bitmap areas. | |
4820 | (Qleft_bitmap_area, Qright_bitmap_area): New. | |
4821 | (syms_of_window): Initialize new symbols. | |
4822 | ||
4823 | * dispnew.c (update_frame_line): If writing whole line, | |
4824 | don't write trailing spaces unless we must. | |
4825 | ||
4826 | * xdisp.c (unwind_redisplay): New. Resets flag redisplaying_p. | |
4827 | (redisplay_internal): Register unwind_redisplay with | |
4828 | register_unwind_protect. | |
4829 | (try_window_reusing_current_matrix): If new start > old start, | |
4830 | give up if start pos of first reusable row is not equal to new | |
4831 | start. | |
4832 | ||
4833 | * eval.c (Fsignal): Don't reset redisplaying_p here. | |
4834 | ||
4835 | * xterm.c (expose_area): If row extends face to end of line, | |
4836 | write the whole line. | |
4837 | ||
4838 | 1999-08-16 Gerd Moellmann <gerd@gnu.org> | |
4839 | ||
4840 | * dispextern.h (struct it): Remove member | |
4841 | show_trailing_whitespace_p. | |
4842 | ||
4843 | * dispnew.c (direct_output_for_insert): Use | |
4844 | Vshow_trailing_whitespace instead of former iterator member | |
4845 | show_trailing_whitespace_p. | |
4846 | (direct_output_forward_char): Don't do it if hightlighting | |
4847 | trailing whitespace. | |
4848 | ||
4849 | * xdisp.c (Qshow_trailing_whitespace): Removed. | |
4850 | (Vshow_trailing_whitespace): Added. | |
4851 | (init_iterator): Remove initialization code for | |
4852 | show_trailing_whitespace_p. | |
4853 | (redisplay_internal): Don't try cursor movement in this_line | |
4854 | if showing trailing whitespace. | |
4855 | (redisplay_window): Likewise for cursor movement in current | |
4856 | matrix and try_window_id. | |
4857 | (try_window_reusing_current_matrix): Likewise. | |
4858 | (trailing_whitespace_p): Return 0 if trailing whitespace is | |
4859 | in front of point. | |
4860 | (display_line): Use Vshow_trailing_whitespace instead of | |
4861 | former iterator member show_trailing_whitespace_p. | |
4862 | (syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace. | |
4863 | ||
4864 | 1999-08-16 Gerd Moellmann <gerd@gnu.org> | |
4865 | ||
4866 | * window.c (Fpos_visible_in_window_p): Rewritten. | |
4867 | ||
4868 | * xfaces.c (add_to_log): Renamed from display_message. | |
4869 | Don't display messages in echo area. | |
4870 | ||
4871 | * xterm.c (x_draw_glyph_string_box): Use the background width | |
4872 | of the glyph string for the width of the box. | |
4873 | ||
4874 | 1999-08-16 Stefan Monnier <monnier@cs.yale.edu> | |
4875 | ||
4876 | * syntax.c (Fforward_comment): Set comstyle for Scomment_fence. | |
4877 | ||
4878 | 1999-08-16 Geoff Voelker <voelker@cs.washington.edu> | |
4879 | ||
4880 | * xfns.c, w32fns.c (x_set_frame_parameters): Set foreground and | |
4881 | background first, and then set other parameters that might | |
4882 | depend upon their new values. | |
4883 | ||
4884 | 1999-08-15 Gerd Moellmann <gerd@gnu.org> | |
4885 | ||
4886 | * xfaces.c (Vfont_list_limit): New. | |
4887 | (syms_of_xfaces): Make it a user-variable. | |
4888 | (DEFAULT_FONT_LIST_LIMIT): New. | |
4889 | (sorted_font_list): If Vfont_list_limit is an integer > 0, list | |
4890 | maximally that number of fonts, otherwise use | |
4891 | DEFAULT_FONT_LIST_LIMIT. | |
4892 | (Fx_font_family_list): Bind `font-list-limit' to higher values | |
4893 | until we have all fonts. | |
4894 | (Fxfont_list): Additionally return the full names of fonts and | |
4895 | their registry and encoding. | |
4896 | ||
4897 | * xterm.c (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: | |
4898 | Simplify clearing "under" scroll bar. | |
4899 | ||
4900 | * window.c (Qfixed_window_size): New. | |
4901 | (syms_of_window): Initialiaze it. | |
4902 | (check_all_windows): Add return type void. | |
4903 | (window_fixed_size_p): New. Return non-zero if window | |
4904 | is fixed-size. | |
4905 | (window_min_size_1): New. | |
4906 | (window_min_size): Handle fixed-size windows. | |
4907 | (size_window): New. Rewritten combination of set_window_height and | |
4908 | set_window_width that handles fixed-size windows. | |
4909 | (set_window_height): Call it. | |
4910 | (set_window_width): Call it. | |
4911 | (Fsplit_window): Give an error on attempt to split a fixed-size | |
4912 | window. | |
4913 | (change_window_height): Partly rewritten to handle fixed-size | |
4914 | windows. | |
4915 | ||
4916 | 1999-08-13 Wolfgang Rupprecht <wolfgang@wsrcc.com> | |
4917 | ||
4918 | * process.c (Fopen_network_stream): Fix previous change. | |
4919 | ||
4920 | 1999-08-13 Karl Heuer <kwzh@gnu.org> | |
4921 | ||
4922 | * xdisp.c (line_number_display_limit_width): New var. | |
4923 | (decode_mode_spec): Use it instead of hardcoded value. | |
4924 | (syms_of_xdisp): Defvar it. | |
4925 | ||
4926 | 1999-08-13 Richard M. Stallman <rms@gnu.org> | |
4927 | ||
4928 | * eval.c (run_hook_list_with_args): Gcpro `globals'. | |
4929 | (run_hook_with_args): Likewise. | |
4930 | ||
4931 | * window.h (struct window): New field too_small_ok. | |
4932 | ||
4933 | * window.c (set_window_height, set_window_width): | |
4934 | If window starts out "too small", set its too_small_ok flag. | |
4935 | If window's too_small_ok flag is set, don't delete it | |
4936 | unless it is so small it would cause a crash. | |
4937 | ||
4938 | 1999-08-13 Gerd Moellmann <gerd@gnu.org> | |
4939 | ||
4940 | * window.c (MINSIZE): Removed. | |
4941 | (window_min_size): New. | |
4942 | (set_window_height): Use window_min_size. | |
4943 | (change_window_height): Ditto. | |
4944 | ||
4945 | 1999-08-12 Gerd Moellmann <gerd@gnu.org> | |
4946 | ||
4947 | * indent.c (vmotion): Don't add in mini-buffer prompt width | |
4948 | if prompts are inserted into mini-buffer. | |
4949 | ||
4950 | 1999-08-12 Wolfgang Rupprecht <wolfgang@wsrcc.com> | |
4951 | ||
4952 | * config.in: Add HAVE_GETADDRINFO. | |
4953 | * process.c (Fopen_network_stream): Use getaddrinfo. | |
4954 | ||
4955 | 1999-08-11 Gerd Moellmann <gerd@gnu.org> | |
4956 | ||
4957 | * xdisp.c (get_overlay_arrow_glyph_row): Set the charpos of | |
4958 | glyphs to -1. | |
4959 | ||
4960 | * xdisp.c (face_before_or_after_it_pos): If position after | |
4961 | or before iterator's current position in the buffer is out | |
4962 | of bounds, return the iterator's original face id. | |
4963 | ||
4964 | * dispnew.c (mirror_make_current): If desired row isn't enabled, | |
4965 | just swap glyphs pointers between current and desired row. | |
4966 | (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy | |
4967 | desired matrix method string to current matrix. | |
4968 | ||
4969 | 1999-08-11 Kenichi Handa <handa@etl.go.jp> | |
4970 | ||
4971 | * lisp.h (CHAR_MODIFIER_MASK): New macro. | |
4972 | ||
4973 | * lread.c (read_escape): For Control modifier, pay attention to | |
4974 | multibyte character. | |
4975 | (read1): Likewise. Singal error or a multibyte character which | |
4976 | has a modifer bit. Check validity of Shift modifer. | |
4977 | ||
4978 | * charset.c (non_ascii_char_to_string): Handle modifier bits as | |
4979 | the same as Lisp reader. | |
4980 | ||
4981 | 1999-08-10 Richard M. Stallman <rms@gnu.org> | |
4982 | ||
4983 | * charset.h (BCOPY_SHORT): Fix typo `unsigined'. | |
4984 | ||
4985 | 1999-08-10 Alexandre Oliva <oliva@dcc.unicamp.br> | |
4986 | ||
4987 | * unexelf.c [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define. | |
4988 | ||
4989 | 1999-08-10 Eli Zaretskii <eliz@gnu.org> | |
4990 | ||
4991 | * msdos.c (IT_set_face): Abort if the default face is not realized | |
4992 | and cached. | |
4993 | (IT_write_glyphs): Reset the screen face to the default face | |
4994 | before writing glyphs. | |
4995 | ||
4996 | * xfaces.c (realize_default_face) [MSDOS]: Don't take default | |
4997 | colors from the frame here. | |
4998 | (realize_tty_face) [MSDOS]: Do it here. Update the face | |
4999 | attributes with the actual name of the color taken from the | |
5000 | frame. | |
5001 | ||
5002 | * dosfns.c (msdos_stdcolor_name): Remove const from return value. | |
5003 | * dosfns.h (msdos_stdcolor_name): Ditto for the prototype. | |
5004 | ||
5005 | * frame.c (Fframe_parameters): Swap foreground and background | |
5006 | colors returned in frame parameters if the frame has reverse in | |
5007 | its parameter alist. | |
5008 | (Fmake_terminal_frame): Make a unique copy of face_alist for | |
5009 | each frame. | |
5010 | ||
5011 | 1999-08-07 Richard Stallman <rms@gnu.org> | |
5012 | ||
5013 | * buffer.c (Fprevious_overlay_change): Just return | |
5014 | the answer obtained from overlays_at. | |
5015 | ||
5016 | * xfns.c (xpm_load) [!XpmAllocCloseColors]: | |
5017 | Use XpmCloseness and attrs.closeness instead. | |
5018 | ||
5019 | 1999-08-06 Richard Stallman <rms@gnu.org> | |
5020 | ||
5021 | * lread.c (Feval_buffer): New arg DO_ALLOW_PRINT. | |
5022 | ||
5023 | 1999-08-06 Geoff Voelker <voelker@cs.washington.edu> | |
5024 | ||
5025 | * dired.c (directory_files_internal, Fdirectory_files_and_attributes, | |
5026 | Ffile_attributes_lessp): New functions. | |
5027 | (Fdirectory_files): Use directory_files_internal. | |
5028 | (syms_of_dired): Initialize Fdirectory_files_and_attributes, | |
5029 | Ffile_attributes_lessp. | |
5030 | ||
5031 | * w32.c (stat): Check for directory ending in separator when | |
5032 | doing readdir fast path. | |
5033 | ||
5034 | * w32fns.c (x_set_icon_type): Support setting frame icons. | |
5035 | * w32term.c (x_bitmap_icon): New function. | |
5036 | (x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon. | |
5037 | ||
5038 | 1999-08-06 Gerd Moellmann <gerd@gnu.org> | |
5039 | ||
5040 | * xdisp.c (set_iterator_to_next): After delivering a character | |
5041 | from a display vector, restore face and charset to what they were | |
5042 | before the display vector was processed. | |
5043 | ||
5044 | 1999-08-06 Gerd Moellmann <gerd@gnu.org> | |
5045 | ||
5046 | * xdisp.c (reseat_at_next_visible_line_start): New parameter | |
5047 | on_newline_p. | |
5048 | (set_iterator_to_next): After delivering last char | |
5049 | from display vector, reseat on next visible line start if | |
5050 | dpvec_char_len < 0. | |
5051 | (next_element_from_buffer): Set dpvec_char_len to -1 for | |
5052 | selective display. | |
5053 | ||
5054 | 1999-08-06 Gerd Moellmann <gerd@gnu.org> | |
5055 | ||
5056 | * xdisp.c (compute_line_metrics): If first line's physical ascent | |
5057 | is larger than its logical ascent, use the physical ascent, and | |
5058 | make the row taller. Set row's overlapping_p flag. | |
5059 | ||
5060 | * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p. | |
5061 | (direct_output_for_insert): Ditto. | |
5062 | ||
5063 | * dispextern.h (struct glyph_row): Add overlapping_p. | |
5064 | ||
5065 | * xterm.c (x_draw_phys_cursor_glyph): Redraw overlaps. | |
5066 | ||
5067 | * dispextern.h (MATRIX_ROW_OVERLAPS_PRED_P): New. | |
5068 | (MATRIX_ROW_OVERLAPS_SUCC_P): New. | |
5069 | ||
5070 | * dispnew.c (direct_output_for_insert): Don't use this method if | |
5071 | row is overlapped by others. | |
5072 | (update_text_area): Write full line if current line is overlapped. | |
5073 | (redraw_overlapped_rows): New. | |
5074 | (update_window): Call it. | |
5075 | (redraw_overlapping_rows): New. | |
5076 | (update_window): Call it. | |
5077 | (scrolling_window): Make sure overlapped_p flag in current rows is | |
5078 | unchanged. | |
5079 | (row_equal_p): Take rows overlapped_p flag into account. | |
5080 | ||
5081 | * dispextern.h (struct glyph_row): Add flag overlapped_p. | |
5082 | ||
5083 | * xterm.c (x_fix_overlapping_area): New. | |
5084 | (x_redisplay_interface): Add x_fix_overlapping_area. | |
5085 | ||
5086 | * dispnew.c (adjust_glyphs): Block input while adjusting matrices. | |
5087 | ||
5088 | 1999-08-06 Gerd Moellmann <gerd@gnu.org> | |
5089 | ||
5090 | * xterm.c (x_draw_glyphs): Add parameter overlaps_p. | |
5091 | (struct glyph_string): Add member for_overlaps_p. | |
5092 | (x_get_glyph_string_clip_rect): If glyph string draws foreground | |
5093 | of overlapping rows, clip to window bottom. | |
5094 | (x_fill_glyph_string): Add parameter overlaps_p. | |
5095 | (x_fill_composite_glyph_string): Ditto. | |
5096 | (BUILD_GLYPH_STRINGS): Ditto. | |
5097 | (BUILD_CHAR_GLYPH_STRINGS): Ditto. | |
5098 | (x_draw_glyph_string): Don't draw anything but the foreground | |
5099 | if glyph string draws row overlaps. | |
5100 | ||
5101 | * dispnew.c (direct_output_for_insert): Don't use this | |
5102 | optimization for rows that overlap others. | |
5103 | (update_window_line): Return non-zero if display has changed. | |
5104 | (update_text_area): Ditto. | |
5105 | (update_window): Record if display has been changed. | |
5106 | ||
5107 | * dispextern.h (MATRIX_ROW_OVERLAPPING_P): New. | |
5108 | ||
5109 | * dispextern.h (struct redisplay_interface): Add | |
5110 | fix_overlapping_area. | |
5111 | ||
5112 | * xterm.c (x_append_glyph): Set glyph flag overlaps_vertically_p. | |
5113 | ||
5114 | * dispextern.h (struct glyph): Add overlaps_vertically_p. | |
5115 | ||
5116 | * xterm.c (x_produce_image_glyph): Compute iterator's physical | |
5117 | ascent and descent. | |
5118 | (x_produce_stretch_glyph): Ditto. | |
5119 | (x_produce_glyphs): Ditto. | |
5120 | ||
5121 | * xdisp.c (init_iterator): Reset physical line height info | |
5122 | after producing special glyphs. | |
5123 | (display_toolbar_line): Set physical line height info. | |
5124 | (compute_line_metrics): Ditto. | |
5125 | (display_line): Ditto. | |
5126 | (display_string): Ditto. | |
5127 | ||
5128 | * term.c (produce_glyphs): Set iterator's physical height | |
5129 | information. | |
5130 | ||
5131 | * dispnew.c (blank_row): Compute glyph row's physical height. | |
5132 | (row_equal_p): Take physical row heights into account. | |
5133 | (direct_output_for_insert): Ditto. | |
5134 | (update_text_area): Ditto. | |
5135 | ||
5136 | * dispextern.h (struct glyph_row): Add phys_ascent and | |
5137 | phys_height. | |
5138 | (struct it): Add phys_ascent, phys_descent, max_phys_ascent, | |
5139 | max_phys_descent. | |
5140 | ||
5141 | 1999-08-04 Stefan Monnier <monnier@cs.yale.edu> | |
5142 | ||
5143 | * buffer.c (switch_to_buffer_1): New subroutine, taken out from | |
5144 | Fswitch_to_buffer. | |
5145 | (no_switch_buffer): New function. | |
5146 | (Fswitch_to_buffer): Call them. Don't get confused | |
5147 | by "same-window" buffers in a dedicated frame. | |
5148 | ||
5149 | * window.c (display-buffer): Don't get confused | |
5150 | by "same-window" buffers in a dedicated frame. | |
5151 | ||
5152 | 1999-08-04 Andreas Schwab <schwab@gnu.org> | |
5153 | ||
5154 | * insdel.c (insert_from_string_1): Check gap size against number | |
5155 | of outgoing bytes, not incoming bytes. | |
5156 | ||
5157 | 1999-08-03 Tom Breton <tob@world.std.com> | |
5158 | ||
5159 | * lread.c (read1): Added circular reading code to #N=. | |
5160 | (SUBSTITUTE): New macro. | |
5161 | (seen_list): New variable. | |
5162 | (substitute_object_in_subtree): New function. | |
5163 | (substitute_object_recurse): New function. | |
5164 | (substitute_in_interval): New function. | |
5165 | ||
5166 | 1999-08-02 Eli Zaretskii <eliz@gnu.org> | |
5167 | ||
5168 | * Makefile.in (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h. | |
5169 | ||
5170 | * frame.c (make_terminal_frame): Don't call init_frame_faces if | |
5171 | noninteractive, for termcap frames as well. | |
5172 | ||
5173 | * sysdep.c (init_sys_modes): Call init_frame_faces for termcap | |
5174 | frames. | |
5175 | ||
5176 | 1999-08-01 Richard Stallman <rms@gnu.org> | |
5177 | ||
5178 | * fns.c (internal_equal): Correct overlay comparison. | |
5179 | ||
83c8f461 | 5180 | 1999-07-31 Richard M. Stallman <rms@gnu.org> |
26901792 DL |
5181 | |
5182 | * xfns.c (x_set_internal_border_width): | |
5183 | Call do_pending_window_change. Don't block input, don't call XFlush. | |
5184 | (x_set_vertical_scroll_bars): Call do_pending_window_change. | |
5185 | (x_set_scroll_bar_width, x_set_font): Likewise. | |
5186 | ||
5187 | * frame.c (Fset_frame_height): Call do_pending_window_change. | |
5188 | (Fset_frame_width, Fset_frame_size): Likewise. | |
5189 | ||
5190 | * xterm.c (x_set_window_size): When calling change_frame_size, | |
5191 | specify 1 for DELAY. | |
5192 | ||
5193 | * widget.c (EmacsFrameSetCharSize): Don't call | |
5194 | do_pending_window_change here. | |
5195 | ||
5196 | 1999-07-30 Dave Love <fx@gnu.org> | |
5197 | ||
5198 | * config.in: Add HAVE_STDLIB_H. | |
5199 | ||
5200 | 1999-07-30 Richard M. Stallman <rms@gnu.org> | |
5201 | ||
5202 | * process.c (create_process): Detect failure of `pipe'. | |
5203 | ||
5204 | 1999-07-30 Keisuke Nishida <kei@psn.net> | |
5205 | ||
5206 | * alloc.c (allocate_vectorlike): Add missing increment. | |
5207 | ||
5208 | * data.c (Fdefalias): Call Ffset instead of duplicating code. | |
5209 | ||
5210 | * keymap.c (get_keymap_1, get_keyelt): Check the type of OBJECT | |
5211 | before calling indirect_function. | |
5212 | ||
5213 | 1999-07-30 Eli Zaretskii <eliz@gnu.org> | |
5214 | ||
5215 | * dispextern.h (load_color, lookup_derived_face): Declare | |
5216 | prototypes. | |
5217 | ||
5218 | * dispnew.c (init_display) [MSDOS]: Don't initialize frame faces, | |
5219 | it will be done later. | |
5220 | ||
5221 | * frame.c (make_terminal_frame) [MSDOS]: Don't call | |
5222 | init_frame_faces if non-interactive. | |
5223 | (Fframe_parameters) [MSDOS]: Replace indexing into colornames[] | |
5224 | array with a call to msdos_stdcolor_name. The font name is now | |
5225 | "ms-dos", consistent with realize_tty_face. | |
5226 | ||
5227 | * keyboard.c (cmd_error_internal): Don't kill Emacs if this is an | |
5228 | MSDOS frame. | |
5229 | ||
5230 | * window.c (Fset_window_configuration) [MSDOS]: Don't call | |
5231 | x_set_toolbar_lines. | |
5232 | ||
5233 | * xfaces.c (load_color): Remove static from definition and remove | |
5234 | prototype. | |
5235 | [MSDOS]: Add a DOS-specific version of load_color. | |
5236 | (lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P. | |
5237 | (lookup_derived_face): New function. | |
5238 | (realize_default_face): Support MSDOS frames. | |
5239 | [MSDOS]: If fore/background colors are unspecified, inherit them | |
5240 | from the frame. | |
5241 | (realize_face): Support MSDOS frames. | |
5242 | (realize_tty_face): Support MSDOS frames. | |
5243 | [MSDOS]: If the face color is not in Vface_tty_color_alist, call | |
5244 | load_color to try to find a suitable approximation. If the face | |
5245 | is inverse-video, swap the foreground and background colors. | |
5246 | ||
5247 | * dosfns.c (msdos_stdcolor_name, msdos_stdcolor_idx): New | |
5248 | functions. | |
5249 | ||
5250 | * dosfns.h (msdos_stdcolor_name, msdos_stdcolor_idx): Declare. | |
5251 | ||
5252 | * msdos.h: Remove redundant declarations (most of them are now in | |
5253 | dispextern.h). | |
5254 | ||
5255 | * msdos.c (IT_set_face): Rewritten for the new redisplay engine. | |
5256 | Use default frame colors if the face doesn't specify them; invert | |
5257 | the colors if highlight is ON. | |
5258 | (IT_write_glyphs): Rewritten for the new redisplay engine. | |
5259 | (IT_change_line_highlight): Add (unused) parameter Y, since that's | |
5260 | how the hook is called by term.c. | |
5261 | (IT_copy_glyphs): New function, copies an area of the display in | |
5262 | video RAM. | |
5263 | (IT_insert_glyphs): Rewritten to DTRT instead of aborting, since | |
5264 | redisplay now calls it even if char_ins_del_ok is zero. | |
5265 | (IT_set_frame_parameters): Prototype changed. Calls the new | |
5266 | load_color. Puts the new fore/background colors into the default | |
5267 | face on current frame. | |
5268 | (IT_menu_display): Rewritten to handle the new struct glyph | |
5269 | instead of a char array. | |
5270 | (XMenuActivate): Call lookup_derived_face to create and use | |
5271 | special faces for the pop-up and drop-down menus. | |
5272 | ||
5273 | 1999-07-29 Gerd Moellmann <gerd@gnu.org> | |
5274 | ||
5275 | * xterm.c (x_set_toolkit_scroll_bar_thumb): Don't call | |
5276 | XawScrollbarSetThumb if thumb parameters haven't changed because | |
5277 | that function apparently isn't optimized for this case. | |
5278 | ||
5279 | 1999-07-29 Eli Zaretskii <eliz@gnu.org> | |
5280 | ||
5281 | * msdos.c (getdefdir): Don't return failure indication when | |
5282 | _fixpath sets errno to ENOSYS. | |
5283 | ||
5284 | 1999-07-28 Gerd Moellmann <gerd@gnu.org> | |
5285 | ||
5286 | * xdisp.c (string_char_and_length): New. Use it everywhere | |
5287 | instead of STRING_CHAR_AND_LENGTH in xdisp.c. | |
5288 | ||
5289 | 1999-07-28 Kenichi Handa <handa@etl.go.jp> | |
5290 | ||
5291 | * fns.c (count_combining): New function. | |
5292 | (struct textprop_rec): New structure. | |
5293 | (concat): Copy text properties correctly when byte combining | |
5294 | occurs. | |
5295 | ||
5296 | 1999-07-28 Gerd Moellmann <gerd@gnu.org> | |
5297 | ||
5298 | * xterm.c (x_setup_relief_color): Don't try smart color allocation | |
5299 | if display is mono. | |
5300 | (x_draw_row_bitmaps): If face has stipple, don't switch | |
5301 | to foreground color for clearing areas, and set the fill style. | |
5302 | ||
5303 | * xfaces.c (load_face_colors): Load background color if setting | |
5304 | stipple, too. | |
5305 | (prepare_face_for_display): Use FillOpaqueStippled instead of | |
5306 | FillStippled. | |
5307 | ||
5308 | 1999-07-26 Ken'ichi Handa <handa@gnu.org> | |
5309 | ||
5310 | * xterm.c (x_find_ccl_program): Add casting. | |
5311 | ||
5312 | * w32fns.c (w32_find_ccl_program): Add casting. | |
5313 | ||
5314 | 1999-07-27 Gerd Moellmann <gerd@gnu.org> | |
5315 | ||
5316 | * dispextern.h (struct glyph_row): Flag internal_border_p removed. | |
5317 | ||
5318 | * xfns.c (x_create_tip_frame): Don't set bitmapIcon resource | |
5319 | because this will try to access a nonexisting widget. | |
5320 | ||
5321 | 1999-07-26 Markus Rost <rost@gnu.org> | |
5322 | ||
5323 | * fns.c (Fgethash): Fix order of variables (patch by gerd). | |
5324 | (Fputhash): Ditto. | |
5325 | (Fremhash): Ditto. | |
5326 | ||
5327 | 1999-07-26 Gerd Moellmann <gerd@gnu.org> | |
5328 | ||
5329 | * widget.c (EmacsFrameSetCharSize): Don't add XtNborderWidth | |
5330 | value to frame width and height. | |
5331 | ||
5332 | * xterm.c (x_get_glyph_string_clip_rect): Take internal border | |
5333 | into account for full-width windows. Don't add scroll bar width | |
5334 | to width of clip rect. | |
5335 | (x_draw_glyph_string_box): Add 1 to right x of full width lines. | |
5336 | (x_set_glyph_string_background_width): Add 1 to background width. | |
5337 | (x_draw_glyphs): Take internal border into account for full-width | |
5338 | lines. | |
5339 | ||
5340 | 1999-07-26 Richard M. Stallman <rms@gnu.org> | |
5341 | ||
5342 | * xfns.c (x_set_mouse_color): Always unload the old color. | |
5343 | Don't allow nil as color value. | |
5344 | (x_set_cursor_color, x_set_background_color, x_set_foreground_color): | |
5345 | Always unload the old color. | |
5346 | ||
5347 | * indent.c (Fmove_to_column): Extend end of line only if FORCE is t. | |
5348 | ||
5349 | 1999-07-26 Karl Heuer <kwzh@gnu.org> | |
5350 | ||
5351 | * fns.c (Fy_or_n_p): Doc fix. | |
5352 | ||
5353 | 1999-07-26 Kenichi Handa <handa@etl.go.jp> | |
5354 | ||
5355 | * ccl.h (setup_ccl_program): The type is changed to `int'. | |
5356 | ||
5357 | * ccl.c (ccl_driver) <CCL_Call>: Now CCL program ID to call may be | |
5358 | stored in the following CCL code. Adjusted for the change of | |
5359 | Vccl_program_table. | |
5360 | (resolve_symbol_ccl_program): Adjusted for the new style of | |
5361 | embedded symbols (SYMBOL . PROP) in CCL compiled code. Return Qt | |
5362 | is resolving failed. | |
5363 | (ccl_get_compiled_code): New function. | |
5364 | (setup_ccl_program): Function type changed from `void' to `int'. | |
5365 | Resolve symbols in CCL_PROG. | |
5366 | (Fccl_program_p): New function. | |
5367 | (Fccl_execute): Get compiled CCL code by just calling | |
5368 | setup_ccl_program. | |
5369 | (Fccl_execute_on_string): Likewise. | |
5370 | (Fregister_ccl_program): Adjusted for the change of | |
5371 | Vccl_program_table. | |
5372 | ||
5373 | * coding.c (setup_coding_system): Get compiled CCL code by just | |
5374 | calling setup_ccl_program. | |
5375 | ||
5376 | * xterm.c (x_find_ccl_program): Get compiled CCL code by just | |
5377 | calling setup_ccl_program. | |
5378 | ||
5379 | * w32fns.c (w32_find_ccl_program): Get compiled CCL code by just | |
5380 | calling setup_ccl_program. | |
5381 | ||
5382 | 1999-07-23 Gerd Moellmann <gerd@gnu.org> | |
5383 | ||
5384 | * xfaces.c (frame_update_line_height): Just use the height of the | |
5385 | frame's fontset or font, instead of taking face fonts into | |
5386 | account. | |
5387 | ||
5388 | * xdisp.c (get_next_display_element): Display DEL as `^?'. | |
5389 | ||
5390 | 1999-07-23 Richard M. Stallman <rms@gnu.org> | |
5391 | ||
5392 | * window.c (Fsplit_window): For default size, round up for left window. | |
5393 | ||
5394 | 1999-07-21 Joe Ramey <ramey@ti.com> | |
5395 | ||
5396 | * filelock.c (lock_if_free): Return -1 if check_lock_owner | |
5397 | has returned -1 (lockfile exists but is not a symlink?). | |
5398 | ||
5399 | 1999-07-20 Gerd Moellmann <gerd@gnu.org> | |
5400 | ||
5401 | * xterm.c (x_draw_bar_cursor): Use scratch_cursor_gc to | |
5402 | because of a change in cursor_gc made in 20.4. | |
5403 | ||
5404 | 1999-07-19 Gerd Moellmann <gerd@gnu.org> | |
5405 | ||
5406 | * xterm.c (x_calc_absolute_position): Subtract menu bar height | |
5407 | for YNegative, if using X toolkit. | |
5408 | ||
5409 | * xfns.c (x_real_positions): Don't subtract window borders | |
5410 | from positions returned. | |
5411 | ||
5412 | 1999-07-17 Gerd Moellmann <gerd@gnu.org> | |
5413 | ||
5414 | * xrdb.c (x_load_resources): Set double-click time defaults | |
5415 | for Motif list boxes from double-click-time. | |
5416 | ||
5417 | * fns.c (Vhash_table_tests): Remvoed. | |
5418 | (Qhash_table_test): New. | |
5419 | (syms_of_fns): Initialize Qhash_table_test. | |
5420 | (Fmake_hash_table): Look up user-defined tests in symbol prop | |
5421 | `hash-table-test'. | |
5422 | (Fdefine_hash_table_test): Store test and hash function as | |
5423 | symbol prop `hash-table-test'. | |
5424 | (make_hash_table): Add parameters user_test and user_hash. | |
5425 | ||
5426 | * window.c (set_window_buffer): Set window margins for tty | |
5427 | frames, too. | |
5428 | (Fset_window_margins): Ditto. | |
5429 | ||
5430 | * term.c (append_glyph): Use glyph area of iterator instead of | |
5431 | always TEXT_AREA. | |
5432 | ||
5433 | * dispnew.c (update_frame_1): Add left margin width to cursor | |
5434 | hpos. | |
5435 | (direct_output_for_insert): Ditto. | |
5436 | (direct_output_forward_char): Ditto. | |
5437 | ||
5438 | * dispnew.c (adjust_glyph_matrix): Set glyph matrix' top_line_p. | |
5439 | ||
5440 | * dispextern.h (struct glyph_matrix): Add top_line_p. | |
5441 | ||
5442 | 1999-07-16 Gerd Moellmann <gerd@gnu.org> | |
5443 | ||
5444 | * frame.h (FRAME_WINDOW_REDISPLAY_P): Removed. Use FRAME_WINDOW_P | |
5445 | instead. | |
5446 | ||
5447 | * fns.c (cmpfn_eq): Add hash code parameters. | |
5448 | (cmpfn_eql): Ditto. | |
5449 | (cmpfn_equal): Ditto, and compare hash codes before calling Fequal. | |
5450 | (cmpfn_user_defined): Likewise. | |
5451 | ||
5452 | 1999-07-15 Gerd Moellmann <gerd@gnu.org> | |
5453 | ||
5454 | * lisp.h (DEFAULT_REHASH_THRESHOLD): Changed to 0.8. | |
5455 | ||
5456 | * fns.c (maybe_resize_hash_table): Correct computation of | |
5457 | index vector size. | |
5458 | (make_hash_table): Ditto. | |
5459 | (Fmakehash): New. | |
5460 | ||
5461 | * xdisp.c (echo_area_display): Don't call redraw_garbaged_frames. | |
5462 | ||
5463 | * alloc.c (gc_sweep): Call sweep_weak_hash_tables. | |
5464 | (survives_gc_p): Make it externally visible. | |
5465 | (mark_object): Ditto. | |
5466 | ||
5467 | * fns.c (remove_hash_entry): Removed. | |
5468 | (sweep_weak_hash_tables): New. | |
5469 | ||
5470 | * print.c (print): Print more information about hash tables. | |
5471 | ||
5472 | * xfns.c (image_spec_hash): Removed. | |
5473 | (lookup_image): Use sxhash instead of image_spec_hash. | |
5474 | (image_spec_equal_p): Removed. | |
5475 | (lookup_image): Use Fequal instead of image_spec_equal_p. | |
5476 | ||
5477 | 1999-07-14 Gerd Moellmann <gerd@gnu.org> | |
5478 | ||
5479 | * lisp.h (P_): Moved to top of file. | |
5480 | ||
5481 | * fns.c (make_hash_table): Set new members. | |
5482 | ||
5483 | * alloc.c (mark_object): Mark hash table's user_hash_function. | |
5484 | Mark index vector for weak hash tables. | |
5485 | ||
5486 | * lisp.h (struct Lisp_Hash_Table): Add user_cmp_function, | |
5487 | user_hash_function, cmpfn, and hashfn. | |
5488 | ||
5489 | * fns.c (build_hash): Removed. | |
5490 | (hash_test): Removed. | |
5491 | (cmpfn_eq, cmpfn_eql, cmpfn_equal, cmpfn_user_defined): New. | |
5492 | (hashfn_eq, hashfn_eql, hashfn_equal, hashfn_user_defined): New. | |
5493 | ||
5494 | 1999-07-13 Gerd Moellmann <gerd@gnu.org> | |
5495 | ||
5496 | * alloc.c (survives_gc_p): New. | |
5497 | ||
5498 | * print.c (print): Add hash table handling. | |
5499 | ||
5500 | * alloc.c (mark_object): Add code to mark hash tables. | |
5501 | ||
5502 | * lisp.h (GC_HASH_TABLE_P): New. | |
5503 | ||
5504 | * emacs.c (main): Call init_fns. | |
5505 | ||
5506 | * fns.c (init_fns): New. | |
5507 | ||
5508 | * fns.c: Add hash table implementation. | |
5509 | ||
5510 | * lisp.h (PVEC_HASH_TABLE): New. | |
5511 | (struct Lisp_Hash_Table): New. | |
5512 | (XHASH_TABLE): New. | |
5513 | (XSET_HASH_TABLE): New. | |
5514 | (HASH_TABLE_P): New. | |
5515 | (CHECK_HASH_TABLE): New. | |
5516 | (DEFAULT_HASH_SIZE): New. | |
5517 | (DEFAULT_REHASH_THRESHOLD): New. | |
5518 | (DEFAULT_REHASH_SIZE): New. | |
5519 | ||
5520 | * xterm.c (x_draw_glyphs): Add parameters real_start and real_end. | |
5521 | (x_write_glyphs): Compute overwritten cursor using real start | |
5522 | and end positions of display. | |
5523 | (x_insert_glyphs): Ditto. | |
5524 | ||
5525 | 1999-07-10 Gerd Moellmann <gerd@gnu.org> | |
5526 | ||
5527 | * keyboard.c (read_char): Use message3_nolog to show help-echo. | |
5528 | ||
5529 | * dispnew.c (blank_row): Add y-position as parameter. Compute | |
5530 | visible height. | |
5531 | ||
5532 | * xdisp.c (next_element_from_string): Give padding spaces | |
5533 | a position of -1. | |
5534 | ||
5535 | * dispnew.c (adjust_glyph_matrix): Some work to support | |
5536 | marginals areas on tty frames in a future version. | |
5537 | (allocate_matrices_for_frame_redisplay): Ditto. | |
5538 | ||
5539 | * xdisp.c (display_line): At ZV, set glyph row's displays_text_p | |
5540 | to zero if number of glyphs in the row is <= 1. | |
5541 | ||
5542 | 1999-07-09 Gerd Moellmann <gerd@gnu.org> | |
5543 | ||
5544 | * dispnew.c (buffer_posn_from_coords): Take left marginal area | |
5545 | into account. | |
5546 | ||
5547 | * xdisp.c (handle_display_prop): Don't reset area if handing | |
5548 | a property from a string that came from a `display' property. | |
5549 | (handle_single_display_prop): Don't handle recursive `display' | |
5550 | properties. | |
5551 | (handle_single_display_prop): Handle some display property | |
5552 | forms for terminal frames. | |
5553 | (Qimage): Moved here from xfns.c. | |
5554 | ||
5555 | * dispextern.h (struct it): New field string_from_display_prop_p. | |
5556 | ||
5557 | * xterm.c (x_clip_to_row): Don't let clip_rect include top | |
5558 | line. | |
5559 | ||
5560 | 1999-07-08 Gerd Moellmann <gerd@gnu.org> | |
5561 | ||
5562 | * xdisp.c (handle_single_display_prop): Handle `:when FORM'. | |
5563 | ||
5564 | * window.c (set_window_buffer): Set window's vscroll to zero. | |
5565 | ||
5566 | * xdisp.c (QCwhen): New. | |
5567 | (display_prop_end): New. | |
5568 | (handle_single_display_prop): Use it. | |
5569 | (debug_method_add): Print buffer name if tracing. | |
5570 | (try_window_reusing_current_matrix): Compute visible height | |
5571 | of reused rows. Fix cursor position calculation in case of | |
5572 | top-line. | |
5573 | ||
5574 | * dispextern.h (struct redisplay_interface): Add parameter | |
5575 | cursor_on_p to update_window_end_hook. | |
5576 | ||
5577 | * xterm.c (x_update_window_end): Add parameter cursor_on_p. | |
5578 | ||
5579 | 1999-07-07 Gerd Moellmann <gerd@gnu.org> | |
5580 | ||
5581 | * xdisp.c (redisplay_internal): Ensure that redisplayinp_p | |
5582 | doesn't become negative when decrementing it. | |
5583 | ||
5584 | * eval.c (Fsignal): Reset redisplaying_p to zero. | |
5585 | ||
5586 | * xdisp.c (try_window_reusing_current_matrix): Call hooks | |
5587 | for window update. | |
5588 | (try_window_id): Ditto. | |
5589 | ||
5590 | * xterm.c (x_clear_end_of_line): Handle top-line correctly. | |
5591 | (x_scroll_run): Ditto. | |
5592 | (any_help_event_p): New. | |
5593 | (x_initialize): Set it to zero. | |
5594 | (XTread_socket): Clear help echo only if any_help_event_p. | |
5595 | ||
5596 | * xdisp.c (init_iterator): Set top_line_p. | |
5597 | (start_display): Use correct initial y if top-line is present. | |
5598 | (make_cursor_line_fully_visible): Bug fixes for top-line. | |
5599 | (try_scrolling): Ditto. | |
5600 | (try_window_reusing_current_matrix): Ditto. | |
5601 | ||
5602 | * dispextern.h (struct it): Add top_line_p. | |
5603 | ||
5604 | * dispnew.c (shift_glyph_matrix): Move some computations out | |
5605 | of the loop. | |
5606 | ||
5607 | * dispnew.c (margin_glyphs_to_reserve): Use NUMBERP and | |
5608 | XFLOATINT. | |
5609 | ||
5610 | 1999-07-06 Gerd Moellmann <gerd@gnu.org> | |
5611 | ||
5612 | * dispnew.c (update_frame_1): When setting cursor in echo area, | |
5613 | skip only over padding spaces at the end. | |
5614 | ||
5615 | * xfaces.c (realize_tty_face): Set face's font_name field to | |
5616 | "tty". | |
5617 | ||
5618 | * term.c (update_end): Turn cursor on only if selected window's | |
5619 | cursor_off_p flag is not set. | |
5620 | ||
5621 | 1999-07-05 Gerd Moellmann <gerd@gnu.org> | |
5622 | ||
5623 | * term.c (TS_cursor_visible): Renamed from TS_visual_mode. | |
5624 | (TS_cursor_normal): Renamed from TS_end_visual_mode. | |
5625 | (TS_cursor_invisible): New. | |
5626 | (term_init): Initialize TS_cursor_invisible. | |
5627 | (tty_hide_cursor): New. | |
5628 | (tty_show_cursor): New. | |
5629 | (update_end): Show tty cursor. | |
5630 | (update_begin): Hide tty cursor to prevent cursor flickering | |
5631 | during redisplays triggered by timers (stealth fontification). | |
5632 | ||
5633 | * keyboard.c (make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers. | |
5634 | ||
5635 | * xterm.c (XTread_socket) [USE_MOTIF] <KeyPress>: Catch events | |
5636 | in scroll bars. | |
5637 | (x_handle_toolbar_click): Set modifier bits. | |
5638 | ||
5639 | 1999-07-04 Gerd Moellmann <gerd@gnu.org> | |
5640 | ||
5641 | * keyboard.c (kbd_store_ptr): Declare it as a volatile pointer | |
5642 | instead of a pointer to a volatile input_event. | |
5643 | (kbd_buffer_store_event): Remove volatile modifier from | |
5644 | declaration of local variable `sp'. | |
5645 | (Fdiscard_input): Don't cast when assigning kbd_store_ptr | |
5646 | to kbd_fetch_ptr. | |
5647 | ||
5648 | 1999-07-03 Gerd Moellmann <gerd@gnu.org> | |
5649 | ||
5650 | * xdisp.c (try_window_id): Set beg_unchanged and end_unchanged | |
5651 | only if buffer is modified. Return quickly if changes are | |
5652 | above window start. | |
5653 | ||
5654 | 1999-07-02 Gerd Moellmann <gerd@gnu.org> | |
5655 | ||
5656 | * dispextern.h (HSCROLL_WINDOWS): Removed. | |
5657 | ||
5658 | * xdisp.c (mark_window_display_accurate): Don't set | |
5659 | w->region_showing. | |
5660 | (redisplay_internal): Don't call redraw_garbaged_frames. | |
5661 | ||
5662 | 1999-07-01 Gerd Moellmann <gerd@gnu.org> | |
5663 | ||
5664 | * xdisp.c (echo_area_display): Don't display truncation marks | |
5665 | for messages because 20.4 doesn't do it either. | |
5666 | (redisplay_window): Case same window start. Instead of giving | |
5667 | up when cursor is partially visible, make it fully visible. | |
5668 | (mark_window_display_accurate): Some cleanup. Record window's | |
5669 | last cursor information. | |
5670 | (debug_method_add): Improved. | |
5671 | (redisplay_internal): Record last cursor info only if not | |
5672 | consider_all_windows_p. | |
5673 | ||
5674 | * dispnew.c (update_window): Update top line after scrolling. | |
5675 | (blank_row): Renamed from make_empty_enabled_row. | |
5676 | (increment_glyph_row_buffer_positions): Increment positions | |
5677 | in buffers, only. | |
5678 | ||
5679 | * window.c (Fcoordinates_in_window_p): Add top-line to doc | |
5680 | string. | |
5681 | ||
5682 | 1999-06-30 Gerd Moellmann <gerd@gnu.org> | |
5683 | ||
5684 | * dispnew.c (update_window): Check that updated row is visible. | |
5685 | ||
5686 | * xterm.c (x_draw_row_bitmaps): Check for invisible rows at | |
5687 | top of window differently. | |
5688 | ||
5689 | * xdisp.c (try_window_reusing_current_matrix): Don't do it | |
5690 | if region is showing. | |
5691 | ||
5692 | * dispnew.c (adjust_glyph_matrix): Check w->vscroll when | |
5693 | avoiding matrix reallocation. Set window_vscroll in matrix. | |
5694 | ||
5695 | * dispextern.h (struct glyph_matrix): Add member window_vscroll. | |
5696 | ||
26901792 DL |
5697 | * xdisp.c (debug_method_add): New. |
5698 | (debug_redisplay_method): Removed. | |
5699 | (try_window_reusing_current_matrix): Handle case where old | |
5700 | window start is the same as new window start. | |
5701 | ||
5702 | * dispextern.h (struct glyph_matrix) [GLYPH_DEBUG]: Make `method' | |
5703 | an array instead of a pointer. | |
5704 | ||
26901792 DL |
5705 | * xfns.c (Fx_show_tip): Undo previous change. |
5706 | ||
5707 | * xterm.c (x_append_glyph): Clear glyph->u.val. | |
5708 | ||
5709 | * dispextern.h (struct glyph): Increase size of face_id bit-field | |
5710 | for CHAR_GLYPH to 12. | |
5711 | ||
5712 | 1999-06-29 Gerd Moellmann <gerd@gnu.org> | |
5713 | ||
5714 | * xfaces.c (x_charset_registry): Make it externally visible. | |
5715 | ||
5716 | 1999-06-28 Gerd Moellmann <gerd@gnu.org> | |
5717 | ||
5718 | * dispnew.c (update_window): Use mode_line_p flag of rows | |
5719 | instead of WINDOW_WANTS_MODELINE_P. | |
5720 | ||
5721 | * xterm.c (clear_mouse_face): Make externally visible. | |
5722 | ||
5723 | * xfns.c (Fx_show_tip): Clear mouse face before showing tip. | |
5724 | ||
5725 | * xterm.c (expose_line): Handle exposure of top-lines. | |
5726 | ||
5727 | * xterm.c (XTframe_up_to_date): Don't call note_mouse_highlight | |
5728 | if mouse_face_mouse_frame is null. | |
5729 | ||
5730 | * xdisp.c (redisplay_window): If window is echo_area_window, | |
5731 | and update_mode_line is set, update menubar and toolbar. | |
5732 | ||
5733 | * dispnew.c (space_glyph): Set its charpos to -1. | |
5734 | (update_frame_1): Ignore trailing padding spaces. | |
5735 | ||
5736 | * xdisp.c (next_element_from_c_string): Set position of padding | |
5737 | glyphs to -1. | |
5738 | ||
5739 | 1999-06-27 Gerd Moellmann <gerd@gnu.org> | |
5740 | ||
5741 | * xfns.c (x_laplace_read_row): Use XQueryColors instead of | |
5742 | XQueryColor. | |
5743 | ||
5744 | * xdisp.c (display_menu_bar): Remove unwarranted assertion. | |
5745 | (set_cursor_from_row): Skip over glyphs having a null object at | |
5746 | the start of rows. | |
5747 | (insert_left_trunc_glyphs): Use charpos < 0 to indicate truncation | |
5748 | glyphs. | |
5749 | (handle_invisible_prop): Compute next change only when needed. | |
5750 | (handle_face_prop): Don't correct DEFAULT_FACE_ID if in the mode | |
5751 | line. | |
5752 | ||
5753 | 1999-06-26 Gerd Moellmann <gerd@gnu.org> | |
5754 | ||
5755 | * xrdb.c (x_load_resources): Don't set resource for double-click | |
5756 | time. | |
5757 | ||
5758 | * xdisp.c (try_window_id): Return quickly if all changes are | |
5759 | below the window's current matrix end. | |
5760 | ||
5761 | * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Remove window | |
5762 | parameter. | |
5763 | ||
5764 | * xdisp.c (try_window_reusing_current_matrix): Set no_scrolling_p | |
5765 | in desired not in current matrix. | |
5766 | (try_window_reusing_current_matrix): Rotate matrices starting | |
5767 | at start_vpos instead of 0. | |
5768 | ||
5769 | * xterm.c (expose_window): Use window_text_bottom_y. | |
5770 | (fast_find_position): Ditto. | |
5771 | ||
5772 | * xdisp.c (redisplay_window): Use window_text_bottom_y. | |
5773 | (try_window_reusing_current_matrix): Ditto. | |
5774 | (get_last_unchanged_at_beg_row): Ditto. | |
5775 | (init_iterator): Ditto. | |
5776 | ||
5777 | * dispnew.c (allocate_matrices_for_window_redisplay): Allocate one | |
5778 | more row. | |
5779 | (check_matrix_invariants): Use window_text_bottom_y. | |
5780 | (update_window): Ditto. | |
5781 | (scrolling_window): Ditto. | |
5782 | ||
5783 | * xdisp.c (window_text_bottom_y): New. | |
5784 | ||
5785 | 1999-06-25 Gerd Moellmann <gerd@gnu.org> | |
5786 | ||
5787 | * xterm.c (XTread_socket): Set mouse_face_frame to zero after | |
5788 | clearing mouse face. | |
5789 | (XTread_socket) <EnterNotify> [LESSTIF_VERSION]: If | |
5790 | event.xcrossing.focus is not set, and focus is in the menu bar, | |
5791 | set focus frame as if event.xcrossing.focus were set. | |
5792 | ||
5793 | 1999-06-24 Gerd Moellmann <gerd@gnu.org> | |
5794 | ||
5795 | * keyboard.c (make_lispy_event): Handle mouse on top lines. | |
5796 | * keyboard.c (make_lispy_movement): Ditto. | |
5797 | ||
5798 | * window.c (coordinates_in_window): Return 4 if on top line. | |
5799 | (Fcoordinates_in_window_p): Return `top-line' if on top line. | |
5800 | ||
5801 | * xdisp.c (window_box_height): Subtract top line height. | |
5802 | (window_box): Add top line height to top y position if top line | |
5803 | exists. | |
5804 | (init_iterator): If base_face_id is TOP_LINE_FACE_ID, set row to | |
5805 | the top line row of the window. Set initial y-position to | |
5806 | window's top line height plus delta. | |
5807 | (start_display): Choose start glyph row depending on whether | |
5808 | window has a top line. | |
5809 | (try_scrolling): Take top line height into account for aggressive | |
5810 | scrolling. | |
5811 | (compute_window_start_on_continuation_line): Take top line into | |
5812 | account. | |
5813 | (redisplay_window): Ditto. If top line height has changed, | |
5814 | trigger a new redisplay. | |
5815 | (try_window_reusing_current_matrix): Take top line into account. | |
5816 | (find_last_row_displaying_text): Ditto. | |
5817 | (get_last_unchanged_at_beg_row): DItto. | |
5818 | (try_window_id): Ditto. | |
5819 | (compute_line_metrics): Ditto. | |
5820 | ||
5821 | * dispnew.c (shift_glyph_matrix): Compute visible row height | |
5822 | taking top line of window into account. | |
5823 | (update_window): Update top line. If scrolling_window detects | |
5824 | that all rows are equal, only set cursor. | |
5825 | (update_window_line): Call after_update_window_line_hook if | |
5826 | mode_line_p flag of rows has changed. | |
5827 | (scrolling_window): Add parameter top_line_p. Return -1 if | |
5828 | all rows are equal. | |
5829 | (mode_line_string): Add parameter mode_line_p. Handle strings | |
5830 | in top lines. | |
5831 | ||
5832 | * dispextern.h (MATRIX_TOP_LINE_ROW): New. | |
5833 | (MATRIX_FIRST_TEXT_ROW): New. | |
5834 | (MATRIX_ROW_PARTIALLY_VISIBLE_P): Use row's visible_height. | |
5835 | (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P): New. | |
5836 | (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): New. | |
5837 | (MATRIX_TOP_LINE_HEIGHT): New. | |
5838 | (CURRENT_MODE_LINE_HEIGHT): Use estimate_mode_line_height. | |
5839 | (CURRENT_TOP_LINE_HEIGHT): New. | |
5840 | (DESIRED_TOP_LINE_HEIGHT): New. | |
5841 | (WINDOW_DISPLAY_TOP_LINE_HEIGHT): New. | |
5842 | (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE): Replaces | |
5843 | WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT. | |
5844 | (WINDOW_DISPLAY_TEXT_HEIGHT): New. | |
5845 | ||
5846 | * xterm.c (x_after_update_window_line): Don't draw bitmaps for top | |
5847 | lines. | |
5848 | (x_draw_row_bitmaps): Take top line into account when clearing | |
5849 | bitmap area. | |
5850 | (x_estimate_mode_line_height): Replacement for | |
5851 | x_frame_mode_line_height. | |
5852 | (x_get_glyph_string_clip_rect): Take top line into account. | |
5853 | (x_clear_end_of_line): Ditto. | |
5854 | (note_mode_line_highlight): Add parameter mode_line_p. Handle | |
5855 | top lines. | |
5856 | (note_mouse_highlight): Call note_mode_line_highlight for top lines. | |
5857 | (x_erase_phys_cursor): Take top line into account. | |
5858 | ||
5859 | * xdisp.c (window_box_height): Subtract top line height if | |
5860 | window wants a top line. | |
5861 | (display_mode_lines): New. | |
5862 | (redisplay_window): Call it. | |
5863 | (display_mode_line): Add parameters face_id and format. | |
5864 | ||
5865 | * dispextern.h (CURRENT_TOP_LINE_HEIGHT): New. | |
5866 | (MATRIX_TOP_LINE_HEIGHT): New. | |
5867 | ||
5868 | * xterm.c (x_frame_mode_line_height): Add parameter face_id. | |
5869 | ||
5870 | * term.c (estimate_mode_line_height): Renamed from | |
5871 | frame_mode_line_height. Add parameter face_id. | |
5872 | (estimate_mode_line_height_hook): Renamed from | |
5873 | frame_mode_line_height_hook. | |
5874 | (produce_special_glyphs_hook): Removed. | |
5875 | (produce_glyphs_hook): Removed. | |
5876 | ||
5877 | 1999-06-23 Gerd Moellmann <gerd@gnu.org> | |
5878 | ||
5879 | * dispextern.h (WINDOW_WANTS_TOP_LINE_P): New. | |
5880 | (struct glyph_row): Add mode_line_p. | |
5881 | ||
5882 | * xfaces.c (realize_basic_faces): Realize face `top-line'. | |
5883 | (Qtop_line): New. | |
5884 | (syms_of_xfaces): Initialize Qtop_line. | |
5885 | ||
5886 | * dispextern.h (TOP_LINE_FACE_ID): New. | |
5887 | ||
5888 | * buffer.c (init_buffer_once): Set default for | |
5889 | top_line_format to nil. | |
5890 | (init_buffer_once): Init top_line_format. | |
5891 | (default-top-line-format): New. | |
5892 | (top-line-format): New buffer-local variable. | |
5893 | ||
5894 | * buffer.h: Add top_line_format. | |
5895 | ||
5896 | * xdisp.c (overlay_arrow_changed_p): Removed because not used. | |
5897 | ||
5898 | 1999-06-17 Dave Love <fx@gnu.org> | |
5899 | ||
5900 | * xfns.c: Move the PNG section before the JPEG one to avoid | |
5901 | problems surrounding setjmp.h/png.h on GNU/Linux. | |
5902 | ||
5903 | 1999-06-17 Gerd Moellmann <gerd@gnu.org> | |
5904 | ||
5905 | * xfns.c (x_kill_gs_process): Don't free colors. | |
5906 | ||
5907 | 1999-06-17 Dave Love <fx@gnu.org> | |
5908 | ||
5909 | * s/gnu-linux.h: Zap spurious ~. | |
5910 | ||
5911 | 1999-06-16 Gerd Moellmann <gerd@gnu.org> | |
5912 | ||
5913 | * xfns.c (gif_load): Improve multi-image support. | |
5914 | ||
5915 | 1999-06-15 Gerd Moellmann <gerd@gnu.org> | |
5916 | ||
5917 | * xfns.c (gif_load): Support multi-image files. | |
5918 | ||
5919 | * Makefile.in (LIBGIF): Use libungif. | |
5920 | ||
5921 | * configure.in (HAVE_GIF): Use libungif instead of libgif | |
5922 | because the former doesn't contain patented compression code. | |
5923 | ||
5924 | * xdisp.c (compute_window_start_on_continuation_line): Don't | |
5925 | do it if line start is too far away from window start. | |
5926 | ||
5927 | 1999-06-14 Gerd Moellmann <gerd@gnu.org> | |
5928 | ||
5929 | * buffer.c (init_buffer_once): Set buffer_local_flags for | |
5930 | scroll_*_aggressively. | |
5931 | (syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively. | |
5932 | (init_buffer_once): Set defaults for these variables. | |
5933 | (syms_of_buffer): Add default-scroll-*-aggressively. | |
5934 | ||
5935 | * buffer.h (scroll_up_aggressively): New. | |
5936 | (scroll_down_aggressively): New. | |
5937 | ||
5938 | * Makefile.in (LIBPNG): Add -lz -lm in case we're linking with | |
5939 | a static PNG library. | |
5940 | ||
5941 | * configure.in (HAVE_PNG): Add -lz -lm when checking for PNG lib | |
5942 | in case it's a static library. | |
5943 | ||
5944 | * Makefile.in (ctagsfiles): Split so that files starting | |
5945 | with an `x' are found before files starting with `w32'. | |
5946 | (ctagsfiles1): New. | |
5947 | (ctagsfiles2): New. | |
5948 | (TAGS): Use ctagsfiles[12] instead of ctagsfiles. | |
5949 | ||
5950 | * xdisp.c (compute_window_start_on_continuation_line): New. | |
5951 | (redisplay_window): Use it. | |
5952 | (INFINITY): New. | |
5953 | (reseat_to_string): Use it. | |
5954 | (hscroll_window_tree): Ditto. | |
5955 | (compute_window_start_on_continuation_line): Ditto. | |
5956 | (redisplay_window): Don't force display with a new window start. | |
5957 | ||
5958 | 1999-06-06 Gerd Moellmann <gerd@gnu.org> | |
5959 | ||
5960 | * xfns.c (x_report_frame_params): Don't report `outer-window-id' | |
5961 | if widget not present. | |
5962 | ||
5963 | * xdisp.c (prepare_menu_bars): Ignore tooltip frame. | |
5964 | ||
5965 | 1999-06-04 Gerd Moellmann <gerd@gnu.org> | |
5966 | ||
5967 | * xfaces.c (recompute_basic_faces)[GLYPH_DEBUG]: Check return | |
5968 | value of realize_basic_faces. | |
5969 | (load_face_font_or_fontset): Store full font name in face. | |
5970 | (realize_default_face): Use full font name. | |
5971 | ||
26901792 DL |
5972 | * xterm.c (x_produce_glyphs): Set member char_to_display. |
5973 | (x_append_glyph): Store char_to_display in glyphs. | |
5974 | ||
5975 | * dispextern.h (struct it): Add char_to_display. | |
5976 | ||
5977 | * xfns.c (x_set_font): Don't call face-set-after-frame-default | |
5978 | if faces haven't been initialized. | |
5979 | (Fx_create_frame): Call face-set-after-frame-default after | |
5980 | faces have been initialized, and widget has been created. | |
5981 | ||
5982 | * puresize.h (BASE_PURESIZE): Increased. | |
5983 | ||
5984 | 1999-06-01 Gerd Moellmann <gerd@gnu.org> | |
5985 | ||
5986 | * xfaces.c (set_lface_from_font_name): Add parameter force_p. | |
5987 | (Finternal_set_lisp_face_attribute): If frame is t when | |
5988 | :font attribute is set, use the selected frame. | |
5989 | (clear_face_cache): Add parameter clear_fonts_p. | |
5990 | (Fclear_face_cache): Add optional parameter thorougly. | |
5991 | ||
5992 | * xfaces.c (face_numeric_value): Return -1 if symbol is not | |
5993 | in table. | |
5994 | (Fclear_face_cache): New. | |
5995 | (choose_face_fontset_font): If fontset doesn't contain font | |
5996 | pattern for the given charset, use CHARSET_ASCII. | |
5997 | (Finternal_set_lisp_face_attribute): Fix handling of nil | |
5998 | stipple attribute. | |
5999 | (Finternal_set_lisp_face_attribute): Fix handling of changing | |
6000 | font-related face attributes of the default face. | |
6001 | (set_lface_from_font_name): Set only attributes that aren't | |
6002 | specified. | |
6003 | ||
6004 | 1999-05-31 Gerd Moellmann <gerd@gnu.org> | |
6005 | ||
6006 | * xfaces.c (SCALABLE_FONTS): Define this to enable scalable | |
6007 | font support. | |
6008 | (Vscalable_fonts_allowed) [SCALABLE_FONTS]: New. | |
6009 | (x_face_list_fonts): Add parameter scalable_fonts_p. Handle | |
6010 | scalable fonts depending on the setting of SCALABLE_FONTS. | |
6011 | (first_font_matching): List more than one font to find the | |
6012 | first non-scalable matching font. | |
6013 | (sorted_font_list): Let x_face_list_fonts return scalable fonts | |
6014 | depending on SCALABLE_FONTS. | |
6015 | (better_font_p): New parameter compare_pt_p. If zero, don't | |
6016 | compare point sizes of fonts. | |
6017 | (exact_face_match_p) [SCALABLE_FONTS]: New. | |
6018 | (build_scalable_font_name) [SCALABLE_FONTS]: New. | |
6019 | (may_use_scalable_font_p) [SCALABLE_FONTS]: New. | |
6020 | (best_matching_font) [SCALABLE_FONTS]: Handle scalable fonts. | |
6021 | (syms_of_xfaces): Add scalable-fonts-allowed. | |
6022 | ||
6023 | 1999-05-26 Gerd Moellmann <gerd@gnu.org> | |
6024 | ||
6025 | * xfns.c (png_load): Let PNG lib handle gamma. Construct | |
6026 | mask only if image contains simple transparency information. | |
6027 | Otherwise, combine image with frame background color. | |
6028 | ||
6029 | * configure.in (--with-png, HAVE_PNG): New. | |
6030 | ||
6031 | * config.in (HAVE_PNG): New. | |
6032 | ||
6033 | * Makefile.in: Add PNG library. | |
6034 | ||
6035 | * xfns.c: Add PNG support. | |
6036 | ||
6037 | 1999-05-25 Gerd Moellmann <gerd@gnu.org> | |
6038 | ||
6039 | * xdisp.c (init_xdisp): Initialize echo_area_message and | |
6040 | previous_echo_area_message to nil. | |
6041 | ||
6042 | * keyboard.c (read_char): Rename local variable echo_area_message | |
6043 | because it shadows the global one. | |
6044 | ||
6045 | 1999-05-05 Gerd Moellmann <gerd@gnu.org> | |
6046 | ||
6047 | * xterm.c (note_mode_line_highlight): Restructured. | |
6048 | ||
6049 | * window.c (coordinates_in_window): Handle windows that don't have | |
6050 | a mode line because their buffer's mode-line-format is nil. | |
6051 | Recognize the mode line under x positions that correspond to | |
6052 | flags areas and left scroll bar. | |
6053 | ||
6054 | 1999-05-02 Dave Love <fx@gnu.org> | |
6055 | ||
6056 | * xterm.c (note_mouse_highlight): Separate help-echo processing | |
6057 | from check on mouse-face so that it works generally. | |
6058 | ||
6059 | 1999-04-21 Gerd Moellmann <gerd@gnu.org> | |
6060 | ||
6061 | * sound.c (Fplay_sound): Run hook play-sound-hook. | |
6062 | (Qplay_sound_hook): New. | |
6063 | ||
6064 | 1999-04-20 Gerd Moellmann <gerd@gnu.org> | |
6065 | ||
6066 | * xdisp.c (update_echo_area): Handle echo_area_message. | |
6067 | ||
6068 | 1999-04-19 Gerd Moellmann <gerd@gnu.org> | |
6069 | ||
6070 | * editfns.c (Fmessage): Use message3. | |
6071 | ||
6072 | * print.c (printchar): Set echo_area_message to nil. | |
6073 | (strout): Ditto. | |
6074 | ||
6075 | * minibuf.c (read_minibuf): Reset echo message strings to nil. | |
6076 | (Fminibuffer_completion_help): Ditto. | |
6077 | ||
6078 | * keyboard.c (cmd_error_internal): Set echo_areA_message. | |
6079 | (command_loop_1): Test echo_areA_message. | |
6080 | (read_char): Ditto. | |
6081 | (record_menu_key): Set echo_area_message to nil. | |
6082 | (Fexecute_extended_command): Test echo_area_message. | |
6083 | (Fexecute_extended_command): Handle echo_area_message. | |
6084 | ||
6085 | * fileio.c (Fdo_auto_save): Handle the case that echo_area_message | |
6086 | is set. | |
6087 | ||
6088 | * editfns.c (Fcurrent_message): If echo_area_message is set, | |
6089 | return a substring of that string. | |
6090 | ||
6091 | * dispnew.c (direct_output_for_insert): Test echo_area_message | |
6092 | in addition to echo_area_glyphs. | |
6093 | (set_window_cursor_after_update): Ditto. | |
6094 | (update_frame_1): Ditto. | |
6095 | ||
6096 | * alloc.c (Fgarbage_collect): Use message3_nolog to display | |
6097 | old Lisp message string. | |
6098 | ||
6099 | * xdisp.c (echo_area_message): New. | |
6100 | (previous_echo_area_message): New. | |
6101 | (syms_of_xdisp): Initialize and staticpro new variables. | |
6102 | (echo_area_display): Display echo_area_message if set. | |
6103 | (message2_nolog): Set echo_area_message and | |
6104 | previous_echo_area_message. | |
6105 | (echo_area_display): Set previous_echo_area_message. | |
6106 | (redisplay_internal): Display echo area if echo_area_message | |
6107 | or previous_echo_area_message are set. | |
6108 | (redisplay_preserve_echo_area): Test/set echo_area_message and | |
6109 | previous_echo_area_message. | |
6110 | (redisplay_window): Test echo_area_message. | |
6111 | (message3_nolog): New. | |
6112 | (message3): New. | |
6113 | ||
6114 | * editfns.c (Fformat): Add text properties to the result string | |
6115 | from properties of the format string and properties of string | |
6116 | arguments. | |
6117 | ||
6118 | * textprop.c (text_property_list): New. | |
6119 | (add_text_properties_from_list): New. | |
6120 | (extend_property_ranges): New. | |
6121 | ||
6122 | 1999-03-29 Gerd Moellmann <gerd@gnu.org> | |
6123 | ||
6124 | * xfaces.c (Qraised, Qsunken, QCshadow): Removed. | |
6125 | (QCline_width, QCstyle, Qpressed_button, Qreleased_button): New. | |
6126 | Use these symbols for the box face attribute instead of the | |
6127 | removed ones. | |
6128 | ||
6129 | 1999-03-12 Gerd Moellmann <gerd@gnu.org> | |
6130 | ||
6131 | * xfaces.c (realize_tty_face): Don't set alt_char_p of face. | |
6132 | Correct wrong test for slant. | |
6133 | ||
6134 | 1999-03-10 Gerd Moellmann <gerd@gnu.org> | |
6135 | ||
6136 | * xfaces.c: Use `unspecified' for unspecified face attributes, | |
6137 | use t and nil for on/off. | |
6138 | ||
6139 | 1999-03-06 Gerd Moellmann <gerd@gnu.org> | |
6140 | ||
6141 | * buffer.c (syms_of_buffer): Extend doc string of | |
6142 | mode-line-format. | |
6143 | ||
6144 | * xfaces.c (x_face_list_fonts): New parameter try_alternatives_p. | |
6145 | (first_font_matching): New. | |
6146 | (set_lface_from_font_name): Use it if font name is a pattern. | |
6147 | (font_field_wildcard_p): Removed. | |
6148 | ||
6149 | * dispnew.c (shift_glyph_matrix): Add `window' parameter. | |
6150 | Recompute visible height of rows. | |
6151 | ||
6152 | * xterm.c (note_mouse_highlight): Reorder code for help-echo. | |
6153 | Don't accept non-strings for help-echo from overlays. | |
6154 | ||
6155 | 1999-03-04 Dave Love <fx@gnu.org> | |
6156 | ||
6157 | * xterm.c (note_mouse_highlight): Check overlays for help-text | |
6158 | property. | |
6159 | (XTread_socket): Fix compiler warning. | |
6160 | ||
6161 | 1999-03-05 Gerd Moellmann <gerd@gnu.org> | |
6162 | ||
6163 | * xterm.c (note_mouse_highlight): Don't restrict number of | |
6164 | overlay to 10. Call overlays_at so that it doesn't try to | |
6165 | extend the vector. | |
6166 | ||
6167 | * xdisp.c (compute_line_metrics): Compute glyph row's visible | |
6168 | height. | |
6169 | ||
6170 | * dispnew.c (row_equal_p): Compare visible row height, only. | |
6171 | (update_text_area): Draw whole line if visible heights of | |
6172 | rows differ. | |
6173 | (update_window_line): Call after_update_window_line_hook | |
6174 | if visible row height has changed. | |
6175 | ||
6176 | * dispextern.h (MATRIX_ROW_VISIBLE_HEIGHT): Removed. | |
6177 | (struct glyph_row): New member visible_height. | |
6178 | ||
6179 | * xfaces.c (font_field_wildcard_p): New. | |
6180 | (set_lface_from_font_name): Remove parameter force_p. Accept | |
6181 | font names containing wildcards. | |
6182 | ||
6183 | 1999-03-04 Gerd Moellmann <gerd@gnu.org> | |
6184 | ||
6185 | * xterm.c (x_after_update_window_line): Clear internal border | |
6186 | when windows_or_buffers_changed. | |
6187 | ||
6188 | * dispextern.h (WINDOW_WANTS_MODELINE_P): Return zero if window's | |
6189 | buffer has a nil mode_line_format. | |
6190 | ||
6191 | 1999-03-03 Gerd Moellmann <gerd@gnu.org> | |
6192 | ||
6193 | * xterm.c (x_setup_relief_colors): Use either background color | |
6194 | or specified color. | |
6195 | ||
6196 | * xfaces.c (realize_x_face): Set face->use_box_color_for_shadows_p. | |
6197 | ||
6198 | * dispextern.h (struct face): Add use_box_color_for_shadows_p. | |
6199 | ||
6200 | * xterm.c (x_draw_box_rect): New. | |
6201 | (x_draw_glyph_string_box): Renamed from | |
6202 | x_draw_glyph_string_relief. Call x_draw_box_rect. | |
6203 | ||
6204 | * xfns.c (QCrelief): New. | |
6205 | (syms_of_xfns): Initialize it. | |
6206 | ||
6207 | * dispextern.h (struct glyph): Rename left_shadow_p to | |
6208 | left_box_line_p, right_shadow_p to right_box_line_p. | |
6209 | (MAX_RELIEF_THICKNESS): Removed. | |
6210 | (struct it): Rename members having `relief' in their names | |
6211 | to contain `box' instead. | |
6212 | ||
6213 | * xfaces.c (realize_x_face): Handle new box attribute values. | |
6214 | (QCrelief, Qbox): Removed. | |
6215 | (QCshadow, QCcolor, Qraised, Qsunken): New. | |
6216 | (syms_of_xfaces): Initialize new symbols. | |
6217 | ||
6218 | 1999-03-02 Gerd Moellmann <gerd@gnu.org> | |
6219 | ||
6220 | * dispextern.h (LFACE_RELIEF_INDEX): Removed. | |
6221 | ||
6222 | * xfaces.c (LFACE_RELIEF): Removed. | |
6223 | (merge_face_vector_with_property): Remove handling of `:relief'. | |
6224 | (Finternal_set_lisp_face_attribute): Ditto. | |
6225 | (Finternal_set_lisp_face_attribute_from_resource): Ditto. | |
6226 | (Finternal_get_lisp_face_attribute): Ditto. | |
6227 | (realize_default_face): Ditto. | |
6228 | (lface_hash): Don't compute hash from relief. | |
6229 | ||
6230 | * dispextern.h (struct face): Replace member `relief' by | |
6231 | `box_line_width'. Add member `box'. | |
6232 | (face_box_type): New. | |
6233 | ||
6234 | * xterm.c (x_produce_glyphs): If face has overline, add overline | |
6235 | thickness + 1 to ascent. | |
6236 | ||
6237 | 1999-03-01 Gerd Moellmann <gerd@gnu.org> | |
6238 | ||
6239 | * xterm.c (x_draw_glyph_string): Draw underline, overline, | |
6240 | strike-through, and boxes. | |
6241 | (x_draw_glyph_string_underline): Removed. | |
6242 | ||
6243 | * xfaces.c (QCoverline, QCstrike_through, QCbox): New. | |
6244 | (Qoverline, Qstrike_through, Qbox): New. | |
6245 | (syms_of_xfaces): Define these symbols. | |
6246 | (check_lface_attrs): Add checks for overline, strike-through, | |
6247 | and box. | |
6248 | (Finternal_set_lisp_face_attribute): Set new attributes. | |
6249 | (LFACE_OVERLINE, LFACE_STRIKE_THROUGH, LFACE_BOX): New. | |
6250 | (load_color): Handle new attributes. | |
6251 | (realize_x_face): Ditto. | |
6252 | (merge_face_vector_with_property): Ditto. | |
6253 | (free_face_colors): Ditto. | |
6254 | (Finternal_set_lisp_face_attribute_from_resource): Ditto. | |
6255 | (Finternal_get_lisp_face_attribute): Ditto. | |
6256 | (Finternal_lisp_face_attribute_values): Ditto. | |
6257 | ||
6258 | * dispextern.h (lface_attribute_index): Add enumerators for | |
6259 | overstrike, strike-through, and box. | |
6260 | (struct face): Add members for overline, strike-through, and | |
6261 | box. | |
6262 | ||
6263 | 1999-02-17 Dave Love <fx@gnu.org> | |
6264 | ||
6265 | * s/gnu-linux.h s/gnu.h s/irix5-0.h s/netbsd.h s/sco4.h s/sco5.h | |
6266 | s/template.h (NARROWPROTO): Define on the basis of relevant X cf | |
6267 | files. | |
6268 | ||
6269 | 1999-02-16 Gerd Moellmann <gerd@gnu.org> | |
6270 | ||
6271 | * keyboard.c (toolbar_items): Call access_keymap with third | |
6272 | parameter 1, so that we don't get inherited toolbar item | |
6273 | definitions. | |
6274 | ||
6275 | * xdisp.c (redisplay_internal): In optimization 1, don't decrement | |
6276 | the window end vpos when in empty first line of window. | |
6277 | ||
6278 | 1999-02-15 Gerd Moellmann <gerd@gnu.org> | |
6279 | ||
6280 | * xfaces.c (set_font_frame_param): New. | |
6281 | (Finternal_set_lisp_face_attribute): Call it. | |
6282 | ||
6283 | Sun Feb 14 10:54:02 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp> | |
6284 | ||
6285 | * xfaces.c (Finternal_set_lisp_face_attribute_from_resource): | |
6286 | Accept specifications of color for underline. | |
6287 | ||
6288 | 1999-02-13 Gerd Moellmann <gerd@gnu.org> | |
6289 | ||
6290 | * xfaces.c (Finternal_set_lisp_face_attribute): If parameter | |
6291 | `frame' is t, operate on face defaults for new frames. If it | |
6292 | is nil, operate on the selected frame. | |
6293 | ||
6294 | 1999-02-12 Gerd Moellmann <gerd@gnu.org> | |
6295 | ||
6296 | * dispnew.c (check_matrix_invariants): Put it in #if 0. | |
6297 | (update_window): Put the call to check_matrix_invariants in #if 0. | |
6298 | ||
6299 | Sun Feb 7 09:58:49 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp> | |
6300 | ||
6301 | * dispextern.h: Remove all else block of UNDERLINE_COLOR. | |
6302 | Remove definition of UNDERLINE_COLOR. | |
6303 | ||
6304 | Mon Jan 4 04:43:41 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp> | |
6305 | ||
6306 | * xfaces.c (free_face_colors): Free the color for underline. | |
6307 | ||
6308 | * xterm.c (x_draw_glyph_string_underline): Set the color for underline | |
6309 | to the GC. | |
6310 | ||
6311 | Sun Jan 3 08:41:10 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp> | |
6312 | ||
6313 | * dispextern.h (UNDERLINE_COLOR): Defined. | |
6314 | (struct face): Added two new members. | |
6315 | underline_color, underline_defaulted_p. | |
6316 | ||
6317 | * xfaces.c (merge_face_vector_with_property): | |
6318 | (check_lface_attrs): Accept the string value for underline. | |
6319 | (Finternal_set_lisp_face_attribute): Likewise. | |
6320 | ||
6321 | * xfaces.c (load_color): Change the last argument type to enum | |
6322 | lface_attribute_index from int. And addec code for underling coloring. | |
6323 | (load_face_colors): Pass LFACE_*_INDEX to load_color. | |
6324 | ||
6325 | 1999-02-12 Gerd Moellmann <gerd@gnu.org> | |
6326 | ||
6327 | * xfns.c (Fx_image_header): Removed. | |
6328 | ||
6329 | 1999-02-07 Gerd Moellmann <gerd@gnu.org> | |
6330 | ||
6331 | * xterm.c: Don't include <bitmaps/gray>. | |
6332 | (x_term_init): Use gray_bitmap_width and gray_bitmap_height. | |
6333 | ||
6334 | * xfns.c (Fx_image_header): Add missing `\n\'. | |
6335 | (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): New. | |
6336 | ||
6337 | 1999-02-01 Gerd Moellmann <gerd@gnu.org> | |
6338 | ||
6339 | * xterm.c (x_scroll_bar_create): Set background pixel from | |
6340 | specified scroll bar color. | |
6341 | (x_scroll_bar_set_handle): Use scroll bar foreground color. | |
6342 | ||
6343 | * xfns.c (x_set_scroll_bar_foreground): Remove all scroll bars. | |
6344 | (x_set_scroll_bar_background): Ditto. | |
6345 | ||
6346 | * xterm.c (x_create_toolkit_scroll_bar): Set scroll bar colors. | |
6347 | ||
6348 | * xfns.c (x_default_scroll_bar_color_parameter): New. | |
6349 | (Fx_create_frame): Call it. | |
6350 | ||
6351 | 1999-01-31 Gerd Moellmann <gerd@gnu.org> | |
6352 | ||
6353 | * xfns.c (Fx_create_frame): Initialize scroll bar pixel color | |
6354 | values in x_output structure. | |
6355 | (Qscroll_bar_foreground, Qscroll_bar_background): New. | |
6356 | (syms_of_xfns): Initialize these symbols. | |
6357 | ||
6358 | * xterm.h (struct x_output): Add scroll bar pixel colors. | |
6359 | ||
6360 | * xfns.c (x_frame_parms): Add entries for scroll bar colors. | |
6361 | (x_set_scroll_bar_foreground): New. | |
6362 | (x_set_scroll_bar_background): New. | |
6363 | ||
26901792 DL |
6364 | 1999-01-12 Gerd Moellmann <gerd@gnu.org> |
6365 | ||
6366 | * xdisp.c (handle_single_display_prop): New. | |
6367 | (handle_display_prop): Call it. | |
6368 | (handle_raise_prop): Removed. | |
6369 | (handle_height_prop): Removed. | |
6370 | (handle_space_width_prop): Removed. | |
6371 | (handle_face_prop): Remove handling of raised text. | |
6372 | (handle_display_prop): Do it here. | |
6373 | ||
6374 | * dispextern.h (DISPLAY_PROP_IDX): Replaces GLYPH_PROP_IDX. | |
6375 | (RAISE_PROP_IDX): Removed. | |
6376 | (HEIGHT_PROP_IDX): Removed. | |
6377 | (SPACE_WIDTH_PROP_IDX): Removed. | |
6378 | ||
6379 | * xdisp.c (Qdisplay): Replaces Qglyph. | |
6380 | (handle_display_prop): Formerly handle_glyph_prop. | |
6381 | ||
6382 | 1999-01-11 Gerd Moellmann <gerd@gnu.org> | |
6383 | ||
6384 | * xdisp.c (reseat_to_string): Set position in display vector to -1. | |
6385 | (handle_stop): Set position in display vector to -1. Don't | |
6386 | check overlay strings when set up to deliver characters from a | |
6387 | display vector. | |
6388 | (set_iterator_to_next): At the end of a run of characters from a | |
6389 | display vector, check whether the display vector display replaces | |
6390 | the display of a character. | |
6391 | ||
6392 | 1999-01-05 Gerd Moellmann <gerd@gnu.org> | |
6393 | ||
6394 | * xfaces.c (init_frame_faces): Don't realize faces if frame's | |
6395 | X window hasn't been created yet. | |
6396 | ||
6397 | 1998-12-06 Gerd Moellmann <gerd@gnu.org> | |
6398 | ||
6399 | * sound.c: New. | |
6400 | ||
6401 | 1998-12-04 Gerd Moellmann <gerd@gnu.org> | |
6402 | ||
6403 | * config.in (HAVE_SOUND): New. | |
6404 | ||
6405 | * emacs.c (main): Call syms_of_sound and init_sound. | |
6406 | ||
6407 | * Makefile.in (obj): Add sound.o. | |
6408 | ||
6409 | * configure.in: Add checks for machine/soundcard.h and sys/soundcard.h. | |
6410 | ||
6411 | * config.in (HAVE_MACHINE_SOUNDCARD_H): New. | |
6412 | (HAVE_SYS_SOUNDCARD_H): New. | |
6413 | ||
6414 | 1998-12-03 Gerd Moellmann <gerd@gnu.org> | |
6415 | ||
6416 | * buffer.h (struct buffer): indicate_empty_lines renamed from | |
6417 | indicate_zv_lines. | |
6418 | ||
6419 | * buffer.c (indicate-empty-lines): Renamed from indicate_zv_lines. | |
6420 | (default-indicate-zv-lines): Likewise. | |
6421 | ||
6422 | * dispextern.h (struct glyph_row): Rename indicate_zv_line_p | |
6423 | to indicate_empty_line_p. | |
6424 | ||
6425 | * xdisp.c (reseat_at_next_visible_line_start): Reset method | |
6426 | to next_element_from_buffer. | |
6427 | ||
6428 | * frame.c (make_frame): Set n_current_toolbar_items to 0. | |
6429 | ||
6430 | * xdisp.c (handle_face_prop): Allow symbols of the form `N+' | |
6431 | and `N-'. | |
6432 | ||
6433 | * xfns.c (xbm_scan): New. | |
6434 | (xbm_read_hexint): Removed. | |
6435 | (xbm_read_bitmap_file_data): Use xbm_scan. | |
6436 | ||
6437 | * fileio.c (Finsert_file_contents): Prevent redisplay optimizations. | |
6438 | ||
6439 | 1998-12-02 Gerd Moellmann <gerd@gnu.org> | |
6440 | ||
6441 | * xfns.c (xbm_read_hexint): New. | |
6442 | (xbm_read_bitmap_file_data): New. | |
6443 | (xbm_load_image_from_file): Call xbm_read_bitmap_file_data | |
6444 | instead of XReadBitmapFileData. | |
6445 | ||
6446 | * xdisp.c (handle_raise_prop): Compute voffset from current font. | |
6447 | ||
6448 | * xfaces.c (face_with_height): New. | |
6449 | ||
6450 | * xdisp.c (eval_handler): Renamed from eval_mode_handler. | |
6451 | (eval_form): Renamed from eval_mode_element. | |
6452 | (handle_face_prop): Use it. | |
6453 | (Qheight): Replaces Qsmaller. | |
6454 | (handle_height_prop): Replaces handle_smaller_prop. | |
6455 | (handle_face_prop): If iterator's font_height is not an | |
6456 | integer, evaluate it to get the font height to use. | |
6457 | ||
6458 | * dispextern.h (HEIGHT_PROP_IDX): Replaces SMALLER_PROP_IDX. | |
6459 | (struct it): Use `font_height' instead of `smaller'. | |
6460 | ||
6461 | 1998-12-01 Gerd Moellmann <gerd@gnu.org> | |
6462 | ||
6463 | * xdisp.c (reseat_1): New. | |
6464 | (reseat): Call it. | |
6465 | (move_it_vertically_backward): Ditto. | |
6466 | (redisplay_window): Don't abort when cursor not found in recenter. | |
6467 | ||
6468 | 1998-11-30 Gerd Moellmann <gerd@gnu.org> | |
6469 | ||
6470 | * xdisp.c (reseat_at_next_visible_line_start): When not | |
6471 | currently delivering display elements from the current buffer, | |
6472 | restore buffer position first. | |
6473 | (init_from_display_pos): Don't set IT's position from the | |
6474 | position passed to this function. | |
6475 | ||
6476 | 1998-11-28 Gerd Moellmann <gerd@gnu.org> | |
6477 | ||
6478 | * config.in (PROTO): Removed. | |
6479 | ||
6480 | * xterm.h: Change PROTO to P_. | |
6481 | ||
6482 | 1998-11-26 Gerd Moellmann <gerd@gnu.org> | |
6483 | ||
6484 | * xterm.c (take_vertical_position_into_account): New. | |
6485 | (x_produce_image_glyph): Call it. | |
6486 | (x_produce_stretch_glyph): Ditto. | |
6487 | (x_produce_glyphs): Ditto. | |
6488 | (x_fill_glyph_string): Adjust base line for glyph's voffset. | |
6489 | (x_fill_composite_glyph_string): Ditto. | |
6490 | (x_fill_image_glyph_string): Ditto. | |
6491 | (x_fill_stretch_glyph_string): Ditto. | |
6492 | ||
6493 | * xdisp.c (display_line): Always compute row height from | |
6494 | max_ascent and max_descent. | |
6495 | ||
6496 | * dispextern.h (struct glyph): Add voffset. | |
6497 | (struct it): Replace height by descent, max_height by max_descent. | |
6498 | ||
6499 | * xterm.c (x_append_glyph): Set voffset | |
6500 | (x_append_stretch_glyph): Ditto. | |
6501 | (x_produce_image_glyph): Ditto. | |
6502 | (x_produce_glyphs): Take voffset into account. | |
6503 | (x_produce_image_glyph): Ditto. | |
6504 | (x_produce_stretch_glyph): Ditto. | |
6505 | ||
6506 | * dispextern.h (struct it): Add voffset. | |
6507 | * xdisp.c (push_it): Save voffset. | |
6508 | (pop_it): Restore it. | |
6509 | ||
6510 | * xdisp.c (it_props): Add entry for `raise'. | |
6511 | (handle_raise_prop): New. | |
6512 | ||
6513 | * dispextern.h (RAISE_PROP_IDX): New. | |
6514 | ||
6515 | * xdisp.c (Qraise): New. | |
6516 | (syms_of_xdisp): Define Qraised. | |
6517 | ||
6518 | * xterm.c (x_scroll_bar_move): Clear to the left and right | |
6519 | of toolkit scroll bars differently. | |
6520 | (x_scroll_bar_move): Removed. | |
6521 | (XTset_vertical_scroll_bar): Move code from x_scroll_bar_move here. | |
6522 | ||
6523 | * dispextern.h: Make it compilable --with-x=no. | |
6524 | * alloc.c: Ditto. | |
6525 | * emacs.c: Ditto. | |
6526 | * dispnew.c: Ditto. | |
6527 | * keyboard.c: Ditto. | |
6528 | * term.c: Ditto. | |
6529 | * xdisp.c: Ditto. | |
6530 | * xfaces.c: Ditto. | |
6531 | * xfns.c: Ditto. | |
6532 | * xmenu.c: Ditto. | |
6533 | ||
6534 | 1998-11-25 Gerd Moellmann <gerd@gnu.org> | |
6535 | ||
6536 | * xterm.c (XTread_socket): Cancel help-echo when leaving frame. | |
6537 | ||
6538 | 1998-11-24 Gerd Moellmann <gerd@gnu.org> | |
6539 | ||
6540 | * xterm.c (x_set_toolkit_scroll_bar_thumb): When dragging, | |
6541 | update slider size, only. | |
6542 | (xm_scroll_callback): Set dragging member of the scroll bar. | |
6543 | (xt_action_hook): Reset last_scroll_bar_part. | |
6544 | (XTredeem_scroll_bar): Reset bar->dragging to nil. | |
6545 | ||
26901792 DL |
6546 | * xfns.c (Fx_hide_busy_cursor): Don't try to hide busy cursor |
6547 | window on newly created frames that don't have one. | |
6548 | ||
6549 | 1998-11-23 Gerd Moellmann <gerd@gnu.org> | |
6550 | ||
6551 | * xdisp.c (restore_overlay_strings): Removed. | |
6552 | (restore_dpvec): Removed. | |
6553 | (init_from_display_pos): Inline both functions above. | |
6554 | ||
6555 | * xfns.c (IMAGE_NON_NEGATIVE_INTEGER_VALUE): New. | |
6556 | (parse_image_spec): Handle it. | |
6557 | (xbm_format): Use it. | |
6558 | (xpm_format): Ditto. | |
6559 | (pbm_format): Ditto. | |
6560 | (jpeg_format): Ditto. | |
6561 | (tiff_format): Ditto. | |
6562 | (gif_format): Ditto. | |
6563 | (gs_format): Ditto. | |
6564 | ||
6565 | * xdisp.c (set_window_cursor): Removed. | |
6566 | (redisplay_internal): Case cursor motion in cursor line of | |
6567 | selected window; use set_cursor_from_row. | |
6568 | ||
6569 | 1998-11-22 Gerd Moellmann <gerd@gnu.org> | |
6570 | ||
6571 | * widget.c (EmacsFrameSetCharSize): Take widget's border width | |
6572 | into account. | |
6573 | ||
6574 | 1998-11-21 Gerd Moellmann <gerd@gnu.org> | |
6575 | ||
6576 | * xterm.c (expose_frame): Redraw menu bar window. | |
6577 | ||
6578 | * xdisp.c (display_menu_bar): Record hpos instead of x-position | |
6579 | in menu item. | |
6580 | ||
6581 | * dispnew.c (change_frame_size_1): Use FRAME_TOP_MARGIN instead | |
6582 | of FRAME_TOOLBAR_LINES. Use `f' instead of `frame'. | |
6583 | ||
6584 | * widget.c (set_frame_size): Use FRAME_SCROLL_BAR_COLS | |
6585 | to determine vertical_scroll_bar_extra. | |
6586 | (EmacsFrameSetCharSize): Ditto. | |
6587 | * xfns.c (x_figure_window_size): Ditto. | |
6588 | ||
6589 | * xterm.c (x_draw_row_bitmaps): Draw in `bitmap-area' face. | |
6590 | (x_draw_bitmap): Ditto. | |
6591 | ||
6592 | * dispextern.h (face_id): New id BITMAP_AREA_FACE_ID. | |
6593 | * xfaces.c (realize_basic_faces): Realize it. | |
6594 | ||
6595 | 1998-11-20 Gerd Moellmann <gerd@gnu.org> | |
6596 | ||
6597 | * xmenu.c (xmenu_show): Add workaround for remaining button grab | |
6598 | under LessTif Use the widget of the frame as parent for the | |
6599 | menu, again. | |
6600 | ||
6601 | 1998-11-19 Gerd Moellmann <gerd@gnu.org> | |
6602 | ||
6603 | * xterm.c (XTread_socket): Inhibit busy cursor for EnterNotify. | |
6604 | When EnterNotify, don't generate a mouse movement event if | |
6605 | notification is from a busy-cursor child window. | |
6606 | ||
6607 | * xterm.h (struct x_output): Add busy_window, remove cursor. | |
6608 | ||
6609 | * xfns.c (Fx_show_busy_cursor): Formerly Fx_display_busy_cursor. | |
6610 | Use a transparent window to display the busy-cursor. | |
6611 | (Fx_hide_busy_cursor): Formerly Fx_undisplay_busy_cursor. | |
6612 | ||
6613 | 1998-11-17 Gerd Moellmann <gerd@gnu.org> | |
6614 | ||
6615 | * xdisp.c (check_window_end): New, for debugging. | |
6616 | (CHECK_WINDOW_END): New. | |
6617 | (try_window_id): Use it. | |
6618 | ||
6619 | * xterm.c (process_expose_from_menu): Return int. | |
6620 | ||
6621 | * keyboard.c (kbd_buffer_get_event): Set flag to prevent recording | |
6622 | TOOLBAR_EVENT events in last_nonmenu_event. | |
6623 | ||
6624 | 1998-11-16 Gerd Moellmann <gerd@gnu.org> | |
6625 | ||
6626 | * xdisp.c (redisplay_window): If windows_or_buffers_changed, | |
6627 | window end isn't reliable, so set window_end_valid to nil. | |
6628 | (redisplay_internal): If overlay arrow has changed, set | |
6629 | windows_or_buffers_changed to redisplay thoroughly. | |
6630 | ||
6631 | * dispnew.c (adjust_glyph_matrix): Invalidate window end, if | |
6632 | necessary. | |
6633 | ||
6634 | * xfns.c (file_dialog_cb): New. | |
6635 | (Fx_file_dialog): New. | |
6636 | * fileio.c (Fread_file_name): Call it. | |
6637 | ||
6638 | * xrdb.c (x_load_resources): Add default resoures for file | |
6639 | selection dialog. | |
6640 | ||
6641 | 1998-11-14 Gerd Moellmann <gerd@gnu.org> | |
6642 | ||
6643 | * xterm.c (note_mouse_highlight): Don't highlight when popup | |
6644 | is active. | |
6645 | ||
26901792 DL |
6646 | * keyboard.c (timer_check): Inhibit busy cursor around calls to |
6647 | timer-event-handler. This busy cursor tends to be anoying if | |
6648 | fontifying stealthily. | |
6649 | ||
6650 | * dispnew.c (direct_output_for_insert): Give up if current row | |
6651 | contains trailing whitespace. | |
6652 | ||
6653 | 1998-11-13 Gerd Moellmann <gerd@gnu.org> | |
6654 | ||
6655 | * dispextern.h (prop_idx): Add FONTIFIED_PROP_IDX. | |
6656 | ||
6657 | * xdisp.c (handle_fontified_prop): New. | |
6658 | (Vfontification_functions): New. | |
6659 | (Qfontification_functions): New. | |
6660 | (it_props): Add handle_fontified_prop. | |
6661 | ||
6662 | 1998-11-12 Gerd Moellmann <gerd@gnu.org> | |
6663 | ||
6664 | * xmenu.c (xmenu_show): Use the frame's edit_widget as parent. | |
6665 | Otherwise, under LessTif, after the popup has gone, all button | |
6666 | press events come in for the frame's widget, and release events | |
6667 | come in for the edit_widget. | |
6668 | * xterm.c (XTread_socket): Remove workaround for that problem. | |
6669 | (x_set_toolkit_scroll_bar_thumb): Add workaround for LessTif | |
6670 | XmScrollBarSetValues. | |
6671 | (SET_SAVED_MENU_EVENT): Give it statement form. | |
6672 | ||
26901792 DL |
6673 | * xfaces.c (display_message): If waiting_for_input, don't display |
6674 | the message. | |
6675 | ||
6676 | * window.c (scroll_command): If not acting on current_buffer, | |
6677 | make redisplay consider all windows. | |
6678 | ||
6679 | * xfns.c (Fx_hide_tip): Return t if tooltip was open. | |
6680 | ||
6681 | * xdisp.c (handle_glyph_prop): Set it->object for images to | |
6682 | the object having the glyph property. | |
6683 | ||
6684 | * xterm.c (x_draw_row_bitmaps): Don't draw if row is completely | |
6685 | invisible. | |
6686 | ||
6687 | 1998-11-11 Gerd Moellmann <gerd@gnu.org> | |
6688 | ||
6689 | * xterm.h (struct x_display_info): Add gray pixmap. * xterm.c | |
6690 | (x_term_init): Create the gray pixmap. | |
6691 | (x_setup_relief_color): Use it. | |
6692 | (x_get_glyph_string_clip_rect): Draw a toolbar window over the | |
6693 | internal border at the top of a frame. | |
6694 | (x_init_glyph_string): Likewise. | |
6695 | (x_draw_glyph_string_relief): Correct right x by 1 pixel for | |
6696 | full-width lines. | |
6697 | (XTflash): Don't flash the toolbar window. | |
6698 | ||
6699 | * xterm.c (XTread_socket): Workaround for LessTif popup menus | |
6700 | in case of ButtonPress events. | |
6701 | ||
6702 | 1998-11-10 Gerd Moellmann <gerd@gnu.org> | |
6703 | ||
6704 | * xrdb.c (x_load_resources): Add grey background colors as | |
6705 | defaults for menus, scroll bars, and dialogs. | |
6706 | ||
6707 | * insdel.c (prepare_to_modify_buffer): Move setting | |
6708 | windows_or_buffers_changed from modify_region here. | |
6709 | ||
6710 | * xfns.c (Fx_show_tip): Inhibit redisplay. | |
6711 | (Fx_hide_tip): Ditto. | |
6712 | (Fx_image_header): New. | |
6713 | ||
6714 | 1998-11-09 Gerd Moellmann <gerd@gnu.org> | |
6715 | ||
6716 | * dispnew.c (clear_window_matrices): Set window_end_valid to nil | |
6717 | when clearing current window matrices. | |
6718 | ||
6719 | 1998-11-08 Gerd Moellmann <gerd@gnu.org> | |
6720 | ||
6721 | * xdisp.c (handle_glyph_prop): Don't set an iterator's buffer | |
6722 | position from a string position. Use the right end position | |
6723 | if the property spans a whole overlay string. | |
6724 | ||
6725 | 1998-11-07 Gerd Moellmann <gerd@gnu.org> | |
6726 | ||
6727 | * xmenu.c (menubar_selection_callback): Remove workaround for | |
6728 | Lesstif not calling XmNpopdownCallback because it doesn't | |
6729 | handle the case where users don't select any menu item. | |
6730 | ||
26901792 DL |
6731 | * insdel.c (modify_region): Set windows_or_buffers_changed. |
6732 | ||
6733 | * buffer.c (set_buffer_internal): Don't set | |
6734 | windows_or_buffers_changed. | |
6735 | ||
26901792 DL |
6736 | * xmenu.c (HAVE_BOXES): Define if USE_X_TOOLKIT. |
6737 | ||
26901792 DL |
6738 | * xmenu.c (menubar_selection_callback): Add workaround for |
6739 | Lesstif not calling XmNpopdownCallback. | |
6740 | ||
6741 | * xdisp.c (eval_mode_element): New. | |
6742 | (eval_mode_handler): New. | |
6743 | (display_mode_element): Use eval_mode_element. | |
6744 | ||
6745 | * xdisp.c (display_mode_element): Allow `(:eval FORM)'. | |
6746 | Remove code looking at text props of default value. | |
6747 | ||
6748 | * xmenu.c (HAVE_BOXES): Define if using Lucid menus. | |
6749 | ||
26901792 DL |
6750 | 1998-11-06 Gerd Moellmann <gerd@gnu.org> |
6751 | ||
6752 | * xmenu.c (single_submenu): Set button_type of menu to | |
6753 | BUTTON_TYPE_NONE. | |
6754 | (single_submenu): Likewise for panes and menu items. | |
6755 | (set_frame_menubar): Set button_type of menu bar to none. | |
6756 | (xmenu_show): Likewise. | |
6757 | (single_submenu): Set widget values selected slot. | |
6758 | (xmenu_show): Likewise. | |
6759 | ||
26901792 DL |
6760 | * xmenu.c (push_menu_item): Add parameters `type' and |
6761 | `selected'. Store it in menu_items. | |
6762 | (MENU_ITEMS_ITEM_TYPE): New. | |
6763 | (MENU_ITEMS_ITEM_SELECTED): New. | |
6764 | (MENU_ITEMS_ITEM_LENGTH): Increase by two. | |
6765 | ||
6766 | * xfns.c (clear_image_cache): Get the current time, before | |
6767 | doing anything. | |
6768 | (cache_image): Set prev pointer of next image. | |
6769 | (clear_image_cache): Clear current matrices if any image was | |
6770 | freed. | |
6771 | ||
6772 | * xterm.c (XTread_socket): Set inhibit_busy_cursor. | |
6773 | ||
6774 | * xfns.c (x_set_cursor): New. | |
6775 | (Fx_display_busy_cursor): New. | |
6776 | (Fx_undisplay_busy_cursor): New. | |
6777 | ||
6778 | * xterm.h (struct x_output): Add busy_cursor. | |
6779 | ||
6780 | * xfns.c (Vx_busy_pointer_shape): New. | |
6781 | (x_set_mouse_color): Create busy cursor. | |
6782 | ||
6783 | * process.c (wait_reading_process_input): Show and hide busy | |
6784 | cursor. | |
6785 | ||
6786 | * keyboard.c (command_loop_1): Display busy cursor. | |
6787 | ||
6788 | * eval.c (Fsignal): Hide busy cursor. | |
6789 | ||
6790 | * buffer.c (set_buffer_internal): Don't set | |
6791 | windows_or_buffers_changed. | |
6792 | ||
6793 | * xterm.c (redo_mouse_highlight): New. | |
6794 | ||
6795 | 1998-11-04 Gerd Moellmann <gerd@gnu.org> | |
6796 | ||
26901792 DL |
6797 | * xfns.c (x_create_x_image_and_pixmap): Add depth parameter. |
6798 | (x_build_heuritic_mask): New. | |
6799 | (lookup_image): Call it. | |
6800 | ||
6801 | * xterm.c (note_toolbar_highlight): Always set up help_echo. | |
6802 | (previous_help_echo): New. | |
6803 | (XTread_socket): Generate help event with nil message when | |
6804 | leaving a region with help-echo. | |
6805 | (note_mouse_highlight): Handle `help-echo' over text. | |
6806 | (XTread_socket): Dispatch VisibilityNotify, CirculateNotify, | |
6807 | CirculateRequest. | |
6808 | (clear_mouse_face): Don't clear if tooltip is shown. | |
6809 | (XTread_socket): Redo mouse-highlight after tooltip is gone. | |
6810 | Avoid SET_FRAME_GARBAGED when tooltip is mapped. | |
6811 | ||
6812 | * keyboard.c (Vshow_help_function): New. | |
6813 | (read_char): Use it. | |
6814 | ||
6815 | 1998-11-03 Gerd Moellmann <gerd@gnu.org> | |
6816 | ||
6817 | * xfns.c (x_create_tip_frame): New. | |
6818 | (Fx_show_tip): New. | |
6819 | (Fx_hide_tip): New. | |
6820 | ||
6821 | * xterm.c (x_destroy_window): Handle case that we don't have | |
6822 | a widget. | |
6823 | ||
6824 | * dispextern.h (struct glyph_row): Rename no_marginal_areas_p | |
6825 | to full_width_p. Add internal_border_p. | |
6826 | ||
6827 | 1998-11-02 Gerd Moellmann <gerd@gnu.org> | |
6828 | ||
6829 | * xterm.c (note_mode_line_highlight): Check the charpos of | |
6830 | the glyph under the mouse pointer before accessing text | |
6831 | properties at that position. | |
6832 | ||
6833 | 1998-11-01 Gerd Moellmann <gerd@gnu.org> | |
6834 | ||
6835 | * xterm.c (x_draw_image_relief): Handle toolbar_button_relief. | |
6836 | ||
6837 | * xdisp.c (auto-raise-toolbar-buttons): New. | |
6838 | (build_desired_toolbar_string): Handle the flag. | |
6839 | (toolbar-button-margin): New. | |
6840 | (toolbar-button-relief): New. | |
6841 | (build_desired_toolbar_string): Use margin and relief. | |
6842 | ||
6843 | * xterm.c (x_set_toolkit_scroll_bar_thumb): Remove workaround | |
6844 | for FreeBSD. | |
6845 | (note_mode_line_highlight): New. | |
6846 | (note_mouse_highlight): Call it. | |
6847 | ||
6848 | 1998-10-31 Gerd Moellmann <gerd@gnu.org> | |
6849 | ||
6850 | * s/freebsd.h (NARROWPROTO): New. | |
6851 | ||
6852 | * xdisp.c (display_string): New parameter face_string. | |
6853 | (display_mode_element): When displaying a symbol with a string | |
6854 | value, use text properties from the symbol's default value, maybe. | |
6855 | ||
6856 | * xrdb.c (x_load_resources): Add font defaults for menus and | |
6857 | dialogs. | |
6858 | ||
6859 | 1998-10-30 Gerd Moellmann <gerd@gnu.org> | |
6860 | ||
6861 | * xfns.c (Fx_create_frame): Try 12pt Courier font first. | |
6862 | ||
6863 | 1998-10-29 Gerd Moellmann <gerd@gnu.org> | |
6864 | ||
6865 | * xterm.c (x_produce_glyphs): Fix bug causing glyphs to be | |
6866 | produced for characters with codes < 32 under certain | |
6867 | circumstances. | |
6868 | ||
6869 | * xdisp.c (redisplay_window): Handle values of PT in front | |
6870 | of invisible, intangible text. | |
6871 | (try_window_id): Set overlay_arrow_seen to zero before | |
6872 | displaying lines. | |
6873 | (display_mode_element): Assign to glyphs written for a mode | |
6874 | line spec `%x' as object the Lisp format string, as position | |
6875 | the position of the `%' in that string. | |
6876 | (display_string): If displaying a C string, optionally get | |
6877 | the face to use from a Lisp string. | |
6878 | ||
6879 | * xterm.c (expose_window_tree): Include mode line height. | |
6880 | ||
6881 | * xfns.c (Fx_create_frame): Add toolbar height to frame height. | |
6882 | ||
6883 | 1998-10-27 Gerd Moellmann <gerd@gnu.org> | |
6884 | ||
6885 | * xterm.c (note_mouse_highlight): Change mouse pointer shape | |
6886 | over mode line. | |
6887 | ||
6888 | 1998-10-26 Gerd Moellmann <gerd@gnu.org> | |
6889 | ||
6890 | * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT. | |
6891 | ||
6892 | * xdisp.c (redisplay_window): If mode line height has changed, | |
6893 | arrange for a thorough immediate redisplay using the correct mode | |
6894 | line height. | |
6895 | (window_box_height): Use CURRENT_MODE_LINE_HEIGHT. | |
6896 | ||
6897 | * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New. | |
6898 | (CURRENT_MODE_LINE_HEIGHT): New. | |
6899 | (DESIRED_MODE_LINE_HEIGHT): New. | |
6900 | ||
6901 | * keyboard.c (make_lispy_event): Add string and string position | |
6902 | info to mouse-click events. | |
6903 | (read_key_sequence): Handle `local-map' property of mode line | |
6904 | strings. | |
6905 | ||
6906 | * keyboard.h (POSN_STRING): New. | |
6907 | ||
6908 | 1998-10-25 Gerd Moellmann <gerd@gnu.org> | |
6909 | ||
6910 | * dispnew.c (mode_line_string): Mew. | |
6911 | ||
6912 | * xterm.c (xt_action_hook): New. | |
6913 | (x_create_toolkit_scroll_bar): Add action hook. | |
6914 | (xm_scroll_callback): Implement dragging. | |
6915 | ||
6916 | * keyboard.c (Qend_scroll): New. | |
6917 | (scroll_bar_parts): Add it. | |
6918 | ||
6919 | * termhooks.h (scroll_bar_end_scroll): New. | |
6920 | ||
6921 | * xterm.c (XTread_socket): Bug fix. | |
6922 | ||
6923 | 1998-10-24 Gerd Moellmann <gerd@gnu.org> | |
6924 | ||
6925 | * xdisp.c (redisplay_window): Finish scroll bars after | |
6926 | redisplaying toolbar. | |
6927 | ||
6928 | * keyboard.c (scroll_bar_parts): Add Qtop and Qbottom. | |
6929 | (syms_of_keyboard): Add Qbottom. | |
6930 | ||
6931 | * termhooks.h (scroll_bar_to_top): New. | |
6932 | (scroll_bar_to_bottom): New. | |
6933 | ||
6934 | * xdisp.c (redisplay_window): Always resize toolbar window if | |
6935 | auto_resize_toolbar_p is non-zero. | |
6936 | (auto_resize_toolbar_p): Renamed from auto_resize_toolbar. | |
6937 | (window_box): New. | |
6938 | (window_box_height): New. | |
6939 | (window_box_width): New. | |
6940 | (window_box_left): New. | |
6941 | (window_box_right): New. | |
6942 | (window_box_edges): New. | |
6943 | ||
6944 | 1998-10-23 Gerd Moellmann <gerd@gnu.org> | |
6945 | ||
6946 | * xterm.c (x_set_toolkit_scroll_bar_thumb): Kluge for call to | |
6947 | XawScrollbarSetThumb in FreeBSD. | |
6948 | (x_create_toolkit_scroll_bar): Set resource "beNiceToColormap" | |
6949 | to true. | |
6950 | ||
6951 | * window.c (get_phys_cursor_glyph): Return null if cursor vpos | |
6952 | is out of range. | |
6953 | ||
6954 | * xterm.c (x_create_toolkit_scroll_bar): Set scroll_bar_pixel. | |
6955 | (x_term_init): Initialize it. | |
6956 | ||
6957 | * xterm.h (struct x_display_info): Add scroll_bar_pixel. | |
6958 | ||
6959 | * xterm.c (x_create_toolkit_scroll_bar): Set LessTif scroll bar's | |
6960 | cursor. | |
6961 | ||
6962 | 1998-10-22 Gerd Moellmann <gerd@gnu.org> | |
6963 | ||
6964 | * keyboard.c (make_lispy_event): Handle scroll_bar_click | |
6965 | differently when using toolkit scroll bars. | |
6966 | ||
6967 | * xterm.c (x_send_scroll_bar_event): New. | |
6968 | (x_scroll_bar_to_input_event): New. | |
6969 | (xaw3d_scroll_callback): New. | |
6970 | (xaw3d_jump_callback): New. | |
6971 | (xm_scroll_callback): New. | |
6972 | (x_toolkit_scroll_p): New. | |
6973 | (XTread_socket): Handle scroll bar client message. | |
6974 | (x_term_init): Initialize Xatom_Scrollbar. | |
6975 | (x_scroll_bar_create): Set cursor. | |
6976 | (xm_scroll_callback): | |
6977 | (x_create_toolkit_scroll_bar): New. | |
6978 | (x_set_toolkit_scroll_bar_thumb): New. | |
6979 | (x_scroll_bar_create): Call x_create_toolkit_scroll_bar. | |
6980 | (XTset_vertical_scroll_bar): Call x_set_toolkit_scroll_bar_thumb. | |
6981 | ||
6982 | * xterm.h (struct x_display_info): Add Xatom_Scrollbar. | |
6983 | ||
6984 | 1998-10-21 Gerd Moellmann <gerd@gnu.org> | |
6985 | ||
6986 | * xterm.c (x_scroll_bar_remove): Handle toolkit scroll bars. | |
6987 | (XTread_socket): Don't handle mouse button events for scroll bars | |
6988 | if using toolkit scroll bars. | |
6989 | (XTset_vertical_scroll_bar): Set thumb size and position for | |
6990 | Athena scroll bar. | |
6991 | ||
6992 | * xterm.h (scroll_bar): Add x_widget_low and x_widget_high. | |
6993 | ||
6994 | * xterm.c (XTread_socket): Dispatch expose event to widget | |
6995 | if using toolkit scroll bars. | |
6996 | (x_scroll_bar_expose): Make no-op for toolkit scroll bars. | |
6997 | (x_scroll_bar_create): Create and show a scroll bar widget | |
6998 | if using toolkit scroll bars. | |
6999 | (x_scroll_bar_move): Handle tookit scroll bars. | |
7000 | ||
7001 | * Makefile.in (LIBW): Use Xaw3d if present. | |
7002 | ||
7003 | * configure.in (USE_TOOLKIT_SCROLL_BARS): New. | |
7004 | (HAVE_XAW3D): New. | |
7005 | ||
7006 | * config.in (USE_TOOLKIT_SCROLL_BARS): New. | |
7007 | (HAVE_XAW3D): New. | |
7008 | ||
7009 | * xterm.c (XTset_vertical_scroll_bar): Correct position of | |
7010 | right vertical scroll bar. | |
7011 | ||
7012 | 1998-10-20 Gerd Moellmann <gerd@gnu.org> | |
7013 | ||
7014 | * xfns.c (xpm_load): Support reading XPM images from string | |
7015 | buffers containing data in the same format as an XPM file. | |
7016 | Support `:color-symbols'. | |
7017 | (xpm_format): Add `:data'. | |
7018 | (xpm_keyword_index): Add XPM_DATA. | |
7019 | (syms_of_xfns): Add `:color-symbols'. | |
7020 | (xpm_keyword_index): Add XPM_COLOR_SYMBOLS. | |
7021 | (xpm_valid_color_symbols_p): New. | |
7022 | (xpm_image_p): Call it. | |
7023 | ||
7024 | * xdisp.c (build_desired_toolbar_string): Add `:algorithm' | |
7025 | attribute to the image if item is not enabled. | |
7026 | ||
7027 | * xfns.c (x_laplace): New. | |
7028 | (x_laplace_read_row): New. | |
7029 | (x_laplace_write_row): New. | |
7030 | (lookup_image): Handle common image attributes here. New | |
7031 | attribute `:algorithm'. | |
7032 | ||
7033 | * xfaces.c (clear_face_cache): Call clear_image_cache. | |
7034 | ||
7035 | * xterm.c (x_inverted_image_mask): Removed. | |
7036 | (x_draw_image_foreground_1): New. | |
7037 | (x_draw_image_glyph_string): Draw images with mask to a temporary | |
7038 | pixmap to reduce flickering. | |
7039 | ||
7040 | * xdisp.c (redisplay_toolbar): Handle auto-resize-toolbars. | |
7041 | (display_toolbar_line): Remove parameter `margin'. | |
7042 | ||
7043 | 1998-10-19 Gerd Moellmann <gerd@gnu.org> | |
7044 | ||
7045 | * xdisp.c (toolbar_lines_needed): New. | |
7046 | (auto-resize-toolbars): New. | |
7047 | ||
7048 | * xfns.c (cache_image): Correct call to xrealloc. | |
7049 | ||
7050 | * dispnew.c (Fset_toolbar_height): Removed. | |
7051 | ||
7052 | * xdisp.c (init_xdisp): Use FRAME_TOP_MARGIN instead of | |
7053 | FRAME_MENU_BAR_LINES. | |
7054 | ||
7055 | * window.c (Fdelete_other_windows): Use FRAME_TOP_MARGIN | |
7056 | instead of FRAME_MENU_BAR_LINES. | |
7057 | (check_frame_size): Ditto. | |
7058 | ||
7059 | * dispnew.c (adjust_frame_glyphs_initially): Use FRAME_TOP_MARGIN | |
7060 | instead of FRAME_MENU_BAR_LINES. | |
7061 | (adjust_frame_glyphs_for_frame_redisplay): Ditto. | |
7062 | (build_frame_matrix): Ditto. | |
7063 | (change_frame_size_1): Ditto. | |
7064 | ||
7065 | * frame.h (FRAME_TOOLBAR_LINES): New. | |
7066 | (FRAME_TOP_MARGIN): New. | |
7067 | ||
7068 | * window.c (struct save_window_data): Add frame_toolbar_lines. | |
7069 | (Fset_window_configuration): Handle toolbar lines. | |
7070 | (Fcurrent_window_configuration): Save toolbar lines. | |
7071 | ||
7072 | * frame.c (syms_of_frame_1): Add Qtoolbar_lines. | |
7073 | ||
7074 | * xfns.c (Fx_create_frame): Add default parameter for toolbar. | |
7075 | ||
7076 | * frame.h (struct frame): Rename top_margin to toolbar_lines. | |
7077 | ||
7078 | * xfns.c (x_frame_parms): Add `toolbar-lines'. | |
7079 | (x_set_toolbar_lines): New. | |
7080 | ||
7081 | * keyboard.c (cmd_error_internal): Bug fix. | |
7082 | ||
7083 | * xterm.c: Remove double include of syssignal.h. | |
7084 | ||
7085 | 1998-10-18 Gerd Moellmann <gerd@gnu.org> | |
7086 | ||
7087 | * xterm.c (x_toolbar_item): New. | |
7088 | (x_handle_toolbar_click): Use it. | |
7089 | (note_toolbar_highlight): Use it. | |
7090 | ||
7091 | * keyboard.c (syms_of_keyboard): Staticpro toolbar_item_properties | |
7092 | and toolbar_items_vectors. | |
7093 | ||
7094 | * xterm.c (help_echo): New. | |
7095 | (draw_glyphs_face): Add DRAW_IMAGE_RAISED and DRAW_IMAGE_SUNKEN. | |
7096 | (x_set_glyph_string_gc): Handle them. | |
7097 | (x_after_update_window_line): Don't do anything in pseudo-windows. | |
7098 | (x_produce_image_glyph): Take image margin and face relief into | |
7099 | account. | |
7100 | (x_get_glyph_string_clip_rect): Handle pseudo-windows. | |
7101 | (x_draw_glyph_string_background): Optimize case when face has | |
7102 | relief. | |
7103 | (x_setup_relief_color): Take frame instead of glyph string | |
7104 | parameter. | |
7105 | (x_draw_relief_rect): New. | |
7106 | (x_draw_glyph_string_relief): Call it. | |
7107 | (x_draw_image_glyph_string_foreground): Handle margin and image | |
7108 | relief. | |
7109 | (x_draw_image_glyph_string_background): Ditto. | |
7110 | (expose_frame): Redraw toolbar window. | |
7111 | (expose_window): Don't draw cursor for pseudo-windows. | |
7112 | (x_y_to_hpos_vpos): Handle pseudo-windows. | |
7113 | (frame_to_window_pixel_xy): New. | |
7114 | (note_mouse_highlight): Call note_toolbar_highlight. | |
7115 | (x_handle_toolbar_click): New. | |
7116 | (note_toolbar_highlight): New. | |
7117 | (show_mouse_face): Change int parameter `hl' to parameter of | |
7118 | type enum draw_glyphs_face. Handle image highlighting. | |
7119 | (XTread_socket): Return a HELP_EVENT input event if help_echo is | |
7120 | non-nil. Use x_handle_toolbar_click. | |
7121 | ||
7122 | * termhooks.h (event_kind): Add HELP_EVENT, TOOLBAR_EVENT. | |
7123 | ||
7124 | * xfns.c (image_value_type): Add IMAGE_INTEGER_VALUE, | |
7125 | IMAGE_BOOL_VALUE. | |
7126 | (parse_image_spec): Handle them. | |
7127 | (image_spec_value): Additional parameter found. | |
7128 | (free_image): Remove image from the vector `images' of the | |
7129 | image cache. | |
7130 | (clear_image_cache): Additional parameter force_p. | |
7131 | (Fclear_image_cache): New. | |
7132 | (x_find_image_file): New. | |
7133 | (xbm_load): Handle `:margin' and `:relief'. Use | |
7134 | x_find_image_file. | |
7135 | (xpm_load): Likewise. | |
7136 | (pbm_load): Likewise. | |
7137 | (jpeg_load): Likewise. | |
7138 | (tiff_load): Likewise. | |
7139 | (gif_load): Likewise. | |
7140 | ||
7141 | * keyboard.c (Qhelp_echo): New symbol. | |
7142 | (read_char): Handle `toolbar' and `help_echo' events. | |
7143 | (kbd_buffer_get_event): Handle HELP_ECHO input event. | |
7144 | (make_lispy_event): Handle TOOLBAR_EVENT. | |
7145 | (toolbar_items): New. | |
7146 | (process_toolbar_item): New. | |
7147 | (PROP): New. | |
7148 | (init_toolbar_items): New. | |
7149 | (append_toolbar_item): New. | |
7150 | (read_char_x_menu_prompt): Handle `toolbar' event. | |
7151 | (read_key_sequence): Ditto. | |
7152 | ||
7153 | * xfaces.c (Qtoolbar): New. | |
7154 | (realize_basic_faces): Realize `toolbar' face. | |
7155 | (face_at_string_position): Remove parameter modeline_p, add | |
7156 | base_face_id. | |
7157 | ||
7158 | * xfns.c (xbm_load_image_from_file): Don't use Xmu function | |
7159 | to read data. | |
7160 | ||
7161 | 1998-10-17 Gerd Moellmann <gerd@gnu.org> | |
7162 | ||
7163 | * xdisp.c (init_iterator): Replace parameter modeline_p with | |
7164 | base_face_id. | |
7165 | (next_element_from_string): Call get_next_display_element | |
7166 | recursively after handling text properties. | |
7167 | (prepare_menu_bars): Call update_toolbar. | |
7168 | (update_toolbar): New. | |
7169 | (build_desired_toolbar_string): New. | |
7170 | (display_toolbar_line): New. | |
7171 | (redisplay_toolbar): New. | |
7172 | (toolbar_item_info): New. | |
7173 | (redisplay_window): Call redisplay_toolbar. | |
7174 | (Fdump_toolbar_row): New. Defined if compiled with GLYPH_DEBUG. | |
7175 | ||
7176 | * dispnew.c (clear_current_matrices): Clear matrices of toolbar | |
7177 | window. | |
7178 | (clear_desired_matrices): Ditto. | |
7179 | (adjust_frame_glyphs_for_window_redisplay): Make toolbar window. | |
7180 | (free_glyphs): Free matrices of toolbar window. | |
7181 | (update_frame): Update toolbar window. | |
7182 | (change_frame_size_1): Take toolbar into account. | |
7183 | (Fset_toolbar_height): New. | |
7184 | ||
7185 | * dispextern.h (struct it): Remove member modeline_p, add | |
7186 | base_face_id. | |
7187 | (struct image): Add members relief and margin. | |
7188 | (IMAGE_ASCENT): Include margin in height. | |
7189 | ||
7190 | 1998-10-14 Gerd Moellmann <gerd@gnu.org> | |
7191 | ||
7192 | * xfns.c (Fclear_image_cache): New. | |
7193 | ||
7194 | * xfaces.c (realize_basic_faces): Realize toolbar face. | |
7195 | (face_at_string_position): Remove parameter modeline_p, add | |
7196 | base_face_id. | |
7197 | ||
7198 | * dispextern.h (enum face_id): Add TOOLBAR_FACE_ID. | |
7199 | ||
7200 | 1998-10-13 Gerd Moellmann <gerd@gnu.org> | |
7201 | ||
7202 | * keyboard.c (syms_of_keyboard): Intern `:help'. | |
7203 | ||
7204 | 1998-10-12 Gerd Moellmann <gerd@gnu.org> | |
7205 | ||
7206 | * xterm.c (note_toolbar_highlight): New. | |
7207 | (note_mouse_highlight): Call it. | |
7208 | ||
7209 | * window.c (window_from_coordinates): Additional parameter toolbar_p. | |
7210 | (coordinates_in_window): Handle toolbar window. | |
7211 | ||
7212 | * keyboard.c (toolbar_items): New. | |
7213 | (process_toolbar_item): New. | |
7214 | (parse_toolbar_item): New. | |
7215 | (init_toolbar_items): New. | |
7216 | (append_toolbar_item): New. | |
7217 | ||
7218 | * dispextern.h (enum toolbar_item_idx): New. | |
7219 | (enum toolbar_item_image): New. | |
7220 | ||
7221 | * frame.h (struct frame): Add toolbar-related members. | |
7222 | ||
7223 | * xfaces.c (face_at_string_position): Remove assertion that | |
7224 | current_buffer == window's buffer. This is not the case when | |
7225 | called for the toolbar window. | |
7226 | ||
7227 | * frame.c (make_frame): Initialize toolbar members. | |
7228 | ||
7229 | * alloc.c (mark_object): Mark toolbar data of frames. | |
7230 | ||
7231 | * frame.h (struct frame): Add toolbar-related members | |
7232 | toolbar_window, desired_toolbar_items, current_toolbar_items, | |
7233 | desired_toolbar_string, current_toolbar_string, | |
7234 | n_desired_toolbar_items, n_current_toolbar_items. Add | |
7235 | window_height. | |
7236 | ||
7237 | * xterm.c (x_after_update_window_line): Don't draw bitmap | |
7238 | areas for pseudo-windows. | |
7239 | (expose_frame): Handle toolbar window. | |
7240 | (expose_window): Don't do cursor stuff for pseudo-windows. | |
7241 | ||
7242 | * xdisp.c (display_menu_bar): Correct calls to init_iterator. | |
7243 | ||
7244 | 1998-10-11 Gerd Moellmann <gerd@gnu.org> | |
7245 | ||
7246 | * frame.c (make_frame): Initialize toolbar_window. | |
7247 | ||
7248 | * alloc.c (mark_object): Make the toolbar window. | |
7249 | ||
7250 | * dispnew.c (update_frame): Update frame's toolbar_window. | |
7251 | (clear_current_matrices): Likewise. | |
7252 | (clear_desired_matrices): Likewise. | |
7253 | (adjust_frame_glyphs_for_window_redisplay): Make toolbar_window. | |
7254 | (free_glyphs): Free the toolbar window and its matrices. | |
7255 | ||
7256 | * frame.h (struct frame): Add toolbar_window. | |
7257 | ||
7258 | * xterm.c (x_draw_glyph_string_relief): Handle mouse-face | |
7259 | with relief. | |
7260 | ||
7261 | 1998-10-10 Gerd Moellmann <gerd@gnu.org> | |
7262 | ||
7263 | * dispnew.c (buffer_posn_from_coords): Don't screw up if | |
7264 | window start is not in the range BEGV..ZV. | |
7265 | ||
7266 | 1998-10-09 Gerd Moellmann <gerd@gnu.org> | |
7267 | ||
7268 | * xdisp.c (try_scrolling): Experimentally handle the case | |
7269 | that scroll-preserve-screen-position is set to `always'. | |
7270 | ||
7271 | * window.c (Vscroll_preserve_screen_position): Replacement for | |
7272 | scroll_preserve_screen_position. | |
7273 | ||
7274 | 1998-10-08 Gerd Moellmann <gerd@gnu.org> | |
7275 | ||
7276 | * dispnew.c: Don't initialize auto structs; the HP/UX compiler | |
7277 | doesn't like it. | |
7278 | * xdisp.c: Ditto. | |
7279 | ||
7280 | * xdisp.c (make_cursor_line_fully_visible): Adjust this_line_y. | |
7281 | ||
7282 | 1998-10-06 Gerd Moellmann <gerd@gnu.org> | |
7283 | ||
7284 | * minibuf.c (Fminibuffer_complete_word): Fix computation of | |
7285 | i_byte when prompts are inserted into minibuffers. | |
7286 | ||
7287 | * dispextern.h (FRAME_INTERNAL_BORDER_WIDTH_SAFE): New. | |
7288 | (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Use it. | |
7289 | (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): Ditto. | |
7290 | ||
7291 | 1998-10-04 Gerd Moellmann <gerd@gnu.org> | |
7292 | ||
7293 | * xdisp.c (make_cursor_line_fully_visible): New. | |
7294 | (try_scrolling): New. | |
7295 | (redisplay_window): Move scrolling code to try_scrolling. | |
7296 | (make_cursor_line_fully_visible): Handle case of window too small | |
7297 | to show a single line. | |
7298 | (redisplay_window): Case forced window start---use | |
7299 | make_cursor_line_fully_visible. | |
7300 | (redisplay_window): Case cursor movement via current matrix. | |
7301 | If ending up on a partially visible line, make it fully visible | |
7302 | instead of recentering. | |
7303 | (try_scrolling): Additional parameter scroll_smoothly. | |
7304 | ||
7305 | * xterm.c (x_draw_bitmap): Don't XClearArea under the pixmap. | |
7306 | ||
7307 | 1998-09-28 Gerd Moellmann <gerd@gnu.org> | |
7308 | ||
7309 | * window.c (window_scroll_pixel_based): Bug fix: vpos used | |
7310 | instead of y-position for scroll-preserved-screen-position. | |
7311 | ||
7312 | 1998-09-07 Gerd Moellmann <gerd@gnu.org> | |
7313 | ||
7314 | * dispnew.c (update_frame_line): If current row is not enabled, | |
7315 | write the whole line. | |
7316 | ||
7317 | 1998-09-06 Gerd Moellmann <gerd@gnu.org> | |
7318 | ||
7319 | * lisp.h (HAVE_FACES): Removed. | |
7320 | ||
7321 | * dispextern.h (HAVE_FACES): Removed. | |
7322 | ||
7323 | * config.in (HAVE_FACES): Removed. | |
7324 | ||
7325 | * dispnew.c (HAVE_FACES): Removed. | |
7326 | ||
7327 | * xdisp.c (HAVE_FACES): Removed. | |
7328 | ||
7329 | * xfaces.c (HAVE_FACES): Removed. | |
7330 | ||
7331 | 1998-09-05 Gerd Moellmann <gerd@gnu.org> | |
7332 | ||
7333 | * xdisp.c (init_iterator): If face_change_count is non-zero, | |
7334 | free realized faces. | |
7335 | ||
7336 | * xfaces.c (free_all_realized_faces): Make it externally visible. | |
7337 | (Finternal_set_lisp_face_attribute): Increment | |
7338 | windows_or_buffers_changed. | |
7339 | ||
7340 | * dispnew.c (direct_output_for_insert): Give up if | |
7341 | face_change_count is non-zero. | |
7342 | (direct_output_forward_char): Ditto. | |
7343 | ||
7344 | * xfaces.c (face_change_count): New. | |
7345 | ||
7346 | 1998-09-04 Gerd Moellmann <gerd@gnu.org> | |
7347 | ||
7348 | * xterm.c (x_draw_bar_cursor): Don't draw if cursor hpos is out | |
7349 | of range. | |
7350 | ||
7351 | 1998-09-03 Gerd Moellmann <gerd@gnu.org> | |
7352 | ||
7353 | * term.c (Ftty_display_color_p): New. | |
7354 | ||
7355 | 1998-09-02 Gerd Moellmann <gerd@gnu.org> | |
7356 | ||
7357 | * xfaces.c (Ftty_defined_colors): New. | |
7358 | ||
7359 | * xterm.c (x_produce_glyphs): Fix computation of | |
7360 | contains_overlapping_glyphs_p for ASCII. | |
7361 | ||
7362 | * dispnew.c (Fshow_cursor): Don't change cursor state while | |
7363 | redisplaying. | |
7364 | (direct_output_for_insert): If a glyph with lbearing or rbearing | |
7365 | is among the new glyphs, set row flag contains_overlapping_glyph_p. | |
7366 | ||
7367 | 1998-09-01 Gerd Moellmann <gerd@gnu.org> | |
7368 | ||
7369 | * term.c (OUTPUT_IF): Make replacement text have statement form. | |
7370 | (OUTPUT1_IF): Ditto. | |
7371 | (TS_italic_mode, TS_end_italic_mode): Removed. | |
7372 | (TS_bold_mode): Removed. | |
7373 | (TS_underscore_mode, TS_end_underscore_mode): Removed. | |
7374 | (TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New. | |
7375 | (TS_enter_reverse_mode): New. | |
7376 | (TS_enter_underline_mode, TS_exit_underline_mode): New. | |
7377 | (TN_magic_cookie_glitch_ul): New. | |
7378 | (TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New. | |
7379 | (TS_exit_attribute_mode): New. | |
7380 | (TN_max_colors, TN_max_pairs, TS_orig_pairs): New. | |
7381 | (TS_set_foreground, TS_set_background): New. | |
7382 | (reset_terminal_modes): Switch colors back to default. | |
7383 | (write_glyphs): Turn face on before writing text, turn it off | |
7384 | afterwards. | |
7385 | (insert_glyphs): Ditto. | |
7386 | (term_init): Initialize new terminal capability variables. | |
7387 | (turn_on_face): Turn a face on. | |
7388 | (turn_off_face): Turn a face off. | |
7389 | ||
7390 | * lisp.h (MAKE_GLYPH): Remove test for frame type. | |
7391 | (GLYPH_CHAR): Ditto. | |
7392 | (GLYPH_FACE): Ditto. | |
7393 | ||
7394 | * xfaces.c (Vface_tty_color_alist): New. | |
7395 | (face-register-tty-color): New. | |
7396 | (face-clear-tty-colors): New. | |
7397 | ||
7398 | * dispextern.h (FACE_TTY_DEFAULT_COLOR): New. | |
7399 | (struct it): Remove member faces_p since we now always have faces. | |
7400 | ||
7401 | 1998-08-31 Gerd Moellmann <gerd@gnu.org> | |
7402 | ||
7403 | * dispextern.h (struct face): Add tty appearance flags. | |
7404 | ||
7405 | * xdisp.c (init_iterator): Always handle faces. | |
7406 | (extend_face_to_end_of_line): Handle tty frames. | |
7407 | ||
7408 | * dispnew.c (clear_glyph_matrix): Allow a null matrix to be | |
7409 | passed in. | |
7410 | ||
7411 | 1998-08-30 Gerd Moellmann <gerd@gnu.org> | |
7412 | ||
7413 | * xfaces.c (realize_default_face): Use empty strings to indicate | |
7414 | that the face should use the default foreground/background | |
7415 | color of the terminal. Fill font-related attributes with | |
7416 | appropriate values for tty frames. | |
7417 | ||
7418 | * emacs.c (main): Call syms_of_xfaces before init_window_once. | |
7419 | ||
7420 | * xfaces.c (realize_default_face): If face `default' is not | |
7421 | yet known, create it. | |
7422 | ||
7423 | * frame.c (make_terminal_frame): Call init_frame_faces | |
7424 | unconditionally. | |
7425 | ||
7426 | * xfaces.c (init_frame_faces): Make it work for tty frames. | |
7427 | (free_frame_faces): Ditto. | |
7428 | (clear_face_cache): Ditto. | |
7429 | (recompute_basic_faces): Ditto. | |
7430 | (Fframe_face_alist): Ditto. | |
7431 | (free_realized_face): Ditto. | |
7432 | (prepare_face_for_display): Ditto. | |
7433 | (clear_face_gcs): Ditto. | |
7434 | (lookup_face): Ditto. | |
7435 | (smaller_face): Ditto. | |
7436 | (realize_default_face): Ditto. | |
7437 | (realize_face): Ditto. | |
7438 | (realize_face): Dispatch to functions depending on the frame type. | |
7439 | (realize_x_face): X way of realizing faces. | |
7440 | (realize_tty_face): TTY way of realizing faces. | |
7441 | ||
7442 | 1998-08-29 Gerd Moellmann <gerd@gnu.org> | |
7443 | ||
7444 | * xfaces.c (realize_face): Remove parameter unibyte_registry, | |
7445 | compute it instead. | |
7446 | (lookup_face): Remove local variable unibyte_registry. | |
7447 | ||
7448 | 1998-08-22 Gerd Moellmann <gerd@gnu.org> | |
7449 | ||
7450 | * xterm.c (x_draw_glyph_string_relief): Draw top and bottom lines | |
7451 | 1 pixel longer. | |
7452 | ||
7453 | * xdisp.c (face_before_or_after_it_pos): Fix computation | |
7454 | of face in buffer. | |
7455 | ||
7456 | * editfns.c (make_buffer_string_both): If prompt in buffer, | |
7457 | prevent start > end. | |
7458 | ||
7459 | * indent.c (Fvertical_motion): Set current_buffer to window's | |
7460 | buffer if it isn't already. | |
7461 | ||
7462 | 1998-08-21 Gerd Moellmann <gerd@gnu.org> | |
7463 | ||
7464 | * dispextern.h (GLYPH_DEBUG): Use default 0. | |
7465 | ||
7466 | * xdisp.c (it_props): New member `smaller'. | |
7467 | (init_iterator): Initialize it. | |
7468 | (Qsmaller): New. | |
7469 | (push_it): Save value of `smaller' value on the stack. | |
7470 | (pop_it): Restore `smaller' from the stack. | |
7471 | (handle_smaller_prop): New. | |
7472 | (handle_face_prop): Use `smaller' text property to select a | |
7473 | suitable face. | |
7474 | ||
7475 | * dispextern.h (SMALLER_PROP_IDX): New. | |
7476 | (struct it): Add member `smaller'. | |
7477 | ||
7478 | * xfaces.c (smaller_face): New. | |
7479 | ||
7480 | * frame.h (FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths. | |
7481 | ||
7482 | * dispnew.c (allocate_matrices_for_window_redisplay): Compute | |
7483 | total pixel width of window differently. | |
7484 | ||
7485 | * xdisp.c (init_iterator): Compute width of mode line differently. | |
7486 | ||
7487 | * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract width | |
7488 | of bitmap areas. | |
7489 | ||
7490 | * window.c (Fsplit_window): Include width of bitmap areas in | |
7491 | window width. | |
7492 | (window_internal_width): Subtract width of bitmap areas from | |
7493 | total width. | |
7494 | ||
7495 | 1998-08-18 Gerd Moellmann <gerd@gnu.org> | |
7496 | ||
7497 | * xdisp.c: Functions reordered for better readability. | |
7498 | ||
7499 | * dispnew.c (update_text_area): Handle glyphs with arbitrary | |
7500 | lbearing. | |
7501 | (update_window_tree): Parameter no_scrolling_p removed. | |
7502 | (update_single_window): Ditto. | |
7503 | ||
7504 | * xterm.c (x_get_char_font_and_encoding): Renamed to | |
7505 | x_get_char_face_and_encoding. | |
7506 | ||
7507 | * dispnew.c (update_text_area): Don't call get_glyph_overhangs | |
7508 | if end of current row reached. | |
7509 | ||
7510 | * xterm.c (x_get_glyph_face_and_encoding): New. | |
7511 | (x_get_glyph_overhangs): Call it. | |
7512 | ||
7513 | * xdisp.c (Qshow_trailing_whitespace): New. | |
7514 | (Qtrailing_whitespace): New. | |
7515 | (enum prop_handled): New. | |
7516 | (struct props, it_props): New. | |
7517 | (next_overlay_change): New. Works like Fnext_overlay_change | |
7518 | but doesn't use xmalloc. | |
7519 | (handle_stop): Restructured. | |
7520 | (face_before_or_after_it_pos): Case iteration over a string: fix | |
7521 | handling of face before current position. | |
7522 | ||
7523 | 1998-08-16 Gerd Moellmann <gerd@gnu.org> | |
7524 | ||
7525 | * dispnew.c (adjust_glyph_matrix): Don't optimize matrix | |
7526 | reallocation matrix if fonts_changed_p. | |
7527 | (update_text_area): Handle glyphs with lbearing. | |
7528 | ||
7529 | 1998-08-14 Gerd Moellmann <gerd@gnu.org> | |
7530 | ||
7531 | * xdisp.c (struct props): New. | |
7532 | (it_props): New. | |
7533 | (compute_prop_info): New. | |
7534 | (handle_stop): New. | |
7535 | ||
7536 | * textprop.c (validate_interval_range): Make it externally | |
7537 | visible. | |
7538 | ||
7539 | * dispnew.c (direct_output_for_insert): Remove calls | |
7540 | to compute_stop_pos. | |
7541 | ||
7542 | * dispextern.h (struct it): Remove check_charpos, | |
7543 | next_overlay_pos. Add what_changes. | |
7544 | ||
7545 | 1998-08-10 Gerd Moellmann <gerd@gnu.org> | |
7546 | ||
7547 | * xterm.c (note_mouse_highlight): Set BEGV_BYTE, ZV_BYTE. | |
7548 | ||
7549 | * xfaces.c (Vx_unibyte_registry_and_encoding): Removed. Use | |
7550 | face_default_registry instead. | |
7551 | ||
7552 | * syntax.c (scan_sexps_forward): Set up syntax table before | |
7553 | jumping to initial state label. | |
7554 | ||
7555 | 1998-08-09 Gerd Moellmann <gerd@gnu.org> | |
7556 | ||
7557 | * dispnew.c (check_matrix_invariants): Handle case of row end pos | |
7558 | >= ZV specially. | |
7559 | ||
7560 | 1998-08-08 Gerd Moellmann <gerd@gnu.org> | |
7561 | ||
7562 | * xdisp.c (redisplay_window): Case cursor movement---if cursor | |
7563 | ends up in partially visible row, try to scroll. Case forced | |
7564 | window start---handle windows not tall enough to show a single | |
7565 | line. | |
7566 | ||
7567 | * window.h (struct window): Member dy renamed vscroll. | |
7568 | ||
7569 | * xterm.c (x_list_fonts): Re-activate suppression of scalable | |
7570 | fonts. | |
7571 | (x_draw_stretch_glyph_string): Set clipping if using GC that | |
7572 | hasn't set it yet. | |
7573 | ||
7574 | * xdisp.c (redisplay_window): Case forced window start - | |
7575 | don't let cursor end on partially visible row. Use desired | |
7576 | matrix to find a suitable PT if it doesn't appear. | |
7577 | (decode_mode_spec): Merged with 20.2.97. | |
7578 | (try_window_reusing_current_matrix): Give up if old or | |
7579 | new display is vscrolled. | |
7580 | (redisplay_window): Reset vscrolling if forced window start, | |
7581 | or if recentering. | |
7582 | ||
7583 | 1998-08-06 Gerd Moellmann <gerd@gnu.org> | |
7584 | ||
7585 | * xfaces.c (realize_default_face): Use the fontset name instead of | |
7586 | the alias for the family attribute of the default face because we | |
7587 | can't easily determine a good alias from fontset-alias-alist. | |
7588 | (face_fontset): Use Fquery_fontset to find the fontset. | |
7589 | (font_list): Additional pattern parameter. | |
7590 | (try_font_list): Ditto. | |
7591 | (set_lface_from_font_name): Set face family from font foundry | |
7592 | and family. | |
7593 | (font_list): If family contains a hyphen, build pattern differently. | |
7594 | ||
7595 | 1998-08-05 Gerd Moellmann <gerd@gnu.org> | |
7596 | ||
7597 | * xfaces.c (free_realized_faces): Increment windows_or_buffers_- | |
7598 | changed instead of setting the frame garbaged. | |
7599 | ||
7600 | * xfaces.c (lface_equal_p): Don't assume equal Lisp types for | |
7601 | all attribute values. This is wrong if values are unspecified, | |
7602 | i.e. nil. | |
7603 | ||
7604 | * xdisp.c (try_window_id): Give up if window start changed. | |
7605 | ||
7606 | * xfaces.c (make_realized_face): Store registry as Lisp object. | |
7607 | (load_face_font_or_fontset): Compute registry of a face | |
7608 | differently. Make it `eq' to Vx_unibyte_registry_and_encoding if | |
7609 | possible. | |
7610 | ||
7611 | * dispextern.h (FACE_SUITABLE_FOR_CHARSET_P): Compare registries | |
7612 | differently. | |
7613 | ||
7614 | * alloc.c (mark_face_cache): Mark the registry member of faces. | |
7615 | ||
7616 | * dispextern.h (struct face): Make registry a Lisp string. | |
7617 | ||
7618 | 1998-08-04 Gerd Moellmann <gerd@gnu.org> | |
7619 | ||
7620 | * xterm.c (x_get_char_font_and_encoding): Additional parameter | |
7621 | multibyte_p. Handle unibyte text. | |
7622 | (x_append_glyph): Set the multibyte_p flag of glyphs. | |
7623 | (x_produce_image_glyph): Ditto. | |
7624 | (x_append_stretch_glyph): Ditto. | |
7625 | (x_produce_glyphs): Handle unibyte text like ASCII. | |
7626 | ||
7627 | * xdisp.c (push_it): Save the multibyte flag of an iterator on the | |
7628 | stack. | |
7629 | (pop_it): Restore it. | |
7630 | (face_before_or_after_it_pos): Handle the case that the string or | |
7631 | buffer is unibyte. | |
7632 | (get_overlay_strings): Set the multibyte flag of the iterator if | |
7633 | the new overlay string is multibyte. | |
7634 | (get_glyph_property): Likewise. | |
7635 | (get_next_display_element): Don't check for charset changes in | |
7636 | unibyte text. | |
7637 | (append_space): Compute face differently for unibyte text. | |
7638 | (extend_face_to_end_of_line): Don't return quickly if face has | |
7639 | stipple. | |
7640 | ||
7641 | * xfaces.c (load_face_font_or_fontset): Store registry and | |
7642 | encoding of the font in the registry member of the face. | |
7643 | (make_realized_face): Additional parameter `registry'. | |
7644 | (free_realized_face): Free the registry of a realized face. | |
7645 | (face_suitable_for_charset_p): Function form of the macro | |
7646 | with the same name in uppercase. | |
7647 | (lookup_face): Use Vx_unibyte_registry_and_encoding if charset < 0. | |
7648 | (choose_face_font): New parameter unibyte_registry. | |
7649 | (choose_face_fontset_font): Ditto. | |
7650 | (realize_default_face): Remember the registry and encoding of | |
7651 | the specified frame font in Vx_unibyte_registry_and_encoding. | |
7652 | (face_at_buffer_position): Handle unibyte. | |
7653 | (face_at_string_position): Likewise. | |
7654 | (realize_face): New parameter unibyte_registry. | |
7655 | (compute_char_face): Handle the unibyte case. | |
7656 | ||
7657 | * dispextern.h (struct glyph): Add bit multibyte_p. | |
7658 | (struct face): New member registry holding the registry and | |
7659 | encoding of the X font of the face. | |
7660 | (FACE_UNIBYTE_P): Value is non-zero if face is for unibye text. | |
7661 | (enum face_id): Add BASIC_FACE_ID_SENTINEL. | |
7662 | (FACE_SUITABLE_FOR_CHARSET_P): Handle charset < 0 meansing unibyte | |
7663 | text. | |
7664 | (struct iterator_stack_entry): Add multibyte_p. | |
7665 | ||
7666 | * xdisp.c (string_pos): Use string_char_to_byte. | |
7667 | (char_charset): Removed. | |
7668 | ||
7669 | 1998-08-03 Gerd Moellmann <gerd@gnu.org> | |
7670 | ||
7671 | * xterm.c (x_draw_image_glyph_string_foreground): Draw a | |
7672 | rectangle for a block cursor over an image without a mask. | |
7673 | (x_stretch_block_cursor): Added. Non-zero means don't draw | |
7674 | a block cursor over a stretch as wide as that stretch. | |
7675 | (x_draw_stretch_glyph_string): Use it. | |
7676 | (x_draw_hollow_cursor): Ditto. | |
7677 | ||
7678 | * minibuf.c (read_minibuf): Use minibuf_prompt instead of prompt. | |
7679 | (read_minibuf): Add front-sticky text property for prompt. | |
7680 | ||
7681 | * xdisp.c (char_charset): Return charset of a character, | |
7682 | depending on whether or not multi-byte characters are enabled. | |
7683 | ||
7684 | * xfaces.c (Fset_face_charset_registry): Removed. | |
7685 | (x_charset_registry): Determine registry from charset plist. | |
7686 | ||
7687 | 1998-08-02 Gerd Moellmann <gerd@gnu.org> | |
7688 | ||
7689 | * xdisp.c (get_next_display_element): Don't check for charset | |
7690 | changes if multi-byte characters are not enabled. | |
7691 | ||
7692 | * xdisp.c (echo_area_display): Use the flush function from the | |
7693 | redisplay interface. | |
7694 | * keyboard.c (detect_input_pending_run_timers): Likewise. | |
7695 | ||
7696 | * dispextern.h (produce_*glyphs_hook): Removed. | |
7697 | * term.c (produce_*glyphs): Ditto. | |
7698 | (cursor_to): Remove pixel position parameters. | |
7699 | ||
7700 | * dispnew.c: Remove hooks for window-based redisplay, introduce | |
7701 | a redisplay interface structure. | |
7702 | ||
7703 | * xterm.c (x_per_char_metric): Return default char metrics if per | |
7704 | char metric exists but contains a zero width. Adobe Courier seems | |
7705 | to contain such characters. | |
7706 | ||
7707 | * xdisp.c (compute_line_metrics): Compute the width of rows | |
7708 | without stopping at glyphs with zero width. | |
7709 | ||
7710 | 1998-08-01 Gerd Moellmann <gerd@gnu.org> | |
7711 | ||
7712 | * xdisp.c (display_mode_line): If nothing was displayed at all, | |
7713 | display a space. | |
7714 | (hscroll_window_tree): Don't subtract 1 from target point if equal | |
7715 | to ZV and window is not the selected window. | |
7716 | ||
7717 | * dispnew.c (check_matrix_invariants): Remove check for window | |
7718 | start at BEGV or after newline. This happens in rare cases | |
7719 | intentionally. | |
7720 | ||
7721 | 1998-07-31 Gerd Moellmann <gerd@gnu.org> | |
7722 | ||
7723 | * xfaces.c (x_charset_registry): Use STRING_BYTES. | |
7724 | (syms_of_xfaces): Add Vface_default_registry. | |
7725 | (x_charset_registry): Use it. | |
7726 | ||
7727 | * xdisp.c (run_window_scroll_functions): Run window scroll functions. | |
7728 | (redisplay_window): Use it. | |
7729 | ||
7730 | * dispnew.c (update_text_area): Handle lbearing of deleted text | |
7731 | by backing up one character. | |
7732 | ||
7733 | 1998-07-30 Gerd Moellmann <gerd@gnu.org> | |
7734 | ||
7735 | * dispnew.c (adjust_glyph_matrix): Use a different check to | |
7736 | decide to do nothing. | |
7737 | ||
7738 | * xfaces.c (face_at_string_position): Additional parameter | |
7739 | mode_line_p. If non-zero, merge with the mode line face | |
7740 | instead of the default face. | |
7741 | * dispextern.h (struct it): Add mode_line_p. | |
7742 | * xdisp.c (init_iterator): Set it. | |
7743 | (compute_face_in_string): Use it. | |
7744 | (face_before_or_after_it_pos): Handle strings. | |
7745 | (get_next_display_element): Don't look for relief end in C strings. | |
7746 | (next_element_from_string): Deliver string position instead of | |
7747 | buffer position. | |
7748 | ||
7749 | * xterm.c (x_flush): Flush X output buffer. | |
7750 | (XTflash): Use it. | |
7751 | ||
7752 | * xfaces.c (lface_from_face_name): Renamed from lface_from_symbol. | |
7753 | Allow strings as face names. | |
7754 | ||
7755 | * xfns.c (forall_images_in_image_cache): Check that frame is | |
7756 | alive. | |
7757 | ||
7758 | * widget.c (EmacsFrameDestroy): Remove call to free_frame_faces; | |
7759 | it's also called from x_destroy_window. Since this function is | |
7760 | called from X, freeing stuff allocated with xmalloc is dangerous | |
7761 | here, anyway. | |
7762 | ||
7763 | * xfaces.c (free_realized_faces): Don't clear current matrices | |
7764 | of a frame being destroyed. | |
7765 | ||
7766 | * frame.c (make_frame): Call set_window_buffer instead of | |
7767 | Fset_window_buffer. | |
7768 | ||
7769 | * window.c (set_window_buffer): Extracted from Fset_window_buffer, | |
7770 | with an additional argument specifying whether or not hooks may | |
7771 | be called. | |
7772 | (Fset_window_buffer): Call it. | |
7773 | ||
7774 | * dispnew.c (clear_desired_matrices): Check that frame has | |
7775 | a valid root window before clearing matrices in the window tree. | |
7776 | (clear_current_matrices): Ditto. | |
7777 | (clear_window_matrices): If GLYPH_DEBUG, check that hchild and | |
7778 | vchild are valid windows if not nil. | |
7779 | ||
7780 | * xfaces.c (merge_face_vector_with_property): Allow :reverse-video | |
7781 | for :inverse-video. | |
7782 | (Finternal_set_lisp_face_attribute): Ditto. | |
7783 | (Finternal_set_lisp_face_attribute_from_resource): Ditto. | |
7784 | (Finternal_get_lisp_face_attribute): Ditto. | |
7785 | (Finternal_lisp_face_attribute_values): Ditto. | |
7786 | (syms_of_xfaces): Define the symbol `:reverse-video'. | |
7787 | ||
7788 | * xdisp.c (get_glyph_property): Renamed from | |
7789 | fill_iterator_from_glyph_property. | |
7790 | (next_element_from_buffer): Handle case that no `glyph' property | |
7791 | was found correctly. | |
7792 | (display_line): Extend face to end of line only if we have faces. | |
7793 | ||
7794 | 1998-07-29 Gerd Moellmann <gerd@gnu.org> | |
7795 | ||
7796 | * dispnew.c (Fshow_cursor): Renamed from blink_cursor. Take | |
7797 | additional window argument. | |
7798 | ||
7799 | * xdisp.c (reseat_at_previous_visible_line_start): Renamed from | |
7800 | set_iterator_to_previous_visible_line_start. | |
7801 | (reseat_at_next_visible_line_start): Likewise. | |
7802 | (compute_stop_pos): Renamed from set_iterator_stop_pos. | |
7803 | (face_before_or_after_it_pos): Renamed from get_face_at_it_pos. | |
7804 | (compute_face_in_buffer): Renamed from | |
7805 | compute_face_at_iterator_position. | |
7806 | (compute_face_in_string): Renamed from | |
7807 | compute_face_at_iterator_string_position. | |
7808 | (get_space_width): Renamed from get_iterator_space_width. | |
7809 | (next_overlay_string): Renamed from | |
7810 | set_iterator_to_next_overlay_string. | |
7811 | (get_overlay_strings): Renamed from | |
7812 | get_overlay_strings_at_iterator_position. | |
7813 | (restore_overlay_strings): Renamed from | |
7814 | setup_overlay_strings_from_glyph_pos. | |
7815 | (restore_dpvec): Renamed from setup_iterator_dpvec_from_glyph_pos. | |
7816 | (init_from_display_pos): Renamed from init_iterator_from_glyph_pos. | |
7817 | (init_to_row_start): Renamed from init_iterator_to_row_start. | |
7818 | (init_to_row_end): Formerly init_iterator_to_next_row_start. | |
7819 | ||
7820 | * xterm.c: Merge with 20.2.97. | |
7821 | (x_produce_glyphs): Use x_append_stretch_glyph for tabs. | |
7822 | ||
7823 | * dispextern.h (struct glyph): Replace text_pos position with | |
7824 | simple charpos. | |
7825 | ||
7826 | * xdisp.c (this_line_start_pos): Use struct text_pos. | |
7827 | (this_line_end_pos): Renamed from .*endpos; use struct text_pos. | |
7828 | (enum move_it_result): Renamed from move_iterator_result. | |
7829 | (string_pos_nchars_ahead): Compute text_pos in a string from a | |
7830 | known text_pos plus a character delta. | |
7831 | (string_pos): Compute text_pos in string from charpos. | |
7832 | (c_string_pos): Likewise for a C string. | |
7833 | (number_of_chars): Return number of characters in a possibly | |
7834 | multi-byte C string. | |
7835 | (check_it): Renamed from check_iterator. Check that charpos and | |
7836 | bytepos are in sync. | |
7837 | (push_it): Renamed from save_iterator_settings. | |
7838 | (pop_it): Renamed from restore_iterator_settings. | |
7839 | (move_it_.*): Renamed from move_iterator_.*. | |
7840 | (charset_at_position): Take charpos/bytepos into account. | |
7841 | (back_to_previous_line_start): Set iterator to previous line start. | |
7842 | (forward_to_next_line_start): Set iterator to next line start. | |
7843 | (back_to_previous_visible_line_start): Renamed from | |
7844 | move_iterator_previous_visible_line_start. | |
7845 | (set_iterator_to_next_visible_line_start): Handle charpos/bytepos. | |
7846 | (get_face_at_it_pos): Renamed from get_face_from_cursor_pos. | |
7847 | Handle charpos/bytepos. | |
7848 | (compute_face_at_iterator_position): Handle charpos/bytepos. | |
7849 | (compute_face_at_iterator_string_position): Likewise. | |
7850 | (get_iterator_space_width): Likewise. | |
7851 | (load_overlay_strings): Likewise. | |
7852 | (get_overlay_strings_at_iterator_position): Likewise. | |
7853 | (reseat_iterator): Take a text_pos position argument. | |
7854 | (setup_iterator_overlay_strings_from_glyph_pos): Handle charpos/ | |
7855 | bytepos. | |
7856 | (init_iterator): Take additional bytepos parameter. | |
7857 | (reseat_iterator_to_string): Handle charpos/bytepos. | |
7858 | (start_display): Take a text_pos parameter. Handle charpos/bytepos. | |
7859 | (next_element_from_string): Handle charpos/bytepos. | |
7860 | (next_element_from_c_string): Likewise. | |
7861 | (fill_iterator_from_glyph_property): Likewise. | |
7862 | (next_element_from_buffer): Likewise. | |
7863 | (set_iterator_to_next): Increment charpos and bytepos of an iterator. | |
7864 | (move_iterator_in_display_line_to): Handle charpos/bytepos. | |
7865 | (move_it_to): Likewise. | |
7866 | (move_it_vertically_backward): Likewise. | |
7867 | (move_it_vertically): Likewise. | |
7868 | (move_it_by_lines): Likewise. | |
7869 | (hscroll_window_tree): Likewise. | |
7870 | (redisplay_internal): Likewise. | |
7871 | (set_cursor_from_row): Likewise. | |
7872 | (redisplay_window): Likewise. | |
7873 | (try_window): Take a text_pos parameter. Handle charpos/bytepos. | |
7874 | (try_window_reusing_current_matrix): Handle charpos/bytepos. | |
7875 | (get_first_unchanged_at_end_row): Compute and return delta_bytes. | |
7876 | (try_window_id): Handle charpos/bytepos. | |
7877 | (Ftrace_redisplay_toggle): Return Qnil. | |
7878 | (get_overlay_arrow_glyph_row): Handle charpos/bytepos. | |
7879 | (insert_left_trunc_glyphs): Likewise. | |
7880 | ||
7881 | * dispnew.c: `Merge' with 20.2.97 (it's really too different to | |
7882 | do a real merge). | |
7883 | (increment_glyph_matrix_buffer_positions): Add parameter delta_bytes. | |
7884 | (increment_glyph_row_buffer_positions): Ditto. | |
7885 | (copy_glyph_row_contents): Ditto. | |
7886 | (check_matrix_invariants): Add additional checks for charpos/ | |
7887 | bytepos consistency. | |
7888 | (direct_output_for_insert): Changed for charpos/bytepos. | |
7889 | (buffer_posn_from_coords): Likewise. Put code dealing with | |
7890 | `direction-reversed' in #if 0. | |
7891 | ||
7892 | * xterm.h: Merge with 20.2.97. | |
7893 | ||
7894 | * frame.h: Merge with 20.2.97. | |
7895 | ||
7896 | * window.h: Merge with 20.2.97. Add window_end_bytepos. | |
7897 | ||
7898 | * dispextern.h (MATRIX_ROW_START_CHARPOS): Get charpos of a row | |
7899 | start. | |
7900 | (MATRIX_ROW_START_BYTEPOS): Likewise for the byte position. | |
7901 | (MATRIX_ROW_END_CHARPOS): Likewise for the row end. | |
7902 | (MATRIX_ROW_END_BYTEPOS): Likewise for the row end byte position. | |
7903 | (struct it): Various members renamed from .*pos to .*charpos. | |
7904 | (IT_CHARPOS): Access current buffer character position of an | |
7905 | iterator. | |
7906 | (IT_BYTEPOS): Access current buffer byte position of an iterator. | |
7907 | (IT_STRING_CHARPOS): Access current string character position of | |
7908 | an iterator. | |
7909 | (IT_STRING_BYTEPOS): Access current string byte position of | |
7910 | an iterator. | |
7911 | (globally): Add function prototypes from 20.2.97. | |
7912 | ||
7913 | * everywhere: Use P_ instead of PROTO for function prototypes | |
7914 | because everyone else seems to use P_. | |
7915 | ||
7916 | * dispextern.h (struct text_pos): Structure describing a charpos/ | |
7917 | bytepos position in text. | |
7918 | (BYTEPOS): Access the byte position part of a text_pos. | |
7919 | (CHARPOS): Likewise for the character position. | |
7920 | (SET_TEXT_POS): Set a text_pos from a character and byte position. | |
7921 | (INC_TEXT_POS, DEC_TEXT_POS): Increment/decrement a text position. | |
7922 | (SET_TEXT_POS_FROM_MARKER): Set a text_pos from a marker. | |
7923 | (SET_MARKER_FROM_TEXT_POS): Set a marker from a text_pos. | |
7924 | (TEXT_POS_EQUAL_P): Compare two text_pos structures for equality. | |
7925 | (struct display_pos): Renamed from glyph_pos. Use struct text_pos | |
7926 | for buffer and string positions. | |
7927 | (struct glyph): Use text_pos. | |
7928 | (struct it): Renamed from display_iterator. Use text_pos. | |
7929 | ||
7930 | 1998-07-23 Gerd Moellmann <gerd@gnu.org> | |
7931 | ||
7932 | * xfns.c (x_kill_gs_process): Get image colors from XImage of a | |
7933 | pixmap. | |
7934 | ||
7935 | 1998-07-21 Gerd Moellmann <gerd@gnu.org> | |
7936 | ||
7937 | * dispextern.h (struct glyph_row): New flag indicate_zv_line_p. | |
7938 | * xterm.c (x_draw_row_bitmaps): Use it. | |
7939 | * dispnew.c (row_equal_p): Ditto. | |
7940 | (update_window_line): Ditto. | |
7941 | ||
7942 | * xfns.c (prepare_image_for_display): Don't set loading_failed_p | |
7943 | flag of images. | |
7944 | ||
7945 | * dispextern.h (struct image): Removed member loading_failed_p. | |
7946 | It's probably better to have the chance to try to load an image | |
7947 | again. | |
7948 | ||
7949 | 1998-07-20 Gerd Moellmann <gerd@gnu.org> | |
7950 | ||
7951 | * xterm.c (x_draw_bitmap): Draw bitmap for empty lines ending | |
7952 | at ZV if `indicate-zv-lines' is non-nil. | |
7953 | (x_draw_row_bitmaps): Compute bitmap for `indicate-zv-lines'. | |
7954 | ||
7955 | * dispnew.c (row_equal_p): Compare displays_text_p and | |
7956 | ends_at_zv_p flags of rows. | |
7957 | (update_window_line): Ditto. | |
7958 | ||
7959 | * buffer.h (struct buffer): New member indicate_zv_lines. | |
7960 | ||
7961 | * buffer.c (init_buffer_once): Add default for `indicate-zv-lines'. | |
7962 | (init_buffer_once): New variable `default-indicate-zv-lines'. | |
7963 | (syms_of_buffer): New buffer-local varianle `indicate-zv-lines'. | |
7964 | ||
7965 | * xdisp.c (redisplay_window): Don't try moving the cursor | |
7966 | if current glyph row w->last_cursor.vpos isn't enabled. | |
7967 | ||
7968 | * xterm.c (bitmap_type): Add ZV_LINE_BITMAP. | |
7969 | ||
7970 | * window.c (Fset_window_vscroll): Allow only negative scroll | |
7971 | values. Others don't seem to make sense, and this way it's easy | |
7972 | to restore a vscroll of zero. | |
7973 | ||
7974 | * xterm.c (x_inverted_image_mask): Check that pixmap could be | |
7975 | allocated. | |
7976 | (x_draw_image_glyph_string_background): Don't clip if pixmap | |
7977 | could not be created. | |
7978 | ||
7979 | * xfns.c (xbm_load_image_from_file): Check that pixmap could | |
7980 | be created. | |
7981 | (xbm_load): Ditto. | |
7982 | (gs_load): Ditto. | |
7983 | ||
7984 | * xterm.c (x_get_glyph_overhangs): Take image and stretch | |
7985 | glyphs into account. | |
7986 | ||
7987 | * xfaces.c (realize_default_face): Don't set font family of | |
7988 | the default face from the fontset alias name for `fontset-startup'. | |
7989 | ||
7990 | * xfns.c (gs_load): Pass frame's pixel foreground and background | |
7991 | color to the Lisp loader. | |
7992 | ||
7993 | 1998-07-19 Gerd Moellmann <gerd@gnu.org> | |
7994 | ||
7995 | * xfns.c (tiff_image_p, tiff_load): Support TIFF images via | |
7996 | libtiff34. | |
7997 | ||
7998 | * configure.in (--with-tiff, HAVE_TIFF): Added. | |
7999 | ||
8000 | * config.in (HAVE_TIFF): Added. | |
8001 | ||
8002 | * Makefile.in (LIBTIFF): Added. | |
8003 | ||
8004 | * xfns.c (jpeg_image_p, jpeg_load): Support JPEG images. | |
8005 | ||
8006 | * Makefile.in (LIBJPEG): Added. | |
8007 | ||
8008 | * xfns.c (resource_types): Enumerators renamed to RES_TYPE_NUMBER, | |
8009 | RES_TYPE_BOOLEAN etc. because of conflict of `boolean' with | |
8010 | jpeglib.h. | |
8011 | ||
8012 | * configure.in (HAVE_JPEG, --with-jpeg): Added. On systems | |
8013 | where the library is installed in /usr/local/lib, e.g. FreeBSD, | |
8014 | configure must be run with `--x-includes=/usr/X11R6/include: | |
8015 | /usr/local/include --x-libraries=/usr/X11R6/lib:/usr/local/lib'. | |
8016 | ||
8017 | 1998-07-18 Gerd Moellmann <gerd@gnu.org> | |
8018 | ||
8019 | * config.in (HAVE_JPEG): Added. | |
8020 | ||
8021 | * xfns.c (ct_init): Initialize color table used to map RGB colors | |
8022 | from images to X pixel colors. | |
8023 | (ct_free): Free color table. | |
8024 | (ct_lookup): Look an RGB color up. | |
8025 | (ct_allocated_colors): Get vector of allocated colors. | |
8026 | (pbm_image_p): Test if image specification is a valid PPM | |
8027 | image specification. | |
8028 | (pbm_scan_number): Scan a decimal ASCII number from a file. | |
8029 | (pbm_load): Load a PPM image. | |
8030 | ||
8031 | * window.c (Fset_window_vscroll): Adjust glyph matrix if | |
8032 | necessary. Take canonical character units as parameter. | |
8033 | (Fwindow_vscroll): Return canonical character units. | |
8034 | ||
8035 | * dispnew.c (allocate_matrices_for_window_redisplay): Add negative | |
8036 | w->dy to display height for which glyph rows must be allocated. | |
8037 | ||
8038 | 1998-07-17 Gerd Moellmann <gerd@gnu.org> | |
8039 | ||
8040 | * xfaces.c (face_at_string_position): Merge in region face | |
8041 | so that it won't overwrite the font in the region. | |
8042 | (face_at_buffer_position): Ditto. | |
8043 | (realize_basic_faces): Don't realize region face. | |
8044 | ||
8045 | * dispextern.h (enum face_id): REGION_FACE_ID removed. | |
8046 | ||
8047 | * xterm.c (x_set_glyph_string_background_width): Don't let | |
8048 | cursor face extend to end of line. | |
8049 | ||
8050 | * xdisp.c (append_space): If adding space of default face, | |
8051 | make sure glyph ist produced with right face. | |
8052 | ||
8053 | * xterm.c (x_clear_glyph_string_rect): Draw a rectangle in the | |
8054 | background color of a glyph string. | |
8055 | (x_draw_glyph_string_background): Call it. | |
8056 | (x_draw_glyph_string_bg_rect): Ditto. | |
8057 | (x_draw_stretch_glyph_string): Ditto. | |
8058 | ||
8059 | 1998-07-15 Gerd Moellmann <gerd@gnu.org> | |
8060 | ||
8061 | * xdisp.c (init_iterator): Initialize it->current_y to the | |
8062 | window's vscroll w->dy. | |
8063 | ||
8064 | * window.c (Fwindow_vscroll): Return number of pixels window | |
8065 | is vscrolled smoothly. | |
8066 | (Fset_window_vscroll): Set the number. | |
8067 | ||
8068 | * xdisp.c (move_iterator_to): Recognize case MOVE_TO_POS and | |
8069 | to_pos in truncated part of a line. | |
8070 | ||
8071 | 1998-07-14 Gerd Moellmann <gerd@gnu.org> | |
8072 | ||
8073 | * xdisp.c (move_iterator_in_display_line_to): If very first glyph | |
8074 | doesn't fit on the line, truncate it, despite truncate_lines nil. | |
8075 | (display_line): Ditto. | |
8076 | ||
8077 | * xfns.c: Experimental support for Ghostscript images. | |
8078 | ||
8079 | * xterm.c (x_term_init): Initialize new atoms DONE and PAGE. | |
8080 | (XTread_socket): React on events from Ghostscript. | |
8081 | (expose_frame): If width or height are zero, redraw entire frame. | |
8082 | (XTread_socket): Call expose_frame after receiving event from | |
8083 | Ghostscript. | |
8084 | ||
8085 | * xterm.h (struct x_display_info): Add atoms DONE and PAGE | |
8086 | for Ghostscript support. | |
8087 | ||
8088 | * xdisp.c (redisplay_internal): Return quickly if called | |
8089 | recursively. | |
8090 | ||
8091 | * alloc.c (NSTATICS): Increased to 1024. | |
8092 | ||
8093 | 1998-07-08 Gerd Moellmann <gerd@gnu.org> | |
8094 | ||
8095 | * xterm.c (x_append_stretch_glyph): Append a stretch glyph to an | |
8096 | iterator's glyph row. | |
8097 | (x_produce_stretch_glyph): Call it. | |
8098 | (x_produce_glyphs): Handle `space-width' property; call | |
8099 | x_append_stretch_glyph. | |
8100 | ||
8101 | * xdisp.c (syms_of_xdisp): Add symbol `space-width' used as a text | |
8102 | property. | |
8103 | (get_iterator_space_width): Determine value of `space-width' | |
8104 | property at iterator's position. | |
8105 | (reseat_iterator): Call it. | |
8106 | (next_element_from_string): Ditto. | |
8107 | (next_element_from_buffer): Ditto. | |
8108 | (init_iterator): Initialize space_width of iterator. | |
8109 | (redisplay_internal): Don't goto end_of_redisplay if PT hasn't | |
8110 | moved, but cursor blinks. | |
8111 | (redisplay_internal): Set w->last_cursor_off_p after update. | |
8112 | ||
8113 | * dispextern.h (enum iterator_prop_idx): Add SPACE_WIDTH_PROP_IDX. | |
8114 | (struct display_iterator): Add new member space_width. | |
8115 | ||
8116 | * window.h (struct window): Add last_cursor_off_p. | |
8117 | ||
8118 | 1998-07-07 Gerd Moellmann <gerd@gnu.org> | |
8119 | ||
8120 | * Saved. | |
8121 | ||
8122 | * window.c (Fpos_visible_in_window_p): Case window not up to | |
8123 | date---return nil if iterator hasn't reached position. | |
8124 | ||
8125 | 1998-07-06 Gerd Moellmann <gerd@gnu.org> | |
8126 | ||
8127 | * xdisp.c (text_outside_line_unchanged_p): Fix case that | |
8128 | overlays have changed. | |
8129 | (redisplay_window): Case cursor movement. Don't try it if | |
8130 | last_cursor.vpos is out of range. | |
8131 | ||
8132 | * xdisp.c (set_cursor_from_row): Set this_line_.* variables. This | |
8133 | way, the display optimization for the line containing the cursor | |
8134 | is used more frequently, esp. when we have a blinking cursor. | |
8135 | (display_line): Don't set this_line_.* variables. | |
8136 | ||
8137 | * xterm.c (x_redraw_cursor): Removed. | |
8138 | (x_display_and_set_cursor): Set cursor type depending on | |
8139 | cursor_off_p flag of window. | |
8140 | ||
8141 | * dispnew.c (redraw_cursor_hook): Removed. | |
8142 | (Fblink_cursor): Additional parameter on_p to set the cursor_off_p | |
8143 | member of the selected window. | |
8144 | ||
8145 | * xfaces.c (Fface_font): Added for compatibility with 20.2. | |
8146 | ||
8147 | * xterm.c (x_y_to_hpos_vpos): Return null if not over text. | |
8148 | Return glyph area under x/y. | |
8149 | (note_mouse_highlight): Use x_y_to_hpos_vpos in its new form. | |
8150 | ||
8151 | * keyboard.c (detect_input_pending_run_timers): Call gobble_input | |
8152 | after redisplaying. | |
8153 | ||
8154 | 1998-07-05 Gerd Moellmann <gerd@gnu.org> | |
8155 | ||
8156 | * xdisp.c (text_outside_line_unchanged_p): Test if changes | |
8157 | are all outside of a line of text. | |
8158 | (redisplay_internal): Use it. | |
8159 | ||
8160 | 1998-06-30 Gerd Moellmann <gerd@gnu.org> | |
8161 | ||
8162 | * xdisp.c (next_element_from_buffer): After skipping over | |
8163 | invisible text, look for the `glyph' property. | |
8164 | (set_iterator_stop_pos): Ignore check positions in front | |
8165 | of an iterator's current position. | |
8166 | ||
8167 | * xterm.c (show_mouse_face): Don't act on rows that don't exist | |
8168 | anymore or which are marked as not having valid contents. | |
8169 | ||
8170 | * xfaces.c (Finternal_set_lisp_face_attribute): Don't free | |
8171 | realized faces if new attribute value is equal to old value. | |
8172 | ||
8173 | 1998-06-29 Gerd Moellmann <gerd@gnu.org> | |
8174 | ||
8175 | * xfaces.c (Finternal_make_lisp_face): Increment | |
8176 | lface_id_to_name_size when lface_id_to_name is reallocated. | |
8177 | ||
8178 | 1998-06-27 Gerd Moellmann <gerd@gnu.org> | |
8179 | ||
8180 | * xdisp.c (set_iterator_stop_pos): Compute initial stop_pos | |
8181 | as minimum of endpos and overlay_pos. | |
8182 | (load_overlay_strings): Set next_overlay_pos of iterator to | |
8183 | -1 if we don't have to check for more overlay strings. | |
8184 | ||
8185 | 1998-05-09 Gerd Moellmann <gerd@gnu.org> | |
8186 | ||
8187 | * xdisp.c (set_iterator_to_next_visible_line_start): Don't | |
8188 | do anything if iterator is at ZV because scan_buffer doesn't | |
8189 | work otherwise. | |
8190 | ||
8191 | * xterm.c (x_encode_char): Inline it. | |
8192 | (x_get_char_font_and_encoding): Simplified. | |
8193 | (x_per_char_metric): Inline it. | |
8194 | ||
8195 | * xterm.c (x_draw_glyph_string_relief): Use clipping. | |
8196 | ||
8197 | * xdisp.c (get_next_display_element): Check for end of relief | |
8198 | face moved here from next_element_from_buffer. | |
8199 | ||
8200 | * xterm.c (x_produce_image_glyph): Add relief thickness. | |
8201 | (x_produce_stretch_glyph): Ditto. | |
8202 | ||
8203 | 1998-05-08 Gerd Moellmann <gerd@gnu.org> | |
8204 | ||
8205 | * xdisp.c (fill_iterator_from_glyph_property): Handle glyph | |
8206 | property value (space :width WIDTH :height HEIGHT :ascent ASCENT). | |
8207 | ||
8208 | * xterm.c (x_produce_stretch_glyph): Produce a stretch glyph | |
8209 | from a glyph property. | |
8210 | (x_produce_glyphs): Use it. | |
8211 | ||
8212 | * xdisp.c (set_iterator_to_next): Handle next_element_from_stretch. | |
8213 | ||
8214 | * xterm.c (x_produce_image_glyph): Add to current_x only if | |
8215 | in text area. | |
8216 | (x_produce_glyphs): Ditto. | |
8217 | ||
8218 | * xdisp.c (display_line): Compute row height from glyphs in | |
8219 | marginal areas. | |
8220 | ||
8221 | * xterm.c (x_draw_image_glyph_string_background): Draw | |
8222 | background of an image glyph string. | |
8223 | (x_draw_glyph_string_bg_rect): Draw a rectangular region of | |
8224 | the background of a glyph string. | |
8225 | (x_draw_image_glyph_string_foreground): Draw the foreground of | |
8226 | an image glyph string. | |
8227 | (x_inverted_image_mask): Return the inverted mask of an image. | |
8228 | ||
8229 | * xfns.c (x_draw_image): Removed. | |
8230 | ||
8231 | * dispextern.h (struct image_type): Remove drawing function. | |
8232 | ||
8233 | * xfaces.c (load_face_colors): Swap colors if face is inverse. | |
8234 | ||
8235 | * xdisp.c (get_next_display_element): In marginal areas, translate | |
8236 | newlines, tabs, etc. like normal control characters. | |
8237 | ||
8238 | * xfaces.c (Fface_color_supported_p): Transpose parameters frame | |
8239 | and color. | |
8240 | (free_realized_faces): Set frame garbaged. | |
8241 | ||
8242 | * xfaces.c (syms_of_xfaces): Add defsubr for | |
8243 | internal-lisp-face-attribute-values. | |
8244 | ||
8245 | 1998-05-07 Gerd Moellmann <gerd@gnu.org> | |
8246 | ||
8247 | * xterm.c (x_produce_image_glyph): Don't add glyph if area is | |
8248 | full. | |
8249 | (x_produce_image_glyph): Set IT->nglyphs to 1. | |
8250 | (x_draw_image_glyph_string): Use inverted mask to draw background. | |
8251 | ||
8252 | * dispextern.h (struct image_type): Additional clipping rect | |
8253 | parameters for drawing functions. | |
8254 | ||
8255 | * xterm.c (x_get_glyph_string_clip_rect): Get clip rect for | |
8256 | a glyph string. | |
8257 | (x_draw_image_glyph_string): Use it and pass the rect to the | |
8258 | image drawing function. | |
8259 | ||
8260 | * xdisp.c (fill_iterator_from_glyph_property): Use position of | |
8261 | first character with `glyph' property as image position. Set | |
8262 | iterator back to that position as long as the image hasn't been | |
8263 | consumed with set_iterator_to_next. | |
8264 | (set_cursor_from_row): Accept when glyph with given position is | |
8265 | not found in the row. Set cursor x to end of line in that case, | |
8266 | so that we can hscroll. | |
8267 | (redisplay_internal): Correct computation of delta by which | |
8268 | positions have changed in redisplay optimization for cursor | |
8269 | row of selected window. | |
8270 | ||
8271 | * xdisp.c (display_line): Remove start_pos. | |
8272 | (display_line): Fix bug preventing display optimization for | |
8273 | cursor line of selected window. | |
8274 | (next_element_from_buffer): Avoid XSETBUFFER, use it->w->buffer | |
8275 | instead. | |
8276 | ||
8277 | * dispnew.c (update_text_area): Use GLYPH_EQUAL_P. | |
8278 | (update_text_area): Take glyph pixel width into account | |
8279 | when trying to find a resync point. | |
8280 | (row_equal_p): Compare glyphs in all areas. | |
8281 | ||
8282 | 1998-05-06 Gerd Moellmann <gerd@gnu.org> | |
8283 | ||
8284 | * xterm.c (x_produce_glyphs): Don't add glyph if area is full. | |
8285 | ||
8286 | * dispextern.h (struct glyph_row): Use unsigned hash value. | |
8287 | ||
8288 | * xdisp.c (display_line): Simplified and made faster by setting | |
8289 | the cursor with set_cursor_from_row. | |
8290 | (set_cursor_from_row): Handle rows of desired matrix. | |
8291 | ||
8292 | 1998-05-05 Gerd Moellmann <gerd@gnu.org> | |
8293 | ||
8294 | * xdisp.c (set_cursor_from_row): Don't put cursor on glyphs | |
8295 | with type != CHAR_GLYPH. | |
8296 | (fill_iterator_from_glyph_property): Return void. Set | |
8297 | method to next_element_from_image. | |
8298 | (next_element_from_image): Dummy function for delivering a | |
8299 | single image id. | |
8300 | (set_iterator_to_next): Add method next_element_from_image. | |
8301 | (redisplay_window): When recentering, and cursor vpos is -1 | |
8302 | after display, assume middle of window is in first line displayed | |
8303 | in window, and display again. | |
8304 | (fill_iterator_from_glyph_property): Assign image glyph | |
8305 | the position of the first character having the glyph property. | |
8306 | ||
8307 | * dispextern.h (IMAGE_ASCENT): Compute ascent of image. | |
8308 | * xfns.c (x_draw_image): Use it. | |
8309 | * xterm.c (x_produce_image_glyph): Use it. | |
8310 | ||
8311 | * xterm.c (x_produce_image_glyph): Set iterator's pixel_width. | |
8312 | ||
8313 | * Makefile.in: Extraneous #define of LIBXPM removed. | |
8314 | ||
8315 | * xterm.c (x_produce_glyphs): Produce a STRETCH_GLYPH for tabs. | |
8316 | (x_fill_stretch_glyph_string): Fill a glyph string from a | |
8317 | stretch glyph. | |
8318 | (x_compute_glyph_string_overhangs): Compute overhangs only | |
8319 | for text glyph strings. | |
8320 | (x_draw_stretch_glyph_string): Draw a stretch glyph string. | |
8321 | (x_draw_glyph_string): Call it. | |
8322 | ||
8323 | * dispextern.h (glyph_type): Add STRETCH_GLYPH. | |
8324 | (struct glyph): Add sub-structure for stretchable glyphs. | |
8325 | (GLYPH_EQUAL_P): Compare glyph type and u.val. | |
8326 | ||
8327 | * xdisp.c (get_overlay_arrow_glyph_row): Put face code into | |
8328 | #ifdef HAVE_FACES. | |
8329 | ||
8330 | * xterm.c (x_produce_glyphs): Use ASCII face for spaces of a TAB. | |
8331 | ||
8332 | * xdisp.c (fill_iterator_from_glyph_property): Renamed from | |
8333 | setup_iterator_from_glyph_property. Don't do it for terminal | |
8334 | frames. | |
8335 | ||
8336 | * xterm.c (x_produce_image_glyph): Produce glyph for image | |
8337 | that can't be loaded. | |
8338 | ||
8339 | * xfns.c (lookup_image): If image can't be loaded, set its | |
8340 | width and height so that we can draw a rectangle. | |
8341 | (x_draw_image): Draw a rectangle for images that don't have | |
8342 | a pixmap. | |
8343 | (make_image): Set hash value. | |
8344 | (image_spec_equal_p): Use image_spec_value. | |
8345 | ||
8346 | * xterm.c (expose_frame): Don't try to redraw if basic faces | |
8347 | haven't benn realized yet. | |
8348 | (x_draw_image_glyph_string): Fill background only if image | |
8349 | is not as tall as row. | |
8350 | ||
8351 | 1998-05-04 Gerd Moellmann <gerd@gnu.org> | |
8352 | ||
8353 | * Makefile.in (LIBXPM): If not already defined, define to -lXpm. | |
8354 | (LIBX)[HAVE_X11]: Add LIBXPM. | |
8355 | ||
8356 | * xfns.c (xpm_image_p): Implementation of image type functions | |
8357 | for XPM. | |
8358 | (xpm_load): Ditto. | |
8359 | ||
8360 | * dispextern.h (struct image): Add mask pixmap for XPM. | |
8361 | ||
8362 | * xfns.c (x_draw_image): Handle images with masks. | |
8363 | ||
8364 | * configure.in: --with-xpm added. Code detecting -lXpm added. | |
8365 | ||
8366 | * config.in: Add HAVE_XPM. | |
8367 | ||
8368 | * xfns.c (xbm_draw): Removed. | |
8369 | (x_draw_image): Default implementation for drawing images. | |
8370 | (xbm_keyword_index): Remove XBM_DEPTH. | |
8371 | (xbm_format): Remove `:depth'. | |
8372 | (xbm_image_spec_from_file): Removed to reduce consing. | |
8373 | (xbm_load_image_from_file): Added for the same reason. | |
8374 | ||
8375 | * xterm.c (x_fill_image_glyph_string): Don't set ybase of | |
8376 | glyph string. | |
8377 | (x_draw_image_glyph_string): Pass ybase to image draw function. | |
8378 | ||
8379 | * xfns.c (make_image): Set default baseline. | |
8380 | ||
8381 | * xterm.c (x_produce_image_glyph): Compute ascent of image | |
8382 | from its height and baseline percentage. | |
8383 | ||
8384 | * xfns.c (xbm_keyword_index): Add XBM_BASELINE. | |
8385 | (xbm_format): Add description for `:baseline'. | |
8386 | (xbm_image_spec_from_file): Add keywords from original spec to | |
8387 | result. | |
8388 | (xbm_load): Set baseline of image. | |
8389 | (xbm_image_p): Check range for baseline. | |
8390 | ||
8391 | * dispextern.h (struct image): Add member baseline. | |
8392 | ||
8393 | * xdisp.c (dump_glyph_matrix): Handle image glyphs. | |
8394 | ||
8395 | * term.c (produce_glyphs): Change assertion to allow DISP_IMAGE. | |
8396 | ||
8397 | * xdisp.c (get_next_display_element): Do character translations | |
8398 | only if delivering characters. | |
8399 | ||
8400 | 1998-05-03 Gerd Moellmann <gerd@gnu.org> | |
8401 | ||
8402 | * dispextern.h (ITERATOR_AT_END_OF_LINE_P): Test for | |
8403 | DISP_CHARACTER. | |
8404 | ||
8405 | * xterm.c (x_produce_image_glyph): Poduce image glyphs. | |
8406 | (x_produce_glyphs): Call x_produce_glyphs for DISP_IMAGE. | |
8407 | ||
8408 | 1998-05-02 Gerd Moellmann <gerd@gnu.org> | |
8409 | ||
8410 | * xfns.c (prepare_image_for_display): Set image timestamp. | |
8411 | (clear_image_cache): Clear images if image's timestamp + | |
8412 | Vimage_eviction_seconds is > now. | |
8413 | (syms_of_xfns): New variables image-eviction-seconds, and | |
8414 | image-types. | |
8415 | (add_image_format): Add to image-types. | |
8416 | (xbm_load): Support new image spec format. | |
8417 | (x_alloc_image_color): Allocate a color for an image. | |
8418 | ||
8419 | * dispextern.h (struct image): Add timestamp. | |
8420 | ||
8421 | * xfns.c (xbm_image_p): Allow bool-vectors, vectors of strings and | |
8422 | vectors of bool-vectors. | |
8423 | (xbm_lisp_object_from_file): Build new format image spec. | |
8424 | ||
8425 | 1998-05-01 Gerd Moellmann <gerd@gnu.org> | |
8426 | ||
8427 | * xfaces.c (init_frame_faces): Initialize image cache. | |
8428 | (free_frame_faces): Free it. | |
8429 | ||
8430 | * xterm.c (x_delete_display): Don't free image cache. | |
8431 | ||
8432 | * emacs.c (main): Call init_xfns. | |
8433 | ||
8434 | 1998-04-30 Gerd Moellmann <gerd@gnu.org> | |
8435 | ||
8436 | * alloc.c (mark_object): Mark objects in image cache. | |
8437 | ||
8438 | * xfns.c (x_set_internal_border_width): Correct call to | |
8439 | widget_store_internal_border_width. | |
8440 | ||
8441 | * widget.c (widget_store_internal_border): Return void. | |
8442 | ||
8443 | * xfns.c (x_destroy_bitmap): Use xfree instead of free. Return | |
8444 | void. | |
8445 | (init_x_parm_symbols): Return void. | |
8446 | (x_report_frame_params): Ditto. | |
8447 | (x_set_border_pixel): Ditto. | |
8448 | (syms_of_xfns): Ditto. | |
8449 | (x_destroy_all_bitmaps): Use xfree instead of free. | |
8450 | ||
8451 | * xterm.h (FRAME_X_IMAGE_CACHE): Access the image cache of a frame. | |
8452 | ||
8453 | * xterm.c (x_term_init): Initialize image_cache of display info. | |
8454 | (x_delete_display): Free image cache. | |
8455 | ||
8456 | * xterm.h (struct x_display_info): Add image_cache. | |
8457 | ||
8458 | * xfns.c (make_image_cache): Allocate a new image cache. | |
8459 | (free_image_cache): Free an image cache. | |
8460 | (make_image): Allocate an image. | |
8461 | (free_image): Free an image. | |
8462 | ||
8463 | * dispextern.h (struct image): Structure describing an image. | |
8464 | (struct image_cache): Structure describing an image cache. | |
8465 | ||
8466 | 1998-04-29 Gerd Moellmann <gerd@gnu.org> | |
8467 | ||
8468 | * xdisp.c (check_iterator_glyph_property): Return int. Value is | |
8469 | non-zero if iterator is filled with something to return. | |
8470 | (next_element_from_buffer): Immediately return if | |
8471 | setup_iterator_from_glyph_prop has filled iterator with pixmap. | |
8472 | (next_element_from_string): Likewise. | |
8473 | ||
8474 | * xfaces.c (load_pixmap): Allow to pass null for W_PTR and H_PTR. | |
8475 | ||
8476 | * dispextern.h (struct glyph): Add pixmap_id. | |
8477 | (display_element_type): Add DISP_PIXMAP. | |
8478 | ||
8479 | * xmenu.c (popup_get_selection): Use xmalloc/xfree instead of | |
8480 | malloc/free. | |
8481 | ||
8482 | * xfaces.c (clear_font_table): Free fonts not used by fontsets. | |
8483 | (clear_face_cache): Call it. | |
8484 | ||
8485 | * xterm.c (x_query_font): Don't look at empty font table slots. | |
8486 | (x_compute_min_glyph_bounds): Likewise. | |
8487 | (x_term_init): Initialize font_table to null. | |
8488 | (x_load_font): Change allocation of font_info structures so | |
8489 | that it is possible to free fonts. | |
8490 | ||
8491 | * xfns.c (Fx_close_connection): Use xfree instead of free. | |
8492 | Only free fonts from filled font table entries. | |
8493 | ||
8494 | * xfaces.c (best_matching_font): Support use of scalable fonts. | |
8495 | (Fface_scalable_fonts_mode): Toggle use of scalable fonts. | |
8496 | ||
8497 | * xterm.h (struct x_display_info): Remove screen_dpi, add resx | |
8498 | and resy. | |
8499 | * xterm.c (x_term_init): Compute resx and resy. | |
8500 | ||
8501 | * xfaces.c (split_font_name): Don't reject scalable fonts. | |
8502 | ||
8503 | * xterm.c (x_list_fonts): Set code exclusing scalable fonts | |
8504 | in #if 0. | |
8505 | ||
8506 | * xfaces.c (xlfd_point_size): Return 0 for fonts whose real | |
8507 | point size cannot be determined. | |
8508 | ||
8509 | * xterm.h (FRAME_SMALLEST_CHAR_WIDTH): Return smallest character | |
8510 | width over all fonts on a frame. | |
8511 | (FRAME_SMALLEST_FONT_HEIGHT): Likewise for font height. | |
8512 | * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Use these | |
8513 | macros. | |
8514 | ||
8515 | * xterm.c (x_font_min_bounds): Moved here from xfaces.c. | |
8516 | (x_compute_min_char_bounds): Formerly min_char_bounds in xfaces.c. | |
8517 | (x_load_font): Use x_compute_min_char_bounds. | |
8518 | ||
8519 | * xterm.h (struct x_display_info): New members smallest_char_width | |
8520 | and smallest_font_height. | |
8521 | ||
8522 | 1998-04-28 Gerd Moellmann <gerd@gnu.org> | |
8523 | ||
8524 | * dispextern.h (PREPARE_FACE_FOR_DISPLAY): Call function with | |
8525 | the same name if GC of face is zero. | |
8526 | ||
8527 | * dispextern.h (struct face): Member non_ascii_gc removed. | |
8528 | ||
8529 | * xterm.c (x_get_char_font_and_encoding): Return face's font | |
8530 | for characters < 0177 in default face. Prepare face for | |
8531 | display before returning it. | |
8532 | (x_produce_glyphs): Use it->charset. | |
8533 | (x_get_char_font_and_encoding): Simplified. | |
8534 | (x_encode_char): Remove parameter `font'. | |
8535 | ||
8536 | * xfaces.c (choose_face_font): If registry from charset symbol | |
8537 | doesn't contain a `-', make it a pattern by appending "*-*". | |
8538 | ||
8539 | * xdisp.c (check_iterator_glyph_property): Adjust limit for | |
8540 | glyph_check_pos computation to character boundary. | |
8541 | ||
8542 | 1998-04-27 Gerd Moellmann <gerd@gnu.org> | |
8543 | ||
8544 | * fontset.h (FONT_INFO_FROM_ID): Return null if ID is invalid. | |
8545 | ||
8546 | * xfaces.c (ascii_face_of_lisp_face): Get the id of the realized | |
8547 | ASCII face for a given Lisp face id. | |
8548 | ||
8549 | * xdisp.c (set_iterator_stop_pos): Take glyph_check_pos into | |
8550 | account. | |
8551 | (reseat_iterator): Set glyph_check_pos. Handle case where | |
8552 | new position is < original position. | |
8553 | (check_iterator_glyph_property): Handle glyph property in strings. | |
8554 | (next_element_from_string): Call above function. | |
8555 | (next_element_from_display_vector): Handle faces in glyphs. | |
8556 | (get_next_display_element): Set face_id of glyphs for | |
8557 | control chars to zero. | |
8558 | ||
8559 | * Makefile.in (term.o): Add dependency on dispextern.h. | |
8560 | ||
8561 | * xdisp.c (syms_of_xdisp): Add symbol `glyph'. | |
8562 | (display_line): Handle marginal areas. | |
8563 | (move_iterator_in_display_line_to): Likewise. | |
8564 | ||
8565 | * xfaces.c (Finternal_make_lisp_face): Assign Lisp faces an id. | |
8566 | ||
8567 | * xfaces.c (face_at_buffer_position): Don't merge with nil | |
8568 | text property. | |
8569 | (face_at_string_position): Ditto. | |
8570 | ||
8571 | * dispextern.h (struct display_iterator): Use a stack of saved | |
8572 | values instead of saving check positions etc. individually. | |
8573 | ||
8574 | * xdisp.c (set_iterator_to_next): If end of Lisp string reached, | |
8575 | maybe pop the iterator's stack. | |
8576 | (save_iterator_settings): Push a value on iterator's stack. | |
8577 | (get_overlay_strings_at_iterator_position): Use it. | |
8578 | (restore_iterator_settings): Pop the stack. | |
8579 | (set_iterator_to_next_overlay_string): Use it. | |
8580 | ||
8581 | * xfaces.c (try_font_list): Use alternative font families. | |
8582 | ||
8583 | 1998-04-26 Gerd Moellmann <gerd@gnu.org> | |
8584 | ||
8585 | * xfaces.c (Fset_face_font_sort_order): Set the order in which | |
8586 | font selection matches fonts. | |
8587 | (Fface_font_sort_order): Return the font sort order. | |
8588 | (best_matching_font): Find best matching font based on sort order. | |
8589 | (cmp_font_names): Sort by given sort order. | |
8590 | ||
8591 | * dispextern.h (struct display_iterator): New member faces_p. | |
8592 | * xdisp.c (init_iterator): Initialize it->faces_p. | |
8593 | (compute_face_at_iterator_string_position): Use it. | |
8594 | (compute_face_at_iterator_position): Use it. | |
8595 | (init_iterator): Use it. | |
8596 | (display_mode_line): Ditto. | |
8597 | ||
8598 | * xdisp.c (get_next_display_element): Put code choosing a face | |
8599 | when the charset changes in #ifdef HAVE_FACES. | |
8600 | ||
8601 | * dispextern.h (FACE_FOR_CHARSET): Replacement for function | |
8602 | lookup_face_for_charset. | |
8603 | ||
8604 | * xfaces.c (free_font_names): Renamed from free_split_font_names. | |
8605 | (free_all_realized_faces): Renamed from remove_all_realized_faces. | |
8606 | ||
8607 | 1998-04-25 Gerd Moellmann <gerd@gnu.org> | |
8608 | ||
8609 | * xfaces.c (best_matching_font): Return the name of the best | |
8610 | matching font in an array of font_name structures. | |
8611 | (choose_face_font): Use it. | |
8612 | (choose_face_fontset_font): Use it. | |
8613 | (find_best_weight_font): If final font found has same weight as | |
8614 | the font we started with, return the original font because it is a | |
8615 | better match for the resolution of the display. | |
8616 | (find_best_slant_font): Likewise. | |
8617 | (merge_face_vector_with_property): Check more invalid attribute | |
8618 | values. | |
8619 | (lface_suitable_for_charset_p): Replaced by a macro with the same | |
8620 | name in upper-case. | |
8621 | ||
8622 | 1998-04-24 Gerd Moellmann <gerd@gnu.org> | |
8623 | ||
8624 | * dispextern.h (struct face): Member | |
8625 | fontset_chosen_for_realization_p removed. | |
8626 | ||
8627 | * xfaces.c (cache_face): If face->fontset >= 0, add face to the | |
8628 | end of the collision list, so that we find more specific faces | |
8629 | first. | |
8630 | (lookup_face_for_charset): Look up a new face if face->fontset >= | |
8631 | 0, and charset != CHARSET_COMPOSITION. | |
8632 | ||
8633 | * xfaces.c (split_font_name): Return zero if point size of font | |
8634 | couldn't be computed. | |
8635 | (realize_default_face): Use ASCII font of a fontset to determine | |
8636 | font-related attributes of the default face. | |
8637 | (face_fontset): Return fontset id for face family. | |
8638 | (font_list): Additional parameter font_pattern. If non-nil, | |
8639 | return fonts matching that pattern. | |
8640 | ||
8641 | 1998-04-23 Gerd Moellmann <gerd@gnu.org> | |
8642 | ||
8643 | * xfaces.c (choose_face_fontset): If new fontset cannot be | |
8644 | constructed, or fontset name cannot be split, return the id of the | |
8645 | standard fontset. | |
8646 | ||
8647 | * xterm.c (XTframe_up_to_date): Check that frame is an X frame. | |
8648 | When Emacs starts, it may be called for the initial frame which | |
8649 | isn't an X frame. | |
8650 | ||
8651 | * dispextern.h (struct face): New members foreground_defaulted_p, | |
8652 | background_defaulted_p. | |
8653 | (struct face): Members `mask' and `cache' removed. | |
8654 | ||
8655 | * xfaces.c (load_color): Set them. | |
8656 | (free_face_colors): Check them. | |
8657 | (xlfd_point_size): Return -1 if resolution or point size of | |
8658 | font unknown. | |
8659 | ||
8660 | * xfaces.c (free_font): Removed. | |
8661 | (load_face_font_or_fontset): Renamed from load_font. | |
8662 | (load_face_font_or_fontset): Use message2 instead of signalling. | |
8663 | (load_color): Likewise. | |
8664 | (load_pixmap): Likewise. | |
8665 | ||
8666 | * xterm.h (struct x_display_info): Add screen_dpi. | |
8667 | * xterm.c (x_term_init): Initialize it. | |
8668 | * xfaces.c (xlfd_point_size): Use it. | |
8669 | (split_font_name): Compute numeric XLFD_RESY. | |
8670 | (cmp_font_names): Make fonts with an y-resolution more | |
8671 | similar to that of the frame appear first in the result. | |
8672 | ||
8673 | * xfaces.c (cache_face): If fontset_chosen_for_realization_p | |
8674 | is set for the face to cache, add it to the end of the collision | |
8675 | list. | |
8676 | (try_font_list): If fonts for given family and registry cannot | |
8677 | be found, first try to keep the registry, and choose a different | |
8678 | family. | |
8679 | (choose_face_font): Allow nfonts == 0. | |
8680 | (try_font_list): Give up if no font matches given registry. | |
8681 | ||
8682 | 1998-04-22 Gerd Moellmann <gerd@gnu.org> | |
8683 | ||
8684 | * xterm.c (x_get_char_font_and_encoding): Get font_info from | |
8685 | font info id of the face. | |
8686 | ||
8687 | * xfaces.c (load_font): Set font_info_id. | |
8688 | (realize_face): Ditto. | |
8689 | ||
8690 | * dispextern.h (struct face): Change member font_info to | |
8691 | font_info_id. | |
8692 | ||
8693 | * fontset.h (FONT_INFO_ID): Build an ID from a font_info pointer. | |
8694 | (FONT_INFO_FROM_ID): Get a font_info pointer from an ID. | |
8695 | ||
8696 | * xdisp.c (extend_face_to_end_of_line): If IT's current charset | |
8697 | isn't ASCII, get the ASCII face before adding a space. | |
8698 | (append_space): Likewise. | |
8699 | (insert_left_trunc_glyphs): Initialize truncate_it's charset | |
8700 | to -1 so that it will compute the right face for the truncation | |
8701 | glyphs. | |
8702 | ||
8703 | * xfaces.c (realize_face): Set | |
8704 | face->fontset_chosen_for_realization_p. | |
8705 | (lookup_face_for_charset): If fontset wasn't specified originally | |
8706 | and new charset != CHARSET_COMPOSITION, get a new face for that | |
8707 | charset. | |
8708 | ||
8709 | * dispextern.h (struct face): New member | |
8710 | fontset_chosen_for_realization_p_specified_p. Set to 1 when | |
8711 | realize_face has chosen a fontset to display composite characters | |
8712 | for a Lisp face not specifying a fontset. | |
8713 | ||
8714 | * xdisp.c (extend_face_to_end_of_line): Move tests for default | |
8715 | face and line already filled here. Don't do anything if current | |
8716 | face hasn't a relief or has a background equal to the frame | |
8717 | background. | |
8718 | ||
8719 | * xfaces.c (split_font_name): Additional parameter numeric_p. | |
8720 | Don't compute numeric values if it is non-zero. | |
8721 | (choose_face_fontset): Call split_font_name with numeric_p == 0. | |
8722 | (choose_face_fontset): Print a message if fontset contains a | |
8723 | font whose name cannot be split into fields. | |
8724 | ||
8725 | 1998-04-21 Gerd Moellmann <gerd@gnu.org> | |
8726 | ||
8727 | * xfaces.c (try_font_list): Try to load a list of fonts, | |
8728 | possibly using less restrictive patterns. | |
8729 | (choose_face_font): Use it. | |
8730 | ||
8731 | * xterm.c (x_get_char_font_and_encoding): For charset != | |
8732 | CHARSET_ASCII use font_info of face if face hasn't a fontset set. | |
8733 | ||
8734 | * dispextern.h (struct face): New member font_info. | |
8735 | ||
8736 | * xfaces.c (load_font): Use FS_LOAD_FONT to load fonts for faces | |
8737 | specifying a fontset as well as those not having a fontset. | |
8738 | (free_font): Make it empty. | |
8739 | (realize_face): Use changed load_font. | |
8740 | ||
8741 | * xterm.c (x_get_char_font_and_encoding): If face doesn't | |
8742 | fit for charset, get the right one. | |
8743 | ||
8744 | * xfaces.c (load_font): Take frame and name parameter, return | |
8745 | font. | |
8746 | (free_font): Likewise. | |
8747 | (split_font_name): Compute numeric values for height, swidth etc. | |
8748 | (cmp_font_names): Use them. | |
8749 | (find_best_width_font): Ditto. | |
8750 | (find_best_height_font): Ditto. | |
8751 | (find_best_weight_font): Ditto. | |
8752 | (find_best_slant_font): Ditto. | |
8753 | (lface_hash): Add weight, slant, swidth and relief to hash value. | |
8754 | (lface_equal_p): Make it faster. | |
8755 | (lface_from_symbol): Use assq_no_quit. | |
8756 | (Fnote_default_face_changed): Removed. | |
8757 | (cmp_font_names): Use strcmp instead of xstricmp. | |
8758 | (face_charset_registries): Removed. | |
8759 | ||
8760 | 1998-04-20 Gerd Moellmann <gerd@gnu.org> | |
8761 | ||
8762 | * frame.h (CHECK_FRAME): Give this macro a statement form. | |
8763 | (CHECK_LIVE_FRAME): Ditto. | |
8764 | ||
8765 | * xfaces.c (find_best_width_font): Find the best matching font | |
8766 | for a given width. | |
8767 | (find_best_height_font): Likewise for height. | |
8768 | (find_best_weight_font): Likewise for weight. | |
8769 | (find_best_slant_font): Likewise for slant. | |
8770 | (choose_face_font): Use them. | |
8771 | (get_lface_attributes): Always return frame-local face attrs. | |
8772 | (Finternal_merge_in_global_face): Merge local face with | |
8773 | global face attributes. | |
8774 | ||
8775 | * xfaces.c (check_lface_attrs, check_lface): Check consistency of | |
8776 | Lisp face attributes. | |
8777 | ||
8778 | 1998-04-19 Gerd Moellmann <gerd@gnu.org> | |
8779 | ||
8780 | * xfaces.c (Finternal_set_lisp_face_attribute): Add :bold | |
8781 | and :italic for compatibility. | |
8782 | (Finternal_set_lisp_face_attribute_from_resource): Handle | |
8783 | :bold and :italic. Handle boolean resource values for | |
8784 | :underline and :italic. | |
8785 | ||
8786 | * xfns.c (display_x_get_resource): Make it externally visible. | |
8787 | ||
8788 | * xfaces.c (lface_from_symbol): Take a frame as parameter. | |
8789 | If that frame is non-null, return the frame-local face. | |
8790 | (Finternal_make_lisp_face): Additional frame argument. | |
8791 | (lface_attributes): Get face attributes from global and frame-local | |
8792 | definitions. | |
8793 | (Finternal_lisp_face_equal_p): Additional frame argument. | |
8794 | (merge_lisp_face_vector_with_property): Ditto. | |
8795 | (Frealize_basic_faces): Removed. | |
8796 | (Finternal_get_lisp_face_attribute): Additional frame argument. | |
8797 | (Finternal_lisp_face_p): Ditto. | |
8798 | (load_color) [MSDOS]: Removed because it isn't clear how | |
8799 | to do this for MS-DOS. | |
8800 | ||
8801 | * xfaces.c (lface_from_symbol): Get global face definition | |
8802 | from face-global-alist. | |
8803 | ||
8804 | * xfaces.c (Finternal_set_lisp_face_attribute): Allow `t' | |
8805 | as values for :underline and :inverse-video. | |
8806 | (Finternal_set_lisp_face_attribute): Allow nil values. | |
8807 | ||
8808 | 1998-04-17 Gerd Moellmann <gerd@gnu.org> | |
8809 | ||
8810 | * xfaces.c (Finternal_make_lisp_face): Return Lisp face vector. | |
8811 | ||
8812 | * xfaces.c (syms_of_xfaces): Add Vall_faces. | |
8813 | (Finternal_make_lisp_face): Add new face to Vall_faces. | |
8814 | ||
8815 | * xdisp.c (echo_area_display): Remove code recomputing faces. | |
8816 | (redisplay_internal): Ditto. | |
8817 | (init_iterator): Do it here. | |
8818 | ||
8819 | * xfaces.c (choose_face_font): Check that swidth doesn't change | |
8820 | for subusequent attributes. | |
8821 | (xlfd_point_size): Return int. | |
8822 | ||
8823 | * xdisp.c (redisplay_internal, echo_area-display): If realized | |
8824 | faces have been cleared, call recompute_basic_faces. | |
8825 | ||
8826 | * xfaces.c (recompute_basic_faces): Free realized faces. Reset | |
8827 | face_attributes_changed_p. | |
8828 | (remove_all_realized_faces): Remove all realized faces on | |
8829 | all frames. | |
8830 | (Finternal_set_lisp_face_attribute): Call remove_all_realized_faces. | |
8831 | ||
8832 | * xdisp.c (redisplay_internal): If face attributes have been | |
8833 | changed since the last redisplay, recompute basic faces. | |
8834 | (echo_area_display): Ditto. | |
8835 | ||
8836 | * xfaces.c (clear_face_gcs): Renamed from clear_realized_face_cache. | |
8837 | ||
8838 | * xfaces.c (min_char_bounds): If face cache not yet present, | |
8839 | don't try to get font dimensions from faces. | |
8840 | ||
8841 | * xterm.c (x_frame_mode_line_height): If face cache not present | |
8842 | set, return default height. | |
8843 | ||
8844 | * alloc.c (mark_face_cache): Check for null faces. Correct | |
8845 | index bug. | |
8846 | ||
8847 | * dispextern.h (struct face): Renamed from struct rface. Member | |
8848 | underline renamed underline_p. Make it a bit-field. | |
8849 | ||
8850 | * xfaces.c (init_frame_faces): Allocate face cache. | |
8851 | (free_frame_faces): Free face cache. | |
8852 | (recompute_basic_faces): Realize basic faces only if face cache is | |
8853 | allocated, i.e. after init_frame_faces has been called. | |
8854 | ||
8855 | * frame.c (make_frame): Initialze face cache with null. | |
8856 | ||
8857 | * xfaces.c (same_size_fonts): Removed. | |
8858 | ||
8859 | * xterm.c (x_set_glyph_string_gc): Add post-condition | |
8860 | s->gc != 0. | |
8861 | (x_set_mouse_face_gc): Ditto. | |
8862 | (x_set_mode_line_face_gc): Ditto. | |
8863 | ||
8864 | * xfaces.c (realize_default_face): Return int. Value is | |
8865 | zero if frame params don't contain enough information to | |
8866 | realize the default face. | |
8867 | (realize_basic_faces): Ditto. | |
8868 | (init_frame_faces): Realize basic faces. | |
8869 | ||
8870 | * xfns.c (x_set_font): First store real font name in frame | |
8871 | parameters, then call recompute_basic_faces. | |
8872 | ||
8873 | * xfaces.c (recompute_basic_faces): Call realize_basic_faces. | |
8874 | ||
8875 | 1998-04-16 Gerd Moellmann <gerd@gnu.org> | |
8876 | ||
8877 | * xfaces.c (syms_of_xfaces): Correct calls to defsubr. | |
8878 | ||
8879 | * xfns.c (Fx_face_fixed_p): Removed. | |
8880 | (Fx_list_fonts): Moved to xfaces.c. | |
8881 | ||
8882 | * xfaces.c (compute_face_at_buffer_pos): Renamed to | |
8883 | face_at_buffer_position. Parameter charset removed; always | |
8884 | compute face for CHARSET_ASCII. | |
8885 | (face_at_string_position): Renamed from | |
8886 | compute_face_at_string_pos. Parameter charset removed; always | |
8887 | compute for CHARSET_ASCII. | |
8888 | (lookup_face_for_charset): Take frame parameter instead of | |
8889 | face_cache. | |
8890 | (lookup_face): Ditto. | |
8891 | (compute_char_face): Renamed from compute_glyph_face. | |
8892 | ||
8893 | * xdisp.c (init_iterator): Initialize charset member. | |
8894 | (reseat_iterator_to_string): Ditto. | |
8895 | (get_charset_at_buffer_position): Determine charset at | |
8896 | buffer position in current_buffer. | |
8897 | (reseat_iterator): Call above function. | |
8898 | (compute_face_at_iterator_position): Call | |
8899 | compute_face_at_buffer_pos. | |
8900 | (compute_face_at_iterator_string_position): Call | |
8901 | compute_face_at_string_pos. | |
8902 | (get_face_from_id): Removed. | |
8903 | (get_face_from_cursor_pos): Call compute_face_at_buffer_pos. | |
8904 | Call get_charset_at_buffer_position. | |
8905 | (reseat_iterator): Determine face if charset at pos differs | |
8906 | from iterator's charset. | |
8907 | (reseat_iterator_to_glyph_pos): Removed. | |
8908 | ||
8909 | * xfaces.c (compute_face_at_bufpos): Remove parameter charset. | |
8910 | Determine charset from buffer position. | |
8911 | (compute_string_char_face): Renamed to compute_face_at_string_pos. | |
8912 | (compute_face_at_bufpos): Renamed to compute_face_at_buffer_pos. | |
8913 | ||
8914 | * dispextern.h (struct display_iterator): Add member charset. | |
8915 | ||
8916 | 1998-04-15 Gerd Moellmann <gerd@gnu.org> | |
8917 | ||
8918 | * xfaces.c (compute_char_face): Removed. | |
8919 | ||
8920 | * xdisp.c (get_overlay_arrow_glyph_row): Use compute_glyph_face | |
8921 | with new parameter list. | |
8922 | ||
8923 | * xfaces.c (region_face): Removed. | |
8924 | (allocate_face): Removed. | |
8925 | (copy_face): Ditto. | |
8926 | (face_eql): Removed. | |
8927 | (intern_face): Removed. | |
8928 | (clear_face_cache): Removed. | |
8929 | (load_font): Ditto. | |
8930 | (unload_font): Ditto. | |
8931 | (load_color): Ditto. | |
8932 | (unload_color): Ditto. | |
8933 | (new_computed_face): Ditto. | |
8934 | (intern_computed_face): Ditto. | |
8935 | (ensure_face_ready): Ditto. | |
8936 | (merge_faces): Ditto. | |
8937 | (compute_base_face): Ditto. | |
8938 | (merge_face_list): Ditto. | |
8939 | (Fmake_face_internal): Removed. | |
8940 | (Fset_face_attribute_internal): Ditto. | |
8941 | (face_name_id_number): Removed. | |
8942 | (Fframe_face_alist): Ditto. | |
8943 | (Fset_frame_face_alist): Ditto. | |
8944 | (Finternal_next_face_id): Ditto. | |
8945 | ||
8946 | * xterm.h (struct x_output): Remove computed_faces, and | |
8947 | param_faces. Remove macros accessing them. | |
8948 | ||
8949 | * xfaces.c: Entirely new face implementation added. | |
8950 | ||
8951 | 1998-04-11 Gerd Moellmann <gerd@gnu.org> | |
8952 | ||
8953 | * dispextern.h (struct glyph_pos): Member `bufpos' renamed | |
8954 | `charpos'. | |
8955 | ||
8956 | 1998-04-10 Gerd Moellmann <gerd@gnu.org> | |
8957 | ||
8958 | * xterm.c (x_scroll_bar_move): Clear only regions not covered by | |
8959 | scroll bar window to reduce flickering. Clear entire height. | |
8960 | ||
8961 | * xdisp.c (move_iterator_vertically_backward): Set iterator's | |
8962 | current_x and hpos to zero after moving to previous line | |
8963 | start. | |
8964 | ||
8965 | 1998-04-03 Gerd Moellmann <gerd@gnu.org> | |
8966 | ||
8967 | * frame.h (FRAME_FACE_CACHE): Access to a frame's face cache. | |
8968 | ||
8969 | * xfaces.c (xlfd_point_size): Compute relative point size of | |
8970 | fonts from font and frame resolution. | |
8971 | (sort_fonts): New function to sort fonts, temporarily setting | |
8972 | font_frame to the frame in effect. | |
8973 | (xlfd_point_size): Take additional frame parameter to be able | |
8974 | to get at the display's resolution. | |
8975 | ||
8976 | * xterm.c (x_setup_relief_colors): Use WHITE_PIX_DEFAULT and | |
8977 | BLACK_PIX_DEFAULT. | |
8978 | (x_setup_relief_color): Use FRAME_X_SCREEN instead of default | |
8979 | screen of display. | |
8980 | ||
8981 | 1998-03-31 Gerd Moellmann <gerd@gnu.org> | |
8982 | ||
8983 | * xfaces.c (choose_face_fontset): Instantiate fontsets. | |
8984 | ||
8985 | * fontset.h: Add external declarations for Vfontset_alias_alist | |
8986 | and Vglobal_fontset_alist. | |
8987 | ||
8988 | * xfaces.c (merge_lisp_face_vector_with_property): Simplified. | |
8989 | (realize_default_face): If frame parameters contain an artificial | |
8990 | font name naming a fontset, set the family of the default face to | |
8991 | the fontset name given by the registry. | |
8992 | ||
8993 | * Makefile.in (alloc.o): Add dependency to dispextern.h. | |
8994 | ||
8995 | 1998-03-22 Gerd Moellmann <gerd@gnu.org> | |
8996 | ||
8997 | * alloc.c (mark_object): Add function prototype. Add cast to | |
8998 | Lisp_Object pointer in call to mark_object for symbol names | |
8999 | because this otherwise gives a warning from gcc 2.8.1. | |
9000 | (mark_face_cache): Mark Lisp objects in realized faces. | |
9001 | ||
9002 | 1998-03-19 Gerd Moellmann <gerd@gnu.org> | |
9003 | ||
9004 | * frame.h (struct frame): Add member face_cache. | |
9005 | ||
9006 | * alloc.c (mark_object): Mark face cache. | |
9007 | (mark_face_cache): Mark Lisp faces in face cache of frame. | |
9008 | ||
9009 | * frame.c (make_frame): Initialize face_cache. | |
9010 | (Fdelete_frame): Free it. | |
9011 | ||
9012 | 1998-03-18 Gerd Moellmann <gerd@gnu.org> | |
9013 | ||
9014 | * xfaces.c: Very first skeleton of functions for face realization, | |
9015 | face merging, face cache etc. | |
9016 | ||
9017 | * dispextern.h (struct rface): Realized faces. Will replace | |
9018 | struct face when tested. | |
9019 | (struct face_cache): Realized face caches. | |
9020 | ||
9021 | * xdisp.c (init_iterator): Initialize area member of display | |
9022 | iterator. | |
9023 | ||
9024 | 1998-03-17 Gerd Moellmann <gerd@gnu.org> | |
9025 | ||
9026 | * xterm.c (x_append_glyph): Use it->area to store glyphs. | |
9027 | ||
9028 | * dispextern.h (struct display_iterator): New member area. | |
9029 | ||
9030 | * xterm.c (note_overwritten_text_cursor): Note when the text | |
9031 | cursor of a window is overwritten. | |
9032 | ||
9033 | * xdisp.c (set_cursor_from_row): If PT is not found in the | |
9034 | row, display the cursor at the start of the row. | |
9035 | ||
9036 | * dispnew.c (direct_output_forward_char): Call | |
9037 | set_cursor_from_row. | |
9038 | ||
9039 | * xdisp.c (setup_iterator_overlay_strings_from_glyph_pos): If | |
9040 | position is not in an overlay string, set iterator's position and | |
9041 | method explicitly so. | |
9042 | (set_cursor_from_row): Correct cursor position calculation. | |
9043 | Make it externally visible. | |
9044 | (redisplay_window): Call set_cursor_from_row so that there is only | |
9045 | one place where the cursor position is calculated from a current | |
9046 | row. | |
9047 | ||
9048 | * dispextern.h (struct display_iterator): New member | |
9049 | overlay_strings_at_end_processed_p. | |
9050 | ||
9051 | * xdisp.c (check_iterator): Perform sanity checks on | |
9052 | display_iterators. | |
9053 | (next_element_from_buffer): Check for overlay strings at ZV. | |
9054 | ||
9055 | 1998-03-16 Gerd Moellmann <gerd@gnu.org> | |
9056 | ||
9057 | * buffer.c (init_buffer_once): Add left_margin_width and | |
9058 | right_margin_width to buffer_local_flags. | |
9059 | ||
9060 | * dispnew.c (margin_glyphs_to_reserve): Function computing | |
9061 | number of glyphs to reserve for a marginal area. | |
9062 | (adjust_glyph_matrix): Call it. | |
9063 | (adjust_frame_glyphs_for_frame_redisplay): Return if frame | |
9064 | is not alive. | |
9065 | ||
9066 | * window.c (Fset_window_margins): Allow floats. | |
9067 | ||
9068 | * buffer.c (syms_of_buffer): Add buffer-local variables | |
9069 | left-margin-width and right-margin-width. Add defaults | |
9070 | default-left-margin-width and default-right-margin-width. | |
9071 | ||
9072 | * buffer.h (struct buffer): New members left_margin_width | |
9073 | and right_margin_width. | |
9074 | ||
9075 | * window.c (Fset_window_margins): Make window the last and | |
9076 | optional argument. | |
9077 | ||
9078 | * xterm.c (x_draw_glyphs): Compute x-positions for rows with | |
9079 | flag no_marginal_areas_p differently. | |
9080 | (x_clear_end_of_line): Ditto. | |
9081 | (x_draw_glyph_string_relief): Compute width of relief differently | |
9082 | for rows with flag no_marginal_areas_p. | |
9083 | ||
9084 | * dispnew.c (update_window_line): Update marginal areas only | |
9085 | for rows that don't have no_marginal_areas_p set. | |
9086 | ||
9087 | * xdisp.c (display_mode_line): Set row's flag no_marginal_areas_p. | |
9088 | (display_menu_bar): Ditto. | |
9089 | ||
9090 | * dispextern.h (struct glyph_row): New member no_marginal_areas_p. | |
9091 | ||
9092 | * dispnew.c (adjust_glyph_matrix): Compute glyph pointers for | |
9093 | marginal areas in window-based redisplay. | |
9094 | ||
9095 | * dispextern.h (struct glyph_matrix): New members | |
9096 | left_margin_glyphs and right_margin_glyphs. | |
9097 | ||
9098 | 1998-03-15 Gerd Moellmann <gerd@gnu.org> | |
9099 | ||
9100 | * minibuf.c (read_minibuf_unwind): Return Lisp_Object. | |
9101 | ||
9102 | * charset.c (non_ascii_char_to_string): Use char type parameters | |
9103 | because the function is used that way from outside. Use unsigned | |
9104 | char internally. | |
9105 | ||
9106 | * window.c (change_window_height): Return void. | |
9107 | (make_dummy_parent): Return void. | |
9108 | (init_window_once): Return void. | |
9109 | (syms_of_window): Ditto. | |
9110 | (keys_of_window): Ditto. | |
9111 | (delete_window): Correct return with and without value. | |
9112 | ||
9113 | * buffer.c (record_buffer): Return void. | |
9114 | ||
9115 | * marker.c (unchain_marker): Return void. | |
9116 | ||
9117 | * window.c (unshow_buffer): Return void. | |
9118 | (replace_window): Ditto. | |
9119 | (delete_window): Ditto. | |
9120 | ||
9121 | * term.c (delete_glyphs_hook): Void return type. | |
9122 | (ring_bell_hook): Ditto. | |
9123 | (set_terminal_window_hook): Ditto. | |
9124 | ||
9125 | * sysdep.c (init_sigio): Return void. | |
9126 | ||
9127 | * xterm.c (x_set_window_size): Return void. | |
9128 | (x_calc_absolute_position): Ditto. | |
9129 | (x_set_offset): Ditto. | |
9130 | (x_focus_on_frame): Ditto. | |
9131 | (x_unfocus_frame): Ditto. | |
9132 | (x_make_frame_visible): Ditto. | |
9133 | (x_make_frame_invisible): Ditto. | |
9134 | (x_iconify_frame): Ditto. | |
9135 | (x_destroy_window): Ditto. | |
9136 | (x_wm_set_window_state): Ditto. | |
9137 | (x_wm_set_icon_pixmap): Ditto. | |
9138 | (x_wm_set_icon_position): Ditto. | |
9139 | (x_initialize): Ditto. | |
9140 | (x_error_quitter): Ditto. | |
9141 | (x_destroy_window): Use xfree instead of free. | |
9142 | ||
9143 | * keyboard.c (clear_waiting_for_input): Return void. | |
9144 | ||
9145 | * xterm.c (x_wm_set_size_hint): Return void. | |
9146 | (x_raise_frame): Ditto. | |
9147 | (refreshicon): Ditto. | |
9148 | (x_error_catcher): Ditto. | |
9149 | (x_clear_errors): Ditto. | |
9150 | ||
9151 | * keyboard.c (record_asynch_buffer_change): Return void. | |
9152 | ||
9153 |