2001-08-21 Andrew Choi <akochoi@cse.cuhk.edu.hk>
[bpt/emacs.git] / src / ChangeLog
CommitLineData
e8660d73
GM
12001-08-16 Gerd Moellmann <gerd@gnu.org>
2
cca1b1d7
GM
3 * xrdb.c (SYSV): Don't define on Solaris 2.
4 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
5
e8660d73
GM
6 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
7 of the screen line, not text line, containing IT's current
8 position.
9
93aba6fc
GM
102001-08-15 Gerd Moellmann <gerd@gnu.org>
11
288d4e06
GM
12 * window.c (window_scroll_pixel_based): Don't recenter if
13 PT is partially visible in the window.
14
82f053ab
GM
15 * xterm.c (expose_window_tree, expose_window, expose_line): Return
16 1 when overwriting mouse-face.
17 (expose_frame): If mouse-face was overwritten, redo it.
18
93aba6fc
GM
19 * xfaces.c (x_update_menu_appearance): Don't call
20 set_frame_menubar, let the next redisplay do it.
21
858a55c1
AI
222001-08-14 Andrew Innes <andrewi@gnu.org>
23
24 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
25 drawing glyph string.
26
3a990b67
EZ
272001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
28
29 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
30 running HI-UX/MPP.
31
04386463
GM
322001-08-14 Gerd Moellmann <gerd@gnu.org>
33
34 * xfaces.c (x_update_menu_appearance): Save and restore value of
35 interrupt_input_blocked.
36
3e6385a4
GM
372001-08-13 Gerd Moellmann <gerd@gnu.org>
38
b0e619b4
GM
39 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
40 a line start, move back to the line start.
41
0de73d5a
GM
42 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
43 exactly when a mini-buffer is active.
44
3e6385a4
GM
45 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
46 in units of 1/8 character on non window-system frames.
47 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
48
d1b5f629
EZ
492001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
50
51 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
52 a doc string.
53
eaa2319f
GM
542001-08-09 Gerd Moellmann <gerd@gnu.org>
55
8e3189f0
GM
56 * keyboard.c (Vpre_help_message): New variable.
57 (syms_of_keyboard): Initialize and staticpro it.
58 (show_help_echo): Record current message before displaying a
59 help-echo, and restore that message when clearing the help.
60
eaa2319f
GM
61 * xfns.c (x_create_im): Remove prototype.
62
63 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
64
65 * dispnew.c (adjust_glyph_matrix): Undo last change.
66
672001-08-08 Gerd Moellmann <gerd@gnu.org>
68
69 * dispnew.c (adjust_glyph_matrix): In the optimization for
70 windows whose height has changed, disable partially visible
71 lines.
72
17fdcfc8
GM
732001-08-07 Gerd Moellmann <gerd@gnu.org>
74
22d01aed
GM
75 * window.c (Frecenter): If ARG < 0, and on a window system
76 frame, count in some empty lines when we can't move -ARG lines
77 down.
78
17fdcfc8
GM
79 * xdisp.c (start_display): Don't try to determine the continuation
80 lines width if lines are truncated. It's superfluous and leads to
81 incorrect results if POS is not visible in the window after
82 reseating the iterator at the previous line start.
83
8e3fe78e
GM
842001-08-06 Gerd Moellmann <gerd@gnu.org>
85
86 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
87
98a8938c
GM
882001-08-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
89
90 * alloc.c (init_stack): Remove declaration.
91
18f9986a
GM
922001-08-03 Gerd Moellmann <gerd@gnu.org>
93
5e1f85e0
GM
94 * keyboard.c (read_key_sequence): Check that key is an integer
95 before comparing it with quit_char.
96 (add_command_key): Use larger_vector.
97 (read_char_x_menu_prompt): Instead of converting symbol and
98 integer events into conses (EVENT . nil), use (EVENT . disabled)
3638868e 99 which cannot be confused with valid events.
5e1f85e0
GM
100 (read_char): When reading from Vunread_command_events, check for
101 events of the form (EVENT . disabled) instead of
102 (EVENT . nil).
103
18f9986a
GM
104 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
105 a float, determine the max height from the frame's height.
106
fbc7f2a6
GM
1072001-08-02 Gerd Moellmann <gerd@gnu.org>
108
109 * xdisp.c (redisplay_internal): Take message_cleared_p into
110 account only if minibuf_level == 0.
111
81b1a79d
GM
1122001-08-01 Gerd Moellmann <gerd@gnu.org>
113
e5c60873
GM
114 * xdisp.c (redisplay_internal): Add a check for the last
115 displayed message.
116
6e019995
GM
117 * xdisp.c (message_cleared_p): New variable.
118 (clear_message): Set message_cleared_p when clearing the current
119 message.
120 (redisplay_internal): Look at message_cleared_p to capture
121 the case that the echo area should be cleared.
122
308a74d8
GM
123 * keyboard.c (command_loop_1): Fix spelling of
124 resize_echo_area_exactly.
125
126 * dispextern.h (resize_echo_area_exactly): Fix typo in function
127 name.
128
129 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
130
81b1a79d
GM
131 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
132 current matrix when the window gets smaller.
133
ada329e6
EZ
1342001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
135
136 * print.c (strout): Cast the character passed to insert_char to
137 unsigned char, to avoid sign extension when it is promoted to int.
138
ed86208c
GM
1392001-07-31 Gerd Moellmann <gerd@gnu.org>
140
141 * fileio.c (Finsert_file_contents): Don't treat a return value
142 of 0 from emacs_read as an IO error.
143
6594ac22
GM
1442001-07-30 Gerd Moellmann <gerd@gnu.org>
145
cef68af5
GM
146 * keyboard.c (abs): New macro.
147 (double_click_fuzz): New variable.
148 (make_lispy_event): Use it to determine what makes a double-click.
149 (syms_of_keyboard): DEFVAR_INT it.
150
6594ac22
GM
151 * xmenu.c (set_frame_menubar): Take into account that
152 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
153 <raeburn@gnu.org>.
154
75c5350a
GM
1552001-07-27 Gerd Moellmann <gerd@gnu.org>
156
157 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
158
159 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
160 of row's visible height.
161
162 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
163 deal with the first overlay string having an image `display'
164 property.
165 (try_window_reusing_current_matrix, compute_line_metrics): Fix
166 computation of row's visible height for the case that part of the
167 row is invisible above and part of the row is at the same time
168 invisible below the window.
169
ac49effe
GM
1702001-07-26 Gerd Moellmann <gerd@gnu.org>
171
172 * xfns.c (x-show-tip): Doc fix.
173
174 * xfns.c (Vx_max_tooltip_size): New variable.
175 (syms_of_xfns): DEFVAR_LISP it.
176 (Fx_show_tip): Set frame's window_width to the width of the
177 window. Use a maximum tooltip size specified by
178 Vx_max_tooltip_size, if that has valid contents.
179 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
180
8c3b00cb
AI
1812001-07-26 Andrew Innes <andrewi@gnu.org>
182
183 * w32term.c (x_display_list): New variable.
184 (w32_term_init): Set it.
185
186 * w32term.h (x_display_list): New extern.
187
16098288
GM
1882001-07-26 Gerd Moellmann <gerd@gnu.org>
189
190 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
191 is non-nil, instead of when redisplaying_p is non-zero. See
192 comment there.
193 (mark_window_display_accurate_1): Add an assertion.
194
64c5be50
GM
1952001-07-25 Gerd Moellmann <gerd@gnu.org>
196
e743f599
GM
197 * dispextern.h (struct it): Increase size of ctl_chars to 16.
198
563b384d
GM
199 * xfns.c (Fx_file_dialog): Block/unblock input while processing
200 events so that we get a chance of processing expose events.
201
64c5be50
GM
202 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
203
296808a5
GM
2042001-07-24 Gerd Moellmann <gerd@gnu.org>
205
206 * xfns.c (valid_image_p): Protect better against invalid image
207 specifications. Previous code could signal an error.
208
5247262a
GM
2092001-07-23 Gerd Moellmann <gerd@gnu.org>
210
f1004faf
GM
211 * indent.c (current_column): Fix column computation in the
212 presence of display table entries.
213 (current_column_1, Fmove_to_column, compute_motion): Likewise.
214
dd42b31a
GM
215 * dispnew.c (adjust_glyph_matrix): In the optimization for
216 windows whose height has changed, use the new window height
217 to compute which rows to invalidate.
218
9e5a7f2a
GM
219 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
220 (MAX_10_EXP): New macro.
221 (Fformat): Use it.
222
5247262a
GM
223 * coding.c (code_convert_region): Handle the multibyte case if
224 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
225
177ab8ce
GM
2262001-07-20 Gerd Moellmann <gerd@gnu.org>
227
6e07c0a5
GM
228 * dispextern.h (struct face): Change type of `stipple' to
229 int; it's an ID.
230
177ab8ce
GM
231 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
232
b5b80599
GM
2332001-07-19 Gerd Moellmann <gerd@gnu.org>
234
4e2a256b
GM
235 * dispnew.c (update_window): Don't set the cursor at the end
236 of the update if display update has been paused.
237
b5b80599
GM
238 * composite.h (syms_of_composite): Renamed from
239 syms_of_composition.
240
c1fd9232
KR
2412001-07-18 Ken Raeburn <raeburn@gnu.org>
242
243 * fns.c (Fset_char_table_default): Check that a charset is defined
244 before checking its dimension.
245
928a85c1
KR
2462001-07-17 Ken Raeburn <raeburn@gnu.org>
247
248 * coding.c (setup_coding_system): Don't do any designation based
249 on reg_bits if charset is not yet defined.
250
232e274c
KR
251 * lisp.h (XVECTOR): Verify correct object type before returning a
252 pointer, using eassert.
253
de11c1ea
GM
2542001-07-17 Gerd Moellmann <gerd@gnu.org>
255
256 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]: Increase
257 to 4096 because of paste problems reported on GNU/Linux.
258
467f1209
GM
2592001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
260
261 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
262
c3d6be34
GM
2632001-07-16 Gerd Moellmann <gerd@gnu.org>
264
c1d61a7d
GM
265 * fileio.c (unwind_read): Function removed.
266 (read_non_regular, read_non_regular_quit): New functions.
267 (Finsert_file_contents): When reading from non-regular files,
268 arrange to catch a `quit' and terminate the loop. Rearrange
269 code so that a `quit' when reading from a regular file doesn't
270 insert text in the buffer.
271
c3d6be34
GM
272 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
273 Clear faces afterwards.
274 (clear_font_table): Take a x_display_info parameter. Don't free
275 fonts being the default font of any frame on the given display.
276
e06aa1f9
GM
2772001-07-13 Gerd Moellmann <gerd@gnu.org>
278
279 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
280 instead of CHAR_STRING which can signal an error.
281
282 * charset.c (char_to_string_1): Extracted from char_to_string.
283 Return -1 instead of signaling an error.
284 (char_to_string): Use it.
285
286 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
287
176c92e6
SM
2882001-07-12 Stefan Monnier <monnier@cs.yale.edu>
289
290 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
291 is t, don't try to append anything to it.
292
1c56232f
EZ
2932001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
294
295 * dired.c (file_name_completion): Pass dp->d_name to
296 Fstring_match, not elt, which is always nil here.
297
1d2b2268
GM
2982001-07-12 Gerd Moellmann <gerd@gnu.org>
299
300 * xselect.c (x_decline_selection_request): Handle errors
301 caused by receivers that have vanished.
302
303 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
304 ignoring events on foreign windows in #if 0. Always dispatch
305 the event after checking it with x_handle_property_notify.
306
307 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
176c92e6
SM
308 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
309 TRACE macros to facilitate debugging. Add additional trace statements.
1d2b2268
GM
310 (toplevel): Add prototypes for file-local functions.
311 (x_atom_to_symbol): Remove DPYINFO parameter.
312
fe5a0162
SM
3132001-07-11 Stefan Monnier <monnier@cs.yale.edu>
314
315 * w32menu.c (menubar_selection_callback, w32_menu_show):
316 Initialize `entry' to nil.
317 (w32_dialog_show): Remove unused `save_wv' variable.
318 (name_is_separator): Recognize "--:foo" and "--foo-bar".
319
a777242c
GM
3202001-07-11 Gerd Moellmann <gerd@gnu.org>
321
8ee5b6a3
GM
322 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
323
d0e2444e
GM
324 * fileio.c (unwind_read): Print a message when discarding inserted
325 text or switching the buffer to unibyte. Change parameter.
326 (Finsert_file_contents): Don't pass VISIT to unwind_read.
fe5a0162 327
a777242c
GM
328 * fileio.c (unwind_read): New function.
329 (Finsert_file_contents): Record it as unwind-function for
330 the case that reading is interrupted by C-g.
331
ae794295
GM
3322001-07-10 Gerd Moellmann <gerd@gnu.org>
333
fe5a0162 334 * dispnew.c (update_window): Don't skip the header-line
58f8612a
GM
335 update when scrolling_window returns 0.
336
6b05fae3
GM
337 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
338
339 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
58f8612a 340 for the case that x_decode_color signals an error.
6b05fae3 341
ae794295
GM
342 * xdisp.c (add_to_log): Do nothing if called asynchronously.
343
bb6e8cee
GM
3442001-07-09 Gerd Moellmann <gerd@gnu.org>
345
346 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
347 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
348 around ioctls.
349
36b40a8a
EZ
3502001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
351
24b97d4b
EZ
352 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
353 doc string line for dos-timezone-offset.
354
36b40a8a
EZ
355 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
356 inline assembly, to avoid compiler warnings.
24b97d4b
EZ
357 (syms_of_msdos): Add \n\ at the end of a line in the doc string
358 line for dos-unsupported-char-glyph.
36b40a8a
EZ
359
360 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
361
0967b4b0
GM
3622001-07-05 Gerd Moellmann <gerd@gnu.org>
363
f25cfe53
GM
364 * sound.c: Include Emacs' header files with #include "...".
365
0967b4b0
GM
366 * eval.c (specbind): Additionally record the buffer that was
367 current when a buffer-local or frame-local variable was bound.
368
c347a1c3
GM
3692001-07-04 Gerd Moellmann <gerd@gnu.org>
370
371 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
372 to unibyte characters in unibyte buffers.
373
6332ca8a
GM
3742001-07-03 Gerd Moellmann <gerd@gnu.org>
375
38472d44
GM
376 * eval.c (specbind): If SYMBOL has a frame-local binding, record
377 the frame on the binding stack. Change format of entries for
378 local bindings on the binding stack to '(SYMBOL . WHERE)'.
379 (unbind_to): Handle unbinding a frame-local variable.
380
6332ca8a 381 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
fe5a0162 382 glyphs and truncation glyphs at the end of a row from its pixel width.
6332ca8a
GM
383 (dump_glyph_row): Print row's continuation_lines_width.
384 (try_window_id): Take the shortcut if ZV is visible in the
385 window, but there are actually no changes at ZV.
386
63d1b174
GM
3872001-07-02 Gerd Moellmann <gerd@gnu.org>
388
4c175203
GM
389 * xterm.h (x_free_dpy_colors): Add prototype.
390
391 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
392 right number of arguments.
393
0b54ce28
GM
394 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
395 ($(lwlibdir)TAGS): New target.
4c175203 396 (TAGS): Fix dependency list.
0b54ce28 397
63d1b174
GM
398 * xterm.c (x_list_fonts): Make sure XFreeFont is called
399 with input blocked.
400
d827466c
GM
4012001-06-30 Gerd Moellmann <gerd@gnu.org>
402
403 * emacs.c (main): Remove extern declaration for sys_nerr, which
404 isn't used and causes a compilation error with GCC 3.0 on
405 FreeBSD 4.3.
406
b5cb1ada
GM
4072001-06-27 Gerd Moellmann <gerd@gnu.org>
408
a5d3ec3f
GM
409 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
410 SIGIO around the code where Xt might wait for a
411 ConfigureNotifyEvent.
412 (toplevel): Include <signal.h> and syssignal.h.
413
b5cb1ada
GM
414 * sound.c (vox_configure, vox_close): Turn off atimers
415 around ioctls.
416
d9bad487
GM
4172001-06-26 Gerd Moellmann <gerd@gnu.org>
418
fdbb67fe
GM
419 * keyboard.c (read_char) <non_reread>: Record the previous idle
420 start time before calling timer_stop_idle.
421 (read_char) <reread_first>: After processing a help-echo event,
422 restore the previous idle start time.
423
d9bad487
GM
424 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
425 the start of invisible text.
426 (setup_for_ellipsis): New function.
427 (next_overlay_string): After all overlay strings have been
428 processed, display an ellipsis if necessary.
429 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
430 (push_it): Initialize display_ellipsis_p on the iterator's stack.
431
432 * dispextern.h (struct iterator_stack_entry): Add member
433 display_ellipsis_p.
434
2b9c25e0
GM
4352001-06-25 Gerd Moellmann <gerd@gnu.org>
436
80de57df
GM
437 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
438 on the value of the wait-for-wm frame parameter.
439
440 * xterm.h (struct x_output): Add member wait_for_wm.
441
442 * xfns.c (Qwait_for_wm): New variable.
443 (x_frame_parms): Add entry for `wait-for-wm".
444 (x_set_wait_for_wm): New function.
445 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
446 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
447
2b9c25e0
GM
448 * xdisp.c (try_window_id) <all changes below window end>: Don't
449 take this shortcut if ZV is visible in the window.
450 (try_window_id): When checking for window start being in changed
451 text, don't check that the buffer's size has changed.
452
f772775c
RS
4532001-06-23 Richard M. Stallman <rms@gnu.org>
454
455 * minibuf.c (Fcompleting_read): Doc fix.
456
fa9090b8
GM
4572001-06-19 Gerd Moellmann <gerd@gnu.org>
458
459 * composite.c (Ffind_composition_internal): Accept ZV
460 and a string's end position as POS.
461
f6f1beba
GM
4622001-06-18 Gerd Moellmann <gerd@gnu.org>
463
464 * composite.c (Ffind_composition_internal): Check POS
465 for validity.
466
0ae83348
EZ
4672001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
468
469 * editfns.c (Fmessage_box): If the frame is not under a window
470 system, output the message in the echo area.
471
e4cdc335
RS
4722001-06-14 Richard M. Stallman <rms@gnu.org>
473
474 * xdisp.c (try_window_id): When EOB is visible, don't treat
475 insertion at EOB as if it were "off the bottom of the screen."
476
a55a5f3c
AI
4772001-06-11 Andrew Innes <andrewi@gnu.org>
478
479 * w32proc.c (create_child): Add new parameter is_gui_app.
480 (w32_executable_type): Add new parameter is_gui_app.
481 (sys_spawnve): Use it.
482 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
483 SIGQUIT. This matches better how the signals are interpreted by
484 MSVC compiled programs.
485 (syms_of_ntproc): Update docstring.
486
1b85dc1c
SM
4872001-06-02 Stefan Monnier <monnier@cs.yale.edu>
488
489 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
490 well otherwise note_mouse_highlight might optimize away highlighting
491 if we pass over that same overlay again.
492
b75f8eab
EZ
4932001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
494
495 * lread.c (Fload): Document that the argument is run via
496 substitute-in-file-name.
497
94843cc1
GM
4982001-05-31 Gerd Moellmann <gerd@gnu.org>
499
b14659e6
GM
500 * Makefile.in (bootstrap-doc): New target.
501 (bootstrap-emacs): Depend on it.
502
0894672f
GM
503 * fileio.c (Fdo_auto_save): Don't try to create the directory of
504 auto-save-list-file-name when shutting down Emacs, because
505 creating the directory might signal an error, and leaves
506 Emacs in a strange state.
507
94843cc1
GM
508 * term.c: (tty_cursor_hidden): New variable.
509 (update_begin): Don't call tty_hide_cursor. Clean up.
510 (update_end, set_terminal_window, set_scroll_region): Clean up.
511 (ring_bell, reset_terminal_modes): Clean up.
512 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
513 on tty_cursor_hidden.
514 (write_glyphs): Call tty_hide_cursor.
515
db3a49a6
SM
5162001-05-30 Stefan Monnier <monnier@cs.yale.edu>
517
518 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
519
8bd189fb
GM
5202001-05-30 Gerd Moellmann <gerd@gnu.org>
521
6f1be3b9
GM
522 * xfns.c (enum image_value_type): New enumerator
523 IMAGE_STRING_OR_NIL_VALUE.
524 (parse_image_spec): Handle it.
525 (xbm_format, pbm_format): Use it for :foreground and :background.
526 (xbm_load, pbm_load): Check for nil color names.
527
8bd189fb
GM
528 * xterm.c (note_mouse_highlight): If an overlapping overlay
529 exists, but we find that we highlight the same overlay as before,
530 don't do the highlighting again.
531
7bdba03c
GM
5322001-05-29 Gerd Moellmann <gerd@gnu.org>
533
4c329aa8
GM
534 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
535 Protect unibyte strings created by replacing their multibyte
536 equivalents in menu_items.
537
e15e2828
GM
538 * keymap.c (Fsingle_key_description): NUL-terminate the string
539 buffer before calling build_string.
540
7bdba03c
GM
541 * callproc.c (Fcall_process): Deal with decode_coding returning
542 CODING_FINISH_INCONSISTENT_EOL.
543
89c8dc6c
GM
5442001-05-28 Gerd Moellmann <gerd@gnu.org>
545
db3a49a6 546 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
3d9d7a9b
GM
547 an item's name with its key description in case the description
548 is a multibyte string.
549
550 * keymap.c (Fsingle_key_description): Create a multibyte string
551 only if necessary.
552
eb04d6cd
GM
553 * macros.c (Fstart_kbd_macro): Doc fix.
554
8bd6307f
GM
555 * xterm.c (cursor_in_mouse_face_p): New function.
556 (x_draw_stretch_glyph_string): Use it to choose a different GC
557 when drawing a cursor within highlighted text.
558
e26c4089
GM
559 * editfns.c (char_property_eq): Put in #if 0.
560
561 * indent.c (string_display_width): Put in #if 0.
562
563 * lread.c (Fload): Remove unused label.
564
89c8dc6c
GM
565 * termcap.c (speeds): Put in #if 0.
566
9a1211f2
GM
5672001-05-18 Gerd Moellmann <gerd@gnu.org>
568
29148a3f
GM
569 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
570
9a1211f2
GM
571 * xfaces.c (xlfd_point_size): Don't divide pixel size from
572 transformation matrix by 10.
573
09393d07
GM
5742001-05-16 Gerd Moellmann <gerd@gnu.org>
575
576 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
577 only if it's equal to the former foreground pixel color.
db3a49a6 578 (x_set_foreground_color, x_set_background_color)
09393d07
GM
579 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
580
460e6bae
GM
5812001-05-16 Dave Love <fx@gnu.org>
582
583 * insdel.c (signal_before_change, signal_after_change): Consider a
584 local change hook which changes the buffer.
99c78ce8
GM
585
586 * process.c (read_process_output): Don't call signal_after_change
587 and update_compositions after insert_from_string_before_markers.
588
dbcf3c03
GM
5892001-05-16 Gerd Moellmann <gerd@gnu.org>
590
a90b3d3c
GM
591 * xfaces.c (split_font_name): Use the right field when
592 checking for `[...]' syntax.
593
1b7818b4
GM
594 * buffer.c (copy_overlays): New function.
595 (clone_per_buffer_values): Use it.
596
597 * buffer.h (OVERLAY_PLIST): New macro.
598
9bae8781
GM
599 * keymap.c (Fsingle_key_description): Replace a build_string with
600 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
601
dbcf3c03
GM
602 * fontset.c (Ffontset_info): Check that face is non-null
603 before accessing its fields.
604
8a1ae4dd
GM
6052001-05-15 Gerd Moellmann <gerd@gnu.org>
606
18a0a39e
GM
607 * keyboard.c (read_key_sequence): Prevent generating a fake
608 prefix key twice.
609
e335b66a
GM
610 * xfaces.c (split_font_name): Handle `[...]' for the right
611 font name fields.
612
8a1ae4dd
GM
613 * ccl.c (ccl_driver): Don't copy remaining bytes in case
614 of CCL_STAT_INVALID_CMD.
615
3cf80731
SM
6162001-05-14 Stefan Monnier <monnier@cs.yale.edu>
617
33568849
SM
618 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
619 in <var> has no default value yet.
620
3cf80731
SM
621 * xfaces.c (try_alternative_families): First try the FAMILY.
622 And if nothing is found in the end, try again with scalable fonts.
623 (try_font_list): Let try_alternative_families do a bit more of
624 the work. Only use FAMILY if it is not nil.
625 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
626
933b0249
GM
6272001-05-14 Gerd Moellmann <gerd@gnu.org>
628
58e5af83
GM
629 * xterm.c (note_mouse_highlight): Avoid changing the mouse
630 pointer shape when show_mouse_face has already done it.
33568849 631
58e5af83 632 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
557f7c34
GM
633 full-width rows.
634
7b16a6bf
GM
635 * xfaces.c (split_font_name): Make sure to leave the loop
636 with the right value of `i'.
3cf80731 637
933b0249
GM
638 * xfaces.c (split_font_name): Handle matrix transformations
639 in the pixel and point size fields of XLFD font names.
640 (xlfd_point_size): Likewise.
641
dddcbf00
EZ
6422001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
643
3cf80731 644 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
c7501041
EZ
645 (x_to_w32_font): Add prototype.
646
7689ef0b
EZ
647 * regex.c (malloc, realloc, free) [emacs]: Undefine before
648 redefining, to avoid compiler warnings.
649
e7c15bba
EZ
650 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
651
dddcbf00
EZ
652 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
653 (w32_get_bdf_glyph): Cast between unsigned char and char when
654 passing arguments to subroutines, to shut up compiler warnings.
655 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
656 GET_HEX_VAL.
657
658 * xfaces.c: Include keyboard.h before frame.h, not after it.
659
660 * widget.c: Include keyboard.h before frame.h.
661
662 * w32term.h (struct image, struct face): Forward declaration, to
663 avoid compiler warnings.
664
7bd2d083
GM
6652001-05-11 Gerd Moellmann <gerd@gnu.org>
666
47e72862
GM
667 * keyboard.c (read_key_sequence): Don't modify events when
668 generating fake prefix keys (mode-line, scroll-bar, ...) since
669 this prevents proper processing of such events when pushed back
670 into unread-command-events.
671
dd5f324b
GM
672 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
673 actually redrawn. Make the function static.
674 (note_mouse_highlight): Fix a case where the mouse cursor
675 was changed back to the text cursor.
676
677 * xterm.h (clear_mouse_face): Remove prototype.
678
d88a79d4
GM
679 * xdisp.c (try_window_id): Fix the fix and set the right
680 window_end_vpos.
681
682 * xdisp.c (try_window_id): Fix computation of window end in the
683 case that lines were deleted at the end of the window. Add some
684 more debug_method_adds.
0416532f 685
7bd2d083
GM
686 * xfaces.c (try_alternative_families): New function.
687 (try_font_list): Use it. If ATTRS specifies a family, check
688 fonts from that family first.
689 (choose_face_font): Remove code setting the family part of
690 the pattern to nil.
691
23fca891
GM
6922001-05-10 Gerd Moellmann <gerd@gnu.org>
693
ff9aa2ca
GM
694 * xdisp.c (try_window_id): Fix case of all changes before
695 the window start.
7b2654b5 696
23fca891
GM
697 * xdisp.c (try_window_id): Add some xasserts.
698
e9726794
GM
6992001-05-09 Gerd Moellmann <gerd@gnu.org>
700
701 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
702
9e53a675
GM
7032001-05-09 Dave Love <fx@gnu.org>
704
705 * xdisp.c (GIVE_UP): Fix for K&R C.
706
0d487c52
GM
7072001-05-09 Gerd Moellmann <gerd@gnu.org>
708
fe88d421
GM
709 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
710
0d487c52
GM
711 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
712 back to the text cursor shape without need.
713
1e9fc92e
GM
7142001-05-07 Gerd Moellmann <gerd@gnu.org>
715
a2a6232e
GM
716 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
717
718 * dispextern.h (inverse_video): Declare extern.
719
1e9fc92e
GM
720 * keyboard.c (delete_kboard): Handle the case that selected_frame
721 has been deleted in the course of x_connection_closed.
722
12949a7f
EZ
7232001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
724
7b2654b5
SM
725 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
726 Fix the change from 2001-04-30.
12949a7f 727
2fa2f461
GM
7282001-05-03 Gerd Moellmann <gerd@gnu.org>
729
a779d213
GM
730 * xfns.c (file_dialog_unmap_cb): New function.
731 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
732 where a dialog is closed via the window manager.
733
7b2654b5 734 * xdisp.c (try_window_id): Cases of changes all in front of
2fa2f461
GM
735 the window start or all below the window end mostly rewritten.
736 (redisplay_window): Move the tests if try_window_id is
737 applicable to try_window_id.
738 (GIVE_UP): New macro.
739
3356df63
GM
7402001-05-02 Gerd Moellmann <gerd@gnu.org>
741
a39202f6 742 * xterm.c (expose_window): Return int. If W is the window
7b2654b5
SM
743 currently being updated, mark the frame garbaged.
744 Fix computation of rows intersecting the exposed rectangle.
a39202f6 745 (expose_window_tree): Stop when expose_window returns 0.
7b2654b5 746
3356df63
GM
747 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
748 again if it has already been drawn.
749
a9d2fd1d
SM
7502001-05-01 Stefan Monnier <monnier@cs.yale.edu>
751
752 * syntax.c (update_syntax_table): Check that oldi has the same
753 properties as old_prop before deciding not to invalidate.
754
c95fc5f1
GM
7552001-04-30 Gerd Moellmann <gerd@gnu.org>
756
a9793e45
GM
757 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
758 read-only text that is so because of text properties.
759
c95fc5f1 760 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
a9d2fd1d 761 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
c95fc5f1
GM
762 windows that are components of a Lucid menu bar.
763
5a5d9185
GM
7642001-04-27 Gerd Moellmann <gerd@gnu.org>
765
766 * term.c (turn_on_face): Fix reverse video handling on terminals
767 that don't support colors.
768
ba973f7a
GM
7692001-04-26 Gerd Moellmann <gerd@gnu.org>
770
771 * editfns.c (save_excursion_restore): Don't use XBUFFER on
772 a non-buffer.
773
8c56a983
GM
7742001-04-25 Gerd Moellmann <gerd@gnu.org>
775
a728644c
GM
776 * term.c (toggle_highlight): New function.
777 (turn_on_face): Change handling of reverse video.
778
7b2654b5
SM
779 * process.c (wait_reading_process_input):
780 Call record_asynch_buffer_change only if a timer really changed buffers.
c88164fe 781
bfd8410f
GM
782 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
783 of the number of overlays to check.
784
be2488ca
GM
785 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
786
8c56a983
GM
787 * xdisp.c (try_window_id): Fix a case where window_end_pos
788 and window_end_bytepos were not adjusted.
789
522d42f7
GM
7902001-04-23 Gerd Moellmann <gerd@gnu.org>
791
792 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
793 zero instead of -1.
794
78c1afb6
EZ
7952001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
796
a9d2fd1d
SM
797 * process.c (wait_reading_process_input) [!subprocesses]:
798 Don't reference waiting_for_user_input_p, it's not defined in the
799 branch without async subprocesses support.
78c1afb6 800
a2fab450
GM
8012001-04-19 Gerd Moellmann <gerd@gnu.org>
802
a122a38e
GM
803 * keyboard.c (delete_kboard): Prevent a dangling reference
804 from current_kboard to KB, which is freed.
805
a9d2fd1d
SM
806 * process.c (wait_reading_process_input):
807 Call record_asynch_buffer_change after running timers, to make
a2fab450
GM
808 read_key_sequence aware of buffer changes from under it.
809
0f8d6dc7
GM
8102001-04-18 Gerd Moellmann <gerd@gnu.org>
811
eeffb293
GM
812 * xfaces.c (Qscalable_fonts_allowed): New variable.
813 (realizing_basic_faces_p): Removed.
2fa2f461
GM
814 (x_face_list_fonts): Special handling for realizing_basic_faces_p
815 removed.
eeffb293 816 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
7b2654b5
SM
817 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
818 for scalable-fonts-allowed to t.
eeffb293 819
0f8d6dc7
GM
820 * fileio.c (Finsert_file_contents): If the file size returned from
821 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
a9d2fd1d 822 read from files on a procfs whose contents are generated dynamically.
0f8d6dc7 823
eec2d1de
EZ
8242001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
825
826 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
827 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
828 (__memalign_hook): Make the two prototypes consistent.
829
f4f480bd
GM
8302001-04-17 Gerd Moellmann <gerd@gnu.org>
831
832 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
833 matrix of mini-windows.
834
52283633
SM
8352001-04-12 Stefan Monnier <monnier@cs.yale.edu>
836
837 * intervals.c (find_interval): Don't rebalance during signal handling.
838
ec2423c9
GM
8392001-04-11 Gerd Moellmann <gerd@gnu.org>
840
30cb0001 841 * fns.c: Include blockinput.h.
52283633 842
ec2423c9
GM
843 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
844
719d83ad
GM
8452001-04-10 Gerd Moellmann <gerd@gnu.org>
846
60f8d735
GM
847 * fns.c (Fcompare_strings): Fix return values.
848
afffeb57
GM
849 * window.c (window_scroll): Change the meaning of N to mean
850 N screen-fulls or N lines.
851 (window_scroll_pixel_based, window_scroll_line_based)
852 (scroll_command, Fscroll_other_window): Change accordingly.
853
52283633
SM
854 * window.c (window_scroll_pixel_based, Frecenter):
855 Call window_box_height instead of using it.last_visible_y for the
afffeb57
GM
856 height of the window.
857
858 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
859 instead of using it.last_visible_y for the height of the window.
52283633 860
719d83ad 861 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
8ddf3ee1 862 From Dan Holmsand <dan@eyebee.com>.
719d83ad
GM
863
864 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
8ddf3ee1
GM
865 able to write to hidden and system files. From Dan Holmsand
866 <dan@eyebee.com>.
719d83ad 867
8ddf3ee1
GM
868 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
869 Holmsand <dan@eyebee.com>.
719d83ad 870
522ed7fb
GM
8712001-04-09 Gerd Moellmann <gerd@gnu.org>
872
9170e5d4
GM
873 * fns.c (Fplist_get, Fplist_put): Add QUITs.
874
522ed7fb
GM
875 * window.c (window_internal_height): Return 1 less if the
876 window has a header line.
877
878 * xdisp.c (try_window_id): When scrolling on a terminal, take
879 the change of window_internal_height into account.
880
ceeb3d7d
EZ
8812001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
882
883 * gmalloc.c (align): If the argument SIZE would overflow
884 __malloc_ptrdiff_t, fail right away.
885
63685b9d
GM
8862001-04-06 Gerd Moellmann <gerd@gnu.org>
887
888 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
889 Make sure the tooltip is completely visible.
890 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
891
892 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
893
894 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
895
3ffb33bb
DL
8962001-04-06 Dave Love <fx@gnu.org>
897
52283633
SM
898 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
899 Fix test of `from'.
3ffb33bb 900
869fb12c
GM
9012001-04-06 Gerd Moellmann <gerd@gnu.org>
902
52283633 903 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
afa3935f 904
869fb12c
GM
905 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
906
441bf856
GM
9072001-04-05 Gerd Moellmann <gerd@gnu.org>
908
4d664b04
GM
909 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
910
52283633 911 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
a55e4e68 912
30ca89f5
GM
913 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
914 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
915
916 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
917 shell widget's position only if it is non-null.
918
52283633
SM
919 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
920 Set f->output_data.x->widget to null after destroying it.
30ca89f5 921
81a81c0f
GM
922 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
923 FILENAME to bring it in synch with the documentation.
924
441bf856
GM
925 * xfaces.c (realizing_basic_faces_p): Renamed from
926 realize_default_face_p.
927 (realize_basic_faces): Set/clear realizing_basic_faces_p.
928 (realize_default_face): Don't set the flag.
929
702a1e8e
GM
9302001-04-04 Gerd Moellmann <gerd@gnu.org>
931
1013f4e3
GM
932 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
933
52283633
SM
934 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
935
1013f4e3
GM
936 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
937 the buffer that was used for echoing.
938
702a1e8e
GM
939 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
940 (first_font_matching): Removed unused function.
941 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
942 (may_use_scalable_font_p): Remove parameter FONT; rename
943 parameter NAME to FONT.
944 (x_face_list_fonts): Fix missing bounds check.
945 (realizing_default_face_p): New variable.
946 (realize_default_face): Set and clear that flag.
947 (x_face_list_fonts): When called during the realization of the
948 default face, and no matching fonts are found when ignoring
949 scalable fonts and fonts matching a regexp from
950 face-ignored-fonts, try without ignoring fonts.
951
f9dbcda4
GM
9522001-04-03 Gerd Moellmann <gerd@gnu.org>
953
ad18ffb1
GM
954 * xfns.c (postprocess_image): New function.
955 (lookup_image): Call it for all image types except PostScript.
956 (x_kill_gs_process): Call postprocess_image.
957
f9dbcda4
GM
958 * xterm.c (x_use_underline_position_properties): New variable.
959 (x_draw_glyph_string): Use it.
960 (syms_of_xterm): DEFVAR_BOOL it.
961
651f03b6
GM
9622001-04-02 Gerd Moellmann <gerd@gnu.org>
963
964 * xterm.c (x_alloc_nearest_color_1): New function.
965 (x_alloc_nearest_color): Use it.
966 (x_color_cells): Take a Display as argument, instead of a frame.
967 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
968 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
969 (x_initialize): Register cvt_string_to_pixel as resource converter
970 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
971
73d75a62
GM
9722001-03-30 Gerd Moellmann <gerd@gnu.org>
973
b2046df8
GM
974 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
975 (set_iterator_to_next): If a string from a display property ends,
976 consider the case that this might also be the end of an
977 overlay string having the display property.
978
52283633 979 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
b2046df8 980
87d8eba4
GM
981 * xdisp.c (reseat_to_string): Undo last change.
982
73d75a62
GM
983 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
984 matrix of a window when the header line changes, when
985 new rows are allocated, or when the width changes.
986
911a2406
EZ
9872001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
988
52283633 989 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
911a2406 990
aea51abe
EZ
9912001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
992
993 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
994 deprecated.
995
176bc847
GM
9962001-03-29 Gerd Moellmann <gerd@gnu.org>
997
ed31fabf
GM
998 * data.c (Fsubr_interactive_form): New function.
999 (syms_of_data): Defsubr it.
1000
176bc847
GM
1001 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
1002 (live_float_p, live_misc_p): Return 1 only if the offset of the
1003 pointer in its block is >= 0.
1004
e59d0e9d
GM
10052001-03-28 Paul Eggert <eggert@twinsun.com>
1006
1007 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
1008 microseconds calcuation. Avoid double-rounding problem.
1009 In doc string, warn that the result is approximate.
1010
f827b862
GM
10112001-03-28 Gerd Moellmann <gerd@gnu.org>
1012
30a3f61c
GM
1013 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
1014 bind `inhibit-eval-during-redisplay' to t.
1015
1016 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
1017
1018 * xdisp.c (inhibit_eval_during_redisplay)
1019 (Qinhibit_eval_during_redisplay): New variables.
1020 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
1021 don't eval, return nil instead.
1022 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
1023 Initialize Qinhibit_eval_during_redisplay.
1024
e719f5ae
GM
1025 * xdisp.c (reseat_to_string): If STRING is multibyte, set
1026 the iterator's multibyte_p flag.
1027
deb2613a
GM
1028 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
1029 instead of setting it to zero; it's incremented for each frame
1030 where the menu face is changed.
1031
52283633
SM
1032 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
1033 change bottom shadow accordingly.
1034
1035 * xterm.c (expose_window_tree, expose_frame): Don't compute
a02f1be0
GM
1036 intersections here.
1037 (expose_window): Do it here instead.
52283633 1038 (x_draw_glyph_string): Fix a computation of the underline position.
a02f1be0 1039
f827b862
GM
1040 * bytecode.c (BYTE_CODE_QUIT): New macro.
1041 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
1042
4bde0ebb
GM
10432001-03-27 Gerd Moellmann <gerd@gnu.org>
1044
607ec83c
GM
1045 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
1046 Give up if matrix starts in an ellipsis.
1047 (init_from_display_pos): Do nothing if POS doesn't specify
1048 a dpvec_index but the iterator has such a position.
1049
0245398f
GM
1050 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
1051
aba25348
GM
1052 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
1053 x/y position is (0, 0) after destroying the menu bar, restore
1054 its original position.
1055
4bde0ebb
GM
1056 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
1057 (init_from_display_pos): Use it.
1058 (try_window_reusing_current_matrix): Don't use cursor_row_p.
1059
8cdb267e
GM
10602001-03-26 Gerd Moellmann <gerd@gnu.org>
1061
1062 * xdisp.c (try_window_id): Undo last change.
1063
9948db79
EZ
10642001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
1065
1066 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
1067
1068 * buffer.c (syms_of_buffer): Doc fix.
1069
2eddf899
GM
10702001-03-26 Gerd Moellmann <gerd@gnu.org>
1071
1072 * xfaces.c (x_update_menu_appearance): Use local variable
1073 popup_path for setting font resources.
1074
6c145d35
EZ
10752001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
1076
6a65b1b5
EZ
1077 * frame.c (Fframe_list): Don't reference tip_frame if
1078 HAVE_WINDOW_SYSTEM is not defined.
1079
6c145d35
EZ
1080 * emacs.c (main): Update the copyright year. From Werner LEMBERG
1081 <wl@gnu.org>.
1082
d74c1900
GM
10832001-03-25 Gerd Moellmann <gerd@gnu.org>
1084
20fbd925
GM
1085 * xdisp.c (init_from_display_pos): Test invisible property
1086 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
52283633 1087
927c5b3b
GM
1088 * xdisp.c (redisplay_internal) <update one window>: Make sure
1089 last_arrow_position and last_arrow_string are set.
1090
d74c1900
GM
1091 * frame.c (Fframe_list): Don't return a tooltip frame.
1092
091f8878
GM
10932001-03-23 Gerd Moellmann <gerd@gnu.org>
1094
52283633
SM
1095 * xdisp.c (mark_window_display_accurate_1): New function,
1096 extracted from mark_window_display_accurate.
1097 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
43c09969
GM
1098 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
1099 (mark_window_display_accurate): Use it.
1100 (redisplay_internal): Use it for the selected window.
1101 (redisplay_internal): Avoid duplicate mark_window_display_accurate
1102 for the selected frame.
1103
ac90c44f
GM
1104 * xdisp.c Use make_number, for readability.
1105 (try_window_id): Disable rows below the window end.
1106 (try_window_reusing_current_matrix): Use cursor_row_p.
1107 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
1108 of rows.
1109 (init_from_display_pos): If POS specifies a position in a display
1110 vector, maybe get the iterator set up for that ellipsis.
43c09969 1111
091f8878
GM
1112 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
1113
991786dd
EZ
11142001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
1115
1116 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
1117
6c29b43c
GM
11182001-03-23 Gerd Moellmann <gerd@gnu.org>
1119
1120 * xfaces.c (x_update_menu_appearance): Use a different path
1121 for Lucid popup menus.
1122
d8731202
SM
11232001-03-22 Stefan Monnier <monnier@cs.yale.edu>
1124
1125 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
1126
1127 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
1128 (string_buffer_position): Use `make_number'.
1129
f61a541b
GM
11302001-03-22 Gerd Moellmann <gerd@gnu.org>
1131
3c9e997b
GM
1132 * xfaces.c (x_update_menu_appearance): Renamed from
1133 x_set_menu_face_resources. Use different resources for popups.
1134
1135 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
1136 (GC_CHECK_STRING_BYTES): Don't define.
1137
364cd450
GM
1138 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
1139 Removed, together with subroutines.
1140 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
d8731202 1141 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
364cd450 1142
d8731202
SM
1143 * dispextern.h (x_set_menu_resources_from_menu_face):
1144 Remove prototype.
364cd450 1145
d8731202 1146 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
364cd450
GM
1147 Remove calls to x_set_menu_resources_from_menu_face.
1148
d8731202
SM
1149 * xfaces.c (xm_set_menu_resources_from_menu_face):
1150 Remove #ifndef LESSTIF_VERSION.
f61a541b
GM
1151
1152 * xmenu.c: Include widget.h.
1153 (single_submenu): Return int. Some cleanup.
1154 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
1155
140330de
GM
11562001-03-21 Gerd Moellmann <gerd@gnu.org>
1157
1158 * xterm.c (x_update_window_end): Handle overwritten mouse face
1159 also for tool bar windows.
1160 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
1161 DRAW is DRAW_IMAGE_RAISED.
1162
1741905c
GM
11632001-03-20 Gerd Moellmann <gerd@gnu.org>
1164
fa88947e
GM
1165 * print.c (syms_of_print): Doc fixes.
1166
1741905c
GM
1167 * fns.c (Fmd5): Doc fix.
1168
ade0bee1
GM
11692001-03-19 Gerd Moellmann <gerd@gnu.org>
1170
357e7376
GM
1171 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1172 Clear area of the frame not occupied by the scroll bar.
1173
c2c097cc
GM
1174 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
1175 tip frame's root window buffer to *tip* right after creating
1176 the frame.
1177
ade0bee1
GM
1178 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
1179 is an integer don't have to be for space characters.
1180
88c6e37e
GM
11812001-03-16 Gerd Moellmann <gerd@gnu.org>
1182
52283633
SM
1183 * indent.c (current_column, current_column_1, Fmove_to_column)
1184 (compute_motion): Handle characters from display vectors differently.
88c6e37e 1185
c62eed76
KH
11862001-03-15 Kenichi Handa <handa@etl.go.jp>
1187
1188 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
1189 drawing glyph string.
1190
c899e7e6
GM
11912001-03-15 Gerd Moellmann <gerd@gnu.org>
1192
d0bbfc99
GM
1193 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
1194 (command_loop_1): Undo last change.
1195
03d1a189
GM
1196 * xterm.c (fast_find_position): Return the correct vpos.
1197
c899e7e6 1198 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
52283633 1199 non-null, set a per-buffer value in BUF instead of the current buffer.
c899e7e6
GM
1200 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
1201 Call store_symval_forwarding with BUF null.
1202 (set_internal): Call store_symval_forwarding with the BUF
1203 parameter passed to set_internal. Formerly, the value was always
1204 set in the current buffer; the buffer recorded in specbind for
1205 this case wasn't used.
1206 (arith_driver): Reindent.
1207
52283633
SM
1208 * buffer.c (swap_out_buffer_local_variables):
1209 Call store_symval_forwarding with BUF null.
c899e7e6
GM
1210
1211 * lisp.h (store_symval_forwarding): Change prototype.
1212
1213 * eval.c (specbind): Call store_symval_forwarding with BUF null.
1214
57ac7c81
GM
12152001-03-14 Gerd Moellmann <gerd@gnu.org>
1216
697617d9
GM
1217 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
1218 FOR_DELETION. Avoid resizing the mini-window of the selected
1219 frame if FOR_DELETION is set.
1220 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
1221 (Fmake_frame_invisible): Change calls to do_switch_frame for new
1222 signature.
1223
1224 * window.c (Fset_window_configuration): Change call to
1225 do_switch_frame to new format.
1226
1227 * keyboard.c (quit_throw_to_read_char): Change call to
1228 do_switch_frame to new format.
1229
1230 * lisp.h (do_switch_frame): Change prototype.
1231
819dce0f
GM
1232 * frame.c (Fframe_parameters): In the `buffer-list' frame
1233 parameter, store the buffer list of FRAME, not the list of the
1234 selected frame.
1235
57ac7c81
GM
1236 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
1237 box just because the glyph row's full_width_p flag is set.
1238
65008712
GM
12392001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
1240
1241 * xdisp.c (highlight_trailing_whitespace): On character terminals,
1242 skip the padding blanks inserted in extend_face_to_end_of_line,
1243 before checking for trailing whitespace.
1244
159cf431
GM
12452001-03-13 Gerd Moellmann <gerd@gnu.org>
1246
52283633 1247 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
19b2bb80
GM
1248 Remove special handling for LessTif/Motif.
1249 (toplevel): Don't include Xm/Xm.h.
1250
52283633
SM
1251 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
1252 Remove workaround code for LessTif; it doesn't work anymore.
1253
2564ea1b 1254 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
57ac7c81 1255 Xm/ScrollBarP.h.
afcdc0a1 1256
52283633
SM
1257 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
1258 Don't access private scroll bar data; it's no longer necessary with
23442ae4
GM
1259 contemporary LessTif.
1260
52283633
SM
1261 * xfaces.c (xm_set_menu_resources_from_menu_face):
1262 Change #if 0 to #ifndef LESSTIF_VERSION.
9faaaa52 1263
159cf431
GM
1264 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
1265 removing button grabs.
1266
c6f7429a
KH
12672001-03-13 Kenichi Handa <handa@etl.go.jp>
1268
cb82d767
KH
1269 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
1270 and clip-large-size-font as obsolete.
1271
c6f7429a
KH
1272 * lread.c (read_multibyte): Check the validity of multibyte
1273 sequence. If invalid, return the first byte.
1274
760cefb5
GM
12752001-03-12 Gerd Moellmann <gerd@gnu.org>
1276
1277 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
1278 before running the command; timer functions or process
1279 filters may have set it.
1280
5141f9d0
EZ
12812001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
1282
1283 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
1284 Doc fix.
1285
b6a15240
GM
12862001-03-12 Gerd Moellmann <gerd@gnu.org>
1287
1288 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
1289 to sprintf.
1290
95522746
GM
12912001-03-09 Gerd Moellmann <gerd@gnu.org>
1292
db14cfc5
GM
1293 * dispextern.h (string_buffer_position): Add prototype.
1294
52283633 1295 * xdisp.c (string_buffer_position, display_prop_string_p)
db14cfc5
GM
1296 (single_display_prop_string_p): New functions.
1297
1298 * xterm.c (note_mouse_highlight): If there's no help-echo on
1299 a string, look at the buffer text ``under'' it.
1300
1301 * keyboard.c (make_lispy_event): Add string info to the event,
1302 analogous to what's done on mode lines.
1303 (read_key_sequence): For a click on a string, consider `local-map'
1304 and `keymap' of that string.
1305
52283633
SM
1306 * keyboard.c (make_lispy_event, make_lispy_movement):
1307 Adjust calls to buffer_posn_from_coords to new format.
3cfd8357
GM
1308
1309 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
1310
1311 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
1312 POS; return void.
1313
95522746
GM
1314 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
1315 flags argument to emacs_open; it seems to conflict with O_EXCL.
1316
898a399d
KH
13172001-03-09 Kenichi Handa <handa@etl.go.jp>
1318
28cd4910
KH
1319 * composite.h (struct composition): Change types of members;
1320 glyph_len to unsigned, width to unsigned short.
898a399d 1321
4cdf6a6c
AI
13222001-03-08 Andrew Innes <andrewi@gnu.org>
1323
1324 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
1325 menu titles.
1326
129004d3
GM
13272001-03-08 Gerd Moellmann <gerd@gnu.org>
1328
221dd3e7
GM
1329 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
1330 instead of nil.
1331
52283633 1332 * xterm.c (note_mouse_highlight): Handle mouse-face and
5de7c6f2
GM
1333 help-echo in strings.
1334 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
1335 (fast_find_string_pos): New function.
1336
52283633
SM
1337 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
1338 (display_string): Call face_at_string_position with new parameter.
5de7c6f2
GM
1339
1340 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
1341 Handle `mouse-face'.
1342
1343 * dispextern.h (face_at_string_position): Change prototype.
1344
52283633 1345 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
e1fbabaf 1346
129004d3
GM
1347 * keyboard.c (make_lispy_event): Avoid generating drag events
1348 if the mouse hasn't actually moved to another buffer position.
52283633 1349
80c8ab8c
DL
13502001-03-08 Dave Love <fx@gnu.org>
1351
129004d3 1352 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
80c8ab8c 1353
989521fd
GM
13542001-03-08 Gerd Moellmann <gerd@gnu.org>
1355
1356 * process.c (Fset_process_window_size): Fix a typo.
1357
bb5c338d
KH
13582001-03-08 Kenichi Handa <handa@etl.go.jp>
1359
1360 * coding.c (detect_coding_sjis): Do more rigid check.
1361 (detect_coding_big5): Likewise.
1362 (decode_coding_sjis_big5): Likewise.
1363 (Fdetect_coding_region): Call detect_coding_system with tailing
1364 anchor byte `\0' for more rigid detection.
52283633 1365 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
bb5c338d
KH
1366 (Fdetect_coding_string): Likewise.
1367
8b8f9197
SM
13682001-03-07 Stefan Monnier <monnier@cs.yale.edu>
1369
1370 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
1371 a string before extracting its data.
1372
3bdf2660
GM
13732001-03-07 Gerd Moellmann <gerd@gnu.org>
1374
1375 * window.c (Frecenter): Rewrite code handling negative values
1376 of ARG on graphical frames.
1377
13782001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
1379
1380 * window.c (displayed_window_lines): If W->start is outside the
1381 accessible portion of the buffer, call start_display with BEGV or
1382 ZV instead of W->start.
1383
471f86b9
GM
13842001-03-07 Gerd Moellmann <gerd@gnu.org>
1385
2ab62c6c
GM
1386 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
1387
471f86b9
GM
1388 * process.c (Fset_process_filter): Don't crash if the input
1389 file descriptor of PROCESS is closed.
1390 (Fset_process_window_size): Likewise.
1391
101922c3
GM
13922001-03-06 Kenichi Handa <handa@etl.go.jp>
1393
1394 * xterm.c (XTflash): Make the timeout of select shorter, and call
1395 select repeatedly until the desired time expires.
1396
45d051a7
GM
13972001-03-06 Gerd Moellmann <gerd@gnu.org>
1398
1399 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
1400
1401 * xfns.c (Fx_create_frame): Clear Vwindow_list.
1402
1403 * lisp.h (Vwindow_list): Declare extern.
1404
8f372c46
EZ
14052001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
1406
1407 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
1408
f16a7aa5
GM
14092001-03-06 Gerd Moellmann <gerd@gnu.org>
1410
157ae273
GM
1411 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
1412 to detect a case where we have to highlight a different region
1413 despite not having left the currently highlighted region.
1414 Set mouse_face_overlay in the x_display_info.
45d051a7 1415 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
157ae273
GM
1416
1417 * xterm.h (struct x_display_info): Add mouse_face_overlay.
1418
1419 * buffer.c (mouse_face_overlay_overlaps): New function.
1420
1421 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
1422 (Qmouse_face): Declare extern.
1423
f16a7aa5
GM
1424 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
1425 if face_change_count is non-zero.
1426
827afcac
KH
14272001-03-06 Kenichi Handa <handa@etl.go.jp>
1428
1429 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
1430 that the source is unibyte.
1431
14c7242e
DL
14322001-03-05 Dave Love <fx@gnu.org>
1433
827afcac 1434 * xterm.c (XTmouse_position): Fix typo.
14c7242e 1435
c28b847b
GM
14362001-03-05 Gerd Moellmann <gerd@gnu.org>
1437
1438 * minibuf.c (read_minibuf): Clean up the binding stack if
1439 called noninteractively.
1440
b86644f2
KH
14412001-03-05 Kenichi Handa <handa@etl.go.jp>
1442
1443 * coding.c (syms_of_coding): Docstring modified.
1444
203682cc 14452001-03-05 Kenichi Handa <handa@etl.go.jp>
b86644f2
KH
1446
1447 * charset.c (char_to_string): If a single byte char has modifier
1448 bits that can't be reflected to the character code, ignore them
45d051a7 1449 instead of signaling an error.
b86644f2 1450
e30bd7b7
EZ
14512001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
1452
1453 * s/msdos.h: Update copyright notice.
1454
1455 * dosfns.h: Update copyright notice.
1456
1457 * dosfns.c: Update copyright notice.
1458
1459 * msdos.c: Update copyright notice.
1460
b52b65bd
GM
14612001-03-02 Gerd Moellmann <gerd@gnu.org>
1462
1463 * xterm.c (glyph_rect): New function.
1464 (XTmouse_position): Use it to raise the threshold for mouse
1465 movement event generation.
1466
53c4b1e6
EZ
14672001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
1468
1469 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
1470 specifies (reverse . t), reverse the initial screen colors.
1471 (IT_set_frame_parameters): If the property is foreground-color,
52283633
SM
1472 but we are reversing the colors, set bg_set, not fg_set.
1473 Likewise for setting background-color and reversing: set fg_set.
1474 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
53c4b1e6
EZ
1475 in effect.
1476
1477 * xfaces.c (Finternal_set_lisp_face_attribute)
1478 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
1479 parameters alist.
1480
f964b4d7
GM
14812001-03-02 Gerd Moellmann <gerd@gnu.org>
1482
ef53d75e
GM
1483 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
1484 to a single slash in the middle of file names.
1485
52283633 1486 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
cda0f4da
GM
1487 Accept only alphanumeric time zone names.
1488
f964b4d7
GM
1489 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
1490 or width area.
1491 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
1492 a widget to zero height.
52283633 1493
c3c45f65
GM
14942001-03-01 Gerd Moellmann <gerd@gnu.org>
1495
1496 * window.c (Fwindow_end): Call move_it_past_eol only if
1497 ending up on a partially visible line.
1498
028d739a
DL
14992001-03-01 Dave Love <fx@gnu.org>
1500
1501 * ccl.c (Fccl_execute): Doc fix.
1502
57c5889c
GM
15032001-03-01 Gerd Moellmann <gerd@gnu.org>
1504
35f59f6b
GM
1505 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
1506 of the tool bar before calling x_figure_window_size.
1507
f84ff02c
GM
1508 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
1509 NULL after destroying it, otherwise XTread_socket can access a
1510 destroyed widget when input is unblocked.
1511
8b8f9197 1512 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
52283633 1513
57c5889c
GM
1514 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
1515 same name as before, although there was a change in fontsets.
1516
224227d1
KR
15172001-02-28 Ken Raeburn <raeburn@gnu.org>
1518
4560730a
KR
1519 * lisp.h (Fframe_parameter): Declare.
1520
224227d1 1521 * window.c (set_window_buffer): Field vscroll is an int, not a
57c5889c 1522 Lisp_Object.
224227d1 1523
ece93c02
GM
15242001-02-28 Gerd Moellmann <gerd@gnu.org>
1525
11ef99b9
GM
1526 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
1527 NULL instead.
1528
1529 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
1530 NULL instead.
1531
ece93c02
GM
1532 * alloc.c (toplevel): Include process.h.
1533 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
1534 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
1535 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
52283633
SM
1536 (allocate_vector, allocate_hash_table, allocate_window)
1537 (allocate_frame, allocate_process, allocate_other_vector):
1538 New functions.
ece93c02
GM
1539 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
1540 (mark_maybe_pointer): New function.
52283633 1541 (mark_memory): Also mark Lisp data to which only pointers
ece93c02
GM
1542 remain and not Lisp_Objects.
1543 (min_heap_address, max_heap_address): New variables.
1544 (mem_find): Return MEM_NIL if START is below min_heap_address or
1545 above max_heap_address.
1546 (mem_insert): Compute min_heap_address and max_heap_address.
1547
1548 * process.c (make_process): Use allocate_process.
1549
1550 * frame.c (make_frame): Use allocate_frame.
1551
1552 * window.c (make_window, make_dummy_parent): Use allocate_window.
1553 (Fcurrent_window_configuration): Use allocate_other_vector.
1554
1555 * lisp.h (allocate_vectorlike): Remove prototype.
1556 (allocate_vector, allocate_other_vector, allocate_frame)
1557 (allocate_window, allocate_process, allocate_hash_table):
1558 Add prototypes.
1559
1560 * fns.c (Fdelete, larger_vector): Use allocate_vector.
1561 (make_hash_table, copy_hash_table): Use allocate_hash_table.
1562
063af457
KH
15632001-02-27 Kenichi Handa <handa@etl.go.jp>
1564
1565 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
1566 treat the produced bytes as a valid multibyte sequence.
1567
1568 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
52283633
SM
1569 (ccl_driver) <CCL_WriteMultibyteChar2>:
1570 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
063af457
KH
1571 <ccl_finish>: Set ccl->eight_bit_control properly.
1572
1573 * ccl.h (struct ccl_program): New member eight_bit_control.
1574
f58c6494
SM
15752001-02-26 Stefan Monnier <monnier@cs.yale.edu>
1576
1577 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
1578 accessible_keymaps_char_table.
1579 (accessible_keymaps_char_table): Obey `is_metized'.
1580 (where_is_internal, Fwhere_is_internal): Don't confuse int and
1581 Lisp_Object.
1582
c596c392
GM
15832001-02-26 Gerd Moellmann <gerd@gnu.org>
1584
1585 * dispnew.c: Check HAVE_TERM_H before including term.h.
1586
425de386
AI
15872001-02-24 Andrew Innes <andrewi@gnu.org>
1588
1589 * makefile.w32-in: Update copyright notice.
1590
2ba11bbd
SM
15912001-02-24 Stefan Monnier <monnier@cs.yale.edu>
1592
1593 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
1594
66c56ed1
KH
15952001-02-24 Kenichi Handa <handa@etl.go.jp>
1596
4c1593ce
KH
1597 * Makefile.in (lisp): Add international/utf-8.elc.
1598
66c56ed1
KH
1599 * fontset.c (Fnew_fontset): Fix handling of the case that an
1600 element of FONTLIST is a cons of family and registry.
1601
796ead7e
JR
16022001-02-23 Jason Rumney <jasonr@gnu.org>
1603
1604 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
1605 to height unconditionally.
1606
1607 * w32term.c (x_set_glyph_string_background_width): Extend the
52283633 1608 background face to the end of the drawing area in the text area, only.
796ead7e
JR
1609 (x_insert_glyphs): Call window_box_left to obtain the left
1610 x-coordinate of the area to shift.
1611
1612 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
1613 safe_run_hooks.
1614
f6839838
AI
16152001-02-22 Andrew Innes <andrewi@gnu.org>
1616
52283633 1617 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
f6839838
AI
1618 ($(BLD)\dispnew.obj):
1619 ($(BLD)\editfns.obj):
1620 ($(BLD)\fileio.obj):
1621 ($(BLD)\filelock.obj):
1622 ($(BLD)\keyboard.obj):
1623 ($(BLD)\w32proc.obj):
1624 ($(BLD)\process.obj):
1625 ($(BLD)\sysdep.obj): Ditto.
1626
1627 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
1628 header files.
52283633
SM
1629 ($(BLD)/dispnew.$(O)):
1630 ($(BLD)/editfns.$(O)):
1631 ($(BLD)/fileio.$(O)):
1632 ($(BLD)/filelock.$(O)):
1633 ($(BLD)/keyboard.$(O)):
1634 ($(BLD)/w32proc.$(O)):
1635 ($(BLD)/process.$(O)):
f6839838
AI
1636 ($(BLD)/sysdep.$(O)): Ditto.
1637
c224f70b
GM
16382001-02-22 Gerd Moellmann <gerd@gnu.org>
1639
51695746
GM
1640 * xdisp.c (forward_to_next_line_start): When taking the shortcut
1641 at the start of the function, check that the \n in it->c is
1642 from the iterator's current position.
52283633 1643
a61b7058
GM
1644 * xdisp.c (handle_single_display_prop): Add parameter
1645 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
1646 properties which replace the display of text with something else.
1647 (handle_display_prop): Call handle_single_display_prop with
1648 additional argument saying if we already replaced text display
1649 with something else. Use AREF.
52283633 1650 (with_echo_area_buffer_unwind_data, display_menu_bar)
a61b7058
GM
1651 (decode_mode_spec_coding): Use AREF and ASIZE.
1652
3473f362
GM
1653 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
1654 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
1655 * vmstime.h: Files removed.
52283633 1656
2bb58df3
GM
1657 * unexencap.c, unexfx2800.c: Files removed.
1658
c224f70b
GM
1659 * dispnew.c (direct_output_for_insert): Give up if we are showing
1660 a message or just cleared the message because we might need to
1661 resize the echo area window or display an empty echo area.
1662
ffc9ff0c
GM
16632001-02-21 Gerd Moellmann <gerd@gnu.org>
1664
0528abe1
GM
1665 * xdisp.c (redisplay_internal): Do the
1666 mark_window_display_accurate after all windows have been
1667 redisplayed because this call resets flags in buffers which are
1668 needed for proper redisplay.
1669
52283633
SM
1670 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
1671 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
ffc9ff0c
GM
1672 the old names.
1673
52283633
SM
1674 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
1675 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
1676
1677 * msdos.h (struct x_output): Rename busy_window to
1678 hourglass_window, busy_p to hourglass_p.
1679
52283633
SM
1680 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
1681 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
1682
1683 * xfns.c: Rename everything containing *busy_cursor* and similar
1684 to *hourglass*.
1685 (syms_of_w32fns): Rename x-busy-pointer-shape to
1686 x-hourglass-pointer-shape, display-busy-cursor to
1687 display-hourglass, busy-cursor-delay to hourglass-delay.
1688
1689 * w32fns.c: Rename everything containing *busy_cursor* and similar
1690 to *hourglass*.
1691 (syms_of_w32fns): Rename x-busy-pointer-shape to
1692 x-hourglass-pointer-shape, display-busy-cursor to
1693 display-hourglass, busy-cursor-delay to hourglass-delay.
1694
1695 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
1696 of its busy_p flag.
1697
1698 * dispextern.h (start_hourglass, cancel_hourglass)
1699 (display_hourglass_p): Renamed from *busy_cursor*.
1700
ab2c5f0a
GM
17012001-02-20 Gerd Moellmann <gerd@gnu.org>
1702
d17e49a8
GM
1703 * keyboard.c (read_char): When an event from unread-command-events
1704 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
1705
fa97adf6
GM
1706 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
1707 equal to the current buffer.
1708
ab2c5f0a
GM
1709 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
1710 nil, otherwise we're left with truncate_lines t when a message
1711 is printed with message-truncate-lines bound to t.
1712
aeac019e
GM
17132001-02-19 Gerd Moellmann <gerd@gnu.org>
1714
c8bc6f65
GM
1715 * window.c (Fmove_to_window_line): Undo last change.
1716 (displayed_window_lines): Call line_bottom_y to determine
1717 the line's bottom position.
1718
1719 * dispextern.h (line_bottom_y): Add prototype.
1720
52283633 1721 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
c8bc6f65
GM
1722 (pos_visible_p): Use it.
1723
980a2d69
GM
1724 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
1725 set redisplaying_p to 0 here instead of in Frecursive_edit.
1726 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
1727 set redisplaying_p.
1728
52283633 1729 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
184d2372
GM
1730 New variables.
1731 (syms_of_xdisp): Initialize new variables.
1732 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
1733 Specbind `inhibit-menubar-update' when updating the menu bar.
1734
65048e97
GM
1735 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
1736 safe_run_hooks.
1737
1738 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
1739 safe_run_hooks.
1740
a57c4026
GM
1741 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
1742 is null.
1743
aeac019e
GM
1744 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
1745 to the start of the file.
1746
76846b31
GM
17472001-02-16 Gerd Moellmann <gerd@gnu.org>
1748
f3f053f3 1749 * window.c (set_window_buffer): Fix last change.
52283633 1750
f3f053f3
GM
1751 * window.c (set_window_buffer): Set window's vscroll to 0.
1752
dad75588
GM
1753 * window.c (coordinates_in_window): Increase width of area
1754 where the vertical line can be dragged.
1755
c220b753
GM
1756 * xterm.c (x_set_glyph_string_background_width): Extend the
1757 background face to the end of the drawing area in the text
1758 area, only.
1759
c56b1c1b
GM
1760 * xdisp.c (handle_single_display_prop): Set iterator's position
1761 to where the `display' property starts, like for images.
1762 (dump_glyph): New function.
1763 (dump_glyph_row): Use it. Dump info about marginal areas.
1764
1765 * dispnew.c (direct_output_for_insert): Recognize more cases where
1766 glyphs can be written instead of being inserted.
1767
1768 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
1769 the left x-coordinate of the area to shift.
1770
76846b31
GM
1771 * dired.c (directory_files_internal): Set result list to nil
1772 before retrying.
1773
0fc71a77
KH
17742001-02-15 Kenichi Handa <handa@etl.go.jp>
1775
1776 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
1777 invalid multibyte sequence, treat *SRC as a character of
1778 eight-bit-graphic.
1779
25078b54
EZ
17802001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
1781
1782 * textprop.c (Fset_text_properties): Doc fix.
1783
8399f8a0
GM
17842001-02-15 Gerd Moellmann <gerd@gnu.org>
1785
1786 * dispnew.c (update_text_area): Undo change of 2001-01-12.
1787
9a2a6f73
DL
17882001-02-14 Dave Love <fx@gnu.org>
1789
1790 * coding.c: Doc and message fixes.
1791
bf853fee
AI
17922001-02-14 Andrew Innes <andrewi@gnu.org>
1793
1794 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
1795 Emacs frame above the screen size.
1796
78c663d8
GM
17972001-02-14 Gerd Moellmann <gerd@gnu.org>
1798
1799 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
1800
7cc9f69f
GM
18012001-02-13 Gerd Moellmann <gerd@gnu.org>
1802
0a411995
GM
1803 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
1804 case that TO ends up beyond ZV after running before-change-functions.
1805
5ddc1b75
GM
1806 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
1807 the selected window if it is showing the buffer in question.
1808
7cc9f69f
GM
1809 * dired.c (directory_files_internal): Initialize errno.
1810 (toplevel): Include errno.h.
1811
2e6621ca
GM
18122001-02-13 Kenichi Handa <handa@etl.go.jp>
1813
1814 * xfaces.c (best_matching_font): New parameter width_ratio.
1815 Multiply avgwidth by width_ratio.
1816 (choose_face_font): Call best_matching_font with width_ratio
1817 calculated from the column width of C.
1818
60222d69
AI
18192001-02-12 Andrew Innes <andrewi@gnu.org>
1820
1821 The following changes are to draw box lines inside characters area
1822 if line-width is negative.
52283633 1823
60222d69
AI
1824 * w32term.c (x_produce_image_glyph): Pay attention to the case that
1825 face->box_line_width is negative.
1826 (x_produce_stretch_glyph): Likewise.
1827 (x_produce_glyphs): Likewise.
1828 (x_estimate_mode_line_height): Likewise.
1829 (x_draw_glyph_string_background): Likewise.
1830 (x_draw_glyph_string_foreground): Likewise.
1831 (x_draw_composite_glyph_string_foreground): Likewise.
1832 (x_draw_glyph_string_box): Likewise.
1833 (x_draw_image_foreground): Likewise.
1834 (x_draw_image_relief): Likewise.
1835 (x_draw_image_foreground_1): Likewise.
1836 (x_draw_image_glyph_string): Likewise.
1837
9804b846
KH
18382001-02-09 Kenichi Handa <handa@etl.go.jp>
1839
1840 The following changes are to draw box lines inside characters area
1841 if line-width is negative.
52283633 1842
9804b846
KH
1843 * xterm.c (x_produce_image_glyph): Pay attention to the case that
1844 face->box_line_width is negative.
1845 (x_produce_stretch_glyph): Likewise.
1846 (x_produce_glyphs): Likewise.
1847 (x_estimate_mode_line_height): Likewise.
1848 (x_draw_glyph_string_background): Likewise.
1849 (x_draw_glyph_string_foreground): Likewise.
1850 (x_draw_composite_glyph_string_foreground): Likewise.
1851 (x_draw_glyph_string_box): Likewise.
1852 (x_draw_image_foreground): Likewise.
1853 (x_draw_image_relief): Likewise.
1854 (x_draw_image_foreground_1): Likewise.
1855 (x_draw_image_glyph_string): Likewise.
1856
1857 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
1858 and :line-width can be negative.
52283633 1859 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
9804b846 1860
49be9f70
JR
18612001-02-09 Jason Rumney <jasonr@gnu.org>
1862
1863 * w32term.c (w32_encode_char): Treat eight bit graphic and control
1864 characters the same as ASCII and latin-1.
1865 (x_display_and_set_cursor): Check for the focus frame's selected
1866 window instead of selected_window.
1867 (x_after_update_window_line): Don't clear if frame's internal
1868 border width is zero.
1869 (x_new_font): Don't change a tooltip's size.
1870 (w32_initialize): Set char_ins_del_ok to 1.
1871
1872 * w32fns.c (Fx_show_tip): Fix calls to make_number.
1873 (x_set_font): If font hasn't changed, avoid recomputing
1874 faces and other things.
52283633
SM
1875 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
1876 (Fx_create_frame): Add the tool bar height to the frame height.
49be9f70
JR
1877 (x_create_tip_frame): Prevent changing the tooltip's
1878 background color by specifying a color for the default font
1879 in .Xdefaults.
1880 (Qcancel_timer): New variable.
1881 (syms_of_w32fns): Initialize and staticpro it.
1882 (Fx_hide_tip, Fx_show_tip): Use it.
1883 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
1884 the timer.
1885 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
1886
1887 * w32.c (init_environment): Duplicate local string before putenv.
1888
555e35d2
SZ
18892001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
1890
1891 * charset.c (Fstring): A typo.
1892
19c92c94
KH
18932001-02-09 Kenichi Handa <handa@etl.go.jp>
1894
e47a1c33
KH
1895 * charset.c (Fstring): If all arguments are less than 256, return
1896 a unibyte string.
1897
1898 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
1899 return a unibyte string.
1900
19c92c94
KH
1901 * coding.c (code_convert_region): After detecting a coding, if
1902 nothing found, set coding->composing to COMPOSITION_NO.
1903 (decode_coding_string): Likewise.
1904
d8e675f5
SM
19052001-02-08 Stefan Monnier <monnier@cs.yale.edu>
1906
1907 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
1908 to avoid overflow.
1909
bd503487
KH
19102001-02-07 Kenichi Handa <handa@etl.go.jp>
1911
1912 * charset.c (parse_str_to_multibyte): New function.
1913
1914 * charset.h (parse_str_to_multibyte): Extern it.
1915
1916 * print.c (print_string): If we are going to print a unibyte
1917 string into a multibyte buffer, convert the string to multibyte by
1918 str_to_multibyte.
1919
a8370d72
AI
19202001-02-06 Andrew Innes <andrewi@gnu.org>
1921
1922 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
1923 been created. It seems we can get sent window messages such as
1924 WM_ERASEBKGND before we properly update a frame.
1925
c363a1d6
GM
19262001-02-06 Gerd Moellmann <gerd@gnu.org>
1927
1928 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
1929 Avoid some unnecessary cursor positioning.
1930
a08332c0
GM
19312001-02-05 Gerd Moellmann <gerd@gnu.org>
1932
52283633 1933 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
a08332c0
GM
1934 (LFACE_AVGWIDTH): New macro.
1935 (LFACEP): Use AREF.
1936 (check_lface_attrs): Check LFACE_AVGWIDTH.
1937 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
1938 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
1939 (merge_face_vectors): Check LFACE_AVGWIDTH.
1940 (Finternal_make_lisp_face): Use AREF.
1941 (xm_set_menu_resources_from_menu_face)
1942 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
1943 (Finternal_lisp_face_empty_p): Use AREF.
1944 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
1945 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
1946 Compare average widths..
1947 (best_matching_font): Arrange for comparing average widths.
1948
52283633
SM
1949 * dispextern.h (enum lface_attribute_index):
1950 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
1951
5cb3c8d4
DL
19522001-02-05 Dave Love <fx@gnu.org>
1953
1954 * puresize.h: Revert last change following loadup.el change.
1955
193fba87
AI
19562001-02-05 Andrew Innes <andrewi@gnu.org>
1957
1958 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
1959 invocation of temacs, to work with Windows 2000.
1960 (bootstrap-emacs): Ditto.
1961
e16f52ce
GM
19622001-02-05 Gerd Moellmann <gerd@gnu.org>
1963
7a58ab59
GM
1964 * xterm.c (x_display_and_set_cursor): Check for the focus
1965 frame's selected window instead of selected_window.
1966
e89aaabd
GM
1967 * xdisp.c (try_scrolling): If point is in the line below the
1968 window, make sure to move the iterator at least a canonical
1969 char height down.
1970
52283633 1971 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
e16f52ce 1972
789ce875
KH
19732001-02-05 Kenichi Handa <handa@etl.go.jp>
1974
52283633
SM
1975 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
1976 If invalid, execute CCL_INVALID_CMD.
789ce875
KH
1977 (ccl_driver): If the CCL program is terminated because of
1978 CCL_STAT_INVALID_CMD, copy the remaining source data to the
1979 destination instead of throwing them away.
1980
20b28f82
GM
19812001-02-02 Gerd Moellmann <gerd@gnu.org>
1982
79fb38c0
GM
1983 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
1984 faces and other things.
1985
20b28f82
GM
1986 * xdisp.c (get_next_display_element): Fix case of empty
1987 display table entry.
1988
5a72551e
EZ
19892001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
1990
eb24d0bf
EZ
1991 * editfns.c (Fconstrain_to_field): Doc fix.
1992
6a3f48c7
EZ
1993 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
1994 into `thoroughly', to make it consistent with the doc string.
1995
5a72551e
EZ
1996 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
1997
01acdb05
GM
19982001-02-01 Gerd Moellmann <gerd@gnu.org>
1999
0353b28f
GM
2000 * search.c (search_buffer): Call set_search_regs with a byte
2001 position, not a character position.
2002
01acdb05
GM
2003 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
2004 minibuffer-only,
2005
e86b5133
EZ
20062001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
2007
2008 * frame.c (Fmodify_frame_parameters): Doc fix.
2009
7442878f
GM
20102001-01-31 Gerd Moellmann <gerd@gnu.org>
2011
01acdb05
GM
2012 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
2013 identifier which is not reserved by Standard C.
52283633 2014
7442878f
GM
2015 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
2016
2017 * window.c (enum window_part): New enumeration.
2018 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
2019 Qright_bitmap_area.
2020 (coordinates_in_window): Return an enumerator from enum
2021 window_part. Fix handling of right scroll bar.
2022 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
2023 `right-fringe' instead of `left-bitmap-area' and
2024 `right-bitmap-area'. Use enumerators from enum window_part
2025 instead of hard-coded integers.
52283633
SM
2026 (check_window_containing, window_from_coordinates):
2027 Use enumerators from enum window_part instead of hard-coded integers.
7442878f
GM
2028 (syms_of_window): Replace Qleft_bitmap_area and
2029 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
2030
7c132cba
EZ
20312001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
2032
2033 * editfns.c (Fformat_time_string): Doc fix.
2034
c359dd9e
SM
20352001-01-31 Stefan Monnier <monnier@cs.yale.edu>
2036
2037 * keymap.c (Fwhere_is_internal): Use the first valid binding
2038 if no ascii binding is found (when firstonly is t).
2039
ce070307
GM
20402001-01-31 Gerd Moellmann <gerd@gnu.org>
2041
b4f30ec5
GM
2042 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
2043 instead of Finteractive_p.
2044
2045 * lisp.h (interactive_p): Add prototype.
2046
2047 * eval.c (interactive_p): New function.
2048 (Finteractive_p): Use it.
2049
ce070307
GM
2050 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
2051
f57b6e64
DL
20522001-01-31 Dave Love <fx@gnu.org>
2053
d61c7afe
DL
2054 * .gdbinit (hook-run): Define to run xreload.
2055
f57b6e64
DL
2056 * textprop.c (Fset_text_properties): Fix newline in doc string.
2057
eef93f99
GM
20582001-01-30 Gerd Moellmann <gerd@gnu.org>
2059
52283633
SM
2060 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
2061 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
eef93f99
GM
2062
2063 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
52283633 2064 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
eef93f99
GM
2065 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
2066
2067 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
2068 height.
2069
d9c1f6f9
DL
20702001-01-30 Dave Love <fx@gnu.org>
2071
2072 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
2073 AFTER_POTENTIAL_GC.
2074
e8f044a0
GM
20752001-01-29 Gerd Moellmann <gerd@gnu.org>
2076
52283633
SM
2077 * bytecode.c (Fbyte_code) <Bcurrent_column>:
2078 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
e8f044a0 2079
8e1db7b3
EZ
20802001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
2081
2082 * textprop.c (Fset_text_properties): Doc fix.
2083
4eefd9d2
GM
20842001-01-29 Gerd Moellmann <gerd@gnu.org>
2085
2086 * xdisp.c (forward_to_next_line_start): Remove xassert.
2087
fccb8288
EZ
20882001-01-29 Jason Rumney <jasonr@gnu.org>
2089
4eefd9d2 2090 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
fccb8288
EZ
2091 returning without releasing it.
2092
76581eab
KH
20932001-01-29 Kenichi Handa <handa@etl.go.jp>
2094
2095 * w32fns.c (w32_font_match): Allocate three more bytes to regex
2096 for '^', '$', and '\0'.
2097
83a96b4d
AC
20982001-01-28 Andrew Choi <akochoi@i-cable.com>
2099
5604ec34
AC
2100 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
2101 regex for '^', '$', and '\0'.
2102
83a96b4d
AC
2103 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
2104 only if current_sblock has been initialized.
2105
2106 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
2107 terminal frame even if it is the only visible frame.
2108
c09a6440
KH
21092001-01-28 Kenichi Handa <handa@etl.go.jp>
2110
2111 * fontset.c (font_family_registry): Even if FONTNAME conform to
2112 XLFD, if it specifies other fields than family and registry,
52283633 2113 return FONTANME. New argument FORCE if nonzero cancel that feature.
c09a6440 2114 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
52283633
SM
2115 a signle byte character. Don't set FAMILY part to nil here.
2116 It is handled by the caller choose_face_font.
c09a6440
KH
2117 (Fnew_fontset): Call font_family_registry with FORCE 0.
2118 (Fset_fontset_font): Likewise.
2119
4dcd74e6
GM
21202001-01-27 Gerd Moellmann <gerd@gnu.org>
2121
2122 * xdisp.c (display_line): Don't treat a newline as fitting
2123 on the line.
2124
d2906bf8
GM
21252001-01-26 Gerd Moellmann <gerd@gnu.org>
2126
0130fe1a
GM
2127 * window.c (size_window): Set the window's orig_top to nil when
2128 changing heights, so that a future shrink_mini_window won't
2129 restore a bogus height.
2130
550f0e6a
GM
2131 * frame.c (do_switch_frame): If selected frame has a mini-window,
2132 resize that to exact size.
2133
b7b20fbd
GM
2134 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
2135
a47b7816
GM
2136 * xdisp.c (display_line): Simplify check for glyphs fitting
2137 entirely in the line.
2138
d2906bf8
GM
2139 * xfns.c (xic_style): New variable.
2140 (create_frame_xic): Move static variable to global scope for
550f0e6a 2141 the case that `static' gets defined away.
d2906bf8 2142
73df2b1e
KH
21432001-01-26 Kenichi Handa <handa@etl.go.jp>
2144
2145 * coding.c (decode_coding): Set a flag for inhibiting
2146 inconsistent eol.
2147 (code_convert_region): Always set saved_coding_symbol.
2148 (decode_coding_string): Likewise. Update coding->symbol when we
52283633 2149 encounter a inconsistent eol by the same way as code_convert_region.
73df2b1e 2150
6613cfc4
GM
21512001-01-25 Gerd Moellmann <gerd@gnu.org>
2152
c5e6e06b
GM
2153 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
2154 XClearArea.
2155
2156 * xterm.c (x_after_update_window_line): Don't clear if frame's
2157 internal border width is zero.
2158 (x_clear_area): New function.
2159 (x_after_update_window_line, x_clear_end_of_line)
2160 (x_scroll_bar_create, x_scroll_bar_set_handle)
2161 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
2162 instead of XClearArea.
2163
2164 * xterm.h (x_clear_area): Add prototype.
2165
6613cfc4
GM
2166 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
2167 which doesn't seem necessary anymore with Lesstif 0.92.
2168
650cc6cc
DL
21692001-01-25 Dave Love <fx@gnu.org>
2170
34ac3367
DL
2171 * puresize.h (BASE_PURESIZE): Up to 720000.
2172
650cc6cc
DL
2173 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
2174
5e37dc22
GM
21752001-01-25 Gerd Moellmann <gerd@gnu.org>
2176
e1e441f9
GM
2177 * xdisp.c (echo_area_display): Don't call redisplay_internal
2178 when Emacs is shutting down. We can't run hooks etc. that
2179 would be necessary to do a redisplay.
2180
5e37dc22
GM
2181 * lread.c (read_integer): Use type EMACS_INT instead of int.
2182
0fb94c7f
EZ
21832001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
2184
2185 * ccl.c (ccl_driver): Fix last change.
2186
e3778624
KH
21872001-01-25 Kenichi Handa <handa@etl.go.jp>
2188
2189 * ccl.h (sturct ccl_program): New member suppress_error.
2190
bb264518 2191 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
e3778624
KH
2192 insert error message to the output.
2193 (setup_ccl_program): Initialize ccl->suppress_error to 0.
2194
2195 * coding.h (struct coding_system): New member suppress_error.
2196
2197 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
2198 (Fset_terminal_coding_system_internal): Set the member
2199 suppress_error to 1.
2200 (Fset_safe_terminal_coding_system_internal): Likewise.
2201
245ed2b1
SM
22022001-01-24 Stefan Monnier <monnier@cs.yale.edu>
2203
2204 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
2205 as if it was a `charset'.
2206
f9aaedb6
GM
22072001-01-24 Gerd Moellmann <gerd@gnu.org>
2208
2209 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
2210 value in where_is_cache; the next lookup in the cache returns
2211 something bogus if we do.
2212
c3902c3e
EZ
22132001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
2214
2215 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
2216 if HAVE_WINDOW_SYSTEM isn't defined.
2217
3497f73e
GM
22182001-01-24 Gerd Moellmann <gerd@gnu.org>
2219
e7e41584
GM
2220 * fns.c (sweep_weak_table): Fix code taking items out of
2221 the hash collision chain. Some cleanup.
2222
3497f73e
GM
2223 * xterm.c (x_new_font): Don't change a tooltip's size.
2224
2225 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
2226 background color by specifying a color for the default font
2227 in .Xdefaults.
2228
3d48e687
KH
22292001-01-24 Kenichi Handa <handa@etl.go.jp>
2230
96531b20
KH
2231 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
2232 a workaround for SunOS 4's cc.
2233 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
2234 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
2235 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
2236 statement.
3d48e687 2237
a30629d2
GM
22382001-01-23 Gerd Moellmann <gerd@gnu.org>
2239
2240 * xterm.c (x_set_window_size_1): New function extracted from
2241 x_set_window_size.
2242 (x_set_window_size): Use it.
2243 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
2244 doesn't have a widget, like tooltips.
2245
5a43decf
EZ
22462001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
2247
52283633 2248 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5a43decf 2249
b0e98867
KH
22502001-01-23 Kenichi Handa <handa@etl.go.jp>
2251
2252 * fns.c (Fset_char_table_default): Fix to make sub char-table
2253 correctly.
2254
50606b4c
GM
22552001-01-22 Gerd Moellmann <gerd@gnu.org>
2256
cb2ddc53 2257 * xdisp.c (build_desired_tool_bar_string): Make sure we have
52283633
SM
2258 a desired tool bar string, even if there are no tool bar items.
2259
57c28064
GM
2260 * xdisp.c (Ftool_bar_lines_needed): New function.
2261 (syms_of_xdisp): Defsubr it.
2262
50606b4c
GM
2263 * editfns.c (Fformat): Don't extend text properties from arguments
2264 to padding chars in the result.
2265
2f169c38
EZ
22662001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
2267
2268 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
2269
0f32f023
AI
22702001-01-20 Andrew Innes <andrewi@gnu.org>
2271
52283633 2272 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
0f32f023
AI
2273 (w32_initialize): Don't set term hooks that aren't actually needed
2274 in windowed mode.
2275
2276 * xfaces.c (realize_default_face):
2277 (realize_face):
2278 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
2279
2280 * xdisp.c (handle_single_display_prop): Remove references to
2281 FRAME_W32_CONSOLE_P.
2282
52283633 2283 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
0f32f023
AI
2284
2285 * frame.h (output_method): Remove output_w32_console method.
2286 (FRAME_W32_CONSOLE_P): Remove macro.
2287
2288 * frame.c (Qw32_console): Remove variable.
2289 (Fframep): Remove references to it.
2290 (syms_of_frame): Ditto.
2291 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
2292
2293 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
2294 redefinition.
2295
7173eada
KH
22962001-01-20 Kenichi Handa <handa@etl.go.jp>
2297
2298 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
2299
755b45ce
AI
23002001-01-19 Andrew Innes <andrewi@gnu.org>
2301
2302 * w32.c (init_environment): Add a version-independent site-lisp
2303 directory to EMACSLOADPATH, after the version dependent one.
2304
0a949811
GM
23052001-01-19 Gerd Moellmann <gerd@gnu.org>
2306
8501998a
GM
2307 * editfns.c (Fbuffer_substring): Doc fix.
2308
52283633
SM
2309 * xdisp.c (message_dolog, message2, message2_nolog):
2310 Rename parameter LEN to NBYTES.
0a949811 2311
e6ebcbbe
KH
23122001-01-19 Kenichi Handa <handa@etl.go.jp>
2313
200ecca2
KH
2314 * charset.c (strwidth): Use c_string_width.
2315 (c_string_width): New function.
2316 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
2317 Caller changed.
2318
2319 * charset.h (c_string_width, lisp_string_width): Extern them.
2320
52283633 2321 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
200ecca2 2322
e6ebcbbe
KH
2323 * indent.c (check_composition): Check validity of composition.
2324
200ecca2
KH
2325 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
2326 characters by calling c_string_width.
2327 (x_consider_frame_title): Get byte length of frame tile string
2328 correctly.
2329 (display_mode_element): Pay attention to width of non-ASCII
2330 characters by calling strwidth.
2331
8692ca92
GM
23322001-01-18 Gerd Moellmann <gerd@gnu.org>
2333
8962e303
GM
2334 * xfns.c (Qcancel_timer): New variable.
2335 (syms_of_xfns): Initialize and staticpro it.
2336 (Fx_hide_tip, Fx_show_tip): Use it.
2337 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
2338 the timer.
2339 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
2340
91523be9
GM
2341 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
2342
2343 * window.h (WINDOW_LIVE_P): New macro.
2344
b0b7ed0e
GM
2345 * window.c (window_size_fixed): New variable.
2346 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
2347 the doc string.
2348
06bccf8e
GM
2349 * eval.c (specbind): If binding a per-buffer variable which
2350 doesn't have a buffer-local value in the current buffer, change
2351 the global value by changing the value of the symbol bound in all
2352 buffers not having their own value, to make it consistent with
2353 what happens with other buffer-local variables.
2354
8692ca92
GM
2355 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
2356
2357 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
2358 when searching for a newline.
2359
bb3a3b50
KH
23602001-01-18 Kenichi Handa <handa@etl.go.jp>
2361
2362 * xdisp.c (display_string): Fix previous change.
2363
c2cc16fa
JR
23642001-01-18 Jason Rumney <jasonr@gnu.org>
2365
2366 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
2367 GLYPH_DEBUG is defined.
2368 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
2369 true for images with `:ascent 100'.
2370 (x_set_mouse_face_gc): If the last used mouse face has gone in the
2371 meantime, use face MOUSE_FACE_ID.
2372 If first glyph isn't a character glyph, use the ASCII NUL
2373 character to determine the face.
2374 (expose_area): Do not treat left margin specially.
2375 (note_mode_line_highlight): If no local_map, check global keymap.
2376 (note_mouse_highlight): Initialize overlay.
52283633 2377 (clear_mouse_face): Don't return if tip_frame is non-nil.
c2cc16fa
JR
2378 (show_scroll_bars): Remove unused function.
2379 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
2380 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
2381 Clip to row.
52283633 2382 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
c2cc16fa
JR
2383 (x_free_frame_resources): Unload relief colors.
2384
9c11f79e
GM
23852001-01-17 Gerd Moellmann <gerd@gnu.org>
2386
3aec8722 2387 * xdisp.c (forward_to_next_line_start): Avoid calling
52283633
SM
2388 get_next_display_element when the newline is already found.
2389 This may change the iterator's position, when its current position is
3aec8722
GM
2390 equal to the iterator's stop_charpos.
2391
f3ffc2c3
GM
2392 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
2393 zero, use this method only at the end of a line.
2394
52283633 2395 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
a86110a8
GM
2396 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
2397 if SCALABLE_FONTS_P is set.
52283633 2398
d26d6fd9
GM
2399 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
2400 so that scalable fonts are included.
2401
9c11f79e
GM
2402 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
2403 In the cache, use a key containing the information if scalable
2404 fonts are included.
2405 (x_load_font): Adapt to change of keys in the font cache.
2406
24072001-01-17 Kim F. Storm <storm@filanet.dk>
52283633 2408
d26d6fd9
GM
2409 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
2410 XListFonts to take advantage of font caching.
2411
9c11f79e
GM
2412 * xterm.c (x_list_fonts): Ensure caching font information when
2413 called for a null frame, which is the case frequently when Emacs
2414 starts.
2415
51446987
GM
24162001-01-17 Gerd Moellmann <gerd@gnu.org>
2417
f864120f
GM
2418 * xfns.c (QCconversion): Replaces QCalgorithm.
2419
2420 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
2421
2422 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
2423 of :algorithm.
52283633 2424
e37d1417
GM
2425 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
2426 not everything could be displayed.
2427
51446987
GM
2428 * line.h, x-list-font.c: Files removed because unused.
2429
9ad4f3e5
AI
24302001-01-17 Andrew Innes <andrewi@gnu.org>
2431
2432 * dired.c (directory_files_internal): Convert result from readdir
2433 to a unibyte string initially, to avoid possible misinterpretation
2434 of some bytes as the internal form of Emacs characters.
2435
2eda09b5
KH
24362001-01-17 Kenichi Handa <handa@etl.go.jp>
2437
2438 * fns.c (concat): Be sure to avoid putting the same `composition'
2439 property on the adjacent regions.
2440
826f3788
GM
24412001-01-16 Gerd Moellmann <gerd@gnu.org>
2442
52283633 2443 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
f251459d
GM
2444 (Fscroll_right, Fscroll_left): Set it here instead, if called
2445 interactively.
2446
d57b83b3
GM
2447 * buffer.c (Fset_buffer_modified_p): Set buffer's
2448 prevent_redisplay_optimizations_p flag.
2449
826f3788 2450 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
52283633
SM
2451 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
2452 with additional arg.
2453
2454 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
2455 Change prototype.
826f3788 2456
826f3788
GM
2457 * xdisp.c (redisplay_preserve_echo_area): Add parameter
2458 FROM_WHERE, for debugging.
2459
261d788b
KH
24602001-01-16 Kenichi Handa <handa@etl.go.jp>
2461
2462 * ccl.c (Fregister_ccl_program): Handle the return value of
2463 resolve_symbol_ccl_program correctly.
52283633 2464 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
261d788b 2465
bccee4f2
GM
24662001-01-15 Gerd Moellmann <gerd@gnu.org>
2467
e4ded23c
GM
2468 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
2469 has gone in the meantime, use face MOUSE_FACE_ID.
52283633
SM
2470
2471 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
2472 If x_display_info_for_display returns null, don't try to close
ae24cb3b
GM
2473 the display; we didn't open it.
2474
bccee4f2
GM
2475 * dispnew.c (save_or_restore_current_matrices): Function removed.
2476 (save_current_matrix, restore_current_matrix): New functions.
2477 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
2478 restore the frame's current matrix. Due to the glyph pointer
2479 setup done in adjust_glyph_matrix, there is no easy way to make
2480 saving the current matrix in the desired matrix generally correct,
2481 so don't try it.
2482
ebeccffa
KH
24832001-01-15 Kenichi Handa <handa@etl.go.jp>
2484
2485 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
2486 truncation glyphs.
2487 (display_line): Optimize for wide characters.
e4ded23c 2488 (display_string): Don't try to display a multi-column character
ebeccffa
KH
2489 partially. On ttys, produce more than one truncation glyph for
2490 multi-column characters that don't fit on the line.
2491
64388126
KH
24922001-01-13 Kenichi Handa <handa@etl.go.jp>
2493
52283633
SM
2494 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
2495 Define it instead of WORDS_BIGENDIAN. Caller changed.
64388126 2496
8edb0a6f
JR
24972001-01-13 Jason Rumney <jasonr@gnu.org>
2498
2499 * w32fns.c (Fimage_size, image_ascent, lookup_image)
2500 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
52283633
SM
2501 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
2502 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
8edb0a6f 2503
52283633
SM
2504 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
2505 (x_draw_image_relief, x_draw_image_foreground_1)
8edb0a6f
JR
2506 (x_draw_image_glyph_string): Adapt to change of image margins.
2507
2508 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
2509 variables.
2510
2511 * w32bdf.c (search_file_line, get_cached_font_char)
2512 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
2513
2514 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
2515
2516 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
2517 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
2518 (Fw32_send_sys_command): Remove unused variables.
2519 (w32_msg_pump): Add parentheses.
2520
2521 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
2522 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
2523 Add parentheses.
2524
4956d1ef
GM
25252001-01-12 Gerd Moellmann <gerd@gnu.org>
2526
b30623be
GM
2527 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
2528 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
2529 being a pair of margins.
2530 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
2531 to DEFVAR_LISP. Extend doc.
2532
2533 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
2534 margins.
2535 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
2536 pair of integers `(X . Y)', use X for the horizontal and Y for the
2537 vertical margin.
2538 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
2539 (parse_image_spec): Check it.
52283633
SM
2540 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
2541 (tiff_format, gif_format, gs_format):
2542 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
b30623be 2543
52283633
SM
2544 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
2545 (x_draw_image_relief, x_draw_image_foreground_1)
b30623be
GM
2546 (x_draw_image_glyph_string): Adapt to the change of image margins.
2547
2548 * dispextern.h (struct image): Replace member `margin' with
2549 `hmargin' and `vmargin'.
2550
4554cc79
GM
2551 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
2552 and GLYPHS.
2553
2554 * dispnew.c (update_text_area): Put code which decrements the
2555 stop position when the row's face extends to the end of the
3bffc665 2556 line in #if 0.
4554cc79 2557
3cccce8d
GM
2558 * xfns.c (x_set_mouse_color): Fix color allocation.
2559
4956d1ef
GM
2560 * keyboard.c: Call get_local_map with new argument list.
2561
2562 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
2563
2564 * intervals.h (enum map_property): Removed.
2565 (get_local_map): Change prototype.
2566
2567 * keymap.c: Call get_local_map with new argument list.
2568 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
2569
2c2ff7f2
GM
25702001-01-11 Gerd Moellmann <gerd@gnu.org>
2571
a23887b9
GM
2572 * xdisp.c (build_desired_tool_bar_string): Correct the computation
2573 of the size needed for the tool bar string. For the last image,
2574 use a `display' property that reaches to the end of the string.
2575
a7ee2d2e
GM
2576 * xselect.c (selection_request_dpyinfo): New variable.
2577 (x_handle_selection_request): Set it.
2578 (x_selection_request_lisp_error): Don't call
2579 x_decline_selection_request if selection request's display has
2580 been closed.
2581
52283633
SM
2582 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
2583 Do the unregister_colors before calling XFreeColors.
2c2ff7f2 2584
457b792c
GM
25852001-01-10 Dave Love <fx@gnu.org>
2586
2587 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
2588 ${SOME_MACHINE_LISP}, not ${lisp}.
2589
c1efd260
GM
25902001-01-10 Gerd Moellmann <gerd@gnu.org>
2591
52283633
SM
2592 * xdisp.c (display_line): On ttys, produce more than one truncation
2593 glyph for multi-column characters that don't fit on the line.
a98b5ed9 2594
ac95a621
GM
2595 * xselect.c (x_reply_selection_request): Add a comment.
2596
c1efd260
GM
2597 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
2598 XkbGetNames instead of XkbGetKeyboard.
2599
1bfb1345
DL
26002001-01-10 Dave Love <fx@gnu.org>
2601
2602 * sysdep.c (random): Revert the declaration.
2603
38119822
GM
26042001-01-09 Gerd Moellmann <gerd@gnu.org>
2605
52283633
SM
2606 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
2607 Call function string_bytes.
35f464a7
GM
2608 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
2609
2610 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
2611 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
2612 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
2613 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
2614 the current sblock.
2615 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
2616 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
2617 after sweeping strings, and at the end.
2618 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
2619
38119822
GM
2620 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
2621 ensure that pop_message is called.
2622
2623 * keyboard.c (Fexecute_extended_command): Use a
2624 record_unwind_protect to ensure that pop_message is called.
2625
2626 * lisp.h (push_message_unwind): Add prototype.
2627
2628 * xdisp.c (push_message_unwind): New function.
2629
2630 * fileio.c (do_auto_save_unwind): Do the pop_message here
2631 instead of in Fdo_auto_save.
2632 (Fdo_auto_save): Don't call pop_message.
2633
f47a9ec4
KR
26342001-01-08 Ken Raeburn <raeburn@gnu.org>
2635
2636 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
2637 in inner block.
2638
a758f97d
GM
26392001-01-08 Gerd Moellmann <gerd@gnu.org>
2640
6d0afc03
GM
2641 * window.c (window_scroll_pixel_based): Adjust glyph matrices
2642 when increasing window's vscroll.
2643
a758f97d
GM
2644 * macros.c (Qkbd_macro_termination_hook): New variable.
2645 (syms_of_macros): Initialize and staticpro it.
2646 (pop_kbd_macro): Run kbd-macro-termination-hook.
2647
2648 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
2649
1bfb1345 26502001-01-07 Dave Love <fx@gnu.org>
64d4ec0f
DL
2651
2652 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
2653 arglist, for documentation's sake.
2654
0dac6924
AI
26552001-01-06 Andrew Innes <andrewi@gnu.org>
2656
2657 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
2658 of *.pdb.
2659
8182406a
AI
26602001-01-05 Andrew Innes <andrewi@gnu.org>
2661
2662 * term.c (update_end): Don't check updating_frame; for some reason
2663 this can be 0 sometimes, such as after dismissing a popup menu,
2664 and isn't necessary given the explicit frame argument.
2665
3828218c
GM
26662001-01-05 Gerd Moellmann <gerd@gnu.org>
2667
2668 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
2669 on some systems, and an unsigned long on others, like FreeBSD 4.1.
2670
2f5ded21
GM
26712001-01-04 Gerd Moellmann <gerd@gnu.org>
2672
52283633 2673 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
2f5ded21
GM
2674
2675 * xfns.c (x_create_tip_frame): Preserve the value of
2676 face_change_count around the creation of the tip frame.
52283633 2677
2f5ded21
GM
2678 * xfns.c (last_show_tip_args): New variable.
2679 (compute_tip_xy): New function.
2680 (Fx_show_tip): Reuse an existing tip frame, if possible.
2681 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
2682
dfad65fa
DL
26832001-01-04 Dave Love <fx@gnu.org>
2684
64d4ec0f
DL
2685 * editfns.c (Fformat): Doc fix.
2686
dfad65fa
DL
2687 * systime.h (set_file_times): Prototype.
2688
2689 * widget.h (EmacsFrameSetCharSize_): Prototype.
2690
2691 * sysdep.c (random, srandom): Declare explicitly.
2692
2693 * dispextern.h (move_it_vertically_backward): Declare.
2694
85fe3b5e
GM
26952001-01-04 Gerd Moellmann <gerd@gnu.org>
2696
0f2ac578
GM
2697 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
2698 like in Fx_create_frame.
2699
482cca61
GM
2700 * xfaces.c (set_font_frame_param): Don't do anything for
2701 non-graphical frames.
2702
85fe3b5e
GM
2703 * window.c (Fdelete_other_windows): Set window's window_end_valid
2704 to nil when changing the window's start. Don't change the
2705 window's start when its top position hasn't changed. If we do,
2706 this will set the window's optional_new_start, which act's like a
2707 force_start during redisplay with C-x 1 M-> under particular
2708 circumstances (see report from Per Starback to emacs-pretest-bug
2709 from 2000-12-13.).
2710
3e99d3b4
GM
27112001-01-03 Gerd Moellmann <gerd@gnu.org>
2712
a77dc1ec
GM
2713 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
2714 short cut at the start of the function. Add an assertion.
2715 (reseat_at_next_visible_line_start): Add an assertion.
2716
2f3cad6c
GM
2717 * window.c (Frecenter): When changing the window start, set the
2718 window's window_end_valid to nil.
2719 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
2720
2721 * dispextern.h (move_it_past_eol): Add prototype.
2722
2723 * xdisp.c (move_it_past_eol): New function.
2724
3e99d3b4
GM
2725 * window.c (Fwindow_end): Doc fix.
2726
27272001-01-03 Dave Love <fx@gnu.org>
2728
52283633 2729 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
3e99d3b4 2730
bafb434c
GM
27312001-01-03 Gerd Moellmann <gerd@gnu.org>
2732
2733 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
2734 the enabled_p flag of the glyph row at window_end_vpos to 0.
2735 (handle_single_display_prop): Fix last change.
2736
5297fb00
RS
27372001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2738
2739 * window.c (Frecenter): Doc fix.
2740
13d6a61c
AI
27412001-01-02 Andrew Innes <andrewi@gnu.org>
2742
2743 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
2744
2745 * frame.h (output_method): Add output_w32_console method.
2746 (FRAME_W32_CONSOLE_P): New macro.
2747
2748 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
2749 use output_w32_console method.
2750 (Qw32_console): New Lisp_Object.
2751 (Fframep): Return it.
2752 (syms_of_frame): Init it.
52283633 2753 (Fframe_parameters): Report w32console as font for w32_console frames.
13d6a61c
AI
2754
2755 * xfaces.c (realize_default_face): Set face foreground and
2756 background to unspecified for w32_console frames.
2757 (realize_face): Realize face cache for w32_console frames.
2758 (realize_tty_face): Accept w32_console frames.
2759
52283633 2760 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
13d6a61c
AI
2761 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
2762 necessary, even if running interactively.
2763
2764 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
2765 w32_console frames.
2766
52283633
SM
2767 * w32term.c (x_update_begin):
2768 (x_update_end):
2769 (x_clear_frame):
2770 (x_ins_del_lines):
2771 (x_change_line_highlight):
2772 (x_delete_glyphs):
2773 (w32_ring_bell):
2774 (x_update_begin):
2775 (x_update_end):
2776 (w32_reassert_line_highlight):
2777 (w32_frame_rehighlight):
13d6a61c
AI
2778 (w32_frame_raise_lower): Do nothing if not w32 frame.
2779
2780 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
2781
2782 * w32fns.c (Fx_display_color_cells): Determine correct value, when
2783 system doesn't tell us directly.
2784 (Fx_display_visual_class): Implement properly.
2785
d6bb0c0d
GM
27862001-01-02 Gerd Moellmann <gerd@gnu.org>
2787
2788 * window.c (Frecenter): Handle centering in graphical frames
2789 specially. Centering on the basis of line counts doesn't work
2790 reliably with variable-height lines.
52283633 2791
315f5865
EZ
27922001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
2793
2794 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
2795 and al[].
2796
52283633 2797 * composite.c (run_composition_function): Remove unused var `val'.
315f5865
EZ
2798 (update_compositions): Remove unused variable `hook'.
2799
2800 * intervals.c (get_local_map): Remove unused variable `tem'.
2801
2802 * doprnt.c (doprnt1): Remove unused variable `size'.
2803
2804 * fns.c (Flength): Remove unused variable `tail'.
2805 (Fdelete): Remove unused variable `size'.
2806
2807 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
2808 and `gcpro2'.
2809
52283633 2810 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
315f5865
EZ
2811
2812 * data.c (find_symbol_value): Remove extra 3rd argument in the
2813 call to swap_in_symval_forwarding.
2814
52283633 2815 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
315f5865
EZ
2816
2817 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
2818 (trivial_regexp_p): Remove unused variable `c'.
2819 (boyer_moore): Remove unused variable `k'.
2820
2821 * indent.c (current_column): Remove unused variable `stopchar'.
2822 (Fcompute_motion): Remove unused variable `contin'.
2823
2824 * casefiddle.c (casify_object): Remove unused variable `tolen'.
2825
2826 * dired.c (directory_files_internal): Fix a typo in a comment.
2827 Remove an unused variable `handler'.
52283633 2828 (file_name_completion): Remove unused function-scope variable `dp'.
315f5865
EZ
2829 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
2830 on BSD4_2.
2831
52283633 2832 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
315f5865
EZ
2833
2834 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
2835 and `buf'.
2836 (Fmarker_insertion_type): Remove unused variable `buf'.
2837
2838 * insdel.c (make_gap): Remove unused variable `result'.
2839
52283633 2840 * keyboard.c (record_char): Remove unused function-scope var `help'.
315f5865
EZ
2841 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
2842 (menu_bar_items): Remove unused function-scope variable `tem'.
2843
2844 * fontset.c (fontset_ref): Remove unused variable `i'.
2845 (fontset_set): Remove unused variables `j' and `tmp'.
52283633 2846 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
315f5865
EZ
2847 (make_fontset_for_ascii_face): Remove unused variable `name'.
2848 (fs_load_font): Remove unused variable `font_idx'.
52283633 2849 (fs_query_fontset): Remove unused function-local variable `fontset'.
315f5865
EZ
2850 (list_fontsets): Remove unused variable `tail'.
2851 (Fnew_fontset): Remove unused variables `family' and `registry'.
2852 (accumulate_font_info): Remove unused variable `tmp'.
2853 (Ffontset_font): Remove unused variable `id'.
2854 (syms_of_fontset): Remove unused variable `i'.
2855
2856 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
2857 to x_term_init.
2858 (lookup_image): Remove unused variable `file'.
2859 (xbm_load): Remove unused variables `bitmap_data', `height', and
2860 `width'. Remove function-local variable `i', leave the
2861 block-local one.
2862 (gif_load): Remove unused variable `inc'.
2863
52283633 2864 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
315f5865
EZ
2865 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
2866 leave only the one in the inner block.
2867
2868 * xfaces.c (face_fontset, realize_default_face): Remove unused
2869 variable `fontset'.
2870 (face_at_buffer_position): Remove unused variable `multibyte_p'.
2871
2872 * term.c (encode_terminal_code): Remove unused variable `c'.
2873
2874 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
2875 char *' instead of `char *'.
2876
2877 * category.c (Fcategory_docstring): Remove unused variable `doc'.
52283633 2878 (Fget_unused_category): Remove unused variable `docstring_vector'.
315f5865
EZ
2879 (Fchar_category_set): Remove unused variables `val', `charset',
2880 `c1' and `c2'.
2881
52283633
SM
2882 * coding.c (detect_coding_iso2022, setup_coding_system):
2883 Remove unused variable `i'.
315f5865
EZ
2884 (detect_coding_mask): Remove unused variable `idx'.
2885 (detect_coding): Remove unused variable `i'.
2886 (ccl_coding_driver): Remove unused variable `result'.
2887 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
52283633 2888 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
315f5865
EZ
2889 (encode_coding_string): Remove unused variables `gcpro1' and
2890 `saved_coding_symbol'.
2891 (Ffind_coding_systems_region_internal): Remove function-local
2892 variable args[], leave only the block-local one.
2893 (code_convert_region1): Remove unused variable `len'.
2894
2895 * charset.c (char_printable_p): Remove unused variable `chars'.
2896 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
2897 (str_to_multibyte): Remove unused variable `c'.
2898
2899 * window.c (size_window): Remove block-local variable `min_size'.
2900
2901 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
2902 `header_line_height'.
2903 (append_space, extend_face_to_end_of_line): Declare `saved_what'
2904 enum display_element_type.
2905
1a8a9daf
GM
29062001-01-02 Gerd Moellmann <gerd@gnu.org>
2907
6dde6abc 2908 * xterm.c (x_connection_closed): Catch X errors around all
52283633
SM
2909 statements that call X. Save away the error message in a local copy.
2910
1883b2c6
GM
2911 * xterm.c (x_connection_closed): Set handling_signal to 0 at
2912 the start.
2913
a13be207
GM
2914 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
2915 in or at the start of invisible text.
2916
1a8a9daf
GM
2917 * dispnew.c (update_window): Don't check_current_matrix_flags.
2918
3608c0f9
JR
29192001-01-01 Jason Rumney <jasonr@gnu.org>
2920
2921 * w32fns.c (x_figure_window_size): Do not allow new_height and
2922 new_width of frame to override specified values.
2923
abb1acc4
KH
29242000-12-30 Kenichi Handa <handa@etl.go.jp>
2925
52283633 2926 * composite.c (find_composition): Fix a code for searching backward.
abb1acc4 2927
762a68ec
GM
29282000-12-29 Gerd Moellmann <gerd@gnu.org>
2929
52283633 2930 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
9c8b8382
GM
2931 (update_window) [GLYPH_DEBUG]: Call it.
2932 (scrolling_window): Prevent including current rows which are below
2933 what's displayed in the window.
2934
2935 * xdisp.c (try_window_reusing_current_matrix)
2936 <new start <= old start>: Disable rows in the current matrix
2937 which are below the window after scrolling.
52283633 2938
762a68ec
GM
2939 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
2940 is zero. It's not worth the complexity.
2941 (invisible_text_between_p): Put in #if 0 because unused.
2942
2d5912c1
GM
29432000-12-28 Gerd Moellmann <gerd@gnu.org>
2944
46f6a258
GM
2945 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
2946 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
2947
89f93679
GM
2948 * keyboard.c (echo_char): If C is an integer, always call
2949 push_key_description. Former code could signal an invalid
2950 character error.
2951
2952 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
2953 If set, print multibyte text.
2954 (Fsingle_key_description): Call push_key_description with
2955 FORCE_MULTIBYTE set.
2956 (describe_buffer_bindings): Likewise.
2957
2958 * lisp.h (push_key_description): Add prototype.
2959
c06017fb
GM
2960 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
2961 around the call to redisplay_internal.
2962
f1d2ce7f
GM
2963 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
2964
2d5912c1
GM
2965 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
2966
9371f831
KH
29672000-12-28 Kenichi Handa <handa@etl.go.jp>
2968
2969 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
2970 (ccl_driver): New local variable `extra_bytes'.
2971
2972 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
2973
52283633
SM
2974 * coding.c (setup_coding_system):
2975 Initialize coding->spec.ccl.eight_bit_carryover.
9371f831
KH
2976 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
2977
0c80628a
KH
29782000-12-28 Kenichi Handa <handa@etl.go.jp>
2979
2980 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
2981 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
2982 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
2983 (decode_composition_emacs_mule): New function.
2984 (decode_coding_emacs_mule): Decode composition sequence by calling
2985 decode_composition_emacs_mule.
2986 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
52283633
SM
2987 (encode_coding_emacs_mule): Changed from macro to function.
2988 If a text contains compositions, encode them correctly.
0c80628a
KH
2989 (setup_coding_system): Set coding->commong_flags for emacs-mule so
2990 that decoding and encoding are required.
2991
3e32cc27
GM
29922000-12-27 Gerd Moellmann <gerd@gnu.org>
2993
5e25feee
GM
2994 * xfaces.c (PT_PER_INCH): New macro.
2995 (xlfd_point_size): Compute real point size from font's pixel size.
2996 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
2997 instead of 72.
2998
892d8fcd
GM
2999 * .gdbinit: Comment out the line pointing to the Lesstif source
3000 directory.
3001
12c8b416
GM
3002 * window.c (Frecenter): Use displayed_window_lines instead
3003 of window_internal_height.
3004
6061fbf0
GM
3005 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
3006 instead of x-toolkit-scroll-bars-p.
3007 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
3008
3009 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
3010 instead of x-toolkit-scroll-bars-p.
3011 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
52283633 3012
3e32cc27
GM
3013 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
3014 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
52283633
SM
3015 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
3016 New variables.
3017 (add_window_display_history, add_frame_display_history)
3e32cc27
GM
3018 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
3019 (build_frame_matrix_from_leaf_window): Remove unused code.
3020 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
3021 redisplay history.
3022 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
3023 (update_window) [GLYPH_DEBUG]: Likewise.
3024 (syms_of_display): Defsubr dump-redisplay-history.
3025
31798cfe
GM
30262000-12-23 Gerd Moellmann <gerd@gnu.org>
3027
f717c2ba
GM
3028 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
3029 the end of the prompt. Set echo_after_prompt to the offset
3030 of echoptr in echobuf.
3031
aeb2b8fc
GM
3032 * xdisp.c (init_from_display_pos): Pop until the iterator's
3033 stack is empty; there may be frames for stretch or images
3034 on the stack.
3035
31798cfe
GM
3036 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
3037 (save_or_restore_current_matrix): New function for the same
3038 purpose, but more efficient.
3039 (adjust_frame_glyphs_for_frame_redisplay): Use it.
3040
f8156156
EZ
30412000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
3042
3043 * xdisp.c (syms_of_xdisp): Fix last change.
3044
bdd6d4e8
GM
30452000-12-23 Gerd Moellmann <gerd@gnu.org>
3046
3047 * xdisp.c (syms_of_xdisp): Doc fix.
3048
3049 * xdisp.c (redisplay_window): Remove label restore_buffers;
3050 use finish_scroll_bars instead to make sure that scroll bars
3051 are redeemed. If we don't do this, flickering can result from
3052 scroll bars being destroyed and recreated.
3053
9436cdf9
JR
30542000-12-22 Jason Rumney <jasonr@gnu.org>
3055
3056 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
3057 in the wrong colors when the foreground is not black.
3058 (expose_window): Don't redraw the window that's currently being
3059 updated.
3060
951f9df5
GM
30612000-12-22 Gerd Moellmann <gerd@gnu.org>
3062
856ff7a7
GM
3063 * window.c (size_window): When setting the window's too_small_ok
3064 flag, compare old size with minimum size depending on WIDTH_P,
3065 don't compare with window_min_width.
52283633 3066
951f9df5
GM
3067 * window.c (delete_window): Simplify somewhat.
3068 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
3069 freeing window matrices. The flag windows_or_buffers_changed is
3070 set, so the next redisplay will consider all windows; this should
3071 suffice.
3072
886bc933
KH
30732000-12-22 Kenichi Handa <handa@etl.go.jp>
3074
3075 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
3076
3077 * ccl.h (struct ccl_program): New member cr_consumed.
3078
3079 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
3080 (CCL_READ_CHAR): Handle EOL conversion here.
3081 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
3082
177f4e88
GM
30832000-12-21 Gerd Moellmann <gerd@gnu.org>
3084
52283633 3085 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
6ba384dc
GM
3086
3087 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
3088 otherwise tabs of different size compare equal.
3089
3090 * callint.c (Fcall_interactively): Prevent a compiler warning.
3091
3092 * print.c (print_unwind): Return nil.
3093 (PRINTDECLARE): Initialize all local variables.
3094 (print_preprocess): Add a default case.
3095
8e15274f
GM
3096 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
3097
3098 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
3099
52283633 3100 * window.c (delete_window, Fsplit_window)
177f4e88
GM
3101 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
3102
3103 * dispextern.h (ensure_frame_matrix): Function declaration removed.
3104
3105 * dispnew.c (ensure_frame_matrix): Removed.
3106 (save_frame_matrix, restore_frame_matrix): New functions.
3107 (adjust_frame_glyphs_for_frame_redisplay): Use them.
3108
3109 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
3110 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
3111
99012074
AI
31122000-12-21 Andrew Innes <andrewi@gnu.org>
3113
3114 * w32term.c (x_update_begin): Regenerate the palette here, rather
3115 than for each window.
3116
3117 * w32xfns.c (select_palette): Avoid calling SelectPalette if
3118 palette is NULL, since this corrupts memory! Also get
3119 display_info reference from frame.
3120
29ef7d2d
JR
31212000-12-21 Jason Rumney <jasonr@gnu.org>
3122
3123 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
3124
3125 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
3126 to avoid returning without releasing it.
3e27fa1f 3127
3f9d67a6
KH
31282000-12-21 Kenichi Handa <handa@etl.go.jp>
3129
587fc3f9
KH
3130 * keymap.c (push_key_description): Don't convert eight-bit-control
3131 and eight-bit-graphic to multibyte character.
3132
3f9d67a6
KH
3133 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
3134 generic character and CODE1 is nil, return the smallest character
3135 in CHARSET.
3136
774ba8c9
DL
31372000-12-20 Dave Love <fx@gnu.org>
3138
3139 * s/osf5-0.h (NSIG): Don't redefine.
3140
88416888
SM
31412000-12-20 Stefan Monnier <monnier@cs.yale.edu>
3142
3143 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
3144 excluding menu-bar and tool-bar.
3145 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
3146 (menu_item_p): Remove.
3147 (where_is_internal_1): Don't ignore menu-items.
3148
a6426c6f
GM
31492000-12-20 Gerd Moellmann <gerd@gnu.org>
3150
03ff8aab
GM
3151 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
3152 into account.
3153
3154 * window.c (make_window): Initialize window's min_hscroll.
3155 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
3156 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
3157 to zero.
3158 (struct saved_window): New member min_hscroll.
3159 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
3160 (Fset_window_configuration): Set window's min_hscroll.
3161 (save_window_save): Save window's min_hscroll.
3162 (compare_window_configurations): Compare min_hscroll values.
3163
3164 * window.h (struct window): New member min_hscroll.
3165
3166 * keyboard.c (echo_prompt): Prevent a compiler warning.
3167
8de4aaf8
GM
3168 * xdisp.c (try_cursor_movement): Fix last change. The real
3169 condition is that PT is at the end of the row, and should
3170 be displayed at the start of the next row.
52283633 3171
3f7e3031
GM
3172 * xdisp.c (try_cursor_movement): If we end on a partially
3173 visible line, end we already decided to scroll, return -1.
3174
a6426c6f
GM
3175 * dispextern.h (ensure_frame_matrix): Add prototype.
3176
3177 * window.c (delete_window, Fsplit_window)
3178 (Fset_window_configuration): Call ensure_frame_matrix.
3179
52283633
SM
3180 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
3181 New functions.
a6426c6f
GM
3182 (adjust_frame_glyphs_for_frame_redisplay): If display has been
3183 completed, call fake_current_matrices instead of marking frame
3184 garbaged.
3185
57fa2774
JR
31862000-12-20 Jason Rumney <jasonr@gnu.org>
3187
3188 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
3189
d925df90
EZ
31902000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
3191
3192 * fns.c (Frequire): Doc fix.
3193
7b93a85b
GM
31942000-12-19 Gerd Moellmann <gerd@gnu.org>
3195
52283633 3196 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
71d4497a 3197
c74e645b
GM
3198 * dispnew.c (direct_output_for_insert): Fix check for mini-window
3199 currently displaying a message.
3200
7b93a85b
GM
3201 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
3202 xterm.h.
3203 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
3204
90d97e64
AI
32052000-12-18 Andrew Innes <andrewi@gnu.org>
3206
3207 * w32.c (w32_strerror): New function.
3208
3209 * w32.h (w32_strerror): New extern.
3210
3211 * w32fns.c (Fw32_shell_execute): Use it.
3212
91c9e6ce
GM
32132000-12-18 Gerd Moellmann <gerd@gnu.org>
3214
3215 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
3216
6f4745e2
EZ
32172000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
3218
3219 * msdos.c (IT_set_face): Obey inverse_video.
3220
c9e088ce
KH
32212000-12-18 Kenichi Handa <handa@etl.go.jp>
3222
3223 * dired.c (directory_files_internal): Always return decoded filenames.
3224
c3695f5f
GM
32252000-12-18 Gerd Moellmann <gerd@gnu.org>
3226
52d8e4ff
GM
3227 * xterm.c (x_connection_closed): Prevent being called recursively
3228 because of an error condition in XtCloseDisplay.
52283633 3229
62be9979
GM
3230 * xdisp.c (init_iterator): If noninteractive, and the frame's
3231 face cache is null, make one.
3232
52283633 3233 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
5f7a1890 3234
c3695f5f
GM
3235 * process.c (wait_reading_process_input): Check for pending
3236 input when running timers.
3237
78555fbe
EZ
32382000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
3239
52283633 3240 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
78555fbe 3241
b2b36264
KH
32422000-12-18 Kenichi Handa <handa@etl.go.jp>
3243
3244 * process.c (read_process_output): Don't run a filter if the code
3245 decoder produces nothing but carryover.
3246
9c543fbf
AI
32472000-12-17 Andrew Innes <andrewi@gnu.org>
3248
3249 * w32.c (sys_rename): Only check errno against EEXIST, and not
3250 EACCES, when determining whether rename failed because the target
3251 exists. This was resulting in indefinite looping on Windows 9x if
3252 the source file was locked by another process.
3253
3254 * w32fns.c (Ffile_system_info): New function.
3255 (syms_of_w32fns): Defsubr it.
3256
10c2b5a8
GM
32572000-12-17 Gerd Moellmann <gerd@gnu.org>
3258
b0228ace
GM
3259 * window.c (coordinates_in_window): Fix computation for
3260 position on vertical line between mode lines.
3261
10c2b5a8
GM
3262 * xfns.c (unwind_create_frame): Return t if frame was deleted.
3263 Don't alter tip_frame or tip_window.
3264 (unwind_create_tip_frame): Set tip_frame to nil only if frame
3265 was deleted.
3266
c844a81a
GM
3267 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
3268 Don't alter tip_frame or tip_window.
3269 (unwind_create_tip_frame): Set tip_frame to nil only if frame
3270 was deleted.
3271
6c825f8e
EZ
32722000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
3273
3274 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
3275 be consistent with the doc string. Reported by NAKAJIMA Mikio
3276 <minakaji@osaka.email.ne.jp>.
3277
af4bb4c8
KH
32782000-12-16 Kenichi Handa <handa@etl.go.jp>
3279
3280 * xfaces.c (Vface_ignored_fonts): New variable.
3281 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
3282 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
3283
8062e53a
GM
32842000-12-15 Gerd Moellmann <gerd@gnu.org>
3285
e87b8809
GM
3286 * dispnew.c (update_window): Detect pending input every nth line
3287 updated, i.e. do it depending on real work done, and not on the
3288 vpos of the line.
3289
3290 * xterm.c (expose_window): Don't redraw the window that's
3291 currently being updated.
3292
a6768cc5
GM
3293 * window.c (Fset_window_point): Remove test for
3294 cursor_in_non_selected_windows.
3295
4ea7fdca
GM
3296 * lread.c (read1): Recognize end of file after `\\'.
3297
8062e53a
GM
3298 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
3299 not unwind_create_frame.
3300
bb7959c1
GM
33012000-12-15 Dave Love <fx@gnu.org>
3302
3303 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
3304 bcopy & al.
3305
3306 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
3307
ced04c42
KH
33082000-12-15 Kenichi Handa <handa@etl.go.jp>
3309
c5443913
KH
3310 * coding.c (setup_coding_system): Clear all members of the struct
3311 coding_system at first.
bc137305
KH
3312 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
3313 argument.
3314 (code_convert_region): Don't override coding->src_multibyte and
3315 coding->dst_multibyte.
c5443913 3316
ced04c42
KH
3317 * fns.c (Fmd5): Docstring improved.
3318
c2d7f289
MB
33192000-12-15 Miles Bader <miles@gnu.org>
3320
3321 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
3322 are actually marked as mode-lines; otherwise use
3323 estimate_mode_line_height.
3324
9d7d9263
GM
33252000-12-14 Gerd Moellmann <gerd@gnu.org>
3326
3327 * editfns.c (Fformat): Prevent a buffer overrun when the format
3328 specifies a precision.
3329
7cf0153a
EZ
33302000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
3331
3332 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
3333 argument is outside the range [2..3].
3334
1de0f662
AI
33352000-12-14 Andrew Innes <andrewi@gnu.org>
3336
3337 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
3338 nothing to do. Bind inhibit-quit.
3339 (tip_frame): Make it a Lisp_Object.
3340 (x_create_tip_frame): Set tip_frame after it has been added to
3341 Vframe_list.
3342 (Fx_show_tip): Don't set tip_frame here.
52283633 3343 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
1de0f662
AI
3344 (unwind_create_frame, unwind_create_tip_frame): New functions.
3345 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
3346 while a frame is only partially constructed.
3347
3348 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
3349 (x_free_frame_resources): New function.
3350 (x_destroy_window): Use it.
3351
02387dcc
GM
33522000-12-14 Gerd Moellmann <gerd@gnu.org>
3353
3354 * xfns.c (Fx_backspace_delete_keys_p): New function.
3355 (syms_of_xfns): Defsubr it.
3356
3357 * config.in (HAVE_XKBGETKEYBOARD): Add.
3358
0544ef49
KH
33592000-12-14 Kenichi Handa <handa@etl.go.jp>
3360
98d62747
KH
3361 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
3362 Always store string in multibyte representation in echobuf.
3363 (echo_char): Always store string in multibyte representation in
3364 echobuf.
3365 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
3366 (read_key_sequence): Adjusted for the change of echo_prompt.
3367
a20193cd
KH
3368 * fns.c (Fmd5): Docstring improved.
3369
191b83b6
KH
3370 * lisp.h (detect_coding_system): Prototype adjusted.
3371
0544ef49
KH
3372 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
3373 (detect_coding_emacs_mule, detect_coding_iso2022,)
3374 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
52283633
SM
3375 (detect_coding_utf_16, detect_coding_ccl): Make them static.
3376 New argument MULTIBYTEP. Callers changed.
0544ef49
KH
3377 (detect_coding_mask, detect_coding_system): New argument
3378 MULTIBYTEP. Callers changed.
1da1bb05
KH
3379 (decode_coding_string): Set coding->src_multibyte and
3380 coding->dst_multibyte before calling detect_coding and detect_eol.
3381 Update them after some coding system is detected.
52283633 3382
d5b3eb1b
SM
33832000-12-13 Stefan Monnier <monnier@cs.yale.edu>
3384
3385 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
3386
3387 * keyboard.c (menu_bar_items, tool_bar_items):
3388 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
3389
f7f8bb69
GM
33902000-12-13 Gerd Moellmann <gerd@gnu.org>
3391
52283633 3392 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
19f71add
GM
3393 New variables.
3394 (unwind_create_frame, unwind_create_tip_frame): New functions.
3395 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
3396 while a frame is only partially constructed.
3397
3398 * xterm.h (x_free_frame_resources): Declare.
3399
3400 * xterm.c (x_free_frame_resources): New function.
3401 (x_destroy_window): Use it.
3402
e10da507
GM
3403 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
3404 don't interrupt the update for pending input initially, i.e.
3405 update at least some lines.
3406
3407 * keyboard.c (do_mouse_tracking): Make externally visible.
52283633 3408
d5b3eb1b 3409 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
f7f8bb69
GM
3410
3411 * xfns.c (gray_bitmap_bits): Declare `char *'.
3412
90aa2856
GM
34132000-12-12 Gerd Moellmann <gerd@gnu.org>
3414
3415 * xdisp.c (display_tool_bar_line): Make sure that tool bar
3416 lines start with a relief line.
3417
a308c9cd
DL
34182000-12-12 Dave Love <fx@gnu.org>
3419
3420 * window.c (Fdisplay_buffer): Doc fix.
3421 (Fwindow_list): Remove unused var.
3422
3423 * buffer.h (mmap_set_vars): Declare.
3424
3425 * window.h (Fset_window_point): Declare.
3426
d575011f
EZ
34272000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
3428
bf6282d2 3429 * msdos.c (fast_find_position): Don't overstep the last window row.
52283633
SM
3430 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
3431 variable `area'. When looking for a row under (X,Y), give up if some
3432 of the previous rows is not enabled.
d575011f 3433
ecf4d726
GM
34342000-12-12 Gerd Moellmann <gerd@gnu.org>
3435
2ebf6139
GM
3436 * window.c (Fset_window_point): If displaying cursors in windows
3437 other than the selected window, make sure redisplay updates
3438 other windows to show the new value of point in the window.
3439
3440 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
3441
bfdb75ee
GM
3442 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
3443 the buffer is the sole visible buffer when in the mini-buffer.
3444
52283633 3445 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
4fdbd809
GM
3446 Bind `inhibit-read-only' to t.
3447 (unwind_with_echo_area_buffer): Use AREF.
3448
c0006262
GM
3449 * xfns.c (Fx_hide_tip): Simplified.
3450
52283633
SM
3451 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
3452 instead of `1'.
e9a59cad 3453
ecf4d726
GM
3454 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
3455
e5959a9a
GM
34562000-12-11 Gerd Moellmann <gerd@gnu.org>
3457
a3642e49 3458 * xfns.c (Fx_hide_tip): Fix last change.
52283633 3459
44b5a125
GM
3460 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
3461 nothing to do. Bind inhibit-quit.
3462 (tip_frame): Make it a Lisp_Object.
3463 (x_create_tip_frame): Set tip_frame after it has been added to
3464 Vframe_list.
3465 (Fx_show_tip): Don't set tip_frame here.
3466
3467 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
3468
3469 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
3470 Lisp_Object.
3471
3472 * dispextern.h: Change external declaration of tip_frame.
3473
d990421f
GM
3474 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
3475 return an empty string.
3476
4db87380
GM
3477 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
3478 of the window's update_mode_line flag, since the former is set by
3479 force-mode-line-update, not the latter. This makes
3480 column-number-mode slightly faster.
52283633 3481
e5959a9a
GM
3482 * xdisp.c (try_window_id) <all changes above window start>:
3483 Set the cursor.
3484
169fe44e
GM
34852000-12-11 Paul Eggert <eggert@twinsun.com>
3486
3487 * config.in (HAVE_FTELLO): Remove.
3488 (HAVE_FSEEKO): Add.
3489 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
3490 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
3491 HAVE_FTELLO.
3492 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
3493 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
52283633 3494
59ec59ae
MB
34952000-12-11 Miles Bader <miles@gnu.org>
3496
3497 * window.c (displayed_window_lines): Don't round up when
3498 converting empty space at bottom to lines.
ff904dd6
MB
3499 Handle non-newline-terminated final lines properly.
3500 (Fwindow_text_height): New function (used to be in lisp).
3501 (syms_of_window): Initialize it.
59ec59ae 3502
42ebfa31
SM
35032000-12-09 Stefan Monnier <monnier@cs.yale.edu>
3504
3505 * syntax.c (scan_lists): Check that the right quote char has the
3506 right Sstring syntax when jumping over strings.
3507 (init_syntax_once): Use Smax rather than 13.
3508
5cdb3cf3
MB
35092000-12-09 Miles Bader <miles@gnu.org>
3510
3511 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
3512 with PARTIALLY, inverting the sense.
3513 (window_scroll_pixel_based): Scroll partially visible lines into
3514 place if we hit the beginning or end of the buffer.
a12167c5
MB
3515 (displayed_window_lines): Don't include partially visible lines.
3516 (Fmove_to_window_line): Skip past any partially visible first line.
5cdb3cf3 3517
842b2a94
GM
35182000-12-08 Gerd Moellmann <gerd@gnu.org>
3519
3520 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
3521
3522 * tparam.c (tparam1): Change the way buffers are reallocated to be
3523 portable and less obfuscated.
3524
3525 * termcap.c (tgetent): Change the way buffers are reallocated to
3526 be portable and less obfuscated.
3527
3528 * macros.c (store_kbd_macro_char): Change the way buffers are
3529 reallocated to be portable and less obfuscated.
3530
3531 * lread.c (read1): Change the way buffers are reallocated to be
3532 portable and less obfuscated.
3533
3534 * doc.c (Fsubstitute_command_keys): Change the way buffers
3535 are reallocated so that it is portable.
3536
137cad7c
EZ
35372000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
3538
3539 * dosfns.c (Ffile_system_info): New function.
3540 (syms_of_dosfns): Defsubr it.
3541
5c7f629c
SM
35422000-12-07 Stefan Monnier <monnier@cs.yale.edu>
3543
3544 * alloc.c (gc_sweep): Add comment.
3545
959e647d
GM
35462000-12-07 Gerd Moellmann <gerd@gnu.org>
3547
52283633
SM
3548 * sound.c (vox_configure): Change order of ioctls.
3549 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
28fcb7dc
GM
3550 Ignore errors when changing volume.
3551 (vox_close): Don't reset the device.
3552
926b7e5e
GM
3553 * process.c (read_process_output): Make sure the process marker's
3554 position is valid when the process buffer is changed in
3555 after-change functions. W3 does that.
52283633 3556
959e647d
GM
3557 * xfns.c (x_free_gcs): New function.
3558
3559 * xterm.h (x_free_gcs): Add prototype.
3560
3561 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
3562 freeing GCs here.
3563
3564 * xterm.c (x_destroy_window): Call x_free_gcs so that
3565 resources of non-toolkit X windows will be freed.
3566
478ea067
AI
35672000-12-07 Andrew Innes <andrewi@gnu.org>
3568
3569 * w32fns.c (xlfd_charset_of_font): Fix last change.
3570
fbee3231
DL
35712000-12-06 Dave Love <fx@gnu.org>
3572
67292061
DL
3573 * md5.h (__P): Don't define -- it comes from config.h.
3574
fbee3231
DL
3575 * strftime.c: Change some #if foo to #ifdef foo.
3576
4ee87dbb
AI
35772000-12-06 Andrew Innes <andrewi@gnu.org>
3578
3579 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
3580
52283633 3581 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
4ee87dbb 3582 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
52283633 3583 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
4ee87dbb 3584
9765b4a4
GM
35852000-12-06 Gerd Moellmann <gerd@gnu.org>
3586
d285b373
GM
3587 * alloc.c (gc_sweep): Prevent symbols read during loadup
3588 from being freed.
3589
384333ee
GM
3590 * xdisp.c (underlying_face_id): New function.
3591 (handle_face_prop, face_before_or_after_it_pos): Use it
3592 to determine the face ``under'' a string. Let strings inherit
3593 the face of the buffer under them.
3594
3595 * xfaces.c (face_at_string_position): Update function comment.
52283633 3596
d4b72d58
GM
3597 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
3598 matrix if the window's left position has changed; we need to
3599 redraw it in this case.
3600
3601 * dispextern.h (struct glyph_matrix): Add member window_left_x.
3602
e1d05387
GM
3603 * window.c (coordinates_in_window): Check mouse on mode-line or
3604 header-line first.
3605
eb1b0c74
GM
3606 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
3607 advertized by the function documentation.
3608
d94d636f
GM
3609 * window.c (syms_of_window): Doc fix.
3610
3887b449
GM
3611 * sound.c (vox_configure): Set volume for left and right channel.
3612 (sound_cleanup): Return nil.
3613
efc8f57a
GM
3614 * xdisp.c (move_it_by_lines): Fix paren typo.
3615
9765b4a4
GM
3616 * xterm.c (x_load_font): Don't use the font's max_bounds for
3617 computing the height of the font. If max_bounds' ascent or
3618 descent are greater than the font's ascent or descent, this means
3619 glyphs overlap, which should be handled now by redisplay.
3620
6529ed87
GM
3621 * window.c (Veven_window_heights): New variable.
3622 (syms_of_window): DEFVAR_LISP it.
3623 (Fdisplay_buffer): Check Veven_window_heights before evening the
3624 window heights.
52283633 3625
0eb2ecde
MB
36262000-12-06 Miles Bader <miles@gnu.org>
3627
3628 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
3629 update `default-frame-alist' instead of setting no frame parameters.
3630
03d7a167
KH
36312000-12-06 Kenichi Handa <handa@etl.go.jp>
3632
3633 * composite.c (update_compositions): Fix typo (use the correct
3634 variable).
3635
5f8803c2
JR
36362000-12-05 Jason Rumney <jasonr@gnu.org>
3637
3638 * md5.h: Remove underscores from function declarations.
3639 (__attribute__, __alignof__) [!__GNUC__]: Define.
3640
3641 * md5.c: Delay include of md5.h until after namespace cleaning.
3642
c28a075b
JR
3643 * makefile.w32-in (fns.o): Depend on md5.h
3644 (md5.o): New target.
3645 (sunfns.o): Remove.
3646
3647 * makefile.nt: Likewise.
3648
ff3c7056
JR
36492000-12-05 Jason Rumney <jasonr@altavista.net>
3650
3651 * w32term.c (expose_area): Complete last change.
3652
0c21eeeb
KR
36532000-12-05 Ken Raeburn <raeburn@gnu.org>
3654
3655 * minibuf.c: Include intervals.h.
3656
f201d732
JR
36572000-12-05 Jason Rumney <jasonr@gnu.org>
3658
3659 * w32term.c (x_produce_glyphs): If a font for a component of
3660 a composition is not found, use 1 pixel dot ascent and 0 dot
3661 descent value to avoid displaying terribly tall empty boxes.
3662 (expose_area): Pass x-coordinate relative to the exposed
3663 area to x_draw_glyphs instead of a window-relative coordinate.
3664
21999ab9
GM
36652000-12-05 Gerd Moellmann <gerd@gnu.org>
3666
4d2036e4
GM
3667 * xdisp.c (next_element_from_ellipsis): Save face before selective
3668 display in saved_face_id, and set face_before_selective_p.
3669 (reseat_1): Reset face_before_selective_p.
3670 (append_space, extend_face_to_end_of_line): If iterator's
3671 face_before_selective_p is set, use the face from saved_face_id.
3672 (extend_face_to_end_of_line): For tty frames, make sure to
3673 use the right face id when producing spaces at the end of
3674 the line.
3675
3676 * dispextern.h (struct it): Add face_before_selective_p.
3677
52be17cc
GM
3678 * keyboard.c (record_char): Don't record identical help-echo
3679 events in recent_keys.
3680
8a4f36cc
GM
3681 * xterm.c [USE_X_TOOLKIT]: Close the display.
3682 (xim_close_dpy): Handle case that the display has been closed.
3683
57d6e381
GM
3684 * xterm.c (x_destroy_window): Reset the frame's X window after
3685 destroying it.
3686
21999ab9
GM
3687 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
3688 variable window_width.
3689 (line_draw_cost): Fix code skipping over spaces at the end of the
3690 line when must_write_spaces is not set.
3691 (scrolling_window): Fix code inserting runs in list of all runs.
3692
91372bb7
KH
36932000-12-05 Kenichi Handa <handa@etl.go.jp>
3694
3695 * coding.c (setup_coding_system): Be sure to initialize
3696 coding->category_idx.
3697
6c083b4c
GM
36982000-12-04 Gerd Moellmann <gerd@gnu.org>
3699
0c68ce6f 3700 * xterm.c (PER_CHAR_METRIC): Removed because not used.
52283633 3701
6452929e
GM
3702 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
3703 area to x_draw_glyphs instead of a window-relative coordinate.
3704
d7f31e22
GM
3705 * fileio.c (auto_save_error): Add parameter ERROR. Show the
3706 error in the message.
3707
ae18aa3b
GM
3708 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
3709 timer after having read a key. It's not good for code reading
3710 several keys in a loop, like an input method.
3711
caa15ef7
GM
3712 * fileio.c (Finsert_file_contents): When VISIT is t, don't
3713 record undo information for format-decode.
3714
3715 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
3716 current buffer is read-only, not if it isn't.
3717
6c083b4c
GM
3718 * keyboard.c (record_char): Record `help-echo' input events
3719 in recent_keys only if they display some help. Don't record
3720 `help-echo' events as macro char.
3721
caa15ef7
GM
37222000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
3723
3724 * editfns.c (save_excursion_restore): Don't move point
3725 in another window if it is showing the wrong buffer.
3726 Avoid the call to Fwindow_live_p, for speed.
3727
5a13529b
KH
37282000-12-04 Kenichi Handa <handa@etl.go.jp>
3729
e225faa7
KH
3730 * xfaces.c (struct font_name): New member registry_priority.
3731 (split_font_name): Initialize the above member to zero.
3732 (concat_font_list): New function.
3733 (font_list): Include fonts of all alternative registries.
3734 (FONT_POINT_SIZE_QUANTUM): New macro.
3735 (better_font_p): Ignore point size difference less than
3736 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
3737
e89648b4
KH
3738 * xterm.c (x_produce_glyphs): If a font for a component of
3739 a composition is not found, use 1 pixel dot ascent and 0 dot
3740 descent value to avoid displaying terribly tall empty boxes.
3741
5a13529b
KH
3742 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
3743
d7935eb6
KR
37442000-12-03 Ken Raeburn <raeburn@gnu.org>
3745
3746 * coding.h (code_convert_string1): Declare.
3747
3748 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
3749
52283633 3750 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
d7935eb6 3751
0dd5e255
JR
37522000-12-02 Jason Rumney <jasonr@gnu.org>
3753
3754 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
3755 correctly for single byte character case.
3756 (w32_per_char_metric): Do not try to make any assumptions about
3757 the metrics of BDF fonts.
250cfece 3758 (x_estimate_mode_line_height): If `mode-line' face
52283633 3759 hasn't a font, use that of the frame, as drawing glyphs does.
250cfece
JR
3760 (note_mouse_highlight): Change the cursor shape on the vertical
3761 border between windows [not enabled].
3762
3763 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
3764
3765 * w32fns.c (Fx_create_frame): Reintroduce the call to
3766 face-set-after-frame-defaults.
3767 (Vx_window_horizontal_drag_shape): New variable.
3768 (syms_of_xfns): DEFVAR_LISP it.
3769 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
3770 enabled].
0dd5e255 3771
b5d8d2ca
GM
37722000-12-02 Simon Josefsson <simon@josefsson.org>
3773
3774 * fns.c (Fmd5): Use a different logic to decide the coding system
3775 to use.
3776
3777 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
3778
fbb87147
EZ
37792000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
3780
52283633 3781 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
fbb87147 3782
447e9da0
GM
37832000-12-01 Gerd Moellmann <gerd@gnu.org>
3784
7708ced0
GM
3785 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
3786 height for YNegative.
3787 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
3788 height; also see comment there.
3789
447e9da0
GM
3790 * window.c (coordinates_in_window): Handle computations for
3791 positions on the vertical bar and fringes differently for
3792 window-system frames. Consider some pixels near the vertical bar
3793 as on the bar if the frame doesn't have vertical scroll bars.
3794 Associate positions between mode or header lines with the
3795 right window, the left one.
3796
86d1db20
JR
37972000-12-01 Jason Rumney <jasonr@gnu.org>
3798
3799 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
3800
3801 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
3802 invalid frame.
3803
a1d58e5b
GM
38042000-12-01 Gerd Moellmann <gerd@gnu.org>
3805
52283633 3806 * window.c (struct saved_window): Add members orig_top and orig_height.
a1d58e5b
GM
3807 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
3808 (save_window_save, Fset_window_configuration): Save/restore
3809 window's orig_top and orig_height.
3810
89c609af
JR
38112000-12-01 Jason Rumney <jasonr@gnu.org>
3812
4d177746 3813 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
86d1db20 3814
89c609af
JR
3815 * w32fns.c (x_set_cursor_color): Fix last change.
3816
eccc05db
GM
38172000-11-30 Gerd Moellmann <gerd@gnu.org>
3818
31b6671b
GM
3819 * xdisp.c (echo_area_display): If cursor is in the echo area, make
3820 sure that the next redisplay displays the minibuffer, so that
3821 the cursor will be replaced with what the minibuffer wants.
3822
eccc05db
GM
3823 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
3824 #ifndef instead of using #if.
3825 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
3826 USE_TOOLKIT_SCROLL_BARS is defined.
3827
162de750
JR
38282000-11-30 Jason Rumney <jasonr@gnu.org>
3829
3830 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
3831 x_display_cursor.
3832
693c4692
GM
38332000-11-30 Gerd Moellmann <gerd@gnu.org>
3834
3835 * fns.c (Fmd5): Doc fix.
3836
b5d8d2ca 38372000-11-30 Simon Josefsson <simon@josefsson.org>
edfb795e
GM
3838
3839 * fns.c (Fmd5): New function.
3840 (syms_of_fns): Defsubr md5.
3841
3842 * Makefile.in (obj): Add md5.o
3843
b02cd40b
GM
38442000-11-30 Gerd Moellmann <gerd@gnu.org>
3845
edfb795e
GM
3846 * md5.h, md5.c: New files, taken from glibc.
3847
df3aedcf
GM
3848 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
3849
b02cd40b 3850 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
52283633 3851 hasn't a font, use that of the frame, as drawing glyphs does.
b02cd40b 3852
8b5176cd
SM
38532000-11-29 Stefan Monnier <monnier@cs.yale.edu>
3854
3855 * eval.c (Frun_hooks): Allow 0 arguments.
3856
346598f1
GM
38572000-11-29 Gerd Moellmann <gerd@gnu.org>
3858
f9396e03
GM
3859 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
3860 is over the menu bar widget, say it's not on the frame.
3861
4a967a9b
GM
3862 * xfns.c (Fx_create_frame): Reintroduce the call to
3863 face-set-after-frame-defaults.
3864
346598f1
GM
3865 * eval.c (Fsignal): Reset handling_signal.
3866
222456a1
JR
38672000-11-28 Jason Rumney <jasonr@gnu.org>
3868
3869 * w32menu.c (add_menu_item): Reset menu item text when changing
3870 type to radio button.
3871
8049ddc0
GM
38722000-11-28 Gerd Moellmann <gerd@gnu.org>
3873
346598f1 3874 * xselect.c: Update copyright.
f4f4ee4d 3875
bebe4a2c
GM
3876 * window.c (coordinates_in_window): If on a mode or header line,
3877 but sufficiently close to its start, return ``on vertical
3878 border''. This gives us a way to drag windows horizontally when
3879 using toolkit scroll bars.
3880
3881 * xterm.c (note_mouse_highlight): Change the cursor shape
3882 on the vertical border between windows.
3883
3884 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
3885
3886 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
3887 (syms_of_xfns): DEFVAR_LISP it.
3888 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
3889
8d2c2642
GM
3890 * textprop.c (text_read_only): New function.
3891 (verify_interval_modification): Use it instead of signaling
3892 `text-read-only'. This makes it easier to catch this error
52283633 3893 with a breakpoint.:
8d2c2642 3894
52283633 3895 * xdisp.c (forward_to_next_line_start): Check for newlines,
8049ddc0
GM
3896 not end of line, which includes CR.
3897
5a2bae6c
KH
38982000-11-28 Kenichi Handa <handa@etl.go.jp>
3899
3900 * coding.c (Ffind_coding_systems_region_internal): Be sure to
3901 include no-conversion.
3902
ae31f84d
JR
39032000-11-27 Jason Rumney <jasonr@gnu.org>
3904
3905 * w32fns.c (w32_load_system_font): Always mark font as double byte
3906 if codepage is unicode.
3907
67f1cf4c
GM
39082000-11-27 Gerd Moellmann <gerd@gnu.org>
3909
4a74d071 3910 * xdisp.c (forward_to_next_line_start): If already on a newline,
52283633 3911 just consume it to avoid unintended skipping over invisible text below.
4a74d071 3912
902ae620
GM
3913 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
3914 `vertical-line', `mode-line' and `header-line' events.
3915
3916 * xdisp.c (try_window_id): Avoid starting to display in the middle
67f1cf4c
GM
3917 of a character, a TAB for instance. This is easier than to set
3918 up the iterator exactly, and it's not a frequent case, so the
3919 additional effort wouldn't really pay off.
3920
c1e279c2
AC
39212000-11-26 Andrew Choi <akochoi@i-cable.com>
3922
67f1cf4c 3923 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
c1e279c2
AC
3924 init_window_once.
3925
a609568a
JR
39262000-11-25 Jason Rumney <jasonr@gnu.org>
3927
52283633
SM
3928 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
3929 Args to window_from_coordinates should be pixel coordinates.
48b21762 3930
a609568a
JR
3931 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
3932 redisplay handles them properly.
3933
a658d039
MB
39342000-11-25 Miles Bader <miles@gnu.org>
3935
3936 * indent.c (compute_motion): Keep pos_byte in sync with pos.
3937
d3416cca
JR
39382000-11-24 Jason Rumney <jasonr@gnu.org>
3939
3940 * w32.c (init_environment): Set LANG environment variable based on
3941 locale settings, if not set.
3942
3943 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
3944 making tool bar smaller. When clearing the frame, also
3945 clear current matrices. Clear frame when tool bar disappears.
3946 Don't use more lines for the tool-bar than is available.
3947 (x_change_window_heights): New function.
3948
ba193890
GM
39492000-11-24 Gerd Moellmann <gerd@gnu.org>
3950
2be8f184
GM
3951 * xdisp.c (init_from_display_pos): If POS says we're already after
3952 an overlay string ending at POS, make sure to pop the iterator
3953 because it will be in front of that overlay string. When POS is
3954 ZV, we've thereby also ``processed'' overlay strings at ZV.
3955
ba193890
GM
3956 * xfaces.c (lface_from_face_name): Function comment fix.
3957
1862a24e
MB
39582000-11-24 Miles Bader <miles@gnu.org>
3959
3960 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
3961 apply `mode-line-inverse-video' -- zero means force display using
3962 the default face, non-zero means display using the specialized face.
3963 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
3964
f07fa1b8
KH
39652000-11-23 Kenichi Handa <handa@etl.go.jp>
3966
3967 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
3968 hard coded `4'.
3969
2bcdf662
EZ
39702000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
3971
3972 * coding.c (decode_coding_emacs_mule): Fix the case of
3973 CODING_EOL_LF, which used uninitialized value of c.
3974
ba8299ff
SM
39752000-11-23 Stefan Monnier <monnier@cs.yale.edu>
3976
3977 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
3978
f4117c4d
GM
39792000-11-22 Gerd Moellmann <gerd@gnu.org>
3980
03e757c1
GM
3981 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
3982 buffer object.
3983
f4117c4d
GM
3984 * frame.h (struct frame): Replace desired_tool_bar_items,
3985 current_tool_bar_items, n_desired_tool_bar_items,
cc362d76 3986 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
f4117c4d
GM
3987
3988 * frame.c (make_frame): Change initialization of tool bar
3989 items accordingly.
3990
3991 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
cc362d76 3992 Change references to members deleted from struct frame to use the
f4117c4d
GM
3993 new ones.
3994
3995 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
52283633 3996 references to members deleted from struct frame to use the new ones.
f4117c4d 3997
52283633 3998 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
f4117c4d
GM
3999
4000 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
4001
4002 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
cc362d76 4003 (note_tool_bar_highlight): Change references to members deleted
f4117c4d
GM
4004 from struct frame to use the new ones.
4005
f8e2f3f2
MB
40062000-11-23 Miles Bader <miles@gnu.org>
4007
4008 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
4009 the face's inverse-video attribute, rather than overriding it.
4010
60e8e0a5
GM
40112000-11-22 Gerd Moellmann <gerd@gnu.org>
4012
4013 * xfns.c (x_set_tool_bar_lines): Clear internal border when
4014 making tool bar smaller.
4015
92dd1b29
DL
40162000-11-22 Dave Love <fx@gnu.org>
4017
4018 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
4019
e672fdce
MB
40202000-11-22 Miles Bader <miles@gnu.org>
4021
3a17d6cc
MB
4022 * keyboard.c (Vminibuffer_message_timeout): New variable.
4023 (command_loop_1): Use it to determine message timeout.
4024 (syms_of_keyboard): Initialize it.
4025
60e8e0a5 4026 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
e672fdce 4027
e9655d81
KH
40282000-11-22 Kenichi Handa <handa@etl.go.jp>
4029
4030 * sysdep.c: Move the code for declaring h_errno after #include
4031 <netdb.h>.
4032
77270fac
GM
40332000-11-21 Gerd Moellmann <gerd@gnu.org>
4034
cd913aae
GM
4035 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
4036 the menu bar when the tooltip is unmapped.
4037
77270fac
GM
4038 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
4039 sole visible buffer when we're currently in the mini-buffer, and
4040 give up if so.
52283633 4041
556635d6
JR
40422000-11-21 Jason Rumney <jasonr@gnu.org>
4043
4044 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
4045 put on the clipboard.
4046 (Fw32_get_clipboard_data): Compare data on clipboard with saved
4047 copy of what Emacs last put there. If they are the same, do not
52283633 4048 use the clipboard copy to avoid losing data due to coding conversions.
556635d6 4049
5b7bde64
MB
40502000-11-22 Miles Bader <miles@gnu.org>
4051
4052 * minibuf.c (Vminibuffer_prompt_properties): New variable.
4053 (syms_of_minibuf): Initialize it.
4054 (read_minibuf): Add properties from Vminibuffer_prompt_properties
4055 to prompt, don't make read-only.
4056
ff23e1dd
GM
40572000-11-21 Gerd Moellmann <gerd@gnu.org>
4058
52283633
SM
4059 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
4060 Add BEFORE/AFTER_POTENTIAL_GC.
3c64f287 4061
7aaf4388
GM
4062 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
4063
f5f47add 4064 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 4065
ff23e1dd
GM
4066 * term.c, cm.c: Don't try to include termcap.h; see comment there.
4067
37c35586
KH
40682000-11-21 Kenichi Handa <handa@etl.go.jp>
4069
4070 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
4071 ... #endif scope.
4072
ff9ab414
GM
40732000-11-20 Gerd Moellmann <gerd@gnu.org>
4074
52283633 4075 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
c51d2b5e
GM
4076 screen supports it.
4077
29a01b72
GM
4078 * s/gnu-linux.h: Don't use `#cpu'.
4079
09dfdf85
GM
4080 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
4081 not defined in mman.h.
4082
52283633 4083 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
ff9ab414
GM
4084 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
4085 and store an index in the XClientMessageEvent. Storing a
4086 Lisp_Object or pointer can fail on a 64 bit system, since X only
4087 transfers 32 bits.
52283633
SM
4088 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
4089
81459ac9
DL
40902000-11-20 Dave Love <fx@gnu.org>
4091
4092 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
4093
56c13ae6
GM
40942000-11-20 Gerd Moellmann <gerd@gnu.org>
4095
4096 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
4097
495a6df3
KH
40982000-11-20 Kenichi Handa <handa@etl.go.jp>
4099
2bcf3714
KH
4100 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
4101 by WIDTH.
4102
495a6df3
KH
4103 * alloc.c (make_string): Fix previous change. Be sure to make
4104 unibyte string correctly.
4105
6d950f4c
GM
41062000-11-19 Gerd Moellmann <gerd@gnu.org>
4107
39b39373
GM
4108 * window.c (Fwindow_list): Change parameter list to be XEmacs
4109 compatible.
4110 (window_list_1): New function.
4111 (window_loop): Use it instead of Fwindow_list.
4112
b95b34e5
GM
4113 * sysdep.c (emacs_ospeed): New variable.
4114 (toplevel): Don't declare ospeed extern.
4115 (init_baud_rate): Use emacs_ospeed instead of ospeed.
4116
4117 * termcap.c (ospeed): Remove.
4118 (tputs) [!emacs]: Remove unused code.
4119 (tgetent): Avoid a compiler warning.
4120
e83dc917
GM
4121 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
4122 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 4123 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
4124
4125 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
4126 removed.
4127 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
4128 Take the X display as additional argument.
4129 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
4130 `Widget' is a pointer type that's not easily stored in Lisp_Object
4131 form in a portable way.
52283633 4132
6d950f4c
GM
4133 * dispnew.c (update_text_area): Fix last change.
4134
e47306e6
GM
41352000-11-18 Gerd Moellmann <gerd@gnu.org>
4136
fb3cd89b
GM
4137 * xdisp.c: Use BINDING_STACK_SIZE throughout.
4138
4139 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
4140 clear current matrices.
4141
edaa9aed
GM
4142 * buffer.c (mmap_enlarge): Don't print a message on stderr
4143 if mapping new memory at the end of the existing region fails.
4144
e47306e6
GM
4145 * dispnew.c (update_text_area): Don't skip over equal glyphs
4146 when the last current glyph overlaps the glyph to its right.
4147
509633e3
MB
41482000-11-18 Miles Bader <miles@gnu.org>
4149
4150 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
4151 lines that *end* with "..." too (that's the most common case!).
4152
d392e9c5
GM
41532000-11-18 Gerd Moellmann <gerd@gnu.org>
4154
67988445
GM
4155 * xdisp.c (resize_mini_window): Temporarily change to the
4156 mini-window's buffer if necessary.
1bfdbe43 4157
d392e9c5
GM
4158 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
4159 the tooltip obscures less text under it.
4160
41612000-11-17 Gerd Moellmann <gerd@gnu.org>
4162
4163 * puresize.h (BASE_PURESIZE): Increase to 700000.
4164
92bb977f
JR
41652000-11-18 Jason Rumney <jasonr@gnu.org>
4166
4167 * w32term.c (w32_draw_bitmap): Use face to set colors.
4168
26fbf20b
DL
41692000-11-17 Dave Love <fx@gnu.org>
4170
4171 * lread.c (Fload): Fix #ifdef for pcc.
4172
100b593b
GM
41732000-11-17 Gerd Moellmann <gerd@gnu.org>
4174
4175 * xdisp.c (pos_visible_p): Compute the default character height
4176 differently.
4177
a288d0d1
GM
41782000-11-16 Gerd Moellmann <gerd@gnu.org>
4179
cac94de6 4180 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
52283633 4181 knowing the line's height; use the default font's height in that case.
cac94de6 4182
a288d0d1
GM
4183 * xfaces.c (weight_table): Add `demi' with the same meaning as
4184 `demibold'.
4185
981fb6f6
KH
41862000-11-16 Kenichi Handa <handa@etl.go.jp>
4187
2cca872d 4188 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
4189 (clear_glyph_row): Delete local static variable null_row.
4190
e5fa381b
JR
41912000-11-15 Jason Rumney <jasonr@gnu.org>
4192
4193 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
4194 (w32_alloc_lighter_color): Use new brightness calculations from
4195 xterm.c. Scale delta to be in the range expected by W32.
4196 (w32_draw_relief_rect): Use frame relief colors.
4197
8e42f043
GM
41982000-11-15 Gerd Moellmann <gerd@gnu.org>
4199
6d133d1f
GM
4200 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
4201 (Qinhibit_default_face_x_resources): New variable.
4202 (syms_of_frame): Initialize it.
4203 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
4204
4205 * xdisp.c (pos_visible_p): Improve function comment.
4206
4207 * lisp.h (BINDING_STACK_SIZE): New macro.
4208
8e42f043
GM
4209 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
4210 reading the directory if readdir returns null and errno is EAGAIN
4211 or EINTR.
4212
e8c87124
SM
42132000-11-14 Stefan Monnier <monnier@cs.yale.edu>
4214
4215 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
4216 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
4217 Set amount_to_scroll to max of dx and scroll_step so that
4218 scroll-conservatively doesn't defeat scroll-step>1.
4219 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
4220 scroll-conservatively for line-at-a-time scrolling.
4221
5f0c971d
GM
42222000-11-14 Gerd Moellmann <gerd@gnu.org>
4223
4224 * window.c (Fpos_visible_in_window_p): Call pos_visible with
4225 extra argument.
4226
4227 * xdisp.c (current_mode_line_height, current_header_line_height):
4228 New variables.
4229 (init_xdisp): Initialize them.
4230 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
4231 and use exact mode line heights if it is set.
4232
4233 * lisp.h (pos_visible_p): Change prototype.
4234
4235 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
4236 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
4237 and current_header_line_height first.
52283633
SM
4238 (current_mode_line_height, current_header_line_height):
4239 Declare extern.
5f0c971d 4240
d7361edf
MB
42412000-11-14 Miles Bader <miles@lsi.nec.co.jp>
4242
4243 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
4244 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
4245 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
4246
ee5e440a
MB
42472000-11-14 Miles Bader <miles@gnu.org>
4248
4249 * xterm.c (x_alloc_lighter_color): Include an additive component
4250 too for dark colors, because FACTOR isn't enough.
4251 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
4252 New macros.
4253
5ca020fc
GM
42542000-11-13 Gerd Moellmann <gerd@gnu.org>
4255
4256 * keyboard.c (show_help_echo): Call message3_nolog with number of
4257 bytes in the help string as 2nd parameter, instead of the number
4258 of characters.
4259
9d348294
MB
42602000-11-13 Miles Bader <miles@gnu.org>
4261
4262 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
4263 (Fload): Use new openp return protocol.
4264 Don't try to use Vload_source_file_function to load .elc files.
4265 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
4266 openp return protocol.
4267 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
4268
1729bb9a
KH
42692000-11-11 Kenichi Handa <handa@etl.go.jp>
4270
4e677396
KH
4271 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
4272
4273 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
4274 Defined these macros.
4275 (NLIST_STRUCT): Avoid re-defining it.
4276
1729bb9a
KH
4277 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
4278 -I/usr/contrib/X11R6/include.
4279 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
4280
a82fe213
JR
42812000-11-10 Jason Rumney <jasonr@gnu.org>
4282
4283 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
4284
4285 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
4286 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
4287
4288 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
4289 (Qw32_charset_vietnamese): New symbol.
4290 (xlfd_charset_of_font): New function.
4291 (w32_load_system_font): Use it.
4292 (x_to_w32_charset): Use Fassoc to find charset info. Special case
4293 when Vw32_charset_info_alist is nil to ensure default face always
4294 has font. Use Fcar and Fcdr for safety.
4295 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
4296 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
4297 pseudo-codepages for special cases.
4298 (w32_to_x_font): New parameter to allow charset portion to be
4299 specified where there is many to one mapping. Callers changed.
4300 (w32_list_fonts): Avoid listing fonts that won't display.
4301
52d89894
GM
43022000-11-10 Gerd Moellmann <gerd@gnu.org>
4303
4304 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
4305 (font_list_1): Renamed from font_list.
4306 (font_list): New function, trying alternative registries from
4307 Vface_alternative_font_registry_alist.
4308 (Finternal_set_alternative_font_registry_alist): New function.
4309 (syms_of_xfaces): Initialize and Staticpro
52283633
SM
4310 Vface_alternative_font_registry_alist.
4311 Defsubr Finternal_set_alternative_font_registry_alist.
52d89894 4312
651cd3da
KR
43132000-11-09 Ken Raeburn <raeburn@gnu.org>
4314
4315 * lisp.h (Flooking_at): Declare.
4316
388ac098
GM
43172000-11-09 Gerd Moellmann <gerd@gnu.org>
4318
778fbc46 4319 * dired.c (directory_files_internal): Fix a braino.
52283633 4320
388ac098
GM
4321 * dired.c (directory_files_internal): Add missing GCPRO's.
4322 Some cleanup.
4323
ecaedde1
GM
43242000-11-08 Gerd Moellmann <gerd@gnu.org>
4325
f7eb32aa
GM
4326 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
4327 (resize_mini_window): Return quickly if Vresize_mini_window is
4328 nil. Don't return if Vmax_mini_window_height is nil.
4329
4330 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
4331 (syms_of_xdisp): Initialize them.
4332 (resize_mini_window): Act according to the setting of
4333 Vresize_mini_window.
4334 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
4335
ecaedde1
GM
4336 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
4337 scroll bar widget after configuring it, so that it will appear at
4338 the right position from the start.
4339 (XTredeem_scroll_bar): Cleaned up.
4340
3747ef2c
KH
43412000-11-08 Kenichi Handa <handa@etl.go.jp>
4342
4343 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 4344 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
4345 division by two.
4346
4347 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
4348
03391420
DL
43492000-11-07 Dave Love <fx@gnu.org>
4350
7758f1c1 4351 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
4352
4353 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
4354
b5de343d
GM
43552000-11-07 Gerd Moellmann <gerd@gnu.org>
4356
acad3c0b
GM
4357 * window.c (Fset_window_configuration): Don't try to preserve
4358 point in the current buffer, if that buffer is displayed in more
4359 than one window.
4360
b5de343d
GM
4361 * xfaces.c (lookup_named_face): If default face isn't realized,
4362 try to realize it. Return -1 if not successful.
4363 (Fx_list_fonts): Handle case that face cannot be determined.
4364 (Fface_font): Likewise.
4365
cdb1fe49
GM
43662000-11-06 Gerd Moellmann <gerd@gnu.org>
4367
4368 * window.c (displayed_window_lines): Detect partially
4369 visible lines at the bottom correctly.
4370
d3a67486
SM
43712000-11-06 Stefan Monnier <monnier@cs.yale.edu>
4372
4373 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
4374 when ensuring we don't do visit in indirect buffer.
4375
ff8dd5d5
KH
43762000-11-06 Kenichi Handa <handa@etl.go.jp>
4377
4378 * composite.h (compose_chars_in_text): Add prototype.
4379
4380 * composite.c (Vcomposition_function_table): New variable.
4381 (Qcomposition_function_table): New variable.
4382 (run_composition_function): Call
4383 Vcompose_chars_after_function with three arguments.
4384 (compose_chars_in_text): New function.
4385 (syms_of_composite): Modified the doc-string of
4386 Vcompose_chars_after_function. Declare composition-function-table
4387 as a lisp variable, and initialize it.
4388
4389 * xfns.c (x_encode_text): Suppress producing escape sequences for
4390 composition.
4391
4392 * xselect.c: Include composite.h.
4393 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
4394
d1145f85
AI
43952000-11-05 Andrew Innes <andrewi@gnu.org>
4396
4397 * w32term.c (x_produce_glyphs): Fix typo in enum name.
4398
4399 * sysdep.c (read_input_waiting): Remove extraneous argument to
4400 read_socket_hook.
4401
4402 * w32fns.c (Fx_server_version): Include w32_build_number in the
4403 return list.
4404
4405 * w32heap.c (w32_build_number): New variable.
4406 (cache_system_info): Set it.
4407
4408 * w32heap.h (w32_build_number): Add extern.
4409
4410 * emacs.c (syms_of_emacs): Update docstring for
4411 system-configuration, to reflect the actual usage on MS-Windows.
4412
e85ee976
GM
44132000-10-31 Gerd Moellmann <gerd@gnu.org>
4414
26dcb81b
GM
4415 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
4416 process idle timers while waiting for another event.
4417
52283633 4418 * dispnew.c (update_frame_line): Handle case where spaces in
0a894bad
GM
4419 the default face are colored.
4420
e85ee976
GM
4421 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
4422 window height hasn't changed.
4423
01b220b6
JR
44242000-10-31 Jason Rumney <jasonr@gnu.org>
4425
4426 * w32term.c (x_produce_glyphs): Handle composite characters.
4427 (x_draw_glyph_string_foreground)
4428 (x_draw_composite_glyph_string_foreground): Restore old font.
4429
4e6b7204
MB
44302000-10-31 Miles Bader <miles@lsi.nec.co.jp>
4431
4432 * minibuf.c (read_minibuf): Reset the undo history just before
4433 starting the recursive-edit.
4434
d4358b37
GM
44352000-10-30 Gerd Moellmann <gerd@gnu.org>
4436
563f68f1
GM
4437 * xfaces.c (menu_face_change_count): New variable.
4438 (Finternal_set_lisp_face_attribute): Increment it for changes
4439 of the `menu' face.
4440 (realize_basic_faces): Reflect changes in the `menu' faces
4441 in menu bars.
4442
82e274d1
GM
4443 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
4444 dy obtained from the iterator's y-position after moving from
4445 scroll_margin_pos to PT; see comment there.
52283633 4446
0dbf9fd2
GM
4447 * xdisp.c (safe_eval_handler): Call add_to_log.
4448
906b3b14
GM
4449 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
4450 is not a symbol or string.
4451
d4358b37
GM
4452 * xdisp.c (echo_area_display): Don't perform a display update from
4453 inside redisplay. The update will happen anyway at the end of
4454 redisplay, and it can confuse redisplay (GC messages while
4455 redisplaying, for instance.)
4456
70c825df
SM
44572000-10-30 Stefan Monnier <monnier@cs.yale.edu>
4458
cf9b4b0b
SM
4459 * xrdb.c (x_load_resources): Use the class name in the defaults.
4460
70c825df
SM
4461 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
4462 (regex_compile): Catch bogus \(\1\).
4463
a1d34b1e
GM
44642000-10-30 Gerd Moellmann <gerd@gnu.org>
4465
cae71efe
GM
4466 * xterm.c (x_alloc_nearest_color): Fix last change to compare
4467 RGB values.
52283633 4468
35efe0a1
GM
4469 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
4470 we have a color cache, check that the cached color equals the
4471 allocated color. If not, clear the color cache.
4472
1d3baf74
GM
4473 * window.c (displayed_window_lines): Change buffers if necessary.
4474 Fix computation of displayed lines.
4475
a1d34b1e
GM
4476 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
4477 update_menu_bindings to DEFVAR_BOOL.
4478
70737ea9
KH
44792000-10-30 Kenichi Handa <handa@etl.go.jp>
4480
70c825df 4481 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 4482
fa0cb51d
KH
4483 * puresize.h (BASE_PURESIZE): Increase to 680000.
4484
70737ea9
KH
4485 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
4486
0e4c08e8
JR
44872000-10-29 Jason Rumney <jasonr@gnu.org>
4488
4489 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
4490
4491 * w32term.c (w32_bdf_per_char_metric): Negate descent.
4492 (w32_cache_char_metrics): Handle possibility that 'x' does not
4493 exist in a BDF font.
4494 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
4495
4496 * w32bdf.h (bdffont): Add nchars.
4497
4498 * w32bdf.c (set_bdf_font_info): Set it.
4499 (w32_BDF_TextOut): Swap byte order of double byte characters.
4500 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
4501
45b84006
EZ
45022000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
4503
4504 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
4505 don't override the colors in frame's param_alist, unless they are
4506 unspecified.
4507
4508 * term.c (reassert_line_highlight): If inverse_video is non-zero,
4509 reverse the effect of the highlight flag.
4510
caf9deee
KR
45112000-10-27 Ken Raeburn <raeburn@gnu.org>
4512
4513 * window.h (Fwindow_live_p): Declare.
4514
ae0b9b46
KR
4515 * undo.c (record_delete): Check that last_undo_buffer is really a
4516 buffer before applying XBUFFER to it.
4517
4518 * keymap.c (where_is_internal): Pass lisp object, not integer, to
4519 Faref.
4520
02067692
SM
45212000-10-27 Stefan Monnier <monnier@cs.yale.edu>
4522
4523 * lisp.h (KEYMAPP): New macro.
4524 (get_keymap): Remove.
4525 (get_keymap_1): Rename get_keymap.
4526
4527 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
4528
4529 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
4530
4531 * xmenu.c (single_submenu): Use KEYMAPP.
4532 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
4533 Use KEYMAPP rather than Fkeymapp.
4534
4535 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
4536
4537 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
4538 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
4539 Use KEYMAPP rather than Fkeymapp.
4540 (single_submenu): Use KEYMAPP.
4541 (w32_menu_show, w32_dialog_show): Use TRUE.
4542
4543 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
4544
4545 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
4546 (Fkeymapp): Use KEYMAPP.
4547 (get_keymap): Rename from get_keymap_1. Remove old def.
4548 Return t when autoload=0 and error=0 and the keymap needs autoloading.
4549 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
4550 (Fminor_mode_key_binding): Don't raise an error if the binding
4551 is not a keymap.
4552 (Fuse_global_map, Fuse_local_map): Allow autoloading.
4553 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
4554
4555 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
4556 Allow Vspecial_event_map to be autoloaded.
4557 (menu_bar_items): Fetch the keymap rather than using keymapp.
4558 (menu_bar_one_keymap): No need to follow func-indirect any more.
4559 (parse_menu_item): get_keymap_1 -> get_keymap.
4560 (tool_bar_items): Fetch the keymap rather than using keymapp.
4561 (read_key_sequence): Use KEYMAPP.
4562
4563 * intervals.c (get_local_map): Use get_keymap rather than following
4564 function-indirections explicitly.
4565
4566 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
4567
f9d80af3
JR
45682000-10-27 Jason Rumney <jasonr@gnu.org>
4569
4570 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
4571 point, as Windows has oversized fonts.
4572
4573 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
4574
a3ba27da
GM
45752000-10-27 Gerd Moellmann <gerd@gnu.org>
4576
4577 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
4578 (freehook, reallochook): Handle null pointer arguments.
4579 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
4580
aa3b80cc
SM
45812000-10-27 Stefan Monnier <monnier@cs.yale.edu>
4582
4583 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
4584 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
4585 Giving in to popular pressure to shut up the compiler with casts.
4586
e24e84cc
GM
45872000-10-27 Gerd Moellmann <gerd@gnu.org>
4588
4589 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
4590 signed value, and use a default value computed from the font's
4591 maximum descent.
4592
05ea7ef2
MB
45932000-10-27 Miles Bader <miles@lsi.nec.co.jp>
4594
4595 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
4596 that specify a negative underline position can still use underlines.
4597
4598 * window.c (Fpos_visible_in_window_p): Make POS default to
4599 WINDOW's point, not the current buffer's point.
4600
0b95284b
DL
46012000-10-26 Dave Love <fx@gnu.org>
4602
4603 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
4604 when it's necessary.
4605
6c5b90af
GM
46062000-10-26 Gerd Moellmann <gerd@gnu.org>
4607
8b6d9dc9
GM
4608 * window.c (size_window): Compute size difference from sum of old
4609 child window sizes instead of from parent's size.
4610
6bc92b2e
GM
4611 * xdisp.c (pos_visible_p): Change current buffer if necessary.
4612 Handle obscured lines at the top of the window.
4613
4614 * frame.c (Fdelete_frame): Doc fix. Move running the hook
4615 down after the last error condition check.
4616
6c5b90af
GM
4617 * frame.c (Fdelete_frame): Run delete-frame-hook.
4618
42f92d4d
KH
46192000-10-26 Kenichi Handa <handa@etl.go.jp>
4620
4621 * coding.c (decode_coding): Fix previous change (check also
4622 CODING_MODE_LAST_BLOCK).
4623
d97151cb
SM
46242000-10-25 Stefan Monnier <monnier@cs.yale.edu>
4625
e7efc503
SM
4626 * regex.c: More `unsigned char' -> `re_char' changes.
4627 Also change several `int' into `re_wchar_t'.
4628 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
4629 (PUSH_FAILURE_POINTER): Don't cast any more.
4630 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
4631 We want GCC to complain, since this piece of code makes
4632 re_match non-reentrant, which *should* be fixed.
4633 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
4634 (EXTEND_BUFFER): Use RETALLOC.
4635 (SET_LIST_BIT): Don't cast.
4636 (re_wchar_t): New type.
4637 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
4638 that those two functions will always properly return.
4639 (IMMEDIATE_QUIT_CHECK): Cast to void.
4640 (analyse_first): Use recursion rather than an explicit stack.
4641 (re_compile_fastmap): Can't fail anymore.
4642 (re_search_2): Don't check re_compile_fastmap for failure.
4643 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
4644 Now also sets the new value (passed in a new argument).
4645 (re_match_2_internal): Use it.
4646 Also, use a new var `reg' of type size_t when looping through regs
4647 rather than reuse the inappropriate `mcnt'.
4648
d97151cb
SM
4649 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
4650 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
4651 (where_is_internal): Renamed from Fwhere_is_internal.
4652 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
4653 (Fwhere_is_internal): New function wrapping where_is_internal.
4654 (where_is_internal_1): Handle the case where we're filling the cache.
4655 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
4656
d5789b65
MB
46572000-10-25 Miles Bader <miles@gnu.org>
4658
4659 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
4660
4ecda532
GM
46612000-10-25 Gerd Moellmann <gerd@gnu.org>
4662
4663 * window.c (pos_fully_visible_p): Removed.
4664 (Fpos_visible_in_window_p): Use pos_visible_p to determine
4665 if position is visible and/or fully visible.
4666
4667 * lisp.h (pos_visible_p): Add prototype.
4668
4669 * xdisp.c (pos_visible_p): New function.
4670
68c3a137
KH
46712000-10-25 Kenichi Handa <handa@etl.go.jp>
4672
4673 * process.c (send_process): If OBJECT is t, it means that the data
4674 is from C string, but we should encode it. Before calling
4675 setup_raw_text_coding_system, be sure to flush out data by the
4676 previous coding system.
4677
7ae1c032
MB
46782000-10-25 Miles Bader <miles@lsi.nec.co.jp>
4679
ff4dcd4b
MB
4680 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
4681 assignment of startpos to prev when startpos == pos.
4682
7ae1c032
MB
4683 * editfns.c (find_field): Set the field stickiness correctly from
4684 overlay fields. Use renamed `text_property_stickiness'.
4685 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 4686 Only check text properties, not overlays.
7ae1c032
MB
4687 * textprop.c (get_char_property_and_overlay): New function.
4688 (Fget_char_property): Use it.
4689 * intervals.h (get_char_property_and_overlay): Add declaration.
4690
49801145
SM
46912000-10-25 Stefan Monnier <monnier@cs.yale.edu>
4692
4693 * keymap.c: Use AREF, ASET and ASIZE macros.
4694 (Fmake_sparse_keymap): Docstring fix.
4695 (synkey): Remove.
4696 (shadow_lookup): Move up.
4697 Handle the case where lookup-key returns an integer.
4698 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
4699 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
4700 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
4701 Simplify/rewrite the keymap-finding code.
4702 Add check for command shadowing, using shadow_lookup.
4703
39e776cd
SM
47042000-10-24 Stefan Monnier <monnier@cs.yale.edu>
4705
4706 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
4707 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
4708 a symbol.
4709
2488aba5
AI
47102000-10-24 Andrew Innes <andrewi@gnu.org>
4711
4712 * dired.c (directory_files_internal_unwind): New function.
4713 (directory_files_internal): Use it to ensure closedir is called
4714 even if expand-file-name or file-attributes throw, eg. because of
4715 a user interrupt. Also enable immediate_quit while calling
4716 re_search, so that matching can be interrupted as well.
4717
b94fdf61
AI
47182000-10-24 Andrew Innes <andrewi@gnu.org>
4719
4720 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
4721 NT-Emacs only.
4722 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
4723 so that re_search functions only quit when callers expect them to.
4724
47252000-10-24 Kenichi Handa <handa@etl.go.jp>
4726
4727 * regex.c (regex_compile): Change the way of handling a range from
4728 a char less than 256 to a char not less than 256.
4729
1946f901
GM
47302000-10-24 Gerd Moellmann <gerd@gnu.org>
4731
7ae2f10f
GM
4732 * window.c (size_window): Prevent setting window's width or
4733 height to a negative value (esp. with XSETFASTINT).
4734
5dcab13e
GM
4735 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
4736 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
4737 (protect_malloc_state) [GC_MALLOC_CHECK &&
4738 GC_PROTECT_MALLOC_STATE]: New function.
4739 (PROTECT_MALLOC_STATE): New macro.
4740 (__malloc_initialize, morecore, _malloc_internal)
4741 (_free_internal) _realloc_internal): Use it to make _heapinfo
4742 read-only outside of gmalloc.
4743
63e1b552
GM
4744 * keymap.c: Update copyright.
4745
1946f901
GM
4746 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
4747 a symbol.
4748
4fa09beb
GM
47492000-10-24 Colin Walters <walters@cis.ohio-state.edu>
4750
4751 * filelock.c (unlock_all_files): Use unlock_file to expand each
4752 buffer's file_truename before trying remove its lock file.
4753
23afac01
EZ
47542000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
4755
4756 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
4757 or CRLF, decode EOLs.
4758
04448b95
KH
47592000-10-24 Kenichi Handa <handa@etl.go.jp>
4760
4761 * window.c (Fdisplay_buffer): Fix doc.
4762
3090a5a5
JR
47632000-10-23 Jason Rumney <jasonr@gnu.org>
4764
4765 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
4766 ASCII font of default fontset on Windows.
4767
4768 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
4769 xterm.c comment below).
4770
4771 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
4772
a83fee2c
GM
47732000-10-23 Gerd Moellmann <gerd@gnu.org>
4774
4775 * xterm.c (x_connection_closed): Reset handling_signal.
4776
52283633 4777 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
a83fee2c 4778
6ffdb539
MB
47792000-10-23 Miles Bader <miles@gnu.org>
4780
4781 * window.c (window_scroll_pixel_based, window_scroll_line_based):
4782 Pass nil for FULLY argument to Fpos_visible_in_window_p to
4783 maintain old behavior.
4784 * minibuf.c (Fminibuffer_complete): Likewise.
4785
7f1c969b
MB
47862000-10-23 Miles Bader <miles@lsi.nec.co.jp>
4787
4788 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
4789 that when a font can't be exactly centered, it errs up rather than
4790 down.
4791
23afac01 47922000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd 4793
52283633 4794 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
8ec118cd 4795
1a578e9b
AC
47962000-10-23 Andrew Choi <akochoi@i-cable.com>
4797
4798 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
4799
4800 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 4801 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
4802
4803 * emacs.c (main) [macintosh]: Call syms_of_textprop,
4804 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
4805 syms_of_search, x_term_init, and init_keyboard before calling
4806 init_window_once. Also, call syms_of_xmenu.
4807
4808 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
4809 default fontset to Monaco.
4810
4811 * frame.c [macintosh]: Include macterm.h. Remove declarations of
4812 NewMacWindow and DisposeMacWindow.
4813 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
4814 instead of calling NewMacWindow and setting fields of
4815 f->output_data.mac directly. Call init_frame_faces.
4816 (Fdelete_frame) [macintosh]: Remove unused code.
4817 (Fmodify_frame_parameters) [macintosh]: Call
4818 x_set_frame_parameters instead of mac_set_frame_parameters.
4819
4820 * frame.h [macintosh]: Define menu_bar_lines field in struct
4821 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
4822
4823 * keyboard.c [macintosh]: Include macterm.h.
4824 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
4825 and menu_bar_activate_event type events as for X and NT.
4826 (make_lispy_event) [macintosh]: Construct lisp events of type
4827 MENU_BAR_EVENT as for X and NT.
4828
4829 * sysdep.c [macintosh]: Remove declaration for sys_signal.
4830 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
4831 (sys_subshell) [macintosh]: Remove definition entirely.
4832 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
4833 Vwindow_system_version here. Remove initialization of
4834 Vx_bitmap_file_path.
4835 (read_input_waiting): Correct the number of parameters passed to
4836 read_socket_hook.
4837 Move all Macintosh functions to mac/mac.c.
4838
4839 * term.c [macintosh]: Include macterm.h.
4840
4841 * window.c [macintosh]: Include macterm.h.
4842
4843 * xdisp.c [macintosh]: Include macterm.h. Declare
4844 set_frame_menubar and pending_menu_activation.
4845 (echo_area_display) [macintosh]: Do not return if terminal frame
4846 is the selected frame.
4847 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
4848 Allow only the selected frame to set menu bar.
4849 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
4850 calling FRAME_EXTERNAL_MENU_BAR (f).
4851 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
4852
4853 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
4854 and check_x. Declare XCreateGC. Define x_create_gc and
4855 x_free_gc. Initialize font_sort_order.
4856 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
4857 but call x_list_fonts instead of w32_list_fonts.
4858 (Finternal_face_x_get_resource) [macintosh]: Do not call
4859 display_x_get_resource.
4860 (prepare_face_for_display) [macintosh]: Set xgcv.font.
4861 (realize_x_face) [macintosh]: Load the font if it is specified in
4862 ATTRS.
52283633 4863 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
1a578e9b 4864
1ffbabe3
SM
48652000-10-22 Stefan Monnier <monnier@cs.yale.edu>
4866
4867 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
4868 is nil: since we go to the end of submap anyway, we'd end up
4869 setting nil to nil.
4870 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
4871 doesn't obey autoload.
4872
bed43f1d
EZ
48732000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
4874
1ffbabe3 4875 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 4876
ea4233a7
JR
48772000-10-21 Jason Rumney <jasonr@gnu.org>
4878
4879 * w32term.c (w32_cache_char_metrics): Double check that font is
4880 really fixed pitch before trusting tmPitchAndFamily.
4881
f3d3c491
AI
48822000-10-21 Andrew Innes <andrewi@gnu.org>
4883
4884 * w32gui.h (w32_char_font_type): Move enum from w32term.c
4885
4886 * w32term.h: Extern decl for w32_cache_char_metrics.
4887
4888 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
4889
4890 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
4891 (w32_unload_font): Free per_char array if present.
4892
4893 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
4894 cached information in emulated XFontStruct to handle common cases
4895 quickly. Do not allocate XCharStruct for return.
4896 (w32_native_per_char_metric): New function.
4897 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
4898 allocating one.
4899 (x_produce_glyphs): Don't get an HDC. Change calls to
4900 w32_per_char_metric to match arg change above. Remove calls to
4901 free results.
4902 (w32_get_glyph_overhangs): Ditto.
4903 (w32_cache_char_metrics): New function.
4904
4905 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
4906 ($(BLD)/casefiddle.$(O)): Remove compile command.
4907 ($(BLD)/gmalloc.$(O)): Remove compile command.
52283633
SM
4908 ($(BLD)/dispnew.obj):
4909 ($(BLD)/keyboard.obj):
4910 ($(BLD)/w32inevt.obj):
4911 ($(BLD)/w32bdf.obj):
4912 ($(BLD)/alloc.obj):
4913 ($(BLD)/buffer.obj):
4914 ($(BLD)/editfns.obj):
4915 ($(BLD)/emacs.obj):
4916 ($(BLD)/fileio.obj):
4917 ($(BLD)/fns.obj):
4918 ($(BLD)/indent.obj):
4919 ($(BLD)/insdel.obj):
4920 ($(BLD)/intervals.obj):
4921 ($(BLD)/minibuf.obj):
4922 ($(BLD)/print.obj):
4923 ($(BLD)/scroll.obj):
4924 ($(BLD)/sysdep.obj):
4925 ($(BLD)/textprop.obj):
4926 ($(BLD)/widget.obj):
f3d3c491
AI
4927 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
4928 ($(BLD)/term.obj): Add dependency on dispextern.h.
4929
52283633
SM
4930 * makefile.nt ($(BLD)\dispnew.obj):
4931 ($(BLD)\keyboard.obj):
4932 ($(BLD)\w32inevt.obj):
4933 ($(BLD)\w32bdf.obj):
4934 ($(BLD)\alloc.obj):
4935 ($(BLD)\buffer.obj):
4936 ($(BLD)\editfns.obj):
4937 ($(BLD)\emacs.obj):
4938 ($(BLD)\fileio.obj):
4939 ($(BLD)\fns.obj):
4940 ($(BLD)\indent.obj):
4941 ($(BLD)\insdel.obj):
4942 ($(BLD)\intervals.obj):
4943 ($(BLD)\minibuf.obj):
4944 ($(BLD)\print.obj):
4945 ($(BLD)\scroll.obj):
4946 ($(BLD)\sysdep.obj):
4947 ($(BLD)\textprop.obj):
4948 ($(BLD)\widget.obj):
f3d3c491
AI
4949 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
4950 ($(BLD)\term.obj): Add dependency on dispextern.h
4951
18ad4821
EZ
49522000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
4953
4954 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
4955 with an additional argument of Qt.
4956
de54681a
MB
49572000-10-21 Miles Bader <miles@gnu.org>
4958
4959 * window.c (pos_fully_visible_in_window_p): New function.
4960 (Fpos_visible_in_window_p): Add FULLY argument.
4961 Use pos_fully_visible_in_window_p.
4962 (window_scroll_pixel_based, window_scroll_line_based): Update
4963 calls to Fpos_visible_in_window_p.
4964 * lisp.h (Fpos_visible_in_window_p): Update prototype
4965
13c844fb
GM
49662000-10-20 Gerd Moellmann <gerd@gnu.org>
4967
4968 * alloc.c (toplevel): Conditionalize compilation of mem_*
4969 functions differently.
52283633 4970
d9506268
JR
49712000-10-20 Jason Rumney <jasonr@gnu.org>
4972
4973 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
4974 mem_init where it used to be. mem_z etc not defined otherwise.
4975
8094989b
GM
49762000-10-20 Gerd Moellmann <gerd@gnu.org>
4977
4978 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
4979 GC_MALLOC_CHECK.
4980 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
4981 structure definition and related variabled to the top of the file.
4982 Include this code when GC_MALLOC_CHECK is defined.
4983 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
4984 register/unregister allocated region.
4985 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
4986 which isn't allocated.
4987 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
4988 something which is already in use.
4989 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
4990 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
4991 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
4992 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
4993
4994 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
4995 _malloc_internal instead of malloc.
4996 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
4997 of free.
4998
ea456eb4
AI
49992000-10-20 Andrew Innes <andrewi@gnu.org>
5000
5001 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
5002 Windows.
5003 (my_strftime) <macro>: Don't use macro arg list when redefining as
5004 _strftime_copytm.
5005 (my_strftime) <function>: Supply 0 as ut argument.
5006
e64c3a75
JR
50072000-10-19 Jason Rumney <jasonr@altavista.net>
5008
5009 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
5010 including dispextern.h, as it stops faces from working.
5011
5012 * w32fns.c (Fx_create_frame): Don't bother calling
5013 face-set-after-frame-default since the caller does it for us
5014 anyway. Clean up calls to x_get_arg to be consistent with X.
5015
5016 * w32term.c (x_produce_glyphs): Handle
5017 unibyte_display_via_language_environment correctly.
5018 (w32_draw_box_rect): Fix the calculation of width and height.
5019
5020 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
5021 as it has stopped working.
5022 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
5023 menu-bar.
5024
17401c97
GM
50252000-10-19 Gerd Moellmann <gerd@gnu.org>
5026
5027 * eval.c (skip_debugger): Prevent a compiler warning.
5028 (Fcondition_case): Likewise.
5029 (Fbacktrace_frame): Use a null interactive spec.
5030
773272d8
KH
50312000-10-19 Kenichi Handa <handa@etl.go.jp>
5032
5033 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
5034
a42943e9
GM
50352000-10-18 Gerd Moellmann <gerd@gnu.org>
5036
e50517d9
GM
5037 * strftime.c: Sync with glibc, file version 1.78.
5038 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
5039 should no longer be used according to ISO 8601.
5040
9035a35a
GM
5041 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
5042 no map for meta_prefix_char, don't try to use it as a keymap.
5043 Instead, if T_OK is non-zero, look up a default binding, if any,
5044 otherwise, if T_OK is zero, return nil.
5045
a42943e9
GM
5046 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
5047 (x_to_xcolors, png_load): Use x_query_color.
5048
52283633
SM
5049 * xterm.c (x_color_cells, x_query_colors, x_query_color):
5050 New functions.
a42943e9
GM
5051 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
5052 which can be slow.
5053 (x_copy_color, x_alloc_lighter_color): Likewise.
5054
5055 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
5056 (x_query_color, x_query_colors): Add prototype.
5057
5058 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
5059 check_string_bytes only if not noninteractive, increase count to 50.
5060
00de2987
MB
50612000-10-18 Miles Bader <miles@lsi.nec.co.jp>
5062
5063 * insdel.c (adjust_markers_for_delete): Handle before-insertion
5064 markers correctly.
5065
54918e2b
GM
50662000-10-17 Gerd Moellmann <gerd@gnu.org>
5067
1f0b3fd2
GM
5068 * alloc.c (pure_bytes_used): Renamed from pureptr.
5069 (ALIGN): New macro.
5070 (pure_alloc): New function.
5071 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
5072 Use it.
5073 (Fpurecopy): Use PURE_POINTER_P.
5074
68c5d1db
GM
5075 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
5076 PT has moved backward.
52283633 5077
9a038881
GM
5078 * xdisp.c (cursor_row_p): Take continued lines into account.
5079
361b097f
GM
5080 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
5081 string's size_byte.
5082 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
5083 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
5084 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
5085 string allocated.
5086
54918e2b
GM
5087 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
5088 of selective display off while searching for the next line start.
5089
03ed0806
KH
50902000-10-17 Kenichi Handa <handa@etl.go.jp>
5091
5092 * Makefile.in (term.o): Depend on dispextern.h.
5093
7e05cdaf
SM
50942000-10-16 Stefan Monnier <monnier@cs.yale.edu>
5095
5096 * keymap.c (keymap_memberp): Ensure that nil is not a member.
5097
a6801fd1
GM
50982000-10-16 Gerd Moellmann <gerd@gnu.org>
5099
483de32b
GM
5100 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
5101 the iterator at the beginning, so that they can be set later on,
5102 for instance in reseat_at_next_visible_line_start, without being
5103 overwritten.
5104
a6801fd1
GM
5105 * xfns.c (pbm_format): Add :foreground and :background keywords.
5106 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
52283633 5107 (xbm_load): Recognize foreground and background color specifications.
a6801fd1 5108
dbf1fcc1
EZ
51092000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
5110
5111 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
5112
52283633 5113 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
dbf1fcc1
EZ
5114
5115 * msdos.c (IT_set_face): Compare highlighted face with the default
5116 face, and invert colors if these faces' colors are identical.
5117 (Fmsdos_remember_default_colors): Don't swap foreground and
5118 background colors in initial_colors[].
5119 (IT_set_frame_parameters): Don't swap frame's foreground and
5120 background pixels. If ALIST includes "(reverse . t)", swap
5121 foreground-color and background-color properties in frame's
5122 param_alist. If the original frame's param_alist doesn't specify
5123 the colors, store unspecified-fg and unspecified-bg, reversed if
5124 required.
5125
5126 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
5127 the colors are unspecified and reversed, reverse fore- and back-
5128 ground in the returned value.
5129 (Fframe_parameter): Ditto.
5130
b41fe2c3 51312000-10-16 Gerd Moellmann <gerd@gnu.org>
52283633 5132
3a6b59d9
GM
5133 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
5134 get_last_unchanged_at_beg_row.
5135 (find_first_unchanged_at_end_row): Renamed from
5136 get_first_unchanged_at_end_row.
5137 (find_first_unchanged_at_end_row): Convert assertions to
5138 unconditional tests which abort. When looking for a row in
5139 unchanged text, don't go further back than first_text_row.
5140
b41fe2c3
GM
5141 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
5142 Don't add in the last line's height when deciding if the new
5143 position is below the scroll margin.
9d1af64f 5144
b41fe2c3 51452000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
5146
5147 * editfns.c (Fconstrain_to_field): Check carefully for field
5148 boundaries if either OLD_POS or NEW_POS has a non-nil field
5149 property, even if they're the same.
5150
c412cb7b
KH
51512000-10-16 Kenichi Handa <handa@etl.go.jp>
5152
5153 * xterm.c (x_draw_box_rect): Fix the calculation of width and
5154 height for XFillRectangle.
5155
5586f3eb
SM
51562000-10-15 Stefan Monnier <monnier@cs.yale.edu>
5157
5158 * syntax.c (Fstring_to_syntax): New function extracted from
5159 Fmodify_syntax_entry.
5160 (Fmodify_syntax_entry): Use it and document the ! and | fences.
5161 (skip_chars, Fforward_comment): Remove unused variables.
5162 (syms_of_syntax): Add defsubr for string-to-syntax.
5163 (describe_syntax): Add code for comment and string fences.
5164
db785038
SM
51652000-10-14 Stefan Monnier <monnier@cs.yale.edu>
5166
5167 * keymap.c (access_keymap): Add AUTOLOAD parameter.
5168 Do the meta->esc mapping. Call get_keyelt before returning.
5169 Start scanning from the second element (the first is always `keymap')
5170 to make it easier to detect when we reach a parent map.
5171 Handle the case of inheriting from a symbol whose function is a map.
5172 (Fkeymap_parent): Also handle the `inherit from symbol' case.
5173 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
5174 (get_keyelt, Flookup_key): Update call to access_keymap.
5175 Remove the meta->esc mappings.
5176 (define_as_prefix): Delete old disabled code.
5177 (menu_item_p): New function.
5178 (where_is_internal_1): Skip over the few remaining menu items.
5179 * lisp.h (access_keymap): Update prototype.
5180 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
5181 Update call to access_keymap.
5182 (follow_key, read_key_sequence): Update calls to access_keymap.
5183 Remove the meta->esc mappings.
5184
cafafe0b
GM
51852000-10-13 Gerd Moellmann <gerd@gnu.org>
5186
a2e2a7f6
GM
5187 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
5188 with additional argument.
5189
cafafe0b
GM
5190 * xdisp.c (cursor_row_p): New function.
5191 (try_cursor_movement, display_line): Use it.
52283633 5192
cafafe0b
GM
5193 * xdisp.c (append_space): Also save/restore iterator's current
5194 character and its length.
5195
5196 * xdisp.c (init_from_display_pos): Add an assertion.
5197 (handle_stop): Don't set iterator's add_overlay_start.
5198 (handle_invisible_prop): Likewise.
5199 (load_overlay_strings): If text under an overlay is invisible,
5200 take both before- and after-strings into account when the iterator
5201 is positioned either at the start or at the end of the overlay.
5202 (forward_to_next_line_start): Rewritten.
5203 (reseat_at_next_visible_line_start): Rewritten.
5204 (set_iterator_to_next): Add parameter RESEAT_P.
5205
5206 * dispextern.h (struct it): Remove member add_overlay_start.
5207 (set_iterator_to_next): Change prototype.
5208
c744452b
KH
52092000-10-13 Kenichi Handa <handa@etl.go.jp>
5210
5211 * coding.c (code_convert_region): Be sure to initialize
5212 coding->category_idx.
e4a3f4e1
KH
5213 (decode_coding_string): Set coding->src_multibyte and
5214 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
5215 (encode_coding_string): Set coding->src_multibyte and
5216 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 5217
321fd26f
SM
52182000-10-12 Stefan Monnier <monnier@cs.yale.edu>
5219
5220 * xfns.c (Fx_create_frame): Don't bother calling
5221 face-set-after-frame-default since the caller does it for us anyway.
5222
76832439
EZ
52232000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
5224
5225 * window.c (coordinates_in_window): Fix detection of vertical line
5226 on character terminals.
5227
2483cf58
GM
52282000-10-12 Gerd Moellmann <gerd@gnu.org>
5229
5230 * editfns.c (save_excursion_save): Additionally record the
5231 selected window.
5232 (save_excursion_restore): If buffer was visible in a window, and a
5233 different window was selected, and the old selected window is
5234 still live, restore point in that window.
5235
eb991b25
KH
52362000-10-12 Kenichi Handa <handa@etl.go.jp>
5237
8a0eba09
KH
5238 * xterm.c (x_produce_glyphs): Handle
5239 unibyte_display_via_language_environment correctly.
5240
20401fcc
KH
5241 * regex.c (regex_compile): Change the way of handling a range from
5242 unibyte char to multibyte char.
5243
5244 * syntax.c (skip_chars): Change the way of handling a range from
5245 unibyte char to multibyte char.
5246
eb991b25
KH
5247 * process.c (read_process_output): Cancel previous change.
5248
365dd325
EZ
52492000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
5250
c1b096cb
EZ
5251 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
5252
365dd325
EZ
5253 * charset.c (Ffind_charset_string): Doc fix.
5254 (Ffind_charset_region): Doc fix.
5255
eb483c2b
KH
52562000-10-11 Kenichi Handa <handa@mule.m17n.org>
5257
5258 * process.c (read_process_output): Fix previous change. Adjust
5259 multibyteness of text to insert in a buffer by
52283633 5260 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
eb483c2b 5261
b40bfb99
AS
52622000-10-10 Andreas Schwab <schwab@suse.de>
5263
5264 * alloc.c (mark_object): Remove all workarounds installed on
5265 1993-08-08.
5266
caff31d4
KH
52672000-10-10 Kenichi Handa <handa@etl.go.jp>
5268
52283633 5269 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
caff31d4
KH
5270 (base64_encode_1): Make it work for a text of multibyte form.
5271 (Fbase64_decode_region): Allocate sufficient memory for multibyte
5272 case. Don't call str_to_multibyte because base64_decode_1
5273 produces correct multibyte form for eight-bit codes.
52283633 5274 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
caff31d4
KH
5275 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
5276 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
5277 codes.
5278
5279 * charset.h (CHAR_STRING): Optimized for single byte characters.
5280
cba026ef
AS
52812000-10-09 Andreas Schwab <schwab@suse.de>
5282
5283 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
5284 -1 after socket is closed, to fall through to error processing.
5285
1e21fe48
EZ
52862000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
5287
5288 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 5289 variables. If ALIST includes foreground-color or
1e21fe48
EZ
5290 background-color, change also the colors of the default face for
5291 this frame.
5292
a640322e
EZ
52932000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
5294
5295 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
5296 them extern (they are defined on xfaces.c).
5297 (syms_of_msdos): Don't intern and don't staticpro
5298 Qbackground_color and Qforeground_color.
5299
a115794c
EZ
53002000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
5301
5302 * frame.c (Fframe_parameter): For non-windowed frames, if
5303 f->param_alist says foreground or background color is unspecified,
5304 call tty_color_name to return the color name computed from the
5305 frame's current colors.
5306
f5533b63
DL
53072000-10-06 Dave Love <fx@gnu.org>
5308
5309 * terminfo.c (ospeed): Don't declare.
5310
5311 * sysdep.c: Don't include string.h.
5312 (h_errno): Declare conditional also on TRY_AGAIN.
5313
5314 * charset.c (Ffind_charset_string): Doc fix.
5315
52283633 5316 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
f5533b63
DL
5317 (Fbase64_decode_region, Fbase64_decode_string): More explicit
5318 error messages.
5319
2b06561a
DL
53202000-10-05 Dave Love <fx@gnu.org>
5321
5322 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
5323 position like menu-bar.
5324
ca839c85
GM
53252000-10-05 Gerd Moellmann <gerd@gnu.org>
5326
5327 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
5328
5329 * xdisp.c (handle_single_display_prop): Use safe_call1.
5330 (safe_call): Renamed from call_function.
5331 (safe_call1): New function.
5332 (handle_fontified_prop): Use safe_call1 instead of call1.
5333 (safe_eval): Renamed from eval_form.
5334 (safe_eval_handler): Renamed from eval_handler.
5335 (handle_single_display_prop, display_mode_element): Use safe_eval
5336 instead of eval_form.
5337
5338 * xfaces.c (merge_face_heights): Use safe_call instead of
5339 call_function.
5340
5341 * keyboard.c (show_help_echo): Use safe_call instead of
5342 call_function; use safe_eval instead of eval_form.
5343
5344 * lisp.h (safe_call): Renamed from call_function.
5345 (safe_eval): Renamed from eval_form.
5346 (safe_call1): Add prototype.
5347
a3489ece
MB
53482000-10-05 Miles Bader <miles@lsi.nec.co.jp>
5349
5350 * xfns.c (image_ascent): Rearrange ascent calculation for the
5351 has-a-font case.
5352
35810b6f
SM
53532000-10-04 Stefan Monnier <monnier@cs.yale.edu>
5354
5355 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
5356 (where_is_internal_1): Don't bother ignoring menu-items any more.
5357
3dc78168
GM
53582000-10-04 Gerd Moellmann <gerd@gnu.org>
5359
5360 * keyboard.c (update_menu_bindings): New variable.
5361 (parse_menu_item): Use AREF. If update_menu_bindings
5362 is 0, don't update menu bindings.
5363 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
5364
1efc2bb9
EZ
53652000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
5366
5367 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
5368 to `mark_object'.
5369
3f679f55
SM
53702000-10-02 Stefan Monnier <monnier@cs.yale.edu>
5371
5372 * syntax.c (forw_comment): Match nestedness of ender/starter.
5373 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
5374 (prev_char_comstart_first): Remove.
5375 (back_comment): Check two-char comment markers more carefully
5376 to better handle overlapping cases like *//* or /* */* */ ...
5377 Match nestedness of ender/starter.
5378
2021ab61
DL
53792000-10-02 Dave Love <fx@gnu.org>
5380
5381 * config.in (HAVE_GAI_STRERROR): Add undef.
5382
5383 * process.c (Fopen_network_stream): Use it.
5384
5385 * m/alpha.h (NO_REMAP): Don't define.
5386
64e6cc18
GM
53872000-10-02 Gerd Moellmann <gerd@gnu.org>
5388
5389 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
5390 return with a string converted to an integer or vice versa when
5391 Vmocklisp_arguments is t.
5392 (Fsignal): Likewise. The function can return for `quit'.
5393 (struct gcpro): Declare member `var' to point to a volatile
5394 Lisp_Object.
5395
5396 * eval.c (error): Prevent compiler warning.
5397
b1904cd9
SM
53982000-09-30 Stefan Monnier <monnier@cs.yale.edu>
5399
5400 * keymap.c (keymap_memberp): New function.
5401 (Fset_keymap_parent): Use it.
5402 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
5403 Use keymap_memberp to avoid creating cycles.
5404 (access_keymap): Use KEYMAPP.
5405
71c9ec51
GM
54062000-09-30 Gerd Moellmann <gerd@gnu.org>
5407
5408 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
5409 gai_strerror. Make sure xerrno is set if connect fails. Improve
5410 error recovery.
71c9ec51 5411
c70c6b58
JR
54122000-09-29 Jason Rumney <jasonr@gnu.org>
5413
5414 * w32term.c (w32_char_font_type, w32_encode_char)
5415 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
5416 (w32_bdf_per_char_metric): New function.
5417 (w32_per_char_metric): Use it.
5418 (x_draw_glyph_string_background): Always draw background for BDF
5419 glyphs.
5420
5421 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
5422 GDI object which is a scarce resource.
5423
5424 * w32bdf.c (search_file_line): Fix skipping of whitespace.
5425 (get_quoted_string): Fix limit on memchr search.
5426 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
5427 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
5428 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
5429 (get_cached_font_char, cache_char_offset): Use macro
5430 BDF_CODEPOINT_RANGE_COVER_P.
5431 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
5432 (clear_cached_bitmap_slots): New function.
5433 (GET_HEX_VALUE): G-Z, g-z are not hex.
5434 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
5435 (get_bitmap_with_cache): Use new cache implementation.
5436 (create_offscreen_bitmap): New function.
5437 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
5438
5439 * w32term.c (x_produce_glyphs): If the distance from the current
5440 position to the next tab stop is less than a canonical character
5441 width, use the tab stop after that.
5442 (x_draw_glyphs): Handle case START and END are out of bounds more
5443 carefully.
5444 (x_clear_mouse_face): Block/unblock input.
5445 (x_display_and_set_cursor): Don't show a hollow box cursor for
5446 buffers whose cursor_type is nil.
5447
fe01239f
GM
54482000-09-29 Gerd Moellmann <gerd@gnu.org>
5449
52283633 5450 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
fe01239f
GM
5451
5452 * dispextern.h (updating_frame): Declare extern.
5453
e7c52f1f
AS
54542000-09-29 Andreas Schwab <schwab@suse.de>
5455
5456 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
5457
de6e1f7c
GM
54582000-09-29 Gerd Moellmann <gerd@gnu.org>
5459
25126faa
GM
5460 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
5461 use its function definition.
5462 (tool_bar_items): Likewise.
5463
de6e1f7c 5464 * lisp.h (fatal): Declare NO_RETURN.
52283633 5465
454ee39b
KH
54662000-09-29 Kenichi Handa <handa@etl.go.jp>
5467
5468 * keymap.c: Remove the line "#undef NULL".
5469
96301c5f
GM
54702000-09-28 Gerd Moellmann <gerd@gnu.org>
5471
52283633 5472 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
96301c5f 5473
efffeeb4
DL
54742000-09-28 Dave Love <fx@gnu.org>
5475
ecb8b666
DL
5476 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
5477
dc3cd20f
DL
5478 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
5479
5480 * .gdbinit (xreload): Note its need on GNU/Linux.
5481
efffeeb4
DL
5482 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
5483 r_alloc, r_alloc_free.
5484
8610d903
KH
54852000-09-28 Kenichi Handa <handa@etl.go.jp>
5486
5487 * syntax.c (skip_chars): Handle negation correctly.
5488
8901d1ac
GM
54892000-09-27 Gerd Moellmann <gerd@gnu.org>
5490
6f22f1ad
GM
5491 * xfaces.c (realize_default_face): Call set_lface_from_font_name
5492 with non-zero FORCE_P argument.
5493
52283633 5494 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
8901d1ac
GM
5495 Add assertions.
5496
5497 * xdisp.c (window_box_height): Add an assertion.
5498
5499 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
5500 tool-bar than is available.
5501 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
5502
36f1966f
DL
55032000-09-27 Dave Love <fx@gnu.org>
5504
efffeeb4 5505 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 5506
31d929e5
GM
55072000-09-26 Gerd Moellmann <gerd@gnu.org>
5508
c98863bf
GM
5509 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
5510 instead of BITS_PER_INT.
5511 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
5512 EMACS_UINT, respectively.
5513 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
5514
5515 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
5516
5517 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
5518
77072ab1
GM
5519 * window.c (freeze_window_starts): Construct last argument for
5520 foreach_window differently.
5521
5522 * xfns.c (x_decode_color): Don't return a Lisp_Object.
5523
5524 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
5525 EMACS_UINT instead of `int' and `unsigned int'.
5526 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
5527
5528 * frame.h (struct frame): Make the `nothing' member of union
5529 output_data an EMACS_INT.
5530
52283633 5531 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
31d929e5
GM
5532 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
5533 size in the sdata structure.
5534 (SDATA_NBYTES, SDATA_DATA): New macros.
5535 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
5536 differently for the different layout of the sdata structure.
5537 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
5538 in sdata.
5539 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
5540 Check that size recorded in the string size and size recorded in
5541 the sdata structure agree.
5542
3e60b029
DL
55432000-09-25 Dave Love <fx@gnu.org>
5544
5545 * buffer.c: Include stdio.h.
5546
5547 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
52283633 5548
3e60b029
DL
5549 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
5550
5551 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
52283633 5552 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
3e60b029
DL
5553 (__malloc_extra_blocks): Declare as __malloc_size_t.
5554
8ff16b4e
GM
55552000-09-25 Gerd Moellmann <gerd@gnu.org>
5556
755a2ccd
GM
5557 * alloc.c (mark_image): Use GC_NILP instead of NILP.
5558
d8b4516f
GM
5559 * keyboard.c (show_help_echo): Set help_echo_showing_p.
5560 (read_char): If help-echo is showing, preserve the echo area
5561 when redisplaying.
5562
5563 * xdisp.c (help_echo_showing_p): New variable.
5564 (set_message): Reset it to 0.
5565 (init_xdisp): Initialize help_echo_showing_p.
5566
5567 * dispextern.h (help_echo_showing_p): Declare extern.
5568
5569 * config.in: Fix typo in __GNUC_MINOR__.
5570
5571 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
5572
b11af2dd
GM
5573 * s/freebsd.h (POSIX_SIGNALS): Define.
5574
8ff16b4e
GM
5575 * xterm.c (x_clear_mouse_face): Block/unblock input.
5576
844eb643
DL
55772000-09-24 Dave Love <fx@gnu.org>
5578
5579 * fns.c (base64_encode_1): Fix last change.
5580
b30ab1b3
GM
55812000-09-22 Gerd Moellmann <gerd@gnu.org>
5582
5583 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
5584
5585 * xdisp.c (try_window_reusing_current_matrix): More fixes
5586 for the case window has a header-line.
5587
c6cbe5f0
DL
55882000-09-22 Dave Love <fx@gnu.org>
5589
4c7c1f3f
DL
5590 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
5591 a doc string.
5592
5593 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
5594
c6cbe5f0
DL
5595 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
5596
550a625e
GM
55972000-09-21 Gerd Moellmann <gerd@gnu.org>
5598
4c7c1f3f 5599 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
5600 for GCC >= 2.5.
5601
52283633
SM
5602 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
5603 Declare NO_RETURN.
fca99116 5604
80d26f99
GM
5605 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
5606 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
5607 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
5608 warnings.
52283633 5609
80d26f99
GM
5610 * marker.c (byte_char_debug_check): Return void.
5611
623a0aae
GM
5612 * xfns.c (Fx_create_frame): Set default frame parameter value
5613 for tool-bar-lines to 1.
5614
5615 * dispnew.c (scrolling_window): Compare y-positions of rows
5616 equal at the start. Some simplification.
5617
5618 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
5619 reused rows' y-position in the case window has a header-line, and
5620 new window start is greater than old window start.
5621
42ac0ae5
GM
5622 * process.c (process_sent_to): New variable.
5623 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
5624 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
5625 Declare more parameters volatile.
5626
550a625e
GM
5627 * lread.c (Vrecursive_load_depth_limit): New variable.
5628 (Fload): Check recursive loads whose recursion depth exceeds
5629 Vrecursive_load_depth_limit.
5630 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
5631
8320414c
GM
56322000-09-20 Gerd Moellmann <gerd@gnu.org>
5633
f46c275e
GM
5634 * fileio.c (Fread_file_name): Doc fix.
5635
5636 * editfns.c (Fmessage_or_box): Doc fix.
5637
5638 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
5639
b7e11c5b 5640 * xfns.c (xbm_scan): Allow C-style comments.
52283633 5641
8320414c
GM
5642 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
5643 symbols are specified, add color translations to the cache.
52283633 5644 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
8320414c
GM
5645 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
5646 xpm_cache_color.
5647 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
5648 structures to xpm_init_color_cache.
5649
da1608d9
GM
56502000-09-19 Gerd Moellmann <gerd@gnu.org>
5651
52283633 5652 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
da1608d9 5653
6badfa25
AI
56542000-09-19 Andrew Innes <andrewi@gnu.org>
5655
5656 * makefile.nt (bootstrap-emacs): Don't change directory.
5657
3a5f42bb
KH
56582000-09-19 Kenichi Handa <handa@etl.go.jp>
5659
1b7649bd
KH
5660 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
5661
3a5f42bb
KH
5662 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
5663 If output buffer is too small, signal an appropriated error.
5664
9f83cf0b
DL
56652000-09-18 Dave Love <fx@gnu.org>
5666
52283633 5667 * keyboard.c (menu_bar_items, tool_bar_items)
9f83cf0b
DL
5668 (current_active_maps): Remove redundant get_local_map call.
5669
28c7826c
GM
56702000-09-18 Gerd Moellmann <gerd@gnu.org>
5671
5cefa566
GM
5672 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
5673 cursor for buffers whose cursor_type is nil.
52283633 5674
6fed3546
GM
5675 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
5676 a feature to implement that is already implemented.
5677 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
5678 warnings.
5679
5680 * xfns.c (x_clear_image_1): New function.
5681 (x_clear_image): Use it.
52283633 5682 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
6fed3546 5683
05b1f851
GM
5684 * dispnew.c (update_window): Move test for invisible lines
5685 at the top to update_window_line.
5686 (update_window_line): Handle invisible lines here.
5687
f4779de9
GM
5688 * xfns.c (clear_image_cache): Clear current matrices of all
5689 frames sharing an image cache. Block input while freeing
5690 images. Fix timestamp comparison.
5691 (x_clear_image): Also free the mask.
5692
28c7826c
GM
5693 * xfns.c (lookup_image): Block input while loading the image so
5694 that we won't get interrupted in a state where the image isn't yet
5695 set up completely.
5696 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
5697 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
5698 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
52283633 5699 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
28c7826c 5700
b7412313
GM
57012000-09-16 Gerd Moellmann <gerd@gnu.org>
5702
5703 * dispnew.c (update_window): Make sure to make desired rows
5704 current even if they are completely invisible at the top
5705 of a window.
5706
47e351a3
GM
57072000-09-15 Gerd Moellmann <gerd@gnu.org>
5708
7f8f1edc
GM
5709 * xfns.c (lookup_image): Build mask before applying an algorithm.
5710 Recognize algorithm `disabled'.
5711 (cross_disabled_images): New variable.
5712 (COLOR_INTENSITY): New macro.
5713 (x_detect_edges): Use COLOR_INTENSITY.
5714 (x_disable_image): New function.
5715 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
5716
5717 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
5718 disabled state, don't apply an image transformation algorithm if
5719 the user specified an image for the disabled state. Use
28c7826c 5720 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
5721 user hasn't specified an image.
5722
ebb8f116
GM
5723 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
5724 allocation functions with the XPM lib.
5725 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
5726 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
5727 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
5728 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
52283633 5729 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
ebb8f116
GM
5730 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
5731 functions, if possible, because these handle color allocation
5732 failure more gracefully.
5733 (Fimage_mask_p): New function.
5734
47e351a3
GM
5735 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
5736 (Qedge_detection, Qheuristic): New symbols.
5737 (syms_of_xfns): Initialize new symbols.
5738 (lookup_image): Handle `:mask X', `:algorithm emboss', and
5739 `algorithm (edge-detection ...)'.
5740 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
5741 (tiff_format, gif_format, gs_format): Add `:mask'.
5742 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
5743 (GIF_MASK, GS_MASK): New enumerators.
5744 (x_laplace_read_row, x_laplace_write_row): Functions removed.
5745 (emboss_matrix, laplace_matrix): New variables.
5746 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
5747 (x_edge_detection): New functions.
5748 (x_laplace): Rewritten in terms of x_detect_edges.
5749 (x_build_heuristic_mask): If image has a mask, free it.
5750
fe83b953
AI
57512000-09-14 Andrew Innes <andrewi@gnu.org>
5752
5753 * makefile.w32-in: Revert to Unix line endings.
5754
3021e816
AI
57552000-09-14 Andrew Innes <andrewi@gnu.org>
5756
5757 * makefile.w32-in: Standardize indentation somewhat.
5758 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
5759 cater for differences between shells.
5760
5761 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
5762
2a32b5ea
GM
57632000-09-14 Gerd Moellmann <gerd@gnu.org>
5764
5765 * xterm.c (x_produce_glyphs): If the distance from the current
5766 position to the next tab stop is less than a canonical character
5767 width, use the tab stop after that.
5768
b4331e96
DL
57692000-09-14 Dave Love <fx@gnu.org>
5770
5771 * buffer.c (alloc_buffer_text): Fix xmalloc call.
5772
ef9e4345
GM
57732000-09-14 Gerd Moellmann <gerd@gnu.org>
5774
085536c2
GM
5775 * xdisp.c (handle_fontified_prop): While running fontification
5776 functions, bind `fontification-functions' and
5777 `after-change-functions' to nil.
5778
ef9e4345
GM
5779 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
5780 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
5781
5782 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
5783
5784 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
5785 USE_MMAP_FOR_BUFFERS.
5786
5787 * insdel.c (make_gap): Use enlarge_buffer_text.
5788
5789 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
5790 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
5791 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
5792 from former r_alloc_* functions in ralloc.c.
52283633 5793 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
ef9e4345
GM
5794 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
5795 (mmap_init) [REL_ALLOC_MMAP]: New function.
5796 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
5797 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
5798 BUFFER_FREE.
5799
5800 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
5801 (enlarge_buffer_text): Add prototype.
5802
5803 * ralloc.c: Remove everything having to do with the use of mmap.
5804
f8608968
GM
58052000-09-13 Gerd Moellmann <gerd@gnu.org>
5806
2a494b2d
GM
5807 * sound.c (Fplay_sound): Doc fix.
5808
8c907a56
GM
5809 * keyboard.c: Avoid some more compiler warnings.
5810 (parse_tool_bar_item): Ignore cached key bindings.
5811
f8608968
GM
5812 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
5813 and allocation of Lisp data.
5814
6ab70e9a
GM
58152000-09-12 Gerd Moellmann <gerd@gnu.org>
5816
d12d0a9b
GM
5817 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
5818 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
5819 defaults first.
5820
6ab70e9a
GM
5821 * lread.c (Fload): Put code checking for recursive loads in #if 0.
5822
63c36c3c
KH
58232000-09-12 Miyashita Hisashi <himi@meadowy.org>
5824
5825 * ccl.c: Comment fixed.
5826 (MAX_MAP_SET_LEVEL): Increased to 30.
5827 (PUSH_MAPPING_STACK): Enclose with do-while block.
5828 (POP_MAPPING_STACK): Likewise.
5829 (stack_idx_of_map_multiple): New variable.
5830 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
5831 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
52283633 5832 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
63c36c3c
KH
5833 (ccl_driver) <CCL_MapSingle>: Likewise.
5834 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
5835 with the case where looking up process reaches to the end of
5836 map-set, and call CCL programs as the above change.
5837
7ee3bd7b
GM
58382000-09-11 Gerd Moellmann <gerd@gnu.org>
5839
8ec8a5ec
GM
5840 * xfns.c (png_load, jpeg_load): Declare some variables volatile
5841 that might be clobbered by longjmp.
5842 (check_x_display_info, x_decode_color, create_frame_xic)
5843 (Fx_display_backing_store, Fx_display_visual_class)
52283633 5844 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
8ec8a5ec 5845
f74b0705
GM
5846 * lread.c (init_lread): Set Vloads_in_progress to nil.
5847 (Fload): Show list of recursively loaded files, when signaling an
5848 error.
5849
7ee3bd7b
GM
5850 * lread.c (Vloads_in_progress): New variable.
5851 (record_load_unwind): New function.
5852 (Fload): Check for recursive loads.
5853 (syms_of_lread): Initialize Vloads_in_progress.
5854 (read_integer, read1): Avoid some compiler warnings.
5855
5856 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
5857 compiler warnings.
5858
974e1e5b
MB
58592000-09-11 Miles Bader <miles@gnu.org>
5860
5861 * editfns.c (Fbuffer_string): Doc fix.
5862
9824c4e3
GM
58632000-09-10 Gerd Moellmann <gerd@gnu.org>
5864
5865 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
5866
6a72fdd1
KR
58672000-09-09 Ken Raeburn <raeburn@gnu.org>
5868
5869 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
5870 whether to include other header files.
5871
28e6fb66
GM
58722000-09-09 Gerd Moellmann <gerd@gnu.org>
5873
52283633 5874 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 5875 by Fmemq as a boolean.
28e6fb66 5876
7f8b6551
SM
58772000-09-08 Stefan Monnier <monnier@cs.yale.edu>
5878
5879 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
5880
a8710abf
GM
58812000-09-08 Gerd Moellmann <gerd@gnu.org>
5882
d1a02881
GM
5883 * ralloc.c (mmap_fd): Remove initializer which can make it
5884 read-only in a dumped Emacs.
5885 (mmap_fd_1): New variable.
5886 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
5887 restore it from there.
5888 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
5889 unconditionally so that mmap_fd can be initialized there.
5890 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
5891 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
5892 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
5893
c454aac1
GM
5894 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
5895
5896 * xdisp.c (dump_glyph_row): Fix printf format string.
52283633 5897 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
c454aac1 5898
fc653ef2
GM
5899 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
5900
3015eec0
GM
5901 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
5902 inheritance.
5903
bfe0ee88
GM
5904 * xdisp.c (try_window_id): When trying to locate cursor in
5905 unchanged rows at the top, handle the case that we can't find it.
5906
a8710abf
GM
5907 * xterm.c (x_draw_glyphs): Handle case START and END are out
5908 of bounds more carefully.
5909
6b7d4ae4
DL
59102000-09-08 Dave Love <fx@gnu.org>
5911
423193c5
DL
5912 * s/sol2.h (REL_ALLOC_MMAP): Define.
5913 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
5914
5915 * ralloc.c: Don't include string.h (redundant).
5916 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
5917 [!MAP_ANON]: Include fcntl.h.
5918 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
5919 (r_alloc, r_re_alloc, r_alloc_free)
5920 (mmap_enlarge, mmap_set_vars): Use it.
5921 (r_alloc_init_fd): New function.
5922 (__morecore) [SYSTEM_MALLOC]: Don't declare.
5923 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
5924 malloc type.
5925
5926 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
5927 Remove vm-limit.o.
5928
6b7d4ae4
DL
5929 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
5930 change to __NetBSD__.
5931
44d31981
KH
59322000-09-08 Kenichi Handa <handa@etl.go.jp>
5933
5934 * search.c (compile_pattern): Check the multibyteness of cached
5935 string and PATTERN.
5936
aad40737
MB
59372000-09-08 Miles Bader <miles@gnu.org>
5938
5939 * xfaces.c (default_face_vector): Function removed.
5940 (Finternal_merge_in_global_face): Restore old global/local
5941 attribute override order. Use inline loop instead of calling
5942 default_face_vector.
5943
91a211b5
GM
59442000-09-07 Gerd Moellmann <gerd@gnu.org>
5945
5946 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
5947 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
5948 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
5949 where necessary, in case POINTER_TYPE is `void'.
5950
03419440
EZ
59512000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
5952
5953 * frame.c (make_terminal_frame): Initialize frame foreground and
5954 background colors to unspecified, for the initial instance of an
5955 MSDOS frame.
5956
f46f845b
GM
59572000-09-07 Gerd Moellmann <gerd@gnu.org>
5958
24f76fbf
GM
5959 * ralloc.c (mmap_find): Fix overlap computation.
5960 (mmap_enlarge): Compute nbytes before trying to find an
5961 overlapping region.
5962
f46f845b
GM
5963 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
5964 instead of `!='.
5965
5966 * lread.c (syms_of_lread): Change value of regexp
5967 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
5968
5969 * xmenu.c (xdialog_show): When looking up the selection in
5970 menu_items, take `quote' boundaries into account; this corresponds
5971 to a nil ITEM in x-popup-dialog.
5972
3c014385
KH
59732000-09-07 Kenichi Handa <handa@etl.go.jp>
5974
fd6f711b
KH
5975 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
5976 not 0x81.
5977 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
5978
3c014385 5979 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
5980 encoding, not decoding. Fix the handling of latin-jisx0201.
5981 Check for the charset katakana-jisx0201 too.
3c014385 5982 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 5983 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 5984
0da3ecef
GM
59852000-09-07 Gerd Moellmann <gerd@gnu.org>
5986
ab0ee409
GM
5987 * xfaces.c (Vparam_value_alist): New variable.
5988 (syms_of_xfaces): Initialize it.
5989 (Finternal_set_lisp_face_attribute): Avoid more consing.
5990
5991 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
5992 specially.
5993 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
5994 (Qbackground_mode): New variable.
5995 (syms_of_frame_1): Initialize Qbackground_mode.
5996
5997 * lisp.h (Qdisplay): Declare extern.
1091dd67 5998
0da3ecef
GM
5999 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
6000 change face on all frames, and change the default for new frames.
6001
b14654b9
DL
60022000-09-07 Dave Love <fx@gnu.org>
6003
6004 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
6005
d24fd56f
KH
60062000-09-07 Kenichi Handa <handa@etl.go.jp>
6007
794f3670
KH
6008 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
6009
0fddd0dc
KH
6010 * charset.c: Include composite.h
6011 (lisp_string_width): New function.
6012 (Fstring_width): Call lisp_string_width instead of strwidth.
6013
6014 * Makefile.in (charset.o): Depends on composite.h.
6015
d24fd56f
KH
6016 * process.c (read_process_output): Before inserting the decoded
6017 text in the buffer, adjust the multibyteness.
6018
fa0b693c
GM
60192000-09-06 Gerd Moellmann <gerd@gnu.org>
6020
52283633 6021 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
73b77ee5
GM
6022 buffer's text buffer is null, map new memory.
6023
0a58f946
GM
6024 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
6025 POINTER_TYPE and size_t.
6026 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
6027 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
6028 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
6029 [REL_ALLOC_MMAP]: New macros.
6030 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
6031 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
6032 [REL_ALLOC_MMAP]: New functions.
6033
6034 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
6035 before and after unexec.
6036
6037 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
6038 text buffers if necessary.
6039
6040 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
6041 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
6042 in prototypes.
6043
fa0b693c
GM
6044 * config.in (HAVE_MMAP): Add #undef.
6045
877055f6
GM
60462000-09-05 Gerd Moellmann <gerd@gnu.org>
6047
08ba3862
GM
6048 * frame.c (Qdisplay_type): New variable.
6049 (syms_of_frame_1): Initialize it.
6050 (Fframe_parameter): New function that avoids consing.
6051 (syms_of_frame): Defsubr it.
6052
66ffe51c
GM
6053 * buffer.c (Fother_buffer): Consider buffers as invisible when
6054 they are displayed in a window on an invisible frame.
6055
877055f6
GM
6056 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
6057 get-largest-window always return nil.
6058
bb970e67
GM
60592000-09-04 Gerd Moellmann <gerd@gnu.org>
6060
6061 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
6062 variable; recognize Emacs 19 elc files.
6063
7a3d0e0e
MB
60642000-09-04 Miles Bader <miles@gnu.org>
6065
6066 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
6067 before initially popping up the menu, so the menu doesn't flash
52283633 6068 when the face settings are significantly different from the defaults.
7a3d0e0e 6069
14473664
SM
60702000-09-04 Stefan Monnier <monnier@cs.yale.edu>
6071
6072 * regex.c (WIDE_CHAR_SUPPORT): New macro.
6073 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
6074 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
6075 (BIT_UNIBYTE): Remove.
6076 (re_match_2_internal): Delete corresponding code and streamline the
6077 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
6078 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
6079 (re_wctype_t): New type.
6080 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
6081 (regex_compile): Use them and fix handling of overly long char classes.
6082
c1174479
AI
60832000-09-03 Andrew Innes <andrewi@gnu.org>
6084
f8803e97
AI
6085 * makefile.w32-in: Change to DOS line endings.
6086
c1174479
AI
6087 * s/ms-w32.h (ORDINARY_LINK): New define.
6088
6089 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
6090 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
6091
6092 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
6093 (distclean): Delete them here instead.
6094
44ef7cf6
AI
6095 * w32proc.c (compare_env): Convert to uppercase for comparison,
6096 not lowercase, to match how the native Windows shell works.
6097
49b3bd82
JR
60982000-09-03 Jason Rumney <jasonr@gnu.org>
6099
6100 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
6101 CVS changes the line-ends when checking in/out on DOS/Windows.
6102
6103 * makefile.nt (emacs): Do not change directory to run temacs, as
6104 the load-path is set relative to current directory.
6105
a3d35a39
MB
61062000-09-03 Miles Bader <miles@gnu.org>
6107
6108 * xterm.c (x_alloc_lighter_color_for_widget): New function.
6109
d276b0cf
GM
61102000-09-02 Gerd Moellmann <gerd@gnu.org>
6111
715e84c9
GM
6112 * xdisp.c (redisplay_mode_lines): New function.
6113 (display_mode_lines): Return number of mode lines displayed.
6114 (echo_area_display): Use redisplay_mode_lines to draw garbaged
6115 mode lines. Don't temporarily bind redisplay-dont-pause to t.
6116
8892f40b
GM
6117 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
6118 string.h and strings.h.
6119 (index) [HAVE_INDEX]: Add prototype.
6120
d276b0cf
GM
6121 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
6122 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
6123
6124 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
6125 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6126
38404229
GM
61272000-09-01 Gerd Moellmann <gerd@gnu.org>
6128
6129 * lread.c (read1): Accept `?' as symbol constituent, for
6130 compatiblity with XEmacs.
6131
c0f9ea08
SM
61322000-08-31 Stefan Monnier <monnier@cs.yale.edu>
6133
6134 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
6135 (struct re_pattern_buffer): Remove newline_anchor.
6136 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
6137 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
6138 (re_max_failures, fail_stack): Use size_t rather than unsigned.
6139 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
6140 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
6141 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
6142 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
6143 Get rid of references to newline_anchor.
6144 (regcomp): Allocate and precompute a fastmap.
6145
8c0f83fe
GM
61462000-08-31 Gerd Moellmann <gerd@gnu.org>
6147
6148 * lread.c (openp): GCPRO local variable `filename'.
6149
4bb91c68
SM
61502000-08-30 Stefan Monnier <monnier@cs.yale.edu>
6151
6152 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
6153
6154 * regex.c: Merge some changes from GNU libc. Add prototypes.
6155 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
6156 Use memcmp and memcpy instead of bcopy and bcmp.
6157 (init_syntax_once): Use ISALNUM.
6158 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
6159 (REG_UNSET_VALUE): Remove. Use NULL instead.
6160 (REG_UNSET, re_match_2_internal): Use NULL.
6161 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
6162 New macros.
6163 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
6164 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
6165 (regex_compile): In handle_interval, return an error rather than try to
6166 unfetch the interval if we can't find the closing brace.
6167 Obey the RE_NO_GNU_OPS syntax bit.
6168 (TOLOWER): New macro.
6169 (regcomp): Use it.
6170 (regexec): Allocate regs.start and regs.end as one block.
6171
5226a931
GM
61722000-08-30 Gerd Moellmann <gerd@gnu.org>
6173
868dd24b
GM
6174 * xdisp.c (echo_area_display): Check display_completed instead
6175 of calling detect_input_pending.
6176
6177 * dispnew.c (update_frame): Only set display_completed here; move
6178 the update_begin and update_end calls here from update_frame_1.
6179 (update_frame_1): Don't set display_completed here, don't call
6180 update_begin/update_end.
6181
5226a931
GM
6182 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
6183 instead of store_frame_param.
6184
2a8bd25f
GM
61852000-08-29 Gerd Moellmann <gerd@gnu.org>
6186
6187 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
6188 desired window matrix hasn't been displayed, use the current row
6189 instead. Make sure that only those frame rows are updated for
6190 which there exists a corresponding enabled desired row.
52283633 6191
ba3478d9
MB
61922000-08-29 Miles Bader <miles@gnu.org>
6193
6194 * xfaces.c (default_face_vector): New function.
6195 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
6196
87d0f685
GM
61972000-08-29 Gerd Moellmann <gerd@gnu.org>
6198
6199 * lread.c (openp): Prevent temporary string passed to
6200 Ffile_readable_p from being garbage collected.
6201
6fa86045
DL
62022000-08-28 Dave Love <fx@gnu.org>
6203
6204 * keymap.c (store_in_keymap): Add `static' to declaration.
6205
bb17930d
GM
62062000-08-28 Gerd Moellmann <gerd@gnu.org>
6207
6208 * emacs.c, callint.c, doc.c, editfns.c
6209 (toplevel) [HAVE_STRING_H]: Include string.h.
6210 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
6211 (index): Remove prototypes which might conflict with non-standard
6212 definitions of index/strchr.
6213
6214 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
6215 (rindex): Define only if !HAVE_RINDEX.
6216
6217 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
6218
6219 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
6220
87188200
MB
62212000-08-28 Miles Bader <miles@gnu.org>
6222
6223 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
6224 made inconsistent by a font-related attribute in FROM.
6225 (merge_face_inheritance): Add function comment.
6226
41a68aef
KH
62272000-08-28 Kenichi Handa <handa@etl.go.jp>
6228
6229 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
6230 the 4th arg (PREV_EVENT) Qt to suppress input method.
6231
f7c436c1
SM
62322000-08-27 Stefan Monnier <monnier@cs.yale.edu>
6233
0b32bf0e
SM
6234 * regex.c: Indent cpp directives and remove parens after `defined'.
6235 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
6236 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
6237 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
6238 (re_compile_pattern): Use size_t for length.
6239 (init_syntax_once): Move to a better place.
6240 * regex.h: Merge changes from GNU libc. Indent cpp directives.
6241 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
6242
f7c436c1
SM
6243 * syntax.c (back_comment): Detect cases where a comment-starter is
6244 actually inside another comment as in: /* a // b */ c // d \n.
6245 Make it clear that `comstart_pos' is unused for nested comments.
6246
6247 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
6248 (KEYMAPP): New macro.
6249 (Fkeymap_parent, Fset_keymap_parent): Use it.
6250 (fix_submap_inheritance): Mark it static.
6251 (define_as_prefix, describe_buffer_bindings, describe_command)
6252 (describe_translation, describe_map): Complete prototypes.
6253
6254 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
6255
6256 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
6257 to better match the key-lookup behavior.
6258
6288c62f
GM
62592000-08-27 Gerd Moellmann <gerd@gnu.org>
6260
6261 * xfaces.c (lface_fully_specified_p): Handle :inherit.
6262 (Finternal_set_lisp_face_attribute): Fix typo in error message.
6263
e931344e
EZ
62642000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
6265
6266 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
6267 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
6268 (xterm.o): Depend on coding.h
6269
d10dfeef
KH
62702000-08-26 Kenichi Handa <handa@etl.go.jp>
6271
6272 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
6273 the corresponding '#endif'.
6274
2d73e8d3
MB
62752000-08-26 Miles Bader <miles@gnu.org>
6276
6277 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
6278 * xfaces.c (QCinherit): New variable.
6279 (syms_of_xfaces): Initialize it.
6280 (LFACE_INHERIT): New macro.
6281 (Finternal_get_lisp_face_attribute)
52283633 6282 (merge_face_vector_with_property)
2d73e8d3
MB
6283 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
6284 (check_lface_attrs): Allow new types of face height. Check
6285 inherit attribute.
6286 (CYCLE_CHECK): New macro.
6287 (merge_face_inheritance): New function.
6288 (merge_face_vectors): Merge inherited faces too. Add F and
6289 CYCLE_CHECK arguments.
6290 (merge_face_vector_with_property, Finternal_merge_in_global_face)
6291 (lookup_named_face, lookup_derived_face, realize_named_face)
6292 (face_at_string_position, face_at_buffer_position): Supply
6293 new F and CYCLE_CHECK arguments to merge_face_vectors.
6294 (merge_face_heights): New function.
52283633 6295 (merge_face_vectors, merge_face_vector_with_property)
2d73e8d3
MB
6296 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
6297 handle relative face heights.
6298 (lface_same_font_attributes_p): Compare heights using EQ.
6299
6ce974d4
KH
63002000-08-26 Kenichi Handa <handa@etl.go.jp>
6301
6302 * charset.c (char_to_string): Check the character validity.
52283633 6303 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
6ce974d4 6304
dc1e502d
SM
63052000-08-25 Stefan Monnier <monnier@cs.yale.edu>
6306
6307 * regex.c (PUSH_FAILURE_COUNT): New macro.
6308 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
6309 Handle popping of a register's or a counter's data.
6310 (POP_FAILURE_POINT): Use the new name.
6311 (re_match_2_internal): Push counter data on the stack for succeed_n,
6312 jump_n and set_number_at and remove misleading dead code in succeed_n.
6313
bd9d0f3f
GM
63142000-08-25 Gerd Moellmann <gerd@gnu.org>
6315
6316 * xdisp.c (redisplay_internal): If considering all windows on all
6317 frames, update the display for each frame as soon as possible,
6318 instead of first building all desired matrices for all frames, and
6319 then updating them all.
6320 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
6321
aa5b8e15
GM
63222000-08-24 Gerd Moellmann <gerd@gnu.org>
6323
17494071
GM
6324 * bytecode.c (mark_byte_stack): Add a comment.
6325
52283633
SM
6326 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
6327 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
aa5b8e15
GM
6328 a graphical frame.
6329
c543db81
KH
63302000-08-24 Kenichi Handa <handa@etl.go.jp>
6331
d246d5f5
KH
6332 * minibuf.c (do_completion): Always use compare-string, not
6333 string-equal because the latter doesn't pay attention to
6334 multibyteness of strings.
6335
c543db81
KH
6336 * process.c (create_process): Don't setup raw-text coding here.
6337 (Fopen_network_stream): Don't set coding->src_multibyte and
6338 coding->dst_multibyte here.
6339 (read_process_output): For process filter, return unibyte string
6340 if default-enable-multibyte-characters is nil.
6341 (send_process): If OBJECT is multibyte text, be sure to encoded it
6342 by the specified coding system for the process. Otherwise, setup
6343 raw-text coding.
52283633 6344 (init_process): Don't initialize default-process-coding-system here.
c543db81 6345
9b47cfe0
EZ
63462000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
6347
6348 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
6349 <scroll-down-aggressively>: Likewise.
6350
f5a36960
KH
63512000-08-23 Kenichi Handa <handa@etl.go.jp>
6352
6353 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
6354 zero. Set coding->produced_char correctly.
6355
69a7ffa7
AI
63562000-08-22 Andrew Innes <andrewi@gnu.org>
6357
6358 * makefile.w32-in: New file.
6359
6360 * unexw32.c (unexec): Ignore old_name, and use the actual location
6361 of the current executable instead. Base new_name on this.
6362
6363 * w32proc.c (create_child): Remove reference to security
6364 descriptor, which isn't needed and doesn't compile with mingw32.
6365
6366 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6367 up dllimport attributes.
6368 (x_update_window_end): Update prototype.
6369
6370 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
6371 extern, which screws up dllimport attributes.
6372
6373 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6374 up dllimport attributes.
6375
6376 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
6377 screws up dllimport attributes.
6378
6379 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6380 up dllimport attributes.
6381 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
6382 screws up dllimport attributes.
6383
6384 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6385 up dllimport attributes.
6386
6387 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
6388 screws up dllimport attributes.
6389
6390 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
6391 screws up dllimport attributes.
6392
6393 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6394 up dllimport attributes.
6395
6396 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
6397 unnecessary extern, which screws up dllimport attributes.
6398 (main): Ditto.
6399
6400 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6401 up dllimport attributes.
6402
6403 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
6404 unnecessary extern, which screws up dllimport attributes.
6405
6406 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
6407 screws up dllimport attributes.
6408
6409 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6410 up dllimport attributes.
6411
6412 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
6413
52283633
SM
6414 * w32bdf.c (search_file_line):
6415 (set_bdf_font_info):
6416 (seek_char):
6417 (w32_get_bdf_glyph):
69a7ffa7
AI
6418 (w32_BDF_to_x_font): Fix compile warnings.
6419
52283633 6420 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
69a7ffa7
AI
6421
6422 * w32select.c: Include keyboard.h before frame.h.
6423
6424 * w32fns.c (max): Define macro.
6425 (JOHAB_CHARSET): Define if not known.
6426 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
6427 (Fx_show_tip): Synch with X version.
6428
6429 * w32xfns.c: Include keyboard.h before frame.h.
6430
6431 * w32fns.c: Include keyboard.h before frame.h.
6432
6433 * w32term.c: Include keyboard.h before frame.h.
6434
6435 * fontset.c: Include keyboard.h before frame.h.
6436
6437 * w32inevt.c: Include keyboard.h before frame.h.
6438 (MOUSE_MOVED): Define if not known.
6439
6440 * minibuf.c: Include keyboard.h before frame.h.
6441
6442 * keyboard.c: Include keyboard.h before frame.h.
6443
6444 * indent.c: Include keyboard.h before frame.h.
6445
6446 * dispnew.c: Include keyboard.h before frame.h.
6447
6448 * buffer.c: Include keyboard.h before frame.h.
6449
6450 * alloc.c: Include keyboard.h before frame.h.
6451
6452 * print.c: Include keyboard.h before frame.h.
6453
6454 * process.c: Include keyboard.h before frame.h.
6455
6456 * scroll.c: Include keyboard.h before frame.h.
6457
6458 * sysdep.c: Include keyboard.h before frame.h.
6459
6460 * term.c: Include keyboard.h before frame.h.
6461
6462 * window.c: Include keyboard.h before frame.h.
6463
6464 * xdisp.c: Include keyboard.h before frame.h.
6465 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
6466
6467 * frame.c: Include keyboard.h before frame.h.
6468
6469 * w32heap.h: Undefine min, max.
6470
6471 * w32gui.h: Undefine min, max.
6472
6473 * unexw32.c: Change PUCHAR to PCHAR.
6474 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
52283633
SM
6475 (relocate_offset):
6476 (get_section_info):
69a7ffa7
AI
6477 (copy_executable_and_dump_data): Remove unnecessary static defs.
6478 (copy_executable_and_dump_data): Fix compile warnings.
6479
6480 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
6481
6482 * w32console.c (min): Define macro.
6483 (clear_frame, write_glyphs): Fix compile warning.
6484
52283633 6485 * w32proc.c (compare_env):
69a7ffa7
AI
6486 (find_child_console): Fix compile warning.
6487
6488 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
6489 sys_errlist instead of _sys_errlist.
6490 (get_emacs_configuration_options): New function.
6491
6492 * s/ms-w32.h (sys_nerr): Provide default definition.
6493 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
6494 name with _ prepended.
6495 (NSIG): Define if not known.
6496 (get_emacs_configuration): Provide extern declaration.
6497 (get_emacs_configuration_options): Provide extern declaration.
6498 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
6499
6500 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
52283633 6501 (map_w32_filename):
69a7ffa7
AI
6502 (read_unc_volume): Fix compile warning.
6503
6504 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
6505 definitions from being used.
6506
6507 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
6508
52283633 6509 * w32.c (unc_volume_file_attributes):
69a7ffa7
AI
6510 (open_unc_volume): Make arg const.
6511
6512 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
6513 (read_input_waiting): Remove excess parameter.
6514
6515 * w32.c (init_environment): Call _access.
6516 (check_windows_init_file): Call _close.
6517 (init_user_info): Call _putenv.
6518 (init_environment): Call _putenv and _strdup.
6519 (init_ntproc): Reset volume info cache on startup.
6520
6521 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
6522 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
6523 cannot override the CRT malloc.
6524
6525 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
6526 (LINK_FLAGS): Append to original value of LINK_FLAGS.
6527
6528 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
6529 unless we are linking with a static CRT.
6530 (RVA_TO_PTR): Cast result to unsigned char*.
6531
6532 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
6533 (add_volume_info): Use xstrdup.
6534
25060080
SM
65352000-08-22 Stefan Monnier <monnier@cs.yale.edu>
6536
6537 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
6538 (do_completion, Fminibuffer_complete_word): Use it.
6539 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
6540 var so it can take non-boolean values.
6541
6917e6bb
GM
65422000-08-21 Gerd Moellmann <gerd@gnu.org>
6543
acb7cc89 6544 * editfns.c (find_field): Formatting changes.
52283633 6545 (toplevel): Some old-style function forward declarations
acb7cc89
GM
6546 changed to prototypes, some new protypes added, some functions
6547 made static.
6548
6549 * lisp.h (set_time_zone_rule): Add prototype.
6550 (use_dialog_box): External declaration.
6551
0bbfdc25
GM
6552 * keyboard.c (gen_help_event): Add parameter SIZE.
6553 (kbd_buffer_events_waiting): Slightly rewritten.
6554 (clear_event): New function.
6555 (kbd_buffer_get_event): Use it, and clear the input_events of
6556 HELP_EVENTs.
6557 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
6558 don't fill the newly created array with nils.
6559 (toplevel): Convert some old-style function forward declarations
6560 to prototypes.
6561
6562 * keyboard.h (gen_help_event): Change prototype.
6563
6564 * xterm.c (XTread_socket): Change calls to gen_help_event.
6565
6566 * w32term.c (w32_read_socket): Change calls to gen_help_event.
6567
6917e6bb
GM
6568 * eval.c (Fmacroexpand): Doc fix.
6569
e5cd3d11
JR
65702000-08-20 Jason Rumney <jasonr@gnu.org>
6571
6572 * w32term.h (x_display_info_for_display): Remove as this function
6573 does not exist on W32.
6574
6575 * w32term.c (help_echo_window): New variable.
6576 (syms_of_w32term): staticpro it.
6577 (note_mode_line_highlight): Set it.
6578 (XTextExtents16): Removed as there is no equivalent on W32.
6579 (x_compute_glyph_string_overhangs): Incomplete body removed, as
6580 the X way of doing this will not work for W32.
6581 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
6582 (x_draw_image_foreground): Avoid drawing outside of the clip area
6583 when image doesn't have a mask.
6584 (note_mouse_highlight): Process overlays in the right order of
6585 priority. Set help_echo_window.
6586 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
6587 because that's more visible for large images.
6588
6589 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
6590 name to single_keymap_panes.
6591 (w32_menu_show): Set wv->title when dealing with titles.
6592 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
6593
6e69ab8c
MB
65942000-08-21 Miles Bader <miles@gnu.org>
6595
6596 * minibuf.c (do_completion): Try again if we rewrite the input
6597 string, but no completion was done, so that any completion message
6598 will be correct.
6599
511bd4eb
GM
66002000-08-20 Gerd Moellmann <gerd@gnu.org>
6601
6602 * xfaces.c (lface_equal_p): Compare strings differently.
6603 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
6604 (realize_tty_face): Use them.
6605 (syms_of_xfaces): Initialize new variables.
6606 (map_tty_color): New function, extracted from realize_tty_face.
6607 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
6608 foreground or background color, store the new color name in the
6609 realized face; previous code trying to do this had no effect.
6610 (realize_tty_face): Use map_tty_color.
6611 (Fclear_face_cache): Set face_change_count and ensure thorough
6612 redisplay.
6613
1433385f
GM
66142000-08-19 Gerd Moellmann <gerd@gnu.org>
6615
511bd4eb
GM
6616 * undo.c (record_first_change, record_marker_adjustment): Don't
6617 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 6618
419ac0a2
KH
66192000-08-18 Kenichi Handa <handa@etl.go.jp>
6620
6621 * coding.c (decode_coding_string): Set members consumed,
6622 consumed_char, produced, produced_char of *coding correctly. If
6623 decode_coding doesn't consume any byte, don't try anymore.
6624 (encode_coding_string): Likewise.
6625
7eb9e30d
GM
66262000-08-18 Gerd Moellmann <gerd@gnu.org>
6627
511bd4eb
GM
6628 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
6629 conditional have void type, for Standard C compilers.
7eb9e30d
GM
6630
6631 * xdisp.c (redisplay_internal): Compare windows for equality with
6632 EQ, instead of applying XWINDOW to something that might not
6633 be a window.
52283633 6634
dd34a735
KH
66352000-08-18 Kenichi Handa <handa@etl.go.jp>
6636
6637 * fontset.c (Finternal_char_font): Search only the selected frame
6638 for a window of the current buffer.
6639
385ff9e3
GM
66402000-08-18 Gerd Moellmann <gerd@gnu.org>
6641
511bd4eb 6642 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
6643 Lisp_Objects.
6644
385ff9e3
GM
6645 * keyboard.c (kbd_buffer_get_event): Handle the case that the
6646 second half of a HELP_EVENT is found at the start of kbd_buffer.
6647
d6abb4c7
MB
66482000-08-18 Miles Bader <miles@gnu.org>
6649
4618074a
MB
6650 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
6651
d6abb4c7
MB
6652 * editfns.c (save_restriction_save): Rewrite to use markers.
6653 (save_restriction_restore): Rewrite to understand new form of data
6654 saved by save_restriction_save.
6655 (Fsave_restriction): Remove cautionary note in doc-string.
6656
a7b28523
GM
66572000-08-17 Gerd Moellmann <gerd@gnu.org>
6658
6659 * fileio.c (build_annotations): Add a comment explaining the
6660 return value of format-annotate-function. Replace a spurious call
6661 to Flength with a CONSP test. Call format-annotate-function with
6662 a fifth arg specifying how many times the function is been called
6663 in a row, to let it choose temporary buffers appropriately.
6664
03c9ed77
DL
66652000-08-17 Dave Love <fx@gnu.org>
6666
6667 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
6668 declare make_temp_name twice.
6669
52283633 6670 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
03c9ed77
DL
6671 (unreadpure): Give it an arg.
6672
6673 * unexalpha.c: Prototype fatal_unexec, mark_x,
6674 update_dynamic_symbols. Declare unexec as void.
6675
6676 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
6677 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
6678
6679 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
52283633 6680 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
03c9ed77
DL
6681
6682 * alloca.c: Use #error.
6683 [POINTER_TYPE]: Use it.
6684
6685 * eval.c (Fdefvar): Doc fix.
6686
6687 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
6688 INITIALIZE_INTERVAL.
6689
6690 * buffer.h: Avoid DECLARE_INTERVALS.
6691
6692 * config.in: Add size_t.
6693
aae41d97
EZ
66942000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
6695
6696 * w16select.c (set_clipboard_data): If there's not enough memory
6697 to put text into clipboard, return 1, as Fw16_set_clipboard_data
6698 expects. In case of other failures, return 3.
6699 (system_error_msg): New error message.
6700 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
6701 system_error_msg.
6702
65aa5e85
GM
67032000-08-16 Gerd Moellmann <gerd@gnu.org>
6704
6705 * term.c (write_glyphs): Also turn off inverse video after turning
6706 off other appearances in case TS_exit_attribute_mode is not equal
6707 to TS_end_standout_mode.
6708 (insert_glyphs): Turn inverse video on/off for each run of glyphs
6709 with the same face.
6710 (turn_off_face): Reset standout_mode only if
6711 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
6712 is equal to TS_end_standout_mode.
6713
ece23901
KH
67142000-08-16 Kenichi Handa <handa@etl.go.jp>
6715
9d7bcb2e
KH
6716 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
6717 sequence at the end of the source block.
6718
ece23901
KH
6719 * ccl.c (Fccl_program_p): Docstring modified.
6720 (Fccl_execute): Likewise.
6721 (Fccl_execute_on_string): Likewise.
6722
5e30eaa2
EZ
67232000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
6724
6725 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
6726
290602fd
KH
67272000-08-16 Kenichi Handa <handa@etl.go.jp>
6728
6729 The following changes are mainly to fix bugs of
6730 encode/decode-coding-string failing if encoding/decoding return
6731 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
6732 variable conversion_buffer.
6733
6734 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
6735 decrement dst_end to avoid buffer overflow in the later call of
6736 string_as_multibyte
6737
6738 * coding.h (conversion_buffer_size, conversion_buffer)
6739 (get_conversion_buffer): Extern deleted.
6740
6741 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
6742 (conversion_buffer, conversion_buffer_size): Variables deleted.
6743 (get_conversion_buffer): Function deleted.
6744 (struct conversion_buffer): New structure.
6745 (MAX_ALLOCA): New macro.
6746 (allocate_conversion_buffer): New macro.
6747 (extend_conversion_buffer, free_conversion_buffer): New functions.
6748 (ccl_coding_driver): Set coding->result.
6749 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
6750 this is the last block of source.
6751 (encode_coding): Likewise. Handle the source block as the last
6752 one only when the whole source text is consumed.
6753 (decode_coding_string): Handle the case that the output buffer is
6754 too small to decode the whole source text. Use
6755 allocate_conversion_buffer, extend_conversion_buffer and
6756 free_conversion_buffer, not get_conversion_buffer.
6757 (encode_coding_string): Likewise.
6758 (init_coding): Function deleted.
52283633 6759 (init_coding_once): Delete code to initialize conversion_buffer_size.
290602fd
KH
6760
6761 * emacs.c (main): Don't call init_coding.
6762
52283633 6763 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
290602fd
KH
6764
6765 * term.c (write_glyphs): Use a locally declared conversion_buffer.
6766 (insert_glyphs): Likewise.
6767
6768 * w32console.c (write_glyphs): Use a locally declared
6769 conversion_buffer.
6770
b9f80d41
EZ
67712000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
6772
6773 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
6774 member of display_info is NULL.
6775
32dc52f7
GM
67762000-08-15 Gerd Moellmann <gerd@gnu.org>
6777
52283633 6778 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
58ed0d3b 6779
32dc52f7 6780 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 6781 appearances with capability `me'.
32dc52f7
GM
6782 (write_glyphs): Switch on inverse video before each face change.
6783
4eb22d33
DL
67842000-08-14 Dave Love <fx@gnu.org>
6785
6786 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
6787 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
6788 (lisp_free): Declare and make static.
6789
6790 * window.c: Fix embedded comment.
6791 (syms_of_window): Fix doc string.
6792
90cbf47e
GM
67932000-08-14 Gerd Moellmann <gerd@gnu.org>
6794
52283633 6795 * keymap.c (push_key_description): If C without modifiers is < 32,
90cbf47e
GM
6796 make sure to print `C-' before `M-', like in the manual.
6797
440fc135
GM
67982000-08-11 Gerd Moellmann <gerd@gnu.org>
6799
6800 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
6801 since they aren't relocated anymore.
52283633 6802 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
440fc135
GM
6803
6804 * xdisp.c (try_cursor_movement): Fix handling of cursor in
52283633 6805 partially visible line which is smaller than the window's height.
440fc135 6806
6e264fad
KH
68072000-08-11 Kenichi Handa <handa@etl.go.jp>
6808
6809 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
52283633 6810 the multibyte form of eight-bit-control characters.
6e264fad
KH
6811 (Fccl_execute_on_string): Initialize ccl->multibyte.
6812
6813 * ccl.h (struct ccl_program): New member multibyte.
6814
6815 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
6816
c371f69a
KH
68172000-08-11 Kenichi Handa <handa@etl.go.jp>
6818
6819 * regex.c (regex_compile) <normal_char>: Pay attention to
6820 multibyteness.
6821 (analyse_first) <exactn>: Setup fastmap correctly for
6822 eight-bit-control characters.
6823
68242000-08-11 Kenichi Handa <handa@etl.go.jp>
6825
52283633 6826 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
c371f69a
KH
6827
6828 * keyboard.c (make_lispy_event): Handle the new event type
6829 multibyte_char_keystroke.
6830
6831 * xterm.c: Include coding.h.
6832 (XTread_socket): Work around a bug of XmbLookupString. If the
6833 input is from XIM, decode it according to the current locale. In
6834 that case, generate multibyte_char_keystroke events.
6835
b8ddbe71
KH
68362000-08-11 Kenichi Handa <handa@etl.go.jp>
6837
6838 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
6839 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
6840
47589c8c
GM
68412000-08-10 Gerd Moellmann <gerd@gnu.org>
6842
6843 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
6844 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
6845 (move_it_in_display_line_to): Record iterator's ascent and descent
6846 before producing glyphs, and restore them when we know the glyph
6847 doesn't fit on the line.
6848 (move_it_to): Restructured so that it's easier to debug. If
6849 moving to a vpos, and not moving to an x or character position,
6850 stop as soon as the specified vpos is reached; don't move further
6851 into that line because that might change the computed line height.
6852 (try_cursor_movement): New function, extracted from the cursor
6853 movement branch of redisplay_window. If ending on a partially
6854 visible line, don't try to scroll if the cursor line is taller
6855 than the window.
6856 (redisplay_window): Use try_cursor_movement.
6857
6858 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
6859 because that function doesn't cope with variable-height lines.
6860
6861 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
6862 box cursor because that's better visible for large images.
52283633 6863
c51bacd6
MB
68642000-08-10 Miles Bader <miles@gnu.org>
6865
6866 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
6867
bea56df7
GM
68682000-08-10 Gerd Moellmann <gerd@gnu.org>
6869
6870 * xdisp.c (Vmessages_buffer_name): New variable.
6871 (message_dolog): Use it.
6872 (syms_of_xdisp): Initialize it.
6873
99cd7364
EZ
68742000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
6875
52283633 6876 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
99cd7364
EZ
6877 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
6878 redundant now that keyboard.h is included.
6879
7d093d56
EZ
68802000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
6881
6882 * keyboard.c (kbd_buffer_events_waiting): New function.
6883
6884 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
6885
6886 * msdos.c: Include keyboard.h.
6887 (XMenuActivate): Empty no_event events from the event buffer. If
6888 no events are left after that, call clear_input_pending.
6889 (mouse_clear_clicks): New function, code moved from mouse_init.
6890 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
6891 mouse driver to ``forget'' any past clicks.
6892
6893 * Makefile.in (msdos.o): Depend on keyboard.h.
6894
41e757a6
GM
68952000-08-09 Gerd Moellmann <gerd@gnu.org>
6896
8e7bd231
GM
6897 * lisp.h (input_pending): External declaration.
6898
6899 * dispextern.h (Qredisplay_dont_pause): Declare extern.
52283633 6900
8e7bd231
GM
6901 * xdisp.c (echo_area_display): Display thoroughly if input is
6902 pending. Bind redisplay-dont-pause to t during the redisplay.
6903 in case input is pending.
6904
6905 * dispnew.c (Qredisplay_dont_pause): New variable.
6906 (syms_of_display): Initialize and staticpro it.
6907 (update_frame_1): Don't interrupt the display for pending input if
6908 redisplay_dont_pause is set.
52283633 6909
43028b7e
GM
6910 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
6911
41e757a6
GM
6912 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
6913
2f2174fa
KH
69142000-08-09 Miles Bader <miles@lsi.nec.co.jp>
6915
6916 * callproc.c (Fcall_process): Terminate the unwind-protect around
6917 the post-read-conversion of coding system.
6918
0a6fd67e
MB
6919 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
6920 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
6921 * buffer.h (overlays_at): Update prototype.
6922 * xdisp.c (next_overlay_change): Update call to overlays_at.
6923 * xfaces.c (face_at_buffer_position): Likewise.
6924 * textprop.c (Fget_char_property): Likewise.
6925 * xterm.c (note_mouse_highlight): Likewise.
6926
0c80756e
MB
6927 * minibuf.c (do_completion): Don't consider a simple change of
6928 case as `completion'.
6929
975f250a
KR
69302000-08-08 Ken Raeburn <raeburn@gnu.org>
6931
52283633 6932 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
b347b3fd
KR
6933 * undo.c (record_delete): Make sure last_point_position_buffer is
6934 a buffer before comparing pointers.
6935
6936 * coding.h (decode_coding_string): Declare.
6937
6938 * intervals.h (Fprevious_single_char_property_change): Declare.
6939
6940 * textprop.c (Fprevious_single_char_property_change): Don't do
6941 arithmetic directly on lisp objects.
6942
52283633 6943 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
b347b3fd
KR
6944
6945 * keyboard.h (menu_item_eval_property): Declare.
6946
6947 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
6948 reuse as buffer name, instead of recreating (and discarding) every
6949 time a message is logged.
6950 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
6951 (current_message_1, truncate_message_1, set_message_1)
6952 (display_echo_area_1, resize_mini_window_1): Signatures changed.
6953 (current_message, truncate_echo_area, display_echo_area)
6954 (resize_echo_area_axactly): Changed calls.
b347b3fd 6955
975f250a 6956 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 6957 Lisp object.
975f250a 6958 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 6959 must be an integer, not a Lisp object.
975f250a 6960
46dc9912
KH
69612000-08-08 Kenichi Handa <handa@etl.go.jp>
6962
6963 * charset.c (Fchar_width): Doc fix.
6964
9f6d1a6c
GM
69652000-08-08 Gerd Moellmann <gerd@gnu.org>
6966
6967 * charset.c (Fstring_width): Doc fix.
6968
ff3d9573
GM
69692000-08-07 Gerd Moellmann <gerd@gnu.org>
6970
41e757a6 6971 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
6972 line, clear ascent and descent members of the iterator structure;
6973 the height of the continued line does not affect the height of the
6974 continuation line.
6975 (make_cursor_line_fully_visible): Do nothing if cursor is on a
6976 line taller than the window.
6977 (redisplay_window) <forced window start>: Handle case that the
6978 middle of the window is not found in any row.
6979 (dump_glyph_row): Show more information.
6980 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
6981 first text line in a glyph matrix.
6982
6983 * xterm.c (x_draw_image_foreground): Avoid drawing outside
6984 of the clip area when image doesn't have a mask.
6985
70fc58b3
GM
6986 * fns.c (sweep_weak_table): Fix survival conditions for
6987 key-or-value and key-and-value weakness.
6988
6989 * .gdbinit (xhashtable): New command.
6990
ac0e96ee
GM
6991 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
6992 tables out of the list of all weak hash tables.
6993
ff3d9573
GM
6994 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
6995 a new buffer is created, make sure echo_area_buffer[] references
6996 the new buffer.
6997
e0d8827b
EZ
69982000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
6999
7000 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
7001 the doc string.
7002
c6f35378
KH
70032000-08-07 Kenichi Handa <handa@etl.go.jp>
7004
7005 * syntax.c (skip_chars): Fix previous change. Make the handling
7006 of unibyte string consistent with that of regex search.
7007
1fd4c450
GM
70082000-08-05 Gerd Moellmann <gerd@gnu.org>
7009
e49aa397
GM
7010 * xmenu.c (popup_get_selection): Use xfree instead of free.
7011
7012 * fileio.c (Finsert_file_contents): Use xfree instead of free.
7013
7014 * editfns.c (Ftranspose_regions): Use xfree instead of free.
7015
7016 * callproc.c (child_setup): Use xfree instead of free.
7017
7018 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
7019 instead of malloc.
7020 (run_mac_command, closedir): Use `xfree' instead of `free'.
7021
7022 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
7023
7024 * eval.c (error): Use xfree instead of free.
7025
1fd4c450
GM
7026 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
7027
7028 * fns.c: Replace `illegal' with `invalid'.
e49aa397 7029 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 7030
82d497fc
KH
70312000-08-05 Kenichi Handa <handa@etl.go.jp>
7032
7033 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
7034 conversion.
7035
59f953a2
NF
70362000-08-04 Noah Friedman <friedman@splode.com>
7037
7038 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
7039 docstring.
7040
688351f2
GM
70412000-08-04 Gerd Moellmann <gerd@gnu.org>
7042
7043 * syntax.c (skip_chars): Fix typo in error message.
7044
2dad51cc
AS
70452000-08-04 Andreas Schwab <schwab@suse.de>
7046
7047 * m/ia64.h: Moved from s/ia64.h.
7048
99bb2c60
KH
70492000-08-04 Kenichi Handa <handa@etl.go.jp>
7050
082a1df2
KH
7051 * process.c (read_process_output): Big simplification. Handle
7052 composition and post-read-conversion of coding system correctly.
7053 (send_process): Handle composition correctly.
7054
7055 * callproc.c (Fcall_process): Handle post-read-conversion of
7056 coding system if any.
7057
99bb2c60
KH
7058 * coding.c (decode_coding_iso2022): More strict check for handling
7059 single shifting.
082a1df2
KH
7060 (coding_restore_composition): Pay attention to the case that
7061 cmp_data is not set properly (because of invalid code in the
7062 source text).
7063 (run_pre_post_conversion_on_str): Include text properties in the
7064 resulting string.
7065 (decode_coding_string): Set members of coding correctly.
99bb2c60 7066
f4988be7
GM
70672000-08-03 Gerd Moellmann <gerd@gnu.org>
7068
7069 * s/ia64.h: New file.
7070
7071 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
7072 Use NULL instead of 0 at the end of variable argument list of
7073 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
7074 sizeof (int) < sizeof (void *).
7075
7076 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
7077 of variable argument lists of XtVaGetValues and XtVaSetValues.
7078
7079 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
7080 variable argument lists of XtVaGetValues and XtVaSetValues.
7081
ead53494
GM
70822000-08-02 Gerd Moellmann <gerd@gnu.org>
7083
7084 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
7085 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
7086
7087 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
7088 prototype.
7089
7090 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
7091 in call to Fsingle_key_description.
7092
7093 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
7094 Callers changed.
7095
70962000-08-02 Colin Walters <walters@cis.ohio-state.edu>
7097
7098 * window.c (display_buffer_reuse_frames): New variable.
7099 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
7100 frames displaying BUFFER.
52283633 7101 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
ead53494 7102
10b0f752
MB
71032000-08-01 Miles Bader <miles@gnu.org>
7104
7105 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
7106 when to constrain NEW_POS (they were pretty screwed up before).
7107
16425c4a
EZ
71082000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
7109
7110 * msdos.c (run_msdos_command): Save and restore the master
7111 environment, for the case that child_setup signals an error.
7112 When mirroring slashes in DOS shell commands, don't fail when
7113 argv[2] has embedded blanks.
da288c14
EZ
7114 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
7115 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
7116 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
7117
7118 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
7119 using alloca; free it after run_msdos_command returns.
7120
27f73852
DL
71212000-07-27 Dave Love <fx@gnu.org>
7122
52283633
SM
7123 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
7124 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
27f73852
DL
7125
7126 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
7127
c0261b5e
EZ
71282000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
7129
7130 * editfns.c (lisp_time_argument): Fix last change.
7131
b548072f
GM
71322000-07-27 Gerd Moellmann <gerd@gnu.org>
7133
3ab82477
GM
7134 * fns.c (Fdelete): Make it work on vectors and strings in addition
7135 to lists.
7136
b548072f
GM
7137 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
7138 (syms_of_fns): Initialize new variables.
52283633 7139 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
b548072f
GM
7140 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
7141 weakness, with t meaning the same as `key-and-value'.
7142
91ae8751
KH
71432000-07-27 Kenichi Handa <handa@etl.go.jp>
7144
7145 * coding.h (struct coding_system): Member safe_charset deleted.
7146
7147 * coding.c (Qsafe_charsets): This variable deleted.
52283633
SM
7148 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
7149 New variables.
91ae8751
KH
7150 (coding_safe_chars): New function.
7151 (CODING_SAFE_CHAR_P): New macro.
7152 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
52283633 7153 checking safe_charsets member of the coding system. Caller changed.
91ae8751
KH
7154 (detect_coding_iso2022): New local variable safe_chars.
7155 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
7156 safe_charsets member of the coding system.
7157 (decode_coding_iso2022): New local variable safe_chars.
7158 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
7159 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
7160 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
7161 (ENCODE_UNSAFE_CHARACTER): New macro.
7162 (encode_coding_iso2022): New local variable safe_chars. Check
7163 unsafe chars.
7164 (setup_coding_system): Delete the code to initialize
7165 coding->safe_charses
7166 (intersection, find_safe_codings): New functions.
7167 (Ffind_coding_systems_region_internal): New function.
7168 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
7169 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
7170 variable and initialize it.
7171
7172 * fns.c (char_table_ref_and_index): New function.
7173
7174 * lisp.h (char_table_ref_and_index): Add prototype.
7175
34a7a267
SS
71762000-07-26 Sam Steingold <sds@gnu.org>
7177
7178 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 7179 (Ffloat_time): New built-in Lisp function.
34a7a267 7180
a95cb10a
GM
71812000-07-26 Gerd Moellmann <gerd@gnu.org>
7182
3353ef5a
GM
7183 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
7184 for the character code.
7185
7186 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
7187 GNU/Linux.
7188
a95cb10a
GM
7189 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
7190 if called for a popup menu.
7191 (xmenu_show): Store help string in widget values.
7192
b4a12321
DL
71932000-07-26 Dave Love <fx@gnu.org>
7194
7195 * syswait.h: Move some definitions.
7196 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
7197 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
7198 perspicuous definitions.
7199 (WTERMSIG): Fix bit pattern used.
7200
13f5ad37
KH
72012000-07-26 Kenichi Handa <handa@etl.go.jp>
7202
7203 * print.c (print_object): If vector printing is truncated, print
7204 "..." to indicate it as well as the case of list printing.
7205
070fe99c
GM
72062000-07-25 Gerd Moellmann <gerd@gnu.org>
7207
969065c3
GM
7208 * xdisp.c (next_element_from_display_vector): Improve comments.
7209
7210 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
7211 for the character code, and the rest for the face id as in 20.x.
7212 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
7213
7214 * window.c (window_display_table): Cleaned up.
7215
070fe99c
GM
7216 * syntax.c (Fforward_word): Add last arg nil in call of
7217 Fconstrain_to_field.
7218
bad77ef7
EZ
72192000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
7220
969065c3 7221 * fileio.c (Frename_file) [DOS_NT]: If the file names are
52283633
SM
7222 identical but for the letter-case, don't call
7223 barf_or_query_if_file_exists.
bad77ef7 7224
c28da489
MB
72252000-07-25 Miles Bader <miles@gnu.org>
7226
7227 * editfns.c (find_field): Honor special `boundary' fields.
7228 (Qboundary): New variables.
7229 (syms_of_editfns): Initialize Qboundary.
7230 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
7231 Use scan_buffer instead of find_before_next_newline, because it
7232 allows us to detect the boundary case where there's a newline at
7233 the search limit.
7234 * lisp.h (Fconstrain_to_field): Update external declaration.
7235
e3c31fd5
GM
72362000-07-24 Gerd Moellmann <gerd@gnu.org>
7237
7238 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
7239 if that is nil.
c28da489 7240
c66c29a2
DL
72412000-07-24 Dave Love <fx@gnu.org>
7242
7243 * s/sunos4-0.h, s/sol2.h:
7244 (LIBS_TERMCAP): Move from m/sparc.h.
7245
7246 * m/sparc.h (TERMINFO): Moved to system files (probably only
7247 relevant for sunos4 judging by its vintage).
7248 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
7249 __arch64__.
7250
fbe0a958
EZ
72512000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
7252
7253 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
7254 name to single_keymap_panes.
7255
7d88e5c9
AS
72562000-07-24 Andreas Schwab <schwab@suse.de>
7257
7258 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
7259
e024b101
GM
72602000-07-24 Gerd Moellmann <gerd@gnu.org>
7261
7262 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
7263 parameters instead of using int parameters. Expect FN to accept
7264 EMACS_INT parameters.
7265 (display_echo_area, resize_echo_area_axactly, current_message)
7266 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
7267 with new argument list.
7268 (resize_mini_window_1): New callback function.
7269 (current_message_1, truncate_message_1, set_message_1): Change
52283633 7270 parameter lists to the new format expected by with_echo_area_buffer.
e024b101 7271
25c1a9ce
KH
72722000-07-24 Kenichi Handa <handa@etl.go.jp>
7273
7274 * fontset.c (fontset_ref): Remove INLINE declaration.
7275 (fontset_ref_via_base): Likewise.
7276 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
7277 to downcase.
7278
7f987ac0
EZ
72792000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
7280
7281 * msdos.c (IT_note_mouse_highlight): Process overlays in the
7282 correct order of priority. If help echo was found in an overlay,
7283 use that overlay as the object in which the help echo was found.
7284
e2db3069
MB
72852000-07-22 Miles Bader <miles@gnu.org>
7286
7287 * textprop.c (Fprevious_single_char_property_change): The initial
7288 property value should be from the position preceding POSITION, not
7289 following it.
7290
5e3203e4
EZ
72912000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
7292
7293 * coding.c (syms_of_coding): Doc fix for
7294 inhibit-iso-escape-detection.
7295
62145073
GM
72962000-07-21 Gerd Moellmann <gerd@gnu.org>
7297
c20aeb83
GM
7298 * xterm.c (note_mouse_highlight): Process overlays in the right
7299 order of priority.
34a7a267 7300
743934db
GM
7301 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
7302
7303 * xterm.c (note_mouse_highlight): If help-echo was found in an
52283633 7304 overlay, use that overlay as the object in which the help was found.
743934db 7305
d1dc7e43 7306 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 7307
62145073
GM
7308 * window.c (foreach_window): Instead of a fake variable argument
7309 list, take one USER_DATA argument.
7310 (foreach_window_1): Likewise, and call callback functions with two
7311 args, the window and USER_DATA.
7312 (struct check_window_data): New struct.
7313 (check_window_containing): Use it.
7314 (window_from_coordinates): Set up a struct check_window_data for
7315 foreach_window.
7316 (add_window_to_list, freeze_window_start): Change parameters
7317 according to new calling convention.
7318
7319 * window.h (foreach_window): Change prototype.
7320
7321 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
7322
73232000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
7324
7325 * xmenu.c (menu_help_callback): Call show_help_echo with
7326 additional arguments OBJECT and POS.
7327
11270583
KH
73282000-07-21 Kenichi Handa <handa@etl.go.jp>
7329
07b14857
KH
7330 * data.c (Faset): Allow storing any multibyte character in a
7331 string. Convert unibyte string to multibyte if necessary.
7332
11270583
KH
7333 * xfns.c (x_encode_text): New function.
7334 (x_set_name): Use x_encode_text.
7335 (x_set_title): Likewise.
7336
7337 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
7338
7339 * xterm.h (x_encode_text): Add prototype.
7340
bc75b4fd
DL
73412000-07-20 Dave Love <fx@gnu.org>
7342
7343 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
7344 xfree, not free.
7345
48c14970
EZ
73462000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
7347
7348 * msdos.c (help_echo_window): New variable.
7349 (syms_of_msdos): Initialize and staticpro it.
7350 (IT_note_mode_line_highlight): Set help_echo_window.
7351 (IT_note_mouse_highlight): Ditto.
7352 (dos_rawgetc): Store help_echo_window in the second event produced
7353 for HELP_EVENTs.
7354
7355 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
7356 Record the object that generated the help echo and the position of
7357 that object in help_echo_object and help_echo_pos. Record that
7358 some glyphs in a row are displayed in mouse-face.
7359 (IT_update_begin): Don't clear mouse highlight unless one of the
7360 enabled glyph rows is marked as being displayed in mouse-face.
7361 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
7362 and position recorded in help_echo_object and help_echo_pos to the
7363 event queue.
7364 (IT_menu_display): Accept a new argument PN: the pane number of
7365 the current menu pane. Record the pane number and the item
7366 number of the item which has associated help string.
7367 (XMenuActivate): Update the prototype for help_callback in
7368 function declaration. Call IT_menu_display with the current menu
7369 pane number as an additional argument. Call help_callback with
7370 two additional arguments: the pane number and the item number of
7371 the menu item associated with the help text.
7372 (help_echo_object, help_echo_pos): New variables.
7373 (syms_of_msdos): Initialize them and staticpro help_echo_object.
7374
7375 * msdos.h (XMenuActivate): Update prototype.
7376
4279296d
GM
73772000-07-19 Gerd Moellmann <gerd@gnu.org>
7378
47db06aa
GM
7379 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
7380 Add some more prototypes.
7381
7382 * xterm.c, xterm.h: Add some more prototypes.
7383
7384 * lisp.h (Fnext_single_char_property_change): Add prototype.
7385
7386 * dispnew.c (direct_output_for_insert): Remove confusing
7387 outer local variable mouse_face_overwritten_p.
7388 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
7389
4279296d
GM
7390 * alloc.c (allocate_string_data): Don't copy old string contents.
7391
670acd62
KH
73922000-07-19 Kenichi Handa <handa@etl.go.jp>
7393
7394 * coding.c (code_convert_region): Delete text properties before
7395 shrinking the conversion region.
7396
7cea38bc
GM
73972000-07-18 Gerd Moellmann <gerd@gnu.org>
7398
dc1cac59
GM
7399 * dispnew.c (update_text_area): Write the whole row if it
7400 has mouse-face in it.
7401
85a8aca9
GM
7402 * xfaces.c (face-alternative-font-family-alist): Remove
7403 DEFVAR_LISP; staticpro instead.
7404
34a7a267 7405 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
7406 new arguments.
7407
7408 * keyboard.c (show_help_echo): Add parameter WINDOW.
7409 (read_char): Call show_help_echo with window extracted from Lisp
7410 help event.
7411 (gen_help_event): Add parameter WINDOW.
7412
7413 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
7414
7415 * xterm.c (help_echo_window): New variable.
52283633 7416 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
7cea38bc
GM
7417 (XTread_socket): Pass help_echo_window to gen_help_event.
7418 (syms_of_xterm): Initialize and staticpro help_echo_window.
7419
f8276b77
DL
74202000-07-18 Dave Love <fx@gnu.org>
7421
52283633 7422 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
f8276b77 7423
088831a6
GM
74242000-07-18 Gerd Moellmann <gerd@gnu.org>
7425
3d6cd763
GM
7426 * alloc.c (allocate_string_data): If string had already data
7427 assigned, copy old contents to new string data.
7428
7429 * coding.c (syms_of_coding): Fix typo in spelling of variable
7430 `inhibit-iso-escape-detection'.
7431
088831a6
GM
7432 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
7433
7434 * Makefile.in: Add dependencies on dispextern.h.
7435 (alloca.o): Don't define malloc and define EMACS_FREE instead of
7436 `free'; both can conflict with system header files.
7437
bc8a8d55
KH
74382000-07-18 Kenichi Handa <handa@etl.go.jp>
7439
7440 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
7441 undefined.
7442
069f5950
DL
74432000-07-18 Dave Love <fx@gnu.org>
7444
7445 * window.c (Fwindow_list): Declare arg `window'.
7446
aa96c820
KH
74472000-07-18 Kenichi Handa <handa@etl.go.jp>
7448
7449 * coding.c (setup_coding_system): Don't override the explicitly
7450 specified designations.
7451
06be8d32
MB
74522000-07-15 Miles Bader <miles@gnu.org>
7453
7454 * editfns.c (char_property_eq, char_property_stickiness): Renamed
7455 from `text_property_eq' and `text_property_stickiness', respectively.
7456 (find_field, Fconstrain_to_field, char_property_eq)
7457 (char_property_stickiness): Changed to call char-property functions
7458 instead of text-property-only ones.
7459
7460 * textprop.c (Fnext_single_char_property_change): Made a subr (was
7461 `next_single_char_property_change'). Do more error checking, and
7462 cleanup limit behavior.
7463 (Fprevious_single_char_property_change): New function.
7464 (syms_of_textprop): Initialize new subrs.
7465
7466 * xdisp.c (display_prop_end, invisible_text_between_p):
7467 Call Fnext_single_char_property_change instead of
7468 next_single_char_property_change.
7469
3fddcdc3
JR
74702000-07-15 Jason Rumney <jasonr@gnu.org>
7471
7472 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
7473 after menu is finished with.
7474 (add_menu_item): Only consider wv->title as a menu title.
7475 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
7476
7477 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
7478 null title.
7479 (FONT_REGEXP): Remove unused macro, and its sub-components.
7480 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
7481
7482 * w32term.c (help_echo_object, help_echo_pos): New variables.
7483 (note_mode_line_highlight): Store additional information about the
7484 help-echo in help_echo_object and help_echo_pos. Check both
7485 `local-map' and `keymap' properties for changing the cursor
7486 (note_mouse_highlight): Store additional information about the
7487 help-echo in help_echo_object and help_echo_pos.
7488 (note_tool_bar_highlight): Set help_echo_object to nil and
7489 help_echo_pos to -1.
7490 (w32_read_socket): Use gen_help_event instead of filling
7491 input_events manually.
7492 (syms_of_w32term): Staticpro help_echo_object.
7493 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
52283633 7494 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
3fddcdc3
JR
7495 (x_clear_mouse_face): New function.
7496 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
7497 (x_update_window_begin): No need to turn off the mouse
7498 highlight here.
7499 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 7500 depending on whether they contain glyphs highlighted in mouse-face.
3fddcdc3
JR
7501 (x_fill_stretch_glyph_string): Consume runs of stretch
7502 glyphs instead of a single one.
7503 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
7504 with new argument list.
7505 (x_set_glyph_string_gc): Make sure the face's GC is valid.
7506 (x_append_glyph, x_append_composite_glyph)
7507 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
7508 changes in struct glyph starting 1999-12-27. See comments for
7509 xterm.c on 2000-07-05.
7510
178c5d9c
SS
75112000-07-14 Sam Steingold <sds@gnu.org>
7512
7513 * xfaces.c (realize_x_face): Fix the last patch:
7514 check `default_face' before dereferencing.
7515
6fe533f6
DL
75162000-07-14 Dave Love <fx@gnu.org>
7517
069f5950 7518 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 7519
dd7b81cf
KH
75202000-07-14 Kenichi Handa <handa@etl.go.jp>
7521
0693904a 7522 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 7523 default_face's fontset, not using the default fontset.
0693904a 7524
dd7b81cf
KH
7525 * coding.c (inhibit_iso_escape_detection): New variable.
7526 (syms_of_coding): Make it a Lisp variable.
7527 (detect_coding_iso2022): If inhibit_iso_escape_detection is
7528 nonzero, ignore ISO2022's escape sequence.
7529
d5aa31d8
GM
75302000-07-14 Gerd Moellmann <gerd@gnu.org>
7531
e5acf0ca
GM
7532 * alloca.c (malloc) [emacs]: Define as xmalloc.
7533
bd23a692
GM
7534 * xfns.c (Fx_show_tip): If frame parameters contain a position,
7535 use that instead of the mouse position. Add parameters DX and DY.
7536
7537 * dispextern.h (Fx_show_tip): Adjust number of parameters
7538 in prototype.
7539
9662da0b
GM
7540 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
7541 if HELP is a function, call it with OBJECT and POS as parameters
7542 to get the help to display.
7543 (gen_help_event, kbd_buffer_store_help_event): New functions.
7544 (kbd_buffer_get_event): Construct the Lisp help-event differently.
7545 (read_char): Call show_help_echo with new parameters.
7546
178c5d9c 7547 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
7548 Add prototypes.
7549
7550 * xterm.c (help_echo_object, help_echo_pos): New variables.
7551 (note_mode_line_highlight): Store additional information about the
7552 help-echo in help_echo_object and help_echo_pos. Check both
7553 `local-map' and `keymap' properties for changing the cursor
7554 (note_mouse_highlight): Store additional information about the
7555 help-echo in help_echo_object and help_echo_pos.
7556 (note_tool_bar_highlight): Set help_echo_object to nil and
7557 help_echo_pos to -1.
7558 (XTread_socket): Use gen_help_event instead of filling
7559 input_events manually.
7560 (syms_of_xterm): Staticpro help_echo_object.
7561
7562 * xmenu.c (menu_highlight_callback): Use
7563 kbd_buffer_store_help_event instead of setting up and input_event
7564 structure manually.
7565
7566 * xdisp.c (eval_form): GCPRO argument sexpr.
7567 (call_function): New function.
7568 (handle_single_display_prop): Use call_function and FUNCTIONP
7569 instead of checking whether if font_height is a symbol and
7570 using eval_form.
7571
7572 * eval.c (internal_condition_case_2): New function.
7573
7574 * lisp.h (FUNCTIONP): New macro.
7575 (internal_condition_case_2, call_function): Add prototypes.
7576
d5aa31d8
GM
7577 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
7578 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
7579 Always set `arg' member of input_events.
7580 (construct_menu_click): Unused function removed.
7581
7582 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
7583
7584 * w32term.c (construct_mouse_click, construct_mouse_wheel)
7585 (construct_drag_n_drop, x_scroll_bar_handle_click)
7586 (w32_read_socket): Always set `arg' member of input_events.
7587
7588 * keyboard.c (show_help_echo): Use eval_form. Add comment.
7589
7590 * lisp.h (eval_form): Add prototype.
7591
7592 * xdisp.c (eval_form): Make it externally visible.
7593
0f1a9b23
GM
75942000-07-13 Gerd Moellmann <gerd@gnu.org>
7595
7596 * xterm.c (x_handle_tool_bar_click): Store the frame in the
7597 frame_or_window slot of TOOL_BAR_EVENT input events instead of
7598 consing. For prefix events, store the frame in the `arg' slot of
7599 the event, otherwise store the key there.
7600 (XTread_socket): Instead of consing, use the frame_or_window slot
52283633 7601 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
0f1a9b23
GM
7602
7603 * xmenu.c (menu_highlight_callback): Store help string in the
7604 `arg' member of the input event; don't cons.
7605 (menubar_selection_callback): Use the `arg' slot of input events
7606 to queue additional information, instead of consing.
7607
7608 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
7609
7610 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
7611 TOOL_BAR_EVENTs.
7612 (w32_read_socket): Adapt to changes in HELP_EVENTs.
7613
7614 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
7615 input events to queue additional information, instead of consing.
7616
7617 * keyboard.c (kbd_buffer_gcpro): Renamed from
7618 kbd_buffer_frame_or_window. Now used for all Lisp objects
7619 referenced from the input queue.
7620 (kbd_buffer_store_event): Always use structure assignment for
7621 copying input events. Record all Lisp objects referenced from
7622 events in kbd_buffer_gcpro.
7623 (kbd_buffer_get_event): Construct Lisp `help-echo' events
7624 differently from input events. Test for prefix menu_bar_events
7625 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
7626 event in kbd_buffer_gcpro to nil.
7627 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
7628 frame_or_window is equal to its arg member as prefix events.
7629 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
7630 used by an input event to nil.
7631 (init_keyboard): Use two times the size of the input queue
7632 for kbd_buffer_gcpro.
7633 (syms_of_keyboard): Likewise.
7634
52283633
SM
7635 * emacs.c (handle_USR2_signal, handle_USR1_signal):
7636 Use USER_SIGNAL_EVENT.
0f1a9b23
GM
7637
7638 * termhooks.h (struct input_event): Add member `arg'.
7639 (MENU_BAR_EVENT): Renamed from menu_bar_event.
7640 (USER_SIGNAL_EVENT): Renamed from user_signal.
7641
7642 * xfaces.c (ASET): Remove definition.
7643
7644 * lisp.h (AREF, ASET, ASIZE): New macros.
7645
7646 * fontset.c (AREF, ASIZE): Remove definitions.
7647
7648 * fns.c (AREF): Remove definition.
178c5d9c 7649
0f1a9b23
GM
7650 * composite.c (AREF): Remove definition.
7651
712eaef2
GM
76522000-07-12 Gerd Moellmann <gerd@gnu.org>
7653
d8ee7803
GM
7654 * dispnew.c (redraw_overlapped_rows): Add missing local.
7655 (scrolling_window): Remove debug code.
7656
712eaef2
GM
7657 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
7658 Before scrolling, turn off a mouse-highlight in the window
7659 being scrolled.
7660
7661 * xterm.c (x_update_window_end): Add parameter
7662 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
7663 redisplay in XTframe_up_to_date.
7664 (x_clear_mouse_face): New function.
7665 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
7666
7667 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
7668 current glyph row.
7669 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
7670 it when any row is written to that contains glyphs highlighted in
7671 mouse-face.
7672 (update_window): Call the window update end hook with new
7673 parameter MOUSE_FACE_OVERWRITTEN_P.
7674 (direct_output_for_insert): Give up if row contains mouse-face.
7675
7676 * dispextern.h (struct redisplay_interface): Add parameter
7677 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
7678 (clear_mouse_face): New function pointer member.
7679
02010917
SM
76802000-07-11 Stefan Monnier <monnier@cs.yale.edu>
7681
7682 * syntax.c (back_comment): Use one switch rather than a few `if's.
7683 Obey open_paren_in_column_0_is_defun_start.
7684 When reverting to the `slow' method, try to nicely handle the case
7685 of nested comments by checking that the comment-starter we found
7686 does indeed match the comment-ender.
7687 (scan_sexps_forward, scan_sexps_forward):
7688 Ignore excessive opening parenthesis rather than throwing an error.
7689
d76c03ea
GM
76902000-07-11 Gerd Moellmann <gerd@gnu.org>
7691
7692 * doc.c (Fsubstitute_command_keys): Handle case that a GC
7693 in Fwhere_is_internal or get_keymap_1 relocates string contents.
7694
7695 * dispnew.c (direct_output_forward_char): Give up if currently
7696 displaying a message instead of the minibuffer contents.
7697
7698 * xterm.c (x_update_window_begin): No need to turn off the mouse
7699 highlight here.
7700 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 7701 depending on whether they contain glyphs highlighted in mouse-face.
d76c03ea
GM
7702
7703 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
7704 compare the mouse_face_p flags of both rows.
7705
7706 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
7707
d55ead18
EZ
77082000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
7709
7710 * keyboard.c (show_help_echo): Accept additional parameter
7711 ok_to_overwrite_keystroke_echo.
7712 (read_char): Call show_help_echo with a zero
7713 ok_to_overwrite_keystroke_echo argument.
52283633 7714 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
d55ead18
EZ
7715 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
7716 ok_to_overwrite_keystroke_echo argument.
7717 * w32menu.c (w32_menu_display_help): Call show_help_echo with
7718 non-zero ok_to_overwrite_keystroke_echo argument.
7719
df75b1a3
GM
77202000-07-10 Gerd Moellmann <gerd@gnu.org>
7721
4b92c49a
GM
7722 * xdisp.c (try_window_id): If changes are all below what is
7723 displayed in the window, and point is in the window, we still
7724 might have to find point on the display.
7725
7726 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
7727 glyphs instead of a single one.
7728 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
7729 with new argument list.
7730 (x_set_glyph_string_gc): Make sure the face's GC is valid.
7731
df75b1a3
GM
7732 * keymap.c (get_keymap_1): Add comment that this function can GC.
7733 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
7734 comment that functions can GC.
7735 (Fset_keymap_parent): GCPRO arg KEYMAP.
7736
4314cf3e
EZ
77372000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
7738
7739 * msdos.c (XMenuActivate): After exiting the menu, restore the
7740 echo area message and erase it.
7741
ab49ce15
KH
77422000-07-10 Kenichi Handa <handa@etl.go.jp>
7743
7744 * fontset.c (Ffontset_info): Make the return value more compatible
7745 with that of Emacs 20.
7746
090a072f
GM
77472000-07-07 Gerd Moellmann <gerd@gnu.org>
7748
7749 * eval.c (Fsignal): Handle case that backtrace_list is null.
7750
f92de4a6
KH
77512000-07-07 Kenichi Handa <handa@etl.go.jp>
7752
7753 * ccl.c (Fccl_execute): Typo fixed.
7754
dd8888a1
GM
77552000-07-06 Gerd Moellmann <gerd@gnu.org>
7756
e5c81191 7757 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 7758
dd8888a1
GM
7759 * window.c (Fwindow_list): Reverse list at the end.
7760 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
7761 means allow windows on OWINDOW's frame, only.
7762 (window_loop): Simplified; use Fwindow_list.
7763
7764 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
7765
485266d0
GM
77662000-07-05 Gerd Moellmann <gerd@gnu.org>
7767
7768 * xterm.c (XTread_socket): Increment handling_signal at the start,
7769 decrement it at the end.
7770
7771 * eval.c (handling_signal): New variable.
7772 (Fsignal): Abort if handling_signal is non-zero.
7773
7774 * lisp.h (handling_signal): External declaration.
178c5d9c 7775
485266d0
GM
7776 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
7777
80fcd514
KR
77782000-07-05 Ken Raeburn <raeburn@gnu.org>
7779
7780 Sound support for NetBSD through "Linux emulation" support:
7781 * config.in (HAVE_SOUNDCARD_H): Undef.
7782 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
7783 * Makefile.in (LIBSOUND): New variable.
7784 (LIBES): Include it.
52283633
SM
7785 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
7786 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
80fcd514
KR
7787 (vox_open): Use DEFAULT_SOUND_DEVICE.
7788 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
7789
d5c5cddd
GM
77902000-07-05 Gerd Moellmann <gerd@gnu.org>
7791
7792 * print.c (print_error_message): If Vsignaling_function is set,
7793 show it in *Messages*.
7794
7795 * lisp.h (Vsignaling_function): External declaration.
7796
7797 * eval.c (Vsignaling_function): New variable.
7798 (Fsignal): Compute it.
7799 (syms_of_eval): Staticpro it.
7800
65171e3a
DL
78012000-07-05 Dave Love <fx@gnu.org>
7802
7803 * syswait.h: Use the autoconf recommended approach. Old code
7804 #if'd out in case we need to revert.
7805
178c5d9c 7806 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 7807
e2c46326
AI
78082000-07-05 Andrew Innes <andrewi@gnu.org>
7809
7810 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
7811 when non-NULL instead of __morecore, to take account of buffer
7812 memory. This also solves a problem with spurious memory warnings
7813 on Windows.
7814
7815 * ralloc.c: Make real_morecore non-static.
7816
7817 * eval.c (internal_condition_case): Comment out abort if
7818 interrupt_input_blocked is not zero.
7819
7820 * makefile.nt: Add support for `bootstrap' and related targets.
7821 Include minimal debug info in emacs.exe in release build.
7822 Remove all dependencies on lisp.h, and fixup some others.
7823
7824 * w32.c (init_environment): Install code from 20.7 for providing
7825 default values for environment variables, based on the
7826 executable's own location.
52283633 7827 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
e2c46326
AI
7828 (sys_socket): Install socket inheritance bug fix from 20.7.
7829
7830 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
7831 here via blockinput.h).
7832
a027a91b
SM
78332000-07-05 Stefan Monnier <monnier@cs.yale.edu>
7834
e4b31601
SM
7835 * w32menu.c (w32_menu_display_help):
7836 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
7837
7838 * keyboard.h (show_help_echo): Declare.
7839
7840 * keyboard.c (show_help_echo): New function, extracted from read_char.
7841 Feval its `msg' argument if it's a cons cell.
7842 (read_char): Use it.
4cf8d9d5 7843 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 7844
178c5d9c 7845 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 7846 (note_tool_bar_highlight, XTread_socket):
178c5d9c 7847 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
7848 (dos_rawgetc):
7849 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
7850 (note_tool_bar_highlight, w32_read_socket):
7851 Do not gratuitously ignore non-string `help-echo' properties.
7852
88d75730
GM
78532000-07-05 Gerd Moellmann <gerd@gnu.org>
7854
969f7e79
GM
7855 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
7856
71201b00
GM
7857 * window.c (delete_all_subwindows): Reset Vwindow_list.
7858
88d75730
GM
7859 * xterm.c (x_append_glyph, x_append_composite_glyph)
7860 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
7861 changes in struct glyph starting 1999-12-27. Some bit-fields of
7862 struct glyph were not set, which made glyphs unequal when compared
7863 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
7864 effects were the result. This also depended on the contents of
7865 memory returned by xmalloc. If flickering happens again, activate
7866 the code in clear_glyph_row that's in #if 0. If the flickering is
52283633 7867 gone with that, chances are that it is caused by something similar.
88d75730
GM
7868
7869 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 7870
88d75730
GM
7871 * dispextern.h: Add some comments.
7872
7873 * window.c (add_window_to_list): Add parameter LIST.
7874 (window_list): Order list so that, for each frame, windows are
7875 in canonical order, and so that frames appear in the list in
7876 the order given by Vframe_list.
7877 (next_window): Reverse the handling of NEXT_P.
7878
53654733
GM
78792000-07-04 Gerd Moellmann <gerd@gnu.org>
7880
87efd256
GM
7881 * window.c (Vwindow_list): New variable.
7882 (make_window, delete_window): Set Vwindow_list to nil.
7883 (check_window_containing): New function.
7884 (window_from_coordinates): Rewritten.
7885 (add_window_to_list, window_list, candidate_window_p)
7886 (decode_next_window_args, next_window): New functions.
52283633 7887 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
87efd256
GM
7888 (Fwindow_list): New function.
7889 (Fother_window): Cleaned up.
7890 (foreach_window): Add a longer "variable argument list". Let
7891 callback function return 0 to indicate that cycling over windows
7892 should stop.
7893 (foreach_window_1): Likewise.
7894 (freeze_window_start): Return int.
7895 (init_window): New function.
7896 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
7897
7898 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
7899 input_event with bzero.
7900 (main): Call init_window.
7901
53654733
GM
7902 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
7903 a menu filter.
7904
4a8c194f
KH
79052000-07-04 Kenichi Handa <handa@etl.go.jp>
7906
7907 * composite.h (make_composition_value_copy): Extern it.
7908
7909 * composite.c (make_composition_value_copy): New function.
7910
7911 * editfns.c (Fformat): While copying text properties, make each
7912 composition property value a copy.
7913
7914 * fns.c (concat): While copying text properties, make each
7915 composition property value a copy.
7916
831a6cb0
GM
79172000-07-03 Gerd Moellmann <gerd@gnu.org>
7918
2f516940
GM
7919 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
7920
178c5d9c 7921 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
7922 marked already.
7923
831a6cb0
GM
7924 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
7925 include those frames as candidates which have their focus
7926 redirected to the minibuffer frame.
7927
d9c4f922
SM
79282000-07-03 Stefan Monnier <monnier@cs.yale.edu>
7929
7930 * fns.c (Fputhash): Return `value' rather than nil.
7931
3780bc22
GM
79322000-06-30 Gerd Moellmann <gerd@gnu.org>
7933
97d176db
GM
7934 * frame.c (next_frame): Don't check focus redirection in case
7935 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
7936 unless their focus is redirected, which contradicts the
7937 specification of next-frame, and leads to infinite loops in
7938 certain situations when cycling through windows with next-window.
7939
dca9961d
KH
79402000-06-30 Kenichi Handa <handa@etl.go.jp>
7941
7942 * coding.c (code_convert_region): Even if the length of text is
7943 zero, try to convert it if coding->type is coding_type_ccl.
7944 (decode_coding_string, encode_coding_string): Likewise.
7945
d5483ab1
GM
79462000-06-28 Gerd Moellmann <gerd@gnu.org>
7947
af5c25e1 7948 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 7949 the display if windows_or_buffers_changed.
af5c25e1
GM
7950
7951 * dispnew.c (struct row_entry): New structure.
7952 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
7953 (row_table_size, old_lines, new_lines, old_lines_size)
7954 (new_lines_size, run_pool, runs_size, runs): New variables.
7955 (add_row_entry): New function.
7956 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 7957 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
7958 holding them in local variables. Use a larger hash table whose
7959 size depends on glyph matrix sizes. Don't use bzero to clear the
7960 hash table; instead, clear used slots only.
7961
7962 * fns.c (next_almost_prime): Make it externally visible.
7963
7964 * lisp.h (next_almost_prime): Add prototype.
7965
d5483ab1
GM
7966 * s/isc4-0.h (sigunblock): Define.
7967
7968 * s/sco5.h (sigunblock): Define.
7969
93e40f40
DL
79702000-06-27 Dave Love <fx@gnu.org>
7971
7972 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
7973 (moved to osf5-0.h).
7974 [!NOT_C_CODE]: Protect string.h stuff.
7975
7976 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
7977 (sys_siglist, NSIG): Definitions moved here from osf1.h.
7978
3c4b7685
GM
79792000-06-27 Gerd Moellmann <gerd@gnu.org>
7980
97d176db 7981 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
7982 below the last line from the needed window height.
7983
32cad0aa
SM
79842000-06-26 Stefan Monnier <monnier@cs.yale.edu>
7985
7986 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
7987 (Fwidget_get): Use it.
7988 (syms_of_fns): Defsubr it.
7989
2c69ced2
GM
79902000-06-26 Gerd Moellmann <gerd@gnu.org>
7991
178c5d9c 7992 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
7993 display info for XIM.
7994 (xim_open_dpy): Likewise.
7995 (xim_close_dpy): Don't free the display info's XIM.
7996
7997 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
7998
7999 * config.in (USE_XIM): New define.
8000
3fc720e4
GM
8001 * keymap.c (get_keyelt): For menu-items containing a `:filter
8002 FILTER', apply FILTER to the menu-item's definition to get the
8003 real definition to use.
8004
8005 * lisp.h (QCfilter): External declaration.
8006
2c69ced2
GM
8007 * xfns.c (Fimage_size): New function.
8008 (syms_of_xfns): Defsubr it.
8009
f978b2a2
AS
80102000-06-26 Andreas Schwab <schwab@suse.de>
8011
8012 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
8013 Fstring_as_unibyte.
8014
94cc7892
DL
80152000-06-25 Dave Love <fx@gnu.org>
8016
52283633 8017 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
94cc7892
DL
8018
8019 * Makefile.in (blockinput.h): Depend on atimer.h.
8020 (atimer.h): Depend on systime.h.
8021
52283633 8022 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
94cc7892 8023
52283633 8024 * atimer.h: Protect against multiple inclusion. Include systime.h.
94cc7892
DL
8025
8026 * lisp.h (swap_in_global_binding): Declare.
8027
b8c24556
KR
80282000-06-24 Ken Raeburn <raeburn@gnu.org>
8029
8030 * process.c (Fopen_network_stream): Turn off atimers for duration
8031 of call to connect. (Patch from Gerd.)
8032
8cf8560b
DL
80332000-06-23 Dave Love <fx@gnu.org>
8034
511c7541
DL
8035 * ralloc.c: Maybe include unistd.h
8036
8cf8560b
DL
8037 * emacs.c (setgrp): Undefine before defining.
8038 (malloc_warning, set_time_zone_rule, index): Prototype.
8039
8040 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
8041 HAVE_STRUCT_TIMEZONE.
8042
8043 * s/osf1.h: Move string.h hack here from alpha.h and make it
8044 conditional.
8045 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
8046 _XOPEN_SOURCE.
8047 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
8048 (SOCKLEN_TYPE): Don't define.
8049
8050 * m/alpha.h: Remove string.h hack.
8051
8052 * s/osf5-0.h: New file.
8053
8054 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
8055 include time.h, done by systime.h.
8056 [__FreeBSD__]: Remove redundant includes.
8057
3fc720e4 8058 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
8059 (delete_temp_file): Return Qnil to avoid warning.
8060
8061 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
8062
8063 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
8064 HAVE_X_WINDOWS.
8065
8066 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
8067
8068 * composite.h (compose_text): Declare.
8069
8070 * xterm.c: Don't include sys/types.h unconditionally. Don't
8071 protect its inclusion with !USG (following xmenu.c).
8072
ea055732
GM
80732000-06-23 Gerd Moellmann <gerd@gnu.org>
8074
8075 * xfns.c (x_create_tip_frame): Initialize frame's colors like
8076 in x_create_frame.
8077
74b01b80
EZ
80782000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
8079
8080 * coding.c (decode_eol_post_ccl): Special handling for undecided
8081 and inconsistent EOL types.
8082
64f3a166
GM
80832000-06-22 Gerd Moellmann <gerd@gnu.org>
8084
16cf31f7
GM
8085 * xrdb.c (x_load_resources): Add default resource for scroll bar's
8086 trough color and main window's background color.
8087
52283633 8088 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
16cf31f7
GM
8089
8090 * xterm.h (Xt_app_con): External declaration.
8091
8092 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 8093
486a103d
GM
8094 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
8095
64f3a166
GM
8096 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
8097 (handle_invisible_prop): Record the start of invisible text in
8098 it->add_overlay_start.
8099 (struct overlay_entry): Add member `overlay'.
8100 (handle_overlay_change): Simplify.
8101 (next_overlay_string): After having processed overlay strings at the
8102 end of the buffer, record that fact in
8103 it->overlay_strings_at_end_processed_p.
8104 (compare_overlay_entries): If before- and after-strings come
8105 from the same overlay, let before-strings come first.
8106 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
8107 (load_overlay_strings): Take it->add_overlay_start into account
8108 when adding overlay strings.
8109
8110 * dispextern.h (struct it): Add member add_overlay_start.
8111
bb746ea6
DL
81122000-06-22 Dave Love <fx@gnu.org>
8113
8114 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
8115
8116 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
8117
a8f573f3
KH
81182000-06-22 Kenichi Handa <handa@etl.go.jp>
8119
8120 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
8121 is greater than 0.
8122
9f2bbc92
DL
81232000-06-21 Dave Love <fx@gnu.org>
8124
178c5d9c 8125 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 8126
3ee5041c
SM
81272000-06-21 Stefan Monnier <monnier@cs.yale.edu>
8128
8129 * syntax.c (back_comment): Simplify string-parity counting (with
8130 the added benefit of handling multiple string-styles as long as
8131 they are not intertwined).
8132 Jump to the slow code as soon as a comment starter is found in
8133 a "string_lossage" position. Fixes the case: " /* " /* " */.
8134
4c343001
DL
81352000-06-21 Dave Love <fx@gnu.org>
8136
8137 * Makefile.in: Use GETLOADAVG_LIBS.
8138
8139 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
8140 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
8141
e6365855
SM
81422000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8143
8144 * syntax.c (describe_syntax): Recognize the `n'estable bit.
8145 (Fforward_comment, scan_lists):
8146 Check the comstyle of single-char comment-starters.
8147 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
8148 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
8149 Check the comstyle of single-char comment-starters.
8150 Clarify control-flow around the Scomment case.
e6365855 8151
5700d2cc
DL
81522000-06-20 Dave Love <fx@gnu.org>
8153
d355bd8a
SM
8154 * fns.c (make_hash_table, maybe_resize_hash_table):
8155 Cast arg of next_almost_prime.
5700d2cc 8156
178c5d9c 8157 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
8158
8159 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
8160 and unistd.h.
8161
4a27bdfb
GM
81622000-06-20 Gerd Moellmann <gerd@gnu.org>
8163
a61d762c 8164 * keyboard.c (adjust_point_for_property): Check if display
52283633 8165 property should be treated as intangible by looking at its value.
a61d762c 8166
178c5d9c 8167 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
8168 (display_prop_intangible_p): New functions.
8169
8170 * dispextern.h (display_prop_intangible_p): Add prototype.
8171
8172 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 8173
4a27bdfb
GM
8174 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
8175 argument to sigprocmask.
8176
8177 * s/sco5.h (sigblock): Redefined to pass a pointer as second
8178 argument to sigprocmask.
8179
8180 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
8181 sigprocmask_set, and pass a pointer to it to sigprocmask.
8182
8183 * sysdep.c (sigprocmask_set): New variable.
8184
8185 * fileio.c (make_temp_name): Don't use `%s' in string passed to
8186 report_file_error.
8187
427ec082
SS
81882000-06-20 Sam Steingold <sds@gnu.org>
8189
8190 * xrdb.c: Don't declare xmalloc, xrealloc.
8191
8972fe79 81922000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
8193
8194 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
8195 (re_comp): Cast gettext return value to avoid complaints when
8196 !HAVE_LIBINTL.
8197
074b6efe
DL
81982000-06-20 Dave Love <fx@gnu.org>
8199
52283633 8200 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
f85c008a 8201
5700d2cc 8202 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 8203
d355bd8a 8204 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
8205
8206 * m/alpha.h: Don't declare xmalloc, xrealloc.
8207
0af4f205
DL
8208 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
8209
8210 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
8211
8212 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
8213
8214 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
8215 HAVE_GETWD.
8216
074b6efe
DL
8217 * keyboard.h (poll_for_input_1): Declare.
8218
8219 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
8220
8221 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
8222
8223 * doprnt.c: Don't declare xmalloc, xrealloc.
8224
8225 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
8226 (getenv, ctime, getwd): Removed.
8227 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
8228
8229 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
8230 x_set_tool_bar_lines.
8231
8232 * config.in: Add HAVE_GETWD. Move some definitions above
8233 machine/system includes.
8234
68a5e97b
KH
82352000-06-20 Kenichi Handa <handa@etl.go.jp>
8236
95417e1e
KH
8237 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
8238
68a5e97b
KH
8239 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
8240 contain information about ENCODING.
8241
8242 * fontset.c (FONTSET_ASCII): Use the first element of char table
8243 for an ASCII font, not defalt slot.
8244 (fontset_ref_via_base): If FONTSET doesn't contain information for
8245 C, try the default fontset.
8246 (make_fontset): Don't copy the default fontset.
8247 (fontset_font_pattern): Likewise.
8248 (accumulate_font_info): If ELT is nil, use the corresponding
8249 element in the default fontset.
8250
3b4fa1b2
DL
82512000-06-19 Dave Love <fx@gnu.org>
8252
943e731c
DL
8253 * syntax.c (Fparse_partial_sexp): Doc fix.
8254
8255 * regex.h: Test PROTOTYPES as well as __STDC__.
8256
3b4fa1b2
DL
8257 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
8258 errno, strerror. Put text after #endif in comment.
8259
52283633 8260 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
3b4fa1b2
DL
8261
8262 * xterm.c (x_frame_of_widget): Likewise.
8263
cdf0357b
GM
82642000-06-19 Gerd Moellmann <gerd@gnu.org>
8265
8266 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
8267 to Vfundamental_mode_abbrev_table.
8268
8269 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
8270 bogus objects are marked. This slows down GC by ~80 percent, but
8271 it might be worth trying when debugging GC-related problems.
8272 This feature requires conservative stack marking to be enabled.
8273
8274 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
8275 returns XLookupChars, reset `modifiers' to zero.
8276
998e9f8c
DL
82772000-06-19 Dave Love <fx@gnu.org>
8278
8279 * mktime.c: Unprotoized.
8280
18e21ce8 82812000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
8282
8283 * data.c (set_internal): If variable is frame-local,
8284 store the new value immediately into the frame parameter alist.
8285
140c4ac6
KR
82862000-06-19 Ken Raeburn <raeburn@gnu.org>
8287
14358466
KR
8288 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
8289 in the custom handler pointer.
8290
140c4ac6
KR
8291 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
8292 value, or checks for CHAR_META can fail when Lisp_Object is a
8293 union type.
8294 * keymap.c (get_keyelt): Likewise.
8295
10d7bf84
KH
82962000-06-19 Kenichi Handa <handa@etl.go.jp>
8297
8298 * ccl.h (struct ccl_program): New member eol_type.
8299 (struct ccl_spec): New member cr_carryover.
8300
8301 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
8302 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
8303
8304 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
8305 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
8306 (decode_eol_post_ccl): New function.
8307 (decode_coding): Don't detect EOL format here for CCL based coding
8308 systems.
8309 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
8310 decode_eol_post_ccl after running the CCL program.
8311 (code_convert_region): Don't detect EOL format here for CCL based
8312 coding systems.
8313 (decode_coding_string): Likewise.
8314
52e386c2
KR
83152000-06-18 Ken Raeburn <raeburn@gnu.org>
8316
8317 * charset.c (update_charset_table): Use XINT on "iso_final_char"
8318 when treating it as an integer.
8319
8320 * coding.h (encode_coding_string): Declare.
8321
8322 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
8323 it as an integer.
8324
8325 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
8326 "xkeymap" to avoid shadowing the "enum map_type" value that needs
8327 to be passed to get_local_map.
8328
8329 * sound.c (Fplay_sound): Don't call make_number on
8330 Frun_hook_with_args count argument.
8331
8332 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
8333 for lisp objects in X event structure data field, when lisp
8334 objects are represented with unions.
8335 (x_scroll_bar_to_input_event): Ditto.
8336
b357b9d4
KR
83372000-06-16 Ken Raeburn <raeburn@gnu.org>
8338
8339 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
8340 termination of string. Fix sense of test whether
8341 Vline_number_display_limit is an integer.
b357b9d4 8342
a871441d
GM
83432000-06-16 Gerd Moellmann <gerd@gnu.org>
8344
a9021acd
GM
8345 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
8346 only if HAVE_X_WINDOWS.
8347
6344985d
GM
8348 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
8349 of titles.
8350
427ec082 8351 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
8352 out of bounds.
8353
228b083e
EZ
83542000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
8355
8356 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
8357 of its headers.
8358
c25b53a2
KH
83592000-06-15 Kenichi Handa <handa@etl.go.jp>
8360
8361 * coding.c (decode_coding_emacs_mule): Always set src_base at the
8362 start of the while loop.
8363
a6981b11
GM
83642000-06-15 Gerd Moellmann <gerd@gnu.org>
8365
e9924e52
GM
8366 * atimer.c (alarm_signal_handler): Add forward declaration.
8367
a6981b11
GM
8368 * data.c (set_internal): Remove debug code.
8369
25fa6deb
GM
83702000-06-14 Gerd Moellmann <gerd@gnu.org>
8371
dce6b995
GM
8372 * Makefile.in (bootstrap-temacs): Add `-I../src'.
8373
9f817ea4
GM
8374 * unexec.c (toplevel) [COFF]: Include coff.h.
8375
8376 * s/lynxos.h: New file.
8377
8378 * keymap.c (Fsingle_key_description): Enclose function key and
8379 event symbol names in angle brackets.
8380
8a4e3c0c
GM
8381 * xdisp.c (setup_echo_area_for_printing): Call
8382 message_log_maybe_newline if message_buf_print is not set.
8383
8384 * print.c (printchar, strout): Don't check message_buf_print
427ec082 8385 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
8386 function does something useful even when message_buf_print is
8387 already set.
8388
52283633
SM
8389 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
8390 New variables.
25fa6deb
GM
8391 (ensure_echo_area_buffers): Initialize echo buffer's
8392 truncate lines setting to nil.
8393 (with_echo_area_buffer): Don't set the echo buffer's truncate
8394 lines setting here.
8a4e3c0c 8395 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
8396 of message_truncate_lines.
8397 (resize_mini_window): Handle case that lines are truncated.
52283633
SM
8398 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
8399 DEFVAR_BOOL message-truncate-lines.
25fa6deb
GM
8400
8401 * keyboard.c (read_char): Bind message-truncate-lines to t
8402 while displaying a help-echo.
8403
8404 * lisp.h (Qmessage_truncate_lines): External declaration.
8405
163dcff3
GM
84062000-06-13 Gerd Moellmann <gerd@gnu.org>
8407
1681ead6
GM
8408 * xdisp.c (Vline_number_display_limit): Renamed from
8409 line_number_display_limit.
8410 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
8411 Extend documentation string. Initialize
8412 Vline_number_display_limit to nil meaning no limit.
8413 (decode_mode_spec): Use Vline_number_display_limit with its new
8414 meaning.
8415
163dcff3
GM
8416 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
8417
18e21ce8 84182000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
8419
8420 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 8421
163dcff3
GM
8422 * xfns.c (x_set_frame_parameters): Comment fix.
8423
8424 * frame.c (store_frame_param): Call swap_in_global_binding if the
8425 variable's current binding was chosen based on this frame.
8426
8427 * data.c (swap_in_global_binding): New function.
8428
a704139d
EZ
84292000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
8430
8431 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
8432 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
8433
9b6610db
EZ
84342000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
8435
8436 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
8437
c68833d2
JR
84382000-06-12 Jason Rumney <jasonr@gnu.org>
8439
8440 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
8441
8442 * w32.h (EMACS_W32_H): Renamed from _NT_H_
8443
8444 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
8445
8446 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
8447
ed1056b3
GM
84482000-06-12 Gerd Moellmann <gerd@gnu.org>
8449
8450 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
8451 (syms_of_xfaces): Defsubr Sdump_colors.
8452 (x_free_colors): Don't treat b&w specially on default visual.
8453 (x_free_dpy_colors): New function.
8454 (free_face_colors): Don't check visual class; it's done
8455 in x_free_colors.
8456
8457 * xterm.c (x_frame_of_widget): New function.
8458 (x_alloc_nearest_color_for_widget): Use it.
8459 (x_copy_dpy_color): New function.
8460 (x_destroy_window): Free various colors.
8461
5050a2ef
KH
84622000-06-12 Kenichi Handa <handa@etl.go.jp>
8463
8464 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
8465
8466 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
8467
8468 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
8469
8470 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
8471
8472 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
8473
fb1b041d
DL
84742000-06-11 Dave Love <fx@gnu.org>
8475
8476 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
8477
ff96b5f4
EZ
84782000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
8479
8480 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
8481
db8eeecd
GM
84822000-06-11 Gerd Moellmann <gerd@gnu.org>
8483
ed1056b3 8484 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
8485 to `XEvent *'.
8486
49b71c5f
KH
84872000-06-10 Kenichi Handa <handa@etl.go.jp>
8488
c479bd55
KH
8489 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
8490 (regex_compile): Fix the code for handling the case of single byte
8491 char and multibyte char being mixed in a range within [...].
8492
ff6a65c2
KH
8493 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
8494 and dst_multibyte members of coding.
8495
49b71c5f
KH
8496 * charset.c (update_charset_table): Update the table
8497 bytes_by_char_head.
8498 (init_charset_once): Initialize elements of bytes_by_char_head to
8499 1 except for leading codes for private charases.
8500
8501 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
52283633 8502 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
49b71c5f 8503
9e80b57d
KR
85042000-06-09 Ken Raeburn <raeburn@gnu.org>
8505
8506 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
8507 access the data it doesn't point to.
8508
f83fe4b4
GM
85092000-06-08 Gerd Moellmann <gerd@gnu.org>
8510
8511 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 8512 will be translated to a switch-frame event when reading the
f83fe4b4
GM
8513 event queue. This is necessary because Emacs otherwise won't
8514 perform a switch-frame to a new frame until some other event, for
8515 example a keystroke event, forces it to do so. This has various
8516 effects, one visible being that the cursor of a frame created with
8517 C-x 5 2 or switched to with a window manager key binding like
8518 A-TAB stays hollow because selected_window isn't on the newly
8519 focused frame until the switch-frame is performed.
8520
8521 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
8522 generating a switch-frame event if necessary.
8523
8524 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
8525
8526 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
8527 it's an integer.
8528
0890801b
KH
85292000-06-08 Kenichi Handa <handa@etl.go.jp>
8530
52283633 8531 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
0890801b 8532
173cbca8
GM
85332000-06-07 Gerd Moellmann <gerd@gnu.org>
8534
3091c2a6
GM
8535 * window.c (displayed_window_lines): Take empty lines at
8536 the bottom of a window into account.
427ec082 8537
f38952fe
GM
8538 * window.c (displayed_window_lines): New function.
8539 (Fmove_to_window_line): Use displayed_window_lines to determine
8540 the number of lines to move, instead of using the window's height.
8541
8542 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
8543 to stop reading, even if the form read sets point to a different
8544 value when evaluated.
8545
427ec082 8546 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
8547 put the cursor.
8548
6ba6c818
KH
85492000-06-07 Kenichi Handa <handa@etl.go.jp>
8550
8551 * fileio.c (e_write): Free composition data if stored in
8552 coding->cmp_data.
8553
5f1aea9a
GM
85542000-06-06 Gerd Moellmann <gerd@gnu.org>
8555
666852af
GM
8556 * xdisp.c (display_line): Set row's and iterator's
8557 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
8558 Set cursor even if row ends in the middle of a character.
8559 (dump_glyph_row): Print values of new flags.
8560 (redisplay_window) <cursor movement in unchanged window>: When
8561 point has been moved forward, and PT is at the end of the cursor
8562 row, don't place the cursor in the next row if the cursor row ends
8563 in the middle of a character or at ZV.
8564
8565 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
8566 (struct glyph_row): Add starts_in_middle_of_char_p and
8567 ends_in_middle_of_char_p.
8568 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
8569 ends_in_middle_of_char_p flag.
8570 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
8571
d13f3e2e
GM
8572 * term.c (append_glyph): Revert change of 2000-06-06.
8573
8574 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
8575 padding glyph not fitting on line as whole character not
8576 fitting on line.
8577
5f1aea9a
GM
8578 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
8579 this isn't true for images with `:ascent 100'.
8580
10cda9b0
KH
85812000-06-06 Kenichi Handa <handa@etl.go.jp>
8582
ed00559d
KH
8583 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
8584 as modified if it is originally unmodified.
8585
10cda9b0
KH
8586 * term.c (encode_terminal_code): Change the way to check if
8587 terminal coding does any conversion.
8588 (append_glyph): Set glyph->pixel_width correctly.
8589
8590 * xdisp.c (display_line): While checking line continuation, pay
8591 attention to a padding glyph.
8592
1969fae2
GM
85932000-06-05 Gerd Moellmann <gerd@gnu.org>
8594
8595 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
8596
162ccef4
DL
85972000-06-05 Dave Love <fx@gnu.org>
8598
f19f32dd
DL
8599 * xdisp.c: Include fontset.h.
8600
8601 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
8602
8603 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
8604
8605 * dispnew.c: Conditionally include term.h.
8606
8607 * coding.h: Declare code_convert_string_norecord.
8608
8609 * frame.h (struct frame): Use volatile unconditionally.
8610
8611 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
8612
8613 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
8614
8615 * systime.h: Protect against multiple inclusion.
8616 (timezone) [USG5_4]: Define as time_t.
8617
8618 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
8619 (Foptimize_char_table, make_temp_name): Declare.
8620
8621 * Makefile.in (xdisp.o): Depend on fontset.h.
8622
8623 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
8624
8625 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
8626 (Foptimize_char_table, make_temp_name): Declare.
8627
427ec082 8628 * s/irix4-0.h:
162ccef4
DL
8629 * s/irix5-0.h:
8630 * s/netbsd.h: Don't define autoconfiscated MATHERR.
8631
2082fe81
DL
86322000-06-02 Dave Love <fx@gnu.org>
8633
8634 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
8635
dcf671d2
GM
86362000-06-02 Gerd Moellmann <gerd@gnu.org>
8637
8638 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 8639 result face, set flags in that face indicating that colors may not
dcf671d2
GM
8640 be freed.
8641
8642 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
8643 glyph, use the ASCII NUL character to determine the face.
8644
d42122a3
DL
86452000-06-02 Dave Love <fx@gnu.org>
8646
8647 * sysdep.c: Conditionally include stdlib.h, unistd.h.
8648 (VFORK_RETURN_TYPE): Remove.
427ec082 8649
d42122a3
DL
8650 * config.in: Add NO_MATHERR.
8651
dd432f16
DL
86522000-06-01 Dave Love <fx@gnu.org>
8653
90aa4ea8
DL
8654 * cmds.c (internal_self_insert): Don't check
8655 Vbefore_change_function, Vafter_change_function.
8656
8657 * insdel.c (signal_before_change, signal_after_change): Likewise.
8658
8659 * buffer.c (Vbefore_change_function, Vafter_change_function):
8660 Variables and their initializations deleted.
8661
2330c9d4
DL
8662 * callint.c (Fcall_interactively): Doc fix.
8663
dd432f16
DL
8664 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
8665
bf9e8804
DL
86662000-05-31 Dave Love <fx@gnu.org>
8667
8668 * textprop.c: Revert last change -- duplicated.
8669
3694b4ab
GM
86702000-05-31 Gerd Moellmann <gerd@gnu.org>
8671
8672 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
8673 in #if 0.
8674
8675 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
8676
f14156cd
JR
86772000-05-31 Jason Rumney <jasonr@gnu.org>
8678
8119aab8
JR
8679 * search.c (Fre_search_forward, Fre_search_backward)
8680 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
8681
f14156cd
JR
8682 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
8683
4aab9be3
JR
86842000-05-30 Jason Rumney <jasonr@gnu.org>
8685
8686 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
8687 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
8688
52283633 8689 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
4aab9be3
JR
8690
8691 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
8692 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
8693 expand a nil default_filename.
8694
8695 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
8696 pointer to glyph_to_pixel_coords, not a frame.
8697
8698 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
8699 coding.h to dependencies.
8700
8701 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
8702
8703 * w32console.c (glyph_to_pixel_coords): Change first parameter to
8704 window pointer to be consistent with w32term.c and xterm.c.
8705
8706 * w32fns.c: Format and doc changes to bring closer to xfns.c.
8707 (VIETNAMESE_CHARSET): Define if not defined in system headers.
8708 (Qline_spacing, Qcenter): New variables.
8709 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
8710 (x_set_line_spacing): New function.
52283633 8711 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
4aab9be3
JR
8712 (x_specified_cursor_type): New function.
8713 (x_set_cursor_type): Use it.
8714 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
8715 and icon strings.
8716 (validate_x_resource_name, x_get_resource_string): Measure lengths
8717 of external strings in bytes.
8718 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
8719 GetTextExtentPoint32 with NULL title.
8720 (Fx_create_frame): Initialize Qline_spacing.
8721 (w32_load_system_font): Initialize font->double_byte_p.
8722 (x_to_w32_charset): Use Vw32_charset_info_alist.
8723 (Image, busy cursor, tooltip functions): Merged changes from
8724 xfns.c. Not yet functional on Windows.
8725
8726 * w32gui.h (W32FontStruct): Add double_byte_p member.
8727
8728 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
8729 (emacs_button_translation): Use it.
8730 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
8731 in `mask' to be set.
8732
8733 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
8734 menu strings.
8735
8736 * w32term.c: Format and doc changes to bring closer to xterm.c.
8737 (w32_char_font_type): New enum.
8738 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
8739 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
8740 (w32_encode_char): New function.
8741 (x_encode_char): Removed.
8742 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
8743 x_encode_char and w32_font_is_double_byte.
8744 (x_produce_image_glyph): Use image_ascent.
8745 (x_produce_glyphs): Use new version of w32_per_char_metric and
8746 handle NULL return value. Allow extra line spacing.
8747 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
8748 (w32_get_glyph_overhangs): Remove unicode_p param. Use
8749 w32_font_type member of glyph instead.
8750 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
8751 (fast_find_position): Make sure not to consider rows not visible
8752 in the window.
8753 (w32_read_socket) [WM_MENUSELECT]: Cannot call
8754 w32_menu_display_help with input blocked, as it can abort.
8755 (x_display_and_set_cursor): Choose cursor depending
8756 on buffer-local value of cursor_type.
8757 (x_draw_bar_cursor): Add parameter WIDTH.
8758
8759 * w32term.h (CP_DEFAULT): Define.
8760 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
8761
10fc3187
GM
87622000-05-30 Gerd Moellmann <gerd@gnu.org>
8763
8764 * search.c (Fre_search_forward, Fre_search_backward)
8765 (Fposix_search_backward, Fposix_search_forward): Doc fix.
8766
d0555360
KH
87672000-05-30 Kenichi Handa <handa@etl.go.jp>
8768
8769 * coding.c (detect_coding_iso2022): Fix code for checking
8770 CODING_CATEGORY_MASK_ISO_8_2.
8771
f1ad044f
SM
87722000-05-29 Stefan Monnier <monnier@cs.yale.edu>
8773
8774 * regex.c (PREFETCH_NOLIMIT): New function.
8775 (re_match_2_internal): Use it and adjust the end_match_2 logic.
8776
84ec3b4b
GM
87772000-05-29 Gerd Moellmann <gerd@gnu.org>
8778
66254a13
GM
8779 * syntax.c (find_defun_start): Move test for
8780 open_paren_in_column_0_is_defun_start outside of the loop.
8781
49e70dec
GM
8782 * xdisp.c (redisplay_window): Really switch buffers when
8783 displaying mode lines, and temporarily set selected_frame to the
8784 frame of the window that's redisplayed.
8785
84ec3b4b
GM
8786 * xfaces.c (free_realized_faces): Block/unblock input.
8787 (free_realized_multibyte_face): Ditto.
8788
869a3a14
DL
87892000-05-29 Dave Love <fx@gnu.org>
8790
8791 * textprop.c (Qkeymap): New variable.
8792 (syms_of_textprop): Intern it.
8793
8794 * keymap.c: Include intervals.h.
8795 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
8796
8797 * Makefile.in (keymap.o): Depend on intervals.h.
8798
8799 * keyboard.c (menu_bar_items, tool_bar_items)
8800 (Fexecute_extended_command): Deal with `keymap' property.
8801 (read_key_sequence): Track map from `keymap' property as well as
8802 `local_map'.
8803
8804 * intervals.c (get_local_map): Extra arg to allow looking for
8805 `keymap' too.
8806
8807 * intervals.h (map_property): New enum.
8808 (get_local_map): Extra arg using it.
8809 (Qkeymap): Declare.
8810
84ec3b4b 8811 * lisp.h (get_local_map): Don't declare here.
869a3a14 8812
89d0c844
KH
88132000-05-29 Kenichi Handa <handa@etl.go.jp>
8814
8815 * Makefile.in (callproc.o): Depend on composite.h.
8816
8817 * callproc.c: Include composite.h.
8818 (Fcall_process): Handle composition correctly.
8819
8820 * coding.h (coding_allocate_composition_data): Extern it.
8821 (coding_restore_composition): Likewise.
8822
8823 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
8824 yet allocated, finish decoding with result
8825 CODING_FINISH_INSUFFICIENT_CMP.
8826 (coding_allocate_composition_data): Make it non-static.
8827 (coding_restore_composition): Likewise.
8828
797a084a
EZ
88292000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
8830
8831 * charset.c (syms_of_charset): Revert last change.
8832
cf872af5
EZ
88332000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
8834
8835 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
8836 charsets as unibyte, with 1-column screen width. Sent by Kenichi
8837 Handa.
cf872af5 8838
5b1ae051
EZ
88392000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
8840
8841 * charset.c (syms_of_charset): Set width of character sets
8842 eight-bit-control and eight-bit-graphic to 1 column.
8843
34ec9ebe
GM
88442000-05-26 Gerd Moellmann <gerd@gnu.org>
8845
8846 * config.in (HAVE_SPEED_T): New define.
8847
8848 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
8849 `extern speed_t'.
8850
dd854dc2
DL
88512000-05-26 Dave Love <fx@gnu.org>
8852
8853 * coding.c (shrink_decoding_region): Initialize eol_conversion.
8854
8855 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
8856 (Fsubr_arity): New function.
8857 (syms_of_data): Install them.
8858
ba9f8f95
KH
88592000-05-26 Kenichi Handa <handa@etl.go.jp>
8860
0f3e0672
KH
8861 * charset.c (init_charset_once): Set the table bytes_by_char_head
8862 correctly.
8863
cebefb44
KH
8864 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
8865 the default fontset to what Emacs uses by default.
0f3e0672
KH
8866 (check_registry_encoding): This function deleted.
8867 (Fset_fontset_font): Remove the adhoc condition for the default
8868 fontset. Allow cons in FONTNAME.
cebefb44 8869
0f3e0672
KH
8870 * fns.c (map_char_table): Ignore char-table entries for
8871 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 8872
7a18af49
KR
88732000-05-25 Ken Raeburn <raeburn@gnu.org>
8874
8875 * emacs.c (main): Initialize keyboard syms before initializing
8876 window code, so face names are available.
8877
d2af47df
SM
88782000-05-25 Stefan Monnier <monnier@cs.yale.edu>
8879
8880 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
8881 of an anchor at the beginning of a shy-group.
8882
fc6a6a4e
GM
88832000-05-25 Gerd Moellmann <gerd@gnu.org>
8884
8885 * xdisp.c (handle_invisible_prop): Don't try to skip over
8886 invisible text if end of text is already reached.
8887
005f0d35
DL
88882000-05-25 Dave Love <fx@gnu.org>
8889
02513cdd
DL
8890 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
8891
005f0d35
DL
8892 * coding.c (encode_eol): Add null statement after label.
8893
89f6ca4e
EZ
88942000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
8895
8896 * w16select.c (Fw16_set_clipboard_data): Fix the change from
8897 2000-05-20.
8898
a4e1759e
KH
88992000-05-25 Kenichi Handa <handa@etl.go.jp>
8900
8901 * ccl.c (ccl_driver): Fix previous change.
8902
eacfd7fe
KH
89032000-05-25 Kenichi Handa <handa@etl.go.jp>
8904
46ab33a9
KH
8905 * coding.c (run_pre_post_conversion_on_str): Set point to the
8906 beginning of buffer before calling coding->post_read_conversion.
8907 (decode_coding_string): Give correct args to
8908 run_pre_post_conversion_on_str.
8909 (encode_coding_string): Likewise.
8910
eacfd7fe
KH
8911 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
8912 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
8913 eight-bit-graphic correctly.
8914
f8569325
DL
89152000-05-24 Kenichi HANDA <handa@etl.go.jp>
8916
8917 * fileio.c (Finsert_file_contents): Even if a file is not found,
8918 execute codes for setting up coding system. Call
8919 after-insert-file-functions unconditionally.
8920
04545643
GM
89212000-05-24 Gerd Moellmann <gerd@gnu.org>
8922
8923 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
8924 BSD_PGRPS are not defined.
8925
747d90ea
KH
89262000-05-24 Kenichi Handa <handa@etl.go.jp>
8927
8928 * charset.c (update_charset_table): Accept nil in LONG_NAME and
8929 DESCRIPTION.
8930 (syms_of_charset): Avoid building same strings.
8931
716e3b88
GM
89322000-05-23 Gerd Moellmann <gerd@gnu.org>
8933
8934 * lread.c (Fload): Add a comment about the meaning of
8935 Vuser_init_file being t.
8936
8937 * puresize.h (BASE_PURESIZE): Increase to 675000.
8938
8939 * s/gnu-linux.h (setpgrp): Don't define it here because this
8940 prevents compilation on GNU/Linux systems with glib 2.2.
8941
8942 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
8943 as setpgid.
427ec082 8944
9aeb39fa
EZ
89452000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
8946
8947 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
8948 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
8949 version.
8950 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
8951
29ced61b
KH
89522000-05-23 Kenichi Handa <handa@etl.go.jp>
8953
52283633 8954 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
0574a2ed 8955
3d80f24d
KH
8956 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
8957
52283633 8958 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
3d80f24d 8959
29ced61b
KH
8960 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
8961
d7e00792
KH
89622000-05-22 Kenichi Handa <handa@etl.go.jp>
8963
c9d80d38
KH
8964 * keyboard.c (read_char): Allow character codes 128..255 to be
8965 handled by input-method-function.
8966
d7e00792
KH
8967 * insdel.c (adjust_markers_for_replace): Fix previous change.
8968 (adjust_after_replace): If PREV_TEXT is nil, call
8969 adjust_markers_for_insert, not adjust_markers_for_replace.
8970
087121cc 89712000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 8972
087121cc
GM
8973 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
8974 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
8975 [HAVE_GRANDPT]: Define.
8976 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
8977
8978 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
8979 like SYSV_PTYS.
8980
8981 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
8982
8983 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
8984
c9671f81
KH
89852000-05-20 Kenichi Handa <handa@etl.go.jp>
8986
8987 The following changes are to handle 8-bit characters in a
8988 multibyte buffer/string without facing with byte combining
8989 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
8990 eight-bit-graphic (for 0xA0..0xFF) are introduced.
8991
8992 * Makefile.in (fns.o): Depend on charset.h.
8993
8994 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
8995 convert it to unibyte.
8996 (make_string): Use parse_str_as_multibyte, not chars_in_text.
8997
8998 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
8999 apparent char boundary.
9000 (Fset_buffer_multibyte): Convert 8-bit characters in the range
9001 0x80..0x9F to/from multibyte form.
9002
9003 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
9004 to unibyte.
9005
9006 * callproc.c (Fcall_process): Always encode an argument string if
9007 it is multibyte. Setup src_multibyte and dst_multibyte members of
9008 process_coding properly.
ce75fd23 9009
c9671f81
KH
9010 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
9011 SPLIT_NON_ASCII_CHAR.
9012
9013 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
9014 as is.
9015 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
9016
52283633 9017 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
c9671f81 9018 (SPLIT_CHARACTER_SEQ): This macro deleted.
52283633 9019 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
c9671f81
KH
9020 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
9021 and eight-bit-graphic.
9022 (char_to_string): Likewise. Signal an error for too large
9023 character code.
9024 (char_printable_p): Return 0 for 8-bit characters.
9025 (update_charset_table): Update iso_charset_table only when a final
9026 character is non-negative.
9027 (find_charset_in_text): Renamed from find_charset_in_str.
9028 Arguments and return value changed. Callers changed.
9029 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
9030 be -1 if CHARSET is used only internally.
9031 (Fmake_char_internal): Handle new charsets; eight-bit-control and
9032 eight-bit-graphic.
9033 (Fcharset_after): Simplified.
9034 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
9035 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
9036 (multibyte_chars_in_text): Simplified by assuming there's no
9037 invalid multibyte sequence.
52283633
SM
9038 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
9039 (str_as_unibyte): New functions.
9040 (Fstring): Simpified by assuming that byte combining never happens.
c9671f81
KH
9041 (init_charset_once): Initialization for
9042 LEADING_CODE_8_BIT_CONTROL.
9043 (syms_of_charset): Intern and staticpro Qeight_bit_control and
9044 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
9045 eight-bit-control and eight-bit-graphic.
9046
52283633
SM
9047 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
9048 (CHARSET_8_BIT_GRAPHIC): New macros.
c9671f81
KH
9049 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
9050 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
9051 (CHARSET_REVERSE_CHARSET): Likewise.
9052 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
9053 eight-bit-graphic.
9054 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
9055 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
9056 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
9057 encounter an invalid multibyte sequence.
9058 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
9059 sequence is always valid.
9060 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
52283633 9061 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
c9671f81
KH
9062 (CHAR_STRING): For 8-bit characters, call char_to_string.
9063 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
9064 multibyte sequence is always valid.
9065 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
52283633
SM
9066 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
9067 (str_as_unibyte): Extern them.
c9671f81 9068 (BCOPY_SHORT): Fix a bug.
52283633 9069 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
c9671f81
KH
9070 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
9071 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
9072 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
9073
bd4bde7f 9074 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81 9075 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
52283633
SM
9076 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
9077 (EMIT_BYTES): New macros.
9078 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
9079 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
c9671f81
KH
9080 macros deleted.
9081 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
9082 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
9083 check the validity of multibyte sequence.
9084 (decode_coding_emacs_mule): New function.
9085 (encode_coding_emacs_mule): New macro.
9086 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
9087 the source.
9088 (DECODE_ISO_CHARACTER): Just return a character code.
9089 (DECODE_COMPOSITION_START): Set coding->result instead of result.
9090 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
9091 EMIT_CHAR to produced decoded characters. Exit the loop only by
9092 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
9093 block here.
9094 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
9095 only position codes for an invalid character.
9096 (encode_designation_at_bol): Return new destination pointer. 5th
9097 arg DSTP is changed to DST.
9098 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
9099 from the source by ONE_MORE_CHAR. Don't handle the case of last
9100 block here.
9101 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
9102 macros deleted.
52283633
SM
9103 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
9104 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
c9671f81
KH
9105 TWO_MORE_BYTES to fetch a byte from the source.
9106 (encode_eol): Pay attention to coding->src_multibyte.
9107 (detect_coding, detect_eol): Preserve members src_multibyte and
9108 dst_multibyte.
9109 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
9110 (encoding_buffer_size): Set magnification to 3 for all coding
9111 systems that require encoding.
9112 (ccl_coding_driver): For decoding, be sure that the result is
9113 valid multibyte sequence.
9114 (decode_coding): Initialize coding->errors and coding->result.
9115 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
9116 and raw-text, always call decode_eol. Handle the case of last
9117 block here. If not coding->dst_multibyte, convert the resulting
9118 sequence to unibyte.
9119 (encode_coding): Initialize coding->errors and coding->result.
9120 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
9121 and raw-text, always call encode_eol. Handle the case of last
9122 block here.
9123 (shrink_decoding_region, shrink_encoding_region): Detect cases
9124 that we can't skip data more rigidly.
9125 (code_convert_region): Setup src_multibyte and dst_multibyte
9126 members of coding. For decoding, if the buffer is multibyte,
9127 convert the source sequence to unibyte in advance. For encoding,
9128 if the buffer is multibyte, convert the resulting sequence to
9129 multibyte afterward.
9130 (run_pre_post_conversion_on_str): New function.
9131 (code_convert_string): Deleted and divided into the following two.
9132 (decode_coding_string, encode_coding_string): New functions.
9133 (code_convert_string1, code_convert_string_norecord): Call one of
9134 above.
9135 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
9136 MAKE_NON_ASCII_CHAR.
52283633
SM
9137 (Fset_terminal_coding_system_internal)
9138 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
c9671f81
KH
9139 and dst_multibyte members.
9140 (init_coding_once): Initialize iso_code_class with new enum
9141 ISO_control_0 and ISO_control_1.
9142
9143 * coding.h (enum iso_code_class_type): Member ISO_control_code is
9144 devided into ISO_control_0 and ISO_control_1.
9145 (struct coding_system): New members src_multibyte, dst_multibyte,
9146 errors, and result. Delete member fake_multibyte.
9147 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
9148 nonzero.
9149 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
9150 nonzero.
9151
9152 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
9153 (Faset): Likewise.
9154
9155 * editfns.c (Fformat): Be sure to convert 8-bit characters to
9156 multibyte form.
9157 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
9158 combining occurs.
9159 (Ftranspose_region): Delete codes for handling byte combining.
9160
9161 * fileio.c (Finsert_file_contents): Setup src_multibyte and
9162 dst_multibyte members of coding. On handling REPLACE on unibyte
9163 buffer, convert the result of decode_coding to unibyte. On
9164 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 9165 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
9166 multibyteness of the source (buffer or string).
9167
9168 * fns.c (concat): Handle 8-bit characters correctly.
9169 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
9170 unibyte in the result.
9171 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
9172 valid multibyte form in the result.
9173 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
9174 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
9175 return -1, signal an error.
9176 (base64_encode_1): New arg MULTIBYTE. Get each character by
9177 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
9178 character is found, return -1.
9179 (Fbase64_decode_region): Delete codes for handling byte-combining.
9180 Treat each decoded byte as a unibyte character.
9181 (Fbase64_decode_string): Return unibyte string.
9182 (Fcompare_strings, concat, string_byte_to_char): Use
9183 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
9184 FETCH_STRING_CHAR_ADVANCE.
9185 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
9186 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
9187
9188 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
9189 SPLIT_NON_ASCII_CHAR.
9190 (fontset_ref_via_base, fontset_set): Likewise
9191
9192 * insdel.c (adjust_markers_for_record_delete): Deleted.
9193 (adjust_markers_for_insert): Argument changed. Caller changed.
9194 (adjust_markers_for_replace): Likewise.
52283633
SM
9195 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
9196 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
c9671f81
KH
9197 (copy_text): Delete unused local varialbe c_save. For converting
9198 to multibyte, be sure to make all 8-bit characters in valid
9199 multibyte form.
9200 (count_size_as_multibyte): Handle 8-bit characters correctly.
52283633
SM
9201 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
9202 (adjust_after_replace, replace_range, del_range_2)
c9671f81 9203 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
52283633
SM
9204 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
9205 (adjust_after_replace, replace_range, del_range_2) Delete codes for
c9671f81
KH
9206 handling byte combining.
9207 (adjust_before_replace): Deleted.
427ec082 9208
c9671f81
KH
9209 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
9210 SPLIT_NON_ASCII_CHAR.
9211 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
52283633 9212 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
9213 (Fkey_description): Likewise.
9214
9215 * lread.c (read1): On reading multibyte string, be sure to make
9216 all 8-bit chararacters in valid multibyte form.
9217 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
9218
9219 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
9220 unconditionally.
9221
9222 * process.c (Fstart_process): GCPRO current_dir before calling
9223 Ffind_operation_coding_system. Encode arguments here.
9224 (create_process): Don't encode arguments here. Setup
9225 src_multibyte and dst_multibyte members of struct coding.
9226 (read_process_output): Setup src_multibyte and dst_multibyte
9227 members of struct coding. If the output is to multibyte buffer,
9228 always decode the output of the process. Adjust the
52283633 9229 representation of 8-bit characters to the multibyteness of the output.
c9671f81
KH
9230 (send_process): Setup coding->src_multibyte according to the
9231 multibyteness of the source.
9232
52283633 9233 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
9234 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
9235 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
9236
52283633 9237 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
c9671f81
KH
9238
9239 * w16select.c (Fw16_set_clipboard_data): Setup members
9240 src_multibyte and dst_multibyte of coding. Adjusted for the
9241 change for find_charset_in_str.
9242 (Fw16_get_clipboard_data): Likewise.
9243
9244 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
9245 dst_multibyte of coding.
9246 (x_to_w32_font): Likewise.
9247
9248 * w32select.c (Fw32_set_clipboard_data): Setup members
9249 src_multibyte and dst_multibyte of coding. Adjusted for the
9250 change for find_charset_in_str.
9251 (Fw32_get_clipboard_data): Likewise.
9252
9253 * xdisp.c (get_next_display_element): Handle 8-bit characters
9254 correctly.
52283633
SM
9255 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
9256 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
c9671f81
KH
9257
9258 * xselect.c (selection_data_to_lisp_data): Setup members
9259 src_multibyte and dst_multibyte of coding. Adjusted for the
9260 change for find_charset_in_str.
9261 (lisp_data_to_selection_data): Likewise.
9262
5f64c9e0
GM
92632000-05-19 Gerd Moellmann <gerd@gnu.org>
9264
52283633 9265 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
2b63d473 9266
5f64c9e0
GM
9267 * dispextern.h (Vimage_types): Add extern declaration.
9268
9269 * xdisp.c (Vimage_types): Moved here from xfns.c.
9270 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
9271
9272 * xfns.c (Vimages_types): Moved to xdisp.c.
9273 (syms_of_xfns): Move `image-types' to xdisp.c.
9274
9275 * w32fns.c (Vimage_types): Removed.
9276 (syms_of_w32fns): Remove `image-types'.
9277
813086ea
KH
92782000-05-18 Kenichi Handa <handa@etl.go.jp>
9279
9280 * fns.c (map_char_table): Pay attention to character number of
9281 charset. Check the validity of charset at the first level. For
9282 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
9283 the default value.
9284
9285 * fontset.c: Include "buffer.h".
9286 (fs_load_font): If the face has fontset, record the face ID in
9287 that fontset.
9288 (Finternal_char_font): New function.
9289 (accumulate_font_info): New function.
9290 (Ffontset_info): Rewritten for the new fontset implementation.
9291 (syms_of_fontset): Register Vdefault_fontset in the first element
9292 of Vfontset_table. Include Vdefault_fontset in
9293 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
9294 function.
9295
bdaebbf0
DL
92962000-05-16 Dave Love <fx@gnu.org>
9297
9298 * m/iris5d.h: Deleted -- unused.
9299
cb613bb8
GM
93002000-05-16 Gerd Moellmann <gerd@gnu.org>
9301
b15f3b77
GM
9302 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
9303 `invalid' instead of `illegal'.
9304
9305 * indent.c (Fmove_to_column): When ending within a tab, insert
9306 spaces first so that markers at the end of the tab get adjusted.
9307
835c1b36
GM
9308 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
9309 buffer list that wasn't selected in that frame.
9310
cb613bb8
GM
9311 * filelock.c (get_boot_time): To obtain an 8 char file name, which
9312 is needed on mescaline, use a 2 char prefix, and call
9313 make_temp_name with second arg non-zero.
9314
9315 * fileio.c (make_temp_name): New function, extracted from
9316 Fmake_temp_name.
9317 (Fmake_temp_name): Use it.
9318
f685bea9
EZ
93192000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
9320
52283633 9321 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
f685bea9 9322
a1b8d58b
GM
93232000-05-15 Gerd Moellmann <gerd@gnu.org>
9324
9325 * Makefile.in (lisp): Add env.elc.
9326
9327 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
9328
a265079f
GM
93292000-05-12 Gerd Moellmann <gerd@gnu.org>
9330
9331 * search.c (Freplace_match): Handle case of `\N' in the
9332 replacement when there's no group N.
9333
da4496b6
GM
93342000-05-11 Gerd Moellmann <gerd@gnu.org>
9335
0ace421a
GM
9336 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
9337 of the message to message_dolog.
9338
1172eb8d
GM
9339 * keyboard.c (read_char): Don't clear current message for help
9340 events; let the code handling help events handle this. Change
9341 code detecting help events that should be ignored.
9342
da4496b6
GM
9343 * xdisp.c (handle_single_display_prop): Don't try to set PT if
9344 we're interating over a string.
9345
0623e40f
DL
93462000-05-09 Dave Love <fx@gnu.org>
9347
9348 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
9349 that offset before writing. Move gcpro region past call of
9350 Ffile_regular_p.
9351
bae2503b
DL
93522000-05-04 Dave Love <fx@gnu.org>
9353
9354 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
9355
ec82fb2f
GM
93562000-05-04 Gerd Moellmann <gerd@gnu.org>
9357
9358 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
9359 of inserted characters when BUF equals the current buffer, and PT
9360 is in front of or equal to FROM.
9361
cbf18892
GM
93622000-05-03 Gerd Moellmann <gerd@gnu.org>
9363
4ff40dd0
GM
9364 * xdisp.c (handle_single_display_prop): If display property value
9365 is invalid, or something not supported on the frame, restore
9366 iterator's position to what it was initially. Make sure to return
9367 0 for invalid and unsupported property values.
9368
cbf18892
GM
9369 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
9370 that x_per_char_metric returns null.
9371
1b0672c3
GM
93722000-05-02 Gerd Moellmann <gerd@gnu.org>
9373
576da55d
GM
9374 * xterm.h (struct face): Add forward declaration.
9375 (struct image): Ditto.
9376 (image_ascent): Add prototype.
9377
9378 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
9379 (x_draw_image_relief, x_draw_image_foreground_1): Call function
9380 image_ascent instead of using IMAGE_ASCENT.
9381
9382 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
9383 (IMAGE_ASCENT): Removed.
9384
9385 * xfns.c (Qcenter): New variable.
9386 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
9387 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
9388 (image_ascent): New function.
9389 (lookup_image): Recognize `:ascent center'.
9390 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
9391 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
9392 (xbm_load): Don't set image's ascent here.
9393 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
9394 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
9395 check ascent values here.
9396 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
9397 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
9398 (syms_of_xfns): Initialize Qcenter.
9399
1b0672c3
GM
9400 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
9401 to the limits, increase the limits.
9402
0d7811ed
KH
94032000-05-01 Kenichi Handa <handa@etl.go.jp>
9404
9405 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
52283633 9406 Check Vfont_encoding_alist against the full name of the opened font.
0d7811ed 9407
a943a5ca
GM
94082000-04-28 Gerd Moellmann <gerd@gnu.org>
9409
9410 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
9411 taller than the window.
9412
5dba1e29
KH
94132000-04-28 Kenichi Handa <handa@etl.go.jp>
9414
9415 * xfaces.c (realize_x_face): Fix the argument of the second
9416 xassert. BASE_FACE may not be a face for ASCII.
9417
353964e3
GM
94182000-04-27 Gerd Moellmann <gerd@gnu.org>
9419
c76e04a8
GM
9420 * print.c (print_object): Treat print-length < 0 as nil.
9421
9422 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
9423
9424 * s/freebsd.h (TERMCAP_OBJ): Removed.
9425 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
9426
9427 * lread.c (read1): Don't treat period followed by certain
9428 characters as symbol start.
9429
9430 * xfns.c (slurp_file): New function.
9431 (xbm_image_p): Handle case of in-memory XBM files.
9432 (xbm_scan): Rewritten to work on memory buffers instead of files.
9433 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
9434 Work on memory buffers instead of files. If DATA is null test
9435 if buffer looks like an in-memory XBM file.
9436 (xbm_load_image): Renamed from xbm_load_image_file. Work on
9437 memory buffers instead of files.
9438 (xbm_file_p): New function.
9439 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
9440
353964e3
GM
9441 * lread.c (end_of_file_error): New function.
9442 (read1): Call it instead of signaling `end-of-file' directly.
9443
427ec082 9444 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
9445 with Fprinc instead of Fprin1.
9446
24d744ac
KR
94472000-04-26 Ken Raeburn <raeburn@gnu.org>
9448
9449 * window.c (freeze_window_start): Check that minibuffer scroll
9450 window isn't nil before extracting the window structure pointer
9451 from it.
9452
9453 * undo.c (record_delete): If we hit the end of the undo list, stop
9454 picking elements apart.
9455
7464346d
GM
94562000-04-26 Gerd Moellmann <gerd@gnu.org>
9457
9458 * xdisp.c (display_line): If lines are continued, restore
9459 iterator's ascent/descent information to the values before the
9460 first glyph not fitting on the line.
9461
612839b6
GM
94622000-04-25 Gerd Moellmann <gerd@gnu.org>
9463
9464 * xdisp.c (try_window_id) <all changes above window start>: Adjust
52283633 9465 positions in glyph matrix. Don't compute new window end positions.
612839b6
GM
9466
9467 * dispnew.c (increment_matrix_positions): Renamed from
9468 increment_glyph_matrix_buffer_positions.
9469 (increment_row_positions): Renamed from
9470 increment_glyph_row_buffer_positions.
9471
9472 * dispextern.h: Change names of renamed functions from dispnew.c
9473 in prototypes.
9474
cc181e95
GM
94752000-04-24 Gerd Moellmann <gerd@gnu.org>
9476
abfcc168
GM
9477 * fileio.c (Fdo_auto_save): Create directories for auto-save
9478 list file if necessary.
9479
cc181e95
GM
9480 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
9481 from buffer or frame.
9482 (automatic_hscrolling_p): New variable.
9483 (hscroll_windows): Scroll windows horizontally only if automatic
9484 hscrolling is allowed.
9485 (syms_of_xdisp): New variable `automatic-hscrolling'.
9486
9487 * frame.h (struct frame): Add member extra_line_spacing.
9488
9489 * xfns.c (x_set_line_spacing): New function.
9490 (Fx_create_frame): Set line spacing from resources.
9491 (Qline_spacing): New variable.
9492 (syms_of_xfns): Initialize Qline_spacing.
427ec082 9493
cc181e95
GM
9494 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
9495
9496 * buffer.c (init_buffer_once): Handle extra_line_spacing.
9497 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 9498 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
9499 extra_line_spacing from default value.
9500 (init_buffer_once): Initialize default value of extra_line_spacing.
9501
9502 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
9503 and extra3.
9504
9505 * xterm.c (x_produce_glyphs): Remove reference to struct it's
9506 prompt_width. Add extra line spacing.
9507
9508 * term.c (produce_glyphs): Remove reference to struct it's
9509 prompt_width.
9510
9511 * dispextern.h (struct it): Remove member prompt_width, add
9512 extra_line_spacing.
9513
58827478
GM
95142000-04-22 Gerd Moellmann <gerd@gnu.org>
9515
9516 * dispnew.c (update_frame_line): When writing a whole line, make
9517 sure cursor is in the right row afterwards, otherwise a use of
9518 capability `ch' in cmgoto might leave the cursor in the row below.
9519
25a87f42
GM
95202000-04-21 Gerd Moellmann <gerd@gnu.org>
9521
9522 * lisp.h (struct Lisp_Buffer_Cons): Remove.
9523
9524 * keyboard.c (timer_check): Fix typo in comment.
9525
54edf5c2
KH
95262000-04-21 Kenichi Handa <handa@etl.go.jp>
9527
9528 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
9529 name change: ch -> character.
9530
3a64eef5
GM
95312000-04-20 Gerd Moellmann <gerd@gnu.org>
9532
9533 * keyboard.c (echo_message_buffer): New variable.
9534 (echo_now): Set echo_message_buffer to the echo area buffer used
9535 to display the echo.
9536 (cancel_echoing): Reset echo_message_buffer to nil.
9537 (read_char): Code rewritten that handles canceling an echo or
9538 echoing a dash, respectively.
9539
9540 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
9541 directory doesn't exist.
9542
6142fdcb
DL
95432000-04-19 Dave Love <fx@gnu.org>
9544
9545 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
9546 (concat): Don't allow numeric args.
9547 (Fconcat): Doc change.
6142fdcb 9548
ac6b5352
SM
95492000-04-19 Stefan Monnier <monnier@cs.yale.edu>
9550
9551 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
9552 instead define end_match(1|2) more carefully.
9553 Use GET_CHAR_BEFORE_2 for `begline'.
9554
cb9215e4
GM
95552000-04-19 Gerd Moellmann <gerd@gnu.org>
9556
5e3dac3f
GM
9557 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
9558 on 64-bit systems where NULL is defined as `0'.
9559
9560 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
9561 the `variable argument list' to make it work on Alpha.
9562
cb9215e4
GM
9563 * m/alpha.h (_LP64) [!_LP64]: Define.
9564 (ORDINARY_LINK): Define for NetBSD.
9565
9566 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 9567
f532dca0
DL
95682000-04-19 Dave Love <fx@gnu.org>
9569
c750667e
DL
9570 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
9571 change.
9572
9573 * Makefile.in (LIBS): Don't use.
9574 (GETLOADAVG_OBJ): Define again.
9575 (otherobj): Add GETLOADAVG_OBJ.
9576
f532dca0
DL
9577 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
9578
1c7e22fd
GM
95792000-04-18 Gerd Moellmann <gerd@gnu.org>
9580
f6d3257b
GM
9581 * lread.c (read_filtered_event): Cancel and start busy cursor.
9582
427ec082 9583 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
9584 that the per-character metrics may be null.
9585
e10f64e7
GM
95862000-04-17 Gerd Moellmann <gerd@gnu.org>
9587
0daee095
GM
9588 * buffer.c (clone_per_buffer_values): New function.
9589 (Fmake_indirect_buffer): Add optional argument CLONE. Call
9590 clone_per_buffer_values if CLONE is not nil.
9591
e10f64e7
GM
9592 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
9593
38687d43
DL
95942000-04-16 Dave Love <fx@gnu.org>
9595
9596 * Makefile.in: Remove obsolete localcpp stuff.
9597 (GETLOADAVG_OBJ): Don't define.
9598 (obj): Move LIBOBJS...
9599 (otherobj): ... to here.
9600 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
9601 whitespace-only lines after the continuation (Irix).
9602
c21c7262
GM
96032000-04-14 Gerd Moellmann <gerd@gnu.org>
9604
9605 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
9606
9607 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
9608
314767c0
DL
96092000-04-14 Dave Love <fx@gnu.org>
9610
9611 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
9612 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
9613 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
9614 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
9615 NLIST_STRUCT.
9616
9617 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
9618 autoconfiscated HAVE_GETLOADAVG.
9619
9620 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
9621 BROKEN_MKTIME.
9622
a2522dca
GM
96232000-04-14 Gerd Moellmann <gerd@gnu.org>
9624
9625 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
52283633 9626 (fill_in_lock_file_name): Avoid existing files that aren't links.
a2522dca 9627
33744b5d
DL
96282000-04-14 Dave Love <fx@gnu.org>
9629
c21c7262 9630 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
9631 (INTERVAL_SRC): Convert to make variable.
9632 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
9633 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
9634 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
9635 add LIBOBJS.
9636 (SOME_MACHINE_OBJECTS): Remove interval stuff.
9637 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
9638 (shortlisp): Add facemenu, float-sup, frame.
9639 (SOME_MACHINE_LISP): Remove them from here.
9640 (LIBES): Change unused LDLIBS to autoconf LIBS.
9641
9642 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
9643
9d3d5916
KH
96442000-04-14 Kenichi Handa <handa@etl.go.jp>
9645
9646 * composite.c (update_compositions): If FROM and TO are not in a
9647 valid range, do nothing.
9648
198e3c7a
GM
96492000-04-13 Gerd Moellmann <gerd@gnu.org>
9650
52283633 9651 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
198e3c7a 9652
52283633 9653 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
198e3c7a
GM
9654
9655 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
9656 as TERMCAP_OBJ.
9657
055a28c9
EZ
96582000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
9659
9660 * fileio.c (a_write): Remove redundant semi-colons.
9661 (e_write): Return -1 if failed to write all the data.
9662 This fixes the changes made at 1999-12-15.
9663
f5c75033
DL
96642000-04-12 Dave Love <fx@gnu.org>
9665
9666 * fns.c (mapcar1): Test for null vals to support mapc.
9667 (Fmapc): New function.
9668
0c3cfc51
EZ
96692000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
9670
9671 * msdos.c (NUM_MOUSE_BUTTONS): Define.
9672 (IT_frame_up_to_date): Support the buffer local value of
9673 cursor-type, if defined.
9674
33465a31
DL
96752000-04-10 Dave Love <fx@gnu.org>
9676
9677 * editfns.c (preceding-char, following-char): Doc fix.
9678
6ed56568
KR
96792000-04-10 Ken Raeburn <raeburn@gnu.org>
9680
9681 * Makefile.in (temacs): Revert 2000-03-12 change.
9682
7cf80d4e
JR
96832000-04-10 Jason Rumney <jasonr@gnu.org>
9684
9685 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
9686
34f3f342
GM
96872000-04-10 Gerd Moellmann <gerd@gnu.org>
9688
1a1b1895
GM
9689 * xdisp.c (setup_echo_area_for_printing): Choose an echo
9690 area buffer, if it's not set up yet.
9691
34f3f342
GM
9692 * indent.c (compute_motion): Set immediate_quit.
9693
be0dbdab
GM
96942000-04-09 Gerd Moellmann <gerd@gnu.org>
9695
52283633 9696 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
c45be9ac
GM
9697 (realize_tty_face): Suppress boldness if colors are the inverse of
9698 the default colors, and tty_suppress_bold_inverse_default_colors_p
9699 is set.
9700 (Ftty_suppress_bold_inverse_default_colors): New function.
9701 (syms_of_xfaces): Defsubr it.
9702
be0dbdab
GM
9703 * buffer.c (Frestore_buffer_modified_p): New function.
9704 (syms_of_buffer): Defsubr it.
9705
e8413c3b
KR
97062000-04-08 Ken Raeburn <raeburn@gnu.org>
9707
87f67317
KR
9708 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
9709 charset id (int) argument, not a charset (Lisp_Object).
9710
e8413c3b
KR
9711 * coding.h (code_convert_string): Declare.
9712 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
9713 object, as the fourth argument to code_convert_string.
9714
52283633 9715 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
e8413c3b
KR
9716 (Fset_fontset_font): Use EQ to compare lisp objects.
9717
7c752c80
KR
97182000-04-05 Ken Raeburn <raeburn@gnu.org>
9719
c0333abc
KR
9720 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
9721 a pointer that looks like a lisp object.
9722 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
9723 zero, instead see whether it's an integer object, since they can't
9724 have intervals.
9725 (GET_INTERVAL_OBJECT): Simply assign to the destination.
9726
52283633
SM
9727 * dispnew.c (allocate_matrices_for_frame_redisplay)
9728 (direct_output_forward_char): Use X(U)INT and make_number as needed
7c752c80
KR
9729 to convert between (unsigned) int values and lisp integers.
9730 * keyboard.c (read_key_sequence): Likewise.
9731 * lread.c (substitute_object_recurse): Likewise.
9732 * fns.c (concat, hash_lookup, hash_remove): Likewise.
52283633
SM
9733 * minibuf.c (do_completion, Fminibuffer_complete_word)
9734 (Fminibuffer_completion_help): Likewise.
7c752c80
KR
9735 * term.c (produce_special_glyphs): Likewise.
9736
9737 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
9738 * print.c (print_preprocess, print_object): Likewise.
9739
9740 * search.c (compile_pattern): Use NILP when checking for nil.
9741
74e49b38
KR
9742 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
9743 __OPTIMIZE__]: Provide a GNU C macro version that handles
9744 lisp-object unions.
9745 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
9746 field, to better cope with ENABLE_CHECKING and calls that modify a
9747 Lisp_Object using its old value.
9748
685e5ed2
GM
97492000-04-04 Gerd Moellmann <gerd@gnu.org>
9750
c407c570
GM
9751 * window.c (compare_window_configurations): Signal an error
9752 if parameters C1 or C2 aren't window configurations.
9753
685e5ed2
GM
9754 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
9755 AFTER_POTENTIAL_GC calls around calls to functions that can
9756 signal an error and thus invoke the debugger.
9757
587a49ab
GM
97582000-04-03 Gerd Moellmann <gerd@gnu.org>
9759
62f20204
GM
9760 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
9761 an error if decoding fails.
9762
587a49ab
GM
9763 * keyboard.c (lispy_mouse_names): Variable removed.
9764 (Vlispy_mouse_stem): New variable.
9765 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
9766 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
9767 for any mouse button number. Increase size of mouse_syms and
9768 button_down_location as needed. Call modify_event_symbol with
9769 different arguments.
9770 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
9771 Call modify_event_symbol with different arguments.
9772 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
9773 for any button number. Call modify_event_symbol with different
9774 arguments.
9775 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
9776 Accept a string for NAME_ALIST_OR_STEM.
9777
9778 * lisp.h (larger_vector): Add prototype.
9779
9780 * fns.c (larger_vector): Make externally visible.
9781
9782 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
9783
2d1675e4
SM
97842000-04-02 Stefan Monnier <monnier@cs.yale.edu>
9785
9786 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
9787 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
9788 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
9789 we are between str1 and str2.
9790 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
9791 (PATFETCH): Use `TRANSLATE'.
9792 (PATFETCH_RAW): Fetch multibyte char if applicable.
9793 (PATUNFETCH): Remove.
9794 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
9795 When writing a char, write it directly into the pattern buffer rather
9796 than going needlessly through a temp char-array.
9797 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
9798 multibyte magic and remove the useless `#ifdef emacs'.
9799 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
9800 buffer.
9801
9802 * regex.h (struct re_pattern_buffer): Make field `multibyte'
9803 conditional on `emacs'.
9804
9805 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
9806
cc2d8c6b
KR
98072000-04-01 Ken Raeburn <raeburn@gnu.org>
9808
9809 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
9810 non-union-type versions of XMARK and friends here, because XMARK
9811 and friends won't work on an integer field if NO_UNION_TYPE is not
9812 defined.
52283633 9813 (make_number): Define as a function if it's not defined as a macro.
cc2d8c6b 9814
52283633 9815 * composite.c (run_composite_function): Use NILP when checking for nil.
09654086
KR
9816 (syms_of_composite): Delete local var NARGS, pass an int as first
9817 argument to Fmake_hash_table.
9818
2387b382
KR
9819 * editfns.c (text_property_stickiness): Use NILP to test
9820 Lisp_Object boolean value.
9821 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
9822 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
9823 problems reading from and changing the same lisp value in an
9824 XSETSTRING call.
9825
27660e89
GM
98262000-04-01 Gerd Moellmann <gerd@gnu.org>
9827
9828 * term.c (TN_no_color_video): New variable.
9829 (term_init): Intitialize TN_no_color_video.
9830 (enum no_color_bit): New enumeration.
9831 (MAY_USE_WITH_COLORS_P): New macro.
9832 (turn_on_face): Use it to determine if attributes may be used
9833 combined with colors.
9834
3578db3c
KR
98352000-04-01 Ken Raeburn <raeburn@gnu.org>
9836
9837 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
52283633 9838 with int lvalues via casts; instead, just yield lisp object lvalues.
3578db3c
KR
9839 (enlarge_window): Variable sizep now points to Lisp_Object. Use
9840 proper accessor macros.
9841 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
9842 (grow_mini_window): Fix typo getting int value of root->height.
9843
6fc556fd
KR
9844 * xdisp.c (compute_string_pos): Fix order of arguments to
9845 string_pos_nchars_ahead.
9846 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
9847 count arg to variable-arg routines like Frun_hook_with_args and
9848 Fformat.
587a49ab
GM
9849 (back_to_previous_visible_line_start)
9850 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
9851 fixed-arg routines like Fget_char_property and Fmake_string.
9852 (reconsider_clip_changes): Use XINT when comparing integer lisp
9853 objects, or passing them as int arguments.
587a49ab
GM
9854 (mark_window_display_accurate, insert_left_trunc_glyphs)
9855 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
9856 storing or passing integer values as lisp objects.
9857 (set_cursor_from_row, highlight_trailing_whitespace): Use
9858 INTEGERP, not implicit test against zero, for glyph object.
9859 (try_window_id): Don't use make_number when we want an int value.
9860
9861 * xfaces.c (xlfd_symbolic_value): Make last argument a
9862 Lisp_Object, to be consistent with callers.
9863 (Fbitmap_spec_p): Use XINT to get numeric value of height.
9864 (lface_hash): Apply XFASTINT to lisp values before folding in.
9865
9866 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
9867 fill in window width and height. Pass an int, not a lisp object,
9868 as first arg to Finsert.
9869
6e7b2457
GM
98702000-04-01 Gerd Moellmann <gerd@gnu.org>
9871
610d841e
GM
9872 * xfaces.c (realize_basic_faces): Block input while realizing
9873 the faces.
9874
6e7b2457
GM
9875 * keyboard.c (lispy_mouse_names): Add additional mouse names.
9876
9877 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
9878
aa110c0c
GM
98792000-03-31 Gerd Moellmann <gerd@gnu.org>
9880
9881 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 9882 or ASCII, handle case that per-char metric is null.
aa110c0c 9883
8801a864
KR
98842000-03-30 Ken Raeburn <raeburn@gnu.org>
9885
c6129d7e
KR
9886 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
9887
52283633
SM
9888 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
9889 (XSUBR, XBUFFER): Verify correct object type before returning
8801a864
KR
9890 pointer, using eassert.
9891 * frame.h (XFRAME): Likewise.
9892
52283633
SM
9893 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
9894 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
9895 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
8801a864 9896 * data.c (set_internal): Likewise.
52283633
SM
9897 * dispextern.h (WINDOW_WANTS_MODELINE_P)
9898 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
8801a864
KR
9899 * fileio.c (auto_save_1): Likewise.
9900 * insdel.c (check_markers): Likewise.
9901 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
9902 * undo.c (record_insert): Likewise.
9903 * vmsproc.c (child_sig): Likewise.
9904 * window.c (unshow_buffer, window_loop): Likewise.
9905 * xterm.c (x_erase_phys_cursor): Likewise.
9906
8e7af858
GM
99072000-03-30 Gerd Moellmann <gerd@gnu.org>
9908
9909 * xfns.c (free_image_cache): Free the cache structure itself
9910 last, after all its members have been freed.
9911
9912 * lisp.h (xstrdup): Add prototype.
9913
9914 * alloc.c (xstrdup): Moved here from xfaces.c.
9915 (allocating_for_lisp): Variable removed.
52283633 9916 (lisp_malloc): Block input around the calls to malloc and mem_insert.
8e7af858
GM
9917
9918 * xfaces.c (realize_tty_face): Use find_symbol_value instead
9919 of Fsymbol_value.
9920 (xstrdup): Moved to alloc.c.
9921
e0b8c689
KR
99222000-03-29 Ken Raeburn <raeburn@gnu.org>
9923
b96f9fb7
KR
9924 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
9925
9926 * emacs.c (main): Fix sense of no-loadup test.
9927
e0b8c689
KR
9928 * config.in (ENABLE_CHECKING): Undef.
9929
9930 * lisp.h (struct interval): Replace "parent" field with a union of
9931 interval pointer and Lisp_Object; add new bitfield to use as
9932 discriminant. Change other flag fields to bitfields.
9933 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
52283633
SM
9934 is defined and the supplied test fails, print a message and abort.
9935 (eassert): New macro. Use CHECK to provide an assert-like facility.
e0b8c689
KR
9936
9937 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
9938 pointers; abort if the value looks like a lisp object.
52283633
SM
9939 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
9940 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
e0b8c689
KR
9941 Modify for new interval parent definition.
9942
52283633
SM
9943 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
9944 (UNMARK_BALANCE_INTERVALS): Update references that need an
e0b8c689
KR
9945 addressable lisp object in the interval structure.
9946 (die): New function.
9947 (suppress_checking): New variable.
9948
9949 * intervals.c (interval_start_pos): Just return 0 if there's no
9950 parent object.
9951
f83c5440
GM
99522000-03-29 Gerd Moellmann <gerd@gnu.org>
9953
9954 * lread.c (read1): Accept `.' (period) as symbol start like in CL
9955 and earlier Emacs versions.
9956
9957 * keyboard.c (Ftop_level): Cancel busy-cursor.
9958
9959 * eval.c (call_debugger): Cancel busy-cursor.
9960
fdce64ff
KH
99612000-03-29 Kenichi Handa <handa@etl.go.jp>
9962
9963 * search.c (Freplace_match): Adjust multibyteness of the current
52283633 9964 buffer and NEWTEXT. Free allocated memory before signaling an error.
fdce64ff 9965
f6a3f532
SM
99662000-03-28 Stefan Monnier <monnier@cs.yale.edu>
9967
9968 * regex.c (analyse_first): New function obtained by ripping out most
9969 of re_compile_fastmap and generalizing it a little bit so that it
9970 can also just return whether a given (sub)pattern can match the empty
9971 string or not.
9972 (regex_compile): Use `analyse_first' to decide whether the loop-check
9973 needs to be done or not for *, +, *? and +? (the loop check is costly
9974 for non-greedy repetition).
9975 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
9976
e9b309ac
DL
99772000-03-28 Dave Love <fx@gnu.org>
9978
52283633 9979 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
bb15bd9a 9980
e9b309ac
DL
9981 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
9982
ed0767d8
SM
99832000-03-27 Stefan Monnier <monnier@cs.yale.edu>
9984
9985 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
9986 an expression.
9987 (enum re_opcode_t): Update description of succeed_n.
9988 (PATFETCH): Always define.
9989 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
9990 operators, char classes, shy-groups and intervals).
9991 Optimize special cases of intervals so as to only use succeed_n and
9992 jump_n when really needed.
9993 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
9994 that we don't have to handle the special cases any more.
9995 Simplify on_failure_jump handling as well.
9996
e11e7e46
JR
99972000-03-28 Jason Rumney <jasonr@gnu.org>
9998
9999 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
10000
88faab89
GM
100012000-03-27 Gerd Moellmann <gerd@gnu.org>
10002
182ff242
GM
10003 * s/freebsd.h (GC_SETJMP_WORKS): Define.
10004
10005 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 10006
182ff242
GM
10007 * alloc.c (mark_maybe_object): New function.
10008 (mark_memory): Use it.
10009 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
10010 (setjmp_tested_p, longjmp_done): New variables.
10011 (test_setjmp): New function.
10012 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
10013 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
10014
c1005d06
GM
10015 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
10016 to DEC_TEXT_POS and INC_TEXT_POS.
10017
10018 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
10019 with parameter MULTIBYTE_P.
10020
52283633 10021 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
c1005d06 10022
7439e5b9 10023 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
10024 buffers because it looks for multibyte character byte sequences
10025 which don't exist in unibyte text.
7439e5b9 10026
d9c545da
GM
10027 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
10028
11fd416e 10029 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
10030 [DEBUG_X_COLORS]: New functions.
10031 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
10032
10033 * xfns.c (x_set_cursor_color): Get color reference counts right.
10034
10035 * xterm.c (x_copy_color): New function.
10036 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
10037
10038 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
10039 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
10040 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
10041 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
10042 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
10043 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
10044 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
10045 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
10046 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
10047 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
10048
11fd416e
GM
10049 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
10050 names for handling per-buffer variables.
d9c545da
GM
10051
10052 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
10053 instead of MAX_BUFFER_LOCAL_VARS.
10054 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
10055
10056 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
10057
88faab89
GM
10058 * xfns.c (x_specified_cursor_type): New function.
10059 (x_set_cursor_type): Use it.
10060
10061 * buffer.h (struct buffer): Add cursor_type.
10062
d80f42b7
SM
100632000-03-26 Stefan Monnier <monnier@cs.yale.edu>
10064
10065 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
52283633
SM
10066 (print_partial_compiled_pattern, re_compile_fastmap):
10067 Handle new opcode.
d80f42b7
SM
10068 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
10069 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
10070 executing it as well as when popping it off the stack to find infinite
10071 loops in non-greedy repetition operators.
10072
89e80928
GM
100732000-03-26 Gerd Moellmann <gerd@gnu.org>
10074
3d4ff2dd
GM
10075 * doc.c (Qfunction_documentation): New variable.
10076 (syms_of_doc): Initialize Qfunction_documentation.
10077 (Fdocumentation): If FUNCTION is a symbol with non-nil
10078 `function-documentation' property, return a documentation derived
10079 from that.
10080
bd96bd79
GM
10081 * buffer.c (syms_of_buffer): Add default-cursor-type.
10082 (init_buffer_once): Don't let cursor_type have a local value
10083 in every buffer.
10084
19d1bc27
GM
10085 * xterm.c (x_display_and_set_cursor): Choose cursor depending
10086 on buffer-local value of cursor_type.
10087 (x_draw_bar_cursor): Add parameter WIDTH.
10088
10089 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
10090 (init_buffer_once): Set default cursor_type value to t.
10091 Mark cursor_type as local everywhere.
10092 (syms_of_buffer): New per-buffer variable cursor-type.
10093
89e80928
GM
10094 * buffer.h (struct buffer): Remove member local_var_flags,
10095 add local_flags.
10096 (MAX_BUFFER_LOCAL_VARS): New macro.
10097 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
10098 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
10099 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
10100 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
10101
52283633 10102 * print.c (print_object): Use new macros for per-buffer variables.
89e80928
GM
10103
10104 * category.c (Fset_category_table): Use new macros for per-buffer
10105 variables.
10106
10107 * buffer.c (buffer_permanent_local_flags): Make a char array.
10108 (max_buffer_local_idx): New variable.
10109 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
10110 for new handling of per-buffer variables.
10111 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
10112 (init_buffer_once): Initialize per-buffer vars differently.
10113 Set max_buffer_local_idx.
10114
10115 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
10116 variables.
10117
52283633 10118 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
89e80928
GM
10119
10120 * data.c (do_symval_forwarding, store_symval_forwarding)
10121 (find_symbol_value, set_internal, default_value, Fset_default)
10122 (Fkill_local_variable, Flocal_variable_p): Use new macros for
10123 per-buffer variables.
10124
10125 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
10126
9a0dd3dc
GM
101272000-03-24 Gerd Moellmann <gerd@gnu.org>
10128
b68c375f
GM
10129 * xterm.c (x_term_init): Unblock input around call1 of
10130 Qvendor_specific_keysyms.
10131
9a0dd3dc
GM
10132 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
10133 (find_defun_start): Consider an open parenthesis in column 0
10134 a defun start only if open_paren_in_column_0_is_defun_start is set.
10135 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
10136
7973e637
SM
101372000-03-24 Stefan Monnier <monnier@cs.yale.edu>
10138
10139 * eval.c (Fautoload): Add entry in load-history (if after dump).
10140 * lread.c (load-history): Update docstring.
10141
39210e90
GM
101422000-03-24 Gerd Moellmann <gerd@gnu.org>
10143
10144 * indent.c (Fvertical_motion): Always use the current buffer.
10145 Temporarily change the window's buffer, if necessary.
10146
72db3ab5
GM
101472000-03-23 Gerd Moellmann <gerd@gnu.org>
10148
10149 * xterm.c (fast_find_position): Make sure not to consider rows
10150 not visible in the window.
10151
990b2375
SM
101522000-03-22 Stefan Monnier <monnier@cs.yale.edu>
10153
10154 * regex.c (enum syntaxcode): Provide default for non-Emacs.
10155 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
10156
ff4df011
JR
101572000-03-22 Jason Rumney <jasonr@gnu.org>
10158
10159 * w32menu.c (single_submenu): Set help string to NULL if none.
10160 (w32_menu_show): Set help string correctly.
10161 (add-menu-item): Set help string in MIIM_DATA for menu item.
10162 Load SetMenuItemInfoA explicitly.
10163 (w32_menu_display_help): New function.
427ec082 10164
ff4df011
JR
10165 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
10166 (QCdata): Moved to xdisp.c.
10167
10168 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
10169 (Vw32_charset_to_codepage_alist): Removed.
10170 (Vw32_charset_info_alist): New variable.
52283633
SM
10171 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
10172 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
10173 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
ff4df011
JR
10174 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
10175 with TODO comment.
10176 (w32_codepage_for_font): Use Vw32_charset_info_alist.
10177 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
10178 Define Vw32_charset_info_alist and w32_charset symbols.
10179
101802000-03-22 Jason Rumney <jasonr@gnu.org>
10181
10182 * makefile.nt (w32bdf.obj): Update dependencies.
10183
10184 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
10185
10186 * w32fns.c: Include fontset.h after dispextern.h.
10187 (Fx_create_frame): Do not create fontset.
10188 (w32_load_system_font): Doc fix.
10189 (Fx_close_connection): Free full_name if it is not shared.
10190
10191 * w32term.c: Include fontset.h after dispextern.h.
52283633
SM
10192 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
10193 Callers updated.
ff4df011
JR
10194 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
10195 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
10196 (w32_font_is_double_byte): New function, needs body.
10197 (x_append_glyph): Set glyph->glyph_not_available_p.
10198 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
10199 it->charset. If it->multibyte_p is zero and it->c is a multibyte
10200 character, convert it to a unibyte character.
10201 (struct glyph_string): Delete member `charset'.
10202 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
10203 calculating it is found.
10204 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
10205 the case that per char metric is not available correctly.
10206 (x_fill_glyph_string): Handle the case that the specific glyph is
10207 not available correctly.
10208 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
10209 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
10210 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
10211 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
10212 fontset. Don't call FS_LOAD_FONT.
10213
439d5cb4
KR
102142000-03-22 Ken Raeburn <raeburn@gnu.org>
10215
10216 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
10217 (INT_LISPLIKE): New macro.
10218 (NULL_INTERVAL_P): Use it.
52283633
SM
10219 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
10220 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
10221 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
439d5cb4
KR
10222
10223 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
10224 explicit references to "parent" field of struct interval and
10225 associated unclean type conversions.
52283633
SM
10226 * intervals.c (create_root_interval, root_interval, rotate_right)
10227 (rotate_left, balance_possible_root_interval, split_interval_right)
10228 (split_interval_left, interval_start_pos, find_interval)
10229 (next_interval, previous_interval, update_interval)
10230 (adjust_intervals_for_insertion, delete_node, delete_interval)
10231 (adjust_intervals_for_deletion, merge_interval_right)
10232 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
10233 (copy_intervals_to_string): Likewise.
439d5cb4
KR
10234 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
10235 Likewise.
10236 * syntax.c (update_syntax_table): Likewise.
10237
10238 * intervals.c (reproduce_tree_obj): New function, like
10239 reproduce_tree but takes a Lisp_Object for the parent. Declare
10240 with prototype.
10241 (graft_intervals_into_buffer): Use it when appropriate.
10242 (reproduce_tree): Declare with prototype.
10243 (balance_possible_root_interval): Check that the parent is a lisp
10244 object before trying to examine its type.
10245
ee1c5b21
GM
102462000-03-22 Gerd Moellmann <gerd@gnu.org>
10247
10248 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
10249 as strings only if both are known to be strings.
10250
10251 * s/openbsd.h (LIBS_TERMCAP): Undef.
10252
1fb352e0
SM
102532000-03-21 Stefan Monnier <monnier@cs.yale.edu>
10254
10255 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
10256 definitions for non-Emacs compilation.
10257 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
10258 outside of `#ifdef emacs'.
10259 (print_partial_compiled_pattern): Update.
10260 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
10261 (re_compile_fastmap): Merge handling of charset and charset_not (for
10262 emacs and non-emacs compilation as well).
10263 Similarly for (not)categoryspec and (not)syntaxspec.
10264 Don't use the fastmap when reaching `anychar' since the added
10265 complexity is not justified.
10266 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
10267 and (not)syntaxspec. Merge (not)categoryspec.
10268
fdaa1f77
KH
102692000-03-22 Kenichi Handa <handa@etl.go.jp>
10270
52283633
SM
10271 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
10272 (FACE_FOR_CHAR): Define them differently for the configuration of
ff1a0d8e 10273 --without-x.
fdaa1f77 10274
d152fb46
DL
102752000-03-21 Dave Love <fx@gnu.org>
10276
10277 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
10278 doc string.
10279
d2cafc8c
GM
102802000-03-21 Gerd Moellmann <gerd@gnu.org>
10281
10282 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
10283 (lface_fully_specified_p): Don't check contents of
10284 LFACE_FONT_INDEX because that attribute is optional.
10285 (realize_x_face): Remove now unwarranted xassert.
10286
9111d4b5
KH
102872000-03-21 Kenichi HANDA <handa@etl.go.jp>
10288
10289 The following changes are to make font selection based on
10290 characters, not charset. In addition, they recover fontset
10291 facilities while utilizing the new font selection mechanism.
10292
6c4bfdc0
KH
10293 * Makefile.in (fontset.o): Depend on dispextern.h.
10294
10295 * alloc.c (mark_face_cache): Don't mark face->registry.
10296
9111d4b5
KH
10297 * dispextern.h (struct glyph): New member glyph_not_available_p.
10298 Use 22 bits for face_id.
10299 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
10300 (struct face): Delete member registry, new member ascii_face.
10301 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
10302 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
10303 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
52283633 10304 (struct it): Delete member charset, new member glyph_not_available_p.
9111d4b5
KH
10305
10306 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
10307 (struct fontset_info, struct fontset_data): Structs removed.
52283633
SM
10308 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
10309 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
9111d4b5 10310 (fs_load_font, fs_query_fontset): Adjusted for new argument.
52283633
SM
10311 (fs_free_face_fontset, fontset_font_pattern)
10312 (face_suitable_for_char_p, face_for_char)
10313 (make_fontset_for_ascii_face): Extern them.
9111d4b5
KH
10314 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
10315 (FS_LOAD_FACE_FONT): New macro.
10316
10317 * fontset.c: All codes rewritten or adjusted for the change of
10318 fontset implementation. Now fontset is represented by char table.
52283633
SM
10319 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
10320 Variables removed.
9111d4b5 10321 (my_strcasecmp): Function removed.
52283633 10322 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
9111d4b5 10323 (AREF, ASIZE): New macros.
52283633
SM
10324 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
10325 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
10326 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
10327 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
10328 (fontset_id_valid_p, font_family_registry, fontset_name)
10329 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
10330 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
9111d4b5
KH
10331 New functions.
10332 (fs_load_font): New arg FACE. Caller changed.
10333 (fs_query_fontset): Argument changed. Caller changed.
10334 (Fquery_fontset): call fs_query_fontset.
10335 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
10336 Functions removed.
52283633
SM
10337 (clear_fontset_elements, check_registry_encoding)
10338 (check_fontset_name): New functions.
9111d4b5
KH
10339 (syms_of_fontset): Set char-table-extra-slots property of fontset
10340 to 3. Staticpro and initialize Vfontset_table and
10341 Vdefault_fontset. Defsubr fontset_font and fontset_list.
10342
10343 * frame.h (struct frame): Member `fontset_data' removed.
10344 (FRAME_FONTSET_DATA): Macro removed.
10345
10346 * frame.c (make_frame): Don't allocate f->fontset_data.
10347 (Fdelete_frame): Don't free f->fontset_data.
10348
6c4bfdc0
KH
10349 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
10350
9111d4b5
KH
10351 * xdisp.c (charset_at_position): Function removed.
10352 (init_iterator): Don't set member charset of struct `it'.
52283633
SM
10353 (handle_face_prop, reseat_to_string, set_iterator_to_next)
10354 (next_element_from_display_vector, insert_left_trunc_glyphs):
9111d4b5
KH
10355 Likewise.
10356 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
10357 FACE_FOR_CHARSET.
52283633
SM
10358 (get_next_display_element, append_space)
10359 (extend_face_to_end_of_line): Likewise.
9111d4b5
KH
10360
10361 * xfaces.c (Qx_charset_registry, Vface_default_registry):
10362 Variables removed.
10363 (clear_font_table, frame_update_line_height, load_face_font):
10364 Adjusted for the change of fontset implementation.
10365 (load_face_fontset_font): Function removed.
10366 (pixel_point_size): New function.
10367 (font_list): Argument type changed. Caller changed.
10368 (LFACE_FONT): New macro.
10369 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
10370 (set_lface_from_font_name): Type of arg FONTNAME is changed to
10371 Lisp_Object. Determine the font name by actually loading a font
10372 by the specified pattern. Set LFACE_FONT (lface) to the specified
10373 pattern. Even if a font is not found, don't try alternatives.
10374 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
10375 (set_font_frame_param): If `font' is specified in lface, use it.
10376 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
10377 (lface_same_font_attributes_p): Likewise.
10378 (make_realized_face): Arguent changed. Caller changed. Set
10379 face->ascii_face to face itself.
10380 (free_realized_face): Free face->fontset if face is for ASCII.
52283633
SM
10381 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
10382 (deduce_unibyte_registry, x_charset_registry): Functions removed.
9111d4b5
KH
10383 (free_realized_multibyte_face): New function.
10384 (lookup_face, lookup_named_face, lookup_derived_face): Argument
10385 changed. Caller changed.
10386 (try_font_list): Argument type changed.
10387 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
10388 (choose_face_font): Argument changed. Handle fontset properly.
10389 (choose_face_fontset_font): Function removed.
10390 (realize_default_face, realize_named_face): Don't remove the
10391 former face here.
10392 (realize_face): Argument changed. Caller changed. Remove face
52283633 10393 with the arg former_face_id in advance. Load font for the new face.
9111d4b5
KH
10394 (realize_x_face): Argument changed. Caller changed. For a
10395 multibyte character, share fontset with base_face. For a single
52283633 10396 byte character, make a new realized fontset. Don't load a font here.
9111d4b5
KH
10397 (realize_tty_face): Argument changed. Caller changed.
10398 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
10399 (face_at_buffer_position): Don't check multibyte_p for returning
10400 DEFAULT_FACE_ID.
10401 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
10402 FACE_SUITABLE_FOR_CHARSET_P.
10403 (syms_of_xfaces): Remove code for Qx_charset_registry and
10404 Vface_default_registry.
10405
6c4bfdc0
KH
10406 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
10407 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
10408 (x_per_char_metric): Don't try FONT->default_char. Even if
10409 pcm->width is zero, glyph bits may exist.
10410 (x_encode_char): Always initialize char2b->byte1.
10411 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
52283633 10412 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
9111d4b5
KH
10413 (x_append_glyph): Set glyph->glyph_not_available_p.
10414 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
10415 it->charset. Handle the case that per char metric is not
10416 available. If it->multibyte_p is zero and it->c is a multibyte
10417 character, convert it to a unibyte character.
10418 (struct glyph_string): Delete member `charset'.
10419 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
10420 the case that per char metric is not available correctly.
10421 (x_fill_glyph_string): Handle the case that the specific glyph is
10422 not available correctly.
10423 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
10424 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
10425 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
10426 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
10427 fontset. Don't call FS_LOAD_FONT.
10428
10429 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
10430 (x_create_tip_frame): Likewise.
10431 (Fx_close_connection): Free full_name of font_info.
10432
10433 * fns.c (optimize_sub_char_table): New function.
10434 (Foptimize_char_table): New function.
10435 (syms_of_fns): Defsubr Soptimize_char_table.
10436
b33dd3b0
GM
104372000-03-20 Gerd Moellmann <gerd@gnu.org>
10438
10439 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
10440 only if buffer is displayed in some window.
10441
10442 * xdisp.c (handle_single_display_prop): Initialize local `value'.
10443 (try_window_reusing_current_matrix): Don't call scroll run
10444 function if run's current and desired position are the same;
10445 this prevents cursor flickering.
10446
4e8a9132
SM
104472000-03-19 Stefan Monnier <monnier@cs.yale.edu>
10448
10449 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
10450
10451 * regex.c (RE_STRING_CHAR): New macro.
10452 (GET_CHAR_AFER_2): Remove.
10453 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
10454 (enum re_opcode_t): Remove on_failure_jump_exclusive.
10455 (print_partial_compiled_pattern, re_compile_fastmap)
10456 (re_match_2_internal): Remove on_failure_jump_exclusive.
10457 (regex_compile): Turn optimizable P+ loops into PP*, so that the
10458 optimization only need to work for * (ie. can use of_keep_string_jump).
10459 Remove the special case for .*\n since it is now covered by the general
10460 optimization.
10461 (re_search_2): Don't bother with `room'.
10462 (skip_one_char): New function.
10463 (skip_noops): Simplify since `memory' is not needed any more.
10464 (mutually_exclusive_p): Restructure slightly to use `switch' and
10465 add handling for "all" remaining cases.
10466 (re_match_2_internal): Change on_failure_jump_smart to use
10467 on_failure_keep_string_jump (and redirect the end-of-loop jump)
10468 rather than on_failure_jump_exclusive.
10469
2136fdd4
GM
104702000-03-19 Gerd Moellmann <gerd@gnu.org>
10471
10472 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
10473 number of bits per RGB because it's everywhere used as the depth
10474 of the visual.
10475
10476 * term.c (calculate_costs): Remove code dealing with X frames.
10477
18e21ce8 104782000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
10479
10480 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
10481
d7b511c4
GM
104822000-03-18 Gerd Moellmann <gerd@gnu.org>
10483
10484 * lread.c (read_integer): Unread the last char not consumed.
10485
16b5d424
GM
104862000-03-17 Gerd Moellmann <gerd@gnu.org>
10487
10488 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 10489 which are in the process of being deleted.
16b5d424 10490
1fa28578
GM
104912000-03-16 Gerd Moellmann <gerd@gnu.org>
10492
83488cce
GM
10493 * Makefile.in (mostlyclean): Add `*.core'.
10494 (clean): Add `bootstrap-emacs'.
10495
1fa28578
GM
10496 * lread.c (read_integer): New function.
10497 (read1): Support read syntax #o, #x, #b, #r.
10498
99633e97
SM
104992000-03-15 Stefan Monnier <monnier@cs.yale.edu>
10500
1fa28578
GM
10501 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
10502 make sure POINTER_TO_OFFSET gives the same value before and after
10503 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
10504 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
10505 (debug): Now only active if > 0 rather than if != 0.
10506 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
10507 (print_partial_compiled_pattern): Add missing `succeed' case. Use
10508 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
10509 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
10510 (store_op1, store_op2, insert_op1, insert_op2)
10511 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
10512 (group_in_compile_stack): Move to after its arg's types are
10513 declared and add a prototype.
99633e97 10514 (PATFETCH): Define in terms of PATFETCH_RAW.
52283633 10515 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
99633e97 10516 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
10517 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
10518 indentation of the greedy-op and shy-group code.
99633e97
SM
10519 (at_(beg|end)line_loc_p): Fix argument's types.
10520 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
10521 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
10522 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
10523 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
10524 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
10525 QUIT unconditionally.
99633e97 10526
699238d9
GM
105272000-03-15 Gerd Moellmann <gerd@gnu.org>
10528
10529 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
10530 a sole completion.
10531
10532 * process.c (send_process): Add a hint that the function
10533 can call Lisp code to its comment.
10534
10535 * lread.c (load_dangerous_libraries): New variable.
10536 (Vbytecomp_version_regexp): New variable.
10537 (safe_to_load_p): New function.
10538 (Fload): Handle files not compiled with Emacs specially.
10539 (syms_of_lread): New Lisp variable load-dangerous-libraries.
10540
34e23e5a
GM
105412000-03-14 Gerd Moellmann <gerd@gnu.org>
10542
9c763cca
GM
10543 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
10544
10545 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
10546 support functions only if HAVE_X11R6_XIM is defined.
10547 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
10548
10549 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
10550
10551 * xfns.c (X_I18N_INHIBITED): Don't define.
52283633 10552 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
9c763cca
GM
10553 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
10554
10555 * config.in (HAVE_X_I18N): Moved here from xterm.h.
10556 (HAVE_X11R6_XIM): Define.
10557
10558 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
10559
34e23e5a
GM
10560 * xterm.c (x_term_init): Add support for X resource `synchronous'.
10561 If set, call XSynchronize.
10562
66f0296e
SM
105632000-03-13 Stefan Monnier <monnier@cs.yale.edu>
10564
34e23e5a
GM
10565 * regex.c: Declare a new type `re_char' used throughout the code
10566 for the string char type. It's `const unsigned char' to match the
10567 rest of Emacs. Consistently make sure all pointers to strings use
52283633 10568 it and make sure all pointers into the pattern use `unsigned char'.
66f0296e 10569 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
10570 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
10571 code duplication.
66f0296e
SM
10572
10573 * charset.h (GET_CHAR_AFTER_2): Remove.
10574 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
10575
854a025c
KR
105762000-03-12 Ken Raeburn <raeburn@gnu.org>
10577
10578 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
10579 variable before the invocation of YMF_PASS_LDFLAGS, in case both
10580 of them try to use backquotes.
10581
b9d2c7e2
DL
105822000-03-12 Dave Love <fx@gnu.org>
10583
10584 * unexelf.c: Restore changes of 1999-10-19.
10585 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
10586 fix its type and alignment; copy it from current process.
10587
5e5dff44
GM
105882000-03-12 Gerd Moellmann <gerd@gnu.org>
10589
9b2f3c38
GM
10590 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
10591 has been found. Fix bug not computing timer's predecessor.
10592
427ec082 10593 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
10594 file name.
10595
e1cff360
GM
10596 * window.c (Fsave_window_excursion): Doc fix.
10597
52283633 10598 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
5e5dff44 10599
e411ce4b
EZ
106002000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
10601
10602 * msdos.c (vga_installed): New function, code moved from
10603 dos_set_window_size.
10604 (Qbar, Qcursor_type, outside_cursor): New variables.
10605 (syms_of_msdos): Intern and staticpro them.
10606 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
10607 shape used outside Emacs when called for the first time.
10608 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
10609 cursor shape used outside Emacs.
10610 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
10611 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
10612 type has changed.
10613 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
10614 parameters specify the cursor. Make qreverse a global
10615 variable (renamed to Qreverse).
10616
80460654
GM
106172000-03-09 Gerd Moellmann <gerd@gnu.org>
10618
10619 * fns.c (Fy_or_n_p): Cancel busy-cursor.
10620
95cd4c40
SM
106212000-03-08 Stefan Monnier <monnier@cs.yale.edu>
10622
10623 This is a big redesign of failure-stack and register handling, prompted
10624 by bugs revealed when trying to add shy-groups. Overall, what happened
10625 is that loops are now structured a little differently, groups can be
10626 shy and the code is a little simpler.
10627
10628 * regex.h: Update the copyright.
10629 (RE_SHY_GROUPS): New value.
10630 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
10631 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
10632
80460654
GM
10633 * regex.c (enum re_opcode_t): Remove jump_past_alt,
10634 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
10635 on_failure_jump_(exclusive, loop and smart). Also fix the comment
10636 for (start|stop)_memory since they now only take one argument (the
10637 second has becomes unnecessary).
52283633 10638 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
80460654
GM
10639 (print_compiled_pattern): Use %ld to printf long ints and flush to
10640 make debugging a little easier.
95cd4c40
SM
10641 (union fail_stack_elt): Make the integer unsigned.
10642 (struct fail_stack_type): Add a `frame' element.
10643 (INIT_FAIL_STACK): Init `frame' as well.
10644 (POP_PATTERN_OP): New macro for re_compile_fastmap.
10645 (DEBUG_PUSH, DEBUG_POP): Remove.
10646 (NUM_REG_ITEMS): Remove.
10647 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
10648 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
10649 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 10650 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
52283633
SM
10651 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
10652 New macros.
80460654
GM
10653 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
10654 address pushed is not the destination of the jump but the source
10655 of it instead.
95cd4c40
SM
10656 (NUM_FAILURE_ITEMS): Remove.
10657 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
10658 registers before the actual failure point). Don't hardcode any
10659 meaning for str==NULL anymore.
95cd4c40 10660 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
10661 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
10662 Remove.
95cd4c40
SM
10663 (REG_UNSET_VALUE): Use NULL (why not?).
10664 (compile_range): Remove declaration since it doesn't exist.
10665 (struct compile_stack_elt_t): Remove inner_group_offset.
10666 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
10667 (regex_grow_registers): Remove dead code.
10668 (FIXUP_ALT_JUMP): New macro.
80460654
GM
10669 (regex_compile): Add shy-groups Change loops to use
10670 on_failure_jump_smart&jump instead of
10671 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
10672 initial (dummy_failure_)jump. Remove c1_base (looks like unused
10673 variable to me). Use `jump' instead of `jump_past_alt' and don't
10674 bother with push_dummy_failure in alternatives since it is now
10675 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
10676 emacs' for (re)allocating the stack.
10677 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
10678 from loop when bufp->can_be_null rather than jumping to `done'.
10679 Avoid jumping backwards so as to ensure termination. Use
10680 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
10681 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 10682 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
10683 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
10684 improve mutually_exclusive_p to handle ".+\n".
52283633
SM
10685 (lowest_active_reg, highest_active_reg)
10686 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
80460654
GM
10687 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
10688 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
10689 variables. Push register (in `start_memory') on the stack rather
10690 than storing it in old_reg(start|end). Remove the cycle detection
10691 from `stop_memory', replaced by the use of on_failure_jump_loop
10692 for greedy loops. Add code for the new on_failure_jump_<foo>.
10693 Remove ad-hoc code in `on_failure_jump' to push more registers in
10694 the case of a loop. Take out code from `maybe_pop_jump' into
10695 separate functions and adapt it to the semantics of
10696 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
10697 and push_dummy_failure. Remove dummy_failure handling and
10698 handling of `failures to jump to on_failure_jump' (this last one
10699 was already dead code, it seems).
10700 (group_match_null_string_p, alt_match_null_string_p)
10701 (common_op_match_null_string_p): Remove.
95cd4c40 10702
7397acc4
DL
107032000-03-08 Dave Love <fx@gnu.org>
10704
10705 * config.in: Don't depend on __STDC__ for volatile.
10706 Add POINTER_TYPE, PTR, PROTOTYPES.
10707
10708 * hftctl.c, strftime.c: Use PROTOTYPES.
10709 * eval.c (find_handler_clause): Likewise.
10710
10711 * mem-limits.h: Use POINTER_TYPE.
10712
10713 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
10714 (memory_warnings): Declare using POINTER_TYPE.
10715
5e91ff9e
GM
107162000-03-08 Gerd Moellmann <gerd@gnu.org>
10717
feab4fba
GM
10718 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
10719
52283633 10720 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
25edb08f 10721
5e91ff9e
GM
10722 * xfns.c: Remove obsolete code in #if 0.
10723 (Fx_focus_frame): New function.
10724
a735b7e1
KH
107252000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
10726
10727 * coding.c (coding_category_name): Add coding-category-utf-8,
10728 coding-category-utf-16-be, coding-category-utf-16-le.
10729 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
10730 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
10731 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
10732 (detect_coding_utf_8): New function.
10733 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
10734 UTF_16_LOW_SURROGATE_P): New macros.
10735 (detect_coding_utf_16): New function
10736 (detect_coding_mask): When priorities are specified, skip any
10737 categories that have `nil' coding-system. Fix bug of returning
10738 wrong mask when PRIORITIES is specified and detect_coding_XXX()
10739 returns a mask not set in PRIORITIES.
10740 (detect_eol_type_in_2_octet_form): New function.
10741 (detect_eol): selects detect_eol_type_XXX to call according to
10742 cooding->category_idx.
10743 (detect_coding_system): Remove `nil' coding-system in the result.
10744 (Fupdate_coding_systems_internal): Update all coding-categories.
10745
52283633
SM
10746 * coding.h (CODING_CATEGORY_IDX_UTF_8)
10747 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
10748 New macros.
10749 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
10750 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
10751 (CODING_CATEGORY_IDX_UTF_16_LE)
10752 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
10753 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
a735b7e1
KH
10754 (CODING_CATEGORY_MASK_ANY): Include the above macros.
10755 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
10756
9994cc69
GM
107572000-03-07 Gerd Moellmann <gerd@gnu.org>
10758
e9b4e5ff
GM
10759 * doc.c (Fdocumentation_property): If value is not a string,
10760 and doesn't refer to etc/DOC, evaluate it to obtain a string.
10761
f7daf1e1
GM
10762 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
10763 close the display with XtCloseDisplay. This caused a bus error
10764 on OpenWindows.
10765
9994cc69
GM
10766 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
10767 complete but not unique.
10768
4336c705
GM
107692000-03-06 Gerd Moellmann <gerd@gnu.org>
10770
18bb0684
GM
10771 * process.c (send_process): Remove local variable `procname' that
10772 might become invalid when a GC happens. Instead, access the
10773 process name slot directly.
10774
4336c705
GM
10775 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
10776 orig_height if set.
10777
10778 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
10779 orig_height if set.
10780
515d0d0e
EZ
107812000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
10782
10783 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
10784 glyph matrices have been freed.
10785
100b3cbb
GM
107862000-03-05 Gerd Moellmann <gerd@gnu.org>
10787
50df5e5a 10788 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 10789 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
10790
10791 * xfns.c (QCdata): Moved to xdisp.c.
10792
10793 * xdisp.c (QCdata): Moved here from xfns.c.
10794 (syms_of_xdisp): Initialize QCdata.
10795
10796 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
10797
10798 * window.c (coordinates_in_window): Use
10799 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
10800 FRAME_INTERNAL_BORDER_WIDTH.
10801
100b3cbb 10802 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 10803 it is obviously invalid.
100b3cbb
GM
10804
10805 * xterm.c (x_term_init): Create a colormap if not using the
10806 default visual.
10807
10808 * xterm.h (select_visual): Change prototype.
10809
10810 * xfns.c (select_visual): Rewritten. Recognize user-specified
10811 visual classes.
10812 (visual_classes): New variable.
10813
64d739c4
GM
108142000-03-04 Gerd Moellmann <gerd@gnu.org>
10815
10816 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
10817 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
10818 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
52283633 10819 (x_decode_color): Don't handle allocation of white and black specially.
64d739c4
GM
10820 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
10821 XtNcolormap resources.
10822 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
10823 (Fx_create_frame): Initialize color members of x_output structure.
10824 (xpm_load): Pass colormap to XPM lib.
10825
10826 * xfaces.c (x_free_colors): Access colormap of frame using
10827 FRAME_X_COLORMAP. Be paranoid about freeing black and white
10828 when default colormap is used.
10829
10830 * xterm.c (x_term_init): Set Colormap member of x_display_info
10831 structure. Copy colormap if resource `privateColormap' is
10832 specified (PseudoColor only).
10833 (x_setup_relief_color): Access colormap of frame using
10834 FRAME_X_COLORMAP.
10835
10836 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
10837 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
10838
c3cee013
JR
108392000-03-04 Jason Rumney <jasonr@gnu.org>
10840
10841 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
10842 other non-platform-specific equivalents.
64d739c4 10843 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
10844 specific functions and macros as their w32 equivalents where
10845 non-platform-specifics are not available.
10846 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
10847 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
10848 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
10849 (frame_update_line_height): Use macros to access f->output_data.
10850 (defined_color): Remove FIXME comments; fixed.
10851 (x_face_list_fonts, prepare_face_for_display): Put X specifics
10852 into #ifdef blocks. Add WINDOWSNT blocks.
10853 (Fx_list_fonts): Use macros for accessing font data.
10854 (set_lface_from_font_name): Different default fonts for X and
10855 WINDOWSNT.
10856 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
10857 scalable for backward compatibility.
64d739c4 10858 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
10859 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
10860
64d739c4 10861 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
10862 syms_of_w32faces.
10863
10864 * makefile.nt (w32faces.obj): Remove.
10865 (xfaces.obj): Add.
10866
807cc41c
JR
108672000-03-03 Jason Rumney <jasonr@gnu.org>
10868
10869 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
10870 correct parameters.
10871
0007072a
KR
108722000-03-03 Ken Raeburn <raeburn@gnu.org>
10873
10874 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
10875 standard ELF definitions here if the system header does not.
10876
71a6ba55
GM
108772000-03-03 Gerd Moellmann <gerd@gnu.org>
10878
10879 * xterm.c (PER_CHAR_METRIC): Removed.
10880 (x_per_char_metric_1, x_default_char): New functions.
10881 (x_per_char_metric): If font's default char is invalid, return
10882 metrics of a suitably chosen usable default char.
10883 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
10884 char, replace occurrences of unprintable chars with a suitably
10885 chosen usable default char.
71a6ba55 10886
900fa1f1
GM
108872000-03-02 Gerd Moellmann <gerd@gnu.org>
10888
42f55fe0
GM
10889 * xterm.c (note_mouse_highlight): Return quickly if frame's
10890 glyph matrices have been freed.
10891
10892 * dispnew.c (free_glyphs): Block input while freeing matrices.
10893
900fa1f1
GM
10894 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
10895
52283633
SM
10896 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
10897 Use x_free_colors.
900fa1f1
GM
10898
10899 * dispextern.h (x_free_colors): Add prototype.
10900
10901 * xfaces.c (x_free_colors): New function.
10902 (unload_color, free_face_colors): Use it.
10903
2f950292
EZ
109042000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
10905
10906 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
10907
10908 * window.c [MSDOS]: Include msdos.h.
10909
54d04320
DL
109102000-03-02 Dave Love <fx@gnu.org>
10911
10912 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
10913
10914 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
10915 set C_OPTIMIZE_SWITCH for gcc.
10916
0ba93ac4
KH
109172000-03-02 Kenichi Handa <handa@etl.go.jp>
10918
10919 * coding.c (coding_save_composition): Be sure to allocate
10920 composition data area in coding even if there's no composition in
10921 the current run.
10922
a2bc11d4
JR
109232000-03-01 Jason Rumney <jasonr@gnu.org>
10924
10925 * w32term.c: Equivalent changes to those made to xterm.c on
10926 2000-02-25 and 2000-02-24.
10927
10928 * w32fns.c: Equivalent changes to those made to xfns.c on
10929 2000-02-25 and 2000-02-21.
10930
10931 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
10932 correct line-end convention is followed.
10933
10934 * w32menu.c [HAVE_BOXES]: Remove #undef.
10935 (single_keymap_panes): Remove code for simulating checkmarks.
10936 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
10937 Remove code for drawing simulated checkmarks.
10938 (w32_menu_show): make unibyte help string correctly.
10939 (add_menu_item): draw standard Windows checkmarks. Draw radio
10940 buttons as radio buttons if possible.
10941
72d19d75
GM
109422000-03-01 Gerd Moellmann <gerd@gnu.org>
10943
2df636f4
GM
10944 * sysdep.c (start_of_text): Don't define this function for NetBSD
10945 with ELF.
10946
427ec082 10947 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
10948 Don't define.
10949 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
10950 (LINKER): Don't undef if __NetBSD__ is defined.
10951
10952 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
10953
10954 * fileio.c [__NetBSD__]: Define `unix'.
10955
72d19d75
GM
10956 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
10957
ed4d0512
GM
109582000-02-29 Gerd Moellmann <gerd@gnu.org>
10959
50b1039f
GM
10960 * atimer.c (start_atimer): Don't abort when timers are stopped.
10961 (append_atimer_lists): New function.
10962 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
10963 arbitrary lists of stopped and running atimers.
10964
ed4d0512
GM
10965 * atimer.c (cancel_atimer): Handle canceling an atimer when
10966 some timers are stopped.
10967
10968 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
10969 after canceling it.
10970
10971 * fns.c (maybe_resize_hash_table): Handle case of new size
10972 coming out as being the same as old size.
10973
387023ee
JR
109742000-02-27 Jason Rumney <jasonr@gnu.org>
10975
10976 * makefile.nt: Add atimer.h to dependencies.
10977 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
10978 * w32console.c: Only disable window system features for dispextern.h
10979 (initialize_w32_display): Build a display info for the console.
10980 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
10981 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
10982 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
10983 as 2 button mice.
10984 * w32gui.h (struct W32FontStruct): Revert last change after change
10985 to xdisp.c.
10986 * w32menu.c (single_submenu): Set up help string.
10987 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
10988 (w32_dialog_show): Set up help string.
10989 * w32term.c (w32_display_info_for_display): Remove unused function.
10990 (w32_draw_bitmap): Use pre-built bitmaps.
10991 (w32_initialize_display_info): New function to initialize parts of
10992 display info that are common to both GUI and console frames.
10993 (w32_term_init): Use w32_initialize_display_info. Do not set
10994 Vw32_num_mouse_buttons here, as it is not called for console
10995 frames. Build bitmaps for indicating truncated lines etc.
10996 (x_delete_display): Destroy pre-built bitmaps.
10997 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
10998 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
10999
4516715a
DL
110002000-02-27 Dave Love <fx@gnu.org>
11001
11002 * lisp.h: Add a bunch of prototypes.
11003
171ca836
KH
110042000-02-26 Kenichi Handa <handa@etl.go.jp>
11005
11006 * keyboard.c (read_char): Set `usec' correctly.
11007
4013921d
KH
110082000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
11009
11010 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
11011 `lambda', set reg[RRR] to the map index.
11012 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
11013 reg[RRR] to 0. Otherwise, set it to -1.
11014
9244a058
GM
110152000-02-25 Gerd Moellmann <gerd@gnu.org>
11016
2df636f4 11017 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 11018
18e21ce8 110192000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 11020
f43d79c1
GM
11021 * fileio.c (Ffile_symlink_p): If result starts with a `/'
11022 and contains a `:', prepend `/:'.
11023
11024 * window.c (select_window_1): If selected_window is nil,
11025 don't "swap out" the buffer's point.
11026 (Fset_window_configuration): Set selected_window to nil
11027 before calling Fselect_window.
11028 (unshow_buffer): Don't set point in buffer from window's point
11029 if another more recently selected window also shows the buffer.
11030
bed0c171
GM
110312000-02-25 Gerd Moellmann <gerd@gnu.org>
11032
449c3c52
GM
11033 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
11034
f5b58615
GM
11035 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
11036 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
52283633
SM
11037 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
11038 New variables.
f5b58615
GM
11039 (DEFAULT_BUSY_CURSOR_DELAY): New define.
11040 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
11041 (hide_busy_cursor): New functions.
11042 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
11043
11044 * minibuf.c (read_minibuf): Cancel busy-cursor.
11045
11046 * keyboard.c (command_loop_1): Call start_busy_cursor before
11047 Fcommand_execute and cancel_busy_cursor after it.
11048 (timer_check): Remove busy-cursor code.
11049 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
11050 cursor timer.
11051
11052 * process.c (wait_reading_process_input): Remove busy-cursor code.
11053
11054 * eval.c (Fsignal): Call cancel_busy_cursor instead of
11055 Fx_hide_busy_cursor.
11056
11057 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
11058 Remove prototyoes.
11059 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
11060
11061 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
11062
11063 * xterm.c (XTread_socket): Remove busy-cursor code.
11064
4eb8436f
GM
11065 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
11066 (build_frame_matrix_from_leaf_window): Put code handling
11067 glyph row's not being a slice of a frame row in #if 0.
11068 (sync_window_with_frame_matrix_rows): New function.
11069 (frame_row_to_window): New function.
11070 (mirror_line_dance): Handle copies between windows.
11071
3cb65b0e
GM
11072 * lread.c (Fload): Use `xfree' instead of `free'.
11073 (init_obarray): Use `xmalloc' instead of `malloc'.
11074
bed0c171
GM
11075 * window.c (Fset_window_buffer): Set WINDOW to the window
11076 after decoding.
2add4349
GM
11077 (coordinates_in_window): Take frame's internal border width
11078 into account.
bed0c171 11079
42088c12
GM
110802000-02-24 Gerd Moellmann <gerd@gnu.org>
11081
11082 * xterm.c (x_display_and_set_cursor): Display cursor of
11083 non-selected windows depending on the setting of
11084 cursor_in_non_selected_windows.
11085
11086 * xdisp.c (cursor_in_non_selected_windows): New variable.
11087 (syms_of_xdisp): DEFVAR_BOOL it.
11088
d1e103b2
GM
110892000-02-23 Gerd Moellmann <gerd@gnu.org>
11090
723e779c
GM
11091 * data.c (Fstring_to_number): If number is greater than what
11092 fits into an integer, return a float.
11093
d1e103b2
GM
11094 * eval.c (specbind): Remove references to
11095 keyword_symbols_constant_flag.
11096
11097 * data.c (keyword_symbols_constant_flag): Removed.
11098 (Fmakunbound, set_internal, syms_of_data): Remove references to
11099 keyword_symbols_constant_flag.
11100
11101 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
11102
214f877f
KH
111032000-02-23 Kenichi Handa <handa@etl.go.jp>
11104
11105 * syntax.c (multibyte_syntax_as_symbol): New variable.
11106 (syms_of_syntax): Declare it as a Lisp variable.
11107 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
11108 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
11109 nonzero, treat all multibyte characters as symbol.
52283633 11110 (init_syntax_once): Give syntax `word' to all multibyte characters.
214f877f 11111
130adcb7
EZ
111122000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
11113
3cb65b0e 11114 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 11115 a deleted frame.
130adcb7 11116
17cbbf95
GM
111172000-02-21 Gerd Moellmann <gerd@gnu.org>
11118
11119 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
11120
11121 * xfns.c (x_window_to_frame, x_any_window_to_frame)
11122 (x_non_menubar_window_to_frame): Check the busy-cursor window.
11123
beb0bc36
DL
111242000-02-21 Dave Love <fx@gnu.org>
11125
11126 * frame.c (Vmouse_position_function): New variable.
11127 (Fmouse_position): Use it.
11128 (syms_of_frame): Install it.
11129
11130 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
11131
1d92afcd
GM
111322000-02-20 Gerd Moellmann <gerd@gnu.org>
11133
11134 * fileio.c (Finsert_file_contents): Unbind the binding of
11135 standard-output done by temp_output_buffer_setup.
329eed9f
GM
11136
11137 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
11138 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
11139 (specbind, unbind_to): Handle most common case of non-constant
11140 symbol with trivial value specially.
11141
11142 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
11143
18e21ce8 111442000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
11145
11146 * data.c (Fmake_variable_buffer_local): Doc fix.
11147 Init found_for_buffer to 0.
11148 (Fmake_variable_frame_local): If the variable has already
11149 been buffer-local, set the check_frame field.
11150
1d4311c3
EZ
111512000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
11152
11153 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
11154 produced for CODING_MODE_LAST_BLOCK requires.
11155
2dc95ddd
DL
111562000-02-18 Dave Love <fx@gnu.org>
11157
11158 * keyboard.c (echo_keystrokes): Remove declaration.
11159 (Vecho_keystrokes) New variable.
11160 (read_char, record_menu_key, read_key_sequence): Use it to allow
11161 use of float value.
11162 (syms_of_keyboard): Change Vecho_keystrokes declaration.
11163
11164 * lread.c: Undef feature selection macros before defining.
11165
f0930f35
GM
111662000-02-18 Gerd Moellmann <gerd@gnu.org>
11167
11168 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
11169 for symbols other than the symbol in question.
11170
e3d4de90
DL
111712000-02-17 Dave Love <fx@gnu.org>
11172
11173 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
11174
0b378936
GM
111752000-02-17 Gerd Moellmann <gerd@gnu.org>
11176
d621caf7
GM
11177 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
11178
0b378936
GM
11179 * alloc.c (enum mem_type): Compile unconditionally.
11180
3b451f74
EZ
111812000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
11182
11183 * xfaces.c (tty_defined_color): Don't return faulire indication
11184 for unspecified-fg and unspecified-bg pseudo-colors.
11185
10689a01
GM
111862000-02-17 Gerd Moellmann <gerd@gnu.org>
11187
1216f5e4
GM
11188 * alloc.c (mark_object): Don't mark symbol names in pure space.
11189 (gc_sweep): Don't unmark symbol names in pure space.
11190
11191 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
11192 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
11193 [GC_MARK_STACK]: New defines.
427ec082 11194 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
11195 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
11196
11197 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
11198
11199 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
11200 allocate_buffer instead of xmalloc.
11201
11202 * alloc.c (toplevel): Include setjmp.h.
11203 (PURE_POINTER_P): New define.
11204 (enum mem_type) [GC_MARK_STACK]: New enumeration.
11205 (Vdead) [GC_MARK_STACK]: New variable.
11206 (lisp_malloc): Add parameter TYPE, call mem_insert if
11207 GC_MARK_STACK is defined.
11208 (allocate_buffer): New function.
427ec082 11209 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
11210 (free_float) [GC_MARK_STACK]: Set type to Vdead.
11211 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
11212 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
11213 (MEM_NIL) [GC_MARK_STACK]: New define.
11214 (struct mem_node) [GC_MARK_STACK]: New structure.
11215 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
11216 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
11217 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
11218 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
11219 (mark_stack) [GC_MARK_STACK]: New functions.
11220 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
11221 (clear_marks): Removed.
11222 (gc_sweep): Set free conses' car, free floats' type, free
11223 symbols' function to Vdead. Use lisp_free to free buffers.
11224 (init_alloc_once): Initialize Vdead.
11225 (survives_gc_p): Return non-zero for pure objects.
11226
11227 * alloc.c: Add comments throughout the file.
11228
2503c8b1
GM
11229 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
11230 that unblocks alarms.
11231
8389e1e2
GM
11232 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
11233 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
11234 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
11235
10689a01 11236 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 11237
bfc17d18
KH
112382000-02-17 Kenichi Handa <handa@etl.go.jp>
11239
4a09dee0
KH
11240 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
11241 avoid infinite error signaling. Allocate sufficient memory for
11242 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 11243
2b927d02
SM
112442000-02-17 Stefan Monnier <monnier@cs.yale.edu>
11245
11246 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
11247 depends on the previous behavior.
11248
b49cb764
GM
112492000-02-16 Gerd Moellmann <gerd@gnu.org>
11250
11251 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
11252
99e95407
GM
112532000-02-15 Gerd Moellmann <gerd@gnu.org>
11254
11255 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
11256
11257 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 11258 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
11259 write(2).
11260
6ffd3cf7
RS
112612000-02-15 Richard M. Stallman <rms@gnu.org>
11262
11263 * data.c (set_internal): Don't make variable buffer-local
11264 if within a let-binding for the same buffer.
11265 (let_shadows_buffer_binding_p): New function.
11266
11267 * eval.c (specbind): For buffer-local value,
11268 record the current buffer also.
11269 (unbind_to): Cope with that change.
11270
cad53475
GM
112712000-02-15 Gerd Moellmann <gerd@gnu.org>
11272
11273 * window.c (Fsave_window_excursion): Doc fix.
11274
1aa963c8
SM
112752000-02-15 Stefan Monnier <monnier@cs.yale.edu>
11276
11277 * syntax.c (back_comment): Make sure we only consider comment-starters
11278 of the relevant style and return -1 in case of a failure to find the
11279 beginning of the comment.
11280 (Fforward_comment): If back_comment fails, go back to the position just
11281 after the comment-end.
11282 (scan_lists): Add comment describing a very minor bug.
11283
b9b84fd3
SM
112842000-02-14 Stefan Monnier <monnier@cs.yale.edu>
11285
11286 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
11287 `completion-regexp-list' in the docstring.
11288
3a28db80
DL
112892000-02-14 Dave Love <fx@gnu.org>
11290
11291 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
11292
fb4a568d
SM
112932000-02-14 Stefan Monnier <monnier@cs.yale.edu>
11294
11295 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
11296 to Emacs' syntax. Also fix the comment about set/not-set meanings
11297 since Emacs syntax is not the value 0 any more.
11298 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
11299 since it's now part of RE_SYNTAX_EMACS.
11300
1063ebb5
DL
113012000-02-12 Dave Love <fx@gnu.org>
11302
52283633 11303 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
1063ebb5 11304
fb07a302
GM
113052000-02-12 Gerd Moellmann <gerd@gnu.org>
11306
11307 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
11308
aaf2320c
DL
113092000-02-12 Dave Love <fx@gnu.org>
11310
11311 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
11312
11313 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
11314 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
11315 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
11316
11317 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
11318
11319 * s/nextstep.h: Don't define HAVE_ALLOCA.
11320
11321 * config.in: Add vfork bits.
11322
eedf8bde
GM
113232000-02-12 Gerd Moellmann <gerd@gnu.org>
11324
11325 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
11326 unwind function to undo the effect of stopping atimers.
11327
52283633 11328 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
eedf8bde
GM
11329
11330 * atimer.c (stopped_atimers): New variable.
11331 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
11332 New functions.
11333
11334 * atimer.h (stop_other_atimers, run_all_atimers)
11335 (unwind_stop_other_atimers): Add function prototypes.
427ec082 11336
eedf8bde
GM
11337 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
11338
8476c2f8
KR
113392000-02-11 Ken Raeburn <raeburn@gnu.org>
11340
11341 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
11342 library may depend on jpeg.
11343 (atimer.o): Depends on atimer.c.
11344
0e85e4a3
KH
113452000-02-11 Kenichi Handa <handa@etl.go.jp>
11346
11347 * insdel.c (del_range_1): Call update_compositions.
11348 (del_range_both): Call update_compositions just once..
11349
97fa0cc8
DL
113502000-02-10 Dave Love <fx@gnu.org>
11351
11352 * xfns.c (create_frame_xic): Fix initialization of automatic
11353 aggregates for pcc.
11354
25566a3c
KH
113552000-02-09 Kenichi Handa <handa@etl.go.jp>
11356
11357 * ccl.c (CCL_MAKE_CHAR): New macro.
11358 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
11359 registers by CCL_MAKE_CHAR before calling translate_char.
11360 <CCL_TranslateCharacterConstTbl> Likewise.
11361
69da54ba
DL
113622000-02-08 Dave Love <fx@gnu.org>
11363
11364 * lread.c (__EXTENSIONS__): Define.
11365
f7136ee8
GM
113662000-02-08 Gerd Moellmann <gerd@gnu.org>
11367
11368 * puresize.h (BASE_PURESIZE): Increase to 650000.
11369
7768790b
EZ
113702000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
11371
11372 * msdos.c (XMenuActivate): Turn off the cursor after displaying
11373 the help message.
11374
38fd211b
EZ
113752000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
11376
11377 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
11378 md, mh, mb, mr, and me to the fake termcap entry.
11379
66e4690f
KR
113802000-02-06 Ken Raeburn <raeburn@gnu.org>
11381
11382 * sound.c (sound_cleanup): Don't call device close routine if the
11383 function pointer is null.
11384
a75dfea0
AI
113852000-02-06 Andrew Innes <andrewi@gnu.org>
11386
11387 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
11388 around image definitions and prototypes.
11389 (gamma_correct) [WINDOWSNT]: New prototype.
11390
11391 * w32term.c (x_make_frame_visible): Replace call to
11392 input_poll_signal with poll_for_input.
11393
11394 * window.c [WINDOWSNT]: Include w32term.h.
11395
11396 * xdisp.c [WINDOWSNT]: Include w32term.h.
11397
11398 * makefile.nt: Add dependencies on w32gui.h.
11399 (OBJ1): Include atimer.obj.
11400 ($(BLD)\atimer.obj): New dependency rule.
11401
11402 * w32.c (sigmask): New function (does nothing).
11403 (sigunblock): Ditto.
11404
11405 * frame.c [WINDOWSNT]: Include w32term.h.
11406
11407 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
11408
11409 * lread.c (syms_of_lread): Fix literal newlines.
11410
11411 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
11412 the string constant limit (2048 bytes) in MSVC.
11413 (main): Ditto.
11414
59ddecde
GM
114152000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
11416
52283633 11417 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
59ddecde
GM
11418 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
11419 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
11420 dispatch the event.
11421
07590973
DL
114222000-02-04 Dave Love <fx@gnu.org>
11423
11424 * fileio.c: Remove some unused vars.
11425 (_GNU_SOURCE): Define (for euidaccess).
11426
11427 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
11428
11429 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
11430 gcpro1, gcpro2.
11431 (read_minibuf): Deal with allow_props correctly.
11432
649351f9
EZ
114332000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
11434
11435 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
11436
66e4690f 114372000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
11438
11439 * search.c (compile_pattern): If a cache entry has a nil regexp,
11440 fill in that entry instead of clobbering a previously cached
11441 string regexp.
11442
66e4690f 114432000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
11444
11445 * puresize.h (BASE_PURESIZE): Increase to 610000.
11446
d240a249
GM
114472000-02-02 Gerd Moellmann <gerd@gnu.org>
11448
11449 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
11450 can GC.
11451
ca91fb26
KH
114522000-02-02 Kenichi Handa <handa@etl.go.jp>
11453
25660570
KH
11454 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
11455 instead of incrementing ic directly.
11456 <CCL_WriteExprConst> Likewise.
11457 <ccl_set_expr>: Set ic to jump_address.
11458
ca91fb26
KH
11459 * fileio.c (e_write): Fix the handling of
11460 CODING_FINISH_INSUFFICIENT_SRC.
11461
2ede9689
DL
114622000-02-01 Dave Love <fx@gnu.org>
11463
11464 * editfns.c (Fpropertize): Doc fix.
11465
11466 * process.c (Fstart_process): Doc fix.
11467
11468 * eval.c: Fix various doc strings not to duplicate information
11469 from help-manyarg-func-alist.
11470
52283633 11471 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
2ede9689
DL
11472
11473 * doc.c (Vhelp_manyarg_func_alist): New variable.
11474 (Fdocumentation): Use it.
11475 (syms_of_doc): Define it.
11476
b6680a0e
GM
114772000-01-31 Gerd Moellmann <gerd@gnu.org>
11478
2cb750ba
GM
11479 * xterm.c (xim_open_dpy): Remove unused local variable.
11480
52283633 11481 * emacs.c (USAGE): Use term `display options' instead of `X options'.
74e9213b
GM
11482
11483 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
11484 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
11485
b6680a0e
GM
11486 * fns.c (sweep_weak_table): New function.
11487 (sweep_weak_hash_tables): Use it. Keep on marking until there
11488 is no more change.
11489
994c5afe
GM
114902000-01-30 Gerd Moellmann <gerd@gnu.org>
11491
11492 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
11493 that XTread_socket does not crash by trying to call XNoOp on a
11494 closed display.
427ec082 11495
f00276e3
JR
114962000-01-30 Jason Rumney <jasonr@gnu.org>
11497
11498 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
11499 Change selected_frame to SELECTED_FRAME ().
11500 (w32_console_mouse_position): Remove #ifndef MULE from around
11501 `insist' parameter.
11502
11503 * makefile.nt: Remove dosfns.obj.
11504
11505 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
11506
11507 * w32fns.c (w32_defined_color): Check for valid frame before
11508 applying gamma correction. Eliminate dependency on frame elsewhere.
11509 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
11510 (w32_to_x_font): Use resx and resy not height_in and width_in.
11511 (x_to_w32_font): Doc fix.
11512 (xlfd_strip_height): New function to strip and return font height.
11513 (w32_font_match): Compare height separately from rest of xlfd
11514 spec, using xlfd_strip_height.
11515
11516 * w32term.c (w32_term_init): Swap resx and height_in, resy and
11517 width_in. Use w32_defined_color in place of defined_color.
11518
11519 * w32faces.c: Merge more of DOS and X specifics in preparation for
11520 merge with xfaces.c.
11521 (defined_color): Remove FIXME comment.
11522 (tty_color_name): Provide w32-specific function.
11523 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
11524
11525 * w32console.c (turn_on_face, turn_off_face): Removed.
11526 (w32_face_attributes): New function.
11527 (Global_variables): Reduce scope where possible.
11528 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
11529 fill attribute.
11530 (hl_mode): Don't modify text attributes.
11531 (write_glyphs): Don't do anything if len <= 0. Use
11532 w32_face_attributes to get attributes for drawing. Write
11533 terminating codes using char_attr_normal.
11534 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
11535 (update_begin, update_end): Likewise.
11536 (vga_stdcolor_name): New function.
11537 (initialize_w32_display): Remove char_attr_reverse and char_attr.
11538 (Fset_screen_color): Remove char_attr_reverse.
11539
b08e8bb2
GM
115402000-01-29 Gerd Moellmann <gerd@gnu.org>
11541
11542 * xfns.c (xic_set_preeditarea): Take window parameter and
11543 window-relative pixel-positions.
11544
11545 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
11546 is its frame's selected window.
11547 (xim_instantiate_callback): Likewise.
11548
11549 * xfns.c (x_create_im): Removed.
11550 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
11551 (supported_xim_styles): Renamed from supported_styles.
11552 (best_xim_style): Renamed from best_style.
11553 (create_frame_xic): Renamed from xic_create_frame.
11554 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 11555
b08e8bb2
GM
115562000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
11557
11558 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
11559 our frames, call XFilterEvent with 2nd parameter `None'.
11560 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
11561 returning XBufferOverflow.
52283633 11562 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
b08e8bb2
GM
11563 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
11564 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
11565 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
11566 (xim_initialize, xim_close)
11567 [HAVE_X_I18N && HAVE_X11R6]: New functions.
11568 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
11569 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
11570 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
11571
11572 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
11573 and `xim_styles'.
11574 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
11575 `xic_style' and `xic_xfs'.
11576 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
11577 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
11578 (FRAME_XIM): Removed.
11579
11580 * xfns.c (supported_styles): New variable.
11581 (DEFAULT_STYLE, DEFAULT_FONT): New macros
11582 (xic_create_xfontset, best_style, xic_create_frame)
11583 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
11584 (xic_set_xfontset): New functions.
11585
142e109c
DL
115862000-01-28 Dave Love <fx@gnu.org>
11587
11588 * s/irix6-5.h: Revert last change after change to irix5-0.h.
11589
11590 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
11591
b02786f9
GM
115922000-01-28 Gerd Moellmann <gerd@gnu.org>
11593
d060bc9f
GM
11594 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
11595 for *scratch* if it already existed.
11596
b02786f9
GM
11597 * emacs.c (USAGE): New macro.
11598 (main): Use it to display usage information.
11599
2c52d7e4
EZ
116002000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
11601
11602 Support for the menu-help feature:
11603
52283633 11604 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
2c52d7e4
EZ
11605
11606 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
11607 part of the line to the termscript file.
11608 (IT_clear_to_end): Clear the entire line, not just its beginning.
11609 (menu_help_message, prev_menu_help_message): New variables.
11610 (IT_menu_make_room): Make room for the help_text member.
11611 (IT_menu_display): New argument disp_help; all callers changed.
11612 If disp_help is non-zero, store the help text of the active menu
11613 item in menu_help_message.
11614 (XMenuAddPane): Initialize the help_text member to NULL.
11615 (XMenuAddSelection): New argument help_text. Store it in the
11616 XMenu structure.
11617 (XMenuActivate): New argument help_callback. If the value of
11618 menu_help_message has changed since the last time, display the
11619 menu help message text while waiting for the mouse to move. Clear
11620 the echo area before exiting.
11621 (XMenuDestroy): Free the help_text member.
11622
ffe0bcd1
GM
116232000-01-27 Gerd Moellmann <gerd@gnu.org>
11624
11625 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
11626 XMenuAddSelection. Pass help callback to XMenuActivate.
11627 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
11628
50dbd23f
EZ
116292000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
11630
11631 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
11632 and EMACS_SET_USECS.
11633
f5941bf8
GM
116342000-01-26 Dave Love <fx@gnu.org>
11635
6c67ddee
DL
11636 * editfns.c (Fchar_after, Fchar_before): Doc fix.
11637
f5941bf8
GM
11638 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
11639 an error may be signalled.
11640
9e49c990
GM
116412000-01-26 Gerd Moellmann <gerd@gnu.org>
11642
fc3cb460
GM
11643 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
11644 LD_SWITCH_SYSTEM inherited from irix5-0.h.
11645
9e49c990
GM
11646 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
11647
d0c037d8
GM
116482000-01-25 Gerd Moellmann <gerd@gnu.org>
11649
11650 * charset.c (Fstring): If there is a multibyte char among
11651 the args, always return a multibyte string.
11652
e12489f9
GM
116532000-01-25 Gerd Moellmann <gerd@gnu.org>
11654
11655 * sysdep.c (sys_select): Turn atimers off and on instead of
11656 recording and restoring old alarm handler
11657
11658 * process.c (toplevel): Include atimer.h.
11659 (create_process_1): Rewritten.
11660 (create_process): Use atimers instead of alarm.
11661 (wait_reading_process_input) [hpux]: Turn atimers off instead
11662 of turning off SIGALRM.
11663 (wait_reading_process_input): Turn off atimers instead off
11664 calling stop_polling.
11665
11666 * emacs.c (main): Call init_atimer.
11667
11668 * keyboard.c (toplevel): Include systime.h and atimer.h.
11669 (polling_for_input): Removed because unused.
11670 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
11671 (poll_timer): New variable.
11672 (poll_for_input, poll_for_input_1): New functions.
11673 (start_polling, stop_polling): Rewritten.
11674
11675 * keyboard.h (polling_for_input): Removed.
427ec082 11676
e12489f9
GM
11677 * atimer.h, atimer.c: New files.
11678
11679 * Makefile.in (obj): Add atimer.o.
11680 (atimer.o): New target.
11681
11682 * blockinput.h (pending_atimers): Add extern declaration.
11683 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
11684
11685 * lisp.h (popup_activated_flag): Add extern declaration.
11686
11687 * xmenu.c (popup_activated_flag): Make externally visible.
52283633 11688 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
e12489f9
GM
11689 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
11690
11691 * xterm.c (toplevel): Include atimer.h.
11692 (toolkit_scroll_bar_interaction): New variable.
11693 (Fxt_process_timeouts): Removed.
11694 (x_process_timeouts): New function.
11695 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
11696 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
11697 (x_make_frame_visible): Call poll_for_input_1 instead of
11698 input_poll_signal. Don't call alarm.
11699 (x_initialize): Install timer calling x_process_timeouts.
427ec082 11700
1e5279b9
DL
117012000-01-24 Dave Love <fx@gnu.org>
11702
6c67ddee 11703 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
11704 Don't use -cckr -- apparently not now necessary.
11705
edf6aeb8
EZ
117062000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
11707
11708 * msdos.c (IT_menu_display): Truncate long menu lines at the right
11709 screen boundary.
11710
9badad41
JR
117112000-01-23 Jason Rumney <jasonr@gnu.org>
11712
11713 * w32fns.c (w32_defined_color): Apply gamma correction before
11714 trying to map to the palette.
11715 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
11716 to w32_clear_rect.
11717
11718 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
11719 here. Callers changed to always pass real device context.
11720 (w32_draw_bitmap): Likewise.
11721 (w32_get_glyph_overhangs): Likewise.
52283633 11722 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
9badad41
JR
11723 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
11724 pfnSetScrollInfo and SetScrollRange.
11725 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
11726 back into MULE characters after decoding them.
11727 (x_get_glyph_face_and_encoding): Likewise.
11728 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
11729 GetCharABCWidthsW fails, since this is defined on Windows 9x.
11730 (x_produce_glyphs): Calculate per char metrics for a character
11731 that we know exists in default font when font_not_found_p is true.
11732
63bd786b
JR
117332000-01-22 Jason Rumney <jasonr@gnu.org>
11734
11735 * makefile.nt (intervals.obj, composite.obj): New modules.
11736 (composite.h): Added as dependency where appropriate.
11737
11738 * w32gui.h (XGCValue): New struct for emulating X GCs.
11739
11740 * w32term.h (XCharStruct): New struct for emulating X.
11741
11742 * w32console.c (turn_on_face, turn_off_face): New functions.
11743 (change_line_highlight): New prototype for new redisplay.
11744 (write_glyphs): Support multibyte text. Support faces.
11745
52283633 11746 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
63bd786b
JR
11747
11748 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
11749 throughout. struct frame * in place of FRAME_PTR.
11750 Skeleton support for images, toolbars, tooltips from xfns.c.
52283633 11751 (Fx_create_frame): Use system default for default scroll bar width.
63bd786b
JR
11752 (w32_get_arg): Renamed from x_get_arg.
11753 (Fx_file_dialog): New function.
11754 (w32_list_fonts): Check cache before asking system.
11755 (Vw32_enable_synthesized_fonts): New variable.
11756 (Vw32_enable_italics): Obsolete, removed.
11757
11758 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
11759 Use SELECTED_FRAME macro.
11760
11761 * w32menu.c: Add skeleton support for help strings on menus.
11762 (add_menu_item): Native checkbox and radio support added, but not
11763 yet enabled due to bugs.
11764 (push_menu_item): Add parameters type, selection and help.
11765 Callers updated.
11766 Formatting changes to reduce unnecessary diffs with xmenu.c.
11767
11768 * w32select.c (Fw32_set_clipboard_data): Update call to
11769 find_charset_in_str.
11770
11771 * w32term.c: Complete rewrite for new redisplay based on new
11772 xterm.c with necessary sections merged back in from old w32term.c.
11773
6ffd3cf7 117742000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
11775
11776 * data.c (set_internal): Further fix in same criterion.
11777
6ffd3cf7 117782000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
11779
11780 * data.c (set_internal): Fix the criteria for whether
11781 to swap out the old cached binding.
11782
60af03f1
DL
117832000-01-19 Dave Love <fx@gnu.org>
11784
11785 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
11786
f9be074f
KH
117872000-01-18 Kenichi Handa <handa@etl.go.jp>
11788
11789 * regex.c (re_compile_fastmap): While checking a range table for
11790 `charset', skip flag bits for a character class correctly.
11791
52b8dbf9
GM
117922000-01-17 Gerd Moellmann <gerd@gnu.org>
11793
d36100c9
GM
11794 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
11795
52283633 11796 * xfns.c (x_window): Call lw_create_widget with new parameter list.
52b8dbf9
GM
11797
11798 * widget.c (EmacsFrameSetCharSize): Change size of children first
52283633 11799 because of problems with main window geometry management under Lesstif.
52b8dbf9
GM
11800
11801 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
11802 MENU_ITEMS_ITEM_.*.
11803 (MENU_ITEMS_ITEM_HELP): New enumerator.
11804 (push_menu_item): Add parameter HELP. Record help in menu_items.
11805 (single_menu_item, single_submenu, list_of_items): Call
11806 push_menu_item with new parameter.
11807 (single_submenu): Set help string in widget value.
11808 (menu_highlight_callback): New function.
11809 (set_frame_menubar): Call lw_create_widget with new
11810 parameter list.
11811 (xmenu_show, xdialog_show): Ditto.
11812
3139018f
GM
118132000-01-13 Gerd Moellmann <gerd@gnu.org>
11814
11815 * sound.c (Fplay_sound): Improve doc string.
11816
83c8f461
RS
118172000-01-11 Richard M. Stallman <rms@gnu.org>
11818
11819 * lisp.h (set_internal): Enter the new arg.
11820
11821 * eval.c (specbind): Record buffer-local variables specially,
11822 indicating which buffer's binding was saved.
11823 (unbind_to): Restore buffer-local variables specially
11824 in the proper buffer.
11825
11826 * data.c (set_internal): New arg BUF.
427ec082 11827
83c8f461
RS
11828 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
11829 * data.c (Fset): Pass new arg to set_internal.
11830 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 11831
1fab1775
GM
118322000-01-11 Gerd Moellmann <gerd@gnu.org>
11833
52283633 11834 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
1fab1775 11835
83c8f461 118362000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
11837
11838 * minibuf.c (Ftry_completion): Doc fix.
11839
7a85e4df
GM
118402000-01-11 Gerd Moellmann <gerd@gnu.org>
11841
11842 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
11843 vector, too.
11844
a970dae4
AS
118452000-01-11 Andreas Schwab <schwab@suse.de>
11846
11847 * coding.c (code_convert_region): Initialize total_skip.
11848
c65d14ee
DL
118492000-01-08 Dave Love <fx@gnu.org>
11850
11851 * eval.c (Fuser_variable_p): Check customizability too.
11852
834938d2
GM
118532000-01-07 Gerd Moellmann <gerd@gnu.org>
11854
11855 * minibuf.c (Fcompleting_read): Doc fix.
11856
e0303cd6
GM
118572000-01-05 Gerd Moellmann <gerd@gnu.org>
11858
8a26744b
GM
11859 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
11860 -L /usr/local/lib.
11861
e0303cd6
GM
11862 * xfns.c (x_create_im): New function to set IM and IC of a frame.
11863 Check that input style is supported before trying to create an
11864 IC for it.
11865 (x_window): Call x_create_im.
427ec082 11866
2e471eb5
GM
118672000-01-04 Gerd Moellmann <gerd@gnu.org>
11868
560a7bd2
GM
11869 * xfns.c (current_gif_memory_src): New variable.
11870 (gif_load): Record the address of the current memory source
11871 in current_gif_memory_src.
11872 (gif_read_from_memory): Use current_gif_memory_src.
11873
f9ee84a3
GM
11874 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
11875 macros statement form.
11876
d1299cde
GM
11877 * sound.c (struct sound): Renamed from struct sound_file.
11878 (struct sound): Add members `data' and `header_size'.
11879 (enum sound_attr): Add SOUND_DATA.
11880 (current_sound, current_sound_device): Variables renamed from
11881 sound_file and sound_device.
11882 (parse_sound): Parse :data.
11883 (parse_sound): Handle sound data in strings.
11884 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 11885 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
11886 needed header size.
11887 (wav_play, au_play): Play sounds from string data.
11888
2e471eb5
GM
11889 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
11890
11891 * lisp.h: Add prototype for allocate_string_data.
11892
52283633 11893 * alloc.c (Fgarbage_collect): Return number of live and free strings.
2e471eb5
GM
11894
11895 * alloc.c (mark_buffer): Remove code in #if 0.
11896 (gc_sweep): Ditto.
11897 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
11898 (strings_consed): New variable.
11899 (allocate_string): Set it.
11900 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
11901 (Fmemory_use_counts): Return strings_consed. Use Flist.
11902
11903 * alloc.c: General cleanup in comments etc. Remove conditional
11904 compilation for `standalone'.
11905
11906 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
11907
11908 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
11909 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
11910 (DONT_COPY_FLAG): Removed.
11911 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
11912 (struct sdata, struct sblock): New
11913 (struct string_block): Rewritten.
11914 (STRINGS_IN_STRING_BLOCK): New macro.
11915 (oldest_sblock, current_sblock, total_strings, total_free_strings)
11916 (large_sblocks, string_blocks, string_free_list): New variables.
11917 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
11918 (init_strings): Rewritten.
11919 (allocate_string, allocate_string_data, compact_small_strings)
11920 (free_large_strings, sweep_strings): New functions.
11921 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
11922 (struct string_block_head, current_string_block)
11923 (first_string_block, large_string_blocks, STRING_FULLSIZE)
11924 (STRING_PAD): Removed.
11925 (make_uninit_multibyte_string, make_pure_string): Rewritten.
11926 (Fgarbage_collect): Don't set mark bit in large strings.
11927 (mark_object): Mark strings differently. Mark symbol names
11928 differently.
11929 (survives_gc_p): Test marked strings differently.
427ec082 11930 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
11931 symbol names.
11932 (compact_strings): Removed.
11933
42608ba8
EZ
119342000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
11935
11936 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
11937 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
11938
e0a09e1a
KH
119392000-01-04 Kenichi Handa <handa@etl.go.jp>
11940
dd9f0750 11941 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 11942 in a non-empty buffer.
dd9f0750 11943
3c0f3b15 11944 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 11945
44cd3ae5
GM
119462000-01-03 Gerd Moellmann <gerd@gnu.org>
11947
11948 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
11949 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
11950
11951 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
11952
c182a70f
EZ
119532000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11954
11955 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
11956 need to test for MSDOS frames.
11957
24480d5b
EZ
119582000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11959
11960 * dosfns.c (unspecified_colors): Remove.
11961 (msdos_stdcolor_idx): Use global variables unspecified_fg and
11962 unspecified_bg.
11963 (msdos_stdcolor_name): Return strings for unspecified fore- and
11964 back-ground colors.
11965
11966 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 11967 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
11968 (tty_color_name): Return Lisp strings for unspecified fore- and
11969 back-ground colors.
11970 (Finternal_set_lisp_face_attribute): Remove the special treatment
11971 for Qunspecified_{f,b}g.
52283633 11972 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
24480d5b 11973
047f434a
GM
119742000-01-03 Gerd Moellmann <gerd@gnu.org>
11975
11976 * xdisp.c (reseat_at_next_visible_line_start): Position before
11977 newline only if ending up on a newline.
11978 (next_element_from_ellipsis): Return success. Handle case of
52283633 11979 displaying no ellipsis. Fix case of ellipsis defined in display table.
047f434a
GM
11980 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
11981 returns 0.
11982
d684c676
EZ
119832000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11984
11985 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
11986 (Fcolor_supported_p): Renamed from face-color-supported-p.
11987
5fe1d139
EZ
119882000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11989
11990 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
11991 list of colors renamed to tty-defined-color-alist.
11992 (tty_color_name): Pass the frame to tty-color-by-index.
11993 (realize_tty_face): tty-color-alist is now a function which
11994 accepts the frame as argument.
11995
52283633 11996 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
5fe1d139 11997
816be8b8
EZ
119982000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11999
12000 * term.c (insert_glyphs): Pass glyph, not &glyph, to
12001 encode_terminal_code.
12002
b635321e
EZ
120032000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
12004
12005 * dispnew.c (mode_line_string): Support termcap frames as well.
12006
9b784e96
GM
120072000-01-01 Gerd Moellmann <gerd@gnu.org>
12008
27189709
GM
12009 * syntax.c (Fforward_word): Undo previous change.
12010
12011 * editfns.c (Fconstrain_to_field): Don't constrain if
12012 inhibit-field-text-motion is non-nil.
12013 (Fline_beginning_position): Undo previous change.
12014 (Fline_end_position): Ditto.
12015
12016 * syntax.c (Fforward_word): Notice field boundaries only if
12017 inhibit-field-text-motion is nil.
12018
12019 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
12020
12021 * editfns.c (Vinhibit_field_text_motion): New variable.
12022 (inhibit-field-text-motion): New DEFVAR_LISP.
12023 (Fline_beginning_position, Fline_end_position): Notice field
12024 boundaries only if inhibit-field-text-motion is nil.
12025
45158a91
GM
12026 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
12027 All calls adjusted.
12028 (x_build_heuristic_mask): Likewise.
12029 (xbm_load_image_from_file): Change error output.
12030 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
12031 (gif_load, gs_load, x_kill_gs_process): Ditto.
12032
9b784e96
GM
12033 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
12034 color indices when accessing raster pixels.
63cec32f
GM
12035 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
12036 one of :file or :data.
12037 (enum pbm_keyword_index): Add PBM_DATA.
12038 (pbm_format): Add :data.
12039 (pbm_image_p): Allow either :file or :data.
12040 (pbm_read_file): New function.
12041 (pbm_scan_number): Rewritten to read from string.
12042 (pbm_load): Support :data.
9b784e96 12043
2cb085db 12044See ChangeLog.8 for earlier changes.
6922b018
KH
12045
12046;; Local Variables:
49b3bd82 12047;; coding: iso-2022-7bit
6922b018 12048;; End: