(wait_reading_process_input): Call
[bpt/emacs.git] / src / ChangeLog
CommitLineData
8c56a983
GM
12001-04-25 Gerd Moellmann <gerd@gnu.org>
2
c88164fe
GM
3 * process.c (wait_reading_process_input): Call
4 record_asynch_buffer_change only if a timer really changed
5 buffers.
6
bfd8410f
GM
7 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
8 of the number of overlays to check.
9
be2488ca
GM
10 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
11
8c56a983
GM
12 * xdisp.c (try_window_id): Fix a case where window_end_pos
13 and window_end_bytepos were not adjusted.
14
522d42f7
GM
152001-04-23 Gerd Moellmann <gerd@gnu.org>
16
17 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
18 zero instead of -1.
19
78c1afb6
EZ
202001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
21
22 * process.c (wait_reading_process_input) [!subprocesses]: Don't
23 reference waiting_for_user_input_p, it's not defined in the branch
24 without async subprocesses support.
25
a2fab450
GM
262001-04-19 Gerd Moellmann <gerd@gnu.org>
27
a122a38e
GM
28 * keyboard.c (delete_kboard): Prevent a dangling reference
29 from current_kboard to KB, which is freed.
30
a2fab450
GM
31 * process.c (wait_reading_process_input): Call
32 record_asynch_buffer_change after running timers, to make
33 read_key_sequence aware of buffer changes from under it.
34
0f8d6dc7
GM
352001-04-18 Gerd Moellmann <gerd@gnu.org>
36
eeffb293
GM
37 * xfaces.c (Qscalable_fonts_allowed): New variable.
38 (realizing_basic_faces_p): Removed.
39 (x_face_list_fonts): Special handling for realizing_basic_faces_p
40 removed.
41 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
42 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change
43 default for scalable-fonts-allowed to t.
44
0f8d6dc7
GM
45 * fileio.c (Finsert_file_contents): If the file size returned from
46 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
47 read from files on a procfs whose contents are generated
48 dynamically.
49
eec2d1de
EZ
502001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
51
52 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
53 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
54 (__memalign_hook): Make the two prototypes consistent.
55
f4f480bd
GM
562001-04-17 Gerd Moellmann <gerd@gnu.org>
57
58 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
59 matrix of mini-windows.
60
52283633
SM
612001-04-12 Stefan Monnier <monnier@cs.yale.edu>
62
63 * intervals.c (find_interval): Don't rebalance during signal handling.
64
ec2423c9
GM
652001-04-11 Gerd Moellmann <gerd@gnu.org>
66
30cb0001 67 * fns.c: Include blockinput.h.
52283633 68
ec2423c9
GM
69 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
70
719d83ad
GM
712001-04-10 Gerd Moellmann <gerd@gnu.org>
72
60f8d735
GM
73 * fns.c (Fcompare_strings): Fix return values.
74
afffeb57
GM
75 * window.c (window_scroll): Change the meaning of N to mean
76 N screen-fulls or N lines.
77 (window_scroll_pixel_based, window_scroll_line_based)
78 (scroll_command, Fscroll_other_window): Change accordingly.
79
52283633
SM
80 * window.c (window_scroll_pixel_based, Frecenter):
81 Call window_box_height instead of using it.last_visible_y for the
afffeb57
GM
82 height of the window.
83
84 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
85 instead of using it.last_visible_y for the height of the window.
52283633 86
719d83ad
GM
87 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
88
89 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
90 able to write to hidden and system files. Make file handles
91 non-inheritable.
92
93 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile.
94
522ed7fb
GM
952001-04-09 Gerd Moellmann <gerd@gnu.org>
96
9170e5d4
GM
97 * fns.c (Fplist_get, Fplist_put): Add QUITs.
98
522ed7fb
GM
99 * window.c (window_internal_height): Return 1 less if the
100 window has a header line.
101
102 * xdisp.c (try_window_id): When scrolling on a terminal, take
103 the change of window_internal_height into account.
104
ceeb3d7d
EZ
1052001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
106
107 * gmalloc.c (align): If the argument SIZE would overflow
108 __malloc_ptrdiff_t, fail right away.
109
63685b9d
GM
1102001-04-06 Gerd Moellmann <gerd@gnu.org>
111
112 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
113 Make sure the tooltip is completely visible.
114 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
115
116 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
117
118 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
119
3ffb33bb
DL
1202001-04-06 Dave Love <fx@gnu.org>
121
52283633
SM
122 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
123 Fix test of `from'.
3ffb33bb 124
869fb12c
GM
1252001-04-06 Gerd Moellmann <gerd@gnu.org>
126
52283633 127 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
afa3935f 128
869fb12c
GM
129 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
130
441bf856
GM
1312001-04-05 Gerd Moellmann <gerd@gnu.org>
132
4d664b04
GM
133 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
134
52283633 135 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
a55e4e68 136
30ca89f5
GM
137 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
138 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
139
140 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
141 shell widget's position only if it is non-null.
142
52283633
SM
143 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
144 Set f->output_data.x->widget to null after destroying it.
30ca89f5 145
81a81c0f
GM
146 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
147 FILENAME to bring it in synch with the documentation.
148
441bf856
GM
149 * xfaces.c (realizing_basic_faces_p): Renamed from
150 realize_default_face_p.
151 (realize_basic_faces): Set/clear realizing_basic_faces_p.
152 (realize_default_face): Don't set the flag.
153
702a1e8e
GM
1542001-04-04 Gerd Moellmann <gerd@gnu.org>
155
1013f4e3
GM
156 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
157
52283633
SM
158 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
159
1013f4e3
GM
160 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
161 the buffer that was used for echoing.
162
702a1e8e
GM
163 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
164 (first_font_matching): Removed unused function.
165 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
166 (may_use_scalable_font_p): Remove parameter FONT; rename
167 parameter NAME to FONT.
168 (x_face_list_fonts): Fix missing bounds check.
169 (realizing_default_face_p): New variable.
170 (realize_default_face): Set and clear that flag.
171 (x_face_list_fonts): When called during the realization of the
172 default face, and no matching fonts are found when ignoring
173 scalable fonts and fonts matching a regexp from
174 face-ignored-fonts, try without ignoring fonts.
175
f9dbcda4
GM
1762001-04-03 Gerd Moellmann <gerd@gnu.org>
177
ad18ffb1
GM
178 * xfns.c (postprocess_image): New function.
179 (lookup_image): Call it for all image types except PostScript.
180 (x_kill_gs_process): Call postprocess_image.
181
f9dbcda4
GM
182 * xterm.c (x_use_underline_position_properties): New variable.
183 (x_draw_glyph_string): Use it.
184 (syms_of_xterm): DEFVAR_BOOL it.
185
651f03b6
GM
1862001-04-02 Gerd Moellmann <gerd@gnu.org>
187
188 * xterm.c (x_alloc_nearest_color_1): New function.
189 (x_alloc_nearest_color): Use it.
190 (x_color_cells): Take a Display as argument, instead of a frame.
191 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
192 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
193 (x_initialize): Register cvt_string_to_pixel as resource converter
194 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
195
73d75a62
GM
1962001-03-30 Gerd Moellmann <gerd@gnu.org>
197
b2046df8
GM
198 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
199 (set_iterator_to_next): If a string from a display property ends,
200 consider the case that this might also be the end of an
201 overlay string having the display property.
202
52283633 203 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
b2046df8 204
87d8eba4
GM
205 * xdisp.c (reseat_to_string): Undo last change.
206
73d75a62
GM
207 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
208 matrix of a window when the header line changes, when
209 new rows are allocated, or when the width changes.
210
911a2406
EZ
2112001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
212
52283633 213 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
911a2406 214
aea51abe
EZ
2152001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
216
217 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
218 deprecated.
219
176bc847
GM
2202001-03-29 Gerd Moellmann <gerd@gnu.org>
221
ed31fabf
GM
222 * data.c (Fsubr_interactive_form): New function.
223 (syms_of_data): Defsubr it.
224
176bc847
GM
225 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
226 (live_float_p, live_misc_p): Return 1 only if the offset of the
227 pointer in its block is >= 0.
228
e59d0e9d
GM
2292001-03-28 Paul Eggert <eggert@twinsun.com>
230
231 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
232 microseconds calcuation. Avoid double-rounding problem.
233 In doc string, warn that the result is approximate.
234
f827b862
GM
2352001-03-28 Gerd Moellmann <gerd@gnu.org>
236
30a3f61c
GM
237 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
238 bind `inhibit-eval-during-redisplay' to t.
239
240 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
241
242 * xdisp.c (inhibit_eval_during_redisplay)
243 (Qinhibit_eval_during_redisplay): New variables.
244 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
245 don't eval, return nil instead.
246 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
247 Initialize Qinhibit_eval_during_redisplay.
248
e719f5ae
GM
249 * xdisp.c (reseat_to_string): If STRING is multibyte, set
250 the iterator's multibyte_p flag.
251
deb2613a
GM
252 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
253 instead of setting it to zero; it's incremented for each frame
254 where the menu face is changed.
255
52283633
SM
256 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
257 change bottom shadow accordingly.
258
259 * xterm.c (expose_window_tree, expose_frame): Don't compute
a02f1be0
GM
260 intersections here.
261 (expose_window): Do it here instead.
52283633 262 (x_draw_glyph_string): Fix a computation of the underline position.
a02f1be0 263
f827b862
GM
264 * bytecode.c (BYTE_CODE_QUIT): New macro.
265 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
266
4bde0ebb
GM
2672001-03-27 Gerd Moellmann <gerd@gnu.org>
268
607ec83c
GM
269 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
270 Give up if matrix starts in an ellipsis.
271 (init_from_display_pos): Do nothing if POS doesn't specify
272 a dpvec_index but the iterator has such a position.
273
0245398f
GM
274 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
275
aba25348
GM
276 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
277 x/y position is (0, 0) after destroying the menu bar, restore
278 its original position.
279
4bde0ebb
GM
280 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
281 (init_from_display_pos): Use it.
282 (try_window_reusing_current_matrix): Don't use cursor_row_p.
283
8cdb267e
GM
2842001-03-26 Gerd Moellmann <gerd@gnu.org>
285
286 * xdisp.c (try_window_id): Undo last change.
287
9948db79
EZ
2882001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
289
290 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
291
292 * buffer.c (syms_of_buffer): Doc fix.
293
2eddf899
GM
2942001-03-26 Gerd Moellmann <gerd@gnu.org>
295
296 * xfaces.c (x_update_menu_appearance): Use local variable
297 popup_path for setting font resources.
298
6c145d35
EZ
2992001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
300
6a65b1b5
EZ
301 * frame.c (Fframe_list): Don't reference tip_frame if
302 HAVE_WINDOW_SYSTEM is not defined.
303
6c145d35
EZ
304 * emacs.c (main): Update the copyright year. From Werner LEMBERG
305 <wl@gnu.org>.
306
d74c1900
GM
3072001-03-25 Gerd Moellmann <gerd@gnu.org>
308
20fbd925
GM
309 * xdisp.c (init_from_display_pos): Test invisible property
310 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
52283633 311
927c5b3b
GM
312 * xdisp.c (redisplay_internal) <update one window>: Make sure
313 last_arrow_position and last_arrow_string are set.
314
d74c1900
GM
315 * frame.c (Fframe_list): Don't return a tooltip frame.
316
091f8878
GM
3172001-03-23 Gerd Moellmann <gerd@gnu.org>
318
52283633
SM
319 * xdisp.c (mark_window_display_accurate_1): New function,
320 extracted from mark_window_display_accurate.
321 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
43c09969
GM
322 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
323 (mark_window_display_accurate): Use it.
324 (redisplay_internal): Use it for the selected window.
325 (redisplay_internal): Avoid duplicate mark_window_display_accurate
326 for the selected frame.
327
ac90c44f
GM
328 * xdisp.c Use make_number, for readability.
329 (try_window_id): Disable rows below the window end.
330 (try_window_reusing_current_matrix): Use cursor_row_p.
331 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
332 of rows.
333 (init_from_display_pos): If POS specifies a position in a display
334 vector, maybe get the iterator set up for that ellipsis.
43c09969 335
091f8878
GM
336 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
337
991786dd
EZ
3382001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
339
340 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
341
6c29b43c
GM
3422001-03-23 Gerd Moellmann <gerd@gnu.org>
343
344 * xfaces.c (x_update_menu_appearance): Use a different path
345 for Lucid popup menus.
346
d8731202
SM
3472001-03-22 Stefan Monnier <monnier@cs.yale.edu>
348
349 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
350
351 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
352 (string_buffer_position): Use `make_number'.
353
f61a541b
GM
3542001-03-22 Gerd Moellmann <gerd@gnu.org>
355
3c9e997b
GM
356 * xfaces.c (x_update_menu_appearance): Renamed from
357 x_set_menu_face_resources. Use different resources for popups.
358
359 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
360 (GC_CHECK_STRING_BYTES): Don't define.
361
364cd450
GM
362 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
363 Removed, together with subroutines.
364 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
d8731202 365 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
364cd450 366
d8731202
SM
367 * dispextern.h (x_set_menu_resources_from_menu_face):
368 Remove prototype.
364cd450 369
d8731202 370 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
364cd450
GM
371 Remove calls to x_set_menu_resources_from_menu_face.
372
d8731202
SM
373 * xfaces.c (xm_set_menu_resources_from_menu_face):
374 Remove #ifndef LESSTIF_VERSION.
f61a541b
GM
375
376 * xmenu.c: Include widget.h.
377 (single_submenu): Return int. Some cleanup.
378 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
379
140330de
GM
3802001-03-21 Gerd Moellmann <gerd@gnu.org>
381
382 * xterm.c (x_update_window_end): Handle overwritten mouse face
383 also for tool bar windows.
384 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
385 DRAW is DRAW_IMAGE_RAISED.
386
1741905c
GM
3872001-03-20 Gerd Moellmann <gerd@gnu.org>
388
fa88947e
GM
389 * print.c (syms_of_print): Doc fixes.
390
1741905c
GM
391 * fns.c (Fmd5): Doc fix.
392
ade0bee1
GM
3932001-03-19 Gerd Moellmann <gerd@gnu.org>
394
357e7376
GM
395 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
396 Clear area of the frame not occupied by the scroll bar.
397
c2c097cc
GM
398 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
399 tip frame's root window buffer to *tip* right after creating
400 the frame.
401
ade0bee1
GM
402 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
403 is an integer don't have to be for space characters.
404
88c6e37e
GM
4052001-03-16 Gerd Moellmann <gerd@gnu.org>
406
52283633
SM
407 * indent.c (current_column, current_column_1, Fmove_to_column)
408 (compute_motion): Handle characters from display vectors differently.
88c6e37e 409
c62eed76
KH
4102001-03-15 Kenichi Handa <handa@etl.go.jp>
411
412 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
413 drawing glyph string.
414
c899e7e6
GM
4152001-03-15 Gerd Moellmann <gerd@gnu.org>
416
d0bbfc99
GM
417 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
418 (command_loop_1): Undo last change.
419
03d1a189
GM
420 * xterm.c (fast_find_position): Return the correct vpos.
421
c899e7e6 422 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
52283633 423 non-null, set a per-buffer value in BUF instead of the current buffer.
c899e7e6
GM
424 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
425 Call store_symval_forwarding with BUF null.
426 (set_internal): Call store_symval_forwarding with the BUF
427 parameter passed to set_internal. Formerly, the value was always
428 set in the current buffer; the buffer recorded in specbind for
429 this case wasn't used.
430 (arith_driver): Reindent.
431
52283633
SM
432 * buffer.c (swap_out_buffer_local_variables):
433 Call store_symval_forwarding with BUF null.
c899e7e6
GM
434
435 * lisp.h (store_symval_forwarding): Change prototype.
436
437 * eval.c (specbind): Call store_symval_forwarding with BUF null.
438
57ac7c81
GM
4392001-03-14 Gerd Moellmann <gerd@gnu.org>
440
697617d9
GM
441 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
442 FOR_DELETION. Avoid resizing the mini-window of the selected
443 frame if FOR_DELETION is set.
444 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
445 (Fmake_frame_invisible): Change calls to do_switch_frame for new
446 signature.
447
448 * window.c (Fset_window_configuration): Change call to
449 do_switch_frame to new format.
450
451 * keyboard.c (quit_throw_to_read_char): Change call to
452 do_switch_frame to new format.
453
454 * lisp.h (do_switch_frame): Change prototype.
455
819dce0f
GM
456 * frame.c (Fframe_parameters): In the `buffer-list' frame
457 parameter, store the buffer list of FRAME, not the list of the
458 selected frame.
459
57ac7c81
GM
460 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
461 box just because the glyph row's full_width_p flag is set.
462
65008712
GM
4632001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
464
465 * xdisp.c (highlight_trailing_whitespace): On character terminals,
466 skip the padding blanks inserted in extend_face_to_end_of_line,
467 before checking for trailing whitespace.
468
159cf431
GM
4692001-03-13 Gerd Moellmann <gerd@gnu.org>
470
52283633 471 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
19b2bb80
GM
472 Remove special handling for LessTif/Motif.
473 (toplevel): Don't include Xm/Xm.h.
474
52283633
SM
475 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
476 Remove workaround code for LessTif; it doesn't work anymore.
477
2564ea1b 478 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
57ac7c81 479 Xm/ScrollBarP.h.
afcdc0a1 480
52283633
SM
481 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
482 Don't access private scroll bar data; it's no longer necessary with
23442ae4
GM
483 contemporary LessTif.
484
52283633
SM
485 * xfaces.c (xm_set_menu_resources_from_menu_face):
486 Change #if 0 to #ifndef LESSTIF_VERSION.
9faaaa52 487
159cf431
GM
488 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
489 removing button grabs.
490
c6f7429a
KH
4912001-03-13 Kenichi Handa <handa@etl.go.jp>
492
cb82d767
KH
493 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
494 and clip-large-size-font as obsolete.
495
c6f7429a
KH
496 * lread.c (read_multibyte): Check the validity of multibyte
497 sequence. If invalid, return the first byte.
498
760cefb5
GM
4992001-03-12 Gerd Moellmann <gerd@gnu.org>
500
501 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
502 before running the command; timer functions or process
503 filters may have set it.
504
5141f9d0
EZ
5052001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
506
507 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
508 Doc fix.
509
b6a15240
GM
5102001-03-12 Gerd Moellmann <gerd@gnu.org>
511
512 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
513 to sprintf.
514
95522746
GM
5152001-03-09 Gerd Moellmann <gerd@gnu.org>
516
db14cfc5
GM
517 * dispextern.h (string_buffer_position): Add prototype.
518
52283633 519 * xdisp.c (string_buffer_position, display_prop_string_p)
db14cfc5
GM
520 (single_display_prop_string_p): New functions.
521
522 * xterm.c (note_mouse_highlight): If there's no help-echo on
523 a string, look at the buffer text ``under'' it.
524
525 * keyboard.c (make_lispy_event): Add string info to the event,
526 analogous to what's done on mode lines.
527 (read_key_sequence): For a click on a string, consider `local-map'
528 and `keymap' of that string.
529
52283633
SM
530 * keyboard.c (make_lispy_event, make_lispy_movement):
531 Adjust calls to buffer_posn_from_coords to new format.
3cfd8357
GM
532
533 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
534
535 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
536 POS; return void.
537
95522746
GM
538 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
539 flags argument to emacs_open; it seems to conflict with O_EXCL.
540
898a399d
KH
5412001-03-09 Kenichi Handa <handa@etl.go.jp>
542
28cd4910
KH
543 * composite.h (struct composition): Change types of members;
544 glyph_len to unsigned, width to unsigned short.
898a399d 545
4cdf6a6c
AI
5462001-03-08 Andrew Innes <andrewi@gnu.org>
547
548 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
549 menu titles.
550
129004d3
GM
5512001-03-08 Gerd Moellmann <gerd@gnu.org>
552
221dd3e7
GM
553 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
554 instead of nil.
555
52283633 556 * xterm.c (note_mouse_highlight): Handle mouse-face and
5de7c6f2
GM
557 help-echo in strings.
558 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
559 (fast_find_string_pos): New function.
560
52283633
SM
561 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
562 (display_string): Call face_at_string_position with new parameter.
5de7c6f2
GM
563
564 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
565 Handle `mouse-face'.
566
567 * dispextern.h (face_at_string_position): Change prototype.
568
52283633 569 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
e1fbabaf 570
129004d3
GM
571 * keyboard.c (make_lispy_event): Avoid generating drag events
572 if the mouse hasn't actually moved to another buffer position.
52283633 573
80c8ab8c
DL
5742001-03-08 Dave Love <fx@gnu.org>
575
129004d3 576 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
80c8ab8c 577
989521fd
GM
5782001-03-08 Gerd Moellmann <gerd@gnu.org>
579
580 * process.c (Fset_process_window_size): Fix a typo.
581
bb5c338d
KH
5822001-03-08 Kenichi Handa <handa@etl.go.jp>
583
584 * coding.c (detect_coding_sjis): Do more rigid check.
585 (detect_coding_big5): Likewise.
586 (decode_coding_sjis_big5): Likewise.
587 (Fdetect_coding_region): Call detect_coding_system with tailing
588 anchor byte `\0' for more rigid detection.
52283633 589 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
bb5c338d
KH
590 (Fdetect_coding_string): Likewise.
591
8b8f9197
SM
5922001-03-07 Stefan Monnier <monnier@cs.yale.edu>
593
594 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
595 a string before extracting its data.
596
3bdf2660
GM
5972001-03-07 Gerd Moellmann <gerd@gnu.org>
598
599 * window.c (Frecenter): Rewrite code handling negative values
600 of ARG on graphical frames.
601
6022001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
603
604 * window.c (displayed_window_lines): If W->start is outside the
605 accessible portion of the buffer, call start_display with BEGV or
606 ZV instead of W->start.
607
471f86b9
GM
6082001-03-07 Gerd Moellmann <gerd@gnu.org>
609
2ab62c6c
GM
610 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
611
471f86b9
GM
612 * process.c (Fset_process_filter): Don't crash if the input
613 file descriptor of PROCESS is closed.
614 (Fset_process_window_size): Likewise.
615
101922c3
GM
6162001-03-06 Kenichi Handa <handa@etl.go.jp>
617
618 * xterm.c (XTflash): Make the timeout of select shorter, and call
619 select repeatedly until the desired time expires.
620
45d051a7
GM
6212001-03-06 Gerd Moellmann <gerd@gnu.org>
622
623 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
624
625 * xfns.c (Fx_create_frame): Clear Vwindow_list.
626
627 * lisp.h (Vwindow_list): Declare extern.
628
8f372c46
EZ
6292001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
630
631 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
632
f16a7aa5
GM
6332001-03-06 Gerd Moellmann <gerd@gnu.org>
634
157ae273
GM
635 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
636 to detect a case where we have to highlight a different region
637 despite not having left the currently highlighted region.
638 Set mouse_face_overlay in the x_display_info.
45d051a7 639 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
157ae273
GM
640
641 * xterm.h (struct x_display_info): Add mouse_face_overlay.
642
643 * buffer.c (mouse_face_overlay_overlaps): New function.
644
645 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
646 (Qmouse_face): Declare extern.
647
f16a7aa5
GM
648 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
649 if face_change_count is non-zero.
650
827afcac
KH
6512001-03-06 Kenichi Handa <handa@etl.go.jp>
652
653 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
654 that the source is unibyte.
655
14c7242e
DL
6562001-03-05 Dave Love <fx@gnu.org>
657
827afcac 658 * xterm.c (XTmouse_position): Fix typo.
14c7242e 659
c28b847b
GM
6602001-03-05 Gerd Moellmann <gerd@gnu.org>
661
662 * minibuf.c (read_minibuf): Clean up the binding stack if
663 called noninteractively.
664
b86644f2
KH
6652001-03-05 Kenichi Handa <handa@etl.go.jp>
666
667 * coding.c (syms_of_coding): Docstring modified.
668
203682cc 6692001-03-05 Kenichi Handa <handa@etl.go.jp>
b86644f2
KH
670
671 * charset.c (char_to_string): If a single byte char has modifier
672 bits that can't be reflected to the character code, ignore them
45d051a7 673 instead of signaling an error.
b86644f2 674
e30bd7b7
EZ
6752001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
676
677 * s/msdos.h: Update copyright notice.
678
679 * dosfns.h: Update copyright notice.
680
681 * dosfns.c: Update copyright notice.
682
683 * msdos.c: Update copyright notice.
684
b52b65bd
GM
6852001-03-02 Gerd Moellmann <gerd@gnu.org>
686
687 * xterm.c (glyph_rect): New function.
688 (XTmouse_position): Use it to raise the threshold for mouse
689 movement event generation.
690
53c4b1e6
EZ
6912001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
692
693 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
694 specifies (reverse . t), reverse the initial screen colors.
695 (IT_set_frame_parameters): If the property is foreground-color,
52283633
SM
696 but we are reversing the colors, set bg_set, not fg_set.
697 Likewise for setting background-color and reversing: set fg_set.
698 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
53c4b1e6
EZ
699 in effect.
700
701 * xfaces.c (Finternal_set_lisp_face_attribute)
702 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
703 parameters alist.
704
f964b4d7
GM
7052001-03-02 Gerd Moellmann <gerd@gnu.org>
706
ef53d75e
GM
707 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
708 to a single slash in the middle of file names.
709
52283633 710 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
cda0f4da
GM
711 Accept only alphanumeric time zone names.
712
f964b4d7
GM
713 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
714 or width area.
715 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
716 a widget to zero height.
52283633 717
c3c45f65
GM
7182001-03-01 Gerd Moellmann <gerd@gnu.org>
719
720 * window.c (Fwindow_end): Call move_it_past_eol only if
721 ending up on a partially visible line.
722
028d739a
DL
7232001-03-01 Dave Love <fx@gnu.org>
724
725 * ccl.c (Fccl_execute): Doc fix.
726
57c5889c
GM
7272001-03-01 Gerd Moellmann <gerd@gnu.org>
728
35f59f6b
GM
729 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
730 of the tool bar before calling x_figure_window_size.
731
f84ff02c
GM
732 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
733 NULL after destroying it, otherwise XTread_socket can access a
734 destroyed widget when input is unblocked.
735
8b8f9197 736 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
52283633 737
57c5889c
GM
738 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
739 same name as before, although there was a change in fontsets.
740
224227d1
KR
7412001-02-28 Ken Raeburn <raeburn@gnu.org>
742
4560730a
KR
743 * lisp.h (Fframe_parameter): Declare.
744
224227d1 745 * window.c (set_window_buffer): Field vscroll is an int, not a
57c5889c 746 Lisp_Object.
224227d1 747
ece93c02
GM
7482001-02-28 Gerd Moellmann <gerd@gnu.org>
749
11ef99b9
GM
750 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
751 NULL instead.
752
753 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
754 NULL instead.
755
ece93c02
GM
756 * alloc.c (toplevel): Include process.h.
757 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
758 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
759 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
52283633
SM
760 (allocate_vector, allocate_hash_table, allocate_window)
761 (allocate_frame, allocate_process, allocate_other_vector):
762 New functions.
ece93c02
GM
763 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
764 (mark_maybe_pointer): New function.
52283633 765 (mark_memory): Also mark Lisp data to which only pointers
ece93c02
GM
766 remain and not Lisp_Objects.
767 (min_heap_address, max_heap_address): New variables.
768 (mem_find): Return MEM_NIL if START is below min_heap_address or
769 above max_heap_address.
770 (mem_insert): Compute min_heap_address and max_heap_address.
771
772 * process.c (make_process): Use allocate_process.
773
774 * frame.c (make_frame): Use allocate_frame.
775
776 * window.c (make_window, make_dummy_parent): Use allocate_window.
777 (Fcurrent_window_configuration): Use allocate_other_vector.
778
779 * lisp.h (allocate_vectorlike): Remove prototype.
780 (allocate_vector, allocate_other_vector, allocate_frame)
781 (allocate_window, allocate_process, allocate_hash_table):
782 Add prototypes.
783
784 * fns.c (Fdelete, larger_vector): Use allocate_vector.
785 (make_hash_table, copy_hash_table): Use allocate_hash_table.
786
063af457
KH
7872001-02-27 Kenichi Handa <handa@etl.go.jp>
788
789 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
790 treat the produced bytes as a valid multibyte sequence.
791
792 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
52283633
SM
793 (ccl_driver) <CCL_WriteMultibyteChar2>:
794 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
063af457
KH
795 <ccl_finish>: Set ccl->eight_bit_control properly.
796
797 * ccl.h (struct ccl_program): New member eight_bit_control.
798
f58c6494
SM
7992001-02-26 Stefan Monnier <monnier@cs.yale.edu>
800
801 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
802 accessible_keymaps_char_table.
803 (accessible_keymaps_char_table): Obey `is_metized'.
804 (where_is_internal, Fwhere_is_internal): Don't confuse int and
805 Lisp_Object.
806
c596c392
GM
8072001-02-26 Gerd Moellmann <gerd@gnu.org>
808
809 * dispnew.c: Check HAVE_TERM_H before including term.h.
810
425de386
AI
8112001-02-24 Andrew Innes <andrewi@gnu.org>
812
813 * makefile.w32-in: Update copyright notice.
814
2ba11bbd
SM
8152001-02-24 Stefan Monnier <monnier@cs.yale.edu>
816
817 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
818
66c56ed1
KH
8192001-02-24 Kenichi Handa <handa@etl.go.jp>
820
4c1593ce
KH
821 * Makefile.in (lisp): Add international/utf-8.elc.
822
66c56ed1
KH
823 * fontset.c (Fnew_fontset): Fix handling of the case that an
824 element of FONTLIST is a cons of family and registry.
825
796ead7e
JR
8262001-02-23 Jason Rumney <jasonr@gnu.org>
827
828 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
829 to height unconditionally.
830
831 * w32term.c (x_set_glyph_string_background_width): Extend the
52283633 832 background face to the end of the drawing area in the text area, only.
796ead7e
JR
833 (x_insert_glyphs): Call window_box_left to obtain the left
834 x-coordinate of the area to shift.
835
836 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
837 safe_run_hooks.
838
f6839838
AI
8392001-02-22 Andrew Innes <andrewi@gnu.org>
840
52283633 841 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
f6839838
AI
842 ($(BLD)\dispnew.obj):
843 ($(BLD)\editfns.obj):
844 ($(BLD)\fileio.obj):
845 ($(BLD)\filelock.obj):
846 ($(BLD)\keyboard.obj):
847 ($(BLD)\w32proc.obj):
848 ($(BLD)\process.obj):
849 ($(BLD)\sysdep.obj): Ditto.
850
851 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
852 header files.
52283633
SM
853 ($(BLD)/dispnew.$(O)):
854 ($(BLD)/editfns.$(O)):
855 ($(BLD)/fileio.$(O)):
856 ($(BLD)/filelock.$(O)):
857 ($(BLD)/keyboard.$(O)):
858 ($(BLD)/w32proc.$(O)):
859 ($(BLD)/process.$(O)):
f6839838
AI
860 ($(BLD)/sysdep.$(O)): Ditto.
861
c224f70b
GM
8622001-02-22 Gerd Moellmann <gerd@gnu.org>
863
51695746
GM
864 * xdisp.c (forward_to_next_line_start): When taking the shortcut
865 at the start of the function, check that the \n in it->c is
866 from the iterator's current position.
52283633 867
a61b7058
GM
868 * xdisp.c (handle_single_display_prop): Add parameter
869 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
870 properties which replace the display of text with something else.
871 (handle_display_prop): Call handle_single_display_prop with
872 additional argument saying if we already replaced text display
873 with something else. Use AREF.
52283633 874 (with_echo_area_buffer_unwind_data, display_menu_bar)
a61b7058
GM
875 (decode_mode_spec_coding): Use AREF and ASIZE.
876
3473f362
GM
877 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
878 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
879 * vmstime.h: Files removed.
52283633 880
2bb58df3
GM
881 * unexencap.c, unexfx2800.c: Files removed.
882
c224f70b
GM
883 * dispnew.c (direct_output_for_insert): Give up if we are showing
884 a message or just cleared the message because we might need to
885 resize the echo area window or display an empty echo area.
886
ffc9ff0c
GM
8872001-02-21 Gerd Moellmann <gerd@gnu.org>
888
0528abe1
GM
889 * xdisp.c (redisplay_internal): Do the
890 mark_window_display_accurate after all windows have been
891 redisplayed because this call resets flags in buffers which are
892 needed for proper redisplay.
893
52283633
SM
894 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
895 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
ffc9ff0c
GM
896 the old names.
897
52283633
SM
898 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
899 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
900
901 * msdos.h (struct x_output): Rename busy_window to
902 hourglass_window, busy_p to hourglass_p.
903
52283633
SM
904 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
905 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
906
907 * xfns.c: Rename everything containing *busy_cursor* and similar
908 to *hourglass*.
909 (syms_of_w32fns): Rename x-busy-pointer-shape to
910 x-hourglass-pointer-shape, display-busy-cursor to
911 display-hourglass, busy-cursor-delay to hourglass-delay.
912
913 * w32fns.c: Rename everything containing *busy_cursor* and similar
914 to *hourglass*.
915 (syms_of_w32fns): Rename x-busy-pointer-shape to
916 x-hourglass-pointer-shape, display-busy-cursor to
917 display-hourglass, busy-cursor-delay to hourglass-delay.
918
919 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
920 of its busy_p flag.
921
922 * dispextern.h (start_hourglass, cancel_hourglass)
923 (display_hourglass_p): Renamed from *busy_cursor*.
924
ab2c5f0a
GM
9252001-02-20 Gerd Moellmann <gerd@gnu.org>
926
d17e49a8
GM
927 * keyboard.c (read_char): When an event from unread-command-events
928 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
929
fa97adf6
GM
930 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
931 equal to the current buffer.
932
ab2c5f0a
GM
933 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
934 nil, otherwise we're left with truncate_lines t when a message
935 is printed with message-truncate-lines bound to t.
936
aeac019e
GM
9372001-02-19 Gerd Moellmann <gerd@gnu.org>
938
c8bc6f65
GM
939 * window.c (Fmove_to_window_line): Undo last change.
940 (displayed_window_lines): Call line_bottom_y to determine
941 the line's bottom position.
942
943 * dispextern.h (line_bottom_y): Add prototype.
944
52283633 945 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
c8bc6f65
GM
946 (pos_visible_p): Use it.
947
980a2d69
GM
948 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
949 set redisplaying_p to 0 here instead of in Frecursive_edit.
950 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
951 set redisplaying_p.
952
52283633 953 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
184d2372
GM
954 New variables.
955 (syms_of_xdisp): Initialize new variables.
956 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
957 Specbind `inhibit-menubar-update' when updating the menu bar.
958
65048e97
GM
959 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
960 safe_run_hooks.
961
962 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
963 safe_run_hooks.
964
a57c4026
GM
965 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
966 is null.
967
aeac019e
GM
968 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
969 to the start of the file.
970
76846b31
GM
9712001-02-16 Gerd Moellmann <gerd@gnu.org>
972
f3f053f3 973 * window.c (set_window_buffer): Fix last change.
52283633 974
f3f053f3
GM
975 * window.c (set_window_buffer): Set window's vscroll to 0.
976
dad75588
GM
977 * window.c (coordinates_in_window): Increase width of area
978 where the vertical line can be dragged.
979
c220b753
GM
980 * xterm.c (x_set_glyph_string_background_width): Extend the
981 background face to the end of the drawing area in the text
982 area, only.
983
c56b1c1b
GM
984 * xdisp.c (handle_single_display_prop): Set iterator's position
985 to where the `display' property starts, like for images.
986 (dump_glyph): New function.
987 (dump_glyph_row): Use it. Dump info about marginal areas.
988
989 * dispnew.c (direct_output_for_insert): Recognize more cases where
990 glyphs can be written instead of being inserted.
991
992 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
993 the left x-coordinate of the area to shift.
994
76846b31
GM
995 * dired.c (directory_files_internal): Set result list to nil
996 before retrying.
997
0fc71a77
KH
9982001-02-15 Kenichi Handa <handa@etl.go.jp>
999
1000 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
1001 invalid multibyte sequence, treat *SRC as a character of
1002 eight-bit-graphic.
1003
25078b54
EZ
10042001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
1005
1006 * textprop.c (Fset_text_properties): Doc fix.
1007
8399f8a0
GM
10082001-02-15 Gerd Moellmann <gerd@gnu.org>
1009
1010 * dispnew.c (update_text_area): Undo change of 2001-01-12.
1011
9a2a6f73
DL
10122001-02-14 Dave Love <fx@gnu.org>
1013
1014 * coding.c: Doc and message fixes.
1015
bf853fee
AI
10162001-02-14 Andrew Innes <andrewi@gnu.org>
1017
1018 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
1019 Emacs frame above the screen size.
1020
78c663d8
GM
10212001-02-14 Gerd Moellmann <gerd@gnu.org>
1022
1023 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
1024
7cc9f69f
GM
10252001-02-13 Gerd Moellmann <gerd@gnu.org>
1026
0a411995
GM
1027 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
1028 case that TO ends up beyond ZV after running before-change-functions.
1029
5ddc1b75
GM
1030 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
1031 the selected window if it is showing the buffer in question.
1032
7cc9f69f
GM
1033 * dired.c (directory_files_internal): Initialize errno.
1034 (toplevel): Include errno.h.
1035
2e6621ca
GM
10362001-02-13 Kenichi Handa <handa@etl.go.jp>
1037
1038 * xfaces.c (best_matching_font): New parameter width_ratio.
1039 Multiply avgwidth by width_ratio.
1040 (choose_face_font): Call best_matching_font with width_ratio
1041 calculated from the column width of C.
1042
60222d69
AI
10432001-02-12 Andrew Innes <andrewi@gnu.org>
1044
1045 The following changes are to draw box lines inside characters area
1046 if line-width is negative.
52283633 1047
60222d69
AI
1048 * w32term.c (x_produce_image_glyph): Pay attention to the case that
1049 face->box_line_width is negative.
1050 (x_produce_stretch_glyph): Likewise.
1051 (x_produce_glyphs): Likewise.
1052 (x_estimate_mode_line_height): Likewise.
1053 (x_draw_glyph_string_background): Likewise.
1054 (x_draw_glyph_string_foreground): Likewise.
1055 (x_draw_composite_glyph_string_foreground): Likewise.
1056 (x_draw_glyph_string_box): Likewise.
1057 (x_draw_image_foreground): Likewise.
1058 (x_draw_image_relief): Likewise.
1059 (x_draw_image_foreground_1): Likewise.
1060 (x_draw_image_glyph_string): Likewise.
1061
9804b846
KH
10622001-02-09 Kenichi Handa <handa@etl.go.jp>
1063
1064 The following changes are to draw box lines inside characters area
1065 if line-width is negative.
52283633 1066
9804b846
KH
1067 * xterm.c (x_produce_image_glyph): Pay attention to the case that
1068 face->box_line_width is negative.
1069 (x_produce_stretch_glyph): Likewise.
1070 (x_produce_glyphs): Likewise.
1071 (x_estimate_mode_line_height): Likewise.
1072 (x_draw_glyph_string_background): Likewise.
1073 (x_draw_glyph_string_foreground): Likewise.
1074 (x_draw_composite_glyph_string_foreground): Likewise.
1075 (x_draw_glyph_string_box): Likewise.
1076 (x_draw_image_foreground): Likewise.
1077 (x_draw_image_relief): Likewise.
1078 (x_draw_image_foreground_1): Likewise.
1079 (x_draw_image_glyph_string): Likewise.
1080
1081 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
1082 and :line-width can be negative.
52283633 1083 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
9804b846 1084
49be9f70
JR
10852001-02-09 Jason Rumney <jasonr@gnu.org>
1086
1087 * w32term.c (w32_encode_char): Treat eight bit graphic and control
1088 characters the same as ASCII and latin-1.
1089 (x_display_and_set_cursor): Check for the focus frame's selected
1090 window instead of selected_window.
1091 (x_after_update_window_line): Don't clear if frame's internal
1092 border width is zero.
1093 (x_new_font): Don't change a tooltip's size.
1094 (w32_initialize): Set char_ins_del_ok to 1.
1095
1096 * w32fns.c (Fx_show_tip): Fix calls to make_number.
1097 (x_set_font): If font hasn't changed, avoid recomputing
1098 faces and other things.
52283633
SM
1099 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
1100 (Fx_create_frame): Add the tool bar height to the frame height.
49be9f70
JR
1101 (x_create_tip_frame): Prevent changing the tooltip's
1102 background color by specifying a color for the default font
1103 in .Xdefaults.
1104 (Qcancel_timer): New variable.
1105 (syms_of_w32fns): Initialize and staticpro it.
1106 (Fx_hide_tip, Fx_show_tip): Use it.
1107 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
1108 the timer.
1109 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
1110
1111 * w32.c (init_environment): Duplicate local string before putenv.
1112
555e35d2
SZ
11132001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
1114
1115 * charset.c (Fstring): A typo.
1116
19c92c94
KH
11172001-02-09 Kenichi Handa <handa@etl.go.jp>
1118
e47a1c33
KH
1119 * charset.c (Fstring): If all arguments are less than 256, return
1120 a unibyte string.
1121
1122 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
1123 return a unibyte string.
1124
19c92c94
KH
1125 * coding.c (code_convert_region): After detecting a coding, if
1126 nothing found, set coding->composing to COMPOSITION_NO.
1127 (decode_coding_string): Likewise.
1128
d8e675f5
SM
11292001-02-08 Stefan Monnier <monnier@cs.yale.edu>
1130
1131 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
1132 to avoid overflow.
1133
bd503487
KH
11342001-02-07 Kenichi Handa <handa@etl.go.jp>
1135
1136 * charset.c (parse_str_to_multibyte): New function.
1137
1138 * charset.h (parse_str_to_multibyte): Extern it.
1139
1140 * print.c (print_string): If we are going to print a unibyte
1141 string into a multibyte buffer, convert the string to multibyte by
1142 str_to_multibyte.
1143
a8370d72
AI
11442001-02-06 Andrew Innes <andrewi@gnu.org>
1145
1146 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
1147 been created. It seems we can get sent window messages such as
1148 WM_ERASEBKGND before we properly update a frame.
1149
c363a1d6
GM
11502001-02-06 Gerd Moellmann <gerd@gnu.org>
1151
1152 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
1153 Avoid some unnecessary cursor positioning.
1154
a08332c0
GM
11552001-02-05 Gerd Moellmann <gerd@gnu.org>
1156
52283633 1157 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
a08332c0
GM
1158 (LFACE_AVGWIDTH): New macro.
1159 (LFACEP): Use AREF.
1160 (check_lface_attrs): Check LFACE_AVGWIDTH.
1161 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
1162 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
1163 (merge_face_vectors): Check LFACE_AVGWIDTH.
1164 (Finternal_make_lisp_face): Use AREF.
1165 (xm_set_menu_resources_from_menu_face)
1166 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
1167 (Finternal_lisp_face_empty_p): Use AREF.
1168 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
1169 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
1170 Compare average widths..
1171 (best_matching_font): Arrange for comparing average widths.
1172
52283633
SM
1173 * dispextern.h (enum lface_attribute_index):
1174 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
1175
5cb3c8d4
DL
11762001-02-05 Dave Love <fx@gnu.org>
1177
1178 * puresize.h: Revert last change following loadup.el change.
1179
193fba87
AI
11802001-02-05 Andrew Innes <andrewi@gnu.org>
1181
1182 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
1183 invocation of temacs, to work with Windows 2000.
1184 (bootstrap-emacs): Ditto.
1185
e16f52ce
GM
11862001-02-05 Gerd Moellmann <gerd@gnu.org>
1187
7a58ab59
GM
1188 * xterm.c (x_display_and_set_cursor): Check for the focus
1189 frame's selected window instead of selected_window.
1190
e89aaabd
GM
1191 * xdisp.c (try_scrolling): If point is in the line below the
1192 window, make sure to move the iterator at least a canonical
1193 char height down.
1194
52283633 1195 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
e16f52ce 1196
789ce875
KH
11972001-02-05 Kenichi Handa <handa@etl.go.jp>
1198
52283633
SM
1199 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
1200 If invalid, execute CCL_INVALID_CMD.
789ce875
KH
1201 (ccl_driver): If the CCL program is terminated because of
1202 CCL_STAT_INVALID_CMD, copy the remaining source data to the
1203 destination instead of throwing them away.
1204
20b28f82
GM
12052001-02-02 Gerd Moellmann <gerd@gnu.org>
1206
79fb38c0
GM
1207 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
1208 faces and other things.
1209
20b28f82
GM
1210 * xdisp.c (get_next_display_element): Fix case of empty
1211 display table entry.
1212
5a72551e
EZ
12132001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
1214
eb24d0bf
EZ
1215 * editfns.c (Fconstrain_to_field): Doc fix.
1216
6a3f48c7
EZ
1217 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
1218 into `thoroughly', to make it consistent with the doc string.
1219
5a72551e
EZ
1220 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
1221
01acdb05
GM
12222001-02-01 Gerd Moellmann <gerd@gnu.org>
1223
0353b28f
GM
1224 * search.c (search_buffer): Call set_search_regs with a byte
1225 position, not a character position.
1226
01acdb05
GM
1227 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
1228 minibuffer-only,
1229
e86b5133
EZ
12302001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
1231
1232 * frame.c (Fmodify_frame_parameters): Doc fix.
1233
7442878f
GM
12342001-01-31 Gerd Moellmann <gerd@gnu.org>
1235
01acdb05
GM
1236 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
1237 identifier which is not reserved by Standard C.
52283633 1238
7442878f
GM
1239 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
1240
1241 * window.c (enum window_part): New enumeration.
1242 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
1243 Qright_bitmap_area.
1244 (coordinates_in_window): Return an enumerator from enum
1245 window_part. Fix handling of right scroll bar.
1246 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
1247 `right-fringe' instead of `left-bitmap-area' and
1248 `right-bitmap-area'. Use enumerators from enum window_part
1249 instead of hard-coded integers.
52283633
SM
1250 (check_window_containing, window_from_coordinates):
1251 Use enumerators from enum window_part instead of hard-coded integers.
7442878f
GM
1252 (syms_of_window): Replace Qleft_bitmap_area and
1253 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
1254
7c132cba
EZ
12552001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
1256
1257 * editfns.c (Fformat_time_string): Doc fix.
1258
c359dd9e
SM
12592001-01-31 Stefan Monnier <monnier@cs.yale.edu>
1260
1261 * keymap.c (Fwhere_is_internal): Use the first valid binding
1262 if no ascii binding is found (when firstonly is t).
1263
ce070307
GM
12642001-01-31 Gerd Moellmann <gerd@gnu.org>
1265
b4f30ec5
GM
1266 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
1267 instead of Finteractive_p.
1268
1269 * lisp.h (interactive_p): Add prototype.
1270
1271 * eval.c (interactive_p): New function.
1272 (Finteractive_p): Use it.
1273
ce070307
GM
1274 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
1275
f57b6e64
DL
12762001-01-31 Dave Love <fx@gnu.org>
1277
d61c7afe
DL
1278 * .gdbinit (hook-run): Define to run xreload.
1279
f57b6e64
DL
1280 * textprop.c (Fset_text_properties): Fix newline in doc string.
1281
eef93f99
GM
12822001-01-30 Gerd Moellmann <gerd@gnu.org>
1283
52283633
SM
1284 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
1285 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
eef93f99
GM
1286
1287 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
52283633 1288 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
eef93f99
GM
1289 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
1290
1291 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
1292 height.
1293
d9c1f6f9
DL
12942001-01-30 Dave Love <fx@gnu.org>
1295
1296 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
1297 AFTER_POTENTIAL_GC.
1298
e8f044a0
GM
12992001-01-29 Gerd Moellmann <gerd@gnu.org>
1300
52283633
SM
1301 * bytecode.c (Fbyte_code) <Bcurrent_column>:
1302 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
e8f044a0 1303
8e1db7b3
EZ
13042001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
1305
1306 * textprop.c (Fset_text_properties): Doc fix.
1307
4eefd9d2
GM
13082001-01-29 Gerd Moellmann <gerd@gnu.org>
1309
1310 * xdisp.c (forward_to_next_line_start): Remove xassert.
1311
fccb8288
EZ
13122001-01-29 Jason Rumney <jasonr@gnu.org>
1313
4eefd9d2 1314 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
fccb8288
EZ
1315 returning without releasing it.
1316
76581eab
KH
13172001-01-29 Kenichi Handa <handa@etl.go.jp>
1318
1319 * w32fns.c (w32_font_match): Allocate three more bytes to regex
1320 for '^', '$', and '\0'.
1321
83a96b4d
AC
13222001-01-28 Andrew Choi <akochoi@i-cable.com>
1323
5604ec34
AC
1324 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
1325 regex for '^', '$', and '\0'.
1326
83a96b4d
AC
1327 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
1328 only if current_sblock has been initialized.
1329
1330 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
1331 terminal frame even if it is the only visible frame.
1332
c09a6440
KH
13332001-01-28 Kenichi Handa <handa@etl.go.jp>
1334
1335 * fontset.c (font_family_registry): Even if FONTNAME conform to
1336 XLFD, if it specifies other fields than family and registry,
52283633 1337 return FONTANME. New argument FORCE if nonzero cancel that feature.
c09a6440 1338 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
52283633
SM
1339 a signle byte character. Don't set FAMILY part to nil here.
1340 It is handled by the caller choose_face_font.
c09a6440
KH
1341 (Fnew_fontset): Call font_family_registry with FORCE 0.
1342 (Fset_fontset_font): Likewise.
1343
4dcd74e6
GM
13442001-01-27 Gerd Moellmann <gerd@gnu.org>
1345
1346 * xdisp.c (display_line): Don't treat a newline as fitting
1347 on the line.
1348
d2906bf8
GM
13492001-01-26 Gerd Moellmann <gerd@gnu.org>
1350
0130fe1a
GM
1351 * window.c (size_window): Set the window's orig_top to nil when
1352 changing heights, so that a future shrink_mini_window won't
1353 restore a bogus height.
1354
550f0e6a
GM
1355 * frame.c (do_switch_frame): If selected frame has a mini-window,
1356 resize that to exact size.
1357
b7b20fbd
GM
1358 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
1359
a47b7816
GM
1360 * xdisp.c (display_line): Simplify check for glyphs fitting
1361 entirely in the line.
1362
d2906bf8
GM
1363 * xfns.c (xic_style): New variable.
1364 (create_frame_xic): Move static variable to global scope for
550f0e6a 1365 the case that `static' gets defined away.
d2906bf8 1366
73df2b1e
KH
13672001-01-26 Kenichi Handa <handa@etl.go.jp>
1368
1369 * coding.c (decode_coding): Set a flag for inhibiting
1370 inconsistent eol.
1371 (code_convert_region): Always set saved_coding_symbol.
1372 (decode_coding_string): Likewise. Update coding->symbol when we
52283633 1373 encounter a inconsistent eol by the same way as code_convert_region.
73df2b1e 1374
6613cfc4
GM
13752001-01-25 Gerd Moellmann <gerd@gnu.org>
1376
c5e6e06b
GM
1377 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
1378 XClearArea.
1379
1380 * xterm.c (x_after_update_window_line): Don't clear if frame's
1381 internal border width is zero.
1382 (x_clear_area): New function.
1383 (x_after_update_window_line, x_clear_end_of_line)
1384 (x_scroll_bar_create, x_scroll_bar_set_handle)
1385 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
1386 instead of XClearArea.
1387
1388 * xterm.h (x_clear_area): Add prototype.
1389
6613cfc4
GM
1390 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
1391 which doesn't seem necessary anymore with Lesstif 0.92.
1392
650cc6cc
DL
13932001-01-25 Dave Love <fx@gnu.org>
1394
34ac3367
DL
1395 * puresize.h (BASE_PURESIZE): Up to 720000.
1396
650cc6cc
DL
1397 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
1398
5e37dc22
GM
13992001-01-25 Gerd Moellmann <gerd@gnu.org>
1400
e1e441f9
GM
1401 * xdisp.c (echo_area_display): Don't call redisplay_internal
1402 when Emacs is shutting down. We can't run hooks etc. that
1403 would be necessary to do a redisplay.
1404
5e37dc22
GM
1405 * lread.c (read_integer): Use type EMACS_INT instead of int.
1406
0fb94c7f
EZ
14072001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
1408
1409 * ccl.c (ccl_driver): Fix last change.
1410
e3778624
KH
14112001-01-25 Kenichi Handa <handa@etl.go.jp>
1412
1413 * ccl.h (sturct ccl_program): New member suppress_error.
1414
bb264518 1415 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
e3778624
KH
1416 insert error message to the output.
1417 (setup_ccl_program): Initialize ccl->suppress_error to 0.
1418
1419 * coding.h (struct coding_system): New member suppress_error.
1420
1421 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
1422 (Fset_terminal_coding_system_internal): Set the member
1423 suppress_error to 1.
1424 (Fset_safe_terminal_coding_system_internal): Likewise.
1425
245ed2b1
SM
14262001-01-24 Stefan Monnier <monnier@cs.yale.edu>
1427
1428 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
1429 as if it was a `charset'.
1430
f9aaedb6
GM
14312001-01-24 Gerd Moellmann <gerd@gnu.org>
1432
1433 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
1434 value in where_is_cache; the next lookup in the cache returns
1435 something bogus if we do.
1436
c3902c3e
EZ
14372001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
1438
1439 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
1440 if HAVE_WINDOW_SYSTEM isn't defined.
1441
3497f73e
GM
14422001-01-24 Gerd Moellmann <gerd@gnu.org>
1443
e7e41584
GM
1444 * fns.c (sweep_weak_table): Fix code taking items out of
1445 the hash collision chain. Some cleanup.
1446
3497f73e
GM
1447 * xterm.c (x_new_font): Don't change a tooltip's size.
1448
1449 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
1450 background color by specifying a color for the default font
1451 in .Xdefaults.
1452
3d48e687
KH
14532001-01-24 Kenichi Handa <handa@etl.go.jp>
1454
96531b20
KH
1455 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
1456 a workaround for SunOS 4's cc.
1457 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
1458 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
1459 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
1460 statement.
3d48e687 1461
a30629d2
GM
14622001-01-23 Gerd Moellmann <gerd@gnu.org>
1463
1464 * xterm.c (x_set_window_size_1): New function extracted from
1465 x_set_window_size.
1466 (x_set_window_size): Use it.
1467 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
1468 doesn't have a widget, like tooltips.
1469
5a43decf
EZ
14702001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
1471
52283633 1472 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5a43decf 1473
b0e98867
KH
14742001-01-23 Kenichi Handa <handa@etl.go.jp>
1475
1476 * fns.c (Fset_char_table_default): Fix to make sub char-table
1477 correctly.
1478
50606b4c
GM
14792001-01-22 Gerd Moellmann <gerd@gnu.org>
1480
cb2ddc53 1481 * xdisp.c (build_desired_tool_bar_string): Make sure we have
52283633
SM
1482 a desired tool bar string, even if there are no tool bar items.
1483
57c28064
GM
1484 * xdisp.c (Ftool_bar_lines_needed): New function.
1485 (syms_of_xdisp): Defsubr it.
1486
50606b4c
GM
1487 * editfns.c (Fformat): Don't extend text properties from arguments
1488 to padding chars in the result.
1489
2f169c38
EZ
14902001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
1491
1492 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
1493
0f32f023
AI
14942001-01-20 Andrew Innes <andrewi@gnu.org>
1495
52283633 1496 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
0f32f023
AI
1497 (w32_initialize): Don't set term hooks that aren't actually needed
1498 in windowed mode.
1499
1500 * xfaces.c (realize_default_face):
1501 (realize_face):
1502 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
1503
1504 * xdisp.c (handle_single_display_prop): Remove references to
1505 FRAME_W32_CONSOLE_P.
1506
52283633 1507 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
0f32f023
AI
1508
1509 * frame.h (output_method): Remove output_w32_console method.
1510 (FRAME_W32_CONSOLE_P): Remove macro.
1511
1512 * frame.c (Qw32_console): Remove variable.
1513 (Fframep): Remove references to it.
1514 (syms_of_frame): Ditto.
1515 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
1516
1517 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
1518 redefinition.
1519
7173eada
KH
15202001-01-20 Kenichi Handa <handa@etl.go.jp>
1521
1522 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
1523
755b45ce
AI
15242001-01-19 Andrew Innes <andrewi@gnu.org>
1525
1526 * w32.c (init_environment): Add a version-independent site-lisp
1527 directory to EMACSLOADPATH, after the version dependent one.
1528
0a949811
GM
15292001-01-19 Gerd Moellmann <gerd@gnu.org>
1530
8501998a
GM
1531 * editfns.c (Fbuffer_substring): Doc fix.
1532
52283633
SM
1533 * xdisp.c (message_dolog, message2, message2_nolog):
1534 Rename parameter LEN to NBYTES.
0a949811 1535
e6ebcbbe
KH
15362001-01-19 Kenichi Handa <handa@etl.go.jp>
1537
200ecca2
KH
1538 * charset.c (strwidth): Use c_string_width.
1539 (c_string_width): New function.
1540 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
1541 Caller changed.
1542
1543 * charset.h (c_string_width, lisp_string_width): Extern them.
1544
52283633 1545 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
200ecca2 1546
e6ebcbbe
KH
1547 * indent.c (check_composition): Check validity of composition.
1548
200ecca2
KH
1549 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
1550 characters by calling c_string_width.
1551 (x_consider_frame_title): Get byte length of frame tile string
1552 correctly.
1553 (display_mode_element): Pay attention to width of non-ASCII
1554 characters by calling strwidth.
1555
8692ca92
GM
15562001-01-18 Gerd Moellmann <gerd@gnu.org>
1557
8962e303
GM
1558 * xfns.c (Qcancel_timer): New variable.
1559 (syms_of_xfns): Initialize and staticpro it.
1560 (Fx_hide_tip, Fx_show_tip): Use it.
1561 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
1562 the timer.
1563 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
1564
91523be9
GM
1565 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
1566
1567 * window.h (WINDOW_LIVE_P): New macro.
1568
b0b7ed0e
GM
1569 * window.c (window_size_fixed): New variable.
1570 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
1571 the doc string.
1572
06bccf8e
GM
1573 * eval.c (specbind): If binding a per-buffer variable which
1574 doesn't have a buffer-local value in the current buffer, change
1575 the global value by changing the value of the symbol bound in all
1576 buffers not having their own value, to make it consistent with
1577 what happens with other buffer-local variables.
1578
8692ca92
GM
1579 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
1580
1581 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
1582 when searching for a newline.
1583
bb3a3b50
KH
15842001-01-18 Kenichi Handa <handa@etl.go.jp>
1585
1586 * xdisp.c (display_string): Fix previous change.
1587
c2cc16fa
JR
15882001-01-18 Jason Rumney <jasonr@gnu.org>
1589
1590 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
1591 GLYPH_DEBUG is defined.
1592 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
1593 true for images with `:ascent 100'.
1594 (x_set_mouse_face_gc): If the last used mouse face has gone in the
1595 meantime, use face MOUSE_FACE_ID.
1596 If first glyph isn't a character glyph, use the ASCII NUL
1597 character to determine the face.
1598 (expose_area): Do not treat left margin specially.
1599 (note_mode_line_highlight): If no local_map, check global keymap.
1600 (note_mouse_highlight): Initialize overlay.
52283633 1601 (clear_mouse_face): Don't return if tip_frame is non-nil.
c2cc16fa
JR
1602 (show_scroll_bars): Remove unused function.
1603 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
1604 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
1605 Clip to row.
52283633 1606 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
c2cc16fa
JR
1607 (x_free_frame_resources): Unload relief colors.
1608
9c11f79e
GM
16092001-01-17 Gerd Moellmann <gerd@gnu.org>
1610
3aec8722 1611 * xdisp.c (forward_to_next_line_start): Avoid calling
52283633
SM
1612 get_next_display_element when the newline is already found.
1613 This may change the iterator's position, when its current position is
3aec8722
GM
1614 equal to the iterator's stop_charpos.
1615
f3ffc2c3
GM
1616 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
1617 zero, use this method only at the end of a line.
1618
52283633 1619 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
a86110a8
GM
1620 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
1621 if SCALABLE_FONTS_P is set.
52283633 1622
d26d6fd9
GM
1623 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
1624 so that scalable fonts are included.
1625
9c11f79e
GM
1626 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
1627 In the cache, use a key containing the information if scalable
1628 fonts are included.
1629 (x_load_font): Adapt to change of keys in the font cache.
1630
16312001-01-17 Kim F. Storm <storm@filanet.dk>
52283633 1632
d26d6fd9
GM
1633 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
1634 XListFonts to take advantage of font caching.
1635
9c11f79e
GM
1636 * xterm.c (x_list_fonts): Ensure caching font information when
1637 called for a null frame, which is the case frequently when Emacs
1638 starts.
1639
51446987
GM
16402001-01-17 Gerd Moellmann <gerd@gnu.org>
1641
f864120f
GM
1642 * xfns.c (QCconversion): Replaces QCalgorithm.
1643
1644 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
1645
1646 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
1647 of :algorithm.
52283633 1648
e37d1417
GM
1649 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
1650 not everything could be displayed.
1651
51446987
GM
1652 * line.h, x-list-font.c: Files removed because unused.
1653
9ad4f3e5
AI
16542001-01-17 Andrew Innes <andrewi@gnu.org>
1655
1656 * dired.c (directory_files_internal): Convert result from readdir
1657 to a unibyte string initially, to avoid possible misinterpretation
1658 of some bytes as the internal form of Emacs characters.
1659
2eda09b5
KH
16602001-01-17 Kenichi Handa <handa@etl.go.jp>
1661
1662 * fns.c (concat): Be sure to avoid putting the same `composition'
1663 property on the adjacent regions.
1664
826f3788
GM
16652001-01-16 Gerd Moellmann <gerd@gnu.org>
1666
52283633 1667 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
f251459d
GM
1668 (Fscroll_right, Fscroll_left): Set it here instead, if called
1669 interactively.
1670
d57b83b3
GM
1671 * buffer.c (Fset_buffer_modified_p): Set buffer's
1672 prevent_redisplay_optimizations_p flag.
1673
826f3788 1674 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
52283633
SM
1675 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
1676 with additional arg.
1677
1678 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
1679 Change prototype.
826f3788 1680
826f3788
GM
1681 * xdisp.c (redisplay_preserve_echo_area): Add parameter
1682 FROM_WHERE, for debugging.
1683
261d788b
KH
16842001-01-16 Kenichi Handa <handa@etl.go.jp>
1685
1686 * ccl.c (Fregister_ccl_program): Handle the return value of
1687 resolve_symbol_ccl_program correctly.
52283633 1688 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
261d788b 1689
bccee4f2
GM
16902001-01-15 Gerd Moellmann <gerd@gnu.org>
1691
e4ded23c
GM
1692 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
1693 has gone in the meantime, use face MOUSE_FACE_ID.
52283633
SM
1694
1695 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
1696 If x_display_info_for_display returns null, don't try to close
ae24cb3b
GM
1697 the display; we didn't open it.
1698
bccee4f2
GM
1699 * dispnew.c (save_or_restore_current_matrices): Function removed.
1700 (save_current_matrix, restore_current_matrix): New functions.
1701 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
1702 restore the frame's current matrix. Due to the glyph pointer
1703 setup done in adjust_glyph_matrix, there is no easy way to make
1704 saving the current matrix in the desired matrix generally correct,
1705 so don't try it.
1706
ebeccffa
KH
17072001-01-15 Kenichi Handa <handa@etl.go.jp>
1708
1709 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
1710 truncation glyphs.
1711 (display_line): Optimize for wide characters.
e4ded23c 1712 (display_string): Don't try to display a multi-column character
ebeccffa
KH
1713 partially. On ttys, produce more than one truncation glyph for
1714 multi-column characters that don't fit on the line.
1715
64388126
KH
17162001-01-13 Kenichi Handa <handa@etl.go.jp>
1717
52283633
SM
1718 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
1719 Define it instead of WORDS_BIGENDIAN. Caller changed.
64388126 1720
8edb0a6f
JR
17212001-01-13 Jason Rumney <jasonr@gnu.org>
1722
1723 * w32fns.c (Fimage_size, image_ascent, lookup_image)
1724 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
52283633
SM
1725 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
1726 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
8edb0a6f 1727
52283633
SM
1728 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
1729 (x_draw_image_relief, x_draw_image_foreground_1)
8edb0a6f
JR
1730 (x_draw_image_glyph_string): Adapt to change of image margins.
1731
1732 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
1733 variables.
1734
1735 * w32bdf.c (search_file_line, get_cached_font_char)
1736 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
1737
1738 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
1739
1740 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
1741 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
1742 (Fw32_send_sys_command): Remove unused variables.
1743 (w32_msg_pump): Add parentheses.
1744
1745 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
1746 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
1747 Add parentheses.
1748
4956d1ef
GM
17492001-01-12 Gerd Moellmann <gerd@gnu.org>
1750
b30623be
GM
1751 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
1752 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
1753 being a pair of margins.
1754 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
1755 to DEFVAR_LISP. Extend doc.
1756
1757 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
1758 margins.
1759 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
1760 pair of integers `(X . Y)', use X for the horizontal and Y for the
1761 vertical margin.
1762 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
1763 (parse_image_spec): Check it.
52283633
SM
1764 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
1765 (tiff_format, gif_format, gs_format):
1766 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
b30623be 1767
52283633
SM
1768 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
1769 (x_draw_image_relief, x_draw_image_foreground_1)
b30623be
GM
1770 (x_draw_image_glyph_string): Adapt to the change of image margins.
1771
1772 * dispextern.h (struct image): Replace member `margin' with
1773 `hmargin' and `vmargin'.
1774
4554cc79
GM
1775 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
1776 and GLYPHS.
1777
1778 * dispnew.c (update_text_area): Put code which decrements the
1779 stop position when the row's face extends to the end of the
3bffc665 1780 line in #if 0.
4554cc79 1781
3cccce8d
GM
1782 * xfns.c (x_set_mouse_color): Fix color allocation.
1783
4956d1ef
GM
1784 * keyboard.c: Call get_local_map with new argument list.
1785
1786 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
1787
1788 * intervals.h (enum map_property): Removed.
1789 (get_local_map): Change prototype.
1790
1791 * keymap.c: Call get_local_map with new argument list.
1792 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
1793
2c2ff7f2
GM
17942001-01-11 Gerd Moellmann <gerd@gnu.org>
1795
a23887b9
GM
1796 * xdisp.c (build_desired_tool_bar_string): Correct the computation
1797 of the size needed for the tool bar string. For the last image,
1798 use a `display' property that reaches to the end of the string.
1799
a7ee2d2e
GM
1800 * xselect.c (selection_request_dpyinfo): New variable.
1801 (x_handle_selection_request): Set it.
1802 (x_selection_request_lisp_error): Don't call
1803 x_decline_selection_request if selection request's display has
1804 been closed.
1805
52283633
SM
1806 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
1807 Do the unregister_colors before calling XFreeColors.
2c2ff7f2 1808
457b792c
GM
18092001-01-10 Dave Love <fx@gnu.org>
1810
1811 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
1812 ${SOME_MACHINE_LISP}, not ${lisp}.
1813
c1efd260
GM
18142001-01-10 Gerd Moellmann <gerd@gnu.org>
1815
52283633
SM
1816 * xdisp.c (display_line): On ttys, produce more than one truncation
1817 glyph for multi-column characters that don't fit on the line.
a98b5ed9 1818
ac95a621
GM
1819 * xselect.c (x_reply_selection_request): Add a comment.
1820
c1efd260
GM
1821 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
1822 XkbGetNames instead of XkbGetKeyboard.
1823
1bfb1345
DL
18242001-01-10 Dave Love <fx@gnu.org>
1825
1826 * sysdep.c (random): Revert the declaration.
1827
38119822
GM
18282001-01-09 Gerd Moellmann <gerd@gnu.org>
1829
52283633
SM
1830 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
1831 Call function string_bytes.
35f464a7
GM
1832 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
1833
1834 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
1835 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
1836 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
1837 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
1838 the current sblock.
1839 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
1840 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
1841 after sweeping strings, and at the end.
1842 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
1843
38119822
GM
1844 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
1845 ensure that pop_message is called.
1846
1847 * keyboard.c (Fexecute_extended_command): Use a
1848 record_unwind_protect to ensure that pop_message is called.
1849
1850 * lisp.h (push_message_unwind): Add prototype.
1851
1852 * xdisp.c (push_message_unwind): New function.
1853
1854 * fileio.c (do_auto_save_unwind): Do the pop_message here
1855 instead of in Fdo_auto_save.
1856 (Fdo_auto_save): Don't call pop_message.
1857
f47a9ec4
KR
18582001-01-08 Ken Raeburn <raeburn@gnu.org>
1859
1860 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
1861 in inner block.
1862
a758f97d
GM
18632001-01-08 Gerd Moellmann <gerd@gnu.org>
1864
6d0afc03
GM
1865 * window.c (window_scroll_pixel_based): Adjust glyph matrices
1866 when increasing window's vscroll.
1867
a758f97d
GM
1868 * macros.c (Qkbd_macro_termination_hook): New variable.
1869 (syms_of_macros): Initialize and staticpro it.
1870 (pop_kbd_macro): Run kbd-macro-termination-hook.
1871
1872 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
1873
1bfb1345 18742001-01-07 Dave Love <fx@gnu.org>
64d4ec0f
DL
1875
1876 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
1877 arglist, for documentation's sake.
1878
0dac6924
AI
18792001-01-06 Andrew Innes <andrewi@gnu.org>
1880
1881 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
1882 of *.pdb.
1883
8182406a
AI
18842001-01-05 Andrew Innes <andrewi@gnu.org>
1885
1886 * term.c (update_end): Don't check updating_frame; for some reason
1887 this can be 0 sometimes, such as after dismissing a popup menu,
1888 and isn't necessary given the explicit frame argument.
1889
3828218c
GM
18902001-01-05 Gerd Moellmann <gerd@gnu.org>
1891
1892 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
1893 on some systems, and an unsigned long on others, like FreeBSD 4.1.
1894
2f5ded21
GM
18952001-01-04 Gerd Moellmann <gerd@gnu.org>
1896
52283633 1897 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
2f5ded21
GM
1898
1899 * xfns.c (x_create_tip_frame): Preserve the value of
1900 face_change_count around the creation of the tip frame.
52283633 1901
2f5ded21
GM
1902 * xfns.c (last_show_tip_args): New variable.
1903 (compute_tip_xy): New function.
1904 (Fx_show_tip): Reuse an existing tip frame, if possible.
1905 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
1906
dfad65fa
DL
19072001-01-04 Dave Love <fx@gnu.org>
1908
64d4ec0f
DL
1909 * editfns.c (Fformat): Doc fix.
1910
dfad65fa
DL
1911 * systime.h (set_file_times): Prototype.
1912
1913 * widget.h (EmacsFrameSetCharSize_): Prototype.
1914
1915 * sysdep.c (random, srandom): Declare explicitly.
1916
1917 * dispextern.h (move_it_vertically_backward): Declare.
1918
85fe3b5e
GM
19192001-01-04 Gerd Moellmann <gerd@gnu.org>
1920
0f2ac578
GM
1921 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
1922 like in Fx_create_frame.
1923
482cca61
GM
1924 * xfaces.c (set_font_frame_param): Don't do anything for
1925 non-graphical frames.
1926
85fe3b5e
GM
1927 * window.c (Fdelete_other_windows): Set window's window_end_valid
1928 to nil when changing the window's start. Don't change the
1929 window's start when its top position hasn't changed. If we do,
1930 this will set the window's optional_new_start, which act's like a
1931 force_start during redisplay with C-x 1 M-> under particular
1932 circumstances (see report from Per Starback to emacs-pretest-bug
1933 from 2000-12-13.).
1934
3e99d3b4
GM
19352001-01-03 Gerd Moellmann <gerd@gnu.org>
1936
a77dc1ec
GM
1937 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
1938 short cut at the start of the function. Add an assertion.
1939 (reseat_at_next_visible_line_start): Add an assertion.
1940
2f3cad6c
GM
1941 * window.c (Frecenter): When changing the window start, set the
1942 window's window_end_valid to nil.
1943 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
1944
1945 * dispextern.h (move_it_past_eol): Add prototype.
1946
1947 * xdisp.c (move_it_past_eol): New function.
1948
3e99d3b4
GM
1949 * window.c (Fwindow_end): Doc fix.
1950
19512001-01-03 Dave Love <fx@gnu.org>
1952
52283633 1953 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
3e99d3b4 1954
bafb434c
GM
19552001-01-03 Gerd Moellmann <gerd@gnu.org>
1956
1957 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
1958 the enabled_p flag of the glyph row at window_end_vpos to 0.
1959 (handle_single_display_prop): Fix last change.
1960
5297fb00
RS
19612001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
1962
1963 * window.c (Frecenter): Doc fix.
1964
13d6a61c
AI
19652001-01-02 Andrew Innes <andrewi@gnu.org>
1966
1967 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
1968
1969 * frame.h (output_method): Add output_w32_console method.
1970 (FRAME_W32_CONSOLE_P): New macro.
1971
1972 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
1973 use output_w32_console method.
1974 (Qw32_console): New Lisp_Object.
1975 (Fframep): Return it.
1976 (syms_of_frame): Init it.
52283633 1977 (Fframe_parameters): Report w32console as font for w32_console frames.
13d6a61c
AI
1978
1979 * xfaces.c (realize_default_face): Set face foreground and
1980 background to unspecified for w32_console frames.
1981 (realize_face): Realize face cache for w32_console frames.
1982 (realize_tty_face): Accept w32_console frames.
1983
52283633 1984 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
13d6a61c
AI
1985 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
1986 necessary, even if running interactively.
1987
1988 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
1989 w32_console frames.
1990
52283633
SM
1991 * w32term.c (x_update_begin):
1992 (x_update_end):
1993 (x_clear_frame):
1994 (x_ins_del_lines):
1995 (x_change_line_highlight):
1996 (x_delete_glyphs):
1997 (w32_ring_bell):
1998 (x_update_begin):
1999 (x_update_end):
2000 (w32_reassert_line_highlight):
2001 (w32_frame_rehighlight):
13d6a61c
AI
2002 (w32_frame_raise_lower): Do nothing if not w32 frame.
2003
2004 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
2005
2006 * w32fns.c (Fx_display_color_cells): Determine correct value, when
2007 system doesn't tell us directly.
2008 (Fx_display_visual_class): Implement properly.
2009
d6bb0c0d
GM
20102001-01-02 Gerd Moellmann <gerd@gnu.org>
2011
2012 * window.c (Frecenter): Handle centering in graphical frames
2013 specially. Centering on the basis of line counts doesn't work
2014 reliably with variable-height lines.
52283633 2015
315f5865
EZ
20162001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
2017
2018 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
2019 and al[].
2020
52283633 2021 * composite.c (run_composition_function): Remove unused var `val'.
315f5865
EZ
2022 (update_compositions): Remove unused variable `hook'.
2023
2024 * intervals.c (get_local_map): Remove unused variable `tem'.
2025
2026 * doprnt.c (doprnt1): Remove unused variable `size'.
2027
2028 * fns.c (Flength): Remove unused variable `tail'.
2029 (Fdelete): Remove unused variable `size'.
2030
2031 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
2032 and `gcpro2'.
2033
52283633 2034 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
315f5865
EZ
2035
2036 * data.c (find_symbol_value): Remove extra 3rd argument in the
2037 call to swap_in_symval_forwarding.
2038
52283633 2039 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
315f5865
EZ
2040
2041 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
2042 (trivial_regexp_p): Remove unused variable `c'.
2043 (boyer_moore): Remove unused variable `k'.
2044
2045 * indent.c (current_column): Remove unused variable `stopchar'.
2046 (Fcompute_motion): Remove unused variable `contin'.
2047
2048 * casefiddle.c (casify_object): Remove unused variable `tolen'.
2049
2050 * dired.c (directory_files_internal): Fix a typo in a comment.
2051 Remove an unused variable `handler'.
52283633 2052 (file_name_completion): Remove unused function-scope variable `dp'.
315f5865
EZ
2053 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
2054 on BSD4_2.
2055
52283633 2056 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
315f5865
EZ
2057
2058 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
2059 and `buf'.
2060 (Fmarker_insertion_type): Remove unused variable `buf'.
2061
2062 * insdel.c (make_gap): Remove unused variable `result'.
2063
52283633 2064 * keyboard.c (record_char): Remove unused function-scope var `help'.
315f5865
EZ
2065 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
2066 (menu_bar_items): Remove unused function-scope variable `tem'.
2067
2068 * fontset.c (fontset_ref): Remove unused variable `i'.
2069 (fontset_set): Remove unused variables `j' and `tmp'.
52283633 2070 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
315f5865
EZ
2071 (make_fontset_for_ascii_face): Remove unused variable `name'.
2072 (fs_load_font): Remove unused variable `font_idx'.
52283633 2073 (fs_query_fontset): Remove unused function-local variable `fontset'.
315f5865
EZ
2074 (list_fontsets): Remove unused variable `tail'.
2075 (Fnew_fontset): Remove unused variables `family' and `registry'.
2076 (accumulate_font_info): Remove unused variable `tmp'.
2077 (Ffontset_font): Remove unused variable `id'.
2078 (syms_of_fontset): Remove unused variable `i'.
2079
2080 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
2081 to x_term_init.
2082 (lookup_image): Remove unused variable `file'.
2083 (xbm_load): Remove unused variables `bitmap_data', `height', and
2084 `width'. Remove function-local variable `i', leave the
2085 block-local one.
2086 (gif_load): Remove unused variable `inc'.
2087
52283633 2088 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
315f5865
EZ
2089 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
2090 leave only the one in the inner block.
2091
2092 * xfaces.c (face_fontset, realize_default_face): Remove unused
2093 variable `fontset'.
2094 (face_at_buffer_position): Remove unused variable `multibyte_p'.
2095
2096 * term.c (encode_terminal_code): Remove unused variable `c'.
2097
2098 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
2099 char *' instead of `char *'.
2100
2101 * category.c (Fcategory_docstring): Remove unused variable `doc'.
52283633 2102 (Fget_unused_category): Remove unused variable `docstring_vector'.
315f5865
EZ
2103 (Fchar_category_set): Remove unused variables `val', `charset',
2104 `c1' and `c2'.
2105
52283633
SM
2106 * coding.c (detect_coding_iso2022, setup_coding_system):
2107 Remove unused variable `i'.
315f5865
EZ
2108 (detect_coding_mask): Remove unused variable `idx'.
2109 (detect_coding): Remove unused variable `i'.
2110 (ccl_coding_driver): Remove unused variable `result'.
2111 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
52283633 2112 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
315f5865
EZ
2113 (encode_coding_string): Remove unused variables `gcpro1' and
2114 `saved_coding_symbol'.
2115 (Ffind_coding_systems_region_internal): Remove function-local
2116 variable args[], leave only the block-local one.
2117 (code_convert_region1): Remove unused variable `len'.
2118
2119 * charset.c (char_printable_p): Remove unused variable `chars'.
2120 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
2121 (str_to_multibyte): Remove unused variable `c'.
2122
2123 * window.c (size_window): Remove block-local variable `min_size'.
2124
2125 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
2126 `header_line_height'.
2127 (append_space, extend_face_to_end_of_line): Declare `saved_what'
2128 enum display_element_type.
2129
1a8a9daf
GM
21302001-01-02 Gerd Moellmann <gerd@gnu.org>
2131
6dde6abc 2132 * xterm.c (x_connection_closed): Catch X errors around all
52283633
SM
2133 statements that call X. Save away the error message in a local copy.
2134
1883b2c6
GM
2135 * xterm.c (x_connection_closed): Set handling_signal to 0 at
2136 the start.
2137
a13be207
GM
2138 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
2139 in or at the start of invisible text.
2140
1a8a9daf
GM
2141 * dispnew.c (update_window): Don't check_current_matrix_flags.
2142
3608c0f9
JR
21432001-01-01 Jason Rumney <jasonr@gnu.org>
2144
2145 * w32fns.c (x_figure_window_size): Do not allow new_height and
2146 new_width of frame to override specified values.
2147
abb1acc4
KH
21482000-12-30 Kenichi Handa <handa@etl.go.jp>
2149
52283633 2150 * composite.c (find_composition): Fix a code for searching backward.
abb1acc4 2151
762a68ec
GM
21522000-12-29 Gerd Moellmann <gerd@gnu.org>
2153
52283633 2154 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
9c8b8382
GM
2155 (update_window) [GLYPH_DEBUG]: Call it.
2156 (scrolling_window): Prevent including current rows which are below
2157 what's displayed in the window.
2158
2159 * xdisp.c (try_window_reusing_current_matrix)
2160 <new start <= old start>: Disable rows in the current matrix
2161 which are below the window after scrolling.
52283633 2162
762a68ec
GM
2163 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
2164 is zero. It's not worth the complexity.
2165 (invisible_text_between_p): Put in #if 0 because unused.
2166
2d5912c1
GM
21672000-12-28 Gerd Moellmann <gerd@gnu.org>
2168
46f6a258
GM
2169 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
2170 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
2171
89f93679
GM
2172 * keyboard.c (echo_char): If C is an integer, always call
2173 push_key_description. Former code could signal an invalid
2174 character error.
2175
2176 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
2177 If set, print multibyte text.
2178 (Fsingle_key_description): Call push_key_description with
2179 FORCE_MULTIBYTE set.
2180 (describe_buffer_bindings): Likewise.
2181
2182 * lisp.h (push_key_description): Add prototype.
2183
c06017fb
GM
2184 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
2185 around the call to redisplay_internal.
2186
f1d2ce7f
GM
2187 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
2188
2d5912c1
GM
2189 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
2190
9371f831
KH
21912000-12-28 Kenichi Handa <handa@etl.go.jp>
2192
2193 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
2194 (ccl_driver): New local variable `extra_bytes'.
2195
2196 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
2197
52283633
SM
2198 * coding.c (setup_coding_system):
2199 Initialize coding->spec.ccl.eight_bit_carryover.
9371f831
KH
2200 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
2201
0c80628a
KH
22022000-12-28 Kenichi Handa <handa@etl.go.jp>
2203
2204 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
2205 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
2206 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
2207 (decode_composition_emacs_mule): New function.
2208 (decode_coding_emacs_mule): Decode composition sequence by calling
2209 decode_composition_emacs_mule.
2210 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
52283633
SM
2211 (encode_coding_emacs_mule): Changed from macro to function.
2212 If a text contains compositions, encode them correctly.
0c80628a
KH
2213 (setup_coding_system): Set coding->commong_flags for emacs-mule so
2214 that decoding and encoding are required.
2215
3e32cc27
GM
22162000-12-27 Gerd Moellmann <gerd@gnu.org>
2217
5e25feee
GM
2218 * xfaces.c (PT_PER_INCH): New macro.
2219 (xlfd_point_size): Compute real point size from font's pixel size.
2220 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
2221 instead of 72.
2222
892d8fcd
GM
2223 * .gdbinit: Comment out the line pointing to the Lesstif source
2224 directory.
2225
12c8b416
GM
2226 * window.c (Frecenter): Use displayed_window_lines instead
2227 of window_internal_height.
2228
6061fbf0
GM
2229 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
2230 instead of x-toolkit-scroll-bars-p.
2231 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
2232
2233 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
2234 instead of x-toolkit-scroll-bars-p.
2235 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
52283633 2236
3e32cc27
GM
2237 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
2238 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
52283633
SM
2239 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
2240 New variables.
2241 (add_window_display_history, add_frame_display_history)
3e32cc27
GM
2242 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
2243 (build_frame_matrix_from_leaf_window): Remove unused code.
2244 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
2245 redisplay history.
2246 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
2247 (update_window) [GLYPH_DEBUG]: Likewise.
2248 (syms_of_display): Defsubr dump-redisplay-history.
2249
31798cfe
GM
22502000-12-23 Gerd Moellmann <gerd@gnu.org>
2251
f717c2ba
GM
2252 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
2253 the end of the prompt. Set echo_after_prompt to the offset
2254 of echoptr in echobuf.
2255
aeb2b8fc
GM
2256 * xdisp.c (init_from_display_pos): Pop until the iterator's
2257 stack is empty; there may be frames for stretch or images
2258 on the stack.
2259
31798cfe
GM
2260 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
2261 (save_or_restore_current_matrix): New function for the same
2262 purpose, but more efficient.
2263 (adjust_frame_glyphs_for_frame_redisplay): Use it.
2264
f8156156
EZ
22652000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
2266
2267 * xdisp.c (syms_of_xdisp): Fix last change.
2268
bdd6d4e8
GM
22692000-12-23 Gerd Moellmann <gerd@gnu.org>
2270
2271 * xdisp.c (syms_of_xdisp): Doc fix.
2272
2273 * xdisp.c (redisplay_window): Remove label restore_buffers;
2274 use finish_scroll_bars instead to make sure that scroll bars
2275 are redeemed. If we don't do this, flickering can result from
2276 scroll bars being destroyed and recreated.
2277
9436cdf9
JR
22782000-12-22 Jason Rumney <jasonr@gnu.org>
2279
2280 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
2281 in the wrong colors when the foreground is not black.
2282 (expose_window): Don't redraw the window that's currently being
2283 updated.
2284
951f9df5
GM
22852000-12-22 Gerd Moellmann <gerd@gnu.org>
2286
856ff7a7
GM
2287 * window.c (size_window): When setting the window's too_small_ok
2288 flag, compare old size with minimum size depending on WIDTH_P,
2289 don't compare with window_min_width.
52283633 2290
951f9df5
GM
2291 * window.c (delete_window): Simplify somewhat.
2292 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
2293 freeing window matrices. The flag windows_or_buffers_changed is
2294 set, so the next redisplay will consider all windows; this should
2295 suffice.
2296
886bc933
KH
22972000-12-22 Kenichi Handa <handa@etl.go.jp>
2298
2299 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
2300
2301 * ccl.h (struct ccl_program): New member cr_consumed.
2302
2303 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
2304 (CCL_READ_CHAR): Handle EOL conversion here.
2305 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
2306
177f4e88
GM
23072000-12-21 Gerd Moellmann <gerd@gnu.org>
2308
52283633 2309 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
6ba384dc
GM
2310
2311 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
2312 otherwise tabs of different size compare equal.
2313
2314 * callint.c (Fcall_interactively): Prevent a compiler warning.
2315
2316 * print.c (print_unwind): Return nil.
2317 (PRINTDECLARE): Initialize all local variables.
2318 (print_preprocess): Add a default case.
2319
8e15274f
GM
2320 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
2321
2322 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
2323
52283633 2324 * window.c (delete_window, Fsplit_window)
177f4e88
GM
2325 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
2326
2327 * dispextern.h (ensure_frame_matrix): Function declaration removed.
2328
2329 * dispnew.c (ensure_frame_matrix): Removed.
2330 (save_frame_matrix, restore_frame_matrix): New functions.
2331 (adjust_frame_glyphs_for_frame_redisplay): Use them.
2332
2333 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
2334 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
2335
99012074
AI
23362000-12-21 Andrew Innes <andrewi@gnu.org>
2337
2338 * w32term.c (x_update_begin): Regenerate the palette here, rather
2339 than for each window.
2340
2341 * w32xfns.c (select_palette): Avoid calling SelectPalette if
2342 palette is NULL, since this corrupts memory! Also get
2343 display_info reference from frame.
2344
29ef7d2d
JR
23452000-12-21 Jason Rumney <jasonr@gnu.org>
2346
2347 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
2348
2349 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
2350 to avoid returning without releasing it.
3e27fa1f 2351
3f9d67a6
KH
23522000-12-21 Kenichi Handa <handa@etl.go.jp>
2353
587fc3f9
KH
2354 * keymap.c (push_key_description): Don't convert eight-bit-control
2355 and eight-bit-graphic to multibyte character.
2356
3f9d67a6
KH
2357 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
2358 generic character and CODE1 is nil, return the smallest character
2359 in CHARSET.
2360
774ba8c9
DL
23612000-12-20 Dave Love <fx@gnu.org>
2362
2363 * s/osf5-0.h (NSIG): Don't redefine.
2364
88416888
SM
23652000-12-20 Stefan Monnier <monnier@cs.yale.edu>
2366
2367 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
2368 excluding menu-bar and tool-bar.
2369 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
2370 (menu_item_p): Remove.
2371 (where_is_internal_1): Don't ignore menu-items.
2372
a6426c6f
GM
23732000-12-20 Gerd Moellmann <gerd@gnu.org>
2374
03ff8aab
GM
2375 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
2376 into account.
2377
2378 * window.c (make_window): Initialize window's min_hscroll.
2379 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
2380 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
2381 to zero.
2382 (struct saved_window): New member min_hscroll.
2383 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
2384 (Fset_window_configuration): Set window's min_hscroll.
2385 (save_window_save): Save window's min_hscroll.
2386 (compare_window_configurations): Compare min_hscroll values.
2387
2388 * window.h (struct window): New member min_hscroll.
2389
2390 * keyboard.c (echo_prompt): Prevent a compiler warning.
2391
8de4aaf8
GM
2392 * xdisp.c (try_cursor_movement): Fix last change. The real
2393 condition is that PT is at the end of the row, and should
2394 be displayed at the start of the next row.
52283633 2395
3f7e3031
GM
2396 * xdisp.c (try_cursor_movement): If we end on a partially
2397 visible line, end we already decided to scroll, return -1.
2398
a6426c6f
GM
2399 * dispextern.h (ensure_frame_matrix): Add prototype.
2400
2401 * window.c (delete_window, Fsplit_window)
2402 (Fset_window_configuration): Call ensure_frame_matrix.
2403
52283633
SM
2404 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
2405 New functions.
a6426c6f
GM
2406 (adjust_frame_glyphs_for_frame_redisplay): If display has been
2407 completed, call fake_current_matrices instead of marking frame
2408 garbaged.
2409
57fa2774
JR
24102000-12-20 Jason Rumney <jasonr@gnu.org>
2411
2412 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
2413
d925df90
EZ
24142000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
2415
2416 * fns.c (Frequire): Doc fix.
2417
7b93a85b
GM
24182000-12-19 Gerd Moellmann <gerd@gnu.org>
2419
52283633 2420 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
71d4497a 2421
c74e645b
GM
2422 * dispnew.c (direct_output_for_insert): Fix check for mini-window
2423 currently displaying a message.
2424
7b93a85b
GM
2425 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
2426 xterm.h.
2427 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
2428
90d97e64
AI
24292000-12-18 Andrew Innes <andrewi@gnu.org>
2430
2431 * w32.c (w32_strerror): New function.
2432
2433 * w32.h (w32_strerror): New extern.
2434
2435 * w32fns.c (Fw32_shell_execute): Use it.
2436
91c9e6ce
GM
24372000-12-18 Gerd Moellmann <gerd@gnu.org>
2438
2439 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
2440
6f4745e2
EZ
24412000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
2442
2443 * msdos.c (IT_set_face): Obey inverse_video.
2444
c9e088ce
KH
24452000-12-18 Kenichi Handa <handa@etl.go.jp>
2446
2447 * dired.c (directory_files_internal): Always return decoded filenames.
2448
c3695f5f
GM
24492000-12-18 Gerd Moellmann <gerd@gnu.org>
2450
52d8e4ff
GM
2451 * xterm.c (x_connection_closed): Prevent being called recursively
2452 because of an error condition in XtCloseDisplay.
52283633 2453
62be9979
GM
2454 * xdisp.c (init_iterator): If noninteractive, and the frame's
2455 face cache is null, make one.
2456
52283633 2457 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
5f7a1890 2458
c3695f5f
GM
2459 * process.c (wait_reading_process_input): Check for pending
2460 input when running timers.
2461
78555fbe
EZ
24622000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
2463
52283633 2464 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
78555fbe 2465
b2b36264
KH
24662000-12-18 Kenichi Handa <handa@etl.go.jp>
2467
2468 * process.c (read_process_output): Don't run a filter if the code
2469 decoder produces nothing but carryover.
2470
9c543fbf
AI
24712000-12-17 Andrew Innes <andrewi@gnu.org>
2472
2473 * w32.c (sys_rename): Only check errno against EEXIST, and not
2474 EACCES, when determining whether rename failed because the target
2475 exists. This was resulting in indefinite looping on Windows 9x if
2476 the source file was locked by another process.
2477
2478 * w32fns.c (Ffile_system_info): New function.
2479 (syms_of_w32fns): Defsubr it.
2480
10c2b5a8
GM
24812000-12-17 Gerd Moellmann <gerd@gnu.org>
2482
b0228ace
GM
2483 * window.c (coordinates_in_window): Fix computation for
2484 position on vertical line between mode lines.
2485
10c2b5a8
GM
2486 * xfns.c (unwind_create_frame): Return t if frame was deleted.
2487 Don't alter tip_frame or tip_window.
2488 (unwind_create_tip_frame): Set tip_frame to nil only if frame
2489 was deleted.
2490
c844a81a
GM
2491 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
2492 Don't alter tip_frame or tip_window.
2493 (unwind_create_tip_frame): Set tip_frame to nil only if frame
2494 was deleted.
2495
6c825f8e
EZ
24962000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
2497
2498 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
2499 be consistent with the doc string. Reported by NAKAJIMA Mikio
2500 <minakaji@osaka.email.ne.jp>.
2501
af4bb4c8
KH
25022000-12-16 Kenichi Handa <handa@etl.go.jp>
2503
2504 * xfaces.c (Vface_ignored_fonts): New variable.
2505 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
2506 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
2507
8062e53a
GM
25082000-12-15 Gerd Moellmann <gerd@gnu.org>
2509
e87b8809
GM
2510 * dispnew.c (update_window): Detect pending input every nth line
2511 updated, i.e. do it depending on real work done, and not on the
2512 vpos of the line.
2513
2514 * xterm.c (expose_window): Don't redraw the window that's
2515 currently being updated.
2516
a6768cc5
GM
2517 * window.c (Fset_window_point): Remove test for
2518 cursor_in_non_selected_windows.
2519
4ea7fdca
GM
2520 * lread.c (read1): Recognize end of file after `\\'.
2521
8062e53a
GM
2522 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
2523 not unwind_create_frame.
2524
bb7959c1
GM
25252000-12-15 Dave Love <fx@gnu.org>
2526
2527 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
2528 bcopy & al.
2529
2530 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
2531
ced04c42
KH
25322000-12-15 Kenichi Handa <handa@etl.go.jp>
2533
c5443913
KH
2534 * coding.c (setup_coding_system): Clear all members of the struct
2535 coding_system at first.
bc137305
KH
2536 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
2537 argument.
2538 (code_convert_region): Don't override coding->src_multibyte and
2539 coding->dst_multibyte.
c5443913 2540
ced04c42
KH
2541 * fns.c (Fmd5): Docstring improved.
2542
c2d7f289
MB
25432000-12-15 Miles Bader <miles@gnu.org>
2544
2545 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
2546 are actually marked as mode-lines; otherwise use
2547 estimate_mode_line_height.
2548
9d7d9263
GM
25492000-12-14 Gerd Moellmann <gerd@gnu.org>
2550
2551 * editfns.c (Fformat): Prevent a buffer overrun when the format
2552 specifies a precision.
2553
7cf0153a
EZ
25542000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
2555
2556 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
2557 argument is outside the range [2..3].
2558
1de0f662
AI
25592000-12-14 Andrew Innes <andrewi@gnu.org>
2560
2561 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
2562 nothing to do. Bind inhibit-quit.
2563 (tip_frame): Make it a Lisp_Object.
2564 (x_create_tip_frame): Set tip_frame after it has been added to
2565 Vframe_list.
2566 (Fx_show_tip): Don't set tip_frame here.
52283633 2567 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
1de0f662
AI
2568 (unwind_create_frame, unwind_create_tip_frame): New functions.
2569 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
2570 while a frame is only partially constructed.
2571
2572 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
2573 (x_free_frame_resources): New function.
2574 (x_destroy_window): Use it.
2575
02387dcc
GM
25762000-12-14 Gerd Moellmann <gerd@gnu.org>
2577
2578 * xfns.c (Fx_backspace_delete_keys_p): New function.
2579 (syms_of_xfns): Defsubr it.
2580
2581 * config.in (HAVE_XKBGETKEYBOARD): Add.
2582
0544ef49
KH
25832000-12-14 Kenichi Handa <handa@etl.go.jp>
2584
98d62747
KH
2585 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
2586 Always store string in multibyte representation in echobuf.
2587 (echo_char): Always store string in multibyte representation in
2588 echobuf.
2589 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
2590 (read_key_sequence): Adjusted for the change of echo_prompt.
2591
a20193cd
KH
2592 * fns.c (Fmd5): Docstring improved.
2593
191b83b6
KH
2594 * lisp.h (detect_coding_system): Prototype adjusted.
2595
0544ef49
KH
2596 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
2597 (detect_coding_emacs_mule, detect_coding_iso2022,)
2598 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
52283633
SM
2599 (detect_coding_utf_16, detect_coding_ccl): Make them static.
2600 New argument MULTIBYTEP. Callers changed.
0544ef49
KH
2601 (detect_coding_mask, detect_coding_system): New argument
2602 MULTIBYTEP. Callers changed.
1da1bb05
KH
2603 (decode_coding_string): Set coding->src_multibyte and
2604 coding->dst_multibyte before calling detect_coding and detect_eol.
2605 Update them after some coding system is detected.
52283633 2606
d5b3eb1b
SM
26072000-12-13 Stefan Monnier <monnier@cs.yale.edu>
2608
2609 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
2610
2611 * keyboard.c (menu_bar_items, tool_bar_items):
2612 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
2613
f7f8bb69
GM
26142000-12-13 Gerd Moellmann <gerd@gnu.org>
2615
52283633 2616 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
19f71add
GM
2617 New variables.
2618 (unwind_create_frame, unwind_create_tip_frame): New functions.
2619 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
2620 while a frame is only partially constructed.
2621
2622 * xterm.h (x_free_frame_resources): Declare.
2623
2624 * xterm.c (x_free_frame_resources): New function.
2625 (x_destroy_window): Use it.
2626
e10da507
GM
2627 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
2628 don't interrupt the update for pending input initially, i.e.
2629 update at least some lines.
2630
2631 * keyboard.c (do_mouse_tracking): Make externally visible.
52283633 2632
d5b3eb1b 2633 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
f7f8bb69
GM
2634
2635 * xfns.c (gray_bitmap_bits): Declare `char *'.
2636
90aa2856
GM
26372000-12-12 Gerd Moellmann <gerd@gnu.org>
2638
2639 * xdisp.c (display_tool_bar_line): Make sure that tool bar
2640 lines start with a relief line.
2641
a308c9cd
DL
26422000-12-12 Dave Love <fx@gnu.org>
2643
2644 * window.c (Fdisplay_buffer): Doc fix.
2645 (Fwindow_list): Remove unused var.
2646
2647 * buffer.h (mmap_set_vars): Declare.
2648
2649 * window.h (Fset_window_point): Declare.
2650
d575011f
EZ
26512000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
2652
bf6282d2 2653 * msdos.c (fast_find_position): Don't overstep the last window row.
52283633
SM
2654 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
2655 variable `area'. When looking for a row under (X,Y), give up if some
2656 of the previous rows is not enabled.
d575011f 2657
ecf4d726
GM
26582000-12-12 Gerd Moellmann <gerd@gnu.org>
2659
2ebf6139
GM
2660 * window.c (Fset_window_point): If displaying cursors in windows
2661 other than the selected window, make sure redisplay updates
2662 other windows to show the new value of point in the window.
2663
2664 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
2665
bfdb75ee
GM
2666 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
2667 the buffer is the sole visible buffer when in the mini-buffer.
2668
52283633 2669 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
4fdbd809
GM
2670 Bind `inhibit-read-only' to t.
2671 (unwind_with_echo_area_buffer): Use AREF.
2672
c0006262
GM
2673 * xfns.c (Fx_hide_tip): Simplified.
2674
52283633
SM
2675 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
2676 instead of `1'.
e9a59cad 2677
ecf4d726
GM
2678 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
2679
e5959a9a
GM
26802000-12-11 Gerd Moellmann <gerd@gnu.org>
2681
a3642e49 2682 * xfns.c (Fx_hide_tip): Fix last change.
52283633 2683
44b5a125
GM
2684 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
2685 nothing to do. Bind inhibit-quit.
2686 (tip_frame): Make it a Lisp_Object.
2687 (x_create_tip_frame): Set tip_frame after it has been added to
2688 Vframe_list.
2689 (Fx_show_tip): Don't set tip_frame here.
2690
2691 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
2692
2693 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
2694 Lisp_Object.
2695
2696 * dispextern.h: Change external declaration of tip_frame.
2697
d990421f
GM
2698 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
2699 return an empty string.
2700
4db87380
GM
2701 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
2702 of the window's update_mode_line flag, since the former is set by
2703 force-mode-line-update, not the latter. This makes
2704 column-number-mode slightly faster.
52283633 2705
e5959a9a
GM
2706 * xdisp.c (try_window_id) <all changes above window start>:
2707 Set the cursor.
2708
169fe44e
GM
27092000-12-11 Paul Eggert <eggert@twinsun.com>
2710
2711 * config.in (HAVE_FTELLO): Remove.
2712 (HAVE_FSEEKO): Add.
2713 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
2714 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
2715 HAVE_FTELLO.
2716 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
2717 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
52283633 2718
59ec59ae
MB
27192000-12-11 Miles Bader <miles@gnu.org>
2720
2721 * window.c (displayed_window_lines): Don't round up when
2722 converting empty space at bottom to lines.
ff904dd6
MB
2723 Handle non-newline-terminated final lines properly.
2724 (Fwindow_text_height): New function (used to be in lisp).
2725 (syms_of_window): Initialize it.
59ec59ae 2726
42ebfa31
SM
27272000-12-09 Stefan Monnier <monnier@cs.yale.edu>
2728
2729 * syntax.c (scan_lists): Check that the right quote char has the
2730 right Sstring syntax when jumping over strings.
2731 (init_syntax_once): Use Smax rather than 13.
2732
5cdb3cf3
MB
27332000-12-09 Miles Bader <miles@gnu.org>
2734
2735 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
2736 with PARTIALLY, inverting the sense.
2737 (window_scroll_pixel_based): Scroll partially visible lines into
2738 place if we hit the beginning or end of the buffer.
a12167c5
MB
2739 (displayed_window_lines): Don't include partially visible lines.
2740 (Fmove_to_window_line): Skip past any partially visible first line.
5cdb3cf3 2741
842b2a94
GM
27422000-12-08 Gerd Moellmann <gerd@gnu.org>
2743
2744 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
2745
2746 * tparam.c (tparam1): Change the way buffers are reallocated to be
2747 portable and less obfuscated.
2748
2749 * termcap.c (tgetent): Change the way buffers are reallocated to
2750 be portable and less obfuscated.
2751
2752 * macros.c (store_kbd_macro_char): Change the way buffers are
2753 reallocated to be portable and less obfuscated.
2754
2755 * lread.c (read1): Change the way buffers are reallocated to be
2756 portable and less obfuscated.
2757
2758 * doc.c (Fsubstitute_command_keys): Change the way buffers
2759 are reallocated so that it is portable.
2760
137cad7c
EZ
27612000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
2762
2763 * dosfns.c (Ffile_system_info): New function.
2764 (syms_of_dosfns): Defsubr it.
2765
5c7f629c
SM
27662000-12-07 Stefan Monnier <monnier@cs.yale.edu>
2767
2768 * alloc.c (gc_sweep): Add comment.
2769
959e647d
GM
27702000-12-07 Gerd Moellmann <gerd@gnu.org>
2771
52283633
SM
2772 * sound.c (vox_configure): Change order of ioctls.
2773 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
28fcb7dc
GM
2774 Ignore errors when changing volume.
2775 (vox_close): Don't reset the device.
2776
926b7e5e
GM
2777 * process.c (read_process_output): Make sure the process marker's
2778 position is valid when the process buffer is changed in
2779 after-change functions. W3 does that.
52283633 2780
959e647d
GM
2781 * xfns.c (x_free_gcs): New function.
2782
2783 * xterm.h (x_free_gcs): Add prototype.
2784
2785 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
2786 freeing GCs here.
2787
2788 * xterm.c (x_destroy_window): Call x_free_gcs so that
2789 resources of non-toolkit X windows will be freed.
2790
478ea067
AI
27912000-12-07 Andrew Innes <andrewi@gnu.org>
2792
2793 * w32fns.c (xlfd_charset_of_font): Fix last change.
2794
fbee3231
DL
27952000-12-06 Dave Love <fx@gnu.org>
2796
67292061
DL
2797 * md5.h (__P): Don't define -- it comes from config.h.
2798
fbee3231
DL
2799 * strftime.c: Change some #if foo to #ifdef foo.
2800
4ee87dbb
AI
28012000-12-06 Andrew Innes <andrewi@gnu.org>
2802
2803 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
2804
52283633 2805 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
4ee87dbb 2806 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
52283633 2807 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
4ee87dbb 2808
9765b4a4
GM
28092000-12-06 Gerd Moellmann <gerd@gnu.org>
2810
d285b373
GM
2811 * alloc.c (gc_sweep): Prevent symbols read during loadup
2812 from being freed.
2813
384333ee
GM
2814 * xdisp.c (underlying_face_id): New function.
2815 (handle_face_prop, face_before_or_after_it_pos): Use it
2816 to determine the face ``under'' a string. Let strings inherit
2817 the face of the buffer under them.
2818
2819 * xfaces.c (face_at_string_position): Update function comment.
52283633 2820
d4b72d58
GM
2821 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
2822 matrix if the window's left position has changed; we need to
2823 redraw it in this case.
2824
2825 * dispextern.h (struct glyph_matrix): Add member window_left_x.
2826
e1d05387
GM
2827 * window.c (coordinates_in_window): Check mouse on mode-line or
2828 header-line first.
2829
eb1b0c74
GM
2830 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
2831 advertized by the function documentation.
2832
d94d636f
GM
2833 * window.c (syms_of_window): Doc fix.
2834
3887b449
GM
2835 * sound.c (vox_configure): Set volume for left and right channel.
2836 (sound_cleanup): Return nil.
2837
efc8f57a
GM
2838 * xdisp.c (move_it_by_lines): Fix paren typo.
2839
9765b4a4
GM
2840 * xterm.c (x_load_font): Don't use the font's max_bounds for
2841 computing the height of the font. If max_bounds' ascent or
2842 descent are greater than the font's ascent or descent, this means
2843 glyphs overlap, which should be handled now by redisplay.
2844
6529ed87
GM
2845 * window.c (Veven_window_heights): New variable.
2846 (syms_of_window): DEFVAR_LISP it.
2847 (Fdisplay_buffer): Check Veven_window_heights before evening the
2848 window heights.
52283633 2849
0eb2ecde
MB
28502000-12-06 Miles Bader <miles@gnu.org>
2851
2852 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
2853 update `default-frame-alist' instead of setting no frame parameters.
2854
03d7a167
KH
28552000-12-06 Kenichi Handa <handa@etl.go.jp>
2856
2857 * composite.c (update_compositions): Fix typo (use the correct
2858 variable).
2859
5f8803c2
JR
28602000-12-05 Jason Rumney <jasonr@gnu.org>
2861
2862 * md5.h: Remove underscores from function declarations.
2863 (__attribute__, __alignof__) [!__GNUC__]: Define.
2864
2865 * md5.c: Delay include of md5.h until after namespace cleaning.
2866
c28a075b
JR
2867 * makefile.w32-in (fns.o): Depend on md5.h
2868 (md5.o): New target.
2869 (sunfns.o): Remove.
2870
2871 * makefile.nt: Likewise.
2872
ff3c7056
JR
28732000-12-05 Jason Rumney <jasonr@altavista.net>
2874
2875 * w32term.c (expose_area): Complete last change.
2876
0c21eeeb
KR
28772000-12-05 Ken Raeburn <raeburn@gnu.org>
2878
2879 * minibuf.c: Include intervals.h.
2880
f201d732
JR
28812000-12-05 Jason Rumney <jasonr@gnu.org>
2882
2883 * w32term.c (x_produce_glyphs): If a font for a component of
2884 a composition is not found, use 1 pixel dot ascent and 0 dot
2885 descent value to avoid displaying terribly tall empty boxes.
2886 (expose_area): Pass x-coordinate relative to the exposed
2887 area to x_draw_glyphs instead of a window-relative coordinate.
2888
21999ab9
GM
28892000-12-05 Gerd Moellmann <gerd@gnu.org>
2890
4d2036e4
GM
2891 * xdisp.c (next_element_from_ellipsis): Save face before selective
2892 display in saved_face_id, and set face_before_selective_p.
2893 (reseat_1): Reset face_before_selective_p.
2894 (append_space, extend_face_to_end_of_line): If iterator's
2895 face_before_selective_p is set, use the face from saved_face_id.
2896 (extend_face_to_end_of_line): For tty frames, make sure to
2897 use the right face id when producing spaces at the end of
2898 the line.
2899
2900 * dispextern.h (struct it): Add face_before_selective_p.
2901
52be17cc
GM
2902 * keyboard.c (record_char): Don't record identical help-echo
2903 events in recent_keys.
2904
8a4f36cc
GM
2905 * xterm.c [USE_X_TOOLKIT]: Close the display.
2906 (xim_close_dpy): Handle case that the display has been closed.
2907
57d6e381
GM
2908 * xterm.c (x_destroy_window): Reset the frame's X window after
2909 destroying it.
2910
21999ab9
GM
2911 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
2912 variable window_width.
2913 (line_draw_cost): Fix code skipping over spaces at the end of the
2914 line when must_write_spaces is not set.
2915 (scrolling_window): Fix code inserting runs in list of all runs.
2916
91372bb7
KH
29172000-12-05 Kenichi Handa <handa@etl.go.jp>
2918
2919 * coding.c (setup_coding_system): Be sure to initialize
2920 coding->category_idx.
2921
6c083b4c
GM
29222000-12-04 Gerd Moellmann <gerd@gnu.org>
2923
0c68ce6f 2924 * xterm.c (PER_CHAR_METRIC): Removed because not used.
52283633 2925
6452929e
GM
2926 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
2927 area to x_draw_glyphs instead of a window-relative coordinate.
2928
d7f31e22
GM
2929 * fileio.c (auto_save_error): Add parameter ERROR. Show the
2930 error in the message.
2931
ae18aa3b
GM
2932 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
2933 timer after having read a key. It's not good for code reading
2934 several keys in a loop, like an input method.
2935
caa15ef7
GM
2936 * fileio.c (Finsert_file_contents): When VISIT is t, don't
2937 record undo information for format-decode.
2938
2939 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
2940 current buffer is read-only, not if it isn't.
2941
6c083b4c
GM
2942 * keyboard.c (record_char): Record `help-echo' input events
2943 in recent_keys only if they display some help. Don't record
2944 `help-echo' events as macro char.
2945
caa15ef7
GM
29462000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2947
2948 * editfns.c (save_excursion_restore): Don't move point
2949 in another window if it is showing the wrong buffer.
2950 Avoid the call to Fwindow_live_p, for speed.
2951
5a13529b
KH
29522000-12-04 Kenichi Handa <handa@etl.go.jp>
2953
e225faa7
KH
2954 * xfaces.c (struct font_name): New member registry_priority.
2955 (split_font_name): Initialize the above member to zero.
2956 (concat_font_list): New function.
2957 (font_list): Include fonts of all alternative registries.
2958 (FONT_POINT_SIZE_QUANTUM): New macro.
2959 (better_font_p): Ignore point size difference less than
2960 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
2961
e89648b4
KH
2962 * xterm.c (x_produce_glyphs): If a font for a component of
2963 a composition is not found, use 1 pixel dot ascent and 0 dot
2964 descent value to avoid displaying terribly tall empty boxes.
2965
5a13529b
KH
2966 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
2967
d7935eb6
KR
29682000-12-03 Ken Raeburn <raeburn@gnu.org>
2969
2970 * coding.h (code_convert_string1): Declare.
2971
2972 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
2973
52283633 2974 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
d7935eb6 2975
0dd5e255
JR
29762000-12-02 Jason Rumney <jasonr@gnu.org>
2977
2978 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
2979 correctly for single byte character case.
2980 (w32_per_char_metric): Do not try to make any assumptions about
2981 the metrics of BDF fonts.
250cfece 2982 (x_estimate_mode_line_height): If `mode-line' face
52283633 2983 hasn't a font, use that of the frame, as drawing glyphs does.
250cfece
JR
2984 (note_mouse_highlight): Change the cursor shape on the vertical
2985 border between windows [not enabled].
2986
2987 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
2988
2989 * w32fns.c (Fx_create_frame): Reintroduce the call to
2990 face-set-after-frame-defaults.
2991 (Vx_window_horizontal_drag_shape): New variable.
2992 (syms_of_xfns): DEFVAR_LISP it.
2993 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
2994 enabled].
0dd5e255 2995
b5d8d2ca
GM
29962000-12-02 Simon Josefsson <simon@josefsson.org>
2997
2998 * fns.c (Fmd5): Use a different logic to decide the coding system
2999 to use.
3000
3001 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
3002
fbb87147
EZ
30032000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
3004
52283633 3005 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
fbb87147 3006
447e9da0
GM
30072000-12-01 Gerd Moellmann <gerd@gnu.org>
3008
7708ced0
GM
3009 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
3010 height for YNegative.
3011 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
3012 height; also see comment there.
3013
447e9da0
GM
3014 * window.c (coordinates_in_window): Handle computations for
3015 positions on the vertical bar and fringes differently for
3016 window-system frames. Consider some pixels near the vertical bar
3017 as on the bar if the frame doesn't have vertical scroll bars.
3018 Associate positions between mode or header lines with the
3019 right window, the left one.
3020
86d1db20
JR
30212000-12-01 Jason Rumney <jasonr@gnu.org>
3022
3023 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
3024
3025 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
3026 invalid frame.
3027
a1d58e5b
GM
30282000-12-01 Gerd Moellmann <gerd@gnu.org>
3029
52283633 3030 * window.c (struct saved_window): Add members orig_top and orig_height.
a1d58e5b
GM
3031 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
3032 (save_window_save, Fset_window_configuration): Save/restore
3033 window's orig_top and orig_height.
3034
89c609af
JR
30352000-12-01 Jason Rumney <jasonr@gnu.org>
3036
4d177746 3037 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
86d1db20 3038
89c609af
JR
3039 * w32fns.c (x_set_cursor_color): Fix last change.
3040
eccc05db
GM
30412000-11-30 Gerd Moellmann <gerd@gnu.org>
3042
31b6671b
GM
3043 * xdisp.c (echo_area_display): If cursor is in the echo area, make
3044 sure that the next redisplay displays the minibuffer, so that
3045 the cursor will be replaced with what the minibuffer wants.
3046
eccc05db
GM
3047 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
3048 #ifndef instead of using #if.
3049 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
3050 USE_TOOLKIT_SCROLL_BARS is defined.
3051
162de750
JR
30522000-11-30 Jason Rumney <jasonr@gnu.org>
3053
3054 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
3055 x_display_cursor.
3056
693c4692
GM
30572000-11-30 Gerd Moellmann <gerd@gnu.org>
3058
3059 * fns.c (Fmd5): Doc fix.
3060
b5d8d2ca 30612000-11-30 Simon Josefsson <simon@josefsson.org>
edfb795e
GM
3062
3063 * fns.c (Fmd5): New function.
3064 (syms_of_fns): Defsubr md5.
3065
3066 * Makefile.in (obj): Add md5.o
3067
b02cd40b
GM
30682000-11-30 Gerd Moellmann <gerd@gnu.org>
3069
edfb795e
GM
3070 * md5.h, md5.c: New files, taken from glibc.
3071
df3aedcf
GM
3072 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
3073
b02cd40b 3074 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
52283633 3075 hasn't a font, use that of the frame, as drawing glyphs does.
b02cd40b 3076
8b5176cd
SM
30772000-11-29 Stefan Monnier <monnier@cs.yale.edu>
3078
3079 * eval.c (Frun_hooks): Allow 0 arguments.
3080
346598f1
GM
30812000-11-29 Gerd Moellmann <gerd@gnu.org>
3082
f9396e03
GM
3083 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
3084 is over the menu bar widget, say it's not on the frame.
3085
4a967a9b
GM
3086 * xfns.c (Fx_create_frame): Reintroduce the call to
3087 face-set-after-frame-defaults.
3088
346598f1
GM
3089 * eval.c (Fsignal): Reset handling_signal.
3090
222456a1
JR
30912000-11-28 Jason Rumney <jasonr@gnu.org>
3092
3093 * w32menu.c (add_menu_item): Reset menu item text when changing
3094 type to radio button.
3095
8049ddc0
GM
30962000-11-28 Gerd Moellmann <gerd@gnu.org>
3097
346598f1 3098 * xselect.c: Update copyright.
f4f4ee4d 3099
bebe4a2c
GM
3100 * window.c (coordinates_in_window): If on a mode or header line,
3101 but sufficiently close to its start, return ``on vertical
3102 border''. This gives us a way to drag windows horizontally when
3103 using toolkit scroll bars.
3104
3105 * xterm.c (note_mouse_highlight): Change the cursor shape
3106 on the vertical border between windows.
3107
3108 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
3109
3110 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
3111 (syms_of_xfns): DEFVAR_LISP it.
3112 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
3113
8d2c2642
GM
3114 * textprop.c (text_read_only): New function.
3115 (verify_interval_modification): Use it instead of signaling
3116 `text-read-only'. This makes it easier to catch this error
52283633 3117 with a breakpoint.:
8d2c2642 3118
52283633 3119 * xdisp.c (forward_to_next_line_start): Check for newlines,
8049ddc0
GM
3120 not end of line, which includes CR.
3121
5a2bae6c
KH
31222000-11-28 Kenichi Handa <handa@etl.go.jp>
3123
3124 * coding.c (Ffind_coding_systems_region_internal): Be sure to
3125 include no-conversion.
3126
ae31f84d
JR
31272000-11-27 Jason Rumney <jasonr@gnu.org>
3128
3129 * w32fns.c (w32_load_system_font): Always mark font as double byte
3130 if codepage is unicode.
3131
67f1cf4c
GM
31322000-11-27 Gerd Moellmann <gerd@gnu.org>
3133
4a74d071 3134 * xdisp.c (forward_to_next_line_start): If already on a newline,
52283633 3135 just consume it to avoid unintended skipping over invisible text below.
4a74d071 3136
902ae620
GM
3137 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
3138 `vertical-line', `mode-line' and `header-line' events.
3139
3140 * xdisp.c (try_window_id): Avoid starting to display in the middle
67f1cf4c
GM
3141 of a character, a TAB for instance. This is easier than to set
3142 up the iterator exactly, and it's not a frequent case, so the
3143 additional effort wouldn't really pay off.
3144
c1e279c2
AC
31452000-11-26 Andrew Choi <akochoi@i-cable.com>
3146
67f1cf4c 3147 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
c1e279c2
AC
3148 init_window_once.
3149
a609568a
JR
31502000-11-25 Jason Rumney <jasonr@gnu.org>
3151
52283633
SM
3152 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
3153 Args to window_from_coordinates should be pixel coordinates.
48b21762 3154
a609568a
JR
3155 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
3156 redisplay handles them properly.
3157
a658d039
MB
31582000-11-25 Miles Bader <miles@gnu.org>
3159
3160 * indent.c (compute_motion): Keep pos_byte in sync with pos.
3161
d3416cca
JR
31622000-11-24 Jason Rumney <jasonr@gnu.org>
3163
3164 * w32.c (init_environment): Set LANG environment variable based on
3165 locale settings, if not set.
3166
3167 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
3168 making tool bar smaller. When clearing the frame, also
3169 clear current matrices. Clear frame when tool bar disappears.
3170 Don't use more lines for the tool-bar than is available.
3171 (x_change_window_heights): New function.
3172
ba193890
GM
31732000-11-24 Gerd Moellmann <gerd@gnu.org>
3174
2be8f184
GM
3175 * xdisp.c (init_from_display_pos): If POS says we're already after
3176 an overlay string ending at POS, make sure to pop the iterator
3177 because it will be in front of that overlay string. When POS is
3178 ZV, we've thereby also ``processed'' overlay strings at ZV.
3179
ba193890
GM
3180 * xfaces.c (lface_from_face_name): Function comment fix.
3181
1862a24e
MB
31822000-11-24 Miles Bader <miles@gnu.org>
3183
3184 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
3185 apply `mode-line-inverse-video' -- zero means force display using
3186 the default face, non-zero means display using the specialized face.
3187 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
3188
f07fa1b8
KH
31892000-11-23 Kenichi Handa <handa@etl.go.jp>
3190
3191 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
3192 hard coded `4'.
3193
2bcdf662
EZ
31942000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
3195
3196 * coding.c (decode_coding_emacs_mule): Fix the case of
3197 CODING_EOL_LF, which used uninitialized value of c.
3198
ba8299ff
SM
31992000-11-23 Stefan Monnier <monnier@cs.yale.edu>
3200
3201 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
3202
f4117c4d
GM
32032000-11-22 Gerd Moellmann <gerd@gnu.org>
3204
03e757c1
GM
3205 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
3206 buffer object.
3207
f4117c4d
GM
3208 * frame.h (struct frame): Replace desired_tool_bar_items,
3209 current_tool_bar_items, n_desired_tool_bar_items,
cc362d76 3210 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
f4117c4d
GM
3211
3212 * frame.c (make_frame): Change initialization of tool bar
3213 items accordingly.
3214
3215 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
cc362d76 3216 Change references to members deleted from struct frame to use the
f4117c4d
GM
3217 new ones.
3218
3219 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
52283633 3220 references to members deleted from struct frame to use the new ones.
f4117c4d 3221
52283633 3222 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
f4117c4d
GM
3223
3224 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
3225
3226 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
cc362d76 3227 (note_tool_bar_highlight): Change references to members deleted
f4117c4d
GM
3228 from struct frame to use the new ones.
3229
f8e2f3f2
MB
32302000-11-23 Miles Bader <miles@gnu.org>
3231
3232 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
3233 the face's inverse-video attribute, rather than overriding it.
3234
60e8e0a5
GM
32352000-11-22 Gerd Moellmann <gerd@gnu.org>
3236
3237 * xfns.c (x_set_tool_bar_lines): Clear internal border when
3238 making tool bar smaller.
3239
92dd1b29
DL
32402000-11-22 Dave Love <fx@gnu.org>
3241
3242 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
3243
e672fdce
MB
32442000-11-22 Miles Bader <miles@gnu.org>
3245
3a17d6cc
MB
3246 * keyboard.c (Vminibuffer_message_timeout): New variable.
3247 (command_loop_1): Use it to determine message timeout.
3248 (syms_of_keyboard): Initialize it.
3249
60e8e0a5 3250 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
e672fdce 3251
e9655d81
KH
32522000-11-22 Kenichi Handa <handa@etl.go.jp>
3253
3254 * sysdep.c: Move the code for declaring h_errno after #include
3255 <netdb.h>.
3256
77270fac
GM
32572000-11-21 Gerd Moellmann <gerd@gnu.org>
3258
cd913aae
GM
3259 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
3260 the menu bar when the tooltip is unmapped.
3261
77270fac
GM
3262 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
3263 sole visible buffer when we're currently in the mini-buffer, and
3264 give up if so.
52283633 3265
556635d6
JR
32662000-11-21 Jason Rumney <jasonr@gnu.org>
3267
3268 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
3269 put on the clipboard.
3270 (Fw32_get_clipboard_data): Compare data on clipboard with saved
3271 copy of what Emacs last put there. If they are the same, do not
52283633 3272 use the clipboard copy to avoid losing data due to coding conversions.
556635d6 3273
5b7bde64
MB
32742000-11-22 Miles Bader <miles@gnu.org>
3275
3276 * minibuf.c (Vminibuffer_prompt_properties): New variable.
3277 (syms_of_minibuf): Initialize it.
3278 (read_minibuf): Add properties from Vminibuffer_prompt_properties
3279 to prompt, don't make read-only.
3280
ff23e1dd
GM
32812000-11-21 Gerd Moellmann <gerd@gnu.org>
3282
52283633
SM
3283 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
3284 Add BEFORE/AFTER_POTENTIAL_GC.
3c64f287 3285
7aaf4388
GM
3286 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
3287
f5f47add 3288 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 3289
ff23e1dd
GM
3290 * term.c, cm.c: Don't try to include termcap.h; see comment there.
3291
37c35586
KH
32922000-11-21 Kenichi Handa <handa@etl.go.jp>
3293
3294 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
3295 ... #endif scope.
3296
ff9ab414
GM
32972000-11-20 Gerd Moellmann <gerd@gnu.org>
3298
52283633 3299 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
c51d2b5e
GM
3300 screen supports it.
3301
29a01b72
GM
3302 * s/gnu-linux.h: Don't use `#cpu'.
3303
09dfdf85
GM
3304 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
3305 not defined in mman.h.
3306
52283633 3307 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
ff9ab414
GM
3308 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
3309 and store an index in the XClientMessageEvent. Storing a
3310 Lisp_Object or pointer can fail on a 64 bit system, since X only
3311 transfers 32 bits.
52283633
SM
3312 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
3313
81459ac9
DL
33142000-11-20 Dave Love <fx@gnu.org>
3315
3316 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
3317
56c13ae6
GM
33182000-11-20 Gerd Moellmann <gerd@gnu.org>
3319
3320 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
3321
495a6df3
KH
33222000-11-20 Kenichi Handa <handa@etl.go.jp>
3323
2bcf3714
KH
3324 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
3325 by WIDTH.
3326
495a6df3
KH
3327 * alloc.c (make_string): Fix previous change. Be sure to make
3328 unibyte string correctly.
3329
6d950f4c
GM
33302000-11-19 Gerd Moellmann <gerd@gnu.org>
3331
39b39373
GM
3332 * window.c (Fwindow_list): Change parameter list to be XEmacs
3333 compatible.
3334 (window_list_1): New function.
3335 (window_loop): Use it instead of Fwindow_list.
3336
b95b34e5
GM
3337 * sysdep.c (emacs_ospeed): New variable.
3338 (toplevel): Don't declare ospeed extern.
3339 (init_baud_rate): Use emacs_ospeed instead of ospeed.
3340
3341 * termcap.c (ospeed): Remove.
3342 (tputs) [!emacs]: Remove unused code.
3343 (tgetent): Avoid a compiler warning.
3344
e83dc917
GM
3345 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
3346 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 3347 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
3348
3349 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
3350 removed.
3351 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
3352 Take the X display as additional argument.
3353 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
3354 `Widget' is a pointer type that's not easily stored in Lisp_Object
3355 form in a portable way.
52283633 3356
6d950f4c
GM
3357 * dispnew.c (update_text_area): Fix last change.
3358
e47306e6
GM
33592000-11-18 Gerd Moellmann <gerd@gnu.org>
3360
fb3cd89b
GM
3361 * xdisp.c: Use BINDING_STACK_SIZE throughout.
3362
3363 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
3364 clear current matrices.
3365
edaa9aed
GM
3366 * buffer.c (mmap_enlarge): Don't print a message on stderr
3367 if mapping new memory at the end of the existing region fails.
3368
e47306e6
GM
3369 * dispnew.c (update_text_area): Don't skip over equal glyphs
3370 when the last current glyph overlaps the glyph to its right.
3371
509633e3
MB
33722000-11-18 Miles Bader <miles@gnu.org>
3373
3374 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
3375 lines that *end* with "..." too (that's the most common case!).
3376
d392e9c5
GM
33772000-11-18 Gerd Moellmann <gerd@gnu.org>
3378
67988445
GM
3379 * xdisp.c (resize_mini_window): Temporarily change to the
3380 mini-window's buffer if necessary.
1bfdbe43 3381
d392e9c5
GM
3382 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
3383 the tooltip obscures less text under it.
3384
33852000-11-17 Gerd Moellmann <gerd@gnu.org>
3386
3387 * puresize.h (BASE_PURESIZE): Increase to 700000.
3388
92bb977f
JR
33892000-11-18 Jason Rumney <jasonr@gnu.org>
3390
3391 * w32term.c (w32_draw_bitmap): Use face to set colors.
3392
26fbf20b
DL
33932000-11-17 Dave Love <fx@gnu.org>
3394
3395 * lread.c (Fload): Fix #ifdef for pcc.
3396
100b593b
GM
33972000-11-17 Gerd Moellmann <gerd@gnu.org>
3398
3399 * xdisp.c (pos_visible_p): Compute the default character height
3400 differently.
3401
a288d0d1
GM
34022000-11-16 Gerd Moellmann <gerd@gnu.org>
3403
cac94de6 3404 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
52283633 3405 knowing the line's height; use the default font's height in that case.
cac94de6 3406
a288d0d1
GM
3407 * xfaces.c (weight_table): Add `demi' with the same meaning as
3408 `demibold'.
3409
981fb6f6
KH
34102000-11-16 Kenichi Handa <handa@etl.go.jp>
3411
2cca872d 3412 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
3413 (clear_glyph_row): Delete local static variable null_row.
3414
e5fa381b
JR
34152000-11-15 Jason Rumney <jasonr@gnu.org>
3416
3417 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
3418 (w32_alloc_lighter_color): Use new brightness calculations from
3419 xterm.c. Scale delta to be in the range expected by W32.
3420 (w32_draw_relief_rect): Use frame relief colors.
3421
8e42f043
GM
34222000-11-15 Gerd Moellmann <gerd@gnu.org>
3423
6d133d1f
GM
3424 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
3425 (Qinhibit_default_face_x_resources): New variable.
3426 (syms_of_frame): Initialize it.
3427 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
3428
3429 * xdisp.c (pos_visible_p): Improve function comment.
3430
3431 * lisp.h (BINDING_STACK_SIZE): New macro.
3432
8e42f043
GM
3433 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
3434 reading the directory if readdir returns null and errno is EAGAIN
3435 or EINTR.
3436
e8c87124
SM
34372000-11-14 Stefan Monnier <monnier@cs.yale.edu>
3438
3439 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
3440 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
3441 Set amount_to_scroll to max of dx and scroll_step so that
3442 scroll-conservatively doesn't defeat scroll-step>1.
3443 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
3444 scroll-conservatively for line-at-a-time scrolling.
3445
5f0c971d
GM
34462000-11-14 Gerd Moellmann <gerd@gnu.org>
3447
3448 * window.c (Fpos_visible_in_window_p): Call pos_visible with
3449 extra argument.
3450
3451 * xdisp.c (current_mode_line_height, current_header_line_height):
3452 New variables.
3453 (init_xdisp): Initialize them.
3454 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
3455 and use exact mode line heights if it is set.
3456
3457 * lisp.h (pos_visible_p): Change prototype.
3458
3459 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
3460 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
3461 and current_header_line_height first.
52283633
SM
3462 (current_mode_line_height, current_header_line_height):
3463 Declare extern.
5f0c971d 3464
d7361edf
MB
34652000-11-14 Miles Bader <miles@lsi.nec.co.jp>
3466
3467 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
3468 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
3469 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
3470
ee5e440a
MB
34712000-11-14 Miles Bader <miles@gnu.org>
3472
3473 * xterm.c (x_alloc_lighter_color): Include an additive component
3474 too for dark colors, because FACTOR isn't enough.
3475 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
3476 New macros.
3477
5ca020fc
GM
34782000-11-13 Gerd Moellmann <gerd@gnu.org>
3479
3480 * keyboard.c (show_help_echo): Call message3_nolog with number of
3481 bytes in the help string as 2nd parameter, instead of the number
3482 of characters.
3483
9d348294
MB
34842000-11-13 Miles Bader <miles@gnu.org>
3485
3486 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
3487 (Fload): Use new openp return protocol.
3488 Don't try to use Vload_source_file_function to load .elc files.
3489 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
3490 openp return protocol.
3491 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
3492
1729bb9a
KH
34932000-11-11 Kenichi Handa <handa@etl.go.jp>
3494
4e677396
KH
3495 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
3496
3497 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
3498 Defined these macros.
3499 (NLIST_STRUCT): Avoid re-defining it.
3500
1729bb9a
KH
3501 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
3502 -I/usr/contrib/X11R6/include.
3503 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
3504
a82fe213
JR
35052000-11-10 Jason Rumney <jasonr@gnu.org>
3506
3507 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
3508
3509 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
3510 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
3511
3512 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
3513 (Qw32_charset_vietnamese): New symbol.
3514 (xlfd_charset_of_font): New function.
3515 (w32_load_system_font): Use it.
3516 (x_to_w32_charset): Use Fassoc to find charset info. Special case
3517 when Vw32_charset_info_alist is nil to ensure default face always
3518 has font. Use Fcar and Fcdr for safety.
3519 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
3520 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
3521 pseudo-codepages for special cases.
3522 (w32_to_x_font): New parameter to allow charset portion to be
3523 specified where there is many to one mapping. Callers changed.
3524 (w32_list_fonts): Avoid listing fonts that won't display.
3525
52d89894
GM
35262000-11-10 Gerd Moellmann <gerd@gnu.org>
3527
3528 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
3529 (font_list_1): Renamed from font_list.
3530 (font_list): New function, trying alternative registries from
3531 Vface_alternative_font_registry_alist.
3532 (Finternal_set_alternative_font_registry_alist): New function.
3533 (syms_of_xfaces): Initialize and Staticpro
52283633
SM
3534 Vface_alternative_font_registry_alist.
3535 Defsubr Finternal_set_alternative_font_registry_alist.
52d89894 3536
651cd3da
KR
35372000-11-09 Ken Raeburn <raeburn@gnu.org>
3538
3539 * lisp.h (Flooking_at): Declare.
3540
388ac098
GM
35412000-11-09 Gerd Moellmann <gerd@gnu.org>
3542
778fbc46 3543 * dired.c (directory_files_internal): Fix a braino.
52283633 3544
388ac098
GM
3545 * dired.c (directory_files_internal): Add missing GCPRO's.
3546 Some cleanup.
3547
ecaedde1
GM
35482000-11-08 Gerd Moellmann <gerd@gnu.org>
3549
f7eb32aa
GM
3550 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
3551 (resize_mini_window): Return quickly if Vresize_mini_window is
3552 nil. Don't return if Vmax_mini_window_height is nil.
3553
3554 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
3555 (syms_of_xdisp): Initialize them.
3556 (resize_mini_window): Act according to the setting of
3557 Vresize_mini_window.
3558 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
3559
ecaedde1
GM
3560 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
3561 scroll bar widget after configuring it, so that it will appear at
3562 the right position from the start.
3563 (XTredeem_scroll_bar): Cleaned up.
3564
3747ef2c
KH
35652000-11-08 Kenichi Handa <handa@etl.go.jp>
3566
3567 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 3568 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
3569 division by two.
3570
3571 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
3572
03391420
DL
35732000-11-07 Dave Love <fx@gnu.org>
3574
7758f1c1 3575 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
3576
3577 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
3578
b5de343d
GM
35792000-11-07 Gerd Moellmann <gerd@gnu.org>
3580
acad3c0b
GM
3581 * window.c (Fset_window_configuration): Don't try to preserve
3582 point in the current buffer, if that buffer is displayed in more
3583 than one window.
3584
b5de343d
GM
3585 * xfaces.c (lookup_named_face): If default face isn't realized,
3586 try to realize it. Return -1 if not successful.
3587 (Fx_list_fonts): Handle case that face cannot be determined.
3588 (Fface_font): Likewise.
3589
cdb1fe49
GM
35902000-11-06 Gerd Moellmann <gerd@gnu.org>
3591
3592 * window.c (displayed_window_lines): Detect partially
3593 visible lines at the bottom correctly.
3594
d3a67486
SM
35952000-11-06 Stefan Monnier <monnier@cs.yale.edu>
3596
3597 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
3598 when ensuring we don't do visit in indirect buffer.
3599
ff8dd5d5
KH
36002000-11-06 Kenichi Handa <handa@etl.go.jp>
3601
3602 * composite.h (compose_chars_in_text): Add prototype.
3603
3604 * composite.c (Vcomposition_function_table): New variable.
3605 (Qcomposition_function_table): New variable.
3606 (run_composition_function): Call
3607 Vcompose_chars_after_function with three arguments.
3608 (compose_chars_in_text): New function.
3609 (syms_of_composite): Modified the doc-string of
3610 Vcompose_chars_after_function. Declare composition-function-table
3611 as a lisp variable, and initialize it.
3612
3613 * xfns.c (x_encode_text): Suppress producing escape sequences for
3614 composition.
3615
3616 * xselect.c: Include composite.h.
3617 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
3618
d1145f85
AI
36192000-11-05 Andrew Innes <andrewi@gnu.org>
3620
3621 * w32term.c (x_produce_glyphs): Fix typo in enum name.
3622
3623 * sysdep.c (read_input_waiting): Remove extraneous argument to
3624 read_socket_hook.
3625
3626 * w32fns.c (Fx_server_version): Include w32_build_number in the
3627 return list.
3628
3629 * w32heap.c (w32_build_number): New variable.
3630 (cache_system_info): Set it.
3631
3632 * w32heap.h (w32_build_number): Add extern.
3633
3634 * emacs.c (syms_of_emacs): Update docstring for
3635 system-configuration, to reflect the actual usage on MS-Windows.
3636
e85ee976
GM
36372000-10-31 Gerd Moellmann <gerd@gnu.org>
3638
26dcb81b
GM
3639 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
3640 process idle timers while waiting for another event.
3641
52283633 3642 * dispnew.c (update_frame_line): Handle case where spaces in
0a894bad
GM
3643 the default face are colored.
3644
e85ee976
GM
3645 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
3646 window height hasn't changed.
3647
01b220b6
JR
36482000-10-31 Jason Rumney <jasonr@gnu.org>
3649
3650 * w32term.c (x_produce_glyphs): Handle composite characters.
3651 (x_draw_glyph_string_foreground)
3652 (x_draw_composite_glyph_string_foreground): Restore old font.
3653
4e6b7204
MB
36542000-10-31 Miles Bader <miles@lsi.nec.co.jp>
3655
3656 * minibuf.c (read_minibuf): Reset the undo history just before
3657 starting the recursive-edit.
3658
d4358b37
GM
36592000-10-30 Gerd Moellmann <gerd@gnu.org>
3660
563f68f1
GM
3661 * xfaces.c (menu_face_change_count): New variable.
3662 (Finternal_set_lisp_face_attribute): Increment it for changes
3663 of the `menu' face.
3664 (realize_basic_faces): Reflect changes in the `menu' faces
3665 in menu bars.
3666
82e274d1
GM
3667 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
3668 dy obtained from the iterator's y-position after moving from
3669 scroll_margin_pos to PT; see comment there.
52283633 3670
0dbf9fd2
GM
3671 * xdisp.c (safe_eval_handler): Call add_to_log.
3672
906b3b14
GM
3673 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
3674 is not a symbol or string.
3675
d4358b37
GM
3676 * xdisp.c (echo_area_display): Don't perform a display update from
3677 inside redisplay. The update will happen anyway at the end of
3678 redisplay, and it can confuse redisplay (GC messages while
3679 redisplaying, for instance.)
3680
70c825df
SM
36812000-10-30 Stefan Monnier <monnier@cs.yale.edu>
3682
cf9b4b0b
SM
3683 * xrdb.c (x_load_resources): Use the class name in the defaults.
3684
70c825df
SM
3685 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
3686 (regex_compile): Catch bogus \(\1\).
3687
a1d34b1e
GM
36882000-10-30 Gerd Moellmann <gerd@gnu.org>
3689
cae71efe
GM
3690 * xterm.c (x_alloc_nearest_color): Fix last change to compare
3691 RGB values.
52283633 3692
35efe0a1
GM
3693 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
3694 we have a color cache, check that the cached color equals the
3695 allocated color. If not, clear the color cache.
3696
1d3baf74
GM
3697 * window.c (displayed_window_lines): Change buffers if necessary.
3698 Fix computation of displayed lines.
3699
a1d34b1e
GM
3700 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
3701 update_menu_bindings to DEFVAR_BOOL.
3702
70737ea9
KH
37032000-10-30 Kenichi Handa <handa@etl.go.jp>
3704
70c825df 3705 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 3706
fa0cb51d
KH
3707 * puresize.h (BASE_PURESIZE): Increase to 680000.
3708
70737ea9
KH
3709 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
3710
0e4c08e8
JR
37112000-10-29 Jason Rumney <jasonr@gnu.org>
3712
3713 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
3714
3715 * w32term.c (w32_bdf_per_char_metric): Negate descent.
3716 (w32_cache_char_metrics): Handle possibility that 'x' does not
3717 exist in a BDF font.
3718 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
3719
3720 * w32bdf.h (bdffont): Add nchars.
3721
3722 * w32bdf.c (set_bdf_font_info): Set it.
3723 (w32_BDF_TextOut): Swap byte order of double byte characters.
3724 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
3725
45b84006
EZ
37262000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
3727
3728 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
3729 don't override the colors in frame's param_alist, unless they are
3730 unspecified.
3731
3732 * term.c (reassert_line_highlight): If inverse_video is non-zero,
3733 reverse the effect of the highlight flag.
3734
caf9deee
KR
37352000-10-27 Ken Raeburn <raeburn@gnu.org>
3736
3737 * window.h (Fwindow_live_p): Declare.
3738
ae0b9b46
KR
3739 * undo.c (record_delete): Check that last_undo_buffer is really a
3740 buffer before applying XBUFFER to it.
3741
3742 * keymap.c (where_is_internal): Pass lisp object, not integer, to
3743 Faref.
3744
02067692
SM
37452000-10-27 Stefan Monnier <monnier@cs.yale.edu>
3746
3747 * lisp.h (KEYMAPP): New macro.
3748 (get_keymap): Remove.
3749 (get_keymap_1): Rename get_keymap.
3750
3751 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
3752
3753 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
3754
3755 * xmenu.c (single_submenu): Use KEYMAPP.
3756 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
3757 Use KEYMAPP rather than Fkeymapp.
3758
3759 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
3760
3761 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
3762 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
3763 Use KEYMAPP rather than Fkeymapp.
3764 (single_submenu): Use KEYMAPP.
3765 (w32_menu_show, w32_dialog_show): Use TRUE.
3766
3767 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
3768
3769 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
3770 (Fkeymapp): Use KEYMAPP.
3771 (get_keymap): Rename from get_keymap_1. Remove old def.
3772 Return t when autoload=0 and error=0 and the keymap needs autoloading.
3773 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
3774 (Fminor_mode_key_binding): Don't raise an error if the binding
3775 is not a keymap.
3776 (Fuse_global_map, Fuse_local_map): Allow autoloading.
3777 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
3778
3779 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
3780 Allow Vspecial_event_map to be autoloaded.
3781 (menu_bar_items): Fetch the keymap rather than using keymapp.
3782 (menu_bar_one_keymap): No need to follow func-indirect any more.
3783 (parse_menu_item): get_keymap_1 -> get_keymap.
3784 (tool_bar_items): Fetch the keymap rather than using keymapp.
3785 (read_key_sequence): Use KEYMAPP.
3786
3787 * intervals.c (get_local_map): Use get_keymap rather than following
3788 function-indirections explicitly.
3789
3790 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
3791
f9d80af3
JR
37922000-10-27 Jason Rumney <jasonr@gnu.org>
3793
3794 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
3795 point, as Windows has oversized fonts.
3796
3797 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
3798
a3ba27da
GM
37992000-10-27 Gerd Moellmann <gerd@gnu.org>
3800
3801 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
3802 (freehook, reallochook): Handle null pointer arguments.
3803 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
3804
aa3b80cc
SM
38052000-10-27 Stefan Monnier <monnier@cs.yale.edu>
3806
3807 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
3808 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
3809 Giving in to popular pressure to shut up the compiler with casts.
3810
e24e84cc
GM
38112000-10-27 Gerd Moellmann <gerd@gnu.org>
3812
3813 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
3814 signed value, and use a default value computed from the font's
3815 maximum descent.
3816
05ea7ef2
MB
38172000-10-27 Miles Bader <miles@lsi.nec.co.jp>
3818
3819 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
3820 that specify a negative underline position can still use underlines.
3821
3822 * window.c (Fpos_visible_in_window_p): Make POS default to
3823 WINDOW's point, not the current buffer's point.
3824
0b95284b
DL
38252000-10-26 Dave Love <fx@gnu.org>
3826
3827 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
3828 when it's necessary.
3829
6c5b90af
GM
38302000-10-26 Gerd Moellmann <gerd@gnu.org>
3831
8b6d9dc9
GM
3832 * window.c (size_window): Compute size difference from sum of old
3833 child window sizes instead of from parent's size.
3834
6bc92b2e
GM
3835 * xdisp.c (pos_visible_p): Change current buffer if necessary.
3836 Handle obscured lines at the top of the window.
3837
3838 * frame.c (Fdelete_frame): Doc fix. Move running the hook
3839 down after the last error condition check.
3840
6c5b90af
GM
3841 * frame.c (Fdelete_frame): Run delete-frame-hook.
3842
42f92d4d
KH
38432000-10-26 Kenichi Handa <handa@etl.go.jp>
3844
3845 * coding.c (decode_coding): Fix previous change (check also
3846 CODING_MODE_LAST_BLOCK).
3847
d97151cb
SM
38482000-10-25 Stefan Monnier <monnier@cs.yale.edu>
3849
e7efc503
SM
3850 * regex.c: More `unsigned char' -> `re_char' changes.
3851 Also change several `int' into `re_wchar_t'.
3852 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
3853 (PUSH_FAILURE_POINTER): Don't cast any more.
3854 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
3855 We want GCC to complain, since this piece of code makes
3856 re_match non-reentrant, which *should* be fixed.
3857 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
3858 (EXTEND_BUFFER): Use RETALLOC.
3859 (SET_LIST_BIT): Don't cast.
3860 (re_wchar_t): New type.
3861 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
3862 that those two functions will always properly return.
3863 (IMMEDIATE_QUIT_CHECK): Cast to void.
3864 (analyse_first): Use recursion rather than an explicit stack.
3865 (re_compile_fastmap): Can't fail anymore.
3866 (re_search_2): Don't check re_compile_fastmap for failure.
3867 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
3868 Now also sets the new value (passed in a new argument).
3869 (re_match_2_internal): Use it.
3870 Also, use a new var `reg' of type size_t when looping through regs
3871 rather than reuse the inappropriate `mcnt'.
3872
d97151cb
SM
3873 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
3874 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
3875 (where_is_internal): Renamed from Fwhere_is_internal.
3876 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
3877 (Fwhere_is_internal): New function wrapping where_is_internal.
3878 (where_is_internal_1): Handle the case where we're filling the cache.
3879 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
3880
d5789b65
MB
38812000-10-25 Miles Bader <miles@gnu.org>
3882
3883 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
3884
4ecda532
GM
38852000-10-25 Gerd Moellmann <gerd@gnu.org>
3886
3887 * window.c (pos_fully_visible_p): Removed.
3888 (Fpos_visible_in_window_p): Use pos_visible_p to determine
3889 if position is visible and/or fully visible.
3890
3891 * lisp.h (pos_visible_p): Add prototype.
3892
3893 * xdisp.c (pos_visible_p): New function.
3894
68c3a137
KH
38952000-10-25 Kenichi Handa <handa@etl.go.jp>
3896
3897 * process.c (send_process): If OBJECT is t, it means that the data
3898 is from C string, but we should encode it. Before calling
3899 setup_raw_text_coding_system, be sure to flush out data by the
3900 previous coding system.
3901
7ae1c032
MB
39022000-10-25 Miles Bader <miles@lsi.nec.co.jp>
3903
ff4dcd4b
MB
3904 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
3905 assignment of startpos to prev when startpos == pos.
3906
7ae1c032
MB
3907 * editfns.c (find_field): Set the field stickiness correctly from
3908 overlay fields. Use renamed `text_property_stickiness'.
3909 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 3910 Only check text properties, not overlays.
7ae1c032
MB
3911 * textprop.c (get_char_property_and_overlay): New function.
3912 (Fget_char_property): Use it.
3913 * intervals.h (get_char_property_and_overlay): Add declaration.
3914
49801145
SM
39152000-10-25 Stefan Monnier <monnier@cs.yale.edu>
3916
3917 * keymap.c: Use AREF, ASET and ASIZE macros.
3918 (Fmake_sparse_keymap): Docstring fix.
3919 (synkey): Remove.
3920 (shadow_lookup): Move up.
3921 Handle the case where lookup-key returns an integer.
3922 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
3923 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
3924 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
3925 Simplify/rewrite the keymap-finding code.
3926 Add check for command shadowing, using shadow_lookup.
3927
39e776cd
SM
39282000-10-24 Stefan Monnier <monnier@cs.yale.edu>
3929
3930 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
3931 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
3932 a symbol.
3933
2488aba5
AI
39342000-10-24 Andrew Innes <andrewi@gnu.org>
3935
3936 * dired.c (directory_files_internal_unwind): New function.
3937 (directory_files_internal): Use it to ensure closedir is called
3938 even if expand-file-name or file-attributes throw, eg. because of
3939 a user interrupt. Also enable immediate_quit while calling
3940 re_search, so that matching can be interrupted as well.
3941
b94fdf61
AI
39422000-10-24 Andrew Innes <andrewi@gnu.org>
3943
3944 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
3945 NT-Emacs only.
3946 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
3947 so that re_search functions only quit when callers expect them to.
3948
39492000-10-24 Kenichi Handa <handa@etl.go.jp>
3950
3951 * regex.c (regex_compile): Change the way of handling a range from
3952 a char less than 256 to a char not less than 256.
3953
1946f901
GM
39542000-10-24 Gerd Moellmann <gerd@gnu.org>
3955
7ae2f10f
GM
3956 * window.c (size_window): Prevent setting window's width or
3957 height to a negative value (esp. with XSETFASTINT).
3958
5dcab13e
GM
3959 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
3960 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
3961 (protect_malloc_state) [GC_MALLOC_CHECK &&
3962 GC_PROTECT_MALLOC_STATE]: New function.
3963 (PROTECT_MALLOC_STATE): New macro.
3964 (__malloc_initialize, morecore, _malloc_internal)
3965 (_free_internal) _realloc_internal): Use it to make _heapinfo
3966 read-only outside of gmalloc.
3967
63e1b552
GM
3968 * keymap.c: Update copyright.
3969
1946f901
GM
3970 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
3971 a symbol.
3972
4fa09beb
GM
39732000-10-24 Colin Walters <walters@cis.ohio-state.edu>
3974
3975 * filelock.c (unlock_all_files): Use unlock_file to expand each
3976 buffer's file_truename before trying remove its lock file.
3977
23afac01
EZ
39782000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
3979
3980 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
3981 or CRLF, decode EOLs.
3982
04448b95
KH
39832000-10-24 Kenichi Handa <handa@etl.go.jp>
3984
3985 * window.c (Fdisplay_buffer): Fix doc.
3986
3090a5a5
JR
39872000-10-23 Jason Rumney <jasonr@gnu.org>
3988
3989 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
3990 ASCII font of default fontset on Windows.
3991
3992 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
3993 xterm.c comment below).
3994
3995 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
3996
a83fee2c
GM
39972000-10-23 Gerd Moellmann <gerd@gnu.org>
3998
3999 * xterm.c (x_connection_closed): Reset handling_signal.
4000
52283633 4001 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
a83fee2c 4002
6ffdb539
MB
40032000-10-23 Miles Bader <miles@gnu.org>
4004
4005 * window.c (window_scroll_pixel_based, window_scroll_line_based):
4006 Pass nil for FULLY argument to Fpos_visible_in_window_p to
4007 maintain old behavior.
4008 * minibuf.c (Fminibuffer_complete): Likewise.
4009
7f1c969b
MB
40102000-10-23 Miles Bader <miles@lsi.nec.co.jp>
4011
4012 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
4013 that when a font can't be exactly centered, it errs up rather than
4014 down.
4015
23afac01 40162000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd 4017
52283633 4018 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
8ec118cd 4019
1a578e9b
AC
40202000-10-23 Andrew Choi <akochoi@i-cable.com>
4021
4022 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
4023
4024 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 4025 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
4026
4027 * emacs.c (main) [macintosh]: Call syms_of_textprop,
4028 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
4029 syms_of_search, x_term_init, and init_keyboard before calling
4030 init_window_once. Also, call syms_of_xmenu.
4031
4032 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
4033 default fontset to Monaco.
4034
4035 * frame.c [macintosh]: Include macterm.h. Remove declarations of
4036 NewMacWindow and DisposeMacWindow.
4037 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
4038 instead of calling NewMacWindow and setting fields of
4039 f->output_data.mac directly. Call init_frame_faces.
4040 (Fdelete_frame) [macintosh]: Remove unused code.
4041 (Fmodify_frame_parameters) [macintosh]: Call
4042 x_set_frame_parameters instead of mac_set_frame_parameters.
4043
4044 * frame.h [macintosh]: Define menu_bar_lines field in struct
4045 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
4046
4047 * keyboard.c [macintosh]: Include macterm.h.
4048 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
4049 and menu_bar_activate_event type events as for X and NT.
4050 (make_lispy_event) [macintosh]: Construct lisp events of type
4051 MENU_BAR_EVENT as for X and NT.
4052
4053 * sysdep.c [macintosh]: Remove declaration for sys_signal.
4054 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
4055 (sys_subshell) [macintosh]: Remove definition entirely.
4056 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
4057 Vwindow_system_version here. Remove initialization of
4058 Vx_bitmap_file_path.
4059 (read_input_waiting): Correct the number of parameters passed to
4060 read_socket_hook.
4061 Move all Macintosh functions to mac/mac.c.
4062
4063 * term.c [macintosh]: Include macterm.h.
4064
4065 * window.c [macintosh]: Include macterm.h.
4066
4067 * xdisp.c [macintosh]: Include macterm.h. Declare
4068 set_frame_menubar and pending_menu_activation.
4069 (echo_area_display) [macintosh]: Do not return if terminal frame
4070 is the selected frame.
4071 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
4072 Allow only the selected frame to set menu bar.
4073 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
4074 calling FRAME_EXTERNAL_MENU_BAR (f).
4075 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
4076
4077 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
4078 and check_x. Declare XCreateGC. Define x_create_gc and
4079 x_free_gc. Initialize font_sort_order.
4080 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
4081 but call x_list_fonts instead of w32_list_fonts.
4082 (Finternal_face_x_get_resource) [macintosh]: Do not call
4083 display_x_get_resource.
4084 (prepare_face_for_display) [macintosh]: Set xgcv.font.
4085 (realize_x_face) [macintosh]: Load the font if it is specified in
4086 ATTRS.
52283633 4087 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
1a578e9b 4088
1ffbabe3
SM
40892000-10-22 Stefan Monnier <monnier@cs.yale.edu>
4090
4091 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
4092 is nil: since we go to the end of submap anyway, we'd end up
4093 setting nil to nil.
4094 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
4095 doesn't obey autoload.
4096
bed43f1d
EZ
40972000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
4098
1ffbabe3 4099 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 4100
ea4233a7
JR
41012000-10-21 Jason Rumney <jasonr@gnu.org>
4102
4103 * w32term.c (w32_cache_char_metrics): Double check that font is
4104 really fixed pitch before trusting tmPitchAndFamily.
4105
f3d3c491
AI
41062000-10-21 Andrew Innes <andrewi@gnu.org>
4107
4108 * w32gui.h (w32_char_font_type): Move enum from w32term.c
4109
4110 * w32term.h: Extern decl for w32_cache_char_metrics.
4111
4112 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
4113
4114 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
4115 (w32_unload_font): Free per_char array if present.
4116
4117 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
4118 cached information in emulated XFontStruct to handle common cases
4119 quickly. Do not allocate XCharStruct for return.
4120 (w32_native_per_char_metric): New function.
4121 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
4122 allocating one.
4123 (x_produce_glyphs): Don't get an HDC. Change calls to
4124 w32_per_char_metric to match arg change above. Remove calls to
4125 free results.
4126 (w32_get_glyph_overhangs): Ditto.
4127 (w32_cache_char_metrics): New function.
4128
4129 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
4130 ($(BLD)/casefiddle.$(O)): Remove compile command.
4131 ($(BLD)/gmalloc.$(O)): Remove compile command.
52283633
SM
4132 ($(BLD)/dispnew.obj):
4133 ($(BLD)/keyboard.obj):
4134 ($(BLD)/w32inevt.obj):
4135 ($(BLD)/w32bdf.obj):
4136 ($(BLD)/alloc.obj):
4137 ($(BLD)/buffer.obj):
4138 ($(BLD)/editfns.obj):
4139 ($(BLD)/emacs.obj):
4140 ($(BLD)/fileio.obj):
4141 ($(BLD)/fns.obj):
4142 ($(BLD)/indent.obj):
4143 ($(BLD)/insdel.obj):
4144 ($(BLD)/intervals.obj):
4145 ($(BLD)/minibuf.obj):
4146 ($(BLD)/print.obj):
4147 ($(BLD)/scroll.obj):
4148 ($(BLD)/sysdep.obj):
4149 ($(BLD)/textprop.obj):
4150 ($(BLD)/widget.obj):
f3d3c491
AI
4151 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
4152 ($(BLD)/term.obj): Add dependency on dispextern.h.
4153
52283633
SM
4154 * makefile.nt ($(BLD)\dispnew.obj):
4155 ($(BLD)\keyboard.obj):
4156 ($(BLD)\w32inevt.obj):
4157 ($(BLD)\w32bdf.obj):
4158 ($(BLD)\alloc.obj):
4159 ($(BLD)\buffer.obj):
4160 ($(BLD)\editfns.obj):
4161 ($(BLD)\emacs.obj):
4162 ($(BLD)\fileio.obj):
4163 ($(BLD)\fns.obj):
4164 ($(BLD)\indent.obj):
4165 ($(BLD)\insdel.obj):
4166 ($(BLD)\intervals.obj):
4167 ($(BLD)\minibuf.obj):
4168 ($(BLD)\print.obj):
4169 ($(BLD)\scroll.obj):
4170 ($(BLD)\sysdep.obj):
4171 ($(BLD)\textprop.obj):
4172 ($(BLD)\widget.obj):
f3d3c491
AI
4173 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
4174 ($(BLD)\term.obj): Add dependency on dispextern.h
4175
18ad4821
EZ
41762000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
4177
4178 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
4179 with an additional argument of Qt.
4180
de54681a
MB
41812000-10-21 Miles Bader <miles@gnu.org>
4182
4183 * window.c (pos_fully_visible_in_window_p): New function.
4184 (Fpos_visible_in_window_p): Add FULLY argument.
4185 Use pos_fully_visible_in_window_p.
4186 (window_scroll_pixel_based, window_scroll_line_based): Update
4187 calls to Fpos_visible_in_window_p.
4188 * lisp.h (Fpos_visible_in_window_p): Update prototype
4189
13c844fb
GM
41902000-10-20 Gerd Moellmann <gerd@gnu.org>
4191
4192 * alloc.c (toplevel): Conditionalize compilation of mem_*
4193 functions differently.
52283633 4194
d9506268
JR
41952000-10-20 Jason Rumney <jasonr@gnu.org>
4196
4197 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
4198 mem_init where it used to be. mem_z etc not defined otherwise.
4199
8094989b
GM
42002000-10-20 Gerd Moellmann <gerd@gnu.org>
4201
4202 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
4203 GC_MALLOC_CHECK.
4204 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
4205 structure definition and related variabled to the top of the file.
4206 Include this code when GC_MALLOC_CHECK is defined.
4207 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
4208 register/unregister allocated region.
4209 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
4210 which isn't allocated.
4211 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
4212 something which is already in use.
4213 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
4214 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
4215 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
4216 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
4217
4218 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
4219 _malloc_internal instead of malloc.
4220 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
4221 of free.
4222
ea456eb4
AI
42232000-10-20 Andrew Innes <andrewi@gnu.org>
4224
4225 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
4226 Windows.
4227 (my_strftime) <macro>: Don't use macro arg list when redefining as
4228 _strftime_copytm.
4229 (my_strftime) <function>: Supply 0 as ut argument.
4230
e64c3a75
JR
42312000-10-19 Jason Rumney <jasonr@altavista.net>
4232
4233 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
4234 including dispextern.h, as it stops faces from working.
4235
4236 * w32fns.c (Fx_create_frame): Don't bother calling
4237 face-set-after-frame-default since the caller does it for us
4238 anyway. Clean up calls to x_get_arg to be consistent with X.
4239
4240 * w32term.c (x_produce_glyphs): Handle
4241 unibyte_display_via_language_environment correctly.
4242 (w32_draw_box_rect): Fix the calculation of width and height.
4243
4244 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
4245 as it has stopped working.
4246 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
4247 menu-bar.
4248
17401c97
GM
42492000-10-19 Gerd Moellmann <gerd@gnu.org>
4250
4251 * eval.c (skip_debugger): Prevent a compiler warning.
4252 (Fcondition_case): Likewise.
4253 (Fbacktrace_frame): Use a null interactive spec.
4254
773272d8
KH
42552000-10-19 Kenichi Handa <handa@etl.go.jp>
4256
4257 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
4258
a42943e9
GM
42592000-10-18 Gerd Moellmann <gerd@gnu.org>
4260
e50517d9
GM
4261 * strftime.c: Sync with glibc, file version 1.78.
4262 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
4263 should no longer be used according to ISO 8601.
4264
9035a35a
GM
4265 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
4266 no map for meta_prefix_char, don't try to use it as a keymap.
4267 Instead, if T_OK is non-zero, look up a default binding, if any,
4268 otherwise, if T_OK is zero, return nil.
4269
a42943e9
GM
4270 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
4271 (x_to_xcolors, png_load): Use x_query_color.
4272
52283633
SM
4273 * xterm.c (x_color_cells, x_query_colors, x_query_color):
4274 New functions.
a42943e9
GM
4275 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
4276 which can be slow.
4277 (x_copy_color, x_alloc_lighter_color): Likewise.
4278
4279 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
4280 (x_query_color, x_query_colors): Add prototype.
4281
4282 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
4283 check_string_bytes only if not noninteractive, increase count to 50.
4284
00de2987
MB
42852000-10-18 Miles Bader <miles@lsi.nec.co.jp>
4286
4287 * insdel.c (adjust_markers_for_delete): Handle before-insertion
4288 markers correctly.
4289
54918e2b
GM
42902000-10-17 Gerd Moellmann <gerd@gnu.org>
4291
1f0b3fd2
GM
4292 * alloc.c (pure_bytes_used): Renamed from pureptr.
4293 (ALIGN): New macro.
4294 (pure_alloc): New function.
4295 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
4296 Use it.
4297 (Fpurecopy): Use PURE_POINTER_P.
4298
68c5d1db
GM
4299 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
4300 PT has moved backward.
52283633 4301
9a038881
GM
4302 * xdisp.c (cursor_row_p): Take continued lines into account.
4303
361b097f
GM
4304 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
4305 string's size_byte.
4306 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
4307 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
4308 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
4309 string allocated.
4310
54918e2b
GM
4311 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
4312 of selective display off while searching for the next line start.
4313
03ed0806
KH
43142000-10-17 Kenichi Handa <handa@etl.go.jp>
4315
4316 * Makefile.in (term.o): Depend on dispextern.h.
4317
7e05cdaf
SM
43182000-10-16 Stefan Monnier <monnier@cs.yale.edu>
4319
4320 * keymap.c (keymap_memberp): Ensure that nil is not a member.
4321
a6801fd1
GM
43222000-10-16 Gerd Moellmann <gerd@gnu.org>
4323
483de32b
GM
4324 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
4325 the iterator at the beginning, so that they can be set later on,
4326 for instance in reseat_at_next_visible_line_start, without being
4327 overwritten.
4328
a6801fd1
GM
4329 * xfns.c (pbm_format): Add :foreground and :background keywords.
4330 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
52283633 4331 (xbm_load): Recognize foreground and background color specifications.
a6801fd1 4332
dbf1fcc1
EZ
43332000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
4334
4335 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
4336
52283633 4337 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
dbf1fcc1
EZ
4338
4339 * msdos.c (IT_set_face): Compare highlighted face with the default
4340 face, and invert colors if these faces' colors are identical.
4341 (Fmsdos_remember_default_colors): Don't swap foreground and
4342 background colors in initial_colors[].
4343 (IT_set_frame_parameters): Don't swap frame's foreground and
4344 background pixels. If ALIST includes "(reverse . t)", swap
4345 foreground-color and background-color properties in frame's
4346 param_alist. If the original frame's param_alist doesn't specify
4347 the colors, store unspecified-fg and unspecified-bg, reversed if
4348 required.
4349
4350 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
4351 the colors are unspecified and reversed, reverse fore- and back-
4352 ground in the returned value.
4353 (Fframe_parameter): Ditto.
4354
b41fe2c3 43552000-10-16 Gerd Moellmann <gerd@gnu.org>
52283633 4356
3a6b59d9
GM
4357 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
4358 get_last_unchanged_at_beg_row.
4359 (find_first_unchanged_at_end_row): Renamed from
4360 get_first_unchanged_at_end_row.
4361 (find_first_unchanged_at_end_row): Convert assertions to
4362 unconditional tests which abort. When looking for a row in
4363 unchanged text, don't go further back than first_text_row.
4364
b41fe2c3
GM
4365 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
4366 Don't add in the last line's height when deciding if the new
4367 position is below the scroll margin.
9d1af64f 4368
b41fe2c3 43692000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
4370
4371 * editfns.c (Fconstrain_to_field): Check carefully for field
4372 boundaries if either OLD_POS or NEW_POS has a non-nil field
4373 property, even if they're the same.
4374
c412cb7b
KH
43752000-10-16 Kenichi Handa <handa@etl.go.jp>
4376
4377 * xterm.c (x_draw_box_rect): Fix the calculation of width and
4378 height for XFillRectangle.
4379
5586f3eb
SM
43802000-10-15 Stefan Monnier <monnier@cs.yale.edu>
4381
4382 * syntax.c (Fstring_to_syntax): New function extracted from
4383 Fmodify_syntax_entry.
4384 (Fmodify_syntax_entry): Use it and document the ! and | fences.
4385 (skip_chars, Fforward_comment): Remove unused variables.
4386 (syms_of_syntax): Add defsubr for string-to-syntax.
4387 (describe_syntax): Add code for comment and string fences.
4388
db785038
SM
43892000-10-14 Stefan Monnier <monnier@cs.yale.edu>
4390
4391 * keymap.c (access_keymap): Add AUTOLOAD parameter.
4392 Do the meta->esc mapping. Call get_keyelt before returning.
4393 Start scanning from the second element (the first is always `keymap')
4394 to make it easier to detect when we reach a parent map.
4395 Handle the case of inheriting from a symbol whose function is a map.
4396 (Fkeymap_parent): Also handle the `inherit from symbol' case.
4397 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
4398 (get_keyelt, Flookup_key): Update call to access_keymap.
4399 Remove the meta->esc mappings.
4400 (define_as_prefix): Delete old disabled code.
4401 (menu_item_p): New function.
4402 (where_is_internal_1): Skip over the few remaining menu items.
4403 * lisp.h (access_keymap): Update prototype.
4404 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
4405 Update call to access_keymap.
4406 (follow_key, read_key_sequence): Update calls to access_keymap.
4407 Remove the meta->esc mappings.
4408
cafafe0b
GM
44092000-10-13 Gerd Moellmann <gerd@gnu.org>
4410
a2e2a7f6
GM
4411 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
4412 with additional argument.
4413
cafafe0b
GM
4414 * xdisp.c (cursor_row_p): New function.
4415 (try_cursor_movement, display_line): Use it.
52283633 4416
cafafe0b
GM
4417 * xdisp.c (append_space): Also save/restore iterator's current
4418 character and its length.
4419
4420 * xdisp.c (init_from_display_pos): Add an assertion.
4421 (handle_stop): Don't set iterator's add_overlay_start.
4422 (handle_invisible_prop): Likewise.
4423 (load_overlay_strings): If text under an overlay is invisible,
4424 take both before- and after-strings into account when the iterator
4425 is positioned either at the start or at the end of the overlay.
4426 (forward_to_next_line_start): Rewritten.
4427 (reseat_at_next_visible_line_start): Rewritten.
4428 (set_iterator_to_next): Add parameter RESEAT_P.
4429
4430 * dispextern.h (struct it): Remove member add_overlay_start.
4431 (set_iterator_to_next): Change prototype.
4432
c744452b
KH
44332000-10-13 Kenichi Handa <handa@etl.go.jp>
4434
4435 * coding.c (code_convert_region): Be sure to initialize
4436 coding->category_idx.
e4a3f4e1
KH
4437 (decode_coding_string): Set coding->src_multibyte and
4438 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
4439 (encode_coding_string): Set coding->src_multibyte and
4440 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 4441
321fd26f
SM
44422000-10-12 Stefan Monnier <monnier@cs.yale.edu>
4443
4444 * xfns.c (Fx_create_frame): Don't bother calling
4445 face-set-after-frame-default since the caller does it for us anyway.
4446
76832439
EZ
44472000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
4448
4449 * window.c (coordinates_in_window): Fix detection of vertical line
4450 on character terminals.
4451
2483cf58
GM
44522000-10-12 Gerd Moellmann <gerd@gnu.org>
4453
4454 * editfns.c (save_excursion_save): Additionally record the
4455 selected window.
4456 (save_excursion_restore): If buffer was visible in a window, and a
4457 different window was selected, and the old selected window is
4458 still live, restore point in that window.
4459
eb991b25
KH
44602000-10-12 Kenichi Handa <handa@etl.go.jp>
4461
8a0eba09
KH
4462 * xterm.c (x_produce_glyphs): Handle
4463 unibyte_display_via_language_environment correctly.
4464
20401fcc
KH
4465 * regex.c (regex_compile): Change the way of handling a range from
4466 unibyte char to multibyte char.
4467
4468 * syntax.c (skip_chars): Change the way of handling a range from
4469 unibyte char to multibyte char.
4470
eb991b25
KH
4471 * process.c (read_process_output): Cancel previous change.
4472
365dd325
EZ
44732000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
4474
c1b096cb
EZ
4475 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
4476
365dd325
EZ
4477 * charset.c (Ffind_charset_string): Doc fix.
4478 (Ffind_charset_region): Doc fix.
4479
eb483c2b
KH
44802000-10-11 Kenichi Handa <handa@mule.m17n.org>
4481
4482 * process.c (read_process_output): Fix previous change. Adjust
4483 multibyteness of text to insert in a buffer by
52283633 4484 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
eb483c2b 4485
b40bfb99
AS
44862000-10-10 Andreas Schwab <schwab@suse.de>
4487
4488 * alloc.c (mark_object): Remove all workarounds installed on
4489 1993-08-08.
4490
caff31d4
KH
44912000-10-10 Kenichi Handa <handa@etl.go.jp>
4492
52283633 4493 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
caff31d4
KH
4494 (base64_encode_1): Make it work for a text of multibyte form.
4495 (Fbase64_decode_region): Allocate sufficient memory for multibyte
4496 case. Don't call str_to_multibyte because base64_decode_1
4497 produces correct multibyte form for eight-bit codes.
52283633 4498 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
caff31d4
KH
4499 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
4500 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
4501 codes.
4502
4503 * charset.h (CHAR_STRING): Optimized for single byte characters.
4504
cba026ef
AS
45052000-10-09 Andreas Schwab <schwab@suse.de>
4506
4507 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
4508 -1 after socket is closed, to fall through to error processing.
4509
1e21fe48
EZ
45102000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
4511
4512 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 4513 variables. If ALIST includes foreground-color or
1e21fe48
EZ
4514 background-color, change also the colors of the default face for
4515 this frame.
4516
a640322e
EZ
45172000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
4518
4519 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
4520 them extern (they are defined on xfaces.c).
4521 (syms_of_msdos): Don't intern and don't staticpro
4522 Qbackground_color and Qforeground_color.
4523
a115794c
EZ
45242000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
4525
4526 * frame.c (Fframe_parameter): For non-windowed frames, if
4527 f->param_alist says foreground or background color is unspecified,
4528 call tty_color_name to return the color name computed from the
4529 frame's current colors.
4530
f5533b63
DL
45312000-10-06 Dave Love <fx@gnu.org>
4532
4533 * terminfo.c (ospeed): Don't declare.
4534
4535 * sysdep.c: Don't include string.h.
4536 (h_errno): Declare conditional also on TRY_AGAIN.
4537
4538 * charset.c (Ffind_charset_string): Doc fix.
4539
52283633 4540 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
f5533b63
DL
4541 (Fbase64_decode_region, Fbase64_decode_string): More explicit
4542 error messages.
4543
2b06561a
DL
45442000-10-05 Dave Love <fx@gnu.org>
4545
4546 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
4547 position like menu-bar.
4548
ca839c85
GM
45492000-10-05 Gerd Moellmann <gerd@gnu.org>
4550
4551 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
4552
4553 * xdisp.c (handle_single_display_prop): Use safe_call1.
4554 (safe_call): Renamed from call_function.
4555 (safe_call1): New function.
4556 (handle_fontified_prop): Use safe_call1 instead of call1.
4557 (safe_eval): Renamed from eval_form.
4558 (safe_eval_handler): Renamed from eval_handler.
4559 (handle_single_display_prop, display_mode_element): Use safe_eval
4560 instead of eval_form.
4561
4562 * xfaces.c (merge_face_heights): Use safe_call instead of
4563 call_function.
4564
4565 * keyboard.c (show_help_echo): Use safe_call instead of
4566 call_function; use safe_eval instead of eval_form.
4567
4568 * lisp.h (safe_call): Renamed from call_function.
4569 (safe_eval): Renamed from eval_form.
4570 (safe_call1): Add prototype.
4571
a3489ece
MB
45722000-10-05 Miles Bader <miles@lsi.nec.co.jp>
4573
4574 * xfns.c (image_ascent): Rearrange ascent calculation for the
4575 has-a-font case.
4576
35810b6f
SM
45772000-10-04 Stefan Monnier <monnier@cs.yale.edu>
4578
4579 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
4580 (where_is_internal_1): Don't bother ignoring menu-items any more.
4581
3dc78168
GM
45822000-10-04 Gerd Moellmann <gerd@gnu.org>
4583
4584 * keyboard.c (update_menu_bindings): New variable.
4585 (parse_menu_item): Use AREF. If update_menu_bindings
4586 is 0, don't update menu bindings.
4587 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
4588
1efc2bb9
EZ
45892000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
4590
4591 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
4592 to `mark_object'.
4593
3f679f55
SM
45942000-10-02 Stefan Monnier <monnier@cs.yale.edu>
4595
4596 * syntax.c (forw_comment): Match nestedness of ender/starter.
4597 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
4598 (prev_char_comstart_first): Remove.
4599 (back_comment): Check two-char comment markers more carefully
4600 to better handle overlapping cases like *//* or /* */* */ ...
4601 Match nestedness of ender/starter.
4602
2021ab61
DL
46032000-10-02 Dave Love <fx@gnu.org>
4604
4605 * config.in (HAVE_GAI_STRERROR): Add undef.
4606
4607 * process.c (Fopen_network_stream): Use it.
4608
4609 * m/alpha.h (NO_REMAP): Don't define.
4610
64e6cc18
GM
46112000-10-02 Gerd Moellmann <gerd@gnu.org>
4612
4613 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
4614 return with a string converted to an integer or vice versa when
4615 Vmocklisp_arguments is t.
4616 (Fsignal): Likewise. The function can return for `quit'.
4617 (struct gcpro): Declare member `var' to point to a volatile
4618 Lisp_Object.
4619
4620 * eval.c (error): Prevent compiler warning.
4621
b1904cd9
SM
46222000-09-30 Stefan Monnier <monnier@cs.yale.edu>
4623
4624 * keymap.c (keymap_memberp): New function.
4625 (Fset_keymap_parent): Use it.
4626 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
4627 Use keymap_memberp to avoid creating cycles.
4628 (access_keymap): Use KEYMAPP.
4629
71c9ec51
GM
46302000-09-30 Gerd Moellmann <gerd@gnu.org>
4631
4632 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
4633 gai_strerror. Make sure xerrno is set if connect fails. Improve
4634 error recovery.
71c9ec51 4635
c70c6b58
JR
46362000-09-29 Jason Rumney <jasonr@gnu.org>
4637
4638 * w32term.c (w32_char_font_type, w32_encode_char)
4639 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
4640 (w32_bdf_per_char_metric): New function.
4641 (w32_per_char_metric): Use it.
4642 (x_draw_glyph_string_background): Always draw background for BDF
4643 glyphs.
4644
4645 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
4646 GDI object which is a scarce resource.
4647
4648 * w32bdf.c (search_file_line): Fix skipping of whitespace.
4649 (get_quoted_string): Fix limit on memchr search.
4650 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
4651 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
4652 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
4653 (get_cached_font_char, cache_char_offset): Use macro
4654 BDF_CODEPOINT_RANGE_COVER_P.
4655 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
4656 (clear_cached_bitmap_slots): New function.
4657 (GET_HEX_VALUE): G-Z, g-z are not hex.
4658 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
4659 (get_bitmap_with_cache): Use new cache implementation.
4660 (create_offscreen_bitmap): New function.
4661 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
4662
4663 * w32term.c (x_produce_glyphs): If the distance from the current
4664 position to the next tab stop is less than a canonical character
4665 width, use the tab stop after that.
4666 (x_draw_glyphs): Handle case START and END are out of bounds more
4667 carefully.
4668 (x_clear_mouse_face): Block/unblock input.
4669 (x_display_and_set_cursor): Don't show a hollow box cursor for
4670 buffers whose cursor_type is nil.
4671
fe01239f
GM
46722000-09-29 Gerd Moellmann <gerd@gnu.org>
4673
52283633 4674 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
fe01239f
GM
4675
4676 * dispextern.h (updating_frame): Declare extern.
4677
e7c52f1f
AS
46782000-09-29 Andreas Schwab <schwab@suse.de>
4679
4680 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
4681
de6e1f7c
GM
46822000-09-29 Gerd Moellmann <gerd@gnu.org>
4683
25126faa
GM
4684 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
4685 use its function definition.
4686 (tool_bar_items): Likewise.
4687
de6e1f7c 4688 * lisp.h (fatal): Declare NO_RETURN.
52283633 4689
454ee39b
KH
46902000-09-29 Kenichi Handa <handa@etl.go.jp>
4691
4692 * keymap.c: Remove the line "#undef NULL".
4693
96301c5f
GM
46942000-09-28 Gerd Moellmann <gerd@gnu.org>
4695
52283633 4696 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
96301c5f 4697
efffeeb4
DL
46982000-09-28 Dave Love <fx@gnu.org>
4699
ecb8b666
DL
4700 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
4701
dc3cd20f
DL
4702 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
4703
4704 * .gdbinit (xreload): Note its need on GNU/Linux.
4705
efffeeb4
DL
4706 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
4707 r_alloc, r_alloc_free.
4708
8610d903
KH
47092000-09-28 Kenichi Handa <handa@etl.go.jp>
4710
4711 * syntax.c (skip_chars): Handle negation correctly.
4712
8901d1ac
GM
47132000-09-27 Gerd Moellmann <gerd@gnu.org>
4714
6f22f1ad
GM
4715 * xfaces.c (realize_default_face): Call set_lface_from_font_name
4716 with non-zero FORCE_P argument.
4717
52283633 4718 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
8901d1ac
GM
4719 Add assertions.
4720
4721 * xdisp.c (window_box_height): Add an assertion.
4722
4723 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
4724 tool-bar than is available.
4725 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
4726
36f1966f
DL
47272000-09-27 Dave Love <fx@gnu.org>
4728
efffeeb4 4729 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 4730
31d929e5
GM
47312000-09-26 Gerd Moellmann <gerd@gnu.org>
4732
c98863bf
GM
4733 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
4734 instead of BITS_PER_INT.
4735 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
4736 EMACS_UINT, respectively.
4737 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
4738
4739 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
4740
4741 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
4742
77072ab1
GM
4743 * window.c (freeze_window_starts): Construct last argument for
4744 foreach_window differently.
4745
4746 * xfns.c (x_decode_color): Don't return a Lisp_Object.
4747
4748 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
4749 EMACS_UINT instead of `int' and `unsigned int'.
4750 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
4751
4752 * frame.h (struct frame): Make the `nothing' member of union
4753 output_data an EMACS_INT.
4754
52283633 4755 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
31d929e5
GM
4756 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
4757 size in the sdata structure.
4758 (SDATA_NBYTES, SDATA_DATA): New macros.
4759 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
4760 differently for the different layout of the sdata structure.
4761 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
4762 in sdata.
4763 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
4764 Check that size recorded in the string size and size recorded in
4765 the sdata structure agree.
4766
3e60b029
DL
47672000-09-25 Dave Love <fx@gnu.org>
4768
4769 * buffer.c: Include stdio.h.
4770
4771 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
52283633 4772
3e60b029
DL
4773 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
4774
4775 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
52283633 4776 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
3e60b029
DL
4777 (__malloc_extra_blocks): Declare as __malloc_size_t.
4778
8ff16b4e
GM
47792000-09-25 Gerd Moellmann <gerd@gnu.org>
4780
755a2ccd
GM
4781 * alloc.c (mark_image): Use GC_NILP instead of NILP.
4782
d8b4516f
GM
4783 * keyboard.c (show_help_echo): Set help_echo_showing_p.
4784 (read_char): If help-echo is showing, preserve the echo area
4785 when redisplaying.
4786
4787 * xdisp.c (help_echo_showing_p): New variable.
4788 (set_message): Reset it to 0.
4789 (init_xdisp): Initialize help_echo_showing_p.
4790
4791 * dispextern.h (help_echo_showing_p): Declare extern.
4792
4793 * config.in: Fix typo in __GNUC_MINOR__.
4794
4795 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
4796
b11af2dd
GM
4797 * s/freebsd.h (POSIX_SIGNALS): Define.
4798
8ff16b4e
GM
4799 * xterm.c (x_clear_mouse_face): Block/unblock input.
4800
844eb643
DL
48012000-09-24 Dave Love <fx@gnu.org>
4802
4803 * fns.c (base64_encode_1): Fix last change.
4804
b30ab1b3
GM
48052000-09-22 Gerd Moellmann <gerd@gnu.org>
4806
4807 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
4808
4809 * xdisp.c (try_window_reusing_current_matrix): More fixes
4810 for the case window has a header-line.
4811
c6cbe5f0
DL
48122000-09-22 Dave Love <fx@gnu.org>
4813
4c7c1f3f
DL
4814 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
4815 a doc string.
4816
4817 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
4818
c6cbe5f0
DL
4819 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
4820
550a625e
GM
48212000-09-21 Gerd Moellmann <gerd@gnu.org>
4822
4c7c1f3f 4823 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
4824 for GCC >= 2.5.
4825
52283633
SM
4826 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
4827 Declare NO_RETURN.
fca99116 4828
80d26f99
GM
4829 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
4830 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
4831 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
4832 warnings.
52283633 4833
80d26f99
GM
4834 * marker.c (byte_char_debug_check): Return void.
4835
623a0aae
GM
4836 * xfns.c (Fx_create_frame): Set default frame parameter value
4837 for tool-bar-lines to 1.
4838
4839 * dispnew.c (scrolling_window): Compare y-positions of rows
4840 equal at the start. Some simplification.
4841
4842 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
4843 reused rows' y-position in the case window has a header-line, and
4844 new window start is greater than old window start.
4845
42ac0ae5
GM
4846 * process.c (process_sent_to): New variable.
4847 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
4848 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
4849 Declare more parameters volatile.
4850
550a625e
GM
4851 * lread.c (Vrecursive_load_depth_limit): New variable.
4852 (Fload): Check recursive loads whose recursion depth exceeds
4853 Vrecursive_load_depth_limit.
4854 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
4855
8320414c
GM
48562000-09-20 Gerd Moellmann <gerd@gnu.org>
4857
f46c275e
GM
4858 * fileio.c (Fread_file_name): Doc fix.
4859
4860 * editfns.c (Fmessage_or_box): Doc fix.
4861
4862 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
4863
b7e11c5b 4864 * xfns.c (xbm_scan): Allow C-style comments.
52283633 4865
8320414c
GM
4866 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
4867 symbols are specified, add color translations to the cache.
52283633 4868 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
8320414c
GM
4869 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
4870 xpm_cache_color.
4871 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
4872 structures to xpm_init_color_cache.
4873
da1608d9
GM
48742000-09-19 Gerd Moellmann <gerd@gnu.org>
4875
52283633 4876 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
da1608d9 4877
6badfa25
AI
48782000-09-19 Andrew Innes <andrewi@gnu.org>
4879
4880 * makefile.nt (bootstrap-emacs): Don't change directory.
4881
3a5f42bb
KH
48822000-09-19 Kenichi Handa <handa@etl.go.jp>
4883
1b7649bd
KH
4884 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
4885
3a5f42bb
KH
4886 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
4887 If output buffer is too small, signal an appropriated error.
4888
9f83cf0b
DL
48892000-09-18 Dave Love <fx@gnu.org>
4890
52283633 4891 * keyboard.c (menu_bar_items, tool_bar_items)
9f83cf0b
DL
4892 (current_active_maps): Remove redundant get_local_map call.
4893
28c7826c
GM
48942000-09-18 Gerd Moellmann <gerd@gnu.org>
4895
5cefa566
GM
4896 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
4897 cursor for buffers whose cursor_type is nil.
52283633 4898
6fed3546
GM
4899 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
4900 a feature to implement that is already implemented.
4901 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
4902 warnings.
4903
4904 * xfns.c (x_clear_image_1): New function.
4905 (x_clear_image): Use it.
52283633 4906 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
6fed3546 4907
05b1f851
GM
4908 * dispnew.c (update_window): Move test for invisible lines
4909 at the top to update_window_line.
4910 (update_window_line): Handle invisible lines here.
4911
f4779de9
GM
4912 * xfns.c (clear_image_cache): Clear current matrices of all
4913 frames sharing an image cache. Block input while freeing
4914 images. Fix timestamp comparison.
4915 (x_clear_image): Also free the mask.
4916
28c7826c
GM
4917 * xfns.c (lookup_image): Block input while loading the image so
4918 that we won't get interrupted in a state where the image isn't yet
4919 set up completely.
4920 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
4921 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
4922 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
52283633 4923 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
28c7826c 4924
b7412313
GM
49252000-09-16 Gerd Moellmann <gerd@gnu.org>
4926
4927 * dispnew.c (update_window): Make sure to make desired rows
4928 current even if they are completely invisible at the top
4929 of a window.
4930
47e351a3
GM
49312000-09-15 Gerd Moellmann <gerd@gnu.org>
4932
7f8f1edc
GM
4933 * xfns.c (lookup_image): Build mask before applying an algorithm.
4934 Recognize algorithm `disabled'.
4935 (cross_disabled_images): New variable.
4936 (COLOR_INTENSITY): New macro.
4937 (x_detect_edges): Use COLOR_INTENSITY.
4938 (x_disable_image): New function.
4939 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
4940
4941 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
4942 disabled state, don't apply an image transformation algorithm if
4943 the user specified an image for the disabled state. Use
28c7826c 4944 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
4945 user hasn't specified an image.
4946
ebb8f116
GM
4947 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
4948 allocation functions with the XPM lib.
4949 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
4950 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
4951 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
4952 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
52283633 4953 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
ebb8f116
GM
4954 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
4955 functions, if possible, because these handle color allocation
4956 failure more gracefully.
4957 (Fimage_mask_p): New function.
4958
47e351a3
GM
4959 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
4960 (Qedge_detection, Qheuristic): New symbols.
4961 (syms_of_xfns): Initialize new symbols.
4962 (lookup_image): Handle `:mask X', `:algorithm emboss', and
4963 `algorithm (edge-detection ...)'.
4964 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
4965 (tiff_format, gif_format, gs_format): Add `:mask'.
4966 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
4967 (GIF_MASK, GS_MASK): New enumerators.
4968 (x_laplace_read_row, x_laplace_write_row): Functions removed.
4969 (emboss_matrix, laplace_matrix): New variables.
4970 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
4971 (x_edge_detection): New functions.
4972 (x_laplace): Rewritten in terms of x_detect_edges.
4973 (x_build_heuristic_mask): If image has a mask, free it.
4974
fe83b953
AI
49752000-09-14 Andrew Innes <andrewi@gnu.org>
4976
4977 * makefile.w32-in: Revert to Unix line endings.
4978
3021e816
AI
49792000-09-14 Andrew Innes <andrewi@gnu.org>
4980
4981 * makefile.w32-in: Standardize indentation somewhat.
4982 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
4983 cater for differences between shells.
4984
4985 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
4986
2a32b5ea
GM
49872000-09-14 Gerd Moellmann <gerd@gnu.org>
4988
4989 * xterm.c (x_produce_glyphs): If the distance from the current
4990 position to the next tab stop is less than a canonical character
4991 width, use the tab stop after that.
4992
b4331e96
DL
49932000-09-14 Dave Love <fx@gnu.org>
4994
4995 * buffer.c (alloc_buffer_text): Fix xmalloc call.
4996
ef9e4345
GM
49972000-09-14 Gerd Moellmann <gerd@gnu.org>
4998
085536c2
GM
4999 * xdisp.c (handle_fontified_prop): While running fontification
5000 functions, bind `fontification-functions' and
5001 `after-change-functions' to nil.
5002
ef9e4345
GM
5003 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
5004 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
5005
5006 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
5007
5008 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
5009 USE_MMAP_FOR_BUFFERS.
5010
5011 * insdel.c (make_gap): Use enlarge_buffer_text.
5012
5013 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
5014 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
5015 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
5016 from former r_alloc_* functions in ralloc.c.
52283633 5017 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
ef9e4345
GM
5018 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
5019 (mmap_init) [REL_ALLOC_MMAP]: New function.
5020 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
5021 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
5022 BUFFER_FREE.
5023
5024 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
5025 (enlarge_buffer_text): Add prototype.
5026
5027 * ralloc.c: Remove everything having to do with the use of mmap.
5028
f8608968
GM
50292000-09-13 Gerd Moellmann <gerd@gnu.org>
5030
2a494b2d
GM
5031 * sound.c (Fplay_sound): Doc fix.
5032
8c907a56
GM
5033 * keyboard.c: Avoid some more compiler warnings.
5034 (parse_tool_bar_item): Ignore cached key bindings.
5035
f8608968
GM
5036 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
5037 and allocation of Lisp data.
5038
6ab70e9a
GM
50392000-09-12 Gerd Moellmann <gerd@gnu.org>
5040
d12d0a9b
GM
5041 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
5042 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
5043 defaults first.
5044
6ab70e9a
GM
5045 * lread.c (Fload): Put code checking for recursive loads in #if 0.
5046
63c36c3c
KH
50472000-09-12 Miyashita Hisashi <himi@meadowy.org>
5048
5049 * ccl.c: Comment fixed.
5050 (MAX_MAP_SET_LEVEL): Increased to 30.
5051 (PUSH_MAPPING_STACK): Enclose with do-while block.
5052 (POP_MAPPING_STACK): Likewise.
5053 (stack_idx_of_map_multiple): New variable.
5054 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
5055 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
52283633 5056 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
63c36c3c
KH
5057 (ccl_driver) <CCL_MapSingle>: Likewise.
5058 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
5059 with the case where looking up process reaches to the end of
5060 map-set, and call CCL programs as the above change.
5061
7ee3bd7b
GM
50622000-09-11 Gerd Moellmann <gerd@gnu.org>
5063
8ec8a5ec
GM
5064 * xfns.c (png_load, jpeg_load): Declare some variables volatile
5065 that might be clobbered by longjmp.
5066 (check_x_display_info, x_decode_color, create_frame_xic)
5067 (Fx_display_backing_store, Fx_display_visual_class)
52283633 5068 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
8ec8a5ec 5069
f74b0705
GM
5070 * lread.c (init_lread): Set Vloads_in_progress to nil.
5071 (Fload): Show list of recursively loaded files, when signaling an
5072 error.
5073
7ee3bd7b
GM
5074 * lread.c (Vloads_in_progress): New variable.
5075 (record_load_unwind): New function.
5076 (Fload): Check for recursive loads.
5077 (syms_of_lread): Initialize Vloads_in_progress.
5078 (read_integer, read1): Avoid some compiler warnings.
5079
5080 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
5081 compiler warnings.
5082
974e1e5b
MB
50832000-09-11 Miles Bader <miles@gnu.org>
5084
5085 * editfns.c (Fbuffer_string): Doc fix.
5086
9824c4e3
GM
50872000-09-10 Gerd Moellmann <gerd@gnu.org>
5088
5089 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
5090
6a72fdd1
KR
50912000-09-09 Ken Raeburn <raeburn@gnu.org>
5092
5093 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
5094 whether to include other header files.
5095
28e6fb66
GM
50962000-09-09 Gerd Moellmann <gerd@gnu.org>
5097
52283633 5098 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 5099 by Fmemq as a boolean.
28e6fb66 5100
7f8b6551
SM
51012000-09-08 Stefan Monnier <monnier@cs.yale.edu>
5102
5103 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
5104
a8710abf
GM
51052000-09-08 Gerd Moellmann <gerd@gnu.org>
5106
d1a02881
GM
5107 * ralloc.c (mmap_fd): Remove initializer which can make it
5108 read-only in a dumped Emacs.
5109 (mmap_fd_1): New variable.
5110 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
5111 restore it from there.
5112 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
5113 unconditionally so that mmap_fd can be initialized there.
5114 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
5115 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
5116 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
5117
c454aac1
GM
5118 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
5119
5120 * xdisp.c (dump_glyph_row): Fix printf format string.
52283633 5121 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
c454aac1 5122
fc653ef2
GM
5123 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
5124
3015eec0
GM
5125 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
5126 inheritance.
5127
bfe0ee88
GM
5128 * xdisp.c (try_window_id): When trying to locate cursor in
5129 unchanged rows at the top, handle the case that we can't find it.
5130
a8710abf
GM
5131 * xterm.c (x_draw_glyphs): Handle case START and END are out
5132 of bounds more carefully.
5133
6b7d4ae4
DL
51342000-09-08 Dave Love <fx@gnu.org>
5135
423193c5
DL
5136 * s/sol2.h (REL_ALLOC_MMAP): Define.
5137 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
5138
5139 * ralloc.c: Don't include string.h (redundant).
5140 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
5141 [!MAP_ANON]: Include fcntl.h.
5142 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
5143 (r_alloc, r_re_alloc, r_alloc_free)
5144 (mmap_enlarge, mmap_set_vars): Use it.
5145 (r_alloc_init_fd): New function.
5146 (__morecore) [SYSTEM_MALLOC]: Don't declare.
5147 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
5148 malloc type.
5149
5150 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
5151 Remove vm-limit.o.
5152
6b7d4ae4
DL
5153 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
5154 change to __NetBSD__.
5155
44d31981
KH
51562000-09-08 Kenichi Handa <handa@etl.go.jp>
5157
5158 * search.c (compile_pattern): Check the multibyteness of cached
5159 string and PATTERN.
5160
aad40737
MB
51612000-09-08 Miles Bader <miles@gnu.org>
5162
5163 * xfaces.c (default_face_vector): Function removed.
5164 (Finternal_merge_in_global_face): Restore old global/local
5165 attribute override order. Use inline loop instead of calling
5166 default_face_vector.
5167
91a211b5
GM
51682000-09-07 Gerd Moellmann <gerd@gnu.org>
5169
5170 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
5171 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
5172 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
5173 where necessary, in case POINTER_TYPE is `void'.
5174
03419440
EZ
51752000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
5176
5177 * frame.c (make_terminal_frame): Initialize frame foreground and
5178 background colors to unspecified, for the initial instance of an
5179 MSDOS frame.
5180
f46f845b
GM
51812000-09-07 Gerd Moellmann <gerd@gnu.org>
5182
24f76fbf
GM
5183 * ralloc.c (mmap_find): Fix overlap computation.
5184 (mmap_enlarge): Compute nbytes before trying to find an
5185 overlapping region.
5186
f46f845b
GM
5187 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
5188 instead of `!='.
5189
5190 * lread.c (syms_of_lread): Change value of regexp
5191 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
5192
5193 * xmenu.c (xdialog_show): When looking up the selection in
5194 menu_items, take `quote' boundaries into account; this corresponds
5195 to a nil ITEM in x-popup-dialog.
5196
3c014385
KH
51972000-09-07 Kenichi Handa <handa@etl.go.jp>
5198
fd6f711b
KH
5199 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
5200 not 0x81.
5201 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
5202
3c014385 5203 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
5204 encoding, not decoding. Fix the handling of latin-jisx0201.
5205 Check for the charset katakana-jisx0201 too.
3c014385 5206 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 5207 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 5208
0da3ecef
GM
52092000-09-07 Gerd Moellmann <gerd@gnu.org>
5210
ab0ee409
GM
5211 * xfaces.c (Vparam_value_alist): New variable.
5212 (syms_of_xfaces): Initialize it.
5213 (Finternal_set_lisp_face_attribute): Avoid more consing.
5214
5215 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
5216 specially.
5217 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
5218 (Qbackground_mode): New variable.
5219 (syms_of_frame_1): Initialize Qbackground_mode.
5220
5221 * lisp.h (Qdisplay): Declare extern.
1091dd67 5222
0da3ecef
GM
5223 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
5224 change face on all frames, and change the default for new frames.
5225
b14654b9
DL
52262000-09-07 Dave Love <fx@gnu.org>
5227
5228 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
5229
d24fd56f
KH
52302000-09-07 Kenichi Handa <handa@etl.go.jp>
5231
794f3670
KH
5232 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
5233
0fddd0dc
KH
5234 * charset.c: Include composite.h
5235 (lisp_string_width): New function.
5236 (Fstring_width): Call lisp_string_width instead of strwidth.
5237
5238 * Makefile.in (charset.o): Depends on composite.h.
5239
d24fd56f
KH
5240 * process.c (read_process_output): Before inserting the decoded
5241 text in the buffer, adjust the multibyteness.
5242
fa0b693c
GM
52432000-09-06 Gerd Moellmann <gerd@gnu.org>
5244
52283633 5245 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
73b77ee5
GM
5246 buffer's text buffer is null, map new memory.
5247
0a58f946
GM
5248 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
5249 POINTER_TYPE and size_t.
5250 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
5251 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
5252 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
5253 [REL_ALLOC_MMAP]: New macros.
5254 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
5255 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
5256 [REL_ALLOC_MMAP]: New functions.
5257
5258 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
5259 before and after unexec.
5260
5261 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
5262 text buffers if necessary.
5263
5264 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
5265 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
5266 in prototypes.
5267
fa0b693c
GM
5268 * config.in (HAVE_MMAP): Add #undef.
5269
877055f6
GM
52702000-09-05 Gerd Moellmann <gerd@gnu.org>
5271
08ba3862
GM
5272 * frame.c (Qdisplay_type): New variable.
5273 (syms_of_frame_1): Initialize it.
5274 (Fframe_parameter): New function that avoids consing.
5275 (syms_of_frame): Defsubr it.
5276
66ffe51c
GM
5277 * buffer.c (Fother_buffer): Consider buffers as invisible when
5278 they are displayed in a window on an invisible frame.
5279
877055f6
GM
5280 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
5281 get-largest-window always return nil.
5282
bb970e67
GM
52832000-09-04 Gerd Moellmann <gerd@gnu.org>
5284
5285 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
5286 variable; recognize Emacs 19 elc files.
5287
7a3d0e0e
MB
52882000-09-04 Miles Bader <miles@gnu.org>
5289
5290 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
5291 before initially popping up the menu, so the menu doesn't flash
52283633 5292 when the face settings are significantly different from the defaults.
7a3d0e0e 5293
14473664
SM
52942000-09-04 Stefan Monnier <monnier@cs.yale.edu>
5295
5296 * regex.c (WIDE_CHAR_SUPPORT): New macro.
5297 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
5298 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
5299 (BIT_UNIBYTE): Remove.
5300 (re_match_2_internal): Delete corresponding code and streamline the
5301 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
5302 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
5303 (re_wctype_t): New type.
5304 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
5305 (regex_compile): Use them and fix handling of overly long char classes.
5306
c1174479
AI
53072000-09-03 Andrew Innes <andrewi@gnu.org>
5308
f8803e97
AI
5309 * makefile.w32-in: Change to DOS line endings.
5310
c1174479
AI
5311 * s/ms-w32.h (ORDINARY_LINK): New define.
5312
5313 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
5314 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
5315
5316 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
5317 (distclean): Delete them here instead.
5318
44ef7cf6
AI
5319 * w32proc.c (compare_env): Convert to uppercase for comparison,
5320 not lowercase, to match how the native Windows shell works.
5321
49b3bd82
JR
53222000-09-03 Jason Rumney <jasonr@gnu.org>
5323
5324 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
5325 CVS changes the line-ends when checking in/out on DOS/Windows.
5326
5327 * makefile.nt (emacs): Do not change directory to run temacs, as
5328 the load-path is set relative to current directory.
5329
a3d35a39
MB
53302000-09-03 Miles Bader <miles@gnu.org>
5331
5332 * xterm.c (x_alloc_lighter_color_for_widget): New function.
5333
d276b0cf
GM
53342000-09-02 Gerd Moellmann <gerd@gnu.org>
5335
715e84c9
GM
5336 * xdisp.c (redisplay_mode_lines): New function.
5337 (display_mode_lines): Return number of mode lines displayed.
5338 (echo_area_display): Use redisplay_mode_lines to draw garbaged
5339 mode lines. Don't temporarily bind redisplay-dont-pause to t.
5340
8892f40b
GM
5341 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
5342 string.h and strings.h.
5343 (index) [HAVE_INDEX]: Add prototype.
5344
d276b0cf
GM
5345 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
5346 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
5347
5348 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
5349 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
5350
38404229
GM
53512000-09-01 Gerd Moellmann <gerd@gnu.org>
5352
5353 * lread.c (read1): Accept `?' as symbol constituent, for
5354 compatiblity with XEmacs.
5355
c0f9ea08
SM
53562000-08-31 Stefan Monnier <monnier@cs.yale.edu>
5357
5358 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
5359 (struct re_pattern_buffer): Remove newline_anchor.
5360 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
5361 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
5362 (re_max_failures, fail_stack): Use size_t rather than unsigned.
5363 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
5364 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
5365 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
5366 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
5367 Get rid of references to newline_anchor.
5368 (regcomp): Allocate and precompute a fastmap.
5369
8c0f83fe
GM
53702000-08-31 Gerd Moellmann <gerd@gnu.org>
5371
5372 * lread.c (openp): GCPRO local variable `filename'.
5373
4bb91c68
SM
53742000-08-30 Stefan Monnier <monnier@cs.yale.edu>
5375
5376 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
5377
5378 * regex.c: Merge some changes from GNU libc. Add prototypes.
5379 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
5380 Use memcmp and memcpy instead of bcopy and bcmp.
5381 (init_syntax_once): Use ISALNUM.
5382 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
5383 (REG_UNSET_VALUE): Remove. Use NULL instead.
5384 (REG_UNSET, re_match_2_internal): Use NULL.
5385 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
5386 New macros.
5387 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
5388 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
5389 (regex_compile): In handle_interval, return an error rather than try to
5390 unfetch the interval if we can't find the closing brace.
5391 Obey the RE_NO_GNU_OPS syntax bit.
5392 (TOLOWER): New macro.
5393 (regcomp): Use it.
5394 (regexec): Allocate regs.start and regs.end as one block.
5395
5226a931
GM
53962000-08-30 Gerd Moellmann <gerd@gnu.org>
5397
868dd24b
GM
5398 * xdisp.c (echo_area_display): Check display_completed instead
5399 of calling detect_input_pending.
5400
5401 * dispnew.c (update_frame): Only set display_completed here; move
5402 the update_begin and update_end calls here from update_frame_1.
5403 (update_frame_1): Don't set display_completed here, don't call
5404 update_begin/update_end.
5405
5226a931
GM
5406 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
5407 instead of store_frame_param.
5408
2a8bd25f
GM
54092000-08-29 Gerd Moellmann <gerd@gnu.org>
5410
5411 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
5412 desired window matrix hasn't been displayed, use the current row
5413 instead. Make sure that only those frame rows are updated for
5414 which there exists a corresponding enabled desired row.
52283633 5415
ba3478d9
MB
54162000-08-29 Miles Bader <miles@gnu.org>
5417
5418 * xfaces.c (default_face_vector): New function.
5419 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
5420
87d0f685
GM
54212000-08-29 Gerd Moellmann <gerd@gnu.org>
5422
5423 * lread.c (openp): Prevent temporary string passed to
5424 Ffile_readable_p from being garbage collected.
5425
6fa86045
DL
54262000-08-28 Dave Love <fx@gnu.org>
5427
5428 * keymap.c (store_in_keymap): Add `static' to declaration.
5429
bb17930d
GM
54302000-08-28 Gerd Moellmann <gerd@gnu.org>
5431
5432 * emacs.c, callint.c, doc.c, editfns.c
5433 (toplevel) [HAVE_STRING_H]: Include string.h.
5434 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
5435 (index): Remove prototypes which might conflict with non-standard
5436 definitions of index/strchr.
5437
5438 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
5439 (rindex): Define only if !HAVE_RINDEX.
5440
5441 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
5442
5443 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
5444
87188200
MB
54452000-08-28 Miles Bader <miles@gnu.org>
5446
5447 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
5448 made inconsistent by a font-related attribute in FROM.
5449 (merge_face_inheritance): Add function comment.
5450
41a68aef
KH
54512000-08-28 Kenichi Handa <handa@etl.go.jp>
5452
5453 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
5454 the 4th arg (PREV_EVENT) Qt to suppress input method.
5455
f7c436c1
SM
54562000-08-27 Stefan Monnier <monnier@cs.yale.edu>
5457
0b32bf0e
SM
5458 * regex.c: Indent cpp directives and remove parens after `defined'.
5459 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
5460 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
5461 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
5462 (re_compile_pattern): Use size_t for length.
5463 (init_syntax_once): Move to a better place.
5464 * regex.h: Merge changes from GNU libc. Indent cpp directives.
5465 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
5466
f7c436c1
SM
5467 * syntax.c (back_comment): Detect cases where a comment-starter is
5468 actually inside another comment as in: /* a // b */ c // d \n.
5469 Make it clear that `comstart_pos' is unused for nested comments.
5470
5471 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
5472 (KEYMAPP): New macro.
5473 (Fkeymap_parent, Fset_keymap_parent): Use it.
5474 (fix_submap_inheritance): Mark it static.
5475 (define_as_prefix, describe_buffer_bindings, describe_command)
5476 (describe_translation, describe_map): Complete prototypes.
5477
5478 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
5479
5480 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
5481 to better match the key-lookup behavior.
5482
6288c62f
GM
54832000-08-27 Gerd Moellmann <gerd@gnu.org>
5484
5485 * xfaces.c (lface_fully_specified_p): Handle :inherit.
5486 (Finternal_set_lisp_face_attribute): Fix typo in error message.
5487
e931344e
EZ
54882000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
5489
5490 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
5491 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
5492 (xterm.o): Depend on coding.h
5493
d10dfeef
KH
54942000-08-26 Kenichi Handa <handa@etl.go.jp>
5495
5496 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
5497 the corresponding '#endif'.
5498
2d73e8d3
MB
54992000-08-26 Miles Bader <miles@gnu.org>
5500
5501 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
5502 * xfaces.c (QCinherit): New variable.
5503 (syms_of_xfaces): Initialize it.
5504 (LFACE_INHERIT): New macro.
5505 (Finternal_get_lisp_face_attribute)
52283633 5506 (merge_face_vector_with_property)
2d73e8d3
MB
5507 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
5508 (check_lface_attrs): Allow new types of face height. Check
5509 inherit attribute.
5510 (CYCLE_CHECK): New macro.
5511 (merge_face_inheritance): New function.
5512 (merge_face_vectors): Merge inherited faces too. Add F and
5513 CYCLE_CHECK arguments.
5514 (merge_face_vector_with_property, Finternal_merge_in_global_face)
5515 (lookup_named_face, lookup_derived_face, realize_named_face)
5516 (face_at_string_position, face_at_buffer_position): Supply
5517 new F and CYCLE_CHECK arguments to merge_face_vectors.
5518 (merge_face_heights): New function.
52283633 5519 (merge_face_vectors, merge_face_vector_with_property)
2d73e8d3
MB
5520 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
5521 handle relative face heights.
5522 (lface_same_font_attributes_p): Compare heights using EQ.
5523
6ce974d4
KH
55242000-08-26 Kenichi Handa <handa@etl.go.jp>
5525
5526 * charset.c (char_to_string): Check the character validity.
52283633 5527 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
6ce974d4 5528
dc1e502d
SM
55292000-08-25 Stefan Monnier <monnier@cs.yale.edu>
5530
5531 * regex.c (PUSH_FAILURE_COUNT): New macro.
5532 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
5533 Handle popping of a register's or a counter's data.
5534 (POP_FAILURE_POINT): Use the new name.
5535 (re_match_2_internal): Push counter data on the stack for succeed_n,
5536 jump_n and set_number_at and remove misleading dead code in succeed_n.
5537
bd9d0f3f
GM
55382000-08-25 Gerd Moellmann <gerd@gnu.org>
5539
5540 * xdisp.c (redisplay_internal): If considering all windows on all
5541 frames, update the display for each frame as soon as possible,
5542 instead of first building all desired matrices for all frames, and
5543 then updating them all.
5544 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
5545
aa5b8e15
GM
55462000-08-24 Gerd Moellmann <gerd@gnu.org>
5547
17494071
GM
5548 * bytecode.c (mark_byte_stack): Add a comment.
5549
52283633
SM
5550 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
5551 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
aa5b8e15
GM
5552 a graphical frame.
5553
c543db81
KH
55542000-08-24 Kenichi Handa <handa@etl.go.jp>
5555
d246d5f5
KH
5556 * minibuf.c (do_completion): Always use compare-string, not
5557 string-equal because the latter doesn't pay attention to
5558 multibyteness of strings.
5559
c543db81
KH
5560 * process.c (create_process): Don't setup raw-text coding here.
5561 (Fopen_network_stream): Don't set coding->src_multibyte and
5562 coding->dst_multibyte here.
5563 (read_process_output): For process filter, return unibyte string
5564 if default-enable-multibyte-characters is nil.
5565 (send_process): If OBJECT is multibyte text, be sure to encoded it
5566 by the specified coding system for the process. Otherwise, setup
5567 raw-text coding.
52283633 5568 (init_process): Don't initialize default-process-coding-system here.
c543db81 5569
9b47cfe0
EZ
55702000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
5571
5572 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
5573 <scroll-down-aggressively>: Likewise.
5574
f5a36960
KH
55752000-08-23 Kenichi Handa <handa@etl.go.jp>
5576
5577 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
5578 zero. Set coding->produced_char correctly.
5579
69a7ffa7
AI
55802000-08-22 Andrew Innes <andrewi@gnu.org>
5581
5582 * makefile.w32-in: New file.
5583
5584 * unexw32.c (unexec): Ignore old_name, and use the actual location
5585 of the current executable instead. Base new_name on this.
5586
5587 * w32proc.c (create_child): Remove reference to security
5588 descriptor, which isn't needed and doesn't compile with mingw32.
5589
5590 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5591 up dllimport attributes.
5592 (x_update_window_end): Update prototype.
5593
5594 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
5595 extern, which screws up dllimport attributes.
5596
5597 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5598 up dllimport attributes.
5599
5600 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
5601 screws up dllimport attributes.
5602
5603 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5604 up dllimport attributes.
5605 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
5606 screws up dllimport attributes.
5607
5608 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5609 up dllimport attributes.
5610
5611 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
5612 screws up dllimport attributes.
5613
5614 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
5615 screws up dllimport attributes.
5616
5617 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5618 up dllimport attributes.
5619
5620 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
5621 unnecessary extern, which screws up dllimport attributes.
5622 (main): Ditto.
5623
5624 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5625 up dllimport attributes.
5626
5627 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
5628 unnecessary extern, which screws up dllimport attributes.
5629
5630 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
5631 screws up dllimport attributes.
5632
5633 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5634 up dllimport attributes.
5635
5636 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
5637
52283633
SM
5638 * w32bdf.c (search_file_line):
5639 (set_bdf_font_info):
5640 (seek_char):
5641 (w32_get_bdf_glyph):
69a7ffa7
AI
5642 (w32_BDF_to_x_font): Fix compile warnings.
5643
52283633 5644 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
69a7ffa7
AI
5645
5646 * w32select.c: Include keyboard.h before frame.h.
5647
5648 * w32fns.c (max): Define macro.
5649 (JOHAB_CHARSET): Define if not known.
5650 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
5651 (Fx_show_tip): Synch with X version.
5652
5653 * w32xfns.c: Include keyboard.h before frame.h.
5654
5655 * w32fns.c: Include keyboard.h before frame.h.
5656
5657 * w32term.c: Include keyboard.h before frame.h.
5658
5659 * fontset.c: Include keyboard.h before frame.h.
5660
5661 * w32inevt.c: Include keyboard.h before frame.h.
5662 (MOUSE_MOVED): Define if not known.
5663
5664 * minibuf.c: Include keyboard.h before frame.h.
5665
5666 * keyboard.c: Include keyboard.h before frame.h.
5667
5668 * indent.c: Include keyboard.h before frame.h.
5669
5670 * dispnew.c: Include keyboard.h before frame.h.
5671
5672 * buffer.c: Include keyboard.h before frame.h.
5673
5674 * alloc.c: Include keyboard.h before frame.h.
5675
5676 * print.c: Include keyboard.h before frame.h.
5677
5678 * process.c: Include keyboard.h before frame.h.
5679
5680 * scroll.c: Include keyboard.h before frame.h.
5681
5682 * sysdep.c: Include keyboard.h before frame.h.
5683
5684 * term.c: Include keyboard.h before frame.h.
5685
5686 * window.c: Include keyboard.h before frame.h.
5687
5688 * xdisp.c: Include keyboard.h before frame.h.
5689 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
5690
5691 * frame.c: Include keyboard.h before frame.h.
5692
5693 * w32heap.h: Undefine min, max.
5694
5695 * w32gui.h: Undefine min, max.
5696
5697 * unexw32.c: Change PUCHAR to PCHAR.
5698 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
52283633
SM
5699 (relocate_offset):
5700 (get_section_info):
69a7ffa7
AI
5701 (copy_executable_and_dump_data): Remove unnecessary static defs.
5702 (copy_executable_and_dump_data): Fix compile warnings.
5703
5704 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
5705
5706 * w32console.c (min): Define macro.
5707 (clear_frame, write_glyphs): Fix compile warning.
5708
52283633 5709 * w32proc.c (compare_env):
69a7ffa7
AI
5710 (find_child_console): Fix compile warning.
5711
5712 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
5713 sys_errlist instead of _sys_errlist.
5714 (get_emacs_configuration_options): New function.
5715
5716 * s/ms-w32.h (sys_nerr): Provide default definition.
5717 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
5718 name with _ prepended.
5719 (NSIG): Define if not known.
5720 (get_emacs_configuration): Provide extern declaration.
5721 (get_emacs_configuration_options): Provide extern declaration.
5722 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
5723
5724 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
52283633 5725 (map_w32_filename):
69a7ffa7
AI
5726 (read_unc_volume): Fix compile warning.
5727
5728 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
5729 definitions from being used.
5730
5731 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
5732
52283633 5733 * w32.c (unc_volume_file_attributes):
69a7ffa7
AI
5734 (open_unc_volume): Make arg const.
5735
5736 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
5737 (read_input_waiting): Remove excess parameter.
5738
5739 * w32.c (init_environment): Call _access.
5740 (check_windows_init_file): Call _close.
5741 (init_user_info): Call _putenv.
5742 (init_environment): Call _putenv and _strdup.
5743 (init_ntproc): Reset volume info cache on startup.
5744
5745 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
5746 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
5747 cannot override the CRT malloc.
5748
5749 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
5750 (LINK_FLAGS): Append to original value of LINK_FLAGS.
5751
5752 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
5753 unless we are linking with a static CRT.
5754 (RVA_TO_PTR): Cast result to unsigned char*.
5755
5756 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
5757 (add_volume_info): Use xstrdup.
5758
25060080
SM
57592000-08-22 Stefan Monnier <monnier@cs.yale.edu>
5760
5761 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
5762 (do_completion, Fminibuffer_complete_word): Use it.
5763 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
5764 var so it can take non-boolean values.
5765
6917e6bb
GM
57662000-08-21 Gerd Moellmann <gerd@gnu.org>
5767
acb7cc89 5768 * editfns.c (find_field): Formatting changes.
52283633 5769 (toplevel): Some old-style function forward declarations
acb7cc89
GM
5770 changed to prototypes, some new protypes added, some functions
5771 made static.
5772
5773 * lisp.h (set_time_zone_rule): Add prototype.
5774 (use_dialog_box): External declaration.
5775
0bbfdc25
GM
5776 * keyboard.c (gen_help_event): Add parameter SIZE.
5777 (kbd_buffer_events_waiting): Slightly rewritten.
5778 (clear_event): New function.
5779 (kbd_buffer_get_event): Use it, and clear the input_events of
5780 HELP_EVENTs.
5781 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
5782 don't fill the newly created array with nils.
5783 (toplevel): Convert some old-style function forward declarations
5784 to prototypes.
5785
5786 * keyboard.h (gen_help_event): Change prototype.
5787
5788 * xterm.c (XTread_socket): Change calls to gen_help_event.
5789
5790 * w32term.c (w32_read_socket): Change calls to gen_help_event.
5791
6917e6bb
GM
5792 * eval.c (Fmacroexpand): Doc fix.
5793
e5cd3d11
JR
57942000-08-20 Jason Rumney <jasonr@gnu.org>
5795
5796 * w32term.h (x_display_info_for_display): Remove as this function
5797 does not exist on W32.
5798
5799 * w32term.c (help_echo_window): New variable.
5800 (syms_of_w32term): staticpro it.
5801 (note_mode_line_highlight): Set it.
5802 (XTextExtents16): Removed as there is no equivalent on W32.
5803 (x_compute_glyph_string_overhangs): Incomplete body removed, as
5804 the X way of doing this will not work for W32.
5805 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
5806 (x_draw_image_foreground): Avoid drawing outside of the clip area
5807 when image doesn't have a mask.
5808 (note_mouse_highlight): Process overlays in the right order of
5809 priority. Set help_echo_window.
5810 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
5811 because that's more visible for large images.
5812
5813 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
5814 name to single_keymap_panes.
5815 (w32_menu_show): Set wv->title when dealing with titles.
5816 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
5817
6e69ab8c
MB
58182000-08-21 Miles Bader <miles@gnu.org>
5819
5820 * minibuf.c (do_completion): Try again if we rewrite the input
5821 string, but no completion was done, so that any completion message
5822 will be correct.
5823
511bd4eb
GM
58242000-08-20 Gerd Moellmann <gerd@gnu.org>
5825
5826 * xfaces.c (lface_equal_p): Compare strings differently.
5827 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
5828 (realize_tty_face): Use them.
5829 (syms_of_xfaces): Initialize new variables.
5830 (map_tty_color): New function, extracted from realize_tty_face.
5831 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
5832 foreground or background color, store the new color name in the
5833 realized face; previous code trying to do this had no effect.
5834 (realize_tty_face): Use map_tty_color.
5835 (Fclear_face_cache): Set face_change_count and ensure thorough
5836 redisplay.
5837
1433385f
GM
58382000-08-19 Gerd Moellmann <gerd@gnu.org>
5839
511bd4eb
GM
5840 * undo.c (record_first_change, record_marker_adjustment): Don't
5841 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 5842
419ac0a2
KH
58432000-08-18 Kenichi Handa <handa@etl.go.jp>
5844
5845 * coding.c (decode_coding_string): Set members consumed,
5846 consumed_char, produced, produced_char of *coding correctly. If
5847 decode_coding doesn't consume any byte, don't try anymore.
5848 (encode_coding_string): Likewise.
5849
7eb9e30d
GM
58502000-08-18 Gerd Moellmann <gerd@gnu.org>
5851
511bd4eb
GM
5852 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
5853 conditional have void type, for Standard C compilers.
7eb9e30d
GM
5854
5855 * xdisp.c (redisplay_internal): Compare windows for equality with
5856 EQ, instead of applying XWINDOW to something that might not
5857 be a window.
52283633 5858
dd34a735
KH
58592000-08-18 Kenichi Handa <handa@etl.go.jp>
5860
5861 * fontset.c (Finternal_char_font): Search only the selected frame
5862 for a window of the current buffer.
5863
385ff9e3
GM
58642000-08-18 Gerd Moellmann <gerd@gnu.org>
5865
511bd4eb 5866 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
5867 Lisp_Objects.
5868
385ff9e3
GM
5869 * keyboard.c (kbd_buffer_get_event): Handle the case that the
5870 second half of a HELP_EVENT is found at the start of kbd_buffer.
5871
d6abb4c7
MB
58722000-08-18 Miles Bader <miles@gnu.org>
5873
4618074a
MB
5874 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
5875
d6abb4c7
MB
5876 * editfns.c (save_restriction_save): Rewrite to use markers.
5877 (save_restriction_restore): Rewrite to understand new form of data
5878 saved by save_restriction_save.
5879 (Fsave_restriction): Remove cautionary note in doc-string.
5880
a7b28523
GM
58812000-08-17 Gerd Moellmann <gerd@gnu.org>
5882
5883 * fileio.c (build_annotations): Add a comment explaining the
5884 return value of format-annotate-function. Replace a spurious call
5885 to Flength with a CONSP test. Call format-annotate-function with
5886 a fifth arg specifying how many times the function is been called
5887 in a row, to let it choose temporary buffers appropriately.
5888
03c9ed77
DL
58892000-08-17 Dave Love <fx@gnu.org>
5890
5891 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
5892 declare make_temp_name twice.
5893
52283633 5894 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
03c9ed77
DL
5895 (unreadpure): Give it an arg.
5896
5897 * unexalpha.c: Prototype fatal_unexec, mark_x,
5898 update_dynamic_symbols. Declare unexec as void.
5899
5900 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
5901 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
5902
5903 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
52283633 5904 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
03c9ed77
DL
5905
5906 * alloca.c: Use #error.
5907 [POINTER_TYPE]: Use it.
5908
5909 * eval.c (Fdefvar): Doc fix.
5910
5911 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
5912 INITIALIZE_INTERVAL.
5913
5914 * buffer.h: Avoid DECLARE_INTERVALS.
5915
5916 * config.in: Add size_t.
5917
aae41d97
EZ
59182000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
5919
5920 * w16select.c (set_clipboard_data): If there's not enough memory
5921 to put text into clipboard, return 1, as Fw16_set_clipboard_data
5922 expects. In case of other failures, return 3.
5923 (system_error_msg): New error message.
5924 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
5925 system_error_msg.
5926
65aa5e85
GM
59272000-08-16 Gerd Moellmann <gerd@gnu.org>
5928
5929 * term.c (write_glyphs): Also turn off inverse video after turning
5930 off other appearances in case TS_exit_attribute_mode is not equal
5931 to TS_end_standout_mode.
5932 (insert_glyphs): Turn inverse video on/off for each run of glyphs
5933 with the same face.
5934 (turn_off_face): Reset standout_mode only if
5935 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
5936 is equal to TS_end_standout_mode.
5937
ece23901
KH
59382000-08-16 Kenichi Handa <handa@etl.go.jp>
5939
9d7bcb2e
KH
5940 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
5941 sequence at the end of the source block.
5942
ece23901
KH
5943 * ccl.c (Fccl_program_p): Docstring modified.
5944 (Fccl_execute): Likewise.
5945 (Fccl_execute_on_string): Likewise.
5946
5e30eaa2
EZ
59472000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
5948
5949 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
5950
290602fd
KH
59512000-08-16 Kenichi Handa <handa@etl.go.jp>
5952
5953 The following changes are mainly to fix bugs of
5954 encode/decode-coding-string failing if encoding/decoding return
5955 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
5956 variable conversion_buffer.
5957
5958 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
5959 decrement dst_end to avoid buffer overflow in the later call of
5960 string_as_multibyte
5961
5962 * coding.h (conversion_buffer_size, conversion_buffer)
5963 (get_conversion_buffer): Extern deleted.
5964
5965 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
5966 (conversion_buffer, conversion_buffer_size): Variables deleted.
5967 (get_conversion_buffer): Function deleted.
5968 (struct conversion_buffer): New structure.
5969 (MAX_ALLOCA): New macro.
5970 (allocate_conversion_buffer): New macro.
5971 (extend_conversion_buffer, free_conversion_buffer): New functions.
5972 (ccl_coding_driver): Set coding->result.
5973 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
5974 this is the last block of source.
5975 (encode_coding): Likewise. Handle the source block as the last
5976 one only when the whole source text is consumed.
5977 (decode_coding_string): Handle the case that the output buffer is
5978 too small to decode the whole source text. Use
5979 allocate_conversion_buffer, extend_conversion_buffer and
5980 free_conversion_buffer, not get_conversion_buffer.
5981 (encode_coding_string): Likewise.
5982 (init_coding): Function deleted.
52283633 5983 (init_coding_once): Delete code to initialize conversion_buffer_size.
290602fd
KH
5984
5985 * emacs.c (main): Don't call init_coding.
5986
52283633 5987 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
290602fd
KH
5988
5989 * term.c (write_glyphs): Use a locally declared conversion_buffer.
5990 (insert_glyphs): Likewise.
5991
5992 * w32console.c (write_glyphs): Use a locally declared
5993 conversion_buffer.
5994
b9f80d41
EZ
59952000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
5996
5997 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
5998 member of display_info is NULL.
5999
32dc52f7
GM
60002000-08-15 Gerd Moellmann <gerd@gnu.org>
6001
52283633 6002 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
58ed0d3b 6003
32dc52f7 6004 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 6005 appearances with capability `me'.
32dc52f7
GM
6006 (write_glyphs): Switch on inverse video before each face change.
6007
4eb22d33
DL
60082000-08-14 Dave Love <fx@gnu.org>
6009
6010 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
6011 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
6012 (lisp_free): Declare and make static.
6013
6014 * window.c: Fix embedded comment.
6015 (syms_of_window): Fix doc string.
6016
90cbf47e
GM
60172000-08-14 Gerd Moellmann <gerd@gnu.org>
6018
52283633 6019 * keymap.c (push_key_description): If C without modifiers is < 32,
90cbf47e
GM
6020 make sure to print `C-' before `M-', like in the manual.
6021
440fc135
GM
60222000-08-11 Gerd Moellmann <gerd@gnu.org>
6023
6024 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
6025 since they aren't relocated anymore.
52283633 6026 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
440fc135
GM
6027
6028 * xdisp.c (try_cursor_movement): Fix handling of cursor in
52283633 6029 partially visible line which is smaller than the window's height.
440fc135 6030
6e264fad
KH
60312000-08-11 Kenichi Handa <handa@etl.go.jp>
6032
6033 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
52283633 6034 the multibyte form of eight-bit-control characters.
6e264fad
KH
6035 (Fccl_execute_on_string): Initialize ccl->multibyte.
6036
6037 * ccl.h (struct ccl_program): New member multibyte.
6038
6039 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
6040
c371f69a
KH
60412000-08-11 Kenichi Handa <handa@etl.go.jp>
6042
6043 * regex.c (regex_compile) <normal_char>: Pay attention to
6044 multibyteness.
6045 (analyse_first) <exactn>: Setup fastmap correctly for
6046 eight-bit-control characters.
6047
60482000-08-11 Kenichi Handa <handa@etl.go.jp>
6049
52283633 6050 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
c371f69a
KH
6051
6052 * keyboard.c (make_lispy_event): Handle the new event type
6053 multibyte_char_keystroke.
6054
6055 * xterm.c: Include coding.h.
6056 (XTread_socket): Work around a bug of XmbLookupString. If the
6057 input is from XIM, decode it according to the current locale. In
6058 that case, generate multibyte_char_keystroke events.
6059
b8ddbe71
KH
60602000-08-11 Kenichi Handa <handa@etl.go.jp>
6061
6062 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
6063 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
6064
47589c8c
GM
60652000-08-10 Gerd Moellmann <gerd@gnu.org>
6066
6067 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
6068 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
6069 (move_it_in_display_line_to): Record iterator's ascent and descent
6070 before producing glyphs, and restore them when we know the glyph
6071 doesn't fit on the line.
6072 (move_it_to): Restructured so that it's easier to debug. If
6073 moving to a vpos, and not moving to an x or character position,
6074 stop as soon as the specified vpos is reached; don't move further
6075 into that line because that might change the computed line height.
6076 (try_cursor_movement): New function, extracted from the cursor
6077 movement branch of redisplay_window. If ending on a partially
6078 visible line, don't try to scroll if the cursor line is taller
6079 than the window.
6080 (redisplay_window): Use try_cursor_movement.
6081
6082 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
6083 because that function doesn't cope with variable-height lines.
6084
6085 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
6086 box cursor because that's better visible for large images.
52283633 6087
c51bacd6
MB
60882000-08-10 Miles Bader <miles@gnu.org>
6089
6090 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
6091
bea56df7
GM
60922000-08-10 Gerd Moellmann <gerd@gnu.org>
6093
6094 * xdisp.c (Vmessages_buffer_name): New variable.
6095 (message_dolog): Use it.
6096 (syms_of_xdisp): Initialize it.
6097
99cd7364
EZ
60982000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
6099
52283633 6100 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
99cd7364
EZ
6101 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
6102 redundant now that keyboard.h is included.
6103
7d093d56
EZ
61042000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
6105
6106 * keyboard.c (kbd_buffer_events_waiting): New function.
6107
6108 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
6109
6110 * msdos.c: Include keyboard.h.
6111 (XMenuActivate): Empty no_event events from the event buffer. If
6112 no events are left after that, call clear_input_pending.
6113 (mouse_clear_clicks): New function, code moved from mouse_init.
6114 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
6115 mouse driver to ``forget'' any past clicks.
6116
6117 * Makefile.in (msdos.o): Depend on keyboard.h.
6118
41e757a6
GM
61192000-08-09 Gerd Moellmann <gerd@gnu.org>
6120
8e7bd231
GM
6121 * lisp.h (input_pending): External declaration.
6122
6123 * dispextern.h (Qredisplay_dont_pause): Declare extern.
52283633 6124
8e7bd231
GM
6125 * xdisp.c (echo_area_display): Display thoroughly if input is
6126 pending. Bind redisplay-dont-pause to t during the redisplay.
6127 in case input is pending.
6128
6129 * dispnew.c (Qredisplay_dont_pause): New variable.
6130 (syms_of_display): Initialize and staticpro it.
6131 (update_frame_1): Don't interrupt the display for pending input if
6132 redisplay_dont_pause is set.
52283633 6133
43028b7e
GM
6134 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
6135
41e757a6
GM
6136 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
6137
2f2174fa
KH
61382000-08-09 Miles Bader <miles@lsi.nec.co.jp>
6139
6140 * callproc.c (Fcall_process): Terminate the unwind-protect around
6141 the post-read-conversion of coding system.
6142
0a6fd67e
MB
6143 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
6144 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
6145 * buffer.h (overlays_at): Update prototype.
6146 * xdisp.c (next_overlay_change): Update call to overlays_at.
6147 * xfaces.c (face_at_buffer_position): Likewise.
6148 * textprop.c (Fget_char_property): Likewise.
6149 * xterm.c (note_mouse_highlight): Likewise.
6150
0c80756e
MB
6151 * minibuf.c (do_completion): Don't consider a simple change of
6152 case as `completion'.
6153
975f250a
KR
61542000-08-08 Ken Raeburn <raeburn@gnu.org>
6155
52283633 6156 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
b347b3fd
KR
6157 * undo.c (record_delete): Make sure last_point_position_buffer is
6158 a buffer before comparing pointers.
6159
6160 * coding.h (decode_coding_string): Declare.
6161
6162 * intervals.h (Fprevious_single_char_property_change): Declare.
6163
6164 * textprop.c (Fprevious_single_char_property_change): Don't do
6165 arithmetic directly on lisp objects.
6166
52283633 6167 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
b347b3fd
KR
6168
6169 * keyboard.h (menu_item_eval_property): Declare.
6170
6171 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
6172 reuse as buffer name, instead of recreating (and discarding) every
6173 time a message is logged.
6174 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
6175 (current_message_1, truncate_message_1, set_message_1)
6176 (display_echo_area_1, resize_mini_window_1): Signatures changed.
6177 (current_message, truncate_echo_area, display_echo_area)
6178 (resize_echo_area_axactly): Changed calls.
b347b3fd 6179
975f250a 6180 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 6181 Lisp object.
975f250a 6182 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 6183 must be an integer, not a Lisp object.
975f250a 6184
46dc9912
KH
61852000-08-08 Kenichi Handa <handa@etl.go.jp>
6186
6187 * charset.c (Fchar_width): Doc fix.
6188
9f6d1a6c
GM
61892000-08-08 Gerd Moellmann <gerd@gnu.org>
6190
6191 * charset.c (Fstring_width): Doc fix.
6192
ff3d9573
GM
61932000-08-07 Gerd Moellmann <gerd@gnu.org>
6194
41e757a6 6195 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
6196 line, clear ascent and descent members of the iterator structure;
6197 the height of the continued line does not affect the height of the
6198 continuation line.
6199 (make_cursor_line_fully_visible): Do nothing if cursor is on a
6200 line taller than the window.
6201 (redisplay_window) <forced window start>: Handle case that the
6202 middle of the window is not found in any row.
6203 (dump_glyph_row): Show more information.
6204 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
6205 first text line in a glyph matrix.
6206
6207 * xterm.c (x_draw_image_foreground): Avoid drawing outside
6208 of the clip area when image doesn't have a mask.
6209
70fc58b3
GM
6210 * fns.c (sweep_weak_table): Fix survival conditions for
6211 key-or-value and key-and-value weakness.
6212
6213 * .gdbinit (xhashtable): New command.
6214
ac0e96ee
GM
6215 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
6216 tables out of the list of all weak hash tables.
6217
ff3d9573
GM
6218 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
6219 a new buffer is created, make sure echo_area_buffer[] references
6220 the new buffer.
6221
e0d8827b
EZ
62222000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
6223
6224 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
6225 the doc string.
6226
c6f35378
KH
62272000-08-07 Kenichi Handa <handa@etl.go.jp>
6228
6229 * syntax.c (skip_chars): Fix previous change. Make the handling
6230 of unibyte string consistent with that of regex search.
6231
1fd4c450
GM
62322000-08-05 Gerd Moellmann <gerd@gnu.org>
6233
e49aa397
GM
6234 * xmenu.c (popup_get_selection): Use xfree instead of free.
6235
6236 * fileio.c (Finsert_file_contents): Use xfree instead of free.
6237
6238 * editfns.c (Ftranspose_regions): Use xfree instead of free.
6239
6240 * callproc.c (child_setup): Use xfree instead of free.
6241
6242 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
6243 instead of malloc.
6244 (run_mac_command, closedir): Use `xfree' instead of `free'.
6245
6246 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
6247
6248 * eval.c (error): Use xfree instead of free.
6249
1fd4c450
GM
6250 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
6251
6252 * fns.c: Replace `illegal' with `invalid'.
e49aa397 6253 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 6254
82d497fc
KH
62552000-08-05 Kenichi Handa <handa@etl.go.jp>
6256
6257 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
6258 conversion.
6259
59f953a2
NF
62602000-08-04 Noah Friedman <friedman@splode.com>
6261
6262 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
6263 docstring.
6264
688351f2
GM
62652000-08-04 Gerd Moellmann <gerd@gnu.org>
6266
6267 * syntax.c (skip_chars): Fix typo in error message.
6268
2dad51cc
AS
62692000-08-04 Andreas Schwab <schwab@suse.de>
6270
6271 * m/ia64.h: Moved from s/ia64.h.
6272
99bb2c60
KH
62732000-08-04 Kenichi Handa <handa@etl.go.jp>
6274
082a1df2
KH
6275 * process.c (read_process_output): Big simplification. Handle
6276 composition and post-read-conversion of coding system correctly.
6277 (send_process): Handle composition correctly.
6278
6279 * callproc.c (Fcall_process): Handle post-read-conversion of
6280 coding system if any.
6281
99bb2c60
KH
6282 * coding.c (decode_coding_iso2022): More strict check for handling
6283 single shifting.
082a1df2
KH
6284 (coding_restore_composition): Pay attention to the case that
6285 cmp_data is not set properly (because of invalid code in the
6286 source text).
6287 (run_pre_post_conversion_on_str): Include text properties in the
6288 resulting string.
6289 (decode_coding_string): Set members of coding correctly.
99bb2c60 6290
f4988be7
GM
62912000-08-03 Gerd Moellmann <gerd@gnu.org>
6292
6293 * s/ia64.h: New file.
6294
6295 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
6296 Use NULL instead of 0 at the end of variable argument list of
6297 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
6298 sizeof (int) < sizeof (void *).
6299
6300 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
6301 of variable argument lists of XtVaGetValues and XtVaSetValues.
6302
6303 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
6304 variable argument lists of XtVaGetValues and XtVaSetValues.
6305
ead53494
GM
63062000-08-02 Gerd Moellmann <gerd@gnu.org>
6307
6308 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
6309 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
6310
6311 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
6312 prototype.
6313
6314 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
6315 in call to Fsingle_key_description.
6316
6317 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
6318 Callers changed.
6319
63202000-08-02 Colin Walters <walters@cis.ohio-state.edu>
6321
6322 * window.c (display_buffer_reuse_frames): New variable.
6323 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
6324 frames displaying BUFFER.
52283633 6325 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
ead53494 6326
10b0f752
MB
63272000-08-01 Miles Bader <miles@gnu.org>
6328
6329 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
6330 when to constrain NEW_POS (they were pretty screwed up before).
6331
16425c4a
EZ
63322000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
6333
6334 * msdos.c (run_msdos_command): Save and restore the master
6335 environment, for the case that child_setup signals an error.
6336 When mirroring slashes in DOS shell commands, don't fail when
6337 argv[2] has embedded blanks.
da288c14
EZ
6338 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
6339 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
6340 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
6341
6342 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
6343 using alloca; free it after run_msdos_command returns.
6344
27f73852
DL
63452000-07-27 Dave Love <fx@gnu.org>
6346
52283633
SM
6347 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
6348 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
27f73852
DL
6349
6350 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
6351
c0261b5e
EZ
63522000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
6353
6354 * editfns.c (lisp_time_argument): Fix last change.
6355
b548072f
GM
63562000-07-27 Gerd Moellmann <gerd@gnu.org>
6357
3ab82477
GM
6358 * fns.c (Fdelete): Make it work on vectors and strings in addition
6359 to lists.
6360
b548072f
GM
6361 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
6362 (syms_of_fns): Initialize new variables.
52283633 6363 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
b548072f
GM
6364 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
6365 weakness, with t meaning the same as `key-and-value'.
6366
91ae8751
KH
63672000-07-27 Kenichi Handa <handa@etl.go.jp>
6368
6369 * coding.h (struct coding_system): Member safe_charset deleted.
6370
6371 * coding.c (Qsafe_charsets): This variable deleted.
52283633
SM
6372 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
6373 New variables.
91ae8751
KH
6374 (coding_safe_chars): New function.
6375 (CODING_SAFE_CHAR_P): New macro.
6376 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
52283633 6377 checking safe_charsets member of the coding system. Caller changed.
91ae8751
KH
6378 (detect_coding_iso2022): New local variable safe_chars.
6379 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
6380 safe_charsets member of the coding system.
6381 (decode_coding_iso2022): New local variable safe_chars.
6382 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
6383 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
6384 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
6385 (ENCODE_UNSAFE_CHARACTER): New macro.
6386 (encode_coding_iso2022): New local variable safe_chars. Check
6387 unsafe chars.
6388 (setup_coding_system): Delete the code to initialize
6389 coding->safe_charses
6390 (intersection, find_safe_codings): New functions.
6391 (Ffind_coding_systems_region_internal): New function.
6392 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
6393 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
6394 variable and initialize it.
6395
6396 * fns.c (char_table_ref_and_index): New function.
6397
6398 * lisp.h (char_table_ref_and_index): Add prototype.
6399
34a7a267
SS
64002000-07-26 Sam Steingold <sds@gnu.org>
6401
6402 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 6403 (Ffloat_time): New built-in Lisp function.
34a7a267 6404
a95cb10a
GM
64052000-07-26 Gerd Moellmann <gerd@gnu.org>
6406
3353ef5a
GM
6407 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
6408 for the character code.
6409
6410 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
6411 GNU/Linux.
6412
a95cb10a
GM
6413 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
6414 if called for a popup menu.
6415 (xmenu_show): Store help string in widget values.
6416
b4a12321
DL
64172000-07-26 Dave Love <fx@gnu.org>
6418
6419 * syswait.h: Move some definitions.
6420 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
6421 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
6422 perspicuous definitions.
6423 (WTERMSIG): Fix bit pattern used.
6424
13f5ad37
KH
64252000-07-26 Kenichi Handa <handa@etl.go.jp>
6426
6427 * print.c (print_object): If vector printing is truncated, print
6428 "..." to indicate it as well as the case of list printing.
6429
070fe99c
GM
64302000-07-25 Gerd Moellmann <gerd@gnu.org>
6431
969065c3
GM
6432 * xdisp.c (next_element_from_display_vector): Improve comments.
6433
6434 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
6435 for the character code, and the rest for the face id as in 20.x.
6436 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
6437
6438 * window.c (window_display_table): Cleaned up.
6439
070fe99c
GM
6440 * syntax.c (Fforward_word): Add last arg nil in call of
6441 Fconstrain_to_field.
6442
bad77ef7
EZ
64432000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
6444
969065c3 6445 * fileio.c (Frename_file) [DOS_NT]: If the file names are
52283633
SM
6446 identical but for the letter-case, don't call
6447 barf_or_query_if_file_exists.
bad77ef7 6448
c28da489
MB
64492000-07-25 Miles Bader <miles@gnu.org>
6450
6451 * editfns.c (find_field): Honor special `boundary' fields.
6452 (Qboundary): New variables.
6453 (syms_of_editfns): Initialize Qboundary.
6454 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
6455 Use scan_buffer instead of find_before_next_newline, because it
6456 allows us to detect the boundary case where there's a newline at
6457 the search limit.
6458 * lisp.h (Fconstrain_to_field): Update external declaration.
6459
e3c31fd5
GM
64602000-07-24 Gerd Moellmann <gerd@gnu.org>
6461
6462 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
6463 if that is nil.
c28da489 6464
c66c29a2
DL
64652000-07-24 Dave Love <fx@gnu.org>
6466
6467 * s/sunos4-0.h, s/sol2.h:
6468 (LIBS_TERMCAP): Move from m/sparc.h.
6469
6470 * m/sparc.h (TERMINFO): Moved to system files (probably only
6471 relevant for sunos4 judging by its vintage).
6472 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
6473 __arch64__.
6474
fbe0a958
EZ
64752000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
6476
6477 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
6478 name to single_keymap_panes.
6479
7d88e5c9
AS
64802000-07-24 Andreas Schwab <schwab@suse.de>
6481
6482 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
6483
e024b101
GM
64842000-07-24 Gerd Moellmann <gerd@gnu.org>
6485
6486 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
6487 parameters instead of using int parameters. Expect FN to accept
6488 EMACS_INT parameters.
6489 (display_echo_area, resize_echo_area_axactly, current_message)
6490 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
6491 with new argument list.
6492 (resize_mini_window_1): New callback function.
6493 (current_message_1, truncate_message_1, set_message_1): Change
52283633 6494 parameter lists to the new format expected by with_echo_area_buffer.
e024b101 6495
25c1a9ce
KH
64962000-07-24 Kenichi Handa <handa@etl.go.jp>
6497
6498 * fontset.c (fontset_ref): Remove INLINE declaration.
6499 (fontset_ref_via_base): Likewise.
6500 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
6501 to downcase.
6502
7f987ac0
EZ
65032000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
6504
6505 * msdos.c (IT_note_mouse_highlight): Process overlays in the
6506 correct order of priority. If help echo was found in an overlay,
6507 use that overlay as the object in which the help echo was found.
6508
e2db3069
MB
65092000-07-22 Miles Bader <miles@gnu.org>
6510
6511 * textprop.c (Fprevious_single_char_property_change): The initial
6512 property value should be from the position preceding POSITION, not
6513 following it.
6514
5e3203e4
EZ
65152000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
6516
6517 * coding.c (syms_of_coding): Doc fix for
6518 inhibit-iso-escape-detection.
6519
62145073
GM
65202000-07-21 Gerd Moellmann <gerd@gnu.org>
6521
c20aeb83
GM
6522 * xterm.c (note_mouse_highlight): Process overlays in the right
6523 order of priority.
34a7a267 6524
743934db
GM
6525 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
6526
6527 * xterm.c (note_mouse_highlight): If help-echo was found in an
52283633 6528 overlay, use that overlay as the object in which the help was found.
743934db 6529
d1dc7e43 6530 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 6531
62145073
GM
6532 * window.c (foreach_window): Instead of a fake variable argument
6533 list, take one USER_DATA argument.
6534 (foreach_window_1): Likewise, and call callback functions with two
6535 args, the window and USER_DATA.
6536 (struct check_window_data): New struct.
6537 (check_window_containing): Use it.
6538 (window_from_coordinates): Set up a struct check_window_data for
6539 foreach_window.
6540 (add_window_to_list, freeze_window_start): Change parameters
6541 according to new calling convention.
6542
6543 * window.h (foreach_window): Change prototype.
6544
6545 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
6546
65472000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
6548
6549 * xmenu.c (menu_help_callback): Call show_help_echo with
6550 additional arguments OBJECT and POS.
6551
11270583
KH
65522000-07-21 Kenichi Handa <handa@etl.go.jp>
6553
07b14857
KH
6554 * data.c (Faset): Allow storing any multibyte character in a
6555 string. Convert unibyte string to multibyte if necessary.
6556
11270583
KH
6557 * xfns.c (x_encode_text): New function.
6558 (x_set_name): Use x_encode_text.
6559 (x_set_title): Likewise.
6560
6561 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
6562
6563 * xterm.h (x_encode_text): Add prototype.
6564
bc75b4fd
DL
65652000-07-20 Dave Love <fx@gnu.org>
6566
6567 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
6568 xfree, not free.
6569
48c14970
EZ
65702000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
6571
6572 * msdos.c (help_echo_window): New variable.
6573 (syms_of_msdos): Initialize and staticpro it.
6574 (IT_note_mode_line_highlight): Set help_echo_window.
6575 (IT_note_mouse_highlight): Ditto.
6576 (dos_rawgetc): Store help_echo_window in the second event produced
6577 for HELP_EVENTs.
6578
6579 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
6580 Record the object that generated the help echo and the position of
6581 that object in help_echo_object and help_echo_pos. Record that
6582 some glyphs in a row are displayed in mouse-face.
6583 (IT_update_begin): Don't clear mouse highlight unless one of the
6584 enabled glyph rows is marked as being displayed in mouse-face.
6585 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
6586 and position recorded in help_echo_object and help_echo_pos to the
6587 event queue.
6588 (IT_menu_display): Accept a new argument PN: the pane number of
6589 the current menu pane. Record the pane number and the item
6590 number of the item which has associated help string.
6591 (XMenuActivate): Update the prototype for help_callback in
6592 function declaration. Call IT_menu_display with the current menu
6593 pane number as an additional argument. Call help_callback with
6594 two additional arguments: the pane number and the item number of
6595 the menu item associated with the help text.
6596 (help_echo_object, help_echo_pos): New variables.
6597 (syms_of_msdos): Initialize them and staticpro help_echo_object.
6598
6599 * msdos.h (XMenuActivate): Update prototype.
6600
4279296d
GM
66012000-07-19 Gerd Moellmann <gerd@gnu.org>
6602
47db06aa
GM
6603 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
6604 Add some more prototypes.
6605
6606 * xterm.c, xterm.h: Add some more prototypes.
6607
6608 * lisp.h (Fnext_single_char_property_change): Add prototype.
6609
6610 * dispnew.c (direct_output_for_insert): Remove confusing
6611 outer local variable mouse_face_overwritten_p.
6612 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
6613
4279296d
GM
6614 * alloc.c (allocate_string_data): Don't copy old string contents.
6615
670acd62
KH
66162000-07-19 Kenichi Handa <handa@etl.go.jp>
6617
6618 * coding.c (code_convert_region): Delete text properties before
6619 shrinking the conversion region.
6620
7cea38bc
GM
66212000-07-18 Gerd Moellmann <gerd@gnu.org>
6622
dc1cac59
GM
6623 * dispnew.c (update_text_area): Write the whole row if it
6624 has mouse-face in it.
6625
85a8aca9
GM
6626 * xfaces.c (face-alternative-font-family-alist): Remove
6627 DEFVAR_LISP; staticpro instead.
6628
34a7a267 6629 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
6630 new arguments.
6631
6632 * keyboard.c (show_help_echo): Add parameter WINDOW.
6633 (read_char): Call show_help_echo with window extracted from Lisp
6634 help event.
6635 (gen_help_event): Add parameter WINDOW.
6636
6637 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
6638
6639 * xterm.c (help_echo_window): New variable.
52283633 6640 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
7cea38bc
GM
6641 (XTread_socket): Pass help_echo_window to gen_help_event.
6642 (syms_of_xterm): Initialize and staticpro help_echo_window.
6643
f8276b77
DL
66442000-07-18 Dave Love <fx@gnu.org>
6645
52283633 6646 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
f8276b77 6647
088831a6
GM
66482000-07-18 Gerd Moellmann <gerd@gnu.org>
6649
3d6cd763
GM
6650 * alloc.c (allocate_string_data): If string had already data
6651 assigned, copy old contents to new string data.
6652
6653 * coding.c (syms_of_coding): Fix typo in spelling of variable
6654 `inhibit-iso-escape-detection'.
6655
088831a6
GM
6656 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
6657
6658 * Makefile.in: Add dependencies on dispextern.h.
6659 (alloca.o): Don't define malloc and define EMACS_FREE instead of
6660 `free'; both can conflict with system header files.
6661
bc8a8d55
KH
66622000-07-18 Kenichi Handa <handa@etl.go.jp>
6663
6664 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
6665 undefined.
6666
069f5950
DL
66672000-07-18 Dave Love <fx@gnu.org>
6668
6669 * window.c (Fwindow_list): Declare arg `window'.
6670
aa96c820
KH
66712000-07-18 Kenichi Handa <handa@etl.go.jp>
6672
6673 * coding.c (setup_coding_system): Don't override the explicitly
6674 specified designations.
6675
06be8d32
MB
66762000-07-15 Miles Bader <miles@gnu.org>
6677
6678 * editfns.c (char_property_eq, char_property_stickiness): Renamed
6679 from `text_property_eq' and `text_property_stickiness', respectively.
6680 (find_field, Fconstrain_to_field, char_property_eq)
6681 (char_property_stickiness): Changed to call char-property functions
6682 instead of text-property-only ones.
6683
6684 * textprop.c (Fnext_single_char_property_change): Made a subr (was
6685 `next_single_char_property_change'). Do more error checking, and
6686 cleanup limit behavior.
6687 (Fprevious_single_char_property_change): New function.
6688 (syms_of_textprop): Initialize new subrs.
6689
6690 * xdisp.c (display_prop_end, invisible_text_between_p):
6691 Call Fnext_single_char_property_change instead of
6692 next_single_char_property_change.
6693
3fddcdc3
JR
66942000-07-15 Jason Rumney <jasonr@gnu.org>
6695
6696 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
6697 after menu is finished with.
6698 (add_menu_item): Only consider wv->title as a menu title.
6699 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
6700
6701 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
6702 null title.
6703 (FONT_REGEXP): Remove unused macro, and its sub-components.
6704 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
6705
6706 * w32term.c (help_echo_object, help_echo_pos): New variables.
6707 (note_mode_line_highlight): Store additional information about the
6708 help-echo in help_echo_object and help_echo_pos. Check both
6709 `local-map' and `keymap' properties for changing the cursor
6710 (note_mouse_highlight): Store additional information about the
6711 help-echo in help_echo_object and help_echo_pos.
6712 (note_tool_bar_highlight): Set help_echo_object to nil and
6713 help_echo_pos to -1.
6714 (w32_read_socket): Use gen_help_event instead of filling
6715 input_events manually.
6716 (syms_of_w32term): Staticpro help_echo_object.
6717 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
52283633 6718 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
3fddcdc3
JR
6719 (x_clear_mouse_face): New function.
6720 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
6721 (x_update_window_begin): No need to turn off the mouse
6722 highlight here.
6723 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 6724 depending on whether they contain glyphs highlighted in mouse-face.
3fddcdc3
JR
6725 (x_fill_stretch_glyph_string): Consume runs of stretch
6726 glyphs instead of a single one.
6727 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
6728 with new argument list.
6729 (x_set_glyph_string_gc): Make sure the face's GC is valid.
6730 (x_append_glyph, x_append_composite_glyph)
6731 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
6732 changes in struct glyph starting 1999-12-27. See comments for
6733 xterm.c on 2000-07-05.
6734
178c5d9c
SS
67352000-07-14 Sam Steingold <sds@gnu.org>
6736
6737 * xfaces.c (realize_x_face): Fix the last patch:
6738 check `default_face' before dereferencing.
6739
6fe533f6
DL
67402000-07-14 Dave Love <fx@gnu.org>
6741
069f5950 6742 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 6743
dd7b81cf
KH
67442000-07-14 Kenichi Handa <handa@etl.go.jp>
6745
0693904a 6746 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 6747 default_face's fontset, not using the default fontset.
0693904a 6748
dd7b81cf
KH
6749 * coding.c (inhibit_iso_escape_detection): New variable.
6750 (syms_of_coding): Make it a Lisp variable.
6751 (detect_coding_iso2022): If inhibit_iso_escape_detection is
6752 nonzero, ignore ISO2022's escape sequence.
6753
d5aa31d8
GM
67542000-07-14 Gerd Moellmann <gerd@gnu.org>
6755
e5acf0ca
GM
6756 * alloca.c (malloc) [emacs]: Define as xmalloc.
6757
bd23a692
GM
6758 * xfns.c (Fx_show_tip): If frame parameters contain a position,
6759 use that instead of the mouse position. Add parameters DX and DY.
6760
6761 * dispextern.h (Fx_show_tip): Adjust number of parameters
6762 in prototype.
6763
9662da0b
GM
6764 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
6765 if HELP is a function, call it with OBJECT and POS as parameters
6766 to get the help to display.
6767 (gen_help_event, kbd_buffer_store_help_event): New functions.
6768 (kbd_buffer_get_event): Construct the Lisp help-event differently.
6769 (read_char): Call show_help_echo with new parameters.
6770
178c5d9c 6771 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
6772 Add prototypes.
6773
6774 * xterm.c (help_echo_object, help_echo_pos): New variables.
6775 (note_mode_line_highlight): Store additional information about the
6776 help-echo in help_echo_object and help_echo_pos. Check both
6777 `local-map' and `keymap' properties for changing the cursor
6778 (note_mouse_highlight): Store additional information about the
6779 help-echo in help_echo_object and help_echo_pos.
6780 (note_tool_bar_highlight): Set help_echo_object to nil and
6781 help_echo_pos to -1.
6782 (XTread_socket): Use gen_help_event instead of filling
6783 input_events manually.
6784 (syms_of_xterm): Staticpro help_echo_object.
6785
6786 * xmenu.c (menu_highlight_callback): Use
6787 kbd_buffer_store_help_event instead of setting up and input_event
6788 structure manually.
6789
6790 * xdisp.c (eval_form): GCPRO argument sexpr.
6791 (call_function): New function.
6792 (handle_single_display_prop): Use call_function and FUNCTIONP
6793 instead of checking whether if font_height is a symbol and
6794 using eval_form.
6795
6796 * eval.c (internal_condition_case_2): New function.
6797
6798 * lisp.h (FUNCTIONP): New macro.
6799 (internal_condition_case_2, call_function): Add prototypes.
6800
d5aa31d8
GM
6801 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
6802 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
6803 Always set `arg' member of input_events.
6804 (construct_menu_click): Unused function removed.
6805
6806 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
6807
6808 * w32term.c (construct_mouse_click, construct_mouse_wheel)
6809 (construct_drag_n_drop, x_scroll_bar_handle_click)
6810 (w32_read_socket): Always set `arg' member of input_events.
6811
6812 * keyboard.c (show_help_echo): Use eval_form. Add comment.
6813
6814 * lisp.h (eval_form): Add prototype.
6815
6816 * xdisp.c (eval_form): Make it externally visible.
6817
0f1a9b23
GM
68182000-07-13 Gerd Moellmann <gerd@gnu.org>
6819
6820 * xterm.c (x_handle_tool_bar_click): Store the frame in the
6821 frame_or_window slot of TOOL_BAR_EVENT input events instead of
6822 consing. For prefix events, store the frame in the `arg' slot of
6823 the event, otherwise store the key there.
6824 (XTread_socket): Instead of consing, use the frame_or_window slot
52283633 6825 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
0f1a9b23
GM
6826
6827 * xmenu.c (menu_highlight_callback): Store help string in the
6828 `arg' member of the input event; don't cons.
6829 (menubar_selection_callback): Use the `arg' slot of input events
6830 to queue additional information, instead of consing.
6831
6832 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
6833
6834 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
6835 TOOL_BAR_EVENTs.
6836 (w32_read_socket): Adapt to changes in HELP_EVENTs.
6837
6838 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
6839 input events to queue additional information, instead of consing.
6840
6841 * keyboard.c (kbd_buffer_gcpro): Renamed from
6842 kbd_buffer_frame_or_window. Now used for all Lisp objects
6843 referenced from the input queue.
6844 (kbd_buffer_store_event): Always use structure assignment for
6845 copying input events. Record all Lisp objects referenced from
6846 events in kbd_buffer_gcpro.
6847 (kbd_buffer_get_event): Construct Lisp `help-echo' events
6848 differently from input events. Test for prefix menu_bar_events
6849 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
6850 event in kbd_buffer_gcpro to nil.
6851 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
6852 frame_or_window is equal to its arg member as prefix events.
6853 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
6854 used by an input event to nil.
6855 (init_keyboard): Use two times the size of the input queue
6856 for kbd_buffer_gcpro.
6857 (syms_of_keyboard): Likewise.
6858
52283633
SM
6859 * emacs.c (handle_USR2_signal, handle_USR1_signal):
6860 Use USER_SIGNAL_EVENT.
0f1a9b23
GM
6861
6862 * termhooks.h (struct input_event): Add member `arg'.
6863 (MENU_BAR_EVENT): Renamed from menu_bar_event.
6864 (USER_SIGNAL_EVENT): Renamed from user_signal.
6865
6866 * xfaces.c (ASET): Remove definition.
6867
6868 * lisp.h (AREF, ASET, ASIZE): New macros.
6869
6870 * fontset.c (AREF, ASIZE): Remove definitions.
6871
6872 * fns.c (AREF): Remove definition.
178c5d9c 6873
0f1a9b23
GM
6874 * composite.c (AREF): Remove definition.
6875
712eaef2
GM
68762000-07-12 Gerd Moellmann <gerd@gnu.org>
6877
d8ee7803
GM
6878 * dispnew.c (redraw_overlapped_rows): Add missing local.
6879 (scrolling_window): Remove debug code.
6880
712eaef2
GM
6881 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
6882 Before scrolling, turn off a mouse-highlight in the window
6883 being scrolled.
6884
6885 * xterm.c (x_update_window_end): Add parameter
6886 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
6887 redisplay in XTframe_up_to_date.
6888 (x_clear_mouse_face): New function.
6889 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
6890
6891 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
6892 current glyph row.
6893 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
6894 it when any row is written to that contains glyphs highlighted in
6895 mouse-face.
6896 (update_window): Call the window update end hook with new
6897 parameter MOUSE_FACE_OVERWRITTEN_P.
6898 (direct_output_for_insert): Give up if row contains mouse-face.
6899
6900 * dispextern.h (struct redisplay_interface): Add parameter
6901 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
6902 (clear_mouse_face): New function pointer member.
6903
02010917
SM
69042000-07-11 Stefan Monnier <monnier@cs.yale.edu>
6905
6906 * syntax.c (back_comment): Use one switch rather than a few `if's.
6907 Obey open_paren_in_column_0_is_defun_start.
6908 When reverting to the `slow' method, try to nicely handle the case
6909 of nested comments by checking that the comment-starter we found
6910 does indeed match the comment-ender.
6911 (scan_sexps_forward, scan_sexps_forward):
6912 Ignore excessive opening parenthesis rather than throwing an error.
6913
d76c03ea
GM
69142000-07-11 Gerd Moellmann <gerd@gnu.org>
6915
6916 * doc.c (Fsubstitute_command_keys): Handle case that a GC
6917 in Fwhere_is_internal or get_keymap_1 relocates string contents.
6918
6919 * dispnew.c (direct_output_forward_char): Give up if currently
6920 displaying a message instead of the minibuffer contents.
6921
6922 * xterm.c (x_update_window_begin): No need to turn off the mouse
6923 highlight here.
6924 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 6925 depending on whether they contain glyphs highlighted in mouse-face.
d76c03ea
GM
6926
6927 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
6928 compare the mouse_face_p flags of both rows.
6929
6930 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
6931
d55ead18
EZ
69322000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
6933
6934 * keyboard.c (show_help_echo): Accept additional parameter
6935 ok_to_overwrite_keystroke_echo.
6936 (read_char): Call show_help_echo with a zero
6937 ok_to_overwrite_keystroke_echo argument.
52283633 6938 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
d55ead18
EZ
6939 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
6940 ok_to_overwrite_keystroke_echo argument.
6941 * w32menu.c (w32_menu_display_help): Call show_help_echo with
6942 non-zero ok_to_overwrite_keystroke_echo argument.
6943
df75b1a3
GM
69442000-07-10 Gerd Moellmann <gerd@gnu.org>
6945
4b92c49a
GM
6946 * xdisp.c (try_window_id): If changes are all below what is
6947 displayed in the window, and point is in the window, we still
6948 might have to find point on the display.
6949
6950 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
6951 glyphs instead of a single one.
6952 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
6953 with new argument list.
6954 (x_set_glyph_string_gc): Make sure the face's GC is valid.
6955
df75b1a3
GM
6956 * keymap.c (get_keymap_1): Add comment that this function can GC.
6957 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
6958 comment that functions can GC.
6959 (Fset_keymap_parent): GCPRO arg KEYMAP.
6960
4314cf3e
EZ
69612000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
6962
6963 * msdos.c (XMenuActivate): After exiting the menu, restore the
6964 echo area message and erase it.
6965
ab49ce15
KH
69662000-07-10 Kenichi Handa <handa@etl.go.jp>
6967
6968 * fontset.c (Ffontset_info): Make the return value more compatible
6969 with that of Emacs 20.
6970
090a072f
GM
69712000-07-07 Gerd Moellmann <gerd@gnu.org>
6972
6973 * eval.c (Fsignal): Handle case that backtrace_list is null.
6974
f92de4a6
KH
69752000-07-07 Kenichi Handa <handa@etl.go.jp>
6976
6977 * ccl.c (Fccl_execute): Typo fixed.
6978
dd8888a1
GM
69792000-07-06 Gerd Moellmann <gerd@gnu.org>
6980
e5c81191 6981 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 6982
dd8888a1
GM
6983 * window.c (Fwindow_list): Reverse list at the end.
6984 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
6985 means allow windows on OWINDOW's frame, only.
6986 (window_loop): Simplified; use Fwindow_list.
6987
6988 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
6989
485266d0
GM
69902000-07-05 Gerd Moellmann <gerd@gnu.org>
6991
6992 * xterm.c (XTread_socket): Increment handling_signal at the start,
6993 decrement it at the end.
6994
6995 * eval.c (handling_signal): New variable.
6996 (Fsignal): Abort if handling_signal is non-zero.
6997
6998 * lisp.h (handling_signal): External declaration.
178c5d9c 6999
485266d0
GM
7000 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
7001
80fcd514
KR
70022000-07-05 Ken Raeburn <raeburn@gnu.org>
7003
7004 Sound support for NetBSD through "Linux emulation" support:
7005 * config.in (HAVE_SOUNDCARD_H): Undef.
7006 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
7007 * Makefile.in (LIBSOUND): New variable.
7008 (LIBES): Include it.
52283633
SM
7009 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
7010 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
80fcd514
KR
7011 (vox_open): Use DEFAULT_SOUND_DEVICE.
7012 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
7013
d5c5cddd
GM
70142000-07-05 Gerd Moellmann <gerd@gnu.org>
7015
7016 * print.c (print_error_message): If Vsignaling_function is set,
7017 show it in *Messages*.
7018
7019 * lisp.h (Vsignaling_function): External declaration.
7020
7021 * eval.c (Vsignaling_function): New variable.
7022 (Fsignal): Compute it.
7023 (syms_of_eval): Staticpro it.
7024
65171e3a
DL
70252000-07-05 Dave Love <fx@gnu.org>
7026
7027 * syswait.h: Use the autoconf recommended approach. Old code
7028 #if'd out in case we need to revert.
7029
178c5d9c 7030 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 7031
e2c46326
AI
70322000-07-05 Andrew Innes <andrewi@gnu.org>
7033
7034 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
7035 when non-NULL instead of __morecore, to take account of buffer
7036 memory. This also solves a problem with spurious memory warnings
7037 on Windows.
7038
7039 * ralloc.c: Make real_morecore non-static.
7040
7041 * eval.c (internal_condition_case): Comment out abort if
7042 interrupt_input_blocked is not zero.
7043
7044 * makefile.nt: Add support for `bootstrap' and related targets.
7045 Include minimal debug info in emacs.exe in release build.
7046 Remove all dependencies on lisp.h, and fixup some others.
7047
7048 * w32.c (init_environment): Install code from 20.7 for providing
7049 default values for environment variables, based on the
7050 executable's own location.
52283633 7051 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
e2c46326
AI
7052 (sys_socket): Install socket inheritance bug fix from 20.7.
7053
7054 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
7055 here via blockinput.h).
7056
a027a91b
SM
70572000-07-05 Stefan Monnier <monnier@cs.yale.edu>
7058
e4b31601
SM
7059 * w32menu.c (w32_menu_display_help):
7060 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
7061
7062 * keyboard.h (show_help_echo): Declare.
7063
7064 * keyboard.c (show_help_echo): New function, extracted from read_char.
7065 Feval its `msg' argument if it's a cons cell.
7066 (read_char): Use it.
4cf8d9d5 7067 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 7068
178c5d9c 7069 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 7070 (note_tool_bar_highlight, XTread_socket):
178c5d9c 7071 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
7072 (dos_rawgetc):
7073 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
7074 (note_tool_bar_highlight, w32_read_socket):
7075 Do not gratuitously ignore non-string `help-echo' properties.
7076
88d75730
GM
70772000-07-05 Gerd Moellmann <gerd@gnu.org>
7078
969f7e79
GM
7079 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
7080
71201b00
GM
7081 * window.c (delete_all_subwindows): Reset Vwindow_list.
7082
88d75730
GM
7083 * xterm.c (x_append_glyph, x_append_composite_glyph)
7084 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
7085 changes in struct glyph starting 1999-12-27. Some bit-fields of
7086 struct glyph were not set, which made glyphs unequal when compared
7087 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
7088 effects were the result. This also depended on the contents of
7089 memory returned by xmalloc. If flickering happens again, activate
7090 the code in clear_glyph_row that's in #if 0. If the flickering is
52283633 7091 gone with that, chances are that it is caused by something similar.
88d75730
GM
7092
7093 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 7094
88d75730
GM
7095 * dispextern.h: Add some comments.
7096
7097 * window.c (add_window_to_list): Add parameter LIST.
7098 (window_list): Order list so that, for each frame, windows are
7099 in canonical order, and so that frames appear in the list in
7100 the order given by Vframe_list.
7101 (next_window): Reverse the handling of NEXT_P.
7102
53654733
GM
71032000-07-04 Gerd Moellmann <gerd@gnu.org>
7104
87efd256
GM
7105 * window.c (Vwindow_list): New variable.
7106 (make_window, delete_window): Set Vwindow_list to nil.
7107 (check_window_containing): New function.
7108 (window_from_coordinates): Rewritten.
7109 (add_window_to_list, window_list, candidate_window_p)
7110 (decode_next_window_args, next_window): New functions.
52283633 7111 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
87efd256
GM
7112 (Fwindow_list): New function.
7113 (Fother_window): Cleaned up.
7114 (foreach_window): Add a longer "variable argument list". Let
7115 callback function return 0 to indicate that cycling over windows
7116 should stop.
7117 (foreach_window_1): Likewise.
7118 (freeze_window_start): Return int.
7119 (init_window): New function.
7120 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
7121
7122 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
7123 input_event with bzero.
7124 (main): Call init_window.
7125
53654733
GM
7126 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
7127 a menu filter.
7128
4a8c194f
KH
71292000-07-04 Kenichi Handa <handa@etl.go.jp>
7130
7131 * composite.h (make_composition_value_copy): Extern it.
7132
7133 * composite.c (make_composition_value_copy): New function.
7134
7135 * editfns.c (Fformat): While copying text properties, make each
7136 composition property value a copy.
7137
7138 * fns.c (concat): While copying text properties, make each
7139 composition property value a copy.
7140
831a6cb0
GM
71412000-07-03 Gerd Moellmann <gerd@gnu.org>
7142
2f516940
GM
7143 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
7144
178c5d9c 7145 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
7146 marked already.
7147
831a6cb0
GM
7148 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
7149 include those frames as candidates which have their focus
7150 redirected to the minibuffer frame.
7151
d9c4f922
SM
71522000-07-03 Stefan Monnier <monnier@cs.yale.edu>
7153
7154 * fns.c (Fputhash): Return `value' rather than nil.
7155
3780bc22
GM
71562000-06-30 Gerd Moellmann <gerd@gnu.org>
7157
97d176db
GM
7158 * frame.c (next_frame): Don't check focus redirection in case
7159 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
7160 unless their focus is redirected, which contradicts the
7161 specification of next-frame, and leads to infinite loops in
7162 certain situations when cycling through windows with next-window.
7163
dca9961d
KH
71642000-06-30 Kenichi Handa <handa@etl.go.jp>
7165
7166 * coding.c (code_convert_region): Even if the length of text is
7167 zero, try to convert it if coding->type is coding_type_ccl.
7168 (decode_coding_string, encode_coding_string): Likewise.
7169
d5483ab1
GM
71702000-06-28 Gerd Moellmann <gerd@gnu.org>
7171
af5c25e1 7172 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 7173 the display if windows_or_buffers_changed.
af5c25e1
GM
7174
7175 * dispnew.c (struct row_entry): New structure.
7176 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
7177 (row_table_size, old_lines, new_lines, old_lines_size)
7178 (new_lines_size, run_pool, runs_size, runs): New variables.
7179 (add_row_entry): New function.
7180 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 7181 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
7182 holding them in local variables. Use a larger hash table whose
7183 size depends on glyph matrix sizes. Don't use bzero to clear the
7184 hash table; instead, clear used slots only.
7185
7186 * fns.c (next_almost_prime): Make it externally visible.
7187
7188 * lisp.h (next_almost_prime): Add prototype.
7189
d5483ab1
GM
7190 * s/isc4-0.h (sigunblock): Define.
7191
7192 * s/sco5.h (sigunblock): Define.
7193
93e40f40
DL
71942000-06-27 Dave Love <fx@gnu.org>
7195
7196 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
7197 (moved to osf5-0.h).
7198 [!NOT_C_CODE]: Protect string.h stuff.
7199
7200 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
7201 (sys_siglist, NSIG): Definitions moved here from osf1.h.
7202
3c4b7685
GM
72032000-06-27 Gerd Moellmann <gerd@gnu.org>
7204
97d176db 7205 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
7206 below the last line from the needed window height.
7207
32cad0aa
SM
72082000-06-26 Stefan Monnier <monnier@cs.yale.edu>
7209
7210 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
7211 (Fwidget_get): Use it.
7212 (syms_of_fns): Defsubr it.
7213
2c69ced2
GM
72142000-06-26 Gerd Moellmann <gerd@gnu.org>
7215
178c5d9c 7216 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
7217 display info for XIM.
7218 (xim_open_dpy): Likewise.
7219 (xim_close_dpy): Don't free the display info's XIM.
7220
7221 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
7222
7223 * config.in (USE_XIM): New define.
7224
3fc720e4
GM
7225 * keymap.c (get_keyelt): For menu-items containing a `:filter
7226 FILTER', apply FILTER to the menu-item's definition to get the
7227 real definition to use.
7228
7229 * lisp.h (QCfilter): External declaration.
7230
2c69ced2
GM
7231 * xfns.c (Fimage_size): New function.
7232 (syms_of_xfns): Defsubr it.
7233
f978b2a2
AS
72342000-06-26 Andreas Schwab <schwab@suse.de>
7235
7236 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
7237 Fstring_as_unibyte.
7238
94cc7892
DL
72392000-06-25 Dave Love <fx@gnu.org>
7240
52283633 7241 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
94cc7892
DL
7242
7243 * Makefile.in (blockinput.h): Depend on atimer.h.
7244 (atimer.h): Depend on systime.h.
7245
52283633 7246 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
94cc7892 7247
52283633 7248 * atimer.h: Protect against multiple inclusion. Include systime.h.
94cc7892
DL
7249
7250 * lisp.h (swap_in_global_binding): Declare.
7251
b8c24556
KR
72522000-06-24 Ken Raeburn <raeburn@gnu.org>
7253
7254 * process.c (Fopen_network_stream): Turn off atimers for duration
7255 of call to connect. (Patch from Gerd.)
7256
8cf8560b
DL
72572000-06-23 Dave Love <fx@gnu.org>
7258
511c7541
DL
7259 * ralloc.c: Maybe include unistd.h
7260
8cf8560b
DL
7261 * emacs.c (setgrp): Undefine before defining.
7262 (malloc_warning, set_time_zone_rule, index): Prototype.
7263
7264 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
7265 HAVE_STRUCT_TIMEZONE.
7266
7267 * s/osf1.h: Move string.h hack here from alpha.h and make it
7268 conditional.
7269 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
7270 _XOPEN_SOURCE.
7271 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
7272 (SOCKLEN_TYPE): Don't define.
7273
7274 * m/alpha.h: Remove string.h hack.
7275
7276 * s/osf5-0.h: New file.
7277
7278 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
7279 include time.h, done by systime.h.
7280 [__FreeBSD__]: Remove redundant includes.
7281
3fc720e4 7282 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
7283 (delete_temp_file): Return Qnil to avoid warning.
7284
7285 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
7286
7287 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
7288 HAVE_X_WINDOWS.
7289
7290 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
7291
7292 * composite.h (compose_text): Declare.
7293
7294 * xterm.c: Don't include sys/types.h unconditionally. Don't
7295 protect its inclusion with !USG (following xmenu.c).
7296
ea055732
GM
72972000-06-23 Gerd Moellmann <gerd@gnu.org>
7298
7299 * xfns.c (x_create_tip_frame): Initialize frame's colors like
7300 in x_create_frame.
7301
74b01b80
EZ
73022000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
7303
7304 * coding.c (decode_eol_post_ccl): Special handling for undecided
7305 and inconsistent EOL types.
7306
64f3a166
GM
73072000-06-22 Gerd Moellmann <gerd@gnu.org>
7308
16cf31f7
GM
7309 * xrdb.c (x_load_resources): Add default resource for scroll bar's
7310 trough color and main window's background color.
7311
52283633 7312 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
16cf31f7
GM
7313
7314 * xterm.h (Xt_app_con): External declaration.
7315
7316 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 7317
486a103d
GM
7318 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
7319
64f3a166
GM
7320 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
7321 (handle_invisible_prop): Record the start of invisible text in
7322 it->add_overlay_start.
7323 (struct overlay_entry): Add member `overlay'.
7324 (handle_overlay_change): Simplify.
7325 (next_overlay_string): After having processed overlay strings at the
7326 end of the buffer, record that fact in
7327 it->overlay_strings_at_end_processed_p.
7328 (compare_overlay_entries): If before- and after-strings come
7329 from the same overlay, let before-strings come first.
7330 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
7331 (load_overlay_strings): Take it->add_overlay_start into account
7332 when adding overlay strings.
7333
7334 * dispextern.h (struct it): Add member add_overlay_start.
7335
bb746ea6
DL
73362000-06-22 Dave Love <fx@gnu.org>
7337
7338 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
7339
7340 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
7341
a8f573f3
KH
73422000-06-22 Kenichi Handa <handa@etl.go.jp>
7343
7344 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
7345 is greater than 0.
7346
9f2bbc92
DL
73472000-06-21 Dave Love <fx@gnu.org>
7348
178c5d9c 7349 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 7350
3ee5041c
SM
73512000-06-21 Stefan Monnier <monnier@cs.yale.edu>
7352
7353 * syntax.c (back_comment): Simplify string-parity counting (with
7354 the added benefit of handling multiple string-styles as long as
7355 they are not intertwined).
7356 Jump to the slow code as soon as a comment starter is found in
7357 a "string_lossage" position. Fixes the case: " /* " /* " */.
7358
4c343001
DL
73592000-06-21 Dave Love <fx@gnu.org>
7360
7361 * Makefile.in: Use GETLOADAVG_LIBS.
7362
7363 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
7364 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
7365
e6365855
SM
73662000-06-20 Stefan Monnier <monnier@cs.yale.edu>
7367
7368 * syntax.c (describe_syntax): Recognize the `n'estable bit.
7369 (Fforward_comment, scan_lists):
7370 Check the comstyle of single-char comment-starters.
7371 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
7372 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
7373 Check the comstyle of single-char comment-starters.
7374 Clarify control-flow around the Scomment case.
e6365855 7375
5700d2cc
DL
73762000-06-20 Dave Love <fx@gnu.org>
7377
d355bd8a
SM
7378 * fns.c (make_hash_table, maybe_resize_hash_table):
7379 Cast arg of next_almost_prime.
5700d2cc 7380
178c5d9c 7381 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
7382
7383 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
7384 and unistd.h.
7385
4a27bdfb
GM
73862000-06-20 Gerd Moellmann <gerd@gnu.org>
7387
a61d762c 7388 * keyboard.c (adjust_point_for_property): Check if display
52283633 7389 property should be treated as intangible by looking at its value.
a61d762c 7390
178c5d9c 7391 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
7392 (display_prop_intangible_p): New functions.
7393
7394 * dispextern.h (display_prop_intangible_p): Add prototype.
7395
7396 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 7397
4a27bdfb
GM
7398 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
7399 argument to sigprocmask.
7400
7401 * s/sco5.h (sigblock): Redefined to pass a pointer as second
7402 argument to sigprocmask.
7403
7404 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
7405 sigprocmask_set, and pass a pointer to it to sigprocmask.
7406
7407 * sysdep.c (sigprocmask_set): New variable.
7408
7409 * fileio.c (make_temp_name): Don't use `%s' in string passed to
7410 report_file_error.
7411
427ec082
SS
74122000-06-20 Sam Steingold <sds@gnu.org>
7413
7414 * xrdb.c: Don't declare xmalloc, xrealloc.
7415
8972fe79 74162000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
7417
7418 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
7419 (re_comp): Cast gettext return value to avoid complaints when
7420 !HAVE_LIBINTL.
7421
074b6efe
DL
74222000-06-20 Dave Love <fx@gnu.org>
7423
52283633 7424 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
f85c008a 7425
5700d2cc 7426 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 7427
d355bd8a 7428 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
7429
7430 * m/alpha.h: Don't declare xmalloc, xrealloc.
7431
0af4f205
DL
7432 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
7433
7434 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
7435
7436 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
7437
7438 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
7439 HAVE_GETWD.
7440
074b6efe
DL
7441 * keyboard.h (poll_for_input_1): Declare.
7442
7443 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
7444
7445 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
7446
7447 * doprnt.c: Don't declare xmalloc, xrealloc.
7448
7449 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
7450 (getenv, ctime, getwd): Removed.
7451 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
7452
7453 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
7454 x_set_tool_bar_lines.
7455
7456 * config.in: Add HAVE_GETWD. Move some definitions above
7457 machine/system includes.
7458
68a5e97b
KH
74592000-06-20 Kenichi Handa <handa@etl.go.jp>
7460
95417e1e
KH
7461 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
7462
68a5e97b
KH
7463 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
7464 contain information about ENCODING.
7465
7466 * fontset.c (FONTSET_ASCII): Use the first element of char table
7467 for an ASCII font, not defalt slot.
7468 (fontset_ref_via_base): If FONTSET doesn't contain information for
7469 C, try the default fontset.
7470 (make_fontset): Don't copy the default fontset.
7471 (fontset_font_pattern): Likewise.
7472 (accumulate_font_info): If ELT is nil, use the corresponding
7473 element in the default fontset.
7474
3b4fa1b2
DL
74752000-06-19 Dave Love <fx@gnu.org>
7476
943e731c
DL
7477 * syntax.c (Fparse_partial_sexp): Doc fix.
7478
7479 * regex.h: Test PROTOTYPES as well as __STDC__.
7480
3b4fa1b2
DL
7481 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
7482 errno, strerror. Put text after #endif in comment.
7483
52283633 7484 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
3b4fa1b2
DL
7485
7486 * xterm.c (x_frame_of_widget): Likewise.
7487
cdf0357b
GM
74882000-06-19 Gerd Moellmann <gerd@gnu.org>
7489
7490 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
7491 to Vfundamental_mode_abbrev_table.
7492
7493 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
7494 bogus objects are marked. This slows down GC by ~80 percent, but
7495 it might be worth trying when debugging GC-related problems.
7496 This feature requires conservative stack marking to be enabled.
7497
7498 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
7499 returns XLookupChars, reset `modifiers' to zero.
7500
998e9f8c
DL
75012000-06-19 Dave Love <fx@gnu.org>
7502
7503 * mktime.c: Unprotoized.
7504
18e21ce8 75052000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
7506
7507 * data.c (set_internal): If variable is frame-local,
7508 store the new value immediately into the frame parameter alist.
7509
140c4ac6
KR
75102000-06-19 Ken Raeburn <raeburn@gnu.org>
7511
14358466
KR
7512 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
7513 in the custom handler pointer.
7514
140c4ac6
KR
7515 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
7516 value, or checks for CHAR_META can fail when Lisp_Object is a
7517 union type.
7518 * keymap.c (get_keyelt): Likewise.
7519
10d7bf84
KH
75202000-06-19 Kenichi Handa <handa@etl.go.jp>
7521
7522 * ccl.h (struct ccl_program): New member eol_type.
7523 (struct ccl_spec): New member cr_carryover.
7524
7525 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
7526 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
7527
7528 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
7529 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
7530 (decode_eol_post_ccl): New function.
7531 (decode_coding): Don't detect EOL format here for CCL based coding
7532 systems.
7533 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
7534 decode_eol_post_ccl after running the CCL program.
7535 (code_convert_region): Don't detect EOL format here for CCL based
7536 coding systems.
7537 (decode_coding_string): Likewise.
7538
52e386c2
KR
75392000-06-18 Ken Raeburn <raeburn@gnu.org>
7540
7541 * charset.c (update_charset_table): Use XINT on "iso_final_char"
7542 when treating it as an integer.
7543
7544 * coding.h (encode_coding_string): Declare.
7545
7546 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
7547 it as an integer.
7548
7549 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
7550 "xkeymap" to avoid shadowing the "enum map_type" value that needs
7551 to be passed to get_local_map.
7552
7553 * sound.c (Fplay_sound): Don't call make_number on
7554 Frun_hook_with_args count argument.
7555
7556 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
7557 for lisp objects in X event structure data field, when lisp
7558 objects are represented with unions.
7559 (x_scroll_bar_to_input_event): Ditto.
7560
b357b9d4
KR
75612000-06-16 Ken Raeburn <raeburn@gnu.org>
7562
7563 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
7564 termination of string. Fix sense of test whether
7565 Vline_number_display_limit is an integer.
b357b9d4 7566
a871441d
GM
75672000-06-16 Gerd Moellmann <gerd@gnu.org>
7568
a9021acd
GM
7569 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
7570 only if HAVE_X_WINDOWS.
7571
6344985d
GM
7572 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
7573 of titles.
7574
427ec082 7575 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
7576 out of bounds.
7577
228b083e
EZ
75782000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
7579
7580 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
7581 of its headers.
7582
c25b53a2
KH
75832000-06-15 Kenichi Handa <handa@etl.go.jp>
7584
7585 * coding.c (decode_coding_emacs_mule): Always set src_base at the
7586 start of the while loop.
7587
a6981b11
GM
75882000-06-15 Gerd Moellmann <gerd@gnu.org>
7589
e9924e52
GM
7590 * atimer.c (alarm_signal_handler): Add forward declaration.
7591
a6981b11
GM
7592 * data.c (set_internal): Remove debug code.
7593
25fa6deb
GM
75942000-06-14 Gerd Moellmann <gerd@gnu.org>
7595
dce6b995
GM
7596 * Makefile.in (bootstrap-temacs): Add `-I../src'.
7597
9f817ea4
GM
7598 * unexec.c (toplevel) [COFF]: Include coff.h.
7599
7600 * s/lynxos.h: New file.
7601
7602 * keymap.c (Fsingle_key_description): Enclose function key and
7603 event symbol names in angle brackets.
7604
8a4e3c0c
GM
7605 * xdisp.c (setup_echo_area_for_printing): Call
7606 message_log_maybe_newline if message_buf_print is not set.
7607
7608 * print.c (printchar, strout): Don't check message_buf_print
427ec082 7609 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
7610 function does something useful even when message_buf_print is
7611 already set.
7612
52283633
SM
7613 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
7614 New variables.
25fa6deb
GM
7615 (ensure_echo_area_buffers): Initialize echo buffer's
7616 truncate lines setting to nil.
7617 (with_echo_area_buffer): Don't set the echo buffer's truncate
7618 lines setting here.
8a4e3c0c 7619 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
7620 of message_truncate_lines.
7621 (resize_mini_window): Handle case that lines are truncated.
52283633
SM
7622 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
7623 DEFVAR_BOOL message-truncate-lines.
25fa6deb
GM
7624
7625 * keyboard.c (read_char): Bind message-truncate-lines to t
7626 while displaying a help-echo.
7627
7628 * lisp.h (Qmessage_truncate_lines): External declaration.
7629
163dcff3
GM
76302000-06-13 Gerd Moellmann <gerd@gnu.org>
7631
1681ead6
GM
7632 * xdisp.c (Vline_number_display_limit): Renamed from
7633 line_number_display_limit.
7634 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
7635 Extend documentation string. Initialize
7636 Vline_number_display_limit to nil meaning no limit.
7637 (decode_mode_spec): Use Vline_number_display_limit with its new
7638 meaning.
7639
163dcff3
GM
7640 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
7641
18e21ce8 76422000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
7643
7644 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 7645
163dcff3
GM
7646 * xfns.c (x_set_frame_parameters): Comment fix.
7647
7648 * frame.c (store_frame_param): Call swap_in_global_binding if the
7649 variable's current binding was chosen based on this frame.
7650
7651 * data.c (swap_in_global_binding): New function.
7652
a704139d
EZ
76532000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
7654
7655 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
7656 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
7657
9b6610db
EZ
76582000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
7659
7660 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
7661
c68833d2
JR
76622000-06-12 Jason Rumney <jasonr@gnu.org>
7663
7664 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
7665
7666 * w32.h (EMACS_W32_H): Renamed from _NT_H_
7667
7668 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
7669
7670 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
7671
ed1056b3
GM
76722000-06-12 Gerd Moellmann <gerd@gnu.org>
7673
7674 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
7675 (syms_of_xfaces): Defsubr Sdump_colors.
7676 (x_free_colors): Don't treat b&w specially on default visual.
7677 (x_free_dpy_colors): New function.
7678 (free_face_colors): Don't check visual class; it's done
7679 in x_free_colors.
7680
7681 * xterm.c (x_frame_of_widget): New function.
7682 (x_alloc_nearest_color_for_widget): Use it.
7683 (x_copy_dpy_color): New function.
7684 (x_destroy_window): Free various colors.
7685
5050a2ef
KH
76862000-06-12 Kenichi Handa <handa@etl.go.jp>
7687
7688 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
7689
7690 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
7691
7692 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
7693
7694 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
7695
7696 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
7697
fb1b041d
DL
76982000-06-11 Dave Love <fx@gnu.org>
7699
7700 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
7701
ff96b5f4
EZ
77022000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
7703
7704 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
7705
db8eeecd
GM
77062000-06-11 Gerd Moellmann <gerd@gnu.org>
7707
ed1056b3 7708 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
7709 to `XEvent *'.
7710
49b71c5f
KH
77112000-06-10 Kenichi Handa <handa@etl.go.jp>
7712
c479bd55
KH
7713 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
7714 (regex_compile): Fix the code for handling the case of single byte
7715 char and multibyte char being mixed in a range within [...].
7716
ff6a65c2
KH
7717 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
7718 and dst_multibyte members of coding.
7719
49b71c5f
KH
7720 * charset.c (update_charset_table): Update the table
7721 bytes_by_char_head.
7722 (init_charset_once): Initialize elements of bytes_by_char_head to
7723 1 except for leading codes for private charases.
7724
7725 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
52283633 7726 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
49b71c5f 7727
9e80b57d
KR
77282000-06-09 Ken Raeburn <raeburn@gnu.org>
7729
7730 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
7731 access the data it doesn't point to.
7732
f83fe4b4
GM
77332000-06-08 Gerd Moellmann <gerd@gnu.org>
7734
7735 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 7736 will be translated to a switch-frame event when reading the
f83fe4b4
GM
7737 event queue. This is necessary because Emacs otherwise won't
7738 perform a switch-frame to a new frame until some other event, for
7739 example a keystroke event, forces it to do so. This has various
7740 effects, one visible being that the cursor of a frame created with
7741 C-x 5 2 or switched to with a window manager key binding like
7742 A-TAB stays hollow because selected_window isn't on the newly
7743 focused frame until the switch-frame is performed.
7744
7745 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
7746 generating a switch-frame event if necessary.
7747
7748 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
7749
7750 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
7751 it's an integer.
7752
0890801b
KH
77532000-06-08 Kenichi Handa <handa@etl.go.jp>
7754
52283633 7755 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
0890801b 7756
173cbca8
GM
77572000-06-07 Gerd Moellmann <gerd@gnu.org>
7758
3091c2a6
GM
7759 * window.c (displayed_window_lines): Take empty lines at
7760 the bottom of a window into account.
427ec082 7761
f38952fe
GM
7762 * window.c (displayed_window_lines): New function.
7763 (Fmove_to_window_line): Use displayed_window_lines to determine
7764 the number of lines to move, instead of using the window's height.
7765
7766 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
7767 to stop reading, even if the form read sets point to a different
7768 value when evaluated.
7769
427ec082 7770 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
7771 put the cursor.
7772
6ba6c818
KH
77732000-06-07 Kenichi Handa <handa@etl.go.jp>
7774
7775 * fileio.c (e_write): Free composition data if stored in
7776 coding->cmp_data.
7777
5f1aea9a
GM
77782000-06-06 Gerd Moellmann <gerd@gnu.org>
7779
666852af
GM
7780 * xdisp.c (display_line): Set row's and iterator's
7781 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
7782 Set cursor even if row ends in the middle of a character.
7783 (dump_glyph_row): Print values of new flags.
7784 (redisplay_window) <cursor movement in unchanged window>: When
7785 point has been moved forward, and PT is at the end of the cursor
7786 row, don't place the cursor in the next row if the cursor row ends
7787 in the middle of a character or at ZV.
7788
7789 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
7790 (struct glyph_row): Add starts_in_middle_of_char_p and
7791 ends_in_middle_of_char_p.
7792 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
7793 ends_in_middle_of_char_p flag.
7794 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
7795
d13f3e2e
GM
7796 * term.c (append_glyph): Revert change of 2000-06-06.
7797
7798 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
7799 padding glyph not fitting on line as whole character not
7800 fitting on line.
7801
5f1aea9a
GM
7802 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
7803 this isn't true for images with `:ascent 100'.
7804
10cda9b0
KH
78052000-06-06 Kenichi Handa <handa@etl.go.jp>
7806
ed00559d
KH
7807 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
7808 as modified if it is originally unmodified.
7809
10cda9b0
KH
7810 * term.c (encode_terminal_code): Change the way to check if
7811 terminal coding does any conversion.
7812 (append_glyph): Set glyph->pixel_width correctly.
7813
7814 * xdisp.c (display_line): While checking line continuation, pay
7815 attention to a padding glyph.
7816
1969fae2
GM
78172000-06-05 Gerd Moellmann <gerd@gnu.org>
7818
7819 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
7820
162ccef4
DL
78212000-06-05 Dave Love <fx@gnu.org>
7822
f19f32dd
DL
7823 * xdisp.c: Include fontset.h.
7824
7825 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
7826
7827 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
7828
7829 * dispnew.c: Conditionally include term.h.
7830
7831 * coding.h: Declare code_convert_string_norecord.
7832
7833 * frame.h (struct frame): Use volatile unconditionally.
7834
7835 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
7836
7837 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
7838
7839 * systime.h: Protect against multiple inclusion.
7840 (timezone) [USG5_4]: Define as time_t.
7841
7842 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
7843 (Foptimize_char_table, make_temp_name): Declare.
7844
7845 * Makefile.in (xdisp.o): Depend on fontset.h.
7846
7847 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
7848
7849 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
7850 (Foptimize_char_table, make_temp_name): Declare.
7851
427ec082 7852 * s/irix4-0.h:
162ccef4
DL
7853 * s/irix5-0.h:
7854 * s/netbsd.h: Don't define autoconfiscated MATHERR.
7855
2082fe81
DL
78562000-06-02 Dave Love <fx@gnu.org>
7857
7858 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
7859
dcf671d2
GM
78602000-06-02 Gerd Moellmann <gerd@gnu.org>
7861
7862 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 7863 result face, set flags in that face indicating that colors may not
dcf671d2
GM
7864 be freed.
7865
7866 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
7867 glyph, use the ASCII NUL character to determine the face.
7868
d42122a3
DL
78692000-06-02 Dave Love <fx@gnu.org>
7870
7871 * sysdep.c: Conditionally include stdlib.h, unistd.h.
7872 (VFORK_RETURN_TYPE): Remove.
427ec082 7873
d42122a3
DL
7874 * config.in: Add NO_MATHERR.
7875
dd432f16
DL
78762000-06-01 Dave Love <fx@gnu.org>
7877
90aa4ea8
DL
7878 * cmds.c (internal_self_insert): Don't check
7879 Vbefore_change_function, Vafter_change_function.
7880
7881 * insdel.c (signal_before_change, signal_after_change): Likewise.
7882
7883 * buffer.c (Vbefore_change_function, Vafter_change_function):
7884 Variables and their initializations deleted.
7885
2330c9d4
DL
7886 * callint.c (Fcall_interactively): Doc fix.
7887
dd432f16
DL
7888 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
7889
bf9e8804
DL
78902000-05-31 Dave Love <fx@gnu.org>
7891
7892 * textprop.c: Revert last change -- duplicated.
7893
3694b4ab
GM
78942000-05-31 Gerd Moellmann <gerd@gnu.org>
7895
7896 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
7897 in #if 0.
7898
7899 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
7900
f14156cd
JR
79012000-05-31 Jason Rumney <jasonr@gnu.org>
7902
8119aab8
JR
7903 * search.c (Fre_search_forward, Fre_search_backward)
7904 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
7905
f14156cd
JR
7906 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
7907
4aab9be3
JR
79082000-05-30 Jason Rumney <jasonr@gnu.org>
7909
7910 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
7911 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
7912
52283633 7913 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
4aab9be3
JR
7914
7915 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
7916 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
7917 expand a nil default_filename.
7918
7919 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
7920 pointer to glyph_to_pixel_coords, not a frame.
7921
7922 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
7923 coding.h to dependencies.
7924
7925 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
7926
7927 * w32console.c (glyph_to_pixel_coords): Change first parameter to
7928 window pointer to be consistent with w32term.c and xterm.c.
7929
7930 * w32fns.c: Format and doc changes to bring closer to xfns.c.
7931 (VIETNAMESE_CHARSET): Define if not defined in system headers.
7932 (Qline_spacing, Qcenter): New variables.
7933 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
7934 (x_set_line_spacing): New function.
52283633 7935 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
4aab9be3
JR
7936 (x_specified_cursor_type): New function.
7937 (x_set_cursor_type): Use it.
7938 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
7939 and icon strings.
7940 (validate_x_resource_name, x_get_resource_string): Measure lengths
7941 of external strings in bytes.
7942 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
7943 GetTextExtentPoint32 with NULL title.
7944 (Fx_create_frame): Initialize Qline_spacing.
7945 (w32_load_system_font): Initialize font->double_byte_p.
7946 (x_to_w32_charset): Use Vw32_charset_info_alist.
7947 (Image, busy cursor, tooltip functions): Merged changes from
7948 xfns.c. Not yet functional on Windows.
7949
7950 * w32gui.h (W32FontStruct): Add double_byte_p member.
7951
7952 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
7953 (emacs_button_translation): Use it.
7954 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
7955 in `mask' to be set.
7956
7957 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
7958 menu strings.
7959
7960 * w32term.c: Format and doc changes to bring closer to xterm.c.
7961 (w32_char_font_type): New enum.
7962 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
7963 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
7964 (w32_encode_char): New function.
7965 (x_encode_char): Removed.
7966 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
7967 x_encode_char and w32_font_is_double_byte.
7968 (x_produce_image_glyph): Use image_ascent.
7969 (x_produce_glyphs): Use new version of w32_per_char_metric and
7970 handle NULL return value. Allow extra line spacing.
7971 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
7972 (w32_get_glyph_overhangs): Remove unicode_p param. Use
7973 w32_font_type member of glyph instead.
7974 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
7975 (fast_find_position): Make sure not to consider rows not visible
7976 in the window.
7977 (w32_read_socket) [WM_MENUSELECT]: Cannot call
7978 w32_menu_display_help with input blocked, as it can abort.
7979 (x_display_and_set_cursor): Choose cursor depending
7980 on buffer-local value of cursor_type.
7981 (x_draw_bar_cursor): Add parameter WIDTH.
7982
7983 * w32term.h (CP_DEFAULT): Define.
7984 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
7985
10fc3187
GM
79862000-05-30 Gerd Moellmann <gerd@gnu.org>
7987
7988 * search.c (Fre_search_forward, Fre_search_backward)
7989 (Fposix_search_backward, Fposix_search_forward): Doc fix.
7990
d0555360
KH
79912000-05-30 Kenichi Handa <handa@etl.go.jp>
7992
7993 * coding.c (detect_coding_iso2022): Fix code for checking
7994 CODING_CATEGORY_MASK_ISO_8_2.
7995
f1ad044f
SM
79962000-05-29 Stefan Monnier <monnier@cs.yale.edu>
7997
7998 * regex.c (PREFETCH_NOLIMIT): New function.
7999 (re_match_2_internal): Use it and adjust the end_match_2 logic.
8000
84ec3b4b
GM
80012000-05-29 Gerd Moellmann <gerd@gnu.org>
8002
66254a13
GM
8003 * syntax.c (find_defun_start): Move test for
8004 open_paren_in_column_0_is_defun_start outside of the loop.
8005
49e70dec
GM
8006 * xdisp.c (redisplay_window): Really switch buffers when
8007 displaying mode lines, and temporarily set selected_frame to the
8008 frame of the window that's redisplayed.
8009
84ec3b4b
GM
8010 * xfaces.c (free_realized_faces): Block/unblock input.
8011 (free_realized_multibyte_face): Ditto.
8012
869a3a14
DL
80132000-05-29 Dave Love <fx@gnu.org>
8014
8015 * textprop.c (Qkeymap): New variable.
8016 (syms_of_textprop): Intern it.
8017
8018 * keymap.c: Include intervals.h.
8019 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
8020
8021 * Makefile.in (keymap.o): Depend on intervals.h.
8022
8023 * keyboard.c (menu_bar_items, tool_bar_items)
8024 (Fexecute_extended_command): Deal with `keymap' property.
8025 (read_key_sequence): Track map from `keymap' property as well as
8026 `local_map'.
8027
8028 * intervals.c (get_local_map): Extra arg to allow looking for
8029 `keymap' too.
8030
8031 * intervals.h (map_property): New enum.
8032 (get_local_map): Extra arg using it.
8033 (Qkeymap): Declare.
8034
84ec3b4b 8035 * lisp.h (get_local_map): Don't declare here.
869a3a14 8036
89d0c844
KH
80372000-05-29 Kenichi Handa <handa@etl.go.jp>
8038
8039 * Makefile.in (callproc.o): Depend on composite.h.
8040
8041 * callproc.c: Include composite.h.
8042 (Fcall_process): Handle composition correctly.
8043
8044 * coding.h (coding_allocate_composition_data): Extern it.
8045 (coding_restore_composition): Likewise.
8046
8047 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
8048 yet allocated, finish decoding with result
8049 CODING_FINISH_INSUFFICIENT_CMP.
8050 (coding_allocate_composition_data): Make it non-static.
8051 (coding_restore_composition): Likewise.
8052
797a084a
EZ
80532000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
8054
8055 * charset.c (syms_of_charset): Revert last change.
8056
cf872af5
EZ
80572000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
8058
8059 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
8060 charsets as unibyte, with 1-column screen width. Sent by Kenichi
8061 Handa.
cf872af5 8062
5b1ae051
EZ
80632000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
8064
8065 * charset.c (syms_of_charset): Set width of character sets
8066 eight-bit-control and eight-bit-graphic to 1 column.
8067
34ec9ebe
GM
80682000-05-26 Gerd Moellmann <gerd@gnu.org>
8069
8070 * config.in (HAVE_SPEED_T): New define.
8071
8072 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
8073 `extern speed_t'.
8074
dd854dc2
DL
80752000-05-26 Dave Love <fx@gnu.org>
8076
8077 * coding.c (shrink_decoding_region): Initialize eol_conversion.
8078
8079 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
8080 (Fsubr_arity): New function.
8081 (syms_of_data): Install them.
8082
ba9f8f95
KH
80832000-05-26 Kenichi Handa <handa@etl.go.jp>
8084
0f3e0672
KH
8085 * charset.c (init_charset_once): Set the table bytes_by_char_head
8086 correctly.
8087
cebefb44
KH
8088 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
8089 the default fontset to what Emacs uses by default.
0f3e0672
KH
8090 (check_registry_encoding): This function deleted.
8091 (Fset_fontset_font): Remove the adhoc condition for the default
8092 fontset. Allow cons in FONTNAME.
cebefb44 8093
0f3e0672
KH
8094 * fns.c (map_char_table): Ignore char-table entries for
8095 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 8096
7a18af49
KR
80972000-05-25 Ken Raeburn <raeburn@gnu.org>
8098
8099 * emacs.c (main): Initialize keyboard syms before initializing
8100 window code, so face names are available.
8101
d2af47df
SM
81022000-05-25 Stefan Monnier <monnier@cs.yale.edu>
8103
8104 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
8105 of an anchor at the beginning of a shy-group.
8106
fc6a6a4e
GM
81072000-05-25 Gerd Moellmann <gerd@gnu.org>
8108
8109 * xdisp.c (handle_invisible_prop): Don't try to skip over
8110 invisible text if end of text is already reached.
8111
005f0d35
DL
81122000-05-25 Dave Love <fx@gnu.org>
8113
02513cdd
DL
8114 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
8115
005f0d35
DL
8116 * coding.c (encode_eol): Add null statement after label.
8117
89f6ca4e
EZ
81182000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
8119
8120 * w16select.c (Fw16_set_clipboard_data): Fix the change from
8121 2000-05-20.
8122
a4e1759e
KH
81232000-05-25 Kenichi Handa <handa@etl.go.jp>
8124
8125 * ccl.c (ccl_driver): Fix previous change.
8126
eacfd7fe
KH
81272000-05-25 Kenichi Handa <handa@etl.go.jp>
8128
46ab33a9
KH
8129 * coding.c (run_pre_post_conversion_on_str): Set point to the
8130 beginning of buffer before calling coding->post_read_conversion.
8131 (decode_coding_string): Give correct args to
8132 run_pre_post_conversion_on_str.
8133 (encode_coding_string): Likewise.
8134
eacfd7fe
KH
8135 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
8136 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
8137 eight-bit-graphic correctly.
8138
f8569325
DL
81392000-05-24 Kenichi HANDA <handa@etl.go.jp>
8140
8141 * fileio.c (Finsert_file_contents): Even if a file is not found,
8142 execute codes for setting up coding system. Call
8143 after-insert-file-functions unconditionally.
8144
04545643
GM
81452000-05-24 Gerd Moellmann <gerd@gnu.org>
8146
8147 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
8148 BSD_PGRPS are not defined.
8149
747d90ea
KH
81502000-05-24 Kenichi Handa <handa@etl.go.jp>
8151
8152 * charset.c (update_charset_table): Accept nil in LONG_NAME and
8153 DESCRIPTION.
8154 (syms_of_charset): Avoid building same strings.
8155
716e3b88
GM
81562000-05-23 Gerd Moellmann <gerd@gnu.org>
8157
8158 * lread.c (Fload): Add a comment about the meaning of
8159 Vuser_init_file being t.
8160
8161 * puresize.h (BASE_PURESIZE): Increase to 675000.
8162
8163 * s/gnu-linux.h (setpgrp): Don't define it here because this
8164 prevents compilation on GNU/Linux systems with glib 2.2.
8165
8166 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
8167 as setpgid.
427ec082 8168
9aeb39fa
EZ
81692000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
8170
8171 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
8172 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
8173 version.
8174 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
8175
29ced61b
KH
81762000-05-23 Kenichi Handa <handa@etl.go.jp>
8177
52283633 8178 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
0574a2ed 8179
3d80f24d
KH
8180 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
8181
52283633 8182 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
3d80f24d 8183
29ced61b
KH
8184 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
8185
d7e00792
KH
81862000-05-22 Kenichi Handa <handa@etl.go.jp>
8187
c9d80d38
KH
8188 * keyboard.c (read_char): Allow character codes 128..255 to be
8189 handled by input-method-function.
8190
d7e00792
KH
8191 * insdel.c (adjust_markers_for_replace): Fix previous change.
8192 (adjust_after_replace): If PREV_TEXT is nil, call
8193 adjust_markers_for_insert, not adjust_markers_for_replace.
8194
087121cc 81952000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 8196
087121cc
GM
8197 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
8198 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
8199 [HAVE_GRANDPT]: Define.
8200 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
8201
8202 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
8203 like SYSV_PTYS.
8204
8205 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
8206
8207 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
8208
c9671f81
KH
82092000-05-20 Kenichi Handa <handa@etl.go.jp>
8210
8211 The following changes are to handle 8-bit characters in a
8212 multibyte buffer/string without facing with byte combining
8213 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
8214 eight-bit-graphic (for 0xA0..0xFF) are introduced.
8215
8216 * Makefile.in (fns.o): Depend on charset.h.
8217
8218 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
8219 convert it to unibyte.
8220 (make_string): Use parse_str_as_multibyte, not chars_in_text.
8221
8222 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
8223 apparent char boundary.
8224 (Fset_buffer_multibyte): Convert 8-bit characters in the range
8225 0x80..0x9F to/from multibyte form.
8226
8227 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
8228 to unibyte.
8229
8230 * callproc.c (Fcall_process): Always encode an argument string if
8231 it is multibyte. Setup src_multibyte and dst_multibyte members of
8232 process_coding properly.
ce75fd23 8233
c9671f81
KH
8234 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
8235 SPLIT_NON_ASCII_CHAR.
8236
8237 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
8238 as is.
8239 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
8240
52283633 8241 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
c9671f81 8242 (SPLIT_CHARACTER_SEQ): This macro deleted.
52283633 8243 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
c9671f81
KH
8244 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
8245 and eight-bit-graphic.
8246 (char_to_string): Likewise. Signal an error for too large
8247 character code.
8248 (char_printable_p): Return 0 for 8-bit characters.
8249 (update_charset_table): Update iso_charset_table only when a final
8250 character is non-negative.
8251 (find_charset_in_text): Renamed from find_charset_in_str.
8252 Arguments and return value changed. Callers changed.
8253 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
8254 be -1 if CHARSET is used only internally.
8255 (Fmake_char_internal): Handle new charsets; eight-bit-control and
8256 eight-bit-graphic.
8257 (Fcharset_after): Simplified.
8258 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
8259 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
8260 (multibyte_chars_in_text): Simplified by assuming there's no
8261 invalid multibyte sequence.
52283633
SM
8262 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
8263 (str_as_unibyte): New functions.
8264 (Fstring): Simpified by assuming that byte combining never happens.
c9671f81
KH
8265 (init_charset_once): Initialization for
8266 LEADING_CODE_8_BIT_CONTROL.
8267 (syms_of_charset): Intern and staticpro Qeight_bit_control and
8268 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
8269 eight-bit-control and eight-bit-graphic.
8270
52283633
SM
8271 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
8272 (CHARSET_8_BIT_GRAPHIC): New macros.
c9671f81
KH
8273 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
8274 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
8275 (CHARSET_REVERSE_CHARSET): Likewise.
8276 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
8277 eight-bit-graphic.
8278 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
8279 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
8280 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
8281 encounter an invalid multibyte sequence.
8282 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
8283 sequence is always valid.
8284 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
52283633 8285 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
c9671f81
KH
8286 (CHAR_STRING): For 8-bit characters, call char_to_string.
8287 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
8288 multibyte sequence is always valid.
8289 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
52283633
SM
8290 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
8291 (str_as_unibyte): Extern them.
c9671f81 8292 (BCOPY_SHORT): Fix a bug.
52283633 8293 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
c9671f81
KH
8294 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
8295 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
8296 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
8297
bd4bde7f 8298 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81 8299 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
52283633
SM
8300 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
8301 (EMIT_BYTES): New macros.
8302 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
8303 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
c9671f81
KH
8304 macros deleted.
8305 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
8306 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
8307 check the validity of multibyte sequence.
8308 (decode_coding_emacs_mule): New function.
8309 (encode_coding_emacs_mule): New macro.
8310 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
8311 the source.
8312 (DECODE_ISO_CHARACTER): Just return a character code.
8313 (DECODE_COMPOSITION_START): Set coding->result instead of result.
8314 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
8315 EMIT_CHAR to produced decoded characters. Exit the loop only by
8316 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
8317 block here.
8318 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
8319 only position codes for an invalid character.
8320 (encode_designation_at_bol): Return new destination pointer. 5th
8321 arg DSTP is changed to DST.
8322 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
8323 from the source by ONE_MORE_CHAR. Don't handle the case of last
8324 block here.
8325 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
8326 macros deleted.
52283633
SM
8327 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
8328 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
c9671f81
KH
8329 TWO_MORE_BYTES to fetch a byte from the source.
8330 (encode_eol): Pay attention to coding->src_multibyte.
8331 (detect_coding, detect_eol): Preserve members src_multibyte and
8332 dst_multibyte.
8333 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
8334 (encoding_buffer_size): Set magnification to 3 for all coding
8335 systems that require encoding.
8336 (ccl_coding_driver): For decoding, be sure that the result is
8337 valid multibyte sequence.
8338 (decode_coding): Initialize coding->errors and coding->result.
8339 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
8340 and raw-text, always call decode_eol. Handle the case of last
8341 block here. If not coding->dst_multibyte, convert the resulting
8342 sequence to unibyte.
8343 (encode_coding): Initialize coding->errors and coding->result.
8344 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
8345 and raw-text, always call encode_eol. Handle the case of last
8346 block here.
8347 (shrink_decoding_region, shrink_encoding_region): Detect cases
8348 that we can't skip data more rigidly.
8349 (code_convert_region): Setup src_multibyte and dst_multibyte
8350 members of coding. For decoding, if the buffer is multibyte,
8351 convert the source sequence to unibyte in advance. For encoding,
8352 if the buffer is multibyte, convert the resulting sequence to
8353 multibyte afterward.
8354 (run_pre_post_conversion_on_str): New function.
8355 (code_convert_string): Deleted and divided into the following two.
8356 (decode_coding_string, encode_coding_string): New functions.
8357 (code_convert_string1, code_convert_string_norecord): Call one of
8358 above.
8359 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
8360 MAKE_NON_ASCII_CHAR.
52283633
SM
8361 (Fset_terminal_coding_system_internal)
8362 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
c9671f81
KH
8363 and dst_multibyte members.
8364 (init_coding_once): Initialize iso_code_class with new enum
8365 ISO_control_0 and ISO_control_1.
8366
8367 * coding.h (enum iso_code_class_type): Member ISO_control_code is
8368 devided into ISO_control_0 and ISO_control_1.
8369 (struct coding_system): New members src_multibyte, dst_multibyte,
8370 errors, and result. Delete member fake_multibyte.
8371 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
8372 nonzero.
8373 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
8374 nonzero.
8375
8376 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
8377 (Faset): Likewise.
8378
8379 * editfns.c (Fformat): Be sure to convert 8-bit characters to
8380 multibyte form.
8381 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
8382 combining occurs.
8383 (Ftranspose_region): Delete codes for handling byte combining.
8384
8385 * fileio.c (Finsert_file_contents): Setup src_multibyte and
8386 dst_multibyte members of coding. On handling REPLACE on unibyte
8387 buffer, convert the result of decode_coding to unibyte. On
8388 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 8389 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
8390 multibyteness of the source (buffer or string).
8391
8392 * fns.c (concat): Handle 8-bit characters correctly.
8393 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
8394 unibyte in the result.
8395 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
8396 valid multibyte form in the result.
8397 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
8398 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
8399 return -1, signal an error.
8400 (base64_encode_1): New arg MULTIBYTE. Get each character by
8401 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
8402 character is found, return -1.
8403 (Fbase64_decode_region): Delete codes for handling byte-combining.
8404 Treat each decoded byte as a unibyte character.
8405 (Fbase64_decode_string): Return unibyte string.
8406 (Fcompare_strings, concat, string_byte_to_char): Use
8407 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
8408 FETCH_STRING_CHAR_ADVANCE.
8409 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
8410 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
8411
8412 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
8413 SPLIT_NON_ASCII_CHAR.
8414 (fontset_ref_via_base, fontset_set): Likewise
8415
8416 * insdel.c (adjust_markers_for_record_delete): Deleted.
8417 (adjust_markers_for_insert): Argument changed. Caller changed.
8418 (adjust_markers_for_replace): Likewise.
52283633
SM
8419 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
8420 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
c9671f81
KH
8421 (copy_text): Delete unused local varialbe c_save. For converting
8422 to multibyte, be sure to make all 8-bit characters in valid
8423 multibyte form.
8424 (count_size_as_multibyte): Handle 8-bit characters correctly.
52283633
SM
8425 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
8426 (adjust_after_replace, replace_range, del_range_2)
c9671f81 8427 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
52283633
SM
8428 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
8429 (adjust_after_replace, replace_range, del_range_2) Delete codes for
c9671f81
KH
8430 handling byte combining.
8431 (adjust_before_replace): Deleted.
427ec082 8432
c9671f81
KH
8433 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
8434 SPLIT_NON_ASCII_CHAR.
8435 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
52283633 8436 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
8437 (Fkey_description): Likewise.
8438
8439 * lread.c (read1): On reading multibyte string, be sure to make
8440 all 8-bit chararacters in valid multibyte form.
8441 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
8442
8443 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
8444 unconditionally.
8445
8446 * process.c (Fstart_process): GCPRO current_dir before calling
8447 Ffind_operation_coding_system. Encode arguments here.
8448 (create_process): Don't encode arguments here. Setup
8449 src_multibyte and dst_multibyte members of struct coding.
8450 (read_process_output): Setup src_multibyte and dst_multibyte
8451 members of struct coding. If the output is to multibyte buffer,
8452 always decode the output of the process. Adjust the
52283633 8453 representation of 8-bit characters to the multibyteness of the output.
c9671f81
KH
8454 (send_process): Setup coding->src_multibyte according to the
8455 multibyteness of the source.
8456
52283633 8457 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
8458 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
8459 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
8460
52283633 8461 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
c9671f81
KH
8462
8463 * w16select.c (Fw16_set_clipboard_data): Setup members
8464 src_multibyte and dst_multibyte of coding. Adjusted for the
8465 change for find_charset_in_str.
8466 (Fw16_get_clipboard_data): Likewise.
8467
8468 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
8469 dst_multibyte of coding.
8470 (x_to_w32_font): Likewise.
8471
8472 * w32select.c (Fw32_set_clipboard_data): Setup members
8473 src_multibyte and dst_multibyte of coding. Adjusted for the
8474 change for find_charset_in_str.
8475 (Fw32_get_clipboard_data): Likewise.
8476
8477 * xdisp.c (get_next_display_element): Handle 8-bit characters
8478 correctly.
52283633
SM
8479 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
8480 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
c9671f81
KH
8481
8482 * xselect.c (selection_data_to_lisp_data): Setup members
8483 src_multibyte and dst_multibyte of coding. Adjusted for the
8484 change for find_charset_in_str.
8485 (lisp_data_to_selection_data): Likewise.
8486
5f64c9e0
GM
84872000-05-19 Gerd Moellmann <gerd@gnu.org>
8488
52283633 8489 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
2b63d473 8490
5f64c9e0
GM
8491 * dispextern.h (Vimage_types): Add extern declaration.
8492
8493 * xdisp.c (Vimage_types): Moved here from xfns.c.
8494 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
8495
8496 * xfns.c (Vimages_types): Moved to xdisp.c.
8497 (syms_of_xfns): Move `image-types' to xdisp.c.
8498
8499 * w32fns.c (Vimage_types): Removed.
8500 (syms_of_w32fns): Remove `image-types'.
8501
813086ea
KH
85022000-05-18 Kenichi Handa <handa@etl.go.jp>
8503
8504 * fns.c (map_char_table): Pay attention to character number of
8505 charset. Check the validity of charset at the first level. For
8506 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
8507 the default value.
8508
8509 * fontset.c: Include "buffer.h".
8510 (fs_load_font): If the face has fontset, record the face ID in
8511 that fontset.
8512 (Finternal_char_font): New function.
8513 (accumulate_font_info): New function.
8514 (Ffontset_info): Rewritten for the new fontset implementation.
8515 (syms_of_fontset): Register Vdefault_fontset in the first element
8516 of Vfontset_table. Include Vdefault_fontset in
8517 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
8518 function.
8519
bdaebbf0
DL
85202000-05-16 Dave Love <fx@gnu.org>
8521
8522 * m/iris5d.h: Deleted -- unused.
8523
cb613bb8
GM
85242000-05-16 Gerd Moellmann <gerd@gnu.org>
8525
b15f3b77
GM
8526 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
8527 `invalid' instead of `illegal'.
8528
8529 * indent.c (Fmove_to_column): When ending within a tab, insert
8530 spaces first so that markers at the end of the tab get adjusted.
8531
835c1b36
GM
8532 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
8533 buffer list that wasn't selected in that frame.
8534
cb613bb8
GM
8535 * filelock.c (get_boot_time): To obtain an 8 char file name, which
8536 is needed on mescaline, use a 2 char prefix, and call
8537 make_temp_name with second arg non-zero.
8538
8539 * fileio.c (make_temp_name): New function, extracted from
8540 Fmake_temp_name.
8541 (Fmake_temp_name): Use it.
8542
f685bea9
EZ
85432000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
8544
52283633 8545 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
f685bea9 8546
a1b8d58b
GM
85472000-05-15 Gerd Moellmann <gerd@gnu.org>
8548
8549 * Makefile.in (lisp): Add env.elc.
8550
8551 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
8552
a265079f
GM
85532000-05-12 Gerd Moellmann <gerd@gnu.org>
8554
8555 * search.c (Freplace_match): Handle case of `\N' in the
8556 replacement when there's no group N.
8557
da4496b6
GM
85582000-05-11 Gerd Moellmann <gerd@gnu.org>
8559
0ace421a
GM
8560 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
8561 of the message to message_dolog.
8562
1172eb8d
GM
8563 * keyboard.c (read_char): Don't clear current message for help
8564 events; let the code handling help events handle this. Change
8565 code detecting help events that should be ignored.
8566
da4496b6
GM
8567 * xdisp.c (handle_single_display_prop): Don't try to set PT if
8568 we're interating over a string.
8569
0623e40f
DL
85702000-05-09 Dave Love <fx@gnu.org>
8571
8572 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
8573 that offset before writing. Move gcpro region past call of
8574 Ffile_regular_p.
8575
bae2503b
DL
85762000-05-04 Dave Love <fx@gnu.org>
8577
8578 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
8579
ec82fb2f
GM
85802000-05-04 Gerd Moellmann <gerd@gnu.org>
8581
8582 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
8583 of inserted characters when BUF equals the current buffer, and PT
8584 is in front of or equal to FROM.
8585
cbf18892
GM
85862000-05-03 Gerd Moellmann <gerd@gnu.org>
8587
4ff40dd0
GM
8588 * xdisp.c (handle_single_display_prop): If display property value
8589 is invalid, or something not supported on the frame, restore
8590 iterator's position to what it was initially. Make sure to return
8591 0 for invalid and unsupported property values.
8592
cbf18892
GM
8593 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
8594 that x_per_char_metric returns null.
8595
1b0672c3
GM
85962000-05-02 Gerd Moellmann <gerd@gnu.org>
8597
576da55d
GM
8598 * xterm.h (struct face): Add forward declaration.
8599 (struct image): Ditto.
8600 (image_ascent): Add prototype.
8601
8602 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
8603 (x_draw_image_relief, x_draw_image_foreground_1): Call function
8604 image_ascent instead of using IMAGE_ASCENT.
8605
8606 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
8607 (IMAGE_ASCENT): Removed.
8608
8609 * xfns.c (Qcenter): New variable.
8610 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
8611 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
8612 (image_ascent): New function.
8613 (lookup_image): Recognize `:ascent center'.
8614 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
8615 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
8616 (xbm_load): Don't set image's ascent here.
8617 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
8618 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
8619 check ascent values here.
8620 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
8621 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
8622 (syms_of_xfns): Initialize Qcenter.
8623
1b0672c3
GM
8624 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
8625 to the limits, increase the limits.
8626
0d7811ed
KH
86272000-05-01 Kenichi Handa <handa@etl.go.jp>
8628
8629 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
52283633 8630 Check Vfont_encoding_alist against the full name of the opened font.
0d7811ed 8631
a943a5ca
GM
86322000-04-28 Gerd Moellmann <gerd@gnu.org>
8633
8634 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
8635 taller than the window.
8636
5dba1e29
KH
86372000-04-28 Kenichi Handa <handa@etl.go.jp>
8638
8639 * xfaces.c (realize_x_face): Fix the argument of the second
8640 xassert. BASE_FACE may not be a face for ASCII.
8641
353964e3
GM
86422000-04-27 Gerd Moellmann <gerd@gnu.org>
8643
c76e04a8
GM
8644 * print.c (print_object): Treat print-length < 0 as nil.
8645
8646 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
8647
8648 * s/freebsd.h (TERMCAP_OBJ): Removed.
8649 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
8650
8651 * lread.c (read1): Don't treat period followed by certain
8652 characters as symbol start.
8653
8654 * xfns.c (slurp_file): New function.
8655 (xbm_image_p): Handle case of in-memory XBM files.
8656 (xbm_scan): Rewritten to work on memory buffers instead of files.
8657 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
8658 Work on memory buffers instead of files. If DATA is null test
8659 if buffer looks like an in-memory XBM file.
8660 (xbm_load_image): Renamed from xbm_load_image_file. Work on
8661 memory buffers instead of files.
8662 (xbm_file_p): New function.
8663 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
8664
353964e3
GM
8665 * lread.c (end_of_file_error): New function.
8666 (read1): Call it instead of signaling `end-of-file' directly.
8667
427ec082 8668 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
8669 with Fprinc instead of Fprin1.
8670
24d744ac
KR
86712000-04-26 Ken Raeburn <raeburn@gnu.org>
8672
8673 * window.c (freeze_window_start): Check that minibuffer scroll
8674 window isn't nil before extracting the window structure pointer
8675 from it.
8676
8677 * undo.c (record_delete): If we hit the end of the undo list, stop
8678 picking elements apart.
8679
7464346d
GM
86802000-04-26 Gerd Moellmann <gerd@gnu.org>
8681
8682 * xdisp.c (display_line): If lines are continued, restore
8683 iterator's ascent/descent information to the values before the
8684 first glyph not fitting on the line.
8685
612839b6
GM
86862000-04-25 Gerd Moellmann <gerd@gnu.org>
8687
8688 * xdisp.c (try_window_id) <all changes above window start>: Adjust
52283633 8689 positions in glyph matrix. Don't compute new window end positions.
612839b6
GM
8690
8691 * dispnew.c (increment_matrix_positions): Renamed from
8692 increment_glyph_matrix_buffer_positions.
8693 (increment_row_positions): Renamed from
8694 increment_glyph_row_buffer_positions.
8695
8696 * dispextern.h: Change names of renamed functions from dispnew.c
8697 in prototypes.
8698
cc181e95
GM
86992000-04-24 Gerd Moellmann <gerd@gnu.org>
8700
abfcc168
GM
8701 * fileio.c (Fdo_auto_save): Create directories for auto-save
8702 list file if necessary.
8703
cc181e95
GM
8704 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
8705 from buffer or frame.
8706 (automatic_hscrolling_p): New variable.
8707 (hscroll_windows): Scroll windows horizontally only if automatic
8708 hscrolling is allowed.
8709 (syms_of_xdisp): New variable `automatic-hscrolling'.
8710
8711 * frame.h (struct frame): Add member extra_line_spacing.
8712
8713 * xfns.c (x_set_line_spacing): New function.
8714 (Fx_create_frame): Set line spacing from resources.
8715 (Qline_spacing): New variable.
8716 (syms_of_xfns): Initialize Qline_spacing.
427ec082 8717
cc181e95
GM
8718 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
8719
8720 * buffer.c (init_buffer_once): Handle extra_line_spacing.
8721 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 8722 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
8723 extra_line_spacing from default value.
8724 (init_buffer_once): Initialize default value of extra_line_spacing.
8725
8726 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
8727 and extra3.
8728
8729 * xterm.c (x_produce_glyphs): Remove reference to struct it's
8730 prompt_width. Add extra line spacing.
8731
8732 * term.c (produce_glyphs): Remove reference to struct it's
8733 prompt_width.
8734
8735 * dispextern.h (struct it): Remove member prompt_width, add
8736 extra_line_spacing.
8737
58827478
GM
87382000-04-22 Gerd Moellmann <gerd@gnu.org>
8739
8740 * dispnew.c (update_frame_line): When writing a whole line, make
8741 sure cursor is in the right row afterwards, otherwise a use of
8742 capability `ch' in cmgoto might leave the cursor in the row below.
8743
25a87f42
GM
87442000-04-21 Gerd Moellmann <gerd@gnu.org>
8745
8746 * lisp.h (struct Lisp_Buffer_Cons): Remove.
8747
8748 * keyboard.c (timer_check): Fix typo in comment.
8749
54edf5c2
KH
87502000-04-21 Kenichi Handa <handa@etl.go.jp>
8751
8752 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
8753 name change: ch -> character.
8754
3a64eef5
GM
87552000-04-20 Gerd Moellmann <gerd@gnu.org>
8756
8757 * keyboard.c (echo_message_buffer): New variable.
8758 (echo_now): Set echo_message_buffer to the echo area buffer used
8759 to display the echo.
8760 (cancel_echoing): Reset echo_message_buffer to nil.
8761 (read_char): Code rewritten that handles canceling an echo or
8762 echoing a dash, respectively.
8763
8764 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
8765 directory doesn't exist.
8766
6142fdcb
DL
87672000-04-19 Dave Love <fx@gnu.org>
8768
8769 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
8770 (concat): Don't allow numeric args.
8771 (Fconcat): Doc change.
6142fdcb 8772
ac6b5352
SM
87732000-04-19 Stefan Monnier <monnier@cs.yale.edu>
8774
8775 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
8776 instead define end_match(1|2) more carefully.
8777 Use GET_CHAR_BEFORE_2 for `begline'.
8778
cb9215e4
GM
87792000-04-19 Gerd Moellmann <gerd@gnu.org>
8780
5e3dac3f
GM
8781 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
8782 on 64-bit systems where NULL is defined as `0'.
8783
8784 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
8785 the `variable argument list' to make it work on Alpha.
8786
cb9215e4
GM
8787 * m/alpha.h (_LP64) [!_LP64]: Define.
8788 (ORDINARY_LINK): Define for NetBSD.
8789
8790 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 8791
f532dca0
DL
87922000-04-19 Dave Love <fx@gnu.org>
8793
c750667e
DL
8794 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
8795 change.
8796
8797 * Makefile.in (LIBS): Don't use.
8798 (GETLOADAVG_OBJ): Define again.
8799 (otherobj): Add GETLOADAVG_OBJ.
8800
f532dca0
DL
8801 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
8802
1c7e22fd
GM
88032000-04-18 Gerd Moellmann <gerd@gnu.org>
8804
f6d3257b
GM
8805 * lread.c (read_filtered_event): Cancel and start busy cursor.
8806
427ec082 8807 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
8808 that the per-character metrics may be null.
8809
e10f64e7
GM
88102000-04-17 Gerd Moellmann <gerd@gnu.org>
8811
0daee095
GM
8812 * buffer.c (clone_per_buffer_values): New function.
8813 (Fmake_indirect_buffer): Add optional argument CLONE. Call
8814 clone_per_buffer_values if CLONE is not nil.
8815
e10f64e7
GM
8816 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
8817
38687d43
DL
88182000-04-16 Dave Love <fx@gnu.org>
8819
8820 * Makefile.in: Remove obsolete localcpp stuff.
8821 (GETLOADAVG_OBJ): Don't define.
8822 (obj): Move LIBOBJS...
8823 (otherobj): ... to here.
8824 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
8825 whitespace-only lines after the continuation (Irix).
8826
c21c7262
GM
88272000-04-14 Gerd Moellmann <gerd@gnu.org>
8828
8829 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
8830
8831 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
8832
314767c0
DL
88332000-04-14 Dave Love <fx@gnu.org>
8834
8835 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
8836 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
8837 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
8838 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
8839 NLIST_STRUCT.
8840
8841 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
8842 autoconfiscated HAVE_GETLOADAVG.
8843
8844 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
8845 BROKEN_MKTIME.
8846
a2522dca
GM
88472000-04-14 Gerd Moellmann <gerd@gnu.org>
8848
8849 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
52283633 8850 (fill_in_lock_file_name): Avoid existing files that aren't links.
a2522dca 8851
33744b5d
DL
88522000-04-14 Dave Love <fx@gnu.org>
8853
c21c7262 8854 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
8855 (INTERVAL_SRC): Convert to make variable.
8856 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
8857 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
8858 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
8859 add LIBOBJS.
8860 (SOME_MACHINE_OBJECTS): Remove interval stuff.
8861 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
8862 (shortlisp): Add facemenu, float-sup, frame.
8863 (SOME_MACHINE_LISP): Remove them from here.
8864 (LIBES): Change unused LDLIBS to autoconf LIBS.
8865
8866 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
8867
9d3d5916
KH
88682000-04-14 Kenichi Handa <handa@etl.go.jp>
8869
8870 * composite.c (update_compositions): If FROM and TO are not in a
8871 valid range, do nothing.
8872
198e3c7a
GM
88732000-04-13 Gerd Moellmann <gerd@gnu.org>
8874
52283633 8875 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
198e3c7a 8876
52283633 8877 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
198e3c7a
GM
8878
8879 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
8880 as TERMCAP_OBJ.
8881
055a28c9
EZ
88822000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
8883
8884 * fileio.c (a_write): Remove redundant semi-colons.
8885 (e_write): Return -1 if failed to write all the data.
8886 This fixes the changes made at 1999-12-15.
8887
f5c75033
DL
88882000-04-12 Dave Love <fx@gnu.org>
8889
8890 * fns.c (mapcar1): Test for null vals to support mapc.
8891 (Fmapc): New function.
8892
0c3cfc51
EZ
88932000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
8894
8895 * msdos.c (NUM_MOUSE_BUTTONS): Define.
8896 (IT_frame_up_to_date): Support the buffer local value of
8897 cursor-type, if defined.
8898
33465a31
DL
88992000-04-10 Dave Love <fx@gnu.org>
8900
8901 * editfns.c (preceding-char, following-char): Doc fix.
8902
6ed56568
KR
89032000-04-10 Ken Raeburn <raeburn@gnu.org>
8904
8905 * Makefile.in (temacs): Revert 2000-03-12 change.
8906
7cf80d4e
JR
89072000-04-10 Jason Rumney <jasonr@gnu.org>
8908
8909 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
8910
34f3f342
GM
89112000-04-10 Gerd Moellmann <gerd@gnu.org>
8912
1a1b1895
GM
8913 * xdisp.c (setup_echo_area_for_printing): Choose an echo
8914 area buffer, if it's not set up yet.
8915
34f3f342
GM
8916 * indent.c (compute_motion): Set immediate_quit.
8917
be0dbdab
GM
89182000-04-09 Gerd Moellmann <gerd@gnu.org>
8919
52283633 8920 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
c45be9ac
GM
8921 (realize_tty_face): Suppress boldness if colors are the inverse of
8922 the default colors, and tty_suppress_bold_inverse_default_colors_p
8923 is set.
8924 (Ftty_suppress_bold_inverse_default_colors): New function.
8925 (syms_of_xfaces): Defsubr it.
8926
be0dbdab
GM
8927 * buffer.c (Frestore_buffer_modified_p): New function.
8928 (syms_of_buffer): Defsubr it.
8929
e8413c3b
KR
89302000-04-08 Ken Raeburn <raeburn@gnu.org>
8931
87f67317
KR
8932 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
8933 charset id (int) argument, not a charset (Lisp_Object).
8934
e8413c3b
KR
8935 * coding.h (code_convert_string): Declare.
8936 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
8937 object, as the fourth argument to code_convert_string.
8938
52283633 8939 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
e8413c3b
KR
8940 (Fset_fontset_font): Use EQ to compare lisp objects.
8941
7c752c80
KR
89422000-04-05 Ken Raeburn <raeburn@gnu.org>
8943
c0333abc
KR
8944 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
8945 a pointer that looks like a lisp object.
8946 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
8947 zero, instead see whether it's an integer object, since they can't
8948 have intervals.
8949 (GET_INTERVAL_OBJECT): Simply assign to the destination.
8950
52283633
SM
8951 * dispnew.c (allocate_matrices_for_frame_redisplay)
8952 (direct_output_forward_char): Use X(U)INT and make_number as needed
7c752c80
KR
8953 to convert between (unsigned) int values and lisp integers.
8954 * keyboard.c (read_key_sequence): Likewise.
8955 * lread.c (substitute_object_recurse): Likewise.
8956 * fns.c (concat, hash_lookup, hash_remove): Likewise.
52283633
SM
8957 * minibuf.c (do_completion, Fminibuffer_complete_word)
8958 (Fminibuffer_completion_help): Likewise.
7c752c80
KR
8959 * term.c (produce_special_glyphs): Likewise.
8960
8961 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
8962 * print.c (print_preprocess, print_object): Likewise.
8963
8964 * search.c (compile_pattern): Use NILP when checking for nil.
8965
74e49b38
KR
8966 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
8967 __OPTIMIZE__]: Provide a GNU C macro version that handles
8968 lisp-object unions.
8969 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
8970 field, to better cope with ENABLE_CHECKING and calls that modify a
8971 Lisp_Object using its old value.
8972
685e5ed2
GM
89732000-04-04 Gerd Moellmann <gerd@gnu.org>
8974
c407c570
GM
8975 * window.c (compare_window_configurations): Signal an error
8976 if parameters C1 or C2 aren't window configurations.
8977
685e5ed2
GM
8978 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
8979 AFTER_POTENTIAL_GC calls around calls to functions that can
8980 signal an error and thus invoke the debugger.
8981
587a49ab
GM
89822000-04-03 Gerd Moellmann <gerd@gnu.org>
8983
62f20204
GM
8984 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
8985 an error if decoding fails.
8986
587a49ab
GM
8987 * keyboard.c (lispy_mouse_names): Variable removed.
8988 (Vlispy_mouse_stem): New variable.
8989 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
8990 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
8991 for any mouse button number. Increase size of mouse_syms and
8992 button_down_location as needed. Call modify_event_symbol with
8993 different arguments.
8994 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
8995 Call modify_event_symbol with different arguments.
8996 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
8997 for any button number. Call modify_event_symbol with different
8998 arguments.
8999 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
9000 Accept a string for NAME_ALIST_OR_STEM.
9001
9002 * lisp.h (larger_vector): Add prototype.
9003
9004 * fns.c (larger_vector): Make externally visible.
9005
9006 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
9007
2d1675e4
SM
90082000-04-02 Stefan Monnier <monnier@cs.yale.edu>
9009
9010 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
9011 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
9012 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
9013 we are between str1 and str2.
9014 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
9015 (PATFETCH): Use `TRANSLATE'.
9016 (PATFETCH_RAW): Fetch multibyte char if applicable.
9017 (PATUNFETCH): Remove.
9018 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
9019 When writing a char, write it directly into the pattern buffer rather
9020 than going needlessly through a temp char-array.
9021 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
9022 multibyte magic and remove the useless `#ifdef emacs'.
9023 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
9024 buffer.
9025
9026 * regex.h (struct re_pattern_buffer): Make field `multibyte'
9027 conditional on `emacs'.
9028
9029 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
9030
cc2d8c6b
KR
90312000-04-01 Ken Raeburn <raeburn@gnu.org>
9032
9033 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
9034 non-union-type versions of XMARK and friends here, because XMARK
9035 and friends won't work on an integer field if NO_UNION_TYPE is not
9036 defined.
52283633 9037 (make_number): Define as a function if it's not defined as a macro.
cc2d8c6b 9038
52283633 9039 * composite.c (run_composite_function): Use NILP when checking for nil.
09654086
KR
9040 (syms_of_composite): Delete local var NARGS, pass an int as first
9041 argument to Fmake_hash_table.
9042
2387b382
KR
9043 * editfns.c (text_property_stickiness): Use NILP to test
9044 Lisp_Object boolean value.
9045 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
9046 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
9047 problems reading from and changing the same lisp value in an
9048 XSETSTRING call.
9049
27660e89
GM
90502000-04-01 Gerd Moellmann <gerd@gnu.org>
9051
9052 * term.c (TN_no_color_video): New variable.
9053 (term_init): Intitialize TN_no_color_video.
9054 (enum no_color_bit): New enumeration.
9055 (MAY_USE_WITH_COLORS_P): New macro.
9056 (turn_on_face): Use it to determine if attributes may be used
9057 combined with colors.
9058
3578db3c
KR
90592000-04-01 Ken Raeburn <raeburn@gnu.org>
9060
9061 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
52283633 9062 with int lvalues via casts; instead, just yield lisp object lvalues.
3578db3c
KR
9063 (enlarge_window): Variable sizep now points to Lisp_Object. Use
9064 proper accessor macros.
9065 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
9066 (grow_mini_window): Fix typo getting int value of root->height.
9067
6fc556fd
KR
9068 * xdisp.c (compute_string_pos): Fix order of arguments to
9069 string_pos_nchars_ahead.
9070 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
9071 count arg to variable-arg routines like Frun_hook_with_args and
9072 Fformat.
587a49ab
GM
9073 (back_to_previous_visible_line_start)
9074 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
9075 fixed-arg routines like Fget_char_property and Fmake_string.
9076 (reconsider_clip_changes): Use XINT when comparing integer lisp
9077 objects, or passing them as int arguments.
587a49ab
GM
9078 (mark_window_display_accurate, insert_left_trunc_glyphs)
9079 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
9080 storing or passing integer values as lisp objects.
9081 (set_cursor_from_row, highlight_trailing_whitespace): Use
9082 INTEGERP, not implicit test against zero, for glyph object.
9083 (try_window_id): Don't use make_number when we want an int value.
9084
9085 * xfaces.c (xlfd_symbolic_value): Make last argument a
9086 Lisp_Object, to be consistent with callers.
9087 (Fbitmap_spec_p): Use XINT to get numeric value of height.
9088 (lface_hash): Apply XFASTINT to lisp values before folding in.
9089
9090 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
9091 fill in window width and height. Pass an int, not a lisp object,
9092 as first arg to Finsert.
9093
6e7b2457
GM
90942000-04-01 Gerd Moellmann <gerd@gnu.org>
9095
610d841e
GM
9096 * xfaces.c (realize_basic_faces): Block input while realizing
9097 the faces.
9098
6e7b2457
GM
9099 * keyboard.c (lispy_mouse_names): Add additional mouse names.
9100
9101 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
9102
aa110c0c
GM
91032000-03-31 Gerd Moellmann <gerd@gnu.org>
9104
9105 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 9106 or ASCII, handle case that per-char metric is null.
aa110c0c 9107
8801a864
KR
91082000-03-30 Ken Raeburn <raeburn@gnu.org>
9109
c6129d7e
KR
9110 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
9111
52283633
SM
9112 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
9113 (XSUBR, XBUFFER): Verify correct object type before returning
8801a864
KR
9114 pointer, using eassert.
9115 * frame.h (XFRAME): Likewise.
9116
52283633
SM
9117 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
9118 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
9119 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
8801a864 9120 * data.c (set_internal): Likewise.
52283633
SM
9121 * dispextern.h (WINDOW_WANTS_MODELINE_P)
9122 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
8801a864
KR
9123 * fileio.c (auto_save_1): Likewise.
9124 * insdel.c (check_markers): Likewise.
9125 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
9126 * undo.c (record_insert): Likewise.
9127 * vmsproc.c (child_sig): Likewise.
9128 * window.c (unshow_buffer, window_loop): Likewise.
9129 * xterm.c (x_erase_phys_cursor): Likewise.
9130
8e7af858
GM
91312000-03-30 Gerd Moellmann <gerd@gnu.org>
9132
9133 * xfns.c (free_image_cache): Free the cache structure itself
9134 last, after all its members have been freed.
9135
9136 * lisp.h (xstrdup): Add prototype.
9137
9138 * alloc.c (xstrdup): Moved here from xfaces.c.
9139 (allocating_for_lisp): Variable removed.
52283633 9140 (lisp_malloc): Block input around the calls to malloc and mem_insert.
8e7af858
GM
9141
9142 * xfaces.c (realize_tty_face): Use find_symbol_value instead
9143 of Fsymbol_value.
9144 (xstrdup): Moved to alloc.c.
9145
e0b8c689
KR
91462000-03-29 Ken Raeburn <raeburn@gnu.org>
9147
b96f9fb7
KR
9148 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
9149
9150 * emacs.c (main): Fix sense of no-loadup test.
9151
e0b8c689
KR
9152 * config.in (ENABLE_CHECKING): Undef.
9153
9154 * lisp.h (struct interval): Replace "parent" field with a union of
9155 interval pointer and Lisp_Object; add new bitfield to use as
9156 discriminant. Change other flag fields to bitfields.
9157 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
52283633
SM
9158 is defined and the supplied test fails, print a message and abort.
9159 (eassert): New macro. Use CHECK to provide an assert-like facility.
e0b8c689
KR
9160
9161 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
9162 pointers; abort if the value looks like a lisp object.
52283633
SM
9163 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
9164 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
e0b8c689
KR
9165 Modify for new interval parent definition.
9166
52283633
SM
9167 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
9168 (UNMARK_BALANCE_INTERVALS): Update references that need an
e0b8c689
KR
9169 addressable lisp object in the interval structure.
9170 (die): New function.
9171 (suppress_checking): New variable.
9172
9173 * intervals.c (interval_start_pos): Just return 0 if there's no
9174 parent object.
9175
f83c5440
GM
91762000-03-29 Gerd Moellmann <gerd@gnu.org>
9177
9178 * lread.c (read1): Accept `.' (period) as symbol start like in CL
9179 and earlier Emacs versions.
9180
9181 * keyboard.c (Ftop_level): Cancel busy-cursor.
9182
9183 * eval.c (call_debugger): Cancel busy-cursor.
9184
fdce64ff
KH
91852000-03-29 Kenichi Handa <handa@etl.go.jp>
9186
9187 * search.c (Freplace_match): Adjust multibyteness of the current
52283633 9188 buffer and NEWTEXT. Free allocated memory before signaling an error.
fdce64ff 9189
f6a3f532
SM
91902000-03-28 Stefan Monnier <monnier@cs.yale.edu>
9191
9192 * regex.c (analyse_first): New function obtained by ripping out most
9193 of re_compile_fastmap and generalizing it a little bit so that it
9194 can also just return whether a given (sub)pattern can match the empty
9195 string or not.
9196 (regex_compile): Use `analyse_first' to decide whether the loop-check
9197 needs to be done or not for *, +, *? and +? (the loop check is costly
9198 for non-greedy repetition).
9199 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
9200
e9b309ac
DL
92012000-03-28 Dave Love <fx@gnu.org>
9202
52283633 9203 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
bb15bd9a 9204
e9b309ac
DL
9205 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
9206
ed0767d8
SM
92072000-03-27 Stefan Monnier <monnier@cs.yale.edu>
9208
9209 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
9210 an expression.
9211 (enum re_opcode_t): Update description of succeed_n.
9212 (PATFETCH): Always define.
9213 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
9214 operators, char classes, shy-groups and intervals).
9215 Optimize special cases of intervals so as to only use succeed_n and
9216 jump_n when really needed.
9217 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
9218 that we don't have to handle the special cases any more.
9219 Simplify on_failure_jump handling as well.
9220
e11e7e46
JR
92212000-03-28 Jason Rumney <jasonr@gnu.org>
9222
9223 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
9224
88faab89
GM
92252000-03-27 Gerd Moellmann <gerd@gnu.org>
9226
182ff242
GM
9227 * s/freebsd.h (GC_SETJMP_WORKS): Define.
9228
9229 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 9230
182ff242
GM
9231 * alloc.c (mark_maybe_object): New function.
9232 (mark_memory): Use it.
9233 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
9234 (setjmp_tested_p, longjmp_done): New variables.
9235 (test_setjmp): New function.
9236 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
9237 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
9238
c1005d06
GM
9239 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
9240 to DEC_TEXT_POS and INC_TEXT_POS.
9241
9242 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
9243 with parameter MULTIBYTE_P.
9244
52283633 9245 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
c1005d06 9246
7439e5b9 9247 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
9248 buffers because it looks for multibyte character byte sequences
9249 which don't exist in unibyte text.
7439e5b9 9250
d9c545da
GM
9251 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
9252
11fd416e 9253 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
9254 [DEBUG_X_COLORS]: New functions.
9255 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
9256
9257 * xfns.c (x_set_cursor_color): Get color reference counts right.
9258
9259 * xterm.c (x_copy_color): New function.
9260 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
9261
9262 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
9263 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
9264 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
9265 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
9266 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
9267 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
9268 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
9269 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
9270 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
9271 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
9272
11fd416e
GM
9273 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
9274 names for handling per-buffer variables.
d9c545da
GM
9275
9276 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
9277 instead of MAX_BUFFER_LOCAL_VARS.
9278 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
9279
9280 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
9281
88faab89
GM
9282 * xfns.c (x_specified_cursor_type): New function.
9283 (x_set_cursor_type): Use it.
9284
9285 * buffer.h (struct buffer): Add cursor_type.
9286
d80f42b7
SM
92872000-03-26 Stefan Monnier <monnier@cs.yale.edu>
9288
9289 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
52283633
SM
9290 (print_partial_compiled_pattern, re_compile_fastmap):
9291 Handle new opcode.
d80f42b7
SM
9292 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
9293 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
9294 executing it as well as when popping it off the stack to find infinite
9295 loops in non-greedy repetition operators.
9296
89e80928
GM
92972000-03-26 Gerd Moellmann <gerd@gnu.org>
9298
3d4ff2dd
GM
9299 * doc.c (Qfunction_documentation): New variable.
9300 (syms_of_doc): Initialize Qfunction_documentation.
9301 (Fdocumentation): If FUNCTION is a symbol with non-nil
9302 `function-documentation' property, return a documentation derived
9303 from that.
9304
bd96bd79
GM
9305 * buffer.c (syms_of_buffer): Add default-cursor-type.
9306 (init_buffer_once): Don't let cursor_type have a local value
9307 in every buffer.
9308
19d1bc27
GM
9309 * xterm.c (x_display_and_set_cursor): Choose cursor depending
9310 on buffer-local value of cursor_type.
9311 (x_draw_bar_cursor): Add parameter WIDTH.
9312
9313 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
9314 (init_buffer_once): Set default cursor_type value to t.
9315 Mark cursor_type as local everywhere.
9316 (syms_of_buffer): New per-buffer variable cursor-type.
9317
89e80928
GM
9318 * buffer.h (struct buffer): Remove member local_var_flags,
9319 add local_flags.
9320 (MAX_BUFFER_LOCAL_VARS): New macro.
9321 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
9322 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
9323 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
9324 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
9325
52283633 9326 * print.c (print_object): Use new macros for per-buffer variables.
89e80928
GM
9327
9328 * category.c (Fset_category_table): Use new macros for per-buffer
9329 variables.
9330
9331 * buffer.c (buffer_permanent_local_flags): Make a char array.
9332 (max_buffer_local_idx): New variable.
9333 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
9334 for new handling of per-buffer variables.
9335 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
9336 (init_buffer_once): Initialize per-buffer vars differently.
9337 Set max_buffer_local_idx.
9338
9339 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
9340 variables.
9341
52283633 9342 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
89e80928
GM
9343
9344 * data.c (do_symval_forwarding, store_symval_forwarding)
9345 (find_symbol_value, set_internal, default_value, Fset_default)
9346 (Fkill_local_variable, Flocal_variable_p): Use new macros for
9347 per-buffer variables.
9348
9349 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
9350
9a0dd3dc
GM
93512000-03-24 Gerd Moellmann <gerd@gnu.org>
9352
b68c375f
GM
9353 * xterm.c (x_term_init): Unblock input around call1 of
9354 Qvendor_specific_keysyms.
9355
9a0dd3dc
GM
9356 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
9357 (find_defun_start): Consider an open parenthesis in column 0
9358 a defun start only if open_paren_in_column_0_is_defun_start is set.
9359 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
9360
7973e637
SM
93612000-03-24 Stefan Monnier <monnier@cs.yale.edu>
9362
9363 * eval.c (Fautoload): Add entry in load-history (if after dump).
9364 * lread.c (load-history): Update docstring.
9365
39210e90
GM
93662000-03-24 Gerd Moellmann <gerd@gnu.org>
9367
9368 * indent.c (Fvertical_motion): Always use the current buffer.
9369 Temporarily change the window's buffer, if necessary.
9370
72db3ab5
GM
93712000-03-23 Gerd Moellmann <gerd@gnu.org>
9372
9373 * xterm.c (fast_find_position): Make sure not to consider rows
9374 not visible in the window.
9375
990b2375
SM
93762000-03-22 Stefan Monnier <monnier@cs.yale.edu>
9377
9378 * regex.c (enum syntaxcode): Provide default for non-Emacs.
9379 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
9380
ff4df011
JR
93812000-03-22 Jason Rumney <jasonr@gnu.org>
9382
9383 * w32menu.c (single_submenu): Set help string to NULL if none.
9384 (w32_menu_show): Set help string correctly.
9385 (add-menu-item): Set help string in MIIM_DATA for menu item.
9386 Load SetMenuItemInfoA explicitly.
9387 (w32_menu_display_help): New function.
427ec082 9388
ff4df011
JR
9389 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
9390 (QCdata): Moved to xdisp.c.
9391
9392 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
9393 (Vw32_charset_to_codepage_alist): Removed.
9394 (Vw32_charset_info_alist): New variable.
52283633
SM
9395 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
9396 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
9397 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
ff4df011
JR
9398 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
9399 with TODO comment.
9400 (w32_codepage_for_font): Use Vw32_charset_info_alist.
9401 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
9402 Define Vw32_charset_info_alist and w32_charset symbols.
9403
94042000-03-22 Jason Rumney <jasonr@gnu.org>
9405
9406 * makefile.nt (w32bdf.obj): Update dependencies.
9407
9408 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
9409
9410 * w32fns.c: Include fontset.h after dispextern.h.
9411 (Fx_create_frame): Do not create fontset.
9412 (w32_load_system_font): Doc fix.
9413 (Fx_close_connection): Free full_name if it is not shared.
9414
9415 * w32term.c: Include fontset.h after dispextern.h.
52283633
SM
9416 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
9417 Callers updated.
ff4df011
JR
9418 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
9419 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
9420 (w32_font_is_double_byte): New function, needs body.
9421 (x_append_glyph): Set glyph->glyph_not_available_p.
9422 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
9423 it->charset. If it->multibyte_p is zero and it->c is a multibyte
9424 character, convert it to a unibyte character.
9425 (struct glyph_string): Delete member `charset'.
9426 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
9427 calculating it is found.
9428 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
9429 the case that per char metric is not available correctly.
9430 (x_fill_glyph_string): Handle the case that the specific glyph is
9431 not available correctly.
9432 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
9433 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
9434 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
9435 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
9436 fontset. Don't call FS_LOAD_FONT.
9437
439d5cb4
KR
94382000-03-22 Ken Raeburn <raeburn@gnu.org>
9439
9440 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
9441 (INT_LISPLIKE): New macro.
9442 (NULL_INTERVAL_P): Use it.
52283633
SM
9443 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
9444 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
9445 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
439d5cb4
KR
9446
9447 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
9448 explicit references to "parent" field of struct interval and
9449 associated unclean type conversions.
52283633
SM
9450 * intervals.c (create_root_interval, root_interval, rotate_right)
9451 (rotate_left, balance_possible_root_interval, split_interval_right)
9452 (split_interval_left, interval_start_pos, find_interval)
9453 (next_interval, previous_interval, update_interval)
9454 (adjust_intervals_for_insertion, delete_node, delete_interval)
9455 (adjust_intervals_for_deletion, merge_interval_right)
9456 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
9457 (copy_intervals_to_string): Likewise.
439d5cb4
KR
9458 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
9459 Likewise.
9460 * syntax.c (update_syntax_table): Likewise.
9461
9462 * intervals.c (reproduce_tree_obj): New function, like
9463 reproduce_tree but takes a Lisp_Object for the parent. Declare
9464 with prototype.
9465 (graft_intervals_into_buffer): Use it when appropriate.
9466 (reproduce_tree): Declare with prototype.
9467 (balance_possible_root_interval): Check that the parent is a lisp
9468 object before trying to examine its type.
9469
ee1c5b21
GM
94702000-03-22 Gerd Moellmann <gerd@gnu.org>
9471
9472 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
9473 as strings only if both are known to be strings.
9474
9475 * s/openbsd.h (LIBS_TERMCAP): Undef.
9476
1fb352e0
SM
94772000-03-21 Stefan Monnier <monnier@cs.yale.edu>
9478
9479 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
9480 definitions for non-Emacs compilation.
9481 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
9482 outside of `#ifdef emacs'.
9483 (print_partial_compiled_pattern): Update.
9484 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
9485 (re_compile_fastmap): Merge handling of charset and charset_not (for
9486 emacs and non-emacs compilation as well).
9487 Similarly for (not)categoryspec and (not)syntaxspec.
9488 Don't use the fastmap when reaching `anychar' since the added
9489 complexity is not justified.
9490 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
9491 and (not)syntaxspec. Merge (not)categoryspec.
9492
fdaa1f77
KH
94932000-03-22 Kenichi Handa <handa@etl.go.jp>
9494
52283633
SM
9495 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
9496 (FACE_FOR_CHAR): Define them differently for the configuration of
ff1a0d8e 9497 --without-x.
fdaa1f77 9498
d152fb46
DL
94992000-03-21 Dave Love <fx@gnu.org>
9500
9501 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
9502 doc string.
9503
d2cafc8c
GM
95042000-03-21 Gerd Moellmann <gerd@gnu.org>
9505
9506 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
9507 (lface_fully_specified_p): Don't check contents of
9508 LFACE_FONT_INDEX because that attribute is optional.
9509 (realize_x_face): Remove now unwarranted xassert.
9510
9111d4b5
KH
95112000-03-21 Kenichi HANDA <handa@etl.go.jp>
9512
9513 The following changes are to make font selection based on
9514 characters, not charset. In addition, they recover fontset
9515 facilities while utilizing the new font selection mechanism.
9516
6c4bfdc0
KH
9517 * Makefile.in (fontset.o): Depend on dispextern.h.
9518
9519 * alloc.c (mark_face_cache): Don't mark face->registry.
9520
9111d4b5
KH
9521 * dispextern.h (struct glyph): New member glyph_not_available_p.
9522 Use 22 bits for face_id.
9523 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
9524 (struct face): Delete member registry, new member ascii_face.
9525 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
9526 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
9527 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
52283633 9528 (struct it): Delete member charset, new member glyph_not_available_p.
9111d4b5
KH
9529
9530 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
9531 (struct fontset_info, struct fontset_data): Structs removed.
52283633
SM
9532 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
9533 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
9111d4b5 9534 (fs_load_font, fs_query_fontset): Adjusted for new argument.
52283633
SM
9535 (fs_free_face_fontset, fontset_font_pattern)
9536 (face_suitable_for_char_p, face_for_char)
9537 (make_fontset_for_ascii_face): Extern them.
9111d4b5
KH
9538 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
9539 (FS_LOAD_FACE_FONT): New macro.
9540
9541 * fontset.c: All codes rewritten or adjusted for the change of
9542 fontset implementation. Now fontset is represented by char table.
52283633
SM
9543 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
9544 Variables removed.
9111d4b5 9545 (my_strcasecmp): Function removed.
52283633 9546 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
9111d4b5 9547 (AREF, ASIZE): New macros.
52283633
SM
9548 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
9549 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
9550 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
9551 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
9552 (fontset_id_valid_p, font_family_registry, fontset_name)
9553 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
9554 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
9111d4b5
KH
9555 New functions.
9556 (fs_load_font): New arg FACE. Caller changed.
9557 (fs_query_fontset): Argument changed. Caller changed.
9558 (Fquery_fontset): call fs_query_fontset.
9559 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
9560 Functions removed.
52283633
SM
9561 (clear_fontset_elements, check_registry_encoding)
9562 (check_fontset_name): New functions.
9111d4b5
KH
9563 (syms_of_fontset): Set char-table-extra-slots property of fontset
9564 to 3. Staticpro and initialize Vfontset_table and
9565 Vdefault_fontset. Defsubr fontset_font and fontset_list.
9566
9567 * frame.h (struct frame): Member `fontset_data' removed.
9568 (FRAME_FONTSET_DATA): Macro removed.
9569
9570 * frame.c (make_frame): Don't allocate f->fontset_data.
9571 (Fdelete_frame): Don't free f->fontset_data.
9572
6c4bfdc0
KH
9573 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
9574
9111d4b5
KH
9575 * xdisp.c (charset_at_position): Function removed.
9576 (init_iterator): Don't set member charset of struct `it'.
52283633
SM
9577 (handle_face_prop, reseat_to_string, set_iterator_to_next)
9578 (next_element_from_display_vector, insert_left_trunc_glyphs):
9111d4b5
KH
9579 Likewise.
9580 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
9581 FACE_FOR_CHARSET.
52283633
SM
9582 (get_next_display_element, append_space)
9583 (extend_face_to_end_of_line): Likewise.
9111d4b5
KH
9584
9585 * xfaces.c (Qx_charset_registry, Vface_default_registry):
9586 Variables removed.
9587 (clear_font_table, frame_update_line_height, load_face_font):
9588 Adjusted for the change of fontset implementation.
9589 (load_face_fontset_font): Function removed.
9590 (pixel_point_size): New function.
9591 (font_list): Argument type changed. Caller changed.
9592 (LFACE_FONT): New macro.
9593 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
9594 (set_lface_from_font_name): Type of arg FONTNAME is changed to
9595 Lisp_Object. Determine the font name by actually loading a font
9596 by the specified pattern. Set LFACE_FONT (lface) to the specified
9597 pattern. Even if a font is not found, don't try alternatives.
9598 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
9599 (set_font_frame_param): If `font' is specified in lface, use it.
9600 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
9601 (lface_same_font_attributes_p): Likewise.
9602 (make_realized_face): Arguent changed. Caller changed. Set
9603 face->ascii_face to face itself.
9604 (free_realized_face): Free face->fontset if face is for ASCII.
52283633
SM
9605 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
9606 (deduce_unibyte_registry, x_charset_registry): Functions removed.
9111d4b5
KH
9607 (free_realized_multibyte_face): New function.
9608 (lookup_face, lookup_named_face, lookup_derived_face): Argument
9609 changed. Caller changed.
9610 (try_font_list): Argument type changed.
9611 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
9612 (choose_face_font): Argument changed. Handle fontset properly.
9613 (choose_face_fontset_font): Function removed.
9614 (realize_default_face, realize_named_face): Don't remove the
9615 former face here.
9616 (realize_face): Argument changed. Caller changed. Remove face
52283633 9617 with the arg former_face_id in advance. Load font for the new face.
9111d4b5
KH
9618 (realize_x_face): Argument changed. Caller changed. For a
9619 multibyte character, share fontset with base_face. For a single
52283633 9620 byte character, make a new realized fontset. Don't load a font here.
9111d4b5
KH
9621 (realize_tty_face): Argument changed. Caller changed.
9622 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
9623 (face_at_buffer_position): Don't check multibyte_p for returning
9624 DEFAULT_FACE_ID.
9625 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
9626 FACE_SUITABLE_FOR_CHARSET_P.
9627 (syms_of_xfaces): Remove code for Qx_charset_registry and
9628 Vface_default_registry.
9629
6c4bfdc0
KH
9630 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
9631 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
9632 (x_per_char_metric): Don't try FONT->default_char. Even if
9633 pcm->width is zero, glyph bits may exist.
9634 (x_encode_char): Always initialize char2b->byte1.
9635 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
52283633 9636 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
9111d4b5
KH
9637 (x_append_glyph): Set glyph->glyph_not_available_p.
9638 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
9639 it->charset. Handle the case that per char metric is not
9640 available. If it->multibyte_p is zero and it->c is a multibyte
9641 character, convert it to a unibyte character.
9642 (struct glyph_string): Delete member `charset'.
9643 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
9644 the case that per char metric is not available correctly.
9645 (x_fill_glyph_string): Handle the case that the specific glyph is
9646 not available correctly.
9647 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
9648 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
9649 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
9650 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
9651 fontset. Don't call FS_LOAD_FONT.
9652
9653 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
9654 (x_create_tip_frame): Likewise.
9655 (Fx_close_connection): Free full_name of font_info.
9656
9657 * fns.c (optimize_sub_char_table): New function.
9658 (Foptimize_char_table): New function.
9659 (syms_of_fns): Defsubr Soptimize_char_table.
9660
b33dd3b0
GM
96612000-03-20 Gerd Moellmann <gerd@gnu.org>
9662
9663 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
9664 only if buffer is displayed in some window.
9665
9666 * xdisp.c (handle_single_display_prop): Initialize local `value'.
9667 (try_window_reusing_current_matrix): Don't call scroll run
9668 function if run's current and desired position are the same;
9669 this prevents cursor flickering.
9670
4e8a9132
SM
96712000-03-19 Stefan Monnier <monnier@cs.yale.edu>
9672
9673 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
9674
9675 * regex.c (RE_STRING_CHAR): New macro.
9676 (GET_CHAR_AFER_2): Remove.
9677 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
9678 (enum re_opcode_t): Remove on_failure_jump_exclusive.
9679 (print_partial_compiled_pattern, re_compile_fastmap)
9680 (re_match_2_internal): Remove on_failure_jump_exclusive.
9681 (regex_compile): Turn optimizable P+ loops into PP*, so that the
9682 optimization only need to work for * (ie. can use of_keep_string_jump).
9683 Remove the special case for .*\n since it is now covered by the general
9684 optimization.
9685 (re_search_2): Don't bother with `room'.
9686 (skip_one_char): New function.
9687 (skip_noops): Simplify since `memory' is not needed any more.
9688 (mutually_exclusive_p): Restructure slightly to use `switch' and
9689 add handling for "all" remaining cases.
9690 (re_match_2_internal): Change on_failure_jump_smart to use
9691 on_failure_keep_string_jump (and redirect the end-of-loop jump)
9692 rather than on_failure_jump_exclusive.
9693
2136fdd4
GM
96942000-03-19 Gerd Moellmann <gerd@gnu.org>
9695
9696 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
9697 number of bits per RGB because it's everywhere used as the depth
9698 of the visual.
9699
9700 * term.c (calculate_costs): Remove code dealing with X frames.
9701
18e21ce8 97022000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
9703
9704 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
9705
d7b511c4
GM
97062000-03-18 Gerd Moellmann <gerd@gnu.org>
9707
9708 * lread.c (read_integer): Unread the last char not consumed.
9709
16b5d424
GM
97102000-03-17 Gerd Moellmann <gerd@gnu.org>
9711
9712 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 9713 which are in the process of being deleted.
16b5d424 9714
1fa28578
GM
97152000-03-16 Gerd Moellmann <gerd@gnu.org>
9716
83488cce
GM
9717 * Makefile.in (mostlyclean): Add `*.core'.
9718 (clean): Add `bootstrap-emacs'.
9719
1fa28578
GM
9720 * lread.c (read_integer): New function.
9721 (read1): Support read syntax #o, #x, #b, #r.
9722
99633e97
SM
97232000-03-15 Stefan Monnier <monnier@cs.yale.edu>
9724
1fa28578
GM
9725 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
9726 make sure POINTER_TO_OFFSET gives the same value before and after
9727 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
9728 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
9729 (debug): Now only active if > 0 rather than if != 0.
9730 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
9731 (print_partial_compiled_pattern): Add missing `succeed' case. Use
9732 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
9733 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
9734 (store_op1, store_op2, insert_op1, insert_op2)
9735 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
9736 (group_in_compile_stack): Move to after its arg's types are
9737 declared and add a prototype.
99633e97 9738 (PATFETCH): Define in terms of PATFETCH_RAW.
52283633 9739 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
99633e97 9740 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
9741 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
9742 indentation of the greedy-op and shy-group code.
99633e97
SM
9743 (at_(beg|end)line_loc_p): Fix argument's types.
9744 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
9745 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
9746 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
9747 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
9748 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
9749 QUIT unconditionally.
99633e97 9750
699238d9
GM
97512000-03-15 Gerd Moellmann <gerd@gnu.org>
9752
9753 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
9754 a sole completion.
9755
9756 * process.c (send_process): Add a hint that the function
9757 can call Lisp code to its comment.
9758
9759 * lread.c (load_dangerous_libraries): New variable.
9760 (Vbytecomp_version_regexp): New variable.
9761 (safe_to_load_p): New function.
9762 (Fload): Handle files not compiled with Emacs specially.
9763 (syms_of_lread): New Lisp variable load-dangerous-libraries.
9764
34e23e5a
GM
97652000-03-14 Gerd Moellmann <gerd@gnu.org>
9766
9c763cca
GM
9767 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
9768
9769 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
9770 support functions only if HAVE_X11R6_XIM is defined.
9771 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
9772
9773 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
9774
9775 * xfns.c (X_I18N_INHIBITED): Don't define.
52283633 9776 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
9c763cca
GM
9777 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
9778
9779 * config.in (HAVE_X_I18N): Moved here from xterm.h.
9780 (HAVE_X11R6_XIM): Define.
9781
9782 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
9783
34e23e5a
GM
9784 * xterm.c (x_term_init): Add support for X resource `synchronous'.
9785 If set, call XSynchronize.
9786
66f0296e
SM
97872000-03-13 Stefan Monnier <monnier@cs.yale.edu>
9788
34e23e5a
GM
9789 * regex.c: Declare a new type `re_char' used throughout the code
9790 for the string char type. It's `const unsigned char' to match the
9791 rest of Emacs. Consistently make sure all pointers to strings use
52283633 9792 it and make sure all pointers into the pattern use `unsigned char'.
66f0296e 9793 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
9794 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
9795 code duplication.
66f0296e
SM
9796
9797 * charset.h (GET_CHAR_AFTER_2): Remove.
9798 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
9799
854a025c
KR
98002000-03-12 Ken Raeburn <raeburn@gnu.org>
9801
9802 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
9803 variable before the invocation of YMF_PASS_LDFLAGS, in case both
9804 of them try to use backquotes.
9805
b9d2c7e2
DL
98062000-03-12 Dave Love <fx@gnu.org>
9807
9808 * unexelf.c: Restore changes of 1999-10-19.
9809 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
9810 fix its type and alignment; copy it from current process.
9811
5e5dff44
GM
98122000-03-12 Gerd Moellmann <gerd@gnu.org>
9813
9b2f3c38
GM
9814 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
9815 has been found. Fix bug not computing timer's predecessor.
9816
427ec082 9817 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
9818 file name.
9819
e1cff360
GM
9820 * window.c (Fsave_window_excursion): Doc fix.
9821
52283633 9822 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
5e5dff44 9823
e411ce4b
EZ
98242000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
9825
9826 * msdos.c (vga_installed): New function, code moved from
9827 dos_set_window_size.
9828 (Qbar, Qcursor_type, outside_cursor): New variables.
9829 (syms_of_msdos): Intern and staticpro them.
9830 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
9831 shape used outside Emacs when called for the first time.
9832 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
9833 cursor shape used outside Emacs.
9834 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
9835 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
9836 type has changed.
9837 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
9838 parameters specify the cursor. Make qreverse a global
9839 variable (renamed to Qreverse).
9840
80460654
GM
98412000-03-09 Gerd Moellmann <gerd@gnu.org>
9842
9843 * fns.c (Fy_or_n_p): Cancel busy-cursor.
9844
95cd4c40
SM
98452000-03-08 Stefan Monnier <monnier@cs.yale.edu>
9846
9847 This is a big redesign of failure-stack and register handling, prompted
9848 by bugs revealed when trying to add shy-groups. Overall, what happened
9849 is that loops are now structured a little differently, groups can be
9850 shy and the code is a little simpler.
9851
9852 * regex.h: Update the copyright.
9853 (RE_SHY_GROUPS): New value.
9854 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
9855 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
9856
80460654
GM
9857 * regex.c (enum re_opcode_t): Remove jump_past_alt,
9858 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
9859 on_failure_jump_(exclusive, loop and smart). Also fix the comment
9860 for (start|stop)_memory since they now only take one argument (the
9861 second has becomes unnecessary).
52283633 9862 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
80460654
GM
9863 (print_compiled_pattern): Use %ld to printf long ints and flush to
9864 make debugging a little easier.
95cd4c40
SM
9865 (union fail_stack_elt): Make the integer unsigned.
9866 (struct fail_stack_type): Add a `frame' element.
9867 (INIT_FAIL_STACK): Init `frame' as well.
9868 (POP_PATTERN_OP): New macro for re_compile_fastmap.
9869 (DEBUG_PUSH, DEBUG_POP): Remove.
9870 (NUM_REG_ITEMS): Remove.
9871 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
9872 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
9873 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 9874 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
52283633
SM
9875 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
9876 New macros.
80460654
GM
9877 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
9878 address pushed is not the destination of the jump but the source
9879 of it instead.
95cd4c40
SM
9880 (NUM_FAILURE_ITEMS): Remove.
9881 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
9882 registers before the actual failure point). Don't hardcode any
9883 meaning for str==NULL anymore.
95cd4c40 9884 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
9885 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
9886 Remove.
95cd4c40
SM
9887 (REG_UNSET_VALUE): Use NULL (why not?).
9888 (compile_range): Remove declaration since it doesn't exist.
9889 (struct compile_stack_elt_t): Remove inner_group_offset.
9890 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
9891 (regex_grow_registers): Remove dead code.
9892 (FIXUP_ALT_JUMP): New macro.
80460654
GM
9893 (regex_compile): Add shy-groups Change loops to use
9894 on_failure_jump_smart&jump instead of
9895 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
9896 initial (dummy_failure_)jump. Remove c1_base (looks like unused
9897 variable to me). Use `jump' instead of `jump_past_alt' and don't
9898 bother with push_dummy_failure in alternatives since it is now
9899 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
9900 emacs' for (re)allocating the stack.
9901 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
9902 from loop when bufp->can_be_null rather than jumping to `done'.
9903 Avoid jumping backwards so as to ensure termination. Use
9904 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
9905 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 9906 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
9907 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
9908 improve mutually_exclusive_p to handle ".+\n".
52283633
SM
9909 (lowest_active_reg, highest_active_reg)
9910 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
80460654
GM
9911 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
9912 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
9913 variables. Push register (in `start_memory') on the stack rather
9914 than storing it in old_reg(start|end). Remove the cycle detection
9915 from `stop_memory', replaced by the use of on_failure_jump_loop
9916 for greedy loops. Add code for the new on_failure_jump_<foo>.
9917 Remove ad-hoc code in `on_failure_jump' to push more registers in
9918 the case of a loop. Take out code from `maybe_pop_jump' into
9919 separate functions and adapt it to the semantics of
9920 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
9921 and push_dummy_failure. Remove dummy_failure handling and
9922 handling of `failures to jump to on_failure_jump' (this last one
9923 was already dead code, it seems).
9924 (group_match_null_string_p, alt_match_null_string_p)
9925 (common_op_match_null_string_p): Remove.
95cd4c40 9926
7397acc4
DL
99272000-03-08 Dave Love <fx@gnu.org>
9928
9929 * config.in: Don't depend on __STDC__ for volatile.
9930 Add POINTER_TYPE, PTR, PROTOTYPES.
9931
9932 * hftctl.c, strftime.c: Use PROTOTYPES.
9933 * eval.c (find_handler_clause): Likewise.
9934
9935 * mem-limits.h: Use POINTER_TYPE.
9936
9937 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
9938 (memory_warnings): Declare using POINTER_TYPE.
9939
5e91ff9e
GM
99402000-03-08 Gerd Moellmann <gerd@gnu.org>
9941
feab4fba
GM
9942 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
9943
52283633 9944 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
25edb08f 9945
5e91ff9e
GM
9946 * xfns.c: Remove obsolete code in #if 0.
9947 (Fx_focus_frame): New function.
9948
a735b7e1
KH
99492000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
9950
9951 * coding.c (coding_category_name): Add coding-category-utf-8,
9952 coding-category-utf-16-be, coding-category-utf-16-le.
9953 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
9954 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
9955 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
9956 (detect_coding_utf_8): New function.
9957 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
9958 UTF_16_LOW_SURROGATE_P): New macros.
9959 (detect_coding_utf_16): New function
9960 (detect_coding_mask): When priorities are specified, skip any
9961 categories that have `nil' coding-system. Fix bug of returning
9962 wrong mask when PRIORITIES is specified and detect_coding_XXX()
9963 returns a mask not set in PRIORITIES.
9964 (detect_eol_type_in_2_octet_form): New function.
9965 (detect_eol): selects detect_eol_type_XXX to call according to
9966 cooding->category_idx.
9967 (detect_coding_system): Remove `nil' coding-system in the result.
9968 (Fupdate_coding_systems_internal): Update all coding-categories.
9969
52283633
SM
9970 * coding.h (CODING_CATEGORY_IDX_UTF_8)
9971 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
9972 New macros.
9973 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
9974 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
9975 (CODING_CATEGORY_IDX_UTF_16_LE)
9976 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
9977 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
a735b7e1
KH
9978 (CODING_CATEGORY_MASK_ANY): Include the above macros.
9979 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
9980
9994cc69
GM
99812000-03-07 Gerd Moellmann <gerd@gnu.org>
9982
e9b4e5ff
GM
9983 * doc.c (Fdocumentation_property): If value is not a string,
9984 and doesn't refer to etc/DOC, evaluate it to obtain a string.
9985
f7daf1e1
GM
9986 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
9987 close the display with XtCloseDisplay. This caused a bus error
9988 on OpenWindows.
9989
9994cc69
GM
9990 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
9991 complete but not unique.
9992
4336c705
GM
99932000-03-06 Gerd Moellmann <gerd@gnu.org>
9994
18bb0684
GM
9995 * process.c (send_process): Remove local variable `procname' that
9996 might become invalid when a GC happens. Instead, access the
9997 process name slot directly.
9998
4336c705
GM
9999 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
10000 orig_height if set.
10001
10002 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
10003 orig_height if set.
10004
515d0d0e
EZ
100052000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
10006
10007 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
10008 glyph matrices have been freed.
10009
100b3cbb
GM
100102000-03-05 Gerd Moellmann <gerd@gnu.org>
10011
50df5e5a 10012 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 10013 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
10014
10015 * xfns.c (QCdata): Moved to xdisp.c.
10016
10017 * xdisp.c (QCdata): Moved here from xfns.c.
10018 (syms_of_xdisp): Initialize QCdata.
10019
10020 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
10021
10022 * window.c (coordinates_in_window): Use
10023 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
10024 FRAME_INTERNAL_BORDER_WIDTH.
10025
100b3cbb 10026 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 10027 it is obviously invalid.
100b3cbb
GM
10028
10029 * xterm.c (x_term_init): Create a colormap if not using the
10030 default visual.
10031
10032 * xterm.h (select_visual): Change prototype.
10033
10034 * xfns.c (select_visual): Rewritten. Recognize user-specified
10035 visual classes.
10036 (visual_classes): New variable.
10037
64d739c4
GM
100382000-03-04 Gerd Moellmann <gerd@gnu.org>
10039
10040 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
10041 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
10042 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
52283633 10043 (x_decode_color): Don't handle allocation of white and black specially.
64d739c4
GM
10044 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
10045 XtNcolormap resources.
10046 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
10047 (Fx_create_frame): Initialize color members of x_output structure.
10048 (xpm_load): Pass colormap to XPM lib.
10049
10050 * xfaces.c (x_free_colors): Access colormap of frame using
10051 FRAME_X_COLORMAP. Be paranoid about freeing black and white
10052 when default colormap is used.
10053
10054 * xterm.c (x_term_init): Set Colormap member of x_display_info
10055 structure. Copy colormap if resource `privateColormap' is
10056 specified (PseudoColor only).
10057 (x_setup_relief_color): Access colormap of frame using
10058 FRAME_X_COLORMAP.
10059
10060 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
10061 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
10062
c3cee013
JR
100632000-03-04 Jason Rumney <jasonr@gnu.org>
10064
10065 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
10066 other non-platform-specific equivalents.
64d739c4 10067 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
10068 specific functions and macros as their w32 equivalents where
10069 non-platform-specifics are not available.
10070 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
10071 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
10072 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
10073 (frame_update_line_height): Use macros to access f->output_data.
10074 (defined_color): Remove FIXME comments; fixed.
10075 (x_face_list_fonts, prepare_face_for_display): Put X specifics
10076 into #ifdef blocks. Add WINDOWSNT blocks.
10077 (Fx_list_fonts): Use macros for accessing font data.
10078 (set_lface_from_font_name): Different default fonts for X and
10079 WINDOWSNT.
10080 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
10081 scalable for backward compatibility.
64d739c4 10082 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
10083 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
10084
64d739c4 10085 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
10086 syms_of_w32faces.
10087
10088 * makefile.nt (w32faces.obj): Remove.
10089 (xfaces.obj): Add.
10090
807cc41c
JR
100912000-03-03 Jason Rumney <jasonr@gnu.org>
10092
10093 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
10094 correct parameters.
10095
0007072a
KR
100962000-03-03 Ken Raeburn <raeburn@gnu.org>
10097
10098 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
10099 standard ELF definitions here if the system header does not.
10100
71a6ba55
GM
101012000-03-03 Gerd Moellmann <gerd@gnu.org>
10102
10103 * xterm.c (PER_CHAR_METRIC): Removed.
10104 (x_per_char_metric_1, x_default_char): New functions.
10105 (x_per_char_metric): If font's default char is invalid, return
10106 metrics of a suitably chosen usable default char.
10107 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
10108 char, replace occurrences of unprintable chars with a suitably
10109 chosen usable default char.
71a6ba55 10110
900fa1f1
GM
101112000-03-02 Gerd Moellmann <gerd@gnu.org>
10112
42f55fe0
GM
10113 * xterm.c (note_mouse_highlight): Return quickly if frame's
10114 glyph matrices have been freed.
10115
10116 * dispnew.c (free_glyphs): Block input while freeing matrices.
10117
900fa1f1
GM
10118 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
10119
52283633
SM
10120 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
10121 Use x_free_colors.
900fa1f1
GM
10122
10123 * dispextern.h (x_free_colors): Add prototype.
10124
10125 * xfaces.c (x_free_colors): New function.
10126 (unload_color, free_face_colors): Use it.
10127
2f950292
EZ
101282000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
10129
10130 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
10131
10132 * window.c [MSDOS]: Include msdos.h.
10133
54d04320
DL
101342000-03-02 Dave Love <fx@gnu.org>
10135
10136 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
10137
10138 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
10139 set C_OPTIMIZE_SWITCH for gcc.
10140
0ba93ac4
KH
101412000-03-02 Kenichi Handa <handa@etl.go.jp>
10142
10143 * coding.c (coding_save_composition): Be sure to allocate
10144 composition data area in coding even if there's no composition in
10145 the current run.
10146
a2bc11d4
JR
101472000-03-01 Jason Rumney <jasonr@gnu.org>
10148
10149 * w32term.c: Equivalent changes to those made to xterm.c on
10150 2000-02-25 and 2000-02-24.
10151
10152 * w32fns.c: Equivalent changes to those made to xfns.c on
10153 2000-02-25 and 2000-02-21.
10154
10155 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
10156 correct line-end convention is followed.
10157
10158 * w32menu.c [HAVE_BOXES]: Remove #undef.
10159 (single_keymap_panes): Remove code for simulating checkmarks.
10160 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
10161 Remove code for drawing simulated checkmarks.
10162 (w32_menu_show): make unibyte help string correctly.
10163 (add_menu_item): draw standard Windows checkmarks. Draw radio
10164 buttons as radio buttons if possible.
10165
72d19d75
GM
101662000-03-01 Gerd Moellmann <gerd@gnu.org>
10167
2df636f4
GM
10168 * sysdep.c (start_of_text): Don't define this function for NetBSD
10169 with ELF.
10170
427ec082 10171 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
10172 Don't define.
10173 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
10174 (LINKER): Don't undef if __NetBSD__ is defined.
10175
10176 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
10177
10178 * fileio.c [__NetBSD__]: Define `unix'.
10179
72d19d75
GM
10180 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
10181
ed4d0512
GM
101822000-02-29 Gerd Moellmann <gerd@gnu.org>
10183
50b1039f
GM
10184 * atimer.c (start_atimer): Don't abort when timers are stopped.
10185 (append_atimer_lists): New function.
10186 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
10187 arbitrary lists of stopped and running atimers.
10188
ed4d0512
GM
10189 * atimer.c (cancel_atimer): Handle canceling an atimer when
10190 some timers are stopped.
10191
10192 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
10193 after canceling it.
10194
10195 * fns.c (maybe_resize_hash_table): Handle case of new size
10196 coming out as being the same as old size.
10197
387023ee
JR
101982000-02-27 Jason Rumney <jasonr@gnu.org>
10199
10200 * makefile.nt: Add atimer.h to dependencies.
10201 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
10202 * w32console.c: Only disable window system features for dispextern.h
10203 (initialize_w32_display): Build a display info for the console.
10204 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
10205 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
10206 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
10207 as 2 button mice.
10208 * w32gui.h (struct W32FontStruct): Revert last change after change
10209 to xdisp.c.
10210 * w32menu.c (single_submenu): Set up help string.
10211 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
10212 (w32_dialog_show): Set up help string.
10213 * w32term.c (w32_display_info_for_display): Remove unused function.
10214 (w32_draw_bitmap): Use pre-built bitmaps.
10215 (w32_initialize_display_info): New function to initialize parts of
10216 display info that are common to both GUI and console frames.
10217 (w32_term_init): Use w32_initialize_display_info. Do not set
10218 Vw32_num_mouse_buttons here, as it is not called for console
10219 frames. Build bitmaps for indicating truncated lines etc.
10220 (x_delete_display): Destroy pre-built bitmaps.
10221 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
10222 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
10223
4516715a
DL
102242000-02-27 Dave Love <fx@gnu.org>
10225
10226 * lisp.h: Add a bunch of prototypes.
10227
171ca836
KH
102282000-02-26 Kenichi Handa <handa@etl.go.jp>
10229
10230 * keyboard.c (read_char): Set `usec' correctly.
10231
4013921d
KH
102322000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
10233
10234 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
10235 `lambda', set reg[RRR] to the map index.
10236 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
10237 reg[RRR] to 0. Otherwise, set it to -1.
10238
9244a058
GM
102392000-02-25 Gerd Moellmann <gerd@gnu.org>
10240
2df636f4 10241 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 10242
18e21ce8 102432000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 10244
f43d79c1
GM
10245 * fileio.c (Ffile_symlink_p): If result starts with a `/'
10246 and contains a `:', prepend `/:'.
10247
10248 * window.c (select_window_1): If selected_window is nil,
10249 don't "swap out" the buffer's point.
10250 (Fset_window_configuration): Set selected_window to nil
10251 before calling Fselect_window.
10252 (unshow_buffer): Don't set point in buffer from window's point
10253 if another more recently selected window also shows the buffer.
10254
bed0c171
GM
102552000-02-25 Gerd Moellmann <gerd@gnu.org>
10256
449c3c52
GM
10257 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
10258
f5b58615
GM
10259 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
10260 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
52283633
SM
10261 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
10262 New variables.
f5b58615
GM
10263 (DEFAULT_BUSY_CURSOR_DELAY): New define.
10264 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
10265 (hide_busy_cursor): New functions.
10266 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
10267
10268 * minibuf.c (read_minibuf): Cancel busy-cursor.
10269
10270 * keyboard.c (command_loop_1): Call start_busy_cursor before
10271 Fcommand_execute and cancel_busy_cursor after it.
10272 (timer_check): Remove busy-cursor code.
10273 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
10274 cursor timer.
10275
10276 * process.c (wait_reading_process_input): Remove busy-cursor code.
10277
10278 * eval.c (Fsignal): Call cancel_busy_cursor instead of
10279 Fx_hide_busy_cursor.
10280
10281 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
10282 Remove prototyoes.
10283 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
10284
10285 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
10286
10287 * xterm.c (XTread_socket): Remove busy-cursor code.
10288
4eb8436f
GM
10289 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
10290 (build_frame_matrix_from_leaf_window): Put code handling
10291 glyph row's not being a slice of a frame row in #if 0.
10292 (sync_window_with_frame_matrix_rows): New function.
10293 (frame_row_to_window): New function.
10294 (mirror_line_dance): Handle copies between windows.
10295
3cb65b0e
GM
10296 * lread.c (Fload): Use `xfree' instead of `free'.
10297 (init_obarray): Use `xmalloc' instead of `malloc'.
10298
bed0c171
GM
10299 * window.c (Fset_window_buffer): Set WINDOW to the window
10300 after decoding.
2add4349
GM
10301 (coordinates_in_window): Take frame's internal border width
10302 into account.
bed0c171 10303
42088c12
GM
103042000-02-24 Gerd Moellmann <gerd@gnu.org>
10305
10306 * xterm.c (x_display_and_set_cursor): Display cursor of
10307 non-selected windows depending on the setting of
10308 cursor_in_non_selected_windows.
10309
10310 * xdisp.c (cursor_in_non_selected_windows): New variable.
10311 (syms_of_xdisp): DEFVAR_BOOL it.
10312
d1e103b2
GM
103132000-02-23 Gerd Moellmann <gerd@gnu.org>
10314
723e779c
GM
10315 * data.c (Fstring_to_number): If number is greater than what
10316 fits into an integer, return a float.
10317
d1e103b2
GM
10318 * eval.c (specbind): Remove references to
10319 keyword_symbols_constant_flag.
10320
10321 * data.c (keyword_symbols_constant_flag): Removed.
10322 (Fmakunbound, set_internal, syms_of_data): Remove references to
10323 keyword_symbols_constant_flag.
10324
10325 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
10326
214f877f
KH
103272000-02-23 Kenichi Handa <handa@etl.go.jp>
10328
10329 * syntax.c (multibyte_syntax_as_symbol): New variable.
10330 (syms_of_syntax): Declare it as a Lisp variable.
10331 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
10332 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
10333 nonzero, treat all multibyte characters as symbol.
52283633 10334 (init_syntax_once): Give syntax `word' to all multibyte characters.
214f877f 10335
130adcb7
EZ
103362000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
10337
3cb65b0e 10338 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 10339 a deleted frame.
130adcb7 10340
17cbbf95
GM
103412000-02-21 Gerd Moellmann <gerd@gnu.org>
10342
10343 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
10344
10345 * xfns.c (x_window_to_frame, x_any_window_to_frame)
10346 (x_non_menubar_window_to_frame): Check the busy-cursor window.
10347
beb0bc36
DL
103482000-02-21 Dave Love <fx@gnu.org>
10349
10350 * frame.c (Vmouse_position_function): New variable.
10351 (Fmouse_position): Use it.
10352 (syms_of_frame): Install it.
10353
10354 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
10355
1d92afcd
GM
103562000-02-20 Gerd Moellmann <gerd@gnu.org>
10357
10358 * fileio.c (Finsert_file_contents): Unbind the binding of
10359 standard-output done by temp_output_buffer_setup.
329eed9f
GM
10360
10361 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
10362 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
10363 (specbind, unbind_to): Handle most common case of non-constant
10364 symbol with trivial value specially.
10365
10366 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
10367
18e21ce8 103682000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
10369
10370 * data.c (Fmake_variable_buffer_local): Doc fix.
10371 Init found_for_buffer to 0.
10372 (Fmake_variable_frame_local): If the variable has already
10373 been buffer-local, set the check_frame field.
10374
1d4311c3
EZ
103752000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
10376
10377 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
10378 produced for CODING_MODE_LAST_BLOCK requires.
10379
2dc95ddd
DL
103802000-02-18 Dave Love <fx@gnu.org>
10381
10382 * keyboard.c (echo_keystrokes): Remove declaration.
10383 (Vecho_keystrokes) New variable.
10384 (read_char, record_menu_key, read_key_sequence): Use it to allow
10385 use of float value.
10386 (syms_of_keyboard): Change Vecho_keystrokes declaration.
10387
10388 * lread.c: Undef feature selection macros before defining.
10389
f0930f35
GM
103902000-02-18 Gerd Moellmann <gerd@gnu.org>
10391
10392 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
10393 for symbols other than the symbol in question.
10394
e3d4de90
DL
103952000-02-17 Dave Love <fx@gnu.org>
10396
10397 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
10398
0b378936
GM
103992000-02-17 Gerd Moellmann <gerd@gnu.org>
10400
d621caf7
GM
10401 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
10402
0b378936
GM
10403 * alloc.c (enum mem_type): Compile unconditionally.
10404
3b451f74
EZ
104052000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
10406
10407 * xfaces.c (tty_defined_color): Don't return faulire indication
10408 for unspecified-fg and unspecified-bg pseudo-colors.
10409
10689a01
GM
104102000-02-17 Gerd Moellmann <gerd@gnu.org>
10411
1216f5e4
GM
10412 * alloc.c (mark_object): Don't mark symbol names in pure space.
10413 (gc_sweep): Don't unmark symbol names in pure space.
10414
10415 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
10416 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
10417 [GC_MARK_STACK]: New defines.
427ec082 10418 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
10419 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
10420
10421 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
10422
10423 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
10424 allocate_buffer instead of xmalloc.
10425
10426 * alloc.c (toplevel): Include setjmp.h.
10427 (PURE_POINTER_P): New define.
10428 (enum mem_type) [GC_MARK_STACK]: New enumeration.
10429 (Vdead) [GC_MARK_STACK]: New variable.
10430 (lisp_malloc): Add parameter TYPE, call mem_insert if
10431 GC_MARK_STACK is defined.
10432 (allocate_buffer): New function.
427ec082 10433 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
10434 (free_float) [GC_MARK_STACK]: Set type to Vdead.
10435 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
10436 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
10437 (MEM_NIL) [GC_MARK_STACK]: New define.
10438 (struct mem_node) [GC_MARK_STACK]: New structure.
10439 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
10440 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
10441 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
10442 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
10443 (mark_stack) [GC_MARK_STACK]: New functions.
10444 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
10445 (clear_marks): Removed.
10446 (gc_sweep): Set free conses' car, free floats' type, free
10447 symbols' function to Vdead. Use lisp_free to free buffers.
10448 (init_alloc_once): Initialize Vdead.
10449 (survives_gc_p): Return non-zero for pure objects.
10450
10451 * alloc.c: Add comments throughout the file.
10452
2503c8b1
GM
10453 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
10454 that unblocks alarms.
10455
8389e1e2
GM
10456 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
10457 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
10458 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
10459
10689a01 10460 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 10461
bfc17d18
KH
104622000-02-17 Kenichi Handa <handa@etl.go.jp>
10463
4a09dee0
KH
10464 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
10465 avoid infinite error signaling. Allocate sufficient memory for
10466 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 10467
2b927d02
SM
104682000-02-17 Stefan Monnier <monnier@cs.yale.edu>
10469
10470 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
10471 depends on the previous behavior.
10472
b49cb764
GM
104732000-02-16 Gerd Moellmann <gerd@gnu.org>
10474
10475 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
10476
99e95407
GM
104772000-02-15 Gerd Moellmann <gerd@gnu.org>
10478
10479 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
10480
10481 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 10482 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
10483 write(2).
10484
6ffd3cf7
RS
104852000-02-15 Richard M. Stallman <rms@gnu.org>
10486
10487 * data.c (set_internal): Don't make variable buffer-local
10488 if within a let-binding for the same buffer.
10489 (let_shadows_buffer_binding_p): New function.
10490
10491 * eval.c (specbind): For buffer-local value,
10492 record the current buffer also.
10493 (unbind_to): Cope with that change.
10494
cad53475
GM
104952000-02-15 Gerd Moellmann <gerd@gnu.org>
10496
10497 * window.c (Fsave_window_excursion): Doc fix.
10498
1aa963c8
SM
104992000-02-15 Stefan Monnier <monnier@cs.yale.edu>
10500
10501 * syntax.c (back_comment): Make sure we only consider comment-starters
10502 of the relevant style and return -1 in case of a failure to find the
10503 beginning of the comment.
10504 (Fforward_comment): If back_comment fails, go back to the position just
10505 after the comment-end.
10506 (scan_lists): Add comment describing a very minor bug.
10507
b9b84fd3
SM
105082000-02-14 Stefan Monnier <monnier@cs.yale.edu>
10509
10510 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
10511 `completion-regexp-list' in the docstring.
10512
3a28db80
DL
105132000-02-14 Dave Love <fx@gnu.org>
10514
10515 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
10516
fb4a568d
SM
105172000-02-14 Stefan Monnier <monnier@cs.yale.edu>
10518
10519 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
10520 to Emacs' syntax. Also fix the comment about set/not-set meanings
10521 since Emacs syntax is not the value 0 any more.
10522 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
10523 since it's now part of RE_SYNTAX_EMACS.
10524
1063ebb5
DL
105252000-02-12 Dave Love <fx@gnu.org>
10526
52283633 10527 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
1063ebb5 10528
fb07a302
GM
105292000-02-12 Gerd Moellmann <gerd@gnu.org>
10530
10531 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
10532
aaf2320c
DL
105332000-02-12 Dave Love <fx@gnu.org>
10534
10535 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
10536
10537 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
10538 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
10539 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
10540
10541 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
10542
10543 * s/nextstep.h: Don't define HAVE_ALLOCA.
10544
10545 * config.in: Add vfork bits.
10546
eedf8bde
GM
105472000-02-12 Gerd Moellmann <gerd@gnu.org>
10548
10549 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
10550 unwind function to undo the effect of stopping atimers.
10551
52283633 10552 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
eedf8bde
GM
10553
10554 * atimer.c (stopped_atimers): New variable.
10555 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
10556 New functions.
10557
10558 * atimer.h (stop_other_atimers, run_all_atimers)
10559 (unwind_stop_other_atimers): Add function prototypes.
427ec082 10560
eedf8bde
GM
10561 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
10562
8476c2f8
KR
105632000-02-11 Ken Raeburn <raeburn@gnu.org>
10564
10565 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
10566 library may depend on jpeg.
10567 (atimer.o): Depends on atimer.c.
10568
0e85e4a3
KH
105692000-02-11 Kenichi Handa <handa@etl.go.jp>
10570
10571 * insdel.c (del_range_1): Call update_compositions.
10572 (del_range_both): Call update_compositions just once..
10573
97fa0cc8
DL
105742000-02-10 Dave Love <fx@gnu.org>
10575
10576 * xfns.c (create_frame_xic): Fix initialization of automatic
10577 aggregates for pcc.
10578
25566a3c
KH
105792000-02-09 Kenichi Handa <handa@etl.go.jp>
10580
10581 * ccl.c (CCL_MAKE_CHAR): New macro.
10582 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
10583 registers by CCL_MAKE_CHAR before calling translate_char.
10584 <CCL_TranslateCharacterConstTbl> Likewise.
10585
69da54ba
DL
105862000-02-08 Dave Love <fx@gnu.org>
10587
10588 * lread.c (__EXTENSIONS__): Define.
10589
f7136ee8
GM
105902000-02-08 Gerd Moellmann <gerd@gnu.org>
10591
10592 * puresize.h (BASE_PURESIZE): Increase to 650000.
10593
7768790b
EZ
105942000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
10595
10596 * msdos.c (XMenuActivate): Turn off the cursor after displaying
10597 the help message.
10598
38fd211b
EZ
105992000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
10600
10601 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
10602 md, mh, mb, mr, and me to the fake termcap entry.
10603
66e4690f
KR
106042000-02-06 Ken Raeburn <raeburn@gnu.org>
10605
10606 * sound.c (sound_cleanup): Don't call device close routine if the
10607 function pointer is null.
10608
a75dfea0
AI
106092000-02-06 Andrew Innes <andrewi@gnu.org>
10610
10611 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
10612 around image definitions and prototypes.
10613 (gamma_correct) [WINDOWSNT]: New prototype.
10614
10615 * w32term.c (x_make_frame_visible): Replace call to
10616 input_poll_signal with poll_for_input.
10617
10618 * window.c [WINDOWSNT]: Include w32term.h.
10619
10620 * xdisp.c [WINDOWSNT]: Include w32term.h.
10621
10622 * makefile.nt: Add dependencies on w32gui.h.
10623 (OBJ1): Include atimer.obj.
10624 ($(BLD)\atimer.obj): New dependency rule.
10625
10626 * w32.c (sigmask): New function (does nothing).
10627 (sigunblock): Ditto.
10628
10629 * frame.c [WINDOWSNT]: Include w32term.h.
10630
10631 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
10632
10633 * lread.c (syms_of_lread): Fix literal newlines.
10634
10635 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
10636 the string constant limit (2048 bytes) in MSVC.
10637 (main): Ditto.
10638
59ddecde
GM
106392000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
10640
52283633 10641 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
59ddecde
GM
10642 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
10643 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
10644 dispatch the event.
10645
07590973
DL
106462000-02-04 Dave Love <fx@gnu.org>
10647
10648 * fileio.c: Remove some unused vars.
10649 (_GNU_SOURCE): Define (for euidaccess).
10650
10651 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
10652
10653 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
10654 gcpro1, gcpro2.
10655 (read_minibuf): Deal with allow_props correctly.
10656
649351f9
EZ
106572000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
10658
10659 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
10660
66e4690f 106612000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
10662
10663 * search.c (compile_pattern): If a cache entry has a nil regexp,
10664 fill in that entry instead of clobbering a previously cached
10665 string regexp.
10666
66e4690f 106672000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
10668
10669 * puresize.h (BASE_PURESIZE): Increase to 610000.
10670
d240a249
GM
106712000-02-02 Gerd Moellmann <gerd@gnu.org>
10672
10673 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
10674 can GC.
10675
ca91fb26
KH
106762000-02-02 Kenichi Handa <handa@etl.go.jp>
10677
25660570
KH
10678 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
10679 instead of incrementing ic directly.
10680 <CCL_WriteExprConst> Likewise.
10681 <ccl_set_expr>: Set ic to jump_address.
10682
ca91fb26
KH
10683 * fileio.c (e_write): Fix the handling of
10684 CODING_FINISH_INSUFFICIENT_SRC.
10685
2ede9689
DL
106862000-02-01 Dave Love <fx@gnu.org>
10687
10688 * editfns.c (Fpropertize): Doc fix.
10689
10690 * process.c (Fstart_process): Doc fix.
10691
10692 * eval.c: Fix various doc strings not to duplicate information
10693 from help-manyarg-func-alist.
10694
52283633 10695 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
2ede9689
DL
10696
10697 * doc.c (Vhelp_manyarg_func_alist): New variable.
10698 (Fdocumentation): Use it.
10699 (syms_of_doc): Define it.
10700
b6680a0e
GM
107012000-01-31 Gerd Moellmann <gerd@gnu.org>
10702
2cb750ba
GM
10703 * xterm.c (xim_open_dpy): Remove unused local variable.
10704
52283633 10705 * emacs.c (USAGE): Use term `display options' instead of `X options'.
74e9213b
GM
10706
10707 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
10708 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
10709
b6680a0e
GM
10710 * fns.c (sweep_weak_table): New function.
10711 (sweep_weak_hash_tables): Use it. Keep on marking until there
10712 is no more change.
10713
994c5afe
GM
107142000-01-30 Gerd Moellmann <gerd@gnu.org>
10715
10716 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
10717 that XTread_socket does not crash by trying to call XNoOp on a
10718 closed display.
427ec082 10719
f00276e3
JR
107202000-01-30 Jason Rumney <jasonr@gnu.org>
10721
10722 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
10723 Change selected_frame to SELECTED_FRAME ().
10724 (w32_console_mouse_position): Remove #ifndef MULE from around
10725 `insist' parameter.
10726
10727 * makefile.nt: Remove dosfns.obj.
10728
10729 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
10730
10731 * w32fns.c (w32_defined_color): Check for valid frame before
10732 applying gamma correction. Eliminate dependency on frame elsewhere.
10733 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
10734 (w32_to_x_font): Use resx and resy not height_in and width_in.
10735 (x_to_w32_font): Doc fix.
10736 (xlfd_strip_height): New function to strip and return font height.
10737 (w32_font_match): Compare height separately from rest of xlfd
10738 spec, using xlfd_strip_height.
10739
10740 * w32term.c (w32_term_init): Swap resx and height_in, resy and
10741 width_in. Use w32_defined_color in place of defined_color.
10742
10743 * w32faces.c: Merge more of DOS and X specifics in preparation for
10744 merge with xfaces.c.
10745 (defined_color): Remove FIXME comment.
10746 (tty_color_name): Provide w32-specific function.
10747 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
10748
10749 * w32console.c (turn_on_face, turn_off_face): Removed.
10750 (w32_face_attributes): New function.
10751 (Global_variables): Reduce scope where possible.
10752 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
10753 fill attribute.
10754 (hl_mode): Don't modify text attributes.
10755 (write_glyphs): Don't do anything if len <= 0. Use
10756 w32_face_attributes to get attributes for drawing. Write
10757 terminating codes using char_attr_normal.
10758 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
10759 (update_begin, update_end): Likewise.
10760 (vga_stdcolor_name): New function.
10761 (initialize_w32_display): Remove char_attr_reverse and char_attr.
10762 (Fset_screen_color): Remove char_attr_reverse.
10763
b08e8bb2
GM
107642000-01-29 Gerd Moellmann <gerd@gnu.org>
10765
10766 * xfns.c (xic_set_preeditarea): Take window parameter and
10767 window-relative pixel-positions.
10768
10769 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
10770 is its frame's selected window.
10771 (xim_instantiate_callback): Likewise.
10772
10773 * xfns.c (x_create_im): Removed.
10774 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
10775 (supported_xim_styles): Renamed from supported_styles.
10776 (best_xim_style): Renamed from best_style.
10777 (create_frame_xic): Renamed from xic_create_frame.
10778 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 10779
b08e8bb2
GM
107802000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
10781
10782 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
10783 our frames, call XFilterEvent with 2nd parameter `None'.
10784 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
10785 returning XBufferOverflow.
52283633 10786 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
b08e8bb2
GM
10787 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
10788 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
10789 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
10790 (xim_initialize, xim_close)
10791 [HAVE_X_I18N && HAVE_X11R6]: New functions.
10792 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
10793 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
10794 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
10795
10796 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
10797 and `xim_styles'.
10798 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
10799 `xic_style' and `xic_xfs'.
10800 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
10801 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
10802 (FRAME_XIM): Removed.
10803
10804 * xfns.c (supported_styles): New variable.
10805 (DEFAULT_STYLE, DEFAULT_FONT): New macros
10806 (xic_create_xfontset, best_style, xic_create_frame)
10807 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
10808 (xic_set_xfontset): New functions.
10809
142e109c
DL
108102000-01-28 Dave Love <fx@gnu.org>
10811
10812 * s/irix6-5.h: Revert last change after change to irix5-0.h.
10813
10814 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
10815
b02786f9
GM
108162000-01-28 Gerd Moellmann <gerd@gnu.org>
10817
d060bc9f
GM
10818 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
10819 for *scratch* if it already existed.
10820
b02786f9
GM
10821 * emacs.c (USAGE): New macro.
10822 (main): Use it to display usage information.
10823
2c52d7e4
EZ
108242000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
10825
10826 Support for the menu-help feature:
10827
52283633 10828 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
2c52d7e4
EZ
10829
10830 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
10831 part of the line to the termscript file.
10832 (IT_clear_to_end): Clear the entire line, not just its beginning.
10833 (menu_help_message, prev_menu_help_message): New variables.
10834 (IT_menu_make_room): Make room for the help_text member.
10835 (IT_menu_display): New argument disp_help; all callers changed.
10836 If disp_help is non-zero, store the help text of the active menu
10837 item in menu_help_message.
10838 (XMenuAddPane): Initialize the help_text member to NULL.
10839 (XMenuAddSelection): New argument help_text. Store it in the
10840 XMenu structure.
10841 (XMenuActivate): New argument help_callback. If the value of
10842 menu_help_message has changed since the last time, display the
10843 menu help message text while waiting for the mouse to move. Clear
10844 the echo area before exiting.
10845 (XMenuDestroy): Free the help_text member.
10846
ffe0bcd1
GM
108472000-01-27 Gerd Moellmann <gerd@gnu.org>
10848
10849 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
10850 XMenuAddSelection. Pass help callback to XMenuActivate.
10851 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
10852
50dbd23f
EZ
108532000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
10854
10855 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
10856 and EMACS_SET_USECS.
10857
f5941bf8
GM
108582000-01-26 Dave Love <fx@gnu.org>
10859
6c67ddee
DL
10860 * editfns.c (Fchar_after, Fchar_before): Doc fix.
10861
f5941bf8
GM
10862 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
10863 an error may be signalled.
10864
9e49c990
GM
108652000-01-26 Gerd Moellmann <gerd@gnu.org>
10866
fc3cb460
GM
10867 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
10868 LD_SWITCH_SYSTEM inherited from irix5-0.h.
10869
9e49c990
GM
10870 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
10871
d0c037d8
GM
108722000-01-25 Gerd Moellmann <gerd@gnu.org>
10873
10874 * charset.c (Fstring): If there is a multibyte char among
10875 the args, always return a multibyte string.
10876
e12489f9
GM
108772000-01-25 Gerd Moellmann <gerd@gnu.org>
10878
10879 * sysdep.c (sys_select): Turn atimers off and on instead of
10880 recording and restoring old alarm handler
10881
10882 * process.c (toplevel): Include atimer.h.
10883 (create_process_1): Rewritten.
10884 (create_process): Use atimers instead of alarm.
10885 (wait_reading_process_input) [hpux]: Turn atimers off instead
10886 of turning off SIGALRM.
10887 (wait_reading_process_input): Turn off atimers instead off
10888 calling stop_polling.
10889
10890 * emacs.c (main): Call init_atimer.
10891
10892 * keyboard.c (toplevel): Include systime.h and atimer.h.
10893 (polling_for_input): Removed because unused.
10894 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
10895 (poll_timer): New variable.
10896 (poll_for_input, poll_for_input_1): New functions.
10897 (start_polling, stop_polling): Rewritten.
10898
10899 * keyboard.h (polling_for_input): Removed.
427ec082 10900
e12489f9
GM
10901 * atimer.h, atimer.c: New files.
10902
10903 * Makefile.in (obj): Add atimer.o.
10904 (atimer.o): New target.
10905
10906 * blockinput.h (pending_atimers): Add extern declaration.
10907 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
10908
10909 * lisp.h (popup_activated_flag): Add extern declaration.
10910
10911 * xmenu.c (popup_activated_flag): Make externally visible.
52283633 10912 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
e12489f9
GM
10913 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
10914
10915 * xterm.c (toplevel): Include atimer.h.
10916 (toolkit_scroll_bar_interaction): New variable.
10917 (Fxt_process_timeouts): Removed.
10918 (x_process_timeouts): New function.
10919 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
10920 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
10921 (x_make_frame_visible): Call poll_for_input_1 instead of
10922 input_poll_signal. Don't call alarm.
10923 (x_initialize): Install timer calling x_process_timeouts.
427ec082 10924
1e5279b9
DL
109252000-01-24 Dave Love <fx@gnu.org>
10926
6c67ddee 10927 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
10928 Don't use -cckr -- apparently not now necessary.
10929
edf6aeb8
EZ
109302000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
10931
10932 * msdos.c (IT_menu_display): Truncate long menu lines at the right
10933 screen boundary.
10934
9badad41
JR
109352000-01-23 Jason Rumney <jasonr@gnu.org>
10936
10937 * w32fns.c (w32_defined_color): Apply gamma correction before
10938 trying to map to the palette.
10939 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
10940 to w32_clear_rect.
10941
10942 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
10943 here. Callers changed to always pass real device context.
10944 (w32_draw_bitmap): Likewise.
10945 (w32_get_glyph_overhangs): Likewise.
52283633 10946 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
9badad41
JR
10947 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
10948 pfnSetScrollInfo and SetScrollRange.
10949 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
10950 back into MULE characters after decoding them.
10951 (x_get_glyph_face_and_encoding): Likewise.
10952 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
10953 GetCharABCWidthsW fails, since this is defined on Windows 9x.
10954 (x_produce_glyphs): Calculate per char metrics for a character
10955 that we know exists in default font when font_not_found_p is true.
10956
63bd786b
JR
109572000-01-22 Jason Rumney <jasonr@gnu.org>
10958
10959 * makefile.nt (intervals.obj, composite.obj): New modules.
10960 (composite.h): Added as dependency where appropriate.
10961
10962 * w32gui.h (XGCValue): New struct for emulating X GCs.
10963
10964 * w32term.h (XCharStruct): New struct for emulating X.
10965
10966 * w32console.c (turn_on_face, turn_off_face): New functions.
10967 (change_line_highlight): New prototype for new redisplay.
10968 (write_glyphs): Support multibyte text. Support faces.
10969
52283633 10970 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
63bd786b
JR
10971
10972 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
10973 throughout. struct frame * in place of FRAME_PTR.
10974 Skeleton support for images, toolbars, tooltips from xfns.c.
52283633 10975 (Fx_create_frame): Use system default for default scroll bar width.
63bd786b
JR
10976 (w32_get_arg): Renamed from x_get_arg.
10977 (Fx_file_dialog): New function.
10978 (w32_list_fonts): Check cache before asking system.
10979 (Vw32_enable_synthesized_fonts): New variable.
10980 (Vw32_enable_italics): Obsolete, removed.
10981
10982 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
10983 Use SELECTED_FRAME macro.
10984
10985 * w32menu.c: Add skeleton support for help strings on menus.
10986 (add_menu_item): Native checkbox and radio support added, but not
10987 yet enabled due to bugs.
10988 (push_menu_item): Add parameters type, selection and help.
10989 Callers updated.
10990 Formatting changes to reduce unnecessary diffs with xmenu.c.
10991
10992 * w32select.c (Fw32_set_clipboard_data): Update call to
10993 find_charset_in_str.
10994
10995 * w32term.c: Complete rewrite for new redisplay based on new
10996 xterm.c with necessary sections merged back in from old w32term.c.
10997
6ffd3cf7 109982000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
10999
11000 * data.c (set_internal): Further fix in same criterion.
11001
6ffd3cf7 110022000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
11003
11004 * data.c (set_internal): Fix the criteria for whether
11005 to swap out the old cached binding.
11006
60af03f1
DL
110072000-01-19 Dave Love <fx@gnu.org>
11008
11009 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
11010
f9be074f
KH
110112000-01-18 Kenichi Handa <handa@etl.go.jp>
11012
11013 * regex.c (re_compile_fastmap): While checking a range table for
11014 `charset', skip flag bits for a character class correctly.
11015
52b8dbf9
GM
110162000-01-17 Gerd Moellmann <gerd@gnu.org>
11017
d36100c9
GM
11018 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
11019
52283633 11020 * xfns.c (x_window): Call lw_create_widget with new parameter list.
52b8dbf9
GM
11021
11022 * widget.c (EmacsFrameSetCharSize): Change size of children first
52283633 11023 because of problems with main window geometry management under Lesstif.
52b8dbf9
GM
11024
11025 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
11026 MENU_ITEMS_ITEM_.*.
11027 (MENU_ITEMS_ITEM_HELP): New enumerator.
11028 (push_menu_item): Add parameter HELP. Record help in menu_items.
11029 (single_menu_item, single_submenu, list_of_items): Call
11030 push_menu_item with new parameter.
11031 (single_submenu): Set help string in widget value.
11032 (menu_highlight_callback): New function.
11033 (set_frame_menubar): Call lw_create_widget with new
11034 parameter list.
11035 (xmenu_show, xdialog_show): Ditto.
11036
3139018f
GM
110372000-01-13 Gerd Moellmann <gerd@gnu.org>
11038
11039 * sound.c (Fplay_sound): Improve doc string.
11040
83c8f461
RS
110412000-01-11 Richard M. Stallman <rms@gnu.org>
11042
11043 * lisp.h (set_internal): Enter the new arg.
11044
11045 * eval.c (specbind): Record buffer-local variables specially,
11046 indicating which buffer's binding was saved.
11047 (unbind_to): Restore buffer-local variables specially
11048 in the proper buffer.
11049
11050 * data.c (set_internal): New arg BUF.
427ec082 11051
83c8f461
RS
11052 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
11053 * data.c (Fset): Pass new arg to set_internal.
11054 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 11055
1fab1775
GM
110562000-01-11 Gerd Moellmann <gerd@gnu.org>
11057
52283633 11058 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
1fab1775 11059
83c8f461 110602000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
11061
11062 * minibuf.c (Ftry_completion): Doc fix.
11063
7a85e4df
GM
110642000-01-11 Gerd Moellmann <gerd@gnu.org>
11065
11066 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
11067 vector, too.
11068
a970dae4
AS
110692000-01-11 Andreas Schwab <schwab@suse.de>
11070
11071 * coding.c (code_convert_region): Initialize total_skip.
11072
c65d14ee
DL
110732000-01-08 Dave Love <fx@gnu.org>
11074
11075 * eval.c (Fuser_variable_p): Check customizability too.
11076
834938d2
GM
110772000-01-07 Gerd Moellmann <gerd@gnu.org>
11078
11079 * minibuf.c (Fcompleting_read): Doc fix.
11080
e0303cd6
GM
110812000-01-05 Gerd Moellmann <gerd@gnu.org>
11082
8a26744b
GM
11083 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
11084 -L /usr/local/lib.
11085
e0303cd6
GM
11086 * xfns.c (x_create_im): New function to set IM and IC of a frame.
11087 Check that input style is supported before trying to create an
11088 IC for it.
11089 (x_window): Call x_create_im.
427ec082 11090
2e471eb5
GM
110912000-01-04 Gerd Moellmann <gerd@gnu.org>
11092
560a7bd2
GM
11093 * xfns.c (current_gif_memory_src): New variable.
11094 (gif_load): Record the address of the current memory source
11095 in current_gif_memory_src.
11096 (gif_read_from_memory): Use current_gif_memory_src.
11097
f9ee84a3
GM
11098 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
11099 macros statement form.
11100
d1299cde
GM
11101 * sound.c (struct sound): Renamed from struct sound_file.
11102 (struct sound): Add members `data' and `header_size'.
11103 (enum sound_attr): Add SOUND_DATA.
11104 (current_sound, current_sound_device): Variables renamed from
11105 sound_file and sound_device.
11106 (parse_sound): Parse :data.
11107 (parse_sound): Handle sound data in strings.
11108 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 11109 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
11110 needed header size.
11111 (wav_play, au_play): Play sounds from string data.
11112
2e471eb5
GM
11113 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
11114
11115 * lisp.h: Add prototype for allocate_string_data.
11116
52283633 11117 * alloc.c (Fgarbage_collect): Return number of live and free strings.
2e471eb5
GM
11118
11119 * alloc.c (mark_buffer): Remove code in #if 0.
11120 (gc_sweep): Ditto.
11121 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
11122 (strings_consed): New variable.
11123 (allocate_string): Set it.
11124 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
11125 (Fmemory_use_counts): Return strings_consed. Use Flist.
11126
11127 * alloc.c: General cleanup in comments etc. Remove conditional
11128 compilation for `standalone'.
11129
11130 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
11131
11132 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
11133 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
11134 (DONT_COPY_FLAG): Removed.
11135 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
11136 (struct sdata, struct sblock): New
11137 (struct string_block): Rewritten.
11138 (STRINGS_IN_STRING_BLOCK): New macro.
11139 (oldest_sblock, current_sblock, total_strings, total_free_strings)
11140 (large_sblocks, string_blocks, string_free_list): New variables.
11141 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
11142 (init_strings): Rewritten.
11143 (allocate_string, allocate_string_data, compact_small_strings)
11144 (free_large_strings, sweep_strings): New functions.
11145 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
11146 (struct string_block_head, current_string_block)
11147 (first_string_block, large_string_blocks, STRING_FULLSIZE)
11148 (STRING_PAD): Removed.
11149 (make_uninit_multibyte_string, make_pure_string): Rewritten.
11150 (Fgarbage_collect): Don't set mark bit in large strings.
11151 (mark_object): Mark strings differently. Mark symbol names
11152 differently.
11153 (survives_gc_p): Test marked strings differently.
427ec082 11154 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
11155 symbol names.
11156 (compact_strings): Removed.
11157
42608ba8
EZ
111582000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
11159
11160 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
11161 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
11162
e0a09e1a
KH
111632000-01-04 Kenichi Handa <handa@etl.go.jp>
11164
dd9f0750 11165 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 11166 in a non-empty buffer.
dd9f0750 11167
3c0f3b15 11168 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 11169
44cd3ae5
GM
111702000-01-03 Gerd Moellmann <gerd@gnu.org>
11171
11172 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
11173 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
11174
11175 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
11176
c182a70f
EZ
111772000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11178
11179 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
11180 need to test for MSDOS frames.
11181
24480d5b
EZ
111822000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11183
11184 * dosfns.c (unspecified_colors): Remove.
11185 (msdos_stdcolor_idx): Use global variables unspecified_fg and
11186 unspecified_bg.
11187 (msdos_stdcolor_name): Return strings for unspecified fore- and
11188 back-ground colors.
11189
11190 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 11191 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
11192 (tty_color_name): Return Lisp strings for unspecified fore- and
11193 back-ground colors.
11194 (Finternal_set_lisp_face_attribute): Remove the special treatment
11195 for Qunspecified_{f,b}g.
52283633 11196 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
24480d5b 11197
047f434a
GM
111982000-01-03 Gerd Moellmann <gerd@gnu.org>
11199
11200 * xdisp.c (reseat_at_next_visible_line_start): Position before
11201 newline only if ending up on a newline.
11202 (next_element_from_ellipsis): Return success. Handle case of
52283633 11203 displaying no ellipsis. Fix case of ellipsis defined in display table.
047f434a
GM
11204 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
11205 returns 0.
11206
d684c676
EZ
112072000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11208
11209 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
11210 (Fcolor_supported_p): Renamed from face-color-supported-p.
11211
5fe1d139
EZ
112122000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11213
11214 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
11215 list of colors renamed to tty-defined-color-alist.
11216 (tty_color_name): Pass the frame to tty-color-by-index.
11217 (realize_tty_face): tty-color-alist is now a function which
11218 accepts the frame as argument.
11219
52283633 11220 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
5fe1d139 11221
816be8b8
EZ
112222000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11223
11224 * term.c (insert_glyphs): Pass glyph, not &glyph, to
11225 encode_terminal_code.
11226
b635321e
EZ
112272000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11228
11229 * dispnew.c (mode_line_string): Support termcap frames as well.
11230
9b784e96
GM
112312000-01-01 Gerd Moellmann <gerd@gnu.org>
11232
27189709
GM
11233 * syntax.c (Fforward_word): Undo previous change.
11234
11235 * editfns.c (Fconstrain_to_field): Don't constrain if
11236 inhibit-field-text-motion is non-nil.
11237 (Fline_beginning_position): Undo previous change.
11238 (Fline_end_position): Ditto.
11239
11240 * syntax.c (Fforward_word): Notice field boundaries only if
11241 inhibit-field-text-motion is nil.
11242
11243 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
11244
11245 * editfns.c (Vinhibit_field_text_motion): New variable.
11246 (inhibit-field-text-motion): New DEFVAR_LISP.
11247 (Fline_beginning_position, Fline_end_position): Notice field
11248 boundaries only if inhibit-field-text-motion is nil.
11249
45158a91
GM
11250 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
11251 All calls adjusted.
11252 (x_build_heuristic_mask): Likewise.
11253 (xbm_load_image_from_file): Change error output.
11254 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
11255 (gif_load, gs_load, x_kill_gs_process): Ditto.
11256
9b784e96
GM
11257 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
11258 color indices when accessing raster pixels.
63cec32f
GM
11259 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
11260 one of :file or :data.
11261 (enum pbm_keyword_index): Add PBM_DATA.
11262 (pbm_format): Add :data.
11263 (pbm_image_p): Allow either :file or :data.
11264 (pbm_read_file): New function.
11265 (pbm_scan_number): Rewritten to read from string.
11266 (pbm_load): Support :data.
9b784e96 11267
2cb085db 11268See ChangeLog.8 for earlier changes.
6922b018
KH
11269
11270;; Local Variables:
49b3bd82 11271;; coding: iso-2022-7bit
6922b018 11272;; End: