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