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