Commit | Line | Data |
---|---|---|
d4358b37 GM |
1 | 2000-10-30 Gerd Moellmann <gerd@gnu.org> |
2 | ||
563f68f1 GM |
3 | * xfaces.c (menu_face_change_count): New variable. |
4 | (Finternal_set_lisp_face_attribute): Increment it for changes | |
5 | of the `menu' face. | |
6 | (realize_basic_faces): Reflect changes in the `menu' faces | |
7 | in menu bars. | |
8 | ||
82e274d1 GM |
9 | * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the |
10 | dy obtained from the iterator's y-position after moving from | |
11 | scroll_margin_pos to PT; see comment there. | |
12 | ||
0dbf9fd2 GM |
13 | * xdisp.c (safe_eval_handler): Call add_to_log. |
14 | ||
906b3b14 GM |
15 | * xfaces.c (resolve_face_name): Handle case that FACE_NAME |
16 | is not a symbol or string. | |
17 | ||
d4358b37 GM |
18 | * xdisp.c (echo_area_display): Don't perform a display update from |
19 | inside redisplay. The update will happen anyway at the end of | |
20 | redisplay, and it can confuse redisplay (GC messages while | |
21 | redisplaying, for instance.) | |
22 | ||
70c825df SM |
23 | 2000-10-30 Stefan Monnier <monnier@cs.yale.edu> |
24 | ||
25 | * regex.c (re_iswctype, re_wctype_to_bit): Fix braino. | |
26 | (regex_compile): Catch bogus \(\1\). | |
27 | ||
a1d34b1e GM |
28 | 2000-10-30 Gerd Moellmann <gerd@gnu.org> |
29 | ||
cae71efe GM |
30 | * xterm.c (x_alloc_nearest_color): Fix last change to compare |
31 | RGB values. | |
32 | ||
35efe0a1 GM |
33 | * xterm.c (x_alloc_nearest_color): If allocation succeeds, and |
34 | we have a color cache, check that the cached color equals the | |
35 | allocated color. If not, clear the color cache. | |
36 | ||
1d3baf74 GM |
37 | * window.c (displayed_window_lines): Change buffers if necessary. |
38 | Fix computation of displayed lines. | |
39 | ||
a1d34b1e GM |
40 | * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of |
41 | update_menu_bindings to DEFVAR_BOOL. | |
42 | ||
70737ea9 KH |
43 | 2000-10-30 Kenichi Handa <handa@etl.go.jp> |
44 | ||
70c825df | 45 | * search.c (Fset_match_data): Be sure to make search_regs always sane. |
80406070 | 46 | |
fa0cb51d KH |
47 | * puresize.h (BASE_PURESIZE): Increase to 680000. |
48 | ||
70737ea9 KH |
49 | * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION. |
50 | ||
0e4c08e8 JR |
51 | 2000-10-29 Jason Rumney <jasonr@gnu.org> |
52 | ||
53 | * w32term.h (FONT_DESCENT): Negate descent of BDF fonts. | |
54 | ||
55 | * w32term.c (w32_bdf_per_char_metric): Negate descent. | |
56 | (w32_cache_char_metrics): Handle possibility that 'x' does not | |
57 | exist in a BDF font. | |
58 | (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars. | |
59 | ||
60 | * w32bdf.h (bdffont): Add nchars. | |
61 | ||
62 | * w32bdf.c (set_bdf_font_info): Set it. | |
63 | (w32_BDF_TextOut): Swap byte order of double byte characters. | |
64 | (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars. | |
65 | ||
45b84006 EZ |
66 | 2000-10-28 Eli Zaretskii <eliz@is.elta.co.il> |
67 | ||
68 | * frame.c (Fframe_parameters): Fix the change from 2000-10-16: | |
69 | don't override the colors in frame's param_alist, unless they are | |
70 | unspecified. | |
71 | ||
72 | * term.c (reassert_line_highlight): If inverse_video is non-zero, | |
73 | reverse the effect of the highlight flag. | |
74 | ||
caf9deee KR |
75 | 2000-10-27 Ken Raeburn <raeburn@gnu.org> |
76 | ||
77 | * window.h (Fwindow_live_p): Declare. | |
78 | ||
ae0b9b46 KR |
79 | * undo.c (record_delete): Check that last_undo_buffer is really a |
80 | buffer before applying XBUFFER to it. | |
81 | ||
82 | * keymap.c (where_is_internal): Pass lisp object, not integer, to | |
83 | Faref. | |
84 | ||
02067692 SM |
85 | 2000-10-27 Stefan Monnier <monnier@cs.yale.edu> |
86 | ||
87 | * lisp.h (KEYMAPP): New macro. | |
88 | (get_keymap): Remove. | |
89 | (get_keymap_1): Rename get_keymap. | |
90 | ||
91 | * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype. | |
92 | ||
93 | * xterm.c (note_mode_line_highlight): Use KEYMAPP. | |
94 | ||
95 | * xmenu.c (single_submenu): Use KEYMAPP. | |
96 | (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp. | |
97 | Use KEYMAPP rather than Fkeymapp. | |
98 | ||
99 | * w32term.c (note_mode_line_highlight): Use KEYMAPP. | |
100 | ||
101 | * w32menu.c (True, False): Remove (use TRUE and FALSE instead). | |
102 | (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp. | |
103 | Use KEYMAPP rather than Fkeymapp. | |
104 | (single_submenu): Use KEYMAPP. | |
105 | (w32_menu_show, w32_dialog_show): Use TRUE. | |
106 | ||
107 | * minibuf.c (Fread_from_minibuffer): Update call to get_keymap. | |
108 | ||
109 | * keymap.c (KEYMAPP): Remove (moved to lisp.h). | |
110 | (Fkeymapp): Use KEYMAPP. | |
111 | (get_keymap): Rename from get_keymap_1. Remove old def. | |
112 | Return t when autoload=0 and error=0 and the keymap needs autoloading. | |
113 | (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp. | |
114 | (Fminor_mode_key_binding): Don't raise an error if the binding | |
115 | is not a keymap. | |
116 | (Fuse_global_map, Fuse_local_map): Allow autoloading. | |
117 | (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp. | |
118 | ||
119 | * keyboard.c (read_char): get_keymap_1 -> get_keymap. | |
120 | Allow Vspecial_event_map to be autoloaded. | |
121 | (menu_bar_items): Fetch the keymap rather than using keymapp. | |
122 | (menu_bar_one_keymap): No need to follow func-indirect any more. | |
123 | (parse_menu_item): get_keymap_1 -> get_keymap. | |
124 | (tool_bar_items): Fetch the keymap rather than using keymapp. | |
125 | (read_key_sequence): Use KEYMAPP. | |
126 | ||
127 | * intervals.c (get_local_map): Use get_keymap rather than following | |
128 | function-indirections explicitly. | |
129 | ||
130 | * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap. | |
131 | ||
f9d80af3 JR |
132 | 2000-10-27 Jason Rumney <jasonr@gnu.org> |
133 | ||
134 | * w32fns.c (Fx_create_frame): Make default fontsize on w32 10 | |
135 | point, as Windows has oversized fonts. | |
136 | ||
137 | * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise. | |
138 | ||
a3ba27da GM |
139 | 2000-10-27 Gerd Moellmann <gerd@gnu.org> |
140 | ||
141 | * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1. | |
142 | (freehook, reallochook): Handle null pointer arguments. | |
143 | (__malloc_initialize) [GC_MCHECK]: Call mcheck. | |
144 | ||
aa3b80cc SM |
145 | 2000-10-27 Stefan Monnier <monnier@cs.yale.edu> |
146 | ||
147 | * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal) | |
148 | (re_match_2_internal, re_match_2_internal, re_match_2_internal): | |
149 | Giving in to popular pressure to shut up the compiler with casts. | |
150 | ||
e24e84cc GM |
151 | 2000-10-27 Gerd Moellmann <gerd@gnu.org> |
152 | ||
153 | * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a | |
154 | signed value, and use a default value computed from the font's | |
155 | maximum descent. | |
156 | ||
05ea7ef2 MB |
157 | 2000-10-27 Miles Bader <miles@lsi.nec.co.jp> |
158 | ||
159 | * xterm.c (x_draw_glyph_string): Add a workaround so that fonts | |
160 | that specify a negative underline position can still use underlines. | |
161 | ||
162 | * window.c (Fpos_visible_in_window_p): Make POS default to | |
163 | WINDOW's point, not the current buffer's point. | |
164 | ||
0b95284b DL |
165 | 2000-10-26 Dave Love <fx@gnu.org> |
166 | ||
167 | * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out | |
168 | when it's necessary. | |
169 | ||
6c5b90af GM |
170 | 2000-10-26 Gerd Moellmann <gerd@gnu.org> |
171 | ||
8b6d9dc9 GM |
172 | * window.c (size_window): Compute size difference from sum of old |
173 | child window sizes instead of from parent's size. | |
174 | ||
6bc92b2e GM |
175 | * xdisp.c (pos_visible_p): Change current buffer if necessary. |
176 | Handle obscured lines at the top of the window. | |
177 | ||
178 | * frame.c (Fdelete_frame): Doc fix. Move running the hook | |
179 | down after the last error condition check. | |
180 | ||
6c5b90af GM |
181 | * frame.c (Fdelete_frame): Run delete-frame-hook. |
182 | ||
42f92d4d KH |
183 | 2000-10-26 Kenichi Handa <handa@etl.go.jp> |
184 | ||
185 | * coding.c (decode_coding): Fix previous change (check also | |
186 | CODING_MODE_LAST_BLOCK). | |
187 | ||
d97151cb SM |
188 | 2000-10-25 Stefan Monnier <monnier@cs.yale.edu> |
189 | ||
e7efc503 SM |
190 | * regex.c: More `unsigned char' -> `re_char' changes. |
191 | Also change several `int' into `re_wchar_t'. | |
192 | (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove. | |
193 | (PUSH_FAILURE_POINTER): Don't cast any more. | |
194 | (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'. | |
195 | We want GCC to complain, since this piece of code makes | |
196 | re_match non-reentrant, which *should* be fixed. | |
197 | (GET_BUFFER_SPACE): Use size_t rather than unsigned long. | |
198 | (EXTEND_BUFFER): Use RETALLOC. | |
199 | (SET_LIST_BIT): Don't cast. | |
200 | (re_wchar_t): New type. | |
201 | (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC | |
202 | that those two functions will always properly return. | |
203 | (IMMEDIATE_QUIT_CHECK): Cast to void. | |
204 | (analyse_first): Use recursion rather than an explicit stack. | |
205 | (re_compile_fastmap): Can't fail anymore. | |
206 | (re_search_2): Don't check re_compile_fastmap for failure. | |
207 | (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT. | |
208 | Now also sets the new value (passed in a new argument). | |
209 | (re_match_2_internal): Use it. | |
210 | Also, use a new var `reg' of type size_t when looping through regs | |
211 | rather than reuse the inappropriate `mcnt'. | |
212 | ||
d97151cb SM |
213 | * keymap.c (where_is_cache, where_is_cache_keymaps): New vars. |
214 | (Fset_keymap_parent, store_in_keymap): Flush the where-is cache. | |
215 | (where_is_internal): Renamed from Fwhere_is_internal. | |
216 | Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'. | |
217 | (Fwhere_is_internal): New function wrapping where_is_internal. | |
218 | (where_is_internal_1): Handle the case where we're filling the cache. | |
219 | (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps). | |
220 | ||
d5789b65 MB |
221 | 2000-10-25 Miles Bader <miles@gnu.org> |
222 | ||
223 | * xdisp.c (pos_visible_p): Don't add `it.current_y' twice. | |
224 | ||
4ecda532 GM |
225 | 2000-10-25 Gerd Moellmann <gerd@gnu.org> |
226 | ||
227 | * window.c (pos_fully_visible_p): Removed. | |
228 | (Fpos_visible_in_window_p): Use pos_visible_p to determine | |
229 | if position is visible and/or fully visible. | |
230 | ||
231 | * lisp.h (pos_visible_p): Add prototype. | |
232 | ||
233 | * xdisp.c (pos_visible_p): New function. | |
234 | ||
68c3a137 KH |
235 | 2000-10-25 Kenichi Handa <handa@etl.go.jp> |
236 | ||
237 | * process.c (send_process): If OBJECT is t, it means that the data | |
238 | is from C string, but we should encode it. Before calling | |
239 | setup_raw_text_coding_system, be sure to flush out data by the | |
240 | previous coding system. | |
241 | ||
7ae1c032 MB |
242 | 2000-10-25 Miles Bader <miles@lsi.nec.co.jp> |
243 | ||
ff4dcd4b MB |
244 | * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an |
245 | assignment of startpos to prev when startpos == pos. | |
246 | ||
7ae1c032 MB |
247 | * editfns.c (find_field): Set the field stickiness correctly from |
248 | overlay fields. Use renamed `text_property_stickiness'. | |
249 | (text_property_stickiness): Renamed from `char_property_stickiness'. | |
ebe2a441 | 250 | Only check text properties, not overlays. |
7ae1c032 MB |
251 | * textprop.c (get_char_property_and_overlay): New function. |
252 | (Fget_char_property): Use it. | |
253 | * intervals.h (get_char_property_and_overlay): Add declaration. | |
254 | ||
49801145 SM |
255 | 2000-10-25 Stefan Monnier <monnier@cs.yale.edu> |
256 | ||
257 | * keymap.c: Use AREF, ASET and ASIZE macros. | |
258 | (Fmake_sparse_keymap): Docstring fix. | |
259 | (synkey): Remove. | |
260 | (shadow_lookup): Move up. | |
261 | Handle the case where lookup-key returns an integer. | |
262 | (where_is_internal_1): Drop arg `keymap'. Don't check shadowing. | |
263 | (where_is_internal_2): Adapt to fewer args for where_is_internal_1. | |
264 | (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps. | |
265 | Simplify/rewrite the keymap-finding code. | |
266 | Add check for command shadowing, using shadow_lookup. | |
267 | ||
39e776cd SM |
268 | 2000-10-24 Stefan Monnier <monnier@cs.yale.edu> |
269 | ||
270 | * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry | |
271 | rather than KEYMAPP, to allow EQ to work correctly if parent_entry is | |
272 | a symbol. | |
273 | ||
2488aba5 AI |
274 | 2000-10-24 Andrew Innes <andrewi@gnu.org> |
275 | ||
276 | * dired.c (directory_files_internal_unwind): New function. | |
277 | (directory_files_internal): Use it to ensure closedir is called | |
278 | even if expand-file-name or file-attributes throw, eg. because of | |
279 | a user interrupt. Also enable immediate_quit while calling | |
280 | re_search, so that matching can be interrupted as well. | |
281 | ||
b94fdf61 AI |
282 | 2000-10-24 Andrew Innes <andrewi@gnu.org> |
283 | ||
284 | * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on | |
285 | NT-Emacs only. | |
286 | (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT, | |
287 | so that re_search functions only quit when callers expect them to. | |
288 | ||
289 | 2000-10-24 Kenichi Handa <handa@etl.go.jp> | |
290 | ||
291 | * regex.c (regex_compile): Change the way of handling a range from | |
292 | a char less than 256 to a char not less than 256. | |
293 | ||
1946f901 GM |
294 | 2000-10-24 Gerd Moellmann <gerd@gnu.org> |
295 | ||
7ae2f10f GM |
296 | * window.c (size_window): Prevent setting window's width or |
297 | height to a negative value (esp. with XSETFASTINT). | |
298 | ||
5dcab13e GM |
299 | * gmalloc.c (state_protected_p, last_state_size, last_heapinfo) |
300 | [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables. | |
301 | (protect_malloc_state) [GC_MALLOC_CHECK && | |
302 | GC_PROTECT_MALLOC_STATE]: New function. | |
303 | (PROTECT_MALLOC_STATE): New macro. | |
304 | (__malloc_initialize, morecore, _malloc_internal) | |
305 | (_free_internal) _realloc_internal): Use it to make _heapinfo | |
306 | read-only outside of gmalloc. | |
307 | ||
63e1b552 GM |
308 | * keymap.c: Update copyright. |
309 | ||
1946f901 GM |
310 | * .gdbinit (xbacktrace): Handle case that $bt->function isn't |
311 | a symbol. | |
312 | ||
4fa09beb GM |
313 | 2000-10-24 Colin Walters <walters@cis.ohio-state.edu> |
314 | ||
315 | * filelock.c (unlock_all_files): Use unlock_file to expand each | |
316 | buffer's file_truename before trying remove its lock file. | |
317 | ||
23afac01 EZ |
318 | 2000-10-24 Eli Zaretskii <eliz@is.elta.co.il> |
319 | ||
320 | * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR | |
321 | or CRLF, decode EOLs. | |
322 | ||
04448b95 KH |
323 | 2000-10-24 Kenichi Handa <handa@etl.go.jp> |
324 | ||
325 | * window.c (Fdisplay_buffer): Fix doc. | |
326 | ||
3090a5a5 JR |
327 | 2000-10-23 Jason Rumney <jasonr@gnu.org> |
328 | ||
329 | * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for | |
330 | ASCII font of default fontset on Windows. | |
331 | ||
332 | * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see | |
333 | xterm.c comment below). | |
334 | ||
335 | * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy. | |
336 | ||
a83fee2c GM |
337 | 2000-10-23 Gerd Moellmann <gerd@gnu.org> |
338 | ||
339 | * xterm.c (x_connection_closed): Reset handling_signal. | |
340 | ||
341 | * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing | |
342 | null. | |
343 | ||
6ffdb539 MB |
344 | 2000-10-23 Miles Bader <miles@gnu.org> |
345 | ||
346 | * window.c (window_scroll_pixel_based, window_scroll_line_based): | |
347 | Pass nil for FULLY argument to Fpos_visible_in_window_p to | |
348 | maintain old behavior. | |
349 | * minibuf.c (Fminibuffer_complete): Likewise. | |
350 | ||
7f1c969b MB |
351 | 2000-10-23 Miles Bader <miles@lsi.nec.co.jp> |
352 | ||
353 | * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so | |
354 | that when a font can't be exactly centered, it errs up rather than | |
355 | down. | |
356 | ||
23afac01 | 357 | 2000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu> |
8ec118cd SZ |
358 | |
359 | * fns.c (Fbase64_decode_string): The decoded result should be | |
360 | unibyte. | |
361 | ||
1a578e9b AC |
362 | 2000-10-23 Andrew Choi <akochoi@i-cable.com> |
363 | ||
364 | * dispextern.h [macintosh]: Include macgui.h instead of macterm.h. | |
365 | ||
366 | * dispnew.c [macintosh]: Include macterm.h. | |
a83fee2c | 367 | (init_display) [macintosh]: Initialization for window system. |
1a578e9b AC |
368 | |
369 | * emacs.c (main) [macintosh]: Call syms_of_textprop, | |
370 | syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm, | |
371 | syms_of_search, x_term_init, and init_keyboard before calling | |
372 | init_window_once. Also, call syms_of_xmenu. | |
373 | ||
374 | * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of | |
375 | default fontset to Monaco. | |
376 | ||
377 | * frame.c [macintosh]: Include macterm.h. Remove declarations of | |
378 | NewMacWindow and DisposeMacWindow. | |
379 | (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame | |
380 | instead of calling NewMacWindow and setting fields of | |
381 | f->output_data.mac directly. Call init_frame_faces. | |
382 | (Fdelete_frame) [macintosh]: Remove unused code. | |
383 | (Fmodify_frame_parameters) [macintosh]: Call | |
384 | x_set_frame_parameters instead of mac_set_frame_parameters. | |
385 | ||
386 | * frame.h [macintosh]: Define menu_bar_lines field in struct | |
387 | frame. Define FRAME_EXTERNAL_MENU_BAR macro. | |
388 | ||
389 | * keyboard.c [macintosh]: Include macterm.h. | |
390 | (kbd_buffer_get_event) [macintosh]: Generate delete_window_event | |
391 | and menu_bar_activate_event type events as for X and NT. | |
392 | (make_lispy_event) [macintosh]: Construct lisp events of type | |
393 | MENU_BAR_EVENT as for X and NT. | |
394 | ||
395 | * sysdep.c [macintosh]: Remove declaration for sys_signal. | |
396 | Include stdlib.h. Remove definition of Vx_bitmap_file_path. | |
397 | (sys_subshell) [macintosh]: Remove definition entirely. | |
398 | (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and | |
399 | Vwindow_system_version here. Remove initialization of | |
400 | Vx_bitmap_file_path. | |
401 | (read_input_waiting): Correct the number of parameters passed to | |
402 | read_socket_hook. | |
403 | Move all Macintosh functions to mac/mac.c. | |
404 | ||
405 | * term.c [macintosh]: Include macterm.h. | |
406 | ||
407 | * window.c [macintosh]: Include macterm.h. | |
408 | ||
409 | * xdisp.c [macintosh]: Include macterm.h. Declare | |
410 | set_frame_menubar and pending_menu_activation. | |
411 | (echo_area_display) [macintosh]: Do not return if terminal frame | |
412 | is the selected frame. | |
413 | (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f). | |
414 | Allow only the selected frame to set menu bar. | |
415 | (redisplay_window) [macintosh]: Obtain menu bar to redisplay by | |
416 | calling FRAME_EXTERNAL_MENU_BAR (f). | |
417 | (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f). | |
418 | ||
419 | * xfaces.c [macintosh]: Include macterm.h. Define x_display_info | |
420 | and check_x. Declare XCreateGC. Define x_create_gc and | |
421 | x_free_gc. Initialize font_sort_order. | |
422 | (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT, | |
423 | but call x_list_fonts instead of w32_list_fonts. | |
424 | (Finternal_face_x_get_resource) [macintosh]: Do not call | |
425 | display_x_get_resource. | |
426 | (prepare_face_for_display) [macintosh]: Set xgcv.font. | |
427 | (realize_x_face) [macintosh]: Load the font if it is specified in | |
428 | ATTRS. | |
429 | (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed | |
430 | to Qt. | |
431 | ||
1ffbabe3 SM |
432 | 2000-10-22 Stefan Monnier <monnier@cs.yale.edu> |
433 | ||
434 | * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry | |
435 | is nil: since we go to the end of submap anyway, we'd end up | |
436 | setting nil to nil. | |
437 | (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP | |
438 | doesn't obey autoload. | |
439 | ||
bed43f1d EZ |
440 | 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il> |
441 | ||
1ffbabe3 | 442 | * msdos.c (dos_set_window_size): Update screen dimension variables. |
bed43f1d | 443 | |
ea4233a7 JR |
444 | 2000-10-21 Jason Rumney <jasonr@gnu.org> |
445 | ||
446 | * w32term.c (w32_cache_char_metrics): Double check that font is | |
447 | really fixed pitch before trusting tmPitchAndFamily. | |
448 | ||
f3d3c491 AI |
449 | 2000-10-21 Andrew Innes <andrewi@gnu.org> |
450 | ||
451 | * w32gui.h (w32_char_font_type): Move enum from w32term.c | |
452 | ||
453 | * w32term.h: Extern decl for w32_cache_char_metrics. | |
454 | ||
455 | * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics. | |
456 | ||
457 | * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics. | |
458 | (w32_unload_font): Free per_char array if present. | |
459 | ||
460 | * w32term.c (w32_per_char_metric): Remove HDC argument. Use | |
461 | cached information in emulated XFontStruct to handle common cases | |
462 | quickly. Do not allocate XCharStruct for return. | |
463 | (w32_native_per_char_metric): New function. | |
464 | (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of | |
465 | allocating one. | |
466 | (x_produce_glyphs): Don't get an HDC. Change calls to | |
467 | w32_per_char_metric to match arg change above. Remove calls to | |
468 | free results. | |
469 | (w32_get_glyph_overhangs): Ditto. | |
470 | (w32_cache_char_metrics): New function. | |
471 | ||
472 | * makefile.w32-in: Change .obj to .$(O) in all dependencies. | |
473 | ($(BLD)/casefiddle.$(O)): Remove compile command. | |
474 | ($(BLD)/gmalloc.$(O)): Remove compile command. | |
475 | ($(BLD)/dispnew.obj): | |
476 | ($(BLD)/keyboard.obj): | |
477 | ($(BLD)/w32inevt.obj): | |
478 | ($(BLD)/w32bdf.obj): | |
479 | ($(BLD)/alloc.obj): | |
480 | ($(BLD)/buffer.obj): | |
481 | ($(BLD)/editfns.obj): | |
482 | ($(BLD)/emacs.obj): | |
483 | ($(BLD)/fileio.obj): | |
484 | ($(BLD)/fns.obj): | |
485 | ($(BLD)/indent.obj): | |
486 | ($(BLD)/insdel.obj): | |
487 | ($(BLD)/intervals.obj): | |
488 | ($(BLD)/minibuf.obj): | |
489 | ($(BLD)/print.obj): | |
490 | ($(BLD)/scroll.obj): | |
491 | ($(BLD)/sysdep.obj): | |
492 | ($(BLD)/textprop.obj): | |
493 | ($(BLD)/widget.obj): | |
494 | ($(BLD)/xdisp.obj): Add dependency on w32gui.h. | |
495 | ($(BLD)/term.obj): Add dependency on dispextern.h. | |
496 | ||
497 | * makefile.nt ($(BLD)\dispnew.obj): | |
498 | ($(BLD)\keyboard.obj): | |
499 | ($(BLD)\w32inevt.obj): | |
500 | ($(BLD)\w32bdf.obj): | |
501 | ($(BLD)\alloc.obj): | |
502 | ($(BLD)\buffer.obj): | |
503 | ($(BLD)\editfns.obj): | |
504 | ($(BLD)\emacs.obj): | |
505 | ($(BLD)\fileio.obj): | |
506 | ($(BLD)\fns.obj): | |
507 | ($(BLD)\indent.obj): | |
508 | ($(BLD)\insdel.obj): | |
509 | ($(BLD)\intervals.obj): | |
510 | ($(BLD)\minibuf.obj): | |
511 | ($(BLD)\print.obj): | |
512 | ($(BLD)\scroll.obj): | |
513 | ($(BLD)\sysdep.obj): | |
514 | ($(BLD)\textprop.obj): | |
515 | ($(BLD)\widget.obj): | |
516 | ($(BLD)\xdisp.obj): Add dependency on w32gui.h. | |
517 | ($(BLD)\term.obj): Add dependency on dispextern.h | |
518 | ||
18ad4821 EZ |
519 | 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il> |
520 | ||
521 | * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p | |
522 | with an additional argument of Qt. | |
523 | ||
de54681a MB |
524 | 2000-10-21 Miles Bader <miles@gnu.org> |
525 | ||
526 | * window.c (pos_fully_visible_in_window_p): New function. | |
527 | (Fpos_visible_in_window_p): Add FULLY argument. | |
528 | Use pos_fully_visible_in_window_p. | |
529 | (window_scroll_pixel_based, window_scroll_line_based): Update | |
530 | calls to Fpos_visible_in_window_p. | |
531 | * lisp.h (Fpos_visible_in_window_p): Update prototype | |
532 | ||
13c844fb GM |
533 | 2000-10-20 Gerd Moellmann <gerd@gnu.org> |
534 | ||
535 | * alloc.c (toplevel): Conditionalize compilation of mem_* | |
536 | functions differently. | |
537 | ||
d9506268 JR |
538 | 2000-10-20 Jason Rumney <jasonr@gnu.org> |
539 | ||
540 | * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above | |
541 | mem_init where it used to be. mem_z etc not defined otherwise. | |
542 | ||
8094989b GM |
543 | 2000-10-20 Gerd Moellmann <gerd@gnu.org> |
544 | ||
545 | * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef | |
546 | GC_MALLOC_CHECK. | |
547 | (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node | |
548 | structure definition and related variabled to the top of the file. | |
549 | Include this code when GC_MALLOC_CHECK is defined. | |
550 | (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't | |
551 | register/unregister allocated region. | |
552 | (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something | |
553 | which isn't allocated. | |
554 | (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning | |
555 | something which is already in use. | |
556 | (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise. | |
557 | (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal. | |
558 | (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal. | |
559 | (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init. | |
560 | ||
561 | * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use | |
562 | _malloc_internal instead of malloc. | |
563 | (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead | |
564 | of free. | |
565 | ||
ea456eb4 AI |
566 | 2000-10-20 Andrew Innes <andrewi@gnu.org> |
567 | ||
568 | * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on | |
569 | Windows. | |
570 | (my_strftime) <macro>: Don't use macro arg list when redefining as | |
571 | _strftime_copytm. | |
572 | (my_strftime) <function>: Supply 0 as ut argument. | |
573 | ||
e64c3a75 JR |
574 | 2000-10-19 Jason Rumney <jasonr@altavista.net> |
575 | ||
576 | * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before | |
577 | including dispextern.h, as it stops faces from working. | |
578 | ||
579 | * w32fns.c (Fx_create_frame): Don't bother calling | |
580 | face-set-after-frame-default since the caller does it for us | |
581 | anyway. Clean up calls to x_get_arg to be consistent with X. | |
582 | ||
583 | * w32term.c (x_produce_glyphs): Handle | |
584 | unibyte_display_via_language_environment correctly. | |
585 | (w32_draw_box_rect): Fix the calculation of width and height. | |
586 | ||
587 | * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles, | |
588 | as it has stopped working. | |
589 | (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like | |
590 | menu-bar. | |
591 | ||
17401c97 GM |
592 | 2000-10-19 Gerd Moellmann <gerd@gnu.org> |
593 | ||
594 | * eval.c (skip_debugger): Prevent a compiler warning. | |
595 | (Fcondition_case): Likewise. | |
596 | (Fbacktrace_frame): Use a null interactive spec. | |
597 | ||
773272d8 KH |
598 | 2000-10-19 Kenichi Handa <handa@etl.go.jp> |
599 | ||
600 | * xterm.c (x_find_ccl_program): Check also fontp->full_name. | |
601 | ||
a42943e9 GM |
602 | 2000-10-18 Gerd Moellmann <gerd@gnu.org> |
603 | ||
e50517d9 GM |
604 | * strftime.c: Sync with glibc, file version 1.78. |
605 | (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which | |
606 | should no longer be used according to ISO 8601. | |
607 | ||
9035a35a GM |
608 | * keymap.c (access_keymap): If IDX has a meta prefix, and there's |
609 | no map for meta_prefix_char, don't try to use it as a keymap. | |
610 | Instead, if T_OK is non-zero, look up a default binding, if any, | |
611 | otherwise, if T_OK is zero, return nil. | |
612 | ||
a42943e9 GM |
613 | * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color) |
614 | (x_to_xcolors, png_load): Use x_query_color. | |
615 | ||
616 | * xterm.c (x_color_cells, x_query_colors, x_query_color): New | |
617 | functions. | |
618 | (x_alloc_nearest_color): Use it to reduce calls to XQueryColors | |
619 | which can be slow. | |
620 | (x_copy_color, x_alloc_lighter_color): Likewise. | |
621 | ||
622 | * xterm.h (struct x_display_info): Add color_cells and ncolor_cells. | |
623 | (x_query_color, x_query_colors): Add prototype. | |
624 | ||
625 | * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call | |
626 | check_string_bytes only if not noninteractive, increase count to 50. | |
627 | ||
00de2987 MB |
628 | 2000-10-18 Miles Bader <miles@lsi.nec.co.jp> |
629 | ||
630 | * insdel.c (adjust_markers_for_delete): Handle before-insertion | |
631 | markers correctly. | |
632 | ||
54918e2b GM |
633 | 2000-10-17 Gerd Moellmann <gerd@gnu.org> |
634 | ||
1f0b3fd2 GM |
635 | * alloc.c (pure_bytes_used): Renamed from pureptr. |
636 | (ALIGN): New macro. | |
637 | (pure_alloc): New function. | |
638 | (make_pure_string, pure_cons, make_pure_float, make_pure_vector): | |
639 | Use it. | |
640 | (Fpurecopy): Use PURE_POINTER_P. | |
641 | ||
68c5d1db GM |
642 | * xdisp.c (try_cursor_movement): Use cursor_row_p also when |
643 | PT has moved backward. | |
644 | ||
9a038881 GM |
645 | * xdisp.c (cursor_row_p): Take continued lines into account. |
646 | ||
361b097f GM |
647 | * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of |
648 | string's size_byte. | |
649 | (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function. | |
650 | (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable. | |
651 | (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th | |
652 | string allocated. | |
653 | ||
54918e2b GM |
654 | * xdisp.c (forward_to_next_line_start): Switch iterator's handling |
655 | of selective display off while searching for the next line start. | |
656 | ||
03ed0806 KH |
657 | 2000-10-17 Kenichi Handa <handa@etl.go.jp> |
658 | ||
659 | * Makefile.in (term.o): Depend on dispextern.h. | |
660 | ||
7e05cdaf SM |
661 | 2000-10-16 Stefan Monnier <monnier@cs.yale.edu> |
662 | ||
663 | * keymap.c (keymap_memberp): Ensure that nil is not a member. | |
664 | ||
a6801fd1 GM |
665 | 2000-10-16 Gerd Moellmann <gerd@gnu.org> |
666 | ||
483de32b GM |
667 | * xdisp.c (set_iterator_to_next): Reset box start and end flags of |
668 | the iterator at the beginning, so that they can be set later on, | |
669 | for instance in reseat_at_next_visible_line_start, without being | |
670 | overwritten. | |
671 | ||
a6801fd1 GM |
672 | * xfns.c (pbm_format): Add :foreground and :background keywords. |
673 | (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators. | |
483de32b | 674 | (xbm_load): Recognize foreground and background color |
a6801fd1 GM |
675 | specifications. |
676 | ||
dbf1fcc1 EZ |
677 | 2000-10-16 Eli Zaretskii <eliz@is.elta.co.il> |
678 | ||
679 | * dispextern.h (unspecified_fg, unspecified_bg): Declare. | |
680 | ||
681 | * dosfns.c (unspecified_fg, unspecified_bg): Remove extern | |
682 | declaration. | |
683 | ||
684 | * msdos.c (IT_set_face): Compare highlighted face with the default | |
685 | face, and invert colors if these faces' colors are identical. | |
686 | (Fmsdos_remember_default_colors): Don't swap foreground and | |
687 | background colors in initial_colors[]. | |
688 | (IT_set_frame_parameters): Don't swap frame's foreground and | |
689 | background pixels. If ALIST includes "(reverse . t)", swap | |
690 | foreground-color and background-color properties in frame's | |
691 | param_alist. If the original frame's param_alist doesn't specify | |
692 | the colors, store unspecified-fg and unspecified-bg, reversed if | |
693 | required. | |
694 | ||
695 | * frame.c (Fframe_parameters): If a tty's frame's param_alist says | |
696 | the colors are unspecified and reversed, reverse fore- and back- | |
697 | ground in the returned value. | |
698 | (Fframe_parameter): Ditto. | |
699 | ||
b41fe2c3 GM |
700 | 2000-10-16 Gerd Moellmann <gerd@gnu.org> |
701 | ||
3a6b59d9 GM |
702 | * xdisp.c (find_last_unchanged_at_beg_row): Renamed from |
703 | get_last_unchanged_at_beg_row. | |
704 | (find_first_unchanged_at_end_row): Renamed from | |
705 | get_first_unchanged_at_end_row. | |
706 | (find_first_unchanged_at_end_row): Convert assertions to | |
707 | unconditional tests which abort. When looking for a row in | |
708 | unchanged text, don't go further back than first_text_row. | |
709 | ||
b41fe2c3 GM |
710 | * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>: |
711 | Don't add in the last line's height when deciding if the new | |
712 | position is below the scroll margin. | |
9d1af64f | 713 | |
b41fe2c3 | 714 | 2000-10-16 Miles Bader <miles@gnu.org> |
f657bbf6 MB |
715 | |
716 | * editfns.c (Fconstrain_to_field): Check carefully for field | |
717 | boundaries if either OLD_POS or NEW_POS has a non-nil field | |
718 | property, even if they're the same. | |
719 | ||
c412cb7b KH |
720 | 2000-10-16 Kenichi Handa <handa@etl.go.jp> |
721 | ||
722 | * xterm.c (x_draw_box_rect): Fix the calculation of width and | |
723 | height for XFillRectangle. | |
724 | ||
5586f3eb SM |
725 | 2000-10-15 Stefan Monnier <monnier@cs.yale.edu> |
726 | ||
727 | * syntax.c (Fstring_to_syntax): New function extracted from | |
728 | Fmodify_syntax_entry. | |
729 | (Fmodify_syntax_entry): Use it and document the ! and | fences. | |
730 | (skip_chars, Fforward_comment): Remove unused variables. | |
731 | (syms_of_syntax): Add defsubr for string-to-syntax. | |
732 | (describe_syntax): Add code for comment and string fences. | |
733 | ||
db785038 SM |
734 | 2000-10-14 Stefan Monnier <monnier@cs.yale.edu> |
735 | ||
736 | * keymap.c (access_keymap): Add AUTOLOAD parameter. | |
737 | Do the meta->esc mapping. Call get_keyelt before returning. | |
738 | Start scanning from the second element (the first is always `keymap') | |
739 | to make it easier to detect when we reach a parent map. | |
740 | Handle the case of inheriting from a symbol whose function is a map. | |
741 | (Fkeymap_parent): Also handle the `inherit from symbol' case. | |
742 | (fix_submap_inheritance, Fdefine_key): Update call to access_keymap. | |
743 | (get_keyelt, Flookup_key): Update call to access_keymap. | |
744 | Remove the meta->esc mappings. | |
745 | (define_as_prefix): Delete old disabled code. | |
746 | (menu_item_p): New function. | |
747 | (where_is_internal_1): Skip over the few remaining menu items. | |
748 | * lisp.h (access_keymap): Update prototype. | |
749 | * keyboard.c (read_char, menu_bar_items, tool_bar_items): | |
750 | Update call to access_keymap. | |
751 | (follow_key, read_key_sequence): Update calls to access_keymap. | |
752 | Remove the meta->esc mappings. | |
753 | ||
cafafe0b GM |
754 | 2000-10-13 Gerd Moellmann <gerd@gnu.org> |
755 | ||
a2e2a7f6 GM |
756 | * dispnew.c (direct_output_for_insert): Call set_iterator_to_next |
757 | with additional argument. | |
758 | ||
cafafe0b GM |
759 | * xdisp.c (cursor_row_p): New function. |
760 | (try_cursor_movement, display_line): Use it. | |
761 | ||
762 | * xdisp.c (append_space): Also save/restore iterator's current | |
763 | character and its length. | |
764 | ||
765 | * xdisp.c (init_from_display_pos): Add an assertion. | |
766 | (handle_stop): Don't set iterator's add_overlay_start. | |
767 | (handle_invisible_prop): Likewise. | |
768 | (load_overlay_strings): If text under an overlay is invisible, | |
769 | take both before- and after-strings into account when the iterator | |
770 | is positioned either at the start or at the end of the overlay. | |
771 | (forward_to_next_line_start): Rewritten. | |
772 | (reseat_at_next_visible_line_start): Rewritten. | |
773 | (set_iterator_to_next): Add parameter RESEAT_P. | |
774 | ||
775 | * dispextern.h (struct it): Remove member add_overlay_start. | |
776 | (set_iterator_to_next): Change prototype. | |
777 | ||
c744452b KH |
778 | 2000-10-13 Kenichi Handa <handa@etl.go.jp> |
779 | ||
780 | * coding.c (code_convert_region): Be sure to initialize | |
781 | coding->category_idx. | |
e4a3f4e1 KH |
782 | (decode_coding_string): Set coding->src_multibyte and |
783 | coding->dst_multibyte before using CODING_REQUIRE_DECODING. | |
784 | (encode_coding_string): Set coding->src_multibyte and | |
785 | coding->dst_multibyte before using CODING_REQUIRE_ENCODING. | |
c744452b | 786 | |
321fd26f SM |
787 | 2000-10-12 Stefan Monnier <monnier@cs.yale.edu> |
788 | ||
789 | * xfns.c (Fx_create_frame): Don't bother calling | |
790 | face-set-after-frame-default since the caller does it for us anyway. | |
791 | ||
76832439 EZ |
792 | 2000-10-12 Eli Zaretskii <eliz@is.elta.co.il> |
793 | ||
794 | * window.c (coordinates_in_window): Fix detection of vertical line | |
795 | on character terminals. | |
796 | ||
2483cf58 GM |
797 | 2000-10-12 Gerd Moellmann <gerd@gnu.org> |
798 | ||
799 | * editfns.c (save_excursion_save): Additionally record the | |
800 | selected window. | |
801 | (save_excursion_restore): If buffer was visible in a window, and a | |
802 | different window was selected, and the old selected window is | |
803 | still live, restore point in that window. | |
804 | ||
eb991b25 KH |
805 | 2000-10-12 Kenichi Handa <handa@etl.go.jp> |
806 | ||
8a0eba09 KH |
807 | * xterm.c (x_produce_glyphs): Handle |
808 | unibyte_display_via_language_environment correctly. | |
809 | ||
20401fcc KH |
810 | * regex.c (regex_compile): Change the way of handling a range from |
811 | unibyte char to multibyte char. | |
812 | ||
813 | * syntax.c (skip_chars): Change the way of handling a range from | |
814 | unibyte char to multibyte char. | |
815 | ||
eb991b25 KH |
816 | * process.c (read_process_output): Cancel previous change. |
817 | ||
365dd325 EZ |
818 | 2000-10-11 Eli Zaretskii <eliz@is.elta.co.il> |
819 | ||
c1b096cb EZ |
820 | * search.c (Fsearch_backward, Fsearch_forward): Doc fix. |
821 | ||
365dd325 EZ |
822 | * charset.c (Ffind_charset_string): Doc fix. |
823 | (Ffind_charset_region): Doc fix. | |
824 | ||
eb483c2b KH |
825 | 2000-10-11 Kenichi Handa <handa@mule.m17n.org> |
826 | ||
827 | * process.c (read_process_output): Fix previous change. Adjust | |
828 | multibyteness of text to insert in a buffer by | |
df3c11b9 | 829 | string_make_unibyte/multibyte instead of |
eb483c2b KH |
830 | Fstring_as_unibyte/multibyte. |
831 | ||
b40bfb99 AS |
832 | 2000-10-10 Andreas Schwab <schwab@suse.de> |
833 | ||
834 | * alloc.c (mark_object): Remove all workarounds installed on | |
835 | 1993-08-08. | |
836 | ||
caff31d4 KH |
837 | 2000-10-10 Kenichi Handa <handa@etl.go.jp> |
838 | ||
839 | * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before | |
840 | returning. | |
841 | (base64_encode_1): Make it work for a text of multibyte form. | |
842 | (Fbase64_decode_region): Allocate sufficient memory for multibyte | |
843 | case. Don't call str_to_multibyte because base64_decode_1 | |
844 | produces correct multibyte form for eight-bit codes. | |
845 | (Fbase64_decode_string): Adjusted for the change of | |
846 | base64_decode_1. | |
847 | (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If | |
848 | MULTIBYTE is nonzero, produce correct multibyte form for eight-bit | |
849 | codes. | |
850 | ||
851 | * charset.h (CHAR_STRING): Optimized for single byte characters. | |
852 | ||
cba026ef AS |
853 | 2000-10-09 Andreas Schwab <schwab@suse.de> |
854 | ||
855 | * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to | |
856 | -1 after socket is closed, to fall through to error processing. | |
857 | ||
1e21fe48 EZ |
858 | 2000-10-09 Eli Zaretskii <eliz@is.elta.co.il> |
859 | ||
860 | * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object | |
365dd325 | 861 | variables. If ALIST includes foreground-color or |
1e21fe48 EZ |
862 | background-color, change also the colors of the default face for |
863 | this frame. | |
864 | ||
a640322e EZ |
865 | 2000-10-08 Eli Zaretskii <eliz@is.elta.co.il> |
866 | ||
867 | * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make | |
868 | them extern (they are defined on xfaces.c). | |
869 | (syms_of_msdos): Don't intern and don't staticpro | |
870 | Qbackground_color and Qforeground_color. | |
871 | ||
a115794c EZ |
872 | 2000-10-07 Eli Zaretskii <eliz@is.elta.co.il> |
873 | ||
874 | * frame.c (Fframe_parameter): For non-windowed frames, if | |
875 | f->param_alist says foreground or background color is unspecified, | |
876 | call tty_color_name to return the color name computed from the | |
877 | frame's current colors. | |
878 | ||
f5533b63 DL |
879 | 2000-10-06 Dave Love <fx@gnu.org> |
880 | ||
881 | * terminfo.c (ospeed): Don't declare. | |
882 | ||
883 | * sysdep.c: Don't include string.h. | |
884 | (h_errno): Declare conditional also on TRY_AGAIN. | |
885 | ||
886 | * charset.c (Ffind_charset_string): Doc fix. | |
887 | ||
888 | * fns.c (Fbase64_encode_region, Fbase64_encode_string) | |
889 | (Fbase64_decode_region, Fbase64_decode_string): More explicit | |
890 | error messages. | |
891 | ||
2b06561a DL |
892 | 2000-10-05 Dave Love <fx@gnu.org> |
893 | ||
894 | * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar | |
895 | position like menu-bar. | |
896 | ||
ca839c85 GM |
897 | 2000-10-05 Gerd Moellmann <gerd@gnu.org> |
898 | ||
899 | * keyboard.c (Frecursive_edit): Make sure redisplay can happen. | |
900 | ||
901 | * xdisp.c (handle_single_display_prop): Use safe_call1. | |
902 | (safe_call): Renamed from call_function. | |
903 | (safe_call1): New function. | |
904 | (handle_fontified_prop): Use safe_call1 instead of call1. | |
905 | (safe_eval): Renamed from eval_form. | |
906 | (safe_eval_handler): Renamed from eval_handler. | |
907 | (handle_single_display_prop, display_mode_element): Use safe_eval | |
908 | instead of eval_form. | |
909 | ||
910 | * xfaces.c (merge_face_heights): Use safe_call instead of | |
911 | call_function. | |
912 | ||
913 | * keyboard.c (show_help_echo): Use safe_call instead of | |
914 | call_function; use safe_eval instead of eval_form. | |
915 | ||
916 | * lisp.h (safe_call): Renamed from call_function. | |
917 | (safe_eval): Renamed from eval_form. | |
918 | (safe_call1): Add prototype. | |
919 | ||
a3489ece MB |
920 | 2000-10-05 Miles Bader <miles@lsi.nec.co.jp> |
921 | ||
922 | * xfns.c (image_ascent): Rearrange ascent calculation for the | |
923 | has-a-font case. | |
924 | ||
35810b6f SM |
925 | 2000-10-04 Stefan Monnier <monnier@cs.yale.edu> |
926 | ||
927 | * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'. | |
928 | (where_is_internal_1): Don't bother ignoring menu-items any more. | |
929 | ||
3dc78168 GM |
930 | 2000-10-04 Gerd Moellmann <gerd@gnu.org> |
931 | ||
932 | * keyboard.c (update_menu_bindings): New variable. | |
933 | (parse_menu_item): Use AREF. If update_menu_bindings | |
934 | is 0, don't update menu bindings. | |
935 | (syms_of_keyboard): New Lisp variable `update-menu-bindings'. | |
936 | ||
1efc2bb9 EZ |
937 | 2000-10-03 Eli Zaretskii <eliz@is.elta.co.il> |
938 | ||
939 | * alloc.c (Fgarbage_collect): Prevent compiler warning for a call | |
940 | to `mark_object'. | |
941 | ||
3f679f55 SM |
942 | 2000-10-02 Stefan Monnier <monnier@cs.yale.edu> |
943 | ||
944 | * syntax.c (forw_comment): Match nestedness of ender/starter. | |
945 | (Fforward_comment): Treat an unmatched \n comment-ender as whitespace. | |
946 | (prev_char_comstart_first): Remove. | |
947 | (back_comment): Check two-char comment markers more carefully | |
948 | to better handle overlapping cases like *//* or /* */* */ ... | |
949 | Match nestedness of ender/starter. | |
950 | ||
2021ab61 DL |
951 | 2000-10-02 Dave Love <fx@gnu.org> |
952 | ||
953 | * config.in (HAVE_GAI_STRERROR): Add undef. | |
954 | ||
955 | * process.c (Fopen_network_stream): Use it. | |
956 | ||
957 | * m/alpha.h (NO_REMAP): Don't define. | |
958 | ||
64e6cc18 GM |
959 | 2000-10-02 Gerd Moellmann <gerd@gnu.org> |
960 | ||
961 | * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can | |
962 | return with a string converted to an integer or vice versa when | |
963 | Vmocklisp_arguments is t. | |
964 | (Fsignal): Likewise. The function can return for `quit'. | |
965 | (struct gcpro): Declare member `var' to point to a volatile | |
966 | Lisp_Object. | |
967 | ||
968 | * eval.c (error): Prevent compiler warning. | |
969 | ||
b1904cd9 SM |
970 | 2000-09-30 Stefan Monnier <monnier@cs.yale.edu> |
971 | ||
972 | * keymap.c (keymap_memberp): New function. | |
973 | (Fset_keymap_parent): Use it. | |
974 | (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP. | |
975 | Use keymap_memberp to avoid creating cycles. | |
976 | (access_keymap): Use KEYMAPP. | |
977 | ||
71c9ec51 GM |
978 | 2000-09-30 Gerd Moellmann <gerd@gnu.org> |
979 | ||
980 | * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use | |
64e6cc18 GM |
981 | gai_strerror. Make sure xerrno is set if connect fails. Improve |
982 | error recovery. | |
71c9ec51 | 983 | |
c70c6b58 JR |
984 | 2000-09-29 Jason Rumney <jasonr@gnu.org> |
985 | ||
986 | * w32term.c (w32_char_font_type, w32_encode_char) | |
987 | (x_produce_glyphs): Distinguish single and multibyte BDF fonts. | |
988 | (w32_bdf_per_char_metric): New function. | |
989 | (w32_per_char_metric): Use it. | |
990 | (x_draw_glyph_string_background): Always draw background for BDF | |
991 | glyphs. | |
992 | ||
993 | * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not | |
994 | GDI object which is a scarce resource. | |
995 | ||
996 | * w32bdf.c (search_file_line): Fix skipping of whitespace. | |
997 | (get_quoted_string): Fix limit on memchr search. | |
998 | (set_bdf_font_info): Use unsigned chars. Negate yoffset. | |
999 | (w32_init_bdf_font): Initialize codepoint and bitmap heaps. | |
1000 | (w32_free_bdf_font): Free bitmaps and codepoints on heaps. | |
1001 | (get_cached_font_char, cache_char_offset): Use macro | |
1002 | BDF_CODEPOINT_RANGE_COVER_P. | |
1003 | (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap. | |
1004 | (clear_cached_bitmap_slots): New function. | |
1005 | (GET_HEX_VALUE): G-Z, g-z are not hex. | |
1006 | (w32_get_bdf_glyph): Convert to DIB format. Return bytes read. | |
1007 | (get_bitmap_with_cache): Use new cache implementation. | |
1008 | (create_offscreen_bitmap): New function. | |
1009 | (w32_BDF_TextOut): Use it. Draw glyphs as DIBs. | |
1010 | ||
1011 | * w32term.c (x_produce_glyphs): If the distance from the current | |
1012 | position to the next tab stop is less than a canonical character | |
1013 | width, use the tab stop after that. | |
1014 | (x_draw_glyphs): Handle case START and END are out of bounds more | |
1015 | carefully. | |
1016 | (x_clear_mouse_face): Block/unblock input. | |
1017 | (x_display_and_set_cursor): Don't show a hollow box cursor for | |
1018 | buffers whose cursor_type is nil. | |
1019 | ||
fe01239f GM |
1020 | 2000-09-29 Gerd Moellmann <gerd@gnu.org> |
1021 | ||
1022 | * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar | |
1023 | disappears. | |
1024 | ||
1025 | * dispextern.h (updating_frame): Declare extern. | |
1026 | ||
e7c52f1f AS |
1027 | 2000-09-29 Andreas Schwab <schwab@suse.de> |
1028 | ||
1029 | * m/ia64.h: Remove hack of not prototyping bcopy, etc. | |
1030 | ||
de6e1f7c GM |
1031 | 2000-09-29 Gerd Moellmann <gerd@gnu.org> |
1032 | ||
25126faa GM |
1033 | * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol, |
1034 | use its function definition. | |
1035 | (tool_bar_items): Likewise. | |
1036 | ||
de6e1f7c GM |
1037 | * lisp.h (fatal): Declare NO_RETURN. |
1038 | ||
454ee39b KH |
1039 | 2000-09-29 Kenichi Handa <handa@etl.go.jp> |
1040 | ||
1041 | * keymap.c: Remove the line "#undef NULL". | |
1042 | ||
96301c5f GM |
1043 | 2000-09-28 Gerd Moellmann <gerd@gnu.org> |
1044 | ||
1045 | * xterm.c (x_make_frame_visible): Try harder to make the frame | |
1046 | visible. | |
1047 | ||
efffeeb4 DL |
1048 | 2000-09-28 Dave Love <fx@gnu.org> |
1049 | ||
ecb8b666 DL |
1050 | * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP. |
1051 | ||
dc3cd20f DL |
1052 | * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define. |
1053 | ||
1054 | * .gdbinit (xreload): Note its need on GNU/Linux. | |
1055 | ||
efffeeb4 DL |
1056 | * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare |
1057 | r_alloc, r_alloc_free. | |
1058 | ||
8610d903 KH |
1059 | 2000-09-28 Kenichi Handa <handa@etl.go.jp> |
1060 | ||
1061 | * syntax.c (skip_chars): Handle negation correctly. | |
1062 | ||
8901d1ac GM |
1063 | 2000-09-27 Gerd Moellmann <gerd@gnu.org> |
1064 | ||
6f22f1ad GM |
1065 | * xfaces.c (realize_default_face): Call set_lface_from_font_name |
1066 | with non-zero FORCE_P argument. | |
1067 | ||
8901d1ac GM |
1068 | * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows): |
1069 | Add assertions. | |
1070 | ||
1071 | * xdisp.c (window_box_height): Add an assertion. | |
1072 | ||
1073 | * xfns.c (x_set_tool_bar_lines): Don't use more lines for the | |
1074 | tool-bar than is available. | |
1075 | (x_change_window_heights): Renamed from x_set_menu_bar_lines_1. | |
1076 | ||
36f1966f DL |
1077 | 2000-09-27 Dave Love <fx@gnu.org> |
1078 | ||
efffeeb4 | 1079 | * s/irix6-5.h: Now works 64-bit. Tidied. |
36f1966f | 1080 | |
31d929e5 GM |
1081 | 2000-09-26 Gerd Moellmann <gerd@gnu.org> |
1082 | ||
c98863bf GM |
1083 | * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT |
1084 | instead of BITS_PER_INT. | |
1085 | (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and | |
1086 | EMACS_UINT, respectively. | |
1087 | (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine. | |
1088 | ||
1089 | * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define. | |
1090 | ||
1091 | * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64. | |
1092 | ||
77072ab1 GM |
1093 | * window.c (freeze_window_starts): Construct last argument for |
1094 | foreach_window differently. | |
1095 | ||
1096 | * xfns.c (x_decode_color): Don't return a Lisp_Object. | |
1097 | ||
1098 | * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and | |
1099 | EMACS_UINT instead of `int' and `unsigned int'. | |
1100 | (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'. | |
1101 | ||
1102 | * frame.h (struct frame): Make the `nothing' member of union | |
1103 | output_data an EMACS_INT. | |
1104 | ||
31d929e5 GM |
1105 | * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug |
1106 | hunting. | |
1107 | (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's | |
1108 | size in the sdata structure. | |
1109 | (SDATA_NBYTES, SDATA_DATA): New macros. | |
1110 | (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define | |
1111 | differently for the different layout of the sdata structure. | |
1112 | (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size | |
1113 | in sdata. | |
1114 | (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]: | |
1115 | Check that size recorded in the string size and size recorded in | |
1116 | the sdata structure agree. | |
1117 | ||
3e60b029 DL |
1118 | 2000-09-25 Dave Love <fx@gnu.org> |
1119 | ||
1120 | * buffer.c: Include stdio.h. | |
1121 | ||
1122 | Partly suggested by Eduardo Horvath <eeh@netbsd.org>. | |
1123 | ||
1124 | * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t. | |
1125 | ||
1126 | * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it. | |
1127 | (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as | |
1128 | size_t. | |
1129 | (__malloc_extra_blocks): Declare as __malloc_size_t. | |
1130 | ||
8ff16b4e GM |
1131 | 2000-09-25 Gerd Moellmann <gerd@gnu.org> |
1132 | ||
755a2ccd GM |
1133 | * alloc.c (mark_image): Use GC_NILP instead of NILP. |
1134 | ||
d8b4516f GM |
1135 | * keyboard.c (show_help_echo): Set help_echo_showing_p. |
1136 | (read_char): If help-echo is showing, preserve the echo area | |
1137 | when redisplaying. | |
1138 | ||
1139 | * xdisp.c (help_echo_showing_p): New variable. | |
1140 | (set_message): Reset it to 0. | |
1141 | (init_xdisp): Initialize help_echo_showing_p. | |
1142 | ||
1143 | * dispextern.h (help_echo_showing_p): Declare extern. | |
1144 | ||
1145 | * config.in: Fix typo in __GNUC_MINOR__. | |
1146 | ||
1147 | * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN. | |
1148 | ||
b11af2dd GM |
1149 | * s/freebsd.h (POSIX_SIGNALS): Define. |
1150 | ||
8ff16b4e GM |
1151 | * xterm.c (x_clear_mouse_face): Block/unblock input. |
1152 | ||
844eb643 DL |
1153 | 2000-09-24 Dave Love <fx@gnu.org> |
1154 | ||
1155 | * fns.c (base64_encode_1): Fix last change. | |
1156 | ||
b30ab1b3 GM |
1157 | 2000-09-22 Gerd Moellmann <gerd@gnu.org> |
1158 | ||
1159 | * dispnew.c (enable_glyph_matrix_rows): Remove xasserts. | |
1160 | ||
1161 | * xdisp.c (try_window_reusing_current_matrix): More fixes | |
1162 | for the case window has a header-line. | |
1163 | ||
c6cbe5f0 DL |
1164 | 2000-09-22 Dave Love <fx@gnu.org> |
1165 | ||
4c7c1f3f DL |
1166 | * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide |
1167 | a doc string. | |
1168 | ||
1169 | * xterm.c [SOLARIS2]: Remove redundant include of string.h. | |
1170 | ||
c6cbe5f0 DL |
1171 | * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix. |
1172 | ||
550a625e GM |
1173 | 2000-09-21 Gerd Moellmann <gerd@gnu.org> |
1174 | ||
4c7c1f3f | 1175 | * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))' |
fca99116 GM |
1176 | for GCC >= 2.5. |
1177 | ||
1178 | * lisp.h (wrong_type_argument, Fthrow, Fsignal, error): Declare | |
1179 | NO_RETURN. | |
1180 | ||
80d26f99 GM |
1181 | * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c, |
1182 | * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c, | |
1183 | * indent.c, search.c, alloc.c, data.c: Avoid some more compiler | |
1184 | warnings. | |
1185 | ||
1186 | * marker.c (byte_char_debug_check): Return void. | |
1187 | ||
623a0aae GM |
1188 | * xfns.c (Fx_create_frame): Set default frame parameter value |
1189 | for tool-bar-lines to 1. | |
1190 | ||
1191 | * dispnew.c (scrolling_window): Compare y-positions of rows | |
1192 | equal at the start. Some simplification. | |
1193 | ||
1194 | * xdisp.c (try_window_reusing_current_matrix): Fix computation of | |
1195 | reused rows' y-position in the case window has a header-line, and | |
1196 | new window start is greater than old window start. | |
1197 | ||
42ac0ae5 GM |
1198 | * process.c (process_sent_to): New variable. |
1199 | (send_process): Workaround for a crash on sparc-sun-solaris-2.6 | |
1200 | with GCC 2.95.2 caused by a parameter being clobbered by longjmp. | |
1201 | Declare more parameters volatile. | |
1202 | ||
550a625e GM |
1203 | * lread.c (Vrecursive_load_depth_limit): New variable. |
1204 | (Fload): Check recursive loads whose recursion depth exceeds | |
1205 | Vrecursive_load_depth_limit. | |
1206 | (syms_of_lread): DERFAR_LISP recursive-load-depth-limit. | |
1207 | ||
8320414c GM |
1208 | 2000-09-20 Gerd Moellmann <gerd@gnu.org> |
1209 | ||
f46c275e GM |
1210 | * fileio.c (Fread_file_name): Doc fix. |
1211 | ||
1212 | * editfns.c (Fmessage_or_box): Doc fix. | |
1213 | ||
1214 | * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix. | |
1215 | ||
b7e11c5b GM |
1216 | * xfns.c (xbm_scan): Allow C-style comments. |
1217 | ||
8320414c GM |
1218 | * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color |
1219 | symbols are specified, add color translations to the cache. | |
1220 | (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New | |
1221 | functions. | |
1222 | (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and | |
1223 | xpm_cache_color. | |
1224 | (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes | |
1225 | structures to xpm_init_color_cache. | |
1226 | ||
da1608d9 GM |
1227 | 2000-09-19 Gerd Moellmann <gerd@gnu.org> |
1228 | ||
1229 | * dispnew.c (update_window_line): Make sure to always draw | |
1230 | mode-lines. | |
1231 | ||
6badfa25 AI |
1232 | 2000-09-19 Andrew Innes <andrewi@gnu.org> |
1233 | ||
1234 | * makefile.nt (bootstrap-emacs): Don't change directory. | |
1235 | ||
3a5f42bb KH |
1236 | 2000-09-19 Kenichi Handa <handa@etl.go.jp> |
1237 | ||
1b7649bd KH |
1238 | * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change. |
1239 | ||
3a5f42bb KH |
1240 | * ccl.c (Fccl_execute_on_string): Make multibyte string correctly. |
1241 | If output buffer is too small, signal an appropriated error. | |
1242 | ||
9f83cf0b DL |
1243 | 2000-09-18 Dave Love <fx@gnu.org> |
1244 | ||
1245 | * keyboard.c (menu_bar_items, tool_bar_items) | |
1246 | (current_active_maps): Remove redundant get_local_map call. | |
1247 | ||
28c7826c GM |
1248 | 2000-09-18 Gerd Moellmann <gerd@gnu.org> |
1249 | ||
5cefa566 GM |
1250 | * xterm.c (x_display_and_set_cursor): Don't show a hollow box |
1251 | cursor for buffers whose cursor_type is nil. | |
1252 | ||
6fed3546 GM |
1253 | * xterm.c (x_draw_image_glyph_string): Remove a comment describing |
1254 | a feature to implement that is already implemented. | |
1255 | (note_mouse_highlight, x_find_ccl_program): Avoid some compiler | |
1256 | warnings. | |
1257 | ||
1258 | * xfns.c (x_clear_image_1): New function. | |
1259 | (x_clear_image): Use it. | |
1260 | (x_from_xcolors): Use x_clear_image_1; don't free the image's | |
1261 | mask. | |
1262 | ||
05b1f851 GM |
1263 | * dispnew.c (update_window): Move test for invisible lines |
1264 | at the top to update_window_line. | |
1265 | (update_window_line): Handle invisible lines here. | |
1266 | ||
f4779de9 GM |
1267 | * xfns.c (clear_image_cache): Clear current matrices of all |
1268 | frames sharing an image cache. Block input while freeing | |
1269 | images. Fix timestamp comparison. | |
1270 | (x_clear_image): Also free the mask. | |
1271 | ||
28c7826c GM |
1272 | * xfns.c (lookup_image): Block input while loading the image so |
1273 | that we won't get interrupted in a state where the image isn't yet | |
1274 | set up completely. | |
1275 | (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color) | |
1276 | (lookup_pixel_color, x_to_xcolors, x_from_xcolors) | |
1277 | (x_disable_image, x_build_heuristic_mask, pbm_load, png_load) | |
1278 | (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock | |
1279 | input. | |
1280 | ||
b7412313 GM |
1281 | 2000-09-16 Gerd Moellmann <gerd@gnu.org> |
1282 | ||
1283 | * dispnew.c (update_window): Make sure to make desired rows | |
1284 | current even if they are completely invisible at the top | |
1285 | of a window. | |
1286 | ||
47e351a3 GM |
1287 | 2000-09-15 Gerd Moellmann <gerd@gnu.org> |
1288 | ||
7f8f1edc GM |
1289 | * xfns.c (lookup_image): Build mask before applying an algorithm. |
1290 | Recognize algorithm `disabled'. | |
1291 | (cross_disabled_images): New variable. | |
1292 | (COLOR_INTENSITY): New macro. | |
1293 | (x_detect_edges): Use COLOR_INTENSITY. | |
1294 | (x_disable_image): New function. | |
1295 | (syms_of_xfns): DEFVAR_BOOL cross_disabled_images. | |
1296 | ||
1297 | * xdisp.c (build_desired_tool_bar_string): For a toolbar item in | |
1298 | disabled state, don't apply an image transformation algorithm if | |
1299 | the user specified an image for the disabled state. Use | |
28c7826c | 1300 | `:algorithm disabled' for creating a disabled item's image if the |
7f8f1edc GM |
1301 | user hasn't specified an image. |
1302 | ||
ebb8f116 GM |
1303 | * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color |
1304 | allocation functions with the XPM lib. | |
1305 | (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure. | |
1306 | (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro. | |
1307 | (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable. | |
1308 | (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color) | |
1309 | (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New | |
1310 | functions. | |
1311 | (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation | |
1312 | functions, if possible, because these handle color allocation | |
1313 | failure more gracefully. | |
1314 | (Fimage_mask_p): New function. | |
1315 | ||
47e351a3 GM |
1316 | * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss) |
1317 | (Qedge_detection, Qheuristic): New symbols. | |
1318 | (syms_of_xfns): Initialize new symbols. | |
1319 | (lookup_image): Handle `:mask X', `:algorithm emboss', and | |
1320 | `algorithm (edge-detection ...)'. | |
1321 | (xbm_format, xpm_format, pbm_format, png_format, jpeg_format): | |
1322 | (tiff_format, gif_format, gs_format): Add `:mask'. | |
1323 | (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK) | |
1324 | (GIF_MASK, GS_MASK): New enumerators. | |
1325 | (x_laplace_read_row, x_laplace_write_row): Functions removed. | |
1326 | (emboss_matrix, laplace_matrix): New variables. | |
1327 | (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss) | |
1328 | (x_edge_detection): New functions. | |
1329 | (x_laplace): Rewritten in terms of x_detect_edges. | |
1330 | (x_build_heuristic_mask): If image has a mask, free it. | |
1331 | ||
fe83b953 AI |
1332 | 2000-09-14 Andrew Innes <andrewi@gnu.org> |
1333 | ||
1334 | * makefile.w32-in: Revert to Unix line endings. | |
1335 | ||
3021e816 AI |
1336 | 2000-09-14 Andrew Innes <andrewi@gnu.org> |
1337 | ||
1338 | * makefile.w32-in: Standardize indentation somewhat. | |
1339 | (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to | |
1340 | cater for differences between shells. | |
1341 | ||
1342 | * w32term.c (w32_per_char_metric): Handle non-TrueType fonts. | |
1343 | ||
2a32b5ea GM |
1344 | 2000-09-14 Gerd Moellmann <gerd@gnu.org> |
1345 | ||
1346 | * xterm.c (x_produce_glyphs): If the distance from the current | |
1347 | position to the next tab stop is less than a canonical character | |
1348 | width, use the tab stop after that. | |
1349 | ||
b4331e96 DL |
1350 | 2000-09-14 Dave Love <fx@gnu.org> |
1351 | ||
1352 | * buffer.c (alloc_buffer_text): Fix xmalloc call. | |
1353 | ||
ef9e4345 GM |
1354 | 2000-09-14 Gerd Moellmann <gerd@gnu.org> |
1355 | ||
085536c2 GM |
1356 | * xdisp.c (handle_fontified_prop): While running fontification |
1357 | functions, bind `fontification-functions' and | |
1358 | `after-change-functions' to nil. | |
1359 | ||
ef9e4345 GM |
1360 | * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h |
1361 | (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP. | |
1362 | ||
1363 | * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o. | |
1364 | ||
1365 | * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to | |
1366 | USE_MMAP_FOR_BUFFERS. | |
1367 | ||
1368 | * insdel.c (make_gap): Use enlarge_buffer_text. | |
1369 | ||
1370 | * buffer.c: Move allocation with mmap here, from ralloc.c. Change | |
1371 | conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS. | |
1372 | (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed | |
1373 | from former r_alloc_* functions in ralloc.c. | |
1374 | (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New | |
1375 | variables. | |
1376 | (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro. | |
1377 | (mmap_init) [REL_ALLOC_MMAP]: New function. | |
1378 | (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New | |
1379 | functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and | |
1380 | BUFFER_FREE. | |
1381 | ||
1382 | * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed. | |
1383 | (enlarge_buffer_text): Add prototype. | |
1384 | ||
1385 | * ralloc.c: Remove everything having to do with the use of mmap. | |
1386 | ||
f8608968 GM |
1387 | 2000-09-13 Gerd Moellmann <gerd@gnu.org> |
1388 | ||
2a494b2d GM |
1389 | * sound.c (Fplay_sound): Doc fix. |
1390 | ||
8c907a56 GM |
1391 | * keyboard.c: Avoid some more compiler warnings. |
1392 | (parse_tool_bar_item): Ignore cached key bindings. | |
1393 | ||
f8608968 GM |
1394 | * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap |
1395 | and allocation of Lisp data. | |
1396 | ||
6ab70e9a GM |
1397 | 2000-09-12 Gerd Moellmann <gerd@gnu.org> |
1398 | ||
d12d0a9b GM |
1399 | * xfaces.c: Remove conditional compilation on SCALABLE_FONTS. |
1400 | (Finternal_set_lisp_face_attribute): If frame is 0, set new frame | |
1401 | defaults first. | |
1402 | ||
6ab70e9a GM |
1403 | * lread.c (Fload): Put code checking for recursive loads in #if 0. |
1404 | ||
63c36c3c KH |
1405 | 2000-09-12 Miyashita Hisashi <himi@meadowy.org> |
1406 | ||
1407 | * ccl.c: Comment fixed. | |
1408 | (MAX_MAP_SET_LEVEL): Increased to 30. | |
1409 | (PUSH_MAPPING_STACK): Enclose with do-while block. | |
1410 | (POP_MAPPING_STACK): Likewise. | |
1411 | (stack_idx_of_map_multiple): New variable. | |
1412 | (CCL_CALL_FOR_MAP_INSTRUCTION): New macro. | |
1413 | (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol, | |
1414 | call the corresponding CCL program by | |
1415 | CCL_CALL_FOR_MAP_INSTRUCTION. | |
1416 | (ccl_driver) <CCL_MapSingle>: Likewise. | |
1417 | (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal | |
1418 | with the case where looking up process reaches to the end of | |
1419 | map-set, and call CCL programs as the above change. | |
1420 | ||
7ee3bd7b GM |
1421 | 2000-09-11 Gerd Moellmann <gerd@gnu.org> |
1422 | ||
8ec8a5ec GM |
1423 | * xfns.c (png_load, jpeg_load): Declare some variables volatile |
1424 | that might be clobbered by longjmp. | |
1425 | (check_x_display_info, x_decode_color, create_frame_xic) | |
1426 | (Fx_display_backing_store, Fx_display_visual_class) | |
1427 | (x_build_heuristic_mask, pbm_scan_number): Avoid compiler | |
1428 | warnings. | |
1429 | ||
f74b0705 GM |
1430 | * lread.c (init_lread): Set Vloads_in_progress to nil. |
1431 | (Fload): Show list of recursively loaded files, when signaling an | |
1432 | error. | |
1433 | ||
7ee3bd7b GM |
1434 | * lread.c (Vloads_in_progress): New variable. |
1435 | (record_load_unwind): New function. | |
1436 | (Fload): Check for recursive loads. | |
1437 | (syms_of_lread): Initialize Vloads_in_progress. | |
1438 | (read_integer, read1): Avoid some compiler warnings. | |
1439 | ||
1440 | * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some | |
1441 | compiler warnings. | |
1442 | ||
974e1e5b MB |
1443 | 2000-09-11 Miles Bader <miles@gnu.org> |
1444 | ||
1445 | * editfns.c (Fbuffer_string): Doc fix. | |
1446 | ||
9824c4e3 GM |
1447 | 2000-09-10 Gerd Moellmann <gerd@gnu.org> |
1448 | ||
1449 | * ralloc.c (mmap_enlarge): Don't return 0 if successful. | |
1450 | ||
6a72fdd1 KR |
1451 | 2000-09-09 Ken Raeburn <raeburn@gnu.org> |
1452 | ||
1453 | * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding | |
1454 | whether to include other header files. | |
1455 | ||
28e6fb66 GM |
1456 | 2000-09-09 Gerd Moellmann <gerd@gnu.org> |
1457 | ||
1458 | * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned | |
9824c4e3 | 1459 | by Fmemq as a boolean. |
28e6fb66 | 1460 | |
7f8b6551 SM |
1461 | 2000-09-08 Stefan Monnier <monnier@cs.yale.edu> |
1462 | ||
1463 | * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko. | |
1464 | ||
a8710abf GM |
1465 | 2000-09-08 Gerd Moellmann <gerd@gnu.org> |
1466 | ||
d1a02881 GM |
1467 | * ralloc.c (mmap_fd): Remove initializer which can make it |
1468 | read-only in a dumped Emacs. | |
1469 | (mmap_fd_1): New variable. | |
1470 | (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1, | |
1471 | restore it from there. | |
1472 | (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init | |
1473 | unconditionally so that mmap_fd can be initialized there. | |
1474 | (r_alloc_init_fd): Open-coded in r_alloc_init; function removed. | |
1475 | (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero. | |
1476 | (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1. | |
1477 | ||
c454aac1 GM |
1478 | * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object. |
1479 | ||
1480 | * xdisp.c (dump_glyph_row): Fix printf format string. | |
1481 | (display_line, move_it_in_display_line_to): Avoid compiler | |
1482 | warnings. | |
1483 | ||
fc653ef2 GM |
1484 | * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define. |
1485 | ||
3015eec0 GM |
1486 | * keymap.c (Fset_keymap_parent): Check for cycles in keymap |
1487 | inheritance. | |
1488 | ||
bfe0ee88 GM |
1489 | * xdisp.c (try_window_id): When trying to locate cursor in |
1490 | unchanged rows at the top, handle the case that we can't find it. | |
1491 | ||
a8710abf GM |
1492 | * xterm.c (x_draw_glyphs): Handle case START and END are out |
1493 | of bounds more carefully. | |
1494 | ||
6b7d4ae4 DL |
1495 | 2000-09-08 Dave Love <fx@gnu.org> |
1496 | ||
423193c5 DL |
1497 | * s/sol2.h (REL_ALLOC_MMAP): Define. |
1498 | * s/irix5-0.h (REL_ALLOC_MMAP): Likewise. | |
1499 | ||
1500 | * ralloc.c: Don't include string.h (redundant). | |
1501 | (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined. | |
1502 | [!MAP_ANON]: Include fcntl.h. | |
1503 | (mmap_fd) [REL_ALLOC_MMAP]: New variable. | |
1504 | (r_alloc, r_re_alloc, r_alloc_free) | |
1505 | (mmap_enlarge, mmap_set_vars): Use it. | |
1506 | (r_alloc_init_fd): New function. | |
1507 | (__morecore) [SYSTEM_MALLOC]: Don't declare. | |
1508 | (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on | |
1509 | malloc type. | |
1510 | ||
1511 | * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: | |
1512 | Remove vm-limit.o. | |
1513 | ||
6b7d4ae4 DL |
1514 | * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last |
1515 | change to __NetBSD__. | |
1516 | ||
44d31981 KH |
1517 | 2000-09-08 Kenichi Handa <handa@etl.go.jp> |
1518 | ||
1519 | * search.c (compile_pattern): Check the multibyteness of cached | |
1520 | string and PATTERN. | |
1521 | ||
aad40737 MB |
1522 | 2000-09-08 Miles Bader <miles@gnu.org> |
1523 | ||
1524 | * xfaces.c (default_face_vector): Function removed. | |
1525 | (Finternal_merge_in_global_face): Restore old global/local | |
1526 | attribute override order. Use inline loop instead of calling | |
1527 | default_face_vector. | |
1528 | ||
91a211b5 GM |
1529 | 2000-09-07 Gerd Moellmann <gerd@gnu.org> |
1530 | ||
1531 | * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use) | |
1532 | (get_bloc, relocate_blocs, update_heap_bloc_correspondence) | |
1533 | (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *' | |
1534 | where necessary, in case POINTER_TYPE is `void'. | |
1535 | ||
03419440 EZ |
1536 | 2000-09-07 Eli Zaretskii <eliz@is.elta.co.il> |
1537 | ||
1538 | * frame.c (make_terminal_frame): Initialize frame foreground and | |
1539 | background colors to unspecified, for the initial instance of an | |
1540 | MSDOS frame. | |
1541 | ||
f46f845b GM |
1542 | 2000-09-07 Gerd Moellmann <gerd@gnu.org> |
1543 | ||
24f76fbf GM |
1544 | * ralloc.c (mmap_find): Fix overlap computation. |
1545 | (mmap_enlarge): Compute nbytes before trying to find an | |
1546 | overlapping region. | |
1547 | ||
f46f845b GM |
1548 | * xfaces.c (smaller_face): Compare font heights with `<' and `>' |
1549 | instead of `!='. | |
1550 | ||
1551 | * lread.c (syms_of_lread): Change value of regexp | |
1552 | Vbytecomp_version_regexp to not match some XEmacs-compiled files. | |
1553 | ||
1554 | * xmenu.c (xdialog_show): When looking up the selection in | |
1555 | menu_items, take `quote' boundaries into account; this corresponds | |
1556 | to a nil ITEM in x-popup-dialog. | |
1557 | ||
3c014385 KH |
1558 | 2000-09-07 Kenichi Handa <handa@etl.go.jp> |
1559 | ||
fd6f711b KH |
1560 | * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80, |
1561 | not 0x81. | |
1562 | (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7). | |
1563 | ||
3c014385 | 1564 | * coding.c (encode_coding_sjis_big5): Use translation table for |
ed254191 KH |
1565 | encoding, not decoding. Fix the handling of latin-jisx0201. |
1566 | Check for the charset katakana-jisx0201 too. | |
3c014385 | 1567 | (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1. |
f46f845b | 1568 | (detect_coding_sjis): Check the byte sequence more rigidly. |
3c014385 | 1569 | |
0da3ecef GM |
1570 | 2000-09-07 Gerd Moellmann <gerd@gnu.org> |
1571 | ||
ab0ee409 GM |
1572 | * xfaces.c (Vparam_value_alist): New variable. |
1573 | (syms_of_xfaces): Initialize it. | |
1574 | (Finternal_set_lisp_face_attribute): Avoid more consing. | |
1575 | ||
1576 | * frame.c (Fframe_parameter): Handle `name' and `background-mode' | |
1577 | specially. | |
1578 | (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially. | |
1579 | (Qbackground_mode): New variable. | |
1580 | (syms_of_frame_1): Initialize Qbackground_mode. | |
1581 | ||
1582 | * lisp.h (Qdisplay): Declare extern. | |
1091dd67 | 1583 | |
0da3ecef GM |
1584 | * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0, |
1585 | change face on all frames, and change the default for new frames. | |
1586 | ||
b14654b9 DL |
1587 | 2000-09-07 Dave Love <fx@gnu.org> |
1588 | ||
1589 | * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj. | |
1590 | ||
d24fd56f KH |
1591 | 2000-09-07 Kenichi Handa <handa@etl.go.jp> |
1592 | ||
794f3670 KH |
1593 | * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0. |
1594 | ||
0fddd0dc KH |
1595 | * charset.c: Include composite.h |
1596 | (lisp_string_width): New function. | |
1597 | (Fstring_width): Call lisp_string_width instead of strwidth. | |
1598 | ||
1599 | * Makefile.in (charset.o): Depends on composite.h. | |
1600 | ||
d24fd56f KH |
1601 | * process.c (read_process_output): Before inserting the decoded |
1602 | text in the buffer, adjust the multibyteness. | |
1603 | ||
fa0b693c GM |
1604 | 2000-09-06 Gerd Moellmann <gerd@gnu.org> |
1605 | ||
73b77ee5 GM |
1606 | * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If |
1607 | buffer's text buffer is null, map new memory. | |
1608 | ||
0a58f946 GM |
1609 | * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of |
1610 | POINTER_TYPE and size_t. | |
1611 | (struct mmap_region) [REL_ALLOC_MMAP]: New structure. | |
1612 | (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables. | |
1613 | (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA) | |
1614 | [REL_ALLOC_MMAP]: New macros. | |
1615 | (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars) | |
1616 | (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free) | |
1617 | [REL_ALLOC_MMAP]: New functions. | |
1618 | ||
1619 | * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars | |
1620 | before and after unexec. | |
1621 | ||
1622 | * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer | |
1623 | text buffers if necessary. | |
1624 | ||
1625 | * buffer.h (R_ALLOC_DECLARE): Removed because unused. | |
1626 | (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t | |
1627 | in prototypes. | |
1628 | ||
fa0b693c GM |
1629 | * config.in (HAVE_MMAP): Add #undef. |
1630 | ||
877055f6 GM |
1631 | 2000-09-05 Gerd Moellmann <gerd@gnu.org> |
1632 | ||
08ba3862 GM |
1633 | * frame.c (Qdisplay_type): New variable. |
1634 | (syms_of_frame_1): Initialize it. | |
1635 | (Fframe_parameter): New function that avoids consing. | |
1636 | (syms_of_frame): Defsubr it. | |
1637 | ||
66ffe51c GM |
1638 | * buffer.c (Fother_buffer): Consider buffers as invisible when |
1639 | they are displayed in a window on an invisible frame. | |
1640 | ||
877055f6 GM |
1641 | * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making |
1642 | get-largest-window always return nil. | |
1643 | ||
bb970e67 GM |
1644 | 2000-09-04 Gerd Moellmann <gerd@gnu.org> |
1645 | ||
1646 | * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp | |
1647 | variable; recognize Emacs 19 elc files. | |
1648 | ||
7a3d0e0e MB |
1649 | 2000-09-04 Miles Bader <miles@gnu.org> |
1650 | ||
1651 | * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face | |
1652 | before initially popping up the menu, so the menu doesn't flash | |
1653 | when the face settings are significantly different from the | |
1654 | defaults. | |
1655 | ||
14473664 SM |
1656 | 2000-09-04 Stefan Monnier <monnier@cs.yale.edu> |
1657 | ||
1658 | * regex.c (WIDE_CHAR_SUPPORT): New macro. | |
1659 | (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>. | |
1660 | (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT) | |
1661 | (BIT_UNIBYTE): Remove. | |
1662 | (re_match_2_internal): Delete corresponding code and streamline the | |
1663 | BIT_MULTIBYTE case to not bother checking ISUNIBYTE. | |
1664 | (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6. | |
1665 | (re_wctype_t): New type. | |
1666 | (re_wctype, re_iswctype, re_wctype_to_bit): New functions. | |
1667 | (regex_compile): Use them and fix handling of overly long char classes. | |
1668 | ||
c1174479 AI |
1669 | 2000-09-03 Andrew Innes <andrewi@gnu.org> |
1670 | ||
f8803e97 AI |
1671 | * makefile.w32-in: Change to DOS line endings. |
1672 | ||
c1174479 AI |
1673 | * s/ms-w32.h (ORDINARY_LINK): New define. |
1674 | ||
1675 | * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define | |
1676 | (_ANONYMOUS_STRUCT) [__GNUC__]: New define. | |
1677 | ||
1678 | * makefile.w32-in (clean): Don't delete config.h and epaths.h. | |
1679 | (distclean): Delete them here instead. | |
1680 | ||
44ef7cf6 AI |
1681 | * w32proc.c (compare_env): Convert to uppercase for comparison, |
1682 | not lowercase, to match how the native Windows shell works. | |
1683 | ||
49b3bd82 JR |
1684 | 2000-09-03 Jason Rumney <jasonr@gnu.org> |
1685 | ||
1686 | * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as | |
1687 | CVS changes the line-ends when checking in/out on DOS/Windows. | |
1688 | ||
1689 | * makefile.nt (emacs): Do not change directory to run temacs, as | |
1690 | the load-path is set relative to current directory. | |
1691 | ||
a3d35a39 MB |
1692 | 2000-09-03 Miles Bader <miles@gnu.org> |
1693 | ||
1694 | * xterm.c (x_alloc_lighter_color_for_widget): New function. | |
1695 | ||
d276b0cf GM |
1696 | 2000-09-02 Gerd Moellmann <gerd@gnu.org> |
1697 | ||
715e84c9 GM |
1698 | * xdisp.c (redisplay_mode_lines): New function. |
1699 | (display_mode_lines): Return number of mode lines displayed. | |
1700 | (echo_area_display): Use redisplay_mode_lines to draw garbaged | |
1701 | mode lines. Don't temporarily bind redisplay-dont-pause to t. | |
1702 | ||
8892f40b GM |
1703 | * emacs.c, callint.c, doc.c, editfns.c: Remove includes of |
1704 | string.h and strings.h. | |
1705 | (index) [HAVE_INDEX]: Add prototype. | |
1706 | ||
d276b0cf GM |
1707 | * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define. |
1708 | (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define. | |
1709 | ||
1710 | * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>. | |
1711 | (GC_SETJMP_WORKS, GC_MARK_STACK): Define. | |
1712 | ||
38404229 GM |
1713 | 2000-09-01 Gerd Moellmann <gerd@gnu.org> |
1714 | ||
1715 | * lread.c (read1): Accept `?' as symbol constituent, for | |
1716 | compatiblity with XEmacs. | |
1717 | ||
c0f9ea08 SM |
1718 | 2000-08-31 Stefan Monnier <monnier@cs.yale.edu> |
1719 | ||
1720 | * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag. | |
1721 | (struct re_pattern_buffer): Remove newline_anchor. | |
1722 | * regex.c: Keep namespace clean for GNU libc by renaming <fun> | |
1723 | to __<fun> and using `weak_alias (__<fun>, <fun>)'. | |
1724 | (re_max_failures, fail_stack): Use size_t rather than unsigned. | |
1725 | (regex_compile): For ^ and $, choose between buffer and line (beg|end) | |
1726 | depending on the new RE_NO_NEWLINE_ANCHOR syntax flag. | |
1727 | (print_compiled_pattern, re_search_2, mutually_exclusive_p) | |
1728 | (re_match_2_internal, re_compile_pattern, re_comp, regcomp): | |
1729 | Get rid of references to newline_anchor. | |
1730 | (regcomp): Allocate and precompute a fastmap. | |
1731 | ||
8c0f83fe GM |
1732 | 2000-08-31 Gerd Moellmann <gerd@gnu.org> |
1733 | ||
1734 | * lread.c (openp): GCPRO local variable `filename'. | |
1735 | ||
4bb91c68 SM |
1736 | 2000-08-30 Stefan Monnier <monnier@cs.yale.edu> |
1737 | ||
1738 | * regex.h (struct re_pattern_buffer): Use size_t for used/allocated. | |
1739 | ||
1740 | * regex.c: Merge some changes from GNU libc. Add prototypes. | |
1741 | (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal): | |
1742 | Use memcmp and memcpy instead of bcopy and bcmp. | |
1743 | (init_syntax_once): Use ISALNUM. | |
1744 | (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id. | |
1745 | (REG_UNSET_VALUE): Remove. Use NULL instead. | |
1746 | (REG_UNSET, re_match_2_internal): Use NULL. | |
1747 | (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND): | |
1748 | New macros. | |
1749 | (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS). | |
1750 | (GET_UNSIGNED_NUMBER): Don't use ISDIGIT. | |
1751 | (regex_compile): In handle_interval, return an error rather than try to | |
1752 | unfetch the interval if we can't find the closing brace. | |
1753 | Obey the RE_NO_GNU_OPS syntax bit. | |
1754 | (TOLOWER): New macro. | |
1755 | (regcomp): Use it. | |
1756 | (regexec): Allocate regs.start and regs.end as one block. | |
1757 | ||
5226a931 GM |
1758 | 2000-08-30 Gerd Moellmann <gerd@gnu.org> |
1759 | ||
868dd24b GM |
1760 | * xdisp.c (echo_area_display): Check display_completed instead |
1761 | of calling detect_input_pending. | |
1762 | ||
1763 | * dispnew.c (update_frame): Only set display_completed here; move | |
1764 | the update_begin and update_end calls here from update_frame_1. | |
1765 | (update_frame_1): Don't set display_completed here, don't call | |
1766 | update_begin/update_end. | |
1767 | ||
5226a931 GM |
1768 | * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters |
1769 | instead of store_frame_param. | |
1770 | ||
2a8bd25f GM |
1771 | 2000-08-29 Gerd Moellmann <gerd@gnu.org> |
1772 | ||
1773 | * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a | |
1774 | desired window matrix hasn't been displayed, use the current row | |
1775 | instead. Make sure that only those frame rows are updated for | |
1776 | which there exists a corresponding enabled desired row. | |
1777 | ||
ba3478d9 MB |
1778 | 2000-08-29 Miles Bader <miles@gnu.org> |
1779 | ||
1780 | * xfaces.c (default_face_vector): New function. | |
1781 | (Finternal_merge_in_global_face): Use it instead of merge_face_vectors. | |
1782 | ||
87d0f685 GM |
1783 | 2000-08-29 Gerd Moellmann <gerd@gnu.org> |
1784 | ||
1785 | * lread.c (openp): Prevent temporary string passed to | |
1786 | Ffile_readable_p from being garbage collected. | |
1787 | ||
6fa86045 DL |
1788 | 2000-08-28 Dave Love <fx@gnu.org> |
1789 | ||
1790 | * keymap.c (store_in_keymap): Add `static' to declaration. | |
1791 | ||
bb17930d GM |
1792 | 2000-08-28 Gerd Moellmann <gerd@gnu.org> |
1793 | ||
1794 | * emacs.c, callint.c, doc.c, editfns.c | |
1795 | (toplevel) [HAVE_STRING_H]: Include string.h. | |
1796 | (toplevel) [HAVE_STRINGS_H]: Include strings.h. | |
1797 | (index): Remove prototypes which might conflict with non-standard | |
1798 | definitions of index/strchr. | |
1799 | ||
1800 | * s/usg5-3.h (index): Define only if not HAVE_INDEX. | |
1801 | (rindex): Define only if !HAVE_RINDEX. | |
1802 | ||
1803 | * s/sco5.h (bcopy, bzero, bcmp): Don't define. | |
1804 | ||
1805 | * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs. | |
1806 | ||
87188200 MB |
1807 | 2000-08-28 Miles Bader <miles@gnu.org> |
1808 | ||
1809 | * xfaces.c (merge_face_vectors): Clear TO's :font attribute if | |
1810 | made inconsistent by a font-related attribute in FROM. | |
1811 | (merge_face_inheritance): Add function comment. | |
1812 | ||
41a68aef KH |
1813 | 2000-08-28 Kenichi Handa <handa@etl.go.jp> |
1814 | ||
1815 | * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with | |
1816 | the 4th arg (PREV_EVENT) Qt to suppress input method. | |
1817 | ||
f7c436c1 SM |
1818 | 2000-08-27 Stefan Monnier <monnier@cs.yale.edu> |
1819 | ||
0b32bf0e SM |
1820 | * regex.c: Indent cpp directives and remove parens after `defined'. |
1821 | (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place. | |
1822 | (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition. | |
1823 | (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY. | |
1824 | (re_compile_pattern): Use size_t for length. | |
1825 | (init_syntax_once): Move to a better place. | |
1826 | * regex.h: Merge changes from GNU libc. Indent cpp directives. | |
1827 | (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning). | |
1828 | ||
f7c436c1 SM |
1829 | * syntax.c (back_comment): Detect cases where a comment-starter is |
1830 | actually inside another comment as in: /* a // b */ c // d \n. | |
1831 | Make it clear that `comstart_pos' is unused for nested comments. | |
1832 | ||
1833 | * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes. | |
1834 | (KEYMAPP): New macro. | |
1835 | (Fkeymap_parent, Fset_keymap_parent): Use it. | |
1836 | (fix_submap_inheritance): Mark it static. | |
1837 | (define_as_prefix, describe_buffer_bindings, describe_command) | |
1838 | (describe_translation, describe_map): Complete prototypes. | |
1839 | ||
1840 | * lisp.h (store_in_keymap, fix_submap_inheritance): Remove. | |
1841 | ||
1842 | * keyboard.c (menu_bar_item): Detect duplicate entries for all items | |
1843 | to better match the key-lookup behavior. | |
1844 | ||
6288c62f GM |
1845 | 2000-08-27 Gerd Moellmann <gerd@gnu.org> |
1846 | ||
1847 | * xfaces.c (lface_fully_specified_p): Handle :inherit. | |
1848 | (Finternal_set_lisp_face_attribute): Fix typo in error message. | |
1849 | ||
e931344e EZ |
1850 | 2000-08-27 Eli Zaretskii <eliz@is.elta.co.il> |
1851 | ||
1852 | * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o) | |
1853 | (process.o, scroll.o, sysdep.o): Depend on keyboard.h. | |
1854 | (xterm.o): Depend on coding.h | |
1855 | ||
d10dfeef KH |
1856 | 2000-08-26 Kenichi Handa <handa@etl.go.jp> |
1857 | ||
1858 | * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and | |
1859 | the corresponding '#endif'. | |
1860 | ||
2d73e8d3 MB |
1861 | 2000-08-26 Miles Bader <miles@gnu.org> |
1862 | ||
1863 | * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX. | |
1864 | * xfaces.c (QCinherit): New variable. | |
1865 | (syms_of_xfaces): Initialize it. | |
1866 | (LFACE_INHERIT): New macro. | |
1867 | (Finternal_get_lisp_face_attribute) | |
1868 | (merge_face_vector_with_property) | |
1869 | (Finternal_set_lisp_face_attribute): Deal with :inherit attribute. | |
1870 | (check_lface_attrs): Allow new types of face height. Check | |
1871 | inherit attribute. | |
1872 | (CYCLE_CHECK): New macro. | |
1873 | (merge_face_inheritance): New function. | |
1874 | (merge_face_vectors): Merge inherited faces too. Add F and | |
1875 | CYCLE_CHECK arguments. | |
1876 | (merge_face_vector_with_property, Finternal_merge_in_global_face) | |
1877 | (lookup_named_face, lookup_derived_face, realize_named_face) | |
1878 | (face_at_string_position, face_at_buffer_position): Supply | |
1879 | new F and CYCLE_CHECK arguments to merge_face_vectors. | |
1880 | (merge_face_heights): New function. | |
1881 | (merge_face_vectors, merge_face_vector_with_property) | |
1882 | (Finternal_set_lisp_face_attribute): Call merge_face_heights to | |
1883 | handle relative face heights. | |
1884 | (lface_same_font_attributes_p): Compare heights using EQ. | |
1885 | ||
6ce974d4 KH |
1886 | 2000-08-26 Kenichi Handa <handa@etl.go.jp> |
1887 | ||
1888 | * charset.c (char_to_string): Check the character validity. | |
1889 | (char_valid_p): If C is not less than MAX_CHAR, be sure to return | |
1890 | 0. | |
1891 | ||
dc1e502d SM |
1892 | 2000-08-25 Stefan Monnier <monnier@cs.yale.edu> |
1893 | ||
1894 | * regex.c (PUSH_FAILURE_COUNT): New macro. | |
1895 | (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG. | |
1896 | Handle popping of a register's or a counter's data. | |
1897 | (POP_FAILURE_POINT): Use the new name. | |
1898 | (re_match_2_internal): Push counter data on the stack for succeed_n, | |
1899 | jump_n and set_number_at and remove misleading dead code in succeed_n. | |
1900 | ||
bd9d0f3f GM |
1901 | 2000-08-25 Gerd Moellmann <gerd@gnu.org> |
1902 | ||
1903 | * xdisp.c (redisplay_internal): If considering all windows on all | |
1904 | frames, update the display for each frame as soon as possible, | |
1905 | instead of first building all desired matrices for all frames, and | |
1906 | then updating them all. | |
1907 | (try_cursor_movement): Handle case that last_cursor.vpos is -1. | |
1908 | ||
aa5b8e15 GM |
1909 | 2000-08-24 Gerd Moellmann <gerd@gnu.org> |
1910 | ||
17494071 GM |
1911 | * bytecode.c (mark_byte_stack): Add a comment. |
1912 | ||
aa5b8e15 GM |
1913 | * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH) |
1914 | (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is | |
1915 | a graphical frame. | |
1916 | ||
c543db81 KH |
1917 | 2000-08-24 Kenichi Handa <handa@etl.go.jp> |
1918 | ||
d246d5f5 KH |
1919 | * minibuf.c (do_completion): Always use compare-string, not |
1920 | string-equal because the latter doesn't pay attention to | |
1921 | multibyteness of strings. | |
1922 | ||
c543db81 KH |
1923 | * process.c (create_process): Don't setup raw-text coding here. |
1924 | (Fopen_network_stream): Don't set coding->src_multibyte and | |
1925 | coding->dst_multibyte here. | |
1926 | (read_process_output): For process filter, return unibyte string | |
1927 | if default-enable-multibyte-characters is nil. | |
1928 | (send_process): If OBJECT is multibyte text, be sure to encoded it | |
1929 | by the specified coding system for the process. Otherwise, setup | |
1930 | raw-text coding. | |
1931 | (init_process): Don't initialize default-process-coding-system | |
1932 | here. | |
1933 | ||
9b47cfe0 EZ |
1934 | 2000-08-23 Eli Zaretskii <eliz@is.elta.co.il> |
1935 | ||
1936 | * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix. | |
1937 | <scroll-down-aggressively>: Likewise. | |
1938 | ||
f5a36960 KH |
1939 | 2000-08-23 Kenichi Handa <handa@etl.go.jp> |
1940 | ||
1941 | * coding.c (encode_eol): Fix bug for the case of dst_bytes being | |
1942 | zero. Set coding->produced_char correctly. | |
1943 | ||
69a7ffa7 AI |
1944 | 2000-08-22 Andrew Innes <andrewi@gnu.org> |
1945 | ||
1946 | * makefile.w32-in: New file. | |
1947 | ||
1948 | * unexw32.c (unexec): Ignore old_name, and use the actual location | |
1949 | of the current executable instead. Base new_name on this. | |
1950 | ||
1951 | * w32proc.c (create_child): Remove reference to security | |
1952 | descriptor, which isn't needed and doesn't compile with mingw32. | |
1953 | ||
1954 | * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws | |
1955 | up dllimport attributes. | |
1956 | (x_update_window_end): Update prototype. | |
1957 | ||
1958 | * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary | |
1959 | extern, which screws up dllimport attributes. | |
1960 | ||
1961 | * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws | |
1962 | up dllimport attributes. | |
1963 | ||
1964 | * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which | |
1965 | screws up dllimport attributes. | |
1966 | ||
1967 | * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws | |
1968 | up dllimport attributes. | |
1969 | (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which | |
1970 | screws up dllimport attributes. | |
1971 | ||
1972 | * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws | |
1973 | up dllimport attributes. | |
1974 | ||
1975 | * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which | |
1976 | screws up dllimport attributes. | |
1977 | ||
1978 | * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which | |
1979 | screws up dllimport attributes. | |
1980 | ||
1981 | * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws | |
1982 | up dllimport attributes. | |
1983 | ||
1984 | * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove | |
1985 | unnecessary extern, which screws up dllimport attributes. | |
1986 | (main): Ditto. | |
1987 | ||
1988 | * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws | |
1989 | up dllimport attributes. | |
1990 | ||
1991 | * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove | |
1992 | unnecessary extern, which screws up dllimport attributes. | |
1993 | ||
1994 | * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which | |
1995 | screws up dllimport attributes. | |
1996 | ||
1997 | * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws | |
1998 | up dllimport attributes. | |
1999 | ||
2000 | * w32proc.c (IsValidLocale): Extern missing from mingw32 headers. | |
2001 | ||
2002 | * w32bdf.c (search_file_line): | |
2003 | (set_bdf_font_info): | |
2004 | (seek_char): | |
2005 | (w32_get_bdf_glyph): | |
2006 | (w32_BDF_to_x_font): Fix compile warnings. | |
2007 | ||
2008 | * w32menu.c: Include keyboard.h before frame.h. Fix compile | |
2009 | warnings. | |
2010 | ||
2011 | * w32select.c: Include keyboard.h before frame.h. | |
2012 | ||
2013 | * w32fns.c (max): Define macro. | |
2014 | (JOHAB_CHARSET): Define if not known. | |
2015 | (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known. | |
2016 | (Fx_show_tip): Synch with X version. | |
2017 | ||
2018 | * w32xfns.c: Include keyboard.h before frame.h. | |
2019 | ||
2020 | * w32fns.c: Include keyboard.h before frame.h. | |
2021 | ||
2022 | * w32term.c: Include keyboard.h before frame.h. | |
2023 | ||
2024 | * fontset.c: Include keyboard.h before frame.h. | |
2025 | ||
2026 | * w32inevt.c: Include keyboard.h before frame.h. | |
2027 | (MOUSE_MOVED): Define if not known. | |
2028 | ||
2029 | * minibuf.c: Include keyboard.h before frame.h. | |
2030 | ||
2031 | * keyboard.c: Include keyboard.h before frame.h. | |
2032 | ||
2033 | * indent.c: Include keyboard.h before frame.h. | |
2034 | ||
2035 | * dispnew.c: Include keyboard.h before frame.h. | |
2036 | ||
2037 | * buffer.c: Include keyboard.h before frame.h. | |
2038 | ||
2039 | * alloc.c: Include keyboard.h before frame.h. | |
2040 | ||
2041 | * print.c: Include keyboard.h before frame.h. | |
2042 | ||
2043 | * process.c: Include keyboard.h before frame.h. | |
2044 | ||
2045 | * scroll.c: Include keyboard.h before frame.h. | |
2046 | ||
2047 | * sysdep.c: Include keyboard.h before frame.h. | |
2048 | ||
2049 | * term.c: Include keyboard.h before frame.h. | |
2050 | ||
2051 | * window.c: Include keyboard.h before frame.h. | |
2052 | ||
2053 | * xdisp.c: Include keyboard.h before frame.h. | |
2054 | Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE. | |
2055 | ||
2056 | * frame.c: Include keyboard.h before frame.h. | |
2057 | ||
2058 | * w32heap.h: Undefine min, max. | |
2059 | ||
2060 | * w32gui.h: Undefine min, max. | |
2061 | ||
2062 | * unexw32.c: Change PUCHAR to PCHAR. | |
2063 | (PTR_TO_OFFSET): Cast ptr to unsigned char *. | |
2064 | (relocate_offset): | |
2065 | (get_section_info): | |
2066 | (copy_executable_and_dump_data): Remove unnecessary static defs. | |
2067 | (copy_executable_and_dump_data): Fix compile warnings. | |
2068 | ||
2069 | * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined. | |
2070 | ||
2071 | * w32console.c (min): Define macro. | |
2072 | (clear_frame, write_glyphs): Fix compile warning. | |
2073 | ||
2074 | * w32proc.c (compare_env): | |
2075 | (find_child_console): Fix compile warning. | |
2076 | ||
2077 | * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use | |
2078 | sys_errlist instead of _sys_errlist. | |
2079 | (get_emacs_configuration_options): New function. | |
2080 | ||
2081 | * s/ms-w32.h (sys_nerr): Provide default definition. | |
2082 | (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same | |
2083 | name with _ prepended. | |
2084 | (NSIG): Define if not known. | |
2085 | (get_emacs_configuration): Provide extern declaration. | |
2086 | (get_emacs_configuration_options): Provide extern declaration. | |
2087 | (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options. | |
2088 | ||
2089 | * w32.c (gettimeofday): Use struct timeb, not struct _timeb. | |
2090 | (map_w32_filename): | |
2091 | (read_unc_volume): Fix compile warning. | |
2092 | ||
2093 | * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock | |
2094 | definitions from being used. | |
2095 | ||
2096 | * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd. | |
2097 | ||
2098 | * w32.c (unc_volume_file_attributes): | |
2099 | (open_unc_volume): Make arg const. | |
2100 | ||
2101 | * sysdep.c [WINDOWSNT]: Remove extern decl of errno. | |
2102 | (read_input_waiting): Remove excess parameter. | |
2103 | ||
2104 | * w32.c (init_environment): Call _access. | |
2105 | (check_windows_init_file): Call _close. | |
2106 | (init_user_info): Call _putenv. | |
2107 | (init_environment): Call _putenv and _strdup. | |
2108 | (init_ntproc): Reset volume info cache on startup. | |
2109 | ||
2110 | * s/ms-w32.h (malloc, free, realloc, calloc): Rename if | |
2111 | USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it | |
2112 | cannot override the CRT malloc. | |
2113 | ||
2114 | * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested. | |
2115 | (LINK_FLAGS): Append to original value of LINK_FLAGS. | |
2116 | ||
2117 | * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term | |
2118 | unless we are linking with a static CRT. | |
2119 | (RVA_TO_PTR): Cast result to unsigned char*. | |
2120 | ||
2121 | * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup. | |
2122 | (add_volume_info): Use xstrdup. | |
2123 | ||
25060080 SM |
2124 | 2000-08-22 Stefan Monnier <monnier@cs.yale.edu> |
2125 | ||
2126 | * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'. | |
2127 | (do_completion, Fminibuffer_complete_word): Use it. | |
2128 | (syms_of_minibuf): Turn completion-auto-help into a proper Lisp | |
2129 | var so it can take non-boolean values. | |
2130 | ||
6917e6bb GM |
2131 | 2000-08-21 Gerd Moellmann <gerd@gnu.org> |
2132 | ||
acb7cc89 GM |
2133 | * editfns.c (find_field): Formatting changes. |
2134 | (toplevel): Some old-style function forward declarations | |
2135 | changed to prototypes, some new protypes added, some functions | |
2136 | made static. | |
2137 | ||
2138 | * lisp.h (set_time_zone_rule): Add prototype. | |
2139 | (use_dialog_box): External declaration. | |
2140 | ||
0bbfdc25 GM |
2141 | * keyboard.c (gen_help_event): Add parameter SIZE. |
2142 | (kbd_buffer_events_waiting): Slightly rewritten. | |
2143 | (clear_event): New function. | |
2144 | (kbd_buffer_get_event): Use it, and clear the input_events of | |
2145 | HELP_EVENTs. | |
2146 | (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and | |
2147 | don't fill the newly created array with nils. | |
2148 | (toplevel): Convert some old-style function forward declarations | |
2149 | to prototypes. | |
2150 | ||
2151 | * keyboard.h (gen_help_event): Change prototype. | |
2152 | ||
2153 | * xterm.c (XTread_socket): Change calls to gen_help_event. | |
2154 | ||
2155 | * w32term.c (w32_read_socket): Change calls to gen_help_event. | |
2156 | ||
6917e6bb GM |
2157 | * eval.c (Fmacroexpand): Doc fix. |
2158 | ||
e5cd3d11 JR |
2159 | 2000-08-20 Jason Rumney <jasonr@gnu.org> |
2160 | ||
2161 | * w32term.h (x_display_info_for_display): Remove as this function | |
2162 | does not exist on W32. | |
2163 | ||
2164 | * w32term.c (help_echo_window): New variable. | |
2165 | (syms_of_w32term): staticpro it. | |
2166 | (note_mode_line_highlight): Set it. | |
2167 | (XTextExtents16): Removed as there is no equivalent on W32. | |
2168 | (x_compute_glyph_string_overhangs): Incomplete body removed, as | |
2169 | the X way of doing this will not work for W32. | |
2170 | (w32_intersect_rectangles): Removed. Use IntersectRect API call. | |
2171 | (x_draw_image_foreground): Avoid drawing outside of the clip area | |
2172 | when image doesn't have a mask. | |
2173 | (note_mouse_highlight): Process overlays in the right order of | |
2174 | priority. Set help_echo_window. | |
2175 | (x_draw_bar_cursor): If cursor is on an image, draw a box cursor | |
2176 | because that's more visible for large images. | |
2177 | ||
2178 | * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane | |
2179 | name to single_keymap_panes. | |
2180 | (w32_menu_show): Set wv->title when dealing with titles. | |
2181 | (w32_menu_display_help): Call show_help_echo with OBJECT and POS. | |
2182 | ||
6e69ab8c MB |
2183 | 2000-08-21 Miles Bader <miles@gnu.org> |
2184 | ||
2185 | * minibuf.c (do_completion): Try again if we rewrite the input | |
2186 | string, but no completion was done, so that any completion message | |
2187 | will be correct. | |
2188 | ||
511bd4eb GM |
2189 | 2000-08-20 Gerd Moellmann <gerd@gnu.org> |
2190 | ||
2191 | * xfaces.c (lface_equal_p): Compare strings differently. | |
2192 | (Qtty_color_alist, Vtty_defined_color_alist): New variables. | |
2193 | (realize_tty_face): Use them. | |
2194 | (syms_of_xfaces): Initialize new variables. | |
2195 | (map_tty_color): New function, extracted from realize_tty_face. | |
2196 | (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default | |
2197 | foreground or background color, store the new color name in the | |
2198 | realized face; previous code trying to do this had no effect. | |
2199 | (realize_tty_face): Use map_tty_color. | |
2200 | (Fclear_face_cache): Set face_change_count and ensure thorough | |
2201 | redisplay. | |
2202 | ||
1433385f GM |
2203 | 2000-08-19 Gerd Moellmann <gerd@gnu.org> |
2204 | ||
511bd4eb GM |
2205 | * undo.c (record_first_change, record_marker_adjustment): Don't |
2206 | use XBUFFER on last_undo_buffer which might not be a buffer. | |
1433385f | 2207 | |
419ac0a2 KH |
2208 | 2000-08-18 Kenichi Handa <handa@etl.go.jp> |
2209 | ||
2210 | * coding.c (decode_coding_string): Set members consumed, | |
2211 | consumed_char, produced, produced_char of *coding correctly. If | |
2212 | decode_coding doesn't consume any byte, don't try anymore. | |
2213 | (encode_coding_string): Likewise. | |
2214 | ||
7eb9e30d GM |
2215 | 2000-08-18 Gerd Moellmann <gerd@gnu.org> |
2216 | ||
511bd4eb GM |
2217 | * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the |
2218 | conditional have void type, for Standard C compilers. | |
7eb9e30d GM |
2219 | |
2220 | * xdisp.c (redisplay_internal): Compare windows for equality with | |
2221 | EQ, instead of applying XWINDOW to something that might not | |
2222 | be a window. | |
2223 | ||
dd34a735 KH |
2224 | 2000-08-18 Kenichi Handa <handa@etl.go.jp> |
2225 | ||
2226 | * fontset.c (Finternal_char_font): Search only the selected frame | |
2227 | for a window of the current buffer. | |
2228 | ||
385ff9e3 GM |
2229 | 2000-08-18 Gerd Moellmann <gerd@gnu.org> |
2230 | ||
511bd4eb | 2231 | * minibuf.c (do_completion): Use EQ instead of `!=' to compare |
01cce3e7 GM |
2232 | Lisp_Objects. |
2233 | ||
385ff9e3 GM |
2234 | * keyboard.c (kbd_buffer_get_event): Handle the case that the |
2235 | second half of a HELP_EVENT is found at the start of kbd_buffer. | |
2236 | ||
d6abb4c7 MB |
2237 | 2000-08-18 Miles Bader <miles@gnu.org> |
2238 | ||
4618074a MB |
2239 | * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl. |
2240 | ||
d6abb4c7 MB |
2241 | * editfns.c (save_restriction_save): Rewrite to use markers. |
2242 | (save_restriction_restore): Rewrite to understand new form of data | |
2243 | saved by save_restriction_save. | |
2244 | (Fsave_restriction): Remove cautionary note in doc-string. | |
2245 | ||
a7b28523 GM |
2246 | 2000-08-17 Gerd Moellmann <gerd@gnu.org> |
2247 | ||
2248 | * fileio.c (build_annotations): Add a comment explaining the | |
2249 | return value of format-annotate-function. Replace a spurious call | |
2250 | to Flength with a CONSP test. Call format-annotate-function with | |
2251 | a fifth arg specifying how many times the function is been called | |
2252 | in a row, to let it choose temporary buffers appropriately. | |
2253 | ||
03c9ed77 DL |
2254 | 2000-08-17 Dave Love <fx@gnu.org> |
2255 | ||
2256 | * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't | |
2257 | declare make_temp_name twice. | |
2258 | ||
2259 | * lread.c: Prototype readevalloop, load_unwind, | |
2260 | load_descriptor_unwind. | |
2261 | (unreadpure): Give it an arg. | |
2262 | ||
2263 | * unexalpha.c: Prototype fatal_unexec, mark_x, | |
2264 | update_dynamic_symbols. Declare unexec as void. | |
2265 | ||
2266 | * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>. | |
2267 | [!HAVE_TERMCAP_H]: Prototype tputs, tgoto. | |
2268 | ||
2269 | * alloc.c (lisp_malloc): Declare with POINTER_TYPE. | |
2270 | [SYSTEM_MALLOC]: Make decls in malloc.h conditional on | |
2271 | DOUG_LEA_MALLOC. | |
2272 | ||
2273 | * alloca.c: Use #error. | |
2274 | [POINTER_TYPE]: Use it. | |
2275 | ||
2276 | * eval.c (Fdefvar): Doc fix. | |
2277 | ||
2278 | * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid | |
2279 | INITIALIZE_INTERVAL. | |
2280 | ||
2281 | * buffer.h: Avoid DECLARE_INTERVALS. | |
2282 | ||
2283 | * config.in: Add size_t. | |
2284 | ||
aae41d97 EZ |
2285 | 2000-08-17 Eli Zaretskii <eliz@is.elta.co.il> |
2286 | ||
2287 | * w16select.c (set_clipboard_data): If there's not enough memory | |
2288 | to put text into clipboard, return 1, as Fw16_set_clipboard_data | |
2289 | expects. In case of other failures, return 3. | |
2290 | (system_error_msg): New error message. | |
2291 | (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print | |
2292 | system_error_msg. | |
2293 | ||
65aa5e85 GM |
2294 | 2000-08-16 Gerd Moellmann <gerd@gnu.org> |
2295 | ||
2296 | * term.c (write_glyphs): Also turn off inverse video after turning | |
2297 | off other appearances in case TS_exit_attribute_mode is not equal | |
2298 | to TS_end_standout_mode. | |
2299 | (insert_glyphs): Turn inverse video on/off for each run of glyphs | |
2300 | with the same face. | |
2301 | (turn_off_face): Reset standout_mode only if | |
2302 | TS_exit_attribute_mode has been output and TS_exit_attribute_mode | |
2303 | is equal to TS_end_standout_mode. | |
2304 | ||
ece23901 KH |
2305 | 2000-08-16 Kenichi Handa <handa@etl.go.jp> |
2306 | ||
9d7bcb2e KH |
2307 | * coding.c (encode_coding): Fix the bug of not flushing ISO escape |
2308 | sequence at the end of the source block. | |
2309 | ||
ece23901 KH |
2310 | * ccl.c (Fccl_program_p): Docstring modified. |
2311 | (Fccl_execute): Likewise. | |
2312 | (Fccl_execute_on_string): Likewise. | |
2313 | ||
5e30eaa2 EZ |
2314 | 2000-08-16 Eli Zaretskii <eliz@is.elta.co.il> |
2315 | ||
2316 | * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *. | |
2317 | ||
290602fd KH |
2318 | 2000-08-16 Kenichi Handa <handa@etl.go.jp> |
2319 | ||
2320 | The following changes are mainly to fix bugs of | |
2321 | encode/decode-coding-string failing if encoding/decoding return | |
2322 | CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global | |
2323 | variable conversion_buffer. | |
2324 | ||
2325 | * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char, | |
2326 | decrement dst_end to avoid buffer overflow in the later call of | |
2327 | string_as_multibyte | |
2328 | ||
2329 | * coding.h (conversion_buffer_size, conversion_buffer) | |
2330 | (get_conversion_buffer): Extern deleted. | |
2331 | ||
2332 | * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted. | |
2333 | (conversion_buffer, conversion_buffer_size): Variables deleted. | |
2334 | (get_conversion_buffer): Function deleted. | |
2335 | (struct conversion_buffer): New structure. | |
2336 | (MAX_ALLOCA): New macro. | |
2337 | (allocate_conversion_buffer): New macro. | |
2338 | (extend_conversion_buffer, free_conversion_buffer): New functions. | |
2339 | (ccl_coding_driver): Set coding->result. | |
2340 | (decode_coding): Set coding->result to CODING_FINISH_NORMAL if | |
2341 | this is the last block of source. | |
2342 | (encode_coding): Likewise. Handle the source block as the last | |
2343 | one only when the whole source text is consumed. | |
2344 | (decode_coding_string): Handle the case that the output buffer is | |
2345 | too small to decode the whole source text. Use | |
2346 | allocate_conversion_buffer, extend_conversion_buffer and | |
2347 | free_conversion_buffer, not get_conversion_buffer. | |
2348 | (encode_coding_string): Likewise. | |
2349 | (init_coding): Function deleted. | |
2350 | (init_coding_once): Delete code to initialize | |
2351 | conversion_buffer_size. | |
2352 | ||
2353 | * emacs.c (main): Don't call init_coding. | |
2354 | ||
2355 | * msdos.c (IT_write_glyphs): Use a locally declared | |
2356 | conversion_buffer. | |
2357 | ||
2358 | * term.c (write_glyphs): Use a locally declared conversion_buffer. | |
2359 | (insert_glyphs): Likewise. | |
2360 | ||
2361 | * w32console.c (write_glyphs): Use a locally declared | |
2362 | conversion_buffer. | |
2363 | ||
b9f80d41 EZ |
2364 | 2000-08-15 Eli Zaretskii <eliz@is.elta.co.il> |
2365 | ||
2366 | * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame | |
2367 | member of display_info is NULL. | |
2368 | ||
32dc52f7 GM |
2369 | 2000-08-15 Gerd Moellmann <gerd@gnu.org> |
2370 | ||
58ed0d3b GM |
2371 | * alloc.c (compact_small_strings): Use safe_bcopy, add an |
2372 | assertion. | |
2373 | ||
32dc52f7 | 2374 | * term.c (turn_off_face): Reset standout_mode when resetting |
58ed0d3b | 2375 | appearances with capability `me'. |
32dc52f7 GM |
2376 | (write_glyphs): Switch on inverse video before each face change. |
2377 | ||
4eb22d33 DL |
2378 | 2000-08-14 Dave Love <fx@gnu.org> |
2379 | ||
2380 | * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk. | |
2381 | [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk. | |
2382 | (lisp_free): Declare and make static. | |
2383 | ||
2384 | * window.c: Fix embedded comment. | |
2385 | (syms_of_window): Fix doc string. | |
2386 | ||
90cbf47e GM |
2387 | 2000-08-14 Gerd Moellmann <gerd@gnu.org> |
2388 | ||
2389 | * keymap.c (push_key_description): If C without modifiers is < 32, | |
2390 | make sure to print `C-' before `M-', like in the manual. | |
2391 | ||
440fc135 GM |
2392 | 2000-08-11 Gerd Moellmann <gerd@gnu.org> |
2393 | ||
2394 | * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially | |
2395 | since they aren't relocated anymore. | |
2396 | (sxhash_string): Make sure returned hash code fits in a Lisp | |
2397 | integer. | |
2398 | ||
2399 | * xdisp.c (try_cursor_movement): Fix handling of cursor in | |
2400 | partially visible line which is smaller than the window's | |
2401 | height. | |
2402 | ||
6e264fad KH |
2403 | 2000-08-11 Kenichi Handa <handa@etl.go.jp> |
2404 | ||
2405 | * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to | |
2406 | the multibyte form of eight-bit-control characters. | |
2407 | (Fccl_execute_on_string): Initialize ccl->multibyte. | |
2408 | ||
2409 | * ccl.h (struct ccl_program): New member multibyte. | |
2410 | ||
2411 | * coding.c (ccl_coding_driver): Initialize ccl->multibyte. | |
2412 | ||
c371f69a KH |
2413 | 2000-08-11 Kenichi Handa <handa@etl.go.jp> |
2414 | ||
2415 | * regex.c (regex_compile) <normal_char>: Pay attention to | |
2416 | multibyteness. | |
2417 | (analyse_first) <exactn>: Setup fastmap correctly for | |
2418 | eight-bit-control characters. | |
2419 | ||
2420 | 2000-08-11 Kenichi Handa <handa@etl.go.jp> | |
2421 | ||
2422 | * termhooks.h (enum event_kind): New member | |
2423 | multibyte_char_keystroke. | |
2424 | ||
2425 | * keyboard.c (make_lispy_event): Handle the new event type | |
2426 | multibyte_char_keystroke. | |
2427 | ||
2428 | * xterm.c: Include coding.h. | |
2429 | (XTread_socket): Work around a bug of XmbLookupString. If the | |
2430 | input is from XIM, decode it according to the current locale. In | |
2431 | that case, generate multibyte_char_keystroke events. | |
2432 | ||
b8ddbe71 KH |
2433 | 2000-08-11 Kenichi Handa <handa@etl.go.jp> |
2434 | ||
2435 | * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon. | |
2436 | (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy. | |
2437 | ||
47589c8c GM |
2438 | 2000-08-10 Gerd Moellmann <gerd@gnu.org> |
2439 | ||
2440 | * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable. | |
2441 | (TRACE_MOVE) [GLYPH_DEBUG]: New macro. | |
2442 | (move_it_in_display_line_to): Record iterator's ascent and descent | |
2443 | before producing glyphs, and restore them when we know the glyph | |
2444 | doesn't fit on the line. | |
2445 | (move_it_to): Restructured so that it's easier to debug. If | |
2446 | moving to a vpos, and not moving to an x or character position, | |
2447 | stop as soon as the specified vpos is reached; don't move further | |
2448 | into that line because that might change the computed line height. | |
2449 | (try_cursor_movement): New function, extracted from the cursor | |
2450 | movement branch of redisplay_window. If ending on a partially | |
2451 | visible line, don't try to scroll if the cursor line is taller | |
2452 | than the window. | |
2453 | (redisplay_window): Use try_cursor_movement. | |
2454 | ||
2455 | * window.c (Fwindow_end): Rewritten to not use Fvertical_motion, | |
2456 | because that function doesn't cope with variable-height lines. | |
2457 | ||
2458 | * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a | |
2459 | box cursor because that's better visible for large images. | |
2460 | ||
c51bacd6 MB |
2461 | 2000-08-10 Miles Bader <miles@gnu.org> |
2462 | ||
2463 | * w32term.c (note_mouse_highlight): Update calls to overlays_at. | |
2464 | ||
bea56df7 GM |
2465 | 2000-08-10 Gerd Moellmann <gerd@gnu.org> |
2466 | ||
2467 | * xdisp.c (Vmessages_buffer_name): New variable. | |
2468 | (message_dolog): Use it. | |
2469 | (syms_of_xdisp): Initialize it. | |
2470 | ||
99cd7364 EZ |
2471 | 2000-08-10 Eli Zaretskii <eliz@is.elta.co.il> |
2472 | ||
2473 | * msdos.c (IT_note_mouse_highlight): Update the calls to | |
2474 | overlays_at. | |
2475 | (toplevel) <kbd_buffer_store_event>: Remove prototype, it's | |
2476 | redundant now that keyboard.h is included. | |
2477 | ||
7d093d56 EZ |
2478 | 2000-08-09 Eli Zaretskii <eliz@is.elta.co.il> |
2479 | ||
2480 | * keyboard.c (kbd_buffer_events_waiting): New function. | |
2481 | ||
2482 | * keyboard.h (kbd_buffer_events_waiting): Add prototype. | |
2483 | ||
2484 | * msdos.c: Include keyboard.h. | |
2485 | (XMenuActivate): Empty no_event events from the event buffer. If | |
2486 | no events are left after that, call clear_input_pending. | |
2487 | (mouse_clear_clicks): New function, code moved from mouse_init. | |
2488 | (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the | |
2489 | mouse driver to ``forget'' any past clicks. | |
2490 | ||
2491 | * Makefile.in (msdos.o): Depend on keyboard.h. | |
2492 | ||
41e757a6 GM |
2493 | 2000-08-09 Gerd Moellmann <gerd@gnu.org> |
2494 | ||
8e7bd231 GM |
2495 | * lisp.h (input_pending): External declaration. |
2496 | ||
2497 | * dispextern.h (Qredisplay_dont_pause): Declare extern. | |
2498 | ||
2499 | * xdisp.c (echo_area_display): Display thoroughly if input is | |
2500 | pending. Bind redisplay-dont-pause to t during the redisplay. | |
2501 | in case input is pending. | |
2502 | ||
2503 | * dispnew.c (Qredisplay_dont_pause): New variable. | |
2504 | (syms_of_display): Initialize and staticpro it. | |
2505 | (update_frame_1): Don't interrupt the display for pending input if | |
2506 | redisplay_dont_pause is set. | |
2507 | ||
43028b7e GM |
2508 | * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P. |
2509 | ||
41e757a6 GM |
2510 | * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix. |
2511 | ||
2f2174fa KH |
2512 | 2000-08-09 Miles Bader <miles@lsi.nec.co.jp> |
2513 | ||
2514 | * callproc.c (Fcall_process): Terminate the unwind-protect around | |
2515 | the post-read-conversion of coding system. | |
2516 | ||
0a6fd67e MB |
2517 | * buffer.c (overlays_at): Add CHANGE_REQ parameter. |
2518 | (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it. | |
2519 | * buffer.h (overlays_at): Update prototype. | |
2520 | * xdisp.c (next_overlay_change): Update call to overlays_at. | |
2521 | * xfaces.c (face_at_buffer_position): Likewise. | |
2522 | * textprop.c (Fget_char_property): Likewise. | |
2523 | * xterm.c (note_mouse_highlight): Likewise. | |
2524 | ||
0c80756e MB |
2525 | * minibuf.c (do_completion): Don't consider a simple change of |
2526 | case as `completion'. | |
2527 | ||
975f250a KR |
2528 | 2000-08-08 Ken Raeburn <raeburn@gnu.org> |
2529 | ||
b347b3fd KR |
2530 | * keyboard.c (syms_of_keyboard): Initialize |
2531 | last_point_position_buffer. | |
2532 | * undo.c (record_delete): Make sure last_point_position_buffer is | |
2533 | a buffer before comparing pointers. | |
2534 | ||
2535 | * coding.h (decode_coding_string): Declare. | |
2536 | ||
2537 | * intervals.h (Fprevious_single_char_property_change): Declare. | |
2538 | ||
2539 | * textprop.c (Fprevious_single_char_property_change): Don't do | |
2540 | arithmetic directly on lisp objects. | |
2541 | ||
25ad1371 | 2542 | * editfns.c (find_field): Use EQ, not ==, to compare Lisp |
b347b3fd KR |
2543 | objects. |
2544 | ||
2545 | * keyboard.h (menu_item_eval_property): Declare. | |
2546 | ||
2547 | * xdisp.c (message_dolog): Save and protect string "*Messages*" to | |
2548 | reuse as buffer name, instead of recreating (and discarding) every | |
2549 | time a message is logged. | |
2550 | (with_echo_area_buffer): Make callback arg A2 a lisp object. | |
25ad1371 GM |
2551 | (current_message_1, truncate_message_1, set_message_1) |
2552 | (display_echo_area_1, resize_mini_window_1): Signatures changed. | |
2553 | (current_message, truncate_echo_area, display_echo_area) | |
2554 | (resize_echo_area_axactly): Changed calls. | |
b347b3fd | 2555 | |
975f250a | 2556 | * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a |
25ad1371 | 2557 | Lisp object. |
975f250a | 2558 | (Ffind_coding_systems_region_internal): First argument to Fappend |
25ad1371 | 2559 | must be an integer, not a Lisp object. |
975f250a | 2560 | |
46dc9912 KH |
2561 | 2000-08-08 Kenichi Handa <handa@etl.go.jp> |
2562 | ||
2563 | * charset.c (Fchar_width): Doc fix. | |
2564 | ||
9f6d1a6c GM |
2565 | 2000-08-08 Gerd Moellmann <gerd@gnu.org> |
2566 | ||
2567 | * charset.c (Fstring_width): Doc fix. | |
2568 | ||
ff3d9573 GM |
2569 | 2000-08-07 Gerd Moellmann <gerd@gnu.org> |
2570 | ||
41e757a6 | 2571 | * xdisp.c (start_display): When starting display on a continuation |
49ad1d99 GM |
2572 | line, clear ascent and descent members of the iterator structure; |
2573 | the height of the continued line does not affect the height of the | |
2574 | continuation line. | |
2575 | (make_cursor_line_fully_visible): Do nothing if cursor is on a | |
2576 | line taller than the window. | |
2577 | (redisplay_window) <forced window start>: Handle case that the | |
2578 | middle of the window is not found in any row. | |
2579 | (dump_glyph_row): Show more information. | |
2580 | (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the | |
2581 | first text line in a glyph matrix. | |
2582 | ||
2583 | * xterm.c (x_draw_image_foreground): Avoid drawing outside | |
2584 | of the clip area when image doesn't have a mask. | |
2585 | ||
70fc58b3 GM |
2586 | * fns.c (sweep_weak_table): Fix survival conditions for |
2587 | key-or-value and key-and-value weakness. | |
2588 | ||
2589 | * .gdbinit (xhashtable): New command. | |
2590 | ||
ac0e96ee GM |
2591 | * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked |
2592 | tables out of the list of all weak hash tables. | |
2593 | ||
ff3d9573 GM |
2594 | * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and |
2595 | a new buffer is created, make sure echo_area_buffer[] references | |
2596 | the new buffer. | |
2597 | ||
e0d8827b EZ |
2598 | 2000-08-07 Eli Zaretskii <eliz@is.elta.co.il> |
2599 | ||
2600 | * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in | |
2601 | the doc string. | |
2602 | ||
c6f35378 KH |
2603 | 2000-08-07 Kenichi Handa <handa@etl.go.jp> |
2604 | ||
2605 | * syntax.c (skip_chars): Fix previous change. Make the handling | |
2606 | of unibyte string consistent with that of regex search. | |
2607 | ||
1fd4c450 GM |
2608 | 2000-08-05 Gerd Moellmann <gerd@gnu.org> |
2609 | ||
e49aa397 GM |
2610 | * xmenu.c (popup_get_selection): Use xfree instead of free. |
2611 | ||
2612 | * fileio.c (Finsert_file_contents): Use xfree instead of free. | |
2613 | ||
2614 | * editfns.c (Ftranspose_regions): Use xfree instead of free. | |
2615 | ||
2616 | * callproc.c (child_setup): Use xfree instead of free. | |
2617 | ||
2618 | * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc | |
2619 | instead of malloc. | |
2620 | (run_mac_command, closedir): Use `xfree' instead of `free'. | |
2621 | ||
2622 | * keymap.c (current_minor_maps): Use xmalloc instead of malloc. | |
2623 | ||
2624 | * eval.c (error): Use xfree instead of free. | |
2625 | ||
1fd4c450 GM |
2626 | * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'. |
2627 | ||
2628 | * fns.c: Replace `illegal' with `invalid'. | |
e49aa397 | 2629 | (Fmake_hash_table, make_hash_table): Allow table size of 0. |
1fd4c450 | 2630 | |
82d497fc KH |
2631 | 2000-08-05 Kenichi Handa <handa@etl.go.jp> |
2632 | ||
2633 | * syntax.c (skip_chars): Fix handling of multibyte<->unibyte | |
2634 | conversion. | |
2635 | ||
59f953a2 NF |
2636 | 2000-08-04 Noah Friedman <friedman@splode.com> |
2637 | ||
2638 | * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in | |
2639 | docstring. | |
2640 | ||
688351f2 GM |
2641 | 2000-08-04 Gerd Moellmann <gerd@gnu.org> |
2642 | ||
2643 | * syntax.c (skip_chars): Fix typo in error message. | |
2644 | ||
2dad51cc AS |
2645 | 2000-08-04 Andreas Schwab <schwab@suse.de> |
2646 | ||
2647 | * m/ia64.h: Moved from s/ia64.h. | |
2648 | ||
99bb2c60 KH |
2649 | 2000-08-04 Kenichi Handa <handa@etl.go.jp> |
2650 | ||
082a1df2 KH |
2651 | * process.c (read_process_output): Big simplification. Handle |
2652 | composition and post-read-conversion of coding system correctly. | |
2653 | (send_process): Handle composition correctly. | |
2654 | ||
2655 | * callproc.c (Fcall_process): Handle post-read-conversion of | |
2656 | coding system if any. | |
2657 | ||
99bb2c60 KH |
2658 | * coding.c (decode_coding_iso2022): More strict check for handling |
2659 | single shifting. | |
082a1df2 KH |
2660 | (coding_restore_composition): Pay attention to the case that |
2661 | cmp_data is not set properly (because of invalid code in the | |
2662 | source text). | |
2663 | (run_pre_post_conversion_on_str): Include text properties in the | |
2664 | resulting string. | |
2665 | (decode_coding_string): Set members of coding correctly. | |
99bb2c60 | 2666 | |
f4988be7 GM |
2667 | 2000-08-03 Gerd Moellmann <gerd@gnu.org> |
2668 | ||
2669 | * s/ia64.h: New file. | |
2670 | ||
2671 | * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues): | |
2672 | Use NULL instead of 0 at the end of variable argument list of | |
2673 | XtVaGetValues and XtVaSetValues, because 0 fails on systems where | |
2674 | sizeof (int) < sizeof (void *). | |
2675 | ||
2676 | * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end | |
2677 | of variable argument lists of XtVaGetValues and XtVaSetValues. | |
2678 | ||
2679 | * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of | |
2680 | variable argument lists of XtVaGetValues and XtVaSetValues. | |
2681 | ||
ead53494 GM |
2682 | 2000-08-02 Gerd Moellmann <gerd@gnu.org> |
2683 | ||
2684 | * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE. | |
2685 | (xrealloc, xmalloc): Use size_t. Some callers adjusted. | |
2686 | ||
2687 | * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change | |
2688 | prototype. | |
2689 | ||
2690 | * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter | |
2691 | in call to Fsingle_key_description. | |
2692 | ||
2693 | * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES. | |
2694 | Callers changed. | |
2695 | ||
2696 | 2000-08-02 Colin Walters <walters@cis.ohio-state.edu> | |
2697 | ||
2698 | * window.c (display_buffer_reuse_frames): New variable. | |
2699 | (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse | |
2700 | frames displaying BUFFER. | |
2701 | (syms_of_window): Define Lisp variable | |
2702 | display-buffer-reuse-frames. | |
2703 | ||
10b0f752 MB |
2704 | 2000-08-01 Miles Bader <miles@gnu.org> |
2705 | ||
2706 | * editfns.c (Fconstrain_to_field): Fix the conditions for deciding | |
2707 | when to constrain NEW_POS (they were pretty screwed up before). | |
2708 | ||
16425c4a EZ |
2709 | 2000-07-31 Eli Zaretskii <eliz@is.elta.co.il> |
2710 | ||
2711 | * msdos.c (run_msdos_command): Save and restore the master | |
2712 | environment, for the case that child_setup signals an error. | |
2713 | When mirroring slashes in DOS shell commands, don't fail when | |
2714 | argv[2] has embedded blanks. | |
da288c14 EZ |
2715 | (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions. |
2716 | (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons. | |
2717 | (dos_ttraw): Call mouse_setup_buttons. | |
16425c4a EZ |
2718 | |
2719 | * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of | |
2720 | using alloca; free it after run_msdos_command returns. | |
2721 | ||
27f73852 DL |
2722 | 2000-07-27 Dave Love <fx@gnu.org> |
2723 | ||
2724 | * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't | |
2725 | define. | |
2726 | [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently | |
2727 | working. | |
2728 | ||
2729 | * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define. | |
2730 | ||
c0261b5e EZ |
2731 | 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il> |
2732 | ||
2733 | * editfns.c (lisp_time_argument): Fix last change. | |
2734 | ||
b548072f GM |
2735 | 2000-07-27 Gerd Moellmann <gerd@gnu.org> |
2736 | ||
3ab82477 GM |
2737 | * fns.c (Fdelete): Make it work on vectors and strings in addition |
2738 | to lists. | |
2739 | ||
b548072f GM |
2740 | * fns.c (Qkey_or_value, Qkey_and_value): New variables. |
2741 | (syms_of_fns): Initialize new variables. | |
2742 | (sweep_weak_table): Handle weakness `key-or-value' and | |
2743 | `key-and-value'. | |
2744 | (Fmake_hash_table): Recognize `key-and-value' and `key-or-value' | |
2745 | weakness, with t meaning the same as `key-and-value'. | |
2746 | ||
91ae8751 KH |
2747 | 2000-07-27 Kenichi Handa <handa@etl.go.jp> |
2748 | ||
2749 | * coding.h (struct coding_system): Member safe_charset deleted. | |
2750 | ||
2751 | * coding.c (Qsafe_charsets): This variable deleted. | |
2752 | (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system): New | |
2753 | variables. | |
2754 | (coding_safe_chars): New function. | |
2755 | (CODING_SAFE_CHAR_P): New macro. | |
2756 | (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of | |
2757 | checking safe_charsets member of the coding system. Caller | |
2758 | changed. | |
2759 | (detect_coding_iso2022): New local variable safe_chars. | |
2760 | (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking | |
2761 | safe_charsets member of the coding system. | |
2762 | (decode_coding_iso2022): New local variable safe_chars. | |
2763 | (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here. | |
2764 | (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise. | |
2765 | (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed. | |
2766 | (ENCODE_UNSAFE_CHARACTER): New macro. | |
2767 | (encode_coding_iso2022): New local variable safe_chars. Check | |
2768 | unsafe chars. | |
2769 | (setup_coding_system): Delete the code to initialize | |
2770 | coding->safe_charses | |
2771 | (intersection, find_safe_codings): New functions. | |
2772 | (Ffind_coding_systems_region_internal): New function. | |
2773 | (syms_of_coding): Defsubr it. Initialize Qsafe_chars, | |
2774 | Qsafe_cding_system. Make Vchar_coding_system_table a Lisp | |
2775 | variable and initialize it. | |
2776 | ||
2777 | * fns.c (char_table_ref_and_index): New function. | |
2778 | ||
2779 | * lisp.h (char_table_ref_and_index): Add prototype. | |
2780 | ||
34a7a267 SS |
2781 | 2000-07-26 Sam Steingold <sds@gnu.org> |
2782 | ||
2783 | * editfns.c (lisp_time_argument): Added third argument `usec'. | |
3ab82477 | 2784 | (Ffloat_time): New built-in Lisp function. |
34a7a267 | 2785 | |
a95cb10a GM |
2786 | 2000-07-26 Gerd Moellmann <gerd@gnu.org> |
2787 | ||
3353ef5a GM |
2788 | * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits |
2789 | for the character code. | |
2790 | ||
2791 | * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and | |
2792 | GNU/Linux. | |
2793 | ||
a95cb10a GM |
2794 | * xmenu.c (menu_highlight_callback): Call show_help_echo directly |
2795 | if called for a popup menu. | |
2796 | (xmenu_show): Store help string in widget values. | |
2797 | ||
b4a12321 DL |
2798 | 2000-07-26 Dave Love <fx@gnu.org> |
2799 | ||
2800 | * syswait.h: Move some definitions. | |
2801 | (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex. | |
2802 | [!HAVE_SYS_WAIT_H]: Define things unconditionally. More | |
2803 | perspicuous definitions. | |
2804 | (WTERMSIG): Fix bit pattern used. | |
2805 | ||
13f5ad37 KH |
2806 | 2000-07-26 Kenichi Handa <handa@etl.go.jp> |
2807 | ||
2808 | * print.c (print_object): If vector printing is truncated, print | |
2809 | "..." to indicate it as well as the case of list printing. | |
2810 | ||
070fe99c GM |
2811 | 2000-07-25 Gerd Moellmann <gerd@gnu.org> |
2812 | ||
969065c3 GM |
2813 | * xdisp.c (next_element_from_display_vector): Improve comments. |
2814 | ||
2815 | * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits | |
2816 | for the character code, and the rest for the face id as in 20.x. | |
2817 | (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly. | |
2818 | ||
2819 | * window.c (window_display_table): Cleaned up. | |
2820 | ||
070fe99c GM |
2821 | * syntax.c (Fforward_word): Add last arg nil in call of |
2822 | Fconstrain_to_field. | |
2823 | ||
bad77ef7 EZ |
2824 | 2000-07-25 Eli Zaretskii <eliz@is.elta.co.il> |
2825 | ||
969065c3 | 2826 | * fileio.c (Frename_file) [DOS_NT]: If the file names are |
bad77ef7 EZ |
2827 | identical but for the letter-case, don't call |
2828 | barf_or_query_if_file_exists. | |
2829 | ||
c28da489 MB |
2830 | 2000-07-25 Miles Bader <miles@gnu.org> |
2831 | ||
2832 | * editfns.c (find_field): Honor special `boundary' fields. | |
2833 | (Qboundary): New variables. | |
2834 | (syms_of_editfns): Initialize Qboundary. | |
2835 | (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument. | |
2836 | Use scan_buffer instead of find_before_next_newline, because it | |
2837 | allows us to detect the boundary case where there's a newline at | |
2838 | the search limit. | |
2839 | * lisp.h (Fconstrain_to_field): Update external declaration. | |
2840 | ||
e3c31fd5 GM |
2841 | 2000-07-24 Gerd Moellmann <gerd@gnu.org> |
2842 | ||
2843 | * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks | |
2844 | if that is nil. | |
c28da489 | 2845 | |
c66c29a2 DL |
2846 | 2000-07-24 Dave Love <fx@gnu.org> |
2847 | ||
2848 | * s/sunos4-0.h, s/sol2.h: | |
2849 | (LIBS_TERMCAP): Move from m/sparc.h. | |
2850 | ||
2851 | * m/sparc.h (TERMINFO): Moved to system files (probably only | |
2852 | relevant for sunos4 judging by its vintage). | |
2853 | (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on | |
2854 | __arch64__. | |
2855 | ||
fbe0a958 EZ |
2856 | 2000-07-24 Eli Zaretskii <eliz@is.elta.co.il> |
2857 | ||
2858 | * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane | |
2859 | name to single_keymap_panes. | |
2860 | ||
7d88e5c9 AS |
2861 | 2000-07-24 Andreas Schwab <schwab@suse.de> |
2862 | ||
2863 | * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil. | |
2864 | ||
e024b101 GM |
2865 | 2000-07-24 Gerd Moellmann <gerd@gnu.org> |
2866 | ||
2867 | * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT | |
2868 | parameters instead of using int parameters. Expect FN to accept | |
2869 | EMACS_INT parameters. | |
2870 | (display_echo_area, resize_echo_area_axactly, current_message) | |
2871 | (truncate_echo_area, set_message_1): Call with_echo_area_buffer | |
2872 | with new argument list. | |
2873 | (resize_mini_window_1): New callback function. | |
2874 | (current_message_1, truncate_message_1, set_message_1): Change | |
2875 | parameter lists to the new format expected by | |
2876 | with_echo_area_buffer. | |
2877 | ||
25c1a9ce KH |
2878 | 2000-07-24 Kenichi Handa <handa@etl.go.jp> |
2879 | ||
2880 | * fontset.c (fontset_ref): Remove INLINE declaration. | |
2881 | (fontset_ref_via_base): Likewise. | |
2882 | (Fset_fontset_font): Convert FAMILY and REGISTRY specifications | |
2883 | to downcase. | |
2884 | ||
7f987ac0 EZ |
2885 | 2000-07-23 Eli Zaretskii <eliz@is.elta.co.il> |
2886 | ||
2887 | * msdos.c (IT_note_mouse_highlight): Process overlays in the | |
2888 | correct order of priority. If help echo was found in an overlay, | |
2889 | use that overlay as the object in which the help echo was found. | |
2890 | ||
e2db3069 MB |
2891 | 2000-07-22 Miles Bader <miles@gnu.org> |
2892 | ||
2893 | * textprop.c (Fprevious_single_char_property_change): The initial | |
2894 | property value should be from the position preceding POSITION, not | |
2895 | following it. | |
2896 | ||
5e3203e4 EZ |
2897 | 2000-07-22 Eli Zaretskii <eliz@is.elta.co.il> |
2898 | ||
2899 | * coding.c (syms_of_coding): Doc fix for | |
2900 | inhibit-iso-escape-detection. | |
2901 | ||
62145073 GM |
2902 | 2000-07-21 Gerd Moellmann <gerd@gnu.org> |
2903 | ||
c20aeb83 GM |
2904 | * xterm.c (note_mouse_highlight): Process overlays in the right |
2905 | order of priority. | |
34a7a267 | 2906 | |
743934db GM |
2907 | * keyboard.c (show_help_echo, gen_help_event): Extend comments. |
2908 | ||
2909 | * xterm.c (note_mouse_highlight): If help-echo was found in an | |
2910 | overlay, use that overlay as the object in which the help was | |
2911 | found. | |
2912 | ||
d1dc7e43 | 2913 | * window.c (foreach_window_1): Fix typo reversing an if-condition. |
34a7a267 | 2914 | |
62145073 GM |
2915 | * window.c (foreach_window): Instead of a fake variable argument |
2916 | list, take one USER_DATA argument. | |
2917 | (foreach_window_1): Likewise, and call callback functions with two | |
2918 | args, the window and USER_DATA. | |
2919 | (struct check_window_data): New struct. | |
2920 | (check_window_containing): Use it. | |
2921 | (window_from_coordinates): Set up a struct check_window_data for | |
2922 | foreach_window. | |
2923 | (add_window_to_list, freeze_window_start): Change parameters | |
2924 | according to new calling convention. | |
2925 | ||
2926 | * window.h (foreach_window): Change prototype. | |
2927 | ||
2928 | * buffer.c (Fprevious_overlay_change): Avoid memory leak. | |
2929 | ||
2930 | 2000-07-21 Eli Zaretskii <eliz@is.elta.co.il> | |
2931 | ||
2932 | * xmenu.c (menu_help_callback): Call show_help_echo with | |
2933 | additional arguments OBJECT and POS. | |
2934 | ||
11270583 KH |
2935 | 2000-07-21 Kenichi Handa <handa@etl.go.jp> |
2936 | ||
07b14857 KH |
2937 | * data.c (Faset): Allow storing any multibyte character in a |
2938 | string. Convert unibyte string to multibyte if necessary. | |
2939 | ||
11270583 KH |
2940 | * xfns.c (x_encode_text): New function. |
2941 | (x_set_name): Use x_encode_text. | |
2942 | (x_set_title): Likewise. | |
2943 | ||
2944 | * xselect.c (lisp_data_to_selection_data): Use x_encode_text. | |
2945 | ||
2946 | * xterm.h (x_encode_text): Add prototype. | |
2947 | ||
bc75b4fd DL |
2948 | 2000-07-20 Dave Love <fx@gnu.org> |
2949 | ||
2950 | * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use | |
2951 | xfree, not free. | |
2952 | ||
48c14970 EZ |
2953 | 2000-07-20 Eli Zaretskii <eliz@is.elta.co.il> |
2954 | ||
2955 | * msdos.c (help_echo_window): New variable. | |
2956 | (syms_of_msdos): Initialize and staticpro it. | |
2957 | (IT_note_mode_line_highlight): Set help_echo_window. | |
2958 | (IT_note_mouse_highlight): Ditto. | |
2959 | (dos_rawgetc): Store help_echo_window in the second event produced | |
2960 | for HELP_EVENTs. | |
2961 | ||
2962 | * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight): | |
2963 | Record the object that generated the help echo and the position of | |
2964 | that object in help_echo_object and help_echo_pos. Record that | |
2965 | some glyphs in a row are displayed in mouse-face. | |
2966 | (IT_update_begin): Don't clear mouse highlight unless one of the | |
2967 | enabled glyph rows is marked as being displayed in mouse-face. | |
2968 | (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object | |
2969 | and position recorded in help_echo_object and help_echo_pos to the | |
2970 | event queue. | |
2971 | (IT_menu_display): Accept a new argument PN: the pane number of | |
2972 | the current menu pane. Record the pane number and the item | |
2973 | number of the item which has associated help string. | |
2974 | (XMenuActivate): Update the prototype for help_callback in | |
2975 | function declaration. Call IT_menu_display with the current menu | |
2976 | pane number as an additional argument. Call help_callback with | |
2977 | two additional arguments: the pane number and the item number of | |
2978 | the menu item associated with the help text. | |
2979 | (help_echo_object, help_echo_pos): New variables. | |
2980 | (syms_of_msdos): Initialize them and staticpro help_echo_object. | |
2981 | ||
2982 | * msdos.h (XMenuActivate): Update prototype. | |
2983 | ||
4279296d GM |
2984 | 2000-07-19 Gerd Moellmann <gerd@gnu.org> |
2985 | ||
47db06aa GM |
2986 | * xdisp.c (with_echo_area_buffer): Call FN with more arguments. |
2987 | Add some more prototypes. | |
2988 | ||
2989 | * xterm.c, xterm.h: Add some more prototypes. | |
2990 | ||
2991 | * lisp.h (Fnext_single_char_property_change): Add prototype. | |
2992 | ||
2993 | * dispnew.c (direct_output_for_insert): Remove confusing | |
2994 | outer local variable mouse_face_overwritten_p. | |
2995 | (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG. | |
2996 | ||
4279296d GM |
2997 | * alloc.c (allocate_string_data): Don't copy old string contents. |
2998 | ||
670acd62 KH |
2999 | 2000-07-19 Kenichi Handa <handa@etl.go.jp> |
3000 | ||
3001 | * coding.c (code_convert_region): Delete text properties before | |
3002 | shrinking the conversion region. | |
3003 | ||
7cea38bc GM |
3004 | 2000-07-18 Gerd Moellmann <gerd@gnu.org> |
3005 | ||
dc1cac59 GM |
3006 | * dispnew.c (update_text_area): Write the whole row if it |
3007 | has mouse-face in it. | |
3008 | ||
85a8aca9 GM |
3009 | * xfaces.c (face-alternative-font-family-alist): Remove |
3010 | DEFVAR_LISP; staticpro instead. | |
3011 | ||
34a7a267 | 3012 | * xmenu.c (menu_help_callback): Call show_help_echo with |
7cea38bc GM |
3013 | new arguments. |
3014 | ||
3015 | * keyboard.c (show_help_echo): Add parameter WINDOW. | |
3016 | (read_char): Call show_help_echo with window extracted from Lisp | |
3017 | help event. | |
3018 | (gen_help_event): Add parameter WINDOW. | |
3019 | ||
3020 | * keyboard.h (show_help_echo, gen_help_event): Change prototypes. | |
3021 | ||
3022 | * xterm.c (help_echo_window): New variable. | |
3023 | (note_mouse_highlight, note_tool_bar_highlight): Set | |
3024 | help_echo_window. | |
3025 | (XTread_socket): Pass help_echo_window to gen_help_event. | |
3026 | (syms_of_xterm): Initialize and staticpro help_echo_window. | |
3027 | ||
f8276b77 DL |
3028 | 2000-07-18 Dave Love <fx@gnu.org> |
3029 | ||
3030 | * Makefile.in: Fix dependencies of blockinput.h on atimer.h, | |
3031 | systime.h. | |
3032 | ||
088831a6 GM |
3033 | 2000-07-18 Gerd Moellmann <gerd@gnu.org> |
3034 | ||
3d6cd763 GM |
3035 | * alloc.c (allocate_string_data): If string had already data |
3036 | assigned, copy old contents to new string data. | |
3037 | ||
3038 | * coding.c (syms_of_coding): Fix typo in spelling of variable | |
3039 | `inhibit-iso-escape-detection'. | |
3040 | ||
088831a6 GM |
3041 | * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE. |
3042 | ||
3043 | * Makefile.in: Add dependencies on dispextern.h. | |
3044 | (alloca.o): Don't define malloc and define EMACS_FREE instead of | |
3045 | `free'; both can conflict with system header files. | |
3046 | ||
bc8a8d55 KH |
3047 | 2000-07-18 Kenichi Handa <handa@etl.go.jp> |
3048 | ||
3049 | * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is | |
3050 | undefined. | |
3051 | ||
069f5950 DL |
3052 | 2000-07-18 Dave Love <fx@gnu.org> |
3053 | ||
3054 | * window.c (Fwindow_list): Declare arg `window'. | |
3055 | ||
aa96c820 KH |
3056 | 2000-07-18 Kenichi Handa <handa@etl.go.jp> |
3057 | ||
3058 | * coding.c (setup_coding_system): Don't override the explicitly | |
3059 | specified designations. | |
3060 | ||
06be8d32 MB |
3061 | 2000-07-15 Miles Bader <miles@gnu.org> |
3062 | ||
3063 | * editfns.c (char_property_eq, char_property_stickiness): Renamed | |
3064 | from `text_property_eq' and `text_property_stickiness', respectively. | |
3065 | (find_field, Fconstrain_to_field, char_property_eq) | |
3066 | (char_property_stickiness): Changed to call char-property functions | |
3067 | instead of text-property-only ones. | |
3068 | ||
3069 | * textprop.c (Fnext_single_char_property_change): Made a subr (was | |
3070 | `next_single_char_property_change'). Do more error checking, and | |
3071 | cleanup limit behavior. | |
3072 | (Fprevious_single_char_property_change): New function. | |
3073 | (syms_of_textprop): Initialize new subrs. | |
3074 | ||
3075 | * xdisp.c (display_prop_end, invisible_text_between_p): | |
3076 | Call Fnext_single_char_property_change instead of | |
3077 | next_single_char_property_change. | |
3078 | ||
3fddcdc3 JR |
3079 | 2000-07-15 Jason Rumney <jasonr@gnu.org> |
3080 | ||
3081 | * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree | |
3082 | after menu is finished with. | |
3083 | (add_menu_item): Only consider wv->title as a menu title. | |
3084 | (w32_menu_display_help): Add OBJECT and POS to show_help_echo. | |
3085 | ||
3086 | * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a | |
3087 | null title. | |
3088 | (FONT_REGEXP): Remove unused macro, and its sub-components. | |
3089 | (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts. | |
3090 | ||
3091 | * w32term.c (help_echo_object, help_echo_pos): New variables. | |
3092 | (note_mode_line_highlight): Store additional information about the | |
3093 | help-echo in help_echo_object and help_echo_pos. Check both | |
3094 | `local-map' and `keymap' properties for changing the cursor | |
3095 | (note_mouse_highlight): Store additional information about the | |
3096 | help-echo in help_echo_object and help_echo_pos. | |
3097 | (note_tool_bar_highlight): Set help_echo_object to nil and | |
3098 | help_echo_pos to -1. | |
3099 | (w32_read_socket): Use gen_help_event instead of filling | |
3100 | input_events manually. | |
3101 | (syms_of_w32term): Staticpro help_echo_object. | |
3102 | (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If | |
3103 | set, arrange for a mouse-highlight redisplay in | |
3104 | XTframe_up_to_date. | |
3105 | (x_clear_mouse_face): New function. | |
3106 | (w32_redisplay_interface): Add pointer to x_clear_mouse_face. | |
3107 | (x_update_window_begin): No need to turn off the mouse | |
3108 | highlight here. | |
3109 | (show_mouse_face): Set the mouse_face_p flag of glyph rows | |
3110 | depending on whether they contain glyphs highlighted in | |
3111 | mouse-face. | |
3112 | (x_fill_stretch_glyph_string): Consume runs of stretch | |
3113 | glyphs instead of a single one. | |
3114 | (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string | |
3115 | with new argument list. | |
3116 | (x_set_glyph_string_gc): Make sure the face's GC is valid. | |
3117 | (x_append_glyph, x_append_composite_glyph) | |
3118 | (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to | |
3119 | changes in struct glyph starting 1999-12-27. See comments for | |
3120 | xterm.c on 2000-07-05. | |
3121 | ||
178c5d9c SS |
3122 | 2000-07-14 Sam Steingold <sds@gnu.org> |
3123 | ||
3124 | * xfaces.c (realize_x_face): Fix the last patch: | |
3125 | check `default_face' before dereferencing. | |
3126 | ||
6fe533f6 DL |
3127 | 2000-07-14 Dave Love <fx@gnu.org> |
3128 | ||
069f5950 | 3129 | * syntax.c (back_comment): Add null default in switch (for pcc). |
6fe533f6 | 3130 | |
dd7b81cf KH |
3131 | 2000-07-14 Kenichi Handa <handa@etl.go.jp> |
3132 | ||
0693904a | 3133 | * xfaces.c (realize_x_face): Make fontset using the base of the |
178c5d9c | 3134 | default_face's fontset, not using the default fontset. |
0693904a | 3135 | |
dd7b81cf KH |
3136 | * coding.c (inhibit_iso_escape_detection): New variable. |
3137 | (syms_of_coding): Make it a Lisp variable. | |
3138 | (detect_coding_iso2022): If inhibit_iso_escape_detection is | |
3139 | nonzero, ignore ISO2022's escape sequence. | |
3140 | ||
d5aa31d8 GM |
3141 | 2000-07-14 Gerd Moellmann <gerd@gnu.org> |
3142 | ||
e5acf0ca GM |
3143 | * alloca.c (malloc) [emacs]: Define as xmalloc. |
3144 | ||
bd23a692 GM |
3145 | * xfns.c (Fx_show_tip): If frame parameters contain a position, |
3146 | use that instead of the mouse position. Add parameters DX and DY. | |
3147 | ||
3148 | * dispextern.h (Fx_show_tip): Adjust number of parameters | |
3149 | in prototype. | |
3150 | ||
9662da0b GM |
3151 | * keyboard.c (show_help_echo): Add parameters OBJECT and POS. |
3152 | if HELP is a function, call it with OBJECT and POS as parameters | |
3153 | to get the help to display. | |
3154 | (gen_help_event, kbd_buffer_store_help_event): New functions. | |
3155 | (kbd_buffer_get_event): Construct the Lisp help-event differently. | |
3156 | (read_char): Call show_help_echo with new parameters. | |
3157 | ||
178c5d9c | 3158 | * keyboard.h (gen_help_event, kbd_buffer_store_help_event): |
9662da0b GM |
3159 | Add prototypes. |
3160 | ||
3161 | * xterm.c (help_echo_object, help_echo_pos): New variables. | |
3162 | (note_mode_line_highlight): Store additional information about the | |
3163 | help-echo in help_echo_object and help_echo_pos. Check both | |
3164 | `local-map' and `keymap' properties for changing the cursor | |
3165 | (note_mouse_highlight): Store additional information about the | |
3166 | help-echo in help_echo_object and help_echo_pos. | |
3167 | (note_tool_bar_highlight): Set help_echo_object to nil and | |
3168 | help_echo_pos to -1. | |
3169 | (XTread_socket): Use gen_help_event instead of filling | |
3170 | input_events manually. | |
3171 | (syms_of_xterm): Staticpro help_echo_object. | |
3172 | ||
3173 | * xmenu.c (menu_highlight_callback): Use | |
3174 | kbd_buffer_store_help_event instead of setting up and input_event | |
3175 | structure manually. | |
3176 | ||
3177 | * xdisp.c (eval_form): GCPRO argument sexpr. | |
3178 | (call_function): New function. | |
3179 | (handle_single_display_prop): Use call_function and FUNCTIONP | |
3180 | instead of checking whether if font_height is a symbol and | |
3181 | using eval_form. | |
3182 | ||
3183 | * eval.c (internal_condition_case_2): New function. | |
3184 | ||
3185 | * lisp.h (FUNCTIONP): New macro. | |
3186 | (internal_condition_case_2, call_function): Add prototypes. | |
3187 | ||
d5aa31d8 GM |
3188 | * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event) |
3189 | (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket): | |
3190 | Always set `arg' member of input_events. | |
3191 | (construct_menu_click): Unused function removed. | |
3192 | ||
3193 | * msdos.c (dos_rawgetc): Always set `arg' member of input_events. | |
3194 | ||
3195 | * w32term.c (construct_mouse_click, construct_mouse_wheel) | |
3196 | (construct_drag_n_drop, x_scroll_bar_handle_click) | |
3197 | (w32_read_socket): Always set `arg' member of input_events. | |
3198 | ||
3199 | * keyboard.c (show_help_echo): Use eval_form. Add comment. | |
3200 | ||
3201 | * lisp.h (eval_form): Add prototype. | |
3202 | ||
3203 | * xdisp.c (eval_form): Make it externally visible. | |
3204 | ||
0f1a9b23 GM |
3205 | 2000-07-13 Gerd Moellmann <gerd@gnu.org> |
3206 | ||
3207 | * xterm.c (x_handle_tool_bar_click): Store the frame in the | |
3208 | frame_or_window slot of TOOL_BAR_EVENT input events instead of | |
3209 | consing. For prefix events, store the frame in the `arg' slot of | |
3210 | the event, otherwise store the key there. | |
3211 | (XTread_socket): Instead of consing, use the frame_or_window slot | |
3212 | of HELP_EVENTs for the frame, and the `arg' slot for the help | |
3213 | string. | |
3214 | ||
3215 | * xmenu.c (menu_highlight_callback): Store help string in the | |
3216 | `arg' member of the input event; don't cons. | |
3217 | (menubar_selection_callback): Use the `arg' slot of input events | |
3218 | to queue additional information, instead of consing. | |
3219 | ||
3220 | * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs. | |
3221 | ||
3222 | * w32term.c (w32_handle_tool_bar_click): Adapt to changes in | |
3223 | TOOL_BAR_EVENTs. | |
3224 | (w32_read_socket): Adapt to changes in HELP_EVENTs. | |
3225 | ||
3226 | * w32menu.c (menubar_selection_callback): Use the `arg' slot of | |
3227 | input events to queue additional information, instead of consing. | |
3228 | ||
3229 | * keyboard.c (kbd_buffer_gcpro): Renamed from | |
3230 | kbd_buffer_frame_or_window. Now used for all Lisp objects | |
3231 | referenced from the input queue. | |
3232 | (kbd_buffer_store_event): Always use structure assignment for | |
3233 | copying input events. Record all Lisp objects referenced from | |
3234 | events in kbd_buffer_gcpro. | |
3235 | (kbd_buffer_get_event): Construct Lisp `help-echo' events | |
3236 | differently from input events. Test for prefix menu_bar_events | |
3237 | and TOOL_BAR_EVENTs differently. Reset all slots used by an input | |
3238 | event in kbd_buffer_gcpro to nil. | |
3239 | (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose | |
3240 | frame_or_window is equal to its arg member as prefix events. | |
3241 | (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro | |
3242 | used by an input event to nil. | |
3243 | (init_keyboard): Use two times the size of the input queue | |
3244 | for kbd_buffer_gcpro. | |
3245 | (syms_of_keyboard): Likewise. | |
3246 | ||
3247 | * emacs.c (handle_USR2_signal, handle_USR1_signal): Use | |
3248 | USER_SIGNAL_EVENT. | |
3249 | ||
3250 | * termhooks.h (struct input_event): Add member `arg'. | |
3251 | (MENU_BAR_EVENT): Renamed from menu_bar_event. | |
3252 | (USER_SIGNAL_EVENT): Renamed from user_signal. | |
3253 | ||
3254 | * xfaces.c (ASET): Remove definition. | |
3255 | ||
3256 | * lisp.h (AREF, ASET, ASIZE): New macros. | |
3257 | ||
3258 | * fontset.c (AREF, ASIZE): Remove definitions. | |
3259 | ||
3260 | * fns.c (AREF): Remove definition. | |
178c5d9c | 3261 | |
0f1a9b23 GM |
3262 | * composite.c (AREF): Remove definition. |
3263 | ||
712eaef2 GM |
3264 | 2000-07-12 Gerd Moellmann <gerd@gnu.org> |
3265 | ||
d8ee7803 GM |
3266 | * dispnew.c (redraw_overlapped_rows): Add missing local. |
3267 | (scrolling_window): Remove debug code. | |
3268 | ||
712eaef2 GM |
3269 | * xdisp.c (try_window_reusing_current_matrix, try_window_id): |
3270 | Before scrolling, turn off a mouse-highlight in the window | |
3271 | being scrolled. | |
3272 | ||
3273 | * xterm.c (x_update_window_end): Add parameter | |
3274 | MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight | |
3275 | redisplay in XTframe_up_to_date. | |
3276 | (x_clear_mouse_face): New function. | |
3277 | (x_redisplay_interface): Add pointer to x_clear_mouse_face. | |
3278 | ||
3279 | * dispnew.c (make_current): Preserve the mouse_face_p flag of the | |
3280 | current glyph row. | |
3281 | (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set | |
3282 | it when any row is written to that contains glyphs highlighted in | |
3283 | mouse-face. | |
3284 | (update_window): Call the window update end hook with new | |
3285 | parameter MOUSE_FACE_OVERWRITTEN_P. | |
3286 | (direct_output_for_insert): Give up if row contains mouse-face. | |
3287 | ||
3288 | * dispextern.h (struct redisplay_interface): Add parameter | |
3289 | MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function. | |
3290 | (clear_mouse_face): New function pointer member. | |
3291 | ||
02010917 SM |
3292 | 2000-07-11 Stefan Monnier <monnier@cs.yale.edu> |
3293 | ||
3294 | * syntax.c (back_comment): Use one switch rather than a few `if's. | |
3295 | Obey open_paren_in_column_0_is_defun_start. | |
3296 | When reverting to the `slow' method, try to nicely handle the case | |
3297 | of nested comments by checking that the comment-starter we found | |
3298 | does indeed match the comment-ender. | |
3299 | (scan_sexps_forward, scan_sexps_forward): | |
3300 | Ignore excessive opening parenthesis rather than throwing an error. | |
3301 | ||
d76c03ea GM |
3302 | 2000-07-11 Gerd Moellmann <gerd@gnu.org> |
3303 | ||
3304 | * doc.c (Fsubstitute_command_keys): Handle case that a GC | |
3305 | in Fwhere_is_internal or get_keymap_1 relocates string contents. | |
3306 | ||
3307 | * dispnew.c (direct_output_forward_char): Give up if currently | |
3308 | displaying a message instead of the minibuffer contents. | |
3309 | ||
3310 | * xterm.c (x_update_window_begin): No need to turn off the mouse | |
3311 | highlight here. | |
3312 | (show_mouse_face): Set the mouse_face_p flag of glyph rows | |
3313 | depending on whether they contain glyphs highlighted in | |
3314 | mouse-face. | |
3315 | ||
3316 | * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set, | |
3317 | compare the mouse_face_p flags of both rows. | |
3318 | ||
3319 | * dispextern.h (struct glyph_row): Add flag mouse_face_p. | |
3320 | ||
d55ead18 EZ |
3321 | 2000-07-11 Eli Zaretskii <eliz@is.elta.co.il> |
3322 | ||
3323 | * keyboard.c (show_help_echo): Accept additional parameter | |
3324 | ok_to_overwrite_keystroke_echo. | |
3325 | (read_char): Call show_help_echo with a zero | |
3326 | ok_to_overwrite_keystroke_echo argument. | |
3327 | * keyboard.h (show_help_echo): Update prototype of | |
3328 | show_help_echo. | |
3329 | * xmenu.c (menu_help_callback): Call show_help_echo with non-zero | |
3330 | ok_to_overwrite_keystroke_echo argument. | |
3331 | * w32menu.c (w32_menu_display_help): Call show_help_echo with | |
3332 | non-zero ok_to_overwrite_keystroke_echo argument. | |
3333 | ||
df75b1a3 GM |
3334 | 2000-07-10 Gerd Moellmann <gerd@gnu.org> |
3335 | ||
4b92c49a GM |
3336 | * xdisp.c (try_window_id): If changes are all below what is |
3337 | displayed in the window, and point is in the window, we still | |
3338 | might have to find point on the display. | |
3339 | ||
3340 | * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch | |
3341 | glyphs instead of a single one. | |
3342 | (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string | |
3343 | with new argument list. | |
3344 | (x_set_glyph_string_gc): Make sure the face's GC is valid. | |
3345 | ||
df75b1a3 GM |
3346 | * keymap.c (get_keymap_1): Add comment that this function can GC. |
3347 | (where_is_internal_2, where_is_internal_1): Add GCPROs, add | |
3348 | comment that functions can GC. | |
3349 | (Fset_keymap_parent): GCPRO arg KEYMAP. | |
3350 | ||
4314cf3e EZ |
3351 | 2000-07-10 Eli Zaretskii <eliz@is.elta.co.il> |
3352 | ||
3353 | * msdos.c (XMenuActivate): After exiting the menu, restore the | |
3354 | echo area message and erase it. | |
3355 | ||
ab49ce15 KH |
3356 | 2000-07-10 Kenichi Handa <handa@etl.go.jp> |
3357 | ||
3358 | * fontset.c (Ffontset_info): Make the return value more compatible | |
3359 | with that of Emacs 20. | |
3360 | ||
090a072f GM |
3361 | 2000-07-07 Gerd Moellmann <gerd@gnu.org> |
3362 | ||
3363 | * eval.c (Fsignal): Handle case that backtrace_list is null. | |
3364 | ||
f92de4a6 KH |
3365 | 2000-07-07 Kenichi Handa <handa@etl.go.jp> |
3366 | ||
3367 | * ccl.c (Fccl_execute): Typo fixed. | |
3368 | ||
dd8888a1 GM |
3369 | 2000-07-06 Gerd Moellmann <gerd@gnu.org> |
3370 | ||
e5c81191 | 3371 | * window.c (window_loop): Add missing gcpro1 local variable. |
178c5d9c | 3372 | |
dd8888a1 GM |
3373 | * window.c (Fwindow_list): Reverse list at the end. |
3374 | (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil | |
3375 | means allow windows on OWINDOW's frame, only. | |
3376 | (window_loop): Simplified; use Fwindow_list. | |
3377 | ||
3378 | * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make. | |
3379 | ||
485266d0 GM |
3380 | 2000-07-05 Gerd Moellmann <gerd@gnu.org> |
3381 | ||
3382 | * xterm.c (XTread_socket): Increment handling_signal at the start, | |
3383 | decrement it at the end. | |
3384 | ||
3385 | * eval.c (handling_signal): New variable. | |
3386 | (Fsignal): Abort if handling_signal is non-zero. | |
3387 | ||
3388 | * lisp.h (handling_signal): External declaration. | |
178c5d9c | 3389 | |
485266d0 GM |
3390 | * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0. |
3391 | ||
80fcd514 KR |
3392 | 2000-07-05 Ken Raeburn <raeburn@gnu.org> |
3393 | ||
3394 | Sound support for NetBSD through "Linux emulation" support: | |
3395 | * config.in (HAVE_SOUNDCARD_H): Undef. | |
3396 | (HAVE_SOUND): Define if HAVE_SOUNDCARD_H. | |
3397 | * Makefile.in (LIBSOUND): New variable. | |
3398 | (LIBES): Include it. | |
3399 | * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and | |
3400 | <soundcard.h>. | |
3401 | (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined | |
3402 | elsewhere. | |
3403 | (vox_open): Use DEFAULT_SOUND_DEVICE. | |
3404 | * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio. | |
3405 | ||
d5c5cddd GM |
3406 | 2000-07-05 Gerd Moellmann <gerd@gnu.org> |
3407 | ||
3408 | * print.c (print_error_message): If Vsignaling_function is set, | |
3409 | show it in *Messages*. | |
3410 | ||
3411 | * lisp.h (Vsignaling_function): External declaration. | |
3412 | ||
3413 | * eval.c (Vsignaling_function): New variable. | |
3414 | (Fsignal): Compute it. | |
3415 | (syms_of_eval): Staticpro it. | |
3416 | ||
65171e3a DL |
3417 | 2000-07-05 Dave Love <fx@gnu.org> |
3418 | ||
3419 | * syswait.h: Use the autoconf recommended approach. Old code | |
3420 | #if'd out in case we need to revert. | |
3421 | ||
178c5d9c | 3422 | * config.in (HAVE_SYS_WAIT_H): Added. |
65171e3a | 3423 | |
e2c46326 AI |
3424 | 2000-07-05 Andrew Innes <andrewi@gnu.org> |
3425 | ||
3426 | * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore | |
3427 | when non-NULL instead of __morecore, to take account of buffer | |
3428 | memory. This also solves a problem with spurious memory warnings | |
3429 | on Windows. | |
3430 | ||
3431 | * ralloc.c: Make real_morecore non-static. | |
3432 | ||
3433 | * eval.c (internal_condition_case): Comment out abort if | |
3434 | interrupt_input_blocked is not zero. | |
3435 | ||
3436 | * makefile.nt: Add support for `bootstrap' and related targets. | |
3437 | Include minimal debug info in emacs.exe in release build. | |
3438 | Remove all dependencies on lisp.h, and fixup some others. | |
3439 | ||
3440 | * w32.c (init_environment): Install code from 20.7 for providing | |
3441 | default values for environment variables, based on the | |
3442 | executable's own location. | |
3443 | (map_w32_filename): Handle filenames that are longer than | |
3444 | MAX_PATH. | |
3445 | (sys_socket): Install socket inheritance bug fix from 20.7. | |
3446 | ||
3447 | * alloca.c [emacs]: Include lisp.h (needed by atimer.h included | |
3448 | here via blockinput.h). | |
3449 | ||
a027a91b SM |
3450 | 2000-07-05 Stefan Monnier <monnier@cs.yale.edu> |
3451 | ||
e4b31601 SM |
3452 | * w32menu.c (w32_menu_display_help): |
3453 | * xmenu.c (menu_help_callback): Use show_help_echo. | |
a027a91b SM |
3454 | |
3455 | * keyboard.h (show_help_echo): Declare. | |
3456 | ||
3457 | * keyboard.c (show_help_echo): New function, extracted from read_char. | |
3458 | Feval its `msg' argument if it's a cons cell. | |
3459 | (read_char): Use it. | |
4cf8d9d5 | 3460 | (follow_key): Pass `autoload' to get_keyelt. |
a027a91b | 3461 | |
178c5d9c | 3462 | * xterm.c (note_mode_line_highlight, note_mouse_highlight) |
a027a91b | 3463 | (note_tool_bar_highlight, XTread_socket): |
178c5d9c | 3464 | * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight) |
a027a91b SM |
3465 | (dos_rawgetc): |
3466 | * w32term.c (note_mode_line_highlight, note_mouse_highlight) | |
3467 | (note_tool_bar_highlight, w32_read_socket): | |
3468 | Do not gratuitously ignore non-string `help-echo' properties. | |
3469 | ||
88d75730 GM |
3470 | 2000-07-05 Gerd Moellmann <gerd@gnu.org> |
3471 | ||
969f7e79 GM |
3472 | * eval.c (Feval): Put check for interrupt_input_block in #if 0. |
3473 | ||
71201b00 GM |
3474 | * window.c (delete_all_subwindows): Reset Vwindow_list. |
3475 | ||
88d75730 GM |
3476 | * xterm.c (x_append_glyph, x_append_composite_glyph) |
3477 | (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to | |
3478 | changes in struct glyph starting 1999-12-27. Some bit-fields of | |
3479 | struct glyph were not set, which made glyphs unequal when compared | |
3480 | with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering | |
3481 | effects were the result. This also depended on the contents of | |
3482 | memory returned by xmalloc. If flickering happens again, activate | |
3483 | the code in clear_glyph_row that's in #if 0. If the flickering is | |
3484 | gone with that, chances are that it is caused by something | |
3485 | similar. | |
3486 | ||
3487 | * dispnew.c (clear_glyph_row): Add debug code in #if 0. | |
178c5d9c | 3488 | |
88d75730 GM |
3489 | * dispextern.h: Add some comments. |
3490 | ||
3491 | * window.c (add_window_to_list): Add parameter LIST. | |
3492 | (window_list): Order list so that, for each frame, windows are | |
3493 | in canonical order, and so that frames appear in the list in | |
3494 | the order given by Vframe_list. | |
3495 | (next_window): Reverse the handling of NEXT_P. | |
3496 | ||
53654733 GM |
3497 | 2000-07-04 Gerd Moellmann <gerd@gnu.org> |
3498 | ||
87efd256 GM |
3499 | * window.c (Vwindow_list): New variable. |
3500 | (make_window, delete_window): Set Vwindow_list to nil. | |
3501 | (check_window_containing): New function. | |
3502 | (window_from_coordinates): Rewritten. | |
3503 | (add_window_to_list, window_list, candidate_window_p) | |
3504 | (decode_next_window_args, next_window): New functions. | |
3505 | (Fnext_window, Fprevious_window): Rewritten in terms of | |
3506 | next_window. | |
3507 | (Fwindow_list): New function. | |
3508 | (Fother_window): Cleaned up. | |
3509 | (foreach_window): Add a longer "variable argument list". Let | |
3510 | callback function return 0 to indicate that cycling over windows | |
3511 | should stop. | |
3512 | (foreach_window_1): Likewise. | |
3513 | (freeze_window_start): Return int. | |
3514 | (init_window): New function. | |
3515 | (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list. | |
3516 | ||
3517 | * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear | |
3518 | input_event with bzero. | |
3519 | (main): Call init_window. | |
3520 | ||
53654733 GM |
3521 | * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating |
3522 | a menu filter. | |
3523 | ||
4a8c194f KH |
3524 | 2000-07-04 Kenichi Handa <handa@etl.go.jp> |
3525 | ||
3526 | * composite.h (make_composition_value_copy): Extern it. | |
3527 | ||
3528 | * composite.c (make_composition_value_copy): New function. | |
3529 | ||
3530 | * editfns.c (Fformat): While copying text properties, make each | |
3531 | composition property value a copy. | |
3532 | ||
3533 | * fns.c (concat): While copying text properties, make each | |
3534 | composition property value a copy. | |
3535 | ||
831a6cb0 GM |
3536 | 2000-07-03 Gerd Moellmann <gerd@gnu.org> |
3537 | ||
2f516940 GM |
3538 | * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define. |
3539 | ||
178c5d9c | 3540 | * fns.c (sweep_weak_table): Mark only objects that are not |
aee625fa GM |
3541 | marked already. |
3542 | ||
831a6cb0 GM |
3543 | * frame.c (next_frame, prev_frame): If MINIBUF is a window, |
3544 | include those frames as candidates which have their focus | |
3545 | redirected to the minibuffer frame. | |
3546 | ||
d9c4f922 SM |
3547 | 2000-07-03 Stefan Monnier <monnier@cs.yale.edu> |
3548 | ||
3549 | * fns.c (Fputhash): Return `value' rather than nil. | |
3550 | ||
3780bc22 GM |
3551 | 2000-06-30 Gerd Moellmann <gerd@gnu.org> |
3552 | ||
97d176db GM |
3553 | * frame.c (next_frame): Don't check focus redirection in case |
3554 | MINIBUF is a window. Doing so excludes frames using MINIBUF | |
3780bc22 GM |
3555 | unless their focus is redirected, which contradicts the |
3556 | specification of next-frame, and leads to infinite loops in | |
3557 | certain situations when cycling through windows with next-window. | |
3558 | ||
dca9961d KH |
3559 | 2000-06-30 Kenichi Handa <handa@etl.go.jp> |
3560 | ||
3561 | * coding.c (code_convert_region): Even if the length of text is | |
3562 | zero, try to convert it if coding->type is coding_type_ccl. | |
3563 | (decode_coding_string, encode_coding_string): Likewise. | |
3564 | ||
d5483ab1 GM |
3565 | 2000-06-28 Gerd Moellmann <gerd@gnu.org> |
3566 | ||
af5c25e1 | 3567 | * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse |
97d176db | 3568 | the display if windows_or_buffers_changed. |
af5c25e1 GM |
3569 | |
3570 | * dispnew.c (struct row_entry): New structure. | |
3571 | (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table) | |
3572 | (row_table_size, old_lines, new_lines, old_lines_size) | |
3573 | (new_lines_size, run_pool, runs_size, runs): New variables. | |
3574 | (add_row_entry): New function. | |
3575 | (scrolling_window): Use data structures allocated with xmalloc and | |
97d176db | 3576 | held in global variables, instead of allocating them with alloca and |
af5c25e1 GM |
3577 | holding them in local variables. Use a larger hash table whose |
3578 | size depends on glyph matrix sizes. Don't use bzero to clear the | |
3579 | hash table; instead, clear used slots only. | |
3580 | ||
3581 | * fns.c (next_almost_prime): Make it externally visible. | |
3582 | ||
3583 | * lisp.h (next_almost_prime): Add prototype. | |
3584 | ||
d5483ab1 GM |
3585 | * s/isc4-0.h (sigunblock): Define. |
3586 | ||
3587 | * s/sco5.h (sigunblock): Define. | |
3588 | ||
93e40f40 DL |
3589 | 2000-06-27 Dave Love <fx@gnu.org> |
3590 | ||
3591 | * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change | |
3592 | (moved to osf5-0.h). | |
3593 | [!NOT_C_CODE]: Protect string.h stuff. | |
3594 | ||
3595 | * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED) | |
3596 | (sys_siglist, NSIG): Definitions moved here from osf1.h. | |
3597 | ||
3c4b7685 GM |
3598 | 2000-06-27 Gerd Moellmann <gerd@gnu.org> |
3599 | ||
97d176db | 3600 | * xdisp.c (resize_mini_window): Subtract the extra line spacing |
3c4b7685 GM |
3601 | below the last line from the needed window height. |
3602 | ||
32cad0aa SM |
3603 | 2000-06-26 Stefan Monnier <monnier@cs.yale.edu> |
3604 | ||
3605 | * fns.c (Fplist_member): Renamed from Fwidget_plist_member. | |
3606 | (Fwidget_get): Use it. | |
3607 | (syms_of_fns): Defsubr it. | |
3608 | ||
2c69ced2 GM |
3609 | 2000-06-26 Gerd Moellmann <gerd@gnu.org> |
3610 | ||
178c5d9c | 3611 | * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the |
1d36487c GM |
3612 | display info for XIM. |
3613 | (xim_open_dpy): Likewise. | |
3614 | (xim_close_dpy): Don't free the display info's XIM. | |
3615 | ||
3616 | * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic. | |
3617 | ||
3618 | * config.in (USE_XIM): New define. | |
3619 | ||
3fc720e4 GM |
3620 | * keymap.c (get_keyelt): For menu-items containing a `:filter |
3621 | FILTER', apply FILTER to the menu-item's definition to get the | |
3622 | real definition to use. | |
3623 | ||
3624 | * lisp.h (QCfilter): External declaration. | |
3625 | ||
2c69ced2 GM |
3626 | * xfns.c (Fimage_size): New function. |
3627 | (syms_of_xfns): Defsubr it. | |
3628 | ||
f978b2a2 AS |
3629 | 2000-06-26 Andreas Schwab <schwab@suse.de> |
3630 | ||
3631 | * coding.c (decode_coding_string): Re-fetch STRING_BYTES after | |
3632 | Fstring_as_unibyte. | |
3633 | ||
94cc7892 DL |
3634 | 2000-06-25 Dave Love <fx@gnu.org> |
3635 | ||
3636 | * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, | |
3637 | tgetnum. | |
3638 | ||
3639 | * Makefile.in (blockinput.h): Depend on atimer.h. | |
3640 | (atimer.h): Depend on systime.h. | |
3641 | ||
3642 | * blockinput.h: Protect against multiple inclusion. Include | |
3643 | atimer.h. | |
3644 | ||
3645 | * atimer.h: Protect against multiple inclusion. Include | |
3646 | systime.h. | |
3647 | ||
3648 | * lisp.h (swap_in_global_binding): Declare. | |
3649 | ||
b8c24556 KR |
3650 | 2000-06-24 Ken Raeburn <raeburn@gnu.org> |
3651 | ||
3652 | * process.c (Fopen_network_stream): Turn off atimers for duration | |
3653 | of call to connect. (Patch from Gerd.) | |
3654 | ||
8cf8560b DL |
3655 | 2000-06-23 Dave Love <fx@gnu.org> |
3656 | ||
511c7541 DL |
3657 | * ralloc.c: Maybe include unistd.h |
3658 | ||
8cf8560b DL |
3659 | * emacs.c (setgrp): Undefine before defining. |
3660 | (malloc_warning, set_time_zone_rule, index): Prototype. | |
3661 | ||
3662 | * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use | |
3663 | HAVE_STRUCT_TIMEZONE. | |
3664 | ||
3665 | * s/osf1.h: Move string.h hack here from alpha.h and make it | |
3666 | conditional. | |
3667 | (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with | |
3668 | _XOPEN_SOURCE. | |
3669 | (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define. | |
3670 | (SOCKLEN_TYPE): Don't define. | |
3671 | ||
3672 | * m/alpha.h: Remove string.h hack. | |
3673 | ||
3674 | * s/osf5-0.h: New file. | |
3675 | ||
3676 | * filelock.c: Use feature tests for fcntl.h, string.h. Don't | |
3677 | include time.h, done by systime.h. | |
3678 | [__FreeBSD__]: Remove redundant includes. | |
3679 | ||
3fc720e4 | 3680 | * callproc.c (setpgrp): Undefine before defining. |
8cf8560b DL |
3681 | (delete_temp_file): Return Qnil to avoid warning. |
3682 | ||
3683 | * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add. | |
3684 | ||
3685 | * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not | |
3686 | HAVE_X_WINDOWS. | |
3687 | ||
3688 | * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset. | |
3689 | ||
3690 | * composite.h (compose_text): Declare. | |
3691 | ||
3692 | * xterm.c: Don't include sys/types.h unconditionally. Don't | |
3693 | protect its inclusion with !USG (following xmenu.c). | |
3694 | ||
ea055732 GM |
3695 | 2000-06-23 Gerd Moellmann <gerd@gnu.org> |
3696 | ||
3697 | * xfns.c (x_create_tip_frame): Initialize frame's colors like | |
3698 | in x_create_frame. | |
3699 | ||
74b01b80 EZ |
3700 | 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il> |
3701 | ||
3702 | * coding.c (decode_eol_post_ccl): Special handling for undecided | |
3703 | and inconsistent EOL types. | |
3704 | ||
64f3a166 GM |
3705 | 2000-06-22 Gerd Moellmann <gerd@gnu.org> |
3706 | ||
16cf31f7 GM |
3707 | * xrdb.c (x_load_resources): Add default resource for scroll bar's |
3708 | trough color and main window's background color. | |
3709 | ||
178c5d9c | 3710 | * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events |
16cf31f7 GM |
3711 | differently. |
3712 | ||
3713 | * xterm.h (Xt_app_con): External declaration. | |
3714 | ||
3715 | * widget.c (EmacsFrameRealize): Fix typo. | |
178c5d9c | 3716 | |
486a103d GM |
3717 | * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask. |
3718 | ||
64f3a166 GM |
3719 | * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero. |
3720 | (handle_invisible_prop): Record the start of invisible text in | |
3721 | it->add_overlay_start. | |
3722 | (struct overlay_entry): Add member `overlay'. | |
3723 | (handle_overlay_change): Simplify. | |
3724 | (next_overlay_string): After having processed overlay strings at the | |
3725 | end of the buffer, record that fact in | |
3726 | it->overlay_strings_at_end_processed_p. | |
3727 | (compare_overlay_entries): If before- and after-strings come | |
3728 | from the same overlay, let before-strings come first. | |
3729 | (RECORD_OVERLAY_STRING): Record the overlay that strings come from. | |
3730 | (load_overlay_strings): Take it->add_overlay_start into account | |
3731 | when adding overlay strings. | |
3732 | ||
3733 | * dispextern.h (struct it): Add member add_overlay_start. | |
3734 | ||
bb746ea6 DL |
3735 | 2000-06-22 Dave Love <fx@gnu.org> |
3736 | ||
3737 | * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500. | |
3738 | ||
3739 | * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here. | |
3740 | ||
a8f573f3 KH |
3741 | 2000-06-22 Kenichi Handa <handa@etl.go.jp> |
3742 | ||
3743 | * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it | |
3744 | is greater than 0. | |
3745 | ||
9f2bbc92 DL |
3746 | 2000-06-21 Dave Love <fx@gnu.org> |
3747 | ||
178c5d9c | 3748 | * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it. |
9f2bbc92 | 3749 | |
3ee5041c SM |
3750 | 2000-06-21 Stefan Monnier <monnier@cs.yale.edu> |
3751 | ||
3752 | * syntax.c (back_comment): Simplify string-parity counting (with | |
3753 | the added benefit of handling multiple string-styles as long as | |
3754 | they are not intertwined). | |
3755 | Jump to the slow code as soon as a comment starter is found in | |
3756 | a "string_lossage" position. Fixes the case: " /* " /* " */. | |
3757 | ||
4c343001 DL |
3758 | 2000-06-21 Dave Love <fx@gnu.org> |
3759 | ||
3760 | * Makefile.in: Use GETLOADAVG_LIBS. | |
3761 | ||
3762 | * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS, | |
3763 | _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE. | |
3764 | ||
e6365855 SM |
3765 | 2000-06-20 Stefan Monnier <monnier@cs.yale.edu> |
3766 | ||
3767 | * syntax.c (describe_syntax): Recognize the `n'estable bit. | |
3768 | (Fforward_comment, scan_lists): | |
3769 | Check the comstyle of single-char comment-starters. | |
3770 | (scan_sexps_forward): Don't try to recognize `half comment-enders' if | |
3771 | we're just at the beginning of the comment (f.ex with (*) ... (*)). | |
d355bd8a SM |
3772 | Check the comstyle of single-char comment-starters. |
3773 | Clarify control-flow around the Scomment case. | |
e6365855 | 3774 | |
5700d2cc DL |
3775 | 2000-06-20 Dave Love <fx@gnu.org> |
3776 | ||
d355bd8a SM |
3777 | * fns.c (make_hash_table, maybe_resize_hash_table): |
3778 | Cast arg of next_almost_prime. | |
5700d2cc | 3779 | |
178c5d9c | 3780 | * tparam.c [emacs]: Include lisp.h. |
5700d2cc DL |
3781 | |
3782 | * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h | |
3783 | and unistd.h. | |
3784 | ||
4a27bdfb GM |
3785 | 2000-06-20 Gerd Moellmann <gerd@gnu.org> |
3786 | ||
a61d762c GM |
3787 | * keyboard.c (adjust_point_for_property): Check if display |
3788 | property should be treated as intangible by looking at its | |
3789 | value. | |
3790 | ||
178c5d9c | 3791 | * xdisp.c (single_display_prop_intangible_p) |
a61d762c GM |
3792 | (display_prop_intangible_p): New functions. |
3793 | ||
3794 | * dispextern.h (display_prop_intangible_p): Add prototype. | |
3795 | ||
3796 | * xdisp.c (dump_glyph_row): Show type of glyph->object. | |
178c5d9c | 3797 | |
4a27bdfb GM |
3798 | * s/isc4-0.h (sigblock): Redefined to pass a pointer as second |
3799 | argument to sigprocmask. | |
3800 | ||
3801 | * s/sco5.h (sigblock): Redefined to pass a pointer as second | |
3802 | argument to sigprocmask. | |
3803 | ||
3804 | * syssignal.h (sigblock, sigunblock) [USG5_4]: Set | |
3805 | sigprocmask_set, and pass a pointer to it to sigprocmask. | |
3806 | ||
3807 | * sysdep.c (sigprocmask_set): New variable. | |
3808 | ||
3809 | * fileio.c (make_temp_name): Don't use `%s' in string passed to | |
3810 | report_file_error. | |
3811 | ||
427ec082 SS |
3812 | 2000-06-20 Sam Steingold <sds@gnu.org> |
3813 | ||
3814 | * xrdb.c: Don't declare xmalloc, xrealloc. | |
3815 | ||
8972fe79 | 3816 | 2000-06-20 Stefan Monnier <monnier@cs.yale.edu> |
8972fe79 SM |
3817 | |
3818 | * regex.c (re_match, re_match_2): Protect calls to alloca (0). | |
3819 | (re_comp): Cast gettext return value to avoid complaints when | |
3820 | !HAVE_LIBINTL. | |
3821 | ||
074b6efe DL |
3822 | 2000-06-20 Dave Love <fx@gnu.org> |
3823 | ||
f85c008a DL |
3824 | * m/stride.h, m/mips.h: Don't define HAVE_GETWD, |
3825 | HAVE_GETTIMEOFDAY. | |
3826 | ||
5700d2cc | 3827 | * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK. |
f85c008a | 3828 | |
d355bd8a | 3829 | * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD. |
f85c008a DL |
3830 | |
3831 | * m/alpha.h: Don't declare xmalloc, xrealloc. | |
3832 | ||
0af4f205 DL |
3833 | * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT. |
3834 | ||
3835 | * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE. | |
3836 | ||
3837 | * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY. | |
3838 | ||
3839 | * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare | |
3840 | HAVE_GETWD. | |
3841 | ||
074b6efe DL |
3842 | * keyboard.h (poll_for_input_1): Declare. |
3843 | ||
3844 | * getloadavg.c: Don't define NLIST_STRUCT (handled by configure). | |
3845 | ||
3846 | * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE. | |
3847 | ||
3848 | * doprnt.c: Don't declare xmalloc, xrealloc. | |
3849 | ||
3850 | * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text) | |
3851 | (getenv, ctime, getwd): Removed. | |
3852 | (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE. | |
3853 | ||
3854 | * xterm.h: Remove duplicate prototypes. Declare free_frame_xic, | |
3855 | x_set_tool_bar_lines. | |
3856 | ||
3857 | * config.in: Add HAVE_GETWD. Move some definitions above | |
3858 | machine/system includes. | |
3859 | ||
68a5e97b KH |
3860 | 2000-06-20 Kenichi Handa <handa@etl.go.jp> |
3861 | ||
95417e1e KH |
3862 | * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1. |
3863 | ||
68a5e97b KH |
3864 | * xfaces.c (font_list): Handle the case that REGISTRY doesn't |
3865 | contain information about ENCODING. | |
3866 | ||
3867 | * fontset.c (FONTSET_ASCII): Use the first element of char table | |
3868 | for an ASCII font, not defalt slot. | |
3869 | (fontset_ref_via_base): If FONTSET doesn't contain information for | |
3870 | C, try the default fontset. | |
3871 | (make_fontset): Don't copy the default fontset. | |
3872 | (fontset_font_pattern): Likewise. | |
3873 | (accumulate_font_info): If ELT is nil, use the corresponding | |
3874 | element in the default fontset. | |
3875 | ||
3b4fa1b2 DL |
3876 | 2000-06-19 Dave Love <fx@gnu.org> |
3877 | ||
943e731c DL |
3878 | * syntax.c (Fparse_partial_sexp): Doc fix. |
3879 | ||
3880 | * regex.h: Test PROTOTYPES as well as __STDC__. | |
3881 | ||
3b4fa1b2 DL |
3882 | * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare |
3883 | errno, strerror. Put text after #endif in comment. | |
3884 | ||
3885 | * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for | |
3886 | pcc). | |
3887 | ||
3888 | * xterm.c (x_frame_of_widget): Likewise. | |
3889 | ||
cdf0357b GM |
3890 | 2000-06-19 Gerd Moellmann <gerd@gnu.org> |
3891 | ||
3892 | * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table | |
3893 | to Vfundamental_mode_abbrev_table. | |
3894 | ||
3895 | * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no | |
3896 | bogus objects are marked. This slows down GC by ~80 percent, but | |
3897 | it might be worth trying when debugging GC-related problems. | |
3898 | This feature requires conservative stack marking to be enabled. | |
3899 | ||
3900 | * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString | |
3901 | returns XLookupChars, reset `modifiers' to zero. | |
3902 | ||
998e9f8c DL |
3903 | 2000-06-19 Dave Love <fx@gnu.org> |
3904 | ||
3905 | * mktime.c: Unprotoized. | |
3906 | ||
18e21ce8 | 3907 | 2000-06-19 Richard Stallman <rms@gnu.org> |
d1504184 GM |
3908 | |
3909 | * data.c (set_internal): If variable is frame-local, | |
3910 | store the new value immediately into the frame parameter alist. | |
3911 | ||
140c4ac6 KR |
3912 | 2000-06-19 Ken Raeburn <raeburn@gnu.org> |
3913 | ||
14358466 KR |
3914 | * xfns.c (jpeg_load): Fetch error-handling data first, then fill |
3915 | in the custom handler pointer. | |
3916 | ||
140c4ac6 KR |
3917 | * keyboard.c (follow_key, read_key_sequence): Use XUINT on key |
3918 | value, or checks for CHAR_META can fail when Lisp_Object is a | |
3919 | union type. | |
3920 | * keymap.c (get_keyelt): Likewise. | |
3921 | ||
10d7bf84 KH |
3922 | 2000-06-19 Kenichi Handa <handa@etl.go.jp> |
3923 | ||
3924 | * ccl.h (struct ccl_program): New member eol_type. | |
3925 | (struct ccl_spec): New member cr_carryover. | |
3926 | ||
3927 | * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type. | |
3928 | (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF. | |
3929 | ||
3930 | * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'. | |
3931 | (ccl_coding_driver): On encoding, initialize ccl->eol_type. | |
3932 | (decode_eol_post_ccl): New function. | |
3933 | (decode_coding): Don't detect EOL format here for CCL based coding | |
3934 | systems. | |
3935 | (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call | |
3936 | decode_eol_post_ccl after running the CCL program. | |
3937 | (code_convert_region): Don't detect EOL format here for CCL based | |
3938 | coding systems. | |
3939 | (decode_coding_string): Likewise. | |
3940 | ||
52e386c2 KR |
3941 | 2000-06-18 Ken Raeburn <raeburn@gnu.org> |
3942 | ||
3943 | * charset.c (update_charset_table): Use XINT on "iso_final_char" | |
3944 | when treating it as an integer. | |
3945 | ||
3946 | * coding.h (encode_coding_string): Declare. | |
3947 | ||
3948 | * keyboard.c (read_key_sequence): Use XINT on "pos" when treating | |
3949 | it as an integer. | |
3950 | ||
3951 | * keymap.c (Fwhere_is_internal): Rename argument "keymap" to | |
3952 | "xkeymap" to avoid shadowing the "enum map_type" value that needs | |
3953 | to be passed to get_local_map. | |
3954 | ||
3955 | * sound.c (Fplay_sound): Don't call make_number on | |
3956 | Frun_hook_with_args count argument. | |
3957 | ||
3958 | * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer | |
3959 | for lisp objects in X event structure data field, when lisp | |
3960 | objects are represented with unions. | |
3961 | (x_scroll_bar_to_input_event): Ditto. | |
3962 | ||
b357b9d4 KR |
3963 | 2000-06-16 Ken Raeburn <raeburn@gnu.org> |
3964 | ||
3965 | * xdisp.c (decode_mode_spec): In "no_value" case, do NUL | |
37d034d3 KR |
3966 | termination of string. Fix sense of test whether |
3967 | Vline_number_display_limit is an integer. | |
b357b9d4 | 3968 | |
a871441d GM |
3969 | 2000-06-16 Gerd Moellmann <gerd@gnu.org> |
3970 | ||
a9021acd GM |
3971 | * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors |
3972 | only if HAVE_X_WINDOWS. | |
3973 | ||
6344985d GM |
3974 | * keymap.c (describe_buffer_bindings): Add `\f\n' in front |
3975 | of titles. | |
3976 | ||
427ec082 | 3977 | * dispnew.c (update_frame_1): Handle case that cursor vpos is |
a871441d GM |
3978 | out of bounds. |
3979 | ||
228b083e EZ |
3980 | 2000-06-15 Eli Zaretskii <eliz@is.elta.co.il> |
3981 | ||
3982 | * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS | |
3983 | of its headers. | |
3984 | ||
c25b53a2 KH |
3985 | 2000-06-15 Kenichi Handa <handa@etl.go.jp> |
3986 | ||
3987 | * coding.c (decode_coding_emacs_mule): Always set src_base at the | |
3988 | start of the while loop. | |
3989 | ||
a6981b11 GM |
3990 | 2000-06-15 Gerd Moellmann <gerd@gnu.org> |
3991 | ||
e9924e52 GM |
3992 | * atimer.c (alarm_signal_handler): Add forward declaration. |
3993 | ||
a6981b11 GM |
3994 | * data.c (set_internal): Remove debug code. |
3995 | ||
25fa6deb GM |
3996 | 2000-06-14 Gerd Moellmann <gerd@gnu.org> |
3997 | ||
dce6b995 GM |
3998 | * Makefile.in (bootstrap-temacs): Add `-I../src'. |
3999 | ||
9f817ea4 GM |
4000 | * unexec.c (toplevel) [COFF]: Include coff.h. |
4001 | ||
4002 | * s/lynxos.h: New file. | |
4003 | ||
4004 | * keymap.c (Fsingle_key_description): Enclose function key and | |
4005 | event symbol names in angle brackets. | |
4006 | ||
8a4e3c0c GM |
4007 | * xdisp.c (setup_echo_area_for_printing): Call |
4008 | message_log_maybe_newline if message_buf_print is not set. | |
4009 | ||
4010 | * print.c (printchar, strout): Don't check message_buf_print | |
427ec082 | 4011 | before calling setup_echo_area_for_printing because that |
8a4e3c0c GM |
4012 | function does something useful even when message_buf_print is |
4013 | already set. | |
4014 | ||
25fa6deb GM |
4015 | * xdisp.c (message_truncate_lines, Qmessage_truncate_lines): New |
4016 | variables. | |
4017 | (ensure_echo_area_buffers): Initialize echo buffer's | |
4018 | truncate lines setting to nil. | |
4019 | (with_echo_area_buffer): Don't set the echo buffer's truncate | |
4020 | lines setting here. | |
8a4e3c0c | 4021 | (set_message_1): Set it here instead, based on the value |
25fa6deb GM |
4022 | of message_truncate_lines. |
4023 | (resize_mini_window): Handle case that lines are truncated. | |
4024 | (syms_of_xdisp): Initialize Qmessage_truncate_lines. DEFVAR_BOOL | |
4025 | message-truncate-lines. | |
4026 | ||
4027 | * keyboard.c (read_char): Bind message-truncate-lines to t | |
4028 | while displaying a help-echo. | |
4029 | ||
4030 | * lisp.h (Qmessage_truncate_lines): External declaration. | |
4031 | ||
163dcff3 GM |
4032 | 2000-06-13 Gerd Moellmann <gerd@gnu.org> |
4033 | ||
1681ead6 GM |
4034 | * xdisp.c (Vline_number_display_limit): Renamed from |
4035 | line_number_display_limit. | |
4036 | (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit. | |
4037 | Extend documentation string. Initialize | |
4038 | Vline_number_display_limit to nil meaning no limit. | |
4039 | (decode_mode_spec): Use Vline_number_display_limit with its new | |
4040 | meaning. | |
4041 | ||
163dcff3 GM |
4042 | * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype. |
4043 | ||
18e21ce8 | 4044 | 2000-06-13 Richard Stallman <rms@gnu.org> |
163dcff3 GM |
4045 | |
4046 | * frame.c (Fmodify_frame_parameters): Doc fix. | |
427ec082 | 4047 | |
163dcff3 GM |
4048 | * xfns.c (x_set_frame_parameters): Comment fix. |
4049 | ||
4050 | * frame.c (store_frame_param): Call swap_in_global_binding if the | |
4051 | variable's current binding was chosen based on this frame. | |
4052 | ||
4053 | * data.c (swap_in_global_binding): New function. | |
4054 | ||
a704139d EZ |
4055 | 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il> |
4056 | ||
4057 | * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING | |
4058 | macro, instead AND with CODING_REQUIRE_ENCODING_MASK. | |
4059 | ||
9b6610db EZ |
4060 | 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il> |
4061 | ||
4062 | * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_. | |
4063 | ||
c68833d2 JR |
4064 | 2000-06-12 Jason Rumney <jasonr@gnu.org> |
4065 | ||
4066 | * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__ | |
4067 | ||
4068 | * w32.h (EMACS_W32_H): Renamed from _NT_H_ | |
4069 | ||
4070 | * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__ | |
4071 | ||
4072 | * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__ | |
4073 | ||
ed1056b3 GM |
4074 | 2000-06-12 Gerd Moellmann <gerd@gnu.org> |
4075 | ||
4076 | * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function. | |
4077 | (syms_of_xfaces): Defsubr Sdump_colors. | |
4078 | (x_free_colors): Don't treat b&w specially on default visual. | |
4079 | (x_free_dpy_colors): New function. | |
4080 | (free_face_colors): Don't check visual class; it's done | |
4081 | in x_free_colors. | |
4082 | ||
4083 | * xterm.c (x_frame_of_widget): New function. | |
4084 | (x_alloc_nearest_color_for_widget): Use it. | |
4085 | (x_copy_dpy_color): New function. | |
4086 | (x_destroy_window): Free various colors. | |
4087 | ||
5050a2ef KH |
4088 | 2000-06-12 Kenichi Handa <handa@etl.go.jp> |
4089 | ||
4090 | * ccl.h (EMACS_CCL_H): Renamed from _CCL_H. | |
4091 | ||
4092 | * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H. | |
4093 | ||
4094 | * coding.h (EMASC_CODING_H): Renamed from _CODING_H. | |
4095 | ||
4096 | * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H. | |
4097 | ||
4098 | * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H. | |
4099 | ||
fb1b041d DL |
4100 | 2000-06-11 Dave Love <fx@gnu.org> |
4101 | ||
4102 | * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H. | |
4103 | ||
ff96b5f4 EZ |
4104 | 2000-06-11 Eli Zaretskii <eliz@is.elta.co.il> |
4105 | ||
4106 | * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead. | |
4107 | ||
db8eeecd GM |
4108 | 2000-06-11 Gerd Moellmann <gerd@gnu.org> |
4109 | ||
ed1056b3 | 4110 | * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu |
db8eeecd GM |
4111 | to `XEvent *'. |
4112 | ||
49b71c5f KH |
4113 | 2000-06-10 Kenichi Handa <handa@etl.go.jp> |
4114 | ||
c479bd55 KH |
4115 | * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env. |
4116 | (regex_compile): Fix the code for handling the case of single byte | |
4117 | char and multibyte char being mixed in a range within [...]. | |
4118 | ||
ff6a65c2 KH |
4119 | * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte |
4120 | and dst_multibyte members of coding. | |
4121 | ||
49b71c5f KH |
4122 | * charset.c (update_charset_table): Update the table |
4123 | bytes_by_char_head. | |
4124 | (init_charset_once): Initialize elements of bytes_by_char_head to | |
4125 | 1 except for leading codes for private charases. | |
4126 | ||
4127 | * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80. | |
4128 | (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte | |
4129 | sequence. | |
4130 | ||
9e80b57d KR |
4131 | 2000-06-09 Ken Raeburn <raeburn@gnu.org> |
4132 | ||
4133 | * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to | |
4134 | access the data it doesn't point to. | |
4135 | ||
f83fe4b4 GM |
4136 | 2000-06-08 Gerd Moellmann <gerd@gnu.org> |
4137 | ||
4138 | * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which | |
db8eeecd | 4139 | will be translated to a switch-frame event when reading the |
f83fe4b4 GM |
4140 | event queue. This is necessary because Emacs otherwise won't |
4141 | perform a switch-frame to a new frame until some other event, for | |
4142 | example a keystroke event, forces it to do so. This has various | |
4143 | effects, one visible being that the cursor of a frame created with | |
4144 | C-x 5 2 or switched to with a window manager key binding like | |
4145 | A-TAB stays hollow because selected_window isn't on the newly | |
4146 | focused frame until the switch-frame is performed. | |
4147 | ||
4148 | * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by | |
4149 | generating a switch-frame event if necessary. | |
4150 | ||
4151 | * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT. | |
4152 | ||
4153 | * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos'; | |
4154 | it's an integer. | |
4155 | ||
0890801b KH |
4156 | 2000-06-08 Kenichi Handa <handa@etl.go.jp> |
4157 | ||
4158 | * fontset.c (Fset_fontset_font): The arg CHARACTER may be a | |
4159 | charset. | |
4160 | ||
173cbca8 GM |
4161 | 2000-06-07 Gerd Moellmann <gerd@gnu.org> |
4162 | ||
3091c2a6 GM |
4163 | * window.c (displayed_window_lines): Take empty lines at |
4164 | the bottom of a window into account. | |
427ec082 | 4165 | |
f38952fe GM |
4166 | * window.c (displayed_window_lines): New function. |
4167 | (Fmove_to_window_line): Use displayed_window_lines to determine | |
4168 | the number of lines to move, instead of using the window's height. | |
4169 | ||
4170 | * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange | |
4171 | to stop reading, even if the form read sets point to a different | |
4172 | value when evaluated. | |
4173 | ||
427ec082 | 4174 | * xdisp.c (display_line): Fix code deciding in which line to |
173cbca8 GM |
4175 | put the cursor. |
4176 | ||
6ba6c818 KH |
4177 | 2000-06-07 Kenichi Handa <handa@etl.go.jp> |
4178 | ||
4179 | * fileio.c (e_write): Free composition data if stored in | |
4180 | coding->cmp_data. | |
4181 | ||
5f1aea9a GM |
4182 | 2000-06-06 Gerd Moellmann <gerd@gnu.org> |
4183 | ||
666852af GM |
4184 | * xdisp.c (display_line): Set row's and iterator's |
4185 | starts_in_middle_of_char_p and ends_in_middle_of_char_p flags. | |
4186 | Set cursor even if row ends in the middle of a character. | |
4187 | (dump_glyph_row): Print values of new flags. | |
4188 | (redisplay_window) <cursor movement in unchanged window>: When | |
4189 | point has been moved forward, and PT is at the end of the cursor | |
4190 | row, don't place the cursor in the next row if the cursor row ends | |
4191 | in the middle of a character or at ZV. | |
4192 | ||
4193 | * dispextern.h (struct it): Add starts_in_middle_of_char_p. | |
4194 | (struct glyph_row): Add starts_in_middle_of_char_p and | |
4195 | ends_in_middle_of_char_p. | |
4196 | (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's | |
4197 | ends_in_middle_of_char_p flag. | |
4198 | (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise. | |
4199 | ||
d13f3e2e GM |
4200 | * term.c (append_glyph): Revert change of 2000-06-06. |
4201 | ||
4202 | * xdisp.c (display_line): Revert change of 2000-06-06. Treat | |
4203 | padding glyph not fitting on line as whole character not | |
4204 | fitting on line. | |
4205 | ||
5f1aea9a GM |
4206 | * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0'; |
4207 | this isn't true for images with `:ascent 100'. | |
4208 | ||
10cda9b0 KH |
4209 | 2000-06-06 Kenichi Handa <handa@etl.go.jp> |
4210 | ||
ed00559d KH |
4211 | * buffer.c (Fset_buffer_multibyte): Don't make the current buffer |
4212 | as modified if it is originally unmodified. | |
4213 | ||
10cda9b0 KH |
4214 | * term.c (encode_terminal_code): Change the way to check if |
4215 | terminal coding does any conversion. | |
4216 | (append_glyph): Set glyph->pixel_width correctly. | |
4217 | ||
4218 | * xdisp.c (display_line): While checking line continuation, pay | |
4219 | attention to a padding glyph. | |
4220 | ||
1969fae2 GM |
4221 | 2000-06-05 Gerd Moellmann <gerd@gnu.org> |
4222 | ||
4223 | * xdisp.c (redisplay_window): Always use set_buffer_internal_1. | |
4224 | ||
162ccef4 DL |
4225 | 2000-06-05 Dave Love <fx@gnu.org> |
4226 | ||
f19f32dd DL |
4227 | * xdisp.c: Include fontset.h. |
4228 | ||
4229 | * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned. | |
4230 | ||
4231 | * xterm.c (x_calc_absolute_position): Declare nchildren unsigned. | |
4232 | ||
4233 | * dispnew.c: Conditionally include term.h. | |
4234 | ||
4235 | * coding.h: Declare code_convert_string_norecord. | |
4236 | ||
4237 | * frame.h (struct frame): Use volatile unconditionally. | |
4238 | ||
4239 | * buffer.h: Remove Vbefore_change_function, Vafter_change_function. | |
4240 | ||
4241 | * xmenu.c (menu_item_selection): Declare volatile unconditionally. | |
4242 | ||
4243 | * systime.h: Protect against multiple inclusion. | |
4244 | (timezone) [USG5_4]: Define as time_t. | |
4245 | ||
4246 | * lisp.h (DEFUN, EXFUN): Test PROTOTYPES. | |
4247 | (Foptimize_char_table, make_temp_name): Declare. | |
4248 | ||
4249 | * Makefile.in (xdisp.o): Depend on fontset.h. | |
4250 | ||
4251 | * xterm.c (x_calc_absolute_position): Declare nchildren unsigned. | |
4252 | ||
4253 | * lisp.h (DEFUN, EXFUN): Test PROTOTYPES. | |
4254 | (Foptimize_char_table, make_temp_name): Declare. | |
4255 | ||
427ec082 | 4256 | * s/irix4-0.h: |
162ccef4 DL |
4257 | * s/irix5-0.h: |
4258 | * s/netbsd.h: Don't define autoconfiscated MATHERR. | |
4259 | ||
2082fe81 DL |
4260 | 2000-06-02 Dave Love <fx@gnu.org> |
4261 | ||
4262 | * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define. | |
4263 | ||
dcf671d2 GM |
4264 | 2000-06-02 Gerd Moellmann <gerd@gnu.org> |
4265 | ||
4266 | * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the | |
1969fae2 | 4267 | result face, set flags in that face indicating that colors may not |
dcf671d2 GM |
4268 | be freed. |
4269 | ||
4270 | * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character | |
4271 | glyph, use the ASCII NUL character to determine the face. | |
4272 | ||
d42122a3 DL |
4273 | 2000-06-02 Dave Love <fx@gnu.org> |
4274 | ||
4275 | * sysdep.c: Conditionally include stdlib.h, unistd.h. | |
4276 | (VFORK_RETURN_TYPE): Remove. | |
427ec082 | 4277 | |
d42122a3 DL |
4278 | * config.in: Add NO_MATHERR. |
4279 | ||
dd432f16 DL |
4280 | 2000-06-01 Dave Love <fx@gnu.org> |
4281 | ||
90aa4ea8 DL |
4282 | * cmds.c (internal_self_insert): Don't check |
4283 | Vbefore_change_function, Vafter_change_function. | |
4284 | ||
4285 | * insdel.c (signal_before_change, signal_after_change): Likewise. | |
4286 | ||
4287 | * buffer.c (Vbefore_change_function, Vafter_change_function): | |
4288 | Variables and their initializations deleted. | |
4289 | ||
2330c9d4 DL |
4290 | * callint.c (Fcall_interactively): Doc fix. |
4291 | ||
dd432f16 DL |
4292 | * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern. |
4293 | ||
bf9e8804 DL |
4294 | 2000-05-31 Dave Love <fx@gnu.org> |
4295 | ||
4296 | * textprop.c: Revert last change -- duplicated. | |
4297 | ||
3694b4ab GM |
4298 | 2000-05-31 Gerd Moellmann <gerd@gnu.org> |
4299 | ||
4300 | * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put | |
4301 | in #if 0. | |
4302 | ||
4303 | * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'. | |
4304 | ||
f14156cd JR |
4305 | 2000-05-31 Jason Rumney <jasonr@gnu.org> |
4306 | ||
8119aab8 JR |
4307 | * search.c (Fre_search_forward, Fre_search_backward) |
4308 | (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs. | |
4309 | ||
f14156cd JR |
4310 | * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil. |
4311 | ||
4aab9be3 JR |
4312 | 2000-05-30 Jason Rumney <jasonr@gnu.org> |
4313 | ||
4314 | * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros. | |
4315 | [WINDOWSNT]: Add extern for Vw32_system_coding_system. | |
4316 | ||
4317 | * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type | |
4318 | member. | |
4319 | ||
4320 | * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog. | |
4321 | (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to | |
4322 | expand a nil default_filename. | |
4323 | ||
4324 | * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window | |
4325 | pointer to glyph_to_pixel_coords, not a frame. | |
4326 | ||
4327 | * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and | |
4328 | coding.h to dependencies. | |
4329 | ||
4330 | * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p. | |
4331 | ||
4332 | * w32console.c (glyph_to_pixel_coords): Change first parameter to | |
4333 | window pointer to be consistent with w32term.c and xterm.c. | |
4334 | ||
4335 | * w32fns.c: Format and doc changes to bring closer to xfns.c. | |
4336 | (VIETNAMESE_CHARSET): Define if not defined in system headers. | |
4337 | (Qline_spacing, Qcenter): New variables. | |
4338 | (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c. | |
4339 | (x_set_line_spacing): New function. | |
4340 | (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT | |
4341 | macros. | |
4342 | (x_specified_cursor_type): New function. | |
4343 | (x_set_cursor_type): Use it. | |
4344 | (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar | |
4345 | and icon strings. | |
4346 | (validate_x_resource_name, x_get_resource_string): Measure lengths | |
4347 | of external strings in bytes. | |
4348 | (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling | |
4349 | GetTextExtentPoint32 with NULL title. | |
4350 | (Fx_create_frame): Initialize Qline_spacing. | |
4351 | (w32_load_system_font): Initialize font->double_byte_p. | |
4352 | (x_to_w32_charset): Use Vw32_charset_info_alist. | |
4353 | (Image, busy cursor, tooltip functions): Merged changes from | |
4354 | xfns.c. Not yet functional on Windows. | |
4355 | ||
4356 | * w32gui.h (W32FontStruct): Add double_byte_p member. | |
4357 | ||
4358 | * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant. | |
4359 | (emacs_button_translation): Use it. | |
4360 | (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit | |
4361 | in `mask' to be set. | |
4362 | ||
4363 | * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on | |
4364 | menu strings. | |
4365 | ||
4366 | * w32term.c: Format and doc changes to bring closer to xterm.c. | |
4367 | (w32_char_font_type): New enum. | |
4368 | (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c. | |
4369 | (w32_per_char_metric): Use w32_char_font_type instead of unicode_p. | |
4370 | (w32_encode_char): New function. | |
4371 | (x_encode_char): Removed. | |
4372 | (x_get_glyph_and_face_encoding): Use w32_encode_char in place of | |
4373 | x_encode_char and w32_font_is_double_byte. | |
4374 | (x_produce_image_glyph): Use image_ascent. | |
4375 | (x_produce_glyphs): Use new version of w32_per_char_metric and | |
4376 | handle NULL return value. Allow extra line spacing. | |
4377 | (W32_TEXTOUT): Distinguish between Unicode and DBCS text. | |
4378 | (w32_get_glyph_overhangs): Remove unicode_p param. Use | |
4379 | w32_font_type member of glyph instead. | |
4380 | (x_draw_glyph_string): Draw underline and strike-out for BDF fonts. | |
4381 | (fast_find_position): Make sure not to consider rows not visible | |
4382 | in the window. | |
4383 | (w32_read_socket) [WM_MENUSELECT]: Cannot call | |
4384 | w32_menu_display_help with input blocked, as it can abort. | |
4385 | (x_display_and_set_cursor): Choose cursor depending | |
4386 | on buffer-local value of cursor_type. | |
4387 | (x_draw_bar_cursor): Add parameter WIDTH. | |
4388 | ||
4389 | * w32term.h (CP_DEFAULT): Define. | |
4390 | (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare. | |
4391 | ||
10fc3187 GM |
4392 | 2000-05-30 Gerd Moellmann <gerd@gnu.org> |
4393 | ||
4394 | * search.c (Fre_search_forward, Fre_search_backward) | |
4395 | (Fposix_search_backward, Fposix_search_forward): Doc fix. | |
4396 | ||
d0555360 KH |
4397 | 2000-05-30 Kenichi Handa <handa@etl.go.jp> |
4398 | ||
4399 | * coding.c (detect_coding_iso2022): Fix code for checking | |
4400 | CODING_CATEGORY_MASK_ISO_8_2. | |
4401 | ||
f1ad044f SM |
4402 | 2000-05-29 Stefan Monnier <monnier@cs.yale.edu> |
4403 | ||
4404 | * regex.c (PREFETCH_NOLIMIT): New function. | |
4405 | (re_match_2_internal): Use it and adjust the end_match_2 logic. | |
4406 | ||
84ec3b4b GM |
4407 | 2000-05-29 Gerd Moellmann <gerd@gnu.org> |
4408 | ||
66254a13 GM |
4409 | * syntax.c (find_defun_start): Move test for |
4410 | open_paren_in_column_0_is_defun_start outside of the loop. | |
4411 | ||
49e70dec GM |
4412 | * xdisp.c (redisplay_window): Really switch buffers when |
4413 | displaying mode lines, and temporarily set selected_frame to the | |
4414 | frame of the window that's redisplayed. | |
4415 | ||
84ec3b4b GM |
4416 | * xfaces.c (free_realized_faces): Block/unblock input. |
4417 | (free_realized_multibyte_face): Ditto. | |
4418 | ||
869a3a14 DL |
4419 | 2000-05-29 Dave Love <fx@gnu.org> |
4420 | ||
4421 | * textprop.c (Qkeymap): New variable. | |
4422 | (syms_of_textprop): Intern it. | |
4423 | ||
4424 | * keymap.c: Include intervals.h. | |
4425 | (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property. | |
4426 | ||
4427 | * Makefile.in (keymap.o): Depend on intervals.h. | |
4428 | ||
4429 | * keyboard.c (menu_bar_items, tool_bar_items) | |
4430 | (Fexecute_extended_command): Deal with `keymap' property. | |
4431 | (read_key_sequence): Track map from `keymap' property as well as | |
4432 | `local_map'. | |
4433 | ||
4434 | * intervals.c (get_local_map): Extra arg to allow looking for | |
4435 | `keymap' too. | |
4436 | ||
4437 | * intervals.h (map_property): New enum. | |
4438 | (get_local_map): Extra arg using it. | |
4439 | (Qkeymap): Declare. | |
4440 | ||
84ec3b4b | 4441 | * lisp.h (get_local_map): Don't declare here. |
869a3a14 | 4442 | |
89d0c844 KH |
4443 | 2000-05-29 Kenichi Handa <handa@etl.go.jp> |
4444 | ||
4445 | * Makefile.in (callproc.o): Depend on composite.h. | |
4446 | ||
4447 | * callproc.c: Include composite.h. | |
4448 | (Fcall_process): Handle composition correctly. | |
4449 | ||
4450 | * coding.h (coding_allocate_composition_data): Extern it. | |
4451 | (coding_restore_composition): Likewise. | |
4452 | ||
4453 | * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not | |
4454 | yet allocated, finish decoding with result | |
4455 | CODING_FINISH_INSUFFICIENT_CMP. | |
4456 | (coding_allocate_composition_data): Make it non-static. | |
4457 | (coding_restore_composition): Likewise. | |
4458 | ||
797a084a EZ |
4459 | 2000-05-29 Eli Zaretskii <eliz@is.elta.co.il> |
4460 | ||
4461 | * charset.c (syms_of_charset): Revert last change. | |
4462 | ||
cf872af5 EZ |
4463 | 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il> |
4464 | ||
4465 | * term.c (produce_glyphs): Treat characters from the eight-bit-* | |
d7d0dac0 SM |
4466 | charsets as unibyte, with 1-column screen width. Sent by Kenichi |
4467 | Handa. | |
cf872af5 | 4468 | |
5b1ae051 EZ |
4469 | 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il> |
4470 | ||
4471 | * charset.c (syms_of_charset): Set width of character sets | |
4472 | eight-bit-control and eight-bit-graphic to 1 column. | |
4473 | ||
34ec9ebe GM |
4474 | 2000-05-26 Gerd Moellmann <gerd@gnu.org> |
4475 | ||
4476 | * config.in (HAVE_SPEED_T): New define. | |
4477 | ||
4478 | * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as | |
4479 | `extern speed_t'. | |
4480 | ||
dd854dc2 DL |
4481 | 2000-05-26 Dave Love <fx@gnu.org> |
4482 | ||
4483 | * coding.c (shrink_decoding_region): Initialize eol_conversion. | |
4484 | ||
4485 | * data.c (Qsubrp, Qmany, Qunevalled): New variables. | |
4486 | (Fsubr_arity): New function. | |
4487 | (syms_of_data): Install them. | |
4488 | ||
ba9f8f95 KH |
4489 | 2000-05-26 Kenichi Handa <handa@etl.go.jp> |
4490 | ||
0f3e0672 KH |
4491 | * charset.c (init_charset_once): Set the table bytes_by_char_head |
4492 | correctly. | |
4493 | ||
cebefb44 KH |
4494 | * fontset.c (syms_of_fontset): Adjust the font name for ascii of |
4495 | the default fontset to what Emacs uses by default. | |
0f3e0672 KH |
4496 | (check_registry_encoding): This function deleted. |
4497 | (Fset_fontset_font): Remove the adhoc condition for the default | |
4498 | fontset. Allow cons in FONTNAME. | |
cebefb44 | 4499 | |
0f3e0672 KH |
4500 | * fns.c (map_char_table): Ignore char-table entries for |
4501 | charsets eight-bit-control and eight-bit-graphic. | |
ba9f8f95 | 4502 | |
7a18af49 KR |
4503 | 2000-05-25 Ken Raeburn <raeburn@gnu.org> |
4504 | ||
4505 | * emacs.c (main): Initialize keyboard syms before initializing | |
4506 | window code, so face names are available. | |
4507 | ||
d2af47df SM |
4508 | 2000-05-25 Stefan Monnier <monnier@cs.yale.edu> |
4509 | ||
4510 | * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case | |
4511 | of an anchor at the beginning of a shy-group. | |
4512 | ||
fc6a6a4e GM |
4513 | 2000-05-25 Gerd Moellmann <gerd@gnu.org> |
4514 | ||
4515 | * xdisp.c (handle_invisible_prop): Don't try to skip over | |
4516 | invisible text if end of text is already reached. | |
4517 | ||
005f0d35 DL |
4518 | 2000-05-25 Dave Love <fx@gnu.org> |
4519 | ||
02513cdd DL |
4520 | * xdisp.c (Fdump_glyph_matrix): Declare the arg. |
4521 | ||
005f0d35 DL |
4522 | * coding.c (encode_eol): Add null statement after label. |
4523 | ||
89f6ca4e EZ |
4524 | 2000-05-25 Eli Zaretskii <eliz@is.elta.co.il> |
4525 | ||
4526 | * w16select.c (Fw16_set_clipboard_data): Fix the change from | |
4527 | 2000-05-20. | |
4528 | ||
a4e1759e KH |
4529 | 2000-05-25 Kenichi Handa <handa@etl.go.jp> |
4530 | ||
4531 | * ccl.c (ccl_driver): Fix previous change. | |
4532 | ||
eacfd7fe KH |
4533 | 2000-05-25 Kenichi Handa <handa@etl.go.jp> |
4534 | ||
46ab33a9 KH |
4535 | * coding.c (run_pre_post_conversion_on_str): Set point to the |
4536 | beginning of buffer before calling coding->post_read_conversion. | |
4537 | (decode_coding_string): Give correct args to | |
4538 | run_pre_post_conversion_on_str. | |
4539 | (encode_coding_string): Likewise. | |
4540 | ||
eacfd7fe KH |
4541 | * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2> |
4542 | <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and | |
4543 | eight-bit-graphic correctly. | |
4544 | ||
f8569325 DL |
4545 | 2000-05-24 Kenichi HANDA <handa@etl.go.jp> |
4546 | ||
4547 | * fileio.c (Finsert_file_contents): Even if a file is not found, | |
4548 | execute codes for setting up coding system. Call | |
4549 | after-insert-file-functions unconditionally. | |
4550 | ||
04545643 GM |
4551 | 2000-05-24 Gerd Moellmann <gerd@gnu.org> |
4552 | ||
4553 | * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and | |
4554 | BSD_PGRPS are not defined. | |
4555 | ||
747d90ea KH |
4556 | 2000-05-24 Kenichi Handa <handa@etl.go.jp> |
4557 | ||
4558 | * charset.c (update_charset_table): Accept nil in LONG_NAME and | |
4559 | DESCRIPTION. | |
4560 | (syms_of_charset): Avoid building same strings. | |
4561 | ||
716e3b88 GM |
4562 | 2000-05-23 Gerd Moellmann <gerd@gnu.org> |
4563 | ||
4564 | * lread.c (Fload): Add a comment about the meaning of | |
4565 | Vuser_init_file being t. | |
4566 | ||
4567 | * puresize.h (BASE_PURESIZE): Increase to 675000. | |
4568 | ||
4569 | * s/gnu-linux.h (setpgrp): Don't define it here because this | |
4570 | prevents compilation on GNU/Linux systems with glib 2.2. | |
4571 | ||
4572 | * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define | |
4573 | as setpgid. | |
427ec082 | 4574 | |
9aeb39fa EZ |
4575 | 2000-05-23 Eli Zaretskii <eliz@is.elta.co.il> |
4576 | ||
4577 | * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc, | |
4578 | dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS | |
4579 | version. | |
4580 | (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc. | |
4581 | ||
29ced61b KH |
4582 | 2000-05-23 Kenichi Handa <handa@etl.go.jp> |
4583 | ||
0574a2ed KH |
4584 | * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE |
4585 | unconditionally. | |
4586 | ||
3d80f24d KH |
4587 | * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1. |
4588 | ||
4589 | * term.c (encode_terminal_code): Set coding->src_multibyte | |
4590 | properly. | |
4591 | ||
29ced61b KH |
4592 | * coding.c (encode_eol): Fix a bug of DOS style EOL encoding. |
4593 | ||
d7e00792 KH |
4594 | 2000-05-22 Kenichi Handa <handa@etl.go.jp> |
4595 | ||
c9d80d38 KH |
4596 | * keyboard.c (read_char): Allow character codes 128..255 to be |
4597 | handled by input-method-function. | |
4598 | ||
d7e00792 KH |
4599 | * insdel.c (adjust_markers_for_replace): Fix previous change. |
4600 | (adjust_after_replace): If PREV_TEXT is nil, call | |
4601 | adjust_markers_for_insert, not adjust_markers_for_replace. | |
4602 | ||
087121cc | 4603 | 2000-05-20 NIIBE Yutaka <gniibe@mri.co.jp> |
427ec082 | 4604 | |
087121cc GM |
4605 | * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define. |
4606 | (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF) | |
4607 | [HAVE_GRANDPT]: Define. | |
4608 | (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE. | |
4609 | ||
4610 | * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined | |
4611 | like SYSV_PTYS. | |
4612 | ||
4613 | * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines. | |
4614 | ||
4615 | * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h. | |
4616 | ||
c9671f81 KH |
4617 | 2000-05-20 Kenichi Handa <handa@etl.go.jp> |
4618 | ||
4619 | The following changes are to handle 8-bit characters in a | |
4620 | multibyte buffer/string without facing with byte combining | |
4621 | problem. Two new charsets eight-bit-control (for 0x80..0x9F) and | |
4622 | eight-bit-graphic (for 0xA0..0xFF) are introduced. | |
4623 | ||
4624 | * Makefile.in (fns.o): Depend on charset.h. | |
4625 | ||
4626 | * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte, | |
4627 | convert it to unibyte. | |
4628 | (make_string): Use parse_str_as_multibyte, not chars_in_text. | |
4629 | ||
4630 | * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a | |
4631 | apparent char boundary. | |
4632 | (Fset_buffer_multibyte): Convert 8-bit characters in the range | |
4633 | 0x80..0x9F to/from multibyte form. | |
4634 | ||
4635 | * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it | |
4636 | to unibyte. | |
4637 | ||
4638 | * callproc.c (Fcall_process): Always encode an argument string if | |
4639 | it is multibyte. Setup src_multibyte and dst_multibyte members of | |
4640 | process_coding properly. | |
ce75fd23 | 4641 | |
c9671f81 KH |
4642 | * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not |
4643 | SPLIT_NON_ASCII_CHAR. | |
4644 | ||
4645 | * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters | |
4646 | as is. | |
4647 | (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR. | |
4648 | ||
4649 | * charset.c (Qeight_bit_control, Qeight_bit_graphic): New | |
4650 | variables. | |
4651 | (SPLIT_CHARACTER_SEQ): This macro deleted. | |
4652 | (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is | |
4653 | valid. | |
4654 | (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control | |
4655 | and eight-bit-graphic. | |
4656 | (char_to_string): Likewise. Signal an error for too large | |
4657 | character code. | |
4658 | (char_printable_p): Return 0 for 8-bit characters. | |
4659 | (update_charset_table): Update iso_charset_table only when a final | |
4660 | character is non-negative. | |
4661 | (find_charset_in_text): Renamed from find_charset_in_str. | |
4662 | Arguments and return value changed. Callers changed. | |
4663 | (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can | |
4664 | be -1 if CHARSET is used only internally. | |
4665 | (Fmake_char_internal): Handle new charsets; eight-bit-control and | |
4666 | eight-bit-graphic. | |
4667 | (Fcharset_after): Simplified. | |
4668 | (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR. | |
4669 | (char_bytes): Return 2 for chars of the range 0xA0..0xFF. | |
4670 | (multibyte_chars_in_text): Simplified by assuming there's no | |
4671 | invalid multibyte sequence. | |
4672 | (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte, | |
4673 | str_as_unibyte): New functions. | |
4674 | (Fstring): Simpified by assuming that byte combining never | |
4675 | happens. | |
4676 | (init_charset_once): Initialization for | |
4677 | LEADING_CODE_8_BIT_CONTROL. | |
4678 | (syms_of_charset): Intern and staticpro Qeight_bit_control and | |
4679 | Qeight_bit_graphic. Include them in Vcharset_list. Make charsets | |
4680 | eight-bit-control and eight-bit-graphic. | |
4681 | ||
4682 | * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL, | |
4683 | CHARSET_8_BIT_GRAPHIC): New macros. | |
4684 | (SINGLE_BYTE_CHAR_P): Make it faster by using casting. | |
4685 | (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT. | |
4686 | (CHARSET_REVERSE_CHARSET): Likewise. | |
4687 | (CHARSET_VALID_P): Handle new charsets; eight-bit-control and | |
4688 | eight-bit-graphic. | |
4689 | (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII. | |
4690 | (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise. | |
4691 | (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we | |
4692 | encounter an invalid multibyte sequence. | |
4693 | (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte | |
4694 | sequence is always valid. | |
4695 | (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted. | |
4696 | (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New | |
4697 | macros. | |
4698 | (CHAR_STRING): For 8-bit characters, call char_to_string. | |
4699 | (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume | |
4700 | multibyte sequence is always valid. | |
4701 | (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise. | |
4702 | (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte, | |
4703 | str_as_unibyte): Extern them. | |
4704 | (BCOPY_SHORT): Fix a bug. | |
4705 | (CHAR_LEN): This macro deleted. Callers changed to use | |
4706 | CHAR_BYTES. | |
4707 | (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING. | |
4708 | (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro. | |
4709 | (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer. | |
4710 | ||
bd4bde7f | 4711 | * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to |
c9671f81 KH |
4712 | CODING_FINISH_INSUFFICIENT_SRC if there's not enough source. |
4713 | (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE, | |
4714 | EMIT_BYTES): New macros. | |
4715 | (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII, | |
4716 | DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These | |
4717 | macros deleted. | |
4718 | (CHECK_CODE_RANGE_A0_FF): This macro deleted. | |
4719 | (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to | |
4720 | check the validity of multibyte sequence. | |
4721 | (decode_coding_emacs_mule): New function. | |
4722 | (encode_coding_emacs_mule): New macro. | |
4723 | (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from | |
4724 | the source. | |
4725 | (DECODE_ISO_CHARACTER): Just return a character code. | |
4726 | (DECODE_COMPOSITION_START): Set coding->result instead of result. | |
4727 | (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use | |
4728 | EMIT_CHAR to produced decoded characters. Exit the loop only by | |
4729 | macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last | |
4730 | block here. | |
4731 | (ENCODE_ISO_CHARACTER): Don't translate character here. Produce | |
4732 | only position codes for an invalid character. | |
4733 | (encode_designation_at_bol): Return new destination pointer. 5th | |
4734 | arg DSTP is changed to DST. | |
4735 | (encode_coding_iso2022, decode_coding_sjis_big5): Get a character | |
4736 | from the source by ONE_MORE_CHAR. Don't handle the case of last | |
4737 | block here. | |
4738 | (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These | |
4739 | macros deleted. | |
4740 | (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8, | |
4741 | detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and | |
4742 | TWO_MORE_BYTES to fetch a byte from the source. | |
4743 | (encode_eol): Pay attention to coding->src_multibyte. | |
4744 | (detect_coding, detect_eol): Preserve members src_multibyte and | |
4745 | dst_multibyte. | |
4746 | (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text. | |
4747 | (encoding_buffer_size): Set magnification to 3 for all coding | |
4748 | systems that require encoding. | |
4749 | (ccl_coding_driver): For decoding, be sure that the result is | |
4750 | valid multibyte sequence. | |
4751 | (decode_coding): Initialize coding->errors and coding->result. | |
4752 | For emacs-mule, call decode_coding_emacs_mule. For no-conversion | |
4753 | and raw-text, always call decode_eol. Handle the case of last | |
4754 | block here. If not coding->dst_multibyte, convert the resulting | |
4755 | sequence to unibyte. | |
4756 | (encode_coding): Initialize coding->errors and coding->result. | |
4757 | For emacs-mule, call encode_coding_emacs_mule. For no-conversion | |
4758 | and raw-text, always call encode_eol. Handle the case of last | |
4759 | block here. | |
4760 | (shrink_decoding_region, shrink_encoding_region): Detect cases | |
4761 | that we can't skip data more rigidly. | |
4762 | (code_convert_region): Setup src_multibyte and dst_multibyte | |
4763 | members of coding. For decoding, if the buffer is multibyte, | |
4764 | convert the source sequence to unibyte in advance. For encoding, | |
4765 | if the buffer is multibyte, convert the resulting sequence to | |
4766 | multibyte afterward. | |
4767 | (run_pre_post_conversion_on_str): New function. | |
4768 | (code_convert_string): Deleted and divided into the following two. | |
4769 | (decode_coding_string, encode_coding_string): New functions. | |
4770 | (code_convert_string1, code_convert_string_norecord): Call one of | |
4771 | above. | |
4772 | (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of | |
4773 | MAKE_NON_ASCII_CHAR. | |
4774 | (Fset_terminal_coding_system_internal, | |
4775 | Fset_safe_terminal_coding_system_internal): Setup src_multibyte | |
4776 | and dst_multibyte members. | |
4777 | (init_coding_once): Initialize iso_code_class with new enum | |
4778 | ISO_control_0 and ISO_control_1. | |
4779 | ||
4780 | * coding.h (enum iso_code_class_type): Member ISO_control_code is | |
4781 | devided into ISO_control_0 and ISO_control_1. | |
4782 | (struct coding_system): New members src_multibyte, dst_multibyte, | |
4783 | errors, and result. Delete member fake_multibyte. | |
4784 | (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is | |
4785 | nonzero. | |
4786 | (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is | |
4787 | nonzero. | |
4788 | ||
4789 | * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR. | |
4790 | (Faset): Likewise. | |
4791 | ||
4792 | * editfns.c (Fformat): Be sure to convert 8-bit characters to | |
4793 | multibyte form. | |
4794 | (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte | |
4795 | combining occurs. | |
4796 | (Ftranspose_region): Delete codes for handling byte combining. | |
4797 | ||
4798 | * fileio.c (Finsert_file_contents): Setup src_multibyte and | |
4799 | dst_multibyte members of coding. On handling REPLACE on unibyte | |
4800 | buffer, convert the result of decode_coding to unibyte. On | |
4801 | inserting into a mutibyte buffer, always call code_convert_region. | |
bd4bde7f | 4802 | (e_write): Setup coding->src_multibyte according to the |
c9671f81 KH |
4803 | multibyteness of the source (buffer or string). |
4804 | ||
4805 | * fns.c (concat): Handle 8-bit characters correctly. | |
4806 | (Fstring_as_unibyte): Be sure to make all 8-bit characters in | |
4807 | unibyte in the result. | |
4808 | (Fstring_as_multibyte): Be sure to make all 8-bit characters in | |
4809 | valid multibyte form in the result. | |
4810 | (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR. | |
4811 | (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1 | |
4812 | return -1, signal an error. | |
4813 | (base64_encode_1): New arg MULTIBYTE. Get each character by | |
4814 | CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte | |
4815 | character is found, return -1. | |
4816 | (Fbase64_decode_region): Delete codes for handling byte-combining. | |
4817 | Treat each decoded byte as a unibyte character. | |
4818 | (Fbase64_decode_string): Return unibyte string. | |
4819 | (Fcompare_strings, concat, string_byte_to_char): Use | |
4820 | FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off | |
4821 | FETCH_STRING_CHAR_ADVANCE. | |
4822 | (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally. | |
4823 | (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE. | |
4824 | ||
4825 | * fontset.c (fontset_ref): Use SPLIT_CHAR instead of | |
4826 | SPLIT_NON_ASCII_CHAR. | |
4827 | (fontset_ref_via_base, fontset_set): Likewise | |
4828 | ||
4829 | * insdel.c (adjust_markers_for_record_delete): Deleted. | |
4830 | (adjust_markers_for_insert): Argument changed. Caller changed. | |
4831 | (adjust_markers_for_replace): Likewise. | |
4832 | (ADJUST_CHAR_POS, combine_bytes, byte_combining_error, | |
4833 | CHECK_BYTE_COMBINING_FOR_INSERT): Deleted. | |
4834 | (copy_text): Delete unused local varialbe c_save. For converting | |
4835 | to multibyte, be sure to make all 8-bit characters in valid | |
4836 | multibyte form. | |
4837 | (count_size_as_multibyte): Handle 8-bit characters correctly. | |
4838 | (insert_1_both, insert_from_string_1, insert_from_buffer_1, | |
4839 | adjust_after_replace, replace_range, del_range_2) | |
4840 | [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs. | |
4841 | (insert_1_both, insert_from_string_1, insert_from_buffer_1, | |
4842 | adjust_after_replace, replace_range, del_range_2) Delete codes for | |
4843 | handling byte combining. | |
4844 | (adjust_before_replace): Deleted. | |
427ec082 | 4845 | |
c9671f81 KH |
4846 | * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of |
4847 | SPLIT_NON_ASCII_CHAR. | |
4848 | (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR. | |
4849 | (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE | |
4850 | unconditionally. | |
4851 | (Fkey_description): Likewise. | |
4852 | ||
4853 | * lread.c (read1): On reading multibyte string, be sure to make | |
4854 | all 8-bit chararacters in valid multibyte form. | |
4855 | (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally. | |
4856 | ||
4857 | * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE | |
4858 | unconditionally. | |
4859 | ||
4860 | * process.c (Fstart_process): GCPRO current_dir before calling | |
4861 | Ffind_operation_coding_system. Encode arguments here. | |
4862 | (create_process): Don't encode arguments here. Setup | |
4863 | src_multibyte and dst_multibyte members of struct coding. | |
4864 | (read_process_output): Setup src_multibyte and dst_multibyte | |
4865 | members of struct coding. If the output is to multibyte buffer, | |
4866 | always decode the output of the process. Adjust the | |
4867 | representation of 8-bit characters to the multibyteness of the | |
4868 | output. | |
4869 | (send_process): Setup coding->src_multibyte according to the | |
4870 | multibyteness of the source. | |
4871 | ||
4872 | * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE | |
4873 | unconditionally. | |
4874 | (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and | |
4875 | FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately. | |
4876 | ||
4877 | * term.c (produce_special_glyphs): Use CHAR_BYTES instead of | |
4878 | CHAR_LEN. | |
4879 | ||
4880 | * w16select.c (Fw16_set_clipboard_data): Setup members | |
4881 | src_multibyte and dst_multibyte of coding. Adjusted for the | |
4882 | change for find_charset_in_str. | |
4883 | (Fw16_get_clipboard_data): Likewise. | |
4884 | ||
4885 | * w32fns.c (w32_to_x_font): Setup members src_multibyte and | |
4886 | dst_multibyte of coding. | |
4887 | (x_to_w32_font): Likewise. | |
4888 | ||
4889 | * w32select.c (Fw32_set_clipboard_data): Setup members | |
4890 | src_multibyte and dst_multibyte of coding. Adjusted for the | |
4891 | change for find_charset_in_str. | |
4892 | (Fw32_get_clipboard_data): Likewise. | |
4893 | ||
4894 | * xdisp.c (get_next_display_element): Handle 8-bit characters | |
4895 | correctly. | |
4896 | (next_element_from_display_vector): Use CHAR_BYTES instead of | |
4897 | CHAR_LEN. | |
4898 | (disp_char_vector): Use SPLIT_CHAR instead of | |
4899 | SPLIT_NON_ASCII_CHAR. | |
4900 | ||
4901 | * xselect.c (selection_data_to_lisp_data): Setup members | |
4902 | src_multibyte and dst_multibyte of coding. Adjusted for the | |
4903 | change for find_charset_in_str. | |
4904 | (lisp_data_to_selection_data): Likewise. | |
4905 | ||
5f64c9e0 GM |
4906 | 2000-05-19 Gerd Moellmann <gerd@gnu.org> |
4907 | ||
2b63d473 GM |
4908 | * buffer.c (Fbury_buffer): Avoid trouble from burying a killed |
4909 | buffer. | |
4910 | ||
5f64c9e0 GM |
4911 | * dispextern.h (Vimage_types): Add extern declaration. |
4912 | ||
4913 | * xdisp.c (Vimage_types): Moved here from xfns.c. | |
4914 | (syms_of_xdisp): Move `image-types' variable here from xfns.c. | |
4915 | ||
4916 | * xfns.c (Vimages_types): Moved to xdisp.c. | |
4917 | (syms_of_xfns): Move `image-types' to xdisp.c. | |
4918 | ||
4919 | * w32fns.c (Vimage_types): Removed. | |
4920 | (syms_of_w32fns): Remove `image-types'. | |
4921 | ||
813086ea KH |
4922 | 2000-05-18 Kenichi Handa <handa@etl.go.jp> |
4923 | ||
4924 | * fns.c (map_char_table): Pay attention to character number of | |
4925 | charset. Check the validity of charset at the first level. For | |
4926 | leaf nodes that has nil value, call C_FUNCTION or FUNCTION with | |
4927 | the default value. | |
4928 | ||
4929 | * fontset.c: Include "buffer.h". | |
4930 | (fs_load_font): If the face has fontset, record the face ID in | |
4931 | that fontset. | |
4932 | (Finternal_char_font): New function. | |
4933 | (accumulate_font_info): New function. | |
4934 | (Ffontset_info): Rewritten for the new fontset implementation. | |
4935 | (syms_of_fontset): Register Vdefault_fontset in the first element | |
4936 | of Vfontset_table. Include Vdefault_fontset in | |
4937 | Vfontset_alias_alist. Declare `internal-char-font' as a Lisp | |
4938 | function. | |
4939 | ||
bdaebbf0 DL |
4940 | 2000-05-16 Dave Love <fx@gnu.org> |
4941 | ||
4942 | * m/iris5d.h: Deleted -- unused. | |
4943 | ||
cb613bb8 GM |
4944 | 2000-05-16 Gerd Moellmann <gerd@gnu.org> |
4945 | ||
b15f3b77 GM |
4946 | * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term |
4947 | `invalid' instead of `illegal'. | |
4948 | ||
4949 | * indent.c (Fmove_to_column): When ending within a tab, insert | |
4950 | spaces first so that markers at the end of the tab get adjusted. | |
4951 | ||
835c1b36 GM |
4952 | * frame.c (frames_bury_buffer): Don't add a buffer to the frame's |
4953 | buffer list that wasn't selected in that frame. | |
4954 | ||
cb613bb8 GM |
4955 | * filelock.c (get_boot_time): To obtain an 8 char file name, which |
4956 | is needed on mescaline, use a 2 char prefix, and call | |
4957 | make_temp_name with second arg non-zero. | |
4958 | ||
4959 | * fileio.c (make_temp_name): New function, extracted from | |
4960 | Fmake_temp_name. | |
4961 | (Fmake_temp_name): Use it. | |
4962 | ||
f685bea9 EZ |
4963 | 2000-05-15 Eli Zaretskii <eliz@is.elta.co.il> |
4964 | ||
4965 | * window.c (coordinates_in_window): Subtract 1 when computing | |
4966 | right_x. | |
4967 | ||
a1b8d58b GM |
4968 | 2000-05-15 Gerd Moellmann <gerd@gnu.org> |
4969 | ||
4970 | * Makefile.in (lisp): Add env.elc. | |
4971 | ||
4972 | * callproc.c (Fgetenv_internal): Renamed from Fgetenv. | |
4973 | ||
a265079f GM |
4974 | 2000-05-12 Gerd Moellmann <gerd@gnu.org> |
4975 | ||
4976 | * search.c (Freplace_match): Handle case of `\N' in the | |
4977 | replacement when there's no group N. | |
4978 | ||
da4496b6 GM |
4979 | 2000-05-11 Gerd Moellmann <gerd@gnu.org> |
4980 | ||
0ace421a GM |
4981 | * xdisp.c (add_to_log): Don't pass the terminating NUL byte |
4982 | of the message to message_dolog. | |
4983 | ||
1172eb8d GM |
4984 | * keyboard.c (read_char): Don't clear current message for help |
4985 | events; let the code handling help events handle this. Change | |
4986 | code detecting help events that should be ignored. | |
4987 | ||
da4496b6 GM |
4988 | * xdisp.c (handle_single_display_prop): Don't try to set PT if |
4989 | we're interating over a string. | |
4990 | ||
0623e40f DL |
4991 | 2000-05-09 Dave Love <fx@gnu.org> |
4992 | ||
4993 | * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to | |
4994 | that offset before writing. Move gcpro region past call of | |
4995 | Ffile_regular_p. | |
4996 | ||
bae2503b DL |
4997 | 2000-05-04 Dave Love <fx@gnu.org> |
4998 | ||
4999 | * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix. | |
5000 | ||
ec82fb2f GM |
5001 | 2000-05-04 Gerd Moellmann <gerd@gnu.org> |
5002 | ||
5003 | * insdel.c (insert_from_buffer_1): Adjust FROM position by number | |
5004 | of inserted characters when BUF equals the current buffer, and PT | |
5005 | is in front of or equal to FROM. | |
5006 | ||
cbf18892 GM |
5007 | 2000-05-03 Gerd Moellmann <gerd@gnu.org> |
5008 | ||
4ff40dd0 GM |
5009 | * xdisp.c (handle_single_display_prop): If display property value |
5010 | is invalid, or something not supported on the frame, restore | |
5011 | iterator's position to what it was initially. Make sure to return | |
5012 | 0 for invalid and unsupported property values. | |
5013 | ||
cbf18892 GM |
5014 | * xterm.c (x_produce_glyphs) <composite chars>: Handle case |
5015 | that x_per_char_metric returns null. | |
5016 | ||
1b0672c3 GM |
5017 | 2000-05-02 Gerd Moellmann <gerd@gnu.org> |
5018 | ||
576da55d GM |
5019 | * xterm.h (struct face): Add forward declaration. |
5020 | (struct image): Ditto. | |
5021 | (image_ascent): Add prototype. | |
5022 | ||
5023 | * xterm.c (x_produce_image_glyph, x_draw_image_foreground) | |
5024 | (x_draw_image_relief, x_draw_image_foreground_1): Call function | |
5025 | image_ascent instead of using IMAGE_ASCENT. | |
5026 | ||
5027 | * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro. | |
5028 | (IMAGE_ASCENT): Removed. | |
5029 | ||
5030 | * xfns.c (Qcenter): New variable. | |
5031 | (enum image_value_type): Add IMAGE_ASCENT_VALUE. | |
5032 | (parse_image_spec): Handle IMAGE_ASCENT_VALUE. | |
5033 | (image_ascent): New function. | |
5034 | (lookup_image): Recognize `:ascent center'. | |
5035 | (xbm_format, xpm_format, pbm_format, png_format, jpeg_format) | |
5036 | (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE. | |
5037 | (xbm_load): Don't set image's ascent here. | |
5038 | (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p) | |
5039 | (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't | |
5040 | check ascent values here. | |
5041 | (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed. | |
5042 | (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions. | |
5043 | (syms_of_xfns): Initialize Qcenter. | |
5044 | ||
1b0672c3 GM |
5045 | * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near |
5046 | to the limits, increase the limits. | |
5047 | ||
0d7811ed KH |
5048 | 2000-05-01 Kenichi Handa <handa@etl.go.jp> |
5049 | ||
5050 | * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII. | |
5051 | Check Vfont_encoding_alist against the full name of the opened | |
5052 | font. | |
5053 | ||
a943a5ca GM |
5054 | 2000-04-28 Gerd Moellmann <gerd@gnu.org> |
5055 | ||
5056 | * xdisp.c (make_cursor_line_fully_visible): Handle case of rows | |
5057 | taller than the window. | |
5058 | ||
5dba1e29 KH |
5059 | 2000-04-28 Kenichi Handa <handa@etl.go.jp> |
5060 | ||
5061 | * xfaces.c (realize_x_face): Fix the argument of the second | |
5062 | xassert. BASE_FACE may not be a face for ASCII. | |
5063 | ||
353964e3 GM |
5064 | 2000-04-27 Gerd Moellmann <gerd@gnu.org> |
5065 | ||
c76e04a8 GM |
5066 | * print.c (print_object): Treat print-length < 0 as nil. |
5067 | ||
5068 | * Makefile.in (termcapobj): Don't use TERMCAP_OBJ. | |
5069 | ||
5070 | * s/freebsd.h (TERMCAP_OBJ): Removed. | |
5071 | (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000. | |
5072 | ||
5073 | * lread.c (read1): Don't treat period followed by certain | |
5074 | characters as symbol start. | |
5075 | ||
5076 | * xfns.c (slurp_file): New function. | |
5077 | (xbm_image_p): Handle case of in-memory XBM files. | |
5078 | (xbm_scan): Rewritten to work on memory buffers instead of files. | |
5079 | (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data. | |
5080 | Work on memory buffers instead of files. If DATA is null test | |
5081 | if buffer looks like an in-memory XBM file. | |
5082 | (xbm_load_image): Renamed from xbm_load_image_file. Work on | |
5083 | memory buffers instead of files. | |
5084 | (xbm_file_p): New function. | |
5085 | (xbm_load): Accept :data DATA where DATA is an in-memory XBM file. | |
5086 | ||
353964e3 GM |
5087 | * lread.c (end_of_file_error): New function. |
5088 | (read1): Call it instead of signaling `end-of-file' directly. | |
5089 | ||
427ec082 | 5090 | * print.c (print_error_message): Print data of `end-of-file' |
353964e3 GM |
5091 | with Fprinc instead of Fprin1. |
5092 | ||
24d744ac KR |
5093 | 2000-04-26 Ken Raeburn <raeburn@gnu.org> |
5094 | ||
5095 | * window.c (freeze_window_start): Check that minibuffer scroll | |
5096 | window isn't nil before extracting the window structure pointer | |
5097 | from it. | |
5098 | ||
5099 | * undo.c (record_delete): If we hit the end of the undo list, stop | |
5100 | picking elements apart. | |
5101 | ||
7464346d GM |
5102 | 2000-04-26 Gerd Moellmann <gerd@gnu.org> |
5103 | ||
5104 | * xdisp.c (display_line): If lines are continued, restore | |
5105 | iterator's ascent/descent information to the values before the | |
5106 | first glyph not fitting on the line. | |
5107 | ||
612839b6 GM |
5108 | 2000-04-25 Gerd Moellmann <gerd@gnu.org> |
5109 | ||
5110 | * xdisp.c (try_window_id) <all changes above window start>: Adjust | |
5111 | positions in glyph matrix. Don't compute new window end | |
5112 | positions. | |
5113 | ||
5114 | * dispnew.c (increment_matrix_positions): Renamed from | |
5115 | increment_glyph_matrix_buffer_positions. | |
5116 | (increment_row_positions): Renamed from | |
5117 | increment_glyph_row_buffer_positions. | |
5118 | ||
5119 | * dispextern.h: Change names of renamed functions from dispnew.c | |
5120 | in prototypes. | |
5121 | ||
cc181e95 GM |
5122 | 2000-04-24 Gerd Moellmann <gerd@gnu.org> |
5123 | ||
abfcc168 GM |
5124 | * fileio.c (Fdo_auto_save): Create directories for auto-save |
5125 | list file if necessary. | |
5126 | ||
cc181e95 GM |
5127 | * xdisp.c (init_iterator): Set iterator's extra_line_spacing |
5128 | from buffer or frame. | |
5129 | (automatic_hscrolling_p): New variable. | |
5130 | (hscroll_windows): Scroll windows horizontally only if automatic | |
5131 | hscrolling is allowed. | |
5132 | (syms_of_xdisp): New variable `automatic-hscrolling'. | |
5133 | ||
5134 | * frame.h (struct frame): Add member extra_line_spacing. | |
5135 | ||
5136 | * xfns.c (x_set_line_spacing): New function. | |
5137 | (Fx_create_frame): Set line spacing from resources. | |
5138 | (Qline_spacing): New variable. | |
5139 | (syms_of_xfns): Initialize Qline_spacing. | |
427ec082 | 5140 | |
cc181e95 GM |
5141 | * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'. |
5142 | ||
5143 | * buffer.c (init_buffer_once): Handle extra_line_spacing. | |
5144 | (syms_of_buffer): Add `default-line-spacing' and `line-spacing'. | |
abfcc168 | 5145 | (reset_buffer): Don't initialize extra2 and extra3. Initialize |
cc181e95 GM |
5146 | extra_line_spacing from default value. |
5147 | (init_buffer_once): Initialize default value of extra_line_spacing. | |
5148 | ||
5149 | * buffer.h (struct buffer): Add extra_line_spacing, remove extra2 | |
5150 | and extra3. | |
5151 | ||
5152 | * xterm.c (x_produce_glyphs): Remove reference to struct it's | |
5153 | prompt_width. Add extra line spacing. | |
5154 | ||
5155 | * term.c (produce_glyphs): Remove reference to struct it's | |
5156 | prompt_width. | |
5157 | ||
5158 | * dispextern.h (struct it): Remove member prompt_width, add | |
5159 | extra_line_spacing. | |
5160 | ||
58827478 GM |
5161 | 2000-04-22 Gerd Moellmann <gerd@gnu.org> |
5162 | ||
5163 | * dispnew.c (update_frame_line): When writing a whole line, make | |
5164 | sure cursor is in the right row afterwards, otherwise a use of | |
5165 | capability `ch' in cmgoto might leave the cursor in the row below. | |
5166 | ||
25a87f42 GM |
5167 | 2000-04-21 Gerd Moellmann <gerd@gnu.org> |
5168 | ||
5169 | * lisp.h (struct Lisp_Buffer_Cons): Remove. | |
5170 | ||
5171 | * keyboard.c (timer_check): Fix typo in comment. | |
5172 | ||
54edf5c2 KH |
5173 | 2000-04-21 Kenichi Handa <handa@etl.go.jp> |
5174 | ||
5175 | * fontset.c (Fset_fontset_font): Fix docstring. Local variable | |
5176 | name change: ch -> character. | |
5177 | ||
3a64eef5 GM |
5178 | 2000-04-20 Gerd Moellmann <gerd@gnu.org> |
5179 | ||
5180 | * keyboard.c (echo_message_buffer): New variable. | |
5181 | (echo_now): Set echo_message_buffer to the echo area buffer used | |
5182 | to display the echo. | |
5183 | (cancel_echoing): Reset echo_message_buffer to nil. | |
5184 | (read_char): Code rewritten that handles canceling an echo or | |
5185 | echoing a dash, respectively. | |
5186 | ||
5187 | * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent | |
5188 | directory doesn't exist. | |
5189 | ||
6142fdcb DL |
5190 | 2000-04-19 Dave Love <fx@gnu.org> |
5191 | ||
5192 | * fns.c (syms_of_fns): Defsubr mapc. | |
a9cacab7 DL |
5193 | (concat): Don't allow numeric args. |
5194 | (Fconcat): Doc change. | |
6142fdcb | 5195 | |
ac6b5352 SM |
5196 | 2000-04-19 Stefan Monnier <monnier@cs.yale.edu> |
5197 | ||
5198 | * regex.c (re_match_2_internal): Don't shorten the strings anymore, | |
5199 | instead define end_match(1|2) more carefully. | |
5200 | Use GET_CHAR_BEFORE_2 for `begline'. | |
5201 | ||
cb9215e4 GM |
5202 | 2000-04-19 Gerd Moellmann <gerd@gnu.org> |
5203 | ||
5e3dac3f GM |
5204 | * frame.h (SELECTED_FRAME): Change definition to compile cleanly |
5205 | on 64-bit systems where NULL is defined as `0'. | |
5206 | ||
5207 | * xdisp.c (with_echo_area_buffer): Add more `int' parameters for | |
5208 | the `variable argument list' to make it work on Alpha. | |
5209 | ||
cb9215e4 GM |
5210 | * m/alpha.h (_LP64) [!_LP64]: Define. |
5211 | (ORDINARY_LINK): Define for NetBSD. | |
5212 | ||
5213 | * m/macppc.h (ORDINARY_LINK): Define for NetBSD. | |
427ec082 | 5214 | |
f532dca0 DL |
5215 | 2000-04-19 Dave Love <fx@gnu.org> |
5216 | ||
c750667e DL |
5217 | * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14 |
5218 | change. | |
5219 | ||
5220 | * Makefile.in (LIBS): Don't use. | |
5221 | (GETLOADAVG_OBJ): Define again. | |
5222 | (otherobj): Add GETLOADAVG_OBJ. | |
5223 | ||
f532dca0 DL |
5224 | * buffer.c (Fmake_indirect_buffer): Escape newline in doc. |
5225 | ||
1c7e22fd GM |
5226 | 2000-04-18 Gerd Moellmann <gerd@gnu.org> |
5227 | ||
f6d3257b GM |
5228 | * lread.c (read_filtered_event): Cancel and start busy cursor. |
5229 | ||
427ec082 | 5230 | * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account |
1c7e22fd GM |
5231 | that the per-character metrics may be null. |
5232 | ||
e10f64e7 GM |
5233 | 2000-04-17 Gerd Moellmann <gerd@gnu.org> |
5234 | ||
0daee095 GM |
5235 | * buffer.c (clone_per_buffer_values): New function. |
5236 | (Fmake_indirect_buffer): Add optional argument CLONE. Call | |
5237 | clone_per_buffer_values if CLONE is not nil. | |
5238 | ||
e10f64e7 GM |
5239 | * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix. |
5240 | ||
38687d43 DL |
5241 | 2000-04-16 Dave Love <fx@gnu.org> |
5242 | ||
5243 | * Makefile.in: Remove obsolete localcpp stuff. | |
5244 | (GETLOADAVG_OBJ): Don't define. | |
5245 | (obj): Move LIBOBJS... | |
5246 | (otherobj): ... to here. | |
5247 | (MSDOS_OBJ): Convert to make variable -- preprocessing zapped | |
5248 | whitespace-only lines after the continuation (Irix). | |
5249 | ||
c21c7262 GM |
5250 | 2000-04-14 Gerd Moellmann <gerd@gnu.org> |
5251 | ||
5252 | * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors. | |
5253 | ||
5254 | * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'. | |
5255 | ||
314767c0 DL |
5256 | 2000-04-14 Dave Love <fx@gnu.org> |
5257 | ||
5258 | * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h: | |
5259 | * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h: | |
5260 | * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h: | |
5261 | * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated | |
5262 | NLIST_STRUCT. | |
5263 | ||
5264 | * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define | |
5265 | autoconfiscated HAVE_GETLOADAVG. | |
5266 | ||
5267 | * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated | |
5268 | BROKEN_MKTIME. | |
5269 | ||
a2522dca GM |
5270 | 2000-04-14 Gerd Moellmann <gerd@gnu.org> |
5271 | ||
5272 | * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes. | |
5273 | (fill_in_lock_file_name): Avoid existing files that aren't | |
5274 | links. | |
5275 | ||
33744b5d DL |
5276 | 2000-04-14 Dave Love <fx@gnu.org> |
5277 | ||
c21c7262 | 5278 | * Makefile.in (LIBS, LIBOBJS): New variable. |
33744b5d DL |
5279 | (INTERVAL_SRC): Convert to make variable. |
5280 | (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT) | |
5281 | (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove. | |
5282 | (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and | |
5283 | add LIBOBJS. | |
5284 | (SOME_MACHINE_OBJECTS): Remove interval stuff. | |
5285 | (lisp): Substitute FACE_SUPPORT, FLOAT_SUP. | |
5286 | (shortlisp): Add facemenu, float-sup, frame. | |
5287 | (SOME_MACHINE_LISP): Remove them from here. | |
5288 | (LIBES): Change unused LDLIBS to autoconf LIBS. | |
5289 | ||
5290 | * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION. | |
5291 | ||
9d3d5916 KH |
5292 | 2000-04-14 Kenichi Handa <handa@etl.go.jp> |
5293 | ||
5294 | * composite.c (update_compositions): If FROM and TO are not in a | |
5295 | valid range, do nothing. | |
5296 | ||
198e3c7a GM |
5297 | 2000-04-13 Gerd Moellmann <gerd@gnu.org> |
5298 | ||
5299 | * tparam.c (tparam1): Abort when encountering an unknown | |
5300 | `%'-specifier. | |
5301 | ||
5302 | * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as | |
5303 | terminfo.o. | |
5304 | ||
5305 | * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define | |
5306 | as TERMCAP_OBJ. | |
5307 | ||
055a28c9 EZ |
5308 | 2000-04-13 Eli Zaretskii <eliz@is.elta.co.il> |
5309 | ||
5310 | * fileio.c (a_write): Remove redundant semi-colons. | |
5311 | (e_write): Return -1 if failed to write all the data. | |
5312 | This fixes the changes made at 1999-12-15. | |
5313 | ||
f5c75033 DL |
5314 | 2000-04-12 Dave Love <fx@gnu.org> |
5315 | ||
5316 | * fns.c (mapcar1): Test for null vals to support mapc. | |
5317 | (Fmapc): New function. | |
5318 | ||
0c3cfc51 EZ |
5319 | 2000-04-12 Eli Zaretskii <eliz@is.elta.co.il> |
5320 | ||
5321 | * msdos.c (NUM_MOUSE_BUTTONS): Define. | |
5322 | (IT_frame_up_to_date): Support the buffer local value of | |
5323 | cursor-type, if defined. | |
5324 | ||
33465a31 DL |
5325 | 2000-04-10 Dave Love <fx@gnu.org> |
5326 | ||
5327 | * editfns.c (preceding-char, following-char): Doc fix. | |
5328 | ||
6ed56568 KR |
5329 | 2000-04-10 Ken Raeburn <raeburn@gnu.org> |
5330 | ||
5331 | * Makefile.in (temacs): Revert 2000-03-12 change. | |
5332 | ||
7cf80d4e JR |
5333 | 2000-04-10 Jason Rumney <jasonr@gnu.org> |
5334 | ||
5335 | * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P. | |
5336 | ||
34f3f342 GM |
5337 | 2000-04-10 Gerd Moellmann <gerd@gnu.org> |
5338 | ||
1a1b1895 GM |
5339 | * xdisp.c (setup_echo_area_for_printing): Choose an echo |
5340 | area buffer, if it's not set up yet. | |
5341 | ||
34f3f342 GM |
5342 | * indent.c (compute_motion): Set immediate_quit. |
5343 | ||
be0dbdab GM |
5344 | 2000-04-09 Gerd Moellmann <gerd@gnu.org> |
5345 | ||
c45be9ac GM |
5346 | * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New |
5347 | variable. | |
5348 | (realize_tty_face): Suppress boldness if colors are the inverse of | |
5349 | the default colors, and tty_suppress_bold_inverse_default_colors_p | |
5350 | is set. | |
5351 | (Ftty_suppress_bold_inverse_default_colors): New function. | |
5352 | (syms_of_xfaces): Defsubr it. | |
5353 | ||
be0dbdab GM |
5354 | * buffer.c (Frestore_buffer_modified_p): New function. |
5355 | (syms_of_buffer): Defsubr it. | |
5356 | ||
e8413c3b KR |
5357 | 2000-04-08 Ken Raeburn <raeburn@gnu.org> |
5358 | ||
87f67317 KR |
5359 | * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a |
5360 | charset id (int) argument, not a charset (Lisp_Object). | |
5361 | ||
e8413c3b KR |
5362 | * coding.h (code_convert_string): Declare. |
5363 | * coding.c (code_convert_string_norecord): Pass an int, not a lisp | |
5364 | object, as the fourth argument to code_convert_string. | |
5365 | ||
5366 | * fontset.c (make_fontset_for_ascii_face): Use XINT on return | |
5367 | value. | |
5368 | (Fset_fontset_font): Use EQ to compare lisp objects. | |
5369 | ||
7c752c80 KR |
5370 | 2000-04-05 Ken Raeburn <raeburn@gnu.org> |
5371 | ||
c0333abc KR |
5372 | * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for |
5373 | a pointer that looks like a lisp object. | |
5374 | (SET_INTERVAL_OBJECT): Don't explicitly compare the object with | |
5375 | zero, instead see whether it's an integer object, since they can't | |
5376 | have intervals. | |
5377 | (GET_INTERVAL_OBJECT): Simply assign to the destination. | |
5378 | ||
7c752c80 KR |
5379 | * dispnew.c (allocate_matrices_for_frame_redisplay, |
5380 | direct_output_forward_char): Use X(U)INT and make_number as needed | |
5381 | to convert between (unsigned) int values and lisp integers. | |
5382 | * keyboard.c (read_key_sequence): Likewise. | |
5383 | * lread.c (substitute_object_recurse): Likewise. | |
5384 | * fns.c (concat, hash_lookup, hash_remove): Likewise. | |
5385 | * minibuf.c (do_completion, Fminibuffer_complete_word, | |
5386 | Fminibuffer_completion_help): Likewise. | |
5387 | * term.c (produce_special_glyphs): Likewise. | |
5388 | ||
5389 | * fileio.c (Fwrite_region): Use EQ when comparing lisp objects. | |
5390 | * print.c (print_preprocess, print_object): Likewise. | |
5391 | ||
5392 | * search.c (compile_pattern): Use NILP when checking for nil. | |
5393 | ||
74e49b38 KR |
5394 | * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 && |
5395 | __OPTIMIZE__]: Provide a GNU C macro version that handles | |
5396 | lisp-object unions. | |
5397 | (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type | |
5398 | field, to better cope with ENABLE_CHECKING and calls that modify a | |
5399 | Lisp_Object using its old value. | |
5400 | ||
685e5ed2 GM |
5401 | 2000-04-04 Gerd Moellmann <gerd@gnu.org> |
5402 | ||
c407c570 GM |
5403 | * window.c (compare_window_configurations): Signal an error |
5404 | if parameters C1 or C2 aren't window configurations. | |
5405 | ||
685e5ed2 GM |
5406 | * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/ |
5407 | AFTER_POTENTIAL_GC calls around calls to functions that can | |
5408 | signal an error and thus invoke the debugger. | |
5409 | ||
587a49ab GM |
5410 | 2000-04-03 Gerd Moellmann <gerd@gnu.org> |
5411 | ||
62f20204 GM |
5412 | * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal |
5413 | an error if decoding fails. | |
5414 | ||
587a49ab GM |
5415 | * keyboard.c (lispy_mouse_names): Variable removed. |
5416 | (Vlispy_mouse_stem): New variable. | |
5417 | (syms_of_keyboard): Initialize Vlispy_mouse_stem. | |
5418 | (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort | |
5419 | for any mouse button number. Increase size of mouse_syms and | |
5420 | button_down_location as needed. Call modify_event_symbol with | |
5421 | different arguments. | |
5422 | (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]: | |
5423 | Call modify_event_symbol with different arguments. | |
5424 | (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort | |
5425 | for any button number. Call modify_event_symbol with different | |
5426 | arguments. | |
5427 | (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM. | |
5428 | Accept a string for NAME_ALIST_OR_STEM. | |
5429 | ||
5430 | * lisp.h (larger_vector): Add prototype. | |
5431 | ||
5432 | * fns.c (larger_vector): Make externally visible. | |
5433 | ||
5434 | * termhooks.h (NUM_MOUSE_BUTTONS): Removed. | |
5435 | ||
2d1675e4 SM |
5436 | 2000-04-02 Stefan Monnier <monnier@cs.yale.edu> |
5437 | ||
5438 | * regex.c (PTR_TO_OFFSET) [!emacs]: Remove. | |
5439 | (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros. | |
5440 | (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when | |
5441 | we are between str1 and str2. | |
5442 | (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default. | |
5443 | (PATFETCH): Use `TRANSLATE'. | |
5444 | (PATFETCH_RAW): Fetch multibyte char if applicable. | |
5445 | (PATUNFETCH): Remove. | |
5446 | (regex_compile): Rely on PATFETCH to do most of the multibyte magic. | |
5447 | When writing a char, write it directly into the pattern buffer rather | |
5448 | than going needlessly through a temp char-array. | |
5449 | (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the | |
5450 | multibyte magic and remove the useless `#ifdef emacs'. | |
5451 | (bcmp_translate): Don't compare as multibyte chars when in a unibyte | |
5452 | buffer. | |
5453 | ||
5454 | * regex.h (struct re_pattern_buffer): Make field `multibyte' | |
5455 | conditional on `emacs'. | |
5456 | ||
5457 | * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c. | |
5458 | ||
cc2d8c6b KR |
5459 | 2000-04-01 Ken Raeburn <raeburn@gnu.org> |
5460 | ||
5461 | * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand | |
5462 | non-union-type versions of XMARK and friends here, because XMARK | |
5463 | and friends won't work on an integer field if NO_UNION_TYPE is not | |
5464 | defined. | |
5465 | (make_number): Define as a function if it's not defined as a | |
5466 | macro. | |
5467 | ||
09654086 KR |
5468 | * composite.c (run_composite_function): Use NILP when checking for |
5469 | nil. | |
5470 | (syms_of_composite): Delete local var NARGS, pass an int as first | |
5471 | argument to Fmake_hash_table. | |
5472 | ||
2387b382 KR |
5473 | * editfns.c (text_property_stickiness): Use NILP to test |
5474 | Lisp_Object boolean value. | |
5475 | (Fmessage_or_box): Don't use NILP to test int variable. | |
c01fbf95 KR |
5476 | (Fformat): Use a temporary variable to avoid ENABLE_CHECKING |
5477 | problems reading from and changing the same lisp value in an | |
5478 | XSETSTRING call. | |
5479 | ||
27660e89 GM |
5480 | 2000-04-01 Gerd Moellmann <gerd@gnu.org> |
5481 | ||
5482 | * term.c (TN_no_color_video): New variable. | |
5483 | (term_init): Intitialize TN_no_color_video. | |
5484 | (enum no_color_bit): New enumeration. | |
5485 | (MAY_USE_WITH_COLORS_P): New macro. | |
5486 | (turn_on_face): Use it to determine if attributes may be used | |
5487 | combined with colors. | |
5488 | ||
3578db3c KR |
5489 | 2000-04-01 Ken Raeburn <raeburn@gnu.org> |
5490 | ||
5491 | * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues | |
5492 | with int lvalues via casts; instead, just yield lisp object | |
5493 | lvalues. | |
5494 | (enlarge_window): Variable sizep now points to Lisp_Object. Use | |
5495 | proper accessor macros. | |
5496 | (shrink_window_lowest_first): w->top is Lisp_Object; use XINT. | |
5497 | (grow_mini_window): Fix typo getting int value of root->height. | |
5498 | ||
6fc556fd KR |
5499 | * xdisp.c (compute_string_pos): Fix order of arguments to |
5500 | string_pos_nchars_ahead. | |
5501 | (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as | |
5502 | count arg to variable-arg routines like Frun_hook_with_args and | |
5503 | Fformat. | |
587a49ab GM |
5504 | (back_to_previous_visible_line_start) |
5505 | (build_desired_tool_bar_string): Pass Lisp_Object, not int, to | |
6fc556fd KR |
5506 | fixed-arg routines like Fget_char_property and Fmake_string. |
5507 | (reconsider_clip_changes): Use XINT when comparing integer lisp | |
5508 | objects, or passing them as int arguments. | |
587a49ab GM |
5509 | (mark_window_display_accurate, insert_left_trunc_glyphs) |
5510 | (append_space, extend_face_to_end_of_line): Use make_number when | |
6fc556fd KR |
5511 | storing or passing integer values as lisp objects. |
5512 | (set_cursor_from_row, highlight_trailing_whitespace): Use | |
5513 | INTEGERP, not implicit test against zero, for glyph object. | |
5514 | (try_window_id): Don't use make_number when we want an int value. | |
5515 | ||
5516 | * xfaces.c (xlfd_symbolic_value): Make last argument a | |
5517 | Lisp_Object, to be consistent with callers. | |
5518 | (Fbitmap_spec_p): Use XINT to get numeric value of height. | |
5519 | (lface_hash): Apply XFASTINT to lisp values before folding in. | |
5520 | ||
5521 | * xfns.c (Fx_show_tip): Use make_number to get lisp objects to | |
5522 | fill in window width and height. Pass an int, not a lisp object, | |
5523 | as first arg to Finsert. | |
5524 | ||
6e7b2457 GM |
5525 | 2000-04-01 Gerd Moellmann <gerd@gnu.org> |
5526 | ||
610d841e GM |
5527 | * xfaces.c (realize_basic_faces): Block input while realizing |
5528 | the faces. | |
5529 | ||
6e7b2457 GM |
5530 | * keyboard.c (lispy_mouse_names): Add additional mouse names. |
5531 | ||
5532 | * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15. | |
5533 | ||
aa110c0c GM |
5534 | 2000-03-31 Gerd Moellmann <gerd@gnu.org> |
5535 | ||
5536 | * xterm.c (x_produce_glyphs): When displaying unibyte text | |
610d841e | 5537 | or ASCII, handle case that per-char metric is null. |
aa110c0c | 5538 | |
8801a864 KR |
5539 | 2000-03-30 Ken Raeburn <raeburn@gnu.org> |
5540 | ||
c6129d7e KR |
5541 | * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef. |
5542 | ||
8801a864 KR |
5543 | * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW, |
5544 | XSUBR, XBUFFER): Verify correct object type before returning | |
5545 | pointer, using eassert. | |
5546 | * frame.h (XFRAME): Likewise. | |
5547 | ||
5548 | * buffer.c (Frename_buffer, Fset_buffer_multibyte, | |
5549 | swap_out_buffer_local_variables, Fmove_overlay): Don't apply | |
5550 | XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong | |
5551 | type. | |
5552 | * data.c (set_internal): Likewise. | |
5553 | * dispextern.h (WINDOW_WANTS_MODELINE_P, | |
5554 | WINDOW_WANTS_HEADER_LINE_P): Likewise. | |
5555 | * fileio.c (auto_save_1): Likewise. | |
5556 | * insdel.c (check_markers): Likewise. | |
5557 | * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise. | |
5558 | * undo.c (record_insert): Likewise. | |
5559 | * vmsproc.c (child_sig): Likewise. | |
5560 | * window.c (unshow_buffer, window_loop): Likewise. | |
5561 | * xterm.c (x_erase_phys_cursor): Likewise. | |
5562 | ||
8e7af858 GM |
5563 | 2000-03-30 Gerd Moellmann <gerd@gnu.org> |
5564 | ||
5565 | * xfns.c (free_image_cache): Free the cache structure itself | |
5566 | last, after all its members have been freed. | |
5567 | ||
5568 | * lisp.h (xstrdup): Add prototype. | |
5569 | ||
5570 | * alloc.c (xstrdup): Moved here from xfaces.c. | |
5571 | (allocating_for_lisp): Variable removed. | |
5572 | (lisp_malloc): Block input around the calls to malloc and | |
5573 | mem_insert. | |
5574 | ||
5575 | * xfaces.c (realize_tty_face): Use find_symbol_value instead | |
5576 | of Fsymbol_value. | |
5577 | (xstrdup): Moved to alloc.c. | |
5578 | ||
e0b8c689 KR |
5579 | 2000-03-29 Ken Raeburn <raeburn@gnu.org> |
5580 | ||
b96f9fb7 KR |
5581 | * scroll.c (CHECK_BOUNDS): Renamed from CHECK. |
5582 | ||
5583 | * emacs.c (main): Fix sense of no-loadup test. | |
5584 | ||
e0b8c689 KR |
5585 | * config.in (ENABLE_CHECKING): Undef. |
5586 | ||
5587 | * lisp.h (struct interval): Replace "parent" field with a union of | |
5588 | interval pointer and Lisp_Object; add new bitfield to use as | |
5589 | discriminant. Change other flag fields to bitfields. | |
5590 | (CHECK): New macro for consistency checking. If ENABLE_CHECKING | |
5591 | is defined and the supplied test fails, print a message and | |
5592 | abort. | |
5593 | (eassert): New macro. Use CHECK to provide an assert-like | |
5594 | facility. | |
5595 | ||
5596 | * intervals.h (NULL_INTERVAL_P): Now applies only to real interval | |
5597 | pointers; abort if the value looks like a lisp object. | |
5598 | (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT, | |
5599 | SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT): | |
5600 | Modify for new interval parent definition. | |
5601 | ||
5602 | * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE, | |
5603 | UNMARK_BALANCE_INTERVALS): Update references that need an | |
5604 | addressable lisp object in the interval structure. | |
5605 | (die): New function. | |
5606 | (suppress_checking): New variable. | |
5607 | ||
5608 | * intervals.c (interval_start_pos): Just return 0 if there's no | |
5609 | parent object. | |
5610 | ||
f83c5440 GM |
5611 | 2000-03-29 Gerd Moellmann <gerd@gnu.org> |
5612 | ||
5613 | * lread.c (read1): Accept `.' (period) as symbol start like in CL | |
5614 | and earlier Emacs versions. | |
5615 | ||
5616 | * keyboard.c (Ftop_level): Cancel busy-cursor. | |
5617 | ||
5618 | * eval.c (call_debugger): Cancel busy-cursor. | |
5619 | ||
fdce64ff KH |
5620 | 2000-03-29 Kenichi Handa <handa@etl.go.jp> |
5621 | ||
5622 | * search.c (Freplace_match): Adjust multibyteness of the current | |
5623 | buffer and NEWTEXT. Free allocated memory before signaling an | |
5624 | error. | |
5625 | ||
f6a3f532 SM |
5626 | 2000-03-28 Stefan Monnier <monnier@cs.yale.edu> |
5627 | ||
5628 | * regex.c (analyse_first): New function obtained by ripping out most | |
5629 | of re_compile_fastmap and generalizing it a little bit so that it | |
5630 | can also just return whether a given (sub)pattern can match the empty | |
5631 | string or not. | |
5632 | (regex_compile): Use `analyse_first' to decide whether the loop-check | |
5633 | needs to be done or not for *, +, *? and +? (the loop check is costly | |
5634 | for non-greedy repetition). | |
5635 | (re_compile_fastmap): Delegate the actual work to `analyse_first'. | |
5636 | ||
e9b309ac DL |
5637 | 2000-03-28 Dave Love <fx@gnu.org> |
5638 | ||
bb15bd9a DL |
5639 | * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, |
5640 | alpha. | |
5641 | ||
e9b309ac DL |
5642 | * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__. |
5643 | ||
ed0767d8 SM |
5644 | 2000-03-27 Stefan Monnier <monnier@cs.yale.edu> |
5645 | ||
5646 | * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as | |
5647 | an expression. | |
5648 | (enum re_opcode_t): Update description of succeed_n. | |
5649 | (PATFETCH): Always define. | |
5650 | (regex_compile): Use lookahead rather than PATUNFETCH (for repetition | |
5651 | operators, char classes, shy-groups and intervals). | |
5652 | Optimize special cases of intervals so as to only use succeed_n and | |
5653 | jump_n when really needed. | |
5654 | (re_compile_fastmap): Simplify handling of jump_n and succeed_n now | |
5655 | that we don't have to handle the special cases any more. | |
5656 | Simplify on_failure_jump handling as well. | |
5657 | ||
e11e7e46 JR |
5658 | 2000-03-28 Jason Rumney <jasonr@gnu.org> |
5659 | ||
5660 | * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT. | |
5661 | ||
88faab89 GM |
5662 | 2000-03-27 Gerd Moellmann <gerd@gnu.org> |
5663 | ||
182ff242 GM |
5664 | * s/freebsd.h (GC_SETJMP_WORKS): Define. |
5665 | ||
5666 | * s/msdos.h (GC_SETJMP_WORKS): Define. | |
427ec082 | 5667 | |
182ff242 GM |
5668 | * alloc.c (mark_maybe_object): New function. |
5669 | (mark_memory): Use it. | |
5670 | (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros. | |
5671 | (setjmp_tested_p, longjmp_done): New variables. | |
5672 | (test_setjmp): New function. | |
5673 | (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp. | |
5674 | (init_alloc): Initialize setjmp_tested_p and longjmp_done. | |
5675 | ||
c1005d06 GM |
5676 | * xdisp.c (face_before_or_after_it_pos): Pass multibyteness |
5677 | to DEC_TEXT_POS and INC_TEXT_POS. | |
5678 | ||
5679 | * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS | |
5680 | with parameter MULTIBYTE_P. | |
5681 | ||
427ec082 | 5682 | * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter |
c1005d06 GM |
5683 | MULTIBYTE_P. |
5684 | ||
7439e5b9 | 5685 | * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte |
182ff242 GM |
5686 | buffers because it looks for multibyte character byte sequences |
5687 | which don't exist in unibyte text. | |
7439e5b9 | 5688 | |
d9c545da GM |
5689 | * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes. |
5690 | ||
11fd416e | 5691 | * xfaces.c (register_color, unregister_color, unregister_colors) |
d9c545da GM |
5692 | [DEBUG_X_COLORS]: New functions. |
5693 | (x_free_colors) [DEBUG_X_COLORS]: Unregister colors. | |
5694 | ||
5695 | * xfns.c (x_set_cursor_color): Get color reference counts right. | |
5696 | ||
5697 | * xterm.c (x_copy_color): New function. | |
5698 | (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color. | |
5699 | ||
5700 | * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS. | |
5701 | (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET. | |
5702 | (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX. | |
5703 | (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P. | |
5704 | (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P. | |
5705 | (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX. | |
5706 | (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE. | |
5707 | (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE. | |
5708 | (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL. | |
5709 | (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE. | |
5710 | ||
11fd416e GM |
5711 | * category.c, data.c, syntax.c, print.c, lread.c: Use new macro |
5712 | names for handling per-buffer variables. | |
d9c545da GM |
5713 | |
5714 | * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS | |
5715 | instead of MAX_BUFFER_LOCAL_VARS. | |
5716 | (last_per_buffer_idx): Renamed from max_buffer_local_idx. | |
5717 | ||
5718 | * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P. | |
5719 | ||
88faab89 GM |
5720 | * xfns.c (x_specified_cursor_type): New function. |
5721 | (x_set_cursor_type): Use it. | |
5722 | ||
5723 | * buffer.h (struct buffer): Add cursor_type. | |
5724 | ||
d80f42b7 SM |
5725 | 2000-03-26 Stefan Monnier <monnier@cs.yale.edu> |
5726 | ||
5727 | * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop. | |
427ec082 | 5728 | (print_partial_compiled_pattern, re_compile_fastmap): Handle new |
88faab89 | 5729 | opcode. |
d80f42b7 SM |
5730 | (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops. |
5731 | (re_match_2_internal): Add code for on_failure_jump_nastyloop when | |
5732 | executing it as well as when popping it off the stack to find infinite | |
5733 | loops in non-greedy repetition operators. | |
5734 | ||
89e80928 GM |
5735 | 2000-03-26 Gerd Moellmann <gerd@gnu.org> |
5736 | ||
3d4ff2dd GM |
5737 | * doc.c (Qfunction_documentation): New variable. |
5738 | (syms_of_doc): Initialize Qfunction_documentation. | |
5739 | (Fdocumentation): If FUNCTION is a symbol with non-nil | |
5740 | `function-documentation' property, return a documentation derived | |
5741 | from that. | |
5742 | ||
bd96bd79 GM |
5743 | * buffer.c (syms_of_buffer): Add default-cursor-type. |
5744 | (init_buffer_once): Don't let cursor_type have a local value | |
5745 | in every buffer. | |
5746 | ||
19d1bc27 GM |
5747 | * xterm.c (x_display_and_set_cursor): Choose cursor depending |
5748 | on buffer-local value of cursor_type. | |
5749 | (x_draw_bar_cursor): Add parameter WIDTH. | |
5750 | ||
5751 | * buffer.c (reset_buffer): Initialize buffer's cursor_type. | |
5752 | (init_buffer_once): Set default cursor_type value to t. | |
5753 | Mark cursor_type as local everywhere. | |
5754 | (syms_of_buffer): New per-buffer variable cursor-type. | |
5755 | ||
89e80928 GM |
5756 | * buffer.h (struct buffer): Remove member local_var_flags, |
5757 | add local_flags. | |
5758 | (MAX_BUFFER_LOCAL_VARS): New macro. | |
5759 | (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX) | |
5760 | (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P) | |
5761 | (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE) | |
5762 | (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros. | |
5763 | ||
5764 | * print.c (print_object): Use new macros for per-buffer | |
5765 | variables. | |
5766 | ||
5767 | * category.c (Fset_category_table): Use new macros for per-buffer | |
5768 | variables. | |
5769 | ||
5770 | * buffer.c (buffer_permanent_local_flags): Make a char array. | |
5771 | (max_buffer_local_idx): New variable. | |
5772 | (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten | |
5773 | for new handling of per-buffer variables. | |
5774 | (buffer_slot_type_mismatch): Use new macros for per-buffer vars. | |
5775 | (init_buffer_once): Initialize per-buffer vars differently. | |
5776 | Set max_buffer_local_idx. | |
5777 | ||
5778 | * syntax.c (Fset_syntax_table): Use new macros for per-buffer | |
5779 | variables. | |
5780 | ||
5781 | * lread.c (defvar_per_buffer): Use new macros for per-buffer | |
5782 | variables. | |
5783 | ||
5784 | * data.c (do_symval_forwarding, store_symval_forwarding) | |
5785 | (find_symbol_value, set_internal, default_value, Fset_default) | |
5786 | (Fkill_local_variable, Flocal_variable_p): Use new macros for | |
5787 | per-buffer variables. | |
5788 | ||
5789 | * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'. | |
5790 | ||
9a0dd3dc GM |
5791 | 2000-03-24 Gerd Moellmann <gerd@gnu.org> |
5792 | ||
b68c375f GM |
5793 | * xterm.c (x_term_init): Unblock input around call1 of |
5794 | Qvendor_specific_keysyms. | |
5795 | ||
9a0dd3dc GM |
5796 | * syntax.c (open_paren_in_column_0_is_defun_start): New variable. |
5797 | (find_defun_start): Consider an open parenthesis in column 0 | |
5798 | a defun start only if open_paren_in_column_0_is_defun_start is set. | |
5799 | (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start. | |
5800 | ||
7973e637 SM |
5801 | 2000-03-24 Stefan Monnier <monnier@cs.yale.edu> |
5802 | ||
5803 | * eval.c (Fautoload): Add entry in load-history (if after dump). | |
5804 | * lread.c (load-history): Update docstring. | |
5805 | ||
39210e90 GM |
5806 | 2000-03-24 Gerd Moellmann <gerd@gnu.org> |
5807 | ||
5808 | * indent.c (Fvertical_motion): Always use the current buffer. | |
5809 | Temporarily change the window's buffer, if necessary. | |
5810 | ||
72db3ab5 GM |
5811 | 2000-03-23 Gerd Moellmann <gerd@gnu.org> |
5812 | ||
5813 | * xterm.c (fast_find_position): Make sure not to consider rows | |
5814 | not visible in the window. | |
5815 | ||
990b2375 SM |
5816 | 2000-03-22 Stefan Monnier <monnier@cs.yale.edu> |
5817 | ||
5818 | * regex.c (enum syntaxcode): Provide default for non-Emacs. | |
5819 | (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix. | |
5820 | ||
ff4df011 JR |
5821 | 2000-03-22 Jason Rumney <jasonr@gnu.org> |
5822 | ||
5823 | * w32menu.c (single_submenu): Set help string to NULL if none. | |
5824 | (w32_menu_show): Set help string correctly. | |
5825 | (add-menu-item): Set help string in MIIM_DATA for menu item. | |
5826 | Load SetMenuItemInfoA explicitly. | |
5827 | (w32_menu_display_help): New function. | |
427ec082 | 5828 | |
ff4df011 JR |
5829 | * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message. |
5830 | (QCdata): Moved to xdisp.c. | |
5831 | ||
5832 | * w32term.c (w32_read_socket): Handle WM_MENUSELECT message. | |
5833 | (Vw32_charset_to_codepage_alist): Removed. | |
5834 | (Vw32_charset_info_alist): New variable. | |
5835 | (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312, | |
5836 | chinesebig5, oem, easteurope, turkish, baltic, russian, arabic, | |
5837 | greek, hebrew, thai, johab, mac, unicode]): New symbols. | |
5838 | (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace | |
5839 | with TODO comment. | |
5840 | (w32_codepage_for_font): Use Vw32_charset_info_alist. | |
5841 | (syms_of_w32term): Remove Vw32_charset_to_codepage_alist. | |
5842 | Define Vw32_charset_info_alist and w32_charset symbols. | |
5843 | ||
5844 | 2000-03-22 Jason Rumney <jasonr@gnu.org> | |
5845 | ||
5846 | * makefile.nt (w32bdf.obj): Update dependencies. | |
5847 | ||
5848 | * w32bdf.c: Include frame.h and dispextern.h before fontset.h. | |
5849 | ||
5850 | * w32fns.c: Include fontset.h after dispextern.h. | |
5851 | (Fx_create_frame): Do not create fontset. | |
5852 | (w32_load_system_font): Doc fix. | |
5853 | (Fx_close_connection): Free full_name if it is not shared. | |
5854 | ||
5855 | * w32term.c: Include fontset.h after dispextern.h. | |
5856 | (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers | |
5857 | updated. | |
5858 | (w32_per_char_metric): If PCM is invalid, delete and return NULL. | |
5859 | (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id. | |
5860 | (w32_font_is_double_byte): New function, needs body. | |
5861 | (x_append_glyph): Set glyph->glyph_not_available_p. | |
5862 | (x_produce_glyphs): Set it->glyph_not_available_p. Don't set | |
5863 | it->charset. If it->multibyte_p is zero and it->c is a multibyte | |
5864 | character, convert it to a unibyte character. | |
5865 | (struct glyph_string): Delete member `charset'. | |
5866 | (W32_TEXTOUT): Temporarily remove charset_dim until another way of | |
5867 | calculating it is found. | |
5868 | (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle | |
5869 | the case that per char metric is not available correctly. | |
5870 | (x_fill_glyph_string): Handle the case that the specific glyph is | |
5871 | not available correctly. | |
5872 | (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset. | |
5873 | (BUILD_COMPOSITE_GLYPH_STRING): Likewise. | |
5874 | (x_new_font): Call FS_LOAD_FONT, not fs_load_font. | |
5875 | (x_new_fontset): Call fontset_ascii to get ASCII font name of the | |
5876 | fontset. Don't call FS_LOAD_FONT. | |
5877 | ||
439d5cb4 KR |
5878 | 2000-03-22 Ken Raeburn <raeburn@gnu.org> |
5879 | ||
5880 | * intervals.h (NULL_INTERVAL): Cast to INTERVAL type. | |
5881 | (INT_LISPLIKE): New macro. | |
5882 | (NULL_INTERVAL_P): Use it. | |
5883 | (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT, | |
5884 | SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT, | |
5885 | GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros. | |
5886 | ||
5887 | * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all | |
5888 | explicit references to "parent" field of struct interval and | |
5889 | associated unclean type conversions. | |
5890 | * intervals.c (create_root_interval, root_interval, rotate_right, | |
5891 | rotate_left, balance_possible_root_interval, split_interval_right, | |
5892 | split_interval_left, interval_start_pos, find_interval, | |
5893 | next_interval, previous_interval, update_interval, | |
5894 | adjust_intervals_for_insertion, delete_node, delete_interval, | |
5895 | adjust_intervals_for_deletion, merge_interval_right, | |
5896 | merge_interval_left, reproduce_tree, graft_intervals_into_buffer, | |
5897 | copy_intervals_to_string): Likewise. | |
5898 | * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL): | |
5899 | Likewise. | |
5900 | * syntax.c (update_syntax_table): Likewise. | |
5901 | ||
5902 | * intervals.c (reproduce_tree_obj): New function, like | |
5903 | reproduce_tree but takes a Lisp_Object for the parent. Declare | |
5904 | with prototype. | |
5905 | (graft_intervals_into_buffer): Use it when appropriate. | |
5906 | (reproduce_tree): Declare with prototype. | |
5907 | (balance_possible_root_interval): Check that the parent is a lisp | |
5908 | object before trying to examine its type. | |
5909 | ||
ee1c5b21 GM |
5910 | 2000-03-22 Gerd Moellmann <gerd@gnu.org> |
5911 | ||
5912 | * xfaces.c (lface_same_font_attributes_p): Compare font attributes | |
5913 | as strings only if both are known to be strings. | |
5914 | ||
5915 | * s/openbsd.h (LIBS_TERMCAP): Undef. | |
5916 | ||
1fb352e0 SM |
5917 | 2000-03-21 Stefan Monnier <monnier@cs.yale.edu> |
5918 | ||
5919 | * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default | |
5920 | definitions for non-Emacs compilation. | |
5921 | (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec | |
5922 | outside of `#ifdef emacs'. | |
5923 | (print_partial_compiled_pattern): Update. | |
5924 | (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar. | |
5925 | (re_compile_fastmap): Merge handling of charset and charset_not (for | |
5926 | emacs and non-emacs compilation as well). | |
5927 | Similarly for (not)categoryspec and (not)syntaxspec. | |
5928 | Don't use the fastmap when reaching `anychar' since the added | |
5929 | complexity is not justified. | |
5930 | (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs) | |
5931 | and (not)syntaxspec. Merge (not)categoryspec. | |
5932 | ||
fdaa1f77 KH |
5933 | 2000-03-22 Kenichi Handa <handa@etl.go.jp> |
5934 | ||
ff1a0d8e KH |
5935 | * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P, |
5936 | FACE_FOR_CHAR): Define them differently for the configuration of | |
5937 | --without-x. | |
fdaa1f77 | 5938 | |
d152fb46 DL |
5939 | 2000-03-21 Dave Love <fx@gnu.org> |
5940 | ||
5941 | * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in | |
5942 | doc string. | |
5943 | ||
d2cafc8c GM |
5944 | 2000-03-21 Gerd Moellmann <gerd@gnu.org> |
5945 | ||
5946 | * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error. | |
5947 | (lface_fully_specified_p): Don't check contents of | |
5948 | LFACE_FONT_INDEX because that attribute is optional. | |
5949 | (realize_x_face): Remove now unwarranted xassert. | |
5950 | ||
9111d4b5 KH |
5951 | 2000-03-21 Kenichi HANDA <handa@etl.go.jp> |
5952 | ||
5953 | The following changes are to make font selection based on | |
5954 | characters, not charset. In addition, they recover fontset | |
5955 | facilities while utilizing the new font selection mechanism. | |
5956 | ||
6c4bfdc0 KH |
5957 | * Makefile.in (fontset.o): Depend on dispextern.h. |
5958 | ||
5959 | * alloc.c (mark_face_cache): Don't mark face->registry. | |
5960 | ||
9111d4b5 KH |
5961 | * dispextern.h (struct glyph): New member glyph_not_available_p. |
5962 | Use 22 bits for face_id. | |
5963 | (enum lface_attribute_index): Add LFACE_FONT_INDEX. | |
5964 | (struct face): Delete member registry, new member ascii_face. | |
5965 | (FACE_SUITABLE_FOR_CHAR_P): Renamed from | |
5966 | FACE_SUITABLE_FOR_CHARSET_P. Caller changed. | |
5967 | (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed. | |
5968 | (struct it): Delete member charset, new member | |
5969 | glyph_not_available_p. | |
5970 | ||
5971 | * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed. | |
5972 | (struct fontset_info, struct fontset_data): Structs removed. | |
5973 | (allloc_fontset_data, free_fontset_data, fs_regiser_fontset, | |
5974 | Vglobale_fontset_alist, font_idx_temp): Externs removed. | |
5975 | (fs_load_font, fs_query_fontset): Adjusted for new argument. | |
5976 | (fs_free_face_fontset, fontset_font_pattern, | |
5977 | face_suitable_for_char_p, face_for_char, | |
5978 | make_fontset_for_ascii_face): Extern them. | |
5979 | (FS_LOAD_FONT): Adjusted for the change of fontset implementation. | |
5980 | (FS_LOAD_FACE_FONT): New macro. | |
5981 | ||
5982 | * fontset.c: All codes rewritten or adjusted for the change of | |
5983 | fontset implementation. Now fontset is represented by char table. | |
5984 | (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables | |
5985 | removed. | |
5986 | (my_strcasecmp): Function removed. | |
5987 | (Vfontset_table, next_fontset_id, Vdefault_fontset): New | |
5988 | variables. | |
5989 | (AREF, ASIZE): New macros. | |
5990 | (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME, | |
5991 | FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF, | |
5992 | FONTSET_REF_VIA_BASE, FONTSET_SET): New macros. | |
5993 | (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset, | |
5994 | fontset_id_valid_p, font_family_registry, fontset_name, | |
5995 | fontset_ascii, free_face_fontset, face_suitable_for_char_p, | |
5996 | face_for_char, make_fontset_for_ascii_face, fontset_font_pattern): | |
5997 | New functions. | |
5998 | (fs_load_font): New arg FACE. Caller changed. | |
5999 | (fs_query_fontset): Argument changed. Caller changed. | |
6000 | (Fquery_fontset): call fs_query_fontset. | |
6001 | (fs_register_fontset, alloc_fontset_data, free_fontset_data): | |
6002 | Functions removed. | |
6003 | (clear_fontset_elements, check_registry_encoding, | |
6004 | check_fontset_name): New functions. | |
6005 | (syms_of_fontset): Set char-table-extra-slots property of fontset | |
6006 | to 3. Staticpro and initialize Vfontset_table and | |
6007 | Vdefault_fontset. Defsubr fontset_font and fontset_list. | |
6008 | ||
6009 | * frame.h (struct frame): Member `fontset_data' removed. | |
6010 | (FRAME_FONTSET_DATA): Macro removed. | |
6011 | ||
6012 | * frame.c (make_frame): Don't allocate f->fontset_data. | |
6013 | (Fdelete_frame): Don't free f->fontset_data. | |
6014 | ||
6c4bfdc0 KH |
6015 | * msdos.c (XMenuActivate): Args to lookup_derived_face changed. |
6016 | ||
9111d4b5 KH |
6017 | * xdisp.c (charset_at_position): Function removed. |
6018 | (init_iterator): Don't set member charset of struct `it'. | |
6019 | (handle_face_prop, reseat_to_string, set_iterator_to_next, | |
6020 | next_element_from_display_vector, insert_left_trunc_glyphs): | |
6021 | Likewise. | |
6022 | (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not | |
6023 | FACE_FOR_CHARSET. | |
6024 | (get_next_display_element, append_space, | |
6025 | extend_face_to_end_of_line): Likewise. | |
6026 | ||
6027 | * xfaces.c (Qx_charset_registry, Vface_default_registry): | |
6028 | Variables removed. | |
6029 | (clear_font_table, frame_update_line_height, load_face_font): | |
6030 | Adjusted for the change of fontset implementation. | |
6031 | (load_face_fontset_font): Function removed. | |
6032 | (pixel_point_size): New function. | |
6033 | (font_list): Argument type changed. Caller changed. | |
6034 | (LFACE_FONT): New macro. | |
6035 | (check_lface_attrs): Check attr[LFACE_FONT_INDEX]. | |
6036 | (set_lface_from_font_name): Type of arg FONTNAME is changed to | |
6037 | Lisp_Object. Determine the font name by actually loading a font | |
6038 | by the specified pattern. Set LFACE_FONT (lface) to the specified | |
6039 | pattern. Even if a font is not found, don't try alternatives. | |
6040 | (Finternal_set_lisp_face_attribute): Handle `font' slot in lface. | |
6041 | (set_font_frame_param): If `font' is specified in lface, use it. | |
6042 | (Finternal_get_lisp_face_attribute): Handle `font' slot in lface. | |
6043 | (lface_same_font_attributes_p): Likewise. | |
6044 | (make_realized_face): Arguent changed. Caller changed. Set | |
6045 | face->ascii_face to face itself. | |
6046 | (free_realized_face): Free face->fontset if face is for ASCII. | |
6047 | (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p, | |
6048 | deduce_unibyte_registry, x_charset_registry): Functions removed. | |
6049 | (free_realized_multibyte_face): New function. | |
6050 | (lookup_face, lookup_named_face, lookup_derived_face): Argument | |
6051 | changed. Caller changed. | |
6052 | (try_font_list): Argument type changed. | |
6053 | (face_fontset): Check `font' slot of ATTRS, not `family' slot. | |
6054 | (choose_face_font): Argument changed. Handle fontset properly. | |
6055 | (choose_face_fontset_font): Function removed. | |
6056 | (realize_default_face, realize_named_face): Don't remove the | |
6057 | former face here. | |
6058 | (realize_face): Argument changed. Caller changed. Remove face | |
6059 | with the arg former_face_id in advance. Load font for the new | |
6060 | face. | |
6061 | (realize_x_face): Argument changed. Caller changed. For a | |
6062 | multibyte character, share fontset with base_face. For a single | |
6063 | byte character, make a new realized fontset. Don't load a font | |
6064 | here. | |
6065 | (realize_tty_face): Argument changed. Caller changed. | |
6066 | (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET. | |
6067 | (face_at_buffer_position): Don't check multibyte_p for returning | |
6068 | DEFAULT_FACE_ID. | |
6069 | (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not | |
6070 | FACE_SUITABLE_FOR_CHARSET_P. | |
6071 | (syms_of_xfaces): Remove code for Qx_charset_registry and | |
6072 | Vface_default_registry. | |
6073 | ||
6c4bfdc0 KH |
6074 | * xterm.c: Include fontset.h after dispextern.h. Undo the changes |
6075 | related to PER_CHAR_METRIC done by Gerd on 2000-03-03. | |
9111d4b5 KH |
6076 | (x_per_char_metric): Don't try FONT->default_char. Even if |
6077 | pcm->width is zero, glyph bits may exist. | |
6078 | (x_encode_char): Always initialize char2b->byte1. | |
6079 | (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id. | |
6080 | (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller | |
6081 | changed. | |
6082 | (x_append_glyph): Set glyph->glyph_not_available_p. | |
6083 | (x_produce_glyphs): Set it->glyph_not_available_p. Don't set | |
6084 | it->charset. Handle the case that per char metric is not | |
6085 | available. If it->multibyte_p is zero and it->c is a multibyte | |
6086 | character, convert it to a unibyte character. | |
6087 | (struct glyph_string): Delete member `charset'. | |
6088 | (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle | |
6089 | the case that per char metric is not available correctly. | |
6090 | (x_fill_glyph_string): Handle the case that the specific glyph is | |
6091 | not available correctly. | |
6092 | (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset. | |
6093 | (BUILD_COMPOSITE_GLYPH_STRING): Likewise. | |
6094 | (x_new_font): Call FS_LOAD_FONT, not fs_load_font. | |
6095 | (x_new_fontset): Call fontset_ascii to get ASCII font name of the | |
6096 | fontset. Don't call FS_LOAD_FONT. | |
6097 | ||
6098 | * xfns.c (Fx_create_frame): Don't cal fs_register_fontset. | |
6099 | (x_create_tip_frame): Likewise. | |
6100 | (Fx_close_connection): Free full_name of font_info. | |
6101 | ||
6102 | * fns.c (optimize_sub_char_table): New function. | |
6103 | (Foptimize_char_table): New function. | |
6104 | (syms_of_fns): Defsubr Soptimize_char_table. | |
6105 | ||
b33dd3b0 GM |
6106 | 2000-03-20 Gerd Moellmann <gerd@gnu.org> |
6107 | ||
6108 | * buffer.c (Fset_buffer_modified_p): Set update_mode_lines | |
6109 | only if buffer is displayed in some window. | |
6110 | ||
6111 | * xdisp.c (handle_single_display_prop): Initialize local `value'. | |
6112 | (try_window_reusing_current_matrix): Don't call scroll run | |
6113 | function if run's current and desired position are the same; | |
6114 | this prevents cursor flickering. | |
6115 | ||
4e8a9132 SM |
6116 | 2000-03-19 Stefan Monnier <monnier@cs.yale.edu> |
6117 | ||
6118 | * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c. | |
6119 | ||
6120 | * regex.c (RE_STRING_CHAR): New macro. | |
6121 | (GET_CHAR_AFER_2): Remove. | |
6122 | (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h. | |
6123 | (enum re_opcode_t): Remove on_failure_jump_exclusive. | |
6124 | (print_partial_compiled_pattern, re_compile_fastmap) | |
6125 | (re_match_2_internal): Remove on_failure_jump_exclusive. | |
6126 | (regex_compile): Turn optimizable P+ loops into PP*, so that the | |
6127 | optimization only need to work for * (ie. can use of_keep_string_jump). | |
6128 | Remove the special case for .*\n since it is now covered by the general | |
6129 | optimization. | |
6130 | (re_search_2): Don't bother with `room'. | |
6131 | (skip_one_char): New function. | |
6132 | (skip_noops): Simplify since `memory' is not needed any more. | |
6133 | (mutually_exclusive_p): Restructure slightly to use `switch' and | |
6134 | add handling for "all" remaining cases. | |
6135 | (re_match_2_internal): Change on_failure_jump_smart to use | |
6136 | on_failure_keep_string_jump (and redirect the end-of-loop jump) | |
6137 | rather than on_failure_jump_exclusive. | |
6138 | ||
2136fdd4 GM |
6139 | 2000-03-19 Gerd Moellmann <gerd@gnu.org> |
6140 | ||
6141 | * xfns.c (select_visual): Don't set dpyinfo->n_planes to the | |
6142 | number of bits per RGB because it's everywhere used as the depth | |
6143 | of the visual. | |
6144 | ||
6145 | * term.c (calculate_costs): Remove code dealing with X frames. | |
6146 | ||
18e21ce8 | 6147 | 2000-03-19 Richard M. Stallman <rms@gnu.org> |
e53ae11c RS |
6148 | |
6149 | * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte. | |
6150 | ||
d7b511c4 GM |
6151 | 2000-03-18 Gerd Moellmann <gerd@gnu.org> |
6152 | ||
6153 | * lread.c (read_integer): Unread the last char not consumed. | |
6154 | ||
16b5d424 GM |
6155 | 2000-03-17 Gerd Moellmann <gerd@gnu.org> |
6156 | ||
6157 | * xterm.c (x_update_window_cursor): Don't update in frames | |
d7b511c4 | 6158 | which are in the process of being deleted. |
16b5d424 | 6159 | |
1fa28578 GM |
6160 | 2000-03-16 Gerd Moellmann <gerd@gnu.org> |
6161 | ||
83488cce GM |
6162 | * Makefile.in (mostlyclean): Add `*.core'. |
6163 | (clean): Add `bootstrap-emacs'. | |
6164 | ||
1fa28578 GM |
6165 | * lread.c (read_integer): New function. |
6166 | (read1): Support read syntax #o, #x, #b, #r. | |
6167 | ||
99633e97 SM |
6168 | 2000-03-15 Stefan Monnier <monnier@cs.yale.edu> |
6169 | ||
1fa28578 GM |
6170 | * regex.c (re_match_2): Fix string shortening (to fit `stop') to |
6171 | make sure POINTER_TO_OFFSET gives the same value before and after | |
6172 | PREFETCH. Use `dfail' to guarantee "atomic" matching. | |
99633e97 SM |
6173 | (PTR_TO_OFFSET): Use POINTER_TO_OFFSET. |
6174 | (debug): Now only active if > 0 rather than if != 0. | |
6175 | (DEBUG_*): Update for the new meaning of `debug'. | |
1fa28578 GM |
6176 | (print_partial_compiled_pattern): Add missing `succeed' case. Use |
6177 | CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs | |
6178 | in `succeed_n', `jump_n' and `set_number_at'. | |
99633e97 SM |
6179 | (store_op1, store_op2, insert_op1, insert_op2) |
6180 | (at_begline_loc_p, at_endline_loc_p): Add prototype. | |
1fa28578 GM |
6181 | (group_in_compile_stack): Move to after its arg's types are |
6182 | declared and add a prototype. | |
99633e97 | 6183 | (PATFETCH): Define in terms of PATFETCH_RAW. |
1fa28578 GM |
6184 | (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' |
6185 | wrapper. | |
99633e97 | 6186 | (QUIT): Redefine as a nop except for NTemacs. |
1fa28578 GM |
6187 | (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix |
6188 | indentation of the greedy-op and shy-group code. | |
99633e97 SM |
6189 | (at_(beg|end)line_loc_p): Fix argument's types. |
6190 | (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc. | |
6191 | (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation. | |
6192 | (MATCHING_IN_FIRST_STRING): Remove. | |
1fa28578 GM |
6193 | (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr |
6194 | to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use | |
6195 | QUIT unconditionally. | |
99633e97 | 6196 | |
699238d9 GM |
6197 | 2000-03-15 Gerd Moellmann <gerd@gnu.org> |
6198 | ||
6199 | * minibuf.c (Fminibuffer_complete): Set point to ZV if finding | |
6200 | a sole completion. | |
6201 | ||
6202 | * process.c (send_process): Add a hint that the function | |
6203 | can call Lisp code to its comment. | |
6204 | ||
6205 | * lread.c (load_dangerous_libraries): New variable. | |
6206 | (Vbytecomp_version_regexp): New variable. | |
6207 | (safe_to_load_p): New function. | |
6208 | (Fload): Handle files not compiled with Emacs specially. | |
6209 | (syms_of_lread): New Lisp variable load-dangerous-libraries. | |
6210 | ||
34e23e5a GM |
6211 | 2000-03-14 Gerd Moellmann <gerd@gnu.org> |
6212 | ||
9c763cca GM |
6213 | * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon. |
6214 | ||
6215 | * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM | |
6216 | support functions only if HAVE_X11R6_XIM is defined. | |
6217 | (xim_instantiate_callback): Define only if HAVE_X11R6_XIM. | |
6218 | ||
6219 | * s/sol2.h (INHIBIT_X11R6_XIM): Define. | |
6220 | ||
6221 | * xfns.c (X_I18N_INHIBITED): Don't define. | |
6222 | (create_frame_xic): Remove conditional compilation on | |
6223 | X_I18N_INHIBITED. | |
6224 | (x_kill_gs_process, x_window): Use FRAME_X_VISUAL. | |
6225 | ||
6226 | * config.in (HAVE_X_I18N): Moved here from xterm.h. | |
6227 | (HAVE_X11R6_XIM): Define. | |
6228 | ||
6229 | * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in. | |
6230 | ||
34e23e5a GM |
6231 | * xterm.c (x_term_init): Add support for X resource `synchronous'. |
6232 | If set, call XSynchronize. | |
6233 | ||
66f0296e SM |
6234 | 2000-03-13 Stefan Monnier <monnier@cs.yale.edu> |
6235 | ||
34e23e5a GM |
6236 | * regex.c: Declare a new type `re_char' used throughout the code |
6237 | for the string char type. It's `const unsigned char' to match the | |
6238 | rest of Emacs. Consistently make sure all pointers to strings use | |
6239 | it and make sure all pointers into the pattern use `unsigned | |
6240 | char'. | |
66f0296e | 6241 | (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of |
34e23e5a GM |
6242 | GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce |
6243 | code duplication. | |
66f0296e SM |
6244 | |
6245 | * charset.h (GET_CHAR_AFTER_2): Remove. | |
6246 | (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else. | |
6247 | ||
854a025c KR |
6248 | 2000-03-12 Ken Raeburn <raeburn@gnu.org> |
6249 | ||
6250 | * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary | |
6251 | variable before the invocation of YMF_PASS_LDFLAGS, in case both | |
6252 | of them try to use backquotes. | |
6253 | ||
b9d2c7e2 DL |
6254 | 2000-03-12 Dave Love <fx@gnu.org> |
6255 | ||
6256 | * unexelf.c: Restore changes of 1999-10-19. | |
6257 | (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise | |
6258 | fix its type and alignment; copy it from current process. | |
6259 | ||
5e5dff44 GM |
6260 | 2000-03-12 Gerd Moellmann <gerd@gnu.org> |
6261 | ||
9b2f3c38 GM |
6262 | * atimer.c (cancel_atimer): Break out of the loop as soon as timer |
6263 | has been found. Fix bug not computing timer's predecessor. | |
6264 | ||
427ec082 | 6265 | * fileio.c (Fread_file_name): Handle case that DIR contains a |
9172b88d GM |
6266 | file name. |
6267 | ||
e1cff360 GM |
6268 | * window.c (Fsave_window_excursion): Doc fix. |
6269 | ||
5e5dff44 GM |
6270 | * xfns.c (x_defined_color): Rewritten to use |
6271 | x_allocate_nearest_color. | |
6272 | ||
e411ce4b EZ |
6273 | 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il> |
6274 | ||
6275 | * msdos.c (vga_installed): New function, code moved from | |
6276 | dos_set_window_size. | |
6277 | (Qbar, Qcursor_type, outside_cursor): New variables. | |
6278 | (syms_of_msdos): Intern and staticpro them. | |
6279 | (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor | |
6280 | shape used outside Emacs when called for the first time. | |
6281 | (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the | |
6282 | cursor shape used outside Emacs. | |
6283 | (msdos_set_cursor_shape, IT_set_cursor_type): New functions. | |
6284 | (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor | |
6285 | type has changed. | |
6286 | (IT_set_frame_parameters): Call IT_set_cursor_type if the frame | |
6287 | parameters specify the cursor. Make qreverse a global | |
6288 | variable (renamed to Qreverse). | |
6289 | ||
80460654 GM |
6290 | 2000-03-09 Gerd Moellmann <gerd@gnu.org> |
6291 | ||
6292 | * fns.c (Fy_or_n_p): Cancel busy-cursor. | |
6293 | ||
95cd4c40 SM |
6294 | 2000-03-08 Stefan Monnier <monnier@cs.yale.edu> |
6295 | ||
6296 | This is a big redesign of failure-stack and register handling, prompted | |
6297 | by bugs revealed when trying to add shy-groups. Overall, what happened | |
6298 | is that loops are now structured a little differently, groups can be | |
6299 | shy and the code is a little simpler. | |
6300 | ||
6301 | * regex.h: Update the copyright. | |
6302 | (RE_SHY_GROUPS): New value. | |
6303 | (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber. | |
6304 | (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS. | |
6305 | ||
80460654 GM |
6306 | * regex.c (enum re_opcode_t): Remove jump_past_alt, |
6307 | maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add | |
6308 | on_failure_jump_(exclusive, loop and smart). Also fix the comment | |
6309 | for (start|stop)_memory since they now only take one argument (the | |
6310 | second has becomes unnecessary). | |
6311 | (print_partial_compiled_pattern): Adjust for changes in | |
6312 | re_opcode_t. | |
6313 | (print_compiled_pattern): Use %ld to printf long ints and flush to | |
6314 | make debugging a little easier. | |
95cd4c40 SM |
6315 | (union fail_stack_elt): Make the integer unsigned. |
6316 | (struct fail_stack_type): Add a `frame' element. | |
6317 | (INIT_FAIL_STACK): Init `frame' as well. | |
6318 | (POP_PATTERN_OP): New macro for re_compile_fastmap. | |
6319 | (DEBUG_PUSH, DEBUG_POP): Remove. | |
6320 | (NUM_REG_ITEMS): Remove. | |
6321 | (NUM_NONREG_ITEMS): Adjust. | |
80460654 GM |
6322 | (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE) |
6323 | (TOP_FAILURE_HANDLE): New macros for the cycle detection. | |
95cd4c40 | 6324 | (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT). |
80460654 GM |
6325 | (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New |
6326 | macros. | |
6327 | (PUSH_FAILURE_POINT): Don't push registers any more. The pattern | |
6328 | address pushed is not the destination of the jump but the source | |
6329 | of it instead. | |
95cd4c40 SM |
6330 | (NUM_FAILURE_ITEMS): Remove. |
6331 | (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop | |
80460654 GM |
6332 | registers before the actual failure point). Don't hardcode any |
6333 | meaning for str==NULL anymore. | |
95cd4c40 | 6334 | (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE) |
80460654 GM |
6335 | (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED): |
6336 | Remove. | |
95cd4c40 SM |
6337 | (REG_UNSET_VALUE): Use NULL (why not?). |
6338 | (compile_range): Remove declaration since it doesn't exist. | |
6339 | (struct compile_stack_elt_t): Remove inner_group_offset. | |
6340 | (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove. | |
6341 | (regex_grow_registers): Remove dead code. | |
6342 | (FIXUP_ALT_JUMP): New macro. | |
80460654 GM |
6343 | (regex_compile): Add shy-groups Change loops to use |
6344 | on_failure_jump_smart&jump instead of | |
6345 | on_failure_jump&maybe_pop_jump. Change + loops to eliminate the | |
6346 | initial (dummy_failure_)jump. Remove c1_base (looks like unused | |
6347 | variable to me). Use `jump' instead of `jump_past_alt' and don't | |
6348 | bother with push_dummy_failure in alternatives since it is now | |
6349 | unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef | |
6350 | emacs' for (re)allocating the stack. | |
6351 | (re_compile_fastmap): Remove dead variables i and num_regs. Exit | |
6352 | from loop when bufp->can_be_null rather than jumping to `done'. | |
6353 | Avoid jumping backwards so as to ensure termination. Use | |
6354 | PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of | |
6355 | backreferences. Remove dead code in handling of `anychar'. | |
95cd4c40 | 6356 | (skip_noops, mutually_exclusive_p): New functions taken from the |
80460654 GM |
6357 | handling of `maybe_pop_jump' in re_match_2_internal. Slightly |
6358 | improve mutually_exclusive_p to handle ".+\n". | |
6359 | (lowest_active_reg, highest_active_reg, | |
6360 | NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove. | |
6361 | (re_match_2_internal): Use %p instead of 0x%x when printf'ing | |
6362 | ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead | |
6363 | variables. Push register (in `start_memory') on the stack rather | |
6364 | than storing it in old_reg(start|end). Remove the cycle detection | |
6365 | from `stop_memory', replaced by the use of on_failure_jump_loop | |
6366 | for greedy loops. Add code for the new on_failure_jump_<foo>. | |
6367 | Remove ad-hoc code in `on_failure_jump' to push more registers in | |
6368 | the case of a loop. Take out code from `maybe_pop_jump' into | |
6369 | separate functions and adapt it to the semantics of | |
6370 | `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump | |
6371 | and push_dummy_failure. Remove dummy_failure handling and | |
6372 | handling of `failures to jump to on_failure_jump' (this last one | |
6373 | was already dead code, it seems). | |
6374 | (group_match_null_string_p, alt_match_null_string_p) | |
6375 | (common_op_match_null_string_p): Remove. | |
95cd4c40 | 6376 | |
7397acc4 DL |
6377 | 2000-03-08 Dave Love <fx@gnu.org> |
6378 | ||
6379 | * config.in: Don't depend on __STDC__ for volatile. | |
6380 | Add POINTER_TYPE, PTR, PROTOTYPES. | |
6381 | ||
6382 | * hftctl.c, strftime.c: Use PROTOTYPES. | |
6383 | * eval.c (find_handler_clause): Likewise. | |
6384 | ||
6385 | * mem-limits.h: Use POINTER_TYPE. | |
6386 | ||
6387 | * lisp.h (P_): Define based on PROTOTYPES, not __STDC__. | |
6388 | (memory_warnings): Declare using POINTER_TYPE. | |
6389 | ||
5e91ff9e GM |
6390 | 2000-03-08 Gerd Moellmann <gerd@gnu.org> |
6391 | ||
feab4fba GM |
6392 | * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor. |
6393 | ||
25edb08f GM |
6394 | * xdisp.c (display_echo_area): Temporarily inhibit garbage |
6395 | collection. | |
6396 | ||
5e91ff9e GM |
6397 | * xfns.c: Remove obsolete code in #if 0. |
6398 | (Fx_focus_frame): New function. | |
6399 | ||
a735b7e1 KH |
6400 | 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp> |
6401 | ||
6402 | * coding.c (coding_category_name): Add coding-category-utf-8, | |
6403 | coding-category-utf-16-be, coding-category-utf-16-le. | |
6404 | (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P, | |
6405 | UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P, | |
6406 | UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros. | |
6407 | (detect_coding_utf_8): New function. | |
6408 | (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P | |
6409 | UTF_16_LOW_SURROGATE_P): New macros. | |
6410 | (detect_coding_utf_16): New function | |
6411 | (detect_coding_mask): When priorities are specified, skip any | |
6412 | categories that have `nil' coding-system. Fix bug of returning | |
6413 | wrong mask when PRIORITIES is specified and detect_coding_XXX() | |
6414 | returns a mask not set in PRIORITIES. | |
6415 | (detect_eol_type_in_2_octet_form): New function. | |
6416 | (detect_eol): selects detect_eol_type_XXX to call according to | |
6417 | cooding->category_idx. | |
6418 | (detect_coding_system): Remove `nil' coding-system in the result. | |
6419 | (Fupdate_coding_systems_internal): Update all coding-categories. | |
6420 | ||
6421 | * coding.h (CODING_CATEGORY_IDX_UTF_8, | |
6422 | CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New | |
6423 | macros. | |
6424 | (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY, | |
6425 | CODING_CATEGORY_IDX_MAX): Adjusted for the above macros. | |
6426 | CODING_CATEGORY_IDX_UTF_16_LE. | |
6427 | (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE, | |
6428 | CODING_CATEGORY_MASK_UTF_16_LE): New macros. | |
6429 | (CODING_CATEGORY_MASK_ANY): Include the above macros. | |
6430 | (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro. | |
6431 | ||
9994cc69 GM |
6432 | 2000-03-07 Gerd Moellmann <gerd@gnu.org> |
6433 | ||
e9b4e5ff GM |
6434 | * doc.c (Fdocumentation_property): If value is not a string, |
6435 | and doesn't refer to etc/DOC, evaluate it to obtain a string. | |
6436 | ||
f7daf1e1 GM |
6437 | * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to |
6438 | close the display with XtCloseDisplay. This caused a bus error | |
6439 | on OpenWindows. | |
6440 | ||
9994cc69 GM |
6441 | * minibuf.c (Fminibuffer_complete): Move point to ZV when input is |
6442 | complete but not unique. | |
6443 | ||
4336c705 GM |
6444 | 2000-03-06 Gerd Moellmann <gerd@gnu.org> |
6445 | ||
18bb0684 GM |
6446 | * process.c (send_process): Remove local variable `procname' that |
6447 | might become invalid when a GC happens. Instead, access the | |
6448 | process name slot directly. | |
6449 | ||
4336c705 GM |
6450 | * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and |
6451 | orig_height if set. | |
6452 | ||
6453 | * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and | |
6454 | orig_height if set. | |
6455 | ||
515d0d0e EZ |
6456 | 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il> |
6457 | ||
6458 | * msdos.c (IT_note_mouse_highlight): Return immediately if frame's | |
6459 | glyph matrices have been freed. | |
6460 | ||
100b3cbb GM |
6461 | 2000-03-05 Gerd Moellmann <gerd@gnu.org> |
6462 | ||
50df5e5a | 6463 | * Makefile.in (tags): Include ../lwlib/TAGS in TAGS. |
6178bc23 | 6464 | (bootstrap-temacs): Set LC_ALL to C like for temacs. |
50df5e5a GM |
6465 | |
6466 | * xfns.c (QCdata): Moved to xdisp.c. | |
6467 | ||
6468 | * xdisp.c (QCdata): Moved here from xfns.c. | |
6469 | (syms_of_xdisp): Initialize QCdata. | |
6470 | ||
6471 | * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define. | |
6472 | ||
6473 | * window.c (coordinates_in_window): Use | |
6474 | FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of | |
6475 | FRAME_INTERNAL_BORDER_WIDTH. | |
6476 | ||
100b3cbb | 6477 | * xdisp.c (try_window_id): Recompute unchanged information if |
4336c705 | 6478 | it is obviously invalid. |
100b3cbb GM |
6479 | |
6480 | * xterm.c (x_term_init): Create a colormap if not using the | |
6481 | default visual. | |
6482 | ||
6483 | * xterm.h (select_visual): Change prototype. | |
6484 | ||
6485 | * xfns.c (select_visual): Rewritten. Recognize user-specified | |
6486 | visual classes. | |
6487 | (visual_classes): New variable. | |
6488 | ||
64d739c4 GM |
6489 | 2000-03-04 Gerd Moellmann <gerd@gnu.org> |
6490 | ||
6491 | * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color) | |
6492 | (lookup_pixel_color, x_laplace, x_build_heuristic_mask) | |
6493 | (png_load): Access colormap of frame using FRAME_X_COLORMAP. | |
6494 | (x_decode_color): Don't handle allocation of white and black | |
6495 | specially. | |
6496 | (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and | |
6497 | XtNcolormap resources. | |
6498 | (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow. | |
6499 | (Fx_create_frame): Initialize color members of x_output structure. | |
6500 | (xpm_load): Pass colormap to XPM lib. | |
6501 | ||
6502 | * xfaces.c (x_free_colors): Access colormap of frame using | |
6503 | FRAME_X_COLORMAP. Be paranoid about freeing black and white | |
6504 | when default colormap is used. | |
6505 | ||
6506 | * xterm.c (x_term_init): Set Colormap member of x_display_info | |
6507 | structure. Copy colormap if resource `privateColormap' is | |
6508 | specified (PseudoColor only). | |
6509 | (x_setup_relief_color): Access colormap of frame using | |
6510 | FRAME_X_COLORMAP. | |
6511 | ||
6512 | * xterm.h (struct x_display_info): Add Colormap member `cmap'. | |
6513 | (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros. | |
6514 | ||
c3cee013 JR |
6515 | 2000-03-04 Jason Rumney <jasonr@gnu.org> |
6516 | ||
6517 | * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or | |
6518 | other non-platform-specific equivalents. | |
64d739c4 | 6519 | [WINDOWSNT]: Include w32term.h, fontset.h and define X |
c3cee013 JR |
6520 | specific functions and macros as their w32 equivalents where |
6521 | non-platform-specifics are not available. | |
6522 | [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM. | |
6523 | (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions. | |
6524 | (clear_font_table) [WINDOWSNT]: Call w32_unload_font. | |
6525 | (frame_update_line_height): Use macros to access f->output_data. | |
6526 | (defined_color): Remove FIXME comments; fixed. | |
6527 | (x_face_list_fonts, prepare_face_for_display): Put X specifics | |
6528 | into #ifdef blocks. Add WINDOWSNT blocks. | |
6529 | (Fx_list_fonts): Use macros for accessing font data. | |
6530 | (set_lface_from_font_name): Different default fonts for X and | |
6531 | WINDOWSNT. | |
6532 | (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as | |
6533 | scalable for backward compatibility. | |
64d739c4 | 6534 | (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT. |
c3cee013 JR |
6535 | (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default. |
6536 | ||
64d739c4 | 6537 | * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of |
c3cee013 JR |
6538 | syms_of_w32faces. |
6539 | ||
6540 | * makefile.nt (w32faces.obj): Remove. | |
6541 | (xfaces.obj): Add. | |
6542 | ||
807cc41c JR |
6543 | 2000-03-03 Jason Rumney <jasonr@gnu.org> |
6544 | ||
6545 | * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with | |
6546 | correct parameters. | |
6547 | ||
0007072a KR |
6548 | 2000-03-03 Ken Raeburn <raeburn@gnu.org> |
6549 | ||
6550 | * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide | |
6551 | standard ELF definitions here if the system header does not. | |
6552 | ||
71a6ba55 GM |
6553 | 2000-03-03 Gerd Moellmann <gerd@gnu.org> |
6554 | ||
6555 | * xterm.c (PER_CHAR_METRIC): Removed. | |
6556 | (x_per_char_metric_1, x_default_char): New functions. | |
6557 | (x_per_char_metric): If font's default char is invalid, return | |
6558 | metrics of a suitably chosen usable default char. | |
6559 | (x_draw_glyph_string_foreground): If font has an invalid default | |
64d739c4 GM |
6560 | char, replace occurrences of unprintable chars with a suitably |
6561 | chosen usable default char. | |
71a6ba55 | 6562 | |
900fa1f1 GM |
6563 | 2000-03-02 Gerd Moellmann <gerd@gnu.org> |
6564 | ||
42f55fe0 GM |
6565 | * xterm.c (note_mouse_highlight): Return quickly if frame's |
6566 | glyph matrices have been freed. | |
6567 | ||
6568 | * dispnew.c (free_glyphs): Block input while freeing matrices. | |
6569 | ||
900fa1f1 GM |
6570 | * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors. |
6571 | ||
6572 | * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use | |
6573 | x_free_colors. | |
6574 | ||
6575 | * dispextern.h (x_free_colors): Add prototype. | |
6576 | ||
6577 | * xfaces.c (x_free_colors): New function. | |
6578 | (unload_color, free_face_colors): Use it. | |
6579 | ||
2f950292 EZ |
6580 | 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il> |
6581 | ||
6582 | * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero. | |
6583 | ||
6584 | * window.c [MSDOS]: Include msdos.h. | |
6585 | ||
54d04320 DL |
6586 | 2000-03-02 Dave Love <fx@gnu.org> |
6587 | ||
6588 | * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH. | |
6589 | ||
6590 | * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't | |
6591 | set C_OPTIMIZE_SWITCH for gcc. | |
6592 | ||
0ba93ac4 KH |
6593 | 2000-03-02 Kenichi Handa <handa@etl.go.jp> |
6594 | ||
6595 | * coding.c (coding_save_composition): Be sure to allocate | |
6596 | composition data area in coding even if there's no composition in | |
6597 | the current run. | |
6598 | ||
a2bc11d4 JR |
6599 | 2000-03-01 Jason Rumney <jasonr@gnu.org> |
6600 | ||
6601 | * w32term.c: Equivalent changes to those made to xterm.c on | |
6602 | 2000-02-25 and 2000-02-24. | |
6603 | ||
6604 | * w32fns.c: Equivalent changes to those made to xfns.c on | |
6605 | 2000-02-25 and 2000-02-21. | |
6606 | ||
6607 | * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure | |
6608 | correct line-end convention is followed. | |
6609 | ||
6610 | * w32menu.c [HAVE_BOXES]: Remove #undef. | |
6611 | (single_keymap_panes): Remove code for simulating checkmarks. | |
6612 | (single_menu_item): Remove notbuttons_ptr argument. Callers changed. | |
6613 | Remove code for drawing simulated checkmarks. | |
6614 | (w32_menu_show): make unibyte help string correctly. | |
6615 | (add_menu_item): draw standard Windows checkmarks. Draw radio | |
6616 | buttons as radio buttons if possible. | |
6617 | ||
72d19d75 GM |
6618 | 2000-03-01 Gerd Moellmann <gerd@gnu.org> |
6619 | ||
2df636f4 GM |
6620 | * sysdep.c (start_of_text): Don't define this function for NetBSD |
6621 | with ELF. | |
6622 | ||
427ec082 | 6623 | * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]: |
2df636f4 GM |
6624 | Don't define. |
6625 | (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o. | |
6626 | (LINKER): Don't undef if __NetBSD__ is defined. | |
6627 | ||
6628 | * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define. | |
6629 | ||
6630 | * fileio.c [__NetBSD__]: Define `unix'. | |
6631 | ||
72d19d75 GM |
6632 | * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay. |
6633 | ||
ed4d0512 GM |
6634 | 2000-02-29 Gerd Moellmann <gerd@gnu.org> |
6635 | ||
50b1039f GM |
6636 | * atimer.c (start_atimer): Don't abort when timers are stopped. |
6637 | (append_atimer_lists): New function. | |
6638 | (cancel_atimer, stop_other_atimers, run_all_atimers): Handle | |
6639 | arbitrary lists of stopped and running atimers. | |
6640 | ||
ed4d0512 GM |
6641 | * atimer.c (cancel_atimer): Handle canceling an atimer when |
6642 | some timers are stopped. | |
6643 | ||
6644 | * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null | |
6645 | after canceling it. | |
6646 | ||
6647 | * fns.c (maybe_resize_hash_table): Handle case of new size | |
6648 | coming out as being the same as old size. | |
6649 | ||
387023ee JR |
6650 | 2000-02-27 Jason Rumney <jasonr@gnu.org> |
6651 | ||
6652 | * makefile.nt: Add atimer.h to dependencies. | |
6653 | * w32.c (init_environment): Set Vw32_num_mouse_buttons here. | |
6654 | * w32console.c: Only disable window system features for dispextern.h | |
6655 | (initialize_w32_display): Build a display info for the console. | |
6656 | * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17. | |
6657 | * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN, | |
6658 | WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice | |
6659 | as 2 button mice. | |
6660 | * w32gui.h (struct W32FontStruct): Revert last change after change | |
6661 | to xdisp.c. | |
6662 | * w32menu.c (single_submenu): Set up help string. | |
6663 | [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip. | |
6664 | (w32_dialog_show): Set up help string. | |
6665 | * w32term.c (w32_display_info_for_display): Remove unused function. | |
6666 | (w32_draw_bitmap): Use pre-built bitmaps. | |
6667 | (w32_initialize_display_info): New function to initialize parts of | |
6668 | display info that are common to both GUI and console frames. | |
6669 | (w32_term_init): Use w32_initialize_display_info. Do not set | |
6670 | Vw32_num_mouse_buttons here, as it is not called for console | |
6671 | frames. Build bitmaps for indicating truncated lines etc. | |
6672 | (x_delete_display): Destroy pre-built bitmaps. | |
6673 | * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro. | |
6674 | (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM. | |
6675 | ||
4516715a DL |
6676 | 2000-02-27 Dave Love <fx@gnu.org> |
6677 | ||
6678 | * lisp.h: Add a bunch of prototypes. | |
6679 | ||
171ca836 KH |
6680 | 2000-02-26 Kenichi Handa <handa@etl.go.jp> |
6681 | ||
6682 | * keyboard.c (read_char): Set `usec' correctly. | |
6683 | ||
4013921d KH |
6684 | 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp> |
6685 | ||
6686 | * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is | |
6687 | `lambda', set reg[RRR] to the map index. | |
6688 | (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set | |
6689 | reg[RRR] to 0. Otherwise, set it to -1. | |
6690 | ||
9244a058 GM |
6691 | 2000-02-25 Gerd Moellmann <gerd@gnu.org> |
6692 | ||
2df636f4 | 6693 | * emacs.c (main): Remove code snippet commented out with `//'. |
9244a058 | 6694 | |
18e21ce8 | 6695 | 2000-02-25 Richard M. Stallman <rms@gnu.org> |
427ec082 | 6696 | |
f43d79c1 GM |
6697 | * fileio.c (Ffile_symlink_p): If result starts with a `/' |
6698 | and contains a `:', prepend `/:'. | |
6699 | ||
6700 | * window.c (select_window_1): If selected_window is nil, | |
6701 | don't "swap out" the buffer's point. | |
6702 | (Fset_window_configuration): Set selected_window to nil | |
6703 | before calling Fselect_window. | |
6704 | (unshow_buffer): Don't set point in buffer from window's point | |
6705 | if another more recently selected window also shows the buffer. | |
6706 | ||
bed0c171 GM |
6707 | 2000-02-25 Gerd Moellmann <gerd@gnu.org> |
6708 | ||
449c3c52 GM |
6709 | * keyboard.c (recursive_edit_1): Cancel busy-cursor. |
6710 | ||
f5b58615 GM |
6711 | * xfns.c (inhibit_busy_cursor, busy_count): Removed. |
6712 | (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed. | |
6713 | (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New | |
6714 | variables. | |
6715 | (DEFAULT_BUSY_CURSOR_DELAY): New define. | |
6716 | (start_busy_cursor, cancel_busy_cursor, show_busy_cursor) | |
6717 | (hide_busy_cursor): New functions. | |
6718 | (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay. | |
6719 | ||
6720 | * minibuf.c (read_minibuf): Cancel busy-cursor. | |
6721 | ||
6722 | * keyboard.c (command_loop_1): Call start_busy_cursor before | |
6723 | Fcommand_execute and cancel_busy_cursor after it. | |
6724 | (timer_check): Remove busy-cursor code. | |
6725 | (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy | |
6726 | cursor timer. | |
6727 | ||
6728 | * process.c (wait_reading_process_input): Remove busy-cursor code. | |
6729 | ||
6730 | * eval.c (Fsignal): Call cancel_busy_cursor instead of | |
6731 | Fx_hide_busy_cursor. | |
6732 | ||
6733 | * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor): | |
6734 | Remove prototyoes. | |
6735 | (start_busy_cursor, cancel_busy_cursor): Add prototypes. | |
6736 | ||
6737 | * lisp.h (Fx_hide_busy_cursor): Remove prototype. | |
6738 | ||
6739 | * xterm.c (XTread_socket): Remove busy-cursor code. | |
6740 | ||
4eb8436f GM |
6741 | * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function. |
6742 | (build_frame_matrix_from_leaf_window): Put code handling | |
6743 | glyph row's not being a slice of a frame row in #if 0. | |
6744 | (sync_window_with_frame_matrix_rows): New function. | |
6745 | (frame_row_to_window): New function. | |
6746 | (mirror_line_dance): Handle copies between windows. | |
6747 | ||
3cb65b0e GM |
6748 | * lread.c (Fload): Use `xfree' instead of `free'. |
6749 | (init_obarray): Use `xmalloc' instead of `malloc'. | |
6750 | ||
bed0c171 GM |
6751 | * window.c (Fset_window_buffer): Set WINDOW to the window |
6752 | after decoding. | |
2add4349 GM |
6753 | (coordinates_in_window): Take frame's internal border width |
6754 | into account. | |
bed0c171 | 6755 | |
42088c12 GM |
6756 | 2000-02-24 Gerd Moellmann <gerd@gnu.org> |
6757 | ||
6758 | * xterm.c (x_display_and_set_cursor): Display cursor of | |
6759 | non-selected windows depending on the setting of | |
6760 | cursor_in_non_selected_windows. | |
6761 | ||
6762 | * xdisp.c (cursor_in_non_selected_windows): New variable. | |
6763 | (syms_of_xdisp): DEFVAR_BOOL it. | |
6764 | ||
d1e103b2 GM |
6765 | 2000-02-23 Gerd Moellmann <gerd@gnu.org> |
6766 | ||
723e779c GM |
6767 | * data.c (Fstring_to_number): If number is greater than what |
6768 | fits into an integer, return a float. | |
6769 | ||
d1e103b2 GM |
6770 | * eval.c (specbind): Remove references to |
6771 | keyword_symbols_constant_flag. | |
6772 | ||
6773 | * data.c (keyword_symbols_constant_flag): Removed. | |
6774 | (Fmakunbound, set_internal, syms_of_data): Remove references to | |
6775 | keyword_symbols_constant_flag. | |
6776 | ||
6777 | * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag. | |
6778 | ||
214f877f KH |
6779 | 2000-02-23 Kenichi Handa <handa@etl.go.jp> |
6780 | ||
6781 | * syntax.c (multibyte_syntax_as_symbol): New variable. | |
6782 | (syms_of_syntax): Declare it as a Lisp variable. | |
6783 | (SYNTAX_WITH_MULTIBYTE_CHECK): New macro. | |
6784 | (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are | |
6785 | nonzero, treat all multibyte characters as symbol. | |
42088c12 | 6786 | (init_syntax_once): Give syntax `word' to all multibyte |
214f877f KH |
6787 | characters. |
6788 | ||
130adcb7 EZ |
6789 | 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il> |
6790 | ||
3cb65b0e | 6791 | * frame.c (Fdelete_frame): Don't let echo_area_window remain on |
d7d0dac0 | 6792 | a deleted frame. |
130adcb7 | 6793 | |
17cbbf95 GM |
6794 | 2000-02-21 Gerd Moellmann <gerd@gnu.org> |
6795 | ||
6796 | * frame.c (Fmouse_position): GCPRO retval instead of x and y. | |
6797 | ||
6798 | * xfns.c (x_window_to_frame, x_any_window_to_frame) | |
6799 | (x_non_menubar_window_to_frame): Check the busy-cursor window. | |
6800 | ||
beb0bc36 DL |
6801 | 2000-02-21 Dave Love <fx@gnu.org> |
6802 | ||
6803 | * frame.c (Vmouse_position_function): New variable. | |
6804 | (Fmouse_position): Use it. | |
6805 | (syms_of_frame): Install it. | |
6806 | ||
6807 | * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'. | |
6808 | ||
1d92afcd GM |
6809 | 2000-02-20 Gerd Moellmann <gerd@gnu.org> |
6810 | ||
6811 | * fileio.c (Finsert_file_contents): Unbind the binding of | |
6812 | standard-output done by temp_output_buffer_setup. | |
329eed9f GM |
6813 | |
6814 | * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless | |
6815 | Vmocklisp_arguments is nil. Inline Fcar and Fcdr. | |
6816 | (specbind, unbind_to): Handle most common case of non-constant | |
6817 | symbol with trivial value specially. | |
6818 | ||
6819 | * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case. | |
6820 | ||
18e21ce8 | 6821 | 2000-02-20 Richard M. Stallman <rms@gnu.org> |
2d06696f RS |
6822 | |
6823 | * data.c (Fmake_variable_buffer_local): Doc fix. | |
6824 | Init found_for_buffer to 0. | |
6825 | (Fmake_variable_frame_local): If the variable has already | |
6826 | been buffer-local, set the check_frame field. | |
6827 | ||
1d4311c3 EZ |
6828 | 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il> |
6829 | ||
6830 | * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data | |
6831 | produced for CODING_MODE_LAST_BLOCK requires. | |
6832 | ||
2dc95ddd DL |
6833 | 2000-02-18 Dave Love <fx@gnu.org> |
6834 | ||
6835 | * keyboard.c (echo_keystrokes): Remove declaration. | |
6836 | (Vecho_keystrokes) New variable. | |
6837 | (read_char, record_menu_key, read_key_sequence): Use it to allow | |
6838 | use of float value. | |
6839 | (syms_of_keyboard): Change Vecho_keystrokes declaration. | |
6840 | ||
6841 | * lread.c: Undef feature selection macros before defining. | |
6842 | ||
f0930f35 GM |
6843 | 2000-02-18 Gerd Moellmann <gerd@gnu.org> |
6844 | ||
6845 | * data.c (let_shadows_buffer_binding_p): Ignore specbindings | |
6846 | for symbols other than the symbol in question. | |
6847 | ||
e3d4de90 DL |
6848 | 2000-02-17 Dave Love <fx@gnu.org> |
6849 | ||
6850 | * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization. | |
6851 | ||
0b378936 GM |
6852 | 2000-02-17 Gerd Moellmann <gerd@gnu.org> |
6853 | ||
d621caf7 GM |
6854 | * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef. |
6855 | ||
0b378936 GM |
6856 | * alloc.c (enum mem_type): Compile unconditionally. |
6857 | ||
3b451f74 EZ |
6858 | 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il> |
6859 | ||
6860 | * xfaces.c (tty_defined_color): Don't return faulire indication | |
6861 | for unspecified-fg and unspecified-bg pseudo-colors. | |
6862 | ||
10689a01 GM |
6863 | 2000-02-17 Gerd Moellmann <gerd@gnu.org> |
6864 | ||
1216f5e4 GM |
6865 | * alloc.c (mark_object): Don't mark symbol names in pure space. |
6866 | (gc_sweep): Don't unmark symbol names in pure space. | |
6867 | ||
6868 | * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS) | |
6869 | (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES) | |
6870 | [GC_MARK_STACK]: New defines. | |
427ec082 | 6871 | (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO) |
1216f5e4 GM |
6872 | [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops. |
6873 | ||
6874 | * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base. | |
6875 | ||
6876 | * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use | |
6877 | allocate_buffer instead of xmalloc. | |
6878 | ||
6879 | * alloc.c (toplevel): Include setjmp.h. | |
6880 | (PURE_POINTER_P): New define. | |
6881 | (enum mem_type) [GC_MARK_STACK]: New enumeration. | |
6882 | (Vdead) [GC_MARK_STACK]: New variable. | |
6883 | (lisp_malloc): Add parameter TYPE, call mem_insert if | |
6884 | GC_MARK_STACK is defined. | |
6885 | (allocate_buffer): New function. | |
427ec082 | 6886 | (lisp_free) [GC_MARK_STACK]: Call mem_delete. |
1216f5e4 GM |
6887 | (free_float) [GC_MARK_STACK]: Set type to Vdead. |
6888 | (free_cons) [GC_MARK_STACK]: Set car to Vdead. | |
6889 | (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables. | |
6890 | (MEM_NIL) [GC_MARK_STACK]: New define. | |
6891 | (struct mem_node) [GC_MARK_STACK]: New structure. | |
6892 | (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup) | |
6893 | (mem_delete_fixup, mem_rotate_left, mem_rotate_right) | |
6894 | (live_string_p, live_cons_p, live_symbol_p, live_float_p) | |
6895 | (live_misc_p, live_vector_p, live_buffer_p, mark_memory) | |
6896 | (mark_stack) [GC_MARK_STACK]: New functions. | |
6897 | (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack. | |
6898 | (clear_marks): Removed. | |
6899 | (gc_sweep): Set free conses' car, free floats' type, free | |
6900 | symbols' function to Vdead. Use lisp_free to free buffers. | |
6901 | (init_alloc_once): Initialize Vdead. | |
6902 | (survives_gc_p): Return non-zero for pure objects. | |
6903 | ||
6904 | * alloc.c: Add comments throughout the file. | |
6905 | ||
2503c8b1 GM |
6906 | * atimer.c (stop_other_atimers): Don't call cancel_atimer because |
6907 | that unblocks alarms. | |
6908 | ||
8389e1e2 GM |
6909 | * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c, |
6910 | emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h, | |
6911 | Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'. | |
6912 | ||
10689a01 | 6913 | * frame.c (make_frame): Set frame initiallly to `garbaged'. |
427ec082 | 6914 | |
bfc17d18 KH |
6915 | 2000-02-17 Kenichi Handa <handa@etl.go.jp> |
6916 | ||
4a09dee0 KH |
6917 | * xdisp.c (decode_mode_spec_coding): Delete superfluous code to |
6918 | avoid infinite error signaling. Allocate sufficient memory for | |
6919 | eol_str in the case that eoltype is Lisp_Int. | |
bfc17d18 | 6920 | |
2b927d02 SM |
6921 | 2000-02-17 Stefan Monnier <monnier@cs.yale.edu> |
6922 | ||
6923 | * syntax.c (Fforward_comment): Undo the previous change, since cc-mode | |
6924 | depends on the previous behavior. | |
6925 | ||
b49cb764 GM |
6926 | 2000-02-16 Gerd Moellmann <gerd@gnu.org> |
6927 | ||
6928 | * sysdep.c (vfork) [!HAVE_VFORK]: Removed. | |
6929 | ||
99e95407 GM |
6930 | 2000-02-15 Gerd Moellmann <gerd@gnu.org> |
6931 | ||
6932 | * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define. | |
6933 | ||
6934 | * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]: | |
b49cb764 | 6935 | Workaround for FreeBSD bug. Clear output queue after EAGAIN in |
99e95407 GM |
6936 | write(2). |
6937 | ||
6ffd3cf7 RS |
6938 | 2000-02-15 Richard M. Stallman <rms@gnu.org> |
6939 | ||
6940 | * data.c (set_internal): Don't make variable buffer-local | |
6941 | if within a let-binding for the same buffer. | |
6942 | (let_shadows_buffer_binding_p): New function. | |
6943 | ||
6944 | * eval.c (specbind): For buffer-local value, | |
6945 | record the current buffer also. | |
6946 | (unbind_to): Cope with that change. | |
6947 | ||
cad53475 GM |
6948 | 2000-02-15 Gerd Moellmann <gerd@gnu.org> |
6949 | ||
6950 | * window.c (Fsave_window_excursion): Doc fix. | |
6951 | ||
1aa963c8 SM |
6952 | 2000-02-15 Stefan Monnier <monnier@cs.yale.edu> |
6953 | ||
6954 | * syntax.c (back_comment): Make sure we only consider comment-starters | |
6955 | of the relevant style and return -1 in case of a failure to find the | |
6956 | beginning of the comment. | |
6957 | (Fforward_comment): If back_comment fails, go back to the position just | |
6958 | after the comment-end. | |
6959 | (scan_lists): Add comment describing a very minor bug. | |
6960 | ||
b9b84fd3 SM |
6961 | 2000-02-14 Stefan Monnier <monnier@cs.yale.edu> |
6962 | ||
6963 | * minibuf.c (Ftry_completion, Fall_completions): Add a reference to | |
6964 | `completion-regexp-list' in the docstring. | |
6965 | ||
3a28db80 DL |
6966 | 2000-02-14 Dave Love <fx@gnu.org> |
6967 | ||
6968 | * xfaces.c (tty_defined_color): Declare color_idx unsigned long. | |
6969 | ||
fb4a568d SM |
6970 | 2000-02-14 Stefan Monnier <monnier@cs.yale.edu> |
6971 | ||
6972 | * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS | |
6973 | to Emacs' syntax. Also fix the comment about set/not-set meanings | |
6974 | since Emacs syntax is not the value 0 any more. | |
6975 | * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax | |
6976 | since it's now part of RE_SYNTAX_EMACS. | |
6977 | ||
1063ebb5 DL |
6978 | 2000-02-12 Dave Love <fx@gnu.org> |
6979 | ||
6980 | * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on | |
6981 | Alpha. | |
6982 | ||
fb07a302 GM |
6983 | 2000-02-12 Gerd Moellmann <gerd@gnu.org> |
6984 | ||
6985 | * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively. | |
6986 | ||
aaf2320c DL |
6987 | 2000-02-12 Dave Love <fx@gnu.org> |
6988 | ||
6989 | * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc. | |
6990 | ||
6991 | * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h: | |
fb07a302 GM |
6992 | * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h: |
6993 | * s/hpux.h: Don't define HAVE_VFORK. | |
aaf2320c DL |
6994 | |
6995 | * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST. | |
6996 | ||
6997 | * s/nextstep.h: Don't define HAVE_ALLOCA. | |
6998 | ||
6999 | * config.in: Add vfork bits. | |
7000 | ||
eedf8bde GM |
7001 | 2000-02-12 Gerd Moellmann <gerd@gnu.org> |
7002 | ||
7003 | * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register | |
7004 | unwind function to undo the effect of stopping atimers. | |
7005 | ||
7006 | * keyboard.c (bind_polling_period): Stop all timers except | |
7007 | poll_timer. | |
7008 | ||
7009 | * atimer.c (stopped_atimers): New variable. | |
7010 | (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers): | |
7011 | New functions. | |
7012 | ||
7013 | * atimer.h (stop_other_atimers, run_all_atimers) | |
7014 | (unwind_stop_other_atimers): Add function prototypes. | |
427ec082 | 7015 | |
eedf8bde GM |
7016 | * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined. |
7017 | ||
8476c2f8 KR |
7018 | 2000-02-11 Ken Raeburn <raeburn@gnu.org> |
7019 | ||
7020 | * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff | |
7021 | library may depend on jpeg. | |
7022 | (atimer.o): Depends on atimer.c. | |
7023 | ||
0e85e4a3 KH |
7024 | 2000-02-11 Kenichi Handa <handa@etl.go.jp> |
7025 | ||
7026 | * insdel.c (del_range_1): Call update_compositions. | |
7027 | (del_range_both): Call update_compositions just once.. | |
7028 | ||
97fa0cc8 DL |
7029 | 2000-02-10 Dave Love <fx@gnu.org> |
7030 | ||
7031 | * xfns.c (create_frame_xic): Fix initialization of automatic | |
7032 | aggregates for pcc. | |
7033 | ||
25566a3c KH |
7034 | 2000-02-09 Kenichi Handa <handa@etl.go.jp> |
7035 | ||
7036 | * ccl.c (CCL_MAKE_CHAR): New macro. | |
7037 | (ccl_driver) <CCL_TranslateCharacter>: Check the validity of | |
7038 | registers by CCL_MAKE_CHAR before calling translate_char. | |
7039 | <CCL_TranslateCharacterConstTbl> Likewise. | |
7040 | ||
69da54ba DL |
7041 | 2000-02-08 Dave Love <fx@gnu.org> |
7042 | ||
7043 | * lread.c (__EXTENSIONS__): Define. | |
7044 | ||
f7136ee8 GM |
7045 | 2000-02-08 Gerd Moellmann <gerd@gnu.org> |
7046 | ||
7047 | * puresize.h (BASE_PURESIZE): Increase to 650000. | |
7048 | ||
7768790b EZ |
7049 | 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il> |
7050 | ||
7051 | * msdos.c (XMenuActivate): Turn off the cursor after displaying | |
7052 | the help message. | |
7053 | ||
38fd211b EZ |
7054 | 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il> |
7055 | ||
7056 | * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue, | |
7057 | md, mh, mb, mr, and me to the fake termcap entry. | |
7058 | ||
66e4690f KR |
7059 | 2000-02-06 Ken Raeburn <raeburn@gnu.org> |
7060 | ||
7061 | * sound.c (sound_cleanup): Don't call device close routine if the | |
7062 | function pointer is null. | |
7063 | ||
a75dfea0 AI |
7064 | 2000-02-06 Andrew Innes <andrewi@gnu.org> |
7065 | ||
7066 | * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM, | |
7067 | around image definitions and prototypes. | |
7068 | (gamma_correct) [WINDOWSNT]: New prototype. | |
7069 | ||
7070 | * w32term.c (x_make_frame_visible): Replace call to | |
7071 | input_poll_signal with poll_for_input. | |
7072 | ||
7073 | * window.c [WINDOWSNT]: Include w32term.h. | |
7074 | ||
7075 | * xdisp.c [WINDOWSNT]: Include w32term.h. | |
7076 | ||
7077 | * makefile.nt: Add dependencies on w32gui.h. | |
7078 | (OBJ1): Include atimer.obj. | |
7079 | ($(BLD)\atimer.obj): New dependency rule. | |
7080 | ||
7081 | * w32.c (sigmask): New function (does nothing). | |
7082 | (sigunblock): Ditto. | |
7083 | ||
7084 | * frame.c [WINDOWSNT]: Include w32term.h. | |
7085 | ||
7086 | * w32gui.h (struct W32FontStruct): Add ascent and descent slots. | |
7087 | ||
7088 | * lread.c (syms_of_lread): Fix literal newlines. | |
7089 | ||
7090 | * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around | |
7091 | the string constant limit (2048 bytes) in MSVC. | |
7092 | (main): Ditto. | |
7093 | ||
59ddecde GM |
7094 | 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp> |
7095 | ||
7096 | * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit | |
7097 | area. | |
7098 | (x_display_cursor) [HAVE_X_I18N]: Don't set it here. | |
7099 | (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't | |
7100 | dispatch the event. | |
7101 | ||
07590973 DL |
7102 | 2000-02-04 Dave Love <fx@gnu.org> |
7103 | ||
7104 | * fileio.c: Remove some unused vars. | |
7105 | (_GNU_SOURCE): Define (for euidaccess). | |
7106 | ||
7107 | * lread.c (_XOPEN_SOURCE): Declare (for ftello). | |
7108 | ||
7109 | * minibuf.c (read_minibuf_noninteractive): Remove undeclared | |
7110 | gcpro1, gcpro2. | |
7111 | (read_minibuf): Deal with allow_props correctly. | |
7112 | ||
649351f9 EZ |
7113 | 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il> |
7114 | ||
7115 | * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000. | |
7116 | ||
66e4690f | 7117 | 2000-02-03 Ken Raeburn <raeburn@gnu.org> |
f1b9c7c1 KR |
7118 | |
7119 | * search.c (compile_pattern): If a cache entry has a nil regexp, | |
7120 | fill in that entry instead of clobbering a previously cached | |
7121 | string regexp. | |
7122 | ||
66e4690f | 7123 | 2000-02-02 Ken Raeburn <raeburn@gnu.org> |
15c9cf81 KR |
7124 | |
7125 | * puresize.h (BASE_PURESIZE): Increase to 610000. | |
7126 | ||
d240a249 GM |
7127 | 2000-02-02 Gerd Moellmann <gerd@gnu.org> |
7128 | ||
7129 | * frame.c (Fframe_parameters): Add GCPRO because tty_color_name | |
7130 | can GC. | |
7131 | ||
ca91fb26 KH |
7132 | 2000-02-02 Kenichi Handa <handa@etl.go.jp> |
7133 | ||
25660570 KH |
7134 | * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address |
7135 | instead of incrementing ic directly. | |
7136 | <CCL_WriteExprConst> Likewise. | |
7137 | <ccl_set_expr>: Set ic to jump_address. | |
7138 | ||
ca91fb26 KH |
7139 | * fileio.c (e_write): Fix the handling of |
7140 | CODING_FINISH_INSUFFICIENT_SRC. | |
7141 | ||
2ede9689 DL |
7142 | 2000-02-01 Dave Love <fx@gnu.org> |
7143 | ||
7144 | * editfns.c (Fpropertize): Doc fix. | |
7145 | ||
7146 | * process.c (Fstart_process): Doc fix. | |
7147 | ||
7148 | * eval.c: Fix various doc strings not to duplicate information | |
7149 | from help-manyarg-func-alist. | |
7150 | ||
7151 | * window.c (Fset_window_margins): Don't make interactive. Doc | |
7152 | fix. | |
7153 | ||
7154 | * doc.c (Vhelp_manyarg_func_alist): New variable. | |
7155 | (Fdocumentation): Use it. | |
7156 | (syms_of_doc): Define it. | |
7157 | ||
b6680a0e GM |
7158 | 2000-01-31 Gerd Moellmann <gerd@gnu.org> |
7159 | ||
2cb750ba GM |
7160 | * xterm.c (xim_open_dpy): Remove unused local variable. |
7161 | ||
74e9213b GM |
7162 | * emacs.c (USAGE): Use term `display options' instead of `X |
7163 | options'. | |
7164 | ||
7165 | * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function. | |
7166 | (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it. | |
7167 | ||
b6680a0e GM |
7168 | * fns.c (sweep_weak_table): New function. |
7169 | (sweep_weak_hash_tables): Use it. Keep on marking until there | |
7170 | is no more change. | |
7171 | ||
994c5afe GM |
7172 | 2000-01-30 Gerd Moellmann <gerd@gnu.org> |
7173 | ||
7174 | * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure | |
7175 | that XTread_socket does not crash by trying to call XNoOp on a | |
7176 | closed display. | |
427ec082 | 7177 | |
f00276e3 JR |
7178 | 2000-01-30 Jason Rumney <jasonr@gnu.org> |
7179 | ||
7180 | * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to): | |
7181 | Change selected_frame to SELECTED_FRAME (). | |
7182 | (w32_console_mouse_position): Remove #ifndef MULE from around | |
7183 | `insist' parameter. | |
7184 | ||
7185 | * makefile.nt: Remove dosfns.obj. | |
7186 | ||
7187 | * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors. | |
7188 | ||
7189 | * w32fns.c (w32_defined_color): Check for valid frame before | |
7190 | applying gamma correction. Eliminate dependency on frame elsewhere. | |
7191 | (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH. | |
7192 | (w32_to_x_font): Use resx and resy not height_in and width_in. | |
7193 | (x_to_w32_font): Doc fix. | |
7194 | (xlfd_strip_height): New function to strip and return font height. | |
7195 | (w32_font_match): Compare height separately from rest of xlfd | |
7196 | spec, using xlfd_strip_height. | |
7197 | ||
7198 | * w32term.c (w32_term_init): Swap resx and height_in, resy and | |
7199 | width_in. Use w32_defined_color in place of defined_color. | |
7200 | ||
7201 | * w32faces.c: Merge more of DOS and X specifics in preparation for | |
7202 | merge with xfaces.c. | |
7203 | (defined_color): Remove FIXME comment. | |
7204 | (tty_color_name): Provide w32-specific function. | |
7205 | (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially. | |
7206 | ||
7207 | * w32console.c (turn_on_face, turn_off_face): Removed. | |
7208 | (w32_face_attributes): New function. | |
7209 | (Global_variables): Reduce scope where possible. | |
7210 | (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as | |
7211 | fill attribute. | |
7212 | (hl_mode): Don't modify text attributes. | |
7213 | (write_glyphs): Don't do anything if len <= 0. Use | |
7214 | w32_face_attributes to get attributes for drawing. Write | |
7215 | terminating codes using char_attr_normal. | |
7216 | (reset_terminal_modes, set_terminal_modes): Turn off highlight. | |
7217 | (update_begin, update_end): Likewise. | |
7218 | (vga_stdcolor_name): New function. | |
7219 | (initialize_w32_display): Remove char_attr_reverse and char_attr. | |
7220 | (Fset_screen_color): Remove char_attr_reverse. | |
7221 | ||
b08e8bb2 GM |
7222 | 2000-01-29 Gerd Moellmann <gerd@gnu.org> |
7223 | ||
7224 | * xfns.c (xic_set_preeditarea): Take window parameter and | |
7225 | window-relative pixel-positions. | |
7226 | ||
7227 | * xterm.c (x_display_cursor): Set XIC pre-edit area only if window | |
7228 | is its frame's selected window. | |
7229 | (xim_instantiate_callback): Likewise. | |
7230 | ||
7231 | * xfns.c (x_create_im): Removed. | |
7232 | (DEFAULT_STYLE, DEFAULT_FONT): Removed. | |
7233 | (supported_xim_styles): Renamed from supported_styles. | |
7234 | (best_xim_style): Renamed from best_style. | |
7235 | (create_frame_xic): Renamed from xic_create_frame. | |
7236 | (free_frame_xic): Renamed from xic_destroy_frame. | |
427ec082 | 7237 | |
b08e8bb2 GM |
7238 | 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp> |
7239 | ||
7240 | * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of | |
7241 | our frames, call XFilterEvent with 2nd parameter `None'. | |
7242 | (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString | |
7243 | returning XBufferOverflow. | |
7244 | (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status | |
7245 | area. | |
7246 | (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area. | |
7247 | (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset. | |
7248 | (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback) | |
7249 | (xim_initialize, xim_close) | |
7250 | [HAVE_X_I18N && HAVE_X11R6]: New functions. | |
7251 | (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame. | |
7252 | (x_term_init) [HAVE_X_I18N]: Call xim_initialize. | |
7253 | (x_delete_display) [HAVE_X_I18N]: Call xim_close. | |
7254 | ||
7255 | * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim' | |
7256 | and `xim_styles'. | |
7257 | (struct x_output) [HAVE_X_I18N]: Remove member `xim', add | |
7258 | `xic_style' and `xic_xfs'. | |
7259 | (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES) | |
7260 | (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros. | |
7261 | (FRAME_XIM): Removed. | |
7262 | ||
7263 | * xfns.c (supported_styles): New variable. | |
7264 | (DEFAULT_STYLE, DEFAULT_FONT): New macros | |
7265 | (xic_create_xfontset, best_style, xic_create_frame) | |
7266 | (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea) | |
7267 | (xic_set_xfontset): New functions. | |
7268 | ||
142e109c DL |
7269 | 2000-01-28 Dave Love <fx@gnu.org> |
7270 | ||
7271 | * s/irix6-5.h: Revert last change after change to irix5-0.h. | |
7272 | ||
7273 | * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0. | |
7274 | ||
b02786f9 GM |
7275 | 2000-01-28 Gerd Moellmann <gerd@gnu.org> |
7276 | ||
d060bc9f GM |
7277 | * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode |
7278 | for *scratch* if it already existed. | |
7279 | ||
b02786f9 GM |
7280 | * emacs.c (USAGE): New macro. |
7281 | (main): Use it to display usage information. | |
7282 | ||
2c52d7e4 EZ |
7283 | 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il> |
7284 | ||
7285 | Support for the menu-help feature: | |
7286 | ||
7287 | * msdos.h: Change prototypes of XMenuAddSelection and | |
7288 | XMenuActivate. | |
7289 | ||
7290 | * msdos.c (IT_clear_end_of_line): Print the extent of the cleared | |
7291 | part of the line to the termscript file. | |
7292 | (IT_clear_to_end): Clear the entire line, not just its beginning. | |
7293 | (menu_help_message, prev_menu_help_message): New variables. | |
7294 | (IT_menu_make_room): Make room for the help_text member. | |
7295 | (IT_menu_display): New argument disp_help; all callers changed. | |
7296 | If disp_help is non-zero, store the help text of the active menu | |
7297 | item in menu_help_message. | |
7298 | (XMenuAddPane): Initialize the help_text member to NULL. | |
7299 | (XMenuAddSelection): New argument help_text. Store it in the | |
7300 | XMenu structure. | |
7301 | (XMenuActivate): New argument help_callback. If the value of | |
7302 | menu_help_message has changed since the last time, display the | |
7303 | menu help message text while waiting for the mouse to move. Clear | |
7304 | the echo area before exiting. | |
7305 | (XMenuDestroy): Free the help_text member. | |
7306 | ||
ffe0bcd1 GM |
7307 | 2000-01-27 Gerd Moellmann <gerd@gnu.org> |
7308 | ||
7309 | * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to | |
7310 | XMenuAddSelection. Pass help callback to XMenuActivate. | |
7311 | (menu_help_callback) [!USE_X_TOOLKIT]: New function. | |
7312 | ||
50dbd23f EZ |
7313 | 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il> |
7314 | ||
7315 | * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS | |
7316 | and EMACS_SET_USECS. | |
7317 | ||
f5941bf8 GM |
7318 | 2000-01-26 Dave Love <fx@gnu.org> |
7319 | ||
6c67ddee DL |
7320 | * editfns.c (Fchar_after, Fchar_before): Doc fix. |
7321 | ||
f5941bf8 GM |
7322 | * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where |
7323 | an error may be signalled. | |
7324 | ||
9e49c990 GM |
7325 | 2000-01-26 Gerd Moellmann <gerd@gnu.org> |
7326 | ||
fc3cb460 GM |
7327 | * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef |
7328 | LD_SWITCH_SYSTEM inherited from irix5-0.h. | |
7329 | ||
9e49c990 GM |
7330 | * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo. |
7331 | ||
d0c037d8 GM |
7332 | 2000-01-25 Gerd Moellmann <gerd@gnu.org> |
7333 | ||
7334 | * charset.c (Fstring): If there is a multibyte char among | |
7335 | the args, always return a multibyte string. | |
7336 | ||
e12489f9 GM |
7337 | 2000-01-25 Gerd Moellmann <gerd@gnu.org> |
7338 | ||
7339 | * sysdep.c (sys_select): Turn atimers off and on instead of | |
7340 | recording and restoring old alarm handler | |
7341 | ||
7342 | * process.c (toplevel): Include atimer.h. | |
7343 | (create_process_1): Rewritten. | |
7344 | (create_process): Use atimers instead of alarm. | |
7345 | (wait_reading_process_input) [hpux]: Turn atimers off instead | |
7346 | of turning off SIGALRM. | |
7347 | (wait_reading_process_input): Turn off atimers instead off | |
7348 | calling stop_polling. | |
7349 | ||
7350 | * emacs.c (main): Call init_atimer. | |
7351 | ||
7352 | * keyboard.c (toplevel): Include systime.h and atimer.h. | |
7353 | (polling_for_input): Removed because unused. | |
7354 | (input_poll_signal) [POLL_FOR_INPUT]: Removed. | |
7355 | (poll_timer): New variable. | |
7356 | (poll_for_input, poll_for_input_1): New functions. | |
7357 | (start_polling, stop_polling): Rewritten. | |
7358 | ||
7359 | * keyboard.h (polling_for_input): Removed. | |
427ec082 | 7360 | |
e12489f9 GM |
7361 | * atimer.h, atimer.c: New files. |
7362 | ||
7363 | * Makefile.in (obj): Add atimer.o. | |
7364 | (atimer.o): New target. | |
7365 | ||
7366 | * blockinput.h (pending_atimers): Add extern declaration. | |
7367 | (UNBLOCK_INPUT): Rewritten. Handle pending atimers. | |
7368 | ||
7369 | * lisp.h (popup_activated_flag): Add extern declaration. | |
7370 | ||
7371 | * xmenu.c (popup_activated_flag): Make externally visible. | |
7372 | (popup_activate_callback) [USE_MOTIF]: Increment | |
7373 | popup_activated_flag. | |
7374 | (popup_deactivate_callback) [USE_MOTIF]: Decrement it. | |
7375 | ||
7376 | * xterm.c (toplevel): Include atimer.h. | |
7377 | (toolkit_scroll_bar_interaction): New variable. | |
7378 | (Fxt_process_timeouts): Removed. | |
7379 | (x_process_timeouts): New function. | |
7380 | (xt_action_hook): Clear toolkit_scroll_bar_interaction. | |
7381 | (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction. | |
7382 | (x_make_frame_visible): Call poll_for_input_1 instead of | |
7383 | input_poll_signal. Don't call alarm. | |
7384 | (x_initialize): Install timer calling x_process_timeouts. | |
427ec082 | 7385 | |
1e5279b9 DL |
7386 | 2000-01-24 Dave Love <fx@gnu.org> |
7387 | ||
6c67ddee | 7388 | * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now. |
1e5279b9 DL |
7389 | Don't use -cckr -- apparently not now necessary. |
7390 | ||
edf6aeb8 EZ |
7391 | 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il> |
7392 | ||
7393 | * msdos.c (IT_menu_display): Truncate long menu lines at the right | |
7394 | screen boundary. | |
7395 | ||
9badad41 JR |
7396 | 2000-01-23 Jason Rumney <jasonr@gnu.org> |
7397 | ||
7398 | * w32fns.c (w32_defined_color): Apply gamma correction before | |
7399 | trying to map to the palette. | |
7400 | (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame | |
7401 | to w32_clear_rect. | |
7402 | ||
7403 | * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc | |
7404 | here. Callers changed to always pass real device context. | |
7405 | (w32_draw_bitmap): Likewise. | |
7406 | (w32_get_glyph_overhangs): Likewise. | |
7407 | (w32_draw_box_rect): Make use of s->hdc rather than getting a new | |
7408 | one. | |
7409 | (w32_set_vertical_scroll_bar): Pass correct HWND parameters to | |
7410 | pfnSetScrollInfo and SetScrollRange. | |
7411 | (x_get_char_face_and_encoding): Don't turn iso8859-1 characters | |
7412 | back into MULE characters after decoding them. | |
7413 | (x_get_glyph_face_and_encoding): Likewise. | |
7414 | (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when | |
7415 | GetCharABCWidthsW fails, since this is defined on Windows 9x. | |
7416 | (x_produce_glyphs): Calculate per char metrics for a character | |
7417 | that we know exists in default font when font_not_found_p is true. | |
7418 | ||
63bd786b JR |
7419 | 2000-01-22 Jason Rumney <jasonr@gnu.org> |
7420 | ||
7421 | * makefile.nt (intervals.obj, composite.obj): New modules. | |
7422 | (composite.h): Added as dependency where appropriate. | |
7423 | ||
7424 | * w32gui.h (XGCValue): New struct for emulating X GCs. | |
7425 | ||
7426 | * w32term.h (XCharStruct): New struct for emulating X. | |
7427 | ||
7428 | * w32console.c (turn_on_face, turn_off_face): New functions. | |
7429 | (change_line_highlight): New prototype for new redisplay. | |
7430 | (write_glyphs): Support multibyte text. Support faces. | |
7431 | ||
7432 | * w32faces.c: Complete rewrite for new redisplay based on new | |
7433 | xfaces.c. | |
7434 | ||
7435 | * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame | |
7436 | throughout. struct frame * in place of FRAME_PTR. | |
7437 | Skeleton support for images, toolbars, tooltips from xfns.c. | |
7438 | (Fx_create_frame): Use system default for default scroll bar | |
7439 | width. | |
7440 | (w32_get_arg): Renamed from x_get_arg. | |
7441 | (Fx_file_dialog): New function. | |
7442 | (w32_list_fonts): Check cache before asking system. | |
7443 | (Vw32_enable_synthesized_fonts): New variable. | |
7444 | (Vw32_enable_italics): Obsolete, removed. | |
7445 | ||
7446 | * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to): | |
7447 | Use SELECTED_FRAME macro. | |
7448 | ||
7449 | * w32menu.c: Add skeleton support for help strings on menus. | |
7450 | (add_menu_item): Native checkbox and radio support added, but not | |
7451 | yet enabled due to bugs. | |
7452 | (push_menu_item): Add parameters type, selection and help. | |
7453 | Callers updated. | |
7454 | Formatting changes to reduce unnecessary diffs with xmenu.c. | |
7455 | ||
7456 | * w32select.c (Fw32_set_clipboard_data): Update call to | |
7457 | find_charset_in_str. | |
7458 | ||
7459 | * w32term.c: Complete rewrite for new redisplay based on new | |
7460 | xterm.c with necessary sections merged back in from old w32term.c. | |
7461 | ||
6ffd3cf7 | 7462 | 2000-01-21 Richard M. Stallman <rms@gnu.org> |
b50c9214 RS |
7463 | |
7464 | * data.c (set_internal): Further fix in same criterion. | |
7465 | ||
6ffd3cf7 | 7466 | 2000-01-20 Richard M. Stallman <rms@gnu.org> |
8cc95642 RS |
7467 | |
7468 | * data.c (set_internal): Fix the criteria for whether | |
7469 | to swap out the old cached binding. | |
7470 | ||
60af03f1 DL |
7471 | 2000-01-19 Dave Love <fx@gnu.org> |
7472 | ||
7473 | * lread.c: (syms_of_lread) [user-init-file]: Doc change. | |
7474 | ||
f9be074f KH |
7475 | 2000-01-18 Kenichi Handa <handa@etl.go.jp> |
7476 | ||
7477 | * regex.c (re_compile_fastmap): While checking a range table for | |
7478 | `charset', skip flag bits for a character class correctly. | |
7479 | ||
52b8dbf9 GM |
7480 | 2000-01-17 Gerd Moellmann <gerd@gnu.org> |
7481 | ||
d36100c9 GM |
7482 | * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC. |
7483 | ||
52b8dbf9 GM |
7484 | * xfns.c (x_window): Call lw_create_widget with new parameter |
7485 | list. | |
7486 | ||
7487 | * widget.c (EmacsFrameSetCharSize): Change size of children first | |
7488 | because of problems with main window geometry management under | |
7489 | Lesstif. | |
7490 | ||
7491 | * xmenu.c (enum menu_item_idx): New enumeration replacing defines | |
7492 | MENU_ITEMS_ITEM_.*. | |
7493 | (MENU_ITEMS_ITEM_HELP): New enumerator. | |
7494 | (push_menu_item): Add parameter HELP. Record help in menu_items. | |
7495 | (single_menu_item, single_submenu, list_of_items): Call | |
7496 | push_menu_item with new parameter. | |
7497 | (single_submenu): Set help string in widget value. | |
7498 | (menu_highlight_callback): New function. | |
7499 | (set_frame_menubar): Call lw_create_widget with new | |
7500 | parameter list. | |
7501 | (xmenu_show, xdialog_show): Ditto. | |
7502 | ||
3139018f GM |
7503 | 2000-01-13 Gerd Moellmann <gerd@gnu.org> |
7504 | ||
7505 | * sound.c (Fplay_sound): Improve doc string. | |
7506 | ||
83c8f461 RS |
7507 | 2000-01-11 Richard M. Stallman <rms@gnu.org> |
7508 | ||
7509 | * lisp.h (set_internal): Enter the new arg. | |
7510 | ||
7511 | * eval.c (specbind): Record buffer-local variables specially, | |
7512 | indicating which buffer's binding was saved. | |
7513 | (unbind_to): Restore buffer-local variables specially | |
7514 | in the proper buffer. | |
7515 | ||
7516 | * data.c (set_internal): New arg BUF. | |
427ec082 | 7517 | |
83c8f461 RS |
7518 | * eval.c (specbind, unbind_to): Pass new arg to set_internal. |
7519 | * data.c (Fset): Pass new arg to set_internal. | |
7520 | * bytecode.c (Fbyte_code): Pass new arg to set_internal. | |
427ec082 | 7521 | |
1fab1775 GM |
7522 | 2000-01-11 Gerd Moellmann <gerd@gnu.org> |
7523 | ||
7524 | * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, | |
7525 | xprintsym. | |
7526 | ||
83c8f461 | 7527 | 2000-01-11 Richard M. Stallman <rms@gnu.org> |
6f59462e RS |
7528 | |
7529 | * minibuf.c (Ftry_completion): Doc fix. | |
7530 | ||
7a85e4df GM |
7531 | 2000-01-11 Gerd Moellmann <gerd@gnu.org> |
7532 | ||
7533 | * keyboard.c (Fclear_this_command_keys): Clear recent_keys | |
7534 | vector, too. | |
7535 | ||
a970dae4 AS |
7536 | 2000-01-11 Andreas Schwab <schwab@suse.de> |
7537 | ||
7538 | * coding.c (code_convert_region): Initialize total_skip. | |
7539 | ||
c65d14ee DL |
7540 | 2000-01-08 Dave Love <fx@gnu.org> |
7541 | ||
7542 | * eval.c (Fuser_variable_p): Check customizability too. | |
7543 | ||
834938d2 GM |
7544 | 2000-01-07 Gerd Moellmann <gerd@gnu.org> |
7545 | ||
7546 | * minibuf.c (Fcompleting_read): Doc fix. | |
7547 | ||
e0303cd6 GM |
7548 | 2000-01-05 Gerd Moellmann <gerd@gnu.org> |
7549 | ||
8a26744b GM |
7550 | * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and |
7551 | -L /usr/local/lib. | |
7552 | ||
e0303cd6 GM |
7553 | * xfns.c (x_create_im): New function to set IM and IC of a frame. |
7554 | Check that input style is supported before trying to create an | |
7555 | IC for it. | |
7556 | (x_window): Call x_create_im. | |
427ec082 | 7557 | |
2e471eb5 GM |
7558 | 2000-01-04 Gerd Moellmann <gerd@gnu.org> |
7559 | ||
560a7bd2 GM |
7560 | * xfns.c (current_gif_memory_src): New variable. |
7561 | (gif_load): Record the address of the current memory source | |
7562 | in current_gif_memory_src. | |
7563 | (gif_read_from_memory): Use current_gif_memory_src. | |
7564 | ||
f9ee84a3 GM |
7565 | * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give |
7566 | macros statement form. | |
7567 | ||
d1299cde GM |
7568 | * sound.c (struct sound): Renamed from struct sound_file. |
7569 | (struct sound): Add members `data' and `header_size'. | |
7570 | (enum sound_attr): Add SOUND_DATA. | |
7571 | (current_sound, current_sound_device): Variables renamed from | |
7572 | sound_file and sound_device. | |
7573 | (parse_sound): Parse :data. | |
7574 | (parse_sound): Handle sound data in strings. | |
7575 | (find_sound_type): Function renamed from find_sound_file_type. | |
427ec082 | 7576 | (wav_init, au_init): Fail if sound's header_size is smaller than |
d1299cde GM |
7577 | needed header size. |
7578 | (wav_play, au_play): Play sounds from string data. | |
7579 | ||
2e471eb5 GM |
7580 | * puresize.h (BASE_PURE_SIZE): Increase to 600000. |
7581 | ||
7582 | * lisp.h: Add prototype for allocate_string_data. | |
7583 | ||
7584 | * alloc.c (Fgarbage_collect): Return number of live and free | |
7585 | strings. | |
7586 | ||
7587 | * alloc.c (mark_buffer): Remove code in #if 0. | |
7588 | (gc_sweep): Ditto. | |
7589 | (UNMARK_BALANCE_INTERVALS): Give the macro statement form. | |
7590 | (strings_consed): New variable. | |
7591 | (allocate_string): Set it. | |
7592 | (syms_of_alloc): Add DEFVAR_INT for strings_consed. | |
7593 | (Fmemory_use_counts): Return strings_consed. Use Flist. | |
7594 | ||
7595 | * alloc.c: General cleanup in comments etc. Remove conditional | |
7596 | compilation for `standalone'. | |
7597 | ||
7598 | * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'. | |
7599 | ||
7600 | * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): | |
7601 | (GC_STRING_BYTES, GC_STRING_CHARS): New macros. | |
7602 | (DONT_COPY_FLAG): Removed. | |
7603 | (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros. | |
7604 | (struct sdata, struct sblock): New | |
7605 | (struct string_block): Rewritten. | |
7606 | (STRINGS_IN_STRING_BLOCK): New macro. | |
7607 | (oldest_sblock, current_sblock, total_strings, total_free_strings) | |
7608 | (large_sblocks, string_blocks, string_free_list): New variables. | |
7609 | (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros. | |
7610 | (init_strings): Rewritten. | |
7611 | (allocate_string, allocate_string_data, compact_small_strings) | |
7612 | (free_large_strings, sweep_strings): New functions. | |
7613 | (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE) | |
7614 | (struct string_block_head, current_string_block) | |
7615 | (first_string_block, large_string_blocks, STRING_FULLSIZE) | |
7616 | (STRING_PAD): Removed. | |
7617 | (make_uninit_multibyte_string, make_pure_string): Rewritten. | |
7618 | (Fgarbage_collect): Don't set mark bit in large strings. | |
7619 | (mark_object): Mark strings differently. Mark symbol names | |
7620 | differently. | |
7621 | (survives_gc_p): Test marked strings differently. | |
427ec082 | 7622 | (gc_sweep): Sweep strings differently, unmark strings in |
2e471eb5 GM |
7623 | symbol names. |
7624 | (compact_strings): Removed. | |
7625 | ||
42608ba8 EZ |
7626 | 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il> |
7627 | ||
7628 | * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and | |
7629 | Scolor_supported_p even if HAVE_X_WINDOWS is not defined. | |
7630 | ||
e0a09e1a KH |
7631 | 2000-01-04 Kenichi Handa <handa@etl.go.jp> |
7632 | ||
dd9f0750 | 7633 | * fileio.c (Finsert_file_contents): Signal error if visiting file |
427ec082 | 7634 | in a non-empty buffer. |
dd9f0750 | 7635 | |
3c0f3b15 | 7636 | * term.c (encode_terminal_code): Fix the previous change. |
e0a09e1a | 7637 | |
44cd3ae5 GM |
7638 | 2000-01-03 Gerd Moellmann <gerd@gnu.org> |
7639 | ||
7640 | * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to | |
7641 | Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p. | |
7642 | ||
7643 | * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU. | |
7644 | ||
c182a70f EZ |
7645 | 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il> |
7646 | ||
7647 | * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No | |
7648 | need to test for MSDOS frames. | |
7649 | ||
24480d5b EZ |
7650 | 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il> |
7651 | ||
7652 | * dosfns.c (unspecified_colors): Remove. | |
7653 | (msdos_stdcolor_idx): Use global variables unspecified_fg and | |
7654 | unspecified_bg. | |
7655 | (msdos_stdcolor_name): Return strings for unspecified fore- and | |
7656 | back-ground colors. | |
7657 | ||
7658 | * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove. | |
aaf2320c | 7659 | (syms_of_xfaces): Remove their staticpro's. |
24480d5b EZ |
7660 | (tty_color_name): Return Lisp strings for unspecified fore- and |
7661 | back-ground colors. | |
7662 | (Finternal_set_lisp_face_attribute): Remove the special treatment | |
7663 | for Qunspecified_{f,b}g. | |
7664 | (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp | |
7665 | string. | |
7666 | ||
047f434a GM |
7667 | 2000-01-03 Gerd Moellmann <gerd@gnu.org> |
7668 | ||
7669 | * xdisp.c (reseat_at_next_visible_line_start): Position before | |
7670 | newline only if ending up on a newline. | |
7671 | (next_element_from_ellipsis): Return success. Handle case of | |
7672 | displaying no ellipsis. Fix case of ellipsis defined in display | |
7673 | table. | |
7674 | (next_element_from_buffer): Return 0 if next_element_from_ellipsis | |
7675 | returns 0. | |
7676 | ||
d684c676 EZ |
7677 | 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il> |
7678 | ||
7679 | * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p. | |
7680 | (Fcolor_supported_p): Renamed from face-color-supported-p. | |
7681 | ||
5fe1d139 EZ |
7682 | 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il> |
7683 | ||
7684 | * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The | |
7685 | list of colors renamed to tty-defined-color-alist. | |
7686 | (tty_color_name): Pass the frame to tty-color-by-index. | |
7687 | (realize_tty_face): tty-color-alist is now a function which | |
7688 | accepts the frame as argument. | |
7689 | ||
7690 | * term.c (Ftty_display_color_p): Accept an optional argument | |
7691 | FRAME. | |
7692 | ||
816be8b8 EZ |
7693 | 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il> |
7694 | ||
7695 | * term.c (insert_glyphs): Pass glyph, not &glyph, to | |
7696 | encode_terminal_code. | |
7697 | ||
b635321e EZ |
7698 | 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il> |
7699 | ||
7700 | * dispnew.c (mode_line_string): Support termcap frames as well. | |
7701 | ||
9b784e96 GM |
7702 | 2000-01-01 Gerd Moellmann <gerd@gnu.org> |
7703 | ||
27189709 GM |
7704 | * syntax.c (Fforward_word): Undo previous change. |
7705 | ||
7706 | * editfns.c (Fconstrain_to_field): Don't constrain if | |
7707 | inhibit-field-text-motion is non-nil. | |
7708 | (Fline_beginning_position): Undo previous change. | |
7709 | (Fline_end_position): Ditto. | |
7710 | ||
7711 | * syntax.c (Fforward_word): Notice field boundaries only if | |
7712 | inhibit-field-text-motion is nil. | |
7713 | ||
7714 | * lisp.h: Add extern declaration for Vinhibit_field_text_motion. | |
7715 | ||
7716 | * editfns.c (Vinhibit_field_text_motion): New variable. | |
7717 | (inhibit-field-text-motion): New DEFVAR_LISP. | |
7718 | (Fline_beginning_position, Fline_end_position): Notice field | |
7719 | boundaries only if inhibit-field-text-motion is nil. | |
7720 | ||
45158a91 GM |
7721 | * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE. |
7722 | All calls adjusted. | |
7723 | (x_build_heuristic_mask): Likewise. | |
7724 | (xbm_load_image_from_file): Change error output. | |
7725 | (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load) | |
7726 | (gif_load, gs_load, x_kill_gs_process): Ditto. | |
7727 | ||
9b784e96 GM |
7728 | * xfns.c (gif_load): Avoid sign extension and thus out of bounds |
7729 | color indices when accessing raster pixels. | |
63cec32f GM |
7730 | (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only |
7731 | one of :file or :data. | |
7732 | (enum pbm_keyword_index): Add PBM_DATA. | |
7733 | (pbm_format): Add :data. | |
7734 | (pbm_image_p): Allow either :file or :data. | |
7735 | (pbm_read_file): New function. | |
7736 | (pbm_scan_number): Rewritten to read from string. | |
7737 | (pbm_load): Support :data. | |
9b784e96 | 7738 | |
2cb085db | 7739 | See ChangeLog.8 for earlier changes. |
6922b018 KH |
7740 | |
7741 | ;; Local Variables: | |
49b3bd82 | 7742 | ;; coding: iso-2022-7bit |
6922b018 | 7743 | ;; End: |