(info-insert-file-contents): Use info-file-exists-p
[bpt/emacs.git] / src / ChangeLog
CommitLineData
18f9986a
GM
12001-08-03 Gerd Moellmann <gerd@gnu.org>
2
3 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
4 a float, determine the max height from the frame's height.
5
fbc7f2a6
GM
62001-08-02 Gerd Moellmann <gerd@gnu.org>
7
8 * xdisp.c (redisplay_internal): Take message_cleared_p into
9 account only if minibuf_level == 0.
10
81b1a79d
GM
112001-08-01 Gerd Moellmann <gerd@gnu.org>
12
e5c60873
GM
13 * xdisp.c (redisplay_internal): Add a check for the last
14 displayed message.
15
6e019995
GM
16 * xdisp.c (message_cleared_p): New variable.
17 (clear_message): Set message_cleared_p when clearing the current
18 message.
19 (redisplay_internal): Look at message_cleared_p to capture
20 the case that the echo area should be cleared.
21
308a74d8
GM
22 * keyboard.c (command_loop_1): Fix spelling of
23 resize_echo_area_exactly.
24
25 * dispextern.h (resize_echo_area_exactly): Fix typo in function
26 name.
27
28 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
29
81b1a79d
GM
30 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
31 current matrix when the window gets smaller.
32
ada329e6
EZ
332001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
34
35 * print.c (strout): Cast the character passed to insert_char to
36 unsigned char, to avoid sign extension when it is promoted to int.
37
ed86208c
GM
382001-07-31 Gerd Moellmann <gerd@gnu.org>
39
40 * fileio.c (Finsert_file_contents): Don't treat a return value
41 of 0 from emacs_read as an IO error.
42
6594ac22
GM
432001-07-30 Gerd Moellmann <gerd@gnu.org>
44
cef68af5
GM
45 * keyboard.c (abs): New macro.
46 (double_click_fuzz): New variable.
47 (make_lispy_event): Use it to determine what makes a double-click.
48 (syms_of_keyboard): DEFVAR_INT it.
49
6594ac22
GM
50 * xmenu.c (set_frame_menubar): Take into account that
51 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
52 <raeburn@gnu.org>.
53
75c5350a
GM
542001-07-27 Gerd Moellmann <gerd@gnu.org>
55
56 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
57
58 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
59 of row's visible height.
60
61 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
62 deal with the first overlay string having an image `display'
63 property.
64 (try_window_reusing_current_matrix, compute_line_metrics): Fix
65 computation of row's visible height for the case that part of the
66 row is invisible above and part of the row is at the same time
67 invisible below the window.
68
ac49effe
GM
692001-07-26 Gerd Moellmann <gerd@gnu.org>
70
71 * xfns.c (x-show-tip): Doc fix.
72
73 * xfns.c (Vx_max_tooltip_size): New variable.
74 (syms_of_xfns): DEFVAR_LISP it.
75 (Fx_show_tip): Set frame's window_width to the width of the
76 window. Use a maximum tooltip size specified by
77 Vx_max_tooltip_size, if that has valid contents.
78 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
79
8c3b00cb
AI
802001-07-26 Andrew Innes <andrewi@gnu.org>
81
82 * w32term.c (x_display_list): New variable.
83 (w32_term_init): Set it.
84
85 * w32term.h (x_display_list): New extern.
86
16098288
GM
872001-07-26 Gerd Moellmann <gerd@gnu.org>
88
89 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
90 is non-nil, instead of when redisplaying_p is non-zero. See
91 comment there.
92 (mark_window_display_accurate_1): Add an assertion.
93
64c5be50
GM
942001-07-25 Gerd Moellmann <gerd@gnu.org>
95
e743f599
GM
96 * dispextern.h (struct it): Increase size of ctl_chars to 16.
97
563b384d
GM
98 * xfns.c (Fx_file_dialog): Block/unblock input while processing
99 events so that we get a chance of processing expose events.
100
64c5be50
GM
101 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
102
296808a5
GM
1032001-07-24 Gerd Moellmann <gerd@gnu.org>
104
105 * xfns.c (valid_image_p): Protect better against invalid image
106 specifications. Previous code could signal an error.
107
5247262a
GM
1082001-07-23 Gerd Moellmann <gerd@gnu.org>
109
f1004faf
GM
110 * indent.c (current_column): Fix column computation in the
111 presence of display table entries.
112 (current_column_1, Fmove_to_column, compute_motion): Likewise.
113
dd42b31a
GM
114 * dispnew.c (adjust_glyph_matrix): In the optimization for
115 windows whose height has changed, use the new window height
116 to compute which rows to invalidate.
117
9e5a7f2a
GM
118 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
119 (MAX_10_EXP): New macro.
120 (Fformat): Use it.
121
5247262a
GM
122 * coding.c (code_convert_region): Handle the multibyte case if
123 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
124
177ab8ce
GM
1252001-07-20 Gerd Moellmann <gerd@gnu.org>
126
6e07c0a5
GM
127 * dispextern.h (struct face): Change type of `stipple' to
128 int; it's an ID.
129
177ab8ce
GM
130 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
131
b5b80599
GM
1322001-07-19 Gerd Moellmann <gerd@gnu.org>
133
4e2a256b
GM
134 * dispnew.c (update_window): Don't set the cursor at the end
135 of the update if display update has been paused.
136
b5b80599
GM
137 * composite.h (syms_of_composite): Renamed from
138 syms_of_composition.
139
c1fd9232
KR
1402001-07-18 Ken Raeburn <raeburn@gnu.org>
141
142 * fns.c (Fset_char_table_default): Check that a charset is defined
143 before checking its dimension.
144
928a85c1
KR
1452001-07-17 Ken Raeburn <raeburn@gnu.org>
146
147 * coding.c (setup_coding_system): Don't do any designation based
148 on reg_bits if charset is not yet defined.
149
232e274c
KR
150 * lisp.h (XVECTOR): Verify correct object type before returning a
151 pointer, using eassert.
152
de11c1ea
GM
1532001-07-17 Gerd Moellmann <gerd@gnu.org>
154
155 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]: Increase
156 to 4096 because of paste problems reported on GNU/Linux.
157
467f1209
GM
1582001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
159
160 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
161
c3d6be34
GM
1622001-07-16 Gerd Moellmann <gerd@gnu.org>
163
c1d61a7d
GM
164 * fileio.c (unwind_read): Function removed.
165 (read_non_regular, read_non_regular_quit): New functions.
166 (Finsert_file_contents): When reading from non-regular files,
167 arrange to catch a `quit' and terminate the loop. Rearrange
168 code so that a `quit' when reading from a regular file doesn't
169 insert text in the buffer.
170
c3d6be34
GM
171 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
172 Clear faces afterwards.
173 (clear_font_table): Take a x_display_info parameter. Don't free
174 fonts being the default font of any frame on the given display.
175
e06aa1f9
GM
1762001-07-13 Gerd Moellmann <gerd@gnu.org>
177
178 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
179 instead of CHAR_STRING which can signal an error.
180
181 * charset.c (char_to_string_1): Extracted from char_to_string.
182 Return -1 instead of signaling an error.
183 (char_to_string): Use it.
184
185 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
186
176c92e6
SM
1872001-07-12 Stefan Monnier <monnier@cs.yale.edu>
188
189 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
190 is t, don't try to append anything to it.
191
1c56232f
EZ
1922001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
193
194 * dired.c (file_name_completion): Pass dp->d_name to
195 Fstring_match, not elt, which is always nil here.
196
1d2b2268
GM
1972001-07-12 Gerd Moellmann <gerd@gnu.org>
198
199 * xselect.c (x_decline_selection_request): Handle errors
200 caused by receivers that have vanished.
201
202 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
203 ignoring events on foreign windows in #if 0. Always dispatch
204 the event after checking it with x_handle_property_notify.
205
206 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
176c92e6
SM
207 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
208 TRACE macros to facilitate debugging. Add additional trace statements.
1d2b2268
GM
209 (toplevel): Add prototypes for file-local functions.
210 (x_atom_to_symbol): Remove DPYINFO parameter.
211
fe5a0162
SM
2122001-07-11 Stefan Monnier <monnier@cs.yale.edu>
213
214 * w32menu.c (menubar_selection_callback, w32_menu_show):
215 Initialize `entry' to nil.
216 (w32_dialog_show): Remove unused `save_wv' variable.
217 (name_is_separator): Recognize "--:foo" and "--foo-bar".
218
a777242c
GM
2192001-07-11 Gerd Moellmann <gerd@gnu.org>
220
8ee5b6a3
GM
221 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
222
d0e2444e
GM
223 * fileio.c (unwind_read): Print a message when discarding inserted
224 text or switching the buffer to unibyte. Change parameter.
225 (Finsert_file_contents): Don't pass VISIT to unwind_read.
fe5a0162 226
a777242c
GM
227 * fileio.c (unwind_read): New function.
228 (Finsert_file_contents): Record it as unwind-function for
229 the case that reading is interrupted by C-g.
230
ae794295
GM
2312001-07-10 Gerd Moellmann <gerd@gnu.org>
232
fe5a0162 233 * dispnew.c (update_window): Don't skip the header-line
58f8612a
GM
234 update when scrolling_window returns 0.
235
6b05fae3
GM
236 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
237
238 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
58f8612a 239 for the case that x_decode_color signals an error.
6b05fae3 240
ae794295
GM
241 * xdisp.c (add_to_log): Do nothing if called asynchronously.
242
bb6e8cee
GM
2432001-07-09 Gerd Moellmann <gerd@gnu.org>
244
245 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
246 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
247 around ioctls.
248
36b40a8a
EZ
2492001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
250
24b97d4b
EZ
251 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
252 doc string line for dos-timezone-offset.
253
36b40a8a
EZ
254 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
255 inline assembly, to avoid compiler warnings.
24b97d4b
EZ
256 (syms_of_msdos): Add \n\ at the end of a line in the doc string
257 line for dos-unsupported-char-glyph.
36b40a8a
EZ
258
259 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
260
0967b4b0
GM
2612001-07-05 Gerd Moellmann <gerd@gnu.org>
262
f25cfe53
GM
263 * sound.c: Include Emacs' header files with #include "...".
264
0967b4b0
GM
265 * eval.c (specbind): Additionally record the buffer that was
266 current when a buffer-local or frame-local variable was bound.
267
c347a1c3
GM
2682001-07-04 Gerd Moellmann <gerd@gnu.org>
269
270 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
271 to unibyte characters in unibyte buffers.
272
6332ca8a
GM
2732001-07-03 Gerd Moellmann <gerd@gnu.org>
274
38472d44
GM
275 * eval.c (specbind): If SYMBOL has a frame-local binding, record
276 the frame on the binding stack. Change format of entries for
277 local bindings on the binding stack to '(SYMBOL . WHERE)'.
278 (unbind_to): Handle unbinding a frame-local variable.
279
6332ca8a 280 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
fe5a0162 281 glyphs and truncation glyphs at the end of a row from its pixel width.
6332ca8a
GM
282 (dump_glyph_row): Print row's continuation_lines_width.
283 (try_window_id): Take the shortcut if ZV is visible in the
284 window, but there are actually no changes at ZV.
285
63d1b174
GM
2862001-07-02 Gerd Moellmann <gerd@gnu.org>
287
4c175203
GM
288 * xterm.h (x_free_dpy_colors): Add prototype.
289
290 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
291 right number of arguments.
292
0b54ce28
GM
293 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
294 ($(lwlibdir)TAGS): New target.
4c175203 295 (TAGS): Fix dependency list.
0b54ce28 296
63d1b174
GM
297 * xterm.c (x_list_fonts): Make sure XFreeFont is called
298 with input blocked.
299
d827466c
GM
3002001-06-30 Gerd Moellmann <gerd@gnu.org>
301
302 * emacs.c (main): Remove extern declaration for sys_nerr, which
303 isn't used and causes a compilation error with GCC 3.0 on
304 FreeBSD 4.3.
305
b5cb1ada
GM
3062001-06-27 Gerd Moellmann <gerd@gnu.org>
307
a5d3ec3f
GM
308 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
309 SIGIO around the code where Xt might wait for a
310 ConfigureNotifyEvent.
311 (toplevel): Include <signal.h> and syssignal.h.
312
b5cb1ada
GM
313 * sound.c (vox_configure, vox_close): Turn off atimers
314 around ioctls.
315
d9bad487
GM
3162001-06-26 Gerd Moellmann <gerd@gnu.org>
317
fdbb67fe
GM
318 * keyboard.c (read_char) <non_reread>: Record the previous idle
319 start time before calling timer_stop_idle.
320 (read_char) <reread_first>: After processing a help-echo event,
321 restore the previous idle start time.
322
d9bad487
GM
323 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
324 the start of invisible text.
325 (setup_for_ellipsis): New function.
326 (next_overlay_string): After all overlay strings have been
327 processed, display an ellipsis if necessary.
328 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
329 (push_it): Initialize display_ellipsis_p on the iterator's stack.
330
331 * dispextern.h (struct iterator_stack_entry): Add member
332 display_ellipsis_p.
333
2b9c25e0
GM
3342001-06-25 Gerd Moellmann <gerd@gnu.org>
335
80de57df
GM
336 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
337 on the value of the wait-for-wm frame parameter.
338
339 * xterm.h (struct x_output): Add member wait_for_wm.
340
341 * xfns.c (Qwait_for_wm): New variable.
342 (x_frame_parms): Add entry for `wait-for-wm".
343 (x_set_wait_for_wm): New function.
344 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
345 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
346
2b9c25e0
GM
347 * xdisp.c (try_window_id) <all changes below window end>: Don't
348 take this shortcut if ZV is visible in the window.
349 (try_window_id): When checking for window start being in changed
350 text, don't check that the buffer's size has changed.
351
f772775c
RS
3522001-06-23 Richard M. Stallman <rms@gnu.org>
353
354 * minibuf.c (Fcompleting_read): Doc fix.
355
fa9090b8
GM
3562001-06-19 Gerd Moellmann <gerd@gnu.org>
357
358 * composite.c (Ffind_composition_internal): Accept ZV
359 and a string's end position as POS.
360
f6f1beba
GM
3612001-06-18 Gerd Moellmann <gerd@gnu.org>
362
363 * composite.c (Ffind_composition_internal): Check POS
364 for validity.
365
0ae83348
EZ
3662001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
367
368 * editfns.c (Fmessage_box): If the frame is not under a window
369 system, output the message in the echo area.
370
e4cdc335
RS
3712001-06-14 Richard M. Stallman <rms@gnu.org>
372
373 * xdisp.c (try_window_id): When EOB is visible, don't treat
374 insertion at EOB as if it were "off the bottom of the screen."
375
a55a5f3c
AI
3762001-06-11 Andrew Innes <andrewi@gnu.org>
377
378 * w32proc.c (create_child): Add new parameter is_gui_app.
379 (w32_executable_type): Add new parameter is_gui_app.
380 (sys_spawnve): Use it.
381 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
382 SIGQUIT. This matches better how the signals are interpreted by
383 MSVC compiled programs.
384 (syms_of_ntproc): Update docstring.
385
1b85dc1c
SM
3862001-06-02 Stefan Monnier <monnier@cs.yale.edu>
387
388 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
389 well otherwise note_mouse_highlight might optimize away highlighting
390 if we pass over that same overlay again.
391
b75f8eab
EZ
3922001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
393
394 * lread.c (Fload): Document that the argument is run via
395 substitute-in-file-name.
396
94843cc1
GM
3972001-05-31 Gerd Moellmann <gerd@gnu.org>
398
b14659e6
GM
399 * Makefile.in (bootstrap-doc): New target.
400 (bootstrap-emacs): Depend on it.
401
0894672f
GM
402 * fileio.c (Fdo_auto_save): Don't try to create the directory of
403 auto-save-list-file-name when shutting down Emacs, because
404 creating the directory might signal an error, and leaves
405 Emacs in a strange state.
406
94843cc1
GM
407 * term.c: (tty_cursor_hidden): New variable.
408 (update_begin): Don't call tty_hide_cursor. Clean up.
409 (update_end, set_terminal_window, set_scroll_region): Clean up.
410 (ring_bell, reset_terminal_modes): Clean up.
411 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
412 on tty_cursor_hidden.
413 (write_glyphs): Call tty_hide_cursor.
414
db3a49a6
SM
4152001-05-30 Stefan Monnier <monnier@cs.yale.edu>
416
417 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
418
8bd189fb
GM
4192001-05-30 Gerd Moellmann <gerd@gnu.org>
420
6f1be3b9
GM
421 * xfns.c (enum image_value_type): New enumerator
422 IMAGE_STRING_OR_NIL_VALUE.
423 (parse_image_spec): Handle it.
424 (xbm_format, pbm_format): Use it for :foreground and :background.
425 (xbm_load, pbm_load): Check for nil color names.
426
8bd189fb
GM
427 * xterm.c (note_mouse_highlight): If an overlapping overlay
428 exists, but we find that we highlight the same overlay as before,
429 don't do the highlighting again.
430
7bdba03c
GM
4312001-05-29 Gerd Moellmann <gerd@gnu.org>
432
4c329aa8
GM
433 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
434 Protect unibyte strings created by replacing their multibyte
435 equivalents in menu_items.
436
e15e2828
GM
437 * keymap.c (Fsingle_key_description): NUL-terminate the string
438 buffer before calling build_string.
439
7bdba03c
GM
440 * callproc.c (Fcall_process): Deal with decode_coding returning
441 CODING_FINISH_INCONSISTENT_EOL.
442
89c8dc6c
GM
4432001-05-28 Gerd Moellmann <gerd@gnu.org>
444
db3a49a6 445 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
3d9d7a9b
GM
446 an item's name with its key description in case the description
447 is a multibyte string.
448
449 * keymap.c (Fsingle_key_description): Create a multibyte string
450 only if necessary.
451
eb04d6cd
GM
452 * macros.c (Fstart_kbd_macro): Doc fix.
453
8bd6307f
GM
454 * xterm.c (cursor_in_mouse_face_p): New function.
455 (x_draw_stretch_glyph_string): Use it to choose a different GC
456 when drawing a cursor within highlighted text.
457
e26c4089
GM
458 * editfns.c (char_property_eq): Put in #if 0.
459
460 * indent.c (string_display_width): Put in #if 0.
461
462 * lread.c (Fload): Remove unused label.
463
89c8dc6c
GM
464 * termcap.c (speeds): Put in #if 0.
465
9a1211f2
GM
4662001-05-18 Gerd Moellmann <gerd@gnu.org>
467
29148a3f
GM
468 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
469
9a1211f2
GM
470 * xfaces.c (xlfd_point_size): Don't divide pixel size from
471 transformation matrix by 10.
472
09393d07
GM
4732001-05-16 Gerd Moellmann <gerd@gnu.org>
474
475 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
476 only if it's equal to the former foreground pixel color.
db3a49a6 477 (x_set_foreground_color, x_set_background_color)
09393d07
GM
478 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
479
460e6bae
GM
4802001-05-16 Dave Love <fx@gnu.org>
481
482 * insdel.c (signal_before_change, signal_after_change): Consider a
483 local change hook which changes the buffer.
99c78ce8
GM
484
485 * process.c (read_process_output): Don't call signal_after_change
486 and update_compositions after insert_from_string_before_markers.
487
dbcf3c03
GM
4882001-05-16 Gerd Moellmann <gerd@gnu.org>
489
a90b3d3c
GM
490 * xfaces.c (split_font_name): Use the right field when
491 checking for `[...]' syntax.
492
1b7818b4
GM
493 * buffer.c (copy_overlays): New function.
494 (clone_per_buffer_values): Use it.
495
496 * buffer.h (OVERLAY_PLIST): New macro.
497
9bae8781
GM
498 * keymap.c (Fsingle_key_description): Replace a build_string with
499 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
500
dbcf3c03
GM
501 * fontset.c (Ffontset_info): Check that face is non-null
502 before accessing its fields.
503
8a1ae4dd
GM
5042001-05-15 Gerd Moellmann <gerd@gnu.org>
505
18a0a39e
GM
506 * keyboard.c (read_key_sequence): Prevent generating a fake
507 prefix key twice.
508
e335b66a
GM
509 * xfaces.c (split_font_name): Handle `[...]' for the right
510 font name fields.
511
8a1ae4dd
GM
512 * ccl.c (ccl_driver): Don't copy remaining bytes in case
513 of CCL_STAT_INVALID_CMD.
514
3cf80731
SM
5152001-05-14 Stefan Monnier <monnier@cs.yale.edu>
516
33568849
SM
517 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
518 in <var> has no default value yet.
519
3cf80731
SM
520 * xfaces.c (try_alternative_families): First try the FAMILY.
521 And if nothing is found in the end, try again with scalable fonts.
522 (try_font_list): Let try_alternative_families do a bit more of
523 the work. Only use FAMILY if it is not nil.
524 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
525
933b0249
GM
5262001-05-14 Gerd Moellmann <gerd@gnu.org>
527
58e5af83
GM
528 * xterm.c (note_mouse_highlight): Avoid changing the mouse
529 pointer shape when show_mouse_face has already done it.
33568849 530
58e5af83 531 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
557f7c34
GM
532 full-width rows.
533
7b16a6bf
GM
534 * xfaces.c (split_font_name): Make sure to leave the loop
535 with the right value of `i'.
3cf80731 536
933b0249
GM
537 * xfaces.c (split_font_name): Handle matrix transformations
538 in the pixel and point size fields of XLFD font names.
539 (xlfd_point_size): Likewise.
540
dddcbf00
EZ
5412001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
542
3cf80731 543 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
c7501041
EZ
544 (x_to_w32_font): Add prototype.
545
7689ef0b
EZ
546 * regex.c (malloc, realloc, free) [emacs]: Undefine before
547 redefining, to avoid compiler warnings.
548
e7c15bba
EZ
549 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
550
dddcbf00
EZ
551 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
552 (w32_get_bdf_glyph): Cast between unsigned char and char when
553 passing arguments to subroutines, to shut up compiler warnings.
554 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
555 GET_HEX_VAL.
556
557 * xfaces.c: Include keyboard.h before frame.h, not after it.
558
559 * widget.c: Include keyboard.h before frame.h.
560
561 * w32term.h (struct image, struct face): Forward declaration, to
562 avoid compiler warnings.
563
7bd2d083
GM
5642001-05-11 Gerd Moellmann <gerd@gnu.org>
565
47e72862
GM
566 * keyboard.c (read_key_sequence): Don't modify events when
567 generating fake prefix keys (mode-line, scroll-bar, ...) since
568 this prevents proper processing of such events when pushed back
569 into unread-command-events.
570
dd5f324b
GM
571 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
572 actually redrawn. Make the function static.
573 (note_mouse_highlight): Fix a case where the mouse cursor
574 was changed back to the text cursor.
575
576 * xterm.h (clear_mouse_face): Remove prototype.
577
d88a79d4
GM
578 * xdisp.c (try_window_id): Fix the fix and set the right
579 window_end_vpos.
580
581 * xdisp.c (try_window_id): Fix computation of window end in the
582 case that lines were deleted at the end of the window. Add some
583 more debug_method_adds.
0416532f 584
7bd2d083
GM
585 * xfaces.c (try_alternative_families): New function.
586 (try_font_list): Use it. If ATTRS specifies a family, check
587 fonts from that family first.
588 (choose_face_font): Remove code setting the family part of
589 the pattern to nil.
590
23fca891
GM
5912001-05-10 Gerd Moellmann <gerd@gnu.org>
592
ff9aa2ca
GM
593 * xdisp.c (try_window_id): Fix case of all changes before
594 the window start.
7b2654b5 595
23fca891
GM
596 * xdisp.c (try_window_id): Add some xasserts.
597
e9726794
GM
5982001-05-09 Gerd Moellmann <gerd@gnu.org>
599
600 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
601
9e53a675
GM
6022001-05-09 Dave Love <fx@gnu.org>
603
604 * xdisp.c (GIVE_UP): Fix for K&R C.
605
0d487c52
GM
6062001-05-09 Gerd Moellmann <gerd@gnu.org>
607
fe88d421
GM
608 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
609
0d487c52
GM
610 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
611 back to the text cursor shape without need.
612
1e9fc92e
GM
6132001-05-07 Gerd Moellmann <gerd@gnu.org>
614
a2a6232e
GM
615 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
616
617 * dispextern.h (inverse_video): Declare extern.
618
1e9fc92e
GM
619 * keyboard.c (delete_kboard): Handle the case that selected_frame
620 has been deleted in the course of x_connection_closed.
621
12949a7f
EZ
6222001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
623
7b2654b5
SM
624 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
625 Fix the change from 2001-04-30.
12949a7f 626
2fa2f461
GM
6272001-05-03 Gerd Moellmann <gerd@gnu.org>
628
a779d213
GM
629 * xfns.c (file_dialog_unmap_cb): New function.
630 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
631 where a dialog is closed via the window manager.
632
7b2654b5 633 * xdisp.c (try_window_id): Cases of changes all in front of
2fa2f461
GM
634 the window start or all below the window end mostly rewritten.
635 (redisplay_window): Move the tests if try_window_id is
636 applicable to try_window_id.
637 (GIVE_UP): New macro.
638
3356df63
GM
6392001-05-02 Gerd Moellmann <gerd@gnu.org>
640
a39202f6 641 * xterm.c (expose_window): Return int. If W is the window
7b2654b5
SM
642 currently being updated, mark the frame garbaged.
643 Fix computation of rows intersecting the exposed rectangle.
a39202f6 644 (expose_window_tree): Stop when expose_window returns 0.
7b2654b5 645
3356df63
GM
646 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
647 again if it has already been drawn.
648
a9d2fd1d
SM
6492001-05-01 Stefan Monnier <monnier@cs.yale.edu>
650
651 * syntax.c (update_syntax_table): Check that oldi has the same
652 properties as old_prop before deciding not to invalidate.
653
c95fc5f1
GM
6542001-04-30 Gerd Moellmann <gerd@gnu.org>
655
a9793e45
GM
656 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
657 read-only text that is so because of text properties.
658
c95fc5f1 659 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
a9d2fd1d 660 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
c95fc5f1
GM
661 windows that are components of a Lucid menu bar.
662
5a5d9185
GM
6632001-04-27 Gerd Moellmann <gerd@gnu.org>
664
665 * term.c (turn_on_face): Fix reverse video handling on terminals
666 that don't support colors.
667
ba973f7a
GM
6682001-04-26 Gerd Moellmann <gerd@gnu.org>
669
670 * editfns.c (save_excursion_restore): Don't use XBUFFER on
671 a non-buffer.
672
8c56a983
GM
6732001-04-25 Gerd Moellmann <gerd@gnu.org>
674
a728644c
GM
675 * term.c (toggle_highlight): New function.
676 (turn_on_face): Change handling of reverse video.
677
7b2654b5
SM
678 * process.c (wait_reading_process_input):
679 Call record_asynch_buffer_change only if a timer really changed buffers.
c88164fe 680
bfd8410f
GM
681 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
682 of the number of overlays to check.
683
be2488ca
GM
684 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
685
8c56a983
GM
686 * xdisp.c (try_window_id): Fix a case where window_end_pos
687 and window_end_bytepos were not adjusted.
688
522d42f7
GM
6892001-04-23 Gerd Moellmann <gerd@gnu.org>
690
691 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
692 zero instead of -1.
693
78c1afb6
EZ
6942001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
695
a9d2fd1d
SM
696 * process.c (wait_reading_process_input) [!subprocesses]:
697 Don't reference waiting_for_user_input_p, it's not defined in the
698 branch without async subprocesses support.
78c1afb6 699
a2fab450
GM
7002001-04-19 Gerd Moellmann <gerd@gnu.org>
701
a122a38e
GM
702 * keyboard.c (delete_kboard): Prevent a dangling reference
703 from current_kboard to KB, which is freed.
704
a9d2fd1d
SM
705 * process.c (wait_reading_process_input):
706 Call record_asynch_buffer_change after running timers, to make
a2fab450
GM
707 read_key_sequence aware of buffer changes from under it.
708
0f8d6dc7
GM
7092001-04-18 Gerd Moellmann <gerd@gnu.org>
710
eeffb293
GM
711 * xfaces.c (Qscalable_fonts_allowed): New variable.
712 (realizing_basic_faces_p): Removed.
2fa2f461
GM
713 (x_face_list_fonts): Special handling for realizing_basic_faces_p
714 removed.
eeffb293 715 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
7b2654b5
SM
716 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
717 for scalable-fonts-allowed to t.
eeffb293 718
0f8d6dc7
GM
719 * fileio.c (Finsert_file_contents): If the file size returned from
720 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
a9d2fd1d 721 read from files on a procfs whose contents are generated dynamically.
0f8d6dc7 722
eec2d1de
EZ
7232001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
724
725 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
726 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
727 (__memalign_hook): Make the two prototypes consistent.
728
f4f480bd
GM
7292001-04-17 Gerd Moellmann <gerd@gnu.org>
730
731 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
732 matrix of mini-windows.
733
52283633
SM
7342001-04-12 Stefan Monnier <monnier@cs.yale.edu>
735
736 * intervals.c (find_interval): Don't rebalance during signal handling.
737
ec2423c9
GM
7382001-04-11 Gerd Moellmann <gerd@gnu.org>
739
30cb0001 740 * fns.c: Include blockinput.h.
52283633 741
ec2423c9
GM
742 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
743
719d83ad
GM
7442001-04-10 Gerd Moellmann <gerd@gnu.org>
745
60f8d735
GM
746 * fns.c (Fcompare_strings): Fix return values.
747
afffeb57
GM
748 * window.c (window_scroll): Change the meaning of N to mean
749 N screen-fulls or N lines.
750 (window_scroll_pixel_based, window_scroll_line_based)
751 (scroll_command, Fscroll_other_window): Change accordingly.
752
52283633
SM
753 * window.c (window_scroll_pixel_based, Frecenter):
754 Call window_box_height instead of using it.last_visible_y for the
afffeb57
GM
755 height of the window.
756
757 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
758 instead of using it.last_visible_y for the height of the window.
52283633 759
719d83ad 760 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
8ddf3ee1 761 From Dan Holmsand <dan@eyebee.com>.
719d83ad
GM
762
763 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
8ddf3ee1
GM
764 able to write to hidden and system files. From Dan Holmsand
765 <dan@eyebee.com>.
719d83ad 766
8ddf3ee1
GM
767 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
768 Holmsand <dan@eyebee.com>.
719d83ad 769
522ed7fb
GM
7702001-04-09 Gerd Moellmann <gerd@gnu.org>
771
9170e5d4
GM
772 * fns.c (Fplist_get, Fplist_put): Add QUITs.
773
522ed7fb
GM
774 * window.c (window_internal_height): Return 1 less if the
775 window has a header line.
776
777 * xdisp.c (try_window_id): When scrolling on a terminal, take
778 the change of window_internal_height into account.
779
ceeb3d7d
EZ
7802001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
781
782 * gmalloc.c (align): If the argument SIZE would overflow
783 __malloc_ptrdiff_t, fail right away.
784
63685b9d
GM
7852001-04-06 Gerd Moellmann <gerd@gnu.org>
786
787 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
788 Make sure the tooltip is completely visible.
789 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
790
791 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
792
793 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
794
3ffb33bb
DL
7952001-04-06 Dave Love <fx@gnu.org>
796
52283633
SM
797 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
798 Fix test of `from'.
3ffb33bb 799
869fb12c
GM
8002001-04-06 Gerd Moellmann <gerd@gnu.org>
801
52283633 802 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
afa3935f 803
869fb12c
GM
804 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
805
441bf856
GM
8062001-04-05 Gerd Moellmann <gerd@gnu.org>
807
4d664b04
GM
808 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
809
52283633 810 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
a55e4e68 811
30ca89f5
GM
812 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
813 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
814
815 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
816 shell widget's position only if it is non-null.
817
52283633
SM
818 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
819 Set f->output_data.x->widget to null after destroying it.
30ca89f5 820
81a81c0f
GM
821 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
822 FILENAME to bring it in synch with the documentation.
823
441bf856
GM
824 * xfaces.c (realizing_basic_faces_p): Renamed from
825 realize_default_face_p.
826 (realize_basic_faces): Set/clear realizing_basic_faces_p.
827 (realize_default_face): Don't set the flag.
828
702a1e8e
GM
8292001-04-04 Gerd Moellmann <gerd@gnu.org>
830
1013f4e3
GM
831 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
832
52283633
SM
833 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
834
1013f4e3
GM
835 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
836 the buffer that was used for echoing.
837
702a1e8e
GM
838 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
839 (first_font_matching): Removed unused function.
840 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
841 (may_use_scalable_font_p): Remove parameter FONT; rename
842 parameter NAME to FONT.
843 (x_face_list_fonts): Fix missing bounds check.
844 (realizing_default_face_p): New variable.
845 (realize_default_face): Set and clear that flag.
846 (x_face_list_fonts): When called during the realization of the
847 default face, and no matching fonts are found when ignoring
848 scalable fonts and fonts matching a regexp from
849 face-ignored-fonts, try without ignoring fonts.
850
f9dbcda4
GM
8512001-04-03 Gerd Moellmann <gerd@gnu.org>
852
ad18ffb1
GM
853 * xfns.c (postprocess_image): New function.
854 (lookup_image): Call it for all image types except PostScript.
855 (x_kill_gs_process): Call postprocess_image.
856
f9dbcda4
GM
857 * xterm.c (x_use_underline_position_properties): New variable.
858 (x_draw_glyph_string): Use it.
859 (syms_of_xterm): DEFVAR_BOOL it.
860
651f03b6
GM
8612001-04-02 Gerd Moellmann <gerd@gnu.org>
862
863 * xterm.c (x_alloc_nearest_color_1): New function.
864 (x_alloc_nearest_color): Use it.
865 (x_color_cells): Take a Display as argument, instead of a frame.
866 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
867 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
868 (x_initialize): Register cvt_string_to_pixel as resource converter
869 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
870
73d75a62
GM
8712001-03-30 Gerd Moellmann <gerd@gnu.org>
872
b2046df8
GM
873 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
874 (set_iterator_to_next): If a string from a display property ends,
875 consider the case that this might also be the end of an
876 overlay string having the display property.
877
52283633 878 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
b2046df8 879
87d8eba4
GM
880 * xdisp.c (reseat_to_string): Undo last change.
881
73d75a62
GM
882 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
883 matrix of a window when the header line changes, when
884 new rows are allocated, or when the width changes.
885
911a2406
EZ
8862001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
887
52283633 888 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
911a2406 889
aea51abe
EZ
8902001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
891
892 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
893 deprecated.
894
176bc847
GM
8952001-03-29 Gerd Moellmann <gerd@gnu.org>
896
ed31fabf
GM
897 * data.c (Fsubr_interactive_form): New function.
898 (syms_of_data): Defsubr it.
899
176bc847
GM
900 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
901 (live_float_p, live_misc_p): Return 1 only if the offset of the
902 pointer in its block is >= 0.
903
e59d0e9d
GM
9042001-03-28 Paul Eggert <eggert@twinsun.com>
905
906 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
907 microseconds calcuation. Avoid double-rounding problem.
908 In doc string, warn that the result is approximate.
909
f827b862
GM
9102001-03-28 Gerd Moellmann <gerd@gnu.org>
911
30a3f61c
GM
912 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
913 bind `inhibit-eval-during-redisplay' to t.
914
915 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
916
917 * xdisp.c (inhibit_eval_during_redisplay)
918 (Qinhibit_eval_during_redisplay): New variables.
919 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
920 don't eval, return nil instead.
921 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
922 Initialize Qinhibit_eval_during_redisplay.
923
e719f5ae
GM
924 * xdisp.c (reseat_to_string): If STRING is multibyte, set
925 the iterator's multibyte_p flag.
926
deb2613a
GM
927 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
928 instead of setting it to zero; it's incremented for each frame
929 where the menu face is changed.
930
52283633
SM
931 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
932 change bottom shadow accordingly.
933
934 * xterm.c (expose_window_tree, expose_frame): Don't compute
a02f1be0
GM
935 intersections here.
936 (expose_window): Do it here instead.
52283633 937 (x_draw_glyph_string): Fix a computation of the underline position.
a02f1be0 938
f827b862
GM
939 * bytecode.c (BYTE_CODE_QUIT): New macro.
940 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
941
4bde0ebb
GM
9422001-03-27 Gerd Moellmann <gerd@gnu.org>
943
607ec83c
GM
944 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
945 Give up if matrix starts in an ellipsis.
946 (init_from_display_pos): Do nothing if POS doesn't specify
947 a dpvec_index but the iterator has such a position.
948
0245398f
GM
949 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
950
aba25348
GM
951 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
952 x/y position is (0, 0) after destroying the menu bar, restore
953 its original position.
954
4bde0ebb
GM
955 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
956 (init_from_display_pos): Use it.
957 (try_window_reusing_current_matrix): Don't use cursor_row_p.
958
8cdb267e
GM
9592001-03-26 Gerd Moellmann <gerd@gnu.org>
960
961 * xdisp.c (try_window_id): Undo last change.
962
9948db79
EZ
9632001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
964
965 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
966
967 * buffer.c (syms_of_buffer): Doc fix.
968
2eddf899
GM
9692001-03-26 Gerd Moellmann <gerd@gnu.org>
970
971 * xfaces.c (x_update_menu_appearance): Use local variable
972 popup_path for setting font resources.
973
6c145d35
EZ
9742001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
975
6a65b1b5
EZ
976 * frame.c (Fframe_list): Don't reference tip_frame if
977 HAVE_WINDOW_SYSTEM is not defined.
978
6c145d35
EZ
979 * emacs.c (main): Update the copyright year. From Werner LEMBERG
980 <wl@gnu.org>.
981
d74c1900
GM
9822001-03-25 Gerd Moellmann <gerd@gnu.org>
983
20fbd925
GM
984 * xdisp.c (init_from_display_pos): Test invisible property
985 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
52283633 986
927c5b3b
GM
987 * xdisp.c (redisplay_internal) <update one window>: Make sure
988 last_arrow_position and last_arrow_string are set.
989
d74c1900
GM
990 * frame.c (Fframe_list): Don't return a tooltip frame.
991
091f8878
GM
9922001-03-23 Gerd Moellmann <gerd@gnu.org>
993
52283633
SM
994 * xdisp.c (mark_window_display_accurate_1): New function,
995 extracted from mark_window_display_accurate.
996 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
43c09969
GM
997 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
998 (mark_window_display_accurate): Use it.
999 (redisplay_internal): Use it for the selected window.
1000 (redisplay_internal): Avoid duplicate mark_window_display_accurate
1001 for the selected frame.
1002
ac90c44f
GM
1003 * xdisp.c Use make_number, for readability.
1004 (try_window_id): Disable rows below the window end.
1005 (try_window_reusing_current_matrix): Use cursor_row_p.
1006 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
1007 of rows.
1008 (init_from_display_pos): If POS specifies a position in a display
1009 vector, maybe get the iterator set up for that ellipsis.
43c09969 1010
091f8878
GM
1011 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
1012
991786dd
EZ
10132001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
1014
1015 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
1016
6c29b43c
GM
10172001-03-23 Gerd Moellmann <gerd@gnu.org>
1018
1019 * xfaces.c (x_update_menu_appearance): Use a different path
1020 for Lucid popup menus.
1021
d8731202
SM
10222001-03-22 Stefan Monnier <monnier@cs.yale.edu>
1023
1024 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
1025
1026 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
1027 (string_buffer_position): Use `make_number'.
1028
f61a541b
GM
10292001-03-22 Gerd Moellmann <gerd@gnu.org>
1030
3c9e997b
GM
1031 * xfaces.c (x_update_menu_appearance): Renamed from
1032 x_set_menu_face_resources. Use different resources for popups.
1033
1034 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
1035 (GC_CHECK_STRING_BYTES): Don't define.
1036
364cd450
GM
1037 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
1038 Removed, together with subroutines.
1039 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
d8731202 1040 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
364cd450 1041
d8731202
SM
1042 * dispextern.h (x_set_menu_resources_from_menu_face):
1043 Remove prototype.
364cd450 1044
d8731202 1045 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
364cd450
GM
1046 Remove calls to x_set_menu_resources_from_menu_face.
1047
d8731202
SM
1048 * xfaces.c (xm_set_menu_resources_from_menu_face):
1049 Remove #ifndef LESSTIF_VERSION.
f61a541b
GM
1050
1051 * xmenu.c: Include widget.h.
1052 (single_submenu): Return int. Some cleanup.
1053 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
1054
140330de
GM
10552001-03-21 Gerd Moellmann <gerd@gnu.org>
1056
1057 * xterm.c (x_update_window_end): Handle overwritten mouse face
1058 also for tool bar windows.
1059 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
1060 DRAW is DRAW_IMAGE_RAISED.
1061
1741905c
GM
10622001-03-20 Gerd Moellmann <gerd@gnu.org>
1063
fa88947e
GM
1064 * print.c (syms_of_print): Doc fixes.
1065
1741905c
GM
1066 * fns.c (Fmd5): Doc fix.
1067
ade0bee1
GM
10682001-03-19 Gerd Moellmann <gerd@gnu.org>
1069
357e7376
GM
1070 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1071 Clear area of the frame not occupied by the scroll bar.
1072
c2c097cc
GM
1073 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
1074 tip frame's root window buffer to *tip* right after creating
1075 the frame.
1076
ade0bee1
GM
1077 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
1078 is an integer don't have to be for space characters.
1079
88c6e37e
GM
10802001-03-16 Gerd Moellmann <gerd@gnu.org>
1081
52283633
SM
1082 * indent.c (current_column, current_column_1, Fmove_to_column)
1083 (compute_motion): Handle characters from display vectors differently.
88c6e37e 1084
c62eed76
KH
10852001-03-15 Kenichi Handa <handa@etl.go.jp>
1086
1087 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
1088 drawing glyph string.
1089
c899e7e6
GM
10902001-03-15 Gerd Moellmann <gerd@gnu.org>
1091
d0bbfc99
GM
1092 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
1093 (command_loop_1): Undo last change.
1094
03d1a189
GM
1095 * xterm.c (fast_find_position): Return the correct vpos.
1096
c899e7e6 1097 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
52283633 1098 non-null, set a per-buffer value in BUF instead of the current buffer.
c899e7e6
GM
1099 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
1100 Call store_symval_forwarding with BUF null.
1101 (set_internal): Call store_symval_forwarding with the BUF
1102 parameter passed to set_internal. Formerly, the value was always
1103 set in the current buffer; the buffer recorded in specbind for
1104 this case wasn't used.
1105 (arith_driver): Reindent.
1106
52283633
SM
1107 * buffer.c (swap_out_buffer_local_variables):
1108 Call store_symval_forwarding with BUF null.
c899e7e6
GM
1109
1110 * lisp.h (store_symval_forwarding): Change prototype.
1111
1112 * eval.c (specbind): Call store_symval_forwarding with BUF null.
1113
57ac7c81
GM
11142001-03-14 Gerd Moellmann <gerd@gnu.org>
1115
697617d9
GM
1116 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
1117 FOR_DELETION. Avoid resizing the mini-window of the selected
1118 frame if FOR_DELETION is set.
1119 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
1120 (Fmake_frame_invisible): Change calls to do_switch_frame for new
1121 signature.
1122
1123 * window.c (Fset_window_configuration): Change call to
1124 do_switch_frame to new format.
1125
1126 * keyboard.c (quit_throw_to_read_char): Change call to
1127 do_switch_frame to new format.
1128
1129 * lisp.h (do_switch_frame): Change prototype.
1130
819dce0f
GM
1131 * frame.c (Fframe_parameters): In the `buffer-list' frame
1132 parameter, store the buffer list of FRAME, not the list of the
1133 selected frame.
1134
57ac7c81
GM
1135 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
1136 box just because the glyph row's full_width_p flag is set.
1137
65008712
GM
11382001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
1139
1140 * xdisp.c (highlight_trailing_whitespace): On character terminals,
1141 skip the padding blanks inserted in extend_face_to_end_of_line,
1142 before checking for trailing whitespace.
1143
159cf431
GM
11442001-03-13 Gerd Moellmann <gerd@gnu.org>
1145
52283633 1146 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
19b2bb80
GM
1147 Remove special handling for LessTif/Motif.
1148 (toplevel): Don't include Xm/Xm.h.
1149
52283633
SM
1150 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
1151 Remove workaround code for LessTif; it doesn't work anymore.
1152
2564ea1b 1153 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
57ac7c81 1154 Xm/ScrollBarP.h.
afcdc0a1 1155
52283633
SM
1156 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
1157 Don't access private scroll bar data; it's no longer necessary with
23442ae4
GM
1158 contemporary LessTif.
1159
52283633
SM
1160 * xfaces.c (xm_set_menu_resources_from_menu_face):
1161 Change #if 0 to #ifndef LESSTIF_VERSION.
9faaaa52 1162
159cf431
GM
1163 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
1164 removing button grabs.
1165
c6f7429a
KH
11662001-03-13 Kenichi Handa <handa@etl.go.jp>
1167
cb82d767
KH
1168 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
1169 and clip-large-size-font as obsolete.
1170
c6f7429a
KH
1171 * lread.c (read_multibyte): Check the validity of multibyte
1172 sequence. If invalid, return the first byte.
1173
760cefb5
GM
11742001-03-12 Gerd Moellmann <gerd@gnu.org>
1175
1176 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
1177 before running the command; timer functions or process
1178 filters may have set it.
1179
5141f9d0
EZ
11802001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
1181
1182 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
1183 Doc fix.
1184
b6a15240
GM
11852001-03-12 Gerd Moellmann <gerd@gnu.org>
1186
1187 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
1188 to sprintf.
1189
95522746
GM
11902001-03-09 Gerd Moellmann <gerd@gnu.org>
1191
db14cfc5
GM
1192 * dispextern.h (string_buffer_position): Add prototype.
1193
52283633 1194 * xdisp.c (string_buffer_position, display_prop_string_p)
db14cfc5
GM
1195 (single_display_prop_string_p): New functions.
1196
1197 * xterm.c (note_mouse_highlight): If there's no help-echo on
1198 a string, look at the buffer text ``under'' it.
1199
1200 * keyboard.c (make_lispy_event): Add string info to the event,
1201 analogous to what's done on mode lines.
1202 (read_key_sequence): For a click on a string, consider `local-map'
1203 and `keymap' of that string.
1204
52283633
SM
1205 * keyboard.c (make_lispy_event, make_lispy_movement):
1206 Adjust calls to buffer_posn_from_coords to new format.
3cfd8357
GM
1207
1208 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
1209
1210 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
1211 POS; return void.
1212
95522746
GM
1213 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
1214 flags argument to emacs_open; it seems to conflict with O_EXCL.
1215
898a399d
KH
12162001-03-09 Kenichi Handa <handa@etl.go.jp>
1217
28cd4910
KH
1218 * composite.h (struct composition): Change types of members;
1219 glyph_len to unsigned, width to unsigned short.
898a399d 1220
4cdf6a6c
AI
12212001-03-08 Andrew Innes <andrewi@gnu.org>
1222
1223 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
1224 menu titles.
1225
129004d3
GM
12262001-03-08 Gerd Moellmann <gerd@gnu.org>
1227
221dd3e7
GM
1228 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
1229 instead of nil.
1230
52283633 1231 * xterm.c (note_mouse_highlight): Handle mouse-face and
5de7c6f2
GM
1232 help-echo in strings.
1233 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
1234 (fast_find_string_pos): New function.
1235
52283633
SM
1236 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
1237 (display_string): Call face_at_string_position with new parameter.
5de7c6f2
GM
1238
1239 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
1240 Handle `mouse-face'.
1241
1242 * dispextern.h (face_at_string_position): Change prototype.
1243
52283633 1244 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
e1fbabaf 1245
129004d3
GM
1246 * keyboard.c (make_lispy_event): Avoid generating drag events
1247 if the mouse hasn't actually moved to another buffer position.
52283633 1248
80c8ab8c
DL
12492001-03-08 Dave Love <fx@gnu.org>
1250
129004d3 1251 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
80c8ab8c 1252
989521fd
GM
12532001-03-08 Gerd Moellmann <gerd@gnu.org>
1254
1255 * process.c (Fset_process_window_size): Fix a typo.
1256
bb5c338d
KH
12572001-03-08 Kenichi Handa <handa@etl.go.jp>
1258
1259 * coding.c (detect_coding_sjis): Do more rigid check.
1260 (detect_coding_big5): Likewise.
1261 (decode_coding_sjis_big5): Likewise.
1262 (Fdetect_coding_region): Call detect_coding_system with tailing
1263 anchor byte `\0' for more rigid detection.
52283633 1264 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
bb5c338d
KH
1265 (Fdetect_coding_string): Likewise.
1266
8b8f9197
SM
12672001-03-07 Stefan Monnier <monnier@cs.yale.edu>
1268
1269 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
1270 a string before extracting its data.
1271
3bdf2660
GM
12722001-03-07 Gerd Moellmann <gerd@gnu.org>
1273
1274 * window.c (Frecenter): Rewrite code handling negative values
1275 of ARG on graphical frames.
1276
12772001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
1278
1279 * window.c (displayed_window_lines): If W->start is outside the
1280 accessible portion of the buffer, call start_display with BEGV or
1281 ZV instead of W->start.
1282
471f86b9
GM
12832001-03-07 Gerd Moellmann <gerd@gnu.org>
1284
2ab62c6c
GM
1285 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
1286
471f86b9
GM
1287 * process.c (Fset_process_filter): Don't crash if the input
1288 file descriptor of PROCESS is closed.
1289 (Fset_process_window_size): Likewise.
1290
101922c3
GM
12912001-03-06 Kenichi Handa <handa@etl.go.jp>
1292
1293 * xterm.c (XTflash): Make the timeout of select shorter, and call
1294 select repeatedly until the desired time expires.
1295
45d051a7
GM
12962001-03-06 Gerd Moellmann <gerd@gnu.org>
1297
1298 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
1299
1300 * xfns.c (Fx_create_frame): Clear Vwindow_list.
1301
1302 * lisp.h (Vwindow_list): Declare extern.
1303
8f372c46
EZ
13042001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
1305
1306 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
1307
f16a7aa5
GM
13082001-03-06 Gerd Moellmann <gerd@gnu.org>
1309
157ae273
GM
1310 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
1311 to detect a case where we have to highlight a different region
1312 despite not having left the currently highlighted region.
1313 Set mouse_face_overlay in the x_display_info.
45d051a7 1314 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
157ae273
GM
1315
1316 * xterm.h (struct x_display_info): Add mouse_face_overlay.
1317
1318 * buffer.c (mouse_face_overlay_overlaps): New function.
1319
1320 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
1321 (Qmouse_face): Declare extern.
1322
f16a7aa5
GM
1323 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
1324 if face_change_count is non-zero.
1325
827afcac
KH
13262001-03-06 Kenichi Handa <handa@etl.go.jp>
1327
1328 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
1329 that the source is unibyte.
1330
14c7242e
DL
13312001-03-05 Dave Love <fx@gnu.org>
1332
827afcac 1333 * xterm.c (XTmouse_position): Fix typo.
14c7242e 1334
c28b847b
GM
13352001-03-05 Gerd Moellmann <gerd@gnu.org>
1336
1337 * minibuf.c (read_minibuf): Clean up the binding stack if
1338 called noninteractively.
1339
b86644f2
KH
13402001-03-05 Kenichi Handa <handa@etl.go.jp>
1341
1342 * coding.c (syms_of_coding): Docstring modified.
1343
203682cc 13442001-03-05 Kenichi Handa <handa@etl.go.jp>
b86644f2
KH
1345
1346 * charset.c (char_to_string): If a single byte char has modifier
1347 bits that can't be reflected to the character code, ignore them
45d051a7 1348 instead of signaling an error.
b86644f2 1349
e30bd7b7
EZ
13502001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
1351
1352 * s/msdos.h: Update copyright notice.
1353
1354 * dosfns.h: Update copyright notice.
1355
1356 * dosfns.c: Update copyright notice.
1357
1358 * msdos.c: Update copyright notice.
1359
b52b65bd
GM
13602001-03-02 Gerd Moellmann <gerd@gnu.org>
1361
1362 * xterm.c (glyph_rect): New function.
1363 (XTmouse_position): Use it to raise the threshold for mouse
1364 movement event generation.
1365
53c4b1e6
EZ
13662001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
1367
1368 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
1369 specifies (reverse . t), reverse the initial screen colors.
1370 (IT_set_frame_parameters): If the property is foreground-color,
52283633
SM
1371 but we are reversing the colors, set bg_set, not fg_set.
1372 Likewise for setting background-color and reversing: set fg_set.
1373 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
53c4b1e6
EZ
1374 in effect.
1375
1376 * xfaces.c (Finternal_set_lisp_face_attribute)
1377 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
1378 parameters alist.
1379
f964b4d7
GM
13802001-03-02 Gerd Moellmann <gerd@gnu.org>
1381
ef53d75e
GM
1382 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
1383 to a single slash in the middle of file names.
1384
52283633 1385 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
cda0f4da
GM
1386 Accept only alphanumeric time zone names.
1387
f964b4d7
GM
1388 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
1389 or width area.
1390 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
1391 a widget to zero height.
52283633 1392
c3c45f65
GM
13932001-03-01 Gerd Moellmann <gerd@gnu.org>
1394
1395 * window.c (Fwindow_end): Call move_it_past_eol only if
1396 ending up on a partially visible line.
1397
028d739a
DL
13982001-03-01 Dave Love <fx@gnu.org>
1399
1400 * ccl.c (Fccl_execute): Doc fix.
1401
57c5889c
GM
14022001-03-01 Gerd Moellmann <gerd@gnu.org>
1403
35f59f6b
GM
1404 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
1405 of the tool bar before calling x_figure_window_size.
1406
f84ff02c
GM
1407 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
1408 NULL after destroying it, otherwise XTread_socket can access a
1409 destroyed widget when input is unblocked.
1410
8b8f9197 1411 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
52283633 1412
57c5889c
GM
1413 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
1414 same name as before, although there was a change in fontsets.
1415
224227d1
KR
14162001-02-28 Ken Raeburn <raeburn@gnu.org>
1417
4560730a
KR
1418 * lisp.h (Fframe_parameter): Declare.
1419
224227d1 1420 * window.c (set_window_buffer): Field vscroll is an int, not a
57c5889c 1421 Lisp_Object.
224227d1 1422
ece93c02
GM
14232001-02-28 Gerd Moellmann <gerd@gnu.org>
1424
11ef99b9
GM
1425 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
1426 NULL instead.
1427
1428 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
1429 NULL instead.
1430
ece93c02
GM
1431 * alloc.c (toplevel): Include process.h.
1432 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
1433 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
1434 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
52283633
SM
1435 (allocate_vector, allocate_hash_table, allocate_window)
1436 (allocate_frame, allocate_process, allocate_other_vector):
1437 New functions.
ece93c02
GM
1438 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
1439 (mark_maybe_pointer): New function.
52283633 1440 (mark_memory): Also mark Lisp data to which only pointers
ece93c02
GM
1441 remain and not Lisp_Objects.
1442 (min_heap_address, max_heap_address): New variables.
1443 (mem_find): Return MEM_NIL if START is below min_heap_address or
1444 above max_heap_address.
1445 (mem_insert): Compute min_heap_address and max_heap_address.
1446
1447 * process.c (make_process): Use allocate_process.
1448
1449 * frame.c (make_frame): Use allocate_frame.
1450
1451 * window.c (make_window, make_dummy_parent): Use allocate_window.
1452 (Fcurrent_window_configuration): Use allocate_other_vector.
1453
1454 * lisp.h (allocate_vectorlike): Remove prototype.
1455 (allocate_vector, allocate_other_vector, allocate_frame)
1456 (allocate_window, allocate_process, allocate_hash_table):
1457 Add prototypes.
1458
1459 * fns.c (Fdelete, larger_vector): Use allocate_vector.
1460 (make_hash_table, copy_hash_table): Use allocate_hash_table.
1461
063af457
KH
14622001-02-27 Kenichi Handa <handa@etl.go.jp>
1463
1464 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
1465 treat the produced bytes as a valid multibyte sequence.
1466
1467 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
52283633
SM
1468 (ccl_driver) <CCL_WriteMultibyteChar2>:
1469 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
063af457
KH
1470 <ccl_finish>: Set ccl->eight_bit_control properly.
1471
1472 * ccl.h (struct ccl_program): New member eight_bit_control.
1473
f58c6494
SM
14742001-02-26 Stefan Monnier <monnier@cs.yale.edu>
1475
1476 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
1477 accessible_keymaps_char_table.
1478 (accessible_keymaps_char_table): Obey `is_metized'.
1479 (where_is_internal, Fwhere_is_internal): Don't confuse int and
1480 Lisp_Object.
1481
c596c392
GM
14822001-02-26 Gerd Moellmann <gerd@gnu.org>
1483
1484 * dispnew.c: Check HAVE_TERM_H before including term.h.
1485
425de386
AI
14862001-02-24 Andrew Innes <andrewi@gnu.org>
1487
1488 * makefile.w32-in: Update copyright notice.
1489
2ba11bbd
SM
14902001-02-24 Stefan Monnier <monnier@cs.yale.edu>
1491
1492 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
1493
66c56ed1
KH
14942001-02-24 Kenichi Handa <handa@etl.go.jp>
1495
4c1593ce
KH
1496 * Makefile.in (lisp): Add international/utf-8.elc.
1497
66c56ed1
KH
1498 * fontset.c (Fnew_fontset): Fix handling of the case that an
1499 element of FONTLIST is a cons of family and registry.
1500
796ead7e
JR
15012001-02-23 Jason Rumney <jasonr@gnu.org>
1502
1503 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
1504 to height unconditionally.
1505
1506 * w32term.c (x_set_glyph_string_background_width): Extend the
52283633 1507 background face to the end of the drawing area in the text area, only.
796ead7e
JR
1508 (x_insert_glyphs): Call window_box_left to obtain the left
1509 x-coordinate of the area to shift.
1510
1511 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
1512 safe_run_hooks.
1513
f6839838
AI
15142001-02-22 Andrew Innes <andrewi@gnu.org>
1515
52283633 1516 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
f6839838
AI
1517 ($(BLD)\dispnew.obj):
1518 ($(BLD)\editfns.obj):
1519 ($(BLD)\fileio.obj):
1520 ($(BLD)\filelock.obj):
1521 ($(BLD)\keyboard.obj):
1522 ($(BLD)\w32proc.obj):
1523 ($(BLD)\process.obj):
1524 ($(BLD)\sysdep.obj): Ditto.
1525
1526 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
1527 header files.
52283633
SM
1528 ($(BLD)/dispnew.$(O)):
1529 ($(BLD)/editfns.$(O)):
1530 ($(BLD)/fileio.$(O)):
1531 ($(BLD)/filelock.$(O)):
1532 ($(BLD)/keyboard.$(O)):
1533 ($(BLD)/w32proc.$(O)):
1534 ($(BLD)/process.$(O)):
f6839838
AI
1535 ($(BLD)/sysdep.$(O)): Ditto.
1536
c224f70b
GM
15372001-02-22 Gerd Moellmann <gerd@gnu.org>
1538
51695746
GM
1539 * xdisp.c (forward_to_next_line_start): When taking the shortcut
1540 at the start of the function, check that the \n in it->c is
1541 from the iterator's current position.
52283633 1542
a61b7058
GM
1543 * xdisp.c (handle_single_display_prop): Add parameter
1544 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
1545 properties which replace the display of text with something else.
1546 (handle_display_prop): Call handle_single_display_prop with
1547 additional argument saying if we already replaced text display
1548 with something else. Use AREF.
52283633 1549 (with_echo_area_buffer_unwind_data, display_menu_bar)
a61b7058
GM
1550 (decode_mode_spec_coding): Use AREF and ASIZE.
1551
3473f362
GM
1552 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
1553 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
1554 * vmstime.h: Files removed.
52283633 1555
2bb58df3
GM
1556 * unexencap.c, unexfx2800.c: Files removed.
1557
c224f70b
GM
1558 * dispnew.c (direct_output_for_insert): Give up if we are showing
1559 a message or just cleared the message because we might need to
1560 resize the echo area window or display an empty echo area.
1561
ffc9ff0c
GM
15622001-02-21 Gerd Moellmann <gerd@gnu.org>
1563
0528abe1
GM
1564 * xdisp.c (redisplay_internal): Do the
1565 mark_window_display_accurate after all windows have been
1566 redisplayed because this call resets flags in buffers which are
1567 needed for proper redisplay.
1568
52283633
SM
1569 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
1570 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
ffc9ff0c
GM
1571 the old names.
1572
52283633
SM
1573 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
1574 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
1575
1576 * msdos.h (struct x_output): Rename busy_window to
1577 hourglass_window, busy_p to hourglass_p.
1578
52283633
SM
1579 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
1580 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
1581
1582 * xfns.c: Rename everything containing *busy_cursor* and similar
1583 to *hourglass*.
1584 (syms_of_w32fns): Rename x-busy-pointer-shape to
1585 x-hourglass-pointer-shape, display-busy-cursor to
1586 display-hourglass, busy-cursor-delay to hourglass-delay.
1587
1588 * w32fns.c: Rename everything containing *busy_cursor* and similar
1589 to *hourglass*.
1590 (syms_of_w32fns): Rename x-busy-pointer-shape to
1591 x-hourglass-pointer-shape, display-busy-cursor to
1592 display-hourglass, busy-cursor-delay to hourglass-delay.
1593
1594 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
1595 of its busy_p flag.
1596
1597 * dispextern.h (start_hourglass, cancel_hourglass)
1598 (display_hourglass_p): Renamed from *busy_cursor*.
1599
ab2c5f0a
GM
16002001-02-20 Gerd Moellmann <gerd@gnu.org>
1601
d17e49a8
GM
1602 * keyboard.c (read_char): When an event from unread-command-events
1603 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
1604
fa97adf6
GM
1605 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
1606 equal to the current buffer.
1607
ab2c5f0a
GM
1608 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
1609 nil, otherwise we're left with truncate_lines t when a message
1610 is printed with message-truncate-lines bound to t.
1611
aeac019e
GM
16122001-02-19 Gerd Moellmann <gerd@gnu.org>
1613
c8bc6f65
GM
1614 * window.c (Fmove_to_window_line): Undo last change.
1615 (displayed_window_lines): Call line_bottom_y to determine
1616 the line's bottom position.
1617
1618 * dispextern.h (line_bottom_y): Add prototype.
1619
52283633 1620 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
c8bc6f65
GM
1621 (pos_visible_p): Use it.
1622
980a2d69
GM
1623 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
1624 set redisplaying_p to 0 here instead of in Frecursive_edit.
1625 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
1626 set redisplaying_p.
1627
52283633 1628 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
184d2372
GM
1629 New variables.
1630 (syms_of_xdisp): Initialize new variables.
1631 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
1632 Specbind `inhibit-menubar-update' when updating the menu bar.
1633
65048e97
GM
1634 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
1635 safe_run_hooks.
1636
1637 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
1638 safe_run_hooks.
1639
a57c4026
GM
1640 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
1641 is null.
1642
aeac019e
GM
1643 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
1644 to the start of the file.
1645
76846b31
GM
16462001-02-16 Gerd Moellmann <gerd@gnu.org>
1647
f3f053f3 1648 * window.c (set_window_buffer): Fix last change.
52283633 1649
f3f053f3
GM
1650 * window.c (set_window_buffer): Set window's vscroll to 0.
1651
dad75588
GM
1652 * window.c (coordinates_in_window): Increase width of area
1653 where the vertical line can be dragged.
1654
c220b753
GM
1655 * xterm.c (x_set_glyph_string_background_width): Extend the
1656 background face to the end of the drawing area in the text
1657 area, only.
1658
c56b1c1b
GM
1659 * xdisp.c (handle_single_display_prop): Set iterator's position
1660 to where the `display' property starts, like for images.
1661 (dump_glyph): New function.
1662 (dump_glyph_row): Use it. Dump info about marginal areas.
1663
1664 * dispnew.c (direct_output_for_insert): Recognize more cases where
1665 glyphs can be written instead of being inserted.
1666
1667 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
1668 the left x-coordinate of the area to shift.
1669
76846b31
GM
1670 * dired.c (directory_files_internal): Set result list to nil
1671 before retrying.
1672
0fc71a77
KH
16732001-02-15 Kenichi Handa <handa@etl.go.jp>
1674
1675 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
1676 invalid multibyte sequence, treat *SRC as a character of
1677 eight-bit-graphic.
1678
25078b54
EZ
16792001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
1680
1681 * textprop.c (Fset_text_properties): Doc fix.
1682
8399f8a0
GM
16832001-02-15 Gerd Moellmann <gerd@gnu.org>
1684
1685 * dispnew.c (update_text_area): Undo change of 2001-01-12.
1686
9a2a6f73
DL
16872001-02-14 Dave Love <fx@gnu.org>
1688
1689 * coding.c: Doc and message fixes.
1690
bf853fee
AI
16912001-02-14 Andrew Innes <andrewi@gnu.org>
1692
1693 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
1694 Emacs frame above the screen size.
1695
78c663d8
GM
16962001-02-14 Gerd Moellmann <gerd@gnu.org>
1697
1698 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
1699
7cc9f69f
GM
17002001-02-13 Gerd Moellmann <gerd@gnu.org>
1701
0a411995
GM
1702 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
1703 case that TO ends up beyond ZV after running before-change-functions.
1704
5ddc1b75
GM
1705 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
1706 the selected window if it is showing the buffer in question.
1707
7cc9f69f
GM
1708 * dired.c (directory_files_internal): Initialize errno.
1709 (toplevel): Include errno.h.
1710
2e6621ca
GM
17112001-02-13 Kenichi Handa <handa@etl.go.jp>
1712
1713 * xfaces.c (best_matching_font): New parameter width_ratio.
1714 Multiply avgwidth by width_ratio.
1715 (choose_face_font): Call best_matching_font with width_ratio
1716 calculated from the column width of C.
1717
60222d69
AI
17182001-02-12 Andrew Innes <andrewi@gnu.org>
1719
1720 The following changes are to draw box lines inside characters area
1721 if line-width is negative.
52283633 1722
60222d69
AI
1723 * w32term.c (x_produce_image_glyph): Pay attention to the case that
1724 face->box_line_width is negative.
1725 (x_produce_stretch_glyph): Likewise.
1726 (x_produce_glyphs): Likewise.
1727 (x_estimate_mode_line_height): Likewise.
1728 (x_draw_glyph_string_background): Likewise.
1729 (x_draw_glyph_string_foreground): Likewise.
1730 (x_draw_composite_glyph_string_foreground): Likewise.
1731 (x_draw_glyph_string_box): Likewise.
1732 (x_draw_image_foreground): Likewise.
1733 (x_draw_image_relief): Likewise.
1734 (x_draw_image_foreground_1): Likewise.
1735 (x_draw_image_glyph_string): Likewise.
1736
9804b846
KH
17372001-02-09 Kenichi Handa <handa@etl.go.jp>
1738
1739 The following changes are to draw box lines inside characters area
1740 if line-width is negative.
52283633 1741
9804b846
KH
1742 * xterm.c (x_produce_image_glyph): Pay attention to the case that
1743 face->box_line_width is negative.
1744 (x_produce_stretch_glyph): Likewise.
1745 (x_produce_glyphs): Likewise.
1746 (x_estimate_mode_line_height): Likewise.
1747 (x_draw_glyph_string_background): Likewise.
1748 (x_draw_glyph_string_foreground): Likewise.
1749 (x_draw_composite_glyph_string_foreground): Likewise.
1750 (x_draw_glyph_string_box): Likewise.
1751 (x_draw_image_foreground): Likewise.
1752 (x_draw_image_relief): Likewise.
1753 (x_draw_image_foreground_1): Likewise.
1754 (x_draw_image_glyph_string): Likewise.
1755
1756 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
1757 and :line-width can be negative.
52283633 1758 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
9804b846 1759
49be9f70
JR
17602001-02-09 Jason Rumney <jasonr@gnu.org>
1761
1762 * w32term.c (w32_encode_char): Treat eight bit graphic and control
1763 characters the same as ASCII and latin-1.
1764 (x_display_and_set_cursor): Check for the focus frame's selected
1765 window instead of selected_window.
1766 (x_after_update_window_line): Don't clear if frame's internal
1767 border width is zero.
1768 (x_new_font): Don't change a tooltip's size.
1769 (w32_initialize): Set char_ins_del_ok to 1.
1770
1771 * w32fns.c (Fx_show_tip): Fix calls to make_number.
1772 (x_set_font): If font hasn't changed, avoid recomputing
1773 faces and other things.
52283633
SM
1774 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
1775 (Fx_create_frame): Add the tool bar height to the frame height.
49be9f70
JR
1776 (x_create_tip_frame): Prevent changing the tooltip's
1777 background color by specifying a color for the default font
1778 in .Xdefaults.
1779 (Qcancel_timer): New variable.
1780 (syms_of_w32fns): Initialize and staticpro it.
1781 (Fx_hide_tip, Fx_show_tip): Use it.
1782 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
1783 the timer.
1784 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
1785
1786 * w32.c (init_environment): Duplicate local string before putenv.
1787
555e35d2
SZ
17882001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
1789
1790 * charset.c (Fstring): A typo.
1791
19c92c94
KH
17922001-02-09 Kenichi Handa <handa@etl.go.jp>
1793
e47a1c33
KH
1794 * charset.c (Fstring): If all arguments are less than 256, return
1795 a unibyte string.
1796
1797 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
1798 return a unibyte string.
1799
19c92c94
KH
1800 * coding.c (code_convert_region): After detecting a coding, if
1801 nothing found, set coding->composing to COMPOSITION_NO.
1802 (decode_coding_string): Likewise.
1803
d8e675f5
SM
18042001-02-08 Stefan Monnier <monnier@cs.yale.edu>
1805
1806 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
1807 to avoid overflow.
1808
bd503487
KH
18092001-02-07 Kenichi Handa <handa@etl.go.jp>
1810
1811 * charset.c (parse_str_to_multibyte): New function.
1812
1813 * charset.h (parse_str_to_multibyte): Extern it.
1814
1815 * print.c (print_string): If we are going to print a unibyte
1816 string into a multibyte buffer, convert the string to multibyte by
1817 str_to_multibyte.
1818
a8370d72
AI
18192001-02-06 Andrew Innes <andrewi@gnu.org>
1820
1821 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
1822 been created. It seems we can get sent window messages such as
1823 WM_ERASEBKGND before we properly update a frame.
1824
c363a1d6
GM
18252001-02-06 Gerd Moellmann <gerd@gnu.org>
1826
1827 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
1828 Avoid some unnecessary cursor positioning.
1829
a08332c0
GM
18302001-02-05 Gerd Moellmann <gerd@gnu.org>
1831
52283633 1832 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
a08332c0
GM
1833 (LFACE_AVGWIDTH): New macro.
1834 (LFACEP): Use AREF.
1835 (check_lface_attrs): Check LFACE_AVGWIDTH.
1836 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
1837 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
1838 (merge_face_vectors): Check LFACE_AVGWIDTH.
1839 (Finternal_make_lisp_face): Use AREF.
1840 (xm_set_menu_resources_from_menu_face)
1841 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
1842 (Finternal_lisp_face_empty_p): Use AREF.
1843 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
1844 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
1845 Compare average widths..
1846 (best_matching_font): Arrange for comparing average widths.
1847
52283633
SM
1848 * dispextern.h (enum lface_attribute_index):
1849 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
1850
5cb3c8d4
DL
18512001-02-05 Dave Love <fx@gnu.org>
1852
1853 * puresize.h: Revert last change following loadup.el change.
1854
193fba87
AI
18552001-02-05 Andrew Innes <andrewi@gnu.org>
1856
1857 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
1858 invocation of temacs, to work with Windows 2000.
1859 (bootstrap-emacs): Ditto.
1860
e16f52ce
GM
18612001-02-05 Gerd Moellmann <gerd@gnu.org>
1862
7a58ab59
GM
1863 * xterm.c (x_display_and_set_cursor): Check for the focus
1864 frame's selected window instead of selected_window.
1865
e89aaabd
GM
1866 * xdisp.c (try_scrolling): If point is in the line below the
1867 window, make sure to move the iterator at least a canonical
1868 char height down.
1869
52283633 1870 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
e16f52ce 1871
789ce875
KH
18722001-02-05 Kenichi Handa <handa@etl.go.jp>
1873
52283633
SM
1874 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
1875 If invalid, execute CCL_INVALID_CMD.
789ce875
KH
1876 (ccl_driver): If the CCL program is terminated because of
1877 CCL_STAT_INVALID_CMD, copy the remaining source data to the
1878 destination instead of throwing them away.
1879
20b28f82
GM
18802001-02-02 Gerd Moellmann <gerd@gnu.org>
1881
79fb38c0
GM
1882 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
1883 faces and other things.
1884
20b28f82
GM
1885 * xdisp.c (get_next_display_element): Fix case of empty
1886 display table entry.
1887
5a72551e
EZ
18882001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
1889
eb24d0bf
EZ
1890 * editfns.c (Fconstrain_to_field): Doc fix.
1891
6a3f48c7
EZ
1892 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
1893 into `thoroughly', to make it consistent with the doc string.
1894
5a72551e
EZ
1895 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
1896
01acdb05
GM
18972001-02-01 Gerd Moellmann <gerd@gnu.org>
1898
0353b28f
GM
1899 * search.c (search_buffer): Call set_search_regs with a byte
1900 position, not a character position.
1901
01acdb05
GM
1902 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
1903 minibuffer-only,
1904
e86b5133
EZ
19052001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
1906
1907 * frame.c (Fmodify_frame_parameters): Doc fix.
1908
7442878f
GM
19092001-01-31 Gerd Moellmann <gerd@gnu.org>
1910
01acdb05
GM
1911 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
1912 identifier which is not reserved by Standard C.
52283633 1913
7442878f
GM
1914 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
1915
1916 * window.c (enum window_part): New enumeration.
1917 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
1918 Qright_bitmap_area.
1919 (coordinates_in_window): Return an enumerator from enum
1920 window_part. Fix handling of right scroll bar.
1921 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
1922 `right-fringe' instead of `left-bitmap-area' and
1923 `right-bitmap-area'. Use enumerators from enum window_part
1924 instead of hard-coded integers.
52283633
SM
1925 (check_window_containing, window_from_coordinates):
1926 Use enumerators from enum window_part instead of hard-coded integers.
7442878f
GM
1927 (syms_of_window): Replace Qleft_bitmap_area and
1928 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
1929
7c132cba
EZ
19302001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
1931
1932 * editfns.c (Fformat_time_string): Doc fix.
1933
c359dd9e
SM
19342001-01-31 Stefan Monnier <monnier@cs.yale.edu>
1935
1936 * keymap.c (Fwhere_is_internal): Use the first valid binding
1937 if no ascii binding is found (when firstonly is t).
1938
ce070307
GM
19392001-01-31 Gerd Moellmann <gerd@gnu.org>
1940
b4f30ec5
GM
1941 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
1942 instead of Finteractive_p.
1943
1944 * lisp.h (interactive_p): Add prototype.
1945
1946 * eval.c (interactive_p): New function.
1947 (Finteractive_p): Use it.
1948
ce070307
GM
1949 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
1950
f57b6e64
DL
19512001-01-31 Dave Love <fx@gnu.org>
1952
d61c7afe
DL
1953 * .gdbinit (hook-run): Define to run xreload.
1954
f57b6e64
DL
1955 * textprop.c (Fset_text_properties): Fix newline in doc string.
1956
eef93f99
GM
19572001-01-30 Gerd Moellmann <gerd@gnu.org>
1958
52283633
SM
1959 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
1960 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
eef93f99
GM
1961
1962 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
52283633 1963 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
eef93f99
GM
1964 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
1965
1966 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
1967 height.
1968
d9c1f6f9
DL
19692001-01-30 Dave Love <fx@gnu.org>
1970
1971 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
1972 AFTER_POTENTIAL_GC.
1973
e8f044a0
GM
19742001-01-29 Gerd Moellmann <gerd@gnu.org>
1975
52283633
SM
1976 * bytecode.c (Fbyte_code) <Bcurrent_column>:
1977 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
e8f044a0 1978
8e1db7b3
EZ
19792001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
1980
1981 * textprop.c (Fset_text_properties): Doc fix.
1982
4eefd9d2
GM
19832001-01-29 Gerd Moellmann <gerd@gnu.org>
1984
1985 * xdisp.c (forward_to_next_line_start): Remove xassert.
1986
fccb8288
EZ
19872001-01-29 Jason Rumney <jasonr@gnu.org>
1988
4eefd9d2 1989 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
fccb8288
EZ
1990 returning without releasing it.
1991
76581eab
KH
19922001-01-29 Kenichi Handa <handa@etl.go.jp>
1993
1994 * w32fns.c (w32_font_match): Allocate three more bytes to regex
1995 for '^', '$', and '\0'.
1996
83a96b4d
AC
19972001-01-28 Andrew Choi <akochoi@i-cable.com>
1998
5604ec34
AC
1999 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
2000 regex for '^', '$', and '\0'.
2001
83a96b4d
AC
2002 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
2003 only if current_sblock has been initialized.
2004
2005 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
2006 terminal frame even if it is the only visible frame.
2007
c09a6440
KH
20082001-01-28 Kenichi Handa <handa@etl.go.jp>
2009
2010 * fontset.c (font_family_registry): Even if FONTNAME conform to
2011 XLFD, if it specifies other fields than family and registry,
52283633 2012 return FONTANME. New argument FORCE if nonzero cancel that feature.
c09a6440 2013 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
52283633
SM
2014 a signle byte character. Don't set FAMILY part to nil here.
2015 It is handled by the caller choose_face_font.
c09a6440
KH
2016 (Fnew_fontset): Call font_family_registry with FORCE 0.
2017 (Fset_fontset_font): Likewise.
2018
4dcd74e6
GM
20192001-01-27 Gerd Moellmann <gerd@gnu.org>
2020
2021 * xdisp.c (display_line): Don't treat a newline as fitting
2022 on the line.
2023
d2906bf8
GM
20242001-01-26 Gerd Moellmann <gerd@gnu.org>
2025
0130fe1a
GM
2026 * window.c (size_window): Set the window's orig_top to nil when
2027 changing heights, so that a future shrink_mini_window won't
2028 restore a bogus height.
2029
550f0e6a
GM
2030 * frame.c (do_switch_frame): If selected frame has a mini-window,
2031 resize that to exact size.
2032
b7b20fbd
GM
2033 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
2034
a47b7816
GM
2035 * xdisp.c (display_line): Simplify check for glyphs fitting
2036 entirely in the line.
2037
d2906bf8
GM
2038 * xfns.c (xic_style): New variable.
2039 (create_frame_xic): Move static variable to global scope for
550f0e6a 2040 the case that `static' gets defined away.
d2906bf8 2041
73df2b1e
KH
20422001-01-26 Kenichi Handa <handa@etl.go.jp>
2043
2044 * coding.c (decode_coding): Set a flag for inhibiting
2045 inconsistent eol.
2046 (code_convert_region): Always set saved_coding_symbol.
2047 (decode_coding_string): Likewise. Update coding->symbol when we
52283633 2048 encounter a inconsistent eol by the same way as code_convert_region.
73df2b1e 2049
6613cfc4
GM
20502001-01-25 Gerd Moellmann <gerd@gnu.org>
2051
c5e6e06b
GM
2052 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
2053 XClearArea.
2054
2055 * xterm.c (x_after_update_window_line): Don't clear if frame's
2056 internal border width is zero.
2057 (x_clear_area): New function.
2058 (x_after_update_window_line, x_clear_end_of_line)
2059 (x_scroll_bar_create, x_scroll_bar_set_handle)
2060 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
2061 instead of XClearArea.
2062
2063 * xterm.h (x_clear_area): Add prototype.
2064
6613cfc4
GM
2065 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
2066 which doesn't seem necessary anymore with Lesstif 0.92.
2067
650cc6cc
DL
20682001-01-25 Dave Love <fx@gnu.org>
2069
34ac3367
DL
2070 * puresize.h (BASE_PURESIZE): Up to 720000.
2071
650cc6cc
DL
2072 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
2073
5e37dc22
GM
20742001-01-25 Gerd Moellmann <gerd@gnu.org>
2075
e1e441f9
GM
2076 * xdisp.c (echo_area_display): Don't call redisplay_internal
2077 when Emacs is shutting down. We can't run hooks etc. that
2078 would be necessary to do a redisplay.
2079
5e37dc22
GM
2080 * lread.c (read_integer): Use type EMACS_INT instead of int.
2081
0fb94c7f
EZ
20822001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
2083
2084 * ccl.c (ccl_driver): Fix last change.
2085
e3778624
KH
20862001-01-25 Kenichi Handa <handa@etl.go.jp>
2087
2088 * ccl.h (sturct ccl_program): New member suppress_error.
2089
bb264518 2090 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
e3778624
KH
2091 insert error message to the output.
2092 (setup_ccl_program): Initialize ccl->suppress_error to 0.
2093
2094 * coding.h (struct coding_system): New member suppress_error.
2095
2096 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
2097 (Fset_terminal_coding_system_internal): Set the member
2098 suppress_error to 1.
2099 (Fset_safe_terminal_coding_system_internal): Likewise.
2100
245ed2b1
SM
21012001-01-24 Stefan Monnier <monnier@cs.yale.edu>
2102
2103 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
2104 as if it was a `charset'.
2105
f9aaedb6
GM
21062001-01-24 Gerd Moellmann <gerd@gnu.org>
2107
2108 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
2109 value in where_is_cache; the next lookup in the cache returns
2110 something bogus if we do.
2111
c3902c3e
EZ
21122001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
2113
2114 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
2115 if HAVE_WINDOW_SYSTEM isn't defined.
2116
3497f73e
GM
21172001-01-24 Gerd Moellmann <gerd@gnu.org>
2118
e7e41584
GM
2119 * fns.c (sweep_weak_table): Fix code taking items out of
2120 the hash collision chain. Some cleanup.
2121
3497f73e
GM
2122 * xterm.c (x_new_font): Don't change a tooltip's size.
2123
2124 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
2125 background color by specifying a color for the default font
2126 in .Xdefaults.
2127
3d48e687
KH
21282001-01-24 Kenichi Handa <handa@etl.go.jp>
2129
96531b20
KH
2130 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
2131 a workaround for SunOS 4's cc.
2132 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
2133 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
2134 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
2135 statement.
3d48e687 2136
a30629d2
GM
21372001-01-23 Gerd Moellmann <gerd@gnu.org>
2138
2139 * xterm.c (x_set_window_size_1): New function extracted from
2140 x_set_window_size.
2141 (x_set_window_size): Use it.
2142 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
2143 doesn't have a widget, like tooltips.
2144
5a43decf
EZ
21452001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
2146
52283633 2147 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5a43decf 2148
b0e98867
KH
21492001-01-23 Kenichi Handa <handa@etl.go.jp>
2150
2151 * fns.c (Fset_char_table_default): Fix to make sub char-table
2152 correctly.
2153
50606b4c
GM
21542001-01-22 Gerd Moellmann <gerd@gnu.org>
2155
cb2ddc53 2156 * xdisp.c (build_desired_tool_bar_string): Make sure we have
52283633
SM
2157 a desired tool bar string, even if there are no tool bar items.
2158
57c28064
GM
2159 * xdisp.c (Ftool_bar_lines_needed): New function.
2160 (syms_of_xdisp): Defsubr it.
2161
50606b4c
GM
2162 * editfns.c (Fformat): Don't extend text properties from arguments
2163 to padding chars in the result.
2164
2f169c38
EZ
21652001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
2166
2167 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
2168
0f32f023
AI
21692001-01-20 Andrew Innes <andrewi@gnu.org>
2170
52283633 2171 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
0f32f023
AI
2172 (w32_initialize): Don't set term hooks that aren't actually needed
2173 in windowed mode.
2174
2175 * xfaces.c (realize_default_face):
2176 (realize_face):
2177 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
2178
2179 * xdisp.c (handle_single_display_prop): Remove references to
2180 FRAME_W32_CONSOLE_P.
2181
52283633 2182 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
0f32f023
AI
2183
2184 * frame.h (output_method): Remove output_w32_console method.
2185 (FRAME_W32_CONSOLE_P): Remove macro.
2186
2187 * frame.c (Qw32_console): Remove variable.
2188 (Fframep): Remove references to it.
2189 (syms_of_frame): Ditto.
2190 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
2191
2192 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
2193 redefinition.
2194
7173eada
KH
21952001-01-20 Kenichi Handa <handa@etl.go.jp>
2196
2197 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
2198
755b45ce
AI
21992001-01-19 Andrew Innes <andrewi@gnu.org>
2200
2201 * w32.c (init_environment): Add a version-independent site-lisp
2202 directory to EMACSLOADPATH, after the version dependent one.
2203
0a949811
GM
22042001-01-19 Gerd Moellmann <gerd@gnu.org>
2205
8501998a
GM
2206 * editfns.c (Fbuffer_substring): Doc fix.
2207
52283633
SM
2208 * xdisp.c (message_dolog, message2, message2_nolog):
2209 Rename parameter LEN to NBYTES.
0a949811 2210
e6ebcbbe
KH
22112001-01-19 Kenichi Handa <handa@etl.go.jp>
2212
200ecca2
KH
2213 * charset.c (strwidth): Use c_string_width.
2214 (c_string_width): New function.
2215 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
2216 Caller changed.
2217
2218 * charset.h (c_string_width, lisp_string_width): Extern them.
2219
52283633 2220 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
200ecca2 2221
e6ebcbbe
KH
2222 * indent.c (check_composition): Check validity of composition.
2223
200ecca2
KH
2224 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
2225 characters by calling c_string_width.
2226 (x_consider_frame_title): Get byte length of frame tile string
2227 correctly.
2228 (display_mode_element): Pay attention to width of non-ASCII
2229 characters by calling strwidth.
2230
8692ca92
GM
22312001-01-18 Gerd Moellmann <gerd@gnu.org>
2232
8962e303
GM
2233 * xfns.c (Qcancel_timer): New variable.
2234 (syms_of_xfns): Initialize and staticpro it.
2235 (Fx_hide_tip, Fx_show_tip): Use it.
2236 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
2237 the timer.
2238 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
2239
91523be9
GM
2240 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
2241
2242 * window.h (WINDOW_LIVE_P): New macro.
2243
b0b7ed0e
GM
2244 * window.c (window_size_fixed): New variable.
2245 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
2246 the doc string.
2247
06bccf8e
GM
2248 * eval.c (specbind): If binding a per-buffer variable which
2249 doesn't have a buffer-local value in the current buffer, change
2250 the global value by changing the value of the symbol bound in all
2251 buffers not having their own value, to make it consistent with
2252 what happens with other buffer-local variables.
2253
8692ca92
GM
2254 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
2255
2256 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
2257 when searching for a newline.
2258
bb3a3b50
KH
22592001-01-18 Kenichi Handa <handa@etl.go.jp>
2260
2261 * xdisp.c (display_string): Fix previous change.
2262
c2cc16fa
JR
22632001-01-18 Jason Rumney <jasonr@gnu.org>
2264
2265 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
2266 GLYPH_DEBUG is defined.
2267 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
2268 true for images with `:ascent 100'.
2269 (x_set_mouse_face_gc): If the last used mouse face has gone in the
2270 meantime, use face MOUSE_FACE_ID.
2271 If first glyph isn't a character glyph, use the ASCII NUL
2272 character to determine the face.
2273 (expose_area): Do not treat left margin specially.
2274 (note_mode_line_highlight): If no local_map, check global keymap.
2275 (note_mouse_highlight): Initialize overlay.
52283633 2276 (clear_mouse_face): Don't return if tip_frame is non-nil.
c2cc16fa
JR
2277 (show_scroll_bars): Remove unused function.
2278 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
2279 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
2280 Clip to row.
52283633 2281 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
c2cc16fa
JR
2282 (x_free_frame_resources): Unload relief colors.
2283
9c11f79e
GM
22842001-01-17 Gerd Moellmann <gerd@gnu.org>
2285
3aec8722 2286 * xdisp.c (forward_to_next_line_start): Avoid calling
52283633
SM
2287 get_next_display_element when the newline is already found.
2288 This may change the iterator's position, when its current position is
3aec8722
GM
2289 equal to the iterator's stop_charpos.
2290
f3ffc2c3
GM
2291 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
2292 zero, use this method only at the end of a line.
2293
52283633 2294 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
a86110a8
GM
2295 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
2296 if SCALABLE_FONTS_P is set.
52283633 2297
d26d6fd9
GM
2298 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
2299 so that scalable fonts are included.
2300
9c11f79e
GM
2301 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
2302 In the cache, use a key containing the information if scalable
2303 fonts are included.
2304 (x_load_font): Adapt to change of keys in the font cache.
2305
23062001-01-17 Kim F. Storm <storm@filanet.dk>
52283633 2307
d26d6fd9
GM
2308 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
2309 XListFonts to take advantage of font caching.
2310
9c11f79e
GM
2311 * xterm.c (x_list_fonts): Ensure caching font information when
2312 called for a null frame, which is the case frequently when Emacs
2313 starts.
2314
51446987
GM
23152001-01-17 Gerd Moellmann <gerd@gnu.org>
2316
f864120f
GM
2317 * xfns.c (QCconversion): Replaces QCalgorithm.
2318
2319 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
2320
2321 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
2322 of :algorithm.
52283633 2323
e37d1417
GM
2324 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
2325 not everything could be displayed.
2326
51446987
GM
2327 * line.h, x-list-font.c: Files removed because unused.
2328
9ad4f3e5
AI
23292001-01-17 Andrew Innes <andrewi@gnu.org>
2330
2331 * dired.c (directory_files_internal): Convert result from readdir
2332 to a unibyte string initially, to avoid possible misinterpretation
2333 of some bytes as the internal form of Emacs characters.
2334
2eda09b5
KH
23352001-01-17 Kenichi Handa <handa@etl.go.jp>
2336
2337 * fns.c (concat): Be sure to avoid putting the same `composition'
2338 property on the adjacent regions.
2339
826f3788
GM
23402001-01-16 Gerd Moellmann <gerd@gnu.org>
2341
52283633 2342 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
f251459d
GM
2343 (Fscroll_right, Fscroll_left): Set it here instead, if called
2344 interactively.
2345
d57b83b3
GM
2346 * buffer.c (Fset_buffer_modified_p): Set buffer's
2347 prevent_redisplay_optimizations_p flag.
2348
826f3788 2349 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
52283633
SM
2350 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
2351 with additional arg.
2352
2353 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
2354 Change prototype.
826f3788 2355
826f3788
GM
2356 * xdisp.c (redisplay_preserve_echo_area): Add parameter
2357 FROM_WHERE, for debugging.
2358
261d788b
KH
23592001-01-16 Kenichi Handa <handa@etl.go.jp>
2360
2361 * ccl.c (Fregister_ccl_program): Handle the return value of
2362 resolve_symbol_ccl_program correctly.
52283633 2363 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
261d788b 2364
bccee4f2
GM
23652001-01-15 Gerd Moellmann <gerd@gnu.org>
2366
e4ded23c
GM
2367 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
2368 has gone in the meantime, use face MOUSE_FACE_ID.
52283633
SM
2369
2370 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
2371 If x_display_info_for_display returns null, don't try to close
ae24cb3b
GM
2372 the display; we didn't open it.
2373
bccee4f2
GM
2374 * dispnew.c (save_or_restore_current_matrices): Function removed.
2375 (save_current_matrix, restore_current_matrix): New functions.
2376 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
2377 restore the frame's current matrix. Due to the glyph pointer
2378 setup done in adjust_glyph_matrix, there is no easy way to make
2379 saving the current matrix in the desired matrix generally correct,
2380 so don't try it.
2381
ebeccffa
KH
23822001-01-15 Kenichi Handa <handa@etl.go.jp>
2383
2384 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
2385 truncation glyphs.
2386 (display_line): Optimize for wide characters.
e4ded23c 2387 (display_string): Don't try to display a multi-column character
ebeccffa
KH
2388 partially. On ttys, produce more than one truncation glyph for
2389 multi-column characters that don't fit on the line.
2390
64388126
KH
23912001-01-13 Kenichi Handa <handa@etl.go.jp>
2392
52283633
SM
2393 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
2394 Define it instead of WORDS_BIGENDIAN. Caller changed.
64388126 2395
8edb0a6f
JR
23962001-01-13 Jason Rumney <jasonr@gnu.org>
2397
2398 * w32fns.c (Fimage_size, image_ascent, lookup_image)
2399 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
52283633
SM
2400 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
2401 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
8edb0a6f 2402
52283633
SM
2403 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
2404 (x_draw_image_relief, x_draw_image_foreground_1)
8edb0a6f
JR
2405 (x_draw_image_glyph_string): Adapt to change of image margins.
2406
2407 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
2408 variables.
2409
2410 * w32bdf.c (search_file_line, get_cached_font_char)
2411 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
2412
2413 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
2414
2415 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
2416 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
2417 (Fw32_send_sys_command): Remove unused variables.
2418 (w32_msg_pump): Add parentheses.
2419
2420 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
2421 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
2422 Add parentheses.
2423
4956d1ef
GM
24242001-01-12 Gerd Moellmann <gerd@gnu.org>
2425
b30623be
GM
2426 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
2427 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
2428 being a pair of margins.
2429 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
2430 to DEFVAR_LISP. Extend doc.
2431
2432 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
2433 margins.
2434 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
2435 pair of integers `(X . Y)', use X for the horizontal and Y for the
2436 vertical margin.
2437 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
2438 (parse_image_spec): Check it.
52283633
SM
2439 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
2440 (tiff_format, gif_format, gs_format):
2441 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
b30623be 2442
52283633
SM
2443 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
2444 (x_draw_image_relief, x_draw_image_foreground_1)
b30623be
GM
2445 (x_draw_image_glyph_string): Adapt to the change of image margins.
2446
2447 * dispextern.h (struct image): Replace member `margin' with
2448 `hmargin' and `vmargin'.
2449
4554cc79
GM
2450 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
2451 and GLYPHS.
2452
2453 * dispnew.c (update_text_area): Put code which decrements the
2454 stop position when the row's face extends to the end of the
3bffc665 2455 line in #if 0.
4554cc79 2456
3cccce8d
GM
2457 * xfns.c (x_set_mouse_color): Fix color allocation.
2458
4956d1ef
GM
2459 * keyboard.c: Call get_local_map with new argument list.
2460
2461 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
2462
2463 * intervals.h (enum map_property): Removed.
2464 (get_local_map): Change prototype.
2465
2466 * keymap.c: Call get_local_map with new argument list.
2467 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
2468
2c2ff7f2
GM
24692001-01-11 Gerd Moellmann <gerd@gnu.org>
2470
a23887b9
GM
2471 * xdisp.c (build_desired_tool_bar_string): Correct the computation
2472 of the size needed for the tool bar string. For the last image,
2473 use a `display' property that reaches to the end of the string.
2474
a7ee2d2e
GM
2475 * xselect.c (selection_request_dpyinfo): New variable.
2476 (x_handle_selection_request): Set it.
2477 (x_selection_request_lisp_error): Don't call
2478 x_decline_selection_request if selection request's display has
2479 been closed.
2480
52283633
SM
2481 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
2482 Do the unregister_colors before calling XFreeColors.
2c2ff7f2 2483
457b792c
GM
24842001-01-10 Dave Love <fx@gnu.org>
2485
2486 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
2487 ${SOME_MACHINE_LISP}, not ${lisp}.
2488
c1efd260
GM
24892001-01-10 Gerd Moellmann <gerd@gnu.org>
2490
52283633
SM
2491 * xdisp.c (display_line): On ttys, produce more than one truncation
2492 glyph for multi-column characters that don't fit on the line.
a98b5ed9 2493
ac95a621
GM
2494 * xselect.c (x_reply_selection_request): Add a comment.
2495
c1efd260
GM
2496 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
2497 XkbGetNames instead of XkbGetKeyboard.
2498
1bfb1345
DL
24992001-01-10 Dave Love <fx@gnu.org>
2500
2501 * sysdep.c (random): Revert the declaration.
2502
38119822
GM
25032001-01-09 Gerd Moellmann <gerd@gnu.org>
2504
52283633
SM
2505 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
2506 Call function string_bytes.
35f464a7
GM
2507 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
2508
2509 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
2510 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
2511 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
2512 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
2513 the current sblock.
2514 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
2515 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
2516 after sweeping strings, and at the end.
2517 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
2518
38119822
GM
2519 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
2520 ensure that pop_message is called.
2521
2522 * keyboard.c (Fexecute_extended_command): Use a
2523 record_unwind_protect to ensure that pop_message is called.
2524
2525 * lisp.h (push_message_unwind): Add prototype.
2526
2527 * xdisp.c (push_message_unwind): New function.
2528
2529 * fileio.c (do_auto_save_unwind): Do the pop_message here
2530 instead of in Fdo_auto_save.
2531 (Fdo_auto_save): Don't call pop_message.
2532
f47a9ec4
KR
25332001-01-08 Ken Raeburn <raeburn@gnu.org>
2534
2535 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
2536 in inner block.
2537
a758f97d
GM
25382001-01-08 Gerd Moellmann <gerd@gnu.org>
2539
6d0afc03
GM
2540 * window.c (window_scroll_pixel_based): Adjust glyph matrices
2541 when increasing window's vscroll.
2542
a758f97d
GM
2543 * macros.c (Qkbd_macro_termination_hook): New variable.
2544 (syms_of_macros): Initialize and staticpro it.
2545 (pop_kbd_macro): Run kbd-macro-termination-hook.
2546
2547 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
2548
1bfb1345 25492001-01-07 Dave Love <fx@gnu.org>
64d4ec0f
DL
2550
2551 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
2552 arglist, for documentation's sake.
2553
0dac6924
AI
25542001-01-06 Andrew Innes <andrewi@gnu.org>
2555
2556 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
2557 of *.pdb.
2558
8182406a
AI
25592001-01-05 Andrew Innes <andrewi@gnu.org>
2560
2561 * term.c (update_end): Don't check updating_frame; for some reason
2562 this can be 0 sometimes, such as after dismissing a popup menu,
2563 and isn't necessary given the explicit frame argument.
2564
3828218c
GM
25652001-01-05 Gerd Moellmann <gerd@gnu.org>
2566
2567 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
2568 on some systems, and an unsigned long on others, like FreeBSD 4.1.
2569
2f5ded21
GM
25702001-01-04 Gerd Moellmann <gerd@gnu.org>
2571
52283633 2572 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
2f5ded21
GM
2573
2574 * xfns.c (x_create_tip_frame): Preserve the value of
2575 face_change_count around the creation of the tip frame.
52283633 2576
2f5ded21
GM
2577 * xfns.c (last_show_tip_args): New variable.
2578 (compute_tip_xy): New function.
2579 (Fx_show_tip): Reuse an existing tip frame, if possible.
2580 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
2581
dfad65fa
DL
25822001-01-04 Dave Love <fx@gnu.org>
2583
64d4ec0f
DL
2584 * editfns.c (Fformat): Doc fix.
2585
dfad65fa
DL
2586 * systime.h (set_file_times): Prototype.
2587
2588 * widget.h (EmacsFrameSetCharSize_): Prototype.
2589
2590 * sysdep.c (random, srandom): Declare explicitly.
2591
2592 * dispextern.h (move_it_vertically_backward): Declare.
2593
85fe3b5e
GM
25942001-01-04 Gerd Moellmann <gerd@gnu.org>
2595
0f2ac578
GM
2596 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
2597 like in Fx_create_frame.
2598
482cca61
GM
2599 * xfaces.c (set_font_frame_param): Don't do anything for
2600 non-graphical frames.
2601
85fe3b5e
GM
2602 * window.c (Fdelete_other_windows): Set window's window_end_valid
2603 to nil when changing the window's start. Don't change the
2604 window's start when its top position hasn't changed. If we do,
2605 this will set the window's optional_new_start, which act's like a
2606 force_start during redisplay with C-x 1 M-> under particular
2607 circumstances (see report from Per Starback to emacs-pretest-bug
2608 from 2000-12-13.).
2609
3e99d3b4
GM
26102001-01-03 Gerd Moellmann <gerd@gnu.org>
2611
a77dc1ec
GM
2612 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
2613 short cut at the start of the function. Add an assertion.
2614 (reseat_at_next_visible_line_start): Add an assertion.
2615
2f3cad6c
GM
2616 * window.c (Frecenter): When changing the window start, set the
2617 window's window_end_valid to nil.
2618 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
2619
2620 * dispextern.h (move_it_past_eol): Add prototype.
2621
2622 * xdisp.c (move_it_past_eol): New function.
2623
3e99d3b4
GM
2624 * window.c (Fwindow_end): Doc fix.
2625
26262001-01-03 Dave Love <fx@gnu.org>
2627
52283633 2628 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
3e99d3b4 2629
bafb434c
GM
26302001-01-03 Gerd Moellmann <gerd@gnu.org>
2631
2632 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
2633 the enabled_p flag of the glyph row at window_end_vpos to 0.
2634 (handle_single_display_prop): Fix last change.
2635
5297fb00
RS
26362001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2637
2638 * window.c (Frecenter): Doc fix.
2639
13d6a61c
AI
26402001-01-02 Andrew Innes <andrewi@gnu.org>
2641
2642 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
2643
2644 * frame.h (output_method): Add output_w32_console method.
2645 (FRAME_W32_CONSOLE_P): New macro.
2646
2647 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
2648 use output_w32_console method.
2649 (Qw32_console): New Lisp_Object.
2650 (Fframep): Return it.
2651 (syms_of_frame): Init it.
52283633 2652 (Fframe_parameters): Report w32console as font for w32_console frames.
13d6a61c
AI
2653
2654 * xfaces.c (realize_default_face): Set face foreground and
2655 background to unspecified for w32_console frames.
2656 (realize_face): Realize face cache for w32_console frames.
2657 (realize_tty_face): Accept w32_console frames.
2658
52283633 2659 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
13d6a61c
AI
2660 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
2661 necessary, even if running interactively.
2662
2663 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
2664 w32_console frames.
2665
52283633
SM
2666 * w32term.c (x_update_begin):
2667 (x_update_end):
2668 (x_clear_frame):
2669 (x_ins_del_lines):
2670 (x_change_line_highlight):
2671 (x_delete_glyphs):
2672 (w32_ring_bell):
2673 (x_update_begin):
2674 (x_update_end):
2675 (w32_reassert_line_highlight):
2676 (w32_frame_rehighlight):
13d6a61c
AI
2677 (w32_frame_raise_lower): Do nothing if not w32 frame.
2678
2679 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
2680
2681 * w32fns.c (Fx_display_color_cells): Determine correct value, when
2682 system doesn't tell us directly.
2683 (Fx_display_visual_class): Implement properly.
2684
d6bb0c0d
GM
26852001-01-02 Gerd Moellmann <gerd@gnu.org>
2686
2687 * window.c (Frecenter): Handle centering in graphical frames
2688 specially. Centering on the basis of line counts doesn't work
2689 reliably with variable-height lines.
52283633 2690
315f5865
EZ
26912001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
2692
2693 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
2694 and al[].
2695
52283633 2696 * composite.c (run_composition_function): Remove unused var `val'.
315f5865
EZ
2697 (update_compositions): Remove unused variable `hook'.
2698
2699 * intervals.c (get_local_map): Remove unused variable `tem'.
2700
2701 * doprnt.c (doprnt1): Remove unused variable `size'.
2702
2703 * fns.c (Flength): Remove unused variable `tail'.
2704 (Fdelete): Remove unused variable `size'.
2705
2706 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
2707 and `gcpro2'.
2708
52283633 2709 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
315f5865
EZ
2710
2711 * data.c (find_symbol_value): Remove extra 3rd argument in the
2712 call to swap_in_symval_forwarding.
2713
52283633 2714 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
315f5865
EZ
2715
2716 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
2717 (trivial_regexp_p): Remove unused variable `c'.
2718 (boyer_moore): Remove unused variable `k'.
2719
2720 * indent.c (current_column): Remove unused variable `stopchar'.
2721 (Fcompute_motion): Remove unused variable `contin'.
2722
2723 * casefiddle.c (casify_object): Remove unused variable `tolen'.
2724
2725 * dired.c (directory_files_internal): Fix a typo in a comment.
2726 Remove an unused variable `handler'.
52283633 2727 (file_name_completion): Remove unused function-scope variable `dp'.
315f5865
EZ
2728 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
2729 on BSD4_2.
2730
52283633 2731 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
315f5865
EZ
2732
2733 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
2734 and `buf'.
2735 (Fmarker_insertion_type): Remove unused variable `buf'.
2736
2737 * insdel.c (make_gap): Remove unused variable `result'.
2738
52283633 2739 * keyboard.c (record_char): Remove unused function-scope var `help'.
315f5865
EZ
2740 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
2741 (menu_bar_items): Remove unused function-scope variable `tem'.
2742
2743 * fontset.c (fontset_ref): Remove unused variable `i'.
2744 (fontset_set): Remove unused variables `j' and `tmp'.
52283633 2745 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
315f5865
EZ
2746 (make_fontset_for_ascii_face): Remove unused variable `name'.
2747 (fs_load_font): Remove unused variable `font_idx'.
52283633 2748 (fs_query_fontset): Remove unused function-local variable `fontset'.
315f5865
EZ
2749 (list_fontsets): Remove unused variable `tail'.
2750 (Fnew_fontset): Remove unused variables `family' and `registry'.
2751 (accumulate_font_info): Remove unused variable `tmp'.
2752 (Ffontset_font): Remove unused variable `id'.
2753 (syms_of_fontset): Remove unused variable `i'.
2754
2755 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
2756 to x_term_init.
2757 (lookup_image): Remove unused variable `file'.
2758 (xbm_load): Remove unused variables `bitmap_data', `height', and
2759 `width'. Remove function-local variable `i', leave the
2760 block-local one.
2761 (gif_load): Remove unused variable `inc'.
2762
52283633 2763 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
315f5865
EZ
2764 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
2765 leave only the one in the inner block.
2766
2767 * xfaces.c (face_fontset, realize_default_face): Remove unused
2768 variable `fontset'.
2769 (face_at_buffer_position): Remove unused variable `multibyte_p'.
2770
2771 * term.c (encode_terminal_code): Remove unused variable `c'.
2772
2773 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
2774 char *' instead of `char *'.
2775
2776 * category.c (Fcategory_docstring): Remove unused variable `doc'.
52283633 2777 (Fget_unused_category): Remove unused variable `docstring_vector'.
315f5865
EZ
2778 (Fchar_category_set): Remove unused variables `val', `charset',
2779 `c1' and `c2'.
2780
52283633
SM
2781 * coding.c (detect_coding_iso2022, setup_coding_system):
2782 Remove unused variable `i'.
315f5865
EZ
2783 (detect_coding_mask): Remove unused variable `idx'.
2784 (detect_coding): Remove unused variable `i'.
2785 (ccl_coding_driver): Remove unused variable `result'.
2786 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
52283633 2787 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
315f5865
EZ
2788 (encode_coding_string): Remove unused variables `gcpro1' and
2789 `saved_coding_symbol'.
2790 (Ffind_coding_systems_region_internal): Remove function-local
2791 variable args[], leave only the block-local one.
2792 (code_convert_region1): Remove unused variable `len'.
2793
2794 * charset.c (char_printable_p): Remove unused variable `chars'.
2795 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
2796 (str_to_multibyte): Remove unused variable `c'.
2797
2798 * window.c (size_window): Remove block-local variable `min_size'.
2799
2800 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
2801 `header_line_height'.
2802 (append_space, extend_face_to_end_of_line): Declare `saved_what'
2803 enum display_element_type.
2804
1a8a9daf
GM
28052001-01-02 Gerd Moellmann <gerd@gnu.org>
2806
6dde6abc 2807 * xterm.c (x_connection_closed): Catch X errors around all
52283633
SM
2808 statements that call X. Save away the error message in a local copy.
2809
1883b2c6
GM
2810 * xterm.c (x_connection_closed): Set handling_signal to 0 at
2811 the start.
2812
a13be207
GM
2813 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
2814 in or at the start of invisible text.
2815
1a8a9daf
GM
2816 * dispnew.c (update_window): Don't check_current_matrix_flags.
2817
3608c0f9
JR
28182001-01-01 Jason Rumney <jasonr@gnu.org>
2819
2820 * w32fns.c (x_figure_window_size): Do not allow new_height and
2821 new_width of frame to override specified values.
2822
abb1acc4
KH
28232000-12-30 Kenichi Handa <handa@etl.go.jp>
2824
52283633 2825 * composite.c (find_composition): Fix a code for searching backward.
abb1acc4 2826
762a68ec
GM
28272000-12-29 Gerd Moellmann <gerd@gnu.org>
2828
52283633 2829 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
9c8b8382
GM
2830 (update_window) [GLYPH_DEBUG]: Call it.
2831 (scrolling_window): Prevent including current rows which are below
2832 what's displayed in the window.
2833
2834 * xdisp.c (try_window_reusing_current_matrix)
2835 <new start <= old start>: Disable rows in the current matrix
2836 which are below the window after scrolling.
52283633 2837
762a68ec
GM
2838 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
2839 is zero. It's not worth the complexity.
2840 (invisible_text_between_p): Put in #if 0 because unused.
2841
2d5912c1
GM
28422000-12-28 Gerd Moellmann <gerd@gnu.org>
2843
46f6a258
GM
2844 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
2845 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
2846
89f93679
GM
2847 * keyboard.c (echo_char): If C is an integer, always call
2848 push_key_description. Former code could signal an invalid
2849 character error.
2850
2851 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
2852 If set, print multibyte text.
2853 (Fsingle_key_description): Call push_key_description with
2854 FORCE_MULTIBYTE set.
2855 (describe_buffer_bindings): Likewise.
2856
2857 * lisp.h (push_key_description): Add prototype.
2858
c06017fb
GM
2859 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
2860 around the call to redisplay_internal.
2861
f1d2ce7f
GM
2862 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
2863
2d5912c1
GM
2864 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
2865
9371f831
KH
28662000-12-28 Kenichi Handa <handa@etl.go.jp>
2867
2868 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
2869 (ccl_driver): New local variable `extra_bytes'.
2870
2871 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
2872
52283633
SM
2873 * coding.c (setup_coding_system):
2874 Initialize coding->spec.ccl.eight_bit_carryover.
9371f831
KH
2875 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
2876
0c80628a
KH
28772000-12-28 Kenichi Handa <handa@etl.go.jp>
2878
2879 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
2880 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
2881 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
2882 (decode_composition_emacs_mule): New function.
2883 (decode_coding_emacs_mule): Decode composition sequence by calling
2884 decode_composition_emacs_mule.
2885 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
52283633
SM
2886 (encode_coding_emacs_mule): Changed from macro to function.
2887 If a text contains compositions, encode them correctly.
0c80628a
KH
2888 (setup_coding_system): Set coding->commong_flags for emacs-mule so
2889 that decoding and encoding are required.
2890
3e32cc27
GM
28912000-12-27 Gerd Moellmann <gerd@gnu.org>
2892
5e25feee
GM
2893 * xfaces.c (PT_PER_INCH): New macro.
2894 (xlfd_point_size): Compute real point size from font's pixel size.
2895 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
2896 instead of 72.
2897
892d8fcd
GM
2898 * .gdbinit: Comment out the line pointing to the Lesstif source
2899 directory.
2900
12c8b416
GM
2901 * window.c (Frecenter): Use displayed_window_lines instead
2902 of window_internal_height.
2903
6061fbf0
GM
2904 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
2905 instead of x-toolkit-scroll-bars-p.
2906 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
2907
2908 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
2909 instead of x-toolkit-scroll-bars-p.
2910 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
52283633 2911
3e32cc27
GM
2912 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
2913 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
52283633
SM
2914 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
2915 New variables.
2916 (add_window_display_history, add_frame_display_history)
3e32cc27
GM
2917 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
2918 (build_frame_matrix_from_leaf_window): Remove unused code.
2919 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
2920 redisplay history.
2921 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
2922 (update_window) [GLYPH_DEBUG]: Likewise.
2923 (syms_of_display): Defsubr dump-redisplay-history.
2924
31798cfe
GM
29252000-12-23 Gerd Moellmann <gerd@gnu.org>
2926
f717c2ba
GM
2927 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
2928 the end of the prompt. Set echo_after_prompt to the offset
2929 of echoptr in echobuf.
2930
aeb2b8fc
GM
2931 * xdisp.c (init_from_display_pos): Pop until the iterator's
2932 stack is empty; there may be frames for stretch or images
2933 on the stack.
2934
31798cfe
GM
2935 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
2936 (save_or_restore_current_matrix): New function for the same
2937 purpose, but more efficient.
2938 (adjust_frame_glyphs_for_frame_redisplay): Use it.
2939
f8156156
EZ
29402000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
2941
2942 * xdisp.c (syms_of_xdisp): Fix last change.
2943
bdd6d4e8
GM
29442000-12-23 Gerd Moellmann <gerd@gnu.org>
2945
2946 * xdisp.c (syms_of_xdisp): Doc fix.
2947
2948 * xdisp.c (redisplay_window): Remove label restore_buffers;
2949 use finish_scroll_bars instead to make sure that scroll bars
2950 are redeemed. If we don't do this, flickering can result from
2951 scroll bars being destroyed and recreated.
2952
9436cdf9
JR
29532000-12-22 Jason Rumney <jasonr@gnu.org>
2954
2955 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
2956 in the wrong colors when the foreground is not black.
2957 (expose_window): Don't redraw the window that's currently being
2958 updated.
2959
951f9df5
GM
29602000-12-22 Gerd Moellmann <gerd@gnu.org>
2961
856ff7a7
GM
2962 * window.c (size_window): When setting the window's too_small_ok
2963 flag, compare old size with minimum size depending on WIDTH_P,
2964 don't compare with window_min_width.
52283633 2965
951f9df5
GM
2966 * window.c (delete_window): Simplify somewhat.
2967 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
2968 freeing window matrices. The flag windows_or_buffers_changed is
2969 set, so the next redisplay will consider all windows; this should
2970 suffice.
2971
886bc933
KH
29722000-12-22 Kenichi Handa <handa@etl.go.jp>
2973
2974 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
2975
2976 * ccl.h (struct ccl_program): New member cr_consumed.
2977
2978 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
2979 (CCL_READ_CHAR): Handle EOL conversion here.
2980 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
2981
177f4e88
GM
29822000-12-21 Gerd Moellmann <gerd@gnu.org>
2983
52283633 2984 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
6ba384dc
GM
2985
2986 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
2987 otherwise tabs of different size compare equal.
2988
2989 * callint.c (Fcall_interactively): Prevent a compiler warning.
2990
2991 * print.c (print_unwind): Return nil.
2992 (PRINTDECLARE): Initialize all local variables.
2993 (print_preprocess): Add a default case.
2994
8e15274f
GM
2995 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
2996
2997 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
2998
52283633 2999 * window.c (delete_window, Fsplit_window)
177f4e88
GM
3000 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
3001
3002 * dispextern.h (ensure_frame_matrix): Function declaration removed.
3003
3004 * dispnew.c (ensure_frame_matrix): Removed.
3005 (save_frame_matrix, restore_frame_matrix): New functions.
3006 (adjust_frame_glyphs_for_frame_redisplay): Use them.
3007
3008 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
3009 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
3010
99012074
AI
30112000-12-21 Andrew Innes <andrewi@gnu.org>
3012
3013 * w32term.c (x_update_begin): Regenerate the palette here, rather
3014 than for each window.
3015
3016 * w32xfns.c (select_palette): Avoid calling SelectPalette if
3017 palette is NULL, since this corrupts memory! Also get
3018 display_info reference from frame.
3019
29ef7d2d
JR
30202000-12-21 Jason Rumney <jasonr@gnu.org>
3021
3022 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
3023
3024 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
3025 to avoid returning without releasing it.
3e27fa1f 3026
3f9d67a6
KH
30272000-12-21 Kenichi Handa <handa@etl.go.jp>
3028
587fc3f9
KH
3029 * keymap.c (push_key_description): Don't convert eight-bit-control
3030 and eight-bit-graphic to multibyte character.
3031
3f9d67a6
KH
3032 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
3033 generic character and CODE1 is nil, return the smallest character
3034 in CHARSET.
3035
774ba8c9
DL
30362000-12-20 Dave Love <fx@gnu.org>
3037
3038 * s/osf5-0.h (NSIG): Don't redefine.
3039
88416888
SM
30402000-12-20 Stefan Monnier <monnier@cs.yale.edu>
3041
3042 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
3043 excluding menu-bar and tool-bar.
3044 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
3045 (menu_item_p): Remove.
3046 (where_is_internal_1): Don't ignore menu-items.
3047
a6426c6f
GM
30482000-12-20 Gerd Moellmann <gerd@gnu.org>
3049
03ff8aab
GM
3050 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
3051 into account.
3052
3053 * window.c (make_window): Initialize window's min_hscroll.
3054 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
3055 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
3056 to zero.
3057 (struct saved_window): New member min_hscroll.
3058 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
3059 (Fset_window_configuration): Set window's min_hscroll.
3060 (save_window_save): Save window's min_hscroll.
3061 (compare_window_configurations): Compare min_hscroll values.
3062
3063 * window.h (struct window): New member min_hscroll.
3064
3065 * keyboard.c (echo_prompt): Prevent a compiler warning.
3066
8de4aaf8
GM
3067 * xdisp.c (try_cursor_movement): Fix last change. The real
3068 condition is that PT is at the end of the row, and should
3069 be displayed at the start of the next row.
52283633 3070
3f7e3031
GM
3071 * xdisp.c (try_cursor_movement): If we end on a partially
3072 visible line, end we already decided to scroll, return -1.
3073
a6426c6f
GM
3074 * dispextern.h (ensure_frame_matrix): Add prototype.
3075
3076 * window.c (delete_window, Fsplit_window)
3077 (Fset_window_configuration): Call ensure_frame_matrix.
3078
52283633
SM
3079 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
3080 New functions.
a6426c6f
GM
3081 (adjust_frame_glyphs_for_frame_redisplay): If display has been
3082 completed, call fake_current_matrices instead of marking frame
3083 garbaged.
3084
57fa2774
JR
30852000-12-20 Jason Rumney <jasonr@gnu.org>
3086
3087 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
3088
d925df90
EZ
30892000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
3090
3091 * fns.c (Frequire): Doc fix.
3092
7b93a85b
GM
30932000-12-19 Gerd Moellmann <gerd@gnu.org>
3094
52283633 3095 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
71d4497a 3096
c74e645b
GM
3097 * dispnew.c (direct_output_for_insert): Fix check for mini-window
3098 currently displaying a message.
3099
7b93a85b
GM
3100 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
3101 xterm.h.
3102 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
3103
90d97e64
AI
31042000-12-18 Andrew Innes <andrewi@gnu.org>
3105
3106 * w32.c (w32_strerror): New function.
3107
3108 * w32.h (w32_strerror): New extern.
3109
3110 * w32fns.c (Fw32_shell_execute): Use it.
3111
91c9e6ce
GM
31122000-12-18 Gerd Moellmann <gerd@gnu.org>
3113
3114 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
3115
6f4745e2
EZ
31162000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
3117
3118 * msdos.c (IT_set_face): Obey inverse_video.
3119
c9e088ce
KH
31202000-12-18 Kenichi Handa <handa@etl.go.jp>
3121
3122 * dired.c (directory_files_internal): Always return decoded filenames.
3123
c3695f5f
GM
31242000-12-18 Gerd Moellmann <gerd@gnu.org>
3125
52d8e4ff
GM
3126 * xterm.c (x_connection_closed): Prevent being called recursively
3127 because of an error condition in XtCloseDisplay.
52283633 3128
62be9979
GM
3129 * xdisp.c (init_iterator): If noninteractive, and the frame's
3130 face cache is null, make one.
3131
52283633 3132 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
5f7a1890 3133
c3695f5f
GM
3134 * process.c (wait_reading_process_input): Check for pending
3135 input when running timers.
3136
78555fbe
EZ
31372000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
3138
52283633 3139 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
78555fbe 3140
b2b36264
KH
31412000-12-18 Kenichi Handa <handa@etl.go.jp>
3142
3143 * process.c (read_process_output): Don't run a filter if the code
3144 decoder produces nothing but carryover.
3145
9c543fbf
AI
31462000-12-17 Andrew Innes <andrewi@gnu.org>
3147
3148 * w32.c (sys_rename): Only check errno against EEXIST, and not
3149 EACCES, when determining whether rename failed because the target
3150 exists. This was resulting in indefinite looping on Windows 9x if
3151 the source file was locked by another process.
3152
3153 * w32fns.c (Ffile_system_info): New function.
3154 (syms_of_w32fns): Defsubr it.
3155
10c2b5a8
GM
31562000-12-17 Gerd Moellmann <gerd@gnu.org>
3157
b0228ace
GM
3158 * window.c (coordinates_in_window): Fix computation for
3159 position on vertical line between mode lines.
3160
10c2b5a8
GM
3161 * xfns.c (unwind_create_frame): Return t if frame was deleted.
3162 Don't alter tip_frame or tip_window.
3163 (unwind_create_tip_frame): Set tip_frame to nil only if frame
3164 was deleted.
3165
c844a81a
GM
3166 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
3167 Don't alter tip_frame or tip_window.
3168 (unwind_create_tip_frame): Set tip_frame to nil only if frame
3169 was deleted.
3170
6c825f8e
EZ
31712000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
3172
3173 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
3174 be consistent with the doc string. Reported by NAKAJIMA Mikio
3175 <minakaji@osaka.email.ne.jp>.
3176
af4bb4c8
KH
31772000-12-16 Kenichi Handa <handa@etl.go.jp>
3178
3179 * xfaces.c (Vface_ignored_fonts): New variable.
3180 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
3181 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
3182
8062e53a
GM
31832000-12-15 Gerd Moellmann <gerd@gnu.org>
3184
e87b8809
GM
3185 * dispnew.c (update_window): Detect pending input every nth line
3186 updated, i.e. do it depending on real work done, and not on the
3187 vpos of the line.
3188
3189 * xterm.c (expose_window): Don't redraw the window that's
3190 currently being updated.
3191
a6768cc5
GM
3192 * window.c (Fset_window_point): Remove test for
3193 cursor_in_non_selected_windows.
3194
4ea7fdca
GM
3195 * lread.c (read1): Recognize end of file after `\\'.
3196
8062e53a
GM
3197 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
3198 not unwind_create_frame.
3199
bb7959c1
GM
32002000-12-15 Dave Love <fx@gnu.org>
3201
3202 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
3203 bcopy & al.
3204
3205 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
3206
ced04c42
KH
32072000-12-15 Kenichi Handa <handa@etl.go.jp>
3208
c5443913
KH
3209 * coding.c (setup_coding_system): Clear all members of the struct
3210 coding_system at first.
bc137305
KH
3211 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
3212 argument.
3213 (code_convert_region): Don't override coding->src_multibyte and
3214 coding->dst_multibyte.
c5443913 3215
ced04c42
KH
3216 * fns.c (Fmd5): Docstring improved.
3217
c2d7f289
MB
32182000-12-15 Miles Bader <miles@gnu.org>
3219
3220 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
3221 are actually marked as mode-lines; otherwise use
3222 estimate_mode_line_height.
3223
9d7d9263
GM
32242000-12-14 Gerd Moellmann <gerd@gnu.org>
3225
3226 * editfns.c (Fformat): Prevent a buffer overrun when the format
3227 specifies a precision.
3228
7cf0153a
EZ
32292000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
3230
3231 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
3232 argument is outside the range [2..3].
3233
1de0f662
AI
32342000-12-14 Andrew Innes <andrewi@gnu.org>
3235
3236 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
3237 nothing to do. Bind inhibit-quit.
3238 (tip_frame): Make it a Lisp_Object.
3239 (x_create_tip_frame): Set tip_frame after it has been added to
3240 Vframe_list.
3241 (Fx_show_tip): Don't set tip_frame here.
52283633 3242 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
1de0f662
AI
3243 (unwind_create_frame, unwind_create_tip_frame): New functions.
3244 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
3245 while a frame is only partially constructed.
3246
3247 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
3248 (x_free_frame_resources): New function.
3249 (x_destroy_window): Use it.
3250
02387dcc
GM
32512000-12-14 Gerd Moellmann <gerd@gnu.org>
3252
3253 * xfns.c (Fx_backspace_delete_keys_p): New function.
3254 (syms_of_xfns): Defsubr it.
3255
3256 * config.in (HAVE_XKBGETKEYBOARD): Add.
3257
0544ef49
KH
32582000-12-14 Kenichi Handa <handa@etl.go.jp>
3259
98d62747
KH
3260 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
3261 Always store string in multibyte representation in echobuf.
3262 (echo_char): Always store string in multibyte representation in
3263 echobuf.
3264 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
3265 (read_key_sequence): Adjusted for the change of echo_prompt.
3266
a20193cd
KH
3267 * fns.c (Fmd5): Docstring improved.
3268
191b83b6
KH
3269 * lisp.h (detect_coding_system): Prototype adjusted.
3270
0544ef49
KH
3271 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
3272 (detect_coding_emacs_mule, detect_coding_iso2022,)
3273 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
52283633
SM
3274 (detect_coding_utf_16, detect_coding_ccl): Make them static.
3275 New argument MULTIBYTEP. Callers changed.
0544ef49
KH
3276 (detect_coding_mask, detect_coding_system): New argument
3277 MULTIBYTEP. Callers changed.
1da1bb05
KH
3278 (decode_coding_string): Set coding->src_multibyte and
3279 coding->dst_multibyte before calling detect_coding and detect_eol.
3280 Update them after some coding system is detected.
52283633 3281
d5b3eb1b
SM
32822000-12-13 Stefan Monnier <monnier@cs.yale.edu>
3283
3284 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
3285
3286 * keyboard.c (menu_bar_items, tool_bar_items):
3287 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
3288
f7f8bb69
GM
32892000-12-13 Gerd Moellmann <gerd@gnu.org>
3290
52283633 3291 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
19f71add
GM
3292 New variables.
3293 (unwind_create_frame, unwind_create_tip_frame): New functions.
3294 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
3295 while a frame is only partially constructed.
3296
3297 * xterm.h (x_free_frame_resources): Declare.
3298
3299 * xterm.c (x_free_frame_resources): New function.
3300 (x_destroy_window): Use it.
3301
e10da507
GM
3302 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
3303 don't interrupt the update for pending input initially, i.e.
3304 update at least some lines.
3305
3306 * keyboard.c (do_mouse_tracking): Make externally visible.
52283633 3307
d5b3eb1b 3308 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
f7f8bb69
GM
3309
3310 * xfns.c (gray_bitmap_bits): Declare `char *'.
3311
90aa2856
GM
33122000-12-12 Gerd Moellmann <gerd@gnu.org>
3313
3314 * xdisp.c (display_tool_bar_line): Make sure that tool bar
3315 lines start with a relief line.
3316
a308c9cd
DL
33172000-12-12 Dave Love <fx@gnu.org>
3318
3319 * window.c (Fdisplay_buffer): Doc fix.
3320 (Fwindow_list): Remove unused var.
3321
3322 * buffer.h (mmap_set_vars): Declare.
3323
3324 * window.h (Fset_window_point): Declare.
3325
d575011f
EZ
33262000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
3327
bf6282d2 3328 * msdos.c (fast_find_position): Don't overstep the last window row.
52283633
SM
3329 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
3330 variable `area'. When looking for a row under (X,Y), give up if some
3331 of the previous rows is not enabled.
d575011f 3332
ecf4d726
GM
33332000-12-12 Gerd Moellmann <gerd@gnu.org>
3334
2ebf6139
GM
3335 * window.c (Fset_window_point): If displaying cursors in windows
3336 other than the selected window, make sure redisplay updates
3337 other windows to show the new value of point in the window.
3338
3339 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
3340
bfdb75ee
GM
3341 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
3342 the buffer is the sole visible buffer when in the mini-buffer.
3343
52283633 3344 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
4fdbd809
GM
3345 Bind `inhibit-read-only' to t.
3346 (unwind_with_echo_area_buffer): Use AREF.
3347
c0006262
GM
3348 * xfns.c (Fx_hide_tip): Simplified.
3349
52283633
SM
3350 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
3351 instead of `1'.
e9a59cad 3352
ecf4d726
GM
3353 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
3354
e5959a9a
GM
33552000-12-11 Gerd Moellmann <gerd@gnu.org>
3356
a3642e49 3357 * xfns.c (Fx_hide_tip): Fix last change.
52283633 3358
44b5a125
GM
3359 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
3360 nothing to do. Bind inhibit-quit.
3361 (tip_frame): Make it a Lisp_Object.
3362 (x_create_tip_frame): Set tip_frame after it has been added to
3363 Vframe_list.
3364 (Fx_show_tip): Don't set tip_frame here.
3365
3366 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
3367
3368 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
3369 Lisp_Object.
3370
3371 * dispextern.h: Change external declaration of tip_frame.
3372
d990421f
GM
3373 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
3374 return an empty string.
3375
4db87380
GM
3376 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
3377 of the window's update_mode_line flag, since the former is set by
3378 force-mode-line-update, not the latter. This makes
3379 column-number-mode slightly faster.
52283633 3380
e5959a9a
GM
3381 * xdisp.c (try_window_id) <all changes above window start>:
3382 Set the cursor.
3383
169fe44e
GM
33842000-12-11 Paul Eggert <eggert@twinsun.com>
3385
3386 * config.in (HAVE_FTELLO): Remove.
3387 (HAVE_FSEEKO): Add.
3388 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
3389 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
3390 HAVE_FTELLO.
3391 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
3392 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
52283633 3393
59ec59ae
MB
33942000-12-11 Miles Bader <miles@gnu.org>
3395
3396 * window.c (displayed_window_lines): Don't round up when
3397 converting empty space at bottom to lines.
ff904dd6
MB
3398 Handle non-newline-terminated final lines properly.
3399 (Fwindow_text_height): New function (used to be in lisp).
3400 (syms_of_window): Initialize it.
59ec59ae 3401
42ebfa31
SM
34022000-12-09 Stefan Monnier <monnier@cs.yale.edu>
3403
3404 * syntax.c (scan_lists): Check that the right quote char has the
3405 right Sstring syntax when jumping over strings.
3406 (init_syntax_once): Use Smax rather than 13.
3407
5cdb3cf3
MB
34082000-12-09 Miles Bader <miles@gnu.org>
3409
3410 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
3411 with PARTIALLY, inverting the sense.
3412 (window_scroll_pixel_based): Scroll partially visible lines into
3413 place if we hit the beginning or end of the buffer.
a12167c5
MB
3414 (displayed_window_lines): Don't include partially visible lines.
3415 (Fmove_to_window_line): Skip past any partially visible first line.
5cdb3cf3 3416
842b2a94
GM
34172000-12-08 Gerd Moellmann <gerd@gnu.org>
3418
3419 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
3420
3421 * tparam.c (tparam1): Change the way buffers are reallocated to be
3422 portable and less obfuscated.
3423
3424 * termcap.c (tgetent): Change the way buffers are reallocated to
3425 be portable and less obfuscated.
3426
3427 * macros.c (store_kbd_macro_char): Change the way buffers are
3428 reallocated to be portable and less obfuscated.
3429
3430 * lread.c (read1): Change the way buffers are reallocated to be
3431 portable and less obfuscated.
3432
3433 * doc.c (Fsubstitute_command_keys): Change the way buffers
3434 are reallocated so that it is portable.
3435
137cad7c
EZ
34362000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
3437
3438 * dosfns.c (Ffile_system_info): New function.
3439 (syms_of_dosfns): Defsubr it.
3440
5c7f629c
SM
34412000-12-07 Stefan Monnier <monnier@cs.yale.edu>
3442
3443 * alloc.c (gc_sweep): Add comment.
3444
959e647d
GM
34452000-12-07 Gerd Moellmann <gerd@gnu.org>
3446
52283633
SM
3447 * sound.c (vox_configure): Change order of ioctls.
3448 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
28fcb7dc
GM
3449 Ignore errors when changing volume.
3450 (vox_close): Don't reset the device.
3451
926b7e5e
GM
3452 * process.c (read_process_output): Make sure the process marker's
3453 position is valid when the process buffer is changed in
3454 after-change functions. W3 does that.
52283633 3455
959e647d
GM
3456 * xfns.c (x_free_gcs): New function.
3457
3458 * xterm.h (x_free_gcs): Add prototype.
3459
3460 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
3461 freeing GCs here.
3462
3463 * xterm.c (x_destroy_window): Call x_free_gcs so that
3464 resources of non-toolkit X windows will be freed.
3465
478ea067
AI
34662000-12-07 Andrew Innes <andrewi@gnu.org>
3467
3468 * w32fns.c (xlfd_charset_of_font): Fix last change.
3469
fbee3231
DL
34702000-12-06 Dave Love <fx@gnu.org>
3471
67292061
DL
3472 * md5.h (__P): Don't define -- it comes from config.h.
3473
fbee3231
DL
3474 * strftime.c: Change some #if foo to #ifdef foo.
3475
4ee87dbb
AI
34762000-12-06 Andrew Innes <andrewi@gnu.org>
3477
3478 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
3479
52283633 3480 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
4ee87dbb 3481 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
52283633 3482 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
4ee87dbb 3483
9765b4a4
GM
34842000-12-06 Gerd Moellmann <gerd@gnu.org>
3485
d285b373
GM
3486 * alloc.c (gc_sweep): Prevent symbols read during loadup
3487 from being freed.
3488
384333ee
GM
3489 * xdisp.c (underlying_face_id): New function.
3490 (handle_face_prop, face_before_or_after_it_pos): Use it
3491 to determine the face ``under'' a string. Let strings inherit
3492 the face of the buffer under them.
3493
3494 * xfaces.c (face_at_string_position): Update function comment.
52283633 3495
d4b72d58
GM
3496 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
3497 matrix if the window's left position has changed; we need to
3498 redraw it in this case.
3499
3500 * dispextern.h (struct glyph_matrix): Add member window_left_x.
3501
e1d05387
GM
3502 * window.c (coordinates_in_window): Check mouse on mode-line or
3503 header-line first.
3504
eb1b0c74
GM
3505 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
3506 advertized by the function documentation.
3507
d94d636f
GM
3508 * window.c (syms_of_window): Doc fix.
3509
3887b449
GM
3510 * sound.c (vox_configure): Set volume for left and right channel.
3511 (sound_cleanup): Return nil.
3512
efc8f57a
GM
3513 * xdisp.c (move_it_by_lines): Fix paren typo.
3514
9765b4a4
GM
3515 * xterm.c (x_load_font): Don't use the font's max_bounds for
3516 computing the height of the font. If max_bounds' ascent or
3517 descent are greater than the font's ascent or descent, this means
3518 glyphs overlap, which should be handled now by redisplay.
3519
6529ed87
GM
3520 * window.c (Veven_window_heights): New variable.
3521 (syms_of_window): DEFVAR_LISP it.
3522 (Fdisplay_buffer): Check Veven_window_heights before evening the
3523 window heights.
52283633 3524
0eb2ecde
MB
35252000-12-06 Miles Bader <miles@gnu.org>
3526
3527 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
3528 update `default-frame-alist' instead of setting no frame parameters.
3529
03d7a167
KH
35302000-12-06 Kenichi Handa <handa@etl.go.jp>
3531
3532 * composite.c (update_compositions): Fix typo (use the correct
3533 variable).
3534
5f8803c2
JR
35352000-12-05 Jason Rumney <jasonr@gnu.org>
3536
3537 * md5.h: Remove underscores from function declarations.
3538 (__attribute__, __alignof__) [!__GNUC__]: Define.
3539
3540 * md5.c: Delay include of md5.h until after namespace cleaning.
3541
c28a075b
JR
3542 * makefile.w32-in (fns.o): Depend on md5.h
3543 (md5.o): New target.
3544 (sunfns.o): Remove.
3545
3546 * makefile.nt: Likewise.
3547
ff3c7056
JR
35482000-12-05 Jason Rumney <jasonr@altavista.net>
3549
3550 * w32term.c (expose_area): Complete last change.
3551
0c21eeeb
KR
35522000-12-05 Ken Raeburn <raeburn@gnu.org>
3553
3554 * minibuf.c: Include intervals.h.
3555
f201d732
JR
35562000-12-05 Jason Rumney <jasonr@gnu.org>
3557
3558 * w32term.c (x_produce_glyphs): If a font for a component of
3559 a composition is not found, use 1 pixel dot ascent and 0 dot
3560 descent value to avoid displaying terribly tall empty boxes.
3561 (expose_area): Pass x-coordinate relative to the exposed
3562 area to x_draw_glyphs instead of a window-relative coordinate.
3563
21999ab9
GM
35642000-12-05 Gerd Moellmann <gerd@gnu.org>
3565
4d2036e4
GM
3566 * xdisp.c (next_element_from_ellipsis): Save face before selective
3567 display in saved_face_id, and set face_before_selective_p.
3568 (reseat_1): Reset face_before_selective_p.
3569 (append_space, extend_face_to_end_of_line): If iterator's
3570 face_before_selective_p is set, use the face from saved_face_id.
3571 (extend_face_to_end_of_line): For tty frames, make sure to
3572 use the right face id when producing spaces at the end of
3573 the line.
3574
3575 * dispextern.h (struct it): Add face_before_selective_p.
3576
52be17cc
GM
3577 * keyboard.c (record_char): Don't record identical help-echo
3578 events in recent_keys.
3579
8a4f36cc
GM
3580 * xterm.c [USE_X_TOOLKIT]: Close the display.
3581 (xim_close_dpy): Handle case that the display has been closed.
3582
57d6e381
GM
3583 * xterm.c (x_destroy_window): Reset the frame's X window after
3584 destroying it.
3585
21999ab9
GM
3586 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
3587 variable window_width.
3588 (line_draw_cost): Fix code skipping over spaces at the end of the
3589 line when must_write_spaces is not set.
3590 (scrolling_window): Fix code inserting runs in list of all runs.
3591
91372bb7
KH
35922000-12-05 Kenichi Handa <handa@etl.go.jp>
3593
3594 * coding.c (setup_coding_system): Be sure to initialize
3595 coding->category_idx.
3596
6c083b4c
GM
35972000-12-04 Gerd Moellmann <gerd@gnu.org>
3598
0c68ce6f 3599 * xterm.c (PER_CHAR_METRIC): Removed because not used.
52283633 3600
6452929e
GM
3601 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
3602 area to x_draw_glyphs instead of a window-relative coordinate.
3603
d7f31e22
GM
3604 * fileio.c (auto_save_error): Add parameter ERROR. Show the
3605 error in the message.
3606
ae18aa3b
GM
3607 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
3608 timer after having read a key. It's not good for code reading
3609 several keys in a loop, like an input method.
3610
caa15ef7
GM
3611 * fileio.c (Finsert_file_contents): When VISIT is t, don't
3612 record undo information for format-decode.
3613
3614 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
3615 current buffer is read-only, not if it isn't.
3616
6c083b4c
GM
3617 * keyboard.c (record_char): Record `help-echo' input events
3618 in recent_keys only if they display some help. Don't record
3619 `help-echo' events as macro char.
3620
caa15ef7
GM
36212000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
3622
3623 * editfns.c (save_excursion_restore): Don't move point
3624 in another window if it is showing the wrong buffer.
3625 Avoid the call to Fwindow_live_p, for speed.
3626
5a13529b
KH
36272000-12-04 Kenichi Handa <handa@etl.go.jp>
3628
e225faa7
KH
3629 * xfaces.c (struct font_name): New member registry_priority.
3630 (split_font_name): Initialize the above member to zero.
3631 (concat_font_list): New function.
3632 (font_list): Include fonts of all alternative registries.
3633 (FONT_POINT_SIZE_QUANTUM): New macro.
3634 (better_font_p): Ignore point size difference less than
3635 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
3636
e89648b4
KH
3637 * xterm.c (x_produce_glyphs): If a font for a component of
3638 a composition is not found, use 1 pixel dot ascent and 0 dot
3639 descent value to avoid displaying terribly tall empty boxes.
3640
5a13529b
KH
3641 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
3642
d7935eb6
KR
36432000-12-03 Ken Raeburn <raeburn@gnu.org>
3644
3645 * coding.h (code_convert_string1): Declare.
3646
3647 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
3648
52283633 3649 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
d7935eb6 3650
0dd5e255
JR
36512000-12-02 Jason Rumney <jasonr@gnu.org>
3652
3653 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
3654 correctly for single byte character case.
3655 (w32_per_char_metric): Do not try to make any assumptions about
3656 the metrics of BDF fonts.
250cfece 3657 (x_estimate_mode_line_height): If `mode-line' face
52283633 3658 hasn't a font, use that of the frame, as drawing glyphs does.
250cfece
JR
3659 (note_mouse_highlight): Change the cursor shape on the vertical
3660 border between windows [not enabled].
3661
3662 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
3663
3664 * w32fns.c (Fx_create_frame): Reintroduce the call to
3665 face-set-after-frame-defaults.
3666 (Vx_window_horizontal_drag_shape): New variable.
3667 (syms_of_xfns): DEFVAR_LISP it.
3668 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
3669 enabled].
0dd5e255 3670
b5d8d2ca
GM
36712000-12-02 Simon Josefsson <simon@josefsson.org>
3672
3673 * fns.c (Fmd5): Use a different logic to decide the coding system
3674 to use.
3675
3676 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
3677
fbb87147
EZ
36782000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
3679
52283633 3680 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
fbb87147 3681
447e9da0
GM
36822000-12-01 Gerd Moellmann <gerd@gnu.org>
3683
7708ced0
GM
3684 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
3685 height for YNegative.
3686 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
3687 height; also see comment there.
3688
447e9da0
GM
3689 * window.c (coordinates_in_window): Handle computations for
3690 positions on the vertical bar and fringes differently for
3691 window-system frames. Consider some pixels near the vertical bar
3692 as on the bar if the frame doesn't have vertical scroll bars.
3693 Associate positions between mode or header lines with the
3694 right window, the left one.
3695
86d1db20
JR
36962000-12-01 Jason Rumney <jasonr@gnu.org>
3697
3698 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
3699
3700 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
3701 invalid frame.
3702
a1d58e5b
GM
37032000-12-01 Gerd Moellmann <gerd@gnu.org>
3704
52283633 3705 * window.c (struct saved_window): Add members orig_top and orig_height.
a1d58e5b
GM
3706 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
3707 (save_window_save, Fset_window_configuration): Save/restore
3708 window's orig_top and orig_height.
3709
89c609af
JR
37102000-12-01 Jason Rumney <jasonr@gnu.org>
3711
4d177746 3712 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
86d1db20 3713
89c609af
JR
3714 * w32fns.c (x_set_cursor_color): Fix last change.
3715
eccc05db
GM
37162000-11-30 Gerd Moellmann <gerd@gnu.org>
3717
31b6671b
GM
3718 * xdisp.c (echo_area_display): If cursor is in the echo area, make
3719 sure that the next redisplay displays the minibuffer, so that
3720 the cursor will be replaced with what the minibuffer wants.
3721
eccc05db
GM
3722 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
3723 #ifndef instead of using #if.
3724 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
3725 USE_TOOLKIT_SCROLL_BARS is defined.
3726
162de750
JR
37272000-11-30 Jason Rumney <jasonr@gnu.org>
3728
3729 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
3730 x_display_cursor.
3731
693c4692
GM
37322000-11-30 Gerd Moellmann <gerd@gnu.org>
3733
3734 * fns.c (Fmd5): Doc fix.
3735
b5d8d2ca 37362000-11-30 Simon Josefsson <simon@josefsson.org>
edfb795e
GM
3737
3738 * fns.c (Fmd5): New function.
3739 (syms_of_fns): Defsubr md5.
3740
3741 * Makefile.in (obj): Add md5.o
3742
b02cd40b
GM
37432000-11-30 Gerd Moellmann <gerd@gnu.org>
3744
edfb795e
GM
3745 * md5.h, md5.c: New files, taken from glibc.
3746
df3aedcf
GM
3747 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
3748
b02cd40b 3749 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
52283633 3750 hasn't a font, use that of the frame, as drawing glyphs does.
b02cd40b 3751
8b5176cd
SM
37522000-11-29 Stefan Monnier <monnier@cs.yale.edu>
3753
3754 * eval.c (Frun_hooks): Allow 0 arguments.
3755
346598f1
GM
37562000-11-29 Gerd Moellmann <gerd@gnu.org>
3757
f9396e03
GM
3758 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
3759 is over the menu bar widget, say it's not on the frame.
3760
4a967a9b
GM
3761 * xfns.c (Fx_create_frame): Reintroduce the call to
3762 face-set-after-frame-defaults.
3763
346598f1
GM
3764 * eval.c (Fsignal): Reset handling_signal.
3765
222456a1
JR
37662000-11-28 Jason Rumney <jasonr@gnu.org>
3767
3768 * w32menu.c (add_menu_item): Reset menu item text when changing
3769 type to radio button.
3770
8049ddc0
GM
37712000-11-28 Gerd Moellmann <gerd@gnu.org>
3772
346598f1 3773 * xselect.c: Update copyright.
f4f4ee4d 3774
bebe4a2c
GM
3775 * window.c (coordinates_in_window): If on a mode or header line,
3776 but sufficiently close to its start, return ``on vertical
3777 border''. This gives us a way to drag windows horizontally when
3778 using toolkit scroll bars.
3779
3780 * xterm.c (note_mouse_highlight): Change the cursor shape
3781 on the vertical border between windows.
3782
3783 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
3784
3785 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
3786 (syms_of_xfns): DEFVAR_LISP it.
3787 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
3788
8d2c2642
GM
3789 * textprop.c (text_read_only): New function.
3790 (verify_interval_modification): Use it instead of signaling
3791 `text-read-only'. This makes it easier to catch this error
52283633 3792 with a breakpoint.:
8d2c2642 3793
52283633 3794 * xdisp.c (forward_to_next_line_start): Check for newlines,
8049ddc0
GM
3795 not end of line, which includes CR.
3796
5a2bae6c
KH
37972000-11-28 Kenichi Handa <handa@etl.go.jp>
3798
3799 * coding.c (Ffind_coding_systems_region_internal): Be sure to
3800 include no-conversion.
3801
ae31f84d
JR
38022000-11-27 Jason Rumney <jasonr@gnu.org>
3803
3804 * w32fns.c (w32_load_system_font): Always mark font as double byte
3805 if codepage is unicode.
3806
67f1cf4c
GM
38072000-11-27 Gerd Moellmann <gerd@gnu.org>
3808
4a74d071 3809 * xdisp.c (forward_to_next_line_start): If already on a newline,
52283633 3810 just consume it to avoid unintended skipping over invisible text below.
4a74d071 3811
902ae620
GM
3812 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
3813 `vertical-line', `mode-line' and `header-line' events.
3814
3815 * xdisp.c (try_window_id): Avoid starting to display in the middle
67f1cf4c
GM
3816 of a character, a TAB for instance. This is easier than to set
3817 up the iterator exactly, and it's not a frequent case, so the
3818 additional effort wouldn't really pay off.
3819
c1e279c2
AC
38202000-11-26 Andrew Choi <akochoi@i-cable.com>
3821
67f1cf4c 3822 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
c1e279c2
AC
3823 init_window_once.
3824
a609568a
JR
38252000-11-25 Jason Rumney <jasonr@gnu.org>
3826
52283633
SM
3827 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
3828 Args to window_from_coordinates should be pixel coordinates.
48b21762 3829
a609568a
JR
3830 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
3831 redisplay handles them properly.
3832
a658d039
MB
38332000-11-25 Miles Bader <miles@gnu.org>
3834
3835 * indent.c (compute_motion): Keep pos_byte in sync with pos.
3836
d3416cca
JR
38372000-11-24 Jason Rumney <jasonr@gnu.org>
3838
3839 * w32.c (init_environment): Set LANG environment variable based on
3840 locale settings, if not set.
3841
3842 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
3843 making tool bar smaller. When clearing the frame, also
3844 clear current matrices. Clear frame when tool bar disappears.
3845 Don't use more lines for the tool-bar than is available.
3846 (x_change_window_heights): New function.
3847
ba193890
GM
38482000-11-24 Gerd Moellmann <gerd@gnu.org>
3849
2be8f184
GM
3850 * xdisp.c (init_from_display_pos): If POS says we're already after
3851 an overlay string ending at POS, make sure to pop the iterator
3852 because it will be in front of that overlay string. When POS is
3853 ZV, we've thereby also ``processed'' overlay strings at ZV.
3854
ba193890
GM
3855 * xfaces.c (lface_from_face_name): Function comment fix.
3856
1862a24e
MB
38572000-11-24 Miles Bader <miles@gnu.org>
3858
3859 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
3860 apply `mode-line-inverse-video' -- zero means force display using
3861 the default face, non-zero means display using the specialized face.
3862 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
3863
f07fa1b8
KH
38642000-11-23 Kenichi Handa <handa@etl.go.jp>
3865
3866 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
3867 hard coded `4'.
3868
2bcdf662
EZ
38692000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
3870
3871 * coding.c (decode_coding_emacs_mule): Fix the case of
3872 CODING_EOL_LF, which used uninitialized value of c.
3873
ba8299ff
SM
38742000-11-23 Stefan Monnier <monnier@cs.yale.edu>
3875
3876 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
3877
f4117c4d
GM
38782000-11-22 Gerd Moellmann <gerd@gnu.org>
3879
03e757c1
GM
3880 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
3881 buffer object.
3882
f4117c4d
GM
3883 * frame.h (struct frame): Replace desired_tool_bar_items,
3884 current_tool_bar_items, n_desired_tool_bar_items,
cc362d76 3885 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
f4117c4d
GM
3886
3887 * frame.c (make_frame): Change initialization of tool bar
3888 items accordingly.
3889
3890 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
cc362d76 3891 Change references to members deleted from struct frame to use the
f4117c4d
GM
3892 new ones.
3893
3894 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
52283633 3895 references to members deleted from struct frame to use the new ones.
f4117c4d 3896
52283633 3897 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
f4117c4d
GM
3898
3899 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
3900
3901 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
cc362d76 3902 (note_tool_bar_highlight): Change references to members deleted
f4117c4d
GM
3903 from struct frame to use the new ones.
3904
f8e2f3f2
MB
39052000-11-23 Miles Bader <miles@gnu.org>
3906
3907 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
3908 the face's inverse-video attribute, rather than overriding it.
3909
60e8e0a5
GM
39102000-11-22 Gerd Moellmann <gerd@gnu.org>
3911
3912 * xfns.c (x_set_tool_bar_lines): Clear internal border when
3913 making tool bar smaller.
3914
92dd1b29
DL
39152000-11-22 Dave Love <fx@gnu.org>
3916
3917 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
3918
e672fdce
MB
39192000-11-22 Miles Bader <miles@gnu.org>
3920
3a17d6cc
MB
3921 * keyboard.c (Vminibuffer_message_timeout): New variable.
3922 (command_loop_1): Use it to determine message timeout.
3923 (syms_of_keyboard): Initialize it.
3924
60e8e0a5 3925 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
e672fdce 3926
e9655d81
KH
39272000-11-22 Kenichi Handa <handa@etl.go.jp>
3928
3929 * sysdep.c: Move the code for declaring h_errno after #include
3930 <netdb.h>.
3931
77270fac
GM
39322000-11-21 Gerd Moellmann <gerd@gnu.org>
3933
cd913aae
GM
3934 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
3935 the menu bar when the tooltip is unmapped.
3936
77270fac
GM
3937 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
3938 sole visible buffer when we're currently in the mini-buffer, and
3939 give up if so.
52283633 3940
556635d6
JR
39412000-11-21 Jason Rumney <jasonr@gnu.org>
3942
3943 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
3944 put on the clipboard.
3945 (Fw32_get_clipboard_data): Compare data on clipboard with saved
3946 copy of what Emacs last put there. If they are the same, do not
52283633 3947 use the clipboard copy to avoid losing data due to coding conversions.
556635d6 3948
5b7bde64
MB
39492000-11-22 Miles Bader <miles@gnu.org>
3950
3951 * minibuf.c (Vminibuffer_prompt_properties): New variable.
3952 (syms_of_minibuf): Initialize it.
3953 (read_minibuf): Add properties from Vminibuffer_prompt_properties
3954 to prompt, don't make read-only.
3955
ff23e1dd
GM
39562000-11-21 Gerd Moellmann <gerd@gnu.org>
3957
52283633
SM
3958 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
3959 Add BEFORE/AFTER_POTENTIAL_GC.
3c64f287 3960
7aaf4388
GM
3961 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
3962
f5f47add 3963 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 3964
ff23e1dd
GM
3965 * term.c, cm.c: Don't try to include termcap.h; see comment there.
3966
37c35586
KH
39672000-11-21 Kenichi Handa <handa@etl.go.jp>
3968
3969 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
3970 ... #endif scope.
3971
ff9ab414
GM
39722000-11-20 Gerd Moellmann <gerd@gnu.org>
3973
52283633 3974 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
c51d2b5e
GM
3975 screen supports it.
3976
29a01b72
GM
3977 * s/gnu-linux.h: Don't use `#cpu'.
3978
09dfdf85
GM
3979 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
3980 not defined in mman.h.
3981
52283633 3982 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
ff9ab414
GM
3983 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
3984 and store an index in the XClientMessageEvent. Storing a
3985 Lisp_Object or pointer can fail on a 64 bit system, since X only
3986 transfers 32 bits.
52283633
SM
3987 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
3988
81459ac9
DL
39892000-11-20 Dave Love <fx@gnu.org>
3990
3991 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
3992
56c13ae6
GM
39932000-11-20 Gerd Moellmann <gerd@gnu.org>
3994
3995 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
3996
495a6df3
KH
39972000-11-20 Kenichi Handa <handa@etl.go.jp>
3998
2bcf3714
KH
3999 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
4000 by WIDTH.
4001
495a6df3
KH
4002 * alloc.c (make_string): Fix previous change. Be sure to make
4003 unibyte string correctly.
4004
6d950f4c
GM
40052000-11-19 Gerd Moellmann <gerd@gnu.org>
4006
39b39373
GM
4007 * window.c (Fwindow_list): Change parameter list to be XEmacs
4008 compatible.
4009 (window_list_1): New function.
4010 (window_loop): Use it instead of Fwindow_list.
4011
b95b34e5
GM
4012 * sysdep.c (emacs_ospeed): New variable.
4013 (toplevel): Don't declare ospeed extern.
4014 (init_baud_rate): Use emacs_ospeed instead of ospeed.
4015
4016 * termcap.c (ospeed): Remove.
4017 (tputs) [!emacs]: Remove unused code.
4018 (tgetent): Avoid a compiler warning.
4019
e83dc917
GM
4020 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
4021 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 4022 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
4023
4024 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
4025 removed.
4026 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
4027 Take the X display as additional argument.
4028 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
4029 `Widget' is a pointer type that's not easily stored in Lisp_Object
4030 form in a portable way.
52283633 4031
6d950f4c
GM
4032 * dispnew.c (update_text_area): Fix last change.
4033
e47306e6
GM
40342000-11-18 Gerd Moellmann <gerd@gnu.org>
4035
fb3cd89b
GM
4036 * xdisp.c: Use BINDING_STACK_SIZE throughout.
4037
4038 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
4039 clear current matrices.
4040
edaa9aed
GM
4041 * buffer.c (mmap_enlarge): Don't print a message on stderr
4042 if mapping new memory at the end of the existing region fails.
4043
e47306e6
GM
4044 * dispnew.c (update_text_area): Don't skip over equal glyphs
4045 when the last current glyph overlaps the glyph to its right.
4046
509633e3
MB
40472000-11-18 Miles Bader <miles@gnu.org>
4048
4049 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
4050 lines that *end* with "..." too (that's the most common case!).
4051
d392e9c5
GM
40522000-11-18 Gerd Moellmann <gerd@gnu.org>
4053
67988445
GM
4054 * xdisp.c (resize_mini_window): Temporarily change to the
4055 mini-window's buffer if necessary.
1bfdbe43 4056
d392e9c5
GM
4057 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
4058 the tooltip obscures less text under it.
4059
40602000-11-17 Gerd Moellmann <gerd@gnu.org>
4061
4062 * puresize.h (BASE_PURESIZE): Increase to 700000.
4063
92bb977f
JR
40642000-11-18 Jason Rumney <jasonr@gnu.org>
4065
4066 * w32term.c (w32_draw_bitmap): Use face to set colors.
4067
26fbf20b
DL
40682000-11-17 Dave Love <fx@gnu.org>
4069
4070 * lread.c (Fload): Fix #ifdef for pcc.
4071
100b593b
GM
40722000-11-17 Gerd Moellmann <gerd@gnu.org>
4073
4074 * xdisp.c (pos_visible_p): Compute the default character height
4075 differently.
4076
a288d0d1
GM
40772000-11-16 Gerd Moellmann <gerd@gnu.org>
4078
cac94de6 4079 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
52283633 4080 knowing the line's height; use the default font's height in that case.
cac94de6 4081
a288d0d1
GM
4082 * xfaces.c (weight_table): Add `demi' with the same meaning as
4083 `demibold'.
4084
981fb6f6
KH
40852000-11-16 Kenichi Handa <handa@etl.go.jp>
4086
2cca872d 4087 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
4088 (clear_glyph_row): Delete local static variable null_row.
4089
e5fa381b
JR
40902000-11-15 Jason Rumney <jasonr@gnu.org>
4091
4092 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
4093 (w32_alloc_lighter_color): Use new brightness calculations from
4094 xterm.c. Scale delta to be in the range expected by W32.
4095 (w32_draw_relief_rect): Use frame relief colors.
4096
8e42f043
GM
40972000-11-15 Gerd Moellmann <gerd@gnu.org>
4098
6d133d1f
GM
4099 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
4100 (Qinhibit_default_face_x_resources): New variable.
4101 (syms_of_frame): Initialize it.
4102 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
4103
4104 * xdisp.c (pos_visible_p): Improve function comment.
4105
4106 * lisp.h (BINDING_STACK_SIZE): New macro.
4107
8e42f043
GM
4108 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
4109 reading the directory if readdir returns null and errno is EAGAIN
4110 or EINTR.
4111
e8c87124
SM
41122000-11-14 Stefan Monnier <monnier@cs.yale.edu>
4113
4114 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
4115 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
4116 Set amount_to_scroll to max of dx and scroll_step so that
4117 scroll-conservatively doesn't defeat scroll-step>1.
4118 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
4119 scroll-conservatively for line-at-a-time scrolling.
4120
5f0c971d
GM
41212000-11-14 Gerd Moellmann <gerd@gnu.org>
4122
4123 * window.c (Fpos_visible_in_window_p): Call pos_visible with
4124 extra argument.
4125
4126 * xdisp.c (current_mode_line_height, current_header_line_height):
4127 New variables.
4128 (init_xdisp): Initialize them.
4129 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
4130 and use exact mode line heights if it is set.
4131
4132 * lisp.h (pos_visible_p): Change prototype.
4133
4134 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
4135 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
4136 and current_header_line_height first.
52283633
SM
4137 (current_mode_line_height, current_header_line_height):
4138 Declare extern.
5f0c971d 4139
d7361edf
MB
41402000-11-14 Miles Bader <miles@lsi.nec.co.jp>
4141
4142 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
4143 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
4144 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
4145
ee5e440a
MB
41462000-11-14 Miles Bader <miles@gnu.org>
4147
4148 * xterm.c (x_alloc_lighter_color): Include an additive component
4149 too for dark colors, because FACTOR isn't enough.
4150 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
4151 New macros.
4152
5ca020fc
GM
41532000-11-13 Gerd Moellmann <gerd@gnu.org>
4154
4155 * keyboard.c (show_help_echo): Call message3_nolog with number of
4156 bytes in the help string as 2nd parameter, instead of the number
4157 of characters.
4158
9d348294
MB
41592000-11-13 Miles Bader <miles@gnu.org>
4160
4161 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
4162 (Fload): Use new openp return protocol.
4163 Don't try to use Vload_source_file_function to load .elc files.
4164 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
4165 openp return protocol.
4166 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
4167
1729bb9a
KH
41682000-11-11 Kenichi Handa <handa@etl.go.jp>
4169
4e677396
KH
4170 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
4171
4172 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
4173 Defined these macros.
4174 (NLIST_STRUCT): Avoid re-defining it.
4175
1729bb9a
KH
4176 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
4177 -I/usr/contrib/X11R6/include.
4178 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
4179
a82fe213
JR
41802000-11-10 Jason Rumney <jasonr@gnu.org>
4181
4182 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
4183
4184 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
4185 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
4186
4187 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
4188 (Qw32_charset_vietnamese): New symbol.
4189 (xlfd_charset_of_font): New function.
4190 (w32_load_system_font): Use it.
4191 (x_to_w32_charset): Use Fassoc to find charset info. Special case
4192 when Vw32_charset_info_alist is nil to ensure default face always
4193 has font. Use Fcar and Fcdr for safety.
4194 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
4195 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
4196 pseudo-codepages for special cases.
4197 (w32_to_x_font): New parameter to allow charset portion to be
4198 specified where there is many to one mapping. Callers changed.
4199 (w32_list_fonts): Avoid listing fonts that won't display.
4200
52d89894
GM
42012000-11-10 Gerd Moellmann <gerd@gnu.org>
4202
4203 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
4204 (font_list_1): Renamed from font_list.
4205 (font_list): New function, trying alternative registries from
4206 Vface_alternative_font_registry_alist.
4207 (Finternal_set_alternative_font_registry_alist): New function.
4208 (syms_of_xfaces): Initialize and Staticpro
52283633
SM
4209 Vface_alternative_font_registry_alist.
4210 Defsubr Finternal_set_alternative_font_registry_alist.
52d89894 4211
651cd3da
KR
42122000-11-09 Ken Raeburn <raeburn@gnu.org>
4213
4214 * lisp.h (Flooking_at): Declare.
4215
388ac098
GM
42162000-11-09 Gerd Moellmann <gerd@gnu.org>
4217
778fbc46 4218 * dired.c (directory_files_internal): Fix a braino.
52283633 4219
388ac098
GM
4220 * dired.c (directory_files_internal): Add missing GCPRO's.
4221 Some cleanup.
4222
ecaedde1
GM
42232000-11-08 Gerd Moellmann <gerd@gnu.org>
4224
f7eb32aa
GM
4225 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
4226 (resize_mini_window): Return quickly if Vresize_mini_window is
4227 nil. Don't return if Vmax_mini_window_height is nil.
4228
4229 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
4230 (syms_of_xdisp): Initialize them.
4231 (resize_mini_window): Act according to the setting of
4232 Vresize_mini_window.
4233 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
4234
ecaedde1
GM
4235 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
4236 scroll bar widget after configuring it, so that it will appear at
4237 the right position from the start.
4238 (XTredeem_scroll_bar): Cleaned up.
4239
3747ef2c
KH
42402000-11-08 Kenichi Handa <handa@etl.go.jp>
4241
4242 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 4243 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
4244 division by two.
4245
4246 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
4247
03391420
DL
42482000-11-07 Dave Love <fx@gnu.org>
4249
7758f1c1 4250 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
4251
4252 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
4253
b5de343d
GM
42542000-11-07 Gerd Moellmann <gerd@gnu.org>
4255
acad3c0b
GM
4256 * window.c (Fset_window_configuration): Don't try to preserve
4257 point in the current buffer, if that buffer is displayed in more
4258 than one window.
4259
b5de343d
GM
4260 * xfaces.c (lookup_named_face): If default face isn't realized,
4261 try to realize it. Return -1 if not successful.
4262 (Fx_list_fonts): Handle case that face cannot be determined.
4263 (Fface_font): Likewise.
4264
cdb1fe49
GM
42652000-11-06 Gerd Moellmann <gerd@gnu.org>
4266
4267 * window.c (displayed_window_lines): Detect partially
4268 visible lines at the bottom correctly.
4269
d3a67486
SM
42702000-11-06 Stefan Monnier <monnier@cs.yale.edu>
4271
4272 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
4273 when ensuring we don't do visit in indirect buffer.
4274
ff8dd5d5
KH
42752000-11-06 Kenichi Handa <handa@etl.go.jp>
4276
4277 * composite.h (compose_chars_in_text): Add prototype.
4278
4279 * composite.c (Vcomposition_function_table): New variable.
4280 (Qcomposition_function_table): New variable.
4281 (run_composition_function): Call
4282 Vcompose_chars_after_function with three arguments.
4283 (compose_chars_in_text): New function.
4284 (syms_of_composite): Modified the doc-string of
4285 Vcompose_chars_after_function. Declare composition-function-table
4286 as a lisp variable, and initialize it.
4287
4288 * xfns.c (x_encode_text): Suppress producing escape sequences for
4289 composition.
4290
4291 * xselect.c: Include composite.h.
4292 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
4293
d1145f85
AI
42942000-11-05 Andrew Innes <andrewi@gnu.org>
4295
4296 * w32term.c (x_produce_glyphs): Fix typo in enum name.
4297
4298 * sysdep.c (read_input_waiting): Remove extraneous argument to
4299 read_socket_hook.
4300
4301 * w32fns.c (Fx_server_version): Include w32_build_number in the
4302 return list.
4303
4304 * w32heap.c (w32_build_number): New variable.
4305 (cache_system_info): Set it.
4306
4307 * w32heap.h (w32_build_number): Add extern.
4308
4309 * emacs.c (syms_of_emacs): Update docstring for
4310 system-configuration, to reflect the actual usage on MS-Windows.
4311
e85ee976
GM
43122000-10-31 Gerd Moellmann <gerd@gnu.org>
4313
26dcb81b
GM
4314 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
4315 process idle timers while waiting for another event.
4316
52283633 4317 * dispnew.c (update_frame_line): Handle case where spaces in
0a894bad
GM
4318 the default face are colored.
4319
e85ee976
GM
4320 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
4321 window height hasn't changed.
4322
01b220b6
JR
43232000-10-31 Jason Rumney <jasonr@gnu.org>
4324
4325 * w32term.c (x_produce_glyphs): Handle composite characters.
4326 (x_draw_glyph_string_foreground)
4327 (x_draw_composite_glyph_string_foreground): Restore old font.
4328
4e6b7204
MB
43292000-10-31 Miles Bader <miles@lsi.nec.co.jp>
4330
4331 * minibuf.c (read_minibuf): Reset the undo history just before
4332 starting the recursive-edit.
4333
d4358b37
GM
43342000-10-30 Gerd Moellmann <gerd@gnu.org>
4335
563f68f1
GM
4336 * xfaces.c (menu_face_change_count): New variable.
4337 (Finternal_set_lisp_face_attribute): Increment it for changes
4338 of the `menu' face.
4339 (realize_basic_faces): Reflect changes in the `menu' faces
4340 in menu bars.
4341
82e274d1
GM
4342 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
4343 dy obtained from the iterator's y-position after moving from
4344 scroll_margin_pos to PT; see comment there.
52283633 4345
0dbf9fd2
GM
4346 * xdisp.c (safe_eval_handler): Call add_to_log.
4347
906b3b14
GM
4348 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
4349 is not a symbol or string.
4350
d4358b37
GM
4351 * xdisp.c (echo_area_display): Don't perform a display update from
4352 inside redisplay. The update will happen anyway at the end of
4353 redisplay, and it can confuse redisplay (GC messages while
4354 redisplaying, for instance.)
4355
70c825df
SM
43562000-10-30 Stefan Monnier <monnier@cs.yale.edu>
4357
cf9b4b0b
SM
4358 * xrdb.c (x_load_resources): Use the class name in the defaults.
4359
70c825df
SM
4360 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
4361 (regex_compile): Catch bogus \(\1\).
4362
a1d34b1e
GM
43632000-10-30 Gerd Moellmann <gerd@gnu.org>
4364
cae71efe
GM
4365 * xterm.c (x_alloc_nearest_color): Fix last change to compare
4366 RGB values.
52283633 4367
35efe0a1
GM
4368 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
4369 we have a color cache, check that the cached color equals the
4370 allocated color. If not, clear the color cache.
4371
1d3baf74
GM
4372 * window.c (displayed_window_lines): Change buffers if necessary.
4373 Fix computation of displayed lines.
4374
a1d34b1e
GM
4375 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
4376 update_menu_bindings to DEFVAR_BOOL.
4377
70737ea9
KH
43782000-10-30 Kenichi Handa <handa@etl.go.jp>
4379
70c825df 4380 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 4381
fa0cb51d
KH
4382 * puresize.h (BASE_PURESIZE): Increase to 680000.
4383
70737ea9
KH
4384 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
4385
0e4c08e8
JR
43862000-10-29 Jason Rumney <jasonr@gnu.org>
4387
4388 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
4389
4390 * w32term.c (w32_bdf_per_char_metric): Negate descent.
4391 (w32_cache_char_metrics): Handle possibility that 'x' does not
4392 exist in a BDF font.
4393 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
4394
4395 * w32bdf.h (bdffont): Add nchars.
4396
4397 * w32bdf.c (set_bdf_font_info): Set it.
4398 (w32_BDF_TextOut): Swap byte order of double byte characters.
4399 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
4400
45b84006
EZ
44012000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
4402
4403 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
4404 don't override the colors in frame's param_alist, unless they are
4405 unspecified.
4406
4407 * term.c (reassert_line_highlight): If inverse_video is non-zero,
4408 reverse the effect of the highlight flag.
4409
caf9deee
KR
44102000-10-27 Ken Raeburn <raeburn@gnu.org>
4411
4412 * window.h (Fwindow_live_p): Declare.
4413
ae0b9b46
KR
4414 * undo.c (record_delete): Check that last_undo_buffer is really a
4415 buffer before applying XBUFFER to it.
4416
4417 * keymap.c (where_is_internal): Pass lisp object, not integer, to
4418 Faref.
4419
02067692
SM
44202000-10-27 Stefan Monnier <monnier@cs.yale.edu>
4421
4422 * lisp.h (KEYMAPP): New macro.
4423 (get_keymap): Remove.
4424 (get_keymap_1): Rename get_keymap.
4425
4426 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
4427
4428 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
4429
4430 * xmenu.c (single_submenu): Use KEYMAPP.
4431 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
4432 Use KEYMAPP rather than Fkeymapp.
4433
4434 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
4435
4436 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
4437 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
4438 Use KEYMAPP rather than Fkeymapp.
4439 (single_submenu): Use KEYMAPP.
4440 (w32_menu_show, w32_dialog_show): Use TRUE.
4441
4442 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
4443
4444 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
4445 (Fkeymapp): Use KEYMAPP.
4446 (get_keymap): Rename from get_keymap_1. Remove old def.
4447 Return t when autoload=0 and error=0 and the keymap needs autoloading.
4448 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
4449 (Fminor_mode_key_binding): Don't raise an error if the binding
4450 is not a keymap.
4451 (Fuse_global_map, Fuse_local_map): Allow autoloading.
4452 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
4453
4454 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
4455 Allow Vspecial_event_map to be autoloaded.
4456 (menu_bar_items): Fetch the keymap rather than using keymapp.
4457 (menu_bar_one_keymap): No need to follow func-indirect any more.
4458 (parse_menu_item): get_keymap_1 -> get_keymap.
4459 (tool_bar_items): Fetch the keymap rather than using keymapp.
4460 (read_key_sequence): Use KEYMAPP.
4461
4462 * intervals.c (get_local_map): Use get_keymap rather than following
4463 function-indirections explicitly.
4464
4465 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
4466
f9d80af3
JR
44672000-10-27 Jason Rumney <jasonr@gnu.org>
4468
4469 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
4470 point, as Windows has oversized fonts.
4471
4472 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
4473
a3ba27da
GM
44742000-10-27 Gerd Moellmann <gerd@gnu.org>
4475
4476 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
4477 (freehook, reallochook): Handle null pointer arguments.
4478 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
4479
aa3b80cc
SM
44802000-10-27 Stefan Monnier <monnier@cs.yale.edu>
4481
4482 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
4483 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
4484 Giving in to popular pressure to shut up the compiler with casts.
4485
e24e84cc
GM
44862000-10-27 Gerd Moellmann <gerd@gnu.org>
4487
4488 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
4489 signed value, and use a default value computed from the font's
4490 maximum descent.
4491
05ea7ef2
MB
44922000-10-27 Miles Bader <miles@lsi.nec.co.jp>
4493
4494 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
4495 that specify a negative underline position can still use underlines.
4496
4497 * window.c (Fpos_visible_in_window_p): Make POS default to
4498 WINDOW's point, not the current buffer's point.
4499
0b95284b
DL
45002000-10-26 Dave Love <fx@gnu.org>
4501
4502 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
4503 when it's necessary.
4504
6c5b90af
GM
45052000-10-26 Gerd Moellmann <gerd@gnu.org>
4506
8b6d9dc9
GM
4507 * window.c (size_window): Compute size difference from sum of old
4508 child window sizes instead of from parent's size.
4509
6bc92b2e
GM
4510 * xdisp.c (pos_visible_p): Change current buffer if necessary.
4511 Handle obscured lines at the top of the window.
4512
4513 * frame.c (Fdelete_frame): Doc fix. Move running the hook
4514 down after the last error condition check.
4515
6c5b90af
GM
4516 * frame.c (Fdelete_frame): Run delete-frame-hook.
4517
42f92d4d
KH
45182000-10-26 Kenichi Handa <handa@etl.go.jp>
4519
4520 * coding.c (decode_coding): Fix previous change (check also
4521 CODING_MODE_LAST_BLOCK).
4522
d97151cb
SM
45232000-10-25 Stefan Monnier <monnier@cs.yale.edu>
4524
e7efc503
SM
4525 * regex.c: More `unsigned char' -> `re_char' changes.
4526 Also change several `int' into `re_wchar_t'.
4527 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
4528 (PUSH_FAILURE_POINTER): Don't cast any more.
4529 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
4530 We want GCC to complain, since this piece of code makes
4531 re_match non-reentrant, which *should* be fixed.
4532 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
4533 (EXTEND_BUFFER): Use RETALLOC.
4534 (SET_LIST_BIT): Don't cast.
4535 (re_wchar_t): New type.
4536 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
4537 that those two functions will always properly return.
4538 (IMMEDIATE_QUIT_CHECK): Cast to void.
4539 (analyse_first): Use recursion rather than an explicit stack.
4540 (re_compile_fastmap): Can't fail anymore.
4541 (re_search_2): Don't check re_compile_fastmap for failure.
4542 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
4543 Now also sets the new value (passed in a new argument).
4544 (re_match_2_internal): Use it.
4545 Also, use a new var `reg' of type size_t when looping through regs
4546 rather than reuse the inappropriate `mcnt'.
4547
d97151cb
SM
4548 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
4549 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
4550 (where_is_internal): Renamed from Fwhere_is_internal.
4551 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
4552 (Fwhere_is_internal): New function wrapping where_is_internal.
4553 (where_is_internal_1): Handle the case where we're filling the cache.
4554 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
4555
d5789b65
MB
45562000-10-25 Miles Bader <miles@gnu.org>
4557
4558 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
4559
4ecda532
GM
45602000-10-25 Gerd Moellmann <gerd@gnu.org>
4561
4562 * window.c (pos_fully_visible_p): Removed.
4563 (Fpos_visible_in_window_p): Use pos_visible_p to determine
4564 if position is visible and/or fully visible.
4565
4566 * lisp.h (pos_visible_p): Add prototype.
4567
4568 * xdisp.c (pos_visible_p): New function.
4569
68c3a137
KH
45702000-10-25 Kenichi Handa <handa@etl.go.jp>
4571
4572 * process.c (send_process): If OBJECT is t, it means that the data
4573 is from C string, but we should encode it. Before calling
4574 setup_raw_text_coding_system, be sure to flush out data by the
4575 previous coding system.
4576
7ae1c032
MB
45772000-10-25 Miles Bader <miles@lsi.nec.co.jp>
4578
ff4dcd4b
MB
4579 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
4580 assignment of startpos to prev when startpos == pos.
4581
7ae1c032
MB
4582 * editfns.c (find_field): Set the field stickiness correctly from
4583 overlay fields. Use renamed `text_property_stickiness'.
4584 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 4585 Only check text properties, not overlays.
7ae1c032
MB
4586 * textprop.c (get_char_property_and_overlay): New function.
4587 (Fget_char_property): Use it.
4588 * intervals.h (get_char_property_and_overlay): Add declaration.
4589
49801145
SM
45902000-10-25 Stefan Monnier <monnier@cs.yale.edu>
4591
4592 * keymap.c: Use AREF, ASET and ASIZE macros.
4593 (Fmake_sparse_keymap): Docstring fix.
4594 (synkey): Remove.
4595 (shadow_lookup): Move up.
4596 Handle the case where lookup-key returns an integer.
4597 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
4598 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
4599 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
4600 Simplify/rewrite the keymap-finding code.
4601 Add check for command shadowing, using shadow_lookup.
4602
39e776cd
SM
46032000-10-24 Stefan Monnier <monnier@cs.yale.edu>
4604
4605 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
4606 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
4607 a symbol.
4608
2488aba5
AI
46092000-10-24 Andrew Innes <andrewi@gnu.org>
4610
4611 * dired.c (directory_files_internal_unwind): New function.
4612 (directory_files_internal): Use it to ensure closedir is called
4613 even if expand-file-name or file-attributes throw, eg. because of
4614 a user interrupt. Also enable immediate_quit while calling
4615 re_search, so that matching can be interrupted as well.
4616
b94fdf61
AI
46172000-10-24 Andrew Innes <andrewi@gnu.org>
4618
4619 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
4620 NT-Emacs only.
4621 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
4622 so that re_search functions only quit when callers expect them to.
4623
46242000-10-24 Kenichi Handa <handa@etl.go.jp>
4625
4626 * regex.c (regex_compile): Change the way of handling a range from
4627 a char less than 256 to a char not less than 256.
4628
1946f901
GM
46292000-10-24 Gerd Moellmann <gerd@gnu.org>
4630
7ae2f10f
GM
4631 * window.c (size_window): Prevent setting window's width or
4632 height to a negative value (esp. with XSETFASTINT).
4633
5dcab13e
GM
4634 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
4635 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
4636 (protect_malloc_state) [GC_MALLOC_CHECK &&
4637 GC_PROTECT_MALLOC_STATE]: New function.
4638 (PROTECT_MALLOC_STATE): New macro.
4639 (__malloc_initialize, morecore, _malloc_internal)
4640 (_free_internal) _realloc_internal): Use it to make _heapinfo
4641 read-only outside of gmalloc.
4642
63e1b552
GM
4643 * keymap.c: Update copyright.
4644
1946f901
GM
4645 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
4646 a symbol.
4647
4fa09beb
GM
46482000-10-24 Colin Walters <walters@cis.ohio-state.edu>
4649
4650 * filelock.c (unlock_all_files): Use unlock_file to expand each
4651 buffer's file_truename before trying remove its lock file.
4652
23afac01
EZ
46532000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
4654
4655 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
4656 or CRLF, decode EOLs.
4657
04448b95
KH
46582000-10-24 Kenichi Handa <handa@etl.go.jp>
4659
4660 * window.c (Fdisplay_buffer): Fix doc.
4661
3090a5a5
JR
46622000-10-23 Jason Rumney <jasonr@gnu.org>
4663
4664 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
4665 ASCII font of default fontset on Windows.
4666
4667 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
4668 xterm.c comment below).
4669
4670 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
4671
a83fee2c
GM
46722000-10-23 Gerd Moellmann <gerd@gnu.org>
4673
4674 * xterm.c (x_connection_closed): Reset handling_signal.
4675
52283633 4676 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
a83fee2c 4677
6ffdb539
MB
46782000-10-23 Miles Bader <miles@gnu.org>
4679
4680 * window.c (window_scroll_pixel_based, window_scroll_line_based):
4681 Pass nil for FULLY argument to Fpos_visible_in_window_p to
4682 maintain old behavior.
4683 * minibuf.c (Fminibuffer_complete): Likewise.
4684
7f1c969b
MB
46852000-10-23 Miles Bader <miles@lsi.nec.co.jp>
4686
4687 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
4688 that when a font can't be exactly centered, it errs up rather than
4689 down.
4690
23afac01 46912000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd 4692
52283633 4693 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
8ec118cd 4694
1a578e9b
AC
46952000-10-23 Andrew Choi <akochoi@i-cable.com>
4696
4697 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
4698
4699 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 4700 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
4701
4702 * emacs.c (main) [macintosh]: Call syms_of_textprop,
4703 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
4704 syms_of_search, x_term_init, and init_keyboard before calling
4705 init_window_once. Also, call syms_of_xmenu.
4706
4707 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
4708 default fontset to Monaco.
4709
4710 * frame.c [macintosh]: Include macterm.h. Remove declarations of
4711 NewMacWindow and DisposeMacWindow.
4712 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
4713 instead of calling NewMacWindow and setting fields of
4714 f->output_data.mac directly. Call init_frame_faces.
4715 (Fdelete_frame) [macintosh]: Remove unused code.
4716 (Fmodify_frame_parameters) [macintosh]: Call
4717 x_set_frame_parameters instead of mac_set_frame_parameters.
4718
4719 * frame.h [macintosh]: Define menu_bar_lines field in struct
4720 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
4721
4722 * keyboard.c [macintosh]: Include macterm.h.
4723 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
4724 and menu_bar_activate_event type events as for X and NT.
4725 (make_lispy_event) [macintosh]: Construct lisp events of type
4726 MENU_BAR_EVENT as for X and NT.
4727
4728 * sysdep.c [macintosh]: Remove declaration for sys_signal.
4729 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
4730 (sys_subshell) [macintosh]: Remove definition entirely.
4731 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
4732 Vwindow_system_version here. Remove initialization of
4733 Vx_bitmap_file_path.
4734 (read_input_waiting): Correct the number of parameters passed to
4735 read_socket_hook.
4736 Move all Macintosh functions to mac/mac.c.
4737
4738 * term.c [macintosh]: Include macterm.h.
4739
4740 * window.c [macintosh]: Include macterm.h.
4741
4742 * xdisp.c [macintosh]: Include macterm.h. Declare
4743 set_frame_menubar and pending_menu_activation.
4744 (echo_area_display) [macintosh]: Do not return if terminal frame
4745 is the selected frame.
4746 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
4747 Allow only the selected frame to set menu bar.
4748 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
4749 calling FRAME_EXTERNAL_MENU_BAR (f).
4750 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
4751
4752 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
4753 and check_x. Declare XCreateGC. Define x_create_gc and
4754 x_free_gc. Initialize font_sort_order.
4755 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
4756 but call x_list_fonts instead of w32_list_fonts.
4757 (Finternal_face_x_get_resource) [macintosh]: Do not call
4758 display_x_get_resource.
4759 (prepare_face_for_display) [macintosh]: Set xgcv.font.
4760 (realize_x_face) [macintosh]: Load the font if it is specified in
4761 ATTRS.
52283633 4762 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
1a578e9b 4763
1ffbabe3
SM
47642000-10-22 Stefan Monnier <monnier@cs.yale.edu>
4765
4766 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
4767 is nil: since we go to the end of submap anyway, we'd end up
4768 setting nil to nil.
4769 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
4770 doesn't obey autoload.
4771
bed43f1d
EZ
47722000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
4773
1ffbabe3 4774 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 4775
ea4233a7
JR
47762000-10-21 Jason Rumney <jasonr@gnu.org>
4777
4778 * w32term.c (w32_cache_char_metrics): Double check that font is
4779 really fixed pitch before trusting tmPitchAndFamily.
4780
f3d3c491
AI
47812000-10-21 Andrew Innes <andrewi@gnu.org>
4782
4783 * w32gui.h (w32_char_font_type): Move enum from w32term.c
4784
4785 * w32term.h: Extern decl for w32_cache_char_metrics.
4786
4787 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
4788
4789 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
4790 (w32_unload_font): Free per_char array if present.
4791
4792 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
4793 cached information in emulated XFontStruct to handle common cases
4794 quickly. Do not allocate XCharStruct for return.
4795 (w32_native_per_char_metric): New function.
4796 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
4797 allocating one.
4798 (x_produce_glyphs): Don't get an HDC. Change calls to
4799 w32_per_char_metric to match arg change above. Remove calls to
4800 free results.
4801 (w32_get_glyph_overhangs): Ditto.
4802 (w32_cache_char_metrics): New function.
4803
4804 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
4805 ($(BLD)/casefiddle.$(O)): Remove compile command.
4806 ($(BLD)/gmalloc.$(O)): Remove compile command.
52283633
SM
4807 ($(BLD)/dispnew.obj):
4808 ($(BLD)/keyboard.obj):
4809 ($(BLD)/w32inevt.obj):
4810 ($(BLD)/w32bdf.obj):
4811 ($(BLD)/alloc.obj):
4812 ($(BLD)/buffer.obj):
4813 ($(BLD)/editfns.obj):
4814 ($(BLD)/emacs.obj):
4815 ($(BLD)/fileio.obj):
4816 ($(BLD)/fns.obj):
4817 ($(BLD)/indent.obj):
4818 ($(BLD)/insdel.obj):
4819 ($(BLD)/intervals.obj):
4820 ($(BLD)/minibuf.obj):
4821 ($(BLD)/print.obj):
4822 ($(BLD)/scroll.obj):
4823 ($(BLD)/sysdep.obj):
4824 ($(BLD)/textprop.obj):
4825 ($(BLD)/widget.obj):
f3d3c491
AI
4826 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
4827 ($(BLD)/term.obj): Add dependency on dispextern.h.
4828
52283633
SM
4829 * makefile.nt ($(BLD)\dispnew.obj):
4830 ($(BLD)\keyboard.obj):
4831 ($(BLD)\w32inevt.obj):
4832 ($(BLD)\w32bdf.obj):
4833 ($(BLD)\alloc.obj):
4834 ($(BLD)\buffer.obj):
4835 ($(BLD)\editfns.obj):
4836 ($(BLD)\emacs.obj):
4837 ($(BLD)\fileio.obj):
4838 ($(BLD)\fns.obj):
4839 ($(BLD)\indent.obj):
4840 ($(BLD)\insdel.obj):
4841 ($(BLD)\intervals.obj):
4842 ($(BLD)\minibuf.obj):
4843 ($(BLD)\print.obj):
4844 ($(BLD)\scroll.obj):
4845 ($(BLD)\sysdep.obj):
4846 ($(BLD)\textprop.obj):
4847 ($(BLD)\widget.obj):
f3d3c491
AI
4848 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
4849 ($(BLD)\term.obj): Add dependency on dispextern.h
4850
18ad4821
EZ
48512000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
4852
4853 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
4854 with an additional argument of Qt.
4855
de54681a
MB
48562000-10-21 Miles Bader <miles@gnu.org>
4857
4858 * window.c (pos_fully_visible_in_window_p): New function.
4859 (Fpos_visible_in_window_p): Add FULLY argument.
4860 Use pos_fully_visible_in_window_p.
4861 (window_scroll_pixel_based, window_scroll_line_based): Update
4862 calls to Fpos_visible_in_window_p.
4863 * lisp.h (Fpos_visible_in_window_p): Update prototype
4864
13c844fb
GM
48652000-10-20 Gerd Moellmann <gerd@gnu.org>
4866
4867 * alloc.c (toplevel): Conditionalize compilation of mem_*
4868 functions differently.
52283633 4869
d9506268
JR
48702000-10-20 Jason Rumney <jasonr@gnu.org>
4871
4872 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
4873 mem_init where it used to be. mem_z etc not defined otherwise.
4874
8094989b
GM
48752000-10-20 Gerd Moellmann <gerd@gnu.org>
4876
4877 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
4878 GC_MALLOC_CHECK.
4879 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
4880 structure definition and related variabled to the top of the file.
4881 Include this code when GC_MALLOC_CHECK is defined.
4882 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
4883 register/unregister allocated region.
4884 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
4885 which isn't allocated.
4886 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
4887 something which is already in use.
4888 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
4889 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
4890 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
4891 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
4892
4893 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
4894 _malloc_internal instead of malloc.
4895 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
4896 of free.
4897
ea456eb4
AI
48982000-10-20 Andrew Innes <andrewi@gnu.org>
4899
4900 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
4901 Windows.
4902 (my_strftime) <macro>: Don't use macro arg list when redefining as
4903 _strftime_copytm.
4904 (my_strftime) <function>: Supply 0 as ut argument.
4905
e64c3a75
JR
49062000-10-19 Jason Rumney <jasonr@altavista.net>
4907
4908 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
4909 including dispextern.h, as it stops faces from working.
4910
4911 * w32fns.c (Fx_create_frame): Don't bother calling
4912 face-set-after-frame-default since the caller does it for us
4913 anyway. Clean up calls to x_get_arg to be consistent with X.
4914
4915 * w32term.c (x_produce_glyphs): Handle
4916 unibyte_display_via_language_environment correctly.
4917 (w32_draw_box_rect): Fix the calculation of width and height.
4918
4919 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
4920 as it has stopped working.
4921 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
4922 menu-bar.
4923
17401c97
GM
49242000-10-19 Gerd Moellmann <gerd@gnu.org>
4925
4926 * eval.c (skip_debugger): Prevent a compiler warning.
4927 (Fcondition_case): Likewise.
4928 (Fbacktrace_frame): Use a null interactive spec.
4929
773272d8
KH
49302000-10-19 Kenichi Handa <handa@etl.go.jp>
4931
4932 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
4933
a42943e9
GM
49342000-10-18 Gerd Moellmann <gerd@gnu.org>
4935
e50517d9
GM
4936 * strftime.c: Sync with glibc, file version 1.78.
4937 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
4938 should no longer be used according to ISO 8601.
4939
9035a35a
GM
4940 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
4941 no map for meta_prefix_char, don't try to use it as a keymap.
4942 Instead, if T_OK is non-zero, look up a default binding, if any,
4943 otherwise, if T_OK is zero, return nil.
4944
a42943e9
GM
4945 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
4946 (x_to_xcolors, png_load): Use x_query_color.
4947
52283633
SM
4948 * xterm.c (x_color_cells, x_query_colors, x_query_color):
4949 New functions.
a42943e9
GM
4950 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
4951 which can be slow.
4952 (x_copy_color, x_alloc_lighter_color): Likewise.
4953
4954 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
4955 (x_query_color, x_query_colors): Add prototype.
4956
4957 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
4958 check_string_bytes only if not noninteractive, increase count to 50.
4959
00de2987
MB
49602000-10-18 Miles Bader <miles@lsi.nec.co.jp>
4961
4962 * insdel.c (adjust_markers_for_delete): Handle before-insertion
4963 markers correctly.
4964
54918e2b
GM
49652000-10-17 Gerd Moellmann <gerd@gnu.org>
4966
1f0b3fd2
GM
4967 * alloc.c (pure_bytes_used): Renamed from pureptr.
4968 (ALIGN): New macro.
4969 (pure_alloc): New function.
4970 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
4971 Use it.
4972 (Fpurecopy): Use PURE_POINTER_P.
4973
68c5d1db
GM
4974 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
4975 PT has moved backward.
52283633 4976
9a038881
GM
4977 * xdisp.c (cursor_row_p): Take continued lines into account.
4978
361b097f
GM
4979 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
4980 string's size_byte.
4981 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
4982 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
4983 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
4984 string allocated.
4985
54918e2b
GM
4986 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
4987 of selective display off while searching for the next line start.
4988
03ed0806
KH
49892000-10-17 Kenichi Handa <handa@etl.go.jp>
4990
4991 * Makefile.in (term.o): Depend on dispextern.h.
4992
7e05cdaf
SM
49932000-10-16 Stefan Monnier <monnier@cs.yale.edu>
4994
4995 * keymap.c (keymap_memberp): Ensure that nil is not a member.
4996
a6801fd1
GM
49972000-10-16 Gerd Moellmann <gerd@gnu.org>
4998
483de32b
GM
4999 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
5000 the iterator at the beginning, so that they can be set later on,
5001 for instance in reseat_at_next_visible_line_start, without being
5002 overwritten.
5003
a6801fd1
GM
5004 * xfns.c (pbm_format): Add :foreground and :background keywords.
5005 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
52283633 5006 (xbm_load): Recognize foreground and background color specifications.
a6801fd1 5007
dbf1fcc1
EZ
50082000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
5009
5010 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
5011
52283633 5012 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
dbf1fcc1
EZ
5013
5014 * msdos.c (IT_set_face): Compare highlighted face with the default
5015 face, and invert colors if these faces' colors are identical.
5016 (Fmsdos_remember_default_colors): Don't swap foreground and
5017 background colors in initial_colors[].
5018 (IT_set_frame_parameters): Don't swap frame's foreground and
5019 background pixels. If ALIST includes "(reverse . t)", swap
5020 foreground-color and background-color properties in frame's
5021 param_alist. If the original frame's param_alist doesn't specify
5022 the colors, store unspecified-fg and unspecified-bg, reversed if
5023 required.
5024
5025 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
5026 the colors are unspecified and reversed, reverse fore- and back-
5027 ground in the returned value.
5028 (Fframe_parameter): Ditto.
5029
b41fe2c3 50302000-10-16 Gerd Moellmann <gerd@gnu.org>
52283633 5031
3a6b59d9
GM
5032 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
5033 get_last_unchanged_at_beg_row.
5034 (find_first_unchanged_at_end_row): Renamed from
5035 get_first_unchanged_at_end_row.
5036 (find_first_unchanged_at_end_row): Convert assertions to
5037 unconditional tests which abort. When looking for a row in
5038 unchanged text, don't go further back than first_text_row.
5039
b41fe2c3
GM
5040 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
5041 Don't add in the last line's height when deciding if the new
5042 position is below the scroll margin.
9d1af64f 5043
b41fe2c3 50442000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
5045
5046 * editfns.c (Fconstrain_to_field): Check carefully for field
5047 boundaries if either OLD_POS or NEW_POS has a non-nil field
5048 property, even if they're the same.
5049
c412cb7b
KH
50502000-10-16 Kenichi Handa <handa@etl.go.jp>
5051
5052 * xterm.c (x_draw_box_rect): Fix the calculation of width and
5053 height for XFillRectangle.
5054
5586f3eb
SM
50552000-10-15 Stefan Monnier <monnier@cs.yale.edu>
5056
5057 * syntax.c (Fstring_to_syntax): New function extracted from
5058 Fmodify_syntax_entry.
5059 (Fmodify_syntax_entry): Use it and document the ! and | fences.
5060 (skip_chars, Fforward_comment): Remove unused variables.
5061 (syms_of_syntax): Add defsubr for string-to-syntax.
5062 (describe_syntax): Add code for comment and string fences.
5063
db785038
SM
50642000-10-14 Stefan Monnier <monnier@cs.yale.edu>
5065
5066 * keymap.c (access_keymap): Add AUTOLOAD parameter.
5067 Do the meta->esc mapping. Call get_keyelt before returning.
5068 Start scanning from the second element (the first is always `keymap')
5069 to make it easier to detect when we reach a parent map.
5070 Handle the case of inheriting from a symbol whose function is a map.
5071 (Fkeymap_parent): Also handle the `inherit from symbol' case.
5072 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
5073 (get_keyelt, Flookup_key): Update call to access_keymap.
5074 Remove the meta->esc mappings.
5075 (define_as_prefix): Delete old disabled code.
5076 (menu_item_p): New function.
5077 (where_is_internal_1): Skip over the few remaining menu items.
5078 * lisp.h (access_keymap): Update prototype.
5079 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
5080 Update call to access_keymap.
5081 (follow_key, read_key_sequence): Update calls to access_keymap.
5082 Remove the meta->esc mappings.
5083
cafafe0b
GM
50842000-10-13 Gerd Moellmann <gerd@gnu.org>
5085
a2e2a7f6
GM
5086 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
5087 with additional argument.
5088
cafafe0b
GM
5089 * xdisp.c (cursor_row_p): New function.
5090 (try_cursor_movement, display_line): Use it.
52283633 5091
cafafe0b
GM
5092 * xdisp.c (append_space): Also save/restore iterator's current
5093 character and its length.
5094
5095 * xdisp.c (init_from_display_pos): Add an assertion.
5096 (handle_stop): Don't set iterator's add_overlay_start.
5097 (handle_invisible_prop): Likewise.
5098 (load_overlay_strings): If text under an overlay is invisible,
5099 take both before- and after-strings into account when the iterator
5100 is positioned either at the start or at the end of the overlay.
5101 (forward_to_next_line_start): Rewritten.
5102 (reseat_at_next_visible_line_start): Rewritten.
5103 (set_iterator_to_next): Add parameter RESEAT_P.
5104
5105 * dispextern.h (struct it): Remove member add_overlay_start.
5106 (set_iterator_to_next): Change prototype.
5107
c744452b
KH
51082000-10-13 Kenichi Handa <handa@etl.go.jp>
5109
5110 * coding.c (code_convert_region): Be sure to initialize
5111 coding->category_idx.
e4a3f4e1
KH
5112 (decode_coding_string): Set coding->src_multibyte and
5113 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
5114 (encode_coding_string): Set coding->src_multibyte and
5115 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 5116
321fd26f
SM
51172000-10-12 Stefan Monnier <monnier@cs.yale.edu>
5118
5119 * xfns.c (Fx_create_frame): Don't bother calling
5120 face-set-after-frame-default since the caller does it for us anyway.
5121
76832439
EZ
51222000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
5123
5124 * window.c (coordinates_in_window): Fix detection of vertical line
5125 on character terminals.
5126
2483cf58
GM
51272000-10-12 Gerd Moellmann <gerd@gnu.org>
5128
5129 * editfns.c (save_excursion_save): Additionally record the
5130 selected window.
5131 (save_excursion_restore): If buffer was visible in a window, and a
5132 different window was selected, and the old selected window is
5133 still live, restore point in that window.
5134
eb991b25
KH
51352000-10-12 Kenichi Handa <handa@etl.go.jp>
5136
8a0eba09
KH
5137 * xterm.c (x_produce_glyphs): Handle
5138 unibyte_display_via_language_environment correctly.
5139
20401fcc
KH
5140 * regex.c (regex_compile): Change the way of handling a range from
5141 unibyte char to multibyte char.
5142
5143 * syntax.c (skip_chars): Change the way of handling a range from
5144 unibyte char to multibyte char.
5145
eb991b25
KH
5146 * process.c (read_process_output): Cancel previous change.
5147
365dd325
EZ
51482000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
5149
c1b096cb
EZ
5150 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
5151
365dd325
EZ
5152 * charset.c (Ffind_charset_string): Doc fix.
5153 (Ffind_charset_region): Doc fix.
5154
eb483c2b
KH
51552000-10-11 Kenichi Handa <handa@mule.m17n.org>
5156
5157 * process.c (read_process_output): Fix previous change. Adjust
5158 multibyteness of text to insert in a buffer by
52283633 5159 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
eb483c2b 5160
b40bfb99
AS
51612000-10-10 Andreas Schwab <schwab@suse.de>
5162
5163 * alloc.c (mark_object): Remove all workarounds installed on
5164 1993-08-08.
5165
caff31d4
KH
51662000-10-10 Kenichi Handa <handa@etl.go.jp>
5167
52283633 5168 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
caff31d4
KH
5169 (base64_encode_1): Make it work for a text of multibyte form.
5170 (Fbase64_decode_region): Allocate sufficient memory for multibyte
5171 case. Don't call str_to_multibyte because base64_decode_1
5172 produces correct multibyte form for eight-bit codes.
52283633 5173 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
caff31d4
KH
5174 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
5175 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
5176 codes.
5177
5178 * charset.h (CHAR_STRING): Optimized for single byte characters.
5179
cba026ef
AS
51802000-10-09 Andreas Schwab <schwab@suse.de>
5181
5182 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
5183 -1 after socket is closed, to fall through to error processing.
5184
1e21fe48
EZ
51852000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
5186
5187 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 5188 variables. If ALIST includes foreground-color or
1e21fe48
EZ
5189 background-color, change also the colors of the default face for
5190 this frame.
5191
a640322e
EZ
51922000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
5193
5194 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
5195 them extern (they are defined on xfaces.c).
5196 (syms_of_msdos): Don't intern and don't staticpro
5197 Qbackground_color and Qforeground_color.
5198
a115794c
EZ
51992000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
5200
5201 * frame.c (Fframe_parameter): For non-windowed frames, if
5202 f->param_alist says foreground or background color is unspecified,
5203 call tty_color_name to return the color name computed from the
5204 frame's current colors.
5205
f5533b63
DL
52062000-10-06 Dave Love <fx@gnu.org>
5207
5208 * terminfo.c (ospeed): Don't declare.
5209
5210 * sysdep.c: Don't include string.h.
5211 (h_errno): Declare conditional also on TRY_AGAIN.
5212
5213 * charset.c (Ffind_charset_string): Doc fix.
5214
52283633 5215 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
f5533b63
DL
5216 (Fbase64_decode_region, Fbase64_decode_string): More explicit
5217 error messages.
5218
2b06561a
DL
52192000-10-05 Dave Love <fx@gnu.org>
5220
5221 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
5222 position like menu-bar.
5223
ca839c85
GM
52242000-10-05 Gerd Moellmann <gerd@gnu.org>
5225
5226 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
5227
5228 * xdisp.c (handle_single_display_prop): Use safe_call1.
5229 (safe_call): Renamed from call_function.
5230 (safe_call1): New function.
5231 (handle_fontified_prop): Use safe_call1 instead of call1.
5232 (safe_eval): Renamed from eval_form.
5233 (safe_eval_handler): Renamed from eval_handler.
5234 (handle_single_display_prop, display_mode_element): Use safe_eval
5235 instead of eval_form.
5236
5237 * xfaces.c (merge_face_heights): Use safe_call instead of
5238 call_function.
5239
5240 * keyboard.c (show_help_echo): Use safe_call instead of
5241 call_function; use safe_eval instead of eval_form.
5242
5243 * lisp.h (safe_call): Renamed from call_function.
5244 (safe_eval): Renamed from eval_form.
5245 (safe_call1): Add prototype.
5246
a3489ece
MB
52472000-10-05 Miles Bader <miles@lsi.nec.co.jp>
5248
5249 * xfns.c (image_ascent): Rearrange ascent calculation for the
5250 has-a-font case.
5251
35810b6f
SM
52522000-10-04 Stefan Monnier <monnier@cs.yale.edu>
5253
5254 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
5255 (where_is_internal_1): Don't bother ignoring menu-items any more.
5256
3dc78168
GM
52572000-10-04 Gerd Moellmann <gerd@gnu.org>
5258
5259 * keyboard.c (update_menu_bindings): New variable.
5260 (parse_menu_item): Use AREF. If update_menu_bindings
5261 is 0, don't update menu bindings.
5262 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
5263
1efc2bb9
EZ
52642000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
5265
5266 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
5267 to `mark_object'.
5268
3f679f55
SM
52692000-10-02 Stefan Monnier <monnier@cs.yale.edu>
5270
5271 * syntax.c (forw_comment): Match nestedness of ender/starter.
5272 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
5273 (prev_char_comstart_first): Remove.
5274 (back_comment): Check two-char comment markers more carefully
5275 to better handle overlapping cases like *//* or /* */* */ ...
5276 Match nestedness of ender/starter.
5277
2021ab61
DL
52782000-10-02 Dave Love <fx@gnu.org>
5279
5280 * config.in (HAVE_GAI_STRERROR): Add undef.
5281
5282 * process.c (Fopen_network_stream): Use it.
5283
5284 * m/alpha.h (NO_REMAP): Don't define.
5285
64e6cc18
GM
52862000-10-02 Gerd Moellmann <gerd@gnu.org>
5287
5288 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
5289 return with a string converted to an integer or vice versa when
5290 Vmocklisp_arguments is t.
5291 (Fsignal): Likewise. The function can return for `quit'.
5292 (struct gcpro): Declare member `var' to point to a volatile
5293 Lisp_Object.
5294
5295 * eval.c (error): Prevent compiler warning.
5296
b1904cd9
SM
52972000-09-30 Stefan Monnier <monnier@cs.yale.edu>
5298
5299 * keymap.c (keymap_memberp): New function.
5300 (Fset_keymap_parent): Use it.
5301 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
5302 Use keymap_memberp to avoid creating cycles.
5303 (access_keymap): Use KEYMAPP.
5304
71c9ec51
GM
53052000-09-30 Gerd Moellmann <gerd@gnu.org>
5306
5307 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
5308 gai_strerror. Make sure xerrno is set if connect fails. Improve
5309 error recovery.
71c9ec51 5310
c70c6b58
JR
53112000-09-29 Jason Rumney <jasonr@gnu.org>
5312
5313 * w32term.c (w32_char_font_type, w32_encode_char)
5314 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
5315 (w32_bdf_per_char_metric): New function.
5316 (w32_per_char_metric): Use it.
5317 (x_draw_glyph_string_background): Always draw background for BDF
5318 glyphs.
5319
5320 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
5321 GDI object which is a scarce resource.
5322
5323 * w32bdf.c (search_file_line): Fix skipping of whitespace.
5324 (get_quoted_string): Fix limit on memchr search.
5325 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
5326 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
5327 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
5328 (get_cached_font_char, cache_char_offset): Use macro
5329 BDF_CODEPOINT_RANGE_COVER_P.
5330 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
5331 (clear_cached_bitmap_slots): New function.
5332 (GET_HEX_VALUE): G-Z, g-z are not hex.
5333 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
5334 (get_bitmap_with_cache): Use new cache implementation.
5335 (create_offscreen_bitmap): New function.
5336 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
5337
5338 * w32term.c (x_produce_glyphs): If the distance from the current
5339 position to the next tab stop is less than a canonical character
5340 width, use the tab stop after that.
5341 (x_draw_glyphs): Handle case START and END are out of bounds more
5342 carefully.
5343 (x_clear_mouse_face): Block/unblock input.
5344 (x_display_and_set_cursor): Don't show a hollow box cursor for
5345 buffers whose cursor_type is nil.
5346
fe01239f
GM
53472000-09-29 Gerd Moellmann <gerd@gnu.org>
5348
52283633 5349 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
fe01239f
GM
5350
5351 * dispextern.h (updating_frame): Declare extern.
5352
e7c52f1f
AS
53532000-09-29 Andreas Schwab <schwab@suse.de>
5354
5355 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
5356
de6e1f7c
GM
53572000-09-29 Gerd Moellmann <gerd@gnu.org>
5358
25126faa
GM
5359 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
5360 use its function definition.
5361 (tool_bar_items): Likewise.
5362
de6e1f7c 5363 * lisp.h (fatal): Declare NO_RETURN.
52283633 5364
454ee39b
KH
53652000-09-29 Kenichi Handa <handa@etl.go.jp>
5366
5367 * keymap.c: Remove the line "#undef NULL".
5368
96301c5f
GM
53692000-09-28 Gerd Moellmann <gerd@gnu.org>
5370
52283633 5371 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
96301c5f 5372
efffeeb4
DL
53732000-09-28 Dave Love <fx@gnu.org>
5374
ecb8b666
DL
5375 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
5376
dc3cd20f
DL
5377 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
5378
5379 * .gdbinit (xreload): Note its need on GNU/Linux.
5380
efffeeb4
DL
5381 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
5382 r_alloc, r_alloc_free.
5383
8610d903
KH
53842000-09-28 Kenichi Handa <handa@etl.go.jp>
5385
5386 * syntax.c (skip_chars): Handle negation correctly.
5387
8901d1ac
GM
53882000-09-27 Gerd Moellmann <gerd@gnu.org>
5389
6f22f1ad
GM
5390 * xfaces.c (realize_default_face): Call set_lface_from_font_name
5391 with non-zero FORCE_P argument.
5392
52283633 5393 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
8901d1ac
GM
5394 Add assertions.
5395
5396 * xdisp.c (window_box_height): Add an assertion.
5397
5398 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
5399 tool-bar than is available.
5400 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
5401
36f1966f
DL
54022000-09-27 Dave Love <fx@gnu.org>
5403
efffeeb4 5404 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 5405
31d929e5
GM
54062000-09-26 Gerd Moellmann <gerd@gnu.org>
5407
c98863bf
GM
5408 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
5409 instead of BITS_PER_INT.
5410 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
5411 EMACS_UINT, respectively.
5412 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
5413
5414 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
5415
5416 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
5417
77072ab1
GM
5418 * window.c (freeze_window_starts): Construct last argument for
5419 foreach_window differently.
5420
5421 * xfns.c (x_decode_color): Don't return a Lisp_Object.
5422
5423 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
5424 EMACS_UINT instead of `int' and `unsigned int'.
5425 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
5426
5427 * frame.h (struct frame): Make the `nothing' member of union
5428 output_data an EMACS_INT.
5429
52283633 5430 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
31d929e5
GM
5431 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
5432 size in the sdata structure.
5433 (SDATA_NBYTES, SDATA_DATA): New macros.
5434 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
5435 differently for the different layout of the sdata structure.
5436 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
5437 in sdata.
5438 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
5439 Check that size recorded in the string size and size recorded in
5440 the sdata structure agree.
5441
3e60b029
DL
54422000-09-25 Dave Love <fx@gnu.org>
5443
5444 * buffer.c: Include stdio.h.
5445
5446 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
52283633 5447
3e60b029
DL
5448 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
5449
5450 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
52283633 5451 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
3e60b029
DL
5452 (__malloc_extra_blocks): Declare as __malloc_size_t.
5453
8ff16b4e
GM
54542000-09-25 Gerd Moellmann <gerd@gnu.org>
5455
755a2ccd
GM
5456 * alloc.c (mark_image): Use GC_NILP instead of NILP.
5457
d8b4516f
GM
5458 * keyboard.c (show_help_echo): Set help_echo_showing_p.
5459 (read_char): If help-echo is showing, preserve the echo area
5460 when redisplaying.
5461
5462 * xdisp.c (help_echo_showing_p): New variable.
5463 (set_message): Reset it to 0.
5464 (init_xdisp): Initialize help_echo_showing_p.
5465
5466 * dispextern.h (help_echo_showing_p): Declare extern.
5467
5468 * config.in: Fix typo in __GNUC_MINOR__.
5469
5470 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
5471
b11af2dd
GM
5472 * s/freebsd.h (POSIX_SIGNALS): Define.
5473
8ff16b4e
GM
5474 * xterm.c (x_clear_mouse_face): Block/unblock input.
5475
844eb643
DL
54762000-09-24 Dave Love <fx@gnu.org>
5477
5478 * fns.c (base64_encode_1): Fix last change.
5479
b30ab1b3
GM
54802000-09-22 Gerd Moellmann <gerd@gnu.org>
5481
5482 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
5483
5484 * xdisp.c (try_window_reusing_current_matrix): More fixes
5485 for the case window has a header-line.
5486
c6cbe5f0
DL
54872000-09-22 Dave Love <fx@gnu.org>
5488
4c7c1f3f
DL
5489 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
5490 a doc string.
5491
5492 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
5493
c6cbe5f0
DL
5494 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
5495
550a625e
GM
54962000-09-21 Gerd Moellmann <gerd@gnu.org>
5497
4c7c1f3f 5498 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
5499 for GCC >= 2.5.
5500
52283633
SM
5501 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
5502 Declare NO_RETURN.
fca99116 5503
80d26f99
GM
5504 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
5505 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
5506 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
5507 warnings.
52283633 5508
80d26f99
GM
5509 * marker.c (byte_char_debug_check): Return void.
5510
623a0aae
GM
5511 * xfns.c (Fx_create_frame): Set default frame parameter value
5512 for tool-bar-lines to 1.
5513
5514 * dispnew.c (scrolling_window): Compare y-positions of rows
5515 equal at the start. Some simplification.
5516
5517 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
5518 reused rows' y-position in the case window has a header-line, and
5519 new window start is greater than old window start.
5520
42ac0ae5
GM
5521 * process.c (process_sent_to): New variable.
5522 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
5523 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
5524 Declare more parameters volatile.
5525
550a625e
GM
5526 * lread.c (Vrecursive_load_depth_limit): New variable.
5527 (Fload): Check recursive loads whose recursion depth exceeds
5528 Vrecursive_load_depth_limit.
5529 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
5530
8320414c
GM
55312000-09-20 Gerd Moellmann <gerd@gnu.org>
5532
f46c275e
GM
5533 * fileio.c (Fread_file_name): Doc fix.
5534
5535 * editfns.c (Fmessage_or_box): Doc fix.
5536
5537 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
5538
b7e11c5b 5539 * xfns.c (xbm_scan): Allow C-style comments.
52283633 5540
8320414c
GM
5541 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
5542 symbols are specified, add color translations to the cache.
52283633 5543 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
8320414c
GM
5544 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
5545 xpm_cache_color.
5546 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
5547 structures to xpm_init_color_cache.
5548
da1608d9
GM
55492000-09-19 Gerd Moellmann <gerd@gnu.org>
5550
52283633 5551 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
da1608d9 5552
6badfa25
AI
55532000-09-19 Andrew Innes <andrewi@gnu.org>
5554
5555 * makefile.nt (bootstrap-emacs): Don't change directory.
5556
3a5f42bb
KH
55572000-09-19 Kenichi Handa <handa@etl.go.jp>
5558
1b7649bd
KH
5559 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
5560
3a5f42bb
KH
5561 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
5562 If output buffer is too small, signal an appropriated error.
5563
9f83cf0b
DL
55642000-09-18 Dave Love <fx@gnu.org>
5565
52283633 5566 * keyboard.c (menu_bar_items, tool_bar_items)
9f83cf0b
DL
5567 (current_active_maps): Remove redundant get_local_map call.
5568
28c7826c
GM
55692000-09-18 Gerd Moellmann <gerd@gnu.org>
5570
5cefa566
GM
5571 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
5572 cursor for buffers whose cursor_type is nil.
52283633 5573
6fed3546
GM
5574 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
5575 a feature to implement that is already implemented.
5576 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
5577 warnings.
5578
5579 * xfns.c (x_clear_image_1): New function.
5580 (x_clear_image): Use it.
52283633 5581 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
6fed3546 5582
05b1f851
GM
5583 * dispnew.c (update_window): Move test for invisible lines
5584 at the top to update_window_line.
5585 (update_window_line): Handle invisible lines here.
5586
f4779de9
GM
5587 * xfns.c (clear_image_cache): Clear current matrices of all
5588 frames sharing an image cache. Block input while freeing
5589 images. Fix timestamp comparison.
5590 (x_clear_image): Also free the mask.
5591
28c7826c
GM
5592 * xfns.c (lookup_image): Block input while loading the image so
5593 that we won't get interrupted in a state where the image isn't yet
5594 set up completely.
5595 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
5596 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
5597 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
52283633 5598 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
28c7826c 5599
b7412313
GM
56002000-09-16 Gerd Moellmann <gerd@gnu.org>
5601
5602 * dispnew.c (update_window): Make sure to make desired rows
5603 current even if they are completely invisible at the top
5604 of a window.
5605
47e351a3
GM
56062000-09-15 Gerd Moellmann <gerd@gnu.org>
5607
7f8f1edc
GM
5608 * xfns.c (lookup_image): Build mask before applying an algorithm.
5609 Recognize algorithm `disabled'.
5610 (cross_disabled_images): New variable.
5611 (COLOR_INTENSITY): New macro.
5612 (x_detect_edges): Use COLOR_INTENSITY.
5613 (x_disable_image): New function.
5614 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
5615
5616 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
5617 disabled state, don't apply an image transformation algorithm if
5618 the user specified an image for the disabled state. Use
28c7826c 5619 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
5620 user hasn't specified an image.
5621
ebb8f116
GM
5622 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
5623 allocation functions with the XPM lib.
5624 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
5625 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
5626 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
5627 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
52283633 5628 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
ebb8f116
GM
5629 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
5630 functions, if possible, because these handle color allocation
5631 failure more gracefully.
5632 (Fimage_mask_p): New function.
5633
47e351a3
GM
5634 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
5635 (Qedge_detection, Qheuristic): New symbols.
5636 (syms_of_xfns): Initialize new symbols.
5637 (lookup_image): Handle `:mask X', `:algorithm emboss', and
5638 `algorithm (edge-detection ...)'.
5639 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
5640 (tiff_format, gif_format, gs_format): Add `:mask'.
5641 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
5642 (GIF_MASK, GS_MASK): New enumerators.
5643 (x_laplace_read_row, x_laplace_write_row): Functions removed.
5644 (emboss_matrix, laplace_matrix): New variables.
5645 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
5646 (x_edge_detection): New functions.
5647 (x_laplace): Rewritten in terms of x_detect_edges.
5648 (x_build_heuristic_mask): If image has a mask, free it.
5649
fe83b953
AI
56502000-09-14 Andrew Innes <andrewi@gnu.org>
5651
5652 * makefile.w32-in: Revert to Unix line endings.
5653
3021e816
AI
56542000-09-14 Andrew Innes <andrewi@gnu.org>
5655
5656 * makefile.w32-in: Standardize indentation somewhat.
5657 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
5658 cater for differences between shells.
5659
5660 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
5661
2a32b5ea
GM
56622000-09-14 Gerd Moellmann <gerd@gnu.org>
5663
5664 * xterm.c (x_produce_glyphs): If the distance from the current
5665 position to the next tab stop is less than a canonical character
5666 width, use the tab stop after that.
5667
b4331e96
DL
56682000-09-14 Dave Love <fx@gnu.org>
5669
5670 * buffer.c (alloc_buffer_text): Fix xmalloc call.
5671
ef9e4345
GM
56722000-09-14 Gerd Moellmann <gerd@gnu.org>
5673
085536c2
GM
5674 * xdisp.c (handle_fontified_prop): While running fontification
5675 functions, bind `fontification-functions' and
5676 `after-change-functions' to nil.
5677
ef9e4345
GM
5678 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
5679 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
5680
5681 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
5682
5683 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
5684 USE_MMAP_FOR_BUFFERS.
5685
5686 * insdel.c (make_gap): Use enlarge_buffer_text.
5687
5688 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
5689 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
5690 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
5691 from former r_alloc_* functions in ralloc.c.
52283633 5692 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
ef9e4345
GM
5693 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
5694 (mmap_init) [REL_ALLOC_MMAP]: New function.
5695 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
5696 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
5697 BUFFER_FREE.
5698
5699 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
5700 (enlarge_buffer_text): Add prototype.
5701
5702 * ralloc.c: Remove everything having to do with the use of mmap.
5703
f8608968
GM
57042000-09-13 Gerd Moellmann <gerd@gnu.org>
5705
2a494b2d
GM
5706 * sound.c (Fplay_sound): Doc fix.
5707
8c907a56
GM
5708 * keyboard.c: Avoid some more compiler warnings.
5709 (parse_tool_bar_item): Ignore cached key bindings.
5710
f8608968
GM
5711 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
5712 and allocation of Lisp data.
5713
6ab70e9a
GM
57142000-09-12 Gerd Moellmann <gerd@gnu.org>
5715
d12d0a9b
GM
5716 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
5717 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
5718 defaults first.
5719
6ab70e9a
GM
5720 * lread.c (Fload): Put code checking for recursive loads in #if 0.
5721
63c36c3c
KH
57222000-09-12 Miyashita Hisashi <himi@meadowy.org>
5723
5724 * ccl.c: Comment fixed.
5725 (MAX_MAP_SET_LEVEL): Increased to 30.
5726 (PUSH_MAPPING_STACK): Enclose with do-while block.
5727 (POP_MAPPING_STACK): Likewise.
5728 (stack_idx_of_map_multiple): New variable.
5729 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
5730 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
52283633 5731 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
63c36c3c
KH
5732 (ccl_driver) <CCL_MapSingle>: Likewise.
5733 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
5734 with the case where looking up process reaches to the end of
5735 map-set, and call CCL programs as the above change.
5736
7ee3bd7b
GM
57372000-09-11 Gerd Moellmann <gerd@gnu.org>
5738
8ec8a5ec
GM
5739 * xfns.c (png_load, jpeg_load): Declare some variables volatile
5740 that might be clobbered by longjmp.
5741 (check_x_display_info, x_decode_color, create_frame_xic)
5742 (Fx_display_backing_store, Fx_display_visual_class)
52283633 5743 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
8ec8a5ec 5744
f74b0705
GM
5745 * lread.c (init_lread): Set Vloads_in_progress to nil.
5746 (Fload): Show list of recursively loaded files, when signaling an
5747 error.
5748
7ee3bd7b
GM
5749 * lread.c (Vloads_in_progress): New variable.
5750 (record_load_unwind): New function.
5751 (Fload): Check for recursive loads.
5752 (syms_of_lread): Initialize Vloads_in_progress.
5753 (read_integer, read1): Avoid some compiler warnings.
5754
5755 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
5756 compiler warnings.
5757
974e1e5b
MB
57582000-09-11 Miles Bader <miles@gnu.org>
5759
5760 * editfns.c (Fbuffer_string): Doc fix.
5761
9824c4e3
GM
57622000-09-10 Gerd Moellmann <gerd@gnu.org>
5763
5764 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
5765
6a72fdd1
KR
57662000-09-09 Ken Raeburn <raeburn@gnu.org>
5767
5768 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
5769 whether to include other header files.
5770
28e6fb66
GM
57712000-09-09 Gerd Moellmann <gerd@gnu.org>
5772
52283633 5773 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 5774 by Fmemq as a boolean.
28e6fb66 5775
7f8b6551
SM
57762000-09-08 Stefan Monnier <monnier@cs.yale.edu>
5777
5778 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
5779
a8710abf
GM
57802000-09-08 Gerd Moellmann <gerd@gnu.org>
5781
d1a02881
GM
5782 * ralloc.c (mmap_fd): Remove initializer which can make it
5783 read-only in a dumped Emacs.
5784 (mmap_fd_1): New variable.
5785 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
5786 restore it from there.
5787 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
5788 unconditionally so that mmap_fd can be initialized there.
5789 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
5790 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
5791 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
5792
c454aac1
GM
5793 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
5794
5795 * xdisp.c (dump_glyph_row): Fix printf format string.
52283633 5796 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
c454aac1 5797
fc653ef2
GM
5798 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
5799
3015eec0
GM
5800 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
5801 inheritance.
5802
bfe0ee88
GM
5803 * xdisp.c (try_window_id): When trying to locate cursor in
5804 unchanged rows at the top, handle the case that we can't find it.
5805
a8710abf
GM
5806 * xterm.c (x_draw_glyphs): Handle case START and END are out
5807 of bounds more carefully.
5808
6b7d4ae4
DL
58092000-09-08 Dave Love <fx@gnu.org>
5810
423193c5
DL
5811 * s/sol2.h (REL_ALLOC_MMAP): Define.
5812 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
5813
5814 * ralloc.c: Don't include string.h (redundant).
5815 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
5816 [!MAP_ANON]: Include fcntl.h.
5817 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
5818 (r_alloc, r_re_alloc, r_alloc_free)
5819 (mmap_enlarge, mmap_set_vars): Use it.
5820 (r_alloc_init_fd): New function.
5821 (__morecore) [SYSTEM_MALLOC]: Don't declare.
5822 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
5823 malloc type.
5824
5825 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
5826 Remove vm-limit.o.
5827
6b7d4ae4
DL
5828 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
5829 change to __NetBSD__.
5830
44d31981
KH
58312000-09-08 Kenichi Handa <handa@etl.go.jp>
5832
5833 * search.c (compile_pattern): Check the multibyteness of cached
5834 string and PATTERN.
5835
aad40737
MB
58362000-09-08 Miles Bader <miles@gnu.org>
5837
5838 * xfaces.c (default_face_vector): Function removed.
5839 (Finternal_merge_in_global_face): Restore old global/local
5840 attribute override order. Use inline loop instead of calling
5841 default_face_vector.
5842
91a211b5
GM
58432000-09-07 Gerd Moellmann <gerd@gnu.org>
5844
5845 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
5846 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
5847 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
5848 where necessary, in case POINTER_TYPE is `void'.
5849
03419440
EZ
58502000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
5851
5852 * frame.c (make_terminal_frame): Initialize frame foreground and
5853 background colors to unspecified, for the initial instance of an
5854 MSDOS frame.
5855
f46f845b
GM
58562000-09-07 Gerd Moellmann <gerd@gnu.org>
5857
24f76fbf
GM
5858 * ralloc.c (mmap_find): Fix overlap computation.
5859 (mmap_enlarge): Compute nbytes before trying to find an
5860 overlapping region.
5861
f46f845b
GM
5862 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
5863 instead of `!='.
5864
5865 * lread.c (syms_of_lread): Change value of regexp
5866 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
5867
5868 * xmenu.c (xdialog_show): When looking up the selection in
5869 menu_items, take `quote' boundaries into account; this corresponds
5870 to a nil ITEM in x-popup-dialog.
5871
3c014385
KH
58722000-09-07 Kenichi Handa <handa@etl.go.jp>
5873
fd6f711b
KH
5874 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
5875 not 0x81.
5876 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
5877
3c014385 5878 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
5879 encoding, not decoding. Fix the handling of latin-jisx0201.
5880 Check for the charset katakana-jisx0201 too.
3c014385 5881 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 5882 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 5883
0da3ecef
GM
58842000-09-07 Gerd Moellmann <gerd@gnu.org>
5885
ab0ee409
GM
5886 * xfaces.c (Vparam_value_alist): New variable.
5887 (syms_of_xfaces): Initialize it.
5888 (Finternal_set_lisp_face_attribute): Avoid more consing.
5889
5890 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
5891 specially.
5892 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
5893 (Qbackground_mode): New variable.
5894 (syms_of_frame_1): Initialize Qbackground_mode.
5895
5896 * lisp.h (Qdisplay): Declare extern.
1091dd67 5897
0da3ecef
GM
5898 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
5899 change face on all frames, and change the default for new frames.
5900
b14654b9
DL
59012000-09-07 Dave Love <fx@gnu.org>
5902
5903 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
5904
d24fd56f
KH
59052000-09-07 Kenichi Handa <handa@etl.go.jp>
5906
794f3670
KH
5907 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
5908
0fddd0dc
KH
5909 * charset.c: Include composite.h
5910 (lisp_string_width): New function.
5911 (Fstring_width): Call lisp_string_width instead of strwidth.
5912
5913 * Makefile.in (charset.o): Depends on composite.h.
5914
d24fd56f
KH
5915 * process.c (read_process_output): Before inserting the decoded
5916 text in the buffer, adjust the multibyteness.
5917
fa0b693c
GM
59182000-09-06 Gerd Moellmann <gerd@gnu.org>
5919
52283633 5920 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
73b77ee5
GM
5921 buffer's text buffer is null, map new memory.
5922
0a58f946
GM
5923 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
5924 POINTER_TYPE and size_t.
5925 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
5926 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
5927 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
5928 [REL_ALLOC_MMAP]: New macros.
5929 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
5930 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
5931 [REL_ALLOC_MMAP]: New functions.
5932
5933 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
5934 before and after unexec.
5935
5936 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
5937 text buffers if necessary.
5938
5939 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
5940 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
5941 in prototypes.
5942
fa0b693c
GM
5943 * config.in (HAVE_MMAP): Add #undef.
5944
877055f6
GM
59452000-09-05 Gerd Moellmann <gerd@gnu.org>
5946
08ba3862
GM
5947 * frame.c (Qdisplay_type): New variable.
5948 (syms_of_frame_1): Initialize it.
5949 (Fframe_parameter): New function that avoids consing.
5950 (syms_of_frame): Defsubr it.
5951
66ffe51c
GM
5952 * buffer.c (Fother_buffer): Consider buffers as invisible when
5953 they are displayed in a window on an invisible frame.
5954
877055f6
GM
5955 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
5956 get-largest-window always return nil.
5957
bb970e67
GM
59582000-09-04 Gerd Moellmann <gerd@gnu.org>
5959
5960 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
5961 variable; recognize Emacs 19 elc files.
5962
7a3d0e0e
MB
59632000-09-04 Miles Bader <miles@gnu.org>
5964
5965 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
5966 before initially popping up the menu, so the menu doesn't flash
52283633 5967 when the face settings are significantly different from the defaults.
7a3d0e0e 5968
14473664
SM
59692000-09-04 Stefan Monnier <monnier@cs.yale.edu>
5970
5971 * regex.c (WIDE_CHAR_SUPPORT): New macro.
5972 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
5973 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
5974 (BIT_UNIBYTE): Remove.
5975 (re_match_2_internal): Delete corresponding code and streamline the
5976 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
5977 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
5978 (re_wctype_t): New type.
5979 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
5980 (regex_compile): Use them and fix handling of overly long char classes.
5981
c1174479
AI
59822000-09-03 Andrew Innes <andrewi@gnu.org>
5983
f8803e97
AI
5984 * makefile.w32-in: Change to DOS line endings.
5985
c1174479
AI
5986 * s/ms-w32.h (ORDINARY_LINK): New define.
5987
5988 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
5989 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
5990
5991 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
5992 (distclean): Delete them here instead.
5993
44ef7cf6
AI
5994 * w32proc.c (compare_env): Convert to uppercase for comparison,
5995 not lowercase, to match how the native Windows shell works.
5996
49b3bd82
JR
59972000-09-03 Jason Rumney <jasonr@gnu.org>
5998
5999 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
6000 CVS changes the line-ends when checking in/out on DOS/Windows.
6001
6002 * makefile.nt (emacs): Do not change directory to run temacs, as
6003 the load-path is set relative to current directory.
6004
a3d35a39
MB
60052000-09-03 Miles Bader <miles@gnu.org>
6006
6007 * xterm.c (x_alloc_lighter_color_for_widget): New function.
6008
d276b0cf
GM
60092000-09-02 Gerd Moellmann <gerd@gnu.org>
6010
715e84c9
GM
6011 * xdisp.c (redisplay_mode_lines): New function.
6012 (display_mode_lines): Return number of mode lines displayed.
6013 (echo_area_display): Use redisplay_mode_lines to draw garbaged
6014 mode lines. Don't temporarily bind redisplay-dont-pause to t.
6015
8892f40b
GM
6016 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
6017 string.h and strings.h.
6018 (index) [HAVE_INDEX]: Add prototype.
6019
d276b0cf
GM
6020 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
6021 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
6022
6023 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
6024 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6025
38404229
GM
60262000-09-01 Gerd Moellmann <gerd@gnu.org>
6027
6028 * lread.c (read1): Accept `?' as symbol constituent, for
6029 compatiblity with XEmacs.
6030
c0f9ea08
SM
60312000-08-31 Stefan Monnier <monnier@cs.yale.edu>
6032
6033 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
6034 (struct re_pattern_buffer): Remove newline_anchor.
6035 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
6036 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
6037 (re_max_failures, fail_stack): Use size_t rather than unsigned.
6038 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
6039 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
6040 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
6041 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
6042 Get rid of references to newline_anchor.
6043 (regcomp): Allocate and precompute a fastmap.
6044
8c0f83fe
GM
60452000-08-31 Gerd Moellmann <gerd@gnu.org>
6046
6047 * lread.c (openp): GCPRO local variable `filename'.
6048
4bb91c68
SM
60492000-08-30 Stefan Monnier <monnier@cs.yale.edu>
6050
6051 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
6052
6053 * regex.c: Merge some changes from GNU libc. Add prototypes.
6054 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
6055 Use memcmp and memcpy instead of bcopy and bcmp.
6056 (init_syntax_once): Use ISALNUM.
6057 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
6058 (REG_UNSET_VALUE): Remove. Use NULL instead.
6059 (REG_UNSET, re_match_2_internal): Use NULL.
6060 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
6061 New macros.
6062 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
6063 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
6064 (regex_compile): In handle_interval, return an error rather than try to
6065 unfetch the interval if we can't find the closing brace.
6066 Obey the RE_NO_GNU_OPS syntax bit.
6067 (TOLOWER): New macro.
6068 (regcomp): Use it.
6069 (regexec): Allocate regs.start and regs.end as one block.
6070
5226a931
GM
60712000-08-30 Gerd Moellmann <gerd@gnu.org>
6072
868dd24b
GM
6073 * xdisp.c (echo_area_display): Check display_completed instead
6074 of calling detect_input_pending.
6075
6076 * dispnew.c (update_frame): Only set display_completed here; move
6077 the update_begin and update_end calls here from update_frame_1.
6078 (update_frame_1): Don't set display_completed here, don't call
6079 update_begin/update_end.
6080
5226a931
GM
6081 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
6082 instead of store_frame_param.
6083
2a8bd25f
GM
60842000-08-29 Gerd Moellmann <gerd@gnu.org>
6085
6086 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
6087 desired window matrix hasn't been displayed, use the current row
6088 instead. Make sure that only those frame rows are updated for
6089 which there exists a corresponding enabled desired row.
52283633 6090
ba3478d9
MB
60912000-08-29 Miles Bader <miles@gnu.org>
6092
6093 * xfaces.c (default_face_vector): New function.
6094 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
6095
87d0f685
GM
60962000-08-29 Gerd Moellmann <gerd@gnu.org>
6097
6098 * lread.c (openp): Prevent temporary string passed to
6099 Ffile_readable_p from being garbage collected.
6100
6fa86045
DL
61012000-08-28 Dave Love <fx@gnu.org>
6102
6103 * keymap.c (store_in_keymap): Add `static' to declaration.
6104
bb17930d
GM
61052000-08-28 Gerd Moellmann <gerd@gnu.org>
6106
6107 * emacs.c, callint.c, doc.c, editfns.c
6108 (toplevel) [HAVE_STRING_H]: Include string.h.
6109 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
6110 (index): Remove prototypes which might conflict with non-standard
6111 definitions of index/strchr.
6112
6113 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
6114 (rindex): Define only if !HAVE_RINDEX.
6115
6116 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
6117
6118 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
6119
87188200
MB
61202000-08-28 Miles Bader <miles@gnu.org>
6121
6122 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
6123 made inconsistent by a font-related attribute in FROM.
6124 (merge_face_inheritance): Add function comment.
6125
41a68aef
KH
61262000-08-28 Kenichi Handa <handa@etl.go.jp>
6127
6128 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
6129 the 4th arg (PREV_EVENT) Qt to suppress input method.
6130
f7c436c1
SM
61312000-08-27 Stefan Monnier <monnier@cs.yale.edu>
6132
0b32bf0e
SM
6133 * regex.c: Indent cpp directives and remove parens after `defined'.
6134 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
6135 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
6136 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
6137 (re_compile_pattern): Use size_t for length.
6138 (init_syntax_once): Move to a better place.
6139 * regex.h: Merge changes from GNU libc. Indent cpp directives.
6140 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
6141
f7c436c1
SM
6142 * syntax.c (back_comment): Detect cases where a comment-starter is
6143 actually inside another comment as in: /* a // b */ c // d \n.
6144 Make it clear that `comstart_pos' is unused for nested comments.
6145
6146 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
6147 (KEYMAPP): New macro.
6148 (Fkeymap_parent, Fset_keymap_parent): Use it.
6149 (fix_submap_inheritance): Mark it static.
6150 (define_as_prefix, describe_buffer_bindings, describe_command)
6151 (describe_translation, describe_map): Complete prototypes.
6152
6153 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
6154
6155 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
6156 to better match the key-lookup behavior.
6157
6288c62f
GM
61582000-08-27 Gerd Moellmann <gerd@gnu.org>
6159
6160 * xfaces.c (lface_fully_specified_p): Handle :inherit.
6161 (Finternal_set_lisp_face_attribute): Fix typo in error message.
6162
e931344e
EZ
61632000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
6164
6165 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
6166 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
6167 (xterm.o): Depend on coding.h
6168
d10dfeef
KH
61692000-08-26 Kenichi Handa <handa@etl.go.jp>
6170
6171 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
6172 the corresponding '#endif'.
6173
2d73e8d3
MB
61742000-08-26 Miles Bader <miles@gnu.org>
6175
6176 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
6177 * xfaces.c (QCinherit): New variable.
6178 (syms_of_xfaces): Initialize it.
6179 (LFACE_INHERIT): New macro.
6180 (Finternal_get_lisp_face_attribute)
52283633 6181 (merge_face_vector_with_property)
2d73e8d3
MB
6182 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
6183 (check_lface_attrs): Allow new types of face height. Check
6184 inherit attribute.
6185 (CYCLE_CHECK): New macro.
6186 (merge_face_inheritance): New function.
6187 (merge_face_vectors): Merge inherited faces too. Add F and
6188 CYCLE_CHECK arguments.
6189 (merge_face_vector_with_property, Finternal_merge_in_global_face)
6190 (lookup_named_face, lookup_derived_face, realize_named_face)
6191 (face_at_string_position, face_at_buffer_position): Supply
6192 new F and CYCLE_CHECK arguments to merge_face_vectors.
6193 (merge_face_heights): New function.
52283633 6194 (merge_face_vectors, merge_face_vector_with_property)
2d73e8d3
MB
6195 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
6196 handle relative face heights.
6197 (lface_same_font_attributes_p): Compare heights using EQ.
6198
6ce974d4
KH
61992000-08-26 Kenichi Handa <handa@etl.go.jp>
6200
6201 * charset.c (char_to_string): Check the character validity.
52283633 6202 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
6ce974d4 6203
dc1e502d
SM
62042000-08-25 Stefan Monnier <monnier@cs.yale.edu>
6205
6206 * regex.c (PUSH_FAILURE_COUNT): New macro.
6207 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
6208 Handle popping of a register's or a counter's data.
6209 (POP_FAILURE_POINT): Use the new name.
6210 (re_match_2_internal): Push counter data on the stack for succeed_n,
6211 jump_n and set_number_at and remove misleading dead code in succeed_n.
6212
bd9d0f3f
GM
62132000-08-25 Gerd Moellmann <gerd@gnu.org>
6214
6215 * xdisp.c (redisplay_internal): If considering all windows on all
6216 frames, update the display for each frame as soon as possible,
6217 instead of first building all desired matrices for all frames, and
6218 then updating them all.
6219 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
6220
aa5b8e15
GM
62212000-08-24 Gerd Moellmann <gerd@gnu.org>
6222
17494071
GM
6223 * bytecode.c (mark_byte_stack): Add a comment.
6224
52283633
SM
6225 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
6226 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
aa5b8e15
GM
6227 a graphical frame.
6228
c543db81
KH
62292000-08-24 Kenichi Handa <handa@etl.go.jp>
6230
d246d5f5
KH
6231 * minibuf.c (do_completion): Always use compare-string, not
6232 string-equal because the latter doesn't pay attention to
6233 multibyteness of strings.
6234
c543db81
KH
6235 * process.c (create_process): Don't setup raw-text coding here.
6236 (Fopen_network_stream): Don't set coding->src_multibyte and
6237 coding->dst_multibyte here.
6238 (read_process_output): For process filter, return unibyte string
6239 if default-enable-multibyte-characters is nil.
6240 (send_process): If OBJECT is multibyte text, be sure to encoded it
6241 by the specified coding system for the process. Otherwise, setup
6242 raw-text coding.
52283633 6243 (init_process): Don't initialize default-process-coding-system here.
c543db81 6244
9b47cfe0
EZ
62452000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
6246
6247 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
6248 <scroll-down-aggressively>: Likewise.
6249
f5a36960
KH
62502000-08-23 Kenichi Handa <handa@etl.go.jp>
6251
6252 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
6253 zero. Set coding->produced_char correctly.
6254
69a7ffa7
AI
62552000-08-22 Andrew Innes <andrewi@gnu.org>
6256
6257 * makefile.w32-in: New file.
6258
6259 * unexw32.c (unexec): Ignore old_name, and use the actual location
6260 of the current executable instead. Base new_name on this.
6261
6262 * w32proc.c (create_child): Remove reference to security
6263 descriptor, which isn't needed and doesn't compile with mingw32.
6264
6265 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6266 up dllimport attributes.
6267 (x_update_window_end): Update prototype.
6268
6269 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
6270 extern, which screws up dllimport attributes.
6271
6272 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6273 up dllimport attributes.
6274
6275 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
6276 screws up dllimport attributes.
6277
6278 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6279 up dllimport attributes.
6280 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
6281 screws up dllimport attributes.
6282
6283 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6284 up dllimport attributes.
6285
6286 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
6287 screws up dllimport attributes.
6288
6289 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
6290 screws up dllimport attributes.
6291
6292 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6293 up dllimport attributes.
6294
6295 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
6296 unnecessary extern, which screws up dllimport attributes.
6297 (main): Ditto.
6298
6299 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6300 up dllimport attributes.
6301
6302 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
6303 unnecessary extern, which screws up dllimport attributes.
6304
6305 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
6306 screws up dllimport attributes.
6307
6308 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6309 up dllimport attributes.
6310
6311 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
6312
52283633
SM
6313 * w32bdf.c (search_file_line):
6314 (set_bdf_font_info):
6315 (seek_char):
6316 (w32_get_bdf_glyph):
69a7ffa7
AI
6317 (w32_BDF_to_x_font): Fix compile warnings.
6318
52283633 6319 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
69a7ffa7
AI
6320
6321 * w32select.c: Include keyboard.h before frame.h.
6322
6323 * w32fns.c (max): Define macro.
6324 (JOHAB_CHARSET): Define if not known.
6325 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
6326 (Fx_show_tip): Synch with X version.
6327
6328 * w32xfns.c: Include keyboard.h before frame.h.
6329
6330 * w32fns.c: Include keyboard.h before frame.h.
6331
6332 * w32term.c: Include keyboard.h before frame.h.
6333
6334 * fontset.c: Include keyboard.h before frame.h.
6335
6336 * w32inevt.c: Include keyboard.h before frame.h.
6337 (MOUSE_MOVED): Define if not known.
6338
6339 * minibuf.c: Include keyboard.h before frame.h.
6340
6341 * keyboard.c: Include keyboard.h before frame.h.
6342
6343 * indent.c: Include keyboard.h before frame.h.
6344
6345 * dispnew.c: Include keyboard.h before frame.h.
6346
6347 * buffer.c: Include keyboard.h before frame.h.
6348
6349 * alloc.c: Include keyboard.h before frame.h.
6350
6351 * print.c: Include keyboard.h before frame.h.
6352
6353 * process.c: Include keyboard.h before frame.h.
6354
6355 * scroll.c: Include keyboard.h before frame.h.
6356
6357 * sysdep.c: Include keyboard.h before frame.h.
6358
6359 * term.c: Include keyboard.h before frame.h.
6360
6361 * window.c: Include keyboard.h before frame.h.
6362
6363 * xdisp.c: Include keyboard.h before frame.h.
6364 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
6365
6366 * frame.c: Include keyboard.h before frame.h.
6367
6368 * w32heap.h: Undefine min, max.
6369
6370 * w32gui.h: Undefine min, max.
6371
6372 * unexw32.c: Change PUCHAR to PCHAR.
6373 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
52283633
SM
6374 (relocate_offset):
6375 (get_section_info):
69a7ffa7
AI
6376 (copy_executable_and_dump_data): Remove unnecessary static defs.
6377 (copy_executable_and_dump_data): Fix compile warnings.
6378
6379 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
6380
6381 * w32console.c (min): Define macro.
6382 (clear_frame, write_glyphs): Fix compile warning.
6383
52283633 6384 * w32proc.c (compare_env):
69a7ffa7
AI
6385 (find_child_console): Fix compile warning.
6386
6387 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
6388 sys_errlist instead of _sys_errlist.
6389 (get_emacs_configuration_options): New function.
6390
6391 * s/ms-w32.h (sys_nerr): Provide default definition.
6392 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
6393 name with _ prepended.
6394 (NSIG): Define if not known.
6395 (get_emacs_configuration): Provide extern declaration.
6396 (get_emacs_configuration_options): Provide extern declaration.
6397 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
6398
6399 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
52283633 6400 (map_w32_filename):
69a7ffa7
AI
6401 (read_unc_volume): Fix compile warning.
6402
6403 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
6404 definitions from being used.
6405
6406 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
6407
52283633 6408 * w32.c (unc_volume_file_attributes):
69a7ffa7
AI
6409 (open_unc_volume): Make arg const.
6410
6411 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
6412 (read_input_waiting): Remove excess parameter.
6413
6414 * w32.c (init_environment): Call _access.
6415 (check_windows_init_file): Call _close.
6416 (init_user_info): Call _putenv.
6417 (init_environment): Call _putenv and _strdup.
6418 (init_ntproc): Reset volume info cache on startup.
6419
6420 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
6421 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
6422 cannot override the CRT malloc.
6423
6424 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
6425 (LINK_FLAGS): Append to original value of LINK_FLAGS.
6426
6427 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
6428 unless we are linking with a static CRT.
6429 (RVA_TO_PTR): Cast result to unsigned char*.
6430
6431 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
6432 (add_volume_info): Use xstrdup.
6433
25060080
SM
64342000-08-22 Stefan Monnier <monnier@cs.yale.edu>
6435
6436 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
6437 (do_completion, Fminibuffer_complete_word): Use it.
6438 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
6439 var so it can take non-boolean values.
6440
6917e6bb
GM
64412000-08-21 Gerd Moellmann <gerd@gnu.org>
6442
acb7cc89 6443 * editfns.c (find_field): Formatting changes.
52283633 6444 (toplevel): Some old-style function forward declarations
acb7cc89
GM
6445 changed to prototypes, some new protypes added, some functions
6446 made static.
6447
6448 * lisp.h (set_time_zone_rule): Add prototype.
6449 (use_dialog_box): External declaration.
6450
0bbfdc25
GM
6451 * keyboard.c (gen_help_event): Add parameter SIZE.
6452 (kbd_buffer_events_waiting): Slightly rewritten.
6453 (clear_event): New function.
6454 (kbd_buffer_get_event): Use it, and clear the input_events of
6455 HELP_EVENTs.
6456 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
6457 don't fill the newly created array with nils.
6458 (toplevel): Convert some old-style function forward declarations
6459 to prototypes.
6460
6461 * keyboard.h (gen_help_event): Change prototype.
6462
6463 * xterm.c (XTread_socket): Change calls to gen_help_event.
6464
6465 * w32term.c (w32_read_socket): Change calls to gen_help_event.
6466
6917e6bb
GM
6467 * eval.c (Fmacroexpand): Doc fix.
6468
e5cd3d11
JR
64692000-08-20 Jason Rumney <jasonr@gnu.org>
6470
6471 * w32term.h (x_display_info_for_display): Remove as this function
6472 does not exist on W32.
6473
6474 * w32term.c (help_echo_window): New variable.
6475 (syms_of_w32term): staticpro it.
6476 (note_mode_line_highlight): Set it.
6477 (XTextExtents16): Removed as there is no equivalent on W32.
6478 (x_compute_glyph_string_overhangs): Incomplete body removed, as
6479 the X way of doing this will not work for W32.
6480 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
6481 (x_draw_image_foreground): Avoid drawing outside of the clip area
6482 when image doesn't have a mask.
6483 (note_mouse_highlight): Process overlays in the right order of
6484 priority. Set help_echo_window.
6485 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
6486 because that's more visible for large images.
6487
6488 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
6489 name to single_keymap_panes.
6490 (w32_menu_show): Set wv->title when dealing with titles.
6491 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
6492
6e69ab8c
MB
64932000-08-21 Miles Bader <miles@gnu.org>
6494
6495 * minibuf.c (do_completion): Try again if we rewrite the input
6496 string, but no completion was done, so that any completion message
6497 will be correct.
6498
511bd4eb
GM
64992000-08-20 Gerd Moellmann <gerd@gnu.org>
6500
6501 * xfaces.c (lface_equal_p): Compare strings differently.
6502 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
6503 (realize_tty_face): Use them.
6504 (syms_of_xfaces): Initialize new variables.
6505 (map_tty_color): New function, extracted from realize_tty_face.
6506 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
6507 foreground or background color, store the new color name in the
6508 realized face; previous code trying to do this had no effect.
6509 (realize_tty_face): Use map_tty_color.
6510 (Fclear_face_cache): Set face_change_count and ensure thorough
6511 redisplay.
6512
1433385f
GM
65132000-08-19 Gerd Moellmann <gerd@gnu.org>
6514
511bd4eb
GM
6515 * undo.c (record_first_change, record_marker_adjustment): Don't
6516 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 6517
419ac0a2
KH
65182000-08-18 Kenichi Handa <handa@etl.go.jp>
6519
6520 * coding.c (decode_coding_string): Set members consumed,
6521 consumed_char, produced, produced_char of *coding correctly. If
6522 decode_coding doesn't consume any byte, don't try anymore.
6523 (encode_coding_string): Likewise.
6524
7eb9e30d
GM
65252000-08-18 Gerd Moellmann <gerd@gnu.org>
6526
511bd4eb
GM
6527 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
6528 conditional have void type, for Standard C compilers.
7eb9e30d
GM
6529
6530 * xdisp.c (redisplay_internal): Compare windows for equality with
6531 EQ, instead of applying XWINDOW to something that might not
6532 be a window.
52283633 6533
dd34a735
KH
65342000-08-18 Kenichi Handa <handa@etl.go.jp>
6535
6536 * fontset.c (Finternal_char_font): Search only the selected frame
6537 for a window of the current buffer.
6538
385ff9e3
GM
65392000-08-18 Gerd Moellmann <gerd@gnu.org>
6540
511bd4eb 6541 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
6542 Lisp_Objects.
6543
385ff9e3
GM
6544 * keyboard.c (kbd_buffer_get_event): Handle the case that the
6545 second half of a HELP_EVENT is found at the start of kbd_buffer.
6546
d6abb4c7
MB
65472000-08-18 Miles Bader <miles@gnu.org>
6548
4618074a
MB
6549 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
6550
d6abb4c7
MB
6551 * editfns.c (save_restriction_save): Rewrite to use markers.
6552 (save_restriction_restore): Rewrite to understand new form of data
6553 saved by save_restriction_save.
6554 (Fsave_restriction): Remove cautionary note in doc-string.
6555
a7b28523
GM
65562000-08-17 Gerd Moellmann <gerd@gnu.org>
6557
6558 * fileio.c (build_annotations): Add a comment explaining the
6559 return value of format-annotate-function. Replace a spurious call
6560 to Flength with a CONSP test. Call format-annotate-function with
6561 a fifth arg specifying how many times the function is been called
6562 in a row, to let it choose temporary buffers appropriately.
6563
03c9ed77
DL
65642000-08-17 Dave Love <fx@gnu.org>
6565
6566 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
6567 declare make_temp_name twice.
6568
52283633 6569 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
03c9ed77
DL
6570 (unreadpure): Give it an arg.
6571
6572 * unexalpha.c: Prototype fatal_unexec, mark_x,
6573 update_dynamic_symbols. Declare unexec as void.
6574
6575 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
6576 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
6577
6578 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
52283633 6579 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
03c9ed77
DL
6580
6581 * alloca.c: Use #error.
6582 [POINTER_TYPE]: Use it.
6583
6584 * eval.c (Fdefvar): Doc fix.
6585
6586 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
6587 INITIALIZE_INTERVAL.
6588
6589 * buffer.h: Avoid DECLARE_INTERVALS.
6590
6591 * config.in: Add size_t.
6592
aae41d97
EZ
65932000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
6594
6595 * w16select.c (set_clipboard_data): If there's not enough memory
6596 to put text into clipboard, return 1, as Fw16_set_clipboard_data
6597 expects. In case of other failures, return 3.
6598 (system_error_msg): New error message.
6599 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
6600 system_error_msg.
6601
65aa5e85
GM
66022000-08-16 Gerd Moellmann <gerd@gnu.org>
6603
6604 * term.c (write_glyphs): Also turn off inverse video after turning
6605 off other appearances in case TS_exit_attribute_mode is not equal
6606 to TS_end_standout_mode.
6607 (insert_glyphs): Turn inverse video on/off for each run of glyphs
6608 with the same face.
6609 (turn_off_face): Reset standout_mode only if
6610 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
6611 is equal to TS_end_standout_mode.
6612
ece23901
KH
66132000-08-16 Kenichi Handa <handa@etl.go.jp>
6614
9d7bcb2e
KH
6615 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
6616 sequence at the end of the source block.
6617
ece23901
KH
6618 * ccl.c (Fccl_program_p): Docstring modified.
6619 (Fccl_execute): Likewise.
6620 (Fccl_execute_on_string): Likewise.
6621
5e30eaa2
EZ
66222000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
6623
6624 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
6625
290602fd
KH
66262000-08-16 Kenichi Handa <handa@etl.go.jp>
6627
6628 The following changes are mainly to fix bugs of
6629 encode/decode-coding-string failing if encoding/decoding return
6630 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
6631 variable conversion_buffer.
6632
6633 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
6634 decrement dst_end to avoid buffer overflow in the later call of
6635 string_as_multibyte
6636
6637 * coding.h (conversion_buffer_size, conversion_buffer)
6638 (get_conversion_buffer): Extern deleted.
6639
6640 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
6641 (conversion_buffer, conversion_buffer_size): Variables deleted.
6642 (get_conversion_buffer): Function deleted.
6643 (struct conversion_buffer): New structure.
6644 (MAX_ALLOCA): New macro.
6645 (allocate_conversion_buffer): New macro.
6646 (extend_conversion_buffer, free_conversion_buffer): New functions.
6647 (ccl_coding_driver): Set coding->result.
6648 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
6649 this is the last block of source.
6650 (encode_coding): Likewise. Handle the source block as the last
6651 one only when the whole source text is consumed.
6652 (decode_coding_string): Handle the case that the output buffer is
6653 too small to decode the whole source text. Use
6654 allocate_conversion_buffer, extend_conversion_buffer and
6655 free_conversion_buffer, not get_conversion_buffer.
6656 (encode_coding_string): Likewise.
6657 (init_coding): Function deleted.
52283633 6658 (init_coding_once): Delete code to initialize conversion_buffer_size.
290602fd
KH
6659
6660 * emacs.c (main): Don't call init_coding.
6661
52283633 6662 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
290602fd
KH
6663
6664 * term.c (write_glyphs): Use a locally declared conversion_buffer.
6665 (insert_glyphs): Likewise.
6666
6667 * w32console.c (write_glyphs): Use a locally declared
6668 conversion_buffer.
6669
b9f80d41
EZ
66702000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
6671
6672 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
6673 member of display_info is NULL.
6674
32dc52f7
GM
66752000-08-15 Gerd Moellmann <gerd@gnu.org>
6676
52283633 6677 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
58ed0d3b 6678
32dc52f7 6679 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 6680 appearances with capability `me'.
32dc52f7
GM
6681 (write_glyphs): Switch on inverse video before each face change.
6682
4eb22d33
DL
66832000-08-14 Dave Love <fx@gnu.org>
6684
6685 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
6686 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
6687 (lisp_free): Declare and make static.
6688
6689 * window.c: Fix embedded comment.
6690 (syms_of_window): Fix doc string.
6691
90cbf47e
GM
66922000-08-14 Gerd Moellmann <gerd@gnu.org>
6693
52283633 6694 * keymap.c (push_key_description): If C without modifiers is < 32,
90cbf47e
GM
6695 make sure to print `C-' before `M-', like in the manual.
6696
440fc135
GM
66972000-08-11 Gerd Moellmann <gerd@gnu.org>
6698
6699 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
6700 since they aren't relocated anymore.
52283633 6701 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
440fc135
GM
6702
6703 * xdisp.c (try_cursor_movement): Fix handling of cursor in
52283633 6704 partially visible line which is smaller than the window's height.
440fc135 6705
6e264fad
KH
67062000-08-11 Kenichi Handa <handa@etl.go.jp>
6707
6708 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
52283633 6709 the multibyte form of eight-bit-control characters.
6e264fad
KH
6710 (Fccl_execute_on_string): Initialize ccl->multibyte.
6711
6712 * ccl.h (struct ccl_program): New member multibyte.
6713
6714 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
6715
c371f69a
KH
67162000-08-11 Kenichi Handa <handa@etl.go.jp>
6717
6718 * regex.c (regex_compile) <normal_char>: Pay attention to
6719 multibyteness.
6720 (analyse_first) <exactn>: Setup fastmap correctly for
6721 eight-bit-control characters.
6722
67232000-08-11 Kenichi Handa <handa@etl.go.jp>
6724
52283633 6725 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
c371f69a
KH
6726
6727 * keyboard.c (make_lispy_event): Handle the new event type
6728 multibyte_char_keystroke.
6729
6730 * xterm.c: Include coding.h.
6731 (XTread_socket): Work around a bug of XmbLookupString. If the
6732 input is from XIM, decode it according to the current locale. In
6733 that case, generate multibyte_char_keystroke events.
6734
b8ddbe71
KH
67352000-08-11 Kenichi Handa <handa@etl.go.jp>
6736
6737 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
6738 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
6739
47589c8c
GM
67402000-08-10 Gerd Moellmann <gerd@gnu.org>
6741
6742 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
6743 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
6744 (move_it_in_display_line_to): Record iterator's ascent and descent
6745 before producing glyphs, and restore them when we know the glyph
6746 doesn't fit on the line.
6747 (move_it_to): Restructured so that it's easier to debug. If
6748 moving to a vpos, and not moving to an x or character position,
6749 stop as soon as the specified vpos is reached; don't move further
6750 into that line because that might change the computed line height.
6751 (try_cursor_movement): New function, extracted from the cursor
6752 movement branch of redisplay_window. If ending on a partially
6753 visible line, don't try to scroll if the cursor line is taller
6754 than the window.
6755 (redisplay_window): Use try_cursor_movement.
6756
6757 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
6758 because that function doesn't cope with variable-height lines.
6759
6760 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
6761 box cursor because that's better visible for large images.
52283633 6762
c51bacd6
MB
67632000-08-10 Miles Bader <miles@gnu.org>
6764
6765 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
6766
bea56df7
GM
67672000-08-10 Gerd Moellmann <gerd@gnu.org>
6768
6769 * xdisp.c (Vmessages_buffer_name): New variable.
6770 (message_dolog): Use it.
6771 (syms_of_xdisp): Initialize it.
6772
99cd7364
EZ
67732000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
6774
52283633 6775 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
99cd7364
EZ
6776 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
6777 redundant now that keyboard.h is included.
6778
7d093d56
EZ
67792000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
6780
6781 * keyboard.c (kbd_buffer_events_waiting): New function.
6782
6783 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
6784
6785 * msdos.c: Include keyboard.h.
6786 (XMenuActivate): Empty no_event events from the event buffer. If
6787 no events are left after that, call clear_input_pending.
6788 (mouse_clear_clicks): New function, code moved from mouse_init.
6789 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
6790 mouse driver to ``forget'' any past clicks.
6791
6792 * Makefile.in (msdos.o): Depend on keyboard.h.
6793
41e757a6
GM
67942000-08-09 Gerd Moellmann <gerd@gnu.org>
6795
8e7bd231
GM
6796 * lisp.h (input_pending): External declaration.
6797
6798 * dispextern.h (Qredisplay_dont_pause): Declare extern.
52283633 6799
8e7bd231
GM
6800 * xdisp.c (echo_area_display): Display thoroughly if input is
6801 pending. Bind redisplay-dont-pause to t during the redisplay.
6802 in case input is pending.
6803
6804 * dispnew.c (Qredisplay_dont_pause): New variable.
6805 (syms_of_display): Initialize and staticpro it.
6806 (update_frame_1): Don't interrupt the display for pending input if
6807 redisplay_dont_pause is set.
52283633 6808
43028b7e
GM
6809 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
6810
41e757a6
GM
6811 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
6812
2f2174fa
KH
68132000-08-09 Miles Bader <miles@lsi.nec.co.jp>
6814
6815 * callproc.c (Fcall_process): Terminate the unwind-protect around
6816 the post-read-conversion of coding system.
6817
0a6fd67e
MB
6818 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
6819 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
6820 * buffer.h (overlays_at): Update prototype.
6821 * xdisp.c (next_overlay_change): Update call to overlays_at.
6822 * xfaces.c (face_at_buffer_position): Likewise.
6823 * textprop.c (Fget_char_property): Likewise.
6824 * xterm.c (note_mouse_highlight): Likewise.
6825
0c80756e
MB
6826 * minibuf.c (do_completion): Don't consider a simple change of
6827 case as `completion'.
6828
975f250a
KR
68292000-08-08 Ken Raeburn <raeburn@gnu.org>
6830
52283633 6831 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
b347b3fd
KR
6832 * undo.c (record_delete): Make sure last_point_position_buffer is
6833 a buffer before comparing pointers.
6834
6835 * coding.h (decode_coding_string): Declare.
6836
6837 * intervals.h (Fprevious_single_char_property_change): Declare.
6838
6839 * textprop.c (Fprevious_single_char_property_change): Don't do
6840 arithmetic directly on lisp objects.
6841
52283633 6842 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
b347b3fd
KR
6843
6844 * keyboard.h (menu_item_eval_property): Declare.
6845
6846 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
6847 reuse as buffer name, instead of recreating (and discarding) every
6848 time a message is logged.
6849 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
6850 (current_message_1, truncate_message_1, set_message_1)
6851 (display_echo_area_1, resize_mini_window_1): Signatures changed.
6852 (current_message, truncate_echo_area, display_echo_area)
6853 (resize_echo_area_axactly): Changed calls.
b347b3fd 6854
975f250a 6855 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 6856 Lisp object.
975f250a 6857 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 6858 must be an integer, not a Lisp object.
975f250a 6859
46dc9912
KH
68602000-08-08 Kenichi Handa <handa@etl.go.jp>
6861
6862 * charset.c (Fchar_width): Doc fix.
6863
9f6d1a6c
GM
68642000-08-08 Gerd Moellmann <gerd@gnu.org>
6865
6866 * charset.c (Fstring_width): Doc fix.
6867
ff3d9573
GM
68682000-08-07 Gerd Moellmann <gerd@gnu.org>
6869
41e757a6 6870 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
6871 line, clear ascent and descent members of the iterator structure;
6872 the height of the continued line does not affect the height of the
6873 continuation line.
6874 (make_cursor_line_fully_visible): Do nothing if cursor is on a
6875 line taller than the window.
6876 (redisplay_window) <forced window start>: Handle case that the
6877 middle of the window is not found in any row.
6878 (dump_glyph_row): Show more information.
6879 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
6880 first text line in a glyph matrix.
6881
6882 * xterm.c (x_draw_image_foreground): Avoid drawing outside
6883 of the clip area when image doesn't have a mask.
6884
70fc58b3
GM
6885 * fns.c (sweep_weak_table): Fix survival conditions for
6886 key-or-value and key-and-value weakness.
6887
6888 * .gdbinit (xhashtable): New command.
6889
ac0e96ee
GM
6890 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
6891 tables out of the list of all weak hash tables.
6892
ff3d9573
GM
6893 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
6894 a new buffer is created, make sure echo_area_buffer[] references
6895 the new buffer.
6896
e0d8827b
EZ
68972000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
6898
6899 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
6900 the doc string.
6901
c6f35378
KH
69022000-08-07 Kenichi Handa <handa@etl.go.jp>
6903
6904 * syntax.c (skip_chars): Fix previous change. Make the handling
6905 of unibyte string consistent with that of regex search.
6906
1fd4c450
GM
69072000-08-05 Gerd Moellmann <gerd@gnu.org>
6908
e49aa397
GM
6909 * xmenu.c (popup_get_selection): Use xfree instead of free.
6910
6911 * fileio.c (Finsert_file_contents): Use xfree instead of free.
6912
6913 * editfns.c (Ftranspose_regions): Use xfree instead of free.
6914
6915 * callproc.c (child_setup): Use xfree instead of free.
6916
6917 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
6918 instead of malloc.
6919 (run_mac_command, closedir): Use `xfree' instead of `free'.
6920
6921 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
6922
6923 * eval.c (error): Use xfree instead of free.
6924
1fd4c450
GM
6925 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
6926
6927 * fns.c: Replace `illegal' with `invalid'.
e49aa397 6928 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 6929
82d497fc
KH
69302000-08-05 Kenichi Handa <handa@etl.go.jp>
6931
6932 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
6933 conversion.
6934
59f953a2
NF
69352000-08-04 Noah Friedman <friedman@splode.com>
6936
6937 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
6938 docstring.
6939
688351f2
GM
69402000-08-04 Gerd Moellmann <gerd@gnu.org>
6941
6942 * syntax.c (skip_chars): Fix typo in error message.
6943
2dad51cc
AS
69442000-08-04 Andreas Schwab <schwab@suse.de>
6945
6946 * m/ia64.h: Moved from s/ia64.h.
6947
99bb2c60
KH
69482000-08-04 Kenichi Handa <handa@etl.go.jp>
6949
082a1df2
KH
6950 * process.c (read_process_output): Big simplification. Handle
6951 composition and post-read-conversion of coding system correctly.
6952 (send_process): Handle composition correctly.
6953
6954 * callproc.c (Fcall_process): Handle post-read-conversion of
6955 coding system if any.
6956
99bb2c60
KH
6957 * coding.c (decode_coding_iso2022): More strict check for handling
6958 single shifting.
082a1df2
KH
6959 (coding_restore_composition): Pay attention to the case that
6960 cmp_data is not set properly (because of invalid code in the
6961 source text).
6962 (run_pre_post_conversion_on_str): Include text properties in the
6963 resulting string.
6964 (decode_coding_string): Set members of coding correctly.
99bb2c60 6965
f4988be7
GM
69662000-08-03 Gerd Moellmann <gerd@gnu.org>
6967
6968 * s/ia64.h: New file.
6969
6970 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
6971 Use NULL instead of 0 at the end of variable argument list of
6972 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
6973 sizeof (int) < sizeof (void *).
6974
6975 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
6976 of variable argument lists of XtVaGetValues and XtVaSetValues.
6977
6978 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
6979 variable argument lists of XtVaGetValues and XtVaSetValues.
6980
ead53494
GM
69812000-08-02 Gerd Moellmann <gerd@gnu.org>
6982
6983 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
6984 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
6985
6986 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
6987 prototype.
6988
6989 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
6990 in call to Fsingle_key_description.
6991
6992 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
6993 Callers changed.
6994
69952000-08-02 Colin Walters <walters@cis.ohio-state.edu>
6996
6997 * window.c (display_buffer_reuse_frames): New variable.
6998 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
6999 frames displaying BUFFER.
52283633 7000 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
ead53494 7001
10b0f752
MB
70022000-08-01 Miles Bader <miles@gnu.org>
7003
7004 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
7005 when to constrain NEW_POS (they were pretty screwed up before).
7006
16425c4a
EZ
70072000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
7008
7009 * msdos.c (run_msdos_command): Save and restore the master
7010 environment, for the case that child_setup signals an error.
7011 When mirroring slashes in DOS shell commands, don't fail when
7012 argv[2] has embedded blanks.
da288c14
EZ
7013 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
7014 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
7015 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
7016
7017 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
7018 using alloca; free it after run_msdos_command returns.
7019
27f73852
DL
70202000-07-27 Dave Love <fx@gnu.org>
7021
52283633
SM
7022 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
7023 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
27f73852
DL
7024
7025 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
7026
c0261b5e
EZ
70272000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
7028
7029 * editfns.c (lisp_time_argument): Fix last change.
7030
b548072f
GM
70312000-07-27 Gerd Moellmann <gerd@gnu.org>
7032
3ab82477
GM
7033 * fns.c (Fdelete): Make it work on vectors and strings in addition
7034 to lists.
7035
b548072f
GM
7036 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
7037 (syms_of_fns): Initialize new variables.
52283633 7038 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
b548072f
GM
7039 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
7040 weakness, with t meaning the same as `key-and-value'.
7041
91ae8751
KH
70422000-07-27 Kenichi Handa <handa@etl.go.jp>
7043
7044 * coding.h (struct coding_system): Member safe_charset deleted.
7045
7046 * coding.c (Qsafe_charsets): This variable deleted.
52283633
SM
7047 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
7048 New variables.
91ae8751
KH
7049 (coding_safe_chars): New function.
7050 (CODING_SAFE_CHAR_P): New macro.
7051 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
52283633 7052 checking safe_charsets member of the coding system. Caller changed.
91ae8751
KH
7053 (detect_coding_iso2022): New local variable safe_chars.
7054 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
7055 safe_charsets member of the coding system.
7056 (decode_coding_iso2022): New local variable safe_chars.
7057 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
7058 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
7059 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
7060 (ENCODE_UNSAFE_CHARACTER): New macro.
7061 (encode_coding_iso2022): New local variable safe_chars. Check
7062 unsafe chars.
7063 (setup_coding_system): Delete the code to initialize
7064 coding->safe_charses
7065 (intersection, find_safe_codings): New functions.
7066 (Ffind_coding_systems_region_internal): New function.
7067 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
7068 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
7069 variable and initialize it.
7070
7071 * fns.c (char_table_ref_and_index): New function.
7072
7073 * lisp.h (char_table_ref_and_index): Add prototype.
7074
34a7a267
SS
70752000-07-26 Sam Steingold <sds@gnu.org>
7076
7077 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 7078 (Ffloat_time): New built-in Lisp function.
34a7a267 7079
a95cb10a
GM
70802000-07-26 Gerd Moellmann <gerd@gnu.org>
7081
3353ef5a
GM
7082 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
7083 for the character code.
7084
7085 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
7086 GNU/Linux.
7087
a95cb10a
GM
7088 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
7089 if called for a popup menu.
7090 (xmenu_show): Store help string in widget values.
7091
b4a12321
DL
70922000-07-26 Dave Love <fx@gnu.org>
7093
7094 * syswait.h: Move some definitions.
7095 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
7096 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
7097 perspicuous definitions.
7098 (WTERMSIG): Fix bit pattern used.
7099
13f5ad37
KH
71002000-07-26 Kenichi Handa <handa@etl.go.jp>
7101
7102 * print.c (print_object): If vector printing is truncated, print
7103 "..." to indicate it as well as the case of list printing.
7104
070fe99c
GM
71052000-07-25 Gerd Moellmann <gerd@gnu.org>
7106
969065c3
GM
7107 * xdisp.c (next_element_from_display_vector): Improve comments.
7108
7109 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
7110 for the character code, and the rest for the face id as in 20.x.
7111 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
7112
7113 * window.c (window_display_table): Cleaned up.
7114
070fe99c
GM
7115 * syntax.c (Fforward_word): Add last arg nil in call of
7116 Fconstrain_to_field.
7117
bad77ef7
EZ
71182000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
7119
969065c3 7120 * fileio.c (Frename_file) [DOS_NT]: If the file names are
52283633
SM
7121 identical but for the letter-case, don't call
7122 barf_or_query_if_file_exists.
bad77ef7 7123
c28da489
MB
71242000-07-25 Miles Bader <miles@gnu.org>
7125
7126 * editfns.c (find_field): Honor special `boundary' fields.
7127 (Qboundary): New variables.
7128 (syms_of_editfns): Initialize Qboundary.
7129 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
7130 Use scan_buffer instead of find_before_next_newline, because it
7131 allows us to detect the boundary case where there's a newline at
7132 the search limit.
7133 * lisp.h (Fconstrain_to_field): Update external declaration.
7134
e3c31fd5
GM
71352000-07-24 Gerd Moellmann <gerd@gnu.org>
7136
7137 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
7138 if that is nil.
c28da489 7139
c66c29a2
DL
71402000-07-24 Dave Love <fx@gnu.org>
7141
7142 * s/sunos4-0.h, s/sol2.h:
7143 (LIBS_TERMCAP): Move from m/sparc.h.
7144
7145 * m/sparc.h (TERMINFO): Moved to system files (probably only
7146 relevant for sunos4 judging by its vintage).
7147 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
7148 __arch64__.
7149
fbe0a958
EZ
71502000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
7151
7152 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
7153 name to single_keymap_panes.
7154
7d88e5c9
AS
71552000-07-24 Andreas Schwab <schwab@suse.de>
7156
7157 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
7158
e024b101
GM
71592000-07-24 Gerd Moellmann <gerd@gnu.org>
7160
7161 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
7162 parameters instead of using int parameters. Expect FN to accept
7163 EMACS_INT parameters.
7164 (display_echo_area, resize_echo_area_axactly, current_message)
7165 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
7166 with new argument list.
7167 (resize_mini_window_1): New callback function.
7168 (current_message_1, truncate_message_1, set_message_1): Change
52283633 7169 parameter lists to the new format expected by with_echo_area_buffer.
e024b101 7170
25c1a9ce
KH
71712000-07-24 Kenichi Handa <handa@etl.go.jp>
7172
7173 * fontset.c (fontset_ref): Remove INLINE declaration.
7174 (fontset_ref_via_base): Likewise.
7175 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
7176 to downcase.
7177
7f987ac0
EZ
71782000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
7179
7180 * msdos.c (IT_note_mouse_highlight): Process overlays in the
7181 correct order of priority. If help echo was found in an overlay,
7182 use that overlay as the object in which the help echo was found.
7183
e2db3069
MB
71842000-07-22 Miles Bader <miles@gnu.org>
7185
7186 * textprop.c (Fprevious_single_char_property_change): The initial
7187 property value should be from the position preceding POSITION, not
7188 following it.
7189
5e3203e4
EZ
71902000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
7191
7192 * coding.c (syms_of_coding): Doc fix for
7193 inhibit-iso-escape-detection.
7194
62145073
GM
71952000-07-21 Gerd Moellmann <gerd@gnu.org>
7196
c20aeb83
GM
7197 * xterm.c (note_mouse_highlight): Process overlays in the right
7198 order of priority.
34a7a267 7199
743934db
GM
7200 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
7201
7202 * xterm.c (note_mouse_highlight): If help-echo was found in an
52283633 7203 overlay, use that overlay as the object in which the help was found.
743934db 7204
d1dc7e43 7205 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 7206
62145073
GM
7207 * window.c (foreach_window): Instead of a fake variable argument
7208 list, take one USER_DATA argument.
7209 (foreach_window_1): Likewise, and call callback functions with two
7210 args, the window and USER_DATA.
7211 (struct check_window_data): New struct.
7212 (check_window_containing): Use it.
7213 (window_from_coordinates): Set up a struct check_window_data for
7214 foreach_window.
7215 (add_window_to_list, freeze_window_start): Change parameters
7216 according to new calling convention.
7217
7218 * window.h (foreach_window): Change prototype.
7219
7220 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
7221
72222000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
7223
7224 * xmenu.c (menu_help_callback): Call show_help_echo with
7225 additional arguments OBJECT and POS.
7226
11270583
KH
72272000-07-21 Kenichi Handa <handa@etl.go.jp>
7228
07b14857
KH
7229 * data.c (Faset): Allow storing any multibyte character in a
7230 string. Convert unibyte string to multibyte if necessary.
7231
11270583
KH
7232 * xfns.c (x_encode_text): New function.
7233 (x_set_name): Use x_encode_text.
7234 (x_set_title): Likewise.
7235
7236 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
7237
7238 * xterm.h (x_encode_text): Add prototype.
7239
bc75b4fd
DL
72402000-07-20 Dave Love <fx@gnu.org>
7241
7242 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
7243 xfree, not free.
7244
48c14970
EZ
72452000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
7246
7247 * msdos.c (help_echo_window): New variable.
7248 (syms_of_msdos): Initialize and staticpro it.
7249 (IT_note_mode_line_highlight): Set help_echo_window.
7250 (IT_note_mouse_highlight): Ditto.
7251 (dos_rawgetc): Store help_echo_window in the second event produced
7252 for HELP_EVENTs.
7253
7254 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
7255 Record the object that generated the help echo and the position of
7256 that object in help_echo_object and help_echo_pos. Record that
7257 some glyphs in a row are displayed in mouse-face.
7258 (IT_update_begin): Don't clear mouse highlight unless one of the
7259 enabled glyph rows is marked as being displayed in mouse-face.
7260 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
7261 and position recorded in help_echo_object and help_echo_pos to the
7262 event queue.
7263 (IT_menu_display): Accept a new argument PN: the pane number of
7264 the current menu pane. Record the pane number and the item
7265 number of the item which has associated help string.
7266 (XMenuActivate): Update the prototype for help_callback in
7267 function declaration. Call IT_menu_display with the current menu
7268 pane number as an additional argument. Call help_callback with
7269 two additional arguments: the pane number and the item number of
7270 the menu item associated with the help text.
7271 (help_echo_object, help_echo_pos): New variables.
7272 (syms_of_msdos): Initialize them and staticpro help_echo_object.
7273
7274 * msdos.h (XMenuActivate): Update prototype.
7275
4279296d
GM
72762000-07-19 Gerd Moellmann <gerd@gnu.org>
7277
47db06aa
GM
7278 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
7279 Add some more prototypes.
7280
7281 * xterm.c, xterm.h: Add some more prototypes.
7282
7283 * lisp.h (Fnext_single_char_property_change): Add prototype.
7284
7285 * dispnew.c (direct_output_for_insert): Remove confusing
7286 outer local variable mouse_face_overwritten_p.
7287 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
7288
4279296d
GM
7289 * alloc.c (allocate_string_data): Don't copy old string contents.
7290
670acd62
KH
72912000-07-19 Kenichi Handa <handa@etl.go.jp>
7292
7293 * coding.c (code_convert_region): Delete text properties before
7294 shrinking the conversion region.
7295
7cea38bc
GM
72962000-07-18 Gerd Moellmann <gerd@gnu.org>
7297
dc1cac59
GM
7298 * dispnew.c (update_text_area): Write the whole row if it
7299 has mouse-face in it.
7300
85a8aca9
GM
7301 * xfaces.c (face-alternative-font-family-alist): Remove
7302 DEFVAR_LISP; staticpro instead.
7303
34a7a267 7304 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
7305 new arguments.
7306
7307 * keyboard.c (show_help_echo): Add parameter WINDOW.
7308 (read_char): Call show_help_echo with window extracted from Lisp
7309 help event.
7310 (gen_help_event): Add parameter WINDOW.
7311
7312 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
7313
7314 * xterm.c (help_echo_window): New variable.
52283633 7315 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
7cea38bc
GM
7316 (XTread_socket): Pass help_echo_window to gen_help_event.
7317 (syms_of_xterm): Initialize and staticpro help_echo_window.
7318
f8276b77
DL
73192000-07-18 Dave Love <fx@gnu.org>
7320
52283633 7321 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
f8276b77 7322
088831a6
GM
73232000-07-18 Gerd Moellmann <gerd@gnu.org>
7324
3d6cd763
GM
7325 * alloc.c (allocate_string_data): If string had already data
7326 assigned, copy old contents to new string data.
7327
7328 * coding.c (syms_of_coding): Fix typo in spelling of variable
7329 `inhibit-iso-escape-detection'.
7330
088831a6
GM
7331 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
7332
7333 * Makefile.in: Add dependencies on dispextern.h.
7334 (alloca.o): Don't define malloc and define EMACS_FREE instead of
7335 `free'; both can conflict with system header files.
7336
bc8a8d55
KH
73372000-07-18 Kenichi Handa <handa@etl.go.jp>
7338
7339 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
7340 undefined.
7341
069f5950
DL
73422000-07-18 Dave Love <fx@gnu.org>
7343
7344 * window.c (Fwindow_list): Declare arg `window'.
7345
aa96c820
KH
73462000-07-18 Kenichi Handa <handa@etl.go.jp>
7347
7348 * coding.c (setup_coding_system): Don't override the explicitly
7349 specified designations.
7350
06be8d32
MB
73512000-07-15 Miles Bader <miles@gnu.org>
7352
7353 * editfns.c (char_property_eq, char_property_stickiness): Renamed
7354 from `text_property_eq' and `text_property_stickiness', respectively.
7355 (find_field, Fconstrain_to_field, char_property_eq)
7356 (char_property_stickiness): Changed to call char-property functions
7357 instead of text-property-only ones.
7358
7359 * textprop.c (Fnext_single_char_property_change): Made a subr (was
7360 `next_single_char_property_change'). Do more error checking, and
7361 cleanup limit behavior.
7362 (Fprevious_single_char_property_change): New function.
7363 (syms_of_textprop): Initialize new subrs.
7364
7365 * xdisp.c (display_prop_end, invisible_text_between_p):
7366 Call Fnext_single_char_property_change instead of
7367 next_single_char_property_change.
7368
3fddcdc3
JR
73692000-07-15 Jason Rumney <jasonr@gnu.org>
7370
7371 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
7372 after menu is finished with.
7373 (add_menu_item): Only consider wv->title as a menu title.
7374 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
7375
7376 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
7377 null title.
7378 (FONT_REGEXP): Remove unused macro, and its sub-components.
7379 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
7380
7381 * w32term.c (help_echo_object, help_echo_pos): New variables.
7382 (note_mode_line_highlight): Store additional information about the
7383 help-echo in help_echo_object and help_echo_pos. Check both
7384 `local-map' and `keymap' properties for changing the cursor
7385 (note_mouse_highlight): Store additional information about the
7386 help-echo in help_echo_object and help_echo_pos.
7387 (note_tool_bar_highlight): Set help_echo_object to nil and
7388 help_echo_pos to -1.
7389 (w32_read_socket): Use gen_help_event instead of filling
7390 input_events manually.
7391 (syms_of_w32term): Staticpro help_echo_object.
7392 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
52283633 7393 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
3fddcdc3
JR
7394 (x_clear_mouse_face): New function.
7395 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
7396 (x_update_window_begin): No need to turn off the mouse
7397 highlight here.
7398 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 7399 depending on whether they contain glyphs highlighted in mouse-face.
3fddcdc3
JR
7400 (x_fill_stretch_glyph_string): Consume runs of stretch
7401 glyphs instead of a single one.
7402 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
7403 with new argument list.
7404 (x_set_glyph_string_gc): Make sure the face's GC is valid.
7405 (x_append_glyph, x_append_composite_glyph)
7406 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
7407 changes in struct glyph starting 1999-12-27. See comments for
7408 xterm.c on 2000-07-05.
7409
178c5d9c
SS
74102000-07-14 Sam Steingold <sds@gnu.org>
7411
7412 * xfaces.c (realize_x_face): Fix the last patch:
7413 check `default_face' before dereferencing.
7414
6fe533f6
DL
74152000-07-14 Dave Love <fx@gnu.org>
7416
069f5950 7417 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 7418
dd7b81cf
KH
74192000-07-14 Kenichi Handa <handa@etl.go.jp>
7420
0693904a 7421 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 7422 default_face's fontset, not using the default fontset.
0693904a 7423
dd7b81cf
KH
7424 * coding.c (inhibit_iso_escape_detection): New variable.
7425 (syms_of_coding): Make it a Lisp variable.
7426 (detect_coding_iso2022): If inhibit_iso_escape_detection is
7427 nonzero, ignore ISO2022's escape sequence.
7428
d5aa31d8
GM
74292000-07-14 Gerd Moellmann <gerd@gnu.org>
7430
e5acf0ca
GM
7431 * alloca.c (malloc) [emacs]: Define as xmalloc.
7432
bd23a692
GM
7433 * xfns.c (Fx_show_tip): If frame parameters contain a position,
7434 use that instead of the mouse position. Add parameters DX and DY.
7435
7436 * dispextern.h (Fx_show_tip): Adjust number of parameters
7437 in prototype.
7438
9662da0b
GM
7439 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
7440 if HELP is a function, call it with OBJECT and POS as parameters
7441 to get the help to display.
7442 (gen_help_event, kbd_buffer_store_help_event): New functions.
7443 (kbd_buffer_get_event): Construct the Lisp help-event differently.
7444 (read_char): Call show_help_echo with new parameters.
7445
178c5d9c 7446 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
7447 Add prototypes.
7448
7449 * xterm.c (help_echo_object, help_echo_pos): New variables.
7450 (note_mode_line_highlight): Store additional information about the
7451 help-echo in help_echo_object and help_echo_pos. Check both
7452 `local-map' and `keymap' properties for changing the cursor
7453 (note_mouse_highlight): Store additional information about the
7454 help-echo in help_echo_object and help_echo_pos.
7455 (note_tool_bar_highlight): Set help_echo_object to nil and
7456 help_echo_pos to -1.
7457 (XTread_socket): Use gen_help_event instead of filling
7458 input_events manually.
7459 (syms_of_xterm): Staticpro help_echo_object.
7460
7461 * xmenu.c (menu_highlight_callback): Use
7462 kbd_buffer_store_help_event instead of setting up and input_event
7463 structure manually.
7464
7465 * xdisp.c (eval_form): GCPRO argument sexpr.
7466 (call_function): New function.
7467 (handle_single_display_prop): Use call_function and FUNCTIONP
7468 instead of checking whether if font_height is a symbol and
7469 using eval_form.
7470
7471 * eval.c (internal_condition_case_2): New function.
7472
7473 * lisp.h (FUNCTIONP): New macro.
7474 (internal_condition_case_2, call_function): Add prototypes.
7475
d5aa31d8
GM
7476 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
7477 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
7478 Always set `arg' member of input_events.
7479 (construct_menu_click): Unused function removed.
7480
7481 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
7482
7483 * w32term.c (construct_mouse_click, construct_mouse_wheel)
7484 (construct_drag_n_drop, x_scroll_bar_handle_click)
7485 (w32_read_socket): Always set `arg' member of input_events.
7486
7487 * keyboard.c (show_help_echo): Use eval_form. Add comment.
7488
7489 * lisp.h (eval_form): Add prototype.
7490
7491 * xdisp.c (eval_form): Make it externally visible.
7492
0f1a9b23
GM
74932000-07-13 Gerd Moellmann <gerd@gnu.org>
7494
7495 * xterm.c (x_handle_tool_bar_click): Store the frame in the
7496 frame_or_window slot of TOOL_BAR_EVENT input events instead of
7497 consing. For prefix events, store the frame in the `arg' slot of
7498 the event, otherwise store the key there.
7499 (XTread_socket): Instead of consing, use the frame_or_window slot
52283633 7500 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
0f1a9b23
GM
7501
7502 * xmenu.c (menu_highlight_callback): Store help string in the
7503 `arg' member of the input event; don't cons.
7504 (menubar_selection_callback): Use the `arg' slot of input events
7505 to queue additional information, instead of consing.
7506
7507 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
7508
7509 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
7510 TOOL_BAR_EVENTs.
7511 (w32_read_socket): Adapt to changes in HELP_EVENTs.
7512
7513 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
7514 input events to queue additional information, instead of consing.
7515
7516 * keyboard.c (kbd_buffer_gcpro): Renamed from
7517 kbd_buffer_frame_or_window. Now used for all Lisp objects
7518 referenced from the input queue.
7519 (kbd_buffer_store_event): Always use structure assignment for
7520 copying input events. Record all Lisp objects referenced from
7521 events in kbd_buffer_gcpro.
7522 (kbd_buffer_get_event): Construct Lisp `help-echo' events
7523 differently from input events. Test for prefix menu_bar_events
7524 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
7525 event in kbd_buffer_gcpro to nil.
7526 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
7527 frame_or_window is equal to its arg member as prefix events.
7528 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
7529 used by an input event to nil.
7530 (init_keyboard): Use two times the size of the input queue
7531 for kbd_buffer_gcpro.
7532 (syms_of_keyboard): Likewise.
7533
52283633
SM
7534 * emacs.c (handle_USR2_signal, handle_USR1_signal):
7535 Use USER_SIGNAL_EVENT.
0f1a9b23
GM
7536
7537 * termhooks.h (struct input_event): Add member `arg'.
7538 (MENU_BAR_EVENT): Renamed from menu_bar_event.
7539 (USER_SIGNAL_EVENT): Renamed from user_signal.
7540
7541 * xfaces.c (ASET): Remove definition.
7542
7543 * lisp.h (AREF, ASET, ASIZE): New macros.
7544
7545 * fontset.c (AREF, ASIZE): Remove definitions.
7546
7547 * fns.c (AREF): Remove definition.
178c5d9c 7548
0f1a9b23
GM
7549 * composite.c (AREF): Remove definition.
7550
712eaef2
GM
75512000-07-12 Gerd Moellmann <gerd@gnu.org>
7552
d8ee7803
GM
7553 * dispnew.c (redraw_overlapped_rows): Add missing local.
7554 (scrolling_window): Remove debug code.
7555
712eaef2
GM
7556 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
7557 Before scrolling, turn off a mouse-highlight in the window
7558 being scrolled.
7559
7560 * xterm.c (x_update_window_end): Add parameter
7561 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
7562 redisplay in XTframe_up_to_date.
7563 (x_clear_mouse_face): New function.
7564 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
7565
7566 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
7567 current glyph row.
7568 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
7569 it when any row is written to that contains glyphs highlighted in
7570 mouse-face.
7571 (update_window): Call the window update end hook with new
7572 parameter MOUSE_FACE_OVERWRITTEN_P.
7573 (direct_output_for_insert): Give up if row contains mouse-face.
7574
7575 * dispextern.h (struct redisplay_interface): Add parameter
7576 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
7577 (clear_mouse_face): New function pointer member.
7578
02010917
SM
75792000-07-11 Stefan Monnier <monnier@cs.yale.edu>
7580
7581 * syntax.c (back_comment): Use one switch rather than a few `if's.
7582 Obey open_paren_in_column_0_is_defun_start.
7583 When reverting to the `slow' method, try to nicely handle the case
7584 of nested comments by checking that the comment-starter we found
7585 does indeed match the comment-ender.
7586 (scan_sexps_forward, scan_sexps_forward):
7587 Ignore excessive opening parenthesis rather than throwing an error.
7588
d76c03ea
GM
75892000-07-11 Gerd Moellmann <gerd@gnu.org>
7590
7591 * doc.c (Fsubstitute_command_keys): Handle case that a GC
7592 in Fwhere_is_internal or get_keymap_1 relocates string contents.
7593
7594 * dispnew.c (direct_output_forward_char): Give up if currently
7595 displaying a message instead of the minibuffer contents.
7596
7597 * xterm.c (x_update_window_begin): No need to turn off the mouse
7598 highlight here.
7599 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 7600 depending on whether they contain glyphs highlighted in mouse-face.
d76c03ea
GM
7601
7602 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
7603 compare the mouse_face_p flags of both rows.
7604
7605 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
7606
d55ead18
EZ
76072000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
7608
7609 * keyboard.c (show_help_echo): Accept additional parameter
7610 ok_to_overwrite_keystroke_echo.
7611 (read_char): Call show_help_echo with a zero
7612 ok_to_overwrite_keystroke_echo argument.
52283633 7613 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
d55ead18
EZ
7614 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
7615 ok_to_overwrite_keystroke_echo argument.
7616 * w32menu.c (w32_menu_display_help): Call show_help_echo with
7617 non-zero ok_to_overwrite_keystroke_echo argument.
7618
df75b1a3
GM
76192000-07-10 Gerd Moellmann <gerd@gnu.org>
7620
4b92c49a
GM
7621 * xdisp.c (try_window_id): If changes are all below what is
7622 displayed in the window, and point is in the window, we still
7623 might have to find point on the display.
7624
7625 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
7626 glyphs instead of a single one.
7627 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
7628 with new argument list.
7629 (x_set_glyph_string_gc): Make sure the face's GC is valid.
7630
df75b1a3
GM
7631 * keymap.c (get_keymap_1): Add comment that this function can GC.
7632 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
7633 comment that functions can GC.
7634 (Fset_keymap_parent): GCPRO arg KEYMAP.
7635
4314cf3e
EZ
76362000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
7637
7638 * msdos.c (XMenuActivate): After exiting the menu, restore the
7639 echo area message and erase it.
7640
ab49ce15
KH
76412000-07-10 Kenichi Handa <handa@etl.go.jp>
7642
7643 * fontset.c (Ffontset_info): Make the return value more compatible
7644 with that of Emacs 20.
7645
090a072f
GM
76462000-07-07 Gerd Moellmann <gerd@gnu.org>
7647
7648 * eval.c (Fsignal): Handle case that backtrace_list is null.
7649
f92de4a6
KH
76502000-07-07 Kenichi Handa <handa@etl.go.jp>
7651
7652 * ccl.c (Fccl_execute): Typo fixed.
7653
dd8888a1
GM
76542000-07-06 Gerd Moellmann <gerd@gnu.org>
7655
e5c81191 7656 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 7657
dd8888a1
GM
7658 * window.c (Fwindow_list): Reverse list at the end.
7659 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
7660 means allow windows on OWINDOW's frame, only.
7661 (window_loop): Simplified; use Fwindow_list.
7662
7663 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
7664
485266d0
GM
76652000-07-05 Gerd Moellmann <gerd@gnu.org>
7666
7667 * xterm.c (XTread_socket): Increment handling_signal at the start,
7668 decrement it at the end.
7669
7670 * eval.c (handling_signal): New variable.
7671 (Fsignal): Abort if handling_signal is non-zero.
7672
7673 * lisp.h (handling_signal): External declaration.
178c5d9c 7674
485266d0
GM
7675 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
7676
80fcd514
KR
76772000-07-05 Ken Raeburn <raeburn@gnu.org>
7678
7679 Sound support for NetBSD through "Linux emulation" support:
7680 * config.in (HAVE_SOUNDCARD_H): Undef.
7681 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
7682 * Makefile.in (LIBSOUND): New variable.
7683 (LIBES): Include it.
52283633
SM
7684 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
7685 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
80fcd514
KR
7686 (vox_open): Use DEFAULT_SOUND_DEVICE.
7687 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
7688
d5c5cddd
GM
76892000-07-05 Gerd Moellmann <gerd@gnu.org>
7690
7691 * print.c (print_error_message): If Vsignaling_function is set,
7692 show it in *Messages*.
7693
7694 * lisp.h (Vsignaling_function): External declaration.
7695
7696 * eval.c (Vsignaling_function): New variable.
7697 (Fsignal): Compute it.
7698 (syms_of_eval): Staticpro it.
7699
65171e3a
DL
77002000-07-05 Dave Love <fx@gnu.org>
7701
7702 * syswait.h: Use the autoconf recommended approach. Old code
7703 #if'd out in case we need to revert.
7704
178c5d9c 7705 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 7706
e2c46326
AI
77072000-07-05 Andrew Innes <andrewi@gnu.org>
7708
7709 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
7710 when non-NULL instead of __morecore, to take account of buffer
7711 memory. This also solves a problem with spurious memory warnings
7712 on Windows.
7713
7714 * ralloc.c: Make real_morecore non-static.
7715
7716 * eval.c (internal_condition_case): Comment out abort if
7717 interrupt_input_blocked is not zero.
7718
7719 * makefile.nt: Add support for `bootstrap' and related targets.
7720 Include minimal debug info in emacs.exe in release build.
7721 Remove all dependencies on lisp.h, and fixup some others.
7722
7723 * w32.c (init_environment): Install code from 20.7 for providing
7724 default values for environment variables, based on the
7725 executable's own location.
52283633 7726 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
e2c46326
AI
7727 (sys_socket): Install socket inheritance bug fix from 20.7.
7728
7729 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
7730 here via blockinput.h).
7731
a027a91b
SM
77322000-07-05 Stefan Monnier <monnier@cs.yale.edu>
7733
e4b31601
SM
7734 * w32menu.c (w32_menu_display_help):
7735 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
7736
7737 * keyboard.h (show_help_echo): Declare.
7738
7739 * keyboard.c (show_help_echo): New function, extracted from read_char.
7740 Feval its `msg' argument if it's a cons cell.
7741 (read_char): Use it.
4cf8d9d5 7742 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 7743
178c5d9c 7744 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 7745 (note_tool_bar_highlight, XTread_socket):
178c5d9c 7746 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
7747 (dos_rawgetc):
7748 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
7749 (note_tool_bar_highlight, w32_read_socket):
7750 Do not gratuitously ignore non-string `help-echo' properties.
7751
88d75730
GM
77522000-07-05 Gerd Moellmann <gerd@gnu.org>
7753
969f7e79
GM
7754 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
7755
71201b00
GM
7756 * window.c (delete_all_subwindows): Reset Vwindow_list.
7757
88d75730
GM
7758 * xterm.c (x_append_glyph, x_append_composite_glyph)
7759 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
7760 changes in struct glyph starting 1999-12-27. Some bit-fields of
7761 struct glyph were not set, which made glyphs unequal when compared
7762 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
7763 effects were the result. This also depended on the contents of
7764 memory returned by xmalloc. If flickering happens again, activate
7765 the code in clear_glyph_row that's in #if 0. If the flickering is
52283633 7766 gone with that, chances are that it is caused by something similar.
88d75730
GM
7767
7768 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 7769
88d75730
GM
7770 * dispextern.h: Add some comments.
7771
7772 * window.c (add_window_to_list): Add parameter LIST.
7773 (window_list): Order list so that, for each frame, windows are
7774 in canonical order, and so that frames appear in the list in
7775 the order given by Vframe_list.
7776 (next_window): Reverse the handling of NEXT_P.
7777
53654733
GM
77782000-07-04 Gerd Moellmann <gerd@gnu.org>
7779
87efd256
GM
7780 * window.c (Vwindow_list): New variable.
7781 (make_window, delete_window): Set Vwindow_list to nil.
7782 (check_window_containing): New function.
7783 (window_from_coordinates): Rewritten.
7784 (add_window_to_list, window_list, candidate_window_p)
7785 (decode_next_window_args, next_window): New functions.
52283633 7786 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
87efd256
GM
7787 (Fwindow_list): New function.
7788 (Fother_window): Cleaned up.
7789 (foreach_window): Add a longer "variable argument list". Let
7790 callback function return 0 to indicate that cycling over windows
7791 should stop.
7792 (foreach_window_1): Likewise.
7793 (freeze_window_start): Return int.
7794 (init_window): New function.
7795 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
7796
7797 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
7798 input_event with bzero.
7799 (main): Call init_window.
7800
53654733
GM
7801 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
7802 a menu filter.
7803
4a8c194f
KH
78042000-07-04 Kenichi Handa <handa@etl.go.jp>
7805
7806 * composite.h (make_composition_value_copy): Extern it.
7807
7808 * composite.c (make_composition_value_copy): New function.
7809
7810 * editfns.c (Fformat): While copying text properties, make each
7811 composition property value a copy.
7812
7813 * fns.c (concat): While copying text properties, make each
7814 composition property value a copy.
7815
831a6cb0
GM
78162000-07-03 Gerd Moellmann <gerd@gnu.org>
7817
2f516940
GM
7818 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
7819
178c5d9c 7820 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
7821 marked already.
7822
831a6cb0
GM
7823 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
7824 include those frames as candidates which have their focus
7825 redirected to the minibuffer frame.
7826
d9c4f922
SM
78272000-07-03 Stefan Monnier <monnier@cs.yale.edu>
7828
7829 * fns.c (Fputhash): Return `value' rather than nil.
7830
3780bc22
GM
78312000-06-30 Gerd Moellmann <gerd@gnu.org>
7832
97d176db
GM
7833 * frame.c (next_frame): Don't check focus redirection in case
7834 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
7835 unless their focus is redirected, which contradicts the
7836 specification of next-frame, and leads to infinite loops in
7837 certain situations when cycling through windows with next-window.
7838
dca9961d
KH
78392000-06-30 Kenichi Handa <handa@etl.go.jp>
7840
7841 * coding.c (code_convert_region): Even if the length of text is
7842 zero, try to convert it if coding->type is coding_type_ccl.
7843 (decode_coding_string, encode_coding_string): Likewise.
7844
d5483ab1
GM
78452000-06-28 Gerd Moellmann <gerd@gnu.org>
7846
af5c25e1 7847 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 7848 the display if windows_or_buffers_changed.
af5c25e1
GM
7849
7850 * dispnew.c (struct row_entry): New structure.
7851 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
7852 (row_table_size, old_lines, new_lines, old_lines_size)
7853 (new_lines_size, run_pool, runs_size, runs): New variables.
7854 (add_row_entry): New function.
7855 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 7856 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
7857 holding them in local variables. Use a larger hash table whose
7858 size depends on glyph matrix sizes. Don't use bzero to clear the
7859 hash table; instead, clear used slots only.
7860
7861 * fns.c (next_almost_prime): Make it externally visible.
7862
7863 * lisp.h (next_almost_prime): Add prototype.
7864
d5483ab1
GM
7865 * s/isc4-0.h (sigunblock): Define.
7866
7867 * s/sco5.h (sigunblock): Define.
7868
93e40f40
DL
78692000-06-27 Dave Love <fx@gnu.org>
7870
7871 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
7872 (moved to osf5-0.h).
7873 [!NOT_C_CODE]: Protect string.h stuff.
7874
7875 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
7876 (sys_siglist, NSIG): Definitions moved here from osf1.h.
7877
3c4b7685
GM
78782000-06-27 Gerd Moellmann <gerd@gnu.org>
7879
97d176db 7880 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
7881 below the last line from the needed window height.
7882
32cad0aa
SM
78832000-06-26 Stefan Monnier <monnier@cs.yale.edu>
7884
7885 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
7886 (Fwidget_get): Use it.
7887 (syms_of_fns): Defsubr it.
7888
2c69ced2
GM
78892000-06-26 Gerd Moellmann <gerd@gnu.org>
7890
178c5d9c 7891 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
7892 display info for XIM.
7893 (xim_open_dpy): Likewise.
7894 (xim_close_dpy): Don't free the display info's XIM.
7895
7896 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
7897
7898 * config.in (USE_XIM): New define.
7899
3fc720e4
GM
7900 * keymap.c (get_keyelt): For menu-items containing a `:filter
7901 FILTER', apply FILTER to the menu-item's definition to get the
7902 real definition to use.
7903
7904 * lisp.h (QCfilter): External declaration.
7905
2c69ced2
GM
7906 * xfns.c (Fimage_size): New function.
7907 (syms_of_xfns): Defsubr it.
7908
f978b2a2
AS
79092000-06-26 Andreas Schwab <schwab@suse.de>
7910
7911 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
7912 Fstring_as_unibyte.
7913
94cc7892
DL
79142000-06-25 Dave Love <fx@gnu.org>
7915
52283633 7916 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
94cc7892
DL
7917
7918 * Makefile.in (blockinput.h): Depend on atimer.h.
7919 (atimer.h): Depend on systime.h.
7920
52283633 7921 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
94cc7892 7922
52283633 7923 * atimer.h: Protect against multiple inclusion. Include systime.h.
94cc7892
DL
7924
7925 * lisp.h (swap_in_global_binding): Declare.
7926
b8c24556
KR
79272000-06-24 Ken Raeburn <raeburn@gnu.org>
7928
7929 * process.c (Fopen_network_stream): Turn off atimers for duration
7930 of call to connect. (Patch from Gerd.)
7931
8cf8560b
DL
79322000-06-23 Dave Love <fx@gnu.org>
7933
511c7541
DL
7934 * ralloc.c: Maybe include unistd.h
7935
8cf8560b
DL
7936 * emacs.c (setgrp): Undefine before defining.
7937 (malloc_warning, set_time_zone_rule, index): Prototype.
7938
7939 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
7940 HAVE_STRUCT_TIMEZONE.
7941
7942 * s/osf1.h: Move string.h hack here from alpha.h and make it
7943 conditional.
7944 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
7945 _XOPEN_SOURCE.
7946 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
7947 (SOCKLEN_TYPE): Don't define.
7948
7949 * m/alpha.h: Remove string.h hack.
7950
7951 * s/osf5-0.h: New file.
7952
7953 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
7954 include time.h, done by systime.h.
7955 [__FreeBSD__]: Remove redundant includes.
7956
3fc720e4 7957 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
7958 (delete_temp_file): Return Qnil to avoid warning.
7959
7960 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
7961
7962 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
7963 HAVE_X_WINDOWS.
7964
7965 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
7966
7967 * composite.h (compose_text): Declare.
7968
7969 * xterm.c: Don't include sys/types.h unconditionally. Don't
7970 protect its inclusion with !USG (following xmenu.c).
7971
ea055732
GM
79722000-06-23 Gerd Moellmann <gerd@gnu.org>
7973
7974 * xfns.c (x_create_tip_frame): Initialize frame's colors like
7975 in x_create_frame.
7976
74b01b80
EZ
79772000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
7978
7979 * coding.c (decode_eol_post_ccl): Special handling for undecided
7980 and inconsistent EOL types.
7981
64f3a166
GM
79822000-06-22 Gerd Moellmann <gerd@gnu.org>
7983
16cf31f7
GM
7984 * xrdb.c (x_load_resources): Add default resource for scroll bar's
7985 trough color and main window's background color.
7986
52283633 7987 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
16cf31f7
GM
7988
7989 * xterm.h (Xt_app_con): External declaration.
7990
7991 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 7992
486a103d
GM
7993 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
7994
64f3a166
GM
7995 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
7996 (handle_invisible_prop): Record the start of invisible text in
7997 it->add_overlay_start.
7998 (struct overlay_entry): Add member `overlay'.
7999 (handle_overlay_change): Simplify.
8000 (next_overlay_string): After having processed overlay strings at the
8001 end of the buffer, record that fact in
8002 it->overlay_strings_at_end_processed_p.
8003 (compare_overlay_entries): If before- and after-strings come
8004 from the same overlay, let before-strings come first.
8005 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
8006 (load_overlay_strings): Take it->add_overlay_start into account
8007 when adding overlay strings.
8008
8009 * dispextern.h (struct it): Add member add_overlay_start.
8010
bb746ea6
DL
80112000-06-22 Dave Love <fx@gnu.org>
8012
8013 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
8014
8015 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
8016
a8f573f3
KH
80172000-06-22 Kenichi Handa <handa@etl.go.jp>
8018
8019 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
8020 is greater than 0.
8021
9f2bbc92
DL
80222000-06-21 Dave Love <fx@gnu.org>
8023
178c5d9c 8024 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 8025
3ee5041c
SM
80262000-06-21 Stefan Monnier <monnier@cs.yale.edu>
8027
8028 * syntax.c (back_comment): Simplify string-parity counting (with
8029 the added benefit of handling multiple string-styles as long as
8030 they are not intertwined).
8031 Jump to the slow code as soon as a comment starter is found in
8032 a "string_lossage" position. Fixes the case: " /* " /* " */.
8033
4c343001
DL
80342000-06-21 Dave Love <fx@gnu.org>
8035
8036 * Makefile.in: Use GETLOADAVG_LIBS.
8037
8038 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
8039 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
8040
e6365855
SM
80412000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8042
8043 * syntax.c (describe_syntax): Recognize the `n'estable bit.
8044 (Fforward_comment, scan_lists):
8045 Check the comstyle of single-char comment-starters.
8046 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
8047 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
8048 Check the comstyle of single-char comment-starters.
8049 Clarify control-flow around the Scomment case.
e6365855 8050
5700d2cc
DL
80512000-06-20 Dave Love <fx@gnu.org>
8052
d355bd8a
SM
8053 * fns.c (make_hash_table, maybe_resize_hash_table):
8054 Cast arg of next_almost_prime.
5700d2cc 8055
178c5d9c 8056 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
8057
8058 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
8059 and unistd.h.
8060
4a27bdfb
GM
80612000-06-20 Gerd Moellmann <gerd@gnu.org>
8062
a61d762c 8063 * keyboard.c (adjust_point_for_property): Check if display
52283633 8064 property should be treated as intangible by looking at its value.
a61d762c 8065
178c5d9c 8066 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
8067 (display_prop_intangible_p): New functions.
8068
8069 * dispextern.h (display_prop_intangible_p): Add prototype.
8070
8071 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 8072
4a27bdfb
GM
8073 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
8074 argument to sigprocmask.
8075
8076 * s/sco5.h (sigblock): Redefined to pass a pointer as second
8077 argument to sigprocmask.
8078
8079 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
8080 sigprocmask_set, and pass a pointer to it to sigprocmask.
8081
8082 * sysdep.c (sigprocmask_set): New variable.
8083
8084 * fileio.c (make_temp_name): Don't use `%s' in string passed to
8085 report_file_error.
8086
427ec082
SS
80872000-06-20 Sam Steingold <sds@gnu.org>
8088
8089 * xrdb.c: Don't declare xmalloc, xrealloc.
8090
8972fe79 80912000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
8092
8093 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
8094 (re_comp): Cast gettext return value to avoid complaints when
8095 !HAVE_LIBINTL.
8096
074b6efe
DL
80972000-06-20 Dave Love <fx@gnu.org>
8098
52283633 8099 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
f85c008a 8100
5700d2cc 8101 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 8102
d355bd8a 8103 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
8104
8105 * m/alpha.h: Don't declare xmalloc, xrealloc.
8106
0af4f205
DL
8107 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
8108
8109 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
8110
8111 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
8112
8113 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
8114 HAVE_GETWD.
8115
074b6efe
DL
8116 * keyboard.h (poll_for_input_1): Declare.
8117
8118 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
8119
8120 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
8121
8122 * doprnt.c: Don't declare xmalloc, xrealloc.
8123
8124 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
8125 (getenv, ctime, getwd): Removed.
8126 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
8127
8128 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
8129 x_set_tool_bar_lines.
8130
8131 * config.in: Add HAVE_GETWD. Move some definitions above
8132 machine/system includes.
8133
68a5e97b
KH
81342000-06-20 Kenichi Handa <handa@etl.go.jp>
8135
95417e1e
KH
8136 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
8137
68a5e97b
KH
8138 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
8139 contain information about ENCODING.
8140
8141 * fontset.c (FONTSET_ASCII): Use the first element of char table
8142 for an ASCII font, not defalt slot.
8143 (fontset_ref_via_base): If FONTSET doesn't contain information for
8144 C, try the default fontset.
8145 (make_fontset): Don't copy the default fontset.
8146 (fontset_font_pattern): Likewise.
8147 (accumulate_font_info): If ELT is nil, use the corresponding
8148 element in the default fontset.
8149
3b4fa1b2
DL
81502000-06-19 Dave Love <fx@gnu.org>
8151
943e731c
DL
8152 * syntax.c (Fparse_partial_sexp): Doc fix.
8153
8154 * regex.h: Test PROTOTYPES as well as __STDC__.
8155
3b4fa1b2
DL
8156 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
8157 errno, strerror. Put text after #endif in comment.
8158
52283633 8159 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
3b4fa1b2
DL
8160
8161 * xterm.c (x_frame_of_widget): Likewise.
8162
cdf0357b
GM
81632000-06-19 Gerd Moellmann <gerd@gnu.org>
8164
8165 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
8166 to Vfundamental_mode_abbrev_table.
8167
8168 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
8169 bogus objects are marked. This slows down GC by ~80 percent, but
8170 it might be worth trying when debugging GC-related problems.
8171 This feature requires conservative stack marking to be enabled.
8172
8173 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
8174 returns XLookupChars, reset `modifiers' to zero.
8175
998e9f8c
DL
81762000-06-19 Dave Love <fx@gnu.org>
8177
8178 * mktime.c: Unprotoized.
8179
18e21ce8 81802000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
8181
8182 * data.c (set_internal): If variable is frame-local,
8183 store the new value immediately into the frame parameter alist.
8184
140c4ac6
KR
81852000-06-19 Ken Raeburn <raeburn@gnu.org>
8186
14358466
KR
8187 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
8188 in the custom handler pointer.
8189
140c4ac6
KR
8190 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
8191 value, or checks for CHAR_META can fail when Lisp_Object is a
8192 union type.
8193 * keymap.c (get_keyelt): Likewise.
8194
10d7bf84
KH
81952000-06-19 Kenichi Handa <handa@etl.go.jp>
8196
8197 * ccl.h (struct ccl_program): New member eol_type.
8198 (struct ccl_spec): New member cr_carryover.
8199
8200 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
8201 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
8202
8203 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
8204 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
8205 (decode_eol_post_ccl): New function.
8206 (decode_coding): Don't detect EOL format here for CCL based coding
8207 systems.
8208 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
8209 decode_eol_post_ccl after running the CCL program.
8210 (code_convert_region): Don't detect EOL format here for CCL based
8211 coding systems.
8212 (decode_coding_string): Likewise.
8213
52e386c2
KR
82142000-06-18 Ken Raeburn <raeburn@gnu.org>
8215
8216 * charset.c (update_charset_table): Use XINT on "iso_final_char"
8217 when treating it as an integer.
8218
8219 * coding.h (encode_coding_string): Declare.
8220
8221 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
8222 it as an integer.
8223
8224 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
8225 "xkeymap" to avoid shadowing the "enum map_type" value that needs
8226 to be passed to get_local_map.
8227
8228 * sound.c (Fplay_sound): Don't call make_number on
8229 Frun_hook_with_args count argument.
8230
8231 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
8232 for lisp objects in X event structure data field, when lisp
8233 objects are represented with unions.
8234 (x_scroll_bar_to_input_event): Ditto.
8235
b357b9d4
KR
82362000-06-16 Ken Raeburn <raeburn@gnu.org>
8237
8238 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
8239 termination of string. Fix sense of test whether
8240 Vline_number_display_limit is an integer.
b357b9d4 8241
a871441d
GM
82422000-06-16 Gerd Moellmann <gerd@gnu.org>
8243
a9021acd
GM
8244 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
8245 only if HAVE_X_WINDOWS.
8246
6344985d
GM
8247 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
8248 of titles.
8249
427ec082 8250 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
8251 out of bounds.
8252
228b083e
EZ
82532000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
8254
8255 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
8256 of its headers.
8257
c25b53a2
KH
82582000-06-15 Kenichi Handa <handa@etl.go.jp>
8259
8260 * coding.c (decode_coding_emacs_mule): Always set src_base at the
8261 start of the while loop.
8262
a6981b11
GM
82632000-06-15 Gerd Moellmann <gerd@gnu.org>
8264
e9924e52
GM
8265 * atimer.c (alarm_signal_handler): Add forward declaration.
8266
a6981b11
GM
8267 * data.c (set_internal): Remove debug code.
8268
25fa6deb
GM
82692000-06-14 Gerd Moellmann <gerd@gnu.org>
8270
dce6b995
GM
8271 * Makefile.in (bootstrap-temacs): Add `-I../src'.
8272
9f817ea4
GM
8273 * unexec.c (toplevel) [COFF]: Include coff.h.
8274
8275 * s/lynxos.h: New file.
8276
8277 * keymap.c (Fsingle_key_description): Enclose function key and
8278 event symbol names in angle brackets.
8279
8a4e3c0c
GM
8280 * xdisp.c (setup_echo_area_for_printing): Call
8281 message_log_maybe_newline if message_buf_print is not set.
8282
8283 * print.c (printchar, strout): Don't check message_buf_print
427ec082 8284 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
8285 function does something useful even when message_buf_print is
8286 already set.
8287
52283633
SM
8288 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
8289 New variables.
25fa6deb
GM
8290 (ensure_echo_area_buffers): Initialize echo buffer's
8291 truncate lines setting to nil.
8292 (with_echo_area_buffer): Don't set the echo buffer's truncate
8293 lines setting here.
8a4e3c0c 8294 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
8295 of message_truncate_lines.
8296 (resize_mini_window): Handle case that lines are truncated.
52283633
SM
8297 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
8298 DEFVAR_BOOL message-truncate-lines.
25fa6deb
GM
8299
8300 * keyboard.c (read_char): Bind message-truncate-lines to t
8301 while displaying a help-echo.
8302
8303 * lisp.h (Qmessage_truncate_lines): External declaration.
8304
163dcff3
GM
83052000-06-13 Gerd Moellmann <gerd@gnu.org>
8306
1681ead6
GM
8307 * xdisp.c (Vline_number_display_limit): Renamed from
8308 line_number_display_limit.
8309 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
8310 Extend documentation string. Initialize
8311 Vline_number_display_limit to nil meaning no limit.
8312 (decode_mode_spec): Use Vline_number_display_limit with its new
8313 meaning.
8314
163dcff3
GM
8315 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
8316
18e21ce8 83172000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
8318
8319 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 8320
163dcff3
GM
8321 * xfns.c (x_set_frame_parameters): Comment fix.
8322
8323 * frame.c (store_frame_param): Call swap_in_global_binding if the
8324 variable's current binding was chosen based on this frame.
8325
8326 * data.c (swap_in_global_binding): New function.
8327
a704139d
EZ
83282000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
8329
8330 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
8331 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
8332
9b6610db
EZ
83332000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
8334
8335 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
8336
c68833d2
JR
83372000-06-12 Jason Rumney <jasonr@gnu.org>
8338
8339 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
8340
8341 * w32.h (EMACS_W32_H): Renamed from _NT_H_
8342
8343 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
8344
8345 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
8346
ed1056b3
GM
83472000-06-12 Gerd Moellmann <gerd@gnu.org>
8348
8349 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
8350 (syms_of_xfaces): Defsubr Sdump_colors.
8351 (x_free_colors): Don't treat b&w specially on default visual.
8352 (x_free_dpy_colors): New function.
8353 (free_face_colors): Don't check visual class; it's done
8354 in x_free_colors.
8355
8356 * xterm.c (x_frame_of_widget): New function.
8357 (x_alloc_nearest_color_for_widget): Use it.
8358 (x_copy_dpy_color): New function.
8359 (x_destroy_window): Free various colors.
8360
5050a2ef
KH
83612000-06-12 Kenichi Handa <handa@etl.go.jp>
8362
8363 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
8364
8365 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
8366
8367 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
8368
8369 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
8370
8371 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
8372
fb1b041d
DL
83732000-06-11 Dave Love <fx@gnu.org>
8374
8375 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
8376
ff96b5f4
EZ
83772000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
8378
8379 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
8380
db8eeecd
GM
83812000-06-11 Gerd Moellmann <gerd@gnu.org>
8382
ed1056b3 8383 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
8384 to `XEvent *'.
8385
49b71c5f
KH
83862000-06-10 Kenichi Handa <handa@etl.go.jp>
8387
c479bd55
KH
8388 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
8389 (regex_compile): Fix the code for handling the case of single byte
8390 char and multibyte char being mixed in a range within [...].
8391
ff6a65c2
KH
8392 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
8393 and dst_multibyte members of coding.
8394
49b71c5f
KH
8395 * charset.c (update_charset_table): Update the table
8396 bytes_by_char_head.
8397 (init_charset_once): Initialize elements of bytes_by_char_head to
8398 1 except for leading codes for private charases.
8399
8400 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
52283633 8401 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
49b71c5f 8402
9e80b57d
KR
84032000-06-09 Ken Raeburn <raeburn@gnu.org>
8404
8405 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
8406 access the data it doesn't point to.
8407
f83fe4b4
GM
84082000-06-08 Gerd Moellmann <gerd@gnu.org>
8409
8410 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 8411 will be translated to a switch-frame event when reading the
f83fe4b4
GM
8412 event queue. This is necessary because Emacs otherwise won't
8413 perform a switch-frame to a new frame until some other event, for
8414 example a keystroke event, forces it to do so. This has various
8415 effects, one visible being that the cursor of a frame created with
8416 C-x 5 2 or switched to with a window manager key binding like
8417 A-TAB stays hollow because selected_window isn't on the newly
8418 focused frame until the switch-frame is performed.
8419
8420 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
8421 generating a switch-frame event if necessary.
8422
8423 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
8424
8425 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
8426 it's an integer.
8427
0890801b
KH
84282000-06-08 Kenichi Handa <handa@etl.go.jp>
8429
52283633 8430 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
0890801b 8431
173cbca8
GM
84322000-06-07 Gerd Moellmann <gerd@gnu.org>
8433
3091c2a6
GM
8434 * window.c (displayed_window_lines): Take empty lines at
8435 the bottom of a window into account.
427ec082 8436
f38952fe
GM
8437 * window.c (displayed_window_lines): New function.
8438 (Fmove_to_window_line): Use displayed_window_lines to determine
8439 the number of lines to move, instead of using the window's height.
8440
8441 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
8442 to stop reading, even if the form read sets point to a different
8443 value when evaluated.
8444
427ec082 8445 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
8446 put the cursor.
8447
6ba6c818
KH
84482000-06-07 Kenichi Handa <handa@etl.go.jp>
8449
8450 * fileio.c (e_write): Free composition data if stored in
8451 coding->cmp_data.
8452
5f1aea9a
GM
84532000-06-06 Gerd Moellmann <gerd@gnu.org>
8454
666852af
GM
8455 * xdisp.c (display_line): Set row's and iterator's
8456 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
8457 Set cursor even if row ends in the middle of a character.
8458 (dump_glyph_row): Print values of new flags.
8459 (redisplay_window) <cursor movement in unchanged window>: When
8460 point has been moved forward, and PT is at the end of the cursor
8461 row, don't place the cursor in the next row if the cursor row ends
8462 in the middle of a character or at ZV.
8463
8464 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
8465 (struct glyph_row): Add starts_in_middle_of_char_p and
8466 ends_in_middle_of_char_p.
8467 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
8468 ends_in_middle_of_char_p flag.
8469 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
8470
d13f3e2e
GM
8471 * term.c (append_glyph): Revert change of 2000-06-06.
8472
8473 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
8474 padding glyph not fitting on line as whole character not
8475 fitting on line.
8476
5f1aea9a
GM
8477 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
8478 this isn't true for images with `:ascent 100'.
8479
10cda9b0
KH
84802000-06-06 Kenichi Handa <handa@etl.go.jp>
8481
ed00559d
KH
8482 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
8483 as modified if it is originally unmodified.
8484
10cda9b0
KH
8485 * term.c (encode_terminal_code): Change the way to check if
8486 terminal coding does any conversion.
8487 (append_glyph): Set glyph->pixel_width correctly.
8488
8489 * xdisp.c (display_line): While checking line continuation, pay
8490 attention to a padding glyph.
8491
1969fae2
GM
84922000-06-05 Gerd Moellmann <gerd@gnu.org>
8493
8494 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
8495
162ccef4
DL
84962000-06-05 Dave Love <fx@gnu.org>
8497
f19f32dd
DL
8498 * xdisp.c: Include fontset.h.
8499
8500 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
8501
8502 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
8503
8504 * dispnew.c: Conditionally include term.h.
8505
8506 * coding.h: Declare code_convert_string_norecord.
8507
8508 * frame.h (struct frame): Use volatile unconditionally.
8509
8510 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
8511
8512 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
8513
8514 * systime.h: Protect against multiple inclusion.
8515 (timezone) [USG5_4]: Define as time_t.
8516
8517 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
8518 (Foptimize_char_table, make_temp_name): Declare.
8519
8520 * Makefile.in (xdisp.o): Depend on fontset.h.
8521
8522 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
8523
8524 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
8525 (Foptimize_char_table, make_temp_name): Declare.
8526
427ec082 8527 * s/irix4-0.h:
162ccef4
DL
8528 * s/irix5-0.h:
8529 * s/netbsd.h: Don't define autoconfiscated MATHERR.
8530
2082fe81
DL
85312000-06-02 Dave Love <fx@gnu.org>
8532
8533 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
8534
dcf671d2
GM
85352000-06-02 Gerd Moellmann <gerd@gnu.org>
8536
8537 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 8538 result face, set flags in that face indicating that colors may not
dcf671d2
GM
8539 be freed.
8540
8541 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
8542 glyph, use the ASCII NUL character to determine the face.
8543
d42122a3
DL
85442000-06-02 Dave Love <fx@gnu.org>
8545
8546 * sysdep.c: Conditionally include stdlib.h, unistd.h.
8547 (VFORK_RETURN_TYPE): Remove.
427ec082 8548
d42122a3
DL
8549 * config.in: Add NO_MATHERR.
8550
dd432f16
DL
85512000-06-01 Dave Love <fx@gnu.org>
8552
90aa4ea8
DL
8553 * cmds.c (internal_self_insert): Don't check
8554 Vbefore_change_function, Vafter_change_function.
8555
8556 * insdel.c (signal_before_change, signal_after_change): Likewise.
8557
8558 * buffer.c (Vbefore_change_function, Vafter_change_function):
8559 Variables and their initializations deleted.
8560
2330c9d4
DL
8561 * callint.c (Fcall_interactively): Doc fix.
8562
dd432f16
DL
8563 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
8564
bf9e8804
DL
85652000-05-31 Dave Love <fx@gnu.org>
8566
8567 * textprop.c: Revert last change -- duplicated.
8568
3694b4ab
GM
85692000-05-31 Gerd Moellmann <gerd@gnu.org>
8570
8571 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
8572 in #if 0.
8573
8574 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
8575
f14156cd
JR
85762000-05-31 Jason Rumney <jasonr@gnu.org>
8577
8119aab8
JR
8578 * search.c (Fre_search_forward, Fre_search_backward)
8579 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
8580
f14156cd
JR
8581 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
8582
4aab9be3
JR
85832000-05-30 Jason Rumney <jasonr@gnu.org>
8584
8585 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
8586 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
8587
52283633 8588 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
4aab9be3
JR
8589
8590 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
8591 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
8592 expand a nil default_filename.
8593
8594 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
8595 pointer to glyph_to_pixel_coords, not a frame.
8596
8597 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
8598 coding.h to dependencies.
8599
8600 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
8601
8602 * w32console.c (glyph_to_pixel_coords): Change first parameter to
8603 window pointer to be consistent with w32term.c and xterm.c.
8604
8605 * w32fns.c: Format and doc changes to bring closer to xfns.c.
8606 (VIETNAMESE_CHARSET): Define if not defined in system headers.
8607 (Qline_spacing, Qcenter): New variables.
8608 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
8609 (x_set_line_spacing): New function.
52283633 8610 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
4aab9be3
JR
8611 (x_specified_cursor_type): New function.
8612 (x_set_cursor_type): Use it.
8613 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
8614 and icon strings.
8615 (validate_x_resource_name, x_get_resource_string): Measure lengths
8616 of external strings in bytes.
8617 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
8618 GetTextExtentPoint32 with NULL title.
8619 (Fx_create_frame): Initialize Qline_spacing.
8620 (w32_load_system_font): Initialize font->double_byte_p.
8621 (x_to_w32_charset): Use Vw32_charset_info_alist.
8622 (Image, busy cursor, tooltip functions): Merged changes from
8623 xfns.c. Not yet functional on Windows.
8624
8625 * w32gui.h (W32FontStruct): Add double_byte_p member.
8626
8627 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
8628 (emacs_button_translation): Use it.
8629 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
8630 in `mask' to be set.
8631
8632 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
8633 menu strings.
8634
8635 * w32term.c: Format and doc changes to bring closer to xterm.c.
8636 (w32_char_font_type): New enum.
8637 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
8638 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
8639 (w32_encode_char): New function.
8640 (x_encode_char): Removed.
8641 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
8642 x_encode_char and w32_font_is_double_byte.
8643 (x_produce_image_glyph): Use image_ascent.
8644 (x_produce_glyphs): Use new version of w32_per_char_metric and
8645 handle NULL return value. Allow extra line spacing.
8646 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
8647 (w32_get_glyph_overhangs): Remove unicode_p param. Use
8648 w32_font_type member of glyph instead.
8649 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
8650 (fast_find_position): Make sure not to consider rows not visible
8651 in the window.
8652 (w32_read_socket) [WM_MENUSELECT]: Cannot call
8653 w32_menu_display_help with input blocked, as it can abort.
8654 (x_display_and_set_cursor): Choose cursor depending
8655 on buffer-local value of cursor_type.
8656 (x_draw_bar_cursor): Add parameter WIDTH.
8657
8658 * w32term.h (CP_DEFAULT): Define.
8659 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
8660
10fc3187
GM
86612000-05-30 Gerd Moellmann <gerd@gnu.org>
8662
8663 * search.c (Fre_search_forward, Fre_search_backward)
8664 (Fposix_search_backward, Fposix_search_forward): Doc fix.
8665
d0555360
KH
86662000-05-30 Kenichi Handa <handa@etl.go.jp>
8667
8668 * coding.c (detect_coding_iso2022): Fix code for checking
8669 CODING_CATEGORY_MASK_ISO_8_2.
8670
f1ad044f
SM
86712000-05-29 Stefan Monnier <monnier@cs.yale.edu>
8672
8673 * regex.c (PREFETCH_NOLIMIT): New function.
8674 (re_match_2_internal): Use it and adjust the end_match_2 logic.
8675
84ec3b4b
GM
86762000-05-29 Gerd Moellmann <gerd@gnu.org>
8677
66254a13
GM
8678 * syntax.c (find_defun_start): Move test for
8679 open_paren_in_column_0_is_defun_start outside of the loop.
8680
49e70dec
GM
8681 * xdisp.c (redisplay_window): Really switch buffers when
8682 displaying mode lines, and temporarily set selected_frame to the
8683 frame of the window that's redisplayed.
8684
84ec3b4b
GM
8685 * xfaces.c (free_realized_faces): Block/unblock input.
8686 (free_realized_multibyte_face): Ditto.
8687
869a3a14
DL
86882000-05-29 Dave Love <fx@gnu.org>
8689
8690 * textprop.c (Qkeymap): New variable.
8691 (syms_of_textprop): Intern it.
8692
8693 * keymap.c: Include intervals.h.
8694 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
8695
8696 * Makefile.in (keymap.o): Depend on intervals.h.
8697
8698 * keyboard.c (menu_bar_items, tool_bar_items)
8699 (Fexecute_extended_command): Deal with `keymap' property.
8700 (read_key_sequence): Track map from `keymap' property as well as
8701 `local_map'.
8702
8703 * intervals.c (get_local_map): Extra arg to allow looking for
8704 `keymap' too.
8705
8706 * intervals.h (map_property): New enum.
8707 (get_local_map): Extra arg using it.
8708 (Qkeymap): Declare.
8709
84ec3b4b 8710 * lisp.h (get_local_map): Don't declare here.
869a3a14 8711
89d0c844
KH
87122000-05-29 Kenichi Handa <handa@etl.go.jp>
8713
8714 * Makefile.in (callproc.o): Depend on composite.h.
8715
8716 * callproc.c: Include composite.h.
8717 (Fcall_process): Handle composition correctly.
8718
8719 * coding.h (coding_allocate_composition_data): Extern it.
8720 (coding_restore_composition): Likewise.
8721
8722 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
8723 yet allocated, finish decoding with result
8724 CODING_FINISH_INSUFFICIENT_CMP.
8725 (coding_allocate_composition_data): Make it non-static.
8726 (coding_restore_composition): Likewise.
8727
797a084a
EZ
87282000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
8729
8730 * charset.c (syms_of_charset): Revert last change.
8731
cf872af5
EZ
87322000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
8733
8734 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
8735 charsets as unibyte, with 1-column screen width. Sent by Kenichi
8736 Handa.
cf872af5 8737
5b1ae051
EZ
87382000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
8739
8740 * charset.c (syms_of_charset): Set width of character sets
8741 eight-bit-control and eight-bit-graphic to 1 column.
8742
34ec9ebe
GM
87432000-05-26 Gerd Moellmann <gerd@gnu.org>
8744
8745 * config.in (HAVE_SPEED_T): New define.
8746
8747 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
8748 `extern speed_t'.
8749
dd854dc2
DL
87502000-05-26 Dave Love <fx@gnu.org>
8751
8752 * coding.c (shrink_decoding_region): Initialize eol_conversion.
8753
8754 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
8755 (Fsubr_arity): New function.
8756 (syms_of_data): Install them.
8757
ba9f8f95
KH
87582000-05-26 Kenichi Handa <handa@etl.go.jp>
8759
0f3e0672
KH
8760 * charset.c (init_charset_once): Set the table bytes_by_char_head
8761 correctly.
8762
cebefb44
KH
8763 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
8764 the default fontset to what Emacs uses by default.
0f3e0672
KH
8765 (check_registry_encoding): This function deleted.
8766 (Fset_fontset_font): Remove the adhoc condition for the default
8767 fontset. Allow cons in FONTNAME.
cebefb44 8768
0f3e0672
KH
8769 * fns.c (map_char_table): Ignore char-table entries for
8770 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 8771
7a18af49
KR
87722000-05-25 Ken Raeburn <raeburn@gnu.org>
8773
8774 * emacs.c (main): Initialize keyboard syms before initializing
8775 window code, so face names are available.
8776
d2af47df
SM
87772000-05-25 Stefan Monnier <monnier@cs.yale.edu>
8778
8779 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
8780 of an anchor at the beginning of a shy-group.
8781
fc6a6a4e
GM
87822000-05-25 Gerd Moellmann <gerd@gnu.org>
8783
8784 * xdisp.c (handle_invisible_prop): Don't try to skip over
8785 invisible text if end of text is already reached.
8786
005f0d35
DL
87872000-05-25 Dave Love <fx@gnu.org>
8788
02513cdd
DL
8789 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
8790
005f0d35
DL
8791 * coding.c (encode_eol): Add null statement after label.
8792
89f6ca4e
EZ
87932000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
8794
8795 * w16select.c (Fw16_set_clipboard_data): Fix the change from
8796 2000-05-20.
8797
a4e1759e
KH
87982000-05-25 Kenichi Handa <handa@etl.go.jp>
8799
8800 * ccl.c (ccl_driver): Fix previous change.
8801
eacfd7fe
KH
88022000-05-25 Kenichi Handa <handa@etl.go.jp>
8803
46ab33a9
KH
8804 * coding.c (run_pre_post_conversion_on_str): Set point to the
8805 beginning of buffer before calling coding->post_read_conversion.
8806 (decode_coding_string): Give correct args to
8807 run_pre_post_conversion_on_str.
8808 (encode_coding_string): Likewise.
8809
eacfd7fe
KH
8810 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
8811 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
8812 eight-bit-graphic correctly.
8813
f8569325
DL
88142000-05-24 Kenichi HANDA <handa@etl.go.jp>
8815
8816 * fileio.c (Finsert_file_contents): Even if a file is not found,
8817 execute codes for setting up coding system. Call
8818 after-insert-file-functions unconditionally.
8819
04545643
GM
88202000-05-24 Gerd Moellmann <gerd@gnu.org>
8821
8822 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
8823 BSD_PGRPS are not defined.
8824
747d90ea
KH
88252000-05-24 Kenichi Handa <handa@etl.go.jp>
8826
8827 * charset.c (update_charset_table): Accept nil in LONG_NAME and
8828 DESCRIPTION.
8829 (syms_of_charset): Avoid building same strings.
8830
716e3b88
GM
88312000-05-23 Gerd Moellmann <gerd@gnu.org>
8832
8833 * lread.c (Fload): Add a comment about the meaning of
8834 Vuser_init_file being t.
8835
8836 * puresize.h (BASE_PURESIZE): Increase to 675000.
8837
8838 * s/gnu-linux.h (setpgrp): Don't define it here because this
8839 prevents compilation on GNU/Linux systems with glib 2.2.
8840
8841 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
8842 as setpgid.
427ec082 8843
9aeb39fa
EZ
88442000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
8845
8846 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
8847 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
8848 version.
8849 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
8850
29ced61b
KH
88512000-05-23 Kenichi Handa <handa@etl.go.jp>
8852
52283633 8853 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
0574a2ed 8854
3d80f24d
KH
8855 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
8856
52283633 8857 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
3d80f24d 8858
29ced61b
KH
8859 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
8860
d7e00792
KH
88612000-05-22 Kenichi Handa <handa@etl.go.jp>
8862
c9d80d38
KH
8863 * keyboard.c (read_char): Allow character codes 128..255 to be
8864 handled by input-method-function.
8865
d7e00792
KH
8866 * insdel.c (adjust_markers_for_replace): Fix previous change.
8867 (adjust_after_replace): If PREV_TEXT is nil, call
8868 adjust_markers_for_insert, not adjust_markers_for_replace.
8869
087121cc 88702000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 8871
087121cc
GM
8872 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
8873 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
8874 [HAVE_GRANDPT]: Define.
8875 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
8876
8877 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
8878 like SYSV_PTYS.
8879
8880 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
8881
8882 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
8883
c9671f81
KH
88842000-05-20 Kenichi Handa <handa@etl.go.jp>
8885
8886 The following changes are to handle 8-bit characters in a
8887 multibyte buffer/string without facing with byte combining
8888 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
8889 eight-bit-graphic (for 0xA0..0xFF) are introduced.
8890
8891 * Makefile.in (fns.o): Depend on charset.h.
8892
8893 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
8894 convert it to unibyte.
8895 (make_string): Use parse_str_as_multibyte, not chars_in_text.
8896
8897 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
8898 apparent char boundary.
8899 (Fset_buffer_multibyte): Convert 8-bit characters in the range
8900 0x80..0x9F to/from multibyte form.
8901
8902 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
8903 to unibyte.
8904
8905 * callproc.c (Fcall_process): Always encode an argument string if
8906 it is multibyte. Setup src_multibyte and dst_multibyte members of
8907 process_coding properly.
ce75fd23 8908
c9671f81
KH
8909 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
8910 SPLIT_NON_ASCII_CHAR.
8911
8912 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
8913 as is.
8914 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
8915
52283633 8916 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
c9671f81 8917 (SPLIT_CHARACTER_SEQ): This macro deleted.
52283633 8918 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
c9671f81
KH
8919 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
8920 and eight-bit-graphic.
8921 (char_to_string): Likewise. Signal an error for too large
8922 character code.
8923 (char_printable_p): Return 0 for 8-bit characters.
8924 (update_charset_table): Update iso_charset_table only when a final
8925 character is non-negative.
8926 (find_charset_in_text): Renamed from find_charset_in_str.
8927 Arguments and return value changed. Callers changed.
8928 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
8929 be -1 if CHARSET is used only internally.
8930 (Fmake_char_internal): Handle new charsets; eight-bit-control and
8931 eight-bit-graphic.
8932 (Fcharset_after): Simplified.
8933 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
8934 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
8935 (multibyte_chars_in_text): Simplified by assuming there's no
8936 invalid multibyte sequence.
52283633
SM
8937 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
8938 (str_as_unibyte): New functions.
8939 (Fstring): Simpified by assuming that byte combining never happens.
c9671f81
KH
8940 (init_charset_once): Initialization for
8941 LEADING_CODE_8_BIT_CONTROL.
8942 (syms_of_charset): Intern and staticpro Qeight_bit_control and
8943 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
8944 eight-bit-control and eight-bit-graphic.
8945
52283633
SM
8946 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
8947 (CHARSET_8_BIT_GRAPHIC): New macros.
c9671f81
KH
8948 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
8949 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
8950 (CHARSET_REVERSE_CHARSET): Likewise.
8951 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
8952 eight-bit-graphic.
8953 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
8954 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
8955 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
8956 encounter an invalid multibyte sequence.
8957 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
8958 sequence is always valid.
8959 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
52283633 8960 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
c9671f81
KH
8961 (CHAR_STRING): For 8-bit characters, call char_to_string.
8962 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
8963 multibyte sequence is always valid.
8964 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
52283633
SM
8965 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
8966 (str_as_unibyte): Extern them.
c9671f81 8967 (BCOPY_SHORT): Fix a bug.
52283633 8968 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
c9671f81
KH
8969 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
8970 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
8971 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
8972
bd4bde7f 8973 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81 8974 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
52283633
SM
8975 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
8976 (EMIT_BYTES): New macros.
8977 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
8978 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
c9671f81
KH
8979 macros deleted.
8980 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
8981 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
8982 check the validity of multibyte sequence.
8983 (decode_coding_emacs_mule): New function.
8984 (encode_coding_emacs_mule): New macro.
8985 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
8986 the source.
8987 (DECODE_ISO_CHARACTER): Just return a character code.
8988 (DECODE_COMPOSITION_START): Set coding->result instead of result.
8989 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
8990 EMIT_CHAR to produced decoded characters. Exit the loop only by
8991 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
8992 block here.
8993 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
8994 only position codes for an invalid character.
8995 (encode_designation_at_bol): Return new destination pointer. 5th
8996 arg DSTP is changed to DST.
8997 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
8998 from the source by ONE_MORE_CHAR. Don't handle the case of last
8999 block here.
9000 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
9001 macros deleted.
52283633
SM
9002 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
9003 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
c9671f81
KH
9004 TWO_MORE_BYTES to fetch a byte from the source.
9005 (encode_eol): Pay attention to coding->src_multibyte.
9006 (detect_coding, detect_eol): Preserve members src_multibyte and
9007 dst_multibyte.
9008 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
9009 (encoding_buffer_size): Set magnification to 3 for all coding
9010 systems that require encoding.
9011 (ccl_coding_driver): For decoding, be sure that the result is
9012 valid multibyte sequence.
9013 (decode_coding): Initialize coding->errors and coding->result.
9014 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
9015 and raw-text, always call decode_eol. Handle the case of last
9016 block here. If not coding->dst_multibyte, convert the resulting
9017 sequence to unibyte.
9018 (encode_coding): Initialize coding->errors and coding->result.
9019 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
9020 and raw-text, always call encode_eol. Handle the case of last
9021 block here.
9022 (shrink_decoding_region, shrink_encoding_region): Detect cases
9023 that we can't skip data more rigidly.
9024 (code_convert_region): Setup src_multibyte and dst_multibyte
9025 members of coding. For decoding, if the buffer is multibyte,
9026 convert the source sequence to unibyte in advance. For encoding,
9027 if the buffer is multibyte, convert the resulting sequence to
9028 multibyte afterward.
9029 (run_pre_post_conversion_on_str): New function.
9030 (code_convert_string): Deleted and divided into the following two.
9031 (decode_coding_string, encode_coding_string): New functions.
9032 (code_convert_string1, code_convert_string_norecord): Call one of
9033 above.
9034 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
9035 MAKE_NON_ASCII_CHAR.
52283633
SM
9036 (Fset_terminal_coding_system_internal)
9037 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
c9671f81
KH
9038 and dst_multibyte members.
9039 (init_coding_once): Initialize iso_code_class with new enum
9040 ISO_control_0 and ISO_control_1.
9041
9042 * coding.h (enum iso_code_class_type): Member ISO_control_code is
9043 devided into ISO_control_0 and ISO_control_1.
9044 (struct coding_system): New members src_multibyte, dst_multibyte,
9045 errors, and result. Delete member fake_multibyte.
9046 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
9047 nonzero.
9048 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
9049 nonzero.
9050
9051 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
9052 (Faset): Likewise.
9053
9054 * editfns.c (Fformat): Be sure to convert 8-bit characters to
9055 multibyte form.
9056 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
9057 combining occurs.
9058 (Ftranspose_region): Delete codes for handling byte combining.
9059
9060 * fileio.c (Finsert_file_contents): Setup src_multibyte and
9061 dst_multibyte members of coding. On handling REPLACE on unibyte
9062 buffer, convert the result of decode_coding to unibyte. On
9063 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 9064 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
9065 multibyteness of the source (buffer or string).
9066
9067 * fns.c (concat): Handle 8-bit characters correctly.
9068 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
9069 unibyte in the result.
9070 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
9071 valid multibyte form in the result.
9072 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
9073 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
9074 return -1, signal an error.
9075 (base64_encode_1): New arg MULTIBYTE. Get each character by
9076 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
9077 character is found, return -1.
9078 (Fbase64_decode_region): Delete codes for handling byte-combining.
9079 Treat each decoded byte as a unibyte character.
9080 (Fbase64_decode_string): Return unibyte string.
9081 (Fcompare_strings, concat, string_byte_to_char): Use
9082 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
9083 FETCH_STRING_CHAR_ADVANCE.
9084 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
9085 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
9086
9087 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
9088 SPLIT_NON_ASCII_CHAR.
9089 (fontset_ref_via_base, fontset_set): Likewise
9090
9091 * insdel.c (adjust_markers_for_record_delete): Deleted.
9092 (adjust_markers_for_insert): Argument changed. Caller changed.
9093 (adjust_markers_for_replace): Likewise.
52283633
SM
9094 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
9095 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
c9671f81
KH
9096 (copy_text): Delete unused local varialbe c_save. For converting
9097 to multibyte, be sure to make all 8-bit characters in valid
9098 multibyte form.
9099 (count_size_as_multibyte): Handle 8-bit characters correctly.
52283633
SM
9100 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
9101 (adjust_after_replace, replace_range, del_range_2)
c9671f81 9102 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
52283633
SM
9103 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
9104 (adjust_after_replace, replace_range, del_range_2) Delete codes for
c9671f81
KH
9105 handling byte combining.
9106 (adjust_before_replace): Deleted.
427ec082 9107
c9671f81
KH
9108 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
9109 SPLIT_NON_ASCII_CHAR.
9110 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
52283633 9111 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
9112 (Fkey_description): Likewise.
9113
9114 * lread.c (read1): On reading multibyte string, be sure to make
9115 all 8-bit chararacters in valid multibyte form.
9116 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
9117
9118 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
9119 unconditionally.
9120
9121 * process.c (Fstart_process): GCPRO current_dir before calling
9122 Ffind_operation_coding_system. Encode arguments here.
9123 (create_process): Don't encode arguments here. Setup
9124 src_multibyte and dst_multibyte members of struct coding.
9125 (read_process_output): Setup src_multibyte and dst_multibyte
9126 members of struct coding. If the output is to multibyte buffer,
9127 always decode the output of the process. Adjust the
52283633 9128 representation of 8-bit characters to the multibyteness of the output.
c9671f81
KH
9129 (send_process): Setup coding->src_multibyte according to the
9130 multibyteness of the source.
9131
52283633 9132 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
9133 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
9134 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
9135
52283633 9136 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
c9671f81
KH
9137
9138 * w16select.c (Fw16_set_clipboard_data): Setup members
9139 src_multibyte and dst_multibyte of coding. Adjusted for the
9140 change for find_charset_in_str.
9141 (Fw16_get_clipboard_data): Likewise.
9142
9143 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
9144 dst_multibyte of coding.
9145 (x_to_w32_font): Likewise.
9146
9147 * w32select.c (Fw32_set_clipboard_data): Setup members
9148 src_multibyte and dst_multibyte of coding. Adjusted for the
9149 change for find_charset_in_str.
9150 (Fw32_get_clipboard_data): Likewise.
9151
9152 * xdisp.c (get_next_display_element): Handle 8-bit characters
9153 correctly.
52283633
SM
9154 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
9155 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
c9671f81
KH
9156
9157 * xselect.c (selection_data_to_lisp_data): Setup members
9158 src_multibyte and dst_multibyte of coding. Adjusted for the
9159 change for find_charset_in_str.
9160 (lisp_data_to_selection_data): Likewise.
9161
5f64c9e0
GM
91622000-05-19 Gerd Moellmann <gerd@gnu.org>
9163
52283633 9164 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
2b63d473 9165
5f64c9e0
GM
9166 * dispextern.h (Vimage_types): Add extern declaration.
9167
9168 * xdisp.c (Vimage_types): Moved here from xfns.c.
9169 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
9170
9171 * xfns.c (Vimages_types): Moved to xdisp.c.
9172 (syms_of_xfns): Move `image-types' to xdisp.c.
9173
9174 * w32fns.c (Vimage_types): Removed.
9175 (syms_of_w32fns): Remove `image-types'.
9176
813086ea
KH
91772000-05-18 Kenichi Handa <handa@etl.go.jp>
9178
9179 * fns.c (map_char_table): Pay attention to character number of
9180 charset. Check the validity of charset at the first level. For
9181 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
9182 the default value.
9183
9184 * fontset.c: Include "buffer.h".
9185 (fs_load_font): If the face has fontset, record the face ID in
9186 that fontset.
9187 (Finternal_char_font): New function.
9188 (accumulate_font_info): New function.
9189 (Ffontset_info): Rewritten for the new fontset implementation.
9190 (syms_of_fontset): Register Vdefault_fontset in the first element
9191 of Vfontset_table. Include Vdefault_fontset in
9192 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
9193 function.
9194
bdaebbf0
DL
91952000-05-16 Dave Love <fx@gnu.org>
9196
9197 * m/iris5d.h: Deleted -- unused.
9198
cb613bb8
GM
91992000-05-16 Gerd Moellmann <gerd@gnu.org>
9200
b15f3b77
GM
9201 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
9202 `invalid' instead of `illegal'.
9203
9204 * indent.c (Fmove_to_column): When ending within a tab, insert
9205 spaces first so that markers at the end of the tab get adjusted.
9206
835c1b36
GM
9207 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
9208 buffer list that wasn't selected in that frame.
9209
cb613bb8
GM
9210 * filelock.c (get_boot_time): To obtain an 8 char file name, which
9211 is needed on mescaline, use a 2 char prefix, and call
9212 make_temp_name with second arg non-zero.
9213
9214 * fileio.c (make_temp_name): New function, extracted from
9215 Fmake_temp_name.
9216 (Fmake_temp_name): Use it.
9217
f685bea9
EZ
92182000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
9219
52283633 9220 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
f685bea9 9221
a1b8d58b
GM
92222000-05-15 Gerd Moellmann <gerd@gnu.org>
9223
9224 * Makefile.in (lisp): Add env.elc.
9225
9226 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
9227
a265079f
GM
92282000-05-12 Gerd Moellmann <gerd@gnu.org>
9229
9230 * search.c (Freplace_match): Handle case of `\N' in the
9231 replacement when there's no group N.
9232
da4496b6
GM
92332000-05-11 Gerd Moellmann <gerd@gnu.org>
9234
0ace421a
GM
9235 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
9236 of the message to message_dolog.
9237
1172eb8d
GM
9238 * keyboard.c (read_char): Don't clear current message for help
9239 events; let the code handling help events handle this. Change
9240 code detecting help events that should be ignored.
9241
da4496b6
GM
9242 * xdisp.c (handle_single_display_prop): Don't try to set PT if
9243 we're interating over a string.
9244
0623e40f
DL
92452000-05-09 Dave Love <fx@gnu.org>
9246
9247 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
9248 that offset before writing. Move gcpro region past call of
9249 Ffile_regular_p.
9250
bae2503b
DL
92512000-05-04 Dave Love <fx@gnu.org>
9252
9253 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
9254
ec82fb2f
GM
92552000-05-04 Gerd Moellmann <gerd@gnu.org>
9256
9257 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
9258 of inserted characters when BUF equals the current buffer, and PT
9259 is in front of or equal to FROM.
9260
cbf18892
GM
92612000-05-03 Gerd Moellmann <gerd@gnu.org>
9262
4ff40dd0
GM
9263 * xdisp.c (handle_single_display_prop): If display property value
9264 is invalid, or something not supported on the frame, restore
9265 iterator's position to what it was initially. Make sure to return
9266 0 for invalid and unsupported property values.
9267
cbf18892
GM
9268 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
9269 that x_per_char_metric returns null.
9270
1b0672c3
GM
92712000-05-02 Gerd Moellmann <gerd@gnu.org>
9272
576da55d
GM
9273 * xterm.h (struct face): Add forward declaration.
9274 (struct image): Ditto.
9275 (image_ascent): Add prototype.
9276
9277 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
9278 (x_draw_image_relief, x_draw_image_foreground_1): Call function
9279 image_ascent instead of using IMAGE_ASCENT.
9280
9281 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
9282 (IMAGE_ASCENT): Removed.
9283
9284 * xfns.c (Qcenter): New variable.
9285 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
9286 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
9287 (image_ascent): New function.
9288 (lookup_image): Recognize `:ascent center'.
9289 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
9290 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
9291 (xbm_load): Don't set image's ascent here.
9292 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
9293 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
9294 check ascent values here.
9295 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
9296 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
9297 (syms_of_xfns): Initialize Qcenter.
9298
1b0672c3
GM
9299 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
9300 to the limits, increase the limits.
9301
0d7811ed
KH
93022000-05-01 Kenichi Handa <handa@etl.go.jp>
9303
9304 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
52283633 9305 Check Vfont_encoding_alist against the full name of the opened font.
0d7811ed 9306
a943a5ca
GM
93072000-04-28 Gerd Moellmann <gerd@gnu.org>
9308
9309 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
9310 taller than the window.
9311
5dba1e29
KH
93122000-04-28 Kenichi Handa <handa@etl.go.jp>
9313
9314 * xfaces.c (realize_x_face): Fix the argument of the second
9315 xassert. BASE_FACE may not be a face for ASCII.
9316
353964e3
GM
93172000-04-27 Gerd Moellmann <gerd@gnu.org>
9318
c76e04a8
GM
9319 * print.c (print_object): Treat print-length < 0 as nil.
9320
9321 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
9322
9323 * s/freebsd.h (TERMCAP_OBJ): Removed.
9324 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
9325
9326 * lread.c (read1): Don't treat period followed by certain
9327 characters as symbol start.
9328
9329 * xfns.c (slurp_file): New function.
9330 (xbm_image_p): Handle case of in-memory XBM files.
9331 (xbm_scan): Rewritten to work on memory buffers instead of files.
9332 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
9333 Work on memory buffers instead of files. If DATA is null test
9334 if buffer looks like an in-memory XBM file.
9335 (xbm_load_image): Renamed from xbm_load_image_file. Work on
9336 memory buffers instead of files.
9337 (xbm_file_p): New function.
9338 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
9339
353964e3
GM
9340 * lread.c (end_of_file_error): New function.
9341 (read1): Call it instead of signaling `end-of-file' directly.
9342
427ec082 9343 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
9344 with Fprinc instead of Fprin1.
9345
24d744ac
KR
93462000-04-26 Ken Raeburn <raeburn@gnu.org>
9347
9348 * window.c (freeze_window_start): Check that minibuffer scroll
9349 window isn't nil before extracting the window structure pointer
9350 from it.
9351
9352 * undo.c (record_delete): If we hit the end of the undo list, stop
9353 picking elements apart.
9354
7464346d
GM
93552000-04-26 Gerd Moellmann <gerd@gnu.org>
9356
9357 * xdisp.c (display_line): If lines are continued, restore
9358 iterator's ascent/descent information to the values before the
9359 first glyph not fitting on the line.
9360
612839b6
GM
93612000-04-25 Gerd Moellmann <gerd@gnu.org>
9362
9363 * xdisp.c (try_window_id) <all changes above window start>: Adjust
52283633 9364 positions in glyph matrix. Don't compute new window end positions.
612839b6
GM
9365
9366 * dispnew.c (increment_matrix_positions): Renamed from
9367 increment_glyph_matrix_buffer_positions.
9368 (increment_row_positions): Renamed from
9369 increment_glyph_row_buffer_positions.
9370
9371 * dispextern.h: Change names of renamed functions from dispnew.c
9372 in prototypes.
9373
cc181e95
GM
93742000-04-24 Gerd Moellmann <gerd@gnu.org>
9375
abfcc168
GM
9376 * fileio.c (Fdo_auto_save): Create directories for auto-save
9377 list file if necessary.
9378
cc181e95
GM
9379 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
9380 from buffer or frame.
9381 (automatic_hscrolling_p): New variable.
9382 (hscroll_windows): Scroll windows horizontally only if automatic
9383 hscrolling is allowed.
9384 (syms_of_xdisp): New variable `automatic-hscrolling'.
9385
9386 * frame.h (struct frame): Add member extra_line_spacing.
9387
9388 * xfns.c (x_set_line_spacing): New function.
9389 (Fx_create_frame): Set line spacing from resources.
9390 (Qline_spacing): New variable.
9391 (syms_of_xfns): Initialize Qline_spacing.
427ec082 9392
cc181e95
GM
9393 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
9394
9395 * buffer.c (init_buffer_once): Handle extra_line_spacing.
9396 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 9397 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
9398 extra_line_spacing from default value.
9399 (init_buffer_once): Initialize default value of extra_line_spacing.
9400
9401 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
9402 and extra3.
9403
9404 * xterm.c (x_produce_glyphs): Remove reference to struct it's
9405 prompt_width. Add extra line spacing.
9406
9407 * term.c (produce_glyphs): Remove reference to struct it's
9408 prompt_width.
9409
9410 * dispextern.h (struct it): Remove member prompt_width, add
9411 extra_line_spacing.
9412
58827478
GM
94132000-04-22 Gerd Moellmann <gerd@gnu.org>
9414
9415 * dispnew.c (update_frame_line): When writing a whole line, make
9416 sure cursor is in the right row afterwards, otherwise a use of
9417 capability `ch' in cmgoto might leave the cursor in the row below.
9418
25a87f42
GM
94192000-04-21 Gerd Moellmann <gerd@gnu.org>
9420
9421 * lisp.h (struct Lisp_Buffer_Cons): Remove.
9422
9423 * keyboard.c (timer_check): Fix typo in comment.
9424
54edf5c2
KH
94252000-04-21 Kenichi Handa <handa@etl.go.jp>
9426
9427 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
9428 name change: ch -> character.
9429
3a64eef5
GM
94302000-04-20 Gerd Moellmann <gerd@gnu.org>
9431
9432 * keyboard.c (echo_message_buffer): New variable.
9433 (echo_now): Set echo_message_buffer to the echo area buffer used
9434 to display the echo.
9435 (cancel_echoing): Reset echo_message_buffer to nil.
9436 (read_char): Code rewritten that handles canceling an echo or
9437 echoing a dash, respectively.
9438
9439 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
9440 directory doesn't exist.
9441
6142fdcb
DL
94422000-04-19 Dave Love <fx@gnu.org>
9443
9444 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
9445 (concat): Don't allow numeric args.
9446 (Fconcat): Doc change.
6142fdcb 9447
ac6b5352
SM
94482000-04-19 Stefan Monnier <monnier@cs.yale.edu>
9449
9450 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
9451 instead define end_match(1|2) more carefully.
9452 Use GET_CHAR_BEFORE_2 for `begline'.
9453
cb9215e4
GM
94542000-04-19 Gerd Moellmann <gerd@gnu.org>
9455
5e3dac3f
GM
9456 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
9457 on 64-bit systems where NULL is defined as `0'.
9458
9459 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
9460 the `variable argument list' to make it work on Alpha.
9461
cb9215e4
GM
9462 * m/alpha.h (_LP64) [!_LP64]: Define.
9463 (ORDINARY_LINK): Define for NetBSD.
9464
9465 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 9466
f532dca0
DL
94672000-04-19 Dave Love <fx@gnu.org>
9468
c750667e
DL
9469 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
9470 change.
9471
9472 * Makefile.in (LIBS): Don't use.
9473 (GETLOADAVG_OBJ): Define again.
9474 (otherobj): Add GETLOADAVG_OBJ.
9475
f532dca0
DL
9476 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
9477
1c7e22fd
GM
94782000-04-18 Gerd Moellmann <gerd@gnu.org>
9479
f6d3257b
GM
9480 * lread.c (read_filtered_event): Cancel and start busy cursor.
9481
427ec082 9482 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
9483 that the per-character metrics may be null.
9484
e10f64e7
GM
94852000-04-17 Gerd Moellmann <gerd@gnu.org>
9486
0daee095
GM
9487 * buffer.c (clone_per_buffer_values): New function.
9488 (Fmake_indirect_buffer): Add optional argument CLONE. Call
9489 clone_per_buffer_values if CLONE is not nil.
9490
e10f64e7
GM
9491 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
9492
38687d43
DL
94932000-04-16 Dave Love <fx@gnu.org>
9494
9495 * Makefile.in: Remove obsolete localcpp stuff.
9496 (GETLOADAVG_OBJ): Don't define.
9497 (obj): Move LIBOBJS...
9498 (otherobj): ... to here.
9499 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
9500 whitespace-only lines after the continuation (Irix).
9501
c21c7262
GM
95022000-04-14 Gerd Moellmann <gerd@gnu.org>
9503
9504 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
9505
9506 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
9507
314767c0
DL
95082000-04-14 Dave Love <fx@gnu.org>
9509
9510 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
9511 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
9512 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
9513 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
9514 NLIST_STRUCT.
9515
9516 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
9517 autoconfiscated HAVE_GETLOADAVG.
9518
9519 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
9520 BROKEN_MKTIME.
9521
a2522dca
GM
95222000-04-14 Gerd Moellmann <gerd@gnu.org>
9523
9524 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
52283633 9525 (fill_in_lock_file_name): Avoid existing files that aren't links.
a2522dca 9526
33744b5d
DL
95272000-04-14 Dave Love <fx@gnu.org>
9528
c21c7262 9529 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
9530 (INTERVAL_SRC): Convert to make variable.
9531 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
9532 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
9533 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
9534 add LIBOBJS.
9535 (SOME_MACHINE_OBJECTS): Remove interval stuff.
9536 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
9537 (shortlisp): Add facemenu, float-sup, frame.
9538 (SOME_MACHINE_LISP): Remove them from here.
9539 (LIBES): Change unused LDLIBS to autoconf LIBS.
9540
9541 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
9542
9d3d5916
KH
95432000-04-14 Kenichi Handa <handa@etl.go.jp>
9544
9545 * composite.c (update_compositions): If FROM and TO are not in a
9546 valid range, do nothing.
9547
198e3c7a
GM
95482000-04-13 Gerd Moellmann <gerd@gnu.org>
9549
52283633 9550 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
198e3c7a 9551
52283633 9552 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
198e3c7a
GM
9553
9554 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
9555 as TERMCAP_OBJ.
9556
055a28c9
EZ
95572000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
9558
9559 * fileio.c (a_write): Remove redundant semi-colons.
9560 (e_write): Return -1 if failed to write all the data.
9561 This fixes the changes made at 1999-12-15.
9562
f5c75033
DL
95632000-04-12 Dave Love <fx@gnu.org>
9564
9565 * fns.c (mapcar1): Test for null vals to support mapc.
9566 (Fmapc): New function.
9567
0c3cfc51
EZ
95682000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
9569
9570 * msdos.c (NUM_MOUSE_BUTTONS): Define.
9571 (IT_frame_up_to_date): Support the buffer local value of
9572 cursor-type, if defined.
9573
33465a31
DL
95742000-04-10 Dave Love <fx@gnu.org>
9575
9576 * editfns.c (preceding-char, following-char): Doc fix.
9577
6ed56568
KR
95782000-04-10 Ken Raeburn <raeburn@gnu.org>
9579
9580 * Makefile.in (temacs): Revert 2000-03-12 change.
9581
7cf80d4e
JR
95822000-04-10 Jason Rumney <jasonr@gnu.org>
9583
9584 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
9585
34f3f342
GM
95862000-04-10 Gerd Moellmann <gerd@gnu.org>
9587
1a1b1895
GM
9588 * xdisp.c (setup_echo_area_for_printing): Choose an echo
9589 area buffer, if it's not set up yet.
9590
34f3f342
GM
9591 * indent.c (compute_motion): Set immediate_quit.
9592
be0dbdab
GM
95932000-04-09 Gerd Moellmann <gerd@gnu.org>
9594
52283633 9595 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
c45be9ac
GM
9596 (realize_tty_face): Suppress boldness if colors are the inverse of
9597 the default colors, and tty_suppress_bold_inverse_default_colors_p
9598 is set.
9599 (Ftty_suppress_bold_inverse_default_colors): New function.
9600 (syms_of_xfaces): Defsubr it.
9601
be0dbdab
GM
9602 * buffer.c (Frestore_buffer_modified_p): New function.
9603 (syms_of_buffer): Defsubr it.
9604
e8413c3b
KR
96052000-04-08 Ken Raeburn <raeburn@gnu.org>
9606
87f67317
KR
9607 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
9608 charset id (int) argument, not a charset (Lisp_Object).
9609
e8413c3b
KR
9610 * coding.h (code_convert_string): Declare.
9611 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
9612 object, as the fourth argument to code_convert_string.
9613
52283633 9614 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
e8413c3b
KR
9615 (Fset_fontset_font): Use EQ to compare lisp objects.
9616
7c752c80
KR
96172000-04-05 Ken Raeburn <raeburn@gnu.org>
9618
c0333abc
KR
9619 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
9620 a pointer that looks like a lisp object.
9621 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
9622 zero, instead see whether it's an integer object, since they can't
9623 have intervals.
9624 (GET_INTERVAL_OBJECT): Simply assign to the destination.
9625
52283633
SM
9626 * dispnew.c (allocate_matrices_for_frame_redisplay)
9627 (direct_output_forward_char): Use X(U)INT and make_number as needed
7c752c80
KR
9628 to convert between (unsigned) int values and lisp integers.
9629 * keyboard.c (read_key_sequence): Likewise.
9630 * lread.c (substitute_object_recurse): Likewise.
9631 * fns.c (concat, hash_lookup, hash_remove): Likewise.
52283633
SM
9632 * minibuf.c (do_completion, Fminibuffer_complete_word)
9633 (Fminibuffer_completion_help): Likewise.
7c752c80
KR
9634 * term.c (produce_special_glyphs): Likewise.
9635
9636 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
9637 * print.c (print_preprocess, print_object): Likewise.
9638
9639 * search.c (compile_pattern): Use NILP when checking for nil.
9640
74e49b38
KR
9641 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
9642 __OPTIMIZE__]: Provide a GNU C macro version that handles
9643 lisp-object unions.
9644 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
9645 field, to better cope with ENABLE_CHECKING and calls that modify a
9646 Lisp_Object using its old value.
9647
685e5ed2
GM
96482000-04-04 Gerd Moellmann <gerd@gnu.org>
9649
c407c570
GM
9650 * window.c (compare_window_configurations): Signal an error
9651 if parameters C1 or C2 aren't window configurations.
9652
685e5ed2
GM
9653 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
9654 AFTER_POTENTIAL_GC calls around calls to functions that can
9655 signal an error and thus invoke the debugger.
9656
587a49ab
GM
96572000-04-03 Gerd Moellmann <gerd@gnu.org>
9658
62f20204
GM
9659 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
9660 an error if decoding fails.
9661
587a49ab
GM
9662 * keyboard.c (lispy_mouse_names): Variable removed.
9663 (Vlispy_mouse_stem): New variable.
9664 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
9665 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
9666 for any mouse button number. Increase size of mouse_syms and
9667 button_down_location as needed. Call modify_event_symbol with
9668 different arguments.
9669 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
9670 Call modify_event_symbol with different arguments.
9671 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
9672 for any button number. Call modify_event_symbol with different
9673 arguments.
9674 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
9675 Accept a string for NAME_ALIST_OR_STEM.
9676
9677 * lisp.h (larger_vector): Add prototype.
9678
9679 * fns.c (larger_vector): Make externally visible.
9680
9681 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
9682
2d1675e4
SM
96832000-04-02 Stefan Monnier <monnier@cs.yale.edu>
9684
9685 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
9686 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
9687 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
9688 we are between str1 and str2.
9689 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
9690 (PATFETCH): Use `TRANSLATE'.
9691 (PATFETCH_RAW): Fetch multibyte char if applicable.
9692 (PATUNFETCH): Remove.
9693 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
9694 When writing a char, write it directly into the pattern buffer rather
9695 than going needlessly through a temp char-array.
9696 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
9697 multibyte magic and remove the useless `#ifdef emacs'.
9698 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
9699 buffer.
9700
9701 * regex.h (struct re_pattern_buffer): Make field `multibyte'
9702 conditional on `emacs'.
9703
9704 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
9705
cc2d8c6b
KR
97062000-04-01 Ken Raeburn <raeburn@gnu.org>
9707
9708 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
9709 non-union-type versions of XMARK and friends here, because XMARK
9710 and friends won't work on an integer field if NO_UNION_TYPE is not
9711 defined.
52283633 9712 (make_number): Define as a function if it's not defined as a macro.
cc2d8c6b 9713
52283633 9714 * composite.c (run_composite_function): Use NILP when checking for nil.
09654086
KR
9715 (syms_of_composite): Delete local var NARGS, pass an int as first
9716 argument to Fmake_hash_table.
9717
2387b382
KR
9718 * editfns.c (text_property_stickiness): Use NILP to test
9719 Lisp_Object boolean value.
9720 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
9721 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
9722 problems reading from and changing the same lisp value in an
9723 XSETSTRING call.
9724
27660e89
GM
97252000-04-01 Gerd Moellmann <gerd@gnu.org>
9726
9727 * term.c (TN_no_color_video): New variable.
9728 (term_init): Intitialize TN_no_color_video.
9729 (enum no_color_bit): New enumeration.
9730 (MAY_USE_WITH_COLORS_P): New macro.
9731 (turn_on_face): Use it to determine if attributes may be used
9732 combined with colors.
9733
3578db3c
KR
97342000-04-01 Ken Raeburn <raeburn@gnu.org>
9735
9736 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
52283633 9737 with int lvalues via casts; instead, just yield lisp object lvalues.
3578db3c
KR
9738 (enlarge_window): Variable sizep now points to Lisp_Object. Use
9739 proper accessor macros.
9740 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
9741 (grow_mini_window): Fix typo getting int value of root->height.
9742
6fc556fd
KR
9743 * xdisp.c (compute_string_pos): Fix order of arguments to
9744 string_pos_nchars_ahead.
9745 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
9746 count arg to variable-arg routines like Frun_hook_with_args and
9747 Fformat.
587a49ab
GM
9748 (back_to_previous_visible_line_start)
9749 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
9750 fixed-arg routines like Fget_char_property and Fmake_string.
9751 (reconsider_clip_changes): Use XINT when comparing integer lisp
9752 objects, or passing them as int arguments.
587a49ab
GM
9753 (mark_window_display_accurate, insert_left_trunc_glyphs)
9754 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
9755 storing or passing integer values as lisp objects.
9756 (set_cursor_from_row, highlight_trailing_whitespace): Use
9757 INTEGERP, not implicit test against zero, for glyph object.
9758 (try_window_id): Don't use make_number when we want an int value.
9759
9760 * xfaces.c (xlfd_symbolic_value): Make last argument a
9761 Lisp_Object, to be consistent with callers.
9762 (Fbitmap_spec_p): Use XINT to get numeric value of height.
9763 (lface_hash): Apply XFASTINT to lisp values before folding in.
9764
9765 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
9766 fill in window width and height. Pass an int, not a lisp object,
9767 as first arg to Finsert.
9768
6e7b2457
GM
97692000-04-01 Gerd Moellmann <gerd@gnu.org>
9770
610d841e
GM
9771 * xfaces.c (realize_basic_faces): Block input while realizing
9772 the faces.
9773
6e7b2457
GM
9774 * keyboard.c (lispy_mouse_names): Add additional mouse names.
9775
9776 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
9777
aa110c0c
GM
97782000-03-31 Gerd Moellmann <gerd@gnu.org>
9779
9780 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 9781 or ASCII, handle case that per-char metric is null.
aa110c0c 9782
8801a864
KR
97832000-03-30 Ken Raeburn <raeburn@gnu.org>
9784
c6129d7e
KR
9785 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
9786
52283633
SM
9787 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
9788 (XSUBR, XBUFFER): Verify correct object type before returning
8801a864
KR
9789 pointer, using eassert.
9790 * frame.h (XFRAME): Likewise.
9791
52283633
SM
9792 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
9793 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
9794 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
8801a864 9795 * data.c (set_internal): Likewise.
52283633
SM
9796 * dispextern.h (WINDOW_WANTS_MODELINE_P)
9797 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
8801a864
KR
9798 * fileio.c (auto_save_1): Likewise.
9799 * insdel.c (check_markers): Likewise.
9800 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
9801 * undo.c (record_insert): Likewise.
9802 * vmsproc.c (child_sig): Likewise.
9803 * window.c (unshow_buffer, window_loop): Likewise.
9804 * xterm.c (x_erase_phys_cursor): Likewise.
9805
8e7af858
GM
98062000-03-30 Gerd Moellmann <gerd@gnu.org>
9807
9808 * xfns.c (free_image_cache): Free the cache structure itself
9809 last, after all its members have been freed.
9810
9811 * lisp.h (xstrdup): Add prototype.
9812
9813 * alloc.c (xstrdup): Moved here from xfaces.c.
9814 (allocating_for_lisp): Variable removed.
52283633 9815 (lisp_malloc): Block input around the calls to malloc and mem_insert.
8e7af858
GM
9816
9817 * xfaces.c (realize_tty_face): Use find_symbol_value instead
9818 of Fsymbol_value.
9819 (xstrdup): Moved to alloc.c.
9820
e0b8c689
KR
98212000-03-29 Ken Raeburn <raeburn@gnu.org>
9822
b96f9fb7
KR
9823 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
9824
9825 * emacs.c (main): Fix sense of no-loadup test.
9826
e0b8c689
KR
9827 * config.in (ENABLE_CHECKING): Undef.
9828
9829 * lisp.h (struct interval): Replace "parent" field with a union of
9830 interval pointer and Lisp_Object; add new bitfield to use as
9831 discriminant. Change other flag fields to bitfields.
9832 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
52283633
SM
9833 is defined and the supplied test fails, print a message and abort.
9834 (eassert): New macro. Use CHECK to provide an assert-like facility.
e0b8c689
KR
9835
9836 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
9837 pointers; abort if the value looks like a lisp object.
52283633
SM
9838 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
9839 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
e0b8c689
KR
9840 Modify for new interval parent definition.
9841
52283633
SM
9842 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
9843 (UNMARK_BALANCE_INTERVALS): Update references that need an
e0b8c689
KR
9844 addressable lisp object in the interval structure.
9845 (die): New function.
9846 (suppress_checking): New variable.
9847
9848 * intervals.c (interval_start_pos): Just return 0 if there's no
9849 parent object.
9850
f83c5440
GM
98512000-03-29 Gerd Moellmann <gerd@gnu.org>
9852
9853 * lread.c (read1): Accept `.' (period) as symbol start like in CL
9854 and earlier Emacs versions.
9855
9856 * keyboard.c (Ftop_level): Cancel busy-cursor.
9857
9858 * eval.c (call_debugger): Cancel busy-cursor.
9859
fdce64ff
KH
98602000-03-29 Kenichi Handa <handa@etl.go.jp>
9861
9862 * search.c (Freplace_match): Adjust multibyteness of the current
52283633 9863 buffer and NEWTEXT. Free allocated memory before signaling an error.
fdce64ff 9864
f6a3f532
SM
98652000-03-28 Stefan Monnier <monnier@cs.yale.edu>
9866
9867 * regex.c (analyse_first): New function obtained by ripping out most
9868 of re_compile_fastmap and generalizing it a little bit so that it
9869 can also just return whether a given (sub)pattern can match the empty
9870 string or not.
9871 (regex_compile): Use `analyse_first' to decide whether the loop-check
9872 needs to be done or not for *, +, *? and +? (the loop check is costly
9873 for non-greedy repetition).
9874 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
9875
e9b309ac
DL
98762000-03-28 Dave Love <fx@gnu.org>
9877
52283633 9878 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
bb15bd9a 9879
e9b309ac
DL
9880 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
9881
ed0767d8
SM
98822000-03-27 Stefan Monnier <monnier@cs.yale.edu>
9883
9884 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
9885 an expression.
9886 (enum re_opcode_t): Update description of succeed_n.
9887 (PATFETCH): Always define.
9888 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
9889 operators, char classes, shy-groups and intervals).
9890 Optimize special cases of intervals so as to only use succeed_n and
9891 jump_n when really needed.
9892 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
9893 that we don't have to handle the special cases any more.
9894 Simplify on_failure_jump handling as well.
9895
e11e7e46
JR
98962000-03-28 Jason Rumney <jasonr@gnu.org>
9897
9898 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
9899
88faab89
GM
99002000-03-27 Gerd Moellmann <gerd@gnu.org>
9901
182ff242
GM
9902 * s/freebsd.h (GC_SETJMP_WORKS): Define.
9903
9904 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 9905
182ff242
GM
9906 * alloc.c (mark_maybe_object): New function.
9907 (mark_memory): Use it.
9908 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
9909 (setjmp_tested_p, longjmp_done): New variables.
9910 (test_setjmp): New function.
9911 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
9912 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
9913
c1005d06
GM
9914 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
9915 to DEC_TEXT_POS and INC_TEXT_POS.
9916
9917 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
9918 with parameter MULTIBYTE_P.
9919
52283633 9920 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
c1005d06 9921
7439e5b9 9922 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
9923 buffers because it looks for multibyte character byte sequences
9924 which don't exist in unibyte text.
7439e5b9 9925
d9c545da
GM
9926 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
9927
11fd416e 9928 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
9929 [DEBUG_X_COLORS]: New functions.
9930 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
9931
9932 * xfns.c (x_set_cursor_color): Get color reference counts right.
9933
9934 * xterm.c (x_copy_color): New function.
9935 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
9936
9937 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
9938 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
9939 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
9940 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
9941 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
9942 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
9943 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
9944 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
9945 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
9946 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
9947
11fd416e
GM
9948 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
9949 names for handling per-buffer variables.
d9c545da
GM
9950
9951 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
9952 instead of MAX_BUFFER_LOCAL_VARS.
9953 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
9954
9955 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
9956
88faab89
GM
9957 * xfns.c (x_specified_cursor_type): New function.
9958 (x_set_cursor_type): Use it.
9959
9960 * buffer.h (struct buffer): Add cursor_type.
9961
d80f42b7
SM
99622000-03-26 Stefan Monnier <monnier@cs.yale.edu>
9963
9964 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
52283633
SM
9965 (print_partial_compiled_pattern, re_compile_fastmap):
9966 Handle new opcode.
d80f42b7
SM
9967 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
9968 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
9969 executing it as well as when popping it off the stack to find infinite
9970 loops in non-greedy repetition operators.
9971
89e80928
GM
99722000-03-26 Gerd Moellmann <gerd@gnu.org>
9973
3d4ff2dd
GM
9974 * doc.c (Qfunction_documentation): New variable.
9975 (syms_of_doc): Initialize Qfunction_documentation.
9976 (Fdocumentation): If FUNCTION is a symbol with non-nil
9977 `function-documentation' property, return a documentation derived
9978 from that.
9979
bd96bd79
GM
9980 * buffer.c (syms_of_buffer): Add default-cursor-type.
9981 (init_buffer_once): Don't let cursor_type have a local value
9982 in every buffer.
9983
19d1bc27
GM
9984 * xterm.c (x_display_and_set_cursor): Choose cursor depending
9985 on buffer-local value of cursor_type.
9986 (x_draw_bar_cursor): Add parameter WIDTH.
9987
9988 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
9989 (init_buffer_once): Set default cursor_type value to t.
9990 Mark cursor_type as local everywhere.
9991 (syms_of_buffer): New per-buffer variable cursor-type.
9992
89e80928
GM
9993 * buffer.h (struct buffer): Remove member local_var_flags,
9994 add local_flags.
9995 (MAX_BUFFER_LOCAL_VARS): New macro.
9996 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
9997 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
9998 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
9999 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
10000
52283633 10001 * print.c (print_object): Use new macros for per-buffer variables.
89e80928
GM
10002
10003 * category.c (Fset_category_table): Use new macros for per-buffer
10004 variables.
10005
10006 * buffer.c (buffer_permanent_local_flags): Make a char array.
10007 (max_buffer_local_idx): New variable.
10008 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
10009 for new handling of per-buffer variables.
10010 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
10011 (init_buffer_once): Initialize per-buffer vars differently.
10012 Set max_buffer_local_idx.
10013
10014 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
10015 variables.
10016
52283633 10017 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
89e80928
GM
10018
10019 * data.c (do_symval_forwarding, store_symval_forwarding)
10020 (find_symbol_value, set_internal, default_value, Fset_default)
10021 (Fkill_local_variable, Flocal_variable_p): Use new macros for
10022 per-buffer variables.
10023
10024 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
10025
9a0dd3dc
GM
100262000-03-24 Gerd Moellmann <gerd@gnu.org>
10027
b68c375f
GM
10028 * xterm.c (x_term_init): Unblock input around call1 of
10029 Qvendor_specific_keysyms.
10030
9a0dd3dc
GM
10031 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
10032 (find_defun_start): Consider an open parenthesis in column 0
10033 a defun start only if open_paren_in_column_0_is_defun_start is set.
10034 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
10035
7973e637
SM
100362000-03-24 Stefan Monnier <monnier@cs.yale.edu>
10037
10038 * eval.c (Fautoload): Add entry in load-history (if after dump).
10039 * lread.c (load-history): Update docstring.
10040
39210e90
GM
100412000-03-24 Gerd Moellmann <gerd@gnu.org>
10042
10043 * indent.c (Fvertical_motion): Always use the current buffer.
10044 Temporarily change the window's buffer, if necessary.
10045
72db3ab5
GM
100462000-03-23 Gerd Moellmann <gerd@gnu.org>
10047
10048 * xterm.c (fast_find_position): Make sure not to consider rows
10049 not visible in the window.
10050
990b2375
SM
100512000-03-22 Stefan Monnier <monnier@cs.yale.edu>
10052
10053 * regex.c (enum syntaxcode): Provide default for non-Emacs.
10054 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
10055
ff4df011
JR
100562000-03-22 Jason Rumney <jasonr@gnu.org>
10057
10058 * w32menu.c (single_submenu): Set help string to NULL if none.
10059 (w32_menu_show): Set help string correctly.
10060 (add-menu-item): Set help string in MIIM_DATA for menu item.
10061 Load SetMenuItemInfoA explicitly.
10062 (w32_menu_display_help): New function.
427ec082 10063
ff4df011
JR
10064 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
10065 (QCdata): Moved to xdisp.c.
10066
10067 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
10068 (Vw32_charset_to_codepage_alist): Removed.
10069 (Vw32_charset_info_alist): New variable.
52283633
SM
10070 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
10071 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
10072 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
ff4df011
JR
10073 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
10074 with TODO comment.
10075 (w32_codepage_for_font): Use Vw32_charset_info_alist.
10076 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
10077 Define Vw32_charset_info_alist and w32_charset symbols.
10078
100792000-03-22 Jason Rumney <jasonr@gnu.org>
10080
10081 * makefile.nt (w32bdf.obj): Update dependencies.
10082
10083 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
10084
10085 * w32fns.c: Include fontset.h after dispextern.h.
10086 (Fx_create_frame): Do not create fontset.
10087 (w32_load_system_font): Doc fix.
10088 (Fx_close_connection): Free full_name if it is not shared.
10089
10090 * w32term.c: Include fontset.h after dispextern.h.
52283633
SM
10091 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
10092 Callers updated.
ff4df011
JR
10093 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
10094 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
10095 (w32_font_is_double_byte): New function, needs body.
10096 (x_append_glyph): Set glyph->glyph_not_available_p.
10097 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
10098 it->charset. If it->multibyte_p is zero and it->c is a multibyte
10099 character, convert it to a unibyte character.
10100 (struct glyph_string): Delete member `charset'.
10101 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
10102 calculating it is found.
10103 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
10104 the case that per char metric is not available correctly.
10105 (x_fill_glyph_string): Handle the case that the specific glyph is
10106 not available correctly.
10107 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
10108 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
10109 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
10110 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
10111 fontset. Don't call FS_LOAD_FONT.
10112
439d5cb4
KR
101132000-03-22 Ken Raeburn <raeburn@gnu.org>
10114
10115 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
10116 (INT_LISPLIKE): New macro.
10117 (NULL_INTERVAL_P): Use it.
52283633
SM
10118 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
10119 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
10120 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
439d5cb4
KR
10121
10122 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
10123 explicit references to "parent" field of struct interval and
10124 associated unclean type conversions.
52283633
SM
10125 * intervals.c (create_root_interval, root_interval, rotate_right)
10126 (rotate_left, balance_possible_root_interval, split_interval_right)
10127 (split_interval_left, interval_start_pos, find_interval)
10128 (next_interval, previous_interval, update_interval)
10129 (adjust_intervals_for_insertion, delete_node, delete_interval)
10130 (adjust_intervals_for_deletion, merge_interval_right)
10131 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
10132 (copy_intervals_to_string): Likewise.
439d5cb4
KR
10133 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
10134 Likewise.
10135 * syntax.c (update_syntax_table): Likewise.
10136
10137 * intervals.c (reproduce_tree_obj): New function, like
10138 reproduce_tree but takes a Lisp_Object for the parent. Declare
10139 with prototype.
10140 (graft_intervals_into_buffer): Use it when appropriate.
10141 (reproduce_tree): Declare with prototype.
10142 (balance_possible_root_interval): Check that the parent is a lisp
10143 object before trying to examine its type.
10144
ee1c5b21
GM
101452000-03-22 Gerd Moellmann <gerd@gnu.org>
10146
10147 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
10148 as strings only if both are known to be strings.
10149
10150 * s/openbsd.h (LIBS_TERMCAP): Undef.
10151
1fb352e0
SM
101522000-03-21 Stefan Monnier <monnier@cs.yale.edu>
10153
10154 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
10155 definitions for non-Emacs compilation.
10156 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
10157 outside of `#ifdef emacs'.
10158 (print_partial_compiled_pattern): Update.
10159 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
10160 (re_compile_fastmap): Merge handling of charset and charset_not (for
10161 emacs and non-emacs compilation as well).
10162 Similarly for (not)categoryspec and (not)syntaxspec.
10163 Don't use the fastmap when reaching `anychar' since the added
10164 complexity is not justified.
10165 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
10166 and (not)syntaxspec. Merge (not)categoryspec.
10167
fdaa1f77
KH
101682000-03-22 Kenichi Handa <handa@etl.go.jp>
10169
52283633
SM
10170 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
10171 (FACE_FOR_CHAR): Define them differently for the configuration of
ff1a0d8e 10172 --without-x.
fdaa1f77 10173
d152fb46
DL
101742000-03-21 Dave Love <fx@gnu.org>
10175
10176 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
10177 doc string.
10178
d2cafc8c
GM
101792000-03-21 Gerd Moellmann <gerd@gnu.org>
10180
10181 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
10182 (lface_fully_specified_p): Don't check contents of
10183 LFACE_FONT_INDEX because that attribute is optional.
10184 (realize_x_face): Remove now unwarranted xassert.
10185
9111d4b5
KH
101862000-03-21 Kenichi HANDA <handa@etl.go.jp>
10187
10188 The following changes are to make font selection based on
10189 characters, not charset. In addition, they recover fontset
10190 facilities while utilizing the new font selection mechanism.
10191
6c4bfdc0
KH
10192 * Makefile.in (fontset.o): Depend on dispextern.h.
10193
10194 * alloc.c (mark_face_cache): Don't mark face->registry.
10195
9111d4b5
KH
10196 * dispextern.h (struct glyph): New member glyph_not_available_p.
10197 Use 22 bits for face_id.
10198 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
10199 (struct face): Delete member registry, new member ascii_face.
10200 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
10201 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
10202 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
52283633 10203 (struct it): Delete member charset, new member glyph_not_available_p.
9111d4b5
KH
10204
10205 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
10206 (struct fontset_info, struct fontset_data): Structs removed.
52283633
SM
10207 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
10208 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
9111d4b5 10209 (fs_load_font, fs_query_fontset): Adjusted for new argument.
52283633
SM
10210 (fs_free_face_fontset, fontset_font_pattern)
10211 (face_suitable_for_char_p, face_for_char)
10212 (make_fontset_for_ascii_face): Extern them.
9111d4b5
KH
10213 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
10214 (FS_LOAD_FACE_FONT): New macro.
10215
10216 * fontset.c: All codes rewritten or adjusted for the change of
10217 fontset implementation. Now fontset is represented by char table.
52283633
SM
10218 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
10219 Variables removed.
9111d4b5 10220 (my_strcasecmp): Function removed.
52283633 10221 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
9111d4b5 10222 (AREF, ASIZE): New macros.
52283633
SM
10223 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
10224 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
10225 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
10226 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
10227 (fontset_id_valid_p, font_family_registry, fontset_name)
10228 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
10229 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
9111d4b5
KH
10230 New functions.
10231 (fs_load_font): New arg FACE. Caller changed.
10232 (fs_query_fontset): Argument changed. Caller changed.
10233 (Fquery_fontset): call fs_query_fontset.
10234 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
10235 Functions removed.
52283633
SM
10236 (clear_fontset_elements, check_registry_encoding)
10237 (check_fontset_name): New functions.
9111d4b5
KH
10238 (syms_of_fontset): Set char-table-extra-slots property of fontset
10239 to 3. Staticpro and initialize Vfontset_table and
10240 Vdefault_fontset. Defsubr fontset_font and fontset_list.
10241
10242 * frame.h (struct frame): Member `fontset_data' removed.
10243 (FRAME_FONTSET_DATA): Macro removed.
10244
10245 * frame.c (make_frame): Don't allocate f->fontset_data.
10246 (Fdelete_frame): Don't free f->fontset_data.
10247
6c4bfdc0
KH
10248 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
10249
9111d4b5
KH
10250 * xdisp.c (charset_at_position): Function removed.
10251 (init_iterator): Don't set member charset of struct `it'.
52283633
SM
10252 (handle_face_prop, reseat_to_string, set_iterator_to_next)
10253 (next_element_from_display_vector, insert_left_trunc_glyphs):
9111d4b5
KH
10254 Likewise.
10255 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
10256 FACE_FOR_CHARSET.
52283633
SM
10257 (get_next_display_element, append_space)
10258 (extend_face_to_end_of_line): Likewise.
9111d4b5
KH
10259
10260 * xfaces.c (Qx_charset_registry, Vface_default_registry):
10261 Variables removed.
10262 (clear_font_table, frame_update_line_height, load_face_font):
10263 Adjusted for the change of fontset implementation.
10264 (load_face_fontset_font): Function removed.
10265 (pixel_point_size): New function.
10266 (font_list): Argument type changed. Caller changed.
10267 (LFACE_FONT): New macro.
10268 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
10269 (set_lface_from_font_name): Type of arg FONTNAME is changed to
10270 Lisp_Object. Determine the font name by actually loading a font
10271 by the specified pattern. Set LFACE_FONT (lface) to the specified
10272 pattern. Even if a font is not found, don't try alternatives.
10273 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
10274 (set_font_frame_param): If `font' is specified in lface, use it.
10275 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
10276 (lface_same_font_attributes_p): Likewise.
10277 (make_realized_face): Arguent changed. Caller changed. Set
10278 face->ascii_face to face itself.
10279 (free_realized_face): Free face->fontset if face is for ASCII.
52283633
SM
10280 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
10281 (deduce_unibyte_registry, x_charset_registry): Functions removed.
9111d4b5
KH
10282 (free_realized_multibyte_face): New function.
10283 (lookup_face, lookup_named_face, lookup_derived_face): Argument
10284 changed. Caller changed.
10285 (try_font_list): Argument type changed.
10286 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
10287 (choose_face_font): Argument changed. Handle fontset properly.
10288 (choose_face_fontset_font): Function removed.
10289 (realize_default_face, realize_named_face): Don't remove the
10290 former face here.
10291 (realize_face): Argument changed. Caller changed. Remove face
52283633 10292 with the arg former_face_id in advance. Load font for the new face.
9111d4b5
KH
10293 (realize_x_face): Argument changed. Caller changed. For a
10294 multibyte character, share fontset with base_face. For a single
52283633 10295 byte character, make a new realized fontset. Don't load a font here.
9111d4b5
KH
10296 (realize_tty_face): Argument changed. Caller changed.
10297 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
10298 (face_at_buffer_position): Don't check multibyte_p for returning
10299 DEFAULT_FACE_ID.
10300 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
10301 FACE_SUITABLE_FOR_CHARSET_P.
10302 (syms_of_xfaces): Remove code for Qx_charset_registry and
10303 Vface_default_registry.
10304
6c4bfdc0
KH
10305 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
10306 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
10307 (x_per_char_metric): Don't try FONT->default_char. Even if
10308 pcm->width is zero, glyph bits may exist.
10309 (x_encode_char): Always initialize char2b->byte1.
10310 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
52283633 10311 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
9111d4b5
KH
10312 (x_append_glyph): Set glyph->glyph_not_available_p.
10313 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
10314 it->charset. Handle the case that per char metric is not
10315 available. If it->multibyte_p is zero and it->c is a multibyte
10316 character, convert it to a unibyte character.
10317 (struct glyph_string): Delete member `charset'.
10318 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
10319 the case that per char metric is not available correctly.
10320 (x_fill_glyph_string): Handle the case that the specific glyph is
10321 not available correctly.
10322 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
10323 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
10324 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
10325 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
10326 fontset. Don't call FS_LOAD_FONT.
10327
10328 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
10329 (x_create_tip_frame): Likewise.
10330 (Fx_close_connection): Free full_name of font_info.
10331
10332 * fns.c (optimize_sub_char_table): New function.
10333 (Foptimize_char_table): New function.
10334 (syms_of_fns): Defsubr Soptimize_char_table.
10335
b33dd3b0
GM
103362000-03-20 Gerd Moellmann <gerd@gnu.org>
10337
10338 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
10339 only if buffer is displayed in some window.
10340
10341 * xdisp.c (handle_single_display_prop): Initialize local `value'.
10342 (try_window_reusing_current_matrix): Don't call scroll run
10343 function if run's current and desired position are the same;
10344 this prevents cursor flickering.
10345
4e8a9132
SM
103462000-03-19 Stefan Monnier <monnier@cs.yale.edu>
10347
10348 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
10349
10350 * regex.c (RE_STRING_CHAR): New macro.
10351 (GET_CHAR_AFER_2): Remove.
10352 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
10353 (enum re_opcode_t): Remove on_failure_jump_exclusive.
10354 (print_partial_compiled_pattern, re_compile_fastmap)
10355 (re_match_2_internal): Remove on_failure_jump_exclusive.
10356 (regex_compile): Turn optimizable P+ loops into PP*, so that the
10357 optimization only need to work for * (ie. can use of_keep_string_jump).
10358 Remove the special case for .*\n since it is now covered by the general
10359 optimization.
10360 (re_search_2): Don't bother with `room'.
10361 (skip_one_char): New function.
10362 (skip_noops): Simplify since `memory' is not needed any more.
10363 (mutually_exclusive_p): Restructure slightly to use `switch' and
10364 add handling for "all" remaining cases.
10365 (re_match_2_internal): Change on_failure_jump_smart to use
10366 on_failure_keep_string_jump (and redirect the end-of-loop jump)
10367 rather than on_failure_jump_exclusive.
10368
2136fdd4
GM
103692000-03-19 Gerd Moellmann <gerd@gnu.org>
10370
10371 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
10372 number of bits per RGB because it's everywhere used as the depth
10373 of the visual.
10374
10375 * term.c (calculate_costs): Remove code dealing with X frames.
10376
18e21ce8 103772000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
10378
10379 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
10380
d7b511c4
GM
103812000-03-18 Gerd Moellmann <gerd@gnu.org>
10382
10383 * lread.c (read_integer): Unread the last char not consumed.
10384
16b5d424
GM
103852000-03-17 Gerd Moellmann <gerd@gnu.org>
10386
10387 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 10388 which are in the process of being deleted.
16b5d424 10389
1fa28578
GM
103902000-03-16 Gerd Moellmann <gerd@gnu.org>
10391
83488cce
GM
10392 * Makefile.in (mostlyclean): Add `*.core'.
10393 (clean): Add `bootstrap-emacs'.
10394
1fa28578
GM
10395 * lread.c (read_integer): New function.
10396 (read1): Support read syntax #o, #x, #b, #r.
10397
99633e97
SM
103982000-03-15 Stefan Monnier <monnier@cs.yale.edu>
10399
1fa28578
GM
10400 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
10401 make sure POINTER_TO_OFFSET gives the same value before and after
10402 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
10403 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
10404 (debug): Now only active if > 0 rather than if != 0.
10405 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
10406 (print_partial_compiled_pattern): Add missing `succeed' case. Use
10407 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
10408 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
10409 (store_op1, store_op2, insert_op1, insert_op2)
10410 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
10411 (group_in_compile_stack): Move to after its arg's types are
10412 declared and add a prototype.
99633e97 10413 (PATFETCH): Define in terms of PATFETCH_RAW.
52283633 10414 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
99633e97 10415 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
10416 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
10417 indentation of the greedy-op and shy-group code.
99633e97
SM
10418 (at_(beg|end)line_loc_p): Fix argument's types.
10419 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
10420 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
10421 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
10422 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
10423 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
10424 QUIT unconditionally.
99633e97 10425
699238d9
GM
104262000-03-15 Gerd Moellmann <gerd@gnu.org>
10427
10428 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
10429 a sole completion.
10430
10431 * process.c (send_process): Add a hint that the function
10432 can call Lisp code to its comment.
10433
10434 * lread.c (load_dangerous_libraries): New variable.
10435 (Vbytecomp_version_regexp): New variable.
10436 (safe_to_load_p): New function.
10437 (Fload): Handle files not compiled with Emacs specially.
10438 (syms_of_lread): New Lisp variable load-dangerous-libraries.
10439
34e23e5a
GM
104402000-03-14 Gerd Moellmann <gerd@gnu.org>
10441
9c763cca
GM
10442 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
10443
10444 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
10445 support functions only if HAVE_X11R6_XIM is defined.
10446 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
10447
10448 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
10449
10450 * xfns.c (X_I18N_INHIBITED): Don't define.
52283633 10451 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
9c763cca
GM
10452 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
10453
10454 * config.in (HAVE_X_I18N): Moved here from xterm.h.
10455 (HAVE_X11R6_XIM): Define.
10456
10457 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
10458
34e23e5a
GM
10459 * xterm.c (x_term_init): Add support for X resource `synchronous'.
10460 If set, call XSynchronize.
10461
66f0296e
SM
104622000-03-13 Stefan Monnier <monnier@cs.yale.edu>
10463
34e23e5a
GM
10464 * regex.c: Declare a new type `re_char' used throughout the code
10465 for the string char type. It's `const unsigned char' to match the
10466 rest of Emacs. Consistently make sure all pointers to strings use
52283633 10467 it and make sure all pointers into the pattern use `unsigned char'.
66f0296e 10468 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
10469 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
10470 code duplication.
66f0296e
SM
10471
10472 * charset.h (GET_CHAR_AFTER_2): Remove.
10473 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
10474
854a025c
KR
104752000-03-12 Ken Raeburn <raeburn@gnu.org>
10476
10477 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
10478 variable before the invocation of YMF_PASS_LDFLAGS, in case both
10479 of them try to use backquotes.
10480
b9d2c7e2
DL
104812000-03-12 Dave Love <fx@gnu.org>
10482
10483 * unexelf.c: Restore changes of 1999-10-19.
10484 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
10485 fix its type and alignment; copy it from current process.
10486
5e5dff44
GM
104872000-03-12 Gerd Moellmann <gerd@gnu.org>
10488
9b2f3c38
GM
10489 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
10490 has been found. Fix bug not computing timer's predecessor.
10491
427ec082 10492 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
10493 file name.
10494
e1cff360
GM
10495 * window.c (Fsave_window_excursion): Doc fix.
10496
52283633 10497 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
5e5dff44 10498
e411ce4b
EZ
104992000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
10500
10501 * msdos.c (vga_installed): New function, code moved from
10502 dos_set_window_size.
10503 (Qbar, Qcursor_type, outside_cursor): New variables.
10504 (syms_of_msdos): Intern and staticpro them.
10505 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
10506 shape used outside Emacs when called for the first time.
10507 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
10508 cursor shape used outside Emacs.
10509 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
10510 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
10511 type has changed.
10512 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
10513 parameters specify the cursor. Make qreverse a global
10514 variable (renamed to Qreverse).
10515
80460654
GM
105162000-03-09 Gerd Moellmann <gerd@gnu.org>
10517
10518 * fns.c (Fy_or_n_p): Cancel busy-cursor.
10519
95cd4c40
SM
105202000-03-08 Stefan Monnier <monnier@cs.yale.edu>
10521
10522 This is a big redesign of failure-stack and register handling, prompted
10523 by bugs revealed when trying to add shy-groups. Overall, what happened
10524 is that loops are now structured a little differently, groups can be
10525 shy and the code is a little simpler.
10526
10527 * regex.h: Update the copyright.
10528 (RE_SHY_GROUPS): New value.
10529 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
10530 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
10531
80460654
GM
10532 * regex.c (enum re_opcode_t): Remove jump_past_alt,
10533 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
10534 on_failure_jump_(exclusive, loop and smart). Also fix the comment
10535 for (start|stop)_memory since they now only take one argument (the
10536 second has becomes unnecessary).
52283633 10537 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
80460654
GM
10538 (print_compiled_pattern): Use %ld to printf long ints and flush to
10539 make debugging a little easier.
95cd4c40
SM
10540 (union fail_stack_elt): Make the integer unsigned.
10541 (struct fail_stack_type): Add a `frame' element.
10542 (INIT_FAIL_STACK): Init `frame' as well.
10543 (POP_PATTERN_OP): New macro for re_compile_fastmap.
10544 (DEBUG_PUSH, DEBUG_POP): Remove.
10545 (NUM_REG_ITEMS): Remove.
10546 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
10547 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
10548 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 10549 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
52283633
SM
10550 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
10551 New macros.
80460654
GM
10552 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
10553 address pushed is not the destination of the jump but the source
10554 of it instead.
95cd4c40
SM
10555 (NUM_FAILURE_ITEMS): Remove.
10556 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
10557 registers before the actual failure point). Don't hardcode any
10558 meaning for str==NULL anymore.
95cd4c40 10559 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
10560 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
10561 Remove.
95cd4c40
SM
10562 (REG_UNSET_VALUE): Use NULL (why not?).
10563 (compile_range): Remove declaration since it doesn't exist.
10564 (struct compile_stack_elt_t): Remove inner_group_offset.
10565 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
10566 (regex_grow_registers): Remove dead code.
10567 (FIXUP_ALT_JUMP): New macro.
80460654
GM
10568 (regex_compile): Add shy-groups Change loops to use
10569 on_failure_jump_smart&jump instead of
10570 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
10571 initial (dummy_failure_)jump. Remove c1_base (looks like unused
10572 variable to me). Use `jump' instead of `jump_past_alt' and don't
10573 bother with push_dummy_failure in alternatives since it is now
10574 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
10575 emacs' for (re)allocating the stack.
10576 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
10577 from loop when bufp->can_be_null rather than jumping to `done'.
10578 Avoid jumping backwards so as to ensure termination. Use
10579 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
10580 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 10581 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
10582 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
10583 improve mutually_exclusive_p to handle ".+\n".
52283633
SM
10584 (lowest_active_reg, highest_active_reg)
10585 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
80460654
GM
10586 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
10587 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
10588 variables. Push register (in `start_memory') on the stack rather
10589 than storing it in old_reg(start|end). Remove the cycle detection
10590 from `stop_memory', replaced by the use of on_failure_jump_loop
10591 for greedy loops. Add code for the new on_failure_jump_<foo>.
10592 Remove ad-hoc code in `on_failure_jump' to push more registers in
10593 the case of a loop. Take out code from `maybe_pop_jump' into
10594 separate functions and adapt it to the semantics of
10595 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
10596 and push_dummy_failure. Remove dummy_failure handling and
10597 handling of `failures to jump to on_failure_jump' (this last one
10598 was already dead code, it seems).
10599 (group_match_null_string_p, alt_match_null_string_p)
10600 (common_op_match_null_string_p): Remove.
95cd4c40 10601
7397acc4
DL
106022000-03-08 Dave Love <fx@gnu.org>
10603
10604 * config.in: Don't depend on __STDC__ for volatile.
10605 Add POINTER_TYPE, PTR, PROTOTYPES.
10606
10607 * hftctl.c, strftime.c: Use PROTOTYPES.
10608 * eval.c (find_handler_clause): Likewise.
10609
10610 * mem-limits.h: Use POINTER_TYPE.
10611
10612 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
10613 (memory_warnings): Declare using POINTER_TYPE.
10614
5e91ff9e
GM
106152000-03-08 Gerd Moellmann <gerd@gnu.org>
10616
feab4fba
GM
10617 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
10618
52283633 10619 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
25edb08f 10620
5e91ff9e
GM
10621 * xfns.c: Remove obsolete code in #if 0.
10622 (Fx_focus_frame): New function.
10623
a735b7e1
KH
106242000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
10625
10626 * coding.c (coding_category_name): Add coding-category-utf-8,
10627 coding-category-utf-16-be, coding-category-utf-16-le.
10628 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
10629 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
10630 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
10631 (detect_coding_utf_8): New function.
10632 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
10633 UTF_16_LOW_SURROGATE_P): New macros.
10634 (detect_coding_utf_16): New function
10635 (detect_coding_mask): When priorities are specified, skip any
10636 categories that have `nil' coding-system. Fix bug of returning
10637 wrong mask when PRIORITIES is specified and detect_coding_XXX()
10638 returns a mask not set in PRIORITIES.
10639 (detect_eol_type_in_2_octet_form): New function.
10640 (detect_eol): selects detect_eol_type_XXX to call according to
10641 cooding->category_idx.
10642 (detect_coding_system): Remove `nil' coding-system in the result.
10643 (Fupdate_coding_systems_internal): Update all coding-categories.
10644
52283633
SM
10645 * coding.h (CODING_CATEGORY_IDX_UTF_8)
10646 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
10647 New macros.
10648 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
10649 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
10650 (CODING_CATEGORY_IDX_UTF_16_LE)
10651 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
10652 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
a735b7e1
KH
10653 (CODING_CATEGORY_MASK_ANY): Include the above macros.
10654 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
10655
9994cc69
GM
106562000-03-07 Gerd Moellmann <gerd@gnu.org>
10657
e9b4e5ff
GM
10658 * doc.c (Fdocumentation_property): If value is not a string,
10659 and doesn't refer to etc/DOC, evaluate it to obtain a string.
10660
f7daf1e1
GM
10661 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
10662 close the display with XtCloseDisplay. This caused a bus error
10663 on OpenWindows.
10664
9994cc69
GM
10665 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
10666 complete but not unique.
10667
4336c705
GM
106682000-03-06 Gerd Moellmann <gerd@gnu.org>
10669
18bb0684
GM
10670 * process.c (send_process): Remove local variable `procname' that
10671 might become invalid when a GC happens. Instead, access the
10672 process name slot directly.
10673
4336c705
GM
10674 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
10675 orig_height if set.
10676
10677 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
10678 orig_height if set.
10679
515d0d0e
EZ
106802000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
10681
10682 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
10683 glyph matrices have been freed.
10684
100b3cbb
GM
106852000-03-05 Gerd Moellmann <gerd@gnu.org>
10686
50df5e5a 10687 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 10688 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
10689
10690 * xfns.c (QCdata): Moved to xdisp.c.
10691
10692 * xdisp.c (QCdata): Moved here from xfns.c.
10693 (syms_of_xdisp): Initialize QCdata.
10694
10695 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
10696
10697 * window.c (coordinates_in_window): Use
10698 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
10699 FRAME_INTERNAL_BORDER_WIDTH.
10700
100b3cbb 10701 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 10702 it is obviously invalid.
100b3cbb
GM
10703
10704 * xterm.c (x_term_init): Create a colormap if not using the
10705 default visual.
10706
10707 * xterm.h (select_visual): Change prototype.
10708
10709 * xfns.c (select_visual): Rewritten. Recognize user-specified
10710 visual classes.
10711 (visual_classes): New variable.
10712
64d739c4
GM
107132000-03-04 Gerd Moellmann <gerd@gnu.org>
10714
10715 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
10716 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
10717 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
52283633 10718 (x_decode_color): Don't handle allocation of white and black specially.
64d739c4
GM
10719 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
10720 XtNcolormap resources.
10721 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
10722 (Fx_create_frame): Initialize color members of x_output structure.
10723 (xpm_load): Pass colormap to XPM lib.
10724
10725 * xfaces.c (x_free_colors): Access colormap of frame using
10726 FRAME_X_COLORMAP. Be paranoid about freeing black and white
10727 when default colormap is used.
10728
10729 * xterm.c (x_term_init): Set Colormap member of x_display_info
10730 structure. Copy colormap if resource `privateColormap' is
10731 specified (PseudoColor only).
10732 (x_setup_relief_color): Access colormap of frame using
10733 FRAME_X_COLORMAP.
10734
10735 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
10736 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
10737
c3cee013
JR
107382000-03-04 Jason Rumney <jasonr@gnu.org>
10739
10740 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
10741 other non-platform-specific equivalents.
64d739c4 10742 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
10743 specific functions and macros as their w32 equivalents where
10744 non-platform-specifics are not available.
10745 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
10746 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
10747 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
10748 (frame_update_line_height): Use macros to access f->output_data.
10749 (defined_color): Remove FIXME comments; fixed.
10750 (x_face_list_fonts, prepare_face_for_display): Put X specifics
10751 into #ifdef blocks. Add WINDOWSNT blocks.
10752 (Fx_list_fonts): Use macros for accessing font data.
10753 (set_lface_from_font_name): Different default fonts for X and
10754 WINDOWSNT.
10755 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
10756 scalable for backward compatibility.
64d739c4 10757 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
10758 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
10759
64d739c4 10760 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
10761 syms_of_w32faces.
10762
10763 * makefile.nt (w32faces.obj): Remove.
10764 (xfaces.obj): Add.
10765
807cc41c
JR
107662000-03-03 Jason Rumney <jasonr@gnu.org>
10767
10768 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
10769 correct parameters.
10770
0007072a
KR
107712000-03-03 Ken Raeburn <raeburn@gnu.org>
10772
10773 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
10774 standard ELF definitions here if the system header does not.
10775
71a6ba55
GM
107762000-03-03 Gerd Moellmann <gerd@gnu.org>
10777
10778 * xterm.c (PER_CHAR_METRIC): Removed.
10779 (x_per_char_metric_1, x_default_char): New functions.
10780 (x_per_char_metric): If font's default char is invalid, return
10781 metrics of a suitably chosen usable default char.
10782 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
10783 char, replace occurrences of unprintable chars with a suitably
10784 chosen usable default char.
71a6ba55 10785
900fa1f1
GM
107862000-03-02 Gerd Moellmann <gerd@gnu.org>
10787
42f55fe0
GM
10788 * xterm.c (note_mouse_highlight): Return quickly if frame's
10789 glyph matrices have been freed.
10790
10791 * dispnew.c (free_glyphs): Block input while freeing matrices.
10792
900fa1f1
GM
10793 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
10794
52283633
SM
10795 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
10796 Use x_free_colors.
900fa1f1
GM
10797
10798 * dispextern.h (x_free_colors): Add prototype.
10799
10800 * xfaces.c (x_free_colors): New function.
10801 (unload_color, free_face_colors): Use it.
10802
2f950292
EZ
108032000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
10804
10805 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
10806
10807 * window.c [MSDOS]: Include msdos.h.
10808
54d04320
DL
108092000-03-02 Dave Love <fx@gnu.org>
10810
10811 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
10812
10813 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
10814 set C_OPTIMIZE_SWITCH for gcc.
10815
0ba93ac4
KH
108162000-03-02 Kenichi Handa <handa@etl.go.jp>
10817
10818 * coding.c (coding_save_composition): Be sure to allocate
10819 composition data area in coding even if there's no composition in
10820 the current run.
10821
a2bc11d4
JR
108222000-03-01 Jason Rumney <jasonr@gnu.org>
10823
10824 * w32term.c: Equivalent changes to those made to xterm.c on
10825 2000-02-25 and 2000-02-24.
10826
10827 * w32fns.c: Equivalent changes to those made to xfns.c on
10828 2000-02-25 and 2000-02-21.
10829
10830 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
10831 correct line-end convention is followed.
10832
10833 * w32menu.c [HAVE_BOXES]: Remove #undef.
10834 (single_keymap_panes): Remove code for simulating checkmarks.
10835 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
10836 Remove code for drawing simulated checkmarks.
10837 (w32_menu_show): make unibyte help string correctly.
10838 (add_menu_item): draw standard Windows checkmarks. Draw radio
10839 buttons as radio buttons if possible.
10840
72d19d75
GM
108412000-03-01 Gerd Moellmann <gerd@gnu.org>
10842
2df636f4
GM
10843 * sysdep.c (start_of_text): Don't define this function for NetBSD
10844 with ELF.
10845
427ec082 10846 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
10847 Don't define.
10848 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
10849 (LINKER): Don't undef if __NetBSD__ is defined.
10850
10851 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
10852
10853 * fileio.c [__NetBSD__]: Define `unix'.
10854
72d19d75
GM
10855 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
10856
ed4d0512
GM
108572000-02-29 Gerd Moellmann <gerd@gnu.org>
10858
50b1039f
GM
10859 * atimer.c (start_atimer): Don't abort when timers are stopped.
10860 (append_atimer_lists): New function.
10861 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
10862 arbitrary lists of stopped and running atimers.
10863
ed4d0512
GM
10864 * atimer.c (cancel_atimer): Handle canceling an atimer when
10865 some timers are stopped.
10866
10867 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
10868 after canceling it.
10869
10870 * fns.c (maybe_resize_hash_table): Handle case of new size
10871 coming out as being the same as old size.
10872
387023ee
JR
108732000-02-27 Jason Rumney <jasonr@gnu.org>
10874
10875 * makefile.nt: Add atimer.h to dependencies.
10876 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
10877 * w32console.c: Only disable window system features for dispextern.h
10878 (initialize_w32_display): Build a display info for the console.
10879 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
10880 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
10881 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
10882 as 2 button mice.
10883 * w32gui.h (struct W32FontStruct): Revert last change after change
10884 to xdisp.c.
10885 * w32menu.c (single_submenu): Set up help string.
10886 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
10887 (w32_dialog_show): Set up help string.
10888 * w32term.c (w32_display_info_for_display): Remove unused function.
10889 (w32_draw_bitmap): Use pre-built bitmaps.
10890 (w32_initialize_display_info): New function to initialize parts of
10891 display info that are common to both GUI and console frames.
10892 (w32_term_init): Use w32_initialize_display_info. Do not set
10893 Vw32_num_mouse_buttons here, as it is not called for console
10894 frames. Build bitmaps for indicating truncated lines etc.
10895 (x_delete_display): Destroy pre-built bitmaps.
10896 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
10897 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
10898
4516715a
DL
108992000-02-27 Dave Love <fx@gnu.org>
10900
10901 * lisp.h: Add a bunch of prototypes.
10902
171ca836
KH
109032000-02-26 Kenichi Handa <handa@etl.go.jp>
10904
10905 * keyboard.c (read_char): Set `usec' correctly.
10906
4013921d
KH
109072000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
10908
10909 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
10910 `lambda', set reg[RRR] to the map index.
10911 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
10912 reg[RRR] to 0. Otherwise, set it to -1.
10913
9244a058
GM
109142000-02-25 Gerd Moellmann <gerd@gnu.org>
10915
2df636f4 10916 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 10917
18e21ce8 109182000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 10919
f43d79c1
GM
10920 * fileio.c (Ffile_symlink_p): If result starts with a `/'
10921 and contains a `:', prepend `/:'.
10922
10923 * window.c (select_window_1): If selected_window is nil,
10924 don't "swap out" the buffer's point.
10925 (Fset_window_configuration): Set selected_window to nil
10926 before calling Fselect_window.
10927 (unshow_buffer): Don't set point in buffer from window's point
10928 if another more recently selected window also shows the buffer.
10929
bed0c171
GM
109302000-02-25 Gerd Moellmann <gerd@gnu.org>
10931
449c3c52
GM
10932 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
10933
f5b58615
GM
10934 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
10935 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
52283633
SM
10936 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
10937 New variables.
f5b58615
GM
10938 (DEFAULT_BUSY_CURSOR_DELAY): New define.
10939 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
10940 (hide_busy_cursor): New functions.
10941 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
10942
10943 * minibuf.c (read_minibuf): Cancel busy-cursor.
10944
10945 * keyboard.c (command_loop_1): Call start_busy_cursor before
10946 Fcommand_execute and cancel_busy_cursor after it.
10947 (timer_check): Remove busy-cursor code.
10948 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
10949 cursor timer.
10950
10951 * process.c (wait_reading_process_input): Remove busy-cursor code.
10952
10953 * eval.c (Fsignal): Call cancel_busy_cursor instead of
10954 Fx_hide_busy_cursor.
10955
10956 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
10957 Remove prototyoes.
10958 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
10959
10960 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
10961
10962 * xterm.c (XTread_socket): Remove busy-cursor code.
10963
4eb8436f
GM
10964 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
10965 (build_frame_matrix_from_leaf_window): Put code handling
10966 glyph row's not being a slice of a frame row in #if 0.
10967 (sync_window_with_frame_matrix_rows): New function.
10968 (frame_row_to_window): New function.
10969 (mirror_line_dance): Handle copies between windows.
10970
3cb65b0e
GM
10971 * lread.c (Fload): Use `xfree' instead of `free'.
10972 (init_obarray): Use `xmalloc' instead of `malloc'.
10973
bed0c171
GM
10974 * window.c (Fset_window_buffer): Set WINDOW to the window
10975 after decoding.
2add4349
GM
10976 (coordinates_in_window): Take frame's internal border width
10977 into account.
bed0c171 10978
42088c12
GM
109792000-02-24 Gerd Moellmann <gerd@gnu.org>
10980
10981 * xterm.c (x_display_and_set_cursor): Display cursor of
10982 non-selected windows depending on the setting of
10983 cursor_in_non_selected_windows.
10984
10985 * xdisp.c (cursor_in_non_selected_windows): New variable.
10986 (syms_of_xdisp): DEFVAR_BOOL it.
10987
d1e103b2
GM
109882000-02-23 Gerd Moellmann <gerd@gnu.org>
10989
723e779c
GM
10990 * data.c (Fstring_to_number): If number is greater than what
10991 fits into an integer, return a float.
10992
d1e103b2
GM
10993 * eval.c (specbind): Remove references to
10994 keyword_symbols_constant_flag.
10995
10996 * data.c (keyword_symbols_constant_flag): Removed.
10997 (Fmakunbound, set_internal, syms_of_data): Remove references to
10998 keyword_symbols_constant_flag.
10999
11000 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
11001
214f877f
KH
110022000-02-23 Kenichi Handa <handa@etl.go.jp>
11003
11004 * syntax.c (multibyte_syntax_as_symbol): New variable.
11005 (syms_of_syntax): Declare it as a Lisp variable.
11006 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
11007 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
11008 nonzero, treat all multibyte characters as symbol.
52283633 11009 (init_syntax_once): Give syntax `word' to all multibyte characters.
214f877f 11010
130adcb7
EZ
110112000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
11012
3cb65b0e 11013 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 11014 a deleted frame.
130adcb7 11015
17cbbf95
GM
110162000-02-21 Gerd Moellmann <gerd@gnu.org>
11017
11018 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
11019
11020 * xfns.c (x_window_to_frame, x_any_window_to_frame)
11021 (x_non_menubar_window_to_frame): Check the busy-cursor window.
11022
beb0bc36
DL
110232000-02-21 Dave Love <fx@gnu.org>
11024
11025 * frame.c (Vmouse_position_function): New variable.
11026 (Fmouse_position): Use it.
11027 (syms_of_frame): Install it.
11028
11029 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
11030
1d92afcd
GM
110312000-02-20 Gerd Moellmann <gerd@gnu.org>
11032
11033 * fileio.c (Finsert_file_contents): Unbind the binding of
11034 standard-output done by temp_output_buffer_setup.
329eed9f
GM
11035
11036 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
11037 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
11038 (specbind, unbind_to): Handle most common case of non-constant
11039 symbol with trivial value specially.
11040
11041 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
11042
18e21ce8 110432000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
11044
11045 * data.c (Fmake_variable_buffer_local): Doc fix.
11046 Init found_for_buffer to 0.
11047 (Fmake_variable_frame_local): If the variable has already
11048 been buffer-local, set the check_frame field.
11049
1d4311c3
EZ
110502000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
11051
11052 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
11053 produced for CODING_MODE_LAST_BLOCK requires.
11054
2dc95ddd
DL
110552000-02-18 Dave Love <fx@gnu.org>
11056
11057 * keyboard.c (echo_keystrokes): Remove declaration.
11058 (Vecho_keystrokes) New variable.
11059 (read_char, record_menu_key, read_key_sequence): Use it to allow
11060 use of float value.
11061 (syms_of_keyboard): Change Vecho_keystrokes declaration.
11062
11063 * lread.c: Undef feature selection macros before defining.
11064
f0930f35
GM
110652000-02-18 Gerd Moellmann <gerd@gnu.org>
11066
11067 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
11068 for symbols other than the symbol in question.
11069
e3d4de90
DL
110702000-02-17 Dave Love <fx@gnu.org>
11071
11072 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
11073
0b378936
GM
110742000-02-17 Gerd Moellmann <gerd@gnu.org>
11075
d621caf7
GM
11076 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
11077
0b378936
GM
11078 * alloc.c (enum mem_type): Compile unconditionally.
11079
3b451f74
EZ
110802000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
11081
11082 * xfaces.c (tty_defined_color): Don't return faulire indication
11083 for unspecified-fg and unspecified-bg pseudo-colors.
11084
10689a01
GM
110852000-02-17 Gerd Moellmann <gerd@gnu.org>
11086
1216f5e4
GM
11087 * alloc.c (mark_object): Don't mark symbol names in pure space.
11088 (gc_sweep): Don't unmark symbol names in pure space.
11089
11090 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
11091 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
11092 [GC_MARK_STACK]: New defines.
427ec082 11093 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
11094 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
11095
11096 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
11097
11098 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
11099 allocate_buffer instead of xmalloc.
11100
11101 * alloc.c (toplevel): Include setjmp.h.
11102 (PURE_POINTER_P): New define.
11103 (enum mem_type) [GC_MARK_STACK]: New enumeration.
11104 (Vdead) [GC_MARK_STACK]: New variable.
11105 (lisp_malloc): Add parameter TYPE, call mem_insert if
11106 GC_MARK_STACK is defined.
11107 (allocate_buffer): New function.
427ec082 11108 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
11109 (free_float) [GC_MARK_STACK]: Set type to Vdead.
11110 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
11111 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
11112 (MEM_NIL) [GC_MARK_STACK]: New define.
11113 (struct mem_node) [GC_MARK_STACK]: New structure.
11114 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
11115 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
11116 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
11117 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
11118 (mark_stack) [GC_MARK_STACK]: New functions.
11119 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
11120 (clear_marks): Removed.
11121 (gc_sweep): Set free conses' car, free floats' type, free
11122 symbols' function to Vdead. Use lisp_free to free buffers.
11123 (init_alloc_once): Initialize Vdead.
11124 (survives_gc_p): Return non-zero for pure objects.
11125
11126 * alloc.c: Add comments throughout the file.
11127
2503c8b1
GM
11128 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
11129 that unblocks alarms.
11130
8389e1e2
GM
11131 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
11132 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
11133 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
11134
10689a01 11135 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 11136
bfc17d18
KH
111372000-02-17 Kenichi Handa <handa@etl.go.jp>
11138
4a09dee0
KH
11139 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
11140 avoid infinite error signaling. Allocate sufficient memory for
11141 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 11142
2b927d02
SM
111432000-02-17 Stefan Monnier <monnier@cs.yale.edu>
11144
11145 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
11146 depends on the previous behavior.
11147
b49cb764
GM
111482000-02-16 Gerd Moellmann <gerd@gnu.org>
11149
11150 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
11151
99e95407
GM
111522000-02-15 Gerd Moellmann <gerd@gnu.org>
11153
11154 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
11155
11156 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 11157 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
11158 write(2).
11159
6ffd3cf7
RS
111602000-02-15 Richard M. Stallman <rms@gnu.org>
11161
11162 * data.c (set_internal): Don't make variable buffer-local
11163 if within a let-binding for the same buffer.
11164 (let_shadows_buffer_binding_p): New function.
11165
11166 * eval.c (specbind): For buffer-local value,
11167 record the current buffer also.
11168 (unbind_to): Cope with that change.
11169
cad53475
GM
111702000-02-15 Gerd Moellmann <gerd@gnu.org>
11171
11172 * window.c (Fsave_window_excursion): Doc fix.
11173
1aa963c8
SM
111742000-02-15 Stefan Monnier <monnier@cs.yale.edu>
11175
11176 * syntax.c (back_comment): Make sure we only consider comment-starters
11177 of the relevant style and return -1 in case of a failure to find the
11178 beginning of the comment.
11179 (Fforward_comment): If back_comment fails, go back to the position just
11180 after the comment-end.
11181 (scan_lists): Add comment describing a very minor bug.
11182
b9b84fd3
SM
111832000-02-14 Stefan Monnier <monnier@cs.yale.edu>
11184
11185 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
11186 `completion-regexp-list' in the docstring.
11187
3a28db80
DL
111882000-02-14 Dave Love <fx@gnu.org>
11189
11190 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
11191
fb4a568d
SM
111922000-02-14 Stefan Monnier <monnier@cs.yale.edu>
11193
11194 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
11195 to Emacs' syntax. Also fix the comment about set/not-set meanings
11196 since Emacs syntax is not the value 0 any more.
11197 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
11198 since it's now part of RE_SYNTAX_EMACS.
11199
1063ebb5
DL
112002000-02-12 Dave Love <fx@gnu.org>
11201
52283633 11202 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
1063ebb5 11203
fb07a302
GM
112042000-02-12 Gerd Moellmann <gerd@gnu.org>
11205
11206 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
11207
aaf2320c
DL
112082000-02-12 Dave Love <fx@gnu.org>
11209
11210 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
11211
11212 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
11213 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
11214 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
11215
11216 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
11217
11218 * s/nextstep.h: Don't define HAVE_ALLOCA.
11219
11220 * config.in: Add vfork bits.
11221
eedf8bde
GM
112222000-02-12 Gerd Moellmann <gerd@gnu.org>
11223
11224 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
11225 unwind function to undo the effect of stopping atimers.
11226
52283633 11227 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
eedf8bde
GM
11228
11229 * atimer.c (stopped_atimers): New variable.
11230 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
11231 New functions.
11232
11233 * atimer.h (stop_other_atimers, run_all_atimers)
11234 (unwind_stop_other_atimers): Add function prototypes.
427ec082 11235
eedf8bde
GM
11236 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
11237
8476c2f8
KR
112382000-02-11 Ken Raeburn <raeburn@gnu.org>
11239
11240 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
11241 library may depend on jpeg.
11242 (atimer.o): Depends on atimer.c.
11243
0e85e4a3
KH
112442000-02-11 Kenichi Handa <handa@etl.go.jp>
11245
11246 * insdel.c (del_range_1): Call update_compositions.
11247 (del_range_both): Call update_compositions just once..
11248
97fa0cc8
DL
112492000-02-10 Dave Love <fx@gnu.org>
11250
11251 * xfns.c (create_frame_xic): Fix initialization of automatic
11252 aggregates for pcc.
11253
25566a3c
KH
112542000-02-09 Kenichi Handa <handa@etl.go.jp>
11255
11256 * ccl.c (CCL_MAKE_CHAR): New macro.
11257 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
11258 registers by CCL_MAKE_CHAR before calling translate_char.
11259 <CCL_TranslateCharacterConstTbl> Likewise.
11260
69da54ba
DL
112612000-02-08 Dave Love <fx@gnu.org>
11262
11263 * lread.c (__EXTENSIONS__): Define.
11264
f7136ee8
GM
112652000-02-08 Gerd Moellmann <gerd@gnu.org>
11266
11267 * puresize.h (BASE_PURESIZE): Increase to 650000.
11268
7768790b
EZ
112692000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
11270
11271 * msdos.c (XMenuActivate): Turn off the cursor after displaying
11272 the help message.
11273
38fd211b
EZ
112742000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
11275
11276 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
11277 md, mh, mb, mr, and me to the fake termcap entry.
11278
66e4690f
KR
112792000-02-06 Ken Raeburn <raeburn@gnu.org>
11280
11281 * sound.c (sound_cleanup): Don't call device close routine if the
11282 function pointer is null.
11283
a75dfea0
AI
112842000-02-06 Andrew Innes <andrewi@gnu.org>
11285
11286 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
11287 around image definitions and prototypes.
11288 (gamma_correct) [WINDOWSNT]: New prototype.
11289
11290 * w32term.c (x_make_frame_visible): Replace call to
11291 input_poll_signal with poll_for_input.
11292
11293 * window.c [WINDOWSNT]: Include w32term.h.
11294
11295 * xdisp.c [WINDOWSNT]: Include w32term.h.
11296
11297 * makefile.nt: Add dependencies on w32gui.h.
11298 (OBJ1): Include atimer.obj.
11299 ($(BLD)\atimer.obj): New dependency rule.
11300
11301 * w32.c (sigmask): New function (does nothing).
11302 (sigunblock): Ditto.
11303
11304 * frame.c [WINDOWSNT]: Include w32term.h.
11305
11306 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
11307
11308 * lread.c (syms_of_lread): Fix literal newlines.
11309
11310 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
11311 the string constant limit (2048 bytes) in MSVC.
11312 (main): Ditto.
11313
59ddecde
GM
113142000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
11315
52283633 11316 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
59ddecde
GM
11317 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
11318 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
11319 dispatch the event.
11320
07590973
DL
113212000-02-04 Dave Love <fx@gnu.org>
11322
11323 * fileio.c: Remove some unused vars.
11324 (_GNU_SOURCE): Define (for euidaccess).
11325
11326 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
11327
11328 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
11329 gcpro1, gcpro2.
11330 (read_minibuf): Deal with allow_props correctly.
11331
649351f9
EZ
113322000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
11333
11334 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
11335
66e4690f 113362000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
11337
11338 * search.c (compile_pattern): If a cache entry has a nil regexp,
11339 fill in that entry instead of clobbering a previously cached
11340 string regexp.
11341
66e4690f 113422000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
11343
11344 * puresize.h (BASE_PURESIZE): Increase to 610000.
11345
d240a249
GM
113462000-02-02 Gerd Moellmann <gerd@gnu.org>
11347
11348 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
11349 can GC.
11350
ca91fb26
KH
113512000-02-02 Kenichi Handa <handa@etl.go.jp>
11352
25660570
KH
11353 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
11354 instead of incrementing ic directly.
11355 <CCL_WriteExprConst> Likewise.
11356 <ccl_set_expr>: Set ic to jump_address.
11357
ca91fb26
KH
11358 * fileio.c (e_write): Fix the handling of
11359 CODING_FINISH_INSUFFICIENT_SRC.
11360
2ede9689
DL
113612000-02-01 Dave Love <fx@gnu.org>
11362
11363 * editfns.c (Fpropertize): Doc fix.
11364
11365 * process.c (Fstart_process): Doc fix.
11366
11367 * eval.c: Fix various doc strings not to duplicate information
11368 from help-manyarg-func-alist.
11369
52283633 11370 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
2ede9689
DL
11371
11372 * doc.c (Vhelp_manyarg_func_alist): New variable.
11373 (Fdocumentation): Use it.
11374 (syms_of_doc): Define it.
11375
b6680a0e
GM
113762000-01-31 Gerd Moellmann <gerd@gnu.org>
11377
2cb750ba
GM
11378 * xterm.c (xim_open_dpy): Remove unused local variable.
11379
52283633 11380 * emacs.c (USAGE): Use term `display options' instead of `X options'.
74e9213b
GM
11381
11382 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
11383 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
11384
b6680a0e
GM
11385 * fns.c (sweep_weak_table): New function.
11386 (sweep_weak_hash_tables): Use it. Keep on marking until there
11387 is no more change.
11388
994c5afe
GM
113892000-01-30 Gerd Moellmann <gerd@gnu.org>
11390
11391 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
11392 that XTread_socket does not crash by trying to call XNoOp on a
11393 closed display.
427ec082 11394
f00276e3
JR
113952000-01-30 Jason Rumney <jasonr@gnu.org>
11396
11397 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
11398 Change selected_frame to SELECTED_FRAME ().
11399 (w32_console_mouse_position): Remove #ifndef MULE from around
11400 `insist' parameter.
11401
11402 * makefile.nt: Remove dosfns.obj.
11403
11404 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
11405
11406 * w32fns.c (w32_defined_color): Check for valid frame before
11407 applying gamma correction. Eliminate dependency on frame elsewhere.
11408 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
11409 (w32_to_x_font): Use resx and resy not height_in and width_in.
11410 (x_to_w32_font): Doc fix.
11411 (xlfd_strip_height): New function to strip and return font height.
11412 (w32_font_match): Compare height separately from rest of xlfd
11413 spec, using xlfd_strip_height.
11414
11415 * w32term.c (w32_term_init): Swap resx and height_in, resy and
11416 width_in. Use w32_defined_color in place of defined_color.
11417
11418 * w32faces.c: Merge more of DOS and X specifics in preparation for
11419 merge with xfaces.c.
11420 (defined_color): Remove FIXME comment.
11421 (tty_color_name): Provide w32-specific function.
11422 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
11423
11424 * w32console.c (turn_on_face, turn_off_face): Removed.
11425 (w32_face_attributes): New function.
11426 (Global_variables): Reduce scope where possible.
11427 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
11428 fill attribute.
11429 (hl_mode): Don't modify text attributes.
11430 (write_glyphs): Don't do anything if len <= 0. Use
11431 w32_face_attributes to get attributes for drawing. Write
11432 terminating codes using char_attr_normal.
11433 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
11434 (update_begin, update_end): Likewise.
11435 (vga_stdcolor_name): New function.
11436 (initialize_w32_display): Remove char_attr_reverse and char_attr.
11437 (Fset_screen_color): Remove char_attr_reverse.
11438
b08e8bb2
GM
114392000-01-29 Gerd Moellmann <gerd@gnu.org>
11440
11441 * xfns.c (xic_set_preeditarea): Take window parameter and
11442 window-relative pixel-positions.
11443
11444 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
11445 is its frame's selected window.
11446 (xim_instantiate_callback): Likewise.
11447
11448 * xfns.c (x_create_im): Removed.
11449 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
11450 (supported_xim_styles): Renamed from supported_styles.
11451 (best_xim_style): Renamed from best_style.
11452 (create_frame_xic): Renamed from xic_create_frame.
11453 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 11454
b08e8bb2
GM
114552000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
11456
11457 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
11458 our frames, call XFilterEvent with 2nd parameter `None'.
11459 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
11460 returning XBufferOverflow.
52283633 11461 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
b08e8bb2
GM
11462 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
11463 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
11464 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
11465 (xim_initialize, xim_close)
11466 [HAVE_X_I18N && HAVE_X11R6]: New functions.
11467 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
11468 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
11469 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
11470
11471 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
11472 and `xim_styles'.
11473 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
11474 `xic_style' and `xic_xfs'.
11475 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
11476 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
11477 (FRAME_XIM): Removed.
11478
11479 * xfns.c (supported_styles): New variable.
11480 (DEFAULT_STYLE, DEFAULT_FONT): New macros
11481 (xic_create_xfontset, best_style, xic_create_frame)
11482 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
11483 (xic_set_xfontset): New functions.
11484
142e109c
DL
114852000-01-28 Dave Love <fx@gnu.org>
11486
11487 * s/irix6-5.h: Revert last change after change to irix5-0.h.
11488
11489 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
11490
b02786f9
GM
114912000-01-28 Gerd Moellmann <gerd@gnu.org>
11492
d060bc9f
GM
11493 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
11494 for *scratch* if it already existed.
11495
b02786f9
GM
11496 * emacs.c (USAGE): New macro.
11497 (main): Use it to display usage information.
11498
2c52d7e4
EZ
114992000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
11500
11501 Support for the menu-help feature:
11502
52283633 11503 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
2c52d7e4
EZ
11504
11505 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
11506 part of the line to the termscript file.
11507 (IT_clear_to_end): Clear the entire line, not just its beginning.
11508 (menu_help_message, prev_menu_help_message): New variables.
11509 (IT_menu_make_room): Make room for the help_text member.
11510 (IT_menu_display): New argument disp_help; all callers changed.
11511 If disp_help is non-zero, store the help text of the active menu
11512 item in menu_help_message.
11513 (XMenuAddPane): Initialize the help_text member to NULL.
11514 (XMenuAddSelection): New argument help_text. Store it in the
11515 XMenu structure.
11516 (XMenuActivate): New argument help_callback. If the value of
11517 menu_help_message has changed since the last time, display the
11518 menu help message text while waiting for the mouse to move. Clear
11519 the echo area before exiting.
11520 (XMenuDestroy): Free the help_text member.
11521
ffe0bcd1
GM
115222000-01-27 Gerd Moellmann <gerd@gnu.org>
11523
11524 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
11525 XMenuAddSelection. Pass help callback to XMenuActivate.
11526 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
11527
50dbd23f
EZ
115282000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
11529
11530 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
11531 and EMACS_SET_USECS.
11532
f5941bf8
GM
115332000-01-26 Dave Love <fx@gnu.org>
11534
6c67ddee
DL
11535 * editfns.c (Fchar_after, Fchar_before): Doc fix.
11536
f5941bf8
GM
11537 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
11538 an error may be signalled.
11539
9e49c990
GM
115402000-01-26 Gerd Moellmann <gerd@gnu.org>
11541
fc3cb460
GM
11542 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
11543 LD_SWITCH_SYSTEM inherited from irix5-0.h.
11544
9e49c990
GM
11545 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
11546
d0c037d8
GM
115472000-01-25 Gerd Moellmann <gerd@gnu.org>
11548
11549 * charset.c (Fstring): If there is a multibyte char among
11550 the args, always return a multibyte string.
11551
e12489f9
GM
115522000-01-25 Gerd Moellmann <gerd@gnu.org>
11553
11554 * sysdep.c (sys_select): Turn atimers off and on instead of
11555 recording and restoring old alarm handler
11556
11557 * process.c (toplevel): Include atimer.h.
11558 (create_process_1): Rewritten.
11559 (create_process): Use atimers instead of alarm.
11560 (wait_reading_process_input) [hpux]: Turn atimers off instead
11561 of turning off SIGALRM.
11562 (wait_reading_process_input): Turn off atimers instead off
11563 calling stop_polling.
11564
11565 * emacs.c (main): Call init_atimer.
11566
11567 * keyboard.c (toplevel): Include systime.h and atimer.h.
11568 (polling_for_input): Removed because unused.
11569 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
11570 (poll_timer): New variable.
11571 (poll_for_input, poll_for_input_1): New functions.
11572 (start_polling, stop_polling): Rewritten.
11573
11574 * keyboard.h (polling_for_input): Removed.
427ec082 11575
e12489f9
GM
11576 * atimer.h, atimer.c: New files.
11577
11578 * Makefile.in (obj): Add atimer.o.
11579 (atimer.o): New target.
11580
11581 * blockinput.h (pending_atimers): Add extern declaration.
11582 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
11583
11584 * lisp.h (popup_activated_flag): Add extern declaration.
11585
11586 * xmenu.c (popup_activated_flag): Make externally visible.
52283633 11587 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
e12489f9
GM
11588 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
11589
11590 * xterm.c (toplevel): Include atimer.h.
11591 (toolkit_scroll_bar_interaction): New variable.
11592 (Fxt_process_timeouts): Removed.
11593 (x_process_timeouts): New function.
11594 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
11595 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
11596 (x_make_frame_visible): Call poll_for_input_1 instead of
11597 input_poll_signal. Don't call alarm.
11598 (x_initialize): Install timer calling x_process_timeouts.
427ec082 11599
1e5279b9
DL
116002000-01-24 Dave Love <fx@gnu.org>
11601
6c67ddee 11602 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
11603 Don't use -cckr -- apparently not now necessary.
11604
edf6aeb8
EZ
116052000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
11606
11607 * msdos.c (IT_menu_display): Truncate long menu lines at the right
11608 screen boundary.
11609
9badad41
JR
116102000-01-23 Jason Rumney <jasonr@gnu.org>
11611
11612 * w32fns.c (w32_defined_color): Apply gamma correction before
11613 trying to map to the palette.
11614 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
11615 to w32_clear_rect.
11616
11617 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
11618 here. Callers changed to always pass real device context.
11619 (w32_draw_bitmap): Likewise.
11620 (w32_get_glyph_overhangs): Likewise.
52283633 11621 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
9badad41
JR
11622 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
11623 pfnSetScrollInfo and SetScrollRange.
11624 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
11625 back into MULE characters after decoding them.
11626 (x_get_glyph_face_and_encoding): Likewise.
11627 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
11628 GetCharABCWidthsW fails, since this is defined on Windows 9x.
11629 (x_produce_glyphs): Calculate per char metrics for a character
11630 that we know exists in default font when font_not_found_p is true.
11631
63bd786b
JR
116322000-01-22 Jason Rumney <jasonr@gnu.org>
11633
11634 * makefile.nt (intervals.obj, composite.obj): New modules.
11635 (composite.h): Added as dependency where appropriate.
11636
11637 * w32gui.h (XGCValue): New struct for emulating X GCs.
11638
11639 * w32term.h (XCharStruct): New struct for emulating X.
11640
11641 * w32console.c (turn_on_face, turn_off_face): New functions.
11642 (change_line_highlight): New prototype for new redisplay.
11643 (write_glyphs): Support multibyte text. Support faces.
11644
52283633 11645 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
63bd786b
JR
11646
11647 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
11648 throughout. struct frame * in place of FRAME_PTR.
11649 Skeleton support for images, toolbars, tooltips from xfns.c.
52283633 11650 (Fx_create_frame): Use system default for default scroll bar width.
63bd786b
JR
11651 (w32_get_arg): Renamed from x_get_arg.
11652 (Fx_file_dialog): New function.
11653 (w32_list_fonts): Check cache before asking system.
11654 (Vw32_enable_synthesized_fonts): New variable.
11655 (Vw32_enable_italics): Obsolete, removed.
11656
11657 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
11658 Use SELECTED_FRAME macro.
11659
11660 * w32menu.c: Add skeleton support for help strings on menus.
11661 (add_menu_item): Native checkbox and radio support added, but not
11662 yet enabled due to bugs.
11663 (push_menu_item): Add parameters type, selection and help.
11664 Callers updated.
11665 Formatting changes to reduce unnecessary diffs with xmenu.c.
11666
11667 * w32select.c (Fw32_set_clipboard_data): Update call to
11668 find_charset_in_str.
11669
11670 * w32term.c: Complete rewrite for new redisplay based on new
11671 xterm.c with necessary sections merged back in from old w32term.c.
11672
6ffd3cf7 116732000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
11674
11675 * data.c (set_internal): Further fix in same criterion.
11676
6ffd3cf7 116772000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
11678
11679 * data.c (set_internal): Fix the criteria for whether
11680 to swap out the old cached binding.
11681
60af03f1
DL
116822000-01-19 Dave Love <fx@gnu.org>
11683
11684 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
11685
f9be074f
KH
116862000-01-18 Kenichi Handa <handa@etl.go.jp>
11687
11688 * regex.c (re_compile_fastmap): While checking a range table for
11689 `charset', skip flag bits for a character class correctly.
11690
52b8dbf9
GM
116912000-01-17 Gerd Moellmann <gerd@gnu.org>
11692
d36100c9
GM
11693 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
11694
52283633 11695 * xfns.c (x_window): Call lw_create_widget with new parameter list.
52b8dbf9
GM
11696
11697 * widget.c (EmacsFrameSetCharSize): Change size of children first
52283633 11698 because of problems with main window geometry management under Lesstif.
52b8dbf9
GM
11699
11700 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
11701 MENU_ITEMS_ITEM_.*.
11702 (MENU_ITEMS_ITEM_HELP): New enumerator.
11703 (push_menu_item): Add parameter HELP. Record help in menu_items.
11704 (single_menu_item, single_submenu, list_of_items): Call
11705 push_menu_item with new parameter.
11706 (single_submenu): Set help string in widget value.
11707 (menu_highlight_callback): New function.
11708 (set_frame_menubar): Call lw_create_widget with new
11709 parameter list.
11710 (xmenu_show, xdialog_show): Ditto.
11711
3139018f
GM
117122000-01-13 Gerd Moellmann <gerd@gnu.org>
11713
11714 * sound.c (Fplay_sound): Improve doc string.
11715
83c8f461
RS
117162000-01-11 Richard M. Stallman <rms@gnu.org>
11717
11718 * lisp.h (set_internal): Enter the new arg.
11719
11720 * eval.c (specbind): Record buffer-local variables specially,
11721 indicating which buffer's binding was saved.
11722 (unbind_to): Restore buffer-local variables specially
11723 in the proper buffer.
11724
11725 * data.c (set_internal): New arg BUF.
427ec082 11726
83c8f461
RS
11727 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
11728 * data.c (Fset): Pass new arg to set_internal.
11729 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 11730
1fab1775
GM
117312000-01-11 Gerd Moellmann <gerd@gnu.org>
11732
52283633 11733 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
1fab1775 11734
83c8f461 117352000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
11736
11737 * minibuf.c (Ftry_completion): Doc fix.
11738
7a85e4df
GM
117392000-01-11 Gerd Moellmann <gerd@gnu.org>
11740
11741 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
11742 vector, too.
11743
a970dae4
AS
117442000-01-11 Andreas Schwab <schwab@suse.de>
11745
11746 * coding.c (code_convert_region): Initialize total_skip.
11747
c65d14ee
DL
117482000-01-08 Dave Love <fx@gnu.org>
11749
11750 * eval.c (Fuser_variable_p): Check customizability too.
11751
834938d2
GM
117522000-01-07 Gerd Moellmann <gerd@gnu.org>
11753
11754 * minibuf.c (Fcompleting_read): Doc fix.
11755
e0303cd6
GM
117562000-01-05 Gerd Moellmann <gerd@gnu.org>
11757
8a26744b
GM
11758 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
11759 -L /usr/local/lib.
11760
e0303cd6
GM
11761 * xfns.c (x_create_im): New function to set IM and IC of a frame.
11762 Check that input style is supported before trying to create an
11763 IC for it.
11764 (x_window): Call x_create_im.
427ec082 11765
2e471eb5
GM
117662000-01-04 Gerd Moellmann <gerd@gnu.org>
11767
560a7bd2
GM
11768 * xfns.c (current_gif_memory_src): New variable.
11769 (gif_load): Record the address of the current memory source
11770 in current_gif_memory_src.
11771 (gif_read_from_memory): Use current_gif_memory_src.
11772
f9ee84a3
GM
11773 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
11774 macros statement form.
11775
d1299cde
GM
11776 * sound.c (struct sound): Renamed from struct sound_file.
11777 (struct sound): Add members `data' and `header_size'.
11778 (enum sound_attr): Add SOUND_DATA.
11779 (current_sound, current_sound_device): Variables renamed from
11780 sound_file and sound_device.
11781 (parse_sound): Parse :data.
11782 (parse_sound): Handle sound data in strings.
11783 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 11784 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
11785 needed header size.
11786 (wav_play, au_play): Play sounds from string data.
11787
2e471eb5
GM
11788 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
11789
11790 * lisp.h: Add prototype for allocate_string_data.
11791
52283633 11792 * alloc.c (Fgarbage_collect): Return number of live and free strings.
2e471eb5
GM
11793
11794 * alloc.c (mark_buffer): Remove code in #if 0.
11795 (gc_sweep): Ditto.
11796 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
11797 (strings_consed): New variable.
11798 (allocate_string): Set it.
11799 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
11800 (Fmemory_use_counts): Return strings_consed. Use Flist.
11801
11802 * alloc.c: General cleanup in comments etc. Remove conditional
11803 compilation for `standalone'.
11804
11805 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
11806
11807 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
11808 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
11809 (DONT_COPY_FLAG): Removed.
11810 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
11811 (struct sdata, struct sblock): New
11812 (struct string_block): Rewritten.
11813 (STRINGS_IN_STRING_BLOCK): New macro.
11814 (oldest_sblock, current_sblock, total_strings, total_free_strings)
11815 (large_sblocks, string_blocks, string_free_list): New variables.
11816 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
11817 (init_strings): Rewritten.
11818 (allocate_string, allocate_string_data, compact_small_strings)
11819 (free_large_strings, sweep_strings): New functions.
11820 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
11821 (struct string_block_head, current_string_block)
11822 (first_string_block, large_string_blocks, STRING_FULLSIZE)
11823 (STRING_PAD): Removed.
11824 (make_uninit_multibyte_string, make_pure_string): Rewritten.
11825 (Fgarbage_collect): Don't set mark bit in large strings.
11826 (mark_object): Mark strings differently. Mark symbol names
11827 differently.
11828 (survives_gc_p): Test marked strings differently.
427ec082 11829 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
11830 symbol names.
11831 (compact_strings): Removed.
11832
42608ba8
EZ
118332000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
11834
11835 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
11836 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
11837
e0a09e1a
KH
118382000-01-04 Kenichi Handa <handa@etl.go.jp>
11839
dd9f0750 11840 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 11841 in a non-empty buffer.
dd9f0750 11842
3c0f3b15 11843 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 11844
44cd3ae5
GM
118452000-01-03 Gerd Moellmann <gerd@gnu.org>
11846
11847 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
11848 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
11849
11850 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
11851
c182a70f
EZ
118522000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11853
11854 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
11855 need to test for MSDOS frames.
11856
24480d5b
EZ
118572000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11858
11859 * dosfns.c (unspecified_colors): Remove.
11860 (msdos_stdcolor_idx): Use global variables unspecified_fg and
11861 unspecified_bg.
11862 (msdos_stdcolor_name): Return strings for unspecified fore- and
11863 back-ground colors.
11864
11865 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 11866 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
11867 (tty_color_name): Return Lisp strings for unspecified fore- and
11868 back-ground colors.
11869 (Finternal_set_lisp_face_attribute): Remove the special treatment
11870 for Qunspecified_{f,b}g.
52283633 11871 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
24480d5b 11872
047f434a
GM
118732000-01-03 Gerd Moellmann <gerd@gnu.org>
11874
11875 * xdisp.c (reseat_at_next_visible_line_start): Position before
11876 newline only if ending up on a newline.
11877 (next_element_from_ellipsis): Return success. Handle case of
52283633 11878 displaying no ellipsis. Fix case of ellipsis defined in display table.
047f434a
GM
11879 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
11880 returns 0.
11881
d684c676
EZ
118822000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11883
11884 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
11885 (Fcolor_supported_p): Renamed from face-color-supported-p.
11886
5fe1d139
EZ
118872000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11888
11889 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
11890 list of colors renamed to tty-defined-color-alist.
11891 (tty_color_name): Pass the frame to tty-color-by-index.
11892 (realize_tty_face): tty-color-alist is now a function which
11893 accepts the frame as argument.
11894
52283633 11895 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
5fe1d139 11896
816be8b8
EZ
118972000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11898
11899 * term.c (insert_glyphs): Pass glyph, not &glyph, to
11900 encode_terminal_code.
11901
b635321e
EZ
119022000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11903
11904 * dispnew.c (mode_line_string): Support termcap frames as well.
11905
9b784e96
GM
119062000-01-01 Gerd Moellmann <gerd@gnu.org>
11907
27189709
GM
11908 * syntax.c (Fforward_word): Undo previous change.
11909
11910 * editfns.c (Fconstrain_to_field): Don't constrain if
11911 inhibit-field-text-motion is non-nil.
11912 (Fline_beginning_position): Undo previous change.
11913 (Fline_end_position): Ditto.
11914
11915 * syntax.c (Fforward_word): Notice field boundaries only if
11916 inhibit-field-text-motion is nil.
11917
11918 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
11919
11920 * editfns.c (Vinhibit_field_text_motion): New variable.
11921 (inhibit-field-text-motion): New DEFVAR_LISP.
11922 (Fline_beginning_position, Fline_end_position): Notice field
11923 boundaries only if inhibit-field-text-motion is nil.
11924
45158a91
GM
11925 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
11926 All calls adjusted.
11927 (x_build_heuristic_mask): Likewise.
11928 (xbm_load_image_from_file): Change error output.
11929 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
11930 (gif_load, gs_load, x_kill_gs_process): Ditto.
11931
9b784e96
GM
11932 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
11933 color indices when accessing raster pixels.
63cec32f
GM
11934 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
11935 one of :file or :data.
11936 (enum pbm_keyword_index): Add PBM_DATA.
11937 (pbm_format): Add :data.
11938 (pbm_image_p): Allow either :file or :data.
11939 (pbm_read_file): New function.
11940 (pbm_scan_number): Rewritten to read from string.
11941 (pbm_load): Support :data.
9b784e96 11942
2cb085db 11943See ChangeLog.8 for earlier changes.
6922b018
KH
11944
11945;; Local Variables:
49b3bd82 11946;; coding: iso-2022-7bit
6922b018 11947;; End: