(Finsert_file_contents): Don't treat a return value
[bpt/emacs.git] / src / ChangeLog
CommitLineData
6594ac22
GM
12001-07-30 Gerd Moellmann <gerd@gnu.org>
2
cef68af5
GM
3 * keyboard.c (abs): New macro.
4 (double_click_fuzz): New variable.
5 (make_lispy_event): Use it to determine what makes a double-click.
6 (syms_of_keyboard): DEFVAR_INT it.
7
6594ac22
GM
8 * xmenu.c (set_frame_menubar): Take into account that
9 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
10 <raeburn@gnu.org>.
11
75c5350a
GM
122001-07-27 Gerd Moellmann <gerd@gnu.org>
13
14 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
15
16 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
17 of row's visible height.
18
19 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
20 deal with the first overlay string having an image `display'
21 property.
22 (try_window_reusing_current_matrix, compute_line_metrics): Fix
23 computation of row's visible height for the case that part of the
24 row is invisible above and part of the row is at the same time
25 invisible below the window.
26
ac49effe
GM
272001-07-26 Gerd Moellmann <gerd@gnu.org>
28
29 * xfns.c (x-show-tip): Doc fix.
30
31 * xfns.c (Vx_max_tooltip_size): New variable.
32 (syms_of_xfns): DEFVAR_LISP it.
33 (Fx_show_tip): Set frame's window_width to the width of the
34 window. Use a maximum tooltip size specified by
35 Vx_max_tooltip_size, if that has valid contents.
36 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
37
8c3b00cb
AI
382001-07-26 Andrew Innes <andrewi@gnu.org>
39
40 * w32term.c (x_display_list): New variable.
41 (w32_term_init): Set it.
42
43 * w32term.h (x_display_list): New extern.
44
16098288
GM
452001-07-26 Gerd Moellmann <gerd@gnu.org>
46
47 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
48 is non-nil, instead of when redisplaying_p is non-zero. See
49 comment there.
50 (mark_window_display_accurate_1): Add an assertion.
51
64c5be50
GM
522001-07-25 Gerd Moellmann <gerd@gnu.org>
53
e743f599
GM
54 * dispextern.h (struct it): Increase size of ctl_chars to 16.
55
563b384d
GM
56 * xfns.c (Fx_file_dialog): Block/unblock input while processing
57 events so that we get a chance of processing expose events.
58
64c5be50
GM
59 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
60
296808a5
GM
612001-07-24 Gerd Moellmann <gerd@gnu.org>
62
63 * xfns.c (valid_image_p): Protect better against invalid image
64 specifications. Previous code could signal an error.
65
5247262a
GM
662001-07-23 Gerd Moellmann <gerd@gnu.org>
67
f1004faf
GM
68 * indent.c (current_column): Fix column computation in the
69 presence of display table entries.
70 (current_column_1, Fmove_to_column, compute_motion): Likewise.
71
dd42b31a
GM
72 * dispnew.c (adjust_glyph_matrix): In the optimization for
73 windows whose height has changed, use the new window height
74 to compute which rows to invalidate.
75
9e5a7f2a
GM
76 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
77 (MAX_10_EXP): New macro.
78 (Fformat): Use it.
79
5247262a
GM
80 * coding.c (code_convert_region): Handle the multibyte case if
81 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
82
177ab8ce
GM
832001-07-20 Gerd Moellmann <gerd@gnu.org>
84
6e07c0a5
GM
85 * dispextern.h (struct face): Change type of `stipple' to
86 int; it's an ID.
87
177ab8ce
GM
88 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
89
b5b80599
GM
902001-07-19 Gerd Moellmann <gerd@gnu.org>
91
4e2a256b
GM
92 * dispnew.c (update_window): Don't set the cursor at the end
93 of the update if display update has been paused.
94
b5b80599
GM
95 * composite.h (syms_of_composite): Renamed from
96 syms_of_composition.
97
c1fd9232
KR
982001-07-18 Ken Raeburn <raeburn@gnu.org>
99
100 * fns.c (Fset_char_table_default): Check that a charset is defined
101 before checking its dimension.
102
928a85c1
KR
1032001-07-17 Ken Raeburn <raeburn@gnu.org>
104
105 * coding.c (setup_coding_system): Don't do any designation based
106 on reg_bits if charset is not yet defined.
107
232e274c
KR
108 * lisp.h (XVECTOR): Verify correct object type before returning a
109 pointer, using eassert.
110
de11c1ea
GM
1112001-07-17 Gerd Moellmann <gerd@gnu.org>
112
113 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]: Increase
114 to 4096 because of paste problems reported on GNU/Linux.
115
467f1209
GM
1162001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
117
118 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
119
c3d6be34
GM
1202001-07-16 Gerd Moellmann <gerd@gnu.org>
121
c1d61a7d
GM
122 * fileio.c (unwind_read): Function removed.
123 (read_non_regular, read_non_regular_quit): New functions.
124 (Finsert_file_contents): When reading from non-regular files,
125 arrange to catch a `quit' and terminate the loop. Rearrange
126 code so that a `quit' when reading from a regular file doesn't
127 insert text in the buffer.
128
c3d6be34
GM
129 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
130 Clear faces afterwards.
131 (clear_font_table): Take a x_display_info parameter. Don't free
132 fonts being the default font of any frame on the given display.
133
e06aa1f9
GM
1342001-07-13 Gerd Moellmann <gerd@gnu.org>
135
136 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
137 instead of CHAR_STRING which can signal an error.
138
139 * charset.c (char_to_string_1): Extracted from char_to_string.
140 Return -1 instead of signaling an error.
141 (char_to_string): Use it.
142
143 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
144
176c92e6
SM
1452001-07-12 Stefan Monnier <monnier@cs.yale.edu>
146
147 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
148 is t, don't try to append anything to it.
149
1c56232f
EZ
1502001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
151
152 * dired.c (file_name_completion): Pass dp->d_name to
153 Fstring_match, not elt, which is always nil here.
154
1d2b2268
GM
1552001-07-12 Gerd Moellmann <gerd@gnu.org>
156
157 * xselect.c (x_decline_selection_request): Handle errors
158 caused by receivers that have vanished.
159
160 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
161 ignoring events on foreign windows in #if 0. Always dispatch
162 the event after checking it with x_handle_property_notify.
163
164 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
176c92e6
SM
165 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
166 TRACE macros to facilitate debugging. Add additional trace statements.
1d2b2268
GM
167 (toplevel): Add prototypes for file-local functions.
168 (x_atom_to_symbol): Remove DPYINFO parameter.
169
fe5a0162
SM
1702001-07-11 Stefan Monnier <monnier@cs.yale.edu>
171
172 * w32menu.c (menubar_selection_callback, w32_menu_show):
173 Initialize `entry' to nil.
174 (w32_dialog_show): Remove unused `save_wv' variable.
175 (name_is_separator): Recognize "--:foo" and "--foo-bar".
176
a777242c
GM
1772001-07-11 Gerd Moellmann <gerd@gnu.org>
178
8ee5b6a3
GM
179 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
180
d0e2444e
GM
181 * fileio.c (unwind_read): Print a message when discarding inserted
182 text or switching the buffer to unibyte. Change parameter.
183 (Finsert_file_contents): Don't pass VISIT to unwind_read.
fe5a0162 184
a777242c
GM
185 * fileio.c (unwind_read): New function.
186 (Finsert_file_contents): Record it as unwind-function for
187 the case that reading is interrupted by C-g.
188
ae794295
GM
1892001-07-10 Gerd Moellmann <gerd@gnu.org>
190
fe5a0162 191 * dispnew.c (update_window): Don't skip the header-line
58f8612a
GM
192 update when scrolling_window returns 0.
193
6b05fae3
GM
194 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
195
196 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
58f8612a 197 for the case that x_decode_color signals an error.
6b05fae3 198
ae794295
GM
199 * xdisp.c (add_to_log): Do nothing if called asynchronously.
200
bb6e8cee
GM
2012001-07-09 Gerd Moellmann <gerd@gnu.org>
202
203 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
204 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
205 around ioctls.
206
36b40a8a
EZ
2072001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
208
24b97d4b
EZ
209 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
210 doc string line for dos-timezone-offset.
211
36b40a8a
EZ
212 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
213 inline assembly, to avoid compiler warnings.
24b97d4b
EZ
214 (syms_of_msdos): Add \n\ at the end of a line in the doc string
215 line for dos-unsupported-char-glyph.
36b40a8a
EZ
216
217 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
218
0967b4b0
GM
2192001-07-05 Gerd Moellmann <gerd@gnu.org>
220
f25cfe53
GM
221 * sound.c: Include Emacs' header files with #include "...".
222
0967b4b0
GM
223 * eval.c (specbind): Additionally record the buffer that was
224 current when a buffer-local or frame-local variable was bound.
225
c347a1c3
GM
2262001-07-04 Gerd Moellmann <gerd@gnu.org>
227
228 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
229 to unibyte characters in unibyte buffers.
230
6332ca8a
GM
2312001-07-03 Gerd Moellmann <gerd@gnu.org>
232
38472d44
GM
233 * eval.c (specbind): If SYMBOL has a frame-local binding, record
234 the frame on the binding stack. Change format of entries for
235 local bindings on the binding stack to '(SYMBOL . WHERE)'.
236 (unbind_to): Handle unbinding a frame-local variable.
237
6332ca8a 238 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
fe5a0162 239 glyphs and truncation glyphs at the end of a row from its pixel width.
6332ca8a
GM
240 (dump_glyph_row): Print row's continuation_lines_width.
241 (try_window_id): Take the shortcut if ZV is visible in the
242 window, but there are actually no changes at ZV.
243
63d1b174
GM
2442001-07-02 Gerd Moellmann <gerd@gnu.org>
245
4c175203
GM
246 * xterm.h (x_free_dpy_colors): Add prototype.
247
248 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
249 right number of arguments.
250
0b54ce28
GM
251 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
252 ($(lwlibdir)TAGS): New target.
4c175203 253 (TAGS): Fix dependency list.
0b54ce28 254
63d1b174
GM
255 * xterm.c (x_list_fonts): Make sure XFreeFont is called
256 with input blocked.
257
d827466c
GM
2582001-06-30 Gerd Moellmann <gerd@gnu.org>
259
260 * emacs.c (main): Remove extern declaration for sys_nerr, which
261 isn't used and causes a compilation error with GCC 3.0 on
262 FreeBSD 4.3.
263
b5cb1ada
GM
2642001-06-27 Gerd Moellmann <gerd@gnu.org>
265
a5d3ec3f
GM
266 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
267 SIGIO around the code where Xt might wait for a
268 ConfigureNotifyEvent.
269 (toplevel): Include <signal.h> and syssignal.h.
270
b5cb1ada
GM
271 * sound.c (vox_configure, vox_close): Turn off atimers
272 around ioctls.
273
d9bad487
GM
2742001-06-26 Gerd Moellmann <gerd@gnu.org>
275
fdbb67fe
GM
276 * keyboard.c (read_char) <non_reread>: Record the previous idle
277 start time before calling timer_stop_idle.
278 (read_char) <reread_first>: After processing a help-echo event,
279 restore the previous idle start time.
280
d9bad487
GM
281 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
282 the start of invisible text.
283 (setup_for_ellipsis): New function.
284 (next_overlay_string): After all overlay strings have been
285 processed, display an ellipsis if necessary.
286 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
287 (push_it): Initialize display_ellipsis_p on the iterator's stack.
288
289 * dispextern.h (struct iterator_stack_entry): Add member
290 display_ellipsis_p.
291
2b9c25e0
GM
2922001-06-25 Gerd Moellmann <gerd@gnu.org>
293
80de57df
GM
294 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
295 on the value of the wait-for-wm frame parameter.
296
297 * xterm.h (struct x_output): Add member wait_for_wm.
298
299 * xfns.c (Qwait_for_wm): New variable.
300 (x_frame_parms): Add entry for `wait-for-wm".
301 (x_set_wait_for_wm): New function.
302 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
303 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
304
2b9c25e0
GM
305 * xdisp.c (try_window_id) <all changes below window end>: Don't
306 take this shortcut if ZV is visible in the window.
307 (try_window_id): When checking for window start being in changed
308 text, don't check that the buffer's size has changed.
309
f772775c
RS
3102001-06-23 Richard M. Stallman <rms@gnu.org>
311
312 * minibuf.c (Fcompleting_read): Doc fix.
313
fa9090b8
GM
3142001-06-19 Gerd Moellmann <gerd@gnu.org>
315
316 * composite.c (Ffind_composition_internal): Accept ZV
317 and a string's end position as POS.
318
f6f1beba
GM
3192001-06-18 Gerd Moellmann <gerd@gnu.org>
320
321 * composite.c (Ffind_composition_internal): Check POS
322 for validity.
323
0ae83348
EZ
3242001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
325
326 * editfns.c (Fmessage_box): If the frame is not under a window
327 system, output the message in the echo area.
328
e4cdc335
RS
3292001-06-14 Richard M. Stallman <rms@gnu.org>
330
331 * xdisp.c (try_window_id): When EOB is visible, don't treat
332 insertion at EOB as if it were "off the bottom of the screen."
333
a55a5f3c
AI
3342001-06-11 Andrew Innes <andrewi@gnu.org>
335
336 * w32proc.c (create_child): Add new parameter is_gui_app.
337 (w32_executable_type): Add new parameter is_gui_app.
338 (sys_spawnve): Use it.
339 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
340 SIGQUIT. This matches better how the signals are interpreted by
341 MSVC compiled programs.
342 (syms_of_ntproc): Update docstring.
343
1b85dc1c
SM
3442001-06-02 Stefan Monnier <monnier@cs.yale.edu>
345
346 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
347 well otherwise note_mouse_highlight might optimize away highlighting
348 if we pass over that same overlay again.
349
b75f8eab
EZ
3502001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
351
352 * lread.c (Fload): Document that the argument is run via
353 substitute-in-file-name.
354
94843cc1
GM
3552001-05-31 Gerd Moellmann <gerd@gnu.org>
356
b14659e6
GM
357 * Makefile.in (bootstrap-doc): New target.
358 (bootstrap-emacs): Depend on it.
359
0894672f
GM
360 * fileio.c (Fdo_auto_save): Don't try to create the directory of
361 auto-save-list-file-name when shutting down Emacs, because
362 creating the directory might signal an error, and leaves
363 Emacs in a strange state.
364
94843cc1
GM
365 * term.c: (tty_cursor_hidden): New variable.
366 (update_begin): Don't call tty_hide_cursor. Clean up.
367 (update_end, set_terminal_window, set_scroll_region): Clean up.
368 (ring_bell, reset_terminal_modes): Clean up.
369 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
370 on tty_cursor_hidden.
371 (write_glyphs): Call tty_hide_cursor.
372
db3a49a6
SM
3732001-05-30 Stefan Monnier <monnier@cs.yale.edu>
374
375 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
376
8bd189fb
GM
3772001-05-30 Gerd Moellmann <gerd@gnu.org>
378
6f1be3b9
GM
379 * xfns.c (enum image_value_type): New enumerator
380 IMAGE_STRING_OR_NIL_VALUE.
381 (parse_image_spec): Handle it.
382 (xbm_format, pbm_format): Use it for :foreground and :background.
383 (xbm_load, pbm_load): Check for nil color names.
384
8bd189fb
GM
385 * xterm.c (note_mouse_highlight): If an overlapping overlay
386 exists, but we find that we highlight the same overlay as before,
387 don't do the highlighting again.
388
7bdba03c
GM
3892001-05-29 Gerd Moellmann <gerd@gnu.org>
390
4c329aa8
GM
391 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
392 Protect unibyte strings created by replacing their multibyte
393 equivalents in menu_items.
394
e15e2828
GM
395 * keymap.c (Fsingle_key_description): NUL-terminate the string
396 buffer before calling build_string.
397
7bdba03c
GM
398 * callproc.c (Fcall_process): Deal with decode_coding returning
399 CODING_FINISH_INCONSISTENT_EOL.
400
89c8dc6c
GM
4012001-05-28 Gerd Moellmann <gerd@gnu.org>
402
db3a49a6 403 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
3d9d7a9b
GM
404 an item's name with its key description in case the description
405 is a multibyte string.
406
407 * keymap.c (Fsingle_key_description): Create a multibyte string
408 only if necessary.
409
eb04d6cd
GM
410 * macros.c (Fstart_kbd_macro): Doc fix.
411
8bd6307f
GM
412 * xterm.c (cursor_in_mouse_face_p): New function.
413 (x_draw_stretch_glyph_string): Use it to choose a different GC
414 when drawing a cursor within highlighted text.
415
e26c4089
GM
416 * editfns.c (char_property_eq): Put in #if 0.
417
418 * indent.c (string_display_width): Put in #if 0.
419
420 * lread.c (Fload): Remove unused label.
421
89c8dc6c
GM
422 * termcap.c (speeds): Put in #if 0.
423
9a1211f2
GM
4242001-05-18 Gerd Moellmann <gerd@gnu.org>
425
29148a3f
GM
426 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
427
9a1211f2
GM
428 * xfaces.c (xlfd_point_size): Don't divide pixel size from
429 transformation matrix by 10.
430
09393d07
GM
4312001-05-16 Gerd Moellmann <gerd@gnu.org>
432
433 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
434 only if it's equal to the former foreground pixel color.
db3a49a6 435 (x_set_foreground_color, x_set_background_color)
09393d07
GM
436 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
437
460e6bae
GM
4382001-05-16 Dave Love <fx@gnu.org>
439
440 * insdel.c (signal_before_change, signal_after_change): Consider a
441 local change hook which changes the buffer.
99c78ce8
GM
442
443 * process.c (read_process_output): Don't call signal_after_change
444 and update_compositions after insert_from_string_before_markers.
445
dbcf3c03
GM
4462001-05-16 Gerd Moellmann <gerd@gnu.org>
447
a90b3d3c
GM
448 * xfaces.c (split_font_name): Use the right field when
449 checking for `[...]' syntax.
450
1b7818b4
GM
451 * buffer.c (copy_overlays): New function.
452 (clone_per_buffer_values): Use it.
453
454 * buffer.h (OVERLAY_PLIST): New macro.
455
9bae8781
GM
456 * keymap.c (Fsingle_key_description): Replace a build_string with
457 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
458
dbcf3c03
GM
459 * fontset.c (Ffontset_info): Check that face is non-null
460 before accessing its fields.
461
8a1ae4dd
GM
4622001-05-15 Gerd Moellmann <gerd@gnu.org>
463
18a0a39e
GM
464 * keyboard.c (read_key_sequence): Prevent generating a fake
465 prefix key twice.
466
e335b66a
GM
467 * xfaces.c (split_font_name): Handle `[...]' for the right
468 font name fields.
469
8a1ae4dd
GM
470 * ccl.c (ccl_driver): Don't copy remaining bytes in case
471 of CCL_STAT_INVALID_CMD.
472
3cf80731
SM
4732001-05-14 Stefan Monnier <monnier@cs.yale.edu>
474
33568849
SM
475 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
476 in <var> has no default value yet.
477
3cf80731
SM
478 * xfaces.c (try_alternative_families): First try the FAMILY.
479 And if nothing is found in the end, try again with scalable fonts.
480 (try_font_list): Let try_alternative_families do a bit more of
481 the work. Only use FAMILY if it is not nil.
482 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
483
933b0249
GM
4842001-05-14 Gerd Moellmann <gerd@gnu.org>
485
58e5af83
GM
486 * xterm.c (note_mouse_highlight): Avoid changing the mouse
487 pointer shape when show_mouse_face has already done it.
33568849 488
58e5af83 489 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
557f7c34
GM
490 full-width rows.
491
7b16a6bf
GM
492 * xfaces.c (split_font_name): Make sure to leave the loop
493 with the right value of `i'.
3cf80731 494
933b0249
GM
495 * xfaces.c (split_font_name): Handle matrix transformations
496 in the pixel and point size fields of XLFD font names.
497 (xlfd_point_size): Likewise.
498
dddcbf00
EZ
4992001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
500
3cf80731 501 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
c7501041
EZ
502 (x_to_w32_font): Add prototype.
503
7689ef0b
EZ
504 * regex.c (malloc, realloc, free) [emacs]: Undefine before
505 redefining, to avoid compiler warnings.
506
e7c15bba
EZ
507 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
508
dddcbf00
EZ
509 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
510 (w32_get_bdf_glyph): Cast between unsigned char and char when
511 passing arguments to subroutines, to shut up compiler warnings.
512 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
513 GET_HEX_VAL.
514
515 * xfaces.c: Include keyboard.h before frame.h, not after it.
516
517 * widget.c: Include keyboard.h before frame.h.
518
519 * w32term.h (struct image, struct face): Forward declaration, to
520 avoid compiler warnings.
521
7bd2d083
GM
5222001-05-11 Gerd Moellmann <gerd@gnu.org>
523
47e72862
GM
524 * keyboard.c (read_key_sequence): Don't modify events when
525 generating fake prefix keys (mode-line, scroll-bar, ...) since
526 this prevents proper processing of such events when pushed back
527 into unread-command-events.
528
dd5f324b
GM
529 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
530 actually redrawn. Make the function static.
531 (note_mouse_highlight): Fix a case where the mouse cursor
532 was changed back to the text cursor.
533
534 * xterm.h (clear_mouse_face): Remove prototype.
535
d88a79d4
GM
536 * xdisp.c (try_window_id): Fix the fix and set the right
537 window_end_vpos.
538
539 * xdisp.c (try_window_id): Fix computation of window end in the
540 case that lines were deleted at the end of the window. Add some
541 more debug_method_adds.
0416532f 542
7bd2d083
GM
543 * xfaces.c (try_alternative_families): New function.
544 (try_font_list): Use it. If ATTRS specifies a family, check
545 fonts from that family first.
546 (choose_face_font): Remove code setting the family part of
547 the pattern to nil.
548
23fca891
GM
5492001-05-10 Gerd Moellmann <gerd@gnu.org>
550
ff9aa2ca
GM
551 * xdisp.c (try_window_id): Fix case of all changes before
552 the window start.
7b2654b5 553
23fca891
GM
554 * xdisp.c (try_window_id): Add some xasserts.
555
e9726794
GM
5562001-05-09 Gerd Moellmann <gerd@gnu.org>
557
558 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
559
9e53a675
GM
5602001-05-09 Dave Love <fx@gnu.org>
561
562 * xdisp.c (GIVE_UP): Fix for K&R C.
563
0d487c52
GM
5642001-05-09 Gerd Moellmann <gerd@gnu.org>
565
fe88d421
GM
566 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
567
0d487c52
GM
568 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
569 back to the text cursor shape without need.
570
1e9fc92e
GM
5712001-05-07 Gerd Moellmann <gerd@gnu.org>
572
a2a6232e
GM
573 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
574
575 * dispextern.h (inverse_video): Declare extern.
576
1e9fc92e
GM
577 * keyboard.c (delete_kboard): Handle the case that selected_frame
578 has been deleted in the course of x_connection_closed.
579
12949a7f
EZ
5802001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
581
7b2654b5
SM
582 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
583 Fix the change from 2001-04-30.
12949a7f 584
2fa2f461
GM
5852001-05-03 Gerd Moellmann <gerd@gnu.org>
586
a779d213
GM
587 * xfns.c (file_dialog_unmap_cb): New function.
588 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
589 where a dialog is closed via the window manager.
590
7b2654b5 591 * xdisp.c (try_window_id): Cases of changes all in front of
2fa2f461
GM
592 the window start or all below the window end mostly rewritten.
593 (redisplay_window): Move the tests if try_window_id is
594 applicable to try_window_id.
595 (GIVE_UP): New macro.
596
3356df63
GM
5972001-05-02 Gerd Moellmann <gerd@gnu.org>
598
a39202f6 599 * xterm.c (expose_window): Return int. If W is the window
7b2654b5
SM
600 currently being updated, mark the frame garbaged.
601 Fix computation of rows intersecting the exposed rectangle.
a39202f6 602 (expose_window_tree): Stop when expose_window returns 0.
7b2654b5 603
3356df63
GM
604 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
605 again if it has already been drawn.
606
a9d2fd1d
SM
6072001-05-01 Stefan Monnier <monnier@cs.yale.edu>
608
609 * syntax.c (update_syntax_table): Check that oldi has the same
610 properties as old_prop before deciding not to invalidate.
611
c95fc5f1
GM
6122001-04-30 Gerd Moellmann <gerd@gnu.org>
613
a9793e45
GM
614 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
615 read-only text that is so because of text properties.
616
c95fc5f1 617 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
a9d2fd1d 618 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
c95fc5f1
GM
619 windows that are components of a Lucid menu bar.
620
5a5d9185
GM
6212001-04-27 Gerd Moellmann <gerd@gnu.org>
622
623 * term.c (turn_on_face): Fix reverse video handling on terminals
624 that don't support colors.
625
ba973f7a
GM
6262001-04-26 Gerd Moellmann <gerd@gnu.org>
627
628 * editfns.c (save_excursion_restore): Don't use XBUFFER on
629 a non-buffer.
630
8c56a983
GM
6312001-04-25 Gerd Moellmann <gerd@gnu.org>
632
a728644c
GM
633 * term.c (toggle_highlight): New function.
634 (turn_on_face): Change handling of reverse video.
635
7b2654b5
SM
636 * process.c (wait_reading_process_input):
637 Call record_asynch_buffer_change only if a timer really changed buffers.
c88164fe 638
bfd8410f
GM
639 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
640 of the number of overlays to check.
641
be2488ca
GM
642 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
643
8c56a983
GM
644 * xdisp.c (try_window_id): Fix a case where window_end_pos
645 and window_end_bytepos were not adjusted.
646
522d42f7
GM
6472001-04-23 Gerd Moellmann <gerd@gnu.org>
648
649 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
650 zero instead of -1.
651
78c1afb6
EZ
6522001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
653
a9d2fd1d
SM
654 * process.c (wait_reading_process_input) [!subprocesses]:
655 Don't reference waiting_for_user_input_p, it's not defined in the
656 branch without async subprocesses support.
78c1afb6 657
a2fab450
GM
6582001-04-19 Gerd Moellmann <gerd@gnu.org>
659
a122a38e
GM
660 * keyboard.c (delete_kboard): Prevent a dangling reference
661 from current_kboard to KB, which is freed.
662
a9d2fd1d
SM
663 * process.c (wait_reading_process_input):
664 Call record_asynch_buffer_change after running timers, to make
a2fab450
GM
665 read_key_sequence aware of buffer changes from under it.
666
0f8d6dc7
GM
6672001-04-18 Gerd Moellmann <gerd@gnu.org>
668
eeffb293
GM
669 * xfaces.c (Qscalable_fonts_allowed): New variable.
670 (realizing_basic_faces_p): Removed.
2fa2f461
GM
671 (x_face_list_fonts): Special handling for realizing_basic_faces_p
672 removed.
eeffb293 673 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
7b2654b5
SM
674 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
675 for scalable-fonts-allowed to t.
eeffb293 676
0f8d6dc7
GM
677 * fileio.c (Finsert_file_contents): If the file size returned from
678 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
a9d2fd1d 679 read from files on a procfs whose contents are generated dynamically.
0f8d6dc7 680
eec2d1de
EZ
6812001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
682
683 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
684 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
685 (__memalign_hook): Make the two prototypes consistent.
686
f4f480bd
GM
6872001-04-17 Gerd Moellmann <gerd@gnu.org>
688
689 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
690 matrix of mini-windows.
691
52283633
SM
6922001-04-12 Stefan Monnier <monnier@cs.yale.edu>
693
694 * intervals.c (find_interval): Don't rebalance during signal handling.
695
ec2423c9
GM
6962001-04-11 Gerd Moellmann <gerd@gnu.org>
697
30cb0001 698 * fns.c: Include blockinput.h.
52283633 699
ec2423c9
GM
700 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
701
719d83ad
GM
7022001-04-10 Gerd Moellmann <gerd@gnu.org>
703
60f8d735
GM
704 * fns.c (Fcompare_strings): Fix return values.
705
afffeb57
GM
706 * window.c (window_scroll): Change the meaning of N to mean
707 N screen-fulls or N lines.
708 (window_scroll_pixel_based, window_scroll_line_based)
709 (scroll_command, Fscroll_other_window): Change accordingly.
710
52283633
SM
711 * window.c (window_scroll_pixel_based, Frecenter):
712 Call window_box_height instead of using it.last_visible_y for the
afffeb57
GM
713 height of the window.
714
715 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
716 instead of using it.last_visible_y for the height of the window.
52283633 717
719d83ad 718 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
8ddf3ee1 719 From Dan Holmsand <dan@eyebee.com>.
719d83ad
GM
720
721 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
8ddf3ee1
GM
722 able to write to hidden and system files. From Dan Holmsand
723 <dan@eyebee.com>.
719d83ad 724
8ddf3ee1
GM
725 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
726 Holmsand <dan@eyebee.com>.
719d83ad 727
522ed7fb
GM
7282001-04-09 Gerd Moellmann <gerd@gnu.org>
729
9170e5d4
GM
730 * fns.c (Fplist_get, Fplist_put): Add QUITs.
731
522ed7fb
GM
732 * window.c (window_internal_height): Return 1 less if the
733 window has a header line.
734
735 * xdisp.c (try_window_id): When scrolling on a terminal, take
736 the change of window_internal_height into account.
737
ceeb3d7d
EZ
7382001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
739
740 * gmalloc.c (align): If the argument SIZE would overflow
741 __malloc_ptrdiff_t, fail right away.
742
63685b9d
GM
7432001-04-06 Gerd Moellmann <gerd@gnu.org>
744
745 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
746 Make sure the tooltip is completely visible.
747 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
748
749 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
750
751 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
752
3ffb33bb
DL
7532001-04-06 Dave Love <fx@gnu.org>
754
52283633
SM
755 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
756 Fix test of `from'.
3ffb33bb 757
869fb12c
GM
7582001-04-06 Gerd Moellmann <gerd@gnu.org>
759
52283633 760 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
afa3935f 761
869fb12c
GM
762 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
763
441bf856
GM
7642001-04-05 Gerd Moellmann <gerd@gnu.org>
765
4d664b04
GM
766 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
767
52283633 768 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
a55e4e68 769
30ca89f5
GM
770 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
771 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
772
773 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
774 shell widget's position only if it is non-null.
775
52283633
SM
776 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
777 Set f->output_data.x->widget to null after destroying it.
30ca89f5 778
81a81c0f
GM
779 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
780 FILENAME to bring it in synch with the documentation.
781
441bf856
GM
782 * xfaces.c (realizing_basic_faces_p): Renamed from
783 realize_default_face_p.
784 (realize_basic_faces): Set/clear realizing_basic_faces_p.
785 (realize_default_face): Don't set the flag.
786
702a1e8e
GM
7872001-04-04 Gerd Moellmann <gerd@gnu.org>
788
1013f4e3
GM
789 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
790
52283633
SM
791 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
792
1013f4e3
GM
793 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
794 the buffer that was used for echoing.
795
702a1e8e
GM
796 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
797 (first_font_matching): Removed unused function.
798 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
799 (may_use_scalable_font_p): Remove parameter FONT; rename
800 parameter NAME to FONT.
801 (x_face_list_fonts): Fix missing bounds check.
802 (realizing_default_face_p): New variable.
803 (realize_default_face): Set and clear that flag.
804 (x_face_list_fonts): When called during the realization of the
805 default face, and no matching fonts are found when ignoring
806 scalable fonts and fonts matching a regexp from
807 face-ignored-fonts, try without ignoring fonts.
808
f9dbcda4
GM
8092001-04-03 Gerd Moellmann <gerd@gnu.org>
810
ad18ffb1
GM
811 * xfns.c (postprocess_image): New function.
812 (lookup_image): Call it for all image types except PostScript.
813 (x_kill_gs_process): Call postprocess_image.
814
f9dbcda4
GM
815 * xterm.c (x_use_underline_position_properties): New variable.
816 (x_draw_glyph_string): Use it.
817 (syms_of_xterm): DEFVAR_BOOL it.
818
651f03b6
GM
8192001-04-02 Gerd Moellmann <gerd@gnu.org>
820
821 * xterm.c (x_alloc_nearest_color_1): New function.
822 (x_alloc_nearest_color): Use it.
823 (x_color_cells): Take a Display as argument, instead of a frame.
824 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
825 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
826 (x_initialize): Register cvt_string_to_pixel as resource converter
827 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
828
73d75a62
GM
8292001-03-30 Gerd Moellmann <gerd@gnu.org>
830
b2046df8
GM
831 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
832 (set_iterator_to_next): If a string from a display property ends,
833 consider the case that this might also be the end of an
834 overlay string having the display property.
835
52283633 836 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
b2046df8 837
87d8eba4
GM
838 * xdisp.c (reseat_to_string): Undo last change.
839
73d75a62
GM
840 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
841 matrix of a window when the header line changes, when
842 new rows are allocated, or when the width changes.
843
911a2406
EZ
8442001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
845
52283633 846 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
911a2406 847
aea51abe
EZ
8482001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
849
850 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
851 deprecated.
852
176bc847
GM
8532001-03-29 Gerd Moellmann <gerd@gnu.org>
854
ed31fabf
GM
855 * data.c (Fsubr_interactive_form): New function.
856 (syms_of_data): Defsubr it.
857
176bc847
GM
858 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
859 (live_float_p, live_misc_p): Return 1 only if the offset of the
860 pointer in its block is >= 0.
861
e59d0e9d
GM
8622001-03-28 Paul Eggert <eggert@twinsun.com>
863
864 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
865 microseconds calcuation. Avoid double-rounding problem.
866 In doc string, warn that the result is approximate.
867
f827b862
GM
8682001-03-28 Gerd Moellmann <gerd@gnu.org>
869
30a3f61c
GM
870 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
871 bind `inhibit-eval-during-redisplay' to t.
872
873 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
874
875 * xdisp.c (inhibit_eval_during_redisplay)
876 (Qinhibit_eval_during_redisplay): New variables.
877 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
878 don't eval, return nil instead.
879 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
880 Initialize Qinhibit_eval_during_redisplay.
881
e719f5ae
GM
882 * xdisp.c (reseat_to_string): If STRING is multibyte, set
883 the iterator's multibyte_p flag.
884
deb2613a
GM
885 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
886 instead of setting it to zero; it's incremented for each frame
887 where the menu face is changed.
888
52283633
SM
889 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
890 change bottom shadow accordingly.
891
892 * xterm.c (expose_window_tree, expose_frame): Don't compute
a02f1be0
GM
893 intersections here.
894 (expose_window): Do it here instead.
52283633 895 (x_draw_glyph_string): Fix a computation of the underline position.
a02f1be0 896
f827b862
GM
897 * bytecode.c (BYTE_CODE_QUIT): New macro.
898 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
899
4bde0ebb
GM
9002001-03-27 Gerd Moellmann <gerd@gnu.org>
901
607ec83c
GM
902 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
903 Give up if matrix starts in an ellipsis.
904 (init_from_display_pos): Do nothing if POS doesn't specify
905 a dpvec_index but the iterator has such a position.
906
0245398f
GM
907 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
908
aba25348
GM
909 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
910 x/y position is (0, 0) after destroying the menu bar, restore
911 its original position.
912
4bde0ebb
GM
913 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
914 (init_from_display_pos): Use it.
915 (try_window_reusing_current_matrix): Don't use cursor_row_p.
916
8cdb267e
GM
9172001-03-26 Gerd Moellmann <gerd@gnu.org>
918
919 * xdisp.c (try_window_id): Undo last change.
920
9948db79
EZ
9212001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
922
923 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
924
925 * buffer.c (syms_of_buffer): Doc fix.
926
2eddf899
GM
9272001-03-26 Gerd Moellmann <gerd@gnu.org>
928
929 * xfaces.c (x_update_menu_appearance): Use local variable
930 popup_path for setting font resources.
931
6c145d35
EZ
9322001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
933
6a65b1b5
EZ
934 * frame.c (Fframe_list): Don't reference tip_frame if
935 HAVE_WINDOW_SYSTEM is not defined.
936
6c145d35
EZ
937 * emacs.c (main): Update the copyright year. From Werner LEMBERG
938 <wl@gnu.org>.
939
d74c1900
GM
9402001-03-25 Gerd Moellmann <gerd@gnu.org>
941
20fbd925
GM
942 * xdisp.c (init_from_display_pos): Test invisible property
943 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
52283633 944
927c5b3b
GM
945 * xdisp.c (redisplay_internal) <update one window>: Make sure
946 last_arrow_position and last_arrow_string are set.
947
d74c1900
GM
948 * frame.c (Fframe_list): Don't return a tooltip frame.
949
091f8878
GM
9502001-03-23 Gerd Moellmann <gerd@gnu.org>
951
52283633
SM
952 * xdisp.c (mark_window_display_accurate_1): New function,
953 extracted from mark_window_display_accurate.
954 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
43c09969
GM
955 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
956 (mark_window_display_accurate): Use it.
957 (redisplay_internal): Use it for the selected window.
958 (redisplay_internal): Avoid duplicate mark_window_display_accurate
959 for the selected frame.
960
ac90c44f
GM
961 * xdisp.c Use make_number, for readability.
962 (try_window_id): Disable rows below the window end.
963 (try_window_reusing_current_matrix): Use cursor_row_p.
964 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
965 of rows.
966 (init_from_display_pos): If POS specifies a position in a display
967 vector, maybe get the iterator set up for that ellipsis.
43c09969 968
091f8878
GM
969 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
970
991786dd
EZ
9712001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
972
973 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
974
6c29b43c
GM
9752001-03-23 Gerd Moellmann <gerd@gnu.org>
976
977 * xfaces.c (x_update_menu_appearance): Use a different path
978 for Lucid popup menus.
979
d8731202
SM
9802001-03-22 Stefan Monnier <monnier@cs.yale.edu>
981
982 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
983
984 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
985 (string_buffer_position): Use `make_number'.
986
f61a541b
GM
9872001-03-22 Gerd Moellmann <gerd@gnu.org>
988
3c9e997b
GM
989 * xfaces.c (x_update_menu_appearance): Renamed from
990 x_set_menu_face_resources. Use different resources for popups.
991
992 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
993 (GC_CHECK_STRING_BYTES): Don't define.
994
364cd450
GM
995 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
996 Removed, together with subroutines.
997 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
d8731202 998 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
364cd450 999
d8731202
SM
1000 * dispextern.h (x_set_menu_resources_from_menu_face):
1001 Remove prototype.
364cd450 1002
d8731202 1003 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
364cd450
GM
1004 Remove calls to x_set_menu_resources_from_menu_face.
1005
d8731202
SM
1006 * xfaces.c (xm_set_menu_resources_from_menu_face):
1007 Remove #ifndef LESSTIF_VERSION.
f61a541b
GM
1008
1009 * xmenu.c: Include widget.h.
1010 (single_submenu): Return int. Some cleanup.
1011 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
1012
140330de
GM
10132001-03-21 Gerd Moellmann <gerd@gnu.org>
1014
1015 * xterm.c (x_update_window_end): Handle overwritten mouse face
1016 also for tool bar windows.
1017 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
1018 DRAW is DRAW_IMAGE_RAISED.
1019
1741905c
GM
10202001-03-20 Gerd Moellmann <gerd@gnu.org>
1021
fa88947e
GM
1022 * print.c (syms_of_print): Doc fixes.
1023
1741905c
GM
1024 * fns.c (Fmd5): Doc fix.
1025
ade0bee1
GM
10262001-03-19 Gerd Moellmann <gerd@gnu.org>
1027
357e7376
GM
1028 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1029 Clear area of the frame not occupied by the scroll bar.
1030
c2c097cc
GM
1031 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
1032 tip frame's root window buffer to *tip* right after creating
1033 the frame.
1034
ade0bee1
GM
1035 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
1036 is an integer don't have to be for space characters.
1037
88c6e37e
GM
10382001-03-16 Gerd Moellmann <gerd@gnu.org>
1039
52283633
SM
1040 * indent.c (current_column, current_column_1, Fmove_to_column)
1041 (compute_motion): Handle characters from display vectors differently.
88c6e37e 1042
c62eed76
KH
10432001-03-15 Kenichi Handa <handa@etl.go.jp>
1044
1045 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
1046 drawing glyph string.
1047
c899e7e6
GM
10482001-03-15 Gerd Moellmann <gerd@gnu.org>
1049
d0bbfc99
GM
1050 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
1051 (command_loop_1): Undo last change.
1052
03d1a189
GM
1053 * xterm.c (fast_find_position): Return the correct vpos.
1054
c899e7e6 1055 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
52283633 1056 non-null, set a per-buffer value in BUF instead of the current buffer.
c899e7e6
GM
1057 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
1058 Call store_symval_forwarding with BUF null.
1059 (set_internal): Call store_symval_forwarding with the BUF
1060 parameter passed to set_internal. Formerly, the value was always
1061 set in the current buffer; the buffer recorded in specbind for
1062 this case wasn't used.
1063 (arith_driver): Reindent.
1064
52283633
SM
1065 * buffer.c (swap_out_buffer_local_variables):
1066 Call store_symval_forwarding with BUF null.
c899e7e6
GM
1067
1068 * lisp.h (store_symval_forwarding): Change prototype.
1069
1070 * eval.c (specbind): Call store_symval_forwarding with BUF null.
1071
57ac7c81
GM
10722001-03-14 Gerd Moellmann <gerd@gnu.org>
1073
697617d9
GM
1074 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
1075 FOR_DELETION. Avoid resizing the mini-window of the selected
1076 frame if FOR_DELETION is set.
1077 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
1078 (Fmake_frame_invisible): Change calls to do_switch_frame for new
1079 signature.
1080
1081 * window.c (Fset_window_configuration): Change call to
1082 do_switch_frame to new format.
1083
1084 * keyboard.c (quit_throw_to_read_char): Change call to
1085 do_switch_frame to new format.
1086
1087 * lisp.h (do_switch_frame): Change prototype.
1088
819dce0f
GM
1089 * frame.c (Fframe_parameters): In the `buffer-list' frame
1090 parameter, store the buffer list of FRAME, not the list of the
1091 selected frame.
1092
57ac7c81
GM
1093 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
1094 box just because the glyph row's full_width_p flag is set.
1095
65008712
GM
10962001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
1097
1098 * xdisp.c (highlight_trailing_whitespace): On character terminals,
1099 skip the padding blanks inserted in extend_face_to_end_of_line,
1100 before checking for trailing whitespace.
1101
159cf431
GM
11022001-03-13 Gerd Moellmann <gerd@gnu.org>
1103
52283633 1104 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
19b2bb80
GM
1105 Remove special handling for LessTif/Motif.
1106 (toplevel): Don't include Xm/Xm.h.
1107
52283633
SM
1108 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
1109 Remove workaround code for LessTif; it doesn't work anymore.
1110
2564ea1b 1111 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
57ac7c81 1112 Xm/ScrollBarP.h.
afcdc0a1 1113
52283633
SM
1114 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
1115 Don't access private scroll bar data; it's no longer necessary with
23442ae4
GM
1116 contemporary LessTif.
1117
52283633
SM
1118 * xfaces.c (xm_set_menu_resources_from_menu_face):
1119 Change #if 0 to #ifndef LESSTIF_VERSION.
9faaaa52 1120
159cf431
GM
1121 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
1122 removing button grabs.
1123
c6f7429a
KH
11242001-03-13 Kenichi Handa <handa@etl.go.jp>
1125
cb82d767
KH
1126 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
1127 and clip-large-size-font as obsolete.
1128
c6f7429a
KH
1129 * lread.c (read_multibyte): Check the validity of multibyte
1130 sequence. If invalid, return the first byte.
1131
760cefb5
GM
11322001-03-12 Gerd Moellmann <gerd@gnu.org>
1133
1134 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
1135 before running the command; timer functions or process
1136 filters may have set it.
1137
5141f9d0
EZ
11382001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
1139
1140 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
1141 Doc fix.
1142
b6a15240
GM
11432001-03-12 Gerd Moellmann <gerd@gnu.org>
1144
1145 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
1146 to sprintf.
1147
95522746
GM
11482001-03-09 Gerd Moellmann <gerd@gnu.org>
1149
db14cfc5
GM
1150 * dispextern.h (string_buffer_position): Add prototype.
1151
52283633 1152 * xdisp.c (string_buffer_position, display_prop_string_p)
db14cfc5
GM
1153 (single_display_prop_string_p): New functions.
1154
1155 * xterm.c (note_mouse_highlight): If there's no help-echo on
1156 a string, look at the buffer text ``under'' it.
1157
1158 * keyboard.c (make_lispy_event): Add string info to the event,
1159 analogous to what's done on mode lines.
1160 (read_key_sequence): For a click on a string, consider `local-map'
1161 and `keymap' of that string.
1162
52283633
SM
1163 * keyboard.c (make_lispy_event, make_lispy_movement):
1164 Adjust calls to buffer_posn_from_coords to new format.
3cfd8357
GM
1165
1166 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
1167
1168 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
1169 POS; return void.
1170
95522746
GM
1171 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
1172 flags argument to emacs_open; it seems to conflict with O_EXCL.
1173
898a399d
KH
11742001-03-09 Kenichi Handa <handa@etl.go.jp>
1175
28cd4910
KH
1176 * composite.h (struct composition): Change types of members;
1177 glyph_len to unsigned, width to unsigned short.
898a399d 1178
4cdf6a6c
AI
11792001-03-08 Andrew Innes <andrewi@gnu.org>
1180
1181 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
1182 menu titles.
1183
129004d3
GM
11842001-03-08 Gerd Moellmann <gerd@gnu.org>
1185
221dd3e7
GM
1186 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
1187 instead of nil.
1188
52283633 1189 * xterm.c (note_mouse_highlight): Handle mouse-face and
5de7c6f2
GM
1190 help-echo in strings.
1191 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
1192 (fast_find_string_pos): New function.
1193
52283633
SM
1194 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
1195 (display_string): Call face_at_string_position with new parameter.
5de7c6f2
GM
1196
1197 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
1198 Handle `mouse-face'.
1199
1200 * dispextern.h (face_at_string_position): Change prototype.
1201
52283633 1202 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
e1fbabaf 1203
129004d3
GM
1204 * keyboard.c (make_lispy_event): Avoid generating drag events
1205 if the mouse hasn't actually moved to another buffer position.
52283633 1206
80c8ab8c
DL
12072001-03-08 Dave Love <fx@gnu.org>
1208
129004d3 1209 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
80c8ab8c 1210
989521fd
GM
12112001-03-08 Gerd Moellmann <gerd@gnu.org>
1212
1213 * process.c (Fset_process_window_size): Fix a typo.
1214
bb5c338d
KH
12152001-03-08 Kenichi Handa <handa@etl.go.jp>
1216
1217 * coding.c (detect_coding_sjis): Do more rigid check.
1218 (detect_coding_big5): Likewise.
1219 (decode_coding_sjis_big5): Likewise.
1220 (Fdetect_coding_region): Call detect_coding_system with tailing
1221 anchor byte `\0' for more rigid detection.
52283633 1222 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
bb5c338d
KH
1223 (Fdetect_coding_string): Likewise.
1224
8b8f9197
SM
12252001-03-07 Stefan Monnier <monnier@cs.yale.edu>
1226
1227 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
1228 a string before extracting its data.
1229
3bdf2660
GM
12302001-03-07 Gerd Moellmann <gerd@gnu.org>
1231
1232 * window.c (Frecenter): Rewrite code handling negative values
1233 of ARG on graphical frames.
1234
12352001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
1236
1237 * window.c (displayed_window_lines): If W->start is outside the
1238 accessible portion of the buffer, call start_display with BEGV or
1239 ZV instead of W->start.
1240
471f86b9
GM
12412001-03-07 Gerd Moellmann <gerd@gnu.org>
1242
2ab62c6c
GM
1243 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
1244
471f86b9
GM
1245 * process.c (Fset_process_filter): Don't crash if the input
1246 file descriptor of PROCESS is closed.
1247 (Fset_process_window_size): Likewise.
1248
101922c3
GM
12492001-03-06 Kenichi Handa <handa@etl.go.jp>
1250
1251 * xterm.c (XTflash): Make the timeout of select shorter, and call
1252 select repeatedly until the desired time expires.
1253
45d051a7
GM
12542001-03-06 Gerd Moellmann <gerd@gnu.org>
1255
1256 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
1257
1258 * xfns.c (Fx_create_frame): Clear Vwindow_list.
1259
1260 * lisp.h (Vwindow_list): Declare extern.
1261
8f372c46
EZ
12622001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
1263
1264 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
1265
f16a7aa5
GM
12662001-03-06 Gerd Moellmann <gerd@gnu.org>
1267
157ae273
GM
1268 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
1269 to detect a case where we have to highlight a different region
1270 despite not having left the currently highlighted region.
1271 Set mouse_face_overlay in the x_display_info.
45d051a7 1272 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
157ae273
GM
1273
1274 * xterm.h (struct x_display_info): Add mouse_face_overlay.
1275
1276 * buffer.c (mouse_face_overlay_overlaps): New function.
1277
1278 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
1279 (Qmouse_face): Declare extern.
1280
f16a7aa5
GM
1281 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
1282 if face_change_count is non-zero.
1283
827afcac
KH
12842001-03-06 Kenichi Handa <handa@etl.go.jp>
1285
1286 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
1287 that the source is unibyte.
1288
14c7242e
DL
12892001-03-05 Dave Love <fx@gnu.org>
1290
827afcac 1291 * xterm.c (XTmouse_position): Fix typo.
14c7242e 1292
c28b847b
GM
12932001-03-05 Gerd Moellmann <gerd@gnu.org>
1294
1295 * minibuf.c (read_minibuf): Clean up the binding stack if
1296 called noninteractively.
1297
b86644f2
KH
12982001-03-05 Kenichi Handa <handa@etl.go.jp>
1299
1300 * coding.c (syms_of_coding): Docstring modified.
1301
203682cc 13022001-03-05 Kenichi Handa <handa@etl.go.jp>
b86644f2
KH
1303
1304 * charset.c (char_to_string): If a single byte char has modifier
1305 bits that can't be reflected to the character code, ignore them
45d051a7 1306 instead of signaling an error.
b86644f2 1307
e30bd7b7
EZ
13082001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
1309
1310 * s/msdos.h: Update copyright notice.
1311
1312 * dosfns.h: Update copyright notice.
1313
1314 * dosfns.c: Update copyright notice.
1315
1316 * msdos.c: Update copyright notice.
1317
b52b65bd
GM
13182001-03-02 Gerd Moellmann <gerd@gnu.org>
1319
1320 * xterm.c (glyph_rect): New function.
1321 (XTmouse_position): Use it to raise the threshold for mouse
1322 movement event generation.
1323
53c4b1e6
EZ
13242001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
1325
1326 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
1327 specifies (reverse . t), reverse the initial screen colors.
1328 (IT_set_frame_parameters): If the property is foreground-color,
52283633
SM
1329 but we are reversing the colors, set bg_set, not fg_set.
1330 Likewise for setting background-color and reversing: set fg_set.
1331 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
53c4b1e6
EZ
1332 in effect.
1333
1334 * xfaces.c (Finternal_set_lisp_face_attribute)
1335 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
1336 parameters alist.
1337
f964b4d7
GM
13382001-03-02 Gerd Moellmann <gerd@gnu.org>
1339
ef53d75e
GM
1340 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
1341 to a single slash in the middle of file names.
1342
52283633 1343 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
cda0f4da
GM
1344 Accept only alphanumeric time zone names.
1345
f964b4d7
GM
1346 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
1347 or width area.
1348 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
1349 a widget to zero height.
52283633 1350
c3c45f65
GM
13512001-03-01 Gerd Moellmann <gerd@gnu.org>
1352
1353 * window.c (Fwindow_end): Call move_it_past_eol only if
1354 ending up on a partially visible line.
1355
028d739a
DL
13562001-03-01 Dave Love <fx@gnu.org>
1357
1358 * ccl.c (Fccl_execute): Doc fix.
1359
57c5889c
GM
13602001-03-01 Gerd Moellmann <gerd@gnu.org>
1361
35f59f6b
GM
1362 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
1363 of the tool bar before calling x_figure_window_size.
1364
f84ff02c
GM
1365 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
1366 NULL after destroying it, otherwise XTread_socket can access a
1367 destroyed widget when input is unblocked.
1368
8b8f9197 1369 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
52283633 1370
57c5889c
GM
1371 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
1372 same name as before, although there was a change in fontsets.
1373
224227d1
KR
13742001-02-28 Ken Raeburn <raeburn@gnu.org>
1375
4560730a
KR
1376 * lisp.h (Fframe_parameter): Declare.
1377
224227d1 1378 * window.c (set_window_buffer): Field vscroll is an int, not a
57c5889c 1379 Lisp_Object.
224227d1 1380
ece93c02
GM
13812001-02-28 Gerd Moellmann <gerd@gnu.org>
1382
11ef99b9
GM
1383 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
1384 NULL instead.
1385
1386 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
1387 NULL instead.
1388
ece93c02
GM
1389 * alloc.c (toplevel): Include process.h.
1390 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
1391 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
1392 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
52283633
SM
1393 (allocate_vector, allocate_hash_table, allocate_window)
1394 (allocate_frame, allocate_process, allocate_other_vector):
1395 New functions.
ece93c02
GM
1396 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
1397 (mark_maybe_pointer): New function.
52283633 1398 (mark_memory): Also mark Lisp data to which only pointers
ece93c02
GM
1399 remain and not Lisp_Objects.
1400 (min_heap_address, max_heap_address): New variables.
1401 (mem_find): Return MEM_NIL if START is below min_heap_address or
1402 above max_heap_address.
1403 (mem_insert): Compute min_heap_address and max_heap_address.
1404
1405 * process.c (make_process): Use allocate_process.
1406
1407 * frame.c (make_frame): Use allocate_frame.
1408
1409 * window.c (make_window, make_dummy_parent): Use allocate_window.
1410 (Fcurrent_window_configuration): Use allocate_other_vector.
1411
1412 * lisp.h (allocate_vectorlike): Remove prototype.
1413 (allocate_vector, allocate_other_vector, allocate_frame)
1414 (allocate_window, allocate_process, allocate_hash_table):
1415 Add prototypes.
1416
1417 * fns.c (Fdelete, larger_vector): Use allocate_vector.
1418 (make_hash_table, copy_hash_table): Use allocate_hash_table.
1419
063af457
KH
14202001-02-27 Kenichi Handa <handa@etl.go.jp>
1421
1422 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
1423 treat the produced bytes as a valid multibyte sequence.
1424
1425 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
52283633
SM
1426 (ccl_driver) <CCL_WriteMultibyteChar2>:
1427 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
063af457
KH
1428 <ccl_finish>: Set ccl->eight_bit_control properly.
1429
1430 * ccl.h (struct ccl_program): New member eight_bit_control.
1431
f58c6494
SM
14322001-02-26 Stefan Monnier <monnier@cs.yale.edu>
1433
1434 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
1435 accessible_keymaps_char_table.
1436 (accessible_keymaps_char_table): Obey `is_metized'.
1437 (where_is_internal, Fwhere_is_internal): Don't confuse int and
1438 Lisp_Object.
1439
c596c392
GM
14402001-02-26 Gerd Moellmann <gerd@gnu.org>
1441
1442 * dispnew.c: Check HAVE_TERM_H before including term.h.
1443
425de386
AI
14442001-02-24 Andrew Innes <andrewi@gnu.org>
1445
1446 * makefile.w32-in: Update copyright notice.
1447
2ba11bbd
SM
14482001-02-24 Stefan Monnier <monnier@cs.yale.edu>
1449
1450 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
1451
66c56ed1
KH
14522001-02-24 Kenichi Handa <handa@etl.go.jp>
1453
4c1593ce
KH
1454 * Makefile.in (lisp): Add international/utf-8.elc.
1455
66c56ed1
KH
1456 * fontset.c (Fnew_fontset): Fix handling of the case that an
1457 element of FONTLIST is a cons of family and registry.
1458
796ead7e
JR
14592001-02-23 Jason Rumney <jasonr@gnu.org>
1460
1461 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
1462 to height unconditionally.
1463
1464 * w32term.c (x_set_glyph_string_background_width): Extend the
52283633 1465 background face to the end of the drawing area in the text area, only.
796ead7e
JR
1466 (x_insert_glyphs): Call window_box_left to obtain the left
1467 x-coordinate of the area to shift.
1468
1469 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
1470 safe_run_hooks.
1471
f6839838
AI
14722001-02-22 Andrew Innes <andrewi@gnu.org>
1473
52283633 1474 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
f6839838
AI
1475 ($(BLD)\dispnew.obj):
1476 ($(BLD)\editfns.obj):
1477 ($(BLD)\fileio.obj):
1478 ($(BLD)\filelock.obj):
1479 ($(BLD)\keyboard.obj):
1480 ($(BLD)\w32proc.obj):
1481 ($(BLD)\process.obj):
1482 ($(BLD)\sysdep.obj): Ditto.
1483
1484 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
1485 header files.
52283633
SM
1486 ($(BLD)/dispnew.$(O)):
1487 ($(BLD)/editfns.$(O)):
1488 ($(BLD)/fileio.$(O)):
1489 ($(BLD)/filelock.$(O)):
1490 ($(BLD)/keyboard.$(O)):
1491 ($(BLD)/w32proc.$(O)):
1492 ($(BLD)/process.$(O)):
f6839838
AI
1493 ($(BLD)/sysdep.$(O)): Ditto.
1494
c224f70b
GM
14952001-02-22 Gerd Moellmann <gerd@gnu.org>
1496
51695746
GM
1497 * xdisp.c (forward_to_next_line_start): When taking the shortcut
1498 at the start of the function, check that the \n in it->c is
1499 from the iterator's current position.
52283633 1500
a61b7058
GM
1501 * xdisp.c (handle_single_display_prop): Add parameter
1502 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
1503 properties which replace the display of text with something else.
1504 (handle_display_prop): Call handle_single_display_prop with
1505 additional argument saying if we already replaced text display
1506 with something else. Use AREF.
52283633 1507 (with_echo_area_buffer_unwind_data, display_menu_bar)
a61b7058
GM
1508 (decode_mode_spec_coding): Use AREF and ASIZE.
1509
3473f362
GM
1510 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
1511 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
1512 * vmstime.h: Files removed.
52283633 1513
2bb58df3
GM
1514 * unexencap.c, unexfx2800.c: Files removed.
1515
c224f70b
GM
1516 * dispnew.c (direct_output_for_insert): Give up if we are showing
1517 a message or just cleared the message because we might need to
1518 resize the echo area window or display an empty echo area.
1519
ffc9ff0c
GM
15202001-02-21 Gerd Moellmann <gerd@gnu.org>
1521
0528abe1
GM
1522 * xdisp.c (redisplay_internal): Do the
1523 mark_window_display_accurate after all windows have been
1524 redisplayed because this call resets flags in buffers which are
1525 needed for proper redisplay.
1526
52283633
SM
1527 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
1528 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
ffc9ff0c
GM
1529 the old names.
1530
52283633
SM
1531 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
1532 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
1533
1534 * msdos.h (struct x_output): Rename busy_window to
1535 hourglass_window, busy_p to hourglass_p.
1536
52283633
SM
1537 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
1538 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
1539
1540 * xfns.c: Rename everything containing *busy_cursor* and similar
1541 to *hourglass*.
1542 (syms_of_w32fns): Rename x-busy-pointer-shape to
1543 x-hourglass-pointer-shape, display-busy-cursor to
1544 display-hourglass, busy-cursor-delay to hourglass-delay.
1545
1546 * w32fns.c: Rename everything containing *busy_cursor* and similar
1547 to *hourglass*.
1548 (syms_of_w32fns): Rename x-busy-pointer-shape to
1549 x-hourglass-pointer-shape, display-busy-cursor to
1550 display-hourglass, busy-cursor-delay to hourglass-delay.
1551
1552 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
1553 of its busy_p flag.
1554
1555 * dispextern.h (start_hourglass, cancel_hourglass)
1556 (display_hourglass_p): Renamed from *busy_cursor*.
1557
ab2c5f0a
GM
15582001-02-20 Gerd Moellmann <gerd@gnu.org>
1559
d17e49a8
GM
1560 * keyboard.c (read_char): When an event from unread-command-events
1561 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
1562
fa97adf6
GM
1563 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
1564 equal to the current buffer.
1565
ab2c5f0a
GM
1566 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
1567 nil, otherwise we're left with truncate_lines t when a message
1568 is printed with message-truncate-lines bound to t.
1569
aeac019e
GM
15702001-02-19 Gerd Moellmann <gerd@gnu.org>
1571
c8bc6f65
GM
1572 * window.c (Fmove_to_window_line): Undo last change.
1573 (displayed_window_lines): Call line_bottom_y to determine
1574 the line's bottom position.
1575
1576 * dispextern.h (line_bottom_y): Add prototype.
1577
52283633 1578 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
c8bc6f65
GM
1579 (pos_visible_p): Use it.
1580
980a2d69
GM
1581 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
1582 set redisplaying_p to 0 here instead of in Frecursive_edit.
1583 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
1584 set redisplaying_p.
1585
52283633 1586 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
184d2372
GM
1587 New variables.
1588 (syms_of_xdisp): Initialize new variables.
1589 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
1590 Specbind `inhibit-menubar-update' when updating the menu bar.
1591
65048e97
GM
1592 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
1593 safe_run_hooks.
1594
1595 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
1596 safe_run_hooks.
1597
a57c4026
GM
1598 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
1599 is null.
1600
aeac019e
GM
1601 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
1602 to the start of the file.
1603
76846b31
GM
16042001-02-16 Gerd Moellmann <gerd@gnu.org>
1605
f3f053f3 1606 * window.c (set_window_buffer): Fix last change.
52283633 1607
f3f053f3
GM
1608 * window.c (set_window_buffer): Set window's vscroll to 0.
1609
dad75588
GM
1610 * window.c (coordinates_in_window): Increase width of area
1611 where the vertical line can be dragged.
1612
c220b753
GM
1613 * xterm.c (x_set_glyph_string_background_width): Extend the
1614 background face to the end of the drawing area in the text
1615 area, only.
1616
c56b1c1b
GM
1617 * xdisp.c (handle_single_display_prop): Set iterator's position
1618 to where the `display' property starts, like for images.
1619 (dump_glyph): New function.
1620 (dump_glyph_row): Use it. Dump info about marginal areas.
1621
1622 * dispnew.c (direct_output_for_insert): Recognize more cases where
1623 glyphs can be written instead of being inserted.
1624
1625 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
1626 the left x-coordinate of the area to shift.
1627
76846b31
GM
1628 * dired.c (directory_files_internal): Set result list to nil
1629 before retrying.
1630
0fc71a77
KH
16312001-02-15 Kenichi Handa <handa@etl.go.jp>
1632
1633 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
1634 invalid multibyte sequence, treat *SRC as a character of
1635 eight-bit-graphic.
1636
25078b54
EZ
16372001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
1638
1639 * textprop.c (Fset_text_properties): Doc fix.
1640
8399f8a0
GM
16412001-02-15 Gerd Moellmann <gerd@gnu.org>
1642
1643 * dispnew.c (update_text_area): Undo change of 2001-01-12.
1644
9a2a6f73
DL
16452001-02-14 Dave Love <fx@gnu.org>
1646
1647 * coding.c: Doc and message fixes.
1648
bf853fee
AI
16492001-02-14 Andrew Innes <andrewi@gnu.org>
1650
1651 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
1652 Emacs frame above the screen size.
1653
78c663d8
GM
16542001-02-14 Gerd Moellmann <gerd@gnu.org>
1655
1656 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
1657
7cc9f69f
GM
16582001-02-13 Gerd Moellmann <gerd@gnu.org>
1659
0a411995
GM
1660 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
1661 case that TO ends up beyond ZV after running before-change-functions.
1662
5ddc1b75
GM
1663 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
1664 the selected window if it is showing the buffer in question.
1665
7cc9f69f
GM
1666 * dired.c (directory_files_internal): Initialize errno.
1667 (toplevel): Include errno.h.
1668
2e6621ca
GM
16692001-02-13 Kenichi Handa <handa@etl.go.jp>
1670
1671 * xfaces.c (best_matching_font): New parameter width_ratio.
1672 Multiply avgwidth by width_ratio.
1673 (choose_face_font): Call best_matching_font with width_ratio
1674 calculated from the column width of C.
1675
60222d69
AI
16762001-02-12 Andrew Innes <andrewi@gnu.org>
1677
1678 The following changes are to draw box lines inside characters area
1679 if line-width is negative.
52283633 1680
60222d69
AI
1681 * w32term.c (x_produce_image_glyph): Pay attention to the case that
1682 face->box_line_width is negative.
1683 (x_produce_stretch_glyph): Likewise.
1684 (x_produce_glyphs): Likewise.
1685 (x_estimate_mode_line_height): Likewise.
1686 (x_draw_glyph_string_background): Likewise.
1687 (x_draw_glyph_string_foreground): Likewise.
1688 (x_draw_composite_glyph_string_foreground): Likewise.
1689 (x_draw_glyph_string_box): Likewise.
1690 (x_draw_image_foreground): Likewise.
1691 (x_draw_image_relief): Likewise.
1692 (x_draw_image_foreground_1): Likewise.
1693 (x_draw_image_glyph_string): Likewise.
1694
9804b846
KH
16952001-02-09 Kenichi Handa <handa@etl.go.jp>
1696
1697 The following changes are to draw box lines inside characters area
1698 if line-width is negative.
52283633 1699
9804b846
KH
1700 * xterm.c (x_produce_image_glyph): Pay attention to the case that
1701 face->box_line_width is negative.
1702 (x_produce_stretch_glyph): Likewise.
1703 (x_produce_glyphs): Likewise.
1704 (x_estimate_mode_line_height): Likewise.
1705 (x_draw_glyph_string_background): Likewise.
1706 (x_draw_glyph_string_foreground): Likewise.
1707 (x_draw_composite_glyph_string_foreground): Likewise.
1708 (x_draw_glyph_string_box): Likewise.
1709 (x_draw_image_foreground): Likewise.
1710 (x_draw_image_relief): Likewise.
1711 (x_draw_image_foreground_1): Likewise.
1712 (x_draw_image_glyph_string): Likewise.
1713
1714 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
1715 and :line-width can be negative.
52283633 1716 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
9804b846 1717
49be9f70
JR
17182001-02-09 Jason Rumney <jasonr@gnu.org>
1719
1720 * w32term.c (w32_encode_char): Treat eight bit graphic and control
1721 characters the same as ASCII and latin-1.
1722 (x_display_and_set_cursor): Check for the focus frame's selected
1723 window instead of selected_window.
1724 (x_after_update_window_line): Don't clear if frame's internal
1725 border width is zero.
1726 (x_new_font): Don't change a tooltip's size.
1727 (w32_initialize): Set char_ins_del_ok to 1.
1728
1729 * w32fns.c (Fx_show_tip): Fix calls to make_number.
1730 (x_set_font): If font hasn't changed, avoid recomputing
1731 faces and other things.
52283633
SM
1732 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
1733 (Fx_create_frame): Add the tool bar height to the frame height.
49be9f70
JR
1734 (x_create_tip_frame): Prevent changing the tooltip's
1735 background color by specifying a color for the default font
1736 in .Xdefaults.
1737 (Qcancel_timer): New variable.
1738 (syms_of_w32fns): Initialize and staticpro it.
1739 (Fx_hide_tip, Fx_show_tip): Use it.
1740 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
1741 the timer.
1742 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
1743
1744 * w32.c (init_environment): Duplicate local string before putenv.
1745
555e35d2
SZ
17462001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
1747
1748 * charset.c (Fstring): A typo.
1749
19c92c94
KH
17502001-02-09 Kenichi Handa <handa@etl.go.jp>
1751
e47a1c33
KH
1752 * charset.c (Fstring): If all arguments are less than 256, return
1753 a unibyte string.
1754
1755 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
1756 return a unibyte string.
1757
19c92c94
KH
1758 * coding.c (code_convert_region): After detecting a coding, if
1759 nothing found, set coding->composing to COMPOSITION_NO.
1760 (decode_coding_string): Likewise.
1761
d8e675f5
SM
17622001-02-08 Stefan Monnier <monnier@cs.yale.edu>
1763
1764 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
1765 to avoid overflow.
1766
bd503487
KH
17672001-02-07 Kenichi Handa <handa@etl.go.jp>
1768
1769 * charset.c (parse_str_to_multibyte): New function.
1770
1771 * charset.h (parse_str_to_multibyte): Extern it.
1772
1773 * print.c (print_string): If we are going to print a unibyte
1774 string into a multibyte buffer, convert the string to multibyte by
1775 str_to_multibyte.
1776
a8370d72
AI
17772001-02-06 Andrew Innes <andrewi@gnu.org>
1778
1779 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
1780 been created. It seems we can get sent window messages such as
1781 WM_ERASEBKGND before we properly update a frame.
1782
c363a1d6
GM
17832001-02-06 Gerd Moellmann <gerd@gnu.org>
1784
1785 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
1786 Avoid some unnecessary cursor positioning.
1787
a08332c0
GM
17882001-02-05 Gerd Moellmann <gerd@gnu.org>
1789
52283633 1790 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
a08332c0
GM
1791 (LFACE_AVGWIDTH): New macro.
1792 (LFACEP): Use AREF.
1793 (check_lface_attrs): Check LFACE_AVGWIDTH.
1794 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
1795 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
1796 (merge_face_vectors): Check LFACE_AVGWIDTH.
1797 (Finternal_make_lisp_face): Use AREF.
1798 (xm_set_menu_resources_from_menu_face)
1799 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
1800 (Finternal_lisp_face_empty_p): Use AREF.
1801 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
1802 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
1803 Compare average widths..
1804 (best_matching_font): Arrange for comparing average widths.
1805
52283633
SM
1806 * dispextern.h (enum lface_attribute_index):
1807 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
1808
5cb3c8d4
DL
18092001-02-05 Dave Love <fx@gnu.org>
1810
1811 * puresize.h: Revert last change following loadup.el change.
1812
193fba87
AI
18132001-02-05 Andrew Innes <andrewi@gnu.org>
1814
1815 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
1816 invocation of temacs, to work with Windows 2000.
1817 (bootstrap-emacs): Ditto.
1818
e16f52ce
GM
18192001-02-05 Gerd Moellmann <gerd@gnu.org>
1820
7a58ab59
GM
1821 * xterm.c (x_display_and_set_cursor): Check for the focus
1822 frame's selected window instead of selected_window.
1823
e89aaabd
GM
1824 * xdisp.c (try_scrolling): If point is in the line below the
1825 window, make sure to move the iterator at least a canonical
1826 char height down.
1827
52283633 1828 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
e16f52ce 1829
789ce875
KH
18302001-02-05 Kenichi Handa <handa@etl.go.jp>
1831
52283633
SM
1832 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
1833 If invalid, execute CCL_INVALID_CMD.
789ce875
KH
1834 (ccl_driver): If the CCL program is terminated because of
1835 CCL_STAT_INVALID_CMD, copy the remaining source data to the
1836 destination instead of throwing them away.
1837
20b28f82
GM
18382001-02-02 Gerd Moellmann <gerd@gnu.org>
1839
79fb38c0
GM
1840 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
1841 faces and other things.
1842
20b28f82
GM
1843 * xdisp.c (get_next_display_element): Fix case of empty
1844 display table entry.
1845
5a72551e
EZ
18462001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
1847
eb24d0bf
EZ
1848 * editfns.c (Fconstrain_to_field): Doc fix.
1849
6a3f48c7
EZ
1850 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
1851 into `thoroughly', to make it consistent with the doc string.
1852
5a72551e
EZ
1853 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
1854
01acdb05
GM
18552001-02-01 Gerd Moellmann <gerd@gnu.org>
1856
0353b28f
GM
1857 * search.c (search_buffer): Call set_search_regs with a byte
1858 position, not a character position.
1859
01acdb05
GM
1860 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
1861 minibuffer-only,
1862
e86b5133
EZ
18632001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
1864
1865 * frame.c (Fmodify_frame_parameters): Doc fix.
1866
7442878f
GM
18672001-01-31 Gerd Moellmann <gerd@gnu.org>
1868
01acdb05
GM
1869 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
1870 identifier which is not reserved by Standard C.
52283633 1871
7442878f
GM
1872 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
1873
1874 * window.c (enum window_part): New enumeration.
1875 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
1876 Qright_bitmap_area.
1877 (coordinates_in_window): Return an enumerator from enum
1878 window_part. Fix handling of right scroll bar.
1879 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
1880 `right-fringe' instead of `left-bitmap-area' and
1881 `right-bitmap-area'. Use enumerators from enum window_part
1882 instead of hard-coded integers.
52283633
SM
1883 (check_window_containing, window_from_coordinates):
1884 Use enumerators from enum window_part instead of hard-coded integers.
7442878f
GM
1885 (syms_of_window): Replace Qleft_bitmap_area and
1886 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
1887
7c132cba
EZ
18882001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
1889
1890 * editfns.c (Fformat_time_string): Doc fix.
1891
c359dd9e
SM
18922001-01-31 Stefan Monnier <monnier@cs.yale.edu>
1893
1894 * keymap.c (Fwhere_is_internal): Use the first valid binding
1895 if no ascii binding is found (when firstonly is t).
1896
ce070307
GM
18972001-01-31 Gerd Moellmann <gerd@gnu.org>
1898
b4f30ec5
GM
1899 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
1900 instead of Finteractive_p.
1901
1902 * lisp.h (interactive_p): Add prototype.
1903
1904 * eval.c (interactive_p): New function.
1905 (Finteractive_p): Use it.
1906
ce070307
GM
1907 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
1908
f57b6e64
DL
19092001-01-31 Dave Love <fx@gnu.org>
1910
d61c7afe
DL
1911 * .gdbinit (hook-run): Define to run xreload.
1912
f57b6e64
DL
1913 * textprop.c (Fset_text_properties): Fix newline in doc string.
1914
eef93f99
GM
19152001-01-30 Gerd Moellmann <gerd@gnu.org>
1916
52283633
SM
1917 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
1918 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
eef93f99
GM
1919
1920 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
52283633 1921 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
eef93f99
GM
1922 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
1923
1924 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
1925 height.
1926
d9c1f6f9
DL
19272001-01-30 Dave Love <fx@gnu.org>
1928
1929 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
1930 AFTER_POTENTIAL_GC.
1931
e8f044a0
GM
19322001-01-29 Gerd Moellmann <gerd@gnu.org>
1933
52283633
SM
1934 * bytecode.c (Fbyte_code) <Bcurrent_column>:
1935 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
e8f044a0 1936
8e1db7b3
EZ
19372001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
1938
1939 * textprop.c (Fset_text_properties): Doc fix.
1940
4eefd9d2
GM
19412001-01-29 Gerd Moellmann <gerd@gnu.org>
1942
1943 * xdisp.c (forward_to_next_line_start): Remove xassert.
1944
fccb8288
EZ
19452001-01-29 Jason Rumney <jasonr@gnu.org>
1946
4eefd9d2 1947 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
fccb8288
EZ
1948 returning without releasing it.
1949
76581eab
KH
19502001-01-29 Kenichi Handa <handa@etl.go.jp>
1951
1952 * w32fns.c (w32_font_match): Allocate three more bytes to regex
1953 for '^', '$', and '\0'.
1954
83a96b4d
AC
19552001-01-28 Andrew Choi <akochoi@i-cable.com>
1956
5604ec34
AC
1957 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
1958 regex for '^', '$', and '\0'.
1959
83a96b4d
AC
1960 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
1961 only if current_sblock has been initialized.
1962
1963 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
1964 terminal frame even if it is the only visible frame.
1965
c09a6440
KH
19662001-01-28 Kenichi Handa <handa@etl.go.jp>
1967
1968 * fontset.c (font_family_registry): Even if FONTNAME conform to
1969 XLFD, if it specifies other fields than family and registry,
52283633 1970 return FONTANME. New argument FORCE if nonzero cancel that feature.
c09a6440 1971 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
52283633
SM
1972 a signle byte character. Don't set FAMILY part to nil here.
1973 It is handled by the caller choose_face_font.
c09a6440
KH
1974 (Fnew_fontset): Call font_family_registry with FORCE 0.
1975 (Fset_fontset_font): Likewise.
1976
4dcd74e6
GM
19772001-01-27 Gerd Moellmann <gerd@gnu.org>
1978
1979 * xdisp.c (display_line): Don't treat a newline as fitting
1980 on the line.
1981
d2906bf8
GM
19822001-01-26 Gerd Moellmann <gerd@gnu.org>
1983
0130fe1a
GM
1984 * window.c (size_window): Set the window's orig_top to nil when
1985 changing heights, so that a future shrink_mini_window won't
1986 restore a bogus height.
1987
550f0e6a
GM
1988 * frame.c (do_switch_frame): If selected frame has a mini-window,
1989 resize that to exact size.
1990
b7b20fbd
GM
1991 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
1992
a47b7816
GM
1993 * xdisp.c (display_line): Simplify check for glyphs fitting
1994 entirely in the line.
1995
d2906bf8
GM
1996 * xfns.c (xic_style): New variable.
1997 (create_frame_xic): Move static variable to global scope for
550f0e6a 1998 the case that `static' gets defined away.
d2906bf8 1999
73df2b1e
KH
20002001-01-26 Kenichi Handa <handa@etl.go.jp>
2001
2002 * coding.c (decode_coding): Set a flag for inhibiting
2003 inconsistent eol.
2004 (code_convert_region): Always set saved_coding_symbol.
2005 (decode_coding_string): Likewise. Update coding->symbol when we
52283633 2006 encounter a inconsistent eol by the same way as code_convert_region.
73df2b1e 2007
6613cfc4
GM
20082001-01-25 Gerd Moellmann <gerd@gnu.org>
2009
c5e6e06b
GM
2010 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
2011 XClearArea.
2012
2013 * xterm.c (x_after_update_window_line): Don't clear if frame's
2014 internal border width is zero.
2015 (x_clear_area): New function.
2016 (x_after_update_window_line, x_clear_end_of_line)
2017 (x_scroll_bar_create, x_scroll_bar_set_handle)
2018 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
2019 instead of XClearArea.
2020
2021 * xterm.h (x_clear_area): Add prototype.
2022
6613cfc4
GM
2023 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
2024 which doesn't seem necessary anymore with Lesstif 0.92.
2025
650cc6cc
DL
20262001-01-25 Dave Love <fx@gnu.org>
2027
34ac3367
DL
2028 * puresize.h (BASE_PURESIZE): Up to 720000.
2029
650cc6cc
DL
2030 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
2031
5e37dc22
GM
20322001-01-25 Gerd Moellmann <gerd@gnu.org>
2033
e1e441f9
GM
2034 * xdisp.c (echo_area_display): Don't call redisplay_internal
2035 when Emacs is shutting down. We can't run hooks etc. that
2036 would be necessary to do a redisplay.
2037
5e37dc22
GM
2038 * lread.c (read_integer): Use type EMACS_INT instead of int.
2039
0fb94c7f
EZ
20402001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
2041
2042 * ccl.c (ccl_driver): Fix last change.
2043
e3778624
KH
20442001-01-25 Kenichi Handa <handa@etl.go.jp>
2045
2046 * ccl.h (sturct ccl_program): New member suppress_error.
2047
bb264518 2048 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
e3778624
KH
2049 insert error message to the output.
2050 (setup_ccl_program): Initialize ccl->suppress_error to 0.
2051
2052 * coding.h (struct coding_system): New member suppress_error.
2053
2054 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
2055 (Fset_terminal_coding_system_internal): Set the member
2056 suppress_error to 1.
2057 (Fset_safe_terminal_coding_system_internal): Likewise.
2058
245ed2b1
SM
20592001-01-24 Stefan Monnier <monnier@cs.yale.edu>
2060
2061 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
2062 as if it was a `charset'.
2063
f9aaedb6
GM
20642001-01-24 Gerd Moellmann <gerd@gnu.org>
2065
2066 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
2067 value in where_is_cache; the next lookup in the cache returns
2068 something bogus if we do.
2069
c3902c3e
EZ
20702001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
2071
2072 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
2073 if HAVE_WINDOW_SYSTEM isn't defined.
2074
3497f73e
GM
20752001-01-24 Gerd Moellmann <gerd@gnu.org>
2076
e7e41584
GM
2077 * fns.c (sweep_weak_table): Fix code taking items out of
2078 the hash collision chain. Some cleanup.
2079
3497f73e
GM
2080 * xterm.c (x_new_font): Don't change a tooltip's size.
2081
2082 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
2083 background color by specifying a color for the default font
2084 in .Xdefaults.
2085
3d48e687
KH
20862001-01-24 Kenichi Handa <handa@etl.go.jp>
2087
96531b20
KH
2088 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
2089 a workaround for SunOS 4's cc.
2090 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
2091 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
2092 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
2093 statement.
3d48e687 2094
a30629d2
GM
20952001-01-23 Gerd Moellmann <gerd@gnu.org>
2096
2097 * xterm.c (x_set_window_size_1): New function extracted from
2098 x_set_window_size.
2099 (x_set_window_size): Use it.
2100 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
2101 doesn't have a widget, like tooltips.
2102
5a43decf
EZ
21032001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
2104
52283633 2105 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5a43decf 2106
b0e98867
KH
21072001-01-23 Kenichi Handa <handa@etl.go.jp>
2108
2109 * fns.c (Fset_char_table_default): Fix to make sub char-table
2110 correctly.
2111
50606b4c
GM
21122001-01-22 Gerd Moellmann <gerd@gnu.org>
2113
cb2ddc53 2114 * xdisp.c (build_desired_tool_bar_string): Make sure we have
52283633
SM
2115 a desired tool bar string, even if there are no tool bar items.
2116
57c28064
GM
2117 * xdisp.c (Ftool_bar_lines_needed): New function.
2118 (syms_of_xdisp): Defsubr it.
2119
50606b4c
GM
2120 * editfns.c (Fformat): Don't extend text properties from arguments
2121 to padding chars in the result.
2122
2f169c38
EZ
21232001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
2124
2125 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
2126
0f32f023
AI
21272001-01-20 Andrew Innes <andrewi@gnu.org>
2128
52283633 2129 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
0f32f023
AI
2130 (w32_initialize): Don't set term hooks that aren't actually needed
2131 in windowed mode.
2132
2133 * xfaces.c (realize_default_face):
2134 (realize_face):
2135 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
2136
2137 * xdisp.c (handle_single_display_prop): Remove references to
2138 FRAME_W32_CONSOLE_P.
2139
52283633 2140 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
0f32f023
AI
2141
2142 * frame.h (output_method): Remove output_w32_console method.
2143 (FRAME_W32_CONSOLE_P): Remove macro.
2144
2145 * frame.c (Qw32_console): Remove variable.
2146 (Fframep): Remove references to it.
2147 (syms_of_frame): Ditto.
2148 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
2149
2150 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
2151 redefinition.
2152
7173eada
KH
21532001-01-20 Kenichi Handa <handa@etl.go.jp>
2154
2155 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
2156
755b45ce
AI
21572001-01-19 Andrew Innes <andrewi@gnu.org>
2158
2159 * w32.c (init_environment): Add a version-independent site-lisp
2160 directory to EMACSLOADPATH, after the version dependent one.
2161
0a949811
GM
21622001-01-19 Gerd Moellmann <gerd@gnu.org>
2163
8501998a
GM
2164 * editfns.c (Fbuffer_substring): Doc fix.
2165
52283633
SM
2166 * xdisp.c (message_dolog, message2, message2_nolog):
2167 Rename parameter LEN to NBYTES.
0a949811 2168
e6ebcbbe
KH
21692001-01-19 Kenichi Handa <handa@etl.go.jp>
2170
200ecca2
KH
2171 * charset.c (strwidth): Use c_string_width.
2172 (c_string_width): New function.
2173 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
2174 Caller changed.
2175
2176 * charset.h (c_string_width, lisp_string_width): Extern them.
2177
52283633 2178 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
200ecca2 2179
e6ebcbbe
KH
2180 * indent.c (check_composition): Check validity of composition.
2181
200ecca2
KH
2182 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
2183 characters by calling c_string_width.
2184 (x_consider_frame_title): Get byte length of frame tile string
2185 correctly.
2186 (display_mode_element): Pay attention to width of non-ASCII
2187 characters by calling strwidth.
2188
8692ca92
GM
21892001-01-18 Gerd Moellmann <gerd@gnu.org>
2190
8962e303
GM
2191 * xfns.c (Qcancel_timer): New variable.
2192 (syms_of_xfns): Initialize and staticpro it.
2193 (Fx_hide_tip, Fx_show_tip): Use it.
2194 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
2195 the timer.
2196 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
2197
91523be9
GM
2198 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
2199
2200 * window.h (WINDOW_LIVE_P): New macro.
2201
b0b7ed0e
GM
2202 * window.c (window_size_fixed): New variable.
2203 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
2204 the doc string.
2205
06bccf8e
GM
2206 * eval.c (specbind): If binding a per-buffer variable which
2207 doesn't have a buffer-local value in the current buffer, change
2208 the global value by changing the value of the symbol bound in all
2209 buffers not having their own value, to make it consistent with
2210 what happens with other buffer-local variables.
2211
8692ca92
GM
2212 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
2213
2214 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
2215 when searching for a newline.
2216
bb3a3b50
KH
22172001-01-18 Kenichi Handa <handa@etl.go.jp>
2218
2219 * xdisp.c (display_string): Fix previous change.
2220
c2cc16fa
JR
22212001-01-18 Jason Rumney <jasonr@gnu.org>
2222
2223 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
2224 GLYPH_DEBUG is defined.
2225 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
2226 true for images with `:ascent 100'.
2227 (x_set_mouse_face_gc): If the last used mouse face has gone in the
2228 meantime, use face MOUSE_FACE_ID.
2229 If first glyph isn't a character glyph, use the ASCII NUL
2230 character to determine the face.
2231 (expose_area): Do not treat left margin specially.
2232 (note_mode_line_highlight): If no local_map, check global keymap.
2233 (note_mouse_highlight): Initialize overlay.
52283633 2234 (clear_mouse_face): Don't return if tip_frame is non-nil.
c2cc16fa
JR
2235 (show_scroll_bars): Remove unused function.
2236 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
2237 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
2238 Clip to row.
52283633 2239 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
c2cc16fa
JR
2240 (x_free_frame_resources): Unload relief colors.
2241
9c11f79e
GM
22422001-01-17 Gerd Moellmann <gerd@gnu.org>
2243
3aec8722 2244 * xdisp.c (forward_to_next_line_start): Avoid calling
52283633
SM
2245 get_next_display_element when the newline is already found.
2246 This may change the iterator's position, when its current position is
3aec8722
GM
2247 equal to the iterator's stop_charpos.
2248
f3ffc2c3
GM
2249 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
2250 zero, use this method only at the end of a line.
2251
52283633 2252 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
a86110a8
GM
2253 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
2254 if SCALABLE_FONTS_P is set.
52283633 2255
d26d6fd9
GM
2256 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
2257 so that scalable fonts are included.
2258
9c11f79e
GM
2259 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
2260 In the cache, use a key containing the information if scalable
2261 fonts are included.
2262 (x_load_font): Adapt to change of keys in the font cache.
2263
22642001-01-17 Kim F. Storm <storm@filanet.dk>
52283633 2265
d26d6fd9
GM
2266 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
2267 XListFonts to take advantage of font caching.
2268
9c11f79e
GM
2269 * xterm.c (x_list_fonts): Ensure caching font information when
2270 called for a null frame, which is the case frequently when Emacs
2271 starts.
2272
51446987
GM
22732001-01-17 Gerd Moellmann <gerd@gnu.org>
2274
f864120f
GM
2275 * xfns.c (QCconversion): Replaces QCalgorithm.
2276
2277 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
2278
2279 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
2280 of :algorithm.
52283633 2281
e37d1417
GM
2282 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
2283 not everything could be displayed.
2284
51446987
GM
2285 * line.h, x-list-font.c: Files removed because unused.
2286
9ad4f3e5
AI
22872001-01-17 Andrew Innes <andrewi@gnu.org>
2288
2289 * dired.c (directory_files_internal): Convert result from readdir
2290 to a unibyte string initially, to avoid possible misinterpretation
2291 of some bytes as the internal form of Emacs characters.
2292
2eda09b5
KH
22932001-01-17 Kenichi Handa <handa@etl.go.jp>
2294
2295 * fns.c (concat): Be sure to avoid putting the same `composition'
2296 property on the adjacent regions.
2297
826f3788
GM
22982001-01-16 Gerd Moellmann <gerd@gnu.org>
2299
52283633 2300 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
f251459d
GM
2301 (Fscroll_right, Fscroll_left): Set it here instead, if called
2302 interactively.
2303
d57b83b3
GM
2304 * buffer.c (Fset_buffer_modified_p): Set buffer's
2305 prevent_redisplay_optimizations_p flag.
2306
826f3788 2307 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
52283633
SM
2308 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
2309 with additional arg.
2310
2311 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
2312 Change prototype.
826f3788 2313
826f3788
GM
2314 * xdisp.c (redisplay_preserve_echo_area): Add parameter
2315 FROM_WHERE, for debugging.
2316
261d788b
KH
23172001-01-16 Kenichi Handa <handa@etl.go.jp>
2318
2319 * ccl.c (Fregister_ccl_program): Handle the return value of
2320 resolve_symbol_ccl_program correctly.
52283633 2321 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
261d788b 2322
bccee4f2
GM
23232001-01-15 Gerd Moellmann <gerd@gnu.org>
2324
e4ded23c
GM
2325 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
2326 has gone in the meantime, use face MOUSE_FACE_ID.
52283633
SM
2327
2328 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
2329 If x_display_info_for_display returns null, don't try to close
ae24cb3b
GM
2330 the display; we didn't open it.
2331
bccee4f2
GM
2332 * dispnew.c (save_or_restore_current_matrices): Function removed.
2333 (save_current_matrix, restore_current_matrix): New functions.
2334 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
2335 restore the frame's current matrix. Due to the glyph pointer
2336 setup done in adjust_glyph_matrix, there is no easy way to make
2337 saving the current matrix in the desired matrix generally correct,
2338 so don't try it.
2339
ebeccffa
KH
23402001-01-15 Kenichi Handa <handa@etl.go.jp>
2341
2342 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
2343 truncation glyphs.
2344 (display_line): Optimize for wide characters.
e4ded23c 2345 (display_string): Don't try to display a multi-column character
ebeccffa
KH
2346 partially. On ttys, produce more than one truncation glyph for
2347 multi-column characters that don't fit on the line.
2348
64388126
KH
23492001-01-13 Kenichi Handa <handa@etl.go.jp>
2350
52283633
SM
2351 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
2352 Define it instead of WORDS_BIGENDIAN. Caller changed.
64388126 2353
8edb0a6f
JR
23542001-01-13 Jason Rumney <jasonr@gnu.org>
2355
2356 * w32fns.c (Fimage_size, image_ascent, lookup_image)
2357 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
52283633
SM
2358 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
2359 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
8edb0a6f 2360
52283633
SM
2361 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
2362 (x_draw_image_relief, x_draw_image_foreground_1)
8edb0a6f
JR
2363 (x_draw_image_glyph_string): Adapt to change of image margins.
2364
2365 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
2366 variables.
2367
2368 * w32bdf.c (search_file_line, get_cached_font_char)
2369 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
2370
2371 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
2372
2373 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
2374 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
2375 (Fw32_send_sys_command): Remove unused variables.
2376 (w32_msg_pump): Add parentheses.
2377
2378 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
2379 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
2380 Add parentheses.
2381
4956d1ef
GM
23822001-01-12 Gerd Moellmann <gerd@gnu.org>
2383
b30623be
GM
2384 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
2385 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
2386 being a pair of margins.
2387 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
2388 to DEFVAR_LISP. Extend doc.
2389
2390 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
2391 margins.
2392 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
2393 pair of integers `(X . Y)', use X for the horizontal and Y for the
2394 vertical margin.
2395 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
2396 (parse_image_spec): Check it.
52283633
SM
2397 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
2398 (tiff_format, gif_format, gs_format):
2399 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
b30623be 2400
52283633
SM
2401 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
2402 (x_draw_image_relief, x_draw_image_foreground_1)
b30623be
GM
2403 (x_draw_image_glyph_string): Adapt to the change of image margins.
2404
2405 * dispextern.h (struct image): Replace member `margin' with
2406 `hmargin' and `vmargin'.
2407
4554cc79
GM
2408 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
2409 and GLYPHS.
2410
2411 * dispnew.c (update_text_area): Put code which decrements the
2412 stop position when the row's face extends to the end of the
3bffc665 2413 line in #if 0.
4554cc79 2414
3cccce8d
GM
2415 * xfns.c (x_set_mouse_color): Fix color allocation.
2416
4956d1ef
GM
2417 * keyboard.c: Call get_local_map with new argument list.
2418
2419 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
2420
2421 * intervals.h (enum map_property): Removed.
2422 (get_local_map): Change prototype.
2423
2424 * keymap.c: Call get_local_map with new argument list.
2425 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
2426
2c2ff7f2
GM
24272001-01-11 Gerd Moellmann <gerd@gnu.org>
2428
a23887b9
GM
2429 * xdisp.c (build_desired_tool_bar_string): Correct the computation
2430 of the size needed for the tool bar string. For the last image,
2431 use a `display' property that reaches to the end of the string.
2432
a7ee2d2e
GM
2433 * xselect.c (selection_request_dpyinfo): New variable.
2434 (x_handle_selection_request): Set it.
2435 (x_selection_request_lisp_error): Don't call
2436 x_decline_selection_request if selection request's display has
2437 been closed.
2438
52283633
SM
2439 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
2440 Do the unregister_colors before calling XFreeColors.
2c2ff7f2 2441
457b792c
GM
24422001-01-10 Dave Love <fx@gnu.org>
2443
2444 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
2445 ${SOME_MACHINE_LISP}, not ${lisp}.
2446
c1efd260
GM
24472001-01-10 Gerd Moellmann <gerd@gnu.org>
2448
52283633
SM
2449 * xdisp.c (display_line): On ttys, produce more than one truncation
2450 glyph for multi-column characters that don't fit on the line.
a98b5ed9 2451
ac95a621
GM
2452 * xselect.c (x_reply_selection_request): Add a comment.
2453
c1efd260
GM
2454 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
2455 XkbGetNames instead of XkbGetKeyboard.
2456
1bfb1345
DL
24572001-01-10 Dave Love <fx@gnu.org>
2458
2459 * sysdep.c (random): Revert the declaration.
2460
38119822
GM
24612001-01-09 Gerd Moellmann <gerd@gnu.org>
2462
52283633
SM
2463 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
2464 Call function string_bytes.
35f464a7
GM
2465 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
2466
2467 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
2468 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
2469 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
2470 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
2471 the current sblock.
2472 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
2473 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
2474 after sweeping strings, and at the end.
2475 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
2476
38119822
GM
2477 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
2478 ensure that pop_message is called.
2479
2480 * keyboard.c (Fexecute_extended_command): Use a
2481 record_unwind_protect to ensure that pop_message is called.
2482
2483 * lisp.h (push_message_unwind): Add prototype.
2484
2485 * xdisp.c (push_message_unwind): New function.
2486
2487 * fileio.c (do_auto_save_unwind): Do the pop_message here
2488 instead of in Fdo_auto_save.
2489 (Fdo_auto_save): Don't call pop_message.
2490
f47a9ec4
KR
24912001-01-08 Ken Raeburn <raeburn@gnu.org>
2492
2493 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
2494 in inner block.
2495
a758f97d
GM
24962001-01-08 Gerd Moellmann <gerd@gnu.org>
2497
6d0afc03
GM
2498 * window.c (window_scroll_pixel_based): Adjust glyph matrices
2499 when increasing window's vscroll.
2500
a758f97d
GM
2501 * macros.c (Qkbd_macro_termination_hook): New variable.
2502 (syms_of_macros): Initialize and staticpro it.
2503 (pop_kbd_macro): Run kbd-macro-termination-hook.
2504
2505 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
2506
1bfb1345 25072001-01-07 Dave Love <fx@gnu.org>
64d4ec0f
DL
2508
2509 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
2510 arglist, for documentation's sake.
2511
0dac6924
AI
25122001-01-06 Andrew Innes <andrewi@gnu.org>
2513
2514 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
2515 of *.pdb.
2516
8182406a
AI
25172001-01-05 Andrew Innes <andrewi@gnu.org>
2518
2519 * term.c (update_end): Don't check updating_frame; for some reason
2520 this can be 0 sometimes, such as after dismissing a popup menu,
2521 and isn't necessary given the explicit frame argument.
2522
3828218c
GM
25232001-01-05 Gerd Moellmann <gerd@gnu.org>
2524
2525 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
2526 on some systems, and an unsigned long on others, like FreeBSD 4.1.
2527
2f5ded21
GM
25282001-01-04 Gerd Moellmann <gerd@gnu.org>
2529
52283633 2530 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
2f5ded21
GM
2531
2532 * xfns.c (x_create_tip_frame): Preserve the value of
2533 face_change_count around the creation of the tip frame.
52283633 2534
2f5ded21
GM
2535 * xfns.c (last_show_tip_args): New variable.
2536 (compute_tip_xy): New function.
2537 (Fx_show_tip): Reuse an existing tip frame, if possible.
2538 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
2539
dfad65fa
DL
25402001-01-04 Dave Love <fx@gnu.org>
2541
64d4ec0f
DL
2542 * editfns.c (Fformat): Doc fix.
2543
dfad65fa
DL
2544 * systime.h (set_file_times): Prototype.
2545
2546 * widget.h (EmacsFrameSetCharSize_): Prototype.
2547
2548 * sysdep.c (random, srandom): Declare explicitly.
2549
2550 * dispextern.h (move_it_vertically_backward): Declare.
2551
85fe3b5e
GM
25522001-01-04 Gerd Moellmann <gerd@gnu.org>
2553
0f2ac578
GM
2554 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
2555 like in Fx_create_frame.
2556
482cca61
GM
2557 * xfaces.c (set_font_frame_param): Don't do anything for
2558 non-graphical frames.
2559
85fe3b5e
GM
2560 * window.c (Fdelete_other_windows): Set window's window_end_valid
2561 to nil when changing the window's start. Don't change the
2562 window's start when its top position hasn't changed. If we do,
2563 this will set the window's optional_new_start, which act's like a
2564 force_start during redisplay with C-x 1 M-> under particular
2565 circumstances (see report from Per Starback to emacs-pretest-bug
2566 from 2000-12-13.).
2567
3e99d3b4
GM
25682001-01-03 Gerd Moellmann <gerd@gnu.org>
2569
a77dc1ec
GM
2570 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
2571 short cut at the start of the function. Add an assertion.
2572 (reseat_at_next_visible_line_start): Add an assertion.
2573
2f3cad6c
GM
2574 * window.c (Frecenter): When changing the window start, set the
2575 window's window_end_valid to nil.
2576 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
2577
2578 * dispextern.h (move_it_past_eol): Add prototype.
2579
2580 * xdisp.c (move_it_past_eol): New function.
2581
3e99d3b4
GM
2582 * window.c (Fwindow_end): Doc fix.
2583
25842001-01-03 Dave Love <fx@gnu.org>
2585
52283633 2586 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
3e99d3b4 2587
bafb434c
GM
25882001-01-03 Gerd Moellmann <gerd@gnu.org>
2589
2590 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
2591 the enabled_p flag of the glyph row at window_end_vpos to 0.
2592 (handle_single_display_prop): Fix last change.
2593
5297fb00
RS
25942001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2595
2596 * window.c (Frecenter): Doc fix.
2597
13d6a61c
AI
25982001-01-02 Andrew Innes <andrewi@gnu.org>
2599
2600 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
2601
2602 * frame.h (output_method): Add output_w32_console method.
2603 (FRAME_W32_CONSOLE_P): New macro.
2604
2605 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
2606 use output_w32_console method.
2607 (Qw32_console): New Lisp_Object.
2608 (Fframep): Return it.
2609 (syms_of_frame): Init it.
52283633 2610 (Fframe_parameters): Report w32console as font for w32_console frames.
13d6a61c
AI
2611
2612 * xfaces.c (realize_default_face): Set face foreground and
2613 background to unspecified for w32_console frames.
2614 (realize_face): Realize face cache for w32_console frames.
2615 (realize_tty_face): Accept w32_console frames.
2616
52283633 2617 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
13d6a61c
AI
2618 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
2619 necessary, even if running interactively.
2620
2621 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
2622 w32_console frames.
2623
52283633
SM
2624 * w32term.c (x_update_begin):
2625 (x_update_end):
2626 (x_clear_frame):
2627 (x_ins_del_lines):
2628 (x_change_line_highlight):
2629 (x_delete_glyphs):
2630 (w32_ring_bell):
2631 (x_update_begin):
2632 (x_update_end):
2633 (w32_reassert_line_highlight):
2634 (w32_frame_rehighlight):
13d6a61c
AI
2635 (w32_frame_raise_lower): Do nothing if not w32 frame.
2636
2637 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
2638
2639 * w32fns.c (Fx_display_color_cells): Determine correct value, when
2640 system doesn't tell us directly.
2641 (Fx_display_visual_class): Implement properly.
2642
d6bb0c0d
GM
26432001-01-02 Gerd Moellmann <gerd@gnu.org>
2644
2645 * window.c (Frecenter): Handle centering in graphical frames
2646 specially. Centering on the basis of line counts doesn't work
2647 reliably with variable-height lines.
52283633 2648
315f5865
EZ
26492001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
2650
2651 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
2652 and al[].
2653
52283633 2654 * composite.c (run_composition_function): Remove unused var `val'.
315f5865
EZ
2655 (update_compositions): Remove unused variable `hook'.
2656
2657 * intervals.c (get_local_map): Remove unused variable `tem'.
2658
2659 * doprnt.c (doprnt1): Remove unused variable `size'.
2660
2661 * fns.c (Flength): Remove unused variable `tail'.
2662 (Fdelete): Remove unused variable `size'.
2663
2664 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
2665 and `gcpro2'.
2666
52283633 2667 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
315f5865
EZ
2668
2669 * data.c (find_symbol_value): Remove extra 3rd argument in the
2670 call to swap_in_symval_forwarding.
2671
52283633 2672 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
315f5865
EZ
2673
2674 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
2675 (trivial_regexp_p): Remove unused variable `c'.
2676 (boyer_moore): Remove unused variable `k'.
2677
2678 * indent.c (current_column): Remove unused variable `stopchar'.
2679 (Fcompute_motion): Remove unused variable `contin'.
2680
2681 * casefiddle.c (casify_object): Remove unused variable `tolen'.
2682
2683 * dired.c (directory_files_internal): Fix a typo in a comment.
2684 Remove an unused variable `handler'.
52283633 2685 (file_name_completion): Remove unused function-scope variable `dp'.
315f5865
EZ
2686 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
2687 on BSD4_2.
2688
52283633 2689 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
315f5865
EZ
2690
2691 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
2692 and `buf'.
2693 (Fmarker_insertion_type): Remove unused variable `buf'.
2694
2695 * insdel.c (make_gap): Remove unused variable `result'.
2696
52283633 2697 * keyboard.c (record_char): Remove unused function-scope var `help'.
315f5865
EZ
2698 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
2699 (menu_bar_items): Remove unused function-scope variable `tem'.
2700
2701 * fontset.c (fontset_ref): Remove unused variable `i'.
2702 (fontset_set): Remove unused variables `j' and `tmp'.
52283633 2703 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
315f5865
EZ
2704 (make_fontset_for_ascii_face): Remove unused variable `name'.
2705 (fs_load_font): Remove unused variable `font_idx'.
52283633 2706 (fs_query_fontset): Remove unused function-local variable `fontset'.
315f5865
EZ
2707 (list_fontsets): Remove unused variable `tail'.
2708 (Fnew_fontset): Remove unused variables `family' and `registry'.
2709 (accumulate_font_info): Remove unused variable `tmp'.
2710 (Ffontset_font): Remove unused variable `id'.
2711 (syms_of_fontset): Remove unused variable `i'.
2712
2713 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
2714 to x_term_init.
2715 (lookup_image): Remove unused variable `file'.
2716 (xbm_load): Remove unused variables `bitmap_data', `height', and
2717 `width'. Remove function-local variable `i', leave the
2718 block-local one.
2719 (gif_load): Remove unused variable `inc'.
2720
52283633 2721 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
315f5865
EZ
2722 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
2723 leave only the one in the inner block.
2724
2725 * xfaces.c (face_fontset, realize_default_face): Remove unused
2726 variable `fontset'.
2727 (face_at_buffer_position): Remove unused variable `multibyte_p'.
2728
2729 * term.c (encode_terminal_code): Remove unused variable `c'.
2730
2731 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
2732 char *' instead of `char *'.
2733
2734 * category.c (Fcategory_docstring): Remove unused variable `doc'.
52283633 2735 (Fget_unused_category): Remove unused variable `docstring_vector'.
315f5865
EZ
2736 (Fchar_category_set): Remove unused variables `val', `charset',
2737 `c1' and `c2'.
2738
52283633
SM
2739 * coding.c (detect_coding_iso2022, setup_coding_system):
2740 Remove unused variable `i'.
315f5865
EZ
2741 (detect_coding_mask): Remove unused variable `idx'.
2742 (detect_coding): Remove unused variable `i'.
2743 (ccl_coding_driver): Remove unused variable `result'.
2744 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
52283633 2745 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
315f5865
EZ
2746 (encode_coding_string): Remove unused variables `gcpro1' and
2747 `saved_coding_symbol'.
2748 (Ffind_coding_systems_region_internal): Remove function-local
2749 variable args[], leave only the block-local one.
2750 (code_convert_region1): Remove unused variable `len'.
2751
2752 * charset.c (char_printable_p): Remove unused variable `chars'.
2753 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
2754 (str_to_multibyte): Remove unused variable `c'.
2755
2756 * window.c (size_window): Remove block-local variable `min_size'.
2757
2758 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
2759 `header_line_height'.
2760 (append_space, extend_face_to_end_of_line): Declare `saved_what'
2761 enum display_element_type.
2762
1a8a9daf
GM
27632001-01-02 Gerd Moellmann <gerd@gnu.org>
2764
6dde6abc 2765 * xterm.c (x_connection_closed): Catch X errors around all
52283633
SM
2766 statements that call X. Save away the error message in a local copy.
2767
1883b2c6
GM
2768 * xterm.c (x_connection_closed): Set handling_signal to 0 at
2769 the start.
2770
a13be207
GM
2771 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
2772 in or at the start of invisible text.
2773
1a8a9daf
GM
2774 * dispnew.c (update_window): Don't check_current_matrix_flags.
2775
3608c0f9
JR
27762001-01-01 Jason Rumney <jasonr@gnu.org>
2777
2778 * w32fns.c (x_figure_window_size): Do not allow new_height and
2779 new_width of frame to override specified values.
2780
abb1acc4
KH
27812000-12-30 Kenichi Handa <handa@etl.go.jp>
2782
52283633 2783 * composite.c (find_composition): Fix a code for searching backward.
abb1acc4 2784
762a68ec
GM
27852000-12-29 Gerd Moellmann <gerd@gnu.org>
2786
52283633 2787 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
9c8b8382
GM
2788 (update_window) [GLYPH_DEBUG]: Call it.
2789 (scrolling_window): Prevent including current rows which are below
2790 what's displayed in the window.
2791
2792 * xdisp.c (try_window_reusing_current_matrix)
2793 <new start <= old start>: Disable rows in the current matrix
2794 which are below the window after scrolling.
52283633 2795
762a68ec
GM
2796 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
2797 is zero. It's not worth the complexity.
2798 (invisible_text_between_p): Put in #if 0 because unused.
2799
2d5912c1
GM
28002000-12-28 Gerd Moellmann <gerd@gnu.org>
2801
46f6a258
GM
2802 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
2803 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
2804
89f93679
GM
2805 * keyboard.c (echo_char): If C is an integer, always call
2806 push_key_description. Former code could signal an invalid
2807 character error.
2808
2809 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
2810 If set, print multibyte text.
2811 (Fsingle_key_description): Call push_key_description with
2812 FORCE_MULTIBYTE set.
2813 (describe_buffer_bindings): Likewise.
2814
2815 * lisp.h (push_key_description): Add prototype.
2816
c06017fb
GM
2817 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
2818 around the call to redisplay_internal.
2819
f1d2ce7f
GM
2820 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
2821
2d5912c1
GM
2822 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
2823
9371f831
KH
28242000-12-28 Kenichi Handa <handa@etl.go.jp>
2825
2826 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
2827 (ccl_driver): New local variable `extra_bytes'.
2828
2829 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
2830
52283633
SM
2831 * coding.c (setup_coding_system):
2832 Initialize coding->spec.ccl.eight_bit_carryover.
9371f831
KH
2833 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
2834
0c80628a
KH
28352000-12-28 Kenichi Handa <handa@etl.go.jp>
2836
2837 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
2838 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
2839 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
2840 (decode_composition_emacs_mule): New function.
2841 (decode_coding_emacs_mule): Decode composition sequence by calling
2842 decode_composition_emacs_mule.
2843 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
52283633
SM
2844 (encode_coding_emacs_mule): Changed from macro to function.
2845 If a text contains compositions, encode them correctly.
0c80628a
KH
2846 (setup_coding_system): Set coding->commong_flags for emacs-mule so
2847 that decoding and encoding are required.
2848
3e32cc27
GM
28492000-12-27 Gerd Moellmann <gerd@gnu.org>
2850
5e25feee
GM
2851 * xfaces.c (PT_PER_INCH): New macro.
2852 (xlfd_point_size): Compute real point size from font's pixel size.
2853 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
2854 instead of 72.
2855
892d8fcd
GM
2856 * .gdbinit: Comment out the line pointing to the Lesstif source
2857 directory.
2858
12c8b416
GM
2859 * window.c (Frecenter): Use displayed_window_lines instead
2860 of window_internal_height.
2861
6061fbf0
GM
2862 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
2863 instead of x-toolkit-scroll-bars-p.
2864 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
2865
2866 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
2867 instead of x-toolkit-scroll-bars-p.
2868 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
52283633 2869
3e32cc27
GM
2870 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
2871 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
52283633
SM
2872 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
2873 New variables.
2874 (add_window_display_history, add_frame_display_history)
3e32cc27
GM
2875 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
2876 (build_frame_matrix_from_leaf_window): Remove unused code.
2877 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
2878 redisplay history.
2879 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
2880 (update_window) [GLYPH_DEBUG]: Likewise.
2881 (syms_of_display): Defsubr dump-redisplay-history.
2882
31798cfe
GM
28832000-12-23 Gerd Moellmann <gerd@gnu.org>
2884
f717c2ba
GM
2885 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
2886 the end of the prompt. Set echo_after_prompt to the offset
2887 of echoptr in echobuf.
2888
aeb2b8fc
GM
2889 * xdisp.c (init_from_display_pos): Pop until the iterator's
2890 stack is empty; there may be frames for stretch or images
2891 on the stack.
2892
31798cfe
GM
2893 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
2894 (save_or_restore_current_matrix): New function for the same
2895 purpose, but more efficient.
2896 (adjust_frame_glyphs_for_frame_redisplay): Use it.
2897
f8156156
EZ
28982000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
2899
2900 * xdisp.c (syms_of_xdisp): Fix last change.
2901
bdd6d4e8
GM
29022000-12-23 Gerd Moellmann <gerd@gnu.org>
2903
2904 * xdisp.c (syms_of_xdisp): Doc fix.
2905
2906 * xdisp.c (redisplay_window): Remove label restore_buffers;
2907 use finish_scroll_bars instead to make sure that scroll bars
2908 are redeemed. If we don't do this, flickering can result from
2909 scroll bars being destroyed and recreated.
2910
9436cdf9
JR
29112000-12-22 Jason Rumney <jasonr@gnu.org>
2912
2913 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
2914 in the wrong colors when the foreground is not black.
2915 (expose_window): Don't redraw the window that's currently being
2916 updated.
2917
951f9df5
GM
29182000-12-22 Gerd Moellmann <gerd@gnu.org>
2919
856ff7a7
GM
2920 * window.c (size_window): When setting the window's too_small_ok
2921 flag, compare old size with minimum size depending on WIDTH_P,
2922 don't compare with window_min_width.
52283633 2923
951f9df5
GM
2924 * window.c (delete_window): Simplify somewhat.
2925 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
2926 freeing window matrices. The flag windows_or_buffers_changed is
2927 set, so the next redisplay will consider all windows; this should
2928 suffice.
2929
886bc933
KH
29302000-12-22 Kenichi Handa <handa@etl.go.jp>
2931
2932 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
2933
2934 * ccl.h (struct ccl_program): New member cr_consumed.
2935
2936 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
2937 (CCL_READ_CHAR): Handle EOL conversion here.
2938 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
2939
177f4e88
GM
29402000-12-21 Gerd Moellmann <gerd@gnu.org>
2941
52283633 2942 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
6ba384dc
GM
2943
2944 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
2945 otherwise tabs of different size compare equal.
2946
2947 * callint.c (Fcall_interactively): Prevent a compiler warning.
2948
2949 * print.c (print_unwind): Return nil.
2950 (PRINTDECLARE): Initialize all local variables.
2951 (print_preprocess): Add a default case.
2952
8e15274f
GM
2953 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
2954
2955 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
2956
52283633 2957 * window.c (delete_window, Fsplit_window)
177f4e88
GM
2958 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
2959
2960 * dispextern.h (ensure_frame_matrix): Function declaration removed.
2961
2962 * dispnew.c (ensure_frame_matrix): Removed.
2963 (save_frame_matrix, restore_frame_matrix): New functions.
2964 (adjust_frame_glyphs_for_frame_redisplay): Use them.
2965
2966 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
2967 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
2968
99012074
AI
29692000-12-21 Andrew Innes <andrewi@gnu.org>
2970
2971 * w32term.c (x_update_begin): Regenerate the palette here, rather
2972 than for each window.
2973
2974 * w32xfns.c (select_palette): Avoid calling SelectPalette if
2975 palette is NULL, since this corrupts memory! Also get
2976 display_info reference from frame.
2977
29ef7d2d
JR
29782000-12-21 Jason Rumney <jasonr@gnu.org>
2979
2980 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
2981
2982 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
2983 to avoid returning without releasing it.
3e27fa1f 2984
3f9d67a6
KH
29852000-12-21 Kenichi Handa <handa@etl.go.jp>
2986
587fc3f9
KH
2987 * keymap.c (push_key_description): Don't convert eight-bit-control
2988 and eight-bit-graphic to multibyte character.
2989
3f9d67a6
KH
2990 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
2991 generic character and CODE1 is nil, return the smallest character
2992 in CHARSET.
2993
774ba8c9
DL
29942000-12-20 Dave Love <fx@gnu.org>
2995
2996 * s/osf5-0.h (NSIG): Don't redefine.
2997
88416888
SM
29982000-12-20 Stefan Monnier <monnier@cs.yale.edu>
2999
3000 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
3001 excluding menu-bar and tool-bar.
3002 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
3003 (menu_item_p): Remove.
3004 (where_is_internal_1): Don't ignore menu-items.
3005
a6426c6f
GM
30062000-12-20 Gerd Moellmann <gerd@gnu.org>
3007
03ff8aab
GM
3008 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
3009 into account.
3010
3011 * window.c (make_window): Initialize window's min_hscroll.
3012 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
3013 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
3014 to zero.
3015 (struct saved_window): New member min_hscroll.
3016 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
3017 (Fset_window_configuration): Set window's min_hscroll.
3018 (save_window_save): Save window's min_hscroll.
3019 (compare_window_configurations): Compare min_hscroll values.
3020
3021 * window.h (struct window): New member min_hscroll.
3022
3023 * keyboard.c (echo_prompt): Prevent a compiler warning.
3024
8de4aaf8
GM
3025 * xdisp.c (try_cursor_movement): Fix last change. The real
3026 condition is that PT is at the end of the row, and should
3027 be displayed at the start of the next row.
52283633 3028
3f7e3031
GM
3029 * xdisp.c (try_cursor_movement): If we end on a partially
3030 visible line, end we already decided to scroll, return -1.
3031
a6426c6f
GM
3032 * dispextern.h (ensure_frame_matrix): Add prototype.
3033
3034 * window.c (delete_window, Fsplit_window)
3035 (Fset_window_configuration): Call ensure_frame_matrix.
3036
52283633
SM
3037 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
3038 New functions.
a6426c6f
GM
3039 (adjust_frame_glyphs_for_frame_redisplay): If display has been
3040 completed, call fake_current_matrices instead of marking frame
3041 garbaged.
3042
57fa2774
JR
30432000-12-20 Jason Rumney <jasonr@gnu.org>
3044
3045 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
3046
d925df90
EZ
30472000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
3048
3049 * fns.c (Frequire): Doc fix.
3050
7b93a85b
GM
30512000-12-19 Gerd Moellmann <gerd@gnu.org>
3052
52283633 3053 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
71d4497a 3054
c74e645b
GM
3055 * dispnew.c (direct_output_for_insert): Fix check for mini-window
3056 currently displaying a message.
3057
7b93a85b
GM
3058 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
3059 xterm.h.
3060 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
3061
90d97e64
AI
30622000-12-18 Andrew Innes <andrewi@gnu.org>
3063
3064 * w32.c (w32_strerror): New function.
3065
3066 * w32.h (w32_strerror): New extern.
3067
3068 * w32fns.c (Fw32_shell_execute): Use it.
3069
91c9e6ce
GM
30702000-12-18 Gerd Moellmann <gerd@gnu.org>
3071
3072 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
3073
6f4745e2
EZ
30742000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
3075
3076 * msdos.c (IT_set_face): Obey inverse_video.
3077
c9e088ce
KH
30782000-12-18 Kenichi Handa <handa@etl.go.jp>
3079
3080 * dired.c (directory_files_internal): Always return decoded filenames.
3081
c3695f5f
GM
30822000-12-18 Gerd Moellmann <gerd@gnu.org>
3083
52d8e4ff
GM
3084 * xterm.c (x_connection_closed): Prevent being called recursively
3085 because of an error condition in XtCloseDisplay.
52283633 3086
62be9979
GM
3087 * xdisp.c (init_iterator): If noninteractive, and the frame's
3088 face cache is null, make one.
3089
52283633 3090 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
5f7a1890 3091
c3695f5f
GM
3092 * process.c (wait_reading_process_input): Check for pending
3093 input when running timers.
3094
78555fbe
EZ
30952000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
3096
52283633 3097 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
78555fbe 3098
b2b36264
KH
30992000-12-18 Kenichi Handa <handa@etl.go.jp>
3100
3101 * process.c (read_process_output): Don't run a filter if the code
3102 decoder produces nothing but carryover.
3103
9c543fbf
AI
31042000-12-17 Andrew Innes <andrewi@gnu.org>
3105
3106 * w32.c (sys_rename): Only check errno against EEXIST, and not
3107 EACCES, when determining whether rename failed because the target
3108 exists. This was resulting in indefinite looping on Windows 9x if
3109 the source file was locked by another process.
3110
3111 * w32fns.c (Ffile_system_info): New function.
3112 (syms_of_w32fns): Defsubr it.
3113
10c2b5a8
GM
31142000-12-17 Gerd Moellmann <gerd@gnu.org>
3115
b0228ace
GM
3116 * window.c (coordinates_in_window): Fix computation for
3117 position on vertical line between mode lines.
3118
10c2b5a8
GM
3119 * xfns.c (unwind_create_frame): Return t if frame was deleted.
3120 Don't alter tip_frame or tip_window.
3121 (unwind_create_tip_frame): Set tip_frame to nil only if frame
3122 was deleted.
3123
c844a81a
GM
3124 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
3125 Don't alter tip_frame or tip_window.
3126 (unwind_create_tip_frame): Set tip_frame to nil only if frame
3127 was deleted.
3128
6c825f8e
EZ
31292000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
3130
3131 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
3132 be consistent with the doc string. Reported by NAKAJIMA Mikio
3133 <minakaji@osaka.email.ne.jp>.
3134
af4bb4c8
KH
31352000-12-16 Kenichi Handa <handa@etl.go.jp>
3136
3137 * xfaces.c (Vface_ignored_fonts): New variable.
3138 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
3139 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
3140
8062e53a
GM
31412000-12-15 Gerd Moellmann <gerd@gnu.org>
3142
e87b8809
GM
3143 * dispnew.c (update_window): Detect pending input every nth line
3144 updated, i.e. do it depending on real work done, and not on the
3145 vpos of the line.
3146
3147 * xterm.c (expose_window): Don't redraw the window that's
3148 currently being updated.
3149
a6768cc5
GM
3150 * window.c (Fset_window_point): Remove test for
3151 cursor_in_non_selected_windows.
3152
4ea7fdca
GM
3153 * lread.c (read1): Recognize end of file after `\\'.
3154
8062e53a
GM
3155 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
3156 not unwind_create_frame.
3157
bb7959c1
GM
31582000-12-15 Dave Love <fx@gnu.org>
3159
3160 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
3161 bcopy & al.
3162
3163 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
3164
ced04c42
KH
31652000-12-15 Kenichi Handa <handa@etl.go.jp>
3166
c5443913
KH
3167 * coding.c (setup_coding_system): Clear all members of the struct
3168 coding_system at first.
bc137305
KH
3169 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
3170 argument.
3171 (code_convert_region): Don't override coding->src_multibyte and
3172 coding->dst_multibyte.
c5443913 3173
ced04c42
KH
3174 * fns.c (Fmd5): Docstring improved.
3175
c2d7f289
MB
31762000-12-15 Miles Bader <miles@gnu.org>
3177
3178 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
3179 are actually marked as mode-lines; otherwise use
3180 estimate_mode_line_height.
3181
9d7d9263
GM
31822000-12-14 Gerd Moellmann <gerd@gnu.org>
3183
3184 * editfns.c (Fformat): Prevent a buffer overrun when the format
3185 specifies a precision.
3186
7cf0153a
EZ
31872000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
3188
3189 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
3190 argument is outside the range [2..3].
3191
1de0f662
AI
31922000-12-14 Andrew Innes <andrewi@gnu.org>
3193
3194 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
3195 nothing to do. Bind inhibit-quit.
3196 (tip_frame): Make it a Lisp_Object.
3197 (x_create_tip_frame): Set tip_frame after it has been added to
3198 Vframe_list.
3199 (Fx_show_tip): Don't set tip_frame here.
52283633 3200 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
1de0f662
AI
3201 (unwind_create_frame, unwind_create_tip_frame): New functions.
3202 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
3203 while a frame is only partially constructed.
3204
3205 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
3206 (x_free_frame_resources): New function.
3207 (x_destroy_window): Use it.
3208
02387dcc
GM
32092000-12-14 Gerd Moellmann <gerd@gnu.org>
3210
3211 * xfns.c (Fx_backspace_delete_keys_p): New function.
3212 (syms_of_xfns): Defsubr it.
3213
3214 * config.in (HAVE_XKBGETKEYBOARD): Add.
3215
0544ef49
KH
32162000-12-14 Kenichi Handa <handa@etl.go.jp>
3217
98d62747
KH
3218 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
3219 Always store string in multibyte representation in echobuf.
3220 (echo_char): Always store string in multibyte representation in
3221 echobuf.
3222 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
3223 (read_key_sequence): Adjusted for the change of echo_prompt.
3224
a20193cd
KH
3225 * fns.c (Fmd5): Docstring improved.
3226
191b83b6
KH
3227 * lisp.h (detect_coding_system): Prototype adjusted.
3228
0544ef49
KH
3229 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
3230 (detect_coding_emacs_mule, detect_coding_iso2022,)
3231 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
52283633
SM
3232 (detect_coding_utf_16, detect_coding_ccl): Make them static.
3233 New argument MULTIBYTEP. Callers changed.
0544ef49
KH
3234 (detect_coding_mask, detect_coding_system): New argument
3235 MULTIBYTEP. Callers changed.
1da1bb05
KH
3236 (decode_coding_string): Set coding->src_multibyte and
3237 coding->dst_multibyte before calling detect_coding and detect_eol.
3238 Update them after some coding system is detected.
52283633 3239
d5b3eb1b
SM
32402000-12-13 Stefan Monnier <monnier@cs.yale.edu>
3241
3242 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
3243
3244 * keyboard.c (menu_bar_items, tool_bar_items):
3245 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
3246
f7f8bb69
GM
32472000-12-13 Gerd Moellmann <gerd@gnu.org>
3248
52283633 3249 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
19f71add
GM
3250 New variables.
3251 (unwind_create_frame, unwind_create_tip_frame): New functions.
3252 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
3253 while a frame is only partially constructed.
3254
3255 * xterm.h (x_free_frame_resources): Declare.
3256
3257 * xterm.c (x_free_frame_resources): New function.
3258 (x_destroy_window): Use it.
3259
e10da507
GM
3260 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
3261 don't interrupt the update for pending input initially, i.e.
3262 update at least some lines.
3263
3264 * keyboard.c (do_mouse_tracking): Make externally visible.
52283633 3265
d5b3eb1b 3266 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
f7f8bb69
GM
3267
3268 * xfns.c (gray_bitmap_bits): Declare `char *'.
3269
90aa2856
GM
32702000-12-12 Gerd Moellmann <gerd@gnu.org>
3271
3272 * xdisp.c (display_tool_bar_line): Make sure that tool bar
3273 lines start with a relief line.
3274
a308c9cd
DL
32752000-12-12 Dave Love <fx@gnu.org>
3276
3277 * window.c (Fdisplay_buffer): Doc fix.
3278 (Fwindow_list): Remove unused var.
3279
3280 * buffer.h (mmap_set_vars): Declare.
3281
3282 * window.h (Fset_window_point): Declare.
3283
d575011f
EZ
32842000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
3285
bf6282d2 3286 * msdos.c (fast_find_position): Don't overstep the last window row.
52283633
SM
3287 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
3288 variable `area'. When looking for a row under (X,Y), give up if some
3289 of the previous rows is not enabled.
d575011f 3290
ecf4d726
GM
32912000-12-12 Gerd Moellmann <gerd@gnu.org>
3292
2ebf6139
GM
3293 * window.c (Fset_window_point): If displaying cursors in windows
3294 other than the selected window, make sure redisplay updates
3295 other windows to show the new value of point in the window.
3296
3297 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
3298
bfdb75ee
GM
3299 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
3300 the buffer is the sole visible buffer when in the mini-buffer.
3301
52283633 3302 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
4fdbd809
GM
3303 Bind `inhibit-read-only' to t.
3304 (unwind_with_echo_area_buffer): Use AREF.
3305
c0006262
GM
3306 * xfns.c (Fx_hide_tip): Simplified.
3307
52283633
SM
3308 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
3309 instead of `1'.
e9a59cad 3310
ecf4d726
GM
3311 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
3312
e5959a9a
GM
33132000-12-11 Gerd Moellmann <gerd@gnu.org>
3314
a3642e49 3315 * xfns.c (Fx_hide_tip): Fix last change.
52283633 3316
44b5a125
GM
3317 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
3318 nothing to do. Bind inhibit-quit.
3319 (tip_frame): Make it a Lisp_Object.
3320 (x_create_tip_frame): Set tip_frame after it has been added to
3321 Vframe_list.
3322 (Fx_show_tip): Don't set tip_frame here.
3323
3324 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
3325
3326 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
3327 Lisp_Object.
3328
3329 * dispextern.h: Change external declaration of tip_frame.
3330
d990421f
GM
3331 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
3332 return an empty string.
3333
4db87380
GM
3334 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
3335 of the window's update_mode_line flag, since the former is set by
3336 force-mode-line-update, not the latter. This makes
3337 column-number-mode slightly faster.
52283633 3338
e5959a9a
GM
3339 * xdisp.c (try_window_id) <all changes above window start>:
3340 Set the cursor.
3341
169fe44e
GM
33422000-12-11 Paul Eggert <eggert@twinsun.com>
3343
3344 * config.in (HAVE_FTELLO): Remove.
3345 (HAVE_FSEEKO): Add.
3346 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
3347 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
3348 HAVE_FTELLO.
3349 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
3350 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
52283633 3351
59ec59ae
MB
33522000-12-11 Miles Bader <miles@gnu.org>
3353
3354 * window.c (displayed_window_lines): Don't round up when
3355 converting empty space at bottom to lines.
ff904dd6
MB
3356 Handle non-newline-terminated final lines properly.
3357 (Fwindow_text_height): New function (used to be in lisp).
3358 (syms_of_window): Initialize it.
59ec59ae 3359
42ebfa31
SM
33602000-12-09 Stefan Monnier <monnier@cs.yale.edu>
3361
3362 * syntax.c (scan_lists): Check that the right quote char has the
3363 right Sstring syntax when jumping over strings.
3364 (init_syntax_once): Use Smax rather than 13.
3365
5cdb3cf3
MB
33662000-12-09 Miles Bader <miles@gnu.org>
3367
3368 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
3369 with PARTIALLY, inverting the sense.
3370 (window_scroll_pixel_based): Scroll partially visible lines into
3371 place if we hit the beginning or end of the buffer.
a12167c5
MB
3372 (displayed_window_lines): Don't include partially visible lines.
3373 (Fmove_to_window_line): Skip past any partially visible first line.
5cdb3cf3 3374
842b2a94
GM
33752000-12-08 Gerd Moellmann <gerd@gnu.org>
3376
3377 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
3378
3379 * tparam.c (tparam1): Change the way buffers are reallocated to be
3380 portable and less obfuscated.
3381
3382 * termcap.c (tgetent): Change the way buffers are reallocated to
3383 be portable and less obfuscated.
3384
3385 * macros.c (store_kbd_macro_char): Change the way buffers are
3386 reallocated to be portable and less obfuscated.
3387
3388 * lread.c (read1): Change the way buffers are reallocated to be
3389 portable and less obfuscated.
3390
3391 * doc.c (Fsubstitute_command_keys): Change the way buffers
3392 are reallocated so that it is portable.
3393
137cad7c
EZ
33942000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
3395
3396 * dosfns.c (Ffile_system_info): New function.
3397 (syms_of_dosfns): Defsubr it.
3398
5c7f629c
SM
33992000-12-07 Stefan Monnier <monnier@cs.yale.edu>
3400
3401 * alloc.c (gc_sweep): Add comment.
3402
959e647d
GM
34032000-12-07 Gerd Moellmann <gerd@gnu.org>
3404
52283633
SM
3405 * sound.c (vox_configure): Change order of ioctls.
3406 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
28fcb7dc
GM
3407 Ignore errors when changing volume.
3408 (vox_close): Don't reset the device.
3409
926b7e5e
GM
3410 * process.c (read_process_output): Make sure the process marker's
3411 position is valid when the process buffer is changed in
3412 after-change functions. W3 does that.
52283633 3413
959e647d
GM
3414 * xfns.c (x_free_gcs): New function.
3415
3416 * xterm.h (x_free_gcs): Add prototype.
3417
3418 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
3419 freeing GCs here.
3420
3421 * xterm.c (x_destroy_window): Call x_free_gcs so that
3422 resources of non-toolkit X windows will be freed.
3423
478ea067
AI
34242000-12-07 Andrew Innes <andrewi@gnu.org>
3425
3426 * w32fns.c (xlfd_charset_of_font): Fix last change.
3427
fbee3231
DL
34282000-12-06 Dave Love <fx@gnu.org>
3429
67292061
DL
3430 * md5.h (__P): Don't define -- it comes from config.h.
3431
fbee3231
DL
3432 * strftime.c: Change some #if foo to #ifdef foo.
3433
4ee87dbb
AI
34342000-12-06 Andrew Innes <andrewi@gnu.org>
3435
3436 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
3437
52283633 3438 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
4ee87dbb 3439 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
52283633 3440 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
4ee87dbb 3441
9765b4a4
GM
34422000-12-06 Gerd Moellmann <gerd@gnu.org>
3443
d285b373
GM
3444 * alloc.c (gc_sweep): Prevent symbols read during loadup
3445 from being freed.
3446
384333ee
GM
3447 * xdisp.c (underlying_face_id): New function.
3448 (handle_face_prop, face_before_or_after_it_pos): Use it
3449 to determine the face ``under'' a string. Let strings inherit
3450 the face of the buffer under them.
3451
3452 * xfaces.c (face_at_string_position): Update function comment.
52283633 3453
d4b72d58
GM
3454 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
3455 matrix if the window's left position has changed; we need to
3456 redraw it in this case.
3457
3458 * dispextern.h (struct glyph_matrix): Add member window_left_x.
3459
e1d05387
GM
3460 * window.c (coordinates_in_window): Check mouse on mode-line or
3461 header-line first.
3462
eb1b0c74
GM
3463 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
3464 advertized by the function documentation.
3465
d94d636f
GM
3466 * window.c (syms_of_window): Doc fix.
3467
3887b449
GM
3468 * sound.c (vox_configure): Set volume for left and right channel.
3469 (sound_cleanup): Return nil.
3470
efc8f57a
GM
3471 * xdisp.c (move_it_by_lines): Fix paren typo.
3472
9765b4a4
GM
3473 * xterm.c (x_load_font): Don't use the font's max_bounds for
3474 computing the height of the font. If max_bounds' ascent or
3475 descent are greater than the font's ascent or descent, this means
3476 glyphs overlap, which should be handled now by redisplay.
3477
6529ed87
GM
3478 * window.c (Veven_window_heights): New variable.
3479 (syms_of_window): DEFVAR_LISP it.
3480 (Fdisplay_buffer): Check Veven_window_heights before evening the
3481 window heights.
52283633 3482
0eb2ecde
MB
34832000-12-06 Miles Bader <miles@gnu.org>
3484
3485 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
3486 update `default-frame-alist' instead of setting no frame parameters.
3487
03d7a167
KH
34882000-12-06 Kenichi Handa <handa@etl.go.jp>
3489
3490 * composite.c (update_compositions): Fix typo (use the correct
3491 variable).
3492
5f8803c2
JR
34932000-12-05 Jason Rumney <jasonr@gnu.org>
3494
3495 * md5.h: Remove underscores from function declarations.
3496 (__attribute__, __alignof__) [!__GNUC__]: Define.
3497
3498 * md5.c: Delay include of md5.h until after namespace cleaning.
3499
c28a075b
JR
3500 * makefile.w32-in (fns.o): Depend on md5.h
3501 (md5.o): New target.
3502 (sunfns.o): Remove.
3503
3504 * makefile.nt: Likewise.
3505
ff3c7056
JR
35062000-12-05 Jason Rumney <jasonr@altavista.net>
3507
3508 * w32term.c (expose_area): Complete last change.
3509
0c21eeeb
KR
35102000-12-05 Ken Raeburn <raeburn@gnu.org>
3511
3512 * minibuf.c: Include intervals.h.
3513
f201d732
JR
35142000-12-05 Jason Rumney <jasonr@gnu.org>
3515
3516 * w32term.c (x_produce_glyphs): If a font for a component of
3517 a composition is not found, use 1 pixel dot ascent and 0 dot
3518 descent value to avoid displaying terribly tall empty boxes.
3519 (expose_area): Pass x-coordinate relative to the exposed
3520 area to x_draw_glyphs instead of a window-relative coordinate.
3521
21999ab9
GM
35222000-12-05 Gerd Moellmann <gerd@gnu.org>
3523
4d2036e4
GM
3524 * xdisp.c (next_element_from_ellipsis): Save face before selective
3525 display in saved_face_id, and set face_before_selective_p.
3526 (reseat_1): Reset face_before_selective_p.
3527 (append_space, extend_face_to_end_of_line): If iterator's
3528 face_before_selective_p is set, use the face from saved_face_id.
3529 (extend_face_to_end_of_line): For tty frames, make sure to
3530 use the right face id when producing spaces at the end of
3531 the line.
3532
3533 * dispextern.h (struct it): Add face_before_selective_p.
3534
52be17cc
GM
3535 * keyboard.c (record_char): Don't record identical help-echo
3536 events in recent_keys.
3537
8a4f36cc
GM
3538 * xterm.c [USE_X_TOOLKIT]: Close the display.
3539 (xim_close_dpy): Handle case that the display has been closed.
3540
57d6e381
GM
3541 * xterm.c (x_destroy_window): Reset the frame's X window after
3542 destroying it.
3543
21999ab9
GM
3544 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
3545 variable window_width.
3546 (line_draw_cost): Fix code skipping over spaces at the end of the
3547 line when must_write_spaces is not set.
3548 (scrolling_window): Fix code inserting runs in list of all runs.
3549
91372bb7
KH
35502000-12-05 Kenichi Handa <handa@etl.go.jp>
3551
3552 * coding.c (setup_coding_system): Be sure to initialize
3553 coding->category_idx.
3554
6c083b4c
GM
35552000-12-04 Gerd Moellmann <gerd@gnu.org>
3556
0c68ce6f 3557 * xterm.c (PER_CHAR_METRIC): Removed because not used.
52283633 3558
6452929e
GM
3559 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
3560 area to x_draw_glyphs instead of a window-relative coordinate.
3561
d7f31e22
GM
3562 * fileio.c (auto_save_error): Add parameter ERROR. Show the
3563 error in the message.
3564
ae18aa3b
GM
3565 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
3566 timer after having read a key. It's not good for code reading
3567 several keys in a loop, like an input method.
3568
caa15ef7
GM
3569 * fileio.c (Finsert_file_contents): When VISIT is t, don't
3570 record undo information for format-decode.
3571
3572 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
3573 current buffer is read-only, not if it isn't.
3574
6c083b4c
GM
3575 * keyboard.c (record_char): Record `help-echo' input events
3576 in recent_keys only if they display some help. Don't record
3577 `help-echo' events as macro char.
3578
caa15ef7
GM
35792000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
3580
3581 * editfns.c (save_excursion_restore): Don't move point
3582 in another window if it is showing the wrong buffer.
3583 Avoid the call to Fwindow_live_p, for speed.
3584
5a13529b
KH
35852000-12-04 Kenichi Handa <handa@etl.go.jp>
3586
e225faa7
KH
3587 * xfaces.c (struct font_name): New member registry_priority.
3588 (split_font_name): Initialize the above member to zero.
3589 (concat_font_list): New function.
3590 (font_list): Include fonts of all alternative registries.
3591 (FONT_POINT_SIZE_QUANTUM): New macro.
3592 (better_font_p): Ignore point size difference less than
3593 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
3594
e89648b4
KH
3595 * xterm.c (x_produce_glyphs): If a font for a component of
3596 a composition is not found, use 1 pixel dot ascent and 0 dot
3597 descent value to avoid displaying terribly tall empty boxes.
3598
5a13529b
KH
3599 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
3600
d7935eb6
KR
36012000-12-03 Ken Raeburn <raeburn@gnu.org>
3602
3603 * coding.h (code_convert_string1): Declare.
3604
3605 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
3606
52283633 3607 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
d7935eb6 3608
0dd5e255
JR
36092000-12-02 Jason Rumney <jasonr@gnu.org>
3610
3611 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
3612 correctly for single byte character case.
3613 (w32_per_char_metric): Do not try to make any assumptions about
3614 the metrics of BDF fonts.
250cfece 3615 (x_estimate_mode_line_height): If `mode-line' face
52283633 3616 hasn't a font, use that of the frame, as drawing glyphs does.
250cfece
JR
3617 (note_mouse_highlight): Change the cursor shape on the vertical
3618 border between windows [not enabled].
3619
3620 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
3621
3622 * w32fns.c (Fx_create_frame): Reintroduce the call to
3623 face-set-after-frame-defaults.
3624 (Vx_window_horizontal_drag_shape): New variable.
3625 (syms_of_xfns): DEFVAR_LISP it.
3626 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
3627 enabled].
0dd5e255 3628
b5d8d2ca
GM
36292000-12-02 Simon Josefsson <simon@josefsson.org>
3630
3631 * fns.c (Fmd5): Use a different logic to decide the coding system
3632 to use.
3633
3634 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
3635
fbb87147
EZ
36362000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
3637
52283633 3638 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
fbb87147 3639
447e9da0
GM
36402000-12-01 Gerd Moellmann <gerd@gnu.org>
3641
7708ced0
GM
3642 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
3643 height for YNegative.
3644 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
3645 height; also see comment there.
3646
447e9da0
GM
3647 * window.c (coordinates_in_window): Handle computations for
3648 positions on the vertical bar and fringes differently for
3649 window-system frames. Consider some pixels near the vertical bar
3650 as on the bar if the frame doesn't have vertical scroll bars.
3651 Associate positions between mode or header lines with the
3652 right window, the left one.
3653
86d1db20
JR
36542000-12-01 Jason Rumney <jasonr@gnu.org>
3655
3656 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
3657
3658 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
3659 invalid frame.
3660
a1d58e5b
GM
36612000-12-01 Gerd Moellmann <gerd@gnu.org>
3662
52283633 3663 * window.c (struct saved_window): Add members orig_top and orig_height.
a1d58e5b
GM
3664 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
3665 (save_window_save, Fset_window_configuration): Save/restore
3666 window's orig_top and orig_height.
3667
89c609af
JR
36682000-12-01 Jason Rumney <jasonr@gnu.org>
3669
4d177746 3670 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
86d1db20 3671
89c609af
JR
3672 * w32fns.c (x_set_cursor_color): Fix last change.
3673
eccc05db
GM
36742000-11-30 Gerd Moellmann <gerd@gnu.org>
3675
31b6671b
GM
3676 * xdisp.c (echo_area_display): If cursor is in the echo area, make
3677 sure that the next redisplay displays the minibuffer, so that
3678 the cursor will be replaced with what the minibuffer wants.
3679
eccc05db
GM
3680 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
3681 #ifndef instead of using #if.
3682 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
3683 USE_TOOLKIT_SCROLL_BARS is defined.
3684
162de750
JR
36852000-11-30 Jason Rumney <jasonr@gnu.org>
3686
3687 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
3688 x_display_cursor.
3689
693c4692
GM
36902000-11-30 Gerd Moellmann <gerd@gnu.org>
3691
3692 * fns.c (Fmd5): Doc fix.
3693
b5d8d2ca 36942000-11-30 Simon Josefsson <simon@josefsson.org>
edfb795e
GM
3695
3696 * fns.c (Fmd5): New function.
3697 (syms_of_fns): Defsubr md5.
3698
3699 * Makefile.in (obj): Add md5.o
3700
b02cd40b
GM
37012000-11-30 Gerd Moellmann <gerd@gnu.org>
3702
edfb795e
GM
3703 * md5.h, md5.c: New files, taken from glibc.
3704
df3aedcf
GM
3705 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
3706
b02cd40b 3707 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
52283633 3708 hasn't a font, use that of the frame, as drawing glyphs does.
b02cd40b 3709
8b5176cd
SM
37102000-11-29 Stefan Monnier <monnier@cs.yale.edu>
3711
3712 * eval.c (Frun_hooks): Allow 0 arguments.
3713
346598f1
GM
37142000-11-29 Gerd Moellmann <gerd@gnu.org>
3715
f9396e03
GM
3716 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
3717 is over the menu bar widget, say it's not on the frame.
3718
4a967a9b
GM
3719 * xfns.c (Fx_create_frame): Reintroduce the call to
3720 face-set-after-frame-defaults.
3721
346598f1
GM
3722 * eval.c (Fsignal): Reset handling_signal.
3723
222456a1
JR
37242000-11-28 Jason Rumney <jasonr@gnu.org>
3725
3726 * w32menu.c (add_menu_item): Reset menu item text when changing
3727 type to radio button.
3728
8049ddc0
GM
37292000-11-28 Gerd Moellmann <gerd@gnu.org>
3730
346598f1 3731 * xselect.c: Update copyright.
f4f4ee4d 3732
bebe4a2c
GM
3733 * window.c (coordinates_in_window): If on a mode or header line,
3734 but sufficiently close to its start, return ``on vertical
3735 border''. This gives us a way to drag windows horizontally when
3736 using toolkit scroll bars.
3737
3738 * xterm.c (note_mouse_highlight): Change the cursor shape
3739 on the vertical border between windows.
3740
3741 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
3742
3743 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
3744 (syms_of_xfns): DEFVAR_LISP it.
3745 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
3746
8d2c2642
GM
3747 * textprop.c (text_read_only): New function.
3748 (verify_interval_modification): Use it instead of signaling
3749 `text-read-only'. This makes it easier to catch this error
52283633 3750 with a breakpoint.:
8d2c2642 3751
52283633 3752 * xdisp.c (forward_to_next_line_start): Check for newlines,
8049ddc0
GM
3753 not end of line, which includes CR.
3754
5a2bae6c
KH
37552000-11-28 Kenichi Handa <handa@etl.go.jp>
3756
3757 * coding.c (Ffind_coding_systems_region_internal): Be sure to
3758 include no-conversion.
3759
ae31f84d
JR
37602000-11-27 Jason Rumney <jasonr@gnu.org>
3761
3762 * w32fns.c (w32_load_system_font): Always mark font as double byte
3763 if codepage is unicode.
3764
67f1cf4c
GM
37652000-11-27 Gerd Moellmann <gerd@gnu.org>
3766
4a74d071 3767 * xdisp.c (forward_to_next_line_start): If already on a newline,
52283633 3768 just consume it to avoid unintended skipping over invisible text below.
4a74d071 3769
902ae620
GM
3770 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
3771 `vertical-line', `mode-line' and `header-line' events.
3772
3773 * xdisp.c (try_window_id): Avoid starting to display in the middle
67f1cf4c
GM
3774 of a character, a TAB for instance. This is easier than to set
3775 up the iterator exactly, and it's not a frequent case, so the
3776 additional effort wouldn't really pay off.
3777
c1e279c2
AC
37782000-11-26 Andrew Choi <akochoi@i-cable.com>
3779
67f1cf4c 3780 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
c1e279c2
AC
3781 init_window_once.
3782
a609568a
JR
37832000-11-25 Jason Rumney <jasonr@gnu.org>
3784
52283633
SM
3785 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
3786 Args to window_from_coordinates should be pixel coordinates.
48b21762 3787
a609568a
JR
3788 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
3789 redisplay handles them properly.
3790
a658d039
MB
37912000-11-25 Miles Bader <miles@gnu.org>
3792
3793 * indent.c (compute_motion): Keep pos_byte in sync with pos.
3794
d3416cca
JR
37952000-11-24 Jason Rumney <jasonr@gnu.org>
3796
3797 * w32.c (init_environment): Set LANG environment variable based on
3798 locale settings, if not set.
3799
3800 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
3801 making tool bar smaller. When clearing the frame, also
3802 clear current matrices. Clear frame when tool bar disappears.
3803 Don't use more lines for the tool-bar than is available.
3804 (x_change_window_heights): New function.
3805
ba193890
GM
38062000-11-24 Gerd Moellmann <gerd@gnu.org>
3807
2be8f184
GM
3808 * xdisp.c (init_from_display_pos): If POS says we're already after
3809 an overlay string ending at POS, make sure to pop the iterator
3810 because it will be in front of that overlay string. When POS is
3811 ZV, we've thereby also ``processed'' overlay strings at ZV.
3812
ba193890
GM
3813 * xfaces.c (lface_from_face_name): Function comment fix.
3814
1862a24e
MB
38152000-11-24 Miles Bader <miles@gnu.org>
3816
3817 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
3818 apply `mode-line-inverse-video' -- zero means force display using
3819 the default face, non-zero means display using the specialized face.
3820 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
3821
f07fa1b8
KH
38222000-11-23 Kenichi Handa <handa@etl.go.jp>
3823
3824 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
3825 hard coded `4'.
3826
2bcdf662
EZ
38272000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
3828
3829 * coding.c (decode_coding_emacs_mule): Fix the case of
3830 CODING_EOL_LF, which used uninitialized value of c.
3831
ba8299ff
SM
38322000-11-23 Stefan Monnier <monnier@cs.yale.edu>
3833
3834 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
3835
f4117c4d
GM
38362000-11-22 Gerd Moellmann <gerd@gnu.org>
3837
03e757c1
GM
3838 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
3839 buffer object.
3840
f4117c4d
GM
3841 * frame.h (struct frame): Replace desired_tool_bar_items,
3842 current_tool_bar_items, n_desired_tool_bar_items,
cc362d76 3843 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
f4117c4d
GM
3844
3845 * frame.c (make_frame): Change initialization of tool bar
3846 items accordingly.
3847
3848 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
cc362d76 3849 Change references to members deleted from struct frame to use the
f4117c4d
GM
3850 new ones.
3851
3852 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
52283633 3853 references to members deleted from struct frame to use the new ones.
f4117c4d 3854
52283633 3855 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
f4117c4d
GM
3856
3857 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
3858
3859 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
cc362d76 3860 (note_tool_bar_highlight): Change references to members deleted
f4117c4d
GM
3861 from struct frame to use the new ones.
3862
f8e2f3f2
MB
38632000-11-23 Miles Bader <miles@gnu.org>
3864
3865 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
3866 the face's inverse-video attribute, rather than overriding it.
3867
60e8e0a5
GM
38682000-11-22 Gerd Moellmann <gerd@gnu.org>
3869
3870 * xfns.c (x_set_tool_bar_lines): Clear internal border when
3871 making tool bar smaller.
3872
92dd1b29
DL
38732000-11-22 Dave Love <fx@gnu.org>
3874
3875 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
3876
e672fdce
MB
38772000-11-22 Miles Bader <miles@gnu.org>
3878
3a17d6cc
MB
3879 * keyboard.c (Vminibuffer_message_timeout): New variable.
3880 (command_loop_1): Use it to determine message timeout.
3881 (syms_of_keyboard): Initialize it.
3882
60e8e0a5 3883 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
e672fdce 3884
e9655d81
KH
38852000-11-22 Kenichi Handa <handa@etl.go.jp>
3886
3887 * sysdep.c: Move the code for declaring h_errno after #include
3888 <netdb.h>.
3889
77270fac
GM
38902000-11-21 Gerd Moellmann <gerd@gnu.org>
3891
cd913aae
GM
3892 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
3893 the menu bar when the tooltip is unmapped.
3894
77270fac
GM
3895 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
3896 sole visible buffer when we're currently in the mini-buffer, and
3897 give up if so.
52283633 3898
556635d6
JR
38992000-11-21 Jason Rumney <jasonr@gnu.org>
3900
3901 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
3902 put on the clipboard.
3903 (Fw32_get_clipboard_data): Compare data on clipboard with saved
3904 copy of what Emacs last put there. If they are the same, do not
52283633 3905 use the clipboard copy to avoid losing data due to coding conversions.
556635d6 3906
5b7bde64
MB
39072000-11-22 Miles Bader <miles@gnu.org>
3908
3909 * minibuf.c (Vminibuffer_prompt_properties): New variable.
3910 (syms_of_minibuf): Initialize it.
3911 (read_minibuf): Add properties from Vminibuffer_prompt_properties
3912 to prompt, don't make read-only.
3913
ff23e1dd
GM
39142000-11-21 Gerd Moellmann <gerd@gnu.org>
3915
52283633
SM
3916 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
3917 Add BEFORE/AFTER_POTENTIAL_GC.
3c64f287 3918
7aaf4388
GM
3919 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
3920
f5f47add 3921 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 3922
ff23e1dd
GM
3923 * term.c, cm.c: Don't try to include termcap.h; see comment there.
3924
37c35586
KH
39252000-11-21 Kenichi Handa <handa@etl.go.jp>
3926
3927 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
3928 ... #endif scope.
3929
ff9ab414
GM
39302000-11-20 Gerd Moellmann <gerd@gnu.org>
3931
52283633 3932 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
c51d2b5e
GM
3933 screen supports it.
3934
29a01b72
GM
3935 * s/gnu-linux.h: Don't use `#cpu'.
3936
09dfdf85
GM
3937 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
3938 not defined in mman.h.
3939
52283633 3940 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
ff9ab414
GM
3941 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
3942 and store an index in the XClientMessageEvent. Storing a
3943 Lisp_Object or pointer can fail on a 64 bit system, since X only
3944 transfers 32 bits.
52283633
SM
3945 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
3946
81459ac9
DL
39472000-11-20 Dave Love <fx@gnu.org>
3948
3949 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
3950
56c13ae6
GM
39512000-11-20 Gerd Moellmann <gerd@gnu.org>
3952
3953 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
3954
495a6df3
KH
39552000-11-20 Kenichi Handa <handa@etl.go.jp>
3956
2bcf3714
KH
3957 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
3958 by WIDTH.
3959
495a6df3
KH
3960 * alloc.c (make_string): Fix previous change. Be sure to make
3961 unibyte string correctly.
3962
6d950f4c
GM
39632000-11-19 Gerd Moellmann <gerd@gnu.org>
3964
39b39373
GM
3965 * window.c (Fwindow_list): Change parameter list to be XEmacs
3966 compatible.
3967 (window_list_1): New function.
3968 (window_loop): Use it instead of Fwindow_list.
3969
b95b34e5
GM
3970 * sysdep.c (emacs_ospeed): New variable.
3971 (toplevel): Don't declare ospeed extern.
3972 (init_baud_rate): Use emacs_ospeed instead of ospeed.
3973
3974 * termcap.c (ospeed): Remove.
3975 (tputs) [!emacs]: Remove unused code.
3976 (tgetent): Avoid a compiler warning.
3977
e83dc917
GM
3978 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
3979 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 3980 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
3981
3982 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
3983 removed.
3984 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
3985 Take the X display as additional argument.
3986 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
3987 `Widget' is a pointer type that's not easily stored in Lisp_Object
3988 form in a portable way.
52283633 3989
6d950f4c
GM
3990 * dispnew.c (update_text_area): Fix last change.
3991
e47306e6
GM
39922000-11-18 Gerd Moellmann <gerd@gnu.org>
3993
fb3cd89b
GM
3994 * xdisp.c: Use BINDING_STACK_SIZE throughout.
3995
3996 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
3997 clear current matrices.
3998
edaa9aed
GM
3999 * buffer.c (mmap_enlarge): Don't print a message on stderr
4000 if mapping new memory at the end of the existing region fails.
4001
e47306e6
GM
4002 * dispnew.c (update_text_area): Don't skip over equal glyphs
4003 when the last current glyph overlaps the glyph to its right.
4004
509633e3
MB
40052000-11-18 Miles Bader <miles@gnu.org>
4006
4007 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
4008 lines that *end* with "..." too (that's the most common case!).
4009
d392e9c5
GM
40102000-11-18 Gerd Moellmann <gerd@gnu.org>
4011
67988445
GM
4012 * xdisp.c (resize_mini_window): Temporarily change to the
4013 mini-window's buffer if necessary.
1bfdbe43 4014
d392e9c5
GM
4015 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
4016 the tooltip obscures less text under it.
4017
40182000-11-17 Gerd Moellmann <gerd@gnu.org>
4019
4020 * puresize.h (BASE_PURESIZE): Increase to 700000.
4021
92bb977f
JR
40222000-11-18 Jason Rumney <jasonr@gnu.org>
4023
4024 * w32term.c (w32_draw_bitmap): Use face to set colors.
4025
26fbf20b
DL
40262000-11-17 Dave Love <fx@gnu.org>
4027
4028 * lread.c (Fload): Fix #ifdef for pcc.
4029
100b593b
GM
40302000-11-17 Gerd Moellmann <gerd@gnu.org>
4031
4032 * xdisp.c (pos_visible_p): Compute the default character height
4033 differently.
4034
a288d0d1
GM
40352000-11-16 Gerd Moellmann <gerd@gnu.org>
4036
cac94de6 4037 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
52283633 4038 knowing the line's height; use the default font's height in that case.
cac94de6 4039
a288d0d1
GM
4040 * xfaces.c (weight_table): Add `demi' with the same meaning as
4041 `demibold'.
4042
981fb6f6
KH
40432000-11-16 Kenichi Handa <handa@etl.go.jp>
4044
2cca872d 4045 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
4046 (clear_glyph_row): Delete local static variable null_row.
4047
e5fa381b
JR
40482000-11-15 Jason Rumney <jasonr@gnu.org>
4049
4050 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
4051 (w32_alloc_lighter_color): Use new brightness calculations from
4052 xterm.c. Scale delta to be in the range expected by W32.
4053 (w32_draw_relief_rect): Use frame relief colors.
4054
8e42f043
GM
40552000-11-15 Gerd Moellmann <gerd@gnu.org>
4056
6d133d1f
GM
4057 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
4058 (Qinhibit_default_face_x_resources): New variable.
4059 (syms_of_frame): Initialize it.
4060 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
4061
4062 * xdisp.c (pos_visible_p): Improve function comment.
4063
4064 * lisp.h (BINDING_STACK_SIZE): New macro.
4065
8e42f043
GM
4066 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
4067 reading the directory if readdir returns null and errno is EAGAIN
4068 or EINTR.
4069
e8c87124
SM
40702000-11-14 Stefan Monnier <monnier@cs.yale.edu>
4071
4072 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
4073 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
4074 Set amount_to_scroll to max of dx and scroll_step so that
4075 scroll-conservatively doesn't defeat scroll-step>1.
4076 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
4077 scroll-conservatively for line-at-a-time scrolling.
4078
5f0c971d
GM
40792000-11-14 Gerd Moellmann <gerd@gnu.org>
4080
4081 * window.c (Fpos_visible_in_window_p): Call pos_visible with
4082 extra argument.
4083
4084 * xdisp.c (current_mode_line_height, current_header_line_height):
4085 New variables.
4086 (init_xdisp): Initialize them.
4087 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
4088 and use exact mode line heights if it is set.
4089
4090 * lisp.h (pos_visible_p): Change prototype.
4091
4092 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
4093 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
4094 and current_header_line_height first.
52283633
SM
4095 (current_mode_line_height, current_header_line_height):
4096 Declare extern.
5f0c971d 4097
d7361edf
MB
40982000-11-14 Miles Bader <miles@lsi.nec.co.jp>
4099
4100 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
4101 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
4102 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
4103
ee5e440a
MB
41042000-11-14 Miles Bader <miles@gnu.org>
4105
4106 * xterm.c (x_alloc_lighter_color): Include an additive component
4107 too for dark colors, because FACTOR isn't enough.
4108 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
4109 New macros.
4110
5ca020fc
GM
41112000-11-13 Gerd Moellmann <gerd@gnu.org>
4112
4113 * keyboard.c (show_help_echo): Call message3_nolog with number of
4114 bytes in the help string as 2nd parameter, instead of the number
4115 of characters.
4116
9d348294
MB
41172000-11-13 Miles Bader <miles@gnu.org>
4118
4119 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
4120 (Fload): Use new openp return protocol.
4121 Don't try to use Vload_source_file_function to load .elc files.
4122 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
4123 openp return protocol.
4124 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
4125
1729bb9a
KH
41262000-11-11 Kenichi Handa <handa@etl.go.jp>
4127
4e677396
KH
4128 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
4129
4130 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
4131 Defined these macros.
4132 (NLIST_STRUCT): Avoid re-defining it.
4133
1729bb9a
KH
4134 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
4135 -I/usr/contrib/X11R6/include.
4136 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
4137
a82fe213
JR
41382000-11-10 Jason Rumney <jasonr@gnu.org>
4139
4140 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
4141
4142 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
4143 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
4144
4145 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
4146 (Qw32_charset_vietnamese): New symbol.
4147 (xlfd_charset_of_font): New function.
4148 (w32_load_system_font): Use it.
4149 (x_to_w32_charset): Use Fassoc to find charset info. Special case
4150 when Vw32_charset_info_alist is nil to ensure default face always
4151 has font. Use Fcar and Fcdr for safety.
4152 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
4153 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
4154 pseudo-codepages for special cases.
4155 (w32_to_x_font): New parameter to allow charset portion to be
4156 specified where there is many to one mapping. Callers changed.
4157 (w32_list_fonts): Avoid listing fonts that won't display.
4158
52d89894
GM
41592000-11-10 Gerd Moellmann <gerd@gnu.org>
4160
4161 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
4162 (font_list_1): Renamed from font_list.
4163 (font_list): New function, trying alternative registries from
4164 Vface_alternative_font_registry_alist.
4165 (Finternal_set_alternative_font_registry_alist): New function.
4166 (syms_of_xfaces): Initialize and Staticpro
52283633
SM
4167 Vface_alternative_font_registry_alist.
4168 Defsubr Finternal_set_alternative_font_registry_alist.
52d89894 4169
651cd3da
KR
41702000-11-09 Ken Raeburn <raeburn@gnu.org>
4171
4172 * lisp.h (Flooking_at): Declare.
4173
388ac098
GM
41742000-11-09 Gerd Moellmann <gerd@gnu.org>
4175
778fbc46 4176 * dired.c (directory_files_internal): Fix a braino.
52283633 4177
388ac098
GM
4178 * dired.c (directory_files_internal): Add missing GCPRO's.
4179 Some cleanup.
4180
ecaedde1
GM
41812000-11-08 Gerd Moellmann <gerd@gnu.org>
4182
f7eb32aa
GM
4183 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
4184 (resize_mini_window): Return quickly if Vresize_mini_window is
4185 nil. Don't return if Vmax_mini_window_height is nil.
4186
4187 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
4188 (syms_of_xdisp): Initialize them.
4189 (resize_mini_window): Act according to the setting of
4190 Vresize_mini_window.
4191 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
4192
ecaedde1
GM
4193 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
4194 scroll bar widget after configuring it, so that it will appear at
4195 the right position from the start.
4196 (XTredeem_scroll_bar): Cleaned up.
4197
3747ef2c
KH
41982000-11-08 Kenichi Handa <handa@etl.go.jp>
4199
4200 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 4201 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
4202 division by two.
4203
4204 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
4205
03391420
DL
42062000-11-07 Dave Love <fx@gnu.org>
4207
7758f1c1 4208 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
4209
4210 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
4211
b5de343d
GM
42122000-11-07 Gerd Moellmann <gerd@gnu.org>
4213
acad3c0b
GM
4214 * window.c (Fset_window_configuration): Don't try to preserve
4215 point in the current buffer, if that buffer is displayed in more
4216 than one window.
4217
b5de343d
GM
4218 * xfaces.c (lookup_named_face): If default face isn't realized,
4219 try to realize it. Return -1 if not successful.
4220 (Fx_list_fonts): Handle case that face cannot be determined.
4221 (Fface_font): Likewise.
4222
cdb1fe49
GM
42232000-11-06 Gerd Moellmann <gerd@gnu.org>
4224
4225 * window.c (displayed_window_lines): Detect partially
4226 visible lines at the bottom correctly.
4227
d3a67486
SM
42282000-11-06 Stefan Monnier <monnier@cs.yale.edu>
4229
4230 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
4231 when ensuring we don't do visit in indirect buffer.
4232
ff8dd5d5
KH
42332000-11-06 Kenichi Handa <handa@etl.go.jp>
4234
4235 * composite.h (compose_chars_in_text): Add prototype.
4236
4237 * composite.c (Vcomposition_function_table): New variable.
4238 (Qcomposition_function_table): New variable.
4239 (run_composition_function): Call
4240 Vcompose_chars_after_function with three arguments.
4241 (compose_chars_in_text): New function.
4242 (syms_of_composite): Modified the doc-string of
4243 Vcompose_chars_after_function. Declare composition-function-table
4244 as a lisp variable, and initialize it.
4245
4246 * xfns.c (x_encode_text): Suppress producing escape sequences for
4247 composition.
4248
4249 * xselect.c: Include composite.h.
4250 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
4251
d1145f85
AI
42522000-11-05 Andrew Innes <andrewi@gnu.org>
4253
4254 * w32term.c (x_produce_glyphs): Fix typo in enum name.
4255
4256 * sysdep.c (read_input_waiting): Remove extraneous argument to
4257 read_socket_hook.
4258
4259 * w32fns.c (Fx_server_version): Include w32_build_number in the
4260 return list.
4261
4262 * w32heap.c (w32_build_number): New variable.
4263 (cache_system_info): Set it.
4264
4265 * w32heap.h (w32_build_number): Add extern.
4266
4267 * emacs.c (syms_of_emacs): Update docstring for
4268 system-configuration, to reflect the actual usage on MS-Windows.
4269
e85ee976
GM
42702000-10-31 Gerd Moellmann <gerd@gnu.org>
4271
26dcb81b
GM
4272 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
4273 process idle timers while waiting for another event.
4274
52283633 4275 * dispnew.c (update_frame_line): Handle case where spaces in
0a894bad
GM
4276 the default face are colored.
4277
e85ee976
GM
4278 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
4279 window height hasn't changed.
4280
01b220b6
JR
42812000-10-31 Jason Rumney <jasonr@gnu.org>
4282
4283 * w32term.c (x_produce_glyphs): Handle composite characters.
4284 (x_draw_glyph_string_foreground)
4285 (x_draw_composite_glyph_string_foreground): Restore old font.
4286
4e6b7204
MB
42872000-10-31 Miles Bader <miles@lsi.nec.co.jp>
4288
4289 * minibuf.c (read_minibuf): Reset the undo history just before
4290 starting the recursive-edit.
4291
d4358b37
GM
42922000-10-30 Gerd Moellmann <gerd@gnu.org>
4293
563f68f1
GM
4294 * xfaces.c (menu_face_change_count): New variable.
4295 (Finternal_set_lisp_face_attribute): Increment it for changes
4296 of the `menu' face.
4297 (realize_basic_faces): Reflect changes in the `menu' faces
4298 in menu bars.
4299
82e274d1
GM
4300 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
4301 dy obtained from the iterator's y-position after moving from
4302 scroll_margin_pos to PT; see comment there.
52283633 4303
0dbf9fd2
GM
4304 * xdisp.c (safe_eval_handler): Call add_to_log.
4305
906b3b14
GM
4306 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
4307 is not a symbol or string.
4308
d4358b37
GM
4309 * xdisp.c (echo_area_display): Don't perform a display update from
4310 inside redisplay. The update will happen anyway at the end of
4311 redisplay, and it can confuse redisplay (GC messages while
4312 redisplaying, for instance.)
4313
70c825df
SM
43142000-10-30 Stefan Monnier <monnier@cs.yale.edu>
4315
cf9b4b0b
SM
4316 * xrdb.c (x_load_resources): Use the class name in the defaults.
4317
70c825df
SM
4318 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
4319 (regex_compile): Catch bogus \(\1\).
4320
a1d34b1e
GM
43212000-10-30 Gerd Moellmann <gerd@gnu.org>
4322
cae71efe
GM
4323 * xterm.c (x_alloc_nearest_color): Fix last change to compare
4324 RGB values.
52283633 4325
35efe0a1
GM
4326 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
4327 we have a color cache, check that the cached color equals the
4328 allocated color. If not, clear the color cache.
4329
1d3baf74
GM
4330 * window.c (displayed_window_lines): Change buffers if necessary.
4331 Fix computation of displayed lines.
4332
a1d34b1e
GM
4333 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
4334 update_menu_bindings to DEFVAR_BOOL.
4335
70737ea9
KH
43362000-10-30 Kenichi Handa <handa@etl.go.jp>
4337
70c825df 4338 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 4339
fa0cb51d
KH
4340 * puresize.h (BASE_PURESIZE): Increase to 680000.
4341
70737ea9
KH
4342 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
4343
0e4c08e8
JR
43442000-10-29 Jason Rumney <jasonr@gnu.org>
4345
4346 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
4347
4348 * w32term.c (w32_bdf_per_char_metric): Negate descent.
4349 (w32_cache_char_metrics): Handle possibility that 'x' does not
4350 exist in a BDF font.
4351 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
4352
4353 * w32bdf.h (bdffont): Add nchars.
4354
4355 * w32bdf.c (set_bdf_font_info): Set it.
4356 (w32_BDF_TextOut): Swap byte order of double byte characters.
4357 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
4358
45b84006
EZ
43592000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
4360
4361 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
4362 don't override the colors in frame's param_alist, unless they are
4363 unspecified.
4364
4365 * term.c (reassert_line_highlight): If inverse_video is non-zero,
4366 reverse the effect of the highlight flag.
4367
caf9deee
KR
43682000-10-27 Ken Raeburn <raeburn@gnu.org>
4369
4370 * window.h (Fwindow_live_p): Declare.
4371
ae0b9b46
KR
4372 * undo.c (record_delete): Check that last_undo_buffer is really a
4373 buffer before applying XBUFFER to it.
4374
4375 * keymap.c (where_is_internal): Pass lisp object, not integer, to
4376 Faref.
4377
02067692
SM
43782000-10-27 Stefan Monnier <monnier@cs.yale.edu>
4379
4380 * lisp.h (KEYMAPP): New macro.
4381 (get_keymap): Remove.
4382 (get_keymap_1): Rename get_keymap.
4383
4384 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
4385
4386 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
4387
4388 * xmenu.c (single_submenu): Use KEYMAPP.
4389 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
4390 Use KEYMAPP rather than Fkeymapp.
4391
4392 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
4393
4394 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
4395 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
4396 Use KEYMAPP rather than Fkeymapp.
4397 (single_submenu): Use KEYMAPP.
4398 (w32_menu_show, w32_dialog_show): Use TRUE.
4399
4400 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
4401
4402 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
4403 (Fkeymapp): Use KEYMAPP.
4404 (get_keymap): Rename from get_keymap_1. Remove old def.
4405 Return t when autoload=0 and error=0 and the keymap needs autoloading.
4406 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
4407 (Fminor_mode_key_binding): Don't raise an error if the binding
4408 is not a keymap.
4409 (Fuse_global_map, Fuse_local_map): Allow autoloading.
4410 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
4411
4412 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
4413 Allow Vspecial_event_map to be autoloaded.
4414 (menu_bar_items): Fetch the keymap rather than using keymapp.
4415 (menu_bar_one_keymap): No need to follow func-indirect any more.
4416 (parse_menu_item): get_keymap_1 -> get_keymap.
4417 (tool_bar_items): Fetch the keymap rather than using keymapp.
4418 (read_key_sequence): Use KEYMAPP.
4419
4420 * intervals.c (get_local_map): Use get_keymap rather than following
4421 function-indirections explicitly.
4422
4423 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
4424
f9d80af3
JR
44252000-10-27 Jason Rumney <jasonr@gnu.org>
4426
4427 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
4428 point, as Windows has oversized fonts.
4429
4430 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
4431
a3ba27da
GM
44322000-10-27 Gerd Moellmann <gerd@gnu.org>
4433
4434 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
4435 (freehook, reallochook): Handle null pointer arguments.
4436 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
4437
aa3b80cc
SM
44382000-10-27 Stefan Monnier <monnier@cs.yale.edu>
4439
4440 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
4441 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
4442 Giving in to popular pressure to shut up the compiler with casts.
4443
e24e84cc
GM
44442000-10-27 Gerd Moellmann <gerd@gnu.org>
4445
4446 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
4447 signed value, and use a default value computed from the font's
4448 maximum descent.
4449
05ea7ef2
MB
44502000-10-27 Miles Bader <miles@lsi.nec.co.jp>
4451
4452 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
4453 that specify a negative underline position can still use underlines.
4454
4455 * window.c (Fpos_visible_in_window_p): Make POS default to
4456 WINDOW's point, not the current buffer's point.
4457
0b95284b
DL
44582000-10-26 Dave Love <fx@gnu.org>
4459
4460 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
4461 when it's necessary.
4462
6c5b90af
GM
44632000-10-26 Gerd Moellmann <gerd@gnu.org>
4464
8b6d9dc9
GM
4465 * window.c (size_window): Compute size difference from sum of old
4466 child window sizes instead of from parent's size.
4467
6bc92b2e
GM
4468 * xdisp.c (pos_visible_p): Change current buffer if necessary.
4469 Handle obscured lines at the top of the window.
4470
4471 * frame.c (Fdelete_frame): Doc fix. Move running the hook
4472 down after the last error condition check.
4473
6c5b90af
GM
4474 * frame.c (Fdelete_frame): Run delete-frame-hook.
4475
42f92d4d
KH
44762000-10-26 Kenichi Handa <handa@etl.go.jp>
4477
4478 * coding.c (decode_coding): Fix previous change (check also
4479 CODING_MODE_LAST_BLOCK).
4480
d97151cb
SM
44812000-10-25 Stefan Monnier <monnier@cs.yale.edu>
4482
e7efc503
SM
4483 * regex.c: More `unsigned char' -> `re_char' changes.
4484 Also change several `int' into `re_wchar_t'.
4485 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
4486 (PUSH_FAILURE_POINTER): Don't cast any more.
4487 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
4488 We want GCC to complain, since this piece of code makes
4489 re_match non-reentrant, which *should* be fixed.
4490 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
4491 (EXTEND_BUFFER): Use RETALLOC.
4492 (SET_LIST_BIT): Don't cast.
4493 (re_wchar_t): New type.
4494 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
4495 that those two functions will always properly return.
4496 (IMMEDIATE_QUIT_CHECK): Cast to void.
4497 (analyse_first): Use recursion rather than an explicit stack.
4498 (re_compile_fastmap): Can't fail anymore.
4499 (re_search_2): Don't check re_compile_fastmap for failure.
4500 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
4501 Now also sets the new value (passed in a new argument).
4502 (re_match_2_internal): Use it.
4503 Also, use a new var `reg' of type size_t when looping through regs
4504 rather than reuse the inappropriate `mcnt'.
4505
d97151cb
SM
4506 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
4507 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
4508 (where_is_internal): Renamed from Fwhere_is_internal.
4509 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
4510 (Fwhere_is_internal): New function wrapping where_is_internal.
4511 (where_is_internal_1): Handle the case where we're filling the cache.
4512 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
4513
d5789b65
MB
45142000-10-25 Miles Bader <miles@gnu.org>
4515
4516 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
4517
4ecda532
GM
45182000-10-25 Gerd Moellmann <gerd@gnu.org>
4519
4520 * window.c (pos_fully_visible_p): Removed.
4521 (Fpos_visible_in_window_p): Use pos_visible_p to determine
4522 if position is visible and/or fully visible.
4523
4524 * lisp.h (pos_visible_p): Add prototype.
4525
4526 * xdisp.c (pos_visible_p): New function.
4527
68c3a137
KH
45282000-10-25 Kenichi Handa <handa@etl.go.jp>
4529
4530 * process.c (send_process): If OBJECT is t, it means that the data
4531 is from C string, but we should encode it. Before calling
4532 setup_raw_text_coding_system, be sure to flush out data by the
4533 previous coding system.
4534
7ae1c032
MB
45352000-10-25 Miles Bader <miles@lsi.nec.co.jp>
4536
ff4dcd4b
MB
4537 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
4538 assignment of startpos to prev when startpos == pos.
4539
7ae1c032
MB
4540 * editfns.c (find_field): Set the field stickiness correctly from
4541 overlay fields. Use renamed `text_property_stickiness'.
4542 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 4543 Only check text properties, not overlays.
7ae1c032
MB
4544 * textprop.c (get_char_property_and_overlay): New function.
4545 (Fget_char_property): Use it.
4546 * intervals.h (get_char_property_and_overlay): Add declaration.
4547
49801145
SM
45482000-10-25 Stefan Monnier <monnier@cs.yale.edu>
4549
4550 * keymap.c: Use AREF, ASET and ASIZE macros.
4551 (Fmake_sparse_keymap): Docstring fix.
4552 (synkey): Remove.
4553 (shadow_lookup): Move up.
4554 Handle the case where lookup-key returns an integer.
4555 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
4556 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
4557 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
4558 Simplify/rewrite the keymap-finding code.
4559 Add check for command shadowing, using shadow_lookup.
4560
39e776cd
SM
45612000-10-24 Stefan Monnier <monnier@cs.yale.edu>
4562
4563 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
4564 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
4565 a symbol.
4566
2488aba5
AI
45672000-10-24 Andrew Innes <andrewi@gnu.org>
4568
4569 * dired.c (directory_files_internal_unwind): New function.
4570 (directory_files_internal): Use it to ensure closedir is called
4571 even if expand-file-name or file-attributes throw, eg. because of
4572 a user interrupt. Also enable immediate_quit while calling
4573 re_search, so that matching can be interrupted as well.
4574
b94fdf61
AI
45752000-10-24 Andrew Innes <andrewi@gnu.org>
4576
4577 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
4578 NT-Emacs only.
4579 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
4580 so that re_search functions only quit when callers expect them to.
4581
45822000-10-24 Kenichi Handa <handa@etl.go.jp>
4583
4584 * regex.c (regex_compile): Change the way of handling a range from
4585 a char less than 256 to a char not less than 256.
4586
1946f901
GM
45872000-10-24 Gerd Moellmann <gerd@gnu.org>
4588
7ae2f10f
GM
4589 * window.c (size_window): Prevent setting window's width or
4590 height to a negative value (esp. with XSETFASTINT).
4591
5dcab13e
GM
4592 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
4593 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
4594 (protect_malloc_state) [GC_MALLOC_CHECK &&
4595 GC_PROTECT_MALLOC_STATE]: New function.
4596 (PROTECT_MALLOC_STATE): New macro.
4597 (__malloc_initialize, morecore, _malloc_internal)
4598 (_free_internal) _realloc_internal): Use it to make _heapinfo
4599 read-only outside of gmalloc.
4600
63e1b552
GM
4601 * keymap.c: Update copyright.
4602
1946f901
GM
4603 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
4604 a symbol.
4605
4fa09beb
GM
46062000-10-24 Colin Walters <walters@cis.ohio-state.edu>
4607
4608 * filelock.c (unlock_all_files): Use unlock_file to expand each
4609 buffer's file_truename before trying remove its lock file.
4610
23afac01
EZ
46112000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
4612
4613 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
4614 or CRLF, decode EOLs.
4615
04448b95
KH
46162000-10-24 Kenichi Handa <handa@etl.go.jp>
4617
4618 * window.c (Fdisplay_buffer): Fix doc.
4619
3090a5a5
JR
46202000-10-23 Jason Rumney <jasonr@gnu.org>
4621
4622 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
4623 ASCII font of default fontset on Windows.
4624
4625 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
4626 xterm.c comment below).
4627
4628 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
4629
a83fee2c
GM
46302000-10-23 Gerd Moellmann <gerd@gnu.org>
4631
4632 * xterm.c (x_connection_closed): Reset handling_signal.
4633
52283633 4634 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
a83fee2c 4635
6ffdb539
MB
46362000-10-23 Miles Bader <miles@gnu.org>
4637
4638 * window.c (window_scroll_pixel_based, window_scroll_line_based):
4639 Pass nil for FULLY argument to Fpos_visible_in_window_p to
4640 maintain old behavior.
4641 * minibuf.c (Fminibuffer_complete): Likewise.
4642
7f1c969b
MB
46432000-10-23 Miles Bader <miles@lsi.nec.co.jp>
4644
4645 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
4646 that when a font can't be exactly centered, it errs up rather than
4647 down.
4648
23afac01 46492000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd 4650
52283633 4651 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
8ec118cd 4652
1a578e9b
AC
46532000-10-23 Andrew Choi <akochoi@i-cable.com>
4654
4655 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
4656
4657 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 4658 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
4659
4660 * emacs.c (main) [macintosh]: Call syms_of_textprop,
4661 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
4662 syms_of_search, x_term_init, and init_keyboard before calling
4663 init_window_once. Also, call syms_of_xmenu.
4664
4665 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
4666 default fontset to Monaco.
4667
4668 * frame.c [macintosh]: Include macterm.h. Remove declarations of
4669 NewMacWindow and DisposeMacWindow.
4670 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
4671 instead of calling NewMacWindow and setting fields of
4672 f->output_data.mac directly. Call init_frame_faces.
4673 (Fdelete_frame) [macintosh]: Remove unused code.
4674 (Fmodify_frame_parameters) [macintosh]: Call
4675 x_set_frame_parameters instead of mac_set_frame_parameters.
4676
4677 * frame.h [macintosh]: Define menu_bar_lines field in struct
4678 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
4679
4680 * keyboard.c [macintosh]: Include macterm.h.
4681 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
4682 and menu_bar_activate_event type events as for X and NT.
4683 (make_lispy_event) [macintosh]: Construct lisp events of type
4684 MENU_BAR_EVENT as for X and NT.
4685
4686 * sysdep.c [macintosh]: Remove declaration for sys_signal.
4687 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
4688 (sys_subshell) [macintosh]: Remove definition entirely.
4689 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
4690 Vwindow_system_version here. Remove initialization of
4691 Vx_bitmap_file_path.
4692 (read_input_waiting): Correct the number of parameters passed to
4693 read_socket_hook.
4694 Move all Macintosh functions to mac/mac.c.
4695
4696 * term.c [macintosh]: Include macterm.h.
4697
4698 * window.c [macintosh]: Include macterm.h.
4699
4700 * xdisp.c [macintosh]: Include macterm.h. Declare
4701 set_frame_menubar and pending_menu_activation.
4702 (echo_area_display) [macintosh]: Do not return if terminal frame
4703 is the selected frame.
4704 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
4705 Allow only the selected frame to set menu bar.
4706 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
4707 calling FRAME_EXTERNAL_MENU_BAR (f).
4708 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
4709
4710 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
4711 and check_x. Declare XCreateGC. Define x_create_gc and
4712 x_free_gc. Initialize font_sort_order.
4713 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
4714 but call x_list_fonts instead of w32_list_fonts.
4715 (Finternal_face_x_get_resource) [macintosh]: Do not call
4716 display_x_get_resource.
4717 (prepare_face_for_display) [macintosh]: Set xgcv.font.
4718 (realize_x_face) [macintosh]: Load the font if it is specified in
4719 ATTRS.
52283633 4720 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
1a578e9b 4721
1ffbabe3
SM
47222000-10-22 Stefan Monnier <monnier@cs.yale.edu>
4723
4724 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
4725 is nil: since we go to the end of submap anyway, we'd end up
4726 setting nil to nil.
4727 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
4728 doesn't obey autoload.
4729
bed43f1d
EZ
47302000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
4731
1ffbabe3 4732 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 4733
ea4233a7
JR
47342000-10-21 Jason Rumney <jasonr@gnu.org>
4735
4736 * w32term.c (w32_cache_char_metrics): Double check that font is
4737 really fixed pitch before trusting tmPitchAndFamily.
4738
f3d3c491
AI
47392000-10-21 Andrew Innes <andrewi@gnu.org>
4740
4741 * w32gui.h (w32_char_font_type): Move enum from w32term.c
4742
4743 * w32term.h: Extern decl for w32_cache_char_metrics.
4744
4745 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
4746
4747 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
4748 (w32_unload_font): Free per_char array if present.
4749
4750 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
4751 cached information in emulated XFontStruct to handle common cases
4752 quickly. Do not allocate XCharStruct for return.
4753 (w32_native_per_char_metric): New function.
4754 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
4755 allocating one.
4756 (x_produce_glyphs): Don't get an HDC. Change calls to
4757 w32_per_char_metric to match arg change above. Remove calls to
4758 free results.
4759 (w32_get_glyph_overhangs): Ditto.
4760 (w32_cache_char_metrics): New function.
4761
4762 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
4763 ($(BLD)/casefiddle.$(O)): Remove compile command.
4764 ($(BLD)/gmalloc.$(O)): Remove compile command.
52283633
SM
4765 ($(BLD)/dispnew.obj):
4766 ($(BLD)/keyboard.obj):
4767 ($(BLD)/w32inevt.obj):
4768 ($(BLD)/w32bdf.obj):
4769 ($(BLD)/alloc.obj):
4770 ($(BLD)/buffer.obj):
4771 ($(BLD)/editfns.obj):
4772 ($(BLD)/emacs.obj):
4773 ($(BLD)/fileio.obj):
4774 ($(BLD)/fns.obj):
4775 ($(BLD)/indent.obj):
4776 ($(BLD)/insdel.obj):
4777 ($(BLD)/intervals.obj):
4778 ($(BLD)/minibuf.obj):
4779 ($(BLD)/print.obj):
4780 ($(BLD)/scroll.obj):
4781 ($(BLD)/sysdep.obj):
4782 ($(BLD)/textprop.obj):
4783 ($(BLD)/widget.obj):
f3d3c491
AI
4784 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
4785 ($(BLD)/term.obj): Add dependency on dispextern.h.
4786
52283633
SM
4787 * makefile.nt ($(BLD)\dispnew.obj):
4788 ($(BLD)\keyboard.obj):
4789 ($(BLD)\w32inevt.obj):
4790 ($(BLD)\w32bdf.obj):
4791 ($(BLD)\alloc.obj):
4792 ($(BLD)\buffer.obj):
4793 ($(BLD)\editfns.obj):
4794 ($(BLD)\emacs.obj):
4795 ($(BLD)\fileio.obj):
4796 ($(BLD)\fns.obj):
4797 ($(BLD)\indent.obj):
4798 ($(BLD)\insdel.obj):
4799 ($(BLD)\intervals.obj):
4800 ($(BLD)\minibuf.obj):
4801 ($(BLD)\print.obj):
4802 ($(BLD)\scroll.obj):
4803 ($(BLD)\sysdep.obj):
4804 ($(BLD)\textprop.obj):
4805 ($(BLD)\widget.obj):
f3d3c491
AI
4806 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
4807 ($(BLD)\term.obj): Add dependency on dispextern.h
4808
18ad4821
EZ
48092000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
4810
4811 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
4812 with an additional argument of Qt.
4813
de54681a
MB
48142000-10-21 Miles Bader <miles@gnu.org>
4815
4816 * window.c (pos_fully_visible_in_window_p): New function.
4817 (Fpos_visible_in_window_p): Add FULLY argument.
4818 Use pos_fully_visible_in_window_p.
4819 (window_scroll_pixel_based, window_scroll_line_based): Update
4820 calls to Fpos_visible_in_window_p.
4821 * lisp.h (Fpos_visible_in_window_p): Update prototype
4822
13c844fb
GM
48232000-10-20 Gerd Moellmann <gerd@gnu.org>
4824
4825 * alloc.c (toplevel): Conditionalize compilation of mem_*
4826 functions differently.
52283633 4827
d9506268
JR
48282000-10-20 Jason Rumney <jasonr@gnu.org>
4829
4830 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
4831 mem_init where it used to be. mem_z etc not defined otherwise.
4832
8094989b
GM
48332000-10-20 Gerd Moellmann <gerd@gnu.org>
4834
4835 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
4836 GC_MALLOC_CHECK.
4837 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
4838 structure definition and related variabled to the top of the file.
4839 Include this code when GC_MALLOC_CHECK is defined.
4840 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
4841 register/unregister allocated region.
4842 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
4843 which isn't allocated.
4844 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
4845 something which is already in use.
4846 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
4847 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
4848 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
4849 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
4850
4851 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
4852 _malloc_internal instead of malloc.
4853 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
4854 of free.
4855
ea456eb4
AI
48562000-10-20 Andrew Innes <andrewi@gnu.org>
4857
4858 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
4859 Windows.
4860 (my_strftime) <macro>: Don't use macro arg list when redefining as
4861 _strftime_copytm.
4862 (my_strftime) <function>: Supply 0 as ut argument.
4863
e64c3a75
JR
48642000-10-19 Jason Rumney <jasonr@altavista.net>
4865
4866 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
4867 including dispextern.h, as it stops faces from working.
4868
4869 * w32fns.c (Fx_create_frame): Don't bother calling
4870 face-set-after-frame-default since the caller does it for us
4871 anyway. Clean up calls to x_get_arg to be consistent with X.
4872
4873 * w32term.c (x_produce_glyphs): Handle
4874 unibyte_display_via_language_environment correctly.
4875 (w32_draw_box_rect): Fix the calculation of width and height.
4876
4877 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
4878 as it has stopped working.
4879 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
4880 menu-bar.
4881
17401c97
GM
48822000-10-19 Gerd Moellmann <gerd@gnu.org>
4883
4884 * eval.c (skip_debugger): Prevent a compiler warning.
4885 (Fcondition_case): Likewise.
4886 (Fbacktrace_frame): Use a null interactive spec.
4887
773272d8
KH
48882000-10-19 Kenichi Handa <handa@etl.go.jp>
4889
4890 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
4891
a42943e9
GM
48922000-10-18 Gerd Moellmann <gerd@gnu.org>
4893
e50517d9
GM
4894 * strftime.c: Sync with glibc, file version 1.78.
4895 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
4896 should no longer be used according to ISO 8601.
4897
9035a35a
GM
4898 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
4899 no map for meta_prefix_char, don't try to use it as a keymap.
4900 Instead, if T_OK is non-zero, look up a default binding, if any,
4901 otherwise, if T_OK is zero, return nil.
4902
a42943e9
GM
4903 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
4904 (x_to_xcolors, png_load): Use x_query_color.
4905
52283633
SM
4906 * xterm.c (x_color_cells, x_query_colors, x_query_color):
4907 New functions.
a42943e9
GM
4908 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
4909 which can be slow.
4910 (x_copy_color, x_alloc_lighter_color): Likewise.
4911
4912 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
4913 (x_query_color, x_query_colors): Add prototype.
4914
4915 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
4916 check_string_bytes only if not noninteractive, increase count to 50.
4917
00de2987
MB
49182000-10-18 Miles Bader <miles@lsi.nec.co.jp>
4919
4920 * insdel.c (adjust_markers_for_delete): Handle before-insertion
4921 markers correctly.
4922
54918e2b
GM
49232000-10-17 Gerd Moellmann <gerd@gnu.org>
4924
1f0b3fd2
GM
4925 * alloc.c (pure_bytes_used): Renamed from pureptr.
4926 (ALIGN): New macro.
4927 (pure_alloc): New function.
4928 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
4929 Use it.
4930 (Fpurecopy): Use PURE_POINTER_P.
4931
68c5d1db
GM
4932 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
4933 PT has moved backward.
52283633 4934
9a038881
GM
4935 * xdisp.c (cursor_row_p): Take continued lines into account.
4936
361b097f
GM
4937 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
4938 string's size_byte.
4939 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
4940 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
4941 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
4942 string allocated.
4943
54918e2b
GM
4944 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
4945 of selective display off while searching for the next line start.
4946
03ed0806
KH
49472000-10-17 Kenichi Handa <handa@etl.go.jp>
4948
4949 * Makefile.in (term.o): Depend on dispextern.h.
4950
7e05cdaf
SM
49512000-10-16 Stefan Monnier <monnier@cs.yale.edu>
4952
4953 * keymap.c (keymap_memberp): Ensure that nil is not a member.
4954
a6801fd1
GM
49552000-10-16 Gerd Moellmann <gerd@gnu.org>
4956
483de32b
GM
4957 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
4958 the iterator at the beginning, so that they can be set later on,
4959 for instance in reseat_at_next_visible_line_start, without being
4960 overwritten.
4961
a6801fd1
GM
4962 * xfns.c (pbm_format): Add :foreground and :background keywords.
4963 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
52283633 4964 (xbm_load): Recognize foreground and background color specifications.
a6801fd1 4965
dbf1fcc1
EZ
49662000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
4967
4968 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
4969
52283633 4970 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
dbf1fcc1
EZ
4971
4972 * msdos.c (IT_set_face): Compare highlighted face with the default
4973 face, and invert colors if these faces' colors are identical.
4974 (Fmsdos_remember_default_colors): Don't swap foreground and
4975 background colors in initial_colors[].
4976 (IT_set_frame_parameters): Don't swap frame's foreground and
4977 background pixels. If ALIST includes "(reverse . t)", swap
4978 foreground-color and background-color properties in frame's
4979 param_alist. If the original frame's param_alist doesn't specify
4980 the colors, store unspecified-fg and unspecified-bg, reversed if
4981 required.
4982
4983 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
4984 the colors are unspecified and reversed, reverse fore- and back-
4985 ground in the returned value.
4986 (Fframe_parameter): Ditto.
4987
b41fe2c3 49882000-10-16 Gerd Moellmann <gerd@gnu.org>
52283633 4989
3a6b59d9
GM
4990 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
4991 get_last_unchanged_at_beg_row.
4992 (find_first_unchanged_at_end_row): Renamed from
4993 get_first_unchanged_at_end_row.
4994 (find_first_unchanged_at_end_row): Convert assertions to
4995 unconditional tests which abort. When looking for a row in
4996 unchanged text, don't go further back than first_text_row.
4997
b41fe2c3
GM
4998 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
4999 Don't add in the last line's height when deciding if the new
5000 position is below the scroll margin.
9d1af64f 5001
b41fe2c3 50022000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
5003
5004 * editfns.c (Fconstrain_to_field): Check carefully for field
5005 boundaries if either OLD_POS or NEW_POS has a non-nil field
5006 property, even if they're the same.
5007
c412cb7b
KH
50082000-10-16 Kenichi Handa <handa@etl.go.jp>
5009
5010 * xterm.c (x_draw_box_rect): Fix the calculation of width and
5011 height for XFillRectangle.
5012
5586f3eb
SM
50132000-10-15 Stefan Monnier <monnier@cs.yale.edu>
5014
5015 * syntax.c (Fstring_to_syntax): New function extracted from
5016 Fmodify_syntax_entry.
5017 (Fmodify_syntax_entry): Use it and document the ! and | fences.
5018 (skip_chars, Fforward_comment): Remove unused variables.
5019 (syms_of_syntax): Add defsubr for string-to-syntax.
5020 (describe_syntax): Add code for comment and string fences.
5021
db785038
SM
50222000-10-14 Stefan Monnier <monnier@cs.yale.edu>
5023
5024 * keymap.c (access_keymap): Add AUTOLOAD parameter.
5025 Do the meta->esc mapping. Call get_keyelt before returning.
5026 Start scanning from the second element (the first is always `keymap')
5027 to make it easier to detect when we reach a parent map.
5028 Handle the case of inheriting from a symbol whose function is a map.
5029 (Fkeymap_parent): Also handle the `inherit from symbol' case.
5030 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
5031 (get_keyelt, Flookup_key): Update call to access_keymap.
5032 Remove the meta->esc mappings.
5033 (define_as_prefix): Delete old disabled code.
5034 (menu_item_p): New function.
5035 (where_is_internal_1): Skip over the few remaining menu items.
5036 * lisp.h (access_keymap): Update prototype.
5037 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
5038 Update call to access_keymap.
5039 (follow_key, read_key_sequence): Update calls to access_keymap.
5040 Remove the meta->esc mappings.
5041
cafafe0b
GM
50422000-10-13 Gerd Moellmann <gerd@gnu.org>
5043
a2e2a7f6
GM
5044 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
5045 with additional argument.
5046
cafafe0b
GM
5047 * xdisp.c (cursor_row_p): New function.
5048 (try_cursor_movement, display_line): Use it.
52283633 5049
cafafe0b
GM
5050 * xdisp.c (append_space): Also save/restore iterator's current
5051 character and its length.
5052
5053 * xdisp.c (init_from_display_pos): Add an assertion.
5054 (handle_stop): Don't set iterator's add_overlay_start.
5055 (handle_invisible_prop): Likewise.
5056 (load_overlay_strings): If text under an overlay is invisible,
5057 take both before- and after-strings into account when the iterator
5058 is positioned either at the start or at the end of the overlay.
5059 (forward_to_next_line_start): Rewritten.
5060 (reseat_at_next_visible_line_start): Rewritten.
5061 (set_iterator_to_next): Add parameter RESEAT_P.
5062
5063 * dispextern.h (struct it): Remove member add_overlay_start.
5064 (set_iterator_to_next): Change prototype.
5065
c744452b
KH
50662000-10-13 Kenichi Handa <handa@etl.go.jp>
5067
5068 * coding.c (code_convert_region): Be sure to initialize
5069 coding->category_idx.
e4a3f4e1
KH
5070 (decode_coding_string): Set coding->src_multibyte and
5071 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
5072 (encode_coding_string): Set coding->src_multibyte and
5073 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 5074
321fd26f
SM
50752000-10-12 Stefan Monnier <monnier@cs.yale.edu>
5076
5077 * xfns.c (Fx_create_frame): Don't bother calling
5078 face-set-after-frame-default since the caller does it for us anyway.
5079
76832439
EZ
50802000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
5081
5082 * window.c (coordinates_in_window): Fix detection of vertical line
5083 on character terminals.
5084
2483cf58
GM
50852000-10-12 Gerd Moellmann <gerd@gnu.org>
5086
5087 * editfns.c (save_excursion_save): Additionally record the
5088 selected window.
5089 (save_excursion_restore): If buffer was visible in a window, and a
5090 different window was selected, and the old selected window is
5091 still live, restore point in that window.
5092
eb991b25
KH
50932000-10-12 Kenichi Handa <handa@etl.go.jp>
5094
8a0eba09
KH
5095 * xterm.c (x_produce_glyphs): Handle
5096 unibyte_display_via_language_environment correctly.
5097
20401fcc
KH
5098 * regex.c (regex_compile): Change the way of handling a range from
5099 unibyte char to multibyte char.
5100
5101 * syntax.c (skip_chars): Change the way of handling a range from
5102 unibyte char to multibyte char.
5103
eb991b25
KH
5104 * process.c (read_process_output): Cancel previous change.
5105
365dd325
EZ
51062000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
5107
c1b096cb
EZ
5108 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
5109
365dd325
EZ
5110 * charset.c (Ffind_charset_string): Doc fix.
5111 (Ffind_charset_region): Doc fix.
5112
eb483c2b
KH
51132000-10-11 Kenichi Handa <handa@mule.m17n.org>
5114
5115 * process.c (read_process_output): Fix previous change. Adjust
5116 multibyteness of text to insert in a buffer by
52283633 5117 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
eb483c2b 5118
b40bfb99
AS
51192000-10-10 Andreas Schwab <schwab@suse.de>
5120
5121 * alloc.c (mark_object): Remove all workarounds installed on
5122 1993-08-08.
5123
caff31d4
KH
51242000-10-10 Kenichi Handa <handa@etl.go.jp>
5125
52283633 5126 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
caff31d4
KH
5127 (base64_encode_1): Make it work for a text of multibyte form.
5128 (Fbase64_decode_region): Allocate sufficient memory for multibyte
5129 case. Don't call str_to_multibyte because base64_decode_1
5130 produces correct multibyte form for eight-bit codes.
52283633 5131 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
caff31d4
KH
5132 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
5133 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
5134 codes.
5135
5136 * charset.h (CHAR_STRING): Optimized for single byte characters.
5137
cba026ef
AS
51382000-10-09 Andreas Schwab <schwab@suse.de>
5139
5140 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
5141 -1 after socket is closed, to fall through to error processing.
5142
1e21fe48
EZ
51432000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
5144
5145 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 5146 variables. If ALIST includes foreground-color or
1e21fe48
EZ
5147 background-color, change also the colors of the default face for
5148 this frame.
5149
a640322e
EZ
51502000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
5151
5152 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
5153 them extern (they are defined on xfaces.c).
5154 (syms_of_msdos): Don't intern and don't staticpro
5155 Qbackground_color and Qforeground_color.
5156
a115794c
EZ
51572000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
5158
5159 * frame.c (Fframe_parameter): For non-windowed frames, if
5160 f->param_alist says foreground or background color is unspecified,
5161 call tty_color_name to return the color name computed from the
5162 frame's current colors.
5163
f5533b63
DL
51642000-10-06 Dave Love <fx@gnu.org>
5165
5166 * terminfo.c (ospeed): Don't declare.
5167
5168 * sysdep.c: Don't include string.h.
5169 (h_errno): Declare conditional also on TRY_AGAIN.
5170
5171 * charset.c (Ffind_charset_string): Doc fix.
5172
52283633 5173 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
f5533b63
DL
5174 (Fbase64_decode_region, Fbase64_decode_string): More explicit
5175 error messages.
5176
2b06561a
DL
51772000-10-05 Dave Love <fx@gnu.org>
5178
5179 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
5180 position like menu-bar.
5181
ca839c85
GM
51822000-10-05 Gerd Moellmann <gerd@gnu.org>
5183
5184 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
5185
5186 * xdisp.c (handle_single_display_prop): Use safe_call1.
5187 (safe_call): Renamed from call_function.
5188 (safe_call1): New function.
5189 (handle_fontified_prop): Use safe_call1 instead of call1.
5190 (safe_eval): Renamed from eval_form.
5191 (safe_eval_handler): Renamed from eval_handler.
5192 (handle_single_display_prop, display_mode_element): Use safe_eval
5193 instead of eval_form.
5194
5195 * xfaces.c (merge_face_heights): Use safe_call instead of
5196 call_function.
5197
5198 * keyboard.c (show_help_echo): Use safe_call instead of
5199 call_function; use safe_eval instead of eval_form.
5200
5201 * lisp.h (safe_call): Renamed from call_function.
5202 (safe_eval): Renamed from eval_form.
5203 (safe_call1): Add prototype.
5204
a3489ece
MB
52052000-10-05 Miles Bader <miles@lsi.nec.co.jp>
5206
5207 * xfns.c (image_ascent): Rearrange ascent calculation for the
5208 has-a-font case.
5209
35810b6f
SM
52102000-10-04 Stefan Monnier <monnier@cs.yale.edu>
5211
5212 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
5213 (where_is_internal_1): Don't bother ignoring menu-items any more.
5214
3dc78168
GM
52152000-10-04 Gerd Moellmann <gerd@gnu.org>
5216
5217 * keyboard.c (update_menu_bindings): New variable.
5218 (parse_menu_item): Use AREF. If update_menu_bindings
5219 is 0, don't update menu bindings.
5220 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
5221
1efc2bb9
EZ
52222000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
5223
5224 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
5225 to `mark_object'.
5226
3f679f55
SM
52272000-10-02 Stefan Monnier <monnier@cs.yale.edu>
5228
5229 * syntax.c (forw_comment): Match nestedness of ender/starter.
5230 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
5231 (prev_char_comstart_first): Remove.
5232 (back_comment): Check two-char comment markers more carefully
5233 to better handle overlapping cases like *//* or /* */* */ ...
5234 Match nestedness of ender/starter.
5235
2021ab61
DL
52362000-10-02 Dave Love <fx@gnu.org>
5237
5238 * config.in (HAVE_GAI_STRERROR): Add undef.
5239
5240 * process.c (Fopen_network_stream): Use it.
5241
5242 * m/alpha.h (NO_REMAP): Don't define.
5243
64e6cc18
GM
52442000-10-02 Gerd Moellmann <gerd@gnu.org>
5245
5246 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
5247 return with a string converted to an integer or vice versa when
5248 Vmocklisp_arguments is t.
5249 (Fsignal): Likewise. The function can return for `quit'.
5250 (struct gcpro): Declare member `var' to point to a volatile
5251 Lisp_Object.
5252
5253 * eval.c (error): Prevent compiler warning.
5254
b1904cd9
SM
52552000-09-30 Stefan Monnier <monnier@cs.yale.edu>
5256
5257 * keymap.c (keymap_memberp): New function.
5258 (Fset_keymap_parent): Use it.
5259 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
5260 Use keymap_memberp to avoid creating cycles.
5261 (access_keymap): Use KEYMAPP.
5262
71c9ec51
GM
52632000-09-30 Gerd Moellmann <gerd@gnu.org>
5264
5265 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
5266 gai_strerror. Make sure xerrno is set if connect fails. Improve
5267 error recovery.
71c9ec51 5268
c70c6b58
JR
52692000-09-29 Jason Rumney <jasonr@gnu.org>
5270
5271 * w32term.c (w32_char_font_type, w32_encode_char)
5272 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
5273 (w32_bdf_per_char_metric): New function.
5274 (w32_per_char_metric): Use it.
5275 (x_draw_glyph_string_background): Always draw background for BDF
5276 glyphs.
5277
5278 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
5279 GDI object which is a scarce resource.
5280
5281 * w32bdf.c (search_file_line): Fix skipping of whitespace.
5282 (get_quoted_string): Fix limit on memchr search.
5283 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
5284 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
5285 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
5286 (get_cached_font_char, cache_char_offset): Use macro
5287 BDF_CODEPOINT_RANGE_COVER_P.
5288 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
5289 (clear_cached_bitmap_slots): New function.
5290 (GET_HEX_VALUE): G-Z, g-z are not hex.
5291 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
5292 (get_bitmap_with_cache): Use new cache implementation.
5293 (create_offscreen_bitmap): New function.
5294 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
5295
5296 * w32term.c (x_produce_glyphs): If the distance from the current
5297 position to the next tab stop is less than a canonical character
5298 width, use the tab stop after that.
5299 (x_draw_glyphs): Handle case START and END are out of bounds more
5300 carefully.
5301 (x_clear_mouse_face): Block/unblock input.
5302 (x_display_and_set_cursor): Don't show a hollow box cursor for
5303 buffers whose cursor_type is nil.
5304
fe01239f
GM
53052000-09-29 Gerd Moellmann <gerd@gnu.org>
5306
52283633 5307 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
fe01239f
GM
5308
5309 * dispextern.h (updating_frame): Declare extern.
5310
e7c52f1f
AS
53112000-09-29 Andreas Schwab <schwab@suse.de>
5312
5313 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
5314
de6e1f7c
GM
53152000-09-29 Gerd Moellmann <gerd@gnu.org>
5316
25126faa
GM
5317 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
5318 use its function definition.
5319 (tool_bar_items): Likewise.
5320
de6e1f7c 5321 * lisp.h (fatal): Declare NO_RETURN.
52283633 5322
454ee39b
KH
53232000-09-29 Kenichi Handa <handa@etl.go.jp>
5324
5325 * keymap.c: Remove the line "#undef NULL".
5326
96301c5f
GM
53272000-09-28 Gerd Moellmann <gerd@gnu.org>
5328
52283633 5329 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
96301c5f 5330
efffeeb4
DL
53312000-09-28 Dave Love <fx@gnu.org>
5332
ecb8b666
DL
5333 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
5334
dc3cd20f
DL
5335 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
5336
5337 * .gdbinit (xreload): Note its need on GNU/Linux.
5338
efffeeb4
DL
5339 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
5340 r_alloc, r_alloc_free.
5341
8610d903
KH
53422000-09-28 Kenichi Handa <handa@etl.go.jp>
5343
5344 * syntax.c (skip_chars): Handle negation correctly.
5345
8901d1ac
GM
53462000-09-27 Gerd Moellmann <gerd@gnu.org>
5347
6f22f1ad
GM
5348 * xfaces.c (realize_default_face): Call set_lface_from_font_name
5349 with non-zero FORCE_P argument.
5350
52283633 5351 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
8901d1ac
GM
5352 Add assertions.
5353
5354 * xdisp.c (window_box_height): Add an assertion.
5355
5356 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
5357 tool-bar than is available.
5358 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
5359
36f1966f
DL
53602000-09-27 Dave Love <fx@gnu.org>
5361
efffeeb4 5362 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 5363
31d929e5
GM
53642000-09-26 Gerd Moellmann <gerd@gnu.org>
5365
c98863bf
GM
5366 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
5367 instead of BITS_PER_INT.
5368 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
5369 EMACS_UINT, respectively.
5370 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
5371
5372 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
5373
5374 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
5375
77072ab1
GM
5376 * window.c (freeze_window_starts): Construct last argument for
5377 foreach_window differently.
5378
5379 * xfns.c (x_decode_color): Don't return a Lisp_Object.
5380
5381 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
5382 EMACS_UINT instead of `int' and `unsigned int'.
5383 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
5384
5385 * frame.h (struct frame): Make the `nothing' member of union
5386 output_data an EMACS_INT.
5387
52283633 5388 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
31d929e5
GM
5389 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
5390 size in the sdata structure.
5391 (SDATA_NBYTES, SDATA_DATA): New macros.
5392 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
5393 differently for the different layout of the sdata structure.
5394 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
5395 in sdata.
5396 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
5397 Check that size recorded in the string size and size recorded in
5398 the sdata structure agree.
5399
3e60b029
DL
54002000-09-25 Dave Love <fx@gnu.org>
5401
5402 * buffer.c: Include stdio.h.
5403
5404 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
52283633 5405
3e60b029
DL
5406 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
5407
5408 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
52283633 5409 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
3e60b029
DL
5410 (__malloc_extra_blocks): Declare as __malloc_size_t.
5411
8ff16b4e
GM
54122000-09-25 Gerd Moellmann <gerd@gnu.org>
5413
755a2ccd
GM
5414 * alloc.c (mark_image): Use GC_NILP instead of NILP.
5415
d8b4516f
GM
5416 * keyboard.c (show_help_echo): Set help_echo_showing_p.
5417 (read_char): If help-echo is showing, preserve the echo area
5418 when redisplaying.
5419
5420 * xdisp.c (help_echo_showing_p): New variable.
5421 (set_message): Reset it to 0.
5422 (init_xdisp): Initialize help_echo_showing_p.
5423
5424 * dispextern.h (help_echo_showing_p): Declare extern.
5425
5426 * config.in: Fix typo in __GNUC_MINOR__.
5427
5428 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
5429
b11af2dd
GM
5430 * s/freebsd.h (POSIX_SIGNALS): Define.
5431
8ff16b4e
GM
5432 * xterm.c (x_clear_mouse_face): Block/unblock input.
5433
844eb643
DL
54342000-09-24 Dave Love <fx@gnu.org>
5435
5436 * fns.c (base64_encode_1): Fix last change.
5437
b30ab1b3
GM
54382000-09-22 Gerd Moellmann <gerd@gnu.org>
5439
5440 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
5441
5442 * xdisp.c (try_window_reusing_current_matrix): More fixes
5443 for the case window has a header-line.
5444
c6cbe5f0
DL
54452000-09-22 Dave Love <fx@gnu.org>
5446
4c7c1f3f
DL
5447 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
5448 a doc string.
5449
5450 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
5451
c6cbe5f0
DL
5452 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
5453
550a625e
GM
54542000-09-21 Gerd Moellmann <gerd@gnu.org>
5455
4c7c1f3f 5456 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
5457 for GCC >= 2.5.
5458
52283633
SM
5459 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
5460 Declare NO_RETURN.
fca99116 5461
80d26f99
GM
5462 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
5463 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
5464 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
5465 warnings.
52283633 5466
80d26f99
GM
5467 * marker.c (byte_char_debug_check): Return void.
5468
623a0aae
GM
5469 * xfns.c (Fx_create_frame): Set default frame parameter value
5470 for tool-bar-lines to 1.
5471
5472 * dispnew.c (scrolling_window): Compare y-positions of rows
5473 equal at the start. Some simplification.
5474
5475 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
5476 reused rows' y-position in the case window has a header-line, and
5477 new window start is greater than old window start.
5478
42ac0ae5
GM
5479 * process.c (process_sent_to): New variable.
5480 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
5481 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
5482 Declare more parameters volatile.
5483
550a625e
GM
5484 * lread.c (Vrecursive_load_depth_limit): New variable.
5485 (Fload): Check recursive loads whose recursion depth exceeds
5486 Vrecursive_load_depth_limit.
5487 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
5488
8320414c
GM
54892000-09-20 Gerd Moellmann <gerd@gnu.org>
5490
f46c275e
GM
5491 * fileio.c (Fread_file_name): Doc fix.
5492
5493 * editfns.c (Fmessage_or_box): Doc fix.
5494
5495 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
5496
b7e11c5b 5497 * xfns.c (xbm_scan): Allow C-style comments.
52283633 5498
8320414c
GM
5499 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
5500 symbols are specified, add color translations to the cache.
52283633 5501 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
8320414c
GM
5502 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
5503 xpm_cache_color.
5504 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
5505 structures to xpm_init_color_cache.
5506
da1608d9
GM
55072000-09-19 Gerd Moellmann <gerd@gnu.org>
5508
52283633 5509 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
da1608d9 5510
6badfa25
AI
55112000-09-19 Andrew Innes <andrewi@gnu.org>
5512
5513 * makefile.nt (bootstrap-emacs): Don't change directory.
5514
3a5f42bb
KH
55152000-09-19 Kenichi Handa <handa@etl.go.jp>
5516
1b7649bd
KH
5517 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
5518
3a5f42bb
KH
5519 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
5520 If output buffer is too small, signal an appropriated error.
5521
9f83cf0b
DL
55222000-09-18 Dave Love <fx@gnu.org>
5523
52283633 5524 * keyboard.c (menu_bar_items, tool_bar_items)
9f83cf0b
DL
5525 (current_active_maps): Remove redundant get_local_map call.
5526
28c7826c
GM
55272000-09-18 Gerd Moellmann <gerd@gnu.org>
5528
5cefa566
GM
5529 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
5530 cursor for buffers whose cursor_type is nil.
52283633 5531
6fed3546
GM
5532 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
5533 a feature to implement that is already implemented.
5534 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
5535 warnings.
5536
5537 * xfns.c (x_clear_image_1): New function.
5538 (x_clear_image): Use it.
52283633 5539 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
6fed3546 5540
05b1f851
GM
5541 * dispnew.c (update_window): Move test for invisible lines
5542 at the top to update_window_line.
5543 (update_window_line): Handle invisible lines here.
5544
f4779de9
GM
5545 * xfns.c (clear_image_cache): Clear current matrices of all
5546 frames sharing an image cache. Block input while freeing
5547 images. Fix timestamp comparison.
5548 (x_clear_image): Also free the mask.
5549
28c7826c
GM
5550 * xfns.c (lookup_image): Block input while loading the image so
5551 that we won't get interrupted in a state where the image isn't yet
5552 set up completely.
5553 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
5554 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
5555 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
52283633 5556 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
28c7826c 5557
b7412313
GM
55582000-09-16 Gerd Moellmann <gerd@gnu.org>
5559
5560 * dispnew.c (update_window): Make sure to make desired rows
5561 current even if they are completely invisible at the top
5562 of a window.
5563
47e351a3
GM
55642000-09-15 Gerd Moellmann <gerd@gnu.org>
5565
7f8f1edc
GM
5566 * xfns.c (lookup_image): Build mask before applying an algorithm.
5567 Recognize algorithm `disabled'.
5568 (cross_disabled_images): New variable.
5569 (COLOR_INTENSITY): New macro.
5570 (x_detect_edges): Use COLOR_INTENSITY.
5571 (x_disable_image): New function.
5572 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
5573
5574 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
5575 disabled state, don't apply an image transformation algorithm if
5576 the user specified an image for the disabled state. Use
28c7826c 5577 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
5578 user hasn't specified an image.
5579
ebb8f116
GM
5580 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
5581 allocation functions with the XPM lib.
5582 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
5583 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
5584 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
5585 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
52283633 5586 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
ebb8f116
GM
5587 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
5588 functions, if possible, because these handle color allocation
5589 failure more gracefully.
5590 (Fimage_mask_p): New function.
5591
47e351a3
GM
5592 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
5593 (Qedge_detection, Qheuristic): New symbols.
5594 (syms_of_xfns): Initialize new symbols.
5595 (lookup_image): Handle `:mask X', `:algorithm emboss', and
5596 `algorithm (edge-detection ...)'.
5597 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
5598 (tiff_format, gif_format, gs_format): Add `:mask'.
5599 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
5600 (GIF_MASK, GS_MASK): New enumerators.
5601 (x_laplace_read_row, x_laplace_write_row): Functions removed.
5602 (emboss_matrix, laplace_matrix): New variables.
5603 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
5604 (x_edge_detection): New functions.
5605 (x_laplace): Rewritten in terms of x_detect_edges.
5606 (x_build_heuristic_mask): If image has a mask, free it.
5607
fe83b953
AI
56082000-09-14 Andrew Innes <andrewi@gnu.org>
5609
5610 * makefile.w32-in: Revert to Unix line endings.
5611
3021e816
AI
56122000-09-14 Andrew Innes <andrewi@gnu.org>
5613
5614 * makefile.w32-in: Standardize indentation somewhat.
5615 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
5616 cater for differences between shells.
5617
5618 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
5619
2a32b5ea
GM
56202000-09-14 Gerd Moellmann <gerd@gnu.org>
5621
5622 * xterm.c (x_produce_glyphs): If the distance from the current
5623 position to the next tab stop is less than a canonical character
5624 width, use the tab stop after that.
5625
b4331e96
DL
56262000-09-14 Dave Love <fx@gnu.org>
5627
5628 * buffer.c (alloc_buffer_text): Fix xmalloc call.
5629
ef9e4345
GM
56302000-09-14 Gerd Moellmann <gerd@gnu.org>
5631
085536c2
GM
5632 * xdisp.c (handle_fontified_prop): While running fontification
5633 functions, bind `fontification-functions' and
5634 `after-change-functions' to nil.
5635
ef9e4345
GM
5636 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
5637 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
5638
5639 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
5640
5641 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
5642 USE_MMAP_FOR_BUFFERS.
5643
5644 * insdel.c (make_gap): Use enlarge_buffer_text.
5645
5646 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
5647 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
5648 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
5649 from former r_alloc_* functions in ralloc.c.
52283633 5650 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
ef9e4345
GM
5651 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
5652 (mmap_init) [REL_ALLOC_MMAP]: New function.
5653 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
5654 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
5655 BUFFER_FREE.
5656
5657 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
5658 (enlarge_buffer_text): Add prototype.
5659
5660 * ralloc.c: Remove everything having to do with the use of mmap.
5661
f8608968
GM
56622000-09-13 Gerd Moellmann <gerd@gnu.org>
5663
2a494b2d
GM
5664 * sound.c (Fplay_sound): Doc fix.
5665
8c907a56
GM
5666 * keyboard.c: Avoid some more compiler warnings.
5667 (parse_tool_bar_item): Ignore cached key bindings.
5668
f8608968
GM
5669 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
5670 and allocation of Lisp data.
5671
6ab70e9a
GM
56722000-09-12 Gerd Moellmann <gerd@gnu.org>
5673
d12d0a9b
GM
5674 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
5675 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
5676 defaults first.
5677
6ab70e9a
GM
5678 * lread.c (Fload): Put code checking for recursive loads in #if 0.
5679
63c36c3c
KH
56802000-09-12 Miyashita Hisashi <himi@meadowy.org>
5681
5682 * ccl.c: Comment fixed.
5683 (MAX_MAP_SET_LEVEL): Increased to 30.
5684 (PUSH_MAPPING_STACK): Enclose with do-while block.
5685 (POP_MAPPING_STACK): Likewise.
5686 (stack_idx_of_map_multiple): New variable.
5687 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
5688 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
52283633 5689 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
63c36c3c
KH
5690 (ccl_driver) <CCL_MapSingle>: Likewise.
5691 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
5692 with the case where looking up process reaches to the end of
5693 map-set, and call CCL programs as the above change.
5694
7ee3bd7b
GM
56952000-09-11 Gerd Moellmann <gerd@gnu.org>
5696
8ec8a5ec
GM
5697 * xfns.c (png_load, jpeg_load): Declare some variables volatile
5698 that might be clobbered by longjmp.
5699 (check_x_display_info, x_decode_color, create_frame_xic)
5700 (Fx_display_backing_store, Fx_display_visual_class)
52283633 5701 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
8ec8a5ec 5702
f74b0705
GM
5703 * lread.c (init_lread): Set Vloads_in_progress to nil.
5704 (Fload): Show list of recursively loaded files, when signaling an
5705 error.
5706
7ee3bd7b
GM
5707 * lread.c (Vloads_in_progress): New variable.
5708 (record_load_unwind): New function.
5709 (Fload): Check for recursive loads.
5710 (syms_of_lread): Initialize Vloads_in_progress.
5711 (read_integer, read1): Avoid some compiler warnings.
5712
5713 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
5714 compiler warnings.
5715
974e1e5b
MB
57162000-09-11 Miles Bader <miles@gnu.org>
5717
5718 * editfns.c (Fbuffer_string): Doc fix.
5719
9824c4e3
GM
57202000-09-10 Gerd Moellmann <gerd@gnu.org>
5721
5722 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
5723
6a72fdd1
KR
57242000-09-09 Ken Raeburn <raeburn@gnu.org>
5725
5726 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
5727 whether to include other header files.
5728
28e6fb66
GM
57292000-09-09 Gerd Moellmann <gerd@gnu.org>
5730
52283633 5731 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 5732 by Fmemq as a boolean.
28e6fb66 5733
7f8b6551
SM
57342000-09-08 Stefan Monnier <monnier@cs.yale.edu>
5735
5736 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
5737
a8710abf
GM
57382000-09-08 Gerd Moellmann <gerd@gnu.org>
5739
d1a02881
GM
5740 * ralloc.c (mmap_fd): Remove initializer which can make it
5741 read-only in a dumped Emacs.
5742 (mmap_fd_1): New variable.
5743 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
5744 restore it from there.
5745 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
5746 unconditionally so that mmap_fd can be initialized there.
5747 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
5748 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
5749 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
5750
c454aac1
GM
5751 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
5752
5753 * xdisp.c (dump_glyph_row): Fix printf format string.
52283633 5754 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
c454aac1 5755
fc653ef2
GM
5756 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
5757
3015eec0
GM
5758 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
5759 inheritance.
5760
bfe0ee88
GM
5761 * xdisp.c (try_window_id): When trying to locate cursor in
5762 unchanged rows at the top, handle the case that we can't find it.
5763
a8710abf
GM
5764 * xterm.c (x_draw_glyphs): Handle case START and END are out
5765 of bounds more carefully.
5766
6b7d4ae4
DL
57672000-09-08 Dave Love <fx@gnu.org>
5768
423193c5
DL
5769 * s/sol2.h (REL_ALLOC_MMAP): Define.
5770 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
5771
5772 * ralloc.c: Don't include string.h (redundant).
5773 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
5774 [!MAP_ANON]: Include fcntl.h.
5775 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
5776 (r_alloc, r_re_alloc, r_alloc_free)
5777 (mmap_enlarge, mmap_set_vars): Use it.
5778 (r_alloc_init_fd): New function.
5779 (__morecore) [SYSTEM_MALLOC]: Don't declare.
5780 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
5781 malloc type.
5782
5783 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
5784 Remove vm-limit.o.
5785
6b7d4ae4
DL
5786 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
5787 change to __NetBSD__.
5788
44d31981
KH
57892000-09-08 Kenichi Handa <handa@etl.go.jp>
5790
5791 * search.c (compile_pattern): Check the multibyteness of cached
5792 string and PATTERN.
5793
aad40737
MB
57942000-09-08 Miles Bader <miles@gnu.org>
5795
5796 * xfaces.c (default_face_vector): Function removed.
5797 (Finternal_merge_in_global_face): Restore old global/local
5798 attribute override order. Use inline loop instead of calling
5799 default_face_vector.
5800
91a211b5
GM
58012000-09-07 Gerd Moellmann <gerd@gnu.org>
5802
5803 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
5804 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
5805 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
5806 where necessary, in case POINTER_TYPE is `void'.
5807
03419440
EZ
58082000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
5809
5810 * frame.c (make_terminal_frame): Initialize frame foreground and
5811 background colors to unspecified, for the initial instance of an
5812 MSDOS frame.
5813
f46f845b
GM
58142000-09-07 Gerd Moellmann <gerd@gnu.org>
5815
24f76fbf
GM
5816 * ralloc.c (mmap_find): Fix overlap computation.
5817 (mmap_enlarge): Compute nbytes before trying to find an
5818 overlapping region.
5819
f46f845b
GM
5820 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
5821 instead of `!='.
5822
5823 * lread.c (syms_of_lread): Change value of regexp
5824 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
5825
5826 * xmenu.c (xdialog_show): When looking up the selection in
5827 menu_items, take `quote' boundaries into account; this corresponds
5828 to a nil ITEM in x-popup-dialog.
5829
3c014385
KH
58302000-09-07 Kenichi Handa <handa@etl.go.jp>
5831
fd6f711b
KH
5832 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
5833 not 0x81.
5834 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
5835
3c014385 5836 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
5837 encoding, not decoding. Fix the handling of latin-jisx0201.
5838 Check for the charset katakana-jisx0201 too.
3c014385 5839 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 5840 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 5841
0da3ecef
GM
58422000-09-07 Gerd Moellmann <gerd@gnu.org>
5843
ab0ee409
GM
5844 * xfaces.c (Vparam_value_alist): New variable.
5845 (syms_of_xfaces): Initialize it.
5846 (Finternal_set_lisp_face_attribute): Avoid more consing.
5847
5848 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
5849 specially.
5850 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
5851 (Qbackground_mode): New variable.
5852 (syms_of_frame_1): Initialize Qbackground_mode.
5853
5854 * lisp.h (Qdisplay): Declare extern.
1091dd67 5855
0da3ecef
GM
5856 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
5857 change face on all frames, and change the default for new frames.
5858
b14654b9
DL
58592000-09-07 Dave Love <fx@gnu.org>
5860
5861 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
5862
d24fd56f
KH
58632000-09-07 Kenichi Handa <handa@etl.go.jp>
5864
794f3670
KH
5865 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
5866
0fddd0dc
KH
5867 * charset.c: Include composite.h
5868 (lisp_string_width): New function.
5869 (Fstring_width): Call lisp_string_width instead of strwidth.
5870
5871 * Makefile.in (charset.o): Depends on composite.h.
5872
d24fd56f
KH
5873 * process.c (read_process_output): Before inserting the decoded
5874 text in the buffer, adjust the multibyteness.
5875
fa0b693c
GM
58762000-09-06 Gerd Moellmann <gerd@gnu.org>
5877
52283633 5878 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
73b77ee5
GM
5879 buffer's text buffer is null, map new memory.
5880
0a58f946
GM
5881 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
5882 POINTER_TYPE and size_t.
5883 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
5884 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
5885 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
5886 [REL_ALLOC_MMAP]: New macros.
5887 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
5888 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
5889 [REL_ALLOC_MMAP]: New functions.
5890
5891 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
5892 before and after unexec.
5893
5894 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
5895 text buffers if necessary.
5896
5897 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
5898 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
5899 in prototypes.
5900
fa0b693c
GM
5901 * config.in (HAVE_MMAP): Add #undef.
5902
877055f6
GM
59032000-09-05 Gerd Moellmann <gerd@gnu.org>
5904
08ba3862
GM
5905 * frame.c (Qdisplay_type): New variable.
5906 (syms_of_frame_1): Initialize it.
5907 (Fframe_parameter): New function that avoids consing.
5908 (syms_of_frame): Defsubr it.
5909
66ffe51c
GM
5910 * buffer.c (Fother_buffer): Consider buffers as invisible when
5911 they are displayed in a window on an invisible frame.
5912
877055f6
GM
5913 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
5914 get-largest-window always return nil.
5915
bb970e67
GM
59162000-09-04 Gerd Moellmann <gerd@gnu.org>
5917
5918 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
5919 variable; recognize Emacs 19 elc files.
5920
7a3d0e0e
MB
59212000-09-04 Miles Bader <miles@gnu.org>
5922
5923 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
5924 before initially popping up the menu, so the menu doesn't flash
52283633 5925 when the face settings are significantly different from the defaults.
7a3d0e0e 5926
14473664
SM
59272000-09-04 Stefan Monnier <monnier@cs.yale.edu>
5928
5929 * regex.c (WIDE_CHAR_SUPPORT): New macro.
5930 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
5931 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
5932 (BIT_UNIBYTE): Remove.
5933 (re_match_2_internal): Delete corresponding code and streamline the
5934 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
5935 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
5936 (re_wctype_t): New type.
5937 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
5938 (regex_compile): Use them and fix handling of overly long char classes.
5939
c1174479
AI
59402000-09-03 Andrew Innes <andrewi@gnu.org>
5941
f8803e97
AI
5942 * makefile.w32-in: Change to DOS line endings.
5943
c1174479
AI
5944 * s/ms-w32.h (ORDINARY_LINK): New define.
5945
5946 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
5947 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
5948
5949 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
5950 (distclean): Delete them here instead.
5951
44ef7cf6
AI
5952 * w32proc.c (compare_env): Convert to uppercase for comparison,
5953 not lowercase, to match how the native Windows shell works.
5954
49b3bd82
JR
59552000-09-03 Jason Rumney <jasonr@gnu.org>
5956
5957 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
5958 CVS changes the line-ends when checking in/out on DOS/Windows.
5959
5960 * makefile.nt (emacs): Do not change directory to run temacs, as
5961 the load-path is set relative to current directory.
5962
a3d35a39
MB
59632000-09-03 Miles Bader <miles@gnu.org>
5964
5965 * xterm.c (x_alloc_lighter_color_for_widget): New function.
5966
d276b0cf
GM
59672000-09-02 Gerd Moellmann <gerd@gnu.org>
5968
715e84c9
GM
5969 * xdisp.c (redisplay_mode_lines): New function.
5970 (display_mode_lines): Return number of mode lines displayed.
5971 (echo_area_display): Use redisplay_mode_lines to draw garbaged
5972 mode lines. Don't temporarily bind redisplay-dont-pause to t.
5973
8892f40b
GM
5974 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
5975 string.h and strings.h.
5976 (index) [HAVE_INDEX]: Add prototype.
5977
d276b0cf
GM
5978 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
5979 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
5980
5981 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
5982 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
5983
38404229
GM
59842000-09-01 Gerd Moellmann <gerd@gnu.org>
5985
5986 * lread.c (read1): Accept `?' as symbol constituent, for
5987 compatiblity with XEmacs.
5988
c0f9ea08
SM
59892000-08-31 Stefan Monnier <monnier@cs.yale.edu>
5990
5991 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
5992 (struct re_pattern_buffer): Remove newline_anchor.
5993 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
5994 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
5995 (re_max_failures, fail_stack): Use size_t rather than unsigned.
5996 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
5997 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
5998 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
5999 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
6000 Get rid of references to newline_anchor.
6001 (regcomp): Allocate and precompute a fastmap.
6002
8c0f83fe
GM
60032000-08-31 Gerd Moellmann <gerd@gnu.org>
6004
6005 * lread.c (openp): GCPRO local variable `filename'.
6006
4bb91c68
SM
60072000-08-30 Stefan Monnier <monnier@cs.yale.edu>
6008
6009 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
6010
6011 * regex.c: Merge some changes from GNU libc. Add prototypes.
6012 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
6013 Use memcmp and memcpy instead of bcopy and bcmp.
6014 (init_syntax_once): Use ISALNUM.
6015 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
6016 (REG_UNSET_VALUE): Remove. Use NULL instead.
6017 (REG_UNSET, re_match_2_internal): Use NULL.
6018 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
6019 New macros.
6020 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
6021 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
6022 (regex_compile): In handle_interval, return an error rather than try to
6023 unfetch the interval if we can't find the closing brace.
6024 Obey the RE_NO_GNU_OPS syntax bit.
6025 (TOLOWER): New macro.
6026 (regcomp): Use it.
6027 (regexec): Allocate regs.start and regs.end as one block.
6028
5226a931
GM
60292000-08-30 Gerd Moellmann <gerd@gnu.org>
6030
868dd24b
GM
6031 * xdisp.c (echo_area_display): Check display_completed instead
6032 of calling detect_input_pending.
6033
6034 * dispnew.c (update_frame): Only set display_completed here; move
6035 the update_begin and update_end calls here from update_frame_1.
6036 (update_frame_1): Don't set display_completed here, don't call
6037 update_begin/update_end.
6038
5226a931
GM
6039 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
6040 instead of store_frame_param.
6041
2a8bd25f
GM
60422000-08-29 Gerd Moellmann <gerd@gnu.org>
6043
6044 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
6045 desired window matrix hasn't been displayed, use the current row
6046 instead. Make sure that only those frame rows are updated for
6047 which there exists a corresponding enabled desired row.
52283633 6048
ba3478d9
MB
60492000-08-29 Miles Bader <miles@gnu.org>
6050
6051 * xfaces.c (default_face_vector): New function.
6052 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
6053
87d0f685
GM
60542000-08-29 Gerd Moellmann <gerd@gnu.org>
6055
6056 * lread.c (openp): Prevent temporary string passed to
6057 Ffile_readable_p from being garbage collected.
6058
6fa86045
DL
60592000-08-28 Dave Love <fx@gnu.org>
6060
6061 * keymap.c (store_in_keymap): Add `static' to declaration.
6062
bb17930d
GM
60632000-08-28 Gerd Moellmann <gerd@gnu.org>
6064
6065 * emacs.c, callint.c, doc.c, editfns.c
6066 (toplevel) [HAVE_STRING_H]: Include string.h.
6067 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
6068 (index): Remove prototypes which might conflict with non-standard
6069 definitions of index/strchr.
6070
6071 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
6072 (rindex): Define only if !HAVE_RINDEX.
6073
6074 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
6075
6076 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
6077
87188200
MB
60782000-08-28 Miles Bader <miles@gnu.org>
6079
6080 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
6081 made inconsistent by a font-related attribute in FROM.
6082 (merge_face_inheritance): Add function comment.
6083
41a68aef
KH
60842000-08-28 Kenichi Handa <handa@etl.go.jp>
6085
6086 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
6087 the 4th arg (PREV_EVENT) Qt to suppress input method.
6088
f7c436c1
SM
60892000-08-27 Stefan Monnier <monnier@cs.yale.edu>
6090
0b32bf0e
SM
6091 * regex.c: Indent cpp directives and remove parens after `defined'.
6092 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
6093 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
6094 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
6095 (re_compile_pattern): Use size_t for length.
6096 (init_syntax_once): Move to a better place.
6097 * regex.h: Merge changes from GNU libc. Indent cpp directives.
6098 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
6099
f7c436c1
SM
6100 * syntax.c (back_comment): Detect cases where a comment-starter is
6101 actually inside another comment as in: /* a // b */ c // d \n.
6102 Make it clear that `comstart_pos' is unused for nested comments.
6103
6104 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
6105 (KEYMAPP): New macro.
6106 (Fkeymap_parent, Fset_keymap_parent): Use it.
6107 (fix_submap_inheritance): Mark it static.
6108 (define_as_prefix, describe_buffer_bindings, describe_command)
6109 (describe_translation, describe_map): Complete prototypes.
6110
6111 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
6112
6113 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
6114 to better match the key-lookup behavior.
6115
6288c62f
GM
61162000-08-27 Gerd Moellmann <gerd@gnu.org>
6117
6118 * xfaces.c (lface_fully_specified_p): Handle :inherit.
6119 (Finternal_set_lisp_face_attribute): Fix typo in error message.
6120
e931344e
EZ
61212000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
6122
6123 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
6124 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
6125 (xterm.o): Depend on coding.h
6126
d10dfeef
KH
61272000-08-26 Kenichi Handa <handa@etl.go.jp>
6128
6129 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
6130 the corresponding '#endif'.
6131
2d73e8d3
MB
61322000-08-26 Miles Bader <miles@gnu.org>
6133
6134 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
6135 * xfaces.c (QCinherit): New variable.
6136 (syms_of_xfaces): Initialize it.
6137 (LFACE_INHERIT): New macro.
6138 (Finternal_get_lisp_face_attribute)
52283633 6139 (merge_face_vector_with_property)
2d73e8d3
MB
6140 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
6141 (check_lface_attrs): Allow new types of face height. Check
6142 inherit attribute.
6143 (CYCLE_CHECK): New macro.
6144 (merge_face_inheritance): New function.
6145 (merge_face_vectors): Merge inherited faces too. Add F and
6146 CYCLE_CHECK arguments.
6147 (merge_face_vector_with_property, Finternal_merge_in_global_face)
6148 (lookup_named_face, lookup_derived_face, realize_named_face)
6149 (face_at_string_position, face_at_buffer_position): Supply
6150 new F and CYCLE_CHECK arguments to merge_face_vectors.
6151 (merge_face_heights): New function.
52283633 6152 (merge_face_vectors, merge_face_vector_with_property)
2d73e8d3
MB
6153 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
6154 handle relative face heights.
6155 (lface_same_font_attributes_p): Compare heights using EQ.
6156
6ce974d4
KH
61572000-08-26 Kenichi Handa <handa@etl.go.jp>
6158
6159 * charset.c (char_to_string): Check the character validity.
52283633 6160 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
6ce974d4 6161
dc1e502d
SM
61622000-08-25 Stefan Monnier <monnier@cs.yale.edu>
6163
6164 * regex.c (PUSH_FAILURE_COUNT): New macro.
6165 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
6166 Handle popping of a register's or a counter's data.
6167 (POP_FAILURE_POINT): Use the new name.
6168 (re_match_2_internal): Push counter data on the stack for succeed_n,
6169 jump_n and set_number_at and remove misleading dead code in succeed_n.
6170
bd9d0f3f
GM
61712000-08-25 Gerd Moellmann <gerd@gnu.org>
6172
6173 * xdisp.c (redisplay_internal): If considering all windows on all
6174 frames, update the display for each frame as soon as possible,
6175 instead of first building all desired matrices for all frames, and
6176 then updating them all.
6177 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
6178
aa5b8e15
GM
61792000-08-24 Gerd Moellmann <gerd@gnu.org>
6180
17494071
GM
6181 * bytecode.c (mark_byte_stack): Add a comment.
6182
52283633
SM
6183 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
6184 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
aa5b8e15
GM
6185 a graphical frame.
6186
c543db81
KH
61872000-08-24 Kenichi Handa <handa@etl.go.jp>
6188
d246d5f5
KH
6189 * minibuf.c (do_completion): Always use compare-string, not
6190 string-equal because the latter doesn't pay attention to
6191 multibyteness of strings.
6192
c543db81
KH
6193 * process.c (create_process): Don't setup raw-text coding here.
6194 (Fopen_network_stream): Don't set coding->src_multibyte and
6195 coding->dst_multibyte here.
6196 (read_process_output): For process filter, return unibyte string
6197 if default-enable-multibyte-characters is nil.
6198 (send_process): If OBJECT is multibyte text, be sure to encoded it
6199 by the specified coding system for the process. Otherwise, setup
6200 raw-text coding.
52283633 6201 (init_process): Don't initialize default-process-coding-system here.
c543db81 6202
9b47cfe0
EZ
62032000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
6204
6205 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
6206 <scroll-down-aggressively>: Likewise.
6207
f5a36960
KH
62082000-08-23 Kenichi Handa <handa@etl.go.jp>
6209
6210 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
6211 zero. Set coding->produced_char correctly.
6212
69a7ffa7
AI
62132000-08-22 Andrew Innes <andrewi@gnu.org>
6214
6215 * makefile.w32-in: New file.
6216
6217 * unexw32.c (unexec): Ignore old_name, and use the actual location
6218 of the current executable instead. Base new_name on this.
6219
6220 * w32proc.c (create_child): Remove reference to security
6221 descriptor, which isn't needed and doesn't compile with mingw32.
6222
6223 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6224 up dllimport attributes.
6225 (x_update_window_end): Update prototype.
6226
6227 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
6228 extern, which screws up dllimport attributes.
6229
6230 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6231 up dllimport attributes.
6232
6233 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
6234 screws up dllimport attributes.
6235
6236 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6237 up dllimport attributes.
6238 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
6239 screws up dllimport attributes.
6240
6241 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6242 up dllimport attributes.
6243
6244 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
6245 screws up dllimport attributes.
6246
6247 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
6248 screws up dllimport attributes.
6249
6250 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6251 up dllimport attributes.
6252
6253 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
6254 unnecessary extern, which screws up dllimport attributes.
6255 (main): Ditto.
6256
6257 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6258 up dllimport attributes.
6259
6260 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
6261 unnecessary extern, which screws up dllimport attributes.
6262
6263 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
6264 screws up dllimport attributes.
6265
6266 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6267 up dllimport attributes.
6268
6269 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
6270
52283633
SM
6271 * w32bdf.c (search_file_line):
6272 (set_bdf_font_info):
6273 (seek_char):
6274 (w32_get_bdf_glyph):
69a7ffa7
AI
6275 (w32_BDF_to_x_font): Fix compile warnings.
6276
52283633 6277 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
69a7ffa7
AI
6278
6279 * w32select.c: Include keyboard.h before frame.h.
6280
6281 * w32fns.c (max): Define macro.
6282 (JOHAB_CHARSET): Define if not known.
6283 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
6284 (Fx_show_tip): Synch with X version.
6285
6286 * w32xfns.c: Include keyboard.h before frame.h.
6287
6288 * w32fns.c: Include keyboard.h before frame.h.
6289
6290 * w32term.c: Include keyboard.h before frame.h.
6291
6292 * fontset.c: Include keyboard.h before frame.h.
6293
6294 * w32inevt.c: Include keyboard.h before frame.h.
6295 (MOUSE_MOVED): Define if not known.
6296
6297 * minibuf.c: Include keyboard.h before frame.h.
6298
6299 * keyboard.c: Include keyboard.h before frame.h.
6300
6301 * indent.c: Include keyboard.h before frame.h.
6302
6303 * dispnew.c: Include keyboard.h before frame.h.
6304
6305 * buffer.c: Include keyboard.h before frame.h.
6306
6307 * alloc.c: Include keyboard.h before frame.h.
6308
6309 * print.c: Include keyboard.h before frame.h.
6310
6311 * process.c: Include keyboard.h before frame.h.
6312
6313 * scroll.c: Include keyboard.h before frame.h.
6314
6315 * sysdep.c: Include keyboard.h before frame.h.
6316
6317 * term.c: Include keyboard.h before frame.h.
6318
6319 * window.c: Include keyboard.h before frame.h.
6320
6321 * xdisp.c: Include keyboard.h before frame.h.
6322 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
6323
6324 * frame.c: Include keyboard.h before frame.h.
6325
6326 * w32heap.h: Undefine min, max.
6327
6328 * w32gui.h: Undefine min, max.
6329
6330 * unexw32.c: Change PUCHAR to PCHAR.
6331 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
52283633
SM
6332 (relocate_offset):
6333 (get_section_info):
69a7ffa7
AI
6334 (copy_executable_and_dump_data): Remove unnecessary static defs.
6335 (copy_executable_and_dump_data): Fix compile warnings.
6336
6337 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
6338
6339 * w32console.c (min): Define macro.
6340 (clear_frame, write_glyphs): Fix compile warning.
6341
52283633 6342 * w32proc.c (compare_env):
69a7ffa7
AI
6343 (find_child_console): Fix compile warning.
6344
6345 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
6346 sys_errlist instead of _sys_errlist.
6347 (get_emacs_configuration_options): New function.
6348
6349 * s/ms-w32.h (sys_nerr): Provide default definition.
6350 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
6351 name with _ prepended.
6352 (NSIG): Define if not known.
6353 (get_emacs_configuration): Provide extern declaration.
6354 (get_emacs_configuration_options): Provide extern declaration.
6355 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
6356
6357 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
52283633 6358 (map_w32_filename):
69a7ffa7
AI
6359 (read_unc_volume): Fix compile warning.
6360
6361 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
6362 definitions from being used.
6363
6364 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
6365
52283633 6366 * w32.c (unc_volume_file_attributes):
69a7ffa7
AI
6367 (open_unc_volume): Make arg const.
6368
6369 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
6370 (read_input_waiting): Remove excess parameter.
6371
6372 * w32.c (init_environment): Call _access.
6373 (check_windows_init_file): Call _close.
6374 (init_user_info): Call _putenv.
6375 (init_environment): Call _putenv and _strdup.
6376 (init_ntproc): Reset volume info cache on startup.
6377
6378 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
6379 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
6380 cannot override the CRT malloc.
6381
6382 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
6383 (LINK_FLAGS): Append to original value of LINK_FLAGS.
6384
6385 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
6386 unless we are linking with a static CRT.
6387 (RVA_TO_PTR): Cast result to unsigned char*.
6388
6389 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
6390 (add_volume_info): Use xstrdup.
6391
25060080
SM
63922000-08-22 Stefan Monnier <monnier@cs.yale.edu>
6393
6394 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
6395 (do_completion, Fminibuffer_complete_word): Use it.
6396 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
6397 var so it can take non-boolean values.
6398
6917e6bb
GM
63992000-08-21 Gerd Moellmann <gerd@gnu.org>
6400
acb7cc89 6401 * editfns.c (find_field): Formatting changes.
52283633 6402 (toplevel): Some old-style function forward declarations
acb7cc89
GM
6403 changed to prototypes, some new protypes added, some functions
6404 made static.
6405
6406 * lisp.h (set_time_zone_rule): Add prototype.
6407 (use_dialog_box): External declaration.
6408
0bbfdc25
GM
6409 * keyboard.c (gen_help_event): Add parameter SIZE.
6410 (kbd_buffer_events_waiting): Slightly rewritten.
6411 (clear_event): New function.
6412 (kbd_buffer_get_event): Use it, and clear the input_events of
6413 HELP_EVENTs.
6414 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
6415 don't fill the newly created array with nils.
6416 (toplevel): Convert some old-style function forward declarations
6417 to prototypes.
6418
6419 * keyboard.h (gen_help_event): Change prototype.
6420
6421 * xterm.c (XTread_socket): Change calls to gen_help_event.
6422
6423 * w32term.c (w32_read_socket): Change calls to gen_help_event.
6424
6917e6bb
GM
6425 * eval.c (Fmacroexpand): Doc fix.
6426
e5cd3d11
JR
64272000-08-20 Jason Rumney <jasonr@gnu.org>
6428
6429 * w32term.h (x_display_info_for_display): Remove as this function
6430 does not exist on W32.
6431
6432 * w32term.c (help_echo_window): New variable.
6433 (syms_of_w32term): staticpro it.
6434 (note_mode_line_highlight): Set it.
6435 (XTextExtents16): Removed as there is no equivalent on W32.
6436 (x_compute_glyph_string_overhangs): Incomplete body removed, as
6437 the X way of doing this will not work for W32.
6438 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
6439 (x_draw_image_foreground): Avoid drawing outside of the clip area
6440 when image doesn't have a mask.
6441 (note_mouse_highlight): Process overlays in the right order of
6442 priority. Set help_echo_window.
6443 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
6444 because that's more visible for large images.
6445
6446 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
6447 name to single_keymap_panes.
6448 (w32_menu_show): Set wv->title when dealing with titles.
6449 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
6450
6e69ab8c
MB
64512000-08-21 Miles Bader <miles@gnu.org>
6452
6453 * minibuf.c (do_completion): Try again if we rewrite the input
6454 string, but no completion was done, so that any completion message
6455 will be correct.
6456
511bd4eb
GM
64572000-08-20 Gerd Moellmann <gerd@gnu.org>
6458
6459 * xfaces.c (lface_equal_p): Compare strings differently.
6460 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
6461 (realize_tty_face): Use them.
6462 (syms_of_xfaces): Initialize new variables.
6463 (map_tty_color): New function, extracted from realize_tty_face.
6464 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
6465 foreground or background color, store the new color name in the
6466 realized face; previous code trying to do this had no effect.
6467 (realize_tty_face): Use map_tty_color.
6468 (Fclear_face_cache): Set face_change_count and ensure thorough
6469 redisplay.
6470
1433385f
GM
64712000-08-19 Gerd Moellmann <gerd@gnu.org>
6472
511bd4eb
GM
6473 * undo.c (record_first_change, record_marker_adjustment): Don't
6474 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 6475
419ac0a2
KH
64762000-08-18 Kenichi Handa <handa@etl.go.jp>
6477
6478 * coding.c (decode_coding_string): Set members consumed,
6479 consumed_char, produced, produced_char of *coding correctly. If
6480 decode_coding doesn't consume any byte, don't try anymore.
6481 (encode_coding_string): Likewise.
6482
7eb9e30d
GM
64832000-08-18 Gerd Moellmann <gerd@gnu.org>
6484
511bd4eb
GM
6485 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
6486 conditional have void type, for Standard C compilers.
7eb9e30d
GM
6487
6488 * xdisp.c (redisplay_internal): Compare windows for equality with
6489 EQ, instead of applying XWINDOW to something that might not
6490 be a window.
52283633 6491
dd34a735
KH
64922000-08-18 Kenichi Handa <handa@etl.go.jp>
6493
6494 * fontset.c (Finternal_char_font): Search only the selected frame
6495 for a window of the current buffer.
6496
385ff9e3
GM
64972000-08-18 Gerd Moellmann <gerd@gnu.org>
6498
511bd4eb 6499 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
6500 Lisp_Objects.
6501
385ff9e3
GM
6502 * keyboard.c (kbd_buffer_get_event): Handle the case that the
6503 second half of a HELP_EVENT is found at the start of kbd_buffer.
6504
d6abb4c7
MB
65052000-08-18 Miles Bader <miles@gnu.org>
6506
4618074a
MB
6507 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
6508
d6abb4c7
MB
6509 * editfns.c (save_restriction_save): Rewrite to use markers.
6510 (save_restriction_restore): Rewrite to understand new form of data
6511 saved by save_restriction_save.
6512 (Fsave_restriction): Remove cautionary note in doc-string.
6513
a7b28523
GM
65142000-08-17 Gerd Moellmann <gerd@gnu.org>
6515
6516 * fileio.c (build_annotations): Add a comment explaining the
6517 return value of format-annotate-function. Replace a spurious call
6518 to Flength with a CONSP test. Call format-annotate-function with
6519 a fifth arg specifying how many times the function is been called
6520 in a row, to let it choose temporary buffers appropriately.
6521
03c9ed77
DL
65222000-08-17 Dave Love <fx@gnu.org>
6523
6524 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
6525 declare make_temp_name twice.
6526
52283633 6527 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
03c9ed77
DL
6528 (unreadpure): Give it an arg.
6529
6530 * unexalpha.c: Prototype fatal_unexec, mark_x,
6531 update_dynamic_symbols. Declare unexec as void.
6532
6533 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
6534 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
6535
6536 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
52283633 6537 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
03c9ed77
DL
6538
6539 * alloca.c: Use #error.
6540 [POINTER_TYPE]: Use it.
6541
6542 * eval.c (Fdefvar): Doc fix.
6543
6544 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
6545 INITIALIZE_INTERVAL.
6546
6547 * buffer.h: Avoid DECLARE_INTERVALS.
6548
6549 * config.in: Add size_t.
6550
aae41d97
EZ
65512000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
6552
6553 * w16select.c (set_clipboard_data): If there's not enough memory
6554 to put text into clipboard, return 1, as Fw16_set_clipboard_data
6555 expects. In case of other failures, return 3.
6556 (system_error_msg): New error message.
6557 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
6558 system_error_msg.
6559
65aa5e85
GM
65602000-08-16 Gerd Moellmann <gerd@gnu.org>
6561
6562 * term.c (write_glyphs): Also turn off inverse video after turning
6563 off other appearances in case TS_exit_attribute_mode is not equal
6564 to TS_end_standout_mode.
6565 (insert_glyphs): Turn inverse video on/off for each run of glyphs
6566 with the same face.
6567 (turn_off_face): Reset standout_mode only if
6568 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
6569 is equal to TS_end_standout_mode.
6570
ece23901
KH
65712000-08-16 Kenichi Handa <handa@etl.go.jp>
6572
9d7bcb2e
KH
6573 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
6574 sequence at the end of the source block.
6575
ece23901
KH
6576 * ccl.c (Fccl_program_p): Docstring modified.
6577 (Fccl_execute): Likewise.
6578 (Fccl_execute_on_string): Likewise.
6579
5e30eaa2
EZ
65802000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
6581
6582 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
6583
290602fd
KH
65842000-08-16 Kenichi Handa <handa@etl.go.jp>
6585
6586 The following changes are mainly to fix bugs of
6587 encode/decode-coding-string failing if encoding/decoding return
6588 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
6589 variable conversion_buffer.
6590
6591 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
6592 decrement dst_end to avoid buffer overflow in the later call of
6593 string_as_multibyte
6594
6595 * coding.h (conversion_buffer_size, conversion_buffer)
6596 (get_conversion_buffer): Extern deleted.
6597
6598 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
6599 (conversion_buffer, conversion_buffer_size): Variables deleted.
6600 (get_conversion_buffer): Function deleted.
6601 (struct conversion_buffer): New structure.
6602 (MAX_ALLOCA): New macro.
6603 (allocate_conversion_buffer): New macro.
6604 (extend_conversion_buffer, free_conversion_buffer): New functions.
6605 (ccl_coding_driver): Set coding->result.
6606 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
6607 this is the last block of source.
6608 (encode_coding): Likewise. Handle the source block as the last
6609 one only when the whole source text is consumed.
6610 (decode_coding_string): Handle the case that the output buffer is
6611 too small to decode the whole source text. Use
6612 allocate_conversion_buffer, extend_conversion_buffer and
6613 free_conversion_buffer, not get_conversion_buffer.
6614 (encode_coding_string): Likewise.
6615 (init_coding): Function deleted.
52283633 6616 (init_coding_once): Delete code to initialize conversion_buffer_size.
290602fd
KH
6617
6618 * emacs.c (main): Don't call init_coding.
6619
52283633 6620 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
290602fd
KH
6621
6622 * term.c (write_glyphs): Use a locally declared conversion_buffer.
6623 (insert_glyphs): Likewise.
6624
6625 * w32console.c (write_glyphs): Use a locally declared
6626 conversion_buffer.
6627
b9f80d41
EZ
66282000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
6629
6630 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
6631 member of display_info is NULL.
6632
32dc52f7
GM
66332000-08-15 Gerd Moellmann <gerd@gnu.org>
6634
52283633 6635 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
58ed0d3b 6636
32dc52f7 6637 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 6638 appearances with capability `me'.
32dc52f7
GM
6639 (write_glyphs): Switch on inverse video before each face change.
6640
4eb22d33
DL
66412000-08-14 Dave Love <fx@gnu.org>
6642
6643 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
6644 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
6645 (lisp_free): Declare and make static.
6646
6647 * window.c: Fix embedded comment.
6648 (syms_of_window): Fix doc string.
6649
90cbf47e
GM
66502000-08-14 Gerd Moellmann <gerd@gnu.org>
6651
52283633 6652 * keymap.c (push_key_description): If C without modifiers is < 32,
90cbf47e
GM
6653 make sure to print `C-' before `M-', like in the manual.
6654
440fc135
GM
66552000-08-11 Gerd Moellmann <gerd@gnu.org>
6656
6657 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
6658 since they aren't relocated anymore.
52283633 6659 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
440fc135
GM
6660
6661 * xdisp.c (try_cursor_movement): Fix handling of cursor in
52283633 6662 partially visible line which is smaller than the window's height.
440fc135 6663
6e264fad
KH
66642000-08-11 Kenichi Handa <handa@etl.go.jp>
6665
6666 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
52283633 6667 the multibyte form of eight-bit-control characters.
6e264fad
KH
6668 (Fccl_execute_on_string): Initialize ccl->multibyte.
6669
6670 * ccl.h (struct ccl_program): New member multibyte.
6671
6672 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
6673
c371f69a
KH
66742000-08-11 Kenichi Handa <handa@etl.go.jp>
6675
6676 * regex.c (regex_compile) <normal_char>: Pay attention to
6677 multibyteness.
6678 (analyse_first) <exactn>: Setup fastmap correctly for
6679 eight-bit-control characters.
6680
66812000-08-11 Kenichi Handa <handa@etl.go.jp>
6682
52283633 6683 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
c371f69a
KH
6684
6685 * keyboard.c (make_lispy_event): Handle the new event type
6686 multibyte_char_keystroke.
6687
6688 * xterm.c: Include coding.h.
6689 (XTread_socket): Work around a bug of XmbLookupString. If the
6690 input is from XIM, decode it according to the current locale. In
6691 that case, generate multibyte_char_keystroke events.
6692
b8ddbe71
KH
66932000-08-11 Kenichi Handa <handa@etl.go.jp>
6694
6695 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
6696 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
6697
47589c8c
GM
66982000-08-10 Gerd Moellmann <gerd@gnu.org>
6699
6700 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
6701 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
6702 (move_it_in_display_line_to): Record iterator's ascent and descent
6703 before producing glyphs, and restore them when we know the glyph
6704 doesn't fit on the line.
6705 (move_it_to): Restructured so that it's easier to debug. If
6706 moving to a vpos, and not moving to an x or character position,
6707 stop as soon as the specified vpos is reached; don't move further
6708 into that line because that might change the computed line height.
6709 (try_cursor_movement): New function, extracted from the cursor
6710 movement branch of redisplay_window. If ending on a partially
6711 visible line, don't try to scroll if the cursor line is taller
6712 than the window.
6713 (redisplay_window): Use try_cursor_movement.
6714
6715 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
6716 because that function doesn't cope with variable-height lines.
6717
6718 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
6719 box cursor because that's better visible for large images.
52283633 6720
c51bacd6
MB
67212000-08-10 Miles Bader <miles@gnu.org>
6722
6723 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
6724
bea56df7
GM
67252000-08-10 Gerd Moellmann <gerd@gnu.org>
6726
6727 * xdisp.c (Vmessages_buffer_name): New variable.
6728 (message_dolog): Use it.
6729 (syms_of_xdisp): Initialize it.
6730
99cd7364
EZ
67312000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
6732
52283633 6733 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
99cd7364
EZ
6734 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
6735 redundant now that keyboard.h is included.
6736
7d093d56
EZ
67372000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
6738
6739 * keyboard.c (kbd_buffer_events_waiting): New function.
6740
6741 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
6742
6743 * msdos.c: Include keyboard.h.
6744 (XMenuActivate): Empty no_event events from the event buffer. If
6745 no events are left after that, call clear_input_pending.
6746 (mouse_clear_clicks): New function, code moved from mouse_init.
6747 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
6748 mouse driver to ``forget'' any past clicks.
6749
6750 * Makefile.in (msdos.o): Depend on keyboard.h.
6751
41e757a6
GM
67522000-08-09 Gerd Moellmann <gerd@gnu.org>
6753
8e7bd231
GM
6754 * lisp.h (input_pending): External declaration.
6755
6756 * dispextern.h (Qredisplay_dont_pause): Declare extern.
52283633 6757
8e7bd231
GM
6758 * xdisp.c (echo_area_display): Display thoroughly if input is
6759 pending. Bind redisplay-dont-pause to t during the redisplay.
6760 in case input is pending.
6761
6762 * dispnew.c (Qredisplay_dont_pause): New variable.
6763 (syms_of_display): Initialize and staticpro it.
6764 (update_frame_1): Don't interrupt the display for pending input if
6765 redisplay_dont_pause is set.
52283633 6766
43028b7e
GM
6767 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
6768
41e757a6
GM
6769 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
6770
2f2174fa
KH
67712000-08-09 Miles Bader <miles@lsi.nec.co.jp>
6772
6773 * callproc.c (Fcall_process): Terminate the unwind-protect around
6774 the post-read-conversion of coding system.
6775
0a6fd67e
MB
6776 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
6777 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
6778 * buffer.h (overlays_at): Update prototype.
6779 * xdisp.c (next_overlay_change): Update call to overlays_at.
6780 * xfaces.c (face_at_buffer_position): Likewise.
6781 * textprop.c (Fget_char_property): Likewise.
6782 * xterm.c (note_mouse_highlight): Likewise.
6783
0c80756e
MB
6784 * minibuf.c (do_completion): Don't consider a simple change of
6785 case as `completion'.
6786
975f250a
KR
67872000-08-08 Ken Raeburn <raeburn@gnu.org>
6788
52283633 6789 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
b347b3fd
KR
6790 * undo.c (record_delete): Make sure last_point_position_buffer is
6791 a buffer before comparing pointers.
6792
6793 * coding.h (decode_coding_string): Declare.
6794
6795 * intervals.h (Fprevious_single_char_property_change): Declare.
6796
6797 * textprop.c (Fprevious_single_char_property_change): Don't do
6798 arithmetic directly on lisp objects.
6799
52283633 6800 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
b347b3fd
KR
6801
6802 * keyboard.h (menu_item_eval_property): Declare.
6803
6804 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
6805 reuse as buffer name, instead of recreating (and discarding) every
6806 time a message is logged.
6807 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
6808 (current_message_1, truncate_message_1, set_message_1)
6809 (display_echo_area_1, resize_mini_window_1): Signatures changed.
6810 (current_message, truncate_echo_area, display_echo_area)
6811 (resize_echo_area_axactly): Changed calls.
b347b3fd 6812
975f250a 6813 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 6814 Lisp object.
975f250a 6815 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 6816 must be an integer, not a Lisp object.
975f250a 6817
46dc9912
KH
68182000-08-08 Kenichi Handa <handa@etl.go.jp>
6819
6820 * charset.c (Fchar_width): Doc fix.
6821
9f6d1a6c
GM
68222000-08-08 Gerd Moellmann <gerd@gnu.org>
6823
6824 * charset.c (Fstring_width): Doc fix.
6825
ff3d9573
GM
68262000-08-07 Gerd Moellmann <gerd@gnu.org>
6827
41e757a6 6828 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
6829 line, clear ascent and descent members of the iterator structure;
6830 the height of the continued line does not affect the height of the
6831 continuation line.
6832 (make_cursor_line_fully_visible): Do nothing if cursor is on a
6833 line taller than the window.
6834 (redisplay_window) <forced window start>: Handle case that the
6835 middle of the window is not found in any row.
6836 (dump_glyph_row): Show more information.
6837 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
6838 first text line in a glyph matrix.
6839
6840 * xterm.c (x_draw_image_foreground): Avoid drawing outside
6841 of the clip area when image doesn't have a mask.
6842
70fc58b3
GM
6843 * fns.c (sweep_weak_table): Fix survival conditions for
6844 key-or-value and key-and-value weakness.
6845
6846 * .gdbinit (xhashtable): New command.
6847
ac0e96ee
GM
6848 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
6849 tables out of the list of all weak hash tables.
6850
ff3d9573
GM
6851 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
6852 a new buffer is created, make sure echo_area_buffer[] references
6853 the new buffer.
6854
e0d8827b
EZ
68552000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
6856
6857 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
6858 the doc string.
6859
c6f35378
KH
68602000-08-07 Kenichi Handa <handa@etl.go.jp>
6861
6862 * syntax.c (skip_chars): Fix previous change. Make the handling
6863 of unibyte string consistent with that of regex search.
6864
1fd4c450
GM
68652000-08-05 Gerd Moellmann <gerd@gnu.org>
6866
e49aa397
GM
6867 * xmenu.c (popup_get_selection): Use xfree instead of free.
6868
6869 * fileio.c (Finsert_file_contents): Use xfree instead of free.
6870
6871 * editfns.c (Ftranspose_regions): Use xfree instead of free.
6872
6873 * callproc.c (child_setup): Use xfree instead of free.
6874
6875 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
6876 instead of malloc.
6877 (run_mac_command, closedir): Use `xfree' instead of `free'.
6878
6879 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
6880
6881 * eval.c (error): Use xfree instead of free.
6882
1fd4c450
GM
6883 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
6884
6885 * fns.c: Replace `illegal' with `invalid'.
e49aa397 6886 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 6887
82d497fc
KH
68882000-08-05 Kenichi Handa <handa@etl.go.jp>
6889
6890 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
6891 conversion.
6892
59f953a2
NF
68932000-08-04 Noah Friedman <friedman@splode.com>
6894
6895 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
6896 docstring.
6897
688351f2
GM
68982000-08-04 Gerd Moellmann <gerd@gnu.org>
6899
6900 * syntax.c (skip_chars): Fix typo in error message.
6901
2dad51cc
AS
69022000-08-04 Andreas Schwab <schwab@suse.de>
6903
6904 * m/ia64.h: Moved from s/ia64.h.
6905
99bb2c60
KH
69062000-08-04 Kenichi Handa <handa@etl.go.jp>
6907
082a1df2
KH
6908 * process.c (read_process_output): Big simplification. Handle
6909 composition and post-read-conversion of coding system correctly.
6910 (send_process): Handle composition correctly.
6911
6912 * callproc.c (Fcall_process): Handle post-read-conversion of
6913 coding system if any.
6914
99bb2c60
KH
6915 * coding.c (decode_coding_iso2022): More strict check for handling
6916 single shifting.
082a1df2
KH
6917 (coding_restore_composition): Pay attention to the case that
6918 cmp_data is not set properly (because of invalid code in the
6919 source text).
6920 (run_pre_post_conversion_on_str): Include text properties in the
6921 resulting string.
6922 (decode_coding_string): Set members of coding correctly.
99bb2c60 6923
f4988be7
GM
69242000-08-03 Gerd Moellmann <gerd@gnu.org>
6925
6926 * s/ia64.h: New file.
6927
6928 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
6929 Use NULL instead of 0 at the end of variable argument list of
6930 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
6931 sizeof (int) < sizeof (void *).
6932
6933 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
6934 of variable argument lists of XtVaGetValues and XtVaSetValues.
6935
6936 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
6937 variable argument lists of XtVaGetValues and XtVaSetValues.
6938
ead53494
GM
69392000-08-02 Gerd Moellmann <gerd@gnu.org>
6940
6941 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
6942 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
6943
6944 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
6945 prototype.
6946
6947 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
6948 in call to Fsingle_key_description.
6949
6950 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
6951 Callers changed.
6952
69532000-08-02 Colin Walters <walters@cis.ohio-state.edu>
6954
6955 * window.c (display_buffer_reuse_frames): New variable.
6956 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
6957 frames displaying BUFFER.
52283633 6958 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
ead53494 6959
10b0f752
MB
69602000-08-01 Miles Bader <miles@gnu.org>
6961
6962 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
6963 when to constrain NEW_POS (they were pretty screwed up before).
6964
16425c4a
EZ
69652000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
6966
6967 * msdos.c (run_msdos_command): Save and restore the master
6968 environment, for the case that child_setup signals an error.
6969 When mirroring slashes in DOS shell commands, don't fail when
6970 argv[2] has embedded blanks.
da288c14
EZ
6971 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
6972 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
6973 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
6974
6975 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
6976 using alloca; free it after run_msdos_command returns.
6977
27f73852
DL
69782000-07-27 Dave Love <fx@gnu.org>
6979
52283633
SM
6980 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
6981 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
27f73852
DL
6982
6983 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
6984
c0261b5e
EZ
69852000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
6986
6987 * editfns.c (lisp_time_argument): Fix last change.
6988
b548072f
GM
69892000-07-27 Gerd Moellmann <gerd@gnu.org>
6990
3ab82477
GM
6991 * fns.c (Fdelete): Make it work on vectors and strings in addition
6992 to lists.
6993
b548072f
GM
6994 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
6995 (syms_of_fns): Initialize new variables.
52283633 6996 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
b548072f
GM
6997 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
6998 weakness, with t meaning the same as `key-and-value'.
6999
91ae8751
KH
70002000-07-27 Kenichi Handa <handa@etl.go.jp>
7001
7002 * coding.h (struct coding_system): Member safe_charset deleted.
7003
7004 * coding.c (Qsafe_charsets): This variable deleted.
52283633
SM
7005 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
7006 New variables.
91ae8751
KH
7007 (coding_safe_chars): New function.
7008 (CODING_SAFE_CHAR_P): New macro.
7009 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
52283633 7010 checking safe_charsets member of the coding system. Caller changed.
91ae8751
KH
7011 (detect_coding_iso2022): New local variable safe_chars.
7012 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
7013 safe_charsets member of the coding system.
7014 (decode_coding_iso2022): New local variable safe_chars.
7015 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
7016 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
7017 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
7018 (ENCODE_UNSAFE_CHARACTER): New macro.
7019 (encode_coding_iso2022): New local variable safe_chars. Check
7020 unsafe chars.
7021 (setup_coding_system): Delete the code to initialize
7022 coding->safe_charses
7023 (intersection, find_safe_codings): New functions.
7024 (Ffind_coding_systems_region_internal): New function.
7025 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
7026 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
7027 variable and initialize it.
7028
7029 * fns.c (char_table_ref_and_index): New function.
7030
7031 * lisp.h (char_table_ref_and_index): Add prototype.
7032
34a7a267
SS
70332000-07-26 Sam Steingold <sds@gnu.org>
7034
7035 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 7036 (Ffloat_time): New built-in Lisp function.
34a7a267 7037
a95cb10a
GM
70382000-07-26 Gerd Moellmann <gerd@gnu.org>
7039
3353ef5a
GM
7040 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
7041 for the character code.
7042
7043 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
7044 GNU/Linux.
7045
a95cb10a
GM
7046 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
7047 if called for a popup menu.
7048 (xmenu_show): Store help string in widget values.
7049
b4a12321
DL
70502000-07-26 Dave Love <fx@gnu.org>
7051
7052 * syswait.h: Move some definitions.
7053 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
7054 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
7055 perspicuous definitions.
7056 (WTERMSIG): Fix bit pattern used.
7057
13f5ad37
KH
70582000-07-26 Kenichi Handa <handa@etl.go.jp>
7059
7060 * print.c (print_object): If vector printing is truncated, print
7061 "..." to indicate it as well as the case of list printing.
7062
070fe99c
GM
70632000-07-25 Gerd Moellmann <gerd@gnu.org>
7064
969065c3
GM
7065 * xdisp.c (next_element_from_display_vector): Improve comments.
7066
7067 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
7068 for the character code, and the rest for the face id as in 20.x.
7069 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
7070
7071 * window.c (window_display_table): Cleaned up.
7072
070fe99c
GM
7073 * syntax.c (Fforward_word): Add last arg nil in call of
7074 Fconstrain_to_field.
7075
bad77ef7
EZ
70762000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
7077
969065c3 7078 * fileio.c (Frename_file) [DOS_NT]: If the file names are
52283633
SM
7079 identical but for the letter-case, don't call
7080 barf_or_query_if_file_exists.
bad77ef7 7081
c28da489
MB
70822000-07-25 Miles Bader <miles@gnu.org>
7083
7084 * editfns.c (find_field): Honor special `boundary' fields.
7085 (Qboundary): New variables.
7086 (syms_of_editfns): Initialize Qboundary.
7087 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
7088 Use scan_buffer instead of find_before_next_newline, because it
7089 allows us to detect the boundary case where there's a newline at
7090 the search limit.
7091 * lisp.h (Fconstrain_to_field): Update external declaration.
7092
e3c31fd5
GM
70932000-07-24 Gerd Moellmann <gerd@gnu.org>
7094
7095 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
7096 if that is nil.
c28da489 7097
c66c29a2
DL
70982000-07-24 Dave Love <fx@gnu.org>
7099
7100 * s/sunos4-0.h, s/sol2.h:
7101 (LIBS_TERMCAP): Move from m/sparc.h.
7102
7103 * m/sparc.h (TERMINFO): Moved to system files (probably only
7104 relevant for sunos4 judging by its vintage).
7105 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
7106 __arch64__.
7107
fbe0a958
EZ
71082000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
7109
7110 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
7111 name to single_keymap_panes.
7112
7d88e5c9
AS
71132000-07-24 Andreas Schwab <schwab@suse.de>
7114
7115 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
7116
e024b101
GM
71172000-07-24 Gerd Moellmann <gerd@gnu.org>
7118
7119 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
7120 parameters instead of using int parameters. Expect FN to accept
7121 EMACS_INT parameters.
7122 (display_echo_area, resize_echo_area_axactly, current_message)
7123 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
7124 with new argument list.
7125 (resize_mini_window_1): New callback function.
7126 (current_message_1, truncate_message_1, set_message_1): Change
52283633 7127 parameter lists to the new format expected by with_echo_area_buffer.
e024b101 7128
25c1a9ce
KH
71292000-07-24 Kenichi Handa <handa@etl.go.jp>
7130
7131 * fontset.c (fontset_ref): Remove INLINE declaration.
7132 (fontset_ref_via_base): Likewise.
7133 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
7134 to downcase.
7135
7f987ac0
EZ
71362000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
7137
7138 * msdos.c (IT_note_mouse_highlight): Process overlays in the
7139 correct order of priority. If help echo was found in an overlay,
7140 use that overlay as the object in which the help echo was found.
7141
e2db3069
MB
71422000-07-22 Miles Bader <miles@gnu.org>
7143
7144 * textprop.c (Fprevious_single_char_property_change): The initial
7145 property value should be from the position preceding POSITION, not
7146 following it.
7147
5e3203e4
EZ
71482000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
7149
7150 * coding.c (syms_of_coding): Doc fix for
7151 inhibit-iso-escape-detection.
7152
62145073
GM
71532000-07-21 Gerd Moellmann <gerd@gnu.org>
7154
c20aeb83
GM
7155 * xterm.c (note_mouse_highlight): Process overlays in the right
7156 order of priority.
34a7a267 7157
743934db
GM
7158 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
7159
7160 * xterm.c (note_mouse_highlight): If help-echo was found in an
52283633 7161 overlay, use that overlay as the object in which the help was found.
743934db 7162
d1dc7e43 7163 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 7164
62145073
GM
7165 * window.c (foreach_window): Instead of a fake variable argument
7166 list, take one USER_DATA argument.
7167 (foreach_window_1): Likewise, and call callback functions with two
7168 args, the window and USER_DATA.
7169 (struct check_window_data): New struct.
7170 (check_window_containing): Use it.
7171 (window_from_coordinates): Set up a struct check_window_data for
7172 foreach_window.
7173 (add_window_to_list, freeze_window_start): Change parameters
7174 according to new calling convention.
7175
7176 * window.h (foreach_window): Change prototype.
7177
7178 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
7179
71802000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
7181
7182 * xmenu.c (menu_help_callback): Call show_help_echo with
7183 additional arguments OBJECT and POS.
7184
11270583
KH
71852000-07-21 Kenichi Handa <handa@etl.go.jp>
7186
07b14857
KH
7187 * data.c (Faset): Allow storing any multibyte character in a
7188 string. Convert unibyte string to multibyte if necessary.
7189
11270583
KH
7190 * xfns.c (x_encode_text): New function.
7191 (x_set_name): Use x_encode_text.
7192 (x_set_title): Likewise.
7193
7194 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
7195
7196 * xterm.h (x_encode_text): Add prototype.
7197
bc75b4fd
DL
71982000-07-20 Dave Love <fx@gnu.org>
7199
7200 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
7201 xfree, not free.
7202
48c14970
EZ
72032000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
7204
7205 * msdos.c (help_echo_window): New variable.
7206 (syms_of_msdos): Initialize and staticpro it.
7207 (IT_note_mode_line_highlight): Set help_echo_window.
7208 (IT_note_mouse_highlight): Ditto.
7209 (dos_rawgetc): Store help_echo_window in the second event produced
7210 for HELP_EVENTs.
7211
7212 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
7213 Record the object that generated the help echo and the position of
7214 that object in help_echo_object and help_echo_pos. Record that
7215 some glyphs in a row are displayed in mouse-face.
7216 (IT_update_begin): Don't clear mouse highlight unless one of the
7217 enabled glyph rows is marked as being displayed in mouse-face.
7218 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
7219 and position recorded in help_echo_object and help_echo_pos to the
7220 event queue.
7221 (IT_menu_display): Accept a new argument PN: the pane number of
7222 the current menu pane. Record the pane number and the item
7223 number of the item which has associated help string.
7224 (XMenuActivate): Update the prototype for help_callback in
7225 function declaration. Call IT_menu_display with the current menu
7226 pane number as an additional argument. Call help_callback with
7227 two additional arguments: the pane number and the item number of
7228 the menu item associated with the help text.
7229 (help_echo_object, help_echo_pos): New variables.
7230 (syms_of_msdos): Initialize them and staticpro help_echo_object.
7231
7232 * msdos.h (XMenuActivate): Update prototype.
7233
4279296d
GM
72342000-07-19 Gerd Moellmann <gerd@gnu.org>
7235
47db06aa
GM
7236 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
7237 Add some more prototypes.
7238
7239 * xterm.c, xterm.h: Add some more prototypes.
7240
7241 * lisp.h (Fnext_single_char_property_change): Add prototype.
7242
7243 * dispnew.c (direct_output_for_insert): Remove confusing
7244 outer local variable mouse_face_overwritten_p.
7245 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
7246
4279296d
GM
7247 * alloc.c (allocate_string_data): Don't copy old string contents.
7248
670acd62
KH
72492000-07-19 Kenichi Handa <handa@etl.go.jp>
7250
7251 * coding.c (code_convert_region): Delete text properties before
7252 shrinking the conversion region.
7253
7cea38bc
GM
72542000-07-18 Gerd Moellmann <gerd@gnu.org>
7255
dc1cac59
GM
7256 * dispnew.c (update_text_area): Write the whole row if it
7257 has mouse-face in it.
7258
85a8aca9
GM
7259 * xfaces.c (face-alternative-font-family-alist): Remove
7260 DEFVAR_LISP; staticpro instead.
7261
34a7a267 7262 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
7263 new arguments.
7264
7265 * keyboard.c (show_help_echo): Add parameter WINDOW.
7266 (read_char): Call show_help_echo with window extracted from Lisp
7267 help event.
7268 (gen_help_event): Add parameter WINDOW.
7269
7270 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
7271
7272 * xterm.c (help_echo_window): New variable.
52283633 7273 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
7cea38bc
GM
7274 (XTread_socket): Pass help_echo_window to gen_help_event.
7275 (syms_of_xterm): Initialize and staticpro help_echo_window.
7276
f8276b77
DL
72772000-07-18 Dave Love <fx@gnu.org>
7278
52283633 7279 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
f8276b77 7280
088831a6
GM
72812000-07-18 Gerd Moellmann <gerd@gnu.org>
7282
3d6cd763
GM
7283 * alloc.c (allocate_string_data): If string had already data
7284 assigned, copy old contents to new string data.
7285
7286 * coding.c (syms_of_coding): Fix typo in spelling of variable
7287 `inhibit-iso-escape-detection'.
7288
088831a6
GM
7289 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
7290
7291 * Makefile.in: Add dependencies on dispextern.h.
7292 (alloca.o): Don't define malloc and define EMACS_FREE instead of
7293 `free'; both can conflict with system header files.
7294
bc8a8d55
KH
72952000-07-18 Kenichi Handa <handa@etl.go.jp>
7296
7297 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
7298 undefined.
7299
069f5950
DL
73002000-07-18 Dave Love <fx@gnu.org>
7301
7302 * window.c (Fwindow_list): Declare arg `window'.
7303
aa96c820
KH
73042000-07-18 Kenichi Handa <handa@etl.go.jp>
7305
7306 * coding.c (setup_coding_system): Don't override the explicitly
7307 specified designations.
7308
06be8d32
MB
73092000-07-15 Miles Bader <miles@gnu.org>
7310
7311 * editfns.c (char_property_eq, char_property_stickiness): Renamed
7312 from `text_property_eq' and `text_property_stickiness', respectively.
7313 (find_field, Fconstrain_to_field, char_property_eq)
7314 (char_property_stickiness): Changed to call char-property functions
7315 instead of text-property-only ones.
7316
7317 * textprop.c (Fnext_single_char_property_change): Made a subr (was
7318 `next_single_char_property_change'). Do more error checking, and
7319 cleanup limit behavior.
7320 (Fprevious_single_char_property_change): New function.
7321 (syms_of_textprop): Initialize new subrs.
7322
7323 * xdisp.c (display_prop_end, invisible_text_between_p):
7324 Call Fnext_single_char_property_change instead of
7325 next_single_char_property_change.
7326
3fddcdc3
JR
73272000-07-15 Jason Rumney <jasonr@gnu.org>
7328
7329 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
7330 after menu is finished with.
7331 (add_menu_item): Only consider wv->title as a menu title.
7332 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
7333
7334 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
7335 null title.
7336 (FONT_REGEXP): Remove unused macro, and its sub-components.
7337 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
7338
7339 * w32term.c (help_echo_object, help_echo_pos): New variables.
7340 (note_mode_line_highlight): Store additional information about the
7341 help-echo in help_echo_object and help_echo_pos. Check both
7342 `local-map' and `keymap' properties for changing the cursor
7343 (note_mouse_highlight): Store additional information about the
7344 help-echo in help_echo_object and help_echo_pos.
7345 (note_tool_bar_highlight): Set help_echo_object to nil and
7346 help_echo_pos to -1.
7347 (w32_read_socket): Use gen_help_event instead of filling
7348 input_events manually.
7349 (syms_of_w32term): Staticpro help_echo_object.
7350 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
52283633 7351 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
3fddcdc3
JR
7352 (x_clear_mouse_face): New function.
7353 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
7354 (x_update_window_begin): No need to turn off the mouse
7355 highlight here.
7356 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 7357 depending on whether they contain glyphs highlighted in mouse-face.
3fddcdc3
JR
7358 (x_fill_stretch_glyph_string): Consume runs of stretch
7359 glyphs instead of a single one.
7360 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
7361 with new argument list.
7362 (x_set_glyph_string_gc): Make sure the face's GC is valid.
7363 (x_append_glyph, x_append_composite_glyph)
7364 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
7365 changes in struct glyph starting 1999-12-27. See comments for
7366 xterm.c on 2000-07-05.
7367
178c5d9c
SS
73682000-07-14 Sam Steingold <sds@gnu.org>
7369
7370 * xfaces.c (realize_x_face): Fix the last patch:
7371 check `default_face' before dereferencing.
7372
6fe533f6
DL
73732000-07-14 Dave Love <fx@gnu.org>
7374
069f5950 7375 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 7376
dd7b81cf
KH
73772000-07-14 Kenichi Handa <handa@etl.go.jp>
7378
0693904a 7379 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 7380 default_face's fontset, not using the default fontset.
0693904a 7381
dd7b81cf
KH
7382 * coding.c (inhibit_iso_escape_detection): New variable.
7383 (syms_of_coding): Make it a Lisp variable.
7384 (detect_coding_iso2022): If inhibit_iso_escape_detection is
7385 nonzero, ignore ISO2022's escape sequence.
7386
d5aa31d8
GM
73872000-07-14 Gerd Moellmann <gerd@gnu.org>
7388
e5acf0ca
GM
7389 * alloca.c (malloc) [emacs]: Define as xmalloc.
7390
bd23a692
GM
7391 * xfns.c (Fx_show_tip): If frame parameters contain a position,
7392 use that instead of the mouse position. Add parameters DX and DY.
7393
7394 * dispextern.h (Fx_show_tip): Adjust number of parameters
7395 in prototype.
7396
9662da0b
GM
7397 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
7398 if HELP is a function, call it with OBJECT and POS as parameters
7399 to get the help to display.
7400 (gen_help_event, kbd_buffer_store_help_event): New functions.
7401 (kbd_buffer_get_event): Construct the Lisp help-event differently.
7402 (read_char): Call show_help_echo with new parameters.
7403
178c5d9c 7404 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
7405 Add prototypes.
7406
7407 * xterm.c (help_echo_object, help_echo_pos): New variables.
7408 (note_mode_line_highlight): Store additional information about the
7409 help-echo in help_echo_object and help_echo_pos. Check both
7410 `local-map' and `keymap' properties for changing the cursor
7411 (note_mouse_highlight): Store additional information about the
7412 help-echo in help_echo_object and help_echo_pos.
7413 (note_tool_bar_highlight): Set help_echo_object to nil and
7414 help_echo_pos to -1.
7415 (XTread_socket): Use gen_help_event instead of filling
7416 input_events manually.
7417 (syms_of_xterm): Staticpro help_echo_object.
7418
7419 * xmenu.c (menu_highlight_callback): Use
7420 kbd_buffer_store_help_event instead of setting up and input_event
7421 structure manually.
7422
7423 * xdisp.c (eval_form): GCPRO argument sexpr.
7424 (call_function): New function.
7425 (handle_single_display_prop): Use call_function and FUNCTIONP
7426 instead of checking whether if font_height is a symbol and
7427 using eval_form.
7428
7429 * eval.c (internal_condition_case_2): New function.
7430
7431 * lisp.h (FUNCTIONP): New macro.
7432 (internal_condition_case_2, call_function): Add prototypes.
7433
d5aa31d8
GM
7434 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
7435 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
7436 Always set `arg' member of input_events.
7437 (construct_menu_click): Unused function removed.
7438
7439 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
7440
7441 * w32term.c (construct_mouse_click, construct_mouse_wheel)
7442 (construct_drag_n_drop, x_scroll_bar_handle_click)
7443 (w32_read_socket): Always set `arg' member of input_events.
7444
7445 * keyboard.c (show_help_echo): Use eval_form. Add comment.
7446
7447 * lisp.h (eval_form): Add prototype.
7448
7449 * xdisp.c (eval_form): Make it externally visible.
7450
0f1a9b23
GM
74512000-07-13 Gerd Moellmann <gerd@gnu.org>
7452
7453 * xterm.c (x_handle_tool_bar_click): Store the frame in the
7454 frame_or_window slot of TOOL_BAR_EVENT input events instead of
7455 consing. For prefix events, store the frame in the `arg' slot of
7456 the event, otherwise store the key there.
7457 (XTread_socket): Instead of consing, use the frame_or_window slot
52283633 7458 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
0f1a9b23
GM
7459
7460 * xmenu.c (menu_highlight_callback): Store help string in the
7461 `arg' member of the input event; don't cons.
7462 (menubar_selection_callback): Use the `arg' slot of input events
7463 to queue additional information, instead of consing.
7464
7465 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
7466
7467 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
7468 TOOL_BAR_EVENTs.
7469 (w32_read_socket): Adapt to changes in HELP_EVENTs.
7470
7471 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
7472 input events to queue additional information, instead of consing.
7473
7474 * keyboard.c (kbd_buffer_gcpro): Renamed from
7475 kbd_buffer_frame_or_window. Now used for all Lisp objects
7476 referenced from the input queue.
7477 (kbd_buffer_store_event): Always use structure assignment for
7478 copying input events. Record all Lisp objects referenced from
7479 events in kbd_buffer_gcpro.
7480 (kbd_buffer_get_event): Construct Lisp `help-echo' events
7481 differently from input events. Test for prefix menu_bar_events
7482 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
7483 event in kbd_buffer_gcpro to nil.
7484 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
7485 frame_or_window is equal to its arg member as prefix events.
7486 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
7487 used by an input event to nil.
7488 (init_keyboard): Use two times the size of the input queue
7489 for kbd_buffer_gcpro.
7490 (syms_of_keyboard): Likewise.
7491
52283633
SM
7492 * emacs.c (handle_USR2_signal, handle_USR1_signal):
7493 Use USER_SIGNAL_EVENT.
0f1a9b23
GM
7494
7495 * termhooks.h (struct input_event): Add member `arg'.
7496 (MENU_BAR_EVENT): Renamed from menu_bar_event.
7497 (USER_SIGNAL_EVENT): Renamed from user_signal.
7498
7499 * xfaces.c (ASET): Remove definition.
7500
7501 * lisp.h (AREF, ASET, ASIZE): New macros.
7502
7503 * fontset.c (AREF, ASIZE): Remove definitions.
7504
7505 * fns.c (AREF): Remove definition.
178c5d9c 7506
0f1a9b23
GM
7507 * composite.c (AREF): Remove definition.
7508
712eaef2
GM
75092000-07-12 Gerd Moellmann <gerd@gnu.org>
7510
d8ee7803
GM
7511 * dispnew.c (redraw_overlapped_rows): Add missing local.
7512 (scrolling_window): Remove debug code.
7513
712eaef2
GM
7514 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
7515 Before scrolling, turn off a mouse-highlight in the window
7516 being scrolled.
7517
7518 * xterm.c (x_update_window_end): Add parameter
7519 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
7520 redisplay in XTframe_up_to_date.
7521 (x_clear_mouse_face): New function.
7522 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
7523
7524 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
7525 current glyph row.
7526 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
7527 it when any row is written to that contains glyphs highlighted in
7528 mouse-face.
7529 (update_window): Call the window update end hook with new
7530 parameter MOUSE_FACE_OVERWRITTEN_P.
7531 (direct_output_for_insert): Give up if row contains mouse-face.
7532
7533 * dispextern.h (struct redisplay_interface): Add parameter
7534 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
7535 (clear_mouse_face): New function pointer member.
7536
02010917
SM
75372000-07-11 Stefan Monnier <monnier@cs.yale.edu>
7538
7539 * syntax.c (back_comment): Use one switch rather than a few `if's.
7540 Obey open_paren_in_column_0_is_defun_start.
7541 When reverting to the `slow' method, try to nicely handle the case
7542 of nested comments by checking that the comment-starter we found
7543 does indeed match the comment-ender.
7544 (scan_sexps_forward, scan_sexps_forward):
7545 Ignore excessive opening parenthesis rather than throwing an error.
7546
d76c03ea
GM
75472000-07-11 Gerd Moellmann <gerd@gnu.org>
7548
7549 * doc.c (Fsubstitute_command_keys): Handle case that a GC
7550 in Fwhere_is_internal or get_keymap_1 relocates string contents.
7551
7552 * dispnew.c (direct_output_forward_char): Give up if currently
7553 displaying a message instead of the minibuffer contents.
7554
7555 * xterm.c (x_update_window_begin): No need to turn off the mouse
7556 highlight here.
7557 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 7558 depending on whether they contain glyphs highlighted in mouse-face.
d76c03ea
GM
7559
7560 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
7561 compare the mouse_face_p flags of both rows.
7562
7563 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
7564
d55ead18
EZ
75652000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
7566
7567 * keyboard.c (show_help_echo): Accept additional parameter
7568 ok_to_overwrite_keystroke_echo.
7569 (read_char): Call show_help_echo with a zero
7570 ok_to_overwrite_keystroke_echo argument.
52283633 7571 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
d55ead18
EZ
7572 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
7573 ok_to_overwrite_keystroke_echo argument.
7574 * w32menu.c (w32_menu_display_help): Call show_help_echo with
7575 non-zero ok_to_overwrite_keystroke_echo argument.
7576
df75b1a3
GM
75772000-07-10 Gerd Moellmann <gerd@gnu.org>
7578
4b92c49a
GM
7579 * xdisp.c (try_window_id): If changes are all below what is
7580 displayed in the window, and point is in the window, we still
7581 might have to find point on the display.
7582
7583 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
7584 glyphs instead of a single one.
7585 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
7586 with new argument list.
7587 (x_set_glyph_string_gc): Make sure the face's GC is valid.
7588
df75b1a3
GM
7589 * keymap.c (get_keymap_1): Add comment that this function can GC.
7590 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
7591 comment that functions can GC.
7592 (Fset_keymap_parent): GCPRO arg KEYMAP.
7593
4314cf3e
EZ
75942000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
7595
7596 * msdos.c (XMenuActivate): After exiting the menu, restore the
7597 echo area message and erase it.
7598
ab49ce15
KH
75992000-07-10 Kenichi Handa <handa@etl.go.jp>
7600
7601 * fontset.c (Ffontset_info): Make the return value more compatible
7602 with that of Emacs 20.
7603
090a072f
GM
76042000-07-07 Gerd Moellmann <gerd@gnu.org>
7605
7606 * eval.c (Fsignal): Handle case that backtrace_list is null.
7607
f92de4a6
KH
76082000-07-07 Kenichi Handa <handa@etl.go.jp>
7609
7610 * ccl.c (Fccl_execute): Typo fixed.
7611
dd8888a1
GM
76122000-07-06 Gerd Moellmann <gerd@gnu.org>
7613
e5c81191 7614 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 7615
dd8888a1
GM
7616 * window.c (Fwindow_list): Reverse list at the end.
7617 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
7618 means allow windows on OWINDOW's frame, only.
7619 (window_loop): Simplified; use Fwindow_list.
7620
7621 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
7622
485266d0
GM
76232000-07-05 Gerd Moellmann <gerd@gnu.org>
7624
7625 * xterm.c (XTread_socket): Increment handling_signal at the start,
7626 decrement it at the end.
7627
7628 * eval.c (handling_signal): New variable.
7629 (Fsignal): Abort if handling_signal is non-zero.
7630
7631 * lisp.h (handling_signal): External declaration.
178c5d9c 7632
485266d0
GM
7633 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
7634
80fcd514
KR
76352000-07-05 Ken Raeburn <raeburn@gnu.org>
7636
7637 Sound support for NetBSD through "Linux emulation" support:
7638 * config.in (HAVE_SOUNDCARD_H): Undef.
7639 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
7640 * Makefile.in (LIBSOUND): New variable.
7641 (LIBES): Include it.
52283633
SM
7642 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
7643 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
80fcd514
KR
7644 (vox_open): Use DEFAULT_SOUND_DEVICE.
7645 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
7646
d5c5cddd
GM
76472000-07-05 Gerd Moellmann <gerd@gnu.org>
7648
7649 * print.c (print_error_message): If Vsignaling_function is set,
7650 show it in *Messages*.
7651
7652 * lisp.h (Vsignaling_function): External declaration.
7653
7654 * eval.c (Vsignaling_function): New variable.
7655 (Fsignal): Compute it.
7656 (syms_of_eval): Staticpro it.
7657
65171e3a
DL
76582000-07-05 Dave Love <fx@gnu.org>
7659
7660 * syswait.h: Use the autoconf recommended approach. Old code
7661 #if'd out in case we need to revert.
7662
178c5d9c 7663 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 7664
e2c46326
AI
76652000-07-05 Andrew Innes <andrewi@gnu.org>
7666
7667 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
7668 when non-NULL instead of __morecore, to take account of buffer
7669 memory. This also solves a problem with spurious memory warnings
7670 on Windows.
7671
7672 * ralloc.c: Make real_morecore non-static.
7673
7674 * eval.c (internal_condition_case): Comment out abort if
7675 interrupt_input_blocked is not zero.
7676
7677 * makefile.nt: Add support for `bootstrap' and related targets.
7678 Include minimal debug info in emacs.exe in release build.
7679 Remove all dependencies on lisp.h, and fixup some others.
7680
7681 * w32.c (init_environment): Install code from 20.7 for providing
7682 default values for environment variables, based on the
7683 executable's own location.
52283633 7684 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
e2c46326
AI
7685 (sys_socket): Install socket inheritance bug fix from 20.7.
7686
7687 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
7688 here via blockinput.h).
7689
a027a91b
SM
76902000-07-05 Stefan Monnier <monnier@cs.yale.edu>
7691
e4b31601
SM
7692 * w32menu.c (w32_menu_display_help):
7693 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
7694
7695 * keyboard.h (show_help_echo): Declare.
7696
7697 * keyboard.c (show_help_echo): New function, extracted from read_char.
7698 Feval its `msg' argument if it's a cons cell.
7699 (read_char): Use it.
4cf8d9d5 7700 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 7701
178c5d9c 7702 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 7703 (note_tool_bar_highlight, XTread_socket):
178c5d9c 7704 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
7705 (dos_rawgetc):
7706 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
7707 (note_tool_bar_highlight, w32_read_socket):
7708 Do not gratuitously ignore non-string `help-echo' properties.
7709
88d75730
GM
77102000-07-05 Gerd Moellmann <gerd@gnu.org>
7711
969f7e79
GM
7712 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
7713
71201b00
GM
7714 * window.c (delete_all_subwindows): Reset Vwindow_list.
7715
88d75730
GM
7716 * xterm.c (x_append_glyph, x_append_composite_glyph)
7717 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
7718 changes in struct glyph starting 1999-12-27. Some bit-fields of
7719 struct glyph were not set, which made glyphs unequal when compared
7720 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
7721 effects were the result. This also depended on the contents of
7722 memory returned by xmalloc. If flickering happens again, activate
7723 the code in clear_glyph_row that's in #if 0. If the flickering is
52283633 7724 gone with that, chances are that it is caused by something similar.
88d75730
GM
7725
7726 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 7727
88d75730
GM
7728 * dispextern.h: Add some comments.
7729
7730 * window.c (add_window_to_list): Add parameter LIST.
7731 (window_list): Order list so that, for each frame, windows are
7732 in canonical order, and so that frames appear in the list in
7733 the order given by Vframe_list.
7734 (next_window): Reverse the handling of NEXT_P.
7735
53654733
GM
77362000-07-04 Gerd Moellmann <gerd@gnu.org>
7737
87efd256
GM
7738 * window.c (Vwindow_list): New variable.
7739 (make_window, delete_window): Set Vwindow_list to nil.
7740 (check_window_containing): New function.
7741 (window_from_coordinates): Rewritten.
7742 (add_window_to_list, window_list, candidate_window_p)
7743 (decode_next_window_args, next_window): New functions.
52283633 7744 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
87efd256
GM
7745 (Fwindow_list): New function.
7746 (Fother_window): Cleaned up.
7747 (foreach_window): Add a longer "variable argument list". Let
7748 callback function return 0 to indicate that cycling over windows
7749 should stop.
7750 (foreach_window_1): Likewise.
7751 (freeze_window_start): Return int.
7752 (init_window): New function.
7753 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
7754
7755 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
7756 input_event with bzero.
7757 (main): Call init_window.
7758
53654733
GM
7759 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
7760 a menu filter.
7761
4a8c194f
KH
77622000-07-04 Kenichi Handa <handa@etl.go.jp>
7763
7764 * composite.h (make_composition_value_copy): Extern it.
7765
7766 * composite.c (make_composition_value_copy): New function.
7767
7768 * editfns.c (Fformat): While copying text properties, make each
7769 composition property value a copy.
7770
7771 * fns.c (concat): While copying text properties, make each
7772 composition property value a copy.
7773
831a6cb0
GM
77742000-07-03 Gerd Moellmann <gerd@gnu.org>
7775
2f516940
GM
7776 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
7777
178c5d9c 7778 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
7779 marked already.
7780
831a6cb0
GM
7781 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
7782 include those frames as candidates which have their focus
7783 redirected to the minibuffer frame.
7784
d9c4f922
SM
77852000-07-03 Stefan Monnier <monnier@cs.yale.edu>
7786
7787 * fns.c (Fputhash): Return `value' rather than nil.
7788
3780bc22
GM
77892000-06-30 Gerd Moellmann <gerd@gnu.org>
7790
97d176db
GM
7791 * frame.c (next_frame): Don't check focus redirection in case
7792 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
7793 unless their focus is redirected, which contradicts the
7794 specification of next-frame, and leads to infinite loops in
7795 certain situations when cycling through windows with next-window.
7796
dca9961d
KH
77972000-06-30 Kenichi Handa <handa@etl.go.jp>
7798
7799 * coding.c (code_convert_region): Even if the length of text is
7800 zero, try to convert it if coding->type is coding_type_ccl.
7801 (decode_coding_string, encode_coding_string): Likewise.
7802
d5483ab1
GM
78032000-06-28 Gerd Moellmann <gerd@gnu.org>
7804
af5c25e1 7805 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 7806 the display if windows_or_buffers_changed.
af5c25e1
GM
7807
7808 * dispnew.c (struct row_entry): New structure.
7809 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
7810 (row_table_size, old_lines, new_lines, old_lines_size)
7811 (new_lines_size, run_pool, runs_size, runs): New variables.
7812 (add_row_entry): New function.
7813 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 7814 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
7815 holding them in local variables. Use a larger hash table whose
7816 size depends on glyph matrix sizes. Don't use bzero to clear the
7817 hash table; instead, clear used slots only.
7818
7819 * fns.c (next_almost_prime): Make it externally visible.
7820
7821 * lisp.h (next_almost_prime): Add prototype.
7822
d5483ab1
GM
7823 * s/isc4-0.h (sigunblock): Define.
7824
7825 * s/sco5.h (sigunblock): Define.
7826
93e40f40
DL
78272000-06-27 Dave Love <fx@gnu.org>
7828
7829 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
7830 (moved to osf5-0.h).
7831 [!NOT_C_CODE]: Protect string.h stuff.
7832
7833 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
7834 (sys_siglist, NSIG): Definitions moved here from osf1.h.
7835
3c4b7685
GM
78362000-06-27 Gerd Moellmann <gerd@gnu.org>
7837
97d176db 7838 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
7839 below the last line from the needed window height.
7840
32cad0aa
SM
78412000-06-26 Stefan Monnier <monnier@cs.yale.edu>
7842
7843 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
7844 (Fwidget_get): Use it.
7845 (syms_of_fns): Defsubr it.
7846
2c69ced2
GM
78472000-06-26 Gerd Moellmann <gerd@gnu.org>
7848
178c5d9c 7849 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
7850 display info for XIM.
7851 (xim_open_dpy): Likewise.
7852 (xim_close_dpy): Don't free the display info's XIM.
7853
7854 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
7855
7856 * config.in (USE_XIM): New define.
7857
3fc720e4
GM
7858 * keymap.c (get_keyelt): For menu-items containing a `:filter
7859 FILTER', apply FILTER to the menu-item's definition to get the
7860 real definition to use.
7861
7862 * lisp.h (QCfilter): External declaration.
7863
2c69ced2
GM
7864 * xfns.c (Fimage_size): New function.
7865 (syms_of_xfns): Defsubr it.
7866
f978b2a2
AS
78672000-06-26 Andreas Schwab <schwab@suse.de>
7868
7869 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
7870 Fstring_as_unibyte.
7871
94cc7892
DL
78722000-06-25 Dave Love <fx@gnu.org>
7873
52283633 7874 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
94cc7892
DL
7875
7876 * Makefile.in (blockinput.h): Depend on atimer.h.
7877 (atimer.h): Depend on systime.h.
7878
52283633 7879 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
94cc7892 7880
52283633 7881 * atimer.h: Protect against multiple inclusion. Include systime.h.
94cc7892
DL
7882
7883 * lisp.h (swap_in_global_binding): Declare.
7884
b8c24556
KR
78852000-06-24 Ken Raeburn <raeburn@gnu.org>
7886
7887 * process.c (Fopen_network_stream): Turn off atimers for duration
7888 of call to connect. (Patch from Gerd.)
7889
8cf8560b
DL
78902000-06-23 Dave Love <fx@gnu.org>
7891
511c7541
DL
7892 * ralloc.c: Maybe include unistd.h
7893
8cf8560b
DL
7894 * emacs.c (setgrp): Undefine before defining.
7895 (malloc_warning, set_time_zone_rule, index): Prototype.
7896
7897 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
7898 HAVE_STRUCT_TIMEZONE.
7899
7900 * s/osf1.h: Move string.h hack here from alpha.h and make it
7901 conditional.
7902 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
7903 _XOPEN_SOURCE.
7904 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
7905 (SOCKLEN_TYPE): Don't define.
7906
7907 * m/alpha.h: Remove string.h hack.
7908
7909 * s/osf5-0.h: New file.
7910
7911 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
7912 include time.h, done by systime.h.
7913 [__FreeBSD__]: Remove redundant includes.
7914
3fc720e4 7915 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
7916 (delete_temp_file): Return Qnil to avoid warning.
7917
7918 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
7919
7920 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
7921 HAVE_X_WINDOWS.
7922
7923 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
7924
7925 * composite.h (compose_text): Declare.
7926
7927 * xterm.c: Don't include sys/types.h unconditionally. Don't
7928 protect its inclusion with !USG (following xmenu.c).
7929
ea055732
GM
79302000-06-23 Gerd Moellmann <gerd@gnu.org>
7931
7932 * xfns.c (x_create_tip_frame): Initialize frame's colors like
7933 in x_create_frame.
7934
74b01b80
EZ
79352000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
7936
7937 * coding.c (decode_eol_post_ccl): Special handling for undecided
7938 and inconsistent EOL types.
7939
64f3a166
GM
79402000-06-22 Gerd Moellmann <gerd@gnu.org>
7941
16cf31f7
GM
7942 * xrdb.c (x_load_resources): Add default resource for scroll bar's
7943 trough color and main window's background color.
7944
52283633 7945 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
16cf31f7
GM
7946
7947 * xterm.h (Xt_app_con): External declaration.
7948
7949 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 7950
486a103d
GM
7951 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
7952
64f3a166
GM
7953 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
7954 (handle_invisible_prop): Record the start of invisible text in
7955 it->add_overlay_start.
7956 (struct overlay_entry): Add member `overlay'.
7957 (handle_overlay_change): Simplify.
7958 (next_overlay_string): After having processed overlay strings at the
7959 end of the buffer, record that fact in
7960 it->overlay_strings_at_end_processed_p.
7961 (compare_overlay_entries): If before- and after-strings come
7962 from the same overlay, let before-strings come first.
7963 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
7964 (load_overlay_strings): Take it->add_overlay_start into account
7965 when adding overlay strings.
7966
7967 * dispextern.h (struct it): Add member add_overlay_start.
7968
bb746ea6
DL
79692000-06-22 Dave Love <fx@gnu.org>
7970
7971 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
7972
7973 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
7974
a8f573f3
KH
79752000-06-22 Kenichi Handa <handa@etl.go.jp>
7976
7977 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
7978 is greater than 0.
7979
9f2bbc92
DL
79802000-06-21 Dave Love <fx@gnu.org>
7981
178c5d9c 7982 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 7983
3ee5041c
SM
79842000-06-21 Stefan Monnier <monnier@cs.yale.edu>
7985
7986 * syntax.c (back_comment): Simplify string-parity counting (with
7987 the added benefit of handling multiple string-styles as long as
7988 they are not intertwined).
7989 Jump to the slow code as soon as a comment starter is found in
7990 a "string_lossage" position. Fixes the case: " /* " /* " */.
7991
4c343001
DL
79922000-06-21 Dave Love <fx@gnu.org>
7993
7994 * Makefile.in: Use GETLOADAVG_LIBS.
7995
7996 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
7997 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
7998
e6365855
SM
79992000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8000
8001 * syntax.c (describe_syntax): Recognize the `n'estable bit.
8002 (Fforward_comment, scan_lists):
8003 Check the comstyle of single-char comment-starters.
8004 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
8005 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
8006 Check the comstyle of single-char comment-starters.
8007 Clarify control-flow around the Scomment case.
e6365855 8008
5700d2cc
DL
80092000-06-20 Dave Love <fx@gnu.org>
8010
d355bd8a
SM
8011 * fns.c (make_hash_table, maybe_resize_hash_table):
8012 Cast arg of next_almost_prime.
5700d2cc 8013
178c5d9c 8014 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
8015
8016 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
8017 and unistd.h.
8018
4a27bdfb
GM
80192000-06-20 Gerd Moellmann <gerd@gnu.org>
8020
a61d762c 8021 * keyboard.c (adjust_point_for_property): Check if display
52283633 8022 property should be treated as intangible by looking at its value.
a61d762c 8023
178c5d9c 8024 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
8025 (display_prop_intangible_p): New functions.
8026
8027 * dispextern.h (display_prop_intangible_p): Add prototype.
8028
8029 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 8030
4a27bdfb
GM
8031 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
8032 argument to sigprocmask.
8033
8034 * s/sco5.h (sigblock): Redefined to pass a pointer as second
8035 argument to sigprocmask.
8036
8037 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
8038 sigprocmask_set, and pass a pointer to it to sigprocmask.
8039
8040 * sysdep.c (sigprocmask_set): New variable.
8041
8042 * fileio.c (make_temp_name): Don't use `%s' in string passed to
8043 report_file_error.
8044
427ec082
SS
80452000-06-20 Sam Steingold <sds@gnu.org>
8046
8047 * xrdb.c: Don't declare xmalloc, xrealloc.
8048
8972fe79 80492000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
8050
8051 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
8052 (re_comp): Cast gettext return value to avoid complaints when
8053 !HAVE_LIBINTL.
8054
074b6efe
DL
80552000-06-20 Dave Love <fx@gnu.org>
8056
52283633 8057 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
f85c008a 8058
5700d2cc 8059 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 8060
d355bd8a 8061 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
8062
8063 * m/alpha.h: Don't declare xmalloc, xrealloc.
8064
0af4f205
DL
8065 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
8066
8067 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
8068
8069 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
8070
8071 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
8072 HAVE_GETWD.
8073
074b6efe
DL
8074 * keyboard.h (poll_for_input_1): Declare.
8075
8076 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
8077
8078 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
8079
8080 * doprnt.c: Don't declare xmalloc, xrealloc.
8081
8082 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
8083 (getenv, ctime, getwd): Removed.
8084 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
8085
8086 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
8087 x_set_tool_bar_lines.
8088
8089 * config.in: Add HAVE_GETWD. Move some definitions above
8090 machine/system includes.
8091
68a5e97b
KH
80922000-06-20 Kenichi Handa <handa@etl.go.jp>
8093
95417e1e
KH
8094 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
8095
68a5e97b
KH
8096 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
8097 contain information about ENCODING.
8098
8099 * fontset.c (FONTSET_ASCII): Use the first element of char table
8100 for an ASCII font, not defalt slot.
8101 (fontset_ref_via_base): If FONTSET doesn't contain information for
8102 C, try the default fontset.
8103 (make_fontset): Don't copy the default fontset.
8104 (fontset_font_pattern): Likewise.
8105 (accumulate_font_info): If ELT is nil, use the corresponding
8106 element in the default fontset.
8107
3b4fa1b2
DL
81082000-06-19 Dave Love <fx@gnu.org>
8109
943e731c
DL
8110 * syntax.c (Fparse_partial_sexp): Doc fix.
8111
8112 * regex.h: Test PROTOTYPES as well as __STDC__.
8113
3b4fa1b2
DL
8114 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
8115 errno, strerror. Put text after #endif in comment.
8116
52283633 8117 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
3b4fa1b2
DL
8118
8119 * xterm.c (x_frame_of_widget): Likewise.
8120
cdf0357b
GM
81212000-06-19 Gerd Moellmann <gerd@gnu.org>
8122
8123 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
8124 to Vfundamental_mode_abbrev_table.
8125
8126 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
8127 bogus objects are marked. This slows down GC by ~80 percent, but
8128 it might be worth trying when debugging GC-related problems.
8129 This feature requires conservative stack marking to be enabled.
8130
8131 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
8132 returns XLookupChars, reset `modifiers' to zero.
8133
998e9f8c
DL
81342000-06-19 Dave Love <fx@gnu.org>
8135
8136 * mktime.c: Unprotoized.
8137
18e21ce8 81382000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
8139
8140 * data.c (set_internal): If variable is frame-local,
8141 store the new value immediately into the frame parameter alist.
8142
140c4ac6
KR
81432000-06-19 Ken Raeburn <raeburn@gnu.org>
8144
14358466
KR
8145 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
8146 in the custom handler pointer.
8147
140c4ac6
KR
8148 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
8149 value, or checks for CHAR_META can fail when Lisp_Object is a
8150 union type.
8151 * keymap.c (get_keyelt): Likewise.
8152
10d7bf84
KH
81532000-06-19 Kenichi Handa <handa@etl.go.jp>
8154
8155 * ccl.h (struct ccl_program): New member eol_type.
8156 (struct ccl_spec): New member cr_carryover.
8157
8158 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
8159 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
8160
8161 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
8162 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
8163 (decode_eol_post_ccl): New function.
8164 (decode_coding): Don't detect EOL format here for CCL based coding
8165 systems.
8166 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
8167 decode_eol_post_ccl after running the CCL program.
8168 (code_convert_region): Don't detect EOL format here for CCL based
8169 coding systems.
8170 (decode_coding_string): Likewise.
8171
52e386c2
KR
81722000-06-18 Ken Raeburn <raeburn@gnu.org>
8173
8174 * charset.c (update_charset_table): Use XINT on "iso_final_char"
8175 when treating it as an integer.
8176
8177 * coding.h (encode_coding_string): Declare.
8178
8179 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
8180 it as an integer.
8181
8182 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
8183 "xkeymap" to avoid shadowing the "enum map_type" value that needs
8184 to be passed to get_local_map.
8185
8186 * sound.c (Fplay_sound): Don't call make_number on
8187 Frun_hook_with_args count argument.
8188
8189 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
8190 for lisp objects in X event structure data field, when lisp
8191 objects are represented with unions.
8192 (x_scroll_bar_to_input_event): Ditto.
8193
b357b9d4
KR
81942000-06-16 Ken Raeburn <raeburn@gnu.org>
8195
8196 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
8197 termination of string. Fix sense of test whether
8198 Vline_number_display_limit is an integer.
b357b9d4 8199
a871441d
GM
82002000-06-16 Gerd Moellmann <gerd@gnu.org>
8201
a9021acd
GM
8202 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
8203 only if HAVE_X_WINDOWS.
8204
6344985d
GM
8205 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
8206 of titles.
8207
427ec082 8208 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
8209 out of bounds.
8210
228b083e
EZ
82112000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
8212
8213 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
8214 of its headers.
8215
c25b53a2
KH
82162000-06-15 Kenichi Handa <handa@etl.go.jp>
8217
8218 * coding.c (decode_coding_emacs_mule): Always set src_base at the
8219 start of the while loop.
8220
a6981b11
GM
82212000-06-15 Gerd Moellmann <gerd@gnu.org>
8222
e9924e52
GM
8223 * atimer.c (alarm_signal_handler): Add forward declaration.
8224
a6981b11
GM
8225 * data.c (set_internal): Remove debug code.
8226
25fa6deb
GM
82272000-06-14 Gerd Moellmann <gerd@gnu.org>
8228
dce6b995
GM
8229 * Makefile.in (bootstrap-temacs): Add `-I../src'.
8230
9f817ea4
GM
8231 * unexec.c (toplevel) [COFF]: Include coff.h.
8232
8233 * s/lynxos.h: New file.
8234
8235 * keymap.c (Fsingle_key_description): Enclose function key and
8236 event symbol names in angle brackets.
8237
8a4e3c0c
GM
8238 * xdisp.c (setup_echo_area_for_printing): Call
8239 message_log_maybe_newline if message_buf_print is not set.
8240
8241 * print.c (printchar, strout): Don't check message_buf_print
427ec082 8242 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
8243 function does something useful even when message_buf_print is
8244 already set.
8245
52283633
SM
8246 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
8247 New variables.
25fa6deb
GM
8248 (ensure_echo_area_buffers): Initialize echo buffer's
8249 truncate lines setting to nil.
8250 (with_echo_area_buffer): Don't set the echo buffer's truncate
8251 lines setting here.
8a4e3c0c 8252 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
8253 of message_truncate_lines.
8254 (resize_mini_window): Handle case that lines are truncated.
52283633
SM
8255 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
8256 DEFVAR_BOOL message-truncate-lines.
25fa6deb
GM
8257
8258 * keyboard.c (read_char): Bind message-truncate-lines to t
8259 while displaying a help-echo.
8260
8261 * lisp.h (Qmessage_truncate_lines): External declaration.
8262
163dcff3
GM
82632000-06-13 Gerd Moellmann <gerd@gnu.org>
8264
1681ead6
GM
8265 * xdisp.c (Vline_number_display_limit): Renamed from
8266 line_number_display_limit.
8267 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
8268 Extend documentation string. Initialize
8269 Vline_number_display_limit to nil meaning no limit.
8270 (decode_mode_spec): Use Vline_number_display_limit with its new
8271 meaning.
8272
163dcff3
GM
8273 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
8274
18e21ce8 82752000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
8276
8277 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 8278
163dcff3
GM
8279 * xfns.c (x_set_frame_parameters): Comment fix.
8280
8281 * frame.c (store_frame_param): Call swap_in_global_binding if the
8282 variable's current binding was chosen based on this frame.
8283
8284 * data.c (swap_in_global_binding): New function.
8285
a704139d
EZ
82862000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
8287
8288 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
8289 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
8290
9b6610db
EZ
82912000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
8292
8293 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
8294
c68833d2
JR
82952000-06-12 Jason Rumney <jasonr@gnu.org>
8296
8297 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
8298
8299 * w32.h (EMACS_W32_H): Renamed from _NT_H_
8300
8301 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
8302
8303 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
8304
ed1056b3
GM
83052000-06-12 Gerd Moellmann <gerd@gnu.org>
8306
8307 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
8308 (syms_of_xfaces): Defsubr Sdump_colors.
8309 (x_free_colors): Don't treat b&w specially on default visual.
8310 (x_free_dpy_colors): New function.
8311 (free_face_colors): Don't check visual class; it's done
8312 in x_free_colors.
8313
8314 * xterm.c (x_frame_of_widget): New function.
8315 (x_alloc_nearest_color_for_widget): Use it.
8316 (x_copy_dpy_color): New function.
8317 (x_destroy_window): Free various colors.
8318
5050a2ef
KH
83192000-06-12 Kenichi Handa <handa@etl.go.jp>
8320
8321 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
8322
8323 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
8324
8325 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
8326
8327 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
8328
8329 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
8330
fb1b041d
DL
83312000-06-11 Dave Love <fx@gnu.org>
8332
8333 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
8334
ff96b5f4
EZ
83352000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
8336
8337 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
8338
db8eeecd
GM
83392000-06-11 Gerd Moellmann <gerd@gnu.org>
8340
ed1056b3 8341 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
8342 to `XEvent *'.
8343
49b71c5f
KH
83442000-06-10 Kenichi Handa <handa@etl.go.jp>
8345
c479bd55
KH
8346 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
8347 (regex_compile): Fix the code for handling the case of single byte
8348 char and multibyte char being mixed in a range within [...].
8349
ff6a65c2
KH
8350 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
8351 and dst_multibyte members of coding.
8352
49b71c5f
KH
8353 * charset.c (update_charset_table): Update the table
8354 bytes_by_char_head.
8355 (init_charset_once): Initialize elements of bytes_by_char_head to
8356 1 except for leading codes for private charases.
8357
8358 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
52283633 8359 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
49b71c5f 8360
9e80b57d
KR
83612000-06-09 Ken Raeburn <raeburn@gnu.org>
8362
8363 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
8364 access the data it doesn't point to.
8365
f83fe4b4
GM
83662000-06-08 Gerd Moellmann <gerd@gnu.org>
8367
8368 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 8369 will be translated to a switch-frame event when reading the
f83fe4b4
GM
8370 event queue. This is necessary because Emacs otherwise won't
8371 perform a switch-frame to a new frame until some other event, for
8372 example a keystroke event, forces it to do so. This has various
8373 effects, one visible being that the cursor of a frame created with
8374 C-x 5 2 or switched to with a window manager key binding like
8375 A-TAB stays hollow because selected_window isn't on the newly
8376 focused frame until the switch-frame is performed.
8377
8378 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
8379 generating a switch-frame event if necessary.
8380
8381 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
8382
8383 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
8384 it's an integer.
8385
0890801b
KH
83862000-06-08 Kenichi Handa <handa@etl.go.jp>
8387
52283633 8388 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
0890801b 8389
173cbca8
GM
83902000-06-07 Gerd Moellmann <gerd@gnu.org>
8391
3091c2a6
GM
8392 * window.c (displayed_window_lines): Take empty lines at
8393 the bottom of a window into account.
427ec082 8394
f38952fe
GM
8395 * window.c (displayed_window_lines): New function.
8396 (Fmove_to_window_line): Use displayed_window_lines to determine
8397 the number of lines to move, instead of using the window's height.
8398
8399 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
8400 to stop reading, even if the form read sets point to a different
8401 value when evaluated.
8402
427ec082 8403 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
8404 put the cursor.
8405
6ba6c818
KH
84062000-06-07 Kenichi Handa <handa@etl.go.jp>
8407
8408 * fileio.c (e_write): Free composition data if stored in
8409 coding->cmp_data.
8410
5f1aea9a
GM
84112000-06-06 Gerd Moellmann <gerd@gnu.org>
8412
666852af
GM
8413 * xdisp.c (display_line): Set row's and iterator's
8414 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
8415 Set cursor even if row ends in the middle of a character.
8416 (dump_glyph_row): Print values of new flags.
8417 (redisplay_window) <cursor movement in unchanged window>: When
8418 point has been moved forward, and PT is at the end of the cursor
8419 row, don't place the cursor in the next row if the cursor row ends
8420 in the middle of a character or at ZV.
8421
8422 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
8423 (struct glyph_row): Add starts_in_middle_of_char_p and
8424 ends_in_middle_of_char_p.
8425 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
8426 ends_in_middle_of_char_p flag.
8427 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
8428
d13f3e2e
GM
8429 * term.c (append_glyph): Revert change of 2000-06-06.
8430
8431 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
8432 padding glyph not fitting on line as whole character not
8433 fitting on line.
8434
5f1aea9a
GM
8435 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
8436 this isn't true for images with `:ascent 100'.
8437
10cda9b0
KH
84382000-06-06 Kenichi Handa <handa@etl.go.jp>
8439
ed00559d
KH
8440 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
8441 as modified if it is originally unmodified.
8442
10cda9b0
KH
8443 * term.c (encode_terminal_code): Change the way to check if
8444 terminal coding does any conversion.
8445 (append_glyph): Set glyph->pixel_width correctly.
8446
8447 * xdisp.c (display_line): While checking line continuation, pay
8448 attention to a padding glyph.
8449
1969fae2
GM
84502000-06-05 Gerd Moellmann <gerd@gnu.org>
8451
8452 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
8453
162ccef4
DL
84542000-06-05 Dave Love <fx@gnu.org>
8455
f19f32dd
DL
8456 * xdisp.c: Include fontset.h.
8457
8458 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
8459
8460 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
8461
8462 * dispnew.c: Conditionally include term.h.
8463
8464 * coding.h: Declare code_convert_string_norecord.
8465
8466 * frame.h (struct frame): Use volatile unconditionally.
8467
8468 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
8469
8470 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
8471
8472 * systime.h: Protect against multiple inclusion.
8473 (timezone) [USG5_4]: Define as time_t.
8474
8475 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
8476 (Foptimize_char_table, make_temp_name): Declare.
8477
8478 * Makefile.in (xdisp.o): Depend on fontset.h.
8479
8480 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
8481
8482 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
8483 (Foptimize_char_table, make_temp_name): Declare.
8484
427ec082 8485 * s/irix4-0.h:
162ccef4
DL
8486 * s/irix5-0.h:
8487 * s/netbsd.h: Don't define autoconfiscated MATHERR.
8488
2082fe81
DL
84892000-06-02 Dave Love <fx@gnu.org>
8490
8491 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
8492
dcf671d2
GM
84932000-06-02 Gerd Moellmann <gerd@gnu.org>
8494
8495 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 8496 result face, set flags in that face indicating that colors may not
dcf671d2
GM
8497 be freed.
8498
8499 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
8500 glyph, use the ASCII NUL character to determine the face.
8501
d42122a3
DL
85022000-06-02 Dave Love <fx@gnu.org>
8503
8504 * sysdep.c: Conditionally include stdlib.h, unistd.h.
8505 (VFORK_RETURN_TYPE): Remove.
427ec082 8506
d42122a3
DL
8507 * config.in: Add NO_MATHERR.
8508
dd432f16
DL
85092000-06-01 Dave Love <fx@gnu.org>
8510
90aa4ea8
DL
8511 * cmds.c (internal_self_insert): Don't check
8512 Vbefore_change_function, Vafter_change_function.
8513
8514 * insdel.c (signal_before_change, signal_after_change): Likewise.
8515
8516 * buffer.c (Vbefore_change_function, Vafter_change_function):
8517 Variables and their initializations deleted.
8518
2330c9d4
DL
8519 * callint.c (Fcall_interactively): Doc fix.
8520
dd432f16
DL
8521 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
8522
bf9e8804
DL
85232000-05-31 Dave Love <fx@gnu.org>
8524
8525 * textprop.c: Revert last change -- duplicated.
8526
3694b4ab
GM
85272000-05-31 Gerd Moellmann <gerd@gnu.org>
8528
8529 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
8530 in #if 0.
8531
8532 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
8533
f14156cd
JR
85342000-05-31 Jason Rumney <jasonr@gnu.org>
8535
8119aab8
JR
8536 * search.c (Fre_search_forward, Fre_search_backward)
8537 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
8538
f14156cd
JR
8539 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
8540
4aab9be3
JR
85412000-05-30 Jason Rumney <jasonr@gnu.org>
8542
8543 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
8544 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
8545
52283633 8546 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
4aab9be3
JR
8547
8548 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
8549 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
8550 expand a nil default_filename.
8551
8552 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
8553 pointer to glyph_to_pixel_coords, not a frame.
8554
8555 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
8556 coding.h to dependencies.
8557
8558 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
8559
8560 * w32console.c (glyph_to_pixel_coords): Change first parameter to
8561 window pointer to be consistent with w32term.c and xterm.c.
8562
8563 * w32fns.c: Format and doc changes to bring closer to xfns.c.
8564 (VIETNAMESE_CHARSET): Define if not defined in system headers.
8565 (Qline_spacing, Qcenter): New variables.
8566 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
8567 (x_set_line_spacing): New function.
52283633 8568 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
4aab9be3
JR
8569 (x_specified_cursor_type): New function.
8570 (x_set_cursor_type): Use it.
8571 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
8572 and icon strings.
8573 (validate_x_resource_name, x_get_resource_string): Measure lengths
8574 of external strings in bytes.
8575 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
8576 GetTextExtentPoint32 with NULL title.
8577 (Fx_create_frame): Initialize Qline_spacing.
8578 (w32_load_system_font): Initialize font->double_byte_p.
8579 (x_to_w32_charset): Use Vw32_charset_info_alist.
8580 (Image, busy cursor, tooltip functions): Merged changes from
8581 xfns.c. Not yet functional on Windows.
8582
8583 * w32gui.h (W32FontStruct): Add double_byte_p member.
8584
8585 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
8586 (emacs_button_translation): Use it.
8587 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
8588 in `mask' to be set.
8589
8590 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
8591 menu strings.
8592
8593 * w32term.c: Format and doc changes to bring closer to xterm.c.
8594 (w32_char_font_type): New enum.
8595 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
8596 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
8597 (w32_encode_char): New function.
8598 (x_encode_char): Removed.
8599 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
8600 x_encode_char and w32_font_is_double_byte.
8601 (x_produce_image_glyph): Use image_ascent.
8602 (x_produce_glyphs): Use new version of w32_per_char_metric and
8603 handle NULL return value. Allow extra line spacing.
8604 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
8605 (w32_get_glyph_overhangs): Remove unicode_p param. Use
8606 w32_font_type member of glyph instead.
8607 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
8608 (fast_find_position): Make sure not to consider rows not visible
8609 in the window.
8610 (w32_read_socket) [WM_MENUSELECT]: Cannot call
8611 w32_menu_display_help with input blocked, as it can abort.
8612 (x_display_and_set_cursor): Choose cursor depending
8613 on buffer-local value of cursor_type.
8614 (x_draw_bar_cursor): Add parameter WIDTH.
8615
8616 * w32term.h (CP_DEFAULT): Define.
8617 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
8618
10fc3187
GM
86192000-05-30 Gerd Moellmann <gerd@gnu.org>
8620
8621 * search.c (Fre_search_forward, Fre_search_backward)
8622 (Fposix_search_backward, Fposix_search_forward): Doc fix.
8623
d0555360
KH
86242000-05-30 Kenichi Handa <handa@etl.go.jp>
8625
8626 * coding.c (detect_coding_iso2022): Fix code for checking
8627 CODING_CATEGORY_MASK_ISO_8_2.
8628
f1ad044f
SM
86292000-05-29 Stefan Monnier <monnier@cs.yale.edu>
8630
8631 * regex.c (PREFETCH_NOLIMIT): New function.
8632 (re_match_2_internal): Use it and adjust the end_match_2 logic.
8633
84ec3b4b
GM
86342000-05-29 Gerd Moellmann <gerd@gnu.org>
8635
66254a13
GM
8636 * syntax.c (find_defun_start): Move test for
8637 open_paren_in_column_0_is_defun_start outside of the loop.
8638
49e70dec
GM
8639 * xdisp.c (redisplay_window): Really switch buffers when
8640 displaying mode lines, and temporarily set selected_frame to the
8641 frame of the window that's redisplayed.
8642
84ec3b4b
GM
8643 * xfaces.c (free_realized_faces): Block/unblock input.
8644 (free_realized_multibyte_face): Ditto.
8645
869a3a14
DL
86462000-05-29 Dave Love <fx@gnu.org>
8647
8648 * textprop.c (Qkeymap): New variable.
8649 (syms_of_textprop): Intern it.
8650
8651 * keymap.c: Include intervals.h.
8652 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
8653
8654 * Makefile.in (keymap.o): Depend on intervals.h.
8655
8656 * keyboard.c (menu_bar_items, tool_bar_items)
8657 (Fexecute_extended_command): Deal with `keymap' property.
8658 (read_key_sequence): Track map from `keymap' property as well as
8659 `local_map'.
8660
8661 * intervals.c (get_local_map): Extra arg to allow looking for
8662 `keymap' too.
8663
8664 * intervals.h (map_property): New enum.
8665 (get_local_map): Extra arg using it.
8666 (Qkeymap): Declare.
8667
84ec3b4b 8668 * lisp.h (get_local_map): Don't declare here.
869a3a14 8669
89d0c844
KH
86702000-05-29 Kenichi Handa <handa@etl.go.jp>
8671
8672 * Makefile.in (callproc.o): Depend on composite.h.
8673
8674 * callproc.c: Include composite.h.
8675 (Fcall_process): Handle composition correctly.
8676
8677 * coding.h (coding_allocate_composition_data): Extern it.
8678 (coding_restore_composition): Likewise.
8679
8680 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
8681 yet allocated, finish decoding with result
8682 CODING_FINISH_INSUFFICIENT_CMP.
8683 (coding_allocate_composition_data): Make it non-static.
8684 (coding_restore_composition): Likewise.
8685
797a084a
EZ
86862000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
8687
8688 * charset.c (syms_of_charset): Revert last change.
8689
cf872af5
EZ
86902000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
8691
8692 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
8693 charsets as unibyte, with 1-column screen width. Sent by Kenichi
8694 Handa.
cf872af5 8695
5b1ae051
EZ
86962000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
8697
8698 * charset.c (syms_of_charset): Set width of character sets
8699 eight-bit-control and eight-bit-graphic to 1 column.
8700
34ec9ebe
GM
87012000-05-26 Gerd Moellmann <gerd@gnu.org>
8702
8703 * config.in (HAVE_SPEED_T): New define.
8704
8705 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
8706 `extern speed_t'.
8707
dd854dc2
DL
87082000-05-26 Dave Love <fx@gnu.org>
8709
8710 * coding.c (shrink_decoding_region): Initialize eol_conversion.
8711
8712 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
8713 (Fsubr_arity): New function.
8714 (syms_of_data): Install them.
8715
ba9f8f95
KH
87162000-05-26 Kenichi Handa <handa@etl.go.jp>
8717
0f3e0672
KH
8718 * charset.c (init_charset_once): Set the table bytes_by_char_head
8719 correctly.
8720
cebefb44
KH
8721 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
8722 the default fontset to what Emacs uses by default.
0f3e0672
KH
8723 (check_registry_encoding): This function deleted.
8724 (Fset_fontset_font): Remove the adhoc condition for the default
8725 fontset. Allow cons in FONTNAME.
cebefb44 8726
0f3e0672
KH
8727 * fns.c (map_char_table): Ignore char-table entries for
8728 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 8729
7a18af49
KR
87302000-05-25 Ken Raeburn <raeburn@gnu.org>
8731
8732 * emacs.c (main): Initialize keyboard syms before initializing
8733 window code, so face names are available.
8734
d2af47df
SM
87352000-05-25 Stefan Monnier <monnier@cs.yale.edu>
8736
8737 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
8738 of an anchor at the beginning of a shy-group.
8739
fc6a6a4e
GM
87402000-05-25 Gerd Moellmann <gerd@gnu.org>
8741
8742 * xdisp.c (handle_invisible_prop): Don't try to skip over
8743 invisible text if end of text is already reached.
8744
005f0d35
DL
87452000-05-25 Dave Love <fx@gnu.org>
8746
02513cdd
DL
8747 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
8748
005f0d35
DL
8749 * coding.c (encode_eol): Add null statement after label.
8750
89f6ca4e
EZ
87512000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
8752
8753 * w16select.c (Fw16_set_clipboard_data): Fix the change from
8754 2000-05-20.
8755
a4e1759e
KH
87562000-05-25 Kenichi Handa <handa@etl.go.jp>
8757
8758 * ccl.c (ccl_driver): Fix previous change.
8759
eacfd7fe
KH
87602000-05-25 Kenichi Handa <handa@etl.go.jp>
8761
46ab33a9
KH
8762 * coding.c (run_pre_post_conversion_on_str): Set point to the
8763 beginning of buffer before calling coding->post_read_conversion.
8764 (decode_coding_string): Give correct args to
8765 run_pre_post_conversion_on_str.
8766 (encode_coding_string): Likewise.
8767
eacfd7fe
KH
8768 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
8769 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
8770 eight-bit-graphic correctly.
8771
f8569325
DL
87722000-05-24 Kenichi HANDA <handa@etl.go.jp>
8773
8774 * fileio.c (Finsert_file_contents): Even if a file is not found,
8775 execute codes for setting up coding system. Call
8776 after-insert-file-functions unconditionally.
8777
04545643
GM
87782000-05-24 Gerd Moellmann <gerd@gnu.org>
8779
8780 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
8781 BSD_PGRPS are not defined.
8782
747d90ea
KH
87832000-05-24 Kenichi Handa <handa@etl.go.jp>
8784
8785 * charset.c (update_charset_table): Accept nil in LONG_NAME and
8786 DESCRIPTION.
8787 (syms_of_charset): Avoid building same strings.
8788
716e3b88
GM
87892000-05-23 Gerd Moellmann <gerd@gnu.org>
8790
8791 * lread.c (Fload): Add a comment about the meaning of
8792 Vuser_init_file being t.
8793
8794 * puresize.h (BASE_PURESIZE): Increase to 675000.
8795
8796 * s/gnu-linux.h (setpgrp): Don't define it here because this
8797 prevents compilation on GNU/Linux systems with glib 2.2.
8798
8799 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
8800 as setpgid.
427ec082 8801
9aeb39fa
EZ
88022000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
8803
8804 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
8805 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
8806 version.
8807 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
8808
29ced61b
KH
88092000-05-23 Kenichi Handa <handa@etl.go.jp>
8810
52283633 8811 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
0574a2ed 8812
3d80f24d
KH
8813 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
8814
52283633 8815 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
3d80f24d 8816
29ced61b
KH
8817 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
8818
d7e00792
KH
88192000-05-22 Kenichi Handa <handa@etl.go.jp>
8820
c9d80d38
KH
8821 * keyboard.c (read_char): Allow character codes 128..255 to be
8822 handled by input-method-function.
8823
d7e00792
KH
8824 * insdel.c (adjust_markers_for_replace): Fix previous change.
8825 (adjust_after_replace): If PREV_TEXT is nil, call
8826 adjust_markers_for_insert, not adjust_markers_for_replace.
8827
087121cc 88282000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 8829
087121cc
GM
8830 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
8831 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
8832 [HAVE_GRANDPT]: Define.
8833 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
8834
8835 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
8836 like SYSV_PTYS.
8837
8838 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
8839
8840 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
8841
c9671f81
KH
88422000-05-20 Kenichi Handa <handa@etl.go.jp>
8843
8844 The following changes are to handle 8-bit characters in a
8845 multibyte buffer/string without facing with byte combining
8846 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
8847 eight-bit-graphic (for 0xA0..0xFF) are introduced.
8848
8849 * Makefile.in (fns.o): Depend on charset.h.
8850
8851 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
8852 convert it to unibyte.
8853 (make_string): Use parse_str_as_multibyte, not chars_in_text.
8854
8855 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
8856 apparent char boundary.
8857 (Fset_buffer_multibyte): Convert 8-bit characters in the range
8858 0x80..0x9F to/from multibyte form.
8859
8860 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
8861 to unibyte.
8862
8863 * callproc.c (Fcall_process): Always encode an argument string if
8864 it is multibyte. Setup src_multibyte and dst_multibyte members of
8865 process_coding properly.
ce75fd23 8866
c9671f81
KH
8867 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
8868 SPLIT_NON_ASCII_CHAR.
8869
8870 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
8871 as is.
8872 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
8873
52283633 8874 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
c9671f81 8875 (SPLIT_CHARACTER_SEQ): This macro deleted.
52283633 8876 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
c9671f81
KH
8877 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
8878 and eight-bit-graphic.
8879 (char_to_string): Likewise. Signal an error for too large
8880 character code.
8881 (char_printable_p): Return 0 for 8-bit characters.
8882 (update_charset_table): Update iso_charset_table only when a final
8883 character is non-negative.
8884 (find_charset_in_text): Renamed from find_charset_in_str.
8885 Arguments and return value changed. Callers changed.
8886 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
8887 be -1 if CHARSET is used only internally.
8888 (Fmake_char_internal): Handle new charsets; eight-bit-control and
8889 eight-bit-graphic.
8890 (Fcharset_after): Simplified.
8891 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
8892 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
8893 (multibyte_chars_in_text): Simplified by assuming there's no
8894 invalid multibyte sequence.
52283633
SM
8895 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
8896 (str_as_unibyte): New functions.
8897 (Fstring): Simpified by assuming that byte combining never happens.
c9671f81
KH
8898 (init_charset_once): Initialization for
8899 LEADING_CODE_8_BIT_CONTROL.
8900 (syms_of_charset): Intern and staticpro Qeight_bit_control and
8901 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
8902 eight-bit-control and eight-bit-graphic.
8903
52283633
SM
8904 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
8905 (CHARSET_8_BIT_GRAPHIC): New macros.
c9671f81
KH
8906 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
8907 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
8908 (CHARSET_REVERSE_CHARSET): Likewise.
8909 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
8910 eight-bit-graphic.
8911 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
8912 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
8913 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
8914 encounter an invalid multibyte sequence.
8915 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
8916 sequence is always valid.
8917 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
52283633 8918 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
c9671f81
KH
8919 (CHAR_STRING): For 8-bit characters, call char_to_string.
8920 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
8921 multibyte sequence is always valid.
8922 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
52283633
SM
8923 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
8924 (str_as_unibyte): Extern them.
c9671f81 8925 (BCOPY_SHORT): Fix a bug.
52283633 8926 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
c9671f81
KH
8927 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
8928 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
8929 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
8930
bd4bde7f 8931 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81 8932 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
52283633
SM
8933 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
8934 (EMIT_BYTES): New macros.
8935 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
8936 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
c9671f81
KH
8937 macros deleted.
8938 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
8939 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
8940 check the validity of multibyte sequence.
8941 (decode_coding_emacs_mule): New function.
8942 (encode_coding_emacs_mule): New macro.
8943 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
8944 the source.
8945 (DECODE_ISO_CHARACTER): Just return a character code.
8946 (DECODE_COMPOSITION_START): Set coding->result instead of result.
8947 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
8948 EMIT_CHAR to produced decoded characters. Exit the loop only by
8949 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
8950 block here.
8951 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
8952 only position codes for an invalid character.
8953 (encode_designation_at_bol): Return new destination pointer. 5th
8954 arg DSTP is changed to DST.
8955 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
8956 from the source by ONE_MORE_CHAR. Don't handle the case of last
8957 block here.
8958 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
8959 macros deleted.
52283633
SM
8960 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
8961 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
c9671f81
KH
8962 TWO_MORE_BYTES to fetch a byte from the source.
8963 (encode_eol): Pay attention to coding->src_multibyte.
8964 (detect_coding, detect_eol): Preserve members src_multibyte and
8965 dst_multibyte.
8966 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
8967 (encoding_buffer_size): Set magnification to 3 for all coding
8968 systems that require encoding.
8969 (ccl_coding_driver): For decoding, be sure that the result is
8970 valid multibyte sequence.
8971 (decode_coding): Initialize coding->errors and coding->result.
8972 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
8973 and raw-text, always call decode_eol. Handle the case of last
8974 block here. If not coding->dst_multibyte, convert the resulting
8975 sequence to unibyte.
8976 (encode_coding): Initialize coding->errors and coding->result.
8977 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
8978 and raw-text, always call encode_eol. Handle the case of last
8979 block here.
8980 (shrink_decoding_region, shrink_encoding_region): Detect cases
8981 that we can't skip data more rigidly.
8982 (code_convert_region): Setup src_multibyte and dst_multibyte
8983 members of coding. For decoding, if the buffer is multibyte,
8984 convert the source sequence to unibyte in advance. For encoding,
8985 if the buffer is multibyte, convert the resulting sequence to
8986 multibyte afterward.
8987 (run_pre_post_conversion_on_str): New function.
8988 (code_convert_string): Deleted and divided into the following two.
8989 (decode_coding_string, encode_coding_string): New functions.
8990 (code_convert_string1, code_convert_string_norecord): Call one of
8991 above.
8992 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
8993 MAKE_NON_ASCII_CHAR.
52283633
SM
8994 (Fset_terminal_coding_system_internal)
8995 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
c9671f81
KH
8996 and dst_multibyte members.
8997 (init_coding_once): Initialize iso_code_class with new enum
8998 ISO_control_0 and ISO_control_1.
8999
9000 * coding.h (enum iso_code_class_type): Member ISO_control_code is
9001 devided into ISO_control_0 and ISO_control_1.
9002 (struct coding_system): New members src_multibyte, dst_multibyte,
9003 errors, and result. Delete member fake_multibyte.
9004 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
9005 nonzero.
9006 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
9007 nonzero.
9008
9009 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
9010 (Faset): Likewise.
9011
9012 * editfns.c (Fformat): Be sure to convert 8-bit characters to
9013 multibyte form.
9014 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
9015 combining occurs.
9016 (Ftranspose_region): Delete codes for handling byte combining.
9017
9018 * fileio.c (Finsert_file_contents): Setup src_multibyte and
9019 dst_multibyte members of coding. On handling REPLACE on unibyte
9020 buffer, convert the result of decode_coding to unibyte. On
9021 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 9022 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
9023 multibyteness of the source (buffer or string).
9024
9025 * fns.c (concat): Handle 8-bit characters correctly.
9026 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
9027 unibyte in the result.
9028 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
9029 valid multibyte form in the result.
9030 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
9031 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
9032 return -1, signal an error.
9033 (base64_encode_1): New arg MULTIBYTE. Get each character by
9034 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
9035 character is found, return -1.
9036 (Fbase64_decode_region): Delete codes for handling byte-combining.
9037 Treat each decoded byte as a unibyte character.
9038 (Fbase64_decode_string): Return unibyte string.
9039 (Fcompare_strings, concat, string_byte_to_char): Use
9040 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
9041 FETCH_STRING_CHAR_ADVANCE.
9042 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
9043 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
9044
9045 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
9046 SPLIT_NON_ASCII_CHAR.
9047 (fontset_ref_via_base, fontset_set): Likewise
9048
9049 * insdel.c (adjust_markers_for_record_delete): Deleted.
9050 (adjust_markers_for_insert): Argument changed. Caller changed.
9051 (adjust_markers_for_replace): Likewise.
52283633
SM
9052 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
9053 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
c9671f81
KH
9054 (copy_text): Delete unused local varialbe c_save. For converting
9055 to multibyte, be sure to make all 8-bit characters in valid
9056 multibyte form.
9057 (count_size_as_multibyte): Handle 8-bit characters correctly.
52283633
SM
9058 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
9059 (adjust_after_replace, replace_range, del_range_2)
c9671f81 9060 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
52283633
SM
9061 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
9062 (adjust_after_replace, replace_range, del_range_2) Delete codes for
c9671f81
KH
9063 handling byte combining.
9064 (adjust_before_replace): Deleted.
427ec082 9065
c9671f81
KH
9066 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
9067 SPLIT_NON_ASCII_CHAR.
9068 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
52283633 9069 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
9070 (Fkey_description): Likewise.
9071
9072 * lread.c (read1): On reading multibyte string, be sure to make
9073 all 8-bit chararacters in valid multibyte form.
9074 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
9075
9076 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
9077 unconditionally.
9078
9079 * process.c (Fstart_process): GCPRO current_dir before calling
9080 Ffind_operation_coding_system. Encode arguments here.
9081 (create_process): Don't encode arguments here. Setup
9082 src_multibyte and dst_multibyte members of struct coding.
9083 (read_process_output): Setup src_multibyte and dst_multibyte
9084 members of struct coding. If the output is to multibyte buffer,
9085 always decode the output of the process. Adjust the
52283633 9086 representation of 8-bit characters to the multibyteness of the output.
c9671f81
KH
9087 (send_process): Setup coding->src_multibyte according to the
9088 multibyteness of the source.
9089
52283633 9090 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
9091 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
9092 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
9093
52283633 9094 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
c9671f81
KH
9095
9096 * w16select.c (Fw16_set_clipboard_data): Setup members
9097 src_multibyte and dst_multibyte of coding. Adjusted for the
9098 change for find_charset_in_str.
9099 (Fw16_get_clipboard_data): Likewise.
9100
9101 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
9102 dst_multibyte of coding.
9103 (x_to_w32_font): Likewise.
9104
9105 * w32select.c (Fw32_set_clipboard_data): Setup members
9106 src_multibyte and dst_multibyte of coding. Adjusted for the
9107 change for find_charset_in_str.
9108 (Fw32_get_clipboard_data): Likewise.
9109
9110 * xdisp.c (get_next_display_element): Handle 8-bit characters
9111 correctly.
52283633
SM
9112 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
9113 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
c9671f81
KH
9114
9115 * xselect.c (selection_data_to_lisp_data): Setup members
9116 src_multibyte and dst_multibyte of coding. Adjusted for the
9117 change for find_charset_in_str.
9118 (lisp_data_to_selection_data): Likewise.
9119
5f64c9e0
GM
91202000-05-19 Gerd Moellmann <gerd@gnu.org>
9121
52283633 9122 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
2b63d473 9123
5f64c9e0
GM
9124 * dispextern.h (Vimage_types): Add extern declaration.
9125
9126 * xdisp.c (Vimage_types): Moved here from xfns.c.
9127 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
9128
9129 * xfns.c (Vimages_types): Moved to xdisp.c.
9130 (syms_of_xfns): Move `image-types' to xdisp.c.
9131
9132 * w32fns.c (Vimage_types): Removed.
9133 (syms_of_w32fns): Remove `image-types'.
9134
813086ea
KH
91352000-05-18 Kenichi Handa <handa@etl.go.jp>
9136
9137 * fns.c (map_char_table): Pay attention to character number of
9138 charset. Check the validity of charset at the first level. For
9139 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
9140 the default value.
9141
9142 * fontset.c: Include "buffer.h".
9143 (fs_load_font): If the face has fontset, record the face ID in
9144 that fontset.
9145 (Finternal_char_font): New function.
9146 (accumulate_font_info): New function.
9147 (Ffontset_info): Rewritten for the new fontset implementation.
9148 (syms_of_fontset): Register Vdefault_fontset in the first element
9149 of Vfontset_table. Include Vdefault_fontset in
9150 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
9151 function.
9152
bdaebbf0
DL
91532000-05-16 Dave Love <fx@gnu.org>
9154
9155 * m/iris5d.h: Deleted -- unused.
9156
cb613bb8
GM
91572000-05-16 Gerd Moellmann <gerd@gnu.org>
9158
b15f3b77
GM
9159 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
9160 `invalid' instead of `illegal'.
9161
9162 * indent.c (Fmove_to_column): When ending within a tab, insert
9163 spaces first so that markers at the end of the tab get adjusted.
9164
835c1b36
GM
9165 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
9166 buffer list that wasn't selected in that frame.
9167
cb613bb8
GM
9168 * filelock.c (get_boot_time): To obtain an 8 char file name, which
9169 is needed on mescaline, use a 2 char prefix, and call
9170 make_temp_name with second arg non-zero.
9171
9172 * fileio.c (make_temp_name): New function, extracted from
9173 Fmake_temp_name.
9174 (Fmake_temp_name): Use it.
9175
f685bea9
EZ
91762000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
9177
52283633 9178 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
f685bea9 9179
a1b8d58b
GM
91802000-05-15 Gerd Moellmann <gerd@gnu.org>
9181
9182 * Makefile.in (lisp): Add env.elc.
9183
9184 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
9185
a265079f
GM
91862000-05-12 Gerd Moellmann <gerd@gnu.org>
9187
9188 * search.c (Freplace_match): Handle case of `\N' in the
9189 replacement when there's no group N.
9190
da4496b6
GM
91912000-05-11 Gerd Moellmann <gerd@gnu.org>
9192
0ace421a
GM
9193 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
9194 of the message to message_dolog.
9195
1172eb8d
GM
9196 * keyboard.c (read_char): Don't clear current message for help
9197 events; let the code handling help events handle this. Change
9198 code detecting help events that should be ignored.
9199
da4496b6
GM
9200 * xdisp.c (handle_single_display_prop): Don't try to set PT if
9201 we're interating over a string.
9202
0623e40f
DL
92032000-05-09 Dave Love <fx@gnu.org>
9204
9205 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
9206 that offset before writing. Move gcpro region past call of
9207 Ffile_regular_p.
9208
bae2503b
DL
92092000-05-04 Dave Love <fx@gnu.org>
9210
9211 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
9212
ec82fb2f
GM
92132000-05-04 Gerd Moellmann <gerd@gnu.org>
9214
9215 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
9216 of inserted characters when BUF equals the current buffer, and PT
9217 is in front of or equal to FROM.
9218
cbf18892
GM
92192000-05-03 Gerd Moellmann <gerd@gnu.org>
9220
4ff40dd0
GM
9221 * xdisp.c (handle_single_display_prop): If display property value
9222 is invalid, or something not supported on the frame, restore
9223 iterator's position to what it was initially. Make sure to return
9224 0 for invalid and unsupported property values.
9225
cbf18892
GM
9226 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
9227 that x_per_char_metric returns null.
9228
1b0672c3
GM
92292000-05-02 Gerd Moellmann <gerd@gnu.org>
9230
576da55d
GM
9231 * xterm.h (struct face): Add forward declaration.
9232 (struct image): Ditto.
9233 (image_ascent): Add prototype.
9234
9235 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
9236 (x_draw_image_relief, x_draw_image_foreground_1): Call function
9237 image_ascent instead of using IMAGE_ASCENT.
9238
9239 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
9240 (IMAGE_ASCENT): Removed.
9241
9242 * xfns.c (Qcenter): New variable.
9243 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
9244 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
9245 (image_ascent): New function.
9246 (lookup_image): Recognize `:ascent center'.
9247 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
9248 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
9249 (xbm_load): Don't set image's ascent here.
9250 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
9251 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
9252 check ascent values here.
9253 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
9254 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
9255 (syms_of_xfns): Initialize Qcenter.
9256
1b0672c3
GM
9257 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
9258 to the limits, increase the limits.
9259
0d7811ed
KH
92602000-05-01 Kenichi Handa <handa@etl.go.jp>
9261
9262 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
52283633 9263 Check Vfont_encoding_alist against the full name of the opened font.
0d7811ed 9264
a943a5ca
GM
92652000-04-28 Gerd Moellmann <gerd@gnu.org>
9266
9267 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
9268 taller than the window.
9269
5dba1e29
KH
92702000-04-28 Kenichi Handa <handa@etl.go.jp>
9271
9272 * xfaces.c (realize_x_face): Fix the argument of the second
9273 xassert. BASE_FACE may not be a face for ASCII.
9274
353964e3
GM
92752000-04-27 Gerd Moellmann <gerd@gnu.org>
9276
c76e04a8
GM
9277 * print.c (print_object): Treat print-length < 0 as nil.
9278
9279 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
9280
9281 * s/freebsd.h (TERMCAP_OBJ): Removed.
9282 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
9283
9284 * lread.c (read1): Don't treat period followed by certain
9285 characters as symbol start.
9286
9287 * xfns.c (slurp_file): New function.
9288 (xbm_image_p): Handle case of in-memory XBM files.
9289 (xbm_scan): Rewritten to work on memory buffers instead of files.
9290 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
9291 Work on memory buffers instead of files. If DATA is null test
9292 if buffer looks like an in-memory XBM file.
9293 (xbm_load_image): Renamed from xbm_load_image_file. Work on
9294 memory buffers instead of files.
9295 (xbm_file_p): New function.
9296 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
9297
353964e3
GM
9298 * lread.c (end_of_file_error): New function.
9299 (read1): Call it instead of signaling `end-of-file' directly.
9300
427ec082 9301 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
9302 with Fprinc instead of Fprin1.
9303
24d744ac
KR
93042000-04-26 Ken Raeburn <raeburn@gnu.org>
9305
9306 * window.c (freeze_window_start): Check that minibuffer scroll
9307 window isn't nil before extracting the window structure pointer
9308 from it.
9309
9310 * undo.c (record_delete): If we hit the end of the undo list, stop
9311 picking elements apart.
9312
7464346d
GM
93132000-04-26 Gerd Moellmann <gerd@gnu.org>
9314
9315 * xdisp.c (display_line): If lines are continued, restore
9316 iterator's ascent/descent information to the values before the
9317 first glyph not fitting on the line.
9318
612839b6
GM
93192000-04-25 Gerd Moellmann <gerd@gnu.org>
9320
9321 * xdisp.c (try_window_id) <all changes above window start>: Adjust
52283633 9322 positions in glyph matrix. Don't compute new window end positions.
612839b6
GM
9323
9324 * dispnew.c (increment_matrix_positions): Renamed from
9325 increment_glyph_matrix_buffer_positions.
9326 (increment_row_positions): Renamed from
9327 increment_glyph_row_buffer_positions.
9328
9329 * dispextern.h: Change names of renamed functions from dispnew.c
9330 in prototypes.
9331
cc181e95
GM
93322000-04-24 Gerd Moellmann <gerd@gnu.org>
9333
abfcc168
GM
9334 * fileio.c (Fdo_auto_save): Create directories for auto-save
9335 list file if necessary.
9336
cc181e95
GM
9337 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
9338 from buffer or frame.
9339 (automatic_hscrolling_p): New variable.
9340 (hscroll_windows): Scroll windows horizontally only if automatic
9341 hscrolling is allowed.
9342 (syms_of_xdisp): New variable `automatic-hscrolling'.
9343
9344 * frame.h (struct frame): Add member extra_line_spacing.
9345
9346 * xfns.c (x_set_line_spacing): New function.
9347 (Fx_create_frame): Set line spacing from resources.
9348 (Qline_spacing): New variable.
9349 (syms_of_xfns): Initialize Qline_spacing.
427ec082 9350
cc181e95
GM
9351 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
9352
9353 * buffer.c (init_buffer_once): Handle extra_line_spacing.
9354 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 9355 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
9356 extra_line_spacing from default value.
9357 (init_buffer_once): Initialize default value of extra_line_spacing.
9358
9359 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
9360 and extra3.
9361
9362 * xterm.c (x_produce_glyphs): Remove reference to struct it's
9363 prompt_width. Add extra line spacing.
9364
9365 * term.c (produce_glyphs): Remove reference to struct it's
9366 prompt_width.
9367
9368 * dispextern.h (struct it): Remove member prompt_width, add
9369 extra_line_spacing.
9370
58827478
GM
93712000-04-22 Gerd Moellmann <gerd@gnu.org>
9372
9373 * dispnew.c (update_frame_line): When writing a whole line, make
9374 sure cursor is in the right row afterwards, otherwise a use of
9375 capability `ch' in cmgoto might leave the cursor in the row below.
9376
25a87f42
GM
93772000-04-21 Gerd Moellmann <gerd@gnu.org>
9378
9379 * lisp.h (struct Lisp_Buffer_Cons): Remove.
9380
9381 * keyboard.c (timer_check): Fix typo in comment.
9382
54edf5c2
KH
93832000-04-21 Kenichi Handa <handa@etl.go.jp>
9384
9385 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
9386 name change: ch -> character.
9387
3a64eef5
GM
93882000-04-20 Gerd Moellmann <gerd@gnu.org>
9389
9390 * keyboard.c (echo_message_buffer): New variable.
9391 (echo_now): Set echo_message_buffer to the echo area buffer used
9392 to display the echo.
9393 (cancel_echoing): Reset echo_message_buffer to nil.
9394 (read_char): Code rewritten that handles canceling an echo or
9395 echoing a dash, respectively.
9396
9397 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
9398 directory doesn't exist.
9399
6142fdcb
DL
94002000-04-19 Dave Love <fx@gnu.org>
9401
9402 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
9403 (concat): Don't allow numeric args.
9404 (Fconcat): Doc change.
6142fdcb 9405
ac6b5352
SM
94062000-04-19 Stefan Monnier <monnier@cs.yale.edu>
9407
9408 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
9409 instead define end_match(1|2) more carefully.
9410 Use GET_CHAR_BEFORE_2 for `begline'.
9411
cb9215e4
GM
94122000-04-19 Gerd Moellmann <gerd@gnu.org>
9413
5e3dac3f
GM
9414 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
9415 on 64-bit systems where NULL is defined as `0'.
9416
9417 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
9418 the `variable argument list' to make it work on Alpha.
9419
cb9215e4
GM
9420 * m/alpha.h (_LP64) [!_LP64]: Define.
9421 (ORDINARY_LINK): Define for NetBSD.
9422
9423 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 9424
f532dca0
DL
94252000-04-19 Dave Love <fx@gnu.org>
9426
c750667e
DL
9427 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
9428 change.
9429
9430 * Makefile.in (LIBS): Don't use.
9431 (GETLOADAVG_OBJ): Define again.
9432 (otherobj): Add GETLOADAVG_OBJ.
9433
f532dca0
DL
9434 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
9435
1c7e22fd
GM
94362000-04-18 Gerd Moellmann <gerd@gnu.org>
9437
f6d3257b
GM
9438 * lread.c (read_filtered_event): Cancel and start busy cursor.
9439
427ec082 9440 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
9441 that the per-character metrics may be null.
9442
e10f64e7
GM
94432000-04-17 Gerd Moellmann <gerd@gnu.org>
9444
0daee095
GM
9445 * buffer.c (clone_per_buffer_values): New function.
9446 (Fmake_indirect_buffer): Add optional argument CLONE. Call
9447 clone_per_buffer_values if CLONE is not nil.
9448
e10f64e7
GM
9449 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
9450
38687d43
DL
94512000-04-16 Dave Love <fx@gnu.org>
9452
9453 * Makefile.in: Remove obsolete localcpp stuff.
9454 (GETLOADAVG_OBJ): Don't define.
9455 (obj): Move LIBOBJS...
9456 (otherobj): ... to here.
9457 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
9458 whitespace-only lines after the continuation (Irix).
9459
c21c7262
GM
94602000-04-14 Gerd Moellmann <gerd@gnu.org>
9461
9462 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
9463
9464 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
9465
314767c0
DL
94662000-04-14 Dave Love <fx@gnu.org>
9467
9468 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
9469 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
9470 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
9471 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
9472 NLIST_STRUCT.
9473
9474 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
9475 autoconfiscated HAVE_GETLOADAVG.
9476
9477 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
9478 BROKEN_MKTIME.
9479
a2522dca
GM
94802000-04-14 Gerd Moellmann <gerd@gnu.org>
9481
9482 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
52283633 9483 (fill_in_lock_file_name): Avoid existing files that aren't links.
a2522dca 9484
33744b5d
DL
94852000-04-14 Dave Love <fx@gnu.org>
9486
c21c7262 9487 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
9488 (INTERVAL_SRC): Convert to make variable.
9489 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
9490 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
9491 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
9492 add LIBOBJS.
9493 (SOME_MACHINE_OBJECTS): Remove interval stuff.
9494 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
9495 (shortlisp): Add facemenu, float-sup, frame.
9496 (SOME_MACHINE_LISP): Remove them from here.
9497 (LIBES): Change unused LDLIBS to autoconf LIBS.
9498
9499 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
9500
9d3d5916
KH
95012000-04-14 Kenichi Handa <handa@etl.go.jp>
9502
9503 * composite.c (update_compositions): If FROM and TO are not in a
9504 valid range, do nothing.
9505
198e3c7a
GM
95062000-04-13 Gerd Moellmann <gerd@gnu.org>
9507
52283633 9508 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
198e3c7a 9509
52283633 9510 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
198e3c7a
GM
9511
9512 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
9513 as TERMCAP_OBJ.
9514
055a28c9
EZ
95152000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
9516
9517 * fileio.c (a_write): Remove redundant semi-colons.
9518 (e_write): Return -1 if failed to write all the data.
9519 This fixes the changes made at 1999-12-15.
9520
f5c75033
DL
95212000-04-12 Dave Love <fx@gnu.org>
9522
9523 * fns.c (mapcar1): Test for null vals to support mapc.
9524 (Fmapc): New function.
9525
0c3cfc51
EZ
95262000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
9527
9528 * msdos.c (NUM_MOUSE_BUTTONS): Define.
9529 (IT_frame_up_to_date): Support the buffer local value of
9530 cursor-type, if defined.
9531
33465a31
DL
95322000-04-10 Dave Love <fx@gnu.org>
9533
9534 * editfns.c (preceding-char, following-char): Doc fix.
9535
6ed56568
KR
95362000-04-10 Ken Raeburn <raeburn@gnu.org>
9537
9538 * Makefile.in (temacs): Revert 2000-03-12 change.
9539
7cf80d4e
JR
95402000-04-10 Jason Rumney <jasonr@gnu.org>
9541
9542 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
9543
34f3f342
GM
95442000-04-10 Gerd Moellmann <gerd@gnu.org>
9545
1a1b1895
GM
9546 * xdisp.c (setup_echo_area_for_printing): Choose an echo
9547 area buffer, if it's not set up yet.
9548
34f3f342
GM
9549 * indent.c (compute_motion): Set immediate_quit.
9550
be0dbdab
GM
95512000-04-09 Gerd Moellmann <gerd@gnu.org>
9552
52283633 9553 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
c45be9ac
GM
9554 (realize_tty_face): Suppress boldness if colors are the inverse of
9555 the default colors, and tty_suppress_bold_inverse_default_colors_p
9556 is set.
9557 (Ftty_suppress_bold_inverse_default_colors): New function.
9558 (syms_of_xfaces): Defsubr it.
9559
be0dbdab
GM
9560 * buffer.c (Frestore_buffer_modified_p): New function.
9561 (syms_of_buffer): Defsubr it.
9562
e8413c3b
KR
95632000-04-08 Ken Raeburn <raeburn@gnu.org>
9564
87f67317
KR
9565 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
9566 charset id (int) argument, not a charset (Lisp_Object).
9567
e8413c3b
KR
9568 * coding.h (code_convert_string): Declare.
9569 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
9570 object, as the fourth argument to code_convert_string.
9571
52283633 9572 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
e8413c3b
KR
9573 (Fset_fontset_font): Use EQ to compare lisp objects.
9574
7c752c80
KR
95752000-04-05 Ken Raeburn <raeburn@gnu.org>
9576
c0333abc
KR
9577 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
9578 a pointer that looks like a lisp object.
9579 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
9580 zero, instead see whether it's an integer object, since they can't
9581 have intervals.
9582 (GET_INTERVAL_OBJECT): Simply assign to the destination.
9583
52283633
SM
9584 * dispnew.c (allocate_matrices_for_frame_redisplay)
9585 (direct_output_forward_char): Use X(U)INT and make_number as needed
7c752c80
KR
9586 to convert between (unsigned) int values and lisp integers.
9587 * keyboard.c (read_key_sequence): Likewise.
9588 * lread.c (substitute_object_recurse): Likewise.
9589 * fns.c (concat, hash_lookup, hash_remove): Likewise.
52283633
SM
9590 * minibuf.c (do_completion, Fminibuffer_complete_word)
9591 (Fminibuffer_completion_help): Likewise.
7c752c80
KR
9592 * term.c (produce_special_glyphs): Likewise.
9593
9594 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
9595 * print.c (print_preprocess, print_object): Likewise.
9596
9597 * search.c (compile_pattern): Use NILP when checking for nil.
9598
74e49b38
KR
9599 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
9600 __OPTIMIZE__]: Provide a GNU C macro version that handles
9601 lisp-object unions.
9602 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
9603 field, to better cope with ENABLE_CHECKING and calls that modify a
9604 Lisp_Object using its old value.
9605
685e5ed2
GM
96062000-04-04 Gerd Moellmann <gerd@gnu.org>
9607
c407c570
GM
9608 * window.c (compare_window_configurations): Signal an error
9609 if parameters C1 or C2 aren't window configurations.
9610
685e5ed2
GM
9611 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
9612 AFTER_POTENTIAL_GC calls around calls to functions that can
9613 signal an error and thus invoke the debugger.
9614
587a49ab
GM
96152000-04-03 Gerd Moellmann <gerd@gnu.org>
9616
62f20204
GM
9617 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
9618 an error if decoding fails.
9619
587a49ab
GM
9620 * keyboard.c (lispy_mouse_names): Variable removed.
9621 (Vlispy_mouse_stem): New variable.
9622 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
9623 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
9624 for any mouse button number. Increase size of mouse_syms and
9625 button_down_location as needed. Call modify_event_symbol with
9626 different arguments.
9627 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
9628 Call modify_event_symbol with different arguments.
9629 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
9630 for any button number. Call modify_event_symbol with different
9631 arguments.
9632 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
9633 Accept a string for NAME_ALIST_OR_STEM.
9634
9635 * lisp.h (larger_vector): Add prototype.
9636
9637 * fns.c (larger_vector): Make externally visible.
9638
9639 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
9640
2d1675e4
SM
96412000-04-02 Stefan Monnier <monnier@cs.yale.edu>
9642
9643 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
9644 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
9645 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
9646 we are between str1 and str2.
9647 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
9648 (PATFETCH): Use `TRANSLATE'.
9649 (PATFETCH_RAW): Fetch multibyte char if applicable.
9650 (PATUNFETCH): Remove.
9651 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
9652 When writing a char, write it directly into the pattern buffer rather
9653 than going needlessly through a temp char-array.
9654 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
9655 multibyte magic and remove the useless `#ifdef emacs'.
9656 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
9657 buffer.
9658
9659 * regex.h (struct re_pattern_buffer): Make field `multibyte'
9660 conditional on `emacs'.
9661
9662 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
9663
cc2d8c6b
KR
96642000-04-01 Ken Raeburn <raeburn@gnu.org>
9665
9666 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
9667 non-union-type versions of XMARK and friends here, because XMARK
9668 and friends won't work on an integer field if NO_UNION_TYPE is not
9669 defined.
52283633 9670 (make_number): Define as a function if it's not defined as a macro.
cc2d8c6b 9671
52283633 9672 * composite.c (run_composite_function): Use NILP when checking for nil.
09654086
KR
9673 (syms_of_composite): Delete local var NARGS, pass an int as first
9674 argument to Fmake_hash_table.
9675
2387b382
KR
9676 * editfns.c (text_property_stickiness): Use NILP to test
9677 Lisp_Object boolean value.
9678 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
9679 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
9680 problems reading from and changing the same lisp value in an
9681 XSETSTRING call.
9682
27660e89
GM
96832000-04-01 Gerd Moellmann <gerd@gnu.org>
9684
9685 * term.c (TN_no_color_video): New variable.
9686 (term_init): Intitialize TN_no_color_video.
9687 (enum no_color_bit): New enumeration.
9688 (MAY_USE_WITH_COLORS_P): New macro.
9689 (turn_on_face): Use it to determine if attributes may be used
9690 combined with colors.
9691
3578db3c
KR
96922000-04-01 Ken Raeburn <raeburn@gnu.org>
9693
9694 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
52283633 9695 with int lvalues via casts; instead, just yield lisp object lvalues.
3578db3c
KR
9696 (enlarge_window): Variable sizep now points to Lisp_Object. Use
9697 proper accessor macros.
9698 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
9699 (grow_mini_window): Fix typo getting int value of root->height.
9700
6fc556fd
KR
9701 * xdisp.c (compute_string_pos): Fix order of arguments to
9702 string_pos_nchars_ahead.
9703 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
9704 count arg to variable-arg routines like Frun_hook_with_args and
9705 Fformat.
587a49ab
GM
9706 (back_to_previous_visible_line_start)
9707 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
9708 fixed-arg routines like Fget_char_property and Fmake_string.
9709 (reconsider_clip_changes): Use XINT when comparing integer lisp
9710 objects, or passing them as int arguments.
587a49ab
GM
9711 (mark_window_display_accurate, insert_left_trunc_glyphs)
9712 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
9713 storing or passing integer values as lisp objects.
9714 (set_cursor_from_row, highlight_trailing_whitespace): Use
9715 INTEGERP, not implicit test against zero, for glyph object.
9716 (try_window_id): Don't use make_number when we want an int value.
9717
9718 * xfaces.c (xlfd_symbolic_value): Make last argument a
9719 Lisp_Object, to be consistent with callers.
9720 (Fbitmap_spec_p): Use XINT to get numeric value of height.
9721 (lface_hash): Apply XFASTINT to lisp values before folding in.
9722
9723 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
9724 fill in window width and height. Pass an int, not a lisp object,
9725 as first arg to Finsert.
9726
6e7b2457
GM
97272000-04-01 Gerd Moellmann <gerd@gnu.org>
9728
610d841e
GM
9729 * xfaces.c (realize_basic_faces): Block input while realizing
9730 the faces.
9731
6e7b2457
GM
9732 * keyboard.c (lispy_mouse_names): Add additional mouse names.
9733
9734 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
9735
aa110c0c
GM
97362000-03-31 Gerd Moellmann <gerd@gnu.org>
9737
9738 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 9739 or ASCII, handle case that per-char metric is null.
aa110c0c 9740
8801a864
KR
97412000-03-30 Ken Raeburn <raeburn@gnu.org>
9742
c6129d7e
KR
9743 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
9744
52283633
SM
9745 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
9746 (XSUBR, XBUFFER): Verify correct object type before returning
8801a864
KR
9747 pointer, using eassert.
9748 * frame.h (XFRAME): Likewise.
9749
52283633
SM
9750 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
9751 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
9752 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
8801a864 9753 * data.c (set_internal): Likewise.
52283633
SM
9754 * dispextern.h (WINDOW_WANTS_MODELINE_P)
9755 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
8801a864
KR
9756 * fileio.c (auto_save_1): Likewise.
9757 * insdel.c (check_markers): Likewise.
9758 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
9759 * undo.c (record_insert): Likewise.
9760 * vmsproc.c (child_sig): Likewise.
9761 * window.c (unshow_buffer, window_loop): Likewise.
9762 * xterm.c (x_erase_phys_cursor): Likewise.
9763
8e7af858
GM
97642000-03-30 Gerd Moellmann <gerd@gnu.org>
9765
9766 * xfns.c (free_image_cache): Free the cache structure itself
9767 last, after all its members have been freed.
9768
9769 * lisp.h (xstrdup): Add prototype.
9770
9771 * alloc.c (xstrdup): Moved here from xfaces.c.
9772 (allocating_for_lisp): Variable removed.
52283633 9773 (lisp_malloc): Block input around the calls to malloc and mem_insert.
8e7af858
GM
9774
9775 * xfaces.c (realize_tty_face): Use find_symbol_value instead
9776 of Fsymbol_value.
9777 (xstrdup): Moved to alloc.c.
9778
e0b8c689
KR
97792000-03-29 Ken Raeburn <raeburn@gnu.org>
9780
b96f9fb7
KR
9781 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
9782
9783 * emacs.c (main): Fix sense of no-loadup test.
9784
e0b8c689
KR
9785 * config.in (ENABLE_CHECKING): Undef.
9786
9787 * lisp.h (struct interval): Replace "parent" field with a union of
9788 interval pointer and Lisp_Object; add new bitfield to use as
9789 discriminant. Change other flag fields to bitfields.
9790 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
52283633
SM
9791 is defined and the supplied test fails, print a message and abort.
9792 (eassert): New macro. Use CHECK to provide an assert-like facility.
e0b8c689
KR
9793
9794 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
9795 pointers; abort if the value looks like a lisp object.
52283633
SM
9796 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
9797 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
e0b8c689
KR
9798 Modify for new interval parent definition.
9799
52283633
SM
9800 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
9801 (UNMARK_BALANCE_INTERVALS): Update references that need an
e0b8c689
KR
9802 addressable lisp object in the interval structure.
9803 (die): New function.
9804 (suppress_checking): New variable.
9805
9806 * intervals.c (interval_start_pos): Just return 0 if there's no
9807 parent object.
9808
f83c5440
GM
98092000-03-29 Gerd Moellmann <gerd@gnu.org>
9810
9811 * lread.c (read1): Accept `.' (period) as symbol start like in CL
9812 and earlier Emacs versions.
9813
9814 * keyboard.c (Ftop_level): Cancel busy-cursor.
9815
9816 * eval.c (call_debugger): Cancel busy-cursor.
9817
fdce64ff
KH
98182000-03-29 Kenichi Handa <handa@etl.go.jp>
9819
9820 * search.c (Freplace_match): Adjust multibyteness of the current
52283633 9821 buffer and NEWTEXT. Free allocated memory before signaling an error.
fdce64ff 9822
f6a3f532
SM
98232000-03-28 Stefan Monnier <monnier@cs.yale.edu>
9824
9825 * regex.c (analyse_first): New function obtained by ripping out most
9826 of re_compile_fastmap and generalizing it a little bit so that it
9827 can also just return whether a given (sub)pattern can match the empty
9828 string or not.
9829 (regex_compile): Use `analyse_first' to decide whether the loop-check
9830 needs to be done or not for *, +, *? and +? (the loop check is costly
9831 for non-greedy repetition).
9832 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
9833
e9b309ac
DL
98342000-03-28 Dave Love <fx@gnu.org>
9835
52283633 9836 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
bb15bd9a 9837
e9b309ac
DL
9838 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
9839
ed0767d8
SM
98402000-03-27 Stefan Monnier <monnier@cs.yale.edu>
9841
9842 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
9843 an expression.
9844 (enum re_opcode_t): Update description of succeed_n.
9845 (PATFETCH): Always define.
9846 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
9847 operators, char classes, shy-groups and intervals).
9848 Optimize special cases of intervals so as to only use succeed_n and
9849 jump_n when really needed.
9850 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
9851 that we don't have to handle the special cases any more.
9852 Simplify on_failure_jump handling as well.
9853
e11e7e46
JR
98542000-03-28 Jason Rumney <jasonr@gnu.org>
9855
9856 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
9857
88faab89
GM
98582000-03-27 Gerd Moellmann <gerd@gnu.org>
9859
182ff242
GM
9860 * s/freebsd.h (GC_SETJMP_WORKS): Define.
9861
9862 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 9863
182ff242
GM
9864 * alloc.c (mark_maybe_object): New function.
9865 (mark_memory): Use it.
9866 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
9867 (setjmp_tested_p, longjmp_done): New variables.
9868 (test_setjmp): New function.
9869 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
9870 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
9871
c1005d06
GM
9872 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
9873 to DEC_TEXT_POS and INC_TEXT_POS.
9874
9875 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
9876 with parameter MULTIBYTE_P.
9877
52283633 9878 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
c1005d06 9879
7439e5b9 9880 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
9881 buffers because it looks for multibyte character byte sequences
9882 which don't exist in unibyte text.
7439e5b9 9883
d9c545da
GM
9884 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
9885
11fd416e 9886 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
9887 [DEBUG_X_COLORS]: New functions.
9888 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
9889
9890 * xfns.c (x_set_cursor_color): Get color reference counts right.
9891
9892 * xterm.c (x_copy_color): New function.
9893 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
9894
9895 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
9896 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
9897 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
9898 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
9899 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
9900 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
9901 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
9902 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
9903 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
9904 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
9905
11fd416e
GM
9906 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
9907 names for handling per-buffer variables.
d9c545da
GM
9908
9909 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
9910 instead of MAX_BUFFER_LOCAL_VARS.
9911 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
9912
9913 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
9914
88faab89
GM
9915 * xfns.c (x_specified_cursor_type): New function.
9916 (x_set_cursor_type): Use it.
9917
9918 * buffer.h (struct buffer): Add cursor_type.
9919
d80f42b7
SM
99202000-03-26 Stefan Monnier <monnier@cs.yale.edu>
9921
9922 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
52283633
SM
9923 (print_partial_compiled_pattern, re_compile_fastmap):
9924 Handle new opcode.
d80f42b7
SM
9925 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
9926 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
9927 executing it as well as when popping it off the stack to find infinite
9928 loops in non-greedy repetition operators.
9929
89e80928
GM
99302000-03-26 Gerd Moellmann <gerd@gnu.org>
9931
3d4ff2dd
GM
9932 * doc.c (Qfunction_documentation): New variable.
9933 (syms_of_doc): Initialize Qfunction_documentation.
9934 (Fdocumentation): If FUNCTION is a symbol with non-nil
9935 `function-documentation' property, return a documentation derived
9936 from that.
9937
bd96bd79
GM
9938 * buffer.c (syms_of_buffer): Add default-cursor-type.
9939 (init_buffer_once): Don't let cursor_type have a local value
9940 in every buffer.
9941
19d1bc27
GM
9942 * xterm.c (x_display_and_set_cursor): Choose cursor depending
9943 on buffer-local value of cursor_type.
9944 (x_draw_bar_cursor): Add parameter WIDTH.
9945
9946 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
9947 (init_buffer_once): Set default cursor_type value to t.
9948 Mark cursor_type as local everywhere.
9949 (syms_of_buffer): New per-buffer variable cursor-type.
9950
89e80928
GM
9951 * buffer.h (struct buffer): Remove member local_var_flags,
9952 add local_flags.
9953 (MAX_BUFFER_LOCAL_VARS): New macro.
9954 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
9955 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
9956 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
9957 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
9958
52283633 9959 * print.c (print_object): Use new macros for per-buffer variables.
89e80928
GM
9960
9961 * category.c (Fset_category_table): Use new macros for per-buffer
9962 variables.
9963
9964 * buffer.c (buffer_permanent_local_flags): Make a char array.
9965 (max_buffer_local_idx): New variable.
9966 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
9967 for new handling of per-buffer variables.
9968 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
9969 (init_buffer_once): Initialize per-buffer vars differently.
9970 Set max_buffer_local_idx.
9971
9972 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
9973 variables.
9974
52283633 9975 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
89e80928
GM
9976
9977 * data.c (do_symval_forwarding, store_symval_forwarding)
9978 (find_symbol_value, set_internal, default_value, Fset_default)
9979 (Fkill_local_variable, Flocal_variable_p): Use new macros for
9980 per-buffer variables.
9981
9982 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
9983
9a0dd3dc
GM
99842000-03-24 Gerd Moellmann <gerd@gnu.org>
9985
b68c375f
GM
9986 * xterm.c (x_term_init): Unblock input around call1 of
9987 Qvendor_specific_keysyms.
9988
9a0dd3dc
GM
9989 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
9990 (find_defun_start): Consider an open parenthesis in column 0
9991 a defun start only if open_paren_in_column_0_is_defun_start is set.
9992 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
9993
7973e637
SM
99942000-03-24 Stefan Monnier <monnier@cs.yale.edu>
9995
9996 * eval.c (Fautoload): Add entry in load-history (if after dump).
9997 * lread.c (load-history): Update docstring.
9998
39210e90
GM
99992000-03-24 Gerd Moellmann <gerd@gnu.org>
10000
10001 * indent.c (Fvertical_motion): Always use the current buffer.
10002 Temporarily change the window's buffer, if necessary.
10003
72db3ab5
GM
100042000-03-23 Gerd Moellmann <gerd@gnu.org>
10005
10006 * xterm.c (fast_find_position): Make sure not to consider rows
10007 not visible in the window.
10008
990b2375
SM
100092000-03-22 Stefan Monnier <monnier@cs.yale.edu>
10010
10011 * regex.c (enum syntaxcode): Provide default for non-Emacs.
10012 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
10013
ff4df011
JR
100142000-03-22 Jason Rumney <jasonr@gnu.org>
10015
10016 * w32menu.c (single_submenu): Set help string to NULL if none.
10017 (w32_menu_show): Set help string correctly.
10018 (add-menu-item): Set help string in MIIM_DATA for menu item.
10019 Load SetMenuItemInfoA explicitly.
10020 (w32_menu_display_help): New function.
427ec082 10021
ff4df011
JR
10022 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
10023 (QCdata): Moved to xdisp.c.
10024
10025 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
10026 (Vw32_charset_to_codepage_alist): Removed.
10027 (Vw32_charset_info_alist): New variable.
52283633
SM
10028 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
10029 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
10030 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
ff4df011
JR
10031 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
10032 with TODO comment.
10033 (w32_codepage_for_font): Use Vw32_charset_info_alist.
10034 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
10035 Define Vw32_charset_info_alist and w32_charset symbols.
10036
100372000-03-22 Jason Rumney <jasonr@gnu.org>
10038
10039 * makefile.nt (w32bdf.obj): Update dependencies.
10040
10041 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
10042
10043 * w32fns.c: Include fontset.h after dispextern.h.
10044 (Fx_create_frame): Do not create fontset.
10045 (w32_load_system_font): Doc fix.
10046 (Fx_close_connection): Free full_name if it is not shared.
10047
10048 * w32term.c: Include fontset.h after dispextern.h.
52283633
SM
10049 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
10050 Callers updated.
ff4df011
JR
10051 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
10052 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
10053 (w32_font_is_double_byte): New function, needs body.
10054 (x_append_glyph): Set glyph->glyph_not_available_p.
10055 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
10056 it->charset. If it->multibyte_p is zero and it->c is a multibyte
10057 character, convert it to a unibyte character.
10058 (struct glyph_string): Delete member `charset'.
10059 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
10060 calculating it is found.
10061 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
10062 the case that per char metric is not available correctly.
10063 (x_fill_glyph_string): Handle the case that the specific glyph is
10064 not available correctly.
10065 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
10066 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
10067 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
10068 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
10069 fontset. Don't call FS_LOAD_FONT.
10070
439d5cb4
KR
100712000-03-22 Ken Raeburn <raeburn@gnu.org>
10072
10073 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
10074 (INT_LISPLIKE): New macro.
10075 (NULL_INTERVAL_P): Use it.
52283633
SM
10076 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
10077 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
10078 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
439d5cb4
KR
10079
10080 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
10081 explicit references to "parent" field of struct interval and
10082 associated unclean type conversions.
52283633
SM
10083 * intervals.c (create_root_interval, root_interval, rotate_right)
10084 (rotate_left, balance_possible_root_interval, split_interval_right)
10085 (split_interval_left, interval_start_pos, find_interval)
10086 (next_interval, previous_interval, update_interval)
10087 (adjust_intervals_for_insertion, delete_node, delete_interval)
10088 (adjust_intervals_for_deletion, merge_interval_right)
10089 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
10090 (copy_intervals_to_string): Likewise.
439d5cb4
KR
10091 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
10092 Likewise.
10093 * syntax.c (update_syntax_table): Likewise.
10094
10095 * intervals.c (reproduce_tree_obj): New function, like
10096 reproduce_tree but takes a Lisp_Object for the parent. Declare
10097 with prototype.
10098 (graft_intervals_into_buffer): Use it when appropriate.
10099 (reproduce_tree): Declare with prototype.
10100 (balance_possible_root_interval): Check that the parent is a lisp
10101 object before trying to examine its type.
10102
ee1c5b21
GM
101032000-03-22 Gerd Moellmann <gerd@gnu.org>
10104
10105 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
10106 as strings only if both are known to be strings.
10107
10108 * s/openbsd.h (LIBS_TERMCAP): Undef.
10109
1fb352e0
SM
101102000-03-21 Stefan Monnier <monnier@cs.yale.edu>
10111
10112 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
10113 definitions for non-Emacs compilation.
10114 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
10115 outside of `#ifdef emacs'.
10116 (print_partial_compiled_pattern): Update.
10117 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
10118 (re_compile_fastmap): Merge handling of charset and charset_not (for
10119 emacs and non-emacs compilation as well).
10120 Similarly for (not)categoryspec and (not)syntaxspec.
10121 Don't use the fastmap when reaching `anychar' since the added
10122 complexity is not justified.
10123 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
10124 and (not)syntaxspec. Merge (not)categoryspec.
10125
fdaa1f77
KH
101262000-03-22 Kenichi Handa <handa@etl.go.jp>
10127
52283633
SM
10128 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
10129 (FACE_FOR_CHAR): Define them differently for the configuration of
ff1a0d8e 10130 --without-x.
fdaa1f77 10131
d152fb46
DL
101322000-03-21 Dave Love <fx@gnu.org>
10133
10134 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
10135 doc string.
10136
d2cafc8c
GM
101372000-03-21 Gerd Moellmann <gerd@gnu.org>
10138
10139 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
10140 (lface_fully_specified_p): Don't check contents of
10141 LFACE_FONT_INDEX because that attribute is optional.
10142 (realize_x_face): Remove now unwarranted xassert.
10143
9111d4b5
KH
101442000-03-21 Kenichi HANDA <handa@etl.go.jp>
10145
10146 The following changes are to make font selection based on
10147 characters, not charset. In addition, they recover fontset
10148 facilities while utilizing the new font selection mechanism.
10149
6c4bfdc0
KH
10150 * Makefile.in (fontset.o): Depend on dispextern.h.
10151
10152 * alloc.c (mark_face_cache): Don't mark face->registry.
10153
9111d4b5
KH
10154 * dispextern.h (struct glyph): New member glyph_not_available_p.
10155 Use 22 bits for face_id.
10156 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
10157 (struct face): Delete member registry, new member ascii_face.
10158 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
10159 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
10160 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
52283633 10161 (struct it): Delete member charset, new member glyph_not_available_p.
9111d4b5
KH
10162
10163 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
10164 (struct fontset_info, struct fontset_data): Structs removed.
52283633
SM
10165 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
10166 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
9111d4b5 10167 (fs_load_font, fs_query_fontset): Adjusted for new argument.
52283633
SM
10168 (fs_free_face_fontset, fontset_font_pattern)
10169 (face_suitable_for_char_p, face_for_char)
10170 (make_fontset_for_ascii_face): Extern them.
9111d4b5
KH
10171 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
10172 (FS_LOAD_FACE_FONT): New macro.
10173
10174 * fontset.c: All codes rewritten or adjusted for the change of
10175 fontset implementation. Now fontset is represented by char table.
52283633
SM
10176 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
10177 Variables removed.
9111d4b5 10178 (my_strcasecmp): Function removed.
52283633 10179 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
9111d4b5 10180 (AREF, ASIZE): New macros.
52283633
SM
10181 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
10182 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
10183 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
10184 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
10185 (fontset_id_valid_p, font_family_registry, fontset_name)
10186 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
10187 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
9111d4b5
KH
10188 New functions.
10189 (fs_load_font): New arg FACE. Caller changed.
10190 (fs_query_fontset): Argument changed. Caller changed.
10191 (Fquery_fontset): call fs_query_fontset.
10192 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
10193 Functions removed.
52283633
SM
10194 (clear_fontset_elements, check_registry_encoding)
10195 (check_fontset_name): New functions.
9111d4b5
KH
10196 (syms_of_fontset): Set char-table-extra-slots property of fontset
10197 to 3. Staticpro and initialize Vfontset_table and
10198 Vdefault_fontset. Defsubr fontset_font and fontset_list.
10199
10200 * frame.h (struct frame): Member `fontset_data' removed.
10201 (FRAME_FONTSET_DATA): Macro removed.
10202
10203 * frame.c (make_frame): Don't allocate f->fontset_data.
10204 (Fdelete_frame): Don't free f->fontset_data.
10205
6c4bfdc0
KH
10206 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
10207
9111d4b5
KH
10208 * xdisp.c (charset_at_position): Function removed.
10209 (init_iterator): Don't set member charset of struct `it'.
52283633
SM
10210 (handle_face_prop, reseat_to_string, set_iterator_to_next)
10211 (next_element_from_display_vector, insert_left_trunc_glyphs):
9111d4b5
KH
10212 Likewise.
10213 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
10214 FACE_FOR_CHARSET.
52283633
SM
10215 (get_next_display_element, append_space)
10216 (extend_face_to_end_of_line): Likewise.
9111d4b5
KH
10217
10218 * xfaces.c (Qx_charset_registry, Vface_default_registry):
10219 Variables removed.
10220 (clear_font_table, frame_update_line_height, load_face_font):
10221 Adjusted for the change of fontset implementation.
10222 (load_face_fontset_font): Function removed.
10223 (pixel_point_size): New function.
10224 (font_list): Argument type changed. Caller changed.
10225 (LFACE_FONT): New macro.
10226 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
10227 (set_lface_from_font_name): Type of arg FONTNAME is changed to
10228 Lisp_Object. Determine the font name by actually loading a font
10229 by the specified pattern. Set LFACE_FONT (lface) to the specified
10230 pattern. Even if a font is not found, don't try alternatives.
10231 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
10232 (set_font_frame_param): If `font' is specified in lface, use it.
10233 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
10234 (lface_same_font_attributes_p): Likewise.
10235 (make_realized_face): Arguent changed. Caller changed. Set
10236 face->ascii_face to face itself.
10237 (free_realized_face): Free face->fontset if face is for ASCII.
52283633
SM
10238 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
10239 (deduce_unibyte_registry, x_charset_registry): Functions removed.
9111d4b5
KH
10240 (free_realized_multibyte_face): New function.
10241 (lookup_face, lookup_named_face, lookup_derived_face): Argument
10242 changed. Caller changed.
10243 (try_font_list): Argument type changed.
10244 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
10245 (choose_face_font): Argument changed. Handle fontset properly.
10246 (choose_face_fontset_font): Function removed.
10247 (realize_default_face, realize_named_face): Don't remove the
10248 former face here.
10249 (realize_face): Argument changed. Caller changed. Remove face
52283633 10250 with the arg former_face_id in advance. Load font for the new face.
9111d4b5
KH
10251 (realize_x_face): Argument changed. Caller changed. For a
10252 multibyte character, share fontset with base_face. For a single
52283633 10253 byte character, make a new realized fontset. Don't load a font here.
9111d4b5
KH
10254 (realize_tty_face): Argument changed. Caller changed.
10255 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
10256 (face_at_buffer_position): Don't check multibyte_p for returning
10257 DEFAULT_FACE_ID.
10258 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
10259 FACE_SUITABLE_FOR_CHARSET_P.
10260 (syms_of_xfaces): Remove code for Qx_charset_registry and
10261 Vface_default_registry.
10262
6c4bfdc0
KH
10263 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
10264 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
10265 (x_per_char_metric): Don't try FONT->default_char. Even if
10266 pcm->width is zero, glyph bits may exist.
10267 (x_encode_char): Always initialize char2b->byte1.
10268 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
52283633 10269 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
9111d4b5
KH
10270 (x_append_glyph): Set glyph->glyph_not_available_p.
10271 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
10272 it->charset. Handle the case that per char metric is not
10273 available. If it->multibyte_p is zero and it->c is a multibyte
10274 character, convert it to a unibyte character.
10275 (struct glyph_string): Delete member `charset'.
10276 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
10277 the case that per char metric is not available correctly.
10278 (x_fill_glyph_string): Handle the case that the specific glyph is
10279 not available correctly.
10280 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
10281 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
10282 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
10283 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
10284 fontset. Don't call FS_LOAD_FONT.
10285
10286 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
10287 (x_create_tip_frame): Likewise.
10288 (Fx_close_connection): Free full_name of font_info.
10289
10290 * fns.c (optimize_sub_char_table): New function.
10291 (Foptimize_char_table): New function.
10292 (syms_of_fns): Defsubr Soptimize_char_table.
10293
b33dd3b0
GM
102942000-03-20 Gerd Moellmann <gerd@gnu.org>
10295
10296 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
10297 only if buffer is displayed in some window.
10298
10299 * xdisp.c (handle_single_display_prop): Initialize local `value'.
10300 (try_window_reusing_current_matrix): Don't call scroll run
10301 function if run's current and desired position are the same;
10302 this prevents cursor flickering.
10303
4e8a9132
SM
103042000-03-19 Stefan Monnier <monnier@cs.yale.edu>
10305
10306 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
10307
10308 * regex.c (RE_STRING_CHAR): New macro.
10309 (GET_CHAR_AFER_2): Remove.
10310 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
10311 (enum re_opcode_t): Remove on_failure_jump_exclusive.
10312 (print_partial_compiled_pattern, re_compile_fastmap)
10313 (re_match_2_internal): Remove on_failure_jump_exclusive.
10314 (regex_compile): Turn optimizable P+ loops into PP*, so that the
10315 optimization only need to work for * (ie. can use of_keep_string_jump).
10316 Remove the special case for .*\n since it is now covered by the general
10317 optimization.
10318 (re_search_2): Don't bother with `room'.
10319 (skip_one_char): New function.
10320 (skip_noops): Simplify since `memory' is not needed any more.
10321 (mutually_exclusive_p): Restructure slightly to use `switch' and
10322 add handling for "all" remaining cases.
10323 (re_match_2_internal): Change on_failure_jump_smart to use
10324 on_failure_keep_string_jump (and redirect the end-of-loop jump)
10325 rather than on_failure_jump_exclusive.
10326
2136fdd4
GM
103272000-03-19 Gerd Moellmann <gerd@gnu.org>
10328
10329 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
10330 number of bits per RGB because it's everywhere used as the depth
10331 of the visual.
10332
10333 * term.c (calculate_costs): Remove code dealing with X frames.
10334
18e21ce8 103352000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
10336
10337 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
10338
d7b511c4
GM
103392000-03-18 Gerd Moellmann <gerd@gnu.org>
10340
10341 * lread.c (read_integer): Unread the last char not consumed.
10342
16b5d424
GM
103432000-03-17 Gerd Moellmann <gerd@gnu.org>
10344
10345 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 10346 which are in the process of being deleted.
16b5d424 10347
1fa28578
GM
103482000-03-16 Gerd Moellmann <gerd@gnu.org>
10349
83488cce
GM
10350 * Makefile.in (mostlyclean): Add `*.core'.
10351 (clean): Add `bootstrap-emacs'.
10352
1fa28578
GM
10353 * lread.c (read_integer): New function.
10354 (read1): Support read syntax #o, #x, #b, #r.
10355
99633e97
SM
103562000-03-15 Stefan Monnier <monnier@cs.yale.edu>
10357
1fa28578
GM
10358 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
10359 make sure POINTER_TO_OFFSET gives the same value before and after
10360 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
10361 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
10362 (debug): Now only active if > 0 rather than if != 0.
10363 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
10364 (print_partial_compiled_pattern): Add missing `succeed' case. Use
10365 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
10366 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
10367 (store_op1, store_op2, insert_op1, insert_op2)
10368 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
10369 (group_in_compile_stack): Move to after its arg's types are
10370 declared and add a prototype.
99633e97 10371 (PATFETCH): Define in terms of PATFETCH_RAW.
52283633 10372 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
99633e97 10373 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
10374 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
10375 indentation of the greedy-op and shy-group code.
99633e97
SM
10376 (at_(beg|end)line_loc_p): Fix argument's types.
10377 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
10378 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
10379 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
10380 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
10381 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
10382 QUIT unconditionally.
99633e97 10383
699238d9
GM
103842000-03-15 Gerd Moellmann <gerd@gnu.org>
10385
10386 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
10387 a sole completion.
10388
10389 * process.c (send_process): Add a hint that the function
10390 can call Lisp code to its comment.
10391
10392 * lread.c (load_dangerous_libraries): New variable.
10393 (Vbytecomp_version_regexp): New variable.
10394 (safe_to_load_p): New function.
10395 (Fload): Handle files not compiled with Emacs specially.
10396 (syms_of_lread): New Lisp variable load-dangerous-libraries.
10397
34e23e5a
GM
103982000-03-14 Gerd Moellmann <gerd@gnu.org>
10399
9c763cca
GM
10400 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
10401
10402 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
10403 support functions only if HAVE_X11R6_XIM is defined.
10404 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
10405
10406 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
10407
10408 * xfns.c (X_I18N_INHIBITED): Don't define.
52283633 10409 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
9c763cca
GM
10410 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
10411
10412 * config.in (HAVE_X_I18N): Moved here from xterm.h.
10413 (HAVE_X11R6_XIM): Define.
10414
10415 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
10416
34e23e5a
GM
10417 * xterm.c (x_term_init): Add support for X resource `synchronous'.
10418 If set, call XSynchronize.
10419
66f0296e
SM
104202000-03-13 Stefan Monnier <monnier@cs.yale.edu>
10421
34e23e5a
GM
10422 * regex.c: Declare a new type `re_char' used throughout the code
10423 for the string char type. It's `const unsigned char' to match the
10424 rest of Emacs. Consistently make sure all pointers to strings use
52283633 10425 it and make sure all pointers into the pattern use `unsigned char'.
66f0296e 10426 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
10427 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
10428 code duplication.
66f0296e
SM
10429
10430 * charset.h (GET_CHAR_AFTER_2): Remove.
10431 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
10432
854a025c
KR
104332000-03-12 Ken Raeburn <raeburn@gnu.org>
10434
10435 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
10436 variable before the invocation of YMF_PASS_LDFLAGS, in case both
10437 of them try to use backquotes.
10438
b9d2c7e2
DL
104392000-03-12 Dave Love <fx@gnu.org>
10440
10441 * unexelf.c: Restore changes of 1999-10-19.
10442 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
10443 fix its type and alignment; copy it from current process.
10444
5e5dff44
GM
104452000-03-12 Gerd Moellmann <gerd@gnu.org>
10446
9b2f3c38
GM
10447 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
10448 has been found. Fix bug not computing timer's predecessor.
10449
427ec082 10450 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
10451 file name.
10452
e1cff360
GM
10453 * window.c (Fsave_window_excursion): Doc fix.
10454
52283633 10455 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
5e5dff44 10456
e411ce4b
EZ
104572000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
10458
10459 * msdos.c (vga_installed): New function, code moved from
10460 dos_set_window_size.
10461 (Qbar, Qcursor_type, outside_cursor): New variables.
10462 (syms_of_msdos): Intern and staticpro them.
10463 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
10464 shape used outside Emacs when called for the first time.
10465 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
10466 cursor shape used outside Emacs.
10467 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
10468 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
10469 type has changed.
10470 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
10471 parameters specify the cursor. Make qreverse a global
10472 variable (renamed to Qreverse).
10473
80460654
GM
104742000-03-09 Gerd Moellmann <gerd@gnu.org>
10475
10476 * fns.c (Fy_or_n_p): Cancel busy-cursor.
10477
95cd4c40
SM
104782000-03-08 Stefan Monnier <monnier@cs.yale.edu>
10479
10480 This is a big redesign of failure-stack and register handling, prompted
10481 by bugs revealed when trying to add shy-groups. Overall, what happened
10482 is that loops are now structured a little differently, groups can be
10483 shy and the code is a little simpler.
10484
10485 * regex.h: Update the copyright.
10486 (RE_SHY_GROUPS): New value.
10487 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
10488 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
10489
80460654
GM
10490 * regex.c (enum re_opcode_t): Remove jump_past_alt,
10491 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
10492 on_failure_jump_(exclusive, loop and smart). Also fix the comment
10493 for (start|stop)_memory since they now only take one argument (the
10494 second has becomes unnecessary).
52283633 10495 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
80460654
GM
10496 (print_compiled_pattern): Use %ld to printf long ints and flush to
10497 make debugging a little easier.
95cd4c40
SM
10498 (union fail_stack_elt): Make the integer unsigned.
10499 (struct fail_stack_type): Add a `frame' element.
10500 (INIT_FAIL_STACK): Init `frame' as well.
10501 (POP_PATTERN_OP): New macro for re_compile_fastmap.
10502 (DEBUG_PUSH, DEBUG_POP): Remove.
10503 (NUM_REG_ITEMS): Remove.
10504 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
10505 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
10506 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 10507 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
52283633
SM
10508 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
10509 New macros.
80460654
GM
10510 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
10511 address pushed is not the destination of the jump but the source
10512 of it instead.
95cd4c40
SM
10513 (NUM_FAILURE_ITEMS): Remove.
10514 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
10515 registers before the actual failure point). Don't hardcode any
10516 meaning for str==NULL anymore.
95cd4c40 10517 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
10518 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
10519 Remove.
95cd4c40
SM
10520 (REG_UNSET_VALUE): Use NULL (why not?).
10521 (compile_range): Remove declaration since it doesn't exist.
10522 (struct compile_stack_elt_t): Remove inner_group_offset.
10523 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
10524 (regex_grow_registers): Remove dead code.
10525 (FIXUP_ALT_JUMP): New macro.
80460654
GM
10526 (regex_compile): Add shy-groups Change loops to use
10527 on_failure_jump_smart&jump instead of
10528 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
10529 initial (dummy_failure_)jump. Remove c1_base (looks like unused
10530 variable to me). Use `jump' instead of `jump_past_alt' and don't
10531 bother with push_dummy_failure in alternatives since it is now
10532 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
10533 emacs' for (re)allocating the stack.
10534 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
10535 from loop when bufp->can_be_null rather than jumping to `done'.
10536 Avoid jumping backwards so as to ensure termination. Use
10537 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
10538 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 10539 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
10540 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
10541 improve mutually_exclusive_p to handle ".+\n".
52283633
SM
10542 (lowest_active_reg, highest_active_reg)
10543 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
80460654
GM
10544 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
10545 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
10546 variables. Push register (in `start_memory') on the stack rather
10547 than storing it in old_reg(start|end). Remove the cycle detection
10548 from `stop_memory', replaced by the use of on_failure_jump_loop
10549 for greedy loops. Add code for the new on_failure_jump_<foo>.
10550 Remove ad-hoc code in `on_failure_jump' to push more registers in
10551 the case of a loop. Take out code from `maybe_pop_jump' into
10552 separate functions and adapt it to the semantics of
10553 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
10554 and push_dummy_failure. Remove dummy_failure handling and
10555 handling of `failures to jump to on_failure_jump' (this last one
10556 was already dead code, it seems).
10557 (group_match_null_string_p, alt_match_null_string_p)
10558 (common_op_match_null_string_p): Remove.
95cd4c40 10559
7397acc4
DL
105602000-03-08 Dave Love <fx@gnu.org>
10561
10562 * config.in: Don't depend on __STDC__ for volatile.
10563 Add POINTER_TYPE, PTR, PROTOTYPES.
10564
10565 * hftctl.c, strftime.c: Use PROTOTYPES.
10566 * eval.c (find_handler_clause): Likewise.
10567
10568 * mem-limits.h: Use POINTER_TYPE.
10569
10570 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
10571 (memory_warnings): Declare using POINTER_TYPE.
10572
5e91ff9e
GM
105732000-03-08 Gerd Moellmann <gerd@gnu.org>
10574
feab4fba
GM
10575 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
10576
52283633 10577 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
25edb08f 10578
5e91ff9e
GM
10579 * xfns.c: Remove obsolete code in #if 0.
10580 (Fx_focus_frame): New function.
10581
a735b7e1
KH
105822000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
10583
10584 * coding.c (coding_category_name): Add coding-category-utf-8,
10585 coding-category-utf-16-be, coding-category-utf-16-le.
10586 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
10587 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
10588 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
10589 (detect_coding_utf_8): New function.
10590 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
10591 UTF_16_LOW_SURROGATE_P): New macros.
10592 (detect_coding_utf_16): New function
10593 (detect_coding_mask): When priorities are specified, skip any
10594 categories that have `nil' coding-system. Fix bug of returning
10595 wrong mask when PRIORITIES is specified and detect_coding_XXX()
10596 returns a mask not set in PRIORITIES.
10597 (detect_eol_type_in_2_octet_form): New function.
10598 (detect_eol): selects detect_eol_type_XXX to call according to
10599 cooding->category_idx.
10600 (detect_coding_system): Remove `nil' coding-system in the result.
10601 (Fupdate_coding_systems_internal): Update all coding-categories.
10602
52283633
SM
10603 * coding.h (CODING_CATEGORY_IDX_UTF_8)
10604 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
10605 New macros.
10606 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
10607 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
10608 (CODING_CATEGORY_IDX_UTF_16_LE)
10609 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
10610 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
a735b7e1
KH
10611 (CODING_CATEGORY_MASK_ANY): Include the above macros.
10612 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
10613
9994cc69
GM
106142000-03-07 Gerd Moellmann <gerd@gnu.org>
10615
e9b4e5ff
GM
10616 * doc.c (Fdocumentation_property): If value is not a string,
10617 and doesn't refer to etc/DOC, evaluate it to obtain a string.
10618
f7daf1e1
GM
10619 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
10620 close the display with XtCloseDisplay. This caused a bus error
10621 on OpenWindows.
10622
9994cc69
GM
10623 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
10624 complete but not unique.
10625
4336c705
GM
106262000-03-06 Gerd Moellmann <gerd@gnu.org>
10627
18bb0684
GM
10628 * process.c (send_process): Remove local variable `procname' that
10629 might become invalid when a GC happens. Instead, access the
10630 process name slot directly.
10631
4336c705
GM
10632 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
10633 orig_height if set.
10634
10635 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
10636 orig_height if set.
10637
515d0d0e
EZ
106382000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
10639
10640 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
10641 glyph matrices have been freed.
10642
100b3cbb
GM
106432000-03-05 Gerd Moellmann <gerd@gnu.org>
10644
50df5e5a 10645 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 10646 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
10647
10648 * xfns.c (QCdata): Moved to xdisp.c.
10649
10650 * xdisp.c (QCdata): Moved here from xfns.c.
10651 (syms_of_xdisp): Initialize QCdata.
10652
10653 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
10654
10655 * window.c (coordinates_in_window): Use
10656 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
10657 FRAME_INTERNAL_BORDER_WIDTH.
10658
100b3cbb 10659 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 10660 it is obviously invalid.
100b3cbb
GM
10661
10662 * xterm.c (x_term_init): Create a colormap if not using the
10663 default visual.
10664
10665 * xterm.h (select_visual): Change prototype.
10666
10667 * xfns.c (select_visual): Rewritten. Recognize user-specified
10668 visual classes.
10669 (visual_classes): New variable.
10670
64d739c4
GM
106712000-03-04 Gerd Moellmann <gerd@gnu.org>
10672
10673 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
10674 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
10675 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
52283633 10676 (x_decode_color): Don't handle allocation of white and black specially.
64d739c4
GM
10677 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
10678 XtNcolormap resources.
10679 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
10680 (Fx_create_frame): Initialize color members of x_output structure.
10681 (xpm_load): Pass colormap to XPM lib.
10682
10683 * xfaces.c (x_free_colors): Access colormap of frame using
10684 FRAME_X_COLORMAP. Be paranoid about freeing black and white
10685 when default colormap is used.
10686
10687 * xterm.c (x_term_init): Set Colormap member of x_display_info
10688 structure. Copy colormap if resource `privateColormap' is
10689 specified (PseudoColor only).
10690 (x_setup_relief_color): Access colormap of frame using
10691 FRAME_X_COLORMAP.
10692
10693 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
10694 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
10695
c3cee013
JR
106962000-03-04 Jason Rumney <jasonr@gnu.org>
10697
10698 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
10699 other non-platform-specific equivalents.
64d739c4 10700 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
10701 specific functions and macros as their w32 equivalents where
10702 non-platform-specifics are not available.
10703 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
10704 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
10705 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
10706 (frame_update_line_height): Use macros to access f->output_data.
10707 (defined_color): Remove FIXME comments; fixed.
10708 (x_face_list_fonts, prepare_face_for_display): Put X specifics
10709 into #ifdef blocks. Add WINDOWSNT blocks.
10710 (Fx_list_fonts): Use macros for accessing font data.
10711 (set_lface_from_font_name): Different default fonts for X and
10712 WINDOWSNT.
10713 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
10714 scalable for backward compatibility.
64d739c4 10715 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
10716 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
10717
64d739c4 10718 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
10719 syms_of_w32faces.
10720
10721 * makefile.nt (w32faces.obj): Remove.
10722 (xfaces.obj): Add.
10723
807cc41c
JR
107242000-03-03 Jason Rumney <jasonr@gnu.org>
10725
10726 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
10727 correct parameters.
10728
0007072a
KR
107292000-03-03 Ken Raeburn <raeburn@gnu.org>
10730
10731 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
10732 standard ELF definitions here if the system header does not.
10733
71a6ba55
GM
107342000-03-03 Gerd Moellmann <gerd@gnu.org>
10735
10736 * xterm.c (PER_CHAR_METRIC): Removed.
10737 (x_per_char_metric_1, x_default_char): New functions.
10738 (x_per_char_metric): If font's default char is invalid, return
10739 metrics of a suitably chosen usable default char.
10740 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
10741 char, replace occurrences of unprintable chars with a suitably
10742 chosen usable default char.
71a6ba55 10743
900fa1f1
GM
107442000-03-02 Gerd Moellmann <gerd@gnu.org>
10745
42f55fe0
GM
10746 * xterm.c (note_mouse_highlight): Return quickly if frame's
10747 glyph matrices have been freed.
10748
10749 * dispnew.c (free_glyphs): Block input while freeing matrices.
10750
900fa1f1
GM
10751 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
10752
52283633
SM
10753 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
10754 Use x_free_colors.
900fa1f1
GM
10755
10756 * dispextern.h (x_free_colors): Add prototype.
10757
10758 * xfaces.c (x_free_colors): New function.
10759 (unload_color, free_face_colors): Use it.
10760
2f950292
EZ
107612000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
10762
10763 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
10764
10765 * window.c [MSDOS]: Include msdos.h.
10766
54d04320
DL
107672000-03-02 Dave Love <fx@gnu.org>
10768
10769 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
10770
10771 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
10772 set C_OPTIMIZE_SWITCH for gcc.
10773
0ba93ac4
KH
107742000-03-02 Kenichi Handa <handa@etl.go.jp>
10775
10776 * coding.c (coding_save_composition): Be sure to allocate
10777 composition data area in coding even if there's no composition in
10778 the current run.
10779
a2bc11d4
JR
107802000-03-01 Jason Rumney <jasonr@gnu.org>
10781
10782 * w32term.c: Equivalent changes to those made to xterm.c on
10783 2000-02-25 and 2000-02-24.
10784
10785 * w32fns.c: Equivalent changes to those made to xfns.c on
10786 2000-02-25 and 2000-02-21.
10787
10788 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
10789 correct line-end convention is followed.
10790
10791 * w32menu.c [HAVE_BOXES]: Remove #undef.
10792 (single_keymap_panes): Remove code for simulating checkmarks.
10793 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
10794 Remove code for drawing simulated checkmarks.
10795 (w32_menu_show): make unibyte help string correctly.
10796 (add_menu_item): draw standard Windows checkmarks. Draw radio
10797 buttons as radio buttons if possible.
10798
72d19d75
GM
107992000-03-01 Gerd Moellmann <gerd@gnu.org>
10800
2df636f4
GM
10801 * sysdep.c (start_of_text): Don't define this function for NetBSD
10802 with ELF.
10803
427ec082 10804 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
10805 Don't define.
10806 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
10807 (LINKER): Don't undef if __NetBSD__ is defined.
10808
10809 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
10810
10811 * fileio.c [__NetBSD__]: Define `unix'.
10812
72d19d75
GM
10813 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
10814
ed4d0512
GM
108152000-02-29 Gerd Moellmann <gerd@gnu.org>
10816
50b1039f
GM
10817 * atimer.c (start_atimer): Don't abort when timers are stopped.
10818 (append_atimer_lists): New function.
10819 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
10820 arbitrary lists of stopped and running atimers.
10821
ed4d0512
GM
10822 * atimer.c (cancel_atimer): Handle canceling an atimer when
10823 some timers are stopped.
10824
10825 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
10826 after canceling it.
10827
10828 * fns.c (maybe_resize_hash_table): Handle case of new size
10829 coming out as being the same as old size.
10830
387023ee
JR
108312000-02-27 Jason Rumney <jasonr@gnu.org>
10832
10833 * makefile.nt: Add atimer.h to dependencies.
10834 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
10835 * w32console.c: Only disable window system features for dispextern.h
10836 (initialize_w32_display): Build a display info for the console.
10837 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
10838 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
10839 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
10840 as 2 button mice.
10841 * w32gui.h (struct W32FontStruct): Revert last change after change
10842 to xdisp.c.
10843 * w32menu.c (single_submenu): Set up help string.
10844 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
10845 (w32_dialog_show): Set up help string.
10846 * w32term.c (w32_display_info_for_display): Remove unused function.
10847 (w32_draw_bitmap): Use pre-built bitmaps.
10848 (w32_initialize_display_info): New function to initialize parts of
10849 display info that are common to both GUI and console frames.
10850 (w32_term_init): Use w32_initialize_display_info. Do not set
10851 Vw32_num_mouse_buttons here, as it is not called for console
10852 frames. Build bitmaps for indicating truncated lines etc.
10853 (x_delete_display): Destroy pre-built bitmaps.
10854 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
10855 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
10856
4516715a
DL
108572000-02-27 Dave Love <fx@gnu.org>
10858
10859 * lisp.h: Add a bunch of prototypes.
10860
171ca836
KH
108612000-02-26 Kenichi Handa <handa@etl.go.jp>
10862
10863 * keyboard.c (read_char): Set `usec' correctly.
10864
4013921d
KH
108652000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
10866
10867 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
10868 `lambda', set reg[RRR] to the map index.
10869 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
10870 reg[RRR] to 0. Otherwise, set it to -1.
10871
9244a058
GM
108722000-02-25 Gerd Moellmann <gerd@gnu.org>
10873
2df636f4 10874 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 10875
18e21ce8 108762000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 10877
f43d79c1
GM
10878 * fileio.c (Ffile_symlink_p): If result starts with a `/'
10879 and contains a `:', prepend `/:'.
10880
10881 * window.c (select_window_1): If selected_window is nil,
10882 don't "swap out" the buffer's point.
10883 (Fset_window_configuration): Set selected_window to nil
10884 before calling Fselect_window.
10885 (unshow_buffer): Don't set point in buffer from window's point
10886 if another more recently selected window also shows the buffer.
10887
bed0c171
GM
108882000-02-25 Gerd Moellmann <gerd@gnu.org>
10889
449c3c52
GM
10890 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
10891
f5b58615
GM
10892 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
10893 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
52283633
SM
10894 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
10895 New variables.
f5b58615
GM
10896 (DEFAULT_BUSY_CURSOR_DELAY): New define.
10897 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
10898 (hide_busy_cursor): New functions.
10899 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
10900
10901 * minibuf.c (read_minibuf): Cancel busy-cursor.
10902
10903 * keyboard.c (command_loop_1): Call start_busy_cursor before
10904 Fcommand_execute and cancel_busy_cursor after it.
10905 (timer_check): Remove busy-cursor code.
10906 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
10907 cursor timer.
10908
10909 * process.c (wait_reading_process_input): Remove busy-cursor code.
10910
10911 * eval.c (Fsignal): Call cancel_busy_cursor instead of
10912 Fx_hide_busy_cursor.
10913
10914 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
10915 Remove prototyoes.
10916 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
10917
10918 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
10919
10920 * xterm.c (XTread_socket): Remove busy-cursor code.
10921
4eb8436f
GM
10922 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
10923 (build_frame_matrix_from_leaf_window): Put code handling
10924 glyph row's not being a slice of a frame row in #if 0.
10925 (sync_window_with_frame_matrix_rows): New function.
10926 (frame_row_to_window): New function.
10927 (mirror_line_dance): Handle copies between windows.
10928
3cb65b0e
GM
10929 * lread.c (Fload): Use `xfree' instead of `free'.
10930 (init_obarray): Use `xmalloc' instead of `malloc'.
10931
bed0c171
GM
10932 * window.c (Fset_window_buffer): Set WINDOW to the window
10933 after decoding.
2add4349
GM
10934 (coordinates_in_window): Take frame's internal border width
10935 into account.
bed0c171 10936
42088c12
GM
109372000-02-24 Gerd Moellmann <gerd@gnu.org>
10938
10939 * xterm.c (x_display_and_set_cursor): Display cursor of
10940 non-selected windows depending on the setting of
10941 cursor_in_non_selected_windows.
10942
10943 * xdisp.c (cursor_in_non_selected_windows): New variable.
10944 (syms_of_xdisp): DEFVAR_BOOL it.
10945
d1e103b2
GM
109462000-02-23 Gerd Moellmann <gerd@gnu.org>
10947
723e779c
GM
10948 * data.c (Fstring_to_number): If number is greater than what
10949 fits into an integer, return a float.
10950
d1e103b2
GM
10951 * eval.c (specbind): Remove references to
10952 keyword_symbols_constant_flag.
10953
10954 * data.c (keyword_symbols_constant_flag): Removed.
10955 (Fmakunbound, set_internal, syms_of_data): Remove references to
10956 keyword_symbols_constant_flag.
10957
10958 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
10959
214f877f
KH
109602000-02-23 Kenichi Handa <handa@etl.go.jp>
10961
10962 * syntax.c (multibyte_syntax_as_symbol): New variable.
10963 (syms_of_syntax): Declare it as a Lisp variable.
10964 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
10965 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
10966 nonzero, treat all multibyte characters as symbol.
52283633 10967 (init_syntax_once): Give syntax `word' to all multibyte characters.
214f877f 10968
130adcb7
EZ
109692000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
10970
3cb65b0e 10971 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 10972 a deleted frame.
130adcb7 10973
17cbbf95
GM
109742000-02-21 Gerd Moellmann <gerd@gnu.org>
10975
10976 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
10977
10978 * xfns.c (x_window_to_frame, x_any_window_to_frame)
10979 (x_non_menubar_window_to_frame): Check the busy-cursor window.
10980
beb0bc36
DL
109812000-02-21 Dave Love <fx@gnu.org>
10982
10983 * frame.c (Vmouse_position_function): New variable.
10984 (Fmouse_position): Use it.
10985 (syms_of_frame): Install it.
10986
10987 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
10988
1d92afcd
GM
109892000-02-20 Gerd Moellmann <gerd@gnu.org>
10990
10991 * fileio.c (Finsert_file_contents): Unbind the binding of
10992 standard-output done by temp_output_buffer_setup.
329eed9f
GM
10993
10994 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
10995 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
10996 (specbind, unbind_to): Handle most common case of non-constant
10997 symbol with trivial value specially.
10998
10999 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
11000
18e21ce8 110012000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
11002
11003 * data.c (Fmake_variable_buffer_local): Doc fix.
11004 Init found_for_buffer to 0.
11005 (Fmake_variable_frame_local): If the variable has already
11006 been buffer-local, set the check_frame field.
11007
1d4311c3
EZ
110082000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
11009
11010 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
11011 produced for CODING_MODE_LAST_BLOCK requires.
11012
2dc95ddd
DL
110132000-02-18 Dave Love <fx@gnu.org>
11014
11015 * keyboard.c (echo_keystrokes): Remove declaration.
11016 (Vecho_keystrokes) New variable.
11017 (read_char, record_menu_key, read_key_sequence): Use it to allow
11018 use of float value.
11019 (syms_of_keyboard): Change Vecho_keystrokes declaration.
11020
11021 * lread.c: Undef feature selection macros before defining.
11022
f0930f35
GM
110232000-02-18 Gerd Moellmann <gerd@gnu.org>
11024
11025 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
11026 for symbols other than the symbol in question.
11027
e3d4de90
DL
110282000-02-17 Dave Love <fx@gnu.org>
11029
11030 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
11031
0b378936
GM
110322000-02-17 Gerd Moellmann <gerd@gnu.org>
11033
d621caf7
GM
11034 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
11035
0b378936
GM
11036 * alloc.c (enum mem_type): Compile unconditionally.
11037
3b451f74
EZ
110382000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
11039
11040 * xfaces.c (tty_defined_color): Don't return faulire indication
11041 for unspecified-fg and unspecified-bg pseudo-colors.
11042
10689a01
GM
110432000-02-17 Gerd Moellmann <gerd@gnu.org>
11044
1216f5e4
GM
11045 * alloc.c (mark_object): Don't mark symbol names in pure space.
11046 (gc_sweep): Don't unmark symbol names in pure space.
11047
11048 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
11049 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
11050 [GC_MARK_STACK]: New defines.
427ec082 11051 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
11052 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
11053
11054 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
11055
11056 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
11057 allocate_buffer instead of xmalloc.
11058
11059 * alloc.c (toplevel): Include setjmp.h.
11060 (PURE_POINTER_P): New define.
11061 (enum mem_type) [GC_MARK_STACK]: New enumeration.
11062 (Vdead) [GC_MARK_STACK]: New variable.
11063 (lisp_malloc): Add parameter TYPE, call mem_insert if
11064 GC_MARK_STACK is defined.
11065 (allocate_buffer): New function.
427ec082 11066 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
11067 (free_float) [GC_MARK_STACK]: Set type to Vdead.
11068 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
11069 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
11070 (MEM_NIL) [GC_MARK_STACK]: New define.
11071 (struct mem_node) [GC_MARK_STACK]: New structure.
11072 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
11073 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
11074 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
11075 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
11076 (mark_stack) [GC_MARK_STACK]: New functions.
11077 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
11078 (clear_marks): Removed.
11079 (gc_sweep): Set free conses' car, free floats' type, free
11080 symbols' function to Vdead. Use lisp_free to free buffers.
11081 (init_alloc_once): Initialize Vdead.
11082 (survives_gc_p): Return non-zero for pure objects.
11083
11084 * alloc.c: Add comments throughout the file.
11085
2503c8b1
GM
11086 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
11087 that unblocks alarms.
11088
8389e1e2
GM
11089 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
11090 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
11091 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
11092
10689a01 11093 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 11094
bfc17d18
KH
110952000-02-17 Kenichi Handa <handa@etl.go.jp>
11096
4a09dee0
KH
11097 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
11098 avoid infinite error signaling. Allocate sufficient memory for
11099 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 11100
2b927d02
SM
111012000-02-17 Stefan Monnier <monnier@cs.yale.edu>
11102
11103 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
11104 depends on the previous behavior.
11105
b49cb764
GM
111062000-02-16 Gerd Moellmann <gerd@gnu.org>
11107
11108 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
11109
99e95407
GM
111102000-02-15 Gerd Moellmann <gerd@gnu.org>
11111
11112 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
11113
11114 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 11115 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
11116 write(2).
11117
6ffd3cf7
RS
111182000-02-15 Richard M. Stallman <rms@gnu.org>
11119
11120 * data.c (set_internal): Don't make variable buffer-local
11121 if within a let-binding for the same buffer.
11122 (let_shadows_buffer_binding_p): New function.
11123
11124 * eval.c (specbind): For buffer-local value,
11125 record the current buffer also.
11126 (unbind_to): Cope with that change.
11127
cad53475
GM
111282000-02-15 Gerd Moellmann <gerd@gnu.org>
11129
11130 * window.c (Fsave_window_excursion): Doc fix.
11131
1aa963c8
SM
111322000-02-15 Stefan Monnier <monnier@cs.yale.edu>
11133
11134 * syntax.c (back_comment): Make sure we only consider comment-starters
11135 of the relevant style and return -1 in case of a failure to find the
11136 beginning of the comment.
11137 (Fforward_comment): If back_comment fails, go back to the position just
11138 after the comment-end.
11139 (scan_lists): Add comment describing a very minor bug.
11140
b9b84fd3
SM
111412000-02-14 Stefan Monnier <monnier@cs.yale.edu>
11142
11143 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
11144 `completion-regexp-list' in the docstring.
11145
3a28db80
DL
111462000-02-14 Dave Love <fx@gnu.org>
11147
11148 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
11149
fb4a568d
SM
111502000-02-14 Stefan Monnier <monnier@cs.yale.edu>
11151
11152 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
11153 to Emacs' syntax. Also fix the comment about set/not-set meanings
11154 since Emacs syntax is not the value 0 any more.
11155 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
11156 since it's now part of RE_SYNTAX_EMACS.
11157
1063ebb5
DL
111582000-02-12 Dave Love <fx@gnu.org>
11159
52283633 11160 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
1063ebb5 11161
fb07a302
GM
111622000-02-12 Gerd Moellmann <gerd@gnu.org>
11163
11164 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
11165
aaf2320c
DL
111662000-02-12 Dave Love <fx@gnu.org>
11167
11168 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
11169
11170 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
11171 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
11172 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
11173
11174 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
11175
11176 * s/nextstep.h: Don't define HAVE_ALLOCA.
11177
11178 * config.in: Add vfork bits.
11179
eedf8bde
GM
111802000-02-12 Gerd Moellmann <gerd@gnu.org>
11181
11182 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
11183 unwind function to undo the effect of stopping atimers.
11184
52283633 11185 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
eedf8bde
GM
11186
11187 * atimer.c (stopped_atimers): New variable.
11188 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
11189 New functions.
11190
11191 * atimer.h (stop_other_atimers, run_all_atimers)
11192 (unwind_stop_other_atimers): Add function prototypes.
427ec082 11193
eedf8bde
GM
11194 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
11195
8476c2f8
KR
111962000-02-11 Ken Raeburn <raeburn@gnu.org>
11197
11198 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
11199 library may depend on jpeg.
11200 (atimer.o): Depends on atimer.c.
11201
0e85e4a3
KH
112022000-02-11 Kenichi Handa <handa@etl.go.jp>
11203
11204 * insdel.c (del_range_1): Call update_compositions.
11205 (del_range_both): Call update_compositions just once..
11206
97fa0cc8
DL
112072000-02-10 Dave Love <fx@gnu.org>
11208
11209 * xfns.c (create_frame_xic): Fix initialization of automatic
11210 aggregates for pcc.
11211
25566a3c
KH
112122000-02-09 Kenichi Handa <handa@etl.go.jp>
11213
11214 * ccl.c (CCL_MAKE_CHAR): New macro.
11215 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
11216 registers by CCL_MAKE_CHAR before calling translate_char.
11217 <CCL_TranslateCharacterConstTbl> Likewise.
11218
69da54ba
DL
112192000-02-08 Dave Love <fx@gnu.org>
11220
11221 * lread.c (__EXTENSIONS__): Define.
11222
f7136ee8
GM
112232000-02-08 Gerd Moellmann <gerd@gnu.org>
11224
11225 * puresize.h (BASE_PURESIZE): Increase to 650000.
11226
7768790b
EZ
112272000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
11228
11229 * msdos.c (XMenuActivate): Turn off the cursor after displaying
11230 the help message.
11231
38fd211b
EZ
112322000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
11233
11234 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
11235 md, mh, mb, mr, and me to the fake termcap entry.
11236
66e4690f
KR
112372000-02-06 Ken Raeburn <raeburn@gnu.org>
11238
11239 * sound.c (sound_cleanup): Don't call device close routine if the
11240 function pointer is null.
11241
a75dfea0
AI
112422000-02-06 Andrew Innes <andrewi@gnu.org>
11243
11244 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
11245 around image definitions and prototypes.
11246 (gamma_correct) [WINDOWSNT]: New prototype.
11247
11248 * w32term.c (x_make_frame_visible): Replace call to
11249 input_poll_signal with poll_for_input.
11250
11251 * window.c [WINDOWSNT]: Include w32term.h.
11252
11253 * xdisp.c [WINDOWSNT]: Include w32term.h.
11254
11255 * makefile.nt: Add dependencies on w32gui.h.
11256 (OBJ1): Include atimer.obj.
11257 ($(BLD)\atimer.obj): New dependency rule.
11258
11259 * w32.c (sigmask): New function (does nothing).
11260 (sigunblock): Ditto.
11261
11262 * frame.c [WINDOWSNT]: Include w32term.h.
11263
11264 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
11265
11266 * lread.c (syms_of_lread): Fix literal newlines.
11267
11268 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
11269 the string constant limit (2048 bytes) in MSVC.
11270 (main): Ditto.
11271
59ddecde
GM
112722000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
11273
52283633 11274 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
59ddecde
GM
11275 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
11276 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
11277 dispatch the event.
11278
07590973
DL
112792000-02-04 Dave Love <fx@gnu.org>
11280
11281 * fileio.c: Remove some unused vars.
11282 (_GNU_SOURCE): Define (for euidaccess).
11283
11284 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
11285
11286 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
11287 gcpro1, gcpro2.
11288 (read_minibuf): Deal with allow_props correctly.
11289
649351f9
EZ
112902000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
11291
11292 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
11293
66e4690f 112942000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
11295
11296 * search.c (compile_pattern): If a cache entry has a nil regexp,
11297 fill in that entry instead of clobbering a previously cached
11298 string regexp.
11299
66e4690f 113002000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
11301
11302 * puresize.h (BASE_PURESIZE): Increase to 610000.
11303
d240a249
GM
113042000-02-02 Gerd Moellmann <gerd@gnu.org>
11305
11306 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
11307 can GC.
11308
ca91fb26
KH
113092000-02-02 Kenichi Handa <handa@etl.go.jp>
11310
25660570
KH
11311 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
11312 instead of incrementing ic directly.
11313 <CCL_WriteExprConst> Likewise.
11314 <ccl_set_expr>: Set ic to jump_address.
11315
ca91fb26
KH
11316 * fileio.c (e_write): Fix the handling of
11317 CODING_FINISH_INSUFFICIENT_SRC.
11318
2ede9689
DL
113192000-02-01 Dave Love <fx@gnu.org>
11320
11321 * editfns.c (Fpropertize): Doc fix.
11322
11323 * process.c (Fstart_process): Doc fix.
11324
11325 * eval.c: Fix various doc strings not to duplicate information
11326 from help-manyarg-func-alist.
11327
52283633 11328 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
2ede9689
DL
11329
11330 * doc.c (Vhelp_manyarg_func_alist): New variable.
11331 (Fdocumentation): Use it.
11332 (syms_of_doc): Define it.
11333
b6680a0e
GM
113342000-01-31 Gerd Moellmann <gerd@gnu.org>
11335
2cb750ba
GM
11336 * xterm.c (xim_open_dpy): Remove unused local variable.
11337
52283633 11338 * emacs.c (USAGE): Use term `display options' instead of `X options'.
74e9213b
GM
11339
11340 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
11341 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
11342
b6680a0e
GM
11343 * fns.c (sweep_weak_table): New function.
11344 (sweep_weak_hash_tables): Use it. Keep on marking until there
11345 is no more change.
11346
994c5afe
GM
113472000-01-30 Gerd Moellmann <gerd@gnu.org>
11348
11349 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
11350 that XTread_socket does not crash by trying to call XNoOp on a
11351 closed display.
427ec082 11352
f00276e3
JR
113532000-01-30 Jason Rumney <jasonr@gnu.org>
11354
11355 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
11356 Change selected_frame to SELECTED_FRAME ().
11357 (w32_console_mouse_position): Remove #ifndef MULE from around
11358 `insist' parameter.
11359
11360 * makefile.nt: Remove dosfns.obj.
11361
11362 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
11363
11364 * w32fns.c (w32_defined_color): Check for valid frame before
11365 applying gamma correction. Eliminate dependency on frame elsewhere.
11366 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
11367 (w32_to_x_font): Use resx and resy not height_in and width_in.
11368 (x_to_w32_font): Doc fix.
11369 (xlfd_strip_height): New function to strip and return font height.
11370 (w32_font_match): Compare height separately from rest of xlfd
11371 spec, using xlfd_strip_height.
11372
11373 * w32term.c (w32_term_init): Swap resx and height_in, resy and
11374 width_in. Use w32_defined_color in place of defined_color.
11375
11376 * w32faces.c: Merge more of DOS and X specifics in preparation for
11377 merge with xfaces.c.
11378 (defined_color): Remove FIXME comment.
11379 (tty_color_name): Provide w32-specific function.
11380 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
11381
11382 * w32console.c (turn_on_face, turn_off_face): Removed.
11383 (w32_face_attributes): New function.
11384 (Global_variables): Reduce scope where possible.
11385 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
11386 fill attribute.
11387 (hl_mode): Don't modify text attributes.
11388 (write_glyphs): Don't do anything if len <= 0. Use
11389 w32_face_attributes to get attributes for drawing. Write
11390 terminating codes using char_attr_normal.
11391 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
11392 (update_begin, update_end): Likewise.
11393 (vga_stdcolor_name): New function.
11394 (initialize_w32_display): Remove char_attr_reverse and char_attr.
11395 (Fset_screen_color): Remove char_attr_reverse.
11396
b08e8bb2
GM
113972000-01-29 Gerd Moellmann <gerd@gnu.org>
11398
11399 * xfns.c (xic_set_preeditarea): Take window parameter and
11400 window-relative pixel-positions.
11401
11402 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
11403 is its frame's selected window.
11404 (xim_instantiate_callback): Likewise.
11405
11406 * xfns.c (x_create_im): Removed.
11407 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
11408 (supported_xim_styles): Renamed from supported_styles.
11409 (best_xim_style): Renamed from best_style.
11410 (create_frame_xic): Renamed from xic_create_frame.
11411 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 11412
b08e8bb2
GM
114132000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
11414
11415 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
11416 our frames, call XFilterEvent with 2nd parameter `None'.
11417 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
11418 returning XBufferOverflow.
52283633 11419 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
b08e8bb2
GM
11420 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
11421 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
11422 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
11423 (xim_initialize, xim_close)
11424 [HAVE_X_I18N && HAVE_X11R6]: New functions.
11425 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
11426 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
11427 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
11428
11429 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
11430 and `xim_styles'.
11431 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
11432 `xic_style' and `xic_xfs'.
11433 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
11434 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
11435 (FRAME_XIM): Removed.
11436
11437 * xfns.c (supported_styles): New variable.
11438 (DEFAULT_STYLE, DEFAULT_FONT): New macros
11439 (xic_create_xfontset, best_style, xic_create_frame)
11440 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
11441 (xic_set_xfontset): New functions.
11442
142e109c
DL
114432000-01-28 Dave Love <fx@gnu.org>
11444
11445 * s/irix6-5.h: Revert last change after change to irix5-0.h.
11446
11447 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
11448
b02786f9
GM
114492000-01-28 Gerd Moellmann <gerd@gnu.org>
11450
d060bc9f
GM
11451 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
11452 for *scratch* if it already existed.
11453
b02786f9
GM
11454 * emacs.c (USAGE): New macro.
11455 (main): Use it to display usage information.
11456
2c52d7e4
EZ
114572000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
11458
11459 Support for the menu-help feature:
11460
52283633 11461 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
2c52d7e4
EZ
11462
11463 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
11464 part of the line to the termscript file.
11465 (IT_clear_to_end): Clear the entire line, not just its beginning.
11466 (menu_help_message, prev_menu_help_message): New variables.
11467 (IT_menu_make_room): Make room for the help_text member.
11468 (IT_menu_display): New argument disp_help; all callers changed.
11469 If disp_help is non-zero, store the help text of the active menu
11470 item in menu_help_message.
11471 (XMenuAddPane): Initialize the help_text member to NULL.
11472 (XMenuAddSelection): New argument help_text. Store it in the
11473 XMenu structure.
11474 (XMenuActivate): New argument help_callback. If the value of
11475 menu_help_message has changed since the last time, display the
11476 menu help message text while waiting for the mouse to move. Clear
11477 the echo area before exiting.
11478 (XMenuDestroy): Free the help_text member.
11479
ffe0bcd1
GM
114802000-01-27 Gerd Moellmann <gerd@gnu.org>
11481
11482 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
11483 XMenuAddSelection. Pass help callback to XMenuActivate.
11484 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
11485
50dbd23f
EZ
114862000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
11487
11488 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
11489 and EMACS_SET_USECS.
11490
f5941bf8
GM
114912000-01-26 Dave Love <fx@gnu.org>
11492
6c67ddee
DL
11493 * editfns.c (Fchar_after, Fchar_before): Doc fix.
11494
f5941bf8
GM
11495 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
11496 an error may be signalled.
11497
9e49c990
GM
114982000-01-26 Gerd Moellmann <gerd@gnu.org>
11499
fc3cb460
GM
11500 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
11501 LD_SWITCH_SYSTEM inherited from irix5-0.h.
11502
9e49c990
GM
11503 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
11504
d0c037d8
GM
115052000-01-25 Gerd Moellmann <gerd@gnu.org>
11506
11507 * charset.c (Fstring): If there is a multibyte char among
11508 the args, always return a multibyte string.
11509
e12489f9
GM
115102000-01-25 Gerd Moellmann <gerd@gnu.org>
11511
11512 * sysdep.c (sys_select): Turn atimers off and on instead of
11513 recording and restoring old alarm handler
11514
11515 * process.c (toplevel): Include atimer.h.
11516 (create_process_1): Rewritten.
11517 (create_process): Use atimers instead of alarm.
11518 (wait_reading_process_input) [hpux]: Turn atimers off instead
11519 of turning off SIGALRM.
11520 (wait_reading_process_input): Turn off atimers instead off
11521 calling stop_polling.
11522
11523 * emacs.c (main): Call init_atimer.
11524
11525 * keyboard.c (toplevel): Include systime.h and atimer.h.
11526 (polling_for_input): Removed because unused.
11527 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
11528 (poll_timer): New variable.
11529 (poll_for_input, poll_for_input_1): New functions.
11530 (start_polling, stop_polling): Rewritten.
11531
11532 * keyboard.h (polling_for_input): Removed.
427ec082 11533
e12489f9
GM
11534 * atimer.h, atimer.c: New files.
11535
11536 * Makefile.in (obj): Add atimer.o.
11537 (atimer.o): New target.
11538
11539 * blockinput.h (pending_atimers): Add extern declaration.
11540 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
11541
11542 * lisp.h (popup_activated_flag): Add extern declaration.
11543
11544 * xmenu.c (popup_activated_flag): Make externally visible.
52283633 11545 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
e12489f9
GM
11546 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
11547
11548 * xterm.c (toplevel): Include atimer.h.
11549 (toolkit_scroll_bar_interaction): New variable.
11550 (Fxt_process_timeouts): Removed.
11551 (x_process_timeouts): New function.
11552 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
11553 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
11554 (x_make_frame_visible): Call poll_for_input_1 instead of
11555 input_poll_signal. Don't call alarm.
11556 (x_initialize): Install timer calling x_process_timeouts.
427ec082 11557
1e5279b9
DL
115582000-01-24 Dave Love <fx@gnu.org>
11559
6c67ddee 11560 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
11561 Don't use -cckr -- apparently not now necessary.
11562
edf6aeb8
EZ
115632000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
11564
11565 * msdos.c (IT_menu_display): Truncate long menu lines at the right
11566 screen boundary.
11567
9badad41
JR
115682000-01-23 Jason Rumney <jasonr@gnu.org>
11569
11570 * w32fns.c (w32_defined_color): Apply gamma correction before
11571 trying to map to the palette.
11572 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
11573 to w32_clear_rect.
11574
11575 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
11576 here. Callers changed to always pass real device context.
11577 (w32_draw_bitmap): Likewise.
11578 (w32_get_glyph_overhangs): Likewise.
52283633 11579 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
9badad41
JR
11580 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
11581 pfnSetScrollInfo and SetScrollRange.
11582 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
11583 back into MULE characters after decoding them.
11584 (x_get_glyph_face_and_encoding): Likewise.
11585 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
11586 GetCharABCWidthsW fails, since this is defined on Windows 9x.
11587 (x_produce_glyphs): Calculate per char metrics for a character
11588 that we know exists in default font when font_not_found_p is true.
11589
63bd786b
JR
115902000-01-22 Jason Rumney <jasonr@gnu.org>
11591
11592 * makefile.nt (intervals.obj, composite.obj): New modules.
11593 (composite.h): Added as dependency where appropriate.
11594
11595 * w32gui.h (XGCValue): New struct for emulating X GCs.
11596
11597 * w32term.h (XCharStruct): New struct for emulating X.
11598
11599 * w32console.c (turn_on_face, turn_off_face): New functions.
11600 (change_line_highlight): New prototype for new redisplay.
11601 (write_glyphs): Support multibyte text. Support faces.
11602
52283633 11603 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
63bd786b
JR
11604
11605 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
11606 throughout. struct frame * in place of FRAME_PTR.
11607 Skeleton support for images, toolbars, tooltips from xfns.c.
52283633 11608 (Fx_create_frame): Use system default for default scroll bar width.
63bd786b
JR
11609 (w32_get_arg): Renamed from x_get_arg.
11610 (Fx_file_dialog): New function.
11611 (w32_list_fonts): Check cache before asking system.
11612 (Vw32_enable_synthesized_fonts): New variable.
11613 (Vw32_enable_italics): Obsolete, removed.
11614
11615 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
11616 Use SELECTED_FRAME macro.
11617
11618 * w32menu.c: Add skeleton support for help strings on menus.
11619 (add_menu_item): Native checkbox and radio support added, but not
11620 yet enabled due to bugs.
11621 (push_menu_item): Add parameters type, selection and help.
11622 Callers updated.
11623 Formatting changes to reduce unnecessary diffs with xmenu.c.
11624
11625 * w32select.c (Fw32_set_clipboard_data): Update call to
11626 find_charset_in_str.
11627
11628 * w32term.c: Complete rewrite for new redisplay based on new
11629 xterm.c with necessary sections merged back in from old w32term.c.
11630
6ffd3cf7 116312000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
11632
11633 * data.c (set_internal): Further fix in same criterion.
11634
6ffd3cf7 116352000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
11636
11637 * data.c (set_internal): Fix the criteria for whether
11638 to swap out the old cached binding.
11639
60af03f1
DL
116402000-01-19 Dave Love <fx@gnu.org>
11641
11642 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
11643
f9be074f
KH
116442000-01-18 Kenichi Handa <handa@etl.go.jp>
11645
11646 * regex.c (re_compile_fastmap): While checking a range table for
11647 `charset', skip flag bits for a character class correctly.
11648
52b8dbf9
GM
116492000-01-17 Gerd Moellmann <gerd@gnu.org>
11650
d36100c9
GM
11651 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
11652
52283633 11653 * xfns.c (x_window): Call lw_create_widget with new parameter list.
52b8dbf9
GM
11654
11655 * widget.c (EmacsFrameSetCharSize): Change size of children first
52283633 11656 because of problems with main window geometry management under Lesstif.
52b8dbf9
GM
11657
11658 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
11659 MENU_ITEMS_ITEM_.*.
11660 (MENU_ITEMS_ITEM_HELP): New enumerator.
11661 (push_menu_item): Add parameter HELP. Record help in menu_items.
11662 (single_menu_item, single_submenu, list_of_items): Call
11663 push_menu_item with new parameter.
11664 (single_submenu): Set help string in widget value.
11665 (menu_highlight_callback): New function.
11666 (set_frame_menubar): Call lw_create_widget with new
11667 parameter list.
11668 (xmenu_show, xdialog_show): Ditto.
11669
3139018f
GM
116702000-01-13 Gerd Moellmann <gerd@gnu.org>
11671
11672 * sound.c (Fplay_sound): Improve doc string.
11673
83c8f461
RS
116742000-01-11 Richard M. Stallman <rms@gnu.org>
11675
11676 * lisp.h (set_internal): Enter the new arg.
11677
11678 * eval.c (specbind): Record buffer-local variables specially,
11679 indicating which buffer's binding was saved.
11680 (unbind_to): Restore buffer-local variables specially
11681 in the proper buffer.
11682
11683 * data.c (set_internal): New arg BUF.
427ec082 11684
83c8f461
RS
11685 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
11686 * data.c (Fset): Pass new arg to set_internal.
11687 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 11688
1fab1775
GM
116892000-01-11 Gerd Moellmann <gerd@gnu.org>
11690
52283633 11691 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
1fab1775 11692
83c8f461 116932000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
11694
11695 * minibuf.c (Ftry_completion): Doc fix.
11696
7a85e4df
GM
116972000-01-11 Gerd Moellmann <gerd@gnu.org>
11698
11699 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
11700 vector, too.
11701
a970dae4
AS
117022000-01-11 Andreas Schwab <schwab@suse.de>
11703
11704 * coding.c (code_convert_region): Initialize total_skip.
11705
c65d14ee
DL
117062000-01-08 Dave Love <fx@gnu.org>
11707
11708 * eval.c (Fuser_variable_p): Check customizability too.
11709
834938d2
GM
117102000-01-07 Gerd Moellmann <gerd@gnu.org>
11711
11712 * minibuf.c (Fcompleting_read): Doc fix.
11713
e0303cd6
GM
117142000-01-05 Gerd Moellmann <gerd@gnu.org>
11715
8a26744b
GM
11716 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
11717 -L /usr/local/lib.
11718
e0303cd6
GM
11719 * xfns.c (x_create_im): New function to set IM and IC of a frame.
11720 Check that input style is supported before trying to create an
11721 IC for it.
11722 (x_window): Call x_create_im.
427ec082 11723
2e471eb5
GM
117242000-01-04 Gerd Moellmann <gerd@gnu.org>
11725
560a7bd2
GM
11726 * xfns.c (current_gif_memory_src): New variable.
11727 (gif_load): Record the address of the current memory source
11728 in current_gif_memory_src.
11729 (gif_read_from_memory): Use current_gif_memory_src.
11730
f9ee84a3
GM
11731 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
11732 macros statement form.
11733
d1299cde
GM
11734 * sound.c (struct sound): Renamed from struct sound_file.
11735 (struct sound): Add members `data' and `header_size'.
11736 (enum sound_attr): Add SOUND_DATA.
11737 (current_sound, current_sound_device): Variables renamed from
11738 sound_file and sound_device.
11739 (parse_sound): Parse :data.
11740 (parse_sound): Handle sound data in strings.
11741 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 11742 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
11743 needed header size.
11744 (wav_play, au_play): Play sounds from string data.
11745
2e471eb5
GM
11746 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
11747
11748 * lisp.h: Add prototype for allocate_string_data.
11749
52283633 11750 * alloc.c (Fgarbage_collect): Return number of live and free strings.
2e471eb5
GM
11751
11752 * alloc.c (mark_buffer): Remove code in #if 0.
11753 (gc_sweep): Ditto.
11754 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
11755 (strings_consed): New variable.
11756 (allocate_string): Set it.
11757 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
11758 (Fmemory_use_counts): Return strings_consed. Use Flist.
11759
11760 * alloc.c: General cleanup in comments etc. Remove conditional
11761 compilation for `standalone'.
11762
11763 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
11764
11765 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
11766 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
11767 (DONT_COPY_FLAG): Removed.
11768 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
11769 (struct sdata, struct sblock): New
11770 (struct string_block): Rewritten.
11771 (STRINGS_IN_STRING_BLOCK): New macro.
11772 (oldest_sblock, current_sblock, total_strings, total_free_strings)
11773 (large_sblocks, string_blocks, string_free_list): New variables.
11774 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
11775 (init_strings): Rewritten.
11776 (allocate_string, allocate_string_data, compact_small_strings)
11777 (free_large_strings, sweep_strings): New functions.
11778 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
11779 (struct string_block_head, current_string_block)
11780 (first_string_block, large_string_blocks, STRING_FULLSIZE)
11781 (STRING_PAD): Removed.
11782 (make_uninit_multibyte_string, make_pure_string): Rewritten.
11783 (Fgarbage_collect): Don't set mark bit in large strings.
11784 (mark_object): Mark strings differently. Mark symbol names
11785 differently.
11786 (survives_gc_p): Test marked strings differently.
427ec082 11787 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
11788 symbol names.
11789 (compact_strings): Removed.
11790
42608ba8
EZ
117912000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
11792
11793 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
11794 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
11795
e0a09e1a
KH
117962000-01-04 Kenichi Handa <handa@etl.go.jp>
11797
dd9f0750 11798 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 11799 in a non-empty buffer.
dd9f0750 11800
3c0f3b15 11801 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 11802
44cd3ae5
GM
118032000-01-03 Gerd Moellmann <gerd@gnu.org>
11804
11805 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
11806 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
11807
11808 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
11809
c182a70f
EZ
118102000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11811
11812 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
11813 need to test for MSDOS frames.
11814
24480d5b
EZ
118152000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11816
11817 * dosfns.c (unspecified_colors): Remove.
11818 (msdos_stdcolor_idx): Use global variables unspecified_fg and
11819 unspecified_bg.
11820 (msdos_stdcolor_name): Return strings for unspecified fore- and
11821 back-ground colors.
11822
11823 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 11824 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
11825 (tty_color_name): Return Lisp strings for unspecified fore- and
11826 back-ground colors.
11827 (Finternal_set_lisp_face_attribute): Remove the special treatment
11828 for Qunspecified_{f,b}g.
52283633 11829 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
24480d5b 11830
047f434a
GM
118312000-01-03 Gerd Moellmann <gerd@gnu.org>
11832
11833 * xdisp.c (reseat_at_next_visible_line_start): Position before
11834 newline only if ending up on a newline.
11835 (next_element_from_ellipsis): Return success. Handle case of
52283633 11836 displaying no ellipsis. Fix case of ellipsis defined in display table.
047f434a
GM
11837 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
11838 returns 0.
11839
d684c676
EZ
118402000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11841
11842 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
11843 (Fcolor_supported_p): Renamed from face-color-supported-p.
11844
5fe1d139
EZ
118452000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11846
11847 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
11848 list of colors renamed to tty-defined-color-alist.
11849 (tty_color_name): Pass the frame to tty-color-by-index.
11850 (realize_tty_face): tty-color-alist is now a function which
11851 accepts the frame as argument.
11852
52283633 11853 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
5fe1d139 11854
816be8b8
EZ
118552000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11856
11857 * term.c (insert_glyphs): Pass glyph, not &glyph, to
11858 encode_terminal_code.
11859
b635321e
EZ
118602000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11861
11862 * dispnew.c (mode_line_string): Support termcap frames as well.
11863
9b784e96
GM
118642000-01-01 Gerd Moellmann <gerd@gnu.org>
11865
27189709
GM
11866 * syntax.c (Fforward_word): Undo previous change.
11867
11868 * editfns.c (Fconstrain_to_field): Don't constrain if
11869 inhibit-field-text-motion is non-nil.
11870 (Fline_beginning_position): Undo previous change.
11871 (Fline_end_position): Ditto.
11872
11873 * syntax.c (Fforward_word): Notice field boundaries only if
11874 inhibit-field-text-motion is nil.
11875
11876 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
11877
11878 * editfns.c (Vinhibit_field_text_motion): New variable.
11879 (inhibit-field-text-motion): New DEFVAR_LISP.
11880 (Fline_beginning_position, Fline_end_position): Notice field
11881 boundaries only if inhibit-field-text-motion is nil.
11882
45158a91
GM
11883 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
11884 All calls adjusted.
11885 (x_build_heuristic_mask): Likewise.
11886 (xbm_load_image_from_file): Change error output.
11887 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
11888 (gif_load, gs_load, x_kill_gs_process): Ditto.
11889
9b784e96
GM
11890 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
11891 color indices when accessing raster pixels.
63cec32f
GM
11892 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
11893 one of :file or :data.
11894 (enum pbm_keyword_index): Add PBM_DATA.
11895 (pbm_format): Add :data.
11896 (pbm_image_p): Allow either :file or :data.
11897 (pbm_read_file): New function.
11898 (pbm_scan_number): Rewritten to read from string.
11899 (pbm_load): Support :data.
9b784e96 11900
2cb085db 11901See ChangeLog.8 for earlier changes.
6922b018
KH
11902
11903;; Local Variables:
49b3bd82 11904;; coding: iso-2022-7bit
6922b018 11905;; End: