(vc-switch-backend): Fix autoload cookie.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
75c5350a
GM
12001-07-27 Gerd Moellmann <gerd@gnu.org>
2
3 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
4
5 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
6 of row's visible height.
7
8 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
9 deal with the first overlay string having an image `display'
10 property.
11 (try_window_reusing_current_matrix, compute_line_metrics): Fix
12 computation of row's visible height for the case that part of the
13 row is invisible above and part of the row is at the same time
14 invisible below the window.
15
ac49effe
GM
162001-07-26 Gerd Moellmann <gerd@gnu.org>
17
18 * xfns.c (x-show-tip): Doc fix.
19
20 * xfns.c (Vx_max_tooltip_size): New variable.
21 (syms_of_xfns): DEFVAR_LISP it.
22 (Fx_show_tip): Set frame's window_width to the width of the
23 window. Use a maximum tooltip size specified by
24 Vx_max_tooltip_size, if that has valid contents.
25 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
26
8c3b00cb
AI
272001-07-26 Andrew Innes <andrewi@gnu.org>
28
29 * w32term.c (x_display_list): New variable.
30 (w32_term_init): Set it.
31
32 * w32term.h (x_display_list): New extern.
33
16098288
GM
342001-07-26 Gerd Moellmann <gerd@gnu.org>
35
36 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
37 is non-nil, instead of when redisplaying_p is non-zero. See
38 comment there.
39 (mark_window_display_accurate_1): Add an assertion.
40
64c5be50
GM
412001-07-25 Gerd Moellmann <gerd@gnu.org>
42
e743f599
GM
43 * dispextern.h (struct it): Increase size of ctl_chars to 16.
44
563b384d
GM
45 * xfns.c (Fx_file_dialog): Block/unblock input while processing
46 events so that we get a chance of processing expose events.
47
64c5be50
GM
48 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
49
296808a5
GM
502001-07-24 Gerd Moellmann <gerd@gnu.org>
51
52 * xfns.c (valid_image_p): Protect better against invalid image
53 specifications. Previous code could signal an error.
54
5247262a
GM
552001-07-23 Gerd Moellmann <gerd@gnu.org>
56
f1004faf
GM
57 * indent.c (current_column): Fix column computation in the
58 presence of display table entries.
59 (current_column_1, Fmove_to_column, compute_motion): Likewise.
60
dd42b31a
GM
61 * dispnew.c (adjust_glyph_matrix): In the optimization for
62 windows whose height has changed, use the new window height
63 to compute which rows to invalidate.
64
9e5a7f2a
GM
65 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
66 (MAX_10_EXP): New macro.
67 (Fformat): Use it.
68
5247262a
GM
69 * coding.c (code_convert_region): Handle the multibyte case if
70 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
71
177ab8ce
GM
722001-07-20 Gerd Moellmann <gerd@gnu.org>
73
6e07c0a5
GM
74 * dispextern.h (struct face): Change type of `stipple' to
75 int; it's an ID.
76
177ab8ce
GM
77 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
78
b5b80599
GM
792001-07-19 Gerd Moellmann <gerd@gnu.org>
80
4e2a256b
GM
81 * dispnew.c (update_window): Don't set the cursor at the end
82 of the update if display update has been paused.
83
b5b80599
GM
84 * composite.h (syms_of_composite): Renamed from
85 syms_of_composition.
86
c1fd9232
KR
872001-07-18 Ken Raeburn <raeburn@gnu.org>
88
89 * fns.c (Fset_char_table_default): Check that a charset is defined
90 before checking its dimension.
91
928a85c1
KR
922001-07-17 Ken Raeburn <raeburn@gnu.org>
93
94 * coding.c (setup_coding_system): Don't do any designation based
95 on reg_bits if charset is not yet defined.
96
232e274c
KR
97 * lisp.h (XVECTOR): Verify correct object type before returning a
98 pointer, using eassert.
99
de11c1ea
GM
1002001-07-17 Gerd Moellmann <gerd@gnu.org>
101
102 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]: Increase
103 to 4096 because of paste problems reported on GNU/Linux.
104
467f1209
GM
1052001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
106
107 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
108
c3d6be34
GM
1092001-07-16 Gerd Moellmann <gerd@gnu.org>
110
c1d61a7d
GM
111 * fileio.c (unwind_read): Function removed.
112 (read_non_regular, read_non_regular_quit): New functions.
113 (Finsert_file_contents): When reading from non-regular files,
114 arrange to catch a `quit' and terminate the loop. Rearrange
115 code so that a `quit' when reading from a regular file doesn't
116 insert text in the buffer.
117
c3d6be34
GM
118 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
119 Clear faces afterwards.
120 (clear_font_table): Take a x_display_info parameter. Don't free
121 fonts being the default font of any frame on the given display.
122
e06aa1f9
GM
1232001-07-13 Gerd Moellmann <gerd@gnu.org>
124
125 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
126 instead of CHAR_STRING which can signal an error.
127
128 * charset.c (char_to_string_1): Extracted from char_to_string.
129 Return -1 instead of signaling an error.
130 (char_to_string): Use it.
131
132 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
133
176c92e6
SM
1342001-07-12 Stefan Monnier <monnier@cs.yale.edu>
135
136 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
137 is t, don't try to append anything to it.
138
1c56232f
EZ
1392001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
140
141 * dired.c (file_name_completion): Pass dp->d_name to
142 Fstring_match, not elt, which is always nil here.
143
1d2b2268
GM
1442001-07-12 Gerd Moellmann <gerd@gnu.org>
145
146 * xselect.c (x_decline_selection_request): Handle errors
147 caused by receivers that have vanished.
148
149 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
150 ignoring events on foreign windows in #if 0. Always dispatch
151 the event after checking it with x_handle_property_notify.
152
153 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
176c92e6
SM
154 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
155 TRACE macros to facilitate debugging. Add additional trace statements.
1d2b2268
GM
156 (toplevel): Add prototypes for file-local functions.
157 (x_atom_to_symbol): Remove DPYINFO parameter.
158
fe5a0162
SM
1592001-07-11 Stefan Monnier <monnier@cs.yale.edu>
160
161 * w32menu.c (menubar_selection_callback, w32_menu_show):
162 Initialize `entry' to nil.
163 (w32_dialog_show): Remove unused `save_wv' variable.
164 (name_is_separator): Recognize "--:foo" and "--foo-bar".
165
a777242c
GM
1662001-07-11 Gerd Moellmann <gerd@gnu.org>
167
8ee5b6a3
GM
168 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
169
d0e2444e
GM
170 * fileio.c (unwind_read): Print a message when discarding inserted
171 text or switching the buffer to unibyte. Change parameter.
172 (Finsert_file_contents): Don't pass VISIT to unwind_read.
fe5a0162 173
a777242c
GM
174 * fileio.c (unwind_read): New function.
175 (Finsert_file_contents): Record it as unwind-function for
176 the case that reading is interrupted by C-g.
177
ae794295
GM
1782001-07-10 Gerd Moellmann <gerd@gnu.org>
179
fe5a0162 180 * dispnew.c (update_window): Don't skip the header-line
58f8612a
GM
181 update when scrolling_window returns 0.
182
6b05fae3
GM
183 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
184
185 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
58f8612a 186 for the case that x_decode_color signals an error.
6b05fae3 187
ae794295
GM
188 * xdisp.c (add_to_log): Do nothing if called asynchronously.
189
bb6e8cee
GM
1902001-07-09 Gerd Moellmann <gerd@gnu.org>
191
192 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
193 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
194 around ioctls.
195
36b40a8a
EZ
1962001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
197
24b97d4b
EZ
198 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
199 doc string line for dos-timezone-offset.
200
36b40a8a
EZ
201 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
202 inline assembly, to avoid compiler warnings.
24b97d4b
EZ
203 (syms_of_msdos): Add \n\ at the end of a line in the doc string
204 line for dos-unsupported-char-glyph.
36b40a8a
EZ
205
206 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
207
0967b4b0
GM
2082001-07-05 Gerd Moellmann <gerd@gnu.org>
209
f25cfe53
GM
210 * sound.c: Include Emacs' header files with #include "...".
211
0967b4b0
GM
212 * eval.c (specbind): Additionally record the buffer that was
213 current when a buffer-local or frame-local variable was bound.
214
c347a1c3
GM
2152001-07-04 Gerd Moellmann <gerd@gnu.org>
216
217 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
218 to unibyte characters in unibyte buffers.
219
6332ca8a
GM
2202001-07-03 Gerd Moellmann <gerd@gnu.org>
221
38472d44
GM
222 * eval.c (specbind): If SYMBOL has a frame-local binding, record
223 the frame on the binding stack. Change format of entries for
224 local bindings on the binding stack to '(SYMBOL . WHERE)'.
225 (unbind_to): Handle unbinding a frame-local variable.
226
6332ca8a 227 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
fe5a0162 228 glyphs and truncation glyphs at the end of a row from its pixel width.
6332ca8a
GM
229 (dump_glyph_row): Print row's continuation_lines_width.
230 (try_window_id): Take the shortcut if ZV is visible in the
231 window, but there are actually no changes at ZV.
232
63d1b174
GM
2332001-07-02 Gerd Moellmann <gerd@gnu.org>
234
4c175203
GM
235 * xterm.h (x_free_dpy_colors): Add prototype.
236
237 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
238 right number of arguments.
239
0b54ce28
GM
240 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
241 ($(lwlibdir)TAGS): New target.
4c175203 242 (TAGS): Fix dependency list.
0b54ce28 243
63d1b174
GM
244 * xterm.c (x_list_fonts): Make sure XFreeFont is called
245 with input blocked.
246
d827466c
GM
2472001-06-30 Gerd Moellmann <gerd@gnu.org>
248
249 * emacs.c (main): Remove extern declaration for sys_nerr, which
250 isn't used and causes a compilation error with GCC 3.0 on
251 FreeBSD 4.3.
252
b5cb1ada
GM
2532001-06-27 Gerd Moellmann <gerd@gnu.org>
254
a5d3ec3f
GM
255 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
256 SIGIO around the code where Xt might wait for a
257 ConfigureNotifyEvent.
258 (toplevel): Include <signal.h> and syssignal.h.
259
b5cb1ada
GM
260 * sound.c (vox_configure, vox_close): Turn off atimers
261 around ioctls.
262
d9bad487
GM
2632001-06-26 Gerd Moellmann <gerd@gnu.org>
264
fdbb67fe
GM
265 * keyboard.c (read_char) <non_reread>: Record the previous idle
266 start time before calling timer_stop_idle.
267 (read_char) <reread_first>: After processing a help-echo event,
268 restore the previous idle start time.
269
d9bad487
GM
270 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
271 the start of invisible text.
272 (setup_for_ellipsis): New function.
273 (next_overlay_string): After all overlay strings have been
274 processed, display an ellipsis if necessary.
275 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
276 (push_it): Initialize display_ellipsis_p on the iterator's stack.
277
278 * dispextern.h (struct iterator_stack_entry): Add member
279 display_ellipsis_p.
280
2b9c25e0
GM
2812001-06-25 Gerd Moellmann <gerd@gnu.org>
282
80de57df
GM
283 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
284 on the value of the wait-for-wm frame parameter.
285
286 * xterm.h (struct x_output): Add member wait_for_wm.
287
288 * xfns.c (Qwait_for_wm): New variable.
289 (x_frame_parms): Add entry for `wait-for-wm".
290 (x_set_wait_for_wm): New function.
291 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
292 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
293
2b9c25e0
GM
294 * xdisp.c (try_window_id) <all changes below window end>: Don't
295 take this shortcut if ZV is visible in the window.
296 (try_window_id): When checking for window start being in changed
297 text, don't check that the buffer's size has changed.
298
f772775c
RS
2992001-06-23 Richard M. Stallman <rms@gnu.org>
300
301 * minibuf.c (Fcompleting_read): Doc fix.
302
fa9090b8
GM
3032001-06-19 Gerd Moellmann <gerd@gnu.org>
304
305 * composite.c (Ffind_composition_internal): Accept ZV
306 and a string's end position as POS.
307
f6f1beba
GM
3082001-06-18 Gerd Moellmann <gerd@gnu.org>
309
310 * composite.c (Ffind_composition_internal): Check POS
311 for validity.
312
0ae83348
EZ
3132001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
314
315 * editfns.c (Fmessage_box): If the frame is not under a window
316 system, output the message in the echo area.
317
e4cdc335
RS
3182001-06-14 Richard M. Stallman <rms@gnu.org>
319
320 * xdisp.c (try_window_id): When EOB is visible, don't treat
321 insertion at EOB as if it were "off the bottom of the screen."
322
a55a5f3c
AI
3232001-06-11 Andrew Innes <andrewi@gnu.org>
324
325 * w32proc.c (create_child): Add new parameter is_gui_app.
326 (w32_executable_type): Add new parameter is_gui_app.
327 (sys_spawnve): Use it.
328 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
329 SIGQUIT. This matches better how the signals are interpreted by
330 MSVC compiled programs.
331 (syms_of_ntproc): Update docstring.
332
1b85dc1c
SM
3332001-06-02 Stefan Monnier <monnier@cs.yale.edu>
334
335 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
336 well otherwise note_mouse_highlight might optimize away highlighting
337 if we pass over that same overlay again.
338
b75f8eab
EZ
3392001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
340
341 * lread.c (Fload): Document that the argument is run via
342 substitute-in-file-name.
343
94843cc1
GM
3442001-05-31 Gerd Moellmann <gerd@gnu.org>
345
b14659e6
GM
346 * Makefile.in (bootstrap-doc): New target.
347 (bootstrap-emacs): Depend on it.
348
0894672f
GM
349 * fileio.c (Fdo_auto_save): Don't try to create the directory of
350 auto-save-list-file-name when shutting down Emacs, because
351 creating the directory might signal an error, and leaves
352 Emacs in a strange state.
353
94843cc1
GM
354 * term.c: (tty_cursor_hidden): New variable.
355 (update_begin): Don't call tty_hide_cursor. Clean up.
356 (update_end, set_terminal_window, set_scroll_region): Clean up.
357 (ring_bell, reset_terminal_modes): Clean up.
358 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
359 on tty_cursor_hidden.
360 (write_glyphs): Call tty_hide_cursor.
361
db3a49a6
SM
3622001-05-30 Stefan Monnier <monnier@cs.yale.edu>
363
364 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
365
8bd189fb
GM
3662001-05-30 Gerd Moellmann <gerd@gnu.org>
367
6f1be3b9
GM
368 * xfns.c (enum image_value_type): New enumerator
369 IMAGE_STRING_OR_NIL_VALUE.
370 (parse_image_spec): Handle it.
371 (xbm_format, pbm_format): Use it for :foreground and :background.
372 (xbm_load, pbm_load): Check for nil color names.
373
8bd189fb
GM
374 * xterm.c (note_mouse_highlight): If an overlapping overlay
375 exists, but we find that we highlight the same overlay as before,
376 don't do the highlighting again.
377
7bdba03c
GM
3782001-05-29 Gerd Moellmann <gerd@gnu.org>
379
4c329aa8
GM
380 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
381 Protect unibyte strings created by replacing their multibyte
382 equivalents in menu_items.
383
e15e2828
GM
384 * keymap.c (Fsingle_key_description): NUL-terminate the string
385 buffer before calling build_string.
386
7bdba03c
GM
387 * callproc.c (Fcall_process): Deal with decode_coding returning
388 CODING_FINISH_INCONSISTENT_EOL.
389
89c8dc6c
GM
3902001-05-28 Gerd Moellmann <gerd@gnu.org>
391
db3a49a6 392 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
3d9d7a9b
GM
393 an item's name with its key description in case the description
394 is a multibyte string.
395
396 * keymap.c (Fsingle_key_description): Create a multibyte string
397 only if necessary.
398
eb04d6cd
GM
399 * macros.c (Fstart_kbd_macro): Doc fix.
400
8bd6307f
GM
401 * xterm.c (cursor_in_mouse_face_p): New function.
402 (x_draw_stretch_glyph_string): Use it to choose a different GC
403 when drawing a cursor within highlighted text.
404
e26c4089
GM
405 * editfns.c (char_property_eq): Put in #if 0.
406
407 * indent.c (string_display_width): Put in #if 0.
408
409 * lread.c (Fload): Remove unused label.
410
89c8dc6c
GM
411 * termcap.c (speeds): Put in #if 0.
412
9a1211f2
GM
4132001-05-18 Gerd Moellmann <gerd@gnu.org>
414
29148a3f
GM
415 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
416
9a1211f2
GM
417 * xfaces.c (xlfd_point_size): Don't divide pixel size from
418 transformation matrix by 10.
419
09393d07
GM
4202001-05-16 Gerd Moellmann <gerd@gnu.org>
421
422 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
423 only if it's equal to the former foreground pixel color.
db3a49a6 424 (x_set_foreground_color, x_set_background_color)
09393d07
GM
425 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
426
460e6bae
GM
4272001-05-16 Dave Love <fx@gnu.org>
428
429 * insdel.c (signal_before_change, signal_after_change): Consider a
430 local change hook which changes the buffer.
99c78ce8
GM
431
432 * process.c (read_process_output): Don't call signal_after_change
433 and update_compositions after insert_from_string_before_markers.
434
dbcf3c03
GM
4352001-05-16 Gerd Moellmann <gerd@gnu.org>
436
a90b3d3c
GM
437 * xfaces.c (split_font_name): Use the right field when
438 checking for `[...]' syntax.
439
1b7818b4
GM
440 * buffer.c (copy_overlays): New function.
441 (clone_per_buffer_values): Use it.
442
443 * buffer.h (OVERLAY_PLIST): New macro.
444
9bae8781
GM
445 * keymap.c (Fsingle_key_description): Replace a build_string with
446 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
447
dbcf3c03
GM
448 * fontset.c (Ffontset_info): Check that face is non-null
449 before accessing its fields.
450
8a1ae4dd
GM
4512001-05-15 Gerd Moellmann <gerd@gnu.org>
452
18a0a39e
GM
453 * keyboard.c (read_key_sequence): Prevent generating a fake
454 prefix key twice.
455
e335b66a
GM
456 * xfaces.c (split_font_name): Handle `[...]' for the right
457 font name fields.
458
8a1ae4dd
GM
459 * ccl.c (ccl_driver): Don't copy remaining bytes in case
460 of CCL_STAT_INVALID_CMD.
461
3cf80731
SM
4622001-05-14 Stefan Monnier <monnier@cs.yale.edu>
463
33568849
SM
464 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
465 in <var> has no default value yet.
466
3cf80731
SM
467 * xfaces.c (try_alternative_families): First try the FAMILY.
468 And if nothing is found in the end, try again with scalable fonts.
469 (try_font_list): Let try_alternative_families do a bit more of
470 the work. Only use FAMILY if it is not nil.
471 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
472
933b0249
GM
4732001-05-14 Gerd Moellmann <gerd@gnu.org>
474
58e5af83
GM
475 * xterm.c (note_mouse_highlight): Avoid changing the mouse
476 pointer shape when show_mouse_face has already done it.
33568849 477
58e5af83 478 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
557f7c34
GM
479 full-width rows.
480
7b16a6bf
GM
481 * xfaces.c (split_font_name): Make sure to leave the loop
482 with the right value of `i'.
3cf80731 483
933b0249
GM
484 * xfaces.c (split_font_name): Handle matrix transformations
485 in the pixel and point size fields of XLFD font names.
486 (xlfd_point_size): Likewise.
487
dddcbf00
EZ
4882001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
489
3cf80731 490 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
c7501041
EZ
491 (x_to_w32_font): Add prototype.
492
7689ef0b
EZ
493 * regex.c (malloc, realloc, free) [emacs]: Undefine before
494 redefining, to avoid compiler warnings.
495
e7c15bba
EZ
496 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
497
dddcbf00
EZ
498 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
499 (w32_get_bdf_glyph): Cast between unsigned char and char when
500 passing arguments to subroutines, to shut up compiler warnings.
501 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
502 GET_HEX_VAL.
503
504 * xfaces.c: Include keyboard.h before frame.h, not after it.
505
506 * widget.c: Include keyboard.h before frame.h.
507
508 * w32term.h (struct image, struct face): Forward declaration, to
509 avoid compiler warnings.
510
7bd2d083
GM
5112001-05-11 Gerd Moellmann <gerd@gnu.org>
512
47e72862
GM
513 * keyboard.c (read_key_sequence): Don't modify events when
514 generating fake prefix keys (mode-line, scroll-bar, ...) since
515 this prevents proper processing of such events when pushed back
516 into unread-command-events.
517
dd5f324b
GM
518 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
519 actually redrawn. Make the function static.
520 (note_mouse_highlight): Fix a case where the mouse cursor
521 was changed back to the text cursor.
522
523 * xterm.h (clear_mouse_face): Remove prototype.
524
d88a79d4
GM
525 * xdisp.c (try_window_id): Fix the fix and set the right
526 window_end_vpos.
527
528 * xdisp.c (try_window_id): Fix computation of window end in the
529 case that lines were deleted at the end of the window. Add some
530 more debug_method_adds.
0416532f 531
7bd2d083
GM
532 * xfaces.c (try_alternative_families): New function.
533 (try_font_list): Use it. If ATTRS specifies a family, check
534 fonts from that family first.
535 (choose_face_font): Remove code setting the family part of
536 the pattern to nil.
537
23fca891
GM
5382001-05-10 Gerd Moellmann <gerd@gnu.org>
539
ff9aa2ca
GM
540 * xdisp.c (try_window_id): Fix case of all changes before
541 the window start.
7b2654b5 542
23fca891
GM
543 * xdisp.c (try_window_id): Add some xasserts.
544
e9726794
GM
5452001-05-09 Gerd Moellmann <gerd@gnu.org>
546
547 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
548
9e53a675
GM
5492001-05-09 Dave Love <fx@gnu.org>
550
551 * xdisp.c (GIVE_UP): Fix for K&R C.
552
0d487c52
GM
5532001-05-09 Gerd Moellmann <gerd@gnu.org>
554
fe88d421
GM
555 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
556
0d487c52
GM
557 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
558 back to the text cursor shape without need.
559
1e9fc92e
GM
5602001-05-07 Gerd Moellmann <gerd@gnu.org>
561
a2a6232e
GM
562 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
563
564 * dispextern.h (inverse_video): Declare extern.
565
1e9fc92e
GM
566 * keyboard.c (delete_kboard): Handle the case that selected_frame
567 has been deleted in the course of x_connection_closed.
568
12949a7f
EZ
5692001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
570
7b2654b5
SM
571 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
572 Fix the change from 2001-04-30.
12949a7f 573
2fa2f461
GM
5742001-05-03 Gerd Moellmann <gerd@gnu.org>
575
a779d213
GM
576 * xfns.c (file_dialog_unmap_cb): New function.
577 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
578 where a dialog is closed via the window manager.
579
7b2654b5 580 * xdisp.c (try_window_id): Cases of changes all in front of
2fa2f461
GM
581 the window start or all below the window end mostly rewritten.
582 (redisplay_window): Move the tests if try_window_id is
583 applicable to try_window_id.
584 (GIVE_UP): New macro.
585
3356df63
GM
5862001-05-02 Gerd Moellmann <gerd@gnu.org>
587
a39202f6 588 * xterm.c (expose_window): Return int. If W is the window
7b2654b5
SM
589 currently being updated, mark the frame garbaged.
590 Fix computation of rows intersecting the exposed rectangle.
a39202f6 591 (expose_window_tree): Stop when expose_window returns 0.
7b2654b5 592
3356df63
GM
593 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
594 again if it has already been drawn.
595
a9d2fd1d
SM
5962001-05-01 Stefan Monnier <monnier@cs.yale.edu>
597
598 * syntax.c (update_syntax_table): Check that oldi has the same
599 properties as old_prop before deciding not to invalidate.
600
c95fc5f1
GM
6012001-04-30 Gerd Moellmann <gerd@gnu.org>
602
a9793e45
GM
603 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
604 read-only text that is so because of text properties.
605
c95fc5f1 606 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
a9d2fd1d 607 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
c95fc5f1
GM
608 windows that are components of a Lucid menu bar.
609
5a5d9185
GM
6102001-04-27 Gerd Moellmann <gerd@gnu.org>
611
612 * term.c (turn_on_face): Fix reverse video handling on terminals
613 that don't support colors.
614
ba973f7a
GM
6152001-04-26 Gerd Moellmann <gerd@gnu.org>
616
617 * editfns.c (save_excursion_restore): Don't use XBUFFER on
618 a non-buffer.
619
8c56a983
GM
6202001-04-25 Gerd Moellmann <gerd@gnu.org>
621
a728644c
GM
622 * term.c (toggle_highlight): New function.
623 (turn_on_face): Change handling of reverse video.
624
7b2654b5
SM
625 * process.c (wait_reading_process_input):
626 Call record_asynch_buffer_change only if a timer really changed buffers.
c88164fe 627
bfd8410f
GM
628 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
629 of the number of overlays to check.
630
be2488ca
GM
631 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
632
8c56a983
GM
633 * xdisp.c (try_window_id): Fix a case where window_end_pos
634 and window_end_bytepos were not adjusted.
635
522d42f7
GM
6362001-04-23 Gerd Moellmann <gerd@gnu.org>
637
638 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
639 zero instead of -1.
640
78c1afb6
EZ
6412001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
642
a9d2fd1d
SM
643 * process.c (wait_reading_process_input) [!subprocesses]:
644 Don't reference waiting_for_user_input_p, it's not defined in the
645 branch without async subprocesses support.
78c1afb6 646
a2fab450
GM
6472001-04-19 Gerd Moellmann <gerd@gnu.org>
648
a122a38e
GM
649 * keyboard.c (delete_kboard): Prevent a dangling reference
650 from current_kboard to KB, which is freed.
651
a9d2fd1d
SM
652 * process.c (wait_reading_process_input):
653 Call record_asynch_buffer_change after running timers, to make
a2fab450
GM
654 read_key_sequence aware of buffer changes from under it.
655
0f8d6dc7
GM
6562001-04-18 Gerd Moellmann <gerd@gnu.org>
657
eeffb293
GM
658 * xfaces.c (Qscalable_fonts_allowed): New variable.
659 (realizing_basic_faces_p): Removed.
2fa2f461
GM
660 (x_face_list_fonts): Special handling for realizing_basic_faces_p
661 removed.
eeffb293 662 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
7b2654b5
SM
663 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
664 for scalable-fonts-allowed to t.
eeffb293 665
0f8d6dc7
GM
666 * fileio.c (Finsert_file_contents): If the file size returned from
667 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
a9d2fd1d 668 read from files on a procfs whose contents are generated dynamically.
0f8d6dc7 669
eec2d1de
EZ
6702001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
671
672 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
673 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
674 (__memalign_hook): Make the two prototypes consistent.
675
f4f480bd
GM
6762001-04-17 Gerd Moellmann <gerd@gnu.org>
677
678 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
679 matrix of mini-windows.
680
52283633
SM
6812001-04-12 Stefan Monnier <monnier@cs.yale.edu>
682
683 * intervals.c (find_interval): Don't rebalance during signal handling.
684
ec2423c9
GM
6852001-04-11 Gerd Moellmann <gerd@gnu.org>
686
30cb0001 687 * fns.c: Include blockinput.h.
52283633 688
ec2423c9
GM
689 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
690
719d83ad
GM
6912001-04-10 Gerd Moellmann <gerd@gnu.org>
692
60f8d735
GM
693 * fns.c (Fcompare_strings): Fix return values.
694
afffeb57
GM
695 * window.c (window_scroll): Change the meaning of N to mean
696 N screen-fulls or N lines.
697 (window_scroll_pixel_based, window_scroll_line_based)
698 (scroll_command, Fscroll_other_window): Change accordingly.
699
52283633
SM
700 * window.c (window_scroll_pixel_based, Frecenter):
701 Call window_box_height instead of using it.last_visible_y for the
afffeb57
GM
702 height of the window.
703
704 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
705 instead of using it.last_visible_y for the height of the window.
52283633 706
719d83ad 707 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
8ddf3ee1 708 From Dan Holmsand <dan@eyebee.com>.
719d83ad
GM
709
710 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
8ddf3ee1
GM
711 able to write to hidden and system files. From Dan Holmsand
712 <dan@eyebee.com>.
719d83ad 713
8ddf3ee1
GM
714 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
715 Holmsand <dan@eyebee.com>.
719d83ad 716
522ed7fb
GM
7172001-04-09 Gerd Moellmann <gerd@gnu.org>
718
9170e5d4
GM
719 * fns.c (Fplist_get, Fplist_put): Add QUITs.
720
522ed7fb
GM
721 * window.c (window_internal_height): Return 1 less if the
722 window has a header line.
723
724 * xdisp.c (try_window_id): When scrolling on a terminal, take
725 the change of window_internal_height into account.
726
ceeb3d7d
EZ
7272001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
728
729 * gmalloc.c (align): If the argument SIZE would overflow
730 __malloc_ptrdiff_t, fail right away.
731
63685b9d
GM
7322001-04-06 Gerd Moellmann <gerd@gnu.org>
733
734 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
735 Make sure the tooltip is completely visible.
736 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
737
738 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
739
740 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
741
3ffb33bb
DL
7422001-04-06 Dave Love <fx@gnu.org>
743
52283633
SM
744 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
745 Fix test of `from'.
3ffb33bb 746
869fb12c
GM
7472001-04-06 Gerd Moellmann <gerd@gnu.org>
748
52283633 749 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
afa3935f 750
869fb12c
GM
751 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
752
441bf856
GM
7532001-04-05 Gerd Moellmann <gerd@gnu.org>
754
4d664b04
GM
755 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
756
52283633 757 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
a55e4e68 758
30ca89f5
GM
759 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
760 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
761
762 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
763 shell widget's position only if it is non-null.
764
52283633
SM
765 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
766 Set f->output_data.x->widget to null after destroying it.
30ca89f5 767
81a81c0f
GM
768 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
769 FILENAME to bring it in synch with the documentation.
770
441bf856
GM
771 * xfaces.c (realizing_basic_faces_p): Renamed from
772 realize_default_face_p.
773 (realize_basic_faces): Set/clear realizing_basic_faces_p.
774 (realize_default_face): Don't set the flag.
775
702a1e8e
GM
7762001-04-04 Gerd Moellmann <gerd@gnu.org>
777
1013f4e3
GM
778 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
779
52283633
SM
780 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
781
1013f4e3
GM
782 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
783 the buffer that was used for echoing.
784
702a1e8e
GM
785 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
786 (first_font_matching): Removed unused function.
787 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
788 (may_use_scalable_font_p): Remove parameter FONT; rename
789 parameter NAME to FONT.
790 (x_face_list_fonts): Fix missing bounds check.
791 (realizing_default_face_p): New variable.
792 (realize_default_face): Set and clear that flag.
793 (x_face_list_fonts): When called during the realization of the
794 default face, and no matching fonts are found when ignoring
795 scalable fonts and fonts matching a regexp from
796 face-ignored-fonts, try without ignoring fonts.
797
f9dbcda4
GM
7982001-04-03 Gerd Moellmann <gerd@gnu.org>
799
ad18ffb1
GM
800 * xfns.c (postprocess_image): New function.
801 (lookup_image): Call it for all image types except PostScript.
802 (x_kill_gs_process): Call postprocess_image.
803
f9dbcda4
GM
804 * xterm.c (x_use_underline_position_properties): New variable.
805 (x_draw_glyph_string): Use it.
806 (syms_of_xterm): DEFVAR_BOOL it.
807
651f03b6
GM
8082001-04-02 Gerd Moellmann <gerd@gnu.org>
809
810 * xterm.c (x_alloc_nearest_color_1): New function.
811 (x_alloc_nearest_color): Use it.
812 (x_color_cells): Take a Display as argument, instead of a frame.
813 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
814 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
815 (x_initialize): Register cvt_string_to_pixel as resource converter
816 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
817
73d75a62
GM
8182001-03-30 Gerd Moellmann <gerd@gnu.org>
819
b2046df8
GM
820 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
821 (set_iterator_to_next): If a string from a display property ends,
822 consider the case that this might also be the end of an
823 overlay string having the display property.
824
52283633 825 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
b2046df8 826
87d8eba4
GM
827 * xdisp.c (reseat_to_string): Undo last change.
828
73d75a62
GM
829 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
830 matrix of a window when the header line changes, when
831 new rows are allocated, or when the width changes.
832
911a2406
EZ
8332001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
834
52283633 835 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
911a2406 836
aea51abe
EZ
8372001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
838
839 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
840 deprecated.
841
176bc847
GM
8422001-03-29 Gerd Moellmann <gerd@gnu.org>
843
ed31fabf
GM
844 * data.c (Fsubr_interactive_form): New function.
845 (syms_of_data): Defsubr it.
846
176bc847
GM
847 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
848 (live_float_p, live_misc_p): Return 1 only if the offset of the
849 pointer in its block is >= 0.
850
e59d0e9d
GM
8512001-03-28 Paul Eggert <eggert@twinsun.com>
852
853 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
854 microseconds calcuation. Avoid double-rounding problem.
855 In doc string, warn that the result is approximate.
856
f827b862
GM
8572001-03-28 Gerd Moellmann <gerd@gnu.org>
858
30a3f61c
GM
859 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
860 bind `inhibit-eval-during-redisplay' to t.
861
862 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
863
864 * xdisp.c (inhibit_eval_during_redisplay)
865 (Qinhibit_eval_during_redisplay): New variables.
866 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
867 don't eval, return nil instead.
868 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
869 Initialize Qinhibit_eval_during_redisplay.
870
e719f5ae
GM
871 * xdisp.c (reseat_to_string): If STRING is multibyte, set
872 the iterator's multibyte_p flag.
873
deb2613a
GM
874 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
875 instead of setting it to zero; it's incremented for each frame
876 where the menu face is changed.
877
52283633
SM
878 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
879 change bottom shadow accordingly.
880
881 * xterm.c (expose_window_tree, expose_frame): Don't compute
a02f1be0
GM
882 intersections here.
883 (expose_window): Do it here instead.
52283633 884 (x_draw_glyph_string): Fix a computation of the underline position.
a02f1be0 885
f827b862
GM
886 * bytecode.c (BYTE_CODE_QUIT): New macro.
887 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
888
4bde0ebb
GM
8892001-03-27 Gerd Moellmann <gerd@gnu.org>
890
607ec83c
GM
891 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
892 Give up if matrix starts in an ellipsis.
893 (init_from_display_pos): Do nothing if POS doesn't specify
894 a dpvec_index but the iterator has such a position.
895
0245398f
GM
896 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
897
aba25348
GM
898 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
899 x/y position is (0, 0) after destroying the menu bar, restore
900 its original position.
901
4bde0ebb
GM
902 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
903 (init_from_display_pos): Use it.
904 (try_window_reusing_current_matrix): Don't use cursor_row_p.
905
8cdb267e
GM
9062001-03-26 Gerd Moellmann <gerd@gnu.org>
907
908 * xdisp.c (try_window_id): Undo last change.
909
9948db79
EZ
9102001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
911
912 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
913
914 * buffer.c (syms_of_buffer): Doc fix.
915
2eddf899
GM
9162001-03-26 Gerd Moellmann <gerd@gnu.org>
917
918 * xfaces.c (x_update_menu_appearance): Use local variable
919 popup_path for setting font resources.
920
6c145d35
EZ
9212001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
922
6a65b1b5
EZ
923 * frame.c (Fframe_list): Don't reference tip_frame if
924 HAVE_WINDOW_SYSTEM is not defined.
925
6c145d35
EZ
926 * emacs.c (main): Update the copyright year. From Werner LEMBERG
927 <wl@gnu.org>.
928
d74c1900
GM
9292001-03-25 Gerd Moellmann <gerd@gnu.org>
930
20fbd925
GM
931 * xdisp.c (init_from_display_pos): Test invisible property
932 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
52283633 933
927c5b3b
GM
934 * xdisp.c (redisplay_internal) <update one window>: Make sure
935 last_arrow_position and last_arrow_string are set.
936
d74c1900
GM
937 * frame.c (Fframe_list): Don't return a tooltip frame.
938
091f8878
GM
9392001-03-23 Gerd Moellmann <gerd@gnu.org>
940
52283633
SM
941 * xdisp.c (mark_window_display_accurate_1): New function,
942 extracted from mark_window_display_accurate.
943 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
43c09969
GM
944 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
945 (mark_window_display_accurate): Use it.
946 (redisplay_internal): Use it for the selected window.
947 (redisplay_internal): Avoid duplicate mark_window_display_accurate
948 for the selected frame.
949
ac90c44f
GM
950 * xdisp.c Use make_number, for readability.
951 (try_window_id): Disable rows below the window end.
952 (try_window_reusing_current_matrix): Use cursor_row_p.
953 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
954 of rows.
955 (init_from_display_pos): If POS specifies a position in a display
956 vector, maybe get the iterator set up for that ellipsis.
43c09969 957
091f8878
GM
958 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
959
991786dd
EZ
9602001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
961
962 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
963
6c29b43c
GM
9642001-03-23 Gerd Moellmann <gerd@gnu.org>
965
966 * xfaces.c (x_update_menu_appearance): Use a different path
967 for Lucid popup menus.
968
d8731202
SM
9692001-03-22 Stefan Monnier <monnier@cs.yale.edu>
970
971 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
972
973 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
974 (string_buffer_position): Use `make_number'.
975
f61a541b
GM
9762001-03-22 Gerd Moellmann <gerd@gnu.org>
977
3c9e997b
GM
978 * xfaces.c (x_update_menu_appearance): Renamed from
979 x_set_menu_face_resources. Use different resources for popups.
980
981 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
982 (GC_CHECK_STRING_BYTES): Don't define.
983
364cd450
GM
984 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
985 Removed, together with subroutines.
986 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
d8731202 987 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
364cd450 988
d8731202
SM
989 * dispextern.h (x_set_menu_resources_from_menu_face):
990 Remove prototype.
364cd450 991
d8731202 992 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
364cd450
GM
993 Remove calls to x_set_menu_resources_from_menu_face.
994
d8731202
SM
995 * xfaces.c (xm_set_menu_resources_from_menu_face):
996 Remove #ifndef LESSTIF_VERSION.
f61a541b
GM
997
998 * xmenu.c: Include widget.h.
999 (single_submenu): Return int. Some cleanup.
1000 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
1001
140330de
GM
10022001-03-21 Gerd Moellmann <gerd@gnu.org>
1003
1004 * xterm.c (x_update_window_end): Handle overwritten mouse face
1005 also for tool bar windows.
1006 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
1007 DRAW is DRAW_IMAGE_RAISED.
1008
1741905c
GM
10092001-03-20 Gerd Moellmann <gerd@gnu.org>
1010
fa88947e
GM
1011 * print.c (syms_of_print): Doc fixes.
1012
1741905c
GM
1013 * fns.c (Fmd5): Doc fix.
1014
ade0bee1
GM
10152001-03-19 Gerd Moellmann <gerd@gnu.org>
1016
357e7376
GM
1017 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1018 Clear area of the frame not occupied by the scroll bar.
1019
c2c097cc
GM
1020 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
1021 tip frame's root window buffer to *tip* right after creating
1022 the frame.
1023
ade0bee1
GM
1024 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
1025 is an integer don't have to be for space characters.
1026
88c6e37e
GM
10272001-03-16 Gerd Moellmann <gerd@gnu.org>
1028
52283633
SM
1029 * indent.c (current_column, current_column_1, Fmove_to_column)
1030 (compute_motion): Handle characters from display vectors differently.
88c6e37e 1031
c62eed76
KH
10322001-03-15 Kenichi Handa <handa@etl.go.jp>
1033
1034 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
1035 drawing glyph string.
1036
c899e7e6
GM
10372001-03-15 Gerd Moellmann <gerd@gnu.org>
1038
d0bbfc99
GM
1039 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
1040 (command_loop_1): Undo last change.
1041
03d1a189
GM
1042 * xterm.c (fast_find_position): Return the correct vpos.
1043
c899e7e6 1044 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
52283633 1045 non-null, set a per-buffer value in BUF instead of the current buffer.
c899e7e6
GM
1046 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
1047 Call store_symval_forwarding with BUF null.
1048 (set_internal): Call store_symval_forwarding with the BUF
1049 parameter passed to set_internal. Formerly, the value was always
1050 set in the current buffer; the buffer recorded in specbind for
1051 this case wasn't used.
1052 (arith_driver): Reindent.
1053
52283633
SM
1054 * buffer.c (swap_out_buffer_local_variables):
1055 Call store_symval_forwarding with BUF null.
c899e7e6
GM
1056
1057 * lisp.h (store_symval_forwarding): Change prototype.
1058
1059 * eval.c (specbind): Call store_symval_forwarding with BUF null.
1060
57ac7c81
GM
10612001-03-14 Gerd Moellmann <gerd@gnu.org>
1062
697617d9
GM
1063 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
1064 FOR_DELETION. Avoid resizing the mini-window of the selected
1065 frame if FOR_DELETION is set.
1066 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
1067 (Fmake_frame_invisible): Change calls to do_switch_frame for new
1068 signature.
1069
1070 * window.c (Fset_window_configuration): Change call to
1071 do_switch_frame to new format.
1072
1073 * keyboard.c (quit_throw_to_read_char): Change call to
1074 do_switch_frame to new format.
1075
1076 * lisp.h (do_switch_frame): Change prototype.
1077
819dce0f
GM
1078 * frame.c (Fframe_parameters): In the `buffer-list' frame
1079 parameter, store the buffer list of FRAME, not the list of the
1080 selected frame.
1081
57ac7c81
GM
1082 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
1083 box just because the glyph row's full_width_p flag is set.
1084
65008712
GM
10852001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
1086
1087 * xdisp.c (highlight_trailing_whitespace): On character terminals,
1088 skip the padding blanks inserted in extend_face_to_end_of_line,
1089 before checking for trailing whitespace.
1090
159cf431
GM
10912001-03-13 Gerd Moellmann <gerd@gnu.org>
1092
52283633 1093 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
19b2bb80
GM
1094 Remove special handling for LessTif/Motif.
1095 (toplevel): Don't include Xm/Xm.h.
1096
52283633
SM
1097 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
1098 Remove workaround code for LessTif; it doesn't work anymore.
1099
2564ea1b 1100 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
57ac7c81 1101 Xm/ScrollBarP.h.
afcdc0a1 1102
52283633
SM
1103 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
1104 Don't access private scroll bar data; it's no longer necessary with
23442ae4
GM
1105 contemporary LessTif.
1106
52283633
SM
1107 * xfaces.c (xm_set_menu_resources_from_menu_face):
1108 Change #if 0 to #ifndef LESSTIF_VERSION.
9faaaa52 1109
159cf431
GM
1110 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
1111 removing button grabs.
1112
c6f7429a
KH
11132001-03-13 Kenichi Handa <handa@etl.go.jp>
1114
cb82d767
KH
1115 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
1116 and clip-large-size-font as obsolete.
1117
c6f7429a
KH
1118 * lread.c (read_multibyte): Check the validity of multibyte
1119 sequence. If invalid, return the first byte.
1120
760cefb5
GM
11212001-03-12 Gerd Moellmann <gerd@gnu.org>
1122
1123 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
1124 before running the command; timer functions or process
1125 filters may have set it.
1126
5141f9d0
EZ
11272001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
1128
1129 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
1130 Doc fix.
1131
b6a15240
GM
11322001-03-12 Gerd Moellmann <gerd@gnu.org>
1133
1134 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
1135 to sprintf.
1136
95522746
GM
11372001-03-09 Gerd Moellmann <gerd@gnu.org>
1138
db14cfc5
GM
1139 * dispextern.h (string_buffer_position): Add prototype.
1140
52283633 1141 * xdisp.c (string_buffer_position, display_prop_string_p)
db14cfc5
GM
1142 (single_display_prop_string_p): New functions.
1143
1144 * xterm.c (note_mouse_highlight): If there's no help-echo on
1145 a string, look at the buffer text ``under'' it.
1146
1147 * keyboard.c (make_lispy_event): Add string info to the event,
1148 analogous to what's done on mode lines.
1149 (read_key_sequence): For a click on a string, consider `local-map'
1150 and `keymap' of that string.
1151
52283633
SM
1152 * keyboard.c (make_lispy_event, make_lispy_movement):
1153 Adjust calls to buffer_posn_from_coords to new format.
3cfd8357
GM
1154
1155 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
1156
1157 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
1158 POS; return void.
1159
95522746
GM
1160 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
1161 flags argument to emacs_open; it seems to conflict with O_EXCL.
1162
898a399d
KH
11632001-03-09 Kenichi Handa <handa@etl.go.jp>
1164
28cd4910
KH
1165 * composite.h (struct composition): Change types of members;
1166 glyph_len to unsigned, width to unsigned short.
898a399d 1167
4cdf6a6c
AI
11682001-03-08 Andrew Innes <andrewi@gnu.org>
1169
1170 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
1171 menu titles.
1172
129004d3
GM
11732001-03-08 Gerd Moellmann <gerd@gnu.org>
1174
221dd3e7
GM
1175 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
1176 instead of nil.
1177
52283633 1178 * xterm.c (note_mouse_highlight): Handle mouse-face and
5de7c6f2
GM
1179 help-echo in strings.
1180 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
1181 (fast_find_string_pos): New function.
1182
52283633
SM
1183 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
1184 (display_string): Call face_at_string_position with new parameter.
5de7c6f2
GM
1185
1186 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
1187 Handle `mouse-face'.
1188
1189 * dispextern.h (face_at_string_position): Change prototype.
1190
52283633 1191 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
e1fbabaf 1192
129004d3
GM
1193 * keyboard.c (make_lispy_event): Avoid generating drag events
1194 if the mouse hasn't actually moved to another buffer position.
52283633 1195
80c8ab8c
DL
11962001-03-08 Dave Love <fx@gnu.org>
1197
129004d3 1198 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
80c8ab8c 1199
989521fd
GM
12002001-03-08 Gerd Moellmann <gerd@gnu.org>
1201
1202 * process.c (Fset_process_window_size): Fix a typo.
1203
bb5c338d
KH
12042001-03-08 Kenichi Handa <handa@etl.go.jp>
1205
1206 * coding.c (detect_coding_sjis): Do more rigid check.
1207 (detect_coding_big5): Likewise.
1208 (decode_coding_sjis_big5): Likewise.
1209 (Fdetect_coding_region): Call detect_coding_system with tailing
1210 anchor byte `\0' for more rigid detection.
52283633 1211 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
bb5c338d
KH
1212 (Fdetect_coding_string): Likewise.
1213
8b8f9197
SM
12142001-03-07 Stefan Monnier <monnier@cs.yale.edu>
1215
1216 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
1217 a string before extracting its data.
1218
3bdf2660
GM
12192001-03-07 Gerd Moellmann <gerd@gnu.org>
1220
1221 * window.c (Frecenter): Rewrite code handling negative values
1222 of ARG on graphical frames.
1223
12242001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
1225
1226 * window.c (displayed_window_lines): If W->start is outside the
1227 accessible portion of the buffer, call start_display with BEGV or
1228 ZV instead of W->start.
1229
471f86b9
GM
12302001-03-07 Gerd Moellmann <gerd@gnu.org>
1231
2ab62c6c
GM
1232 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
1233
471f86b9
GM
1234 * process.c (Fset_process_filter): Don't crash if the input
1235 file descriptor of PROCESS is closed.
1236 (Fset_process_window_size): Likewise.
1237
101922c3
GM
12382001-03-06 Kenichi Handa <handa@etl.go.jp>
1239
1240 * xterm.c (XTflash): Make the timeout of select shorter, and call
1241 select repeatedly until the desired time expires.
1242
45d051a7
GM
12432001-03-06 Gerd Moellmann <gerd@gnu.org>
1244
1245 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
1246
1247 * xfns.c (Fx_create_frame): Clear Vwindow_list.
1248
1249 * lisp.h (Vwindow_list): Declare extern.
1250
8f372c46
EZ
12512001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
1252
1253 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
1254
f16a7aa5
GM
12552001-03-06 Gerd Moellmann <gerd@gnu.org>
1256
157ae273
GM
1257 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
1258 to detect a case where we have to highlight a different region
1259 despite not having left the currently highlighted region.
1260 Set mouse_face_overlay in the x_display_info.
45d051a7 1261 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
157ae273
GM
1262
1263 * xterm.h (struct x_display_info): Add mouse_face_overlay.
1264
1265 * buffer.c (mouse_face_overlay_overlaps): New function.
1266
1267 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
1268 (Qmouse_face): Declare extern.
1269
f16a7aa5
GM
1270 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
1271 if face_change_count is non-zero.
1272
827afcac
KH
12732001-03-06 Kenichi Handa <handa@etl.go.jp>
1274
1275 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
1276 that the source is unibyte.
1277
14c7242e
DL
12782001-03-05 Dave Love <fx@gnu.org>
1279
827afcac 1280 * xterm.c (XTmouse_position): Fix typo.
14c7242e 1281
c28b847b
GM
12822001-03-05 Gerd Moellmann <gerd@gnu.org>
1283
1284 * minibuf.c (read_minibuf): Clean up the binding stack if
1285 called noninteractively.
1286
b86644f2
KH
12872001-03-05 Kenichi Handa <handa@etl.go.jp>
1288
1289 * coding.c (syms_of_coding): Docstring modified.
1290
203682cc 12912001-03-05 Kenichi Handa <handa@etl.go.jp>
b86644f2
KH
1292
1293 * charset.c (char_to_string): If a single byte char has modifier
1294 bits that can't be reflected to the character code, ignore them
45d051a7 1295 instead of signaling an error.
b86644f2 1296
e30bd7b7
EZ
12972001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
1298
1299 * s/msdos.h: Update copyright notice.
1300
1301 * dosfns.h: Update copyright notice.
1302
1303 * dosfns.c: Update copyright notice.
1304
1305 * msdos.c: Update copyright notice.
1306
b52b65bd
GM
13072001-03-02 Gerd Moellmann <gerd@gnu.org>
1308
1309 * xterm.c (glyph_rect): New function.
1310 (XTmouse_position): Use it to raise the threshold for mouse
1311 movement event generation.
1312
53c4b1e6
EZ
13132001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
1314
1315 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
1316 specifies (reverse . t), reverse the initial screen colors.
1317 (IT_set_frame_parameters): If the property is foreground-color,
52283633
SM
1318 but we are reversing the colors, set bg_set, not fg_set.
1319 Likewise for setting background-color and reversing: set fg_set.
1320 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
53c4b1e6
EZ
1321 in effect.
1322
1323 * xfaces.c (Finternal_set_lisp_face_attribute)
1324 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
1325 parameters alist.
1326
f964b4d7
GM
13272001-03-02 Gerd Moellmann <gerd@gnu.org>
1328
ef53d75e
GM
1329 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
1330 to a single slash in the middle of file names.
1331
52283633 1332 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
cda0f4da
GM
1333 Accept only alphanumeric time zone names.
1334
f964b4d7
GM
1335 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
1336 or width area.
1337 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
1338 a widget to zero height.
52283633 1339
c3c45f65
GM
13402001-03-01 Gerd Moellmann <gerd@gnu.org>
1341
1342 * window.c (Fwindow_end): Call move_it_past_eol only if
1343 ending up on a partially visible line.
1344
028d739a
DL
13452001-03-01 Dave Love <fx@gnu.org>
1346
1347 * ccl.c (Fccl_execute): Doc fix.
1348
57c5889c
GM
13492001-03-01 Gerd Moellmann <gerd@gnu.org>
1350
35f59f6b
GM
1351 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
1352 of the tool bar before calling x_figure_window_size.
1353
f84ff02c
GM
1354 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
1355 NULL after destroying it, otherwise XTread_socket can access a
1356 destroyed widget when input is unblocked.
1357
8b8f9197 1358 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
52283633 1359
57c5889c
GM
1360 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
1361 same name as before, although there was a change in fontsets.
1362
224227d1
KR
13632001-02-28 Ken Raeburn <raeburn@gnu.org>
1364
4560730a
KR
1365 * lisp.h (Fframe_parameter): Declare.
1366
224227d1 1367 * window.c (set_window_buffer): Field vscroll is an int, not a
57c5889c 1368 Lisp_Object.
224227d1 1369
ece93c02
GM
13702001-02-28 Gerd Moellmann <gerd@gnu.org>
1371
11ef99b9
GM
1372 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
1373 NULL instead.
1374
1375 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
1376 NULL instead.
1377
ece93c02
GM
1378 * alloc.c (toplevel): Include process.h.
1379 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
1380 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
1381 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
52283633
SM
1382 (allocate_vector, allocate_hash_table, allocate_window)
1383 (allocate_frame, allocate_process, allocate_other_vector):
1384 New functions.
ece93c02
GM
1385 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
1386 (mark_maybe_pointer): New function.
52283633 1387 (mark_memory): Also mark Lisp data to which only pointers
ece93c02
GM
1388 remain and not Lisp_Objects.
1389 (min_heap_address, max_heap_address): New variables.
1390 (mem_find): Return MEM_NIL if START is below min_heap_address or
1391 above max_heap_address.
1392 (mem_insert): Compute min_heap_address and max_heap_address.
1393
1394 * process.c (make_process): Use allocate_process.
1395
1396 * frame.c (make_frame): Use allocate_frame.
1397
1398 * window.c (make_window, make_dummy_parent): Use allocate_window.
1399 (Fcurrent_window_configuration): Use allocate_other_vector.
1400
1401 * lisp.h (allocate_vectorlike): Remove prototype.
1402 (allocate_vector, allocate_other_vector, allocate_frame)
1403 (allocate_window, allocate_process, allocate_hash_table):
1404 Add prototypes.
1405
1406 * fns.c (Fdelete, larger_vector): Use allocate_vector.
1407 (make_hash_table, copy_hash_table): Use allocate_hash_table.
1408
063af457
KH
14092001-02-27 Kenichi Handa <handa@etl.go.jp>
1410
1411 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
1412 treat the produced bytes as a valid multibyte sequence.
1413
1414 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
52283633
SM
1415 (ccl_driver) <CCL_WriteMultibyteChar2>:
1416 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
063af457
KH
1417 <ccl_finish>: Set ccl->eight_bit_control properly.
1418
1419 * ccl.h (struct ccl_program): New member eight_bit_control.
1420
f58c6494
SM
14212001-02-26 Stefan Monnier <monnier@cs.yale.edu>
1422
1423 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
1424 accessible_keymaps_char_table.
1425 (accessible_keymaps_char_table): Obey `is_metized'.
1426 (where_is_internal, Fwhere_is_internal): Don't confuse int and
1427 Lisp_Object.
1428
c596c392
GM
14292001-02-26 Gerd Moellmann <gerd@gnu.org>
1430
1431 * dispnew.c: Check HAVE_TERM_H before including term.h.
1432
425de386
AI
14332001-02-24 Andrew Innes <andrewi@gnu.org>
1434
1435 * makefile.w32-in: Update copyright notice.
1436
2ba11bbd
SM
14372001-02-24 Stefan Monnier <monnier@cs.yale.edu>
1438
1439 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
1440
66c56ed1
KH
14412001-02-24 Kenichi Handa <handa@etl.go.jp>
1442
4c1593ce
KH
1443 * Makefile.in (lisp): Add international/utf-8.elc.
1444
66c56ed1
KH
1445 * fontset.c (Fnew_fontset): Fix handling of the case that an
1446 element of FONTLIST is a cons of family and registry.
1447
796ead7e
JR
14482001-02-23 Jason Rumney <jasonr@gnu.org>
1449
1450 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
1451 to height unconditionally.
1452
1453 * w32term.c (x_set_glyph_string_background_width): Extend the
52283633 1454 background face to the end of the drawing area in the text area, only.
796ead7e
JR
1455 (x_insert_glyphs): Call window_box_left to obtain the left
1456 x-coordinate of the area to shift.
1457
1458 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
1459 safe_run_hooks.
1460
f6839838
AI
14612001-02-22 Andrew Innes <andrewi@gnu.org>
1462
52283633 1463 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
f6839838
AI
1464 ($(BLD)\dispnew.obj):
1465 ($(BLD)\editfns.obj):
1466 ($(BLD)\fileio.obj):
1467 ($(BLD)\filelock.obj):
1468 ($(BLD)\keyboard.obj):
1469 ($(BLD)\w32proc.obj):
1470 ($(BLD)\process.obj):
1471 ($(BLD)\sysdep.obj): Ditto.
1472
1473 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
1474 header files.
52283633
SM
1475 ($(BLD)/dispnew.$(O)):
1476 ($(BLD)/editfns.$(O)):
1477 ($(BLD)/fileio.$(O)):
1478 ($(BLD)/filelock.$(O)):
1479 ($(BLD)/keyboard.$(O)):
1480 ($(BLD)/w32proc.$(O)):
1481 ($(BLD)/process.$(O)):
f6839838
AI
1482 ($(BLD)/sysdep.$(O)): Ditto.
1483
c224f70b
GM
14842001-02-22 Gerd Moellmann <gerd@gnu.org>
1485
51695746
GM
1486 * xdisp.c (forward_to_next_line_start): When taking the shortcut
1487 at the start of the function, check that the \n in it->c is
1488 from the iterator's current position.
52283633 1489
a61b7058
GM
1490 * xdisp.c (handle_single_display_prop): Add parameter
1491 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
1492 properties which replace the display of text with something else.
1493 (handle_display_prop): Call handle_single_display_prop with
1494 additional argument saying if we already replaced text display
1495 with something else. Use AREF.
52283633 1496 (with_echo_area_buffer_unwind_data, display_menu_bar)
a61b7058
GM
1497 (decode_mode_spec_coding): Use AREF and ASIZE.
1498
3473f362
GM
1499 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
1500 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
1501 * vmstime.h: Files removed.
52283633 1502
2bb58df3
GM
1503 * unexencap.c, unexfx2800.c: Files removed.
1504
c224f70b
GM
1505 * dispnew.c (direct_output_for_insert): Give up if we are showing
1506 a message or just cleared the message because we might need to
1507 resize the echo area window or display an empty echo area.
1508
ffc9ff0c
GM
15092001-02-21 Gerd Moellmann <gerd@gnu.org>
1510
0528abe1
GM
1511 * xdisp.c (redisplay_internal): Do the
1512 mark_window_display_accurate after all windows have been
1513 redisplayed because this call resets flags in buffers which are
1514 needed for proper redisplay.
1515
52283633
SM
1516 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
1517 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
ffc9ff0c
GM
1518 the old names.
1519
52283633
SM
1520 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
1521 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
1522
1523 * msdos.h (struct x_output): Rename busy_window to
1524 hourglass_window, busy_p to hourglass_p.
1525
52283633
SM
1526 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
1527 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
1528
1529 * xfns.c: Rename everything containing *busy_cursor* and similar
1530 to *hourglass*.
1531 (syms_of_w32fns): Rename x-busy-pointer-shape to
1532 x-hourglass-pointer-shape, display-busy-cursor to
1533 display-hourglass, busy-cursor-delay to hourglass-delay.
1534
1535 * w32fns.c: Rename everything containing *busy_cursor* and similar
1536 to *hourglass*.
1537 (syms_of_w32fns): Rename x-busy-pointer-shape to
1538 x-hourglass-pointer-shape, display-busy-cursor to
1539 display-hourglass, busy-cursor-delay to hourglass-delay.
1540
1541 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
1542 of its busy_p flag.
1543
1544 * dispextern.h (start_hourglass, cancel_hourglass)
1545 (display_hourglass_p): Renamed from *busy_cursor*.
1546
ab2c5f0a
GM
15472001-02-20 Gerd Moellmann <gerd@gnu.org>
1548
d17e49a8
GM
1549 * keyboard.c (read_char): When an event from unread-command-events
1550 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
1551
fa97adf6
GM
1552 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
1553 equal to the current buffer.
1554
ab2c5f0a
GM
1555 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
1556 nil, otherwise we're left with truncate_lines t when a message
1557 is printed with message-truncate-lines bound to t.
1558
aeac019e
GM
15592001-02-19 Gerd Moellmann <gerd@gnu.org>
1560
c8bc6f65
GM
1561 * window.c (Fmove_to_window_line): Undo last change.
1562 (displayed_window_lines): Call line_bottom_y to determine
1563 the line's bottom position.
1564
1565 * dispextern.h (line_bottom_y): Add prototype.
1566
52283633 1567 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
c8bc6f65
GM
1568 (pos_visible_p): Use it.
1569
980a2d69
GM
1570 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
1571 set redisplaying_p to 0 here instead of in Frecursive_edit.
1572 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
1573 set redisplaying_p.
1574
52283633 1575 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
184d2372
GM
1576 New variables.
1577 (syms_of_xdisp): Initialize new variables.
1578 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
1579 Specbind `inhibit-menubar-update' when updating the menu bar.
1580
65048e97
GM
1581 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
1582 safe_run_hooks.
1583
1584 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
1585 safe_run_hooks.
1586
a57c4026
GM
1587 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
1588 is null.
1589
aeac019e
GM
1590 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
1591 to the start of the file.
1592
76846b31
GM
15932001-02-16 Gerd Moellmann <gerd@gnu.org>
1594
f3f053f3 1595 * window.c (set_window_buffer): Fix last change.
52283633 1596
f3f053f3
GM
1597 * window.c (set_window_buffer): Set window's vscroll to 0.
1598
dad75588
GM
1599 * window.c (coordinates_in_window): Increase width of area
1600 where the vertical line can be dragged.
1601
c220b753
GM
1602 * xterm.c (x_set_glyph_string_background_width): Extend the
1603 background face to the end of the drawing area in the text
1604 area, only.
1605
c56b1c1b
GM
1606 * xdisp.c (handle_single_display_prop): Set iterator's position
1607 to where the `display' property starts, like for images.
1608 (dump_glyph): New function.
1609 (dump_glyph_row): Use it. Dump info about marginal areas.
1610
1611 * dispnew.c (direct_output_for_insert): Recognize more cases where
1612 glyphs can be written instead of being inserted.
1613
1614 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
1615 the left x-coordinate of the area to shift.
1616
76846b31
GM
1617 * dired.c (directory_files_internal): Set result list to nil
1618 before retrying.
1619
0fc71a77
KH
16202001-02-15 Kenichi Handa <handa@etl.go.jp>
1621
1622 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
1623 invalid multibyte sequence, treat *SRC as a character of
1624 eight-bit-graphic.
1625
25078b54
EZ
16262001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
1627
1628 * textprop.c (Fset_text_properties): Doc fix.
1629
8399f8a0
GM
16302001-02-15 Gerd Moellmann <gerd@gnu.org>
1631
1632 * dispnew.c (update_text_area): Undo change of 2001-01-12.
1633
9a2a6f73
DL
16342001-02-14 Dave Love <fx@gnu.org>
1635
1636 * coding.c: Doc and message fixes.
1637
bf853fee
AI
16382001-02-14 Andrew Innes <andrewi@gnu.org>
1639
1640 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
1641 Emacs frame above the screen size.
1642
78c663d8
GM
16432001-02-14 Gerd Moellmann <gerd@gnu.org>
1644
1645 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
1646
7cc9f69f
GM
16472001-02-13 Gerd Moellmann <gerd@gnu.org>
1648
0a411995
GM
1649 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
1650 case that TO ends up beyond ZV after running before-change-functions.
1651
5ddc1b75
GM
1652 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
1653 the selected window if it is showing the buffer in question.
1654
7cc9f69f
GM
1655 * dired.c (directory_files_internal): Initialize errno.
1656 (toplevel): Include errno.h.
1657
2e6621ca
GM
16582001-02-13 Kenichi Handa <handa@etl.go.jp>
1659
1660 * xfaces.c (best_matching_font): New parameter width_ratio.
1661 Multiply avgwidth by width_ratio.
1662 (choose_face_font): Call best_matching_font with width_ratio
1663 calculated from the column width of C.
1664
60222d69
AI
16652001-02-12 Andrew Innes <andrewi@gnu.org>
1666
1667 The following changes are to draw box lines inside characters area
1668 if line-width is negative.
52283633 1669
60222d69
AI
1670 * w32term.c (x_produce_image_glyph): Pay attention to the case that
1671 face->box_line_width is negative.
1672 (x_produce_stretch_glyph): Likewise.
1673 (x_produce_glyphs): Likewise.
1674 (x_estimate_mode_line_height): Likewise.
1675 (x_draw_glyph_string_background): Likewise.
1676 (x_draw_glyph_string_foreground): Likewise.
1677 (x_draw_composite_glyph_string_foreground): Likewise.
1678 (x_draw_glyph_string_box): Likewise.
1679 (x_draw_image_foreground): Likewise.
1680 (x_draw_image_relief): Likewise.
1681 (x_draw_image_foreground_1): Likewise.
1682 (x_draw_image_glyph_string): Likewise.
1683
9804b846
KH
16842001-02-09 Kenichi Handa <handa@etl.go.jp>
1685
1686 The following changes are to draw box lines inside characters area
1687 if line-width is negative.
52283633 1688
9804b846
KH
1689 * xterm.c (x_produce_image_glyph): Pay attention to the case that
1690 face->box_line_width is negative.
1691 (x_produce_stretch_glyph): Likewise.
1692 (x_produce_glyphs): Likewise.
1693 (x_estimate_mode_line_height): Likewise.
1694 (x_draw_glyph_string_background): Likewise.
1695 (x_draw_glyph_string_foreground): Likewise.
1696 (x_draw_composite_glyph_string_foreground): Likewise.
1697 (x_draw_glyph_string_box): Likewise.
1698 (x_draw_image_foreground): Likewise.
1699 (x_draw_image_relief): Likewise.
1700 (x_draw_image_foreground_1): Likewise.
1701 (x_draw_image_glyph_string): Likewise.
1702
1703 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
1704 and :line-width can be negative.
52283633 1705 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
9804b846 1706
49be9f70
JR
17072001-02-09 Jason Rumney <jasonr@gnu.org>
1708
1709 * w32term.c (w32_encode_char): Treat eight bit graphic and control
1710 characters the same as ASCII and latin-1.
1711 (x_display_and_set_cursor): Check for the focus frame's selected
1712 window instead of selected_window.
1713 (x_after_update_window_line): Don't clear if frame's internal
1714 border width is zero.
1715 (x_new_font): Don't change a tooltip's size.
1716 (w32_initialize): Set char_ins_del_ok to 1.
1717
1718 * w32fns.c (Fx_show_tip): Fix calls to make_number.
1719 (x_set_font): If font hasn't changed, avoid recomputing
1720 faces and other things.
52283633
SM
1721 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
1722 (Fx_create_frame): Add the tool bar height to the frame height.
49be9f70
JR
1723 (x_create_tip_frame): Prevent changing the tooltip's
1724 background color by specifying a color for the default font
1725 in .Xdefaults.
1726 (Qcancel_timer): New variable.
1727 (syms_of_w32fns): Initialize and staticpro it.
1728 (Fx_hide_tip, Fx_show_tip): Use it.
1729 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
1730 the timer.
1731 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
1732
1733 * w32.c (init_environment): Duplicate local string before putenv.
1734
555e35d2
SZ
17352001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
1736
1737 * charset.c (Fstring): A typo.
1738
19c92c94
KH
17392001-02-09 Kenichi Handa <handa@etl.go.jp>
1740
e47a1c33
KH
1741 * charset.c (Fstring): If all arguments are less than 256, return
1742 a unibyte string.
1743
1744 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
1745 return a unibyte string.
1746
19c92c94
KH
1747 * coding.c (code_convert_region): After detecting a coding, if
1748 nothing found, set coding->composing to COMPOSITION_NO.
1749 (decode_coding_string): Likewise.
1750
d8e675f5
SM
17512001-02-08 Stefan Monnier <monnier@cs.yale.edu>
1752
1753 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
1754 to avoid overflow.
1755
bd503487
KH
17562001-02-07 Kenichi Handa <handa@etl.go.jp>
1757
1758 * charset.c (parse_str_to_multibyte): New function.
1759
1760 * charset.h (parse_str_to_multibyte): Extern it.
1761
1762 * print.c (print_string): If we are going to print a unibyte
1763 string into a multibyte buffer, convert the string to multibyte by
1764 str_to_multibyte.
1765
a8370d72
AI
17662001-02-06 Andrew Innes <andrewi@gnu.org>
1767
1768 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
1769 been created. It seems we can get sent window messages such as
1770 WM_ERASEBKGND before we properly update a frame.
1771
c363a1d6
GM
17722001-02-06 Gerd Moellmann <gerd@gnu.org>
1773
1774 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
1775 Avoid some unnecessary cursor positioning.
1776
a08332c0
GM
17772001-02-05 Gerd Moellmann <gerd@gnu.org>
1778
52283633 1779 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
a08332c0
GM
1780 (LFACE_AVGWIDTH): New macro.
1781 (LFACEP): Use AREF.
1782 (check_lface_attrs): Check LFACE_AVGWIDTH.
1783 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
1784 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
1785 (merge_face_vectors): Check LFACE_AVGWIDTH.
1786 (Finternal_make_lisp_face): Use AREF.
1787 (xm_set_menu_resources_from_menu_face)
1788 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
1789 (Finternal_lisp_face_empty_p): Use AREF.
1790 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
1791 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
1792 Compare average widths..
1793 (best_matching_font): Arrange for comparing average widths.
1794
52283633
SM
1795 * dispextern.h (enum lface_attribute_index):
1796 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
1797
5cb3c8d4
DL
17982001-02-05 Dave Love <fx@gnu.org>
1799
1800 * puresize.h: Revert last change following loadup.el change.
1801
193fba87
AI
18022001-02-05 Andrew Innes <andrewi@gnu.org>
1803
1804 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
1805 invocation of temacs, to work with Windows 2000.
1806 (bootstrap-emacs): Ditto.
1807
e16f52ce
GM
18082001-02-05 Gerd Moellmann <gerd@gnu.org>
1809
7a58ab59
GM
1810 * xterm.c (x_display_and_set_cursor): Check for the focus
1811 frame's selected window instead of selected_window.
1812
e89aaabd
GM
1813 * xdisp.c (try_scrolling): If point is in the line below the
1814 window, make sure to move the iterator at least a canonical
1815 char height down.
1816
52283633 1817 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
e16f52ce 1818
789ce875
KH
18192001-02-05 Kenichi Handa <handa@etl.go.jp>
1820
52283633
SM
1821 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
1822 If invalid, execute CCL_INVALID_CMD.
789ce875
KH
1823 (ccl_driver): If the CCL program is terminated because of
1824 CCL_STAT_INVALID_CMD, copy the remaining source data to the
1825 destination instead of throwing them away.
1826
20b28f82
GM
18272001-02-02 Gerd Moellmann <gerd@gnu.org>
1828
79fb38c0
GM
1829 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
1830 faces and other things.
1831
20b28f82
GM
1832 * xdisp.c (get_next_display_element): Fix case of empty
1833 display table entry.
1834
5a72551e
EZ
18352001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
1836
eb24d0bf
EZ
1837 * editfns.c (Fconstrain_to_field): Doc fix.
1838
6a3f48c7
EZ
1839 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
1840 into `thoroughly', to make it consistent with the doc string.
1841
5a72551e
EZ
1842 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
1843
01acdb05
GM
18442001-02-01 Gerd Moellmann <gerd@gnu.org>
1845
0353b28f
GM
1846 * search.c (search_buffer): Call set_search_regs with a byte
1847 position, not a character position.
1848
01acdb05
GM
1849 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
1850 minibuffer-only,
1851
e86b5133
EZ
18522001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
1853
1854 * frame.c (Fmodify_frame_parameters): Doc fix.
1855
7442878f
GM
18562001-01-31 Gerd Moellmann <gerd@gnu.org>
1857
01acdb05
GM
1858 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
1859 identifier which is not reserved by Standard C.
52283633 1860
7442878f
GM
1861 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
1862
1863 * window.c (enum window_part): New enumeration.
1864 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
1865 Qright_bitmap_area.
1866 (coordinates_in_window): Return an enumerator from enum
1867 window_part. Fix handling of right scroll bar.
1868 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
1869 `right-fringe' instead of `left-bitmap-area' and
1870 `right-bitmap-area'. Use enumerators from enum window_part
1871 instead of hard-coded integers.
52283633
SM
1872 (check_window_containing, window_from_coordinates):
1873 Use enumerators from enum window_part instead of hard-coded integers.
7442878f
GM
1874 (syms_of_window): Replace Qleft_bitmap_area and
1875 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
1876
7c132cba
EZ
18772001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
1878
1879 * editfns.c (Fformat_time_string): Doc fix.
1880
c359dd9e
SM
18812001-01-31 Stefan Monnier <monnier@cs.yale.edu>
1882
1883 * keymap.c (Fwhere_is_internal): Use the first valid binding
1884 if no ascii binding is found (when firstonly is t).
1885
ce070307
GM
18862001-01-31 Gerd Moellmann <gerd@gnu.org>
1887
b4f30ec5
GM
1888 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
1889 instead of Finteractive_p.
1890
1891 * lisp.h (interactive_p): Add prototype.
1892
1893 * eval.c (interactive_p): New function.
1894 (Finteractive_p): Use it.
1895
ce070307
GM
1896 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
1897
f57b6e64
DL
18982001-01-31 Dave Love <fx@gnu.org>
1899
d61c7afe
DL
1900 * .gdbinit (hook-run): Define to run xreload.
1901
f57b6e64
DL
1902 * textprop.c (Fset_text_properties): Fix newline in doc string.
1903
eef93f99
GM
19042001-01-30 Gerd Moellmann <gerd@gnu.org>
1905
52283633
SM
1906 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
1907 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
eef93f99
GM
1908
1909 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
52283633 1910 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
eef93f99
GM
1911 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
1912
1913 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
1914 height.
1915
d9c1f6f9
DL
19162001-01-30 Dave Love <fx@gnu.org>
1917
1918 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
1919 AFTER_POTENTIAL_GC.
1920
e8f044a0
GM
19212001-01-29 Gerd Moellmann <gerd@gnu.org>
1922
52283633
SM
1923 * bytecode.c (Fbyte_code) <Bcurrent_column>:
1924 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
e8f044a0 1925
8e1db7b3
EZ
19262001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
1927
1928 * textprop.c (Fset_text_properties): Doc fix.
1929
4eefd9d2
GM
19302001-01-29 Gerd Moellmann <gerd@gnu.org>
1931
1932 * xdisp.c (forward_to_next_line_start): Remove xassert.
1933
fccb8288
EZ
19342001-01-29 Jason Rumney <jasonr@gnu.org>
1935
4eefd9d2 1936 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
fccb8288
EZ
1937 returning without releasing it.
1938
76581eab
KH
19392001-01-29 Kenichi Handa <handa@etl.go.jp>
1940
1941 * w32fns.c (w32_font_match): Allocate three more bytes to regex
1942 for '^', '$', and '\0'.
1943
83a96b4d
AC
19442001-01-28 Andrew Choi <akochoi@i-cable.com>
1945
5604ec34
AC
1946 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
1947 regex for '^', '$', and '\0'.
1948
83a96b4d
AC
1949 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
1950 only if current_sblock has been initialized.
1951
1952 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
1953 terminal frame even if it is the only visible frame.
1954
c09a6440
KH
19552001-01-28 Kenichi Handa <handa@etl.go.jp>
1956
1957 * fontset.c (font_family_registry): Even if FONTNAME conform to
1958 XLFD, if it specifies other fields than family and registry,
52283633 1959 return FONTANME. New argument FORCE if nonzero cancel that feature.
c09a6440 1960 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
52283633
SM
1961 a signle byte character. Don't set FAMILY part to nil here.
1962 It is handled by the caller choose_face_font.
c09a6440
KH
1963 (Fnew_fontset): Call font_family_registry with FORCE 0.
1964 (Fset_fontset_font): Likewise.
1965
4dcd74e6
GM
19662001-01-27 Gerd Moellmann <gerd@gnu.org>
1967
1968 * xdisp.c (display_line): Don't treat a newline as fitting
1969 on the line.
1970
d2906bf8
GM
19712001-01-26 Gerd Moellmann <gerd@gnu.org>
1972
0130fe1a
GM
1973 * window.c (size_window): Set the window's orig_top to nil when
1974 changing heights, so that a future shrink_mini_window won't
1975 restore a bogus height.
1976
550f0e6a
GM
1977 * frame.c (do_switch_frame): If selected frame has a mini-window,
1978 resize that to exact size.
1979
b7b20fbd
GM
1980 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
1981
a47b7816
GM
1982 * xdisp.c (display_line): Simplify check for glyphs fitting
1983 entirely in the line.
1984
d2906bf8
GM
1985 * xfns.c (xic_style): New variable.
1986 (create_frame_xic): Move static variable to global scope for
550f0e6a 1987 the case that `static' gets defined away.
d2906bf8 1988
73df2b1e
KH
19892001-01-26 Kenichi Handa <handa@etl.go.jp>
1990
1991 * coding.c (decode_coding): Set a flag for inhibiting
1992 inconsistent eol.
1993 (code_convert_region): Always set saved_coding_symbol.
1994 (decode_coding_string): Likewise. Update coding->symbol when we
52283633 1995 encounter a inconsistent eol by the same way as code_convert_region.
73df2b1e 1996
6613cfc4
GM
19972001-01-25 Gerd Moellmann <gerd@gnu.org>
1998
c5e6e06b
GM
1999 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
2000 XClearArea.
2001
2002 * xterm.c (x_after_update_window_line): Don't clear if frame's
2003 internal border width is zero.
2004 (x_clear_area): New function.
2005 (x_after_update_window_line, x_clear_end_of_line)
2006 (x_scroll_bar_create, x_scroll_bar_set_handle)
2007 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
2008 instead of XClearArea.
2009
2010 * xterm.h (x_clear_area): Add prototype.
2011
6613cfc4
GM
2012 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
2013 which doesn't seem necessary anymore with Lesstif 0.92.
2014
650cc6cc
DL
20152001-01-25 Dave Love <fx@gnu.org>
2016
34ac3367
DL
2017 * puresize.h (BASE_PURESIZE): Up to 720000.
2018
650cc6cc
DL
2019 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
2020
5e37dc22
GM
20212001-01-25 Gerd Moellmann <gerd@gnu.org>
2022
e1e441f9
GM
2023 * xdisp.c (echo_area_display): Don't call redisplay_internal
2024 when Emacs is shutting down. We can't run hooks etc. that
2025 would be necessary to do a redisplay.
2026
5e37dc22
GM
2027 * lread.c (read_integer): Use type EMACS_INT instead of int.
2028
0fb94c7f
EZ
20292001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
2030
2031 * ccl.c (ccl_driver): Fix last change.
2032
e3778624
KH
20332001-01-25 Kenichi Handa <handa@etl.go.jp>
2034
2035 * ccl.h (sturct ccl_program): New member suppress_error.
2036
bb264518 2037 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
e3778624
KH
2038 insert error message to the output.
2039 (setup_ccl_program): Initialize ccl->suppress_error to 0.
2040
2041 * coding.h (struct coding_system): New member suppress_error.
2042
2043 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
2044 (Fset_terminal_coding_system_internal): Set the member
2045 suppress_error to 1.
2046 (Fset_safe_terminal_coding_system_internal): Likewise.
2047
245ed2b1
SM
20482001-01-24 Stefan Monnier <monnier@cs.yale.edu>
2049
2050 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
2051 as if it was a `charset'.
2052
f9aaedb6
GM
20532001-01-24 Gerd Moellmann <gerd@gnu.org>
2054
2055 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
2056 value in where_is_cache; the next lookup in the cache returns
2057 something bogus if we do.
2058
c3902c3e
EZ
20592001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
2060
2061 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
2062 if HAVE_WINDOW_SYSTEM isn't defined.
2063
3497f73e
GM
20642001-01-24 Gerd Moellmann <gerd@gnu.org>
2065
e7e41584
GM
2066 * fns.c (sweep_weak_table): Fix code taking items out of
2067 the hash collision chain. Some cleanup.
2068
3497f73e
GM
2069 * xterm.c (x_new_font): Don't change a tooltip's size.
2070
2071 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
2072 background color by specifying a color for the default font
2073 in .Xdefaults.
2074
3d48e687
KH
20752001-01-24 Kenichi Handa <handa@etl.go.jp>
2076
96531b20
KH
2077 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
2078 a workaround for SunOS 4's cc.
2079 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
2080 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
2081 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
2082 statement.
3d48e687 2083
a30629d2
GM
20842001-01-23 Gerd Moellmann <gerd@gnu.org>
2085
2086 * xterm.c (x_set_window_size_1): New function extracted from
2087 x_set_window_size.
2088 (x_set_window_size): Use it.
2089 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
2090 doesn't have a widget, like tooltips.
2091
5a43decf
EZ
20922001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
2093
52283633 2094 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5a43decf 2095
b0e98867
KH
20962001-01-23 Kenichi Handa <handa@etl.go.jp>
2097
2098 * fns.c (Fset_char_table_default): Fix to make sub char-table
2099 correctly.
2100
50606b4c
GM
21012001-01-22 Gerd Moellmann <gerd@gnu.org>
2102
cb2ddc53 2103 * xdisp.c (build_desired_tool_bar_string): Make sure we have
52283633
SM
2104 a desired tool bar string, even if there are no tool bar items.
2105
57c28064
GM
2106 * xdisp.c (Ftool_bar_lines_needed): New function.
2107 (syms_of_xdisp): Defsubr it.
2108
50606b4c
GM
2109 * editfns.c (Fformat): Don't extend text properties from arguments
2110 to padding chars in the result.
2111
2f169c38
EZ
21122001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
2113
2114 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
2115
0f32f023
AI
21162001-01-20 Andrew Innes <andrewi@gnu.org>
2117
52283633 2118 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
0f32f023
AI
2119 (w32_initialize): Don't set term hooks that aren't actually needed
2120 in windowed mode.
2121
2122 * xfaces.c (realize_default_face):
2123 (realize_face):
2124 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
2125
2126 * xdisp.c (handle_single_display_prop): Remove references to
2127 FRAME_W32_CONSOLE_P.
2128
52283633 2129 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
0f32f023
AI
2130
2131 * frame.h (output_method): Remove output_w32_console method.
2132 (FRAME_W32_CONSOLE_P): Remove macro.
2133
2134 * frame.c (Qw32_console): Remove variable.
2135 (Fframep): Remove references to it.
2136 (syms_of_frame): Ditto.
2137 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
2138
2139 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
2140 redefinition.
2141
7173eada
KH
21422001-01-20 Kenichi Handa <handa@etl.go.jp>
2143
2144 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
2145
755b45ce
AI
21462001-01-19 Andrew Innes <andrewi@gnu.org>
2147
2148 * w32.c (init_environment): Add a version-independent site-lisp
2149 directory to EMACSLOADPATH, after the version dependent one.
2150
0a949811
GM
21512001-01-19 Gerd Moellmann <gerd@gnu.org>
2152
8501998a
GM
2153 * editfns.c (Fbuffer_substring): Doc fix.
2154
52283633
SM
2155 * xdisp.c (message_dolog, message2, message2_nolog):
2156 Rename parameter LEN to NBYTES.
0a949811 2157
e6ebcbbe
KH
21582001-01-19 Kenichi Handa <handa@etl.go.jp>
2159
200ecca2
KH
2160 * charset.c (strwidth): Use c_string_width.
2161 (c_string_width): New function.
2162 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
2163 Caller changed.
2164
2165 * charset.h (c_string_width, lisp_string_width): Extern them.
2166
52283633 2167 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
200ecca2 2168
e6ebcbbe
KH
2169 * indent.c (check_composition): Check validity of composition.
2170
200ecca2
KH
2171 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
2172 characters by calling c_string_width.
2173 (x_consider_frame_title): Get byte length of frame tile string
2174 correctly.
2175 (display_mode_element): Pay attention to width of non-ASCII
2176 characters by calling strwidth.
2177
8692ca92
GM
21782001-01-18 Gerd Moellmann <gerd@gnu.org>
2179
8962e303
GM
2180 * xfns.c (Qcancel_timer): New variable.
2181 (syms_of_xfns): Initialize and staticpro it.
2182 (Fx_hide_tip, Fx_show_tip): Use it.
2183 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
2184 the timer.
2185 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
2186
91523be9
GM
2187 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
2188
2189 * window.h (WINDOW_LIVE_P): New macro.
2190
b0b7ed0e
GM
2191 * window.c (window_size_fixed): New variable.
2192 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
2193 the doc string.
2194
06bccf8e
GM
2195 * eval.c (specbind): If binding a per-buffer variable which
2196 doesn't have a buffer-local value in the current buffer, change
2197 the global value by changing the value of the symbol bound in all
2198 buffers not having their own value, to make it consistent with
2199 what happens with other buffer-local variables.
2200
8692ca92
GM
2201 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
2202
2203 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
2204 when searching for a newline.
2205
bb3a3b50
KH
22062001-01-18 Kenichi Handa <handa@etl.go.jp>
2207
2208 * xdisp.c (display_string): Fix previous change.
2209
c2cc16fa
JR
22102001-01-18 Jason Rumney <jasonr@gnu.org>
2211
2212 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
2213 GLYPH_DEBUG is defined.
2214 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
2215 true for images with `:ascent 100'.
2216 (x_set_mouse_face_gc): If the last used mouse face has gone in the
2217 meantime, use face MOUSE_FACE_ID.
2218 If first glyph isn't a character glyph, use the ASCII NUL
2219 character to determine the face.
2220 (expose_area): Do not treat left margin specially.
2221 (note_mode_line_highlight): If no local_map, check global keymap.
2222 (note_mouse_highlight): Initialize overlay.
52283633 2223 (clear_mouse_face): Don't return if tip_frame is non-nil.
c2cc16fa
JR
2224 (show_scroll_bars): Remove unused function.
2225 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
2226 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
2227 Clip to row.
52283633 2228 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
c2cc16fa
JR
2229 (x_free_frame_resources): Unload relief colors.
2230
9c11f79e
GM
22312001-01-17 Gerd Moellmann <gerd@gnu.org>
2232
3aec8722 2233 * xdisp.c (forward_to_next_line_start): Avoid calling
52283633
SM
2234 get_next_display_element when the newline is already found.
2235 This may change the iterator's position, when its current position is
3aec8722
GM
2236 equal to the iterator's stop_charpos.
2237
f3ffc2c3
GM
2238 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
2239 zero, use this method only at the end of a line.
2240
52283633 2241 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
a86110a8
GM
2242 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
2243 if SCALABLE_FONTS_P is set.
52283633 2244
d26d6fd9
GM
2245 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
2246 so that scalable fonts are included.
2247
9c11f79e
GM
2248 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
2249 In the cache, use a key containing the information if scalable
2250 fonts are included.
2251 (x_load_font): Adapt to change of keys in the font cache.
2252
22532001-01-17 Kim F. Storm <storm@filanet.dk>
52283633 2254
d26d6fd9
GM
2255 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
2256 XListFonts to take advantage of font caching.
2257
9c11f79e
GM
2258 * xterm.c (x_list_fonts): Ensure caching font information when
2259 called for a null frame, which is the case frequently when Emacs
2260 starts.
2261
51446987
GM
22622001-01-17 Gerd Moellmann <gerd@gnu.org>
2263
f864120f
GM
2264 * xfns.c (QCconversion): Replaces QCalgorithm.
2265
2266 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
2267
2268 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
2269 of :algorithm.
52283633 2270
e37d1417
GM
2271 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
2272 not everything could be displayed.
2273
51446987
GM
2274 * line.h, x-list-font.c: Files removed because unused.
2275
9ad4f3e5
AI
22762001-01-17 Andrew Innes <andrewi@gnu.org>
2277
2278 * dired.c (directory_files_internal): Convert result from readdir
2279 to a unibyte string initially, to avoid possible misinterpretation
2280 of some bytes as the internal form of Emacs characters.
2281
2eda09b5
KH
22822001-01-17 Kenichi Handa <handa@etl.go.jp>
2283
2284 * fns.c (concat): Be sure to avoid putting the same `composition'
2285 property on the adjacent regions.
2286
826f3788
GM
22872001-01-16 Gerd Moellmann <gerd@gnu.org>
2288
52283633 2289 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
f251459d
GM
2290 (Fscroll_right, Fscroll_left): Set it here instead, if called
2291 interactively.
2292
d57b83b3
GM
2293 * buffer.c (Fset_buffer_modified_p): Set buffer's
2294 prevent_redisplay_optimizations_p flag.
2295
826f3788 2296 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
52283633
SM
2297 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
2298 with additional arg.
2299
2300 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
2301 Change prototype.
826f3788 2302
826f3788
GM
2303 * xdisp.c (redisplay_preserve_echo_area): Add parameter
2304 FROM_WHERE, for debugging.
2305
261d788b
KH
23062001-01-16 Kenichi Handa <handa@etl.go.jp>
2307
2308 * ccl.c (Fregister_ccl_program): Handle the return value of
2309 resolve_symbol_ccl_program correctly.
52283633 2310 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
261d788b 2311
bccee4f2
GM
23122001-01-15 Gerd Moellmann <gerd@gnu.org>
2313
e4ded23c
GM
2314 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
2315 has gone in the meantime, use face MOUSE_FACE_ID.
52283633
SM
2316
2317 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
2318 If x_display_info_for_display returns null, don't try to close
ae24cb3b
GM
2319 the display; we didn't open it.
2320
bccee4f2
GM
2321 * dispnew.c (save_or_restore_current_matrices): Function removed.
2322 (save_current_matrix, restore_current_matrix): New functions.
2323 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
2324 restore the frame's current matrix. Due to the glyph pointer
2325 setup done in adjust_glyph_matrix, there is no easy way to make
2326 saving the current matrix in the desired matrix generally correct,
2327 so don't try it.
2328
ebeccffa
KH
23292001-01-15 Kenichi Handa <handa@etl.go.jp>
2330
2331 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
2332 truncation glyphs.
2333 (display_line): Optimize for wide characters.
e4ded23c 2334 (display_string): Don't try to display a multi-column character
ebeccffa
KH
2335 partially. On ttys, produce more than one truncation glyph for
2336 multi-column characters that don't fit on the line.
2337
64388126
KH
23382001-01-13 Kenichi Handa <handa@etl.go.jp>
2339
52283633
SM
2340 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
2341 Define it instead of WORDS_BIGENDIAN. Caller changed.
64388126 2342
8edb0a6f
JR
23432001-01-13 Jason Rumney <jasonr@gnu.org>
2344
2345 * w32fns.c (Fimage_size, image_ascent, lookup_image)
2346 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
52283633
SM
2347 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
2348 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
8edb0a6f 2349
52283633
SM
2350 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
2351 (x_draw_image_relief, x_draw_image_foreground_1)
8edb0a6f
JR
2352 (x_draw_image_glyph_string): Adapt to change of image margins.
2353
2354 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
2355 variables.
2356
2357 * w32bdf.c (search_file_line, get_cached_font_char)
2358 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
2359
2360 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
2361
2362 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
2363 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
2364 (Fw32_send_sys_command): Remove unused variables.
2365 (w32_msg_pump): Add parentheses.
2366
2367 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
2368 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
2369 Add parentheses.
2370
4956d1ef
GM
23712001-01-12 Gerd Moellmann <gerd@gnu.org>
2372
b30623be
GM
2373 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
2374 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
2375 being a pair of margins.
2376 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
2377 to DEFVAR_LISP. Extend doc.
2378
2379 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
2380 margins.
2381 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
2382 pair of integers `(X . Y)', use X for the horizontal and Y for the
2383 vertical margin.
2384 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
2385 (parse_image_spec): Check it.
52283633
SM
2386 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
2387 (tiff_format, gif_format, gs_format):
2388 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
b30623be 2389
52283633
SM
2390 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
2391 (x_draw_image_relief, x_draw_image_foreground_1)
b30623be
GM
2392 (x_draw_image_glyph_string): Adapt to the change of image margins.
2393
2394 * dispextern.h (struct image): Replace member `margin' with
2395 `hmargin' and `vmargin'.
2396
4554cc79
GM
2397 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
2398 and GLYPHS.
2399
2400 * dispnew.c (update_text_area): Put code which decrements the
2401 stop position when the row's face extends to the end of the
3bffc665 2402 line in #if 0.
4554cc79 2403
3cccce8d
GM
2404 * xfns.c (x_set_mouse_color): Fix color allocation.
2405
4956d1ef
GM
2406 * keyboard.c: Call get_local_map with new argument list.
2407
2408 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
2409
2410 * intervals.h (enum map_property): Removed.
2411 (get_local_map): Change prototype.
2412
2413 * keymap.c: Call get_local_map with new argument list.
2414 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
2415
2c2ff7f2
GM
24162001-01-11 Gerd Moellmann <gerd@gnu.org>
2417
a23887b9
GM
2418 * xdisp.c (build_desired_tool_bar_string): Correct the computation
2419 of the size needed for the tool bar string. For the last image,
2420 use a `display' property that reaches to the end of the string.
2421
a7ee2d2e
GM
2422 * xselect.c (selection_request_dpyinfo): New variable.
2423 (x_handle_selection_request): Set it.
2424 (x_selection_request_lisp_error): Don't call
2425 x_decline_selection_request if selection request's display has
2426 been closed.
2427
52283633
SM
2428 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
2429 Do the unregister_colors before calling XFreeColors.
2c2ff7f2 2430
457b792c
GM
24312001-01-10 Dave Love <fx@gnu.org>
2432
2433 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
2434 ${SOME_MACHINE_LISP}, not ${lisp}.
2435
c1efd260
GM
24362001-01-10 Gerd Moellmann <gerd@gnu.org>
2437
52283633
SM
2438 * xdisp.c (display_line): On ttys, produce more than one truncation
2439 glyph for multi-column characters that don't fit on the line.
a98b5ed9 2440
ac95a621
GM
2441 * xselect.c (x_reply_selection_request): Add a comment.
2442
c1efd260
GM
2443 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
2444 XkbGetNames instead of XkbGetKeyboard.
2445
1bfb1345
DL
24462001-01-10 Dave Love <fx@gnu.org>
2447
2448 * sysdep.c (random): Revert the declaration.
2449
38119822
GM
24502001-01-09 Gerd Moellmann <gerd@gnu.org>
2451
52283633
SM
2452 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
2453 Call function string_bytes.
35f464a7
GM
2454 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
2455
2456 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
2457 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
2458 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
2459 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
2460 the current sblock.
2461 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
2462 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
2463 after sweeping strings, and at the end.
2464 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
2465
38119822
GM
2466 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
2467 ensure that pop_message is called.
2468
2469 * keyboard.c (Fexecute_extended_command): Use a
2470 record_unwind_protect to ensure that pop_message is called.
2471
2472 * lisp.h (push_message_unwind): Add prototype.
2473
2474 * xdisp.c (push_message_unwind): New function.
2475
2476 * fileio.c (do_auto_save_unwind): Do the pop_message here
2477 instead of in Fdo_auto_save.
2478 (Fdo_auto_save): Don't call pop_message.
2479
f47a9ec4
KR
24802001-01-08 Ken Raeburn <raeburn@gnu.org>
2481
2482 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
2483 in inner block.
2484
a758f97d
GM
24852001-01-08 Gerd Moellmann <gerd@gnu.org>
2486
6d0afc03
GM
2487 * window.c (window_scroll_pixel_based): Adjust glyph matrices
2488 when increasing window's vscroll.
2489
a758f97d
GM
2490 * macros.c (Qkbd_macro_termination_hook): New variable.
2491 (syms_of_macros): Initialize and staticpro it.
2492 (pop_kbd_macro): Run kbd-macro-termination-hook.
2493
2494 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
2495
1bfb1345 24962001-01-07 Dave Love <fx@gnu.org>
64d4ec0f
DL
2497
2498 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
2499 arglist, for documentation's sake.
2500
0dac6924
AI
25012001-01-06 Andrew Innes <andrewi@gnu.org>
2502
2503 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
2504 of *.pdb.
2505
8182406a
AI
25062001-01-05 Andrew Innes <andrewi@gnu.org>
2507
2508 * term.c (update_end): Don't check updating_frame; for some reason
2509 this can be 0 sometimes, such as after dismissing a popup menu,
2510 and isn't necessary given the explicit frame argument.
2511
3828218c
GM
25122001-01-05 Gerd Moellmann <gerd@gnu.org>
2513
2514 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
2515 on some systems, and an unsigned long on others, like FreeBSD 4.1.
2516
2f5ded21
GM
25172001-01-04 Gerd Moellmann <gerd@gnu.org>
2518
52283633 2519 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
2f5ded21
GM
2520
2521 * xfns.c (x_create_tip_frame): Preserve the value of
2522 face_change_count around the creation of the tip frame.
52283633 2523
2f5ded21
GM
2524 * xfns.c (last_show_tip_args): New variable.
2525 (compute_tip_xy): New function.
2526 (Fx_show_tip): Reuse an existing tip frame, if possible.
2527 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
2528
dfad65fa
DL
25292001-01-04 Dave Love <fx@gnu.org>
2530
64d4ec0f
DL
2531 * editfns.c (Fformat): Doc fix.
2532
dfad65fa
DL
2533 * systime.h (set_file_times): Prototype.
2534
2535 * widget.h (EmacsFrameSetCharSize_): Prototype.
2536
2537 * sysdep.c (random, srandom): Declare explicitly.
2538
2539 * dispextern.h (move_it_vertically_backward): Declare.
2540
85fe3b5e
GM
25412001-01-04 Gerd Moellmann <gerd@gnu.org>
2542
0f2ac578
GM
2543 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
2544 like in Fx_create_frame.
2545
482cca61
GM
2546 * xfaces.c (set_font_frame_param): Don't do anything for
2547 non-graphical frames.
2548
85fe3b5e
GM
2549 * window.c (Fdelete_other_windows): Set window's window_end_valid
2550 to nil when changing the window's start. Don't change the
2551 window's start when its top position hasn't changed. If we do,
2552 this will set the window's optional_new_start, which act's like a
2553 force_start during redisplay with C-x 1 M-> under particular
2554 circumstances (see report from Per Starback to emacs-pretest-bug
2555 from 2000-12-13.).
2556
3e99d3b4
GM
25572001-01-03 Gerd Moellmann <gerd@gnu.org>
2558
a77dc1ec
GM
2559 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
2560 short cut at the start of the function. Add an assertion.
2561 (reseat_at_next_visible_line_start): Add an assertion.
2562
2f3cad6c
GM
2563 * window.c (Frecenter): When changing the window start, set the
2564 window's window_end_valid to nil.
2565 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
2566
2567 * dispextern.h (move_it_past_eol): Add prototype.
2568
2569 * xdisp.c (move_it_past_eol): New function.
2570
3e99d3b4
GM
2571 * window.c (Fwindow_end): Doc fix.
2572
25732001-01-03 Dave Love <fx@gnu.org>
2574
52283633 2575 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
3e99d3b4 2576
bafb434c
GM
25772001-01-03 Gerd Moellmann <gerd@gnu.org>
2578
2579 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
2580 the enabled_p flag of the glyph row at window_end_vpos to 0.
2581 (handle_single_display_prop): Fix last change.
2582
5297fb00
RS
25832001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2584
2585 * window.c (Frecenter): Doc fix.
2586
13d6a61c
AI
25872001-01-02 Andrew Innes <andrewi@gnu.org>
2588
2589 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
2590
2591 * frame.h (output_method): Add output_w32_console method.
2592 (FRAME_W32_CONSOLE_P): New macro.
2593
2594 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
2595 use output_w32_console method.
2596 (Qw32_console): New Lisp_Object.
2597 (Fframep): Return it.
2598 (syms_of_frame): Init it.
52283633 2599 (Fframe_parameters): Report w32console as font for w32_console frames.
13d6a61c
AI
2600
2601 * xfaces.c (realize_default_face): Set face foreground and
2602 background to unspecified for w32_console frames.
2603 (realize_face): Realize face cache for w32_console frames.
2604 (realize_tty_face): Accept w32_console frames.
2605
52283633 2606 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
13d6a61c
AI
2607 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
2608 necessary, even if running interactively.
2609
2610 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
2611 w32_console frames.
2612
52283633
SM
2613 * w32term.c (x_update_begin):
2614 (x_update_end):
2615 (x_clear_frame):
2616 (x_ins_del_lines):
2617 (x_change_line_highlight):
2618 (x_delete_glyphs):
2619 (w32_ring_bell):
2620 (x_update_begin):
2621 (x_update_end):
2622 (w32_reassert_line_highlight):
2623 (w32_frame_rehighlight):
13d6a61c
AI
2624 (w32_frame_raise_lower): Do nothing if not w32 frame.
2625
2626 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
2627
2628 * w32fns.c (Fx_display_color_cells): Determine correct value, when
2629 system doesn't tell us directly.
2630 (Fx_display_visual_class): Implement properly.
2631
d6bb0c0d
GM
26322001-01-02 Gerd Moellmann <gerd@gnu.org>
2633
2634 * window.c (Frecenter): Handle centering in graphical frames
2635 specially. Centering on the basis of line counts doesn't work
2636 reliably with variable-height lines.
52283633 2637
315f5865
EZ
26382001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
2639
2640 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
2641 and al[].
2642
52283633 2643 * composite.c (run_composition_function): Remove unused var `val'.
315f5865
EZ
2644 (update_compositions): Remove unused variable `hook'.
2645
2646 * intervals.c (get_local_map): Remove unused variable `tem'.
2647
2648 * doprnt.c (doprnt1): Remove unused variable `size'.
2649
2650 * fns.c (Flength): Remove unused variable `tail'.
2651 (Fdelete): Remove unused variable `size'.
2652
2653 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
2654 and `gcpro2'.
2655
52283633 2656 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
315f5865
EZ
2657
2658 * data.c (find_symbol_value): Remove extra 3rd argument in the
2659 call to swap_in_symval_forwarding.
2660
52283633 2661 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
315f5865
EZ
2662
2663 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
2664 (trivial_regexp_p): Remove unused variable `c'.
2665 (boyer_moore): Remove unused variable `k'.
2666
2667 * indent.c (current_column): Remove unused variable `stopchar'.
2668 (Fcompute_motion): Remove unused variable `contin'.
2669
2670 * casefiddle.c (casify_object): Remove unused variable `tolen'.
2671
2672 * dired.c (directory_files_internal): Fix a typo in a comment.
2673 Remove an unused variable `handler'.
52283633 2674 (file_name_completion): Remove unused function-scope variable `dp'.
315f5865
EZ
2675 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
2676 on BSD4_2.
2677
52283633 2678 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
315f5865
EZ
2679
2680 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
2681 and `buf'.
2682 (Fmarker_insertion_type): Remove unused variable `buf'.
2683
2684 * insdel.c (make_gap): Remove unused variable `result'.
2685
52283633 2686 * keyboard.c (record_char): Remove unused function-scope var `help'.
315f5865
EZ
2687 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
2688 (menu_bar_items): Remove unused function-scope variable `tem'.
2689
2690 * fontset.c (fontset_ref): Remove unused variable `i'.
2691 (fontset_set): Remove unused variables `j' and `tmp'.
52283633 2692 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
315f5865
EZ
2693 (make_fontset_for_ascii_face): Remove unused variable `name'.
2694 (fs_load_font): Remove unused variable `font_idx'.
52283633 2695 (fs_query_fontset): Remove unused function-local variable `fontset'.
315f5865
EZ
2696 (list_fontsets): Remove unused variable `tail'.
2697 (Fnew_fontset): Remove unused variables `family' and `registry'.
2698 (accumulate_font_info): Remove unused variable `tmp'.
2699 (Ffontset_font): Remove unused variable `id'.
2700 (syms_of_fontset): Remove unused variable `i'.
2701
2702 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
2703 to x_term_init.
2704 (lookup_image): Remove unused variable `file'.
2705 (xbm_load): Remove unused variables `bitmap_data', `height', and
2706 `width'. Remove function-local variable `i', leave the
2707 block-local one.
2708 (gif_load): Remove unused variable `inc'.
2709
52283633 2710 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
315f5865
EZ
2711 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
2712 leave only the one in the inner block.
2713
2714 * xfaces.c (face_fontset, realize_default_face): Remove unused
2715 variable `fontset'.
2716 (face_at_buffer_position): Remove unused variable `multibyte_p'.
2717
2718 * term.c (encode_terminal_code): Remove unused variable `c'.
2719
2720 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
2721 char *' instead of `char *'.
2722
2723 * category.c (Fcategory_docstring): Remove unused variable `doc'.
52283633 2724 (Fget_unused_category): Remove unused variable `docstring_vector'.
315f5865
EZ
2725 (Fchar_category_set): Remove unused variables `val', `charset',
2726 `c1' and `c2'.
2727
52283633
SM
2728 * coding.c (detect_coding_iso2022, setup_coding_system):
2729 Remove unused variable `i'.
315f5865
EZ
2730 (detect_coding_mask): Remove unused variable `idx'.
2731 (detect_coding): Remove unused variable `i'.
2732 (ccl_coding_driver): Remove unused variable `result'.
2733 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
52283633 2734 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
315f5865
EZ
2735 (encode_coding_string): Remove unused variables `gcpro1' and
2736 `saved_coding_symbol'.
2737 (Ffind_coding_systems_region_internal): Remove function-local
2738 variable args[], leave only the block-local one.
2739 (code_convert_region1): Remove unused variable `len'.
2740
2741 * charset.c (char_printable_p): Remove unused variable `chars'.
2742 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
2743 (str_to_multibyte): Remove unused variable `c'.
2744
2745 * window.c (size_window): Remove block-local variable `min_size'.
2746
2747 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
2748 `header_line_height'.
2749 (append_space, extend_face_to_end_of_line): Declare `saved_what'
2750 enum display_element_type.
2751
1a8a9daf
GM
27522001-01-02 Gerd Moellmann <gerd@gnu.org>
2753
6dde6abc 2754 * xterm.c (x_connection_closed): Catch X errors around all
52283633
SM
2755 statements that call X. Save away the error message in a local copy.
2756
1883b2c6
GM
2757 * xterm.c (x_connection_closed): Set handling_signal to 0 at
2758 the start.
2759
a13be207
GM
2760 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
2761 in or at the start of invisible text.
2762
1a8a9daf
GM
2763 * dispnew.c (update_window): Don't check_current_matrix_flags.
2764
3608c0f9
JR
27652001-01-01 Jason Rumney <jasonr@gnu.org>
2766
2767 * w32fns.c (x_figure_window_size): Do not allow new_height and
2768 new_width of frame to override specified values.
2769
abb1acc4
KH
27702000-12-30 Kenichi Handa <handa@etl.go.jp>
2771
52283633 2772 * composite.c (find_composition): Fix a code for searching backward.
abb1acc4 2773
762a68ec
GM
27742000-12-29 Gerd Moellmann <gerd@gnu.org>
2775
52283633 2776 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
9c8b8382
GM
2777 (update_window) [GLYPH_DEBUG]: Call it.
2778 (scrolling_window): Prevent including current rows which are below
2779 what's displayed in the window.
2780
2781 * xdisp.c (try_window_reusing_current_matrix)
2782 <new start <= old start>: Disable rows in the current matrix
2783 which are below the window after scrolling.
52283633 2784
762a68ec
GM
2785 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
2786 is zero. It's not worth the complexity.
2787 (invisible_text_between_p): Put in #if 0 because unused.
2788
2d5912c1
GM
27892000-12-28 Gerd Moellmann <gerd@gnu.org>
2790
46f6a258
GM
2791 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
2792 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
2793
89f93679
GM
2794 * keyboard.c (echo_char): If C is an integer, always call
2795 push_key_description. Former code could signal an invalid
2796 character error.
2797
2798 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
2799 If set, print multibyte text.
2800 (Fsingle_key_description): Call push_key_description with
2801 FORCE_MULTIBYTE set.
2802 (describe_buffer_bindings): Likewise.
2803
2804 * lisp.h (push_key_description): Add prototype.
2805
c06017fb
GM
2806 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
2807 around the call to redisplay_internal.
2808
f1d2ce7f
GM
2809 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
2810
2d5912c1
GM
2811 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
2812
9371f831
KH
28132000-12-28 Kenichi Handa <handa@etl.go.jp>
2814
2815 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
2816 (ccl_driver): New local variable `extra_bytes'.
2817
2818 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
2819
52283633
SM
2820 * coding.c (setup_coding_system):
2821 Initialize coding->spec.ccl.eight_bit_carryover.
9371f831
KH
2822 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
2823
0c80628a
KH
28242000-12-28 Kenichi Handa <handa@etl.go.jp>
2825
2826 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
2827 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
2828 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
2829 (decode_composition_emacs_mule): New function.
2830 (decode_coding_emacs_mule): Decode composition sequence by calling
2831 decode_composition_emacs_mule.
2832 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
52283633
SM
2833 (encode_coding_emacs_mule): Changed from macro to function.
2834 If a text contains compositions, encode them correctly.
0c80628a
KH
2835 (setup_coding_system): Set coding->commong_flags for emacs-mule so
2836 that decoding and encoding are required.
2837
3e32cc27
GM
28382000-12-27 Gerd Moellmann <gerd@gnu.org>
2839
5e25feee
GM
2840 * xfaces.c (PT_PER_INCH): New macro.
2841 (xlfd_point_size): Compute real point size from font's pixel size.
2842 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
2843 instead of 72.
2844
892d8fcd
GM
2845 * .gdbinit: Comment out the line pointing to the Lesstif source
2846 directory.
2847
12c8b416
GM
2848 * window.c (Frecenter): Use displayed_window_lines instead
2849 of window_internal_height.
2850
6061fbf0
GM
2851 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
2852 instead of x-toolkit-scroll-bars-p.
2853 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
2854
2855 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
2856 instead of x-toolkit-scroll-bars-p.
2857 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
52283633 2858
3e32cc27
GM
2859 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
2860 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
52283633
SM
2861 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
2862 New variables.
2863 (add_window_display_history, add_frame_display_history)
3e32cc27
GM
2864 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
2865 (build_frame_matrix_from_leaf_window): Remove unused code.
2866 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
2867 redisplay history.
2868 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
2869 (update_window) [GLYPH_DEBUG]: Likewise.
2870 (syms_of_display): Defsubr dump-redisplay-history.
2871
31798cfe
GM
28722000-12-23 Gerd Moellmann <gerd@gnu.org>
2873
f717c2ba
GM
2874 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
2875 the end of the prompt. Set echo_after_prompt to the offset
2876 of echoptr in echobuf.
2877
aeb2b8fc
GM
2878 * xdisp.c (init_from_display_pos): Pop until the iterator's
2879 stack is empty; there may be frames for stretch or images
2880 on the stack.
2881
31798cfe
GM
2882 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
2883 (save_or_restore_current_matrix): New function for the same
2884 purpose, but more efficient.
2885 (adjust_frame_glyphs_for_frame_redisplay): Use it.
2886
f8156156
EZ
28872000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
2888
2889 * xdisp.c (syms_of_xdisp): Fix last change.
2890
bdd6d4e8
GM
28912000-12-23 Gerd Moellmann <gerd@gnu.org>
2892
2893 * xdisp.c (syms_of_xdisp): Doc fix.
2894
2895 * xdisp.c (redisplay_window): Remove label restore_buffers;
2896 use finish_scroll_bars instead to make sure that scroll bars
2897 are redeemed. If we don't do this, flickering can result from
2898 scroll bars being destroyed and recreated.
2899
9436cdf9
JR
29002000-12-22 Jason Rumney <jasonr@gnu.org>
2901
2902 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
2903 in the wrong colors when the foreground is not black.
2904 (expose_window): Don't redraw the window that's currently being
2905 updated.
2906
951f9df5
GM
29072000-12-22 Gerd Moellmann <gerd@gnu.org>
2908
856ff7a7
GM
2909 * window.c (size_window): When setting the window's too_small_ok
2910 flag, compare old size with minimum size depending on WIDTH_P,
2911 don't compare with window_min_width.
52283633 2912
951f9df5
GM
2913 * window.c (delete_window): Simplify somewhat.
2914 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
2915 freeing window matrices. The flag windows_or_buffers_changed is
2916 set, so the next redisplay will consider all windows; this should
2917 suffice.
2918
886bc933
KH
29192000-12-22 Kenichi Handa <handa@etl.go.jp>
2920
2921 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
2922
2923 * ccl.h (struct ccl_program): New member cr_consumed.
2924
2925 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
2926 (CCL_READ_CHAR): Handle EOL conversion here.
2927 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
2928
177f4e88
GM
29292000-12-21 Gerd Moellmann <gerd@gnu.org>
2930
52283633 2931 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
6ba384dc
GM
2932
2933 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
2934 otherwise tabs of different size compare equal.
2935
2936 * callint.c (Fcall_interactively): Prevent a compiler warning.
2937
2938 * print.c (print_unwind): Return nil.
2939 (PRINTDECLARE): Initialize all local variables.
2940 (print_preprocess): Add a default case.
2941
8e15274f
GM
2942 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
2943
2944 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
2945
52283633 2946 * window.c (delete_window, Fsplit_window)
177f4e88
GM
2947 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
2948
2949 * dispextern.h (ensure_frame_matrix): Function declaration removed.
2950
2951 * dispnew.c (ensure_frame_matrix): Removed.
2952 (save_frame_matrix, restore_frame_matrix): New functions.
2953 (adjust_frame_glyphs_for_frame_redisplay): Use them.
2954
2955 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
2956 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
2957
99012074
AI
29582000-12-21 Andrew Innes <andrewi@gnu.org>
2959
2960 * w32term.c (x_update_begin): Regenerate the palette here, rather
2961 than for each window.
2962
2963 * w32xfns.c (select_palette): Avoid calling SelectPalette if
2964 palette is NULL, since this corrupts memory! Also get
2965 display_info reference from frame.
2966
29ef7d2d
JR
29672000-12-21 Jason Rumney <jasonr@gnu.org>
2968
2969 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
2970
2971 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
2972 to avoid returning without releasing it.
3e27fa1f 2973
3f9d67a6
KH
29742000-12-21 Kenichi Handa <handa@etl.go.jp>
2975
587fc3f9
KH
2976 * keymap.c (push_key_description): Don't convert eight-bit-control
2977 and eight-bit-graphic to multibyte character.
2978
3f9d67a6
KH
2979 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
2980 generic character and CODE1 is nil, return the smallest character
2981 in CHARSET.
2982
774ba8c9
DL
29832000-12-20 Dave Love <fx@gnu.org>
2984
2985 * s/osf5-0.h (NSIG): Don't redefine.
2986
88416888
SM
29872000-12-20 Stefan Monnier <monnier@cs.yale.edu>
2988
2989 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
2990 excluding menu-bar and tool-bar.
2991 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
2992 (menu_item_p): Remove.
2993 (where_is_internal_1): Don't ignore menu-items.
2994
a6426c6f
GM
29952000-12-20 Gerd Moellmann <gerd@gnu.org>
2996
03ff8aab
GM
2997 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
2998 into account.
2999
3000 * window.c (make_window): Initialize window's min_hscroll.
3001 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
3002 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
3003 to zero.
3004 (struct saved_window): New member min_hscroll.
3005 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
3006 (Fset_window_configuration): Set window's min_hscroll.
3007 (save_window_save): Save window's min_hscroll.
3008 (compare_window_configurations): Compare min_hscroll values.
3009
3010 * window.h (struct window): New member min_hscroll.
3011
3012 * keyboard.c (echo_prompt): Prevent a compiler warning.
3013
8de4aaf8
GM
3014 * xdisp.c (try_cursor_movement): Fix last change. The real
3015 condition is that PT is at the end of the row, and should
3016 be displayed at the start of the next row.
52283633 3017
3f7e3031
GM
3018 * xdisp.c (try_cursor_movement): If we end on a partially
3019 visible line, end we already decided to scroll, return -1.
3020
a6426c6f
GM
3021 * dispextern.h (ensure_frame_matrix): Add prototype.
3022
3023 * window.c (delete_window, Fsplit_window)
3024 (Fset_window_configuration): Call ensure_frame_matrix.
3025
52283633
SM
3026 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
3027 New functions.
a6426c6f
GM
3028 (adjust_frame_glyphs_for_frame_redisplay): If display has been
3029 completed, call fake_current_matrices instead of marking frame
3030 garbaged.
3031
57fa2774
JR
30322000-12-20 Jason Rumney <jasonr@gnu.org>
3033
3034 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
3035
d925df90
EZ
30362000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
3037
3038 * fns.c (Frequire): Doc fix.
3039
7b93a85b
GM
30402000-12-19 Gerd Moellmann <gerd@gnu.org>
3041
52283633 3042 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
71d4497a 3043
c74e645b
GM
3044 * dispnew.c (direct_output_for_insert): Fix check for mini-window
3045 currently displaying a message.
3046
7b93a85b
GM
3047 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
3048 xterm.h.
3049 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
3050
90d97e64
AI
30512000-12-18 Andrew Innes <andrewi@gnu.org>
3052
3053 * w32.c (w32_strerror): New function.
3054
3055 * w32.h (w32_strerror): New extern.
3056
3057 * w32fns.c (Fw32_shell_execute): Use it.
3058
91c9e6ce
GM
30592000-12-18 Gerd Moellmann <gerd@gnu.org>
3060
3061 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
3062
6f4745e2
EZ
30632000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
3064
3065 * msdos.c (IT_set_face): Obey inverse_video.
3066
c9e088ce
KH
30672000-12-18 Kenichi Handa <handa@etl.go.jp>
3068
3069 * dired.c (directory_files_internal): Always return decoded filenames.
3070
c3695f5f
GM
30712000-12-18 Gerd Moellmann <gerd@gnu.org>
3072
52d8e4ff
GM
3073 * xterm.c (x_connection_closed): Prevent being called recursively
3074 because of an error condition in XtCloseDisplay.
52283633 3075
62be9979
GM
3076 * xdisp.c (init_iterator): If noninteractive, and the frame's
3077 face cache is null, make one.
3078
52283633 3079 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
5f7a1890 3080
c3695f5f
GM
3081 * process.c (wait_reading_process_input): Check for pending
3082 input when running timers.
3083
78555fbe
EZ
30842000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
3085
52283633 3086 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
78555fbe 3087
b2b36264
KH
30882000-12-18 Kenichi Handa <handa@etl.go.jp>
3089
3090 * process.c (read_process_output): Don't run a filter if the code
3091 decoder produces nothing but carryover.
3092
9c543fbf
AI
30932000-12-17 Andrew Innes <andrewi@gnu.org>
3094
3095 * w32.c (sys_rename): Only check errno against EEXIST, and not
3096 EACCES, when determining whether rename failed because the target
3097 exists. This was resulting in indefinite looping on Windows 9x if
3098 the source file was locked by another process.
3099
3100 * w32fns.c (Ffile_system_info): New function.
3101 (syms_of_w32fns): Defsubr it.
3102
10c2b5a8
GM
31032000-12-17 Gerd Moellmann <gerd@gnu.org>
3104
b0228ace
GM
3105 * window.c (coordinates_in_window): Fix computation for
3106 position on vertical line between mode lines.
3107
10c2b5a8
GM
3108 * xfns.c (unwind_create_frame): Return t if frame was deleted.
3109 Don't alter tip_frame or tip_window.
3110 (unwind_create_tip_frame): Set tip_frame to nil only if frame
3111 was deleted.
3112
c844a81a
GM
3113 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
3114 Don't alter tip_frame or tip_window.
3115 (unwind_create_tip_frame): Set tip_frame to nil only if frame
3116 was deleted.
3117
6c825f8e
EZ
31182000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
3119
3120 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
3121 be consistent with the doc string. Reported by NAKAJIMA Mikio
3122 <minakaji@osaka.email.ne.jp>.
3123
af4bb4c8
KH
31242000-12-16 Kenichi Handa <handa@etl.go.jp>
3125
3126 * xfaces.c (Vface_ignored_fonts): New variable.
3127 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
3128 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
3129
8062e53a
GM
31302000-12-15 Gerd Moellmann <gerd@gnu.org>
3131
e87b8809
GM
3132 * dispnew.c (update_window): Detect pending input every nth line
3133 updated, i.e. do it depending on real work done, and not on the
3134 vpos of the line.
3135
3136 * xterm.c (expose_window): Don't redraw the window that's
3137 currently being updated.
3138
a6768cc5
GM
3139 * window.c (Fset_window_point): Remove test for
3140 cursor_in_non_selected_windows.
3141
4ea7fdca
GM
3142 * lread.c (read1): Recognize end of file after `\\'.
3143
8062e53a
GM
3144 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
3145 not unwind_create_frame.
3146
bb7959c1
GM
31472000-12-15 Dave Love <fx@gnu.org>
3148
3149 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
3150 bcopy & al.
3151
3152 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
3153
ced04c42
KH
31542000-12-15 Kenichi Handa <handa@etl.go.jp>
3155
c5443913
KH
3156 * coding.c (setup_coding_system): Clear all members of the struct
3157 coding_system at first.
bc137305
KH
3158 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
3159 argument.
3160 (code_convert_region): Don't override coding->src_multibyte and
3161 coding->dst_multibyte.
c5443913 3162
ced04c42
KH
3163 * fns.c (Fmd5): Docstring improved.
3164
c2d7f289
MB
31652000-12-15 Miles Bader <miles@gnu.org>
3166
3167 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
3168 are actually marked as mode-lines; otherwise use
3169 estimate_mode_line_height.
3170
9d7d9263
GM
31712000-12-14 Gerd Moellmann <gerd@gnu.org>
3172
3173 * editfns.c (Fformat): Prevent a buffer overrun when the format
3174 specifies a precision.
3175
7cf0153a
EZ
31762000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
3177
3178 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
3179 argument is outside the range [2..3].
3180
1de0f662
AI
31812000-12-14 Andrew Innes <andrewi@gnu.org>
3182
3183 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
3184 nothing to do. Bind inhibit-quit.
3185 (tip_frame): Make it a Lisp_Object.
3186 (x_create_tip_frame): Set tip_frame after it has been added to
3187 Vframe_list.
3188 (Fx_show_tip): Don't set tip_frame here.
52283633 3189 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
1de0f662
AI
3190 (unwind_create_frame, unwind_create_tip_frame): New functions.
3191 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
3192 while a frame is only partially constructed.
3193
3194 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
3195 (x_free_frame_resources): New function.
3196 (x_destroy_window): Use it.
3197
02387dcc
GM
31982000-12-14 Gerd Moellmann <gerd@gnu.org>
3199
3200 * xfns.c (Fx_backspace_delete_keys_p): New function.
3201 (syms_of_xfns): Defsubr it.
3202
3203 * config.in (HAVE_XKBGETKEYBOARD): Add.
3204
0544ef49
KH
32052000-12-14 Kenichi Handa <handa@etl.go.jp>
3206
98d62747
KH
3207 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
3208 Always store string in multibyte representation in echobuf.
3209 (echo_char): Always store string in multibyte representation in
3210 echobuf.
3211 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
3212 (read_key_sequence): Adjusted for the change of echo_prompt.
3213
a20193cd
KH
3214 * fns.c (Fmd5): Docstring improved.
3215
191b83b6
KH
3216 * lisp.h (detect_coding_system): Prototype adjusted.
3217
0544ef49
KH
3218 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
3219 (detect_coding_emacs_mule, detect_coding_iso2022,)
3220 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
52283633
SM
3221 (detect_coding_utf_16, detect_coding_ccl): Make them static.
3222 New argument MULTIBYTEP. Callers changed.
0544ef49
KH
3223 (detect_coding_mask, detect_coding_system): New argument
3224 MULTIBYTEP. Callers changed.
1da1bb05
KH
3225 (decode_coding_string): Set coding->src_multibyte and
3226 coding->dst_multibyte before calling detect_coding and detect_eol.
3227 Update them after some coding system is detected.
52283633 3228
d5b3eb1b
SM
32292000-12-13 Stefan Monnier <monnier@cs.yale.edu>
3230
3231 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
3232
3233 * keyboard.c (menu_bar_items, tool_bar_items):
3234 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
3235
f7f8bb69
GM
32362000-12-13 Gerd Moellmann <gerd@gnu.org>
3237
52283633 3238 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
19f71add
GM
3239 New variables.
3240 (unwind_create_frame, unwind_create_tip_frame): New functions.
3241 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
3242 while a frame is only partially constructed.
3243
3244 * xterm.h (x_free_frame_resources): Declare.
3245
3246 * xterm.c (x_free_frame_resources): New function.
3247 (x_destroy_window): Use it.
3248
e10da507
GM
3249 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
3250 don't interrupt the update for pending input initially, i.e.
3251 update at least some lines.
3252
3253 * keyboard.c (do_mouse_tracking): Make externally visible.
52283633 3254
d5b3eb1b 3255 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
f7f8bb69
GM
3256
3257 * xfns.c (gray_bitmap_bits): Declare `char *'.
3258
90aa2856
GM
32592000-12-12 Gerd Moellmann <gerd@gnu.org>
3260
3261 * xdisp.c (display_tool_bar_line): Make sure that tool bar
3262 lines start with a relief line.
3263
a308c9cd
DL
32642000-12-12 Dave Love <fx@gnu.org>
3265
3266 * window.c (Fdisplay_buffer): Doc fix.
3267 (Fwindow_list): Remove unused var.
3268
3269 * buffer.h (mmap_set_vars): Declare.
3270
3271 * window.h (Fset_window_point): Declare.
3272
d575011f
EZ
32732000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
3274
bf6282d2 3275 * msdos.c (fast_find_position): Don't overstep the last window row.
52283633
SM
3276 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
3277 variable `area'. When looking for a row under (X,Y), give up if some
3278 of the previous rows is not enabled.
d575011f 3279
ecf4d726
GM
32802000-12-12 Gerd Moellmann <gerd@gnu.org>
3281
2ebf6139
GM
3282 * window.c (Fset_window_point): If displaying cursors in windows
3283 other than the selected window, make sure redisplay updates
3284 other windows to show the new value of point in the window.
3285
3286 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
3287
bfdb75ee
GM
3288 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
3289 the buffer is the sole visible buffer when in the mini-buffer.
3290
52283633 3291 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
4fdbd809
GM
3292 Bind `inhibit-read-only' to t.
3293 (unwind_with_echo_area_buffer): Use AREF.
3294
c0006262
GM
3295 * xfns.c (Fx_hide_tip): Simplified.
3296
52283633
SM
3297 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
3298 instead of `1'.
e9a59cad 3299
ecf4d726
GM
3300 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
3301
e5959a9a
GM
33022000-12-11 Gerd Moellmann <gerd@gnu.org>
3303
a3642e49 3304 * xfns.c (Fx_hide_tip): Fix last change.
52283633 3305
44b5a125
GM
3306 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
3307 nothing to do. Bind inhibit-quit.
3308 (tip_frame): Make it a Lisp_Object.
3309 (x_create_tip_frame): Set tip_frame after it has been added to
3310 Vframe_list.
3311 (Fx_show_tip): Don't set tip_frame here.
3312
3313 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
3314
3315 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
3316 Lisp_Object.
3317
3318 * dispextern.h: Change external declaration of tip_frame.
3319
d990421f
GM
3320 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
3321 return an empty string.
3322
4db87380
GM
3323 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
3324 of the window's update_mode_line flag, since the former is set by
3325 force-mode-line-update, not the latter. This makes
3326 column-number-mode slightly faster.
52283633 3327
e5959a9a
GM
3328 * xdisp.c (try_window_id) <all changes above window start>:
3329 Set the cursor.
3330
169fe44e
GM
33312000-12-11 Paul Eggert <eggert@twinsun.com>
3332
3333 * config.in (HAVE_FTELLO): Remove.
3334 (HAVE_FSEEKO): Add.
3335 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
3336 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
3337 HAVE_FTELLO.
3338 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
3339 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
52283633 3340
59ec59ae
MB
33412000-12-11 Miles Bader <miles@gnu.org>
3342
3343 * window.c (displayed_window_lines): Don't round up when
3344 converting empty space at bottom to lines.
ff904dd6
MB
3345 Handle non-newline-terminated final lines properly.
3346 (Fwindow_text_height): New function (used to be in lisp).
3347 (syms_of_window): Initialize it.
59ec59ae 3348
42ebfa31
SM
33492000-12-09 Stefan Monnier <monnier@cs.yale.edu>
3350
3351 * syntax.c (scan_lists): Check that the right quote char has the
3352 right Sstring syntax when jumping over strings.
3353 (init_syntax_once): Use Smax rather than 13.
3354
5cdb3cf3
MB
33552000-12-09 Miles Bader <miles@gnu.org>
3356
3357 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
3358 with PARTIALLY, inverting the sense.
3359 (window_scroll_pixel_based): Scroll partially visible lines into
3360 place if we hit the beginning or end of the buffer.
a12167c5
MB
3361 (displayed_window_lines): Don't include partially visible lines.
3362 (Fmove_to_window_line): Skip past any partially visible first line.
5cdb3cf3 3363
842b2a94
GM
33642000-12-08 Gerd Moellmann <gerd@gnu.org>
3365
3366 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
3367
3368 * tparam.c (tparam1): Change the way buffers are reallocated to be
3369 portable and less obfuscated.
3370
3371 * termcap.c (tgetent): Change the way buffers are reallocated to
3372 be portable and less obfuscated.
3373
3374 * macros.c (store_kbd_macro_char): Change the way buffers are
3375 reallocated to be portable and less obfuscated.
3376
3377 * lread.c (read1): Change the way buffers are reallocated to be
3378 portable and less obfuscated.
3379
3380 * doc.c (Fsubstitute_command_keys): Change the way buffers
3381 are reallocated so that it is portable.
3382
137cad7c
EZ
33832000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
3384
3385 * dosfns.c (Ffile_system_info): New function.
3386 (syms_of_dosfns): Defsubr it.
3387
5c7f629c
SM
33882000-12-07 Stefan Monnier <monnier@cs.yale.edu>
3389
3390 * alloc.c (gc_sweep): Add comment.
3391
959e647d
GM
33922000-12-07 Gerd Moellmann <gerd@gnu.org>
3393
52283633
SM
3394 * sound.c (vox_configure): Change order of ioctls.
3395 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
28fcb7dc
GM
3396 Ignore errors when changing volume.
3397 (vox_close): Don't reset the device.
3398
926b7e5e
GM
3399 * process.c (read_process_output): Make sure the process marker's
3400 position is valid when the process buffer is changed in
3401 after-change functions. W3 does that.
52283633 3402
959e647d
GM
3403 * xfns.c (x_free_gcs): New function.
3404
3405 * xterm.h (x_free_gcs): Add prototype.
3406
3407 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
3408 freeing GCs here.
3409
3410 * xterm.c (x_destroy_window): Call x_free_gcs so that
3411 resources of non-toolkit X windows will be freed.
3412
478ea067
AI
34132000-12-07 Andrew Innes <andrewi@gnu.org>
3414
3415 * w32fns.c (xlfd_charset_of_font): Fix last change.
3416
fbee3231
DL
34172000-12-06 Dave Love <fx@gnu.org>
3418
67292061
DL
3419 * md5.h (__P): Don't define -- it comes from config.h.
3420
fbee3231
DL
3421 * strftime.c: Change some #if foo to #ifdef foo.
3422
4ee87dbb
AI
34232000-12-06 Andrew Innes <andrewi@gnu.org>
3424
3425 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
3426
52283633 3427 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
4ee87dbb 3428 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
52283633 3429 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
4ee87dbb 3430
9765b4a4
GM
34312000-12-06 Gerd Moellmann <gerd@gnu.org>
3432
d285b373
GM
3433 * alloc.c (gc_sweep): Prevent symbols read during loadup
3434 from being freed.
3435
384333ee
GM
3436 * xdisp.c (underlying_face_id): New function.
3437 (handle_face_prop, face_before_or_after_it_pos): Use it
3438 to determine the face ``under'' a string. Let strings inherit
3439 the face of the buffer under them.
3440
3441 * xfaces.c (face_at_string_position): Update function comment.
52283633 3442
d4b72d58
GM
3443 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
3444 matrix if the window's left position has changed; we need to
3445 redraw it in this case.
3446
3447 * dispextern.h (struct glyph_matrix): Add member window_left_x.
3448
e1d05387
GM
3449 * window.c (coordinates_in_window): Check mouse on mode-line or
3450 header-line first.
3451
eb1b0c74
GM
3452 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
3453 advertized by the function documentation.
3454
d94d636f
GM
3455 * window.c (syms_of_window): Doc fix.
3456
3887b449
GM
3457 * sound.c (vox_configure): Set volume for left and right channel.
3458 (sound_cleanup): Return nil.
3459
efc8f57a
GM
3460 * xdisp.c (move_it_by_lines): Fix paren typo.
3461
9765b4a4
GM
3462 * xterm.c (x_load_font): Don't use the font's max_bounds for
3463 computing the height of the font. If max_bounds' ascent or
3464 descent are greater than the font's ascent or descent, this means
3465 glyphs overlap, which should be handled now by redisplay.
3466
6529ed87
GM
3467 * window.c (Veven_window_heights): New variable.
3468 (syms_of_window): DEFVAR_LISP it.
3469 (Fdisplay_buffer): Check Veven_window_heights before evening the
3470 window heights.
52283633 3471
0eb2ecde
MB
34722000-12-06 Miles Bader <miles@gnu.org>
3473
3474 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
3475 update `default-frame-alist' instead of setting no frame parameters.
3476
03d7a167
KH
34772000-12-06 Kenichi Handa <handa@etl.go.jp>
3478
3479 * composite.c (update_compositions): Fix typo (use the correct
3480 variable).
3481
5f8803c2
JR
34822000-12-05 Jason Rumney <jasonr@gnu.org>
3483
3484 * md5.h: Remove underscores from function declarations.
3485 (__attribute__, __alignof__) [!__GNUC__]: Define.
3486
3487 * md5.c: Delay include of md5.h until after namespace cleaning.
3488
c28a075b
JR
3489 * makefile.w32-in (fns.o): Depend on md5.h
3490 (md5.o): New target.
3491 (sunfns.o): Remove.
3492
3493 * makefile.nt: Likewise.
3494
ff3c7056
JR
34952000-12-05 Jason Rumney <jasonr@altavista.net>
3496
3497 * w32term.c (expose_area): Complete last change.
3498
0c21eeeb
KR
34992000-12-05 Ken Raeburn <raeburn@gnu.org>
3500
3501 * minibuf.c: Include intervals.h.
3502
f201d732
JR
35032000-12-05 Jason Rumney <jasonr@gnu.org>
3504
3505 * w32term.c (x_produce_glyphs): If a font for a component of
3506 a composition is not found, use 1 pixel dot ascent and 0 dot
3507 descent value to avoid displaying terribly tall empty boxes.
3508 (expose_area): Pass x-coordinate relative to the exposed
3509 area to x_draw_glyphs instead of a window-relative coordinate.
3510
21999ab9
GM
35112000-12-05 Gerd Moellmann <gerd@gnu.org>
3512
4d2036e4
GM
3513 * xdisp.c (next_element_from_ellipsis): Save face before selective
3514 display in saved_face_id, and set face_before_selective_p.
3515 (reseat_1): Reset face_before_selective_p.
3516 (append_space, extend_face_to_end_of_line): If iterator's
3517 face_before_selective_p is set, use the face from saved_face_id.
3518 (extend_face_to_end_of_line): For tty frames, make sure to
3519 use the right face id when producing spaces at the end of
3520 the line.
3521
3522 * dispextern.h (struct it): Add face_before_selective_p.
3523
52be17cc
GM
3524 * keyboard.c (record_char): Don't record identical help-echo
3525 events in recent_keys.
3526
8a4f36cc
GM
3527 * xterm.c [USE_X_TOOLKIT]: Close the display.
3528 (xim_close_dpy): Handle case that the display has been closed.
3529
57d6e381
GM
3530 * xterm.c (x_destroy_window): Reset the frame's X window after
3531 destroying it.
3532
21999ab9
GM
3533 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
3534 variable window_width.
3535 (line_draw_cost): Fix code skipping over spaces at the end of the
3536 line when must_write_spaces is not set.
3537 (scrolling_window): Fix code inserting runs in list of all runs.
3538
91372bb7
KH
35392000-12-05 Kenichi Handa <handa@etl.go.jp>
3540
3541 * coding.c (setup_coding_system): Be sure to initialize
3542 coding->category_idx.
3543
6c083b4c
GM
35442000-12-04 Gerd Moellmann <gerd@gnu.org>
3545
0c68ce6f 3546 * xterm.c (PER_CHAR_METRIC): Removed because not used.
52283633 3547
6452929e
GM
3548 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
3549 area to x_draw_glyphs instead of a window-relative coordinate.
3550
d7f31e22
GM
3551 * fileio.c (auto_save_error): Add parameter ERROR. Show the
3552 error in the message.
3553
ae18aa3b
GM
3554 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
3555 timer after having read a key. It's not good for code reading
3556 several keys in a loop, like an input method.
3557
caa15ef7
GM
3558 * fileio.c (Finsert_file_contents): When VISIT is t, don't
3559 record undo information for format-decode.
3560
3561 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
3562 current buffer is read-only, not if it isn't.
3563
6c083b4c
GM
3564 * keyboard.c (record_char): Record `help-echo' input events
3565 in recent_keys only if they display some help. Don't record
3566 `help-echo' events as macro char.
3567
caa15ef7
GM
35682000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
3569
3570 * editfns.c (save_excursion_restore): Don't move point
3571 in another window if it is showing the wrong buffer.
3572 Avoid the call to Fwindow_live_p, for speed.
3573
5a13529b
KH
35742000-12-04 Kenichi Handa <handa@etl.go.jp>
3575
e225faa7
KH
3576 * xfaces.c (struct font_name): New member registry_priority.
3577 (split_font_name): Initialize the above member to zero.
3578 (concat_font_list): New function.
3579 (font_list): Include fonts of all alternative registries.
3580 (FONT_POINT_SIZE_QUANTUM): New macro.
3581 (better_font_p): Ignore point size difference less than
3582 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
3583
e89648b4
KH
3584 * xterm.c (x_produce_glyphs): If a font for a component of
3585 a composition is not found, use 1 pixel dot ascent and 0 dot
3586 descent value to avoid displaying terribly tall empty boxes.
3587
5a13529b
KH
3588 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
3589
d7935eb6
KR
35902000-12-03 Ken Raeburn <raeburn@gnu.org>
3591
3592 * coding.h (code_convert_string1): Declare.
3593
3594 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
3595
52283633 3596 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
d7935eb6 3597
0dd5e255
JR
35982000-12-02 Jason Rumney <jasonr@gnu.org>
3599
3600 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
3601 correctly for single byte character case.
3602 (w32_per_char_metric): Do not try to make any assumptions about
3603 the metrics of BDF fonts.
250cfece 3604 (x_estimate_mode_line_height): If `mode-line' face
52283633 3605 hasn't a font, use that of the frame, as drawing glyphs does.
250cfece
JR
3606 (note_mouse_highlight): Change the cursor shape on the vertical
3607 border between windows [not enabled].
3608
3609 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
3610
3611 * w32fns.c (Fx_create_frame): Reintroduce the call to
3612 face-set-after-frame-defaults.
3613 (Vx_window_horizontal_drag_shape): New variable.
3614 (syms_of_xfns): DEFVAR_LISP it.
3615 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
3616 enabled].
0dd5e255 3617
b5d8d2ca
GM
36182000-12-02 Simon Josefsson <simon@josefsson.org>
3619
3620 * fns.c (Fmd5): Use a different logic to decide the coding system
3621 to use.
3622
3623 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
3624
fbb87147
EZ
36252000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
3626
52283633 3627 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
fbb87147 3628
447e9da0
GM
36292000-12-01 Gerd Moellmann <gerd@gnu.org>
3630
7708ced0
GM
3631 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
3632 height for YNegative.
3633 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
3634 height; also see comment there.
3635
447e9da0
GM
3636 * window.c (coordinates_in_window): Handle computations for
3637 positions on the vertical bar and fringes differently for
3638 window-system frames. Consider some pixels near the vertical bar
3639 as on the bar if the frame doesn't have vertical scroll bars.
3640 Associate positions between mode or header lines with the
3641 right window, the left one.
3642
86d1db20
JR
36432000-12-01 Jason Rumney <jasonr@gnu.org>
3644
3645 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
3646
3647 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
3648 invalid frame.
3649
a1d58e5b
GM
36502000-12-01 Gerd Moellmann <gerd@gnu.org>
3651
52283633 3652 * window.c (struct saved_window): Add members orig_top and orig_height.
a1d58e5b
GM
3653 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
3654 (save_window_save, Fset_window_configuration): Save/restore
3655 window's orig_top and orig_height.
3656
89c609af
JR
36572000-12-01 Jason Rumney <jasonr@gnu.org>
3658
4d177746 3659 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
86d1db20 3660
89c609af
JR
3661 * w32fns.c (x_set_cursor_color): Fix last change.
3662
eccc05db
GM
36632000-11-30 Gerd Moellmann <gerd@gnu.org>
3664
31b6671b
GM
3665 * xdisp.c (echo_area_display): If cursor is in the echo area, make
3666 sure that the next redisplay displays the minibuffer, so that
3667 the cursor will be replaced with what the minibuffer wants.
3668
eccc05db
GM
3669 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
3670 #ifndef instead of using #if.
3671 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
3672 USE_TOOLKIT_SCROLL_BARS is defined.
3673
162de750
JR
36742000-11-30 Jason Rumney <jasonr@gnu.org>
3675
3676 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
3677 x_display_cursor.
3678
693c4692
GM
36792000-11-30 Gerd Moellmann <gerd@gnu.org>
3680
3681 * fns.c (Fmd5): Doc fix.
3682
b5d8d2ca 36832000-11-30 Simon Josefsson <simon@josefsson.org>
edfb795e
GM
3684
3685 * fns.c (Fmd5): New function.
3686 (syms_of_fns): Defsubr md5.
3687
3688 * Makefile.in (obj): Add md5.o
3689
b02cd40b
GM
36902000-11-30 Gerd Moellmann <gerd@gnu.org>
3691
edfb795e
GM
3692 * md5.h, md5.c: New files, taken from glibc.
3693
df3aedcf
GM
3694 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
3695
b02cd40b 3696 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
52283633 3697 hasn't a font, use that of the frame, as drawing glyphs does.
b02cd40b 3698
8b5176cd
SM
36992000-11-29 Stefan Monnier <monnier@cs.yale.edu>
3700
3701 * eval.c (Frun_hooks): Allow 0 arguments.
3702
346598f1
GM
37032000-11-29 Gerd Moellmann <gerd@gnu.org>
3704
f9396e03
GM
3705 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
3706 is over the menu bar widget, say it's not on the frame.
3707
4a967a9b
GM
3708 * xfns.c (Fx_create_frame): Reintroduce the call to
3709 face-set-after-frame-defaults.
3710
346598f1
GM
3711 * eval.c (Fsignal): Reset handling_signal.
3712
222456a1
JR
37132000-11-28 Jason Rumney <jasonr@gnu.org>
3714
3715 * w32menu.c (add_menu_item): Reset menu item text when changing
3716 type to radio button.
3717
8049ddc0
GM
37182000-11-28 Gerd Moellmann <gerd@gnu.org>
3719
346598f1 3720 * xselect.c: Update copyright.
f4f4ee4d 3721
bebe4a2c
GM
3722 * window.c (coordinates_in_window): If on a mode or header line,
3723 but sufficiently close to its start, return ``on vertical
3724 border''. This gives us a way to drag windows horizontally when
3725 using toolkit scroll bars.
3726
3727 * xterm.c (note_mouse_highlight): Change the cursor shape
3728 on the vertical border between windows.
3729
3730 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
3731
3732 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
3733 (syms_of_xfns): DEFVAR_LISP it.
3734 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
3735
8d2c2642
GM
3736 * textprop.c (text_read_only): New function.
3737 (verify_interval_modification): Use it instead of signaling
3738 `text-read-only'. This makes it easier to catch this error
52283633 3739 with a breakpoint.:
8d2c2642 3740
52283633 3741 * xdisp.c (forward_to_next_line_start): Check for newlines,
8049ddc0
GM
3742 not end of line, which includes CR.
3743
5a2bae6c
KH
37442000-11-28 Kenichi Handa <handa@etl.go.jp>
3745
3746 * coding.c (Ffind_coding_systems_region_internal): Be sure to
3747 include no-conversion.
3748
ae31f84d
JR
37492000-11-27 Jason Rumney <jasonr@gnu.org>
3750
3751 * w32fns.c (w32_load_system_font): Always mark font as double byte
3752 if codepage is unicode.
3753
67f1cf4c
GM
37542000-11-27 Gerd Moellmann <gerd@gnu.org>
3755
4a74d071 3756 * xdisp.c (forward_to_next_line_start): If already on a newline,
52283633 3757 just consume it to avoid unintended skipping over invisible text below.
4a74d071 3758
902ae620
GM
3759 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
3760 `vertical-line', `mode-line' and `header-line' events.
3761
3762 * xdisp.c (try_window_id): Avoid starting to display in the middle
67f1cf4c
GM
3763 of a character, a TAB for instance. This is easier than to set
3764 up the iterator exactly, and it's not a frequent case, so the
3765 additional effort wouldn't really pay off.
3766
c1e279c2
AC
37672000-11-26 Andrew Choi <akochoi@i-cable.com>
3768
67f1cf4c 3769 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
c1e279c2
AC
3770 init_window_once.
3771
a609568a
JR
37722000-11-25 Jason Rumney <jasonr@gnu.org>
3773
52283633
SM
3774 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
3775 Args to window_from_coordinates should be pixel coordinates.
48b21762 3776
a609568a
JR
3777 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
3778 redisplay handles them properly.
3779
a658d039
MB
37802000-11-25 Miles Bader <miles@gnu.org>
3781
3782 * indent.c (compute_motion): Keep pos_byte in sync with pos.
3783
d3416cca
JR
37842000-11-24 Jason Rumney <jasonr@gnu.org>
3785
3786 * w32.c (init_environment): Set LANG environment variable based on
3787 locale settings, if not set.
3788
3789 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
3790 making tool bar smaller. When clearing the frame, also
3791 clear current matrices. Clear frame when tool bar disappears.
3792 Don't use more lines for the tool-bar than is available.
3793 (x_change_window_heights): New function.
3794
ba193890
GM
37952000-11-24 Gerd Moellmann <gerd@gnu.org>
3796
2be8f184
GM
3797 * xdisp.c (init_from_display_pos): If POS says we're already after
3798 an overlay string ending at POS, make sure to pop the iterator
3799 because it will be in front of that overlay string. When POS is
3800 ZV, we've thereby also ``processed'' overlay strings at ZV.
3801
ba193890
GM
3802 * xfaces.c (lface_from_face_name): Function comment fix.
3803
1862a24e
MB
38042000-11-24 Miles Bader <miles@gnu.org>
3805
3806 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
3807 apply `mode-line-inverse-video' -- zero means force display using
3808 the default face, non-zero means display using the specialized face.
3809 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
3810
f07fa1b8
KH
38112000-11-23 Kenichi Handa <handa@etl.go.jp>
3812
3813 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
3814 hard coded `4'.
3815
2bcdf662
EZ
38162000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
3817
3818 * coding.c (decode_coding_emacs_mule): Fix the case of
3819 CODING_EOL_LF, which used uninitialized value of c.
3820
ba8299ff
SM
38212000-11-23 Stefan Monnier <monnier@cs.yale.edu>
3822
3823 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
3824
f4117c4d
GM
38252000-11-22 Gerd Moellmann <gerd@gnu.org>
3826
03e757c1
GM
3827 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
3828 buffer object.
3829
f4117c4d
GM
3830 * frame.h (struct frame): Replace desired_tool_bar_items,
3831 current_tool_bar_items, n_desired_tool_bar_items,
cc362d76 3832 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
f4117c4d
GM
3833
3834 * frame.c (make_frame): Change initialization of tool bar
3835 items accordingly.
3836
3837 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
cc362d76 3838 Change references to members deleted from struct frame to use the
f4117c4d
GM
3839 new ones.
3840
3841 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
52283633 3842 references to members deleted from struct frame to use the new ones.
f4117c4d 3843
52283633 3844 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
f4117c4d
GM
3845
3846 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
3847
3848 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
cc362d76 3849 (note_tool_bar_highlight): Change references to members deleted
f4117c4d
GM
3850 from struct frame to use the new ones.
3851
f8e2f3f2
MB
38522000-11-23 Miles Bader <miles@gnu.org>
3853
3854 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
3855 the face's inverse-video attribute, rather than overriding it.
3856
60e8e0a5
GM
38572000-11-22 Gerd Moellmann <gerd@gnu.org>
3858
3859 * xfns.c (x_set_tool_bar_lines): Clear internal border when
3860 making tool bar smaller.
3861
92dd1b29
DL
38622000-11-22 Dave Love <fx@gnu.org>
3863
3864 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
3865
e672fdce
MB
38662000-11-22 Miles Bader <miles@gnu.org>
3867
3a17d6cc
MB
3868 * keyboard.c (Vminibuffer_message_timeout): New variable.
3869 (command_loop_1): Use it to determine message timeout.
3870 (syms_of_keyboard): Initialize it.
3871
60e8e0a5 3872 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
e672fdce 3873
e9655d81
KH
38742000-11-22 Kenichi Handa <handa@etl.go.jp>
3875
3876 * sysdep.c: Move the code for declaring h_errno after #include
3877 <netdb.h>.
3878
77270fac
GM
38792000-11-21 Gerd Moellmann <gerd@gnu.org>
3880
cd913aae
GM
3881 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
3882 the menu bar when the tooltip is unmapped.
3883
77270fac
GM
3884 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
3885 sole visible buffer when we're currently in the mini-buffer, and
3886 give up if so.
52283633 3887
556635d6
JR
38882000-11-21 Jason Rumney <jasonr@gnu.org>
3889
3890 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
3891 put on the clipboard.
3892 (Fw32_get_clipboard_data): Compare data on clipboard with saved
3893 copy of what Emacs last put there. If they are the same, do not
52283633 3894 use the clipboard copy to avoid losing data due to coding conversions.
556635d6 3895
5b7bde64
MB
38962000-11-22 Miles Bader <miles@gnu.org>
3897
3898 * minibuf.c (Vminibuffer_prompt_properties): New variable.
3899 (syms_of_minibuf): Initialize it.
3900 (read_minibuf): Add properties from Vminibuffer_prompt_properties
3901 to prompt, don't make read-only.
3902
ff23e1dd
GM
39032000-11-21 Gerd Moellmann <gerd@gnu.org>
3904
52283633
SM
3905 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
3906 Add BEFORE/AFTER_POTENTIAL_GC.
3c64f287 3907
7aaf4388
GM
3908 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
3909
f5f47add 3910 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 3911
ff23e1dd
GM
3912 * term.c, cm.c: Don't try to include termcap.h; see comment there.
3913
37c35586
KH
39142000-11-21 Kenichi Handa <handa@etl.go.jp>
3915
3916 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
3917 ... #endif scope.
3918
ff9ab414
GM
39192000-11-20 Gerd Moellmann <gerd@gnu.org>
3920
52283633 3921 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
c51d2b5e
GM
3922 screen supports it.
3923
29a01b72
GM
3924 * s/gnu-linux.h: Don't use `#cpu'.
3925
09dfdf85
GM
3926 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
3927 not defined in mman.h.
3928
52283633 3929 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
ff9ab414
GM
3930 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
3931 and store an index in the XClientMessageEvent. Storing a
3932 Lisp_Object or pointer can fail on a 64 bit system, since X only
3933 transfers 32 bits.
52283633
SM
3934 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
3935
81459ac9
DL
39362000-11-20 Dave Love <fx@gnu.org>
3937
3938 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
3939
56c13ae6
GM
39402000-11-20 Gerd Moellmann <gerd@gnu.org>
3941
3942 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
3943
495a6df3
KH
39442000-11-20 Kenichi Handa <handa@etl.go.jp>
3945
2bcf3714
KH
3946 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
3947 by WIDTH.
3948
495a6df3
KH
3949 * alloc.c (make_string): Fix previous change. Be sure to make
3950 unibyte string correctly.
3951
6d950f4c
GM
39522000-11-19 Gerd Moellmann <gerd@gnu.org>
3953
39b39373
GM
3954 * window.c (Fwindow_list): Change parameter list to be XEmacs
3955 compatible.
3956 (window_list_1): New function.
3957 (window_loop): Use it instead of Fwindow_list.
3958
b95b34e5
GM
3959 * sysdep.c (emacs_ospeed): New variable.
3960 (toplevel): Don't declare ospeed extern.
3961 (init_baud_rate): Use emacs_ospeed instead of ospeed.
3962
3963 * termcap.c (ospeed): Remove.
3964 (tputs) [!emacs]: Remove unused code.
3965 (tgetent): Avoid a compiler warning.
3966
e83dc917
GM
3967 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
3968 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 3969 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
3970
3971 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
3972 removed.
3973 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
3974 Take the X display as additional argument.
3975 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
3976 `Widget' is a pointer type that's not easily stored in Lisp_Object
3977 form in a portable way.
52283633 3978
6d950f4c
GM
3979 * dispnew.c (update_text_area): Fix last change.
3980
e47306e6
GM
39812000-11-18 Gerd Moellmann <gerd@gnu.org>
3982
fb3cd89b
GM
3983 * xdisp.c: Use BINDING_STACK_SIZE throughout.
3984
3985 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
3986 clear current matrices.
3987
edaa9aed
GM
3988 * buffer.c (mmap_enlarge): Don't print a message on stderr
3989 if mapping new memory at the end of the existing region fails.
3990
e47306e6
GM
3991 * dispnew.c (update_text_area): Don't skip over equal glyphs
3992 when the last current glyph overlaps the glyph to its right.
3993
509633e3
MB
39942000-11-18 Miles Bader <miles@gnu.org>
3995
3996 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
3997 lines that *end* with "..." too (that's the most common case!).
3998
d392e9c5
GM
39992000-11-18 Gerd Moellmann <gerd@gnu.org>
4000
67988445
GM
4001 * xdisp.c (resize_mini_window): Temporarily change to the
4002 mini-window's buffer if necessary.
1bfdbe43 4003
d392e9c5
GM
4004 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
4005 the tooltip obscures less text under it.
4006
40072000-11-17 Gerd Moellmann <gerd@gnu.org>
4008
4009 * puresize.h (BASE_PURESIZE): Increase to 700000.
4010
92bb977f
JR
40112000-11-18 Jason Rumney <jasonr@gnu.org>
4012
4013 * w32term.c (w32_draw_bitmap): Use face to set colors.
4014
26fbf20b
DL
40152000-11-17 Dave Love <fx@gnu.org>
4016
4017 * lread.c (Fload): Fix #ifdef for pcc.
4018
100b593b
GM
40192000-11-17 Gerd Moellmann <gerd@gnu.org>
4020
4021 * xdisp.c (pos_visible_p): Compute the default character height
4022 differently.
4023
a288d0d1
GM
40242000-11-16 Gerd Moellmann <gerd@gnu.org>
4025
cac94de6 4026 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
52283633 4027 knowing the line's height; use the default font's height in that case.
cac94de6 4028
a288d0d1
GM
4029 * xfaces.c (weight_table): Add `demi' with the same meaning as
4030 `demibold'.
4031
981fb6f6
KH
40322000-11-16 Kenichi Handa <handa@etl.go.jp>
4033
2cca872d 4034 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
4035 (clear_glyph_row): Delete local static variable null_row.
4036
e5fa381b
JR
40372000-11-15 Jason Rumney <jasonr@gnu.org>
4038
4039 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
4040 (w32_alloc_lighter_color): Use new brightness calculations from
4041 xterm.c. Scale delta to be in the range expected by W32.
4042 (w32_draw_relief_rect): Use frame relief colors.
4043
8e42f043
GM
40442000-11-15 Gerd Moellmann <gerd@gnu.org>
4045
6d133d1f
GM
4046 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
4047 (Qinhibit_default_face_x_resources): New variable.
4048 (syms_of_frame): Initialize it.
4049 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
4050
4051 * xdisp.c (pos_visible_p): Improve function comment.
4052
4053 * lisp.h (BINDING_STACK_SIZE): New macro.
4054
8e42f043
GM
4055 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
4056 reading the directory if readdir returns null and errno is EAGAIN
4057 or EINTR.
4058
e8c87124
SM
40592000-11-14 Stefan Monnier <monnier@cs.yale.edu>
4060
4061 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
4062 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
4063 Set amount_to_scroll to max of dx and scroll_step so that
4064 scroll-conservatively doesn't defeat scroll-step>1.
4065 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
4066 scroll-conservatively for line-at-a-time scrolling.
4067
5f0c971d
GM
40682000-11-14 Gerd Moellmann <gerd@gnu.org>
4069
4070 * window.c (Fpos_visible_in_window_p): Call pos_visible with
4071 extra argument.
4072
4073 * xdisp.c (current_mode_line_height, current_header_line_height):
4074 New variables.
4075 (init_xdisp): Initialize them.
4076 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
4077 and use exact mode line heights if it is set.
4078
4079 * lisp.h (pos_visible_p): Change prototype.
4080
4081 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
4082 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
4083 and current_header_line_height first.
52283633
SM
4084 (current_mode_line_height, current_header_line_height):
4085 Declare extern.
5f0c971d 4086
d7361edf
MB
40872000-11-14 Miles Bader <miles@lsi.nec.co.jp>
4088
4089 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
4090 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
4091 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
4092
ee5e440a
MB
40932000-11-14 Miles Bader <miles@gnu.org>
4094
4095 * xterm.c (x_alloc_lighter_color): Include an additive component
4096 too for dark colors, because FACTOR isn't enough.
4097 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
4098 New macros.
4099
5ca020fc
GM
41002000-11-13 Gerd Moellmann <gerd@gnu.org>
4101
4102 * keyboard.c (show_help_echo): Call message3_nolog with number of
4103 bytes in the help string as 2nd parameter, instead of the number
4104 of characters.
4105
9d348294
MB
41062000-11-13 Miles Bader <miles@gnu.org>
4107
4108 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
4109 (Fload): Use new openp return protocol.
4110 Don't try to use Vload_source_file_function to load .elc files.
4111 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
4112 openp return protocol.
4113 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
4114
1729bb9a
KH
41152000-11-11 Kenichi Handa <handa@etl.go.jp>
4116
4e677396
KH
4117 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
4118
4119 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
4120 Defined these macros.
4121 (NLIST_STRUCT): Avoid re-defining it.
4122
1729bb9a
KH
4123 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
4124 -I/usr/contrib/X11R6/include.
4125 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
4126
a82fe213
JR
41272000-11-10 Jason Rumney <jasonr@gnu.org>
4128
4129 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
4130
4131 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
4132 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
4133
4134 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
4135 (Qw32_charset_vietnamese): New symbol.
4136 (xlfd_charset_of_font): New function.
4137 (w32_load_system_font): Use it.
4138 (x_to_w32_charset): Use Fassoc to find charset info. Special case
4139 when Vw32_charset_info_alist is nil to ensure default face always
4140 has font. Use Fcar and Fcdr for safety.
4141 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
4142 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
4143 pseudo-codepages for special cases.
4144 (w32_to_x_font): New parameter to allow charset portion to be
4145 specified where there is many to one mapping. Callers changed.
4146 (w32_list_fonts): Avoid listing fonts that won't display.
4147
52d89894
GM
41482000-11-10 Gerd Moellmann <gerd@gnu.org>
4149
4150 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
4151 (font_list_1): Renamed from font_list.
4152 (font_list): New function, trying alternative registries from
4153 Vface_alternative_font_registry_alist.
4154 (Finternal_set_alternative_font_registry_alist): New function.
4155 (syms_of_xfaces): Initialize and Staticpro
52283633
SM
4156 Vface_alternative_font_registry_alist.
4157 Defsubr Finternal_set_alternative_font_registry_alist.
52d89894 4158
651cd3da
KR
41592000-11-09 Ken Raeburn <raeburn@gnu.org>
4160
4161 * lisp.h (Flooking_at): Declare.
4162
388ac098
GM
41632000-11-09 Gerd Moellmann <gerd@gnu.org>
4164
778fbc46 4165 * dired.c (directory_files_internal): Fix a braino.
52283633 4166
388ac098
GM
4167 * dired.c (directory_files_internal): Add missing GCPRO's.
4168 Some cleanup.
4169
ecaedde1
GM
41702000-11-08 Gerd Moellmann <gerd@gnu.org>
4171
f7eb32aa
GM
4172 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
4173 (resize_mini_window): Return quickly if Vresize_mini_window is
4174 nil. Don't return if Vmax_mini_window_height is nil.
4175
4176 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
4177 (syms_of_xdisp): Initialize them.
4178 (resize_mini_window): Act according to the setting of
4179 Vresize_mini_window.
4180 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
4181
ecaedde1
GM
4182 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
4183 scroll bar widget after configuring it, so that it will appear at
4184 the right position from the start.
4185 (XTredeem_scroll_bar): Cleaned up.
4186
3747ef2c
KH
41872000-11-08 Kenichi Handa <handa@etl.go.jp>
4188
4189 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 4190 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
4191 division by two.
4192
4193 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
4194
03391420
DL
41952000-11-07 Dave Love <fx@gnu.org>
4196
7758f1c1 4197 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
4198
4199 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
4200
b5de343d
GM
42012000-11-07 Gerd Moellmann <gerd@gnu.org>
4202
acad3c0b
GM
4203 * window.c (Fset_window_configuration): Don't try to preserve
4204 point in the current buffer, if that buffer is displayed in more
4205 than one window.
4206
b5de343d
GM
4207 * xfaces.c (lookup_named_face): If default face isn't realized,
4208 try to realize it. Return -1 if not successful.
4209 (Fx_list_fonts): Handle case that face cannot be determined.
4210 (Fface_font): Likewise.
4211
cdb1fe49
GM
42122000-11-06 Gerd Moellmann <gerd@gnu.org>
4213
4214 * window.c (displayed_window_lines): Detect partially
4215 visible lines at the bottom correctly.
4216
d3a67486
SM
42172000-11-06 Stefan Monnier <monnier@cs.yale.edu>
4218
4219 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
4220 when ensuring we don't do visit in indirect buffer.
4221
ff8dd5d5
KH
42222000-11-06 Kenichi Handa <handa@etl.go.jp>
4223
4224 * composite.h (compose_chars_in_text): Add prototype.
4225
4226 * composite.c (Vcomposition_function_table): New variable.
4227 (Qcomposition_function_table): New variable.
4228 (run_composition_function): Call
4229 Vcompose_chars_after_function with three arguments.
4230 (compose_chars_in_text): New function.
4231 (syms_of_composite): Modified the doc-string of
4232 Vcompose_chars_after_function. Declare composition-function-table
4233 as a lisp variable, and initialize it.
4234
4235 * xfns.c (x_encode_text): Suppress producing escape sequences for
4236 composition.
4237
4238 * xselect.c: Include composite.h.
4239 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
4240
d1145f85
AI
42412000-11-05 Andrew Innes <andrewi@gnu.org>
4242
4243 * w32term.c (x_produce_glyphs): Fix typo in enum name.
4244
4245 * sysdep.c (read_input_waiting): Remove extraneous argument to
4246 read_socket_hook.
4247
4248 * w32fns.c (Fx_server_version): Include w32_build_number in the
4249 return list.
4250
4251 * w32heap.c (w32_build_number): New variable.
4252 (cache_system_info): Set it.
4253
4254 * w32heap.h (w32_build_number): Add extern.
4255
4256 * emacs.c (syms_of_emacs): Update docstring for
4257 system-configuration, to reflect the actual usage on MS-Windows.
4258
e85ee976
GM
42592000-10-31 Gerd Moellmann <gerd@gnu.org>
4260
26dcb81b
GM
4261 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
4262 process idle timers while waiting for another event.
4263
52283633 4264 * dispnew.c (update_frame_line): Handle case where spaces in
0a894bad
GM
4265 the default face are colored.
4266
e85ee976
GM
4267 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
4268 window height hasn't changed.
4269
01b220b6
JR
42702000-10-31 Jason Rumney <jasonr@gnu.org>
4271
4272 * w32term.c (x_produce_glyphs): Handle composite characters.
4273 (x_draw_glyph_string_foreground)
4274 (x_draw_composite_glyph_string_foreground): Restore old font.
4275
4e6b7204
MB
42762000-10-31 Miles Bader <miles@lsi.nec.co.jp>
4277
4278 * minibuf.c (read_minibuf): Reset the undo history just before
4279 starting the recursive-edit.
4280
d4358b37
GM
42812000-10-30 Gerd Moellmann <gerd@gnu.org>
4282
563f68f1
GM
4283 * xfaces.c (menu_face_change_count): New variable.
4284 (Finternal_set_lisp_face_attribute): Increment it for changes
4285 of the `menu' face.
4286 (realize_basic_faces): Reflect changes in the `menu' faces
4287 in menu bars.
4288
82e274d1
GM
4289 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
4290 dy obtained from the iterator's y-position after moving from
4291 scroll_margin_pos to PT; see comment there.
52283633 4292
0dbf9fd2
GM
4293 * xdisp.c (safe_eval_handler): Call add_to_log.
4294
906b3b14
GM
4295 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
4296 is not a symbol or string.
4297
d4358b37
GM
4298 * xdisp.c (echo_area_display): Don't perform a display update from
4299 inside redisplay. The update will happen anyway at the end of
4300 redisplay, and it can confuse redisplay (GC messages while
4301 redisplaying, for instance.)
4302
70c825df
SM
43032000-10-30 Stefan Monnier <monnier@cs.yale.edu>
4304
cf9b4b0b
SM
4305 * xrdb.c (x_load_resources): Use the class name in the defaults.
4306
70c825df
SM
4307 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
4308 (regex_compile): Catch bogus \(\1\).
4309
a1d34b1e
GM
43102000-10-30 Gerd Moellmann <gerd@gnu.org>
4311
cae71efe
GM
4312 * xterm.c (x_alloc_nearest_color): Fix last change to compare
4313 RGB values.
52283633 4314
35efe0a1
GM
4315 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
4316 we have a color cache, check that the cached color equals the
4317 allocated color. If not, clear the color cache.
4318
1d3baf74
GM
4319 * window.c (displayed_window_lines): Change buffers if necessary.
4320 Fix computation of displayed lines.
4321
a1d34b1e
GM
4322 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
4323 update_menu_bindings to DEFVAR_BOOL.
4324
70737ea9
KH
43252000-10-30 Kenichi Handa <handa@etl.go.jp>
4326
70c825df 4327 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 4328
fa0cb51d
KH
4329 * puresize.h (BASE_PURESIZE): Increase to 680000.
4330
70737ea9
KH
4331 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
4332
0e4c08e8
JR
43332000-10-29 Jason Rumney <jasonr@gnu.org>
4334
4335 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
4336
4337 * w32term.c (w32_bdf_per_char_metric): Negate descent.
4338 (w32_cache_char_metrics): Handle possibility that 'x' does not
4339 exist in a BDF font.
4340 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
4341
4342 * w32bdf.h (bdffont): Add nchars.
4343
4344 * w32bdf.c (set_bdf_font_info): Set it.
4345 (w32_BDF_TextOut): Swap byte order of double byte characters.
4346 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
4347
45b84006
EZ
43482000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
4349
4350 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
4351 don't override the colors in frame's param_alist, unless they are
4352 unspecified.
4353
4354 * term.c (reassert_line_highlight): If inverse_video is non-zero,
4355 reverse the effect of the highlight flag.
4356
caf9deee
KR
43572000-10-27 Ken Raeburn <raeburn@gnu.org>
4358
4359 * window.h (Fwindow_live_p): Declare.
4360
ae0b9b46
KR
4361 * undo.c (record_delete): Check that last_undo_buffer is really a
4362 buffer before applying XBUFFER to it.
4363
4364 * keymap.c (where_is_internal): Pass lisp object, not integer, to
4365 Faref.
4366
02067692
SM
43672000-10-27 Stefan Monnier <monnier@cs.yale.edu>
4368
4369 * lisp.h (KEYMAPP): New macro.
4370 (get_keymap): Remove.
4371 (get_keymap_1): Rename get_keymap.
4372
4373 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
4374
4375 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
4376
4377 * xmenu.c (single_submenu): Use KEYMAPP.
4378 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
4379 Use KEYMAPP rather than Fkeymapp.
4380
4381 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
4382
4383 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
4384 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
4385 Use KEYMAPP rather than Fkeymapp.
4386 (single_submenu): Use KEYMAPP.
4387 (w32_menu_show, w32_dialog_show): Use TRUE.
4388
4389 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
4390
4391 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
4392 (Fkeymapp): Use KEYMAPP.
4393 (get_keymap): Rename from get_keymap_1. Remove old def.
4394 Return t when autoload=0 and error=0 and the keymap needs autoloading.
4395 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
4396 (Fminor_mode_key_binding): Don't raise an error if the binding
4397 is not a keymap.
4398 (Fuse_global_map, Fuse_local_map): Allow autoloading.
4399 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
4400
4401 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
4402 Allow Vspecial_event_map to be autoloaded.
4403 (menu_bar_items): Fetch the keymap rather than using keymapp.
4404 (menu_bar_one_keymap): No need to follow func-indirect any more.
4405 (parse_menu_item): get_keymap_1 -> get_keymap.
4406 (tool_bar_items): Fetch the keymap rather than using keymapp.
4407 (read_key_sequence): Use KEYMAPP.
4408
4409 * intervals.c (get_local_map): Use get_keymap rather than following
4410 function-indirections explicitly.
4411
4412 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
4413
f9d80af3
JR
44142000-10-27 Jason Rumney <jasonr@gnu.org>
4415
4416 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
4417 point, as Windows has oversized fonts.
4418
4419 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
4420
a3ba27da
GM
44212000-10-27 Gerd Moellmann <gerd@gnu.org>
4422
4423 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
4424 (freehook, reallochook): Handle null pointer arguments.
4425 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
4426
aa3b80cc
SM
44272000-10-27 Stefan Monnier <monnier@cs.yale.edu>
4428
4429 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
4430 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
4431 Giving in to popular pressure to shut up the compiler with casts.
4432
e24e84cc
GM
44332000-10-27 Gerd Moellmann <gerd@gnu.org>
4434
4435 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
4436 signed value, and use a default value computed from the font's
4437 maximum descent.
4438
05ea7ef2
MB
44392000-10-27 Miles Bader <miles@lsi.nec.co.jp>
4440
4441 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
4442 that specify a negative underline position can still use underlines.
4443
4444 * window.c (Fpos_visible_in_window_p): Make POS default to
4445 WINDOW's point, not the current buffer's point.
4446
0b95284b
DL
44472000-10-26 Dave Love <fx@gnu.org>
4448
4449 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
4450 when it's necessary.
4451
6c5b90af
GM
44522000-10-26 Gerd Moellmann <gerd@gnu.org>
4453
8b6d9dc9
GM
4454 * window.c (size_window): Compute size difference from sum of old
4455 child window sizes instead of from parent's size.
4456
6bc92b2e
GM
4457 * xdisp.c (pos_visible_p): Change current buffer if necessary.
4458 Handle obscured lines at the top of the window.
4459
4460 * frame.c (Fdelete_frame): Doc fix. Move running the hook
4461 down after the last error condition check.
4462
6c5b90af
GM
4463 * frame.c (Fdelete_frame): Run delete-frame-hook.
4464
42f92d4d
KH
44652000-10-26 Kenichi Handa <handa@etl.go.jp>
4466
4467 * coding.c (decode_coding): Fix previous change (check also
4468 CODING_MODE_LAST_BLOCK).
4469
d97151cb
SM
44702000-10-25 Stefan Monnier <monnier@cs.yale.edu>
4471
e7efc503
SM
4472 * regex.c: More `unsigned char' -> `re_char' changes.
4473 Also change several `int' into `re_wchar_t'.
4474 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
4475 (PUSH_FAILURE_POINTER): Don't cast any more.
4476 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
4477 We want GCC to complain, since this piece of code makes
4478 re_match non-reentrant, which *should* be fixed.
4479 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
4480 (EXTEND_BUFFER): Use RETALLOC.
4481 (SET_LIST_BIT): Don't cast.
4482 (re_wchar_t): New type.
4483 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
4484 that those two functions will always properly return.
4485 (IMMEDIATE_QUIT_CHECK): Cast to void.
4486 (analyse_first): Use recursion rather than an explicit stack.
4487 (re_compile_fastmap): Can't fail anymore.
4488 (re_search_2): Don't check re_compile_fastmap for failure.
4489 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
4490 Now also sets the new value (passed in a new argument).
4491 (re_match_2_internal): Use it.
4492 Also, use a new var `reg' of type size_t when looping through regs
4493 rather than reuse the inappropriate `mcnt'.
4494
d97151cb
SM
4495 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
4496 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
4497 (where_is_internal): Renamed from Fwhere_is_internal.
4498 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
4499 (Fwhere_is_internal): New function wrapping where_is_internal.
4500 (where_is_internal_1): Handle the case where we're filling the cache.
4501 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
4502
d5789b65
MB
45032000-10-25 Miles Bader <miles@gnu.org>
4504
4505 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
4506
4ecda532
GM
45072000-10-25 Gerd Moellmann <gerd@gnu.org>
4508
4509 * window.c (pos_fully_visible_p): Removed.
4510 (Fpos_visible_in_window_p): Use pos_visible_p to determine
4511 if position is visible and/or fully visible.
4512
4513 * lisp.h (pos_visible_p): Add prototype.
4514
4515 * xdisp.c (pos_visible_p): New function.
4516
68c3a137
KH
45172000-10-25 Kenichi Handa <handa@etl.go.jp>
4518
4519 * process.c (send_process): If OBJECT is t, it means that the data
4520 is from C string, but we should encode it. Before calling
4521 setup_raw_text_coding_system, be sure to flush out data by the
4522 previous coding system.
4523
7ae1c032
MB
45242000-10-25 Miles Bader <miles@lsi.nec.co.jp>
4525
ff4dcd4b
MB
4526 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
4527 assignment of startpos to prev when startpos == pos.
4528
7ae1c032
MB
4529 * editfns.c (find_field): Set the field stickiness correctly from
4530 overlay fields. Use renamed `text_property_stickiness'.
4531 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 4532 Only check text properties, not overlays.
7ae1c032
MB
4533 * textprop.c (get_char_property_and_overlay): New function.
4534 (Fget_char_property): Use it.
4535 * intervals.h (get_char_property_and_overlay): Add declaration.
4536
49801145
SM
45372000-10-25 Stefan Monnier <monnier@cs.yale.edu>
4538
4539 * keymap.c: Use AREF, ASET and ASIZE macros.
4540 (Fmake_sparse_keymap): Docstring fix.
4541 (synkey): Remove.
4542 (shadow_lookup): Move up.
4543 Handle the case where lookup-key returns an integer.
4544 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
4545 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
4546 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
4547 Simplify/rewrite the keymap-finding code.
4548 Add check for command shadowing, using shadow_lookup.
4549
39e776cd
SM
45502000-10-24 Stefan Monnier <monnier@cs.yale.edu>
4551
4552 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
4553 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
4554 a symbol.
4555
2488aba5
AI
45562000-10-24 Andrew Innes <andrewi@gnu.org>
4557
4558 * dired.c (directory_files_internal_unwind): New function.
4559 (directory_files_internal): Use it to ensure closedir is called
4560 even if expand-file-name or file-attributes throw, eg. because of
4561 a user interrupt. Also enable immediate_quit while calling
4562 re_search, so that matching can be interrupted as well.
4563
b94fdf61
AI
45642000-10-24 Andrew Innes <andrewi@gnu.org>
4565
4566 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
4567 NT-Emacs only.
4568 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
4569 so that re_search functions only quit when callers expect them to.
4570
45712000-10-24 Kenichi Handa <handa@etl.go.jp>
4572
4573 * regex.c (regex_compile): Change the way of handling a range from
4574 a char less than 256 to a char not less than 256.
4575
1946f901
GM
45762000-10-24 Gerd Moellmann <gerd@gnu.org>
4577
7ae2f10f
GM
4578 * window.c (size_window): Prevent setting window's width or
4579 height to a negative value (esp. with XSETFASTINT).
4580
5dcab13e
GM
4581 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
4582 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
4583 (protect_malloc_state) [GC_MALLOC_CHECK &&
4584 GC_PROTECT_MALLOC_STATE]: New function.
4585 (PROTECT_MALLOC_STATE): New macro.
4586 (__malloc_initialize, morecore, _malloc_internal)
4587 (_free_internal) _realloc_internal): Use it to make _heapinfo
4588 read-only outside of gmalloc.
4589
63e1b552
GM
4590 * keymap.c: Update copyright.
4591
1946f901
GM
4592 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
4593 a symbol.
4594
4fa09beb
GM
45952000-10-24 Colin Walters <walters@cis.ohio-state.edu>
4596
4597 * filelock.c (unlock_all_files): Use unlock_file to expand each
4598 buffer's file_truename before trying remove its lock file.
4599
23afac01
EZ
46002000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
4601
4602 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
4603 or CRLF, decode EOLs.
4604
04448b95
KH
46052000-10-24 Kenichi Handa <handa@etl.go.jp>
4606
4607 * window.c (Fdisplay_buffer): Fix doc.
4608
3090a5a5
JR
46092000-10-23 Jason Rumney <jasonr@gnu.org>
4610
4611 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
4612 ASCII font of default fontset on Windows.
4613
4614 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
4615 xterm.c comment below).
4616
4617 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
4618
a83fee2c
GM
46192000-10-23 Gerd Moellmann <gerd@gnu.org>
4620
4621 * xterm.c (x_connection_closed): Reset handling_signal.
4622
52283633 4623 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
a83fee2c 4624
6ffdb539
MB
46252000-10-23 Miles Bader <miles@gnu.org>
4626
4627 * window.c (window_scroll_pixel_based, window_scroll_line_based):
4628 Pass nil for FULLY argument to Fpos_visible_in_window_p to
4629 maintain old behavior.
4630 * minibuf.c (Fminibuffer_complete): Likewise.
4631
7f1c969b
MB
46322000-10-23 Miles Bader <miles@lsi.nec.co.jp>
4633
4634 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
4635 that when a font can't be exactly centered, it errs up rather than
4636 down.
4637
23afac01 46382000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd 4639
52283633 4640 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
8ec118cd 4641
1a578e9b
AC
46422000-10-23 Andrew Choi <akochoi@i-cable.com>
4643
4644 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
4645
4646 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 4647 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
4648
4649 * emacs.c (main) [macintosh]: Call syms_of_textprop,
4650 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
4651 syms_of_search, x_term_init, and init_keyboard before calling
4652 init_window_once. Also, call syms_of_xmenu.
4653
4654 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
4655 default fontset to Monaco.
4656
4657 * frame.c [macintosh]: Include macterm.h. Remove declarations of
4658 NewMacWindow and DisposeMacWindow.
4659 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
4660 instead of calling NewMacWindow and setting fields of
4661 f->output_data.mac directly. Call init_frame_faces.
4662 (Fdelete_frame) [macintosh]: Remove unused code.
4663 (Fmodify_frame_parameters) [macintosh]: Call
4664 x_set_frame_parameters instead of mac_set_frame_parameters.
4665
4666 * frame.h [macintosh]: Define menu_bar_lines field in struct
4667 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
4668
4669 * keyboard.c [macintosh]: Include macterm.h.
4670 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
4671 and menu_bar_activate_event type events as for X and NT.
4672 (make_lispy_event) [macintosh]: Construct lisp events of type
4673 MENU_BAR_EVENT as for X and NT.
4674
4675 * sysdep.c [macintosh]: Remove declaration for sys_signal.
4676 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
4677 (sys_subshell) [macintosh]: Remove definition entirely.
4678 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
4679 Vwindow_system_version here. Remove initialization of
4680 Vx_bitmap_file_path.
4681 (read_input_waiting): Correct the number of parameters passed to
4682 read_socket_hook.
4683 Move all Macintosh functions to mac/mac.c.
4684
4685 * term.c [macintosh]: Include macterm.h.
4686
4687 * window.c [macintosh]: Include macterm.h.
4688
4689 * xdisp.c [macintosh]: Include macterm.h. Declare
4690 set_frame_menubar and pending_menu_activation.
4691 (echo_area_display) [macintosh]: Do not return if terminal frame
4692 is the selected frame.
4693 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
4694 Allow only the selected frame to set menu bar.
4695 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
4696 calling FRAME_EXTERNAL_MENU_BAR (f).
4697 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
4698
4699 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
4700 and check_x. Declare XCreateGC. Define x_create_gc and
4701 x_free_gc. Initialize font_sort_order.
4702 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
4703 but call x_list_fonts instead of w32_list_fonts.
4704 (Finternal_face_x_get_resource) [macintosh]: Do not call
4705 display_x_get_resource.
4706 (prepare_face_for_display) [macintosh]: Set xgcv.font.
4707 (realize_x_face) [macintosh]: Load the font if it is specified in
4708 ATTRS.
52283633 4709 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
1a578e9b 4710
1ffbabe3
SM
47112000-10-22 Stefan Monnier <monnier@cs.yale.edu>
4712
4713 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
4714 is nil: since we go to the end of submap anyway, we'd end up
4715 setting nil to nil.
4716 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
4717 doesn't obey autoload.
4718
bed43f1d
EZ
47192000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
4720
1ffbabe3 4721 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 4722
ea4233a7
JR
47232000-10-21 Jason Rumney <jasonr@gnu.org>
4724
4725 * w32term.c (w32_cache_char_metrics): Double check that font is
4726 really fixed pitch before trusting tmPitchAndFamily.
4727
f3d3c491
AI
47282000-10-21 Andrew Innes <andrewi@gnu.org>
4729
4730 * w32gui.h (w32_char_font_type): Move enum from w32term.c
4731
4732 * w32term.h: Extern decl for w32_cache_char_metrics.
4733
4734 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
4735
4736 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
4737 (w32_unload_font): Free per_char array if present.
4738
4739 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
4740 cached information in emulated XFontStruct to handle common cases
4741 quickly. Do not allocate XCharStruct for return.
4742 (w32_native_per_char_metric): New function.
4743 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
4744 allocating one.
4745 (x_produce_glyphs): Don't get an HDC. Change calls to
4746 w32_per_char_metric to match arg change above. Remove calls to
4747 free results.
4748 (w32_get_glyph_overhangs): Ditto.
4749 (w32_cache_char_metrics): New function.
4750
4751 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
4752 ($(BLD)/casefiddle.$(O)): Remove compile command.
4753 ($(BLD)/gmalloc.$(O)): Remove compile command.
52283633
SM
4754 ($(BLD)/dispnew.obj):
4755 ($(BLD)/keyboard.obj):
4756 ($(BLD)/w32inevt.obj):
4757 ($(BLD)/w32bdf.obj):
4758 ($(BLD)/alloc.obj):
4759 ($(BLD)/buffer.obj):
4760 ($(BLD)/editfns.obj):
4761 ($(BLD)/emacs.obj):
4762 ($(BLD)/fileio.obj):
4763 ($(BLD)/fns.obj):
4764 ($(BLD)/indent.obj):
4765 ($(BLD)/insdel.obj):
4766 ($(BLD)/intervals.obj):
4767 ($(BLD)/minibuf.obj):
4768 ($(BLD)/print.obj):
4769 ($(BLD)/scroll.obj):
4770 ($(BLD)/sysdep.obj):
4771 ($(BLD)/textprop.obj):
4772 ($(BLD)/widget.obj):
f3d3c491
AI
4773 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
4774 ($(BLD)/term.obj): Add dependency on dispextern.h.
4775
52283633
SM
4776 * makefile.nt ($(BLD)\dispnew.obj):
4777 ($(BLD)\keyboard.obj):
4778 ($(BLD)\w32inevt.obj):
4779 ($(BLD)\w32bdf.obj):
4780 ($(BLD)\alloc.obj):
4781 ($(BLD)\buffer.obj):
4782 ($(BLD)\editfns.obj):
4783 ($(BLD)\emacs.obj):
4784 ($(BLD)\fileio.obj):
4785 ($(BLD)\fns.obj):
4786 ($(BLD)\indent.obj):
4787 ($(BLD)\insdel.obj):
4788 ($(BLD)\intervals.obj):
4789 ($(BLD)\minibuf.obj):
4790 ($(BLD)\print.obj):
4791 ($(BLD)\scroll.obj):
4792 ($(BLD)\sysdep.obj):
4793 ($(BLD)\textprop.obj):
4794 ($(BLD)\widget.obj):
f3d3c491
AI
4795 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
4796 ($(BLD)\term.obj): Add dependency on dispextern.h
4797
18ad4821
EZ
47982000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
4799
4800 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
4801 with an additional argument of Qt.
4802
de54681a
MB
48032000-10-21 Miles Bader <miles@gnu.org>
4804
4805 * window.c (pos_fully_visible_in_window_p): New function.
4806 (Fpos_visible_in_window_p): Add FULLY argument.
4807 Use pos_fully_visible_in_window_p.
4808 (window_scroll_pixel_based, window_scroll_line_based): Update
4809 calls to Fpos_visible_in_window_p.
4810 * lisp.h (Fpos_visible_in_window_p): Update prototype
4811
13c844fb
GM
48122000-10-20 Gerd Moellmann <gerd@gnu.org>
4813
4814 * alloc.c (toplevel): Conditionalize compilation of mem_*
4815 functions differently.
52283633 4816
d9506268
JR
48172000-10-20 Jason Rumney <jasonr@gnu.org>
4818
4819 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
4820 mem_init where it used to be. mem_z etc not defined otherwise.
4821
8094989b
GM
48222000-10-20 Gerd Moellmann <gerd@gnu.org>
4823
4824 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
4825 GC_MALLOC_CHECK.
4826 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
4827 structure definition and related variabled to the top of the file.
4828 Include this code when GC_MALLOC_CHECK is defined.
4829 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
4830 register/unregister allocated region.
4831 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
4832 which isn't allocated.
4833 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
4834 something which is already in use.
4835 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
4836 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
4837 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
4838 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
4839
4840 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
4841 _malloc_internal instead of malloc.
4842 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
4843 of free.
4844
ea456eb4
AI
48452000-10-20 Andrew Innes <andrewi@gnu.org>
4846
4847 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
4848 Windows.
4849 (my_strftime) <macro>: Don't use macro arg list when redefining as
4850 _strftime_copytm.
4851 (my_strftime) <function>: Supply 0 as ut argument.
4852
e64c3a75
JR
48532000-10-19 Jason Rumney <jasonr@altavista.net>
4854
4855 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
4856 including dispextern.h, as it stops faces from working.
4857
4858 * w32fns.c (Fx_create_frame): Don't bother calling
4859 face-set-after-frame-default since the caller does it for us
4860 anyway. Clean up calls to x_get_arg to be consistent with X.
4861
4862 * w32term.c (x_produce_glyphs): Handle
4863 unibyte_display_via_language_environment correctly.
4864 (w32_draw_box_rect): Fix the calculation of width and height.
4865
4866 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
4867 as it has stopped working.
4868 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
4869 menu-bar.
4870
17401c97
GM
48712000-10-19 Gerd Moellmann <gerd@gnu.org>
4872
4873 * eval.c (skip_debugger): Prevent a compiler warning.
4874 (Fcondition_case): Likewise.
4875 (Fbacktrace_frame): Use a null interactive spec.
4876
773272d8
KH
48772000-10-19 Kenichi Handa <handa@etl.go.jp>
4878
4879 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
4880
a42943e9
GM
48812000-10-18 Gerd Moellmann <gerd@gnu.org>
4882
e50517d9
GM
4883 * strftime.c: Sync with glibc, file version 1.78.
4884 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
4885 should no longer be used according to ISO 8601.
4886
9035a35a
GM
4887 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
4888 no map for meta_prefix_char, don't try to use it as a keymap.
4889 Instead, if T_OK is non-zero, look up a default binding, if any,
4890 otherwise, if T_OK is zero, return nil.
4891
a42943e9
GM
4892 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
4893 (x_to_xcolors, png_load): Use x_query_color.
4894
52283633
SM
4895 * xterm.c (x_color_cells, x_query_colors, x_query_color):
4896 New functions.
a42943e9
GM
4897 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
4898 which can be slow.
4899 (x_copy_color, x_alloc_lighter_color): Likewise.
4900
4901 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
4902 (x_query_color, x_query_colors): Add prototype.
4903
4904 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
4905 check_string_bytes only if not noninteractive, increase count to 50.
4906
00de2987
MB
49072000-10-18 Miles Bader <miles@lsi.nec.co.jp>
4908
4909 * insdel.c (adjust_markers_for_delete): Handle before-insertion
4910 markers correctly.
4911
54918e2b
GM
49122000-10-17 Gerd Moellmann <gerd@gnu.org>
4913
1f0b3fd2
GM
4914 * alloc.c (pure_bytes_used): Renamed from pureptr.
4915 (ALIGN): New macro.
4916 (pure_alloc): New function.
4917 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
4918 Use it.
4919 (Fpurecopy): Use PURE_POINTER_P.
4920
68c5d1db
GM
4921 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
4922 PT has moved backward.
52283633 4923
9a038881
GM
4924 * xdisp.c (cursor_row_p): Take continued lines into account.
4925
361b097f
GM
4926 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
4927 string's size_byte.
4928 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
4929 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
4930 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
4931 string allocated.
4932
54918e2b
GM
4933 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
4934 of selective display off while searching for the next line start.
4935
03ed0806
KH
49362000-10-17 Kenichi Handa <handa@etl.go.jp>
4937
4938 * Makefile.in (term.o): Depend on dispextern.h.
4939
7e05cdaf
SM
49402000-10-16 Stefan Monnier <monnier@cs.yale.edu>
4941
4942 * keymap.c (keymap_memberp): Ensure that nil is not a member.
4943
a6801fd1
GM
49442000-10-16 Gerd Moellmann <gerd@gnu.org>
4945
483de32b
GM
4946 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
4947 the iterator at the beginning, so that they can be set later on,
4948 for instance in reseat_at_next_visible_line_start, without being
4949 overwritten.
4950
a6801fd1
GM
4951 * xfns.c (pbm_format): Add :foreground and :background keywords.
4952 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
52283633 4953 (xbm_load): Recognize foreground and background color specifications.
a6801fd1 4954
dbf1fcc1
EZ
49552000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
4956
4957 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
4958
52283633 4959 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
dbf1fcc1
EZ
4960
4961 * msdos.c (IT_set_face): Compare highlighted face with the default
4962 face, and invert colors if these faces' colors are identical.
4963 (Fmsdos_remember_default_colors): Don't swap foreground and
4964 background colors in initial_colors[].
4965 (IT_set_frame_parameters): Don't swap frame's foreground and
4966 background pixels. If ALIST includes "(reverse . t)", swap
4967 foreground-color and background-color properties in frame's
4968 param_alist. If the original frame's param_alist doesn't specify
4969 the colors, store unspecified-fg and unspecified-bg, reversed if
4970 required.
4971
4972 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
4973 the colors are unspecified and reversed, reverse fore- and back-
4974 ground in the returned value.
4975 (Fframe_parameter): Ditto.
4976
b41fe2c3 49772000-10-16 Gerd Moellmann <gerd@gnu.org>
52283633 4978
3a6b59d9
GM
4979 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
4980 get_last_unchanged_at_beg_row.
4981 (find_first_unchanged_at_end_row): Renamed from
4982 get_first_unchanged_at_end_row.
4983 (find_first_unchanged_at_end_row): Convert assertions to
4984 unconditional tests which abort. When looking for a row in
4985 unchanged text, don't go further back than first_text_row.
4986
b41fe2c3
GM
4987 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
4988 Don't add in the last line's height when deciding if the new
4989 position is below the scroll margin.
9d1af64f 4990
b41fe2c3 49912000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
4992
4993 * editfns.c (Fconstrain_to_field): Check carefully for field
4994 boundaries if either OLD_POS or NEW_POS has a non-nil field
4995 property, even if they're the same.
4996
c412cb7b
KH
49972000-10-16 Kenichi Handa <handa@etl.go.jp>
4998
4999 * xterm.c (x_draw_box_rect): Fix the calculation of width and
5000 height for XFillRectangle.
5001
5586f3eb
SM
50022000-10-15 Stefan Monnier <monnier@cs.yale.edu>
5003
5004 * syntax.c (Fstring_to_syntax): New function extracted from
5005 Fmodify_syntax_entry.
5006 (Fmodify_syntax_entry): Use it and document the ! and | fences.
5007 (skip_chars, Fforward_comment): Remove unused variables.
5008 (syms_of_syntax): Add defsubr for string-to-syntax.
5009 (describe_syntax): Add code for comment and string fences.
5010
db785038
SM
50112000-10-14 Stefan Monnier <monnier@cs.yale.edu>
5012
5013 * keymap.c (access_keymap): Add AUTOLOAD parameter.
5014 Do the meta->esc mapping. Call get_keyelt before returning.
5015 Start scanning from the second element (the first is always `keymap')
5016 to make it easier to detect when we reach a parent map.
5017 Handle the case of inheriting from a symbol whose function is a map.
5018 (Fkeymap_parent): Also handle the `inherit from symbol' case.
5019 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
5020 (get_keyelt, Flookup_key): Update call to access_keymap.
5021 Remove the meta->esc mappings.
5022 (define_as_prefix): Delete old disabled code.
5023 (menu_item_p): New function.
5024 (where_is_internal_1): Skip over the few remaining menu items.
5025 * lisp.h (access_keymap): Update prototype.
5026 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
5027 Update call to access_keymap.
5028 (follow_key, read_key_sequence): Update calls to access_keymap.
5029 Remove the meta->esc mappings.
5030
cafafe0b
GM
50312000-10-13 Gerd Moellmann <gerd@gnu.org>
5032
a2e2a7f6
GM
5033 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
5034 with additional argument.
5035
cafafe0b
GM
5036 * xdisp.c (cursor_row_p): New function.
5037 (try_cursor_movement, display_line): Use it.
52283633 5038
cafafe0b
GM
5039 * xdisp.c (append_space): Also save/restore iterator's current
5040 character and its length.
5041
5042 * xdisp.c (init_from_display_pos): Add an assertion.
5043 (handle_stop): Don't set iterator's add_overlay_start.
5044 (handle_invisible_prop): Likewise.
5045 (load_overlay_strings): If text under an overlay is invisible,
5046 take both before- and after-strings into account when the iterator
5047 is positioned either at the start or at the end of the overlay.
5048 (forward_to_next_line_start): Rewritten.
5049 (reseat_at_next_visible_line_start): Rewritten.
5050 (set_iterator_to_next): Add parameter RESEAT_P.
5051
5052 * dispextern.h (struct it): Remove member add_overlay_start.
5053 (set_iterator_to_next): Change prototype.
5054
c744452b
KH
50552000-10-13 Kenichi Handa <handa@etl.go.jp>
5056
5057 * coding.c (code_convert_region): Be sure to initialize
5058 coding->category_idx.
e4a3f4e1
KH
5059 (decode_coding_string): Set coding->src_multibyte and
5060 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
5061 (encode_coding_string): Set coding->src_multibyte and
5062 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 5063
321fd26f
SM
50642000-10-12 Stefan Monnier <monnier@cs.yale.edu>
5065
5066 * xfns.c (Fx_create_frame): Don't bother calling
5067 face-set-after-frame-default since the caller does it for us anyway.
5068
76832439
EZ
50692000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
5070
5071 * window.c (coordinates_in_window): Fix detection of vertical line
5072 on character terminals.
5073
2483cf58
GM
50742000-10-12 Gerd Moellmann <gerd@gnu.org>
5075
5076 * editfns.c (save_excursion_save): Additionally record the
5077 selected window.
5078 (save_excursion_restore): If buffer was visible in a window, and a
5079 different window was selected, and the old selected window is
5080 still live, restore point in that window.
5081
eb991b25
KH
50822000-10-12 Kenichi Handa <handa@etl.go.jp>
5083
8a0eba09
KH
5084 * xterm.c (x_produce_glyphs): Handle
5085 unibyte_display_via_language_environment correctly.
5086
20401fcc
KH
5087 * regex.c (regex_compile): Change the way of handling a range from
5088 unibyte char to multibyte char.
5089
5090 * syntax.c (skip_chars): Change the way of handling a range from
5091 unibyte char to multibyte char.
5092
eb991b25
KH
5093 * process.c (read_process_output): Cancel previous change.
5094
365dd325
EZ
50952000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
5096
c1b096cb
EZ
5097 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
5098
365dd325
EZ
5099 * charset.c (Ffind_charset_string): Doc fix.
5100 (Ffind_charset_region): Doc fix.
5101
eb483c2b
KH
51022000-10-11 Kenichi Handa <handa@mule.m17n.org>
5103
5104 * process.c (read_process_output): Fix previous change. Adjust
5105 multibyteness of text to insert in a buffer by
52283633 5106 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
eb483c2b 5107
b40bfb99
AS
51082000-10-10 Andreas Schwab <schwab@suse.de>
5109
5110 * alloc.c (mark_object): Remove all workarounds installed on
5111 1993-08-08.
5112
caff31d4
KH
51132000-10-10 Kenichi Handa <handa@etl.go.jp>
5114
52283633 5115 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
caff31d4
KH
5116 (base64_encode_1): Make it work for a text of multibyte form.
5117 (Fbase64_decode_region): Allocate sufficient memory for multibyte
5118 case. Don't call str_to_multibyte because base64_decode_1
5119 produces correct multibyte form for eight-bit codes.
52283633 5120 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
caff31d4
KH
5121 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
5122 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
5123 codes.
5124
5125 * charset.h (CHAR_STRING): Optimized for single byte characters.
5126
cba026ef
AS
51272000-10-09 Andreas Schwab <schwab@suse.de>
5128
5129 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
5130 -1 after socket is closed, to fall through to error processing.
5131
1e21fe48
EZ
51322000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
5133
5134 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 5135 variables. If ALIST includes foreground-color or
1e21fe48
EZ
5136 background-color, change also the colors of the default face for
5137 this frame.
5138
a640322e
EZ
51392000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
5140
5141 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
5142 them extern (they are defined on xfaces.c).
5143 (syms_of_msdos): Don't intern and don't staticpro
5144 Qbackground_color and Qforeground_color.
5145
a115794c
EZ
51462000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
5147
5148 * frame.c (Fframe_parameter): For non-windowed frames, if
5149 f->param_alist says foreground or background color is unspecified,
5150 call tty_color_name to return the color name computed from the
5151 frame's current colors.
5152
f5533b63
DL
51532000-10-06 Dave Love <fx@gnu.org>
5154
5155 * terminfo.c (ospeed): Don't declare.
5156
5157 * sysdep.c: Don't include string.h.
5158 (h_errno): Declare conditional also on TRY_AGAIN.
5159
5160 * charset.c (Ffind_charset_string): Doc fix.
5161
52283633 5162 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
f5533b63
DL
5163 (Fbase64_decode_region, Fbase64_decode_string): More explicit
5164 error messages.
5165
2b06561a
DL
51662000-10-05 Dave Love <fx@gnu.org>
5167
5168 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
5169 position like menu-bar.
5170
ca839c85
GM
51712000-10-05 Gerd Moellmann <gerd@gnu.org>
5172
5173 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
5174
5175 * xdisp.c (handle_single_display_prop): Use safe_call1.
5176 (safe_call): Renamed from call_function.
5177 (safe_call1): New function.
5178 (handle_fontified_prop): Use safe_call1 instead of call1.
5179 (safe_eval): Renamed from eval_form.
5180 (safe_eval_handler): Renamed from eval_handler.
5181 (handle_single_display_prop, display_mode_element): Use safe_eval
5182 instead of eval_form.
5183
5184 * xfaces.c (merge_face_heights): Use safe_call instead of
5185 call_function.
5186
5187 * keyboard.c (show_help_echo): Use safe_call instead of
5188 call_function; use safe_eval instead of eval_form.
5189
5190 * lisp.h (safe_call): Renamed from call_function.
5191 (safe_eval): Renamed from eval_form.
5192 (safe_call1): Add prototype.
5193
a3489ece
MB
51942000-10-05 Miles Bader <miles@lsi.nec.co.jp>
5195
5196 * xfns.c (image_ascent): Rearrange ascent calculation for the
5197 has-a-font case.
5198
35810b6f
SM
51992000-10-04 Stefan Monnier <monnier@cs.yale.edu>
5200
5201 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
5202 (where_is_internal_1): Don't bother ignoring menu-items any more.
5203
3dc78168
GM
52042000-10-04 Gerd Moellmann <gerd@gnu.org>
5205
5206 * keyboard.c (update_menu_bindings): New variable.
5207 (parse_menu_item): Use AREF. If update_menu_bindings
5208 is 0, don't update menu bindings.
5209 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
5210
1efc2bb9
EZ
52112000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
5212
5213 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
5214 to `mark_object'.
5215
3f679f55
SM
52162000-10-02 Stefan Monnier <monnier@cs.yale.edu>
5217
5218 * syntax.c (forw_comment): Match nestedness of ender/starter.
5219 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
5220 (prev_char_comstart_first): Remove.
5221 (back_comment): Check two-char comment markers more carefully
5222 to better handle overlapping cases like *//* or /* */* */ ...
5223 Match nestedness of ender/starter.
5224
2021ab61
DL
52252000-10-02 Dave Love <fx@gnu.org>
5226
5227 * config.in (HAVE_GAI_STRERROR): Add undef.
5228
5229 * process.c (Fopen_network_stream): Use it.
5230
5231 * m/alpha.h (NO_REMAP): Don't define.
5232
64e6cc18
GM
52332000-10-02 Gerd Moellmann <gerd@gnu.org>
5234
5235 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
5236 return with a string converted to an integer or vice versa when
5237 Vmocklisp_arguments is t.
5238 (Fsignal): Likewise. The function can return for `quit'.
5239 (struct gcpro): Declare member `var' to point to a volatile
5240 Lisp_Object.
5241
5242 * eval.c (error): Prevent compiler warning.
5243
b1904cd9
SM
52442000-09-30 Stefan Monnier <monnier@cs.yale.edu>
5245
5246 * keymap.c (keymap_memberp): New function.
5247 (Fset_keymap_parent): Use it.
5248 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
5249 Use keymap_memberp to avoid creating cycles.
5250 (access_keymap): Use KEYMAPP.
5251
71c9ec51
GM
52522000-09-30 Gerd Moellmann <gerd@gnu.org>
5253
5254 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
5255 gai_strerror. Make sure xerrno is set if connect fails. Improve
5256 error recovery.
71c9ec51 5257
c70c6b58
JR
52582000-09-29 Jason Rumney <jasonr@gnu.org>
5259
5260 * w32term.c (w32_char_font_type, w32_encode_char)
5261 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
5262 (w32_bdf_per_char_metric): New function.
5263 (w32_per_char_metric): Use it.
5264 (x_draw_glyph_string_background): Always draw background for BDF
5265 glyphs.
5266
5267 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
5268 GDI object which is a scarce resource.
5269
5270 * w32bdf.c (search_file_line): Fix skipping of whitespace.
5271 (get_quoted_string): Fix limit on memchr search.
5272 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
5273 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
5274 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
5275 (get_cached_font_char, cache_char_offset): Use macro
5276 BDF_CODEPOINT_RANGE_COVER_P.
5277 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
5278 (clear_cached_bitmap_slots): New function.
5279 (GET_HEX_VALUE): G-Z, g-z are not hex.
5280 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
5281 (get_bitmap_with_cache): Use new cache implementation.
5282 (create_offscreen_bitmap): New function.
5283 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
5284
5285 * w32term.c (x_produce_glyphs): If the distance from the current
5286 position to the next tab stop is less than a canonical character
5287 width, use the tab stop after that.
5288 (x_draw_glyphs): Handle case START and END are out of bounds more
5289 carefully.
5290 (x_clear_mouse_face): Block/unblock input.
5291 (x_display_and_set_cursor): Don't show a hollow box cursor for
5292 buffers whose cursor_type is nil.
5293
fe01239f
GM
52942000-09-29 Gerd Moellmann <gerd@gnu.org>
5295
52283633 5296 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
fe01239f
GM
5297
5298 * dispextern.h (updating_frame): Declare extern.
5299
e7c52f1f
AS
53002000-09-29 Andreas Schwab <schwab@suse.de>
5301
5302 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
5303
de6e1f7c
GM
53042000-09-29 Gerd Moellmann <gerd@gnu.org>
5305
25126faa
GM
5306 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
5307 use its function definition.
5308 (tool_bar_items): Likewise.
5309
de6e1f7c 5310 * lisp.h (fatal): Declare NO_RETURN.
52283633 5311
454ee39b
KH
53122000-09-29 Kenichi Handa <handa@etl.go.jp>
5313
5314 * keymap.c: Remove the line "#undef NULL".
5315
96301c5f
GM
53162000-09-28 Gerd Moellmann <gerd@gnu.org>
5317
52283633 5318 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
96301c5f 5319
efffeeb4
DL
53202000-09-28 Dave Love <fx@gnu.org>
5321
ecb8b666
DL
5322 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
5323
dc3cd20f
DL
5324 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
5325
5326 * .gdbinit (xreload): Note its need on GNU/Linux.
5327
efffeeb4
DL
5328 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
5329 r_alloc, r_alloc_free.
5330
8610d903
KH
53312000-09-28 Kenichi Handa <handa@etl.go.jp>
5332
5333 * syntax.c (skip_chars): Handle negation correctly.
5334
8901d1ac
GM
53352000-09-27 Gerd Moellmann <gerd@gnu.org>
5336
6f22f1ad
GM
5337 * xfaces.c (realize_default_face): Call set_lface_from_font_name
5338 with non-zero FORCE_P argument.
5339
52283633 5340 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
8901d1ac
GM
5341 Add assertions.
5342
5343 * xdisp.c (window_box_height): Add an assertion.
5344
5345 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
5346 tool-bar than is available.
5347 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
5348
36f1966f
DL
53492000-09-27 Dave Love <fx@gnu.org>
5350
efffeeb4 5351 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 5352
31d929e5
GM
53532000-09-26 Gerd Moellmann <gerd@gnu.org>
5354
c98863bf
GM
5355 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
5356 instead of BITS_PER_INT.
5357 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
5358 EMACS_UINT, respectively.
5359 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
5360
5361 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
5362
5363 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
5364
77072ab1
GM
5365 * window.c (freeze_window_starts): Construct last argument for
5366 foreach_window differently.
5367
5368 * xfns.c (x_decode_color): Don't return a Lisp_Object.
5369
5370 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
5371 EMACS_UINT instead of `int' and `unsigned int'.
5372 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
5373
5374 * frame.h (struct frame): Make the `nothing' member of union
5375 output_data an EMACS_INT.
5376
52283633 5377 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
31d929e5
GM
5378 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
5379 size in the sdata structure.
5380 (SDATA_NBYTES, SDATA_DATA): New macros.
5381 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
5382 differently for the different layout of the sdata structure.
5383 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
5384 in sdata.
5385 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
5386 Check that size recorded in the string size and size recorded in
5387 the sdata structure agree.
5388
3e60b029
DL
53892000-09-25 Dave Love <fx@gnu.org>
5390
5391 * buffer.c: Include stdio.h.
5392
5393 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
52283633 5394
3e60b029
DL
5395 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
5396
5397 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
52283633 5398 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
3e60b029
DL
5399 (__malloc_extra_blocks): Declare as __malloc_size_t.
5400
8ff16b4e
GM
54012000-09-25 Gerd Moellmann <gerd@gnu.org>
5402
755a2ccd
GM
5403 * alloc.c (mark_image): Use GC_NILP instead of NILP.
5404
d8b4516f
GM
5405 * keyboard.c (show_help_echo): Set help_echo_showing_p.
5406 (read_char): If help-echo is showing, preserve the echo area
5407 when redisplaying.
5408
5409 * xdisp.c (help_echo_showing_p): New variable.
5410 (set_message): Reset it to 0.
5411 (init_xdisp): Initialize help_echo_showing_p.
5412
5413 * dispextern.h (help_echo_showing_p): Declare extern.
5414
5415 * config.in: Fix typo in __GNUC_MINOR__.
5416
5417 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
5418
b11af2dd
GM
5419 * s/freebsd.h (POSIX_SIGNALS): Define.
5420
8ff16b4e
GM
5421 * xterm.c (x_clear_mouse_face): Block/unblock input.
5422
844eb643
DL
54232000-09-24 Dave Love <fx@gnu.org>
5424
5425 * fns.c (base64_encode_1): Fix last change.
5426
b30ab1b3
GM
54272000-09-22 Gerd Moellmann <gerd@gnu.org>
5428
5429 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
5430
5431 * xdisp.c (try_window_reusing_current_matrix): More fixes
5432 for the case window has a header-line.
5433
c6cbe5f0
DL
54342000-09-22 Dave Love <fx@gnu.org>
5435
4c7c1f3f
DL
5436 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
5437 a doc string.
5438
5439 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
5440
c6cbe5f0
DL
5441 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
5442
550a625e
GM
54432000-09-21 Gerd Moellmann <gerd@gnu.org>
5444
4c7c1f3f 5445 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
5446 for GCC >= 2.5.
5447
52283633
SM
5448 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
5449 Declare NO_RETURN.
fca99116 5450
80d26f99
GM
5451 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
5452 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
5453 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
5454 warnings.
52283633 5455
80d26f99
GM
5456 * marker.c (byte_char_debug_check): Return void.
5457
623a0aae
GM
5458 * xfns.c (Fx_create_frame): Set default frame parameter value
5459 for tool-bar-lines to 1.
5460
5461 * dispnew.c (scrolling_window): Compare y-positions of rows
5462 equal at the start. Some simplification.
5463
5464 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
5465 reused rows' y-position in the case window has a header-line, and
5466 new window start is greater than old window start.
5467
42ac0ae5
GM
5468 * process.c (process_sent_to): New variable.
5469 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
5470 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
5471 Declare more parameters volatile.
5472
550a625e
GM
5473 * lread.c (Vrecursive_load_depth_limit): New variable.
5474 (Fload): Check recursive loads whose recursion depth exceeds
5475 Vrecursive_load_depth_limit.
5476 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
5477
8320414c
GM
54782000-09-20 Gerd Moellmann <gerd@gnu.org>
5479
f46c275e
GM
5480 * fileio.c (Fread_file_name): Doc fix.
5481
5482 * editfns.c (Fmessage_or_box): Doc fix.
5483
5484 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
5485
b7e11c5b 5486 * xfns.c (xbm_scan): Allow C-style comments.
52283633 5487
8320414c
GM
5488 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
5489 symbols are specified, add color translations to the cache.
52283633 5490 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
8320414c
GM
5491 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
5492 xpm_cache_color.
5493 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
5494 structures to xpm_init_color_cache.
5495
da1608d9
GM
54962000-09-19 Gerd Moellmann <gerd@gnu.org>
5497
52283633 5498 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
da1608d9 5499
6badfa25
AI
55002000-09-19 Andrew Innes <andrewi@gnu.org>
5501
5502 * makefile.nt (bootstrap-emacs): Don't change directory.
5503
3a5f42bb
KH
55042000-09-19 Kenichi Handa <handa@etl.go.jp>
5505
1b7649bd
KH
5506 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
5507
3a5f42bb
KH
5508 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
5509 If output buffer is too small, signal an appropriated error.
5510
9f83cf0b
DL
55112000-09-18 Dave Love <fx@gnu.org>
5512
52283633 5513 * keyboard.c (menu_bar_items, tool_bar_items)
9f83cf0b
DL
5514 (current_active_maps): Remove redundant get_local_map call.
5515
28c7826c
GM
55162000-09-18 Gerd Moellmann <gerd@gnu.org>
5517
5cefa566
GM
5518 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
5519 cursor for buffers whose cursor_type is nil.
52283633 5520
6fed3546
GM
5521 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
5522 a feature to implement that is already implemented.
5523 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
5524 warnings.
5525
5526 * xfns.c (x_clear_image_1): New function.
5527 (x_clear_image): Use it.
52283633 5528 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
6fed3546 5529
05b1f851
GM
5530 * dispnew.c (update_window): Move test for invisible lines
5531 at the top to update_window_line.
5532 (update_window_line): Handle invisible lines here.
5533
f4779de9
GM
5534 * xfns.c (clear_image_cache): Clear current matrices of all
5535 frames sharing an image cache. Block input while freeing
5536 images. Fix timestamp comparison.
5537 (x_clear_image): Also free the mask.
5538
28c7826c
GM
5539 * xfns.c (lookup_image): Block input while loading the image so
5540 that we won't get interrupted in a state where the image isn't yet
5541 set up completely.
5542 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
5543 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
5544 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
52283633 5545 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
28c7826c 5546
b7412313
GM
55472000-09-16 Gerd Moellmann <gerd@gnu.org>
5548
5549 * dispnew.c (update_window): Make sure to make desired rows
5550 current even if they are completely invisible at the top
5551 of a window.
5552
47e351a3
GM
55532000-09-15 Gerd Moellmann <gerd@gnu.org>
5554
7f8f1edc
GM
5555 * xfns.c (lookup_image): Build mask before applying an algorithm.
5556 Recognize algorithm `disabled'.
5557 (cross_disabled_images): New variable.
5558 (COLOR_INTENSITY): New macro.
5559 (x_detect_edges): Use COLOR_INTENSITY.
5560 (x_disable_image): New function.
5561 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
5562
5563 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
5564 disabled state, don't apply an image transformation algorithm if
5565 the user specified an image for the disabled state. Use
28c7826c 5566 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
5567 user hasn't specified an image.
5568
ebb8f116
GM
5569 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
5570 allocation functions with the XPM lib.
5571 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
5572 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
5573 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
5574 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
52283633 5575 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
ebb8f116
GM
5576 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
5577 functions, if possible, because these handle color allocation
5578 failure more gracefully.
5579 (Fimage_mask_p): New function.
5580
47e351a3
GM
5581 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
5582 (Qedge_detection, Qheuristic): New symbols.
5583 (syms_of_xfns): Initialize new symbols.
5584 (lookup_image): Handle `:mask X', `:algorithm emboss', and
5585 `algorithm (edge-detection ...)'.
5586 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
5587 (tiff_format, gif_format, gs_format): Add `:mask'.
5588 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
5589 (GIF_MASK, GS_MASK): New enumerators.
5590 (x_laplace_read_row, x_laplace_write_row): Functions removed.
5591 (emboss_matrix, laplace_matrix): New variables.
5592 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
5593 (x_edge_detection): New functions.
5594 (x_laplace): Rewritten in terms of x_detect_edges.
5595 (x_build_heuristic_mask): If image has a mask, free it.
5596
fe83b953
AI
55972000-09-14 Andrew Innes <andrewi@gnu.org>
5598
5599 * makefile.w32-in: Revert to Unix line endings.
5600
3021e816
AI
56012000-09-14 Andrew Innes <andrewi@gnu.org>
5602
5603 * makefile.w32-in: Standardize indentation somewhat.
5604 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
5605 cater for differences between shells.
5606
5607 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
5608
2a32b5ea
GM
56092000-09-14 Gerd Moellmann <gerd@gnu.org>
5610
5611 * xterm.c (x_produce_glyphs): If the distance from the current
5612 position to the next tab stop is less than a canonical character
5613 width, use the tab stop after that.
5614
b4331e96
DL
56152000-09-14 Dave Love <fx@gnu.org>
5616
5617 * buffer.c (alloc_buffer_text): Fix xmalloc call.
5618
ef9e4345
GM
56192000-09-14 Gerd Moellmann <gerd@gnu.org>
5620
085536c2
GM
5621 * xdisp.c (handle_fontified_prop): While running fontification
5622 functions, bind `fontification-functions' and
5623 `after-change-functions' to nil.
5624
ef9e4345
GM
5625 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
5626 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
5627
5628 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
5629
5630 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
5631 USE_MMAP_FOR_BUFFERS.
5632
5633 * insdel.c (make_gap): Use enlarge_buffer_text.
5634
5635 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
5636 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
5637 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
5638 from former r_alloc_* functions in ralloc.c.
52283633 5639 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
ef9e4345
GM
5640 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
5641 (mmap_init) [REL_ALLOC_MMAP]: New function.
5642 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
5643 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
5644 BUFFER_FREE.
5645
5646 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
5647 (enlarge_buffer_text): Add prototype.
5648
5649 * ralloc.c: Remove everything having to do with the use of mmap.
5650
f8608968
GM
56512000-09-13 Gerd Moellmann <gerd@gnu.org>
5652
2a494b2d
GM
5653 * sound.c (Fplay_sound): Doc fix.
5654
8c907a56
GM
5655 * keyboard.c: Avoid some more compiler warnings.
5656 (parse_tool_bar_item): Ignore cached key bindings.
5657
f8608968
GM
5658 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
5659 and allocation of Lisp data.
5660
6ab70e9a
GM
56612000-09-12 Gerd Moellmann <gerd@gnu.org>
5662
d12d0a9b
GM
5663 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
5664 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
5665 defaults first.
5666
6ab70e9a
GM
5667 * lread.c (Fload): Put code checking for recursive loads in #if 0.
5668
63c36c3c
KH
56692000-09-12 Miyashita Hisashi <himi@meadowy.org>
5670
5671 * ccl.c: Comment fixed.
5672 (MAX_MAP_SET_LEVEL): Increased to 30.
5673 (PUSH_MAPPING_STACK): Enclose with do-while block.
5674 (POP_MAPPING_STACK): Likewise.
5675 (stack_idx_of_map_multiple): New variable.
5676 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
5677 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
52283633 5678 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
63c36c3c
KH
5679 (ccl_driver) <CCL_MapSingle>: Likewise.
5680 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
5681 with the case where looking up process reaches to the end of
5682 map-set, and call CCL programs as the above change.
5683
7ee3bd7b
GM
56842000-09-11 Gerd Moellmann <gerd@gnu.org>
5685
8ec8a5ec
GM
5686 * xfns.c (png_load, jpeg_load): Declare some variables volatile
5687 that might be clobbered by longjmp.
5688 (check_x_display_info, x_decode_color, create_frame_xic)
5689 (Fx_display_backing_store, Fx_display_visual_class)
52283633 5690 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
8ec8a5ec 5691
f74b0705
GM
5692 * lread.c (init_lread): Set Vloads_in_progress to nil.
5693 (Fload): Show list of recursively loaded files, when signaling an
5694 error.
5695
7ee3bd7b
GM
5696 * lread.c (Vloads_in_progress): New variable.
5697 (record_load_unwind): New function.
5698 (Fload): Check for recursive loads.
5699 (syms_of_lread): Initialize Vloads_in_progress.
5700 (read_integer, read1): Avoid some compiler warnings.
5701
5702 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
5703 compiler warnings.
5704
974e1e5b
MB
57052000-09-11 Miles Bader <miles@gnu.org>
5706
5707 * editfns.c (Fbuffer_string): Doc fix.
5708
9824c4e3
GM
57092000-09-10 Gerd Moellmann <gerd@gnu.org>
5710
5711 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
5712
6a72fdd1
KR
57132000-09-09 Ken Raeburn <raeburn@gnu.org>
5714
5715 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
5716 whether to include other header files.
5717
28e6fb66
GM
57182000-09-09 Gerd Moellmann <gerd@gnu.org>
5719
52283633 5720 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 5721 by Fmemq as a boolean.
28e6fb66 5722
7f8b6551
SM
57232000-09-08 Stefan Monnier <monnier@cs.yale.edu>
5724
5725 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
5726
a8710abf
GM
57272000-09-08 Gerd Moellmann <gerd@gnu.org>
5728
d1a02881
GM
5729 * ralloc.c (mmap_fd): Remove initializer which can make it
5730 read-only in a dumped Emacs.
5731 (mmap_fd_1): New variable.
5732 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
5733 restore it from there.
5734 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
5735 unconditionally so that mmap_fd can be initialized there.
5736 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
5737 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
5738 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
5739
c454aac1
GM
5740 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
5741
5742 * xdisp.c (dump_glyph_row): Fix printf format string.
52283633 5743 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
c454aac1 5744
fc653ef2
GM
5745 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
5746
3015eec0
GM
5747 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
5748 inheritance.
5749
bfe0ee88
GM
5750 * xdisp.c (try_window_id): When trying to locate cursor in
5751 unchanged rows at the top, handle the case that we can't find it.
5752
a8710abf
GM
5753 * xterm.c (x_draw_glyphs): Handle case START and END are out
5754 of bounds more carefully.
5755
6b7d4ae4
DL
57562000-09-08 Dave Love <fx@gnu.org>
5757
423193c5
DL
5758 * s/sol2.h (REL_ALLOC_MMAP): Define.
5759 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
5760
5761 * ralloc.c: Don't include string.h (redundant).
5762 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
5763 [!MAP_ANON]: Include fcntl.h.
5764 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
5765 (r_alloc, r_re_alloc, r_alloc_free)
5766 (mmap_enlarge, mmap_set_vars): Use it.
5767 (r_alloc_init_fd): New function.
5768 (__morecore) [SYSTEM_MALLOC]: Don't declare.
5769 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
5770 malloc type.
5771
5772 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
5773 Remove vm-limit.o.
5774
6b7d4ae4
DL
5775 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
5776 change to __NetBSD__.
5777
44d31981
KH
57782000-09-08 Kenichi Handa <handa@etl.go.jp>
5779
5780 * search.c (compile_pattern): Check the multibyteness of cached
5781 string and PATTERN.
5782
aad40737
MB
57832000-09-08 Miles Bader <miles@gnu.org>
5784
5785 * xfaces.c (default_face_vector): Function removed.
5786 (Finternal_merge_in_global_face): Restore old global/local
5787 attribute override order. Use inline loop instead of calling
5788 default_face_vector.
5789
91a211b5
GM
57902000-09-07 Gerd Moellmann <gerd@gnu.org>
5791
5792 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
5793 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
5794 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
5795 where necessary, in case POINTER_TYPE is `void'.
5796
03419440
EZ
57972000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
5798
5799 * frame.c (make_terminal_frame): Initialize frame foreground and
5800 background colors to unspecified, for the initial instance of an
5801 MSDOS frame.
5802
f46f845b
GM
58032000-09-07 Gerd Moellmann <gerd@gnu.org>
5804
24f76fbf
GM
5805 * ralloc.c (mmap_find): Fix overlap computation.
5806 (mmap_enlarge): Compute nbytes before trying to find an
5807 overlapping region.
5808
f46f845b
GM
5809 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
5810 instead of `!='.
5811
5812 * lread.c (syms_of_lread): Change value of regexp
5813 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
5814
5815 * xmenu.c (xdialog_show): When looking up the selection in
5816 menu_items, take `quote' boundaries into account; this corresponds
5817 to a nil ITEM in x-popup-dialog.
5818
3c014385
KH
58192000-09-07 Kenichi Handa <handa@etl.go.jp>
5820
fd6f711b
KH
5821 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
5822 not 0x81.
5823 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
5824
3c014385 5825 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
5826 encoding, not decoding. Fix the handling of latin-jisx0201.
5827 Check for the charset katakana-jisx0201 too.
3c014385 5828 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 5829 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 5830
0da3ecef
GM
58312000-09-07 Gerd Moellmann <gerd@gnu.org>
5832
ab0ee409
GM
5833 * xfaces.c (Vparam_value_alist): New variable.
5834 (syms_of_xfaces): Initialize it.
5835 (Finternal_set_lisp_face_attribute): Avoid more consing.
5836
5837 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
5838 specially.
5839 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
5840 (Qbackground_mode): New variable.
5841 (syms_of_frame_1): Initialize Qbackground_mode.
5842
5843 * lisp.h (Qdisplay): Declare extern.
1091dd67 5844
0da3ecef
GM
5845 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
5846 change face on all frames, and change the default for new frames.
5847
b14654b9
DL
58482000-09-07 Dave Love <fx@gnu.org>
5849
5850 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
5851
d24fd56f
KH
58522000-09-07 Kenichi Handa <handa@etl.go.jp>
5853
794f3670
KH
5854 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
5855
0fddd0dc
KH
5856 * charset.c: Include composite.h
5857 (lisp_string_width): New function.
5858 (Fstring_width): Call lisp_string_width instead of strwidth.
5859
5860 * Makefile.in (charset.o): Depends on composite.h.
5861
d24fd56f
KH
5862 * process.c (read_process_output): Before inserting the decoded
5863 text in the buffer, adjust the multibyteness.
5864
fa0b693c
GM
58652000-09-06 Gerd Moellmann <gerd@gnu.org>
5866
52283633 5867 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
73b77ee5
GM
5868 buffer's text buffer is null, map new memory.
5869
0a58f946
GM
5870 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
5871 POINTER_TYPE and size_t.
5872 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
5873 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
5874 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
5875 [REL_ALLOC_MMAP]: New macros.
5876 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
5877 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
5878 [REL_ALLOC_MMAP]: New functions.
5879
5880 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
5881 before and after unexec.
5882
5883 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
5884 text buffers if necessary.
5885
5886 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
5887 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
5888 in prototypes.
5889
fa0b693c
GM
5890 * config.in (HAVE_MMAP): Add #undef.
5891
877055f6
GM
58922000-09-05 Gerd Moellmann <gerd@gnu.org>
5893
08ba3862
GM
5894 * frame.c (Qdisplay_type): New variable.
5895 (syms_of_frame_1): Initialize it.
5896 (Fframe_parameter): New function that avoids consing.
5897 (syms_of_frame): Defsubr it.
5898
66ffe51c
GM
5899 * buffer.c (Fother_buffer): Consider buffers as invisible when
5900 they are displayed in a window on an invisible frame.
5901
877055f6
GM
5902 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
5903 get-largest-window always return nil.
5904
bb970e67
GM
59052000-09-04 Gerd Moellmann <gerd@gnu.org>
5906
5907 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
5908 variable; recognize Emacs 19 elc files.
5909
7a3d0e0e
MB
59102000-09-04 Miles Bader <miles@gnu.org>
5911
5912 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
5913 before initially popping up the menu, so the menu doesn't flash
52283633 5914 when the face settings are significantly different from the defaults.
7a3d0e0e 5915
14473664
SM
59162000-09-04 Stefan Monnier <monnier@cs.yale.edu>
5917
5918 * regex.c (WIDE_CHAR_SUPPORT): New macro.
5919 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
5920 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
5921 (BIT_UNIBYTE): Remove.
5922 (re_match_2_internal): Delete corresponding code and streamline the
5923 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
5924 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
5925 (re_wctype_t): New type.
5926 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
5927 (regex_compile): Use them and fix handling of overly long char classes.
5928
c1174479
AI
59292000-09-03 Andrew Innes <andrewi@gnu.org>
5930
f8803e97
AI
5931 * makefile.w32-in: Change to DOS line endings.
5932
c1174479
AI
5933 * s/ms-w32.h (ORDINARY_LINK): New define.
5934
5935 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
5936 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
5937
5938 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
5939 (distclean): Delete them here instead.
5940
44ef7cf6
AI
5941 * w32proc.c (compare_env): Convert to uppercase for comparison,
5942 not lowercase, to match how the native Windows shell works.
5943
49b3bd82
JR
59442000-09-03 Jason Rumney <jasonr@gnu.org>
5945
5946 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
5947 CVS changes the line-ends when checking in/out on DOS/Windows.
5948
5949 * makefile.nt (emacs): Do not change directory to run temacs, as
5950 the load-path is set relative to current directory.
5951
a3d35a39
MB
59522000-09-03 Miles Bader <miles@gnu.org>
5953
5954 * xterm.c (x_alloc_lighter_color_for_widget): New function.
5955
d276b0cf
GM
59562000-09-02 Gerd Moellmann <gerd@gnu.org>
5957
715e84c9
GM
5958 * xdisp.c (redisplay_mode_lines): New function.
5959 (display_mode_lines): Return number of mode lines displayed.
5960 (echo_area_display): Use redisplay_mode_lines to draw garbaged
5961 mode lines. Don't temporarily bind redisplay-dont-pause to t.
5962
8892f40b
GM
5963 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
5964 string.h and strings.h.
5965 (index) [HAVE_INDEX]: Add prototype.
5966
d276b0cf
GM
5967 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
5968 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
5969
5970 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
5971 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
5972
38404229
GM
59732000-09-01 Gerd Moellmann <gerd@gnu.org>
5974
5975 * lread.c (read1): Accept `?' as symbol constituent, for
5976 compatiblity with XEmacs.
5977
c0f9ea08
SM
59782000-08-31 Stefan Monnier <monnier@cs.yale.edu>
5979
5980 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
5981 (struct re_pattern_buffer): Remove newline_anchor.
5982 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
5983 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
5984 (re_max_failures, fail_stack): Use size_t rather than unsigned.
5985 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
5986 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
5987 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
5988 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
5989 Get rid of references to newline_anchor.
5990 (regcomp): Allocate and precompute a fastmap.
5991
8c0f83fe
GM
59922000-08-31 Gerd Moellmann <gerd@gnu.org>
5993
5994 * lread.c (openp): GCPRO local variable `filename'.
5995
4bb91c68
SM
59962000-08-30 Stefan Monnier <monnier@cs.yale.edu>
5997
5998 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
5999
6000 * regex.c: Merge some changes from GNU libc. Add prototypes.
6001 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
6002 Use memcmp and memcpy instead of bcopy and bcmp.
6003 (init_syntax_once): Use ISALNUM.
6004 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
6005 (REG_UNSET_VALUE): Remove. Use NULL instead.
6006 (REG_UNSET, re_match_2_internal): Use NULL.
6007 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
6008 New macros.
6009 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
6010 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
6011 (regex_compile): In handle_interval, return an error rather than try to
6012 unfetch the interval if we can't find the closing brace.
6013 Obey the RE_NO_GNU_OPS syntax bit.
6014 (TOLOWER): New macro.
6015 (regcomp): Use it.
6016 (regexec): Allocate regs.start and regs.end as one block.
6017
5226a931
GM
60182000-08-30 Gerd Moellmann <gerd@gnu.org>
6019
868dd24b
GM
6020 * xdisp.c (echo_area_display): Check display_completed instead
6021 of calling detect_input_pending.
6022
6023 * dispnew.c (update_frame): Only set display_completed here; move
6024 the update_begin and update_end calls here from update_frame_1.
6025 (update_frame_1): Don't set display_completed here, don't call
6026 update_begin/update_end.
6027
5226a931
GM
6028 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
6029 instead of store_frame_param.
6030
2a8bd25f
GM
60312000-08-29 Gerd Moellmann <gerd@gnu.org>
6032
6033 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
6034 desired window matrix hasn't been displayed, use the current row
6035 instead. Make sure that only those frame rows are updated for
6036 which there exists a corresponding enabled desired row.
52283633 6037
ba3478d9
MB
60382000-08-29 Miles Bader <miles@gnu.org>
6039
6040 * xfaces.c (default_face_vector): New function.
6041 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
6042
87d0f685
GM
60432000-08-29 Gerd Moellmann <gerd@gnu.org>
6044
6045 * lread.c (openp): Prevent temporary string passed to
6046 Ffile_readable_p from being garbage collected.
6047
6fa86045
DL
60482000-08-28 Dave Love <fx@gnu.org>
6049
6050 * keymap.c (store_in_keymap): Add `static' to declaration.
6051
bb17930d
GM
60522000-08-28 Gerd Moellmann <gerd@gnu.org>
6053
6054 * emacs.c, callint.c, doc.c, editfns.c
6055 (toplevel) [HAVE_STRING_H]: Include string.h.
6056 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
6057 (index): Remove prototypes which might conflict with non-standard
6058 definitions of index/strchr.
6059
6060 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
6061 (rindex): Define only if !HAVE_RINDEX.
6062
6063 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
6064
6065 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
6066
87188200
MB
60672000-08-28 Miles Bader <miles@gnu.org>
6068
6069 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
6070 made inconsistent by a font-related attribute in FROM.
6071 (merge_face_inheritance): Add function comment.
6072
41a68aef
KH
60732000-08-28 Kenichi Handa <handa@etl.go.jp>
6074
6075 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
6076 the 4th arg (PREV_EVENT) Qt to suppress input method.
6077
f7c436c1
SM
60782000-08-27 Stefan Monnier <monnier@cs.yale.edu>
6079
0b32bf0e
SM
6080 * regex.c: Indent cpp directives and remove parens after `defined'.
6081 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
6082 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
6083 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
6084 (re_compile_pattern): Use size_t for length.
6085 (init_syntax_once): Move to a better place.
6086 * regex.h: Merge changes from GNU libc. Indent cpp directives.
6087 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
6088
f7c436c1
SM
6089 * syntax.c (back_comment): Detect cases where a comment-starter is
6090 actually inside another comment as in: /* a // b */ c // d \n.
6091 Make it clear that `comstart_pos' is unused for nested comments.
6092
6093 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
6094 (KEYMAPP): New macro.
6095 (Fkeymap_parent, Fset_keymap_parent): Use it.
6096 (fix_submap_inheritance): Mark it static.
6097 (define_as_prefix, describe_buffer_bindings, describe_command)
6098 (describe_translation, describe_map): Complete prototypes.
6099
6100 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
6101
6102 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
6103 to better match the key-lookup behavior.
6104
6288c62f
GM
61052000-08-27 Gerd Moellmann <gerd@gnu.org>
6106
6107 * xfaces.c (lface_fully_specified_p): Handle :inherit.
6108 (Finternal_set_lisp_face_attribute): Fix typo in error message.
6109
e931344e
EZ
61102000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
6111
6112 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
6113 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
6114 (xterm.o): Depend on coding.h
6115
d10dfeef
KH
61162000-08-26 Kenichi Handa <handa@etl.go.jp>
6117
6118 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
6119 the corresponding '#endif'.
6120
2d73e8d3
MB
61212000-08-26 Miles Bader <miles@gnu.org>
6122
6123 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
6124 * xfaces.c (QCinherit): New variable.
6125 (syms_of_xfaces): Initialize it.
6126 (LFACE_INHERIT): New macro.
6127 (Finternal_get_lisp_face_attribute)
52283633 6128 (merge_face_vector_with_property)
2d73e8d3
MB
6129 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
6130 (check_lface_attrs): Allow new types of face height. Check
6131 inherit attribute.
6132 (CYCLE_CHECK): New macro.
6133 (merge_face_inheritance): New function.
6134 (merge_face_vectors): Merge inherited faces too. Add F and
6135 CYCLE_CHECK arguments.
6136 (merge_face_vector_with_property, Finternal_merge_in_global_face)
6137 (lookup_named_face, lookup_derived_face, realize_named_face)
6138 (face_at_string_position, face_at_buffer_position): Supply
6139 new F and CYCLE_CHECK arguments to merge_face_vectors.
6140 (merge_face_heights): New function.
52283633 6141 (merge_face_vectors, merge_face_vector_with_property)
2d73e8d3
MB
6142 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
6143 handle relative face heights.
6144 (lface_same_font_attributes_p): Compare heights using EQ.
6145
6ce974d4
KH
61462000-08-26 Kenichi Handa <handa@etl.go.jp>
6147
6148 * charset.c (char_to_string): Check the character validity.
52283633 6149 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
6ce974d4 6150
dc1e502d
SM
61512000-08-25 Stefan Monnier <monnier@cs.yale.edu>
6152
6153 * regex.c (PUSH_FAILURE_COUNT): New macro.
6154 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
6155 Handle popping of a register's or a counter's data.
6156 (POP_FAILURE_POINT): Use the new name.
6157 (re_match_2_internal): Push counter data on the stack for succeed_n,
6158 jump_n and set_number_at and remove misleading dead code in succeed_n.
6159
bd9d0f3f
GM
61602000-08-25 Gerd Moellmann <gerd@gnu.org>
6161
6162 * xdisp.c (redisplay_internal): If considering all windows on all
6163 frames, update the display for each frame as soon as possible,
6164 instead of first building all desired matrices for all frames, and
6165 then updating them all.
6166 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
6167
aa5b8e15
GM
61682000-08-24 Gerd Moellmann <gerd@gnu.org>
6169
17494071
GM
6170 * bytecode.c (mark_byte_stack): Add a comment.
6171
52283633
SM
6172 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
6173 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
aa5b8e15
GM
6174 a graphical frame.
6175
c543db81
KH
61762000-08-24 Kenichi Handa <handa@etl.go.jp>
6177
d246d5f5
KH
6178 * minibuf.c (do_completion): Always use compare-string, not
6179 string-equal because the latter doesn't pay attention to
6180 multibyteness of strings.
6181
c543db81
KH
6182 * process.c (create_process): Don't setup raw-text coding here.
6183 (Fopen_network_stream): Don't set coding->src_multibyte and
6184 coding->dst_multibyte here.
6185 (read_process_output): For process filter, return unibyte string
6186 if default-enable-multibyte-characters is nil.
6187 (send_process): If OBJECT is multibyte text, be sure to encoded it
6188 by the specified coding system for the process. Otherwise, setup
6189 raw-text coding.
52283633 6190 (init_process): Don't initialize default-process-coding-system here.
c543db81 6191
9b47cfe0
EZ
61922000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
6193
6194 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
6195 <scroll-down-aggressively>: Likewise.
6196
f5a36960
KH
61972000-08-23 Kenichi Handa <handa@etl.go.jp>
6198
6199 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
6200 zero. Set coding->produced_char correctly.
6201
69a7ffa7
AI
62022000-08-22 Andrew Innes <andrewi@gnu.org>
6203
6204 * makefile.w32-in: New file.
6205
6206 * unexw32.c (unexec): Ignore old_name, and use the actual location
6207 of the current executable instead. Base new_name on this.
6208
6209 * w32proc.c (create_child): Remove reference to security
6210 descriptor, which isn't needed and doesn't compile with mingw32.
6211
6212 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6213 up dllimport attributes.
6214 (x_update_window_end): Update prototype.
6215
6216 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
6217 extern, which screws up dllimport attributes.
6218
6219 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6220 up dllimport attributes.
6221
6222 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
6223 screws up dllimport attributes.
6224
6225 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6226 up dllimport attributes.
6227 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
6228 screws up dllimport attributes.
6229
6230 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6231 up dllimport attributes.
6232
6233 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
6234 screws up dllimport attributes.
6235
6236 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
6237 screws up dllimport attributes.
6238
6239 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6240 up dllimport attributes.
6241
6242 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
6243 unnecessary extern, which screws up dllimport attributes.
6244 (main): Ditto.
6245
6246 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6247 up dllimport attributes.
6248
6249 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
6250 unnecessary extern, which screws up dllimport attributes.
6251
6252 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
6253 screws up dllimport attributes.
6254
6255 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6256 up dllimport attributes.
6257
6258 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
6259
52283633
SM
6260 * w32bdf.c (search_file_line):
6261 (set_bdf_font_info):
6262 (seek_char):
6263 (w32_get_bdf_glyph):
69a7ffa7
AI
6264 (w32_BDF_to_x_font): Fix compile warnings.
6265
52283633 6266 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
69a7ffa7
AI
6267
6268 * w32select.c: Include keyboard.h before frame.h.
6269
6270 * w32fns.c (max): Define macro.
6271 (JOHAB_CHARSET): Define if not known.
6272 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
6273 (Fx_show_tip): Synch with X version.
6274
6275 * w32xfns.c: Include keyboard.h before frame.h.
6276
6277 * w32fns.c: Include keyboard.h before frame.h.
6278
6279 * w32term.c: Include keyboard.h before frame.h.
6280
6281 * fontset.c: Include keyboard.h before frame.h.
6282
6283 * w32inevt.c: Include keyboard.h before frame.h.
6284 (MOUSE_MOVED): Define if not known.
6285
6286 * minibuf.c: Include keyboard.h before frame.h.
6287
6288 * keyboard.c: Include keyboard.h before frame.h.
6289
6290 * indent.c: Include keyboard.h before frame.h.
6291
6292 * dispnew.c: Include keyboard.h before frame.h.
6293
6294 * buffer.c: Include keyboard.h before frame.h.
6295
6296 * alloc.c: Include keyboard.h before frame.h.
6297
6298 * print.c: Include keyboard.h before frame.h.
6299
6300 * process.c: Include keyboard.h before frame.h.
6301
6302 * scroll.c: Include keyboard.h before frame.h.
6303
6304 * sysdep.c: Include keyboard.h before frame.h.
6305
6306 * term.c: Include keyboard.h before frame.h.
6307
6308 * window.c: Include keyboard.h before frame.h.
6309
6310 * xdisp.c: Include keyboard.h before frame.h.
6311 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
6312
6313 * frame.c: Include keyboard.h before frame.h.
6314
6315 * w32heap.h: Undefine min, max.
6316
6317 * w32gui.h: Undefine min, max.
6318
6319 * unexw32.c: Change PUCHAR to PCHAR.
6320 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
52283633
SM
6321 (relocate_offset):
6322 (get_section_info):
69a7ffa7
AI
6323 (copy_executable_and_dump_data): Remove unnecessary static defs.
6324 (copy_executable_and_dump_data): Fix compile warnings.
6325
6326 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
6327
6328 * w32console.c (min): Define macro.
6329 (clear_frame, write_glyphs): Fix compile warning.
6330
52283633 6331 * w32proc.c (compare_env):
69a7ffa7
AI
6332 (find_child_console): Fix compile warning.
6333
6334 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
6335 sys_errlist instead of _sys_errlist.
6336 (get_emacs_configuration_options): New function.
6337
6338 * s/ms-w32.h (sys_nerr): Provide default definition.
6339 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
6340 name with _ prepended.
6341 (NSIG): Define if not known.
6342 (get_emacs_configuration): Provide extern declaration.
6343 (get_emacs_configuration_options): Provide extern declaration.
6344 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
6345
6346 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
52283633 6347 (map_w32_filename):
69a7ffa7
AI
6348 (read_unc_volume): Fix compile warning.
6349
6350 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
6351 definitions from being used.
6352
6353 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
6354
52283633 6355 * w32.c (unc_volume_file_attributes):
69a7ffa7
AI
6356 (open_unc_volume): Make arg const.
6357
6358 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
6359 (read_input_waiting): Remove excess parameter.
6360
6361 * w32.c (init_environment): Call _access.
6362 (check_windows_init_file): Call _close.
6363 (init_user_info): Call _putenv.
6364 (init_environment): Call _putenv and _strdup.
6365 (init_ntproc): Reset volume info cache on startup.
6366
6367 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
6368 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
6369 cannot override the CRT malloc.
6370
6371 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
6372 (LINK_FLAGS): Append to original value of LINK_FLAGS.
6373
6374 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
6375 unless we are linking with a static CRT.
6376 (RVA_TO_PTR): Cast result to unsigned char*.
6377
6378 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
6379 (add_volume_info): Use xstrdup.
6380
25060080
SM
63812000-08-22 Stefan Monnier <monnier@cs.yale.edu>
6382
6383 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
6384 (do_completion, Fminibuffer_complete_word): Use it.
6385 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
6386 var so it can take non-boolean values.
6387
6917e6bb
GM
63882000-08-21 Gerd Moellmann <gerd@gnu.org>
6389
acb7cc89 6390 * editfns.c (find_field): Formatting changes.
52283633 6391 (toplevel): Some old-style function forward declarations
acb7cc89
GM
6392 changed to prototypes, some new protypes added, some functions
6393 made static.
6394
6395 * lisp.h (set_time_zone_rule): Add prototype.
6396 (use_dialog_box): External declaration.
6397
0bbfdc25
GM
6398 * keyboard.c (gen_help_event): Add parameter SIZE.
6399 (kbd_buffer_events_waiting): Slightly rewritten.
6400 (clear_event): New function.
6401 (kbd_buffer_get_event): Use it, and clear the input_events of
6402 HELP_EVENTs.
6403 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
6404 don't fill the newly created array with nils.
6405 (toplevel): Convert some old-style function forward declarations
6406 to prototypes.
6407
6408 * keyboard.h (gen_help_event): Change prototype.
6409
6410 * xterm.c (XTread_socket): Change calls to gen_help_event.
6411
6412 * w32term.c (w32_read_socket): Change calls to gen_help_event.
6413
6917e6bb
GM
6414 * eval.c (Fmacroexpand): Doc fix.
6415
e5cd3d11
JR
64162000-08-20 Jason Rumney <jasonr@gnu.org>
6417
6418 * w32term.h (x_display_info_for_display): Remove as this function
6419 does not exist on W32.
6420
6421 * w32term.c (help_echo_window): New variable.
6422 (syms_of_w32term): staticpro it.
6423 (note_mode_line_highlight): Set it.
6424 (XTextExtents16): Removed as there is no equivalent on W32.
6425 (x_compute_glyph_string_overhangs): Incomplete body removed, as
6426 the X way of doing this will not work for W32.
6427 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
6428 (x_draw_image_foreground): Avoid drawing outside of the clip area
6429 when image doesn't have a mask.
6430 (note_mouse_highlight): Process overlays in the right order of
6431 priority. Set help_echo_window.
6432 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
6433 because that's more visible for large images.
6434
6435 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
6436 name to single_keymap_panes.
6437 (w32_menu_show): Set wv->title when dealing with titles.
6438 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
6439
6e69ab8c
MB
64402000-08-21 Miles Bader <miles@gnu.org>
6441
6442 * minibuf.c (do_completion): Try again if we rewrite the input
6443 string, but no completion was done, so that any completion message
6444 will be correct.
6445
511bd4eb
GM
64462000-08-20 Gerd Moellmann <gerd@gnu.org>
6447
6448 * xfaces.c (lface_equal_p): Compare strings differently.
6449 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
6450 (realize_tty_face): Use them.
6451 (syms_of_xfaces): Initialize new variables.
6452 (map_tty_color): New function, extracted from realize_tty_face.
6453 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
6454 foreground or background color, store the new color name in the
6455 realized face; previous code trying to do this had no effect.
6456 (realize_tty_face): Use map_tty_color.
6457 (Fclear_face_cache): Set face_change_count and ensure thorough
6458 redisplay.
6459
1433385f
GM
64602000-08-19 Gerd Moellmann <gerd@gnu.org>
6461
511bd4eb
GM
6462 * undo.c (record_first_change, record_marker_adjustment): Don't
6463 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 6464
419ac0a2
KH
64652000-08-18 Kenichi Handa <handa@etl.go.jp>
6466
6467 * coding.c (decode_coding_string): Set members consumed,
6468 consumed_char, produced, produced_char of *coding correctly. If
6469 decode_coding doesn't consume any byte, don't try anymore.
6470 (encode_coding_string): Likewise.
6471
7eb9e30d
GM
64722000-08-18 Gerd Moellmann <gerd@gnu.org>
6473
511bd4eb
GM
6474 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
6475 conditional have void type, for Standard C compilers.
7eb9e30d
GM
6476
6477 * xdisp.c (redisplay_internal): Compare windows for equality with
6478 EQ, instead of applying XWINDOW to something that might not
6479 be a window.
52283633 6480
dd34a735
KH
64812000-08-18 Kenichi Handa <handa@etl.go.jp>
6482
6483 * fontset.c (Finternal_char_font): Search only the selected frame
6484 for a window of the current buffer.
6485
385ff9e3
GM
64862000-08-18 Gerd Moellmann <gerd@gnu.org>
6487
511bd4eb 6488 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
6489 Lisp_Objects.
6490
385ff9e3
GM
6491 * keyboard.c (kbd_buffer_get_event): Handle the case that the
6492 second half of a HELP_EVENT is found at the start of kbd_buffer.
6493
d6abb4c7
MB
64942000-08-18 Miles Bader <miles@gnu.org>
6495
4618074a
MB
6496 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
6497
d6abb4c7
MB
6498 * editfns.c (save_restriction_save): Rewrite to use markers.
6499 (save_restriction_restore): Rewrite to understand new form of data
6500 saved by save_restriction_save.
6501 (Fsave_restriction): Remove cautionary note in doc-string.
6502
a7b28523
GM
65032000-08-17 Gerd Moellmann <gerd@gnu.org>
6504
6505 * fileio.c (build_annotations): Add a comment explaining the
6506 return value of format-annotate-function. Replace a spurious call
6507 to Flength with a CONSP test. Call format-annotate-function with
6508 a fifth arg specifying how many times the function is been called
6509 in a row, to let it choose temporary buffers appropriately.
6510
03c9ed77
DL
65112000-08-17 Dave Love <fx@gnu.org>
6512
6513 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
6514 declare make_temp_name twice.
6515
52283633 6516 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
03c9ed77
DL
6517 (unreadpure): Give it an arg.
6518
6519 * unexalpha.c: Prototype fatal_unexec, mark_x,
6520 update_dynamic_symbols. Declare unexec as void.
6521
6522 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
6523 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
6524
6525 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
52283633 6526 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
03c9ed77
DL
6527
6528 * alloca.c: Use #error.
6529 [POINTER_TYPE]: Use it.
6530
6531 * eval.c (Fdefvar): Doc fix.
6532
6533 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
6534 INITIALIZE_INTERVAL.
6535
6536 * buffer.h: Avoid DECLARE_INTERVALS.
6537
6538 * config.in: Add size_t.
6539
aae41d97
EZ
65402000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
6541
6542 * w16select.c (set_clipboard_data): If there's not enough memory
6543 to put text into clipboard, return 1, as Fw16_set_clipboard_data
6544 expects. In case of other failures, return 3.
6545 (system_error_msg): New error message.
6546 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
6547 system_error_msg.
6548
65aa5e85
GM
65492000-08-16 Gerd Moellmann <gerd@gnu.org>
6550
6551 * term.c (write_glyphs): Also turn off inverse video after turning
6552 off other appearances in case TS_exit_attribute_mode is not equal
6553 to TS_end_standout_mode.
6554 (insert_glyphs): Turn inverse video on/off for each run of glyphs
6555 with the same face.
6556 (turn_off_face): Reset standout_mode only if
6557 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
6558 is equal to TS_end_standout_mode.
6559
ece23901
KH
65602000-08-16 Kenichi Handa <handa@etl.go.jp>
6561
9d7bcb2e
KH
6562 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
6563 sequence at the end of the source block.
6564
ece23901
KH
6565 * ccl.c (Fccl_program_p): Docstring modified.
6566 (Fccl_execute): Likewise.
6567 (Fccl_execute_on_string): Likewise.
6568
5e30eaa2
EZ
65692000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
6570
6571 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
6572
290602fd
KH
65732000-08-16 Kenichi Handa <handa@etl.go.jp>
6574
6575 The following changes are mainly to fix bugs of
6576 encode/decode-coding-string failing if encoding/decoding return
6577 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
6578 variable conversion_buffer.
6579
6580 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
6581 decrement dst_end to avoid buffer overflow in the later call of
6582 string_as_multibyte
6583
6584 * coding.h (conversion_buffer_size, conversion_buffer)
6585 (get_conversion_buffer): Extern deleted.
6586
6587 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
6588 (conversion_buffer, conversion_buffer_size): Variables deleted.
6589 (get_conversion_buffer): Function deleted.
6590 (struct conversion_buffer): New structure.
6591 (MAX_ALLOCA): New macro.
6592 (allocate_conversion_buffer): New macro.
6593 (extend_conversion_buffer, free_conversion_buffer): New functions.
6594 (ccl_coding_driver): Set coding->result.
6595 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
6596 this is the last block of source.
6597 (encode_coding): Likewise. Handle the source block as the last
6598 one only when the whole source text is consumed.
6599 (decode_coding_string): Handle the case that the output buffer is
6600 too small to decode the whole source text. Use
6601 allocate_conversion_buffer, extend_conversion_buffer and
6602 free_conversion_buffer, not get_conversion_buffer.
6603 (encode_coding_string): Likewise.
6604 (init_coding): Function deleted.
52283633 6605 (init_coding_once): Delete code to initialize conversion_buffer_size.
290602fd
KH
6606
6607 * emacs.c (main): Don't call init_coding.
6608
52283633 6609 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
290602fd
KH
6610
6611 * term.c (write_glyphs): Use a locally declared conversion_buffer.
6612 (insert_glyphs): Likewise.
6613
6614 * w32console.c (write_glyphs): Use a locally declared
6615 conversion_buffer.
6616
b9f80d41
EZ
66172000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
6618
6619 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
6620 member of display_info is NULL.
6621
32dc52f7
GM
66222000-08-15 Gerd Moellmann <gerd@gnu.org>
6623
52283633 6624 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
58ed0d3b 6625
32dc52f7 6626 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 6627 appearances with capability `me'.
32dc52f7
GM
6628 (write_glyphs): Switch on inverse video before each face change.
6629
4eb22d33
DL
66302000-08-14 Dave Love <fx@gnu.org>
6631
6632 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
6633 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
6634 (lisp_free): Declare and make static.
6635
6636 * window.c: Fix embedded comment.
6637 (syms_of_window): Fix doc string.
6638
90cbf47e
GM
66392000-08-14 Gerd Moellmann <gerd@gnu.org>
6640
52283633 6641 * keymap.c (push_key_description): If C without modifiers is < 32,
90cbf47e
GM
6642 make sure to print `C-' before `M-', like in the manual.
6643
440fc135
GM
66442000-08-11 Gerd Moellmann <gerd@gnu.org>
6645
6646 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
6647 since they aren't relocated anymore.
52283633 6648 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
440fc135
GM
6649
6650 * xdisp.c (try_cursor_movement): Fix handling of cursor in
52283633 6651 partially visible line which is smaller than the window's height.
440fc135 6652
6e264fad
KH
66532000-08-11 Kenichi Handa <handa@etl.go.jp>
6654
6655 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
52283633 6656 the multibyte form of eight-bit-control characters.
6e264fad
KH
6657 (Fccl_execute_on_string): Initialize ccl->multibyte.
6658
6659 * ccl.h (struct ccl_program): New member multibyte.
6660
6661 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
6662
c371f69a
KH
66632000-08-11 Kenichi Handa <handa@etl.go.jp>
6664
6665 * regex.c (regex_compile) <normal_char>: Pay attention to
6666 multibyteness.
6667 (analyse_first) <exactn>: Setup fastmap correctly for
6668 eight-bit-control characters.
6669
66702000-08-11 Kenichi Handa <handa@etl.go.jp>
6671
52283633 6672 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
c371f69a
KH
6673
6674 * keyboard.c (make_lispy_event): Handle the new event type
6675 multibyte_char_keystroke.
6676
6677 * xterm.c: Include coding.h.
6678 (XTread_socket): Work around a bug of XmbLookupString. If the
6679 input is from XIM, decode it according to the current locale. In
6680 that case, generate multibyte_char_keystroke events.
6681
b8ddbe71
KH
66822000-08-11 Kenichi Handa <handa@etl.go.jp>
6683
6684 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
6685 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
6686
47589c8c
GM
66872000-08-10 Gerd Moellmann <gerd@gnu.org>
6688
6689 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
6690 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
6691 (move_it_in_display_line_to): Record iterator's ascent and descent
6692 before producing glyphs, and restore them when we know the glyph
6693 doesn't fit on the line.
6694 (move_it_to): Restructured so that it's easier to debug. If
6695 moving to a vpos, and not moving to an x or character position,
6696 stop as soon as the specified vpos is reached; don't move further
6697 into that line because that might change the computed line height.
6698 (try_cursor_movement): New function, extracted from the cursor
6699 movement branch of redisplay_window. If ending on a partially
6700 visible line, don't try to scroll if the cursor line is taller
6701 than the window.
6702 (redisplay_window): Use try_cursor_movement.
6703
6704 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
6705 because that function doesn't cope with variable-height lines.
6706
6707 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
6708 box cursor because that's better visible for large images.
52283633 6709
c51bacd6
MB
67102000-08-10 Miles Bader <miles@gnu.org>
6711
6712 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
6713
bea56df7
GM
67142000-08-10 Gerd Moellmann <gerd@gnu.org>
6715
6716 * xdisp.c (Vmessages_buffer_name): New variable.
6717 (message_dolog): Use it.
6718 (syms_of_xdisp): Initialize it.
6719
99cd7364
EZ
67202000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
6721
52283633 6722 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
99cd7364
EZ
6723 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
6724 redundant now that keyboard.h is included.
6725
7d093d56
EZ
67262000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
6727
6728 * keyboard.c (kbd_buffer_events_waiting): New function.
6729
6730 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
6731
6732 * msdos.c: Include keyboard.h.
6733 (XMenuActivate): Empty no_event events from the event buffer. If
6734 no events are left after that, call clear_input_pending.
6735 (mouse_clear_clicks): New function, code moved from mouse_init.
6736 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
6737 mouse driver to ``forget'' any past clicks.
6738
6739 * Makefile.in (msdos.o): Depend on keyboard.h.
6740
41e757a6
GM
67412000-08-09 Gerd Moellmann <gerd@gnu.org>
6742
8e7bd231
GM
6743 * lisp.h (input_pending): External declaration.
6744
6745 * dispextern.h (Qredisplay_dont_pause): Declare extern.
52283633 6746
8e7bd231
GM
6747 * xdisp.c (echo_area_display): Display thoroughly if input is
6748 pending. Bind redisplay-dont-pause to t during the redisplay.
6749 in case input is pending.
6750
6751 * dispnew.c (Qredisplay_dont_pause): New variable.
6752 (syms_of_display): Initialize and staticpro it.
6753 (update_frame_1): Don't interrupt the display for pending input if
6754 redisplay_dont_pause is set.
52283633 6755
43028b7e
GM
6756 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
6757
41e757a6
GM
6758 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
6759
2f2174fa
KH
67602000-08-09 Miles Bader <miles@lsi.nec.co.jp>
6761
6762 * callproc.c (Fcall_process): Terminate the unwind-protect around
6763 the post-read-conversion of coding system.
6764
0a6fd67e
MB
6765 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
6766 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
6767 * buffer.h (overlays_at): Update prototype.
6768 * xdisp.c (next_overlay_change): Update call to overlays_at.
6769 * xfaces.c (face_at_buffer_position): Likewise.
6770 * textprop.c (Fget_char_property): Likewise.
6771 * xterm.c (note_mouse_highlight): Likewise.
6772
0c80756e
MB
6773 * minibuf.c (do_completion): Don't consider a simple change of
6774 case as `completion'.
6775
975f250a
KR
67762000-08-08 Ken Raeburn <raeburn@gnu.org>
6777
52283633 6778 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
b347b3fd
KR
6779 * undo.c (record_delete): Make sure last_point_position_buffer is
6780 a buffer before comparing pointers.
6781
6782 * coding.h (decode_coding_string): Declare.
6783
6784 * intervals.h (Fprevious_single_char_property_change): Declare.
6785
6786 * textprop.c (Fprevious_single_char_property_change): Don't do
6787 arithmetic directly on lisp objects.
6788
52283633 6789 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
b347b3fd
KR
6790
6791 * keyboard.h (menu_item_eval_property): Declare.
6792
6793 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
6794 reuse as buffer name, instead of recreating (and discarding) every
6795 time a message is logged.
6796 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
6797 (current_message_1, truncate_message_1, set_message_1)
6798 (display_echo_area_1, resize_mini_window_1): Signatures changed.
6799 (current_message, truncate_echo_area, display_echo_area)
6800 (resize_echo_area_axactly): Changed calls.
b347b3fd 6801
975f250a 6802 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 6803 Lisp object.
975f250a 6804 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 6805 must be an integer, not a Lisp object.
975f250a 6806
46dc9912
KH
68072000-08-08 Kenichi Handa <handa@etl.go.jp>
6808
6809 * charset.c (Fchar_width): Doc fix.
6810
9f6d1a6c
GM
68112000-08-08 Gerd Moellmann <gerd@gnu.org>
6812
6813 * charset.c (Fstring_width): Doc fix.
6814
ff3d9573
GM
68152000-08-07 Gerd Moellmann <gerd@gnu.org>
6816
41e757a6 6817 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
6818 line, clear ascent and descent members of the iterator structure;
6819 the height of the continued line does not affect the height of the
6820 continuation line.
6821 (make_cursor_line_fully_visible): Do nothing if cursor is on a
6822 line taller than the window.
6823 (redisplay_window) <forced window start>: Handle case that the
6824 middle of the window is not found in any row.
6825 (dump_glyph_row): Show more information.
6826 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
6827 first text line in a glyph matrix.
6828
6829 * xterm.c (x_draw_image_foreground): Avoid drawing outside
6830 of the clip area when image doesn't have a mask.
6831
70fc58b3
GM
6832 * fns.c (sweep_weak_table): Fix survival conditions for
6833 key-or-value and key-and-value weakness.
6834
6835 * .gdbinit (xhashtable): New command.
6836
ac0e96ee
GM
6837 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
6838 tables out of the list of all weak hash tables.
6839
ff3d9573
GM
6840 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
6841 a new buffer is created, make sure echo_area_buffer[] references
6842 the new buffer.
6843
e0d8827b
EZ
68442000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
6845
6846 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
6847 the doc string.
6848
c6f35378
KH
68492000-08-07 Kenichi Handa <handa@etl.go.jp>
6850
6851 * syntax.c (skip_chars): Fix previous change. Make the handling
6852 of unibyte string consistent with that of regex search.
6853
1fd4c450
GM
68542000-08-05 Gerd Moellmann <gerd@gnu.org>
6855
e49aa397
GM
6856 * xmenu.c (popup_get_selection): Use xfree instead of free.
6857
6858 * fileio.c (Finsert_file_contents): Use xfree instead of free.
6859
6860 * editfns.c (Ftranspose_regions): Use xfree instead of free.
6861
6862 * callproc.c (child_setup): Use xfree instead of free.
6863
6864 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
6865 instead of malloc.
6866 (run_mac_command, closedir): Use `xfree' instead of `free'.
6867
6868 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
6869
6870 * eval.c (error): Use xfree instead of free.
6871
1fd4c450
GM
6872 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
6873
6874 * fns.c: Replace `illegal' with `invalid'.
e49aa397 6875 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 6876
82d497fc
KH
68772000-08-05 Kenichi Handa <handa@etl.go.jp>
6878
6879 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
6880 conversion.
6881
59f953a2
NF
68822000-08-04 Noah Friedman <friedman@splode.com>
6883
6884 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
6885 docstring.
6886
688351f2
GM
68872000-08-04 Gerd Moellmann <gerd@gnu.org>
6888
6889 * syntax.c (skip_chars): Fix typo in error message.
6890
2dad51cc
AS
68912000-08-04 Andreas Schwab <schwab@suse.de>
6892
6893 * m/ia64.h: Moved from s/ia64.h.
6894
99bb2c60
KH
68952000-08-04 Kenichi Handa <handa@etl.go.jp>
6896
082a1df2
KH
6897 * process.c (read_process_output): Big simplification. Handle
6898 composition and post-read-conversion of coding system correctly.
6899 (send_process): Handle composition correctly.
6900
6901 * callproc.c (Fcall_process): Handle post-read-conversion of
6902 coding system if any.
6903
99bb2c60
KH
6904 * coding.c (decode_coding_iso2022): More strict check for handling
6905 single shifting.
082a1df2
KH
6906 (coding_restore_composition): Pay attention to the case that
6907 cmp_data is not set properly (because of invalid code in the
6908 source text).
6909 (run_pre_post_conversion_on_str): Include text properties in the
6910 resulting string.
6911 (decode_coding_string): Set members of coding correctly.
99bb2c60 6912
f4988be7
GM
69132000-08-03 Gerd Moellmann <gerd@gnu.org>
6914
6915 * s/ia64.h: New file.
6916
6917 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
6918 Use NULL instead of 0 at the end of variable argument list of
6919 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
6920 sizeof (int) < sizeof (void *).
6921
6922 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
6923 of variable argument lists of XtVaGetValues and XtVaSetValues.
6924
6925 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
6926 variable argument lists of XtVaGetValues and XtVaSetValues.
6927
ead53494
GM
69282000-08-02 Gerd Moellmann <gerd@gnu.org>
6929
6930 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
6931 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
6932
6933 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
6934 prototype.
6935
6936 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
6937 in call to Fsingle_key_description.
6938
6939 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
6940 Callers changed.
6941
69422000-08-02 Colin Walters <walters@cis.ohio-state.edu>
6943
6944 * window.c (display_buffer_reuse_frames): New variable.
6945 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
6946 frames displaying BUFFER.
52283633 6947 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
ead53494 6948
10b0f752
MB
69492000-08-01 Miles Bader <miles@gnu.org>
6950
6951 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
6952 when to constrain NEW_POS (they were pretty screwed up before).
6953
16425c4a
EZ
69542000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
6955
6956 * msdos.c (run_msdos_command): Save and restore the master
6957 environment, for the case that child_setup signals an error.
6958 When mirroring slashes in DOS shell commands, don't fail when
6959 argv[2] has embedded blanks.
da288c14
EZ
6960 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
6961 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
6962 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
6963
6964 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
6965 using alloca; free it after run_msdos_command returns.
6966
27f73852
DL
69672000-07-27 Dave Love <fx@gnu.org>
6968
52283633
SM
6969 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
6970 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
27f73852
DL
6971
6972 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
6973
c0261b5e
EZ
69742000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
6975
6976 * editfns.c (lisp_time_argument): Fix last change.
6977
b548072f
GM
69782000-07-27 Gerd Moellmann <gerd@gnu.org>
6979
3ab82477
GM
6980 * fns.c (Fdelete): Make it work on vectors and strings in addition
6981 to lists.
6982
b548072f
GM
6983 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
6984 (syms_of_fns): Initialize new variables.
52283633 6985 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
b548072f
GM
6986 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
6987 weakness, with t meaning the same as `key-and-value'.
6988
91ae8751
KH
69892000-07-27 Kenichi Handa <handa@etl.go.jp>
6990
6991 * coding.h (struct coding_system): Member safe_charset deleted.
6992
6993 * coding.c (Qsafe_charsets): This variable deleted.
52283633
SM
6994 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
6995 New variables.
91ae8751
KH
6996 (coding_safe_chars): New function.
6997 (CODING_SAFE_CHAR_P): New macro.
6998 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
52283633 6999 checking safe_charsets member of the coding system. Caller changed.
91ae8751
KH
7000 (detect_coding_iso2022): New local variable safe_chars.
7001 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
7002 safe_charsets member of the coding system.
7003 (decode_coding_iso2022): New local variable safe_chars.
7004 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
7005 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
7006 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
7007 (ENCODE_UNSAFE_CHARACTER): New macro.
7008 (encode_coding_iso2022): New local variable safe_chars. Check
7009 unsafe chars.
7010 (setup_coding_system): Delete the code to initialize
7011 coding->safe_charses
7012 (intersection, find_safe_codings): New functions.
7013 (Ffind_coding_systems_region_internal): New function.
7014 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
7015 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
7016 variable and initialize it.
7017
7018 * fns.c (char_table_ref_and_index): New function.
7019
7020 * lisp.h (char_table_ref_and_index): Add prototype.
7021
34a7a267
SS
70222000-07-26 Sam Steingold <sds@gnu.org>
7023
7024 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 7025 (Ffloat_time): New built-in Lisp function.
34a7a267 7026
a95cb10a
GM
70272000-07-26 Gerd Moellmann <gerd@gnu.org>
7028
3353ef5a
GM
7029 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
7030 for the character code.
7031
7032 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
7033 GNU/Linux.
7034
a95cb10a
GM
7035 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
7036 if called for a popup menu.
7037 (xmenu_show): Store help string in widget values.
7038
b4a12321
DL
70392000-07-26 Dave Love <fx@gnu.org>
7040
7041 * syswait.h: Move some definitions.
7042 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
7043 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
7044 perspicuous definitions.
7045 (WTERMSIG): Fix bit pattern used.
7046
13f5ad37
KH
70472000-07-26 Kenichi Handa <handa@etl.go.jp>
7048
7049 * print.c (print_object): If vector printing is truncated, print
7050 "..." to indicate it as well as the case of list printing.
7051
070fe99c
GM
70522000-07-25 Gerd Moellmann <gerd@gnu.org>
7053
969065c3
GM
7054 * xdisp.c (next_element_from_display_vector): Improve comments.
7055
7056 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
7057 for the character code, and the rest for the face id as in 20.x.
7058 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
7059
7060 * window.c (window_display_table): Cleaned up.
7061
070fe99c
GM
7062 * syntax.c (Fforward_word): Add last arg nil in call of
7063 Fconstrain_to_field.
7064
bad77ef7
EZ
70652000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
7066
969065c3 7067 * fileio.c (Frename_file) [DOS_NT]: If the file names are
52283633
SM
7068 identical but for the letter-case, don't call
7069 barf_or_query_if_file_exists.
bad77ef7 7070
c28da489
MB
70712000-07-25 Miles Bader <miles@gnu.org>
7072
7073 * editfns.c (find_field): Honor special `boundary' fields.
7074 (Qboundary): New variables.
7075 (syms_of_editfns): Initialize Qboundary.
7076 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
7077 Use scan_buffer instead of find_before_next_newline, because it
7078 allows us to detect the boundary case where there's a newline at
7079 the search limit.
7080 * lisp.h (Fconstrain_to_field): Update external declaration.
7081
e3c31fd5
GM
70822000-07-24 Gerd Moellmann <gerd@gnu.org>
7083
7084 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
7085 if that is nil.
c28da489 7086
c66c29a2
DL
70872000-07-24 Dave Love <fx@gnu.org>
7088
7089 * s/sunos4-0.h, s/sol2.h:
7090 (LIBS_TERMCAP): Move from m/sparc.h.
7091
7092 * m/sparc.h (TERMINFO): Moved to system files (probably only
7093 relevant for sunos4 judging by its vintage).
7094 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
7095 __arch64__.
7096
fbe0a958
EZ
70972000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
7098
7099 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
7100 name to single_keymap_panes.
7101
7d88e5c9
AS
71022000-07-24 Andreas Schwab <schwab@suse.de>
7103
7104 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
7105
e024b101
GM
71062000-07-24 Gerd Moellmann <gerd@gnu.org>
7107
7108 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
7109 parameters instead of using int parameters. Expect FN to accept
7110 EMACS_INT parameters.
7111 (display_echo_area, resize_echo_area_axactly, current_message)
7112 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
7113 with new argument list.
7114 (resize_mini_window_1): New callback function.
7115 (current_message_1, truncate_message_1, set_message_1): Change
52283633 7116 parameter lists to the new format expected by with_echo_area_buffer.
e024b101 7117
25c1a9ce
KH
71182000-07-24 Kenichi Handa <handa@etl.go.jp>
7119
7120 * fontset.c (fontset_ref): Remove INLINE declaration.
7121 (fontset_ref_via_base): Likewise.
7122 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
7123 to downcase.
7124
7f987ac0
EZ
71252000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
7126
7127 * msdos.c (IT_note_mouse_highlight): Process overlays in the
7128 correct order of priority. If help echo was found in an overlay,
7129 use that overlay as the object in which the help echo was found.
7130
e2db3069
MB
71312000-07-22 Miles Bader <miles@gnu.org>
7132
7133 * textprop.c (Fprevious_single_char_property_change): The initial
7134 property value should be from the position preceding POSITION, not
7135 following it.
7136
5e3203e4
EZ
71372000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
7138
7139 * coding.c (syms_of_coding): Doc fix for
7140 inhibit-iso-escape-detection.
7141
62145073
GM
71422000-07-21 Gerd Moellmann <gerd@gnu.org>
7143
c20aeb83
GM
7144 * xterm.c (note_mouse_highlight): Process overlays in the right
7145 order of priority.
34a7a267 7146
743934db
GM
7147 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
7148
7149 * xterm.c (note_mouse_highlight): If help-echo was found in an
52283633 7150 overlay, use that overlay as the object in which the help was found.
743934db 7151
d1dc7e43 7152 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 7153
62145073
GM
7154 * window.c (foreach_window): Instead of a fake variable argument
7155 list, take one USER_DATA argument.
7156 (foreach_window_1): Likewise, and call callback functions with two
7157 args, the window and USER_DATA.
7158 (struct check_window_data): New struct.
7159 (check_window_containing): Use it.
7160 (window_from_coordinates): Set up a struct check_window_data for
7161 foreach_window.
7162 (add_window_to_list, freeze_window_start): Change parameters
7163 according to new calling convention.
7164
7165 * window.h (foreach_window): Change prototype.
7166
7167 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
7168
71692000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
7170
7171 * xmenu.c (menu_help_callback): Call show_help_echo with
7172 additional arguments OBJECT and POS.
7173
11270583
KH
71742000-07-21 Kenichi Handa <handa@etl.go.jp>
7175
07b14857
KH
7176 * data.c (Faset): Allow storing any multibyte character in a
7177 string. Convert unibyte string to multibyte if necessary.
7178
11270583
KH
7179 * xfns.c (x_encode_text): New function.
7180 (x_set_name): Use x_encode_text.
7181 (x_set_title): Likewise.
7182
7183 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
7184
7185 * xterm.h (x_encode_text): Add prototype.
7186
bc75b4fd
DL
71872000-07-20 Dave Love <fx@gnu.org>
7188
7189 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
7190 xfree, not free.
7191
48c14970
EZ
71922000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
7193
7194 * msdos.c (help_echo_window): New variable.
7195 (syms_of_msdos): Initialize and staticpro it.
7196 (IT_note_mode_line_highlight): Set help_echo_window.
7197 (IT_note_mouse_highlight): Ditto.
7198 (dos_rawgetc): Store help_echo_window in the second event produced
7199 for HELP_EVENTs.
7200
7201 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
7202 Record the object that generated the help echo and the position of
7203 that object in help_echo_object and help_echo_pos. Record that
7204 some glyphs in a row are displayed in mouse-face.
7205 (IT_update_begin): Don't clear mouse highlight unless one of the
7206 enabled glyph rows is marked as being displayed in mouse-face.
7207 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
7208 and position recorded in help_echo_object and help_echo_pos to the
7209 event queue.
7210 (IT_menu_display): Accept a new argument PN: the pane number of
7211 the current menu pane. Record the pane number and the item
7212 number of the item which has associated help string.
7213 (XMenuActivate): Update the prototype for help_callback in
7214 function declaration. Call IT_menu_display with the current menu
7215 pane number as an additional argument. Call help_callback with
7216 two additional arguments: the pane number and the item number of
7217 the menu item associated with the help text.
7218 (help_echo_object, help_echo_pos): New variables.
7219 (syms_of_msdos): Initialize them and staticpro help_echo_object.
7220
7221 * msdos.h (XMenuActivate): Update prototype.
7222
4279296d
GM
72232000-07-19 Gerd Moellmann <gerd@gnu.org>
7224
47db06aa
GM
7225 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
7226 Add some more prototypes.
7227
7228 * xterm.c, xterm.h: Add some more prototypes.
7229
7230 * lisp.h (Fnext_single_char_property_change): Add prototype.
7231
7232 * dispnew.c (direct_output_for_insert): Remove confusing
7233 outer local variable mouse_face_overwritten_p.
7234 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
7235
4279296d
GM
7236 * alloc.c (allocate_string_data): Don't copy old string contents.
7237
670acd62
KH
72382000-07-19 Kenichi Handa <handa@etl.go.jp>
7239
7240 * coding.c (code_convert_region): Delete text properties before
7241 shrinking the conversion region.
7242
7cea38bc
GM
72432000-07-18 Gerd Moellmann <gerd@gnu.org>
7244
dc1cac59
GM
7245 * dispnew.c (update_text_area): Write the whole row if it
7246 has mouse-face in it.
7247
85a8aca9
GM
7248 * xfaces.c (face-alternative-font-family-alist): Remove
7249 DEFVAR_LISP; staticpro instead.
7250
34a7a267 7251 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
7252 new arguments.
7253
7254 * keyboard.c (show_help_echo): Add parameter WINDOW.
7255 (read_char): Call show_help_echo with window extracted from Lisp
7256 help event.
7257 (gen_help_event): Add parameter WINDOW.
7258
7259 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
7260
7261 * xterm.c (help_echo_window): New variable.
52283633 7262 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
7cea38bc
GM
7263 (XTread_socket): Pass help_echo_window to gen_help_event.
7264 (syms_of_xterm): Initialize and staticpro help_echo_window.
7265
f8276b77
DL
72662000-07-18 Dave Love <fx@gnu.org>
7267
52283633 7268 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
f8276b77 7269
088831a6
GM
72702000-07-18 Gerd Moellmann <gerd@gnu.org>
7271
3d6cd763
GM
7272 * alloc.c (allocate_string_data): If string had already data
7273 assigned, copy old contents to new string data.
7274
7275 * coding.c (syms_of_coding): Fix typo in spelling of variable
7276 `inhibit-iso-escape-detection'.
7277
088831a6
GM
7278 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
7279
7280 * Makefile.in: Add dependencies on dispextern.h.
7281 (alloca.o): Don't define malloc and define EMACS_FREE instead of
7282 `free'; both can conflict with system header files.
7283
bc8a8d55
KH
72842000-07-18 Kenichi Handa <handa@etl.go.jp>
7285
7286 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
7287 undefined.
7288
069f5950
DL
72892000-07-18 Dave Love <fx@gnu.org>
7290
7291 * window.c (Fwindow_list): Declare arg `window'.
7292
aa96c820
KH
72932000-07-18 Kenichi Handa <handa@etl.go.jp>
7294
7295 * coding.c (setup_coding_system): Don't override the explicitly
7296 specified designations.
7297
06be8d32
MB
72982000-07-15 Miles Bader <miles@gnu.org>
7299
7300 * editfns.c (char_property_eq, char_property_stickiness): Renamed
7301 from `text_property_eq' and `text_property_stickiness', respectively.
7302 (find_field, Fconstrain_to_field, char_property_eq)
7303 (char_property_stickiness): Changed to call char-property functions
7304 instead of text-property-only ones.
7305
7306 * textprop.c (Fnext_single_char_property_change): Made a subr (was
7307 `next_single_char_property_change'). Do more error checking, and
7308 cleanup limit behavior.
7309 (Fprevious_single_char_property_change): New function.
7310 (syms_of_textprop): Initialize new subrs.
7311
7312 * xdisp.c (display_prop_end, invisible_text_between_p):
7313 Call Fnext_single_char_property_change instead of
7314 next_single_char_property_change.
7315
3fddcdc3
JR
73162000-07-15 Jason Rumney <jasonr@gnu.org>
7317
7318 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
7319 after menu is finished with.
7320 (add_menu_item): Only consider wv->title as a menu title.
7321 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
7322
7323 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
7324 null title.
7325 (FONT_REGEXP): Remove unused macro, and its sub-components.
7326 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
7327
7328 * w32term.c (help_echo_object, help_echo_pos): New variables.
7329 (note_mode_line_highlight): Store additional information about the
7330 help-echo in help_echo_object and help_echo_pos. Check both
7331 `local-map' and `keymap' properties for changing the cursor
7332 (note_mouse_highlight): Store additional information about the
7333 help-echo in help_echo_object and help_echo_pos.
7334 (note_tool_bar_highlight): Set help_echo_object to nil and
7335 help_echo_pos to -1.
7336 (w32_read_socket): Use gen_help_event instead of filling
7337 input_events manually.
7338 (syms_of_w32term): Staticpro help_echo_object.
7339 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
52283633 7340 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
3fddcdc3
JR
7341 (x_clear_mouse_face): New function.
7342 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
7343 (x_update_window_begin): No need to turn off the mouse
7344 highlight here.
7345 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 7346 depending on whether they contain glyphs highlighted in mouse-face.
3fddcdc3
JR
7347 (x_fill_stretch_glyph_string): Consume runs of stretch
7348 glyphs instead of a single one.
7349 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
7350 with new argument list.
7351 (x_set_glyph_string_gc): Make sure the face's GC is valid.
7352 (x_append_glyph, x_append_composite_glyph)
7353 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
7354 changes in struct glyph starting 1999-12-27. See comments for
7355 xterm.c on 2000-07-05.
7356
178c5d9c
SS
73572000-07-14 Sam Steingold <sds@gnu.org>
7358
7359 * xfaces.c (realize_x_face): Fix the last patch:
7360 check `default_face' before dereferencing.
7361
6fe533f6
DL
73622000-07-14 Dave Love <fx@gnu.org>
7363
069f5950 7364 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 7365
dd7b81cf
KH
73662000-07-14 Kenichi Handa <handa@etl.go.jp>
7367
0693904a 7368 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 7369 default_face's fontset, not using the default fontset.
0693904a 7370
dd7b81cf
KH
7371 * coding.c (inhibit_iso_escape_detection): New variable.
7372 (syms_of_coding): Make it a Lisp variable.
7373 (detect_coding_iso2022): If inhibit_iso_escape_detection is
7374 nonzero, ignore ISO2022's escape sequence.
7375
d5aa31d8
GM
73762000-07-14 Gerd Moellmann <gerd@gnu.org>
7377
e5acf0ca
GM
7378 * alloca.c (malloc) [emacs]: Define as xmalloc.
7379
bd23a692
GM
7380 * xfns.c (Fx_show_tip): If frame parameters contain a position,
7381 use that instead of the mouse position. Add parameters DX and DY.
7382
7383 * dispextern.h (Fx_show_tip): Adjust number of parameters
7384 in prototype.
7385
9662da0b
GM
7386 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
7387 if HELP is a function, call it with OBJECT and POS as parameters
7388 to get the help to display.
7389 (gen_help_event, kbd_buffer_store_help_event): New functions.
7390 (kbd_buffer_get_event): Construct the Lisp help-event differently.
7391 (read_char): Call show_help_echo with new parameters.
7392
178c5d9c 7393 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
7394 Add prototypes.
7395
7396 * xterm.c (help_echo_object, help_echo_pos): New variables.
7397 (note_mode_line_highlight): Store additional information about the
7398 help-echo in help_echo_object and help_echo_pos. Check both
7399 `local-map' and `keymap' properties for changing the cursor
7400 (note_mouse_highlight): Store additional information about the
7401 help-echo in help_echo_object and help_echo_pos.
7402 (note_tool_bar_highlight): Set help_echo_object to nil and
7403 help_echo_pos to -1.
7404 (XTread_socket): Use gen_help_event instead of filling
7405 input_events manually.
7406 (syms_of_xterm): Staticpro help_echo_object.
7407
7408 * xmenu.c (menu_highlight_callback): Use
7409 kbd_buffer_store_help_event instead of setting up and input_event
7410 structure manually.
7411
7412 * xdisp.c (eval_form): GCPRO argument sexpr.
7413 (call_function): New function.
7414 (handle_single_display_prop): Use call_function and FUNCTIONP
7415 instead of checking whether if font_height is a symbol and
7416 using eval_form.
7417
7418 * eval.c (internal_condition_case_2): New function.
7419
7420 * lisp.h (FUNCTIONP): New macro.
7421 (internal_condition_case_2, call_function): Add prototypes.
7422
d5aa31d8
GM
7423 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
7424 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
7425 Always set `arg' member of input_events.
7426 (construct_menu_click): Unused function removed.
7427
7428 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
7429
7430 * w32term.c (construct_mouse_click, construct_mouse_wheel)
7431 (construct_drag_n_drop, x_scroll_bar_handle_click)
7432 (w32_read_socket): Always set `arg' member of input_events.
7433
7434 * keyboard.c (show_help_echo): Use eval_form. Add comment.
7435
7436 * lisp.h (eval_form): Add prototype.
7437
7438 * xdisp.c (eval_form): Make it externally visible.
7439
0f1a9b23
GM
74402000-07-13 Gerd Moellmann <gerd@gnu.org>
7441
7442 * xterm.c (x_handle_tool_bar_click): Store the frame in the
7443 frame_or_window slot of TOOL_BAR_EVENT input events instead of
7444 consing. For prefix events, store the frame in the `arg' slot of
7445 the event, otherwise store the key there.
7446 (XTread_socket): Instead of consing, use the frame_or_window slot
52283633 7447 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
0f1a9b23
GM
7448
7449 * xmenu.c (menu_highlight_callback): Store help string in the
7450 `arg' member of the input event; don't cons.
7451 (menubar_selection_callback): Use the `arg' slot of input events
7452 to queue additional information, instead of consing.
7453
7454 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
7455
7456 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
7457 TOOL_BAR_EVENTs.
7458 (w32_read_socket): Adapt to changes in HELP_EVENTs.
7459
7460 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
7461 input events to queue additional information, instead of consing.
7462
7463 * keyboard.c (kbd_buffer_gcpro): Renamed from
7464 kbd_buffer_frame_or_window. Now used for all Lisp objects
7465 referenced from the input queue.
7466 (kbd_buffer_store_event): Always use structure assignment for
7467 copying input events. Record all Lisp objects referenced from
7468 events in kbd_buffer_gcpro.
7469 (kbd_buffer_get_event): Construct Lisp `help-echo' events
7470 differently from input events. Test for prefix menu_bar_events
7471 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
7472 event in kbd_buffer_gcpro to nil.
7473 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
7474 frame_or_window is equal to its arg member as prefix events.
7475 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
7476 used by an input event to nil.
7477 (init_keyboard): Use two times the size of the input queue
7478 for kbd_buffer_gcpro.
7479 (syms_of_keyboard): Likewise.
7480
52283633
SM
7481 * emacs.c (handle_USR2_signal, handle_USR1_signal):
7482 Use USER_SIGNAL_EVENT.
0f1a9b23
GM
7483
7484 * termhooks.h (struct input_event): Add member `arg'.
7485 (MENU_BAR_EVENT): Renamed from menu_bar_event.
7486 (USER_SIGNAL_EVENT): Renamed from user_signal.
7487
7488 * xfaces.c (ASET): Remove definition.
7489
7490 * lisp.h (AREF, ASET, ASIZE): New macros.
7491
7492 * fontset.c (AREF, ASIZE): Remove definitions.
7493
7494 * fns.c (AREF): Remove definition.
178c5d9c 7495
0f1a9b23
GM
7496 * composite.c (AREF): Remove definition.
7497
712eaef2
GM
74982000-07-12 Gerd Moellmann <gerd@gnu.org>
7499
d8ee7803
GM
7500 * dispnew.c (redraw_overlapped_rows): Add missing local.
7501 (scrolling_window): Remove debug code.
7502
712eaef2
GM
7503 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
7504 Before scrolling, turn off a mouse-highlight in the window
7505 being scrolled.
7506
7507 * xterm.c (x_update_window_end): Add parameter
7508 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
7509 redisplay in XTframe_up_to_date.
7510 (x_clear_mouse_face): New function.
7511 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
7512
7513 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
7514 current glyph row.
7515 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
7516 it when any row is written to that contains glyphs highlighted in
7517 mouse-face.
7518 (update_window): Call the window update end hook with new
7519 parameter MOUSE_FACE_OVERWRITTEN_P.
7520 (direct_output_for_insert): Give up if row contains mouse-face.
7521
7522 * dispextern.h (struct redisplay_interface): Add parameter
7523 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
7524 (clear_mouse_face): New function pointer member.
7525
02010917
SM
75262000-07-11 Stefan Monnier <monnier@cs.yale.edu>
7527
7528 * syntax.c (back_comment): Use one switch rather than a few `if's.
7529 Obey open_paren_in_column_0_is_defun_start.
7530 When reverting to the `slow' method, try to nicely handle the case
7531 of nested comments by checking that the comment-starter we found
7532 does indeed match the comment-ender.
7533 (scan_sexps_forward, scan_sexps_forward):
7534 Ignore excessive opening parenthesis rather than throwing an error.
7535
d76c03ea
GM
75362000-07-11 Gerd Moellmann <gerd@gnu.org>
7537
7538 * doc.c (Fsubstitute_command_keys): Handle case that a GC
7539 in Fwhere_is_internal or get_keymap_1 relocates string contents.
7540
7541 * dispnew.c (direct_output_forward_char): Give up if currently
7542 displaying a message instead of the minibuffer contents.
7543
7544 * xterm.c (x_update_window_begin): No need to turn off the mouse
7545 highlight here.
7546 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 7547 depending on whether they contain glyphs highlighted in mouse-face.
d76c03ea
GM
7548
7549 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
7550 compare the mouse_face_p flags of both rows.
7551
7552 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
7553
d55ead18
EZ
75542000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
7555
7556 * keyboard.c (show_help_echo): Accept additional parameter
7557 ok_to_overwrite_keystroke_echo.
7558 (read_char): Call show_help_echo with a zero
7559 ok_to_overwrite_keystroke_echo argument.
52283633 7560 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
d55ead18
EZ
7561 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
7562 ok_to_overwrite_keystroke_echo argument.
7563 * w32menu.c (w32_menu_display_help): Call show_help_echo with
7564 non-zero ok_to_overwrite_keystroke_echo argument.
7565
df75b1a3
GM
75662000-07-10 Gerd Moellmann <gerd@gnu.org>
7567
4b92c49a
GM
7568 * xdisp.c (try_window_id): If changes are all below what is
7569 displayed in the window, and point is in the window, we still
7570 might have to find point on the display.
7571
7572 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
7573 glyphs instead of a single one.
7574 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
7575 with new argument list.
7576 (x_set_glyph_string_gc): Make sure the face's GC is valid.
7577
df75b1a3
GM
7578 * keymap.c (get_keymap_1): Add comment that this function can GC.
7579 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
7580 comment that functions can GC.
7581 (Fset_keymap_parent): GCPRO arg KEYMAP.
7582
4314cf3e
EZ
75832000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
7584
7585 * msdos.c (XMenuActivate): After exiting the menu, restore the
7586 echo area message and erase it.
7587
ab49ce15
KH
75882000-07-10 Kenichi Handa <handa@etl.go.jp>
7589
7590 * fontset.c (Ffontset_info): Make the return value more compatible
7591 with that of Emacs 20.
7592
090a072f
GM
75932000-07-07 Gerd Moellmann <gerd@gnu.org>
7594
7595 * eval.c (Fsignal): Handle case that backtrace_list is null.
7596
f92de4a6
KH
75972000-07-07 Kenichi Handa <handa@etl.go.jp>
7598
7599 * ccl.c (Fccl_execute): Typo fixed.
7600
dd8888a1
GM
76012000-07-06 Gerd Moellmann <gerd@gnu.org>
7602
e5c81191 7603 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 7604
dd8888a1
GM
7605 * window.c (Fwindow_list): Reverse list at the end.
7606 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
7607 means allow windows on OWINDOW's frame, only.
7608 (window_loop): Simplified; use Fwindow_list.
7609
7610 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
7611
485266d0
GM
76122000-07-05 Gerd Moellmann <gerd@gnu.org>
7613
7614 * xterm.c (XTread_socket): Increment handling_signal at the start,
7615 decrement it at the end.
7616
7617 * eval.c (handling_signal): New variable.
7618 (Fsignal): Abort if handling_signal is non-zero.
7619
7620 * lisp.h (handling_signal): External declaration.
178c5d9c 7621
485266d0
GM
7622 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
7623
80fcd514
KR
76242000-07-05 Ken Raeburn <raeburn@gnu.org>
7625
7626 Sound support for NetBSD through "Linux emulation" support:
7627 * config.in (HAVE_SOUNDCARD_H): Undef.
7628 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
7629 * Makefile.in (LIBSOUND): New variable.
7630 (LIBES): Include it.
52283633
SM
7631 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
7632 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
80fcd514
KR
7633 (vox_open): Use DEFAULT_SOUND_DEVICE.
7634 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
7635
d5c5cddd
GM
76362000-07-05 Gerd Moellmann <gerd@gnu.org>
7637
7638 * print.c (print_error_message): If Vsignaling_function is set,
7639 show it in *Messages*.
7640
7641 * lisp.h (Vsignaling_function): External declaration.
7642
7643 * eval.c (Vsignaling_function): New variable.
7644 (Fsignal): Compute it.
7645 (syms_of_eval): Staticpro it.
7646
65171e3a
DL
76472000-07-05 Dave Love <fx@gnu.org>
7648
7649 * syswait.h: Use the autoconf recommended approach. Old code
7650 #if'd out in case we need to revert.
7651
178c5d9c 7652 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 7653
e2c46326
AI
76542000-07-05 Andrew Innes <andrewi@gnu.org>
7655
7656 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
7657 when non-NULL instead of __morecore, to take account of buffer
7658 memory. This also solves a problem with spurious memory warnings
7659 on Windows.
7660
7661 * ralloc.c: Make real_morecore non-static.
7662
7663 * eval.c (internal_condition_case): Comment out abort if
7664 interrupt_input_blocked is not zero.
7665
7666 * makefile.nt: Add support for `bootstrap' and related targets.
7667 Include minimal debug info in emacs.exe in release build.
7668 Remove all dependencies on lisp.h, and fixup some others.
7669
7670 * w32.c (init_environment): Install code from 20.7 for providing
7671 default values for environment variables, based on the
7672 executable's own location.
52283633 7673 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
e2c46326
AI
7674 (sys_socket): Install socket inheritance bug fix from 20.7.
7675
7676 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
7677 here via blockinput.h).
7678
a027a91b
SM
76792000-07-05 Stefan Monnier <monnier@cs.yale.edu>
7680
e4b31601
SM
7681 * w32menu.c (w32_menu_display_help):
7682 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
7683
7684 * keyboard.h (show_help_echo): Declare.
7685
7686 * keyboard.c (show_help_echo): New function, extracted from read_char.
7687 Feval its `msg' argument if it's a cons cell.
7688 (read_char): Use it.
4cf8d9d5 7689 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 7690
178c5d9c 7691 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 7692 (note_tool_bar_highlight, XTread_socket):
178c5d9c 7693 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
7694 (dos_rawgetc):
7695 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
7696 (note_tool_bar_highlight, w32_read_socket):
7697 Do not gratuitously ignore non-string `help-echo' properties.
7698
88d75730
GM
76992000-07-05 Gerd Moellmann <gerd@gnu.org>
7700
969f7e79
GM
7701 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
7702
71201b00
GM
7703 * window.c (delete_all_subwindows): Reset Vwindow_list.
7704
88d75730
GM
7705 * xterm.c (x_append_glyph, x_append_composite_glyph)
7706 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
7707 changes in struct glyph starting 1999-12-27. Some bit-fields of
7708 struct glyph were not set, which made glyphs unequal when compared
7709 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
7710 effects were the result. This also depended on the contents of
7711 memory returned by xmalloc. If flickering happens again, activate
7712 the code in clear_glyph_row that's in #if 0. If the flickering is
52283633 7713 gone with that, chances are that it is caused by something similar.
88d75730
GM
7714
7715 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 7716
88d75730
GM
7717 * dispextern.h: Add some comments.
7718
7719 * window.c (add_window_to_list): Add parameter LIST.
7720 (window_list): Order list so that, for each frame, windows are
7721 in canonical order, and so that frames appear in the list in
7722 the order given by Vframe_list.
7723 (next_window): Reverse the handling of NEXT_P.
7724
53654733
GM
77252000-07-04 Gerd Moellmann <gerd@gnu.org>
7726
87efd256
GM
7727 * window.c (Vwindow_list): New variable.
7728 (make_window, delete_window): Set Vwindow_list to nil.
7729 (check_window_containing): New function.
7730 (window_from_coordinates): Rewritten.
7731 (add_window_to_list, window_list, candidate_window_p)
7732 (decode_next_window_args, next_window): New functions.
52283633 7733 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
87efd256
GM
7734 (Fwindow_list): New function.
7735 (Fother_window): Cleaned up.
7736 (foreach_window): Add a longer "variable argument list". Let
7737 callback function return 0 to indicate that cycling over windows
7738 should stop.
7739 (foreach_window_1): Likewise.
7740 (freeze_window_start): Return int.
7741 (init_window): New function.
7742 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
7743
7744 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
7745 input_event with bzero.
7746 (main): Call init_window.
7747
53654733
GM
7748 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
7749 a menu filter.
7750
4a8c194f
KH
77512000-07-04 Kenichi Handa <handa@etl.go.jp>
7752
7753 * composite.h (make_composition_value_copy): Extern it.
7754
7755 * composite.c (make_composition_value_copy): New function.
7756
7757 * editfns.c (Fformat): While copying text properties, make each
7758 composition property value a copy.
7759
7760 * fns.c (concat): While copying text properties, make each
7761 composition property value a copy.
7762
831a6cb0
GM
77632000-07-03 Gerd Moellmann <gerd@gnu.org>
7764
2f516940
GM
7765 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
7766
178c5d9c 7767 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
7768 marked already.
7769
831a6cb0
GM
7770 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
7771 include those frames as candidates which have their focus
7772 redirected to the minibuffer frame.
7773
d9c4f922
SM
77742000-07-03 Stefan Monnier <monnier@cs.yale.edu>
7775
7776 * fns.c (Fputhash): Return `value' rather than nil.
7777
3780bc22
GM
77782000-06-30 Gerd Moellmann <gerd@gnu.org>
7779
97d176db
GM
7780 * frame.c (next_frame): Don't check focus redirection in case
7781 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
7782 unless their focus is redirected, which contradicts the
7783 specification of next-frame, and leads to infinite loops in
7784 certain situations when cycling through windows with next-window.
7785
dca9961d
KH
77862000-06-30 Kenichi Handa <handa@etl.go.jp>
7787
7788 * coding.c (code_convert_region): Even if the length of text is
7789 zero, try to convert it if coding->type is coding_type_ccl.
7790 (decode_coding_string, encode_coding_string): Likewise.
7791
d5483ab1
GM
77922000-06-28 Gerd Moellmann <gerd@gnu.org>
7793
af5c25e1 7794 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 7795 the display if windows_or_buffers_changed.
af5c25e1
GM
7796
7797 * dispnew.c (struct row_entry): New structure.
7798 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
7799 (row_table_size, old_lines, new_lines, old_lines_size)
7800 (new_lines_size, run_pool, runs_size, runs): New variables.
7801 (add_row_entry): New function.
7802 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 7803 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
7804 holding them in local variables. Use a larger hash table whose
7805 size depends on glyph matrix sizes. Don't use bzero to clear the
7806 hash table; instead, clear used slots only.
7807
7808 * fns.c (next_almost_prime): Make it externally visible.
7809
7810 * lisp.h (next_almost_prime): Add prototype.
7811
d5483ab1
GM
7812 * s/isc4-0.h (sigunblock): Define.
7813
7814 * s/sco5.h (sigunblock): Define.
7815
93e40f40
DL
78162000-06-27 Dave Love <fx@gnu.org>
7817
7818 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
7819 (moved to osf5-0.h).
7820 [!NOT_C_CODE]: Protect string.h stuff.
7821
7822 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
7823 (sys_siglist, NSIG): Definitions moved here from osf1.h.
7824
3c4b7685
GM
78252000-06-27 Gerd Moellmann <gerd@gnu.org>
7826
97d176db 7827 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
7828 below the last line from the needed window height.
7829
32cad0aa
SM
78302000-06-26 Stefan Monnier <monnier@cs.yale.edu>
7831
7832 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
7833 (Fwidget_get): Use it.
7834 (syms_of_fns): Defsubr it.
7835
2c69ced2
GM
78362000-06-26 Gerd Moellmann <gerd@gnu.org>
7837
178c5d9c 7838 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
7839 display info for XIM.
7840 (xim_open_dpy): Likewise.
7841 (xim_close_dpy): Don't free the display info's XIM.
7842
7843 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
7844
7845 * config.in (USE_XIM): New define.
7846
3fc720e4
GM
7847 * keymap.c (get_keyelt): For menu-items containing a `:filter
7848 FILTER', apply FILTER to the menu-item's definition to get the
7849 real definition to use.
7850
7851 * lisp.h (QCfilter): External declaration.
7852
2c69ced2
GM
7853 * xfns.c (Fimage_size): New function.
7854 (syms_of_xfns): Defsubr it.
7855
f978b2a2
AS
78562000-06-26 Andreas Schwab <schwab@suse.de>
7857
7858 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
7859 Fstring_as_unibyte.
7860
94cc7892
DL
78612000-06-25 Dave Love <fx@gnu.org>
7862
52283633 7863 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
94cc7892
DL
7864
7865 * Makefile.in (blockinput.h): Depend on atimer.h.
7866 (atimer.h): Depend on systime.h.
7867
52283633 7868 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
94cc7892 7869
52283633 7870 * atimer.h: Protect against multiple inclusion. Include systime.h.
94cc7892
DL
7871
7872 * lisp.h (swap_in_global_binding): Declare.
7873
b8c24556
KR
78742000-06-24 Ken Raeburn <raeburn@gnu.org>
7875
7876 * process.c (Fopen_network_stream): Turn off atimers for duration
7877 of call to connect. (Patch from Gerd.)
7878
8cf8560b
DL
78792000-06-23 Dave Love <fx@gnu.org>
7880
511c7541
DL
7881 * ralloc.c: Maybe include unistd.h
7882
8cf8560b
DL
7883 * emacs.c (setgrp): Undefine before defining.
7884 (malloc_warning, set_time_zone_rule, index): Prototype.
7885
7886 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
7887 HAVE_STRUCT_TIMEZONE.
7888
7889 * s/osf1.h: Move string.h hack here from alpha.h and make it
7890 conditional.
7891 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
7892 _XOPEN_SOURCE.
7893 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
7894 (SOCKLEN_TYPE): Don't define.
7895
7896 * m/alpha.h: Remove string.h hack.
7897
7898 * s/osf5-0.h: New file.
7899
7900 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
7901 include time.h, done by systime.h.
7902 [__FreeBSD__]: Remove redundant includes.
7903
3fc720e4 7904 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
7905 (delete_temp_file): Return Qnil to avoid warning.
7906
7907 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
7908
7909 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
7910 HAVE_X_WINDOWS.
7911
7912 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
7913
7914 * composite.h (compose_text): Declare.
7915
7916 * xterm.c: Don't include sys/types.h unconditionally. Don't
7917 protect its inclusion with !USG (following xmenu.c).
7918
ea055732
GM
79192000-06-23 Gerd Moellmann <gerd@gnu.org>
7920
7921 * xfns.c (x_create_tip_frame): Initialize frame's colors like
7922 in x_create_frame.
7923
74b01b80
EZ
79242000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
7925
7926 * coding.c (decode_eol_post_ccl): Special handling for undecided
7927 and inconsistent EOL types.
7928
64f3a166
GM
79292000-06-22 Gerd Moellmann <gerd@gnu.org>
7930
16cf31f7
GM
7931 * xrdb.c (x_load_resources): Add default resource for scroll bar's
7932 trough color and main window's background color.
7933
52283633 7934 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
16cf31f7
GM
7935
7936 * xterm.h (Xt_app_con): External declaration.
7937
7938 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 7939
486a103d
GM
7940 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
7941
64f3a166
GM
7942 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
7943 (handle_invisible_prop): Record the start of invisible text in
7944 it->add_overlay_start.
7945 (struct overlay_entry): Add member `overlay'.
7946 (handle_overlay_change): Simplify.
7947 (next_overlay_string): After having processed overlay strings at the
7948 end of the buffer, record that fact in
7949 it->overlay_strings_at_end_processed_p.
7950 (compare_overlay_entries): If before- and after-strings come
7951 from the same overlay, let before-strings come first.
7952 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
7953 (load_overlay_strings): Take it->add_overlay_start into account
7954 when adding overlay strings.
7955
7956 * dispextern.h (struct it): Add member add_overlay_start.
7957
bb746ea6
DL
79582000-06-22 Dave Love <fx@gnu.org>
7959
7960 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
7961
7962 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
7963
a8f573f3
KH
79642000-06-22 Kenichi Handa <handa@etl.go.jp>
7965
7966 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
7967 is greater than 0.
7968
9f2bbc92
DL
79692000-06-21 Dave Love <fx@gnu.org>
7970
178c5d9c 7971 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 7972
3ee5041c
SM
79732000-06-21 Stefan Monnier <monnier@cs.yale.edu>
7974
7975 * syntax.c (back_comment): Simplify string-parity counting (with
7976 the added benefit of handling multiple string-styles as long as
7977 they are not intertwined).
7978 Jump to the slow code as soon as a comment starter is found in
7979 a "string_lossage" position. Fixes the case: " /* " /* " */.
7980
4c343001
DL
79812000-06-21 Dave Love <fx@gnu.org>
7982
7983 * Makefile.in: Use GETLOADAVG_LIBS.
7984
7985 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
7986 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
7987
e6365855
SM
79882000-06-20 Stefan Monnier <monnier@cs.yale.edu>
7989
7990 * syntax.c (describe_syntax): Recognize the `n'estable bit.
7991 (Fforward_comment, scan_lists):
7992 Check the comstyle of single-char comment-starters.
7993 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
7994 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
7995 Check the comstyle of single-char comment-starters.
7996 Clarify control-flow around the Scomment case.
e6365855 7997
5700d2cc
DL
79982000-06-20 Dave Love <fx@gnu.org>
7999
d355bd8a
SM
8000 * fns.c (make_hash_table, maybe_resize_hash_table):
8001 Cast arg of next_almost_prime.
5700d2cc 8002
178c5d9c 8003 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
8004
8005 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
8006 and unistd.h.
8007
4a27bdfb
GM
80082000-06-20 Gerd Moellmann <gerd@gnu.org>
8009
a61d762c 8010 * keyboard.c (adjust_point_for_property): Check if display
52283633 8011 property should be treated as intangible by looking at its value.
a61d762c 8012
178c5d9c 8013 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
8014 (display_prop_intangible_p): New functions.
8015
8016 * dispextern.h (display_prop_intangible_p): Add prototype.
8017
8018 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 8019
4a27bdfb
GM
8020 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
8021 argument to sigprocmask.
8022
8023 * s/sco5.h (sigblock): Redefined to pass a pointer as second
8024 argument to sigprocmask.
8025
8026 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
8027 sigprocmask_set, and pass a pointer to it to sigprocmask.
8028
8029 * sysdep.c (sigprocmask_set): New variable.
8030
8031 * fileio.c (make_temp_name): Don't use `%s' in string passed to
8032 report_file_error.
8033
427ec082
SS
80342000-06-20 Sam Steingold <sds@gnu.org>
8035
8036 * xrdb.c: Don't declare xmalloc, xrealloc.
8037
8972fe79 80382000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
8039
8040 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
8041 (re_comp): Cast gettext return value to avoid complaints when
8042 !HAVE_LIBINTL.
8043
074b6efe
DL
80442000-06-20 Dave Love <fx@gnu.org>
8045
52283633 8046 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
f85c008a 8047
5700d2cc 8048 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 8049
d355bd8a 8050 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
8051
8052 * m/alpha.h: Don't declare xmalloc, xrealloc.
8053
0af4f205
DL
8054 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
8055
8056 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
8057
8058 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
8059
8060 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
8061 HAVE_GETWD.
8062
074b6efe
DL
8063 * keyboard.h (poll_for_input_1): Declare.
8064
8065 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
8066
8067 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
8068
8069 * doprnt.c: Don't declare xmalloc, xrealloc.
8070
8071 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
8072 (getenv, ctime, getwd): Removed.
8073 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
8074
8075 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
8076 x_set_tool_bar_lines.
8077
8078 * config.in: Add HAVE_GETWD. Move some definitions above
8079 machine/system includes.
8080
68a5e97b
KH
80812000-06-20 Kenichi Handa <handa@etl.go.jp>
8082
95417e1e
KH
8083 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
8084
68a5e97b
KH
8085 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
8086 contain information about ENCODING.
8087
8088 * fontset.c (FONTSET_ASCII): Use the first element of char table
8089 for an ASCII font, not defalt slot.
8090 (fontset_ref_via_base): If FONTSET doesn't contain information for
8091 C, try the default fontset.
8092 (make_fontset): Don't copy the default fontset.
8093 (fontset_font_pattern): Likewise.
8094 (accumulate_font_info): If ELT is nil, use the corresponding
8095 element in the default fontset.
8096
3b4fa1b2
DL
80972000-06-19 Dave Love <fx@gnu.org>
8098
943e731c
DL
8099 * syntax.c (Fparse_partial_sexp): Doc fix.
8100
8101 * regex.h: Test PROTOTYPES as well as __STDC__.
8102
3b4fa1b2
DL
8103 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
8104 errno, strerror. Put text after #endif in comment.
8105
52283633 8106 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
3b4fa1b2
DL
8107
8108 * xterm.c (x_frame_of_widget): Likewise.
8109
cdf0357b
GM
81102000-06-19 Gerd Moellmann <gerd@gnu.org>
8111
8112 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
8113 to Vfundamental_mode_abbrev_table.
8114
8115 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
8116 bogus objects are marked. This slows down GC by ~80 percent, but
8117 it might be worth trying when debugging GC-related problems.
8118 This feature requires conservative stack marking to be enabled.
8119
8120 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
8121 returns XLookupChars, reset `modifiers' to zero.
8122
998e9f8c
DL
81232000-06-19 Dave Love <fx@gnu.org>
8124
8125 * mktime.c: Unprotoized.
8126
18e21ce8 81272000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
8128
8129 * data.c (set_internal): If variable is frame-local,
8130 store the new value immediately into the frame parameter alist.
8131
140c4ac6
KR
81322000-06-19 Ken Raeburn <raeburn@gnu.org>
8133
14358466
KR
8134 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
8135 in the custom handler pointer.
8136
140c4ac6
KR
8137 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
8138 value, or checks for CHAR_META can fail when Lisp_Object is a
8139 union type.
8140 * keymap.c (get_keyelt): Likewise.
8141
10d7bf84
KH
81422000-06-19 Kenichi Handa <handa@etl.go.jp>
8143
8144 * ccl.h (struct ccl_program): New member eol_type.
8145 (struct ccl_spec): New member cr_carryover.
8146
8147 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
8148 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
8149
8150 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
8151 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
8152 (decode_eol_post_ccl): New function.
8153 (decode_coding): Don't detect EOL format here for CCL based coding
8154 systems.
8155 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
8156 decode_eol_post_ccl after running the CCL program.
8157 (code_convert_region): Don't detect EOL format here for CCL based
8158 coding systems.
8159 (decode_coding_string): Likewise.
8160
52e386c2
KR
81612000-06-18 Ken Raeburn <raeburn@gnu.org>
8162
8163 * charset.c (update_charset_table): Use XINT on "iso_final_char"
8164 when treating it as an integer.
8165
8166 * coding.h (encode_coding_string): Declare.
8167
8168 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
8169 it as an integer.
8170
8171 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
8172 "xkeymap" to avoid shadowing the "enum map_type" value that needs
8173 to be passed to get_local_map.
8174
8175 * sound.c (Fplay_sound): Don't call make_number on
8176 Frun_hook_with_args count argument.
8177
8178 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
8179 for lisp objects in X event structure data field, when lisp
8180 objects are represented with unions.
8181 (x_scroll_bar_to_input_event): Ditto.
8182
b357b9d4
KR
81832000-06-16 Ken Raeburn <raeburn@gnu.org>
8184
8185 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
8186 termination of string. Fix sense of test whether
8187 Vline_number_display_limit is an integer.
b357b9d4 8188
a871441d
GM
81892000-06-16 Gerd Moellmann <gerd@gnu.org>
8190
a9021acd
GM
8191 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
8192 only if HAVE_X_WINDOWS.
8193
6344985d
GM
8194 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
8195 of titles.
8196
427ec082 8197 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
8198 out of bounds.
8199
228b083e
EZ
82002000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
8201
8202 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
8203 of its headers.
8204
c25b53a2
KH
82052000-06-15 Kenichi Handa <handa@etl.go.jp>
8206
8207 * coding.c (decode_coding_emacs_mule): Always set src_base at the
8208 start of the while loop.
8209
a6981b11
GM
82102000-06-15 Gerd Moellmann <gerd@gnu.org>
8211
e9924e52
GM
8212 * atimer.c (alarm_signal_handler): Add forward declaration.
8213
a6981b11
GM
8214 * data.c (set_internal): Remove debug code.
8215
25fa6deb
GM
82162000-06-14 Gerd Moellmann <gerd@gnu.org>
8217
dce6b995
GM
8218 * Makefile.in (bootstrap-temacs): Add `-I../src'.
8219
9f817ea4
GM
8220 * unexec.c (toplevel) [COFF]: Include coff.h.
8221
8222 * s/lynxos.h: New file.
8223
8224 * keymap.c (Fsingle_key_description): Enclose function key and
8225 event symbol names in angle brackets.
8226
8a4e3c0c
GM
8227 * xdisp.c (setup_echo_area_for_printing): Call
8228 message_log_maybe_newline if message_buf_print is not set.
8229
8230 * print.c (printchar, strout): Don't check message_buf_print
427ec082 8231 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
8232 function does something useful even when message_buf_print is
8233 already set.
8234
52283633
SM
8235 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
8236 New variables.
25fa6deb
GM
8237 (ensure_echo_area_buffers): Initialize echo buffer's
8238 truncate lines setting to nil.
8239 (with_echo_area_buffer): Don't set the echo buffer's truncate
8240 lines setting here.
8a4e3c0c 8241 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
8242 of message_truncate_lines.
8243 (resize_mini_window): Handle case that lines are truncated.
52283633
SM
8244 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
8245 DEFVAR_BOOL message-truncate-lines.
25fa6deb
GM
8246
8247 * keyboard.c (read_char): Bind message-truncate-lines to t
8248 while displaying a help-echo.
8249
8250 * lisp.h (Qmessage_truncate_lines): External declaration.
8251
163dcff3
GM
82522000-06-13 Gerd Moellmann <gerd@gnu.org>
8253
1681ead6
GM
8254 * xdisp.c (Vline_number_display_limit): Renamed from
8255 line_number_display_limit.
8256 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
8257 Extend documentation string. Initialize
8258 Vline_number_display_limit to nil meaning no limit.
8259 (decode_mode_spec): Use Vline_number_display_limit with its new
8260 meaning.
8261
163dcff3
GM
8262 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
8263
18e21ce8 82642000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
8265
8266 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 8267
163dcff3
GM
8268 * xfns.c (x_set_frame_parameters): Comment fix.
8269
8270 * frame.c (store_frame_param): Call swap_in_global_binding if the
8271 variable's current binding was chosen based on this frame.
8272
8273 * data.c (swap_in_global_binding): New function.
8274
a704139d
EZ
82752000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
8276
8277 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
8278 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
8279
9b6610db
EZ
82802000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
8281
8282 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
8283
c68833d2
JR
82842000-06-12 Jason Rumney <jasonr@gnu.org>
8285
8286 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
8287
8288 * w32.h (EMACS_W32_H): Renamed from _NT_H_
8289
8290 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
8291
8292 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
8293
ed1056b3
GM
82942000-06-12 Gerd Moellmann <gerd@gnu.org>
8295
8296 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
8297 (syms_of_xfaces): Defsubr Sdump_colors.
8298 (x_free_colors): Don't treat b&w specially on default visual.
8299 (x_free_dpy_colors): New function.
8300 (free_face_colors): Don't check visual class; it's done
8301 in x_free_colors.
8302
8303 * xterm.c (x_frame_of_widget): New function.
8304 (x_alloc_nearest_color_for_widget): Use it.
8305 (x_copy_dpy_color): New function.
8306 (x_destroy_window): Free various colors.
8307
5050a2ef
KH
83082000-06-12 Kenichi Handa <handa@etl.go.jp>
8309
8310 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
8311
8312 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
8313
8314 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
8315
8316 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
8317
8318 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
8319
fb1b041d
DL
83202000-06-11 Dave Love <fx@gnu.org>
8321
8322 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
8323
ff96b5f4
EZ
83242000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
8325
8326 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
8327
db8eeecd
GM
83282000-06-11 Gerd Moellmann <gerd@gnu.org>
8329
ed1056b3 8330 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
8331 to `XEvent *'.
8332
49b71c5f
KH
83332000-06-10 Kenichi Handa <handa@etl.go.jp>
8334
c479bd55
KH
8335 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
8336 (regex_compile): Fix the code for handling the case of single byte
8337 char and multibyte char being mixed in a range within [...].
8338
ff6a65c2
KH
8339 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
8340 and dst_multibyte members of coding.
8341
49b71c5f
KH
8342 * charset.c (update_charset_table): Update the table
8343 bytes_by_char_head.
8344 (init_charset_once): Initialize elements of bytes_by_char_head to
8345 1 except for leading codes for private charases.
8346
8347 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
52283633 8348 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
49b71c5f 8349
9e80b57d
KR
83502000-06-09 Ken Raeburn <raeburn@gnu.org>
8351
8352 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
8353 access the data it doesn't point to.
8354
f83fe4b4
GM
83552000-06-08 Gerd Moellmann <gerd@gnu.org>
8356
8357 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 8358 will be translated to a switch-frame event when reading the
f83fe4b4
GM
8359 event queue. This is necessary because Emacs otherwise won't
8360 perform a switch-frame to a new frame until some other event, for
8361 example a keystroke event, forces it to do so. This has various
8362 effects, one visible being that the cursor of a frame created with
8363 C-x 5 2 or switched to with a window manager key binding like
8364 A-TAB stays hollow because selected_window isn't on the newly
8365 focused frame until the switch-frame is performed.
8366
8367 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
8368 generating a switch-frame event if necessary.
8369
8370 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
8371
8372 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
8373 it's an integer.
8374
0890801b
KH
83752000-06-08 Kenichi Handa <handa@etl.go.jp>
8376
52283633 8377 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
0890801b 8378
173cbca8
GM
83792000-06-07 Gerd Moellmann <gerd@gnu.org>
8380
3091c2a6
GM
8381 * window.c (displayed_window_lines): Take empty lines at
8382 the bottom of a window into account.
427ec082 8383
f38952fe
GM
8384 * window.c (displayed_window_lines): New function.
8385 (Fmove_to_window_line): Use displayed_window_lines to determine
8386 the number of lines to move, instead of using the window's height.
8387
8388 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
8389 to stop reading, even if the form read sets point to a different
8390 value when evaluated.
8391
427ec082 8392 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
8393 put the cursor.
8394
6ba6c818
KH
83952000-06-07 Kenichi Handa <handa@etl.go.jp>
8396
8397 * fileio.c (e_write): Free composition data if stored in
8398 coding->cmp_data.
8399
5f1aea9a
GM
84002000-06-06 Gerd Moellmann <gerd@gnu.org>
8401
666852af
GM
8402 * xdisp.c (display_line): Set row's and iterator's
8403 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
8404 Set cursor even if row ends in the middle of a character.
8405 (dump_glyph_row): Print values of new flags.
8406 (redisplay_window) <cursor movement in unchanged window>: When
8407 point has been moved forward, and PT is at the end of the cursor
8408 row, don't place the cursor in the next row if the cursor row ends
8409 in the middle of a character or at ZV.
8410
8411 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
8412 (struct glyph_row): Add starts_in_middle_of_char_p and
8413 ends_in_middle_of_char_p.
8414 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
8415 ends_in_middle_of_char_p flag.
8416 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
8417
d13f3e2e
GM
8418 * term.c (append_glyph): Revert change of 2000-06-06.
8419
8420 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
8421 padding glyph not fitting on line as whole character not
8422 fitting on line.
8423
5f1aea9a
GM
8424 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
8425 this isn't true for images with `:ascent 100'.
8426
10cda9b0
KH
84272000-06-06 Kenichi Handa <handa@etl.go.jp>
8428
ed00559d
KH
8429 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
8430 as modified if it is originally unmodified.
8431
10cda9b0
KH
8432 * term.c (encode_terminal_code): Change the way to check if
8433 terminal coding does any conversion.
8434 (append_glyph): Set glyph->pixel_width correctly.
8435
8436 * xdisp.c (display_line): While checking line continuation, pay
8437 attention to a padding glyph.
8438
1969fae2
GM
84392000-06-05 Gerd Moellmann <gerd@gnu.org>
8440
8441 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
8442
162ccef4
DL
84432000-06-05 Dave Love <fx@gnu.org>
8444
f19f32dd
DL
8445 * xdisp.c: Include fontset.h.
8446
8447 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
8448
8449 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
8450
8451 * dispnew.c: Conditionally include term.h.
8452
8453 * coding.h: Declare code_convert_string_norecord.
8454
8455 * frame.h (struct frame): Use volatile unconditionally.
8456
8457 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
8458
8459 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
8460
8461 * systime.h: Protect against multiple inclusion.
8462 (timezone) [USG5_4]: Define as time_t.
8463
8464 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
8465 (Foptimize_char_table, make_temp_name): Declare.
8466
8467 * Makefile.in (xdisp.o): Depend on fontset.h.
8468
8469 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
8470
8471 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
8472 (Foptimize_char_table, make_temp_name): Declare.
8473
427ec082 8474 * s/irix4-0.h:
162ccef4
DL
8475 * s/irix5-0.h:
8476 * s/netbsd.h: Don't define autoconfiscated MATHERR.
8477
2082fe81
DL
84782000-06-02 Dave Love <fx@gnu.org>
8479
8480 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
8481
dcf671d2
GM
84822000-06-02 Gerd Moellmann <gerd@gnu.org>
8483
8484 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 8485 result face, set flags in that face indicating that colors may not
dcf671d2
GM
8486 be freed.
8487
8488 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
8489 glyph, use the ASCII NUL character to determine the face.
8490
d42122a3
DL
84912000-06-02 Dave Love <fx@gnu.org>
8492
8493 * sysdep.c: Conditionally include stdlib.h, unistd.h.
8494 (VFORK_RETURN_TYPE): Remove.
427ec082 8495
d42122a3
DL
8496 * config.in: Add NO_MATHERR.
8497
dd432f16
DL
84982000-06-01 Dave Love <fx@gnu.org>
8499
90aa4ea8
DL
8500 * cmds.c (internal_self_insert): Don't check
8501 Vbefore_change_function, Vafter_change_function.
8502
8503 * insdel.c (signal_before_change, signal_after_change): Likewise.
8504
8505 * buffer.c (Vbefore_change_function, Vafter_change_function):
8506 Variables and their initializations deleted.
8507
2330c9d4
DL
8508 * callint.c (Fcall_interactively): Doc fix.
8509
dd432f16
DL
8510 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
8511
bf9e8804
DL
85122000-05-31 Dave Love <fx@gnu.org>
8513
8514 * textprop.c: Revert last change -- duplicated.
8515
3694b4ab
GM
85162000-05-31 Gerd Moellmann <gerd@gnu.org>
8517
8518 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
8519 in #if 0.
8520
8521 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
8522
f14156cd
JR
85232000-05-31 Jason Rumney <jasonr@gnu.org>
8524
8119aab8
JR
8525 * search.c (Fre_search_forward, Fre_search_backward)
8526 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
8527
f14156cd
JR
8528 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
8529
4aab9be3
JR
85302000-05-30 Jason Rumney <jasonr@gnu.org>
8531
8532 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
8533 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
8534
52283633 8535 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
4aab9be3
JR
8536
8537 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
8538 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
8539 expand a nil default_filename.
8540
8541 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
8542 pointer to glyph_to_pixel_coords, not a frame.
8543
8544 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
8545 coding.h to dependencies.
8546
8547 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
8548
8549 * w32console.c (glyph_to_pixel_coords): Change first parameter to
8550 window pointer to be consistent with w32term.c and xterm.c.
8551
8552 * w32fns.c: Format and doc changes to bring closer to xfns.c.
8553 (VIETNAMESE_CHARSET): Define if not defined in system headers.
8554 (Qline_spacing, Qcenter): New variables.
8555 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
8556 (x_set_line_spacing): New function.
52283633 8557 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
4aab9be3
JR
8558 (x_specified_cursor_type): New function.
8559 (x_set_cursor_type): Use it.
8560 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
8561 and icon strings.
8562 (validate_x_resource_name, x_get_resource_string): Measure lengths
8563 of external strings in bytes.
8564 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
8565 GetTextExtentPoint32 with NULL title.
8566 (Fx_create_frame): Initialize Qline_spacing.
8567 (w32_load_system_font): Initialize font->double_byte_p.
8568 (x_to_w32_charset): Use Vw32_charset_info_alist.
8569 (Image, busy cursor, tooltip functions): Merged changes from
8570 xfns.c. Not yet functional on Windows.
8571
8572 * w32gui.h (W32FontStruct): Add double_byte_p member.
8573
8574 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
8575 (emacs_button_translation): Use it.
8576 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
8577 in `mask' to be set.
8578
8579 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
8580 menu strings.
8581
8582 * w32term.c: Format and doc changes to bring closer to xterm.c.
8583 (w32_char_font_type): New enum.
8584 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
8585 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
8586 (w32_encode_char): New function.
8587 (x_encode_char): Removed.
8588 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
8589 x_encode_char and w32_font_is_double_byte.
8590 (x_produce_image_glyph): Use image_ascent.
8591 (x_produce_glyphs): Use new version of w32_per_char_metric and
8592 handle NULL return value. Allow extra line spacing.
8593 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
8594 (w32_get_glyph_overhangs): Remove unicode_p param. Use
8595 w32_font_type member of glyph instead.
8596 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
8597 (fast_find_position): Make sure not to consider rows not visible
8598 in the window.
8599 (w32_read_socket) [WM_MENUSELECT]: Cannot call
8600 w32_menu_display_help with input blocked, as it can abort.
8601 (x_display_and_set_cursor): Choose cursor depending
8602 on buffer-local value of cursor_type.
8603 (x_draw_bar_cursor): Add parameter WIDTH.
8604
8605 * w32term.h (CP_DEFAULT): Define.
8606 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
8607
10fc3187
GM
86082000-05-30 Gerd Moellmann <gerd@gnu.org>
8609
8610 * search.c (Fre_search_forward, Fre_search_backward)
8611 (Fposix_search_backward, Fposix_search_forward): Doc fix.
8612
d0555360
KH
86132000-05-30 Kenichi Handa <handa@etl.go.jp>
8614
8615 * coding.c (detect_coding_iso2022): Fix code for checking
8616 CODING_CATEGORY_MASK_ISO_8_2.
8617
f1ad044f
SM
86182000-05-29 Stefan Monnier <monnier@cs.yale.edu>
8619
8620 * regex.c (PREFETCH_NOLIMIT): New function.
8621 (re_match_2_internal): Use it and adjust the end_match_2 logic.
8622
84ec3b4b
GM
86232000-05-29 Gerd Moellmann <gerd@gnu.org>
8624
66254a13
GM
8625 * syntax.c (find_defun_start): Move test for
8626 open_paren_in_column_0_is_defun_start outside of the loop.
8627
49e70dec
GM
8628 * xdisp.c (redisplay_window): Really switch buffers when
8629 displaying mode lines, and temporarily set selected_frame to the
8630 frame of the window that's redisplayed.
8631
84ec3b4b
GM
8632 * xfaces.c (free_realized_faces): Block/unblock input.
8633 (free_realized_multibyte_face): Ditto.
8634
869a3a14
DL
86352000-05-29 Dave Love <fx@gnu.org>
8636
8637 * textprop.c (Qkeymap): New variable.
8638 (syms_of_textprop): Intern it.
8639
8640 * keymap.c: Include intervals.h.
8641 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
8642
8643 * Makefile.in (keymap.o): Depend on intervals.h.
8644
8645 * keyboard.c (menu_bar_items, tool_bar_items)
8646 (Fexecute_extended_command): Deal with `keymap' property.
8647 (read_key_sequence): Track map from `keymap' property as well as
8648 `local_map'.
8649
8650 * intervals.c (get_local_map): Extra arg to allow looking for
8651 `keymap' too.
8652
8653 * intervals.h (map_property): New enum.
8654 (get_local_map): Extra arg using it.
8655 (Qkeymap): Declare.
8656
84ec3b4b 8657 * lisp.h (get_local_map): Don't declare here.
869a3a14 8658
89d0c844
KH
86592000-05-29 Kenichi Handa <handa@etl.go.jp>
8660
8661 * Makefile.in (callproc.o): Depend on composite.h.
8662
8663 * callproc.c: Include composite.h.
8664 (Fcall_process): Handle composition correctly.
8665
8666 * coding.h (coding_allocate_composition_data): Extern it.
8667 (coding_restore_composition): Likewise.
8668
8669 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
8670 yet allocated, finish decoding with result
8671 CODING_FINISH_INSUFFICIENT_CMP.
8672 (coding_allocate_composition_data): Make it non-static.
8673 (coding_restore_composition): Likewise.
8674
797a084a
EZ
86752000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
8676
8677 * charset.c (syms_of_charset): Revert last change.
8678
cf872af5
EZ
86792000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
8680
8681 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
8682 charsets as unibyte, with 1-column screen width. Sent by Kenichi
8683 Handa.
cf872af5 8684
5b1ae051
EZ
86852000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
8686
8687 * charset.c (syms_of_charset): Set width of character sets
8688 eight-bit-control and eight-bit-graphic to 1 column.
8689
34ec9ebe
GM
86902000-05-26 Gerd Moellmann <gerd@gnu.org>
8691
8692 * config.in (HAVE_SPEED_T): New define.
8693
8694 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
8695 `extern speed_t'.
8696
dd854dc2
DL
86972000-05-26 Dave Love <fx@gnu.org>
8698
8699 * coding.c (shrink_decoding_region): Initialize eol_conversion.
8700
8701 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
8702 (Fsubr_arity): New function.
8703 (syms_of_data): Install them.
8704
ba9f8f95
KH
87052000-05-26 Kenichi Handa <handa@etl.go.jp>
8706
0f3e0672
KH
8707 * charset.c (init_charset_once): Set the table bytes_by_char_head
8708 correctly.
8709
cebefb44
KH
8710 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
8711 the default fontset to what Emacs uses by default.
0f3e0672
KH
8712 (check_registry_encoding): This function deleted.
8713 (Fset_fontset_font): Remove the adhoc condition for the default
8714 fontset. Allow cons in FONTNAME.
cebefb44 8715
0f3e0672
KH
8716 * fns.c (map_char_table): Ignore char-table entries for
8717 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 8718
7a18af49
KR
87192000-05-25 Ken Raeburn <raeburn@gnu.org>
8720
8721 * emacs.c (main): Initialize keyboard syms before initializing
8722 window code, so face names are available.
8723
d2af47df
SM
87242000-05-25 Stefan Monnier <monnier@cs.yale.edu>
8725
8726 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
8727 of an anchor at the beginning of a shy-group.
8728
fc6a6a4e
GM
87292000-05-25 Gerd Moellmann <gerd@gnu.org>
8730
8731 * xdisp.c (handle_invisible_prop): Don't try to skip over
8732 invisible text if end of text is already reached.
8733
005f0d35
DL
87342000-05-25 Dave Love <fx@gnu.org>
8735
02513cdd
DL
8736 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
8737
005f0d35
DL
8738 * coding.c (encode_eol): Add null statement after label.
8739
89f6ca4e
EZ
87402000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
8741
8742 * w16select.c (Fw16_set_clipboard_data): Fix the change from
8743 2000-05-20.
8744
a4e1759e
KH
87452000-05-25 Kenichi Handa <handa@etl.go.jp>
8746
8747 * ccl.c (ccl_driver): Fix previous change.
8748
eacfd7fe
KH
87492000-05-25 Kenichi Handa <handa@etl.go.jp>
8750
46ab33a9
KH
8751 * coding.c (run_pre_post_conversion_on_str): Set point to the
8752 beginning of buffer before calling coding->post_read_conversion.
8753 (decode_coding_string): Give correct args to
8754 run_pre_post_conversion_on_str.
8755 (encode_coding_string): Likewise.
8756
eacfd7fe
KH
8757 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
8758 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
8759 eight-bit-graphic correctly.
8760
f8569325
DL
87612000-05-24 Kenichi HANDA <handa@etl.go.jp>
8762
8763 * fileio.c (Finsert_file_contents): Even if a file is not found,
8764 execute codes for setting up coding system. Call
8765 after-insert-file-functions unconditionally.
8766
04545643
GM
87672000-05-24 Gerd Moellmann <gerd@gnu.org>
8768
8769 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
8770 BSD_PGRPS are not defined.
8771
747d90ea
KH
87722000-05-24 Kenichi Handa <handa@etl.go.jp>
8773
8774 * charset.c (update_charset_table): Accept nil in LONG_NAME and
8775 DESCRIPTION.
8776 (syms_of_charset): Avoid building same strings.
8777
716e3b88
GM
87782000-05-23 Gerd Moellmann <gerd@gnu.org>
8779
8780 * lread.c (Fload): Add a comment about the meaning of
8781 Vuser_init_file being t.
8782
8783 * puresize.h (BASE_PURESIZE): Increase to 675000.
8784
8785 * s/gnu-linux.h (setpgrp): Don't define it here because this
8786 prevents compilation on GNU/Linux systems with glib 2.2.
8787
8788 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
8789 as setpgid.
427ec082 8790
9aeb39fa
EZ
87912000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
8792
8793 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
8794 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
8795 version.
8796 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
8797
29ced61b
KH
87982000-05-23 Kenichi Handa <handa@etl.go.jp>
8799
52283633 8800 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
0574a2ed 8801
3d80f24d
KH
8802 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
8803
52283633 8804 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
3d80f24d 8805
29ced61b
KH
8806 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
8807
d7e00792
KH
88082000-05-22 Kenichi Handa <handa@etl.go.jp>
8809
c9d80d38
KH
8810 * keyboard.c (read_char): Allow character codes 128..255 to be
8811 handled by input-method-function.
8812
d7e00792
KH
8813 * insdel.c (adjust_markers_for_replace): Fix previous change.
8814 (adjust_after_replace): If PREV_TEXT is nil, call
8815 adjust_markers_for_insert, not adjust_markers_for_replace.
8816
087121cc 88172000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 8818
087121cc
GM
8819 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
8820 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
8821 [HAVE_GRANDPT]: Define.
8822 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
8823
8824 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
8825 like SYSV_PTYS.
8826
8827 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
8828
8829 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
8830
c9671f81
KH
88312000-05-20 Kenichi Handa <handa@etl.go.jp>
8832
8833 The following changes are to handle 8-bit characters in a
8834 multibyte buffer/string without facing with byte combining
8835 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
8836 eight-bit-graphic (for 0xA0..0xFF) are introduced.
8837
8838 * Makefile.in (fns.o): Depend on charset.h.
8839
8840 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
8841 convert it to unibyte.
8842 (make_string): Use parse_str_as_multibyte, not chars_in_text.
8843
8844 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
8845 apparent char boundary.
8846 (Fset_buffer_multibyte): Convert 8-bit characters in the range
8847 0x80..0x9F to/from multibyte form.
8848
8849 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
8850 to unibyte.
8851
8852 * callproc.c (Fcall_process): Always encode an argument string if
8853 it is multibyte. Setup src_multibyte and dst_multibyte members of
8854 process_coding properly.
ce75fd23 8855
c9671f81
KH
8856 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
8857 SPLIT_NON_ASCII_CHAR.
8858
8859 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
8860 as is.
8861 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
8862
52283633 8863 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
c9671f81 8864 (SPLIT_CHARACTER_SEQ): This macro deleted.
52283633 8865 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
c9671f81
KH
8866 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
8867 and eight-bit-graphic.
8868 (char_to_string): Likewise. Signal an error for too large
8869 character code.
8870 (char_printable_p): Return 0 for 8-bit characters.
8871 (update_charset_table): Update iso_charset_table only when a final
8872 character is non-negative.
8873 (find_charset_in_text): Renamed from find_charset_in_str.
8874 Arguments and return value changed. Callers changed.
8875 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
8876 be -1 if CHARSET is used only internally.
8877 (Fmake_char_internal): Handle new charsets; eight-bit-control and
8878 eight-bit-graphic.
8879 (Fcharset_after): Simplified.
8880 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
8881 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
8882 (multibyte_chars_in_text): Simplified by assuming there's no
8883 invalid multibyte sequence.
52283633
SM
8884 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
8885 (str_as_unibyte): New functions.
8886 (Fstring): Simpified by assuming that byte combining never happens.
c9671f81
KH
8887 (init_charset_once): Initialization for
8888 LEADING_CODE_8_BIT_CONTROL.
8889 (syms_of_charset): Intern and staticpro Qeight_bit_control and
8890 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
8891 eight-bit-control and eight-bit-graphic.
8892
52283633
SM
8893 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
8894 (CHARSET_8_BIT_GRAPHIC): New macros.
c9671f81
KH
8895 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
8896 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
8897 (CHARSET_REVERSE_CHARSET): Likewise.
8898 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
8899 eight-bit-graphic.
8900 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
8901 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
8902 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
8903 encounter an invalid multibyte sequence.
8904 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
8905 sequence is always valid.
8906 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
52283633 8907 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
c9671f81
KH
8908 (CHAR_STRING): For 8-bit characters, call char_to_string.
8909 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
8910 multibyte sequence is always valid.
8911 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
52283633
SM
8912 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
8913 (str_as_unibyte): Extern them.
c9671f81 8914 (BCOPY_SHORT): Fix a bug.
52283633 8915 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
c9671f81
KH
8916 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
8917 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
8918 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
8919
bd4bde7f 8920 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81 8921 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
52283633
SM
8922 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
8923 (EMIT_BYTES): New macros.
8924 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
8925 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
c9671f81
KH
8926 macros deleted.
8927 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
8928 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
8929 check the validity of multibyte sequence.
8930 (decode_coding_emacs_mule): New function.
8931 (encode_coding_emacs_mule): New macro.
8932 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
8933 the source.
8934 (DECODE_ISO_CHARACTER): Just return a character code.
8935 (DECODE_COMPOSITION_START): Set coding->result instead of result.
8936 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
8937 EMIT_CHAR to produced decoded characters. Exit the loop only by
8938 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
8939 block here.
8940 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
8941 only position codes for an invalid character.
8942 (encode_designation_at_bol): Return new destination pointer. 5th
8943 arg DSTP is changed to DST.
8944 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
8945 from the source by ONE_MORE_CHAR. Don't handle the case of last
8946 block here.
8947 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
8948 macros deleted.
52283633
SM
8949 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
8950 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
c9671f81
KH
8951 TWO_MORE_BYTES to fetch a byte from the source.
8952 (encode_eol): Pay attention to coding->src_multibyte.
8953 (detect_coding, detect_eol): Preserve members src_multibyte and
8954 dst_multibyte.
8955 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
8956 (encoding_buffer_size): Set magnification to 3 for all coding
8957 systems that require encoding.
8958 (ccl_coding_driver): For decoding, be sure that the result is
8959 valid multibyte sequence.
8960 (decode_coding): Initialize coding->errors and coding->result.
8961 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
8962 and raw-text, always call decode_eol. Handle the case of last
8963 block here. If not coding->dst_multibyte, convert the resulting
8964 sequence to unibyte.
8965 (encode_coding): Initialize coding->errors and coding->result.
8966 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
8967 and raw-text, always call encode_eol. Handle the case of last
8968 block here.
8969 (shrink_decoding_region, shrink_encoding_region): Detect cases
8970 that we can't skip data more rigidly.
8971 (code_convert_region): Setup src_multibyte and dst_multibyte
8972 members of coding. For decoding, if the buffer is multibyte,
8973 convert the source sequence to unibyte in advance. For encoding,
8974 if the buffer is multibyte, convert the resulting sequence to
8975 multibyte afterward.
8976 (run_pre_post_conversion_on_str): New function.
8977 (code_convert_string): Deleted and divided into the following two.
8978 (decode_coding_string, encode_coding_string): New functions.
8979 (code_convert_string1, code_convert_string_norecord): Call one of
8980 above.
8981 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
8982 MAKE_NON_ASCII_CHAR.
52283633
SM
8983 (Fset_terminal_coding_system_internal)
8984 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
c9671f81
KH
8985 and dst_multibyte members.
8986 (init_coding_once): Initialize iso_code_class with new enum
8987 ISO_control_0 and ISO_control_1.
8988
8989 * coding.h (enum iso_code_class_type): Member ISO_control_code is
8990 devided into ISO_control_0 and ISO_control_1.
8991 (struct coding_system): New members src_multibyte, dst_multibyte,
8992 errors, and result. Delete member fake_multibyte.
8993 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
8994 nonzero.
8995 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
8996 nonzero.
8997
8998 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
8999 (Faset): Likewise.
9000
9001 * editfns.c (Fformat): Be sure to convert 8-bit characters to
9002 multibyte form.
9003 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
9004 combining occurs.
9005 (Ftranspose_region): Delete codes for handling byte combining.
9006
9007 * fileio.c (Finsert_file_contents): Setup src_multibyte and
9008 dst_multibyte members of coding. On handling REPLACE on unibyte
9009 buffer, convert the result of decode_coding to unibyte. On
9010 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 9011 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
9012 multibyteness of the source (buffer or string).
9013
9014 * fns.c (concat): Handle 8-bit characters correctly.
9015 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
9016 unibyte in the result.
9017 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
9018 valid multibyte form in the result.
9019 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
9020 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
9021 return -1, signal an error.
9022 (base64_encode_1): New arg MULTIBYTE. Get each character by
9023 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
9024 character is found, return -1.
9025 (Fbase64_decode_region): Delete codes for handling byte-combining.
9026 Treat each decoded byte as a unibyte character.
9027 (Fbase64_decode_string): Return unibyte string.
9028 (Fcompare_strings, concat, string_byte_to_char): Use
9029 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
9030 FETCH_STRING_CHAR_ADVANCE.
9031 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
9032 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
9033
9034 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
9035 SPLIT_NON_ASCII_CHAR.
9036 (fontset_ref_via_base, fontset_set): Likewise
9037
9038 * insdel.c (adjust_markers_for_record_delete): Deleted.
9039 (adjust_markers_for_insert): Argument changed. Caller changed.
9040 (adjust_markers_for_replace): Likewise.
52283633
SM
9041 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
9042 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
c9671f81
KH
9043 (copy_text): Delete unused local varialbe c_save. For converting
9044 to multibyte, be sure to make all 8-bit characters in valid
9045 multibyte form.
9046 (count_size_as_multibyte): Handle 8-bit characters correctly.
52283633
SM
9047 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
9048 (adjust_after_replace, replace_range, del_range_2)
c9671f81 9049 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
52283633
SM
9050 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
9051 (adjust_after_replace, replace_range, del_range_2) Delete codes for
c9671f81
KH
9052 handling byte combining.
9053 (adjust_before_replace): Deleted.
427ec082 9054
c9671f81
KH
9055 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
9056 SPLIT_NON_ASCII_CHAR.
9057 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
52283633 9058 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
9059 (Fkey_description): Likewise.
9060
9061 * lread.c (read1): On reading multibyte string, be sure to make
9062 all 8-bit chararacters in valid multibyte form.
9063 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
9064
9065 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
9066 unconditionally.
9067
9068 * process.c (Fstart_process): GCPRO current_dir before calling
9069 Ffind_operation_coding_system. Encode arguments here.
9070 (create_process): Don't encode arguments here. Setup
9071 src_multibyte and dst_multibyte members of struct coding.
9072 (read_process_output): Setup src_multibyte and dst_multibyte
9073 members of struct coding. If the output is to multibyte buffer,
9074 always decode the output of the process. Adjust the
52283633 9075 representation of 8-bit characters to the multibyteness of the output.
c9671f81
KH
9076 (send_process): Setup coding->src_multibyte according to the
9077 multibyteness of the source.
9078
52283633 9079 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
9080 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
9081 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
9082
52283633 9083 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
c9671f81
KH
9084
9085 * w16select.c (Fw16_set_clipboard_data): Setup members
9086 src_multibyte and dst_multibyte of coding. Adjusted for the
9087 change for find_charset_in_str.
9088 (Fw16_get_clipboard_data): Likewise.
9089
9090 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
9091 dst_multibyte of coding.
9092 (x_to_w32_font): Likewise.
9093
9094 * w32select.c (Fw32_set_clipboard_data): Setup members
9095 src_multibyte and dst_multibyte of coding. Adjusted for the
9096 change for find_charset_in_str.
9097 (Fw32_get_clipboard_data): Likewise.
9098
9099 * xdisp.c (get_next_display_element): Handle 8-bit characters
9100 correctly.
52283633
SM
9101 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
9102 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
c9671f81
KH
9103
9104 * xselect.c (selection_data_to_lisp_data): Setup members
9105 src_multibyte and dst_multibyte of coding. Adjusted for the
9106 change for find_charset_in_str.
9107 (lisp_data_to_selection_data): Likewise.
9108
5f64c9e0
GM
91092000-05-19 Gerd Moellmann <gerd@gnu.org>
9110
52283633 9111 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
2b63d473 9112
5f64c9e0
GM
9113 * dispextern.h (Vimage_types): Add extern declaration.
9114
9115 * xdisp.c (Vimage_types): Moved here from xfns.c.
9116 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
9117
9118 * xfns.c (Vimages_types): Moved to xdisp.c.
9119 (syms_of_xfns): Move `image-types' to xdisp.c.
9120
9121 * w32fns.c (Vimage_types): Removed.
9122 (syms_of_w32fns): Remove `image-types'.
9123
813086ea
KH
91242000-05-18 Kenichi Handa <handa@etl.go.jp>
9125
9126 * fns.c (map_char_table): Pay attention to character number of
9127 charset. Check the validity of charset at the first level. For
9128 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
9129 the default value.
9130
9131 * fontset.c: Include "buffer.h".
9132 (fs_load_font): If the face has fontset, record the face ID in
9133 that fontset.
9134 (Finternal_char_font): New function.
9135 (accumulate_font_info): New function.
9136 (Ffontset_info): Rewritten for the new fontset implementation.
9137 (syms_of_fontset): Register Vdefault_fontset in the first element
9138 of Vfontset_table. Include Vdefault_fontset in
9139 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
9140 function.
9141
bdaebbf0
DL
91422000-05-16 Dave Love <fx@gnu.org>
9143
9144 * m/iris5d.h: Deleted -- unused.
9145
cb613bb8
GM
91462000-05-16 Gerd Moellmann <gerd@gnu.org>
9147
b15f3b77
GM
9148 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
9149 `invalid' instead of `illegal'.
9150
9151 * indent.c (Fmove_to_column): When ending within a tab, insert
9152 spaces first so that markers at the end of the tab get adjusted.
9153
835c1b36
GM
9154 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
9155 buffer list that wasn't selected in that frame.
9156
cb613bb8
GM
9157 * filelock.c (get_boot_time): To obtain an 8 char file name, which
9158 is needed on mescaline, use a 2 char prefix, and call
9159 make_temp_name with second arg non-zero.
9160
9161 * fileio.c (make_temp_name): New function, extracted from
9162 Fmake_temp_name.
9163 (Fmake_temp_name): Use it.
9164
f685bea9
EZ
91652000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
9166
52283633 9167 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
f685bea9 9168
a1b8d58b
GM
91692000-05-15 Gerd Moellmann <gerd@gnu.org>
9170
9171 * Makefile.in (lisp): Add env.elc.
9172
9173 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
9174
a265079f
GM
91752000-05-12 Gerd Moellmann <gerd@gnu.org>
9176
9177 * search.c (Freplace_match): Handle case of `\N' in the
9178 replacement when there's no group N.
9179
da4496b6
GM
91802000-05-11 Gerd Moellmann <gerd@gnu.org>
9181
0ace421a
GM
9182 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
9183 of the message to message_dolog.
9184
1172eb8d
GM
9185 * keyboard.c (read_char): Don't clear current message for help
9186 events; let the code handling help events handle this. Change
9187 code detecting help events that should be ignored.
9188
da4496b6
GM
9189 * xdisp.c (handle_single_display_prop): Don't try to set PT if
9190 we're interating over a string.
9191
0623e40f
DL
91922000-05-09 Dave Love <fx@gnu.org>
9193
9194 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
9195 that offset before writing. Move gcpro region past call of
9196 Ffile_regular_p.
9197
bae2503b
DL
91982000-05-04 Dave Love <fx@gnu.org>
9199
9200 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
9201
ec82fb2f
GM
92022000-05-04 Gerd Moellmann <gerd@gnu.org>
9203
9204 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
9205 of inserted characters when BUF equals the current buffer, and PT
9206 is in front of or equal to FROM.
9207
cbf18892
GM
92082000-05-03 Gerd Moellmann <gerd@gnu.org>
9209
4ff40dd0
GM
9210 * xdisp.c (handle_single_display_prop): If display property value
9211 is invalid, or something not supported on the frame, restore
9212 iterator's position to what it was initially. Make sure to return
9213 0 for invalid and unsupported property values.
9214
cbf18892
GM
9215 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
9216 that x_per_char_metric returns null.
9217
1b0672c3
GM
92182000-05-02 Gerd Moellmann <gerd@gnu.org>
9219
576da55d
GM
9220 * xterm.h (struct face): Add forward declaration.
9221 (struct image): Ditto.
9222 (image_ascent): Add prototype.
9223
9224 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
9225 (x_draw_image_relief, x_draw_image_foreground_1): Call function
9226 image_ascent instead of using IMAGE_ASCENT.
9227
9228 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
9229 (IMAGE_ASCENT): Removed.
9230
9231 * xfns.c (Qcenter): New variable.
9232 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
9233 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
9234 (image_ascent): New function.
9235 (lookup_image): Recognize `:ascent center'.
9236 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
9237 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
9238 (xbm_load): Don't set image's ascent here.
9239 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
9240 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
9241 check ascent values here.
9242 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
9243 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
9244 (syms_of_xfns): Initialize Qcenter.
9245
1b0672c3
GM
9246 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
9247 to the limits, increase the limits.
9248
0d7811ed
KH
92492000-05-01 Kenichi Handa <handa@etl.go.jp>
9250
9251 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
52283633 9252 Check Vfont_encoding_alist against the full name of the opened font.
0d7811ed 9253
a943a5ca
GM
92542000-04-28 Gerd Moellmann <gerd@gnu.org>
9255
9256 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
9257 taller than the window.
9258
5dba1e29
KH
92592000-04-28 Kenichi Handa <handa@etl.go.jp>
9260
9261 * xfaces.c (realize_x_face): Fix the argument of the second
9262 xassert. BASE_FACE may not be a face for ASCII.
9263
353964e3
GM
92642000-04-27 Gerd Moellmann <gerd@gnu.org>
9265
c76e04a8
GM
9266 * print.c (print_object): Treat print-length < 0 as nil.
9267
9268 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
9269
9270 * s/freebsd.h (TERMCAP_OBJ): Removed.
9271 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
9272
9273 * lread.c (read1): Don't treat period followed by certain
9274 characters as symbol start.
9275
9276 * xfns.c (slurp_file): New function.
9277 (xbm_image_p): Handle case of in-memory XBM files.
9278 (xbm_scan): Rewritten to work on memory buffers instead of files.
9279 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
9280 Work on memory buffers instead of files. If DATA is null test
9281 if buffer looks like an in-memory XBM file.
9282 (xbm_load_image): Renamed from xbm_load_image_file. Work on
9283 memory buffers instead of files.
9284 (xbm_file_p): New function.
9285 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
9286
353964e3
GM
9287 * lread.c (end_of_file_error): New function.
9288 (read1): Call it instead of signaling `end-of-file' directly.
9289
427ec082 9290 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
9291 with Fprinc instead of Fprin1.
9292
24d744ac
KR
92932000-04-26 Ken Raeburn <raeburn@gnu.org>
9294
9295 * window.c (freeze_window_start): Check that minibuffer scroll
9296 window isn't nil before extracting the window structure pointer
9297 from it.
9298
9299 * undo.c (record_delete): If we hit the end of the undo list, stop
9300 picking elements apart.
9301
7464346d
GM
93022000-04-26 Gerd Moellmann <gerd@gnu.org>
9303
9304 * xdisp.c (display_line): If lines are continued, restore
9305 iterator's ascent/descent information to the values before the
9306 first glyph not fitting on the line.
9307
612839b6
GM
93082000-04-25 Gerd Moellmann <gerd@gnu.org>
9309
9310 * xdisp.c (try_window_id) <all changes above window start>: Adjust
52283633 9311 positions in glyph matrix. Don't compute new window end positions.
612839b6
GM
9312
9313 * dispnew.c (increment_matrix_positions): Renamed from
9314 increment_glyph_matrix_buffer_positions.
9315 (increment_row_positions): Renamed from
9316 increment_glyph_row_buffer_positions.
9317
9318 * dispextern.h: Change names of renamed functions from dispnew.c
9319 in prototypes.
9320
cc181e95
GM
93212000-04-24 Gerd Moellmann <gerd@gnu.org>
9322
abfcc168
GM
9323 * fileio.c (Fdo_auto_save): Create directories for auto-save
9324 list file if necessary.
9325
cc181e95
GM
9326 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
9327 from buffer or frame.
9328 (automatic_hscrolling_p): New variable.
9329 (hscroll_windows): Scroll windows horizontally only if automatic
9330 hscrolling is allowed.
9331 (syms_of_xdisp): New variable `automatic-hscrolling'.
9332
9333 * frame.h (struct frame): Add member extra_line_spacing.
9334
9335 * xfns.c (x_set_line_spacing): New function.
9336 (Fx_create_frame): Set line spacing from resources.
9337 (Qline_spacing): New variable.
9338 (syms_of_xfns): Initialize Qline_spacing.
427ec082 9339
cc181e95
GM
9340 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
9341
9342 * buffer.c (init_buffer_once): Handle extra_line_spacing.
9343 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 9344 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
9345 extra_line_spacing from default value.
9346 (init_buffer_once): Initialize default value of extra_line_spacing.
9347
9348 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
9349 and extra3.
9350
9351 * xterm.c (x_produce_glyphs): Remove reference to struct it's
9352 prompt_width. Add extra line spacing.
9353
9354 * term.c (produce_glyphs): Remove reference to struct it's
9355 prompt_width.
9356
9357 * dispextern.h (struct it): Remove member prompt_width, add
9358 extra_line_spacing.
9359
58827478
GM
93602000-04-22 Gerd Moellmann <gerd@gnu.org>
9361
9362 * dispnew.c (update_frame_line): When writing a whole line, make
9363 sure cursor is in the right row afterwards, otherwise a use of
9364 capability `ch' in cmgoto might leave the cursor in the row below.
9365
25a87f42
GM
93662000-04-21 Gerd Moellmann <gerd@gnu.org>
9367
9368 * lisp.h (struct Lisp_Buffer_Cons): Remove.
9369
9370 * keyboard.c (timer_check): Fix typo in comment.
9371
54edf5c2
KH
93722000-04-21 Kenichi Handa <handa@etl.go.jp>
9373
9374 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
9375 name change: ch -> character.
9376
3a64eef5
GM
93772000-04-20 Gerd Moellmann <gerd@gnu.org>
9378
9379 * keyboard.c (echo_message_buffer): New variable.
9380 (echo_now): Set echo_message_buffer to the echo area buffer used
9381 to display the echo.
9382 (cancel_echoing): Reset echo_message_buffer to nil.
9383 (read_char): Code rewritten that handles canceling an echo or
9384 echoing a dash, respectively.
9385
9386 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
9387 directory doesn't exist.
9388
6142fdcb
DL
93892000-04-19 Dave Love <fx@gnu.org>
9390
9391 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
9392 (concat): Don't allow numeric args.
9393 (Fconcat): Doc change.
6142fdcb 9394
ac6b5352
SM
93952000-04-19 Stefan Monnier <monnier@cs.yale.edu>
9396
9397 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
9398 instead define end_match(1|2) more carefully.
9399 Use GET_CHAR_BEFORE_2 for `begline'.
9400
cb9215e4
GM
94012000-04-19 Gerd Moellmann <gerd@gnu.org>
9402
5e3dac3f
GM
9403 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
9404 on 64-bit systems where NULL is defined as `0'.
9405
9406 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
9407 the `variable argument list' to make it work on Alpha.
9408
cb9215e4
GM
9409 * m/alpha.h (_LP64) [!_LP64]: Define.
9410 (ORDINARY_LINK): Define for NetBSD.
9411
9412 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 9413
f532dca0
DL
94142000-04-19 Dave Love <fx@gnu.org>
9415
c750667e
DL
9416 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
9417 change.
9418
9419 * Makefile.in (LIBS): Don't use.
9420 (GETLOADAVG_OBJ): Define again.
9421 (otherobj): Add GETLOADAVG_OBJ.
9422
f532dca0
DL
9423 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
9424
1c7e22fd
GM
94252000-04-18 Gerd Moellmann <gerd@gnu.org>
9426
f6d3257b
GM
9427 * lread.c (read_filtered_event): Cancel and start busy cursor.
9428
427ec082 9429 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
9430 that the per-character metrics may be null.
9431
e10f64e7
GM
94322000-04-17 Gerd Moellmann <gerd@gnu.org>
9433
0daee095
GM
9434 * buffer.c (clone_per_buffer_values): New function.
9435 (Fmake_indirect_buffer): Add optional argument CLONE. Call
9436 clone_per_buffer_values if CLONE is not nil.
9437
e10f64e7
GM
9438 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
9439
38687d43
DL
94402000-04-16 Dave Love <fx@gnu.org>
9441
9442 * Makefile.in: Remove obsolete localcpp stuff.
9443 (GETLOADAVG_OBJ): Don't define.
9444 (obj): Move LIBOBJS...
9445 (otherobj): ... to here.
9446 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
9447 whitespace-only lines after the continuation (Irix).
9448
c21c7262
GM
94492000-04-14 Gerd Moellmann <gerd@gnu.org>
9450
9451 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
9452
9453 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
9454
314767c0
DL
94552000-04-14 Dave Love <fx@gnu.org>
9456
9457 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
9458 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
9459 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
9460 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
9461 NLIST_STRUCT.
9462
9463 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
9464 autoconfiscated HAVE_GETLOADAVG.
9465
9466 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
9467 BROKEN_MKTIME.
9468
a2522dca
GM
94692000-04-14 Gerd Moellmann <gerd@gnu.org>
9470
9471 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
52283633 9472 (fill_in_lock_file_name): Avoid existing files that aren't links.
a2522dca 9473
33744b5d
DL
94742000-04-14 Dave Love <fx@gnu.org>
9475
c21c7262 9476 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
9477 (INTERVAL_SRC): Convert to make variable.
9478 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
9479 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
9480 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
9481 add LIBOBJS.
9482 (SOME_MACHINE_OBJECTS): Remove interval stuff.
9483 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
9484 (shortlisp): Add facemenu, float-sup, frame.
9485 (SOME_MACHINE_LISP): Remove them from here.
9486 (LIBES): Change unused LDLIBS to autoconf LIBS.
9487
9488 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
9489
9d3d5916
KH
94902000-04-14 Kenichi Handa <handa@etl.go.jp>
9491
9492 * composite.c (update_compositions): If FROM and TO are not in a
9493 valid range, do nothing.
9494
198e3c7a
GM
94952000-04-13 Gerd Moellmann <gerd@gnu.org>
9496
52283633 9497 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
198e3c7a 9498
52283633 9499 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
198e3c7a
GM
9500
9501 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
9502 as TERMCAP_OBJ.
9503
055a28c9
EZ
95042000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
9505
9506 * fileio.c (a_write): Remove redundant semi-colons.
9507 (e_write): Return -1 if failed to write all the data.
9508 This fixes the changes made at 1999-12-15.
9509
f5c75033
DL
95102000-04-12 Dave Love <fx@gnu.org>
9511
9512 * fns.c (mapcar1): Test for null vals to support mapc.
9513 (Fmapc): New function.
9514
0c3cfc51
EZ
95152000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
9516
9517 * msdos.c (NUM_MOUSE_BUTTONS): Define.
9518 (IT_frame_up_to_date): Support the buffer local value of
9519 cursor-type, if defined.
9520
33465a31
DL
95212000-04-10 Dave Love <fx@gnu.org>
9522
9523 * editfns.c (preceding-char, following-char): Doc fix.
9524
6ed56568
KR
95252000-04-10 Ken Raeburn <raeburn@gnu.org>
9526
9527 * Makefile.in (temacs): Revert 2000-03-12 change.
9528
7cf80d4e
JR
95292000-04-10 Jason Rumney <jasonr@gnu.org>
9530
9531 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
9532
34f3f342
GM
95332000-04-10 Gerd Moellmann <gerd@gnu.org>
9534
1a1b1895
GM
9535 * xdisp.c (setup_echo_area_for_printing): Choose an echo
9536 area buffer, if it's not set up yet.
9537
34f3f342
GM
9538 * indent.c (compute_motion): Set immediate_quit.
9539
be0dbdab
GM
95402000-04-09 Gerd Moellmann <gerd@gnu.org>
9541
52283633 9542 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
c45be9ac
GM
9543 (realize_tty_face): Suppress boldness if colors are the inverse of
9544 the default colors, and tty_suppress_bold_inverse_default_colors_p
9545 is set.
9546 (Ftty_suppress_bold_inverse_default_colors): New function.
9547 (syms_of_xfaces): Defsubr it.
9548
be0dbdab
GM
9549 * buffer.c (Frestore_buffer_modified_p): New function.
9550 (syms_of_buffer): Defsubr it.
9551
e8413c3b
KR
95522000-04-08 Ken Raeburn <raeburn@gnu.org>
9553
87f67317
KR
9554 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
9555 charset id (int) argument, not a charset (Lisp_Object).
9556
e8413c3b
KR
9557 * coding.h (code_convert_string): Declare.
9558 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
9559 object, as the fourth argument to code_convert_string.
9560
52283633 9561 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
e8413c3b
KR
9562 (Fset_fontset_font): Use EQ to compare lisp objects.
9563
7c752c80
KR
95642000-04-05 Ken Raeburn <raeburn@gnu.org>
9565
c0333abc
KR
9566 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
9567 a pointer that looks like a lisp object.
9568 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
9569 zero, instead see whether it's an integer object, since they can't
9570 have intervals.
9571 (GET_INTERVAL_OBJECT): Simply assign to the destination.
9572
52283633
SM
9573 * dispnew.c (allocate_matrices_for_frame_redisplay)
9574 (direct_output_forward_char): Use X(U)INT and make_number as needed
7c752c80
KR
9575 to convert between (unsigned) int values and lisp integers.
9576 * keyboard.c (read_key_sequence): Likewise.
9577 * lread.c (substitute_object_recurse): Likewise.
9578 * fns.c (concat, hash_lookup, hash_remove): Likewise.
52283633
SM
9579 * minibuf.c (do_completion, Fminibuffer_complete_word)
9580 (Fminibuffer_completion_help): Likewise.
7c752c80
KR
9581 * term.c (produce_special_glyphs): Likewise.
9582
9583 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
9584 * print.c (print_preprocess, print_object): Likewise.
9585
9586 * search.c (compile_pattern): Use NILP when checking for nil.
9587
74e49b38
KR
9588 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
9589 __OPTIMIZE__]: Provide a GNU C macro version that handles
9590 lisp-object unions.
9591 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
9592 field, to better cope with ENABLE_CHECKING and calls that modify a
9593 Lisp_Object using its old value.
9594
685e5ed2
GM
95952000-04-04 Gerd Moellmann <gerd@gnu.org>
9596
c407c570
GM
9597 * window.c (compare_window_configurations): Signal an error
9598 if parameters C1 or C2 aren't window configurations.
9599
685e5ed2
GM
9600 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
9601 AFTER_POTENTIAL_GC calls around calls to functions that can
9602 signal an error and thus invoke the debugger.
9603
587a49ab
GM
96042000-04-03 Gerd Moellmann <gerd@gnu.org>
9605
62f20204
GM
9606 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
9607 an error if decoding fails.
9608
587a49ab
GM
9609 * keyboard.c (lispy_mouse_names): Variable removed.
9610 (Vlispy_mouse_stem): New variable.
9611 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
9612 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
9613 for any mouse button number. Increase size of mouse_syms and
9614 button_down_location as needed. Call modify_event_symbol with
9615 different arguments.
9616 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
9617 Call modify_event_symbol with different arguments.
9618 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
9619 for any button number. Call modify_event_symbol with different
9620 arguments.
9621 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
9622 Accept a string for NAME_ALIST_OR_STEM.
9623
9624 * lisp.h (larger_vector): Add prototype.
9625
9626 * fns.c (larger_vector): Make externally visible.
9627
9628 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
9629
2d1675e4
SM
96302000-04-02 Stefan Monnier <monnier@cs.yale.edu>
9631
9632 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
9633 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
9634 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
9635 we are between str1 and str2.
9636 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
9637 (PATFETCH): Use `TRANSLATE'.
9638 (PATFETCH_RAW): Fetch multibyte char if applicable.
9639 (PATUNFETCH): Remove.
9640 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
9641 When writing a char, write it directly into the pattern buffer rather
9642 than going needlessly through a temp char-array.
9643 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
9644 multibyte magic and remove the useless `#ifdef emacs'.
9645 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
9646 buffer.
9647
9648 * regex.h (struct re_pattern_buffer): Make field `multibyte'
9649 conditional on `emacs'.
9650
9651 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
9652
cc2d8c6b
KR
96532000-04-01 Ken Raeburn <raeburn@gnu.org>
9654
9655 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
9656 non-union-type versions of XMARK and friends here, because XMARK
9657 and friends won't work on an integer field if NO_UNION_TYPE is not
9658 defined.
52283633 9659 (make_number): Define as a function if it's not defined as a macro.
cc2d8c6b 9660
52283633 9661 * composite.c (run_composite_function): Use NILP when checking for nil.
09654086
KR
9662 (syms_of_composite): Delete local var NARGS, pass an int as first
9663 argument to Fmake_hash_table.
9664
2387b382
KR
9665 * editfns.c (text_property_stickiness): Use NILP to test
9666 Lisp_Object boolean value.
9667 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
9668 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
9669 problems reading from and changing the same lisp value in an
9670 XSETSTRING call.
9671
27660e89
GM
96722000-04-01 Gerd Moellmann <gerd@gnu.org>
9673
9674 * term.c (TN_no_color_video): New variable.
9675 (term_init): Intitialize TN_no_color_video.
9676 (enum no_color_bit): New enumeration.
9677 (MAY_USE_WITH_COLORS_P): New macro.
9678 (turn_on_face): Use it to determine if attributes may be used
9679 combined with colors.
9680
3578db3c
KR
96812000-04-01 Ken Raeburn <raeburn@gnu.org>
9682
9683 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
52283633 9684 with int lvalues via casts; instead, just yield lisp object lvalues.
3578db3c
KR
9685 (enlarge_window): Variable sizep now points to Lisp_Object. Use
9686 proper accessor macros.
9687 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
9688 (grow_mini_window): Fix typo getting int value of root->height.
9689
6fc556fd
KR
9690 * xdisp.c (compute_string_pos): Fix order of arguments to
9691 string_pos_nchars_ahead.
9692 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
9693 count arg to variable-arg routines like Frun_hook_with_args and
9694 Fformat.
587a49ab
GM
9695 (back_to_previous_visible_line_start)
9696 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
9697 fixed-arg routines like Fget_char_property and Fmake_string.
9698 (reconsider_clip_changes): Use XINT when comparing integer lisp
9699 objects, or passing them as int arguments.
587a49ab
GM
9700 (mark_window_display_accurate, insert_left_trunc_glyphs)
9701 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
9702 storing or passing integer values as lisp objects.
9703 (set_cursor_from_row, highlight_trailing_whitespace): Use
9704 INTEGERP, not implicit test against zero, for glyph object.
9705 (try_window_id): Don't use make_number when we want an int value.
9706
9707 * xfaces.c (xlfd_symbolic_value): Make last argument a
9708 Lisp_Object, to be consistent with callers.
9709 (Fbitmap_spec_p): Use XINT to get numeric value of height.
9710 (lface_hash): Apply XFASTINT to lisp values before folding in.
9711
9712 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
9713 fill in window width and height. Pass an int, not a lisp object,
9714 as first arg to Finsert.
9715
6e7b2457
GM
97162000-04-01 Gerd Moellmann <gerd@gnu.org>
9717
610d841e
GM
9718 * xfaces.c (realize_basic_faces): Block input while realizing
9719 the faces.
9720
6e7b2457
GM
9721 * keyboard.c (lispy_mouse_names): Add additional mouse names.
9722
9723 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
9724
aa110c0c
GM
97252000-03-31 Gerd Moellmann <gerd@gnu.org>
9726
9727 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 9728 or ASCII, handle case that per-char metric is null.
aa110c0c 9729
8801a864
KR
97302000-03-30 Ken Raeburn <raeburn@gnu.org>
9731
c6129d7e
KR
9732 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
9733
52283633
SM
9734 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
9735 (XSUBR, XBUFFER): Verify correct object type before returning
8801a864
KR
9736 pointer, using eassert.
9737 * frame.h (XFRAME): Likewise.
9738
52283633
SM
9739 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
9740 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
9741 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
8801a864 9742 * data.c (set_internal): Likewise.
52283633
SM
9743 * dispextern.h (WINDOW_WANTS_MODELINE_P)
9744 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
8801a864
KR
9745 * fileio.c (auto_save_1): Likewise.
9746 * insdel.c (check_markers): Likewise.
9747 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
9748 * undo.c (record_insert): Likewise.
9749 * vmsproc.c (child_sig): Likewise.
9750 * window.c (unshow_buffer, window_loop): Likewise.
9751 * xterm.c (x_erase_phys_cursor): Likewise.
9752
8e7af858
GM
97532000-03-30 Gerd Moellmann <gerd@gnu.org>
9754
9755 * xfns.c (free_image_cache): Free the cache structure itself
9756 last, after all its members have been freed.
9757
9758 * lisp.h (xstrdup): Add prototype.
9759
9760 * alloc.c (xstrdup): Moved here from xfaces.c.
9761 (allocating_for_lisp): Variable removed.
52283633 9762 (lisp_malloc): Block input around the calls to malloc and mem_insert.
8e7af858
GM
9763
9764 * xfaces.c (realize_tty_face): Use find_symbol_value instead
9765 of Fsymbol_value.
9766 (xstrdup): Moved to alloc.c.
9767
e0b8c689
KR
97682000-03-29 Ken Raeburn <raeburn@gnu.org>
9769
b96f9fb7
KR
9770 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
9771
9772 * emacs.c (main): Fix sense of no-loadup test.
9773
e0b8c689
KR
9774 * config.in (ENABLE_CHECKING): Undef.
9775
9776 * lisp.h (struct interval): Replace "parent" field with a union of
9777 interval pointer and Lisp_Object; add new bitfield to use as
9778 discriminant. Change other flag fields to bitfields.
9779 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
52283633
SM
9780 is defined and the supplied test fails, print a message and abort.
9781 (eassert): New macro. Use CHECK to provide an assert-like facility.
e0b8c689
KR
9782
9783 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
9784 pointers; abort if the value looks like a lisp object.
52283633
SM
9785 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
9786 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
e0b8c689
KR
9787 Modify for new interval parent definition.
9788
52283633
SM
9789 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
9790 (UNMARK_BALANCE_INTERVALS): Update references that need an
e0b8c689
KR
9791 addressable lisp object in the interval structure.
9792 (die): New function.
9793 (suppress_checking): New variable.
9794
9795 * intervals.c (interval_start_pos): Just return 0 if there's no
9796 parent object.
9797
f83c5440
GM
97982000-03-29 Gerd Moellmann <gerd@gnu.org>
9799
9800 * lread.c (read1): Accept `.' (period) as symbol start like in CL
9801 and earlier Emacs versions.
9802
9803 * keyboard.c (Ftop_level): Cancel busy-cursor.
9804
9805 * eval.c (call_debugger): Cancel busy-cursor.
9806
fdce64ff
KH
98072000-03-29 Kenichi Handa <handa@etl.go.jp>
9808
9809 * search.c (Freplace_match): Adjust multibyteness of the current
52283633 9810 buffer and NEWTEXT. Free allocated memory before signaling an error.
fdce64ff 9811
f6a3f532
SM
98122000-03-28 Stefan Monnier <monnier@cs.yale.edu>
9813
9814 * regex.c (analyse_first): New function obtained by ripping out most
9815 of re_compile_fastmap and generalizing it a little bit so that it
9816 can also just return whether a given (sub)pattern can match the empty
9817 string or not.
9818 (regex_compile): Use `analyse_first' to decide whether the loop-check
9819 needs to be done or not for *, +, *? and +? (the loop check is costly
9820 for non-greedy repetition).
9821 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
9822
e9b309ac
DL
98232000-03-28 Dave Love <fx@gnu.org>
9824
52283633 9825 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
bb15bd9a 9826
e9b309ac
DL
9827 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
9828
ed0767d8
SM
98292000-03-27 Stefan Monnier <monnier@cs.yale.edu>
9830
9831 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
9832 an expression.
9833 (enum re_opcode_t): Update description of succeed_n.
9834 (PATFETCH): Always define.
9835 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
9836 operators, char classes, shy-groups and intervals).
9837 Optimize special cases of intervals so as to only use succeed_n and
9838 jump_n when really needed.
9839 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
9840 that we don't have to handle the special cases any more.
9841 Simplify on_failure_jump handling as well.
9842
e11e7e46
JR
98432000-03-28 Jason Rumney <jasonr@gnu.org>
9844
9845 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
9846
88faab89
GM
98472000-03-27 Gerd Moellmann <gerd@gnu.org>
9848
182ff242
GM
9849 * s/freebsd.h (GC_SETJMP_WORKS): Define.
9850
9851 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 9852
182ff242
GM
9853 * alloc.c (mark_maybe_object): New function.
9854 (mark_memory): Use it.
9855 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
9856 (setjmp_tested_p, longjmp_done): New variables.
9857 (test_setjmp): New function.
9858 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
9859 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
9860
c1005d06
GM
9861 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
9862 to DEC_TEXT_POS and INC_TEXT_POS.
9863
9864 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
9865 with parameter MULTIBYTE_P.
9866
52283633 9867 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
c1005d06 9868
7439e5b9 9869 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
9870 buffers because it looks for multibyte character byte sequences
9871 which don't exist in unibyte text.
7439e5b9 9872
d9c545da
GM
9873 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
9874
11fd416e 9875 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
9876 [DEBUG_X_COLORS]: New functions.
9877 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
9878
9879 * xfns.c (x_set_cursor_color): Get color reference counts right.
9880
9881 * xterm.c (x_copy_color): New function.
9882 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
9883
9884 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
9885 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
9886 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
9887 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
9888 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
9889 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
9890 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
9891 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
9892 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
9893 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
9894
11fd416e
GM
9895 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
9896 names for handling per-buffer variables.
d9c545da
GM
9897
9898 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
9899 instead of MAX_BUFFER_LOCAL_VARS.
9900 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
9901
9902 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
9903
88faab89
GM
9904 * xfns.c (x_specified_cursor_type): New function.
9905 (x_set_cursor_type): Use it.
9906
9907 * buffer.h (struct buffer): Add cursor_type.
9908
d80f42b7
SM
99092000-03-26 Stefan Monnier <monnier@cs.yale.edu>
9910
9911 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
52283633
SM
9912 (print_partial_compiled_pattern, re_compile_fastmap):
9913 Handle new opcode.
d80f42b7
SM
9914 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
9915 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
9916 executing it as well as when popping it off the stack to find infinite
9917 loops in non-greedy repetition operators.
9918
89e80928
GM
99192000-03-26 Gerd Moellmann <gerd@gnu.org>
9920
3d4ff2dd
GM
9921 * doc.c (Qfunction_documentation): New variable.
9922 (syms_of_doc): Initialize Qfunction_documentation.
9923 (Fdocumentation): If FUNCTION is a symbol with non-nil
9924 `function-documentation' property, return a documentation derived
9925 from that.
9926
bd96bd79
GM
9927 * buffer.c (syms_of_buffer): Add default-cursor-type.
9928 (init_buffer_once): Don't let cursor_type have a local value
9929 in every buffer.
9930
19d1bc27
GM
9931 * xterm.c (x_display_and_set_cursor): Choose cursor depending
9932 on buffer-local value of cursor_type.
9933 (x_draw_bar_cursor): Add parameter WIDTH.
9934
9935 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
9936 (init_buffer_once): Set default cursor_type value to t.
9937 Mark cursor_type as local everywhere.
9938 (syms_of_buffer): New per-buffer variable cursor-type.
9939
89e80928
GM
9940 * buffer.h (struct buffer): Remove member local_var_flags,
9941 add local_flags.
9942 (MAX_BUFFER_LOCAL_VARS): New macro.
9943 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
9944 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
9945 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
9946 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
9947
52283633 9948 * print.c (print_object): Use new macros for per-buffer variables.
89e80928
GM
9949
9950 * category.c (Fset_category_table): Use new macros for per-buffer
9951 variables.
9952
9953 * buffer.c (buffer_permanent_local_flags): Make a char array.
9954 (max_buffer_local_idx): New variable.
9955 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
9956 for new handling of per-buffer variables.
9957 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
9958 (init_buffer_once): Initialize per-buffer vars differently.
9959 Set max_buffer_local_idx.
9960
9961 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
9962 variables.
9963
52283633 9964 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
89e80928
GM
9965
9966 * data.c (do_symval_forwarding, store_symval_forwarding)
9967 (find_symbol_value, set_internal, default_value, Fset_default)
9968 (Fkill_local_variable, Flocal_variable_p): Use new macros for
9969 per-buffer variables.
9970
9971 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
9972
9a0dd3dc
GM
99732000-03-24 Gerd Moellmann <gerd@gnu.org>
9974
b68c375f
GM
9975 * xterm.c (x_term_init): Unblock input around call1 of
9976 Qvendor_specific_keysyms.
9977
9a0dd3dc
GM
9978 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
9979 (find_defun_start): Consider an open parenthesis in column 0
9980 a defun start only if open_paren_in_column_0_is_defun_start is set.
9981 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
9982
7973e637
SM
99832000-03-24 Stefan Monnier <monnier@cs.yale.edu>
9984
9985 * eval.c (Fautoload): Add entry in load-history (if after dump).
9986 * lread.c (load-history): Update docstring.
9987
39210e90
GM
99882000-03-24 Gerd Moellmann <gerd@gnu.org>
9989
9990 * indent.c (Fvertical_motion): Always use the current buffer.
9991 Temporarily change the window's buffer, if necessary.
9992
72db3ab5
GM
99932000-03-23 Gerd Moellmann <gerd@gnu.org>
9994
9995 * xterm.c (fast_find_position): Make sure not to consider rows
9996 not visible in the window.
9997
990b2375
SM
99982000-03-22 Stefan Monnier <monnier@cs.yale.edu>
9999
10000 * regex.c (enum syntaxcode): Provide default for non-Emacs.
10001 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
10002
ff4df011
JR
100032000-03-22 Jason Rumney <jasonr@gnu.org>
10004
10005 * w32menu.c (single_submenu): Set help string to NULL if none.
10006 (w32_menu_show): Set help string correctly.
10007 (add-menu-item): Set help string in MIIM_DATA for menu item.
10008 Load SetMenuItemInfoA explicitly.
10009 (w32_menu_display_help): New function.
427ec082 10010
ff4df011
JR
10011 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
10012 (QCdata): Moved to xdisp.c.
10013
10014 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
10015 (Vw32_charset_to_codepage_alist): Removed.
10016 (Vw32_charset_info_alist): New variable.
52283633
SM
10017 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
10018 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
10019 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
ff4df011
JR
10020 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
10021 with TODO comment.
10022 (w32_codepage_for_font): Use Vw32_charset_info_alist.
10023 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
10024 Define Vw32_charset_info_alist and w32_charset symbols.
10025
100262000-03-22 Jason Rumney <jasonr@gnu.org>
10027
10028 * makefile.nt (w32bdf.obj): Update dependencies.
10029
10030 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
10031
10032 * w32fns.c: Include fontset.h after dispextern.h.
10033 (Fx_create_frame): Do not create fontset.
10034 (w32_load_system_font): Doc fix.
10035 (Fx_close_connection): Free full_name if it is not shared.
10036
10037 * w32term.c: Include fontset.h after dispextern.h.
52283633
SM
10038 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
10039 Callers updated.
ff4df011
JR
10040 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
10041 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
10042 (w32_font_is_double_byte): New function, needs body.
10043 (x_append_glyph): Set glyph->glyph_not_available_p.
10044 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
10045 it->charset. If it->multibyte_p is zero and it->c is a multibyte
10046 character, convert it to a unibyte character.
10047 (struct glyph_string): Delete member `charset'.
10048 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
10049 calculating it is found.
10050 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
10051 the case that per char metric is not available correctly.
10052 (x_fill_glyph_string): Handle the case that the specific glyph is
10053 not available correctly.
10054 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
10055 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
10056 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
10057 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
10058 fontset. Don't call FS_LOAD_FONT.
10059
439d5cb4
KR
100602000-03-22 Ken Raeburn <raeburn@gnu.org>
10061
10062 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
10063 (INT_LISPLIKE): New macro.
10064 (NULL_INTERVAL_P): Use it.
52283633
SM
10065 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
10066 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
10067 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
439d5cb4
KR
10068
10069 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
10070 explicit references to "parent" field of struct interval and
10071 associated unclean type conversions.
52283633
SM
10072 * intervals.c (create_root_interval, root_interval, rotate_right)
10073 (rotate_left, balance_possible_root_interval, split_interval_right)
10074 (split_interval_left, interval_start_pos, find_interval)
10075 (next_interval, previous_interval, update_interval)
10076 (adjust_intervals_for_insertion, delete_node, delete_interval)
10077 (adjust_intervals_for_deletion, merge_interval_right)
10078 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
10079 (copy_intervals_to_string): Likewise.
439d5cb4
KR
10080 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
10081 Likewise.
10082 * syntax.c (update_syntax_table): Likewise.
10083
10084 * intervals.c (reproduce_tree_obj): New function, like
10085 reproduce_tree but takes a Lisp_Object for the parent. Declare
10086 with prototype.
10087 (graft_intervals_into_buffer): Use it when appropriate.
10088 (reproduce_tree): Declare with prototype.
10089 (balance_possible_root_interval): Check that the parent is a lisp
10090 object before trying to examine its type.
10091
ee1c5b21
GM
100922000-03-22 Gerd Moellmann <gerd@gnu.org>
10093
10094 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
10095 as strings only if both are known to be strings.
10096
10097 * s/openbsd.h (LIBS_TERMCAP): Undef.
10098
1fb352e0
SM
100992000-03-21 Stefan Monnier <monnier@cs.yale.edu>
10100
10101 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
10102 definitions for non-Emacs compilation.
10103 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
10104 outside of `#ifdef emacs'.
10105 (print_partial_compiled_pattern): Update.
10106 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
10107 (re_compile_fastmap): Merge handling of charset and charset_not (for
10108 emacs and non-emacs compilation as well).
10109 Similarly for (not)categoryspec and (not)syntaxspec.
10110 Don't use the fastmap when reaching `anychar' since the added
10111 complexity is not justified.
10112 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
10113 and (not)syntaxspec. Merge (not)categoryspec.
10114
fdaa1f77
KH
101152000-03-22 Kenichi Handa <handa@etl.go.jp>
10116
52283633
SM
10117 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
10118 (FACE_FOR_CHAR): Define them differently for the configuration of
ff1a0d8e 10119 --without-x.
fdaa1f77 10120
d152fb46
DL
101212000-03-21 Dave Love <fx@gnu.org>
10122
10123 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
10124 doc string.
10125
d2cafc8c
GM
101262000-03-21 Gerd Moellmann <gerd@gnu.org>
10127
10128 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
10129 (lface_fully_specified_p): Don't check contents of
10130 LFACE_FONT_INDEX because that attribute is optional.
10131 (realize_x_face): Remove now unwarranted xassert.
10132
9111d4b5
KH
101332000-03-21 Kenichi HANDA <handa@etl.go.jp>
10134
10135 The following changes are to make font selection based on
10136 characters, not charset. In addition, they recover fontset
10137 facilities while utilizing the new font selection mechanism.
10138
6c4bfdc0
KH
10139 * Makefile.in (fontset.o): Depend on dispextern.h.
10140
10141 * alloc.c (mark_face_cache): Don't mark face->registry.
10142
9111d4b5
KH
10143 * dispextern.h (struct glyph): New member glyph_not_available_p.
10144 Use 22 bits for face_id.
10145 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
10146 (struct face): Delete member registry, new member ascii_face.
10147 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
10148 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
10149 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
52283633 10150 (struct it): Delete member charset, new member glyph_not_available_p.
9111d4b5
KH
10151
10152 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
10153 (struct fontset_info, struct fontset_data): Structs removed.
52283633
SM
10154 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
10155 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
9111d4b5 10156 (fs_load_font, fs_query_fontset): Adjusted for new argument.
52283633
SM
10157 (fs_free_face_fontset, fontset_font_pattern)
10158 (face_suitable_for_char_p, face_for_char)
10159 (make_fontset_for_ascii_face): Extern them.
9111d4b5
KH
10160 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
10161 (FS_LOAD_FACE_FONT): New macro.
10162
10163 * fontset.c: All codes rewritten or adjusted for the change of
10164 fontset implementation. Now fontset is represented by char table.
52283633
SM
10165 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
10166 Variables removed.
9111d4b5 10167 (my_strcasecmp): Function removed.
52283633 10168 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
9111d4b5 10169 (AREF, ASIZE): New macros.
52283633
SM
10170 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
10171 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
10172 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
10173 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
10174 (fontset_id_valid_p, font_family_registry, fontset_name)
10175 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
10176 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
9111d4b5
KH
10177 New functions.
10178 (fs_load_font): New arg FACE. Caller changed.
10179 (fs_query_fontset): Argument changed. Caller changed.
10180 (Fquery_fontset): call fs_query_fontset.
10181 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
10182 Functions removed.
52283633
SM
10183 (clear_fontset_elements, check_registry_encoding)
10184 (check_fontset_name): New functions.
9111d4b5
KH
10185 (syms_of_fontset): Set char-table-extra-slots property of fontset
10186 to 3. Staticpro and initialize Vfontset_table and
10187 Vdefault_fontset. Defsubr fontset_font and fontset_list.
10188
10189 * frame.h (struct frame): Member `fontset_data' removed.
10190 (FRAME_FONTSET_DATA): Macro removed.
10191
10192 * frame.c (make_frame): Don't allocate f->fontset_data.
10193 (Fdelete_frame): Don't free f->fontset_data.
10194
6c4bfdc0
KH
10195 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
10196
9111d4b5
KH
10197 * xdisp.c (charset_at_position): Function removed.
10198 (init_iterator): Don't set member charset of struct `it'.
52283633
SM
10199 (handle_face_prop, reseat_to_string, set_iterator_to_next)
10200 (next_element_from_display_vector, insert_left_trunc_glyphs):
9111d4b5
KH
10201 Likewise.
10202 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
10203 FACE_FOR_CHARSET.
52283633
SM
10204 (get_next_display_element, append_space)
10205 (extend_face_to_end_of_line): Likewise.
9111d4b5
KH
10206
10207 * xfaces.c (Qx_charset_registry, Vface_default_registry):
10208 Variables removed.
10209 (clear_font_table, frame_update_line_height, load_face_font):
10210 Adjusted for the change of fontset implementation.
10211 (load_face_fontset_font): Function removed.
10212 (pixel_point_size): New function.
10213 (font_list): Argument type changed. Caller changed.
10214 (LFACE_FONT): New macro.
10215 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
10216 (set_lface_from_font_name): Type of arg FONTNAME is changed to
10217 Lisp_Object. Determine the font name by actually loading a font
10218 by the specified pattern. Set LFACE_FONT (lface) to the specified
10219 pattern. Even if a font is not found, don't try alternatives.
10220 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
10221 (set_font_frame_param): If `font' is specified in lface, use it.
10222 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
10223 (lface_same_font_attributes_p): Likewise.
10224 (make_realized_face): Arguent changed. Caller changed. Set
10225 face->ascii_face to face itself.
10226 (free_realized_face): Free face->fontset if face is for ASCII.
52283633
SM
10227 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
10228 (deduce_unibyte_registry, x_charset_registry): Functions removed.
9111d4b5
KH
10229 (free_realized_multibyte_face): New function.
10230 (lookup_face, lookup_named_face, lookup_derived_face): Argument
10231 changed. Caller changed.
10232 (try_font_list): Argument type changed.
10233 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
10234 (choose_face_font): Argument changed. Handle fontset properly.
10235 (choose_face_fontset_font): Function removed.
10236 (realize_default_face, realize_named_face): Don't remove the
10237 former face here.
10238 (realize_face): Argument changed. Caller changed. Remove face
52283633 10239 with the arg former_face_id in advance. Load font for the new face.
9111d4b5
KH
10240 (realize_x_face): Argument changed. Caller changed. For a
10241 multibyte character, share fontset with base_face. For a single
52283633 10242 byte character, make a new realized fontset. Don't load a font here.
9111d4b5
KH
10243 (realize_tty_face): Argument changed. Caller changed.
10244 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
10245 (face_at_buffer_position): Don't check multibyte_p for returning
10246 DEFAULT_FACE_ID.
10247 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
10248 FACE_SUITABLE_FOR_CHARSET_P.
10249 (syms_of_xfaces): Remove code for Qx_charset_registry and
10250 Vface_default_registry.
10251
6c4bfdc0
KH
10252 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
10253 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
10254 (x_per_char_metric): Don't try FONT->default_char. Even if
10255 pcm->width is zero, glyph bits may exist.
10256 (x_encode_char): Always initialize char2b->byte1.
10257 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
52283633 10258 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
9111d4b5
KH
10259 (x_append_glyph): Set glyph->glyph_not_available_p.
10260 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
10261 it->charset. Handle the case that per char metric is not
10262 available. If it->multibyte_p is zero and it->c is a multibyte
10263 character, convert it to a unibyte character.
10264 (struct glyph_string): Delete member `charset'.
10265 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
10266 the case that per char metric is not available correctly.
10267 (x_fill_glyph_string): Handle the case that the specific glyph is
10268 not available correctly.
10269 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
10270 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
10271 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
10272 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
10273 fontset. Don't call FS_LOAD_FONT.
10274
10275 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
10276 (x_create_tip_frame): Likewise.
10277 (Fx_close_connection): Free full_name of font_info.
10278
10279 * fns.c (optimize_sub_char_table): New function.
10280 (Foptimize_char_table): New function.
10281 (syms_of_fns): Defsubr Soptimize_char_table.
10282
b33dd3b0
GM
102832000-03-20 Gerd Moellmann <gerd@gnu.org>
10284
10285 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
10286 only if buffer is displayed in some window.
10287
10288 * xdisp.c (handle_single_display_prop): Initialize local `value'.
10289 (try_window_reusing_current_matrix): Don't call scroll run
10290 function if run's current and desired position are the same;
10291 this prevents cursor flickering.
10292
4e8a9132
SM
102932000-03-19 Stefan Monnier <monnier@cs.yale.edu>
10294
10295 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
10296
10297 * regex.c (RE_STRING_CHAR): New macro.
10298 (GET_CHAR_AFER_2): Remove.
10299 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
10300 (enum re_opcode_t): Remove on_failure_jump_exclusive.
10301 (print_partial_compiled_pattern, re_compile_fastmap)
10302 (re_match_2_internal): Remove on_failure_jump_exclusive.
10303 (regex_compile): Turn optimizable P+ loops into PP*, so that the
10304 optimization only need to work for * (ie. can use of_keep_string_jump).
10305 Remove the special case for .*\n since it is now covered by the general
10306 optimization.
10307 (re_search_2): Don't bother with `room'.
10308 (skip_one_char): New function.
10309 (skip_noops): Simplify since `memory' is not needed any more.
10310 (mutually_exclusive_p): Restructure slightly to use `switch' and
10311 add handling for "all" remaining cases.
10312 (re_match_2_internal): Change on_failure_jump_smart to use
10313 on_failure_keep_string_jump (and redirect the end-of-loop jump)
10314 rather than on_failure_jump_exclusive.
10315
2136fdd4
GM
103162000-03-19 Gerd Moellmann <gerd@gnu.org>
10317
10318 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
10319 number of bits per RGB because it's everywhere used as the depth
10320 of the visual.
10321
10322 * term.c (calculate_costs): Remove code dealing with X frames.
10323
18e21ce8 103242000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
10325
10326 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
10327
d7b511c4
GM
103282000-03-18 Gerd Moellmann <gerd@gnu.org>
10329
10330 * lread.c (read_integer): Unread the last char not consumed.
10331
16b5d424
GM
103322000-03-17 Gerd Moellmann <gerd@gnu.org>
10333
10334 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 10335 which are in the process of being deleted.
16b5d424 10336
1fa28578
GM
103372000-03-16 Gerd Moellmann <gerd@gnu.org>
10338
83488cce
GM
10339 * Makefile.in (mostlyclean): Add `*.core'.
10340 (clean): Add `bootstrap-emacs'.
10341
1fa28578
GM
10342 * lread.c (read_integer): New function.
10343 (read1): Support read syntax #o, #x, #b, #r.
10344
99633e97
SM
103452000-03-15 Stefan Monnier <monnier@cs.yale.edu>
10346
1fa28578
GM
10347 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
10348 make sure POINTER_TO_OFFSET gives the same value before and after
10349 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
10350 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
10351 (debug): Now only active if > 0 rather than if != 0.
10352 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
10353 (print_partial_compiled_pattern): Add missing `succeed' case. Use
10354 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
10355 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
10356 (store_op1, store_op2, insert_op1, insert_op2)
10357 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
10358 (group_in_compile_stack): Move to after its arg's types are
10359 declared and add a prototype.
99633e97 10360 (PATFETCH): Define in terms of PATFETCH_RAW.
52283633 10361 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
99633e97 10362 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
10363 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
10364 indentation of the greedy-op and shy-group code.
99633e97
SM
10365 (at_(beg|end)line_loc_p): Fix argument's types.
10366 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
10367 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
10368 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
10369 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
10370 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
10371 QUIT unconditionally.
99633e97 10372
699238d9
GM
103732000-03-15 Gerd Moellmann <gerd@gnu.org>
10374
10375 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
10376 a sole completion.
10377
10378 * process.c (send_process): Add a hint that the function
10379 can call Lisp code to its comment.
10380
10381 * lread.c (load_dangerous_libraries): New variable.
10382 (Vbytecomp_version_regexp): New variable.
10383 (safe_to_load_p): New function.
10384 (Fload): Handle files not compiled with Emacs specially.
10385 (syms_of_lread): New Lisp variable load-dangerous-libraries.
10386
34e23e5a
GM
103872000-03-14 Gerd Moellmann <gerd@gnu.org>
10388
9c763cca
GM
10389 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
10390
10391 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
10392 support functions only if HAVE_X11R6_XIM is defined.
10393 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
10394
10395 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
10396
10397 * xfns.c (X_I18N_INHIBITED): Don't define.
52283633 10398 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
9c763cca
GM
10399 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
10400
10401 * config.in (HAVE_X_I18N): Moved here from xterm.h.
10402 (HAVE_X11R6_XIM): Define.
10403
10404 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
10405
34e23e5a
GM
10406 * xterm.c (x_term_init): Add support for X resource `synchronous'.
10407 If set, call XSynchronize.
10408
66f0296e
SM
104092000-03-13 Stefan Monnier <monnier@cs.yale.edu>
10410
34e23e5a
GM
10411 * regex.c: Declare a new type `re_char' used throughout the code
10412 for the string char type. It's `const unsigned char' to match the
10413 rest of Emacs. Consistently make sure all pointers to strings use
52283633 10414 it and make sure all pointers into the pattern use `unsigned char'.
66f0296e 10415 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
10416 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
10417 code duplication.
66f0296e
SM
10418
10419 * charset.h (GET_CHAR_AFTER_2): Remove.
10420 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
10421
854a025c
KR
104222000-03-12 Ken Raeburn <raeburn@gnu.org>
10423
10424 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
10425 variable before the invocation of YMF_PASS_LDFLAGS, in case both
10426 of them try to use backquotes.
10427
b9d2c7e2
DL
104282000-03-12 Dave Love <fx@gnu.org>
10429
10430 * unexelf.c: Restore changes of 1999-10-19.
10431 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
10432 fix its type and alignment; copy it from current process.
10433
5e5dff44
GM
104342000-03-12 Gerd Moellmann <gerd@gnu.org>
10435
9b2f3c38
GM
10436 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
10437 has been found. Fix bug not computing timer's predecessor.
10438
427ec082 10439 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
10440 file name.
10441
e1cff360
GM
10442 * window.c (Fsave_window_excursion): Doc fix.
10443
52283633 10444 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
5e5dff44 10445
e411ce4b
EZ
104462000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
10447
10448 * msdos.c (vga_installed): New function, code moved from
10449 dos_set_window_size.
10450 (Qbar, Qcursor_type, outside_cursor): New variables.
10451 (syms_of_msdos): Intern and staticpro them.
10452 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
10453 shape used outside Emacs when called for the first time.
10454 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
10455 cursor shape used outside Emacs.
10456 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
10457 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
10458 type has changed.
10459 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
10460 parameters specify the cursor. Make qreverse a global
10461 variable (renamed to Qreverse).
10462
80460654
GM
104632000-03-09 Gerd Moellmann <gerd@gnu.org>
10464
10465 * fns.c (Fy_or_n_p): Cancel busy-cursor.
10466
95cd4c40
SM
104672000-03-08 Stefan Monnier <monnier@cs.yale.edu>
10468
10469 This is a big redesign of failure-stack and register handling, prompted
10470 by bugs revealed when trying to add shy-groups. Overall, what happened
10471 is that loops are now structured a little differently, groups can be
10472 shy and the code is a little simpler.
10473
10474 * regex.h: Update the copyright.
10475 (RE_SHY_GROUPS): New value.
10476 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
10477 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
10478
80460654
GM
10479 * regex.c (enum re_opcode_t): Remove jump_past_alt,
10480 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
10481 on_failure_jump_(exclusive, loop and smart). Also fix the comment
10482 for (start|stop)_memory since they now only take one argument (the
10483 second has becomes unnecessary).
52283633 10484 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
80460654
GM
10485 (print_compiled_pattern): Use %ld to printf long ints and flush to
10486 make debugging a little easier.
95cd4c40
SM
10487 (union fail_stack_elt): Make the integer unsigned.
10488 (struct fail_stack_type): Add a `frame' element.
10489 (INIT_FAIL_STACK): Init `frame' as well.
10490 (POP_PATTERN_OP): New macro for re_compile_fastmap.
10491 (DEBUG_PUSH, DEBUG_POP): Remove.
10492 (NUM_REG_ITEMS): Remove.
10493 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
10494 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
10495 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 10496 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
52283633
SM
10497 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
10498 New macros.
80460654
GM
10499 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
10500 address pushed is not the destination of the jump but the source
10501 of it instead.
95cd4c40
SM
10502 (NUM_FAILURE_ITEMS): Remove.
10503 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
10504 registers before the actual failure point). Don't hardcode any
10505 meaning for str==NULL anymore.
95cd4c40 10506 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
10507 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
10508 Remove.
95cd4c40
SM
10509 (REG_UNSET_VALUE): Use NULL (why not?).
10510 (compile_range): Remove declaration since it doesn't exist.
10511 (struct compile_stack_elt_t): Remove inner_group_offset.
10512 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
10513 (regex_grow_registers): Remove dead code.
10514 (FIXUP_ALT_JUMP): New macro.
80460654
GM
10515 (regex_compile): Add shy-groups Change loops to use
10516 on_failure_jump_smart&jump instead of
10517 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
10518 initial (dummy_failure_)jump. Remove c1_base (looks like unused
10519 variable to me). Use `jump' instead of `jump_past_alt' and don't
10520 bother with push_dummy_failure in alternatives since it is now
10521 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
10522 emacs' for (re)allocating the stack.
10523 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
10524 from loop when bufp->can_be_null rather than jumping to `done'.
10525 Avoid jumping backwards so as to ensure termination. Use
10526 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
10527 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 10528 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
10529 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
10530 improve mutually_exclusive_p to handle ".+\n".
52283633
SM
10531 (lowest_active_reg, highest_active_reg)
10532 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
80460654
GM
10533 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
10534 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
10535 variables. Push register (in `start_memory') on the stack rather
10536 than storing it in old_reg(start|end). Remove the cycle detection
10537 from `stop_memory', replaced by the use of on_failure_jump_loop
10538 for greedy loops. Add code for the new on_failure_jump_<foo>.
10539 Remove ad-hoc code in `on_failure_jump' to push more registers in
10540 the case of a loop. Take out code from `maybe_pop_jump' into
10541 separate functions and adapt it to the semantics of
10542 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
10543 and push_dummy_failure. Remove dummy_failure handling and
10544 handling of `failures to jump to on_failure_jump' (this last one
10545 was already dead code, it seems).
10546 (group_match_null_string_p, alt_match_null_string_p)
10547 (common_op_match_null_string_p): Remove.
95cd4c40 10548
7397acc4
DL
105492000-03-08 Dave Love <fx@gnu.org>
10550
10551 * config.in: Don't depend on __STDC__ for volatile.
10552 Add POINTER_TYPE, PTR, PROTOTYPES.
10553
10554 * hftctl.c, strftime.c: Use PROTOTYPES.
10555 * eval.c (find_handler_clause): Likewise.
10556
10557 * mem-limits.h: Use POINTER_TYPE.
10558
10559 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
10560 (memory_warnings): Declare using POINTER_TYPE.
10561
5e91ff9e
GM
105622000-03-08 Gerd Moellmann <gerd@gnu.org>
10563
feab4fba
GM
10564 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
10565
52283633 10566 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
25edb08f 10567
5e91ff9e
GM
10568 * xfns.c: Remove obsolete code in #if 0.
10569 (Fx_focus_frame): New function.
10570
a735b7e1
KH
105712000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
10572
10573 * coding.c (coding_category_name): Add coding-category-utf-8,
10574 coding-category-utf-16-be, coding-category-utf-16-le.
10575 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
10576 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
10577 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
10578 (detect_coding_utf_8): New function.
10579 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
10580 UTF_16_LOW_SURROGATE_P): New macros.
10581 (detect_coding_utf_16): New function
10582 (detect_coding_mask): When priorities are specified, skip any
10583 categories that have `nil' coding-system. Fix bug of returning
10584 wrong mask when PRIORITIES is specified and detect_coding_XXX()
10585 returns a mask not set in PRIORITIES.
10586 (detect_eol_type_in_2_octet_form): New function.
10587 (detect_eol): selects detect_eol_type_XXX to call according to
10588 cooding->category_idx.
10589 (detect_coding_system): Remove `nil' coding-system in the result.
10590 (Fupdate_coding_systems_internal): Update all coding-categories.
10591
52283633
SM
10592 * coding.h (CODING_CATEGORY_IDX_UTF_8)
10593 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
10594 New macros.
10595 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
10596 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
10597 (CODING_CATEGORY_IDX_UTF_16_LE)
10598 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
10599 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
a735b7e1
KH
10600 (CODING_CATEGORY_MASK_ANY): Include the above macros.
10601 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
10602
9994cc69
GM
106032000-03-07 Gerd Moellmann <gerd@gnu.org>
10604
e9b4e5ff
GM
10605 * doc.c (Fdocumentation_property): If value is not a string,
10606 and doesn't refer to etc/DOC, evaluate it to obtain a string.
10607
f7daf1e1
GM
10608 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
10609 close the display with XtCloseDisplay. This caused a bus error
10610 on OpenWindows.
10611
9994cc69
GM
10612 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
10613 complete but not unique.
10614
4336c705
GM
106152000-03-06 Gerd Moellmann <gerd@gnu.org>
10616
18bb0684
GM
10617 * process.c (send_process): Remove local variable `procname' that
10618 might become invalid when a GC happens. Instead, access the
10619 process name slot directly.
10620
4336c705
GM
10621 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
10622 orig_height if set.
10623
10624 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
10625 orig_height if set.
10626
515d0d0e
EZ
106272000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
10628
10629 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
10630 glyph matrices have been freed.
10631
100b3cbb
GM
106322000-03-05 Gerd Moellmann <gerd@gnu.org>
10633
50df5e5a 10634 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 10635 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
10636
10637 * xfns.c (QCdata): Moved to xdisp.c.
10638
10639 * xdisp.c (QCdata): Moved here from xfns.c.
10640 (syms_of_xdisp): Initialize QCdata.
10641
10642 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
10643
10644 * window.c (coordinates_in_window): Use
10645 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
10646 FRAME_INTERNAL_BORDER_WIDTH.
10647
100b3cbb 10648 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 10649 it is obviously invalid.
100b3cbb
GM
10650
10651 * xterm.c (x_term_init): Create a colormap if not using the
10652 default visual.
10653
10654 * xterm.h (select_visual): Change prototype.
10655
10656 * xfns.c (select_visual): Rewritten. Recognize user-specified
10657 visual classes.
10658 (visual_classes): New variable.
10659
64d739c4
GM
106602000-03-04 Gerd Moellmann <gerd@gnu.org>
10661
10662 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
10663 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
10664 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
52283633 10665 (x_decode_color): Don't handle allocation of white and black specially.
64d739c4
GM
10666 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
10667 XtNcolormap resources.
10668 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
10669 (Fx_create_frame): Initialize color members of x_output structure.
10670 (xpm_load): Pass colormap to XPM lib.
10671
10672 * xfaces.c (x_free_colors): Access colormap of frame using
10673 FRAME_X_COLORMAP. Be paranoid about freeing black and white
10674 when default colormap is used.
10675
10676 * xterm.c (x_term_init): Set Colormap member of x_display_info
10677 structure. Copy colormap if resource `privateColormap' is
10678 specified (PseudoColor only).
10679 (x_setup_relief_color): Access colormap of frame using
10680 FRAME_X_COLORMAP.
10681
10682 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
10683 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
10684
c3cee013
JR
106852000-03-04 Jason Rumney <jasonr@gnu.org>
10686
10687 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
10688 other non-platform-specific equivalents.
64d739c4 10689 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
10690 specific functions and macros as their w32 equivalents where
10691 non-platform-specifics are not available.
10692 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
10693 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
10694 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
10695 (frame_update_line_height): Use macros to access f->output_data.
10696 (defined_color): Remove FIXME comments; fixed.
10697 (x_face_list_fonts, prepare_face_for_display): Put X specifics
10698 into #ifdef blocks. Add WINDOWSNT blocks.
10699 (Fx_list_fonts): Use macros for accessing font data.
10700 (set_lface_from_font_name): Different default fonts for X and
10701 WINDOWSNT.
10702 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
10703 scalable for backward compatibility.
64d739c4 10704 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
10705 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
10706
64d739c4 10707 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
10708 syms_of_w32faces.
10709
10710 * makefile.nt (w32faces.obj): Remove.
10711 (xfaces.obj): Add.
10712
807cc41c
JR
107132000-03-03 Jason Rumney <jasonr@gnu.org>
10714
10715 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
10716 correct parameters.
10717
0007072a
KR
107182000-03-03 Ken Raeburn <raeburn@gnu.org>
10719
10720 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
10721 standard ELF definitions here if the system header does not.
10722
71a6ba55
GM
107232000-03-03 Gerd Moellmann <gerd@gnu.org>
10724
10725 * xterm.c (PER_CHAR_METRIC): Removed.
10726 (x_per_char_metric_1, x_default_char): New functions.
10727 (x_per_char_metric): If font's default char is invalid, return
10728 metrics of a suitably chosen usable default char.
10729 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
10730 char, replace occurrences of unprintable chars with a suitably
10731 chosen usable default char.
71a6ba55 10732
900fa1f1
GM
107332000-03-02 Gerd Moellmann <gerd@gnu.org>
10734
42f55fe0
GM
10735 * xterm.c (note_mouse_highlight): Return quickly if frame's
10736 glyph matrices have been freed.
10737
10738 * dispnew.c (free_glyphs): Block input while freeing matrices.
10739
900fa1f1
GM
10740 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
10741
52283633
SM
10742 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
10743 Use x_free_colors.
900fa1f1
GM
10744
10745 * dispextern.h (x_free_colors): Add prototype.
10746
10747 * xfaces.c (x_free_colors): New function.
10748 (unload_color, free_face_colors): Use it.
10749
2f950292
EZ
107502000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
10751
10752 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
10753
10754 * window.c [MSDOS]: Include msdos.h.
10755
54d04320
DL
107562000-03-02 Dave Love <fx@gnu.org>
10757
10758 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
10759
10760 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
10761 set C_OPTIMIZE_SWITCH for gcc.
10762
0ba93ac4
KH
107632000-03-02 Kenichi Handa <handa@etl.go.jp>
10764
10765 * coding.c (coding_save_composition): Be sure to allocate
10766 composition data area in coding even if there's no composition in
10767 the current run.
10768
a2bc11d4
JR
107692000-03-01 Jason Rumney <jasonr@gnu.org>
10770
10771 * w32term.c: Equivalent changes to those made to xterm.c on
10772 2000-02-25 and 2000-02-24.
10773
10774 * w32fns.c: Equivalent changes to those made to xfns.c on
10775 2000-02-25 and 2000-02-21.
10776
10777 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
10778 correct line-end convention is followed.
10779
10780 * w32menu.c [HAVE_BOXES]: Remove #undef.
10781 (single_keymap_panes): Remove code for simulating checkmarks.
10782 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
10783 Remove code for drawing simulated checkmarks.
10784 (w32_menu_show): make unibyte help string correctly.
10785 (add_menu_item): draw standard Windows checkmarks. Draw radio
10786 buttons as radio buttons if possible.
10787
72d19d75
GM
107882000-03-01 Gerd Moellmann <gerd@gnu.org>
10789
2df636f4
GM
10790 * sysdep.c (start_of_text): Don't define this function for NetBSD
10791 with ELF.
10792
427ec082 10793 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
10794 Don't define.
10795 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
10796 (LINKER): Don't undef if __NetBSD__ is defined.
10797
10798 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
10799
10800 * fileio.c [__NetBSD__]: Define `unix'.
10801
72d19d75
GM
10802 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
10803
ed4d0512
GM
108042000-02-29 Gerd Moellmann <gerd@gnu.org>
10805
50b1039f
GM
10806 * atimer.c (start_atimer): Don't abort when timers are stopped.
10807 (append_atimer_lists): New function.
10808 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
10809 arbitrary lists of stopped and running atimers.
10810
ed4d0512
GM
10811 * atimer.c (cancel_atimer): Handle canceling an atimer when
10812 some timers are stopped.
10813
10814 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
10815 after canceling it.
10816
10817 * fns.c (maybe_resize_hash_table): Handle case of new size
10818 coming out as being the same as old size.
10819
387023ee
JR
108202000-02-27 Jason Rumney <jasonr@gnu.org>
10821
10822 * makefile.nt: Add atimer.h to dependencies.
10823 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
10824 * w32console.c: Only disable window system features for dispextern.h
10825 (initialize_w32_display): Build a display info for the console.
10826 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
10827 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
10828 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
10829 as 2 button mice.
10830 * w32gui.h (struct W32FontStruct): Revert last change after change
10831 to xdisp.c.
10832 * w32menu.c (single_submenu): Set up help string.
10833 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
10834 (w32_dialog_show): Set up help string.
10835 * w32term.c (w32_display_info_for_display): Remove unused function.
10836 (w32_draw_bitmap): Use pre-built bitmaps.
10837 (w32_initialize_display_info): New function to initialize parts of
10838 display info that are common to both GUI and console frames.
10839 (w32_term_init): Use w32_initialize_display_info. Do not set
10840 Vw32_num_mouse_buttons here, as it is not called for console
10841 frames. Build bitmaps for indicating truncated lines etc.
10842 (x_delete_display): Destroy pre-built bitmaps.
10843 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
10844 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
10845
4516715a
DL
108462000-02-27 Dave Love <fx@gnu.org>
10847
10848 * lisp.h: Add a bunch of prototypes.
10849
171ca836
KH
108502000-02-26 Kenichi Handa <handa@etl.go.jp>
10851
10852 * keyboard.c (read_char): Set `usec' correctly.
10853
4013921d
KH
108542000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
10855
10856 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
10857 `lambda', set reg[RRR] to the map index.
10858 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
10859 reg[RRR] to 0. Otherwise, set it to -1.
10860
9244a058
GM
108612000-02-25 Gerd Moellmann <gerd@gnu.org>
10862
2df636f4 10863 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 10864
18e21ce8 108652000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 10866
f43d79c1
GM
10867 * fileio.c (Ffile_symlink_p): If result starts with a `/'
10868 and contains a `:', prepend `/:'.
10869
10870 * window.c (select_window_1): If selected_window is nil,
10871 don't "swap out" the buffer's point.
10872 (Fset_window_configuration): Set selected_window to nil
10873 before calling Fselect_window.
10874 (unshow_buffer): Don't set point in buffer from window's point
10875 if another more recently selected window also shows the buffer.
10876
bed0c171
GM
108772000-02-25 Gerd Moellmann <gerd@gnu.org>
10878
449c3c52
GM
10879 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
10880
f5b58615
GM
10881 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
10882 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
52283633
SM
10883 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
10884 New variables.
f5b58615
GM
10885 (DEFAULT_BUSY_CURSOR_DELAY): New define.
10886 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
10887 (hide_busy_cursor): New functions.
10888 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
10889
10890 * minibuf.c (read_minibuf): Cancel busy-cursor.
10891
10892 * keyboard.c (command_loop_1): Call start_busy_cursor before
10893 Fcommand_execute and cancel_busy_cursor after it.
10894 (timer_check): Remove busy-cursor code.
10895 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
10896 cursor timer.
10897
10898 * process.c (wait_reading_process_input): Remove busy-cursor code.
10899
10900 * eval.c (Fsignal): Call cancel_busy_cursor instead of
10901 Fx_hide_busy_cursor.
10902
10903 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
10904 Remove prototyoes.
10905 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
10906
10907 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
10908
10909 * xterm.c (XTread_socket): Remove busy-cursor code.
10910
4eb8436f
GM
10911 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
10912 (build_frame_matrix_from_leaf_window): Put code handling
10913 glyph row's not being a slice of a frame row in #if 0.
10914 (sync_window_with_frame_matrix_rows): New function.
10915 (frame_row_to_window): New function.
10916 (mirror_line_dance): Handle copies between windows.
10917
3cb65b0e
GM
10918 * lread.c (Fload): Use `xfree' instead of `free'.
10919 (init_obarray): Use `xmalloc' instead of `malloc'.
10920
bed0c171
GM
10921 * window.c (Fset_window_buffer): Set WINDOW to the window
10922 after decoding.
2add4349
GM
10923 (coordinates_in_window): Take frame's internal border width
10924 into account.
bed0c171 10925
42088c12
GM
109262000-02-24 Gerd Moellmann <gerd@gnu.org>
10927
10928 * xterm.c (x_display_and_set_cursor): Display cursor of
10929 non-selected windows depending on the setting of
10930 cursor_in_non_selected_windows.
10931
10932 * xdisp.c (cursor_in_non_selected_windows): New variable.
10933 (syms_of_xdisp): DEFVAR_BOOL it.
10934
d1e103b2
GM
109352000-02-23 Gerd Moellmann <gerd@gnu.org>
10936
723e779c
GM
10937 * data.c (Fstring_to_number): If number is greater than what
10938 fits into an integer, return a float.
10939
d1e103b2
GM
10940 * eval.c (specbind): Remove references to
10941 keyword_symbols_constant_flag.
10942
10943 * data.c (keyword_symbols_constant_flag): Removed.
10944 (Fmakunbound, set_internal, syms_of_data): Remove references to
10945 keyword_symbols_constant_flag.
10946
10947 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
10948
214f877f
KH
109492000-02-23 Kenichi Handa <handa@etl.go.jp>
10950
10951 * syntax.c (multibyte_syntax_as_symbol): New variable.
10952 (syms_of_syntax): Declare it as a Lisp variable.
10953 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
10954 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
10955 nonzero, treat all multibyte characters as symbol.
52283633 10956 (init_syntax_once): Give syntax `word' to all multibyte characters.
214f877f 10957
130adcb7
EZ
109582000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
10959
3cb65b0e 10960 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 10961 a deleted frame.
130adcb7 10962
17cbbf95
GM
109632000-02-21 Gerd Moellmann <gerd@gnu.org>
10964
10965 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
10966
10967 * xfns.c (x_window_to_frame, x_any_window_to_frame)
10968 (x_non_menubar_window_to_frame): Check the busy-cursor window.
10969
beb0bc36
DL
109702000-02-21 Dave Love <fx@gnu.org>
10971
10972 * frame.c (Vmouse_position_function): New variable.
10973 (Fmouse_position): Use it.
10974 (syms_of_frame): Install it.
10975
10976 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
10977
1d92afcd
GM
109782000-02-20 Gerd Moellmann <gerd@gnu.org>
10979
10980 * fileio.c (Finsert_file_contents): Unbind the binding of
10981 standard-output done by temp_output_buffer_setup.
329eed9f
GM
10982
10983 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
10984 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
10985 (specbind, unbind_to): Handle most common case of non-constant
10986 symbol with trivial value specially.
10987
10988 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
10989
18e21ce8 109902000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
10991
10992 * data.c (Fmake_variable_buffer_local): Doc fix.
10993 Init found_for_buffer to 0.
10994 (Fmake_variable_frame_local): If the variable has already
10995 been buffer-local, set the check_frame field.
10996
1d4311c3
EZ
109972000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
10998
10999 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
11000 produced for CODING_MODE_LAST_BLOCK requires.
11001
2dc95ddd
DL
110022000-02-18 Dave Love <fx@gnu.org>
11003
11004 * keyboard.c (echo_keystrokes): Remove declaration.
11005 (Vecho_keystrokes) New variable.
11006 (read_char, record_menu_key, read_key_sequence): Use it to allow
11007 use of float value.
11008 (syms_of_keyboard): Change Vecho_keystrokes declaration.
11009
11010 * lread.c: Undef feature selection macros before defining.
11011
f0930f35
GM
110122000-02-18 Gerd Moellmann <gerd@gnu.org>
11013
11014 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
11015 for symbols other than the symbol in question.
11016
e3d4de90
DL
110172000-02-17 Dave Love <fx@gnu.org>
11018
11019 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
11020
0b378936
GM
110212000-02-17 Gerd Moellmann <gerd@gnu.org>
11022
d621caf7
GM
11023 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
11024
0b378936
GM
11025 * alloc.c (enum mem_type): Compile unconditionally.
11026
3b451f74
EZ
110272000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
11028
11029 * xfaces.c (tty_defined_color): Don't return faulire indication
11030 for unspecified-fg and unspecified-bg pseudo-colors.
11031
10689a01
GM
110322000-02-17 Gerd Moellmann <gerd@gnu.org>
11033
1216f5e4
GM
11034 * alloc.c (mark_object): Don't mark symbol names in pure space.
11035 (gc_sweep): Don't unmark symbol names in pure space.
11036
11037 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
11038 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
11039 [GC_MARK_STACK]: New defines.
427ec082 11040 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
11041 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
11042
11043 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
11044
11045 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
11046 allocate_buffer instead of xmalloc.
11047
11048 * alloc.c (toplevel): Include setjmp.h.
11049 (PURE_POINTER_P): New define.
11050 (enum mem_type) [GC_MARK_STACK]: New enumeration.
11051 (Vdead) [GC_MARK_STACK]: New variable.
11052 (lisp_malloc): Add parameter TYPE, call mem_insert if
11053 GC_MARK_STACK is defined.
11054 (allocate_buffer): New function.
427ec082 11055 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
11056 (free_float) [GC_MARK_STACK]: Set type to Vdead.
11057 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
11058 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
11059 (MEM_NIL) [GC_MARK_STACK]: New define.
11060 (struct mem_node) [GC_MARK_STACK]: New structure.
11061 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
11062 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
11063 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
11064 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
11065 (mark_stack) [GC_MARK_STACK]: New functions.
11066 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
11067 (clear_marks): Removed.
11068 (gc_sweep): Set free conses' car, free floats' type, free
11069 symbols' function to Vdead. Use lisp_free to free buffers.
11070 (init_alloc_once): Initialize Vdead.
11071 (survives_gc_p): Return non-zero for pure objects.
11072
11073 * alloc.c: Add comments throughout the file.
11074
2503c8b1
GM
11075 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
11076 that unblocks alarms.
11077
8389e1e2
GM
11078 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
11079 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
11080 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
11081
10689a01 11082 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 11083
bfc17d18
KH
110842000-02-17 Kenichi Handa <handa@etl.go.jp>
11085
4a09dee0
KH
11086 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
11087 avoid infinite error signaling. Allocate sufficient memory for
11088 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 11089
2b927d02
SM
110902000-02-17 Stefan Monnier <monnier@cs.yale.edu>
11091
11092 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
11093 depends on the previous behavior.
11094
b49cb764
GM
110952000-02-16 Gerd Moellmann <gerd@gnu.org>
11096
11097 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
11098
99e95407
GM
110992000-02-15 Gerd Moellmann <gerd@gnu.org>
11100
11101 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
11102
11103 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 11104 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
11105 write(2).
11106
6ffd3cf7
RS
111072000-02-15 Richard M. Stallman <rms@gnu.org>
11108
11109 * data.c (set_internal): Don't make variable buffer-local
11110 if within a let-binding for the same buffer.
11111 (let_shadows_buffer_binding_p): New function.
11112
11113 * eval.c (specbind): For buffer-local value,
11114 record the current buffer also.
11115 (unbind_to): Cope with that change.
11116
cad53475
GM
111172000-02-15 Gerd Moellmann <gerd@gnu.org>
11118
11119 * window.c (Fsave_window_excursion): Doc fix.
11120
1aa963c8
SM
111212000-02-15 Stefan Monnier <monnier@cs.yale.edu>
11122
11123 * syntax.c (back_comment): Make sure we only consider comment-starters
11124 of the relevant style and return -1 in case of a failure to find the
11125 beginning of the comment.
11126 (Fforward_comment): If back_comment fails, go back to the position just
11127 after the comment-end.
11128 (scan_lists): Add comment describing a very minor bug.
11129
b9b84fd3
SM
111302000-02-14 Stefan Monnier <monnier@cs.yale.edu>
11131
11132 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
11133 `completion-regexp-list' in the docstring.
11134
3a28db80
DL
111352000-02-14 Dave Love <fx@gnu.org>
11136
11137 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
11138
fb4a568d
SM
111392000-02-14 Stefan Monnier <monnier@cs.yale.edu>
11140
11141 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
11142 to Emacs' syntax. Also fix the comment about set/not-set meanings
11143 since Emacs syntax is not the value 0 any more.
11144 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
11145 since it's now part of RE_SYNTAX_EMACS.
11146
1063ebb5
DL
111472000-02-12 Dave Love <fx@gnu.org>
11148
52283633 11149 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
1063ebb5 11150
fb07a302
GM
111512000-02-12 Gerd Moellmann <gerd@gnu.org>
11152
11153 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
11154
aaf2320c
DL
111552000-02-12 Dave Love <fx@gnu.org>
11156
11157 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
11158
11159 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
11160 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
11161 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
11162
11163 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
11164
11165 * s/nextstep.h: Don't define HAVE_ALLOCA.
11166
11167 * config.in: Add vfork bits.
11168
eedf8bde
GM
111692000-02-12 Gerd Moellmann <gerd@gnu.org>
11170
11171 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
11172 unwind function to undo the effect of stopping atimers.
11173
52283633 11174 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
eedf8bde
GM
11175
11176 * atimer.c (stopped_atimers): New variable.
11177 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
11178 New functions.
11179
11180 * atimer.h (stop_other_atimers, run_all_atimers)
11181 (unwind_stop_other_atimers): Add function prototypes.
427ec082 11182
eedf8bde
GM
11183 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
11184
8476c2f8
KR
111852000-02-11 Ken Raeburn <raeburn@gnu.org>
11186
11187 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
11188 library may depend on jpeg.
11189 (atimer.o): Depends on atimer.c.
11190
0e85e4a3
KH
111912000-02-11 Kenichi Handa <handa@etl.go.jp>
11192
11193 * insdel.c (del_range_1): Call update_compositions.
11194 (del_range_both): Call update_compositions just once..
11195
97fa0cc8
DL
111962000-02-10 Dave Love <fx@gnu.org>
11197
11198 * xfns.c (create_frame_xic): Fix initialization of automatic
11199 aggregates for pcc.
11200
25566a3c
KH
112012000-02-09 Kenichi Handa <handa@etl.go.jp>
11202
11203 * ccl.c (CCL_MAKE_CHAR): New macro.
11204 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
11205 registers by CCL_MAKE_CHAR before calling translate_char.
11206 <CCL_TranslateCharacterConstTbl> Likewise.
11207
69da54ba
DL
112082000-02-08 Dave Love <fx@gnu.org>
11209
11210 * lread.c (__EXTENSIONS__): Define.
11211
f7136ee8
GM
112122000-02-08 Gerd Moellmann <gerd@gnu.org>
11213
11214 * puresize.h (BASE_PURESIZE): Increase to 650000.
11215
7768790b
EZ
112162000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
11217
11218 * msdos.c (XMenuActivate): Turn off the cursor after displaying
11219 the help message.
11220
38fd211b
EZ
112212000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
11222
11223 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
11224 md, mh, mb, mr, and me to the fake termcap entry.
11225
66e4690f
KR
112262000-02-06 Ken Raeburn <raeburn@gnu.org>
11227
11228 * sound.c (sound_cleanup): Don't call device close routine if the
11229 function pointer is null.
11230
a75dfea0
AI
112312000-02-06 Andrew Innes <andrewi@gnu.org>
11232
11233 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
11234 around image definitions and prototypes.
11235 (gamma_correct) [WINDOWSNT]: New prototype.
11236
11237 * w32term.c (x_make_frame_visible): Replace call to
11238 input_poll_signal with poll_for_input.
11239
11240 * window.c [WINDOWSNT]: Include w32term.h.
11241
11242 * xdisp.c [WINDOWSNT]: Include w32term.h.
11243
11244 * makefile.nt: Add dependencies on w32gui.h.
11245 (OBJ1): Include atimer.obj.
11246 ($(BLD)\atimer.obj): New dependency rule.
11247
11248 * w32.c (sigmask): New function (does nothing).
11249 (sigunblock): Ditto.
11250
11251 * frame.c [WINDOWSNT]: Include w32term.h.
11252
11253 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
11254
11255 * lread.c (syms_of_lread): Fix literal newlines.
11256
11257 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
11258 the string constant limit (2048 bytes) in MSVC.
11259 (main): Ditto.
11260
59ddecde
GM
112612000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
11262
52283633 11263 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
59ddecde
GM
11264 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
11265 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
11266 dispatch the event.
11267
07590973
DL
112682000-02-04 Dave Love <fx@gnu.org>
11269
11270 * fileio.c: Remove some unused vars.
11271 (_GNU_SOURCE): Define (for euidaccess).
11272
11273 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
11274
11275 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
11276 gcpro1, gcpro2.
11277 (read_minibuf): Deal with allow_props correctly.
11278
649351f9
EZ
112792000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
11280
11281 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
11282
66e4690f 112832000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
11284
11285 * search.c (compile_pattern): If a cache entry has a nil regexp,
11286 fill in that entry instead of clobbering a previously cached
11287 string regexp.
11288
66e4690f 112892000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
11290
11291 * puresize.h (BASE_PURESIZE): Increase to 610000.
11292
d240a249
GM
112932000-02-02 Gerd Moellmann <gerd@gnu.org>
11294
11295 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
11296 can GC.
11297
ca91fb26
KH
112982000-02-02 Kenichi Handa <handa@etl.go.jp>
11299
25660570
KH
11300 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
11301 instead of incrementing ic directly.
11302 <CCL_WriteExprConst> Likewise.
11303 <ccl_set_expr>: Set ic to jump_address.
11304
ca91fb26
KH
11305 * fileio.c (e_write): Fix the handling of
11306 CODING_FINISH_INSUFFICIENT_SRC.
11307
2ede9689
DL
113082000-02-01 Dave Love <fx@gnu.org>
11309
11310 * editfns.c (Fpropertize): Doc fix.
11311
11312 * process.c (Fstart_process): Doc fix.
11313
11314 * eval.c: Fix various doc strings not to duplicate information
11315 from help-manyarg-func-alist.
11316
52283633 11317 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
2ede9689
DL
11318
11319 * doc.c (Vhelp_manyarg_func_alist): New variable.
11320 (Fdocumentation): Use it.
11321 (syms_of_doc): Define it.
11322
b6680a0e
GM
113232000-01-31 Gerd Moellmann <gerd@gnu.org>
11324
2cb750ba
GM
11325 * xterm.c (xim_open_dpy): Remove unused local variable.
11326
52283633 11327 * emacs.c (USAGE): Use term `display options' instead of `X options'.
74e9213b
GM
11328
11329 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
11330 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
11331
b6680a0e
GM
11332 * fns.c (sweep_weak_table): New function.
11333 (sweep_weak_hash_tables): Use it. Keep on marking until there
11334 is no more change.
11335
994c5afe
GM
113362000-01-30 Gerd Moellmann <gerd@gnu.org>
11337
11338 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
11339 that XTread_socket does not crash by trying to call XNoOp on a
11340 closed display.
427ec082 11341
f00276e3
JR
113422000-01-30 Jason Rumney <jasonr@gnu.org>
11343
11344 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
11345 Change selected_frame to SELECTED_FRAME ().
11346 (w32_console_mouse_position): Remove #ifndef MULE from around
11347 `insist' parameter.
11348
11349 * makefile.nt: Remove dosfns.obj.
11350
11351 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
11352
11353 * w32fns.c (w32_defined_color): Check for valid frame before
11354 applying gamma correction. Eliminate dependency on frame elsewhere.
11355 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
11356 (w32_to_x_font): Use resx and resy not height_in and width_in.
11357 (x_to_w32_font): Doc fix.
11358 (xlfd_strip_height): New function to strip and return font height.
11359 (w32_font_match): Compare height separately from rest of xlfd
11360 spec, using xlfd_strip_height.
11361
11362 * w32term.c (w32_term_init): Swap resx and height_in, resy and
11363 width_in. Use w32_defined_color in place of defined_color.
11364
11365 * w32faces.c: Merge more of DOS and X specifics in preparation for
11366 merge with xfaces.c.
11367 (defined_color): Remove FIXME comment.
11368 (tty_color_name): Provide w32-specific function.
11369 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
11370
11371 * w32console.c (turn_on_face, turn_off_face): Removed.
11372 (w32_face_attributes): New function.
11373 (Global_variables): Reduce scope where possible.
11374 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
11375 fill attribute.
11376 (hl_mode): Don't modify text attributes.
11377 (write_glyphs): Don't do anything if len <= 0. Use
11378 w32_face_attributes to get attributes for drawing. Write
11379 terminating codes using char_attr_normal.
11380 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
11381 (update_begin, update_end): Likewise.
11382 (vga_stdcolor_name): New function.
11383 (initialize_w32_display): Remove char_attr_reverse and char_attr.
11384 (Fset_screen_color): Remove char_attr_reverse.
11385
b08e8bb2
GM
113862000-01-29 Gerd Moellmann <gerd@gnu.org>
11387
11388 * xfns.c (xic_set_preeditarea): Take window parameter and
11389 window-relative pixel-positions.
11390
11391 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
11392 is its frame's selected window.
11393 (xim_instantiate_callback): Likewise.
11394
11395 * xfns.c (x_create_im): Removed.
11396 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
11397 (supported_xim_styles): Renamed from supported_styles.
11398 (best_xim_style): Renamed from best_style.
11399 (create_frame_xic): Renamed from xic_create_frame.
11400 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 11401
b08e8bb2
GM
114022000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
11403
11404 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
11405 our frames, call XFilterEvent with 2nd parameter `None'.
11406 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
11407 returning XBufferOverflow.
52283633 11408 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
b08e8bb2
GM
11409 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
11410 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
11411 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
11412 (xim_initialize, xim_close)
11413 [HAVE_X_I18N && HAVE_X11R6]: New functions.
11414 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
11415 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
11416 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
11417
11418 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
11419 and `xim_styles'.
11420 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
11421 `xic_style' and `xic_xfs'.
11422 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
11423 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
11424 (FRAME_XIM): Removed.
11425
11426 * xfns.c (supported_styles): New variable.
11427 (DEFAULT_STYLE, DEFAULT_FONT): New macros
11428 (xic_create_xfontset, best_style, xic_create_frame)
11429 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
11430 (xic_set_xfontset): New functions.
11431
142e109c
DL
114322000-01-28 Dave Love <fx@gnu.org>
11433
11434 * s/irix6-5.h: Revert last change after change to irix5-0.h.
11435
11436 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
11437
b02786f9
GM
114382000-01-28 Gerd Moellmann <gerd@gnu.org>
11439
d060bc9f
GM
11440 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
11441 for *scratch* if it already existed.
11442
b02786f9
GM
11443 * emacs.c (USAGE): New macro.
11444 (main): Use it to display usage information.
11445
2c52d7e4
EZ
114462000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
11447
11448 Support for the menu-help feature:
11449
52283633 11450 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
2c52d7e4
EZ
11451
11452 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
11453 part of the line to the termscript file.
11454 (IT_clear_to_end): Clear the entire line, not just its beginning.
11455 (menu_help_message, prev_menu_help_message): New variables.
11456 (IT_menu_make_room): Make room for the help_text member.
11457 (IT_menu_display): New argument disp_help; all callers changed.
11458 If disp_help is non-zero, store the help text of the active menu
11459 item in menu_help_message.
11460 (XMenuAddPane): Initialize the help_text member to NULL.
11461 (XMenuAddSelection): New argument help_text. Store it in the
11462 XMenu structure.
11463 (XMenuActivate): New argument help_callback. If the value of
11464 menu_help_message has changed since the last time, display the
11465 menu help message text while waiting for the mouse to move. Clear
11466 the echo area before exiting.
11467 (XMenuDestroy): Free the help_text member.
11468
ffe0bcd1
GM
114692000-01-27 Gerd Moellmann <gerd@gnu.org>
11470
11471 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
11472 XMenuAddSelection. Pass help callback to XMenuActivate.
11473 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
11474
50dbd23f
EZ
114752000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
11476
11477 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
11478 and EMACS_SET_USECS.
11479
f5941bf8
GM
114802000-01-26 Dave Love <fx@gnu.org>
11481
6c67ddee
DL
11482 * editfns.c (Fchar_after, Fchar_before): Doc fix.
11483
f5941bf8
GM
11484 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
11485 an error may be signalled.
11486
9e49c990
GM
114872000-01-26 Gerd Moellmann <gerd@gnu.org>
11488
fc3cb460
GM
11489 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
11490 LD_SWITCH_SYSTEM inherited from irix5-0.h.
11491
9e49c990
GM
11492 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
11493
d0c037d8
GM
114942000-01-25 Gerd Moellmann <gerd@gnu.org>
11495
11496 * charset.c (Fstring): If there is a multibyte char among
11497 the args, always return a multibyte string.
11498
e12489f9
GM
114992000-01-25 Gerd Moellmann <gerd@gnu.org>
11500
11501 * sysdep.c (sys_select): Turn atimers off and on instead of
11502 recording and restoring old alarm handler
11503
11504 * process.c (toplevel): Include atimer.h.
11505 (create_process_1): Rewritten.
11506 (create_process): Use atimers instead of alarm.
11507 (wait_reading_process_input) [hpux]: Turn atimers off instead
11508 of turning off SIGALRM.
11509 (wait_reading_process_input): Turn off atimers instead off
11510 calling stop_polling.
11511
11512 * emacs.c (main): Call init_atimer.
11513
11514 * keyboard.c (toplevel): Include systime.h and atimer.h.
11515 (polling_for_input): Removed because unused.
11516 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
11517 (poll_timer): New variable.
11518 (poll_for_input, poll_for_input_1): New functions.
11519 (start_polling, stop_polling): Rewritten.
11520
11521 * keyboard.h (polling_for_input): Removed.
427ec082 11522
e12489f9
GM
11523 * atimer.h, atimer.c: New files.
11524
11525 * Makefile.in (obj): Add atimer.o.
11526 (atimer.o): New target.
11527
11528 * blockinput.h (pending_atimers): Add extern declaration.
11529 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
11530
11531 * lisp.h (popup_activated_flag): Add extern declaration.
11532
11533 * xmenu.c (popup_activated_flag): Make externally visible.
52283633 11534 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
e12489f9
GM
11535 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
11536
11537 * xterm.c (toplevel): Include atimer.h.
11538 (toolkit_scroll_bar_interaction): New variable.
11539 (Fxt_process_timeouts): Removed.
11540 (x_process_timeouts): New function.
11541 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
11542 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
11543 (x_make_frame_visible): Call poll_for_input_1 instead of
11544 input_poll_signal. Don't call alarm.
11545 (x_initialize): Install timer calling x_process_timeouts.
427ec082 11546
1e5279b9
DL
115472000-01-24 Dave Love <fx@gnu.org>
11548
6c67ddee 11549 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
11550 Don't use -cckr -- apparently not now necessary.
11551
edf6aeb8
EZ
115522000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
11553
11554 * msdos.c (IT_menu_display): Truncate long menu lines at the right
11555 screen boundary.
11556
9badad41
JR
115572000-01-23 Jason Rumney <jasonr@gnu.org>
11558
11559 * w32fns.c (w32_defined_color): Apply gamma correction before
11560 trying to map to the palette.
11561 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
11562 to w32_clear_rect.
11563
11564 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
11565 here. Callers changed to always pass real device context.
11566 (w32_draw_bitmap): Likewise.
11567 (w32_get_glyph_overhangs): Likewise.
52283633 11568 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
9badad41
JR
11569 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
11570 pfnSetScrollInfo and SetScrollRange.
11571 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
11572 back into MULE characters after decoding them.
11573 (x_get_glyph_face_and_encoding): Likewise.
11574 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
11575 GetCharABCWidthsW fails, since this is defined on Windows 9x.
11576 (x_produce_glyphs): Calculate per char metrics for a character
11577 that we know exists in default font when font_not_found_p is true.
11578
63bd786b
JR
115792000-01-22 Jason Rumney <jasonr@gnu.org>
11580
11581 * makefile.nt (intervals.obj, composite.obj): New modules.
11582 (composite.h): Added as dependency where appropriate.
11583
11584 * w32gui.h (XGCValue): New struct for emulating X GCs.
11585
11586 * w32term.h (XCharStruct): New struct for emulating X.
11587
11588 * w32console.c (turn_on_face, turn_off_face): New functions.
11589 (change_line_highlight): New prototype for new redisplay.
11590 (write_glyphs): Support multibyte text. Support faces.
11591
52283633 11592 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
63bd786b
JR
11593
11594 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
11595 throughout. struct frame * in place of FRAME_PTR.
11596 Skeleton support for images, toolbars, tooltips from xfns.c.
52283633 11597 (Fx_create_frame): Use system default for default scroll bar width.
63bd786b
JR
11598 (w32_get_arg): Renamed from x_get_arg.
11599 (Fx_file_dialog): New function.
11600 (w32_list_fonts): Check cache before asking system.
11601 (Vw32_enable_synthesized_fonts): New variable.
11602 (Vw32_enable_italics): Obsolete, removed.
11603
11604 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
11605 Use SELECTED_FRAME macro.
11606
11607 * w32menu.c: Add skeleton support for help strings on menus.
11608 (add_menu_item): Native checkbox and radio support added, but not
11609 yet enabled due to bugs.
11610 (push_menu_item): Add parameters type, selection and help.
11611 Callers updated.
11612 Formatting changes to reduce unnecessary diffs with xmenu.c.
11613
11614 * w32select.c (Fw32_set_clipboard_data): Update call to
11615 find_charset_in_str.
11616
11617 * w32term.c: Complete rewrite for new redisplay based on new
11618 xterm.c with necessary sections merged back in from old w32term.c.
11619
6ffd3cf7 116202000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
11621
11622 * data.c (set_internal): Further fix in same criterion.
11623
6ffd3cf7 116242000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
11625
11626 * data.c (set_internal): Fix the criteria for whether
11627 to swap out the old cached binding.
11628
60af03f1
DL
116292000-01-19 Dave Love <fx@gnu.org>
11630
11631 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
11632
f9be074f
KH
116332000-01-18 Kenichi Handa <handa@etl.go.jp>
11634
11635 * regex.c (re_compile_fastmap): While checking a range table for
11636 `charset', skip flag bits for a character class correctly.
11637
52b8dbf9
GM
116382000-01-17 Gerd Moellmann <gerd@gnu.org>
11639
d36100c9
GM
11640 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
11641
52283633 11642 * xfns.c (x_window): Call lw_create_widget with new parameter list.
52b8dbf9
GM
11643
11644 * widget.c (EmacsFrameSetCharSize): Change size of children first
52283633 11645 because of problems with main window geometry management under Lesstif.
52b8dbf9
GM
11646
11647 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
11648 MENU_ITEMS_ITEM_.*.
11649 (MENU_ITEMS_ITEM_HELP): New enumerator.
11650 (push_menu_item): Add parameter HELP. Record help in menu_items.
11651 (single_menu_item, single_submenu, list_of_items): Call
11652 push_menu_item with new parameter.
11653 (single_submenu): Set help string in widget value.
11654 (menu_highlight_callback): New function.
11655 (set_frame_menubar): Call lw_create_widget with new
11656 parameter list.
11657 (xmenu_show, xdialog_show): Ditto.
11658
3139018f
GM
116592000-01-13 Gerd Moellmann <gerd@gnu.org>
11660
11661 * sound.c (Fplay_sound): Improve doc string.
11662
83c8f461
RS
116632000-01-11 Richard M. Stallman <rms@gnu.org>
11664
11665 * lisp.h (set_internal): Enter the new arg.
11666
11667 * eval.c (specbind): Record buffer-local variables specially,
11668 indicating which buffer's binding was saved.
11669 (unbind_to): Restore buffer-local variables specially
11670 in the proper buffer.
11671
11672 * data.c (set_internal): New arg BUF.
427ec082 11673
83c8f461
RS
11674 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
11675 * data.c (Fset): Pass new arg to set_internal.
11676 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 11677
1fab1775
GM
116782000-01-11 Gerd Moellmann <gerd@gnu.org>
11679
52283633 11680 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
1fab1775 11681
83c8f461 116822000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
11683
11684 * minibuf.c (Ftry_completion): Doc fix.
11685
7a85e4df
GM
116862000-01-11 Gerd Moellmann <gerd@gnu.org>
11687
11688 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
11689 vector, too.
11690
a970dae4
AS
116912000-01-11 Andreas Schwab <schwab@suse.de>
11692
11693 * coding.c (code_convert_region): Initialize total_skip.
11694
c65d14ee
DL
116952000-01-08 Dave Love <fx@gnu.org>
11696
11697 * eval.c (Fuser_variable_p): Check customizability too.
11698
834938d2
GM
116992000-01-07 Gerd Moellmann <gerd@gnu.org>
11700
11701 * minibuf.c (Fcompleting_read): Doc fix.
11702
e0303cd6
GM
117032000-01-05 Gerd Moellmann <gerd@gnu.org>
11704
8a26744b
GM
11705 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
11706 -L /usr/local/lib.
11707
e0303cd6
GM
11708 * xfns.c (x_create_im): New function to set IM and IC of a frame.
11709 Check that input style is supported before trying to create an
11710 IC for it.
11711 (x_window): Call x_create_im.
427ec082 11712
2e471eb5
GM
117132000-01-04 Gerd Moellmann <gerd@gnu.org>
11714
560a7bd2
GM
11715 * xfns.c (current_gif_memory_src): New variable.
11716 (gif_load): Record the address of the current memory source
11717 in current_gif_memory_src.
11718 (gif_read_from_memory): Use current_gif_memory_src.
11719
f9ee84a3
GM
11720 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
11721 macros statement form.
11722
d1299cde
GM
11723 * sound.c (struct sound): Renamed from struct sound_file.
11724 (struct sound): Add members `data' and `header_size'.
11725 (enum sound_attr): Add SOUND_DATA.
11726 (current_sound, current_sound_device): Variables renamed from
11727 sound_file and sound_device.
11728 (parse_sound): Parse :data.
11729 (parse_sound): Handle sound data in strings.
11730 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 11731 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
11732 needed header size.
11733 (wav_play, au_play): Play sounds from string data.
11734
2e471eb5
GM
11735 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
11736
11737 * lisp.h: Add prototype for allocate_string_data.
11738
52283633 11739 * alloc.c (Fgarbage_collect): Return number of live and free strings.
2e471eb5
GM
11740
11741 * alloc.c (mark_buffer): Remove code in #if 0.
11742 (gc_sweep): Ditto.
11743 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
11744 (strings_consed): New variable.
11745 (allocate_string): Set it.
11746 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
11747 (Fmemory_use_counts): Return strings_consed. Use Flist.
11748
11749 * alloc.c: General cleanup in comments etc. Remove conditional
11750 compilation for `standalone'.
11751
11752 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
11753
11754 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
11755 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
11756 (DONT_COPY_FLAG): Removed.
11757 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
11758 (struct sdata, struct sblock): New
11759 (struct string_block): Rewritten.
11760 (STRINGS_IN_STRING_BLOCK): New macro.
11761 (oldest_sblock, current_sblock, total_strings, total_free_strings)
11762 (large_sblocks, string_blocks, string_free_list): New variables.
11763 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
11764 (init_strings): Rewritten.
11765 (allocate_string, allocate_string_data, compact_small_strings)
11766 (free_large_strings, sweep_strings): New functions.
11767 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
11768 (struct string_block_head, current_string_block)
11769 (first_string_block, large_string_blocks, STRING_FULLSIZE)
11770 (STRING_PAD): Removed.
11771 (make_uninit_multibyte_string, make_pure_string): Rewritten.
11772 (Fgarbage_collect): Don't set mark bit in large strings.
11773 (mark_object): Mark strings differently. Mark symbol names
11774 differently.
11775 (survives_gc_p): Test marked strings differently.
427ec082 11776 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
11777 symbol names.
11778 (compact_strings): Removed.
11779
42608ba8
EZ
117802000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
11781
11782 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
11783 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
11784
e0a09e1a
KH
117852000-01-04 Kenichi Handa <handa@etl.go.jp>
11786
dd9f0750 11787 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 11788 in a non-empty buffer.
dd9f0750 11789
3c0f3b15 11790 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 11791
44cd3ae5
GM
117922000-01-03 Gerd Moellmann <gerd@gnu.org>
11793
11794 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
11795 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
11796
11797 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
11798
c182a70f
EZ
117992000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11800
11801 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
11802 need to test for MSDOS frames.
11803
24480d5b
EZ
118042000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11805
11806 * dosfns.c (unspecified_colors): Remove.
11807 (msdos_stdcolor_idx): Use global variables unspecified_fg and
11808 unspecified_bg.
11809 (msdos_stdcolor_name): Return strings for unspecified fore- and
11810 back-ground colors.
11811
11812 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 11813 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
11814 (tty_color_name): Return Lisp strings for unspecified fore- and
11815 back-ground colors.
11816 (Finternal_set_lisp_face_attribute): Remove the special treatment
11817 for Qunspecified_{f,b}g.
52283633 11818 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
24480d5b 11819
047f434a
GM
118202000-01-03 Gerd Moellmann <gerd@gnu.org>
11821
11822 * xdisp.c (reseat_at_next_visible_line_start): Position before
11823 newline only if ending up on a newline.
11824 (next_element_from_ellipsis): Return success. Handle case of
52283633 11825 displaying no ellipsis. Fix case of ellipsis defined in display table.
047f434a
GM
11826 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
11827 returns 0.
11828
d684c676
EZ
118292000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11830
11831 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
11832 (Fcolor_supported_p): Renamed from face-color-supported-p.
11833
5fe1d139
EZ
118342000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11835
11836 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
11837 list of colors renamed to tty-defined-color-alist.
11838 (tty_color_name): Pass the frame to tty-color-by-index.
11839 (realize_tty_face): tty-color-alist is now a function which
11840 accepts the frame as argument.
11841
52283633 11842 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
5fe1d139 11843
816be8b8
EZ
118442000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11845
11846 * term.c (insert_glyphs): Pass glyph, not &glyph, to
11847 encode_terminal_code.
11848
b635321e
EZ
118492000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11850
11851 * dispnew.c (mode_line_string): Support termcap frames as well.
11852
9b784e96
GM
118532000-01-01 Gerd Moellmann <gerd@gnu.org>
11854
27189709
GM
11855 * syntax.c (Fforward_word): Undo previous change.
11856
11857 * editfns.c (Fconstrain_to_field): Don't constrain if
11858 inhibit-field-text-motion is non-nil.
11859 (Fline_beginning_position): Undo previous change.
11860 (Fline_end_position): Ditto.
11861
11862 * syntax.c (Fforward_word): Notice field boundaries only if
11863 inhibit-field-text-motion is nil.
11864
11865 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
11866
11867 * editfns.c (Vinhibit_field_text_motion): New variable.
11868 (inhibit-field-text-motion): New DEFVAR_LISP.
11869 (Fline_beginning_position, Fline_end_position): Notice field
11870 boundaries only if inhibit-field-text-motion is nil.
11871
45158a91
GM
11872 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
11873 All calls adjusted.
11874 (x_build_heuristic_mask): Likewise.
11875 (xbm_load_image_from_file): Change error output.
11876 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
11877 (gif_load, gs_load, x_kill_gs_process): Ditto.
11878
9b784e96
GM
11879 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
11880 color indices when accessing raster pixels.
63cec32f
GM
11881 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
11882 one of :file or :data.
11883 (enum pbm_keyword_index): Add PBM_DATA.
11884 (pbm_format): Add :data.
11885 (pbm_image_p): Allow either :file or :data.
11886 (pbm_read_file): New function.
11887 (pbm_scan_number): Rewritten to read from string.
11888 (pbm_load): Support :data.
9b784e96 11889
2cb085db 11890See ChangeLog.8 for earlier changes.
6922b018
KH
11891
11892;; Local Variables:
49b3bd82 11893;; coding: iso-2022-7bit
6922b018 11894;; End: