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