Clarify what's the problem with KDE's klipper applet.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
6332ca8a
GM
12001-07-03 Gerd Moellmann <gerd@gnu.org>
2
38472d44
GM
3 * eval.c (specbind): If SYMBOL has a frame-local binding, record
4 the frame on the binding stack. Change format of entries for
5 local bindings on the binding stack to '(SYMBOL . WHERE)'.
6 (unbind_to): Handle unbinding a frame-local variable.
7
6332ca8a
GM
8 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
9 glyphs and truncation glyphs at the end of a row from its pixel
10 width.
11 (dump_glyph_row): Print row's continuation_lines_width.
12 (try_window_id): Take the shortcut if ZV is visible in the
13 window, but there are actually no changes at ZV.
14
63d1b174
GM
152001-07-02 Gerd Moellmann <gerd@gnu.org>
16
4c175203
GM
17 * xterm.h (x_free_dpy_colors): Add prototype.
18
19 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
20 right number of arguments.
21
0b54ce28
GM
22 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
23 ($(lwlibdir)TAGS): New target.
4c175203 24 (TAGS): Fix dependency list.
0b54ce28 25
63d1b174
GM
26 * xterm.c (x_list_fonts): Make sure XFreeFont is called
27 with input blocked.
28
d827466c
GM
292001-06-30 Gerd Moellmann <gerd@gnu.org>
30
31 * emacs.c (main): Remove extern declaration for sys_nerr, which
32 isn't used and causes a compilation error with GCC 3.0 on
33 FreeBSD 4.3.
34
b5cb1ada
GM
352001-06-27 Gerd Moellmann <gerd@gnu.org>
36
a5d3ec3f
GM
37 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
38 SIGIO around the code where Xt might wait for a
39 ConfigureNotifyEvent.
40 (toplevel): Include <signal.h> and syssignal.h.
41
b5cb1ada
GM
42 * sound.c (vox_configure, vox_close): Turn off atimers
43 around ioctls.
44
d9bad487
GM
452001-06-26 Gerd Moellmann <gerd@gnu.org>
46
fdbb67fe
GM
47 * keyboard.c (read_char) <non_reread>: Record the previous idle
48 start time before calling timer_stop_idle.
49 (read_char) <reread_first>: After processing a help-echo event,
50 restore the previous idle start time.
51
d9bad487
GM
52 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
53 the start of invisible text.
54 (setup_for_ellipsis): New function.
55 (next_overlay_string): After all overlay strings have been
56 processed, display an ellipsis if necessary.
57 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
58 (push_it): Initialize display_ellipsis_p on the iterator's stack.
59
60 * dispextern.h (struct iterator_stack_entry): Add member
61 display_ellipsis_p.
62
2b9c25e0
GM
632001-06-25 Gerd Moellmann <gerd@gnu.org>
64
80de57df
GM
65 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
66 on the value of the wait-for-wm frame parameter.
67
68 * xterm.h (struct x_output): Add member wait_for_wm.
69
70 * xfns.c (Qwait_for_wm): New variable.
71 (x_frame_parms): Add entry for `wait-for-wm".
72 (x_set_wait_for_wm): New function.
73 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
74 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
75
2b9c25e0
GM
76 * xdisp.c (try_window_id) <all changes below window end>: Don't
77 take this shortcut if ZV is visible in the window.
78 (try_window_id): When checking for window start being in changed
79 text, don't check that the buffer's size has changed.
80
f772775c
RS
812001-06-23 Richard M. Stallman <rms@gnu.org>
82
83 * minibuf.c (Fcompleting_read): Doc fix.
84
fa9090b8
GM
852001-06-19 Gerd Moellmann <gerd@gnu.org>
86
87 * composite.c (Ffind_composition_internal): Accept ZV
88 and a string's end position as POS.
89
f6f1beba
GM
902001-06-18 Gerd Moellmann <gerd@gnu.org>
91
92 * composite.c (Ffind_composition_internal): Check POS
93 for validity.
94
0ae83348
EZ
952001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
96
97 * editfns.c (Fmessage_box): If the frame is not under a window
98 system, output the message in the echo area.
99
e4cdc335
RS
1002001-06-14 Richard M. Stallman <rms@gnu.org>
101
102 * xdisp.c (try_window_id): When EOB is visible, don't treat
103 insertion at EOB as if it were "off the bottom of the screen."
104
a55a5f3c
AI
1052001-06-11 Andrew Innes <andrewi@gnu.org>
106
107 * w32proc.c (create_child): Add new parameter is_gui_app.
108 (w32_executable_type): Add new parameter is_gui_app.
109 (sys_spawnve): Use it.
110 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
111 SIGQUIT. This matches better how the signals are interpreted by
112 MSVC compiled programs.
113 (syms_of_ntproc): Update docstring.
114
1b85dc1c
SM
1152001-06-02 Stefan Monnier <monnier@cs.yale.edu>
116
117 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
118 well otherwise note_mouse_highlight might optimize away highlighting
119 if we pass over that same overlay again.
120
b75f8eab
EZ
1212001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
122
123 * lread.c (Fload): Document that the argument is run via
124 substitute-in-file-name.
125
94843cc1
GM
1262001-05-31 Gerd Moellmann <gerd@gnu.org>
127
b14659e6
GM
128 * Makefile.in (bootstrap-doc): New target.
129 (bootstrap-emacs): Depend on it.
130
0894672f
GM
131 * fileio.c (Fdo_auto_save): Don't try to create the directory of
132 auto-save-list-file-name when shutting down Emacs, because
133 creating the directory might signal an error, and leaves
134 Emacs in a strange state.
135
94843cc1
GM
136 * term.c: (tty_cursor_hidden): New variable.
137 (update_begin): Don't call tty_hide_cursor. Clean up.
138 (update_end, set_terminal_window, set_scroll_region): Clean up.
139 (ring_bell, reset_terminal_modes): Clean up.
140 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
141 on tty_cursor_hidden.
142 (write_glyphs): Call tty_hide_cursor.
143
db3a49a6
SM
1442001-05-30 Stefan Monnier <monnier@cs.yale.edu>
145
146 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
147
8bd189fb
GM
1482001-05-30 Gerd Moellmann <gerd@gnu.org>
149
6f1be3b9
GM
150 * xfns.c (enum image_value_type): New enumerator
151 IMAGE_STRING_OR_NIL_VALUE.
152 (parse_image_spec): Handle it.
153 (xbm_format, pbm_format): Use it for :foreground and :background.
154 (xbm_load, pbm_load): Check for nil color names.
155
8bd189fb
GM
156 * xterm.c (note_mouse_highlight): If an overlapping overlay
157 exists, but we find that we highlight the same overlay as before,
158 don't do the highlighting again.
159
7bdba03c
GM
1602001-05-29 Gerd Moellmann <gerd@gnu.org>
161
4c329aa8
GM
162 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
163 Protect unibyte strings created by replacing their multibyte
164 equivalents in menu_items.
165
e15e2828
GM
166 * keymap.c (Fsingle_key_description): NUL-terminate the string
167 buffer before calling build_string.
168
7bdba03c
GM
169 * callproc.c (Fcall_process): Deal with decode_coding returning
170 CODING_FINISH_INCONSISTENT_EOL.
171
89c8dc6c
GM
1722001-05-28 Gerd Moellmann <gerd@gnu.org>
173
db3a49a6 174 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
3d9d7a9b
GM
175 an item's name with its key description in case the description
176 is a multibyte string.
177
178 * keymap.c (Fsingle_key_description): Create a multibyte string
179 only if necessary.
180
eb04d6cd
GM
181 * macros.c (Fstart_kbd_macro): Doc fix.
182
8bd6307f
GM
183 * xterm.c (cursor_in_mouse_face_p): New function.
184 (x_draw_stretch_glyph_string): Use it to choose a different GC
185 when drawing a cursor within highlighted text.
186
e26c4089
GM
187 * editfns.c (char_property_eq): Put in #if 0.
188
189 * indent.c (string_display_width): Put in #if 0.
190
191 * lread.c (Fload): Remove unused label.
192
89c8dc6c
GM
193 * termcap.c (speeds): Put in #if 0.
194
9a1211f2
GM
1952001-05-18 Gerd Moellmann <gerd@gnu.org>
196
29148a3f
GM
197 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
198
9a1211f2
GM
199 * xfaces.c (xlfd_point_size): Don't divide pixel size from
200 transformation matrix by 10.
201
09393d07
GM
2022001-05-16 Gerd Moellmann <gerd@gnu.org>
203
204 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
205 only if it's equal to the former foreground pixel color.
db3a49a6 206 (x_set_foreground_color, x_set_background_color)
09393d07
GM
207 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
208
460e6bae
GM
2092001-05-16 Dave Love <fx@gnu.org>
210
211 * insdel.c (signal_before_change, signal_after_change): Consider a
212 local change hook which changes the buffer.
99c78ce8
GM
213
214 * process.c (read_process_output): Don't call signal_after_change
215 and update_compositions after insert_from_string_before_markers.
216
dbcf3c03
GM
2172001-05-16 Gerd Moellmann <gerd@gnu.org>
218
a90b3d3c
GM
219 * xfaces.c (split_font_name): Use the right field when
220 checking for `[...]' syntax.
221
1b7818b4
GM
222 * buffer.c (copy_overlays): New function.
223 (clone_per_buffer_values): Use it.
224
225 * buffer.h (OVERLAY_PLIST): New macro.
226
9bae8781
GM
227 * keymap.c (Fsingle_key_description): Replace a build_string with
228 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
229
dbcf3c03
GM
230 * fontset.c (Ffontset_info): Check that face is non-null
231 before accessing its fields.
232
8a1ae4dd
GM
2332001-05-15 Gerd Moellmann <gerd@gnu.org>
234
18a0a39e
GM
235 * keyboard.c (read_key_sequence): Prevent generating a fake
236 prefix key twice.
237
e335b66a
GM
238 * xfaces.c (split_font_name): Handle `[...]' for the right
239 font name fields.
240
8a1ae4dd
GM
241 * ccl.c (ccl_driver): Don't copy remaining bytes in case
242 of CCL_STAT_INVALID_CMD.
243
3cf80731
SM
2442001-05-14 Stefan Monnier <monnier@cs.yale.edu>
245
33568849
SM
246 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
247 in <var> has no default value yet.
248
3cf80731
SM
249 * xfaces.c (try_alternative_families): First try the FAMILY.
250 And if nothing is found in the end, try again with scalable fonts.
251 (try_font_list): Let try_alternative_families do a bit more of
252 the work. Only use FAMILY if it is not nil.
253 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
254
933b0249
GM
2552001-05-14 Gerd Moellmann <gerd@gnu.org>
256
58e5af83
GM
257 * xterm.c (note_mouse_highlight): Avoid changing the mouse
258 pointer shape when show_mouse_face has already done it.
33568849 259
58e5af83 260 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
557f7c34
GM
261 full-width rows.
262
7b16a6bf
GM
263 * xfaces.c (split_font_name): Make sure to leave the loop
264 with the right value of `i'.
3cf80731 265
933b0249
GM
266 * xfaces.c (split_font_name): Handle matrix transformations
267 in the pixel and point size fields of XLFD font names.
268 (xlfd_point_size): Likewise.
269
dddcbf00
EZ
2702001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
271
3cf80731 272 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
c7501041
EZ
273 (x_to_w32_font): Add prototype.
274
7689ef0b
EZ
275 * regex.c (malloc, realloc, free) [emacs]: Undefine before
276 redefining, to avoid compiler warnings.
277
e7c15bba
EZ
278 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
279
dddcbf00
EZ
280 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
281 (w32_get_bdf_glyph): Cast between unsigned char and char when
282 passing arguments to subroutines, to shut up compiler warnings.
283 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
284 GET_HEX_VAL.
285
286 * xfaces.c: Include keyboard.h before frame.h, not after it.
287
288 * widget.c: Include keyboard.h before frame.h.
289
290 * w32term.h (struct image, struct face): Forward declaration, to
291 avoid compiler warnings.
292
7bd2d083
GM
2932001-05-11 Gerd Moellmann <gerd@gnu.org>
294
47e72862
GM
295 * keyboard.c (read_key_sequence): Don't modify events when
296 generating fake prefix keys (mode-line, scroll-bar, ...) since
297 this prevents proper processing of such events when pushed back
298 into unread-command-events.
299
dd5f324b
GM
300 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
301 actually redrawn. Make the function static.
302 (note_mouse_highlight): Fix a case where the mouse cursor
303 was changed back to the text cursor.
304
305 * xterm.h (clear_mouse_face): Remove prototype.
306
d88a79d4
GM
307 * xdisp.c (try_window_id): Fix the fix and set the right
308 window_end_vpos.
309
310 * xdisp.c (try_window_id): Fix computation of window end in the
311 case that lines were deleted at the end of the window. Add some
312 more debug_method_adds.
0416532f 313
7bd2d083
GM
314 * xfaces.c (try_alternative_families): New function.
315 (try_font_list): Use it. If ATTRS specifies a family, check
316 fonts from that family first.
317 (choose_face_font): Remove code setting the family part of
318 the pattern to nil.
319
23fca891
GM
3202001-05-10 Gerd Moellmann <gerd@gnu.org>
321
ff9aa2ca
GM
322 * xdisp.c (try_window_id): Fix case of all changes before
323 the window start.
7b2654b5 324
23fca891
GM
325 * xdisp.c (try_window_id): Add some xasserts.
326
e9726794
GM
3272001-05-09 Gerd Moellmann <gerd@gnu.org>
328
329 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
330
9e53a675
GM
3312001-05-09 Dave Love <fx@gnu.org>
332
333 * xdisp.c (GIVE_UP): Fix for K&R C.
334
0d487c52
GM
3352001-05-09 Gerd Moellmann <gerd@gnu.org>
336
fe88d421
GM
337 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
338
0d487c52
GM
339 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
340 back to the text cursor shape without need.
341
1e9fc92e
GM
3422001-05-07 Gerd Moellmann <gerd@gnu.org>
343
a2a6232e
GM
344 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
345
346 * dispextern.h (inverse_video): Declare extern.
347
1e9fc92e
GM
348 * keyboard.c (delete_kboard): Handle the case that selected_frame
349 has been deleted in the course of x_connection_closed.
350
12949a7f
EZ
3512001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
352
7b2654b5
SM
353 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
354 Fix the change from 2001-04-30.
12949a7f 355
2fa2f461
GM
3562001-05-03 Gerd Moellmann <gerd@gnu.org>
357
a779d213
GM
358 * xfns.c (file_dialog_unmap_cb): New function.
359 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
360 where a dialog is closed via the window manager.
361
7b2654b5 362 * xdisp.c (try_window_id): Cases of changes all in front of
2fa2f461
GM
363 the window start or all below the window end mostly rewritten.
364 (redisplay_window): Move the tests if try_window_id is
365 applicable to try_window_id.
366 (GIVE_UP): New macro.
367
3356df63
GM
3682001-05-02 Gerd Moellmann <gerd@gnu.org>
369
a39202f6 370 * xterm.c (expose_window): Return int. If W is the window
7b2654b5
SM
371 currently being updated, mark the frame garbaged.
372 Fix computation of rows intersecting the exposed rectangle.
a39202f6 373 (expose_window_tree): Stop when expose_window returns 0.
7b2654b5 374
3356df63
GM
375 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
376 again if it has already been drawn.
377
a9d2fd1d
SM
3782001-05-01 Stefan Monnier <monnier@cs.yale.edu>
379
380 * syntax.c (update_syntax_table): Check that oldi has the same
381 properties as old_prop before deciding not to invalidate.
382
c95fc5f1
GM
3832001-04-30 Gerd Moellmann <gerd@gnu.org>
384
a9793e45
GM
385 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
386 read-only text that is so because of text properties.
387
c95fc5f1 388 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
a9d2fd1d 389 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
c95fc5f1
GM
390 windows that are components of a Lucid menu bar.
391
5a5d9185
GM
3922001-04-27 Gerd Moellmann <gerd@gnu.org>
393
394 * term.c (turn_on_face): Fix reverse video handling on terminals
395 that don't support colors.
396
ba973f7a
GM
3972001-04-26 Gerd Moellmann <gerd@gnu.org>
398
399 * editfns.c (save_excursion_restore): Don't use XBUFFER on
400 a non-buffer.
401
8c56a983
GM
4022001-04-25 Gerd Moellmann <gerd@gnu.org>
403
a728644c
GM
404 * term.c (toggle_highlight): New function.
405 (turn_on_face): Change handling of reverse video.
406
7b2654b5
SM
407 * process.c (wait_reading_process_input):
408 Call record_asynch_buffer_change only if a timer really changed buffers.
c88164fe 409
bfd8410f
GM
410 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
411 of the number of overlays to check.
412
be2488ca
GM
413 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
414
8c56a983
GM
415 * xdisp.c (try_window_id): Fix a case where window_end_pos
416 and window_end_bytepos were not adjusted.
417
522d42f7
GM
4182001-04-23 Gerd Moellmann <gerd@gnu.org>
419
420 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
421 zero instead of -1.
422
78c1afb6
EZ
4232001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
424
a9d2fd1d
SM
425 * process.c (wait_reading_process_input) [!subprocesses]:
426 Don't reference waiting_for_user_input_p, it's not defined in the
427 branch without async subprocesses support.
78c1afb6 428
a2fab450
GM
4292001-04-19 Gerd Moellmann <gerd@gnu.org>
430
a122a38e
GM
431 * keyboard.c (delete_kboard): Prevent a dangling reference
432 from current_kboard to KB, which is freed.
433
a9d2fd1d
SM
434 * process.c (wait_reading_process_input):
435 Call record_asynch_buffer_change after running timers, to make
a2fab450
GM
436 read_key_sequence aware of buffer changes from under it.
437
0f8d6dc7
GM
4382001-04-18 Gerd Moellmann <gerd@gnu.org>
439
eeffb293
GM
440 * xfaces.c (Qscalable_fonts_allowed): New variable.
441 (realizing_basic_faces_p): Removed.
2fa2f461
GM
442 (x_face_list_fonts): Special handling for realizing_basic_faces_p
443 removed.
eeffb293 444 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
7b2654b5
SM
445 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
446 for scalable-fonts-allowed to t.
eeffb293 447
0f8d6dc7
GM
448 * fileio.c (Finsert_file_contents): If the file size returned from
449 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
a9d2fd1d 450 read from files on a procfs whose contents are generated dynamically.
0f8d6dc7 451
eec2d1de
EZ
4522001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
453
454 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
455 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
456 (__memalign_hook): Make the two prototypes consistent.
457
f4f480bd
GM
4582001-04-17 Gerd Moellmann <gerd@gnu.org>
459
460 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
461 matrix of mini-windows.
462
52283633
SM
4632001-04-12 Stefan Monnier <monnier@cs.yale.edu>
464
465 * intervals.c (find_interval): Don't rebalance during signal handling.
466
ec2423c9
GM
4672001-04-11 Gerd Moellmann <gerd@gnu.org>
468
30cb0001 469 * fns.c: Include blockinput.h.
52283633 470
ec2423c9
GM
471 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
472
719d83ad
GM
4732001-04-10 Gerd Moellmann <gerd@gnu.org>
474
60f8d735
GM
475 * fns.c (Fcompare_strings): Fix return values.
476
afffeb57
GM
477 * window.c (window_scroll): Change the meaning of N to mean
478 N screen-fulls or N lines.
479 (window_scroll_pixel_based, window_scroll_line_based)
480 (scroll_command, Fscroll_other_window): Change accordingly.
481
52283633
SM
482 * window.c (window_scroll_pixel_based, Frecenter):
483 Call window_box_height instead of using it.last_visible_y for the
afffeb57
GM
484 height of the window.
485
486 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
487 instead of using it.last_visible_y for the height of the window.
52283633 488
719d83ad 489 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
8ddf3ee1 490 From Dan Holmsand <dan@eyebee.com>.
719d83ad
GM
491
492 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
8ddf3ee1
GM
493 able to write to hidden and system files. From Dan Holmsand
494 <dan@eyebee.com>.
719d83ad 495
8ddf3ee1
GM
496 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
497 Holmsand <dan@eyebee.com>.
719d83ad 498
522ed7fb
GM
4992001-04-09 Gerd Moellmann <gerd@gnu.org>
500
9170e5d4
GM
501 * fns.c (Fplist_get, Fplist_put): Add QUITs.
502
522ed7fb
GM
503 * window.c (window_internal_height): Return 1 less if the
504 window has a header line.
505
506 * xdisp.c (try_window_id): When scrolling on a terminal, take
507 the change of window_internal_height into account.
508
ceeb3d7d
EZ
5092001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
510
511 * gmalloc.c (align): If the argument SIZE would overflow
512 __malloc_ptrdiff_t, fail right away.
513
63685b9d
GM
5142001-04-06 Gerd Moellmann <gerd@gnu.org>
515
516 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
517 Make sure the tooltip is completely visible.
518 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
519
520 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
521
522 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
523
3ffb33bb
DL
5242001-04-06 Dave Love <fx@gnu.org>
525
52283633
SM
526 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
527 Fix test of `from'.
3ffb33bb 528
869fb12c
GM
5292001-04-06 Gerd Moellmann <gerd@gnu.org>
530
52283633 531 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
afa3935f 532
869fb12c
GM
533 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
534
441bf856
GM
5352001-04-05 Gerd Moellmann <gerd@gnu.org>
536
4d664b04
GM
537 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
538
52283633 539 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
a55e4e68 540
30ca89f5
GM
541 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
542 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
543
544 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
545 shell widget's position only if it is non-null.
546
52283633
SM
547 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
548 Set f->output_data.x->widget to null after destroying it.
30ca89f5 549
81a81c0f
GM
550 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
551 FILENAME to bring it in synch with the documentation.
552
441bf856
GM
553 * xfaces.c (realizing_basic_faces_p): Renamed from
554 realize_default_face_p.
555 (realize_basic_faces): Set/clear realizing_basic_faces_p.
556 (realize_default_face): Don't set the flag.
557
702a1e8e
GM
5582001-04-04 Gerd Moellmann <gerd@gnu.org>
559
1013f4e3
GM
560 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
561
52283633
SM
562 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
563
1013f4e3
GM
564 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
565 the buffer that was used for echoing.
566
702a1e8e
GM
567 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
568 (first_font_matching): Removed unused function.
569 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
570 (may_use_scalable_font_p): Remove parameter FONT; rename
571 parameter NAME to FONT.
572 (x_face_list_fonts): Fix missing bounds check.
573 (realizing_default_face_p): New variable.
574 (realize_default_face): Set and clear that flag.
575 (x_face_list_fonts): When called during the realization of the
576 default face, and no matching fonts are found when ignoring
577 scalable fonts and fonts matching a regexp from
578 face-ignored-fonts, try without ignoring fonts.
579
f9dbcda4
GM
5802001-04-03 Gerd Moellmann <gerd@gnu.org>
581
ad18ffb1
GM
582 * xfns.c (postprocess_image): New function.
583 (lookup_image): Call it for all image types except PostScript.
584 (x_kill_gs_process): Call postprocess_image.
585
f9dbcda4
GM
586 * xterm.c (x_use_underline_position_properties): New variable.
587 (x_draw_glyph_string): Use it.
588 (syms_of_xterm): DEFVAR_BOOL it.
589
651f03b6
GM
5902001-04-02 Gerd Moellmann <gerd@gnu.org>
591
592 * xterm.c (x_alloc_nearest_color_1): New function.
593 (x_alloc_nearest_color): Use it.
594 (x_color_cells): Take a Display as argument, instead of a frame.
595 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
596 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
597 (x_initialize): Register cvt_string_to_pixel as resource converter
598 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
599
73d75a62
GM
6002001-03-30 Gerd Moellmann <gerd@gnu.org>
601
b2046df8
GM
602 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
603 (set_iterator_to_next): If a string from a display property ends,
604 consider the case that this might also be the end of an
605 overlay string having the display property.
606
52283633 607 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
b2046df8 608
87d8eba4
GM
609 * xdisp.c (reseat_to_string): Undo last change.
610
73d75a62
GM
611 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
612 matrix of a window when the header line changes, when
613 new rows are allocated, or when the width changes.
614
911a2406
EZ
6152001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
616
52283633 617 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
911a2406 618
aea51abe
EZ
6192001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
620
621 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
622 deprecated.
623
176bc847
GM
6242001-03-29 Gerd Moellmann <gerd@gnu.org>
625
ed31fabf
GM
626 * data.c (Fsubr_interactive_form): New function.
627 (syms_of_data): Defsubr it.
628
176bc847
GM
629 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
630 (live_float_p, live_misc_p): Return 1 only if the offset of the
631 pointer in its block is >= 0.
632
e59d0e9d
GM
6332001-03-28 Paul Eggert <eggert@twinsun.com>
634
635 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
636 microseconds calcuation. Avoid double-rounding problem.
637 In doc string, warn that the result is approximate.
638
f827b862
GM
6392001-03-28 Gerd Moellmann <gerd@gnu.org>
640
30a3f61c
GM
641 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
642 bind `inhibit-eval-during-redisplay' to t.
643
644 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
645
646 * xdisp.c (inhibit_eval_during_redisplay)
647 (Qinhibit_eval_during_redisplay): New variables.
648 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
649 don't eval, return nil instead.
650 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
651 Initialize Qinhibit_eval_during_redisplay.
652
e719f5ae
GM
653 * xdisp.c (reseat_to_string): If STRING is multibyte, set
654 the iterator's multibyte_p flag.
655
deb2613a
GM
656 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
657 instead of setting it to zero; it's incremented for each frame
658 where the menu face is changed.
659
52283633
SM
660 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
661 change bottom shadow accordingly.
662
663 * xterm.c (expose_window_tree, expose_frame): Don't compute
a02f1be0
GM
664 intersections here.
665 (expose_window): Do it here instead.
52283633 666 (x_draw_glyph_string): Fix a computation of the underline position.
a02f1be0 667
f827b862
GM
668 * bytecode.c (BYTE_CODE_QUIT): New macro.
669 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
670
4bde0ebb
GM
6712001-03-27 Gerd Moellmann <gerd@gnu.org>
672
607ec83c
GM
673 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
674 Give up if matrix starts in an ellipsis.
675 (init_from_display_pos): Do nothing if POS doesn't specify
676 a dpvec_index but the iterator has such a position.
677
0245398f
GM
678 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
679
aba25348
GM
680 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
681 x/y position is (0, 0) after destroying the menu bar, restore
682 its original position.
683
4bde0ebb
GM
684 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
685 (init_from_display_pos): Use it.
686 (try_window_reusing_current_matrix): Don't use cursor_row_p.
687
8cdb267e
GM
6882001-03-26 Gerd Moellmann <gerd@gnu.org>
689
690 * xdisp.c (try_window_id): Undo last change.
691
9948db79
EZ
6922001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
693
694 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
695
696 * buffer.c (syms_of_buffer): Doc fix.
697
2eddf899
GM
6982001-03-26 Gerd Moellmann <gerd@gnu.org>
699
700 * xfaces.c (x_update_menu_appearance): Use local variable
701 popup_path for setting font resources.
702
6c145d35
EZ
7032001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
704
6a65b1b5
EZ
705 * frame.c (Fframe_list): Don't reference tip_frame if
706 HAVE_WINDOW_SYSTEM is not defined.
707
6c145d35
EZ
708 * emacs.c (main): Update the copyright year. From Werner LEMBERG
709 <wl@gnu.org>.
710
d74c1900
GM
7112001-03-25 Gerd Moellmann <gerd@gnu.org>
712
20fbd925
GM
713 * xdisp.c (init_from_display_pos): Test invisible property
714 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
52283633 715
927c5b3b
GM
716 * xdisp.c (redisplay_internal) <update one window>: Make sure
717 last_arrow_position and last_arrow_string are set.
718
d74c1900
GM
719 * frame.c (Fframe_list): Don't return a tooltip frame.
720
091f8878
GM
7212001-03-23 Gerd Moellmann <gerd@gnu.org>
722
52283633
SM
723 * xdisp.c (mark_window_display_accurate_1): New function,
724 extracted from mark_window_display_accurate.
725 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
43c09969
GM
726 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
727 (mark_window_display_accurate): Use it.
728 (redisplay_internal): Use it for the selected window.
729 (redisplay_internal): Avoid duplicate mark_window_display_accurate
730 for the selected frame.
731
ac90c44f
GM
732 * xdisp.c Use make_number, for readability.
733 (try_window_id): Disable rows below the window end.
734 (try_window_reusing_current_matrix): Use cursor_row_p.
735 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
736 of rows.
737 (init_from_display_pos): If POS specifies a position in a display
738 vector, maybe get the iterator set up for that ellipsis.
43c09969 739
091f8878
GM
740 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
741
991786dd
EZ
7422001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
743
744 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
745
6c29b43c
GM
7462001-03-23 Gerd Moellmann <gerd@gnu.org>
747
748 * xfaces.c (x_update_menu_appearance): Use a different path
749 for Lucid popup menus.
750
d8731202
SM
7512001-03-22 Stefan Monnier <monnier@cs.yale.edu>
752
753 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
754
755 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
756 (string_buffer_position): Use `make_number'.
757
f61a541b
GM
7582001-03-22 Gerd Moellmann <gerd@gnu.org>
759
3c9e997b
GM
760 * xfaces.c (x_update_menu_appearance): Renamed from
761 x_set_menu_face_resources. Use different resources for popups.
762
763 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
764 (GC_CHECK_STRING_BYTES): Don't define.
765
364cd450
GM
766 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
767 Removed, together with subroutines.
768 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
d8731202 769 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
364cd450 770
d8731202
SM
771 * dispextern.h (x_set_menu_resources_from_menu_face):
772 Remove prototype.
364cd450 773
d8731202 774 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
364cd450
GM
775 Remove calls to x_set_menu_resources_from_menu_face.
776
d8731202
SM
777 * xfaces.c (xm_set_menu_resources_from_menu_face):
778 Remove #ifndef LESSTIF_VERSION.
f61a541b
GM
779
780 * xmenu.c: Include widget.h.
781 (single_submenu): Return int. Some cleanup.
782 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
783
140330de
GM
7842001-03-21 Gerd Moellmann <gerd@gnu.org>
785
786 * xterm.c (x_update_window_end): Handle overwritten mouse face
787 also for tool bar windows.
788 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
789 DRAW is DRAW_IMAGE_RAISED.
790
1741905c
GM
7912001-03-20 Gerd Moellmann <gerd@gnu.org>
792
fa88947e
GM
793 * print.c (syms_of_print): Doc fixes.
794
1741905c
GM
795 * fns.c (Fmd5): Doc fix.
796
ade0bee1
GM
7972001-03-19 Gerd Moellmann <gerd@gnu.org>
798
357e7376
GM
799 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
800 Clear area of the frame not occupied by the scroll bar.
801
c2c097cc
GM
802 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
803 tip frame's root window buffer to *tip* right after creating
804 the frame.
805
ade0bee1
GM
806 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
807 is an integer don't have to be for space characters.
808
88c6e37e
GM
8092001-03-16 Gerd Moellmann <gerd@gnu.org>
810
52283633
SM
811 * indent.c (current_column, current_column_1, Fmove_to_column)
812 (compute_motion): Handle characters from display vectors differently.
88c6e37e 813
c62eed76
KH
8142001-03-15 Kenichi Handa <handa@etl.go.jp>
815
816 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
817 drawing glyph string.
818
c899e7e6
GM
8192001-03-15 Gerd Moellmann <gerd@gnu.org>
820
d0bbfc99
GM
821 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
822 (command_loop_1): Undo last change.
823
03d1a189
GM
824 * xterm.c (fast_find_position): Return the correct vpos.
825
c899e7e6 826 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
52283633 827 non-null, set a per-buffer value in BUF instead of the current buffer.
c899e7e6
GM
828 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
829 Call store_symval_forwarding with BUF null.
830 (set_internal): Call store_symval_forwarding with the BUF
831 parameter passed to set_internal. Formerly, the value was always
832 set in the current buffer; the buffer recorded in specbind for
833 this case wasn't used.
834 (arith_driver): Reindent.
835
52283633
SM
836 * buffer.c (swap_out_buffer_local_variables):
837 Call store_symval_forwarding with BUF null.
c899e7e6
GM
838
839 * lisp.h (store_symval_forwarding): Change prototype.
840
841 * eval.c (specbind): Call store_symval_forwarding with BUF null.
842
57ac7c81
GM
8432001-03-14 Gerd Moellmann <gerd@gnu.org>
844
697617d9
GM
845 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
846 FOR_DELETION. Avoid resizing the mini-window of the selected
847 frame if FOR_DELETION is set.
848 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
849 (Fmake_frame_invisible): Change calls to do_switch_frame for new
850 signature.
851
852 * window.c (Fset_window_configuration): Change call to
853 do_switch_frame to new format.
854
855 * keyboard.c (quit_throw_to_read_char): Change call to
856 do_switch_frame to new format.
857
858 * lisp.h (do_switch_frame): Change prototype.
859
819dce0f
GM
860 * frame.c (Fframe_parameters): In the `buffer-list' frame
861 parameter, store the buffer list of FRAME, not the list of the
862 selected frame.
863
57ac7c81
GM
864 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
865 box just because the glyph row's full_width_p flag is set.
866
65008712
GM
8672001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
868
869 * xdisp.c (highlight_trailing_whitespace): On character terminals,
870 skip the padding blanks inserted in extend_face_to_end_of_line,
871 before checking for trailing whitespace.
872
159cf431
GM
8732001-03-13 Gerd Moellmann <gerd@gnu.org>
874
52283633 875 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
19b2bb80
GM
876 Remove special handling for LessTif/Motif.
877 (toplevel): Don't include Xm/Xm.h.
878
52283633
SM
879 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
880 Remove workaround code for LessTif; it doesn't work anymore.
881
2564ea1b 882 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
57ac7c81 883 Xm/ScrollBarP.h.
afcdc0a1 884
52283633
SM
885 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
886 Don't access private scroll bar data; it's no longer necessary with
23442ae4
GM
887 contemporary LessTif.
888
52283633
SM
889 * xfaces.c (xm_set_menu_resources_from_menu_face):
890 Change #if 0 to #ifndef LESSTIF_VERSION.
9faaaa52 891
159cf431
GM
892 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
893 removing button grabs.
894
c6f7429a
KH
8952001-03-13 Kenichi Handa <handa@etl.go.jp>
896
cb82d767
KH
897 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
898 and clip-large-size-font as obsolete.
899
c6f7429a
KH
900 * lread.c (read_multibyte): Check the validity of multibyte
901 sequence. If invalid, return the first byte.
902
760cefb5
GM
9032001-03-12 Gerd Moellmann <gerd@gnu.org>
904
905 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
906 before running the command; timer functions or process
907 filters may have set it.
908
5141f9d0
EZ
9092001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
910
911 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
912 Doc fix.
913
b6a15240
GM
9142001-03-12 Gerd Moellmann <gerd@gnu.org>
915
916 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
917 to sprintf.
918
95522746
GM
9192001-03-09 Gerd Moellmann <gerd@gnu.org>
920
db14cfc5
GM
921 * dispextern.h (string_buffer_position): Add prototype.
922
52283633 923 * xdisp.c (string_buffer_position, display_prop_string_p)
db14cfc5
GM
924 (single_display_prop_string_p): New functions.
925
926 * xterm.c (note_mouse_highlight): If there's no help-echo on
927 a string, look at the buffer text ``under'' it.
928
929 * keyboard.c (make_lispy_event): Add string info to the event,
930 analogous to what's done on mode lines.
931 (read_key_sequence): For a click on a string, consider `local-map'
932 and `keymap' of that string.
933
52283633
SM
934 * keyboard.c (make_lispy_event, make_lispy_movement):
935 Adjust calls to buffer_posn_from_coords to new format.
3cfd8357
GM
936
937 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
938
939 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
940 POS; return void.
941
95522746
GM
942 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
943 flags argument to emacs_open; it seems to conflict with O_EXCL.
944
898a399d
KH
9452001-03-09 Kenichi Handa <handa@etl.go.jp>
946
28cd4910
KH
947 * composite.h (struct composition): Change types of members;
948 glyph_len to unsigned, width to unsigned short.
898a399d 949
4cdf6a6c
AI
9502001-03-08 Andrew Innes <andrewi@gnu.org>
951
952 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
953 menu titles.
954
129004d3
GM
9552001-03-08 Gerd Moellmann <gerd@gnu.org>
956
221dd3e7
GM
957 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
958 instead of nil.
959
52283633 960 * xterm.c (note_mouse_highlight): Handle mouse-face and
5de7c6f2
GM
961 help-echo in strings.
962 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
963 (fast_find_string_pos): New function.
964
52283633
SM
965 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
966 (display_string): Call face_at_string_position with new parameter.
5de7c6f2
GM
967
968 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
969 Handle `mouse-face'.
970
971 * dispextern.h (face_at_string_position): Change prototype.
972
52283633 973 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
e1fbabaf 974
129004d3
GM
975 * keyboard.c (make_lispy_event): Avoid generating drag events
976 if the mouse hasn't actually moved to another buffer position.
52283633 977
80c8ab8c
DL
9782001-03-08 Dave Love <fx@gnu.org>
979
129004d3 980 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
80c8ab8c 981
989521fd
GM
9822001-03-08 Gerd Moellmann <gerd@gnu.org>
983
984 * process.c (Fset_process_window_size): Fix a typo.
985
bb5c338d
KH
9862001-03-08 Kenichi Handa <handa@etl.go.jp>
987
988 * coding.c (detect_coding_sjis): Do more rigid check.
989 (detect_coding_big5): Likewise.
990 (decode_coding_sjis_big5): Likewise.
991 (Fdetect_coding_region): Call detect_coding_system with tailing
992 anchor byte `\0' for more rigid detection.
52283633 993 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
bb5c338d
KH
994 (Fdetect_coding_string): Likewise.
995
8b8f9197
SM
9962001-03-07 Stefan Monnier <monnier@cs.yale.edu>
997
998 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
999 a string before extracting its data.
1000
3bdf2660
GM
10012001-03-07 Gerd Moellmann <gerd@gnu.org>
1002
1003 * window.c (Frecenter): Rewrite code handling negative values
1004 of ARG on graphical frames.
1005
10062001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
1007
1008 * window.c (displayed_window_lines): If W->start is outside the
1009 accessible portion of the buffer, call start_display with BEGV or
1010 ZV instead of W->start.
1011
471f86b9
GM
10122001-03-07 Gerd Moellmann <gerd@gnu.org>
1013
2ab62c6c
GM
1014 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
1015
471f86b9
GM
1016 * process.c (Fset_process_filter): Don't crash if the input
1017 file descriptor of PROCESS is closed.
1018 (Fset_process_window_size): Likewise.
1019
101922c3
GM
10202001-03-06 Kenichi Handa <handa@etl.go.jp>
1021
1022 * xterm.c (XTflash): Make the timeout of select shorter, and call
1023 select repeatedly until the desired time expires.
1024
45d051a7
GM
10252001-03-06 Gerd Moellmann <gerd@gnu.org>
1026
1027 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
1028
1029 * xfns.c (Fx_create_frame): Clear Vwindow_list.
1030
1031 * lisp.h (Vwindow_list): Declare extern.
1032
8f372c46
EZ
10332001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
1034
1035 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
1036
f16a7aa5
GM
10372001-03-06 Gerd Moellmann <gerd@gnu.org>
1038
157ae273
GM
1039 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
1040 to detect a case where we have to highlight a different region
1041 despite not having left the currently highlighted region.
1042 Set mouse_face_overlay in the x_display_info.
45d051a7 1043 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
157ae273
GM
1044
1045 * xterm.h (struct x_display_info): Add mouse_face_overlay.
1046
1047 * buffer.c (mouse_face_overlay_overlaps): New function.
1048
1049 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
1050 (Qmouse_face): Declare extern.
1051
f16a7aa5
GM
1052 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
1053 if face_change_count is non-zero.
1054
827afcac
KH
10552001-03-06 Kenichi Handa <handa@etl.go.jp>
1056
1057 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
1058 that the source is unibyte.
1059
14c7242e
DL
10602001-03-05 Dave Love <fx@gnu.org>
1061
827afcac 1062 * xterm.c (XTmouse_position): Fix typo.
14c7242e 1063
c28b847b
GM
10642001-03-05 Gerd Moellmann <gerd@gnu.org>
1065
1066 * minibuf.c (read_minibuf): Clean up the binding stack if
1067 called noninteractively.
1068
b86644f2
KH
10692001-03-05 Kenichi Handa <handa@etl.go.jp>
1070
1071 * coding.c (syms_of_coding): Docstring modified.
1072
203682cc 10732001-03-05 Kenichi Handa <handa@etl.go.jp>
b86644f2
KH
1074
1075 * charset.c (char_to_string): If a single byte char has modifier
1076 bits that can't be reflected to the character code, ignore them
45d051a7 1077 instead of signaling an error.
b86644f2 1078
e30bd7b7
EZ
10792001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
1080
1081 * s/msdos.h: Update copyright notice.
1082
1083 * dosfns.h: Update copyright notice.
1084
1085 * dosfns.c: Update copyright notice.
1086
1087 * msdos.c: Update copyright notice.
1088
b52b65bd
GM
10892001-03-02 Gerd Moellmann <gerd@gnu.org>
1090
1091 * xterm.c (glyph_rect): New function.
1092 (XTmouse_position): Use it to raise the threshold for mouse
1093 movement event generation.
1094
53c4b1e6
EZ
10952001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
1096
1097 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
1098 specifies (reverse . t), reverse the initial screen colors.
1099 (IT_set_frame_parameters): If the property is foreground-color,
52283633
SM
1100 but we are reversing the colors, set bg_set, not fg_set.
1101 Likewise for setting background-color and reversing: set fg_set.
1102 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
53c4b1e6
EZ
1103 in effect.
1104
1105 * xfaces.c (Finternal_set_lisp_face_attribute)
1106 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
1107 parameters alist.
1108
f964b4d7
GM
11092001-03-02 Gerd Moellmann <gerd@gnu.org>
1110
ef53d75e
GM
1111 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
1112 to a single slash in the middle of file names.
1113
52283633 1114 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
cda0f4da
GM
1115 Accept only alphanumeric time zone names.
1116
f964b4d7
GM
1117 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
1118 or width area.
1119 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
1120 a widget to zero height.
52283633 1121
c3c45f65
GM
11222001-03-01 Gerd Moellmann <gerd@gnu.org>
1123
1124 * window.c (Fwindow_end): Call move_it_past_eol only if
1125 ending up on a partially visible line.
1126
028d739a
DL
11272001-03-01 Dave Love <fx@gnu.org>
1128
1129 * ccl.c (Fccl_execute): Doc fix.
1130
57c5889c
GM
11312001-03-01 Gerd Moellmann <gerd@gnu.org>
1132
35f59f6b
GM
1133 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
1134 of the tool bar before calling x_figure_window_size.
1135
f84ff02c
GM
1136 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
1137 NULL after destroying it, otherwise XTread_socket can access a
1138 destroyed widget when input is unblocked.
1139
8b8f9197 1140 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
52283633 1141
57c5889c
GM
1142 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
1143 same name as before, although there was a change in fontsets.
1144
224227d1
KR
11452001-02-28 Ken Raeburn <raeburn@gnu.org>
1146
4560730a
KR
1147 * lisp.h (Fframe_parameter): Declare.
1148
224227d1 1149 * window.c (set_window_buffer): Field vscroll is an int, not a
57c5889c 1150 Lisp_Object.
224227d1 1151
ece93c02
GM
11522001-02-28 Gerd Moellmann <gerd@gnu.org>
1153
11ef99b9
GM
1154 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
1155 NULL instead.
1156
1157 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
1158 NULL instead.
1159
ece93c02
GM
1160 * alloc.c (toplevel): Include process.h.
1161 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
1162 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
1163 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
52283633
SM
1164 (allocate_vector, allocate_hash_table, allocate_window)
1165 (allocate_frame, allocate_process, allocate_other_vector):
1166 New functions.
ece93c02
GM
1167 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
1168 (mark_maybe_pointer): New function.
52283633 1169 (mark_memory): Also mark Lisp data to which only pointers
ece93c02
GM
1170 remain and not Lisp_Objects.
1171 (min_heap_address, max_heap_address): New variables.
1172 (mem_find): Return MEM_NIL if START is below min_heap_address or
1173 above max_heap_address.
1174 (mem_insert): Compute min_heap_address and max_heap_address.
1175
1176 * process.c (make_process): Use allocate_process.
1177
1178 * frame.c (make_frame): Use allocate_frame.
1179
1180 * window.c (make_window, make_dummy_parent): Use allocate_window.
1181 (Fcurrent_window_configuration): Use allocate_other_vector.
1182
1183 * lisp.h (allocate_vectorlike): Remove prototype.
1184 (allocate_vector, allocate_other_vector, allocate_frame)
1185 (allocate_window, allocate_process, allocate_hash_table):
1186 Add prototypes.
1187
1188 * fns.c (Fdelete, larger_vector): Use allocate_vector.
1189 (make_hash_table, copy_hash_table): Use allocate_hash_table.
1190
063af457
KH
11912001-02-27 Kenichi Handa <handa@etl.go.jp>
1192
1193 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
1194 treat the produced bytes as a valid multibyte sequence.
1195
1196 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
52283633
SM
1197 (ccl_driver) <CCL_WriteMultibyteChar2>:
1198 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
063af457
KH
1199 <ccl_finish>: Set ccl->eight_bit_control properly.
1200
1201 * ccl.h (struct ccl_program): New member eight_bit_control.
1202
f58c6494
SM
12032001-02-26 Stefan Monnier <monnier@cs.yale.edu>
1204
1205 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
1206 accessible_keymaps_char_table.
1207 (accessible_keymaps_char_table): Obey `is_metized'.
1208 (where_is_internal, Fwhere_is_internal): Don't confuse int and
1209 Lisp_Object.
1210
c596c392
GM
12112001-02-26 Gerd Moellmann <gerd@gnu.org>
1212
1213 * dispnew.c: Check HAVE_TERM_H before including term.h.
1214
425de386
AI
12152001-02-24 Andrew Innes <andrewi@gnu.org>
1216
1217 * makefile.w32-in: Update copyright notice.
1218
2ba11bbd
SM
12192001-02-24 Stefan Monnier <monnier@cs.yale.edu>
1220
1221 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
1222
66c56ed1
KH
12232001-02-24 Kenichi Handa <handa@etl.go.jp>
1224
4c1593ce
KH
1225 * Makefile.in (lisp): Add international/utf-8.elc.
1226
66c56ed1
KH
1227 * fontset.c (Fnew_fontset): Fix handling of the case that an
1228 element of FONTLIST is a cons of family and registry.
1229
796ead7e
JR
12302001-02-23 Jason Rumney <jasonr@gnu.org>
1231
1232 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
1233 to height unconditionally.
1234
1235 * w32term.c (x_set_glyph_string_background_width): Extend the
52283633 1236 background face to the end of the drawing area in the text area, only.
796ead7e
JR
1237 (x_insert_glyphs): Call window_box_left to obtain the left
1238 x-coordinate of the area to shift.
1239
1240 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
1241 safe_run_hooks.
1242
f6839838
AI
12432001-02-22 Andrew Innes <andrewi@gnu.org>
1244
52283633 1245 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
f6839838
AI
1246 ($(BLD)\dispnew.obj):
1247 ($(BLD)\editfns.obj):
1248 ($(BLD)\fileio.obj):
1249 ($(BLD)\filelock.obj):
1250 ($(BLD)\keyboard.obj):
1251 ($(BLD)\w32proc.obj):
1252 ($(BLD)\process.obj):
1253 ($(BLD)\sysdep.obj): Ditto.
1254
1255 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
1256 header files.
52283633
SM
1257 ($(BLD)/dispnew.$(O)):
1258 ($(BLD)/editfns.$(O)):
1259 ($(BLD)/fileio.$(O)):
1260 ($(BLD)/filelock.$(O)):
1261 ($(BLD)/keyboard.$(O)):
1262 ($(BLD)/w32proc.$(O)):
1263 ($(BLD)/process.$(O)):
f6839838
AI
1264 ($(BLD)/sysdep.$(O)): Ditto.
1265
c224f70b
GM
12662001-02-22 Gerd Moellmann <gerd@gnu.org>
1267
51695746
GM
1268 * xdisp.c (forward_to_next_line_start): When taking the shortcut
1269 at the start of the function, check that the \n in it->c is
1270 from the iterator's current position.
52283633 1271
a61b7058
GM
1272 * xdisp.c (handle_single_display_prop): Add parameter
1273 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
1274 properties which replace the display of text with something else.
1275 (handle_display_prop): Call handle_single_display_prop with
1276 additional argument saying if we already replaced text display
1277 with something else. Use AREF.
52283633 1278 (with_echo_area_buffer_unwind_data, display_menu_bar)
a61b7058
GM
1279 (decode_mode_spec_coding): Use AREF and ASIZE.
1280
3473f362
GM
1281 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
1282 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
1283 * vmstime.h: Files removed.
52283633 1284
2bb58df3
GM
1285 * unexencap.c, unexfx2800.c: Files removed.
1286
c224f70b
GM
1287 * dispnew.c (direct_output_for_insert): Give up if we are showing
1288 a message or just cleared the message because we might need to
1289 resize the echo area window or display an empty echo area.
1290
ffc9ff0c
GM
12912001-02-21 Gerd Moellmann <gerd@gnu.org>
1292
0528abe1
GM
1293 * xdisp.c (redisplay_internal): Do the
1294 mark_window_display_accurate after all windows have been
1295 redisplayed because this call resets flags in buffers which are
1296 needed for proper redisplay.
1297
52283633
SM
1298 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
1299 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
ffc9ff0c
GM
1300 the old names.
1301
52283633
SM
1302 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
1303 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
1304
1305 * msdos.h (struct x_output): Rename busy_window to
1306 hourglass_window, busy_p to hourglass_p.
1307
52283633
SM
1308 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
1309 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
1310
1311 * xfns.c: Rename everything containing *busy_cursor* and similar
1312 to *hourglass*.
1313 (syms_of_w32fns): Rename x-busy-pointer-shape to
1314 x-hourglass-pointer-shape, display-busy-cursor to
1315 display-hourglass, busy-cursor-delay to hourglass-delay.
1316
1317 * w32fns.c: Rename everything containing *busy_cursor* and similar
1318 to *hourglass*.
1319 (syms_of_w32fns): Rename x-busy-pointer-shape to
1320 x-hourglass-pointer-shape, display-busy-cursor to
1321 display-hourglass, busy-cursor-delay to hourglass-delay.
1322
1323 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
1324 of its busy_p flag.
1325
1326 * dispextern.h (start_hourglass, cancel_hourglass)
1327 (display_hourglass_p): Renamed from *busy_cursor*.
1328
ab2c5f0a
GM
13292001-02-20 Gerd Moellmann <gerd@gnu.org>
1330
d17e49a8
GM
1331 * keyboard.c (read_char): When an event from unread-command-events
1332 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
1333
fa97adf6
GM
1334 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
1335 equal to the current buffer.
1336
ab2c5f0a
GM
1337 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
1338 nil, otherwise we're left with truncate_lines t when a message
1339 is printed with message-truncate-lines bound to t.
1340
aeac019e
GM
13412001-02-19 Gerd Moellmann <gerd@gnu.org>
1342
c8bc6f65
GM
1343 * window.c (Fmove_to_window_line): Undo last change.
1344 (displayed_window_lines): Call line_bottom_y to determine
1345 the line's bottom position.
1346
1347 * dispextern.h (line_bottom_y): Add prototype.
1348
52283633 1349 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
c8bc6f65
GM
1350 (pos_visible_p): Use it.
1351
980a2d69
GM
1352 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
1353 set redisplaying_p to 0 here instead of in Frecursive_edit.
1354 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
1355 set redisplaying_p.
1356
52283633 1357 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
184d2372
GM
1358 New variables.
1359 (syms_of_xdisp): Initialize new variables.
1360 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
1361 Specbind `inhibit-menubar-update' when updating the menu bar.
1362
65048e97
GM
1363 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
1364 safe_run_hooks.
1365
1366 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
1367 safe_run_hooks.
1368
a57c4026
GM
1369 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
1370 is null.
1371
aeac019e
GM
1372 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
1373 to the start of the file.
1374
76846b31
GM
13752001-02-16 Gerd Moellmann <gerd@gnu.org>
1376
f3f053f3 1377 * window.c (set_window_buffer): Fix last change.
52283633 1378
f3f053f3
GM
1379 * window.c (set_window_buffer): Set window's vscroll to 0.
1380
dad75588
GM
1381 * window.c (coordinates_in_window): Increase width of area
1382 where the vertical line can be dragged.
1383
c220b753
GM
1384 * xterm.c (x_set_glyph_string_background_width): Extend the
1385 background face to the end of the drawing area in the text
1386 area, only.
1387
c56b1c1b
GM
1388 * xdisp.c (handle_single_display_prop): Set iterator's position
1389 to where the `display' property starts, like for images.
1390 (dump_glyph): New function.
1391 (dump_glyph_row): Use it. Dump info about marginal areas.
1392
1393 * dispnew.c (direct_output_for_insert): Recognize more cases where
1394 glyphs can be written instead of being inserted.
1395
1396 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
1397 the left x-coordinate of the area to shift.
1398
76846b31
GM
1399 * dired.c (directory_files_internal): Set result list to nil
1400 before retrying.
1401
0fc71a77
KH
14022001-02-15 Kenichi Handa <handa@etl.go.jp>
1403
1404 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
1405 invalid multibyte sequence, treat *SRC as a character of
1406 eight-bit-graphic.
1407
25078b54
EZ
14082001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
1409
1410 * textprop.c (Fset_text_properties): Doc fix.
1411
8399f8a0
GM
14122001-02-15 Gerd Moellmann <gerd@gnu.org>
1413
1414 * dispnew.c (update_text_area): Undo change of 2001-01-12.
1415
9a2a6f73
DL
14162001-02-14 Dave Love <fx@gnu.org>
1417
1418 * coding.c: Doc and message fixes.
1419
bf853fee
AI
14202001-02-14 Andrew Innes <andrewi@gnu.org>
1421
1422 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
1423 Emacs frame above the screen size.
1424
78c663d8
GM
14252001-02-14 Gerd Moellmann <gerd@gnu.org>
1426
1427 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
1428
7cc9f69f
GM
14292001-02-13 Gerd Moellmann <gerd@gnu.org>
1430
0a411995
GM
1431 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
1432 case that TO ends up beyond ZV after running before-change-functions.
1433
5ddc1b75
GM
1434 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
1435 the selected window if it is showing the buffer in question.
1436
7cc9f69f
GM
1437 * dired.c (directory_files_internal): Initialize errno.
1438 (toplevel): Include errno.h.
1439
2e6621ca
GM
14402001-02-13 Kenichi Handa <handa@etl.go.jp>
1441
1442 * xfaces.c (best_matching_font): New parameter width_ratio.
1443 Multiply avgwidth by width_ratio.
1444 (choose_face_font): Call best_matching_font with width_ratio
1445 calculated from the column width of C.
1446
60222d69
AI
14472001-02-12 Andrew Innes <andrewi@gnu.org>
1448
1449 The following changes are to draw box lines inside characters area
1450 if line-width is negative.
52283633 1451
60222d69
AI
1452 * w32term.c (x_produce_image_glyph): Pay attention to the case that
1453 face->box_line_width is negative.
1454 (x_produce_stretch_glyph): Likewise.
1455 (x_produce_glyphs): Likewise.
1456 (x_estimate_mode_line_height): Likewise.
1457 (x_draw_glyph_string_background): Likewise.
1458 (x_draw_glyph_string_foreground): Likewise.
1459 (x_draw_composite_glyph_string_foreground): Likewise.
1460 (x_draw_glyph_string_box): Likewise.
1461 (x_draw_image_foreground): Likewise.
1462 (x_draw_image_relief): Likewise.
1463 (x_draw_image_foreground_1): Likewise.
1464 (x_draw_image_glyph_string): Likewise.
1465
9804b846
KH
14662001-02-09 Kenichi Handa <handa@etl.go.jp>
1467
1468 The following changes are to draw box lines inside characters area
1469 if line-width is negative.
52283633 1470
9804b846
KH
1471 * xterm.c (x_produce_image_glyph): Pay attention to the case that
1472 face->box_line_width is negative.
1473 (x_produce_stretch_glyph): Likewise.
1474 (x_produce_glyphs): Likewise.
1475 (x_estimate_mode_line_height): Likewise.
1476 (x_draw_glyph_string_background): Likewise.
1477 (x_draw_glyph_string_foreground): Likewise.
1478 (x_draw_composite_glyph_string_foreground): Likewise.
1479 (x_draw_glyph_string_box): Likewise.
1480 (x_draw_image_foreground): Likewise.
1481 (x_draw_image_relief): Likewise.
1482 (x_draw_image_foreground_1): Likewise.
1483 (x_draw_image_glyph_string): Likewise.
1484
1485 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
1486 and :line-width can be negative.
52283633 1487 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
9804b846 1488
49be9f70
JR
14892001-02-09 Jason Rumney <jasonr@gnu.org>
1490
1491 * w32term.c (w32_encode_char): Treat eight bit graphic and control
1492 characters the same as ASCII and latin-1.
1493 (x_display_and_set_cursor): Check for the focus frame's selected
1494 window instead of selected_window.
1495 (x_after_update_window_line): Don't clear if frame's internal
1496 border width is zero.
1497 (x_new_font): Don't change a tooltip's size.
1498 (w32_initialize): Set char_ins_del_ok to 1.
1499
1500 * w32fns.c (Fx_show_tip): Fix calls to make_number.
1501 (x_set_font): If font hasn't changed, avoid recomputing
1502 faces and other things.
52283633
SM
1503 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
1504 (Fx_create_frame): Add the tool bar height to the frame height.
49be9f70
JR
1505 (x_create_tip_frame): Prevent changing the tooltip's
1506 background color by specifying a color for the default font
1507 in .Xdefaults.
1508 (Qcancel_timer): New variable.
1509 (syms_of_w32fns): Initialize and staticpro it.
1510 (Fx_hide_tip, Fx_show_tip): Use it.
1511 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
1512 the timer.
1513 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
1514
1515 * w32.c (init_environment): Duplicate local string before putenv.
1516
555e35d2
SZ
15172001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
1518
1519 * charset.c (Fstring): A typo.
1520
19c92c94
KH
15212001-02-09 Kenichi Handa <handa@etl.go.jp>
1522
e47a1c33
KH
1523 * charset.c (Fstring): If all arguments are less than 256, return
1524 a unibyte string.
1525
1526 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
1527 return a unibyte string.
1528
19c92c94
KH
1529 * coding.c (code_convert_region): After detecting a coding, if
1530 nothing found, set coding->composing to COMPOSITION_NO.
1531 (decode_coding_string): Likewise.
1532
d8e675f5
SM
15332001-02-08 Stefan Monnier <monnier@cs.yale.edu>
1534
1535 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
1536 to avoid overflow.
1537
bd503487
KH
15382001-02-07 Kenichi Handa <handa@etl.go.jp>
1539
1540 * charset.c (parse_str_to_multibyte): New function.
1541
1542 * charset.h (parse_str_to_multibyte): Extern it.
1543
1544 * print.c (print_string): If we are going to print a unibyte
1545 string into a multibyte buffer, convert the string to multibyte by
1546 str_to_multibyte.
1547
a8370d72
AI
15482001-02-06 Andrew Innes <andrewi@gnu.org>
1549
1550 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
1551 been created. It seems we can get sent window messages such as
1552 WM_ERASEBKGND before we properly update a frame.
1553
c363a1d6
GM
15542001-02-06 Gerd Moellmann <gerd@gnu.org>
1555
1556 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
1557 Avoid some unnecessary cursor positioning.
1558
a08332c0
GM
15592001-02-05 Gerd Moellmann <gerd@gnu.org>
1560
52283633 1561 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
a08332c0
GM
1562 (LFACE_AVGWIDTH): New macro.
1563 (LFACEP): Use AREF.
1564 (check_lface_attrs): Check LFACE_AVGWIDTH.
1565 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
1566 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
1567 (merge_face_vectors): Check LFACE_AVGWIDTH.
1568 (Finternal_make_lisp_face): Use AREF.
1569 (xm_set_menu_resources_from_menu_face)
1570 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
1571 (Finternal_lisp_face_empty_p): Use AREF.
1572 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
1573 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
1574 Compare average widths..
1575 (best_matching_font): Arrange for comparing average widths.
1576
52283633
SM
1577 * dispextern.h (enum lface_attribute_index):
1578 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
1579
5cb3c8d4
DL
15802001-02-05 Dave Love <fx@gnu.org>
1581
1582 * puresize.h: Revert last change following loadup.el change.
1583
193fba87
AI
15842001-02-05 Andrew Innes <andrewi@gnu.org>
1585
1586 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
1587 invocation of temacs, to work with Windows 2000.
1588 (bootstrap-emacs): Ditto.
1589
e16f52ce
GM
15902001-02-05 Gerd Moellmann <gerd@gnu.org>
1591
7a58ab59
GM
1592 * xterm.c (x_display_and_set_cursor): Check for the focus
1593 frame's selected window instead of selected_window.
1594
e89aaabd
GM
1595 * xdisp.c (try_scrolling): If point is in the line below the
1596 window, make sure to move the iterator at least a canonical
1597 char height down.
1598
52283633 1599 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
e16f52ce 1600
789ce875
KH
16012001-02-05 Kenichi Handa <handa@etl.go.jp>
1602
52283633
SM
1603 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
1604 If invalid, execute CCL_INVALID_CMD.
789ce875
KH
1605 (ccl_driver): If the CCL program is terminated because of
1606 CCL_STAT_INVALID_CMD, copy the remaining source data to the
1607 destination instead of throwing them away.
1608
20b28f82
GM
16092001-02-02 Gerd Moellmann <gerd@gnu.org>
1610
79fb38c0
GM
1611 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
1612 faces and other things.
1613
20b28f82
GM
1614 * xdisp.c (get_next_display_element): Fix case of empty
1615 display table entry.
1616
5a72551e
EZ
16172001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
1618
eb24d0bf
EZ
1619 * editfns.c (Fconstrain_to_field): Doc fix.
1620
6a3f48c7
EZ
1621 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
1622 into `thoroughly', to make it consistent with the doc string.
1623
5a72551e
EZ
1624 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
1625
01acdb05
GM
16262001-02-01 Gerd Moellmann <gerd@gnu.org>
1627
0353b28f
GM
1628 * search.c (search_buffer): Call set_search_regs with a byte
1629 position, not a character position.
1630
01acdb05
GM
1631 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
1632 minibuffer-only,
1633
e86b5133
EZ
16342001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
1635
1636 * frame.c (Fmodify_frame_parameters): Doc fix.
1637
7442878f
GM
16382001-01-31 Gerd Moellmann <gerd@gnu.org>
1639
01acdb05
GM
1640 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
1641 identifier which is not reserved by Standard C.
52283633 1642
7442878f
GM
1643 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
1644
1645 * window.c (enum window_part): New enumeration.
1646 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
1647 Qright_bitmap_area.
1648 (coordinates_in_window): Return an enumerator from enum
1649 window_part. Fix handling of right scroll bar.
1650 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
1651 `right-fringe' instead of `left-bitmap-area' and
1652 `right-bitmap-area'. Use enumerators from enum window_part
1653 instead of hard-coded integers.
52283633
SM
1654 (check_window_containing, window_from_coordinates):
1655 Use enumerators from enum window_part instead of hard-coded integers.
7442878f
GM
1656 (syms_of_window): Replace Qleft_bitmap_area and
1657 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
1658
7c132cba
EZ
16592001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
1660
1661 * editfns.c (Fformat_time_string): Doc fix.
1662
c359dd9e
SM
16632001-01-31 Stefan Monnier <monnier@cs.yale.edu>
1664
1665 * keymap.c (Fwhere_is_internal): Use the first valid binding
1666 if no ascii binding is found (when firstonly is t).
1667
ce070307
GM
16682001-01-31 Gerd Moellmann <gerd@gnu.org>
1669
b4f30ec5
GM
1670 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
1671 instead of Finteractive_p.
1672
1673 * lisp.h (interactive_p): Add prototype.
1674
1675 * eval.c (interactive_p): New function.
1676 (Finteractive_p): Use it.
1677
ce070307
GM
1678 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
1679
f57b6e64
DL
16802001-01-31 Dave Love <fx@gnu.org>
1681
d61c7afe
DL
1682 * .gdbinit (hook-run): Define to run xreload.
1683
f57b6e64
DL
1684 * textprop.c (Fset_text_properties): Fix newline in doc string.
1685
eef93f99
GM
16862001-01-30 Gerd Moellmann <gerd@gnu.org>
1687
52283633
SM
1688 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
1689 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
eef93f99
GM
1690
1691 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
52283633 1692 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
eef93f99
GM
1693 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
1694
1695 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
1696 height.
1697
d9c1f6f9
DL
16982001-01-30 Dave Love <fx@gnu.org>
1699
1700 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
1701 AFTER_POTENTIAL_GC.
1702
e8f044a0
GM
17032001-01-29 Gerd Moellmann <gerd@gnu.org>
1704
52283633
SM
1705 * bytecode.c (Fbyte_code) <Bcurrent_column>:
1706 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
e8f044a0 1707
8e1db7b3
EZ
17082001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
1709
1710 * textprop.c (Fset_text_properties): Doc fix.
1711
4eefd9d2
GM
17122001-01-29 Gerd Moellmann <gerd@gnu.org>
1713
1714 * xdisp.c (forward_to_next_line_start): Remove xassert.
1715
fccb8288
EZ
17162001-01-29 Jason Rumney <jasonr@gnu.org>
1717
4eefd9d2 1718 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
fccb8288
EZ
1719 returning without releasing it.
1720
76581eab
KH
17212001-01-29 Kenichi Handa <handa@etl.go.jp>
1722
1723 * w32fns.c (w32_font_match): Allocate three more bytes to regex
1724 for '^', '$', and '\0'.
1725
83a96b4d
AC
17262001-01-28 Andrew Choi <akochoi@i-cable.com>
1727
5604ec34
AC
1728 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
1729 regex for '^', '$', and '\0'.
1730
83a96b4d
AC
1731 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
1732 only if current_sblock has been initialized.
1733
1734 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
1735 terminal frame even if it is the only visible frame.
1736
c09a6440
KH
17372001-01-28 Kenichi Handa <handa@etl.go.jp>
1738
1739 * fontset.c (font_family_registry): Even if FONTNAME conform to
1740 XLFD, if it specifies other fields than family and registry,
52283633 1741 return FONTANME. New argument FORCE if nonzero cancel that feature.
c09a6440 1742 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
52283633
SM
1743 a signle byte character. Don't set FAMILY part to nil here.
1744 It is handled by the caller choose_face_font.
c09a6440
KH
1745 (Fnew_fontset): Call font_family_registry with FORCE 0.
1746 (Fset_fontset_font): Likewise.
1747
4dcd74e6
GM
17482001-01-27 Gerd Moellmann <gerd@gnu.org>
1749
1750 * xdisp.c (display_line): Don't treat a newline as fitting
1751 on the line.
1752
d2906bf8
GM
17532001-01-26 Gerd Moellmann <gerd@gnu.org>
1754
0130fe1a
GM
1755 * window.c (size_window): Set the window's orig_top to nil when
1756 changing heights, so that a future shrink_mini_window won't
1757 restore a bogus height.
1758
550f0e6a
GM
1759 * frame.c (do_switch_frame): If selected frame has a mini-window,
1760 resize that to exact size.
1761
b7b20fbd
GM
1762 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
1763
a47b7816
GM
1764 * xdisp.c (display_line): Simplify check for glyphs fitting
1765 entirely in the line.
1766
d2906bf8
GM
1767 * xfns.c (xic_style): New variable.
1768 (create_frame_xic): Move static variable to global scope for
550f0e6a 1769 the case that `static' gets defined away.
d2906bf8 1770
73df2b1e
KH
17712001-01-26 Kenichi Handa <handa@etl.go.jp>
1772
1773 * coding.c (decode_coding): Set a flag for inhibiting
1774 inconsistent eol.
1775 (code_convert_region): Always set saved_coding_symbol.
1776 (decode_coding_string): Likewise. Update coding->symbol when we
52283633 1777 encounter a inconsistent eol by the same way as code_convert_region.
73df2b1e 1778
6613cfc4
GM
17792001-01-25 Gerd Moellmann <gerd@gnu.org>
1780
c5e6e06b
GM
1781 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
1782 XClearArea.
1783
1784 * xterm.c (x_after_update_window_line): Don't clear if frame's
1785 internal border width is zero.
1786 (x_clear_area): New function.
1787 (x_after_update_window_line, x_clear_end_of_line)
1788 (x_scroll_bar_create, x_scroll_bar_set_handle)
1789 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
1790 instead of XClearArea.
1791
1792 * xterm.h (x_clear_area): Add prototype.
1793
6613cfc4
GM
1794 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
1795 which doesn't seem necessary anymore with Lesstif 0.92.
1796
650cc6cc
DL
17972001-01-25 Dave Love <fx@gnu.org>
1798
34ac3367
DL
1799 * puresize.h (BASE_PURESIZE): Up to 720000.
1800
650cc6cc
DL
1801 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
1802
5e37dc22
GM
18032001-01-25 Gerd Moellmann <gerd@gnu.org>
1804
e1e441f9
GM
1805 * xdisp.c (echo_area_display): Don't call redisplay_internal
1806 when Emacs is shutting down. We can't run hooks etc. that
1807 would be necessary to do a redisplay.
1808
5e37dc22
GM
1809 * lread.c (read_integer): Use type EMACS_INT instead of int.
1810
0fb94c7f
EZ
18112001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
1812
1813 * ccl.c (ccl_driver): Fix last change.
1814
e3778624
KH
18152001-01-25 Kenichi Handa <handa@etl.go.jp>
1816
1817 * ccl.h (sturct ccl_program): New member suppress_error.
1818
bb264518 1819 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
e3778624
KH
1820 insert error message to the output.
1821 (setup_ccl_program): Initialize ccl->suppress_error to 0.
1822
1823 * coding.h (struct coding_system): New member suppress_error.
1824
1825 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
1826 (Fset_terminal_coding_system_internal): Set the member
1827 suppress_error to 1.
1828 (Fset_safe_terminal_coding_system_internal): Likewise.
1829
245ed2b1
SM
18302001-01-24 Stefan Monnier <monnier@cs.yale.edu>
1831
1832 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
1833 as if it was a `charset'.
1834
f9aaedb6
GM
18352001-01-24 Gerd Moellmann <gerd@gnu.org>
1836
1837 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
1838 value in where_is_cache; the next lookup in the cache returns
1839 something bogus if we do.
1840
c3902c3e
EZ
18412001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
1842
1843 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
1844 if HAVE_WINDOW_SYSTEM isn't defined.
1845
3497f73e
GM
18462001-01-24 Gerd Moellmann <gerd@gnu.org>
1847
e7e41584
GM
1848 * fns.c (sweep_weak_table): Fix code taking items out of
1849 the hash collision chain. Some cleanup.
1850
3497f73e
GM
1851 * xterm.c (x_new_font): Don't change a tooltip's size.
1852
1853 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
1854 background color by specifying a color for the default font
1855 in .Xdefaults.
1856
3d48e687
KH
18572001-01-24 Kenichi Handa <handa@etl.go.jp>
1858
96531b20
KH
1859 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
1860 a workaround for SunOS 4's cc.
1861 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
1862 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
1863 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
1864 statement.
3d48e687 1865
a30629d2
GM
18662001-01-23 Gerd Moellmann <gerd@gnu.org>
1867
1868 * xterm.c (x_set_window_size_1): New function extracted from
1869 x_set_window_size.
1870 (x_set_window_size): Use it.
1871 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
1872 doesn't have a widget, like tooltips.
1873
5a43decf
EZ
18742001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
1875
52283633 1876 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5a43decf 1877
b0e98867
KH
18782001-01-23 Kenichi Handa <handa@etl.go.jp>
1879
1880 * fns.c (Fset_char_table_default): Fix to make sub char-table
1881 correctly.
1882
50606b4c
GM
18832001-01-22 Gerd Moellmann <gerd@gnu.org>
1884
cb2ddc53 1885 * xdisp.c (build_desired_tool_bar_string): Make sure we have
52283633
SM
1886 a desired tool bar string, even if there are no tool bar items.
1887
57c28064
GM
1888 * xdisp.c (Ftool_bar_lines_needed): New function.
1889 (syms_of_xdisp): Defsubr it.
1890
50606b4c
GM
1891 * editfns.c (Fformat): Don't extend text properties from arguments
1892 to padding chars in the result.
1893
2f169c38
EZ
18942001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
1895
1896 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
1897
0f32f023
AI
18982001-01-20 Andrew Innes <andrewi@gnu.org>
1899
52283633 1900 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
0f32f023
AI
1901 (w32_initialize): Don't set term hooks that aren't actually needed
1902 in windowed mode.
1903
1904 * xfaces.c (realize_default_face):
1905 (realize_face):
1906 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
1907
1908 * xdisp.c (handle_single_display_prop): Remove references to
1909 FRAME_W32_CONSOLE_P.
1910
52283633 1911 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
0f32f023
AI
1912
1913 * frame.h (output_method): Remove output_w32_console method.
1914 (FRAME_W32_CONSOLE_P): Remove macro.
1915
1916 * frame.c (Qw32_console): Remove variable.
1917 (Fframep): Remove references to it.
1918 (syms_of_frame): Ditto.
1919 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
1920
1921 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
1922 redefinition.
1923
7173eada
KH
19242001-01-20 Kenichi Handa <handa@etl.go.jp>
1925
1926 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
1927
755b45ce
AI
19282001-01-19 Andrew Innes <andrewi@gnu.org>
1929
1930 * w32.c (init_environment): Add a version-independent site-lisp
1931 directory to EMACSLOADPATH, after the version dependent one.
1932
0a949811
GM
19332001-01-19 Gerd Moellmann <gerd@gnu.org>
1934
8501998a
GM
1935 * editfns.c (Fbuffer_substring): Doc fix.
1936
52283633
SM
1937 * xdisp.c (message_dolog, message2, message2_nolog):
1938 Rename parameter LEN to NBYTES.
0a949811 1939
e6ebcbbe
KH
19402001-01-19 Kenichi Handa <handa@etl.go.jp>
1941
200ecca2
KH
1942 * charset.c (strwidth): Use c_string_width.
1943 (c_string_width): New function.
1944 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
1945 Caller changed.
1946
1947 * charset.h (c_string_width, lisp_string_width): Extern them.
1948
52283633 1949 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
200ecca2 1950
e6ebcbbe
KH
1951 * indent.c (check_composition): Check validity of composition.
1952
200ecca2
KH
1953 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
1954 characters by calling c_string_width.
1955 (x_consider_frame_title): Get byte length of frame tile string
1956 correctly.
1957 (display_mode_element): Pay attention to width of non-ASCII
1958 characters by calling strwidth.
1959
8692ca92
GM
19602001-01-18 Gerd Moellmann <gerd@gnu.org>
1961
8962e303
GM
1962 * xfns.c (Qcancel_timer): New variable.
1963 (syms_of_xfns): Initialize and staticpro it.
1964 (Fx_hide_tip, Fx_show_tip): Use it.
1965 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
1966 the timer.
1967 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
1968
91523be9
GM
1969 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
1970
1971 * window.h (WINDOW_LIVE_P): New macro.
1972
b0b7ed0e
GM
1973 * window.c (window_size_fixed): New variable.
1974 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
1975 the doc string.
1976
06bccf8e
GM
1977 * eval.c (specbind): If binding a per-buffer variable which
1978 doesn't have a buffer-local value in the current buffer, change
1979 the global value by changing the value of the symbol bound in all
1980 buffers not having their own value, to make it consistent with
1981 what happens with other buffer-local variables.
1982
8692ca92
GM
1983 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
1984
1985 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
1986 when searching for a newline.
1987
bb3a3b50
KH
19882001-01-18 Kenichi Handa <handa@etl.go.jp>
1989
1990 * xdisp.c (display_string): Fix previous change.
1991
c2cc16fa
JR
19922001-01-18 Jason Rumney <jasonr@gnu.org>
1993
1994 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
1995 GLYPH_DEBUG is defined.
1996 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
1997 true for images with `:ascent 100'.
1998 (x_set_mouse_face_gc): If the last used mouse face has gone in the
1999 meantime, use face MOUSE_FACE_ID.
2000 If first glyph isn't a character glyph, use the ASCII NUL
2001 character to determine the face.
2002 (expose_area): Do not treat left margin specially.
2003 (note_mode_line_highlight): If no local_map, check global keymap.
2004 (note_mouse_highlight): Initialize overlay.
52283633 2005 (clear_mouse_face): Don't return if tip_frame is non-nil.
c2cc16fa
JR
2006 (show_scroll_bars): Remove unused function.
2007 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
2008 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
2009 Clip to row.
52283633 2010 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
c2cc16fa
JR
2011 (x_free_frame_resources): Unload relief colors.
2012
9c11f79e
GM
20132001-01-17 Gerd Moellmann <gerd@gnu.org>
2014
3aec8722 2015 * xdisp.c (forward_to_next_line_start): Avoid calling
52283633
SM
2016 get_next_display_element when the newline is already found.
2017 This may change the iterator's position, when its current position is
3aec8722
GM
2018 equal to the iterator's stop_charpos.
2019
f3ffc2c3
GM
2020 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
2021 zero, use this method only at the end of a line.
2022
52283633 2023 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
a86110a8
GM
2024 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
2025 if SCALABLE_FONTS_P is set.
52283633 2026
d26d6fd9
GM
2027 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
2028 so that scalable fonts are included.
2029
9c11f79e
GM
2030 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
2031 In the cache, use a key containing the information if scalable
2032 fonts are included.
2033 (x_load_font): Adapt to change of keys in the font cache.
2034
20352001-01-17 Kim F. Storm <storm@filanet.dk>
52283633 2036
d26d6fd9
GM
2037 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
2038 XListFonts to take advantage of font caching.
2039
9c11f79e
GM
2040 * xterm.c (x_list_fonts): Ensure caching font information when
2041 called for a null frame, which is the case frequently when Emacs
2042 starts.
2043
51446987
GM
20442001-01-17 Gerd Moellmann <gerd@gnu.org>
2045
f864120f
GM
2046 * xfns.c (QCconversion): Replaces QCalgorithm.
2047
2048 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
2049
2050 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
2051 of :algorithm.
52283633 2052
e37d1417
GM
2053 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
2054 not everything could be displayed.
2055
51446987
GM
2056 * line.h, x-list-font.c: Files removed because unused.
2057
9ad4f3e5
AI
20582001-01-17 Andrew Innes <andrewi@gnu.org>
2059
2060 * dired.c (directory_files_internal): Convert result from readdir
2061 to a unibyte string initially, to avoid possible misinterpretation
2062 of some bytes as the internal form of Emacs characters.
2063
2eda09b5
KH
20642001-01-17 Kenichi Handa <handa@etl.go.jp>
2065
2066 * fns.c (concat): Be sure to avoid putting the same `composition'
2067 property on the adjacent regions.
2068
826f3788
GM
20692001-01-16 Gerd Moellmann <gerd@gnu.org>
2070
52283633 2071 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
f251459d
GM
2072 (Fscroll_right, Fscroll_left): Set it here instead, if called
2073 interactively.
2074
d57b83b3
GM
2075 * buffer.c (Fset_buffer_modified_p): Set buffer's
2076 prevent_redisplay_optimizations_p flag.
2077
826f3788 2078 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
52283633
SM
2079 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
2080 with additional arg.
2081
2082 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
2083 Change prototype.
826f3788 2084
826f3788
GM
2085 * xdisp.c (redisplay_preserve_echo_area): Add parameter
2086 FROM_WHERE, for debugging.
2087
261d788b
KH
20882001-01-16 Kenichi Handa <handa@etl.go.jp>
2089
2090 * ccl.c (Fregister_ccl_program): Handle the return value of
2091 resolve_symbol_ccl_program correctly.
52283633 2092 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
261d788b 2093
bccee4f2
GM
20942001-01-15 Gerd Moellmann <gerd@gnu.org>
2095
e4ded23c
GM
2096 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
2097 has gone in the meantime, use face MOUSE_FACE_ID.
52283633
SM
2098
2099 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
2100 If x_display_info_for_display returns null, don't try to close
ae24cb3b
GM
2101 the display; we didn't open it.
2102
bccee4f2
GM
2103 * dispnew.c (save_or_restore_current_matrices): Function removed.
2104 (save_current_matrix, restore_current_matrix): New functions.
2105 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
2106 restore the frame's current matrix. Due to the glyph pointer
2107 setup done in adjust_glyph_matrix, there is no easy way to make
2108 saving the current matrix in the desired matrix generally correct,
2109 so don't try it.
2110
ebeccffa
KH
21112001-01-15 Kenichi Handa <handa@etl.go.jp>
2112
2113 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
2114 truncation glyphs.
2115 (display_line): Optimize for wide characters.
e4ded23c 2116 (display_string): Don't try to display a multi-column character
ebeccffa
KH
2117 partially. On ttys, produce more than one truncation glyph for
2118 multi-column characters that don't fit on the line.
2119
64388126
KH
21202001-01-13 Kenichi Handa <handa@etl.go.jp>
2121
52283633
SM
2122 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
2123 Define it instead of WORDS_BIGENDIAN. Caller changed.
64388126 2124
8edb0a6f
JR
21252001-01-13 Jason Rumney <jasonr@gnu.org>
2126
2127 * w32fns.c (Fimage_size, image_ascent, lookup_image)
2128 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
52283633
SM
2129 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
2130 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
8edb0a6f 2131
52283633
SM
2132 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
2133 (x_draw_image_relief, x_draw_image_foreground_1)
8edb0a6f
JR
2134 (x_draw_image_glyph_string): Adapt to change of image margins.
2135
2136 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
2137 variables.
2138
2139 * w32bdf.c (search_file_line, get_cached_font_char)
2140 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
2141
2142 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
2143
2144 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
2145 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
2146 (Fw32_send_sys_command): Remove unused variables.
2147 (w32_msg_pump): Add parentheses.
2148
2149 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
2150 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
2151 Add parentheses.
2152
4956d1ef
GM
21532001-01-12 Gerd Moellmann <gerd@gnu.org>
2154
b30623be
GM
2155 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
2156 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
2157 being a pair of margins.
2158 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
2159 to DEFVAR_LISP. Extend doc.
2160
2161 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
2162 margins.
2163 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
2164 pair of integers `(X . Y)', use X for the horizontal and Y for the
2165 vertical margin.
2166 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
2167 (parse_image_spec): Check it.
52283633
SM
2168 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
2169 (tiff_format, gif_format, gs_format):
2170 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
b30623be 2171
52283633
SM
2172 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
2173 (x_draw_image_relief, x_draw_image_foreground_1)
b30623be
GM
2174 (x_draw_image_glyph_string): Adapt to the change of image margins.
2175
2176 * dispextern.h (struct image): Replace member `margin' with
2177 `hmargin' and `vmargin'.
2178
4554cc79
GM
2179 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
2180 and GLYPHS.
2181
2182 * dispnew.c (update_text_area): Put code which decrements the
2183 stop position when the row's face extends to the end of the
3bffc665 2184 line in #if 0.
4554cc79 2185
3cccce8d
GM
2186 * xfns.c (x_set_mouse_color): Fix color allocation.
2187
4956d1ef
GM
2188 * keyboard.c: Call get_local_map with new argument list.
2189
2190 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
2191
2192 * intervals.h (enum map_property): Removed.
2193 (get_local_map): Change prototype.
2194
2195 * keymap.c: Call get_local_map with new argument list.
2196 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
2197
2c2ff7f2
GM
21982001-01-11 Gerd Moellmann <gerd@gnu.org>
2199
a23887b9
GM
2200 * xdisp.c (build_desired_tool_bar_string): Correct the computation
2201 of the size needed for the tool bar string. For the last image,
2202 use a `display' property that reaches to the end of the string.
2203
a7ee2d2e
GM
2204 * xselect.c (selection_request_dpyinfo): New variable.
2205 (x_handle_selection_request): Set it.
2206 (x_selection_request_lisp_error): Don't call
2207 x_decline_selection_request if selection request's display has
2208 been closed.
2209
52283633
SM
2210 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
2211 Do the unregister_colors before calling XFreeColors.
2c2ff7f2 2212
457b792c
GM
22132001-01-10 Dave Love <fx@gnu.org>
2214
2215 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
2216 ${SOME_MACHINE_LISP}, not ${lisp}.
2217
c1efd260
GM
22182001-01-10 Gerd Moellmann <gerd@gnu.org>
2219
52283633
SM
2220 * xdisp.c (display_line): On ttys, produce more than one truncation
2221 glyph for multi-column characters that don't fit on the line.
a98b5ed9 2222
ac95a621
GM
2223 * xselect.c (x_reply_selection_request): Add a comment.
2224
c1efd260
GM
2225 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
2226 XkbGetNames instead of XkbGetKeyboard.
2227
1bfb1345
DL
22282001-01-10 Dave Love <fx@gnu.org>
2229
2230 * sysdep.c (random): Revert the declaration.
2231
38119822
GM
22322001-01-09 Gerd Moellmann <gerd@gnu.org>
2233
52283633
SM
2234 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
2235 Call function string_bytes.
35f464a7
GM
2236 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
2237
2238 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
2239 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
2240 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
2241 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
2242 the current sblock.
2243 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
2244 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
2245 after sweeping strings, and at the end.
2246 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
2247
38119822
GM
2248 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
2249 ensure that pop_message is called.
2250
2251 * keyboard.c (Fexecute_extended_command): Use a
2252 record_unwind_protect to ensure that pop_message is called.
2253
2254 * lisp.h (push_message_unwind): Add prototype.
2255
2256 * xdisp.c (push_message_unwind): New function.
2257
2258 * fileio.c (do_auto_save_unwind): Do the pop_message here
2259 instead of in Fdo_auto_save.
2260 (Fdo_auto_save): Don't call pop_message.
2261
f47a9ec4
KR
22622001-01-08 Ken Raeburn <raeburn@gnu.org>
2263
2264 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
2265 in inner block.
2266
a758f97d
GM
22672001-01-08 Gerd Moellmann <gerd@gnu.org>
2268
6d0afc03
GM
2269 * window.c (window_scroll_pixel_based): Adjust glyph matrices
2270 when increasing window's vscroll.
2271
a758f97d
GM
2272 * macros.c (Qkbd_macro_termination_hook): New variable.
2273 (syms_of_macros): Initialize and staticpro it.
2274 (pop_kbd_macro): Run kbd-macro-termination-hook.
2275
2276 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
2277
1bfb1345 22782001-01-07 Dave Love <fx@gnu.org>
64d4ec0f
DL
2279
2280 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
2281 arglist, for documentation's sake.
2282
0dac6924
AI
22832001-01-06 Andrew Innes <andrewi@gnu.org>
2284
2285 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
2286 of *.pdb.
2287
8182406a
AI
22882001-01-05 Andrew Innes <andrewi@gnu.org>
2289
2290 * term.c (update_end): Don't check updating_frame; for some reason
2291 this can be 0 sometimes, such as after dismissing a popup menu,
2292 and isn't necessary given the explicit frame argument.
2293
3828218c
GM
22942001-01-05 Gerd Moellmann <gerd@gnu.org>
2295
2296 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
2297 on some systems, and an unsigned long on others, like FreeBSD 4.1.
2298
2f5ded21
GM
22992001-01-04 Gerd Moellmann <gerd@gnu.org>
2300
52283633 2301 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
2f5ded21
GM
2302
2303 * xfns.c (x_create_tip_frame): Preserve the value of
2304 face_change_count around the creation of the tip frame.
52283633 2305
2f5ded21
GM
2306 * xfns.c (last_show_tip_args): New variable.
2307 (compute_tip_xy): New function.
2308 (Fx_show_tip): Reuse an existing tip frame, if possible.
2309 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
2310
dfad65fa
DL
23112001-01-04 Dave Love <fx@gnu.org>
2312
64d4ec0f
DL
2313 * editfns.c (Fformat): Doc fix.
2314
dfad65fa
DL
2315 * systime.h (set_file_times): Prototype.
2316
2317 * widget.h (EmacsFrameSetCharSize_): Prototype.
2318
2319 * sysdep.c (random, srandom): Declare explicitly.
2320
2321 * dispextern.h (move_it_vertically_backward): Declare.
2322
85fe3b5e
GM
23232001-01-04 Gerd Moellmann <gerd@gnu.org>
2324
0f2ac578
GM
2325 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
2326 like in Fx_create_frame.
2327
482cca61
GM
2328 * xfaces.c (set_font_frame_param): Don't do anything for
2329 non-graphical frames.
2330
85fe3b5e
GM
2331 * window.c (Fdelete_other_windows): Set window's window_end_valid
2332 to nil when changing the window's start. Don't change the
2333 window's start when its top position hasn't changed. If we do,
2334 this will set the window's optional_new_start, which act's like a
2335 force_start during redisplay with C-x 1 M-> under particular
2336 circumstances (see report from Per Starback to emacs-pretest-bug
2337 from 2000-12-13.).
2338
3e99d3b4
GM
23392001-01-03 Gerd Moellmann <gerd@gnu.org>
2340
a77dc1ec
GM
2341 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
2342 short cut at the start of the function. Add an assertion.
2343 (reseat_at_next_visible_line_start): Add an assertion.
2344
2f3cad6c
GM
2345 * window.c (Frecenter): When changing the window start, set the
2346 window's window_end_valid to nil.
2347 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
2348
2349 * dispextern.h (move_it_past_eol): Add prototype.
2350
2351 * xdisp.c (move_it_past_eol): New function.
2352
3e99d3b4
GM
2353 * window.c (Fwindow_end): Doc fix.
2354
23552001-01-03 Dave Love <fx@gnu.org>
2356
52283633 2357 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
3e99d3b4 2358
bafb434c
GM
23592001-01-03 Gerd Moellmann <gerd@gnu.org>
2360
2361 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
2362 the enabled_p flag of the glyph row at window_end_vpos to 0.
2363 (handle_single_display_prop): Fix last change.
2364
5297fb00
RS
23652001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2366
2367 * window.c (Frecenter): Doc fix.
2368
13d6a61c
AI
23692001-01-02 Andrew Innes <andrewi@gnu.org>
2370
2371 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
2372
2373 * frame.h (output_method): Add output_w32_console method.
2374 (FRAME_W32_CONSOLE_P): New macro.
2375
2376 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
2377 use output_w32_console method.
2378 (Qw32_console): New Lisp_Object.
2379 (Fframep): Return it.
2380 (syms_of_frame): Init it.
52283633 2381 (Fframe_parameters): Report w32console as font for w32_console frames.
13d6a61c
AI
2382
2383 * xfaces.c (realize_default_face): Set face foreground and
2384 background to unspecified for w32_console frames.
2385 (realize_face): Realize face cache for w32_console frames.
2386 (realize_tty_face): Accept w32_console frames.
2387
52283633 2388 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
13d6a61c
AI
2389 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
2390 necessary, even if running interactively.
2391
2392 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
2393 w32_console frames.
2394
52283633
SM
2395 * w32term.c (x_update_begin):
2396 (x_update_end):
2397 (x_clear_frame):
2398 (x_ins_del_lines):
2399 (x_change_line_highlight):
2400 (x_delete_glyphs):
2401 (w32_ring_bell):
2402 (x_update_begin):
2403 (x_update_end):
2404 (w32_reassert_line_highlight):
2405 (w32_frame_rehighlight):
13d6a61c
AI
2406 (w32_frame_raise_lower): Do nothing if not w32 frame.
2407
2408 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
2409
2410 * w32fns.c (Fx_display_color_cells): Determine correct value, when
2411 system doesn't tell us directly.
2412 (Fx_display_visual_class): Implement properly.
2413
d6bb0c0d
GM
24142001-01-02 Gerd Moellmann <gerd@gnu.org>
2415
2416 * window.c (Frecenter): Handle centering in graphical frames
2417 specially. Centering on the basis of line counts doesn't work
2418 reliably with variable-height lines.
52283633 2419
315f5865
EZ
24202001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
2421
2422 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
2423 and al[].
2424
52283633 2425 * composite.c (run_composition_function): Remove unused var `val'.
315f5865
EZ
2426 (update_compositions): Remove unused variable `hook'.
2427
2428 * intervals.c (get_local_map): Remove unused variable `tem'.
2429
2430 * doprnt.c (doprnt1): Remove unused variable `size'.
2431
2432 * fns.c (Flength): Remove unused variable `tail'.
2433 (Fdelete): Remove unused variable `size'.
2434
2435 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
2436 and `gcpro2'.
2437
52283633 2438 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
315f5865
EZ
2439
2440 * data.c (find_symbol_value): Remove extra 3rd argument in the
2441 call to swap_in_symval_forwarding.
2442
52283633 2443 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
315f5865
EZ
2444
2445 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
2446 (trivial_regexp_p): Remove unused variable `c'.
2447 (boyer_moore): Remove unused variable `k'.
2448
2449 * indent.c (current_column): Remove unused variable `stopchar'.
2450 (Fcompute_motion): Remove unused variable `contin'.
2451
2452 * casefiddle.c (casify_object): Remove unused variable `tolen'.
2453
2454 * dired.c (directory_files_internal): Fix a typo in a comment.
2455 Remove an unused variable `handler'.
52283633 2456 (file_name_completion): Remove unused function-scope variable `dp'.
315f5865
EZ
2457 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
2458 on BSD4_2.
2459
52283633 2460 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
315f5865
EZ
2461
2462 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
2463 and `buf'.
2464 (Fmarker_insertion_type): Remove unused variable `buf'.
2465
2466 * insdel.c (make_gap): Remove unused variable `result'.
2467
52283633 2468 * keyboard.c (record_char): Remove unused function-scope var `help'.
315f5865
EZ
2469 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
2470 (menu_bar_items): Remove unused function-scope variable `tem'.
2471
2472 * fontset.c (fontset_ref): Remove unused variable `i'.
2473 (fontset_set): Remove unused variables `j' and `tmp'.
52283633 2474 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
315f5865
EZ
2475 (make_fontset_for_ascii_face): Remove unused variable `name'.
2476 (fs_load_font): Remove unused variable `font_idx'.
52283633 2477 (fs_query_fontset): Remove unused function-local variable `fontset'.
315f5865
EZ
2478 (list_fontsets): Remove unused variable `tail'.
2479 (Fnew_fontset): Remove unused variables `family' and `registry'.
2480 (accumulate_font_info): Remove unused variable `tmp'.
2481 (Ffontset_font): Remove unused variable `id'.
2482 (syms_of_fontset): Remove unused variable `i'.
2483
2484 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
2485 to x_term_init.
2486 (lookup_image): Remove unused variable `file'.
2487 (xbm_load): Remove unused variables `bitmap_data', `height', and
2488 `width'. Remove function-local variable `i', leave the
2489 block-local one.
2490 (gif_load): Remove unused variable `inc'.
2491
52283633 2492 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
315f5865
EZ
2493 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
2494 leave only the one in the inner block.
2495
2496 * xfaces.c (face_fontset, realize_default_face): Remove unused
2497 variable `fontset'.
2498 (face_at_buffer_position): Remove unused variable `multibyte_p'.
2499
2500 * term.c (encode_terminal_code): Remove unused variable `c'.
2501
2502 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
2503 char *' instead of `char *'.
2504
2505 * category.c (Fcategory_docstring): Remove unused variable `doc'.
52283633 2506 (Fget_unused_category): Remove unused variable `docstring_vector'.
315f5865
EZ
2507 (Fchar_category_set): Remove unused variables `val', `charset',
2508 `c1' and `c2'.
2509
52283633
SM
2510 * coding.c (detect_coding_iso2022, setup_coding_system):
2511 Remove unused variable `i'.
315f5865
EZ
2512 (detect_coding_mask): Remove unused variable `idx'.
2513 (detect_coding): Remove unused variable `i'.
2514 (ccl_coding_driver): Remove unused variable `result'.
2515 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
52283633 2516 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
315f5865
EZ
2517 (encode_coding_string): Remove unused variables `gcpro1' and
2518 `saved_coding_symbol'.
2519 (Ffind_coding_systems_region_internal): Remove function-local
2520 variable args[], leave only the block-local one.
2521 (code_convert_region1): Remove unused variable `len'.
2522
2523 * charset.c (char_printable_p): Remove unused variable `chars'.
2524 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
2525 (str_to_multibyte): Remove unused variable `c'.
2526
2527 * window.c (size_window): Remove block-local variable `min_size'.
2528
2529 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
2530 `header_line_height'.
2531 (append_space, extend_face_to_end_of_line): Declare `saved_what'
2532 enum display_element_type.
2533
1a8a9daf
GM
25342001-01-02 Gerd Moellmann <gerd@gnu.org>
2535
6dde6abc 2536 * xterm.c (x_connection_closed): Catch X errors around all
52283633
SM
2537 statements that call X. Save away the error message in a local copy.
2538
1883b2c6
GM
2539 * xterm.c (x_connection_closed): Set handling_signal to 0 at
2540 the start.
2541
a13be207
GM
2542 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
2543 in or at the start of invisible text.
2544
1a8a9daf
GM
2545 * dispnew.c (update_window): Don't check_current_matrix_flags.
2546
3608c0f9
JR
25472001-01-01 Jason Rumney <jasonr@gnu.org>
2548
2549 * w32fns.c (x_figure_window_size): Do not allow new_height and
2550 new_width of frame to override specified values.
2551
abb1acc4
KH
25522000-12-30 Kenichi Handa <handa@etl.go.jp>
2553
52283633 2554 * composite.c (find_composition): Fix a code for searching backward.
abb1acc4 2555
762a68ec
GM
25562000-12-29 Gerd Moellmann <gerd@gnu.org>
2557
52283633 2558 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
9c8b8382
GM
2559 (update_window) [GLYPH_DEBUG]: Call it.
2560 (scrolling_window): Prevent including current rows which are below
2561 what's displayed in the window.
2562
2563 * xdisp.c (try_window_reusing_current_matrix)
2564 <new start <= old start>: Disable rows in the current matrix
2565 which are below the window after scrolling.
52283633 2566
762a68ec
GM
2567 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
2568 is zero. It's not worth the complexity.
2569 (invisible_text_between_p): Put in #if 0 because unused.
2570
2d5912c1
GM
25712000-12-28 Gerd Moellmann <gerd@gnu.org>
2572
46f6a258
GM
2573 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
2574 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
2575
89f93679
GM
2576 * keyboard.c (echo_char): If C is an integer, always call
2577 push_key_description. Former code could signal an invalid
2578 character error.
2579
2580 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
2581 If set, print multibyte text.
2582 (Fsingle_key_description): Call push_key_description with
2583 FORCE_MULTIBYTE set.
2584 (describe_buffer_bindings): Likewise.
2585
2586 * lisp.h (push_key_description): Add prototype.
2587
c06017fb
GM
2588 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
2589 around the call to redisplay_internal.
2590
f1d2ce7f
GM
2591 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
2592
2d5912c1
GM
2593 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
2594
9371f831
KH
25952000-12-28 Kenichi Handa <handa@etl.go.jp>
2596
2597 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
2598 (ccl_driver): New local variable `extra_bytes'.
2599
2600 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
2601
52283633
SM
2602 * coding.c (setup_coding_system):
2603 Initialize coding->spec.ccl.eight_bit_carryover.
9371f831
KH
2604 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
2605
0c80628a
KH
26062000-12-28 Kenichi Handa <handa@etl.go.jp>
2607
2608 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
2609 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
2610 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
2611 (decode_composition_emacs_mule): New function.
2612 (decode_coding_emacs_mule): Decode composition sequence by calling
2613 decode_composition_emacs_mule.
2614 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
52283633
SM
2615 (encode_coding_emacs_mule): Changed from macro to function.
2616 If a text contains compositions, encode them correctly.
0c80628a
KH
2617 (setup_coding_system): Set coding->commong_flags for emacs-mule so
2618 that decoding and encoding are required.
2619
3e32cc27
GM
26202000-12-27 Gerd Moellmann <gerd@gnu.org>
2621
5e25feee
GM
2622 * xfaces.c (PT_PER_INCH): New macro.
2623 (xlfd_point_size): Compute real point size from font's pixel size.
2624 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
2625 instead of 72.
2626
892d8fcd
GM
2627 * .gdbinit: Comment out the line pointing to the Lesstif source
2628 directory.
2629
12c8b416
GM
2630 * window.c (Frecenter): Use displayed_window_lines instead
2631 of window_internal_height.
2632
6061fbf0
GM
2633 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
2634 instead of x-toolkit-scroll-bars-p.
2635 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
2636
2637 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
2638 instead of x-toolkit-scroll-bars-p.
2639 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
52283633 2640
3e32cc27
GM
2641 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
2642 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
52283633
SM
2643 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
2644 New variables.
2645 (add_window_display_history, add_frame_display_history)
3e32cc27
GM
2646 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
2647 (build_frame_matrix_from_leaf_window): Remove unused code.
2648 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
2649 redisplay history.
2650 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
2651 (update_window) [GLYPH_DEBUG]: Likewise.
2652 (syms_of_display): Defsubr dump-redisplay-history.
2653
31798cfe
GM
26542000-12-23 Gerd Moellmann <gerd@gnu.org>
2655
f717c2ba
GM
2656 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
2657 the end of the prompt. Set echo_after_prompt to the offset
2658 of echoptr in echobuf.
2659
aeb2b8fc
GM
2660 * xdisp.c (init_from_display_pos): Pop until the iterator's
2661 stack is empty; there may be frames for stretch or images
2662 on the stack.
2663
31798cfe
GM
2664 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
2665 (save_or_restore_current_matrix): New function for the same
2666 purpose, but more efficient.
2667 (adjust_frame_glyphs_for_frame_redisplay): Use it.
2668
f8156156
EZ
26692000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
2670
2671 * xdisp.c (syms_of_xdisp): Fix last change.
2672
bdd6d4e8
GM
26732000-12-23 Gerd Moellmann <gerd@gnu.org>
2674
2675 * xdisp.c (syms_of_xdisp): Doc fix.
2676
2677 * xdisp.c (redisplay_window): Remove label restore_buffers;
2678 use finish_scroll_bars instead to make sure that scroll bars
2679 are redeemed. If we don't do this, flickering can result from
2680 scroll bars being destroyed and recreated.
2681
9436cdf9
JR
26822000-12-22 Jason Rumney <jasonr@gnu.org>
2683
2684 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
2685 in the wrong colors when the foreground is not black.
2686 (expose_window): Don't redraw the window that's currently being
2687 updated.
2688
951f9df5
GM
26892000-12-22 Gerd Moellmann <gerd@gnu.org>
2690
856ff7a7
GM
2691 * window.c (size_window): When setting the window's too_small_ok
2692 flag, compare old size with minimum size depending on WIDTH_P,
2693 don't compare with window_min_width.
52283633 2694
951f9df5
GM
2695 * window.c (delete_window): Simplify somewhat.
2696 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
2697 freeing window matrices. The flag windows_or_buffers_changed is
2698 set, so the next redisplay will consider all windows; this should
2699 suffice.
2700
886bc933
KH
27012000-12-22 Kenichi Handa <handa@etl.go.jp>
2702
2703 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
2704
2705 * ccl.h (struct ccl_program): New member cr_consumed.
2706
2707 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
2708 (CCL_READ_CHAR): Handle EOL conversion here.
2709 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
2710
177f4e88
GM
27112000-12-21 Gerd Moellmann <gerd@gnu.org>
2712
52283633 2713 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
6ba384dc
GM
2714
2715 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
2716 otherwise tabs of different size compare equal.
2717
2718 * callint.c (Fcall_interactively): Prevent a compiler warning.
2719
2720 * print.c (print_unwind): Return nil.
2721 (PRINTDECLARE): Initialize all local variables.
2722 (print_preprocess): Add a default case.
2723
8e15274f
GM
2724 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
2725
2726 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
2727
52283633 2728 * window.c (delete_window, Fsplit_window)
177f4e88
GM
2729 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
2730
2731 * dispextern.h (ensure_frame_matrix): Function declaration removed.
2732
2733 * dispnew.c (ensure_frame_matrix): Removed.
2734 (save_frame_matrix, restore_frame_matrix): New functions.
2735 (adjust_frame_glyphs_for_frame_redisplay): Use them.
2736
2737 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
2738 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
2739
99012074
AI
27402000-12-21 Andrew Innes <andrewi@gnu.org>
2741
2742 * w32term.c (x_update_begin): Regenerate the palette here, rather
2743 than for each window.
2744
2745 * w32xfns.c (select_palette): Avoid calling SelectPalette if
2746 palette is NULL, since this corrupts memory! Also get
2747 display_info reference from frame.
2748
29ef7d2d
JR
27492000-12-21 Jason Rumney <jasonr@gnu.org>
2750
2751 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
2752
2753 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
2754 to avoid returning without releasing it.
3e27fa1f 2755
3f9d67a6
KH
27562000-12-21 Kenichi Handa <handa@etl.go.jp>
2757
587fc3f9
KH
2758 * keymap.c (push_key_description): Don't convert eight-bit-control
2759 and eight-bit-graphic to multibyte character.
2760
3f9d67a6
KH
2761 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
2762 generic character and CODE1 is nil, return the smallest character
2763 in CHARSET.
2764
774ba8c9
DL
27652000-12-20 Dave Love <fx@gnu.org>
2766
2767 * s/osf5-0.h (NSIG): Don't redefine.
2768
88416888
SM
27692000-12-20 Stefan Monnier <monnier@cs.yale.edu>
2770
2771 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
2772 excluding menu-bar and tool-bar.
2773 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
2774 (menu_item_p): Remove.
2775 (where_is_internal_1): Don't ignore menu-items.
2776
a6426c6f
GM
27772000-12-20 Gerd Moellmann <gerd@gnu.org>
2778
03ff8aab
GM
2779 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
2780 into account.
2781
2782 * window.c (make_window): Initialize window's min_hscroll.
2783 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
2784 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
2785 to zero.
2786 (struct saved_window): New member min_hscroll.
2787 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
2788 (Fset_window_configuration): Set window's min_hscroll.
2789 (save_window_save): Save window's min_hscroll.
2790 (compare_window_configurations): Compare min_hscroll values.
2791
2792 * window.h (struct window): New member min_hscroll.
2793
2794 * keyboard.c (echo_prompt): Prevent a compiler warning.
2795
8de4aaf8
GM
2796 * xdisp.c (try_cursor_movement): Fix last change. The real
2797 condition is that PT is at the end of the row, and should
2798 be displayed at the start of the next row.
52283633 2799
3f7e3031
GM
2800 * xdisp.c (try_cursor_movement): If we end on a partially
2801 visible line, end we already decided to scroll, return -1.
2802
a6426c6f
GM
2803 * dispextern.h (ensure_frame_matrix): Add prototype.
2804
2805 * window.c (delete_window, Fsplit_window)
2806 (Fset_window_configuration): Call ensure_frame_matrix.
2807
52283633
SM
2808 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
2809 New functions.
a6426c6f
GM
2810 (adjust_frame_glyphs_for_frame_redisplay): If display has been
2811 completed, call fake_current_matrices instead of marking frame
2812 garbaged.
2813
57fa2774
JR
28142000-12-20 Jason Rumney <jasonr@gnu.org>
2815
2816 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
2817
d925df90
EZ
28182000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
2819
2820 * fns.c (Frequire): Doc fix.
2821
7b93a85b
GM
28222000-12-19 Gerd Moellmann <gerd@gnu.org>
2823
52283633 2824 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
71d4497a 2825
c74e645b
GM
2826 * dispnew.c (direct_output_for_insert): Fix check for mini-window
2827 currently displaying a message.
2828
7b93a85b
GM
2829 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
2830 xterm.h.
2831 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
2832
90d97e64
AI
28332000-12-18 Andrew Innes <andrewi@gnu.org>
2834
2835 * w32.c (w32_strerror): New function.
2836
2837 * w32.h (w32_strerror): New extern.
2838
2839 * w32fns.c (Fw32_shell_execute): Use it.
2840
91c9e6ce
GM
28412000-12-18 Gerd Moellmann <gerd@gnu.org>
2842
2843 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
2844
6f4745e2
EZ
28452000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
2846
2847 * msdos.c (IT_set_face): Obey inverse_video.
2848
c9e088ce
KH
28492000-12-18 Kenichi Handa <handa@etl.go.jp>
2850
2851 * dired.c (directory_files_internal): Always return decoded filenames.
2852
c3695f5f
GM
28532000-12-18 Gerd Moellmann <gerd@gnu.org>
2854
52d8e4ff
GM
2855 * xterm.c (x_connection_closed): Prevent being called recursively
2856 because of an error condition in XtCloseDisplay.
52283633 2857
62be9979
GM
2858 * xdisp.c (init_iterator): If noninteractive, and the frame's
2859 face cache is null, make one.
2860
52283633 2861 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
5f7a1890 2862
c3695f5f
GM
2863 * process.c (wait_reading_process_input): Check for pending
2864 input when running timers.
2865
78555fbe
EZ
28662000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
2867
52283633 2868 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
78555fbe 2869
b2b36264
KH
28702000-12-18 Kenichi Handa <handa@etl.go.jp>
2871
2872 * process.c (read_process_output): Don't run a filter if the code
2873 decoder produces nothing but carryover.
2874
9c543fbf
AI
28752000-12-17 Andrew Innes <andrewi@gnu.org>
2876
2877 * w32.c (sys_rename): Only check errno against EEXIST, and not
2878 EACCES, when determining whether rename failed because the target
2879 exists. This was resulting in indefinite looping on Windows 9x if
2880 the source file was locked by another process.
2881
2882 * w32fns.c (Ffile_system_info): New function.
2883 (syms_of_w32fns): Defsubr it.
2884
10c2b5a8
GM
28852000-12-17 Gerd Moellmann <gerd@gnu.org>
2886
b0228ace
GM
2887 * window.c (coordinates_in_window): Fix computation for
2888 position on vertical line between mode lines.
2889
10c2b5a8
GM
2890 * xfns.c (unwind_create_frame): Return t if frame was deleted.
2891 Don't alter tip_frame or tip_window.
2892 (unwind_create_tip_frame): Set tip_frame to nil only if frame
2893 was deleted.
2894
c844a81a
GM
2895 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
2896 Don't alter tip_frame or tip_window.
2897 (unwind_create_tip_frame): Set tip_frame to nil only if frame
2898 was deleted.
2899
6c825f8e
EZ
29002000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
2901
2902 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
2903 be consistent with the doc string. Reported by NAKAJIMA Mikio
2904 <minakaji@osaka.email.ne.jp>.
2905
af4bb4c8
KH
29062000-12-16 Kenichi Handa <handa@etl.go.jp>
2907
2908 * xfaces.c (Vface_ignored_fonts): New variable.
2909 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
2910 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
2911
8062e53a
GM
29122000-12-15 Gerd Moellmann <gerd@gnu.org>
2913
e87b8809
GM
2914 * dispnew.c (update_window): Detect pending input every nth line
2915 updated, i.e. do it depending on real work done, and not on the
2916 vpos of the line.
2917
2918 * xterm.c (expose_window): Don't redraw the window that's
2919 currently being updated.
2920
a6768cc5
GM
2921 * window.c (Fset_window_point): Remove test for
2922 cursor_in_non_selected_windows.
2923
4ea7fdca
GM
2924 * lread.c (read1): Recognize end of file after `\\'.
2925
8062e53a
GM
2926 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
2927 not unwind_create_frame.
2928
bb7959c1
GM
29292000-12-15 Dave Love <fx@gnu.org>
2930
2931 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
2932 bcopy & al.
2933
2934 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
2935
ced04c42
KH
29362000-12-15 Kenichi Handa <handa@etl.go.jp>
2937
c5443913
KH
2938 * coding.c (setup_coding_system): Clear all members of the struct
2939 coding_system at first.
bc137305
KH
2940 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
2941 argument.
2942 (code_convert_region): Don't override coding->src_multibyte and
2943 coding->dst_multibyte.
c5443913 2944
ced04c42
KH
2945 * fns.c (Fmd5): Docstring improved.
2946
c2d7f289
MB
29472000-12-15 Miles Bader <miles@gnu.org>
2948
2949 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
2950 are actually marked as mode-lines; otherwise use
2951 estimate_mode_line_height.
2952
9d7d9263
GM
29532000-12-14 Gerd Moellmann <gerd@gnu.org>
2954
2955 * editfns.c (Fformat): Prevent a buffer overrun when the format
2956 specifies a precision.
2957
7cf0153a
EZ
29582000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
2959
2960 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
2961 argument is outside the range [2..3].
2962
1de0f662
AI
29632000-12-14 Andrew Innes <andrewi@gnu.org>
2964
2965 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
2966 nothing to do. Bind inhibit-quit.
2967 (tip_frame): Make it a Lisp_Object.
2968 (x_create_tip_frame): Set tip_frame after it has been added to
2969 Vframe_list.
2970 (Fx_show_tip): Don't set tip_frame here.
52283633 2971 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
1de0f662
AI
2972 (unwind_create_frame, unwind_create_tip_frame): New functions.
2973 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
2974 while a frame is only partially constructed.
2975
2976 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
2977 (x_free_frame_resources): New function.
2978 (x_destroy_window): Use it.
2979
02387dcc
GM
29802000-12-14 Gerd Moellmann <gerd@gnu.org>
2981
2982 * xfns.c (Fx_backspace_delete_keys_p): New function.
2983 (syms_of_xfns): Defsubr it.
2984
2985 * config.in (HAVE_XKBGETKEYBOARD): Add.
2986
0544ef49
KH
29872000-12-14 Kenichi Handa <handa@etl.go.jp>
2988
98d62747
KH
2989 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
2990 Always store string in multibyte representation in echobuf.
2991 (echo_char): Always store string in multibyte representation in
2992 echobuf.
2993 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
2994 (read_key_sequence): Adjusted for the change of echo_prompt.
2995
a20193cd
KH
2996 * fns.c (Fmd5): Docstring improved.
2997
191b83b6
KH
2998 * lisp.h (detect_coding_system): Prototype adjusted.
2999
0544ef49
KH
3000 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
3001 (detect_coding_emacs_mule, detect_coding_iso2022,)
3002 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
52283633
SM
3003 (detect_coding_utf_16, detect_coding_ccl): Make them static.
3004 New argument MULTIBYTEP. Callers changed.
0544ef49
KH
3005 (detect_coding_mask, detect_coding_system): New argument
3006 MULTIBYTEP. Callers changed.
1da1bb05
KH
3007 (decode_coding_string): Set coding->src_multibyte and
3008 coding->dst_multibyte before calling detect_coding and detect_eol.
3009 Update them after some coding system is detected.
52283633 3010
d5b3eb1b
SM
30112000-12-13 Stefan Monnier <monnier@cs.yale.edu>
3012
3013 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
3014
3015 * keyboard.c (menu_bar_items, tool_bar_items):
3016 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
3017
f7f8bb69
GM
30182000-12-13 Gerd Moellmann <gerd@gnu.org>
3019
52283633 3020 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
19f71add
GM
3021 New variables.
3022 (unwind_create_frame, unwind_create_tip_frame): New functions.
3023 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
3024 while a frame is only partially constructed.
3025
3026 * xterm.h (x_free_frame_resources): Declare.
3027
3028 * xterm.c (x_free_frame_resources): New function.
3029 (x_destroy_window): Use it.
3030
e10da507
GM
3031 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
3032 don't interrupt the update for pending input initially, i.e.
3033 update at least some lines.
3034
3035 * keyboard.c (do_mouse_tracking): Make externally visible.
52283633 3036
d5b3eb1b 3037 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
f7f8bb69
GM
3038
3039 * xfns.c (gray_bitmap_bits): Declare `char *'.
3040
90aa2856
GM
30412000-12-12 Gerd Moellmann <gerd@gnu.org>
3042
3043 * xdisp.c (display_tool_bar_line): Make sure that tool bar
3044 lines start with a relief line.
3045
a308c9cd
DL
30462000-12-12 Dave Love <fx@gnu.org>
3047
3048 * window.c (Fdisplay_buffer): Doc fix.
3049 (Fwindow_list): Remove unused var.
3050
3051 * buffer.h (mmap_set_vars): Declare.
3052
3053 * window.h (Fset_window_point): Declare.
3054
d575011f
EZ
30552000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
3056
bf6282d2 3057 * msdos.c (fast_find_position): Don't overstep the last window row.
52283633
SM
3058 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
3059 variable `area'. When looking for a row under (X,Y), give up if some
3060 of the previous rows is not enabled.
d575011f 3061
ecf4d726
GM
30622000-12-12 Gerd Moellmann <gerd@gnu.org>
3063
2ebf6139
GM
3064 * window.c (Fset_window_point): If displaying cursors in windows
3065 other than the selected window, make sure redisplay updates
3066 other windows to show the new value of point in the window.
3067
3068 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
3069
bfdb75ee
GM
3070 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
3071 the buffer is the sole visible buffer when in the mini-buffer.
3072
52283633 3073 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
4fdbd809
GM
3074 Bind `inhibit-read-only' to t.
3075 (unwind_with_echo_area_buffer): Use AREF.
3076
c0006262
GM
3077 * xfns.c (Fx_hide_tip): Simplified.
3078
52283633
SM
3079 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
3080 instead of `1'.
e9a59cad 3081
ecf4d726
GM
3082 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
3083
e5959a9a
GM
30842000-12-11 Gerd Moellmann <gerd@gnu.org>
3085
a3642e49 3086 * xfns.c (Fx_hide_tip): Fix last change.
52283633 3087
44b5a125
GM
3088 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
3089 nothing to do. Bind inhibit-quit.
3090 (tip_frame): Make it a Lisp_Object.
3091 (x_create_tip_frame): Set tip_frame after it has been added to
3092 Vframe_list.
3093 (Fx_show_tip): Don't set tip_frame here.
3094
3095 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
3096
3097 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
3098 Lisp_Object.
3099
3100 * dispextern.h: Change external declaration of tip_frame.
3101
d990421f
GM
3102 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
3103 return an empty string.
3104
4db87380
GM
3105 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
3106 of the window's update_mode_line flag, since the former is set by
3107 force-mode-line-update, not the latter. This makes
3108 column-number-mode slightly faster.
52283633 3109
e5959a9a
GM
3110 * xdisp.c (try_window_id) <all changes above window start>:
3111 Set the cursor.
3112
169fe44e
GM
31132000-12-11 Paul Eggert <eggert@twinsun.com>
3114
3115 * config.in (HAVE_FTELLO): Remove.
3116 (HAVE_FSEEKO): Add.
3117 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
3118 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
3119 HAVE_FTELLO.
3120 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
3121 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
52283633 3122
59ec59ae
MB
31232000-12-11 Miles Bader <miles@gnu.org>
3124
3125 * window.c (displayed_window_lines): Don't round up when
3126 converting empty space at bottom to lines.
ff904dd6
MB
3127 Handle non-newline-terminated final lines properly.
3128 (Fwindow_text_height): New function (used to be in lisp).
3129 (syms_of_window): Initialize it.
59ec59ae 3130
42ebfa31
SM
31312000-12-09 Stefan Monnier <monnier@cs.yale.edu>
3132
3133 * syntax.c (scan_lists): Check that the right quote char has the
3134 right Sstring syntax when jumping over strings.
3135 (init_syntax_once): Use Smax rather than 13.
3136
5cdb3cf3
MB
31372000-12-09 Miles Bader <miles@gnu.org>
3138
3139 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
3140 with PARTIALLY, inverting the sense.
3141 (window_scroll_pixel_based): Scroll partially visible lines into
3142 place if we hit the beginning or end of the buffer.
a12167c5
MB
3143 (displayed_window_lines): Don't include partially visible lines.
3144 (Fmove_to_window_line): Skip past any partially visible first line.
5cdb3cf3 3145
842b2a94
GM
31462000-12-08 Gerd Moellmann <gerd@gnu.org>
3147
3148 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
3149
3150 * tparam.c (tparam1): Change the way buffers are reallocated to be
3151 portable and less obfuscated.
3152
3153 * termcap.c (tgetent): Change the way buffers are reallocated to
3154 be portable and less obfuscated.
3155
3156 * macros.c (store_kbd_macro_char): Change the way buffers are
3157 reallocated to be portable and less obfuscated.
3158
3159 * lread.c (read1): Change the way buffers are reallocated to be
3160 portable and less obfuscated.
3161
3162 * doc.c (Fsubstitute_command_keys): Change the way buffers
3163 are reallocated so that it is portable.
3164
137cad7c
EZ
31652000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
3166
3167 * dosfns.c (Ffile_system_info): New function.
3168 (syms_of_dosfns): Defsubr it.
3169
5c7f629c
SM
31702000-12-07 Stefan Monnier <monnier@cs.yale.edu>
3171
3172 * alloc.c (gc_sweep): Add comment.
3173
959e647d
GM
31742000-12-07 Gerd Moellmann <gerd@gnu.org>
3175
52283633
SM
3176 * sound.c (vox_configure): Change order of ioctls.
3177 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
28fcb7dc
GM
3178 Ignore errors when changing volume.
3179 (vox_close): Don't reset the device.
3180
926b7e5e
GM
3181 * process.c (read_process_output): Make sure the process marker's
3182 position is valid when the process buffer is changed in
3183 after-change functions. W3 does that.
52283633 3184
959e647d
GM
3185 * xfns.c (x_free_gcs): New function.
3186
3187 * xterm.h (x_free_gcs): Add prototype.
3188
3189 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
3190 freeing GCs here.
3191
3192 * xterm.c (x_destroy_window): Call x_free_gcs so that
3193 resources of non-toolkit X windows will be freed.
3194
478ea067
AI
31952000-12-07 Andrew Innes <andrewi@gnu.org>
3196
3197 * w32fns.c (xlfd_charset_of_font): Fix last change.
3198
fbee3231
DL
31992000-12-06 Dave Love <fx@gnu.org>
3200
67292061
DL
3201 * md5.h (__P): Don't define -- it comes from config.h.
3202
fbee3231
DL
3203 * strftime.c: Change some #if foo to #ifdef foo.
3204
4ee87dbb
AI
32052000-12-06 Andrew Innes <andrewi@gnu.org>
3206
3207 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
3208
52283633 3209 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
4ee87dbb 3210 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
52283633 3211 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
4ee87dbb 3212
9765b4a4
GM
32132000-12-06 Gerd Moellmann <gerd@gnu.org>
3214
d285b373
GM
3215 * alloc.c (gc_sweep): Prevent symbols read during loadup
3216 from being freed.
3217
384333ee
GM
3218 * xdisp.c (underlying_face_id): New function.
3219 (handle_face_prop, face_before_or_after_it_pos): Use it
3220 to determine the face ``under'' a string. Let strings inherit
3221 the face of the buffer under them.
3222
3223 * xfaces.c (face_at_string_position): Update function comment.
52283633 3224
d4b72d58
GM
3225 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
3226 matrix if the window's left position has changed; we need to
3227 redraw it in this case.
3228
3229 * dispextern.h (struct glyph_matrix): Add member window_left_x.
3230
e1d05387
GM
3231 * window.c (coordinates_in_window): Check mouse on mode-line or
3232 header-line first.
3233
eb1b0c74
GM
3234 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
3235 advertized by the function documentation.
3236
d94d636f
GM
3237 * window.c (syms_of_window): Doc fix.
3238
3887b449
GM
3239 * sound.c (vox_configure): Set volume for left and right channel.
3240 (sound_cleanup): Return nil.
3241
efc8f57a
GM
3242 * xdisp.c (move_it_by_lines): Fix paren typo.
3243
9765b4a4
GM
3244 * xterm.c (x_load_font): Don't use the font's max_bounds for
3245 computing the height of the font. If max_bounds' ascent or
3246 descent are greater than the font's ascent or descent, this means
3247 glyphs overlap, which should be handled now by redisplay.
3248
6529ed87
GM
3249 * window.c (Veven_window_heights): New variable.
3250 (syms_of_window): DEFVAR_LISP it.
3251 (Fdisplay_buffer): Check Veven_window_heights before evening the
3252 window heights.
52283633 3253
0eb2ecde
MB
32542000-12-06 Miles Bader <miles@gnu.org>
3255
3256 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
3257 update `default-frame-alist' instead of setting no frame parameters.
3258
03d7a167
KH
32592000-12-06 Kenichi Handa <handa@etl.go.jp>
3260
3261 * composite.c (update_compositions): Fix typo (use the correct
3262 variable).
3263
5f8803c2
JR
32642000-12-05 Jason Rumney <jasonr@gnu.org>
3265
3266 * md5.h: Remove underscores from function declarations.
3267 (__attribute__, __alignof__) [!__GNUC__]: Define.
3268
3269 * md5.c: Delay include of md5.h until after namespace cleaning.
3270
c28a075b
JR
3271 * makefile.w32-in (fns.o): Depend on md5.h
3272 (md5.o): New target.
3273 (sunfns.o): Remove.
3274
3275 * makefile.nt: Likewise.
3276
ff3c7056
JR
32772000-12-05 Jason Rumney <jasonr@altavista.net>
3278
3279 * w32term.c (expose_area): Complete last change.
3280
0c21eeeb
KR
32812000-12-05 Ken Raeburn <raeburn@gnu.org>
3282
3283 * minibuf.c: Include intervals.h.
3284
f201d732
JR
32852000-12-05 Jason Rumney <jasonr@gnu.org>
3286
3287 * w32term.c (x_produce_glyphs): If a font for a component of
3288 a composition is not found, use 1 pixel dot ascent and 0 dot
3289 descent value to avoid displaying terribly tall empty boxes.
3290 (expose_area): Pass x-coordinate relative to the exposed
3291 area to x_draw_glyphs instead of a window-relative coordinate.
3292
21999ab9
GM
32932000-12-05 Gerd Moellmann <gerd@gnu.org>
3294
4d2036e4
GM
3295 * xdisp.c (next_element_from_ellipsis): Save face before selective
3296 display in saved_face_id, and set face_before_selective_p.
3297 (reseat_1): Reset face_before_selective_p.
3298 (append_space, extend_face_to_end_of_line): If iterator's
3299 face_before_selective_p is set, use the face from saved_face_id.
3300 (extend_face_to_end_of_line): For tty frames, make sure to
3301 use the right face id when producing spaces at the end of
3302 the line.
3303
3304 * dispextern.h (struct it): Add face_before_selective_p.
3305
52be17cc
GM
3306 * keyboard.c (record_char): Don't record identical help-echo
3307 events in recent_keys.
3308
8a4f36cc
GM
3309 * xterm.c [USE_X_TOOLKIT]: Close the display.
3310 (xim_close_dpy): Handle case that the display has been closed.
3311
57d6e381
GM
3312 * xterm.c (x_destroy_window): Reset the frame's X window after
3313 destroying it.
3314
21999ab9
GM
3315 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
3316 variable window_width.
3317 (line_draw_cost): Fix code skipping over spaces at the end of the
3318 line when must_write_spaces is not set.
3319 (scrolling_window): Fix code inserting runs in list of all runs.
3320
91372bb7
KH
33212000-12-05 Kenichi Handa <handa@etl.go.jp>
3322
3323 * coding.c (setup_coding_system): Be sure to initialize
3324 coding->category_idx.
3325
6c083b4c
GM
33262000-12-04 Gerd Moellmann <gerd@gnu.org>
3327
0c68ce6f 3328 * xterm.c (PER_CHAR_METRIC): Removed because not used.
52283633 3329
6452929e
GM
3330 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
3331 area to x_draw_glyphs instead of a window-relative coordinate.
3332
d7f31e22
GM
3333 * fileio.c (auto_save_error): Add parameter ERROR. Show the
3334 error in the message.
3335
ae18aa3b
GM
3336 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
3337 timer after having read a key. It's not good for code reading
3338 several keys in a loop, like an input method.
3339
caa15ef7
GM
3340 * fileio.c (Finsert_file_contents): When VISIT is t, don't
3341 record undo information for format-decode.
3342
3343 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
3344 current buffer is read-only, not if it isn't.
3345
6c083b4c
GM
3346 * keyboard.c (record_char): Record `help-echo' input events
3347 in recent_keys only if they display some help. Don't record
3348 `help-echo' events as macro char.
3349
caa15ef7
GM
33502000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
3351
3352 * editfns.c (save_excursion_restore): Don't move point
3353 in another window if it is showing the wrong buffer.
3354 Avoid the call to Fwindow_live_p, for speed.
3355
5a13529b
KH
33562000-12-04 Kenichi Handa <handa@etl.go.jp>
3357
e225faa7
KH
3358 * xfaces.c (struct font_name): New member registry_priority.
3359 (split_font_name): Initialize the above member to zero.
3360 (concat_font_list): New function.
3361 (font_list): Include fonts of all alternative registries.
3362 (FONT_POINT_SIZE_QUANTUM): New macro.
3363 (better_font_p): Ignore point size difference less than
3364 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
3365
e89648b4
KH
3366 * xterm.c (x_produce_glyphs): If a font for a component of
3367 a composition is not found, use 1 pixel dot ascent and 0 dot
3368 descent value to avoid displaying terribly tall empty boxes.
3369
5a13529b
KH
3370 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
3371
d7935eb6
KR
33722000-12-03 Ken Raeburn <raeburn@gnu.org>
3373
3374 * coding.h (code_convert_string1): Declare.
3375
3376 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
3377
52283633 3378 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
d7935eb6 3379
0dd5e255
JR
33802000-12-02 Jason Rumney <jasonr@gnu.org>
3381
3382 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
3383 correctly for single byte character case.
3384 (w32_per_char_metric): Do not try to make any assumptions about
3385 the metrics of BDF fonts.
250cfece 3386 (x_estimate_mode_line_height): If `mode-line' face
52283633 3387 hasn't a font, use that of the frame, as drawing glyphs does.
250cfece
JR
3388 (note_mouse_highlight): Change the cursor shape on the vertical
3389 border between windows [not enabled].
3390
3391 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
3392
3393 * w32fns.c (Fx_create_frame): Reintroduce the call to
3394 face-set-after-frame-defaults.
3395 (Vx_window_horizontal_drag_shape): New variable.
3396 (syms_of_xfns): DEFVAR_LISP it.
3397 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
3398 enabled].
0dd5e255 3399
b5d8d2ca
GM
34002000-12-02 Simon Josefsson <simon@josefsson.org>
3401
3402 * fns.c (Fmd5): Use a different logic to decide the coding system
3403 to use.
3404
3405 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
3406
fbb87147
EZ
34072000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
3408
52283633 3409 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
fbb87147 3410
447e9da0
GM
34112000-12-01 Gerd Moellmann <gerd@gnu.org>
3412
7708ced0
GM
3413 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
3414 height for YNegative.
3415 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
3416 height; also see comment there.
3417
447e9da0
GM
3418 * window.c (coordinates_in_window): Handle computations for
3419 positions on the vertical bar and fringes differently for
3420 window-system frames. Consider some pixels near the vertical bar
3421 as on the bar if the frame doesn't have vertical scroll bars.
3422 Associate positions between mode or header lines with the
3423 right window, the left one.
3424
86d1db20
JR
34252000-12-01 Jason Rumney <jasonr@gnu.org>
3426
3427 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
3428
3429 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
3430 invalid frame.
3431
a1d58e5b
GM
34322000-12-01 Gerd Moellmann <gerd@gnu.org>
3433
52283633 3434 * window.c (struct saved_window): Add members orig_top and orig_height.
a1d58e5b
GM
3435 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
3436 (save_window_save, Fset_window_configuration): Save/restore
3437 window's orig_top and orig_height.
3438
89c609af
JR
34392000-12-01 Jason Rumney <jasonr@gnu.org>
3440
4d177746 3441 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
86d1db20 3442
89c609af
JR
3443 * w32fns.c (x_set_cursor_color): Fix last change.
3444
eccc05db
GM
34452000-11-30 Gerd Moellmann <gerd@gnu.org>
3446
31b6671b
GM
3447 * xdisp.c (echo_area_display): If cursor is in the echo area, make
3448 sure that the next redisplay displays the minibuffer, so that
3449 the cursor will be replaced with what the minibuffer wants.
3450
eccc05db
GM
3451 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
3452 #ifndef instead of using #if.
3453 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
3454 USE_TOOLKIT_SCROLL_BARS is defined.
3455
162de750
JR
34562000-11-30 Jason Rumney <jasonr@gnu.org>
3457
3458 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
3459 x_display_cursor.
3460
693c4692
GM
34612000-11-30 Gerd Moellmann <gerd@gnu.org>
3462
3463 * fns.c (Fmd5): Doc fix.
3464
b5d8d2ca 34652000-11-30 Simon Josefsson <simon@josefsson.org>
edfb795e
GM
3466
3467 * fns.c (Fmd5): New function.
3468 (syms_of_fns): Defsubr md5.
3469
3470 * Makefile.in (obj): Add md5.o
3471
b02cd40b
GM
34722000-11-30 Gerd Moellmann <gerd@gnu.org>
3473
edfb795e
GM
3474 * md5.h, md5.c: New files, taken from glibc.
3475
df3aedcf
GM
3476 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
3477
b02cd40b 3478 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
52283633 3479 hasn't a font, use that of the frame, as drawing glyphs does.
b02cd40b 3480
8b5176cd
SM
34812000-11-29 Stefan Monnier <monnier@cs.yale.edu>
3482
3483 * eval.c (Frun_hooks): Allow 0 arguments.
3484
346598f1
GM
34852000-11-29 Gerd Moellmann <gerd@gnu.org>
3486
f9396e03
GM
3487 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
3488 is over the menu bar widget, say it's not on the frame.
3489
4a967a9b
GM
3490 * xfns.c (Fx_create_frame): Reintroduce the call to
3491 face-set-after-frame-defaults.
3492
346598f1
GM
3493 * eval.c (Fsignal): Reset handling_signal.
3494
222456a1
JR
34952000-11-28 Jason Rumney <jasonr@gnu.org>
3496
3497 * w32menu.c (add_menu_item): Reset menu item text when changing
3498 type to radio button.
3499
8049ddc0
GM
35002000-11-28 Gerd Moellmann <gerd@gnu.org>
3501
346598f1 3502 * xselect.c: Update copyright.
f4f4ee4d 3503
bebe4a2c
GM
3504 * window.c (coordinates_in_window): If on a mode or header line,
3505 but sufficiently close to its start, return ``on vertical
3506 border''. This gives us a way to drag windows horizontally when
3507 using toolkit scroll bars.
3508
3509 * xterm.c (note_mouse_highlight): Change the cursor shape
3510 on the vertical border between windows.
3511
3512 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
3513
3514 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
3515 (syms_of_xfns): DEFVAR_LISP it.
3516 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
3517
8d2c2642
GM
3518 * textprop.c (text_read_only): New function.
3519 (verify_interval_modification): Use it instead of signaling
3520 `text-read-only'. This makes it easier to catch this error
52283633 3521 with a breakpoint.:
8d2c2642 3522
52283633 3523 * xdisp.c (forward_to_next_line_start): Check for newlines,
8049ddc0
GM
3524 not end of line, which includes CR.
3525
5a2bae6c
KH
35262000-11-28 Kenichi Handa <handa@etl.go.jp>
3527
3528 * coding.c (Ffind_coding_systems_region_internal): Be sure to
3529 include no-conversion.
3530
ae31f84d
JR
35312000-11-27 Jason Rumney <jasonr@gnu.org>
3532
3533 * w32fns.c (w32_load_system_font): Always mark font as double byte
3534 if codepage is unicode.
3535
67f1cf4c
GM
35362000-11-27 Gerd Moellmann <gerd@gnu.org>
3537
4a74d071 3538 * xdisp.c (forward_to_next_line_start): If already on a newline,
52283633 3539 just consume it to avoid unintended skipping over invisible text below.
4a74d071 3540
902ae620
GM
3541 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
3542 `vertical-line', `mode-line' and `header-line' events.
3543
3544 * xdisp.c (try_window_id): Avoid starting to display in the middle
67f1cf4c
GM
3545 of a character, a TAB for instance. This is easier than to set
3546 up the iterator exactly, and it's not a frequent case, so the
3547 additional effort wouldn't really pay off.
3548
c1e279c2
AC
35492000-11-26 Andrew Choi <akochoi@i-cable.com>
3550
67f1cf4c 3551 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
c1e279c2
AC
3552 init_window_once.
3553
a609568a
JR
35542000-11-25 Jason Rumney <jasonr@gnu.org>
3555
52283633
SM
3556 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
3557 Args to window_from_coordinates should be pixel coordinates.
48b21762 3558
a609568a
JR
3559 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
3560 redisplay handles them properly.
3561
a658d039
MB
35622000-11-25 Miles Bader <miles@gnu.org>
3563
3564 * indent.c (compute_motion): Keep pos_byte in sync with pos.
3565
d3416cca
JR
35662000-11-24 Jason Rumney <jasonr@gnu.org>
3567
3568 * w32.c (init_environment): Set LANG environment variable based on
3569 locale settings, if not set.
3570
3571 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
3572 making tool bar smaller. When clearing the frame, also
3573 clear current matrices. Clear frame when tool bar disappears.
3574 Don't use more lines for the tool-bar than is available.
3575 (x_change_window_heights): New function.
3576
ba193890
GM
35772000-11-24 Gerd Moellmann <gerd@gnu.org>
3578
2be8f184
GM
3579 * xdisp.c (init_from_display_pos): If POS says we're already after
3580 an overlay string ending at POS, make sure to pop the iterator
3581 because it will be in front of that overlay string. When POS is
3582 ZV, we've thereby also ``processed'' overlay strings at ZV.
3583
ba193890
GM
3584 * xfaces.c (lface_from_face_name): Function comment fix.
3585
1862a24e
MB
35862000-11-24 Miles Bader <miles@gnu.org>
3587
3588 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
3589 apply `mode-line-inverse-video' -- zero means force display using
3590 the default face, non-zero means display using the specialized face.
3591 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
3592
f07fa1b8
KH
35932000-11-23 Kenichi Handa <handa@etl.go.jp>
3594
3595 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
3596 hard coded `4'.
3597
2bcdf662
EZ
35982000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
3599
3600 * coding.c (decode_coding_emacs_mule): Fix the case of
3601 CODING_EOL_LF, which used uninitialized value of c.
3602
ba8299ff
SM
36032000-11-23 Stefan Monnier <monnier@cs.yale.edu>
3604
3605 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
3606
f4117c4d
GM
36072000-11-22 Gerd Moellmann <gerd@gnu.org>
3608
03e757c1
GM
3609 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
3610 buffer object.
3611
f4117c4d
GM
3612 * frame.h (struct frame): Replace desired_tool_bar_items,
3613 current_tool_bar_items, n_desired_tool_bar_items,
cc362d76 3614 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
f4117c4d
GM
3615
3616 * frame.c (make_frame): Change initialization of tool bar
3617 items accordingly.
3618
3619 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
cc362d76 3620 Change references to members deleted from struct frame to use the
f4117c4d
GM
3621 new ones.
3622
3623 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
52283633 3624 references to members deleted from struct frame to use the new ones.
f4117c4d 3625
52283633 3626 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
f4117c4d
GM
3627
3628 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
3629
3630 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
cc362d76 3631 (note_tool_bar_highlight): Change references to members deleted
f4117c4d
GM
3632 from struct frame to use the new ones.
3633
f8e2f3f2
MB
36342000-11-23 Miles Bader <miles@gnu.org>
3635
3636 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
3637 the face's inverse-video attribute, rather than overriding it.
3638
60e8e0a5
GM
36392000-11-22 Gerd Moellmann <gerd@gnu.org>
3640
3641 * xfns.c (x_set_tool_bar_lines): Clear internal border when
3642 making tool bar smaller.
3643
92dd1b29
DL
36442000-11-22 Dave Love <fx@gnu.org>
3645
3646 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
3647
e672fdce
MB
36482000-11-22 Miles Bader <miles@gnu.org>
3649
3a17d6cc
MB
3650 * keyboard.c (Vminibuffer_message_timeout): New variable.
3651 (command_loop_1): Use it to determine message timeout.
3652 (syms_of_keyboard): Initialize it.
3653
60e8e0a5 3654 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
e672fdce 3655
e9655d81
KH
36562000-11-22 Kenichi Handa <handa@etl.go.jp>
3657
3658 * sysdep.c: Move the code for declaring h_errno after #include
3659 <netdb.h>.
3660
77270fac
GM
36612000-11-21 Gerd Moellmann <gerd@gnu.org>
3662
cd913aae
GM
3663 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
3664 the menu bar when the tooltip is unmapped.
3665
77270fac
GM
3666 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
3667 sole visible buffer when we're currently in the mini-buffer, and
3668 give up if so.
52283633 3669
556635d6
JR
36702000-11-21 Jason Rumney <jasonr@gnu.org>
3671
3672 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
3673 put on the clipboard.
3674 (Fw32_get_clipboard_data): Compare data on clipboard with saved
3675 copy of what Emacs last put there. If they are the same, do not
52283633 3676 use the clipboard copy to avoid losing data due to coding conversions.
556635d6 3677
5b7bde64
MB
36782000-11-22 Miles Bader <miles@gnu.org>
3679
3680 * minibuf.c (Vminibuffer_prompt_properties): New variable.
3681 (syms_of_minibuf): Initialize it.
3682 (read_minibuf): Add properties from Vminibuffer_prompt_properties
3683 to prompt, don't make read-only.
3684
ff23e1dd
GM
36852000-11-21 Gerd Moellmann <gerd@gnu.org>
3686
52283633
SM
3687 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
3688 Add BEFORE/AFTER_POTENTIAL_GC.
3c64f287 3689
7aaf4388
GM
3690 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
3691
f5f47add 3692 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 3693
ff23e1dd
GM
3694 * term.c, cm.c: Don't try to include termcap.h; see comment there.
3695
37c35586
KH
36962000-11-21 Kenichi Handa <handa@etl.go.jp>
3697
3698 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
3699 ... #endif scope.
3700
ff9ab414
GM
37012000-11-20 Gerd Moellmann <gerd@gnu.org>
3702
52283633 3703 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
c51d2b5e
GM
3704 screen supports it.
3705
29a01b72
GM
3706 * s/gnu-linux.h: Don't use `#cpu'.
3707
09dfdf85
GM
3708 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
3709 not defined in mman.h.
3710
52283633 3711 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
ff9ab414
GM
3712 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
3713 and store an index in the XClientMessageEvent. Storing a
3714 Lisp_Object or pointer can fail on a 64 bit system, since X only
3715 transfers 32 bits.
52283633
SM
3716 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
3717
81459ac9
DL
37182000-11-20 Dave Love <fx@gnu.org>
3719
3720 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
3721
56c13ae6
GM
37222000-11-20 Gerd Moellmann <gerd@gnu.org>
3723
3724 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
3725
495a6df3
KH
37262000-11-20 Kenichi Handa <handa@etl.go.jp>
3727
2bcf3714
KH
3728 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
3729 by WIDTH.
3730
495a6df3
KH
3731 * alloc.c (make_string): Fix previous change. Be sure to make
3732 unibyte string correctly.
3733
6d950f4c
GM
37342000-11-19 Gerd Moellmann <gerd@gnu.org>
3735
39b39373
GM
3736 * window.c (Fwindow_list): Change parameter list to be XEmacs
3737 compatible.
3738 (window_list_1): New function.
3739 (window_loop): Use it instead of Fwindow_list.
3740
b95b34e5
GM
3741 * sysdep.c (emacs_ospeed): New variable.
3742 (toplevel): Don't declare ospeed extern.
3743 (init_baud_rate): Use emacs_ospeed instead of ospeed.
3744
3745 * termcap.c (ospeed): Remove.
3746 (tputs) [!emacs]: Remove unused code.
3747 (tgetent): Avoid a compiler warning.
3748
e83dc917
GM
3749 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
3750 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 3751 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
3752
3753 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
3754 removed.
3755 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
3756 Take the X display as additional argument.
3757 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
3758 `Widget' is a pointer type that's not easily stored in Lisp_Object
3759 form in a portable way.
52283633 3760
6d950f4c
GM
3761 * dispnew.c (update_text_area): Fix last change.
3762
e47306e6
GM
37632000-11-18 Gerd Moellmann <gerd@gnu.org>
3764
fb3cd89b
GM
3765 * xdisp.c: Use BINDING_STACK_SIZE throughout.
3766
3767 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
3768 clear current matrices.
3769
edaa9aed
GM
3770 * buffer.c (mmap_enlarge): Don't print a message on stderr
3771 if mapping new memory at the end of the existing region fails.
3772
e47306e6
GM
3773 * dispnew.c (update_text_area): Don't skip over equal glyphs
3774 when the last current glyph overlaps the glyph to its right.
3775
509633e3
MB
37762000-11-18 Miles Bader <miles@gnu.org>
3777
3778 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
3779 lines that *end* with "..." too (that's the most common case!).
3780
d392e9c5
GM
37812000-11-18 Gerd Moellmann <gerd@gnu.org>
3782
67988445
GM
3783 * xdisp.c (resize_mini_window): Temporarily change to the
3784 mini-window's buffer if necessary.
1bfdbe43 3785
d392e9c5
GM
3786 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
3787 the tooltip obscures less text under it.
3788
37892000-11-17 Gerd Moellmann <gerd@gnu.org>
3790
3791 * puresize.h (BASE_PURESIZE): Increase to 700000.
3792
92bb977f
JR
37932000-11-18 Jason Rumney <jasonr@gnu.org>
3794
3795 * w32term.c (w32_draw_bitmap): Use face to set colors.
3796
26fbf20b
DL
37972000-11-17 Dave Love <fx@gnu.org>
3798
3799 * lread.c (Fload): Fix #ifdef for pcc.
3800
100b593b
GM
38012000-11-17 Gerd Moellmann <gerd@gnu.org>
3802
3803 * xdisp.c (pos_visible_p): Compute the default character height
3804 differently.
3805
a288d0d1
GM
38062000-11-16 Gerd Moellmann <gerd@gnu.org>
3807
cac94de6 3808 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
52283633 3809 knowing the line's height; use the default font's height in that case.
cac94de6 3810
a288d0d1
GM
3811 * xfaces.c (weight_table): Add `demi' with the same meaning as
3812 `demibold'.
3813
981fb6f6
KH
38142000-11-16 Kenichi Handa <handa@etl.go.jp>
3815
2cca872d 3816 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
3817 (clear_glyph_row): Delete local static variable null_row.
3818
e5fa381b
JR
38192000-11-15 Jason Rumney <jasonr@gnu.org>
3820
3821 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
3822 (w32_alloc_lighter_color): Use new brightness calculations from
3823 xterm.c. Scale delta to be in the range expected by W32.
3824 (w32_draw_relief_rect): Use frame relief colors.
3825
8e42f043
GM
38262000-11-15 Gerd Moellmann <gerd@gnu.org>
3827
6d133d1f
GM
3828 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
3829 (Qinhibit_default_face_x_resources): New variable.
3830 (syms_of_frame): Initialize it.
3831 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
3832
3833 * xdisp.c (pos_visible_p): Improve function comment.
3834
3835 * lisp.h (BINDING_STACK_SIZE): New macro.
3836
8e42f043
GM
3837 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
3838 reading the directory if readdir returns null and errno is EAGAIN
3839 or EINTR.
3840
e8c87124
SM
38412000-11-14 Stefan Monnier <monnier@cs.yale.edu>
3842
3843 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
3844 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
3845 Set amount_to_scroll to max of dx and scroll_step so that
3846 scroll-conservatively doesn't defeat scroll-step>1.
3847 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
3848 scroll-conservatively for line-at-a-time scrolling.
3849
5f0c971d
GM
38502000-11-14 Gerd Moellmann <gerd@gnu.org>
3851
3852 * window.c (Fpos_visible_in_window_p): Call pos_visible with
3853 extra argument.
3854
3855 * xdisp.c (current_mode_line_height, current_header_line_height):
3856 New variables.
3857 (init_xdisp): Initialize them.
3858 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
3859 and use exact mode line heights if it is set.
3860
3861 * lisp.h (pos_visible_p): Change prototype.
3862
3863 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
3864 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
3865 and current_header_line_height first.
52283633
SM
3866 (current_mode_line_height, current_header_line_height):
3867 Declare extern.
5f0c971d 3868
d7361edf
MB
38692000-11-14 Miles Bader <miles@lsi.nec.co.jp>
3870
3871 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
3872 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
3873 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
3874
ee5e440a
MB
38752000-11-14 Miles Bader <miles@gnu.org>
3876
3877 * xterm.c (x_alloc_lighter_color): Include an additive component
3878 too for dark colors, because FACTOR isn't enough.
3879 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
3880 New macros.
3881
5ca020fc
GM
38822000-11-13 Gerd Moellmann <gerd@gnu.org>
3883
3884 * keyboard.c (show_help_echo): Call message3_nolog with number of
3885 bytes in the help string as 2nd parameter, instead of the number
3886 of characters.
3887
9d348294
MB
38882000-11-13 Miles Bader <miles@gnu.org>
3889
3890 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
3891 (Fload): Use new openp return protocol.
3892 Don't try to use Vload_source_file_function to load .elc files.
3893 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
3894 openp return protocol.
3895 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
3896
1729bb9a
KH
38972000-11-11 Kenichi Handa <handa@etl.go.jp>
3898
4e677396
KH
3899 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
3900
3901 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
3902 Defined these macros.
3903 (NLIST_STRUCT): Avoid re-defining it.
3904
1729bb9a
KH
3905 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
3906 -I/usr/contrib/X11R6/include.
3907 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
3908
a82fe213
JR
39092000-11-10 Jason Rumney <jasonr@gnu.org>
3910
3911 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
3912
3913 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
3914 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
3915
3916 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
3917 (Qw32_charset_vietnamese): New symbol.
3918 (xlfd_charset_of_font): New function.
3919 (w32_load_system_font): Use it.
3920 (x_to_w32_charset): Use Fassoc to find charset info. Special case
3921 when Vw32_charset_info_alist is nil to ensure default face always
3922 has font. Use Fcar and Fcdr for safety.
3923 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
3924 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
3925 pseudo-codepages for special cases.
3926 (w32_to_x_font): New parameter to allow charset portion to be
3927 specified where there is many to one mapping. Callers changed.
3928 (w32_list_fonts): Avoid listing fonts that won't display.
3929
52d89894
GM
39302000-11-10 Gerd Moellmann <gerd@gnu.org>
3931
3932 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
3933 (font_list_1): Renamed from font_list.
3934 (font_list): New function, trying alternative registries from
3935 Vface_alternative_font_registry_alist.
3936 (Finternal_set_alternative_font_registry_alist): New function.
3937 (syms_of_xfaces): Initialize and Staticpro
52283633
SM
3938 Vface_alternative_font_registry_alist.
3939 Defsubr Finternal_set_alternative_font_registry_alist.
52d89894 3940
651cd3da
KR
39412000-11-09 Ken Raeburn <raeburn@gnu.org>
3942
3943 * lisp.h (Flooking_at): Declare.
3944
388ac098
GM
39452000-11-09 Gerd Moellmann <gerd@gnu.org>
3946
778fbc46 3947 * dired.c (directory_files_internal): Fix a braino.
52283633 3948
388ac098
GM
3949 * dired.c (directory_files_internal): Add missing GCPRO's.
3950 Some cleanup.
3951
ecaedde1
GM
39522000-11-08 Gerd Moellmann <gerd@gnu.org>
3953
f7eb32aa
GM
3954 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
3955 (resize_mini_window): Return quickly if Vresize_mini_window is
3956 nil. Don't return if Vmax_mini_window_height is nil.
3957
3958 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
3959 (syms_of_xdisp): Initialize them.
3960 (resize_mini_window): Act according to the setting of
3961 Vresize_mini_window.
3962 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
3963
ecaedde1
GM
3964 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
3965 scroll bar widget after configuring it, so that it will appear at
3966 the right position from the start.
3967 (XTredeem_scroll_bar): Cleaned up.
3968
3747ef2c
KH
39692000-11-08 Kenichi Handa <handa@etl.go.jp>
3970
3971 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 3972 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
3973 division by two.
3974
3975 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
3976
03391420
DL
39772000-11-07 Dave Love <fx@gnu.org>
3978
7758f1c1 3979 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
3980
3981 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
3982
b5de343d
GM
39832000-11-07 Gerd Moellmann <gerd@gnu.org>
3984
acad3c0b
GM
3985 * window.c (Fset_window_configuration): Don't try to preserve
3986 point in the current buffer, if that buffer is displayed in more
3987 than one window.
3988
b5de343d
GM
3989 * xfaces.c (lookup_named_face): If default face isn't realized,
3990 try to realize it. Return -1 if not successful.
3991 (Fx_list_fonts): Handle case that face cannot be determined.
3992 (Fface_font): Likewise.
3993
cdb1fe49
GM
39942000-11-06 Gerd Moellmann <gerd@gnu.org>
3995
3996 * window.c (displayed_window_lines): Detect partially
3997 visible lines at the bottom correctly.
3998
d3a67486
SM
39992000-11-06 Stefan Monnier <monnier@cs.yale.edu>
4000
4001 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
4002 when ensuring we don't do visit in indirect buffer.
4003
ff8dd5d5
KH
40042000-11-06 Kenichi Handa <handa@etl.go.jp>
4005
4006 * composite.h (compose_chars_in_text): Add prototype.
4007
4008 * composite.c (Vcomposition_function_table): New variable.
4009 (Qcomposition_function_table): New variable.
4010 (run_composition_function): Call
4011 Vcompose_chars_after_function with three arguments.
4012 (compose_chars_in_text): New function.
4013 (syms_of_composite): Modified the doc-string of
4014 Vcompose_chars_after_function. Declare composition-function-table
4015 as a lisp variable, and initialize it.
4016
4017 * xfns.c (x_encode_text): Suppress producing escape sequences for
4018 composition.
4019
4020 * xselect.c: Include composite.h.
4021 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
4022
d1145f85
AI
40232000-11-05 Andrew Innes <andrewi@gnu.org>
4024
4025 * w32term.c (x_produce_glyphs): Fix typo in enum name.
4026
4027 * sysdep.c (read_input_waiting): Remove extraneous argument to
4028 read_socket_hook.
4029
4030 * w32fns.c (Fx_server_version): Include w32_build_number in the
4031 return list.
4032
4033 * w32heap.c (w32_build_number): New variable.
4034 (cache_system_info): Set it.
4035
4036 * w32heap.h (w32_build_number): Add extern.
4037
4038 * emacs.c (syms_of_emacs): Update docstring for
4039 system-configuration, to reflect the actual usage on MS-Windows.
4040
e85ee976
GM
40412000-10-31 Gerd Moellmann <gerd@gnu.org>
4042
26dcb81b
GM
4043 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
4044 process idle timers while waiting for another event.
4045
52283633 4046 * dispnew.c (update_frame_line): Handle case where spaces in
0a894bad
GM
4047 the default face are colored.
4048
e85ee976
GM
4049 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
4050 window height hasn't changed.
4051
01b220b6
JR
40522000-10-31 Jason Rumney <jasonr@gnu.org>
4053
4054 * w32term.c (x_produce_glyphs): Handle composite characters.
4055 (x_draw_glyph_string_foreground)
4056 (x_draw_composite_glyph_string_foreground): Restore old font.
4057
4e6b7204
MB
40582000-10-31 Miles Bader <miles@lsi.nec.co.jp>
4059
4060 * minibuf.c (read_minibuf): Reset the undo history just before
4061 starting the recursive-edit.
4062
d4358b37
GM
40632000-10-30 Gerd Moellmann <gerd@gnu.org>
4064
563f68f1
GM
4065 * xfaces.c (menu_face_change_count): New variable.
4066 (Finternal_set_lisp_face_attribute): Increment it for changes
4067 of the `menu' face.
4068 (realize_basic_faces): Reflect changes in the `menu' faces
4069 in menu bars.
4070
82e274d1
GM
4071 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
4072 dy obtained from the iterator's y-position after moving from
4073 scroll_margin_pos to PT; see comment there.
52283633 4074
0dbf9fd2
GM
4075 * xdisp.c (safe_eval_handler): Call add_to_log.
4076
906b3b14
GM
4077 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
4078 is not a symbol or string.
4079
d4358b37
GM
4080 * xdisp.c (echo_area_display): Don't perform a display update from
4081 inside redisplay. The update will happen anyway at the end of
4082 redisplay, and it can confuse redisplay (GC messages while
4083 redisplaying, for instance.)
4084
70c825df
SM
40852000-10-30 Stefan Monnier <monnier@cs.yale.edu>
4086
cf9b4b0b
SM
4087 * xrdb.c (x_load_resources): Use the class name in the defaults.
4088
70c825df
SM
4089 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
4090 (regex_compile): Catch bogus \(\1\).
4091
a1d34b1e
GM
40922000-10-30 Gerd Moellmann <gerd@gnu.org>
4093
cae71efe
GM
4094 * xterm.c (x_alloc_nearest_color): Fix last change to compare
4095 RGB values.
52283633 4096
35efe0a1
GM
4097 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
4098 we have a color cache, check that the cached color equals the
4099 allocated color. If not, clear the color cache.
4100
1d3baf74
GM
4101 * window.c (displayed_window_lines): Change buffers if necessary.
4102 Fix computation of displayed lines.
4103
a1d34b1e
GM
4104 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
4105 update_menu_bindings to DEFVAR_BOOL.
4106
70737ea9
KH
41072000-10-30 Kenichi Handa <handa@etl.go.jp>
4108
70c825df 4109 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 4110
fa0cb51d
KH
4111 * puresize.h (BASE_PURESIZE): Increase to 680000.
4112
70737ea9
KH
4113 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
4114
0e4c08e8
JR
41152000-10-29 Jason Rumney <jasonr@gnu.org>
4116
4117 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
4118
4119 * w32term.c (w32_bdf_per_char_metric): Negate descent.
4120 (w32_cache_char_metrics): Handle possibility that 'x' does not
4121 exist in a BDF font.
4122 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
4123
4124 * w32bdf.h (bdffont): Add nchars.
4125
4126 * w32bdf.c (set_bdf_font_info): Set it.
4127 (w32_BDF_TextOut): Swap byte order of double byte characters.
4128 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
4129
45b84006
EZ
41302000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
4131
4132 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
4133 don't override the colors in frame's param_alist, unless they are
4134 unspecified.
4135
4136 * term.c (reassert_line_highlight): If inverse_video is non-zero,
4137 reverse the effect of the highlight flag.
4138
caf9deee
KR
41392000-10-27 Ken Raeburn <raeburn@gnu.org>
4140
4141 * window.h (Fwindow_live_p): Declare.
4142
ae0b9b46
KR
4143 * undo.c (record_delete): Check that last_undo_buffer is really a
4144 buffer before applying XBUFFER to it.
4145
4146 * keymap.c (where_is_internal): Pass lisp object, not integer, to
4147 Faref.
4148
02067692
SM
41492000-10-27 Stefan Monnier <monnier@cs.yale.edu>
4150
4151 * lisp.h (KEYMAPP): New macro.
4152 (get_keymap): Remove.
4153 (get_keymap_1): Rename get_keymap.
4154
4155 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
4156
4157 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
4158
4159 * xmenu.c (single_submenu): Use KEYMAPP.
4160 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
4161 Use KEYMAPP rather than Fkeymapp.
4162
4163 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
4164
4165 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
4166 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
4167 Use KEYMAPP rather than Fkeymapp.
4168 (single_submenu): Use KEYMAPP.
4169 (w32_menu_show, w32_dialog_show): Use TRUE.
4170
4171 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
4172
4173 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
4174 (Fkeymapp): Use KEYMAPP.
4175 (get_keymap): Rename from get_keymap_1. Remove old def.
4176 Return t when autoload=0 and error=0 and the keymap needs autoloading.
4177 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
4178 (Fminor_mode_key_binding): Don't raise an error if the binding
4179 is not a keymap.
4180 (Fuse_global_map, Fuse_local_map): Allow autoloading.
4181 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
4182
4183 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
4184 Allow Vspecial_event_map to be autoloaded.
4185 (menu_bar_items): Fetch the keymap rather than using keymapp.
4186 (menu_bar_one_keymap): No need to follow func-indirect any more.
4187 (parse_menu_item): get_keymap_1 -> get_keymap.
4188 (tool_bar_items): Fetch the keymap rather than using keymapp.
4189 (read_key_sequence): Use KEYMAPP.
4190
4191 * intervals.c (get_local_map): Use get_keymap rather than following
4192 function-indirections explicitly.
4193
4194 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
4195
f9d80af3
JR
41962000-10-27 Jason Rumney <jasonr@gnu.org>
4197
4198 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
4199 point, as Windows has oversized fonts.
4200
4201 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
4202
a3ba27da
GM
42032000-10-27 Gerd Moellmann <gerd@gnu.org>
4204
4205 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
4206 (freehook, reallochook): Handle null pointer arguments.
4207 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
4208
aa3b80cc
SM
42092000-10-27 Stefan Monnier <monnier@cs.yale.edu>
4210
4211 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
4212 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
4213 Giving in to popular pressure to shut up the compiler with casts.
4214
e24e84cc
GM
42152000-10-27 Gerd Moellmann <gerd@gnu.org>
4216
4217 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
4218 signed value, and use a default value computed from the font's
4219 maximum descent.
4220
05ea7ef2
MB
42212000-10-27 Miles Bader <miles@lsi.nec.co.jp>
4222
4223 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
4224 that specify a negative underline position can still use underlines.
4225
4226 * window.c (Fpos_visible_in_window_p): Make POS default to
4227 WINDOW's point, not the current buffer's point.
4228
0b95284b
DL
42292000-10-26 Dave Love <fx@gnu.org>
4230
4231 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
4232 when it's necessary.
4233
6c5b90af
GM
42342000-10-26 Gerd Moellmann <gerd@gnu.org>
4235
8b6d9dc9
GM
4236 * window.c (size_window): Compute size difference from sum of old
4237 child window sizes instead of from parent's size.
4238
6bc92b2e
GM
4239 * xdisp.c (pos_visible_p): Change current buffer if necessary.
4240 Handle obscured lines at the top of the window.
4241
4242 * frame.c (Fdelete_frame): Doc fix. Move running the hook
4243 down after the last error condition check.
4244
6c5b90af
GM
4245 * frame.c (Fdelete_frame): Run delete-frame-hook.
4246
42f92d4d
KH
42472000-10-26 Kenichi Handa <handa@etl.go.jp>
4248
4249 * coding.c (decode_coding): Fix previous change (check also
4250 CODING_MODE_LAST_BLOCK).
4251
d97151cb
SM
42522000-10-25 Stefan Monnier <monnier@cs.yale.edu>
4253
e7efc503
SM
4254 * regex.c: More `unsigned char' -> `re_char' changes.
4255 Also change several `int' into `re_wchar_t'.
4256 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
4257 (PUSH_FAILURE_POINTER): Don't cast any more.
4258 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
4259 We want GCC to complain, since this piece of code makes
4260 re_match non-reentrant, which *should* be fixed.
4261 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
4262 (EXTEND_BUFFER): Use RETALLOC.
4263 (SET_LIST_BIT): Don't cast.
4264 (re_wchar_t): New type.
4265 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
4266 that those two functions will always properly return.
4267 (IMMEDIATE_QUIT_CHECK): Cast to void.
4268 (analyse_first): Use recursion rather than an explicit stack.
4269 (re_compile_fastmap): Can't fail anymore.
4270 (re_search_2): Don't check re_compile_fastmap for failure.
4271 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
4272 Now also sets the new value (passed in a new argument).
4273 (re_match_2_internal): Use it.
4274 Also, use a new var `reg' of type size_t when looping through regs
4275 rather than reuse the inappropriate `mcnt'.
4276
d97151cb
SM
4277 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
4278 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
4279 (where_is_internal): Renamed from Fwhere_is_internal.
4280 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
4281 (Fwhere_is_internal): New function wrapping where_is_internal.
4282 (where_is_internal_1): Handle the case where we're filling the cache.
4283 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
4284
d5789b65
MB
42852000-10-25 Miles Bader <miles@gnu.org>
4286
4287 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
4288
4ecda532
GM
42892000-10-25 Gerd Moellmann <gerd@gnu.org>
4290
4291 * window.c (pos_fully_visible_p): Removed.
4292 (Fpos_visible_in_window_p): Use pos_visible_p to determine
4293 if position is visible and/or fully visible.
4294
4295 * lisp.h (pos_visible_p): Add prototype.
4296
4297 * xdisp.c (pos_visible_p): New function.
4298
68c3a137
KH
42992000-10-25 Kenichi Handa <handa@etl.go.jp>
4300
4301 * process.c (send_process): If OBJECT is t, it means that the data
4302 is from C string, but we should encode it. Before calling
4303 setup_raw_text_coding_system, be sure to flush out data by the
4304 previous coding system.
4305
7ae1c032
MB
43062000-10-25 Miles Bader <miles@lsi.nec.co.jp>
4307
ff4dcd4b
MB
4308 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
4309 assignment of startpos to prev when startpos == pos.
4310
7ae1c032
MB
4311 * editfns.c (find_field): Set the field stickiness correctly from
4312 overlay fields. Use renamed `text_property_stickiness'.
4313 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 4314 Only check text properties, not overlays.
7ae1c032
MB
4315 * textprop.c (get_char_property_and_overlay): New function.
4316 (Fget_char_property): Use it.
4317 * intervals.h (get_char_property_and_overlay): Add declaration.
4318
49801145
SM
43192000-10-25 Stefan Monnier <monnier@cs.yale.edu>
4320
4321 * keymap.c: Use AREF, ASET and ASIZE macros.
4322 (Fmake_sparse_keymap): Docstring fix.
4323 (synkey): Remove.
4324 (shadow_lookup): Move up.
4325 Handle the case where lookup-key returns an integer.
4326 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
4327 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
4328 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
4329 Simplify/rewrite the keymap-finding code.
4330 Add check for command shadowing, using shadow_lookup.
4331
39e776cd
SM
43322000-10-24 Stefan Monnier <monnier@cs.yale.edu>
4333
4334 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
4335 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
4336 a symbol.
4337
2488aba5
AI
43382000-10-24 Andrew Innes <andrewi@gnu.org>
4339
4340 * dired.c (directory_files_internal_unwind): New function.
4341 (directory_files_internal): Use it to ensure closedir is called
4342 even if expand-file-name or file-attributes throw, eg. because of
4343 a user interrupt. Also enable immediate_quit while calling
4344 re_search, so that matching can be interrupted as well.
4345
b94fdf61
AI
43462000-10-24 Andrew Innes <andrewi@gnu.org>
4347
4348 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
4349 NT-Emacs only.
4350 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
4351 so that re_search functions only quit when callers expect them to.
4352
43532000-10-24 Kenichi Handa <handa@etl.go.jp>
4354
4355 * regex.c (regex_compile): Change the way of handling a range from
4356 a char less than 256 to a char not less than 256.
4357
1946f901
GM
43582000-10-24 Gerd Moellmann <gerd@gnu.org>
4359
7ae2f10f
GM
4360 * window.c (size_window): Prevent setting window's width or
4361 height to a negative value (esp. with XSETFASTINT).
4362
5dcab13e
GM
4363 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
4364 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
4365 (protect_malloc_state) [GC_MALLOC_CHECK &&
4366 GC_PROTECT_MALLOC_STATE]: New function.
4367 (PROTECT_MALLOC_STATE): New macro.
4368 (__malloc_initialize, morecore, _malloc_internal)
4369 (_free_internal) _realloc_internal): Use it to make _heapinfo
4370 read-only outside of gmalloc.
4371
63e1b552
GM
4372 * keymap.c: Update copyright.
4373
1946f901
GM
4374 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
4375 a symbol.
4376
4fa09beb
GM
43772000-10-24 Colin Walters <walters@cis.ohio-state.edu>
4378
4379 * filelock.c (unlock_all_files): Use unlock_file to expand each
4380 buffer's file_truename before trying remove its lock file.
4381
23afac01
EZ
43822000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
4383
4384 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
4385 or CRLF, decode EOLs.
4386
04448b95
KH
43872000-10-24 Kenichi Handa <handa@etl.go.jp>
4388
4389 * window.c (Fdisplay_buffer): Fix doc.
4390
3090a5a5
JR
43912000-10-23 Jason Rumney <jasonr@gnu.org>
4392
4393 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
4394 ASCII font of default fontset on Windows.
4395
4396 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
4397 xterm.c comment below).
4398
4399 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
4400
a83fee2c
GM
44012000-10-23 Gerd Moellmann <gerd@gnu.org>
4402
4403 * xterm.c (x_connection_closed): Reset handling_signal.
4404
52283633 4405 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
a83fee2c 4406
6ffdb539
MB
44072000-10-23 Miles Bader <miles@gnu.org>
4408
4409 * window.c (window_scroll_pixel_based, window_scroll_line_based):
4410 Pass nil for FULLY argument to Fpos_visible_in_window_p to
4411 maintain old behavior.
4412 * minibuf.c (Fminibuffer_complete): Likewise.
4413
7f1c969b
MB
44142000-10-23 Miles Bader <miles@lsi.nec.co.jp>
4415
4416 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
4417 that when a font can't be exactly centered, it errs up rather than
4418 down.
4419
23afac01 44202000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd 4421
52283633 4422 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
8ec118cd 4423
1a578e9b
AC
44242000-10-23 Andrew Choi <akochoi@i-cable.com>
4425
4426 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
4427
4428 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 4429 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
4430
4431 * emacs.c (main) [macintosh]: Call syms_of_textprop,
4432 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
4433 syms_of_search, x_term_init, and init_keyboard before calling
4434 init_window_once. Also, call syms_of_xmenu.
4435
4436 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
4437 default fontset to Monaco.
4438
4439 * frame.c [macintosh]: Include macterm.h. Remove declarations of
4440 NewMacWindow and DisposeMacWindow.
4441 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
4442 instead of calling NewMacWindow and setting fields of
4443 f->output_data.mac directly. Call init_frame_faces.
4444 (Fdelete_frame) [macintosh]: Remove unused code.
4445 (Fmodify_frame_parameters) [macintosh]: Call
4446 x_set_frame_parameters instead of mac_set_frame_parameters.
4447
4448 * frame.h [macintosh]: Define menu_bar_lines field in struct
4449 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
4450
4451 * keyboard.c [macintosh]: Include macterm.h.
4452 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
4453 and menu_bar_activate_event type events as for X and NT.
4454 (make_lispy_event) [macintosh]: Construct lisp events of type
4455 MENU_BAR_EVENT as for X and NT.
4456
4457 * sysdep.c [macintosh]: Remove declaration for sys_signal.
4458 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
4459 (sys_subshell) [macintosh]: Remove definition entirely.
4460 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
4461 Vwindow_system_version here. Remove initialization of
4462 Vx_bitmap_file_path.
4463 (read_input_waiting): Correct the number of parameters passed to
4464 read_socket_hook.
4465 Move all Macintosh functions to mac/mac.c.
4466
4467 * term.c [macintosh]: Include macterm.h.
4468
4469 * window.c [macintosh]: Include macterm.h.
4470
4471 * xdisp.c [macintosh]: Include macterm.h. Declare
4472 set_frame_menubar and pending_menu_activation.
4473 (echo_area_display) [macintosh]: Do not return if terminal frame
4474 is the selected frame.
4475 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
4476 Allow only the selected frame to set menu bar.
4477 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
4478 calling FRAME_EXTERNAL_MENU_BAR (f).
4479 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
4480
4481 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
4482 and check_x. Declare XCreateGC. Define x_create_gc and
4483 x_free_gc. Initialize font_sort_order.
4484 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
4485 but call x_list_fonts instead of w32_list_fonts.
4486 (Finternal_face_x_get_resource) [macintosh]: Do not call
4487 display_x_get_resource.
4488 (prepare_face_for_display) [macintosh]: Set xgcv.font.
4489 (realize_x_face) [macintosh]: Load the font if it is specified in
4490 ATTRS.
52283633 4491 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
1a578e9b 4492
1ffbabe3
SM
44932000-10-22 Stefan Monnier <monnier@cs.yale.edu>
4494
4495 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
4496 is nil: since we go to the end of submap anyway, we'd end up
4497 setting nil to nil.
4498 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
4499 doesn't obey autoload.
4500
bed43f1d
EZ
45012000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
4502
1ffbabe3 4503 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 4504
ea4233a7
JR
45052000-10-21 Jason Rumney <jasonr@gnu.org>
4506
4507 * w32term.c (w32_cache_char_metrics): Double check that font is
4508 really fixed pitch before trusting tmPitchAndFamily.
4509
f3d3c491
AI
45102000-10-21 Andrew Innes <andrewi@gnu.org>
4511
4512 * w32gui.h (w32_char_font_type): Move enum from w32term.c
4513
4514 * w32term.h: Extern decl for w32_cache_char_metrics.
4515
4516 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
4517
4518 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
4519 (w32_unload_font): Free per_char array if present.
4520
4521 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
4522 cached information in emulated XFontStruct to handle common cases
4523 quickly. Do not allocate XCharStruct for return.
4524 (w32_native_per_char_metric): New function.
4525 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
4526 allocating one.
4527 (x_produce_glyphs): Don't get an HDC. Change calls to
4528 w32_per_char_metric to match arg change above. Remove calls to
4529 free results.
4530 (w32_get_glyph_overhangs): Ditto.
4531 (w32_cache_char_metrics): New function.
4532
4533 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
4534 ($(BLD)/casefiddle.$(O)): Remove compile command.
4535 ($(BLD)/gmalloc.$(O)): Remove compile command.
52283633
SM
4536 ($(BLD)/dispnew.obj):
4537 ($(BLD)/keyboard.obj):
4538 ($(BLD)/w32inevt.obj):
4539 ($(BLD)/w32bdf.obj):
4540 ($(BLD)/alloc.obj):
4541 ($(BLD)/buffer.obj):
4542 ($(BLD)/editfns.obj):
4543 ($(BLD)/emacs.obj):
4544 ($(BLD)/fileio.obj):
4545 ($(BLD)/fns.obj):
4546 ($(BLD)/indent.obj):
4547 ($(BLD)/insdel.obj):
4548 ($(BLD)/intervals.obj):
4549 ($(BLD)/minibuf.obj):
4550 ($(BLD)/print.obj):
4551 ($(BLD)/scroll.obj):
4552 ($(BLD)/sysdep.obj):
4553 ($(BLD)/textprop.obj):
4554 ($(BLD)/widget.obj):
f3d3c491
AI
4555 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
4556 ($(BLD)/term.obj): Add dependency on dispextern.h.
4557
52283633
SM
4558 * makefile.nt ($(BLD)\dispnew.obj):
4559 ($(BLD)\keyboard.obj):
4560 ($(BLD)\w32inevt.obj):
4561 ($(BLD)\w32bdf.obj):
4562 ($(BLD)\alloc.obj):
4563 ($(BLD)\buffer.obj):
4564 ($(BLD)\editfns.obj):
4565 ($(BLD)\emacs.obj):
4566 ($(BLD)\fileio.obj):
4567 ($(BLD)\fns.obj):
4568 ($(BLD)\indent.obj):
4569 ($(BLD)\insdel.obj):
4570 ($(BLD)\intervals.obj):
4571 ($(BLD)\minibuf.obj):
4572 ($(BLD)\print.obj):
4573 ($(BLD)\scroll.obj):
4574 ($(BLD)\sysdep.obj):
4575 ($(BLD)\textprop.obj):
4576 ($(BLD)\widget.obj):
f3d3c491
AI
4577 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
4578 ($(BLD)\term.obj): Add dependency on dispextern.h
4579
18ad4821
EZ
45802000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
4581
4582 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
4583 with an additional argument of Qt.
4584
de54681a
MB
45852000-10-21 Miles Bader <miles@gnu.org>
4586
4587 * window.c (pos_fully_visible_in_window_p): New function.
4588 (Fpos_visible_in_window_p): Add FULLY argument.
4589 Use pos_fully_visible_in_window_p.
4590 (window_scroll_pixel_based, window_scroll_line_based): Update
4591 calls to Fpos_visible_in_window_p.
4592 * lisp.h (Fpos_visible_in_window_p): Update prototype
4593
13c844fb
GM
45942000-10-20 Gerd Moellmann <gerd@gnu.org>
4595
4596 * alloc.c (toplevel): Conditionalize compilation of mem_*
4597 functions differently.
52283633 4598
d9506268
JR
45992000-10-20 Jason Rumney <jasonr@gnu.org>
4600
4601 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
4602 mem_init where it used to be. mem_z etc not defined otherwise.
4603
8094989b
GM
46042000-10-20 Gerd Moellmann <gerd@gnu.org>
4605
4606 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
4607 GC_MALLOC_CHECK.
4608 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
4609 structure definition and related variabled to the top of the file.
4610 Include this code when GC_MALLOC_CHECK is defined.
4611 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
4612 register/unregister allocated region.
4613 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
4614 which isn't allocated.
4615 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
4616 something which is already in use.
4617 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
4618 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
4619 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
4620 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
4621
4622 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
4623 _malloc_internal instead of malloc.
4624 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
4625 of free.
4626
ea456eb4
AI
46272000-10-20 Andrew Innes <andrewi@gnu.org>
4628
4629 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
4630 Windows.
4631 (my_strftime) <macro>: Don't use macro arg list when redefining as
4632 _strftime_copytm.
4633 (my_strftime) <function>: Supply 0 as ut argument.
4634
e64c3a75
JR
46352000-10-19 Jason Rumney <jasonr@altavista.net>
4636
4637 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
4638 including dispextern.h, as it stops faces from working.
4639
4640 * w32fns.c (Fx_create_frame): Don't bother calling
4641 face-set-after-frame-default since the caller does it for us
4642 anyway. Clean up calls to x_get_arg to be consistent with X.
4643
4644 * w32term.c (x_produce_glyphs): Handle
4645 unibyte_display_via_language_environment correctly.
4646 (w32_draw_box_rect): Fix the calculation of width and height.
4647
4648 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
4649 as it has stopped working.
4650 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
4651 menu-bar.
4652
17401c97
GM
46532000-10-19 Gerd Moellmann <gerd@gnu.org>
4654
4655 * eval.c (skip_debugger): Prevent a compiler warning.
4656 (Fcondition_case): Likewise.
4657 (Fbacktrace_frame): Use a null interactive spec.
4658
773272d8
KH
46592000-10-19 Kenichi Handa <handa@etl.go.jp>
4660
4661 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
4662
a42943e9
GM
46632000-10-18 Gerd Moellmann <gerd@gnu.org>
4664
e50517d9
GM
4665 * strftime.c: Sync with glibc, file version 1.78.
4666 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
4667 should no longer be used according to ISO 8601.
4668
9035a35a
GM
4669 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
4670 no map for meta_prefix_char, don't try to use it as a keymap.
4671 Instead, if T_OK is non-zero, look up a default binding, if any,
4672 otherwise, if T_OK is zero, return nil.
4673
a42943e9
GM
4674 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
4675 (x_to_xcolors, png_load): Use x_query_color.
4676
52283633
SM
4677 * xterm.c (x_color_cells, x_query_colors, x_query_color):
4678 New functions.
a42943e9
GM
4679 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
4680 which can be slow.
4681 (x_copy_color, x_alloc_lighter_color): Likewise.
4682
4683 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
4684 (x_query_color, x_query_colors): Add prototype.
4685
4686 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
4687 check_string_bytes only if not noninteractive, increase count to 50.
4688
00de2987
MB
46892000-10-18 Miles Bader <miles@lsi.nec.co.jp>
4690
4691 * insdel.c (adjust_markers_for_delete): Handle before-insertion
4692 markers correctly.
4693
54918e2b
GM
46942000-10-17 Gerd Moellmann <gerd@gnu.org>
4695
1f0b3fd2
GM
4696 * alloc.c (pure_bytes_used): Renamed from pureptr.
4697 (ALIGN): New macro.
4698 (pure_alloc): New function.
4699 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
4700 Use it.
4701 (Fpurecopy): Use PURE_POINTER_P.
4702
68c5d1db
GM
4703 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
4704 PT has moved backward.
52283633 4705
9a038881
GM
4706 * xdisp.c (cursor_row_p): Take continued lines into account.
4707
361b097f
GM
4708 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
4709 string's size_byte.
4710 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
4711 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
4712 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
4713 string allocated.
4714
54918e2b
GM
4715 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
4716 of selective display off while searching for the next line start.
4717
03ed0806
KH
47182000-10-17 Kenichi Handa <handa@etl.go.jp>
4719
4720 * Makefile.in (term.o): Depend on dispextern.h.
4721
7e05cdaf
SM
47222000-10-16 Stefan Monnier <monnier@cs.yale.edu>
4723
4724 * keymap.c (keymap_memberp): Ensure that nil is not a member.
4725
a6801fd1
GM
47262000-10-16 Gerd Moellmann <gerd@gnu.org>
4727
483de32b
GM
4728 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
4729 the iterator at the beginning, so that they can be set later on,
4730 for instance in reseat_at_next_visible_line_start, without being
4731 overwritten.
4732
a6801fd1
GM
4733 * xfns.c (pbm_format): Add :foreground and :background keywords.
4734 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
52283633 4735 (xbm_load): Recognize foreground and background color specifications.
a6801fd1 4736
dbf1fcc1
EZ
47372000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
4738
4739 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
4740
52283633 4741 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
dbf1fcc1
EZ
4742
4743 * msdos.c (IT_set_face): Compare highlighted face with the default
4744 face, and invert colors if these faces' colors are identical.
4745 (Fmsdos_remember_default_colors): Don't swap foreground and
4746 background colors in initial_colors[].
4747 (IT_set_frame_parameters): Don't swap frame's foreground and
4748 background pixels. If ALIST includes "(reverse . t)", swap
4749 foreground-color and background-color properties in frame's
4750 param_alist. If the original frame's param_alist doesn't specify
4751 the colors, store unspecified-fg and unspecified-bg, reversed if
4752 required.
4753
4754 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
4755 the colors are unspecified and reversed, reverse fore- and back-
4756 ground in the returned value.
4757 (Fframe_parameter): Ditto.
4758
b41fe2c3 47592000-10-16 Gerd Moellmann <gerd@gnu.org>
52283633 4760
3a6b59d9
GM
4761 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
4762 get_last_unchanged_at_beg_row.
4763 (find_first_unchanged_at_end_row): Renamed from
4764 get_first_unchanged_at_end_row.
4765 (find_first_unchanged_at_end_row): Convert assertions to
4766 unconditional tests which abort. When looking for a row in
4767 unchanged text, don't go further back than first_text_row.
4768
b41fe2c3
GM
4769 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
4770 Don't add in the last line's height when deciding if the new
4771 position is below the scroll margin.
9d1af64f 4772
b41fe2c3 47732000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
4774
4775 * editfns.c (Fconstrain_to_field): Check carefully for field
4776 boundaries if either OLD_POS or NEW_POS has a non-nil field
4777 property, even if they're the same.
4778
c412cb7b
KH
47792000-10-16 Kenichi Handa <handa@etl.go.jp>
4780
4781 * xterm.c (x_draw_box_rect): Fix the calculation of width and
4782 height for XFillRectangle.
4783
5586f3eb
SM
47842000-10-15 Stefan Monnier <monnier@cs.yale.edu>
4785
4786 * syntax.c (Fstring_to_syntax): New function extracted from
4787 Fmodify_syntax_entry.
4788 (Fmodify_syntax_entry): Use it and document the ! and | fences.
4789 (skip_chars, Fforward_comment): Remove unused variables.
4790 (syms_of_syntax): Add defsubr for string-to-syntax.
4791 (describe_syntax): Add code for comment and string fences.
4792
db785038
SM
47932000-10-14 Stefan Monnier <monnier@cs.yale.edu>
4794
4795 * keymap.c (access_keymap): Add AUTOLOAD parameter.
4796 Do the meta->esc mapping. Call get_keyelt before returning.
4797 Start scanning from the second element (the first is always `keymap')
4798 to make it easier to detect when we reach a parent map.
4799 Handle the case of inheriting from a symbol whose function is a map.
4800 (Fkeymap_parent): Also handle the `inherit from symbol' case.
4801 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
4802 (get_keyelt, Flookup_key): Update call to access_keymap.
4803 Remove the meta->esc mappings.
4804 (define_as_prefix): Delete old disabled code.
4805 (menu_item_p): New function.
4806 (where_is_internal_1): Skip over the few remaining menu items.
4807 * lisp.h (access_keymap): Update prototype.
4808 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
4809 Update call to access_keymap.
4810 (follow_key, read_key_sequence): Update calls to access_keymap.
4811 Remove the meta->esc mappings.
4812
cafafe0b
GM
48132000-10-13 Gerd Moellmann <gerd@gnu.org>
4814
a2e2a7f6
GM
4815 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
4816 with additional argument.
4817
cafafe0b
GM
4818 * xdisp.c (cursor_row_p): New function.
4819 (try_cursor_movement, display_line): Use it.
52283633 4820
cafafe0b
GM
4821 * xdisp.c (append_space): Also save/restore iterator's current
4822 character and its length.
4823
4824 * xdisp.c (init_from_display_pos): Add an assertion.
4825 (handle_stop): Don't set iterator's add_overlay_start.
4826 (handle_invisible_prop): Likewise.
4827 (load_overlay_strings): If text under an overlay is invisible,
4828 take both before- and after-strings into account when the iterator
4829 is positioned either at the start or at the end of the overlay.
4830 (forward_to_next_line_start): Rewritten.
4831 (reseat_at_next_visible_line_start): Rewritten.
4832 (set_iterator_to_next): Add parameter RESEAT_P.
4833
4834 * dispextern.h (struct it): Remove member add_overlay_start.
4835 (set_iterator_to_next): Change prototype.
4836
c744452b
KH
48372000-10-13 Kenichi Handa <handa@etl.go.jp>
4838
4839 * coding.c (code_convert_region): Be sure to initialize
4840 coding->category_idx.
e4a3f4e1
KH
4841 (decode_coding_string): Set coding->src_multibyte and
4842 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
4843 (encode_coding_string): Set coding->src_multibyte and
4844 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 4845
321fd26f
SM
48462000-10-12 Stefan Monnier <monnier@cs.yale.edu>
4847
4848 * xfns.c (Fx_create_frame): Don't bother calling
4849 face-set-after-frame-default since the caller does it for us anyway.
4850
76832439
EZ
48512000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
4852
4853 * window.c (coordinates_in_window): Fix detection of vertical line
4854 on character terminals.
4855
2483cf58
GM
48562000-10-12 Gerd Moellmann <gerd@gnu.org>
4857
4858 * editfns.c (save_excursion_save): Additionally record the
4859 selected window.
4860 (save_excursion_restore): If buffer was visible in a window, and a
4861 different window was selected, and the old selected window is
4862 still live, restore point in that window.
4863
eb991b25
KH
48642000-10-12 Kenichi Handa <handa@etl.go.jp>
4865
8a0eba09
KH
4866 * xterm.c (x_produce_glyphs): Handle
4867 unibyte_display_via_language_environment correctly.
4868
20401fcc
KH
4869 * regex.c (regex_compile): Change the way of handling a range from
4870 unibyte char to multibyte char.
4871
4872 * syntax.c (skip_chars): Change the way of handling a range from
4873 unibyte char to multibyte char.
4874
eb991b25
KH
4875 * process.c (read_process_output): Cancel previous change.
4876
365dd325
EZ
48772000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
4878
c1b096cb
EZ
4879 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
4880
365dd325
EZ
4881 * charset.c (Ffind_charset_string): Doc fix.
4882 (Ffind_charset_region): Doc fix.
4883
eb483c2b
KH
48842000-10-11 Kenichi Handa <handa@mule.m17n.org>
4885
4886 * process.c (read_process_output): Fix previous change. Adjust
4887 multibyteness of text to insert in a buffer by
52283633 4888 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
eb483c2b 4889
b40bfb99
AS
48902000-10-10 Andreas Schwab <schwab@suse.de>
4891
4892 * alloc.c (mark_object): Remove all workarounds installed on
4893 1993-08-08.
4894
caff31d4
KH
48952000-10-10 Kenichi Handa <handa@etl.go.jp>
4896
52283633 4897 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
caff31d4
KH
4898 (base64_encode_1): Make it work for a text of multibyte form.
4899 (Fbase64_decode_region): Allocate sufficient memory for multibyte
4900 case. Don't call str_to_multibyte because base64_decode_1
4901 produces correct multibyte form for eight-bit codes.
52283633 4902 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
caff31d4
KH
4903 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
4904 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
4905 codes.
4906
4907 * charset.h (CHAR_STRING): Optimized for single byte characters.
4908
cba026ef
AS
49092000-10-09 Andreas Schwab <schwab@suse.de>
4910
4911 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
4912 -1 after socket is closed, to fall through to error processing.
4913
1e21fe48
EZ
49142000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
4915
4916 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 4917 variables. If ALIST includes foreground-color or
1e21fe48
EZ
4918 background-color, change also the colors of the default face for
4919 this frame.
4920
a640322e
EZ
49212000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
4922
4923 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
4924 them extern (they are defined on xfaces.c).
4925 (syms_of_msdos): Don't intern and don't staticpro
4926 Qbackground_color and Qforeground_color.
4927
a115794c
EZ
49282000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
4929
4930 * frame.c (Fframe_parameter): For non-windowed frames, if
4931 f->param_alist says foreground or background color is unspecified,
4932 call tty_color_name to return the color name computed from the
4933 frame's current colors.
4934
f5533b63
DL
49352000-10-06 Dave Love <fx@gnu.org>
4936
4937 * terminfo.c (ospeed): Don't declare.
4938
4939 * sysdep.c: Don't include string.h.
4940 (h_errno): Declare conditional also on TRY_AGAIN.
4941
4942 * charset.c (Ffind_charset_string): Doc fix.
4943
52283633 4944 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
f5533b63
DL
4945 (Fbase64_decode_region, Fbase64_decode_string): More explicit
4946 error messages.
4947
2b06561a
DL
49482000-10-05 Dave Love <fx@gnu.org>
4949
4950 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
4951 position like menu-bar.
4952
ca839c85
GM
49532000-10-05 Gerd Moellmann <gerd@gnu.org>
4954
4955 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
4956
4957 * xdisp.c (handle_single_display_prop): Use safe_call1.
4958 (safe_call): Renamed from call_function.
4959 (safe_call1): New function.
4960 (handle_fontified_prop): Use safe_call1 instead of call1.
4961 (safe_eval): Renamed from eval_form.
4962 (safe_eval_handler): Renamed from eval_handler.
4963 (handle_single_display_prop, display_mode_element): Use safe_eval
4964 instead of eval_form.
4965
4966 * xfaces.c (merge_face_heights): Use safe_call instead of
4967 call_function.
4968
4969 * keyboard.c (show_help_echo): Use safe_call instead of
4970 call_function; use safe_eval instead of eval_form.
4971
4972 * lisp.h (safe_call): Renamed from call_function.
4973 (safe_eval): Renamed from eval_form.
4974 (safe_call1): Add prototype.
4975
a3489ece
MB
49762000-10-05 Miles Bader <miles@lsi.nec.co.jp>
4977
4978 * xfns.c (image_ascent): Rearrange ascent calculation for the
4979 has-a-font case.
4980
35810b6f
SM
49812000-10-04 Stefan Monnier <monnier@cs.yale.edu>
4982
4983 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
4984 (where_is_internal_1): Don't bother ignoring menu-items any more.
4985
3dc78168
GM
49862000-10-04 Gerd Moellmann <gerd@gnu.org>
4987
4988 * keyboard.c (update_menu_bindings): New variable.
4989 (parse_menu_item): Use AREF. If update_menu_bindings
4990 is 0, don't update menu bindings.
4991 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
4992
1efc2bb9
EZ
49932000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
4994
4995 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
4996 to `mark_object'.
4997
3f679f55
SM
49982000-10-02 Stefan Monnier <monnier@cs.yale.edu>
4999
5000 * syntax.c (forw_comment): Match nestedness of ender/starter.
5001 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
5002 (prev_char_comstart_first): Remove.
5003 (back_comment): Check two-char comment markers more carefully
5004 to better handle overlapping cases like *//* or /* */* */ ...
5005 Match nestedness of ender/starter.
5006
2021ab61
DL
50072000-10-02 Dave Love <fx@gnu.org>
5008
5009 * config.in (HAVE_GAI_STRERROR): Add undef.
5010
5011 * process.c (Fopen_network_stream): Use it.
5012
5013 * m/alpha.h (NO_REMAP): Don't define.
5014
64e6cc18
GM
50152000-10-02 Gerd Moellmann <gerd@gnu.org>
5016
5017 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
5018 return with a string converted to an integer or vice versa when
5019 Vmocklisp_arguments is t.
5020 (Fsignal): Likewise. The function can return for `quit'.
5021 (struct gcpro): Declare member `var' to point to a volatile
5022 Lisp_Object.
5023
5024 * eval.c (error): Prevent compiler warning.
5025
b1904cd9
SM
50262000-09-30 Stefan Monnier <monnier@cs.yale.edu>
5027
5028 * keymap.c (keymap_memberp): New function.
5029 (Fset_keymap_parent): Use it.
5030 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
5031 Use keymap_memberp to avoid creating cycles.
5032 (access_keymap): Use KEYMAPP.
5033
71c9ec51
GM
50342000-09-30 Gerd Moellmann <gerd@gnu.org>
5035
5036 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
5037 gai_strerror. Make sure xerrno is set if connect fails. Improve
5038 error recovery.
71c9ec51 5039
c70c6b58
JR
50402000-09-29 Jason Rumney <jasonr@gnu.org>
5041
5042 * w32term.c (w32_char_font_type, w32_encode_char)
5043 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
5044 (w32_bdf_per_char_metric): New function.
5045 (w32_per_char_metric): Use it.
5046 (x_draw_glyph_string_background): Always draw background for BDF
5047 glyphs.
5048
5049 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
5050 GDI object which is a scarce resource.
5051
5052 * w32bdf.c (search_file_line): Fix skipping of whitespace.
5053 (get_quoted_string): Fix limit on memchr search.
5054 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
5055 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
5056 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
5057 (get_cached_font_char, cache_char_offset): Use macro
5058 BDF_CODEPOINT_RANGE_COVER_P.
5059 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
5060 (clear_cached_bitmap_slots): New function.
5061 (GET_HEX_VALUE): G-Z, g-z are not hex.
5062 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
5063 (get_bitmap_with_cache): Use new cache implementation.
5064 (create_offscreen_bitmap): New function.
5065 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
5066
5067 * w32term.c (x_produce_glyphs): If the distance from the current
5068 position to the next tab stop is less than a canonical character
5069 width, use the tab stop after that.
5070 (x_draw_glyphs): Handle case START and END are out of bounds more
5071 carefully.
5072 (x_clear_mouse_face): Block/unblock input.
5073 (x_display_and_set_cursor): Don't show a hollow box cursor for
5074 buffers whose cursor_type is nil.
5075
fe01239f
GM
50762000-09-29 Gerd Moellmann <gerd@gnu.org>
5077
52283633 5078 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
fe01239f
GM
5079
5080 * dispextern.h (updating_frame): Declare extern.
5081
e7c52f1f
AS
50822000-09-29 Andreas Schwab <schwab@suse.de>
5083
5084 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
5085
de6e1f7c
GM
50862000-09-29 Gerd Moellmann <gerd@gnu.org>
5087
25126faa
GM
5088 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
5089 use its function definition.
5090 (tool_bar_items): Likewise.
5091
de6e1f7c 5092 * lisp.h (fatal): Declare NO_RETURN.
52283633 5093
454ee39b
KH
50942000-09-29 Kenichi Handa <handa@etl.go.jp>
5095
5096 * keymap.c: Remove the line "#undef NULL".
5097
96301c5f
GM
50982000-09-28 Gerd Moellmann <gerd@gnu.org>
5099
52283633 5100 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
96301c5f 5101
efffeeb4
DL
51022000-09-28 Dave Love <fx@gnu.org>
5103
ecb8b666
DL
5104 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
5105
dc3cd20f
DL
5106 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
5107
5108 * .gdbinit (xreload): Note its need on GNU/Linux.
5109
efffeeb4
DL
5110 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
5111 r_alloc, r_alloc_free.
5112
8610d903
KH
51132000-09-28 Kenichi Handa <handa@etl.go.jp>
5114
5115 * syntax.c (skip_chars): Handle negation correctly.
5116
8901d1ac
GM
51172000-09-27 Gerd Moellmann <gerd@gnu.org>
5118
6f22f1ad
GM
5119 * xfaces.c (realize_default_face): Call set_lface_from_font_name
5120 with non-zero FORCE_P argument.
5121
52283633 5122 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
8901d1ac
GM
5123 Add assertions.
5124
5125 * xdisp.c (window_box_height): Add an assertion.
5126
5127 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
5128 tool-bar than is available.
5129 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
5130
36f1966f
DL
51312000-09-27 Dave Love <fx@gnu.org>
5132
efffeeb4 5133 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 5134
31d929e5
GM
51352000-09-26 Gerd Moellmann <gerd@gnu.org>
5136
c98863bf
GM
5137 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
5138 instead of BITS_PER_INT.
5139 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
5140 EMACS_UINT, respectively.
5141 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
5142
5143 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
5144
5145 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
5146
77072ab1
GM
5147 * window.c (freeze_window_starts): Construct last argument for
5148 foreach_window differently.
5149
5150 * xfns.c (x_decode_color): Don't return a Lisp_Object.
5151
5152 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
5153 EMACS_UINT instead of `int' and `unsigned int'.
5154 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
5155
5156 * frame.h (struct frame): Make the `nothing' member of union
5157 output_data an EMACS_INT.
5158
52283633 5159 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
31d929e5
GM
5160 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
5161 size in the sdata structure.
5162 (SDATA_NBYTES, SDATA_DATA): New macros.
5163 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
5164 differently for the different layout of the sdata structure.
5165 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
5166 in sdata.
5167 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
5168 Check that size recorded in the string size and size recorded in
5169 the sdata structure agree.
5170
3e60b029
DL
51712000-09-25 Dave Love <fx@gnu.org>
5172
5173 * buffer.c: Include stdio.h.
5174
5175 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
52283633 5176
3e60b029
DL
5177 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
5178
5179 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
52283633 5180 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
3e60b029
DL
5181 (__malloc_extra_blocks): Declare as __malloc_size_t.
5182
8ff16b4e
GM
51832000-09-25 Gerd Moellmann <gerd@gnu.org>
5184
755a2ccd
GM
5185 * alloc.c (mark_image): Use GC_NILP instead of NILP.
5186
d8b4516f
GM
5187 * keyboard.c (show_help_echo): Set help_echo_showing_p.
5188 (read_char): If help-echo is showing, preserve the echo area
5189 when redisplaying.
5190
5191 * xdisp.c (help_echo_showing_p): New variable.
5192 (set_message): Reset it to 0.
5193 (init_xdisp): Initialize help_echo_showing_p.
5194
5195 * dispextern.h (help_echo_showing_p): Declare extern.
5196
5197 * config.in: Fix typo in __GNUC_MINOR__.
5198
5199 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
5200
b11af2dd
GM
5201 * s/freebsd.h (POSIX_SIGNALS): Define.
5202
8ff16b4e
GM
5203 * xterm.c (x_clear_mouse_face): Block/unblock input.
5204
844eb643
DL
52052000-09-24 Dave Love <fx@gnu.org>
5206
5207 * fns.c (base64_encode_1): Fix last change.
5208
b30ab1b3
GM
52092000-09-22 Gerd Moellmann <gerd@gnu.org>
5210
5211 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
5212
5213 * xdisp.c (try_window_reusing_current_matrix): More fixes
5214 for the case window has a header-line.
5215
c6cbe5f0
DL
52162000-09-22 Dave Love <fx@gnu.org>
5217
4c7c1f3f
DL
5218 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
5219 a doc string.
5220
5221 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
5222
c6cbe5f0
DL
5223 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
5224
550a625e
GM
52252000-09-21 Gerd Moellmann <gerd@gnu.org>
5226
4c7c1f3f 5227 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
5228 for GCC >= 2.5.
5229
52283633
SM
5230 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
5231 Declare NO_RETURN.
fca99116 5232
80d26f99
GM
5233 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
5234 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
5235 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
5236 warnings.
52283633 5237
80d26f99
GM
5238 * marker.c (byte_char_debug_check): Return void.
5239
623a0aae
GM
5240 * xfns.c (Fx_create_frame): Set default frame parameter value
5241 for tool-bar-lines to 1.
5242
5243 * dispnew.c (scrolling_window): Compare y-positions of rows
5244 equal at the start. Some simplification.
5245
5246 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
5247 reused rows' y-position in the case window has a header-line, and
5248 new window start is greater than old window start.
5249
42ac0ae5
GM
5250 * process.c (process_sent_to): New variable.
5251 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
5252 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
5253 Declare more parameters volatile.
5254
550a625e
GM
5255 * lread.c (Vrecursive_load_depth_limit): New variable.
5256 (Fload): Check recursive loads whose recursion depth exceeds
5257 Vrecursive_load_depth_limit.
5258 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
5259
8320414c
GM
52602000-09-20 Gerd Moellmann <gerd@gnu.org>
5261
f46c275e
GM
5262 * fileio.c (Fread_file_name): Doc fix.
5263
5264 * editfns.c (Fmessage_or_box): Doc fix.
5265
5266 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
5267
b7e11c5b 5268 * xfns.c (xbm_scan): Allow C-style comments.
52283633 5269
8320414c
GM
5270 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
5271 symbols are specified, add color translations to the cache.
52283633 5272 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
8320414c
GM
5273 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
5274 xpm_cache_color.
5275 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
5276 structures to xpm_init_color_cache.
5277
da1608d9
GM
52782000-09-19 Gerd Moellmann <gerd@gnu.org>
5279
52283633 5280 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
da1608d9 5281
6badfa25
AI
52822000-09-19 Andrew Innes <andrewi@gnu.org>
5283
5284 * makefile.nt (bootstrap-emacs): Don't change directory.
5285
3a5f42bb
KH
52862000-09-19 Kenichi Handa <handa@etl.go.jp>
5287
1b7649bd
KH
5288 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
5289
3a5f42bb
KH
5290 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
5291 If output buffer is too small, signal an appropriated error.
5292
9f83cf0b
DL
52932000-09-18 Dave Love <fx@gnu.org>
5294
52283633 5295 * keyboard.c (menu_bar_items, tool_bar_items)
9f83cf0b
DL
5296 (current_active_maps): Remove redundant get_local_map call.
5297
28c7826c
GM
52982000-09-18 Gerd Moellmann <gerd@gnu.org>
5299
5cefa566
GM
5300 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
5301 cursor for buffers whose cursor_type is nil.
52283633 5302
6fed3546
GM
5303 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
5304 a feature to implement that is already implemented.
5305 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
5306 warnings.
5307
5308 * xfns.c (x_clear_image_1): New function.
5309 (x_clear_image): Use it.
52283633 5310 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
6fed3546 5311
05b1f851
GM
5312 * dispnew.c (update_window): Move test for invisible lines
5313 at the top to update_window_line.
5314 (update_window_line): Handle invisible lines here.
5315
f4779de9
GM
5316 * xfns.c (clear_image_cache): Clear current matrices of all
5317 frames sharing an image cache. Block input while freeing
5318 images. Fix timestamp comparison.
5319 (x_clear_image): Also free the mask.
5320
28c7826c
GM
5321 * xfns.c (lookup_image): Block input while loading the image so
5322 that we won't get interrupted in a state where the image isn't yet
5323 set up completely.
5324 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
5325 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
5326 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
52283633 5327 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
28c7826c 5328
b7412313
GM
53292000-09-16 Gerd Moellmann <gerd@gnu.org>
5330
5331 * dispnew.c (update_window): Make sure to make desired rows
5332 current even if they are completely invisible at the top
5333 of a window.
5334
47e351a3
GM
53352000-09-15 Gerd Moellmann <gerd@gnu.org>
5336
7f8f1edc
GM
5337 * xfns.c (lookup_image): Build mask before applying an algorithm.
5338 Recognize algorithm `disabled'.
5339 (cross_disabled_images): New variable.
5340 (COLOR_INTENSITY): New macro.
5341 (x_detect_edges): Use COLOR_INTENSITY.
5342 (x_disable_image): New function.
5343 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
5344
5345 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
5346 disabled state, don't apply an image transformation algorithm if
5347 the user specified an image for the disabled state. Use
28c7826c 5348 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
5349 user hasn't specified an image.
5350
ebb8f116
GM
5351 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
5352 allocation functions with the XPM lib.
5353 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
5354 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
5355 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
5356 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
52283633 5357 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
ebb8f116
GM
5358 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
5359 functions, if possible, because these handle color allocation
5360 failure more gracefully.
5361 (Fimage_mask_p): New function.
5362
47e351a3
GM
5363 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
5364 (Qedge_detection, Qheuristic): New symbols.
5365 (syms_of_xfns): Initialize new symbols.
5366 (lookup_image): Handle `:mask X', `:algorithm emboss', and
5367 `algorithm (edge-detection ...)'.
5368 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
5369 (tiff_format, gif_format, gs_format): Add `:mask'.
5370 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
5371 (GIF_MASK, GS_MASK): New enumerators.
5372 (x_laplace_read_row, x_laplace_write_row): Functions removed.
5373 (emboss_matrix, laplace_matrix): New variables.
5374 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
5375 (x_edge_detection): New functions.
5376 (x_laplace): Rewritten in terms of x_detect_edges.
5377 (x_build_heuristic_mask): If image has a mask, free it.
5378
fe83b953
AI
53792000-09-14 Andrew Innes <andrewi@gnu.org>
5380
5381 * makefile.w32-in: Revert to Unix line endings.
5382
3021e816
AI
53832000-09-14 Andrew Innes <andrewi@gnu.org>
5384
5385 * makefile.w32-in: Standardize indentation somewhat.
5386 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
5387 cater for differences between shells.
5388
5389 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
5390
2a32b5ea
GM
53912000-09-14 Gerd Moellmann <gerd@gnu.org>
5392
5393 * xterm.c (x_produce_glyphs): If the distance from the current
5394 position to the next tab stop is less than a canonical character
5395 width, use the tab stop after that.
5396
b4331e96
DL
53972000-09-14 Dave Love <fx@gnu.org>
5398
5399 * buffer.c (alloc_buffer_text): Fix xmalloc call.
5400
ef9e4345
GM
54012000-09-14 Gerd Moellmann <gerd@gnu.org>
5402
085536c2
GM
5403 * xdisp.c (handle_fontified_prop): While running fontification
5404 functions, bind `fontification-functions' and
5405 `after-change-functions' to nil.
5406
ef9e4345
GM
5407 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
5408 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
5409
5410 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
5411
5412 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
5413 USE_MMAP_FOR_BUFFERS.
5414
5415 * insdel.c (make_gap): Use enlarge_buffer_text.
5416
5417 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
5418 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
5419 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
5420 from former r_alloc_* functions in ralloc.c.
52283633 5421 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
ef9e4345
GM
5422 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
5423 (mmap_init) [REL_ALLOC_MMAP]: New function.
5424 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
5425 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
5426 BUFFER_FREE.
5427
5428 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
5429 (enlarge_buffer_text): Add prototype.
5430
5431 * ralloc.c: Remove everything having to do with the use of mmap.
5432
f8608968
GM
54332000-09-13 Gerd Moellmann <gerd@gnu.org>
5434
2a494b2d
GM
5435 * sound.c (Fplay_sound): Doc fix.
5436
8c907a56
GM
5437 * keyboard.c: Avoid some more compiler warnings.
5438 (parse_tool_bar_item): Ignore cached key bindings.
5439
f8608968
GM
5440 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
5441 and allocation of Lisp data.
5442
6ab70e9a
GM
54432000-09-12 Gerd Moellmann <gerd@gnu.org>
5444
d12d0a9b
GM
5445 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
5446 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
5447 defaults first.
5448
6ab70e9a
GM
5449 * lread.c (Fload): Put code checking for recursive loads in #if 0.
5450
63c36c3c
KH
54512000-09-12 Miyashita Hisashi <himi@meadowy.org>
5452
5453 * ccl.c: Comment fixed.
5454 (MAX_MAP_SET_LEVEL): Increased to 30.
5455 (PUSH_MAPPING_STACK): Enclose with do-while block.
5456 (POP_MAPPING_STACK): Likewise.
5457 (stack_idx_of_map_multiple): New variable.
5458 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
5459 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
52283633 5460 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
63c36c3c
KH
5461 (ccl_driver) <CCL_MapSingle>: Likewise.
5462 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
5463 with the case where looking up process reaches to the end of
5464 map-set, and call CCL programs as the above change.
5465
7ee3bd7b
GM
54662000-09-11 Gerd Moellmann <gerd@gnu.org>
5467
8ec8a5ec
GM
5468 * xfns.c (png_load, jpeg_load): Declare some variables volatile
5469 that might be clobbered by longjmp.
5470 (check_x_display_info, x_decode_color, create_frame_xic)
5471 (Fx_display_backing_store, Fx_display_visual_class)
52283633 5472 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
8ec8a5ec 5473
f74b0705
GM
5474 * lread.c (init_lread): Set Vloads_in_progress to nil.
5475 (Fload): Show list of recursively loaded files, when signaling an
5476 error.
5477
7ee3bd7b
GM
5478 * lread.c (Vloads_in_progress): New variable.
5479 (record_load_unwind): New function.
5480 (Fload): Check for recursive loads.
5481 (syms_of_lread): Initialize Vloads_in_progress.
5482 (read_integer, read1): Avoid some compiler warnings.
5483
5484 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
5485 compiler warnings.
5486
974e1e5b
MB
54872000-09-11 Miles Bader <miles@gnu.org>
5488
5489 * editfns.c (Fbuffer_string): Doc fix.
5490
9824c4e3
GM
54912000-09-10 Gerd Moellmann <gerd@gnu.org>
5492
5493 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
5494
6a72fdd1
KR
54952000-09-09 Ken Raeburn <raeburn@gnu.org>
5496
5497 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
5498 whether to include other header files.
5499
28e6fb66
GM
55002000-09-09 Gerd Moellmann <gerd@gnu.org>
5501
52283633 5502 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 5503 by Fmemq as a boolean.
28e6fb66 5504
7f8b6551
SM
55052000-09-08 Stefan Monnier <monnier@cs.yale.edu>
5506
5507 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
5508
a8710abf
GM
55092000-09-08 Gerd Moellmann <gerd@gnu.org>
5510
d1a02881
GM
5511 * ralloc.c (mmap_fd): Remove initializer which can make it
5512 read-only in a dumped Emacs.
5513 (mmap_fd_1): New variable.
5514 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
5515 restore it from there.
5516 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
5517 unconditionally so that mmap_fd can be initialized there.
5518 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
5519 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
5520 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
5521
c454aac1
GM
5522 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
5523
5524 * xdisp.c (dump_glyph_row): Fix printf format string.
52283633 5525 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
c454aac1 5526
fc653ef2
GM
5527 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
5528
3015eec0
GM
5529 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
5530 inheritance.
5531
bfe0ee88
GM
5532 * xdisp.c (try_window_id): When trying to locate cursor in
5533 unchanged rows at the top, handle the case that we can't find it.
5534
a8710abf
GM
5535 * xterm.c (x_draw_glyphs): Handle case START and END are out
5536 of bounds more carefully.
5537
6b7d4ae4
DL
55382000-09-08 Dave Love <fx@gnu.org>
5539
423193c5
DL
5540 * s/sol2.h (REL_ALLOC_MMAP): Define.
5541 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
5542
5543 * ralloc.c: Don't include string.h (redundant).
5544 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
5545 [!MAP_ANON]: Include fcntl.h.
5546 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
5547 (r_alloc, r_re_alloc, r_alloc_free)
5548 (mmap_enlarge, mmap_set_vars): Use it.
5549 (r_alloc_init_fd): New function.
5550 (__morecore) [SYSTEM_MALLOC]: Don't declare.
5551 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
5552 malloc type.
5553
5554 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
5555 Remove vm-limit.o.
5556
6b7d4ae4
DL
5557 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
5558 change to __NetBSD__.
5559
44d31981
KH
55602000-09-08 Kenichi Handa <handa@etl.go.jp>
5561
5562 * search.c (compile_pattern): Check the multibyteness of cached
5563 string and PATTERN.
5564
aad40737
MB
55652000-09-08 Miles Bader <miles@gnu.org>
5566
5567 * xfaces.c (default_face_vector): Function removed.
5568 (Finternal_merge_in_global_face): Restore old global/local
5569 attribute override order. Use inline loop instead of calling
5570 default_face_vector.
5571
91a211b5
GM
55722000-09-07 Gerd Moellmann <gerd@gnu.org>
5573
5574 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
5575 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
5576 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
5577 where necessary, in case POINTER_TYPE is `void'.
5578
03419440
EZ
55792000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
5580
5581 * frame.c (make_terminal_frame): Initialize frame foreground and
5582 background colors to unspecified, for the initial instance of an
5583 MSDOS frame.
5584
f46f845b
GM
55852000-09-07 Gerd Moellmann <gerd@gnu.org>
5586
24f76fbf
GM
5587 * ralloc.c (mmap_find): Fix overlap computation.
5588 (mmap_enlarge): Compute nbytes before trying to find an
5589 overlapping region.
5590
f46f845b
GM
5591 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
5592 instead of `!='.
5593
5594 * lread.c (syms_of_lread): Change value of regexp
5595 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
5596
5597 * xmenu.c (xdialog_show): When looking up the selection in
5598 menu_items, take `quote' boundaries into account; this corresponds
5599 to a nil ITEM in x-popup-dialog.
5600
3c014385
KH
56012000-09-07 Kenichi Handa <handa@etl.go.jp>
5602
fd6f711b
KH
5603 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
5604 not 0x81.
5605 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
5606
3c014385 5607 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
5608 encoding, not decoding. Fix the handling of latin-jisx0201.
5609 Check for the charset katakana-jisx0201 too.
3c014385 5610 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 5611 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 5612
0da3ecef
GM
56132000-09-07 Gerd Moellmann <gerd@gnu.org>
5614
ab0ee409
GM
5615 * xfaces.c (Vparam_value_alist): New variable.
5616 (syms_of_xfaces): Initialize it.
5617 (Finternal_set_lisp_face_attribute): Avoid more consing.
5618
5619 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
5620 specially.
5621 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
5622 (Qbackground_mode): New variable.
5623 (syms_of_frame_1): Initialize Qbackground_mode.
5624
5625 * lisp.h (Qdisplay): Declare extern.
1091dd67 5626
0da3ecef
GM
5627 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
5628 change face on all frames, and change the default for new frames.
5629
b14654b9
DL
56302000-09-07 Dave Love <fx@gnu.org>
5631
5632 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
5633
d24fd56f
KH
56342000-09-07 Kenichi Handa <handa@etl.go.jp>
5635
794f3670
KH
5636 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
5637
0fddd0dc
KH
5638 * charset.c: Include composite.h
5639 (lisp_string_width): New function.
5640 (Fstring_width): Call lisp_string_width instead of strwidth.
5641
5642 * Makefile.in (charset.o): Depends on composite.h.
5643
d24fd56f
KH
5644 * process.c (read_process_output): Before inserting the decoded
5645 text in the buffer, adjust the multibyteness.
5646
fa0b693c
GM
56472000-09-06 Gerd Moellmann <gerd@gnu.org>
5648
52283633 5649 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
73b77ee5
GM
5650 buffer's text buffer is null, map new memory.
5651
0a58f946
GM
5652 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
5653 POINTER_TYPE and size_t.
5654 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
5655 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
5656 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
5657 [REL_ALLOC_MMAP]: New macros.
5658 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
5659 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
5660 [REL_ALLOC_MMAP]: New functions.
5661
5662 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
5663 before and after unexec.
5664
5665 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
5666 text buffers if necessary.
5667
5668 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
5669 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
5670 in prototypes.
5671
fa0b693c
GM
5672 * config.in (HAVE_MMAP): Add #undef.
5673
877055f6
GM
56742000-09-05 Gerd Moellmann <gerd@gnu.org>
5675
08ba3862
GM
5676 * frame.c (Qdisplay_type): New variable.
5677 (syms_of_frame_1): Initialize it.
5678 (Fframe_parameter): New function that avoids consing.
5679 (syms_of_frame): Defsubr it.
5680
66ffe51c
GM
5681 * buffer.c (Fother_buffer): Consider buffers as invisible when
5682 they are displayed in a window on an invisible frame.
5683
877055f6
GM
5684 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
5685 get-largest-window always return nil.
5686
bb970e67
GM
56872000-09-04 Gerd Moellmann <gerd@gnu.org>
5688
5689 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
5690 variable; recognize Emacs 19 elc files.
5691
7a3d0e0e
MB
56922000-09-04 Miles Bader <miles@gnu.org>
5693
5694 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
5695 before initially popping up the menu, so the menu doesn't flash
52283633 5696 when the face settings are significantly different from the defaults.
7a3d0e0e 5697
14473664
SM
56982000-09-04 Stefan Monnier <monnier@cs.yale.edu>
5699
5700 * regex.c (WIDE_CHAR_SUPPORT): New macro.
5701 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
5702 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
5703 (BIT_UNIBYTE): Remove.
5704 (re_match_2_internal): Delete corresponding code and streamline the
5705 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
5706 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
5707 (re_wctype_t): New type.
5708 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
5709 (regex_compile): Use them and fix handling of overly long char classes.
5710
c1174479
AI
57112000-09-03 Andrew Innes <andrewi@gnu.org>
5712
f8803e97
AI
5713 * makefile.w32-in: Change to DOS line endings.
5714
c1174479
AI
5715 * s/ms-w32.h (ORDINARY_LINK): New define.
5716
5717 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
5718 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
5719
5720 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
5721 (distclean): Delete them here instead.
5722
44ef7cf6
AI
5723 * w32proc.c (compare_env): Convert to uppercase for comparison,
5724 not lowercase, to match how the native Windows shell works.
5725
49b3bd82
JR
57262000-09-03 Jason Rumney <jasonr@gnu.org>
5727
5728 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
5729 CVS changes the line-ends when checking in/out on DOS/Windows.
5730
5731 * makefile.nt (emacs): Do not change directory to run temacs, as
5732 the load-path is set relative to current directory.
5733
a3d35a39
MB
57342000-09-03 Miles Bader <miles@gnu.org>
5735
5736 * xterm.c (x_alloc_lighter_color_for_widget): New function.
5737
d276b0cf
GM
57382000-09-02 Gerd Moellmann <gerd@gnu.org>
5739
715e84c9
GM
5740 * xdisp.c (redisplay_mode_lines): New function.
5741 (display_mode_lines): Return number of mode lines displayed.
5742 (echo_area_display): Use redisplay_mode_lines to draw garbaged
5743 mode lines. Don't temporarily bind redisplay-dont-pause to t.
5744
8892f40b
GM
5745 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
5746 string.h and strings.h.
5747 (index) [HAVE_INDEX]: Add prototype.
5748
d276b0cf
GM
5749 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
5750 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
5751
5752 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
5753 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
5754
38404229
GM
57552000-09-01 Gerd Moellmann <gerd@gnu.org>
5756
5757 * lread.c (read1): Accept `?' as symbol constituent, for
5758 compatiblity with XEmacs.
5759
c0f9ea08
SM
57602000-08-31 Stefan Monnier <monnier@cs.yale.edu>
5761
5762 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
5763 (struct re_pattern_buffer): Remove newline_anchor.
5764 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
5765 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
5766 (re_max_failures, fail_stack): Use size_t rather than unsigned.
5767 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
5768 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
5769 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
5770 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
5771 Get rid of references to newline_anchor.
5772 (regcomp): Allocate and precompute a fastmap.
5773
8c0f83fe
GM
57742000-08-31 Gerd Moellmann <gerd@gnu.org>
5775
5776 * lread.c (openp): GCPRO local variable `filename'.
5777
4bb91c68
SM
57782000-08-30 Stefan Monnier <monnier@cs.yale.edu>
5779
5780 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
5781
5782 * regex.c: Merge some changes from GNU libc. Add prototypes.
5783 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
5784 Use memcmp and memcpy instead of bcopy and bcmp.
5785 (init_syntax_once): Use ISALNUM.
5786 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
5787 (REG_UNSET_VALUE): Remove. Use NULL instead.
5788 (REG_UNSET, re_match_2_internal): Use NULL.
5789 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
5790 New macros.
5791 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
5792 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
5793 (regex_compile): In handle_interval, return an error rather than try to
5794 unfetch the interval if we can't find the closing brace.
5795 Obey the RE_NO_GNU_OPS syntax bit.
5796 (TOLOWER): New macro.
5797 (regcomp): Use it.
5798 (regexec): Allocate regs.start and regs.end as one block.
5799
5226a931
GM
58002000-08-30 Gerd Moellmann <gerd@gnu.org>
5801
868dd24b
GM
5802 * xdisp.c (echo_area_display): Check display_completed instead
5803 of calling detect_input_pending.
5804
5805 * dispnew.c (update_frame): Only set display_completed here; move
5806 the update_begin and update_end calls here from update_frame_1.
5807 (update_frame_1): Don't set display_completed here, don't call
5808 update_begin/update_end.
5809
5226a931
GM
5810 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
5811 instead of store_frame_param.
5812
2a8bd25f
GM
58132000-08-29 Gerd Moellmann <gerd@gnu.org>
5814
5815 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
5816 desired window matrix hasn't been displayed, use the current row
5817 instead. Make sure that only those frame rows are updated for
5818 which there exists a corresponding enabled desired row.
52283633 5819
ba3478d9
MB
58202000-08-29 Miles Bader <miles@gnu.org>
5821
5822 * xfaces.c (default_face_vector): New function.
5823 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
5824
87d0f685
GM
58252000-08-29 Gerd Moellmann <gerd@gnu.org>
5826
5827 * lread.c (openp): Prevent temporary string passed to
5828 Ffile_readable_p from being garbage collected.
5829
6fa86045
DL
58302000-08-28 Dave Love <fx@gnu.org>
5831
5832 * keymap.c (store_in_keymap): Add `static' to declaration.
5833
bb17930d
GM
58342000-08-28 Gerd Moellmann <gerd@gnu.org>
5835
5836 * emacs.c, callint.c, doc.c, editfns.c
5837 (toplevel) [HAVE_STRING_H]: Include string.h.
5838 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
5839 (index): Remove prototypes which might conflict with non-standard
5840 definitions of index/strchr.
5841
5842 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
5843 (rindex): Define only if !HAVE_RINDEX.
5844
5845 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
5846
5847 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
5848
87188200
MB
58492000-08-28 Miles Bader <miles@gnu.org>
5850
5851 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
5852 made inconsistent by a font-related attribute in FROM.
5853 (merge_face_inheritance): Add function comment.
5854
41a68aef
KH
58552000-08-28 Kenichi Handa <handa@etl.go.jp>
5856
5857 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
5858 the 4th arg (PREV_EVENT) Qt to suppress input method.
5859
f7c436c1
SM
58602000-08-27 Stefan Monnier <monnier@cs.yale.edu>
5861
0b32bf0e
SM
5862 * regex.c: Indent cpp directives and remove parens after `defined'.
5863 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
5864 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
5865 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
5866 (re_compile_pattern): Use size_t for length.
5867 (init_syntax_once): Move to a better place.
5868 * regex.h: Merge changes from GNU libc. Indent cpp directives.
5869 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
5870
f7c436c1
SM
5871 * syntax.c (back_comment): Detect cases where a comment-starter is
5872 actually inside another comment as in: /* a // b */ c // d \n.
5873 Make it clear that `comstart_pos' is unused for nested comments.
5874
5875 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
5876 (KEYMAPP): New macro.
5877 (Fkeymap_parent, Fset_keymap_parent): Use it.
5878 (fix_submap_inheritance): Mark it static.
5879 (define_as_prefix, describe_buffer_bindings, describe_command)
5880 (describe_translation, describe_map): Complete prototypes.
5881
5882 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
5883
5884 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
5885 to better match the key-lookup behavior.
5886
6288c62f
GM
58872000-08-27 Gerd Moellmann <gerd@gnu.org>
5888
5889 * xfaces.c (lface_fully_specified_p): Handle :inherit.
5890 (Finternal_set_lisp_face_attribute): Fix typo in error message.
5891
e931344e
EZ
58922000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
5893
5894 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
5895 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
5896 (xterm.o): Depend on coding.h
5897
d10dfeef
KH
58982000-08-26 Kenichi Handa <handa@etl.go.jp>
5899
5900 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
5901 the corresponding '#endif'.
5902
2d73e8d3
MB
59032000-08-26 Miles Bader <miles@gnu.org>
5904
5905 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
5906 * xfaces.c (QCinherit): New variable.
5907 (syms_of_xfaces): Initialize it.
5908 (LFACE_INHERIT): New macro.
5909 (Finternal_get_lisp_face_attribute)
52283633 5910 (merge_face_vector_with_property)
2d73e8d3
MB
5911 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
5912 (check_lface_attrs): Allow new types of face height. Check
5913 inherit attribute.
5914 (CYCLE_CHECK): New macro.
5915 (merge_face_inheritance): New function.
5916 (merge_face_vectors): Merge inherited faces too. Add F and
5917 CYCLE_CHECK arguments.
5918 (merge_face_vector_with_property, Finternal_merge_in_global_face)
5919 (lookup_named_face, lookup_derived_face, realize_named_face)
5920 (face_at_string_position, face_at_buffer_position): Supply
5921 new F and CYCLE_CHECK arguments to merge_face_vectors.
5922 (merge_face_heights): New function.
52283633 5923 (merge_face_vectors, merge_face_vector_with_property)
2d73e8d3
MB
5924 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
5925 handle relative face heights.
5926 (lface_same_font_attributes_p): Compare heights using EQ.
5927
6ce974d4
KH
59282000-08-26 Kenichi Handa <handa@etl.go.jp>
5929
5930 * charset.c (char_to_string): Check the character validity.
52283633 5931 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
6ce974d4 5932
dc1e502d
SM
59332000-08-25 Stefan Monnier <monnier@cs.yale.edu>
5934
5935 * regex.c (PUSH_FAILURE_COUNT): New macro.
5936 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
5937 Handle popping of a register's or a counter's data.
5938 (POP_FAILURE_POINT): Use the new name.
5939 (re_match_2_internal): Push counter data on the stack for succeed_n,
5940 jump_n and set_number_at and remove misleading dead code in succeed_n.
5941
bd9d0f3f
GM
59422000-08-25 Gerd Moellmann <gerd@gnu.org>
5943
5944 * xdisp.c (redisplay_internal): If considering all windows on all
5945 frames, update the display for each frame as soon as possible,
5946 instead of first building all desired matrices for all frames, and
5947 then updating them all.
5948 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
5949
aa5b8e15
GM
59502000-08-24 Gerd Moellmann <gerd@gnu.org>
5951
17494071
GM
5952 * bytecode.c (mark_byte_stack): Add a comment.
5953
52283633
SM
5954 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
5955 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
aa5b8e15
GM
5956 a graphical frame.
5957
c543db81
KH
59582000-08-24 Kenichi Handa <handa@etl.go.jp>
5959
d246d5f5
KH
5960 * minibuf.c (do_completion): Always use compare-string, not
5961 string-equal because the latter doesn't pay attention to
5962 multibyteness of strings.
5963
c543db81
KH
5964 * process.c (create_process): Don't setup raw-text coding here.
5965 (Fopen_network_stream): Don't set coding->src_multibyte and
5966 coding->dst_multibyte here.
5967 (read_process_output): For process filter, return unibyte string
5968 if default-enable-multibyte-characters is nil.
5969 (send_process): If OBJECT is multibyte text, be sure to encoded it
5970 by the specified coding system for the process. Otherwise, setup
5971 raw-text coding.
52283633 5972 (init_process): Don't initialize default-process-coding-system here.
c543db81 5973
9b47cfe0
EZ
59742000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
5975
5976 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
5977 <scroll-down-aggressively>: Likewise.
5978
f5a36960
KH
59792000-08-23 Kenichi Handa <handa@etl.go.jp>
5980
5981 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
5982 zero. Set coding->produced_char correctly.
5983
69a7ffa7
AI
59842000-08-22 Andrew Innes <andrewi@gnu.org>
5985
5986 * makefile.w32-in: New file.
5987
5988 * unexw32.c (unexec): Ignore old_name, and use the actual location
5989 of the current executable instead. Base new_name on this.
5990
5991 * w32proc.c (create_child): Remove reference to security
5992 descriptor, which isn't needed and doesn't compile with mingw32.
5993
5994 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5995 up dllimport attributes.
5996 (x_update_window_end): Update prototype.
5997
5998 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
5999 extern, which screws up dllimport attributes.
6000
6001 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6002 up dllimport attributes.
6003
6004 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
6005 screws up dllimport attributes.
6006
6007 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6008 up dllimport attributes.
6009 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
6010 screws up dllimport attributes.
6011
6012 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6013 up dllimport attributes.
6014
6015 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
6016 screws up dllimport attributes.
6017
6018 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
6019 screws up dllimport attributes.
6020
6021 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6022 up dllimport attributes.
6023
6024 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
6025 unnecessary extern, which screws up dllimport attributes.
6026 (main): Ditto.
6027
6028 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6029 up dllimport attributes.
6030
6031 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
6032 unnecessary extern, which screws up dllimport attributes.
6033
6034 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
6035 screws up dllimport attributes.
6036
6037 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6038 up dllimport attributes.
6039
6040 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
6041
52283633
SM
6042 * w32bdf.c (search_file_line):
6043 (set_bdf_font_info):
6044 (seek_char):
6045 (w32_get_bdf_glyph):
69a7ffa7
AI
6046 (w32_BDF_to_x_font): Fix compile warnings.
6047
52283633 6048 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
69a7ffa7
AI
6049
6050 * w32select.c: Include keyboard.h before frame.h.
6051
6052 * w32fns.c (max): Define macro.
6053 (JOHAB_CHARSET): Define if not known.
6054 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
6055 (Fx_show_tip): Synch with X version.
6056
6057 * w32xfns.c: Include keyboard.h before frame.h.
6058
6059 * w32fns.c: Include keyboard.h before frame.h.
6060
6061 * w32term.c: Include keyboard.h before frame.h.
6062
6063 * fontset.c: Include keyboard.h before frame.h.
6064
6065 * w32inevt.c: Include keyboard.h before frame.h.
6066 (MOUSE_MOVED): Define if not known.
6067
6068 * minibuf.c: Include keyboard.h before frame.h.
6069
6070 * keyboard.c: Include keyboard.h before frame.h.
6071
6072 * indent.c: Include keyboard.h before frame.h.
6073
6074 * dispnew.c: Include keyboard.h before frame.h.
6075
6076 * buffer.c: Include keyboard.h before frame.h.
6077
6078 * alloc.c: Include keyboard.h before frame.h.
6079
6080 * print.c: Include keyboard.h before frame.h.
6081
6082 * process.c: Include keyboard.h before frame.h.
6083
6084 * scroll.c: Include keyboard.h before frame.h.
6085
6086 * sysdep.c: Include keyboard.h before frame.h.
6087
6088 * term.c: Include keyboard.h before frame.h.
6089
6090 * window.c: Include keyboard.h before frame.h.
6091
6092 * xdisp.c: Include keyboard.h before frame.h.
6093 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
6094
6095 * frame.c: Include keyboard.h before frame.h.
6096
6097 * w32heap.h: Undefine min, max.
6098
6099 * w32gui.h: Undefine min, max.
6100
6101 * unexw32.c: Change PUCHAR to PCHAR.
6102 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
52283633
SM
6103 (relocate_offset):
6104 (get_section_info):
69a7ffa7
AI
6105 (copy_executable_and_dump_data): Remove unnecessary static defs.
6106 (copy_executable_and_dump_data): Fix compile warnings.
6107
6108 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
6109
6110 * w32console.c (min): Define macro.
6111 (clear_frame, write_glyphs): Fix compile warning.
6112
52283633 6113 * w32proc.c (compare_env):
69a7ffa7
AI
6114 (find_child_console): Fix compile warning.
6115
6116 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
6117 sys_errlist instead of _sys_errlist.
6118 (get_emacs_configuration_options): New function.
6119
6120 * s/ms-w32.h (sys_nerr): Provide default definition.
6121 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
6122 name with _ prepended.
6123 (NSIG): Define if not known.
6124 (get_emacs_configuration): Provide extern declaration.
6125 (get_emacs_configuration_options): Provide extern declaration.
6126 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
6127
6128 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
52283633 6129 (map_w32_filename):
69a7ffa7
AI
6130 (read_unc_volume): Fix compile warning.
6131
6132 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
6133 definitions from being used.
6134
6135 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
6136
52283633 6137 * w32.c (unc_volume_file_attributes):
69a7ffa7
AI
6138 (open_unc_volume): Make arg const.
6139
6140 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
6141 (read_input_waiting): Remove excess parameter.
6142
6143 * w32.c (init_environment): Call _access.
6144 (check_windows_init_file): Call _close.
6145 (init_user_info): Call _putenv.
6146 (init_environment): Call _putenv and _strdup.
6147 (init_ntproc): Reset volume info cache on startup.
6148
6149 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
6150 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
6151 cannot override the CRT malloc.
6152
6153 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
6154 (LINK_FLAGS): Append to original value of LINK_FLAGS.
6155
6156 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
6157 unless we are linking with a static CRT.
6158 (RVA_TO_PTR): Cast result to unsigned char*.
6159
6160 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
6161 (add_volume_info): Use xstrdup.
6162
25060080
SM
61632000-08-22 Stefan Monnier <monnier@cs.yale.edu>
6164
6165 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
6166 (do_completion, Fminibuffer_complete_word): Use it.
6167 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
6168 var so it can take non-boolean values.
6169
6917e6bb
GM
61702000-08-21 Gerd Moellmann <gerd@gnu.org>
6171
acb7cc89 6172 * editfns.c (find_field): Formatting changes.
52283633 6173 (toplevel): Some old-style function forward declarations
acb7cc89
GM
6174 changed to prototypes, some new protypes added, some functions
6175 made static.
6176
6177 * lisp.h (set_time_zone_rule): Add prototype.
6178 (use_dialog_box): External declaration.
6179
0bbfdc25
GM
6180 * keyboard.c (gen_help_event): Add parameter SIZE.
6181 (kbd_buffer_events_waiting): Slightly rewritten.
6182 (clear_event): New function.
6183 (kbd_buffer_get_event): Use it, and clear the input_events of
6184 HELP_EVENTs.
6185 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
6186 don't fill the newly created array with nils.
6187 (toplevel): Convert some old-style function forward declarations
6188 to prototypes.
6189
6190 * keyboard.h (gen_help_event): Change prototype.
6191
6192 * xterm.c (XTread_socket): Change calls to gen_help_event.
6193
6194 * w32term.c (w32_read_socket): Change calls to gen_help_event.
6195
6917e6bb
GM
6196 * eval.c (Fmacroexpand): Doc fix.
6197
e5cd3d11
JR
61982000-08-20 Jason Rumney <jasonr@gnu.org>
6199
6200 * w32term.h (x_display_info_for_display): Remove as this function
6201 does not exist on W32.
6202
6203 * w32term.c (help_echo_window): New variable.
6204 (syms_of_w32term): staticpro it.
6205 (note_mode_line_highlight): Set it.
6206 (XTextExtents16): Removed as there is no equivalent on W32.
6207 (x_compute_glyph_string_overhangs): Incomplete body removed, as
6208 the X way of doing this will not work for W32.
6209 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
6210 (x_draw_image_foreground): Avoid drawing outside of the clip area
6211 when image doesn't have a mask.
6212 (note_mouse_highlight): Process overlays in the right order of
6213 priority. Set help_echo_window.
6214 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
6215 because that's more visible for large images.
6216
6217 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
6218 name to single_keymap_panes.
6219 (w32_menu_show): Set wv->title when dealing with titles.
6220 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
6221
6e69ab8c
MB
62222000-08-21 Miles Bader <miles@gnu.org>
6223
6224 * minibuf.c (do_completion): Try again if we rewrite the input
6225 string, but no completion was done, so that any completion message
6226 will be correct.
6227
511bd4eb
GM
62282000-08-20 Gerd Moellmann <gerd@gnu.org>
6229
6230 * xfaces.c (lface_equal_p): Compare strings differently.
6231 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
6232 (realize_tty_face): Use them.
6233 (syms_of_xfaces): Initialize new variables.
6234 (map_tty_color): New function, extracted from realize_tty_face.
6235 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
6236 foreground or background color, store the new color name in the
6237 realized face; previous code trying to do this had no effect.
6238 (realize_tty_face): Use map_tty_color.
6239 (Fclear_face_cache): Set face_change_count and ensure thorough
6240 redisplay.
6241
1433385f
GM
62422000-08-19 Gerd Moellmann <gerd@gnu.org>
6243
511bd4eb
GM
6244 * undo.c (record_first_change, record_marker_adjustment): Don't
6245 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 6246
419ac0a2
KH
62472000-08-18 Kenichi Handa <handa@etl.go.jp>
6248
6249 * coding.c (decode_coding_string): Set members consumed,
6250 consumed_char, produced, produced_char of *coding correctly. If
6251 decode_coding doesn't consume any byte, don't try anymore.
6252 (encode_coding_string): Likewise.
6253
7eb9e30d
GM
62542000-08-18 Gerd Moellmann <gerd@gnu.org>
6255
511bd4eb
GM
6256 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
6257 conditional have void type, for Standard C compilers.
7eb9e30d
GM
6258
6259 * xdisp.c (redisplay_internal): Compare windows for equality with
6260 EQ, instead of applying XWINDOW to something that might not
6261 be a window.
52283633 6262
dd34a735
KH
62632000-08-18 Kenichi Handa <handa@etl.go.jp>
6264
6265 * fontset.c (Finternal_char_font): Search only the selected frame
6266 for a window of the current buffer.
6267
385ff9e3
GM
62682000-08-18 Gerd Moellmann <gerd@gnu.org>
6269
511bd4eb 6270 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
6271 Lisp_Objects.
6272
385ff9e3
GM
6273 * keyboard.c (kbd_buffer_get_event): Handle the case that the
6274 second half of a HELP_EVENT is found at the start of kbd_buffer.
6275
d6abb4c7
MB
62762000-08-18 Miles Bader <miles@gnu.org>
6277
4618074a
MB
6278 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
6279
d6abb4c7
MB
6280 * editfns.c (save_restriction_save): Rewrite to use markers.
6281 (save_restriction_restore): Rewrite to understand new form of data
6282 saved by save_restriction_save.
6283 (Fsave_restriction): Remove cautionary note in doc-string.
6284
a7b28523
GM
62852000-08-17 Gerd Moellmann <gerd@gnu.org>
6286
6287 * fileio.c (build_annotations): Add a comment explaining the
6288 return value of format-annotate-function. Replace a spurious call
6289 to Flength with a CONSP test. Call format-annotate-function with
6290 a fifth arg specifying how many times the function is been called
6291 in a row, to let it choose temporary buffers appropriately.
6292
03c9ed77
DL
62932000-08-17 Dave Love <fx@gnu.org>
6294
6295 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
6296 declare make_temp_name twice.
6297
52283633 6298 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
03c9ed77
DL
6299 (unreadpure): Give it an arg.
6300
6301 * unexalpha.c: Prototype fatal_unexec, mark_x,
6302 update_dynamic_symbols. Declare unexec as void.
6303
6304 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
6305 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
6306
6307 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
52283633 6308 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
03c9ed77
DL
6309
6310 * alloca.c: Use #error.
6311 [POINTER_TYPE]: Use it.
6312
6313 * eval.c (Fdefvar): Doc fix.
6314
6315 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
6316 INITIALIZE_INTERVAL.
6317
6318 * buffer.h: Avoid DECLARE_INTERVALS.
6319
6320 * config.in: Add size_t.
6321
aae41d97
EZ
63222000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
6323
6324 * w16select.c (set_clipboard_data): If there's not enough memory
6325 to put text into clipboard, return 1, as Fw16_set_clipboard_data
6326 expects. In case of other failures, return 3.
6327 (system_error_msg): New error message.
6328 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
6329 system_error_msg.
6330
65aa5e85
GM
63312000-08-16 Gerd Moellmann <gerd@gnu.org>
6332
6333 * term.c (write_glyphs): Also turn off inverse video after turning
6334 off other appearances in case TS_exit_attribute_mode is not equal
6335 to TS_end_standout_mode.
6336 (insert_glyphs): Turn inverse video on/off for each run of glyphs
6337 with the same face.
6338 (turn_off_face): Reset standout_mode only if
6339 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
6340 is equal to TS_end_standout_mode.
6341
ece23901
KH
63422000-08-16 Kenichi Handa <handa@etl.go.jp>
6343
9d7bcb2e
KH
6344 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
6345 sequence at the end of the source block.
6346
ece23901
KH
6347 * ccl.c (Fccl_program_p): Docstring modified.
6348 (Fccl_execute): Likewise.
6349 (Fccl_execute_on_string): Likewise.
6350
5e30eaa2
EZ
63512000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
6352
6353 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
6354
290602fd
KH
63552000-08-16 Kenichi Handa <handa@etl.go.jp>
6356
6357 The following changes are mainly to fix bugs of
6358 encode/decode-coding-string failing if encoding/decoding return
6359 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
6360 variable conversion_buffer.
6361
6362 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
6363 decrement dst_end to avoid buffer overflow in the later call of
6364 string_as_multibyte
6365
6366 * coding.h (conversion_buffer_size, conversion_buffer)
6367 (get_conversion_buffer): Extern deleted.
6368
6369 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
6370 (conversion_buffer, conversion_buffer_size): Variables deleted.
6371 (get_conversion_buffer): Function deleted.
6372 (struct conversion_buffer): New structure.
6373 (MAX_ALLOCA): New macro.
6374 (allocate_conversion_buffer): New macro.
6375 (extend_conversion_buffer, free_conversion_buffer): New functions.
6376 (ccl_coding_driver): Set coding->result.
6377 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
6378 this is the last block of source.
6379 (encode_coding): Likewise. Handle the source block as the last
6380 one only when the whole source text is consumed.
6381 (decode_coding_string): Handle the case that the output buffer is
6382 too small to decode the whole source text. Use
6383 allocate_conversion_buffer, extend_conversion_buffer and
6384 free_conversion_buffer, not get_conversion_buffer.
6385 (encode_coding_string): Likewise.
6386 (init_coding): Function deleted.
52283633 6387 (init_coding_once): Delete code to initialize conversion_buffer_size.
290602fd
KH
6388
6389 * emacs.c (main): Don't call init_coding.
6390
52283633 6391 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
290602fd
KH
6392
6393 * term.c (write_glyphs): Use a locally declared conversion_buffer.
6394 (insert_glyphs): Likewise.
6395
6396 * w32console.c (write_glyphs): Use a locally declared
6397 conversion_buffer.
6398
b9f80d41
EZ
63992000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
6400
6401 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
6402 member of display_info is NULL.
6403
32dc52f7
GM
64042000-08-15 Gerd Moellmann <gerd@gnu.org>
6405
52283633 6406 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
58ed0d3b 6407
32dc52f7 6408 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 6409 appearances with capability `me'.
32dc52f7
GM
6410 (write_glyphs): Switch on inverse video before each face change.
6411
4eb22d33
DL
64122000-08-14 Dave Love <fx@gnu.org>
6413
6414 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
6415 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
6416 (lisp_free): Declare and make static.
6417
6418 * window.c: Fix embedded comment.
6419 (syms_of_window): Fix doc string.
6420
90cbf47e
GM
64212000-08-14 Gerd Moellmann <gerd@gnu.org>
6422
52283633 6423 * keymap.c (push_key_description): If C without modifiers is < 32,
90cbf47e
GM
6424 make sure to print `C-' before `M-', like in the manual.
6425
440fc135
GM
64262000-08-11 Gerd Moellmann <gerd@gnu.org>
6427
6428 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
6429 since they aren't relocated anymore.
52283633 6430 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
440fc135
GM
6431
6432 * xdisp.c (try_cursor_movement): Fix handling of cursor in
52283633 6433 partially visible line which is smaller than the window's height.
440fc135 6434
6e264fad
KH
64352000-08-11 Kenichi Handa <handa@etl.go.jp>
6436
6437 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
52283633 6438 the multibyte form of eight-bit-control characters.
6e264fad
KH
6439 (Fccl_execute_on_string): Initialize ccl->multibyte.
6440
6441 * ccl.h (struct ccl_program): New member multibyte.
6442
6443 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
6444
c371f69a
KH
64452000-08-11 Kenichi Handa <handa@etl.go.jp>
6446
6447 * regex.c (regex_compile) <normal_char>: Pay attention to
6448 multibyteness.
6449 (analyse_first) <exactn>: Setup fastmap correctly for
6450 eight-bit-control characters.
6451
64522000-08-11 Kenichi Handa <handa@etl.go.jp>
6453
52283633 6454 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
c371f69a
KH
6455
6456 * keyboard.c (make_lispy_event): Handle the new event type
6457 multibyte_char_keystroke.
6458
6459 * xterm.c: Include coding.h.
6460 (XTread_socket): Work around a bug of XmbLookupString. If the
6461 input is from XIM, decode it according to the current locale. In
6462 that case, generate multibyte_char_keystroke events.
6463
b8ddbe71
KH
64642000-08-11 Kenichi Handa <handa@etl.go.jp>
6465
6466 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
6467 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
6468
47589c8c
GM
64692000-08-10 Gerd Moellmann <gerd@gnu.org>
6470
6471 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
6472 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
6473 (move_it_in_display_line_to): Record iterator's ascent and descent
6474 before producing glyphs, and restore them when we know the glyph
6475 doesn't fit on the line.
6476 (move_it_to): Restructured so that it's easier to debug. If
6477 moving to a vpos, and not moving to an x or character position,
6478 stop as soon as the specified vpos is reached; don't move further
6479 into that line because that might change the computed line height.
6480 (try_cursor_movement): New function, extracted from the cursor
6481 movement branch of redisplay_window. If ending on a partially
6482 visible line, don't try to scroll if the cursor line is taller
6483 than the window.
6484 (redisplay_window): Use try_cursor_movement.
6485
6486 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
6487 because that function doesn't cope with variable-height lines.
6488
6489 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
6490 box cursor because that's better visible for large images.
52283633 6491
c51bacd6
MB
64922000-08-10 Miles Bader <miles@gnu.org>
6493
6494 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
6495
bea56df7
GM
64962000-08-10 Gerd Moellmann <gerd@gnu.org>
6497
6498 * xdisp.c (Vmessages_buffer_name): New variable.
6499 (message_dolog): Use it.
6500 (syms_of_xdisp): Initialize it.
6501
99cd7364
EZ
65022000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
6503
52283633 6504 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
99cd7364
EZ
6505 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
6506 redundant now that keyboard.h is included.
6507
7d093d56
EZ
65082000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
6509
6510 * keyboard.c (kbd_buffer_events_waiting): New function.
6511
6512 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
6513
6514 * msdos.c: Include keyboard.h.
6515 (XMenuActivate): Empty no_event events from the event buffer. If
6516 no events are left after that, call clear_input_pending.
6517 (mouse_clear_clicks): New function, code moved from mouse_init.
6518 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
6519 mouse driver to ``forget'' any past clicks.
6520
6521 * Makefile.in (msdos.o): Depend on keyboard.h.
6522
41e757a6
GM
65232000-08-09 Gerd Moellmann <gerd@gnu.org>
6524
8e7bd231
GM
6525 * lisp.h (input_pending): External declaration.
6526
6527 * dispextern.h (Qredisplay_dont_pause): Declare extern.
52283633 6528
8e7bd231
GM
6529 * xdisp.c (echo_area_display): Display thoroughly if input is
6530 pending. Bind redisplay-dont-pause to t during the redisplay.
6531 in case input is pending.
6532
6533 * dispnew.c (Qredisplay_dont_pause): New variable.
6534 (syms_of_display): Initialize and staticpro it.
6535 (update_frame_1): Don't interrupt the display for pending input if
6536 redisplay_dont_pause is set.
52283633 6537
43028b7e
GM
6538 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
6539
41e757a6
GM
6540 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
6541
2f2174fa
KH
65422000-08-09 Miles Bader <miles@lsi.nec.co.jp>
6543
6544 * callproc.c (Fcall_process): Terminate the unwind-protect around
6545 the post-read-conversion of coding system.
6546
0a6fd67e
MB
6547 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
6548 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
6549 * buffer.h (overlays_at): Update prototype.
6550 * xdisp.c (next_overlay_change): Update call to overlays_at.
6551 * xfaces.c (face_at_buffer_position): Likewise.
6552 * textprop.c (Fget_char_property): Likewise.
6553 * xterm.c (note_mouse_highlight): Likewise.
6554
0c80756e
MB
6555 * minibuf.c (do_completion): Don't consider a simple change of
6556 case as `completion'.
6557
975f250a
KR
65582000-08-08 Ken Raeburn <raeburn@gnu.org>
6559
52283633 6560 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
b347b3fd
KR
6561 * undo.c (record_delete): Make sure last_point_position_buffer is
6562 a buffer before comparing pointers.
6563
6564 * coding.h (decode_coding_string): Declare.
6565
6566 * intervals.h (Fprevious_single_char_property_change): Declare.
6567
6568 * textprop.c (Fprevious_single_char_property_change): Don't do
6569 arithmetic directly on lisp objects.
6570
52283633 6571 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
b347b3fd
KR
6572
6573 * keyboard.h (menu_item_eval_property): Declare.
6574
6575 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
6576 reuse as buffer name, instead of recreating (and discarding) every
6577 time a message is logged.
6578 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
6579 (current_message_1, truncate_message_1, set_message_1)
6580 (display_echo_area_1, resize_mini_window_1): Signatures changed.
6581 (current_message, truncate_echo_area, display_echo_area)
6582 (resize_echo_area_axactly): Changed calls.
b347b3fd 6583
975f250a 6584 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 6585 Lisp object.
975f250a 6586 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 6587 must be an integer, not a Lisp object.
975f250a 6588
46dc9912
KH
65892000-08-08 Kenichi Handa <handa@etl.go.jp>
6590
6591 * charset.c (Fchar_width): Doc fix.
6592
9f6d1a6c
GM
65932000-08-08 Gerd Moellmann <gerd@gnu.org>
6594
6595 * charset.c (Fstring_width): Doc fix.
6596
ff3d9573
GM
65972000-08-07 Gerd Moellmann <gerd@gnu.org>
6598
41e757a6 6599 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
6600 line, clear ascent and descent members of the iterator structure;
6601 the height of the continued line does not affect the height of the
6602 continuation line.
6603 (make_cursor_line_fully_visible): Do nothing if cursor is on a
6604 line taller than the window.
6605 (redisplay_window) <forced window start>: Handle case that the
6606 middle of the window is not found in any row.
6607 (dump_glyph_row): Show more information.
6608 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
6609 first text line in a glyph matrix.
6610
6611 * xterm.c (x_draw_image_foreground): Avoid drawing outside
6612 of the clip area when image doesn't have a mask.
6613
70fc58b3
GM
6614 * fns.c (sweep_weak_table): Fix survival conditions for
6615 key-or-value and key-and-value weakness.
6616
6617 * .gdbinit (xhashtable): New command.
6618
ac0e96ee
GM
6619 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
6620 tables out of the list of all weak hash tables.
6621
ff3d9573
GM
6622 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
6623 a new buffer is created, make sure echo_area_buffer[] references
6624 the new buffer.
6625
e0d8827b
EZ
66262000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
6627
6628 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
6629 the doc string.
6630
c6f35378
KH
66312000-08-07 Kenichi Handa <handa@etl.go.jp>
6632
6633 * syntax.c (skip_chars): Fix previous change. Make the handling
6634 of unibyte string consistent with that of regex search.
6635
1fd4c450
GM
66362000-08-05 Gerd Moellmann <gerd@gnu.org>
6637
e49aa397
GM
6638 * xmenu.c (popup_get_selection): Use xfree instead of free.
6639
6640 * fileio.c (Finsert_file_contents): Use xfree instead of free.
6641
6642 * editfns.c (Ftranspose_regions): Use xfree instead of free.
6643
6644 * callproc.c (child_setup): Use xfree instead of free.
6645
6646 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
6647 instead of malloc.
6648 (run_mac_command, closedir): Use `xfree' instead of `free'.
6649
6650 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
6651
6652 * eval.c (error): Use xfree instead of free.
6653
1fd4c450
GM
6654 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
6655
6656 * fns.c: Replace `illegal' with `invalid'.
e49aa397 6657 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 6658
82d497fc
KH
66592000-08-05 Kenichi Handa <handa@etl.go.jp>
6660
6661 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
6662 conversion.
6663
59f953a2
NF
66642000-08-04 Noah Friedman <friedman@splode.com>
6665
6666 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
6667 docstring.
6668
688351f2
GM
66692000-08-04 Gerd Moellmann <gerd@gnu.org>
6670
6671 * syntax.c (skip_chars): Fix typo in error message.
6672
2dad51cc
AS
66732000-08-04 Andreas Schwab <schwab@suse.de>
6674
6675 * m/ia64.h: Moved from s/ia64.h.
6676
99bb2c60
KH
66772000-08-04 Kenichi Handa <handa@etl.go.jp>
6678
082a1df2
KH
6679 * process.c (read_process_output): Big simplification. Handle
6680 composition and post-read-conversion of coding system correctly.
6681 (send_process): Handle composition correctly.
6682
6683 * callproc.c (Fcall_process): Handle post-read-conversion of
6684 coding system if any.
6685
99bb2c60
KH
6686 * coding.c (decode_coding_iso2022): More strict check for handling
6687 single shifting.
082a1df2
KH
6688 (coding_restore_composition): Pay attention to the case that
6689 cmp_data is not set properly (because of invalid code in the
6690 source text).
6691 (run_pre_post_conversion_on_str): Include text properties in the
6692 resulting string.
6693 (decode_coding_string): Set members of coding correctly.
99bb2c60 6694
f4988be7
GM
66952000-08-03 Gerd Moellmann <gerd@gnu.org>
6696
6697 * s/ia64.h: New file.
6698
6699 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
6700 Use NULL instead of 0 at the end of variable argument list of
6701 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
6702 sizeof (int) < sizeof (void *).
6703
6704 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
6705 of variable argument lists of XtVaGetValues and XtVaSetValues.
6706
6707 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
6708 variable argument lists of XtVaGetValues and XtVaSetValues.
6709
ead53494
GM
67102000-08-02 Gerd Moellmann <gerd@gnu.org>
6711
6712 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
6713 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
6714
6715 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
6716 prototype.
6717
6718 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
6719 in call to Fsingle_key_description.
6720
6721 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
6722 Callers changed.
6723
67242000-08-02 Colin Walters <walters@cis.ohio-state.edu>
6725
6726 * window.c (display_buffer_reuse_frames): New variable.
6727 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
6728 frames displaying BUFFER.
52283633 6729 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
ead53494 6730
10b0f752
MB
67312000-08-01 Miles Bader <miles@gnu.org>
6732
6733 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
6734 when to constrain NEW_POS (they were pretty screwed up before).
6735
16425c4a
EZ
67362000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
6737
6738 * msdos.c (run_msdos_command): Save and restore the master
6739 environment, for the case that child_setup signals an error.
6740 When mirroring slashes in DOS shell commands, don't fail when
6741 argv[2] has embedded blanks.
da288c14
EZ
6742 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
6743 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
6744 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
6745
6746 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
6747 using alloca; free it after run_msdos_command returns.
6748
27f73852
DL
67492000-07-27 Dave Love <fx@gnu.org>
6750
52283633
SM
6751 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
6752 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
27f73852
DL
6753
6754 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
6755
c0261b5e
EZ
67562000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
6757
6758 * editfns.c (lisp_time_argument): Fix last change.
6759
b548072f
GM
67602000-07-27 Gerd Moellmann <gerd@gnu.org>
6761
3ab82477
GM
6762 * fns.c (Fdelete): Make it work on vectors and strings in addition
6763 to lists.
6764
b548072f
GM
6765 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
6766 (syms_of_fns): Initialize new variables.
52283633 6767 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
b548072f
GM
6768 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
6769 weakness, with t meaning the same as `key-and-value'.
6770
91ae8751
KH
67712000-07-27 Kenichi Handa <handa@etl.go.jp>
6772
6773 * coding.h (struct coding_system): Member safe_charset deleted.
6774
6775 * coding.c (Qsafe_charsets): This variable deleted.
52283633
SM
6776 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
6777 New variables.
91ae8751
KH
6778 (coding_safe_chars): New function.
6779 (CODING_SAFE_CHAR_P): New macro.
6780 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
52283633 6781 checking safe_charsets member of the coding system. Caller changed.
91ae8751
KH
6782 (detect_coding_iso2022): New local variable safe_chars.
6783 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
6784 safe_charsets member of the coding system.
6785 (decode_coding_iso2022): New local variable safe_chars.
6786 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
6787 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
6788 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
6789 (ENCODE_UNSAFE_CHARACTER): New macro.
6790 (encode_coding_iso2022): New local variable safe_chars. Check
6791 unsafe chars.
6792 (setup_coding_system): Delete the code to initialize
6793 coding->safe_charses
6794 (intersection, find_safe_codings): New functions.
6795 (Ffind_coding_systems_region_internal): New function.
6796 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
6797 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
6798 variable and initialize it.
6799
6800 * fns.c (char_table_ref_and_index): New function.
6801
6802 * lisp.h (char_table_ref_and_index): Add prototype.
6803
34a7a267
SS
68042000-07-26 Sam Steingold <sds@gnu.org>
6805
6806 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 6807 (Ffloat_time): New built-in Lisp function.
34a7a267 6808
a95cb10a
GM
68092000-07-26 Gerd Moellmann <gerd@gnu.org>
6810
3353ef5a
GM
6811 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
6812 for the character code.
6813
6814 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
6815 GNU/Linux.
6816
a95cb10a
GM
6817 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
6818 if called for a popup menu.
6819 (xmenu_show): Store help string in widget values.
6820
b4a12321
DL
68212000-07-26 Dave Love <fx@gnu.org>
6822
6823 * syswait.h: Move some definitions.
6824 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
6825 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
6826 perspicuous definitions.
6827 (WTERMSIG): Fix bit pattern used.
6828
13f5ad37
KH
68292000-07-26 Kenichi Handa <handa@etl.go.jp>
6830
6831 * print.c (print_object): If vector printing is truncated, print
6832 "..." to indicate it as well as the case of list printing.
6833
070fe99c
GM
68342000-07-25 Gerd Moellmann <gerd@gnu.org>
6835
969065c3
GM
6836 * xdisp.c (next_element_from_display_vector): Improve comments.
6837
6838 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
6839 for the character code, and the rest for the face id as in 20.x.
6840 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
6841
6842 * window.c (window_display_table): Cleaned up.
6843
070fe99c
GM
6844 * syntax.c (Fforward_word): Add last arg nil in call of
6845 Fconstrain_to_field.
6846
bad77ef7
EZ
68472000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
6848
969065c3 6849 * fileio.c (Frename_file) [DOS_NT]: If the file names are
52283633
SM
6850 identical but for the letter-case, don't call
6851 barf_or_query_if_file_exists.
bad77ef7 6852
c28da489
MB
68532000-07-25 Miles Bader <miles@gnu.org>
6854
6855 * editfns.c (find_field): Honor special `boundary' fields.
6856 (Qboundary): New variables.
6857 (syms_of_editfns): Initialize Qboundary.
6858 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
6859 Use scan_buffer instead of find_before_next_newline, because it
6860 allows us to detect the boundary case where there's a newline at
6861 the search limit.
6862 * lisp.h (Fconstrain_to_field): Update external declaration.
6863
e3c31fd5
GM
68642000-07-24 Gerd Moellmann <gerd@gnu.org>
6865
6866 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
6867 if that is nil.
c28da489 6868
c66c29a2
DL
68692000-07-24 Dave Love <fx@gnu.org>
6870
6871 * s/sunos4-0.h, s/sol2.h:
6872 (LIBS_TERMCAP): Move from m/sparc.h.
6873
6874 * m/sparc.h (TERMINFO): Moved to system files (probably only
6875 relevant for sunos4 judging by its vintage).
6876 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
6877 __arch64__.
6878
fbe0a958
EZ
68792000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
6880
6881 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
6882 name to single_keymap_panes.
6883
7d88e5c9
AS
68842000-07-24 Andreas Schwab <schwab@suse.de>
6885
6886 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
6887
e024b101
GM
68882000-07-24 Gerd Moellmann <gerd@gnu.org>
6889
6890 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
6891 parameters instead of using int parameters. Expect FN to accept
6892 EMACS_INT parameters.
6893 (display_echo_area, resize_echo_area_axactly, current_message)
6894 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
6895 with new argument list.
6896 (resize_mini_window_1): New callback function.
6897 (current_message_1, truncate_message_1, set_message_1): Change
52283633 6898 parameter lists to the new format expected by with_echo_area_buffer.
e024b101 6899
25c1a9ce
KH
69002000-07-24 Kenichi Handa <handa@etl.go.jp>
6901
6902 * fontset.c (fontset_ref): Remove INLINE declaration.
6903 (fontset_ref_via_base): Likewise.
6904 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
6905 to downcase.
6906
7f987ac0
EZ
69072000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
6908
6909 * msdos.c (IT_note_mouse_highlight): Process overlays in the
6910 correct order of priority. If help echo was found in an overlay,
6911 use that overlay as the object in which the help echo was found.
6912
e2db3069
MB
69132000-07-22 Miles Bader <miles@gnu.org>
6914
6915 * textprop.c (Fprevious_single_char_property_change): The initial
6916 property value should be from the position preceding POSITION, not
6917 following it.
6918
5e3203e4
EZ
69192000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
6920
6921 * coding.c (syms_of_coding): Doc fix for
6922 inhibit-iso-escape-detection.
6923
62145073
GM
69242000-07-21 Gerd Moellmann <gerd@gnu.org>
6925
c20aeb83
GM
6926 * xterm.c (note_mouse_highlight): Process overlays in the right
6927 order of priority.
34a7a267 6928
743934db
GM
6929 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
6930
6931 * xterm.c (note_mouse_highlight): If help-echo was found in an
52283633 6932 overlay, use that overlay as the object in which the help was found.
743934db 6933
d1dc7e43 6934 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 6935
62145073
GM
6936 * window.c (foreach_window): Instead of a fake variable argument
6937 list, take one USER_DATA argument.
6938 (foreach_window_1): Likewise, and call callback functions with two
6939 args, the window and USER_DATA.
6940 (struct check_window_data): New struct.
6941 (check_window_containing): Use it.
6942 (window_from_coordinates): Set up a struct check_window_data for
6943 foreach_window.
6944 (add_window_to_list, freeze_window_start): Change parameters
6945 according to new calling convention.
6946
6947 * window.h (foreach_window): Change prototype.
6948
6949 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
6950
69512000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
6952
6953 * xmenu.c (menu_help_callback): Call show_help_echo with
6954 additional arguments OBJECT and POS.
6955
11270583
KH
69562000-07-21 Kenichi Handa <handa@etl.go.jp>
6957
07b14857
KH
6958 * data.c (Faset): Allow storing any multibyte character in a
6959 string. Convert unibyte string to multibyte if necessary.
6960
11270583
KH
6961 * xfns.c (x_encode_text): New function.
6962 (x_set_name): Use x_encode_text.
6963 (x_set_title): Likewise.
6964
6965 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
6966
6967 * xterm.h (x_encode_text): Add prototype.
6968
bc75b4fd
DL
69692000-07-20 Dave Love <fx@gnu.org>
6970
6971 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
6972 xfree, not free.
6973
48c14970
EZ
69742000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
6975
6976 * msdos.c (help_echo_window): New variable.
6977 (syms_of_msdos): Initialize and staticpro it.
6978 (IT_note_mode_line_highlight): Set help_echo_window.
6979 (IT_note_mouse_highlight): Ditto.
6980 (dos_rawgetc): Store help_echo_window in the second event produced
6981 for HELP_EVENTs.
6982
6983 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
6984 Record the object that generated the help echo and the position of
6985 that object in help_echo_object and help_echo_pos. Record that
6986 some glyphs in a row are displayed in mouse-face.
6987 (IT_update_begin): Don't clear mouse highlight unless one of the
6988 enabled glyph rows is marked as being displayed in mouse-face.
6989 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
6990 and position recorded in help_echo_object and help_echo_pos to the
6991 event queue.
6992 (IT_menu_display): Accept a new argument PN: the pane number of
6993 the current menu pane. Record the pane number and the item
6994 number of the item which has associated help string.
6995 (XMenuActivate): Update the prototype for help_callback in
6996 function declaration. Call IT_menu_display with the current menu
6997 pane number as an additional argument. Call help_callback with
6998 two additional arguments: the pane number and the item number of
6999 the menu item associated with the help text.
7000 (help_echo_object, help_echo_pos): New variables.
7001 (syms_of_msdos): Initialize them and staticpro help_echo_object.
7002
7003 * msdos.h (XMenuActivate): Update prototype.
7004
4279296d
GM
70052000-07-19 Gerd Moellmann <gerd@gnu.org>
7006
47db06aa
GM
7007 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
7008 Add some more prototypes.
7009
7010 * xterm.c, xterm.h: Add some more prototypes.
7011
7012 * lisp.h (Fnext_single_char_property_change): Add prototype.
7013
7014 * dispnew.c (direct_output_for_insert): Remove confusing
7015 outer local variable mouse_face_overwritten_p.
7016 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
7017
4279296d
GM
7018 * alloc.c (allocate_string_data): Don't copy old string contents.
7019
670acd62
KH
70202000-07-19 Kenichi Handa <handa@etl.go.jp>
7021
7022 * coding.c (code_convert_region): Delete text properties before
7023 shrinking the conversion region.
7024
7cea38bc
GM
70252000-07-18 Gerd Moellmann <gerd@gnu.org>
7026
dc1cac59
GM
7027 * dispnew.c (update_text_area): Write the whole row if it
7028 has mouse-face in it.
7029
85a8aca9
GM
7030 * xfaces.c (face-alternative-font-family-alist): Remove
7031 DEFVAR_LISP; staticpro instead.
7032
34a7a267 7033 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
7034 new arguments.
7035
7036 * keyboard.c (show_help_echo): Add parameter WINDOW.
7037 (read_char): Call show_help_echo with window extracted from Lisp
7038 help event.
7039 (gen_help_event): Add parameter WINDOW.
7040
7041 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
7042
7043 * xterm.c (help_echo_window): New variable.
52283633 7044 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
7cea38bc
GM
7045 (XTread_socket): Pass help_echo_window to gen_help_event.
7046 (syms_of_xterm): Initialize and staticpro help_echo_window.
7047
f8276b77
DL
70482000-07-18 Dave Love <fx@gnu.org>
7049
52283633 7050 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
f8276b77 7051
088831a6
GM
70522000-07-18 Gerd Moellmann <gerd@gnu.org>
7053
3d6cd763
GM
7054 * alloc.c (allocate_string_data): If string had already data
7055 assigned, copy old contents to new string data.
7056
7057 * coding.c (syms_of_coding): Fix typo in spelling of variable
7058 `inhibit-iso-escape-detection'.
7059
088831a6
GM
7060 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
7061
7062 * Makefile.in: Add dependencies on dispextern.h.
7063 (alloca.o): Don't define malloc and define EMACS_FREE instead of
7064 `free'; both can conflict with system header files.
7065
bc8a8d55
KH
70662000-07-18 Kenichi Handa <handa@etl.go.jp>
7067
7068 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
7069 undefined.
7070
069f5950
DL
70712000-07-18 Dave Love <fx@gnu.org>
7072
7073 * window.c (Fwindow_list): Declare arg `window'.
7074
aa96c820
KH
70752000-07-18 Kenichi Handa <handa@etl.go.jp>
7076
7077 * coding.c (setup_coding_system): Don't override the explicitly
7078 specified designations.
7079
06be8d32
MB
70802000-07-15 Miles Bader <miles@gnu.org>
7081
7082 * editfns.c (char_property_eq, char_property_stickiness): Renamed
7083 from `text_property_eq' and `text_property_stickiness', respectively.
7084 (find_field, Fconstrain_to_field, char_property_eq)
7085 (char_property_stickiness): Changed to call char-property functions
7086 instead of text-property-only ones.
7087
7088 * textprop.c (Fnext_single_char_property_change): Made a subr (was
7089 `next_single_char_property_change'). Do more error checking, and
7090 cleanup limit behavior.
7091 (Fprevious_single_char_property_change): New function.
7092 (syms_of_textprop): Initialize new subrs.
7093
7094 * xdisp.c (display_prop_end, invisible_text_between_p):
7095 Call Fnext_single_char_property_change instead of
7096 next_single_char_property_change.
7097
3fddcdc3
JR
70982000-07-15 Jason Rumney <jasonr@gnu.org>
7099
7100 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
7101 after menu is finished with.
7102 (add_menu_item): Only consider wv->title as a menu title.
7103 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
7104
7105 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
7106 null title.
7107 (FONT_REGEXP): Remove unused macro, and its sub-components.
7108 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
7109
7110 * w32term.c (help_echo_object, help_echo_pos): New variables.
7111 (note_mode_line_highlight): Store additional information about the
7112 help-echo in help_echo_object and help_echo_pos. Check both
7113 `local-map' and `keymap' properties for changing the cursor
7114 (note_mouse_highlight): Store additional information about the
7115 help-echo in help_echo_object and help_echo_pos.
7116 (note_tool_bar_highlight): Set help_echo_object to nil and
7117 help_echo_pos to -1.
7118 (w32_read_socket): Use gen_help_event instead of filling
7119 input_events manually.
7120 (syms_of_w32term): Staticpro help_echo_object.
7121 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
52283633 7122 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
3fddcdc3
JR
7123 (x_clear_mouse_face): New function.
7124 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
7125 (x_update_window_begin): No need to turn off the mouse
7126 highlight here.
7127 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 7128 depending on whether they contain glyphs highlighted in mouse-face.
3fddcdc3
JR
7129 (x_fill_stretch_glyph_string): Consume runs of stretch
7130 glyphs instead of a single one.
7131 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
7132 with new argument list.
7133 (x_set_glyph_string_gc): Make sure the face's GC is valid.
7134 (x_append_glyph, x_append_composite_glyph)
7135 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
7136 changes in struct glyph starting 1999-12-27. See comments for
7137 xterm.c on 2000-07-05.
7138
178c5d9c
SS
71392000-07-14 Sam Steingold <sds@gnu.org>
7140
7141 * xfaces.c (realize_x_face): Fix the last patch:
7142 check `default_face' before dereferencing.
7143
6fe533f6
DL
71442000-07-14 Dave Love <fx@gnu.org>
7145
069f5950 7146 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 7147
dd7b81cf
KH
71482000-07-14 Kenichi Handa <handa@etl.go.jp>
7149
0693904a 7150 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 7151 default_face's fontset, not using the default fontset.
0693904a 7152
dd7b81cf
KH
7153 * coding.c (inhibit_iso_escape_detection): New variable.
7154 (syms_of_coding): Make it a Lisp variable.
7155 (detect_coding_iso2022): If inhibit_iso_escape_detection is
7156 nonzero, ignore ISO2022's escape sequence.
7157
d5aa31d8
GM
71582000-07-14 Gerd Moellmann <gerd@gnu.org>
7159
e5acf0ca
GM
7160 * alloca.c (malloc) [emacs]: Define as xmalloc.
7161
bd23a692
GM
7162 * xfns.c (Fx_show_tip): If frame parameters contain a position,
7163 use that instead of the mouse position. Add parameters DX and DY.
7164
7165 * dispextern.h (Fx_show_tip): Adjust number of parameters
7166 in prototype.
7167
9662da0b
GM
7168 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
7169 if HELP is a function, call it with OBJECT and POS as parameters
7170 to get the help to display.
7171 (gen_help_event, kbd_buffer_store_help_event): New functions.
7172 (kbd_buffer_get_event): Construct the Lisp help-event differently.
7173 (read_char): Call show_help_echo with new parameters.
7174
178c5d9c 7175 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
7176 Add prototypes.
7177
7178 * xterm.c (help_echo_object, help_echo_pos): New variables.
7179 (note_mode_line_highlight): Store additional information about the
7180 help-echo in help_echo_object and help_echo_pos. Check both
7181 `local-map' and `keymap' properties for changing the cursor
7182 (note_mouse_highlight): Store additional information about the
7183 help-echo in help_echo_object and help_echo_pos.
7184 (note_tool_bar_highlight): Set help_echo_object to nil and
7185 help_echo_pos to -1.
7186 (XTread_socket): Use gen_help_event instead of filling
7187 input_events manually.
7188 (syms_of_xterm): Staticpro help_echo_object.
7189
7190 * xmenu.c (menu_highlight_callback): Use
7191 kbd_buffer_store_help_event instead of setting up and input_event
7192 structure manually.
7193
7194 * xdisp.c (eval_form): GCPRO argument sexpr.
7195 (call_function): New function.
7196 (handle_single_display_prop): Use call_function and FUNCTIONP
7197 instead of checking whether if font_height is a symbol and
7198 using eval_form.
7199
7200 * eval.c (internal_condition_case_2): New function.
7201
7202 * lisp.h (FUNCTIONP): New macro.
7203 (internal_condition_case_2, call_function): Add prototypes.
7204
d5aa31d8
GM
7205 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
7206 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
7207 Always set `arg' member of input_events.
7208 (construct_menu_click): Unused function removed.
7209
7210 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
7211
7212 * w32term.c (construct_mouse_click, construct_mouse_wheel)
7213 (construct_drag_n_drop, x_scroll_bar_handle_click)
7214 (w32_read_socket): Always set `arg' member of input_events.
7215
7216 * keyboard.c (show_help_echo): Use eval_form. Add comment.
7217
7218 * lisp.h (eval_form): Add prototype.
7219
7220 * xdisp.c (eval_form): Make it externally visible.
7221
0f1a9b23
GM
72222000-07-13 Gerd Moellmann <gerd@gnu.org>
7223
7224 * xterm.c (x_handle_tool_bar_click): Store the frame in the
7225 frame_or_window slot of TOOL_BAR_EVENT input events instead of
7226 consing. For prefix events, store the frame in the `arg' slot of
7227 the event, otherwise store the key there.
7228 (XTread_socket): Instead of consing, use the frame_or_window slot
52283633 7229 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
0f1a9b23
GM
7230
7231 * xmenu.c (menu_highlight_callback): Store help string in the
7232 `arg' member of the input event; don't cons.
7233 (menubar_selection_callback): Use the `arg' slot of input events
7234 to queue additional information, instead of consing.
7235
7236 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
7237
7238 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
7239 TOOL_BAR_EVENTs.
7240 (w32_read_socket): Adapt to changes in HELP_EVENTs.
7241
7242 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
7243 input events to queue additional information, instead of consing.
7244
7245 * keyboard.c (kbd_buffer_gcpro): Renamed from
7246 kbd_buffer_frame_or_window. Now used for all Lisp objects
7247 referenced from the input queue.
7248 (kbd_buffer_store_event): Always use structure assignment for
7249 copying input events. Record all Lisp objects referenced from
7250 events in kbd_buffer_gcpro.
7251 (kbd_buffer_get_event): Construct Lisp `help-echo' events
7252 differently from input events. Test for prefix menu_bar_events
7253 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
7254 event in kbd_buffer_gcpro to nil.
7255 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
7256 frame_or_window is equal to its arg member as prefix events.
7257 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
7258 used by an input event to nil.
7259 (init_keyboard): Use two times the size of the input queue
7260 for kbd_buffer_gcpro.
7261 (syms_of_keyboard): Likewise.
7262
52283633
SM
7263 * emacs.c (handle_USR2_signal, handle_USR1_signal):
7264 Use USER_SIGNAL_EVENT.
0f1a9b23
GM
7265
7266 * termhooks.h (struct input_event): Add member `arg'.
7267 (MENU_BAR_EVENT): Renamed from menu_bar_event.
7268 (USER_SIGNAL_EVENT): Renamed from user_signal.
7269
7270 * xfaces.c (ASET): Remove definition.
7271
7272 * lisp.h (AREF, ASET, ASIZE): New macros.
7273
7274 * fontset.c (AREF, ASIZE): Remove definitions.
7275
7276 * fns.c (AREF): Remove definition.
178c5d9c 7277
0f1a9b23
GM
7278 * composite.c (AREF): Remove definition.
7279
712eaef2
GM
72802000-07-12 Gerd Moellmann <gerd@gnu.org>
7281
d8ee7803
GM
7282 * dispnew.c (redraw_overlapped_rows): Add missing local.
7283 (scrolling_window): Remove debug code.
7284
712eaef2
GM
7285 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
7286 Before scrolling, turn off a mouse-highlight in the window
7287 being scrolled.
7288
7289 * xterm.c (x_update_window_end): Add parameter
7290 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
7291 redisplay in XTframe_up_to_date.
7292 (x_clear_mouse_face): New function.
7293 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
7294
7295 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
7296 current glyph row.
7297 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
7298 it when any row is written to that contains glyphs highlighted in
7299 mouse-face.
7300 (update_window): Call the window update end hook with new
7301 parameter MOUSE_FACE_OVERWRITTEN_P.
7302 (direct_output_for_insert): Give up if row contains mouse-face.
7303
7304 * dispextern.h (struct redisplay_interface): Add parameter
7305 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
7306 (clear_mouse_face): New function pointer member.
7307
02010917
SM
73082000-07-11 Stefan Monnier <monnier@cs.yale.edu>
7309
7310 * syntax.c (back_comment): Use one switch rather than a few `if's.
7311 Obey open_paren_in_column_0_is_defun_start.
7312 When reverting to the `slow' method, try to nicely handle the case
7313 of nested comments by checking that the comment-starter we found
7314 does indeed match the comment-ender.
7315 (scan_sexps_forward, scan_sexps_forward):
7316 Ignore excessive opening parenthesis rather than throwing an error.
7317
d76c03ea
GM
73182000-07-11 Gerd Moellmann <gerd@gnu.org>
7319
7320 * doc.c (Fsubstitute_command_keys): Handle case that a GC
7321 in Fwhere_is_internal or get_keymap_1 relocates string contents.
7322
7323 * dispnew.c (direct_output_forward_char): Give up if currently
7324 displaying a message instead of the minibuffer contents.
7325
7326 * xterm.c (x_update_window_begin): No need to turn off the mouse
7327 highlight here.
7328 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 7329 depending on whether they contain glyphs highlighted in mouse-face.
d76c03ea
GM
7330
7331 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
7332 compare the mouse_face_p flags of both rows.
7333
7334 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
7335
d55ead18
EZ
73362000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
7337
7338 * keyboard.c (show_help_echo): Accept additional parameter
7339 ok_to_overwrite_keystroke_echo.
7340 (read_char): Call show_help_echo with a zero
7341 ok_to_overwrite_keystroke_echo argument.
52283633 7342 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
d55ead18
EZ
7343 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
7344 ok_to_overwrite_keystroke_echo argument.
7345 * w32menu.c (w32_menu_display_help): Call show_help_echo with
7346 non-zero ok_to_overwrite_keystroke_echo argument.
7347
df75b1a3
GM
73482000-07-10 Gerd Moellmann <gerd@gnu.org>
7349
4b92c49a
GM
7350 * xdisp.c (try_window_id): If changes are all below what is
7351 displayed in the window, and point is in the window, we still
7352 might have to find point on the display.
7353
7354 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
7355 glyphs instead of a single one.
7356 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
7357 with new argument list.
7358 (x_set_glyph_string_gc): Make sure the face's GC is valid.
7359
df75b1a3
GM
7360 * keymap.c (get_keymap_1): Add comment that this function can GC.
7361 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
7362 comment that functions can GC.
7363 (Fset_keymap_parent): GCPRO arg KEYMAP.
7364
4314cf3e
EZ
73652000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
7366
7367 * msdos.c (XMenuActivate): After exiting the menu, restore the
7368 echo area message and erase it.
7369
ab49ce15
KH
73702000-07-10 Kenichi Handa <handa@etl.go.jp>
7371
7372 * fontset.c (Ffontset_info): Make the return value more compatible
7373 with that of Emacs 20.
7374
090a072f
GM
73752000-07-07 Gerd Moellmann <gerd@gnu.org>
7376
7377 * eval.c (Fsignal): Handle case that backtrace_list is null.
7378
f92de4a6
KH
73792000-07-07 Kenichi Handa <handa@etl.go.jp>
7380
7381 * ccl.c (Fccl_execute): Typo fixed.
7382
dd8888a1
GM
73832000-07-06 Gerd Moellmann <gerd@gnu.org>
7384
e5c81191 7385 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 7386
dd8888a1
GM
7387 * window.c (Fwindow_list): Reverse list at the end.
7388 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
7389 means allow windows on OWINDOW's frame, only.
7390 (window_loop): Simplified; use Fwindow_list.
7391
7392 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
7393
485266d0
GM
73942000-07-05 Gerd Moellmann <gerd@gnu.org>
7395
7396 * xterm.c (XTread_socket): Increment handling_signal at the start,
7397 decrement it at the end.
7398
7399 * eval.c (handling_signal): New variable.
7400 (Fsignal): Abort if handling_signal is non-zero.
7401
7402 * lisp.h (handling_signal): External declaration.
178c5d9c 7403
485266d0
GM
7404 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
7405
80fcd514
KR
74062000-07-05 Ken Raeburn <raeburn@gnu.org>
7407
7408 Sound support for NetBSD through "Linux emulation" support:
7409 * config.in (HAVE_SOUNDCARD_H): Undef.
7410 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
7411 * Makefile.in (LIBSOUND): New variable.
7412 (LIBES): Include it.
52283633
SM
7413 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
7414 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
80fcd514
KR
7415 (vox_open): Use DEFAULT_SOUND_DEVICE.
7416 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
7417
d5c5cddd
GM
74182000-07-05 Gerd Moellmann <gerd@gnu.org>
7419
7420 * print.c (print_error_message): If Vsignaling_function is set,
7421 show it in *Messages*.
7422
7423 * lisp.h (Vsignaling_function): External declaration.
7424
7425 * eval.c (Vsignaling_function): New variable.
7426 (Fsignal): Compute it.
7427 (syms_of_eval): Staticpro it.
7428
65171e3a
DL
74292000-07-05 Dave Love <fx@gnu.org>
7430
7431 * syswait.h: Use the autoconf recommended approach. Old code
7432 #if'd out in case we need to revert.
7433
178c5d9c 7434 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 7435
e2c46326
AI
74362000-07-05 Andrew Innes <andrewi@gnu.org>
7437
7438 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
7439 when non-NULL instead of __morecore, to take account of buffer
7440 memory. This also solves a problem with spurious memory warnings
7441 on Windows.
7442
7443 * ralloc.c: Make real_morecore non-static.
7444
7445 * eval.c (internal_condition_case): Comment out abort if
7446 interrupt_input_blocked is not zero.
7447
7448 * makefile.nt: Add support for `bootstrap' and related targets.
7449 Include minimal debug info in emacs.exe in release build.
7450 Remove all dependencies on lisp.h, and fixup some others.
7451
7452 * w32.c (init_environment): Install code from 20.7 for providing
7453 default values for environment variables, based on the
7454 executable's own location.
52283633 7455 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
e2c46326
AI
7456 (sys_socket): Install socket inheritance bug fix from 20.7.
7457
7458 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
7459 here via blockinput.h).
7460
a027a91b
SM
74612000-07-05 Stefan Monnier <monnier@cs.yale.edu>
7462
e4b31601
SM
7463 * w32menu.c (w32_menu_display_help):
7464 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
7465
7466 * keyboard.h (show_help_echo): Declare.
7467
7468 * keyboard.c (show_help_echo): New function, extracted from read_char.
7469 Feval its `msg' argument if it's a cons cell.
7470 (read_char): Use it.
4cf8d9d5 7471 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 7472
178c5d9c 7473 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 7474 (note_tool_bar_highlight, XTread_socket):
178c5d9c 7475 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
7476 (dos_rawgetc):
7477 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
7478 (note_tool_bar_highlight, w32_read_socket):
7479 Do not gratuitously ignore non-string `help-echo' properties.
7480
88d75730
GM
74812000-07-05 Gerd Moellmann <gerd@gnu.org>
7482
969f7e79
GM
7483 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
7484
71201b00
GM
7485 * window.c (delete_all_subwindows): Reset Vwindow_list.
7486
88d75730
GM
7487 * xterm.c (x_append_glyph, x_append_composite_glyph)
7488 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
7489 changes in struct glyph starting 1999-12-27. Some bit-fields of
7490 struct glyph were not set, which made glyphs unequal when compared
7491 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
7492 effects were the result. This also depended on the contents of
7493 memory returned by xmalloc. If flickering happens again, activate
7494 the code in clear_glyph_row that's in #if 0. If the flickering is
52283633 7495 gone with that, chances are that it is caused by something similar.
88d75730
GM
7496
7497 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 7498
88d75730
GM
7499 * dispextern.h: Add some comments.
7500
7501 * window.c (add_window_to_list): Add parameter LIST.
7502 (window_list): Order list so that, for each frame, windows are
7503 in canonical order, and so that frames appear in the list in
7504 the order given by Vframe_list.
7505 (next_window): Reverse the handling of NEXT_P.
7506
53654733
GM
75072000-07-04 Gerd Moellmann <gerd@gnu.org>
7508
87efd256
GM
7509 * window.c (Vwindow_list): New variable.
7510 (make_window, delete_window): Set Vwindow_list to nil.
7511 (check_window_containing): New function.
7512 (window_from_coordinates): Rewritten.
7513 (add_window_to_list, window_list, candidate_window_p)
7514 (decode_next_window_args, next_window): New functions.
52283633 7515 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
87efd256
GM
7516 (Fwindow_list): New function.
7517 (Fother_window): Cleaned up.
7518 (foreach_window): Add a longer "variable argument list". Let
7519 callback function return 0 to indicate that cycling over windows
7520 should stop.
7521 (foreach_window_1): Likewise.
7522 (freeze_window_start): Return int.
7523 (init_window): New function.
7524 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
7525
7526 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
7527 input_event with bzero.
7528 (main): Call init_window.
7529
53654733
GM
7530 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
7531 a menu filter.
7532
4a8c194f
KH
75332000-07-04 Kenichi Handa <handa@etl.go.jp>
7534
7535 * composite.h (make_composition_value_copy): Extern it.
7536
7537 * composite.c (make_composition_value_copy): New function.
7538
7539 * editfns.c (Fformat): While copying text properties, make each
7540 composition property value a copy.
7541
7542 * fns.c (concat): While copying text properties, make each
7543 composition property value a copy.
7544
831a6cb0
GM
75452000-07-03 Gerd Moellmann <gerd@gnu.org>
7546
2f516940
GM
7547 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
7548
178c5d9c 7549 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
7550 marked already.
7551
831a6cb0
GM
7552 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
7553 include those frames as candidates which have their focus
7554 redirected to the minibuffer frame.
7555
d9c4f922
SM
75562000-07-03 Stefan Monnier <monnier@cs.yale.edu>
7557
7558 * fns.c (Fputhash): Return `value' rather than nil.
7559
3780bc22
GM
75602000-06-30 Gerd Moellmann <gerd@gnu.org>
7561
97d176db
GM
7562 * frame.c (next_frame): Don't check focus redirection in case
7563 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
7564 unless their focus is redirected, which contradicts the
7565 specification of next-frame, and leads to infinite loops in
7566 certain situations when cycling through windows with next-window.
7567
dca9961d
KH
75682000-06-30 Kenichi Handa <handa@etl.go.jp>
7569
7570 * coding.c (code_convert_region): Even if the length of text is
7571 zero, try to convert it if coding->type is coding_type_ccl.
7572 (decode_coding_string, encode_coding_string): Likewise.
7573
d5483ab1
GM
75742000-06-28 Gerd Moellmann <gerd@gnu.org>
7575
af5c25e1 7576 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 7577 the display if windows_or_buffers_changed.
af5c25e1
GM
7578
7579 * dispnew.c (struct row_entry): New structure.
7580 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
7581 (row_table_size, old_lines, new_lines, old_lines_size)
7582 (new_lines_size, run_pool, runs_size, runs): New variables.
7583 (add_row_entry): New function.
7584 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 7585 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
7586 holding them in local variables. Use a larger hash table whose
7587 size depends on glyph matrix sizes. Don't use bzero to clear the
7588 hash table; instead, clear used slots only.
7589
7590 * fns.c (next_almost_prime): Make it externally visible.
7591
7592 * lisp.h (next_almost_prime): Add prototype.
7593
d5483ab1
GM
7594 * s/isc4-0.h (sigunblock): Define.
7595
7596 * s/sco5.h (sigunblock): Define.
7597
93e40f40
DL
75982000-06-27 Dave Love <fx@gnu.org>
7599
7600 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
7601 (moved to osf5-0.h).
7602 [!NOT_C_CODE]: Protect string.h stuff.
7603
7604 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
7605 (sys_siglist, NSIG): Definitions moved here from osf1.h.
7606
3c4b7685
GM
76072000-06-27 Gerd Moellmann <gerd@gnu.org>
7608
97d176db 7609 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
7610 below the last line from the needed window height.
7611
32cad0aa
SM
76122000-06-26 Stefan Monnier <monnier@cs.yale.edu>
7613
7614 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
7615 (Fwidget_get): Use it.
7616 (syms_of_fns): Defsubr it.
7617
2c69ced2
GM
76182000-06-26 Gerd Moellmann <gerd@gnu.org>
7619
178c5d9c 7620 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
7621 display info for XIM.
7622 (xim_open_dpy): Likewise.
7623 (xim_close_dpy): Don't free the display info's XIM.
7624
7625 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
7626
7627 * config.in (USE_XIM): New define.
7628
3fc720e4
GM
7629 * keymap.c (get_keyelt): For menu-items containing a `:filter
7630 FILTER', apply FILTER to the menu-item's definition to get the
7631 real definition to use.
7632
7633 * lisp.h (QCfilter): External declaration.
7634
2c69ced2
GM
7635 * xfns.c (Fimage_size): New function.
7636 (syms_of_xfns): Defsubr it.
7637
f978b2a2
AS
76382000-06-26 Andreas Schwab <schwab@suse.de>
7639
7640 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
7641 Fstring_as_unibyte.
7642
94cc7892
DL
76432000-06-25 Dave Love <fx@gnu.org>
7644
52283633 7645 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
94cc7892
DL
7646
7647 * Makefile.in (blockinput.h): Depend on atimer.h.
7648 (atimer.h): Depend on systime.h.
7649
52283633 7650 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
94cc7892 7651
52283633 7652 * atimer.h: Protect against multiple inclusion. Include systime.h.
94cc7892
DL
7653
7654 * lisp.h (swap_in_global_binding): Declare.
7655
b8c24556
KR
76562000-06-24 Ken Raeburn <raeburn@gnu.org>
7657
7658 * process.c (Fopen_network_stream): Turn off atimers for duration
7659 of call to connect. (Patch from Gerd.)
7660
8cf8560b
DL
76612000-06-23 Dave Love <fx@gnu.org>
7662
511c7541
DL
7663 * ralloc.c: Maybe include unistd.h
7664
8cf8560b
DL
7665 * emacs.c (setgrp): Undefine before defining.
7666 (malloc_warning, set_time_zone_rule, index): Prototype.
7667
7668 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
7669 HAVE_STRUCT_TIMEZONE.
7670
7671 * s/osf1.h: Move string.h hack here from alpha.h and make it
7672 conditional.
7673 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
7674 _XOPEN_SOURCE.
7675 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
7676 (SOCKLEN_TYPE): Don't define.
7677
7678 * m/alpha.h: Remove string.h hack.
7679
7680 * s/osf5-0.h: New file.
7681
7682 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
7683 include time.h, done by systime.h.
7684 [__FreeBSD__]: Remove redundant includes.
7685
3fc720e4 7686 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
7687 (delete_temp_file): Return Qnil to avoid warning.
7688
7689 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
7690
7691 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
7692 HAVE_X_WINDOWS.
7693
7694 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
7695
7696 * composite.h (compose_text): Declare.
7697
7698 * xterm.c: Don't include sys/types.h unconditionally. Don't
7699 protect its inclusion with !USG (following xmenu.c).
7700
ea055732
GM
77012000-06-23 Gerd Moellmann <gerd@gnu.org>
7702
7703 * xfns.c (x_create_tip_frame): Initialize frame's colors like
7704 in x_create_frame.
7705
74b01b80
EZ
77062000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
7707
7708 * coding.c (decode_eol_post_ccl): Special handling for undecided
7709 and inconsistent EOL types.
7710
64f3a166
GM
77112000-06-22 Gerd Moellmann <gerd@gnu.org>
7712
16cf31f7
GM
7713 * xrdb.c (x_load_resources): Add default resource for scroll bar's
7714 trough color and main window's background color.
7715
52283633 7716 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
16cf31f7
GM
7717
7718 * xterm.h (Xt_app_con): External declaration.
7719
7720 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 7721
486a103d
GM
7722 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
7723
64f3a166
GM
7724 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
7725 (handle_invisible_prop): Record the start of invisible text in
7726 it->add_overlay_start.
7727 (struct overlay_entry): Add member `overlay'.
7728 (handle_overlay_change): Simplify.
7729 (next_overlay_string): After having processed overlay strings at the
7730 end of the buffer, record that fact in
7731 it->overlay_strings_at_end_processed_p.
7732 (compare_overlay_entries): If before- and after-strings come
7733 from the same overlay, let before-strings come first.
7734 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
7735 (load_overlay_strings): Take it->add_overlay_start into account
7736 when adding overlay strings.
7737
7738 * dispextern.h (struct it): Add member add_overlay_start.
7739
bb746ea6
DL
77402000-06-22 Dave Love <fx@gnu.org>
7741
7742 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
7743
7744 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
7745
a8f573f3
KH
77462000-06-22 Kenichi Handa <handa@etl.go.jp>
7747
7748 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
7749 is greater than 0.
7750
9f2bbc92
DL
77512000-06-21 Dave Love <fx@gnu.org>
7752
178c5d9c 7753 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 7754
3ee5041c
SM
77552000-06-21 Stefan Monnier <monnier@cs.yale.edu>
7756
7757 * syntax.c (back_comment): Simplify string-parity counting (with
7758 the added benefit of handling multiple string-styles as long as
7759 they are not intertwined).
7760 Jump to the slow code as soon as a comment starter is found in
7761 a "string_lossage" position. Fixes the case: " /* " /* " */.
7762
4c343001
DL
77632000-06-21 Dave Love <fx@gnu.org>
7764
7765 * Makefile.in: Use GETLOADAVG_LIBS.
7766
7767 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
7768 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
7769
e6365855
SM
77702000-06-20 Stefan Monnier <monnier@cs.yale.edu>
7771
7772 * syntax.c (describe_syntax): Recognize the `n'estable bit.
7773 (Fforward_comment, scan_lists):
7774 Check the comstyle of single-char comment-starters.
7775 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
7776 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
7777 Check the comstyle of single-char comment-starters.
7778 Clarify control-flow around the Scomment case.
e6365855 7779
5700d2cc
DL
77802000-06-20 Dave Love <fx@gnu.org>
7781
d355bd8a
SM
7782 * fns.c (make_hash_table, maybe_resize_hash_table):
7783 Cast arg of next_almost_prime.
5700d2cc 7784
178c5d9c 7785 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
7786
7787 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
7788 and unistd.h.
7789
4a27bdfb
GM
77902000-06-20 Gerd Moellmann <gerd@gnu.org>
7791
a61d762c 7792 * keyboard.c (adjust_point_for_property): Check if display
52283633 7793 property should be treated as intangible by looking at its value.
a61d762c 7794
178c5d9c 7795 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
7796 (display_prop_intangible_p): New functions.
7797
7798 * dispextern.h (display_prop_intangible_p): Add prototype.
7799
7800 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 7801
4a27bdfb
GM
7802 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
7803 argument to sigprocmask.
7804
7805 * s/sco5.h (sigblock): Redefined to pass a pointer as second
7806 argument to sigprocmask.
7807
7808 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
7809 sigprocmask_set, and pass a pointer to it to sigprocmask.
7810
7811 * sysdep.c (sigprocmask_set): New variable.
7812
7813 * fileio.c (make_temp_name): Don't use `%s' in string passed to
7814 report_file_error.
7815
427ec082
SS
78162000-06-20 Sam Steingold <sds@gnu.org>
7817
7818 * xrdb.c: Don't declare xmalloc, xrealloc.
7819
8972fe79 78202000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
7821
7822 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
7823 (re_comp): Cast gettext return value to avoid complaints when
7824 !HAVE_LIBINTL.
7825
074b6efe
DL
78262000-06-20 Dave Love <fx@gnu.org>
7827
52283633 7828 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
f85c008a 7829
5700d2cc 7830 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 7831
d355bd8a 7832 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
7833
7834 * m/alpha.h: Don't declare xmalloc, xrealloc.
7835
0af4f205
DL
7836 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
7837
7838 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
7839
7840 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
7841
7842 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
7843 HAVE_GETWD.
7844
074b6efe
DL
7845 * keyboard.h (poll_for_input_1): Declare.
7846
7847 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
7848
7849 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
7850
7851 * doprnt.c: Don't declare xmalloc, xrealloc.
7852
7853 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
7854 (getenv, ctime, getwd): Removed.
7855 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
7856
7857 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
7858 x_set_tool_bar_lines.
7859
7860 * config.in: Add HAVE_GETWD. Move some definitions above
7861 machine/system includes.
7862
68a5e97b
KH
78632000-06-20 Kenichi Handa <handa@etl.go.jp>
7864
95417e1e
KH
7865 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
7866
68a5e97b
KH
7867 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
7868 contain information about ENCODING.
7869
7870 * fontset.c (FONTSET_ASCII): Use the first element of char table
7871 for an ASCII font, not defalt slot.
7872 (fontset_ref_via_base): If FONTSET doesn't contain information for
7873 C, try the default fontset.
7874 (make_fontset): Don't copy the default fontset.
7875 (fontset_font_pattern): Likewise.
7876 (accumulate_font_info): If ELT is nil, use the corresponding
7877 element in the default fontset.
7878
3b4fa1b2
DL
78792000-06-19 Dave Love <fx@gnu.org>
7880
943e731c
DL
7881 * syntax.c (Fparse_partial_sexp): Doc fix.
7882
7883 * regex.h: Test PROTOTYPES as well as __STDC__.
7884
3b4fa1b2
DL
7885 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
7886 errno, strerror. Put text after #endif in comment.
7887
52283633 7888 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
3b4fa1b2
DL
7889
7890 * xterm.c (x_frame_of_widget): Likewise.
7891
cdf0357b
GM
78922000-06-19 Gerd Moellmann <gerd@gnu.org>
7893
7894 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
7895 to Vfundamental_mode_abbrev_table.
7896
7897 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
7898 bogus objects are marked. This slows down GC by ~80 percent, but
7899 it might be worth trying when debugging GC-related problems.
7900 This feature requires conservative stack marking to be enabled.
7901
7902 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
7903 returns XLookupChars, reset `modifiers' to zero.
7904
998e9f8c
DL
79052000-06-19 Dave Love <fx@gnu.org>
7906
7907 * mktime.c: Unprotoized.
7908
18e21ce8 79092000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
7910
7911 * data.c (set_internal): If variable is frame-local,
7912 store the new value immediately into the frame parameter alist.
7913
140c4ac6
KR
79142000-06-19 Ken Raeburn <raeburn@gnu.org>
7915
14358466
KR
7916 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
7917 in the custom handler pointer.
7918
140c4ac6
KR
7919 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
7920 value, or checks for CHAR_META can fail when Lisp_Object is a
7921 union type.
7922 * keymap.c (get_keyelt): Likewise.
7923
10d7bf84
KH
79242000-06-19 Kenichi Handa <handa@etl.go.jp>
7925
7926 * ccl.h (struct ccl_program): New member eol_type.
7927 (struct ccl_spec): New member cr_carryover.
7928
7929 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
7930 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
7931
7932 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
7933 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
7934 (decode_eol_post_ccl): New function.
7935 (decode_coding): Don't detect EOL format here for CCL based coding
7936 systems.
7937 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
7938 decode_eol_post_ccl after running the CCL program.
7939 (code_convert_region): Don't detect EOL format here for CCL based
7940 coding systems.
7941 (decode_coding_string): Likewise.
7942
52e386c2
KR
79432000-06-18 Ken Raeburn <raeburn@gnu.org>
7944
7945 * charset.c (update_charset_table): Use XINT on "iso_final_char"
7946 when treating it as an integer.
7947
7948 * coding.h (encode_coding_string): Declare.
7949
7950 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
7951 it as an integer.
7952
7953 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
7954 "xkeymap" to avoid shadowing the "enum map_type" value that needs
7955 to be passed to get_local_map.
7956
7957 * sound.c (Fplay_sound): Don't call make_number on
7958 Frun_hook_with_args count argument.
7959
7960 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
7961 for lisp objects in X event structure data field, when lisp
7962 objects are represented with unions.
7963 (x_scroll_bar_to_input_event): Ditto.
7964
b357b9d4
KR
79652000-06-16 Ken Raeburn <raeburn@gnu.org>
7966
7967 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
7968 termination of string. Fix sense of test whether
7969 Vline_number_display_limit is an integer.
b357b9d4 7970
a871441d
GM
79712000-06-16 Gerd Moellmann <gerd@gnu.org>
7972
a9021acd
GM
7973 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
7974 only if HAVE_X_WINDOWS.
7975
6344985d
GM
7976 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
7977 of titles.
7978
427ec082 7979 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
7980 out of bounds.
7981
228b083e
EZ
79822000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
7983
7984 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
7985 of its headers.
7986
c25b53a2
KH
79872000-06-15 Kenichi Handa <handa@etl.go.jp>
7988
7989 * coding.c (decode_coding_emacs_mule): Always set src_base at the
7990 start of the while loop.
7991
a6981b11
GM
79922000-06-15 Gerd Moellmann <gerd@gnu.org>
7993
e9924e52
GM
7994 * atimer.c (alarm_signal_handler): Add forward declaration.
7995
a6981b11
GM
7996 * data.c (set_internal): Remove debug code.
7997
25fa6deb
GM
79982000-06-14 Gerd Moellmann <gerd@gnu.org>
7999
dce6b995
GM
8000 * Makefile.in (bootstrap-temacs): Add `-I../src'.
8001
9f817ea4
GM
8002 * unexec.c (toplevel) [COFF]: Include coff.h.
8003
8004 * s/lynxos.h: New file.
8005
8006 * keymap.c (Fsingle_key_description): Enclose function key and
8007 event symbol names in angle brackets.
8008
8a4e3c0c
GM
8009 * xdisp.c (setup_echo_area_for_printing): Call
8010 message_log_maybe_newline if message_buf_print is not set.
8011
8012 * print.c (printchar, strout): Don't check message_buf_print
427ec082 8013 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
8014 function does something useful even when message_buf_print is
8015 already set.
8016
52283633
SM
8017 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
8018 New variables.
25fa6deb
GM
8019 (ensure_echo_area_buffers): Initialize echo buffer's
8020 truncate lines setting to nil.
8021 (with_echo_area_buffer): Don't set the echo buffer's truncate
8022 lines setting here.
8a4e3c0c 8023 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
8024 of message_truncate_lines.
8025 (resize_mini_window): Handle case that lines are truncated.
52283633
SM
8026 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
8027 DEFVAR_BOOL message-truncate-lines.
25fa6deb
GM
8028
8029 * keyboard.c (read_char): Bind message-truncate-lines to t
8030 while displaying a help-echo.
8031
8032 * lisp.h (Qmessage_truncate_lines): External declaration.
8033
163dcff3
GM
80342000-06-13 Gerd Moellmann <gerd@gnu.org>
8035
1681ead6
GM
8036 * xdisp.c (Vline_number_display_limit): Renamed from
8037 line_number_display_limit.
8038 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
8039 Extend documentation string. Initialize
8040 Vline_number_display_limit to nil meaning no limit.
8041 (decode_mode_spec): Use Vline_number_display_limit with its new
8042 meaning.
8043
163dcff3
GM
8044 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
8045
18e21ce8 80462000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
8047
8048 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 8049
163dcff3
GM
8050 * xfns.c (x_set_frame_parameters): Comment fix.
8051
8052 * frame.c (store_frame_param): Call swap_in_global_binding if the
8053 variable's current binding was chosen based on this frame.
8054
8055 * data.c (swap_in_global_binding): New function.
8056
a704139d
EZ
80572000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
8058
8059 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
8060 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
8061
9b6610db
EZ
80622000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
8063
8064 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
8065
c68833d2
JR
80662000-06-12 Jason Rumney <jasonr@gnu.org>
8067
8068 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
8069
8070 * w32.h (EMACS_W32_H): Renamed from _NT_H_
8071
8072 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
8073
8074 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
8075
ed1056b3
GM
80762000-06-12 Gerd Moellmann <gerd@gnu.org>
8077
8078 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
8079 (syms_of_xfaces): Defsubr Sdump_colors.
8080 (x_free_colors): Don't treat b&w specially on default visual.
8081 (x_free_dpy_colors): New function.
8082 (free_face_colors): Don't check visual class; it's done
8083 in x_free_colors.
8084
8085 * xterm.c (x_frame_of_widget): New function.
8086 (x_alloc_nearest_color_for_widget): Use it.
8087 (x_copy_dpy_color): New function.
8088 (x_destroy_window): Free various colors.
8089
5050a2ef
KH
80902000-06-12 Kenichi Handa <handa@etl.go.jp>
8091
8092 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
8093
8094 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
8095
8096 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
8097
8098 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
8099
8100 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
8101
fb1b041d
DL
81022000-06-11 Dave Love <fx@gnu.org>
8103
8104 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
8105
ff96b5f4
EZ
81062000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
8107
8108 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
8109
db8eeecd
GM
81102000-06-11 Gerd Moellmann <gerd@gnu.org>
8111
ed1056b3 8112 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
8113 to `XEvent *'.
8114
49b71c5f
KH
81152000-06-10 Kenichi Handa <handa@etl.go.jp>
8116
c479bd55
KH
8117 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
8118 (regex_compile): Fix the code for handling the case of single byte
8119 char and multibyte char being mixed in a range within [...].
8120
ff6a65c2
KH
8121 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
8122 and dst_multibyte members of coding.
8123
49b71c5f
KH
8124 * charset.c (update_charset_table): Update the table
8125 bytes_by_char_head.
8126 (init_charset_once): Initialize elements of bytes_by_char_head to
8127 1 except for leading codes for private charases.
8128
8129 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
52283633 8130 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
49b71c5f 8131
9e80b57d
KR
81322000-06-09 Ken Raeburn <raeburn@gnu.org>
8133
8134 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
8135 access the data it doesn't point to.
8136
f83fe4b4
GM
81372000-06-08 Gerd Moellmann <gerd@gnu.org>
8138
8139 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 8140 will be translated to a switch-frame event when reading the
f83fe4b4
GM
8141 event queue. This is necessary because Emacs otherwise won't
8142 perform a switch-frame to a new frame until some other event, for
8143 example a keystroke event, forces it to do so. This has various
8144 effects, one visible being that the cursor of a frame created with
8145 C-x 5 2 or switched to with a window manager key binding like
8146 A-TAB stays hollow because selected_window isn't on the newly
8147 focused frame until the switch-frame is performed.
8148
8149 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
8150 generating a switch-frame event if necessary.
8151
8152 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
8153
8154 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
8155 it's an integer.
8156
0890801b
KH
81572000-06-08 Kenichi Handa <handa@etl.go.jp>
8158
52283633 8159 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
0890801b 8160
173cbca8
GM
81612000-06-07 Gerd Moellmann <gerd@gnu.org>
8162
3091c2a6
GM
8163 * window.c (displayed_window_lines): Take empty lines at
8164 the bottom of a window into account.
427ec082 8165
f38952fe
GM
8166 * window.c (displayed_window_lines): New function.
8167 (Fmove_to_window_line): Use displayed_window_lines to determine
8168 the number of lines to move, instead of using the window's height.
8169
8170 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
8171 to stop reading, even if the form read sets point to a different
8172 value when evaluated.
8173
427ec082 8174 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
8175 put the cursor.
8176
6ba6c818
KH
81772000-06-07 Kenichi Handa <handa@etl.go.jp>
8178
8179 * fileio.c (e_write): Free composition data if stored in
8180 coding->cmp_data.
8181
5f1aea9a
GM
81822000-06-06 Gerd Moellmann <gerd@gnu.org>
8183
666852af
GM
8184 * xdisp.c (display_line): Set row's and iterator's
8185 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
8186 Set cursor even if row ends in the middle of a character.
8187 (dump_glyph_row): Print values of new flags.
8188 (redisplay_window) <cursor movement in unchanged window>: When
8189 point has been moved forward, and PT is at the end of the cursor
8190 row, don't place the cursor in the next row if the cursor row ends
8191 in the middle of a character or at ZV.
8192
8193 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
8194 (struct glyph_row): Add starts_in_middle_of_char_p and
8195 ends_in_middle_of_char_p.
8196 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
8197 ends_in_middle_of_char_p flag.
8198 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
8199
d13f3e2e
GM
8200 * term.c (append_glyph): Revert change of 2000-06-06.
8201
8202 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
8203 padding glyph not fitting on line as whole character not
8204 fitting on line.
8205
5f1aea9a
GM
8206 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
8207 this isn't true for images with `:ascent 100'.
8208
10cda9b0
KH
82092000-06-06 Kenichi Handa <handa@etl.go.jp>
8210
ed00559d
KH
8211 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
8212 as modified if it is originally unmodified.
8213
10cda9b0
KH
8214 * term.c (encode_terminal_code): Change the way to check if
8215 terminal coding does any conversion.
8216 (append_glyph): Set glyph->pixel_width correctly.
8217
8218 * xdisp.c (display_line): While checking line continuation, pay
8219 attention to a padding glyph.
8220
1969fae2
GM
82212000-06-05 Gerd Moellmann <gerd@gnu.org>
8222
8223 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
8224
162ccef4
DL
82252000-06-05 Dave Love <fx@gnu.org>
8226
f19f32dd
DL
8227 * xdisp.c: Include fontset.h.
8228
8229 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
8230
8231 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
8232
8233 * dispnew.c: Conditionally include term.h.
8234
8235 * coding.h: Declare code_convert_string_norecord.
8236
8237 * frame.h (struct frame): Use volatile unconditionally.
8238
8239 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
8240
8241 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
8242
8243 * systime.h: Protect against multiple inclusion.
8244 (timezone) [USG5_4]: Define as time_t.
8245
8246 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
8247 (Foptimize_char_table, make_temp_name): Declare.
8248
8249 * Makefile.in (xdisp.o): Depend on fontset.h.
8250
8251 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
8252
8253 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
8254 (Foptimize_char_table, make_temp_name): Declare.
8255
427ec082 8256 * s/irix4-0.h:
162ccef4
DL
8257 * s/irix5-0.h:
8258 * s/netbsd.h: Don't define autoconfiscated MATHERR.
8259
2082fe81
DL
82602000-06-02 Dave Love <fx@gnu.org>
8261
8262 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
8263
dcf671d2
GM
82642000-06-02 Gerd Moellmann <gerd@gnu.org>
8265
8266 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 8267 result face, set flags in that face indicating that colors may not
dcf671d2
GM
8268 be freed.
8269
8270 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
8271 glyph, use the ASCII NUL character to determine the face.
8272
d42122a3
DL
82732000-06-02 Dave Love <fx@gnu.org>
8274
8275 * sysdep.c: Conditionally include stdlib.h, unistd.h.
8276 (VFORK_RETURN_TYPE): Remove.
427ec082 8277
d42122a3
DL
8278 * config.in: Add NO_MATHERR.
8279
dd432f16
DL
82802000-06-01 Dave Love <fx@gnu.org>
8281
90aa4ea8
DL
8282 * cmds.c (internal_self_insert): Don't check
8283 Vbefore_change_function, Vafter_change_function.
8284
8285 * insdel.c (signal_before_change, signal_after_change): Likewise.
8286
8287 * buffer.c (Vbefore_change_function, Vafter_change_function):
8288 Variables and their initializations deleted.
8289
2330c9d4
DL
8290 * callint.c (Fcall_interactively): Doc fix.
8291
dd432f16
DL
8292 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
8293
bf9e8804
DL
82942000-05-31 Dave Love <fx@gnu.org>
8295
8296 * textprop.c: Revert last change -- duplicated.
8297
3694b4ab
GM
82982000-05-31 Gerd Moellmann <gerd@gnu.org>
8299
8300 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
8301 in #if 0.
8302
8303 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
8304
f14156cd
JR
83052000-05-31 Jason Rumney <jasonr@gnu.org>
8306
8119aab8
JR
8307 * search.c (Fre_search_forward, Fre_search_backward)
8308 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
8309
f14156cd
JR
8310 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
8311
4aab9be3
JR
83122000-05-30 Jason Rumney <jasonr@gnu.org>
8313
8314 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
8315 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
8316
52283633 8317 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
4aab9be3
JR
8318
8319 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
8320 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
8321 expand a nil default_filename.
8322
8323 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
8324 pointer to glyph_to_pixel_coords, not a frame.
8325
8326 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
8327 coding.h to dependencies.
8328
8329 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
8330
8331 * w32console.c (glyph_to_pixel_coords): Change first parameter to
8332 window pointer to be consistent with w32term.c and xterm.c.
8333
8334 * w32fns.c: Format and doc changes to bring closer to xfns.c.
8335 (VIETNAMESE_CHARSET): Define if not defined in system headers.
8336 (Qline_spacing, Qcenter): New variables.
8337 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
8338 (x_set_line_spacing): New function.
52283633 8339 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
4aab9be3
JR
8340 (x_specified_cursor_type): New function.
8341 (x_set_cursor_type): Use it.
8342 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
8343 and icon strings.
8344 (validate_x_resource_name, x_get_resource_string): Measure lengths
8345 of external strings in bytes.
8346 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
8347 GetTextExtentPoint32 with NULL title.
8348 (Fx_create_frame): Initialize Qline_spacing.
8349 (w32_load_system_font): Initialize font->double_byte_p.
8350 (x_to_w32_charset): Use Vw32_charset_info_alist.
8351 (Image, busy cursor, tooltip functions): Merged changes from
8352 xfns.c. Not yet functional on Windows.
8353
8354 * w32gui.h (W32FontStruct): Add double_byte_p member.
8355
8356 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
8357 (emacs_button_translation): Use it.
8358 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
8359 in `mask' to be set.
8360
8361 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
8362 menu strings.
8363
8364 * w32term.c: Format and doc changes to bring closer to xterm.c.
8365 (w32_char_font_type): New enum.
8366 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
8367 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
8368 (w32_encode_char): New function.
8369 (x_encode_char): Removed.
8370 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
8371 x_encode_char and w32_font_is_double_byte.
8372 (x_produce_image_glyph): Use image_ascent.
8373 (x_produce_glyphs): Use new version of w32_per_char_metric and
8374 handle NULL return value. Allow extra line spacing.
8375 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
8376 (w32_get_glyph_overhangs): Remove unicode_p param. Use
8377 w32_font_type member of glyph instead.
8378 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
8379 (fast_find_position): Make sure not to consider rows not visible
8380 in the window.
8381 (w32_read_socket) [WM_MENUSELECT]: Cannot call
8382 w32_menu_display_help with input blocked, as it can abort.
8383 (x_display_and_set_cursor): Choose cursor depending
8384 on buffer-local value of cursor_type.
8385 (x_draw_bar_cursor): Add parameter WIDTH.
8386
8387 * w32term.h (CP_DEFAULT): Define.
8388 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
8389
10fc3187
GM
83902000-05-30 Gerd Moellmann <gerd@gnu.org>
8391
8392 * search.c (Fre_search_forward, Fre_search_backward)
8393 (Fposix_search_backward, Fposix_search_forward): Doc fix.
8394
d0555360
KH
83952000-05-30 Kenichi Handa <handa@etl.go.jp>
8396
8397 * coding.c (detect_coding_iso2022): Fix code for checking
8398 CODING_CATEGORY_MASK_ISO_8_2.
8399
f1ad044f
SM
84002000-05-29 Stefan Monnier <monnier@cs.yale.edu>
8401
8402 * regex.c (PREFETCH_NOLIMIT): New function.
8403 (re_match_2_internal): Use it and adjust the end_match_2 logic.
8404
84ec3b4b
GM
84052000-05-29 Gerd Moellmann <gerd@gnu.org>
8406
66254a13
GM
8407 * syntax.c (find_defun_start): Move test for
8408 open_paren_in_column_0_is_defun_start outside of the loop.
8409
49e70dec
GM
8410 * xdisp.c (redisplay_window): Really switch buffers when
8411 displaying mode lines, and temporarily set selected_frame to the
8412 frame of the window that's redisplayed.
8413
84ec3b4b
GM
8414 * xfaces.c (free_realized_faces): Block/unblock input.
8415 (free_realized_multibyte_face): Ditto.
8416
869a3a14
DL
84172000-05-29 Dave Love <fx@gnu.org>
8418
8419 * textprop.c (Qkeymap): New variable.
8420 (syms_of_textprop): Intern it.
8421
8422 * keymap.c: Include intervals.h.
8423 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
8424
8425 * Makefile.in (keymap.o): Depend on intervals.h.
8426
8427 * keyboard.c (menu_bar_items, tool_bar_items)
8428 (Fexecute_extended_command): Deal with `keymap' property.
8429 (read_key_sequence): Track map from `keymap' property as well as
8430 `local_map'.
8431
8432 * intervals.c (get_local_map): Extra arg to allow looking for
8433 `keymap' too.
8434
8435 * intervals.h (map_property): New enum.
8436 (get_local_map): Extra arg using it.
8437 (Qkeymap): Declare.
8438
84ec3b4b 8439 * lisp.h (get_local_map): Don't declare here.
869a3a14 8440
89d0c844
KH
84412000-05-29 Kenichi Handa <handa@etl.go.jp>
8442
8443 * Makefile.in (callproc.o): Depend on composite.h.
8444
8445 * callproc.c: Include composite.h.
8446 (Fcall_process): Handle composition correctly.
8447
8448 * coding.h (coding_allocate_composition_data): Extern it.
8449 (coding_restore_composition): Likewise.
8450
8451 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
8452 yet allocated, finish decoding with result
8453 CODING_FINISH_INSUFFICIENT_CMP.
8454 (coding_allocate_composition_data): Make it non-static.
8455 (coding_restore_composition): Likewise.
8456
797a084a
EZ
84572000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
8458
8459 * charset.c (syms_of_charset): Revert last change.
8460
cf872af5
EZ
84612000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
8462
8463 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
8464 charsets as unibyte, with 1-column screen width. Sent by Kenichi
8465 Handa.
cf872af5 8466
5b1ae051
EZ
84672000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
8468
8469 * charset.c (syms_of_charset): Set width of character sets
8470 eight-bit-control and eight-bit-graphic to 1 column.
8471
34ec9ebe
GM
84722000-05-26 Gerd Moellmann <gerd@gnu.org>
8473
8474 * config.in (HAVE_SPEED_T): New define.
8475
8476 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
8477 `extern speed_t'.
8478
dd854dc2
DL
84792000-05-26 Dave Love <fx@gnu.org>
8480
8481 * coding.c (shrink_decoding_region): Initialize eol_conversion.
8482
8483 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
8484 (Fsubr_arity): New function.
8485 (syms_of_data): Install them.
8486
ba9f8f95
KH
84872000-05-26 Kenichi Handa <handa@etl.go.jp>
8488
0f3e0672
KH
8489 * charset.c (init_charset_once): Set the table bytes_by_char_head
8490 correctly.
8491
cebefb44
KH
8492 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
8493 the default fontset to what Emacs uses by default.
0f3e0672
KH
8494 (check_registry_encoding): This function deleted.
8495 (Fset_fontset_font): Remove the adhoc condition for the default
8496 fontset. Allow cons in FONTNAME.
cebefb44 8497
0f3e0672
KH
8498 * fns.c (map_char_table): Ignore char-table entries for
8499 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 8500
7a18af49
KR
85012000-05-25 Ken Raeburn <raeburn@gnu.org>
8502
8503 * emacs.c (main): Initialize keyboard syms before initializing
8504 window code, so face names are available.
8505
d2af47df
SM
85062000-05-25 Stefan Monnier <monnier@cs.yale.edu>
8507
8508 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
8509 of an anchor at the beginning of a shy-group.
8510
fc6a6a4e
GM
85112000-05-25 Gerd Moellmann <gerd@gnu.org>
8512
8513 * xdisp.c (handle_invisible_prop): Don't try to skip over
8514 invisible text if end of text is already reached.
8515
005f0d35
DL
85162000-05-25 Dave Love <fx@gnu.org>
8517
02513cdd
DL
8518 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
8519
005f0d35
DL
8520 * coding.c (encode_eol): Add null statement after label.
8521
89f6ca4e
EZ
85222000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
8523
8524 * w16select.c (Fw16_set_clipboard_data): Fix the change from
8525 2000-05-20.
8526
a4e1759e
KH
85272000-05-25 Kenichi Handa <handa@etl.go.jp>
8528
8529 * ccl.c (ccl_driver): Fix previous change.
8530
eacfd7fe
KH
85312000-05-25 Kenichi Handa <handa@etl.go.jp>
8532
46ab33a9
KH
8533 * coding.c (run_pre_post_conversion_on_str): Set point to the
8534 beginning of buffer before calling coding->post_read_conversion.
8535 (decode_coding_string): Give correct args to
8536 run_pre_post_conversion_on_str.
8537 (encode_coding_string): Likewise.
8538
eacfd7fe
KH
8539 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
8540 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
8541 eight-bit-graphic correctly.
8542
f8569325
DL
85432000-05-24 Kenichi HANDA <handa@etl.go.jp>
8544
8545 * fileio.c (Finsert_file_contents): Even if a file is not found,
8546 execute codes for setting up coding system. Call
8547 after-insert-file-functions unconditionally.
8548
04545643
GM
85492000-05-24 Gerd Moellmann <gerd@gnu.org>
8550
8551 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
8552 BSD_PGRPS are not defined.
8553
747d90ea
KH
85542000-05-24 Kenichi Handa <handa@etl.go.jp>
8555
8556 * charset.c (update_charset_table): Accept nil in LONG_NAME and
8557 DESCRIPTION.
8558 (syms_of_charset): Avoid building same strings.
8559
716e3b88
GM
85602000-05-23 Gerd Moellmann <gerd@gnu.org>
8561
8562 * lread.c (Fload): Add a comment about the meaning of
8563 Vuser_init_file being t.
8564
8565 * puresize.h (BASE_PURESIZE): Increase to 675000.
8566
8567 * s/gnu-linux.h (setpgrp): Don't define it here because this
8568 prevents compilation on GNU/Linux systems with glib 2.2.
8569
8570 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
8571 as setpgid.
427ec082 8572
9aeb39fa
EZ
85732000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
8574
8575 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
8576 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
8577 version.
8578 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
8579
29ced61b
KH
85802000-05-23 Kenichi Handa <handa@etl.go.jp>
8581
52283633 8582 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
0574a2ed 8583
3d80f24d
KH
8584 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
8585
52283633 8586 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
3d80f24d 8587
29ced61b
KH
8588 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
8589
d7e00792
KH
85902000-05-22 Kenichi Handa <handa@etl.go.jp>
8591
c9d80d38
KH
8592 * keyboard.c (read_char): Allow character codes 128..255 to be
8593 handled by input-method-function.
8594
d7e00792
KH
8595 * insdel.c (adjust_markers_for_replace): Fix previous change.
8596 (adjust_after_replace): If PREV_TEXT is nil, call
8597 adjust_markers_for_insert, not adjust_markers_for_replace.
8598
087121cc 85992000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 8600
087121cc
GM
8601 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
8602 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
8603 [HAVE_GRANDPT]: Define.
8604 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
8605
8606 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
8607 like SYSV_PTYS.
8608
8609 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
8610
8611 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
8612
c9671f81
KH
86132000-05-20 Kenichi Handa <handa@etl.go.jp>
8614
8615 The following changes are to handle 8-bit characters in a
8616 multibyte buffer/string without facing with byte combining
8617 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
8618 eight-bit-graphic (for 0xA0..0xFF) are introduced.
8619
8620 * Makefile.in (fns.o): Depend on charset.h.
8621
8622 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
8623 convert it to unibyte.
8624 (make_string): Use parse_str_as_multibyte, not chars_in_text.
8625
8626 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
8627 apparent char boundary.
8628 (Fset_buffer_multibyte): Convert 8-bit characters in the range
8629 0x80..0x9F to/from multibyte form.
8630
8631 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
8632 to unibyte.
8633
8634 * callproc.c (Fcall_process): Always encode an argument string if
8635 it is multibyte. Setup src_multibyte and dst_multibyte members of
8636 process_coding properly.
ce75fd23 8637
c9671f81
KH
8638 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
8639 SPLIT_NON_ASCII_CHAR.
8640
8641 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
8642 as is.
8643 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
8644
52283633 8645 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
c9671f81 8646 (SPLIT_CHARACTER_SEQ): This macro deleted.
52283633 8647 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
c9671f81
KH
8648 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
8649 and eight-bit-graphic.
8650 (char_to_string): Likewise. Signal an error for too large
8651 character code.
8652 (char_printable_p): Return 0 for 8-bit characters.
8653 (update_charset_table): Update iso_charset_table only when a final
8654 character is non-negative.
8655 (find_charset_in_text): Renamed from find_charset_in_str.
8656 Arguments and return value changed. Callers changed.
8657 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
8658 be -1 if CHARSET is used only internally.
8659 (Fmake_char_internal): Handle new charsets; eight-bit-control and
8660 eight-bit-graphic.
8661 (Fcharset_after): Simplified.
8662 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
8663 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
8664 (multibyte_chars_in_text): Simplified by assuming there's no
8665 invalid multibyte sequence.
52283633
SM
8666 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
8667 (str_as_unibyte): New functions.
8668 (Fstring): Simpified by assuming that byte combining never happens.
c9671f81
KH
8669 (init_charset_once): Initialization for
8670 LEADING_CODE_8_BIT_CONTROL.
8671 (syms_of_charset): Intern and staticpro Qeight_bit_control and
8672 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
8673 eight-bit-control and eight-bit-graphic.
8674
52283633
SM
8675 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
8676 (CHARSET_8_BIT_GRAPHIC): New macros.
c9671f81
KH
8677 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
8678 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
8679 (CHARSET_REVERSE_CHARSET): Likewise.
8680 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
8681 eight-bit-graphic.
8682 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
8683 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
8684 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
8685 encounter an invalid multibyte sequence.
8686 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
8687 sequence is always valid.
8688 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
52283633 8689 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
c9671f81
KH
8690 (CHAR_STRING): For 8-bit characters, call char_to_string.
8691 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
8692 multibyte sequence is always valid.
8693 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
52283633
SM
8694 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
8695 (str_as_unibyte): Extern them.
c9671f81 8696 (BCOPY_SHORT): Fix a bug.
52283633 8697 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
c9671f81
KH
8698 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
8699 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
8700 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
8701
bd4bde7f 8702 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81 8703 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
52283633
SM
8704 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
8705 (EMIT_BYTES): New macros.
8706 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
8707 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
c9671f81
KH
8708 macros deleted.
8709 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
8710 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
8711 check the validity of multibyte sequence.
8712 (decode_coding_emacs_mule): New function.
8713 (encode_coding_emacs_mule): New macro.
8714 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
8715 the source.
8716 (DECODE_ISO_CHARACTER): Just return a character code.
8717 (DECODE_COMPOSITION_START): Set coding->result instead of result.
8718 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
8719 EMIT_CHAR to produced decoded characters. Exit the loop only by
8720 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
8721 block here.
8722 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
8723 only position codes for an invalid character.
8724 (encode_designation_at_bol): Return new destination pointer. 5th
8725 arg DSTP is changed to DST.
8726 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
8727 from the source by ONE_MORE_CHAR. Don't handle the case of last
8728 block here.
8729 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
8730 macros deleted.
52283633
SM
8731 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
8732 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
c9671f81
KH
8733 TWO_MORE_BYTES to fetch a byte from the source.
8734 (encode_eol): Pay attention to coding->src_multibyte.
8735 (detect_coding, detect_eol): Preserve members src_multibyte and
8736 dst_multibyte.
8737 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
8738 (encoding_buffer_size): Set magnification to 3 for all coding
8739 systems that require encoding.
8740 (ccl_coding_driver): For decoding, be sure that the result is
8741 valid multibyte sequence.
8742 (decode_coding): Initialize coding->errors and coding->result.
8743 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
8744 and raw-text, always call decode_eol. Handle the case of last
8745 block here. If not coding->dst_multibyte, convert the resulting
8746 sequence to unibyte.
8747 (encode_coding): Initialize coding->errors and coding->result.
8748 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
8749 and raw-text, always call encode_eol. Handle the case of last
8750 block here.
8751 (shrink_decoding_region, shrink_encoding_region): Detect cases
8752 that we can't skip data more rigidly.
8753 (code_convert_region): Setup src_multibyte and dst_multibyte
8754 members of coding. For decoding, if the buffer is multibyte,
8755 convert the source sequence to unibyte in advance. For encoding,
8756 if the buffer is multibyte, convert the resulting sequence to
8757 multibyte afterward.
8758 (run_pre_post_conversion_on_str): New function.
8759 (code_convert_string): Deleted and divided into the following two.
8760 (decode_coding_string, encode_coding_string): New functions.
8761 (code_convert_string1, code_convert_string_norecord): Call one of
8762 above.
8763 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
8764 MAKE_NON_ASCII_CHAR.
52283633
SM
8765 (Fset_terminal_coding_system_internal)
8766 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
c9671f81
KH
8767 and dst_multibyte members.
8768 (init_coding_once): Initialize iso_code_class with new enum
8769 ISO_control_0 and ISO_control_1.
8770
8771 * coding.h (enum iso_code_class_type): Member ISO_control_code is
8772 devided into ISO_control_0 and ISO_control_1.
8773 (struct coding_system): New members src_multibyte, dst_multibyte,
8774 errors, and result. Delete member fake_multibyte.
8775 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
8776 nonzero.
8777 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
8778 nonzero.
8779
8780 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
8781 (Faset): Likewise.
8782
8783 * editfns.c (Fformat): Be sure to convert 8-bit characters to
8784 multibyte form.
8785 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
8786 combining occurs.
8787 (Ftranspose_region): Delete codes for handling byte combining.
8788
8789 * fileio.c (Finsert_file_contents): Setup src_multibyte and
8790 dst_multibyte members of coding. On handling REPLACE on unibyte
8791 buffer, convert the result of decode_coding to unibyte. On
8792 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 8793 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
8794 multibyteness of the source (buffer or string).
8795
8796 * fns.c (concat): Handle 8-bit characters correctly.
8797 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
8798 unibyte in the result.
8799 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
8800 valid multibyte form in the result.
8801 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
8802 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
8803 return -1, signal an error.
8804 (base64_encode_1): New arg MULTIBYTE. Get each character by
8805 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
8806 character is found, return -1.
8807 (Fbase64_decode_region): Delete codes for handling byte-combining.
8808 Treat each decoded byte as a unibyte character.
8809 (Fbase64_decode_string): Return unibyte string.
8810 (Fcompare_strings, concat, string_byte_to_char): Use
8811 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
8812 FETCH_STRING_CHAR_ADVANCE.
8813 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
8814 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
8815
8816 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
8817 SPLIT_NON_ASCII_CHAR.
8818 (fontset_ref_via_base, fontset_set): Likewise
8819
8820 * insdel.c (adjust_markers_for_record_delete): Deleted.
8821 (adjust_markers_for_insert): Argument changed. Caller changed.
8822 (adjust_markers_for_replace): Likewise.
52283633
SM
8823 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
8824 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
c9671f81
KH
8825 (copy_text): Delete unused local varialbe c_save. For converting
8826 to multibyte, be sure to make all 8-bit characters in valid
8827 multibyte form.
8828 (count_size_as_multibyte): Handle 8-bit characters correctly.
52283633
SM
8829 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
8830 (adjust_after_replace, replace_range, del_range_2)
c9671f81 8831 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
52283633
SM
8832 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
8833 (adjust_after_replace, replace_range, del_range_2) Delete codes for
c9671f81
KH
8834 handling byte combining.
8835 (adjust_before_replace): Deleted.
427ec082 8836
c9671f81
KH
8837 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
8838 SPLIT_NON_ASCII_CHAR.
8839 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
52283633 8840 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
8841 (Fkey_description): Likewise.
8842
8843 * lread.c (read1): On reading multibyte string, be sure to make
8844 all 8-bit chararacters in valid multibyte form.
8845 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
8846
8847 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
8848 unconditionally.
8849
8850 * process.c (Fstart_process): GCPRO current_dir before calling
8851 Ffind_operation_coding_system. Encode arguments here.
8852 (create_process): Don't encode arguments here. Setup
8853 src_multibyte and dst_multibyte members of struct coding.
8854 (read_process_output): Setup src_multibyte and dst_multibyte
8855 members of struct coding. If the output is to multibyte buffer,
8856 always decode the output of the process. Adjust the
52283633 8857 representation of 8-bit characters to the multibyteness of the output.
c9671f81
KH
8858 (send_process): Setup coding->src_multibyte according to the
8859 multibyteness of the source.
8860
52283633 8861 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
8862 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
8863 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
8864
52283633 8865 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
c9671f81
KH
8866
8867 * w16select.c (Fw16_set_clipboard_data): Setup members
8868 src_multibyte and dst_multibyte of coding. Adjusted for the
8869 change for find_charset_in_str.
8870 (Fw16_get_clipboard_data): Likewise.
8871
8872 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
8873 dst_multibyte of coding.
8874 (x_to_w32_font): Likewise.
8875
8876 * w32select.c (Fw32_set_clipboard_data): Setup members
8877 src_multibyte and dst_multibyte of coding. Adjusted for the
8878 change for find_charset_in_str.
8879 (Fw32_get_clipboard_data): Likewise.
8880
8881 * xdisp.c (get_next_display_element): Handle 8-bit characters
8882 correctly.
52283633
SM
8883 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
8884 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
c9671f81
KH
8885
8886 * xselect.c (selection_data_to_lisp_data): Setup members
8887 src_multibyte and dst_multibyte of coding. Adjusted for the
8888 change for find_charset_in_str.
8889 (lisp_data_to_selection_data): Likewise.
8890
5f64c9e0
GM
88912000-05-19 Gerd Moellmann <gerd@gnu.org>
8892
52283633 8893 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
2b63d473 8894
5f64c9e0
GM
8895 * dispextern.h (Vimage_types): Add extern declaration.
8896
8897 * xdisp.c (Vimage_types): Moved here from xfns.c.
8898 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
8899
8900 * xfns.c (Vimages_types): Moved to xdisp.c.
8901 (syms_of_xfns): Move `image-types' to xdisp.c.
8902
8903 * w32fns.c (Vimage_types): Removed.
8904 (syms_of_w32fns): Remove `image-types'.
8905
813086ea
KH
89062000-05-18 Kenichi Handa <handa@etl.go.jp>
8907
8908 * fns.c (map_char_table): Pay attention to character number of
8909 charset. Check the validity of charset at the first level. For
8910 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
8911 the default value.
8912
8913 * fontset.c: Include "buffer.h".
8914 (fs_load_font): If the face has fontset, record the face ID in
8915 that fontset.
8916 (Finternal_char_font): New function.
8917 (accumulate_font_info): New function.
8918 (Ffontset_info): Rewritten for the new fontset implementation.
8919 (syms_of_fontset): Register Vdefault_fontset in the first element
8920 of Vfontset_table. Include Vdefault_fontset in
8921 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
8922 function.
8923
bdaebbf0
DL
89242000-05-16 Dave Love <fx@gnu.org>
8925
8926 * m/iris5d.h: Deleted -- unused.
8927
cb613bb8
GM
89282000-05-16 Gerd Moellmann <gerd@gnu.org>
8929
b15f3b77
GM
8930 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
8931 `invalid' instead of `illegal'.
8932
8933 * indent.c (Fmove_to_column): When ending within a tab, insert
8934 spaces first so that markers at the end of the tab get adjusted.
8935
835c1b36
GM
8936 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
8937 buffer list that wasn't selected in that frame.
8938
cb613bb8
GM
8939 * filelock.c (get_boot_time): To obtain an 8 char file name, which
8940 is needed on mescaline, use a 2 char prefix, and call
8941 make_temp_name with second arg non-zero.
8942
8943 * fileio.c (make_temp_name): New function, extracted from
8944 Fmake_temp_name.
8945 (Fmake_temp_name): Use it.
8946
f685bea9
EZ
89472000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
8948
52283633 8949 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
f685bea9 8950
a1b8d58b
GM
89512000-05-15 Gerd Moellmann <gerd@gnu.org>
8952
8953 * Makefile.in (lisp): Add env.elc.
8954
8955 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
8956
a265079f
GM
89572000-05-12 Gerd Moellmann <gerd@gnu.org>
8958
8959 * search.c (Freplace_match): Handle case of `\N' in the
8960 replacement when there's no group N.
8961
da4496b6
GM
89622000-05-11 Gerd Moellmann <gerd@gnu.org>
8963
0ace421a
GM
8964 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
8965 of the message to message_dolog.
8966
1172eb8d
GM
8967 * keyboard.c (read_char): Don't clear current message for help
8968 events; let the code handling help events handle this. Change
8969 code detecting help events that should be ignored.
8970
da4496b6
GM
8971 * xdisp.c (handle_single_display_prop): Don't try to set PT if
8972 we're interating over a string.
8973
0623e40f
DL
89742000-05-09 Dave Love <fx@gnu.org>
8975
8976 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
8977 that offset before writing. Move gcpro region past call of
8978 Ffile_regular_p.
8979
bae2503b
DL
89802000-05-04 Dave Love <fx@gnu.org>
8981
8982 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
8983
ec82fb2f
GM
89842000-05-04 Gerd Moellmann <gerd@gnu.org>
8985
8986 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
8987 of inserted characters when BUF equals the current buffer, and PT
8988 is in front of or equal to FROM.
8989
cbf18892
GM
89902000-05-03 Gerd Moellmann <gerd@gnu.org>
8991
4ff40dd0
GM
8992 * xdisp.c (handle_single_display_prop): If display property value
8993 is invalid, or something not supported on the frame, restore
8994 iterator's position to what it was initially. Make sure to return
8995 0 for invalid and unsupported property values.
8996
cbf18892
GM
8997 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
8998 that x_per_char_metric returns null.
8999
1b0672c3
GM
90002000-05-02 Gerd Moellmann <gerd@gnu.org>
9001
576da55d
GM
9002 * xterm.h (struct face): Add forward declaration.
9003 (struct image): Ditto.
9004 (image_ascent): Add prototype.
9005
9006 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
9007 (x_draw_image_relief, x_draw_image_foreground_1): Call function
9008 image_ascent instead of using IMAGE_ASCENT.
9009
9010 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
9011 (IMAGE_ASCENT): Removed.
9012
9013 * xfns.c (Qcenter): New variable.
9014 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
9015 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
9016 (image_ascent): New function.
9017 (lookup_image): Recognize `:ascent center'.
9018 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
9019 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
9020 (xbm_load): Don't set image's ascent here.
9021 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
9022 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
9023 check ascent values here.
9024 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
9025 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
9026 (syms_of_xfns): Initialize Qcenter.
9027
1b0672c3
GM
9028 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
9029 to the limits, increase the limits.
9030
0d7811ed
KH
90312000-05-01 Kenichi Handa <handa@etl.go.jp>
9032
9033 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
52283633 9034 Check Vfont_encoding_alist against the full name of the opened font.
0d7811ed 9035
a943a5ca
GM
90362000-04-28 Gerd Moellmann <gerd@gnu.org>
9037
9038 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
9039 taller than the window.
9040
5dba1e29
KH
90412000-04-28 Kenichi Handa <handa@etl.go.jp>
9042
9043 * xfaces.c (realize_x_face): Fix the argument of the second
9044 xassert. BASE_FACE may not be a face for ASCII.
9045
353964e3
GM
90462000-04-27 Gerd Moellmann <gerd@gnu.org>
9047
c76e04a8
GM
9048 * print.c (print_object): Treat print-length < 0 as nil.
9049
9050 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
9051
9052 * s/freebsd.h (TERMCAP_OBJ): Removed.
9053 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
9054
9055 * lread.c (read1): Don't treat period followed by certain
9056 characters as symbol start.
9057
9058 * xfns.c (slurp_file): New function.
9059 (xbm_image_p): Handle case of in-memory XBM files.
9060 (xbm_scan): Rewritten to work on memory buffers instead of files.
9061 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
9062 Work on memory buffers instead of files. If DATA is null test
9063 if buffer looks like an in-memory XBM file.
9064 (xbm_load_image): Renamed from xbm_load_image_file. Work on
9065 memory buffers instead of files.
9066 (xbm_file_p): New function.
9067 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
9068
353964e3
GM
9069 * lread.c (end_of_file_error): New function.
9070 (read1): Call it instead of signaling `end-of-file' directly.
9071
427ec082 9072 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
9073 with Fprinc instead of Fprin1.
9074
24d744ac
KR
90752000-04-26 Ken Raeburn <raeburn@gnu.org>
9076
9077 * window.c (freeze_window_start): Check that minibuffer scroll
9078 window isn't nil before extracting the window structure pointer
9079 from it.
9080
9081 * undo.c (record_delete): If we hit the end of the undo list, stop
9082 picking elements apart.
9083
7464346d
GM
90842000-04-26 Gerd Moellmann <gerd@gnu.org>
9085
9086 * xdisp.c (display_line): If lines are continued, restore
9087 iterator's ascent/descent information to the values before the
9088 first glyph not fitting on the line.
9089
612839b6
GM
90902000-04-25 Gerd Moellmann <gerd@gnu.org>
9091
9092 * xdisp.c (try_window_id) <all changes above window start>: Adjust
52283633 9093 positions in glyph matrix. Don't compute new window end positions.
612839b6
GM
9094
9095 * dispnew.c (increment_matrix_positions): Renamed from
9096 increment_glyph_matrix_buffer_positions.
9097 (increment_row_positions): Renamed from
9098 increment_glyph_row_buffer_positions.
9099
9100 * dispextern.h: Change names of renamed functions from dispnew.c
9101 in prototypes.
9102
cc181e95
GM
91032000-04-24 Gerd Moellmann <gerd@gnu.org>
9104
abfcc168
GM
9105 * fileio.c (Fdo_auto_save): Create directories for auto-save
9106 list file if necessary.
9107
cc181e95
GM
9108 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
9109 from buffer or frame.
9110 (automatic_hscrolling_p): New variable.
9111 (hscroll_windows): Scroll windows horizontally only if automatic
9112 hscrolling is allowed.
9113 (syms_of_xdisp): New variable `automatic-hscrolling'.
9114
9115 * frame.h (struct frame): Add member extra_line_spacing.
9116
9117 * xfns.c (x_set_line_spacing): New function.
9118 (Fx_create_frame): Set line spacing from resources.
9119 (Qline_spacing): New variable.
9120 (syms_of_xfns): Initialize Qline_spacing.
427ec082 9121
cc181e95
GM
9122 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
9123
9124 * buffer.c (init_buffer_once): Handle extra_line_spacing.
9125 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 9126 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
9127 extra_line_spacing from default value.
9128 (init_buffer_once): Initialize default value of extra_line_spacing.
9129
9130 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
9131 and extra3.
9132
9133 * xterm.c (x_produce_glyphs): Remove reference to struct it's
9134 prompt_width. Add extra line spacing.
9135
9136 * term.c (produce_glyphs): Remove reference to struct it's
9137 prompt_width.
9138
9139 * dispextern.h (struct it): Remove member prompt_width, add
9140 extra_line_spacing.
9141
58827478
GM
91422000-04-22 Gerd Moellmann <gerd@gnu.org>
9143
9144 * dispnew.c (update_frame_line): When writing a whole line, make
9145 sure cursor is in the right row afterwards, otherwise a use of
9146 capability `ch' in cmgoto might leave the cursor in the row below.
9147
25a87f42
GM
91482000-04-21 Gerd Moellmann <gerd@gnu.org>
9149
9150 * lisp.h (struct Lisp_Buffer_Cons): Remove.
9151
9152 * keyboard.c (timer_check): Fix typo in comment.
9153
54edf5c2
KH
91542000-04-21 Kenichi Handa <handa@etl.go.jp>
9155
9156 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
9157 name change: ch -> character.
9158
3a64eef5
GM
91592000-04-20 Gerd Moellmann <gerd@gnu.org>
9160
9161 * keyboard.c (echo_message_buffer): New variable.
9162 (echo_now): Set echo_message_buffer to the echo area buffer used
9163 to display the echo.
9164 (cancel_echoing): Reset echo_message_buffer to nil.
9165 (read_char): Code rewritten that handles canceling an echo or
9166 echoing a dash, respectively.
9167
9168 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
9169 directory doesn't exist.
9170
6142fdcb
DL
91712000-04-19 Dave Love <fx@gnu.org>
9172
9173 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
9174 (concat): Don't allow numeric args.
9175 (Fconcat): Doc change.
6142fdcb 9176
ac6b5352
SM
91772000-04-19 Stefan Monnier <monnier@cs.yale.edu>
9178
9179 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
9180 instead define end_match(1|2) more carefully.
9181 Use GET_CHAR_BEFORE_2 for `begline'.
9182
cb9215e4
GM
91832000-04-19 Gerd Moellmann <gerd@gnu.org>
9184
5e3dac3f
GM
9185 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
9186 on 64-bit systems where NULL is defined as `0'.
9187
9188 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
9189 the `variable argument list' to make it work on Alpha.
9190
cb9215e4
GM
9191 * m/alpha.h (_LP64) [!_LP64]: Define.
9192 (ORDINARY_LINK): Define for NetBSD.
9193
9194 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 9195
f532dca0
DL
91962000-04-19 Dave Love <fx@gnu.org>
9197
c750667e
DL
9198 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
9199 change.
9200
9201 * Makefile.in (LIBS): Don't use.
9202 (GETLOADAVG_OBJ): Define again.
9203 (otherobj): Add GETLOADAVG_OBJ.
9204
f532dca0
DL
9205 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
9206
1c7e22fd
GM
92072000-04-18 Gerd Moellmann <gerd@gnu.org>
9208
f6d3257b
GM
9209 * lread.c (read_filtered_event): Cancel and start busy cursor.
9210
427ec082 9211 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
9212 that the per-character metrics may be null.
9213
e10f64e7
GM
92142000-04-17 Gerd Moellmann <gerd@gnu.org>
9215
0daee095
GM
9216 * buffer.c (clone_per_buffer_values): New function.
9217 (Fmake_indirect_buffer): Add optional argument CLONE. Call
9218 clone_per_buffer_values if CLONE is not nil.
9219
e10f64e7
GM
9220 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
9221
38687d43
DL
92222000-04-16 Dave Love <fx@gnu.org>
9223
9224 * Makefile.in: Remove obsolete localcpp stuff.
9225 (GETLOADAVG_OBJ): Don't define.
9226 (obj): Move LIBOBJS...
9227 (otherobj): ... to here.
9228 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
9229 whitespace-only lines after the continuation (Irix).
9230
c21c7262
GM
92312000-04-14 Gerd Moellmann <gerd@gnu.org>
9232
9233 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
9234
9235 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
9236
314767c0
DL
92372000-04-14 Dave Love <fx@gnu.org>
9238
9239 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
9240 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
9241 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
9242 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
9243 NLIST_STRUCT.
9244
9245 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
9246 autoconfiscated HAVE_GETLOADAVG.
9247
9248 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
9249 BROKEN_MKTIME.
9250
a2522dca
GM
92512000-04-14 Gerd Moellmann <gerd@gnu.org>
9252
9253 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
52283633 9254 (fill_in_lock_file_name): Avoid existing files that aren't links.
a2522dca 9255
33744b5d
DL
92562000-04-14 Dave Love <fx@gnu.org>
9257
c21c7262 9258 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
9259 (INTERVAL_SRC): Convert to make variable.
9260 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
9261 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
9262 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
9263 add LIBOBJS.
9264 (SOME_MACHINE_OBJECTS): Remove interval stuff.
9265 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
9266 (shortlisp): Add facemenu, float-sup, frame.
9267 (SOME_MACHINE_LISP): Remove them from here.
9268 (LIBES): Change unused LDLIBS to autoconf LIBS.
9269
9270 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
9271
9d3d5916
KH
92722000-04-14 Kenichi Handa <handa@etl.go.jp>
9273
9274 * composite.c (update_compositions): If FROM and TO are not in a
9275 valid range, do nothing.
9276
198e3c7a
GM
92772000-04-13 Gerd Moellmann <gerd@gnu.org>
9278
52283633 9279 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
198e3c7a 9280
52283633 9281 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
198e3c7a
GM
9282
9283 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
9284 as TERMCAP_OBJ.
9285
055a28c9
EZ
92862000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
9287
9288 * fileio.c (a_write): Remove redundant semi-colons.
9289 (e_write): Return -1 if failed to write all the data.
9290 This fixes the changes made at 1999-12-15.
9291
f5c75033
DL
92922000-04-12 Dave Love <fx@gnu.org>
9293
9294 * fns.c (mapcar1): Test for null vals to support mapc.
9295 (Fmapc): New function.
9296
0c3cfc51
EZ
92972000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
9298
9299 * msdos.c (NUM_MOUSE_BUTTONS): Define.
9300 (IT_frame_up_to_date): Support the buffer local value of
9301 cursor-type, if defined.
9302
33465a31
DL
93032000-04-10 Dave Love <fx@gnu.org>
9304
9305 * editfns.c (preceding-char, following-char): Doc fix.
9306
6ed56568
KR
93072000-04-10 Ken Raeburn <raeburn@gnu.org>
9308
9309 * Makefile.in (temacs): Revert 2000-03-12 change.
9310
7cf80d4e
JR
93112000-04-10 Jason Rumney <jasonr@gnu.org>
9312
9313 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
9314
34f3f342
GM
93152000-04-10 Gerd Moellmann <gerd@gnu.org>
9316
1a1b1895
GM
9317 * xdisp.c (setup_echo_area_for_printing): Choose an echo
9318 area buffer, if it's not set up yet.
9319
34f3f342
GM
9320 * indent.c (compute_motion): Set immediate_quit.
9321
be0dbdab
GM
93222000-04-09 Gerd Moellmann <gerd@gnu.org>
9323
52283633 9324 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
c45be9ac
GM
9325 (realize_tty_face): Suppress boldness if colors are the inverse of
9326 the default colors, and tty_suppress_bold_inverse_default_colors_p
9327 is set.
9328 (Ftty_suppress_bold_inverse_default_colors): New function.
9329 (syms_of_xfaces): Defsubr it.
9330
be0dbdab
GM
9331 * buffer.c (Frestore_buffer_modified_p): New function.
9332 (syms_of_buffer): Defsubr it.
9333
e8413c3b
KR
93342000-04-08 Ken Raeburn <raeburn@gnu.org>
9335
87f67317
KR
9336 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
9337 charset id (int) argument, not a charset (Lisp_Object).
9338
e8413c3b
KR
9339 * coding.h (code_convert_string): Declare.
9340 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
9341 object, as the fourth argument to code_convert_string.
9342
52283633 9343 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
e8413c3b
KR
9344 (Fset_fontset_font): Use EQ to compare lisp objects.
9345
7c752c80
KR
93462000-04-05 Ken Raeburn <raeburn@gnu.org>
9347
c0333abc
KR
9348 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
9349 a pointer that looks like a lisp object.
9350 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
9351 zero, instead see whether it's an integer object, since they can't
9352 have intervals.
9353 (GET_INTERVAL_OBJECT): Simply assign to the destination.
9354
52283633
SM
9355 * dispnew.c (allocate_matrices_for_frame_redisplay)
9356 (direct_output_forward_char): Use X(U)INT and make_number as needed
7c752c80
KR
9357 to convert between (unsigned) int values and lisp integers.
9358 * keyboard.c (read_key_sequence): Likewise.
9359 * lread.c (substitute_object_recurse): Likewise.
9360 * fns.c (concat, hash_lookup, hash_remove): Likewise.
52283633
SM
9361 * minibuf.c (do_completion, Fminibuffer_complete_word)
9362 (Fminibuffer_completion_help): Likewise.
7c752c80
KR
9363 * term.c (produce_special_glyphs): Likewise.
9364
9365 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
9366 * print.c (print_preprocess, print_object): Likewise.
9367
9368 * search.c (compile_pattern): Use NILP when checking for nil.
9369
74e49b38
KR
9370 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
9371 __OPTIMIZE__]: Provide a GNU C macro version that handles
9372 lisp-object unions.
9373 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
9374 field, to better cope with ENABLE_CHECKING and calls that modify a
9375 Lisp_Object using its old value.
9376
685e5ed2
GM
93772000-04-04 Gerd Moellmann <gerd@gnu.org>
9378
c407c570
GM
9379 * window.c (compare_window_configurations): Signal an error
9380 if parameters C1 or C2 aren't window configurations.
9381
685e5ed2
GM
9382 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
9383 AFTER_POTENTIAL_GC calls around calls to functions that can
9384 signal an error and thus invoke the debugger.
9385
587a49ab
GM
93862000-04-03 Gerd Moellmann <gerd@gnu.org>
9387
62f20204
GM
9388 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
9389 an error if decoding fails.
9390
587a49ab
GM
9391 * keyboard.c (lispy_mouse_names): Variable removed.
9392 (Vlispy_mouse_stem): New variable.
9393 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
9394 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
9395 for any mouse button number. Increase size of mouse_syms and
9396 button_down_location as needed. Call modify_event_symbol with
9397 different arguments.
9398 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
9399 Call modify_event_symbol with different arguments.
9400 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
9401 for any button number. Call modify_event_symbol with different
9402 arguments.
9403 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
9404 Accept a string for NAME_ALIST_OR_STEM.
9405
9406 * lisp.h (larger_vector): Add prototype.
9407
9408 * fns.c (larger_vector): Make externally visible.
9409
9410 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
9411
2d1675e4
SM
94122000-04-02 Stefan Monnier <monnier@cs.yale.edu>
9413
9414 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
9415 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
9416 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
9417 we are between str1 and str2.
9418 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
9419 (PATFETCH): Use `TRANSLATE'.
9420 (PATFETCH_RAW): Fetch multibyte char if applicable.
9421 (PATUNFETCH): Remove.
9422 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
9423 When writing a char, write it directly into the pattern buffer rather
9424 than going needlessly through a temp char-array.
9425 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
9426 multibyte magic and remove the useless `#ifdef emacs'.
9427 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
9428 buffer.
9429
9430 * regex.h (struct re_pattern_buffer): Make field `multibyte'
9431 conditional on `emacs'.
9432
9433 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
9434
cc2d8c6b
KR
94352000-04-01 Ken Raeburn <raeburn@gnu.org>
9436
9437 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
9438 non-union-type versions of XMARK and friends here, because XMARK
9439 and friends won't work on an integer field if NO_UNION_TYPE is not
9440 defined.
52283633 9441 (make_number): Define as a function if it's not defined as a macro.
cc2d8c6b 9442
52283633 9443 * composite.c (run_composite_function): Use NILP when checking for nil.
09654086
KR
9444 (syms_of_composite): Delete local var NARGS, pass an int as first
9445 argument to Fmake_hash_table.
9446
2387b382
KR
9447 * editfns.c (text_property_stickiness): Use NILP to test
9448 Lisp_Object boolean value.
9449 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
9450 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
9451 problems reading from and changing the same lisp value in an
9452 XSETSTRING call.
9453
27660e89
GM
94542000-04-01 Gerd Moellmann <gerd@gnu.org>
9455
9456 * term.c (TN_no_color_video): New variable.
9457 (term_init): Intitialize TN_no_color_video.
9458 (enum no_color_bit): New enumeration.
9459 (MAY_USE_WITH_COLORS_P): New macro.
9460 (turn_on_face): Use it to determine if attributes may be used
9461 combined with colors.
9462
3578db3c
KR
94632000-04-01 Ken Raeburn <raeburn@gnu.org>
9464
9465 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
52283633 9466 with int lvalues via casts; instead, just yield lisp object lvalues.
3578db3c
KR
9467 (enlarge_window): Variable sizep now points to Lisp_Object. Use
9468 proper accessor macros.
9469 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
9470 (grow_mini_window): Fix typo getting int value of root->height.
9471
6fc556fd
KR
9472 * xdisp.c (compute_string_pos): Fix order of arguments to
9473 string_pos_nchars_ahead.
9474 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
9475 count arg to variable-arg routines like Frun_hook_with_args and
9476 Fformat.
587a49ab
GM
9477 (back_to_previous_visible_line_start)
9478 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
9479 fixed-arg routines like Fget_char_property and Fmake_string.
9480 (reconsider_clip_changes): Use XINT when comparing integer lisp
9481 objects, or passing them as int arguments.
587a49ab
GM
9482 (mark_window_display_accurate, insert_left_trunc_glyphs)
9483 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
9484 storing or passing integer values as lisp objects.
9485 (set_cursor_from_row, highlight_trailing_whitespace): Use
9486 INTEGERP, not implicit test against zero, for glyph object.
9487 (try_window_id): Don't use make_number when we want an int value.
9488
9489 * xfaces.c (xlfd_symbolic_value): Make last argument a
9490 Lisp_Object, to be consistent with callers.
9491 (Fbitmap_spec_p): Use XINT to get numeric value of height.
9492 (lface_hash): Apply XFASTINT to lisp values before folding in.
9493
9494 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
9495 fill in window width and height. Pass an int, not a lisp object,
9496 as first arg to Finsert.
9497
6e7b2457
GM
94982000-04-01 Gerd Moellmann <gerd@gnu.org>
9499
610d841e
GM
9500 * xfaces.c (realize_basic_faces): Block input while realizing
9501 the faces.
9502
6e7b2457
GM
9503 * keyboard.c (lispy_mouse_names): Add additional mouse names.
9504
9505 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
9506
aa110c0c
GM
95072000-03-31 Gerd Moellmann <gerd@gnu.org>
9508
9509 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 9510 or ASCII, handle case that per-char metric is null.
aa110c0c 9511
8801a864
KR
95122000-03-30 Ken Raeburn <raeburn@gnu.org>
9513
c6129d7e
KR
9514 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
9515
52283633
SM
9516 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
9517 (XSUBR, XBUFFER): Verify correct object type before returning
8801a864
KR
9518 pointer, using eassert.
9519 * frame.h (XFRAME): Likewise.
9520
52283633
SM
9521 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
9522 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
9523 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
8801a864 9524 * data.c (set_internal): Likewise.
52283633
SM
9525 * dispextern.h (WINDOW_WANTS_MODELINE_P)
9526 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
8801a864
KR
9527 * fileio.c (auto_save_1): Likewise.
9528 * insdel.c (check_markers): Likewise.
9529 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
9530 * undo.c (record_insert): Likewise.
9531 * vmsproc.c (child_sig): Likewise.
9532 * window.c (unshow_buffer, window_loop): Likewise.
9533 * xterm.c (x_erase_phys_cursor): Likewise.
9534
8e7af858
GM
95352000-03-30 Gerd Moellmann <gerd@gnu.org>
9536
9537 * xfns.c (free_image_cache): Free the cache structure itself
9538 last, after all its members have been freed.
9539
9540 * lisp.h (xstrdup): Add prototype.
9541
9542 * alloc.c (xstrdup): Moved here from xfaces.c.
9543 (allocating_for_lisp): Variable removed.
52283633 9544 (lisp_malloc): Block input around the calls to malloc and mem_insert.
8e7af858
GM
9545
9546 * xfaces.c (realize_tty_face): Use find_symbol_value instead
9547 of Fsymbol_value.
9548 (xstrdup): Moved to alloc.c.
9549
e0b8c689
KR
95502000-03-29 Ken Raeburn <raeburn@gnu.org>
9551
b96f9fb7
KR
9552 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
9553
9554 * emacs.c (main): Fix sense of no-loadup test.
9555
e0b8c689
KR
9556 * config.in (ENABLE_CHECKING): Undef.
9557
9558 * lisp.h (struct interval): Replace "parent" field with a union of
9559 interval pointer and Lisp_Object; add new bitfield to use as
9560 discriminant. Change other flag fields to bitfields.
9561 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
52283633
SM
9562 is defined and the supplied test fails, print a message and abort.
9563 (eassert): New macro. Use CHECK to provide an assert-like facility.
e0b8c689
KR
9564
9565 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
9566 pointers; abort if the value looks like a lisp object.
52283633
SM
9567 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
9568 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
e0b8c689
KR
9569 Modify for new interval parent definition.
9570
52283633
SM
9571 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
9572 (UNMARK_BALANCE_INTERVALS): Update references that need an
e0b8c689
KR
9573 addressable lisp object in the interval structure.
9574 (die): New function.
9575 (suppress_checking): New variable.
9576
9577 * intervals.c (interval_start_pos): Just return 0 if there's no
9578 parent object.
9579
f83c5440
GM
95802000-03-29 Gerd Moellmann <gerd@gnu.org>
9581
9582 * lread.c (read1): Accept `.' (period) as symbol start like in CL
9583 and earlier Emacs versions.
9584
9585 * keyboard.c (Ftop_level): Cancel busy-cursor.
9586
9587 * eval.c (call_debugger): Cancel busy-cursor.
9588
fdce64ff
KH
95892000-03-29 Kenichi Handa <handa@etl.go.jp>
9590
9591 * search.c (Freplace_match): Adjust multibyteness of the current
52283633 9592 buffer and NEWTEXT. Free allocated memory before signaling an error.
fdce64ff 9593
f6a3f532
SM
95942000-03-28 Stefan Monnier <monnier@cs.yale.edu>
9595
9596 * regex.c (analyse_first): New function obtained by ripping out most
9597 of re_compile_fastmap and generalizing it a little bit so that it
9598 can also just return whether a given (sub)pattern can match the empty
9599 string or not.
9600 (regex_compile): Use `analyse_first' to decide whether the loop-check
9601 needs to be done or not for *, +, *? and +? (the loop check is costly
9602 for non-greedy repetition).
9603 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
9604
e9b309ac
DL
96052000-03-28 Dave Love <fx@gnu.org>
9606
52283633 9607 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
bb15bd9a 9608
e9b309ac
DL
9609 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
9610
ed0767d8
SM
96112000-03-27 Stefan Monnier <monnier@cs.yale.edu>
9612
9613 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
9614 an expression.
9615 (enum re_opcode_t): Update description of succeed_n.
9616 (PATFETCH): Always define.
9617 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
9618 operators, char classes, shy-groups and intervals).
9619 Optimize special cases of intervals so as to only use succeed_n and
9620 jump_n when really needed.
9621 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
9622 that we don't have to handle the special cases any more.
9623 Simplify on_failure_jump handling as well.
9624
e11e7e46
JR
96252000-03-28 Jason Rumney <jasonr@gnu.org>
9626
9627 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
9628
88faab89
GM
96292000-03-27 Gerd Moellmann <gerd@gnu.org>
9630
182ff242
GM
9631 * s/freebsd.h (GC_SETJMP_WORKS): Define.
9632
9633 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 9634
182ff242
GM
9635 * alloc.c (mark_maybe_object): New function.
9636 (mark_memory): Use it.
9637 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
9638 (setjmp_tested_p, longjmp_done): New variables.
9639 (test_setjmp): New function.
9640 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
9641 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
9642
c1005d06
GM
9643 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
9644 to DEC_TEXT_POS and INC_TEXT_POS.
9645
9646 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
9647 with parameter MULTIBYTE_P.
9648
52283633 9649 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
c1005d06 9650
7439e5b9 9651 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
9652 buffers because it looks for multibyte character byte sequences
9653 which don't exist in unibyte text.
7439e5b9 9654
d9c545da
GM
9655 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
9656
11fd416e 9657 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
9658 [DEBUG_X_COLORS]: New functions.
9659 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
9660
9661 * xfns.c (x_set_cursor_color): Get color reference counts right.
9662
9663 * xterm.c (x_copy_color): New function.
9664 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
9665
9666 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
9667 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
9668 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
9669 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
9670 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
9671 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
9672 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
9673 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
9674 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
9675 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
9676
11fd416e
GM
9677 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
9678 names for handling per-buffer variables.
d9c545da
GM
9679
9680 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
9681 instead of MAX_BUFFER_LOCAL_VARS.
9682 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
9683
9684 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
9685
88faab89
GM
9686 * xfns.c (x_specified_cursor_type): New function.
9687 (x_set_cursor_type): Use it.
9688
9689 * buffer.h (struct buffer): Add cursor_type.
9690
d80f42b7
SM
96912000-03-26 Stefan Monnier <monnier@cs.yale.edu>
9692
9693 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
52283633
SM
9694 (print_partial_compiled_pattern, re_compile_fastmap):
9695 Handle new opcode.
d80f42b7
SM
9696 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
9697 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
9698 executing it as well as when popping it off the stack to find infinite
9699 loops in non-greedy repetition operators.
9700
89e80928
GM
97012000-03-26 Gerd Moellmann <gerd@gnu.org>
9702
3d4ff2dd
GM
9703 * doc.c (Qfunction_documentation): New variable.
9704 (syms_of_doc): Initialize Qfunction_documentation.
9705 (Fdocumentation): If FUNCTION is a symbol with non-nil
9706 `function-documentation' property, return a documentation derived
9707 from that.
9708
bd96bd79
GM
9709 * buffer.c (syms_of_buffer): Add default-cursor-type.
9710 (init_buffer_once): Don't let cursor_type have a local value
9711 in every buffer.
9712
19d1bc27
GM
9713 * xterm.c (x_display_and_set_cursor): Choose cursor depending
9714 on buffer-local value of cursor_type.
9715 (x_draw_bar_cursor): Add parameter WIDTH.
9716
9717 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
9718 (init_buffer_once): Set default cursor_type value to t.
9719 Mark cursor_type as local everywhere.
9720 (syms_of_buffer): New per-buffer variable cursor-type.
9721
89e80928
GM
9722 * buffer.h (struct buffer): Remove member local_var_flags,
9723 add local_flags.
9724 (MAX_BUFFER_LOCAL_VARS): New macro.
9725 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
9726 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
9727 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
9728 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
9729
52283633 9730 * print.c (print_object): Use new macros for per-buffer variables.
89e80928
GM
9731
9732 * category.c (Fset_category_table): Use new macros for per-buffer
9733 variables.
9734
9735 * buffer.c (buffer_permanent_local_flags): Make a char array.
9736 (max_buffer_local_idx): New variable.
9737 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
9738 for new handling of per-buffer variables.
9739 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
9740 (init_buffer_once): Initialize per-buffer vars differently.
9741 Set max_buffer_local_idx.
9742
9743 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
9744 variables.
9745
52283633 9746 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
89e80928
GM
9747
9748 * data.c (do_symval_forwarding, store_symval_forwarding)
9749 (find_symbol_value, set_internal, default_value, Fset_default)
9750 (Fkill_local_variable, Flocal_variable_p): Use new macros for
9751 per-buffer variables.
9752
9753 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
9754
9a0dd3dc
GM
97552000-03-24 Gerd Moellmann <gerd@gnu.org>
9756
b68c375f
GM
9757 * xterm.c (x_term_init): Unblock input around call1 of
9758 Qvendor_specific_keysyms.
9759
9a0dd3dc
GM
9760 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
9761 (find_defun_start): Consider an open parenthesis in column 0
9762 a defun start only if open_paren_in_column_0_is_defun_start is set.
9763 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
9764
7973e637
SM
97652000-03-24 Stefan Monnier <monnier@cs.yale.edu>
9766
9767 * eval.c (Fautoload): Add entry in load-history (if after dump).
9768 * lread.c (load-history): Update docstring.
9769
39210e90
GM
97702000-03-24 Gerd Moellmann <gerd@gnu.org>
9771
9772 * indent.c (Fvertical_motion): Always use the current buffer.
9773 Temporarily change the window's buffer, if necessary.
9774
72db3ab5
GM
97752000-03-23 Gerd Moellmann <gerd@gnu.org>
9776
9777 * xterm.c (fast_find_position): Make sure not to consider rows
9778 not visible in the window.
9779
990b2375
SM
97802000-03-22 Stefan Monnier <monnier@cs.yale.edu>
9781
9782 * regex.c (enum syntaxcode): Provide default for non-Emacs.
9783 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
9784
ff4df011
JR
97852000-03-22 Jason Rumney <jasonr@gnu.org>
9786
9787 * w32menu.c (single_submenu): Set help string to NULL if none.
9788 (w32_menu_show): Set help string correctly.
9789 (add-menu-item): Set help string in MIIM_DATA for menu item.
9790 Load SetMenuItemInfoA explicitly.
9791 (w32_menu_display_help): New function.
427ec082 9792
ff4df011
JR
9793 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
9794 (QCdata): Moved to xdisp.c.
9795
9796 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
9797 (Vw32_charset_to_codepage_alist): Removed.
9798 (Vw32_charset_info_alist): New variable.
52283633
SM
9799 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
9800 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
9801 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
ff4df011
JR
9802 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
9803 with TODO comment.
9804 (w32_codepage_for_font): Use Vw32_charset_info_alist.
9805 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
9806 Define Vw32_charset_info_alist and w32_charset symbols.
9807
98082000-03-22 Jason Rumney <jasonr@gnu.org>
9809
9810 * makefile.nt (w32bdf.obj): Update dependencies.
9811
9812 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
9813
9814 * w32fns.c: Include fontset.h after dispextern.h.
9815 (Fx_create_frame): Do not create fontset.
9816 (w32_load_system_font): Doc fix.
9817 (Fx_close_connection): Free full_name if it is not shared.
9818
9819 * w32term.c: Include fontset.h after dispextern.h.
52283633
SM
9820 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
9821 Callers updated.
ff4df011
JR
9822 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
9823 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
9824 (w32_font_is_double_byte): New function, needs body.
9825 (x_append_glyph): Set glyph->glyph_not_available_p.
9826 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
9827 it->charset. If it->multibyte_p is zero and it->c is a multibyte
9828 character, convert it to a unibyte character.
9829 (struct glyph_string): Delete member `charset'.
9830 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
9831 calculating it is found.
9832 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
9833 the case that per char metric is not available correctly.
9834 (x_fill_glyph_string): Handle the case that the specific glyph is
9835 not available correctly.
9836 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
9837 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
9838 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
9839 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
9840 fontset. Don't call FS_LOAD_FONT.
9841
439d5cb4
KR
98422000-03-22 Ken Raeburn <raeburn@gnu.org>
9843
9844 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
9845 (INT_LISPLIKE): New macro.
9846 (NULL_INTERVAL_P): Use it.
52283633
SM
9847 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
9848 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
9849 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
439d5cb4
KR
9850
9851 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
9852 explicit references to "parent" field of struct interval and
9853 associated unclean type conversions.
52283633
SM
9854 * intervals.c (create_root_interval, root_interval, rotate_right)
9855 (rotate_left, balance_possible_root_interval, split_interval_right)
9856 (split_interval_left, interval_start_pos, find_interval)
9857 (next_interval, previous_interval, update_interval)
9858 (adjust_intervals_for_insertion, delete_node, delete_interval)
9859 (adjust_intervals_for_deletion, merge_interval_right)
9860 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
9861 (copy_intervals_to_string): Likewise.
439d5cb4
KR
9862 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
9863 Likewise.
9864 * syntax.c (update_syntax_table): Likewise.
9865
9866 * intervals.c (reproduce_tree_obj): New function, like
9867 reproduce_tree but takes a Lisp_Object for the parent. Declare
9868 with prototype.
9869 (graft_intervals_into_buffer): Use it when appropriate.
9870 (reproduce_tree): Declare with prototype.
9871 (balance_possible_root_interval): Check that the parent is a lisp
9872 object before trying to examine its type.
9873
ee1c5b21
GM
98742000-03-22 Gerd Moellmann <gerd@gnu.org>
9875
9876 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
9877 as strings only if both are known to be strings.
9878
9879 * s/openbsd.h (LIBS_TERMCAP): Undef.
9880
1fb352e0
SM
98812000-03-21 Stefan Monnier <monnier@cs.yale.edu>
9882
9883 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
9884 definitions for non-Emacs compilation.
9885 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
9886 outside of `#ifdef emacs'.
9887 (print_partial_compiled_pattern): Update.
9888 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
9889 (re_compile_fastmap): Merge handling of charset and charset_not (for
9890 emacs and non-emacs compilation as well).
9891 Similarly for (not)categoryspec and (not)syntaxspec.
9892 Don't use the fastmap when reaching `anychar' since the added
9893 complexity is not justified.
9894 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
9895 and (not)syntaxspec. Merge (not)categoryspec.
9896
fdaa1f77
KH
98972000-03-22 Kenichi Handa <handa@etl.go.jp>
9898
52283633
SM
9899 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
9900 (FACE_FOR_CHAR): Define them differently for the configuration of
ff1a0d8e 9901 --without-x.
fdaa1f77 9902
d152fb46
DL
99032000-03-21 Dave Love <fx@gnu.org>
9904
9905 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
9906 doc string.
9907
d2cafc8c
GM
99082000-03-21 Gerd Moellmann <gerd@gnu.org>
9909
9910 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
9911 (lface_fully_specified_p): Don't check contents of
9912 LFACE_FONT_INDEX because that attribute is optional.
9913 (realize_x_face): Remove now unwarranted xassert.
9914
9111d4b5
KH
99152000-03-21 Kenichi HANDA <handa@etl.go.jp>
9916
9917 The following changes are to make font selection based on
9918 characters, not charset. In addition, they recover fontset
9919 facilities while utilizing the new font selection mechanism.
9920
6c4bfdc0
KH
9921 * Makefile.in (fontset.o): Depend on dispextern.h.
9922
9923 * alloc.c (mark_face_cache): Don't mark face->registry.
9924
9111d4b5
KH
9925 * dispextern.h (struct glyph): New member glyph_not_available_p.
9926 Use 22 bits for face_id.
9927 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
9928 (struct face): Delete member registry, new member ascii_face.
9929 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
9930 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
9931 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
52283633 9932 (struct it): Delete member charset, new member glyph_not_available_p.
9111d4b5
KH
9933
9934 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
9935 (struct fontset_info, struct fontset_data): Structs removed.
52283633
SM
9936 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
9937 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
9111d4b5 9938 (fs_load_font, fs_query_fontset): Adjusted for new argument.
52283633
SM
9939 (fs_free_face_fontset, fontset_font_pattern)
9940 (face_suitable_for_char_p, face_for_char)
9941 (make_fontset_for_ascii_face): Extern them.
9111d4b5
KH
9942 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
9943 (FS_LOAD_FACE_FONT): New macro.
9944
9945 * fontset.c: All codes rewritten or adjusted for the change of
9946 fontset implementation. Now fontset is represented by char table.
52283633
SM
9947 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
9948 Variables removed.
9111d4b5 9949 (my_strcasecmp): Function removed.
52283633 9950 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
9111d4b5 9951 (AREF, ASIZE): New macros.
52283633
SM
9952 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
9953 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
9954 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
9955 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
9956 (fontset_id_valid_p, font_family_registry, fontset_name)
9957 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
9958 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
9111d4b5
KH
9959 New functions.
9960 (fs_load_font): New arg FACE. Caller changed.
9961 (fs_query_fontset): Argument changed. Caller changed.
9962 (Fquery_fontset): call fs_query_fontset.
9963 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
9964 Functions removed.
52283633
SM
9965 (clear_fontset_elements, check_registry_encoding)
9966 (check_fontset_name): New functions.
9111d4b5
KH
9967 (syms_of_fontset): Set char-table-extra-slots property of fontset
9968 to 3. Staticpro and initialize Vfontset_table and
9969 Vdefault_fontset. Defsubr fontset_font and fontset_list.
9970
9971 * frame.h (struct frame): Member `fontset_data' removed.
9972 (FRAME_FONTSET_DATA): Macro removed.
9973
9974 * frame.c (make_frame): Don't allocate f->fontset_data.
9975 (Fdelete_frame): Don't free f->fontset_data.
9976
6c4bfdc0
KH
9977 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
9978
9111d4b5
KH
9979 * xdisp.c (charset_at_position): Function removed.
9980 (init_iterator): Don't set member charset of struct `it'.
52283633
SM
9981 (handle_face_prop, reseat_to_string, set_iterator_to_next)
9982 (next_element_from_display_vector, insert_left_trunc_glyphs):
9111d4b5
KH
9983 Likewise.
9984 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
9985 FACE_FOR_CHARSET.
52283633
SM
9986 (get_next_display_element, append_space)
9987 (extend_face_to_end_of_line): Likewise.
9111d4b5
KH
9988
9989 * xfaces.c (Qx_charset_registry, Vface_default_registry):
9990 Variables removed.
9991 (clear_font_table, frame_update_line_height, load_face_font):
9992 Adjusted for the change of fontset implementation.
9993 (load_face_fontset_font): Function removed.
9994 (pixel_point_size): New function.
9995 (font_list): Argument type changed. Caller changed.
9996 (LFACE_FONT): New macro.
9997 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
9998 (set_lface_from_font_name): Type of arg FONTNAME is changed to
9999 Lisp_Object. Determine the font name by actually loading a font
10000 by the specified pattern. Set LFACE_FONT (lface) to the specified
10001 pattern. Even if a font is not found, don't try alternatives.
10002 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
10003 (set_font_frame_param): If `font' is specified in lface, use it.
10004 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
10005 (lface_same_font_attributes_p): Likewise.
10006 (make_realized_face): Arguent changed. Caller changed. Set
10007 face->ascii_face to face itself.
10008 (free_realized_face): Free face->fontset if face is for ASCII.
52283633
SM
10009 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
10010 (deduce_unibyte_registry, x_charset_registry): Functions removed.
9111d4b5
KH
10011 (free_realized_multibyte_face): New function.
10012 (lookup_face, lookup_named_face, lookup_derived_face): Argument
10013 changed. Caller changed.
10014 (try_font_list): Argument type changed.
10015 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
10016 (choose_face_font): Argument changed. Handle fontset properly.
10017 (choose_face_fontset_font): Function removed.
10018 (realize_default_face, realize_named_face): Don't remove the
10019 former face here.
10020 (realize_face): Argument changed. Caller changed. Remove face
52283633 10021 with the arg former_face_id in advance. Load font for the new face.
9111d4b5
KH
10022 (realize_x_face): Argument changed. Caller changed. For a
10023 multibyte character, share fontset with base_face. For a single
52283633 10024 byte character, make a new realized fontset. Don't load a font here.
9111d4b5
KH
10025 (realize_tty_face): Argument changed. Caller changed.
10026 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
10027 (face_at_buffer_position): Don't check multibyte_p for returning
10028 DEFAULT_FACE_ID.
10029 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
10030 FACE_SUITABLE_FOR_CHARSET_P.
10031 (syms_of_xfaces): Remove code for Qx_charset_registry and
10032 Vface_default_registry.
10033
6c4bfdc0
KH
10034 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
10035 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
10036 (x_per_char_metric): Don't try FONT->default_char. Even if
10037 pcm->width is zero, glyph bits may exist.
10038 (x_encode_char): Always initialize char2b->byte1.
10039 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
52283633 10040 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
9111d4b5
KH
10041 (x_append_glyph): Set glyph->glyph_not_available_p.
10042 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
10043 it->charset. Handle the case that per char metric is not
10044 available. If it->multibyte_p is zero and it->c is a multibyte
10045 character, convert it to a unibyte character.
10046 (struct glyph_string): Delete member `charset'.
10047 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
10048 the case that per char metric is not available correctly.
10049 (x_fill_glyph_string): Handle the case that the specific glyph is
10050 not available correctly.
10051 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
10052 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
10053 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
10054 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
10055 fontset. Don't call FS_LOAD_FONT.
10056
10057 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
10058 (x_create_tip_frame): Likewise.
10059 (Fx_close_connection): Free full_name of font_info.
10060
10061 * fns.c (optimize_sub_char_table): New function.
10062 (Foptimize_char_table): New function.
10063 (syms_of_fns): Defsubr Soptimize_char_table.
10064
b33dd3b0
GM
100652000-03-20 Gerd Moellmann <gerd@gnu.org>
10066
10067 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
10068 only if buffer is displayed in some window.
10069
10070 * xdisp.c (handle_single_display_prop): Initialize local `value'.
10071 (try_window_reusing_current_matrix): Don't call scroll run
10072 function if run's current and desired position are the same;
10073 this prevents cursor flickering.
10074
4e8a9132
SM
100752000-03-19 Stefan Monnier <monnier@cs.yale.edu>
10076
10077 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
10078
10079 * regex.c (RE_STRING_CHAR): New macro.
10080 (GET_CHAR_AFER_2): Remove.
10081 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
10082 (enum re_opcode_t): Remove on_failure_jump_exclusive.
10083 (print_partial_compiled_pattern, re_compile_fastmap)
10084 (re_match_2_internal): Remove on_failure_jump_exclusive.
10085 (regex_compile): Turn optimizable P+ loops into PP*, so that the
10086 optimization only need to work for * (ie. can use of_keep_string_jump).
10087 Remove the special case for .*\n since it is now covered by the general
10088 optimization.
10089 (re_search_2): Don't bother with `room'.
10090 (skip_one_char): New function.
10091 (skip_noops): Simplify since `memory' is not needed any more.
10092 (mutually_exclusive_p): Restructure slightly to use `switch' and
10093 add handling for "all" remaining cases.
10094 (re_match_2_internal): Change on_failure_jump_smart to use
10095 on_failure_keep_string_jump (and redirect the end-of-loop jump)
10096 rather than on_failure_jump_exclusive.
10097
2136fdd4
GM
100982000-03-19 Gerd Moellmann <gerd@gnu.org>
10099
10100 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
10101 number of bits per RGB because it's everywhere used as the depth
10102 of the visual.
10103
10104 * term.c (calculate_costs): Remove code dealing with X frames.
10105
18e21ce8 101062000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
10107
10108 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
10109
d7b511c4
GM
101102000-03-18 Gerd Moellmann <gerd@gnu.org>
10111
10112 * lread.c (read_integer): Unread the last char not consumed.
10113
16b5d424
GM
101142000-03-17 Gerd Moellmann <gerd@gnu.org>
10115
10116 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 10117 which are in the process of being deleted.
16b5d424 10118
1fa28578
GM
101192000-03-16 Gerd Moellmann <gerd@gnu.org>
10120
83488cce
GM
10121 * Makefile.in (mostlyclean): Add `*.core'.
10122 (clean): Add `bootstrap-emacs'.
10123
1fa28578
GM
10124 * lread.c (read_integer): New function.
10125 (read1): Support read syntax #o, #x, #b, #r.
10126
99633e97
SM
101272000-03-15 Stefan Monnier <monnier@cs.yale.edu>
10128
1fa28578
GM
10129 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
10130 make sure POINTER_TO_OFFSET gives the same value before and after
10131 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
10132 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
10133 (debug): Now only active if > 0 rather than if != 0.
10134 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
10135 (print_partial_compiled_pattern): Add missing `succeed' case. Use
10136 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
10137 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
10138 (store_op1, store_op2, insert_op1, insert_op2)
10139 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
10140 (group_in_compile_stack): Move to after its arg's types are
10141 declared and add a prototype.
99633e97 10142 (PATFETCH): Define in terms of PATFETCH_RAW.
52283633 10143 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
99633e97 10144 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
10145 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
10146 indentation of the greedy-op and shy-group code.
99633e97
SM
10147 (at_(beg|end)line_loc_p): Fix argument's types.
10148 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
10149 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
10150 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
10151 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
10152 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
10153 QUIT unconditionally.
99633e97 10154
699238d9
GM
101552000-03-15 Gerd Moellmann <gerd@gnu.org>
10156
10157 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
10158 a sole completion.
10159
10160 * process.c (send_process): Add a hint that the function
10161 can call Lisp code to its comment.
10162
10163 * lread.c (load_dangerous_libraries): New variable.
10164 (Vbytecomp_version_regexp): New variable.
10165 (safe_to_load_p): New function.
10166 (Fload): Handle files not compiled with Emacs specially.
10167 (syms_of_lread): New Lisp variable load-dangerous-libraries.
10168
34e23e5a
GM
101692000-03-14 Gerd Moellmann <gerd@gnu.org>
10170
9c763cca
GM
10171 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
10172
10173 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
10174 support functions only if HAVE_X11R6_XIM is defined.
10175 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
10176
10177 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
10178
10179 * xfns.c (X_I18N_INHIBITED): Don't define.
52283633 10180 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
9c763cca
GM
10181 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
10182
10183 * config.in (HAVE_X_I18N): Moved here from xterm.h.
10184 (HAVE_X11R6_XIM): Define.
10185
10186 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
10187
34e23e5a
GM
10188 * xterm.c (x_term_init): Add support for X resource `synchronous'.
10189 If set, call XSynchronize.
10190
66f0296e
SM
101912000-03-13 Stefan Monnier <monnier@cs.yale.edu>
10192
34e23e5a
GM
10193 * regex.c: Declare a new type `re_char' used throughout the code
10194 for the string char type. It's `const unsigned char' to match the
10195 rest of Emacs. Consistently make sure all pointers to strings use
52283633 10196 it and make sure all pointers into the pattern use `unsigned char'.
66f0296e 10197 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
10198 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
10199 code duplication.
66f0296e
SM
10200
10201 * charset.h (GET_CHAR_AFTER_2): Remove.
10202 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
10203
854a025c
KR
102042000-03-12 Ken Raeburn <raeburn@gnu.org>
10205
10206 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
10207 variable before the invocation of YMF_PASS_LDFLAGS, in case both
10208 of them try to use backquotes.
10209
b9d2c7e2
DL
102102000-03-12 Dave Love <fx@gnu.org>
10211
10212 * unexelf.c: Restore changes of 1999-10-19.
10213 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
10214 fix its type and alignment; copy it from current process.
10215
5e5dff44
GM
102162000-03-12 Gerd Moellmann <gerd@gnu.org>
10217
9b2f3c38
GM
10218 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
10219 has been found. Fix bug not computing timer's predecessor.
10220
427ec082 10221 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
10222 file name.
10223
e1cff360
GM
10224 * window.c (Fsave_window_excursion): Doc fix.
10225
52283633 10226 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
5e5dff44 10227
e411ce4b
EZ
102282000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
10229
10230 * msdos.c (vga_installed): New function, code moved from
10231 dos_set_window_size.
10232 (Qbar, Qcursor_type, outside_cursor): New variables.
10233 (syms_of_msdos): Intern and staticpro them.
10234 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
10235 shape used outside Emacs when called for the first time.
10236 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
10237 cursor shape used outside Emacs.
10238 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
10239 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
10240 type has changed.
10241 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
10242 parameters specify the cursor. Make qreverse a global
10243 variable (renamed to Qreverse).
10244
80460654
GM
102452000-03-09 Gerd Moellmann <gerd@gnu.org>
10246
10247 * fns.c (Fy_or_n_p): Cancel busy-cursor.
10248
95cd4c40
SM
102492000-03-08 Stefan Monnier <monnier@cs.yale.edu>
10250
10251 This is a big redesign of failure-stack and register handling, prompted
10252 by bugs revealed when trying to add shy-groups. Overall, what happened
10253 is that loops are now structured a little differently, groups can be
10254 shy and the code is a little simpler.
10255
10256 * regex.h: Update the copyright.
10257 (RE_SHY_GROUPS): New value.
10258 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
10259 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
10260
80460654
GM
10261 * regex.c (enum re_opcode_t): Remove jump_past_alt,
10262 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
10263 on_failure_jump_(exclusive, loop and smart). Also fix the comment
10264 for (start|stop)_memory since they now only take one argument (the
10265 second has becomes unnecessary).
52283633 10266 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
80460654
GM
10267 (print_compiled_pattern): Use %ld to printf long ints and flush to
10268 make debugging a little easier.
95cd4c40
SM
10269 (union fail_stack_elt): Make the integer unsigned.
10270 (struct fail_stack_type): Add a `frame' element.
10271 (INIT_FAIL_STACK): Init `frame' as well.
10272 (POP_PATTERN_OP): New macro for re_compile_fastmap.
10273 (DEBUG_PUSH, DEBUG_POP): Remove.
10274 (NUM_REG_ITEMS): Remove.
10275 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
10276 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
10277 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 10278 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
52283633
SM
10279 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
10280 New macros.
80460654
GM
10281 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
10282 address pushed is not the destination of the jump but the source
10283 of it instead.
95cd4c40
SM
10284 (NUM_FAILURE_ITEMS): Remove.
10285 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
10286 registers before the actual failure point). Don't hardcode any
10287 meaning for str==NULL anymore.
95cd4c40 10288 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
10289 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
10290 Remove.
95cd4c40
SM
10291 (REG_UNSET_VALUE): Use NULL (why not?).
10292 (compile_range): Remove declaration since it doesn't exist.
10293 (struct compile_stack_elt_t): Remove inner_group_offset.
10294 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
10295 (regex_grow_registers): Remove dead code.
10296 (FIXUP_ALT_JUMP): New macro.
80460654
GM
10297 (regex_compile): Add shy-groups Change loops to use
10298 on_failure_jump_smart&jump instead of
10299 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
10300 initial (dummy_failure_)jump. Remove c1_base (looks like unused
10301 variable to me). Use `jump' instead of `jump_past_alt' and don't
10302 bother with push_dummy_failure in alternatives since it is now
10303 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
10304 emacs' for (re)allocating the stack.
10305 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
10306 from loop when bufp->can_be_null rather than jumping to `done'.
10307 Avoid jumping backwards so as to ensure termination. Use
10308 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
10309 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 10310 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
10311 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
10312 improve mutually_exclusive_p to handle ".+\n".
52283633
SM
10313 (lowest_active_reg, highest_active_reg)
10314 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
80460654
GM
10315 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
10316 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
10317 variables. Push register (in `start_memory') on the stack rather
10318 than storing it in old_reg(start|end). Remove the cycle detection
10319 from `stop_memory', replaced by the use of on_failure_jump_loop
10320 for greedy loops. Add code for the new on_failure_jump_<foo>.
10321 Remove ad-hoc code in `on_failure_jump' to push more registers in
10322 the case of a loop. Take out code from `maybe_pop_jump' into
10323 separate functions and adapt it to the semantics of
10324 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
10325 and push_dummy_failure. Remove dummy_failure handling and
10326 handling of `failures to jump to on_failure_jump' (this last one
10327 was already dead code, it seems).
10328 (group_match_null_string_p, alt_match_null_string_p)
10329 (common_op_match_null_string_p): Remove.
95cd4c40 10330
7397acc4
DL
103312000-03-08 Dave Love <fx@gnu.org>
10332
10333 * config.in: Don't depend on __STDC__ for volatile.
10334 Add POINTER_TYPE, PTR, PROTOTYPES.
10335
10336 * hftctl.c, strftime.c: Use PROTOTYPES.
10337 * eval.c (find_handler_clause): Likewise.
10338
10339 * mem-limits.h: Use POINTER_TYPE.
10340
10341 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
10342 (memory_warnings): Declare using POINTER_TYPE.
10343
5e91ff9e
GM
103442000-03-08 Gerd Moellmann <gerd@gnu.org>
10345
feab4fba
GM
10346 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
10347
52283633 10348 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
25edb08f 10349
5e91ff9e
GM
10350 * xfns.c: Remove obsolete code in #if 0.
10351 (Fx_focus_frame): New function.
10352
a735b7e1
KH
103532000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
10354
10355 * coding.c (coding_category_name): Add coding-category-utf-8,
10356 coding-category-utf-16-be, coding-category-utf-16-le.
10357 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
10358 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
10359 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
10360 (detect_coding_utf_8): New function.
10361 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
10362 UTF_16_LOW_SURROGATE_P): New macros.
10363 (detect_coding_utf_16): New function
10364 (detect_coding_mask): When priorities are specified, skip any
10365 categories that have `nil' coding-system. Fix bug of returning
10366 wrong mask when PRIORITIES is specified and detect_coding_XXX()
10367 returns a mask not set in PRIORITIES.
10368 (detect_eol_type_in_2_octet_form): New function.
10369 (detect_eol): selects detect_eol_type_XXX to call according to
10370 cooding->category_idx.
10371 (detect_coding_system): Remove `nil' coding-system in the result.
10372 (Fupdate_coding_systems_internal): Update all coding-categories.
10373
52283633
SM
10374 * coding.h (CODING_CATEGORY_IDX_UTF_8)
10375 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
10376 New macros.
10377 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
10378 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
10379 (CODING_CATEGORY_IDX_UTF_16_LE)
10380 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
10381 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
a735b7e1
KH
10382 (CODING_CATEGORY_MASK_ANY): Include the above macros.
10383 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
10384
9994cc69
GM
103852000-03-07 Gerd Moellmann <gerd@gnu.org>
10386
e9b4e5ff
GM
10387 * doc.c (Fdocumentation_property): If value is not a string,
10388 and doesn't refer to etc/DOC, evaluate it to obtain a string.
10389
f7daf1e1
GM
10390 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
10391 close the display with XtCloseDisplay. This caused a bus error
10392 on OpenWindows.
10393
9994cc69
GM
10394 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
10395 complete but not unique.
10396
4336c705
GM
103972000-03-06 Gerd Moellmann <gerd@gnu.org>
10398
18bb0684
GM
10399 * process.c (send_process): Remove local variable `procname' that
10400 might become invalid when a GC happens. Instead, access the
10401 process name slot directly.
10402
4336c705
GM
10403 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
10404 orig_height if set.
10405
10406 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
10407 orig_height if set.
10408
515d0d0e
EZ
104092000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
10410
10411 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
10412 glyph matrices have been freed.
10413
100b3cbb
GM
104142000-03-05 Gerd Moellmann <gerd@gnu.org>
10415
50df5e5a 10416 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 10417 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
10418
10419 * xfns.c (QCdata): Moved to xdisp.c.
10420
10421 * xdisp.c (QCdata): Moved here from xfns.c.
10422 (syms_of_xdisp): Initialize QCdata.
10423
10424 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
10425
10426 * window.c (coordinates_in_window): Use
10427 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
10428 FRAME_INTERNAL_BORDER_WIDTH.
10429
100b3cbb 10430 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 10431 it is obviously invalid.
100b3cbb
GM
10432
10433 * xterm.c (x_term_init): Create a colormap if not using the
10434 default visual.
10435
10436 * xterm.h (select_visual): Change prototype.
10437
10438 * xfns.c (select_visual): Rewritten. Recognize user-specified
10439 visual classes.
10440 (visual_classes): New variable.
10441
64d739c4
GM
104422000-03-04 Gerd Moellmann <gerd@gnu.org>
10443
10444 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
10445 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
10446 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
52283633 10447 (x_decode_color): Don't handle allocation of white and black specially.
64d739c4
GM
10448 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
10449 XtNcolormap resources.
10450 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
10451 (Fx_create_frame): Initialize color members of x_output structure.
10452 (xpm_load): Pass colormap to XPM lib.
10453
10454 * xfaces.c (x_free_colors): Access colormap of frame using
10455 FRAME_X_COLORMAP. Be paranoid about freeing black and white
10456 when default colormap is used.
10457
10458 * xterm.c (x_term_init): Set Colormap member of x_display_info
10459 structure. Copy colormap if resource `privateColormap' is
10460 specified (PseudoColor only).
10461 (x_setup_relief_color): Access colormap of frame using
10462 FRAME_X_COLORMAP.
10463
10464 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
10465 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
10466
c3cee013
JR
104672000-03-04 Jason Rumney <jasonr@gnu.org>
10468
10469 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
10470 other non-platform-specific equivalents.
64d739c4 10471 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
10472 specific functions and macros as their w32 equivalents where
10473 non-platform-specifics are not available.
10474 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
10475 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
10476 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
10477 (frame_update_line_height): Use macros to access f->output_data.
10478 (defined_color): Remove FIXME comments; fixed.
10479 (x_face_list_fonts, prepare_face_for_display): Put X specifics
10480 into #ifdef blocks. Add WINDOWSNT blocks.
10481 (Fx_list_fonts): Use macros for accessing font data.
10482 (set_lface_from_font_name): Different default fonts for X and
10483 WINDOWSNT.
10484 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
10485 scalable for backward compatibility.
64d739c4 10486 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
10487 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
10488
64d739c4 10489 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
10490 syms_of_w32faces.
10491
10492 * makefile.nt (w32faces.obj): Remove.
10493 (xfaces.obj): Add.
10494
807cc41c
JR
104952000-03-03 Jason Rumney <jasonr@gnu.org>
10496
10497 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
10498 correct parameters.
10499
0007072a
KR
105002000-03-03 Ken Raeburn <raeburn@gnu.org>
10501
10502 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
10503 standard ELF definitions here if the system header does not.
10504
71a6ba55
GM
105052000-03-03 Gerd Moellmann <gerd@gnu.org>
10506
10507 * xterm.c (PER_CHAR_METRIC): Removed.
10508 (x_per_char_metric_1, x_default_char): New functions.
10509 (x_per_char_metric): If font's default char is invalid, return
10510 metrics of a suitably chosen usable default char.
10511 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
10512 char, replace occurrences of unprintable chars with a suitably
10513 chosen usable default char.
71a6ba55 10514
900fa1f1
GM
105152000-03-02 Gerd Moellmann <gerd@gnu.org>
10516
42f55fe0
GM
10517 * xterm.c (note_mouse_highlight): Return quickly if frame's
10518 glyph matrices have been freed.
10519
10520 * dispnew.c (free_glyphs): Block input while freeing matrices.
10521
900fa1f1
GM
10522 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
10523
52283633
SM
10524 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
10525 Use x_free_colors.
900fa1f1
GM
10526
10527 * dispextern.h (x_free_colors): Add prototype.
10528
10529 * xfaces.c (x_free_colors): New function.
10530 (unload_color, free_face_colors): Use it.
10531
2f950292
EZ
105322000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
10533
10534 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
10535
10536 * window.c [MSDOS]: Include msdos.h.
10537
54d04320
DL
105382000-03-02 Dave Love <fx@gnu.org>
10539
10540 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
10541
10542 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
10543 set C_OPTIMIZE_SWITCH for gcc.
10544
0ba93ac4
KH
105452000-03-02 Kenichi Handa <handa@etl.go.jp>
10546
10547 * coding.c (coding_save_composition): Be sure to allocate
10548 composition data area in coding even if there's no composition in
10549 the current run.
10550
a2bc11d4
JR
105512000-03-01 Jason Rumney <jasonr@gnu.org>
10552
10553 * w32term.c: Equivalent changes to those made to xterm.c on
10554 2000-02-25 and 2000-02-24.
10555
10556 * w32fns.c: Equivalent changes to those made to xfns.c on
10557 2000-02-25 and 2000-02-21.
10558
10559 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
10560 correct line-end convention is followed.
10561
10562 * w32menu.c [HAVE_BOXES]: Remove #undef.
10563 (single_keymap_panes): Remove code for simulating checkmarks.
10564 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
10565 Remove code for drawing simulated checkmarks.
10566 (w32_menu_show): make unibyte help string correctly.
10567 (add_menu_item): draw standard Windows checkmarks. Draw radio
10568 buttons as radio buttons if possible.
10569
72d19d75
GM
105702000-03-01 Gerd Moellmann <gerd@gnu.org>
10571
2df636f4
GM
10572 * sysdep.c (start_of_text): Don't define this function for NetBSD
10573 with ELF.
10574
427ec082 10575 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
10576 Don't define.
10577 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
10578 (LINKER): Don't undef if __NetBSD__ is defined.
10579
10580 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
10581
10582 * fileio.c [__NetBSD__]: Define `unix'.
10583
72d19d75
GM
10584 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
10585
ed4d0512
GM
105862000-02-29 Gerd Moellmann <gerd@gnu.org>
10587
50b1039f
GM
10588 * atimer.c (start_atimer): Don't abort when timers are stopped.
10589 (append_atimer_lists): New function.
10590 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
10591 arbitrary lists of stopped and running atimers.
10592
ed4d0512
GM
10593 * atimer.c (cancel_atimer): Handle canceling an atimer when
10594 some timers are stopped.
10595
10596 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
10597 after canceling it.
10598
10599 * fns.c (maybe_resize_hash_table): Handle case of new size
10600 coming out as being the same as old size.
10601
387023ee
JR
106022000-02-27 Jason Rumney <jasonr@gnu.org>
10603
10604 * makefile.nt: Add atimer.h to dependencies.
10605 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
10606 * w32console.c: Only disable window system features for dispextern.h
10607 (initialize_w32_display): Build a display info for the console.
10608 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
10609 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
10610 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
10611 as 2 button mice.
10612 * w32gui.h (struct W32FontStruct): Revert last change after change
10613 to xdisp.c.
10614 * w32menu.c (single_submenu): Set up help string.
10615 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
10616 (w32_dialog_show): Set up help string.
10617 * w32term.c (w32_display_info_for_display): Remove unused function.
10618 (w32_draw_bitmap): Use pre-built bitmaps.
10619 (w32_initialize_display_info): New function to initialize parts of
10620 display info that are common to both GUI and console frames.
10621 (w32_term_init): Use w32_initialize_display_info. Do not set
10622 Vw32_num_mouse_buttons here, as it is not called for console
10623 frames. Build bitmaps for indicating truncated lines etc.
10624 (x_delete_display): Destroy pre-built bitmaps.
10625 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
10626 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
10627
4516715a
DL
106282000-02-27 Dave Love <fx@gnu.org>
10629
10630 * lisp.h: Add a bunch of prototypes.
10631
171ca836
KH
106322000-02-26 Kenichi Handa <handa@etl.go.jp>
10633
10634 * keyboard.c (read_char): Set `usec' correctly.
10635
4013921d
KH
106362000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
10637
10638 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
10639 `lambda', set reg[RRR] to the map index.
10640 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
10641 reg[RRR] to 0. Otherwise, set it to -1.
10642
9244a058
GM
106432000-02-25 Gerd Moellmann <gerd@gnu.org>
10644
2df636f4 10645 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 10646
18e21ce8 106472000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 10648
f43d79c1
GM
10649 * fileio.c (Ffile_symlink_p): If result starts with a `/'
10650 and contains a `:', prepend `/:'.
10651
10652 * window.c (select_window_1): If selected_window is nil,
10653 don't "swap out" the buffer's point.
10654 (Fset_window_configuration): Set selected_window to nil
10655 before calling Fselect_window.
10656 (unshow_buffer): Don't set point in buffer from window's point
10657 if another more recently selected window also shows the buffer.
10658
bed0c171
GM
106592000-02-25 Gerd Moellmann <gerd@gnu.org>
10660
449c3c52
GM
10661 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
10662
f5b58615
GM
10663 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
10664 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
52283633
SM
10665 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
10666 New variables.
f5b58615
GM
10667 (DEFAULT_BUSY_CURSOR_DELAY): New define.
10668 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
10669 (hide_busy_cursor): New functions.
10670 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
10671
10672 * minibuf.c (read_minibuf): Cancel busy-cursor.
10673
10674 * keyboard.c (command_loop_1): Call start_busy_cursor before
10675 Fcommand_execute and cancel_busy_cursor after it.
10676 (timer_check): Remove busy-cursor code.
10677 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
10678 cursor timer.
10679
10680 * process.c (wait_reading_process_input): Remove busy-cursor code.
10681
10682 * eval.c (Fsignal): Call cancel_busy_cursor instead of
10683 Fx_hide_busy_cursor.
10684
10685 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
10686 Remove prototyoes.
10687 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
10688
10689 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
10690
10691 * xterm.c (XTread_socket): Remove busy-cursor code.
10692
4eb8436f
GM
10693 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
10694 (build_frame_matrix_from_leaf_window): Put code handling
10695 glyph row's not being a slice of a frame row in #if 0.
10696 (sync_window_with_frame_matrix_rows): New function.
10697 (frame_row_to_window): New function.
10698 (mirror_line_dance): Handle copies between windows.
10699
3cb65b0e
GM
10700 * lread.c (Fload): Use `xfree' instead of `free'.
10701 (init_obarray): Use `xmalloc' instead of `malloc'.
10702
bed0c171
GM
10703 * window.c (Fset_window_buffer): Set WINDOW to the window
10704 after decoding.
2add4349
GM
10705 (coordinates_in_window): Take frame's internal border width
10706 into account.
bed0c171 10707
42088c12
GM
107082000-02-24 Gerd Moellmann <gerd@gnu.org>
10709
10710 * xterm.c (x_display_and_set_cursor): Display cursor of
10711 non-selected windows depending on the setting of
10712 cursor_in_non_selected_windows.
10713
10714 * xdisp.c (cursor_in_non_selected_windows): New variable.
10715 (syms_of_xdisp): DEFVAR_BOOL it.
10716
d1e103b2
GM
107172000-02-23 Gerd Moellmann <gerd@gnu.org>
10718
723e779c
GM
10719 * data.c (Fstring_to_number): If number is greater than what
10720 fits into an integer, return a float.
10721
d1e103b2
GM
10722 * eval.c (specbind): Remove references to
10723 keyword_symbols_constant_flag.
10724
10725 * data.c (keyword_symbols_constant_flag): Removed.
10726 (Fmakunbound, set_internal, syms_of_data): Remove references to
10727 keyword_symbols_constant_flag.
10728
10729 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
10730
214f877f
KH
107312000-02-23 Kenichi Handa <handa@etl.go.jp>
10732
10733 * syntax.c (multibyte_syntax_as_symbol): New variable.
10734 (syms_of_syntax): Declare it as a Lisp variable.
10735 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
10736 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
10737 nonzero, treat all multibyte characters as symbol.
52283633 10738 (init_syntax_once): Give syntax `word' to all multibyte characters.
214f877f 10739
130adcb7
EZ
107402000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
10741
3cb65b0e 10742 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 10743 a deleted frame.
130adcb7 10744
17cbbf95
GM
107452000-02-21 Gerd Moellmann <gerd@gnu.org>
10746
10747 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
10748
10749 * xfns.c (x_window_to_frame, x_any_window_to_frame)
10750 (x_non_menubar_window_to_frame): Check the busy-cursor window.
10751
beb0bc36
DL
107522000-02-21 Dave Love <fx@gnu.org>
10753
10754 * frame.c (Vmouse_position_function): New variable.
10755 (Fmouse_position): Use it.
10756 (syms_of_frame): Install it.
10757
10758 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
10759
1d92afcd
GM
107602000-02-20 Gerd Moellmann <gerd@gnu.org>
10761
10762 * fileio.c (Finsert_file_contents): Unbind the binding of
10763 standard-output done by temp_output_buffer_setup.
329eed9f
GM
10764
10765 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
10766 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
10767 (specbind, unbind_to): Handle most common case of non-constant
10768 symbol with trivial value specially.
10769
10770 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
10771
18e21ce8 107722000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
10773
10774 * data.c (Fmake_variable_buffer_local): Doc fix.
10775 Init found_for_buffer to 0.
10776 (Fmake_variable_frame_local): If the variable has already
10777 been buffer-local, set the check_frame field.
10778
1d4311c3
EZ
107792000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
10780
10781 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
10782 produced for CODING_MODE_LAST_BLOCK requires.
10783
2dc95ddd
DL
107842000-02-18 Dave Love <fx@gnu.org>
10785
10786 * keyboard.c (echo_keystrokes): Remove declaration.
10787 (Vecho_keystrokes) New variable.
10788 (read_char, record_menu_key, read_key_sequence): Use it to allow
10789 use of float value.
10790 (syms_of_keyboard): Change Vecho_keystrokes declaration.
10791
10792 * lread.c: Undef feature selection macros before defining.
10793
f0930f35
GM
107942000-02-18 Gerd Moellmann <gerd@gnu.org>
10795
10796 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
10797 for symbols other than the symbol in question.
10798
e3d4de90
DL
107992000-02-17 Dave Love <fx@gnu.org>
10800
10801 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
10802
0b378936
GM
108032000-02-17 Gerd Moellmann <gerd@gnu.org>
10804
d621caf7
GM
10805 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
10806
0b378936
GM
10807 * alloc.c (enum mem_type): Compile unconditionally.
10808
3b451f74
EZ
108092000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
10810
10811 * xfaces.c (tty_defined_color): Don't return faulire indication
10812 for unspecified-fg and unspecified-bg pseudo-colors.
10813
10689a01
GM
108142000-02-17 Gerd Moellmann <gerd@gnu.org>
10815
1216f5e4
GM
10816 * alloc.c (mark_object): Don't mark symbol names in pure space.
10817 (gc_sweep): Don't unmark symbol names in pure space.
10818
10819 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
10820 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
10821 [GC_MARK_STACK]: New defines.
427ec082 10822 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
10823 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
10824
10825 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
10826
10827 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
10828 allocate_buffer instead of xmalloc.
10829
10830 * alloc.c (toplevel): Include setjmp.h.
10831 (PURE_POINTER_P): New define.
10832 (enum mem_type) [GC_MARK_STACK]: New enumeration.
10833 (Vdead) [GC_MARK_STACK]: New variable.
10834 (lisp_malloc): Add parameter TYPE, call mem_insert if
10835 GC_MARK_STACK is defined.
10836 (allocate_buffer): New function.
427ec082 10837 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
10838 (free_float) [GC_MARK_STACK]: Set type to Vdead.
10839 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
10840 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
10841 (MEM_NIL) [GC_MARK_STACK]: New define.
10842 (struct mem_node) [GC_MARK_STACK]: New structure.
10843 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
10844 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
10845 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
10846 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
10847 (mark_stack) [GC_MARK_STACK]: New functions.
10848 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
10849 (clear_marks): Removed.
10850 (gc_sweep): Set free conses' car, free floats' type, free
10851 symbols' function to Vdead. Use lisp_free to free buffers.
10852 (init_alloc_once): Initialize Vdead.
10853 (survives_gc_p): Return non-zero for pure objects.
10854
10855 * alloc.c: Add comments throughout the file.
10856
2503c8b1
GM
10857 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
10858 that unblocks alarms.
10859
8389e1e2
GM
10860 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
10861 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
10862 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
10863
10689a01 10864 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 10865
bfc17d18
KH
108662000-02-17 Kenichi Handa <handa@etl.go.jp>
10867
4a09dee0
KH
10868 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
10869 avoid infinite error signaling. Allocate sufficient memory for
10870 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 10871
2b927d02
SM
108722000-02-17 Stefan Monnier <monnier@cs.yale.edu>
10873
10874 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
10875 depends on the previous behavior.
10876
b49cb764
GM
108772000-02-16 Gerd Moellmann <gerd@gnu.org>
10878
10879 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
10880
99e95407
GM
108812000-02-15 Gerd Moellmann <gerd@gnu.org>
10882
10883 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
10884
10885 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 10886 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
10887 write(2).
10888
6ffd3cf7
RS
108892000-02-15 Richard M. Stallman <rms@gnu.org>
10890
10891 * data.c (set_internal): Don't make variable buffer-local
10892 if within a let-binding for the same buffer.
10893 (let_shadows_buffer_binding_p): New function.
10894
10895 * eval.c (specbind): For buffer-local value,
10896 record the current buffer also.
10897 (unbind_to): Cope with that change.
10898
cad53475
GM
108992000-02-15 Gerd Moellmann <gerd@gnu.org>
10900
10901 * window.c (Fsave_window_excursion): Doc fix.
10902
1aa963c8
SM
109032000-02-15 Stefan Monnier <monnier@cs.yale.edu>
10904
10905 * syntax.c (back_comment): Make sure we only consider comment-starters
10906 of the relevant style and return -1 in case of a failure to find the
10907 beginning of the comment.
10908 (Fforward_comment): If back_comment fails, go back to the position just
10909 after the comment-end.
10910 (scan_lists): Add comment describing a very minor bug.
10911
b9b84fd3
SM
109122000-02-14 Stefan Monnier <monnier@cs.yale.edu>
10913
10914 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
10915 `completion-regexp-list' in the docstring.
10916
3a28db80
DL
109172000-02-14 Dave Love <fx@gnu.org>
10918
10919 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
10920
fb4a568d
SM
109212000-02-14 Stefan Monnier <monnier@cs.yale.edu>
10922
10923 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
10924 to Emacs' syntax. Also fix the comment about set/not-set meanings
10925 since Emacs syntax is not the value 0 any more.
10926 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
10927 since it's now part of RE_SYNTAX_EMACS.
10928
1063ebb5
DL
109292000-02-12 Dave Love <fx@gnu.org>
10930
52283633 10931 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
1063ebb5 10932
fb07a302
GM
109332000-02-12 Gerd Moellmann <gerd@gnu.org>
10934
10935 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
10936
aaf2320c
DL
109372000-02-12 Dave Love <fx@gnu.org>
10938
10939 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
10940
10941 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
10942 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
10943 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
10944
10945 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
10946
10947 * s/nextstep.h: Don't define HAVE_ALLOCA.
10948
10949 * config.in: Add vfork bits.
10950
eedf8bde
GM
109512000-02-12 Gerd Moellmann <gerd@gnu.org>
10952
10953 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
10954 unwind function to undo the effect of stopping atimers.
10955
52283633 10956 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
eedf8bde
GM
10957
10958 * atimer.c (stopped_atimers): New variable.
10959 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
10960 New functions.
10961
10962 * atimer.h (stop_other_atimers, run_all_atimers)
10963 (unwind_stop_other_atimers): Add function prototypes.
427ec082 10964
eedf8bde
GM
10965 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
10966
8476c2f8
KR
109672000-02-11 Ken Raeburn <raeburn@gnu.org>
10968
10969 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
10970 library may depend on jpeg.
10971 (atimer.o): Depends on atimer.c.
10972
0e85e4a3
KH
109732000-02-11 Kenichi Handa <handa@etl.go.jp>
10974
10975 * insdel.c (del_range_1): Call update_compositions.
10976 (del_range_both): Call update_compositions just once..
10977
97fa0cc8
DL
109782000-02-10 Dave Love <fx@gnu.org>
10979
10980 * xfns.c (create_frame_xic): Fix initialization of automatic
10981 aggregates for pcc.
10982
25566a3c
KH
109832000-02-09 Kenichi Handa <handa@etl.go.jp>
10984
10985 * ccl.c (CCL_MAKE_CHAR): New macro.
10986 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
10987 registers by CCL_MAKE_CHAR before calling translate_char.
10988 <CCL_TranslateCharacterConstTbl> Likewise.
10989
69da54ba
DL
109902000-02-08 Dave Love <fx@gnu.org>
10991
10992 * lread.c (__EXTENSIONS__): Define.
10993
f7136ee8
GM
109942000-02-08 Gerd Moellmann <gerd@gnu.org>
10995
10996 * puresize.h (BASE_PURESIZE): Increase to 650000.
10997
7768790b
EZ
109982000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
10999
11000 * msdos.c (XMenuActivate): Turn off the cursor after displaying
11001 the help message.
11002
38fd211b
EZ
110032000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
11004
11005 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
11006 md, mh, mb, mr, and me to the fake termcap entry.
11007
66e4690f
KR
110082000-02-06 Ken Raeburn <raeburn@gnu.org>
11009
11010 * sound.c (sound_cleanup): Don't call device close routine if the
11011 function pointer is null.
11012
a75dfea0
AI
110132000-02-06 Andrew Innes <andrewi@gnu.org>
11014
11015 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
11016 around image definitions and prototypes.
11017 (gamma_correct) [WINDOWSNT]: New prototype.
11018
11019 * w32term.c (x_make_frame_visible): Replace call to
11020 input_poll_signal with poll_for_input.
11021
11022 * window.c [WINDOWSNT]: Include w32term.h.
11023
11024 * xdisp.c [WINDOWSNT]: Include w32term.h.
11025
11026 * makefile.nt: Add dependencies on w32gui.h.
11027 (OBJ1): Include atimer.obj.
11028 ($(BLD)\atimer.obj): New dependency rule.
11029
11030 * w32.c (sigmask): New function (does nothing).
11031 (sigunblock): Ditto.
11032
11033 * frame.c [WINDOWSNT]: Include w32term.h.
11034
11035 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
11036
11037 * lread.c (syms_of_lread): Fix literal newlines.
11038
11039 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
11040 the string constant limit (2048 bytes) in MSVC.
11041 (main): Ditto.
11042
59ddecde
GM
110432000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
11044
52283633 11045 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
59ddecde
GM
11046 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
11047 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
11048 dispatch the event.
11049
07590973
DL
110502000-02-04 Dave Love <fx@gnu.org>
11051
11052 * fileio.c: Remove some unused vars.
11053 (_GNU_SOURCE): Define (for euidaccess).
11054
11055 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
11056
11057 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
11058 gcpro1, gcpro2.
11059 (read_minibuf): Deal with allow_props correctly.
11060
649351f9
EZ
110612000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
11062
11063 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
11064
66e4690f 110652000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
11066
11067 * search.c (compile_pattern): If a cache entry has a nil regexp,
11068 fill in that entry instead of clobbering a previously cached
11069 string regexp.
11070
66e4690f 110712000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
11072
11073 * puresize.h (BASE_PURESIZE): Increase to 610000.
11074
d240a249
GM
110752000-02-02 Gerd Moellmann <gerd@gnu.org>
11076
11077 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
11078 can GC.
11079
ca91fb26
KH
110802000-02-02 Kenichi Handa <handa@etl.go.jp>
11081
25660570
KH
11082 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
11083 instead of incrementing ic directly.
11084 <CCL_WriteExprConst> Likewise.
11085 <ccl_set_expr>: Set ic to jump_address.
11086
ca91fb26
KH
11087 * fileio.c (e_write): Fix the handling of
11088 CODING_FINISH_INSUFFICIENT_SRC.
11089
2ede9689
DL
110902000-02-01 Dave Love <fx@gnu.org>
11091
11092 * editfns.c (Fpropertize): Doc fix.
11093
11094 * process.c (Fstart_process): Doc fix.
11095
11096 * eval.c: Fix various doc strings not to duplicate information
11097 from help-manyarg-func-alist.
11098
52283633 11099 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
2ede9689
DL
11100
11101 * doc.c (Vhelp_manyarg_func_alist): New variable.
11102 (Fdocumentation): Use it.
11103 (syms_of_doc): Define it.
11104
b6680a0e
GM
111052000-01-31 Gerd Moellmann <gerd@gnu.org>
11106
2cb750ba
GM
11107 * xterm.c (xim_open_dpy): Remove unused local variable.
11108
52283633 11109 * emacs.c (USAGE): Use term `display options' instead of `X options'.
74e9213b
GM
11110
11111 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
11112 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
11113
b6680a0e
GM
11114 * fns.c (sweep_weak_table): New function.
11115 (sweep_weak_hash_tables): Use it. Keep on marking until there
11116 is no more change.
11117
994c5afe
GM
111182000-01-30 Gerd Moellmann <gerd@gnu.org>
11119
11120 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
11121 that XTread_socket does not crash by trying to call XNoOp on a
11122 closed display.
427ec082 11123
f00276e3
JR
111242000-01-30 Jason Rumney <jasonr@gnu.org>
11125
11126 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
11127 Change selected_frame to SELECTED_FRAME ().
11128 (w32_console_mouse_position): Remove #ifndef MULE from around
11129 `insist' parameter.
11130
11131 * makefile.nt: Remove dosfns.obj.
11132
11133 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
11134
11135 * w32fns.c (w32_defined_color): Check for valid frame before
11136 applying gamma correction. Eliminate dependency on frame elsewhere.
11137 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
11138 (w32_to_x_font): Use resx and resy not height_in and width_in.
11139 (x_to_w32_font): Doc fix.
11140 (xlfd_strip_height): New function to strip and return font height.
11141 (w32_font_match): Compare height separately from rest of xlfd
11142 spec, using xlfd_strip_height.
11143
11144 * w32term.c (w32_term_init): Swap resx and height_in, resy and
11145 width_in. Use w32_defined_color in place of defined_color.
11146
11147 * w32faces.c: Merge more of DOS and X specifics in preparation for
11148 merge with xfaces.c.
11149 (defined_color): Remove FIXME comment.
11150 (tty_color_name): Provide w32-specific function.
11151 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
11152
11153 * w32console.c (turn_on_face, turn_off_face): Removed.
11154 (w32_face_attributes): New function.
11155 (Global_variables): Reduce scope where possible.
11156 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
11157 fill attribute.
11158 (hl_mode): Don't modify text attributes.
11159 (write_glyphs): Don't do anything if len <= 0. Use
11160 w32_face_attributes to get attributes for drawing. Write
11161 terminating codes using char_attr_normal.
11162 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
11163 (update_begin, update_end): Likewise.
11164 (vga_stdcolor_name): New function.
11165 (initialize_w32_display): Remove char_attr_reverse and char_attr.
11166 (Fset_screen_color): Remove char_attr_reverse.
11167
b08e8bb2
GM
111682000-01-29 Gerd Moellmann <gerd@gnu.org>
11169
11170 * xfns.c (xic_set_preeditarea): Take window parameter and
11171 window-relative pixel-positions.
11172
11173 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
11174 is its frame's selected window.
11175 (xim_instantiate_callback): Likewise.
11176
11177 * xfns.c (x_create_im): Removed.
11178 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
11179 (supported_xim_styles): Renamed from supported_styles.
11180 (best_xim_style): Renamed from best_style.
11181 (create_frame_xic): Renamed from xic_create_frame.
11182 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 11183
b08e8bb2
GM
111842000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
11185
11186 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
11187 our frames, call XFilterEvent with 2nd parameter `None'.
11188 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
11189 returning XBufferOverflow.
52283633 11190 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
b08e8bb2
GM
11191 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
11192 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
11193 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
11194 (xim_initialize, xim_close)
11195 [HAVE_X_I18N && HAVE_X11R6]: New functions.
11196 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
11197 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
11198 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
11199
11200 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
11201 and `xim_styles'.
11202 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
11203 `xic_style' and `xic_xfs'.
11204 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
11205 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
11206 (FRAME_XIM): Removed.
11207
11208 * xfns.c (supported_styles): New variable.
11209 (DEFAULT_STYLE, DEFAULT_FONT): New macros
11210 (xic_create_xfontset, best_style, xic_create_frame)
11211 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
11212 (xic_set_xfontset): New functions.
11213
142e109c
DL
112142000-01-28 Dave Love <fx@gnu.org>
11215
11216 * s/irix6-5.h: Revert last change after change to irix5-0.h.
11217
11218 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
11219
b02786f9
GM
112202000-01-28 Gerd Moellmann <gerd@gnu.org>
11221
d060bc9f
GM
11222 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
11223 for *scratch* if it already existed.
11224
b02786f9
GM
11225 * emacs.c (USAGE): New macro.
11226 (main): Use it to display usage information.
11227
2c52d7e4
EZ
112282000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
11229
11230 Support for the menu-help feature:
11231
52283633 11232 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
2c52d7e4
EZ
11233
11234 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
11235 part of the line to the termscript file.
11236 (IT_clear_to_end): Clear the entire line, not just its beginning.
11237 (menu_help_message, prev_menu_help_message): New variables.
11238 (IT_menu_make_room): Make room for the help_text member.
11239 (IT_menu_display): New argument disp_help; all callers changed.
11240 If disp_help is non-zero, store the help text of the active menu
11241 item in menu_help_message.
11242 (XMenuAddPane): Initialize the help_text member to NULL.
11243 (XMenuAddSelection): New argument help_text. Store it in the
11244 XMenu structure.
11245 (XMenuActivate): New argument help_callback. If the value of
11246 menu_help_message has changed since the last time, display the
11247 menu help message text while waiting for the mouse to move. Clear
11248 the echo area before exiting.
11249 (XMenuDestroy): Free the help_text member.
11250
ffe0bcd1
GM
112512000-01-27 Gerd Moellmann <gerd@gnu.org>
11252
11253 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
11254 XMenuAddSelection. Pass help callback to XMenuActivate.
11255 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
11256
50dbd23f
EZ
112572000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
11258
11259 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
11260 and EMACS_SET_USECS.
11261
f5941bf8
GM
112622000-01-26 Dave Love <fx@gnu.org>
11263
6c67ddee
DL
11264 * editfns.c (Fchar_after, Fchar_before): Doc fix.
11265
f5941bf8
GM
11266 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
11267 an error may be signalled.
11268
9e49c990
GM
112692000-01-26 Gerd Moellmann <gerd@gnu.org>
11270
fc3cb460
GM
11271 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
11272 LD_SWITCH_SYSTEM inherited from irix5-0.h.
11273
9e49c990
GM
11274 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
11275
d0c037d8
GM
112762000-01-25 Gerd Moellmann <gerd@gnu.org>
11277
11278 * charset.c (Fstring): If there is a multibyte char among
11279 the args, always return a multibyte string.
11280
e12489f9
GM
112812000-01-25 Gerd Moellmann <gerd@gnu.org>
11282
11283 * sysdep.c (sys_select): Turn atimers off and on instead of
11284 recording and restoring old alarm handler
11285
11286 * process.c (toplevel): Include atimer.h.
11287 (create_process_1): Rewritten.
11288 (create_process): Use atimers instead of alarm.
11289 (wait_reading_process_input) [hpux]: Turn atimers off instead
11290 of turning off SIGALRM.
11291 (wait_reading_process_input): Turn off atimers instead off
11292 calling stop_polling.
11293
11294 * emacs.c (main): Call init_atimer.
11295
11296 * keyboard.c (toplevel): Include systime.h and atimer.h.
11297 (polling_for_input): Removed because unused.
11298 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
11299 (poll_timer): New variable.
11300 (poll_for_input, poll_for_input_1): New functions.
11301 (start_polling, stop_polling): Rewritten.
11302
11303 * keyboard.h (polling_for_input): Removed.
427ec082 11304
e12489f9
GM
11305 * atimer.h, atimer.c: New files.
11306
11307 * Makefile.in (obj): Add atimer.o.
11308 (atimer.o): New target.
11309
11310 * blockinput.h (pending_atimers): Add extern declaration.
11311 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
11312
11313 * lisp.h (popup_activated_flag): Add extern declaration.
11314
11315 * xmenu.c (popup_activated_flag): Make externally visible.
52283633 11316 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
e12489f9
GM
11317 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
11318
11319 * xterm.c (toplevel): Include atimer.h.
11320 (toolkit_scroll_bar_interaction): New variable.
11321 (Fxt_process_timeouts): Removed.
11322 (x_process_timeouts): New function.
11323 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
11324 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
11325 (x_make_frame_visible): Call poll_for_input_1 instead of
11326 input_poll_signal. Don't call alarm.
11327 (x_initialize): Install timer calling x_process_timeouts.
427ec082 11328
1e5279b9
DL
113292000-01-24 Dave Love <fx@gnu.org>
11330
6c67ddee 11331 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
11332 Don't use -cckr -- apparently not now necessary.
11333
edf6aeb8
EZ
113342000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
11335
11336 * msdos.c (IT_menu_display): Truncate long menu lines at the right
11337 screen boundary.
11338
9badad41
JR
113392000-01-23 Jason Rumney <jasonr@gnu.org>
11340
11341 * w32fns.c (w32_defined_color): Apply gamma correction before
11342 trying to map to the palette.
11343 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
11344 to w32_clear_rect.
11345
11346 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
11347 here. Callers changed to always pass real device context.
11348 (w32_draw_bitmap): Likewise.
11349 (w32_get_glyph_overhangs): Likewise.
52283633 11350 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
9badad41
JR
11351 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
11352 pfnSetScrollInfo and SetScrollRange.
11353 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
11354 back into MULE characters after decoding them.
11355 (x_get_glyph_face_and_encoding): Likewise.
11356 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
11357 GetCharABCWidthsW fails, since this is defined on Windows 9x.
11358 (x_produce_glyphs): Calculate per char metrics for a character
11359 that we know exists in default font when font_not_found_p is true.
11360
63bd786b
JR
113612000-01-22 Jason Rumney <jasonr@gnu.org>
11362
11363 * makefile.nt (intervals.obj, composite.obj): New modules.
11364 (composite.h): Added as dependency where appropriate.
11365
11366 * w32gui.h (XGCValue): New struct for emulating X GCs.
11367
11368 * w32term.h (XCharStruct): New struct for emulating X.
11369
11370 * w32console.c (turn_on_face, turn_off_face): New functions.
11371 (change_line_highlight): New prototype for new redisplay.
11372 (write_glyphs): Support multibyte text. Support faces.
11373
52283633 11374 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
63bd786b
JR
11375
11376 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
11377 throughout. struct frame * in place of FRAME_PTR.
11378 Skeleton support for images, toolbars, tooltips from xfns.c.
52283633 11379 (Fx_create_frame): Use system default for default scroll bar width.
63bd786b
JR
11380 (w32_get_arg): Renamed from x_get_arg.
11381 (Fx_file_dialog): New function.
11382 (w32_list_fonts): Check cache before asking system.
11383 (Vw32_enable_synthesized_fonts): New variable.
11384 (Vw32_enable_italics): Obsolete, removed.
11385
11386 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
11387 Use SELECTED_FRAME macro.
11388
11389 * w32menu.c: Add skeleton support for help strings on menus.
11390 (add_menu_item): Native checkbox and radio support added, but not
11391 yet enabled due to bugs.
11392 (push_menu_item): Add parameters type, selection and help.
11393 Callers updated.
11394 Formatting changes to reduce unnecessary diffs with xmenu.c.
11395
11396 * w32select.c (Fw32_set_clipboard_data): Update call to
11397 find_charset_in_str.
11398
11399 * w32term.c: Complete rewrite for new redisplay based on new
11400 xterm.c with necessary sections merged back in from old w32term.c.
11401
6ffd3cf7 114022000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
11403
11404 * data.c (set_internal): Further fix in same criterion.
11405
6ffd3cf7 114062000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
11407
11408 * data.c (set_internal): Fix the criteria for whether
11409 to swap out the old cached binding.
11410
60af03f1
DL
114112000-01-19 Dave Love <fx@gnu.org>
11412
11413 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
11414
f9be074f
KH
114152000-01-18 Kenichi Handa <handa@etl.go.jp>
11416
11417 * regex.c (re_compile_fastmap): While checking a range table for
11418 `charset', skip flag bits for a character class correctly.
11419
52b8dbf9
GM
114202000-01-17 Gerd Moellmann <gerd@gnu.org>
11421
d36100c9
GM
11422 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
11423
52283633 11424 * xfns.c (x_window): Call lw_create_widget with new parameter list.
52b8dbf9
GM
11425
11426 * widget.c (EmacsFrameSetCharSize): Change size of children first
52283633 11427 because of problems with main window geometry management under Lesstif.
52b8dbf9
GM
11428
11429 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
11430 MENU_ITEMS_ITEM_.*.
11431 (MENU_ITEMS_ITEM_HELP): New enumerator.
11432 (push_menu_item): Add parameter HELP. Record help in menu_items.
11433 (single_menu_item, single_submenu, list_of_items): Call
11434 push_menu_item with new parameter.
11435 (single_submenu): Set help string in widget value.
11436 (menu_highlight_callback): New function.
11437 (set_frame_menubar): Call lw_create_widget with new
11438 parameter list.
11439 (xmenu_show, xdialog_show): Ditto.
11440
3139018f
GM
114412000-01-13 Gerd Moellmann <gerd@gnu.org>
11442
11443 * sound.c (Fplay_sound): Improve doc string.
11444
83c8f461
RS
114452000-01-11 Richard M. Stallman <rms@gnu.org>
11446
11447 * lisp.h (set_internal): Enter the new arg.
11448
11449 * eval.c (specbind): Record buffer-local variables specially,
11450 indicating which buffer's binding was saved.
11451 (unbind_to): Restore buffer-local variables specially
11452 in the proper buffer.
11453
11454 * data.c (set_internal): New arg BUF.
427ec082 11455
83c8f461
RS
11456 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
11457 * data.c (Fset): Pass new arg to set_internal.
11458 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 11459
1fab1775
GM
114602000-01-11 Gerd Moellmann <gerd@gnu.org>
11461
52283633 11462 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
1fab1775 11463
83c8f461 114642000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
11465
11466 * minibuf.c (Ftry_completion): Doc fix.
11467
7a85e4df
GM
114682000-01-11 Gerd Moellmann <gerd@gnu.org>
11469
11470 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
11471 vector, too.
11472
a970dae4
AS
114732000-01-11 Andreas Schwab <schwab@suse.de>
11474
11475 * coding.c (code_convert_region): Initialize total_skip.
11476
c65d14ee
DL
114772000-01-08 Dave Love <fx@gnu.org>
11478
11479 * eval.c (Fuser_variable_p): Check customizability too.
11480
834938d2
GM
114812000-01-07 Gerd Moellmann <gerd@gnu.org>
11482
11483 * minibuf.c (Fcompleting_read): Doc fix.
11484
e0303cd6
GM
114852000-01-05 Gerd Moellmann <gerd@gnu.org>
11486
8a26744b
GM
11487 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
11488 -L /usr/local/lib.
11489
e0303cd6
GM
11490 * xfns.c (x_create_im): New function to set IM and IC of a frame.
11491 Check that input style is supported before trying to create an
11492 IC for it.
11493 (x_window): Call x_create_im.
427ec082 11494
2e471eb5
GM
114952000-01-04 Gerd Moellmann <gerd@gnu.org>
11496
560a7bd2
GM
11497 * xfns.c (current_gif_memory_src): New variable.
11498 (gif_load): Record the address of the current memory source
11499 in current_gif_memory_src.
11500 (gif_read_from_memory): Use current_gif_memory_src.
11501
f9ee84a3
GM
11502 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
11503 macros statement form.
11504
d1299cde
GM
11505 * sound.c (struct sound): Renamed from struct sound_file.
11506 (struct sound): Add members `data' and `header_size'.
11507 (enum sound_attr): Add SOUND_DATA.
11508 (current_sound, current_sound_device): Variables renamed from
11509 sound_file and sound_device.
11510 (parse_sound): Parse :data.
11511 (parse_sound): Handle sound data in strings.
11512 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 11513 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
11514 needed header size.
11515 (wav_play, au_play): Play sounds from string data.
11516
2e471eb5
GM
11517 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
11518
11519 * lisp.h: Add prototype for allocate_string_data.
11520
52283633 11521 * alloc.c (Fgarbage_collect): Return number of live and free strings.
2e471eb5
GM
11522
11523 * alloc.c (mark_buffer): Remove code in #if 0.
11524 (gc_sweep): Ditto.
11525 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
11526 (strings_consed): New variable.
11527 (allocate_string): Set it.
11528 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
11529 (Fmemory_use_counts): Return strings_consed. Use Flist.
11530
11531 * alloc.c: General cleanup in comments etc. Remove conditional
11532 compilation for `standalone'.
11533
11534 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
11535
11536 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
11537 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
11538 (DONT_COPY_FLAG): Removed.
11539 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
11540 (struct sdata, struct sblock): New
11541 (struct string_block): Rewritten.
11542 (STRINGS_IN_STRING_BLOCK): New macro.
11543 (oldest_sblock, current_sblock, total_strings, total_free_strings)
11544 (large_sblocks, string_blocks, string_free_list): New variables.
11545 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
11546 (init_strings): Rewritten.
11547 (allocate_string, allocate_string_data, compact_small_strings)
11548 (free_large_strings, sweep_strings): New functions.
11549 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
11550 (struct string_block_head, current_string_block)
11551 (first_string_block, large_string_blocks, STRING_FULLSIZE)
11552 (STRING_PAD): Removed.
11553 (make_uninit_multibyte_string, make_pure_string): Rewritten.
11554 (Fgarbage_collect): Don't set mark bit in large strings.
11555 (mark_object): Mark strings differently. Mark symbol names
11556 differently.
11557 (survives_gc_p): Test marked strings differently.
427ec082 11558 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
11559 symbol names.
11560 (compact_strings): Removed.
11561
42608ba8
EZ
115622000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
11563
11564 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
11565 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
11566
e0a09e1a
KH
115672000-01-04 Kenichi Handa <handa@etl.go.jp>
11568
dd9f0750 11569 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 11570 in a non-empty buffer.
dd9f0750 11571
3c0f3b15 11572 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 11573
44cd3ae5
GM
115742000-01-03 Gerd Moellmann <gerd@gnu.org>
11575
11576 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
11577 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
11578
11579 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
11580
c182a70f
EZ
115812000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11582
11583 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
11584 need to test for MSDOS frames.
11585
24480d5b
EZ
115862000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11587
11588 * dosfns.c (unspecified_colors): Remove.
11589 (msdos_stdcolor_idx): Use global variables unspecified_fg and
11590 unspecified_bg.
11591 (msdos_stdcolor_name): Return strings for unspecified fore- and
11592 back-ground colors.
11593
11594 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 11595 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
11596 (tty_color_name): Return Lisp strings for unspecified fore- and
11597 back-ground colors.
11598 (Finternal_set_lisp_face_attribute): Remove the special treatment
11599 for Qunspecified_{f,b}g.
52283633 11600 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
24480d5b 11601
047f434a
GM
116022000-01-03 Gerd Moellmann <gerd@gnu.org>
11603
11604 * xdisp.c (reseat_at_next_visible_line_start): Position before
11605 newline only if ending up on a newline.
11606 (next_element_from_ellipsis): Return success. Handle case of
52283633 11607 displaying no ellipsis. Fix case of ellipsis defined in display table.
047f434a
GM
11608 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
11609 returns 0.
11610
d684c676
EZ
116112000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11612
11613 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
11614 (Fcolor_supported_p): Renamed from face-color-supported-p.
11615
5fe1d139
EZ
116162000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11617
11618 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
11619 list of colors renamed to tty-defined-color-alist.
11620 (tty_color_name): Pass the frame to tty-color-by-index.
11621 (realize_tty_face): tty-color-alist is now a function which
11622 accepts the frame as argument.
11623
52283633 11624 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
5fe1d139 11625
816be8b8
EZ
116262000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11627
11628 * term.c (insert_glyphs): Pass glyph, not &glyph, to
11629 encode_terminal_code.
11630
b635321e
EZ
116312000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11632
11633 * dispnew.c (mode_line_string): Support termcap frames as well.
11634
9b784e96
GM
116352000-01-01 Gerd Moellmann <gerd@gnu.org>
11636
27189709
GM
11637 * syntax.c (Fforward_word): Undo previous change.
11638
11639 * editfns.c (Fconstrain_to_field): Don't constrain if
11640 inhibit-field-text-motion is non-nil.
11641 (Fline_beginning_position): Undo previous change.
11642 (Fline_end_position): Ditto.
11643
11644 * syntax.c (Fforward_word): Notice field boundaries only if
11645 inhibit-field-text-motion is nil.
11646
11647 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
11648
11649 * editfns.c (Vinhibit_field_text_motion): New variable.
11650 (inhibit-field-text-motion): New DEFVAR_LISP.
11651 (Fline_beginning_position, Fline_end_position): Notice field
11652 boundaries only if inhibit-field-text-motion is nil.
11653
45158a91
GM
11654 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
11655 All calls adjusted.
11656 (x_build_heuristic_mask): Likewise.
11657 (xbm_load_image_from_file): Change error output.
11658 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
11659 (gif_load, gs_load, x_kill_gs_process): Ditto.
11660
9b784e96
GM
11661 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
11662 color indices when accessing raster pixels.
63cec32f
GM
11663 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
11664 one of :file or :data.
11665 (enum pbm_keyword_index): Add PBM_DATA.
11666 (pbm_format): Add :data.
11667 (pbm_image_p): Allow either :file or :data.
11668 (pbm_read_file): New function.
11669 (pbm_scan_number): Rewritten to read from string.
11670 (pbm_load): Support :data.
9b784e96 11671
2cb085db 11672See ChangeLog.8 for earlier changes.
6922b018
KH
11673
11674;; Local Variables:
49b3bd82 11675;; coding: iso-2022-7bit
6922b018 11676;; End: