Commit | Line | Data |
---|---|---|
beb0bc36 DL |
1 | 2000-02-21 Dave Love <fx@gnu.org> |
2 | ||
3 | * frame.c (Vmouse_position_function): New variable. | |
4 | (Fmouse_position): Use it. | |
5 | (syms_of_frame): Install it. | |
6 | ||
7 | * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'. | |
8 | ||
1d92afcd GM |
9 | 2000-02-20 Gerd Moellmann <gerd@gnu.org> |
10 | ||
11 | * fileio.c (Finsert_file_contents): Unbind the binding of | |
12 | standard-output done by temp_output_buffer_setup. | |
329eed9f GM |
13 | |
14 | * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless | |
15 | Vmocklisp_arguments is nil. Inline Fcar and Fcdr. | |
16 | (specbind, unbind_to): Handle most common case of non-constant | |
17 | symbol with trivial value specially. | |
18 | ||
19 | * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case. | |
20 | ||
2d06696f RS |
21 | 2000-02-20 Richard M. Stallman <rms@caffeine.ai.mit.edu> |
22 | ||
23 | * data.c (Fmake_variable_buffer_local): Doc fix. | |
24 | Init found_for_buffer to 0. | |
25 | (Fmake_variable_frame_local): If the variable has already | |
26 | been buffer-local, set the check_frame field. | |
27 | ||
1d4311c3 EZ |
28 | 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il> |
29 | ||
30 | * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data | |
31 | produced for CODING_MODE_LAST_BLOCK requires. | |
32 | ||
2dc95ddd DL |
33 | 2000-02-18 Dave Love <fx@gnu.org> |
34 | ||
35 | * keyboard.c (echo_keystrokes): Remove declaration. | |
36 | (Vecho_keystrokes) New variable. | |
37 | (read_char, record_menu_key, read_key_sequence): Use it to allow | |
38 | use of float value. | |
39 | (syms_of_keyboard): Change Vecho_keystrokes declaration. | |
40 | ||
41 | * lread.c: Undef feature selection macros before defining. | |
42 | ||
f0930f35 GM |
43 | 2000-02-18 Gerd Moellmann <gerd@gnu.org> |
44 | ||
45 | * data.c (let_shadows_buffer_binding_p): Ignore specbindings | |
46 | for symbols other than the symbol in question. | |
47 | ||
e3d4de90 DL |
48 | 2000-02-17 Dave Love <fx@gnu.org> |
49 | ||
50 | * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization. | |
51 | ||
0b378936 GM |
52 | 2000-02-17 Gerd Moellmann <gerd@gnu.org> |
53 | ||
d621caf7 GM |
54 | * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef. |
55 | ||
0b378936 GM |
56 | * alloc.c (enum mem_type): Compile unconditionally. |
57 | ||
3b451f74 EZ |
58 | 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il> |
59 | ||
60 | * xfaces.c (tty_defined_color): Don't return faulire indication | |
61 | for unspecified-fg and unspecified-bg pseudo-colors. | |
62 | ||
10689a01 GM |
63 | 2000-02-17 Gerd Moellmann <gerd@gnu.org> |
64 | ||
1216f5e4 GM |
65 | * alloc.c (mark_object): Don't mark symbol names in pure space. |
66 | (gc_sweep): Don't unmark symbol names in pure space. | |
67 | ||
68 | * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS) | |
69 | (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES) | |
70 | [GC_MARK_STACK]: New defines. | |
71 | (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO) | |
72 | [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops. | |
73 | ||
74 | * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base. | |
75 | ||
76 | * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use | |
77 | allocate_buffer instead of xmalloc. | |
78 | ||
79 | * alloc.c (toplevel): Include setjmp.h. | |
80 | (PURE_POINTER_P): New define. | |
81 | (enum mem_type) [GC_MARK_STACK]: New enumeration. | |
82 | (Vdead) [GC_MARK_STACK]: New variable. | |
83 | (lisp_malloc): Add parameter TYPE, call mem_insert if | |
84 | GC_MARK_STACK is defined. | |
85 | (allocate_buffer): New function. | |
86 | (lisp_free) [GC_MARK_STACK]: Call mem_delete. | |
87 | (free_float) [GC_MARK_STACK]: Set type to Vdead. | |
88 | (free_cons) [GC_MARK_STACK]: Set car to Vdead. | |
89 | (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables. | |
90 | (MEM_NIL) [GC_MARK_STACK]: New define. | |
91 | (struct mem_node) [GC_MARK_STACK]: New structure. | |
92 | (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup) | |
93 | (mem_delete_fixup, mem_rotate_left, mem_rotate_right) | |
94 | (live_string_p, live_cons_p, live_symbol_p, live_float_p) | |
95 | (live_misc_p, live_vector_p, live_buffer_p, mark_memory) | |
96 | (mark_stack) [GC_MARK_STACK]: New functions. | |
97 | (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack. | |
98 | (clear_marks): Removed. | |
99 | (gc_sweep): Set free conses' car, free floats' type, free | |
100 | symbols' function to Vdead. Use lisp_free to free buffers. | |
101 | (init_alloc_once): Initialize Vdead. | |
102 | (survives_gc_p): Return non-zero for pure objects. | |
103 | ||
104 | * alloc.c: Add comments throughout the file. | |
105 | ||
2503c8b1 GM |
106 | * atimer.c (stop_other_atimers): Don't call cancel_atimer because |
107 | that unblocks alarms. | |
108 | ||
8389e1e2 GM |
109 | * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c, |
110 | emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h, | |
111 | Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'. | |
112 | ||
10689a01 GM |
113 | * frame.c (make_frame): Set frame initiallly to `garbaged'. |
114 | ||
bfc17d18 KH |
115 | 2000-02-17 Kenichi Handa <handa@etl.go.jp> |
116 | ||
4a09dee0 KH |
117 | * xdisp.c (decode_mode_spec_coding): Delete superfluous code to |
118 | avoid infinite error signaling. Allocate sufficient memory for | |
119 | eol_str in the case that eoltype is Lisp_Int. | |
bfc17d18 | 120 | |
2b927d02 SM |
121 | 2000-02-17 Stefan Monnier <monnier@cs.yale.edu> |
122 | ||
123 | * syntax.c (Fforward_comment): Undo the previous change, since cc-mode | |
124 | depends on the previous behavior. | |
125 | ||
b49cb764 GM |
126 | 2000-02-16 Gerd Moellmann <gerd@gnu.org> |
127 | ||
128 | * sysdep.c (vfork) [!HAVE_VFORK]: Removed. | |
129 | ||
99e95407 GM |
130 | 2000-02-15 Gerd Moellmann <gerd@gnu.org> |
131 | ||
132 | * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define. | |
133 | ||
134 | * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]: | |
b49cb764 | 135 | Workaround for FreeBSD bug. Clear output queue after EAGAIN in |
99e95407 GM |
136 | write(2). |
137 | ||
6ffd3cf7 RS |
138 | 2000-02-15 Richard M. Stallman <rms@gnu.org> |
139 | ||
140 | * data.c (set_internal): Don't make variable buffer-local | |
141 | if within a let-binding for the same buffer. | |
142 | (let_shadows_buffer_binding_p): New function. | |
143 | ||
144 | * eval.c (specbind): For buffer-local value, | |
145 | record the current buffer also. | |
146 | (unbind_to): Cope with that change. | |
147 | ||
cad53475 GM |
148 | 2000-02-15 Gerd Moellmann <gerd@gnu.org> |
149 | ||
150 | * window.c (Fsave_window_excursion): Doc fix. | |
151 | ||
1aa963c8 SM |
152 | 2000-02-15 Stefan Monnier <monnier@cs.yale.edu> |
153 | ||
154 | * syntax.c (back_comment): Make sure we only consider comment-starters | |
155 | of the relevant style and return -1 in case of a failure to find the | |
156 | beginning of the comment. | |
157 | (Fforward_comment): If back_comment fails, go back to the position just | |
158 | after the comment-end. | |
159 | (scan_lists): Add comment describing a very minor bug. | |
160 | ||
b9b84fd3 SM |
161 | 2000-02-14 Stefan Monnier <monnier@cs.yale.edu> |
162 | ||
163 | * minibuf.c (Ftry_completion, Fall_completions): Add a reference to | |
164 | `completion-regexp-list' in the docstring. | |
165 | ||
3a28db80 DL |
166 | 2000-02-14 Dave Love <fx@gnu.org> |
167 | ||
168 | * xfaces.c (tty_defined_color): Declare color_idx unsigned long. | |
169 | ||
fb4a568d SM |
170 | 2000-02-14 Stefan Monnier <monnier@cs.yale.edu> |
171 | ||
172 | * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS | |
173 | to Emacs' syntax. Also fix the comment about set/not-set meanings | |
174 | since Emacs syntax is not the value 0 any more. | |
175 | * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax | |
176 | since it's now part of RE_SYNTAX_EMACS. | |
177 | ||
1063ebb5 DL |
178 | 2000-02-12 Dave Love <fx@gnu.org> |
179 | ||
180 | * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on | |
181 | Alpha. | |
182 | ||
fb07a302 GM |
183 | 2000-02-12 Gerd Moellmann <gerd@gnu.org> |
184 | ||
185 | * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively. | |
186 | ||
aaf2320c DL |
187 | 2000-02-12 Dave Love <fx@gnu.org> |
188 | ||
189 | * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc. | |
190 | ||
191 | * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h: | |
fb07a302 GM |
192 | * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h: |
193 | * s/hpux.h: Don't define HAVE_VFORK. | |
aaf2320c DL |
194 | |
195 | * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST. | |
196 | ||
197 | * s/nextstep.h: Don't define HAVE_ALLOCA. | |
198 | ||
199 | * config.in: Add vfork bits. | |
200 | ||
eedf8bde GM |
201 | 2000-02-12 Gerd Moellmann <gerd@gnu.org> |
202 | ||
203 | * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register | |
204 | unwind function to undo the effect of stopping atimers. | |
205 | ||
206 | * keyboard.c (bind_polling_period): Stop all timers except | |
207 | poll_timer. | |
208 | ||
209 | * atimer.c (stopped_atimers): New variable. | |
210 | (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers): | |
211 | New functions. | |
212 | ||
213 | * atimer.h (stop_other_atimers, run_all_atimers) | |
214 | (unwind_stop_other_atimers): Add function prototypes. | |
215 | ||
216 | * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined. | |
217 | ||
8476c2f8 KR |
218 | 2000-02-11 Ken Raeburn <raeburn@gnu.org> |
219 | ||
220 | * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff | |
221 | library may depend on jpeg. | |
222 | (atimer.o): Depends on atimer.c. | |
223 | ||
0e85e4a3 KH |
224 | 2000-02-11 Kenichi Handa <handa@etl.go.jp> |
225 | ||
226 | * insdel.c (del_range_1): Call update_compositions. | |
227 | (del_range_both): Call update_compositions just once.. | |
228 | ||
97fa0cc8 DL |
229 | 2000-02-10 Dave Love <fx@gnu.org> |
230 | ||
231 | * xfns.c (create_frame_xic): Fix initialization of automatic | |
232 | aggregates for pcc. | |
233 | ||
25566a3c KH |
234 | 2000-02-09 Kenichi Handa <handa@etl.go.jp> |
235 | ||
236 | * ccl.c (CCL_MAKE_CHAR): New macro. | |
237 | (ccl_driver) <CCL_TranslateCharacter>: Check the validity of | |
238 | registers by CCL_MAKE_CHAR before calling translate_char. | |
239 | <CCL_TranslateCharacterConstTbl> Likewise. | |
240 | ||
69da54ba DL |
241 | 2000-02-08 Dave Love <fx@gnu.org> |
242 | ||
243 | * lread.c (__EXTENSIONS__): Define. | |
244 | ||
f7136ee8 GM |
245 | 2000-02-08 Gerd Moellmann <gerd@gnu.org> |
246 | ||
247 | * puresize.h (BASE_PURESIZE): Increase to 650000. | |
248 | ||
7768790b EZ |
249 | 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il> |
250 | ||
251 | * msdos.c (XMenuActivate): Turn off the cursor after displaying | |
252 | the help message. | |
253 | ||
38fd211b EZ |
254 | 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il> |
255 | ||
256 | * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue, | |
257 | md, mh, mb, mr, and me to the fake termcap entry. | |
258 | ||
66e4690f KR |
259 | 2000-02-06 Ken Raeburn <raeburn@gnu.org> |
260 | ||
261 | * sound.c (sound_cleanup): Don't call device close routine if the | |
262 | function pointer is null. | |
263 | ||
a75dfea0 AI |
264 | 2000-02-06 Andrew Innes <andrewi@gnu.org> |
265 | ||
266 | * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM, | |
267 | around image definitions and prototypes. | |
268 | (gamma_correct) [WINDOWSNT]: New prototype. | |
269 | ||
270 | * w32term.c (x_make_frame_visible): Replace call to | |
271 | input_poll_signal with poll_for_input. | |
272 | ||
273 | * window.c [WINDOWSNT]: Include w32term.h. | |
274 | ||
275 | * xdisp.c [WINDOWSNT]: Include w32term.h. | |
276 | ||
277 | * makefile.nt: Add dependencies on w32gui.h. | |
278 | (OBJ1): Include atimer.obj. | |
279 | ($(BLD)\atimer.obj): New dependency rule. | |
280 | ||
281 | * w32.c (sigmask): New function (does nothing). | |
282 | (sigunblock): Ditto. | |
283 | ||
284 | * frame.c [WINDOWSNT]: Include w32term.h. | |
285 | ||
286 | * w32gui.h (struct W32FontStruct): Add ascent and descent slots. | |
287 | ||
288 | * lread.c (syms_of_lread): Fix literal newlines. | |
289 | ||
290 | * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around | |
291 | the string constant limit (2048 bytes) in MSVC. | |
292 | (main): Ditto. | |
293 | ||
59ddecde GM |
294 | 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp> |
295 | ||
296 | * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit | |
297 | area. | |
298 | (x_display_cursor) [HAVE_X_I18N]: Don't set it here. | |
299 | (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't | |
300 | dispatch the event. | |
301 | ||
07590973 DL |
302 | 2000-02-04 Dave Love <fx@gnu.org> |
303 | ||
304 | * fileio.c: Remove some unused vars. | |
305 | (_GNU_SOURCE): Define (for euidaccess). | |
306 | ||
307 | * lread.c (_XOPEN_SOURCE): Declare (for ftello). | |
308 | ||
309 | * minibuf.c (read_minibuf_noninteractive): Remove undeclared | |
310 | gcpro1, gcpro2. | |
311 | (read_minibuf): Deal with allow_props correctly. | |
312 | ||
649351f9 EZ |
313 | 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il> |
314 | ||
315 | * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000. | |
316 | ||
66e4690f | 317 | 2000-02-03 Ken Raeburn <raeburn@gnu.org> |
f1b9c7c1 KR |
318 | |
319 | * search.c (compile_pattern): If a cache entry has a nil regexp, | |
320 | fill in that entry instead of clobbering a previously cached | |
321 | string regexp. | |
322 | ||
66e4690f | 323 | 2000-02-02 Ken Raeburn <raeburn@gnu.org> |
15c9cf81 KR |
324 | |
325 | * puresize.h (BASE_PURESIZE): Increase to 610000. | |
326 | ||
d240a249 GM |
327 | 2000-02-02 Gerd Moellmann <gerd@gnu.org> |
328 | ||
329 | * frame.c (Fframe_parameters): Add GCPRO because tty_color_name | |
330 | can GC. | |
331 | ||
ca91fb26 KH |
332 | 2000-02-02 Kenichi Handa <handa@etl.go.jp> |
333 | ||
25660570 KH |
334 | * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address |
335 | instead of incrementing ic directly. | |
336 | <CCL_WriteExprConst> Likewise. | |
337 | <ccl_set_expr>: Set ic to jump_address. | |
338 | ||
ca91fb26 KH |
339 | * fileio.c (e_write): Fix the handling of |
340 | CODING_FINISH_INSUFFICIENT_SRC. | |
341 | ||
2ede9689 DL |
342 | 2000-02-01 Dave Love <fx@gnu.org> |
343 | ||
344 | * editfns.c (Fpropertize): Doc fix. | |
345 | ||
346 | * process.c (Fstart_process): Doc fix. | |
347 | ||
348 | * eval.c: Fix various doc strings not to duplicate information | |
349 | from help-manyarg-func-alist. | |
350 | ||
351 | * window.c (Fset_window_margins): Don't make interactive. Doc | |
352 | fix. | |
353 | ||
354 | * doc.c (Vhelp_manyarg_func_alist): New variable. | |
355 | (Fdocumentation): Use it. | |
356 | (syms_of_doc): Define it. | |
357 | ||
b6680a0e GM |
358 | 2000-01-31 Gerd Moellmann <gerd@gnu.org> |
359 | ||
2cb750ba GM |
360 | * xterm.c (xim_open_dpy): Remove unused local variable. |
361 | ||
74e9213b GM |
362 | * emacs.c (USAGE): Use term `display options' instead of `X |
363 | options'. | |
364 | ||
365 | * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function. | |
366 | (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it. | |
367 | ||
b6680a0e GM |
368 | * fns.c (sweep_weak_table): New function. |
369 | (sweep_weak_hash_tables): Use it. Keep on marking until there | |
370 | is no more change. | |
371 | ||
994c5afe GM |
372 | 2000-01-30 Gerd Moellmann <gerd@gnu.org> |
373 | ||
374 | * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure | |
375 | that XTread_socket does not crash by trying to call XNoOp on a | |
376 | closed display. | |
377 | ||
f00276e3 JR |
378 | 2000-01-30 Jason Rumney <jasonr@gnu.org> |
379 | ||
380 | * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to): | |
381 | Change selected_frame to SELECTED_FRAME (). | |
382 | (w32_console_mouse_position): Remove #ifndef MULE from around | |
383 | `insist' parameter. | |
384 | ||
385 | * makefile.nt: Remove dosfns.obj. | |
386 | ||
387 | * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors. | |
388 | ||
389 | * w32fns.c (w32_defined_color): Check for valid frame before | |
390 | applying gamma correction. Eliminate dependency on frame elsewhere. | |
391 | (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH. | |
392 | (w32_to_x_font): Use resx and resy not height_in and width_in. | |
393 | (x_to_w32_font): Doc fix. | |
394 | (xlfd_strip_height): New function to strip and return font height. | |
395 | (w32_font_match): Compare height separately from rest of xlfd | |
396 | spec, using xlfd_strip_height. | |
397 | ||
398 | * w32term.c (w32_term_init): Swap resx and height_in, resy and | |
399 | width_in. Use w32_defined_color in place of defined_color. | |
400 | ||
401 | * w32faces.c: Merge more of DOS and X specifics in preparation for | |
402 | merge with xfaces.c. | |
403 | (defined_color): Remove FIXME comment. | |
404 | (tty_color_name): Provide w32-specific function. | |
405 | (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially. | |
406 | ||
407 | * w32console.c (turn_on_face, turn_off_face): Removed. | |
408 | (w32_face_attributes): New function. | |
409 | (Global_variables): Reduce scope where possible. | |
410 | (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as | |
411 | fill attribute. | |
412 | (hl_mode): Don't modify text attributes. | |
413 | (write_glyphs): Don't do anything if len <= 0. Use | |
414 | w32_face_attributes to get attributes for drawing. Write | |
415 | terminating codes using char_attr_normal. | |
416 | (reset_terminal_modes, set_terminal_modes): Turn off highlight. | |
417 | (update_begin, update_end): Likewise. | |
418 | (vga_stdcolor_name): New function. | |
419 | (initialize_w32_display): Remove char_attr_reverse and char_attr. | |
420 | (Fset_screen_color): Remove char_attr_reverse. | |
421 | ||
b08e8bb2 GM |
422 | 2000-01-29 Gerd Moellmann <gerd@gnu.org> |
423 | ||
424 | * xfns.c (xic_set_preeditarea): Take window parameter and | |
425 | window-relative pixel-positions. | |
426 | ||
427 | * xterm.c (x_display_cursor): Set XIC pre-edit area only if window | |
428 | is its frame's selected window. | |
429 | (xim_instantiate_callback): Likewise. | |
430 | ||
431 | * xfns.c (x_create_im): Removed. | |
432 | (DEFAULT_STYLE, DEFAULT_FONT): Removed. | |
433 | (supported_xim_styles): Renamed from supported_styles. | |
434 | (best_xim_style): Renamed from best_style. | |
435 | (create_frame_xic): Renamed from xic_create_frame. | |
436 | (free_frame_xic): Renamed from xic_destroy_frame. | |
437 | ||
438 | 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp> | |
439 | ||
440 | * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of | |
441 | our frames, call XFilterEvent with 2nd parameter `None'. | |
442 | (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString | |
443 | returning XBufferOverflow. | |
444 | (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status | |
445 | area. | |
446 | (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area. | |
447 | (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset. | |
448 | (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback) | |
449 | (xim_initialize, xim_close) | |
450 | [HAVE_X_I18N && HAVE_X11R6]: New functions. | |
451 | (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame. | |
452 | (x_term_init) [HAVE_X_I18N]: Call xim_initialize. | |
453 | (x_delete_display) [HAVE_X_I18N]: Call xim_close. | |
454 | ||
455 | * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim' | |
456 | and `xim_styles'. | |
457 | (struct x_output) [HAVE_X_I18N]: Remove member `xim', add | |
458 | `xic_style' and `xic_xfs'. | |
459 | (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES) | |
460 | (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros. | |
461 | (FRAME_XIM): Removed. | |
462 | ||
463 | * xfns.c (supported_styles): New variable. | |
464 | (DEFAULT_STYLE, DEFAULT_FONT): New macros | |
465 | (xic_create_xfontset, best_style, xic_create_frame) | |
466 | (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea) | |
467 | (xic_set_xfontset): New functions. | |
468 | ||
142e109c DL |
469 | 2000-01-28 Dave Love <fx@gnu.org> |
470 | ||
471 | * s/irix6-5.h: Revert last change after change to irix5-0.h. | |
472 | ||
473 | * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0. | |
474 | ||
b02786f9 GM |
475 | 2000-01-28 Gerd Moellmann <gerd@gnu.org> |
476 | ||
d060bc9f GM |
477 | * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode |
478 | for *scratch* if it already existed. | |
479 | ||
b02786f9 GM |
480 | * emacs.c (USAGE): New macro. |
481 | (main): Use it to display usage information. | |
482 | ||
2c52d7e4 EZ |
483 | 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il> |
484 | ||
485 | Support for the menu-help feature: | |
486 | ||
487 | * msdos.h: Change prototypes of XMenuAddSelection and | |
488 | XMenuActivate. | |
489 | ||
490 | * msdos.c (IT_clear_end_of_line): Print the extent of the cleared | |
491 | part of the line to the termscript file. | |
492 | (IT_clear_to_end): Clear the entire line, not just its beginning. | |
493 | (menu_help_message, prev_menu_help_message): New variables. | |
494 | (IT_menu_make_room): Make room for the help_text member. | |
495 | (IT_menu_display): New argument disp_help; all callers changed. | |
496 | If disp_help is non-zero, store the help text of the active menu | |
497 | item in menu_help_message. | |
498 | (XMenuAddPane): Initialize the help_text member to NULL. | |
499 | (XMenuAddSelection): New argument help_text. Store it in the | |
500 | XMenu structure. | |
501 | (XMenuActivate): New argument help_callback. If the value of | |
502 | menu_help_message has changed since the last time, display the | |
503 | menu help message text while waiting for the mouse to move. Clear | |
504 | the echo area before exiting. | |
505 | (XMenuDestroy): Free the help_text member. | |
506 | ||
ffe0bcd1 GM |
507 | 2000-01-27 Gerd Moellmann <gerd@gnu.org> |
508 | ||
509 | * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to | |
510 | XMenuAddSelection. Pass help callback to XMenuActivate. | |
511 | (menu_help_callback) [!USE_X_TOOLKIT]: New function. | |
512 | ||
50dbd23f EZ |
513 | 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il> |
514 | ||
515 | * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS | |
516 | and EMACS_SET_USECS. | |
517 | ||
f5941bf8 GM |
518 | 2000-01-26 Dave Love <fx@gnu.org> |
519 | ||
6c67ddee DL |
520 | * editfns.c (Fchar_after, Fchar_before): Doc fix. |
521 | ||
f5941bf8 GM |
522 | * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where |
523 | an error may be signalled. | |
524 | ||
9e49c990 GM |
525 | 2000-01-26 Gerd Moellmann <gerd@gnu.org> |
526 | ||
fc3cb460 GM |
527 | * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef |
528 | LD_SWITCH_SYSTEM inherited from irix5-0.h. | |
529 | ||
9e49c990 GM |
530 | * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo. |
531 | ||
d0c037d8 GM |
532 | 2000-01-25 Gerd Moellmann <gerd@gnu.org> |
533 | ||
534 | * charset.c (Fstring): If there is a multibyte char among | |
535 | the args, always return a multibyte string. | |
536 | ||
e12489f9 GM |
537 | 2000-01-25 Gerd Moellmann <gerd@gnu.org> |
538 | ||
539 | * sysdep.c (sys_select): Turn atimers off and on instead of | |
540 | recording and restoring old alarm handler | |
541 | ||
542 | * process.c (toplevel): Include atimer.h. | |
543 | (create_process_1): Rewritten. | |
544 | (create_process): Use atimers instead of alarm. | |
545 | (wait_reading_process_input) [hpux]: Turn atimers off instead | |
546 | of turning off SIGALRM. | |
547 | (wait_reading_process_input): Turn off atimers instead off | |
548 | calling stop_polling. | |
549 | ||
550 | * emacs.c (main): Call init_atimer. | |
551 | ||
552 | * keyboard.c (toplevel): Include systime.h and atimer.h. | |
553 | (polling_for_input): Removed because unused. | |
554 | (input_poll_signal) [POLL_FOR_INPUT]: Removed. | |
555 | (poll_timer): New variable. | |
556 | (poll_for_input, poll_for_input_1): New functions. | |
557 | (start_polling, stop_polling): Rewritten. | |
558 | ||
559 | * keyboard.h (polling_for_input): Removed. | |
560 | ||
561 | * atimer.h, atimer.c: New files. | |
562 | ||
563 | * Makefile.in (obj): Add atimer.o. | |
564 | (atimer.o): New target. | |
565 | ||
566 | * blockinput.h (pending_atimers): Add extern declaration. | |
567 | (UNBLOCK_INPUT): Rewritten. Handle pending atimers. | |
568 | ||
569 | * lisp.h (popup_activated_flag): Add extern declaration. | |
570 | ||
571 | * xmenu.c (popup_activated_flag): Make externally visible. | |
572 | (popup_activate_callback) [USE_MOTIF]: Increment | |
573 | popup_activated_flag. | |
574 | (popup_deactivate_callback) [USE_MOTIF]: Decrement it. | |
575 | ||
576 | * xterm.c (toplevel): Include atimer.h. | |
577 | (toolkit_scroll_bar_interaction): New variable. | |
578 | (Fxt_process_timeouts): Removed. | |
579 | (x_process_timeouts): New function. | |
580 | (xt_action_hook): Clear toolkit_scroll_bar_interaction. | |
581 | (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction. | |
582 | (x_make_frame_visible): Call poll_for_input_1 instead of | |
583 | input_poll_signal. Don't call alarm. | |
584 | (x_initialize): Install timer calling x_process_timeouts. | |
585 | ||
1e5279b9 DL |
586 | 2000-01-24 Dave Love <fx@gnu.org> |
587 | ||
6c67ddee | 588 | * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now. |
1e5279b9 DL |
589 | Don't use -cckr -- apparently not now necessary. |
590 | ||
edf6aeb8 EZ |
591 | 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il> |
592 | ||
593 | * msdos.c (IT_menu_display): Truncate long menu lines at the right | |
594 | screen boundary. | |
595 | ||
9badad41 JR |
596 | 2000-01-23 Jason Rumney <jasonr@gnu.org> |
597 | ||
598 | * w32fns.c (w32_defined_color): Apply gamma correction before | |
599 | trying to map to the palette. | |
600 | (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame | |
601 | to w32_clear_rect. | |
602 | ||
603 | * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc | |
604 | here. Callers changed to always pass real device context. | |
605 | (w32_draw_bitmap): Likewise. | |
606 | (w32_get_glyph_overhangs): Likewise. | |
607 | (w32_draw_box_rect): Make use of s->hdc rather than getting a new | |
608 | one. | |
609 | (w32_set_vertical_scroll_bar): Pass correct HWND parameters to | |
610 | pfnSetScrollInfo and SetScrollRange. | |
611 | (x_get_char_face_and_encoding): Don't turn iso8859-1 characters | |
612 | back into MULE characters after decoding them. | |
613 | (x_get_glyph_face_and_encoding): Likewise. | |
614 | (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when | |
615 | GetCharABCWidthsW fails, since this is defined on Windows 9x. | |
616 | (x_produce_glyphs): Calculate per char metrics for a character | |
617 | that we know exists in default font when font_not_found_p is true. | |
618 | ||
63bd786b JR |
619 | 2000-01-22 Jason Rumney <jasonr@gnu.org> |
620 | ||
621 | * makefile.nt (intervals.obj, composite.obj): New modules. | |
622 | (composite.h): Added as dependency where appropriate. | |
623 | ||
624 | * w32gui.h (XGCValue): New struct for emulating X GCs. | |
625 | ||
626 | * w32term.h (XCharStruct): New struct for emulating X. | |
627 | ||
628 | * w32console.c (turn_on_face, turn_off_face): New functions. | |
629 | (change_line_highlight): New prototype for new redisplay. | |
630 | (write_glyphs): Support multibyte text. Support faces. | |
631 | ||
632 | * w32faces.c: Complete rewrite for new redisplay based on new | |
633 | xfaces.c. | |
634 | ||
635 | * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame | |
636 | throughout. struct frame * in place of FRAME_PTR. | |
637 | Skeleton support for images, toolbars, tooltips from xfns.c. | |
638 | (Fx_create_frame): Use system default for default scroll bar | |
639 | width. | |
640 | (w32_get_arg): Renamed from x_get_arg. | |
641 | (Fx_file_dialog): New function. | |
642 | (w32_list_fonts): Check cache before asking system. | |
643 | (Vw32_enable_synthesized_fonts): New variable. | |
644 | (Vw32_enable_italics): Obsolete, removed. | |
645 | ||
646 | * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to): | |
647 | Use SELECTED_FRAME macro. | |
648 | ||
649 | * w32menu.c: Add skeleton support for help strings on menus. | |
650 | (add_menu_item): Native checkbox and radio support added, but not | |
651 | yet enabled due to bugs. | |
652 | (push_menu_item): Add parameters type, selection and help. | |
653 | Callers updated. | |
654 | Formatting changes to reduce unnecessary diffs with xmenu.c. | |
655 | ||
656 | * w32select.c (Fw32_set_clipboard_data): Update call to | |
657 | find_charset_in_str. | |
658 | ||
659 | * w32term.c: Complete rewrite for new redisplay based on new | |
660 | xterm.c with necessary sections merged back in from old w32term.c. | |
661 | ||
6ffd3cf7 | 662 | 2000-01-21 Richard M. Stallman <rms@gnu.org> |
b50c9214 RS |
663 | |
664 | * data.c (set_internal): Further fix in same criterion. | |
665 | ||
6ffd3cf7 | 666 | 2000-01-20 Richard M. Stallman <rms@gnu.org> |
8cc95642 RS |
667 | |
668 | * data.c (set_internal): Fix the criteria for whether | |
669 | to swap out the old cached binding. | |
670 | ||
60af03f1 DL |
671 | 2000-01-19 Dave Love <fx@gnu.org> |
672 | ||
673 | * lread.c: (syms_of_lread) [user-init-file]: Doc change. | |
674 | ||
f9be074f KH |
675 | 2000-01-18 Kenichi Handa <handa@etl.go.jp> |
676 | ||
677 | * regex.c (re_compile_fastmap): While checking a range table for | |
678 | `charset', skip flag bits for a character class correctly. | |
679 | ||
52b8dbf9 GM |
680 | 2000-01-17 Gerd Moellmann <gerd@gnu.org> |
681 | ||
d36100c9 GM |
682 | * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC. |
683 | ||
52b8dbf9 GM |
684 | * xfns.c (x_window): Call lw_create_widget with new parameter |
685 | list. | |
686 | ||
687 | * widget.c (EmacsFrameSetCharSize): Change size of children first | |
688 | because of problems with main window geometry management under | |
689 | Lesstif. | |
690 | ||
691 | * xmenu.c (enum menu_item_idx): New enumeration replacing defines | |
692 | MENU_ITEMS_ITEM_.*. | |
693 | (MENU_ITEMS_ITEM_HELP): New enumerator. | |
694 | (push_menu_item): Add parameter HELP. Record help in menu_items. | |
695 | (single_menu_item, single_submenu, list_of_items): Call | |
696 | push_menu_item with new parameter. | |
697 | (single_submenu): Set help string in widget value. | |
698 | (menu_highlight_callback): New function. | |
699 | (set_frame_menubar): Call lw_create_widget with new | |
700 | parameter list. | |
701 | (xmenu_show, xdialog_show): Ditto. | |
702 | ||
3139018f GM |
703 | 2000-01-13 Gerd Moellmann <gerd@gnu.org> |
704 | ||
705 | * sound.c (Fplay_sound): Improve doc string. | |
706 | ||
83c8f461 RS |
707 | 2000-01-11 Richard M. Stallman <rms@gnu.org> |
708 | ||
709 | * lisp.h (set_internal): Enter the new arg. | |
710 | ||
711 | * eval.c (specbind): Record buffer-local variables specially, | |
712 | indicating which buffer's binding was saved. | |
713 | (unbind_to): Restore buffer-local variables specially | |
714 | in the proper buffer. | |
715 | ||
716 | * data.c (set_internal): New arg BUF. | |
717 | ||
718 | * eval.c (specbind, unbind_to): Pass new arg to set_internal. | |
719 | * data.c (Fset): Pass new arg to set_internal. | |
720 | * bytecode.c (Fbyte_code): Pass new arg to set_internal. | |
721 | ||
1fab1775 GM |
722 | 2000-01-11 Gerd Moellmann <gerd@gnu.org> |
723 | ||
724 | * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, | |
725 | xprintsym. | |
726 | ||
83c8f461 | 727 | 2000-01-11 Richard M. Stallman <rms@gnu.org> |
6f59462e RS |
728 | |
729 | * minibuf.c (Ftry_completion): Doc fix. | |
730 | ||
7a85e4df GM |
731 | 2000-01-11 Gerd Moellmann <gerd@gnu.org> |
732 | ||
733 | * keyboard.c (Fclear_this_command_keys): Clear recent_keys | |
734 | vector, too. | |
735 | ||
a970dae4 AS |
736 | 2000-01-11 Andreas Schwab <schwab@suse.de> |
737 | ||
738 | * coding.c (code_convert_region): Initialize total_skip. | |
739 | ||
c65d14ee DL |
740 | 2000-01-08 Dave Love <fx@gnu.org> |
741 | ||
742 | * eval.c (Fuser_variable_p): Check customizability too. | |
743 | ||
834938d2 GM |
744 | 2000-01-07 Gerd Moellmann <gerd@gnu.org> |
745 | ||
746 | * minibuf.c (Fcompleting_read): Doc fix. | |
747 | ||
e0303cd6 GM |
748 | 2000-01-05 Gerd Moellmann <gerd@gnu.org> |
749 | ||
8a26744b GM |
750 | * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and |
751 | -L /usr/local/lib. | |
752 | ||
e0303cd6 GM |
753 | * xfns.c (x_create_im): New function to set IM and IC of a frame. |
754 | Check that input style is supported before trying to create an | |
755 | IC for it. | |
756 | (x_window): Call x_create_im. | |
757 | ||
2e471eb5 GM |
758 | 2000-01-04 Gerd Moellmann <gerd@gnu.org> |
759 | ||
560a7bd2 GM |
760 | * xfns.c (current_gif_memory_src): New variable. |
761 | (gif_load): Record the address of the current memory source | |
762 | in current_gif_memory_src. | |
763 | (gif_read_from_memory): Use current_gif_memory_src. | |
764 | ||
f9ee84a3 GM |
765 | * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give |
766 | macros statement form. | |
767 | ||
d1299cde GM |
768 | * sound.c (struct sound): Renamed from struct sound_file. |
769 | (struct sound): Add members `data' and `header_size'. | |
770 | (enum sound_attr): Add SOUND_DATA. | |
771 | (current_sound, current_sound_device): Variables renamed from | |
772 | sound_file and sound_device. | |
773 | (parse_sound): Parse :data. | |
774 | (parse_sound): Handle sound data in strings. | |
775 | (find_sound_type): Function renamed from find_sound_file_type. | |
776 | (wav_init, au_init): Fail if sound's header_size is smaller than | |
777 | needed header size. | |
778 | (wav_play, au_play): Play sounds from string data. | |
779 | ||
2e471eb5 GM |
780 | * puresize.h (BASE_PURE_SIZE): Increase to 600000. |
781 | ||
782 | * lisp.h: Add prototype for allocate_string_data. | |
783 | ||
784 | * alloc.c (Fgarbage_collect): Return number of live and free | |
785 | strings. | |
786 | ||
787 | * alloc.c (mark_buffer): Remove code in #if 0. | |
788 | (gc_sweep): Ditto. | |
789 | (UNMARK_BALANCE_INTERVALS): Give the macro statement form. | |
790 | (strings_consed): New variable. | |
791 | (allocate_string): Set it. | |
792 | (syms_of_alloc): Add DEFVAR_INT for strings_consed. | |
793 | (Fmemory_use_counts): Return strings_consed. Use Flist. | |
794 | ||
795 | * alloc.c: General cleanup in comments etc. Remove conditional | |
796 | compilation for `standalone'. | |
797 | ||
798 | * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'. | |
799 | ||
800 | * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): | |
801 | (GC_STRING_BYTES, GC_STRING_CHARS): New macros. | |
802 | (DONT_COPY_FLAG): Removed. | |
803 | (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros. | |
804 | (struct sdata, struct sblock): New | |
805 | (struct string_block): Rewritten. | |
806 | (STRINGS_IN_STRING_BLOCK): New macro. | |
807 | (oldest_sblock, current_sblock, total_strings, total_free_strings) | |
808 | (large_sblocks, string_blocks, string_free_list): New variables. | |
809 | (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros. | |
810 | (init_strings): Rewritten. | |
811 | (allocate_string, allocate_string_data, compact_small_strings) | |
812 | (free_large_strings, sweep_strings): New functions. | |
813 | (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE) | |
814 | (struct string_block_head, current_string_block) | |
815 | (first_string_block, large_string_blocks, STRING_FULLSIZE) | |
816 | (STRING_PAD): Removed. | |
817 | (make_uninit_multibyte_string, make_pure_string): Rewritten. | |
818 | (Fgarbage_collect): Don't set mark bit in large strings. | |
819 | (mark_object): Mark strings differently. Mark symbol names | |
820 | differently. | |
821 | (survives_gc_p): Test marked strings differently. | |
822 | (gc_sweep): Sweep strings differently, unmark strings in | |
823 | symbol names. | |
824 | (compact_strings): Removed. | |
825 | ||
42608ba8 EZ |
826 | 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il> |
827 | ||
828 | * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and | |
829 | Scolor_supported_p even if HAVE_X_WINDOWS is not defined. | |
830 | ||
e0a09e1a KH |
831 | 2000-01-04 Kenichi Handa <handa@etl.go.jp> |
832 | ||
dd9f0750 KH |
833 | * fileio.c (Finsert_file_contents): Signal error if visiting file |
834 | in a non-empty buffer. | |
835 | ||
3c0f3b15 | 836 | * term.c (encode_terminal_code): Fix the previous change. |
e0a09e1a | 837 | |
44cd3ae5 GM |
838 | 2000-01-03 Gerd Moellmann <gerd@gnu.org> |
839 | ||
840 | * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to | |
841 | Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p. | |
842 | ||
843 | * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU. | |
844 | ||
c182a70f EZ |
845 | 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il> |
846 | ||
847 | * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No | |
848 | need to test for MSDOS frames. | |
849 | ||
24480d5b EZ |
850 | 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il> |
851 | ||
852 | * dosfns.c (unspecified_colors): Remove. | |
853 | (msdos_stdcolor_idx): Use global variables unspecified_fg and | |
854 | unspecified_bg. | |
855 | (msdos_stdcolor_name): Return strings for unspecified fore- and | |
856 | back-ground colors. | |
857 | ||
858 | * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove. | |
aaf2320c | 859 | (syms_of_xfaces): Remove their staticpro's. |
24480d5b EZ |
860 | (tty_color_name): Return Lisp strings for unspecified fore- and |
861 | back-ground colors. | |
862 | (Finternal_set_lisp_face_attribute): Remove the special treatment | |
863 | for Qunspecified_{f,b}g. | |
864 | (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp | |
865 | string. | |
866 | ||
047f434a GM |
867 | 2000-01-03 Gerd Moellmann <gerd@gnu.org> |
868 | ||
869 | * xdisp.c (reseat_at_next_visible_line_start): Position before | |
870 | newline only if ending up on a newline. | |
871 | (next_element_from_ellipsis): Return success. Handle case of | |
872 | displaying no ellipsis. Fix case of ellipsis defined in display | |
873 | table. | |
874 | (next_element_from_buffer): Return 0 if next_element_from_ellipsis | |
875 | returns 0. | |
876 | ||
d684c676 EZ |
877 | 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il> |
878 | ||
879 | * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p. | |
880 | (Fcolor_supported_p): Renamed from face-color-supported-p. | |
881 | ||
5fe1d139 EZ |
882 | 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il> |
883 | ||
884 | * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The | |
885 | list of colors renamed to tty-defined-color-alist. | |
886 | (tty_color_name): Pass the frame to tty-color-by-index. | |
887 | (realize_tty_face): tty-color-alist is now a function which | |
888 | accepts the frame as argument. | |
889 | ||
890 | * term.c (Ftty_display_color_p): Accept an optional argument | |
891 | FRAME. | |
892 | ||
816be8b8 EZ |
893 | 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il> |
894 | ||
895 | * term.c (insert_glyphs): Pass glyph, not &glyph, to | |
896 | encode_terminal_code. | |
897 | ||
b635321e EZ |
898 | 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il> |
899 | ||
900 | * dispnew.c (mode_line_string): Support termcap frames as well. | |
901 | ||
9b784e96 GM |
902 | 2000-01-01 Gerd Moellmann <gerd@gnu.org> |
903 | ||
27189709 GM |
904 | * syntax.c (Fforward_word): Undo previous change. |
905 | ||
906 | * editfns.c (Fconstrain_to_field): Don't constrain if | |
907 | inhibit-field-text-motion is non-nil. | |
908 | (Fline_beginning_position): Undo previous change. | |
909 | (Fline_end_position): Ditto. | |
910 | ||
911 | * syntax.c (Fforward_word): Notice field boundaries only if | |
912 | inhibit-field-text-motion is nil. | |
913 | ||
914 | * lisp.h: Add extern declaration for Vinhibit_field_text_motion. | |
915 | ||
916 | * editfns.c (Vinhibit_field_text_motion): New variable. | |
917 | (inhibit-field-text-motion): New DEFVAR_LISP. | |
918 | (Fline_beginning_position, Fline_end_position): Notice field | |
919 | boundaries only if inhibit-field-text-motion is nil. | |
920 | ||
45158a91 GM |
921 | * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE. |
922 | All calls adjusted. | |
923 | (x_build_heuristic_mask): Likewise. | |
924 | (xbm_load_image_from_file): Change error output. | |
925 | (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load) | |
926 | (gif_load, gs_load, x_kill_gs_process): Ditto. | |
927 | ||
9b784e96 GM |
928 | * xfns.c (gif_load): Avoid sign extension and thus out of bounds |
929 | color indices when accessing raster pixels. | |
63cec32f GM |
930 | (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only |
931 | one of :file or :data. | |
932 | (enum pbm_keyword_index): Add PBM_DATA. | |
933 | (pbm_format): Add :data. | |
934 | (pbm_image_p): Allow either :file or :data. | |
935 | (pbm_read_file): New function. | |
936 | (pbm_scan_number): Rewritten to read from string. | |
937 | (pbm_load): Support :data. | |
9b784e96 | 938 | |
5ad6a5fb GM |
939 | 1999-12-31 Gerd Moellmann <gerd@gnu.org> |
940 | ||
941 | * xfns.c: New image functions adapted to Emacs conventions. | |
942 | (png_load, tiff_load, jpeg_load, gif_load): Always GCPRO local | |
943 | variable `file'. | |
944 | ||
63448a4d WP |
945 | 1999-12-31 William M. Perry <wmperry@aventail.com> |
946 | ||
947 | * xfns.c (jpeg_format): Added the :data keyword | |
948 | (jpeg_image_p): JPEG is valid with :file _or_ :data | |
949 | (jpeg_memory_src): Defined new JPEG image source to read from a | |
950 | memory buffer. | |
951 | (jpeg_load): Pay attention to the :data keyword if specified. | |
952 | Instantiates a jpeg_memory_src instead of jpeg_stdio_src if | |
953 | found. | |
954 | (png_format): Added the :data keyword | |
955 | (png_image_p): PNG is valid with :file _or_ :data | |
956 | (png_read_from_memory): New PNG read function to read from a | |
957 | memory buffer. | |
958 | (png_load): Pay attention to the :data keyword if specified. Uses | |
959 | png_set_read_fn() instead of png_init_io() if specified. | |
960 | (tiff_format): Added the :data keyword for TIFF images. | |
961 | (tiff_image_p): TIFF is valid with :file _or_ :data | |
962 | (tiff_read_from_memory): Defined new TIFF I/O functions to read | |
963 | from a memory buffer. | |
964 | (tiff_load): Pay attention to the :data keyword if specified. | |
965 | Uses TIFFClientOpen() instead of TIFFOpen() if specified. | |
966 | (gif_format): Added the :data keyword | |
967 | (gif_image_p): GIF is valid with :file _or_ :data | |
968 | (gif_read_from_memory): New GIF input function to read from a | |
969 | memory buffer. | |
c65d14ee | 970 | (gif_load): Pay attention to the :data keyword. Uses DGifOpen() |
63448a4d WP |
971 | instead of DGifOpenFileName() if specified. |
972 | ||
c880678e GM |
973 | 1999-12-31 Gerd Moellmann <gerd@gnu.org> |
974 | ||
975 | * xdisp.c (next_element_from_buffer): Change assertion at the end | |
976 | because it doesn't hold when there's an overlay string at the end | |
977 | from which we deliver an image. | |
978 | ||
8ccb9a54 EZ |
979 | 1999-12-30 Eli Zaretskii <eliz@is.elta.co.il> |
980 | ||
981 | * msdos.c (IT_update_begin): Don't dereference members of struct | |
982 | window for deleted windows. | |
983 | ||
12ce2351 GM |
984 | 1999-12-30 Gerd Moellmann <gerd@gnu.org> |
985 | ||
a915c648 GM |
986 | * abbrev.c (Fexpand_abbrev): If expanding an abbrev which has only |
987 | a hook, and the hook has a non-nil `no-self-insert' property, let | |
988 | the return value of the hook specify whether an expansion took | |
989 | place. If it returns nil, no expansion has been performed. | |
990 | ||
12ce2351 GM |
991 | * xterm.c (x_make_frame_visible): Wait for frame becoming visible |
992 | differently. | |
993 | ||
04ee4f45 EZ |
994 | 1999-12-30 Eli Zaretskii <eliz@is.elta.co.il> |
995 | ||
996 | * msdos.c (IT_write_glyphs): Track last changes to struct glyph. | |
997 | ||
7f4bc0c3 EZ |
998 | 1999-12-29 Eli Zaretskii <eliz@is.elta.co.il> |
999 | ||
1000 | * dispnew.c (mode_line_string): Support MS-DOS frames. | |
1001 | ||
dac204bc GM |
1002 | 1999-12-29 Gerd Moellmann <gerd@gnu.org> |
1003 | ||
1004 | * eval.c (syms_of_eval): Initialize debugger_may_continue. | |
1005 | ||
7b712ad8 KH |
1006 | 1999-12-29 Kenichi Handa <handa@etl.go.jp> |
1007 | ||
1008 | * process.c (read_process_output): Fix the args CHARPOS and LENINS | |
1009 | to signal_after_change. | |
1010 | ||
adb9900f EZ |
1011 | 1999-12-28 Eli Zaretskii <eliz@is.elta.co.il> |
1012 | ||
41ad069b EZ |
1013 | * msdos.c (dos_set_window_size) [__DJGPP__ > 1]: If the frame |
1014 | dimensions changed, invalidate the mouse highlight info. | |
1015 | (disable_mouse_highlight, help_echo, previous_help_echo): New | |
1016 | variables. | |
1017 | (IT_set_mouse_pointer, show_mouse_face, clear_mouse_face) | |
1018 | (fast_find_position, IT_note_mode_line_highlight) | |
1019 | (IT_note_mouse_highlight): New functions. | |
1020 | (IT_update_begin): If the redisplay affects the window where the | |
1021 | mouse highlight is, clear the highlight. If the frame where the | |
1022 | highlight was displayed was killed, invalidate the highlight | |
1023 | info. | |
1024 | (IT_update_end): Reset the highlight flag. Reset the mouse | |
1025 | highlight-defer flag. | |
1026 | (IT_frame_up_to_date): New function, if mouse highlight was | |
1027 | deferred due to GC, do it now. | |
1028 | (internal_terminal_init): Initialize mouse-highlight related | |
1029 | members of the_only_x_display. Assign IT_frame_up_to_date to | |
1030 | frame_up_to_date_hook. | |
1031 | (dos_rawgetc): If the mouse moved, update mouse highlight. If | |
1032 | help_echo changed value, generate a HELP_EVENT event. | |
1033 | (syms_of_msdos): Staticpro help_echo and previous_help_echo. | |
1034 | ||
adb9900f EZ |
1035 | * msdos.h (struct display_info): New. |
1036 | (struct x_output): Add the display_info member. | |
1037 | (FRAME_X_DISPLAY_INFO): New macro. | |
1038 | ||
481b5054 GM |
1039 | 1999-12-28 Gerd Moellmann <gerd@gnu.org> |
1040 | ||
1041 | * xdisp.c (try_window_id): Compute BEG_UNCHANGED and END_UNCHANGED | |
1042 | if MODIFF > 1. | |
6448a6b3 | 1043 | (dump_glyph_row): Adapt to changes in struct glyph. |
481b5054 GM |
1044 | |
1045 | * buffer.c (modify_overlay): Always compute unchanged info. | |
1046 | ||
a2882b0d KH |
1047 | 1999-12-27 Kenichi Handa <handa@etl.go.jp> |
1048 | ||
1049 | * dispextern.h (FACE_FROM_ID): Cast the arg ID to `unsigned'. | |
1050 | ||
89ba5b5f KH |
1051 | 1999-12-27 Kenichi Handa <handa@etl.go.jp> |
1052 | ||
1053 | The following changes are to use more bits for face IDs. | |
1054 | ||
1055 | * lisp.h (GLYPH): Defined as `int', not `unsigned int'. Now the | |
1056 | lowest 8 bits are single byte character code, the bits above are | |
1057 | face ID. | |
481b5054 | 1058 | (GLYPH_MASK_FACE, GLYPH_MASK_CHAR): Adjusted for the change |
89ba5b5f | 1059 | above. |
481b5054 GM |
1060 | (FAST_MAKE_GLYPH, FSST_GLYPH_FACE): Likewise. |
1061 | (GLYPH_MASK_REV_DIR, GLYPH_MASK_PADDING): Macros deleted. | |
89ba5b5f KH |
1062 | |
1063 | * charset.h (CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) instead | |
1064 | of GLYPH_MASK_CHAR. | |
1065 | ||
1066 | * charset.c (char_bytes): Use ((1 << CHARACTERBITS) - 1) instead | |
1067 | of GLYPH_MASK_CHAR. | |
1068 | ||
1069 | * dispextern.h (struct glyph): Make face_id and padding_p the top | |
1070 | level members. Change members in union `u'. | |
1071 | (GLYPH_EQUAL_P): Check also members face_id and padding_p. | |
1072 | (GLYPH_CHAR_AND_FACE_EQUAL_P): New macro. | |
1073 | (SET_CHAR_GLYPH): Adjusted for the change of struct glyph. | |
1074 | (CHAR_GLYPH_PADDING_P): Likewise. | |
1075 | (GLYPH_FROM_CHAR_GLYPH): Likewise. Always return -1 for multibyte | |
1076 | characters. | |
1077 | ||
481b5054 | 1078 | * dispnew.c (line_hash_code, direct_output_for_insert): Adjusted |
89ba5b5f KH |
1079 | for the change of struct glyph. |
1080 | (line_draw_cost): Adjusted for the change of | |
1081 | GLYPH_FROM_CHAR_GLYPH. | |
1082 | (count_match): Use macro GLYPH_CHAR_AND_FACE_EQUAL_P. | |
1083 | ||
1084 | * term.c (encode_terminal_code): Adjusted for the change of struct | |
1085 | glyph and GLYPH_FROM_CHAR_GLYPH. | |
481b5054 | 1086 | (write_glyphs, insert_glyphs, append_glyph): Adjusted for the |
89ba5b5f KH |
1087 | change of struct glyph. |
1088 | ||
1089 | * xdisp.c: All codes adjusted for the change of struct glyph. | |
1090 | ||
1091 | * xterm.c: All codes adjusted for the change of struct glyph. | |
1092 | ||
5bcd116c KH |
1093 | 1999-12-27 Kenichi Handa <handa@etl.go.jp> |
1094 | ||
1095 | * composite.h (struct composition): Change the order of declaring | |
1096 | members to reduce the byte size of the structure. | |
1097 | ||
f21b06b7 GM |
1098 | 1999-12-25 Gerd Moellmann <gerd@gnu.org> |
1099 | ||
1100 | * search.c (looking_at_1): Reset immediate_quit before modifying | |
1101 | global data. | |
1102 | ||
e36557c9 KH |
1103 | 1999-12-24 Kenichi Handa <handa@etl.go.jp> |
1104 | ||
1105 | * process.c (read_process_output): Fix the arg FROM to | |
1106 | update_compositions. | |
1107 | ||
83c8f461 | 1108 | 1999-12-22 Richard M. Stallman <rms@gnu.org> |
f7c9e039 RS |
1109 | |
1110 | * search.c (Freplace_match): For nonliteral replacement in buffer, | |
1111 | construct all the new text first, then insert all at once. | |
1112 | ||
0b863bd9 DL |
1113 | 1999-12-22 Dave Love <fx@gnu.org> |
1114 | ||
1115 | * xfns.c (Fx_show_tip): Gcpro `timeout' too. | |
1116 | ||
6d8e8ef3 GM |
1117 | 1999-12-22 Gerd Moellmann <gerd@gnu.org> |
1118 | ||
28d7281d GM |
1119 | * xfns.c (Fx_create_frame): Move x_default_parameter calls that |
1120 | lead to size changes to after the X window has been created. | |
1121 | ||
e22ef6eb | 1122 | * xfaces.c (realize_x_face): Don't use uninitialized local |
6d8e8ef3 GM |
1123 | variable in xassert. |
1124 | ||
8affcced KH |
1125 | 1999-12-22 Kenichi Handa <handa@etl.go.jp> |
1126 | ||
1127 | * xfaces.c (face_color_supported_p): Check by tty_defined_color | |
6d8e8ef3 | 1128 | only when the frame is not for a window system. |
8affcced | 1129 | |
f2be1146 GM |
1130 | 1999-12-22 Gerd Moellmann <gerd@gnu.org> |
1131 | ||
deca1348 GM |
1132 | * buffer.c (Fset_buffer_multibyte): Arrange for a thorough |
1133 | redisplay after changing the multibyteness of a buffer. | |
1134 | ||
f2be1146 GM |
1135 | * xterm.c (XTread_socket): At the beginning of the loop, pass the |
1136 | frame's X window to XFilterEvent instead of None because that's | |
1137 | the X window for which the IC was created. This makes dead | |
1138 | accents work when the pointer is not in Emacs' frame. | |
1139 | (XTread_socket) <KeyPress>: Don't call XFilterEvent here. | |
1140 | ||
a744a2ec DL |
1141 | 1999-12-20 Dave Love <fx@gnu.org> |
1142 | ||
1143 | * xfns.c (Fx_show_tip): Add missing UNGCPRO. | |
1144 | ||
9e6985ed GM |
1145 | 1999-12-19 Gerd Moellmann <gerd@gnu.org> |
1146 | ||
1147 | * eval.c (debugger_may_continue): New variable. | |
1148 | (syms_of_eval): Add a DEFVAR_BOOL for it. | |
1149 | (call_debugger): Bind it. | |
1150 | ||
3b620731 EZ |
1151 | 1999-12-19 Eli Zaretskii <eliz@is.elta.co.il> |
1152 | ||
1153 | * msdos.c (IT_set_face): Don't swap face colors when highlight or | |
1154 | fp->tty_reverse_p is set, unless the computed colors are identical | |
1155 | to frame colors. Print both original and computed colors to | |
1156 | termscript file. | |
1157 | (IT_write_glyphs): Track the changes in handling of composite | |
1158 | characters. | |
1159 | (IT_set_frame_parameters): Don't set frame colors from | |
1160 | unspecified-fg and unspecified-bg pseudo-colors. | |
1161 | ||
0f9a51c4 DL |
1162 | 1999-12-17 Dave Love <fx@gnu.org> |
1163 | ||
1164 | * data.c (Fkeywordp): New function. | |
1165 | (syms_of_data): Install it. | |
1166 | ||
363e4e42 EZ |
1167 | 1999-12-16 Eli Zaretskii <eliz@is.elta.co.il> |
1168 | ||
1169 | * xfaces.c (tty_defined_color): Fix last change. | |
1170 | ||
cfad01b4 GM |
1171 | 1999-12-15 Gerd Moellmann <gerd@gnu.org> |
1172 | ||
1173 | * xdisp.c (redisplay_window) <optional new window start>: Check | |
1174 | that window start is in [BEGV..ZV]. | |
1175 | ||
f9d2fdc4 EZ |
1176 | 1999-12-15 Eli Zaretskii <eliz@is.elta.co.il> |
1177 | ||
1178 | * dispextern.h (FACE_TTY_DEFAULT_FG_COLOR) | |
1179 | (FACE_TTY_DEFAULT_BG_COLOR): New macros. | |
1180 | ||
1181 | * xfaces.c (Qunspecified_fg, Qunspecified_bg): New variables. | |
1182 | (syms_of_xfaces): Initialize and staticpro them. | |
1183 | (tty_defined_color): If the color name is unspecified-fg or | |
1184 | unspecified-bg, return FACE_TTY_DEFAULT_FG_COLOR and | |
1185 | FACE_TTY_DEFAULT_BG_COLOR, respectively, as the pixel value. | |
1186 | (tty_color_name): If the color pixel value is either | |
1187 | FACE_TTY_DEFAULT_FG_COLOR or FACE_TTY_DEFAULT_BG_COLOR, return | |
1188 | Qunspecified_fg or Qunspecified_bg, respectively. | |
1189 | (Finternal_set_lisp_face_attribute): Allow values Qunspecified_fg | |
1190 | and Qunspecified_bg for foreground and background colors. | |
1191 | (realize_default_face): If the foreground and background colors | |
1192 | are not specified, default to Qunspecified_fg and Qunspecified_bg. | |
1193 | (realize_tty_face): By default, set the face colors to | |
1194 | FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR. | |
1195 | [MSDOS]: Handle FACE_TTY_DEFAULT_FG_COLOR and | |
1196 | FACE_TTY_DEFAULT_BG_COLOR when face colors are not defined. | |
1197 | Reverse the colors if the default colors were reversed. | |
1198 | ||
1199 | * dispnew.c (init_display): Initialize the frame pixels of the | |
1200 | initial frame to FACE_TTY_DEFAULT_FG_COLOR and | |
1201 | FACE_TTY_DEFAULT_BG_COLOR. | |
1202 | ||
1203 | * term.c (turn_on_face): If the default fore- and background | |
1204 | colors are reversed, enter inverse video mode. Don't send color | |
1205 | escape sequences for unspecified foreground and background colors. | |
1206 | (turn_off_face): Handle unspecified-fg and unspecified-bg colors. | |
1207 | ||
1208 | * dosfns.c (unspecified_colors): New variable. | |
1209 | (msdos_stdcolor_idx): Handle unspecified-fg and unspecified-bg | |
1210 | color names, return FACE_TTY_DEFAULT_FG_COLOR and | |
1211 | FACE_TTY_DEFAULT_BG_COLOR, respectively. | |
1212 | (msdos_stdcolor_name): Handle FACE_TTY_DEFAULT_FG_COLOR and | |
1213 | FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg and | |
1214 | Qunspecified_bg, respectively. | |
1215 | ||
1216 | * msdos.c (IT_set_face): Support FACE_TTY_DEFAULT_FG_COLOR and | |
1217 | FACE_TTY_DEFAULT_BG_COLOR as pixel values. | |
1218 | ||
e19539f1 KH |
1219 | 1999-12-15 Kenichi Handa <handa@etl.go.jp> |
1220 | ||
1221 | * coding.c (code_convert_region): Fix the secoding arg to | |
1222 | update_compositions. | |
1223 | ||
5ec14d3c KH |
1224 | 1999-12-15 Kenichi Handa <handa@etl.go.jp> |
1225 | ||
1226 | The following changes are for the new composition mechanism. We | |
1227 | have deleted `composition' charset and composite characters, | |
1228 | instead introduced a special text property `composition'. | |
1229 | ||
1230 | * Makefile.in (INTERVAL_SRC): Include composite.h. | |
1231 | (INTERVAL_OBJ): Include composite.o. | |
1232 | (SOME_MACHINE_OBJECTS): Include composite.o. | |
1233 | (casefiddle.o) (dispnew.o) (indent.o) (process.o) (search.o) | |
1234 | (syntax.o) (window.o) (xdisp.o) (xfaces.o) (xterm.o) (print.o): | |
1235 | Depend on composite.h. | |
1236 | (doc.o): Depend on charset.h. | |
1237 | (keyboard.o) (textprop.o) (intervals.o): Depend on INTERVAL_SRC. | |
1238 | (composite.o): New target. | |
1239 | ||
1240 | * alloc.c (Fmake_string): Adjusted for the change of CHAR_STRING. | |
1241 | ||
1242 | * callproc.c (Fcall_process): Call code_convert_string to encode | |
1243 | arguments. Use CODING_REQUIRE_DECODING to check if the process | |
1244 | output should be decoded. | |
1245 | ||
1246 | * casefiddle.c: Include composite.h. | |
1247 | (casify_object): Use MAX_MULTIBYTE_LENGTH to allocate memory for a | |
1248 | multibyte character. Adjusted for the change of CHAR_STRING. | |
1249 | (casify_region): Likewise. Call update_compositions. | |
1250 | ||
1251 | * category.h (CATEGORY_SET): Delete codes for a composite | |
1252 | character. | |
1253 | ||
1254 | * category.c (word_boundary_p): Delete codes for a composite | |
1255 | character. | |
1256 | (Fmake_category_table): New function. | |
1257 | (syms_of_category): Defsubr it. | |
1258 | ||
1259 | * ccl.c (CCL_WRITE_CHAR): Adjusted for the change of CHAR_STRING. | |
1260 | (ccl_driver): Delete codes for a composite character. | |
1261 | ||
1262 | * charset.h: In this entry, just `Modified' means that codes for a | |
1263 | composite character is deleted. | |
1264 | (LEADING_CODE_COMPOSITION) (CHARSET_COMPOSITION) | |
1265 | (charset_composition) (MIN_CHAR_COMPOSITION) | |
1266 | (MAX_CHAR_COMPOSITION) (GENERIC_COMPOSITION_CHAR) | |
1267 | (COMPOSITE_CHAR_P) (MAKE_COMPOSITE_CHAR) (COMPOSITE_CHAR_ID) | |
1268 | (PARSE_COMPOSITE_SEQ) (PARSE_CHARACTER_SEQ): Deleted. | |
1269 | (MAX_CHAR) (CHARSET_VALID_P) (CHARSET_DEFINED_P) (CHARSET_AT) | |
1270 | (FIRST_CHARSET_AT) (SAME_CHARSET_P) (MAKE_NON_ASCII_CHAR) | |
1271 | (PARSE_MULTIBYTE_SEQ) (SPLIT_NON_ASCII_CHAR) (CHAR_PRINTABLE_P): | |
1272 | Modified. | |
1273 | (SPLIT_STRING): Call split_string, not split_non_ascii_string. | |
1274 | (CHAR_STRING): Delete WORKBUF argument. Call char_string, not | |
1275 | non_ascii_char_to_string. | |
1276 | (STRING_CHAR): Call string_to_char, not string_to_non_ascii_char. | |
1277 | (STRING_CHAR_AND_LENGTH): Likewise. | |
1278 | (FETCH_CHAR_ADVANCE): New macro. | |
1279 | (MAX_COMPONENT_COUNT) (struct cmpchar_info): Deleted. | |
1280 | (MAX_MULTIBYTE_LENGTH): New macro. | |
1281 | (MAX_LENGTH_OF_MULTI_BYTE_FORM): Deleted. | |
1282 | (find_charset_in_str): Argument adjusted. | |
1283 | (CHAR_LEN): Modified. | |
1284 | ||
1285 | * charset.c: In this entry, just `Modified' means that codes for a | |
1286 | composite character is deleted. | |
1287 | (Qcomposition) (leading_code_composition) | |
1288 | (charset_composition) (min_composite_char) (cmpchar_table) | |
1289 | (cmpchar_table_size) (n_cmpchars): Deleted. | |
1290 | (SPLIT_COMPOSITE_SEQ): Deleted. | |
1291 | (SPLIT_MULTIBYTE_SEQ): Modified. | |
1292 | (char_to_string): Renamed from non_ascii_char_to_string. | |
1293 | Modified. | |
1294 | (string_to_char): Renamed from string_to_non_ascii_char. | |
1295 | (split_string): Renamed from split_non_ascii_string. | |
1296 | (char_printable_p) (Fsplit_char) | |
1297 | (Ffind_charset_region) (Ffind_charset_string) (char_valid_p) | |
1298 | (char_bytes) (Fchar_width) (strwidth): Modified. | |
1299 | (find_charset_in_str): Argument CMPCHARP deleted. Modified. | |
1300 | (Fstring): Adjusted for the change of CHAR_STRING. Modified. | |
1301 | (hash_string) (CMPCHAR_HASH_TABLE_SIZE) (cmpchar_hash_table) | |
1302 | (CMPCHAR_HASH_SIZE) (CMPCHAR_HASH_USED) (CMPCHAR_HASH_CMPCHAR_ID) | |
1303 | (str_cmpchar_id) (cmpchar_component) (Fcmpcharp) | |
1304 | (Fcmpchar_component) (Fcmpchar_cmp_rule) (Fcmpchar_cmp_rule_p) | |
1305 | (Fcmpchar_cmp_count): Deleted. | |
1306 | (Fcompose_string): Implemented by Emacs Lisp in composite.el. | |
1307 | (init_charset_once): Modified. | |
1308 | (syms_of_charset): Modified. | |
1309 | ||
1310 | * cmds.c (internal_self_insert): Adjusted for the change of | |
1311 | CHAR_STRING. | |
1312 | ||
1313 | * coding.h (emacs_code_class_type): Delete the member | |
1314 | EMACS_leading_code_composition. | |
1315 | (COMPOSING_NO) (COMPOSING_WITH_RULE_HEAD) (COMPOSING_NO_RULE_HEAD) | |
1316 | (COMPOSING_WITH_RULE_TAIL) (COMPOSING_NO_RULE_TAIL) | |
1317 | (COMPOSING_WITH_RULE_RULE) (COMPOSING_HEAD_P) | |
1318 | (COMPOSING_WITH_RULE_P): Macros deleted. | |
1319 | (COMPOSITION_DATA_SIZE) (COMPOSITION_DATA_MAX_BUNCH_LENGTH): New | |
1320 | macros. | |
1321 | (struct composition_data): New structure. | |
1322 | (CODING_FINISH_INSUFFICIENT_CMP): New macro. | |
1323 | (struct coding_system): New members composition_rule_follows, | |
1324 | cmp_data, cmp_data_start, cmp_data_index. | |
1325 | (coding_save_composition) (coding_free_composition_data) | |
1326 | (coding_adjust_composition_offset): Extern them. | |
1327 | ||
1328 | * coding.c: Include composite.h. | |
1329 | (DECODE_CHARACTER_ASCII): Don't handle composition here. | |
1330 | (DECODE_CHARACTER_DIMENSION1): Likewise. Don't check the validity | |
1331 | of multibyte code here. | |
1332 | (DECODE_CHARACTER_DIMENSION2): Likewise. | |
1333 | (detect_coding_emacs_mule): Change the case label from | |
1334 | EMACS_leading_code_composition to 0x80. | |
1335 | (detect_coding_iso2022): Handle new composition sequence. | |
1336 | (DECODE_ISO_CHARACTER): Likewise. | |
1337 | (check_composing_code): Deleted. | |
1338 | (coding_allocate_composition_data): New function. | |
1339 | (CODING_ADD_COMPOSITION_START) (CODING_ADD_COMPOSITION_END) | |
1340 | (CODING_ADD_COMPOSITION_COMPONENT) (DECODE_COMPOSITION_START) | |
1341 | (DECODE_COMPOSITION_END) (DECODE_COMPOSITION_RULE): New macros. | |
1342 | (decode_coding_iso2022): Handle new composition sequence. | |
1343 | (ENCODE_ISO_CHARACTER): Don't check composition here. | |
1344 | (ENCODE_COMPOSITION_RULE) (ENCODE_COMPOSITION_START): New macros. | |
1345 | (ENCODE_COMPOSITION_NO_RULE_START) | |
1346 | (ENCODE_COMPOSITION_WITH_RULE_START): Deleted. | |
1347 | (ENCODE_COMPOSITION_END): Handle new composition sequence. | |
1348 | (ENCODE_COMPOSITION_FAKE_START): New macro. | |
1349 | (encode_coding_iso2022): Handle new composition sequence. | |
1350 | (ENCODE_SJIS_BIG5_CHARACTER): Delete superfluous `;' at the tail. | |
1351 | (encode_coding_sjis_big5): Ignore composition. | |
1352 | (setup_coding_system): Initialize new members of struct | |
1353 | coding_system. Enable composition only when the coding system has | |
1354 | `composition' property t. | |
1355 | (coding_free_composition_data) (coding_adjust_composition_offset) | |
1356 | (coding_save_composition) (coding_restore_composition): New | |
1357 | functions. | |
1358 | (code_convert_region): Call coding_save_composition for encoding | |
1359 | and coding_allocate_composition_data for decoding. Don't skip | |
1360 | ASCII characters if we handle composition on encoding. Call | |
1361 | signal_after_change with Check_BORDER. | |
1362 | (code_convert_string): Call coding_save_composition for encoding | |
1363 | and coding_allocate_composition_data for decoding. Don't skip | |
1364 | ASCII characters if we handle composition on encoding. | |
1365 | (code_convert_string1): Set Vlast_coding_system_used after calling | |
1366 | code_convert_string. | |
1367 | (code_convert_string_norecord): Disable composition. | |
1368 | (Fset_terminal_coding_system_internal): Likewise. | |
1369 | (Fset_safe_terminal_coding_system_internal): Likewise. | |
1370 | (Fset_keyboard_coding_system_internal): Likewise. | |
1371 | (init_coding_once): Set emacs_code_class[0x80] to | |
1372 | EMACS_invalid_code. | |
1373 | ||
1374 | * composite.h: New file. | |
1375 | ||
1376 | * composite.c: New file. | |
1377 | ||
1378 | * data.c (Faref): Delete codes for a composite character.. | |
1379 | (Faset): Likewise. Adjusted for the change of CHAR_STRING. | |
1380 | ||
1381 | * dispextern.h (enum glyph_type): New member COMPOSITE_GLYPH. | |
1382 | (struct glyph): Add new sub-structure cmp to the union `u'. | |
1383 | (enum display_element_type): New member IT_COMPOSITION. | |
1384 | (enum prop_idx): New member COMPOSITION_PROP_IDX. | |
1385 | (struct it): New members cmp_id, cmp_len. | |
1386 | ||
1387 | * dispnew.c (direct_output_forward_char): Check point moving into | |
1388 | or out of a composition. If so, give up direct method. | |
1389 | ||
1390 | * doprnt.c (doprnt1): Adjusted for the change of CHAR_STRING. | |
1391 | ||
1392 | * editfns.c (Fchar_to_string): Adjusted for the change of | |
1393 | CHAR_STRING. | |
1394 | (general_insert_function): Likewise. | |
1395 | (Finsert_char): Likewise. | |
1396 | (Fsubst_char_in_region): Likewise. Call update_compositions. | |
1397 | (Ftranslate_region): Call update_compositions. | |
1398 | (Ftranspose_regions): Call update_compositions. | |
1399 | ||
1400 | * emacs.c (main): Call syms_of_composite. | |
1401 | ||
1402 | * fileio.c (Fsubstitute_in_file_name): Adjusted for the change of | |
1403 | CHAR_STRING. | |
1404 | (Finsert_file_contents): Set Vlast_coding_system_used before | |
1405 | calling signal_after_change. Call update_compositions if some | |
1406 | texts are inserted.. | |
1407 | (Fwrite_region): Adjusted for the change of a_write and e_write. | |
1408 | (a_write): Argument changed. Work based on character position, | |
1409 | not byte position. | |
1410 | (e_write): Argument changed. Handle new way of composition. | |
1411 | ||
1412 | * fns.c (Flength): The length of char-table is MAX_CHAR. | |
1413 | (concat): Adjusted for the change of CHAR_STRING. | |
1414 | (Ffillarray): Adjusted for the change of CHAR_STRING. | |
1415 | (Fset_char_table_default): Delete codes for a composite character. | |
1416 | (hash_put): Return hash index. | |
1417 | ||
1418 | * fontset.h (struct font_info): New member vertical_centering. | |
1419 | (Vvertical_centering_font_regexp): Extern it. | |
1420 | ||
1421 | * fontset.c (Vvertical_centering_font_regexp): New variable. | |
1422 | (syms_of_fontset): Declare it as a Lisp variable and initialize. | |
1423 | Set Vignore_relative_composition to nil. | |
1424 | (fs_load_font): Initialize `vertical_centering' of struct | |
1425 | font_info. | |
1426 | ||
1427 | * indent.c (check_composition): New function. | |
1428 | (MULTIBYTE_BYTES_WIDTH): Call STRING_CHAR_AND_LENGTH with | |
1429 | MAX_MULTIBYTE_LENGTH, not MAX_LENGTH_OF_MULTI_BYTE_FORM. | |
1430 | (current_column_1): Handle new way of composition. | |
1431 | (Fmove_to_column): Likewise. | |
1432 | (compute_motion): Likewise. | |
1433 | ||
1434 | * insdel.c (copy_text): Adjusted for the change of CHAR_STRING. | |
1435 | (insert_char): Likewise. | |
1436 | (insert): Call update_compositions. | |
1437 | (insert_and_inherit): Likewise. | |
1438 | (insert_before_markers): Likewise. | |
1439 | (insert_before_markers_and_inherit): Likewise. | |
1440 | (insert_from_string): Likewise. | |
1441 | (insert_from_string_before_markers): Likewise. | |
1442 | (insert_from_buffer): Likewise. | |
1443 | (replace_range): Likewise. | |
1444 | (count_combining_composition): Deleted. | |
1445 | (count_combining_before): Delete codes for a composite character. | |
1446 | (count_combining_after): Likewise. | |
1447 | (del_range_1): Call update_compositions. | |
1448 | (del_range_byte): Likewise. | |
1449 | (del_range_both): Likewise. | |
1450 | (Fcombine_after_change_execute): Likewise. | |
1451 | ||
1452 | * intervals.h: Include composite.h. | |
1453 | (get_property_and_range): Extern it. | |
1454 | (Vtext_property_default_nonsticky): Extern it. | |
1455 | ||
1456 | * intervals.c (adjust_intervals_for_insertion): To check stickines | |
1457 | of properties, pay attention to text-property-default-nonsticky. | |
1458 | (merge_properties_sticky): Likewise. | |
1459 | (get_property_and_range): New function. | |
1460 | ||
1461 | * keyboard.c (Vdisable_point_adjustment): New variable. | |
1462 | (Vglobal_disable_point_adjustment): New variable. | |
1463 | (syms_of_keyboard): Declare them as Lisp variables. | |
1464 | (command_loop_1): Check them and call adjust_point_for_property if | |
1465 | necessary. | |
1466 | (adjust_point_for_property): New function. | |
1467 | ||
1468 | * keymap.c (push_key_description): Adjusted for the change of | |
1469 | CHAR_STRING. | |
1470 | (Ftext_char_description): Likewise. | |
1471 | ||
1472 | * lisp.h (QCtest, QCweakness, Qequal): Extern them. | |
1473 | (hash_put): Adjusted for the change of the definition. | |
1474 | (signal_after_change): Likewise. | |
1475 | (check_point_in_composition): Extern it. | |
1476 | ||
1477 | * lread.c (readchar): Adjusted for the change of CHAR_STRING. | |
1478 | Delete a code that handles an invalid too-long multibyte sequence | |
1479 | because we are now sure that we never encounter with such a | |
1480 | sequence. | |
1481 | (read_multibyte): Use macro MAX_MULTIBYTE_LENGTH, not | |
1482 | MAX_LENGTH_OF_MULTI_BYTE_FORM. | |
1483 | (init_obarray): Likewise. | |
1484 | (read1): Likewise. Adjusted for the change of CHAR_STRING. | |
1485 | ||
1486 | * print.c (printchar): Adjusted for the change of CHAR_STRING. | |
1487 | ||
1488 | * process.c: Include composite.h. | |
1489 | (read_process_output): Call update_compositions. | |
1490 | ||
1491 | * regex.c (regex_compile): Adjusted for the change of CHAR_STRING. | |
1492 | ||
1493 | * search.c (search_buffer): Adjusted for the change of CHAR_STRING. | |
1494 | ||
1495 | * syntax.h (SYNTAX_ENTRY_INT): Delete codes for a composite | |
1496 | character. | |
1497 | ||
1498 | * term.c (encode_terminal_code): Delete codes for a composite | |
1499 | character. Adjusted for the change of CHAR_STRING. | |
1500 | (produce_glyphs): When called, it->what can be IT_COMPOSITION. | |
1501 | Delete codes for a composite character. | |
1502 | ||
1503 | * textprop.c (Vtext_property_default_nonsticky): New variable | |
1504 | (syms_of_textprop): Declare it as a Lisp variable. | |
1505 | ||
1506 | * window.c (Frecenter): Clear all caches of compositions. | |
1507 | ||
1508 | * xdisp.c (it_props): Add an entry for composition. | |
1509 | (face_before_or_after_it_pos): For composition, check face of a | |
1510 | character after the composition. | |
1511 | (handle_composition_prop): New function. | |
1512 | (get_next_display_element): Adjusted for the change of | |
1513 | CHAR_STRING. | |
1514 | (set_iterator_to_next): Handle the case that it->method == | |
1515 | next_element_from_composition. | |
1516 | (next_element_from_composition): New function. | |
1517 | (message_dolog): Adjusted for the change of CHAR_STRING. | |
1518 | (set_message_1): Likewise. | |
1519 | (check_point_in_composition): New function. | |
1520 | (reconsider_clip_changes): If point moved into or out of | |
1521 | composition, set b->clip_changed to 1 to force updating of the | |
1522 | screen. | |
1523 | (disp_char_vector): Delete codes for a composite character. | |
1524 | (decode_mode_spec_coding): Adjusted for the change of CHAR_STRING. | |
1525 | ||
1526 | * xfaces.c (choose_face_fontset_font): Delete codes for a | |
1527 | composite character. | |
1528 | (realize_x_face): Likewise. Change a place to set local variable | |
1529 | `f' to avoid a bug of GCC 2.8.1 on Solaris. | |
1530 | ||
1531 | * xfns.c: Include intervals.h. | |
1532 | (syms_of_xfns): Make `display' property nonsticky by default. | |
1533 | ||
1534 | * xselect.c (lisp_data_to_selection_data): Adjusted for the change | |
1535 | for find_charset_in_str. | |
1536 | ||
1537 | * xterm.h (struct x_output): Change member font_baseline to | |
1538 | baseline_offset. | |
1539 | ||
1540 | * xterm.c (x_append_glyph): Setup members of struct glyph properly | |
1541 | for composition. | |
1542 | (x_append_composite_glyph): New function. | |
1543 | (VCENTER_BASELINE_OFFSET): New macro. | |
1544 | (x_produce_glyphs): If it->what == IT_COMPOSITION, setup members | |
1545 | of struct it for the composition. Cache pixel offsets in the | |
1546 | struct composition. Delete codes for a composite character. | |
1547 | Handle Vignore_relative_composition in composition code. | |
1548 | (struct glyph_string): Delete member cmpcharp, add new member cmp. | |
1549 | (x_set_cursor_gc): Check s->cmp, not s->cmpcharp. | |
1550 | (x_compute_glyph_string_overhangs): Likewise. | |
1551 | (x_get_glyph_overhangs): Delete codes for a composite character. | |
1552 | (x_right_overwritten): Check s->cmp, not s->cmpcharp. | |
1553 | (x_draw_glyph_string_background): Likewise. Delete codes for | |
1554 | checking s->gidx for a composition. | |
1555 | (x_draw_glyph_string_foreground): Delete code for a composite | |
1556 | character. | |
1557 | (x_draw_composite_glyph_string_foreground): New function. | |
1558 | (x_draw_glyph_string_box): Check s->cmp, not s->cmpcharp. | |
1559 | (x_draw_glyph_string): Handle the case of COMPOSITE_GLYPH. | |
1560 | (struct work): Deleted. | |
1561 | (x_fill_composite_glyph_string): Argument changed. Mostly | |
1562 | rewritten for that. | |
1563 | (x_fill_glyph_string): Don't check CHARSET_COMPOSITION. | |
1564 | (BUILD_CHAR_GLYPH_STRINGS): Don't handle composition here. | |
1565 | (BUILD_COMPOSITE_GLYPH_STRING): New macro. | |
1566 | (BUILD_GLYPH_STRINGS): For composition, call | |
1567 | BUILD_COMPOSITE_GLYPH_STRING. | |
1568 | (x_new_font): Initialize f->output_data.x->baseline_offset, not | |
1569 | f->output_data.x->font_baseline. | |
1570 | ||
c3c60f13 GM |
1571 | 1999-12-14 Gerd Moellmann <gerd@gnu.org> |
1572 | ||
1573 | * xterm.c (show_mouse_face): Don't use updated_area, use | |
1574 | TEXT_AREA. | |
1575 | ||
83c8f461 | 1576 | 1999-12-12 Richard M. Stallman <rms@gnu.org> |
c838eb57 RS |
1577 | |
1578 | * minibuf.c (Fall_completions): Doc fix. | |
1579 | ||
83c8f461 | 1580 | 1999-12-12 Richard M. Stallman <rms@gnu.org> |
c838eb57 RS |
1581 | |
1582 | * macros.c (Fstart_kbd_macro): Handle case where last-kbd-macro | |
1583 | has been changed by the Lisp code. | |
1584 | ||
d8eccf12 GM |
1585 | 1999-12-12 Gerd Moellmann <gerd@gnu.org> |
1586 | ||
1587 | * xfns.c: Indentation fixes. | |
1588 | ||
ae56feae SM |
1589 | 1999-12-10 Stefan Monnier <monnier@cs.yale.edu> |
1590 | ||
1591 | * xterm.c (x_initialize): Only setup xaw3d_* if they've been declared. | |
1592 | ||
dfa1c6ae GM |
1593 | 1999-12-10 Gerd Moellmann <gerd@gnu.org> |
1594 | ||
1595 | * frame.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL) | |
1596 | [!MSDOS && !WINDOWSNT && !macintosh]: Moved here from xterm.h. | |
1597 | ||
1598 | * xterm.h (FRAME_FOREGROUND_PIXEL, FRAME_BACKGROUND_PIXEL): Moved | |
1599 | to frame.h. | |
1600 | ||
ec18280f SM |
1601 | 1999-12-09 Stefan Monnier <monnier@cs.yale.edu> |
1602 | ||
1603 | * keyboard.c (Qratio): New symbol. | |
1604 | (scroll_bar_parts): Add `Qratio' to it. | |
1605 | (syms_of_keyboard): Init `Qratio'. | |
1606 | * termhooks.h (scroll_bar_part): Add `scroll_bar_move_ratio'. | |
1607 | * xterm.c (#includes): Allow compilation with only Xaw. | |
1608 | (xaw3d_arrow_scroll, xaw3d_pick_top): New variables. | |
1609 | (xt_action_hook): Replace XAW3D by XAW. | |
1610 | (xaw3d_jump_callback): Renamed to xaw_jump_callback. | |
1611 | (xaw_jump_callback): Renamed from xaw3d_jump_callback. | |
1612 | Determine epsilon dynamically and don't try to be too clever. | |
1613 | (xaw3d_scroll_callback): Renamed to xaw_scroll_callback. | |
1614 | (xaw_scroll_callback): Renamed from xaw3d_scroll_callback. | |
1615 | Handle both Xaw3d with arrow-scrollbars and with Xaw-style | |
1616 | scrollbar (using `ratio'). | |
1617 | (x_create_toolkit_scroll_bar): Try to detect which style of Xaw3d | |
1618 | scrollbar we have so as to set it up more optimally and to fix | |
1619 | xaw3d_arrow_scroll and xaw3d_pick_top. | |
1620 | (x_set_toolkit_scroll_bar_thumb): Try to maintain 2 spare pixels at the | |
1621 | bottom of the Xaw3d scrollbar, to work around its tendency to refuse | |
1622 | shrinking the thumb. Also make sure that `XawScrollbarSetThumb' | |
1623 | is not ignored, using a major gross hack. | |
1624 | (x_initialize): Init default values for xaw3d_arrow_scroll and | |
1625 | xaw3d_pick_top. | |
1626 | ||
83b6d970 DL |
1627 | 1999-12-09 Dave Love <fx@gnu.org> |
1628 | ||
1629 | * frame.h: (PIX_TYPE) [! HAVE_X_WINDOWS]: Define PIX_TYPE. | |
1630 | ||
3648c842 GM |
1631 | 1999-12-08 Gerd Moellmann <gerd@gnu.org> |
1632 | ||
1633 | * eval.c: Remove conditional compilation on `standalone'. | |
1634 | (call_debugger): When entering the debugger while redisplaying, | |
1635 | reset redisplaying_p, and go back to the top-level if the debugger | |
1636 | returns. | |
1637 | ||
05e71564 GM |
1638 | 1999-12-07 Gerd Moellmann <gerd@gnu.org> |
1639 | ||
1640 | * xfaces.c (x_set_menu_resources_from_menu_face): Make sure | |
1641 | basic faces are realized before trying to use face `menu'. | |
1642 | ||
1643 | * window.c (delete_window): Block input for the time window | |
1644 | matrices are being changed. | |
1645 | ||
b46cd536 DL |
1646 | 1999-12-07 Dave Love <fx@gnu.org> |
1647 | ||
1648 | * lread.c (Fintern_soft): Fix newlines in doc string. | |
1649 | ||
96acb1f7 GM |
1650 | 1999-12-07 Alexandre Oliva <oliva@dcc.unicamp.br> |
1651 | ||
1652 | * unexelf.c: Include <syms.h>, not <sym.h> on IRIX. Removed | |
1653 | duplicate definition of ElfW. | |
1654 | (find_section): Copied from unexsgi.c. | |
1655 | (unexec): Use find_section. Adjust whitespace. Initialize | |
1656 | new_data2_offset based on old_data, not sbss (this fixes a bug on | |
1657 | IRIX6). Change #ifdef __mips to __sgi, since it's IRIX-specific. | |
1658 | Adjust test for presence of .mdebug section to the new return | |
1659 | value of find_section. | |
1660 | ||
1661 | 1999-12-07 Gerd Moellmann <gerd@gnu.org> | |
1662 | ||
1663 | * unexelf.c: Merge changes from 20.5. | |
1664 | (unexec): Handle .lit4 and .lit8 unconditionally. | |
1665 | ||
1666 | * m/iris4d.h (UNEXEC) [USG5_4]: Use unexelf.o instead of | |
1667 | unexsgi.o again. | |
1668 | ||
1669 | * m/iris5d.h (UNEXEC): Likewise. | |
1670 | ||
7dae4502 SM |
1671 | 1999-12-06 Stefan Monnier <monnier@cs.yale.edu> |
1672 | ||
1673 | * editfns.c (Fdelete_and_extract_region): New function. | |
05e71564 GM |
1674 | (syms_of_editfns): Register it. |
1675 | * insdel.c (del_range): Update del_range_1 call. | |
7dae4502 SM |
1676 | (del_range_1, del_range_2): Add a ret_string argument to |
1677 | request that the deleted text be returned. | |
1678 | (del_range_byte, del_range_both): Update del_range_2 call. | |
05e71564 | 1679 | * lisp.h (del_range_1, del_range_2): Change prototype |
7dae4502 SM |
1680 | * casefiddle.c (casify_region): Update del_range_1 call. |
1681 | * coding.c (code_convert_region): Update del_range_2 call. | |
1682 | * fileio.c (Finsert_file_contents): Update del_range_2 call. | |
1683 | ||
397e4fae GM |
1684 | 1999-12-06 Gerd Moellmann <gerd@gnu.org> |
1685 | ||
1686 | * xfaces.c (set_lface_from_font_name): Fix incomplete merge. | |
1687 | ||
3d973f71 GM |
1688 | 1999-12-04 Hrvoje Niksic <hniksic@iskon.hr> |
1689 | ||
1690 | * lread.c (Fintern_soft): Accept a symbol argument. | |
1691 | ||
740e985f EZ |
1692 | 1999-12-06 Eli Zaretskii <eliz@is.elta.co.il> |
1693 | ||
1694 | * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 40000. | |
809f3d51 EZ |
1695 | |
1696 | * insdel.c (adjust_markers_for_delete): Fix last change. | |
1697 | ||
2d764c78 EZ |
1698 | 1999-12-06 Eli Zaretskii <eliz@is.elta.co.il> |
1699 | ||
1700 | Changes for automatic remapping of X colors on terminal frames: | |
1701 | ||
1702 | * xfaces.c (XColor) [!HAVE_X_WINDOWS]: Provide a typedef for non-X | |
1703 | frames. | |
1704 | (Vface_tty_color_alist): Remove. | |
1705 | (tty_defined_color): New function. | |
1706 | (defined_color): Rewrite to support any type of frame. | |
1707 | (tty_color_name): New function. | |
1708 | (face_color_supported_p, Fface_color_gray_p, | |
1709 | Fface_color_supported_p): Support non-X frames. | |
1710 | (load_color): Enclose the color name in quotes, in the log | |
1711 | messages. Remove DOS-specific version of load_color. | |
1712 | (realize_tty_face): Take the supported colors from | |
1713 | tty-color-alist. Support translation of X colors to the closest | |
1714 | tty color, for both MSDOS and tty frames. | |
1715 | [MSDOS]: Don't invert face colors if they were taken from the | |
1716 | frame colors. | |
1717 | (Fface_register_tty_color, Fface_clear_tty_colors): Remove. | |
1718 | ||
1719 | * frame.h (struct x_output) [!MSDOS, !WINDOWSNT, !HAVE_X_WINDOWS]: | |
1720 | Define a mostly empty surrogate. | |
1721 | (tty_display): Declare. | |
1722 | ||
1723 | * frame.c (make_terminal_frame) [!macintosh]: Don't use | |
1724 | tty_display. | |
1725 | (Fframe_parameters): Don't invert colors of non-FRAME_WINDOW_P | |
1726 | frames when the frame's param_alist includes 'reverse. | |
1727 | (tty_display): Define. | |
1728 | (make_terminal_frame) [!MSDOS]: Assign &tty_display to the | |
1729 | output_data.x member. | |
1730 | (Fframe_parameters): Return foreground and background color names | |
1731 | on tty frames as well, in addition to MSDOS frames. | |
1732 | ||
1733 | * msdos.h (DisplayWidth, DisplayHeight): Changes for Lisp_Object | |
1734 | selected_frame. | |
1735 | (struct x_output): Remove unused members; document who uses each | |
1736 | member. | |
1737 | (FRAME_PARAM_FACES, FRAME_N_PARAM_FACES, FRAME_DEFAULT_PARAM_FACE, | |
1738 | FRAME_MODE_LINE_PARAM_FACE, FRAME_COMPUTED_FACES, | |
1739 | FRAME_N_COMPUTED_FACES, FRAME_SIZE_COMPUTED_FACES, | |
1740 | FRAME_DEFAULT_FACE, FRAME_MODE_LINE_FACE, unload_color): Remove | |
1741 | unused macro definintions. | |
1742 | ||
1743 | * msdos.c (IT_set_frame_parameters): Don't call | |
1744 | recompute_basic_faces, the next redisplay will, anyway. | |
1745 | (x_current_display): Remove unused variable. | |
1746 | Many functions: changes for Lisp_object selected_frame. | |
1747 | (IT_set_face): If the tty_reverse_p flag is set for the face, | |
1748 | reverse the foreground and background colors. | |
1749 | (Fmsdos_remember_default_colors): New function. | |
1750 | (syms_of_msdos): Defsubr it. | |
1751 | (IT_set_frame_parameters): Use initial_screen_colors[] when | |
1752 | creating a new frame. If the frame parameters include 'reverse, | |
1753 | swap the foreground and background colors. | |
1754 | (internal_terminal_init): Initialize initial_screen_colors to -1. | |
1755 | (syms_of_msdos): Add DEFVAR_BOOL for x-stretch-cursor, to shut up | |
1756 | cus-start.el. | |
1757 | ||
1758 | * Makefile.in (lisp, shortlisp): Add lisp/term/tty-colors.elc. | |
1759 | ||
1760 | * xfns.c (x_defined_color): Rename from defined_color. All | |
1761 | callers changed. | |
1762 | (Fxw_color_defined_p): Renamed from Fx_color_defined_p; | |
1763 | all callers changed. | |
1764 | (Fxw_color_values): Renamed from Fx_color_values; all callers | |
1765 | changed. | |
1766 | (Fxw_display_color_p): Renamed from Fx_display_color_p; all | |
1767 | callers changed. | |
1768 | (x_window_to_frame, x_any_window_to_frame, | |
1769 | x_non_menubar_window_to_frame, x_menubar_window_to_frame, | |
1770 | x_top_window_to_frame): Use !FRAME_X_P instead of | |
1771 | f->output_data.nothing. | |
1772 | * xterm.h (x_defined_color): Rename from defined_color. | |
1773 | ||
1774 | * w32fns.c (x_window_to_frame): Use FRAME_W32_P instead of | |
1775 | f->output_data.nothing. | |
1776 | (Fxw_color_defined_p): Renamed from Fx_color_defined_p; | |
1777 | all callers changed. | |
1778 | (Fxw_color_values): Renamed from Fx_color_values; all callers | |
1779 | changed. | |
1780 | (Fxw_display_color_p): Renamed from Fx_display_color_p; all | |
1781 | callers changed. | |
1782 | ||
1783 | * dispextern.h (tty_color_name): Add prototype. | |
1784 | ||
1785 | * xmenu.c (menubar_id_to_frame): Use FRAME_WINDOW_P instead of | |
1786 | f->output_data.nothing. | |
1787 | * w32menu.c (menubar_id_to_frame): Likewise. | |
1788 | * w32term.h (w32_output): Declare. | |
1789 | ||
1790 | * dosfns.c (Qmsdos_color_translate): Remove. | |
1791 | (msdos_stdcolor_name): Now returns a Lisp_Object. | |
1792 | * dosfns.h (Qmsdos_color_translate): Remove. | |
1793 | ||
1794 | * s/msdos.h (INTERNAL_TERMINAL): Add entries for color support. | |
1795 | ||
b3e5232e KH |
1796 | 1999-12-06 Kenichi Handa <handa@etl.go.jp> |
1797 | ||
1798 | * fileio.c (decide_coding_unwind): Renamed from | |
1799 | set_auto_coding_unwind. | |
1800 | (Finsert_file_contents): Make single unwind protect to call both | |
1801 | Vset_auto_coding_function and Ffind_operation_coding_system. | |
1802 | ||
1803 | * insdel.c (adjust_markers_for_delete): Make it non-static. | |
1804 | ||
db0e466c SM |
1805 | 1999-12-04 Stefan Monnier <monnier@cs.yale.edu> |
1806 | ||
1807 | * regex.c (regex_compile): Recognize *?, +? and ?? as non-greedy | |
1808 | operators and handle them properly. | |
1809 | * regex.h (RE_ALL_GREEDY): New option. | |
1810 | (RE_UNMATCHED_RIGHT_PAREN_ORD): Moved to the end where alphabetic | |
1811 | sorting would put it. | |
1812 | (RE_SYNTAX_AWK, RE_SYNTAX_GREP, RE_SYNTAX_EGREP) | |
1813 | (_RE_SYNTAX_POSIX_COMMON): Use the new option to keep old behavior. | |
1814 | ||
22afa6e8 DL |
1815 | 1999-12-04 Dave Love <d.love@dl.ac.uk> |
1816 | ||
1817 | * m/arm.h: New file. | |
1818 | ||
40afb967 DL |
1819 | 1999-12-03 Dave Love <fx@gnu.org> |
1820 | ||
1821 | * editfns.c (Fmessage_or_box): Use use_dialog_box. | |
1822 | ||
ddf8eff5 GM |
1823 | 1999-12-02 Gerd Moellmann <gerd@gnu.org> |
1824 | ||
1825 | * s/usg5-4.h (LIBS_SYSTEM): Add -lgen because that's needed | |
1826 | for building with Motif. | |
1827 | ||
1828 | * m/iris4d.h (UNEXEC) [USG5_4]: Use unexsgi.o instead of | |
1829 | unexelf.o. | |
1830 | ||
1831 | * m/iris5d.h (UNEXEC): Use unexsgi.o instead of unexelf.o. | |
1832 | ||
fa09a82d DL |
1833 | 1999-12-01 Dave Love <fx@gnu.org> |
1834 | ||
1835 | * emacs.c (main): Set LANG=C iff AX3_2 defined. | |
1836 | ||
ddf8eff5 GM |
1837 | 1999-11-28 Gerd Moellmann <gerd@gnu.org> |
1838 | ||
1839 | * systime.h (EMACS_TIME_CMP, EMACS_TIME_EQ, EMACS_TIME_NE) | |
1840 | (EMACS_TIME_GT, EMACS_TIME_GE, EMACS_TIME_LT,EMACS_TIME_LE): New | |
1841 | macros. | |
1842 | ||
1843 | * config.in (HAVE_SETITIMER, HAVE_UALARM): New. | |
1844 | ||
fa09a82d DL |
1845 | 1999-11-28 eliz <eliz@dlpx1> |
1846 | ||
1847 | * emacs.c (synchronize_locale): Avoid compiler warnings about | |
1848 | pointer type mismatch. | |
1849 | ||
f9632fc8 GM |
1850 | 1999-11-28 Gerd Moellmann <gerd@gnu.org> |
1851 | ||
717d0121 GM |
1852 | * window.c (Fwindow_end): Don't call temp_set_pt_both with |
1853 | out of range position. | |
1854 | ||
f9632fc8 GM |
1855 | * xterm.c (XTread_socket) <ClientMessage, Xatom_Scrollbar>: |
1856 | Switch off busy-cursor by setting inhibit_busy_cursor to 2. | |
1857 | ||
59c65f1e EZ |
1858 | 1999-11-28 Eli Zaretskii <eliz@is.elta.co.il> |
1859 | ||
613a8346 EZ |
1860 | * charset.c (Fmake_char_internal): Print the charset ID when |
1861 | signalling an error. | |
1862 | ||
59c65f1e EZ |
1863 | * emacs.c (synchronize_locale): Avoid compiler warnings about |
1864 | pointer type mismatch. | |
1865 | ||
83c8f461 | 1866 | 1999-11-26 Richard M. Stallman <rms@gnu.org> |
d01f3570 RS |
1867 | |
1868 | * editfns.c (Fdelete_field): Make it noninteractive. Return nil. | |
1869 | ||
18df9369 GM |
1870 | 1999-11-26 Gerd Moellmann <gerd@gnu.org> |
1871 | ||
65a3ccf7 GM |
1872 | * puresize.h (BASE_PURESIZE): Increase to 550000. |
1873 | ||
b3b98592 GM |
1874 | * textprop.c (set_text_properties): New function. Like |
1875 | Fset_text_properties, but with additional parameter | |
1876 | SIGNAL_AFTER_CHANGE_P. If that is nil, don't signal after | |
1877 | changes. | |
1878 | (Fset_text_properties): Use it. | |
1879 | ||
1880 | * insdel.c (insert_1_both): Call set_text_properties with last | |
1881 | parameter nil so that no after changes will be signaled. | |
1882 | ||
1883 | * lisp.h: Add prototype for set_text_properties. | |
1884 | ||
18df9369 GM |
1885 | * xfaces.c (set_lface_from_font_name): Fix previous change. |
1886 | (recompute_basic_faces): Change assert to abort. | |
1887 | ||
71a8e74b DL |
1888 | 1999-11-25 Dave Love <fx@gnu.org> |
1889 | ||
1890 | * fns.c (Fnthcdr, Fnreverse): Inline cdr. | |
1891 | (Fmember, Fdelq, Fdelete): Inline car. | |
1892 | (Fy_or_n_p): Doc fix. | |
1893 | ||
bc6a5782 GM |
1894 | 1999-11-25 Gerd Moellmann <gerd@gnu.org> |
1895 | ||
3221576b | 1896 | * xfaces.c (set_lface_from_font_name): New parameter may_fail_p. |
18df9369 | 1897 | Callers changed. If specified font name is bogus, and may_fail_p |
3221576b GM |
1898 | is not set, try to use a reasonable default. |
1899 | ||
bc6a5782 GM |
1900 | * dispnew.c (direct_output_for_insert): Set glyph row's |
1901 | displays_text_p flag. Correct window's window_end_vpos if | |
1902 | necessary. | |
1903 | ||
0c8559bb PE |
1904 | 1999-11-25 Paul Eggert <eggert@twinsun.com> |
1905 | ||
1906 | * emacs.c (fixup_locale): Don't bother to record initial locale. | |
1907 | (synchronize_locale): If the desired locale is nil, | |
1908 | treat it as if it were the empty string, | |
1909 | so that we set the locale from the environment. | |
1910 | ||
35737351 KH |
1911 | 1999-11-25 Kenichi Handa <handa@etl.go.jp> |
1912 | ||
1913 | * fileio.c (Finsert_file_contents): Set buffer-file-coding-system | |
1914 | of the current buffer via Fset. | |
1915 | ||
5562b47f DL |
1916 | 1999-11-24 Dave Love <fx@gnu.org> |
1917 | ||
1918 | * xfns.c: Don't duplicate Qdisplay definition done elsewhere. | |
1919 | ||
1920 | * xfaces.c: Don't duplicate Qmode_line definition done elsewhere. | |
1921 | ||
1922 | * xfns.c: Don't duplicate Qdisplay definition done elsewhere. | |
1923 | ||
00da0e4a GM |
1924 | 1999-11-24 Gerd Moellmann <gerd@gnu.org> |
1925 | ||
1926 | * lisp.h (enum pvec_type): Put PVEC_FLAG in #if 0. | |
1927 | ||
1928 | * emacs.c (PVEC_FLAG): New variable. | |
1929 | ||
b1775dc1 GM |
1930 | 1999-11-23 Gerd Moellmann <gerd@gnu.org> |
1931 | ||
1932 | * unexaix.c (unexec): Use unsigned instead of uintptr_t because | |
1933 | that fails on IBM PowerPC, AIX 4.2. | |
1934 | ||
08de6200 EZ |
1935 | 1999-11-22 Eli Zaretskii <eliz@is.elta.co.il> |
1936 | ||
1937 | * buffer.c (syms_of_buffer): Add %z, %Z, %m and %& to the doc | |
1938 | string of mode-line-format. Remove the obsolete %t. | |
1939 | ||
02fda8ff GM |
1940 | 1999-11-22 Gerd Moellmann <gerd@gnu.org> |
1941 | ||
f2fa858f GM |
1942 | * dispnew.c (direct_output_for_insert): Increment glyph positions |
1943 | for glyphs from buffer text only. | |
1944 | ||
02fda8ff GM |
1945 | * emacs.c (gdb_valbits, gdb_gctypebits, gdb_emacs_intbits) |
1946 | (gdb_data_seg_bits): New variables. | |
1947 | ||
1948 | * lisp.h (enum gdb_lisp_params): Put in #if 0, since it doesn't | |
1949 | work on systems not allowing enumerators > INT_MAX, and it | |
1950 | won't work if EMACS_INT is long long. | |
1951 | ||
1b0d24e7 PE |
1952 | 1999-11-22 Paul Eggert <eggert@twinsun.com> |
1953 | ||
1954 | Port to SunOS 4.1.x again. Help out with Alpha port. | |
1955 | Rename messages-locale to system-messages-locale, | |
1956 | and likewise for time-locale. | |
1957 | ||
1958 | * callproc.c (strerror): Remove decl. | |
1959 | * fileio.c (strerror): Likewise. | |
1960 | * process.c (strerror): Likewise. | |
1961 | * emacs.c (strerror): Likewise. | |
1962 | (Vsystem_messages_locale): Renamed from Vmessages_locale. | |
1963 | All uses changed. | |
1964 | (Vprevious_system_messages_locale): Likewise, from | |
1965 | Vprevious_messages_locale. | |
1966 | (Vsystem_time_locale): Likewise, from Vtime_locale. | |
1967 | (Vprevious_system_time_locale): Likewise, from Vprevious_time_locale. | |
1968 | (ABORT_RETURN_TYPE): New macro. | |
1969 | (abort): Return type is now ABORT_RETURN_TYPE. | |
1970 | (main): Always invoke init_signals, even if POSIX_SIGNALS is not | |
1971 | defined. | |
1972 | (syms_of_emacs): messages-locale -> system-messages-locale, | |
1973 | previous-messages-locale -> previous-system-messages-locale, | |
1974 | time-locale -> system-time-locale, | |
1975 | previous-time-locale -> previous-system-time-locale. | |
1976 | ||
1977 | * gmalloc.c (PP, __ptr_t): Assume ANSI C if STDC_HEADERS is defined. | |
1978 | (const): Do not define; that's config.h's job. | |
1979 | (<limits.h>): Include if HAVE_LIMITS_H is defined. | |
1980 | (CHAR_BIT): Move test for definedness outside of limits.h condition. | |
1981 | (<stddef.h>): Include if STDC_HEADERS is defined. | |
1982 | (FREE_RETURN_TYPE): New macro. | |
1983 | (free): Return type is now FREE_RETURN_TYPE. | |
1984 | ||
1985 | * lisp.h (synchronize_system_time_locale): Renamed from | |
1986 | synchronize_time_locale. All uses changed. | |
1987 | (synchronize_system_messages_locale): Likewise, from | |
1988 | synchronize_messages_locale. | |
1989 | ||
1990 | * m/alpha.h (malloc, realloc, calloc): Remove decls; | |
1991 | stdlib.h now does this. | |
1992 | ||
1993 | * process.c (sys_siglist): Remove. | |
1994 | ||
1995 | * s/sunos4-0.h (ABORT_RETURN_TYPE, FREE_RETURN_TYPE): | |
1996 | New macros. | |
1997 | ||
1998 | * syntax.c (scan_sexps_forward): Use abort, not assert. | |
1999 | ||
2000 | * sysdep.c (my_sys_siglist): New var. | |
2001 | (sys_siglist): New macro. Remove old initialized vars of same name. | |
2002 | (init_signals): Initialize sys_siglist. | |
2003 | ||
2004 | * xfns.c (abort): Remove decl; stdlib.h now does this. | |
2005 | ||
0dcd5b54 DL |
2006 | 1999-11-18 Dave Love <fx@gnu.org> |
2007 | ||
946173ad DL |
2008 | * filelock.c: Add forward declaration for get_boot_time_1. |
2009 | ||
0dcd5b54 DL |
2010 | * dispnew.c (Finternal_show_cursor_p): Fix doc string. |
2011 | ||
71447e8f GM |
2012 | 1999-11-18 Gerd Moellmann <gerd@gnu.org> |
2013 | ||
2014 | * buffer.h (struct buffer_text): Add comment about moving | |
2015 | buffer text if REL_ALLOC is defined. | |
2016 | ||
eeedff63 KH |
2017 | 1999-11-18 Kenichi Handa <handa@etl.go.jp> |
2018 | ||
2019 | * lisp.h (KEY_DESCRIPTION_SIZE): New macro. | |
2020 | ||
2021 | * keyboard.c (echo_char): Use KEY_DESCRIPTION_SIZE to check free | |
2022 | memory for push_key_description. | |
2023 | ||
2024 | * keymap.c (Fsingle_key_description): Use KEY_DESCRIPTION_SIZE to | |
2025 | allocate memory for push_key_description. | |
2026 | (describe_buffer_bindings): Likewise. | |
2027 | ||
5d7e4a2c GM |
2028 | 1999-11-17 Gerd Moellmann <gerd@gnu.org> |
2029 | ||
2030 | * xfns.c (Fx_show_busy_cursor): Doc-fix. | |
2031 | (Fx_hide_busy_cursor): Ditto. | |
2032 | ||
2033 | 1999-11-17 Marco Walther <walther@siemens-pyramid.com> | |
2034 | ||
2035 | * unexsni.c (unexec): Handle .rel.dyn section. | |
2036 | ||
b5b41e02 DL |
2037 | 1999-11-16 Dave Love <fx@gnu.org> |
2038 | ||
2039 | * doc.c (Fdocumentation): Remove gcpro here too. | |
2040 | ||
e35b6123 GM |
2041 | 1999-11-16 Gerd Moellmann <gerd@gnu.org> |
2042 | ||
2043 | * keyboard.c (command_loop_1): Remove no_redisplay. | |
2044 | ||
83c8f461 | 2045 | 1999-11-16 Richard M. Stallman <rms@gnu.org> |
0a14b9bb GM |
2046 | |
2047 | * print.c (PRINTPREPARE): Don't call setup_echo_area_for_printing | |
2048 | in noninteractive. | |
2049 | ||
b05d3bee GM |
2050 | 1999-11-14 Gerd Moellmann <gerd@gnu.org> |
2051 | ||
5bcfeb49 GM |
2052 | * xdisp.c (ensure_echo_area_buffers): New. |
2053 | (with_echo_area_buffer): Use it. | |
2054 | (setup_echo_area_for_printing): Ditto. | |
2055 | ||
b05d3bee GM |
2056 | * buffer.c (indicate-empty-lines): Doc-fix. |
2057 | ||
9b2e6e4c GM |
2058 | 1999-11-12 Gerd Moellmann <gerd@gnu.org> |
2059 | ||
e7f90eab GM |
2060 | * term.c (term_init): If "op" isn't available, don't support color |
2061 | because we can't switch back to the default foreground and | |
2062 | background. | |
2063 | ||
9b2e6e4c GM |
2064 | * doc.c (Fdocumentation_property): Remove GCPRO because |
2065 | Fsubstitute_command_keys gcpro's the string. | |
2066 | ||
1bf21027 KH |
2067 | 1999-11-12 Kenichi Handa <handa@etl.go.jp> |
2068 | ||
2069 | * editfns.c (Ftranslate_region): Check the buffer multibyteness. | |
2070 | ||
3bc6df53 GM |
2071 | 1999-11-11 Gerd Moellmann <gerd@gnu.org> |
2072 | ||
2073 | * print.c, keymap.c, indent.c, insdel.c, keyboard.c, intervals.c, | |
2074 | lread.c, textprop.c, undo.c, emacs.c, lisp.h, intervals.h, | |
2075 | buffer.h, config.in, Makefile.in: Remove USE_TEXT_PROPERTIES. | |
2076 | ||
35a5514b GM |
2077 | 1999-11-10 Gerd Moellmann <gerd@gnu.org> |
2078 | ||
2079 | * xfns.c (QCuser_data): Removed. | |
2080 | (syms_of_xfns): Initialization of QCuser_data removed. | |
2081 | (parse_image_spec): Don't handle :user-data specially. Allow | |
2082 | unknown keys. Remove parameter ALLOW_OTHER_KEYS. | |
2083 | (xbm_image_p, xbm_load, xpm_image_p, pbm_image_p, png_image_p) | |
2084 | (tiff_image_p, jpeg_image_p, gif_image_p, gs_image_p): Call | |
2085 | parse_image_spec accordingly. | |
2086 | ||
83c8f461 | 2087 | 1999-11-09 Richard M. Stallman <rms@gnu.org> |
4ea68fcc RS |
2088 | |
2089 | * cmds.c (Fbeginning_of_line): Doc fix. | |
2090 | (Fend_of_line): Doc fix. | |
2091 | ||
2092 | * editfns.c (Fline_beginning_position): If N is not 1, | |
2093 | pass t to Fconstrain_to_field for ESCAPE-FROM-EDGE. | |
2094 | ||
2095 | * syntax.c (Fforward_word): Handle fields even if would have hit | |
2096 | an edge of the buffer. Return nil if affected by fields. | |
2097 | ||
83c8f461 | 2098 | 1999-11-09 Richard M. Stallman <rms@gnu.org> |
4ea68fcc RS |
2099 | |
2100 | * editfns.c (preceding_pos): Function deleted. | |
2101 | (text_property_stickiness): Decrement POS directly. | |
2102 | Fix a confusion that used PT instead of POS. | |
2103 | ||
2104 | * editfns.c (find_field): Properly handle the case | |
2105 | of a field boundary where `field' inherits from neither side. | |
2106 | ||
2107 | * editfns.c (Ffield_beginning, Ffield_end): Doc fixes. | |
2108 | (Ferase_field, Ffield_string, Ffield_string_no_properties): Doc fixes. | |
2109 | ||
fa9aabf6 GM |
2110 | 1999-11-08 Gerd Moellmann <gerd@gnu.org> |
2111 | ||
2112 | * bytecode.c (Fbyte_code) <BinsertN, Bcall>: Do the | |
2113 | BEFORE_POTENTIAL_GC before DISCARD. | |
2114 | ||
4015b3c0 GM |
2115 | 1999-11-07 Gerd Moellmann <gerd@gnu.org> |
2116 | ||
033a5fa3 GM |
2117 | * alloc.c (Fgarbage_collect): Call unmark_byte_stack. |
2118 | ||
2119 | * lisp.h: Add prototype for unmark_byte_stack. | |
2120 | ||
2121 | * bytecode.c (mark_byte_stack): Use XMARKBIT and XMARK. | |
2122 | (unmark_byte_stack): Renamed from relocate_byte_pcs. Use | |
2123 | XUNMARK. | |
2124 | ||
55b064bd GM |
2125 | * xdisp.c (resize_mini_window): Fix computation of needed |
2126 | mini-window height. | |
2127 | ||
2128 | * alloc.c, buffer.c, editfns.c, xdisp.c: Remove conditional | |
2129 | compilation on USE_TEXT_PROPERTIES. | |
01e9b9df | 2130 | |
4015b3c0 | 2131 | * Fbyte_code: Use block statements in cases and declare v1 and v2 |
60af03f1 | 2132 | locally there. Rearrange case statements so that those most |
4015b3c0 GM |
2133 | frequently executed come first. Avoid goto's in frequently |
2134 | executed cases. | |
2135 | ||
fe512f27 GM |
2136 | 1999-11-05 Gerd Moellmann <gerd@gnu.org> |
2137 | ||
dd59e217 GM |
2138 | * bytecode.c (Fbyte_code): Use BEFORE_POTENTIAL_GC and |
2139 | AFTER_POTENTIAL_GC around internal_catch. | |
2140 | ||
bcf28080 GM |
2141 | * alloc.c (Fgarbage_collect): Call mark_byte_stack and |
2142 | relocate_byte_pcs. | |
2143 | (init_alloc_once, init_alloc): Set byte_stack_list to null. | |
2144 | ||
2145 | * eval.c (struct catchtag): Add member byte_stack. | |
2146 | (internal_catch, Fcondition_case, internal_condition_case) | |
dd59e217 | 2147 | (internal_condition_case_1): Save value of byte_stack_list in |
bcf28080 GM |
2148 | catchtag. |
2149 | (unwind_to_catch): Restore byte_stack_list from catchtag. | |
2150 | ||
2151 | * lisp.h: Add prototypes for new functions in bytecode.c. | |
2152 | Add extern declaration for byte_stack_list. | |
2153 | ||
2154 | * bytecode.c (struct byte_stack): New. | |
2155 | (byte_stack_list, mark_byte_stack, relocate_byte_pcs): New | |
2156 | (BEFORE_POTENTIAL_GC, AFTER_POTENTIAL_GC): New. | |
2157 | (FETCH, PUSH, POP, DISCARD, TOP, MAYBE_GC): Rewritten. | |
2158 | (HANDLE_RELOCATION): Removed. | |
2159 | (Fbyte_code): Use byte_stack structures. | |
2160 | ||
4d59c34c GM |
2161 | * filelock.c (Ffile_locked_p): Make FILENAME a required argument. |
2162 | ||
fe512f27 GM |
2163 | * buffer.c (syms_of_buffer): Extend documentation of |
2164 | mode-line-format. | |
2165 | ||
60b64cd6 GM |
2166 | 1999-11-04 Gerd Moellmann <gerd@gnu.org> |
2167 | ||
2168 | * editfns.c (Fdelete_field): Renamed from Ferase_field. | |
2169 | ||
2170 | * minibuf.c (do_completion, Fminibuffer_complete_word): Use | |
2171 | Ferase_field instead of Fdelete_field. | |
2172 | ||
b51b619b GM |
2173 | 1999-11-03 Gerd Moellmann <gerd@gnu.org> |
2174 | ||
2175 | * dispnew.c (Finternal_show_cursor): Change it to set the | |
2176 | cursor on/off, not toggle its state. | |
2177 | (Finternal_show_cursor_p): New. | |
2178 | (syms_of_display): Defsubr Sinternal_show_cursor_p. | |
2179 | ||
5865af0d DL |
2180 | 1999-11-03 Dave Love <fx@gnu.org> |
2181 | ||
2182 | * charset.c (split_non_ascii_string): Define return value. | |
2183 | ||
82a700f3 GM |
2184 | 1999-11-03 Gerd Moellmann <gerd@gnu.org> |
2185 | ||
edfef199 GM |
2186 | * minibuf.c (string_to_object): New. |
2187 | (read_minibuf_noninteractive): New. | |
2188 | (read_minibuf): Call read_minibuf_noninteractive if | |
2189 | noninteractive. Use string_to_object. | |
2190 | ||
82a700f3 GM |
2191 | * doc.c (Fdocumentation_property): Fix bug bypassing UNGCPRO. |
2192 | ||
b5540f0d DL |
2193 | 1999-11-02 Dave Love <fx@gnu.org> |
2194 | ||
e69dcd60 DL |
2195 | * gnu-linux.h: Use SIGCHLD, not SIGCLD (not in glibc 2.1). |
2196 | ||
827a1788 DL |
2197 | * process.c: Define _GNU_SOURCE before config.h to get strsignal |
2198 | declared with glibc2. | |
b5540f0d | 2199 | |
a69a6e61 GM |
2200 | 1999-11-02 Gerd Moellmann <gerd@gnu.org> |
2201 | ||
2202 | * lisp.h (QUIT): Give it statement form. | |
2203 | ||
87e21fbd DL |
2204 | 1999-11-02 Dave Love <fx@gnu.org> |
2205 | ||
2206 | * eval.c (init_eval): Conditionalize declaration of gcpro_level. | |
2207 | ||
1b335865 GM |
2208 | 1999-11-02 Gerd Moellmann <gerd@gnu.org> |
2209 | ||
9fb5e03d GM |
2210 | * xfns.c (QCuser_data): New. |
2211 | (syms_of_xfns): Initialize QCuser_data. | |
2212 | (parse_image_spec): Ignore :user-data DATA properties. | |
2213 | ||
1b335865 GM |
2214 | * xdisp.c (display_line): Set charpos of first glyph in blank |
2215 | lines not corresponding to any text to -1, even if no glyphs are | |
2216 | filled in in that line. | |
2217 | ||
e76f1c44 GM |
2218 | 1999-11-01 Gerd Moellmann <gerd@gnu.org> |
2219 | ||
36fcd3d9 GM |
2220 | * xfns.c (png_load) [PNG_READ_sRGB_SUPPORTED]: Put code using |
2221 | png_get_sRGB in #ifdef. | |
2222 | ||
111259b4 GM |
2223 | * dispnew.c (Finternal_show_cursor): Renamed from Fshow_cursor. |
2224 | (syms_of_display): Use the new name. | |
2225 | ||
dd5c96e8 GM |
2226 | * textprop.c (verify_interval_modification): Signal text-read-only |
2227 | instead of calling error. | |
2228 | ||
db8878fb GM |
2229 | * data.c (Qtext_read_only): New built-in error. |
2230 | (syms_of_data): Initialize it. | |
2231 | ||
2232 | * lisp.h: Add extern declaration for Qtext_read_only. | |
2233 | ||
e76f1c44 GM |
2234 | * syntax.c: Remove whitespace after open or in front of closing |
2235 | parentheses. | |
2236 | ||
83c8f461 | 2237 | 1999-11-01 Richard M. Stallman <rms@gnu.org> |
cb3a6c48 GM |
2238 | |
2239 | * Makefile.in (w16select.o, sound.o): Don't depend on lisp.h. | |
2240 | ||
7843e09c GM |
2241 | 1999-10-31 Gerd Moellmann <gerd@gnu.org> |
2242 | ||
575ed805 GM |
2243 | * xdisp.c (resize_mini_window): Compute needed height differently. |
2244 | ||
7843e09c GM |
2245 | * fns.c (Flength): Unroll loop over lists. |
2246 | ||
2247 | * xdisp.c (append_space): Return non-zero if space was appended. | |
2248 | (display_line): Set charpos of first glyph to -1 only if that | |
2249 | glyph is the space added by append_glyph. | |
2250 | ||
83c8f461 | 2251 | 1999-10-30 Richard M. Stallman <rms@gnu.org> |
cb3a6c48 GM |
2252 | |
2253 | * print.c (strout): Consider `noninteractive' and use stdout | |
2254 | only when PRINTCHARFUN is t. | |
2255 | ||
2256 | * lisp.h (struct gcpro) [DEBUG_GCPRO]: New field `level'. | |
2257 | (gcpro_level): Declare it extern. | |
2258 | [DEBUG_GCPRO] (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5): | |
2259 | Alternate definitions that set `level' and increment `gcpro_level'. | |
2260 | [DEBUG_GCPRO] (UNGCPRO): Alternate definition that checks gcpro_level. | |
2261 | ||
2262 | * eval.c [DEBUG_GCPRO] (gcpro_level): New variable. | |
2263 | (init_eval) [DEBUG_GCPRO]: Initialize it. | |
2264 | (unwind_to_catch) [DEBUG_GCPRO]: Set gcpro_level | |
2265 | from remaining gcprolist. | |
2266 | ||
3636f7a3 KH |
2267 | 1999-10-29 Kenichi Handa <handa@etl.go.jp> |
2268 | ||
2269 | * coding.c (code_convert_region): Update `dst' correctly. | |
2270 | ||
a2ad7096 GM |
2271 | 1999-10-28 Gerd Moellmann <gerd@gnu.org> |
2272 | ||
2273 | * fns.c (Fmemq, Fassq, Frassq, assq_no_quit, Fassoc) | |
2274 | (Frassoc): Rewritten. | |
2275 | ||
1e3196e8 GM |
2276 | 1999-10-27 Noah Friedman <friedman@splode.com> |
2277 | ||
2278 | * s/gnu-linux.h [HAVE_DEV_PTMX]: Redefine FIRST_PTY_LETTER to 'z'. | |
2279 | Define PTY_NAME_SPRINTF. | |
2280 | Redefine PTY_TTY_NAME_SPRINTF. | |
2281 | * config.in: Add undef for HAVE_DEV_PTMX. | |
2282 | ||
83c8f461 | 2283 | 1999-10-26 Richard M. Stallman <rms@gnu.org> |
4ea68fcc RS |
2284 | |
2285 | * regex.c (POP_FAILURE_POINT): Use failure_id.integer | |
2286 | as arg to DEBUG_POP and DEBUG_PRINT. | |
2287 | ||
83c8f461 | 2288 | 1999-10-27 Richard M. Stallman <rms@gnu.org> |
17dbfaad GM |
2289 | |
2290 | * data.c (Qad_activate_internal): Renamed from Qad_activate. | |
2291 | (Ffset): Call Qad_activate_internal. | |
2292 | (syms_of_data): Initialize Qad_activate_internal. | |
2293 | ||
26922151 GM |
2294 | 1999-10-27 Gerd Moellmann <gerd@gnu.org> |
2295 | ||
2296 | * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing if | |
2297 | Vterminal_frame is selected and Vwindow_system is non-nil. | |
2298 | ||
67a5596f GM |
2299 | 1999-10-26 Gerd Moellmann <gerd@gnu.org> |
2300 | ||
2bea706b GM |
2301 | * xdisp.c (echo_area_display): Put previous change in #if 0. |
2302 | ||
67a5596f GM |
2303 | * emacs.c (standard_args): Add `file' as synonym for `visit', |
2304 | `execute' as synonym for `eval'. | |
2305 | (main): Add new options to usage message. | |
2306 | ||
81dc5de5 GM |
2307 | 1999-10-25 Gerd Moellmann <gerd@gnu.org> |
2308 | ||
2309 | * data.c (Qhash_table): New. | |
2310 | (Ftype_of): Return it for hash tables. | |
2311 | (syms_of_data): Initialize Qhash_table. | |
2312 | ||
83c8f461 | 2313 | 1999-10-25 Richard M. Stallman <rms@gnu.org> |
bd3c545d GM |
2314 | |
2315 | * regex.c (POP_FAILURE_POINT): Extract failure_id as an integer. | |
2316 | ||
66e4690f | 2317 | 1999-10-24 Ken Raeburn <raeburn@gnu.org> |
3a7093d8 | 2318 | |
7539e11f KR |
2319 | * alloc.c: Undef HIDE_LISP_IMPLEMENTATION before including |
2320 | lisp.h. | |
2321 | ||
2322 | * buffer.c (Fbuffer_list, Fget_file_buffer, get_truename_buffer, | |
2323 | Fbuffer_local_variables, Fother_buffer, record_buffer, | |
2324 | set_buffer_internal_1, Fbury_buffer, Fkill_all_local_variables, | |
2325 | swap_out_buffer_local_variables, overlays_at, overlays_in, | |
2326 | overlay_touches_p, overlay_strings, recenter_overlay_lists, | |
2327 | fix_overlays_in_range, fix_overlays_before, Foverlay_get, | |
2328 | Foverlay_put, report_overlay_modification, evaporate_overlays): | |
2329 | Use XCAR, XCDR, and XFLOAT_DATA instead of explicit member | |
2330 | references. | |
2331 | * data.c (Fcar, Fcar_safe, Fcdr, Fcdr_safe, Fsetcar, Fsetcdr, | |
2332 | swap_in_symval_forwarding, set_internal, default_value, | |
2333 | Fset_default, Fmake_variable_buffer_local, Fmake_local_variable, | |
2334 | Fmake_variable_frame_local, Flocal_variable_p, | |
2335 | Flocal_variable_if_set_p, arithcompare, Fzerop, cons_to_long, | |
2336 | Fnumber_to_string, float_arith_driver, Fadd1, Fsub1): Likewise. | |
2337 | * dispnew.c (Fframe_or_buffer_changed_p): Likewise. | |
2338 | * emacs.c (main): Likewise. | |
2339 | * fontset.c (fs_load_font, fs_register_fontset, | |
2340 | CACHED_FONTSET_NAME, CACHED_FONTSET_REGEX, Fquery_fontset, | |
2341 | Fnew_fontset, Fset_fontset_font): Likewise. | |
2342 | * frame.c (do_switch_frame, next_frame, prev_frame, | |
2343 | other_visible_frames, Fdelete_frame, Fvisible_frame_list): | |
2344 | Likewise. | |
2345 | * keyboard.c (read_char, help_char_p, event_to_kboard, | |
2346 | kbd_buffer_get_event, timer_start_idle, timer_check, | |
2347 | make_lispy_event, apply_modifiers, reorder_modifiers, | |
2348 | Fevent_convert_list, lucid_event_type_list_p, menu_bar_items, | |
2349 | menu_bar_one_keymap, menu_item_eval_property_1, parse_menu_item, | |
2350 | tool_bar_items, read_char_x_menu_prompt, read_key_sequence, | |
2351 | Fcommand_execute, Fexecute_extended_command): Likewise. | |
2352 | * minibuf.c (read_minibuf, get_minibuffer, Ftry_completion, | |
2353 | Fall_completions): Likewise. | |
2354 | * window.c (Fset_window_margins): Likewise. | |
2355 | ||
2356 | * callint.c (quotify_args): Don't explicitly use struct | |
2357 | Lisp_Cons, use Lisp_Object and XCAR/XCDR instead. | |
2358 | ||
3a7093d8 KR |
2359 | * s/netbsd.h (HAVE_GETLOADAVG): Define as 1. |
2360 | (UNEXEC, START_FILES, LIB_STANDARD, LIB_GCC): Define ELF versions, | |
2361 | if __ELF__ is defined. | |
2362 | ||
2a3d7146 GM |
2363 | 1999-10-24 Gerd Moellmann <gerd@gnu.org> |
2364 | ||
2365 | * window.c (Fnext_window): Add a QUIT in the loop. | |
2366 | ||
8ac52782 GM |
2367 | 1999-10-23 Gerd Moellmann <gerd@gnu.org> |
2368 | ||
2369 | * Makefile.in (bootstrap, bootstrap-emacs, bootstrap-temacs): | |
2370 | New targets. | |
2371 | ||
05f0d15a DL |
2372 | 1999-10-22 Dave Love <fx@gnu.org> |
2373 | ||
2374 | * emacs.c (main): Enable profiling conditional on __linux also. | |
2375 | ||
882fb0e6 GM |
2376 | 1999-10-20 Gerd Moellmann <gerd@gnu.org> |
2377 | ||
2378 | * xrdb.c (x_load_resources): Set default resources for resource | |
2379 | classes instead of for the specific Emacs. | |
2380 | ||
b5f5bc31 GM |
2381 | 1999-10-19 Gerd Moellmann <gerd@gnu.org> |
2382 | ||
66f4dd69 GM |
2383 | * s/freebsd.h (HAVE_GETLOADAVG): Define as 1 because config.h |
2384 | defines it that way. | |
2385 | ||
b5f5bc31 GM |
2386 | * xdisp.c (echo_area_display) [HAVE_X_WINDOWS]: Do nothing |
2387 | if selected_frame is equal to Vterminal_frame. | |
2388 | ||
68c45bf0 PE |
2389 | 1999-10-19 Paul Eggert <eggert@twinsun.com> |
2390 | ||
2391 | Add support for large files, 64-bit Solaris, system locale codings. | |
2392 | ||
2393 | * Makefile.in (emacs): Set the LC_ALL environment variable to "C" | |
2394 | when dumping, so that the dumped Emacs doesn't have stray locale info. | |
2395 | (dired.o): Depend on systime.h. | |
2396 | (editfns.o): Depend on coding.h. | |
2397 | ||
2398 | * alloc.c, buffer.c, callproc.c, ccl.c, charset.c, coding.c, data.c, | |
2399 | dispnew.c, editfns.c, emacs.c, filelock.c, floatfns.c, hftctl.c, | |
2400 | keyboard.c, process.c, sysdep.c, unexelf.c, unexhp9k800.c, | |
2401 | unexsunos4.c, vmsfns.c, vmsgmalloc.c, w32faces.c, w32menu.c, w32term.c, | |
2402 | w32xfns.c, xfaces.c, xfns.c, xmenu.c, xterm.c: | |
2403 | Include <config.h> before any system include files. | |
2404 | ||
2405 | * alloc.c, buffer.c, ccl.c, data.c, editfns.c, emacs.c, eval.c, | |
2406 | fileio.c, filelock.c, frame.c, insdel.c, keymap.c, lread.c, | |
2407 | m/alpha.h, print.c, search.c, sysdep.c, xdisp.c, xfaces.c, xfns.c, | |
2408 | xmenu.c, xterm.c: | |
2409 | Do not include <stdlib.h>, as <config.h> does this now. | |
2410 | ||
2411 | * callproc.c (Fcall_process): | |
2412 | Synchronize messages locale before invoking strerror. | |
2413 | Decode resulting string with locale-coding-system. | |
2414 | ||
2415 | * coding.c (Vlocale_coding_system): New var. | |
2416 | (syms_of_coding): Adjust to above change. | |
2417 | (emacs_strerror): New function. | |
2418 | ||
2419 | * coding.h (emacs_strerror, Vlocale_coding_system): New decls. | |
2420 | ||
2421 | * config.in (HAVE_STDIO_EXT_H, HAVE_TM_GMTOFF, HAVE___FPENDING, | |
2422 | HAVE_FTELLO, HAVE_GETLOADAVG, HAVE_MBLEN, HAVE_MBRLEN, | |
2423 | HAVE_STRSIGNAL): New macros. | |
2424 | (BITS_PER_LONG): Default to 64 if _LP64 is defined. | |
2425 | <stdlib.h>: Include if HAVE_STDLIB_H is defined and NOT_C_CODE isn't. | |
2426 | ||
2427 | * dired.c: Include "systime.h". | |
2428 | (Ffile_attributes): Do not cast s.st_size to int; this loses | |
2429 | information if int is 32 bits but st_size and EMACS_INT are larger. | |
2430 | Treat large device numbers like large inode numbers. | |
2431 | ||
2432 | * dispnew.c (PENDING_OUTPUT_COUNT): Use __fpending if available. | |
2433 | ||
2434 | * editfns.c: Include coding.h. | |
2435 | (emacs_strftime): Remove decl. | |
2436 | (emacs_strftimeu): New decl. | |
2437 | (emacs_memftimeu): Renamed from emacs_memftime; new arg UT. | |
2438 | Use emacs_strftimeu instead of emacs_strftime. | |
2439 | (Fformat_time_string): Convert format string using | |
2440 | Vlocale_coding_system, and convert result back. Synchronize time | |
2441 | locale before invoking lower level function. Invoke | |
2442 | emacs_memftimeu, passing ut, instead of emacs_memftime. | |
2443 | ||
2444 | * emacs.c: Include <locale.h> if HAVE_SETLOCALE is defined. | |
2445 | (Vmessages_locale, Vprevious_messages_locale, Vtime_locale, | |
2446 | Vprevious_time_locale): New variables. | |
2447 | (main): Invoke setlocale early, so that initial error messages are | |
2448 | localized properly. But skip locale-setting if LC_ALL is "C". | |
2449 | Fix up locale when it's safe to do so. | |
2450 | (fixup_locale): Moved here from xterm.c. | |
2451 | (synchronize_locale, synchronize_time_locale, | |
2452 | synchronize_messages_locale): New functions. | |
2453 | (syms_of_emacs): Accommodate above changes. | |
2454 | ||
2455 | * fileio.c (report_file_error): Convert strerror output according | |
2456 | to Vlocale_coding_system. | |
2457 | (Finsert_file_contents): Check for arithmetic overflow in | |
2458 | computations that depend on file size. Report IO errors | |
2459 | with emacs_strerror, not strerror. | |
2460 | ||
2461 | * fns.c (Fgethash): Declare dflt parameter. | |
2462 | ||
2463 | * gmalloc.c: Do not define const to nothing if HAVE_CONFIG_H | |
2464 | is defined; that's config.h's job. | |
2465 | ||
2466 | * lisp.h (EMACS_INT, BITS_PER_EMACS_INT, EMACS_UINT): If _LP64, | |
2467 | default these values to long, BITS_PER_LONG, and unsigned long. | |
2468 | (VALBITS, MARKBIT, XINT): Do not assume 32-bit EMACS_INT. | |
2469 | (PNTR_COMPARISON_TYPE): Default to EMACS_UINT, not to unsigned int. | |
2470 | (code_convert_string_norecord, fixup_locale, | |
2471 | synchronize_messages_locale, synchronize_time_locale, | |
2472 | emacs_open, emacs_close, emacs_read, emacs_write): New decls. | |
2473 | All Emacs callers of open, close, read, write changed to use | |
2474 | emacs_open, emacs_close, emacs_read, emacs_write. | |
2475 | ||
2476 | * lread.c (file_offset, file_tell): New macros. All uses of ftell | |
2477 | changed to file_tell. | |
2478 | (saved_doc_string_position, prev_saved_doc_string_position): Now | |
2479 | of type file_offset. | |
2480 | (init_lread): Do not fix locale here; fixup_locale now does this. | |
2481 | ||
2482 | * m/amdahl.h, s/usg5-4.h: | |
2483 | (NSIG): Remove. | |
2484 | (NSIG_MINIMUM): New macro. | |
2485 | ||
2486 | * m/cydra5.h, m/dpx2.h, m/mips.h, m/pfa50.h, m/sps7.h, m/stride.h, | |
2487 | m/ustation.h, s/gnu-linux.h, s/hpux.h, s/iris3-5.h, s/iris3-6.h, | |
2488 | s/umips.h, s/usg5-4.h: | |
2489 | (SIGIO): Do not undef. | |
2490 | (BROKEN_SIGIO): New macro. | |
2491 | ||
2492 | * m/ustation.h: | |
2493 | (SIGTSTP): Do not undef. | |
2494 | (BROKEN_SIGTSTP): New macro. | |
2495 | ||
2496 | * s/gnu-linux.h: | |
2497 | (SIGPOLL, SIGURG): Do not undef. | |
2498 | (BROKEN_SIGPOLL, BROKEN_SIGURG): New macros. | |
2499 | ||
2500 | * s/ptx4.h: | |
2501 | (SIGINFO): Do not undef. | |
2502 | (BROKEN_SIGINFO): New macros. | |
2503 | ||
2504 | * m/delta.h, s/ptx.h, s/template.h: Doc fix. | |
2505 | ||
2506 | * mktime.c, strftime.c: Update to glibc 2.1.2 version, with | |
2507 | some Emacs-related changes merged. | |
2508 | ||
2509 | * print.c (float_to_string): Prepend "-" to representation of a | |
2510 | NaN if the NaN is negative. | |
2511 | ||
2512 | * process.c (sys_siglist): Omit if HAVE_STRSIGNAL. | |
2513 | (wait_reading_process_input): Use emacs_strerror, not strerror. | |
2514 | ||
2515 | * process.c (status_message, sigchld_handler): Synchronize locale, | |
2516 | then use strsignal istead of sys_siglist. | |
2517 | * w32proc.c (sys_wait): Likewise. | |
2518 | ||
2519 | * s/aix3-1.h, s/bsd4-1.h, s/dgux.h, s/gnu-linux.h, s/hiuxmpp.h, | |
2520 | s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/osf1.h, s/rtu.h, | |
2521 | s/sunos4-1.h, s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, | |
2522 | s/usg5-2.h, s/usg5-3.h, s/xenix.h: | |
2523 | (open, close, read, write, INTERRUPTIBLE_OPEN, | |
2524 | INTERRUPTIBLE_CLOSE, INTERRUPTIBLE_IO): Remove. | |
2525 | ||
2526 | * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): New macros. | |
2527 | ||
2528 | * sysdep.c (sys_read, sys_write, read, write, sys_close, close, | |
2529 | sys_open, open): Remove. | |
2530 | (emacs_open, emacs_close, emacs_read, emacs_write): Always define; | |
2531 | the old INTERRUPTIBLE_OPEN, INTERRUPTIBLE_CLOSE, and INTERRUPTIBLE_IO | |
2532 | macros are no longer used. | |
2533 | (emacs_open): Renamed from sys_open. Merge BSD4_1 version. | |
2534 | (emacs_close): Renamed from sys_close. | |
2535 | (emacs_read): Renamed from sys_read. | |
2536 | (emacs_write): Renamed from sys_write. | |
2537 | (sys_siglist): Do not declare if HAVE_STRSIGNAL. | |
2538 | (dup2): Do not print error on failure; the real dup2 doesn't. | |
2539 | (strsignal): New function, defined if !HAVE_STRSIGNAL. | |
2540 | ||
2541 | * syssignal.h (SIGINFO): Undef if defined and if BROKEN_SIGINFO | |
2542 | is defined. | |
2543 | (SIGIO, SIGPOLL, SIGTSTP, SIGURG): Likewise. | |
2544 | (NSIG): If less than NSIG_MINIMUM, define to NSIG_MINIMUM. | |
2545 | (strsignal): Declare if !HAVE_STRSIGNAL. | |
2546 | ||
2547 | * unexelf.c (ElfBitsW, ELFSIZE, ElfExpandBitsW): New macros. | |
2548 | (ElfW): Define in terms of ElfExpandBitsW. | |
2549 | ||
2550 | * w32proc.c (sys_siglist): Remove decl. | |
2551 | ||
2552 | * xdisp.c (decode_mode_spec): 3rd arg is int, not char, to comply | |
2553 | with ANSI C. | |
2554 | (display_string): Declare face_string_pos arg. | |
2555 | ||
2556 | * xfns.c (Fx_show_tip): Declare timeout param. | |
2557 | ||
2558 | * xterm.c: No need to include locale.h. | |
2559 | (x_alloc_lighter_color, x_setup_relief_color): | |
2560 | Pass arg as double, not float, for compatibility with ANSI C. | |
2561 | (fixup_locale): Move to emacs.c. | |
2562 | (x_term_init): Do not setlocale or fixup locale; the main program | |
2563 | does this now. | |
2564 | ||
2f0b74ea DL |
2565 | 1999-10-18 Dave Love <fx@gnu.org> |
2566 | ||
2567 | * doc.c (Fdocumentation_property): Gcpro `tem'. | |
2568 | ||
471aa4a0 KH |
2569 | 1999-10-18 Kenichi Handa <handa@etl.go.jp> |
2570 | ||
2571 | * lread.c (Fload): Calculate bytes of filename correctly. | |
2572 | (openp): Likewise. | |
2573 | ||
aca2020b KH |
2574 | 1999-10-18 Keisuke Nishida <kxn30@po.cwru.edu> |
2575 | ||
2576 | * print.c (print_preprocess): In case print-circle is nil, | |
2577 | add OBJ to Vprint_number_table only when OBJ is a symbol. | |
2578 | ||
1f5fe392 | 2579 | 1999-10-18 Kenichi Handa <handa@etl.go.jp> |
b843d1ae KH |
2580 | |
2581 | * coding.c (code_convert_string): Add record_unwind_protect to | |
2582 | assure setting inhibit_pre_post_conversion back to zero. Take | |
2583 | care of the multibyteness of the working buffer. | |
2584 | ||
2585 | * coding.c (inhibit_pre_post_conversion): New variable. | |
2586 | (setup_coding_system): If inhibit_pre_post_conversion is nonzero, | |
2587 | ignore post-read-conversion and pre-write-conversion property of | |
2588 | the coding system. | |
2589 | (code_convert_region_unwind): New function. | |
2590 | (code_convert_region): Set inhibit_pre_post_conversion to 1 while | |
2591 | running pre-write-conversion and post-read-conversion. | |
2592 | (code_convert_string): Likewise. | |
2593 | ||
cd876a91 GM |
2594 | 1999-10-17 Miles Bader <miles@gnu.org> |
2595 | ||
2596 | * editfns.c: Doc fix. | |
2597 | ||
2598 | 1999-10-17 Miles Bader <miles@gnu.org> | |
2599 | ||
2600 | * editfns.c (Fconstrain_to_field): Make sure we don't violate the | |
2601 | argument preconditions of find_before_next_newline in the case | |
2602 | where both ONLY_IN_LINE and ESCAPE_FROM_EDGE are set and OLD_POS | |
2603 | was indeed at the edge. | |
2604 | ||
2605 | 1999-10-17 Miles Bader <miles@gnu.org> | |
2606 | ||
2607 | * minibuf.c (Fminibuffer_complete_and_exit): Supply value for new | |
2608 | ESCAPE_FROM_EDGE parameter to Ffield_beginning. | |
2609 | ||
2610 | * editfns.c (text_property_eq, text_property_stickiness): Don't | |
2611 | use initializers for auto variables of type Lisp_Object. | |
2612 | (find_field): Likewise. Use braces around nested ifs. | |
2613 | (Fline_end_position): Store the raw eol in a variable, so that the | |
2614 | final expression doesn't look so ugly. | |
2615 | (Fconstrain_to_field): Doc fix. | |
2616 | (preceding_pos): Renamed from `preceeding_pos'. | |
2617 | (text_property_stickiness, find_field): Call preceding_pos, | |
2618 | not preceeding_pos. | |
2619 | ||
2620 | 1999-10-17 Miles Bader <miles@gnu.org> | |
2621 | ||
2622 | * editfns.c (Ffield_string_no_properties): New function. | |
2623 | (text_property_stickiness, preceeding_pos): New functions. | |
2624 | (Ffield_string): Remove PROPS parameter. | |
2625 | (find_field): Add MERGE_AT_BOUNDARY parameter. | |
2626 | Rewrite to use stickiness of `field' property to resolve | |
2627 | ambiguous cases. | |
2628 | (Ffield_beginning, Ffield_end): Add ESCAPE_FROM_EDGE parameter. | |
2629 | (Fconstrain_to_field): Likewise. | |
2630 | (syms_of_editfns): Init Sfield_string_no_properties. | |
2631 | (Ffield_string, Ferase_field, Ffield_end): | |
2632 | Supply new MERGE_AT_BOUNDARY argument to find_field. | |
2633 | (Fline_beginning_position, Fline_end_position): Supply new | |
2634 | ESCAPE_FROM_EDGE parameter to Fconstrain_to_field. | |
2635 | Pass a value of Qt for the ONLY_IN_LINE argument to | |
2636 | Fconstrain_to_field (only matters if N != 1). | |
2637 | * syntax.c (Fforward_word): Supply new ESCAPE_FROM_EDGE parameter | |
2638 | to Fconstrain_to_field. | |
2639 | ||
2640 | * minibuf.c (Fminibuffer_complete_word): Use | |
2641 | Ffield_beginning to find the prompt end. | |
2642 | ||
2643 | 1999-10-17 Miles Bader <miles@gnu.org> | |
2644 | ||
2645 | * editfns.c (Fconstrain_to_field): Add get/set-current-point | |
2646 | behavior when NEW_POS is nil. | |
2647 | (find_field): Use XSETFASTINT instead of make_number. | |
2648 | * minibuf.c (Fminibuffer_complete_and_exit): Test for an empty | |
2649 | input string by seeing where the field begins, instead of | |
2650 | looking at text-properties. | |
2651 | ||
2652 | 1999-10-17 Miles Bader <miles@gnu.org> | |
2653 | ||
2654 | * editfns.c (Qfield): New variable. | |
2655 | (find_field, Ferase_field, Ffield_string, | |
2656 | Ffield_beginning, Ffield_end, Fconstrain_to_field): New functions. | |
2657 | (Fline_beginning_position, Fline_end_position): Constrain to any field. | |
2658 | (make_buffer_string_both): Remove minibuffer-prompt hack. | |
2659 | (syms_of_editfns): Initialize Qfield, and subr entries for | |
2660 | field functions above. | |
2661 | * minibuf.c (read_minibuf): Don't save minibuffer prompt length on | |
2662 | minibuf_save_list. | |
2663 | Don't initialize minibuffer prompt length. | |
2664 | Wrap prompt text-properties around the entire prompt. | |
2665 | Add 'prompt text-property to prompt. | |
2666 | Get final value with Ffield_string instead of make_buffer_string. | |
2667 | (read_minibuf_unwind): Don't restore minibuffer prompt length from | |
2668 | minibuf_save_list. | |
2669 | (do_completion): Get minibuffer input with Ffield_string | |
2670 | instead of Fbuffer_string. | |
2671 | Erase minibuffer input with Ferase_field instead of erase_buffer. | |
2672 | (Fminibuffer_complete_and_exit): Likewise. | |
2673 | Test whether buffer is empty by looking for the 'prompt text | |
2674 | property at the end. | |
2675 | Set prompt length by looking for the end of the prompt text property, | |
2676 | and save prompt length for later use (since there is no longer a | |
2677 | buffer variable to get it from). | |
2678 | (Fminibuffer_prompt_width, Fminibuffer_prompt_end): Functions removed. | |
2679 | (syms_of_minibuf): Remove initializations of | |
2680 | Sminibuffer_prompt_width and Sminibuffer_prompt_end. | |
2681 | * buffer.h (struct buffer): Remove prompt_end_charpos field. | |
2682 | * buffer.c (Fget_buffer_create, Fmake_indirect_buffer, Fkill_buffer): | |
2683 | Don't initialize prompt_end_charpos field. | |
2684 | * syntax.c (Fforward_word): Likewise. | |
2685 | Constrain to any field. | |
2686 | ||
3f6f7508 GM |
2687 | 1999-10-16 Gerd Moellmann <gerd@gnu.org> |
2688 | ||
2689 | * window.c (enum save_restore_action): New. | |
2690 | (save_restore_orig_size): Change parameter list. Add | |
2691 | functionality to check for valid orig_top and orig_height members | |
2692 | in a window tree. | |
2693 | (grow_mini_window): Call save_restore_orig_size with new parameter | |
2694 | list. | |
2695 | (shrink_mini_window): Restore old window sizes only if old | |
2696 | size information is valid in all windows in a window tree. | |
2697 | ||
06482119 GM |
2698 | 1999-10-15 Gerd Moellmann <gerd@gnu.org> |
2699 | ||
2710454d GM |
2700 | * xmenu.c (set_frame_menubar): Don't call |
2701 | x_set_menu_resources_from_menu_face here. | |
2702 | (update_frame_menubar): Call x_set_menu_resources_from_menu_face. | |
2703 | ||
06482119 GM |
2704 | * xfns.c (gif_load): Fix handling of interlaced GIFs. |
2705 | ||
17fa2837 DL |
2706 | 1999-10-14 Dave Love <fx@gnu.org> |
2707 | ||
2708 | * xdisp.c (handle_fontified_prop): GCPRO `pos'. | |
2709 | ||
45f93416 GM |
2710 | 1999-10-14 Gerd Moellmann <gerd@gnu.org> |
2711 | ||
2712 | * process.c (Fopen_network_stream): Don't loop if gethostbyname | |
2713 | fails and h_errno is TRY_AGAIN. | |
2714 | ||
c765b723 DL |
2715 | 1999-10-13 Dave Love <fx@gnu.org> |
2716 | ||
2717 | * filelock.c (lock_file): Move gcpro of `fn'. | |
2718 | ||
dace7f4e GM |
2719 | 1999-10-10 Gerd Moellmann <gerd@gnu.org> |
2720 | ||
2721 | * keyboard.c (auto-save-interval): Fix documentation. | |
2722 | ||
83c8f461 | 2723 | 1999-10-09 Richard M. Stallman <rms@gnu.org> |
73fb36f1 RS |
2724 | |
2725 | * print.c (print): When removing objects from Vprint_number_table, | |
2726 | only scan the newly added objects. | |
2727 | (print_preprocess): If OBJ is a gensym, and print-continuous-numbering, | |
2728 | unconditionally force it to stay in the table. | |
2729 | ||
85177c86 GM |
2730 | 1999-10-09 Gerd Moellmann <gerd@gnu.org> |
2731 | ||
2732 | * xfns.c (prepare_image_for_display): Don't try to load image if | |
2733 | loading it failed before. | |
2734 | (lookup_image, prepare_image_for_display): Remember if loading the | |
2735 | image failed. | |
2736 | (xpm_load): Add missing UNBLOCK_INPUT. | |
2737 | ||
2738 | * dispextern.h (struct image): New member load_failed_p. | |
2739 | ||
11e4de5d SM |
2740 | 1999-10-08 Stefan Monnier <monnier@cs.yale.edu> |
2741 | ||
f28eba7b | 2742 | * fileio.c (Fmake_temp_name): Add a reference to `make-temp-file' |
11e4de5d SM |
2743 | in the docstring. |
2744 | ||
f1da8f06 GM |
2745 | 1999-10-08 Gerd Moellmann <gerd@gnu.org> |
2746 | ||
2747 | * xterm.c (XTread_socket) <ClientMessage, WM_TAKE_FOCUS>: | |
2748 | Don't call XSetInputFocus because that can generate additional | |
2749 | FocusIn events. | |
2750 | ||
c37bbd4f GM |
2751 | 1999-10-07 Jeffrey C Honig <jch@bsdi.com> |
2752 | ||
2753 | * bsdos4.h [HAVE_LIBNCURSES]: Define TERMINFO and LIBS_TERMCAP. | |
2754 | ||
83c8f461 | 2755 | 1999-10-07 Richard M. Stallman <rms@gnu.org> |
78cc5c64 GM |
2756 | |
2757 | * process.c (wait_reading_process_input): When trying to suck | |
2758 | input from one process, for accept-process-output, | |
2759 | exit that loop if we get EAGAIN or EWOULDBLOCK. | |
2760 | ||
577d9e2f GM |
2761 | 1999-10-07 Gerd Moellmann <gerd@gnu.org> |
2762 | ||
2763 | * xfaces.c (Qbitmap_spec_p): Replaces Qpixmap_spec_p. | |
2764 | (Fbitmap_spec_p): Replaces Fpixmap_spec_p. | |
2765 | (load_pixmap): Use Fbitmap_spec_p and Qbitmap_spec_p instead of | |
2766 | Fpixmap_spec_p and Qpixmap_spec_p. | |
2767 | (load_face_colors, check_lface_attrs, | |
2768 | merge_face_vector_with_property, | |
2769 | Finternal_set_lisp_face_attribute): Use Fbitmap_spec_p. | |
2770 | (syms_of_xfaces): Initialize Qbitmap_spec_p, defsubr | |
2771 | Fbitmap_spec_p. | |
2772 | ||
f5737ad2 GM |
2773 | 1999-10-07 Gerd Moellmann <gerd@gnu.org> |
2774 | ||
2775 | * xdisp.c (display_menu_bar): Use MENU_FACE_ID instead of | |
2776 | MODE_LINE_FACE_ID. | |
2777 | ||
2778 | * xfaces.c (toplevel) [USE_MOTIF]: Include some Motif headers. | |
2779 | (struct x_resources) [USE_X_TOOLKIT]: New. | |
2780 | (xm_apply_resources, xm_set_menu_resources_from_menu_face) | |
2781 | [USE_MOTIF]: New. | |
2782 | (xl_apply_resources, xl_set_menu_resources_from_menu_face) | |
2783 | [USE_LUCID]: New. | |
2784 | (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: New. | |
2785 | (Qmenu): New. | |
2786 | (syms_of_xfaces): Initialize Qmenu. | |
2787 | (realize_basic_faces): Realize face `menu'. | |
2788 | (resolve_face_name): New. | |
2789 | (lface_from_face_name): Use it. | |
2790 | (Finternal_set_lisp_face_attribute): Ditto. | |
2791 | (Fpixmap_spec_p): Rewritten. Extend doc string. | |
2792 | ||
2793 | * xmenu.c (set_frame_menubar, xmenu_show): Call | |
2794 | x_set_menu_resources_from_menu_face. | |
2795 | ||
2796 | * dispextern.h (enum face_id): Add MENU_FACE_ID. | |
2797 | (toplevel): Include X11/Intrinsic.h. | |
2798 | ||
6a1aa823 DL |
2799 | 1999-10-03 Ken'ichi Handa <handa@gnu.org> |
2800 | ||
2801 | * coding.c (DECODE_CHARACTER_ASCII): Decode ASCII invocated to GR | |
2802 | correctly. | |
2803 | ||
26901792 DL |
2804 | 1999-09-30 Kenichi Handa <handa@etl.go.jp> |
2805 | ||
2806 | * category.c (modify_lower_category_set): Set default value of | |
2807 | TABLE correctly. | |
2808 | ||
2809 | * minibuf.c (Fminibuffer_complete_word): Calculate string byte | |
2810 | size correctly. | |
2811 | ||
2812 | 1999-09-29 Gerd Moellmann <gerd@gnu.org> | |
2813 | ||
2814 | * editfns.c (Fpropertize): Renamed from Fproperties. | |
2815 | ||
2816 | 1999-09-29 Gerd Moellmann <gerd@gnu.org> | |
2817 | ||
2818 | * xdisp.c (resize_mini_window): Do nothing if frame is an X | |
2819 | frame that hasn't been initialized yet. | |
2820 | ||
83c8f461 | 2821 | 1999-09-28 Richard M. Stallman <rms@gnu.org> |
a04f1a93 PR |
2822 | |
2823 | * keymap.c (Fsingle_key_description): Make tem big enough. | |
2824 | (describe_buffer_bindings): Make buf big enough. | |
2825 | ||
83c8f461 | 2826 | 1999-09-27 Richard M. Stallman <rms@gnu.org> |
d177c583 PR |
2827 | |
2828 | * intervals.c (get_local_map): Use indirect_function, | |
2829 | not Findirect_function. | |
2830 | ||
26901792 DL |
2831 | 1999-09-27 Dave Love <fx@gnu.org> |
2832 | ||
2833 | * cm.h: Remove unneeded declaration of ospeed. | |
2834 | ||
2835 | 1999-09-26 Gerd Moellmann <gerd@gnu.org> | |
2836 | ||
2837 | * lisp.h (toplevel): Add prototype for | |
2838 | next_single_char_property_change. | |
2839 | ||
2840 | * textprop.c (next_single_char_property_change): New. | |
2841 | ||
2842 | * xdisp.c (display_prop_end, invisible_text_between_p): Use | |
2843 | next_single_char_property_change. | |
2844 | ||
2845 | 1999-09-25 Gerd Moellmann <gerd@gnu.org> | |
2846 | ||
2847 | * editfns.c (Fproperties): New. | |
2848 | (syms_of_editfns): Defsubr it. | |
2849 | ||
2850 | * xfns.c (lookup_image): Set image's timestamp because it's | |
2851 | used when we look it up. | |
2852 | ||
2853 | 1999-09-23 Gerd Moellmann <gerd@gnu.org> | |
2854 | ||
2855 | * window.c (enlarge_window): Add window parameter instead of using | |
2856 | selected_window. | |
2857 | (Fdisplay_buffer): Call it with window parameter instead of | |
2858 | setting selected_window. | |
2859 | (Fenlarge_window, Fshrink_window): Ditto. | |
2860 | (shrink_mini_window): If there is no recorded height and position | |
2861 | info, resize mini-window to height 1. | |
2862 | ||
2863 | * xfns.c (image_error): Use add_to_log. | |
2864 | ||
2865 | * xfaces.c (load_pixmap): Call add_to_log without frame parameter. | |
2866 | (load_face_font_or_fontset, load_color, | |
2867 | merge_face_vector_with_property): Ditto. | |
2868 | ||
2869 | * dispextern.h: Add prototype for add_to_log. | |
2870 | ||
2871 | * xfaces.c (add_to_log): Move to xdisp.c. | |
2872 | ||
2873 | * xdisp.c (add_to_log): Moved from xfaces.c. Remove frame | |
2874 | parameter. | |
2875 | ||
2876 | 1999-09-23 Gerd Moellmann <gerd@gnu.org> | |
2877 | ||
2878 | * xterm.c (XTread_socket) <MotionNotify>: Change #ifdef | |
2879 | USE_X_TOOLKIT to #ifdef USE_TOOLKIT_SCROLL_BARS. | |
2880 | ||
2881 | * xdisp.c (resize_mini_window): Use grow_mini_window and | |
2882 | shrink_mini_window. | |
2883 | ||
2884 | * window.c (window_min_size): Add parameter ignore_fixed_p. | |
2885 | (change_window_height): Call window_min_size with new parameter. | |
2886 | (shrink_window_lowest_first, save_restore_orig_size, | |
2887 | grow_mini_window, shrink_mini_window): New. | |
2888 | (make_window, replace_window): Initialize orig_top and | |
2889 | orig_height. | |
2890 | (enlarge_window): Renamed from change_window_height. Make it | |
2891 | static. | |
2892 | (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call | |
2893 | enlarge_window instead of change_window_height. | |
2894 | ||
2895 | * window.h (struct window): New members orig_top, orig_height. | |
2896 | (toplevel): Add prototypes for grow_mini_window and | |
2897 | shrink_mini_window. Remove prototype for change_window_height. | |
2898 | ||
2899 | 1999-09-21 Eli Zaretskii <eliz@gnu.org> | |
2900 | ||
2901 | * frame.c (frame_name_fnn_p): Fix previous change. | |
2902 | ||
2903 | 1999-09-20 Gerd Moellmann <gerd@gnu.org> | |
2904 | ||
2905 | * minibuf.c (toplevel): Move include of stdio.h to other includes. | |
2906 | ||
2907 | * dispnew.c (direct_output_for_insert): Cast arguments to | |
2908 | safe_bcopy to char *. | |
2909 | ||
2910 | * lread.c (readchar): Remove unused variables. | |
2911 | (read_filtered_event, read1, Fmapatoms): Ditto. | |
2912 | (toplevel): Include intervals.h. | |
2913 | ||
2914 | * eval.c (Fsignal): Remove unused variables. | |
2915 | (Fcommandp, do_autoload): Ditto. | |
2916 | ||
2917 | * lisp.h: Add prototype for safe_bcopy, fatal. | |
2918 | ||
2919 | * editfns.c (init_editfns): Remove unused variables. | |
2920 | (Fgoto_char, Fchar_after, Fformat): Ditto. | |
2921 | (message_text, message_length): Put in #ifndef HAVE_MENUS. | |
2922 | ||
2923 | * data.c (find_symbol_value): Remove unused variables. | |
2924 | (Faref, Fstring_to_number): Ditto. | |
2925 | (toplevel): Include stdio.h. | |
2926 | (Fnumber_to_string): Cast XINT to long for %ld. | |
2927 | ||
2928 | * casefiddle.c (casify_object): Remove unused variables. | |
2929 | (casify_region): Ditto. | |
2930 | ||
2931 | * filelock.c (get_boot_time): Put local variable used in | |
2932 | conditinally compiled section in #ifdef. | |
2933 | (toplevel): Include stdio.h. | |
2934 | ||
2935 | * keymap.c (Flookup_key, Faccessible_keymaps, describe_vector, | |
2936 | keys_of_keymap, syms_of_keymap): Remove unused variables. | |
2937 | ||
2938 | 1999-09-20 Gerd Moellmann <gerd@gnu.org> | |
2939 | ||
2940 | * xdisp.c (sync_frame_with_window_matrix_rows): Disable frame rows | |
2941 | whose corresponding window rows have been disabled in | |
2942 | try_window_id. | |
2943 | ||
2944 | 1999-09-20 Gerd Moellmann <gerd@gnu.org> | |
2945 | ||
2946 | * xdisp.c (compute_window_start_on_continuation_line): Handle case | |
2947 | that window start is out of range. | |
2948 | (handle_display_prop, handle_single_display_prop): Replace | |
2949 | marginal area specifications like `left-margin' with `(margin | |
2950 | left-margin)'. | |
2951 | (Qmargin): New. | |
2952 | (syms_of_xdisp): Initialize Qmargin. | |
2953 | ||
2954 | 1999-09-19 Gerd Moellmann <gerd@gnu.org> | |
2955 | ||
2956 | * syntax.c (update_syntax_table, find_defun_start, back_comment, | |
2957 | describe_syntax, skip_chars): Remove unused variables. | |
2958 | (back_comment, forw_comment): Add braces to if-statement with | |
2959 | if-else as dependent statement. | |
2960 | ||
2961 | * process.c (list_processes_1): Remove unused variables. | |
2962 | (Fopen_network_stream, create_process): Add parentheses to | |
2963 | conditional expressions. | |
2964 | (create_process): Put declaration of sigchld in #if 0. | |
2965 | (Fopen_network_stream): Removed unused variables. | |
2966 | (Fopen_network_stream, wait_reading_process_input, | |
2967 | wait_reading_process_input, send_process, send_process): Ditto. | |
2968 | (toplevel): Add prototypes for set_waiting_for_input and | |
2969 | keyboard_bit_set. | |
2970 | ||
2971 | * abbrev.c (Fexpand_abbrev): Remove unused variables. | |
2972 | ||
2973 | * textprop.c (Fset_text_properties): Remove unused variables. | |
2974 | (text_property_list, verify_interval_modification, | |
2975 | interval_has_all_properties): Ditto. | |
2976 | ||
2977 | * callproc.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h. | |
2978 | (Fcall_process): Remove unused variable. | |
2979 | ||
2980 | * keyboard.c (Frecursive_edit): Remove unused variable. | |
2981 | (command_loop_1, safe_run_hooks, kbd_buffer_get_event, | |
2982 | timer_check, make_lispy_event, menu_bar_items, | |
2983 | menu_bar_one_keymap, menu_bar_item, parse_menu_item, | |
2984 | parse_tool_bar_item, read_char_x_menu_prompt, read_key_sequence, | |
2985 | kbd_buffer_get_event, make_lispy_event, read_char_x_menu_prompt, | |
2986 | read_key_sequence): Ditto. Fread_key_sequence, | |
2987 | Fread_key_sequence_vector, Fsuspend_emacs): Ditto. | |
2988 | (read_key_sequence) [GOBBLE_FIRST_EVENT]: Put local variables only | |
2989 | used when GOBBLE_FIRST_EVENT is defined in #ifdef | |
2990 | (Fexecute_extended_command): Cast XINT to long for %ld. | |
2991 | (toplevel) [HAVE_UNISTD_H]: Include unistd.h. | |
2992 | (toplevel): Include sys/types.h. | |
2993 | ||
2994 | * lisp.h (RETURN_UNGCPRO): Use do-while (0) idiom. | |
2995 | (toplevel): Add prototypes for stuff_char, and | |
2996 | code_convert_string_norecord. | |
2997 | ||
2998 | 1999-09-19 Gerd Moellmann <gerd@gnu.org> | |
2999 | ||
3000 | * buffer.h: Add prototype for r_re_alloc. | |
3001 | ||
3002 | * insdel.c (copy_text): Removed unused variables. | |
3003 | (count_combining_after, count_combining_after, insert_1_both, | |
3004 | insert_from_string_1, insert_from_buffer_1, check_markers): Ditto. | |
3005 | (adjust_after_replace, replace_range): Add parentheses to logical | |
3006 | expressions. Remove unused variables. | |
3007 | (CHECK_BYTE_COMBINING_FOR_INSERT): Add parentheses to logical | |
3008 | expression. | |
3009 | ||
3010 | * alloc.c (Fgarbage_collect): Remove unused variable. | |
3011 | (compact_strings): Add parentheses around assignments in | |
3012 | conditional context. | |
3013 | (toplevel): Put declaration of unused function clear_marks | |
3014 | in #if 0 like its definition. | |
3015 | ||
3016 | * lisp.h: Add prototype for shrink_regexp_cache, | |
3017 | sweep_weak_hash_tables. | |
3018 | ||
3019 | 1999-09-19 Dave Love <fx@gnu.org> | |
3020 | ||
3021 | * process.c (Fopen_network_stream): Use strerror, not gai_strerror. | |
3022 | ||
3023 | * doc.c (read_bytecode_char): Declare arg. | |
3024 | ||
3025 | * lisp.h: Declare Fcurrent_message, Fmake_temp_name, | |
3026 | read_bytecode_char, Fx_hide_busy_cursor, getloadavg. | |
3027 | ||
3028 | 1999-09-18 Richard Stallman <rms@gnu.org> | |
3029 | ||
3030 | * xdisp.c (echo_area_display): Turn off code that returned | |
3031 | without doing anything when using a terminal frame. | |
3032 | ||
83c8f461 | 3033 | 1999-09-17 Richard M. Stallman <rms@gnu.org> |
27271329 PR |
3034 | |
3035 | * unexelf.c (unexec): Don't get confused by a short section | |
3036 | just before the bss section. | |
3037 | ||
26901792 DL |
3038 | 1999-09-16 Gerd Moellmann <gerd@gnu.org> |
3039 | ||
3040 | * emacs.c (main): Remove unused variables. | |
3041 | (sort_args, Fkill_emacs, Fkill_emacs): Ditto. | |
3042 | ||
3043 | * lisp.h: Add prototype for uninterrupt_malloc, memory_warnings, | |
3044 | init_fileio_once, syms_of_sound, init_xfns, init_fns | |
3045 | init_sound, check_message_stack. | |
3046 | ||
3047 | * emacs.c (toplevel) [HAVE_UNISTD_H]: Include unistd.h. | |
3048 | ||
3049 | * intervals.c (rotate_right, rotate_left): Add braces to avoid | |
3050 | ambiguous else warning. | |
3051 | (split_interval_left): Remove unused variables. | |
3052 | (previous_interval, adjust_intervals_for_deletion, | |
3053 | set_point_both, set_point_both, set_intervals_multibyte_1): Ditto. | |
3054 | (icount, idepth, zero_length): Move into #if 0 section below | |
3055 | original position where these are used. | |
3056 | ||
3057 | * buffer.h [REL_ALLOC]: Add prototypes for r_alloc and r_alloc_free. | |
3058 | ||
3059 | * buffer.c (Fkill_buffer): Remove unused variables. | |
3060 | (Fkill_buffer, overlays_at, overlays_in, recenter_overlay_lists, | |
3061 | fix_overlays_in_range, Fmove_overlay, Fprevious_overlay_change, | |
3062 | init_buffer_once, (syms_of_buffer): Ditto. | |
3063 | ||
3064 | * xrdb.c (get_fallback): Remove unused variable. | |
3065 | (x_load_resources): Ditto. Put local variable used for Motif only | |
3066 | in #ifdef USE_MOTIF. | |
3067 | ||
3068 | 1999-09-16 Gerd Moellmann <gerd@gnu.org> | |
3069 | ||
3070 | * minibuf.c (read_minibuf): Remove unused variables. | |
3071 | (read_minibuf, Fread_buffer, scmp, Fcompleting_read): Ditto. | |
3072 | (do_completion): Move assignment out of conditional context. | |
3073 | (Fdisplay_completion_list): Add parentheses to conditional expression. | |
3074 | ||
3075 | * cm.c (toplevel) [HAVE_TERMCAP_H]: Include termcap.h. | |
3076 | ||
3077 | * lisp.h: Add prototype for no_switch_window. | |
3078 | ||
3079 | * window.c (Fset_window_buffer): Remove unused variables. | |
3080 | (Fset_window_margins): Ditto. | |
3081 | ||
3082 | * xdisp.c (resize_mini_window): Temporarily set the selected | |
3083 | window's or Vminibuf_scroll_window's height to "fixed" around | |
3084 | the call the change_window_height. | |
3085 | ||
3086 | * window.c (window_fixed_size_p): Check window's height_fixed_p | |
3087 | flag. | |
3088 | ||
3089 | * window.h (struct window): New member height_fixed_p. | |
3090 | ||
3091 | * dispnew.c (direct_output_forward_char): Don't use this method | |
3092 | if showing a message or a message was just cleared because we | |
3093 | might need to resize the mini-window. | |
3094 | ||
3095 | 1999-09-16 Gerd Moellmann <gerd@gnu.org> | |
3096 | ||
3097 | * frame.c (Fdelete_frame): Correct local variable pointing to | |
3098 | selected frame after selecting new frame. | |
3099 | ||
3100 | 1999-09-15 Richard Stallman <rms@gnu.org> | |
3101 | ||
3102 | * puresize.h (BASE_PURESIZE): Increase to 525000. | |
3103 | ||
3104 | * filelock.c (Vtemporary_file_directory): New variable. | |
3105 | (syms_of_filelock): Set up Lisp variable. | |
3106 | ||
3107 | 1999-09-15 Gerd Moellmann <gerd@gnu.org> | |
3108 | ||
3109 | * term.c (OUTPUT_IF, OUTPUT1_IF): Use do-while. | |
3110 | (encode_terminal_code): Remove unused variables. | |
3111 | (turn_off_face): Ditto. | |
3112 | (toplevel): Include termcap.h if HAVE_TERMCAP_H. | |
3113 | ||
3114 | * dispnew.c (update_frame_line): If writing whole desired line, | |
3115 | don't clear to end of line if already at the end. | |
3116 | ||
3117 | 1999-09-15 Gerd Moellmann <gerd@gnu.org> | |
3118 | ||
3119 | * xdisp.c (resize_mini_window): Don't report changed window | |
3120 | height if it actually hasn't changed. | |
3121 | ||
3122 | * widget.c (set_frame_size, EmacsFrameSetCharSize): Remove | |
3123 | unused variables. | |
3124 | (mark_shell_size_user_specified): Put in #if 0 because not used. | |
3125 | (create_frame_gcs): Put in #if 0 because currently unused. | |
3126 | (first_frame_p): Ditto. | |
3127 | ||
3128 | * xmenu.c (single_menu_item, Fx_popup_menu, Fx_popup_menu, | |
3129 | single_submenu, update_frame_menubar, set_frame_menubar, | |
3130 | free_frame_menubar, xmenu_show, xdialog_show): Remove unused | |
3131 | variables. | |
3132 | ||
3133 | * print.c (PRINTFULLP): Removed because it is no longer used and | |
3134 | is misleading. | |
3135 | (Ferror_message_string): Remove unused variables. | |
3136 | (print_object): Cast argument of sprintf to long for `%ld' | |
3137 | specifier. Remove unused variable. | |
3138 | ||
3139 | 1999-09-14 Gerd Moellmann <gerd@gnu.org> | |
3140 | ||
3141 | * sound.c (Fplay_sound): Remove usused variables. | |
3142 | (be2hs): Put in #if 0 because it's currently not used. | |
3143 | ||
3144 | 1999-09-14 Ken Raeburn <raeburn@gnu.org> | |
3145 | ||
3146 | * print.c (Ferror_message_string, print_error_message, | |
3147 | print_object): Use XCAR, XCDR and XFLOAT_DATA instead of explicit | |
3148 | member access. | |
3149 | ||
3150 | 1999-09-14 Gerd Moellmann <gerd@gnu.org> | |
3151 | ||
3152 | * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Put code in do-while. | |
3153 | ||
3154 | * frame.c (Fnext_frame): Remove unused variable(s). | |
3155 | (Fprevious_frame, Fmouse_pixel_position, frame_name_fnn_p): Ditto. | |
3156 | (store_frame_param): Add parentheses to conditional expression. | |
3157 | (Fmodify_frame_parameters): Remove unused variables. | |
3158 | (Fmodify_frame_parameters, Fset_frame_size, Fset_frame_position): | |
3159 | Ditto. | |
3160 | ||
3161 | * xfns.c (x_set_background_color): Remove unused variable(s). | |
3162 | (x_set_border_pixel): Ditto. | |
3163 | (x_set_menu_bar_lines): Put local variable used only for | |
3164 | non-toolkit case in #ifdef/#endif. | |
3165 | (x_figure_window_size): Remove unused variable(s). | |
3166 | (x_figure_window_size, x_window, lookup_image, | |
3167 | xbm_read_bitmap_file_data, x_build_heuristic_mask, pbm_load, | |
3168 | png_load, jpeg_load, gif_load, x_create_tip_frame, | |
3169 | x_create_tip_frame, Fx_show_tip, x_set_border_pixel): Ditto. | |
3170 | ||
3171 | * xterm.c (x_scroll_bar_handle_click): Compile only if | |
3172 | not USE_TOOLKIT_SCROLL_BARS. | |
3173 | (x_scroll_bar_set_handle, x_scroll_bar_note_movement): Ditto. | |
3174 | ||
3175 | * dispextern.h: Add prototypes for gamma_correct and | |
3176 | x_kill_gs_process. | |
3177 | ||
3178 | * xterm.c (x_produce_glyphs): Remove unused variable(s). | |
3179 | (x_alloc_nearest_color_for_widget, note_tool_bar_highlight, | |
3180 | x_set_toolkit_scroll_bar_thumb): Ditto. | |
3181 | (x_scroll_bar_create): Move local variable to the | |
3182 | conditionally compiled section of code where it is used. | |
3183 | (x_scroll_bar_create): Remove unused variable(s). | |
3184 | (x_scroll_bar_remove, XTread_socket): Ditto. | |
3185 | (XTread_socket) <ConfigureNotify>: Move variables used for | |
3186 | non-toolkit case into conditionally compiled section of code. | |
3187 | ||
3188 | * window.h (freeze_window_starts): Fix typo in prototype. | |
3189 | ||
3190 | * xdisp.c (display_echo_area_1, try_window_id): Remove unused | |
3191 | variable(s). | |
3192 | ||
3193 | * lisp.h: Add prototype for debug_print. | |
3194 | ||
3195 | * dispextern.h (xassert) [GLYPH_DEBUG]: Change definition | |
3196 | to use do-while. | |
3197 | ||
3198 | * fns.c (SXHASH_COMBINE): Add missing parentheses. | |
3199 | (Fchar_table_range, Fset_char_table_default, mapcar1, | |
3200 | Fyes_or_no_p, sweep_weak_hash_tables): Remove unused variable(s). | |
3201 | ||
3202 | * lisp.h: Add prototype for getloadavg. | |
3203 | ||
3204 | 1999-09-14 Andreas Schwab <schwab@gnu.org> | |
3205 | ||
3206 | * process.c (Fopen_network_stream): Avoid socket decriptor leak. | |
3207 | ||
3208 | * lisp.h: Declare close_file_unwind. | |
3209 | ||
3210 | 1999-09-14 Richard Stallman <rms@gnu.org> | |
3211 | ||
3212 | * filelock.c (get_boot_time): Make the temp name in the proper dir. | |
3213 | ||
3214 | 1999-09-13 Gerd Moellmann <gerd@gnu.org> | |
3215 | ||
3216 | * xdisp.c (redisplay_window): Make sure start_at_line_beg | |
3217 | is always set correctly. | |
3218 | ||
3219 | 1999-09-13 Dave Love <fx@gnu.org> | |
3220 | ||
3221 | * xdisp.c (move_it_in_display_line_to): Make type consistent with | |
3222 | declaration. | |
3223 | ||
3224 | 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org> | |
3225 | ||
3226 | * xdisp.c (QCfile): Move here from xfns.c. | |
3227 | (syms_of_xdisp): Initialize it. | |
3228 | (message2_nolog): Change for Lisp_Object selected_frame. | |
3229 | (message3_nolog, message_with_string, message, | |
3230 | setup_echo_area_for_printing, truncate_echo_area, | |
3231 | prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto. | |
3232 | ||
3233 | 1999-09-13 Dave Love <fx@gnu.org> | |
3234 | ||
3235 | * xterm.c: Don't continue #define args for benefit of old cc. | |
3236 | (xt_action_hook): Indent #error for benefit of K&R cc. | |
3237 | ||
3238 | 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org> | |
3239 | ||
3240 | * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame. | |
3241 | (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto. | |
3242 | (XRINGBELL): Removed. | |
3243 | ||
3244 | 1999-09-13 Dave Love <fx@gnu.org> | |
3245 | ||
3246 | * xfns.c (x_put_x_image): Make type consistent with declaration. | |
3247 | ||
3248 | * fns.c (Fmake_hash_table): Fix string continuation. | |
3249 | ||
3250 | 1999-09-13 Gerd Moellmann <gerd@delysid.gnu.org> | |
3251 | ||
3252 | * xfns.c (QCfile): Moved to xdisp.c. | |
3253 | (syms_of_xfns): Don't initialize QCfile. | |
3254 | (check_x_frame): Change for Lisp_Object selected_frame. | |
3255 | (check_x_display_info, x_get_resource_string): Ditto. | |
3256 | ||
3257 | 1999-09-13 Gerd Moellmann <gerd@gnu.org> | |
3258 | ||
3259 | * minibuf.c (choose_minibuf_frame): Don't try to set the | |
3260 | mini-buffer window's buffer, if the buffer is invalid. | |
3261 | ||
3262 | * xfns.c (QCfile): Moved to xdisp.c. | |
3263 | (syms_of_xfns): Don't initialize QCfile. | |
3264 | ||
3265 | * xdisp.c (QCfile): Move here from xfns.c. | |
3266 | (syms_of_xdisp): Initialize it. | |
3267 | ||
3268 | * lisp.h (selected_frame): Add external declaration. | |
3269 | ||
3270 | * xselect.c (x_own_selection): Change for Lisp_Object selected_frame. | |
3271 | (Fx_store_cut_buffer_internal): Ditto. | |
3272 | (Fx_rotate_cut_buffers_internal): Ditto. | |
3273 | ||
3274 | * xfaces.c (frame_or_selected_frame): Change for Lisp_Object | |
3275 | selected_frame. | |
3276 | (Finternal_set_lisp_face_attribute): Ditto. | |
3277 | (Finternal_get_lisp_face_attribute): Ditto. | |
3278 | (Finternal_lisp_face_empty_p): Ditto. | |
3279 | (Fdump_face): Ditto. | |
3280 | ||
3281 | * term.c (OUTPUT): Change for Lisp_Object selected_frame. | |
3282 | (OUTPUT_IF, ring_bell, set_terminal_modes, reset_terminal_modes, | |
3283 | set_terminal_window, set_scroll_region, reassert_line_highlight, | |
3284 | change_line_highlight, cursor_to, raw_cursor_to, clear_to_end, | |
3285 | clear_end_of_line, clear_end_of_line_raw, clear_end_of_line_raw, | |
3286 | encode_terminal_code, write_glyphs, term_init): Ditto. | |
3287 | ||
3288 | * sysdep.c (reset_sys_modes): Change for Lisp_Object selected_frame. | |
3289 | (kbd_input_ast, read_input_waiting): Ditto. | |
3290 | ||
3291 | * minibuf.c (choose_minibuf_frame): Change for Lisp_Object | |
3292 | selected_frame. | |
3293 | (read_minibuf): Ditto. | |
3294 | ||
3295 | * keyboard.c (command_loop_1): Change for Lisp_Object | |
3296 | selected_frame. | |
3297 | (cmd_error_internal, command_loop_1, read_char, | |
3298 | kbd_buffer_get_event, read_avail_input, | |
3299 | read_char_minibuf_menu_prompt, read_key_sequence, Fsuspend_emacs, | |
3300 | interrupt_signal, quit_throw_to_read_char): Ditto. | |
3301 | ||
3302 | * fontset.c (Ffont_info): Change for Lisp_Object selected_frame. | |
3303 | (Ffontset_info): DItto. | |
3304 | ||
3305 | * emacs.c (handle_USR1_signal): Change for Lisp_Object selected_frame. | |
3306 | ||
3307 | * dispnew.c (selected_frame): Make it a Lisp_Object. | |
3308 | (adjust_frame_glyphs_initially): Change for Lisp_Object selected_frame. | |
3309 | (direct_output_for_insert, direct_output_forward_char, | |
3310 | init_display): Ditto. | |
3311 | ||
3312 | * data.c (swap_in_symval_forwarding): Change for Lisp_Object | |
3313 | selected_frame. | |
3314 | (set_internal): Ditto. | |
3315 | ||
3316 | * buffer.c (Fother_buffer): Change for Lisp_Object selected_frame. | |
3317 | (record_buffer): Ditto. | |
3318 | ||
3319 | * frame.c (Fmake_terminal_frame): Use SELECTED_FRAME. | |
3320 | (do_switch_frame): Change for Lisp_Object selected_frame. | |
3321 | (Fselected_frame): Ditto. | |
3322 | (Fframe_first_window): Use SELECTED_FRAME. | |
3323 | (Fframe_root_window): Change for Lisp_Object selected_frame. | |
3324 | (Fframe_selected_window, Fset_frame_selected_window, Fnext_frame, | |
3325 | Fprevious_frame, other_visible_frames, Fdelete_frame, | |
3326 | Fmouse_position, Fmouse_pixel_position, Fmake_frame_visible, | |
3327 | Fmake_frame_invisible, Ficonify_frame, Fraise_frame, Flower_frame, | |
3328 | Fframe_parameters, Fmodify_frame_parameters, Fframe_char_height, | |
3329 | Fframe_char_width, Fframe_pixel_height, Fframe_pixel_width, | |
3330 | Fset_frame_height, Fset_frame_width): Ditto. | |
3331 | ||
3332 | 1999-09-13 Gerd Moellmann <gerd@gnu.org> | |
3333 | ||
3334 | * xdisp.c (message2_nolog): Change for Lisp_Object selected_frame. | |
3335 | (message3_nolog, message_with_string, message, | |
3336 | setup_echo_area_for_printing, truncate_echo_area, | |
3337 | prepare_menu_bars, redisplay_internal, Fdump_tool_bar_row): Ditto. | |
3338 | ||
3339 | * xmenu.c (Fx_popup_menu): Change for Lisp_Object selected_frame. | |
3340 | (Fx_popup_dialog): Ditto. | |
3341 | ||
3342 | * xfns.c (check_x_frame): Change for Lisp_Object selected_frame. | |
3343 | (check_x_display_info, x_get_resource_string): Ditto. | |
3344 | ||
3345 | * xterm.c (XTcursor_to): Change for Lisp_Object selected_frame. | |
3346 | (x_clear_frame, XTring_bell, XTmouse_position, XTread_socket): Ditto. | |
3347 | (XRINGBELL): Removed. | |
3348 | ||
3349 | * window.c (Fminibuffer_window): Change for Lisp_Object | |
3350 | selected_frame. | |
3351 | (Fwindow_at, Fprevious_window, window_loop, select_window_1, | |
3352 | display_buffer_1, Fdisplay_buffer, temp_output_buffer_show, | |
3353 | Fcurrent_window_configuration, init_window_once): Ditto. | |
3354 | ||
3355 | * frame.h (SELECTED_FRAME): New. | |
3356 | ||
3357 | 1999-09-12 Ken Raeburn <raeburn@gnu.org> | |
3358 | ||
3359 | * category.c (word_boundary_p): Use XCAR and XCDR. | |
3360 | * ccl.c (ccl_driver, resolve_symbol_ccl_program, | |
3361 | Fregister_code_conversion_map): Likewise. | |
3362 | * coding.c (setup_coding_system, detect_coding_system, | |
3363 | Ffind_operation_coding_system, Fset_coding_priority_internal): | |
3364 | Likewise. | |
3365 | * doc.c (get_doc_string, Fdocumentation, | |
3366 | store_function_docstring): Likewise. | |
3367 | * editfns.c (save_restriction_restore): Likewise. | |
3368 | * eval.c (Fcond, Fmacroexpand, Fcondition_case, wants_debugger, | |
3369 | skip_debugger, find_handler_clause, Fautoload, Fapply, | |
3370 | run_hook_with_args, run_hook_list_with_args, Ffetch_bytecode): | |
3371 | Likewise. | |
3372 | * fileio.c (Ffind_file_name_handler, Finsert_file_contents, | |
3373 | Fwrite_region, do_auto_save_unwind, Fdo_auto_save, | |
3374 | Fread_file_name): Likewise. | |
3375 | * filelock.c (unlock_all_files): Likewise. | |
3376 | * insdel.c (Fcombine_after_change_execute): Likewise. | |
3377 | * intervals.c (adjust_intervals_for_insertion): Likewise. | |
3378 | * keymap.c (get_keymap_1, Fkeymap_parent, Fset_keymap_parent, | |
3379 | Fset_keymap_parent, fix_submap_inheritance, access_keymap, | |
3380 | store_in_keymap, Fcopy_keymap, define_as_prefix, | |
3381 | current_minor_maps, Faccessible_keymaps, | |
3382 | accessible_keymaps_char_table, Fkey_description, | |
3383 | Fwhere_is_internal, where_is_internal_2, where_is_internal_1, | |
3384 | describe_buffer_bindings, describe_map_tree, shadow_lookup, | |
3385 | describe_map): Likewise. | |
3386 | * lread.c (Fload, load_unwind, close_load_descs, read_vector, | |
3387 | read_list, init_lread): Likewise. | |
3388 | * search.c (Fmatch_data): Likewise. | |
3389 | * sunfns.c (Fsun_menu_internal): Likewise. | |
3390 | * syntax.c (describe_syntax): Likewise. | |
3391 | * undo.c (record_insert, record_delete, Fundo_boundary, | |
3392 | truncate_undo_list): Likewise. | |
3393 | * vmsproc.c (child_sig): Likewise. | |
3394 | ||
3395 | * editfns.c (Fformat): Use XFLOAT_DATA. | |
3396 | ||
3397 | 1999-09-12 Gerd Moellmann <gerd@gnu.org> | |
3398 | ||
3399 | * keyboard.c (command_loop_1): Resize mini-window to the | |
3400 | exact size of a message displayed, if any. | |
3401 | ||
3402 | * xdisp.c (resize_mini_window): Add parameter exact_p. Resize | |
3403 | to exact size if exact_p is non-zero. | |
3404 | (display_echo_area_1): Call resize_mini_window with | |
3405 | new parameter. | |
3406 | (redisplay_internal): Ditto. | |
3407 | (resize_echo_area_axactly): New. | |
3408 | ||
3409 | * minibuf.c (read_minibuf_unwind): Call resize_mini_window with | |
3410 | new parameter. | |
3411 | ||
3412 | * dispextern.h: Change prototype of resize_mini_window. | |
3413 | Add prototype for resize_echo_area_axactly. | |
3414 | ||
3415 | * xfaces.c (Fx_family_fonts): Replaces Fx_font_list. | |
3416 | (syms_of_xfaces): Defsubr accordingly. | |
3417 | ||
3418 | * xdisp.c (hscroll_window_tree): Choose cursor row from | |
3419 | desired or current matrix. | |
3420 | (redisplay_internal): Hscroll before updating. | |
3421 | ||
3422 | 1999-09-12 Gerd Moellmann <gerd@gnu.org> | |
3423 | ||
3424 | * syntax.c (Fforward_word): Use prompt_end_charpos instead | |
3425 | of minibuffer_prompt_length. | |
3426 | ||
3427 | * minibuf.c (read_minibuf): Use prompt_end_charpos instead | |
3428 | of minibuffer_prompt_length. | |
3429 | (read_minibuf_unwind): Ditto. | |
3430 | (Fminibuffer_complete_and_exit): Ditto. | |
3431 | (Fminibuffer_complete_word): Ditto. | |
3432 | (Fminibuffer_prompt_end): Ditto. | |
3433 | ||
3434 | * editfns.c (Fbuffer_string): Use prompt_end_charpos instead | |
3435 | of minibuffer_prompt_length. | |
3436 | (Fline_beginning_position): Ditto. | |
3437 | ||
3438 | * buffer.c (Fget_buffer_create): Use prompt_end_charpos instead | |
3439 | of minibuffer_prompt_length. | |
3440 | (Fmake_indirect_buffer): Ditto. | |
3441 | (Fkill_buffer): Ditto. | |
3442 | (Ferase_buffer): Ditto. | |
3443 | ||
3444 | * buffer.h (prompt_end_charpos): Replaces | |
3445 | minibuffer_prompt_length. | |
3446 | ||
3447 | * minibuf.c (read_minibuf): Return mini-buffer contents | |
3448 | without the prompt. | |
3449 | ||
3450 | * editfns.c (make_buffer_string_both): Take out the code | |
3451 | to handle mini-buffer prompts. | |
3452 | (Fbuffer_string): Handle the prompt here, instead. | |
3453 | ||
3454 | * xfaces.c (lface_from_face_name): Resolve face aliases. | |
3455 | (Qmode_line): Replaces Qmodeline. | |
3456 | (realize_basic_faces): Use Qmode_line. | |
3457 | (syms_of_xfaces): Initialize Qmode_line. | |
3458 | ||
3459 | 1999-09-12 Gerd Moellmann <gerd@gnu.org> | |
3460 | ||
3461 | * minibuf.c (read_minibuf): Set minibuf_prompt_width to the | |
3462 | current column after inserting prompt. | |
3463 | (Fminibuffer_prompt_width): Return minibuf_prompt_width. | |
3464 | ||
3465 | * xfaces.c (Qframe_update_face_colors): New. | |
3466 | (syms_of_xfaces): Initialize call. | |
3467 | (update_face_from_frame_parameter): Call that function when | |
3468 | the frame's background changes. | |
3469 | ||
3470 | 1999-09-12 Richard Stallman <rms@gnu.org> | |
3471 | ||
3472 | * insdel.c (del_range_1): Don't treat minibuffer prompt specially. | |
3473 | ||
3474 | 1999-09-12 Ken Raeburn <raeburn@gnu.org> | |
3475 | ||
3476 | * alloc.c (Fcons, pure_cons, Fpurecopy, Fgarbage_collect, | |
3477 | mark_object, mark_buffer): Use XCAR and XCDR. | |
3478 | * bytecode.c (Fbyte_code): Likewise. | |
3479 | * callint.c (Fcall_interactively, Fprefix_numeric_value): | |
3480 | Likewise. | |
3481 | * callproc.c (Fcall_process, Fcall_process_region, child_setup, | |
3482 | getenv_internal): Likewise. | |
3483 | * dired.c (file_name_completion): Likewise. | |
3484 | * fns.c (Fsafe_length, concat, Fcopy_alist, Fmember, Fmemq, Fassq, | |
3485 | assq_no_quit, Fassoc, Frassq, Frassoc, Fdelq, Fdelete, Freverse, | |
3486 | Fplist_get, Fplist_put, internal_equal, mapcar1): Likewise. | |
3487 | * indent.c (Fcompute_motion): Likewise. | |
3488 | * process.c (decode_status, Fprocess_status, Fprocess_exit_status, | |
3489 | list_processes_1, Fstart_process, Fopen_network_stream, | |
3490 | wait_reading_process_input, read_process_output_call, | |
3491 | kill_buffer_processes, sigchld_handler, exec_sentinel_unwind, | |
3492 | status_notify, wait_reading_process_input): Likewise. | |
3493 | * textprop.c (PLIST_ELT_P, property_value, set_properties, | |
3494 | extend_property_ranges): Likewise. | |
3495 | * w32faces.c (Fpixmap_spec_p, merge_face_list): Likewise. | |
3496 | * w32fns.c (x_window_to_frame, x_set_frame_parameters, | |
3497 | x_report_frame_params, x_set_cursor_type, x_icon_type, | |
3498 | x_figure_window_size, Fx_create_frame, w32_load_system_font, | |
3499 | w32_load_font, enum_font_cb2, w32_list_bdf_fonts, w32_list_fonts, | |
3500 | w32_list_synthesized_fonts, w32_find_ccl_program, Fx_list_fonts, | |
3501 | Fw32_find_bdf_fonts, w32_find_bdf_fonts_in_dir, | |
3502 | x_display_info_for_name, Fx_display_list): Likewise. | |
3503 | * w32menu.c (menubar_id_to_frame, single_keymap_panes, | |
3504 | Fx_popup_menu, Fx_popup_dialog): Likewise. | |
3505 | * w32proc.c (Fw32_set_keyboard_layout): Likewise. | |
3506 | * w32term.c (x_window_to_scroll_bar, w32_read_socket, | |
3507 | w32_term_init, x_delete_display): Likewise. | |
3508 | * xfns.c (x_window_to_frame, x_any_window_to_frame, | |
3509 | x_non_menubar_window_to_frame, x_menubar_window_to_frame, | |
3510 | x_top_window_to_frame, x_set_frame_parameters, | |
3511 | x_report_frame_params, x_set_cursor_type, x_icon_type, | |
3512 | x_figure_window_size, Fx_create_frame, x_display_info_for_name, | |
3513 | Fx_display_list, x_create_tip_frame): Likewise. | |
3514 | * xmenu.c (menubar_id_to_frame, single_keymap_panes, | |
3515 | Fx_popup_menu, Fx_popup_dialog): Likewise. | |
3516 | * xselect.c (x_own_selection, x_get_local_selection, | |
3517 | x_handle_selection_request, x_handle_selection_clear, | |
3518 | x_clear_frame_selections, wait_for_property_change_unwind, | |
3519 | wait_for_property_change, x_handle_property_notify, | |
3520 | copy_multiple_data, x_get_foreign_selection, | |
3521 | lisp_data_to_selection_data, clean_local_selection_data, | |
3522 | x_handle_selection_notify, Fx_get_selection_internal, | |
3523 | x_disown_buffer_selections): Likewise. | |
3524 | * xterm.c (x_window_to_scroll_bar, XTread_socket, x_list_fonts, | |
3525 | x_load_font, x_find_ccl_program, x_term_init, x_delete_display): | |
3526 | Likewise. | |
3527 | ||
3528 | * alloc.c (make_float, make_pure_float, Fpurecopy): Use | |
3529 | XFLOAT_DATA. | |
3530 | * bytecode.c (Fbyte_code): Likewise. | |
3531 | * floatfns.c (extract_float, Fexpt, Fabs, rounding_driver, | |
3532 | fmod_float): Likewise. | |
3533 | ||
3534 | 1999-09-11 Richard Stallman <rms@gnu.org> | |
3535 | ||
3536 | * xdisp.c (run_window_scroll_functions): If hook functions switch | |
3537 | buffers, switch back after. | |
3538 | ||
3539 | 1999-09-11 Ken Raeburn <raeburn@gnu.org> | |
3540 | ||
3541 | * charset.h (GET_TRANSLATION_TABLE): Use XCDR. | |
3542 | * frame.h (FOR_EACH_FRAME): Use XCAR and XCDR. | |
3543 | (PIXEL_X_FROM_CANON_X, PIXEL_Y_FROM_CANON_Y): Use XFLOAT_DATA. | |
3544 | * keyboard.h (EVENT_HEAD, EVENT_START, EVENT_END, POSN_WINDOW, | |
3545 | POSN_BUFFER_POSN, POSN_WINDOW_POSN, POSN_TIMESTAMP): Use XCAR and | |
3546 | XCDR. | |
3547 | * syntax.h (SYNTAX, SYNTAX_WITH_FLAGS, SYNTAX_MATCH): Use XCAR and | |
3548 | XCDR. | |
3549 | ||
3550 | 1999-09-10 Richard Stallman <rms@gnu.org> | |
3551 | ||
3552 | * xterm.c (XTread_socket): In XSetInputFocus, use RevertToParent, | |
3553 | not RevertToPointerRoot. | |
3554 | (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]: | |
3555 | Fix the code to clear around the scroll bar. | |
3556 | ||
3557 | 1999-09-10 Keisuke Nishida <kxn30@po.cwru.edu> | |
3558 | ||
3559 | * print.c: Support print-circle and related features. | |
3560 | (Vprint_gensym_alist): Removed. | |
3561 | (Vprint_circle, Vprint_continuous_numbering, print_number_index | |
3562 | Vprint_number_table): New variables. | |
3563 | (PRINT_NUMBER_OBJECT, PRINT_NUMBER_STATUS): New macros. | |
3564 | (PRINTPREPARE, PRINTFINISH): Don't set Vprint_gensym_alist. | |
3565 | (print, print_preprocess, print_preprocess_string, print_object): | |
3566 | New/modified functions with print-circle feature. Use | |
3567 | Vprint_number_table instead of Vprint_gensym_alist for print-gensym. | |
3568 | (syms_of_print): Defined new Lisp variables `print-circle', | |
3569 | `print-continuous-numbering', `print-number-table'. | |
3570 | ||
3571 | 1999-09-10 Gerd Moellmann <gerd@gnu.org> | |
3572 | ||
3573 | * xfns.c (x_build_heuristic_mask): Accept a list `(R G B)' | |
3574 | as background color specification instead of an integer. | |
3575 | (image-cache-eviction-delay): Replaces image-eviction-seconds. | |
3576 | (Vimage_cache_eviction_delay): Replaces Vimage_eviction_seconds. | |
3577 | (clear_image_cache, syms_of_xfns): Use it. | |
3578 | (Qpostscript): Replaces Qghostscript. | |
3579 | (gs_type): Use it. | |
3580 | (gs_image_p): Ditto. | |
3581 | (syms_of_xfns): Initialize Qpostscript. | |
3582 | ||
3583 | 1999-09-10 Richard Stallman <rms@gnu.org> | |
3584 | ||
3585 | * buffer.c (Ferase_buffer): Don't erase the minibuffer prompt. | |
3586 | ||
3587 | 1999-09-09 Richard Stallman <rms@gnu.org> | |
3588 | ||
3589 | * editfns.c (Fline_beginning_position): Handle minibuffer prompt here. | |
3590 | ||
3591 | * cmds.c (Fbeginning_of_line): Don't handle minibuffer prompt here. | |
3592 | ||
3593 | 1999-09-09 Gerd Moellmann <gerd@gnu.org> | |
3594 | ||
3595 | * fns.c (Fmakehash): Accept just one optional argument TEST. | |
3596 | ||
3597 | * xfns.c (QCindex): New. | |
3598 | (syms_of_xfns): Initialize QCindex. | |
3599 | (gif_load): Use it instead of `:image'. | |
3600 | ||
3601 | 1999-09-09 Richard Stallman <rms@gnu.org> | |
3602 | ||
3603 | * fileio.c (Fwrite_region): Finish renaming CONFIRM to MUSTBENEW. | |
3604 | (Fwrite_region) [DOS_NT]: Handle `excl' here too. | |
3605 | ||
3606 | 1999-09-08 Gerd Moellmann <gerd@gnu.org> | |
3607 | ||
3608 | * xdisp.c (Qwhen): Replaces QCwhen. | |
3609 | (syms_of_xdisp): Initialized it instead of QCwhen. | |
3610 | (handle_single_display_prop): Use it instead of QCwhen. | |
3611 | ||
3612 | 1999-09-08 Ken'ichi Handa <handa@gnu.org> | |
3613 | ||
3614 | * charset.c (translate_char): Reset MSBs of arguments of | |
3615 | MAKE_CHAR. | |
3616 | (CHAR_COMPONENTS_VALID_P): Fix for ASCII. | |
3617 | ||
3618 | 1999-09-08 Lars Magne Ingebrigtsen <larsi@gnus.org> | |
3619 | ||
3620 | * editfns.c (Fbufsize): Accept an extra BUFFER parameter. | |
3621 | ||
3622 | * fns.c (Fbase64_decode_region): Don't place point outside of the | |
3623 | current accessible portion. | |
3624 | ||
3625 | 1999-09-07 Richard Stallman <rms@gnu.org> | |
3626 | ||
3627 | * keymap.c (fix_submap_inheritance): Do nothing if the proper | |
3628 | parent is an ancestor of SUBMAP; otherwise, add it as the | |
3629 | ultimate ancestor. | |
3630 | ||
3631 | 1999-09-07 Gerd Moellmann <gerd@gnu.org> | |
3632 | ||
3633 | * xdisp.c (handle_single_display_prop): Change conditional | |
3634 | display property to `:when FORM . VALUE'. | |
3635 | ||
3636 | 1999-09-07 Richard Stallman <rms@gnu.org> | |
3637 | ||
3638 | * fileio.c (Fwrite_region): Doc fix. | |
3639 | ||
3640 | 1999-09-07 Stefan Monnier <monnier@cs.yale.edu> | |
3641 | ||
3642 | * fileio.c (Qexcl): New variable. | |
3643 | (report_file_error): Handle EEXIST specially. | |
3644 | (Fwrite_region): Special handling for CONFIRM = `excl'. | |
3645 | (syms_of_fileio): Initialize Qexcl. | |
3646 | ||
3647 | 1999-09-07 Gerd Moellmann <gerd@gnu.org> | |
3648 | ||
3649 | * xfns.c (x_set_foreground_color): Call | |
3650 | update_face_from_frame_parameter. | |
3651 | (x_set_background_color): Ditto. | |
3652 | (x_set_mouse_color): Ditto. | |
3653 | (x_set_cursor_color): Ditto. | |
3654 | (x_set_border_color): Ditto. | |
3655 | (x_set_scroll_bar_foreground): Ditto. | |
3656 | (x_set_scroll_bar_background): Ditto. | |
3657 | ||
3658 | * xfaces.c (recompute_basic_faces): Clear face cache. | |
3659 | (Finternal_set_lisp_face_attribute): Modify frame parameters | |
3660 | if attributes of certain faces are changed. | |
3661 | (update_face_from_frame_parameter): New. | |
3662 | ||
3663 | * xfaces.c (realize_basic_faces): Realize new basic faces. | |
3664 | ||
3665 | * dispextern.h (SCROLL_BAR_FACE_ID, BORDER_FACE_ID, | |
3666 | CURSOR_FACE_ID, MOUSE_FACE_ID): New. | |
3667 | ||
3668 | * xfaces.c (Qscroll_bar, Qcursor, Qborder, Qmouse): New. | |
3669 | (syms_of_xfaces): Intialize new symbols. | |
3670 | ||
3671 | * fns.c (Fmakehash): Take one argument, test, make all the | |
3672 | rest keyword arguments. | |
3673 | ||
3674 | * window.c (Fset_window_margins): Make window the first argument. | |
3675 | (set_window_buffer): Call Fset_window_margins with window as first | |
3676 | argument. | |
3677 | ||
3678 | 1999-09-07 Gerd Moellmann <gerd@gnu.org> | |
3679 | ||
3680 | * xfaces.c (Qfringe): Replaces Qmargin. | |
3681 | ||
3682 | 1999-09-07 Kenichi Handa <handa@etl.go.jp> | |
3683 | ||
3684 | * charset.h: Lots of comments fixed. | |
3685 | (PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string. | |
3686 | (STRING_CHAR_AND_CHAR_LENGTH): This macro removed. | |
3687 | ||
3688 | * charset.c : Lots of comments fixed. | |
3689 | (SPLIT_MULTIBYTE_SEQ): Make it work also for ASCII string. | |
3690 | (CHAR_COMPONENTS_VALID_P): Name changed from | |
3691 | CHAR_COMPONENT_VALID_P. Caller changed. | |
3692 | ||
3693 | 1999-09-06 Richard Stallman <rms@gnu.org> | |
3694 | ||
3695 | * insdel.c (syms_of_insdel): Define Lisp variable | |
3696 | inhibit-modification-hooks. | |
3697 | ||
3698 | 1999-09-06 Michael Sperber [Mr. Preprocessor] <sperber@informatik.uni-tuebingen.de> | |
3699 | ||
3700 | * s/aix4-2.h (ALIGN_DATA_RELOC): Undefined to support new | |
3701 | unexaix.c. | |
3702 | ||
3703 | * s/aix3-1.h (ALIGN_DATA_RELOC): Defined to support new unexaix.c. | |
3704 | ||
3705 | 1999-09-06 Dave Love <fx@gnu.org> | |
3706 | ||
3707 | * unexaix.c: New version incorporating Michael Sperber's changes | |
3708 | from XEmacs. Should solve problems on AIX 4.3. | |
3709 | ||
3710 | * lread.c (Vbyte_boolean_vars): New variable. | |
3711 | (defvar_bool, syms_of_lread): Use it. | |
3712 | ||
3713 | 1999-09-05 Richard Stallman <rms@gnu.org> | |
3714 | ||
3715 | * minibuf.c (read_minibuf): Put all three properties on the | |
3716 | same range, the whole prompt. | |
3717 | ||
3718 | 1999-09-05 Gerd Moellmann <gerd@gnu.org> | |
3719 | ||
3720 | * sound.c (Qplay_sound_functions): Replaces Qplay_sound_hook. | |
3721 | (Fplay_sound, syms_of_sound): Use it. | |
3722 | (parse_sound): Allow float volume values in the range [0, 1]. | |
3723 | (Fplay_sound): Ditto. | |
3724 | ||
3725 | * window.c (Fset_window_vscroll): Make window the first argument, | |
3726 | amount to scroll the second. Take non-negative vscroll as | |
3727 | argument. | |
3728 | (Fwindow_vscroll): Return non-negative vscroll. | |
3729 | ||
3730 | * xfns.c (Fx_show_tip): Improve documentation. | |
3731 | ||
3732 | 1999-09-05 Gerd Moellmann <gerd@gnu.org> | |
3733 | ||
3734 | * buffer.c, buffer.h, dispextern.h, dispnew.c, keyboard.c, | |
3735 | window.c, xdisp.c, xfaces.c, xterm.c, keyboard.h: Change | |
3736 | `top-line' and `top_line' to `header-line' and `header_line'. | |
3737 | Likewise for similar spellings. | |
3738 | ||
3739 | 1999-09-05 Gerd Moellmann <gerd@gnu.org> | |
3740 | ||
3741 | * xdisp.c (row_containing_pos): New. | |
3742 | (try_window_id): Use it. | |
3743 | ||
3744 | * alloc.c, dispextern.h, dispnew.c, frame.c, frame.h, keyboard.c, | |
3745 | lisp.h, termhooks.h, window.c xdisp.c, xfaces.c, xfns.c, xterm.c: | |
3746 | Change spelling of `toolbar' to `tool_bar' or `tool-bar'. | |
3747 | Likewise for upper-case etc. | |
3748 | ||
3749 | 1999-09-05 Gerd Moellmann <gerd@gnu.org> | |
3750 | ||
3751 | * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]: | |
3752 | Fix reference to renamed variable. | |
3753 | ||
3754 | 1999-09-04 Gerd Moellmann <gerd@gnu.org> | |
3755 | ||
3756 | * window.c (Qwindow_size_fixed): Replaces Qfixed_window_size. | |
3757 | (window_fixed_size_p): Use Qwindow_size_fixed instead of | |
3758 | Qfixed_window_size. | |
3759 | (syms_of_window): Ditto. | |
3760 | ||
3761 | * fns.c (Fmakehash): Exchange optional test and size arguments. | |
3762 | ||
3763 | 1999-09-03 Gerd Moellmann <gerd@gnu.org> | |
3764 | ||
3765 | * xterm.c (XTset_vertical_scroll_bar): Block input when clearing | |
3766 | under newly created scroll bar. | |
3767 | (expose_window): If window is not yet fully initialized, do | |
3768 | nothing. This can happen when toolkit scroll bars are used and a | |
3769 | window is split. Reconfiguring the scroll bars will generate an | |
3770 | expose for a newly created window. | |
3771 | ||
3772 | * frame.h (struct frame): New member `gamma'. | |
3773 | ||
3774 | * xfns.c: Include math.h. Add extern declaration for atof in case | |
3775 | we don't see one. | |
3776 | (Qscreen_gamma): New. | |
3777 | (struct x_frame_parm_table): Add prototypes, add | |
3778 | x_set_screen_gamma. | |
3779 | (gamma_correct): New function. | |
3780 | (defined_color): Call it. | |
3781 | (x_set_screen_gamma): New. | |
3782 | (x_set_title): Add parameter old_value. | |
3783 | (RES_TYPE_FLOAT): New. | |
3784 | (x_get_arg): Handle RES_TYPE_FLOAT. | |
3785 | (Fx_create_frame): Call x_default_parameter for `screen-gamma'. | |
3786 | (lookup_pixel_color): Change call to x_alloc_nearest_color to | |
3787 | new prototype. | |
3788 | (lookup_rgb_color): Ditto. | |
3789 | (syms_of_xfns): Initialize Qscreen_gamma. | |
3790 | ||
3791 | * xterm.c (x_alloc_nearest_color_for_widget) [USE_X_TOOLKIT]: | |
3792 | New. Allocate color for lwlib widgets. | |
3793 | (x_alloc_nearest_color): Change parameter list include the | |
3794 | frame on which to allocate colors. Gamma-correct colors. | |
3795 | (x_alloc_lighter_color): Call x_alloc_lighter_color with new | |
3796 | parameter list. | |
3797 | ||
3798 | * xterm.h: Change protorype of x_alloc_nearest_color. | |
3799 | ||
3800 | 1999-09-03 Richard Stallman <rms@gnu.org> | |
3801 | ||
3802 | * callproc.c: Delete the system-independent include of stdlib.h | |
3803 | (leaving only the one in the WINDOWSNT conditional). | |
3804 | ||
3805 | 1999-09-03 Andrew Choi <choi@cs.hku.hk> | |
3806 | ||
3807 | * callproc.c (call-process) [macintosh]: Call mac_run_command in | |
3808 | sysdep.c. The Mac code is modeled after the DOS code. | |
3809 | ||
3810 | * dispextern.h [macintosh]: Include macterm.h to define substitute X | |
3811 | Window types and macros. | |
3812 | ||
3813 | * frame.h: Do nothing if included a second time. | |
3814 | (enum output_method): Add mac_output frame type. | |
3815 | (union output_data): Add new alternative `mac'. | |
3816 | (FRAME_MAC_P): New macro. | |
3817 | ||
3818 | * frame.c (Fframep) [macintosh]: Handle mac frame type. | |
3819 | (syms_of_frame_1): Initialize Qmac. | |
3820 | (make_terminal_frame) [macintosh]: Initialize output_data.mac fields. | |
3821 | (Fmake_terminal_frame) [macintosh]: Add an alternate error check. | |
3822 | (Fmodify_frame_parameters) [macintosh]: Call | |
3823 | mac_set_frame_parameter in macterm.c. | |
3824 | ||
3825 | * keyboard.c [macintosh]: Set KBD_BUFFER_SIZE to a smaller value | |
3826 | (512) because Mac compilers limit local data of a function to 32K. | |
3827 | ||
3828 | * make-docfiles.c: Correctly handle input files with Mac-style | |
3829 | eol's. | |
3830 | ||
3831 | * sysdep.c: Define numerous routines to emulate Unix system calls. | |
3832 | ||
3833 | * xfaces.c: on MacOS, define the set of colors listed in rgb.txt | |
3834 | file of an X Window environment. | |
3835 | ||
3836 | * xfaces.c: on MacOS, define the Lisp functions x-display-color-p, | |
3837 | x-display-grayscale, x-color-defined-p, and x-color-values. | |
3838 | ||
3839 | * sysdep.c [macintosh] (stat, fstat, mkdir, rmdir, utime, access) | |
3840 | (open, creat, unlink, read, write, rename, fopen, pause, alarm) | |
3841 | (signal, sleep, gmtime, localtime, ctime, time, index, mktemp) | |
3842 | (getpwuid, getpwnam, dup, dup2, isatty, getgid, getegid, getuid) | |
3843 | (geteuid, getpid, getenv, uname, opendir, closedir, readdir, getwd.): | |
3844 | New functions, replacing POSIX features. | |
3845 | ||
3846 | * sysdep.c [macintosh] (Mac2UnixPathname, Unix2MacPathname, CheckAlarm) | |
3847 | (InitMyPasswd, GetTempDirName, mystrchr, mystrtok, mystrcpy): | |
3848 | (InitEmacsPasswdDir, run_mac_command): New subroutines. | |
3849 | ||
3850 | * sysdep.c [macintosh] (targetTicks, alarm_signal_func, myPasswdName) | |
3851 | (myPasswd, emacsPasswdDir, emacsPasswd, myPasswdInited, mask) | |
3852 | (myPasswdDir, TempDirName, sys_siglist): New variables. | |
3853 | ||
3854 | * sysdep.c [macintosh] (execvp, wait, croak, fork, kill, sigsetmask) | |
3855 | (sigblock, request_sigio, unrequest_sigio, setpgrp, pipe, symlink) | |
3856 | (link, lstat, readlink, umask, chmod, sbrk, fsync, ioctl): | |
3857 | Define empty stubs so Emacs will link. | |
3858 | ||
3859 | 1999-09-03 Gerd Moellmann <gerd@gnu.org> | |
3860 | ||
3861 | * xdisp.c: Use XCAR and XCDR instead of XCONS. | |
3862 | ||
3863 | * window.h: New member frozen_window_start_p. | |
3864 | ||
3865 | * window.c (foreach_window, foreach_window_1): New. | |
3866 | (freeze_window_start, freeze_window_starts): New. | |
3867 | (make_window): Initialize frozen_window_start_p. | |
3868 | (replace_window): Ditto. | |
3869 | (Fset_window_point): Remove references to deleted variables. | |
3870 | (Fset_window_start): Ditto. | |
3871 | ||
3872 | * xdisp.c (Vresize_mini_config, resize_mini_frame, | |
3873 | resize_mini_initial_height): Removed. | |
3874 | (syms_of_xdisp): Remove references to these variables. | |
3875 | (resize_mini_window): Don't save window configuration, freeze | |
3876 | window starts instead. Enlarge window until displaying an empty | |
3877 | buffer, then shrink it. Make the function externally visible. | |
3878 | (redisplay_window): Treat frozen window start like forced start, | |
3879 | but accept point outside of the window. | |
3880 | ||
3881 | * dispextern.h: Add function prototype for resize_mini_window. | |
3882 | ||
3883 | * minibuf.c (read_minibuf_unwind): Resize mini-window when | |
3884 | reaching minibuf_level 0. | |
3885 | ||
3886 | * lisp.h: Remove extern declarations for variables deleted from | |
3887 | xdisp.c. | |
3888 | ||
3889 | * dispnew.c (adjust_frame_glyphs): Remove reference to | |
3890 | Vresize_mini_config. | |
3891 | ||
3892 | 1999-09-03 Gerd Moellmann <gerd@gnu.org> | |
3893 | ||
3894 | * xfns.c (x_set_scroll_bar_width): Change conditional compilation | |
3895 | to USE_TOOLKIT_SCROLL_BARS. | |
3896 | ||
3897 | * xterm.c (x_scroll_bar_create): Don't clear under scroll bar | |
3898 | here. | |
3899 | (XTset_vertical_scroll_bar): Clarify position computations. Clear | |
3900 | under newly created scroll bar. Put toolkit scroll bars in the | |
3901 | middle of the area reserved for the scroll bar. | |
3902 | ||
3903 | 1999-09-03 Kenichi Handa <handa@etl.go.jp> | |
3904 | ||
3905 | The following changes are for the new handling of mulitbyte | |
3906 | sequence. Now, except for a composite character, no multibyte | |
3907 | character in string/buffer has trailing garbage bytes. For | |
3908 | instance, the length of string "\201\300\300" is now 2, the first | |
3909 | character is Latin-1 A-grave, the second is raw \300. | |
3910 | ||
3911 | * charset.h (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2 | |
3912 | are negative. | |
3913 | (MAKE_CHAR): Don't set MSBs of C1 and C2 to 0. | |
3914 | (VALID_MULTIBYTE_CHAR_P): This macro deleted. | |
3915 | (PARSE_COMPOSITE_SEQ): New macro. | |
3916 | (PARSE_CHARACTER_SEQ): New macro. | |
3917 | (PARSE_MULTIBYTE_SEQ): New macro. | |
3918 | (CHAR_PRINTABLE_P): New macro. | |
3919 | (STRING_CHAR): Adjusted for the change of string_to_non_ascii_char. | |
3920 | (STRING_CHAR_AND_LENGTH): Likewise. | |
3921 | (STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH. | |
3922 | (INC_POS): Use the macro PARSE_MULTIBYTE_SEQ. | |
3923 | (DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise, | |
3924 | ||
3925 | * charset.c (SPLIT_COMPOSITE_SEQ): New macro. | |
3926 | (SPLIT_CHARACTER_SEQ): New macro. | |
3927 | (SPLIT_MULTIBYTE_SEQ): New macro. | |
3928 | (CHAR_COMPONENT_VALID_P): New macro. | |
3929 | (non_ascii_char_to_string): Generate a multibyte sequence as far | |
3930 | as possible. | |
3931 | (string_to_non_ascii_char): The 4th arg exclude_tail_garbage is | |
3932 | deleted. Caller changed. Use the macro SPLIT_MULTIBYTE_SEQ. | |
3933 | (split_non_ascii_string): Likewise. | |
3934 | (multibyte_form_length): Use the macro PARSE_MULTIBYTE_SEQ. | |
3935 | (char_printable_p): New function. | |
3936 | (translate_char): Check character by NATNUMP instead of INTEGERP. | |
3937 | (unibyte_char_to_multibyte): Call char_valid_p instead of | |
3938 | VALID_MULTIBYTE_CHAR_P. | |
3939 | (Fmake_char_internal): Check the arguments more rigidly. | |
3940 | (Fcharset_after): Use the macro SPLIT_MULTIBYTE_SEQ. | |
3941 | (char_valid_p): Check the validity by CHAR_COMPONENT_VALID_P. | |
3942 | (Fmultibyte_char_to_unibyte): Check the validity of character by | |
3943 | CHAR_VALID_P. | |
3944 | (chars_in_text): Call multibyte_chars_in_text. | |
3945 | (multibyte_chars_in_text): Use the macro PARSE_MULTIBYTE_SEQ. | |
3946 | (Fcompose_string): Use the macro STRING_CHAR_AND_LENGTH instead of | |
3947 | STRING_CHAR_AND_CHAR_LENGTH (which is obsolete now). | |
3948 | ||
3949 | * data.c (Faset): Adjust the way to check byte-combining | |
3950 | possibility for the new handling of multibyte sequence. | |
3951 | ||
3952 | * editfns.c (Fsubst_char_in_region): Likewise. | |
3953 | ||
3954 | * fns.c (count_combining): Use the macro PARSE_MULTIBYTE_SEQ. | |
3955 | (string_char_to_byte): Likewise. | |
3956 | (string_byte_to_char): Likewise. | |
3957 | ||
3958 | * indent.c (MULTIBYTE_BYTES_WIDTH): Delete the 2nd arg C. Use the | |
3959 | macro STRING_CHAR_AND_LENGTH. Caller changed. | |
3960 | ||
3961 | * insdel.c (count_combining_composition): New function. | |
3962 | (count_combining_before): Adjust the way to check byte-combining | |
3963 | possibility for the new handling of multibyte sequence. Call | |
3964 | count_combining_composition for a composite character. | |
3965 | (count_combining_after): Likewise. | |
3966 | ||
3967 | * print.c (print_string): Use the macro STRING_CHAR_AND_LENGTH. | |
3968 | (print): Likewise. | |
3969 | ||
3970 | * dispextern.h (struct it): Change the size of the member | |
3971 | `ctl_chars'. | |
3972 | ||
3973 | * xdisp.c (get_next_display_element): Display incomplete multibyte | |
3974 | sequence (e.g. \222\300) by octal form. | |
3975 | ||
3976 | 1999-09-02 Gerd Moellmann <gerd@gnu.org> | |
3977 | ||
3978 | * xterm.h (VERTICAL_SCROLL_BAR_WIDTH_TRIM): Change from 2 to 0. | |
3979 | ||
3980 | * fns.c (Fhash_table_weakness): Replaces Fhash_table_weak. | |
3981 | (cmpfn_eql, sxhash): Use XFLOAT_DATA. | |
3982 | ||
3983 | 1999-09-02 Gerd Moellmann <gerd@gnu.org> | |
3984 | ||
3985 | * buffer.c (set_buffer_internal): Never set | |
3986 | windows_or_buffers_changed. | |
3987 | ||
3988 | * xdisp.c (try_window_id): Reset first_unchanged_at_end_row | |
3989 | if we have displayed to the bottom of the window. | |
3990 | ||
3991 | * syntax.c (Fforward_word): Stop at a mini-buffer prompt end | |
3992 | in both directions. Extend documentation. | |
3993 | ||
3994 | 1999-09-01 Gerd Moellmann <gerd@gnu.org> | |
3995 | ||
3996 | * minibuf.c (read_minibuf): Flush display after setting cursor to | |
3997 | column 0. | |
3998 | ||
3999 | 1999-08-31 Gerd Moellmann <gerd@gnu.org> | |
4000 | ||
4001 | * s/freebsd.h (__FreeBSD_version): Don't define it if it is | |
4002 | already defined. This avoids a warning from buffer.c. | |
4003 | ||
4004 | 1999-08-30 Gerd Moellmann <gerd@gnu.org> | |
4005 | ||
4006 | * xterm.h (FRAME_X_FLAGS_AREA_COLS): Define it as the total width | |
4007 | of both margins. | |
4008 | (FRAME_X_FLAGS_AREA_WIDTH): Likewise. | |
4009 | (FRAME_X_LEFT_FLAGS_AREA_WIDTH): New. | |
4010 | (FRAME_X_RIGHT_FLAGS_AREA_WIDTH): New. | |
4011 | ||
4012 | * frame.h (FRAME_WINDOW_WIDTH_ARG): Add in FRAME_FLAGS_AREA_COLS | |
4013 | once instead of twice. | |
4014 | (FRAME_LEFT_FLAGS_AREA_WIDTH): New. | |
4015 | ||
4016 | * xterm.c: Remove unused bitmaps. | |
4017 | (continued_bits, continuation_bits, overlay_bits): Change images. | |
4018 | (x_draw_vertical_border): Use FRAME_X_RIGHT_FLAGS_AREA_WIDTH | |
4019 | instead of FRAME_X_FLAGS_AREA_WIDTH. | |
4020 | (x_after_update_window_line): Ditto. | |
4021 | (x_draw_bitmap): Likewise. | |
4022 | (x_draw_row_bitmaps): Likewise. | |
4023 | (x_draw_glyph_string_box): Likewise. | |
4024 | (x_draw_glyphs): Likewise. | |
4025 | (x_scroll_run): Likewise. | |
4026 | (expose_window_tree): Likewise. | |
4027 | (note_mode_line_highlight): Likewise. | |
4028 | (XTset_vertical_scroll_bar): Likewise. | |
4029 | (x_clip_to_row): Likewise. | |
4030 | (x_set_window_size): Likewise. | |
4031 | ||
4032 | * xfns.c (x_figure_window_size): Use FRAME_FLAGS_AREA_COLS instead | |
4033 | of 2 * that value. | |
4034 | ||
4035 | * xdisp.c (window_box_width): Use FRAME_FLAGS_AREA_COLS instead of | |
4036 | 2 * that value. | |
4037 | (window_box_left): Use FRAME_LEFT_FLAGS_AREA_WIDTH instead of | |
4038 | FRAME_FLAGS_AREA_WIDTH. | |
4039 | ||
4040 | * window.c (coordinates_in_window): Use | |
4041 | FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH. | |
4042 | (window_internal_width): Subtract FRAME_FLAGS_AREA_WIDTH once | |
4043 | instead of twice. | |
4044 | ||
4045 | * widget.c (set_frame_size): Set flags_area_extra to | |
4046 | FRAME_FLAGS_AREA_WIDTH instead of 2 * that width. | |
4047 | (EmacsFrameSetCharSize): Ditto. | |
4048 | ||
4049 | * dispnew.c (mode_line_string): Add FRAME_LEFT_FLAGS_AREA_WIDTH | |
4050 | instead of FRAME_FLAGS_AREA_WIDTH. | |
4051 | ||
4052 | * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract | |
4053 | FRAME_FLAGS_AREA_COLS once. | |
4054 | (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Add | |
4055 | FRAME_LEFT_FLAGS_AREA_WIDTH instead of FRAME_FLAGS_AREA_WIDTH. | |
4056 | ||
4057 | 1999-08-30 Gerd Moellmann <gerd@gnu.org> | |
4058 | ||
4059 | * freebsd.h (C_SWITCH_SYSTEM): Added to let configure find headers | |
4060 | in /usr/X11R6/include which are checked for with AC_CHECK_HEADER. | |
4061 | ||
4062 | 1999-08-30 Gerd Moellmann <gerd@gnu.org> | |
4063 | ||
4064 | * fns.c (QCweakness): Replaces QCweak. | |
4065 | (Fmake_hash_table): Ditto. | |
4066 | (Fmakehash): Ditto. | |
4067 | (syms_of_fns): Ditto. | |
4068 | ||
4069 | 1999-08-29 Richard Stallman <rms@gnu.org> | |
4070 | ||
4071 | * search.c (compile_pattern_1): Enable RE_CHAR_CLASSES for regexp. | |
4072 | ||
4073 | * sysdep.c (read_input_waiting): Pass read_socket_hook just 4 args. | |
4074 | ||
4075 | * syntax.h (SYNTAX_COMMENT_NESTED, SYNTAX_FLAGS_COMMENT_NESTED): | |
4076 | Add support for nested comments. | |
4077 | ||
863476d1 SM |
4078 | * syntax.c (Fforward_comment, scan_lists, scan_sexps_forward): |
4079 | Consolidate the forward comment code into the new `forw_comment'. | |
4080 | (forw_comment): New subroutine. Added support for nested comments. | |
4081 | (lisp_parse_state, back_comment, Fmodify_syntax_entry) | |
4082 | (Fparse_partial_sexp): Add support for nested comments. | |
26901792 DL |
4083 | |
4084 | 1999-08-28 Ken Raeburn <raeburn@gnu.org> | |
4085 | ||
4086 | * lisp.h (struct Lisp_Cons, XCAR, XCDR, struct Lisp_Float): Change | |
4087 | names of structure elements if HIDE_LISP_IMPLEMENTATION is | |
4088 | defined, to help detect code that uses knowledge of the Lisp | |
4089 | internals that it shouldn't have. | |
4090 | (XFLOAT_DATA): New macro. | |
4091 | ||
4092 | 1999-08-25 Gerd Moellmann <gerd@gnu.org> | |
4093 | ||
4094 | * syntax.c (Fforward_word): If in a mini-buffer and moving | |
4095 | backwards, stop in front of the prompt to prevent accidentially | |
4096 | moving into the read-only prompt. | |
4097 | ||
4098 | * window.c (Frecenter): Clear frame if called with nil or no arg. | |
4099 | ||
4100 | * xdisp.c (resize_mini_window): Don't resize if | |
4101 | Vmax_mini_window_height is nil. Otherwise, use a default if | |
4102 | Vmax_mini_window_height is not ot a number. | |
4103 | (syms_of_xdisp): Extend documentation of Vmax_mini_window_height. | |
4104 | ||
4105 | 1999-08-25 Alexandre Oliva <oliva@dcc.unicamp.br> | |
4106 | ||
4107 | * unexelf.c: Merge IRIX debugging info patch from unexsgi.c | |
4108 | * m/iris4d.h: Use unexelf for IRIX 5.*. | |
4109 | * m/iris5d.h: Use unexelf for IRIX 6.*. | |
4110 | * unexsgi.c: Deleted. | |
4111 | ||
4112 | * unexelf.c: Auto-detect .sbss section. | |
4113 | (round_up): Make it static. | |
4114 | (unexec): Declare alignment as Elf Word. Skip ``Program | |
4115 | segment above .bss'' test on MIPS without .sbss. | |
4116 | Copy sections .got and .sdata1 sections. Adjust offsets in | |
4117 | sections .sdata, .lit4, .lit8, .got and .sdata1. | |
4118 | ||
4119 | 1999-08-25 Gerd Moellmann <gerd@gnu.org> | |
4120 | ||
4121 | * xdisp.c (try_window_id): Remove typo. | |
4122 | ||
4123 | 1999-08-24 Gerd Moellmann <gerd@gnu.org> | |
4124 | ||
4125 | * xdisp.c (try_window_id): Recognize case that PT == ZV and in | |
4126 | unchanged text at the bottom when computing the cursor position. | |
4127 | (message3_nolog): Raise frame only if minibuffer_auto_raise is | |
4128 | set. | |
4129 | ||
4130 | * lisp.h (PVEC_TYPE_MASK): Add the bit for hash tables. | |
4131 | ||
4132 | 1999-08-24 Gerd Moellmann <gerd@gnu.org> | |
4133 | ||
4134 | * xfaces.c (Qmargin): Replacement for Qbitmap_area. | |
4135 | (realize_basic_faces): Replace Qmargin for Qbitmap_area. | |
4136 | (syms_of_xfaces): Ditto. | |
4137 | ||
4138 | * window.c (Fset_window_point): Reset Vresize_mini_config. | |
4139 | (Fset_window_start): Ditto. | |
4140 | (set_window_buffer): Ditto. | |
4141 | ||
4142 | * dispnew.c (adjust_frame_glyphs): Reset Vresize_mini_config. | |
4143 | ||
4144 | * xdisp.c (redisplay_window): Don't ever test just_this_one_p | |
4145 | before calling try_window. | |
4146 | (echo_area_display): If height has changed, update other windows. | |
4147 | (resize_mini_frame, resize_mini_initial_height): New. | |
4148 | (resize_mini_window): Save/restore window configuration | |
4149 | differently. | |
4150 | ||
4151 | * lisp.h (Vresize_mini_config, resize_mini_frame, | |
4152 | resize_mini_initial_height): Add extern declarations. | |
4153 | ||
4154 | * xterm.c (expose_window_tree): Fix typo CANON_Y_UNIT to | |
4155 | CANON_X_UNIT. | |
4156 | ||
4157 | * xfns.c [HAVE_JPEG]: Work around a warning about HAVE_STDLIB_H | |
4158 | being redefined in jconfig.h. | |
4159 | ||
4160 | 1999-08-23 Ken'ichi Handa <handa@gnu.org> | |
4161 | ||
4162 | * coding.h: Include "ccl.h" instead of "../src/ccl.h". | |
4163 | ||
4164 | 1999-08-22 Gerd Moellmann <gerd@gnu.org> | |
4165 | ||
4166 | * alloc.c (mark_glyph_matrix): Mark strings only. | |
4167 | ||
4168 | * xdisp.c (redisplay_internal): Clear garbaged frames after | |
4169 | resizing mini-window. | |
4170 | ||
4171 | 1999-08-22 Gerd Moellmann <gerd@gnu.org> | |
4172 | ||
4173 | * xdisp.c (unwind_with_echo_area_buffer): Use | |
4174 | set_buffer_internal_1 instead of set_buffer_internal. | |
4175 | (with_echo_area_buffer): Ditto. | |
4176 | ||
4177 | * buffer.c (set_buffer_internal): Set windows_or_buffers_changed | |
4178 | only if buffer is displayed somewhere. | |
4179 | ||
4180 | * buffer.h (BUF_COMPUTE_UNCHANGED): New. | |
4181 | ||
4182 | * insdel.c (gap_left): Use BUF_COMPUTE_UNCHANGED. | |
4183 | (gap_right): Ditto. | |
4184 | (modify_region): Ditto. | |
4185 | ||
4186 | * buffer.c (modify_overlay): Use BUF_COMPUTE_UNCHANGED. | |
4187 | ||
4188 | * xdisp.c (Vresize_mini_config): New. | |
4189 | (resize_mini_window): Use it to save restore original window | |
4190 | configuration | |
4191 | (syms_of_xdisp): Initialize it. | |
4192 | ||
4193 | * buffer.h (struct buffer): Add prevent_redisplay_optimizations_p. | |
4194 | ||
4195 | * dispextern.h (struct glyph_matrix): Add buffer, begv, and zv. | |
4196 | ||
4197 | * xdisp.c (reconsider_clip_changes): New. | |
4198 | (redisplay_internal, redisplay_window): Call it. | |
4199 | (mark_window_display_accurate, redisplay_internal): Set current | |
4200 | matrix' buffer, begv, zv. | |
4201 | ||
4202 | * window.c (Fset_window_hscroll): Set | |
4203 | prevent_redisplay_optimizations_p instead of clip_changed. | |
4204 | (Fset_window_hscroll): Ditto. | |
4205 | (temp_output_buffer_show): Ditto. | |
4206 | (Fset_window_vscroll): Ditto. | |
4207 | ||
4208 | * buffer.c (reset_buffer): Set clip_changed to 0 and | |
4209 | prevent_redisplay_optimizations_p to 1. | |
4210 | (Fget_buffer_create): Set prevent_redisplay_optimizations_p to 1. | |
4211 | ||
4212 | * buffer.h (BUF_UNCHANGED_MODIFIED, UNCHANGED_MODIFIED, | |
4213 | BUF_OVERLAY_UNCHANGED_MODIFIED, OVERLAY_UNCHANGED_MODIFIED, | |
4214 | BUF_BEG_UNCHANGED, BEG_UNCHANGED, BUF_END_UNCHANGED, | |
4215 | END_UNCHANGED): New. | |
4216 | (struct buffer_text): Add beg_unchanged, end_unchanged, | |
4217 | unchanged_modified, overlay_unchanged_modified. | |
4218 | ||
4219 | * window.h (beg_unchanged, end_unchanged, unchanged_modified, | |
4220 | overlay_unchanged_modified): Removed. | |
4221 | (with_echo_area_unwind_data): Don't save beg/end_unchanged. | |
4222 | (unwind_with_echo_area_buffer): Don't restore them. | |
4223 | (debug_beg_unchanged, debug_end_unchanged) [GLYPH_DEBUG]: Removed. | |
4224 | (text_outside_line_unchanged_p, redisplay_internal, | |
4225 | try_scrolling): Use/set buffer-specific beg/end_unchanged. | |
4226 | (redisplay_window): Let try_window_id be called if more than one | |
4227 | window is displayed. Use/set buffer-specific beg/end_unchanged. | |
4228 | (get_last_unchanged_at_beg_row, get_first_unchanged_at_end_row, | |
4229 | try_window_id): | |
4230 | Use buffer-specific beg/end_unchanged. | |
4231 | ||
4232 | * window.h (beg_unchanged, end_unchanged, unchanged_modified, | |
4233 | overlay_unchanged_modified): Remove extern declarations. | |
4234 | ||
4235 | * keyboard.c (command_loop_1): Set beg/end_unchanged per | |
4236 | buffer. | |
4237 | ||
4238 | * insdel.c (gap_left): Compute beg/end_unchanged per buffer. | |
4239 | (gap_right): Ditto. | |
4240 | (adjust_after_replace): Likewise. | |
4241 | (replace_range, del_range_2, modify_region): Likewise. | |
4242 | ||
4243 | * dispnew.c (direct_output_for_insert): Set beg_unchanged | |
4244 | and unchanged_modified per buffer. | |
4245 | ||
4246 | * coding.c (code_convert_region): Compute beg/end_unchanged per | |
4247 | buffer. | |
4248 | ||
4249 | * buffer.c (modify_overlay): Compute beg/end_unchanged | |
4250 | per buffer. | |
4251 | (Fget_buffer_create): Initialize new members of the buffer | |
4252 | structure. | |
4253 | ||
4254 | 1999-08-22 Gerd Moellmann <gerd@gnu.org> | |
4255 | ||
4256 | * lisp.h: Add prototype for copy_hash_table and Fcopy_hash_table. | |
4257 | ||
4258 | * fns.c (Qkey, Qvalue): Renamed from Qkey_weak, and Qvalue_weak. | |
4259 | (Qkey_value_weak): Removed. | |
4260 | (make_hash_table): Use nil, `key', `value', t for weakness. | |
4261 | (Fmake_hash_table): Ditto. | |
4262 | (copy_hash_table): New. | |
4263 | (Fcopy_hash_table): New. | |
4264 | ||
4265 | 1999-08-22 Gerd Moellmann <gerd@gnu.org> | |
4266 | ||
4267 | * xfns.c: Call change_frame_size and do_pending_window_change with | |
4268 | new parameter. | |
4269 | ||
4270 | 1999-08-21 Gerd Moellmann <gerd@gnu.org> | |
4271 | ||
4272 | * xdisp.c (resize_mini_window): Do it for truncate-lines t as | |
4273 | well. | |
4274 | (redisplay_internal): Resize mini-window only if text might | |
4275 | have changed. | |
4276 | (display_echo_area): Reset displayed echo_area_buffer to nil | |
4277 | at the end if we're displaying a nil message. | |
4278 | ||
4279 | 1999-08-21 Gerd Moellmann <gerd@gnu.org> | |
4280 | ||
4281 | * fns.c (hash_lookup): Test with EQ before calling key comparion | |
4282 | function. | |
4283 | (hash_remove): Ditto. | |
4284 | (cmpfn_eq): Removed. | |
4285 | (cmpfn_eql): Don't test with EQ. | |
4286 | (cmpfn_equal): Ditto. | |
4287 | (make_hash_table): Set comparison function for `eq' to null. | |
4288 | ||
4289 | * buffer.c, cmds.c, editfns.c, indent.c, insdel.c, buffer.h: | |
4290 | Remove conditional compilation on NO_PROMPT_IN_BUFFER. | |
4291 | ||
4292 | * dispextern.h (NO_PROMPT_IN_BUFFER): Removed. | |
4293 | ||
4294 | * window.c, widget.c, process.c, keyboard.c, frame.c, xdisp.c, | |
4295 | xterm.c: Call change_frame_size and do_pending_window_change with | |
4296 | new parameter. | |
4297 | ||
4298 | * dispnew.c (do_pending_window_change): Add parameter `safe'. | |
4299 | (change_frame_size): Ditto. | |
4300 | (change_frame_size_1): Ditto. Deley size changes if redisplaying | |
4301 | and not called from a safe place. | |
4302 | (window_change_signal): Call change_frame_size with new parameter. | |
4303 | ||
4304 | * dispextern.h: Change prototypes for do_pending_window_change | |
4305 | and change_frame_size. | |
4306 | ||
4307 | * xfaces.c (face_at_buffer_position): Don't xassert that | |
4308 | window's buffers equals current_buffer; this is not the | |
4309 | case during echo area display. | |
4310 | ||
4311 | 1999-08-21 Gerd Moellmann <gerd@gnu.org> | |
4312 | ||
4313 | * xdisp.c, minibuf.c: Remove conditional compilation on | |
4314 | NO_PROMPT_IN_BUFFER. | |
4315 | ||
4316 | * minibuf.c (Fminibuffer_prompt_end): New. | |
4317 | (syms_of_minibuf): Defsubr it. Remove | |
4318 | minibuffer-prompt-in-buffer. | |
4319 | (Fminibuffer_prompt_width): Return 0 if not in mini-buffer. | |
4320 | Extend documentation. | |
4321 | ||
4322 | * xdisp.c (get_next_display_element): Display \r as ^M. | |
4323 | ||
4324 | * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Clear | |
4325 | under scroll bar widget. | |
4326 | ||
4327 | 1999-08-21 Gerd Moellmann <gerd@gnu.org> | |
4328 | ||
4329 | * xdisp.c (minibuffer_scroll_overlap): Removed because not used | |
4330 | anywhere. | |
4331 | (unwind_redisplay): Return nil. | |
4332 | (clear_garbaged_frames): New. | |
4333 | (redisplay_internal): Use it. | |
4334 | (echo_area_display): Ditto. | |
4335 | (resize_mini_window): Mew. | |
4336 | (display_echo_area_1): Use it to resize echo area window. | |
4337 | (redisplay_internal): Use it to resize active mini-window. | |
4338 | ||
4339 | * dispextern.h, lisp.h: Add function prototypes. | |
4340 | ||
4341 | * dispnew.c (set_window_cursor_after_update): Do the | |
4342 | cursor_in_echo_area case only for a mini-window showing | |
4343 | a message. Don't let cursor end up after the end of a row. | |
4344 | ||
4345 | * xdisp.c (echo_area_glyphs, echo_area_message, | |
4346 | echo_area_glyphs_length, previous_echo_glyphs, | |
4347 | previous_echo_area_message, previous_echo_area_glyphs_length): | |
4348 | Removed. | |
4349 | (Vmessage_stack, echo_area_buffer, echo_buffer, | |
4350 | display_last_displayed_message_p, Vwith_echo_area_save_vector): New. | |
4351 | (message2_nolog): Use set_message and clear_message. | |
4352 | (message3): Rename parameter len to nbytes to make clear what | |
4353 | it is. | |
4354 | (message3_nolog): Ditto. Use set_message and clear_message. | |
4355 | (update_echo_area): Rewritten. | |
4356 | (with_echo_area_buffer): New. | |
4357 | (with_echo_area_buffer_unwind_data, unwind_with_area_buffer): New. | |
4358 | (setup_echo_area_for_printing): New. | |
4359 | (display_echo_area, display_echo_area_1): New. | |
4360 | ||
4361 | (current_message, current_message_1): New. | |
4362 | (push_message, restore_message, pop_message, | |
4363 | check_message_stack): New. | |
4364 | (truncate_echo_area): Rewritten. | |
4365 | (truncate_message_1): New. | |
4366 | (set_message, set_message_1, clear_message): New. | |
4367 | (echo_area_display): Rewritten. | |
4368 | (redisplay_internal): Check for needed echo area update | |
4369 | differently. | |
4370 | (redisplay_preserve_echo_area): Rewritten. | |
4371 | (redisplay_window): Check for mini-window displaying echo area | |
4372 | message differently. | |
4373 | (syms_of_xdisp): Initialize Vmessage_stack and echo area buffers. | |
4374 | Remove initialzation of removed variables. | |
4375 | (init_xdisp): Remove references to removed variables. | |
4376 | ||
4377 | * dispnew.c (adjust_frame_message_buffer): Removed references | |
4378 | to echo_area_glyphs and previous_echo_glyphs. | |
4379 | (direct_output_for_insert): Check for mini-window displaying | |
4380 | echo area message differently. | |
4381 | (update_frame): Likewise. | |
4382 | (set_window_cursor_after_update): Likewise. In echo area, | |
4383 | don't try to set cursor on rows that aren't enabled. | |
4384 | ||
4385 | * print.c: Remove conditional compilation on `standalone'. | |
4386 | (glyph_len, str_to_glyph_cpy, str_to_glyph_ncpy, | |
4387 | glyph_to_str_cpy): Remove that section because GLYPHs are no | |
4388 | longer used in that way. | |
4389 | (PRINTDECLARE): Add multibyte. | |
4390 | (PRINTPREPARE, PRINTFINISH): Handle printcharfun t differently. | |
4391 | (printbufidx): Removed. | |
4392 | (printchar, strout): Rewritten. | |
4393 | ||
4394 | * keyboard.c (ok_to_echo_at_next_pause): Make it a pointer to | |
4395 | a struct kboard. | |
4396 | (echo_kboard): New. | |
4397 | (echo_now): Set echo_kboard to the current kboard. | |
4398 | (cancel_echoing): Set echo_kboard to null. | |
4399 | (cmd_error_internal): Use clear_message, remove references | |
4400 | to echo_area_glyphs and echo_area_message. | |
4401 | (command_loop_1): Check for echo area messages differently. | |
4402 | (read_char): Likewise. | |
4403 | (record_menu_key): Use clear_message. | |
4404 | (Fexecute_extended_command): Check for echo area messages | |
4405 | differently. Use push_message, restore_message, pop_message. | |
4406 | ||
4407 | * alloc.c (Fgarbage_collect): Use push_message, restore_message, | |
4408 | pop_message. | |
4409 | ||
4410 | * emacs.c (shut_down_emacs): Call check_message_stack. | |
4411 | ||
4412 | * lisp.h: Add function prototypes and extern declarations for | |
4413 | new functions and variables. | |
4414 | ||
4415 | * fileio.c (Fdo_auto_save): Use push_message, restore_message, | |
4416 | pop_message. | |
4417 | ||
4418 | * minibuf.c (read_minibuf): Use clear_message instead of | |
4419 | setting echo_area_glyphs. | |
4420 | (Fminibuffer_completion_help): Ditto. | |
4421 | ||
4422 | * editfns.c (Fcurrent_message): Rewritten. | |
4423 | ||
4424 | * frame.c, window.h: Remove references to echo_area_glyphs | |
4425 | and previous_echo_glyphs. | |
4426 | ||
4427 | 1999-08-21 Dave Love <fx@gnu.org> | |
4428 | ||
4429 | * aix3-2-5.h (C_DEBUG_SWITCH): Use -g -O. | |
4430 | * aix4-1.h: Likewise. | |
4431 | ||
4432 | * irix6-5.h (C_DEBUG_SWITCH): Set for debug and optimize. | |
4433 | ||
4434 | 1999-08-20 Gerd Moellmann <gerd@gnu.org> | |
4435 | ||
4436 | * xfns.c: Remove tiff34 prefix from include. | |
4437 | ||
4438 | 1999-08-20 Dave Love <fx@gnu.org> | |
4439 | ||
4440 | * cm.c: Revert previous change. | |
4441 | ||
4442 | 1999-08-19 Gerd Moellmann <gerd@gnu.org> | |
4443 | ||
4444 | * xterm.c (XTset_vertical_scroll_bar): Fix previous change. Clear | |
4445 | under scroll bar with width FRAME_SCROLL_BAR_COLS. | |
4446 | ||
4447 | 1999-08-18 Dave Love <fx@gnu.org> | |
4448 | ||
4449 | * callproc.c, filelock.c, insdel.c, sysdep.c, xmenu.c: Use | |
4450 | stdlib.h. | |
4451 | ||
4452 | * doprnt.c: Use stdlib.h, unistd.h. | |
4453 | ||
4454 | * config.in: Add HAVE_TERMCAP_H. | |
4455 | ||
4456 | * cm.c: Use termcap.h. | |
4457 | ||
4458 | 1999-08-18 Gerd Moellmann <gerd@gnu.org> | |
4459 | ||
4460 | * xfns.c (x_window) [USE_X_TOOLKIT]: Remove test for | |
4461 | FRAME_X_WINDOW (f) being null at the of the function. If widgets | |
4462 | cannot be created we will already have crashed earlier. Call | |
4463 | lw_set_main_areas with a null menu-bar widget, so that we have | |
4464 | a reasonable default. | |
4465 | (Fx_create_frame): Rearranged so that Lisp errors during frame | |
4466 | initialization cause less damage. Initialize menu bar widget | |
4467 | here. | |
4468 | ||
4469 | 1999-08-18 Gerd Moellmann <gerd@gnu.org> | |
4470 | ||
4471 | * dispnew.c (update_frame_line): Fix previous change. If writing | |
4472 | whole line clear to end of frame. | |
4473 | ||
4474 | 1999-08-17 Gerd Moellmann <gerd@gnu.org> | |
4475 | ||
4476 | * window.c (Fcoordinates_in_window_p): Return `left-bitmap-area' | |
4477 | and `right-bitmap-area' if position is in the bitmap areas. This | |
4478 | avoids an error when clicking on the bitmap areas. Instead, they | |
4479 | are currently treated like clicks inside the window. | |
4480 | (coordinates_in_window): Return 5 and 6 for bitmap areas. | |
4481 | (Qleft_bitmap_area, Qright_bitmap_area): New. | |
4482 | (syms_of_window): Initialize new symbols. | |
4483 | ||
4484 | * dispnew.c (update_frame_line): If writing whole line, | |
4485 | don't write trailing spaces unless we must. | |
4486 | ||
4487 | * xdisp.c (unwind_redisplay): New. Resets flag redisplaying_p. | |
4488 | (redisplay_internal): Register unwind_redisplay with | |
4489 | register_unwind_protect. | |
4490 | (try_window_reusing_current_matrix): If new start > old start, | |
4491 | give up if start pos of first reusable row is not equal to new | |
4492 | start. | |
4493 | ||
4494 | * eval.c (Fsignal): Don't reset redisplaying_p here. | |
4495 | ||
4496 | * xterm.c (expose_area): If row extends face to end of line, | |
4497 | write the whole line. | |
4498 | ||
4499 | 1999-08-16 Gerd Moellmann <gerd@gnu.org> | |
4500 | ||
4501 | * dispextern.h (struct it): Remove member | |
4502 | show_trailing_whitespace_p. | |
4503 | ||
4504 | * dispnew.c (direct_output_for_insert): Use | |
4505 | Vshow_trailing_whitespace instead of former iterator member | |
4506 | show_trailing_whitespace_p. | |
4507 | (direct_output_forward_char): Don't do it if hightlighting | |
4508 | trailing whitespace. | |
4509 | ||
4510 | * xdisp.c (Qshow_trailing_whitespace): Removed. | |
4511 | (Vshow_trailing_whitespace): Added. | |
4512 | (init_iterator): Remove initialization code for | |
4513 | show_trailing_whitespace_p. | |
4514 | (redisplay_internal): Don't try cursor movement in this_line | |
4515 | if showing trailing whitespace. | |
4516 | (redisplay_window): Likewise for cursor movement in current | |
4517 | matrix and try_window_id. | |
4518 | (try_window_reusing_current_matrix): Likewise. | |
4519 | (trailing_whitespace_p): Return 0 if trailing whitespace is | |
4520 | in front of point. | |
4521 | (display_line): Use Vshow_trailing_whitespace instead of | |
4522 | former iterator member show_trailing_whitespace_p. | |
4523 | (syms_of_xdisp): Add DEFVAR_LISP for show-trailing-whitespace. | |
4524 | ||
4525 | 1999-08-16 Gerd Moellmann <gerd@gnu.org> | |
4526 | ||
4527 | * window.c (Fpos_visible_in_window_p): Rewritten. | |
4528 | ||
4529 | * xfaces.c (add_to_log): Renamed from display_message. | |
4530 | Don't display messages in echo area. | |
4531 | ||
4532 | * xterm.c (x_draw_glyph_string_box): Use the background width | |
4533 | of the glyph string for the width of the box. | |
4534 | ||
4535 | 1999-08-16 Stefan Monnier <monnier@cs.yale.edu> | |
4536 | ||
4537 | * syntax.c (Fforward_comment): Set comstyle for Scomment_fence. | |
4538 | ||
4539 | 1999-08-16 Geoff Voelker <voelker@cs.washington.edu> | |
4540 | ||
4541 | * xfns.c, w32fns.c (x_set_frame_parameters): Set foreground and | |
4542 | background first, and then set other parameters that might | |
4543 | depend upon their new values. | |
4544 | ||
4545 | 1999-08-15 Gerd Moellmann <gerd@gnu.org> | |
4546 | ||
4547 | * xfaces.c (Vfont_list_limit): New. | |
4548 | (syms_of_xfaces): Make it a user-variable. | |
4549 | (DEFAULT_FONT_LIST_LIMIT): New. | |
4550 | (sorted_font_list): If Vfont_list_limit is an integer > 0, list | |
4551 | maximally that number of fonts, otherwise use | |
4552 | DEFAULT_FONT_LIST_LIMIT. | |
4553 | (Fx_font_family_list): Bind `font-list-limit' to higher values | |
4554 | until we have all fonts. | |
4555 | (Fxfont_list): Additionally return the full names of fonts and | |
4556 | their registry and encoding. | |
4557 | ||
4558 | * xterm.c (XTset_vertical_scroll_bar) [USE_TOOLKIT_SCROLL_BARS]: | |
4559 | Simplify clearing "under" scroll bar. | |
4560 | ||
4561 | * window.c (Qfixed_window_size): New. | |
4562 | (syms_of_window): Initialiaze it. | |
4563 | (check_all_windows): Add return type void. | |
4564 | (window_fixed_size_p): New. Return non-zero if window | |
4565 | is fixed-size. | |
4566 | (window_min_size_1): New. | |
4567 | (window_min_size): Handle fixed-size windows. | |
4568 | (size_window): New. Rewritten combination of set_window_height and | |
4569 | set_window_width that handles fixed-size windows. | |
4570 | (set_window_height): Call it. | |
4571 | (set_window_width): Call it. | |
4572 | (Fsplit_window): Give an error on attempt to split a fixed-size | |
4573 | window. | |
4574 | (change_window_height): Partly rewritten to handle fixed-size | |
4575 | windows. | |
4576 | ||
4577 | 1999-08-13 Wolfgang Rupprecht <wolfgang@wsrcc.com> | |
4578 | ||
4579 | * process.c (Fopen_network_stream): Fix previous change. | |
4580 | ||
4581 | 1999-08-13 Karl Heuer <kwzh@gnu.org> | |
4582 | ||
4583 | * xdisp.c (line_number_display_limit_width): New var. | |
4584 | (decode_mode_spec): Use it instead of hardcoded value. | |
4585 | (syms_of_xdisp): Defvar it. | |
4586 | ||
4587 | 1999-08-13 Richard M. Stallman <rms@gnu.org> | |
4588 | ||
4589 | * eval.c (run_hook_list_with_args): Gcpro `globals'. | |
4590 | (run_hook_with_args): Likewise. | |
4591 | ||
4592 | * window.h (struct window): New field too_small_ok. | |
4593 | ||
4594 | * window.c (set_window_height, set_window_width): | |
4595 | If window starts out "too small", set its too_small_ok flag. | |
4596 | If window's too_small_ok flag is set, don't delete it | |
4597 | unless it is so small it would cause a crash. | |
4598 | ||
4599 | 1999-08-13 Gerd Moellmann <gerd@gnu.org> | |
4600 | ||
4601 | * window.c (MINSIZE): Removed. | |
4602 | (window_min_size): New. | |
4603 | (set_window_height): Use window_min_size. | |
4604 | (change_window_height): Ditto. | |
4605 | ||
4606 | 1999-08-12 Gerd Moellmann <gerd@gnu.org> | |
4607 | ||
4608 | * indent.c (vmotion): Don't add in mini-buffer prompt width | |
4609 | if prompts are inserted into mini-buffer. | |
4610 | ||
4611 | 1999-08-12 Wolfgang Rupprecht <wolfgang@wsrcc.com> | |
4612 | ||
4613 | * config.in: Add HAVE_GETADDRINFO. | |
4614 | * process.c (Fopen_network_stream): Use getaddrinfo. | |
4615 | ||
4616 | 1999-08-11 Gerd Moellmann <gerd@gnu.org> | |
4617 | ||
4618 | * xdisp.c (get_overlay_arrow_glyph_row): Set the charpos of | |
4619 | glyphs to -1. | |
4620 | ||
4621 | * xdisp.c (face_before_or_after_it_pos): If position after | |
4622 | or before iterator's current position in the buffer is out | |
4623 | of bounds, return the iterator's original face id. | |
4624 | ||
4625 | * dispnew.c (mirror_make_current): If desired row isn't enabled, | |
4626 | just swap glyphs pointers between current and desired row. | |
4627 | (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Copy | |
4628 | desired matrix method string to current matrix. | |
4629 | ||
4630 | 1999-08-11 Kenichi Handa <handa@etl.go.jp> | |
4631 | ||
4632 | * lisp.h (CHAR_MODIFIER_MASK): New macro. | |
4633 | ||
4634 | * lread.c (read_escape): For Control modifier, pay attention to | |
4635 | multibyte character. | |
4636 | (read1): Likewise. Singal error or a multibyte character which | |
4637 | has a modifer bit. Check validity of Shift modifer. | |
4638 | ||
4639 | * charset.c (non_ascii_char_to_string): Handle modifier bits as | |
4640 | the same as Lisp reader. | |
4641 | ||
4642 | 1999-08-10 Richard M. Stallman <rms@gnu.org> | |
4643 | ||
4644 | * charset.h (BCOPY_SHORT): Fix typo `unsigined'. | |
4645 | ||
4646 | 1999-08-10 Alexandre Oliva <oliva@dcc.unicamp.br> | |
4647 | ||
4648 | * unexelf.c [__linux__ && __alpha__] (HAS_SBSS_SECTION): Define. | |
4649 | ||
4650 | 1999-08-10 Eli Zaretskii <eliz@gnu.org> | |
4651 | ||
4652 | * msdos.c (IT_set_face): Abort if the default face is not realized | |
4653 | and cached. | |
4654 | (IT_write_glyphs): Reset the screen face to the default face | |
4655 | before writing glyphs. | |
4656 | ||
4657 | * xfaces.c (realize_default_face) [MSDOS]: Don't take default | |
4658 | colors from the frame here. | |
4659 | (realize_tty_face) [MSDOS]: Do it here. Update the face | |
4660 | attributes with the actual name of the color taken from the | |
4661 | frame. | |
4662 | ||
4663 | * dosfns.c (msdos_stdcolor_name): Remove const from return value. | |
4664 | * dosfns.h (msdos_stdcolor_name): Ditto for the prototype. | |
4665 | ||
4666 | * frame.c (Fframe_parameters): Swap foreground and background | |
4667 | colors returned in frame parameters if the frame has reverse in | |
4668 | its parameter alist. | |
4669 | (Fmake_terminal_frame): Make a unique copy of face_alist for | |
4670 | each frame. | |
4671 | ||
4672 | 1999-08-07 Richard Stallman <rms@gnu.org> | |
4673 | ||
4674 | * buffer.c (Fprevious_overlay_change): Just return | |
4675 | the answer obtained from overlays_at. | |
4676 | ||
4677 | * xfns.c (xpm_load) [!XpmAllocCloseColors]: | |
4678 | Use XpmCloseness and attrs.closeness instead. | |
4679 | ||
4680 | 1999-08-06 Richard Stallman <rms@gnu.org> | |
4681 | ||
4682 | * lread.c (Feval_buffer): New arg DO_ALLOW_PRINT. | |
4683 | ||
4684 | 1999-08-06 Geoff Voelker <voelker@cs.washington.edu> | |
4685 | ||
4686 | * dired.c (directory_files_internal, Fdirectory_files_and_attributes, | |
4687 | Ffile_attributes_lessp): New functions. | |
4688 | (Fdirectory_files): Use directory_files_internal. | |
4689 | (syms_of_dired): Initialize Fdirectory_files_and_attributes, | |
4690 | Ffile_attributes_lessp. | |
4691 | ||
4692 | * w32.c (stat): Check for directory ending in separator when | |
4693 | doing readdir fast path. | |
4694 | ||
4695 | * w32fns.c (x_set_icon_type): Support setting frame icons. | |
4696 | * w32term.c (x_bitmap_icon): New function. | |
4697 | (x_make_frame_visible, x_iconify_frame): Invoke x_bitmap_icon. | |
4698 | ||
4699 | 1999-08-06 Gerd Moellmann <gerd@gnu.org> | |
4700 | ||
4701 | * xdisp.c (set_iterator_to_next): After delivering a character | |
4702 | from a display vector, restore face and charset to what they were | |
4703 | before the display vector was processed. | |
4704 | ||
4705 | 1999-08-06 Gerd Moellmann <gerd@gnu.org> | |
4706 | ||
4707 | * xdisp.c (reseat_at_next_visible_line_start): New parameter | |
4708 | on_newline_p. | |
4709 | (set_iterator_to_next): After delivering last char | |
4710 | from display vector, reseat on next visible line start if | |
4711 | dpvec_char_len < 0. | |
4712 | (next_element_from_buffer): Set dpvec_char_len to -1 for | |
4713 | selective display. | |
4714 | ||
4715 | 1999-08-06 Gerd Moellmann <gerd@gnu.org> | |
4716 | ||
4717 | * xdisp.c (compute_line_metrics): If first line's physical ascent | |
4718 | is larger than its logical ascent, use the physical ascent, and | |
4719 | make the row taller. Set row's overlapping_p flag. | |
4720 | ||
4721 | * dispnew.c (redraw_overlapping_rows): Use flag overlapping_p. | |
4722 | (direct_output_for_insert): Ditto. | |
4723 | ||
4724 | * dispextern.h (struct glyph_row): Add overlapping_p. | |
4725 | ||
4726 | * xterm.c (x_draw_phys_cursor_glyph): Redraw overlaps. | |
4727 | ||
4728 | * dispextern.h (MATRIX_ROW_OVERLAPS_PRED_P): New. | |
4729 | (MATRIX_ROW_OVERLAPS_SUCC_P): New. | |
4730 | ||
4731 | * dispnew.c (direct_output_for_insert): Don't use this method if | |
4732 | row is overlapped by others. | |
4733 | (update_text_area): Write full line if current line is overlapped. | |
4734 | (redraw_overlapped_rows): New. | |
4735 | (update_window): Call it. | |
4736 | (redraw_overlapping_rows): New. | |
4737 | (update_window): Call it. | |
4738 | (scrolling_window): Make sure overlapped_p flag in current rows is | |
4739 | unchanged. | |
4740 | (row_equal_p): Take rows overlapped_p flag into account. | |
4741 | ||
4742 | * dispextern.h (struct glyph_row): Add flag overlapped_p. | |
4743 | ||
4744 | * xterm.c (x_fix_overlapping_area): New. | |
4745 | (x_redisplay_interface): Add x_fix_overlapping_area. | |
4746 | ||
4747 | * dispnew.c (adjust_glyphs): Block input while adjusting matrices. | |
4748 | ||
4749 | 1999-08-06 Gerd Moellmann <gerd@gnu.org> | |
4750 | ||
4751 | * xterm.c (x_draw_glyphs): Add parameter overlaps_p. | |
4752 | (struct glyph_string): Add member for_overlaps_p. | |
4753 | (x_get_glyph_string_clip_rect): If glyph string draws foreground | |
4754 | of overlapping rows, clip to window bottom. | |
4755 | (x_fill_glyph_string): Add parameter overlaps_p. | |
4756 | (x_fill_composite_glyph_string): Ditto. | |
4757 | (BUILD_GLYPH_STRINGS): Ditto. | |
4758 | (BUILD_CHAR_GLYPH_STRINGS): Ditto. | |
4759 | (x_draw_glyph_string): Don't draw anything but the foreground | |
4760 | if glyph string draws row overlaps. | |
4761 | ||
4762 | * dispnew.c (direct_output_for_insert): Don't use this | |
4763 | optimization for rows that overlap others. | |
4764 | (update_window_line): Return non-zero if display has changed. | |
4765 | (update_text_area): Ditto. | |
4766 | (update_window): Record if display has been changed. | |
4767 | ||
4768 | * dispextern.h (MATRIX_ROW_OVERLAPPING_P): New. | |
4769 | ||
4770 | * dispextern.h (struct redisplay_interface): Add | |
4771 | fix_overlapping_area. | |
4772 | ||
4773 | * xterm.c (x_append_glyph): Set glyph flag overlaps_vertically_p. | |
4774 | ||
4775 | * dispextern.h (struct glyph): Add overlaps_vertically_p. | |
4776 | ||
4777 | * xterm.c (x_produce_image_glyph): Compute iterator's physical | |
4778 | ascent and descent. | |
4779 | (x_produce_stretch_glyph): Ditto. | |
4780 | (x_produce_glyphs): Ditto. | |
4781 | ||
4782 | * xdisp.c (init_iterator): Reset physical line height info | |
4783 | after producing special glyphs. | |
4784 | (display_toolbar_line): Set physical line height info. | |
4785 | (compute_line_metrics): Ditto. | |
4786 | (display_line): Ditto. | |
4787 | (display_string): Ditto. | |
4788 | ||
4789 | * term.c (produce_glyphs): Set iterator's physical height | |
4790 | information. | |
4791 | ||
4792 | * dispnew.c (blank_row): Compute glyph row's physical height. | |
4793 | (row_equal_p): Take physical row heights into account. | |
4794 | (direct_output_for_insert): Ditto. | |
4795 | (update_text_area): Ditto. | |
4796 | ||
4797 | * dispextern.h (struct glyph_row): Add phys_ascent and | |
4798 | phys_height. | |
4799 | (struct it): Add phys_ascent, phys_descent, max_phys_ascent, | |
4800 | max_phys_descent. | |
4801 | ||
4802 | 1999-08-04 Stefan Monnier <monnier@cs.yale.edu> | |
4803 | ||
4804 | * buffer.c (switch_to_buffer_1): New subroutine, taken out from | |
4805 | Fswitch_to_buffer. | |
4806 | (no_switch_buffer): New function. | |
4807 | (Fswitch_to_buffer): Call them. Don't get confused | |
4808 | by "same-window" buffers in a dedicated frame. | |
4809 | ||
4810 | * window.c (display-buffer): Don't get confused | |
4811 | by "same-window" buffers in a dedicated frame. | |
4812 | ||
4813 | 1999-08-04 Andreas Schwab <schwab@gnu.org> | |
4814 | ||
4815 | * insdel.c (insert_from_string_1): Check gap size against number | |
4816 | of outgoing bytes, not incoming bytes. | |
4817 | ||
4818 | 1999-08-03 Tom Breton <tob@world.std.com> | |
4819 | ||
4820 | * lread.c (read1): Added circular reading code to #N=. | |
4821 | (SUBSTITUTE): New macro. | |
4822 | (seen_list): New variable. | |
4823 | (substitute_object_in_subtree): New function. | |
4824 | (substitute_object_recurse): New function. | |
4825 | (substitute_in_interval): New function. | |
4826 | ||
4827 | 1999-08-02 Eli Zaretskii <eliz@gnu.org> | |
4828 | ||
4829 | * Makefile.in (frame.o, sysdep.o, xfaces.o): Depend on dosfns.h. | |
4830 | ||
4831 | * frame.c (make_terminal_frame): Don't call init_frame_faces if | |
4832 | noninteractive, for termcap frames as well. | |
4833 | ||
4834 | * sysdep.c (init_sys_modes): Call init_frame_faces for termcap | |
4835 | frames. | |
4836 | ||
4837 | 1999-08-01 Richard Stallman <rms@gnu.org> | |
4838 | ||
4839 | * fns.c (internal_equal): Correct overlay comparison. | |
4840 | ||
83c8f461 | 4841 | 1999-07-31 Richard M. Stallman <rms@gnu.org> |
26901792 DL |
4842 | |
4843 | * xfns.c (x_set_internal_border_width): | |
4844 | Call do_pending_window_change. Don't block input, don't call XFlush. | |
4845 | (x_set_vertical_scroll_bars): Call do_pending_window_change. | |
4846 | (x_set_scroll_bar_width, x_set_font): Likewise. | |
4847 | ||
4848 | * frame.c (Fset_frame_height): Call do_pending_window_change. | |
4849 | (Fset_frame_width, Fset_frame_size): Likewise. | |
4850 | ||
4851 | * xterm.c (x_set_window_size): When calling change_frame_size, | |
4852 | specify 1 for DELAY. | |
4853 | ||
4854 | * widget.c (EmacsFrameSetCharSize): Don't call | |
4855 | do_pending_window_change here. | |
4856 | ||
4857 | 1999-07-30 Dave Love <fx@gnu.org> | |
4858 | ||
4859 | * config.in: Add HAVE_STDLIB_H. | |
4860 | ||
4861 | 1999-07-30 Richard M. Stallman <rms@gnu.org> | |
4862 | ||
4863 | * process.c (create_process): Detect failure of `pipe'. | |
4864 | ||
4865 | 1999-07-30 Keisuke Nishida <kei@psn.net> | |
4866 | ||
4867 | * alloc.c (allocate_vectorlike): Add missing increment. | |
4868 | ||
4869 | * data.c (Fdefalias): Call Ffset instead of duplicating code. | |
4870 | ||
4871 | * keymap.c (get_keymap_1, get_keyelt): Check the type of OBJECT | |
4872 | before calling indirect_function. | |
4873 | ||
4874 | 1999-07-30 Eli Zaretskii <eliz@gnu.org> | |
4875 | ||
4876 | * dispextern.h (load_color, lookup_derived_face): Declare | |
4877 | prototypes. | |
4878 | ||
4879 | * dispnew.c (init_display) [MSDOS]: Don't initialize frame faces, | |
4880 | it will be done later. | |
4881 | ||
4882 | * frame.c (make_terminal_frame) [MSDOS]: Don't call | |
4883 | init_frame_faces if non-interactive. | |
4884 | (Fframe_parameters) [MSDOS]: Replace indexing into colornames[] | |
4885 | array with a call to msdos_stdcolor_name. The font name is now | |
4886 | "ms-dos", consistent with realize_tty_face. | |
4887 | ||
4888 | * keyboard.c (cmd_error_internal): Don't kill Emacs if this is an | |
4889 | MSDOS frame. | |
4890 | ||
4891 | * window.c (Fset_window_configuration) [MSDOS]: Don't call | |
4892 | x_set_toolbar_lines. | |
4893 | ||
4894 | * xfaces.c (load_color): Remove static from definition and remove | |
4895 | prototype. | |
4896 | [MSDOS]: Add a DOS-specific version of load_color. | |
4897 | (lookup_face): Replace FRAME_TERMCAP_P with !FRAME_WINDOW_P. | |
4898 | (lookup_derived_face): New function. | |
4899 | (realize_default_face): Support MSDOS frames. | |
4900 | [MSDOS]: If fore/background colors are unspecified, inherit them | |
4901 | from the frame. | |
4902 | (realize_face): Support MSDOS frames. | |
4903 | (realize_tty_face): Support MSDOS frames. | |
4904 | [MSDOS]: If the face color is not in Vface_tty_color_alist, call | |
4905 | load_color to try to find a suitable approximation. If the face | |
4906 | is inverse-video, swap the foreground and background colors. | |
4907 | ||
4908 | * dosfns.c (msdos_stdcolor_name, msdos_stdcolor_idx): New | |
4909 | functions. | |
4910 | ||
4911 | * dosfns.h (msdos_stdcolor_name, msdos_stdcolor_idx): Declare. | |
4912 | ||
4913 | * msdos.h: Remove redundant declarations (most of them are now in | |
4914 | dispextern.h). | |
4915 | ||
4916 | * msdos.c (IT_set_face): Rewritten for the new redisplay engine. | |
4917 | Use default frame colors if the face doesn't specify them; invert | |
4918 | the colors if highlight is ON. | |
4919 | (IT_write_glyphs): Rewritten for the new redisplay engine. | |
4920 | (IT_change_line_highlight): Add (unused) parameter Y, since that's | |
4921 | how the hook is called by term.c. | |
4922 | (IT_copy_glyphs): New function, copies an area of the display in | |
4923 | video RAM. | |
4924 | (IT_insert_glyphs): Rewritten to DTRT instead of aborting, since | |
4925 | redisplay now calls it even if char_ins_del_ok is zero. | |
4926 | (IT_set_frame_parameters): Prototype changed. Calls the new | |
4927 | load_color. Puts the new fore/background colors into the default | |
4928 | face on current frame. | |
4929 | (IT_menu_display): Rewritten to handle the new struct glyph | |
4930 | instead of a char array. | |
4931 | (XMenuActivate): Call lookup_derived_face to create and use | |
4932 | special faces for the pop-up and drop-down menus. | |
4933 | ||
4934 | 1999-07-29 Gerd Moellmann <gerd@gnu.org> | |
4935 | ||
4936 | * xterm.c (x_set_toolkit_scroll_bar_thumb): Don't call | |
4937 | XawScrollbarSetThumb if thumb parameters haven't changed because | |
4938 | that function apparently isn't optimized for this case. | |
4939 | ||
4940 | 1999-07-29 Eli Zaretskii <eliz@gnu.org> | |
4941 | ||
4942 | * msdos.c (getdefdir): Don't return failure indication when | |
4943 | _fixpath sets errno to ENOSYS. | |
4944 | ||
4945 | 1999-07-28 Gerd Moellmann <gerd@gnu.org> | |
4946 | ||
4947 | * xdisp.c (string_char_and_length): New. Use it everywhere | |
4948 | instead of STRING_CHAR_AND_LENGTH in xdisp.c. | |
4949 | ||
4950 | 1999-07-28 Kenichi Handa <handa@etl.go.jp> | |
4951 | ||
4952 | * fns.c (count_combining): New function. | |
4953 | (struct textprop_rec): New structure. | |
4954 | (concat): Copy text properties correctly when byte combining | |
4955 | occurs. | |
4956 | ||
4957 | 1999-07-28 Gerd Moellmann <gerd@gnu.org> | |
4958 | ||
4959 | * xterm.c (x_setup_relief_color): Don't try smart color allocation | |
4960 | if display is mono. | |
4961 | (x_draw_row_bitmaps): If face has stipple, don't switch | |
4962 | to foreground color for clearing areas, and set the fill style. | |
4963 | ||
4964 | * xfaces.c (load_face_colors): Load background color if setting | |
4965 | stipple, too. | |
4966 | (prepare_face_for_display): Use FillOpaqueStippled instead of | |
4967 | FillStippled. | |
4968 | ||
4969 | 1999-07-26 Ken'ichi Handa <handa@gnu.org> | |
4970 | ||
4971 | * xterm.c (x_find_ccl_program): Add casting. | |
4972 | ||
4973 | * w32fns.c (w32_find_ccl_program): Add casting. | |
4974 | ||
4975 | 1999-07-27 Gerd Moellmann <gerd@gnu.org> | |
4976 | ||
4977 | * dispextern.h (struct glyph_row): Flag internal_border_p removed. | |
4978 | ||
4979 | * xfns.c (x_create_tip_frame): Don't set bitmapIcon resource | |
4980 | because this will try to access a nonexisting widget. | |
4981 | ||
4982 | 1999-07-26 Markus Rost <rost@gnu.org> | |
4983 | ||
4984 | * fns.c (Fgethash): Fix order of variables (patch by gerd). | |
4985 | (Fputhash): Ditto. | |
4986 | (Fremhash): Ditto. | |
4987 | ||
4988 | 1999-07-26 Gerd Moellmann <gerd@gnu.org> | |
4989 | ||
4990 | * widget.c (EmacsFrameSetCharSize): Don't add XtNborderWidth | |
4991 | value to frame width and height. | |
4992 | ||
4993 | * xterm.c (x_get_glyph_string_clip_rect): Take internal border | |
4994 | into account for full-width windows. Don't add scroll bar width | |
4995 | to width of clip rect. | |
4996 | (x_draw_glyph_string_box): Add 1 to right x of full width lines. | |
4997 | (x_set_glyph_string_background_width): Add 1 to background width. | |
4998 | (x_draw_glyphs): Take internal border into account for full-width | |
4999 | lines. | |
5000 | ||
5001 | 1999-07-26 Richard M. Stallman <rms@gnu.org> | |
5002 | ||
5003 | * xfns.c (x_set_mouse_color): Always unload the old color. | |
5004 | Don't allow nil as color value. | |
5005 | (x_set_cursor_color, x_set_background_color, x_set_foreground_color): | |
5006 | Always unload the old color. | |
5007 | ||
5008 | * indent.c (Fmove_to_column): Extend end of line only if FORCE is t. | |
5009 | ||
5010 | 1999-07-26 Karl Heuer <kwzh@gnu.org> | |
5011 | ||
5012 | * fns.c (Fy_or_n_p): Doc fix. | |
5013 | ||
5014 | 1999-07-26 Kenichi Handa <handa@etl.go.jp> | |
5015 | ||
5016 | * ccl.h (setup_ccl_program): The type is changed to `int'. | |
5017 | ||
5018 | * ccl.c (ccl_driver) <CCL_Call>: Now CCL program ID to call may be | |
5019 | stored in the following CCL code. Adjusted for the change of | |
5020 | Vccl_program_table. | |
5021 | (resolve_symbol_ccl_program): Adjusted for the new style of | |
5022 | embedded symbols (SYMBOL . PROP) in CCL compiled code. Return Qt | |
5023 | is resolving failed. | |
5024 | (ccl_get_compiled_code): New function. | |
5025 | (setup_ccl_program): Function type changed from `void' to `int'. | |
5026 | Resolve symbols in CCL_PROG. | |
5027 | (Fccl_program_p): New function. | |
5028 | (Fccl_execute): Get compiled CCL code by just calling | |
5029 | setup_ccl_program. | |
5030 | (Fccl_execute_on_string): Likewise. | |
5031 | (Fregister_ccl_program): Adjusted for the change of | |
5032 | Vccl_program_table. | |
5033 | ||
5034 | * coding.c (setup_coding_system): Get compiled CCL code by just | |
5035 | calling setup_ccl_program. | |
5036 | ||
5037 | * xterm.c (x_find_ccl_program): Get compiled CCL code by just | |
5038 | calling setup_ccl_program. | |
5039 | ||
5040 | * w32fns.c (w32_find_ccl_program): Get compiled CCL code by just | |
5041 | calling setup_ccl_program. | |
5042 | ||
5043 | 1999-07-23 Gerd Moellmann <gerd@gnu.org> | |
5044 | ||
5045 | * xfaces.c (frame_update_line_height): Just use the height of the | |
5046 | frame's fontset or font, instead of taking face fonts into | |
5047 | account. | |
5048 | ||
5049 | * xdisp.c (get_next_display_element): Display DEL as `^?'. | |
5050 | ||
5051 | 1999-07-23 Richard M. Stallman <rms@gnu.org> | |
5052 | ||
5053 | * window.c (Fsplit_window): For default size, round up for left window. | |
5054 | ||
5055 | 1999-07-21 Joe Ramey <ramey@ti.com> | |
5056 | ||
5057 | * filelock.c (lock_if_free): Return -1 if check_lock_owner | |
5058 | has returned -1 (lockfile exists but is not a symlink?). | |
5059 | ||
5060 | 1999-07-20 Gerd Moellmann <gerd@gnu.org> | |
5061 | ||
5062 | * xterm.c (x_draw_bar_cursor): Use scratch_cursor_gc to | |
5063 | because of a change in cursor_gc made in 20.4. | |
5064 | ||
5065 | 1999-07-19 Gerd Moellmann <gerd@gnu.org> | |
5066 | ||
5067 | * xterm.c (x_calc_absolute_position): Subtract menu bar height | |
5068 | for YNegative, if using X toolkit. | |
5069 | ||
5070 | * xfns.c (x_real_positions): Don't subtract window borders | |
5071 | from positions returned. | |
5072 | ||
5073 | 1999-07-17 Gerd Moellmann <gerd@gnu.org> | |
5074 | ||
5075 | * xrdb.c (x_load_resources): Set double-click time defaults | |
5076 | for Motif list boxes from double-click-time. | |
5077 | ||
5078 | * fns.c (Vhash_table_tests): Remvoed. | |
5079 | (Qhash_table_test): New. | |
5080 | (syms_of_fns): Initialize Qhash_table_test. | |
5081 | (Fmake_hash_table): Look up user-defined tests in symbol prop | |
5082 | `hash-table-test'. | |
5083 | (Fdefine_hash_table_test): Store test and hash function as | |
5084 | symbol prop `hash-table-test'. | |
5085 | (make_hash_table): Add parameters user_test and user_hash. | |
5086 | ||
5087 | * window.c (set_window_buffer): Set window margins for tty | |
5088 | frames, too. | |
5089 | (Fset_window_margins): Ditto. | |
5090 | ||
5091 | * term.c (append_glyph): Use glyph area of iterator instead of | |
5092 | always TEXT_AREA. | |
5093 | ||
5094 | * dispnew.c (update_frame_1): Add left margin width to cursor | |
5095 | hpos. | |
5096 | (direct_output_for_insert): Ditto. | |
5097 | (direct_output_forward_char): Ditto. | |
5098 | ||
5099 | * dispnew.c (adjust_glyph_matrix): Set glyph matrix' top_line_p. | |
5100 | ||
5101 | * dispextern.h (struct glyph_matrix): Add top_line_p. | |
5102 | ||
5103 | 1999-07-16 Gerd Moellmann <gerd@gnu.org> | |
5104 | ||
5105 | * frame.h (FRAME_WINDOW_REDISPLAY_P): Removed. Use FRAME_WINDOW_P | |
5106 | instead. | |
5107 | ||
5108 | * fns.c (cmpfn_eq): Add hash code parameters. | |
5109 | (cmpfn_eql): Ditto. | |
5110 | (cmpfn_equal): Ditto, and compare hash codes before calling Fequal. | |
5111 | (cmpfn_user_defined): Likewise. | |
5112 | ||
5113 | 1999-07-15 Gerd Moellmann <gerd@gnu.org> | |
5114 | ||
5115 | * lisp.h (DEFAULT_REHASH_THRESHOLD): Changed to 0.8. | |
5116 | ||
5117 | * fns.c (maybe_resize_hash_table): Correct computation of | |
5118 | index vector size. | |
5119 | (make_hash_table): Ditto. | |
5120 | (Fmakehash): New. | |
5121 | ||
5122 | * xdisp.c (echo_area_display): Don't call redraw_garbaged_frames. | |
5123 | ||
5124 | * alloc.c (gc_sweep): Call sweep_weak_hash_tables. | |
5125 | (survives_gc_p): Make it externally visible. | |
5126 | (mark_object): Ditto. | |
5127 | ||
5128 | * fns.c (remove_hash_entry): Removed. | |
5129 | (sweep_weak_hash_tables): New. | |
5130 | ||
5131 | * print.c (print): Print more information about hash tables. | |
5132 | ||
5133 | * xfns.c (image_spec_hash): Removed. | |
5134 | (lookup_image): Use sxhash instead of image_spec_hash. | |
5135 | (image_spec_equal_p): Removed. | |
5136 | (lookup_image): Use Fequal instead of image_spec_equal_p. | |
5137 | ||
5138 | 1999-07-14 Gerd Moellmann <gerd@gnu.org> | |
5139 | ||
5140 | * lisp.h (P_): Moved to top of file. | |
5141 | ||
5142 | * fns.c (make_hash_table): Set new members. | |
5143 | ||
5144 | * alloc.c (mark_object): Mark hash table's user_hash_function. | |
5145 | Mark index vector for weak hash tables. | |
5146 | ||
5147 | * lisp.h (struct Lisp_Hash_Table): Add user_cmp_function, | |
5148 | user_hash_function, cmpfn, and hashfn. | |
5149 | ||
5150 | * fns.c (build_hash): Removed. | |
5151 | (hash_test): Removed. | |
5152 | (cmpfn_eq, cmpfn_eql, cmpfn_equal, cmpfn_user_defined): New. | |
5153 | (hashfn_eq, hashfn_eql, hashfn_equal, hashfn_user_defined): New. | |
5154 | ||
5155 | 1999-07-13 Gerd Moellmann <gerd@gnu.org> | |
5156 | ||
5157 | * alloc.c (survives_gc_p): New. | |
5158 | ||
5159 | * print.c (print): Add hash table handling. | |
5160 | ||
5161 | * alloc.c (mark_object): Add code to mark hash tables. | |
5162 | ||
5163 | * lisp.h (GC_HASH_TABLE_P): New. | |
5164 | ||
5165 | * emacs.c (main): Call init_fns. | |
5166 | ||
5167 | * fns.c (init_fns): New. | |
5168 | ||
5169 | * fns.c: Add hash table implementation. | |
5170 | ||
5171 | * lisp.h (PVEC_HASH_TABLE): New. | |
5172 | (struct Lisp_Hash_Table): New. | |
5173 | (XHASH_TABLE): New. | |
5174 | (XSET_HASH_TABLE): New. | |
5175 | (HASH_TABLE_P): New. | |
5176 | (CHECK_HASH_TABLE): New. | |
5177 | (DEFAULT_HASH_SIZE): New. | |
5178 | (DEFAULT_REHASH_THRESHOLD): New. | |
5179 | (DEFAULT_REHASH_SIZE): New. | |
5180 | ||
5181 | * xterm.c (x_draw_glyphs): Add parameters real_start and real_end. | |
5182 | (x_write_glyphs): Compute overwritten cursor using real start | |
5183 | and end positions of display. | |
5184 | (x_insert_glyphs): Ditto. | |
5185 | ||
5186 | 1999-07-10 Gerd Moellmann <gerd@gnu.org> | |
5187 | ||
5188 | * keyboard.c (read_char): Use message3_nolog to show help-echo. | |
5189 | ||
5190 | * dispnew.c (blank_row): Add y-position as parameter. Compute | |
5191 | visible height. | |
5192 | ||
5193 | * xdisp.c (next_element_from_string): Give padding spaces | |
5194 | a position of -1. | |
5195 | ||
5196 | * dispnew.c (adjust_glyph_matrix): Some work to support | |
5197 | marginals areas on tty frames in a future version. | |
5198 | (allocate_matrices_for_frame_redisplay): Ditto. | |
5199 | ||
5200 | * xdisp.c (display_line): At ZV, set glyph row's displays_text_p | |
5201 | to zero if number of glyphs in the row is <= 1. | |
5202 | ||
5203 | 1999-07-09 Gerd Moellmann <gerd@gnu.org> | |
5204 | ||
5205 | * dispnew.c (buffer_posn_from_coords): Take left marginal area | |
5206 | into account. | |
5207 | ||
5208 | * xdisp.c (handle_display_prop): Don't reset area if handing | |
5209 | a property from a string that came from a `display' property. | |
5210 | (handle_single_display_prop): Don't handle recursive `display' | |
5211 | properties. | |
5212 | (handle_single_display_prop): Handle some display property | |
5213 | forms for terminal frames. | |
5214 | (Qimage): Moved here from xfns.c. | |
5215 | ||
5216 | * dispextern.h (struct it): New field string_from_display_prop_p. | |
5217 | ||
5218 | * xterm.c (x_clip_to_row): Don't let clip_rect include top | |
5219 | line. | |
5220 | ||
5221 | 1999-07-08 Gerd Moellmann <gerd@gnu.org> | |
5222 | ||
5223 | * xdisp.c (handle_single_display_prop): Handle `:when FORM'. | |
5224 | ||
5225 | * window.c (set_window_buffer): Set window's vscroll to zero. | |
5226 | ||
5227 | * xdisp.c (QCwhen): New. | |
5228 | (display_prop_end): New. | |
5229 | (handle_single_display_prop): Use it. | |
5230 | (debug_method_add): Print buffer name if tracing. | |
5231 | (try_window_reusing_current_matrix): Compute visible height | |
5232 | of reused rows. Fix cursor position calculation in case of | |
5233 | top-line. | |
5234 | ||
5235 | * dispextern.h (struct redisplay_interface): Add parameter | |
5236 | cursor_on_p to update_window_end_hook. | |
5237 | ||
5238 | * xterm.c (x_update_window_end): Add parameter cursor_on_p. | |
5239 | ||
5240 | 1999-07-07 Gerd Moellmann <gerd@gnu.org> | |
5241 | ||
5242 | * xdisp.c (redisplay_internal): Ensure that redisplayinp_p | |
5243 | doesn't become negative when decrementing it. | |
5244 | ||
5245 | * eval.c (Fsignal): Reset redisplaying_p to zero. | |
5246 | ||
5247 | * xdisp.c (try_window_reusing_current_matrix): Call hooks | |
5248 | for window update. | |
5249 | (try_window_id): Ditto. | |
5250 | ||
5251 | * xterm.c (x_clear_end_of_line): Handle top-line correctly. | |
5252 | (x_scroll_run): Ditto. | |
5253 | (any_help_event_p): New. | |
5254 | (x_initialize): Set it to zero. | |
5255 | (XTread_socket): Clear help echo only if any_help_event_p. | |
5256 | ||
5257 | * xdisp.c (init_iterator): Set top_line_p. | |
5258 | (start_display): Use correct initial y if top-line is present. | |
5259 | (make_cursor_line_fully_visible): Bug fixes for top-line. | |
5260 | (try_scrolling): Ditto. | |
5261 | (try_window_reusing_current_matrix): Ditto. | |
5262 | ||
5263 | * dispextern.h (struct it): Add top_line_p. | |
5264 | ||
5265 | * dispnew.c (shift_glyph_matrix): Move some computations out | |
5266 | of the loop. | |
5267 | ||
5268 | * dispnew.c (margin_glyphs_to_reserve): Use NUMBERP and | |
5269 | XFLOATINT. | |
5270 | ||
5271 | 1999-07-06 Gerd Moellmann <gerd@gnu.org> | |
5272 | ||
5273 | * dispnew.c (update_frame_1): When setting cursor in echo area, | |
5274 | skip only over padding spaces at the end. | |
5275 | ||
5276 | * xfaces.c (realize_tty_face): Set face's font_name field to | |
5277 | "tty". | |
5278 | ||
5279 | * term.c (update_end): Turn cursor on only if selected window's | |
5280 | cursor_off_p flag is not set. | |
5281 | ||
5282 | 1999-07-05 Gerd Moellmann <gerd@gnu.org> | |
5283 | ||
5284 | * term.c (TS_cursor_visible): Renamed from TS_visual_mode. | |
5285 | (TS_cursor_normal): Renamed from TS_end_visual_mode. | |
5286 | (TS_cursor_invisible): New. | |
5287 | (term_init): Initialize TS_cursor_invisible. | |
5288 | (tty_hide_cursor): New. | |
5289 | (tty_show_cursor): New. | |
5290 | (update_end): Show tty cursor. | |
5291 | (update_begin): Hide tty cursor to prevent cursor flickering | |
5292 | during redisplays triggered by timers (stealth fontification). | |
5293 | ||
5294 | * keyboard.c (make_lispy_event) <TOOLBAR_EVENT>: Apply modifiers. | |
5295 | ||
5296 | * xterm.c (XTread_socket) [USE_MOTIF] <KeyPress>: Catch events | |
5297 | in scroll bars. | |
5298 | (x_handle_toolbar_click): Set modifier bits. | |
5299 | ||
5300 | 1999-07-04 Gerd Moellmann <gerd@gnu.org> | |
5301 | ||
5302 | * keyboard.c (kbd_store_ptr): Declare it as a volatile pointer | |
5303 | instead of a pointer to a volatile input_event. | |
5304 | (kbd_buffer_store_event): Remove volatile modifier from | |
5305 | declaration of local variable `sp'. | |
5306 | (Fdiscard_input): Don't cast when assigning kbd_store_ptr | |
5307 | to kbd_fetch_ptr. | |
5308 | ||
5309 | 1999-07-03 Gerd Moellmann <gerd@gnu.org> | |
5310 | ||
5311 | * xdisp.c (try_window_id): Set beg_unchanged and end_unchanged | |
5312 | only if buffer is modified. Return quickly if changes are | |
5313 | above window start. | |
5314 | ||
5315 | 1999-07-02 Gerd Moellmann <gerd@gnu.org> | |
5316 | ||
5317 | * dispextern.h (HSCROLL_WINDOWS): Removed. | |
5318 | ||
5319 | * xdisp.c (mark_window_display_accurate): Don't set | |
5320 | w->region_showing. | |
5321 | (redisplay_internal): Don't call redraw_garbaged_frames. | |
5322 | ||
5323 | 1999-07-01 Gerd Moellmann <gerd@gnu.org> | |
5324 | ||
5325 | * xdisp.c (echo_area_display): Don't display truncation marks | |
5326 | for messages because 20.4 doesn't do it either. | |
5327 | (redisplay_window): Case same window start. Instead of giving | |
5328 | up when cursor is partially visible, make it fully visible. | |
5329 | (mark_window_display_accurate): Some cleanup. Record window's | |
5330 | last cursor information. | |
5331 | (debug_method_add): Improved. | |
5332 | (redisplay_internal): Record last cursor info only if not | |
5333 | consider_all_windows_p. | |
5334 | ||
5335 | * dispnew.c (update_window): Update top line after scrolling. | |
5336 | (blank_row): Renamed from make_empty_enabled_row. | |
5337 | (increment_glyph_row_buffer_positions): Increment positions | |
5338 | in buffers, only. | |
5339 | ||
5340 | * window.c (Fcoordinates_in_window_p): Add top-line to doc | |
5341 | string. | |
5342 | ||
5343 | 1999-06-30 Gerd Moellmann <gerd@gnu.org> | |
5344 | ||
5345 | * dispnew.c (update_window): Check that updated row is visible. | |
5346 | ||
5347 | * xterm.c (x_draw_row_bitmaps): Check for invisible rows at | |
5348 | top of window differently. | |
5349 | ||
5350 | * xdisp.c (try_window_reusing_current_matrix): Don't do it | |
5351 | if region is showing. | |
5352 | ||
5353 | * dispnew.c (adjust_glyph_matrix): Check w->vscroll when | |
5354 | avoiding matrix reallocation. Set window_vscroll in matrix. | |
5355 | ||
5356 | * dispextern.h (struct glyph_matrix): Add member window_vscroll. | |
5357 | ||
26901792 DL |
5358 | * xdisp.c (debug_method_add): New. |
5359 | (debug_redisplay_method): Removed. | |
5360 | (try_window_reusing_current_matrix): Handle case where old | |
5361 | window start is the same as new window start. | |
5362 | ||
5363 | * dispextern.h (struct glyph_matrix) [GLYPH_DEBUG]: Make `method' | |
5364 | an array instead of a pointer. | |
5365 | ||
26901792 DL |
5366 | * xfns.c (Fx_show_tip): Undo previous change. |
5367 | ||
5368 | * xterm.c (x_append_glyph): Clear glyph->u.val. | |
5369 | ||
5370 | * dispextern.h (struct glyph): Increase size of face_id bit-field | |
5371 | for CHAR_GLYPH to 12. | |
5372 | ||
5373 | 1999-06-29 Gerd Moellmann <gerd@gnu.org> | |
5374 | ||
5375 | * xfaces.c (x_charset_registry): Make it externally visible. | |
5376 | ||
5377 | 1999-06-28 Gerd Moellmann <gerd@gnu.org> | |
5378 | ||
5379 | * dispnew.c (update_window): Use mode_line_p flag of rows | |
5380 | instead of WINDOW_WANTS_MODELINE_P. | |
5381 | ||
5382 | * xterm.c (clear_mouse_face): Make externally visible. | |
5383 | ||
5384 | * xfns.c (Fx_show_tip): Clear mouse face before showing tip. | |
5385 | ||
5386 | * xterm.c (expose_line): Handle exposure of top-lines. | |
5387 | ||
5388 | * xterm.c (XTframe_up_to_date): Don't call note_mouse_highlight | |
5389 | if mouse_face_mouse_frame is null. | |
5390 | ||
5391 | * xdisp.c (redisplay_window): If window is echo_area_window, | |
5392 | and update_mode_line is set, update menubar and toolbar. | |
5393 | ||
5394 | * dispnew.c (space_glyph): Set its charpos to -1. | |
5395 | (update_frame_1): Ignore trailing padding spaces. | |
5396 | ||
5397 | * xdisp.c (next_element_from_c_string): Set position of padding | |
5398 | glyphs to -1. | |
5399 | ||
5400 | 1999-06-27 Gerd Moellmann <gerd@gnu.org> | |
5401 | ||
5402 | * xfns.c (x_laplace_read_row): Use XQueryColors instead of | |
5403 | XQueryColor. | |
5404 | ||
5405 | * xdisp.c (display_menu_bar): Remove unwarranted assertion. | |
5406 | (set_cursor_from_row): Skip over glyphs having a null object at | |
5407 | the start of rows. | |
5408 | (insert_left_trunc_glyphs): Use charpos < 0 to indicate truncation | |
5409 | glyphs. | |
5410 | (handle_invisible_prop): Compute next change only when needed. | |
5411 | (handle_face_prop): Don't correct DEFAULT_FACE_ID if in the mode | |
5412 | line. | |
5413 | ||
5414 | 1999-06-26 Gerd Moellmann <gerd@gnu.org> | |
5415 | ||
5416 | * xrdb.c (x_load_resources): Don't set resource for double-click | |
5417 | time. | |
5418 | ||
5419 | * xdisp.c (try_window_id): Return quickly if all changes are | |
5420 | below the window's current matrix end. | |
5421 | ||
5422 | * dispextern.h (MATRIX_ROW_PARTIALLY_VISIBLE_P): Remove window | |
5423 | parameter. | |
5424 | ||
5425 | * xdisp.c (try_window_reusing_current_matrix): Set no_scrolling_p | |
5426 | in desired not in current matrix. | |
5427 | (try_window_reusing_current_matrix): Rotate matrices starting | |
5428 | at start_vpos instead of 0. | |
5429 | ||
5430 | * xterm.c (expose_window): Use window_text_bottom_y. | |
5431 | (fast_find_position): Ditto. | |
5432 | ||
5433 | * xdisp.c (redisplay_window): Use window_text_bottom_y. | |
5434 | (try_window_reusing_current_matrix): Ditto. | |
5435 | (get_last_unchanged_at_beg_row): Ditto. | |
5436 | (init_iterator): Ditto. | |
5437 | ||
5438 | * dispnew.c (allocate_matrices_for_window_redisplay): Allocate one | |
5439 | more row. | |
5440 | (check_matrix_invariants): Use window_text_bottom_y. | |
5441 | (update_window): Ditto. | |
5442 | (scrolling_window): Ditto. | |
5443 | ||
5444 | * xdisp.c (window_text_bottom_y): New. | |
5445 | ||
5446 | 1999-06-25 Gerd Moellmann <gerd@gnu.org> | |
5447 | ||
5448 | * xterm.c (XTread_socket): Set mouse_face_frame to zero after | |
5449 | clearing mouse face. | |
5450 | (XTread_socket) <EnterNotify> [LESSTIF_VERSION]: If | |
5451 | event.xcrossing.focus is not set, and focus is in the menu bar, | |
5452 | set focus frame as if event.xcrossing.focus were set. | |
5453 | ||
5454 | 1999-06-24 Gerd Moellmann <gerd@gnu.org> | |
5455 | ||
5456 | * keyboard.c (make_lispy_event): Handle mouse on top lines. | |
5457 | * keyboard.c (make_lispy_movement): Ditto. | |
5458 | ||
5459 | * window.c (coordinates_in_window): Return 4 if on top line. | |
5460 | (Fcoordinates_in_window_p): Return `top-line' if on top line. | |
5461 | ||
5462 | * xdisp.c (window_box_height): Subtract top line height. | |
5463 | (window_box): Add top line height to top y position if top line | |
5464 | exists. | |
5465 | (init_iterator): If base_face_id is TOP_LINE_FACE_ID, set row to | |
5466 | the top line row of the window. Set initial y-position to | |
5467 | window's top line height plus delta. | |
5468 | (start_display): Choose start glyph row depending on whether | |
5469 | window has a top line. | |
5470 | (try_scrolling): Take top line height into account for aggressive | |
5471 | scrolling. | |
5472 | (compute_window_start_on_continuation_line): Take top line into | |
5473 | account. | |
5474 | (redisplay_window): Ditto. If top line height has changed, | |
5475 | trigger a new redisplay. | |
5476 | (try_window_reusing_current_matrix): Take top line into account. | |
5477 | (find_last_row_displaying_text): Ditto. | |
5478 | (get_last_unchanged_at_beg_row): DItto. | |
5479 | (try_window_id): Ditto. | |
5480 | (compute_line_metrics): Ditto. | |
5481 | ||
5482 | * dispnew.c (shift_glyph_matrix): Compute visible row height | |
5483 | taking top line of window into account. | |
5484 | (update_window): Update top line. If scrolling_window detects | |
5485 | that all rows are equal, only set cursor. | |
5486 | (update_window_line): Call after_update_window_line_hook if | |
5487 | mode_line_p flag of rows has changed. | |
5488 | (scrolling_window): Add parameter top_line_p. Return -1 if | |
5489 | all rows are equal. | |
5490 | (mode_line_string): Add parameter mode_line_p. Handle strings | |
5491 | in top lines. | |
5492 | ||
5493 | * dispextern.h (MATRIX_TOP_LINE_ROW): New. | |
5494 | (MATRIX_FIRST_TEXT_ROW): New. | |
5495 | (MATRIX_ROW_PARTIALLY_VISIBLE_P): Use row's visible_height. | |
5496 | (MATRIX_ROW_PARTIALLY_VISIBLE_AT_TOP_P): New. | |
5497 | (MATRIX_ROW_PARTIALLY_VISIBLE_AT_BOTTOM_P): New. | |
5498 | (MATRIX_TOP_LINE_HEIGHT): New. | |
5499 | (CURRENT_MODE_LINE_HEIGHT): Use estimate_mode_line_height. | |
5500 | (CURRENT_TOP_LINE_HEIGHT): New. | |
5501 | (DESIRED_TOP_LINE_HEIGHT): New. | |
5502 | (WINDOW_DISPLAY_TOP_LINE_HEIGHT): New. | |
5503 | (WINDOW_DISPLAY_HEIGHT_NO_MODE_LINE): Replaces | |
5504 | WINDOW_DISPLAY_TEXT_AREA_PIXEL_HEIGHT. | |
5505 | (WINDOW_DISPLAY_TEXT_HEIGHT): New. | |
5506 | ||
5507 | * xterm.c (x_after_update_window_line): Don't draw bitmaps for top | |
5508 | lines. | |
5509 | (x_draw_row_bitmaps): Take top line into account when clearing | |
5510 | bitmap area. | |
5511 | (x_estimate_mode_line_height): Replacement for | |
5512 | x_frame_mode_line_height. | |
5513 | (x_get_glyph_string_clip_rect): Take top line into account. | |
5514 | (x_clear_end_of_line): Ditto. | |
5515 | (note_mode_line_highlight): Add parameter mode_line_p. Handle | |
5516 | top lines. | |
5517 | (note_mouse_highlight): Call note_mode_line_highlight for top lines. | |
5518 | (x_erase_phys_cursor): Take top line into account. | |
5519 | ||
5520 | * xdisp.c (window_box_height): Subtract top line height if | |
5521 | window wants a top line. | |
5522 | (display_mode_lines): New. | |
5523 | (redisplay_window): Call it. | |
5524 | (display_mode_line): Add parameters face_id and format. | |
5525 | ||
5526 | * dispextern.h (CURRENT_TOP_LINE_HEIGHT): New. | |
5527 | (MATRIX_TOP_LINE_HEIGHT): New. | |
5528 | ||
5529 | * xterm.c (x_frame_mode_line_height): Add parameter face_id. | |
5530 | ||
5531 | * term.c (estimate_mode_line_height): Renamed from | |
5532 | frame_mode_line_height. Add parameter face_id. | |
5533 | (estimate_mode_line_height_hook): Renamed from | |
5534 | frame_mode_line_height_hook. | |
5535 | (produce_special_glyphs_hook): Removed. | |
5536 | (produce_glyphs_hook): Removed. | |
5537 | ||
5538 | 1999-06-23 Gerd Moellmann <gerd@gnu.org> | |
5539 | ||
5540 | * dispextern.h (WINDOW_WANTS_TOP_LINE_P): New. | |
5541 | (struct glyph_row): Add mode_line_p. | |
5542 | ||
5543 | * xfaces.c (realize_basic_faces): Realize face `top-line'. | |
5544 | (Qtop_line): New. | |
5545 | (syms_of_xfaces): Initialize Qtop_line. | |
5546 | ||
5547 | * dispextern.h (TOP_LINE_FACE_ID): New. | |
5548 | ||
5549 | * buffer.c (init_buffer_once): Set default for | |
5550 | top_line_format to nil. | |
5551 | (init_buffer_once): Init top_line_format. | |
5552 | (default-top-line-format): New. | |
5553 | (top-line-format): New buffer-local variable. | |
5554 | ||
5555 | * buffer.h: Add top_line_format. | |
5556 | ||
5557 | * xdisp.c (overlay_arrow_changed_p): Removed because not used. | |
5558 | ||
5559 | 1999-06-17 Dave Love <fx@gnu.org> | |
5560 | ||
5561 | * xfns.c: Move the PNG section before the JPEG one to avoid | |
5562 | problems surrounding setjmp.h/png.h on GNU/Linux. | |
5563 | ||
5564 | 1999-06-17 Gerd Moellmann <gerd@gnu.org> | |
5565 | ||
5566 | * xfns.c (x_kill_gs_process): Don't free colors. | |
5567 | ||
5568 | 1999-06-17 Dave Love <fx@gnu.org> | |
5569 | ||
5570 | * s/gnu-linux.h: Zap spurious ~. | |
5571 | ||
5572 | 1999-06-16 Gerd Moellmann <gerd@gnu.org> | |
5573 | ||
5574 | * xfns.c (gif_load): Improve multi-image support. | |
5575 | ||
5576 | 1999-06-15 Gerd Moellmann <gerd@gnu.org> | |
5577 | ||
5578 | * xfns.c (gif_load): Support multi-image files. | |
5579 | ||
5580 | * Makefile.in (LIBGIF): Use libungif. | |
5581 | ||
5582 | * configure.in (HAVE_GIF): Use libungif instead of libgif | |
5583 | because the former doesn't contain patented compression code. | |
5584 | ||
5585 | * xdisp.c (compute_window_start_on_continuation_line): Don't | |
5586 | do it if line start is too far away from window start. | |
5587 | ||
5588 | 1999-06-14 Gerd Moellmann <gerd@gnu.org> | |
5589 | ||
5590 | * buffer.c (init_buffer_once): Set buffer_local_flags for | |
5591 | scroll_*_aggressively. | |
5592 | (syms_of_buffer): Add DEFVAR_PER_BUFFER for scroll-*-aggressively. | |
5593 | (init_buffer_once): Set defaults for these variables. | |
5594 | (syms_of_buffer): Add default-scroll-*-aggressively. | |
5595 | ||
5596 | * buffer.h (scroll_up_aggressively): New. | |
5597 | (scroll_down_aggressively): New. | |
5598 | ||
5599 | * Makefile.in (LIBPNG): Add -lz -lm in case we're linking with | |
5600 | a static PNG library. | |
5601 | ||
5602 | * configure.in (HAVE_PNG): Add -lz -lm when checking for PNG lib | |
5603 | in case it's a static library. | |
5604 | ||
5605 | * Makefile.in (ctagsfiles): Split so that files starting | |
5606 | with an `x' are found before files starting with `w32'. | |
5607 | (ctagsfiles1): New. | |
5608 | (ctagsfiles2): New. | |
5609 | (TAGS): Use ctagsfiles[12] instead of ctagsfiles. | |
5610 | ||
5611 | * xdisp.c (compute_window_start_on_continuation_line): New. | |
5612 | (redisplay_window): Use it. | |
5613 | (INFINITY): New. | |
5614 | (reseat_to_string): Use it. | |
5615 | (hscroll_window_tree): Ditto. | |
5616 | (compute_window_start_on_continuation_line): Ditto. | |
5617 | (redisplay_window): Don't force display with a new window start. | |
5618 | ||
5619 | 1999-06-06 Gerd Moellmann <gerd@gnu.org> | |
5620 | ||
5621 | * xfns.c (x_report_frame_params): Don't report `outer-window-id' | |
5622 | if widget not present. | |
5623 | ||
5624 | * xdisp.c (prepare_menu_bars): Ignore tooltip frame. | |
5625 | ||
5626 | 1999-06-04 Gerd Moellmann <gerd@gnu.org> | |
5627 | ||
5628 | * xfaces.c (recompute_basic_faces)[GLYPH_DEBUG]: Check return | |
5629 | value of realize_basic_faces. | |
5630 | (load_face_font_or_fontset): Store full font name in face. | |
5631 | (realize_default_face): Use full font name. | |
5632 | ||
26901792 DL |
5633 | * xterm.c (x_produce_glyphs): Set member char_to_display. |
5634 | (x_append_glyph): Store char_to_display in glyphs. | |
5635 | ||
5636 | * dispextern.h (struct it): Add char_to_display. | |
5637 | ||
5638 | * xfns.c (x_set_font): Don't call face-set-after-frame-default | |
5639 | if faces haven't been initialized. | |
5640 | (Fx_create_frame): Call face-set-after-frame-default after | |
5641 | faces have been initialized, and widget has been created. | |
5642 | ||
5643 | * puresize.h (BASE_PURESIZE): Increased. | |
5644 | ||
5645 | 1999-06-01 Gerd Moellmann <gerd@gnu.org> | |
5646 | ||
5647 | * xfaces.c (set_lface_from_font_name): Add parameter force_p. | |
5648 | (Finternal_set_lisp_face_attribute): If frame is t when | |
5649 | :font attribute is set, use the selected frame. | |
5650 | (clear_face_cache): Add parameter clear_fonts_p. | |
5651 | (Fclear_face_cache): Add optional parameter thorougly. | |
5652 | ||
5653 | * xfaces.c (face_numeric_value): Return -1 if symbol is not | |
5654 | in table. | |
5655 | (Fclear_face_cache): New. | |
5656 | (choose_face_fontset_font): If fontset doesn't contain font | |
5657 | pattern for the given charset, use CHARSET_ASCII. | |
5658 | (Finternal_set_lisp_face_attribute): Fix handling of nil | |
5659 | stipple attribute. | |
5660 | (Finternal_set_lisp_face_attribute): Fix handling of changing | |
5661 | font-related face attributes of the default face. | |
5662 | (set_lface_from_font_name): Set only attributes that aren't | |
5663 | specified. | |
5664 | ||
5665 | 1999-05-31 Gerd Moellmann <gerd@gnu.org> | |
5666 | ||
5667 | * xfaces.c (SCALABLE_FONTS): Define this to enable scalable | |
5668 | font support. | |
5669 | (Vscalable_fonts_allowed) [SCALABLE_FONTS]: New. | |
5670 | (x_face_list_fonts): Add parameter scalable_fonts_p. Handle | |
5671 | scalable fonts depending on the setting of SCALABLE_FONTS. | |
5672 | (first_font_matching): List more than one font to find the | |
5673 | first non-scalable matching font. | |
5674 | (sorted_font_list): Let x_face_list_fonts return scalable fonts | |
5675 | depending on SCALABLE_FONTS. | |
5676 | (better_font_p): New parameter compare_pt_p. If zero, don't | |
5677 | compare point sizes of fonts. | |
5678 | (exact_face_match_p) [SCALABLE_FONTS]: New. | |
5679 | (build_scalable_font_name) [SCALABLE_FONTS]: New. | |
5680 | (may_use_scalable_font_p) [SCALABLE_FONTS]: New. | |
5681 | (best_matching_font) [SCALABLE_FONTS]: Handle scalable fonts. | |
5682 | (syms_of_xfaces): Add scalable-fonts-allowed. | |
5683 | ||
5684 | 1999-05-26 Gerd Moellmann <gerd@gnu.org> | |
5685 | ||
5686 | * xfns.c (png_load): Let PNG lib handle gamma. Construct | |
5687 | mask only if image contains simple transparency information. | |
5688 | Otherwise, combine image with frame background color. | |
5689 | ||
5690 | * configure.in (--with-png, HAVE_PNG): New. | |
5691 | ||
5692 | * config.in (HAVE_PNG): New. | |
5693 | ||
5694 | * Makefile.in: Add PNG library. | |
5695 | ||
5696 | * xfns.c: Add PNG support. | |
5697 | ||
5698 | 1999-05-25 Gerd Moellmann <gerd@gnu.org> | |
5699 | ||
5700 | * xdisp.c (init_xdisp): Initialize echo_area_message and | |
5701 | previous_echo_area_message to nil. | |
5702 | ||
5703 | * keyboard.c (read_char): Rename local variable echo_area_message | |
5704 | because it shadows the global one. | |
5705 | ||
5706 | 1999-05-05 Gerd Moellmann <gerd@gnu.org> | |
5707 | ||
5708 | * xterm.c (note_mode_line_highlight): Restructured. | |
5709 | ||
5710 | * window.c (coordinates_in_window): Handle windows that don't have | |
5711 | a mode line because their buffer's mode-line-format is nil. | |
5712 | Recognize the mode line under x positions that correspond to | |
5713 | flags areas and left scroll bar. | |
5714 | ||
5715 | 1999-05-02 Dave Love <fx@gnu.org> | |
5716 | ||
5717 | * xterm.c (note_mouse_highlight): Separate help-echo processing | |
5718 | from check on mouse-face so that it works generally. | |
5719 | ||
5720 | 1999-04-21 Gerd Moellmann <gerd@gnu.org> | |
5721 | ||
5722 | * sound.c (Fplay_sound): Run hook play-sound-hook. | |
5723 | (Qplay_sound_hook): New. | |
5724 | ||
5725 | 1999-04-20 Gerd Moellmann <gerd@gnu.org> | |
5726 | ||
5727 | * xdisp.c (update_echo_area): Handle echo_area_message. | |
5728 | ||
5729 | 1999-04-19 Gerd Moellmann <gerd@gnu.org> | |
5730 | ||
5731 | * editfns.c (Fmessage): Use message3. | |
5732 | ||
5733 | * print.c (printchar): Set echo_area_message to nil. | |
5734 | (strout): Ditto. | |
5735 | ||
5736 | * minibuf.c (read_minibuf): Reset echo message strings to nil. | |
5737 | (Fminibuffer_completion_help): Ditto. | |
5738 | ||
5739 | * keyboard.c (cmd_error_internal): Set echo_areA_message. | |
5740 | (command_loop_1): Test echo_areA_message. | |
5741 | (read_char): Ditto. | |
5742 | (record_menu_key): Set echo_area_message to nil. | |
5743 | (Fexecute_extended_command): Test echo_area_message. | |
5744 | (Fexecute_extended_command): Handle echo_area_message. | |
5745 | ||
5746 | * fileio.c (Fdo_auto_save): Handle the case that echo_area_message | |
5747 | is set. | |
5748 | ||
5749 | * editfns.c (Fcurrent_message): If echo_area_message is set, | |
5750 | return a substring of that string. | |
5751 | ||
5752 | * dispnew.c (direct_output_for_insert): Test echo_area_message | |
5753 | in addition to echo_area_glyphs. | |
5754 | (set_window_cursor_after_update): Ditto. | |
5755 | (update_frame_1): Ditto. | |
5756 | ||
5757 | * alloc.c (Fgarbage_collect): Use message3_nolog to display | |
5758 | old Lisp message string. | |
5759 | ||
5760 | * xdisp.c (echo_area_message): New. | |
5761 | (previous_echo_area_message): New. | |
5762 | (syms_of_xdisp): Initialize and staticpro new variables. | |
5763 | (echo_area_display): Display echo_area_message if set. | |
5764 | (message2_nolog): Set echo_area_message and | |
5765 | previous_echo_area_message. | |
5766 | (echo_area_display): Set previous_echo_area_message. | |
5767 | (redisplay_internal): Display echo area if echo_area_message | |
5768 | or previous_echo_area_message are set. | |
5769 | (redisplay_preserve_echo_area): Test/set echo_area_message and | |
5770 | previous_echo_area_message. | |
5771 | (redisplay_window): Test echo_area_message. | |
5772 | (message3_nolog): New. | |
5773 | (message3): New. | |
5774 | ||
5775 | * editfns.c (Fformat): Add text properties to the result string | |
5776 | from properties of the format string and properties of string | |
5777 | arguments. | |
5778 | ||
5779 | * textprop.c (text_property_list): New. | |
5780 | (add_text_properties_from_list): New. | |
5781 | (extend_property_ranges): New. | |
5782 | ||
5783 | 1999-03-29 Gerd Moellmann <gerd@gnu.org> | |
5784 | ||
5785 | * xfaces.c (Qraised, Qsunken, QCshadow): Removed. | |
5786 | (QCline_width, QCstyle, Qpressed_button, Qreleased_button): New. | |
5787 | Use these symbols for the box face attribute instead of the | |
5788 | removed ones. | |
5789 | ||
5790 | 1999-03-12 Gerd Moellmann <gerd@gnu.org> | |
5791 | ||
5792 | * xfaces.c (realize_tty_face): Don't set alt_char_p of face. | |
5793 | Correct wrong test for slant. | |
5794 | ||
5795 | 1999-03-10 Gerd Moellmann <gerd@gnu.org> | |
5796 | ||
5797 | * xfaces.c: Use `unspecified' for unspecified face attributes, | |
5798 | use t and nil for on/off. | |
5799 | ||
5800 | 1999-03-06 Gerd Moellmann <gerd@gnu.org> | |
5801 | ||
5802 | * buffer.c (syms_of_buffer): Extend doc string of | |
5803 | mode-line-format. | |
5804 | ||
5805 | * xfaces.c (x_face_list_fonts): New parameter try_alternatives_p. | |
5806 | (first_font_matching): New. | |
5807 | (set_lface_from_font_name): Use it if font name is a pattern. | |
5808 | (font_field_wildcard_p): Removed. | |
5809 | ||
5810 | * dispnew.c (shift_glyph_matrix): Add `window' parameter. | |
5811 | Recompute visible height of rows. | |
5812 | ||
5813 | * xterm.c (note_mouse_highlight): Reorder code for help-echo. | |
5814 | Don't accept non-strings for help-echo from overlays. | |
5815 | ||
5816 | 1999-03-04 Dave Love <fx@gnu.org> | |
5817 | ||
5818 | * xterm.c (note_mouse_highlight): Check overlays for help-text | |
5819 | property. | |
5820 | (XTread_socket): Fix compiler warning. | |
5821 | ||
5822 | 1999-03-05 Gerd Moellmann <gerd@gnu.org> | |
5823 | ||
5824 | * xterm.c (note_mouse_highlight): Don't restrict number of | |
5825 | overlay to 10. Call overlays_at so that it doesn't try to | |
5826 | extend the vector. | |
5827 | ||
5828 | * xdisp.c (compute_line_metrics): Compute glyph row's visible | |
5829 | height. | |
5830 | ||
5831 | * dispnew.c (row_equal_p): Compare visible row height, only. | |
5832 | (update_text_area): Draw whole line if visible heights of | |
5833 | rows differ. | |
5834 | (update_window_line): Call after_update_window_line_hook | |
5835 | if visible row height has changed. | |
5836 | ||
5837 | * dispextern.h (MATRIX_ROW_VISIBLE_HEIGHT): Removed. | |
5838 | (struct glyph_row): New member visible_height. | |
5839 | ||
5840 | * xfaces.c (font_field_wildcard_p): New. | |
5841 | (set_lface_from_font_name): Remove parameter force_p. Accept | |
5842 | font names containing wildcards. | |
5843 | ||
5844 | 1999-03-04 Gerd Moellmann <gerd@gnu.org> | |
5845 | ||
5846 | * xterm.c (x_after_update_window_line): Clear internal border | |
5847 | when windows_or_buffers_changed. | |
5848 | ||
5849 | * dispextern.h (WINDOW_WANTS_MODELINE_P): Return zero if window's | |
5850 | buffer has a nil mode_line_format. | |
5851 | ||
5852 | 1999-03-03 Gerd Moellmann <gerd@gnu.org> | |
5853 | ||
5854 | * xterm.c (x_setup_relief_colors): Use either background color | |
5855 | or specified color. | |
5856 | ||
5857 | * xfaces.c (realize_x_face): Set face->use_box_color_for_shadows_p. | |
5858 | ||
5859 | * dispextern.h (struct face): Add use_box_color_for_shadows_p. | |
5860 | ||
5861 | * xterm.c (x_draw_box_rect): New. | |
5862 | (x_draw_glyph_string_box): Renamed from | |
5863 | x_draw_glyph_string_relief. Call x_draw_box_rect. | |
5864 | ||
5865 | * xfns.c (QCrelief): New. | |
5866 | (syms_of_xfns): Initialize it. | |
5867 | ||
5868 | * dispextern.h (struct glyph): Rename left_shadow_p to | |
5869 | left_box_line_p, right_shadow_p to right_box_line_p. | |
5870 | (MAX_RELIEF_THICKNESS): Removed. | |
5871 | (struct it): Rename members having `relief' in their names | |
5872 | to contain `box' instead. | |
5873 | ||
5874 | * xfaces.c (realize_x_face): Handle new box attribute values. | |
5875 | (QCrelief, Qbox): Removed. | |
5876 | (QCshadow, QCcolor, Qraised, Qsunken): New. | |
5877 | (syms_of_xfaces): Initialize new symbols. | |
5878 | ||
5879 | 1999-03-02 Gerd Moellmann <gerd@gnu.org> | |
5880 | ||
5881 | * dispextern.h (LFACE_RELIEF_INDEX): Removed. | |
5882 | ||
5883 | * xfaces.c (LFACE_RELIEF): Removed. | |
5884 | (merge_face_vector_with_property): Remove handling of `:relief'. | |
5885 | (Finternal_set_lisp_face_attribute): Ditto. | |
5886 | (Finternal_set_lisp_face_attribute_from_resource): Ditto. | |
5887 | (Finternal_get_lisp_face_attribute): Ditto. | |
5888 | (realize_default_face): Ditto. | |
5889 | (lface_hash): Don't compute hash from relief. | |
5890 | ||
5891 | * dispextern.h (struct face): Replace member `relief' by | |
5892 | `box_line_width'. Add member `box'. | |
5893 | (face_box_type): New. | |
5894 | ||
5895 | * xterm.c (x_produce_glyphs): If face has overline, add overline | |
5896 | thickness + 1 to ascent. | |
5897 | ||
5898 | 1999-03-01 Gerd Moellmann <gerd@gnu.org> | |
5899 | ||
5900 | * xterm.c (x_draw_glyph_string): Draw underline, overline, | |
5901 | strike-through, and boxes. | |
5902 | (x_draw_glyph_string_underline): Removed. | |
5903 | ||
5904 | * xfaces.c (QCoverline, QCstrike_through, QCbox): New. | |
5905 | (Qoverline, Qstrike_through, Qbox): New. | |
5906 | (syms_of_xfaces): Define these symbols. | |
5907 | (check_lface_attrs): Add checks for overline, strike-through, | |
5908 | and box. | |
5909 | (Finternal_set_lisp_face_attribute): Set new attributes. | |
5910 | (LFACE_OVERLINE, LFACE_STRIKE_THROUGH, LFACE_BOX): New. | |
5911 | (load_color): Handle new attributes. | |
5912 | (realize_x_face): Ditto. | |
5913 | (merge_face_vector_with_property): Ditto. | |
5914 | (free_face_colors): Ditto. | |
5915 | (Finternal_set_lisp_face_attribute_from_resource): Ditto. | |
5916 | (Finternal_get_lisp_face_attribute): Ditto. | |
5917 | (Finternal_lisp_face_attribute_values): Ditto. | |
5918 | ||
5919 | * dispextern.h (lface_attribute_index): Add enumerators for | |
5920 | overstrike, strike-through, and box. | |
5921 | (struct face): Add members for overline, strike-through, and | |
5922 | box. | |
5923 | ||
5924 | 1999-02-17 Dave Love <fx@gnu.org> | |
5925 | ||
5926 | * s/gnu-linux.h s/gnu.h s/irix5-0.h s/netbsd.h s/sco4.h s/sco5.h | |
5927 | s/template.h (NARROWPROTO): Define on the basis of relevant X cf | |
5928 | files. | |
5929 | ||
5930 | 1999-02-16 Gerd Moellmann <gerd@gnu.org> | |
5931 | ||
5932 | * keyboard.c (toolbar_items): Call access_keymap with third | |
5933 | parameter 1, so that we don't get inherited toolbar item | |
5934 | definitions. | |
5935 | ||
5936 | * xdisp.c (redisplay_internal): In optimization 1, don't decrement | |
5937 | the window end vpos when in empty first line of window. | |
5938 | ||
5939 | 1999-02-15 Gerd Moellmann <gerd@gnu.org> | |
5940 | ||
5941 | * xfaces.c (set_font_frame_param): New. | |
5942 | (Finternal_set_lisp_face_attribute): Call it. | |
5943 | ||
5944 | Sun Feb 14 10:54:02 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp> | |
5945 | ||
5946 | * xfaces.c (Finternal_set_lisp_face_attribute_from_resource): | |
5947 | Accept specifications of color for underline. | |
5948 | ||
5949 | 1999-02-13 Gerd Moellmann <gerd@gnu.org> | |
5950 | ||
5951 | * xfaces.c (Finternal_set_lisp_face_attribute): If parameter | |
5952 | `frame' is t, operate on face defaults for new frames. If it | |
5953 | is nil, operate on the selected frame. | |
5954 | ||
5955 | 1999-02-12 Gerd Moellmann <gerd@gnu.org> | |
5956 | ||
5957 | * dispnew.c (check_matrix_invariants): Put it in #if 0. | |
5958 | (update_window): Put the call to check_matrix_invariants in #if 0. | |
5959 | ||
5960 | Sun Feb 7 09:58:49 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp> | |
5961 | ||
5962 | * dispextern.h: Remove all else block of UNDERLINE_COLOR. | |
5963 | Remove definition of UNDERLINE_COLOR. | |
5964 | ||
5965 | Mon Jan 4 04:43:41 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp> | |
5966 | ||
5967 | * xfaces.c (free_face_colors): Free the color for underline. | |
5968 | ||
5969 | * xterm.c (x_draw_glyph_string_underline): Set the color for underline | |
5970 | to the GC. | |
5971 | ||
5972 | Sun Jan 3 08:41:10 1999 Masatake Yamato <masata-y@is.aist-nara.ac.jp> | |
5973 | ||
5974 | * dispextern.h (UNDERLINE_COLOR): Defined. | |
5975 | (struct face): Added two new members. | |
5976 | underline_color, underline_defaulted_p. | |
5977 | ||
5978 | * xfaces.c (merge_face_vector_with_property): | |
5979 | (check_lface_attrs): Accept the string value for underline. | |
5980 | (Finternal_set_lisp_face_attribute): Likewise. | |
5981 | ||
5982 | * xfaces.c (load_color): Change the last argument type to enum | |
5983 | lface_attribute_index from int. And addec code for underling coloring. | |
5984 | (load_face_colors): Pass LFACE_*_INDEX to load_color. | |
5985 | ||
5986 | 1999-02-12 Gerd Moellmann <gerd@gnu.org> | |
5987 | ||
5988 | * xfns.c (Fx_image_header): Removed. | |
5989 | ||
5990 | 1999-02-07 Gerd Moellmann <gerd@gnu.org> | |
5991 | ||
5992 | * xterm.c: Don't include <bitmaps/gray>. | |
5993 | (x_term_init): Use gray_bitmap_width and gray_bitmap_height. | |
5994 | ||
5995 | * xfns.c (Fx_image_header): Add missing `\n\'. | |
5996 | (gray_bitmap_width, gray_bitmap_height, gray_bitmap_bits): New. | |
5997 | ||
5998 | 1999-02-01 Gerd Moellmann <gerd@gnu.org> | |
5999 | ||
6000 | * xterm.c (x_scroll_bar_create): Set background pixel from | |
6001 | specified scroll bar color. | |
6002 | (x_scroll_bar_set_handle): Use scroll bar foreground color. | |
6003 | ||
6004 | * xfns.c (x_set_scroll_bar_foreground): Remove all scroll bars. | |
6005 | (x_set_scroll_bar_background): Ditto. | |
6006 | ||
6007 | * xterm.c (x_create_toolkit_scroll_bar): Set scroll bar colors. | |
6008 | ||
6009 | * xfns.c (x_default_scroll_bar_color_parameter): New. | |
6010 | (Fx_create_frame): Call it. | |
6011 | ||
6012 | 1999-01-31 Gerd Moellmann <gerd@gnu.org> | |
6013 | ||
6014 | * xfns.c (Fx_create_frame): Initialize scroll bar pixel color | |
6015 | values in x_output structure. | |
6016 | (Qscroll_bar_foreground, Qscroll_bar_background): New. | |
6017 | (syms_of_xfns): Initialize these symbols. | |
6018 | ||
6019 | * xterm.h (struct x_output): Add scroll bar pixel colors. | |
6020 | ||
6021 | * xfns.c (x_frame_parms): Add entries for scroll bar colors. | |
6022 | (x_set_scroll_bar_foreground): New. | |
6023 | (x_set_scroll_bar_background): New. | |
6024 | ||
26901792 DL |
6025 | 1999-01-12 Gerd Moellmann <gerd@gnu.org> |
6026 | ||
6027 | * xdisp.c (handle_single_display_prop): New. | |
6028 | (handle_display_prop): Call it. | |
6029 | (handle_raise_prop): Removed. | |
6030 | (handle_height_prop): Removed. | |
6031 | (handle_space_width_prop): Removed. | |
6032 | (handle_face_prop): Remove handling of raised text. | |
6033 | (handle_display_prop): Do it here. | |
6034 | ||
6035 | * dispextern.h (DISPLAY_PROP_IDX): Replaces GLYPH_PROP_IDX. | |
6036 | (RAISE_PROP_IDX): Removed. | |
6037 | (HEIGHT_PROP_IDX): Removed. | |
6038 | (SPACE_WIDTH_PROP_IDX): Removed. | |
6039 | ||
6040 | * xdisp.c (Qdisplay): Replaces Qglyph. | |
6041 | (handle_display_prop): Formerly handle_glyph_prop. | |
6042 | ||
6043 | 1999-01-11 Gerd Moellmann <gerd@gnu.org> | |
6044 | ||
6045 | * xdisp.c (reseat_to_string): Set position in display vector to -1. | |
6046 | (handle_stop): Set position in display vector to -1. Don't | |
6047 | check overlay strings when set up to deliver characters from a | |
6048 | display vector. | |
6049 | (set_iterator_to_next): At the end of a run of characters from a | |
6050 | display vector, check whether the display vector display replaces | |
6051 | the display of a character. | |
6052 | ||
6053 | 1999-01-05 Gerd Moellmann <gerd@gnu.org> | |
6054 | ||
6055 | * xfaces.c (init_frame_faces): Don't realize faces if frame's | |
6056 | X window hasn't been created yet. | |
6057 | ||
6058 | 1998-12-06 Gerd Moellmann <gerd@gnu.org> | |
6059 | ||
6060 | * sound.c: New. | |
6061 | ||
6062 | 1998-12-04 Gerd Moellmann <gerd@gnu.org> | |
6063 | ||
6064 | * config.in (HAVE_SOUND): New. | |
6065 | ||
6066 | * emacs.c (main): Call syms_of_sound and init_sound. | |
6067 | ||
6068 | * Makefile.in (obj): Add sound.o. | |
6069 | ||
6070 | * configure.in: Add checks for machine/soundcard.h and sys/soundcard.h. | |
6071 | ||
6072 | * config.in (HAVE_MACHINE_SOUNDCARD_H): New. | |
6073 | (HAVE_SYS_SOUNDCARD_H): New. | |
6074 | ||
6075 | 1998-12-03 Gerd Moellmann <gerd@gnu.org> | |
6076 | ||
6077 | * buffer.h (struct buffer): indicate_empty_lines renamed from | |
6078 | indicate_zv_lines. | |
6079 | ||
6080 | * buffer.c (indicate-empty-lines): Renamed from indicate_zv_lines. | |
6081 | (default-indicate-zv-lines): Likewise. | |
6082 | ||
6083 | * dispextern.h (struct glyph_row): Rename indicate_zv_line_p | |
6084 | to indicate_empty_line_p. | |
6085 | ||
6086 | * xdisp.c (reseat_at_next_visible_line_start): Reset method | |
6087 | to next_element_from_buffer. | |
6088 | ||
6089 | * frame.c (make_frame): Set n_current_toolbar_items to 0. | |
6090 | ||
6091 | * xdisp.c (handle_face_prop): Allow symbols of the form `N+' | |
6092 | and `N-'. | |
6093 | ||
6094 | * xfns.c (xbm_scan): New. | |
6095 | (xbm_read_hexint): Removed. | |
6096 | (xbm_read_bitmap_file_data): Use xbm_scan. | |
6097 | ||
6098 | * fileio.c (Finsert_file_contents): Prevent redisplay optimizations. | |
6099 | ||
6100 | 1998-12-02 Gerd Moellmann <gerd@gnu.org> | |
6101 | ||
6102 | * xfns.c (xbm_read_hexint): New. | |
6103 | (xbm_read_bitmap_file_data): New. | |
6104 | (xbm_load_image_from_file): Call xbm_read_bitmap_file_data | |
6105 | instead of XReadBitmapFileData. | |
6106 | ||
6107 | * xdisp.c (handle_raise_prop): Compute voffset from current font. | |
6108 | ||
6109 | * xfaces.c (face_with_height): New. | |
6110 | ||
6111 | * xdisp.c (eval_handler): Renamed from eval_mode_handler. | |
6112 | (eval_form): Renamed from eval_mode_element. | |
6113 | (handle_face_prop): Use it. | |
6114 | (Qheight): Replaces Qsmaller. | |
6115 | (handle_height_prop): Replaces handle_smaller_prop. | |
6116 | (handle_face_prop): If iterator's font_height is not an | |
6117 | integer, evaluate it to get the font height to use. | |
6118 | ||
6119 | * dispextern.h (HEIGHT_PROP_IDX): Replaces SMALLER_PROP_IDX. | |
6120 | (struct it): Use `font_height' instead of `smaller'. | |
6121 | ||
6122 | 1998-12-01 Gerd Moellmann <gerd@gnu.org> | |
6123 | ||
6124 | * xdisp.c (reseat_1): New. | |
6125 | (reseat): Call it. | |
6126 | (move_it_vertically_backward): Ditto. | |
6127 | (redisplay_window): Don't abort when cursor not found in recenter. | |
6128 | ||
6129 | 1998-11-30 Gerd Moellmann <gerd@gnu.org> | |
6130 | ||
6131 | * xdisp.c (reseat_at_next_visible_line_start): When not | |
6132 | currently delivering display elements from the current buffer, | |
6133 | restore buffer position first. | |
6134 | (init_from_display_pos): Don't set IT's position from the | |
6135 | position passed to this function. | |
6136 | ||
6137 | 1998-11-28 Gerd Moellmann <gerd@gnu.org> | |
6138 | ||
6139 | * config.in (PROTO): Removed. | |
6140 | ||
6141 | * xterm.h: Change PROTO to P_. | |
6142 | ||
6143 | 1998-11-26 Gerd Moellmann <gerd@gnu.org> | |
6144 | ||
6145 | * xterm.c (take_vertical_position_into_account): New. | |
6146 | (x_produce_image_glyph): Call it. | |
6147 | (x_produce_stretch_glyph): Ditto. | |
6148 | (x_produce_glyphs): Ditto. | |
6149 | (x_fill_glyph_string): Adjust base line for glyph's voffset. | |
6150 | (x_fill_composite_glyph_string): Ditto. | |
6151 | (x_fill_image_glyph_string): Ditto. | |
6152 | (x_fill_stretch_glyph_string): Ditto. | |
6153 | ||
6154 | * xdisp.c (display_line): Always compute row height from | |
6155 | max_ascent and max_descent. | |
6156 | ||
6157 | * dispextern.h (struct glyph): Add voffset. | |
6158 | (struct it): Replace height by descent, max_height by max_descent. | |
6159 | ||
6160 | * xterm.c (x_append_glyph): Set voffset | |
6161 | (x_append_stretch_glyph): Ditto. | |
6162 | (x_produce_image_glyph): Ditto. | |
6163 | (x_produce_glyphs): Take voffset into account. | |
6164 | (x_produce_image_glyph): Ditto. | |
6165 | (x_produce_stretch_glyph): Ditto. | |
6166 | ||
6167 | * dispextern.h (struct it): Add voffset. | |
6168 | * xdisp.c (push_it): Save voffset. | |
6169 | (pop_it): Restore it. | |
6170 | ||
6171 | * xdisp.c (it_props): Add entry for `raise'. | |
6172 | (handle_raise_prop): New. | |
6173 | ||
6174 | * dispextern.h (RAISE_PROP_IDX): New. | |
6175 | ||
6176 | * xdisp.c (Qraise): New. | |
6177 | (syms_of_xdisp): Define Qraised. | |
6178 | ||
6179 | * xterm.c (x_scroll_bar_move): Clear to the left and right | |
6180 | of toolkit scroll bars differently. | |
6181 | (x_scroll_bar_move): Removed. | |
6182 | (XTset_vertical_scroll_bar): Move code from x_scroll_bar_move here. | |
6183 | ||
6184 | * dispextern.h: Make it compilable --with-x=no. | |
6185 | * alloc.c: Ditto. | |
6186 | * emacs.c: Ditto. | |
6187 | * dispnew.c: Ditto. | |
6188 | * keyboard.c: Ditto. | |
6189 | * term.c: Ditto. | |
6190 | * xdisp.c: Ditto. | |
6191 | * xfaces.c: Ditto. | |
6192 | * xfns.c: Ditto. | |
6193 | * xmenu.c: Ditto. | |
6194 | ||
6195 | 1998-11-25 Gerd Moellmann <gerd@gnu.org> | |
6196 | ||
6197 | * xterm.c (XTread_socket): Cancel help-echo when leaving frame. | |
6198 | ||
6199 | 1998-11-24 Gerd Moellmann <gerd@gnu.org> | |
6200 | ||
6201 | * xterm.c (x_set_toolkit_scroll_bar_thumb): When dragging, | |
6202 | update slider size, only. | |
6203 | (xm_scroll_callback): Set dragging member of the scroll bar. | |
6204 | (xt_action_hook): Reset last_scroll_bar_part. | |
6205 | (XTredeem_scroll_bar): Reset bar->dragging to nil. | |
6206 | ||
26901792 DL |
6207 | * xfns.c (Fx_hide_busy_cursor): Don't try to hide busy cursor |
6208 | window on newly created frames that don't have one. | |
6209 | ||
6210 | 1998-11-23 Gerd Moellmann <gerd@gnu.org> | |
6211 | ||
6212 | * xdisp.c (restore_overlay_strings): Removed. | |
6213 | (restore_dpvec): Removed. | |
6214 | (init_from_display_pos): Inline both functions above. | |
6215 | ||
6216 | * xfns.c (IMAGE_NON_NEGATIVE_INTEGER_VALUE): New. | |
6217 | (parse_image_spec): Handle it. | |
6218 | (xbm_format): Use it. | |
6219 | (xpm_format): Ditto. | |
6220 | (pbm_format): Ditto. | |
6221 | (jpeg_format): Ditto. | |
6222 | (tiff_format): Ditto. | |
6223 | (gif_format): Ditto. | |
6224 | (gs_format): Ditto. | |
6225 | ||
6226 | * xdisp.c (set_window_cursor): Removed. | |
6227 | (redisplay_internal): Case cursor motion in cursor line of | |
6228 | selected window; use set_cursor_from_row. | |
6229 | ||
6230 | 1998-11-22 Gerd Moellmann <gerd@gnu.org> | |
6231 | ||
6232 | * widget.c (EmacsFrameSetCharSize): Take widget's border width | |
6233 | into account. | |
6234 | ||
6235 | 1998-11-21 Gerd Moellmann <gerd@gnu.org> | |
6236 | ||
6237 | * xterm.c (expose_frame): Redraw menu bar window. | |
6238 | ||
6239 | * xdisp.c (display_menu_bar): Record hpos instead of x-position | |
6240 | in menu item. | |
6241 | ||
6242 | * dispnew.c (change_frame_size_1): Use FRAME_TOP_MARGIN instead | |
6243 | of FRAME_TOOLBAR_LINES. Use `f' instead of `frame'. | |
6244 | ||
6245 | * widget.c (set_frame_size): Use FRAME_SCROLL_BAR_COLS | |
6246 | to determine vertical_scroll_bar_extra. | |
6247 | (EmacsFrameSetCharSize): Ditto. | |
6248 | * xfns.c (x_figure_window_size): Ditto. | |
6249 | ||
6250 | * xterm.c (x_draw_row_bitmaps): Draw in `bitmap-area' face. | |
6251 | (x_draw_bitmap): Ditto. | |
6252 | ||
6253 | * dispextern.h (face_id): New id BITMAP_AREA_FACE_ID. | |
6254 | * xfaces.c (realize_basic_faces): Realize it. | |
6255 | ||
6256 | 1998-11-20 Gerd Moellmann <gerd@gnu.org> | |
6257 | ||
6258 | * xmenu.c (xmenu_show): Add workaround for remaining button grab | |
6259 | under LessTif Use the widget of the frame as parent for the | |
6260 | menu, again. | |
6261 | ||
6262 | 1998-11-19 Gerd Moellmann <gerd@gnu.org> | |
6263 | ||
6264 | * xterm.c (XTread_socket): Inhibit busy cursor for EnterNotify. | |
6265 | When EnterNotify, don't generate a mouse movement event if | |
6266 | notification is from a busy-cursor child window. | |
6267 | ||
6268 | * xterm.h (struct x_output): Add busy_window, remove cursor. | |
6269 | ||
6270 | * xfns.c (Fx_show_busy_cursor): Formerly Fx_display_busy_cursor. | |
6271 | Use a transparent window to display the busy-cursor. | |
6272 | (Fx_hide_busy_cursor): Formerly Fx_undisplay_busy_cursor. | |
6273 | ||
6274 | 1998-11-17 Gerd Moellmann <gerd@gnu.org> | |
6275 | ||
6276 | * xdisp.c (check_window_end): New, for debugging. | |
6277 | (CHECK_WINDOW_END): New. | |
6278 | (try_window_id): Use it. | |
6279 | ||
6280 | * xterm.c (process_expose_from_menu): Return int. | |
6281 | ||
6282 | * keyboard.c (kbd_buffer_get_event): Set flag to prevent recording | |
6283 | TOOLBAR_EVENT events in last_nonmenu_event. | |
6284 | ||
6285 | 1998-11-16 Gerd Moellmann <gerd@gnu.org> | |
6286 | ||
6287 | * xdisp.c (redisplay_window): If windows_or_buffers_changed, | |
6288 | window end isn't reliable, so set window_end_valid to nil. | |
6289 | (redisplay_internal): If overlay arrow has changed, set | |
6290 | windows_or_buffers_changed to redisplay thoroughly. | |
6291 | ||
6292 | * dispnew.c (adjust_glyph_matrix): Invalidate window end, if | |
6293 | necessary. | |
6294 | ||
6295 | * xfns.c (file_dialog_cb): New. | |
6296 | (Fx_file_dialog): New. | |
6297 | * fileio.c (Fread_file_name): Call it. | |
6298 | ||
6299 | * xrdb.c (x_load_resources): Add default resoures for file | |
6300 | selection dialog. | |
6301 | ||
6302 | 1998-11-14 Gerd Moellmann <gerd@gnu.org> | |
6303 | ||
6304 | * xterm.c (note_mouse_highlight): Don't highlight when popup | |
6305 | is active. | |
6306 | ||
26901792 DL |
6307 | * keyboard.c (timer_check): Inhibit busy cursor around calls to |
6308 | timer-event-handler. This busy cursor tends to be anoying if | |
6309 | fontifying stealthily. | |
6310 | ||
6311 | * dispnew.c (direct_output_for_insert): Give up if current row | |
6312 | contains trailing whitespace. | |
6313 | ||
6314 | 1998-11-13 Gerd Moellmann <gerd@gnu.org> | |
6315 | ||
6316 | * dispextern.h (prop_idx): Add FONTIFIED_PROP_IDX. | |
6317 | ||
6318 | * xdisp.c (handle_fontified_prop): New. | |
6319 | (Vfontification_functions): New. | |
6320 | (Qfontification_functions): New. | |
6321 | (it_props): Add handle_fontified_prop. | |
6322 | ||
6323 | 1998-11-12 Gerd Moellmann <gerd@gnu.org> | |
6324 | ||
6325 | * xmenu.c (xmenu_show): Use the frame's edit_widget as parent. | |
6326 | Otherwise, under LessTif, after the popup has gone, all button | |
6327 | press events come in for the frame's widget, and release events | |
6328 | come in for the edit_widget. | |
6329 | * xterm.c (XTread_socket): Remove workaround for that problem. | |
6330 | (x_set_toolkit_scroll_bar_thumb): Add workaround for LessTif | |
6331 | XmScrollBarSetValues. | |
6332 | (SET_SAVED_MENU_EVENT): Give it statement form. | |
6333 | ||
26901792 DL |
6334 | * xfaces.c (display_message): If waiting_for_input, don't display |
6335 | the message. | |
6336 | ||
6337 | * window.c (scroll_command): If not acting on current_buffer, | |
6338 | make redisplay consider all windows. | |
6339 | ||
6340 | * xfns.c (Fx_hide_tip): Return t if tooltip was open. | |
6341 | ||
6342 | * xdisp.c (handle_glyph_prop): Set it->object for images to | |
6343 | the object having the glyph property. | |
6344 | ||
6345 | * xterm.c (x_draw_row_bitmaps): Don't draw if row is completely | |
6346 | invisible. | |
6347 | ||
6348 | 1998-11-11 Gerd Moellmann <gerd@gnu.org> | |
6349 | ||
6350 | * xterm.h (struct x_display_info): Add gray pixmap. * xterm.c | |
6351 | (x_term_init): Create the gray pixmap. | |
6352 | (x_setup_relief_color): Use it. | |
6353 | (x_get_glyph_string_clip_rect): Draw a toolbar window over the | |
6354 | internal border at the top of a frame. | |
6355 | (x_init_glyph_string): Likewise. | |
6356 | (x_draw_glyph_string_relief): Correct right x by 1 pixel for | |
6357 | full-width lines. | |
6358 | (XTflash): Don't flash the toolbar window. | |
6359 | ||
6360 | * xterm.c (XTread_socket): Workaround for LessTif popup menus | |
6361 | in case of ButtonPress events. | |
6362 | ||
6363 | 1998-11-10 Gerd Moellmann <gerd@gnu.org> | |
6364 | ||
6365 | * xrdb.c (x_load_resources): Add grey background colors as | |
6366 | defaults for menus, scroll bars, and dialogs. | |
6367 | ||
6368 | * insdel.c (prepare_to_modify_buffer): Move setting | |
6369 | windows_or_buffers_changed from modify_region here. | |
6370 | ||
6371 | * xfns.c (Fx_show_tip): Inhibit redisplay. | |
6372 | (Fx_hide_tip): Ditto. | |
6373 | (Fx_image_header): New. | |
6374 | ||
6375 | 1998-11-09 Gerd Moellmann <gerd@gnu.org> | |
6376 | ||
6377 | * dispnew.c (clear_window_matrices): Set window_end_valid to nil | |
6378 | when clearing current window matrices. | |
6379 | ||
6380 | 1998-11-08 Gerd Moellmann <gerd@gnu.org> | |
6381 | ||
6382 | * xdisp.c (handle_glyph_prop): Don't set an iterator's buffer | |
6383 | position from a string position. Use the right end position | |
6384 | if the property spans a whole overlay string. | |
6385 | ||
6386 | 1998-11-07 Gerd Moellmann <gerd@gnu.org> | |
6387 | ||
6388 | * xmenu.c (menubar_selection_callback): Remove workaround for | |
6389 | Lesstif not calling XmNpopdownCallback because it doesn't | |
6390 | handle the case where users don't select any menu item. | |
6391 | ||
26901792 DL |
6392 | * insdel.c (modify_region): Set windows_or_buffers_changed. |
6393 | ||
6394 | * buffer.c (set_buffer_internal): Don't set | |
6395 | windows_or_buffers_changed. | |
6396 | ||
26901792 DL |
6397 | * xmenu.c (HAVE_BOXES): Define if USE_X_TOOLKIT. |
6398 | ||
26901792 DL |
6399 | * xmenu.c (menubar_selection_callback): Add workaround for |
6400 | Lesstif not calling XmNpopdownCallback. | |
6401 | ||
6402 | * xdisp.c (eval_mode_element): New. | |
6403 | (eval_mode_handler): New. | |
6404 | (display_mode_element): Use eval_mode_element. | |
6405 | ||
6406 | * xdisp.c (display_mode_element): Allow `(:eval FORM)'. | |
6407 | Remove code looking at text props of default value. | |
6408 | ||
6409 | * xmenu.c (HAVE_BOXES): Define if using Lucid menus. | |
6410 | ||
26901792 DL |
6411 | 1998-11-06 Gerd Moellmann <gerd@gnu.org> |
6412 | ||
6413 | * xmenu.c (single_submenu): Set button_type of menu to | |
6414 | BUTTON_TYPE_NONE. | |
6415 | (single_submenu): Likewise for panes and menu items. | |
6416 | (set_frame_menubar): Set button_type of menu bar to none. | |
6417 | (xmenu_show): Likewise. | |
6418 | (single_submenu): Set widget values selected slot. | |
6419 | (xmenu_show): Likewise. | |
6420 | ||
26901792 DL |
6421 | * xmenu.c (push_menu_item): Add parameters `type' and |
6422 | `selected'. Store it in menu_items. | |
6423 | (MENU_ITEMS_ITEM_TYPE): New. | |
6424 | (MENU_ITEMS_ITEM_SELECTED): New. | |
6425 | (MENU_ITEMS_ITEM_LENGTH): Increase by two. | |
6426 | ||
6427 | * xfns.c (clear_image_cache): Get the current time, before | |
6428 | doing anything. | |
6429 | (cache_image): Set prev pointer of next image. | |
6430 | (clear_image_cache): Clear current matrices if any image was | |
6431 | freed. | |
6432 | ||
6433 | * xterm.c (XTread_socket): Set inhibit_busy_cursor. | |
6434 | ||
6435 | * xfns.c (x_set_cursor): New. | |
6436 | (Fx_display_busy_cursor): New. | |
6437 | (Fx_undisplay_busy_cursor): New. | |
6438 | ||
6439 | * xterm.h (struct x_output): Add busy_cursor. | |
6440 | ||
6441 | * xfns.c (Vx_busy_pointer_shape): New. | |
6442 | (x_set_mouse_color): Create busy cursor. | |
6443 | ||
6444 | * process.c (wait_reading_process_input): Show and hide busy | |
6445 | cursor. | |
6446 | ||
6447 | * keyboard.c (command_loop_1): Display busy cursor. | |
6448 | ||
6449 | * eval.c (Fsignal): Hide busy cursor. | |
6450 | ||
6451 | * buffer.c (set_buffer_internal): Don't set | |
6452 | windows_or_buffers_changed. | |
6453 | ||
6454 | * xterm.c (redo_mouse_highlight): New. | |
6455 | ||
6456 | 1998-11-04 Gerd Moellmann <gerd@gnu.org> | |
6457 | ||
26901792 DL |
6458 | * xfns.c (x_create_x_image_and_pixmap): Add depth parameter. |
6459 | (x_build_heuritic_mask): New. | |
6460 | (lookup_image): Call it. | |
6461 | ||
6462 | * xterm.c (note_toolbar_highlight): Always set up help_echo. | |
6463 | (previous_help_echo): New. | |
6464 | (XTread_socket): Generate help event with nil message when | |
6465 | leaving a region with help-echo. | |
6466 | (note_mouse_highlight): Handle `help-echo' over text. | |
6467 | (XTread_socket): Dispatch VisibilityNotify, CirculateNotify, | |
6468 | CirculateRequest. | |
6469 | (clear_mouse_face): Don't clear if tooltip is shown. | |
6470 | (XTread_socket): Redo mouse-highlight after tooltip is gone. | |
6471 | Avoid SET_FRAME_GARBAGED when tooltip is mapped. | |
6472 | ||
6473 | * keyboard.c (Vshow_help_function): New. | |
6474 | (read_char): Use it. | |
6475 | ||
6476 | 1998-11-03 Gerd Moellmann <gerd@gnu.org> | |
6477 | ||
6478 | * xfns.c (x_create_tip_frame): New. | |
6479 | (Fx_show_tip): New. | |
6480 | (Fx_hide_tip): New. | |
6481 | ||
6482 | * xterm.c (x_destroy_window): Handle case that we don't have | |
6483 | a widget. | |
6484 | ||
6485 | * dispextern.h (struct glyph_row): Rename no_marginal_areas_p | |
6486 | to full_width_p. Add internal_border_p. | |
6487 | ||
6488 | 1998-11-02 Gerd Moellmann <gerd@gnu.org> | |
6489 | ||
6490 | * xterm.c (note_mode_line_highlight): Check the charpos of | |
6491 | the glyph under the mouse pointer before accessing text | |
6492 | properties at that position. | |
6493 | ||
6494 | 1998-11-01 Gerd Moellmann <gerd@gnu.org> | |
6495 | ||
6496 | * xterm.c (x_draw_image_relief): Handle toolbar_button_relief. | |
6497 | ||
6498 | * xdisp.c (auto-raise-toolbar-buttons): New. | |
6499 | (build_desired_toolbar_string): Handle the flag. | |
6500 | (toolbar-button-margin): New. | |
6501 | (toolbar-button-relief): New. | |
6502 | (build_desired_toolbar_string): Use margin and relief. | |
6503 | ||
6504 | * xterm.c (x_set_toolkit_scroll_bar_thumb): Remove workaround | |
6505 | for FreeBSD. | |
6506 | (note_mode_line_highlight): New. | |
6507 | (note_mouse_highlight): Call it. | |
6508 | ||
6509 | 1998-10-31 Gerd Moellmann <gerd@gnu.org> | |
6510 | ||
6511 | * s/freebsd.h (NARROWPROTO): New. | |
6512 | ||
6513 | * xdisp.c (display_string): New parameter face_string. | |
6514 | (display_mode_element): When displaying a symbol with a string | |
6515 | value, use text properties from the symbol's default value, maybe. | |
6516 | ||
6517 | * xrdb.c (x_load_resources): Add font defaults for menus and | |
6518 | dialogs. | |
6519 | ||
6520 | 1998-10-30 Gerd Moellmann <gerd@gnu.org> | |
6521 | ||
6522 | * xfns.c (Fx_create_frame): Try 12pt Courier font first. | |
6523 | ||
6524 | 1998-10-29 Gerd Moellmann <gerd@gnu.org> | |
6525 | ||
6526 | * xterm.c (x_produce_glyphs): Fix bug causing glyphs to be | |
6527 | produced for characters with codes < 32 under certain | |
6528 | circumstances. | |
6529 | ||
6530 | * xdisp.c (redisplay_window): Handle values of PT in front | |
6531 | of invisible, intangible text. | |
6532 | (try_window_id): Set overlay_arrow_seen to zero before | |
6533 | displaying lines. | |
6534 | (display_mode_element): Assign to glyphs written for a mode | |
6535 | line spec `%x' as object the Lisp format string, as position | |
6536 | the position of the `%' in that string. | |
6537 | (display_string): If displaying a C string, optionally get | |
6538 | the face to use from a Lisp string. | |
6539 | ||
6540 | * xterm.c (expose_window_tree): Include mode line height. | |
6541 | ||
6542 | * xfns.c (Fx_create_frame): Add toolbar height to frame height. | |
6543 | ||
6544 | 1998-10-27 Gerd Moellmann <gerd@gnu.org> | |
6545 | ||
6546 | * xterm.c (note_mouse_highlight): Change mouse pointer shape | |
6547 | over mode line. | |
6548 | ||
6549 | 1998-10-26 Gerd Moellmann <gerd@gnu.org> | |
6550 | ||
6551 | * window.c (coordinates_in_window): Use CURRENT_MODE_LINE_HEIGHT. | |
6552 | ||
6553 | * xdisp.c (redisplay_window): If mode line height has changed, | |
6554 | arrange for a thorough immediate redisplay using the correct mode | |
6555 | line height. | |
6556 | (window_box_height): Use CURRENT_MODE_LINE_HEIGHT. | |
6557 | ||
6558 | * dispextern.h (MATRIX_MODE_LINE_HEIGHT): New. | |
6559 | (CURRENT_MODE_LINE_HEIGHT): New. | |
6560 | (DESIRED_MODE_LINE_HEIGHT): New. | |
6561 | ||
6562 | * keyboard.c (make_lispy_event): Add string and string position | |
6563 | info to mouse-click events. | |
6564 | (read_key_sequence): Handle `local-map' property of mode line | |
6565 | strings. | |
6566 | ||
6567 | * keyboard.h (POSN_STRING): New. | |
6568 | ||
6569 | 1998-10-25 Gerd Moellmann <gerd@gnu.org> | |
6570 | ||
6571 | * dispnew.c (mode_line_string): Mew. | |
6572 | ||
6573 | * xterm.c (xt_action_hook): New. | |
6574 | (x_create_toolkit_scroll_bar): Add action hook. | |
6575 | (xm_scroll_callback): Implement dragging. | |
6576 | ||
6577 | * keyboard.c (Qend_scroll): New. | |
6578 | (scroll_bar_parts): Add it. | |
6579 | ||
6580 | * termhooks.h (scroll_bar_end_scroll): New. | |
6581 | ||
6582 | * xterm.c (XTread_socket): Bug fix. | |
6583 | ||
6584 | 1998-10-24 Gerd Moellmann <gerd@gnu.org> | |
6585 | ||
6586 | * xdisp.c (redisplay_window): Finish scroll bars after | |
6587 | redisplaying toolbar. | |
6588 | ||
6589 | * keyboard.c (scroll_bar_parts): Add Qtop and Qbottom. | |
6590 | (syms_of_keyboard): Add Qbottom. | |
6591 | ||
6592 | * termhooks.h (scroll_bar_to_top): New. | |
6593 | (scroll_bar_to_bottom): New. | |
6594 | ||
6595 | * xdisp.c (redisplay_window): Always resize toolbar window if | |
6596 | auto_resize_toolbar_p is non-zero. | |
6597 | (auto_resize_toolbar_p): Renamed from auto_resize_toolbar. | |
6598 | (window_box): New. | |
6599 | (window_box_height): New. | |
6600 | (window_box_width): New. | |
6601 | (window_box_left): New. | |
6602 | (window_box_right): New. | |
6603 | (window_box_edges): New. | |
6604 | ||
6605 | 1998-10-23 Gerd Moellmann <gerd@gnu.org> | |
6606 | ||
6607 | * xterm.c (x_set_toolkit_scroll_bar_thumb): Kluge for call to | |
6608 | XawScrollbarSetThumb in FreeBSD. | |
6609 | (x_create_toolkit_scroll_bar): Set resource "beNiceToColormap" | |
6610 | to true. | |
6611 | ||
6612 | * window.c (get_phys_cursor_glyph): Return null if cursor vpos | |
6613 | is out of range. | |
6614 | ||
6615 | * xterm.c (x_create_toolkit_scroll_bar): Set scroll_bar_pixel. | |
6616 | (x_term_init): Initialize it. | |
6617 | ||
6618 | * xterm.h (struct x_display_info): Add scroll_bar_pixel. | |
6619 | ||
6620 | * xterm.c (x_create_toolkit_scroll_bar): Set LessTif scroll bar's | |
6621 | cursor. | |
6622 | ||
6623 | 1998-10-22 Gerd Moellmann <gerd@gnu.org> | |
6624 | ||
6625 | * keyboard.c (make_lispy_event): Handle scroll_bar_click | |
6626 | differently when using toolkit scroll bars. | |
6627 | ||
6628 | * xterm.c (x_send_scroll_bar_event): New. | |
6629 | (x_scroll_bar_to_input_event): New. | |
6630 | (xaw3d_scroll_callback): New. | |
6631 | (xaw3d_jump_callback): New. | |
6632 | (xm_scroll_callback): New. | |
6633 | (x_toolkit_scroll_p): New. | |
6634 | (XTread_socket): Handle scroll bar client message. | |
6635 | (x_term_init): Initialize Xatom_Scrollbar. | |
6636 | (x_scroll_bar_create): Set cursor. | |
6637 | (xm_scroll_callback): | |
6638 | (x_create_toolkit_scroll_bar): New. | |
6639 | (x_set_toolkit_scroll_bar_thumb): New. | |
6640 | (x_scroll_bar_create): Call x_create_toolkit_scroll_bar. | |
6641 | (XTset_vertical_scroll_bar): Call x_set_toolkit_scroll_bar_thumb. | |
6642 | ||
6643 | * xterm.h (struct x_display_info): Add Xatom_Scrollbar. | |
6644 | ||
6645 | 1998-10-21 Gerd Moellmann <gerd@gnu.org> | |
6646 | ||
6647 | * xterm.c (x_scroll_bar_remove): Handle toolkit scroll bars. | |
6648 | (XTread_socket): Don't handle mouse button events for scroll bars | |
6649 | if using toolkit scroll bars. | |
6650 | (XTset_vertical_scroll_bar): Set thumb size and position for | |
6651 | Athena scroll bar. | |
6652 | ||
6653 | * xterm.h (scroll_bar): Add x_widget_low and x_widget_high. | |
6654 | ||
6655 | * xterm.c (XTread_socket): Dispatch expose event to widget | |
6656 | if using toolkit scroll bars. | |
6657 | (x_scroll_bar_expose): Make no-op for toolkit scroll bars. | |
6658 | (x_scroll_bar_create): Create and show a scroll bar widget | |
6659 | if using toolkit scroll bars. | |
6660 | (x_scroll_bar_move): Handle tookit scroll bars. | |
6661 | ||
6662 | * Makefile.in (LIBW): Use Xaw3d if present. | |
6663 | ||
6664 | * configure.in (USE_TOOLKIT_SCROLL_BARS): New. | |
6665 | (HAVE_XAW3D): New. | |
6666 | ||
6667 | * config.in (USE_TOOLKIT_SCROLL_BARS): New. | |
6668 | (HAVE_XAW3D): New. | |
6669 | ||
6670 | * xterm.c (XTset_vertical_scroll_bar): Correct position of | |
6671 | right vertical scroll bar. | |
6672 | ||
6673 | 1998-10-20 Gerd Moellmann <gerd@gnu.org> | |
6674 | ||
6675 | * xfns.c (xpm_load): Support reading XPM images from string | |
6676 | buffers containing data in the same format as an XPM file. | |
6677 | Support `:color-symbols'. | |
6678 | (xpm_format): Add `:data'. | |
6679 | (xpm_keyword_index): Add XPM_DATA. | |
6680 | (syms_of_xfns): Add `:color-symbols'. | |
6681 | (xpm_keyword_index): Add XPM_COLOR_SYMBOLS. | |
6682 | (xpm_valid_color_symbols_p): New. | |
6683 | (xpm_image_p): Call it. | |
6684 | ||
6685 | * xdisp.c (build_desired_toolbar_string): Add `:algorithm' | |
6686 | attribute to the image if item is not enabled. | |
6687 | ||
6688 | * xfns.c (x_laplace): New. | |
6689 | (x_laplace_read_row): New. | |
6690 | (x_laplace_write_row): New. | |
6691 | (lookup_image): Handle common image attributes here. New | |
6692 | attribute `:algorithm'. | |
6693 | ||
6694 | * xfaces.c (clear_face_cache): Call clear_image_cache. | |
6695 | ||
6696 | * xterm.c (x_inverted_image_mask): Removed. | |
6697 | (x_draw_image_foreground_1): New. | |
6698 | (x_draw_image_glyph_string): Draw images with mask to a temporary | |
6699 | pixmap to reduce flickering. | |
6700 | ||
6701 | * xdisp.c (redisplay_toolbar): Handle auto-resize-toolbars. | |
6702 | (display_toolbar_line): Remove parameter `margin'. | |
6703 | ||
6704 | 1998-10-19 Gerd Moellmann <gerd@gnu.org> | |
6705 | ||
6706 | * xdisp.c (toolbar_lines_needed): New. | |
6707 | (auto-resize-toolbars): New. | |
6708 | ||
6709 | * xfns.c (cache_image): Correct call to xrealloc. | |
6710 | ||
6711 | * dispnew.c (Fset_toolbar_height): Removed. | |
6712 | ||
6713 | * xdisp.c (init_xdisp): Use FRAME_TOP_MARGIN instead of | |
6714 | FRAME_MENU_BAR_LINES. | |
6715 | ||
6716 | * window.c (Fdelete_other_windows): Use FRAME_TOP_MARGIN | |
6717 | instead of FRAME_MENU_BAR_LINES. | |
6718 | (check_frame_size): Ditto. | |
6719 | ||
6720 | * dispnew.c (adjust_frame_glyphs_initially): Use FRAME_TOP_MARGIN | |
6721 | instead of FRAME_MENU_BAR_LINES. | |
6722 | (adjust_frame_glyphs_for_frame_redisplay): Ditto. | |
6723 | (build_frame_matrix): Ditto. | |
6724 | (change_frame_size_1): Ditto. | |
6725 | ||
6726 | * frame.h (FRAME_TOOLBAR_LINES): New. | |
6727 | (FRAME_TOP_MARGIN): New. | |
6728 | ||
6729 | * window.c (struct save_window_data): Add frame_toolbar_lines. | |
6730 | (Fset_window_configuration): Handle toolbar lines. | |
6731 | (Fcurrent_window_configuration): Save toolbar lines. | |
6732 | ||
6733 | * frame.c (syms_of_frame_1): Add Qtoolbar_lines. | |
6734 | ||
6735 | * xfns.c (Fx_create_frame): Add default parameter for toolbar. | |
6736 | ||
6737 | * frame.h (struct frame): Rename top_margin to toolbar_lines. | |
6738 | ||
6739 | * xfns.c (x_frame_parms): Add `toolbar-lines'. | |
6740 | (x_set_toolbar_lines): New. | |
6741 | ||
6742 | * keyboard.c (cmd_error_internal): Bug fix. | |
6743 | ||
6744 | * xterm.c: Remove double include of syssignal.h. | |
6745 | ||
6746 | 1998-10-18 Gerd Moellmann <gerd@gnu.org> | |
6747 | ||
6748 | * xterm.c (x_toolbar_item): New. | |
6749 | (x_handle_toolbar_click): Use it. | |
6750 | (note_toolbar_highlight): Use it. | |
6751 | ||
6752 | * keyboard.c (syms_of_keyboard): Staticpro toolbar_item_properties | |
6753 | and toolbar_items_vectors. | |
6754 | ||
6755 | * xterm.c (help_echo): New. | |
6756 | (draw_glyphs_face): Add DRAW_IMAGE_RAISED and DRAW_IMAGE_SUNKEN. | |
6757 | (x_set_glyph_string_gc): Handle them. | |
6758 | (x_after_update_window_line): Don't do anything in pseudo-windows. | |
6759 | (x_produce_image_glyph): Take image margin and face relief into | |
6760 | account. | |
6761 | (x_get_glyph_string_clip_rect): Handle pseudo-windows. | |
6762 | (x_draw_glyph_string_background): Optimize case when face has | |
6763 | relief. | |
6764 | (x_setup_relief_color): Take frame instead of glyph string | |
6765 | parameter. | |
6766 | (x_draw_relief_rect): New. | |
6767 | (x_draw_glyph_string_relief): Call it. | |
6768 | (x_draw_image_glyph_string_foreground): Handle margin and image | |
6769 | relief. | |
6770 | (x_draw_image_glyph_string_background): Ditto. | |
6771 | (expose_frame): Redraw toolbar window. | |
6772 | (expose_window): Don't draw cursor for pseudo-windows. | |
6773 | (x_y_to_hpos_vpos): Handle pseudo-windows. | |
6774 | (frame_to_window_pixel_xy): New. | |
6775 | (note_mouse_highlight): Call note_toolbar_highlight. | |
6776 | (x_handle_toolbar_click): New. | |
6777 | (note_toolbar_highlight): New. | |
6778 | (show_mouse_face): Change int parameter `hl' to parameter of | |
6779 | type enum draw_glyphs_face. Handle image highlighting. | |
6780 | (XTread_socket): Return a HELP_EVENT input event if help_echo is | |
6781 | non-nil. Use x_handle_toolbar_click. | |
6782 | ||
6783 | * termhooks.h (event_kind): Add HELP_EVENT, TOOLBAR_EVENT. | |
6784 | ||
6785 | * xfns.c (image_value_type): Add IMAGE_INTEGER_VALUE, | |
6786 | IMAGE_BOOL_VALUE. | |
6787 | (parse_image_spec): Handle them. | |
6788 | (image_spec_value): Additional parameter found. | |
6789 | (free_image): Remove image from the vector `images' of the | |
6790 | image cache. | |
6791 | (clear_image_cache): Additional parameter force_p. | |
6792 | (Fclear_image_cache): New. | |
6793 | (x_find_image_file): New. | |
6794 | (xbm_load): Handle `:margin' and `:relief'. Use | |
6795 | x_find_image_file. | |
6796 | (xpm_load): Likewise. | |
6797 | (pbm_load): Likewise. | |
6798 | (jpeg_load): Likewise. | |
6799 | (tiff_load): Likewise. | |
6800 | (gif_load): Likewise. | |
6801 | ||
6802 | * keyboard.c (Qhelp_echo): New symbol. | |
6803 | (read_char): Handle `toolbar' and `help_echo' events. | |
6804 | (kbd_buffer_get_event): Handle HELP_ECHO input event. | |
6805 | (make_lispy_event): Handle TOOLBAR_EVENT. | |
6806 | (toolbar_items): New. | |
6807 | (process_toolbar_item): New. | |
6808 | (PROP): New. | |
6809 | (init_toolbar_items): New. | |
6810 | (append_toolbar_item): New. | |
6811 | (read_char_x_menu_prompt): Handle `toolbar' event. | |
6812 | (read_key_sequence): Ditto. | |
6813 | ||
6814 | * xfaces.c (Qtoolbar): New. | |
6815 | (realize_basic_faces): Realize `toolbar' face. | |
6816 | (face_at_string_position): Remove parameter modeline_p, add | |
6817 | base_face_id. | |
6818 | ||
6819 | * xfns.c (xbm_load_image_from_file): Don't use Xmu function | |
6820 | to read data. | |
6821 | ||
6822 | 1998-10-17 Gerd Moellmann <gerd@gnu.org> | |
6823 | ||
6824 | * xdisp.c (init_iterator): Replace parameter modeline_p with | |
6825 | base_face_id. | |
6826 | (next_element_from_string): Call get_next_display_element | |
6827 | recursively after handling text properties. | |
6828 | (prepare_menu_bars): Call update_toolbar. | |
6829 | (update_toolbar): New. | |
6830 | (build_desired_toolbar_string): New. | |
6831 | (display_toolbar_line): New. | |
6832 | (redisplay_toolbar): New. | |
6833 | (toolbar_item_info): New. | |
6834 | (redisplay_window): Call redisplay_toolbar. | |
6835 | (Fdump_toolbar_row): New. Defined if compiled with GLYPH_DEBUG. | |
6836 | ||
6837 | * dispnew.c (clear_current_matrices): Clear matrices of toolbar | |
6838 | window. | |
6839 | (clear_desired_matrices): Ditto. | |
6840 | (adjust_frame_glyphs_for_window_redisplay): Make toolbar window. | |
6841 | (free_glyphs): Free matrices of toolbar window. | |
6842 | (update_frame): Update toolbar window. | |
6843 | (change_frame_size_1): Take toolbar into account. | |
6844 | (Fset_toolbar_height): New. | |
6845 | ||
6846 | * dispextern.h (struct it): Remove member modeline_p, add | |
6847 | base_face_id. | |
6848 | (struct image): Add members relief and margin. | |
6849 | (IMAGE_ASCENT): Include margin in height. | |
6850 | ||
6851 | 1998-10-14 Gerd Moellmann <gerd@gnu.org> | |
6852 | ||
6853 | * xfns.c (Fclear_image_cache): New. | |
6854 | ||
6855 | * xfaces.c (realize_basic_faces): Realize toolbar face. | |
6856 | (face_at_string_position): Remove parameter modeline_p, add | |
6857 | base_face_id. | |
6858 | ||
6859 | * dispextern.h (enum face_id): Add TOOLBAR_FACE_ID. | |
6860 | ||
6861 | 1998-10-13 Gerd Moellmann <gerd@gnu.org> | |
6862 | ||
6863 | * keyboard.c (syms_of_keyboard): Intern `:help'. | |
6864 | ||
6865 | 1998-10-12 Gerd Moellmann <gerd@gnu.org> | |
6866 | ||
6867 | * xterm.c (note_toolbar_highlight): New. | |
6868 | (note_mouse_highlight): Call it. | |
6869 | ||
6870 | * window.c (window_from_coordinates): Additional parameter toolbar_p. | |
6871 | (coordinates_in_window): Handle toolbar window. | |
6872 | ||
6873 | * keyboard.c (toolbar_items): New. | |
6874 | (process_toolbar_item): New. | |
6875 | (parse_toolbar_item): New. | |
6876 | (init_toolbar_items): New. | |
6877 | (append_toolbar_item): New. | |
6878 | ||
6879 | * dispextern.h (enum toolbar_item_idx): New. | |
6880 | (enum toolbar_item_image): New. | |
6881 | ||
6882 | * frame.h (struct frame): Add toolbar-related members. | |
6883 | ||
6884 | * xfaces.c (face_at_string_position): Remove assertion that | |
6885 | current_buffer == window's buffer. This is not the case when | |
6886 | called for the toolbar window. | |
6887 | ||
6888 | * frame.c (make_frame): Initialize toolbar members. | |
6889 | ||
6890 | * alloc.c (mark_object): Mark toolbar data of frames. | |
6891 | ||
6892 | * frame.h (struct frame): Add toolbar-related members | |
6893 | toolbar_window, desired_toolbar_items, current_toolbar_items, | |
6894 | desired_toolbar_string, current_toolbar_string, | |
6895 | n_desired_toolbar_items, n_current_toolbar_items. Add | |
6896 | window_height. | |
6897 | ||
6898 | * xterm.c (x_after_update_window_line): Don't draw bitmap | |
6899 | areas for pseudo-windows. | |
6900 | (expose_frame): Handle toolbar window. | |
6901 | (expose_window): Don't do cursor stuff for pseudo-windows. | |
6902 | ||
6903 | * xdisp.c (display_menu_bar): Correct calls to init_iterator. | |
6904 | ||
6905 | 1998-10-11 Gerd Moellmann <gerd@gnu.org> | |
6906 | ||
6907 | * frame.c (make_frame): Initialize toolbar_window. | |
6908 | ||
6909 | * alloc.c (mark_object): Make the toolbar window. | |
6910 | ||
6911 | * dispnew.c (update_frame): Update frame's toolbar_window. | |
6912 | (clear_current_matrices): Likewise. | |
6913 | (clear_desired_matrices): Likewise. | |
6914 | (adjust_frame_glyphs_for_window_redisplay): Make toolbar_window. | |
6915 | (free_glyphs): Free the toolbar window and its matrices. | |
6916 | ||
6917 | * frame.h (struct frame): Add toolbar_window. | |
6918 | ||
6919 | * xterm.c (x_draw_glyph_string_relief): Handle mouse-face | |
6920 | with relief. | |
6921 | ||
6922 | 1998-10-10 Gerd Moellmann <gerd@gnu.org> | |
6923 | ||
6924 | * dispnew.c (buffer_posn_from_coords): Don't screw up if | |
6925 | window start is not in the range BEGV..ZV. | |
6926 | ||
6927 | 1998-10-09 Gerd Moellmann <gerd@gnu.org> | |
6928 | ||
6929 | * xdisp.c (try_scrolling): Experimentally handle the case | |
6930 | that scroll-preserve-screen-position is set to `always'. | |
6931 | ||
6932 | * window.c (Vscroll_preserve_screen_position): Replacement for | |
6933 | scroll_preserve_screen_position. | |
6934 | ||
6935 | 1998-10-08 Gerd Moellmann <gerd@gnu.org> | |
6936 | ||
6937 | * dispnew.c: Don't initialize auto structs; the HP/UX compiler | |
6938 | doesn't like it. | |
6939 | * xdisp.c: Ditto. | |
6940 | ||
6941 | * xdisp.c (make_cursor_line_fully_visible): Adjust this_line_y. | |
6942 | ||
6943 | 1998-10-06 Gerd Moellmann <gerd@gnu.org> | |
6944 | ||
6945 | * minibuf.c (Fminibuffer_complete_word): Fix computation of | |
6946 | i_byte when prompts are inserted into minibuffers. | |
6947 | ||
6948 | * dispextern.h (FRAME_INTERNAL_BORDER_WIDTH_SAFE): New. | |
6949 | (WINDOW_DISPLAY_LEFT_EDGE_PIXEL_X): Use it. | |
6950 | (WINDOW_DISPLAY_TOP_EDGE_PIXEL_Y): Ditto. | |
6951 | ||
6952 | 1998-10-04 Gerd Moellmann <gerd@gnu.org> | |
6953 | ||
6954 | * xdisp.c (make_cursor_line_fully_visible): New. | |
6955 | (try_scrolling): New. | |
6956 | (redisplay_window): Move scrolling code to try_scrolling. | |
6957 | (make_cursor_line_fully_visible): Handle case of window too small | |
6958 | to show a single line. | |
6959 | (redisplay_window): Case forced window start---use | |
6960 | make_cursor_line_fully_visible. | |
6961 | (redisplay_window): Case cursor movement via current matrix. | |
6962 | If ending up on a partially visible line, make it fully visible | |
6963 | instead of recentering. | |
6964 | (try_scrolling): Additional parameter scroll_smoothly. | |
6965 | ||
6966 | * xterm.c (x_draw_bitmap): Don't XClearArea under the pixmap. | |
6967 | ||
6968 | 1998-09-28 Gerd Moellmann <gerd@gnu.org> | |
6969 | ||
6970 | * window.c (window_scroll_pixel_based): Bug fix: vpos used | |
6971 | instead of y-position for scroll-preserved-screen-position. | |
6972 | ||
6973 | 1998-09-07 Gerd Moellmann <gerd@gnu.org> | |
6974 | ||
6975 | * dispnew.c (update_frame_line): If current row is not enabled, | |
6976 | write the whole line. | |
6977 | ||
6978 | 1998-09-06 Gerd Moellmann <gerd@gnu.org> | |
6979 | ||
6980 | * lisp.h (HAVE_FACES): Removed. | |
6981 | ||
6982 | * dispextern.h (HAVE_FACES): Removed. | |
6983 | ||
6984 | * config.in (HAVE_FACES): Removed. | |
6985 | ||
6986 | * dispnew.c (HAVE_FACES): Removed. | |
6987 | ||
6988 | * xdisp.c (HAVE_FACES): Removed. | |
6989 | ||
6990 | * xfaces.c (HAVE_FACES): Removed. | |
6991 | ||
6992 | 1998-09-05 Gerd Moellmann <gerd@gnu.org> | |
6993 | ||
6994 | * xdisp.c (init_iterator): If face_change_count is non-zero, | |
6995 | free realized faces. | |
6996 | ||
6997 | * xfaces.c (free_all_realized_faces): Make it externally visible. | |
6998 | (Finternal_set_lisp_face_attribute): Increment | |
6999 | windows_or_buffers_changed. | |
7000 | ||
7001 | * dispnew.c (direct_output_for_insert): Give up if | |
7002 | face_change_count is non-zero. | |
7003 | (direct_output_forward_char): Ditto. | |
7004 | ||
7005 | * xfaces.c (face_change_count): New. | |
7006 | ||
7007 | 1998-09-04 Gerd Moellmann <gerd@gnu.org> | |
7008 | ||
7009 | * xterm.c (x_draw_bar_cursor): Don't draw if cursor hpos is out | |
7010 | of range. | |
7011 | ||
7012 | 1998-09-03 Gerd Moellmann <gerd@gnu.org> | |
7013 | ||
7014 | * term.c (Ftty_display_color_p): New. | |
7015 | ||
7016 | 1998-09-02 Gerd Moellmann <gerd@gnu.org> | |
7017 | ||
7018 | * xfaces.c (Ftty_defined_colors): New. | |
7019 | ||
7020 | * xterm.c (x_produce_glyphs): Fix computation of | |
7021 | contains_overlapping_glyphs_p for ASCII. | |
7022 | ||
7023 | * dispnew.c (Fshow_cursor): Don't change cursor state while | |
7024 | redisplaying. | |
7025 | (direct_output_for_insert): If a glyph with lbearing or rbearing | |
7026 | is among the new glyphs, set row flag contains_overlapping_glyph_p. | |
7027 | ||
7028 | 1998-09-01 Gerd Moellmann <gerd@gnu.org> | |
7029 | ||
7030 | * term.c (OUTPUT_IF): Make replacement text have statement form. | |
7031 | (OUTPUT1_IF): Ditto. | |
7032 | (TS_italic_mode, TS_end_italic_mode): Removed. | |
7033 | (TS_bold_mode): Removed. | |
7034 | (TS_underscore_mode, TS_end_underscore_mode): Removed. | |
7035 | (TS_enter_bold_mode, TS_enter_dim_mode, TS_enter_blink_mode): New. | |
7036 | (TS_enter_reverse_mode): New. | |
7037 | (TS_enter_underline_mode, TS_exit_underline_mode): New. | |
7038 | (TN_magic_cookie_glitch_ul): New. | |
7039 | (TS_enter_alt_charset_mode, TS_exit_alt_charset_mode): New. | |
7040 | (TS_exit_attribute_mode): New. | |
7041 | (TN_max_colors, TN_max_pairs, TS_orig_pairs): New. | |
7042 | (TS_set_foreground, TS_set_background): New. | |
7043 | (reset_terminal_modes): Switch colors back to default. | |
7044 | (write_glyphs): Turn face on before writing text, turn it off | |
7045 | afterwards. | |
7046 | (insert_glyphs): Ditto. | |
7047 | (term_init): Initialize new terminal capability variables. | |
7048 | (turn_on_face): Turn a face on. | |
7049 | (turn_off_face): Turn a face off. | |
7050 | ||
7051 | * lisp.h (MAKE_GLYPH): Remove test for frame type. | |
7052 | (GLYPH_CHAR): Ditto. | |
7053 | (GLYPH_FACE): Ditto. | |
7054 | ||
7055 | * xfaces.c (Vface_tty_color_alist): New. | |
7056 | (face-register-tty-color): New. | |
7057 | (face-clear-tty-colors): New. | |
7058 | ||
7059 | * dispextern.h (FACE_TTY_DEFAULT_COLOR): New. | |
7060 | (struct it): Remove member faces_p since we now always have faces. | |
7061 | ||
7062 | 1998-08-31 Gerd Moellmann <gerd@gnu.org> | |
7063 | ||
7064 | * dispextern.h (struct face): Add tty appearance flags. | |
7065 | ||
7066 | * xdisp.c (init_iterator): Always handle faces. | |
7067 | (extend_face_to_end_of_line): Handle tty frames. | |
7068 | ||
7069 | * dispnew.c (clear_glyph_matrix): Allow a null matrix to be | |
7070 | passed in. | |
7071 | ||
7072 | 1998-08-30 Gerd Moellmann <gerd@gnu.org> | |
7073 | ||
7074 | * xfaces.c (realize_default_face): Use empty strings to indicate | |
7075 | that the face should use the default foreground/background | |
7076 | color of the terminal. Fill font-related attributes with | |
7077 | appropriate values for tty frames. | |
7078 | ||
7079 | * emacs.c (main): Call syms_of_xfaces before init_window_once. | |
7080 | ||
7081 | * xfaces.c (realize_default_face): If face `default' is not | |
7082 | yet known, create it. | |
7083 | ||
7084 | * frame.c (make_terminal_frame): Call init_frame_faces | |
7085 | unconditionally. | |
7086 | ||
7087 | * xfaces.c (init_frame_faces): Make it work for tty frames. | |
7088 | (free_frame_faces): Ditto. | |
7089 | (clear_face_cache): Ditto. | |
7090 | (recompute_basic_faces): Ditto. | |
7091 | (Fframe_face_alist): Ditto. | |
7092 | (free_realized_face): Ditto. | |
7093 | (prepare_face_for_display): Ditto. | |
7094 | (clear_face_gcs): Ditto. | |
7095 | (lookup_face): Ditto. | |
7096 | (smaller_face): Ditto. | |
7097 | (realize_default_face): Ditto. | |
7098 | (realize_face): Ditto. | |
7099 | (realize_face): Dispatch to functions depending on the frame type. | |
7100 | (realize_x_face): X way of realizing faces. | |
7101 | (realize_tty_face): TTY way of realizing faces. | |
7102 | ||
7103 | 1998-08-29 Gerd Moellmann <gerd@gnu.org> | |
7104 | ||
7105 | * xfaces.c (realize_face): Remove parameter unibyte_registry, | |
7106 | compute it instead. | |
7107 | (lookup_face): Remove local variable unibyte_registry. | |
7108 | ||
7109 | 1998-08-22 Gerd Moellmann <gerd@gnu.org> | |
7110 | ||
7111 | * xterm.c (x_draw_glyph_string_relief): Draw top and bottom lines | |
7112 | 1 pixel longer. | |
7113 | ||
7114 | * xdisp.c (face_before_or_after_it_pos): Fix computation | |
7115 | of face in buffer. | |
7116 | ||
7117 | * editfns.c (make_buffer_string_both): If prompt in buffer, | |
7118 | prevent start > end. | |
7119 | ||
7120 | * indent.c (Fvertical_motion): Set current_buffer to window's | |
7121 | buffer if it isn't already. | |
7122 | ||
7123 | 1998-08-21 Gerd Moellmann <gerd@gnu.org> | |
7124 | ||
7125 | * dispextern.h (GLYPH_DEBUG): Use default 0. | |
7126 | ||
7127 | * xdisp.c (it_props): New member `smaller'. | |
7128 | (init_iterator): Initialize it. | |
7129 | (Qsmaller): New. | |
7130 | (push_it): Save value of `smaller' value on the stack. | |
7131 | (pop_it): Restore `smaller' from the stack. | |
7132 | (handle_smaller_prop): New. | |
7133 | (handle_face_prop): Use `smaller' text property to select a | |
7134 | suitable face. | |
7135 | ||
7136 | * dispextern.h (SMALLER_PROP_IDX): New. | |
7137 | (struct it): Add member `smaller'. | |
7138 | ||
7139 | * xfaces.c (smaller_face): New. | |
7140 | ||
7141 | * frame.h (FRAME_WINDOW_WIDTH_ARG): Add bitmap area widths. | |
7142 | ||
7143 | * dispnew.c (allocate_matrices_for_window_redisplay): Compute | |
7144 | total pixel width of window differently. | |
7145 | ||
7146 | * xdisp.c (init_iterator): Compute width of mode line differently. | |
7147 | ||
7148 | * dispextern.h (WINDOW_DISPLAY_PIXEL_WIDTH): Subtract width | |
7149 | of bitmap areas. | |
7150 | ||
7151 | * window.c (Fsplit_window): Include width of bitmap areas in | |
7152 | window width. | |
7153 | (window_internal_width): Subtract width of bitmap areas from | |
7154 | total width. | |
7155 | ||
7156 | 1998-08-18 Gerd Moellmann <gerd@gnu.org> | |
7157 | ||
7158 | * xdisp.c: Functions reordered for better readability. | |
7159 | ||
7160 | * dispnew.c (update_text_area): Handle glyphs with arbitrary | |
7161 | lbearing. | |
7162 | (update_window_tree): Parameter no_scrolling_p removed. | |
7163 | (update_single_window): Ditto. | |
7164 | ||
7165 | * xterm.c (x_get_char_font_and_encoding): Renamed to | |
7166 | x_get_char_face_and_encoding. | |
7167 | ||
7168 | * dispnew.c (update_text_area): Don't call get_glyph_overhangs | |
7169 | if end of current row reached. | |
7170 | ||
7171 | * xterm.c (x_get_glyph_face_and_encoding): New. | |
7172 | (x_get_glyph_overhangs): Call it. | |
7173 | ||
7174 | * xdisp.c (Qshow_trailing_whitespace): New. | |
7175 | (Qtrailing_whitespace): New. | |
7176 | (enum prop_handled): New. | |
7177 | (struct props, it_props): New. | |
7178 | (next_overlay_change): New. Works like Fnext_overlay_change | |
7179 | but doesn't use xmalloc. | |
7180 | (handle_stop): Restructured. | |
7181 | (face_before_or_after_it_pos): Case iteration over a string: fix | |
7182 | handling of face before current position. | |
7183 | ||
7184 | 1998-08-16 Gerd Moellmann <gerd@gnu.org> | |
7185 | ||
7186 | * dispnew.c (adjust_glyph_matrix): Don't optimize matrix | |
7187 | reallocation matrix if fonts_changed_p. | |
7188 | (update_text_area): Handle glyphs with lbearing. | |
7189 | ||
7190 | 1998-08-14 Gerd Moellmann <gerd@gnu.org> | |
7191 | ||
7192 | * xdisp.c (struct props): New. | |
7193 | (it_props): New. | |
7194 | (compute_prop_info): New. | |
7195 | (handle_stop): New. | |
7196 | ||
7197 | * textprop.c (validate_interval_range): Make it externally | |
7198 | visible. | |
7199 | ||
7200 | * dispnew.c (direct_output_for_insert): Remove calls | |
7201 | to compute_stop_pos. | |
7202 | ||
7203 | * dispextern.h (struct it): Remove check_charpos, | |
7204 | next_overlay_pos. Add what_changes. | |
7205 | ||
7206 | 1998-08-10 Gerd Moellmann <gerd@gnu.org> | |
7207 | ||
7208 | * xterm.c (note_mouse_highlight): Set BEGV_BYTE, ZV_BYTE. | |
7209 | ||
7210 | * xfaces.c (Vx_unibyte_registry_and_encoding): Removed. Use | |
7211 | face_default_registry instead. | |
7212 | ||
7213 | * syntax.c (scan_sexps_forward): Set up syntax table before | |
7214 | jumping to initial state label. | |
7215 | ||
7216 | 1998-08-09 Gerd Moellmann <gerd@gnu.org> | |
7217 | ||
7218 | * dispnew.c (check_matrix_invariants): Handle case of row end pos | |
7219 | >= ZV specially. | |
7220 | ||
7221 | 1998-08-08 Gerd Moellmann <gerd@gnu.org> | |
7222 | ||
7223 | * xdisp.c (redisplay_window): Case cursor movement---if cursor | |
7224 | ends up in partially visible row, try to scroll. Case forced | |
7225 | window start---handle windows not tall enough to show a single | |
7226 | line. | |
7227 | ||
7228 | * window.h (struct window): Member dy renamed vscroll. | |
7229 | ||
7230 | * xterm.c (x_list_fonts): Re-activate suppression of scalable | |
7231 | fonts. | |
7232 | (x_draw_stretch_glyph_string): Set clipping if using GC that | |
7233 | hasn't set it yet. | |
7234 | ||
7235 | * xdisp.c (redisplay_window): Case forced window start - | |
7236 | don't let cursor end on partially visible row. Use desired | |
7237 | matrix to find a suitable PT if it doesn't appear. | |
7238 | (decode_mode_spec): Merged with 20.2.97. | |
7239 | (try_window_reusing_current_matrix): Give up if old or | |
7240 | new display is vscrolled. | |
7241 | (redisplay_window): Reset vscrolling if forced window start, | |
7242 | or if recentering. | |
7243 | ||
7244 | 1998-08-06 Gerd Moellmann <gerd@gnu.org> | |
7245 | ||
7246 | * xfaces.c (realize_default_face): Use the fontset name instead of | |
7247 | the alias for the family attribute of the default face because we | |
7248 | can't easily determine a good alias from fontset-alias-alist. | |
7249 | (face_fontset): Use Fquery_fontset to find the fontset. | |
7250 | (font_list): Additional pattern parameter. | |
7251 | (try_font_list): Ditto. | |
7252 | (set_lface_from_font_name): Set face family from font foundry | |
7253 | and family. | |
7254 | (font_list): If family contains a hyphen, build pattern differently. | |
7255 | ||
7256 | 1998-08-05 Gerd Moellmann <gerd@gnu.org> | |
7257 | ||
7258 | * xfaces.c (free_realized_faces): Increment windows_or_buffers_- | |
7259 | changed instead of setting the frame garbaged. | |
7260 | ||
7261 | * xfaces.c (lface_equal_p): Don't assume equal Lisp types for | |
7262 | all attribute values. This is wrong if values are unspecified, | |
7263 | i.e. nil. | |
7264 | ||
7265 | * xdisp.c (try_window_id): Give up if window start changed. | |
7266 | ||
7267 | * xfaces.c (make_realized_face): Store registry as Lisp object. | |
7268 | (load_face_font_or_fontset): Compute registry of a face | |
7269 | differently. Make it `eq' to Vx_unibyte_registry_and_encoding if | |
7270 | possible. | |
7271 | ||
7272 | * dispextern.h (FACE_SUITABLE_FOR_CHARSET_P): Compare registries | |
7273 | differently. | |
7274 | ||
7275 | * alloc.c (mark_face_cache): Mark the registry member of faces. | |
7276 | ||
7277 | * dispextern.h (struct face): Make registry a Lisp string. | |
7278 | ||
7279 | 1998-08-04 Gerd Moellmann <gerd@gnu.org> | |
7280 | ||
7281 | * xterm.c (x_get_char_font_and_encoding): Additional parameter | |
7282 | multibyte_p. Handle unibyte text. | |
7283 | (x_append_glyph): Set the multibyte_p flag of glyphs. | |
7284 | (x_produce_image_glyph): Ditto. | |
7285 | (x_append_stretch_glyph): Ditto. | |
7286 | (x_produce_glyphs): Handle unibyte text like ASCII. | |
7287 | ||
7288 | * xdisp.c (push_it): Save the multibyte flag of an iterator on the | |
7289 | stack. | |
7290 | (pop_it): Restore it. | |
7291 | (face_before_or_after_it_pos): Handle the case that the string or | |
7292 | buffer is unibyte. | |
7293 | (get_overlay_strings): Set the multibyte flag of the iterator if | |
7294 | the new overlay string is multibyte. | |
7295 | (get_glyph_property): Likewise. | |
7296 | (get_next_display_element): Don't check for charset changes in | |
7297 | unibyte text. | |
7298 | (append_space): Compute face differently for unibyte text. | |
7299 | (extend_face_to_end_of_line): Don't return quickly if face has | |
7300 | stipple. | |
7301 | ||
7302 | * xfaces.c (load_face_font_or_fontset): Store registry and | |
7303 | encoding of the font in the registry member of the face. | |
7304 | (make_realized_face): Additional parameter `registry'. | |
7305 | (free_realized_face): Free the registry of a realized face. | |
7306 | (face_suitable_for_charset_p): Function form of the macro | |
7307 | with the same name in uppercase. | |
7308 | (lookup_face): Use Vx_unibyte_registry_and_encoding if charset < 0. | |
7309 | (choose_face_font): New parameter unibyte_registry. | |
7310 | (choose_face_fontset_font): Ditto. | |
7311 | (realize_default_face): Remember the registry and encoding of | |
7312 | the specified frame font in Vx_unibyte_registry_and_encoding. | |
7313 | (face_at_buffer_position): Handle unibyte. | |
7314 | (face_at_string_position): Likewise. | |
7315 | (realize_face): New parameter unibyte_registry. | |
7316 | (compute_char_face): Handle the unibyte case. | |
7317 | ||
7318 | * dispextern.h (struct glyph): Add bit multibyte_p. | |
7319 | (struct face): New member registry holding the registry and | |
7320 | encoding of the X font of the face. | |
7321 | (FACE_UNIBYTE_P): Value is non-zero if face is for unibye text. | |
7322 | (enum face_id): Add BASIC_FACE_ID_SENTINEL. | |
7323 | (FACE_SUITABLE_FOR_CHARSET_P): Handle charset < 0 meansing unibyte | |
7324 | text. | |
7325 | (struct iterator_stack_entry): Add multibyte_p. | |
7326 | ||
7327 | * xdisp.c (string_pos): Use string_char_to_byte. | |
7328 | (char_charset): Removed. | |
7329 | ||
7330 | 1998-08-03 Gerd Moellmann <gerd@gnu.org> | |
7331 | ||
7332 | * xterm.c (x_draw_image_glyph_string_foreground): Draw a | |
7333 | rectangle for a block cursor over an image without a mask. | |
7334 | (x_stretch_block_cursor): Added. Non-zero means don't draw | |
7335 | a block cursor over a stretch as wide as that stretch. | |
7336 | (x_draw_stretch_glyph_string): Use it. | |
7337 | (x_draw_hollow_cursor): Ditto. | |
7338 | ||
7339 | * minibuf.c (read_minibuf): Use minibuf_prompt instead of prompt. | |
7340 | (read_minibuf): Add front-sticky text property for prompt. | |
7341 | ||
7342 | * xdisp.c (char_charset): Return charset of a character, | |
7343 | depending on whether or not multi-byte characters are enabled. | |
7344 | ||
7345 | * xfaces.c (Fset_face_charset_registry): Removed. | |
7346 | (x_charset_registry): Determine registry from charset plist. | |
7347 | ||
7348 | 1998-08-02 Gerd Moellmann <gerd@gnu.org> | |
7349 | ||
7350 | * xdisp.c (get_next_display_element): Don't check for charset | |
7351 | changes if multi-byte characters are not enabled. | |
7352 | ||
7353 | * xdisp.c (echo_area_display): Use the flush function from the | |
7354 | redisplay interface. | |
7355 | * keyboard.c (detect_input_pending_run_timers): Likewise. | |
7356 | ||
7357 | * dispextern.h (produce_*glyphs_hook): Removed. | |
7358 | * term.c (produce_*glyphs): Ditto. | |
7359 | (cursor_to): Remove pixel position parameters. | |
7360 | ||
7361 | * dispnew.c: Remove hooks for window-based redisplay, introduce | |
7362 | a redisplay interface structure. | |
7363 | ||
7364 | * xterm.c (x_per_char_metric): Return default char metrics if per | |
7365 | char metric exists but contains a zero width. Adobe Courier seems | |
7366 | to contain such characters. | |
7367 | ||
7368 | * xdisp.c (compute_line_metrics): Compute the width of rows | |
7369 | without stopping at glyphs with zero width. | |
7370 | ||
7371 | 1998-08-01 Gerd Moellmann <gerd@gnu.org> | |
7372 | ||
7373 | * xdisp.c (display_mode_line): If nothing was displayed at all, | |
7374 | display a space. | |
7375 | (hscroll_window_tree): Don't subtract 1 from target point if equal | |
7376 | to ZV and window is not the selected window. | |
7377 | ||
7378 | * dispnew.c (check_matrix_invariants): Remove check for window | |
7379 | start at BEGV or after newline. This happens in rare cases | |
7380 | intentionally. | |
7381 | ||
7382 | 1998-07-31 Gerd Moellmann <gerd@gnu.org> | |
7383 | ||
7384 | * xfaces.c (x_charset_registry): Use STRING_BYTES. | |
7385 | (syms_of_xfaces): Add Vface_default_registry. | |
7386 | (x_charset_registry): Use it. | |
7387 | ||
7388 | * xdisp.c (run_window_scroll_functions): Run window scroll functions. | |
7389 | (redisplay_window): Use it. | |
7390 | ||
7391 | * dispnew.c (update_text_area): Handle lbearing of deleted text | |
7392 | by backing up one character. | |
7393 | ||
7394 | 1998-07-30 Gerd Moellmann <gerd@gnu.org> | |
7395 | ||
7396 | * dispnew.c (adjust_glyph_matrix): Use a different check to | |
7397 | decide to do nothing. | |
7398 | ||
7399 | * xfaces.c (face_at_string_position): Additional parameter | |
7400 | mode_line_p. If non-zero, merge with the mode line face | |
7401 | instead of the default face. | |
7402 | * dispextern.h (struct it): Add mode_line_p. | |
7403 | * xdisp.c (init_iterator): Set it. | |
7404 | (compute_face_in_string): Use it. | |
7405 | (face_before_or_after_it_pos): Handle strings. | |
7406 | (get_next_display_element): Don't look for relief end in C strings. | |
7407 | (next_element_from_string): Deliver string position instead of | |
7408 | buffer position. | |
7409 | ||
7410 | * xterm.c (x_flush): Flush X output buffer. | |
7411 | (XTflash): Use it. | |
7412 | ||
7413 | * xfaces.c (lface_from_face_name): Renamed from lface_from_symbol. | |
7414 | Allow strings as face names. | |
7415 | ||
7416 | * xfns.c (forall_images_in_image_cache): Check that frame is | |
7417 | alive. | |
7418 | ||
7419 | * widget.c (EmacsFrameDestroy): Remove call to free_frame_faces; | |
7420 | it's also called from x_destroy_window. Since this function is | |
7421 | called from X, freeing stuff allocated with xmalloc is dangerous | |
7422 | here, anyway. | |
7423 | ||
7424 | * xfaces.c (free_realized_faces): Don't clear current matrices | |
7425 | of a frame being destroyed. | |
7426 | ||
7427 | * frame.c (make_frame): Call set_window_buffer instead of | |
7428 | Fset_window_buffer. | |
7429 | ||
7430 | * window.c (set_window_buffer): Extracted from Fset_window_buffer, | |
7431 | with an additional argument specifying whether or not hooks may | |
7432 | be called. | |
7433 | (Fset_window_buffer): Call it. | |
7434 | ||
7435 | * dispnew.c (clear_desired_matrices): Check that frame has | |
7436 | a valid root window before clearing matrices in the window tree. | |
7437 | (clear_current_matrices): Ditto. | |
7438 | (clear_window_matrices): If GLYPH_DEBUG, check that hchild and | |
7439 | vchild are valid windows if not nil. | |
7440 | ||
7441 | * xfaces.c (merge_face_vector_with_property): Allow :reverse-video | |
7442 | for :inverse-video. | |
7443 | (Finternal_set_lisp_face_attribute): Ditto. | |
7444 | (Finternal_set_lisp_face_attribute_from_resource): Ditto. | |
7445 | (Finternal_get_lisp_face_attribute): Ditto. | |
7446 | (Finternal_lisp_face_attribute_values): Ditto. | |
7447 | (syms_of_xfaces): Define the symbol `:reverse-video'. | |
7448 | ||
7449 | * xdisp.c (get_glyph_property): Renamed from | |
7450 | fill_iterator_from_glyph_property. | |
7451 | (next_element_from_buffer): Handle case that no `glyph' property | |
7452 | was found correctly. | |
7453 | (display_line): Extend face to end of line only if we have faces. | |
7454 | ||
7455 | 1998-07-29 Gerd Moellmann <gerd@gnu.org> | |
7456 | ||
7457 | * dispnew.c (Fshow_cursor): Renamed from blink_cursor. Take | |
7458 | additional window argument. | |
7459 | ||
7460 | * xdisp.c (reseat_at_previous_visible_line_start): Renamed from | |
7461 | set_iterator_to_previous_visible_line_start. | |
7462 | (reseat_at_next_visible_line_start): Likewise. | |
7463 | (compute_stop_pos): Renamed from set_iterator_stop_pos. | |
7464 | (face_before_or_after_it_pos): Renamed from get_face_at_it_pos. | |
7465 | (compute_face_in_buffer): Renamed from | |
7466 | compute_face_at_iterator_position. | |
7467 | (compute_face_in_string): Renamed from | |
7468 | compute_face_at_iterator_string_position. | |
7469 | (get_space_width): Renamed from get_iterator_space_width. | |
7470 | (next_overlay_string): Renamed from | |
7471 | set_iterator_to_next_overlay_string. | |
7472 | (get_overlay_strings): Renamed from | |
7473 | get_overlay_strings_at_iterator_position. | |
7474 | (restore_overlay_strings): Renamed from | |
7475 | setup_overlay_strings_from_glyph_pos. | |
7476 | (restore_dpvec): Renamed from setup_iterator_dpvec_from_glyph_pos. | |
7477 | (init_from_display_pos): Renamed from init_iterator_from_glyph_pos. | |
7478 | (init_to_row_start): Renamed from init_iterator_to_row_start. | |
7479 | (init_to_row_end): Formerly init_iterator_to_next_row_start. | |
7480 | ||
7481 | * xterm.c: Merge with 20.2.97. | |
7482 | (x_produce_glyphs): Use x_append_stretch_glyph for tabs. | |
7483 | ||
7484 | * dispextern.h (struct glyph): Replace text_pos position with | |
7485 | simple charpos. | |
7486 | ||
7487 | * xdisp.c (this_line_start_pos): Use struct text_pos. | |
7488 | (this_line_end_pos): Renamed from .*endpos; use struct text_pos. | |
7489 | (enum move_it_result): Renamed from move_iterator_result. | |
7490 | (string_pos_nchars_ahead): Compute text_pos in a string from a | |
7491 | known text_pos plus a character delta. | |
7492 | (string_pos): Compute text_pos in string from charpos. | |
7493 | (c_string_pos): Likewise for a C string. | |
7494 | (number_of_chars): Return number of characters in a possibly | |
7495 | multi-byte C string. | |
7496 | (check_it): Renamed from check_iterator. Check that charpos and | |
7497 | bytepos are in sync. | |
7498 | (push_it): Renamed from save_iterator_settings. | |
7499 | (pop_it): Renamed from restore_iterator_settings. | |
7500 | (move_it_.*): Renamed from move_iterator_.*. | |
7501 | (charset_at_position): Take charpos/bytepos into account. | |
7502 | (back_to_previous_line_start): Set iterator to previous line start. | |
7503 | (forward_to_next_line_start): Set iterator to next line start. | |
7504 | (back_to_previous_visible_line_start): Renamed from | |
7505 | move_iterator_previous_visible_line_start. | |
7506 | (set_iterator_to_next_visible_line_start): Handle charpos/bytepos. | |
7507 | (get_face_at_it_pos): Renamed from get_face_from_cursor_pos. | |
7508 | Handle charpos/bytepos. | |
7509 | (compute_face_at_iterator_position): Handle charpos/bytepos. | |
7510 | (compute_face_at_iterator_string_position): Likewise. | |
7511 | (get_iterator_space_width): Likewise. | |
7512 | (load_overlay_strings): Likewise. | |
7513 | (get_overlay_strings_at_iterator_position): Likewise. | |
7514 | (reseat_iterator): Take a text_pos position argument. | |
7515 | (setup_iterator_overlay_strings_from_glyph_pos): Handle charpos/ | |
7516 | bytepos. | |
7517 | (init_iterator): Take additional bytepos parameter. | |
7518 | (reseat_iterator_to_string): Handle charpos/bytepos. | |
7519 | (start_display): Take a text_pos parameter. Handle charpos/bytepos. | |
7520 | (next_element_from_string): Handle charpos/bytepos. | |
7521 | (next_element_from_c_string): Likewise. | |
7522 | (fill_iterator_from_glyph_property): Likewise. | |
7523 | (next_element_from_buffer): Likewise. | |
7524 | (set_iterator_to_next): Increment charpos and bytepos of an iterator. | |
7525 | (move_iterator_in_display_line_to): Handle charpos/bytepos. | |
7526 | (move_it_to): Likewise. | |
7527 | (move_it_vertically_backward): Likewise. | |
7528 | (move_it_vertically): Likewise. | |
7529 | (move_it_by_lines): Likewise. | |
7530 | (hscroll_window_tree): Likewise. | |
7531 | (redisplay_internal): Likewise. | |
7532 | (set_cursor_from_row): Likewise. | |
7533 | (redisplay_window): Likewise. | |
7534 | (try_window): Take a text_pos parameter. Handle charpos/bytepos. | |
7535 | (try_window_reusing_current_matrix): Handle charpos/bytepos. | |
7536 | (get_first_unchanged_at_end_row): Compute and return delta_bytes. | |
7537 | (try_window_id): Handle charpos/bytepos. | |
7538 | (Ftrace_redisplay_toggle): Return Qnil. | |
7539 | (get_overlay_arrow_glyph_row): Handle charpos/bytepos. | |
7540 | (insert_left_trunc_glyphs): Likewise. | |
7541 | ||
7542 | * dispnew.c: `Merge' with 20.2.97 (it's really too different to | |
7543 | do a real merge). | |
7544 | (increment_glyph_matrix_buffer_positions): Add parameter delta_bytes. | |
7545 | (increment_glyph_row_buffer_positions): Ditto. | |
7546 | (copy_glyph_row_contents): Ditto. | |
7547 | (check_matrix_invariants): Add additional checks for charpos/ | |
7548 | bytepos consistency. | |
7549 | (direct_output_for_insert): Changed for charpos/bytepos. | |
7550 | (buffer_posn_from_coords): Likewise. Put code dealing with | |
7551 | `direction-reversed' in #if 0. | |
7552 | ||
7553 | * xterm.h: Merge with 20.2.97. | |
7554 | ||
7555 | * frame.h: Merge with 20.2.97. | |
7556 | ||
7557 | * window.h: Merge with 20.2.97. Add window_end_bytepos. | |
7558 | ||
7559 | * dispextern.h (MATRIX_ROW_START_CHARPOS): Get charpos of a row | |
7560 | start. | |
7561 | (MATRIX_ROW_START_BYTEPOS): Likewise for the byte position. | |
7562 | (MATRIX_ROW_END_CHARPOS): Likewise for the row end. | |
7563 | (MATRIX_ROW_END_BYTEPOS): Likewise for the row end byte position. | |
7564 | (struct it): Various members renamed from .*pos to .*charpos. | |
7565 | (IT_CHARPOS): Access current buffer character position of an | |
7566 | iterator. | |
7567 | (IT_BYTEPOS): Access current buffer byte position of an iterator. | |
7568 | (IT_STRING_CHARPOS): Access current string character position of | |
7569 | an iterator. | |
7570 | (IT_STRING_BYTEPOS): Access current string byte position of | |
7571 | an iterator. | |
7572 | (globally): Add function prototypes from 20.2.97. | |
7573 | ||
7574 | * everywhere: Use P_ instead of PROTO for function prototypes | |
7575 | because everyone else seems to use P_. | |
7576 | ||
7577 | * dispextern.h (struct text_pos): Structure describing a charpos/ | |
7578 | bytepos position in text. | |
7579 | (BYTEPOS): Access the byte position part of a text_pos. | |
7580 | (CHARPOS): Likewise for the character position. | |
7581 | (SET_TEXT_POS): Set a text_pos from a character and byte position. | |
7582 | (INC_TEXT_POS, DEC_TEXT_POS): Increment/decrement a text position. | |
7583 | (SET_TEXT_POS_FROM_MARKER): Set a text_pos from a marker. | |
7584 | (SET_MARKER_FROM_TEXT_POS): Set a marker from a text_pos. | |
7585 | (TEXT_POS_EQUAL_P): Compare two text_pos structures for equality. | |
7586 | (struct display_pos): Renamed from glyph_pos. Use struct text_pos | |
7587 | for buffer and string positions. | |
7588 | (struct glyph): Use text_pos. | |
7589 | (struct it): Renamed from display_iterator. Use text_pos. | |
7590 | ||
7591 | 1998-07-23 Gerd Moellmann <gerd@gnu.org> | |
7592 | ||
7593 | * xfns.c (x_kill_gs_process): Get image colors from XImage of a | |
7594 | pixmap. | |
7595 | ||
7596 | 1998-07-21 Gerd Moellmann <gerd@gnu.org> | |
7597 | ||
7598 | * dispextern.h (struct glyph_row): New flag indicate_zv_line_p. | |
7599 | * xterm.c (x_draw_row_bitmaps): Use it. | |
7600 | * dispnew.c (row_equal_p): Ditto. | |
7601 | (update_window_line): Ditto. | |
7602 | ||
7603 | * xfns.c (prepare_image_for_display): Don't set loading_failed_p | |
7604 | flag of images. | |
7605 | ||
7606 | * dispextern.h (struct image): Removed member loading_failed_p. | |
7607 | It's probably better to have the chance to try to load an image | |
7608 | again. | |
7609 | ||
7610 | 1998-07-20 Gerd Moellmann <gerd@gnu.org> | |
7611 | ||
7612 | * xterm.c (x_draw_bitmap): Draw bitmap for empty lines ending | |
7613 | at ZV if `indicate-zv-lines' is non-nil. | |
7614 | (x_draw_row_bitmaps): Compute bitmap for `indicate-zv-lines'. | |
7615 | ||
7616 | * dispnew.c (row_equal_p): Compare displays_text_p and | |
7617 | ends_at_zv_p flags of rows. | |
7618 | (update_window_line): Ditto. | |
7619 | ||
7620 | * buffer.h (struct buffer): New member indicate_zv_lines. | |
7621 | ||
7622 | * buffer.c (init_buffer_once): Add default for `indicate-zv-lines'. | |
7623 | (init_buffer_once): New variable `default-indicate-zv-lines'. | |
7624 | (syms_of_buffer): New buffer-local varianle `indicate-zv-lines'. | |
7625 | ||
7626 | * xdisp.c (redisplay_window): Don't try moving the cursor | |
7627 | if current glyph row w->last_cursor.vpos isn't enabled. | |
7628 | ||
7629 | * xterm.c (bitmap_type): Add ZV_LINE_BITMAP. | |
7630 | ||
7631 | * window.c (Fset_window_vscroll): Allow only negative scroll | |
7632 | values. Others don't seem to make sense, and this way it's easy | |
7633 | to restore a vscroll of zero. | |
7634 | ||
7635 | * xterm.c (x_inverted_image_mask): Check that pixmap could be | |
7636 | allocated. | |
7637 | (x_draw_image_glyph_string_background): Don't clip if pixmap | |
7638 | could not be created. | |
7639 | ||
7640 | * xfns.c (xbm_load_image_from_file): Check that pixmap could | |
7641 | be created. | |
7642 | (xbm_load): Ditto. | |
7643 | (gs_load): Ditto. | |
7644 | ||
7645 | * xterm.c (x_get_glyph_overhangs): Take image and stretch | |
7646 | glyphs into account. | |
7647 | ||
7648 | * xfaces.c (realize_default_face): Don't set font family of | |
7649 | the default face from the fontset alias name for `fontset-startup'. | |
7650 | ||
7651 | * xfns.c (gs_load): Pass frame's pixel foreground and background | |
7652 | color to the Lisp loader. | |
7653 | ||
7654 | 1998-07-19 Gerd Moellmann <gerd@gnu.org> | |
7655 | ||
7656 | * xfns.c (tiff_image_p, tiff_load): Support TIFF images via | |
7657 | libtiff34. | |
7658 | ||
7659 | * configure.in (--with-tiff, HAVE_TIFF): Added. | |
7660 | ||
7661 | * config.in (HAVE_TIFF): Added. | |
7662 | ||
7663 | * Makefile.in (LIBTIFF): Added. | |
7664 | ||
7665 | * xfns.c (jpeg_image_p, jpeg_load): Support JPEG images. | |
7666 | ||
7667 | * Makefile.in (LIBJPEG): Added. | |
7668 | ||
7669 | * xfns.c (resource_types): Enumerators renamed to RES_TYPE_NUMBER, | |
7670 | RES_TYPE_BOOLEAN etc. because of conflict of `boolean' with | |
7671 | jpeglib.h. | |
7672 | ||
7673 | * configure.in (HAVE_JPEG, --with-jpeg): Added. On systems | |
7674 | where the library is installed in /usr/local/lib, e.g. FreeBSD, | |
7675 | configure must be run with `--x-includes=/usr/X11R6/include: | |
7676 | /usr/local/include --x-libraries=/usr/X11R6/lib:/usr/local/lib'. | |
7677 | ||
7678 | 1998-07-18 Gerd Moellmann <gerd@gnu.org> | |
7679 | ||
7680 | * config.in (HAVE_JPEG): Added. | |
7681 | ||
7682 | * xfns.c (ct_init): Initialize color table used to map RGB colors | |
7683 | from images to X pixel colors. | |
7684 | (ct_free): Free color table. | |
7685 | (ct_lookup): Look an RGB color up. | |
7686 | (ct_allocated_colors): Get vector of allocated colors. | |
7687 | (pbm_image_p): Test if image specification is a valid PPM | |
7688 | image specification. | |
7689 | (pbm_scan_number): Scan a decimal ASCII number from a file. | |
7690 | (pbm_load): Load a PPM image. | |
7691 | ||
7692 | * window.c (Fset_window_vscroll): Adjust glyph matrix if | |
7693 | necessary. Take canonical character units as parameter. | |
7694 | (Fwindow_vscroll): Return canonical character units. | |
7695 | ||
7696 | * dispnew.c (allocate_matrices_for_window_redisplay): Add negative | |
7697 | w->dy to display height for which glyph rows must be allocated. | |
7698 | ||
7699 | 1998-07-17 Gerd Moellmann <gerd@gnu.org> | |
7700 | ||
7701 | * xfaces.c (face_at_string_position): Merge in region face | |
7702 | so that it won't overwrite the font in the region. | |
7703 | (face_at_buffer_position): Ditto. | |
7704 | (realize_basic_faces): Don't realize region face. | |
7705 | ||
7706 | * dispextern.h (enum face_id): REGION_FACE_ID removed. | |
7707 | ||
7708 | * xterm.c (x_set_glyph_string_background_width): Don't let | |
7709 | cursor face extend to end of line. | |
7710 | ||
7711 | * xdisp.c (append_space): If adding space of default face, | |
7712 | make sure glyph ist produced with right face. | |
7713 | ||
7714 | * xterm.c (x_clear_glyph_string_rect): Draw a rectangle in the | |
7715 | background color of a glyph string. | |
7716 | (x_draw_glyph_string_background): Call it. | |
7717 | (x_draw_glyph_string_bg_rect): Ditto. | |
7718 | (x_draw_stretch_glyph_string): Ditto. | |
7719 | ||
7720 | 1998-07-15 Gerd Moellmann <gerd@gnu.org> | |
7721 | ||
7722 | * xdisp.c (init_iterator): Initialize it->current_y to the | |
7723 | window's vscroll w->dy. | |
7724 | ||
7725 | * window.c (Fwindow_vscroll): Return number of pixels window | |
7726 | is vscrolled smoothly. | |
7727 | (Fset_window_vscroll): Set the number. | |
7728 | ||
7729 | * xdisp.c (move_iterator_to): Recognize case MOVE_TO_POS and | |
7730 | to_pos in truncated part of a line. | |
7731 | ||
7732 | 1998-07-14 Gerd Moellmann <gerd@gnu.org> | |
7733 | ||
7734 | * xdisp.c (move_iterator_in_display_line_to): If very first glyph | |
7735 | doesn't fit on the line, truncate it, despite truncate_lines nil. | |
7736 | (display_line): Ditto. | |
7737 | ||
7738 | * xfns.c: Experimental support for Ghostscript images. | |
7739 | ||
7740 | * xterm.c (x_term_init): Initialize new atoms DONE and PAGE. | |
7741 | (XTread_socket): React on events from Ghostscript. | |
7742 | (expose_frame): If width or height are zero, redraw entire frame. | |
7743 | (XTread_socket): Call expose_frame after receiving event from | |
7744 | Ghostscript. | |
7745 | ||
7746 | * xterm.h (struct x_display_info): Add atoms DONE and PAGE | |
7747 | for Ghostscript support. | |
7748 | ||
7749 | * xdisp.c (redisplay_internal): Return quickly if called | |
7750 | recursively. | |
7751 | ||
7752 | * alloc.c (NSTATICS): Increased to 1024. | |
7753 | ||
7754 | 1998-07-08 Gerd Moellmann <gerd@gnu.org> | |
7755 | ||
7756 | * xterm.c (x_append_stretch_glyph): Append a stretch glyph to an | |
7757 | iterator's glyph row. | |
7758 | (x_produce_stretch_glyph): Call it. | |
7759 | (x_produce_glyphs): Handle `space-width' property; call | |
7760 | x_append_stretch_glyph. | |
7761 | ||
7762 | * xdisp.c (syms_of_xdisp): Add symbol `space-width' used as a text | |
7763 | property. | |
7764 | (get_iterator_space_width): Determine value of `space-width' | |
7765 | property at iterator's position. | |
7766 | (reseat_iterator): Call it. | |
7767 | (next_element_from_string): Ditto. | |
7768 | (next_element_from_buffer): Ditto. | |
7769 | (init_iterator): Initialize space_width of iterator. | |
7770 | (redisplay_internal): Don't goto end_of_redisplay if PT hasn't | |
7771 | moved, but cursor blinks. | |
7772 | (redisplay_internal): Set w->last_cursor_off_p after update. | |
7773 | ||
7774 | * dispextern.h (enum iterator_prop_idx): Add SPACE_WIDTH_PROP_IDX. | |
7775 | (struct display_iterator): Add new member space_width. | |
7776 | ||
7777 | * window.h (struct window): Add last_cursor_off_p. | |
7778 | ||
7779 | 1998-07-07 Gerd Moellmann <gerd@gnu.org> | |
7780 | ||
7781 | * Saved. | |
7782 | ||
7783 | * window.c (Fpos_visible_in_window_p): Case window not up to | |
7784 | date---return nil if iterator hasn't reached position. | |
7785 | ||
7786 | 1998-07-06 Gerd Moellmann <gerd@gnu.org> | |
7787 | ||
7788 | * xdisp.c (text_outside_line_unchanged_p): Fix case that | |
7789 | overlays have changed. | |
7790 | (redisplay_window): Case cursor movement. Don't try it if | |
7791 | last_cursor.vpos is out of range. | |
7792 | ||
7793 | * xdisp.c (set_cursor_from_row): Set this_line_.* variables. This | |
7794 | way, the display optimization for the line containing the cursor | |
7795 | is used more frequently, esp. when we have a blinking cursor. | |
7796 | (display_line): Don't set this_line_.* variables. | |
7797 | ||
7798 | * xterm.c (x_redraw_cursor): Removed. | |
7799 | (x_display_and_set_cursor): Set cursor type depending on | |
7800 | cursor_off_p flag of window. | |
7801 | ||
7802 | * dispnew.c (redraw_cursor_hook): Removed. | |
7803 | (Fblink_cursor): Additional parameter on_p to set the cursor_off_p | |
7804 | member of the selected window. | |
7805 | ||
7806 | * xfaces.c (Fface_font): Added for compatibility with 20.2. | |
7807 | ||
7808 | * xterm.c (x_y_to_hpos_vpos): Return null if not over text. | |
7809 | Return glyph area under x/y. | |
7810 | (note_mouse_highlight): Use x_y_to_hpos_vpos in its new form. | |
7811 | ||
7812 | * keyboard.c (detect_input_pending_run_timers): Call gobble_input | |
7813 | after redisplaying. | |
7814 | ||
7815 | 1998-07-05 Gerd Moellmann <gerd@gnu.org> | |
7816 | ||
7817 | * xdisp.c (text_outside_line_unchanged_p): Test if changes | |
7818 | are all outside of a line of text. | |
7819 | (redisplay_internal): Use it. | |
7820 | ||
7821 | 1998-06-30 Gerd Moellmann <gerd@gnu.org> | |
7822 | ||
7823 | * xdisp.c (next_element_from_buffer): After skipping over | |
7824 | invisible text, look for the `glyph' property. | |
7825 | (set_iterator_stop_pos): Ignore check positions in front | |
7826 | of an iterator's current position. | |
7827 | ||
7828 | * xterm.c (show_mouse_face): Don't act on rows that don't exist | |
7829 | anymore or which are marked as not having valid contents. | |
7830 | ||
7831 | * xfaces.c (Finternal_set_lisp_face_attribute): Don't free | |
7832 | realized faces if new attribute value is equal to old value. | |
7833 | ||
7834 | 1998-06-29 Gerd Moellmann <gerd@gnu.org> | |
7835 | ||
7836 | * xfaces.c (Finternal_make_lisp_face): Increment | |
7837 | lface_id_to_name_size when lface_id_to_name is reallocated. | |
7838 | ||
7839 | 1998-06-27 Gerd Moellmann <gerd@gnu.org> | |
7840 | ||
7841 | * xdisp.c (set_iterator_stop_pos): Compute initial stop_pos | |
7842 | as minimum of endpos and overlay_pos. | |
7843 | (load_overlay_strings): Set next_overlay_pos of iterator to | |
7844 | -1 if we don't have to check for more overlay strings. | |
7845 | ||
7846 | 1998-05-09 Gerd Moellmann <gerd@gnu.org> | |
7847 | ||
7848 | * xdisp.c (set_iterator_to_next_visible_line_start): Don't | |
7849 | do anything if iterator is at ZV because scan_buffer doesn't | |
7850 | work otherwise. | |
7851 | ||
7852 | * xterm.c (x_encode_char): Inline it. | |
7853 | (x_get_char_font_and_encoding): Simplified. | |
7854 | (x_per_char_metric): Inline it. | |
7855 | ||
7856 | * xterm.c (x_draw_glyph_string_relief): Use clipping. | |
7857 | ||
7858 | * xdisp.c (get_next_display_element): Check for end of relief | |
7859 | face moved here from next_element_from_buffer. | |
7860 | ||
7861 | * xterm.c (x_produce_image_glyph): Add relief thickness. | |
7862 | (x_produce_stretch_glyph): Ditto. | |
7863 | ||
7864 | 1998-05-08 Gerd Moellmann <gerd@gnu.org> | |
7865 | ||
7866 | * xdisp.c (fill_iterator_from_glyph_property): Handle glyph | |
7867 | property value (space :width WIDTH :height HEIGHT :ascent ASCENT). | |
7868 | ||
7869 | * xterm.c (x_produce_stretch_glyph): Produce a stretch glyph | |
7870 | from a glyph property. | |
7871 | (x_produce_glyphs): Use it. | |
7872 | ||
7873 | * xdisp.c (set_iterator_to_next): Handle next_element_from_stretch. | |
7874 | ||
7875 | * xterm.c (x_produce_image_glyph): Add to current_x only if | |
7876 | in text area. | |
7877 | (x_produce_glyphs): Ditto. | |
7878 | ||
7879 | * xdisp.c (display_line): Compute row height from glyphs in | |
7880 | marginal areas. | |
7881 | ||
7882 | * xterm.c (x_draw_image_glyph_string_background): Draw | |
7883 | background of an image glyph string. | |
7884 | (x_draw_glyph_string_bg_rect): Draw a rectangular region of | |
7885 | the background of a glyph string. | |
7886 | (x_draw_image_glyph_string_foreground): Draw the foreground of | |
7887 | an image glyph string. | |
7888 | (x_inverted_image_mask): Return the inverted mask of an image. | |
7889 | ||
7890 | * xfns.c (x_draw_image): Removed. | |
7891 | ||
7892 | * dispextern.h (struct image_type): Remove drawing function. | |
7893 | ||
7894 | * xfaces.c (load_face_colors): Swap colors if face is inverse. | |
7895 | ||
7896 | * xdisp.c (get_next_display_element): In marginal areas, translate | |
7897 | newlines, tabs, etc. like normal control characters. | |
7898 | ||
7899 | * xfaces.c (Fface_color_supported_p): Transpose parameters frame | |
7900 | and color. | |
7901 | (free_realized_faces): Set frame garbaged. | |
7902 | ||
7903 | * xfaces.c (syms_of_xfaces): Add defsubr for | |
7904 | internal-lisp-face-attribute-values. | |
7905 | ||
7906 | 1998-05-07 Gerd Moellmann <gerd@gnu.org> | |
7907 | ||
7908 | * xterm.c (x_produce_image_glyph): Don't add glyph if area is | |
7909 | full. | |
7910 | (x_produce_image_glyph): Set IT->nglyphs to 1. | |
7911 | (x_draw_image_glyph_string): Use inverted mask to draw background. | |
7912 | ||
7913 | * dispextern.h (struct image_type): Additional clipping rect | |
7914 | parameters for drawing functions. | |
7915 | ||
7916 | * xterm.c (x_get_glyph_string_clip_rect): Get clip rect for | |
7917 | a glyph string. | |
7918 | (x_draw_image_glyph_string): Use it and pass the rect to the | |
7919 | image drawing function. | |
7920 | ||
7921 | * xdisp.c (fill_iterator_from_glyph_property): Use position of | |
7922 | first character with `glyph' property as image position. Set | |
7923 | iterator back to that position as long as the image hasn't been | |
7924 | consumed with set_iterator_to_next. | |
7925 | (set_cursor_from_row): Accept when glyph with given position is | |
7926 | not found in the row. Set cursor x to end of line in that case, | |
7927 | so that we can hscroll. | |
7928 | (redisplay_internal): Correct computation of delta by which | |
7929 | positions have changed in redisplay optimization for cursor | |
7930 | row of selected window. | |
7931 | ||
7932 | * xdisp.c (display_line): Remove start_pos. | |
7933 | (display_line): Fix bug preventing display optimization for | |
7934 | cursor line of selected window. | |
7935 | (next_element_from_buffer): Avoid XSETBUFFER, use it->w->buffer | |
7936 | instead. | |
7937 | ||
7938 | * dispnew.c (update_text_area): Use GLYPH_EQUAL_P. | |
7939 | (update_text_area): Take glyph pixel width into account | |
7940 | when trying to find a resync point. | |
7941 | (row_equal_p): Compare glyphs in all areas. | |
7942 | ||
7943 | 1998-05-06 Gerd Moellmann <gerd@gnu.org> | |
7944 | ||
7945 | * xterm.c (x_produce_glyphs): Don't add glyph if area is full. | |
7946 | ||
7947 | * dispextern.h (struct glyph_row): Use unsigned hash value. | |
7948 | ||
7949 | * xdisp.c (display_line): Simplified and made faster by setting | |
7950 | the cursor with set_cursor_from_row. | |
7951 | (set_cursor_from_row): Handle rows of desired matrix. | |
7952 | ||
7953 | 1998-05-05 Gerd Moellmann <gerd@gnu.org> | |
7954 | ||
7955 | * xdisp.c (set_cursor_from_row): Don't put cursor on glyphs | |
7956 | with type != CHAR_GLYPH. | |
7957 | (fill_iterator_from_glyph_property): Return void. Set | |
7958 | method to next_element_from_image. | |
7959 | (next_element_from_image): Dummy function for delivering a | |
7960 | single image id. | |
7961 | (set_iterator_to_next): Add method next_element_from_image. | |
7962 | (redisplay_window): When recentering, and cursor vpos is -1 | |
7963 | after display, assume middle of window is in first line displayed | |
7964 | in window, and display again. | |
7965 | (fill_iterator_from_glyph_property): Assign image glyph | |
7966 | the position of the first character having the glyph property. | |
7967 | ||
7968 | * dispextern.h (IMAGE_ASCENT): Compute ascent of image. | |
7969 | * xfns.c (x_draw_image): Use it. | |
7970 | * xterm.c (x_produce_image_glyph): Use it. | |
7971 | ||
7972 | * xterm.c (x_produce_image_glyph): Set iterator's pixel_width. | |
7973 | ||
7974 | * Makefile.in: Extraneous #define of LIBXPM removed. | |
7975 | ||
7976 | * xterm.c (x_produce_glyphs): Produce a STRETCH_GLYPH for tabs. | |
7977 | (x_fill_stretch_glyph_string): Fill a glyph string from a | |
7978 | stretch glyph. | |
7979 | (x_compute_glyph_string_overhangs): Compute overhangs only | |
7980 | for text glyph strings. | |
7981 | (x_draw_stretch_glyph_string): Draw a stretch glyph string. | |
7982 | (x_draw_glyph_string): Call it. | |
7983 | ||
7984 | * dispextern.h (glyph_type): Add STRETCH_GLYPH. | |
7985 | (struct glyph): Add sub-structure for stretchable glyphs. | |
7986 | (GLYPH_EQUAL_P): Compare glyph type and u.val. | |
7987 | ||
7988 | * xdisp.c (get_overlay_arrow_glyph_row): Put face code into | |
7989 | #ifdef HAVE_FACES. | |
7990 | ||
7991 | * xterm.c (x_produce_glyphs): Use ASCII face for spaces of a TAB. | |
7992 | ||
7993 | * xdisp.c (fill_iterator_from_glyph_property): Renamed from | |
7994 | setup_iterator_from_glyph_property. Don't do it for terminal | |
7995 | frames. | |
7996 | ||
7997 | * xterm.c (x_produce_image_glyph): Produce glyph for image | |
7998 | that can't be loaded. | |
7999 | ||
8000 | * xfns.c (lookup_image): If image can't be loaded, set its | |
8001 | width and height so that we can draw a rectangle. | |
8002 | (x_draw_image): Draw a rectangle for images that don't have | |
8003 | a pixmap. | |
8004 | (make_image): Set hash value. | |
8005 | (image_spec_equal_p): Use image_spec_value. | |
8006 | ||
8007 | * xterm.c (expose_frame): Don't try to redraw if basic faces | |
8008 | haven't benn realized yet. | |
8009 | (x_draw_image_glyph_string): Fill background only if image | |
8010 | is not as tall as row. | |
8011 | ||
8012 | 1998-05-04 Gerd Moellmann <gerd@gnu.org> | |
8013 | ||
8014 | * Makefile.in (LIBXPM): If not already defined, define to -lXpm. | |
8015 | (LIBX)[HAVE_X11]: Add LIBXPM. | |
8016 | ||
8017 | * xfns.c (xpm_image_p): Implementation of image type functions | |
8018 | for XPM. | |
8019 | (xpm_load): Ditto. | |
8020 | ||
8021 | * dispextern.h (struct image): Add mask pixmap for XPM. | |
8022 | ||
8023 | * xfns.c (x_draw_image): Handle images with masks. | |
8024 | ||
8025 | * configure.in: --with-xpm added. Code detecting -lXpm added. | |
8026 | ||
8027 | * config.in: Add HAVE_XPM. | |
8028 | ||
8029 | * xfns.c (xbm_draw): Removed. | |
8030 | (x_draw_image): Default implementation for drawing images. | |
8031 | (xbm_keyword_index): Remove XBM_DEPTH. | |
8032 | (xbm_format): Remove `:depth'. | |
8033 | (xbm_image_spec_from_file): Removed to reduce consing. | |
8034 | (xbm_load_image_from_file): Added for the same reason. | |
8035 | ||
8036 | * xterm.c (x_fill_image_glyph_string): Don't set ybase of | |
8037 | glyph string. | |
8038 | (x_draw_image_glyph_string): Pass ybase to image draw function. | |
8039 | ||
8040 | * xfns.c (make_image): Set default baseline. | |
8041 | ||
8042 | * xterm.c (x_produce_image_glyph): Compute ascent of image | |
8043 | from its height and baseline percentage. | |
8044 | ||
8045 | * xfns.c (xbm_keyword_index): Add XBM_BASELINE. | |
8046 | (xbm_format): Add description for `:baseline'. | |
8047 | (xbm_image_spec_from_file): Add keywords from original spec to | |
8048 | result. | |
8049 | (xbm_load): Set baseline of image. | |
8050 | (xbm_image_p): Check range for baseline. | |
8051 | ||
8052 | * dispextern.h (struct image): Add member baseline. | |
8053 | ||
8054 | * xdisp.c (dump_glyph_matrix): Handle image glyphs. | |
8055 | ||
8056 | * term.c (produce_glyphs): Change assertion to allow DISP_IMAGE. | |
8057 | ||
8058 | * xdisp.c (get_next_display_element): Do character translations | |
8059 | only if delivering characters. | |
8060 | ||
8061 | 1998-05-03 Gerd Moellmann <gerd@gnu.org> | |
8062 | ||
8063 | * dispextern.h (ITERATOR_AT_END_OF_LINE_P): Test for | |
8064 | DISP_CHARACTER. | |
8065 | ||
8066 | * xterm.c (x_produce_image_glyph): Poduce image glyphs. | |
8067 | (x_produce_glyphs): Call x_produce_glyphs for DISP_IMAGE. | |
8068 | ||
8069 | 1998-05-02 Gerd Moellmann <gerd@gnu.org> | |
8070 | ||
8071 | * xfns.c (prepare_image_for_display): Set image timestamp. | |
8072 | (clear_image_cache): Clear images if image's timestamp + | |
8073 | Vimage_eviction_seconds is > now. | |
8074 | (syms_of_xfns): New variables image-eviction-seconds, and | |
8075 | image-types. | |
8076 | (add_image_format): Add to image-types. | |
8077 | (xbm_load): Support new image spec format. | |
8078 | (x_alloc_image_color): Allocate a color for an image. | |
8079 | ||
8080 | * dispextern.h (struct image): Add timestamp. | |
8081 | ||
8082 | * xfns.c (xbm_image_p): Allow bool-vectors, vectors of strings and | |
8083 | vectors of bool-vectors. | |
8084 | (xbm_lisp_object_from_file): Build new format image spec. | |
8085 | ||
8086 | 1998-05-01 Gerd Moellmann <gerd@gnu.org> | |
8087 | ||
8088 | * xfaces.c (init_frame_faces): Initialize image cache. | |
8089 | (free_frame_faces): Free it. | |
8090 | ||
8091 | * xterm.c (x_delete_display): Don't free image cache. | |
8092 | ||
8093 | * emacs.c (main): Call init_xfns. | |
8094 | ||
8095 | 1998-04-30 Gerd Moellmann <gerd@gnu.org> | |
8096 | ||
8097 | * alloc.c (mark_object): Mark objects in image cache. | |
8098 | ||
8099 | * xfns.c (x_set_internal_border_width): Correct call to | |
8100 | widget_store_internal_border_width. | |
8101 | ||
8102 | * widget.c (widget_store_internal_border): Return void. | |
8103 | ||
8104 | * xfns.c (x_destroy_bitmap): Use xfree instead of free. Return | |
8105 | void. | |
8106 | (init_x_parm_symbols): Return void. | |
8107 | (x_report_frame_params): Ditto. | |
8108 | (x_set_border_pixel): Ditto. | |
8109 | (syms_of_xfns): Ditto. | |
8110 | (x_destroy_all_bitmaps): Use xfree instead of free. | |
8111 | ||
8112 | * xterm.h (FRAME_X_IMAGE_CACHE): Access the image cache of a frame. | |
8113 | ||
8114 | * xterm.c (x_term_init): Initialize image_cache of display info. | |
8115 | (x_delete_display): Free image cache. | |
8116 | ||
8117 | * xterm.h (struct x_display_info): Add image_cache. | |
8118 | ||
8119 | * xfns.c (make_image_cache): Allocate a new image cache. | |
8120 | (free_image_cache): Free an image cache. | |
8121 | (make_image): Allocate an image. | |
8122 | (free_image): Free an image. | |
8123 | ||
8124 | * dispextern.h (struct image): Structure describing an image. | |
8125 | (struct image_cache): Structure describing an image cache. | |
8126 | ||
8127 | 1998-04-29 Gerd Moellmann <gerd@gnu.org> | |
8128 | ||
8129 | * xdisp.c (check_iterator_glyph_property): Return int. Value is | |
8130 | non-zero if iterator is filled with something to return. | |
8131 | (next_element_from_buffer): Immediately return if | |
8132 | setup_iterator_from_glyph_prop has filled iterator with pixmap. | |
8133 | (next_element_from_string): Likewise. | |
8134 | ||
8135 | * xfaces.c (load_pixmap): Allow to pass null for W_PTR and H_PTR. | |
8136 | ||
8137 | * dispextern.h (struct glyph): Add pixmap_id. | |
8138 | (display_element_type): Add DISP_PIXMAP. | |
8139 | ||
8140 | * xmenu.c (popup_get_selection): Use xmalloc/xfree instead of | |
8141 | malloc/free. | |
8142 | ||
8143 | * xfaces.c (clear_font_table): Free fonts not used by fontsets. | |
8144 | (clear_face_cache): Call it. | |
8145 | ||
8146 | * xterm.c (x_query_font): Don't look at empty font table slots. | |
8147 | (x_compute_min_glyph_bounds): Likewise. | |
8148 | (x_term_init): Initialize font_table to null. | |
8149 | (x_load_font): Change allocation of font_info structures so | |
8150 | that it is possible to free fonts. | |
8151 | ||
8152 | * xfns.c (Fx_close_connection): Use xfree instead of free. | |
8153 | Only free fonts from filled font table entries. | |
8154 | ||
8155 | * xfaces.c (best_matching_font): Support use of scalable fonts. | |
8156 | (Fface_scalable_fonts_mode): Toggle use of scalable fonts. | |
8157 | ||
8158 | * xterm.h (struct x_display_info): Remove screen_dpi, add resx | |
8159 | and resy. | |
8160 | * xterm.c (x_term_init): Compute resx and resy. | |
8161 | ||
8162 | * xfaces.c (split_font_name): Don't reject scalable fonts. | |
8163 | ||
8164 | * xterm.c (x_list_fonts): Set code exclusing scalable fonts | |
8165 | in #if 0. | |
8166 | ||
8167 | * xfaces.c (xlfd_point_size): Return 0 for fonts whose real | |
8168 | point size cannot be determined. | |
8169 | ||
8170 | * xterm.h (FRAME_SMALLEST_CHAR_WIDTH): Return smallest character | |
8171 | width over all fonts on a frame. | |
8172 | (FRAME_SMALLEST_FONT_HEIGHT): Likewise for font height. | |
8173 | * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Use these | |
8174 | macros. | |
8175 | ||
8176 | * xterm.c (x_font_min_bounds): Moved here from xfaces.c. | |
8177 | (x_compute_min_char_bounds): Formerly min_char_bounds in xfaces.c. | |
8178 | (x_load_font): Use x_compute_min_char_bounds. | |
8179 | ||
8180 | * xterm.h (struct x_display_info): New members smallest_char_width | |
8181 | and smallest_font_height. | |
8182 | ||
8183 | 1998-04-28 Gerd Moellmann <gerd@gnu.org> | |
8184 | ||
8185 | * dispextern.h (PREPARE_FACE_FOR_DISPLAY): Call function with | |
8186 | the same name if GC of face is zero. | |
8187 | ||
8188 | * dispextern.h (struct face): Member non_ascii_gc removed. | |
8189 | ||
8190 | * xterm.c (x_get_char_font_and_encoding): Return face's font | |
8191 | for characters < 0177 in default face. Prepare face for | |
8192 | display before returning it. | |
8193 | (x_produce_glyphs): Use it->charset. | |
8194 | (x_get_char_font_and_encoding): Simplified. | |
8195 | (x_encode_char): Remove parameter `font'. | |
8196 | ||
8197 | * xfaces.c (choose_face_font): If registry from charset symbol | |
8198 | doesn't contain a `-', make it a pattern by appending "*-*". | |
8199 | ||
8200 | * xdisp.c (check_iterator_glyph_property): Adjust limit for | |
8201 | glyph_check_pos computation to character boundary. | |
8202 | ||
8203 | 1998-04-27 Gerd Moellmann <gerd@gnu.org> | |
8204 | ||
8205 | * fontset.h (FONT_INFO_FROM_ID): Return null if ID is invalid. | |
8206 | ||
8207 | * xfaces.c (ascii_face_of_lisp_face): Get the id of the realized | |
8208 | ASCII face for a given Lisp face id. | |
8209 | ||
8210 | * xdisp.c (set_iterator_stop_pos): Take glyph_check_pos into | |
8211 | account. | |
8212 | (reseat_iterator): Set glyph_check_pos. Handle case where | |
8213 | new position is < original position. | |
8214 | (check_iterator_glyph_property): Handle glyph property in strings. | |
8215 | (next_element_from_string): Call above function. | |
8216 | (next_element_from_display_vector): Handle faces in glyphs. | |
8217 | (get_next_display_element): Set face_id of glyphs for | |
8218 | control chars to zero. | |
8219 | ||
8220 | * Makefile.in (term.o): Add dependency on dispextern.h. | |
8221 | ||
8222 | * xdisp.c (syms_of_xdisp): Add symbol `glyph'. | |
8223 | (display_line): Handle marginal areas. | |
8224 | (move_iterator_in_display_line_to): Likewise. | |
8225 | ||
8226 | * xfaces.c (Finternal_make_lisp_face): Assign Lisp faces an id. | |
8227 | ||
8228 | * xfaces.c (face_at_buffer_position): Don't merge with nil | |
8229 | text property. | |
8230 | (face_at_string_position): Ditto. | |
8231 | ||
8232 | * dispextern.h (struct display_iterator): Use a stack of saved | |
8233 | values instead of saving check positions etc. individually. | |
8234 | ||
8235 | * xdisp.c (set_iterator_to_next): If end of Lisp string reached, | |
8236 | maybe pop the iterator's stack. | |
8237 | (save_iterator_settings): Push a value on iterator's stack. | |
8238 | (get_overlay_strings_at_iterator_position): Use it. | |
8239 | (restore_iterator_settings): Pop the stack. | |
8240 | (set_iterator_to_next_overlay_string): Use it. | |
8241 | ||
8242 | * xfaces.c (try_font_list): Use alternative font families. | |
8243 | ||
8244 | 1998-04-26 Gerd Moellmann <gerd@gnu.org> | |
8245 | ||
8246 | * xfaces.c (Fset_face_font_sort_order): Set the order in which | |
8247 | font selection matches fonts. | |
8248 | (Fface_font_sort_order): Return the font sort order. | |
8249 | (best_matching_font): Find best matching font based on sort order. | |
8250 | (cmp_font_names): Sort by given sort order. | |
8251 | ||
8252 | * dispextern.h (struct display_iterator): New member faces_p. | |
8253 | * xdisp.c (init_iterator): Initialize it->faces_p. | |
8254 | (compute_face_at_iterator_string_position): Use it. | |
8255 | (compute_face_at_iterator_position): Use it. | |
8256 | (init_iterator): Use it. | |
8257 | (display_mode_line): Ditto. | |
8258 | ||
8259 | * xdisp.c (get_next_display_element): Put code choosing a face | |
8260 | when the charset changes in #ifdef HAVE_FACES. | |
8261 | ||
8262 | * dispextern.h (FACE_FOR_CHARSET): Replacement for function | |
8263 | lookup_face_for_charset. | |
8264 | ||
8265 | * xfaces.c (free_font_names): Renamed from free_split_font_names. | |
8266 | (free_all_realized_faces): Renamed from remove_all_realized_faces. | |
8267 | ||
8268 | 1998-04-25 Gerd Moellmann <gerd@gnu.org> | |
8269 | ||
8270 | * xfaces.c (best_matching_font): Return the name of the best | |
8271 | matching font in an array of font_name structures. | |
8272 | (choose_face_font): Use it. | |
8273 | (choose_face_fontset_font): Use it. | |
8274 | (find_best_weight_font): If final font found has same weight as | |
8275 | the font we started with, return the original font because it is a | |
8276 | better match for the resolution of the display. | |
8277 | (find_best_slant_font): Likewise. | |
8278 | (merge_face_vector_with_property): Check more invalid attribute | |
8279 | values. | |
8280 | (lface_suitable_for_charset_p): Replaced by a macro with the same | |
8281 | name in upper-case. | |
8282 | ||
8283 | 1998-04-24 Gerd Moellmann <gerd@gnu.org> | |
8284 | ||
8285 | * dispextern.h (struct face): Member | |
8286 | fontset_chosen_for_realization_p removed. | |
8287 | ||
8288 | * xfaces.c (cache_face): If face->fontset >= 0, add face to the | |
8289 | end of the collision list, so that we find more specific faces | |
8290 | first. | |
8291 | (lookup_face_for_charset): Look up a new face if face->fontset >= | |
8292 | 0, and charset != CHARSET_COMPOSITION. | |
8293 | ||
8294 | * xfaces.c (split_font_name): Return zero if point size of font | |
8295 | couldn't be computed. | |
8296 | (realize_default_face): Use ASCII font of a fontset to determine | |
8297 | font-related attributes of the default face. | |
8298 | (face_fontset): Return fontset id for face family. | |
8299 | (font_list): Additional parameter font_pattern. If non-nil, | |
8300 | return fonts matching that pattern. | |
8301 | ||
8302 | 1998-04-23 Gerd Moellmann <gerd@gnu.org> | |
8303 | ||
8304 | * xfaces.c (choose_face_fontset): If new fontset cannot be | |
8305 | constructed, or fontset name cannot be split, return the id of the | |
8306 | standard fontset. | |
8307 | ||
8308 | * xterm.c (XTframe_up_to_date): Check that frame is an X frame. | |
8309 | When Emacs starts, it may be called for the initial frame which | |
8310 | isn't an X frame. | |
8311 | ||
8312 | * dispextern.h (struct face): New members foreground_defaulted_p, | |
8313 | background_defaulted_p. | |
8314 | (struct face): Members `mask' and `cache' removed. | |
8315 | ||
8316 | * xfaces.c (load_color): Set them. | |
8317 | (free_face_colors): Check them. | |
8318 | (xlfd_point_size): Return -1 if resolution or point size of | |
8319 | font unknown. | |
8320 | ||
8321 | * xfaces.c (free_font): Removed. | |
8322 | (load_face_font_or_fontset): Renamed from load_font. | |
8323 | (load_face_font_or_fontset): Use message2 instead of signalling. | |
8324 | (load_color): Likewise. | |
8325 | (load_pixmap): Likewise. | |
8326 | ||
8327 | * xterm.h (struct x_display_info): Add screen_dpi. | |
8328 | * xterm.c (x_term_init): Initialize it. | |
8329 | * xfaces.c (xlfd_point_size): Use it. | |
8330 | (split_font_name): Compute numeric XLFD_RESY. | |
8331 | (cmp_font_names): Make fonts with an y-resolution more | |
8332 | similar to that of the frame appear first in the result. | |
8333 | ||
8334 | * xfaces.c (cache_face): If fontset_chosen_for_realization_p | |
8335 | is set for the face to cache, add it to the end of the collision | |
8336 | list. | |
8337 | (try_font_list): If fonts for given family and registry cannot | |
8338 | be found, first try to keep the registry, and choose a different | |
8339 | family. | |
8340 | (choose_face_font): Allow nfonts == 0. | |
8341 | (try_font_list): Give up if no font matches given registry. | |
8342 | ||
8343 | 1998-04-22 Gerd Moellmann <gerd@gnu.org> | |
8344 | ||
8345 | * xterm.c (x_get_char_font_and_encoding): Get font_info from | |
8346 | font info id of the face. | |
8347 | ||
8348 | * xfaces.c (load_font): Set font_info_id. | |
8349 | (realize_face): Ditto. | |
8350 | ||
8351 | * dispextern.h (struct face): Change member font_info to | |
8352 | font_info_id. | |
8353 | ||
8354 | * fontset.h (FONT_INFO_ID): Build an ID from a font_info pointer. | |
8355 | (FONT_INFO_FROM_ID): Get a font_info pointer from an ID. | |
8356 | ||
8357 | * xdisp.c (extend_face_to_end_of_line): If IT's current charset | |
8358 | isn't ASCII, get the ASCII face before adding a space. | |
8359 | (append_space): Likewise. | |
8360 | (insert_left_trunc_glyphs): Initialize truncate_it's charset | |
8361 | to -1 so that it will compute the right face for the truncation | |
8362 | glyphs. | |
8363 | ||
8364 | * xfaces.c (realize_face): Set | |
8365 | face->fontset_chosen_for_realization_p. | |
8366 | (lookup_face_for_charset): If fontset wasn't specified originally | |
8367 | and new charset != CHARSET_COMPOSITION, get a new face for that | |
8368 | charset. | |
8369 | ||
8370 | * dispextern.h (struct face): New member | |
8371 | fontset_chosen_for_realization_p_specified_p. Set to 1 when | |
8372 | realize_face has chosen a fontset to display composite characters | |
8373 | for a Lisp face not specifying a fontset. | |
8374 | ||
8375 | * xdisp.c (extend_face_to_end_of_line): Move tests for default | |
8376 | face and line already filled here. Don't do anything if current | |
8377 | face hasn't a relief or has a background equal to the frame | |
8378 | background. | |
8379 | ||
8380 | * xfaces.c (split_font_name): Additional parameter numeric_p. | |
8381 | Don't compute numeric values if it is non-zero. | |
8382 | (choose_face_fontset): Call split_font_name with numeric_p == 0. | |
8383 | (choose_face_fontset): Print a message if fontset contains a | |
8384 | font whose name cannot be split into fields. | |
8385 | ||
8386 | 1998-04-21 Gerd Moellmann <gerd@gnu.org> | |
8387 | ||
8388 | * xfaces.c (try_font_list): Try to load a list of fonts, | |
8389 | possibly using less restrictive patterns. | |
8390 | (choose_face_font): Use it. | |
8391 | ||
8392 | * xterm.c (x_get_char_font_and_encoding): For charset != | |
8393 | CHARSET_ASCII use font_info of face if face hasn't a fontset set. | |
8394 | ||
8395 | * dispextern.h (struct face): New member font_info. | |
8396 | ||
8397 | * xfaces.c (load_font): Use FS_LOAD_FONT to load fonts for faces | |
8398 | specifying a fontset as well as those not having a fontset. | |
8399 | (free_font): Make it empty. | |
8400 | (realize_face): Use changed load_font. | |
8401 | ||
8402 | * xterm.c (x_get_char_font_and_encoding): If face doesn't | |
8403 | fit for charset, get the right one. | |
8404 | ||
8405 | * xfaces.c (load_font): Take frame and name parameter, return | |
8406 | font. | |
8407 | (free_font): Likewise. | |
8408 | (split_font_name): Compute numeric values for height, swidth etc. | |
8409 | (cmp_font_names): Use them. | |
8410 | (find_best_width_font): Ditto. | |
8411 | (find_best_height_font): Ditto. | |
8412 | (find_best_weight_font): Ditto. | |
8413 | (find_best_slant_font): Ditto. | |
8414 | (lface_hash): Add weight, slant, swidth and relief to hash value. | |
8415 | (lface_equal_p): Make it faster. | |
8416 | (lface_from_symbol): Use assq_no_quit. | |
8417 | (Fnote_default_face_changed): Removed. | |
8418 | (cmp_font_names): Use strcmp instead of xstricmp. | |
8419 | (face_charset_registries): Removed. | |
8420 | ||
8421 | 1998-04-20 Gerd Moellmann <gerd@gnu.org> | |
8422 | ||
8423 | * frame.h (CHECK_FRAME): Give this macro a statement form. | |
8424 | (CHECK_LIVE_FRAME): Ditto. | |
8425 | ||
8426 | * xfaces.c (find_best_width_font): Find the best matching font | |
8427 | for a given width. | |
8428 | (find_best_height_font): Likewise for height. | |
8429 | (find_best_weight_font): Likewise for weight. | |
8430 | (find_best_slant_font): Likewise for slant. | |
8431 | (choose_face_font): Use them. | |
8432 | (get_lface_attributes): Always return frame-local face attrs. | |
8433 | (Finternal_merge_in_global_face): Merge local face with | |
8434 | global face attributes. | |
8435 | ||
8436 | * xfaces.c (check_lface_attrs, check_lface): Check consistency of | |
8437 | Lisp face attributes. | |
8438 | ||
8439 | 1998-04-19 Gerd Moellmann <gerd@gnu.org> | |
8440 | ||
8441 | * xfaces.c (Finternal_set_lisp_face_attribute): Add :bold | |
8442 | and :italic for compatibility. | |
8443 | (Finternal_set_lisp_face_attribute_from_resource): Handle | |
8444 | :bold and :italic. Handle boolean resource values for | |
8445 | :underline and :italic. | |
8446 | ||
8447 | * xfns.c (display_x_get_resource): Make it externally visible. | |
8448 | ||
8449 | * xfaces.c (lface_from_symbol): Take a frame as parameter. | |
8450 | If that frame is non-null, return the frame-local face. | |
8451 | (Finternal_make_lisp_face): Additional frame argument. | |
8452 | (lface_attributes): Get face attributes from global and frame-local | |
8453 | definitions. | |
8454 | (Finternal_lisp_face_equal_p): Additional frame argument. | |
8455 | (merge_lisp_face_vector_with_property): Ditto. | |
8456 | (Frealize_basic_faces): Removed. | |
8457 | (Finternal_get_lisp_face_attribute): Additional frame argument. | |
8458 | (Finternal_lisp_face_p): Ditto. | |
8459 | (load_color) [MSDOS]: Removed because it isn't clear how | |
8460 | to do this for MS-DOS. | |
8461 | ||
8462 | * xfaces.c (lface_from_symbol): Get global face definition | |
8463 | from face-global-alist. | |
8464 | ||
8465 | * xfaces.c (Finternal_set_lisp_face_attribute): Allow `t' | |
8466 | as values for :underline and :inverse-video. | |
8467 | (Finternal_set_lisp_face_attribute): Allow nil values. | |
8468 | ||
8469 | 1998-04-17 Gerd Moellmann <gerd@gnu.org> | |
8470 | ||
8471 | * xfaces.c (Finternal_make_lisp_face): Return Lisp face vector. | |
8472 | ||
8473 | * xfaces.c (syms_of_xfaces): Add Vall_faces. | |
8474 | (Finternal_make_lisp_face): Add new face to Vall_faces. | |
8475 | ||
8476 | * xdisp.c (echo_area_display): Remove code recomputing faces. | |
8477 | (redisplay_internal): Ditto. | |
8478 | (init_iterator): Do it here. | |
8479 | ||
8480 | * xfaces.c (choose_face_font): Check that swidth doesn't change | |
8481 | for subusequent attributes. | |
8482 | (xlfd_point_size): Return int. | |
8483 | ||
8484 | * xdisp.c (redisplay_internal, echo_area-display): If realized | |
8485 | faces have been cleared, call recompute_basic_faces. | |
8486 | ||
8487 | * xfaces.c (recompute_basic_faces): Free realized faces. Reset | |
8488 | face_attributes_changed_p. | |
8489 | (remove_all_realized_faces): Remove all realized faces on | |
8490 | all frames. | |
8491 | (Finternal_set_lisp_face_attribute): Call remove_all_realized_faces. | |
8492 | ||
8493 | * xdisp.c (redisplay_internal): If face attributes have been | |
8494 | changed since the last redisplay, recompute basic faces. | |
8495 | (echo_area_display): Ditto. | |
8496 | ||
8497 | * xfaces.c (clear_face_gcs): Renamed from clear_realized_face_cache. | |
8498 | ||
8499 | * xfaces.c (min_char_bounds): If face cache not yet present, | |
8500 | don't try to get font dimensions from faces. | |
8501 | ||
8502 | * xterm.c (x_frame_mode_line_height): If face cache not present | |
8503 | set, return default height. | |
8504 | ||
8505 | * alloc.c (mark_face_cache): Check for null faces. Correct | |
8506 | index bug. | |
8507 | ||
8508 | * dispextern.h (struct face): Renamed from struct rface. Member | |
8509 | underline renamed underline_p. Make it a bit-field. | |
8510 | ||
8511 | * xfaces.c (init_frame_faces): Allocate face cache. | |
8512 | (free_frame_faces): Free face cache. | |
8513 | (recompute_basic_faces): Realize basic faces only if face cache is | |
8514 | allocated, i.e. after init_frame_faces has been called. | |
8515 | ||
8516 | * frame.c (make_frame): Initialze face cache with null. | |
8517 | ||
8518 | * xfaces.c (same_size_fonts): Removed. | |
8519 | ||
8520 | * xterm.c (x_set_glyph_string_gc): Add post-condition | |
8521 | s->gc != 0. | |
8522 | (x_set_mouse_face_gc): Ditto. | |
8523 | (x_set_mode_line_face_gc): Ditto. | |
8524 | ||
8525 | * xfaces.c (realize_default_face): Return int. Value is | |
8526 | zero if frame params don't contain enough information to | |
8527 | realize the default face. | |
8528 | (realize_basic_faces): Ditto. | |
8529 | (init_frame_faces): Realize basic faces. | |
8530 | ||
8531 | * xfns.c (x_set_font): First store real font name in frame | |
8532 | parameters, then call recompute_basic_faces. | |
8533 | ||
8534 | * xfaces.c (recompute_basic_faces): Call realize_basic_faces. | |
8535 | ||
8536 | 1998-04-16 Gerd Moellmann <gerd@gnu.org> | |
8537 | ||
8538 | * xfaces.c (syms_of_xfaces): Correct calls to defsubr. | |
8539 | ||
8540 | * xfns.c (Fx_face_fixed_p): Removed. | |
8541 | (Fx_list_fonts): Moved to xfaces.c. | |
8542 | ||
8543 | * xfaces.c (compute_face_at_buffer_pos): Renamed to | |
8544 | face_at_buffer_position. Parameter charset removed; always | |
8545 | compute face for CHARSET_ASCII. | |
8546 | (face_at_string_position): Renamed from | |
8547 | compute_face_at_string_pos. Parameter charset removed; always | |
8548 | compute for CHARSET_ASCII. | |
8549 | (lookup_face_for_charset): Take frame parameter instead of | |
8550 | face_cache. | |
8551 | (lookup_face): Ditto. | |
8552 | (compute_char_face): Renamed from compute_glyph_face. | |
8553 | ||
8554 | * xdisp.c (init_iterator): Initialize charset member. | |
8555 | (reseat_iterator_to_string): Ditto. | |
8556 | (get_charset_at_buffer_position): Determine charset at | |
8557 | buffer position in current_buffer. | |
8558 | (reseat_iterator): Call above function. | |
8559 | (compute_face_at_iterator_position): Call | |
8560 | compute_face_at_buffer_pos. | |
8561 | (compute_face_at_iterator_string_position): Call | |
8562 | compute_face_at_string_pos. | |
8563 | (get_face_from_id): Removed. | |
8564 | (get_face_from_cursor_pos): Call compute_face_at_buffer_pos. | |
8565 | Call get_charset_at_buffer_position. | |
8566 | (reseat_iterator): Determine face if charset at pos differs | |
8567 | from iterator's charset. | |
8568 | (reseat_iterator_to_glyph_pos): Removed. | |
8569 | ||
8570 | * xfaces.c (compute_face_at_bufpos): Remove parameter charset. | |
8571 | Determine charset from buffer position. | |
8572 | (compute_string_char_face): Renamed to compute_face_at_string_pos. | |
8573 | (compute_face_at_bufpos): Renamed to compute_face_at_buffer_pos. | |
8574 | ||
8575 | * dispextern.h (struct display_iterator): Add member charset. | |
8576 | ||
8577 | 1998-04-15 Gerd Moellmann <gerd@gnu.org> | |
8578 | ||
8579 | * xfaces.c (compute_char_face): Removed. | |
8580 | ||
8581 | * xdisp.c (get_overlay_arrow_glyph_row): Use compute_glyph_face | |
8582 | with new parameter list. | |
8583 | ||
8584 | * xfaces.c (region_face): Removed. | |
8585 | (allocate_face): Removed. | |
8586 | (copy_face): Ditto. | |
8587 | (face_eql): Removed. | |
8588 | (intern_face): Removed. | |
8589 | (clear_face_cache): Removed. | |
8590 | (load_font): Ditto. | |
8591 | (unload_font): Ditto. | |
8592 | (load_color): Ditto. | |
8593 | (unload_color): Ditto. | |
8594 | (new_computed_face): Ditto. | |
8595 | (intern_computed_face): Ditto. | |
8596 | (ensure_face_ready): Ditto. | |
8597 | (merge_faces): Ditto. | |
8598 | (compute_base_face): Ditto. | |
8599 | (merge_face_list): Ditto. | |
8600 | (Fmake_face_internal): Removed. | |
8601 | (Fset_face_attribute_internal): Ditto. | |
8602 | (face_name_id_number): Removed. | |
8603 | (Fframe_face_alist): Ditto. | |
8604 | (Fset_frame_face_alist): Ditto. | |
8605 | (Finternal_next_face_id): Ditto. | |
8606 | ||
8607 | * xterm.h (struct x_output): Remove computed_faces, and | |
8608 | param_faces. Remove macros accessing them. | |
8609 | ||
8610 | * xfaces.c: Entirely new face implementation added. | |
8611 | ||
8612 | 1998-04-11 Gerd Moellmann <gerd@gnu.org> | |
8613 | ||
8614 | * dispextern.h (struct glyph_pos): Member `bufpos' renamed | |
8615 | `charpos'. | |
8616 | ||
8617 | 1998-04-10 Gerd Moellmann <gerd@gnu.org> | |
8618 | ||
8619 | * xterm.c (x_scroll_bar_move): Clear only regions not covered by | |
8620 | scroll bar window to reduce flickering. Clear entire height. | |
8621 | ||
8622 | * xdisp.c (move_iterator_vertically_backward): Set iterator's | |
8623 | current_x and hpos to zero after moving to previous line | |
8624 | start. | |
8625 | ||
8626 | 1998-04-03 Gerd Moellmann <gerd@gnu.org> | |
8627 | ||
8628 | * frame.h (FRAME_FACE_CACHE): Access to a frame's face cache. | |
8629 | ||
8630 | * xfaces.c (xlfd_point_size): Compute relative point size of | |
8631 | fonts from font and frame resolution. | |
8632 | (sort_fonts): New function to sort fonts, temporarily setting | |
8633 | font_frame to the frame in effect. | |
8634 | (xlfd_point_size): Take additional frame parameter to be able | |
8635 | to get at the display's resolution. | |
8636 | ||
8637 | * xterm.c (x_setup_relief_colors): Use WHITE_PIX_DEFAULT and | |
8638 | BLACK_PIX_DEFAULT. | |
8639 | (x_setup_relief_color): Use FRAME_X_SCREEN instead of default | |
8640 | screen of display. | |
8641 | ||
8642 | 1998-03-31 Gerd Moellmann <gerd@gnu.org> | |
8643 | ||
8644 | * xfaces.c (choose_face_fontset): Instantiate fontsets. | |
8645 | ||
8646 | * fontset.h: Add external declarations for Vfontset_alias_alist | |
8647 | and Vglobal_fontset_alist. | |
8648 | ||
8649 | * xfaces.c (merge_lisp_face_vector_with_property): Simplified. | |
8650 | (realize_default_face): If frame parameters contain an artificial | |
8651 | font name naming a fontset, set the family of the default face to | |
8652 | the fontset name given by the registry. | |
8653 | ||
8654 | * Makefile.in (alloc.o): Add dependency to dispextern.h. | |
8655 | ||
8656 | 1998-03-22 Gerd Moellmann <gerd@gnu.org> | |
8657 | ||
8658 | * alloc.c (mark_object): Add function prototype. Add cast to | |
8659 | Lisp_Object pointer in call to mark_object for symbol names | |
8660 | because this otherwise gives a warning from gcc 2.8.1. | |
8661 | (mark_face_cache): Mark Lisp objects in realized faces. | |
8662 | ||
8663 | 1998-03-19 Gerd Moellmann <gerd@gnu.org> | |
8664 | ||
8665 | * frame.h (struct frame): Add member face_cache. | |
8666 | ||
8667 | * alloc.c (mark_object): Mark face cache. | |
8668 | (mark_face_cache): Mark Lisp faces in face cache of frame. | |
8669 | ||
8670 | * frame.c (make_frame): Initialize face_cache. | |
8671 | (Fdelete_frame): Free it. | |
8672 | ||
8673 | 1998-03-18 Gerd Moellmann <gerd@gnu.org> | |
8674 | ||
8675 | * xfaces.c: Very first skeleton of functions for face realization, | |
8676 | face merging, face cache etc. | |
8677 | ||
8678 | * dispextern.h (struct rface): Realized faces. Will replace | |
8679 | struct face when tested. | |
8680 | (struct face_cache): Realized face caches. | |
8681 | ||
8682 | * xdisp.c (init_iterator): Initialize area member of display | |
8683 | iterator. | |
8684 | ||
8685 | 1998-03-17 Gerd Moellmann <gerd@gnu.org> | |
8686 | ||
8687 | * xterm.c (x_append_glyph): Use it->area to store glyphs. | |
8688 | ||
8689 | * dispextern.h (struct display_iterator): New member area. | |
8690 | ||
8691 | * xterm.c (note_overwritten_text_cursor): Note when the text | |
8692 | cursor of a window is overwritten. | |
8693 | ||
8694 | * xdisp.c (set_cursor_from_row): If PT is not found in the | |
8695 | row, display the cursor at the start of the row. | |
8696 | ||
8697 | * dispnew.c (direct_output_forward_char): Call | |
8698 | set_cursor_from_row. | |
8699 | ||
8700 | * xdisp.c (setup_iterator_overlay_strings_from_glyph_pos): If | |
8701 | position is not in an overlay string, set iterator's position and | |
8702 | method explicitly so. | |
8703 | (set_cursor_from_row): Correct cursor position calculation. | |
8704 | Make it externally visible. | |
8705 | (redisplay_window): Call set_cursor_from_row so that there is only | |
8706 | one place where the cursor position is calculated from a current | |
8707 | row. | |
8708 | ||
8709 | * dispextern.h (struct display_iterator): New member | |
8710 | overlay_strings_at_end_processed_p. | |
8711 | ||
8712 | * xdisp.c (check_iterator): Perform sanity checks on | |
8713 | display_iterators. | |
8714 | (next_element_from_buffer): Check for overlay strings at ZV. | |
8715 | ||
8716 | 1998-03-16 Gerd Moellmann <gerd@gnu.org> | |
8717 | ||
8718 | * buffer.c (init_buffer_once): Add left_margin_width and | |
8719 | right_margin_width to buffer_local_flags. | |
8720 | ||
8721 | * dispnew.c (margin_glyphs_to_reserve): Function computing | |
8722 | number of glyphs to reserve for a marginal area. | |
8723 | (adjust_glyph_matrix): Call it. | |
8724 | (adjust_frame_glyphs_for_frame_redisplay): Return if frame | |
8725 | is not alive. | |
8726 | ||
8727 | * window.c (Fset_window_margins): Allow floats. | |
8728 | ||
8729 | * buffer.c (syms_of_buffer): Add buffer-local variables | |
8730 | left-margin-width and right-margin-width. Add defaults | |
8731 | default-left-margin-width and default-right-margin-width. | |
8732 | ||
8733 | * buffer.h (struct buffer): New members left_margin_width | |
8734 | and right_margin_width. | |
8735 | ||
8736 | * window.c (Fset_window_margins): Make window the last and | |
8737 | optional argument. | |
8738 | ||
8739 | * xterm.c (x_draw_glyphs): Compute x-positions for rows with | |
8740 | flag no_marginal_areas_p differently. | |
8741 | (x_clear_end_of_line): Ditto. | |
8742 | (x_draw_glyph_string_relief): Compute width of relief differently | |
8743 | for rows with flag no_marginal_areas_p. | |
8744 | ||
8745 | * dispnew.c (update_window_line): Update marginal areas only | |
8746 | for rows that don't have no_marginal_areas_p set. | |
8747 | ||
8748 | * xdisp.c (display_mode_line): Set row's flag no_marginal_areas_p. | |
8749 | (display_menu_bar): Ditto. | |
8750 | ||
8751 | * dispextern.h (struct glyph_row): New member no_marginal_areas_p. | |
8752 | ||
8753 | * dispnew.c (adjust_glyph_matrix): Compute glyph pointers for | |
8754 | marginal areas in window-based redisplay. | |
8755 | ||
8756 | * dispextern.h (struct glyph_matrix): New members | |
8757 | left_margin_glyphs and right_margin_glyphs. | |
8758 | ||
8759 | 1998-03-15 Gerd Moellmann <gerd@gnu.org> | |
8760 | ||
8761 | * minibuf.c (read_minibuf_unwind): Return Lisp_Object. | |
8762 | ||
8763 | * charset.c (non_ascii_char_to_string): Use char type parameters | |
8764 | because the function is used that way from outside. Use unsigned | |
8765 | char internally. | |
8766 | ||
8767 | * window.c (change_window_height): Return void. | |
8768 | (make_dummy_parent): Return void. | |
8769 | (init_window_once): Return void. | |
8770 | (syms_of_window): Ditto. | |
8771 | (keys_of_window): Ditto. | |
8772 | (delete_window): Correct return with and without value. | |
8773 | ||
8774 | * buffer.c (record_buffer): Return void. | |
8775 | ||
8776 | * marker.c (unchain_marker): Return void. | |
8777 | ||
8778 | * window.c (unshow_buffer): Return void. | |
8779 | (replace_window): Ditto. | |
8780 | (delete_window): Ditto. | |
8781 | ||
8782 | * term.c (delete_glyphs_hook): Void return type. | |
8783 | (ring_bell_hook): Ditto. | |
8784 | (set_terminal_window_hook): Ditto. | |
8785 | ||
8786 | * sysdep.c (init_sigio): Return void. | |
8787 | ||
8788 | * xterm.c (x_set_window_size): Return void. | |
8789 | (x_calc_absolute_position): Ditto. | |
8790 | (x_set_offset): Ditto. | |
8791 | (x_focus_on_frame): Ditto. | |
8792 | (x_unfocus_frame): Ditto. | |
8793 | (x_make_frame_visible): Ditto. | |
8794 | (x_make_frame_invisible): Ditto. | |
8795 | (x_iconify_frame): Ditto. | |
8796 | (x_destroy_window): Ditto. | |
8797 | (x_wm_set_window_state): Ditto. | |
8798 | (x_wm_set_icon_pixmap): Ditto. | |
8799 | (x_wm_set_icon_position): Ditto. | |
8800 | (x_initialize): Ditto. | |
8801 | (x_error_quitter): Ditto. | |
8802 | (x_destroy_window): Use xfree instead of free. | |
8803 | ||
8804 | * keyboard.c (clear_waiting_for_input): Return void. | |
8805 | ||
8806 | * xterm.c (x_wm_set_size_hint): Return void. | |
8807 | (x_raise_frame): Ditto. | |
8808 | (refreshicon): Ditto. | |
8809 | (x_error_catcher): Ditto. | |
8810 | (x_clear_errors): Ditto. | |
8811 | ||
8812 | * keyboard.c (record_asynch_buffer_change): Return void. | |
8813 | ||
8814 |