(try_window_id): Fix case of all changes before
[bpt/emacs.git] / src / ChangeLog
CommitLineData
23fca891
GM
12001-05-10 Gerd Moellmann <gerd@gnu.org>
2
3 * xdisp.c (try_window_id): Add some xasserts.
4
e9726794
GM
52001-05-09 Gerd Moellmann <gerd@gnu.org>
6
7 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
8
9e53a675
GM
92001-05-09 Dave Love <fx@gnu.org>
10
11 * xdisp.c (GIVE_UP): Fix for K&R C.
12
0d487c52
GM
132001-05-09 Gerd Moellmann <gerd@gnu.org>
14
fe88d421
GM
15 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
16
0d487c52
GM
17 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
18 back to the text cursor shape without need.
19
1e9fc92e
GM
202001-05-07 Gerd Moellmann <gerd@gnu.org>
21
a2a6232e
GM
22 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
23
24 * dispextern.h (inverse_video): Declare extern.
25
1e9fc92e
GM
26 * keyboard.c (delete_kboard): Handle the case that selected_frame
27 has been deleted in the course of x_connection_closed.
28
12949a7f
EZ
292001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
30
31 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]: Fix
32 the change from 2001-04-30.
33
2fa2f461
GM
342001-05-03 Gerd Moellmann <gerd@gnu.org>
35
a779d213
GM
36 * xfns.c (file_dialog_unmap_cb): New function.
37 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
38 where a dialog is closed via the window manager.
39
2fa2f461
GM
40 * xdisp.c (try_window_id): Cases of changes all in front of
41 the window start or all below the window end mostly rewritten.
42 (redisplay_window): Move the tests if try_window_id is
43 applicable to try_window_id.
44 (GIVE_UP): New macro.
45
3356df63
GM
462001-05-02 Gerd Moellmann <gerd@gnu.org>
47
a39202f6
GM
48 * xterm.c (expose_window): Return int. If W is the window
49 currently being updated, mark the frame garbaged. Fix
50 computation of rows intersecting the exposed rectangle.
51 (expose_window_tree): Stop when expose_window returns 0.
52
3356df63
GM
53 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
54 again if it has already been drawn.
55
a9d2fd1d
SM
562001-05-01 Stefan Monnier <monnier@cs.yale.edu>
57
58 * syntax.c (update_syntax_table): Check that oldi has the same
59 properties as old_prop before deciding not to invalidate.
60
c95fc5f1
GM
612001-04-30 Gerd Moellmann <gerd@gnu.org>
62
a9793e45
GM
63 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
64 read-only text that is so because of text properties.
65
c95fc5f1 66 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
a9d2fd1d 67 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
c95fc5f1
GM
68 windows that are components of a Lucid menu bar.
69
5a5d9185
GM
702001-04-27 Gerd Moellmann <gerd@gnu.org>
71
72 * term.c (turn_on_face): Fix reverse video handling on terminals
73 that don't support colors.
74
ba973f7a
GM
752001-04-26 Gerd Moellmann <gerd@gnu.org>
76
77 * editfns.c (save_excursion_restore): Don't use XBUFFER on
78 a non-buffer.
79
8c56a983
GM
802001-04-25 Gerd Moellmann <gerd@gnu.org>
81
a728644c
GM
82 * term.c (toggle_highlight): New function.
83 (turn_on_face): Change handling of reverse video.
84
2fa2f461
GM
85 * process.c (wait_reading_process_input): Call
86 record_asynch_buffer_change only if a timer really changed
87 buffers.
c88164fe 88
bfd8410f
GM
89 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
90 of the number of overlays to check.
91
be2488ca
GM
92 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
93
8c56a983
GM
94 * xdisp.c (try_window_id): Fix a case where window_end_pos
95 and window_end_bytepos were not adjusted.
96
522d42f7
GM
972001-04-23 Gerd Moellmann <gerd@gnu.org>
98
99 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
100 zero instead of -1.
101
78c1afb6
EZ
1022001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
103
a9d2fd1d
SM
104 * process.c (wait_reading_process_input) [!subprocesses]:
105 Don't reference waiting_for_user_input_p, it's not defined in the
106 branch without async subprocesses support.
78c1afb6 107
a2fab450
GM
1082001-04-19 Gerd Moellmann <gerd@gnu.org>
109
a122a38e
GM
110 * keyboard.c (delete_kboard): Prevent a dangling reference
111 from current_kboard to KB, which is freed.
112
a9d2fd1d
SM
113 * process.c (wait_reading_process_input):
114 Call record_asynch_buffer_change after running timers, to make
a2fab450
GM
115 read_key_sequence aware of buffer changes from under it.
116
0f8d6dc7
GM
1172001-04-18 Gerd Moellmann <gerd@gnu.org>
118
eeffb293
GM
119 * xfaces.c (Qscalable_fonts_allowed): New variable.
120 (realizing_basic_faces_p): Removed.
2fa2f461
GM
121 (x_face_list_fonts): Special handling for realizing_basic_faces_p
122 removed.
eeffb293 123 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
2fa2f461
GM
124 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change
125 default for scalable-fonts-allowed to t.
eeffb293 126
0f8d6dc7
GM
127 * fileio.c (Finsert_file_contents): If the file size returned from
128 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
a9d2fd1d 129 read from files on a procfs whose contents are generated dynamically.
0f8d6dc7 130
eec2d1de
EZ
1312001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
132
133 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
134 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
135 (__memalign_hook): Make the two prototypes consistent.
136
f4f480bd
GM
1372001-04-17 Gerd Moellmann <gerd@gnu.org>
138
139 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
140 matrix of mini-windows.
141
52283633
SM
1422001-04-12 Stefan Monnier <monnier@cs.yale.edu>
143
144 * intervals.c (find_interval): Don't rebalance during signal handling.
145
ec2423c9
GM
1462001-04-11 Gerd Moellmann <gerd@gnu.org>
147
30cb0001 148 * fns.c: Include blockinput.h.
52283633 149
ec2423c9
GM
150 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
151
719d83ad
GM
1522001-04-10 Gerd Moellmann <gerd@gnu.org>
153
60f8d735
GM
154 * fns.c (Fcompare_strings): Fix return values.
155
afffeb57
GM
156 * window.c (window_scroll): Change the meaning of N to mean
157 N screen-fulls or N lines.
158 (window_scroll_pixel_based, window_scroll_line_based)
159 (scroll_command, Fscroll_other_window): Change accordingly.
160
52283633
SM
161 * window.c (window_scroll_pixel_based, Frecenter):
162 Call window_box_height instead of using it.last_visible_y for the
afffeb57
GM
163 height of the window.
164
165 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
166 instead of using it.last_visible_y for the height of the window.
52283633 167
719d83ad 168 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
8ddf3ee1 169 From Dan Holmsand <dan@eyebee.com>.
719d83ad
GM
170
171 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
8ddf3ee1
GM
172 able to write to hidden and system files. From Dan Holmsand
173 <dan@eyebee.com>.
719d83ad 174
8ddf3ee1
GM
175 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
176 Holmsand <dan@eyebee.com>.
719d83ad 177
522ed7fb
GM
1782001-04-09 Gerd Moellmann <gerd@gnu.org>
179
9170e5d4
GM
180 * fns.c (Fplist_get, Fplist_put): Add QUITs.
181
522ed7fb
GM
182 * window.c (window_internal_height): Return 1 less if the
183 window has a header line.
184
185 * xdisp.c (try_window_id): When scrolling on a terminal, take
186 the change of window_internal_height into account.
187
ceeb3d7d
EZ
1882001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
189
190 * gmalloc.c (align): If the argument SIZE would overflow
191 __malloc_ptrdiff_t, fail right away.
192
63685b9d
GM
1932001-04-06 Gerd Moellmann <gerd@gnu.org>
194
195 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
196 Make sure the tooltip is completely visible.
197 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
198
199 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
200
201 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
202
3ffb33bb
DL
2032001-04-06 Dave Love <fx@gnu.org>
204
52283633
SM
205 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
206 Fix test of `from'.
3ffb33bb 207
869fb12c
GM
2082001-04-06 Gerd Moellmann <gerd@gnu.org>
209
52283633 210 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
afa3935f 211
869fb12c
GM
212 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
213
441bf856
GM
2142001-04-05 Gerd Moellmann <gerd@gnu.org>
215
4d664b04
GM
216 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
217
52283633 218 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
a55e4e68 219
30ca89f5
GM
220 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
221 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
222
223 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
224 shell widget's position only if it is non-null.
225
52283633
SM
226 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
227 Set f->output_data.x->widget to null after destroying it.
30ca89f5 228
81a81c0f
GM
229 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
230 FILENAME to bring it in synch with the documentation.
231
441bf856
GM
232 * xfaces.c (realizing_basic_faces_p): Renamed from
233 realize_default_face_p.
234 (realize_basic_faces): Set/clear realizing_basic_faces_p.
235 (realize_default_face): Don't set the flag.
236
702a1e8e
GM
2372001-04-04 Gerd Moellmann <gerd@gnu.org>
238
1013f4e3
GM
239 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
240
52283633
SM
241 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
242
1013f4e3
GM
243 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
244 the buffer that was used for echoing.
245
702a1e8e
GM
246 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
247 (first_font_matching): Removed unused function.
248 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
249 (may_use_scalable_font_p): Remove parameter FONT; rename
250 parameter NAME to FONT.
251 (x_face_list_fonts): Fix missing bounds check.
252 (realizing_default_face_p): New variable.
253 (realize_default_face): Set and clear that flag.
254 (x_face_list_fonts): When called during the realization of the
255 default face, and no matching fonts are found when ignoring
256 scalable fonts and fonts matching a regexp from
257 face-ignored-fonts, try without ignoring fonts.
258
f9dbcda4
GM
2592001-04-03 Gerd Moellmann <gerd@gnu.org>
260
ad18ffb1
GM
261 * xfns.c (postprocess_image): New function.
262 (lookup_image): Call it for all image types except PostScript.
263 (x_kill_gs_process): Call postprocess_image.
264
f9dbcda4
GM
265 * xterm.c (x_use_underline_position_properties): New variable.
266 (x_draw_glyph_string): Use it.
267 (syms_of_xterm): DEFVAR_BOOL it.
268
651f03b6
GM
2692001-04-02 Gerd Moellmann <gerd@gnu.org>
270
271 * xterm.c (x_alloc_nearest_color_1): New function.
272 (x_alloc_nearest_color): Use it.
273 (x_color_cells): Take a Display as argument, instead of a frame.
274 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
275 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
276 (x_initialize): Register cvt_string_to_pixel as resource converter
277 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
278
73d75a62
GM
2792001-03-30 Gerd Moellmann <gerd@gnu.org>
280
b2046df8
GM
281 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
282 (set_iterator_to_next): If a string from a display property ends,
283 consider the case that this might also be the end of an
284 overlay string having the display property.
285
52283633 286 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
b2046df8 287
87d8eba4
GM
288 * xdisp.c (reseat_to_string): Undo last change.
289
73d75a62
GM
290 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
291 matrix of a window when the header line changes, when
292 new rows are allocated, or when the width changes.
293
911a2406
EZ
2942001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
295
52283633 296 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
911a2406 297
aea51abe
EZ
2982001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
299
300 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
301 deprecated.
302
176bc847
GM
3032001-03-29 Gerd Moellmann <gerd@gnu.org>
304
ed31fabf
GM
305 * data.c (Fsubr_interactive_form): New function.
306 (syms_of_data): Defsubr it.
307
176bc847
GM
308 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
309 (live_float_p, live_misc_p): Return 1 only if the offset of the
310 pointer in its block is >= 0.
311
e59d0e9d
GM
3122001-03-28 Paul Eggert <eggert@twinsun.com>
313
314 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
315 microseconds calcuation. Avoid double-rounding problem.
316 In doc string, warn that the result is approximate.
317
f827b862
GM
3182001-03-28 Gerd Moellmann <gerd@gnu.org>
319
30a3f61c
GM
320 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
321 bind `inhibit-eval-during-redisplay' to t.
322
323 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
324
325 * xdisp.c (inhibit_eval_during_redisplay)
326 (Qinhibit_eval_during_redisplay): New variables.
327 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
328 don't eval, return nil instead.
329 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
330 Initialize Qinhibit_eval_during_redisplay.
331
e719f5ae
GM
332 * xdisp.c (reseat_to_string): If STRING is multibyte, set
333 the iterator's multibyte_p flag.
334
deb2613a
GM
335 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
336 instead of setting it to zero; it's incremented for each frame
337 where the menu face is changed.
338
52283633
SM
339 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
340 change bottom shadow accordingly.
341
342 * xterm.c (expose_window_tree, expose_frame): Don't compute
a02f1be0
GM
343 intersections here.
344 (expose_window): Do it here instead.
52283633 345 (x_draw_glyph_string): Fix a computation of the underline position.
a02f1be0 346
f827b862
GM
347 * bytecode.c (BYTE_CODE_QUIT): New macro.
348 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
349
4bde0ebb
GM
3502001-03-27 Gerd Moellmann <gerd@gnu.org>
351
607ec83c
GM
352 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
353 Give up if matrix starts in an ellipsis.
354 (init_from_display_pos): Do nothing if POS doesn't specify
355 a dpvec_index but the iterator has such a position.
356
0245398f
GM
357 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
358
aba25348
GM
359 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
360 x/y position is (0, 0) after destroying the menu bar, restore
361 its original position.
362
4bde0ebb
GM
363 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
364 (init_from_display_pos): Use it.
365 (try_window_reusing_current_matrix): Don't use cursor_row_p.
366
8cdb267e
GM
3672001-03-26 Gerd Moellmann <gerd@gnu.org>
368
369 * xdisp.c (try_window_id): Undo last change.
370
9948db79
EZ
3712001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
372
373 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
374
375 * buffer.c (syms_of_buffer): Doc fix.
376
2eddf899
GM
3772001-03-26 Gerd Moellmann <gerd@gnu.org>
378
379 * xfaces.c (x_update_menu_appearance): Use local variable
380 popup_path for setting font resources.
381
6c145d35
EZ
3822001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
383
6a65b1b5
EZ
384 * frame.c (Fframe_list): Don't reference tip_frame if
385 HAVE_WINDOW_SYSTEM is not defined.
386
6c145d35
EZ
387 * emacs.c (main): Update the copyright year. From Werner LEMBERG
388 <wl@gnu.org>.
389
d74c1900
GM
3902001-03-25 Gerd Moellmann <gerd@gnu.org>
391
20fbd925
GM
392 * xdisp.c (init_from_display_pos): Test invisible property
393 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
52283633 394
927c5b3b
GM
395 * xdisp.c (redisplay_internal) <update one window>: Make sure
396 last_arrow_position and last_arrow_string are set.
397
d74c1900
GM
398 * frame.c (Fframe_list): Don't return a tooltip frame.
399
091f8878
GM
4002001-03-23 Gerd Moellmann <gerd@gnu.org>
401
52283633
SM
402 * xdisp.c (mark_window_display_accurate_1): New function,
403 extracted from mark_window_display_accurate.
404 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
43c09969
GM
405 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
406 (mark_window_display_accurate): Use it.
407 (redisplay_internal): Use it for the selected window.
408 (redisplay_internal): Avoid duplicate mark_window_display_accurate
409 for the selected frame.
410
ac90c44f
GM
411 * xdisp.c Use make_number, for readability.
412 (try_window_id): Disable rows below the window end.
413 (try_window_reusing_current_matrix): Use cursor_row_p.
414 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
415 of rows.
416 (init_from_display_pos): If POS specifies a position in a display
417 vector, maybe get the iterator set up for that ellipsis.
43c09969 418
091f8878
GM
419 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
420
991786dd
EZ
4212001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
422
423 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
424
6c29b43c
GM
4252001-03-23 Gerd Moellmann <gerd@gnu.org>
426
427 * xfaces.c (x_update_menu_appearance): Use a different path
428 for Lucid popup menus.
429
d8731202
SM
4302001-03-22 Stefan Monnier <monnier@cs.yale.edu>
431
432 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
433
434 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
435 (string_buffer_position): Use `make_number'.
436
f61a541b
GM
4372001-03-22 Gerd Moellmann <gerd@gnu.org>
438
3c9e997b
GM
439 * xfaces.c (x_update_menu_appearance): Renamed from
440 x_set_menu_face_resources. Use different resources for popups.
441
442 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
443 (GC_CHECK_STRING_BYTES): Don't define.
444
364cd450
GM
445 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
446 Removed, together with subroutines.
447 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
d8731202 448 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
364cd450 449
d8731202
SM
450 * dispextern.h (x_set_menu_resources_from_menu_face):
451 Remove prototype.
364cd450 452
d8731202 453 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
364cd450
GM
454 Remove calls to x_set_menu_resources_from_menu_face.
455
d8731202
SM
456 * xfaces.c (xm_set_menu_resources_from_menu_face):
457 Remove #ifndef LESSTIF_VERSION.
f61a541b
GM
458
459 * xmenu.c: Include widget.h.
460 (single_submenu): Return int. Some cleanup.
461 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
462
140330de
GM
4632001-03-21 Gerd Moellmann <gerd@gnu.org>
464
465 * xterm.c (x_update_window_end): Handle overwritten mouse face
466 also for tool bar windows.
467 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
468 DRAW is DRAW_IMAGE_RAISED.
469
1741905c
GM
4702001-03-20 Gerd Moellmann <gerd@gnu.org>
471
fa88947e
GM
472 * print.c (syms_of_print): Doc fixes.
473
1741905c
GM
474 * fns.c (Fmd5): Doc fix.
475
ade0bee1
GM
4762001-03-19 Gerd Moellmann <gerd@gnu.org>
477
357e7376
GM
478 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
479 Clear area of the frame not occupied by the scroll bar.
480
c2c097cc
GM
481 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
482 tip frame's root window buffer to *tip* right after creating
483 the frame.
484
ade0bee1
GM
485 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
486 is an integer don't have to be for space characters.
487
88c6e37e
GM
4882001-03-16 Gerd Moellmann <gerd@gnu.org>
489
52283633
SM
490 * indent.c (current_column, current_column_1, Fmove_to_column)
491 (compute_motion): Handle characters from display vectors differently.
88c6e37e 492
c62eed76
KH
4932001-03-15 Kenichi Handa <handa@etl.go.jp>
494
495 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
496 drawing glyph string.
497
c899e7e6
GM
4982001-03-15 Gerd Moellmann <gerd@gnu.org>
499
d0bbfc99
GM
500 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
501 (command_loop_1): Undo last change.
502
03d1a189
GM
503 * xterm.c (fast_find_position): Return the correct vpos.
504
c899e7e6 505 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
52283633 506 non-null, set a per-buffer value in BUF instead of the current buffer.
c899e7e6
GM
507 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
508 Call store_symval_forwarding with BUF null.
509 (set_internal): Call store_symval_forwarding with the BUF
510 parameter passed to set_internal. Formerly, the value was always
511 set in the current buffer; the buffer recorded in specbind for
512 this case wasn't used.
513 (arith_driver): Reindent.
514
52283633
SM
515 * buffer.c (swap_out_buffer_local_variables):
516 Call store_symval_forwarding with BUF null.
c899e7e6
GM
517
518 * lisp.h (store_symval_forwarding): Change prototype.
519
520 * eval.c (specbind): Call store_symval_forwarding with BUF null.
521
57ac7c81
GM
5222001-03-14 Gerd Moellmann <gerd@gnu.org>
523
697617d9
GM
524 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
525 FOR_DELETION. Avoid resizing the mini-window of the selected
526 frame if FOR_DELETION is set.
527 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
528 (Fmake_frame_invisible): Change calls to do_switch_frame for new
529 signature.
530
531 * window.c (Fset_window_configuration): Change call to
532 do_switch_frame to new format.
533
534 * keyboard.c (quit_throw_to_read_char): Change call to
535 do_switch_frame to new format.
536
537 * lisp.h (do_switch_frame): Change prototype.
538
819dce0f
GM
539 * frame.c (Fframe_parameters): In the `buffer-list' frame
540 parameter, store the buffer list of FRAME, not the list of the
541 selected frame.
542
57ac7c81
GM
543 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
544 box just because the glyph row's full_width_p flag is set.
545
65008712
GM
5462001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
547
548 * xdisp.c (highlight_trailing_whitespace): On character terminals,
549 skip the padding blanks inserted in extend_face_to_end_of_line,
550 before checking for trailing whitespace.
551
159cf431
GM
5522001-03-13 Gerd Moellmann <gerd@gnu.org>
553
52283633 554 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
19b2bb80
GM
555 Remove special handling for LessTif/Motif.
556 (toplevel): Don't include Xm/Xm.h.
557
52283633
SM
558 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
559 Remove workaround code for LessTif; it doesn't work anymore.
560
2564ea1b 561 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
57ac7c81 562 Xm/ScrollBarP.h.
afcdc0a1 563
52283633
SM
564 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
565 Don't access private scroll bar data; it's no longer necessary with
23442ae4
GM
566 contemporary LessTif.
567
52283633
SM
568 * xfaces.c (xm_set_menu_resources_from_menu_face):
569 Change #if 0 to #ifndef LESSTIF_VERSION.
9faaaa52 570
159cf431
GM
571 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
572 removing button grabs.
573
c6f7429a
KH
5742001-03-13 Kenichi Handa <handa@etl.go.jp>
575
cb82d767
KH
576 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
577 and clip-large-size-font as obsolete.
578
c6f7429a
KH
579 * lread.c (read_multibyte): Check the validity of multibyte
580 sequence. If invalid, return the first byte.
581
760cefb5
GM
5822001-03-12 Gerd Moellmann <gerd@gnu.org>
583
584 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
585 before running the command; timer functions or process
586 filters may have set it.
587
5141f9d0
EZ
5882001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
589
590 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
591 Doc fix.
592
b6a15240
GM
5932001-03-12 Gerd Moellmann <gerd@gnu.org>
594
595 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
596 to sprintf.
597
95522746
GM
5982001-03-09 Gerd Moellmann <gerd@gnu.org>
599
db14cfc5
GM
600 * dispextern.h (string_buffer_position): Add prototype.
601
52283633 602 * xdisp.c (string_buffer_position, display_prop_string_p)
db14cfc5
GM
603 (single_display_prop_string_p): New functions.
604
605 * xterm.c (note_mouse_highlight): If there's no help-echo on
606 a string, look at the buffer text ``under'' it.
607
608 * keyboard.c (make_lispy_event): Add string info to the event,
609 analogous to what's done on mode lines.
610 (read_key_sequence): For a click on a string, consider `local-map'
611 and `keymap' of that string.
612
52283633
SM
613 * keyboard.c (make_lispy_event, make_lispy_movement):
614 Adjust calls to buffer_posn_from_coords to new format.
3cfd8357
GM
615
616 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
617
618 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
619 POS; return void.
620
95522746
GM
621 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
622 flags argument to emacs_open; it seems to conflict with O_EXCL.
623
898a399d
KH
6242001-03-09 Kenichi Handa <handa@etl.go.jp>
625
28cd4910
KH
626 * composite.h (struct composition): Change types of members;
627 glyph_len to unsigned, width to unsigned short.
898a399d 628
4cdf6a6c
AI
6292001-03-08 Andrew Innes <andrewi@gnu.org>
630
631 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
632 menu titles.
633
129004d3
GM
6342001-03-08 Gerd Moellmann <gerd@gnu.org>
635
221dd3e7
GM
636 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
637 instead of nil.
638
52283633 639 * xterm.c (note_mouse_highlight): Handle mouse-face and
5de7c6f2
GM
640 help-echo in strings.
641 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
642 (fast_find_string_pos): New function.
643
52283633
SM
644 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
645 (display_string): Call face_at_string_position with new parameter.
5de7c6f2
GM
646
647 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
648 Handle `mouse-face'.
649
650 * dispextern.h (face_at_string_position): Change prototype.
651
52283633 652 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
e1fbabaf 653
129004d3
GM
654 * keyboard.c (make_lispy_event): Avoid generating drag events
655 if the mouse hasn't actually moved to another buffer position.
52283633 656
80c8ab8c
DL
6572001-03-08 Dave Love <fx@gnu.org>
658
129004d3 659 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
80c8ab8c 660
989521fd
GM
6612001-03-08 Gerd Moellmann <gerd@gnu.org>
662
663 * process.c (Fset_process_window_size): Fix a typo.
664
bb5c338d
KH
6652001-03-08 Kenichi Handa <handa@etl.go.jp>
666
667 * coding.c (detect_coding_sjis): Do more rigid check.
668 (detect_coding_big5): Likewise.
669 (decode_coding_sjis_big5): Likewise.
670 (Fdetect_coding_region): Call detect_coding_system with tailing
671 anchor byte `\0' for more rigid detection.
52283633 672 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
bb5c338d
KH
673 (Fdetect_coding_string): Likewise.
674
8b8f9197
SM
6752001-03-07 Stefan Monnier <monnier@cs.yale.edu>
676
677 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
678 a string before extracting its data.
679
3bdf2660
GM
6802001-03-07 Gerd Moellmann <gerd@gnu.org>
681
682 * window.c (Frecenter): Rewrite code handling negative values
683 of ARG on graphical frames.
684
6852001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
686
687 * window.c (displayed_window_lines): If W->start is outside the
688 accessible portion of the buffer, call start_display with BEGV or
689 ZV instead of W->start.
690
471f86b9
GM
6912001-03-07 Gerd Moellmann <gerd@gnu.org>
692
2ab62c6c
GM
693 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
694
471f86b9
GM
695 * process.c (Fset_process_filter): Don't crash if the input
696 file descriptor of PROCESS is closed.
697 (Fset_process_window_size): Likewise.
698
101922c3
GM
6992001-03-06 Kenichi Handa <handa@etl.go.jp>
700
701 * xterm.c (XTflash): Make the timeout of select shorter, and call
702 select repeatedly until the desired time expires.
703
45d051a7
GM
7042001-03-06 Gerd Moellmann <gerd@gnu.org>
705
706 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
707
708 * xfns.c (Fx_create_frame): Clear Vwindow_list.
709
710 * lisp.h (Vwindow_list): Declare extern.
711
8f372c46
EZ
7122001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
713
714 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
715
f16a7aa5
GM
7162001-03-06 Gerd Moellmann <gerd@gnu.org>
717
157ae273
GM
718 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
719 to detect a case where we have to highlight a different region
720 despite not having left the currently highlighted region.
721 Set mouse_face_overlay in the x_display_info.
45d051a7 722 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
157ae273
GM
723
724 * xterm.h (struct x_display_info): Add mouse_face_overlay.
725
726 * buffer.c (mouse_face_overlay_overlaps): New function.
727
728 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
729 (Qmouse_face): Declare extern.
730
f16a7aa5
GM
731 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
732 if face_change_count is non-zero.
733
827afcac
KH
7342001-03-06 Kenichi Handa <handa@etl.go.jp>
735
736 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
737 that the source is unibyte.
738
14c7242e
DL
7392001-03-05 Dave Love <fx@gnu.org>
740
827afcac 741 * xterm.c (XTmouse_position): Fix typo.
14c7242e 742
c28b847b
GM
7432001-03-05 Gerd Moellmann <gerd@gnu.org>
744
745 * minibuf.c (read_minibuf): Clean up the binding stack if
746 called noninteractively.
747
b86644f2
KH
7482001-03-05 Kenichi Handa <handa@etl.go.jp>
749
750 * coding.c (syms_of_coding): Docstring modified.
751
203682cc 7522001-03-05 Kenichi Handa <handa@etl.go.jp>
b86644f2
KH
753
754 * charset.c (char_to_string): If a single byte char has modifier
755 bits that can't be reflected to the character code, ignore them
45d051a7 756 instead of signaling an error.
b86644f2 757
e30bd7b7
EZ
7582001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
759
760 * s/msdos.h: Update copyright notice.
761
762 * dosfns.h: Update copyright notice.
763
764 * dosfns.c: Update copyright notice.
765
766 * msdos.c: Update copyright notice.
767
b52b65bd
GM
7682001-03-02 Gerd Moellmann <gerd@gnu.org>
769
770 * xterm.c (glyph_rect): New function.
771 (XTmouse_position): Use it to raise the threshold for mouse
772 movement event generation.
773
53c4b1e6
EZ
7742001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
775
776 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
777 specifies (reverse . t), reverse the initial screen colors.
778 (IT_set_frame_parameters): If the property is foreground-color,
52283633
SM
779 but we are reversing the colors, set bg_set, not fg_set.
780 Likewise for setting background-color and reversing: set fg_set.
781 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
53c4b1e6
EZ
782 in effect.
783
784 * xfaces.c (Finternal_set_lisp_face_attribute)
785 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
786 parameters alist.
787
f964b4d7
GM
7882001-03-02 Gerd Moellmann <gerd@gnu.org>
789
ef53d75e
GM
790 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
791 to a single slash in the middle of file names.
792
52283633 793 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
cda0f4da
GM
794 Accept only alphanumeric time zone names.
795
f964b4d7
GM
796 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
797 or width area.
798 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
799 a widget to zero height.
52283633 800
c3c45f65
GM
8012001-03-01 Gerd Moellmann <gerd@gnu.org>
802
803 * window.c (Fwindow_end): Call move_it_past_eol only if
804 ending up on a partially visible line.
805
028d739a
DL
8062001-03-01 Dave Love <fx@gnu.org>
807
808 * ccl.c (Fccl_execute): Doc fix.
809
57c5889c
GM
8102001-03-01 Gerd Moellmann <gerd@gnu.org>
811
35f59f6b
GM
812 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
813 of the tool bar before calling x_figure_window_size.
814
f84ff02c
GM
815 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
816 NULL after destroying it, otherwise XTread_socket can access a
817 destroyed widget when input is unblocked.
818
8b8f9197 819 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
52283633 820
57c5889c
GM
821 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
822 same name as before, although there was a change in fontsets.
823
224227d1
KR
8242001-02-28 Ken Raeburn <raeburn@gnu.org>
825
4560730a
KR
826 * lisp.h (Fframe_parameter): Declare.
827
224227d1 828 * window.c (set_window_buffer): Field vscroll is an int, not a
57c5889c 829 Lisp_Object.
224227d1 830
ece93c02
GM
8312001-02-28 Gerd Moellmann <gerd@gnu.org>
832
11ef99b9
GM
833 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
834 NULL instead.
835
836 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
837 NULL instead.
838
ece93c02
GM
839 * alloc.c (toplevel): Include process.h.
840 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
841 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
842 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
52283633
SM
843 (allocate_vector, allocate_hash_table, allocate_window)
844 (allocate_frame, allocate_process, allocate_other_vector):
845 New functions.
ece93c02
GM
846 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
847 (mark_maybe_pointer): New function.
52283633 848 (mark_memory): Also mark Lisp data to which only pointers
ece93c02
GM
849 remain and not Lisp_Objects.
850 (min_heap_address, max_heap_address): New variables.
851 (mem_find): Return MEM_NIL if START is below min_heap_address or
852 above max_heap_address.
853 (mem_insert): Compute min_heap_address and max_heap_address.
854
855 * process.c (make_process): Use allocate_process.
856
857 * frame.c (make_frame): Use allocate_frame.
858
859 * window.c (make_window, make_dummy_parent): Use allocate_window.
860 (Fcurrent_window_configuration): Use allocate_other_vector.
861
862 * lisp.h (allocate_vectorlike): Remove prototype.
863 (allocate_vector, allocate_other_vector, allocate_frame)
864 (allocate_window, allocate_process, allocate_hash_table):
865 Add prototypes.
866
867 * fns.c (Fdelete, larger_vector): Use allocate_vector.
868 (make_hash_table, copy_hash_table): Use allocate_hash_table.
869
063af457
KH
8702001-02-27 Kenichi Handa <handa@etl.go.jp>
871
872 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
873 treat the produced bytes as a valid multibyte sequence.
874
875 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
52283633
SM
876 (ccl_driver) <CCL_WriteMultibyteChar2>:
877 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
063af457
KH
878 <ccl_finish>: Set ccl->eight_bit_control properly.
879
880 * ccl.h (struct ccl_program): New member eight_bit_control.
881
f58c6494
SM
8822001-02-26 Stefan Monnier <monnier@cs.yale.edu>
883
884 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
885 accessible_keymaps_char_table.
886 (accessible_keymaps_char_table): Obey `is_metized'.
887 (where_is_internal, Fwhere_is_internal): Don't confuse int and
888 Lisp_Object.
889
c596c392
GM
8902001-02-26 Gerd Moellmann <gerd@gnu.org>
891
892 * dispnew.c: Check HAVE_TERM_H before including term.h.
893
425de386
AI
8942001-02-24 Andrew Innes <andrewi@gnu.org>
895
896 * makefile.w32-in: Update copyright notice.
897
2ba11bbd
SM
8982001-02-24 Stefan Monnier <monnier@cs.yale.edu>
899
900 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
901
66c56ed1
KH
9022001-02-24 Kenichi Handa <handa@etl.go.jp>
903
4c1593ce
KH
904 * Makefile.in (lisp): Add international/utf-8.elc.
905
66c56ed1
KH
906 * fontset.c (Fnew_fontset): Fix handling of the case that an
907 element of FONTLIST is a cons of family and registry.
908
796ead7e
JR
9092001-02-23 Jason Rumney <jasonr@gnu.org>
910
911 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
912 to height unconditionally.
913
914 * w32term.c (x_set_glyph_string_background_width): Extend the
52283633 915 background face to the end of the drawing area in the text area, only.
796ead7e
JR
916 (x_insert_glyphs): Call window_box_left to obtain the left
917 x-coordinate of the area to shift.
918
919 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
920 safe_run_hooks.
921
f6839838
AI
9222001-02-22 Andrew Innes <andrewi@gnu.org>
923
52283633 924 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
f6839838
AI
925 ($(BLD)\dispnew.obj):
926 ($(BLD)\editfns.obj):
927 ($(BLD)\fileio.obj):
928 ($(BLD)\filelock.obj):
929 ($(BLD)\keyboard.obj):
930 ($(BLD)\w32proc.obj):
931 ($(BLD)\process.obj):
932 ($(BLD)\sysdep.obj): Ditto.
933
934 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
935 header files.
52283633
SM
936 ($(BLD)/dispnew.$(O)):
937 ($(BLD)/editfns.$(O)):
938 ($(BLD)/fileio.$(O)):
939 ($(BLD)/filelock.$(O)):
940 ($(BLD)/keyboard.$(O)):
941 ($(BLD)/w32proc.$(O)):
942 ($(BLD)/process.$(O)):
f6839838
AI
943 ($(BLD)/sysdep.$(O)): Ditto.
944
c224f70b
GM
9452001-02-22 Gerd Moellmann <gerd@gnu.org>
946
51695746
GM
947 * xdisp.c (forward_to_next_line_start): When taking the shortcut
948 at the start of the function, check that the \n in it->c is
949 from the iterator's current position.
52283633 950
a61b7058
GM
951 * xdisp.c (handle_single_display_prop): Add parameter
952 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
953 properties which replace the display of text with something else.
954 (handle_display_prop): Call handle_single_display_prop with
955 additional argument saying if we already replaced text display
956 with something else. Use AREF.
52283633 957 (with_echo_area_buffer_unwind_data, display_menu_bar)
a61b7058
GM
958 (decode_mode_spec_coding): Use AREF and ASIZE.
959
3473f362
GM
960 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
961 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
962 * vmstime.h: Files removed.
52283633 963
2bb58df3
GM
964 * unexencap.c, unexfx2800.c: Files removed.
965
c224f70b
GM
966 * dispnew.c (direct_output_for_insert): Give up if we are showing
967 a message or just cleared the message because we might need to
968 resize the echo area window or display an empty echo area.
969
ffc9ff0c
GM
9702001-02-21 Gerd Moellmann <gerd@gnu.org>
971
0528abe1
GM
972 * xdisp.c (redisplay_internal): Do the
973 mark_window_display_accurate after all windows have been
974 redisplayed because this call resets flags in buffers which are
975 needed for proper redisplay.
976
52283633
SM
977 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
978 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
ffc9ff0c
GM
979 the old names.
980
52283633
SM
981 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
982 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
983
984 * msdos.h (struct x_output): Rename busy_window to
985 hourglass_window, busy_p to hourglass_p.
986
52283633
SM
987 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
988 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
989
990 * xfns.c: Rename everything containing *busy_cursor* and similar
991 to *hourglass*.
992 (syms_of_w32fns): Rename x-busy-pointer-shape to
993 x-hourglass-pointer-shape, display-busy-cursor to
994 display-hourglass, busy-cursor-delay to hourglass-delay.
995
996 * w32fns.c: Rename everything containing *busy_cursor* and similar
997 to *hourglass*.
998 (syms_of_w32fns): Rename x-busy-pointer-shape to
999 x-hourglass-pointer-shape, display-busy-cursor to
1000 display-hourglass, busy-cursor-delay to hourglass-delay.
1001
1002 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
1003 of its busy_p flag.
1004
1005 * dispextern.h (start_hourglass, cancel_hourglass)
1006 (display_hourglass_p): Renamed from *busy_cursor*.
1007
ab2c5f0a
GM
10082001-02-20 Gerd Moellmann <gerd@gnu.org>
1009
d17e49a8
GM
1010 * keyboard.c (read_char): When an event from unread-command-events
1011 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
1012
fa97adf6
GM
1013 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
1014 equal to the current buffer.
1015
ab2c5f0a
GM
1016 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
1017 nil, otherwise we're left with truncate_lines t when a message
1018 is printed with message-truncate-lines bound to t.
1019
aeac019e
GM
10202001-02-19 Gerd Moellmann <gerd@gnu.org>
1021
c8bc6f65
GM
1022 * window.c (Fmove_to_window_line): Undo last change.
1023 (displayed_window_lines): Call line_bottom_y to determine
1024 the line's bottom position.
1025
1026 * dispextern.h (line_bottom_y): Add prototype.
1027
52283633 1028 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
c8bc6f65
GM
1029 (pos_visible_p): Use it.
1030
980a2d69
GM
1031 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
1032 set redisplaying_p to 0 here instead of in Frecursive_edit.
1033 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
1034 set redisplaying_p.
1035
52283633 1036 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
184d2372
GM
1037 New variables.
1038 (syms_of_xdisp): Initialize new variables.
1039 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
1040 Specbind `inhibit-menubar-update' when updating the menu bar.
1041
65048e97
GM
1042 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
1043 safe_run_hooks.
1044
1045 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
1046 safe_run_hooks.
1047
a57c4026
GM
1048 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
1049 is null.
1050
aeac019e
GM
1051 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
1052 to the start of the file.
1053
76846b31
GM
10542001-02-16 Gerd Moellmann <gerd@gnu.org>
1055
f3f053f3 1056 * window.c (set_window_buffer): Fix last change.
52283633 1057
f3f053f3
GM
1058 * window.c (set_window_buffer): Set window's vscroll to 0.
1059
dad75588
GM
1060 * window.c (coordinates_in_window): Increase width of area
1061 where the vertical line can be dragged.
1062
c220b753
GM
1063 * xterm.c (x_set_glyph_string_background_width): Extend the
1064 background face to the end of the drawing area in the text
1065 area, only.
1066
c56b1c1b
GM
1067 * xdisp.c (handle_single_display_prop): Set iterator's position
1068 to where the `display' property starts, like for images.
1069 (dump_glyph): New function.
1070 (dump_glyph_row): Use it. Dump info about marginal areas.
1071
1072 * dispnew.c (direct_output_for_insert): Recognize more cases where
1073 glyphs can be written instead of being inserted.
1074
1075 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
1076 the left x-coordinate of the area to shift.
1077
76846b31
GM
1078 * dired.c (directory_files_internal): Set result list to nil
1079 before retrying.
1080
0fc71a77
KH
10812001-02-15 Kenichi Handa <handa@etl.go.jp>
1082
1083 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
1084 invalid multibyte sequence, treat *SRC as a character of
1085 eight-bit-graphic.
1086
25078b54
EZ
10872001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
1088
1089 * textprop.c (Fset_text_properties): Doc fix.
1090
8399f8a0
GM
10912001-02-15 Gerd Moellmann <gerd@gnu.org>
1092
1093 * dispnew.c (update_text_area): Undo change of 2001-01-12.
1094
9a2a6f73
DL
10952001-02-14 Dave Love <fx@gnu.org>
1096
1097 * coding.c: Doc and message fixes.
1098
bf853fee
AI
10992001-02-14 Andrew Innes <andrewi@gnu.org>
1100
1101 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
1102 Emacs frame above the screen size.
1103
78c663d8
GM
11042001-02-14 Gerd Moellmann <gerd@gnu.org>
1105
1106 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
1107
7cc9f69f
GM
11082001-02-13 Gerd Moellmann <gerd@gnu.org>
1109
0a411995
GM
1110 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
1111 case that TO ends up beyond ZV after running before-change-functions.
1112
5ddc1b75
GM
1113 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
1114 the selected window if it is showing the buffer in question.
1115
7cc9f69f
GM
1116 * dired.c (directory_files_internal): Initialize errno.
1117 (toplevel): Include errno.h.
1118
2e6621ca
GM
11192001-02-13 Kenichi Handa <handa@etl.go.jp>
1120
1121 * xfaces.c (best_matching_font): New parameter width_ratio.
1122 Multiply avgwidth by width_ratio.
1123 (choose_face_font): Call best_matching_font with width_ratio
1124 calculated from the column width of C.
1125
60222d69
AI
11262001-02-12 Andrew Innes <andrewi@gnu.org>
1127
1128 The following changes are to draw box lines inside characters area
1129 if line-width is negative.
52283633 1130
60222d69
AI
1131 * w32term.c (x_produce_image_glyph): Pay attention to the case that
1132 face->box_line_width is negative.
1133 (x_produce_stretch_glyph): Likewise.
1134 (x_produce_glyphs): Likewise.
1135 (x_estimate_mode_line_height): Likewise.
1136 (x_draw_glyph_string_background): Likewise.
1137 (x_draw_glyph_string_foreground): Likewise.
1138 (x_draw_composite_glyph_string_foreground): Likewise.
1139 (x_draw_glyph_string_box): Likewise.
1140 (x_draw_image_foreground): Likewise.
1141 (x_draw_image_relief): Likewise.
1142 (x_draw_image_foreground_1): Likewise.
1143 (x_draw_image_glyph_string): Likewise.
1144
9804b846
KH
11452001-02-09 Kenichi Handa <handa@etl.go.jp>
1146
1147 The following changes are to draw box lines inside characters area
1148 if line-width is negative.
52283633 1149
9804b846
KH
1150 * xterm.c (x_produce_image_glyph): Pay attention to the case that
1151 face->box_line_width is negative.
1152 (x_produce_stretch_glyph): Likewise.
1153 (x_produce_glyphs): Likewise.
1154 (x_estimate_mode_line_height): Likewise.
1155 (x_draw_glyph_string_background): Likewise.
1156 (x_draw_glyph_string_foreground): Likewise.
1157 (x_draw_composite_glyph_string_foreground): Likewise.
1158 (x_draw_glyph_string_box): Likewise.
1159 (x_draw_image_foreground): Likewise.
1160 (x_draw_image_relief): Likewise.
1161 (x_draw_image_foreground_1): Likewise.
1162 (x_draw_image_glyph_string): Likewise.
1163
1164 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
1165 and :line-width can be negative.
52283633 1166 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
9804b846 1167
49be9f70
JR
11682001-02-09 Jason Rumney <jasonr@gnu.org>
1169
1170 * w32term.c (w32_encode_char): Treat eight bit graphic and control
1171 characters the same as ASCII and latin-1.
1172 (x_display_and_set_cursor): Check for the focus frame's selected
1173 window instead of selected_window.
1174 (x_after_update_window_line): Don't clear if frame's internal
1175 border width is zero.
1176 (x_new_font): Don't change a tooltip's size.
1177 (w32_initialize): Set char_ins_del_ok to 1.
1178
1179 * w32fns.c (Fx_show_tip): Fix calls to make_number.
1180 (x_set_font): If font hasn't changed, avoid recomputing
1181 faces and other things.
52283633
SM
1182 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
1183 (Fx_create_frame): Add the tool bar height to the frame height.
49be9f70
JR
1184 (x_create_tip_frame): Prevent changing the tooltip's
1185 background color by specifying a color for the default font
1186 in .Xdefaults.
1187 (Qcancel_timer): New variable.
1188 (syms_of_w32fns): Initialize and staticpro it.
1189 (Fx_hide_tip, Fx_show_tip): Use it.
1190 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
1191 the timer.
1192 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
1193
1194 * w32.c (init_environment): Duplicate local string before putenv.
1195
555e35d2
SZ
11962001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
1197
1198 * charset.c (Fstring): A typo.
1199
19c92c94
KH
12002001-02-09 Kenichi Handa <handa@etl.go.jp>
1201
e47a1c33
KH
1202 * charset.c (Fstring): If all arguments are less than 256, return
1203 a unibyte string.
1204
1205 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
1206 return a unibyte string.
1207
19c92c94
KH
1208 * coding.c (code_convert_region): After detecting a coding, if
1209 nothing found, set coding->composing to COMPOSITION_NO.
1210 (decode_coding_string): Likewise.
1211
d8e675f5
SM
12122001-02-08 Stefan Monnier <monnier@cs.yale.edu>
1213
1214 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
1215 to avoid overflow.
1216
bd503487
KH
12172001-02-07 Kenichi Handa <handa@etl.go.jp>
1218
1219 * charset.c (parse_str_to_multibyte): New function.
1220
1221 * charset.h (parse_str_to_multibyte): Extern it.
1222
1223 * print.c (print_string): If we are going to print a unibyte
1224 string into a multibyte buffer, convert the string to multibyte by
1225 str_to_multibyte.
1226
a8370d72
AI
12272001-02-06 Andrew Innes <andrewi@gnu.org>
1228
1229 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
1230 been created. It seems we can get sent window messages such as
1231 WM_ERASEBKGND before we properly update a frame.
1232
c363a1d6
GM
12332001-02-06 Gerd Moellmann <gerd@gnu.org>
1234
1235 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
1236 Avoid some unnecessary cursor positioning.
1237
a08332c0
GM
12382001-02-05 Gerd Moellmann <gerd@gnu.org>
1239
52283633 1240 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
a08332c0
GM
1241 (LFACE_AVGWIDTH): New macro.
1242 (LFACEP): Use AREF.
1243 (check_lface_attrs): Check LFACE_AVGWIDTH.
1244 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
1245 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
1246 (merge_face_vectors): Check LFACE_AVGWIDTH.
1247 (Finternal_make_lisp_face): Use AREF.
1248 (xm_set_menu_resources_from_menu_face)
1249 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
1250 (Finternal_lisp_face_empty_p): Use AREF.
1251 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
1252 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
1253 Compare average widths..
1254 (best_matching_font): Arrange for comparing average widths.
1255
52283633
SM
1256 * dispextern.h (enum lface_attribute_index):
1257 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
1258
5cb3c8d4
DL
12592001-02-05 Dave Love <fx@gnu.org>
1260
1261 * puresize.h: Revert last change following loadup.el change.
1262
193fba87
AI
12632001-02-05 Andrew Innes <andrewi@gnu.org>
1264
1265 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
1266 invocation of temacs, to work with Windows 2000.
1267 (bootstrap-emacs): Ditto.
1268
e16f52ce
GM
12692001-02-05 Gerd Moellmann <gerd@gnu.org>
1270
7a58ab59
GM
1271 * xterm.c (x_display_and_set_cursor): Check for the focus
1272 frame's selected window instead of selected_window.
1273
e89aaabd
GM
1274 * xdisp.c (try_scrolling): If point is in the line below the
1275 window, make sure to move the iterator at least a canonical
1276 char height down.
1277
52283633 1278 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
e16f52ce 1279
789ce875
KH
12802001-02-05 Kenichi Handa <handa@etl.go.jp>
1281
52283633
SM
1282 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
1283 If invalid, execute CCL_INVALID_CMD.
789ce875
KH
1284 (ccl_driver): If the CCL program is terminated because of
1285 CCL_STAT_INVALID_CMD, copy the remaining source data to the
1286 destination instead of throwing them away.
1287
20b28f82
GM
12882001-02-02 Gerd Moellmann <gerd@gnu.org>
1289
79fb38c0
GM
1290 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
1291 faces and other things.
1292
20b28f82
GM
1293 * xdisp.c (get_next_display_element): Fix case of empty
1294 display table entry.
1295
5a72551e
EZ
12962001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
1297
eb24d0bf
EZ
1298 * editfns.c (Fconstrain_to_field): Doc fix.
1299
6a3f48c7
EZ
1300 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
1301 into `thoroughly', to make it consistent with the doc string.
1302
5a72551e
EZ
1303 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
1304
01acdb05
GM
13052001-02-01 Gerd Moellmann <gerd@gnu.org>
1306
0353b28f
GM
1307 * search.c (search_buffer): Call set_search_regs with a byte
1308 position, not a character position.
1309
01acdb05
GM
1310 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
1311 minibuffer-only,
1312
e86b5133
EZ
13132001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
1314
1315 * frame.c (Fmodify_frame_parameters): Doc fix.
1316
7442878f
GM
13172001-01-31 Gerd Moellmann <gerd@gnu.org>
1318
01acdb05
GM
1319 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
1320 identifier which is not reserved by Standard C.
52283633 1321
7442878f
GM
1322 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
1323
1324 * window.c (enum window_part): New enumeration.
1325 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
1326 Qright_bitmap_area.
1327 (coordinates_in_window): Return an enumerator from enum
1328 window_part. Fix handling of right scroll bar.
1329 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
1330 `right-fringe' instead of `left-bitmap-area' and
1331 `right-bitmap-area'. Use enumerators from enum window_part
1332 instead of hard-coded integers.
52283633
SM
1333 (check_window_containing, window_from_coordinates):
1334 Use enumerators from enum window_part instead of hard-coded integers.
7442878f
GM
1335 (syms_of_window): Replace Qleft_bitmap_area and
1336 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
1337
7c132cba
EZ
13382001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
1339
1340 * editfns.c (Fformat_time_string): Doc fix.
1341
c359dd9e
SM
13422001-01-31 Stefan Monnier <monnier@cs.yale.edu>
1343
1344 * keymap.c (Fwhere_is_internal): Use the first valid binding
1345 if no ascii binding is found (when firstonly is t).
1346
ce070307
GM
13472001-01-31 Gerd Moellmann <gerd@gnu.org>
1348
b4f30ec5
GM
1349 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
1350 instead of Finteractive_p.
1351
1352 * lisp.h (interactive_p): Add prototype.
1353
1354 * eval.c (interactive_p): New function.
1355 (Finteractive_p): Use it.
1356
ce070307
GM
1357 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
1358
f57b6e64
DL
13592001-01-31 Dave Love <fx@gnu.org>
1360
d61c7afe
DL
1361 * .gdbinit (hook-run): Define to run xreload.
1362
f57b6e64
DL
1363 * textprop.c (Fset_text_properties): Fix newline in doc string.
1364
eef93f99
GM
13652001-01-30 Gerd Moellmann <gerd@gnu.org>
1366
52283633
SM
1367 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
1368 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
eef93f99
GM
1369
1370 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
52283633 1371 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
eef93f99
GM
1372 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
1373
1374 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
1375 height.
1376
d9c1f6f9
DL
13772001-01-30 Dave Love <fx@gnu.org>
1378
1379 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
1380 AFTER_POTENTIAL_GC.
1381
e8f044a0
GM
13822001-01-29 Gerd Moellmann <gerd@gnu.org>
1383
52283633
SM
1384 * bytecode.c (Fbyte_code) <Bcurrent_column>:
1385 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
e8f044a0 1386
8e1db7b3
EZ
13872001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
1388
1389 * textprop.c (Fset_text_properties): Doc fix.
1390
4eefd9d2
GM
13912001-01-29 Gerd Moellmann <gerd@gnu.org>
1392
1393 * xdisp.c (forward_to_next_line_start): Remove xassert.
1394
fccb8288
EZ
13952001-01-29 Jason Rumney <jasonr@gnu.org>
1396
4eefd9d2 1397 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
fccb8288
EZ
1398 returning without releasing it.
1399
76581eab
KH
14002001-01-29 Kenichi Handa <handa@etl.go.jp>
1401
1402 * w32fns.c (w32_font_match): Allocate three more bytes to regex
1403 for '^', '$', and '\0'.
1404
83a96b4d
AC
14052001-01-28 Andrew Choi <akochoi@i-cable.com>
1406
5604ec34
AC
1407 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
1408 regex for '^', '$', and '\0'.
1409
83a96b4d
AC
1410 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
1411 only if current_sblock has been initialized.
1412
1413 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
1414 terminal frame even if it is the only visible frame.
1415
c09a6440
KH
14162001-01-28 Kenichi Handa <handa@etl.go.jp>
1417
1418 * fontset.c (font_family_registry): Even if FONTNAME conform to
1419 XLFD, if it specifies other fields than family and registry,
52283633 1420 return FONTANME. New argument FORCE if nonzero cancel that feature.
c09a6440 1421 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
52283633
SM
1422 a signle byte character. Don't set FAMILY part to nil here.
1423 It is handled by the caller choose_face_font.
c09a6440
KH
1424 (Fnew_fontset): Call font_family_registry with FORCE 0.
1425 (Fset_fontset_font): Likewise.
1426
4dcd74e6
GM
14272001-01-27 Gerd Moellmann <gerd@gnu.org>
1428
1429 * xdisp.c (display_line): Don't treat a newline as fitting
1430 on the line.
1431
d2906bf8
GM
14322001-01-26 Gerd Moellmann <gerd@gnu.org>
1433
0130fe1a
GM
1434 * window.c (size_window): Set the window's orig_top to nil when
1435 changing heights, so that a future shrink_mini_window won't
1436 restore a bogus height.
1437
550f0e6a
GM
1438 * frame.c (do_switch_frame): If selected frame has a mini-window,
1439 resize that to exact size.
1440
b7b20fbd
GM
1441 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
1442
a47b7816
GM
1443 * xdisp.c (display_line): Simplify check for glyphs fitting
1444 entirely in the line.
1445
d2906bf8
GM
1446 * xfns.c (xic_style): New variable.
1447 (create_frame_xic): Move static variable to global scope for
550f0e6a 1448 the case that `static' gets defined away.
d2906bf8 1449
73df2b1e
KH
14502001-01-26 Kenichi Handa <handa@etl.go.jp>
1451
1452 * coding.c (decode_coding): Set a flag for inhibiting
1453 inconsistent eol.
1454 (code_convert_region): Always set saved_coding_symbol.
1455 (decode_coding_string): Likewise. Update coding->symbol when we
52283633 1456 encounter a inconsistent eol by the same way as code_convert_region.
73df2b1e 1457
6613cfc4
GM
14582001-01-25 Gerd Moellmann <gerd@gnu.org>
1459
c5e6e06b
GM
1460 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
1461 XClearArea.
1462
1463 * xterm.c (x_after_update_window_line): Don't clear if frame's
1464 internal border width is zero.
1465 (x_clear_area): New function.
1466 (x_after_update_window_line, x_clear_end_of_line)
1467 (x_scroll_bar_create, x_scroll_bar_set_handle)
1468 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
1469 instead of XClearArea.
1470
1471 * xterm.h (x_clear_area): Add prototype.
1472
6613cfc4
GM
1473 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
1474 which doesn't seem necessary anymore with Lesstif 0.92.
1475
650cc6cc
DL
14762001-01-25 Dave Love <fx@gnu.org>
1477
34ac3367
DL
1478 * puresize.h (BASE_PURESIZE): Up to 720000.
1479
650cc6cc
DL
1480 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
1481
5e37dc22
GM
14822001-01-25 Gerd Moellmann <gerd@gnu.org>
1483
e1e441f9
GM
1484 * xdisp.c (echo_area_display): Don't call redisplay_internal
1485 when Emacs is shutting down. We can't run hooks etc. that
1486 would be necessary to do a redisplay.
1487
5e37dc22
GM
1488 * lread.c (read_integer): Use type EMACS_INT instead of int.
1489
0fb94c7f
EZ
14902001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
1491
1492 * ccl.c (ccl_driver): Fix last change.
1493
e3778624
KH
14942001-01-25 Kenichi Handa <handa@etl.go.jp>
1495
1496 * ccl.h (sturct ccl_program): New member suppress_error.
1497
bb264518 1498 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
e3778624
KH
1499 insert error message to the output.
1500 (setup_ccl_program): Initialize ccl->suppress_error to 0.
1501
1502 * coding.h (struct coding_system): New member suppress_error.
1503
1504 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
1505 (Fset_terminal_coding_system_internal): Set the member
1506 suppress_error to 1.
1507 (Fset_safe_terminal_coding_system_internal): Likewise.
1508
245ed2b1
SM
15092001-01-24 Stefan Monnier <monnier@cs.yale.edu>
1510
1511 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
1512 as if it was a `charset'.
1513
f9aaedb6
GM
15142001-01-24 Gerd Moellmann <gerd@gnu.org>
1515
1516 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
1517 value in where_is_cache; the next lookup in the cache returns
1518 something bogus if we do.
1519
c3902c3e
EZ
15202001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
1521
1522 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
1523 if HAVE_WINDOW_SYSTEM isn't defined.
1524
3497f73e
GM
15252001-01-24 Gerd Moellmann <gerd@gnu.org>
1526
e7e41584
GM
1527 * fns.c (sweep_weak_table): Fix code taking items out of
1528 the hash collision chain. Some cleanup.
1529
3497f73e
GM
1530 * xterm.c (x_new_font): Don't change a tooltip's size.
1531
1532 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
1533 background color by specifying a color for the default font
1534 in .Xdefaults.
1535
3d48e687
KH
15362001-01-24 Kenichi Handa <handa@etl.go.jp>
1537
96531b20
KH
1538 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
1539 a workaround for SunOS 4's cc.
1540 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
1541 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
1542 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
1543 statement.
3d48e687 1544
a30629d2
GM
15452001-01-23 Gerd Moellmann <gerd@gnu.org>
1546
1547 * xterm.c (x_set_window_size_1): New function extracted from
1548 x_set_window_size.
1549 (x_set_window_size): Use it.
1550 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
1551 doesn't have a widget, like tooltips.
1552
5a43decf
EZ
15532001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
1554
52283633 1555 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5a43decf 1556
b0e98867
KH
15572001-01-23 Kenichi Handa <handa@etl.go.jp>
1558
1559 * fns.c (Fset_char_table_default): Fix to make sub char-table
1560 correctly.
1561
50606b4c
GM
15622001-01-22 Gerd Moellmann <gerd@gnu.org>
1563
cb2ddc53 1564 * xdisp.c (build_desired_tool_bar_string): Make sure we have
52283633
SM
1565 a desired tool bar string, even if there are no tool bar items.
1566
57c28064
GM
1567 * xdisp.c (Ftool_bar_lines_needed): New function.
1568 (syms_of_xdisp): Defsubr it.
1569
50606b4c
GM
1570 * editfns.c (Fformat): Don't extend text properties from arguments
1571 to padding chars in the result.
1572
2f169c38
EZ
15732001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
1574
1575 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
1576
0f32f023
AI
15772001-01-20 Andrew Innes <andrewi@gnu.org>
1578
52283633 1579 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
0f32f023
AI
1580 (w32_initialize): Don't set term hooks that aren't actually needed
1581 in windowed mode.
1582
1583 * xfaces.c (realize_default_face):
1584 (realize_face):
1585 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
1586
1587 * xdisp.c (handle_single_display_prop): Remove references to
1588 FRAME_W32_CONSOLE_P.
1589
52283633 1590 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
0f32f023
AI
1591
1592 * frame.h (output_method): Remove output_w32_console method.
1593 (FRAME_W32_CONSOLE_P): Remove macro.
1594
1595 * frame.c (Qw32_console): Remove variable.
1596 (Fframep): Remove references to it.
1597 (syms_of_frame): Ditto.
1598 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
1599
1600 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
1601 redefinition.
1602
7173eada
KH
16032001-01-20 Kenichi Handa <handa@etl.go.jp>
1604
1605 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
1606
755b45ce
AI
16072001-01-19 Andrew Innes <andrewi@gnu.org>
1608
1609 * w32.c (init_environment): Add a version-independent site-lisp
1610 directory to EMACSLOADPATH, after the version dependent one.
1611
0a949811
GM
16122001-01-19 Gerd Moellmann <gerd@gnu.org>
1613
8501998a
GM
1614 * editfns.c (Fbuffer_substring): Doc fix.
1615
52283633
SM
1616 * xdisp.c (message_dolog, message2, message2_nolog):
1617 Rename parameter LEN to NBYTES.
0a949811 1618
e6ebcbbe
KH
16192001-01-19 Kenichi Handa <handa@etl.go.jp>
1620
200ecca2
KH
1621 * charset.c (strwidth): Use c_string_width.
1622 (c_string_width): New function.
1623 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
1624 Caller changed.
1625
1626 * charset.h (c_string_width, lisp_string_width): Extern them.
1627
52283633 1628 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
200ecca2 1629
e6ebcbbe
KH
1630 * indent.c (check_composition): Check validity of composition.
1631
200ecca2
KH
1632 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
1633 characters by calling c_string_width.
1634 (x_consider_frame_title): Get byte length of frame tile string
1635 correctly.
1636 (display_mode_element): Pay attention to width of non-ASCII
1637 characters by calling strwidth.
1638
8692ca92
GM
16392001-01-18 Gerd Moellmann <gerd@gnu.org>
1640
8962e303
GM
1641 * xfns.c (Qcancel_timer): New variable.
1642 (syms_of_xfns): Initialize and staticpro it.
1643 (Fx_hide_tip, Fx_show_tip): Use it.
1644 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
1645 the timer.
1646 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
1647
91523be9
GM
1648 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
1649
1650 * window.h (WINDOW_LIVE_P): New macro.
1651
b0b7ed0e
GM
1652 * window.c (window_size_fixed): New variable.
1653 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
1654 the doc string.
1655
06bccf8e
GM
1656 * eval.c (specbind): If binding a per-buffer variable which
1657 doesn't have a buffer-local value in the current buffer, change
1658 the global value by changing the value of the symbol bound in all
1659 buffers not having their own value, to make it consistent with
1660 what happens with other buffer-local variables.
1661
8692ca92
GM
1662 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
1663
1664 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
1665 when searching for a newline.
1666
bb3a3b50
KH
16672001-01-18 Kenichi Handa <handa@etl.go.jp>
1668
1669 * xdisp.c (display_string): Fix previous change.
1670
c2cc16fa
JR
16712001-01-18 Jason Rumney <jasonr@gnu.org>
1672
1673 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
1674 GLYPH_DEBUG is defined.
1675 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
1676 true for images with `:ascent 100'.
1677 (x_set_mouse_face_gc): If the last used mouse face has gone in the
1678 meantime, use face MOUSE_FACE_ID.
1679 If first glyph isn't a character glyph, use the ASCII NUL
1680 character to determine the face.
1681 (expose_area): Do not treat left margin specially.
1682 (note_mode_line_highlight): If no local_map, check global keymap.
1683 (note_mouse_highlight): Initialize overlay.
52283633 1684 (clear_mouse_face): Don't return if tip_frame is non-nil.
c2cc16fa
JR
1685 (show_scroll_bars): Remove unused function.
1686 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
1687 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
1688 Clip to row.
52283633 1689 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
c2cc16fa
JR
1690 (x_free_frame_resources): Unload relief colors.
1691
9c11f79e
GM
16922001-01-17 Gerd Moellmann <gerd@gnu.org>
1693
3aec8722 1694 * xdisp.c (forward_to_next_line_start): Avoid calling
52283633
SM
1695 get_next_display_element when the newline is already found.
1696 This may change the iterator's position, when its current position is
3aec8722
GM
1697 equal to the iterator's stop_charpos.
1698
f3ffc2c3
GM
1699 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
1700 zero, use this method only at the end of a line.
1701
52283633 1702 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
a86110a8
GM
1703 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
1704 if SCALABLE_FONTS_P is set.
52283633 1705
d26d6fd9
GM
1706 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
1707 so that scalable fonts are included.
1708
9c11f79e
GM
1709 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
1710 In the cache, use a key containing the information if scalable
1711 fonts are included.
1712 (x_load_font): Adapt to change of keys in the font cache.
1713
17142001-01-17 Kim F. Storm <storm@filanet.dk>
52283633 1715
d26d6fd9
GM
1716 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
1717 XListFonts to take advantage of font caching.
1718
9c11f79e
GM
1719 * xterm.c (x_list_fonts): Ensure caching font information when
1720 called for a null frame, which is the case frequently when Emacs
1721 starts.
1722
51446987
GM
17232001-01-17 Gerd Moellmann <gerd@gnu.org>
1724
f864120f
GM
1725 * xfns.c (QCconversion): Replaces QCalgorithm.
1726
1727 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
1728
1729 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
1730 of :algorithm.
52283633 1731
e37d1417
GM
1732 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
1733 not everything could be displayed.
1734
51446987
GM
1735 * line.h, x-list-font.c: Files removed because unused.
1736
9ad4f3e5
AI
17372001-01-17 Andrew Innes <andrewi@gnu.org>
1738
1739 * dired.c (directory_files_internal): Convert result from readdir
1740 to a unibyte string initially, to avoid possible misinterpretation
1741 of some bytes as the internal form of Emacs characters.
1742
2eda09b5
KH
17432001-01-17 Kenichi Handa <handa@etl.go.jp>
1744
1745 * fns.c (concat): Be sure to avoid putting the same `composition'
1746 property on the adjacent regions.
1747
826f3788
GM
17482001-01-16 Gerd Moellmann <gerd@gnu.org>
1749
52283633 1750 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
f251459d
GM
1751 (Fscroll_right, Fscroll_left): Set it here instead, if called
1752 interactively.
1753
d57b83b3
GM
1754 * buffer.c (Fset_buffer_modified_p): Set buffer's
1755 prevent_redisplay_optimizations_p flag.
1756
826f3788 1757 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
52283633
SM
1758 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
1759 with additional arg.
1760
1761 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
1762 Change prototype.
826f3788 1763
826f3788
GM
1764 * xdisp.c (redisplay_preserve_echo_area): Add parameter
1765 FROM_WHERE, for debugging.
1766
261d788b
KH
17672001-01-16 Kenichi Handa <handa@etl.go.jp>
1768
1769 * ccl.c (Fregister_ccl_program): Handle the return value of
1770 resolve_symbol_ccl_program correctly.
52283633 1771 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
261d788b 1772
bccee4f2
GM
17732001-01-15 Gerd Moellmann <gerd@gnu.org>
1774
e4ded23c
GM
1775 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
1776 has gone in the meantime, use face MOUSE_FACE_ID.
52283633
SM
1777
1778 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
1779 If x_display_info_for_display returns null, don't try to close
ae24cb3b
GM
1780 the display; we didn't open it.
1781
bccee4f2
GM
1782 * dispnew.c (save_or_restore_current_matrices): Function removed.
1783 (save_current_matrix, restore_current_matrix): New functions.
1784 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
1785 restore the frame's current matrix. Due to the glyph pointer
1786 setup done in adjust_glyph_matrix, there is no easy way to make
1787 saving the current matrix in the desired matrix generally correct,
1788 so don't try it.
1789
ebeccffa
KH
17902001-01-15 Kenichi Handa <handa@etl.go.jp>
1791
1792 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
1793 truncation glyphs.
1794 (display_line): Optimize for wide characters.
e4ded23c 1795 (display_string): Don't try to display a multi-column character
ebeccffa
KH
1796 partially. On ttys, produce more than one truncation glyph for
1797 multi-column characters that don't fit on the line.
1798
64388126
KH
17992001-01-13 Kenichi Handa <handa@etl.go.jp>
1800
52283633
SM
1801 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
1802 Define it instead of WORDS_BIGENDIAN. Caller changed.
64388126 1803
8edb0a6f
JR
18042001-01-13 Jason Rumney <jasonr@gnu.org>
1805
1806 * w32fns.c (Fimage_size, image_ascent, lookup_image)
1807 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
52283633
SM
1808 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
1809 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
8edb0a6f 1810
52283633
SM
1811 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
1812 (x_draw_image_relief, x_draw_image_foreground_1)
8edb0a6f
JR
1813 (x_draw_image_glyph_string): Adapt to change of image margins.
1814
1815 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
1816 variables.
1817
1818 * w32bdf.c (search_file_line, get_cached_font_char)
1819 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
1820
1821 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
1822
1823 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
1824 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
1825 (Fw32_send_sys_command): Remove unused variables.
1826 (w32_msg_pump): Add parentheses.
1827
1828 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
1829 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
1830 Add parentheses.
1831
4956d1ef
GM
18322001-01-12 Gerd Moellmann <gerd@gnu.org>
1833
b30623be
GM
1834 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
1835 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
1836 being a pair of margins.
1837 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
1838 to DEFVAR_LISP. Extend doc.
1839
1840 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
1841 margins.
1842 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
1843 pair of integers `(X . Y)', use X for the horizontal and Y for the
1844 vertical margin.
1845 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
1846 (parse_image_spec): Check it.
52283633
SM
1847 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
1848 (tiff_format, gif_format, gs_format):
1849 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
b30623be 1850
52283633
SM
1851 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
1852 (x_draw_image_relief, x_draw_image_foreground_1)
b30623be
GM
1853 (x_draw_image_glyph_string): Adapt to the change of image margins.
1854
1855 * dispextern.h (struct image): Replace member `margin' with
1856 `hmargin' and `vmargin'.
1857
4554cc79
GM
1858 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
1859 and GLYPHS.
1860
1861 * dispnew.c (update_text_area): Put code which decrements the
1862 stop position when the row's face extends to the end of the
3bffc665 1863 line in #if 0.
4554cc79 1864
3cccce8d
GM
1865 * xfns.c (x_set_mouse_color): Fix color allocation.
1866
4956d1ef
GM
1867 * keyboard.c: Call get_local_map with new argument list.
1868
1869 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
1870
1871 * intervals.h (enum map_property): Removed.
1872 (get_local_map): Change prototype.
1873
1874 * keymap.c: Call get_local_map with new argument list.
1875 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
1876
2c2ff7f2
GM
18772001-01-11 Gerd Moellmann <gerd@gnu.org>
1878
a23887b9
GM
1879 * xdisp.c (build_desired_tool_bar_string): Correct the computation
1880 of the size needed for the tool bar string. For the last image,
1881 use a `display' property that reaches to the end of the string.
1882
a7ee2d2e
GM
1883 * xselect.c (selection_request_dpyinfo): New variable.
1884 (x_handle_selection_request): Set it.
1885 (x_selection_request_lisp_error): Don't call
1886 x_decline_selection_request if selection request's display has
1887 been closed.
1888
52283633
SM
1889 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
1890 Do the unregister_colors before calling XFreeColors.
2c2ff7f2 1891
457b792c
GM
18922001-01-10 Dave Love <fx@gnu.org>
1893
1894 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
1895 ${SOME_MACHINE_LISP}, not ${lisp}.
1896
c1efd260
GM
18972001-01-10 Gerd Moellmann <gerd@gnu.org>
1898
52283633
SM
1899 * xdisp.c (display_line): On ttys, produce more than one truncation
1900 glyph for multi-column characters that don't fit on the line.
a98b5ed9 1901
ac95a621
GM
1902 * xselect.c (x_reply_selection_request): Add a comment.
1903
c1efd260
GM
1904 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
1905 XkbGetNames instead of XkbGetKeyboard.
1906
1bfb1345
DL
19072001-01-10 Dave Love <fx@gnu.org>
1908
1909 * sysdep.c (random): Revert the declaration.
1910
38119822
GM
19112001-01-09 Gerd Moellmann <gerd@gnu.org>
1912
52283633
SM
1913 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
1914 Call function string_bytes.
35f464a7
GM
1915 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
1916
1917 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
1918 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
1919 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
1920 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
1921 the current sblock.
1922 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
1923 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
1924 after sweeping strings, and at the end.
1925 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
1926
38119822
GM
1927 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
1928 ensure that pop_message is called.
1929
1930 * keyboard.c (Fexecute_extended_command): Use a
1931 record_unwind_protect to ensure that pop_message is called.
1932
1933 * lisp.h (push_message_unwind): Add prototype.
1934
1935 * xdisp.c (push_message_unwind): New function.
1936
1937 * fileio.c (do_auto_save_unwind): Do the pop_message here
1938 instead of in Fdo_auto_save.
1939 (Fdo_auto_save): Don't call pop_message.
1940
f47a9ec4
KR
19412001-01-08 Ken Raeburn <raeburn@gnu.org>
1942
1943 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
1944 in inner block.
1945
a758f97d
GM
19462001-01-08 Gerd Moellmann <gerd@gnu.org>
1947
6d0afc03
GM
1948 * window.c (window_scroll_pixel_based): Adjust glyph matrices
1949 when increasing window's vscroll.
1950
a758f97d
GM
1951 * macros.c (Qkbd_macro_termination_hook): New variable.
1952 (syms_of_macros): Initialize and staticpro it.
1953 (pop_kbd_macro): Run kbd-macro-termination-hook.
1954
1955 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
1956
1bfb1345 19572001-01-07 Dave Love <fx@gnu.org>
64d4ec0f
DL
1958
1959 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
1960 arglist, for documentation's sake.
1961
0dac6924
AI
19622001-01-06 Andrew Innes <andrewi@gnu.org>
1963
1964 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
1965 of *.pdb.
1966
8182406a
AI
19672001-01-05 Andrew Innes <andrewi@gnu.org>
1968
1969 * term.c (update_end): Don't check updating_frame; for some reason
1970 this can be 0 sometimes, such as after dismissing a popup menu,
1971 and isn't necessary given the explicit frame argument.
1972
3828218c
GM
19732001-01-05 Gerd Moellmann <gerd@gnu.org>
1974
1975 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
1976 on some systems, and an unsigned long on others, like FreeBSD 4.1.
1977
2f5ded21
GM
19782001-01-04 Gerd Moellmann <gerd@gnu.org>
1979
52283633 1980 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
2f5ded21
GM
1981
1982 * xfns.c (x_create_tip_frame): Preserve the value of
1983 face_change_count around the creation of the tip frame.
52283633 1984
2f5ded21
GM
1985 * xfns.c (last_show_tip_args): New variable.
1986 (compute_tip_xy): New function.
1987 (Fx_show_tip): Reuse an existing tip frame, if possible.
1988 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
1989
dfad65fa
DL
19902001-01-04 Dave Love <fx@gnu.org>
1991
64d4ec0f
DL
1992 * editfns.c (Fformat): Doc fix.
1993
dfad65fa
DL
1994 * systime.h (set_file_times): Prototype.
1995
1996 * widget.h (EmacsFrameSetCharSize_): Prototype.
1997
1998 * sysdep.c (random, srandom): Declare explicitly.
1999
2000 * dispextern.h (move_it_vertically_backward): Declare.
2001
85fe3b5e
GM
20022001-01-04 Gerd Moellmann <gerd@gnu.org>
2003
0f2ac578
GM
2004 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
2005 like in Fx_create_frame.
2006
482cca61
GM
2007 * xfaces.c (set_font_frame_param): Don't do anything for
2008 non-graphical frames.
2009
85fe3b5e
GM
2010 * window.c (Fdelete_other_windows): Set window's window_end_valid
2011 to nil when changing the window's start. Don't change the
2012 window's start when its top position hasn't changed. If we do,
2013 this will set the window's optional_new_start, which act's like a
2014 force_start during redisplay with C-x 1 M-> under particular
2015 circumstances (see report from Per Starback to emacs-pretest-bug
2016 from 2000-12-13.).
2017
3e99d3b4
GM
20182001-01-03 Gerd Moellmann <gerd@gnu.org>
2019
a77dc1ec
GM
2020 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
2021 short cut at the start of the function. Add an assertion.
2022 (reseat_at_next_visible_line_start): Add an assertion.
2023
2f3cad6c
GM
2024 * window.c (Frecenter): When changing the window start, set the
2025 window's window_end_valid to nil.
2026 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
2027
2028 * dispextern.h (move_it_past_eol): Add prototype.
2029
2030 * xdisp.c (move_it_past_eol): New function.
2031
3e99d3b4
GM
2032 * window.c (Fwindow_end): Doc fix.
2033
20342001-01-03 Dave Love <fx@gnu.org>
2035
52283633 2036 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
3e99d3b4 2037
bafb434c
GM
20382001-01-03 Gerd Moellmann <gerd@gnu.org>
2039
2040 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
2041 the enabled_p flag of the glyph row at window_end_vpos to 0.
2042 (handle_single_display_prop): Fix last change.
2043
5297fb00
RS
20442001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2045
2046 * window.c (Frecenter): Doc fix.
2047
13d6a61c
AI
20482001-01-02 Andrew Innes <andrewi@gnu.org>
2049
2050 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
2051
2052 * frame.h (output_method): Add output_w32_console method.
2053 (FRAME_W32_CONSOLE_P): New macro.
2054
2055 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
2056 use output_w32_console method.
2057 (Qw32_console): New Lisp_Object.
2058 (Fframep): Return it.
2059 (syms_of_frame): Init it.
52283633 2060 (Fframe_parameters): Report w32console as font for w32_console frames.
13d6a61c
AI
2061
2062 * xfaces.c (realize_default_face): Set face foreground and
2063 background to unspecified for w32_console frames.
2064 (realize_face): Realize face cache for w32_console frames.
2065 (realize_tty_face): Accept w32_console frames.
2066
52283633 2067 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
13d6a61c
AI
2068 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
2069 necessary, even if running interactively.
2070
2071 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
2072 w32_console frames.
2073
52283633
SM
2074 * w32term.c (x_update_begin):
2075 (x_update_end):
2076 (x_clear_frame):
2077 (x_ins_del_lines):
2078 (x_change_line_highlight):
2079 (x_delete_glyphs):
2080 (w32_ring_bell):
2081 (x_update_begin):
2082 (x_update_end):
2083 (w32_reassert_line_highlight):
2084 (w32_frame_rehighlight):
13d6a61c
AI
2085 (w32_frame_raise_lower): Do nothing if not w32 frame.
2086
2087 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
2088
2089 * w32fns.c (Fx_display_color_cells): Determine correct value, when
2090 system doesn't tell us directly.
2091 (Fx_display_visual_class): Implement properly.
2092
d6bb0c0d
GM
20932001-01-02 Gerd Moellmann <gerd@gnu.org>
2094
2095 * window.c (Frecenter): Handle centering in graphical frames
2096 specially. Centering on the basis of line counts doesn't work
2097 reliably with variable-height lines.
52283633 2098
315f5865
EZ
20992001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
2100
2101 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
2102 and al[].
2103
52283633 2104 * composite.c (run_composition_function): Remove unused var `val'.
315f5865
EZ
2105 (update_compositions): Remove unused variable `hook'.
2106
2107 * intervals.c (get_local_map): Remove unused variable `tem'.
2108
2109 * doprnt.c (doprnt1): Remove unused variable `size'.
2110
2111 * fns.c (Flength): Remove unused variable `tail'.
2112 (Fdelete): Remove unused variable `size'.
2113
2114 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
2115 and `gcpro2'.
2116
52283633 2117 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
315f5865
EZ
2118
2119 * data.c (find_symbol_value): Remove extra 3rd argument in the
2120 call to swap_in_symval_forwarding.
2121
52283633 2122 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
315f5865
EZ
2123
2124 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
2125 (trivial_regexp_p): Remove unused variable `c'.
2126 (boyer_moore): Remove unused variable `k'.
2127
2128 * indent.c (current_column): Remove unused variable `stopchar'.
2129 (Fcompute_motion): Remove unused variable `contin'.
2130
2131 * casefiddle.c (casify_object): Remove unused variable `tolen'.
2132
2133 * dired.c (directory_files_internal): Fix a typo in a comment.
2134 Remove an unused variable `handler'.
52283633 2135 (file_name_completion): Remove unused function-scope variable `dp'.
315f5865
EZ
2136 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
2137 on BSD4_2.
2138
52283633 2139 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
315f5865
EZ
2140
2141 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
2142 and `buf'.
2143 (Fmarker_insertion_type): Remove unused variable `buf'.
2144
2145 * insdel.c (make_gap): Remove unused variable `result'.
2146
52283633 2147 * keyboard.c (record_char): Remove unused function-scope var `help'.
315f5865
EZ
2148 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
2149 (menu_bar_items): Remove unused function-scope variable `tem'.
2150
2151 * fontset.c (fontset_ref): Remove unused variable `i'.
2152 (fontset_set): Remove unused variables `j' and `tmp'.
52283633 2153 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
315f5865
EZ
2154 (make_fontset_for_ascii_face): Remove unused variable `name'.
2155 (fs_load_font): Remove unused variable `font_idx'.
52283633 2156 (fs_query_fontset): Remove unused function-local variable `fontset'.
315f5865
EZ
2157 (list_fontsets): Remove unused variable `tail'.
2158 (Fnew_fontset): Remove unused variables `family' and `registry'.
2159 (accumulate_font_info): Remove unused variable `tmp'.
2160 (Ffontset_font): Remove unused variable `id'.
2161 (syms_of_fontset): Remove unused variable `i'.
2162
2163 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
2164 to x_term_init.
2165 (lookup_image): Remove unused variable `file'.
2166 (xbm_load): Remove unused variables `bitmap_data', `height', and
2167 `width'. Remove function-local variable `i', leave the
2168 block-local one.
2169 (gif_load): Remove unused variable `inc'.
2170
52283633 2171 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
315f5865
EZ
2172 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
2173 leave only the one in the inner block.
2174
2175 * xfaces.c (face_fontset, realize_default_face): Remove unused
2176 variable `fontset'.
2177 (face_at_buffer_position): Remove unused variable `multibyte_p'.
2178
2179 * term.c (encode_terminal_code): Remove unused variable `c'.
2180
2181 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
2182 char *' instead of `char *'.
2183
2184 * category.c (Fcategory_docstring): Remove unused variable `doc'.
52283633 2185 (Fget_unused_category): Remove unused variable `docstring_vector'.
315f5865
EZ
2186 (Fchar_category_set): Remove unused variables `val', `charset',
2187 `c1' and `c2'.
2188
52283633
SM
2189 * coding.c (detect_coding_iso2022, setup_coding_system):
2190 Remove unused variable `i'.
315f5865
EZ
2191 (detect_coding_mask): Remove unused variable `idx'.
2192 (detect_coding): Remove unused variable `i'.
2193 (ccl_coding_driver): Remove unused variable `result'.
2194 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
52283633 2195 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
315f5865
EZ
2196 (encode_coding_string): Remove unused variables `gcpro1' and
2197 `saved_coding_symbol'.
2198 (Ffind_coding_systems_region_internal): Remove function-local
2199 variable args[], leave only the block-local one.
2200 (code_convert_region1): Remove unused variable `len'.
2201
2202 * charset.c (char_printable_p): Remove unused variable `chars'.
2203 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
2204 (str_to_multibyte): Remove unused variable `c'.
2205
2206 * window.c (size_window): Remove block-local variable `min_size'.
2207
2208 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
2209 `header_line_height'.
2210 (append_space, extend_face_to_end_of_line): Declare `saved_what'
2211 enum display_element_type.
2212
1a8a9daf
GM
22132001-01-02 Gerd Moellmann <gerd@gnu.org>
2214
6dde6abc 2215 * xterm.c (x_connection_closed): Catch X errors around all
52283633
SM
2216 statements that call X. Save away the error message in a local copy.
2217
1883b2c6
GM
2218 * xterm.c (x_connection_closed): Set handling_signal to 0 at
2219 the start.
2220
a13be207
GM
2221 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
2222 in or at the start of invisible text.
2223
1a8a9daf
GM
2224 * dispnew.c (update_window): Don't check_current_matrix_flags.
2225
3608c0f9
JR
22262001-01-01 Jason Rumney <jasonr@gnu.org>
2227
2228 * w32fns.c (x_figure_window_size): Do not allow new_height and
2229 new_width of frame to override specified values.
2230
abb1acc4
KH
22312000-12-30 Kenichi Handa <handa@etl.go.jp>
2232
52283633 2233 * composite.c (find_composition): Fix a code for searching backward.
abb1acc4 2234
762a68ec
GM
22352000-12-29 Gerd Moellmann <gerd@gnu.org>
2236
52283633 2237 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
9c8b8382
GM
2238 (update_window) [GLYPH_DEBUG]: Call it.
2239 (scrolling_window): Prevent including current rows which are below
2240 what's displayed in the window.
2241
2242 * xdisp.c (try_window_reusing_current_matrix)
2243 <new start <= old start>: Disable rows in the current matrix
2244 which are below the window after scrolling.
52283633 2245
762a68ec
GM
2246 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
2247 is zero. It's not worth the complexity.
2248 (invisible_text_between_p): Put in #if 0 because unused.
2249
2d5912c1
GM
22502000-12-28 Gerd Moellmann <gerd@gnu.org>
2251
46f6a258
GM
2252 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
2253 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
2254
89f93679
GM
2255 * keyboard.c (echo_char): If C is an integer, always call
2256 push_key_description. Former code could signal an invalid
2257 character error.
2258
2259 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
2260 If set, print multibyte text.
2261 (Fsingle_key_description): Call push_key_description with
2262 FORCE_MULTIBYTE set.
2263 (describe_buffer_bindings): Likewise.
2264
2265 * lisp.h (push_key_description): Add prototype.
2266
c06017fb
GM
2267 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
2268 around the call to redisplay_internal.
2269
f1d2ce7f
GM
2270 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
2271
2d5912c1
GM
2272 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
2273
9371f831
KH
22742000-12-28 Kenichi Handa <handa@etl.go.jp>
2275
2276 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
2277 (ccl_driver): New local variable `extra_bytes'.
2278
2279 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
2280
52283633
SM
2281 * coding.c (setup_coding_system):
2282 Initialize coding->spec.ccl.eight_bit_carryover.
9371f831
KH
2283 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
2284
0c80628a
KH
22852000-12-28 Kenichi Handa <handa@etl.go.jp>
2286
2287 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
2288 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
2289 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
2290 (decode_composition_emacs_mule): New function.
2291 (decode_coding_emacs_mule): Decode composition sequence by calling
2292 decode_composition_emacs_mule.
2293 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
52283633
SM
2294 (encode_coding_emacs_mule): Changed from macro to function.
2295 If a text contains compositions, encode them correctly.
0c80628a
KH
2296 (setup_coding_system): Set coding->commong_flags for emacs-mule so
2297 that decoding and encoding are required.
2298
3e32cc27
GM
22992000-12-27 Gerd Moellmann <gerd@gnu.org>
2300
5e25feee
GM
2301 * xfaces.c (PT_PER_INCH): New macro.
2302 (xlfd_point_size): Compute real point size from font's pixel size.
2303 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
2304 instead of 72.
2305
892d8fcd
GM
2306 * .gdbinit: Comment out the line pointing to the Lesstif source
2307 directory.
2308
12c8b416
GM
2309 * window.c (Frecenter): Use displayed_window_lines instead
2310 of window_internal_height.
2311
6061fbf0
GM
2312 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
2313 instead of x-toolkit-scroll-bars-p.
2314 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
2315
2316 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
2317 instead of x-toolkit-scroll-bars-p.
2318 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
52283633 2319
3e32cc27
GM
2320 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
2321 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
52283633
SM
2322 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
2323 New variables.
2324 (add_window_display_history, add_frame_display_history)
3e32cc27
GM
2325 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
2326 (build_frame_matrix_from_leaf_window): Remove unused code.
2327 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
2328 redisplay history.
2329 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
2330 (update_window) [GLYPH_DEBUG]: Likewise.
2331 (syms_of_display): Defsubr dump-redisplay-history.
2332
31798cfe
GM
23332000-12-23 Gerd Moellmann <gerd@gnu.org>
2334
f717c2ba
GM
2335 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
2336 the end of the prompt. Set echo_after_prompt to the offset
2337 of echoptr in echobuf.
2338
aeb2b8fc
GM
2339 * xdisp.c (init_from_display_pos): Pop until the iterator's
2340 stack is empty; there may be frames for stretch or images
2341 on the stack.
2342
31798cfe
GM
2343 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
2344 (save_or_restore_current_matrix): New function for the same
2345 purpose, but more efficient.
2346 (adjust_frame_glyphs_for_frame_redisplay): Use it.
2347
f8156156
EZ
23482000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
2349
2350 * xdisp.c (syms_of_xdisp): Fix last change.
2351
bdd6d4e8
GM
23522000-12-23 Gerd Moellmann <gerd@gnu.org>
2353
2354 * xdisp.c (syms_of_xdisp): Doc fix.
2355
2356 * xdisp.c (redisplay_window): Remove label restore_buffers;
2357 use finish_scroll_bars instead to make sure that scroll bars
2358 are redeemed. If we don't do this, flickering can result from
2359 scroll bars being destroyed and recreated.
2360
9436cdf9
JR
23612000-12-22 Jason Rumney <jasonr@gnu.org>
2362
2363 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
2364 in the wrong colors when the foreground is not black.
2365 (expose_window): Don't redraw the window that's currently being
2366 updated.
2367
951f9df5
GM
23682000-12-22 Gerd Moellmann <gerd@gnu.org>
2369
856ff7a7
GM
2370 * window.c (size_window): When setting the window's too_small_ok
2371 flag, compare old size with minimum size depending on WIDTH_P,
2372 don't compare with window_min_width.
52283633 2373
951f9df5
GM
2374 * window.c (delete_window): Simplify somewhat.
2375 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
2376 freeing window matrices. The flag windows_or_buffers_changed is
2377 set, so the next redisplay will consider all windows; this should
2378 suffice.
2379
886bc933
KH
23802000-12-22 Kenichi Handa <handa@etl.go.jp>
2381
2382 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
2383
2384 * ccl.h (struct ccl_program): New member cr_consumed.
2385
2386 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
2387 (CCL_READ_CHAR): Handle EOL conversion here.
2388 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
2389
177f4e88
GM
23902000-12-21 Gerd Moellmann <gerd@gnu.org>
2391
52283633 2392 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
6ba384dc
GM
2393
2394 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
2395 otherwise tabs of different size compare equal.
2396
2397 * callint.c (Fcall_interactively): Prevent a compiler warning.
2398
2399 * print.c (print_unwind): Return nil.
2400 (PRINTDECLARE): Initialize all local variables.
2401 (print_preprocess): Add a default case.
2402
8e15274f
GM
2403 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
2404
2405 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
2406
52283633 2407 * window.c (delete_window, Fsplit_window)
177f4e88
GM
2408 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
2409
2410 * dispextern.h (ensure_frame_matrix): Function declaration removed.
2411
2412 * dispnew.c (ensure_frame_matrix): Removed.
2413 (save_frame_matrix, restore_frame_matrix): New functions.
2414 (adjust_frame_glyphs_for_frame_redisplay): Use them.
2415
2416 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
2417 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
2418
99012074
AI
24192000-12-21 Andrew Innes <andrewi@gnu.org>
2420
2421 * w32term.c (x_update_begin): Regenerate the palette here, rather
2422 than for each window.
2423
2424 * w32xfns.c (select_palette): Avoid calling SelectPalette if
2425 palette is NULL, since this corrupts memory! Also get
2426 display_info reference from frame.
2427
29ef7d2d
JR
24282000-12-21 Jason Rumney <jasonr@gnu.org>
2429
2430 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
2431
2432 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
2433 to avoid returning without releasing it.
3e27fa1f 2434
3f9d67a6
KH
24352000-12-21 Kenichi Handa <handa@etl.go.jp>
2436
587fc3f9
KH
2437 * keymap.c (push_key_description): Don't convert eight-bit-control
2438 and eight-bit-graphic to multibyte character.
2439
3f9d67a6
KH
2440 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
2441 generic character and CODE1 is nil, return the smallest character
2442 in CHARSET.
2443
774ba8c9
DL
24442000-12-20 Dave Love <fx@gnu.org>
2445
2446 * s/osf5-0.h (NSIG): Don't redefine.
2447
88416888
SM
24482000-12-20 Stefan Monnier <monnier@cs.yale.edu>
2449
2450 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
2451 excluding menu-bar and tool-bar.
2452 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
2453 (menu_item_p): Remove.
2454 (where_is_internal_1): Don't ignore menu-items.
2455
a6426c6f
GM
24562000-12-20 Gerd Moellmann <gerd@gnu.org>
2457
03ff8aab
GM
2458 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
2459 into account.
2460
2461 * window.c (make_window): Initialize window's min_hscroll.
2462 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
2463 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
2464 to zero.
2465 (struct saved_window): New member min_hscroll.
2466 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
2467 (Fset_window_configuration): Set window's min_hscroll.
2468 (save_window_save): Save window's min_hscroll.
2469 (compare_window_configurations): Compare min_hscroll values.
2470
2471 * window.h (struct window): New member min_hscroll.
2472
2473 * keyboard.c (echo_prompt): Prevent a compiler warning.
2474
8de4aaf8
GM
2475 * xdisp.c (try_cursor_movement): Fix last change. The real
2476 condition is that PT is at the end of the row, and should
2477 be displayed at the start of the next row.
52283633 2478
3f7e3031
GM
2479 * xdisp.c (try_cursor_movement): If we end on a partially
2480 visible line, end we already decided to scroll, return -1.
2481
a6426c6f
GM
2482 * dispextern.h (ensure_frame_matrix): Add prototype.
2483
2484 * window.c (delete_window, Fsplit_window)
2485 (Fset_window_configuration): Call ensure_frame_matrix.
2486
52283633
SM
2487 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
2488 New functions.
a6426c6f
GM
2489 (adjust_frame_glyphs_for_frame_redisplay): If display has been
2490 completed, call fake_current_matrices instead of marking frame
2491 garbaged.
2492
57fa2774
JR
24932000-12-20 Jason Rumney <jasonr@gnu.org>
2494
2495 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
2496
d925df90
EZ
24972000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
2498
2499 * fns.c (Frequire): Doc fix.
2500
7b93a85b
GM
25012000-12-19 Gerd Moellmann <gerd@gnu.org>
2502
52283633 2503 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
71d4497a 2504
c74e645b
GM
2505 * dispnew.c (direct_output_for_insert): Fix check for mini-window
2506 currently displaying a message.
2507
7b93a85b
GM
2508 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
2509 xterm.h.
2510 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
2511
90d97e64
AI
25122000-12-18 Andrew Innes <andrewi@gnu.org>
2513
2514 * w32.c (w32_strerror): New function.
2515
2516 * w32.h (w32_strerror): New extern.
2517
2518 * w32fns.c (Fw32_shell_execute): Use it.
2519
91c9e6ce
GM
25202000-12-18 Gerd Moellmann <gerd@gnu.org>
2521
2522 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
2523
6f4745e2
EZ
25242000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
2525
2526 * msdos.c (IT_set_face): Obey inverse_video.
2527
c9e088ce
KH
25282000-12-18 Kenichi Handa <handa@etl.go.jp>
2529
2530 * dired.c (directory_files_internal): Always return decoded filenames.
2531
c3695f5f
GM
25322000-12-18 Gerd Moellmann <gerd@gnu.org>
2533
52d8e4ff
GM
2534 * xterm.c (x_connection_closed): Prevent being called recursively
2535 because of an error condition in XtCloseDisplay.
52283633 2536
62be9979
GM
2537 * xdisp.c (init_iterator): If noninteractive, and the frame's
2538 face cache is null, make one.
2539
52283633 2540 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
5f7a1890 2541
c3695f5f
GM
2542 * process.c (wait_reading_process_input): Check for pending
2543 input when running timers.
2544
78555fbe
EZ
25452000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
2546
52283633 2547 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
78555fbe 2548
b2b36264
KH
25492000-12-18 Kenichi Handa <handa@etl.go.jp>
2550
2551 * process.c (read_process_output): Don't run a filter if the code
2552 decoder produces nothing but carryover.
2553
9c543fbf
AI
25542000-12-17 Andrew Innes <andrewi@gnu.org>
2555
2556 * w32.c (sys_rename): Only check errno against EEXIST, and not
2557 EACCES, when determining whether rename failed because the target
2558 exists. This was resulting in indefinite looping on Windows 9x if
2559 the source file was locked by another process.
2560
2561 * w32fns.c (Ffile_system_info): New function.
2562 (syms_of_w32fns): Defsubr it.
2563
10c2b5a8
GM
25642000-12-17 Gerd Moellmann <gerd@gnu.org>
2565
b0228ace
GM
2566 * window.c (coordinates_in_window): Fix computation for
2567 position on vertical line between mode lines.
2568
10c2b5a8
GM
2569 * xfns.c (unwind_create_frame): Return t if frame was deleted.
2570 Don't alter tip_frame or tip_window.
2571 (unwind_create_tip_frame): Set tip_frame to nil only if frame
2572 was deleted.
2573
c844a81a
GM
2574 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
2575 Don't alter tip_frame or tip_window.
2576 (unwind_create_tip_frame): Set tip_frame to nil only if frame
2577 was deleted.
2578
6c825f8e
EZ
25792000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
2580
2581 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
2582 be consistent with the doc string. Reported by NAKAJIMA Mikio
2583 <minakaji@osaka.email.ne.jp>.
2584
af4bb4c8
KH
25852000-12-16 Kenichi Handa <handa@etl.go.jp>
2586
2587 * xfaces.c (Vface_ignored_fonts): New variable.
2588 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
2589 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
2590
8062e53a
GM
25912000-12-15 Gerd Moellmann <gerd@gnu.org>
2592
e87b8809
GM
2593 * dispnew.c (update_window): Detect pending input every nth line
2594 updated, i.e. do it depending on real work done, and not on the
2595 vpos of the line.
2596
2597 * xterm.c (expose_window): Don't redraw the window that's
2598 currently being updated.
2599
a6768cc5
GM
2600 * window.c (Fset_window_point): Remove test for
2601 cursor_in_non_selected_windows.
2602
4ea7fdca
GM
2603 * lread.c (read1): Recognize end of file after `\\'.
2604
8062e53a
GM
2605 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
2606 not unwind_create_frame.
2607
bb7959c1
GM
26082000-12-15 Dave Love <fx@gnu.org>
2609
2610 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
2611 bcopy & al.
2612
2613 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
2614
ced04c42
KH
26152000-12-15 Kenichi Handa <handa@etl.go.jp>
2616
c5443913
KH
2617 * coding.c (setup_coding_system): Clear all members of the struct
2618 coding_system at first.
bc137305
KH
2619 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
2620 argument.
2621 (code_convert_region): Don't override coding->src_multibyte and
2622 coding->dst_multibyte.
c5443913 2623
ced04c42
KH
2624 * fns.c (Fmd5): Docstring improved.
2625
c2d7f289
MB
26262000-12-15 Miles Bader <miles@gnu.org>
2627
2628 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
2629 are actually marked as mode-lines; otherwise use
2630 estimate_mode_line_height.
2631
9d7d9263
GM
26322000-12-14 Gerd Moellmann <gerd@gnu.org>
2633
2634 * editfns.c (Fformat): Prevent a buffer overrun when the format
2635 specifies a precision.
2636
7cf0153a
EZ
26372000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
2638
2639 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
2640 argument is outside the range [2..3].
2641
1de0f662
AI
26422000-12-14 Andrew Innes <andrewi@gnu.org>
2643
2644 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
2645 nothing to do. Bind inhibit-quit.
2646 (tip_frame): Make it a Lisp_Object.
2647 (x_create_tip_frame): Set tip_frame after it has been added to
2648 Vframe_list.
2649 (Fx_show_tip): Don't set tip_frame here.
52283633 2650 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
1de0f662
AI
2651 (unwind_create_frame, unwind_create_tip_frame): New functions.
2652 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
2653 while a frame is only partially constructed.
2654
2655 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
2656 (x_free_frame_resources): New function.
2657 (x_destroy_window): Use it.
2658
02387dcc
GM
26592000-12-14 Gerd Moellmann <gerd@gnu.org>
2660
2661 * xfns.c (Fx_backspace_delete_keys_p): New function.
2662 (syms_of_xfns): Defsubr it.
2663
2664 * config.in (HAVE_XKBGETKEYBOARD): Add.
2665
0544ef49
KH
26662000-12-14 Kenichi Handa <handa@etl.go.jp>
2667
98d62747
KH
2668 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
2669 Always store string in multibyte representation in echobuf.
2670 (echo_char): Always store string in multibyte representation in
2671 echobuf.
2672 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
2673 (read_key_sequence): Adjusted for the change of echo_prompt.
2674
a20193cd
KH
2675 * fns.c (Fmd5): Docstring improved.
2676
191b83b6
KH
2677 * lisp.h (detect_coding_system): Prototype adjusted.
2678
0544ef49
KH
2679 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
2680 (detect_coding_emacs_mule, detect_coding_iso2022,)
2681 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
52283633
SM
2682 (detect_coding_utf_16, detect_coding_ccl): Make them static.
2683 New argument MULTIBYTEP. Callers changed.
0544ef49
KH
2684 (detect_coding_mask, detect_coding_system): New argument
2685 MULTIBYTEP. Callers changed.
1da1bb05
KH
2686 (decode_coding_string): Set coding->src_multibyte and
2687 coding->dst_multibyte before calling detect_coding and detect_eol.
2688 Update them after some coding system is detected.
52283633 2689
d5b3eb1b
SM
26902000-12-13 Stefan Monnier <monnier@cs.yale.edu>
2691
2692 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
2693
2694 * keyboard.c (menu_bar_items, tool_bar_items):
2695 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
2696
f7f8bb69
GM
26972000-12-13 Gerd Moellmann <gerd@gnu.org>
2698
52283633 2699 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
19f71add
GM
2700 New variables.
2701 (unwind_create_frame, unwind_create_tip_frame): New functions.
2702 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
2703 while a frame is only partially constructed.
2704
2705 * xterm.h (x_free_frame_resources): Declare.
2706
2707 * xterm.c (x_free_frame_resources): New function.
2708 (x_destroy_window): Use it.
2709
e10da507
GM
2710 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
2711 don't interrupt the update for pending input initially, i.e.
2712 update at least some lines.
2713
2714 * keyboard.c (do_mouse_tracking): Make externally visible.
52283633 2715
d5b3eb1b 2716 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
f7f8bb69
GM
2717
2718 * xfns.c (gray_bitmap_bits): Declare `char *'.
2719
90aa2856
GM
27202000-12-12 Gerd Moellmann <gerd@gnu.org>
2721
2722 * xdisp.c (display_tool_bar_line): Make sure that tool bar
2723 lines start with a relief line.
2724
a308c9cd
DL
27252000-12-12 Dave Love <fx@gnu.org>
2726
2727 * window.c (Fdisplay_buffer): Doc fix.
2728 (Fwindow_list): Remove unused var.
2729
2730 * buffer.h (mmap_set_vars): Declare.
2731
2732 * window.h (Fset_window_point): Declare.
2733
d575011f
EZ
27342000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
2735
bf6282d2 2736 * msdos.c (fast_find_position): Don't overstep the last window row.
52283633
SM
2737 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
2738 variable `area'. When looking for a row under (X,Y), give up if some
2739 of the previous rows is not enabled.
d575011f 2740
ecf4d726
GM
27412000-12-12 Gerd Moellmann <gerd@gnu.org>
2742
2ebf6139
GM
2743 * window.c (Fset_window_point): If displaying cursors in windows
2744 other than the selected window, make sure redisplay updates
2745 other windows to show the new value of point in the window.
2746
2747 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
2748
bfdb75ee
GM
2749 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
2750 the buffer is the sole visible buffer when in the mini-buffer.
2751
52283633 2752 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
4fdbd809
GM
2753 Bind `inhibit-read-only' to t.
2754 (unwind_with_echo_area_buffer): Use AREF.
2755
c0006262
GM
2756 * xfns.c (Fx_hide_tip): Simplified.
2757
52283633
SM
2758 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
2759 instead of `1'.
e9a59cad 2760
ecf4d726
GM
2761 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
2762
e5959a9a
GM
27632000-12-11 Gerd Moellmann <gerd@gnu.org>
2764
a3642e49 2765 * xfns.c (Fx_hide_tip): Fix last change.
52283633 2766
44b5a125
GM
2767 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
2768 nothing to do. Bind inhibit-quit.
2769 (tip_frame): Make it a Lisp_Object.
2770 (x_create_tip_frame): Set tip_frame after it has been added to
2771 Vframe_list.
2772 (Fx_show_tip): Don't set tip_frame here.
2773
2774 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
2775
2776 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
2777 Lisp_Object.
2778
2779 * dispextern.h: Change external declaration of tip_frame.
2780
d990421f
GM
2781 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
2782 return an empty string.
2783
4db87380
GM
2784 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
2785 of the window's update_mode_line flag, since the former is set by
2786 force-mode-line-update, not the latter. This makes
2787 column-number-mode slightly faster.
52283633 2788
e5959a9a
GM
2789 * xdisp.c (try_window_id) <all changes above window start>:
2790 Set the cursor.
2791
169fe44e
GM
27922000-12-11 Paul Eggert <eggert@twinsun.com>
2793
2794 * config.in (HAVE_FTELLO): Remove.
2795 (HAVE_FSEEKO): Add.
2796 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
2797 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
2798 HAVE_FTELLO.
2799 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
2800 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
52283633 2801
59ec59ae
MB
28022000-12-11 Miles Bader <miles@gnu.org>
2803
2804 * window.c (displayed_window_lines): Don't round up when
2805 converting empty space at bottom to lines.
ff904dd6
MB
2806 Handle non-newline-terminated final lines properly.
2807 (Fwindow_text_height): New function (used to be in lisp).
2808 (syms_of_window): Initialize it.
59ec59ae 2809
42ebfa31
SM
28102000-12-09 Stefan Monnier <monnier@cs.yale.edu>
2811
2812 * syntax.c (scan_lists): Check that the right quote char has the
2813 right Sstring syntax when jumping over strings.
2814 (init_syntax_once): Use Smax rather than 13.
2815
5cdb3cf3
MB
28162000-12-09 Miles Bader <miles@gnu.org>
2817
2818 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
2819 with PARTIALLY, inverting the sense.
2820 (window_scroll_pixel_based): Scroll partially visible lines into
2821 place if we hit the beginning or end of the buffer.
a12167c5
MB
2822 (displayed_window_lines): Don't include partially visible lines.
2823 (Fmove_to_window_line): Skip past any partially visible first line.
5cdb3cf3 2824
842b2a94
GM
28252000-12-08 Gerd Moellmann <gerd@gnu.org>
2826
2827 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
2828
2829 * tparam.c (tparam1): Change the way buffers are reallocated to be
2830 portable and less obfuscated.
2831
2832 * termcap.c (tgetent): Change the way buffers are reallocated to
2833 be portable and less obfuscated.
2834
2835 * macros.c (store_kbd_macro_char): Change the way buffers are
2836 reallocated to be portable and less obfuscated.
2837
2838 * lread.c (read1): Change the way buffers are reallocated to be
2839 portable and less obfuscated.
2840
2841 * doc.c (Fsubstitute_command_keys): Change the way buffers
2842 are reallocated so that it is portable.
2843
137cad7c
EZ
28442000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
2845
2846 * dosfns.c (Ffile_system_info): New function.
2847 (syms_of_dosfns): Defsubr it.
2848
5c7f629c
SM
28492000-12-07 Stefan Monnier <monnier@cs.yale.edu>
2850
2851 * alloc.c (gc_sweep): Add comment.
2852
959e647d
GM
28532000-12-07 Gerd Moellmann <gerd@gnu.org>
2854
52283633
SM
2855 * sound.c (vox_configure): Change order of ioctls.
2856 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
28fcb7dc
GM
2857 Ignore errors when changing volume.
2858 (vox_close): Don't reset the device.
2859
926b7e5e
GM
2860 * process.c (read_process_output): Make sure the process marker's
2861 position is valid when the process buffer is changed in
2862 after-change functions. W3 does that.
52283633 2863
959e647d
GM
2864 * xfns.c (x_free_gcs): New function.
2865
2866 * xterm.h (x_free_gcs): Add prototype.
2867
2868 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
2869 freeing GCs here.
2870
2871 * xterm.c (x_destroy_window): Call x_free_gcs so that
2872 resources of non-toolkit X windows will be freed.
2873
478ea067
AI
28742000-12-07 Andrew Innes <andrewi@gnu.org>
2875
2876 * w32fns.c (xlfd_charset_of_font): Fix last change.
2877
fbee3231
DL
28782000-12-06 Dave Love <fx@gnu.org>
2879
67292061
DL
2880 * md5.h (__P): Don't define -- it comes from config.h.
2881
fbee3231
DL
2882 * strftime.c: Change some #if foo to #ifdef foo.
2883
4ee87dbb
AI
28842000-12-06 Andrew Innes <andrewi@gnu.org>
2885
2886 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
2887
52283633 2888 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
4ee87dbb 2889 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
52283633 2890 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
4ee87dbb 2891
9765b4a4
GM
28922000-12-06 Gerd Moellmann <gerd@gnu.org>
2893
d285b373
GM
2894 * alloc.c (gc_sweep): Prevent symbols read during loadup
2895 from being freed.
2896
384333ee
GM
2897 * xdisp.c (underlying_face_id): New function.
2898 (handle_face_prop, face_before_or_after_it_pos): Use it
2899 to determine the face ``under'' a string. Let strings inherit
2900 the face of the buffer under them.
2901
2902 * xfaces.c (face_at_string_position): Update function comment.
52283633 2903
d4b72d58
GM
2904 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
2905 matrix if the window's left position has changed; we need to
2906 redraw it in this case.
2907
2908 * dispextern.h (struct glyph_matrix): Add member window_left_x.
2909
e1d05387
GM
2910 * window.c (coordinates_in_window): Check mouse on mode-line or
2911 header-line first.
2912
eb1b0c74
GM
2913 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
2914 advertized by the function documentation.
2915
d94d636f
GM
2916 * window.c (syms_of_window): Doc fix.
2917
3887b449
GM
2918 * sound.c (vox_configure): Set volume for left and right channel.
2919 (sound_cleanup): Return nil.
2920
efc8f57a
GM
2921 * xdisp.c (move_it_by_lines): Fix paren typo.
2922
9765b4a4
GM
2923 * xterm.c (x_load_font): Don't use the font's max_bounds for
2924 computing the height of the font. If max_bounds' ascent or
2925 descent are greater than the font's ascent or descent, this means
2926 glyphs overlap, which should be handled now by redisplay.
2927
6529ed87
GM
2928 * window.c (Veven_window_heights): New variable.
2929 (syms_of_window): DEFVAR_LISP it.
2930 (Fdisplay_buffer): Check Veven_window_heights before evening the
2931 window heights.
52283633 2932
0eb2ecde
MB
29332000-12-06 Miles Bader <miles@gnu.org>
2934
2935 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
2936 update `default-frame-alist' instead of setting no frame parameters.
2937
03d7a167
KH
29382000-12-06 Kenichi Handa <handa@etl.go.jp>
2939
2940 * composite.c (update_compositions): Fix typo (use the correct
2941 variable).
2942
5f8803c2
JR
29432000-12-05 Jason Rumney <jasonr@gnu.org>
2944
2945 * md5.h: Remove underscores from function declarations.
2946 (__attribute__, __alignof__) [!__GNUC__]: Define.
2947
2948 * md5.c: Delay include of md5.h until after namespace cleaning.
2949
c28a075b
JR
2950 * makefile.w32-in (fns.o): Depend on md5.h
2951 (md5.o): New target.
2952 (sunfns.o): Remove.
2953
2954 * makefile.nt: Likewise.
2955
ff3c7056
JR
29562000-12-05 Jason Rumney <jasonr@altavista.net>
2957
2958 * w32term.c (expose_area): Complete last change.
2959
0c21eeeb
KR
29602000-12-05 Ken Raeburn <raeburn@gnu.org>
2961
2962 * minibuf.c: Include intervals.h.
2963
f201d732
JR
29642000-12-05 Jason Rumney <jasonr@gnu.org>
2965
2966 * w32term.c (x_produce_glyphs): If a font for a component of
2967 a composition is not found, use 1 pixel dot ascent and 0 dot
2968 descent value to avoid displaying terribly tall empty boxes.
2969 (expose_area): Pass x-coordinate relative to the exposed
2970 area to x_draw_glyphs instead of a window-relative coordinate.
2971
21999ab9
GM
29722000-12-05 Gerd Moellmann <gerd@gnu.org>
2973
4d2036e4
GM
2974 * xdisp.c (next_element_from_ellipsis): Save face before selective
2975 display in saved_face_id, and set face_before_selective_p.
2976 (reseat_1): Reset face_before_selective_p.
2977 (append_space, extend_face_to_end_of_line): If iterator's
2978 face_before_selective_p is set, use the face from saved_face_id.
2979 (extend_face_to_end_of_line): For tty frames, make sure to
2980 use the right face id when producing spaces at the end of
2981 the line.
2982
2983 * dispextern.h (struct it): Add face_before_selective_p.
2984
52be17cc
GM
2985 * keyboard.c (record_char): Don't record identical help-echo
2986 events in recent_keys.
2987
8a4f36cc
GM
2988 * xterm.c [USE_X_TOOLKIT]: Close the display.
2989 (xim_close_dpy): Handle case that the display has been closed.
2990
57d6e381
GM
2991 * xterm.c (x_destroy_window): Reset the frame's X window after
2992 destroying it.
2993
21999ab9
GM
2994 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
2995 variable window_width.
2996 (line_draw_cost): Fix code skipping over spaces at the end of the
2997 line when must_write_spaces is not set.
2998 (scrolling_window): Fix code inserting runs in list of all runs.
2999
91372bb7
KH
30002000-12-05 Kenichi Handa <handa@etl.go.jp>
3001
3002 * coding.c (setup_coding_system): Be sure to initialize
3003 coding->category_idx.
3004
6c083b4c
GM
30052000-12-04 Gerd Moellmann <gerd@gnu.org>
3006
0c68ce6f 3007 * xterm.c (PER_CHAR_METRIC): Removed because not used.
52283633 3008
6452929e
GM
3009 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
3010 area to x_draw_glyphs instead of a window-relative coordinate.
3011
d7f31e22
GM
3012 * fileio.c (auto_save_error): Add parameter ERROR. Show the
3013 error in the message.
3014
ae18aa3b
GM
3015 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
3016 timer after having read a key. It's not good for code reading
3017 several keys in a loop, like an input method.
3018
caa15ef7
GM
3019 * fileio.c (Finsert_file_contents): When VISIT is t, don't
3020 record undo information for format-decode.
3021
3022 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
3023 current buffer is read-only, not if it isn't.
3024
6c083b4c
GM
3025 * keyboard.c (record_char): Record `help-echo' input events
3026 in recent_keys only if they display some help. Don't record
3027 `help-echo' events as macro char.
3028
caa15ef7
GM
30292000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
3030
3031 * editfns.c (save_excursion_restore): Don't move point
3032 in another window if it is showing the wrong buffer.
3033 Avoid the call to Fwindow_live_p, for speed.
3034
5a13529b
KH
30352000-12-04 Kenichi Handa <handa@etl.go.jp>
3036
e225faa7
KH
3037 * xfaces.c (struct font_name): New member registry_priority.
3038 (split_font_name): Initialize the above member to zero.
3039 (concat_font_list): New function.
3040 (font_list): Include fonts of all alternative registries.
3041 (FONT_POINT_SIZE_QUANTUM): New macro.
3042 (better_font_p): Ignore point size difference less than
3043 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
3044
e89648b4
KH
3045 * xterm.c (x_produce_glyphs): If a font for a component of
3046 a composition is not found, use 1 pixel dot ascent and 0 dot
3047 descent value to avoid displaying terribly tall empty boxes.
3048
5a13529b
KH
3049 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
3050
d7935eb6
KR
30512000-12-03 Ken Raeburn <raeburn@gnu.org>
3052
3053 * coding.h (code_convert_string1): Declare.
3054
3055 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
3056
52283633 3057 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
d7935eb6 3058
0dd5e255
JR
30592000-12-02 Jason Rumney <jasonr@gnu.org>
3060
3061 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
3062 correctly for single byte character case.
3063 (w32_per_char_metric): Do not try to make any assumptions about
3064 the metrics of BDF fonts.
250cfece 3065 (x_estimate_mode_line_height): If `mode-line' face
52283633 3066 hasn't a font, use that of the frame, as drawing glyphs does.
250cfece
JR
3067 (note_mouse_highlight): Change the cursor shape on the vertical
3068 border between windows [not enabled].
3069
3070 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
3071
3072 * w32fns.c (Fx_create_frame): Reintroduce the call to
3073 face-set-after-frame-defaults.
3074 (Vx_window_horizontal_drag_shape): New variable.
3075 (syms_of_xfns): DEFVAR_LISP it.
3076 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
3077 enabled].
0dd5e255 3078
b5d8d2ca
GM
30792000-12-02 Simon Josefsson <simon@josefsson.org>
3080
3081 * fns.c (Fmd5): Use a different logic to decide the coding system
3082 to use.
3083
3084 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
3085
fbb87147
EZ
30862000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
3087
52283633 3088 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
fbb87147 3089
447e9da0
GM
30902000-12-01 Gerd Moellmann <gerd@gnu.org>
3091
7708ced0
GM
3092 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
3093 height for YNegative.
3094 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
3095 height; also see comment there.
3096
447e9da0
GM
3097 * window.c (coordinates_in_window): Handle computations for
3098 positions on the vertical bar and fringes differently for
3099 window-system frames. Consider some pixels near the vertical bar
3100 as on the bar if the frame doesn't have vertical scroll bars.
3101 Associate positions between mode or header lines with the
3102 right window, the left one.
3103
86d1db20
JR
31042000-12-01 Jason Rumney <jasonr@gnu.org>
3105
3106 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
3107
3108 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
3109 invalid frame.
3110
a1d58e5b
GM
31112000-12-01 Gerd Moellmann <gerd@gnu.org>
3112
52283633 3113 * window.c (struct saved_window): Add members orig_top and orig_height.
a1d58e5b
GM
3114 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
3115 (save_window_save, Fset_window_configuration): Save/restore
3116 window's orig_top and orig_height.
3117
89c609af
JR
31182000-12-01 Jason Rumney <jasonr@gnu.org>
3119
4d177746 3120 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
86d1db20 3121
89c609af
JR
3122 * w32fns.c (x_set_cursor_color): Fix last change.
3123
eccc05db
GM
31242000-11-30 Gerd Moellmann <gerd@gnu.org>
3125
31b6671b
GM
3126 * xdisp.c (echo_area_display): If cursor is in the echo area, make
3127 sure that the next redisplay displays the minibuffer, so that
3128 the cursor will be replaced with what the minibuffer wants.
3129
eccc05db
GM
3130 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
3131 #ifndef instead of using #if.
3132 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
3133 USE_TOOLKIT_SCROLL_BARS is defined.
3134
162de750
JR
31352000-11-30 Jason Rumney <jasonr@gnu.org>
3136
3137 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
3138 x_display_cursor.
3139
693c4692
GM
31402000-11-30 Gerd Moellmann <gerd@gnu.org>
3141
3142 * fns.c (Fmd5): Doc fix.
3143
b5d8d2ca 31442000-11-30 Simon Josefsson <simon@josefsson.org>
edfb795e
GM
3145
3146 * fns.c (Fmd5): New function.
3147 (syms_of_fns): Defsubr md5.
3148
3149 * Makefile.in (obj): Add md5.o
3150
b02cd40b
GM
31512000-11-30 Gerd Moellmann <gerd@gnu.org>
3152
edfb795e
GM
3153 * md5.h, md5.c: New files, taken from glibc.
3154
df3aedcf
GM
3155 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
3156
b02cd40b 3157 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
52283633 3158 hasn't a font, use that of the frame, as drawing glyphs does.
b02cd40b 3159
8b5176cd
SM
31602000-11-29 Stefan Monnier <monnier@cs.yale.edu>
3161
3162 * eval.c (Frun_hooks): Allow 0 arguments.
3163
346598f1
GM
31642000-11-29 Gerd Moellmann <gerd@gnu.org>
3165
f9396e03
GM
3166 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
3167 is over the menu bar widget, say it's not on the frame.
3168
4a967a9b
GM
3169 * xfns.c (Fx_create_frame): Reintroduce the call to
3170 face-set-after-frame-defaults.
3171
346598f1
GM
3172 * eval.c (Fsignal): Reset handling_signal.
3173
222456a1
JR
31742000-11-28 Jason Rumney <jasonr@gnu.org>
3175
3176 * w32menu.c (add_menu_item): Reset menu item text when changing
3177 type to radio button.
3178
8049ddc0
GM
31792000-11-28 Gerd Moellmann <gerd@gnu.org>
3180
346598f1 3181 * xselect.c: Update copyright.
f4f4ee4d 3182
bebe4a2c
GM
3183 * window.c (coordinates_in_window): If on a mode or header line,
3184 but sufficiently close to its start, return ``on vertical
3185 border''. This gives us a way to drag windows horizontally when
3186 using toolkit scroll bars.
3187
3188 * xterm.c (note_mouse_highlight): Change the cursor shape
3189 on the vertical border between windows.
3190
3191 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
3192
3193 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
3194 (syms_of_xfns): DEFVAR_LISP it.
3195 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
3196
8d2c2642
GM
3197 * textprop.c (text_read_only): New function.
3198 (verify_interval_modification): Use it instead of signaling
3199 `text-read-only'. This makes it easier to catch this error
52283633 3200 with a breakpoint.:
8d2c2642 3201
52283633 3202 * xdisp.c (forward_to_next_line_start): Check for newlines,
8049ddc0
GM
3203 not end of line, which includes CR.
3204
5a2bae6c
KH
32052000-11-28 Kenichi Handa <handa@etl.go.jp>
3206
3207 * coding.c (Ffind_coding_systems_region_internal): Be sure to
3208 include no-conversion.
3209
ae31f84d
JR
32102000-11-27 Jason Rumney <jasonr@gnu.org>
3211
3212 * w32fns.c (w32_load_system_font): Always mark font as double byte
3213 if codepage is unicode.
3214
67f1cf4c
GM
32152000-11-27 Gerd Moellmann <gerd@gnu.org>
3216
4a74d071 3217 * xdisp.c (forward_to_next_line_start): If already on a newline,
52283633 3218 just consume it to avoid unintended skipping over invisible text below.
4a74d071 3219
902ae620
GM
3220 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
3221 `vertical-line', `mode-line' and `header-line' events.
3222
3223 * xdisp.c (try_window_id): Avoid starting to display in the middle
67f1cf4c
GM
3224 of a character, a TAB for instance. This is easier than to set
3225 up the iterator exactly, and it's not a frequent case, so the
3226 additional effort wouldn't really pay off.
3227
c1e279c2
AC
32282000-11-26 Andrew Choi <akochoi@i-cable.com>
3229
67f1cf4c 3230 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
c1e279c2
AC
3231 init_window_once.
3232
a609568a
JR
32332000-11-25 Jason Rumney <jasonr@gnu.org>
3234
52283633
SM
3235 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
3236 Args to window_from_coordinates should be pixel coordinates.
48b21762 3237
a609568a
JR
3238 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
3239 redisplay handles them properly.
3240
a658d039
MB
32412000-11-25 Miles Bader <miles@gnu.org>
3242
3243 * indent.c (compute_motion): Keep pos_byte in sync with pos.
3244
d3416cca
JR
32452000-11-24 Jason Rumney <jasonr@gnu.org>
3246
3247 * w32.c (init_environment): Set LANG environment variable based on
3248 locale settings, if not set.
3249
3250 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
3251 making tool bar smaller. When clearing the frame, also
3252 clear current matrices. Clear frame when tool bar disappears.
3253 Don't use more lines for the tool-bar than is available.
3254 (x_change_window_heights): New function.
3255
ba193890
GM
32562000-11-24 Gerd Moellmann <gerd@gnu.org>
3257
2be8f184
GM
3258 * xdisp.c (init_from_display_pos): If POS says we're already after
3259 an overlay string ending at POS, make sure to pop the iterator
3260 because it will be in front of that overlay string. When POS is
3261 ZV, we've thereby also ``processed'' overlay strings at ZV.
3262
ba193890
GM
3263 * xfaces.c (lface_from_face_name): Function comment fix.
3264
1862a24e
MB
32652000-11-24 Miles Bader <miles@gnu.org>
3266
3267 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
3268 apply `mode-line-inverse-video' -- zero means force display using
3269 the default face, non-zero means display using the specialized face.
3270 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
3271
f07fa1b8
KH
32722000-11-23 Kenichi Handa <handa@etl.go.jp>
3273
3274 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
3275 hard coded `4'.
3276
2bcdf662
EZ
32772000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
3278
3279 * coding.c (decode_coding_emacs_mule): Fix the case of
3280 CODING_EOL_LF, which used uninitialized value of c.
3281
ba8299ff
SM
32822000-11-23 Stefan Monnier <monnier@cs.yale.edu>
3283
3284 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
3285
f4117c4d
GM
32862000-11-22 Gerd Moellmann <gerd@gnu.org>
3287
03e757c1
GM
3288 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
3289 buffer object.
3290
f4117c4d
GM
3291 * frame.h (struct frame): Replace desired_tool_bar_items,
3292 current_tool_bar_items, n_desired_tool_bar_items,
cc362d76 3293 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
f4117c4d
GM
3294
3295 * frame.c (make_frame): Change initialization of tool bar
3296 items accordingly.
3297
3298 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
cc362d76 3299 Change references to members deleted from struct frame to use the
f4117c4d
GM
3300 new ones.
3301
3302 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
52283633 3303 references to members deleted from struct frame to use the new ones.
f4117c4d 3304
52283633 3305 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
f4117c4d
GM
3306
3307 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
3308
3309 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
cc362d76 3310 (note_tool_bar_highlight): Change references to members deleted
f4117c4d
GM
3311 from struct frame to use the new ones.
3312
f8e2f3f2
MB
33132000-11-23 Miles Bader <miles@gnu.org>
3314
3315 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
3316 the face's inverse-video attribute, rather than overriding it.
3317
60e8e0a5
GM
33182000-11-22 Gerd Moellmann <gerd@gnu.org>
3319
3320 * xfns.c (x_set_tool_bar_lines): Clear internal border when
3321 making tool bar smaller.
3322
92dd1b29
DL
33232000-11-22 Dave Love <fx@gnu.org>
3324
3325 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
3326
e672fdce
MB
33272000-11-22 Miles Bader <miles@gnu.org>
3328
3a17d6cc
MB
3329 * keyboard.c (Vminibuffer_message_timeout): New variable.
3330 (command_loop_1): Use it to determine message timeout.
3331 (syms_of_keyboard): Initialize it.
3332
60e8e0a5 3333 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
e672fdce 3334
e9655d81
KH
33352000-11-22 Kenichi Handa <handa@etl.go.jp>
3336
3337 * sysdep.c: Move the code for declaring h_errno after #include
3338 <netdb.h>.
3339
77270fac
GM
33402000-11-21 Gerd Moellmann <gerd@gnu.org>
3341
cd913aae
GM
3342 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
3343 the menu bar when the tooltip is unmapped.
3344
77270fac
GM
3345 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
3346 sole visible buffer when we're currently in the mini-buffer, and
3347 give up if so.
52283633 3348
556635d6
JR
33492000-11-21 Jason Rumney <jasonr@gnu.org>
3350
3351 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
3352 put on the clipboard.
3353 (Fw32_get_clipboard_data): Compare data on clipboard with saved
3354 copy of what Emacs last put there. If they are the same, do not
52283633 3355 use the clipboard copy to avoid losing data due to coding conversions.
556635d6 3356
5b7bde64
MB
33572000-11-22 Miles Bader <miles@gnu.org>
3358
3359 * minibuf.c (Vminibuffer_prompt_properties): New variable.
3360 (syms_of_minibuf): Initialize it.
3361 (read_minibuf): Add properties from Vminibuffer_prompt_properties
3362 to prompt, don't make read-only.
3363
ff23e1dd
GM
33642000-11-21 Gerd Moellmann <gerd@gnu.org>
3365
52283633
SM
3366 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
3367 Add BEFORE/AFTER_POTENTIAL_GC.
3c64f287 3368
7aaf4388
GM
3369 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
3370
f5f47add 3371 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 3372
ff23e1dd
GM
3373 * term.c, cm.c: Don't try to include termcap.h; see comment there.
3374
37c35586
KH
33752000-11-21 Kenichi Handa <handa@etl.go.jp>
3376
3377 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
3378 ... #endif scope.
3379
ff9ab414
GM
33802000-11-20 Gerd Moellmann <gerd@gnu.org>
3381
52283633 3382 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
c51d2b5e
GM
3383 screen supports it.
3384
29a01b72
GM
3385 * s/gnu-linux.h: Don't use `#cpu'.
3386
09dfdf85
GM
3387 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
3388 not defined in mman.h.
3389
52283633 3390 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
ff9ab414
GM
3391 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
3392 and store an index in the XClientMessageEvent. Storing a
3393 Lisp_Object or pointer can fail on a 64 bit system, since X only
3394 transfers 32 bits.
52283633
SM
3395 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
3396
81459ac9
DL
33972000-11-20 Dave Love <fx@gnu.org>
3398
3399 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
3400
56c13ae6
GM
34012000-11-20 Gerd Moellmann <gerd@gnu.org>
3402
3403 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
3404
495a6df3
KH
34052000-11-20 Kenichi Handa <handa@etl.go.jp>
3406
2bcf3714
KH
3407 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
3408 by WIDTH.
3409
495a6df3
KH
3410 * alloc.c (make_string): Fix previous change. Be sure to make
3411 unibyte string correctly.
3412
6d950f4c
GM
34132000-11-19 Gerd Moellmann <gerd@gnu.org>
3414
39b39373
GM
3415 * window.c (Fwindow_list): Change parameter list to be XEmacs
3416 compatible.
3417 (window_list_1): New function.
3418 (window_loop): Use it instead of Fwindow_list.
3419
b95b34e5
GM
3420 * sysdep.c (emacs_ospeed): New variable.
3421 (toplevel): Don't declare ospeed extern.
3422 (init_baud_rate): Use emacs_ospeed instead of ospeed.
3423
3424 * termcap.c (ospeed): Remove.
3425 (tputs) [!emacs]: Remove unused code.
3426 (tgetent): Avoid a compiler warning.
3427
e83dc917
GM
3428 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
3429 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 3430 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
3431
3432 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
3433 removed.
3434 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
3435 Take the X display as additional argument.
3436 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
3437 `Widget' is a pointer type that's not easily stored in Lisp_Object
3438 form in a portable way.
52283633 3439
6d950f4c
GM
3440 * dispnew.c (update_text_area): Fix last change.
3441
e47306e6
GM
34422000-11-18 Gerd Moellmann <gerd@gnu.org>
3443
fb3cd89b
GM
3444 * xdisp.c: Use BINDING_STACK_SIZE throughout.
3445
3446 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
3447 clear current matrices.
3448
edaa9aed
GM
3449 * buffer.c (mmap_enlarge): Don't print a message on stderr
3450 if mapping new memory at the end of the existing region fails.
3451
e47306e6
GM
3452 * dispnew.c (update_text_area): Don't skip over equal glyphs
3453 when the last current glyph overlaps the glyph to its right.
3454
509633e3
MB
34552000-11-18 Miles Bader <miles@gnu.org>
3456
3457 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
3458 lines that *end* with "..." too (that's the most common case!).
3459
d392e9c5
GM
34602000-11-18 Gerd Moellmann <gerd@gnu.org>
3461
67988445
GM
3462 * xdisp.c (resize_mini_window): Temporarily change to the
3463 mini-window's buffer if necessary.
1bfdbe43 3464
d392e9c5
GM
3465 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
3466 the tooltip obscures less text under it.
3467
34682000-11-17 Gerd Moellmann <gerd@gnu.org>
3469
3470 * puresize.h (BASE_PURESIZE): Increase to 700000.
3471
92bb977f
JR
34722000-11-18 Jason Rumney <jasonr@gnu.org>
3473
3474 * w32term.c (w32_draw_bitmap): Use face to set colors.
3475
26fbf20b
DL
34762000-11-17 Dave Love <fx@gnu.org>
3477
3478 * lread.c (Fload): Fix #ifdef for pcc.
3479
100b593b
GM
34802000-11-17 Gerd Moellmann <gerd@gnu.org>
3481
3482 * xdisp.c (pos_visible_p): Compute the default character height
3483 differently.
3484
a288d0d1
GM
34852000-11-16 Gerd Moellmann <gerd@gnu.org>
3486
cac94de6 3487 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
52283633 3488 knowing the line's height; use the default font's height in that case.
cac94de6 3489
a288d0d1
GM
3490 * xfaces.c (weight_table): Add `demi' with the same meaning as
3491 `demibold'.
3492
981fb6f6
KH
34932000-11-16 Kenichi Handa <handa@etl.go.jp>
3494
2cca872d 3495 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
3496 (clear_glyph_row): Delete local static variable null_row.
3497
e5fa381b
JR
34982000-11-15 Jason Rumney <jasonr@gnu.org>
3499
3500 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
3501 (w32_alloc_lighter_color): Use new brightness calculations from
3502 xterm.c. Scale delta to be in the range expected by W32.
3503 (w32_draw_relief_rect): Use frame relief colors.
3504
8e42f043
GM
35052000-11-15 Gerd Moellmann <gerd@gnu.org>
3506
6d133d1f
GM
3507 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
3508 (Qinhibit_default_face_x_resources): New variable.
3509 (syms_of_frame): Initialize it.
3510 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
3511
3512 * xdisp.c (pos_visible_p): Improve function comment.
3513
3514 * lisp.h (BINDING_STACK_SIZE): New macro.
3515
8e42f043
GM
3516 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
3517 reading the directory if readdir returns null and errno is EAGAIN
3518 or EINTR.
3519
e8c87124
SM
35202000-11-14 Stefan Monnier <monnier@cs.yale.edu>
3521
3522 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
3523 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
3524 Set amount_to_scroll to max of dx and scroll_step so that
3525 scroll-conservatively doesn't defeat scroll-step>1.
3526 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
3527 scroll-conservatively for line-at-a-time scrolling.
3528
5f0c971d
GM
35292000-11-14 Gerd Moellmann <gerd@gnu.org>
3530
3531 * window.c (Fpos_visible_in_window_p): Call pos_visible with
3532 extra argument.
3533
3534 * xdisp.c (current_mode_line_height, current_header_line_height):
3535 New variables.
3536 (init_xdisp): Initialize them.
3537 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
3538 and use exact mode line heights if it is set.
3539
3540 * lisp.h (pos_visible_p): Change prototype.
3541
3542 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
3543 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
3544 and current_header_line_height first.
52283633
SM
3545 (current_mode_line_height, current_header_line_height):
3546 Declare extern.
5f0c971d 3547
d7361edf
MB
35482000-11-14 Miles Bader <miles@lsi.nec.co.jp>
3549
3550 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
3551 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
3552 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
3553
ee5e440a
MB
35542000-11-14 Miles Bader <miles@gnu.org>
3555
3556 * xterm.c (x_alloc_lighter_color): Include an additive component
3557 too for dark colors, because FACTOR isn't enough.
3558 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
3559 New macros.
3560
5ca020fc
GM
35612000-11-13 Gerd Moellmann <gerd@gnu.org>
3562
3563 * keyboard.c (show_help_echo): Call message3_nolog with number of
3564 bytes in the help string as 2nd parameter, instead of the number
3565 of characters.
3566
9d348294
MB
35672000-11-13 Miles Bader <miles@gnu.org>
3568
3569 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
3570 (Fload): Use new openp return protocol.
3571 Don't try to use Vload_source_file_function to load .elc files.
3572 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
3573 openp return protocol.
3574 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
3575
1729bb9a
KH
35762000-11-11 Kenichi Handa <handa@etl.go.jp>
3577
4e677396
KH
3578 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
3579
3580 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
3581 Defined these macros.
3582 (NLIST_STRUCT): Avoid re-defining it.
3583
1729bb9a
KH
3584 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
3585 -I/usr/contrib/X11R6/include.
3586 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
3587
a82fe213
JR
35882000-11-10 Jason Rumney <jasonr@gnu.org>
3589
3590 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
3591
3592 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
3593 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
3594
3595 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
3596 (Qw32_charset_vietnamese): New symbol.
3597 (xlfd_charset_of_font): New function.
3598 (w32_load_system_font): Use it.
3599 (x_to_w32_charset): Use Fassoc to find charset info. Special case
3600 when Vw32_charset_info_alist is nil to ensure default face always
3601 has font. Use Fcar and Fcdr for safety.
3602 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
3603 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
3604 pseudo-codepages for special cases.
3605 (w32_to_x_font): New parameter to allow charset portion to be
3606 specified where there is many to one mapping. Callers changed.
3607 (w32_list_fonts): Avoid listing fonts that won't display.
3608
52d89894
GM
36092000-11-10 Gerd Moellmann <gerd@gnu.org>
3610
3611 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
3612 (font_list_1): Renamed from font_list.
3613 (font_list): New function, trying alternative registries from
3614 Vface_alternative_font_registry_alist.
3615 (Finternal_set_alternative_font_registry_alist): New function.
3616 (syms_of_xfaces): Initialize and Staticpro
52283633
SM
3617 Vface_alternative_font_registry_alist.
3618 Defsubr Finternal_set_alternative_font_registry_alist.
52d89894 3619
651cd3da
KR
36202000-11-09 Ken Raeburn <raeburn@gnu.org>
3621
3622 * lisp.h (Flooking_at): Declare.
3623
388ac098
GM
36242000-11-09 Gerd Moellmann <gerd@gnu.org>
3625
778fbc46 3626 * dired.c (directory_files_internal): Fix a braino.
52283633 3627
388ac098
GM
3628 * dired.c (directory_files_internal): Add missing GCPRO's.
3629 Some cleanup.
3630
ecaedde1
GM
36312000-11-08 Gerd Moellmann <gerd@gnu.org>
3632
f7eb32aa
GM
3633 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
3634 (resize_mini_window): Return quickly if Vresize_mini_window is
3635 nil. Don't return if Vmax_mini_window_height is nil.
3636
3637 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
3638 (syms_of_xdisp): Initialize them.
3639 (resize_mini_window): Act according to the setting of
3640 Vresize_mini_window.
3641 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
3642
ecaedde1
GM
3643 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
3644 scroll bar widget after configuring it, so that it will appear at
3645 the right position from the start.
3646 (XTredeem_scroll_bar): Cleaned up.
3647
3747ef2c
KH
36482000-11-08 Kenichi Handa <handa@etl.go.jp>
3649
3650 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 3651 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
3652 division by two.
3653
3654 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
3655
03391420
DL
36562000-11-07 Dave Love <fx@gnu.org>
3657
7758f1c1 3658 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
3659
3660 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
3661
b5de343d
GM
36622000-11-07 Gerd Moellmann <gerd@gnu.org>
3663
acad3c0b
GM
3664 * window.c (Fset_window_configuration): Don't try to preserve
3665 point in the current buffer, if that buffer is displayed in more
3666 than one window.
3667
b5de343d
GM
3668 * xfaces.c (lookup_named_face): If default face isn't realized,
3669 try to realize it. Return -1 if not successful.
3670 (Fx_list_fonts): Handle case that face cannot be determined.
3671 (Fface_font): Likewise.
3672
cdb1fe49
GM
36732000-11-06 Gerd Moellmann <gerd@gnu.org>
3674
3675 * window.c (displayed_window_lines): Detect partially
3676 visible lines at the bottom correctly.
3677
d3a67486
SM
36782000-11-06 Stefan Monnier <monnier@cs.yale.edu>
3679
3680 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
3681 when ensuring we don't do visit in indirect buffer.
3682
ff8dd5d5
KH
36832000-11-06 Kenichi Handa <handa@etl.go.jp>
3684
3685 * composite.h (compose_chars_in_text): Add prototype.
3686
3687 * composite.c (Vcomposition_function_table): New variable.
3688 (Qcomposition_function_table): New variable.
3689 (run_composition_function): Call
3690 Vcompose_chars_after_function with three arguments.
3691 (compose_chars_in_text): New function.
3692 (syms_of_composite): Modified the doc-string of
3693 Vcompose_chars_after_function. Declare composition-function-table
3694 as a lisp variable, and initialize it.
3695
3696 * xfns.c (x_encode_text): Suppress producing escape sequences for
3697 composition.
3698
3699 * xselect.c: Include composite.h.
3700 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
3701
d1145f85
AI
37022000-11-05 Andrew Innes <andrewi@gnu.org>
3703
3704 * w32term.c (x_produce_glyphs): Fix typo in enum name.
3705
3706 * sysdep.c (read_input_waiting): Remove extraneous argument to
3707 read_socket_hook.
3708
3709 * w32fns.c (Fx_server_version): Include w32_build_number in the
3710 return list.
3711
3712 * w32heap.c (w32_build_number): New variable.
3713 (cache_system_info): Set it.
3714
3715 * w32heap.h (w32_build_number): Add extern.
3716
3717 * emacs.c (syms_of_emacs): Update docstring for
3718 system-configuration, to reflect the actual usage on MS-Windows.
3719
e85ee976
GM
37202000-10-31 Gerd Moellmann <gerd@gnu.org>
3721
26dcb81b
GM
3722 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
3723 process idle timers while waiting for another event.
3724
52283633 3725 * dispnew.c (update_frame_line): Handle case where spaces in
0a894bad
GM
3726 the default face are colored.
3727
e85ee976
GM
3728 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
3729 window height hasn't changed.
3730
01b220b6
JR
37312000-10-31 Jason Rumney <jasonr@gnu.org>
3732
3733 * w32term.c (x_produce_glyphs): Handle composite characters.
3734 (x_draw_glyph_string_foreground)
3735 (x_draw_composite_glyph_string_foreground): Restore old font.
3736
4e6b7204
MB
37372000-10-31 Miles Bader <miles@lsi.nec.co.jp>
3738
3739 * minibuf.c (read_minibuf): Reset the undo history just before
3740 starting the recursive-edit.
3741
d4358b37
GM
37422000-10-30 Gerd Moellmann <gerd@gnu.org>
3743
563f68f1
GM
3744 * xfaces.c (menu_face_change_count): New variable.
3745 (Finternal_set_lisp_face_attribute): Increment it for changes
3746 of the `menu' face.
3747 (realize_basic_faces): Reflect changes in the `menu' faces
3748 in menu bars.
3749
82e274d1
GM
3750 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
3751 dy obtained from the iterator's y-position after moving from
3752 scroll_margin_pos to PT; see comment there.
52283633 3753
0dbf9fd2
GM
3754 * xdisp.c (safe_eval_handler): Call add_to_log.
3755
906b3b14
GM
3756 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
3757 is not a symbol or string.
3758
d4358b37
GM
3759 * xdisp.c (echo_area_display): Don't perform a display update from
3760 inside redisplay. The update will happen anyway at the end of
3761 redisplay, and it can confuse redisplay (GC messages while
3762 redisplaying, for instance.)
3763
70c825df
SM
37642000-10-30 Stefan Monnier <monnier@cs.yale.edu>
3765
cf9b4b0b
SM
3766 * xrdb.c (x_load_resources): Use the class name in the defaults.
3767
70c825df
SM
3768 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
3769 (regex_compile): Catch bogus \(\1\).
3770
a1d34b1e
GM
37712000-10-30 Gerd Moellmann <gerd@gnu.org>
3772
cae71efe
GM
3773 * xterm.c (x_alloc_nearest_color): Fix last change to compare
3774 RGB values.
52283633 3775
35efe0a1
GM
3776 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
3777 we have a color cache, check that the cached color equals the
3778 allocated color. If not, clear the color cache.
3779
1d3baf74
GM
3780 * window.c (displayed_window_lines): Change buffers if necessary.
3781 Fix computation of displayed lines.
3782
a1d34b1e
GM
3783 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
3784 update_menu_bindings to DEFVAR_BOOL.
3785
70737ea9
KH
37862000-10-30 Kenichi Handa <handa@etl.go.jp>
3787
70c825df 3788 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 3789
fa0cb51d
KH
3790 * puresize.h (BASE_PURESIZE): Increase to 680000.
3791
70737ea9
KH
3792 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
3793
0e4c08e8
JR
37942000-10-29 Jason Rumney <jasonr@gnu.org>
3795
3796 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
3797
3798 * w32term.c (w32_bdf_per_char_metric): Negate descent.
3799 (w32_cache_char_metrics): Handle possibility that 'x' does not
3800 exist in a BDF font.
3801 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
3802
3803 * w32bdf.h (bdffont): Add nchars.
3804
3805 * w32bdf.c (set_bdf_font_info): Set it.
3806 (w32_BDF_TextOut): Swap byte order of double byte characters.
3807 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
3808
45b84006
EZ
38092000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
3810
3811 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
3812 don't override the colors in frame's param_alist, unless they are
3813 unspecified.
3814
3815 * term.c (reassert_line_highlight): If inverse_video is non-zero,
3816 reverse the effect of the highlight flag.
3817
caf9deee
KR
38182000-10-27 Ken Raeburn <raeburn@gnu.org>
3819
3820 * window.h (Fwindow_live_p): Declare.
3821
ae0b9b46
KR
3822 * undo.c (record_delete): Check that last_undo_buffer is really a
3823 buffer before applying XBUFFER to it.
3824
3825 * keymap.c (where_is_internal): Pass lisp object, not integer, to
3826 Faref.
3827
02067692
SM
38282000-10-27 Stefan Monnier <monnier@cs.yale.edu>
3829
3830 * lisp.h (KEYMAPP): New macro.
3831 (get_keymap): Remove.
3832 (get_keymap_1): Rename get_keymap.
3833
3834 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
3835
3836 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
3837
3838 * xmenu.c (single_submenu): Use KEYMAPP.
3839 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
3840 Use KEYMAPP rather than Fkeymapp.
3841
3842 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
3843
3844 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
3845 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
3846 Use KEYMAPP rather than Fkeymapp.
3847 (single_submenu): Use KEYMAPP.
3848 (w32_menu_show, w32_dialog_show): Use TRUE.
3849
3850 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
3851
3852 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
3853 (Fkeymapp): Use KEYMAPP.
3854 (get_keymap): Rename from get_keymap_1. Remove old def.
3855 Return t when autoload=0 and error=0 and the keymap needs autoloading.
3856 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
3857 (Fminor_mode_key_binding): Don't raise an error if the binding
3858 is not a keymap.
3859 (Fuse_global_map, Fuse_local_map): Allow autoloading.
3860 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
3861
3862 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
3863 Allow Vspecial_event_map to be autoloaded.
3864 (menu_bar_items): Fetch the keymap rather than using keymapp.
3865 (menu_bar_one_keymap): No need to follow func-indirect any more.
3866 (parse_menu_item): get_keymap_1 -> get_keymap.
3867 (tool_bar_items): Fetch the keymap rather than using keymapp.
3868 (read_key_sequence): Use KEYMAPP.
3869
3870 * intervals.c (get_local_map): Use get_keymap rather than following
3871 function-indirections explicitly.
3872
3873 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
3874
f9d80af3
JR
38752000-10-27 Jason Rumney <jasonr@gnu.org>
3876
3877 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
3878 point, as Windows has oversized fonts.
3879
3880 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
3881
a3ba27da
GM
38822000-10-27 Gerd Moellmann <gerd@gnu.org>
3883
3884 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
3885 (freehook, reallochook): Handle null pointer arguments.
3886 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
3887
aa3b80cc
SM
38882000-10-27 Stefan Monnier <monnier@cs.yale.edu>
3889
3890 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
3891 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
3892 Giving in to popular pressure to shut up the compiler with casts.
3893
e24e84cc
GM
38942000-10-27 Gerd Moellmann <gerd@gnu.org>
3895
3896 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
3897 signed value, and use a default value computed from the font's
3898 maximum descent.
3899
05ea7ef2
MB
39002000-10-27 Miles Bader <miles@lsi.nec.co.jp>
3901
3902 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
3903 that specify a negative underline position can still use underlines.
3904
3905 * window.c (Fpos_visible_in_window_p): Make POS default to
3906 WINDOW's point, not the current buffer's point.
3907
0b95284b
DL
39082000-10-26 Dave Love <fx@gnu.org>
3909
3910 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
3911 when it's necessary.
3912
6c5b90af
GM
39132000-10-26 Gerd Moellmann <gerd@gnu.org>
3914
8b6d9dc9
GM
3915 * window.c (size_window): Compute size difference from sum of old
3916 child window sizes instead of from parent's size.
3917
6bc92b2e
GM
3918 * xdisp.c (pos_visible_p): Change current buffer if necessary.
3919 Handle obscured lines at the top of the window.
3920
3921 * frame.c (Fdelete_frame): Doc fix. Move running the hook
3922 down after the last error condition check.
3923
6c5b90af
GM
3924 * frame.c (Fdelete_frame): Run delete-frame-hook.
3925
42f92d4d
KH
39262000-10-26 Kenichi Handa <handa@etl.go.jp>
3927
3928 * coding.c (decode_coding): Fix previous change (check also
3929 CODING_MODE_LAST_BLOCK).
3930
d97151cb
SM
39312000-10-25 Stefan Monnier <monnier@cs.yale.edu>
3932
e7efc503
SM
3933 * regex.c: More `unsigned char' -> `re_char' changes.
3934 Also change several `int' into `re_wchar_t'.
3935 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
3936 (PUSH_FAILURE_POINTER): Don't cast any more.
3937 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
3938 We want GCC to complain, since this piece of code makes
3939 re_match non-reentrant, which *should* be fixed.
3940 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
3941 (EXTEND_BUFFER): Use RETALLOC.
3942 (SET_LIST_BIT): Don't cast.
3943 (re_wchar_t): New type.
3944 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
3945 that those two functions will always properly return.
3946 (IMMEDIATE_QUIT_CHECK): Cast to void.
3947 (analyse_first): Use recursion rather than an explicit stack.
3948 (re_compile_fastmap): Can't fail anymore.
3949 (re_search_2): Don't check re_compile_fastmap for failure.
3950 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
3951 Now also sets the new value (passed in a new argument).
3952 (re_match_2_internal): Use it.
3953 Also, use a new var `reg' of type size_t when looping through regs
3954 rather than reuse the inappropriate `mcnt'.
3955
d97151cb
SM
3956 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
3957 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
3958 (where_is_internal): Renamed from Fwhere_is_internal.
3959 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
3960 (Fwhere_is_internal): New function wrapping where_is_internal.
3961 (where_is_internal_1): Handle the case where we're filling the cache.
3962 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
3963
d5789b65
MB
39642000-10-25 Miles Bader <miles@gnu.org>
3965
3966 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
3967
4ecda532
GM
39682000-10-25 Gerd Moellmann <gerd@gnu.org>
3969
3970 * window.c (pos_fully_visible_p): Removed.
3971 (Fpos_visible_in_window_p): Use pos_visible_p to determine
3972 if position is visible and/or fully visible.
3973
3974 * lisp.h (pos_visible_p): Add prototype.
3975
3976 * xdisp.c (pos_visible_p): New function.
3977
68c3a137
KH
39782000-10-25 Kenichi Handa <handa@etl.go.jp>
3979
3980 * process.c (send_process): If OBJECT is t, it means that the data
3981 is from C string, but we should encode it. Before calling
3982 setup_raw_text_coding_system, be sure to flush out data by the
3983 previous coding system.
3984
7ae1c032
MB
39852000-10-25 Miles Bader <miles@lsi.nec.co.jp>
3986
ff4dcd4b
MB
3987 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
3988 assignment of startpos to prev when startpos == pos.
3989
7ae1c032
MB
3990 * editfns.c (find_field): Set the field stickiness correctly from
3991 overlay fields. Use renamed `text_property_stickiness'.
3992 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 3993 Only check text properties, not overlays.
7ae1c032
MB
3994 * textprop.c (get_char_property_and_overlay): New function.
3995 (Fget_char_property): Use it.
3996 * intervals.h (get_char_property_and_overlay): Add declaration.
3997
49801145
SM
39982000-10-25 Stefan Monnier <monnier@cs.yale.edu>
3999
4000 * keymap.c: Use AREF, ASET and ASIZE macros.
4001 (Fmake_sparse_keymap): Docstring fix.
4002 (synkey): Remove.
4003 (shadow_lookup): Move up.
4004 Handle the case where lookup-key returns an integer.
4005 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
4006 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
4007 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
4008 Simplify/rewrite the keymap-finding code.
4009 Add check for command shadowing, using shadow_lookup.
4010
39e776cd
SM
40112000-10-24 Stefan Monnier <monnier@cs.yale.edu>
4012
4013 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
4014 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
4015 a symbol.
4016
2488aba5
AI
40172000-10-24 Andrew Innes <andrewi@gnu.org>
4018
4019 * dired.c (directory_files_internal_unwind): New function.
4020 (directory_files_internal): Use it to ensure closedir is called
4021 even if expand-file-name or file-attributes throw, eg. because of
4022 a user interrupt. Also enable immediate_quit while calling
4023 re_search, so that matching can be interrupted as well.
4024
b94fdf61
AI
40252000-10-24 Andrew Innes <andrewi@gnu.org>
4026
4027 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
4028 NT-Emacs only.
4029 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
4030 so that re_search functions only quit when callers expect them to.
4031
40322000-10-24 Kenichi Handa <handa@etl.go.jp>
4033
4034 * regex.c (regex_compile): Change the way of handling a range from
4035 a char less than 256 to a char not less than 256.
4036
1946f901
GM
40372000-10-24 Gerd Moellmann <gerd@gnu.org>
4038
7ae2f10f
GM
4039 * window.c (size_window): Prevent setting window's width or
4040 height to a negative value (esp. with XSETFASTINT).
4041
5dcab13e
GM
4042 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
4043 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
4044 (protect_malloc_state) [GC_MALLOC_CHECK &&
4045 GC_PROTECT_MALLOC_STATE]: New function.
4046 (PROTECT_MALLOC_STATE): New macro.
4047 (__malloc_initialize, morecore, _malloc_internal)
4048 (_free_internal) _realloc_internal): Use it to make _heapinfo
4049 read-only outside of gmalloc.
4050
63e1b552
GM
4051 * keymap.c: Update copyright.
4052
1946f901
GM
4053 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
4054 a symbol.
4055
4fa09beb
GM
40562000-10-24 Colin Walters <walters@cis.ohio-state.edu>
4057
4058 * filelock.c (unlock_all_files): Use unlock_file to expand each
4059 buffer's file_truename before trying remove its lock file.
4060
23afac01
EZ
40612000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
4062
4063 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
4064 or CRLF, decode EOLs.
4065
04448b95
KH
40662000-10-24 Kenichi Handa <handa@etl.go.jp>
4067
4068 * window.c (Fdisplay_buffer): Fix doc.
4069
3090a5a5
JR
40702000-10-23 Jason Rumney <jasonr@gnu.org>
4071
4072 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
4073 ASCII font of default fontset on Windows.
4074
4075 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
4076 xterm.c comment below).
4077
4078 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
4079
a83fee2c
GM
40802000-10-23 Gerd Moellmann <gerd@gnu.org>
4081
4082 * xterm.c (x_connection_closed): Reset handling_signal.
4083
52283633 4084 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
a83fee2c 4085
6ffdb539
MB
40862000-10-23 Miles Bader <miles@gnu.org>
4087
4088 * window.c (window_scroll_pixel_based, window_scroll_line_based):
4089 Pass nil for FULLY argument to Fpos_visible_in_window_p to
4090 maintain old behavior.
4091 * minibuf.c (Fminibuffer_complete): Likewise.
4092
7f1c969b
MB
40932000-10-23 Miles Bader <miles@lsi.nec.co.jp>
4094
4095 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
4096 that when a font can't be exactly centered, it errs up rather than
4097 down.
4098
23afac01 40992000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd 4100
52283633 4101 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
8ec118cd 4102
1a578e9b
AC
41032000-10-23 Andrew Choi <akochoi@i-cable.com>
4104
4105 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
4106
4107 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 4108 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
4109
4110 * emacs.c (main) [macintosh]: Call syms_of_textprop,
4111 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
4112 syms_of_search, x_term_init, and init_keyboard before calling
4113 init_window_once. Also, call syms_of_xmenu.
4114
4115 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
4116 default fontset to Monaco.
4117
4118 * frame.c [macintosh]: Include macterm.h. Remove declarations of
4119 NewMacWindow and DisposeMacWindow.
4120 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
4121 instead of calling NewMacWindow and setting fields of
4122 f->output_data.mac directly. Call init_frame_faces.
4123 (Fdelete_frame) [macintosh]: Remove unused code.
4124 (Fmodify_frame_parameters) [macintosh]: Call
4125 x_set_frame_parameters instead of mac_set_frame_parameters.
4126
4127 * frame.h [macintosh]: Define menu_bar_lines field in struct
4128 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
4129
4130 * keyboard.c [macintosh]: Include macterm.h.
4131 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
4132 and menu_bar_activate_event type events as for X and NT.
4133 (make_lispy_event) [macintosh]: Construct lisp events of type
4134 MENU_BAR_EVENT as for X and NT.
4135
4136 * sysdep.c [macintosh]: Remove declaration for sys_signal.
4137 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
4138 (sys_subshell) [macintosh]: Remove definition entirely.
4139 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
4140 Vwindow_system_version here. Remove initialization of
4141 Vx_bitmap_file_path.
4142 (read_input_waiting): Correct the number of parameters passed to
4143 read_socket_hook.
4144 Move all Macintosh functions to mac/mac.c.
4145
4146 * term.c [macintosh]: Include macterm.h.
4147
4148 * window.c [macintosh]: Include macterm.h.
4149
4150 * xdisp.c [macintosh]: Include macterm.h. Declare
4151 set_frame_menubar and pending_menu_activation.
4152 (echo_area_display) [macintosh]: Do not return if terminal frame
4153 is the selected frame.
4154 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
4155 Allow only the selected frame to set menu bar.
4156 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
4157 calling FRAME_EXTERNAL_MENU_BAR (f).
4158 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
4159
4160 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
4161 and check_x. Declare XCreateGC. Define x_create_gc and
4162 x_free_gc. Initialize font_sort_order.
4163 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
4164 but call x_list_fonts instead of w32_list_fonts.
4165 (Finternal_face_x_get_resource) [macintosh]: Do not call
4166 display_x_get_resource.
4167 (prepare_face_for_display) [macintosh]: Set xgcv.font.
4168 (realize_x_face) [macintosh]: Load the font if it is specified in
4169 ATTRS.
52283633 4170 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
1a578e9b 4171
1ffbabe3
SM
41722000-10-22 Stefan Monnier <monnier@cs.yale.edu>
4173
4174 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
4175 is nil: since we go to the end of submap anyway, we'd end up
4176 setting nil to nil.
4177 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
4178 doesn't obey autoload.
4179
bed43f1d
EZ
41802000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
4181
1ffbabe3 4182 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 4183
ea4233a7
JR
41842000-10-21 Jason Rumney <jasonr@gnu.org>
4185
4186 * w32term.c (w32_cache_char_metrics): Double check that font is
4187 really fixed pitch before trusting tmPitchAndFamily.
4188
f3d3c491
AI
41892000-10-21 Andrew Innes <andrewi@gnu.org>
4190
4191 * w32gui.h (w32_char_font_type): Move enum from w32term.c
4192
4193 * w32term.h: Extern decl for w32_cache_char_metrics.
4194
4195 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
4196
4197 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
4198 (w32_unload_font): Free per_char array if present.
4199
4200 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
4201 cached information in emulated XFontStruct to handle common cases
4202 quickly. Do not allocate XCharStruct for return.
4203 (w32_native_per_char_metric): New function.
4204 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
4205 allocating one.
4206 (x_produce_glyphs): Don't get an HDC. Change calls to
4207 w32_per_char_metric to match arg change above. Remove calls to
4208 free results.
4209 (w32_get_glyph_overhangs): Ditto.
4210 (w32_cache_char_metrics): New function.
4211
4212 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
4213 ($(BLD)/casefiddle.$(O)): Remove compile command.
4214 ($(BLD)/gmalloc.$(O)): Remove compile command.
52283633
SM
4215 ($(BLD)/dispnew.obj):
4216 ($(BLD)/keyboard.obj):
4217 ($(BLD)/w32inevt.obj):
4218 ($(BLD)/w32bdf.obj):
4219 ($(BLD)/alloc.obj):
4220 ($(BLD)/buffer.obj):
4221 ($(BLD)/editfns.obj):
4222 ($(BLD)/emacs.obj):
4223 ($(BLD)/fileio.obj):
4224 ($(BLD)/fns.obj):
4225 ($(BLD)/indent.obj):
4226 ($(BLD)/insdel.obj):
4227 ($(BLD)/intervals.obj):
4228 ($(BLD)/minibuf.obj):
4229 ($(BLD)/print.obj):
4230 ($(BLD)/scroll.obj):
4231 ($(BLD)/sysdep.obj):
4232 ($(BLD)/textprop.obj):
4233 ($(BLD)/widget.obj):
f3d3c491
AI
4234 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
4235 ($(BLD)/term.obj): Add dependency on dispextern.h.
4236
52283633
SM
4237 * makefile.nt ($(BLD)\dispnew.obj):
4238 ($(BLD)\keyboard.obj):
4239 ($(BLD)\w32inevt.obj):
4240 ($(BLD)\w32bdf.obj):
4241 ($(BLD)\alloc.obj):
4242 ($(BLD)\buffer.obj):
4243 ($(BLD)\editfns.obj):
4244 ($(BLD)\emacs.obj):
4245 ($(BLD)\fileio.obj):
4246 ($(BLD)\fns.obj):
4247 ($(BLD)\indent.obj):
4248 ($(BLD)\insdel.obj):
4249 ($(BLD)\intervals.obj):
4250 ($(BLD)\minibuf.obj):
4251 ($(BLD)\print.obj):
4252 ($(BLD)\scroll.obj):
4253 ($(BLD)\sysdep.obj):
4254 ($(BLD)\textprop.obj):
4255 ($(BLD)\widget.obj):
f3d3c491
AI
4256 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
4257 ($(BLD)\term.obj): Add dependency on dispextern.h
4258
18ad4821
EZ
42592000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
4260
4261 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
4262 with an additional argument of Qt.
4263
de54681a
MB
42642000-10-21 Miles Bader <miles@gnu.org>
4265
4266 * window.c (pos_fully_visible_in_window_p): New function.
4267 (Fpos_visible_in_window_p): Add FULLY argument.
4268 Use pos_fully_visible_in_window_p.
4269 (window_scroll_pixel_based, window_scroll_line_based): Update
4270 calls to Fpos_visible_in_window_p.
4271 * lisp.h (Fpos_visible_in_window_p): Update prototype
4272
13c844fb
GM
42732000-10-20 Gerd Moellmann <gerd@gnu.org>
4274
4275 * alloc.c (toplevel): Conditionalize compilation of mem_*
4276 functions differently.
52283633 4277
d9506268
JR
42782000-10-20 Jason Rumney <jasonr@gnu.org>
4279
4280 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
4281 mem_init where it used to be. mem_z etc not defined otherwise.
4282
8094989b
GM
42832000-10-20 Gerd Moellmann <gerd@gnu.org>
4284
4285 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
4286 GC_MALLOC_CHECK.
4287 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
4288 structure definition and related variabled to the top of the file.
4289 Include this code when GC_MALLOC_CHECK is defined.
4290 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
4291 register/unregister allocated region.
4292 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
4293 which isn't allocated.
4294 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
4295 something which is already in use.
4296 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
4297 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
4298 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
4299 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
4300
4301 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
4302 _malloc_internal instead of malloc.
4303 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
4304 of free.
4305
ea456eb4
AI
43062000-10-20 Andrew Innes <andrewi@gnu.org>
4307
4308 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
4309 Windows.
4310 (my_strftime) <macro>: Don't use macro arg list when redefining as
4311 _strftime_copytm.
4312 (my_strftime) <function>: Supply 0 as ut argument.
4313
e64c3a75
JR
43142000-10-19 Jason Rumney <jasonr@altavista.net>
4315
4316 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
4317 including dispextern.h, as it stops faces from working.
4318
4319 * w32fns.c (Fx_create_frame): Don't bother calling
4320 face-set-after-frame-default since the caller does it for us
4321 anyway. Clean up calls to x_get_arg to be consistent with X.
4322
4323 * w32term.c (x_produce_glyphs): Handle
4324 unibyte_display_via_language_environment correctly.
4325 (w32_draw_box_rect): Fix the calculation of width and height.
4326
4327 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
4328 as it has stopped working.
4329 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
4330 menu-bar.
4331
17401c97
GM
43322000-10-19 Gerd Moellmann <gerd@gnu.org>
4333
4334 * eval.c (skip_debugger): Prevent a compiler warning.
4335 (Fcondition_case): Likewise.
4336 (Fbacktrace_frame): Use a null interactive spec.
4337
773272d8
KH
43382000-10-19 Kenichi Handa <handa@etl.go.jp>
4339
4340 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
4341
a42943e9
GM
43422000-10-18 Gerd Moellmann <gerd@gnu.org>
4343
e50517d9
GM
4344 * strftime.c: Sync with glibc, file version 1.78.
4345 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
4346 should no longer be used according to ISO 8601.
4347
9035a35a
GM
4348 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
4349 no map for meta_prefix_char, don't try to use it as a keymap.
4350 Instead, if T_OK is non-zero, look up a default binding, if any,
4351 otherwise, if T_OK is zero, return nil.
4352
a42943e9
GM
4353 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
4354 (x_to_xcolors, png_load): Use x_query_color.
4355
52283633
SM
4356 * xterm.c (x_color_cells, x_query_colors, x_query_color):
4357 New functions.
a42943e9
GM
4358 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
4359 which can be slow.
4360 (x_copy_color, x_alloc_lighter_color): Likewise.
4361
4362 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
4363 (x_query_color, x_query_colors): Add prototype.
4364
4365 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
4366 check_string_bytes only if not noninteractive, increase count to 50.
4367
00de2987
MB
43682000-10-18 Miles Bader <miles@lsi.nec.co.jp>
4369
4370 * insdel.c (adjust_markers_for_delete): Handle before-insertion
4371 markers correctly.
4372
54918e2b
GM
43732000-10-17 Gerd Moellmann <gerd@gnu.org>
4374
1f0b3fd2
GM
4375 * alloc.c (pure_bytes_used): Renamed from pureptr.
4376 (ALIGN): New macro.
4377 (pure_alloc): New function.
4378 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
4379 Use it.
4380 (Fpurecopy): Use PURE_POINTER_P.
4381
68c5d1db
GM
4382 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
4383 PT has moved backward.
52283633 4384
9a038881
GM
4385 * xdisp.c (cursor_row_p): Take continued lines into account.
4386
361b097f
GM
4387 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
4388 string's size_byte.
4389 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
4390 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
4391 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
4392 string allocated.
4393
54918e2b
GM
4394 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
4395 of selective display off while searching for the next line start.
4396
03ed0806
KH
43972000-10-17 Kenichi Handa <handa@etl.go.jp>
4398
4399 * Makefile.in (term.o): Depend on dispextern.h.
4400
7e05cdaf
SM
44012000-10-16 Stefan Monnier <monnier@cs.yale.edu>
4402
4403 * keymap.c (keymap_memberp): Ensure that nil is not a member.
4404
a6801fd1
GM
44052000-10-16 Gerd Moellmann <gerd@gnu.org>
4406
483de32b
GM
4407 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
4408 the iterator at the beginning, so that they can be set later on,
4409 for instance in reseat_at_next_visible_line_start, without being
4410 overwritten.
4411
a6801fd1
GM
4412 * xfns.c (pbm_format): Add :foreground and :background keywords.
4413 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
52283633 4414 (xbm_load): Recognize foreground and background color specifications.
a6801fd1 4415
dbf1fcc1
EZ
44162000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
4417
4418 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
4419
52283633 4420 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
dbf1fcc1
EZ
4421
4422 * msdos.c (IT_set_face): Compare highlighted face with the default
4423 face, and invert colors if these faces' colors are identical.
4424 (Fmsdos_remember_default_colors): Don't swap foreground and
4425 background colors in initial_colors[].
4426 (IT_set_frame_parameters): Don't swap frame's foreground and
4427 background pixels. If ALIST includes "(reverse . t)", swap
4428 foreground-color and background-color properties in frame's
4429 param_alist. If the original frame's param_alist doesn't specify
4430 the colors, store unspecified-fg and unspecified-bg, reversed if
4431 required.
4432
4433 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
4434 the colors are unspecified and reversed, reverse fore- and back-
4435 ground in the returned value.
4436 (Fframe_parameter): Ditto.
4437
b41fe2c3 44382000-10-16 Gerd Moellmann <gerd@gnu.org>
52283633 4439
3a6b59d9
GM
4440 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
4441 get_last_unchanged_at_beg_row.
4442 (find_first_unchanged_at_end_row): Renamed from
4443 get_first_unchanged_at_end_row.
4444 (find_first_unchanged_at_end_row): Convert assertions to
4445 unconditional tests which abort. When looking for a row in
4446 unchanged text, don't go further back than first_text_row.
4447
b41fe2c3
GM
4448 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
4449 Don't add in the last line's height when deciding if the new
4450 position is below the scroll margin.
9d1af64f 4451
b41fe2c3 44522000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
4453
4454 * editfns.c (Fconstrain_to_field): Check carefully for field
4455 boundaries if either OLD_POS or NEW_POS has a non-nil field
4456 property, even if they're the same.
4457
c412cb7b
KH
44582000-10-16 Kenichi Handa <handa@etl.go.jp>
4459
4460 * xterm.c (x_draw_box_rect): Fix the calculation of width and
4461 height for XFillRectangle.
4462
5586f3eb
SM
44632000-10-15 Stefan Monnier <monnier@cs.yale.edu>
4464
4465 * syntax.c (Fstring_to_syntax): New function extracted from
4466 Fmodify_syntax_entry.
4467 (Fmodify_syntax_entry): Use it and document the ! and | fences.
4468 (skip_chars, Fforward_comment): Remove unused variables.
4469 (syms_of_syntax): Add defsubr for string-to-syntax.
4470 (describe_syntax): Add code for comment and string fences.
4471
db785038
SM
44722000-10-14 Stefan Monnier <monnier@cs.yale.edu>
4473
4474 * keymap.c (access_keymap): Add AUTOLOAD parameter.
4475 Do the meta->esc mapping. Call get_keyelt before returning.
4476 Start scanning from the second element (the first is always `keymap')
4477 to make it easier to detect when we reach a parent map.
4478 Handle the case of inheriting from a symbol whose function is a map.
4479 (Fkeymap_parent): Also handle the `inherit from symbol' case.
4480 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
4481 (get_keyelt, Flookup_key): Update call to access_keymap.
4482 Remove the meta->esc mappings.
4483 (define_as_prefix): Delete old disabled code.
4484 (menu_item_p): New function.
4485 (where_is_internal_1): Skip over the few remaining menu items.
4486 * lisp.h (access_keymap): Update prototype.
4487 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
4488 Update call to access_keymap.
4489 (follow_key, read_key_sequence): Update calls to access_keymap.
4490 Remove the meta->esc mappings.
4491
cafafe0b
GM
44922000-10-13 Gerd Moellmann <gerd@gnu.org>
4493
a2e2a7f6
GM
4494 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
4495 with additional argument.
4496
cafafe0b
GM
4497 * xdisp.c (cursor_row_p): New function.
4498 (try_cursor_movement, display_line): Use it.
52283633 4499
cafafe0b
GM
4500 * xdisp.c (append_space): Also save/restore iterator's current
4501 character and its length.
4502
4503 * xdisp.c (init_from_display_pos): Add an assertion.
4504 (handle_stop): Don't set iterator's add_overlay_start.
4505 (handle_invisible_prop): Likewise.
4506 (load_overlay_strings): If text under an overlay is invisible,
4507 take both before- and after-strings into account when the iterator
4508 is positioned either at the start or at the end of the overlay.
4509 (forward_to_next_line_start): Rewritten.
4510 (reseat_at_next_visible_line_start): Rewritten.
4511 (set_iterator_to_next): Add parameter RESEAT_P.
4512
4513 * dispextern.h (struct it): Remove member add_overlay_start.
4514 (set_iterator_to_next): Change prototype.
4515
c744452b
KH
45162000-10-13 Kenichi Handa <handa@etl.go.jp>
4517
4518 * coding.c (code_convert_region): Be sure to initialize
4519 coding->category_idx.
e4a3f4e1
KH
4520 (decode_coding_string): Set coding->src_multibyte and
4521 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
4522 (encode_coding_string): Set coding->src_multibyte and
4523 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 4524
321fd26f
SM
45252000-10-12 Stefan Monnier <monnier@cs.yale.edu>
4526
4527 * xfns.c (Fx_create_frame): Don't bother calling
4528 face-set-after-frame-default since the caller does it for us anyway.
4529
76832439
EZ
45302000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
4531
4532 * window.c (coordinates_in_window): Fix detection of vertical line
4533 on character terminals.
4534
2483cf58
GM
45352000-10-12 Gerd Moellmann <gerd@gnu.org>
4536
4537 * editfns.c (save_excursion_save): Additionally record the
4538 selected window.
4539 (save_excursion_restore): If buffer was visible in a window, and a
4540 different window was selected, and the old selected window is
4541 still live, restore point in that window.
4542
eb991b25
KH
45432000-10-12 Kenichi Handa <handa@etl.go.jp>
4544
8a0eba09
KH
4545 * xterm.c (x_produce_glyphs): Handle
4546 unibyte_display_via_language_environment correctly.
4547
20401fcc
KH
4548 * regex.c (regex_compile): Change the way of handling a range from
4549 unibyte char to multibyte char.
4550
4551 * syntax.c (skip_chars): Change the way of handling a range from
4552 unibyte char to multibyte char.
4553
eb991b25
KH
4554 * process.c (read_process_output): Cancel previous change.
4555
365dd325
EZ
45562000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
4557
c1b096cb
EZ
4558 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
4559
365dd325
EZ
4560 * charset.c (Ffind_charset_string): Doc fix.
4561 (Ffind_charset_region): Doc fix.
4562
eb483c2b
KH
45632000-10-11 Kenichi Handa <handa@mule.m17n.org>
4564
4565 * process.c (read_process_output): Fix previous change. Adjust
4566 multibyteness of text to insert in a buffer by
52283633 4567 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
eb483c2b 4568
b40bfb99
AS
45692000-10-10 Andreas Schwab <schwab@suse.de>
4570
4571 * alloc.c (mark_object): Remove all workarounds installed on
4572 1993-08-08.
4573
caff31d4
KH
45742000-10-10 Kenichi Handa <handa@etl.go.jp>
4575
52283633 4576 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
caff31d4
KH
4577 (base64_encode_1): Make it work for a text of multibyte form.
4578 (Fbase64_decode_region): Allocate sufficient memory for multibyte
4579 case. Don't call str_to_multibyte because base64_decode_1
4580 produces correct multibyte form for eight-bit codes.
52283633 4581 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
caff31d4
KH
4582 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
4583 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
4584 codes.
4585
4586 * charset.h (CHAR_STRING): Optimized for single byte characters.
4587
cba026ef
AS
45882000-10-09 Andreas Schwab <schwab@suse.de>
4589
4590 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
4591 -1 after socket is closed, to fall through to error processing.
4592
1e21fe48
EZ
45932000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
4594
4595 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 4596 variables. If ALIST includes foreground-color or
1e21fe48
EZ
4597 background-color, change also the colors of the default face for
4598 this frame.
4599
a640322e
EZ
46002000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
4601
4602 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
4603 them extern (they are defined on xfaces.c).
4604 (syms_of_msdos): Don't intern and don't staticpro
4605 Qbackground_color and Qforeground_color.
4606
a115794c
EZ
46072000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
4608
4609 * frame.c (Fframe_parameter): For non-windowed frames, if
4610 f->param_alist says foreground or background color is unspecified,
4611 call tty_color_name to return the color name computed from the
4612 frame's current colors.
4613
f5533b63
DL
46142000-10-06 Dave Love <fx@gnu.org>
4615
4616 * terminfo.c (ospeed): Don't declare.
4617
4618 * sysdep.c: Don't include string.h.
4619 (h_errno): Declare conditional also on TRY_AGAIN.
4620
4621 * charset.c (Ffind_charset_string): Doc fix.
4622
52283633 4623 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
f5533b63
DL
4624 (Fbase64_decode_region, Fbase64_decode_string): More explicit
4625 error messages.
4626
2b06561a
DL
46272000-10-05 Dave Love <fx@gnu.org>
4628
4629 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
4630 position like menu-bar.
4631
ca839c85
GM
46322000-10-05 Gerd Moellmann <gerd@gnu.org>
4633
4634 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
4635
4636 * xdisp.c (handle_single_display_prop): Use safe_call1.
4637 (safe_call): Renamed from call_function.
4638 (safe_call1): New function.
4639 (handle_fontified_prop): Use safe_call1 instead of call1.
4640 (safe_eval): Renamed from eval_form.
4641 (safe_eval_handler): Renamed from eval_handler.
4642 (handle_single_display_prop, display_mode_element): Use safe_eval
4643 instead of eval_form.
4644
4645 * xfaces.c (merge_face_heights): Use safe_call instead of
4646 call_function.
4647
4648 * keyboard.c (show_help_echo): Use safe_call instead of
4649 call_function; use safe_eval instead of eval_form.
4650
4651 * lisp.h (safe_call): Renamed from call_function.
4652 (safe_eval): Renamed from eval_form.
4653 (safe_call1): Add prototype.
4654
a3489ece
MB
46552000-10-05 Miles Bader <miles@lsi.nec.co.jp>
4656
4657 * xfns.c (image_ascent): Rearrange ascent calculation for the
4658 has-a-font case.
4659
35810b6f
SM
46602000-10-04 Stefan Monnier <monnier@cs.yale.edu>
4661
4662 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
4663 (where_is_internal_1): Don't bother ignoring menu-items any more.
4664
3dc78168
GM
46652000-10-04 Gerd Moellmann <gerd@gnu.org>
4666
4667 * keyboard.c (update_menu_bindings): New variable.
4668 (parse_menu_item): Use AREF. If update_menu_bindings
4669 is 0, don't update menu bindings.
4670 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
4671
1efc2bb9
EZ
46722000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
4673
4674 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
4675 to `mark_object'.
4676
3f679f55
SM
46772000-10-02 Stefan Monnier <monnier@cs.yale.edu>
4678
4679 * syntax.c (forw_comment): Match nestedness of ender/starter.
4680 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
4681 (prev_char_comstart_first): Remove.
4682 (back_comment): Check two-char comment markers more carefully
4683 to better handle overlapping cases like *//* or /* */* */ ...
4684 Match nestedness of ender/starter.
4685
2021ab61
DL
46862000-10-02 Dave Love <fx@gnu.org>
4687
4688 * config.in (HAVE_GAI_STRERROR): Add undef.
4689
4690 * process.c (Fopen_network_stream): Use it.
4691
4692 * m/alpha.h (NO_REMAP): Don't define.
4693
64e6cc18
GM
46942000-10-02 Gerd Moellmann <gerd@gnu.org>
4695
4696 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
4697 return with a string converted to an integer or vice versa when
4698 Vmocklisp_arguments is t.
4699 (Fsignal): Likewise. The function can return for `quit'.
4700 (struct gcpro): Declare member `var' to point to a volatile
4701 Lisp_Object.
4702
4703 * eval.c (error): Prevent compiler warning.
4704
b1904cd9
SM
47052000-09-30 Stefan Monnier <monnier@cs.yale.edu>
4706
4707 * keymap.c (keymap_memberp): New function.
4708 (Fset_keymap_parent): Use it.
4709 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
4710 Use keymap_memberp to avoid creating cycles.
4711 (access_keymap): Use KEYMAPP.
4712
71c9ec51
GM
47132000-09-30 Gerd Moellmann <gerd@gnu.org>
4714
4715 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
4716 gai_strerror. Make sure xerrno is set if connect fails. Improve
4717 error recovery.
71c9ec51 4718
c70c6b58
JR
47192000-09-29 Jason Rumney <jasonr@gnu.org>
4720
4721 * w32term.c (w32_char_font_type, w32_encode_char)
4722 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
4723 (w32_bdf_per_char_metric): New function.
4724 (w32_per_char_metric): Use it.
4725 (x_draw_glyph_string_background): Always draw background for BDF
4726 glyphs.
4727
4728 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
4729 GDI object which is a scarce resource.
4730
4731 * w32bdf.c (search_file_line): Fix skipping of whitespace.
4732 (get_quoted_string): Fix limit on memchr search.
4733 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
4734 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
4735 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
4736 (get_cached_font_char, cache_char_offset): Use macro
4737 BDF_CODEPOINT_RANGE_COVER_P.
4738 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
4739 (clear_cached_bitmap_slots): New function.
4740 (GET_HEX_VALUE): G-Z, g-z are not hex.
4741 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
4742 (get_bitmap_with_cache): Use new cache implementation.
4743 (create_offscreen_bitmap): New function.
4744 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
4745
4746 * w32term.c (x_produce_glyphs): If the distance from the current
4747 position to the next tab stop is less than a canonical character
4748 width, use the tab stop after that.
4749 (x_draw_glyphs): Handle case START and END are out of bounds more
4750 carefully.
4751 (x_clear_mouse_face): Block/unblock input.
4752 (x_display_and_set_cursor): Don't show a hollow box cursor for
4753 buffers whose cursor_type is nil.
4754
fe01239f
GM
47552000-09-29 Gerd Moellmann <gerd@gnu.org>
4756
52283633 4757 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
fe01239f
GM
4758
4759 * dispextern.h (updating_frame): Declare extern.
4760
e7c52f1f
AS
47612000-09-29 Andreas Schwab <schwab@suse.de>
4762
4763 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
4764
de6e1f7c
GM
47652000-09-29 Gerd Moellmann <gerd@gnu.org>
4766
25126faa
GM
4767 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
4768 use its function definition.
4769 (tool_bar_items): Likewise.
4770
de6e1f7c 4771 * lisp.h (fatal): Declare NO_RETURN.
52283633 4772
454ee39b
KH
47732000-09-29 Kenichi Handa <handa@etl.go.jp>
4774
4775 * keymap.c: Remove the line "#undef NULL".
4776
96301c5f
GM
47772000-09-28 Gerd Moellmann <gerd@gnu.org>
4778
52283633 4779 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
96301c5f 4780
efffeeb4
DL
47812000-09-28 Dave Love <fx@gnu.org>
4782
ecb8b666
DL
4783 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
4784
dc3cd20f
DL
4785 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
4786
4787 * .gdbinit (xreload): Note its need on GNU/Linux.
4788
efffeeb4
DL
4789 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
4790 r_alloc, r_alloc_free.
4791
8610d903
KH
47922000-09-28 Kenichi Handa <handa@etl.go.jp>
4793
4794 * syntax.c (skip_chars): Handle negation correctly.
4795
8901d1ac
GM
47962000-09-27 Gerd Moellmann <gerd@gnu.org>
4797
6f22f1ad
GM
4798 * xfaces.c (realize_default_face): Call set_lface_from_font_name
4799 with non-zero FORCE_P argument.
4800
52283633 4801 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
8901d1ac
GM
4802 Add assertions.
4803
4804 * xdisp.c (window_box_height): Add an assertion.
4805
4806 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
4807 tool-bar than is available.
4808 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
4809
36f1966f
DL
48102000-09-27 Dave Love <fx@gnu.org>
4811
efffeeb4 4812 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 4813
31d929e5
GM
48142000-09-26 Gerd Moellmann <gerd@gnu.org>
4815
c98863bf
GM
4816 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
4817 instead of BITS_PER_INT.
4818 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
4819 EMACS_UINT, respectively.
4820 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
4821
4822 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
4823
4824 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
4825
77072ab1
GM
4826 * window.c (freeze_window_starts): Construct last argument for
4827 foreach_window differently.
4828
4829 * xfns.c (x_decode_color): Don't return a Lisp_Object.
4830
4831 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
4832 EMACS_UINT instead of `int' and `unsigned int'.
4833 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
4834
4835 * frame.h (struct frame): Make the `nothing' member of union
4836 output_data an EMACS_INT.
4837
52283633 4838 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
31d929e5
GM
4839 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
4840 size in the sdata structure.
4841 (SDATA_NBYTES, SDATA_DATA): New macros.
4842 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
4843 differently for the different layout of the sdata structure.
4844 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
4845 in sdata.
4846 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
4847 Check that size recorded in the string size and size recorded in
4848 the sdata structure agree.
4849
3e60b029
DL
48502000-09-25 Dave Love <fx@gnu.org>
4851
4852 * buffer.c: Include stdio.h.
4853
4854 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
52283633 4855
3e60b029
DL
4856 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
4857
4858 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
52283633 4859 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
3e60b029
DL
4860 (__malloc_extra_blocks): Declare as __malloc_size_t.
4861
8ff16b4e
GM
48622000-09-25 Gerd Moellmann <gerd@gnu.org>
4863
755a2ccd
GM
4864 * alloc.c (mark_image): Use GC_NILP instead of NILP.
4865
d8b4516f
GM
4866 * keyboard.c (show_help_echo): Set help_echo_showing_p.
4867 (read_char): If help-echo is showing, preserve the echo area
4868 when redisplaying.
4869
4870 * xdisp.c (help_echo_showing_p): New variable.
4871 (set_message): Reset it to 0.
4872 (init_xdisp): Initialize help_echo_showing_p.
4873
4874 * dispextern.h (help_echo_showing_p): Declare extern.
4875
4876 * config.in: Fix typo in __GNUC_MINOR__.
4877
4878 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
4879
b11af2dd
GM
4880 * s/freebsd.h (POSIX_SIGNALS): Define.
4881
8ff16b4e
GM
4882 * xterm.c (x_clear_mouse_face): Block/unblock input.
4883
844eb643
DL
48842000-09-24 Dave Love <fx@gnu.org>
4885
4886 * fns.c (base64_encode_1): Fix last change.
4887
b30ab1b3
GM
48882000-09-22 Gerd Moellmann <gerd@gnu.org>
4889
4890 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
4891
4892 * xdisp.c (try_window_reusing_current_matrix): More fixes
4893 for the case window has a header-line.
4894
c6cbe5f0
DL
48952000-09-22 Dave Love <fx@gnu.org>
4896
4c7c1f3f
DL
4897 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
4898 a doc string.
4899
4900 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
4901
c6cbe5f0
DL
4902 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
4903
550a625e
GM
49042000-09-21 Gerd Moellmann <gerd@gnu.org>
4905
4c7c1f3f 4906 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
4907 for GCC >= 2.5.
4908
52283633
SM
4909 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
4910 Declare NO_RETURN.
fca99116 4911
80d26f99
GM
4912 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
4913 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
4914 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
4915 warnings.
52283633 4916
80d26f99
GM
4917 * marker.c (byte_char_debug_check): Return void.
4918
623a0aae
GM
4919 * xfns.c (Fx_create_frame): Set default frame parameter value
4920 for tool-bar-lines to 1.
4921
4922 * dispnew.c (scrolling_window): Compare y-positions of rows
4923 equal at the start. Some simplification.
4924
4925 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
4926 reused rows' y-position in the case window has a header-line, and
4927 new window start is greater than old window start.
4928
42ac0ae5
GM
4929 * process.c (process_sent_to): New variable.
4930 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
4931 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
4932 Declare more parameters volatile.
4933
550a625e
GM
4934 * lread.c (Vrecursive_load_depth_limit): New variable.
4935 (Fload): Check recursive loads whose recursion depth exceeds
4936 Vrecursive_load_depth_limit.
4937 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
4938
8320414c
GM
49392000-09-20 Gerd Moellmann <gerd@gnu.org>
4940
f46c275e
GM
4941 * fileio.c (Fread_file_name): Doc fix.
4942
4943 * editfns.c (Fmessage_or_box): Doc fix.
4944
4945 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
4946
b7e11c5b 4947 * xfns.c (xbm_scan): Allow C-style comments.
52283633 4948
8320414c
GM
4949 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
4950 symbols are specified, add color translations to the cache.
52283633 4951 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
8320414c
GM
4952 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
4953 xpm_cache_color.
4954 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
4955 structures to xpm_init_color_cache.
4956
da1608d9
GM
49572000-09-19 Gerd Moellmann <gerd@gnu.org>
4958
52283633 4959 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
da1608d9 4960
6badfa25
AI
49612000-09-19 Andrew Innes <andrewi@gnu.org>
4962
4963 * makefile.nt (bootstrap-emacs): Don't change directory.
4964
3a5f42bb
KH
49652000-09-19 Kenichi Handa <handa@etl.go.jp>
4966
1b7649bd
KH
4967 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
4968
3a5f42bb
KH
4969 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
4970 If output buffer is too small, signal an appropriated error.
4971
9f83cf0b
DL
49722000-09-18 Dave Love <fx@gnu.org>
4973
52283633 4974 * keyboard.c (menu_bar_items, tool_bar_items)
9f83cf0b
DL
4975 (current_active_maps): Remove redundant get_local_map call.
4976
28c7826c
GM
49772000-09-18 Gerd Moellmann <gerd@gnu.org>
4978
5cefa566
GM
4979 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
4980 cursor for buffers whose cursor_type is nil.
52283633 4981
6fed3546
GM
4982 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
4983 a feature to implement that is already implemented.
4984 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
4985 warnings.
4986
4987 * xfns.c (x_clear_image_1): New function.
4988 (x_clear_image): Use it.
52283633 4989 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
6fed3546 4990
05b1f851
GM
4991 * dispnew.c (update_window): Move test for invisible lines
4992 at the top to update_window_line.
4993 (update_window_line): Handle invisible lines here.
4994
f4779de9
GM
4995 * xfns.c (clear_image_cache): Clear current matrices of all
4996 frames sharing an image cache. Block input while freeing
4997 images. Fix timestamp comparison.
4998 (x_clear_image): Also free the mask.
4999
28c7826c
GM
5000 * xfns.c (lookup_image): Block input while loading the image so
5001 that we won't get interrupted in a state where the image isn't yet
5002 set up completely.
5003 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
5004 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
5005 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
52283633 5006 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
28c7826c 5007
b7412313
GM
50082000-09-16 Gerd Moellmann <gerd@gnu.org>
5009
5010 * dispnew.c (update_window): Make sure to make desired rows
5011 current even if they are completely invisible at the top
5012 of a window.
5013
47e351a3
GM
50142000-09-15 Gerd Moellmann <gerd@gnu.org>
5015
7f8f1edc
GM
5016 * xfns.c (lookup_image): Build mask before applying an algorithm.
5017 Recognize algorithm `disabled'.
5018 (cross_disabled_images): New variable.
5019 (COLOR_INTENSITY): New macro.
5020 (x_detect_edges): Use COLOR_INTENSITY.
5021 (x_disable_image): New function.
5022 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
5023
5024 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
5025 disabled state, don't apply an image transformation algorithm if
5026 the user specified an image for the disabled state. Use
28c7826c 5027 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
5028 user hasn't specified an image.
5029
ebb8f116
GM
5030 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
5031 allocation functions with the XPM lib.
5032 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
5033 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
5034 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
5035 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
52283633 5036 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
ebb8f116
GM
5037 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
5038 functions, if possible, because these handle color allocation
5039 failure more gracefully.
5040 (Fimage_mask_p): New function.
5041
47e351a3
GM
5042 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
5043 (Qedge_detection, Qheuristic): New symbols.
5044 (syms_of_xfns): Initialize new symbols.
5045 (lookup_image): Handle `:mask X', `:algorithm emboss', and
5046 `algorithm (edge-detection ...)'.
5047 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
5048 (tiff_format, gif_format, gs_format): Add `:mask'.
5049 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
5050 (GIF_MASK, GS_MASK): New enumerators.
5051 (x_laplace_read_row, x_laplace_write_row): Functions removed.
5052 (emboss_matrix, laplace_matrix): New variables.
5053 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
5054 (x_edge_detection): New functions.
5055 (x_laplace): Rewritten in terms of x_detect_edges.
5056 (x_build_heuristic_mask): If image has a mask, free it.
5057
fe83b953
AI
50582000-09-14 Andrew Innes <andrewi@gnu.org>
5059
5060 * makefile.w32-in: Revert to Unix line endings.
5061
3021e816
AI
50622000-09-14 Andrew Innes <andrewi@gnu.org>
5063
5064 * makefile.w32-in: Standardize indentation somewhat.
5065 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
5066 cater for differences between shells.
5067
5068 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
5069
2a32b5ea
GM
50702000-09-14 Gerd Moellmann <gerd@gnu.org>
5071
5072 * xterm.c (x_produce_glyphs): If the distance from the current
5073 position to the next tab stop is less than a canonical character
5074 width, use the tab stop after that.
5075
b4331e96
DL
50762000-09-14 Dave Love <fx@gnu.org>
5077
5078 * buffer.c (alloc_buffer_text): Fix xmalloc call.
5079
ef9e4345
GM
50802000-09-14 Gerd Moellmann <gerd@gnu.org>
5081
085536c2
GM
5082 * xdisp.c (handle_fontified_prop): While running fontification
5083 functions, bind `fontification-functions' and
5084 `after-change-functions' to nil.
5085
ef9e4345
GM
5086 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
5087 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
5088
5089 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
5090
5091 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
5092 USE_MMAP_FOR_BUFFERS.
5093
5094 * insdel.c (make_gap): Use enlarge_buffer_text.
5095
5096 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
5097 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
5098 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
5099 from former r_alloc_* functions in ralloc.c.
52283633 5100 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
ef9e4345
GM
5101 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
5102 (mmap_init) [REL_ALLOC_MMAP]: New function.
5103 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
5104 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
5105 BUFFER_FREE.
5106
5107 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
5108 (enlarge_buffer_text): Add prototype.
5109
5110 * ralloc.c: Remove everything having to do with the use of mmap.
5111
f8608968
GM
51122000-09-13 Gerd Moellmann <gerd@gnu.org>
5113
2a494b2d
GM
5114 * sound.c (Fplay_sound): Doc fix.
5115
8c907a56
GM
5116 * keyboard.c: Avoid some more compiler warnings.
5117 (parse_tool_bar_item): Ignore cached key bindings.
5118
f8608968
GM
5119 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
5120 and allocation of Lisp data.
5121
6ab70e9a
GM
51222000-09-12 Gerd Moellmann <gerd@gnu.org>
5123
d12d0a9b
GM
5124 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
5125 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
5126 defaults first.
5127
6ab70e9a
GM
5128 * lread.c (Fload): Put code checking for recursive loads in #if 0.
5129
63c36c3c
KH
51302000-09-12 Miyashita Hisashi <himi@meadowy.org>
5131
5132 * ccl.c: Comment fixed.
5133 (MAX_MAP_SET_LEVEL): Increased to 30.
5134 (PUSH_MAPPING_STACK): Enclose with do-while block.
5135 (POP_MAPPING_STACK): Likewise.
5136 (stack_idx_of_map_multiple): New variable.
5137 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
5138 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
52283633 5139 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
63c36c3c
KH
5140 (ccl_driver) <CCL_MapSingle>: Likewise.
5141 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
5142 with the case where looking up process reaches to the end of
5143 map-set, and call CCL programs as the above change.
5144
7ee3bd7b
GM
51452000-09-11 Gerd Moellmann <gerd@gnu.org>
5146
8ec8a5ec
GM
5147 * xfns.c (png_load, jpeg_load): Declare some variables volatile
5148 that might be clobbered by longjmp.
5149 (check_x_display_info, x_decode_color, create_frame_xic)
5150 (Fx_display_backing_store, Fx_display_visual_class)
52283633 5151 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
8ec8a5ec 5152
f74b0705
GM
5153 * lread.c (init_lread): Set Vloads_in_progress to nil.
5154 (Fload): Show list of recursively loaded files, when signaling an
5155 error.
5156
7ee3bd7b
GM
5157 * lread.c (Vloads_in_progress): New variable.
5158 (record_load_unwind): New function.
5159 (Fload): Check for recursive loads.
5160 (syms_of_lread): Initialize Vloads_in_progress.
5161 (read_integer, read1): Avoid some compiler warnings.
5162
5163 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
5164 compiler warnings.
5165
974e1e5b
MB
51662000-09-11 Miles Bader <miles@gnu.org>
5167
5168 * editfns.c (Fbuffer_string): Doc fix.
5169
9824c4e3
GM
51702000-09-10 Gerd Moellmann <gerd@gnu.org>
5171
5172 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
5173
6a72fdd1
KR
51742000-09-09 Ken Raeburn <raeburn@gnu.org>
5175
5176 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
5177 whether to include other header files.
5178
28e6fb66
GM
51792000-09-09 Gerd Moellmann <gerd@gnu.org>
5180
52283633 5181 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 5182 by Fmemq as a boolean.
28e6fb66 5183
7f8b6551
SM
51842000-09-08 Stefan Monnier <monnier@cs.yale.edu>
5185
5186 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
5187
a8710abf
GM
51882000-09-08 Gerd Moellmann <gerd@gnu.org>
5189
d1a02881
GM
5190 * ralloc.c (mmap_fd): Remove initializer which can make it
5191 read-only in a dumped Emacs.
5192 (mmap_fd_1): New variable.
5193 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
5194 restore it from there.
5195 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
5196 unconditionally so that mmap_fd can be initialized there.
5197 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
5198 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
5199 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
5200
c454aac1
GM
5201 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
5202
5203 * xdisp.c (dump_glyph_row): Fix printf format string.
52283633 5204 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
c454aac1 5205
fc653ef2
GM
5206 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
5207
3015eec0
GM
5208 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
5209 inheritance.
5210
bfe0ee88
GM
5211 * xdisp.c (try_window_id): When trying to locate cursor in
5212 unchanged rows at the top, handle the case that we can't find it.
5213
a8710abf
GM
5214 * xterm.c (x_draw_glyphs): Handle case START and END are out
5215 of bounds more carefully.
5216
6b7d4ae4
DL
52172000-09-08 Dave Love <fx@gnu.org>
5218
423193c5
DL
5219 * s/sol2.h (REL_ALLOC_MMAP): Define.
5220 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
5221
5222 * ralloc.c: Don't include string.h (redundant).
5223 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
5224 [!MAP_ANON]: Include fcntl.h.
5225 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
5226 (r_alloc, r_re_alloc, r_alloc_free)
5227 (mmap_enlarge, mmap_set_vars): Use it.
5228 (r_alloc_init_fd): New function.
5229 (__morecore) [SYSTEM_MALLOC]: Don't declare.
5230 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
5231 malloc type.
5232
5233 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
5234 Remove vm-limit.o.
5235
6b7d4ae4
DL
5236 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
5237 change to __NetBSD__.
5238
44d31981
KH
52392000-09-08 Kenichi Handa <handa@etl.go.jp>
5240
5241 * search.c (compile_pattern): Check the multibyteness of cached
5242 string and PATTERN.
5243
aad40737
MB
52442000-09-08 Miles Bader <miles@gnu.org>
5245
5246 * xfaces.c (default_face_vector): Function removed.
5247 (Finternal_merge_in_global_face): Restore old global/local
5248 attribute override order. Use inline loop instead of calling
5249 default_face_vector.
5250
91a211b5
GM
52512000-09-07 Gerd Moellmann <gerd@gnu.org>
5252
5253 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
5254 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
5255 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
5256 where necessary, in case POINTER_TYPE is `void'.
5257
03419440
EZ
52582000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
5259
5260 * frame.c (make_terminal_frame): Initialize frame foreground and
5261 background colors to unspecified, for the initial instance of an
5262 MSDOS frame.
5263
f46f845b
GM
52642000-09-07 Gerd Moellmann <gerd@gnu.org>
5265
24f76fbf
GM
5266 * ralloc.c (mmap_find): Fix overlap computation.
5267 (mmap_enlarge): Compute nbytes before trying to find an
5268 overlapping region.
5269
f46f845b
GM
5270 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
5271 instead of `!='.
5272
5273 * lread.c (syms_of_lread): Change value of regexp
5274 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
5275
5276 * xmenu.c (xdialog_show): When looking up the selection in
5277 menu_items, take `quote' boundaries into account; this corresponds
5278 to a nil ITEM in x-popup-dialog.
5279
3c014385
KH
52802000-09-07 Kenichi Handa <handa@etl.go.jp>
5281
fd6f711b
KH
5282 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
5283 not 0x81.
5284 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
5285
3c014385 5286 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
5287 encoding, not decoding. Fix the handling of latin-jisx0201.
5288 Check for the charset katakana-jisx0201 too.
3c014385 5289 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 5290 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 5291
0da3ecef
GM
52922000-09-07 Gerd Moellmann <gerd@gnu.org>
5293
ab0ee409
GM
5294 * xfaces.c (Vparam_value_alist): New variable.
5295 (syms_of_xfaces): Initialize it.
5296 (Finternal_set_lisp_face_attribute): Avoid more consing.
5297
5298 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
5299 specially.
5300 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
5301 (Qbackground_mode): New variable.
5302 (syms_of_frame_1): Initialize Qbackground_mode.
5303
5304 * lisp.h (Qdisplay): Declare extern.
1091dd67 5305
0da3ecef
GM
5306 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
5307 change face on all frames, and change the default for new frames.
5308
b14654b9
DL
53092000-09-07 Dave Love <fx@gnu.org>
5310
5311 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
5312
d24fd56f
KH
53132000-09-07 Kenichi Handa <handa@etl.go.jp>
5314
794f3670
KH
5315 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
5316
0fddd0dc
KH
5317 * charset.c: Include composite.h
5318 (lisp_string_width): New function.
5319 (Fstring_width): Call lisp_string_width instead of strwidth.
5320
5321 * Makefile.in (charset.o): Depends on composite.h.
5322
d24fd56f
KH
5323 * process.c (read_process_output): Before inserting the decoded
5324 text in the buffer, adjust the multibyteness.
5325
fa0b693c
GM
53262000-09-06 Gerd Moellmann <gerd@gnu.org>
5327
52283633 5328 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
73b77ee5
GM
5329 buffer's text buffer is null, map new memory.
5330
0a58f946
GM
5331 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
5332 POINTER_TYPE and size_t.
5333 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
5334 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
5335 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
5336 [REL_ALLOC_MMAP]: New macros.
5337 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
5338 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
5339 [REL_ALLOC_MMAP]: New functions.
5340
5341 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
5342 before and after unexec.
5343
5344 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
5345 text buffers if necessary.
5346
5347 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
5348 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
5349 in prototypes.
5350
fa0b693c
GM
5351 * config.in (HAVE_MMAP): Add #undef.
5352
877055f6
GM
53532000-09-05 Gerd Moellmann <gerd@gnu.org>
5354
08ba3862
GM
5355 * frame.c (Qdisplay_type): New variable.
5356 (syms_of_frame_1): Initialize it.
5357 (Fframe_parameter): New function that avoids consing.
5358 (syms_of_frame): Defsubr it.
5359
66ffe51c
GM
5360 * buffer.c (Fother_buffer): Consider buffers as invisible when
5361 they are displayed in a window on an invisible frame.
5362
877055f6
GM
5363 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
5364 get-largest-window always return nil.
5365
bb970e67
GM
53662000-09-04 Gerd Moellmann <gerd@gnu.org>
5367
5368 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
5369 variable; recognize Emacs 19 elc files.
5370
7a3d0e0e
MB
53712000-09-04 Miles Bader <miles@gnu.org>
5372
5373 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
5374 before initially popping up the menu, so the menu doesn't flash
52283633 5375 when the face settings are significantly different from the defaults.
7a3d0e0e 5376
14473664
SM
53772000-09-04 Stefan Monnier <monnier@cs.yale.edu>
5378
5379 * regex.c (WIDE_CHAR_SUPPORT): New macro.
5380 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
5381 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
5382 (BIT_UNIBYTE): Remove.
5383 (re_match_2_internal): Delete corresponding code and streamline the
5384 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
5385 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
5386 (re_wctype_t): New type.
5387 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
5388 (regex_compile): Use them and fix handling of overly long char classes.
5389
c1174479
AI
53902000-09-03 Andrew Innes <andrewi@gnu.org>
5391
f8803e97
AI
5392 * makefile.w32-in: Change to DOS line endings.
5393
c1174479
AI
5394 * s/ms-w32.h (ORDINARY_LINK): New define.
5395
5396 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
5397 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
5398
5399 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
5400 (distclean): Delete them here instead.
5401
44ef7cf6
AI
5402 * w32proc.c (compare_env): Convert to uppercase for comparison,
5403 not lowercase, to match how the native Windows shell works.
5404
49b3bd82
JR
54052000-09-03 Jason Rumney <jasonr@gnu.org>
5406
5407 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
5408 CVS changes the line-ends when checking in/out on DOS/Windows.
5409
5410 * makefile.nt (emacs): Do not change directory to run temacs, as
5411 the load-path is set relative to current directory.
5412
a3d35a39
MB
54132000-09-03 Miles Bader <miles@gnu.org>
5414
5415 * xterm.c (x_alloc_lighter_color_for_widget): New function.
5416
d276b0cf
GM
54172000-09-02 Gerd Moellmann <gerd@gnu.org>
5418
715e84c9
GM
5419 * xdisp.c (redisplay_mode_lines): New function.
5420 (display_mode_lines): Return number of mode lines displayed.
5421 (echo_area_display): Use redisplay_mode_lines to draw garbaged
5422 mode lines. Don't temporarily bind redisplay-dont-pause to t.
5423
8892f40b
GM
5424 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
5425 string.h and strings.h.
5426 (index) [HAVE_INDEX]: Add prototype.
5427
d276b0cf
GM
5428 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
5429 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
5430
5431 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
5432 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
5433
38404229
GM
54342000-09-01 Gerd Moellmann <gerd@gnu.org>
5435
5436 * lread.c (read1): Accept `?' as symbol constituent, for
5437 compatiblity with XEmacs.
5438
c0f9ea08
SM
54392000-08-31 Stefan Monnier <monnier@cs.yale.edu>
5440
5441 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
5442 (struct re_pattern_buffer): Remove newline_anchor.
5443 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
5444 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
5445 (re_max_failures, fail_stack): Use size_t rather than unsigned.
5446 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
5447 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
5448 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
5449 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
5450 Get rid of references to newline_anchor.
5451 (regcomp): Allocate and precompute a fastmap.
5452
8c0f83fe
GM
54532000-08-31 Gerd Moellmann <gerd@gnu.org>
5454
5455 * lread.c (openp): GCPRO local variable `filename'.
5456
4bb91c68
SM
54572000-08-30 Stefan Monnier <monnier@cs.yale.edu>
5458
5459 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
5460
5461 * regex.c: Merge some changes from GNU libc. Add prototypes.
5462 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
5463 Use memcmp and memcpy instead of bcopy and bcmp.
5464 (init_syntax_once): Use ISALNUM.
5465 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
5466 (REG_UNSET_VALUE): Remove. Use NULL instead.
5467 (REG_UNSET, re_match_2_internal): Use NULL.
5468 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
5469 New macros.
5470 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
5471 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
5472 (regex_compile): In handle_interval, return an error rather than try to
5473 unfetch the interval if we can't find the closing brace.
5474 Obey the RE_NO_GNU_OPS syntax bit.
5475 (TOLOWER): New macro.
5476 (regcomp): Use it.
5477 (regexec): Allocate regs.start and regs.end as one block.
5478
5226a931
GM
54792000-08-30 Gerd Moellmann <gerd@gnu.org>
5480
868dd24b
GM
5481 * xdisp.c (echo_area_display): Check display_completed instead
5482 of calling detect_input_pending.
5483
5484 * dispnew.c (update_frame): Only set display_completed here; move
5485 the update_begin and update_end calls here from update_frame_1.
5486 (update_frame_1): Don't set display_completed here, don't call
5487 update_begin/update_end.
5488
5226a931
GM
5489 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
5490 instead of store_frame_param.
5491
2a8bd25f
GM
54922000-08-29 Gerd Moellmann <gerd@gnu.org>
5493
5494 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
5495 desired window matrix hasn't been displayed, use the current row
5496 instead. Make sure that only those frame rows are updated for
5497 which there exists a corresponding enabled desired row.
52283633 5498
ba3478d9
MB
54992000-08-29 Miles Bader <miles@gnu.org>
5500
5501 * xfaces.c (default_face_vector): New function.
5502 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
5503
87d0f685
GM
55042000-08-29 Gerd Moellmann <gerd@gnu.org>
5505
5506 * lread.c (openp): Prevent temporary string passed to
5507 Ffile_readable_p from being garbage collected.
5508
6fa86045
DL
55092000-08-28 Dave Love <fx@gnu.org>
5510
5511 * keymap.c (store_in_keymap): Add `static' to declaration.
5512
bb17930d
GM
55132000-08-28 Gerd Moellmann <gerd@gnu.org>
5514
5515 * emacs.c, callint.c, doc.c, editfns.c
5516 (toplevel) [HAVE_STRING_H]: Include string.h.
5517 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
5518 (index): Remove prototypes which might conflict with non-standard
5519 definitions of index/strchr.
5520
5521 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
5522 (rindex): Define only if !HAVE_RINDEX.
5523
5524 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
5525
5526 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
5527
87188200
MB
55282000-08-28 Miles Bader <miles@gnu.org>
5529
5530 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
5531 made inconsistent by a font-related attribute in FROM.
5532 (merge_face_inheritance): Add function comment.
5533
41a68aef
KH
55342000-08-28 Kenichi Handa <handa@etl.go.jp>
5535
5536 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
5537 the 4th arg (PREV_EVENT) Qt to suppress input method.
5538
f7c436c1
SM
55392000-08-27 Stefan Monnier <monnier@cs.yale.edu>
5540
0b32bf0e
SM
5541 * regex.c: Indent cpp directives and remove parens after `defined'.
5542 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
5543 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
5544 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
5545 (re_compile_pattern): Use size_t for length.
5546 (init_syntax_once): Move to a better place.
5547 * regex.h: Merge changes from GNU libc. Indent cpp directives.
5548 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
5549
f7c436c1
SM
5550 * syntax.c (back_comment): Detect cases where a comment-starter is
5551 actually inside another comment as in: /* a // b */ c // d \n.
5552 Make it clear that `comstart_pos' is unused for nested comments.
5553
5554 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
5555 (KEYMAPP): New macro.
5556 (Fkeymap_parent, Fset_keymap_parent): Use it.
5557 (fix_submap_inheritance): Mark it static.
5558 (define_as_prefix, describe_buffer_bindings, describe_command)
5559 (describe_translation, describe_map): Complete prototypes.
5560
5561 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
5562
5563 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
5564 to better match the key-lookup behavior.
5565
6288c62f
GM
55662000-08-27 Gerd Moellmann <gerd@gnu.org>
5567
5568 * xfaces.c (lface_fully_specified_p): Handle :inherit.
5569 (Finternal_set_lisp_face_attribute): Fix typo in error message.
5570
e931344e
EZ
55712000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
5572
5573 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
5574 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
5575 (xterm.o): Depend on coding.h
5576
d10dfeef
KH
55772000-08-26 Kenichi Handa <handa@etl.go.jp>
5578
5579 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
5580 the corresponding '#endif'.
5581
2d73e8d3
MB
55822000-08-26 Miles Bader <miles@gnu.org>
5583
5584 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
5585 * xfaces.c (QCinherit): New variable.
5586 (syms_of_xfaces): Initialize it.
5587 (LFACE_INHERIT): New macro.
5588 (Finternal_get_lisp_face_attribute)
52283633 5589 (merge_face_vector_with_property)
2d73e8d3
MB
5590 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
5591 (check_lface_attrs): Allow new types of face height. Check
5592 inherit attribute.
5593 (CYCLE_CHECK): New macro.
5594 (merge_face_inheritance): New function.
5595 (merge_face_vectors): Merge inherited faces too. Add F and
5596 CYCLE_CHECK arguments.
5597 (merge_face_vector_with_property, Finternal_merge_in_global_face)
5598 (lookup_named_face, lookup_derived_face, realize_named_face)
5599 (face_at_string_position, face_at_buffer_position): Supply
5600 new F and CYCLE_CHECK arguments to merge_face_vectors.
5601 (merge_face_heights): New function.
52283633 5602 (merge_face_vectors, merge_face_vector_with_property)
2d73e8d3
MB
5603 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
5604 handle relative face heights.
5605 (lface_same_font_attributes_p): Compare heights using EQ.
5606
6ce974d4
KH
56072000-08-26 Kenichi Handa <handa@etl.go.jp>
5608
5609 * charset.c (char_to_string): Check the character validity.
52283633 5610 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
6ce974d4 5611
dc1e502d
SM
56122000-08-25 Stefan Monnier <monnier@cs.yale.edu>
5613
5614 * regex.c (PUSH_FAILURE_COUNT): New macro.
5615 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
5616 Handle popping of a register's or a counter's data.
5617 (POP_FAILURE_POINT): Use the new name.
5618 (re_match_2_internal): Push counter data on the stack for succeed_n,
5619 jump_n and set_number_at and remove misleading dead code in succeed_n.
5620
bd9d0f3f
GM
56212000-08-25 Gerd Moellmann <gerd@gnu.org>
5622
5623 * xdisp.c (redisplay_internal): If considering all windows on all
5624 frames, update the display for each frame as soon as possible,
5625 instead of first building all desired matrices for all frames, and
5626 then updating them all.
5627 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
5628
aa5b8e15
GM
56292000-08-24 Gerd Moellmann <gerd@gnu.org>
5630
17494071
GM
5631 * bytecode.c (mark_byte_stack): Add a comment.
5632
52283633
SM
5633 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
5634 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
aa5b8e15
GM
5635 a graphical frame.
5636
c543db81
KH
56372000-08-24 Kenichi Handa <handa@etl.go.jp>
5638
d246d5f5
KH
5639 * minibuf.c (do_completion): Always use compare-string, not
5640 string-equal because the latter doesn't pay attention to
5641 multibyteness of strings.
5642
c543db81
KH
5643 * process.c (create_process): Don't setup raw-text coding here.
5644 (Fopen_network_stream): Don't set coding->src_multibyte and
5645 coding->dst_multibyte here.
5646 (read_process_output): For process filter, return unibyte string
5647 if default-enable-multibyte-characters is nil.
5648 (send_process): If OBJECT is multibyte text, be sure to encoded it
5649 by the specified coding system for the process. Otherwise, setup
5650 raw-text coding.
52283633 5651 (init_process): Don't initialize default-process-coding-system here.
c543db81 5652
9b47cfe0
EZ
56532000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
5654
5655 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
5656 <scroll-down-aggressively>: Likewise.
5657
f5a36960
KH
56582000-08-23 Kenichi Handa <handa@etl.go.jp>
5659
5660 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
5661 zero. Set coding->produced_char correctly.
5662
69a7ffa7
AI
56632000-08-22 Andrew Innes <andrewi@gnu.org>
5664
5665 * makefile.w32-in: New file.
5666
5667 * unexw32.c (unexec): Ignore old_name, and use the actual location
5668 of the current executable instead. Base new_name on this.
5669
5670 * w32proc.c (create_child): Remove reference to security
5671 descriptor, which isn't needed and doesn't compile with mingw32.
5672
5673 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5674 up dllimport attributes.
5675 (x_update_window_end): Update prototype.
5676
5677 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
5678 extern, which screws up dllimport attributes.
5679
5680 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5681 up dllimport attributes.
5682
5683 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
5684 screws up dllimport attributes.
5685
5686 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5687 up dllimport attributes.
5688 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
5689 screws up dllimport attributes.
5690
5691 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5692 up dllimport attributes.
5693
5694 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
5695 screws up dllimport attributes.
5696
5697 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
5698 screws up dllimport attributes.
5699
5700 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5701 up dllimport attributes.
5702
5703 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
5704 unnecessary extern, which screws up dllimport attributes.
5705 (main): Ditto.
5706
5707 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5708 up dllimport attributes.
5709
5710 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
5711 unnecessary extern, which screws up dllimport attributes.
5712
5713 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
5714 screws up dllimport attributes.
5715
5716 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5717 up dllimport attributes.
5718
5719 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
5720
52283633
SM
5721 * w32bdf.c (search_file_line):
5722 (set_bdf_font_info):
5723 (seek_char):
5724 (w32_get_bdf_glyph):
69a7ffa7
AI
5725 (w32_BDF_to_x_font): Fix compile warnings.
5726
52283633 5727 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
69a7ffa7
AI
5728
5729 * w32select.c: Include keyboard.h before frame.h.
5730
5731 * w32fns.c (max): Define macro.
5732 (JOHAB_CHARSET): Define if not known.
5733 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
5734 (Fx_show_tip): Synch with X version.
5735
5736 * w32xfns.c: Include keyboard.h before frame.h.
5737
5738 * w32fns.c: Include keyboard.h before frame.h.
5739
5740 * w32term.c: Include keyboard.h before frame.h.
5741
5742 * fontset.c: Include keyboard.h before frame.h.
5743
5744 * w32inevt.c: Include keyboard.h before frame.h.
5745 (MOUSE_MOVED): Define if not known.
5746
5747 * minibuf.c: Include keyboard.h before frame.h.
5748
5749 * keyboard.c: Include keyboard.h before frame.h.
5750
5751 * indent.c: Include keyboard.h before frame.h.
5752
5753 * dispnew.c: Include keyboard.h before frame.h.
5754
5755 * buffer.c: Include keyboard.h before frame.h.
5756
5757 * alloc.c: Include keyboard.h before frame.h.
5758
5759 * print.c: Include keyboard.h before frame.h.
5760
5761 * process.c: Include keyboard.h before frame.h.
5762
5763 * scroll.c: Include keyboard.h before frame.h.
5764
5765 * sysdep.c: Include keyboard.h before frame.h.
5766
5767 * term.c: Include keyboard.h before frame.h.
5768
5769 * window.c: Include keyboard.h before frame.h.
5770
5771 * xdisp.c: Include keyboard.h before frame.h.
5772 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
5773
5774 * frame.c: Include keyboard.h before frame.h.
5775
5776 * w32heap.h: Undefine min, max.
5777
5778 * w32gui.h: Undefine min, max.
5779
5780 * unexw32.c: Change PUCHAR to PCHAR.
5781 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
52283633
SM
5782 (relocate_offset):
5783 (get_section_info):
69a7ffa7
AI
5784 (copy_executable_and_dump_data): Remove unnecessary static defs.
5785 (copy_executable_and_dump_data): Fix compile warnings.
5786
5787 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
5788
5789 * w32console.c (min): Define macro.
5790 (clear_frame, write_glyphs): Fix compile warning.
5791
52283633 5792 * w32proc.c (compare_env):
69a7ffa7
AI
5793 (find_child_console): Fix compile warning.
5794
5795 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
5796 sys_errlist instead of _sys_errlist.
5797 (get_emacs_configuration_options): New function.
5798
5799 * s/ms-w32.h (sys_nerr): Provide default definition.
5800 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
5801 name with _ prepended.
5802 (NSIG): Define if not known.
5803 (get_emacs_configuration): Provide extern declaration.
5804 (get_emacs_configuration_options): Provide extern declaration.
5805 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
5806
5807 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
52283633 5808 (map_w32_filename):
69a7ffa7
AI
5809 (read_unc_volume): Fix compile warning.
5810
5811 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
5812 definitions from being used.
5813
5814 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
5815
52283633 5816 * w32.c (unc_volume_file_attributes):
69a7ffa7
AI
5817 (open_unc_volume): Make arg const.
5818
5819 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
5820 (read_input_waiting): Remove excess parameter.
5821
5822 * w32.c (init_environment): Call _access.
5823 (check_windows_init_file): Call _close.
5824 (init_user_info): Call _putenv.
5825 (init_environment): Call _putenv and _strdup.
5826 (init_ntproc): Reset volume info cache on startup.
5827
5828 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
5829 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
5830 cannot override the CRT malloc.
5831
5832 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
5833 (LINK_FLAGS): Append to original value of LINK_FLAGS.
5834
5835 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
5836 unless we are linking with a static CRT.
5837 (RVA_TO_PTR): Cast result to unsigned char*.
5838
5839 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
5840 (add_volume_info): Use xstrdup.
5841
25060080
SM
58422000-08-22 Stefan Monnier <monnier@cs.yale.edu>
5843
5844 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
5845 (do_completion, Fminibuffer_complete_word): Use it.
5846 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
5847 var so it can take non-boolean values.
5848
6917e6bb
GM
58492000-08-21 Gerd Moellmann <gerd@gnu.org>
5850
acb7cc89 5851 * editfns.c (find_field): Formatting changes.
52283633 5852 (toplevel): Some old-style function forward declarations
acb7cc89
GM
5853 changed to prototypes, some new protypes added, some functions
5854 made static.
5855
5856 * lisp.h (set_time_zone_rule): Add prototype.
5857 (use_dialog_box): External declaration.
5858
0bbfdc25
GM
5859 * keyboard.c (gen_help_event): Add parameter SIZE.
5860 (kbd_buffer_events_waiting): Slightly rewritten.
5861 (clear_event): New function.
5862 (kbd_buffer_get_event): Use it, and clear the input_events of
5863 HELP_EVENTs.
5864 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
5865 don't fill the newly created array with nils.
5866 (toplevel): Convert some old-style function forward declarations
5867 to prototypes.
5868
5869 * keyboard.h (gen_help_event): Change prototype.
5870
5871 * xterm.c (XTread_socket): Change calls to gen_help_event.
5872
5873 * w32term.c (w32_read_socket): Change calls to gen_help_event.
5874
6917e6bb
GM
5875 * eval.c (Fmacroexpand): Doc fix.
5876
e5cd3d11
JR
58772000-08-20 Jason Rumney <jasonr@gnu.org>
5878
5879 * w32term.h (x_display_info_for_display): Remove as this function
5880 does not exist on W32.
5881
5882 * w32term.c (help_echo_window): New variable.
5883 (syms_of_w32term): staticpro it.
5884 (note_mode_line_highlight): Set it.
5885 (XTextExtents16): Removed as there is no equivalent on W32.
5886 (x_compute_glyph_string_overhangs): Incomplete body removed, as
5887 the X way of doing this will not work for W32.
5888 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
5889 (x_draw_image_foreground): Avoid drawing outside of the clip area
5890 when image doesn't have a mask.
5891 (note_mouse_highlight): Process overlays in the right order of
5892 priority. Set help_echo_window.
5893 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
5894 because that's more visible for large images.
5895
5896 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
5897 name to single_keymap_panes.
5898 (w32_menu_show): Set wv->title when dealing with titles.
5899 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
5900
6e69ab8c
MB
59012000-08-21 Miles Bader <miles@gnu.org>
5902
5903 * minibuf.c (do_completion): Try again if we rewrite the input
5904 string, but no completion was done, so that any completion message
5905 will be correct.
5906
511bd4eb
GM
59072000-08-20 Gerd Moellmann <gerd@gnu.org>
5908
5909 * xfaces.c (lface_equal_p): Compare strings differently.
5910 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
5911 (realize_tty_face): Use them.
5912 (syms_of_xfaces): Initialize new variables.
5913 (map_tty_color): New function, extracted from realize_tty_face.
5914 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
5915 foreground or background color, store the new color name in the
5916 realized face; previous code trying to do this had no effect.
5917 (realize_tty_face): Use map_tty_color.
5918 (Fclear_face_cache): Set face_change_count and ensure thorough
5919 redisplay.
5920
1433385f
GM
59212000-08-19 Gerd Moellmann <gerd@gnu.org>
5922
511bd4eb
GM
5923 * undo.c (record_first_change, record_marker_adjustment): Don't
5924 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 5925
419ac0a2
KH
59262000-08-18 Kenichi Handa <handa@etl.go.jp>
5927
5928 * coding.c (decode_coding_string): Set members consumed,
5929 consumed_char, produced, produced_char of *coding correctly. If
5930 decode_coding doesn't consume any byte, don't try anymore.
5931 (encode_coding_string): Likewise.
5932
7eb9e30d
GM
59332000-08-18 Gerd Moellmann <gerd@gnu.org>
5934
511bd4eb
GM
5935 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
5936 conditional have void type, for Standard C compilers.
7eb9e30d
GM
5937
5938 * xdisp.c (redisplay_internal): Compare windows for equality with
5939 EQ, instead of applying XWINDOW to something that might not
5940 be a window.
52283633 5941
dd34a735
KH
59422000-08-18 Kenichi Handa <handa@etl.go.jp>
5943
5944 * fontset.c (Finternal_char_font): Search only the selected frame
5945 for a window of the current buffer.
5946
385ff9e3
GM
59472000-08-18 Gerd Moellmann <gerd@gnu.org>
5948
511bd4eb 5949 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
5950 Lisp_Objects.
5951
385ff9e3
GM
5952 * keyboard.c (kbd_buffer_get_event): Handle the case that the
5953 second half of a HELP_EVENT is found at the start of kbd_buffer.
5954
d6abb4c7
MB
59552000-08-18 Miles Bader <miles@gnu.org>
5956
4618074a
MB
5957 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
5958
d6abb4c7
MB
5959 * editfns.c (save_restriction_save): Rewrite to use markers.
5960 (save_restriction_restore): Rewrite to understand new form of data
5961 saved by save_restriction_save.
5962 (Fsave_restriction): Remove cautionary note in doc-string.
5963
a7b28523
GM
59642000-08-17 Gerd Moellmann <gerd@gnu.org>
5965
5966 * fileio.c (build_annotations): Add a comment explaining the
5967 return value of format-annotate-function. Replace a spurious call
5968 to Flength with a CONSP test. Call format-annotate-function with
5969 a fifth arg specifying how many times the function is been called
5970 in a row, to let it choose temporary buffers appropriately.
5971
03c9ed77
DL
59722000-08-17 Dave Love <fx@gnu.org>
5973
5974 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
5975 declare make_temp_name twice.
5976
52283633 5977 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
03c9ed77
DL
5978 (unreadpure): Give it an arg.
5979
5980 * unexalpha.c: Prototype fatal_unexec, mark_x,
5981 update_dynamic_symbols. Declare unexec as void.
5982
5983 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
5984 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
5985
5986 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
52283633 5987 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
03c9ed77
DL
5988
5989 * alloca.c: Use #error.
5990 [POINTER_TYPE]: Use it.
5991
5992 * eval.c (Fdefvar): Doc fix.
5993
5994 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
5995 INITIALIZE_INTERVAL.
5996
5997 * buffer.h: Avoid DECLARE_INTERVALS.
5998
5999 * config.in: Add size_t.
6000
aae41d97
EZ
60012000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
6002
6003 * w16select.c (set_clipboard_data): If there's not enough memory
6004 to put text into clipboard, return 1, as Fw16_set_clipboard_data
6005 expects. In case of other failures, return 3.
6006 (system_error_msg): New error message.
6007 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
6008 system_error_msg.
6009
65aa5e85
GM
60102000-08-16 Gerd Moellmann <gerd@gnu.org>
6011
6012 * term.c (write_glyphs): Also turn off inverse video after turning
6013 off other appearances in case TS_exit_attribute_mode is not equal
6014 to TS_end_standout_mode.
6015 (insert_glyphs): Turn inverse video on/off for each run of glyphs
6016 with the same face.
6017 (turn_off_face): Reset standout_mode only if
6018 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
6019 is equal to TS_end_standout_mode.
6020
ece23901
KH
60212000-08-16 Kenichi Handa <handa@etl.go.jp>
6022
9d7bcb2e
KH
6023 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
6024 sequence at the end of the source block.
6025
ece23901
KH
6026 * ccl.c (Fccl_program_p): Docstring modified.
6027 (Fccl_execute): Likewise.
6028 (Fccl_execute_on_string): Likewise.
6029
5e30eaa2
EZ
60302000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
6031
6032 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
6033
290602fd
KH
60342000-08-16 Kenichi Handa <handa@etl.go.jp>
6035
6036 The following changes are mainly to fix bugs of
6037 encode/decode-coding-string failing if encoding/decoding return
6038 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
6039 variable conversion_buffer.
6040
6041 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
6042 decrement dst_end to avoid buffer overflow in the later call of
6043 string_as_multibyte
6044
6045 * coding.h (conversion_buffer_size, conversion_buffer)
6046 (get_conversion_buffer): Extern deleted.
6047
6048 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
6049 (conversion_buffer, conversion_buffer_size): Variables deleted.
6050 (get_conversion_buffer): Function deleted.
6051 (struct conversion_buffer): New structure.
6052 (MAX_ALLOCA): New macro.
6053 (allocate_conversion_buffer): New macro.
6054 (extend_conversion_buffer, free_conversion_buffer): New functions.
6055 (ccl_coding_driver): Set coding->result.
6056 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
6057 this is the last block of source.
6058 (encode_coding): Likewise. Handle the source block as the last
6059 one only when the whole source text is consumed.
6060 (decode_coding_string): Handle the case that the output buffer is
6061 too small to decode the whole source text. Use
6062 allocate_conversion_buffer, extend_conversion_buffer and
6063 free_conversion_buffer, not get_conversion_buffer.
6064 (encode_coding_string): Likewise.
6065 (init_coding): Function deleted.
52283633 6066 (init_coding_once): Delete code to initialize conversion_buffer_size.
290602fd
KH
6067
6068 * emacs.c (main): Don't call init_coding.
6069
52283633 6070 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
290602fd
KH
6071
6072 * term.c (write_glyphs): Use a locally declared conversion_buffer.
6073 (insert_glyphs): Likewise.
6074
6075 * w32console.c (write_glyphs): Use a locally declared
6076 conversion_buffer.
6077
b9f80d41
EZ
60782000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
6079
6080 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
6081 member of display_info is NULL.
6082
32dc52f7
GM
60832000-08-15 Gerd Moellmann <gerd@gnu.org>
6084
52283633 6085 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
58ed0d3b 6086
32dc52f7 6087 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 6088 appearances with capability `me'.
32dc52f7
GM
6089 (write_glyphs): Switch on inverse video before each face change.
6090
4eb22d33
DL
60912000-08-14 Dave Love <fx@gnu.org>
6092
6093 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
6094 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
6095 (lisp_free): Declare and make static.
6096
6097 * window.c: Fix embedded comment.
6098 (syms_of_window): Fix doc string.
6099
90cbf47e
GM
61002000-08-14 Gerd Moellmann <gerd@gnu.org>
6101
52283633 6102 * keymap.c (push_key_description): If C without modifiers is < 32,
90cbf47e
GM
6103 make sure to print `C-' before `M-', like in the manual.
6104
440fc135
GM
61052000-08-11 Gerd Moellmann <gerd@gnu.org>
6106
6107 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
6108 since they aren't relocated anymore.
52283633 6109 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
440fc135
GM
6110
6111 * xdisp.c (try_cursor_movement): Fix handling of cursor in
52283633 6112 partially visible line which is smaller than the window's height.
440fc135 6113
6e264fad
KH
61142000-08-11 Kenichi Handa <handa@etl.go.jp>
6115
6116 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
52283633 6117 the multibyte form of eight-bit-control characters.
6e264fad
KH
6118 (Fccl_execute_on_string): Initialize ccl->multibyte.
6119
6120 * ccl.h (struct ccl_program): New member multibyte.
6121
6122 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
6123
c371f69a
KH
61242000-08-11 Kenichi Handa <handa@etl.go.jp>
6125
6126 * regex.c (regex_compile) <normal_char>: Pay attention to
6127 multibyteness.
6128 (analyse_first) <exactn>: Setup fastmap correctly for
6129 eight-bit-control characters.
6130
61312000-08-11 Kenichi Handa <handa@etl.go.jp>
6132
52283633 6133 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
c371f69a
KH
6134
6135 * keyboard.c (make_lispy_event): Handle the new event type
6136 multibyte_char_keystroke.
6137
6138 * xterm.c: Include coding.h.
6139 (XTread_socket): Work around a bug of XmbLookupString. If the
6140 input is from XIM, decode it according to the current locale. In
6141 that case, generate multibyte_char_keystroke events.
6142
b8ddbe71
KH
61432000-08-11 Kenichi Handa <handa@etl.go.jp>
6144
6145 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
6146 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
6147
47589c8c
GM
61482000-08-10 Gerd Moellmann <gerd@gnu.org>
6149
6150 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
6151 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
6152 (move_it_in_display_line_to): Record iterator's ascent and descent
6153 before producing glyphs, and restore them when we know the glyph
6154 doesn't fit on the line.
6155 (move_it_to): Restructured so that it's easier to debug. If
6156 moving to a vpos, and not moving to an x or character position,
6157 stop as soon as the specified vpos is reached; don't move further
6158 into that line because that might change the computed line height.
6159 (try_cursor_movement): New function, extracted from the cursor
6160 movement branch of redisplay_window. If ending on a partially
6161 visible line, don't try to scroll if the cursor line is taller
6162 than the window.
6163 (redisplay_window): Use try_cursor_movement.
6164
6165 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
6166 because that function doesn't cope with variable-height lines.
6167
6168 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
6169 box cursor because that's better visible for large images.
52283633 6170
c51bacd6
MB
61712000-08-10 Miles Bader <miles@gnu.org>
6172
6173 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
6174
bea56df7
GM
61752000-08-10 Gerd Moellmann <gerd@gnu.org>
6176
6177 * xdisp.c (Vmessages_buffer_name): New variable.
6178 (message_dolog): Use it.
6179 (syms_of_xdisp): Initialize it.
6180
99cd7364
EZ
61812000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
6182
52283633 6183 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
99cd7364
EZ
6184 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
6185 redundant now that keyboard.h is included.
6186
7d093d56
EZ
61872000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
6188
6189 * keyboard.c (kbd_buffer_events_waiting): New function.
6190
6191 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
6192
6193 * msdos.c: Include keyboard.h.
6194 (XMenuActivate): Empty no_event events from the event buffer. If
6195 no events are left after that, call clear_input_pending.
6196 (mouse_clear_clicks): New function, code moved from mouse_init.
6197 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
6198 mouse driver to ``forget'' any past clicks.
6199
6200 * Makefile.in (msdos.o): Depend on keyboard.h.
6201
41e757a6
GM
62022000-08-09 Gerd Moellmann <gerd@gnu.org>
6203
8e7bd231
GM
6204 * lisp.h (input_pending): External declaration.
6205
6206 * dispextern.h (Qredisplay_dont_pause): Declare extern.
52283633 6207
8e7bd231
GM
6208 * xdisp.c (echo_area_display): Display thoroughly if input is
6209 pending. Bind redisplay-dont-pause to t during the redisplay.
6210 in case input is pending.
6211
6212 * dispnew.c (Qredisplay_dont_pause): New variable.
6213 (syms_of_display): Initialize and staticpro it.
6214 (update_frame_1): Don't interrupt the display for pending input if
6215 redisplay_dont_pause is set.
52283633 6216
43028b7e
GM
6217 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
6218
41e757a6
GM
6219 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
6220
2f2174fa
KH
62212000-08-09 Miles Bader <miles@lsi.nec.co.jp>
6222
6223 * callproc.c (Fcall_process): Terminate the unwind-protect around
6224 the post-read-conversion of coding system.
6225
0a6fd67e
MB
6226 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
6227 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
6228 * buffer.h (overlays_at): Update prototype.
6229 * xdisp.c (next_overlay_change): Update call to overlays_at.
6230 * xfaces.c (face_at_buffer_position): Likewise.
6231 * textprop.c (Fget_char_property): Likewise.
6232 * xterm.c (note_mouse_highlight): Likewise.
6233
0c80756e
MB
6234 * minibuf.c (do_completion): Don't consider a simple change of
6235 case as `completion'.
6236
975f250a
KR
62372000-08-08 Ken Raeburn <raeburn@gnu.org>
6238
52283633 6239 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
b347b3fd
KR
6240 * undo.c (record_delete): Make sure last_point_position_buffer is
6241 a buffer before comparing pointers.
6242
6243 * coding.h (decode_coding_string): Declare.
6244
6245 * intervals.h (Fprevious_single_char_property_change): Declare.
6246
6247 * textprop.c (Fprevious_single_char_property_change): Don't do
6248 arithmetic directly on lisp objects.
6249
52283633 6250 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
b347b3fd
KR
6251
6252 * keyboard.h (menu_item_eval_property): Declare.
6253
6254 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
6255 reuse as buffer name, instead of recreating (and discarding) every
6256 time a message is logged.
6257 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
6258 (current_message_1, truncate_message_1, set_message_1)
6259 (display_echo_area_1, resize_mini_window_1): Signatures changed.
6260 (current_message, truncate_echo_area, display_echo_area)
6261 (resize_echo_area_axactly): Changed calls.
b347b3fd 6262
975f250a 6263 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 6264 Lisp object.
975f250a 6265 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 6266 must be an integer, not a Lisp object.
975f250a 6267
46dc9912
KH
62682000-08-08 Kenichi Handa <handa@etl.go.jp>
6269
6270 * charset.c (Fchar_width): Doc fix.
6271
9f6d1a6c
GM
62722000-08-08 Gerd Moellmann <gerd@gnu.org>
6273
6274 * charset.c (Fstring_width): Doc fix.
6275
ff3d9573
GM
62762000-08-07 Gerd Moellmann <gerd@gnu.org>
6277
41e757a6 6278 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
6279 line, clear ascent and descent members of the iterator structure;
6280 the height of the continued line does not affect the height of the
6281 continuation line.
6282 (make_cursor_line_fully_visible): Do nothing if cursor is on a
6283 line taller than the window.
6284 (redisplay_window) <forced window start>: Handle case that the
6285 middle of the window is not found in any row.
6286 (dump_glyph_row): Show more information.
6287 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
6288 first text line in a glyph matrix.
6289
6290 * xterm.c (x_draw_image_foreground): Avoid drawing outside
6291 of the clip area when image doesn't have a mask.
6292
70fc58b3
GM
6293 * fns.c (sweep_weak_table): Fix survival conditions for
6294 key-or-value and key-and-value weakness.
6295
6296 * .gdbinit (xhashtable): New command.
6297
ac0e96ee
GM
6298 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
6299 tables out of the list of all weak hash tables.
6300
ff3d9573
GM
6301 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
6302 a new buffer is created, make sure echo_area_buffer[] references
6303 the new buffer.
6304
e0d8827b
EZ
63052000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
6306
6307 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
6308 the doc string.
6309
c6f35378
KH
63102000-08-07 Kenichi Handa <handa@etl.go.jp>
6311
6312 * syntax.c (skip_chars): Fix previous change. Make the handling
6313 of unibyte string consistent with that of regex search.
6314
1fd4c450
GM
63152000-08-05 Gerd Moellmann <gerd@gnu.org>
6316
e49aa397
GM
6317 * xmenu.c (popup_get_selection): Use xfree instead of free.
6318
6319 * fileio.c (Finsert_file_contents): Use xfree instead of free.
6320
6321 * editfns.c (Ftranspose_regions): Use xfree instead of free.
6322
6323 * callproc.c (child_setup): Use xfree instead of free.
6324
6325 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
6326 instead of malloc.
6327 (run_mac_command, closedir): Use `xfree' instead of `free'.
6328
6329 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
6330
6331 * eval.c (error): Use xfree instead of free.
6332
1fd4c450
GM
6333 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
6334
6335 * fns.c: Replace `illegal' with `invalid'.
e49aa397 6336 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 6337
82d497fc
KH
63382000-08-05 Kenichi Handa <handa@etl.go.jp>
6339
6340 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
6341 conversion.
6342
59f953a2
NF
63432000-08-04 Noah Friedman <friedman@splode.com>
6344
6345 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
6346 docstring.
6347
688351f2
GM
63482000-08-04 Gerd Moellmann <gerd@gnu.org>
6349
6350 * syntax.c (skip_chars): Fix typo in error message.
6351
2dad51cc
AS
63522000-08-04 Andreas Schwab <schwab@suse.de>
6353
6354 * m/ia64.h: Moved from s/ia64.h.
6355
99bb2c60
KH
63562000-08-04 Kenichi Handa <handa@etl.go.jp>
6357
082a1df2
KH
6358 * process.c (read_process_output): Big simplification. Handle
6359 composition and post-read-conversion of coding system correctly.
6360 (send_process): Handle composition correctly.
6361
6362 * callproc.c (Fcall_process): Handle post-read-conversion of
6363 coding system if any.
6364
99bb2c60
KH
6365 * coding.c (decode_coding_iso2022): More strict check for handling
6366 single shifting.
082a1df2
KH
6367 (coding_restore_composition): Pay attention to the case that
6368 cmp_data is not set properly (because of invalid code in the
6369 source text).
6370 (run_pre_post_conversion_on_str): Include text properties in the
6371 resulting string.
6372 (decode_coding_string): Set members of coding correctly.
99bb2c60 6373
f4988be7
GM
63742000-08-03 Gerd Moellmann <gerd@gnu.org>
6375
6376 * s/ia64.h: New file.
6377
6378 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
6379 Use NULL instead of 0 at the end of variable argument list of
6380 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
6381 sizeof (int) < sizeof (void *).
6382
6383 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
6384 of variable argument lists of XtVaGetValues and XtVaSetValues.
6385
6386 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
6387 variable argument lists of XtVaGetValues and XtVaSetValues.
6388
ead53494
GM
63892000-08-02 Gerd Moellmann <gerd@gnu.org>
6390
6391 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
6392 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
6393
6394 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
6395 prototype.
6396
6397 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
6398 in call to Fsingle_key_description.
6399
6400 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
6401 Callers changed.
6402
64032000-08-02 Colin Walters <walters@cis.ohio-state.edu>
6404
6405 * window.c (display_buffer_reuse_frames): New variable.
6406 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
6407 frames displaying BUFFER.
52283633 6408 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
ead53494 6409
10b0f752
MB
64102000-08-01 Miles Bader <miles@gnu.org>
6411
6412 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
6413 when to constrain NEW_POS (they were pretty screwed up before).
6414
16425c4a
EZ
64152000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
6416
6417 * msdos.c (run_msdos_command): Save and restore the master
6418 environment, for the case that child_setup signals an error.
6419 When mirroring slashes in DOS shell commands, don't fail when
6420 argv[2] has embedded blanks.
da288c14
EZ
6421 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
6422 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
6423 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
6424
6425 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
6426 using alloca; free it after run_msdos_command returns.
6427
27f73852
DL
64282000-07-27 Dave Love <fx@gnu.org>
6429
52283633
SM
6430 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
6431 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
27f73852
DL
6432
6433 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
6434
c0261b5e
EZ
64352000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
6436
6437 * editfns.c (lisp_time_argument): Fix last change.
6438
b548072f
GM
64392000-07-27 Gerd Moellmann <gerd@gnu.org>
6440
3ab82477
GM
6441 * fns.c (Fdelete): Make it work on vectors and strings in addition
6442 to lists.
6443
b548072f
GM
6444 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
6445 (syms_of_fns): Initialize new variables.
52283633 6446 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
b548072f
GM
6447 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
6448 weakness, with t meaning the same as `key-and-value'.
6449
91ae8751
KH
64502000-07-27 Kenichi Handa <handa@etl.go.jp>
6451
6452 * coding.h (struct coding_system): Member safe_charset deleted.
6453
6454 * coding.c (Qsafe_charsets): This variable deleted.
52283633
SM
6455 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
6456 New variables.
91ae8751
KH
6457 (coding_safe_chars): New function.
6458 (CODING_SAFE_CHAR_P): New macro.
6459 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
52283633 6460 checking safe_charsets member of the coding system. Caller changed.
91ae8751
KH
6461 (detect_coding_iso2022): New local variable safe_chars.
6462 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
6463 safe_charsets member of the coding system.
6464 (decode_coding_iso2022): New local variable safe_chars.
6465 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
6466 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
6467 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
6468 (ENCODE_UNSAFE_CHARACTER): New macro.
6469 (encode_coding_iso2022): New local variable safe_chars. Check
6470 unsafe chars.
6471 (setup_coding_system): Delete the code to initialize
6472 coding->safe_charses
6473 (intersection, find_safe_codings): New functions.
6474 (Ffind_coding_systems_region_internal): New function.
6475 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
6476 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
6477 variable and initialize it.
6478
6479 * fns.c (char_table_ref_and_index): New function.
6480
6481 * lisp.h (char_table_ref_and_index): Add prototype.
6482
34a7a267
SS
64832000-07-26 Sam Steingold <sds@gnu.org>
6484
6485 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 6486 (Ffloat_time): New built-in Lisp function.
34a7a267 6487
a95cb10a
GM
64882000-07-26 Gerd Moellmann <gerd@gnu.org>
6489
3353ef5a
GM
6490 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
6491 for the character code.
6492
6493 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
6494 GNU/Linux.
6495
a95cb10a
GM
6496 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
6497 if called for a popup menu.
6498 (xmenu_show): Store help string in widget values.
6499
b4a12321
DL
65002000-07-26 Dave Love <fx@gnu.org>
6501
6502 * syswait.h: Move some definitions.
6503 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
6504 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
6505 perspicuous definitions.
6506 (WTERMSIG): Fix bit pattern used.
6507
13f5ad37
KH
65082000-07-26 Kenichi Handa <handa@etl.go.jp>
6509
6510 * print.c (print_object): If vector printing is truncated, print
6511 "..." to indicate it as well as the case of list printing.
6512
070fe99c
GM
65132000-07-25 Gerd Moellmann <gerd@gnu.org>
6514
969065c3
GM
6515 * xdisp.c (next_element_from_display_vector): Improve comments.
6516
6517 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
6518 for the character code, and the rest for the face id as in 20.x.
6519 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
6520
6521 * window.c (window_display_table): Cleaned up.
6522
070fe99c
GM
6523 * syntax.c (Fforward_word): Add last arg nil in call of
6524 Fconstrain_to_field.
6525
bad77ef7
EZ
65262000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
6527
969065c3 6528 * fileio.c (Frename_file) [DOS_NT]: If the file names are
52283633
SM
6529 identical but for the letter-case, don't call
6530 barf_or_query_if_file_exists.
bad77ef7 6531
c28da489
MB
65322000-07-25 Miles Bader <miles@gnu.org>
6533
6534 * editfns.c (find_field): Honor special `boundary' fields.
6535 (Qboundary): New variables.
6536 (syms_of_editfns): Initialize Qboundary.
6537 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
6538 Use scan_buffer instead of find_before_next_newline, because it
6539 allows us to detect the boundary case where there's a newline at
6540 the search limit.
6541 * lisp.h (Fconstrain_to_field): Update external declaration.
6542
e3c31fd5
GM
65432000-07-24 Gerd Moellmann <gerd@gnu.org>
6544
6545 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
6546 if that is nil.
c28da489 6547
c66c29a2
DL
65482000-07-24 Dave Love <fx@gnu.org>
6549
6550 * s/sunos4-0.h, s/sol2.h:
6551 (LIBS_TERMCAP): Move from m/sparc.h.
6552
6553 * m/sparc.h (TERMINFO): Moved to system files (probably only
6554 relevant for sunos4 judging by its vintage).
6555 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
6556 __arch64__.
6557
fbe0a958
EZ
65582000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
6559
6560 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
6561 name to single_keymap_panes.
6562
7d88e5c9
AS
65632000-07-24 Andreas Schwab <schwab@suse.de>
6564
6565 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
6566
e024b101
GM
65672000-07-24 Gerd Moellmann <gerd@gnu.org>
6568
6569 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
6570 parameters instead of using int parameters. Expect FN to accept
6571 EMACS_INT parameters.
6572 (display_echo_area, resize_echo_area_axactly, current_message)
6573 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
6574 with new argument list.
6575 (resize_mini_window_1): New callback function.
6576 (current_message_1, truncate_message_1, set_message_1): Change
52283633 6577 parameter lists to the new format expected by with_echo_area_buffer.
e024b101 6578
25c1a9ce
KH
65792000-07-24 Kenichi Handa <handa@etl.go.jp>
6580
6581 * fontset.c (fontset_ref): Remove INLINE declaration.
6582 (fontset_ref_via_base): Likewise.
6583 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
6584 to downcase.
6585
7f987ac0
EZ
65862000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
6587
6588 * msdos.c (IT_note_mouse_highlight): Process overlays in the
6589 correct order of priority. If help echo was found in an overlay,
6590 use that overlay as the object in which the help echo was found.
6591
e2db3069
MB
65922000-07-22 Miles Bader <miles@gnu.org>
6593
6594 * textprop.c (Fprevious_single_char_property_change): The initial
6595 property value should be from the position preceding POSITION, not
6596 following it.
6597
5e3203e4
EZ
65982000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
6599
6600 * coding.c (syms_of_coding): Doc fix for
6601 inhibit-iso-escape-detection.
6602
62145073
GM
66032000-07-21 Gerd Moellmann <gerd@gnu.org>
6604
c20aeb83
GM
6605 * xterm.c (note_mouse_highlight): Process overlays in the right
6606 order of priority.
34a7a267 6607
743934db
GM
6608 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
6609
6610 * xterm.c (note_mouse_highlight): If help-echo was found in an
52283633 6611 overlay, use that overlay as the object in which the help was found.
743934db 6612
d1dc7e43 6613 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 6614
62145073
GM
6615 * window.c (foreach_window): Instead of a fake variable argument
6616 list, take one USER_DATA argument.
6617 (foreach_window_1): Likewise, and call callback functions with two
6618 args, the window and USER_DATA.
6619 (struct check_window_data): New struct.
6620 (check_window_containing): Use it.
6621 (window_from_coordinates): Set up a struct check_window_data for
6622 foreach_window.
6623 (add_window_to_list, freeze_window_start): Change parameters
6624 according to new calling convention.
6625
6626 * window.h (foreach_window): Change prototype.
6627
6628 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
6629
66302000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
6631
6632 * xmenu.c (menu_help_callback): Call show_help_echo with
6633 additional arguments OBJECT and POS.
6634
11270583
KH
66352000-07-21 Kenichi Handa <handa@etl.go.jp>
6636
07b14857
KH
6637 * data.c (Faset): Allow storing any multibyte character in a
6638 string. Convert unibyte string to multibyte if necessary.
6639
11270583
KH
6640 * xfns.c (x_encode_text): New function.
6641 (x_set_name): Use x_encode_text.
6642 (x_set_title): Likewise.
6643
6644 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
6645
6646 * xterm.h (x_encode_text): Add prototype.
6647
bc75b4fd
DL
66482000-07-20 Dave Love <fx@gnu.org>
6649
6650 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
6651 xfree, not free.
6652
48c14970
EZ
66532000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
6654
6655 * msdos.c (help_echo_window): New variable.
6656 (syms_of_msdos): Initialize and staticpro it.
6657 (IT_note_mode_line_highlight): Set help_echo_window.
6658 (IT_note_mouse_highlight): Ditto.
6659 (dos_rawgetc): Store help_echo_window in the second event produced
6660 for HELP_EVENTs.
6661
6662 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
6663 Record the object that generated the help echo and the position of
6664 that object in help_echo_object and help_echo_pos. Record that
6665 some glyphs in a row are displayed in mouse-face.
6666 (IT_update_begin): Don't clear mouse highlight unless one of the
6667 enabled glyph rows is marked as being displayed in mouse-face.
6668 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
6669 and position recorded in help_echo_object and help_echo_pos to the
6670 event queue.
6671 (IT_menu_display): Accept a new argument PN: the pane number of
6672 the current menu pane. Record the pane number and the item
6673 number of the item which has associated help string.
6674 (XMenuActivate): Update the prototype for help_callback in
6675 function declaration. Call IT_menu_display with the current menu
6676 pane number as an additional argument. Call help_callback with
6677 two additional arguments: the pane number and the item number of
6678 the menu item associated with the help text.
6679 (help_echo_object, help_echo_pos): New variables.
6680 (syms_of_msdos): Initialize them and staticpro help_echo_object.
6681
6682 * msdos.h (XMenuActivate): Update prototype.
6683
4279296d
GM
66842000-07-19 Gerd Moellmann <gerd@gnu.org>
6685
47db06aa
GM
6686 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
6687 Add some more prototypes.
6688
6689 * xterm.c, xterm.h: Add some more prototypes.
6690
6691 * lisp.h (Fnext_single_char_property_change): Add prototype.
6692
6693 * dispnew.c (direct_output_for_insert): Remove confusing
6694 outer local variable mouse_face_overwritten_p.
6695 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
6696
4279296d
GM
6697 * alloc.c (allocate_string_data): Don't copy old string contents.
6698
670acd62
KH
66992000-07-19 Kenichi Handa <handa@etl.go.jp>
6700
6701 * coding.c (code_convert_region): Delete text properties before
6702 shrinking the conversion region.
6703
7cea38bc
GM
67042000-07-18 Gerd Moellmann <gerd@gnu.org>
6705
dc1cac59
GM
6706 * dispnew.c (update_text_area): Write the whole row if it
6707 has mouse-face in it.
6708
85a8aca9
GM
6709 * xfaces.c (face-alternative-font-family-alist): Remove
6710 DEFVAR_LISP; staticpro instead.
6711
34a7a267 6712 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
6713 new arguments.
6714
6715 * keyboard.c (show_help_echo): Add parameter WINDOW.
6716 (read_char): Call show_help_echo with window extracted from Lisp
6717 help event.
6718 (gen_help_event): Add parameter WINDOW.
6719
6720 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
6721
6722 * xterm.c (help_echo_window): New variable.
52283633 6723 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
7cea38bc
GM
6724 (XTread_socket): Pass help_echo_window to gen_help_event.
6725 (syms_of_xterm): Initialize and staticpro help_echo_window.
6726
f8276b77
DL
67272000-07-18 Dave Love <fx@gnu.org>
6728
52283633 6729 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
f8276b77 6730
088831a6
GM
67312000-07-18 Gerd Moellmann <gerd@gnu.org>
6732
3d6cd763
GM
6733 * alloc.c (allocate_string_data): If string had already data
6734 assigned, copy old contents to new string data.
6735
6736 * coding.c (syms_of_coding): Fix typo in spelling of variable
6737 `inhibit-iso-escape-detection'.
6738
088831a6
GM
6739 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
6740
6741 * Makefile.in: Add dependencies on dispextern.h.
6742 (alloca.o): Don't define malloc and define EMACS_FREE instead of
6743 `free'; both can conflict with system header files.
6744
bc8a8d55
KH
67452000-07-18 Kenichi Handa <handa@etl.go.jp>
6746
6747 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
6748 undefined.
6749
069f5950
DL
67502000-07-18 Dave Love <fx@gnu.org>
6751
6752 * window.c (Fwindow_list): Declare arg `window'.
6753
aa96c820
KH
67542000-07-18 Kenichi Handa <handa@etl.go.jp>
6755
6756 * coding.c (setup_coding_system): Don't override the explicitly
6757 specified designations.
6758
06be8d32
MB
67592000-07-15 Miles Bader <miles@gnu.org>
6760
6761 * editfns.c (char_property_eq, char_property_stickiness): Renamed
6762 from `text_property_eq' and `text_property_stickiness', respectively.
6763 (find_field, Fconstrain_to_field, char_property_eq)
6764 (char_property_stickiness): Changed to call char-property functions
6765 instead of text-property-only ones.
6766
6767 * textprop.c (Fnext_single_char_property_change): Made a subr (was
6768 `next_single_char_property_change'). Do more error checking, and
6769 cleanup limit behavior.
6770 (Fprevious_single_char_property_change): New function.
6771 (syms_of_textprop): Initialize new subrs.
6772
6773 * xdisp.c (display_prop_end, invisible_text_between_p):
6774 Call Fnext_single_char_property_change instead of
6775 next_single_char_property_change.
6776
3fddcdc3
JR
67772000-07-15 Jason Rumney <jasonr@gnu.org>
6778
6779 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
6780 after menu is finished with.
6781 (add_menu_item): Only consider wv->title as a menu title.
6782 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
6783
6784 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
6785 null title.
6786 (FONT_REGEXP): Remove unused macro, and its sub-components.
6787 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
6788
6789 * w32term.c (help_echo_object, help_echo_pos): New variables.
6790 (note_mode_line_highlight): Store additional information about the
6791 help-echo in help_echo_object and help_echo_pos. Check both
6792 `local-map' and `keymap' properties for changing the cursor
6793 (note_mouse_highlight): Store additional information about the
6794 help-echo in help_echo_object and help_echo_pos.
6795 (note_tool_bar_highlight): Set help_echo_object to nil and
6796 help_echo_pos to -1.
6797 (w32_read_socket): Use gen_help_event instead of filling
6798 input_events manually.
6799 (syms_of_w32term): Staticpro help_echo_object.
6800 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
52283633 6801 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
3fddcdc3
JR
6802 (x_clear_mouse_face): New function.
6803 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
6804 (x_update_window_begin): No need to turn off the mouse
6805 highlight here.
6806 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 6807 depending on whether they contain glyphs highlighted in mouse-face.
3fddcdc3
JR
6808 (x_fill_stretch_glyph_string): Consume runs of stretch
6809 glyphs instead of a single one.
6810 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
6811 with new argument list.
6812 (x_set_glyph_string_gc): Make sure the face's GC is valid.
6813 (x_append_glyph, x_append_composite_glyph)
6814 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
6815 changes in struct glyph starting 1999-12-27. See comments for
6816 xterm.c on 2000-07-05.
6817
178c5d9c
SS
68182000-07-14 Sam Steingold <sds@gnu.org>
6819
6820 * xfaces.c (realize_x_face): Fix the last patch:
6821 check `default_face' before dereferencing.
6822
6fe533f6
DL
68232000-07-14 Dave Love <fx@gnu.org>
6824
069f5950 6825 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 6826
dd7b81cf
KH
68272000-07-14 Kenichi Handa <handa@etl.go.jp>
6828
0693904a 6829 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 6830 default_face's fontset, not using the default fontset.
0693904a 6831
dd7b81cf
KH
6832 * coding.c (inhibit_iso_escape_detection): New variable.
6833 (syms_of_coding): Make it a Lisp variable.
6834 (detect_coding_iso2022): If inhibit_iso_escape_detection is
6835 nonzero, ignore ISO2022's escape sequence.
6836
d5aa31d8
GM
68372000-07-14 Gerd Moellmann <gerd@gnu.org>
6838
e5acf0ca
GM
6839 * alloca.c (malloc) [emacs]: Define as xmalloc.
6840
bd23a692
GM
6841 * xfns.c (Fx_show_tip): If frame parameters contain a position,
6842 use that instead of the mouse position. Add parameters DX and DY.
6843
6844 * dispextern.h (Fx_show_tip): Adjust number of parameters
6845 in prototype.
6846
9662da0b
GM
6847 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
6848 if HELP is a function, call it with OBJECT and POS as parameters
6849 to get the help to display.
6850 (gen_help_event, kbd_buffer_store_help_event): New functions.
6851 (kbd_buffer_get_event): Construct the Lisp help-event differently.
6852 (read_char): Call show_help_echo with new parameters.
6853
178c5d9c 6854 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
6855 Add prototypes.
6856
6857 * xterm.c (help_echo_object, help_echo_pos): New variables.
6858 (note_mode_line_highlight): Store additional information about the
6859 help-echo in help_echo_object and help_echo_pos. Check both
6860 `local-map' and `keymap' properties for changing the cursor
6861 (note_mouse_highlight): Store additional information about the
6862 help-echo in help_echo_object and help_echo_pos.
6863 (note_tool_bar_highlight): Set help_echo_object to nil and
6864 help_echo_pos to -1.
6865 (XTread_socket): Use gen_help_event instead of filling
6866 input_events manually.
6867 (syms_of_xterm): Staticpro help_echo_object.
6868
6869 * xmenu.c (menu_highlight_callback): Use
6870 kbd_buffer_store_help_event instead of setting up and input_event
6871 structure manually.
6872
6873 * xdisp.c (eval_form): GCPRO argument sexpr.
6874 (call_function): New function.
6875 (handle_single_display_prop): Use call_function and FUNCTIONP
6876 instead of checking whether if font_height is a symbol and
6877 using eval_form.
6878
6879 * eval.c (internal_condition_case_2): New function.
6880
6881 * lisp.h (FUNCTIONP): New macro.
6882 (internal_condition_case_2, call_function): Add prototypes.
6883
d5aa31d8
GM
6884 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
6885 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
6886 Always set `arg' member of input_events.
6887 (construct_menu_click): Unused function removed.
6888
6889 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
6890
6891 * w32term.c (construct_mouse_click, construct_mouse_wheel)
6892 (construct_drag_n_drop, x_scroll_bar_handle_click)
6893 (w32_read_socket): Always set `arg' member of input_events.
6894
6895 * keyboard.c (show_help_echo): Use eval_form. Add comment.
6896
6897 * lisp.h (eval_form): Add prototype.
6898
6899 * xdisp.c (eval_form): Make it externally visible.
6900
0f1a9b23
GM
69012000-07-13 Gerd Moellmann <gerd@gnu.org>
6902
6903 * xterm.c (x_handle_tool_bar_click): Store the frame in the
6904 frame_or_window slot of TOOL_BAR_EVENT input events instead of
6905 consing. For prefix events, store the frame in the `arg' slot of
6906 the event, otherwise store the key there.
6907 (XTread_socket): Instead of consing, use the frame_or_window slot
52283633 6908 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
0f1a9b23
GM
6909
6910 * xmenu.c (menu_highlight_callback): Store help string in the
6911 `arg' member of the input event; don't cons.
6912 (menubar_selection_callback): Use the `arg' slot of input events
6913 to queue additional information, instead of consing.
6914
6915 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
6916
6917 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
6918 TOOL_BAR_EVENTs.
6919 (w32_read_socket): Adapt to changes in HELP_EVENTs.
6920
6921 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
6922 input events to queue additional information, instead of consing.
6923
6924 * keyboard.c (kbd_buffer_gcpro): Renamed from
6925 kbd_buffer_frame_or_window. Now used for all Lisp objects
6926 referenced from the input queue.
6927 (kbd_buffer_store_event): Always use structure assignment for
6928 copying input events. Record all Lisp objects referenced from
6929 events in kbd_buffer_gcpro.
6930 (kbd_buffer_get_event): Construct Lisp `help-echo' events
6931 differently from input events. Test for prefix menu_bar_events
6932 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
6933 event in kbd_buffer_gcpro to nil.
6934 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
6935 frame_or_window is equal to its arg member as prefix events.
6936 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
6937 used by an input event to nil.
6938 (init_keyboard): Use two times the size of the input queue
6939 for kbd_buffer_gcpro.
6940 (syms_of_keyboard): Likewise.
6941
52283633
SM
6942 * emacs.c (handle_USR2_signal, handle_USR1_signal):
6943 Use USER_SIGNAL_EVENT.
0f1a9b23
GM
6944
6945 * termhooks.h (struct input_event): Add member `arg'.
6946 (MENU_BAR_EVENT): Renamed from menu_bar_event.
6947 (USER_SIGNAL_EVENT): Renamed from user_signal.
6948
6949 * xfaces.c (ASET): Remove definition.
6950
6951 * lisp.h (AREF, ASET, ASIZE): New macros.
6952
6953 * fontset.c (AREF, ASIZE): Remove definitions.
6954
6955 * fns.c (AREF): Remove definition.
178c5d9c 6956
0f1a9b23
GM
6957 * composite.c (AREF): Remove definition.
6958
712eaef2
GM
69592000-07-12 Gerd Moellmann <gerd@gnu.org>
6960
d8ee7803
GM
6961 * dispnew.c (redraw_overlapped_rows): Add missing local.
6962 (scrolling_window): Remove debug code.
6963
712eaef2
GM
6964 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
6965 Before scrolling, turn off a mouse-highlight in the window
6966 being scrolled.
6967
6968 * xterm.c (x_update_window_end): Add parameter
6969 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
6970 redisplay in XTframe_up_to_date.
6971 (x_clear_mouse_face): New function.
6972 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
6973
6974 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
6975 current glyph row.
6976 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
6977 it when any row is written to that contains glyphs highlighted in
6978 mouse-face.
6979 (update_window): Call the window update end hook with new
6980 parameter MOUSE_FACE_OVERWRITTEN_P.
6981 (direct_output_for_insert): Give up if row contains mouse-face.
6982
6983 * dispextern.h (struct redisplay_interface): Add parameter
6984 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
6985 (clear_mouse_face): New function pointer member.
6986
02010917
SM
69872000-07-11 Stefan Monnier <monnier@cs.yale.edu>
6988
6989 * syntax.c (back_comment): Use one switch rather than a few `if's.
6990 Obey open_paren_in_column_0_is_defun_start.
6991 When reverting to the `slow' method, try to nicely handle the case
6992 of nested comments by checking that the comment-starter we found
6993 does indeed match the comment-ender.
6994 (scan_sexps_forward, scan_sexps_forward):
6995 Ignore excessive opening parenthesis rather than throwing an error.
6996
d76c03ea
GM
69972000-07-11 Gerd Moellmann <gerd@gnu.org>
6998
6999 * doc.c (Fsubstitute_command_keys): Handle case that a GC
7000 in Fwhere_is_internal or get_keymap_1 relocates string contents.
7001
7002 * dispnew.c (direct_output_forward_char): Give up if currently
7003 displaying a message instead of the minibuffer contents.
7004
7005 * xterm.c (x_update_window_begin): No need to turn off the mouse
7006 highlight here.
7007 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 7008 depending on whether they contain glyphs highlighted in mouse-face.
d76c03ea
GM
7009
7010 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
7011 compare the mouse_face_p flags of both rows.
7012
7013 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
7014
d55ead18
EZ
70152000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
7016
7017 * keyboard.c (show_help_echo): Accept additional parameter
7018 ok_to_overwrite_keystroke_echo.
7019 (read_char): Call show_help_echo with a zero
7020 ok_to_overwrite_keystroke_echo argument.
52283633 7021 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
d55ead18
EZ
7022 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
7023 ok_to_overwrite_keystroke_echo argument.
7024 * w32menu.c (w32_menu_display_help): Call show_help_echo with
7025 non-zero ok_to_overwrite_keystroke_echo argument.
7026
df75b1a3
GM
70272000-07-10 Gerd Moellmann <gerd@gnu.org>
7028
4b92c49a
GM
7029 * xdisp.c (try_window_id): If changes are all below what is
7030 displayed in the window, and point is in the window, we still
7031 might have to find point on the display.
7032
7033 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
7034 glyphs instead of a single one.
7035 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
7036 with new argument list.
7037 (x_set_glyph_string_gc): Make sure the face's GC is valid.
7038
df75b1a3
GM
7039 * keymap.c (get_keymap_1): Add comment that this function can GC.
7040 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
7041 comment that functions can GC.
7042 (Fset_keymap_parent): GCPRO arg KEYMAP.
7043
4314cf3e
EZ
70442000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
7045
7046 * msdos.c (XMenuActivate): After exiting the menu, restore the
7047 echo area message and erase it.
7048
ab49ce15
KH
70492000-07-10 Kenichi Handa <handa@etl.go.jp>
7050
7051 * fontset.c (Ffontset_info): Make the return value more compatible
7052 with that of Emacs 20.
7053
090a072f
GM
70542000-07-07 Gerd Moellmann <gerd@gnu.org>
7055
7056 * eval.c (Fsignal): Handle case that backtrace_list is null.
7057
f92de4a6
KH
70582000-07-07 Kenichi Handa <handa@etl.go.jp>
7059
7060 * ccl.c (Fccl_execute): Typo fixed.
7061
dd8888a1
GM
70622000-07-06 Gerd Moellmann <gerd@gnu.org>
7063
e5c81191 7064 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 7065
dd8888a1
GM
7066 * window.c (Fwindow_list): Reverse list at the end.
7067 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
7068 means allow windows on OWINDOW's frame, only.
7069 (window_loop): Simplified; use Fwindow_list.
7070
7071 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
7072
485266d0
GM
70732000-07-05 Gerd Moellmann <gerd@gnu.org>
7074
7075 * xterm.c (XTread_socket): Increment handling_signal at the start,
7076 decrement it at the end.
7077
7078 * eval.c (handling_signal): New variable.
7079 (Fsignal): Abort if handling_signal is non-zero.
7080
7081 * lisp.h (handling_signal): External declaration.
178c5d9c 7082
485266d0
GM
7083 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
7084
80fcd514
KR
70852000-07-05 Ken Raeburn <raeburn@gnu.org>
7086
7087 Sound support for NetBSD through "Linux emulation" support:
7088 * config.in (HAVE_SOUNDCARD_H): Undef.
7089 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
7090 * Makefile.in (LIBSOUND): New variable.
7091 (LIBES): Include it.
52283633
SM
7092 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
7093 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
80fcd514
KR
7094 (vox_open): Use DEFAULT_SOUND_DEVICE.
7095 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
7096
d5c5cddd
GM
70972000-07-05 Gerd Moellmann <gerd@gnu.org>
7098
7099 * print.c (print_error_message): If Vsignaling_function is set,
7100 show it in *Messages*.
7101
7102 * lisp.h (Vsignaling_function): External declaration.
7103
7104 * eval.c (Vsignaling_function): New variable.
7105 (Fsignal): Compute it.
7106 (syms_of_eval): Staticpro it.
7107
65171e3a
DL
71082000-07-05 Dave Love <fx@gnu.org>
7109
7110 * syswait.h: Use the autoconf recommended approach. Old code
7111 #if'd out in case we need to revert.
7112
178c5d9c 7113 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 7114
e2c46326
AI
71152000-07-05 Andrew Innes <andrewi@gnu.org>
7116
7117 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
7118 when non-NULL instead of __morecore, to take account of buffer
7119 memory. This also solves a problem with spurious memory warnings
7120 on Windows.
7121
7122 * ralloc.c: Make real_morecore non-static.
7123
7124 * eval.c (internal_condition_case): Comment out abort if
7125 interrupt_input_blocked is not zero.
7126
7127 * makefile.nt: Add support for `bootstrap' and related targets.
7128 Include minimal debug info in emacs.exe in release build.
7129 Remove all dependencies on lisp.h, and fixup some others.
7130
7131 * w32.c (init_environment): Install code from 20.7 for providing
7132 default values for environment variables, based on the
7133 executable's own location.
52283633 7134 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
e2c46326
AI
7135 (sys_socket): Install socket inheritance bug fix from 20.7.
7136
7137 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
7138 here via blockinput.h).
7139
a027a91b
SM
71402000-07-05 Stefan Monnier <monnier@cs.yale.edu>
7141
e4b31601
SM
7142 * w32menu.c (w32_menu_display_help):
7143 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
7144
7145 * keyboard.h (show_help_echo): Declare.
7146
7147 * keyboard.c (show_help_echo): New function, extracted from read_char.
7148 Feval its `msg' argument if it's a cons cell.
7149 (read_char): Use it.
4cf8d9d5 7150 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 7151
178c5d9c 7152 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 7153 (note_tool_bar_highlight, XTread_socket):
178c5d9c 7154 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
7155 (dos_rawgetc):
7156 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
7157 (note_tool_bar_highlight, w32_read_socket):
7158 Do not gratuitously ignore non-string `help-echo' properties.
7159
88d75730
GM
71602000-07-05 Gerd Moellmann <gerd@gnu.org>
7161
969f7e79
GM
7162 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
7163
71201b00
GM
7164 * window.c (delete_all_subwindows): Reset Vwindow_list.
7165
88d75730
GM
7166 * xterm.c (x_append_glyph, x_append_composite_glyph)
7167 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
7168 changes in struct glyph starting 1999-12-27. Some bit-fields of
7169 struct glyph were not set, which made glyphs unequal when compared
7170 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
7171 effects were the result. This also depended on the contents of
7172 memory returned by xmalloc. If flickering happens again, activate
7173 the code in clear_glyph_row that's in #if 0. If the flickering is
52283633 7174 gone with that, chances are that it is caused by something similar.
88d75730
GM
7175
7176 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 7177
88d75730
GM
7178 * dispextern.h: Add some comments.
7179
7180 * window.c (add_window_to_list): Add parameter LIST.
7181 (window_list): Order list so that, for each frame, windows are
7182 in canonical order, and so that frames appear in the list in
7183 the order given by Vframe_list.
7184 (next_window): Reverse the handling of NEXT_P.
7185
53654733
GM
71862000-07-04 Gerd Moellmann <gerd@gnu.org>
7187
87efd256
GM
7188 * window.c (Vwindow_list): New variable.
7189 (make_window, delete_window): Set Vwindow_list to nil.
7190 (check_window_containing): New function.
7191 (window_from_coordinates): Rewritten.
7192 (add_window_to_list, window_list, candidate_window_p)
7193 (decode_next_window_args, next_window): New functions.
52283633 7194 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
87efd256
GM
7195 (Fwindow_list): New function.
7196 (Fother_window): Cleaned up.
7197 (foreach_window): Add a longer "variable argument list". Let
7198 callback function return 0 to indicate that cycling over windows
7199 should stop.
7200 (foreach_window_1): Likewise.
7201 (freeze_window_start): Return int.
7202 (init_window): New function.
7203 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
7204
7205 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
7206 input_event with bzero.
7207 (main): Call init_window.
7208
53654733
GM
7209 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
7210 a menu filter.
7211
4a8c194f
KH
72122000-07-04 Kenichi Handa <handa@etl.go.jp>
7213
7214 * composite.h (make_composition_value_copy): Extern it.
7215
7216 * composite.c (make_composition_value_copy): New function.
7217
7218 * editfns.c (Fformat): While copying text properties, make each
7219 composition property value a copy.
7220
7221 * fns.c (concat): While copying text properties, make each
7222 composition property value a copy.
7223
831a6cb0
GM
72242000-07-03 Gerd Moellmann <gerd@gnu.org>
7225
2f516940
GM
7226 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
7227
178c5d9c 7228 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
7229 marked already.
7230
831a6cb0
GM
7231 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
7232 include those frames as candidates which have their focus
7233 redirected to the minibuffer frame.
7234
d9c4f922
SM
72352000-07-03 Stefan Monnier <monnier@cs.yale.edu>
7236
7237 * fns.c (Fputhash): Return `value' rather than nil.
7238
3780bc22
GM
72392000-06-30 Gerd Moellmann <gerd@gnu.org>
7240
97d176db
GM
7241 * frame.c (next_frame): Don't check focus redirection in case
7242 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
7243 unless their focus is redirected, which contradicts the
7244 specification of next-frame, and leads to infinite loops in
7245 certain situations when cycling through windows with next-window.
7246
dca9961d
KH
72472000-06-30 Kenichi Handa <handa@etl.go.jp>
7248
7249 * coding.c (code_convert_region): Even if the length of text is
7250 zero, try to convert it if coding->type is coding_type_ccl.
7251 (decode_coding_string, encode_coding_string): Likewise.
7252
d5483ab1
GM
72532000-06-28 Gerd Moellmann <gerd@gnu.org>
7254
af5c25e1 7255 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 7256 the display if windows_or_buffers_changed.
af5c25e1
GM
7257
7258 * dispnew.c (struct row_entry): New structure.
7259 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
7260 (row_table_size, old_lines, new_lines, old_lines_size)
7261 (new_lines_size, run_pool, runs_size, runs): New variables.
7262 (add_row_entry): New function.
7263 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 7264 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
7265 holding them in local variables. Use a larger hash table whose
7266 size depends on glyph matrix sizes. Don't use bzero to clear the
7267 hash table; instead, clear used slots only.
7268
7269 * fns.c (next_almost_prime): Make it externally visible.
7270
7271 * lisp.h (next_almost_prime): Add prototype.
7272
d5483ab1
GM
7273 * s/isc4-0.h (sigunblock): Define.
7274
7275 * s/sco5.h (sigunblock): Define.
7276
93e40f40
DL
72772000-06-27 Dave Love <fx@gnu.org>
7278
7279 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
7280 (moved to osf5-0.h).
7281 [!NOT_C_CODE]: Protect string.h stuff.
7282
7283 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
7284 (sys_siglist, NSIG): Definitions moved here from osf1.h.
7285
3c4b7685
GM
72862000-06-27 Gerd Moellmann <gerd@gnu.org>
7287
97d176db 7288 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
7289 below the last line from the needed window height.
7290
32cad0aa
SM
72912000-06-26 Stefan Monnier <monnier@cs.yale.edu>
7292
7293 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
7294 (Fwidget_get): Use it.
7295 (syms_of_fns): Defsubr it.
7296
2c69ced2
GM
72972000-06-26 Gerd Moellmann <gerd@gnu.org>
7298
178c5d9c 7299 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
7300 display info for XIM.
7301 (xim_open_dpy): Likewise.
7302 (xim_close_dpy): Don't free the display info's XIM.
7303
7304 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
7305
7306 * config.in (USE_XIM): New define.
7307
3fc720e4
GM
7308 * keymap.c (get_keyelt): For menu-items containing a `:filter
7309 FILTER', apply FILTER to the menu-item's definition to get the
7310 real definition to use.
7311
7312 * lisp.h (QCfilter): External declaration.
7313
2c69ced2
GM
7314 * xfns.c (Fimage_size): New function.
7315 (syms_of_xfns): Defsubr it.
7316
f978b2a2
AS
73172000-06-26 Andreas Schwab <schwab@suse.de>
7318
7319 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
7320 Fstring_as_unibyte.
7321
94cc7892
DL
73222000-06-25 Dave Love <fx@gnu.org>
7323
52283633 7324 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
94cc7892
DL
7325
7326 * Makefile.in (blockinput.h): Depend on atimer.h.
7327 (atimer.h): Depend on systime.h.
7328
52283633 7329 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
94cc7892 7330
52283633 7331 * atimer.h: Protect against multiple inclusion. Include systime.h.
94cc7892
DL
7332
7333 * lisp.h (swap_in_global_binding): Declare.
7334
b8c24556
KR
73352000-06-24 Ken Raeburn <raeburn@gnu.org>
7336
7337 * process.c (Fopen_network_stream): Turn off atimers for duration
7338 of call to connect. (Patch from Gerd.)
7339
8cf8560b
DL
73402000-06-23 Dave Love <fx@gnu.org>
7341
511c7541
DL
7342 * ralloc.c: Maybe include unistd.h
7343
8cf8560b
DL
7344 * emacs.c (setgrp): Undefine before defining.
7345 (malloc_warning, set_time_zone_rule, index): Prototype.
7346
7347 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
7348 HAVE_STRUCT_TIMEZONE.
7349
7350 * s/osf1.h: Move string.h hack here from alpha.h and make it
7351 conditional.
7352 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
7353 _XOPEN_SOURCE.
7354 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
7355 (SOCKLEN_TYPE): Don't define.
7356
7357 * m/alpha.h: Remove string.h hack.
7358
7359 * s/osf5-0.h: New file.
7360
7361 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
7362 include time.h, done by systime.h.
7363 [__FreeBSD__]: Remove redundant includes.
7364
3fc720e4 7365 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
7366 (delete_temp_file): Return Qnil to avoid warning.
7367
7368 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
7369
7370 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
7371 HAVE_X_WINDOWS.
7372
7373 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
7374
7375 * composite.h (compose_text): Declare.
7376
7377 * xterm.c: Don't include sys/types.h unconditionally. Don't
7378 protect its inclusion with !USG (following xmenu.c).
7379
ea055732
GM
73802000-06-23 Gerd Moellmann <gerd@gnu.org>
7381
7382 * xfns.c (x_create_tip_frame): Initialize frame's colors like
7383 in x_create_frame.
7384
74b01b80
EZ
73852000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
7386
7387 * coding.c (decode_eol_post_ccl): Special handling for undecided
7388 and inconsistent EOL types.
7389
64f3a166
GM
73902000-06-22 Gerd Moellmann <gerd@gnu.org>
7391
16cf31f7
GM
7392 * xrdb.c (x_load_resources): Add default resource for scroll bar's
7393 trough color and main window's background color.
7394
52283633 7395 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
16cf31f7
GM
7396
7397 * xterm.h (Xt_app_con): External declaration.
7398
7399 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 7400
486a103d
GM
7401 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
7402
64f3a166
GM
7403 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
7404 (handle_invisible_prop): Record the start of invisible text in
7405 it->add_overlay_start.
7406 (struct overlay_entry): Add member `overlay'.
7407 (handle_overlay_change): Simplify.
7408 (next_overlay_string): After having processed overlay strings at the
7409 end of the buffer, record that fact in
7410 it->overlay_strings_at_end_processed_p.
7411 (compare_overlay_entries): If before- and after-strings come
7412 from the same overlay, let before-strings come first.
7413 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
7414 (load_overlay_strings): Take it->add_overlay_start into account
7415 when adding overlay strings.
7416
7417 * dispextern.h (struct it): Add member add_overlay_start.
7418
bb746ea6
DL
74192000-06-22 Dave Love <fx@gnu.org>
7420
7421 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
7422
7423 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
7424
a8f573f3
KH
74252000-06-22 Kenichi Handa <handa@etl.go.jp>
7426
7427 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
7428 is greater than 0.
7429
9f2bbc92
DL
74302000-06-21 Dave Love <fx@gnu.org>
7431
178c5d9c 7432 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 7433
3ee5041c
SM
74342000-06-21 Stefan Monnier <monnier@cs.yale.edu>
7435
7436 * syntax.c (back_comment): Simplify string-parity counting (with
7437 the added benefit of handling multiple string-styles as long as
7438 they are not intertwined).
7439 Jump to the slow code as soon as a comment starter is found in
7440 a "string_lossage" position. Fixes the case: " /* " /* " */.
7441
4c343001
DL
74422000-06-21 Dave Love <fx@gnu.org>
7443
7444 * Makefile.in: Use GETLOADAVG_LIBS.
7445
7446 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
7447 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
7448
e6365855
SM
74492000-06-20 Stefan Monnier <monnier@cs.yale.edu>
7450
7451 * syntax.c (describe_syntax): Recognize the `n'estable bit.
7452 (Fforward_comment, scan_lists):
7453 Check the comstyle of single-char comment-starters.
7454 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
7455 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
7456 Check the comstyle of single-char comment-starters.
7457 Clarify control-flow around the Scomment case.
e6365855 7458
5700d2cc
DL
74592000-06-20 Dave Love <fx@gnu.org>
7460
d355bd8a
SM
7461 * fns.c (make_hash_table, maybe_resize_hash_table):
7462 Cast arg of next_almost_prime.
5700d2cc 7463
178c5d9c 7464 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
7465
7466 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
7467 and unistd.h.
7468
4a27bdfb
GM
74692000-06-20 Gerd Moellmann <gerd@gnu.org>
7470
a61d762c 7471 * keyboard.c (adjust_point_for_property): Check if display
52283633 7472 property should be treated as intangible by looking at its value.
a61d762c 7473
178c5d9c 7474 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
7475 (display_prop_intangible_p): New functions.
7476
7477 * dispextern.h (display_prop_intangible_p): Add prototype.
7478
7479 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 7480
4a27bdfb
GM
7481 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
7482 argument to sigprocmask.
7483
7484 * s/sco5.h (sigblock): Redefined to pass a pointer as second
7485 argument to sigprocmask.
7486
7487 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
7488 sigprocmask_set, and pass a pointer to it to sigprocmask.
7489
7490 * sysdep.c (sigprocmask_set): New variable.
7491
7492 * fileio.c (make_temp_name): Don't use `%s' in string passed to
7493 report_file_error.
7494
427ec082
SS
74952000-06-20 Sam Steingold <sds@gnu.org>
7496
7497 * xrdb.c: Don't declare xmalloc, xrealloc.
7498
8972fe79 74992000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
7500
7501 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
7502 (re_comp): Cast gettext return value to avoid complaints when
7503 !HAVE_LIBINTL.
7504
074b6efe
DL
75052000-06-20 Dave Love <fx@gnu.org>
7506
52283633 7507 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
f85c008a 7508
5700d2cc 7509 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 7510
d355bd8a 7511 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
7512
7513 * m/alpha.h: Don't declare xmalloc, xrealloc.
7514
0af4f205
DL
7515 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
7516
7517 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
7518
7519 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
7520
7521 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
7522 HAVE_GETWD.
7523
074b6efe
DL
7524 * keyboard.h (poll_for_input_1): Declare.
7525
7526 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
7527
7528 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
7529
7530 * doprnt.c: Don't declare xmalloc, xrealloc.
7531
7532 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
7533 (getenv, ctime, getwd): Removed.
7534 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
7535
7536 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
7537 x_set_tool_bar_lines.
7538
7539 * config.in: Add HAVE_GETWD. Move some definitions above
7540 machine/system includes.
7541
68a5e97b
KH
75422000-06-20 Kenichi Handa <handa@etl.go.jp>
7543
95417e1e
KH
7544 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
7545
68a5e97b
KH
7546 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
7547 contain information about ENCODING.
7548
7549 * fontset.c (FONTSET_ASCII): Use the first element of char table
7550 for an ASCII font, not defalt slot.
7551 (fontset_ref_via_base): If FONTSET doesn't contain information for
7552 C, try the default fontset.
7553 (make_fontset): Don't copy the default fontset.
7554 (fontset_font_pattern): Likewise.
7555 (accumulate_font_info): If ELT is nil, use the corresponding
7556 element in the default fontset.
7557
3b4fa1b2
DL
75582000-06-19 Dave Love <fx@gnu.org>
7559
943e731c
DL
7560 * syntax.c (Fparse_partial_sexp): Doc fix.
7561
7562 * regex.h: Test PROTOTYPES as well as __STDC__.
7563
3b4fa1b2
DL
7564 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
7565 errno, strerror. Put text after #endif in comment.
7566
52283633 7567 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
3b4fa1b2
DL
7568
7569 * xterm.c (x_frame_of_widget): Likewise.
7570
cdf0357b
GM
75712000-06-19 Gerd Moellmann <gerd@gnu.org>
7572
7573 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
7574 to Vfundamental_mode_abbrev_table.
7575
7576 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
7577 bogus objects are marked. This slows down GC by ~80 percent, but
7578 it might be worth trying when debugging GC-related problems.
7579 This feature requires conservative stack marking to be enabled.
7580
7581 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
7582 returns XLookupChars, reset `modifiers' to zero.
7583
998e9f8c
DL
75842000-06-19 Dave Love <fx@gnu.org>
7585
7586 * mktime.c: Unprotoized.
7587
18e21ce8 75882000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
7589
7590 * data.c (set_internal): If variable is frame-local,
7591 store the new value immediately into the frame parameter alist.
7592
140c4ac6
KR
75932000-06-19 Ken Raeburn <raeburn@gnu.org>
7594
14358466
KR
7595 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
7596 in the custom handler pointer.
7597
140c4ac6
KR
7598 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
7599 value, or checks for CHAR_META can fail when Lisp_Object is a
7600 union type.
7601 * keymap.c (get_keyelt): Likewise.
7602
10d7bf84
KH
76032000-06-19 Kenichi Handa <handa@etl.go.jp>
7604
7605 * ccl.h (struct ccl_program): New member eol_type.
7606 (struct ccl_spec): New member cr_carryover.
7607
7608 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
7609 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
7610
7611 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
7612 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
7613 (decode_eol_post_ccl): New function.
7614 (decode_coding): Don't detect EOL format here for CCL based coding
7615 systems.
7616 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
7617 decode_eol_post_ccl after running the CCL program.
7618 (code_convert_region): Don't detect EOL format here for CCL based
7619 coding systems.
7620 (decode_coding_string): Likewise.
7621
52e386c2
KR
76222000-06-18 Ken Raeburn <raeburn@gnu.org>
7623
7624 * charset.c (update_charset_table): Use XINT on "iso_final_char"
7625 when treating it as an integer.
7626
7627 * coding.h (encode_coding_string): Declare.
7628
7629 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
7630 it as an integer.
7631
7632 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
7633 "xkeymap" to avoid shadowing the "enum map_type" value that needs
7634 to be passed to get_local_map.
7635
7636 * sound.c (Fplay_sound): Don't call make_number on
7637 Frun_hook_with_args count argument.
7638
7639 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
7640 for lisp objects in X event structure data field, when lisp
7641 objects are represented with unions.
7642 (x_scroll_bar_to_input_event): Ditto.
7643
b357b9d4
KR
76442000-06-16 Ken Raeburn <raeburn@gnu.org>
7645
7646 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
7647 termination of string. Fix sense of test whether
7648 Vline_number_display_limit is an integer.
b357b9d4 7649
a871441d
GM
76502000-06-16 Gerd Moellmann <gerd@gnu.org>
7651
a9021acd
GM
7652 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
7653 only if HAVE_X_WINDOWS.
7654
6344985d
GM
7655 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
7656 of titles.
7657
427ec082 7658 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
7659 out of bounds.
7660
228b083e
EZ
76612000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
7662
7663 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
7664 of its headers.
7665
c25b53a2
KH
76662000-06-15 Kenichi Handa <handa@etl.go.jp>
7667
7668 * coding.c (decode_coding_emacs_mule): Always set src_base at the
7669 start of the while loop.
7670
a6981b11
GM
76712000-06-15 Gerd Moellmann <gerd@gnu.org>
7672
e9924e52
GM
7673 * atimer.c (alarm_signal_handler): Add forward declaration.
7674
a6981b11
GM
7675 * data.c (set_internal): Remove debug code.
7676
25fa6deb
GM
76772000-06-14 Gerd Moellmann <gerd@gnu.org>
7678
dce6b995
GM
7679 * Makefile.in (bootstrap-temacs): Add `-I../src'.
7680
9f817ea4
GM
7681 * unexec.c (toplevel) [COFF]: Include coff.h.
7682
7683 * s/lynxos.h: New file.
7684
7685 * keymap.c (Fsingle_key_description): Enclose function key and
7686 event symbol names in angle brackets.
7687
8a4e3c0c
GM
7688 * xdisp.c (setup_echo_area_for_printing): Call
7689 message_log_maybe_newline if message_buf_print is not set.
7690
7691 * print.c (printchar, strout): Don't check message_buf_print
427ec082 7692 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
7693 function does something useful even when message_buf_print is
7694 already set.
7695
52283633
SM
7696 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
7697 New variables.
25fa6deb
GM
7698 (ensure_echo_area_buffers): Initialize echo buffer's
7699 truncate lines setting to nil.
7700 (with_echo_area_buffer): Don't set the echo buffer's truncate
7701 lines setting here.
8a4e3c0c 7702 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
7703 of message_truncate_lines.
7704 (resize_mini_window): Handle case that lines are truncated.
52283633
SM
7705 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
7706 DEFVAR_BOOL message-truncate-lines.
25fa6deb
GM
7707
7708 * keyboard.c (read_char): Bind message-truncate-lines to t
7709 while displaying a help-echo.
7710
7711 * lisp.h (Qmessage_truncate_lines): External declaration.
7712
163dcff3
GM
77132000-06-13 Gerd Moellmann <gerd@gnu.org>
7714
1681ead6
GM
7715 * xdisp.c (Vline_number_display_limit): Renamed from
7716 line_number_display_limit.
7717 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
7718 Extend documentation string. Initialize
7719 Vline_number_display_limit to nil meaning no limit.
7720 (decode_mode_spec): Use Vline_number_display_limit with its new
7721 meaning.
7722
163dcff3
GM
7723 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
7724
18e21ce8 77252000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
7726
7727 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 7728
163dcff3
GM
7729 * xfns.c (x_set_frame_parameters): Comment fix.
7730
7731 * frame.c (store_frame_param): Call swap_in_global_binding if the
7732 variable's current binding was chosen based on this frame.
7733
7734 * data.c (swap_in_global_binding): New function.
7735
a704139d
EZ
77362000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
7737
7738 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
7739 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
7740
9b6610db
EZ
77412000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
7742
7743 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
7744
c68833d2
JR
77452000-06-12 Jason Rumney <jasonr@gnu.org>
7746
7747 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
7748
7749 * w32.h (EMACS_W32_H): Renamed from _NT_H_
7750
7751 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
7752
7753 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
7754
ed1056b3
GM
77552000-06-12 Gerd Moellmann <gerd@gnu.org>
7756
7757 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
7758 (syms_of_xfaces): Defsubr Sdump_colors.
7759 (x_free_colors): Don't treat b&w specially on default visual.
7760 (x_free_dpy_colors): New function.
7761 (free_face_colors): Don't check visual class; it's done
7762 in x_free_colors.
7763
7764 * xterm.c (x_frame_of_widget): New function.
7765 (x_alloc_nearest_color_for_widget): Use it.
7766 (x_copy_dpy_color): New function.
7767 (x_destroy_window): Free various colors.
7768
5050a2ef
KH
77692000-06-12 Kenichi Handa <handa@etl.go.jp>
7770
7771 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
7772
7773 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
7774
7775 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
7776
7777 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
7778
7779 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
7780
fb1b041d
DL
77812000-06-11 Dave Love <fx@gnu.org>
7782
7783 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
7784
ff96b5f4
EZ
77852000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
7786
7787 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
7788
db8eeecd
GM
77892000-06-11 Gerd Moellmann <gerd@gnu.org>
7790
ed1056b3 7791 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
7792 to `XEvent *'.
7793
49b71c5f
KH
77942000-06-10 Kenichi Handa <handa@etl.go.jp>
7795
c479bd55
KH
7796 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
7797 (regex_compile): Fix the code for handling the case of single byte
7798 char and multibyte char being mixed in a range within [...].
7799
ff6a65c2
KH
7800 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
7801 and dst_multibyte members of coding.
7802
49b71c5f
KH
7803 * charset.c (update_charset_table): Update the table
7804 bytes_by_char_head.
7805 (init_charset_once): Initialize elements of bytes_by_char_head to
7806 1 except for leading codes for private charases.
7807
7808 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
52283633 7809 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
49b71c5f 7810
9e80b57d
KR
78112000-06-09 Ken Raeburn <raeburn@gnu.org>
7812
7813 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
7814 access the data it doesn't point to.
7815
f83fe4b4
GM
78162000-06-08 Gerd Moellmann <gerd@gnu.org>
7817
7818 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 7819 will be translated to a switch-frame event when reading the
f83fe4b4
GM
7820 event queue. This is necessary because Emacs otherwise won't
7821 perform a switch-frame to a new frame until some other event, for
7822 example a keystroke event, forces it to do so. This has various
7823 effects, one visible being that the cursor of a frame created with
7824 C-x 5 2 or switched to with a window manager key binding like
7825 A-TAB stays hollow because selected_window isn't on the newly
7826 focused frame until the switch-frame is performed.
7827
7828 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
7829 generating a switch-frame event if necessary.
7830
7831 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
7832
7833 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
7834 it's an integer.
7835
0890801b
KH
78362000-06-08 Kenichi Handa <handa@etl.go.jp>
7837
52283633 7838 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
0890801b 7839
173cbca8
GM
78402000-06-07 Gerd Moellmann <gerd@gnu.org>
7841
3091c2a6
GM
7842 * window.c (displayed_window_lines): Take empty lines at
7843 the bottom of a window into account.
427ec082 7844
f38952fe
GM
7845 * window.c (displayed_window_lines): New function.
7846 (Fmove_to_window_line): Use displayed_window_lines to determine
7847 the number of lines to move, instead of using the window's height.
7848
7849 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
7850 to stop reading, even if the form read sets point to a different
7851 value when evaluated.
7852
427ec082 7853 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
7854 put the cursor.
7855
6ba6c818
KH
78562000-06-07 Kenichi Handa <handa@etl.go.jp>
7857
7858 * fileio.c (e_write): Free composition data if stored in
7859 coding->cmp_data.
7860
5f1aea9a
GM
78612000-06-06 Gerd Moellmann <gerd@gnu.org>
7862
666852af
GM
7863 * xdisp.c (display_line): Set row's and iterator's
7864 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
7865 Set cursor even if row ends in the middle of a character.
7866 (dump_glyph_row): Print values of new flags.
7867 (redisplay_window) <cursor movement in unchanged window>: When
7868 point has been moved forward, and PT is at the end of the cursor
7869 row, don't place the cursor in the next row if the cursor row ends
7870 in the middle of a character or at ZV.
7871
7872 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
7873 (struct glyph_row): Add starts_in_middle_of_char_p and
7874 ends_in_middle_of_char_p.
7875 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
7876 ends_in_middle_of_char_p flag.
7877 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
7878
d13f3e2e
GM
7879 * term.c (append_glyph): Revert change of 2000-06-06.
7880
7881 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
7882 padding glyph not fitting on line as whole character not
7883 fitting on line.
7884
5f1aea9a
GM
7885 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
7886 this isn't true for images with `:ascent 100'.
7887
10cda9b0
KH
78882000-06-06 Kenichi Handa <handa@etl.go.jp>
7889
ed00559d
KH
7890 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
7891 as modified if it is originally unmodified.
7892
10cda9b0
KH
7893 * term.c (encode_terminal_code): Change the way to check if
7894 terminal coding does any conversion.
7895 (append_glyph): Set glyph->pixel_width correctly.
7896
7897 * xdisp.c (display_line): While checking line continuation, pay
7898 attention to a padding glyph.
7899
1969fae2
GM
79002000-06-05 Gerd Moellmann <gerd@gnu.org>
7901
7902 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
7903
162ccef4
DL
79042000-06-05 Dave Love <fx@gnu.org>
7905
f19f32dd
DL
7906 * xdisp.c: Include fontset.h.
7907
7908 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
7909
7910 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
7911
7912 * dispnew.c: Conditionally include term.h.
7913
7914 * coding.h: Declare code_convert_string_norecord.
7915
7916 * frame.h (struct frame): Use volatile unconditionally.
7917
7918 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
7919
7920 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
7921
7922 * systime.h: Protect against multiple inclusion.
7923 (timezone) [USG5_4]: Define as time_t.
7924
7925 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
7926 (Foptimize_char_table, make_temp_name): Declare.
7927
7928 * Makefile.in (xdisp.o): Depend on fontset.h.
7929
7930 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
7931
7932 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
7933 (Foptimize_char_table, make_temp_name): Declare.
7934
427ec082 7935 * s/irix4-0.h:
162ccef4
DL
7936 * s/irix5-0.h:
7937 * s/netbsd.h: Don't define autoconfiscated MATHERR.
7938
2082fe81
DL
79392000-06-02 Dave Love <fx@gnu.org>
7940
7941 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
7942
dcf671d2
GM
79432000-06-02 Gerd Moellmann <gerd@gnu.org>
7944
7945 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 7946 result face, set flags in that face indicating that colors may not
dcf671d2
GM
7947 be freed.
7948
7949 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
7950 glyph, use the ASCII NUL character to determine the face.
7951
d42122a3
DL
79522000-06-02 Dave Love <fx@gnu.org>
7953
7954 * sysdep.c: Conditionally include stdlib.h, unistd.h.
7955 (VFORK_RETURN_TYPE): Remove.
427ec082 7956
d42122a3
DL
7957 * config.in: Add NO_MATHERR.
7958
dd432f16
DL
79592000-06-01 Dave Love <fx@gnu.org>
7960
90aa4ea8
DL
7961 * cmds.c (internal_self_insert): Don't check
7962 Vbefore_change_function, Vafter_change_function.
7963
7964 * insdel.c (signal_before_change, signal_after_change): Likewise.
7965
7966 * buffer.c (Vbefore_change_function, Vafter_change_function):
7967 Variables and their initializations deleted.
7968
2330c9d4
DL
7969 * callint.c (Fcall_interactively): Doc fix.
7970
dd432f16
DL
7971 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
7972
bf9e8804
DL
79732000-05-31 Dave Love <fx@gnu.org>
7974
7975 * textprop.c: Revert last change -- duplicated.
7976
3694b4ab
GM
79772000-05-31 Gerd Moellmann <gerd@gnu.org>
7978
7979 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
7980 in #if 0.
7981
7982 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
7983
f14156cd
JR
79842000-05-31 Jason Rumney <jasonr@gnu.org>
7985
8119aab8
JR
7986 * search.c (Fre_search_forward, Fre_search_backward)
7987 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
7988
f14156cd
JR
7989 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
7990
4aab9be3
JR
79912000-05-30 Jason Rumney <jasonr@gnu.org>
7992
7993 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
7994 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
7995
52283633 7996 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
4aab9be3
JR
7997
7998 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
7999 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
8000 expand a nil default_filename.
8001
8002 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
8003 pointer to glyph_to_pixel_coords, not a frame.
8004
8005 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
8006 coding.h to dependencies.
8007
8008 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
8009
8010 * w32console.c (glyph_to_pixel_coords): Change first parameter to
8011 window pointer to be consistent with w32term.c and xterm.c.
8012
8013 * w32fns.c: Format and doc changes to bring closer to xfns.c.
8014 (VIETNAMESE_CHARSET): Define if not defined in system headers.
8015 (Qline_spacing, Qcenter): New variables.
8016 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
8017 (x_set_line_spacing): New function.
52283633 8018 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
4aab9be3
JR
8019 (x_specified_cursor_type): New function.
8020 (x_set_cursor_type): Use it.
8021 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
8022 and icon strings.
8023 (validate_x_resource_name, x_get_resource_string): Measure lengths
8024 of external strings in bytes.
8025 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
8026 GetTextExtentPoint32 with NULL title.
8027 (Fx_create_frame): Initialize Qline_spacing.
8028 (w32_load_system_font): Initialize font->double_byte_p.
8029 (x_to_w32_charset): Use Vw32_charset_info_alist.
8030 (Image, busy cursor, tooltip functions): Merged changes from
8031 xfns.c. Not yet functional on Windows.
8032
8033 * w32gui.h (W32FontStruct): Add double_byte_p member.
8034
8035 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
8036 (emacs_button_translation): Use it.
8037 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
8038 in `mask' to be set.
8039
8040 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
8041 menu strings.
8042
8043 * w32term.c: Format and doc changes to bring closer to xterm.c.
8044 (w32_char_font_type): New enum.
8045 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
8046 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
8047 (w32_encode_char): New function.
8048 (x_encode_char): Removed.
8049 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
8050 x_encode_char and w32_font_is_double_byte.
8051 (x_produce_image_glyph): Use image_ascent.
8052 (x_produce_glyphs): Use new version of w32_per_char_metric and
8053 handle NULL return value. Allow extra line spacing.
8054 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
8055 (w32_get_glyph_overhangs): Remove unicode_p param. Use
8056 w32_font_type member of glyph instead.
8057 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
8058 (fast_find_position): Make sure not to consider rows not visible
8059 in the window.
8060 (w32_read_socket) [WM_MENUSELECT]: Cannot call
8061 w32_menu_display_help with input blocked, as it can abort.
8062 (x_display_and_set_cursor): Choose cursor depending
8063 on buffer-local value of cursor_type.
8064 (x_draw_bar_cursor): Add parameter WIDTH.
8065
8066 * w32term.h (CP_DEFAULT): Define.
8067 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
8068
10fc3187
GM
80692000-05-30 Gerd Moellmann <gerd@gnu.org>
8070
8071 * search.c (Fre_search_forward, Fre_search_backward)
8072 (Fposix_search_backward, Fposix_search_forward): Doc fix.
8073
d0555360
KH
80742000-05-30 Kenichi Handa <handa@etl.go.jp>
8075
8076 * coding.c (detect_coding_iso2022): Fix code for checking
8077 CODING_CATEGORY_MASK_ISO_8_2.
8078
f1ad044f
SM
80792000-05-29 Stefan Monnier <monnier@cs.yale.edu>
8080
8081 * regex.c (PREFETCH_NOLIMIT): New function.
8082 (re_match_2_internal): Use it and adjust the end_match_2 logic.
8083
84ec3b4b
GM
80842000-05-29 Gerd Moellmann <gerd@gnu.org>
8085
66254a13
GM
8086 * syntax.c (find_defun_start): Move test for
8087 open_paren_in_column_0_is_defun_start outside of the loop.
8088
49e70dec
GM
8089 * xdisp.c (redisplay_window): Really switch buffers when
8090 displaying mode lines, and temporarily set selected_frame to the
8091 frame of the window that's redisplayed.
8092
84ec3b4b
GM
8093 * xfaces.c (free_realized_faces): Block/unblock input.
8094 (free_realized_multibyte_face): Ditto.
8095
869a3a14
DL
80962000-05-29 Dave Love <fx@gnu.org>
8097
8098 * textprop.c (Qkeymap): New variable.
8099 (syms_of_textprop): Intern it.
8100
8101 * keymap.c: Include intervals.h.
8102 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
8103
8104 * Makefile.in (keymap.o): Depend on intervals.h.
8105
8106 * keyboard.c (menu_bar_items, tool_bar_items)
8107 (Fexecute_extended_command): Deal with `keymap' property.
8108 (read_key_sequence): Track map from `keymap' property as well as
8109 `local_map'.
8110
8111 * intervals.c (get_local_map): Extra arg to allow looking for
8112 `keymap' too.
8113
8114 * intervals.h (map_property): New enum.
8115 (get_local_map): Extra arg using it.
8116 (Qkeymap): Declare.
8117
84ec3b4b 8118 * lisp.h (get_local_map): Don't declare here.
869a3a14 8119
89d0c844
KH
81202000-05-29 Kenichi Handa <handa@etl.go.jp>
8121
8122 * Makefile.in (callproc.o): Depend on composite.h.
8123
8124 * callproc.c: Include composite.h.
8125 (Fcall_process): Handle composition correctly.
8126
8127 * coding.h (coding_allocate_composition_data): Extern it.
8128 (coding_restore_composition): Likewise.
8129
8130 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
8131 yet allocated, finish decoding with result
8132 CODING_FINISH_INSUFFICIENT_CMP.
8133 (coding_allocate_composition_data): Make it non-static.
8134 (coding_restore_composition): Likewise.
8135
797a084a
EZ
81362000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
8137
8138 * charset.c (syms_of_charset): Revert last change.
8139
cf872af5
EZ
81402000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
8141
8142 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
8143 charsets as unibyte, with 1-column screen width. Sent by Kenichi
8144 Handa.
cf872af5 8145
5b1ae051
EZ
81462000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
8147
8148 * charset.c (syms_of_charset): Set width of character sets
8149 eight-bit-control and eight-bit-graphic to 1 column.
8150
34ec9ebe
GM
81512000-05-26 Gerd Moellmann <gerd@gnu.org>
8152
8153 * config.in (HAVE_SPEED_T): New define.
8154
8155 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
8156 `extern speed_t'.
8157
dd854dc2
DL
81582000-05-26 Dave Love <fx@gnu.org>
8159
8160 * coding.c (shrink_decoding_region): Initialize eol_conversion.
8161
8162 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
8163 (Fsubr_arity): New function.
8164 (syms_of_data): Install them.
8165
ba9f8f95
KH
81662000-05-26 Kenichi Handa <handa@etl.go.jp>
8167
0f3e0672
KH
8168 * charset.c (init_charset_once): Set the table bytes_by_char_head
8169 correctly.
8170
cebefb44
KH
8171 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
8172 the default fontset to what Emacs uses by default.
0f3e0672
KH
8173 (check_registry_encoding): This function deleted.
8174 (Fset_fontset_font): Remove the adhoc condition for the default
8175 fontset. Allow cons in FONTNAME.
cebefb44 8176
0f3e0672
KH
8177 * fns.c (map_char_table): Ignore char-table entries for
8178 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 8179
7a18af49
KR
81802000-05-25 Ken Raeburn <raeburn@gnu.org>
8181
8182 * emacs.c (main): Initialize keyboard syms before initializing
8183 window code, so face names are available.
8184
d2af47df
SM
81852000-05-25 Stefan Monnier <monnier@cs.yale.edu>
8186
8187 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
8188 of an anchor at the beginning of a shy-group.
8189
fc6a6a4e
GM
81902000-05-25 Gerd Moellmann <gerd@gnu.org>
8191
8192 * xdisp.c (handle_invisible_prop): Don't try to skip over
8193 invisible text if end of text is already reached.
8194
005f0d35
DL
81952000-05-25 Dave Love <fx@gnu.org>
8196
02513cdd
DL
8197 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
8198
005f0d35
DL
8199 * coding.c (encode_eol): Add null statement after label.
8200
89f6ca4e
EZ
82012000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
8202
8203 * w16select.c (Fw16_set_clipboard_data): Fix the change from
8204 2000-05-20.
8205
a4e1759e
KH
82062000-05-25 Kenichi Handa <handa@etl.go.jp>
8207
8208 * ccl.c (ccl_driver): Fix previous change.
8209
eacfd7fe
KH
82102000-05-25 Kenichi Handa <handa@etl.go.jp>
8211
46ab33a9
KH
8212 * coding.c (run_pre_post_conversion_on_str): Set point to the
8213 beginning of buffer before calling coding->post_read_conversion.
8214 (decode_coding_string): Give correct args to
8215 run_pre_post_conversion_on_str.
8216 (encode_coding_string): Likewise.
8217
eacfd7fe
KH
8218 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
8219 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
8220 eight-bit-graphic correctly.
8221
f8569325
DL
82222000-05-24 Kenichi HANDA <handa@etl.go.jp>
8223
8224 * fileio.c (Finsert_file_contents): Even if a file is not found,
8225 execute codes for setting up coding system. Call
8226 after-insert-file-functions unconditionally.
8227
04545643
GM
82282000-05-24 Gerd Moellmann <gerd@gnu.org>
8229
8230 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
8231 BSD_PGRPS are not defined.
8232
747d90ea
KH
82332000-05-24 Kenichi Handa <handa@etl.go.jp>
8234
8235 * charset.c (update_charset_table): Accept nil in LONG_NAME and
8236 DESCRIPTION.
8237 (syms_of_charset): Avoid building same strings.
8238
716e3b88
GM
82392000-05-23 Gerd Moellmann <gerd@gnu.org>
8240
8241 * lread.c (Fload): Add a comment about the meaning of
8242 Vuser_init_file being t.
8243
8244 * puresize.h (BASE_PURESIZE): Increase to 675000.
8245
8246 * s/gnu-linux.h (setpgrp): Don't define it here because this
8247 prevents compilation on GNU/Linux systems with glib 2.2.
8248
8249 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
8250 as setpgid.
427ec082 8251
9aeb39fa
EZ
82522000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
8253
8254 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
8255 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
8256 version.
8257 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
8258
29ced61b
KH
82592000-05-23 Kenichi Handa <handa@etl.go.jp>
8260
52283633 8261 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
0574a2ed 8262
3d80f24d
KH
8263 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
8264
52283633 8265 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
3d80f24d 8266
29ced61b
KH
8267 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
8268
d7e00792
KH
82692000-05-22 Kenichi Handa <handa@etl.go.jp>
8270
c9d80d38
KH
8271 * keyboard.c (read_char): Allow character codes 128..255 to be
8272 handled by input-method-function.
8273
d7e00792
KH
8274 * insdel.c (adjust_markers_for_replace): Fix previous change.
8275 (adjust_after_replace): If PREV_TEXT is nil, call
8276 adjust_markers_for_insert, not adjust_markers_for_replace.
8277
087121cc 82782000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 8279
087121cc
GM
8280 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
8281 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
8282 [HAVE_GRANDPT]: Define.
8283 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
8284
8285 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
8286 like SYSV_PTYS.
8287
8288 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
8289
8290 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
8291
c9671f81
KH
82922000-05-20 Kenichi Handa <handa@etl.go.jp>
8293
8294 The following changes are to handle 8-bit characters in a
8295 multibyte buffer/string without facing with byte combining
8296 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
8297 eight-bit-graphic (for 0xA0..0xFF) are introduced.
8298
8299 * Makefile.in (fns.o): Depend on charset.h.
8300
8301 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
8302 convert it to unibyte.
8303 (make_string): Use parse_str_as_multibyte, not chars_in_text.
8304
8305 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
8306 apparent char boundary.
8307 (Fset_buffer_multibyte): Convert 8-bit characters in the range
8308 0x80..0x9F to/from multibyte form.
8309
8310 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
8311 to unibyte.
8312
8313 * callproc.c (Fcall_process): Always encode an argument string if
8314 it is multibyte. Setup src_multibyte and dst_multibyte members of
8315 process_coding properly.
ce75fd23 8316
c9671f81
KH
8317 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
8318 SPLIT_NON_ASCII_CHAR.
8319
8320 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
8321 as is.
8322 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
8323
52283633 8324 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
c9671f81 8325 (SPLIT_CHARACTER_SEQ): This macro deleted.
52283633 8326 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
c9671f81
KH
8327 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
8328 and eight-bit-graphic.
8329 (char_to_string): Likewise. Signal an error for too large
8330 character code.
8331 (char_printable_p): Return 0 for 8-bit characters.
8332 (update_charset_table): Update iso_charset_table only when a final
8333 character is non-negative.
8334 (find_charset_in_text): Renamed from find_charset_in_str.
8335 Arguments and return value changed. Callers changed.
8336 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
8337 be -1 if CHARSET is used only internally.
8338 (Fmake_char_internal): Handle new charsets; eight-bit-control and
8339 eight-bit-graphic.
8340 (Fcharset_after): Simplified.
8341 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
8342 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
8343 (multibyte_chars_in_text): Simplified by assuming there's no
8344 invalid multibyte sequence.
52283633
SM
8345 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
8346 (str_as_unibyte): New functions.
8347 (Fstring): Simpified by assuming that byte combining never happens.
c9671f81
KH
8348 (init_charset_once): Initialization for
8349 LEADING_CODE_8_BIT_CONTROL.
8350 (syms_of_charset): Intern and staticpro Qeight_bit_control and
8351 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
8352 eight-bit-control and eight-bit-graphic.
8353
52283633
SM
8354 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
8355 (CHARSET_8_BIT_GRAPHIC): New macros.
c9671f81
KH
8356 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
8357 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
8358 (CHARSET_REVERSE_CHARSET): Likewise.
8359 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
8360 eight-bit-graphic.
8361 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
8362 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
8363 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
8364 encounter an invalid multibyte sequence.
8365 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
8366 sequence is always valid.
8367 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
52283633 8368 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
c9671f81
KH
8369 (CHAR_STRING): For 8-bit characters, call char_to_string.
8370 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
8371 multibyte sequence is always valid.
8372 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
52283633
SM
8373 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
8374 (str_as_unibyte): Extern them.
c9671f81 8375 (BCOPY_SHORT): Fix a bug.
52283633 8376 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
c9671f81
KH
8377 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
8378 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
8379 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
8380
bd4bde7f 8381 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81 8382 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
52283633
SM
8383 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
8384 (EMIT_BYTES): New macros.
8385 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
8386 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
c9671f81
KH
8387 macros deleted.
8388 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
8389 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
8390 check the validity of multibyte sequence.
8391 (decode_coding_emacs_mule): New function.
8392 (encode_coding_emacs_mule): New macro.
8393 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
8394 the source.
8395 (DECODE_ISO_CHARACTER): Just return a character code.
8396 (DECODE_COMPOSITION_START): Set coding->result instead of result.
8397 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
8398 EMIT_CHAR to produced decoded characters. Exit the loop only by
8399 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
8400 block here.
8401 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
8402 only position codes for an invalid character.
8403 (encode_designation_at_bol): Return new destination pointer. 5th
8404 arg DSTP is changed to DST.
8405 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
8406 from the source by ONE_MORE_CHAR. Don't handle the case of last
8407 block here.
8408 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
8409 macros deleted.
52283633
SM
8410 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
8411 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
c9671f81
KH
8412 TWO_MORE_BYTES to fetch a byte from the source.
8413 (encode_eol): Pay attention to coding->src_multibyte.
8414 (detect_coding, detect_eol): Preserve members src_multibyte and
8415 dst_multibyte.
8416 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
8417 (encoding_buffer_size): Set magnification to 3 for all coding
8418 systems that require encoding.
8419 (ccl_coding_driver): For decoding, be sure that the result is
8420 valid multibyte sequence.
8421 (decode_coding): Initialize coding->errors and coding->result.
8422 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
8423 and raw-text, always call decode_eol. Handle the case of last
8424 block here. If not coding->dst_multibyte, convert the resulting
8425 sequence to unibyte.
8426 (encode_coding): Initialize coding->errors and coding->result.
8427 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
8428 and raw-text, always call encode_eol. Handle the case of last
8429 block here.
8430 (shrink_decoding_region, shrink_encoding_region): Detect cases
8431 that we can't skip data more rigidly.
8432 (code_convert_region): Setup src_multibyte and dst_multibyte
8433 members of coding. For decoding, if the buffer is multibyte,
8434 convert the source sequence to unibyte in advance. For encoding,
8435 if the buffer is multibyte, convert the resulting sequence to
8436 multibyte afterward.
8437 (run_pre_post_conversion_on_str): New function.
8438 (code_convert_string): Deleted and divided into the following two.
8439 (decode_coding_string, encode_coding_string): New functions.
8440 (code_convert_string1, code_convert_string_norecord): Call one of
8441 above.
8442 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
8443 MAKE_NON_ASCII_CHAR.
52283633
SM
8444 (Fset_terminal_coding_system_internal)
8445 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
c9671f81
KH
8446 and dst_multibyte members.
8447 (init_coding_once): Initialize iso_code_class with new enum
8448 ISO_control_0 and ISO_control_1.
8449
8450 * coding.h (enum iso_code_class_type): Member ISO_control_code is
8451 devided into ISO_control_0 and ISO_control_1.
8452 (struct coding_system): New members src_multibyte, dst_multibyte,
8453 errors, and result. Delete member fake_multibyte.
8454 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
8455 nonzero.
8456 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
8457 nonzero.
8458
8459 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
8460 (Faset): Likewise.
8461
8462 * editfns.c (Fformat): Be sure to convert 8-bit characters to
8463 multibyte form.
8464 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
8465 combining occurs.
8466 (Ftranspose_region): Delete codes for handling byte combining.
8467
8468 * fileio.c (Finsert_file_contents): Setup src_multibyte and
8469 dst_multibyte members of coding. On handling REPLACE on unibyte
8470 buffer, convert the result of decode_coding to unibyte. On
8471 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 8472 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
8473 multibyteness of the source (buffer or string).
8474
8475 * fns.c (concat): Handle 8-bit characters correctly.
8476 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
8477 unibyte in the result.
8478 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
8479 valid multibyte form in the result.
8480 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
8481 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
8482 return -1, signal an error.
8483 (base64_encode_1): New arg MULTIBYTE. Get each character by
8484 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
8485 character is found, return -1.
8486 (Fbase64_decode_region): Delete codes for handling byte-combining.
8487 Treat each decoded byte as a unibyte character.
8488 (Fbase64_decode_string): Return unibyte string.
8489 (Fcompare_strings, concat, string_byte_to_char): Use
8490 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
8491 FETCH_STRING_CHAR_ADVANCE.
8492 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
8493 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
8494
8495 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
8496 SPLIT_NON_ASCII_CHAR.
8497 (fontset_ref_via_base, fontset_set): Likewise
8498
8499 * insdel.c (adjust_markers_for_record_delete): Deleted.
8500 (adjust_markers_for_insert): Argument changed. Caller changed.
8501 (adjust_markers_for_replace): Likewise.
52283633
SM
8502 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
8503 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
c9671f81
KH
8504 (copy_text): Delete unused local varialbe c_save. For converting
8505 to multibyte, be sure to make all 8-bit characters in valid
8506 multibyte form.
8507 (count_size_as_multibyte): Handle 8-bit characters correctly.
52283633
SM
8508 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
8509 (adjust_after_replace, replace_range, del_range_2)
c9671f81 8510 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
52283633
SM
8511 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
8512 (adjust_after_replace, replace_range, del_range_2) Delete codes for
c9671f81
KH
8513 handling byte combining.
8514 (adjust_before_replace): Deleted.
427ec082 8515
c9671f81
KH
8516 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
8517 SPLIT_NON_ASCII_CHAR.
8518 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
52283633 8519 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
8520 (Fkey_description): Likewise.
8521
8522 * lread.c (read1): On reading multibyte string, be sure to make
8523 all 8-bit chararacters in valid multibyte form.
8524 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
8525
8526 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
8527 unconditionally.
8528
8529 * process.c (Fstart_process): GCPRO current_dir before calling
8530 Ffind_operation_coding_system. Encode arguments here.
8531 (create_process): Don't encode arguments here. Setup
8532 src_multibyte and dst_multibyte members of struct coding.
8533 (read_process_output): Setup src_multibyte and dst_multibyte
8534 members of struct coding. If the output is to multibyte buffer,
8535 always decode the output of the process. Adjust the
52283633 8536 representation of 8-bit characters to the multibyteness of the output.
c9671f81
KH
8537 (send_process): Setup coding->src_multibyte according to the
8538 multibyteness of the source.
8539
52283633 8540 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
8541 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
8542 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
8543
52283633 8544 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
c9671f81
KH
8545
8546 * w16select.c (Fw16_set_clipboard_data): Setup members
8547 src_multibyte and dst_multibyte of coding. Adjusted for the
8548 change for find_charset_in_str.
8549 (Fw16_get_clipboard_data): Likewise.
8550
8551 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
8552 dst_multibyte of coding.
8553 (x_to_w32_font): Likewise.
8554
8555 * w32select.c (Fw32_set_clipboard_data): Setup members
8556 src_multibyte and dst_multibyte of coding. Adjusted for the
8557 change for find_charset_in_str.
8558 (Fw32_get_clipboard_data): Likewise.
8559
8560 * xdisp.c (get_next_display_element): Handle 8-bit characters
8561 correctly.
52283633
SM
8562 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
8563 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
c9671f81
KH
8564
8565 * xselect.c (selection_data_to_lisp_data): Setup members
8566 src_multibyte and dst_multibyte of coding. Adjusted for the
8567 change for find_charset_in_str.
8568 (lisp_data_to_selection_data): Likewise.
8569
5f64c9e0
GM
85702000-05-19 Gerd Moellmann <gerd@gnu.org>
8571
52283633 8572 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
2b63d473 8573
5f64c9e0
GM
8574 * dispextern.h (Vimage_types): Add extern declaration.
8575
8576 * xdisp.c (Vimage_types): Moved here from xfns.c.
8577 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
8578
8579 * xfns.c (Vimages_types): Moved to xdisp.c.
8580 (syms_of_xfns): Move `image-types' to xdisp.c.
8581
8582 * w32fns.c (Vimage_types): Removed.
8583 (syms_of_w32fns): Remove `image-types'.
8584
813086ea
KH
85852000-05-18 Kenichi Handa <handa@etl.go.jp>
8586
8587 * fns.c (map_char_table): Pay attention to character number of
8588 charset. Check the validity of charset at the first level. For
8589 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
8590 the default value.
8591
8592 * fontset.c: Include "buffer.h".
8593 (fs_load_font): If the face has fontset, record the face ID in
8594 that fontset.
8595 (Finternal_char_font): New function.
8596 (accumulate_font_info): New function.
8597 (Ffontset_info): Rewritten for the new fontset implementation.
8598 (syms_of_fontset): Register Vdefault_fontset in the first element
8599 of Vfontset_table. Include Vdefault_fontset in
8600 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
8601 function.
8602
bdaebbf0
DL
86032000-05-16 Dave Love <fx@gnu.org>
8604
8605 * m/iris5d.h: Deleted -- unused.
8606
cb613bb8
GM
86072000-05-16 Gerd Moellmann <gerd@gnu.org>
8608
b15f3b77
GM
8609 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
8610 `invalid' instead of `illegal'.
8611
8612 * indent.c (Fmove_to_column): When ending within a tab, insert
8613 spaces first so that markers at the end of the tab get adjusted.
8614
835c1b36
GM
8615 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
8616 buffer list that wasn't selected in that frame.
8617
cb613bb8
GM
8618 * filelock.c (get_boot_time): To obtain an 8 char file name, which
8619 is needed on mescaline, use a 2 char prefix, and call
8620 make_temp_name with second arg non-zero.
8621
8622 * fileio.c (make_temp_name): New function, extracted from
8623 Fmake_temp_name.
8624 (Fmake_temp_name): Use it.
8625
f685bea9
EZ
86262000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
8627
52283633 8628 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
f685bea9 8629
a1b8d58b
GM
86302000-05-15 Gerd Moellmann <gerd@gnu.org>
8631
8632 * Makefile.in (lisp): Add env.elc.
8633
8634 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
8635
a265079f
GM
86362000-05-12 Gerd Moellmann <gerd@gnu.org>
8637
8638 * search.c (Freplace_match): Handle case of `\N' in the
8639 replacement when there's no group N.
8640
da4496b6
GM
86412000-05-11 Gerd Moellmann <gerd@gnu.org>
8642
0ace421a
GM
8643 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
8644 of the message to message_dolog.
8645
1172eb8d
GM
8646 * keyboard.c (read_char): Don't clear current message for help
8647 events; let the code handling help events handle this. Change
8648 code detecting help events that should be ignored.
8649
da4496b6
GM
8650 * xdisp.c (handle_single_display_prop): Don't try to set PT if
8651 we're interating over a string.
8652
0623e40f
DL
86532000-05-09 Dave Love <fx@gnu.org>
8654
8655 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
8656 that offset before writing. Move gcpro region past call of
8657 Ffile_regular_p.
8658
bae2503b
DL
86592000-05-04 Dave Love <fx@gnu.org>
8660
8661 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
8662
ec82fb2f
GM
86632000-05-04 Gerd Moellmann <gerd@gnu.org>
8664
8665 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
8666 of inserted characters when BUF equals the current buffer, and PT
8667 is in front of or equal to FROM.
8668
cbf18892
GM
86692000-05-03 Gerd Moellmann <gerd@gnu.org>
8670
4ff40dd0
GM
8671 * xdisp.c (handle_single_display_prop): If display property value
8672 is invalid, or something not supported on the frame, restore
8673 iterator's position to what it was initially. Make sure to return
8674 0 for invalid and unsupported property values.
8675
cbf18892
GM
8676 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
8677 that x_per_char_metric returns null.
8678
1b0672c3
GM
86792000-05-02 Gerd Moellmann <gerd@gnu.org>
8680
576da55d
GM
8681 * xterm.h (struct face): Add forward declaration.
8682 (struct image): Ditto.
8683 (image_ascent): Add prototype.
8684
8685 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
8686 (x_draw_image_relief, x_draw_image_foreground_1): Call function
8687 image_ascent instead of using IMAGE_ASCENT.
8688
8689 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
8690 (IMAGE_ASCENT): Removed.
8691
8692 * xfns.c (Qcenter): New variable.
8693 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
8694 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
8695 (image_ascent): New function.
8696 (lookup_image): Recognize `:ascent center'.
8697 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
8698 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
8699 (xbm_load): Don't set image's ascent here.
8700 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
8701 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
8702 check ascent values here.
8703 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
8704 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
8705 (syms_of_xfns): Initialize Qcenter.
8706
1b0672c3
GM
8707 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
8708 to the limits, increase the limits.
8709
0d7811ed
KH
87102000-05-01 Kenichi Handa <handa@etl.go.jp>
8711
8712 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
52283633 8713 Check Vfont_encoding_alist against the full name of the opened font.
0d7811ed 8714
a943a5ca
GM
87152000-04-28 Gerd Moellmann <gerd@gnu.org>
8716
8717 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
8718 taller than the window.
8719
5dba1e29
KH
87202000-04-28 Kenichi Handa <handa@etl.go.jp>
8721
8722 * xfaces.c (realize_x_face): Fix the argument of the second
8723 xassert. BASE_FACE may not be a face for ASCII.
8724
353964e3
GM
87252000-04-27 Gerd Moellmann <gerd@gnu.org>
8726
c76e04a8
GM
8727 * print.c (print_object): Treat print-length < 0 as nil.
8728
8729 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
8730
8731 * s/freebsd.h (TERMCAP_OBJ): Removed.
8732 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
8733
8734 * lread.c (read1): Don't treat period followed by certain
8735 characters as symbol start.
8736
8737 * xfns.c (slurp_file): New function.
8738 (xbm_image_p): Handle case of in-memory XBM files.
8739 (xbm_scan): Rewritten to work on memory buffers instead of files.
8740 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
8741 Work on memory buffers instead of files. If DATA is null test
8742 if buffer looks like an in-memory XBM file.
8743 (xbm_load_image): Renamed from xbm_load_image_file. Work on
8744 memory buffers instead of files.
8745 (xbm_file_p): New function.
8746 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
8747
353964e3
GM
8748 * lread.c (end_of_file_error): New function.
8749 (read1): Call it instead of signaling `end-of-file' directly.
8750
427ec082 8751 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
8752 with Fprinc instead of Fprin1.
8753
24d744ac
KR
87542000-04-26 Ken Raeburn <raeburn@gnu.org>
8755
8756 * window.c (freeze_window_start): Check that minibuffer scroll
8757 window isn't nil before extracting the window structure pointer
8758 from it.
8759
8760 * undo.c (record_delete): If we hit the end of the undo list, stop
8761 picking elements apart.
8762
7464346d
GM
87632000-04-26 Gerd Moellmann <gerd@gnu.org>
8764
8765 * xdisp.c (display_line): If lines are continued, restore
8766 iterator's ascent/descent information to the values before the
8767 first glyph not fitting on the line.
8768
612839b6
GM
87692000-04-25 Gerd Moellmann <gerd@gnu.org>
8770
8771 * xdisp.c (try_window_id) <all changes above window start>: Adjust
52283633 8772 positions in glyph matrix. Don't compute new window end positions.
612839b6
GM
8773
8774 * dispnew.c (increment_matrix_positions): Renamed from
8775 increment_glyph_matrix_buffer_positions.
8776 (increment_row_positions): Renamed from
8777 increment_glyph_row_buffer_positions.
8778
8779 * dispextern.h: Change names of renamed functions from dispnew.c
8780 in prototypes.
8781
cc181e95
GM
87822000-04-24 Gerd Moellmann <gerd@gnu.org>
8783
abfcc168
GM
8784 * fileio.c (Fdo_auto_save): Create directories for auto-save
8785 list file if necessary.
8786
cc181e95
GM
8787 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
8788 from buffer or frame.
8789 (automatic_hscrolling_p): New variable.
8790 (hscroll_windows): Scroll windows horizontally only if automatic
8791 hscrolling is allowed.
8792 (syms_of_xdisp): New variable `automatic-hscrolling'.
8793
8794 * frame.h (struct frame): Add member extra_line_spacing.
8795
8796 * xfns.c (x_set_line_spacing): New function.
8797 (Fx_create_frame): Set line spacing from resources.
8798 (Qline_spacing): New variable.
8799 (syms_of_xfns): Initialize Qline_spacing.
427ec082 8800
cc181e95
GM
8801 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
8802
8803 * buffer.c (init_buffer_once): Handle extra_line_spacing.
8804 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 8805 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
8806 extra_line_spacing from default value.
8807 (init_buffer_once): Initialize default value of extra_line_spacing.
8808
8809 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
8810 and extra3.
8811
8812 * xterm.c (x_produce_glyphs): Remove reference to struct it's
8813 prompt_width. Add extra line spacing.
8814
8815 * term.c (produce_glyphs): Remove reference to struct it's
8816 prompt_width.
8817
8818 * dispextern.h (struct it): Remove member prompt_width, add
8819 extra_line_spacing.
8820
58827478
GM
88212000-04-22 Gerd Moellmann <gerd@gnu.org>
8822
8823 * dispnew.c (update_frame_line): When writing a whole line, make
8824 sure cursor is in the right row afterwards, otherwise a use of
8825 capability `ch' in cmgoto might leave the cursor in the row below.
8826
25a87f42
GM
88272000-04-21 Gerd Moellmann <gerd@gnu.org>
8828
8829 * lisp.h (struct Lisp_Buffer_Cons): Remove.
8830
8831 * keyboard.c (timer_check): Fix typo in comment.
8832
54edf5c2
KH
88332000-04-21 Kenichi Handa <handa@etl.go.jp>
8834
8835 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
8836 name change: ch -> character.
8837
3a64eef5
GM
88382000-04-20 Gerd Moellmann <gerd@gnu.org>
8839
8840 * keyboard.c (echo_message_buffer): New variable.
8841 (echo_now): Set echo_message_buffer to the echo area buffer used
8842 to display the echo.
8843 (cancel_echoing): Reset echo_message_buffer to nil.
8844 (read_char): Code rewritten that handles canceling an echo or
8845 echoing a dash, respectively.
8846
8847 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
8848 directory doesn't exist.
8849
6142fdcb
DL
88502000-04-19 Dave Love <fx@gnu.org>
8851
8852 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
8853 (concat): Don't allow numeric args.
8854 (Fconcat): Doc change.
6142fdcb 8855
ac6b5352
SM
88562000-04-19 Stefan Monnier <monnier@cs.yale.edu>
8857
8858 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
8859 instead define end_match(1|2) more carefully.
8860 Use GET_CHAR_BEFORE_2 for `begline'.
8861
cb9215e4
GM
88622000-04-19 Gerd Moellmann <gerd@gnu.org>
8863
5e3dac3f
GM
8864 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
8865 on 64-bit systems where NULL is defined as `0'.
8866
8867 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
8868 the `variable argument list' to make it work on Alpha.
8869
cb9215e4
GM
8870 * m/alpha.h (_LP64) [!_LP64]: Define.
8871 (ORDINARY_LINK): Define for NetBSD.
8872
8873 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 8874
f532dca0
DL
88752000-04-19 Dave Love <fx@gnu.org>
8876
c750667e
DL
8877 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
8878 change.
8879
8880 * Makefile.in (LIBS): Don't use.
8881 (GETLOADAVG_OBJ): Define again.
8882 (otherobj): Add GETLOADAVG_OBJ.
8883
f532dca0
DL
8884 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
8885
1c7e22fd
GM
88862000-04-18 Gerd Moellmann <gerd@gnu.org>
8887
f6d3257b
GM
8888 * lread.c (read_filtered_event): Cancel and start busy cursor.
8889
427ec082 8890 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
8891 that the per-character metrics may be null.
8892
e10f64e7
GM
88932000-04-17 Gerd Moellmann <gerd@gnu.org>
8894
0daee095
GM
8895 * buffer.c (clone_per_buffer_values): New function.
8896 (Fmake_indirect_buffer): Add optional argument CLONE. Call
8897 clone_per_buffer_values if CLONE is not nil.
8898
e10f64e7
GM
8899 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
8900
38687d43
DL
89012000-04-16 Dave Love <fx@gnu.org>
8902
8903 * Makefile.in: Remove obsolete localcpp stuff.
8904 (GETLOADAVG_OBJ): Don't define.
8905 (obj): Move LIBOBJS...
8906 (otherobj): ... to here.
8907 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
8908 whitespace-only lines after the continuation (Irix).
8909
c21c7262
GM
89102000-04-14 Gerd Moellmann <gerd@gnu.org>
8911
8912 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
8913
8914 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
8915
314767c0
DL
89162000-04-14 Dave Love <fx@gnu.org>
8917
8918 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
8919 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
8920 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
8921 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
8922 NLIST_STRUCT.
8923
8924 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
8925 autoconfiscated HAVE_GETLOADAVG.
8926
8927 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
8928 BROKEN_MKTIME.
8929
a2522dca
GM
89302000-04-14 Gerd Moellmann <gerd@gnu.org>
8931
8932 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
52283633 8933 (fill_in_lock_file_name): Avoid existing files that aren't links.
a2522dca 8934
33744b5d
DL
89352000-04-14 Dave Love <fx@gnu.org>
8936
c21c7262 8937 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
8938 (INTERVAL_SRC): Convert to make variable.
8939 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
8940 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
8941 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
8942 add LIBOBJS.
8943 (SOME_MACHINE_OBJECTS): Remove interval stuff.
8944 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
8945 (shortlisp): Add facemenu, float-sup, frame.
8946 (SOME_MACHINE_LISP): Remove them from here.
8947 (LIBES): Change unused LDLIBS to autoconf LIBS.
8948
8949 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
8950
9d3d5916
KH
89512000-04-14 Kenichi Handa <handa@etl.go.jp>
8952
8953 * composite.c (update_compositions): If FROM and TO are not in a
8954 valid range, do nothing.
8955
198e3c7a
GM
89562000-04-13 Gerd Moellmann <gerd@gnu.org>
8957
52283633 8958 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
198e3c7a 8959
52283633 8960 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
198e3c7a
GM
8961
8962 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
8963 as TERMCAP_OBJ.
8964
055a28c9
EZ
89652000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
8966
8967 * fileio.c (a_write): Remove redundant semi-colons.
8968 (e_write): Return -1 if failed to write all the data.
8969 This fixes the changes made at 1999-12-15.
8970
f5c75033
DL
89712000-04-12 Dave Love <fx@gnu.org>
8972
8973 * fns.c (mapcar1): Test for null vals to support mapc.
8974 (Fmapc): New function.
8975
0c3cfc51
EZ
89762000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
8977
8978 * msdos.c (NUM_MOUSE_BUTTONS): Define.
8979 (IT_frame_up_to_date): Support the buffer local value of
8980 cursor-type, if defined.
8981
33465a31
DL
89822000-04-10 Dave Love <fx@gnu.org>
8983
8984 * editfns.c (preceding-char, following-char): Doc fix.
8985
6ed56568
KR
89862000-04-10 Ken Raeburn <raeburn@gnu.org>
8987
8988 * Makefile.in (temacs): Revert 2000-03-12 change.
8989
7cf80d4e
JR
89902000-04-10 Jason Rumney <jasonr@gnu.org>
8991
8992 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
8993
34f3f342
GM
89942000-04-10 Gerd Moellmann <gerd@gnu.org>
8995
1a1b1895
GM
8996 * xdisp.c (setup_echo_area_for_printing): Choose an echo
8997 area buffer, if it's not set up yet.
8998
34f3f342
GM
8999 * indent.c (compute_motion): Set immediate_quit.
9000
be0dbdab
GM
90012000-04-09 Gerd Moellmann <gerd@gnu.org>
9002
52283633 9003 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
c45be9ac
GM
9004 (realize_tty_face): Suppress boldness if colors are the inverse of
9005 the default colors, and tty_suppress_bold_inverse_default_colors_p
9006 is set.
9007 (Ftty_suppress_bold_inverse_default_colors): New function.
9008 (syms_of_xfaces): Defsubr it.
9009
be0dbdab
GM
9010 * buffer.c (Frestore_buffer_modified_p): New function.
9011 (syms_of_buffer): Defsubr it.
9012
e8413c3b
KR
90132000-04-08 Ken Raeburn <raeburn@gnu.org>
9014
87f67317
KR
9015 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
9016 charset id (int) argument, not a charset (Lisp_Object).
9017
e8413c3b
KR
9018 * coding.h (code_convert_string): Declare.
9019 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
9020 object, as the fourth argument to code_convert_string.
9021
52283633 9022 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
e8413c3b
KR
9023 (Fset_fontset_font): Use EQ to compare lisp objects.
9024
7c752c80
KR
90252000-04-05 Ken Raeburn <raeburn@gnu.org>
9026
c0333abc
KR
9027 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
9028 a pointer that looks like a lisp object.
9029 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
9030 zero, instead see whether it's an integer object, since they can't
9031 have intervals.
9032 (GET_INTERVAL_OBJECT): Simply assign to the destination.
9033
52283633
SM
9034 * dispnew.c (allocate_matrices_for_frame_redisplay)
9035 (direct_output_forward_char): Use X(U)INT and make_number as needed
7c752c80
KR
9036 to convert between (unsigned) int values and lisp integers.
9037 * keyboard.c (read_key_sequence): Likewise.
9038 * lread.c (substitute_object_recurse): Likewise.
9039 * fns.c (concat, hash_lookup, hash_remove): Likewise.
52283633
SM
9040 * minibuf.c (do_completion, Fminibuffer_complete_word)
9041 (Fminibuffer_completion_help): Likewise.
7c752c80
KR
9042 * term.c (produce_special_glyphs): Likewise.
9043
9044 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
9045 * print.c (print_preprocess, print_object): Likewise.
9046
9047 * search.c (compile_pattern): Use NILP when checking for nil.
9048
74e49b38
KR
9049 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
9050 __OPTIMIZE__]: Provide a GNU C macro version that handles
9051 lisp-object unions.
9052 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
9053 field, to better cope with ENABLE_CHECKING and calls that modify a
9054 Lisp_Object using its old value.
9055
685e5ed2
GM
90562000-04-04 Gerd Moellmann <gerd@gnu.org>
9057
c407c570
GM
9058 * window.c (compare_window_configurations): Signal an error
9059 if parameters C1 or C2 aren't window configurations.
9060
685e5ed2
GM
9061 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
9062 AFTER_POTENTIAL_GC calls around calls to functions that can
9063 signal an error and thus invoke the debugger.
9064
587a49ab
GM
90652000-04-03 Gerd Moellmann <gerd@gnu.org>
9066
62f20204
GM
9067 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
9068 an error if decoding fails.
9069
587a49ab
GM
9070 * keyboard.c (lispy_mouse_names): Variable removed.
9071 (Vlispy_mouse_stem): New variable.
9072 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
9073 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
9074 for any mouse button number. Increase size of mouse_syms and
9075 button_down_location as needed. Call modify_event_symbol with
9076 different arguments.
9077 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
9078 Call modify_event_symbol with different arguments.
9079 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
9080 for any button number. Call modify_event_symbol with different
9081 arguments.
9082 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
9083 Accept a string for NAME_ALIST_OR_STEM.
9084
9085 * lisp.h (larger_vector): Add prototype.
9086
9087 * fns.c (larger_vector): Make externally visible.
9088
9089 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
9090
2d1675e4
SM
90912000-04-02 Stefan Monnier <monnier@cs.yale.edu>
9092
9093 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
9094 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
9095 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
9096 we are between str1 and str2.
9097 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
9098 (PATFETCH): Use `TRANSLATE'.
9099 (PATFETCH_RAW): Fetch multibyte char if applicable.
9100 (PATUNFETCH): Remove.
9101 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
9102 When writing a char, write it directly into the pattern buffer rather
9103 than going needlessly through a temp char-array.
9104 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
9105 multibyte magic and remove the useless `#ifdef emacs'.
9106 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
9107 buffer.
9108
9109 * regex.h (struct re_pattern_buffer): Make field `multibyte'
9110 conditional on `emacs'.
9111
9112 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
9113
cc2d8c6b
KR
91142000-04-01 Ken Raeburn <raeburn@gnu.org>
9115
9116 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
9117 non-union-type versions of XMARK and friends here, because XMARK
9118 and friends won't work on an integer field if NO_UNION_TYPE is not
9119 defined.
52283633 9120 (make_number): Define as a function if it's not defined as a macro.
cc2d8c6b 9121
52283633 9122 * composite.c (run_composite_function): Use NILP when checking for nil.
09654086
KR
9123 (syms_of_composite): Delete local var NARGS, pass an int as first
9124 argument to Fmake_hash_table.
9125
2387b382
KR
9126 * editfns.c (text_property_stickiness): Use NILP to test
9127 Lisp_Object boolean value.
9128 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
9129 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
9130 problems reading from and changing the same lisp value in an
9131 XSETSTRING call.
9132
27660e89
GM
91332000-04-01 Gerd Moellmann <gerd@gnu.org>
9134
9135 * term.c (TN_no_color_video): New variable.
9136 (term_init): Intitialize TN_no_color_video.
9137 (enum no_color_bit): New enumeration.
9138 (MAY_USE_WITH_COLORS_P): New macro.
9139 (turn_on_face): Use it to determine if attributes may be used
9140 combined with colors.
9141
3578db3c
KR
91422000-04-01 Ken Raeburn <raeburn@gnu.org>
9143
9144 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
52283633 9145 with int lvalues via casts; instead, just yield lisp object lvalues.
3578db3c
KR
9146 (enlarge_window): Variable sizep now points to Lisp_Object. Use
9147 proper accessor macros.
9148 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
9149 (grow_mini_window): Fix typo getting int value of root->height.
9150
6fc556fd
KR
9151 * xdisp.c (compute_string_pos): Fix order of arguments to
9152 string_pos_nchars_ahead.
9153 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
9154 count arg to variable-arg routines like Frun_hook_with_args and
9155 Fformat.
587a49ab
GM
9156 (back_to_previous_visible_line_start)
9157 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
9158 fixed-arg routines like Fget_char_property and Fmake_string.
9159 (reconsider_clip_changes): Use XINT when comparing integer lisp
9160 objects, or passing them as int arguments.
587a49ab
GM
9161 (mark_window_display_accurate, insert_left_trunc_glyphs)
9162 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
9163 storing or passing integer values as lisp objects.
9164 (set_cursor_from_row, highlight_trailing_whitespace): Use
9165 INTEGERP, not implicit test against zero, for glyph object.
9166 (try_window_id): Don't use make_number when we want an int value.
9167
9168 * xfaces.c (xlfd_symbolic_value): Make last argument a
9169 Lisp_Object, to be consistent with callers.
9170 (Fbitmap_spec_p): Use XINT to get numeric value of height.
9171 (lface_hash): Apply XFASTINT to lisp values before folding in.
9172
9173 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
9174 fill in window width and height. Pass an int, not a lisp object,
9175 as first arg to Finsert.
9176
6e7b2457
GM
91772000-04-01 Gerd Moellmann <gerd@gnu.org>
9178
610d841e
GM
9179 * xfaces.c (realize_basic_faces): Block input while realizing
9180 the faces.
9181
6e7b2457
GM
9182 * keyboard.c (lispy_mouse_names): Add additional mouse names.
9183
9184 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
9185
aa110c0c
GM
91862000-03-31 Gerd Moellmann <gerd@gnu.org>
9187
9188 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 9189 or ASCII, handle case that per-char metric is null.
aa110c0c 9190
8801a864
KR
91912000-03-30 Ken Raeburn <raeburn@gnu.org>
9192
c6129d7e
KR
9193 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
9194
52283633
SM
9195 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
9196 (XSUBR, XBUFFER): Verify correct object type before returning
8801a864
KR
9197 pointer, using eassert.
9198 * frame.h (XFRAME): Likewise.
9199
52283633
SM
9200 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
9201 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
9202 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
8801a864 9203 * data.c (set_internal): Likewise.
52283633
SM
9204 * dispextern.h (WINDOW_WANTS_MODELINE_P)
9205 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
8801a864
KR
9206 * fileio.c (auto_save_1): Likewise.
9207 * insdel.c (check_markers): Likewise.
9208 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
9209 * undo.c (record_insert): Likewise.
9210 * vmsproc.c (child_sig): Likewise.
9211 * window.c (unshow_buffer, window_loop): Likewise.
9212 * xterm.c (x_erase_phys_cursor): Likewise.
9213
8e7af858
GM
92142000-03-30 Gerd Moellmann <gerd@gnu.org>
9215
9216 * xfns.c (free_image_cache): Free the cache structure itself
9217 last, after all its members have been freed.
9218
9219 * lisp.h (xstrdup): Add prototype.
9220
9221 * alloc.c (xstrdup): Moved here from xfaces.c.
9222 (allocating_for_lisp): Variable removed.
52283633 9223 (lisp_malloc): Block input around the calls to malloc and mem_insert.
8e7af858
GM
9224
9225 * xfaces.c (realize_tty_face): Use find_symbol_value instead
9226 of Fsymbol_value.
9227 (xstrdup): Moved to alloc.c.
9228
e0b8c689
KR
92292000-03-29 Ken Raeburn <raeburn@gnu.org>
9230
b96f9fb7
KR
9231 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
9232
9233 * emacs.c (main): Fix sense of no-loadup test.
9234
e0b8c689
KR
9235 * config.in (ENABLE_CHECKING): Undef.
9236
9237 * lisp.h (struct interval): Replace "parent" field with a union of
9238 interval pointer and Lisp_Object; add new bitfield to use as
9239 discriminant. Change other flag fields to bitfields.
9240 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
52283633
SM
9241 is defined and the supplied test fails, print a message and abort.
9242 (eassert): New macro. Use CHECK to provide an assert-like facility.
e0b8c689
KR
9243
9244 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
9245 pointers; abort if the value looks like a lisp object.
52283633
SM
9246 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
9247 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
e0b8c689
KR
9248 Modify for new interval parent definition.
9249
52283633
SM
9250 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
9251 (UNMARK_BALANCE_INTERVALS): Update references that need an
e0b8c689
KR
9252 addressable lisp object in the interval structure.
9253 (die): New function.
9254 (suppress_checking): New variable.
9255
9256 * intervals.c (interval_start_pos): Just return 0 if there's no
9257 parent object.
9258
f83c5440
GM
92592000-03-29 Gerd Moellmann <gerd@gnu.org>
9260
9261 * lread.c (read1): Accept `.' (period) as symbol start like in CL
9262 and earlier Emacs versions.
9263
9264 * keyboard.c (Ftop_level): Cancel busy-cursor.
9265
9266 * eval.c (call_debugger): Cancel busy-cursor.
9267
fdce64ff
KH
92682000-03-29 Kenichi Handa <handa@etl.go.jp>
9269
9270 * search.c (Freplace_match): Adjust multibyteness of the current
52283633 9271 buffer and NEWTEXT. Free allocated memory before signaling an error.
fdce64ff 9272
f6a3f532
SM
92732000-03-28 Stefan Monnier <monnier@cs.yale.edu>
9274
9275 * regex.c (analyse_first): New function obtained by ripping out most
9276 of re_compile_fastmap and generalizing it a little bit so that it
9277 can also just return whether a given (sub)pattern can match the empty
9278 string or not.
9279 (regex_compile): Use `analyse_first' to decide whether the loop-check
9280 needs to be done or not for *, +, *? and +? (the loop check is costly
9281 for non-greedy repetition).
9282 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
9283
e9b309ac
DL
92842000-03-28 Dave Love <fx@gnu.org>
9285
52283633 9286 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
bb15bd9a 9287
e9b309ac
DL
9288 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
9289
ed0767d8
SM
92902000-03-27 Stefan Monnier <monnier@cs.yale.edu>
9291
9292 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
9293 an expression.
9294 (enum re_opcode_t): Update description of succeed_n.
9295 (PATFETCH): Always define.
9296 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
9297 operators, char classes, shy-groups and intervals).
9298 Optimize special cases of intervals so as to only use succeed_n and
9299 jump_n when really needed.
9300 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
9301 that we don't have to handle the special cases any more.
9302 Simplify on_failure_jump handling as well.
9303
e11e7e46
JR
93042000-03-28 Jason Rumney <jasonr@gnu.org>
9305
9306 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
9307
88faab89
GM
93082000-03-27 Gerd Moellmann <gerd@gnu.org>
9309
182ff242
GM
9310 * s/freebsd.h (GC_SETJMP_WORKS): Define.
9311
9312 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 9313
182ff242
GM
9314 * alloc.c (mark_maybe_object): New function.
9315 (mark_memory): Use it.
9316 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
9317 (setjmp_tested_p, longjmp_done): New variables.
9318 (test_setjmp): New function.
9319 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
9320 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
9321
c1005d06
GM
9322 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
9323 to DEC_TEXT_POS and INC_TEXT_POS.
9324
9325 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
9326 with parameter MULTIBYTE_P.
9327
52283633 9328 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
c1005d06 9329
7439e5b9 9330 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
9331 buffers because it looks for multibyte character byte sequences
9332 which don't exist in unibyte text.
7439e5b9 9333
d9c545da
GM
9334 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
9335
11fd416e 9336 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
9337 [DEBUG_X_COLORS]: New functions.
9338 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
9339
9340 * xfns.c (x_set_cursor_color): Get color reference counts right.
9341
9342 * xterm.c (x_copy_color): New function.
9343 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
9344
9345 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
9346 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
9347 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
9348 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
9349 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
9350 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
9351 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
9352 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
9353 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
9354 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
9355
11fd416e
GM
9356 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
9357 names for handling per-buffer variables.
d9c545da
GM
9358
9359 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
9360 instead of MAX_BUFFER_LOCAL_VARS.
9361 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
9362
9363 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
9364
88faab89
GM
9365 * xfns.c (x_specified_cursor_type): New function.
9366 (x_set_cursor_type): Use it.
9367
9368 * buffer.h (struct buffer): Add cursor_type.
9369
d80f42b7
SM
93702000-03-26 Stefan Monnier <monnier@cs.yale.edu>
9371
9372 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
52283633
SM
9373 (print_partial_compiled_pattern, re_compile_fastmap):
9374 Handle new opcode.
d80f42b7
SM
9375 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
9376 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
9377 executing it as well as when popping it off the stack to find infinite
9378 loops in non-greedy repetition operators.
9379
89e80928
GM
93802000-03-26 Gerd Moellmann <gerd@gnu.org>
9381
3d4ff2dd
GM
9382 * doc.c (Qfunction_documentation): New variable.
9383 (syms_of_doc): Initialize Qfunction_documentation.
9384 (Fdocumentation): If FUNCTION is a symbol with non-nil
9385 `function-documentation' property, return a documentation derived
9386 from that.
9387
bd96bd79
GM
9388 * buffer.c (syms_of_buffer): Add default-cursor-type.
9389 (init_buffer_once): Don't let cursor_type have a local value
9390 in every buffer.
9391
19d1bc27
GM
9392 * xterm.c (x_display_and_set_cursor): Choose cursor depending
9393 on buffer-local value of cursor_type.
9394 (x_draw_bar_cursor): Add parameter WIDTH.
9395
9396 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
9397 (init_buffer_once): Set default cursor_type value to t.
9398 Mark cursor_type as local everywhere.
9399 (syms_of_buffer): New per-buffer variable cursor-type.
9400
89e80928
GM
9401 * buffer.h (struct buffer): Remove member local_var_flags,
9402 add local_flags.
9403 (MAX_BUFFER_LOCAL_VARS): New macro.
9404 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
9405 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
9406 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
9407 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
9408
52283633 9409 * print.c (print_object): Use new macros for per-buffer variables.
89e80928
GM
9410
9411 * category.c (Fset_category_table): Use new macros for per-buffer
9412 variables.
9413
9414 * buffer.c (buffer_permanent_local_flags): Make a char array.
9415 (max_buffer_local_idx): New variable.
9416 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
9417 for new handling of per-buffer variables.
9418 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
9419 (init_buffer_once): Initialize per-buffer vars differently.
9420 Set max_buffer_local_idx.
9421
9422 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
9423 variables.
9424
52283633 9425 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
89e80928
GM
9426
9427 * data.c (do_symval_forwarding, store_symval_forwarding)
9428 (find_symbol_value, set_internal, default_value, Fset_default)
9429 (Fkill_local_variable, Flocal_variable_p): Use new macros for
9430 per-buffer variables.
9431
9432 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
9433
9a0dd3dc
GM
94342000-03-24 Gerd Moellmann <gerd@gnu.org>
9435
b68c375f
GM
9436 * xterm.c (x_term_init): Unblock input around call1 of
9437 Qvendor_specific_keysyms.
9438
9a0dd3dc
GM
9439 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
9440 (find_defun_start): Consider an open parenthesis in column 0
9441 a defun start only if open_paren_in_column_0_is_defun_start is set.
9442 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
9443
7973e637
SM
94442000-03-24 Stefan Monnier <monnier@cs.yale.edu>
9445
9446 * eval.c (Fautoload): Add entry in load-history (if after dump).
9447 * lread.c (load-history): Update docstring.
9448
39210e90
GM
94492000-03-24 Gerd Moellmann <gerd@gnu.org>
9450
9451 * indent.c (Fvertical_motion): Always use the current buffer.
9452 Temporarily change the window's buffer, if necessary.
9453
72db3ab5
GM
94542000-03-23 Gerd Moellmann <gerd@gnu.org>
9455
9456 * xterm.c (fast_find_position): Make sure not to consider rows
9457 not visible in the window.
9458
990b2375
SM
94592000-03-22 Stefan Monnier <monnier@cs.yale.edu>
9460
9461 * regex.c (enum syntaxcode): Provide default for non-Emacs.
9462 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
9463
ff4df011
JR
94642000-03-22 Jason Rumney <jasonr@gnu.org>
9465
9466 * w32menu.c (single_submenu): Set help string to NULL if none.
9467 (w32_menu_show): Set help string correctly.
9468 (add-menu-item): Set help string in MIIM_DATA for menu item.
9469 Load SetMenuItemInfoA explicitly.
9470 (w32_menu_display_help): New function.
427ec082 9471
ff4df011
JR
9472 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
9473 (QCdata): Moved to xdisp.c.
9474
9475 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
9476 (Vw32_charset_to_codepage_alist): Removed.
9477 (Vw32_charset_info_alist): New variable.
52283633
SM
9478 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
9479 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
9480 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
ff4df011
JR
9481 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
9482 with TODO comment.
9483 (w32_codepage_for_font): Use Vw32_charset_info_alist.
9484 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
9485 Define Vw32_charset_info_alist and w32_charset symbols.
9486
94872000-03-22 Jason Rumney <jasonr@gnu.org>
9488
9489 * makefile.nt (w32bdf.obj): Update dependencies.
9490
9491 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
9492
9493 * w32fns.c: Include fontset.h after dispextern.h.
9494 (Fx_create_frame): Do not create fontset.
9495 (w32_load_system_font): Doc fix.
9496 (Fx_close_connection): Free full_name if it is not shared.
9497
9498 * w32term.c: Include fontset.h after dispextern.h.
52283633
SM
9499 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
9500 Callers updated.
ff4df011
JR
9501 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
9502 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
9503 (w32_font_is_double_byte): New function, needs body.
9504 (x_append_glyph): Set glyph->glyph_not_available_p.
9505 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
9506 it->charset. If it->multibyte_p is zero and it->c is a multibyte
9507 character, convert it to a unibyte character.
9508 (struct glyph_string): Delete member `charset'.
9509 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
9510 calculating it is found.
9511 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
9512 the case that per char metric is not available correctly.
9513 (x_fill_glyph_string): Handle the case that the specific glyph is
9514 not available correctly.
9515 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
9516 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
9517 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
9518 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
9519 fontset. Don't call FS_LOAD_FONT.
9520
439d5cb4
KR
95212000-03-22 Ken Raeburn <raeburn@gnu.org>
9522
9523 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
9524 (INT_LISPLIKE): New macro.
9525 (NULL_INTERVAL_P): Use it.
52283633
SM
9526 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
9527 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
9528 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
439d5cb4
KR
9529
9530 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
9531 explicit references to "parent" field of struct interval and
9532 associated unclean type conversions.
52283633
SM
9533 * intervals.c (create_root_interval, root_interval, rotate_right)
9534 (rotate_left, balance_possible_root_interval, split_interval_right)
9535 (split_interval_left, interval_start_pos, find_interval)
9536 (next_interval, previous_interval, update_interval)
9537 (adjust_intervals_for_insertion, delete_node, delete_interval)
9538 (adjust_intervals_for_deletion, merge_interval_right)
9539 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
9540 (copy_intervals_to_string): Likewise.
439d5cb4
KR
9541 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
9542 Likewise.
9543 * syntax.c (update_syntax_table): Likewise.
9544
9545 * intervals.c (reproduce_tree_obj): New function, like
9546 reproduce_tree but takes a Lisp_Object for the parent. Declare
9547 with prototype.
9548 (graft_intervals_into_buffer): Use it when appropriate.
9549 (reproduce_tree): Declare with prototype.
9550 (balance_possible_root_interval): Check that the parent is a lisp
9551 object before trying to examine its type.
9552
ee1c5b21
GM
95532000-03-22 Gerd Moellmann <gerd@gnu.org>
9554
9555 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
9556 as strings only if both are known to be strings.
9557
9558 * s/openbsd.h (LIBS_TERMCAP): Undef.
9559
1fb352e0
SM
95602000-03-21 Stefan Monnier <monnier@cs.yale.edu>
9561
9562 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
9563 definitions for non-Emacs compilation.
9564 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
9565 outside of `#ifdef emacs'.
9566 (print_partial_compiled_pattern): Update.
9567 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
9568 (re_compile_fastmap): Merge handling of charset and charset_not (for
9569 emacs and non-emacs compilation as well).
9570 Similarly for (not)categoryspec and (not)syntaxspec.
9571 Don't use the fastmap when reaching `anychar' since the added
9572 complexity is not justified.
9573 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
9574 and (not)syntaxspec. Merge (not)categoryspec.
9575
fdaa1f77
KH
95762000-03-22 Kenichi Handa <handa@etl.go.jp>
9577
52283633
SM
9578 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
9579 (FACE_FOR_CHAR): Define them differently for the configuration of
ff1a0d8e 9580 --without-x.
fdaa1f77 9581
d152fb46
DL
95822000-03-21 Dave Love <fx@gnu.org>
9583
9584 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
9585 doc string.
9586
d2cafc8c
GM
95872000-03-21 Gerd Moellmann <gerd@gnu.org>
9588
9589 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
9590 (lface_fully_specified_p): Don't check contents of
9591 LFACE_FONT_INDEX because that attribute is optional.
9592 (realize_x_face): Remove now unwarranted xassert.
9593
9111d4b5
KH
95942000-03-21 Kenichi HANDA <handa@etl.go.jp>
9595
9596 The following changes are to make font selection based on
9597 characters, not charset. In addition, they recover fontset
9598 facilities while utilizing the new font selection mechanism.
9599
6c4bfdc0
KH
9600 * Makefile.in (fontset.o): Depend on dispextern.h.
9601
9602 * alloc.c (mark_face_cache): Don't mark face->registry.
9603
9111d4b5
KH
9604 * dispextern.h (struct glyph): New member glyph_not_available_p.
9605 Use 22 bits for face_id.
9606 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
9607 (struct face): Delete member registry, new member ascii_face.
9608 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
9609 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
9610 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
52283633 9611 (struct it): Delete member charset, new member glyph_not_available_p.
9111d4b5
KH
9612
9613 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
9614 (struct fontset_info, struct fontset_data): Structs removed.
52283633
SM
9615 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
9616 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
9111d4b5 9617 (fs_load_font, fs_query_fontset): Adjusted for new argument.
52283633
SM
9618 (fs_free_face_fontset, fontset_font_pattern)
9619 (face_suitable_for_char_p, face_for_char)
9620 (make_fontset_for_ascii_face): Extern them.
9111d4b5
KH
9621 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
9622 (FS_LOAD_FACE_FONT): New macro.
9623
9624 * fontset.c: All codes rewritten or adjusted for the change of
9625 fontset implementation. Now fontset is represented by char table.
52283633
SM
9626 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
9627 Variables removed.
9111d4b5 9628 (my_strcasecmp): Function removed.
52283633 9629 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
9111d4b5 9630 (AREF, ASIZE): New macros.
52283633
SM
9631 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
9632 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
9633 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
9634 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
9635 (fontset_id_valid_p, font_family_registry, fontset_name)
9636 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
9637 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
9111d4b5
KH
9638 New functions.
9639 (fs_load_font): New arg FACE. Caller changed.
9640 (fs_query_fontset): Argument changed. Caller changed.
9641 (Fquery_fontset): call fs_query_fontset.
9642 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
9643 Functions removed.
52283633
SM
9644 (clear_fontset_elements, check_registry_encoding)
9645 (check_fontset_name): New functions.
9111d4b5
KH
9646 (syms_of_fontset): Set char-table-extra-slots property of fontset
9647 to 3. Staticpro and initialize Vfontset_table and
9648 Vdefault_fontset. Defsubr fontset_font and fontset_list.
9649
9650 * frame.h (struct frame): Member `fontset_data' removed.
9651 (FRAME_FONTSET_DATA): Macro removed.
9652
9653 * frame.c (make_frame): Don't allocate f->fontset_data.
9654 (Fdelete_frame): Don't free f->fontset_data.
9655
6c4bfdc0
KH
9656 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
9657
9111d4b5
KH
9658 * xdisp.c (charset_at_position): Function removed.
9659 (init_iterator): Don't set member charset of struct `it'.
52283633
SM
9660 (handle_face_prop, reseat_to_string, set_iterator_to_next)
9661 (next_element_from_display_vector, insert_left_trunc_glyphs):
9111d4b5
KH
9662 Likewise.
9663 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
9664 FACE_FOR_CHARSET.
52283633
SM
9665 (get_next_display_element, append_space)
9666 (extend_face_to_end_of_line): Likewise.
9111d4b5
KH
9667
9668 * xfaces.c (Qx_charset_registry, Vface_default_registry):
9669 Variables removed.
9670 (clear_font_table, frame_update_line_height, load_face_font):
9671 Adjusted for the change of fontset implementation.
9672 (load_face_fontset_font): Function removed.
9673 (pixel_point_size): New function.
9674 (font_list): Argument type changed. Caller changed.
9675 (LFACE_FONT): New macro.
9676 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
9677 (set_lface_from_font_name): Type of arg FONTNAME is changed to
9678 Lisp_Object. Determine the font name by actually loading a font
9679 by the specified pattern. Set LFACE_FONT (lface) to the specified
9680 pattern. Even if a font is not found, don't try alternatives.
9681 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
9682 (set_font_frame_param): If `font' is specified in lface, use it.
9683 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
9684 (lface_same_font_attributes_p): Likewise.
9685 (make_realized_face): Arguent changed. Caller changed. Set
9686 face->ascii_face to face itself.
9687 (free_realized_face): Free face->fontset if face is for ASCII.
52283633
SM
9688 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
9689 (deduce_unibyte_registry, x_charset_registry): Functions removed.
9111d4b5
KH
9690 (free_realized_multibyte_face): New function.
9691 (lookup_face, lookup_named_face, lookup_derived_face): Argument
9692 changed. Caller changed.
9693 (try_font_list): Argument type changed.
9694 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
9695 (choose_face_font): Argument changed. Handle fontset properly.
9696 (choose_face_fontset_font): Function removed.
9697 (realize_default_face, realize_named_face): Don't remove the
9698 former face here.
9699 (realize_face): Argument changed. Caller changed. Remove face
52283633 9700 with the arg former_face_id in advance. Load font for the new face.
9111d4b5
KH
9701 (realize_x_face): Argument changed. Caller changed. For a
9702 multibyte character, share fontset with base_face. For a single
52283633 9703 byte character, make a new realized fontset. Don't load a font here.
9111d4b5
KH
9704 (realize_tty_face): Argument changed. Caller changed.
9705 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
9706 (face_at_buffer_position): Don't check multibyte_p for returning
9707 DEFAULT_FACE_ID.
9708 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
9709 FACE_SUITABLE_FOR_CHARSET_P.
9710 (syms_of_xfaces): Remove code for Qx_charset_registry and
9711 Vface_default_registry.
9712
6c4bfdc0
KH
9713 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
9714 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
9715 (x_per_char_metric): Don't try FONT->default_char. Even if
9716 pcm->width is zero, glyph bits may exist.
9717 (x_encode_char): Always initialize char2b->byte1.
9718 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
52283633 9719 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
9111d4b5
KH
9720 (x_append_glyph): Set glyph->glyph_not_available_p.
9721 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
9722 it->charset. Handle the case that per char metric is not
9723 available. If it->multibyte_p is zero and it->c is a multibyte
9724 character, convert it to a unibyte character.
9725 (struct glyph_string): Delete member `charset'.
9726 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
9727 the case that per char metric is not available correctly.
9728 (x_fill_glyph_string): Handle the case that the specific glyph is
9729 not available correctly.
9730 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
9731 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
9732 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
9733 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
9734 fontset. Don't call FS_LOAD_FONT.
9735
9736 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
9737 (x_create_tip_frame): Likewise.
9738 (Fx_close_connection): Free full_name of font_info.
9739
9740 * fns.c (optimize_sub_char_table): New function.
9741 (Foptimize_char_table): New function.
9742 (syms_of_fns): Defsubr Soptimize_char_table.
9743
b33dd3b0
GM
97442000-03-20 Gerd Moellmann <gerd@gnu.org>
9745
9746 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
9747 only if buffer is displayed in some window.
9748
9749 * xdisp.c (handle_single_display_prop): Initialize local `value'.
9750 (try_window_reusing_current_matrix): Don't call scroll run
9751 function if run's current and desired position are the same;
9752 this prevents cursor flickering.
9753
4e8a9132
SM
97542000-03-19 Stefan Monnier <monnier@cs.yale.edu>
9755
9756 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
9757
9758 * regex.c (RE_STRING_CHAR): New macro.
9759 (GET_CHAR_AFER_2): Remove.
9760 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
9761 (enum re_opcode_t): Remove on_failure_jump_exclusive.
9762 (print_partial_compiled_pattern, re_compile_fastmap)
9763 (re_match_2_internal): Remove on_failure_jump_exclusive.
9764 (regex_compile): Turn optimizable P+ loops into PP*, so that the
9765 optimization only need to work for * (ie. can use of_keep_string_jump).
9766 Remove the special case for .*\n since it is now covered by the general
9767 optimization.
9768 (re_search_2): Don't bother with `room'.
9769 (skip_one_char): New function.
9770 (skip_noops): Simplify since `memory' is not needed any more.
9771 (mutually_exclusive_p): Restructure slightly to use `switch' and
9772 add handling for "all" remaining cases.
9773 (re_match_2_internal): Change on_failure_jump_smart to use
9774 on_failure_keep_string_jump (and redirect the end-of-loop jump)
9775 rather than on_failure_jump_exclusive.
9776
2136fdd4
GM
97772000-03-19 Gerd Moellmann <gerd@gnu.org>
9778
9779 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
9780 number of bits per RGB because it's everywhere used as the depth
9781 of the visual.
9782
9783 * term.c (calculate_costs): Remove code dealing with X frames.
9784
18e21ce8 97852000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
9786
9787 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
9788
d7b511c4
GM
97892000-03-18 Gerd Moellmann <gerd@gnu.org>
9790
9791 * lread.c (read_integer): Unread the last char not consumed.
9792
16b5d424
GM
97932000-03-17 Gerd Moellmann <gerd@gnu.org>
9794
9795 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 9796 which are in the process of being deleted.
16b5d424 9797
1fa28578
GM
97982000-03-16 Gerd Moellmann <gerd@gnu.org>
9799
83488cce
GM
9800 * Makefile.in (mostlyclean): Add `*.core'.
9801 (clean): Add `bootstrap-emacs'.
9802
1fa28578
GM
9803 * lread.c (read_integer): New function.
9804 (read1): Support read syntax #o, #x, #b, #r.
9805
99633e97
SM
98062000-03-15 Stefan Monnier <monnier@cs.yale.edu>
9807
1fa28578
GM
9808 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
9809 make sure POINTER_TO_OFFSET gives the same value before and after
9810 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
9811 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
9812 (debug): Now only active if > 0 rather than if != 0.
9813 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
9814 (print_partial_compiled_pattern): Add missing `succeed' case. Use
9815 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
9816 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
9817 (store_op1, store_op2, insert_op1, insert_op2)
9818 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
9819 (group_in_compile_stack): Move to after its arg's types are
9820 declared and add a prototype.
99633e97 9821 (PATFETCH): Define in terms of PATFETCH_RAW.
52283633 9822 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
99633e97 9823 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
9824 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
9825 indentation of the greedy-op and shy-group code.
99633e97
SM
9826 (at_(beg|end)line_loc_p): Fix argument's types.
9827 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
9828 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
9829 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
9830 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
9831 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
9832 QUIT unconditionally.
99633e97 9833
699238d9
GM
98342000-03-15 Gerd Moellmann <gerd@gnu.org>
9835
9836 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
9837 a sole completion.
9838
9839 * process.c (send_process): Add a hint that the function
9840 can call Lisp code to its comment.
9841
9842 * lread.c (load_dangerous_libraries): New variable.
9843 (Vbytecomp_version_regexp): New variable.
9844 (safe_to_load_p): New function.
9845 (Fload): Handle files not compiled with Emacs specially.
9846 (syms_of_lread): New Lisp variable load-dangerous-libraries.
9847
34e23e5a
GM
98482000-03-14 Gerd Moellmann <gerd@gnu.org>
9849
9c763cca
GM
9850 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
9851
9852 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
9853 support functions only if HAVE_X11R6_XIM is defined.
9854 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
9855
9856 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
9857
9858 * xfns.c (X_I18N_INHIBITED): Don't define.
52283633 9859 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
9c763cca
GM
9860 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
9861
9862 * config.in (HAVE_X_I18N): Moved here from xterm.h.
9863 (HAVE_X11R6_XIM): Define.
9864
9865 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
9866
34e23e5a
GM
9867 * xterm.c (x_term_init): Add support for X resource `synchronous'.
9868 If set, call XSynchronize.
9869
66f0296e
SM
98702000-03-13 Stefan Monnier <monnier@cs.yale.edu>
9871
34e23e5a
GM
9872 * regex.c: Declare a new type `re_char' used throughout the code
9873 for the string char type. It's `const unsigned char' to match the
9874 rest of Emacs. Consistently make sure all pointers to strings use
52283633 9875 it and make sure all pointers into the pattern use `unsigned char'.
66f0296e 9876 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
9877 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
9878 code duplication.
66f0296e
SM
9879
9880 * charset.h (GET_CHAR_AFTER_2): Remove.
9881 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
9882
854a025c
KR
98832000-03-12 Ken Raeburn <raeburn@gnu.org>
9884
9885 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
9886 variable before the invocation of YMF_PASS_LDFLAGS, in case both
9887 of them try to use backquotes.
9888
b9d2c7e2
DL
98892000-03-12 Dave Love <fx@gnu.org>
9890
9891 * unexelf.c: Restore changes of 1999-10-19.
9892 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
9893 fix its type and alignment; copy it from current process.
9894
5e5dff44
GM
98952000-03-12 Gerd Moellmann <gerd@gnu.org>
9896
9b2f3c38
GM
9897 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
9898 has been found. Fix bug not computing timer's predecessor.
9899
427ec082 9900 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
9901 file name.
9902
e1cff360
GM
9903 * window.c (Fsave_window_excursion): Doc fix.
9904
52283633 9905 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
5e5dff44 9906
e411ce4b
EZ
99072000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
9908
9909 * msdos.c (vga_installed): New function, code moved from
9910 dos_set_window_size.
9911 (Qbar, Qcursor_type, outside_cursor): New variables.
9912 (syms_of_msdos): Intern and staticpro them.
9913 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
9914 shape used outside Emacs when called for the first time.
9915 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
9916 cursor shape used outside Emacs.
9917 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
9918 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
9919 type has changed.
9920 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
9921 parameters specify the cursor. Make qreverse a global
9922 variable (renamed to Qreverse).
9923
80460654
GM
99242000-03-09 Gerd Moellmann <gerd@gnu.org>
9925
9926 * fns.c (Fy_or_n_p): Cancel busy-cursor.
9927
95cd4c40
SM
99282000-03-08 Stefan Monnier <monnier@cs.yale.edu>
9929
9930 This is a big redesign of failure-stack and register handling, prompted
9931 by bugs revealed when trying to add shy-groups. Overall, what happened
9932 is that loops are now structured a little differently, groups can be
9933 shy and the code is a little simpler.
9934
9935 * regex.h: Update the copyright.
9936 (RE_SHY_GROUPS): New value.
9937 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
9938 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
9939
80460654
GM
9940 * regex.c (enum re_opcode_t): Remove jump_past_alt,
9941 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
9942 on_failure_jump_(exclusive, loop and smart). Also fix the comment
9943 for (start|stop)_memory since they now only take one argument (the
9944 second has becomes unnecessary).
52283633 9945 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
80460654
GM
9946 (print_compiled_pattern): Use %ld to printf long ints and flush to
9947 make debugging a little easier.
95cd4c40
SM
9948 (union fail_stack_elt): Make the integer unsigned.
9949 (struct fail_stack_type): Add a `frame' element.
9950 (INIT_FAIL_STACK): Init `frame' as well.
9951 (POP_PATTERN_OP): New macro for re_compile_fastmap.
9952 (DEBUG_PUSH, DEBUG_POP): Remove.
9953 (NUM_REG_ITEMS): Remove.
9954 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
9955 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
9956 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 9957 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
52283633
SM
9958 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
9959 New macros.
80460654
GM
9960 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
9961 address pushed is not the destination of the jump but the source
9962 of it instead.
95cd4c40
SM
9963 (NUM_FAILURE_ITEMS): Remove.
9964 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
9965 registers before the actual failure point). Don't hardcode any
9966 meaning for str==NULL anymore.
95cd4c40 9967 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
9968 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
9969 Remove.
95cd4c40
SM
9970 (REG_UNSET_VALUE): Use NULL (why not?).
9971 (compile_range): Remove declaration since it doesn't exist.
9972 (struct compile_stack_elt_t): Remove inner_group_offset.
9973 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
9974 (regex_grow_registers): Remove dead code.
9975 (FIXUP_ALT_JUMP): New macro.
80460654
GM
9976 (regex_compile): Add shy-groups Change loops to use
9977 on_failure_jump_smart&jump instead of
9978 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
9979 initial (dummy_failure_)jump. Remove c1_base (looks like unused
9980 variable to me). Use `jump' instead of `jump_past_alt' and don't
9981 bother with push_dummy_failure in alternatives since it is now
9982 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
9983 emacs' for (re)allocating the stack.
9984 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
9985 from loop when bufp->can_be_null rather than jumping to `done'.
9986 Avoid jumping backwards so as to ensure termination. Use
9987 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
9988 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 9989 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
9990 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
9991 improve mutually_exclusive_p to handle ".+\n".
52283633
SM
9992 (lowest_active_reg, highest_active_reg)
9993 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
80460654
GM
9994 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
9995 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
9996 variables. Push register (in `start_memory') on the stack rather
9997 than storing it in old_reg(start|end). Remove the cycle detection
9998 from `stop_memory', replaced by the use of on_failure_jump_loop
9999 for greedy loops. Add code for the new on_failure_jump_<foo>.
10000 Remove ad-hoc code in `on_failure_jump' to push more registers in
10001 the case of a loop. Take out code from `maybe_pop_jump' into
10002 separate functions and adapt it to the semantics of
10003 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
10004 and push_dummy_failure. Remove dummy_failure handling and
10005 handling of `failures to jump to on_failure_jump' (this last one
10006 was already dead code, it seems).
10007 (group_match_null_string_p, alt_match_null_string_p)
10008 (common_op_match_null_string_p): Remove.
95cd4c40 10009
7397acc4
DL
100102000-03-08 Dave Love <fx@gnu.org>
10011
10012 * config.in: Don't depend on __STDC__ for volatile.
10013 Add POINTER_TYPE, PTR, PROTOTYPES.
10014
10015 * hftctl.c, strftime.c: Use PROTOTYPES.
10016 * eval.c (find_handler_clause): Likewise.
10017
10018 * mem-limits.h: Use POINTER_TYPE.
10019
10020 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
10021 (memory_warnings): Declare using POINTER_TYPE.
10022
5e91ff9e
GM
100232000-03-08 Gerd Moellmann <gerd@gnu.org>
10024
feab4fba
GM
10025 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
10026
52283633 10027 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
25edb08f 10028
5e91ff9e
GM
10029 * xfns.c: Remove obsolete code in #if 0.
10030 (Fx_focus_frame): New function.
10031
a735b7e1
KH
100322000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
10033
10034 * coding.c (coding_category_name): Add coding-category-utf-8,
10035 coding-category-utf-16-be, coding-category-utf-16-le.
10036 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
10037 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
10038 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
10039 (detect_coding_utf_8): New function.
10040 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
10041 UTF_16_LOW_SURROGATE_P): New macros.
10042 (detect_coding_utf_16): New function
10043 (detect_coding_mask): When priorities are specified, skip any
10044 categories that have `nil' coding-system. Fix bug of returning
10045 wrong mask when PRIORITIES is specified and detect_coding_XXX()
10046 returns a mask not set in PRIORITIES.
10047 (detect_eol_type_in_2_octet_form): New function.
10048 (detect_eol): selects detect_eol_type_XXX to call according to
10049 cooding->category_idx.
10050 (detect_coding_system): Remove `nil' coding-system in the result.
10051 (Fupdate_coding_systems_internal): Update all coding-categories.
10052
52283633
SM
10053 * coding.h (CODING_CATEGORY_IDX_UTF_8)
10054 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
10055 New macros.
10056 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
10057 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
10058 (CODING_CATEGORY_IDX_UTF_16_LE)
10059 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
10060 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
a735b7e1
KH
10061 (CODING_CATEGORY_MASK_ANY): Include the above macros.
10062 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
10063
9994cc69
GM
100642000-03-07 Gerd Moellmann <gerd@gnu.org>
10065
e9b4e5ff
GM
10066 * doc.c (Fdocumentation_property): If value is not a string,
10067 and doesn't refer to etc/DOC, evaluate it to obtain a string.
10068
f7daf1e1
GM
10069 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
10070 close the display with XtCloseDisplay. This caused a bus error
10071 on OpenWindows.
10072
9994cc69
GM
10073 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
10074 complete but not unique.
10075
4336c705
GM
100762000-03-06 Gerd Moellmann <gerd@gnu.org>
10077
18bb0684
GM
10078 * process.c (send_process): Remove local variable `procname' that
10079 might become invalid when a GC happens. Instead, access the
10080 process name slot directly.
10081
4336c705
GM
10082 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
10083 orig_height if set.
10084
10085 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
10086 orig_height if set.
10087
515d0d0e
EZ
100882000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
10089
10090 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
10091 glyph matrices have been freed.
10092
100b3cbb
GM
100932000-03-05 Gerd Moellmann <gerd@gnu.org>
10094
50df5e5a 10095 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 10096 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
10097
10098 * xfns.c (QCdata): Moved to xdisp.c.
10099
10100 * xdisp.c (QCdata): Moved here from xfns.c.
10101 (syms_of_xdisp): Initialize QCdata.
10102
10103 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
10104
10105 * window.c (coordinates_in_window): Use
10106 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
10107 FRAME_INTERNAL_BORDER_WIDTH.
10108
100b3cbb 10109 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 10110 it is obviously invalid.
100b3cbb
GM
10111
10112 * xterm.c (x_term_init): Create a colormap if not using the
10113 default visual.
10114
10115 * xterm.h (select_visual): Change prototype.
10116
10117 * xfns.c (select_visual): Rewritten. Recognize user-specified
10118 visual classes.
10119 (visual_classes): New variable.
10120
64d739c4
GM
101212000-03-04 Gerd Moellmann <gerd@gnu.org>
10122
10123 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
10124 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
10125 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
52283633 10126 (x_decode_color): Don't handle allocation of white and black specially.
64d739c4
GM
10127 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
10128 XtNcolormap resources.
10129 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
10130 (Fx_create_frame): Initialize color members of x_output structure.
10131 (xpm_load): Pass colormap to XPM lib.
10132
10133 * xfaces.c (x_free_colors): Access colormap of frame using
10134 FRAME_X_COLORMAP. Be paranoid about freeing black and white
10135 when default colormap is used.
10136
10137 * xterm.c (x_term_init): Set Colormap member of x_display_info
10138 structure. Copy colormap if resource `privateColormap' is
10139 specified (PseudoColor only).
10140 (x_setup_relief_color): Access colormap of frame using
10141 FRAME_X_COLORMAP.
10142
10143 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
10144 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
10145
c3cee013
JR
101462000-03-04 Jason Rumney <jasonr@gnu.org>
10147
10148 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
10149 other non-platform-specific equivalents.
64d739c4 10150 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
10151 specific functions and macros as their w32 equivalents where
10152 non-platform-specifics are not available.
10153 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
10154 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
10155 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
10156 (frame_update_line_height): Use macros to access f->output_data.
10157 (defined_color): Remove FIXME comments; fixed.
10158 (x_face_list_fonts, prepare_face_for_display): Put X specifics
10159 into #ifdef blocks. Add WINDOWSNT blocks.
10160 (Fx_list_fonts): Use macros for accessing font data.
10161 (set_lface_from_font_name): Different default fonts for X and
10162 WINDOWSNT.
10163 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
10164 scalable for backward compatibility.
64d739c4 10165 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
10166 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
10167
64d739c4 10168 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
10169 syms_of_w32faces.
10170
10171 * makefile.nt (w32faces.obj): Remove.
10172 (xfaces.obj): Add.
10173
807cc41c
JR
101742000-03-03 Jason Rumney <jasonr@gnu.org>
10175
10176 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
10177 correct parameters.
10178
0007072a
KR
101792000-03-03 Ken Raeburn <raeburn@gnu.org>
10180
10181 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
10182 standard ELF definitions here if the system header does not.
10183
71a6ba55
GM
101842000-03-03 Gerd Moellmann <gerd@gnu.org>
10185
10186 * xterm.c (PER_CHAR_METRIC): Removed.
10187 (x_per_char_metric_1, x_default_char): New functions.
10188 (x_per_char_metric): If font's default char is invalid, return
10189 metrics of a suitably chosen usable default char.
10190 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
10191 char, replace occurrences of unprintable chars with a suitably
10192 chosen usable default char.
71a6ba55 10193
900fa1f1
GM
101942000-03-02 Gerd Moellmann <gerd@gnu.org>
10195
42f55fe0
GM
10196 * xterm.c (note_mouse_highlight): Return quickly if frame's
10197 glyph matrices have been freed.
10198
10199 * dispnew.c (free_glyphs): Block input while freeing matrices.
10200
900fa1f1
GM
10201 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
10202
52283633
SM
10203 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
10204 Use x_free_colors.
900fa1f1
GM
10205
10206 * dispextern.h (x_free_colors): Add prototype.
10207
10208 * xfaces.c (x_free_colors): New function.
10209 (unload_color, free_face_colors): Use it.
10210
2f950292
EZ
102112000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
10212
10213 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
10214
10215 * window.c [MSDOS]: Include msdos.h.
10216
54d04320
DL
102172000-03-02 Dave Love <fx@gnu.org>
10218
10219 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
10220
10221 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
10222 set C_OPTIMIZE_SWITCH for gcc.
10223
0ba93ac4
KH
102242000-03-02 Kenichi Handa <handa@etl.go.jp>
10225
10226 * coding.c (coding_save_composition): Be sure to allocate
10227 composition data area in coding even if there's no composition in
10228 the current run.
10229
a2bc11d4
JR
102302000-03-01 Jason Rumney <jasonr@gnu.org>
10231
10232 * w32term.c: Equivalent changes to those made to xterm.c on
10233 2000-02-25 and 2000-02-24.
10234
10235 * w32fns.c: Equivalent changes to those made to xfns.c on
10236 2000-02-25 and 2000-02-21.
10237
10238 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
10239 correct line-end convention is followed.
10240
10241 * w32menu.c [HAVE_BOXES]: Remove #undef.
10242 (single_keymap_panes): Remove code for simulating checkmarks.
10243 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
10244 Remove code for drawing simulated checkmarks.
10245 (w32_menu_show): make unibyte help string correctly.
10246 (add_menu_item): draw standard Windows checkmarks. Draw radio
10247 buttons as radio buttons if possible.
10248
72d19d75
GM
102492000-03-01 Gerd Moellmann <gerd@gnu.org>
10250
2df636f4
GM
10251 * sysdep.c (start_of_text): Don't define this function for NetBSD
10252 with ELF.
10253
427ec082 10254 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
10255 Don't define.
10256 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
10257 (LINKER): Don't undef if __NetBSD__ is defined.
10258
10259 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
10260
10261 * fileio.c [__NetBSD__]: Define `unix'.
10262
72d19d75
GM
10263 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
10264
ed4d0512
GM
102652000-02-29 Gerd Moellmann <gerd@gnu.org>
10266
50b1039f
GM
10267 * atimer.c (start_atimer): Don't abort when timers are stopped.
10268 (append_atimer_lists): New function.
10269 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
10270 arbitrary lists of stopped and running atimers.
10271
ed4d0512
GM
10272 * atimer.c (cancel_atimer): Handle canceling an atimer when
10273 some timers are stopped.
10274
10275 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
10276 after canceling it.
10277
10278 * fns.c (maybe_resize_hash_table): Handle case of new size
10279 coming out as being the same as old size.
10280
387023ee
JR
102812000-02-27 Jason Rumney <jasonr@gnu.org>
10282
10283 * makefile.nt: Add atimer.h to dependencies.
10284 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
10285 * w32console.c: Only disable window system features for dispextern.h
10286 (initialize_w32_display): Build a display info for the console.
10287 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
10288 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
10289 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
10290 as 2 button mice.
10291 * w32gui.h (struct W32FontStruct): Revert last change after change
10292 to xdisp.c.
10293 * w32menu.c (single_submenu): Set up help string.
10294 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
10295 (w32_dialog_show): Set up help string.
10296 * w32term.c (w32_display_info_for_display): Remove unused function.
10297 (w32_draw_bitmap): Use pre-built bitmaps.
10298 (w32_initialize_display_info): New function to initialize parts of
10299 display info that are common to both GUI and console frames.
10300 (w32_term_init): Use w32_initialize_display_info. Do not set
10301 Vw32_num_mouse_buttons here, as it is not called for console
10302 frames. Build bitmaps for indicating truncated lines etc.
10303 (x_delete_display): Destroy pre-built bitmaps.
10304 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
10305 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
10306
4516715a
DL
103072000-02-27 Dave Love <fx@gnu.org>
10308
10309 * lisp.h: Add a bunch of prototypes.
10310
171ca836
KH
103112000-02-26 Kenichi Handa <handa@etl.go.jp>
10312
10313 * keyboard.c (read_char): Set `usec' correctly.
10314
4013921d
KH
103152000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
10316
10317 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
10318 `lambda', set reg[RRR] to the map index.
10319 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
10320 reg[RRR] to 0. Otherwise, set it to -1.
10321
9244a058
GM
103222000-02-25 Gerd Moellmann <gerd@gnu.org>
10323
2df636f4 10324 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 10325
18e21ce8 103262000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 10327
f43d79c1
GM
10328 * fileio.c (Ffile_symlink_p): If result starts with a `/'
10329 and contains a `:', prepend `/:'.
10330
10331 * window.c (select_window_1): If selected_window is nil,
10332 don't "swap out" the buffer's point.
10333 (Fset_window_configuration): Set selected_window to nil
10334 before calling Fselect_window.
10335 (unshow_buffer): Don't set point in buffer from window's point
10336 if another more recently selected window also shows the buffer.
10337
bed0c171
GM
103382000-02-25 Gerd Moellmann <gerd@gnu.org>
10339
449c3c52
GM
10340 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
10341
f5b58615
GM
10342 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
10343 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
52283633
SM
10344 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
10345 New variables.
f5b58615
GM
10346 (DEFAULT_BUSY_CURSOR_DELAY): New define.
10347 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
10348 (hide_busy_cursor): New functions.
10349 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
10350
10351 * minibuf.c (read_minibuf): Cancel busy-cursor.
10352
10353 * keyboard.c (command_loop_1): Call start_busy_cursor before
10354 Fcommand_execute and cancel_busy_cursor after it.
10355 (timer_check): Remove busy-cursor code.
10356 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
10357 cursor timer.
10358
10359 * process.c (wait_reading_process_input): Remove busy-cursor code.
10360
10361 * eval.c (Fsignal): Call cancel_busy_cursor instead of
10362 Fx_hide_busy_cursor.
10363
10364 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
10365 Remove prototyoes.
10366 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
10367
10368 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
10369
10370 * xterm.c (XTread_socket): Remove busy-cursor code.
10371
4eb8436f
GM
10372 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
10373 (build_frame_matrix_from_leaf_window): Put code handling
10374 glyph row's not being a slice of a frame row in #if 0.
10375 (sync_window_with_frame_matrix_rows): New function.
10376 (frame_row_to_window): New function.
10377 (mirror_line_dance): Handle copies between windows.
10378
3cb65b0e
GM
10379 * lread.c (Fload): Use `xfree' instead of `free'.
10380 (init_obarray): Use `xmalloc' instead of `malloc'.
10381
bed0c171
GM
10382 * window.c (Fset_window_buffer): Set WINDOW to the window
10383 after decoding.
2add4349
GM
10384 (coordinates_in_window): Take frame's internal border width
10385 into account.
bed0c171 10386
42088c12
GM
103872000-02-24 Gerd Moellmann <gerd@gnu.org>
10388
10389 * xterm.c (x_display_and_set_cursor): Display cursor of
10390 non-selected windows depending on the setting of
10391 cursor_in_non_selected_windows.
10392
10393 * xdisp.c (cursor_in_non_selected_windows): New variable.
10394 (syms_of_xdisp): DEFVAR_BOOL it.
10395
d1e103b2
GM
103962000-02-23 Gerd Moellmann <gerd@gnu.org>
10397
723e779c
GM
10398 * data.c (Fstring_to_number): If number is greater than what
10399 fits into an integer, return a float.
10400
d1e103b2
GM
10401 * eval.c (specbind): Remove references to
10402 keyword_symbols_constant_flag.
10403
10404 * data.c (keyword_symbols_constant_flag): Removed.
10405 (Fmakunbound, set_internal, syms_of_data): Remove references to
10406 keyword_symbols_constant_flag.
10407
10408 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
10409
214f877f
KH
104102000-02-23 Kenichi Handa <handa@etl.go.jp>
10411
10412 * syntax.c (multibyte_syntax_as_symbol): New variable.
10413 (syms_of_syntax): Declare it as a Lisp variable.
10414 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
10415 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
10416 nonzero, treat all multibyte characters as symbol.
52283633 10417 (init_syntax_once): Give syntax `word' to all multibyte characters.
214f877f 10418
130adcb7
EZ
104192000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
10420
3cb65b0e 10421 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 10422 a deleted frame.
130adcb7 10423
17cbbf95
GM
104242000-02-21 Gerd Moellmann <gerd@gnu.org>
10425
10426 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
10427
10428 * xfns.c (x_window_to_frame, x_any_window_to_frame)
10429 (x_non_menubar_window_to_frame): Check the busy-cursor window.
10430
beb0bc36
DL
104312000-02-21 Dave Love <fx@gnu.org>
10432
10433 * frame.c (Vmouse_position_function): New variable.
10434 (Fmouse_position): Use it.
10435 (syms_of_frame): Install it.
10436
10437 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
10438
1d92afcd
GM
104392000-02-20 Gerd Moellmann <gerd@gnu.org>
10440
10441 * fileio.c (Finsert_file_contents): Unbind the binding of
10442 standard-output done by temp_output_buffer_setup.
329eed9f
GM
10443
10444 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
10445 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
10446 (specbind, unbind_to): Handle most common case of non-constant
10447 symbol with trivial value specially.
10448
10449 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
10450
18e21ce8 104512000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
10452
10453 * data.c (Fmake_variable_buffer_local): Doc fix.
10454 Init found_for_buffer to 0.
10455 (Fmake_variable_frame_local): If the variable has already
10456 been buffer-local, set the check_frame field.
10457
1d4311c3
EZ
104582000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
10459
10460 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
10461 produced for CODING_MODE_LAST_BLOCK requires.
10462
2dc95ddd
DL
104632000-02-18 Dave Love <fx@gnu.org>
10464
10465 * keyboard.c (echo_keystrokes): Remove declaration.
10466 (Vecho_keystrokes) New variable.
10467 (read_char, record_menu_key, read_key_sequence): Use it to allow
10468 use of float value.
10469 (syms_of_keyboard): Change Vecho_keystrokes declaration.
10470
10471 * lread.c: Undef feature selection macros before defining.
10472
f0930f35
GM
104732000-02-18 Gerd Moellmann <gerd@gnu.org>
10474
10475 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
10476 for symbols other than the symbol in question.
10477
e3d4de90
DL
104782000-02-17 Dave Love <fx@gnu.org>
10479
10480 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
10481
0b378936
GM
104822000-02-17 Gerd Moellmann <gerd@gnu.org>
10483
d621caf7
GM
10484 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
10485
0b378936
GM
10486 * alloc.c (enum mem_type): Compile unconditionally.
10487
3b451f74
EZ
104882000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
10489
10490 * xfaces.c (tty_defined_color): Don't return faulire indication
10491 for unspecified-fg and unspecified-bg pseudo-colors.
10492
10689a01
GM
104932000-02-17 Gerd Moellmann <gerd@gnu.org>
10494
1216f5e4
GM
10495 * alloc.c (mark_object): Don't mark symbol names in pure space.
10496 (gc_sweep): Don't unmark symbol names in pure space.
10497
10498 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
10499 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
10500 [GC_MARK_STACK]: New defines.
427ec082 10501 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
10502 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
10503
10504 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
10505
10506 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
10507 allocate_buffer instead of xmalloc.
10508
10509 * alloc.c (toplevel): Include setjmp.h.
10510 (PURE_POINTER_P): New define.
10511 (enum mem_type) [GC_MARK_STACK]: New enumeration.
10512 (Vdead) [GC_MARK_STACK]: New variable.
10513 (lisp_malloc): Add parameter TYPE, call mem_insert if
10514 GC_MARK_STACK is defined.
10515 (allocate_buffer): New function.
427ec082 10516 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
10517 (free_float) [GC_MARK_STACK]: Set type to Vdead.
10518 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
10519 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
10520 (MEM_NIL) [GC_MARK_STACK]: New define.
10521 (struct mem_node) [GC_MARK_STACK]: New structure.
10522 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
10523 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
10524 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
10525 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
10526 (mark_stack) [GC_MARK_STACK]: New functions.
10527 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
10528 (clear_marks): Removed.
10529 (gc_sweep): Set free conses' car, free floats' type, free
10530 symbols' function to Vdead. Use lisp_free to free buffers.
10531 (init_alloc_once): Initialize Vdead.
10532 (survives_gc_p): Return non-zero for pure objects.
10533
10534 * alloc.c: Add comments throughout the file.
10535
2503c8b1
GM
10536 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
10537 that unblocks alarms.
10538
8389e1e2
GM
10539 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
10540 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
10541 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
10542
10689a01 10543 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 10544
bfc17d18
KH
105452000-02-17 Kenichi Handa <handa@etl.go.jp>
10546
4a09dee0
KH
10547 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
10548 avoid infinite error signaling. Allocate sufficient memory for
10549 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 10550
2b927d02
SM
105512000-02-17 Stefan Monnier <monnier@cs.yale.edu>
10552
10553 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
10554 depends on the previous behavior.
10555
b49cb764
GM
105562000-02-16 Gerd Moellmann <gerd@gnu.org>
10557
10558 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
10559
99e95407
GM
105602000-02-15 Gerd Moellmann <gerd@gnu.org>
10561
10562 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
10563
10564 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 10565 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
10566 write(2).
10567
6ffd3cf7
RS
105682000-02-15 Richard M. Stallman <rms@gnu.org>
10569
10570 * data.c (set_internal): Don't make variable buffer-local
10571 if within a let-binding for the same buffer.
10572 (let_shadows_buffer_binding_p): New function.
10573
10574 * eval.c (specbind): For buffer-local value,
10575 record the current buffer also.
10576 (unbind_to): Cope with that change.
10577
cad53475
GM
105782000-02-15 Gerd Moellmann <gerd@gnu.org>
10579
10580 * window.c (Fsave_window_excursion): Doc fix.
10581
1aa963c8
SM
105822000-02-15 Stefan Monnier <monnier@cs.yale.edu>
10583
10584 * syntax.c (back_comment): Make sure we only consider comment-starters
10585 of the relevant style and return -1 in case of a failure to find the
10586 beginning of the comment.
10587 (Fforward_comment): If back_comment fails, go back to the position just
10588 after the comment-end.
10589 (scan_lists): Add comment describing a very minor bug.
10590
b9b84fd3
SM
105912000-02-14 Stefan Monnier <monnier@cs.yale.edu>
10592
10593 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
10594 `completion-regexp-list' in the docstring.
10595
3a28db80
DL
105962000-02-14 Dave Love <fx@gnu.org>
10597
10598 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
10599
fb4a568d
SM
106002000-02-14 Stefan Monnier <monnier@cs.yale.edu>
10601
10602 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
10603 to Emacs' syntax. Also fix the comment about set/not-set meanings
10604 since Emacs syntax is not the value 0 any more.
10605 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
10606 since it's now part of RE_SYNTAX_EMACS.
10607
1063ebb5
DL
106082000-02-12 Dave Love <fx@gnu.org>
10609
52283633 10610 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
1063ebb5 10611
fb07a302
GM
106122000-02-12 Gerd Moellmann <gerd@gnu.org>
10613
10614 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
10615
aaf2320c
DL
106162000-02-12 Dave Love <fx@gnu.org>
10617
10618 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
10619
10620 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
10621 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
10622 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
10623
10624 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
10625
10626 * s/nextstep.h: Don't define HAVE_ALLOCA.
10627
10628 * config.in: Add vfork bits.
10629
eedf8bde
GM
106302000-02-12 Gerd Moellmann <gerd@gnu.org>
10631
10632 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
10633 unwind function to undo the effect of stopping atimers.
10634
52283633 10635 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
eedf8bde
GM
10636
10637 * atimer.c (stopped_atimers): New variable.
10638 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
10639 New functions.
10640
10641 * atimer.h (stop_other_atimers, run_all_atimers)
10642 (unwind_stop_other_atimers): Add function prototypes.
427ec082 10643
eedf8bde
GM
10644 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
10645
8476c2f8
KR
106462000-02-11 Ken Raeburn <raeburn@gnu.org>
10647
10648 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
10649 library may depend on jpeg.
10650 (atimer.o): Depends on atimer.c.
10651
0e85e4a3
KH
106522000-02-11 Kenichi Handa <handa@etl.go.jp>
10653
10654 * insdel.c (del_range_1): Call update_compositions.
10655 (del_range_both): Call update_compositions just once..
10656
97fa0cc8
DL
106572000-02-10 Dave Love <fx@gnu.org>
10658
10659 * xfns.c (create_frame_xic): Fix initialization of automatic
10660 aggregates for pcc.
10661
25566a3c
KH
106622000-02-09 Kenichi Handa <handa@etl.go.jp>
10663
10664 * ccl.c (CCL_MAKE_CHAR): New macro.
10665 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
10666 registers by CCL_MAKE_CHAR before calling translate_char.
10667 <CCL_TranslateCharacterConstTbl> Likewise.
10668
69da54ba
DL
106692000-02-08 Dave Love <fx@gnu.org>
10670
10671 * lread.c (__EXTENSIONS__): Define.
10672
f7136ee8
GM
106732000-02-08 Gerd Moellmann <gerd@gnu.org>
10674
10675 * puresize.h (BASE_PURESIZE): Increase to 650000.
10676
7768790b
EZ
106772000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
10678
10679 * msdos.c (XMenuActivate): Turn off the cursor after displaying
10680 the help message.
10681
38fd211b
EZ
106822000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
10683
10684 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
10685 md, mh, mb, mr, and me to the fake termcap entry.
10686
66e4690f
KR
106872000-02-06 Ken Raeburn <raeburn@gnu.org>
10688
10689 * sound.c (sound_cleanup): Don't call device close routine if the
10690 function pointer is null.
10691
a75dfea0
AI
106922000-02-06 Andrew Innes <andrewi@gnu.org>
10693
10694 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
10695 around image definitions and prototypes.
10696 (gamma_correct) [WINDOWSNT]: New prototype.
10697
10698 * w32term.c (x_make_frame_visible): Replace call to
10699 input_poll_signal with poll_for_input.
10700
10701 * window.c [WINDOWSNT]: Include w32term.h.
10702
10703 * xdisp.c [WINDOWSNT]: Include w32term.h.
10704
10705 * makefile.nt: Add dependencies on w32gui.h.
10706 (OBJ1): Include atimer.obj.
10707 ($(BLD)\atimer.obj): New dependency rule.
10708
10709 * w32.c (sigmask): New function (does nothing).
10710 (sigunblock): Ditto.
10711
10712 * frame.c [WINDOWSNT]: Include w32term.h.
10713
10714 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
10715
10716 * lread.c (syms_of_lread): Fix literal newlines.
10717
10718 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
10719 the string constant limit (2048 bytes) in MSVC.
10720 (main): Ditto.
10721
59ddecde
GM
107222000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
10723
52283633 10724 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
59ddecde
GM
10725 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
10726 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
10727 dispatch the event.
10728
07590973
DL
107292000-02-04 Dave Love <fx@gnu.org>
10730
10731 * fileio.c: Remove some unused vars.
10732 (_GNU_SOURCE): Define (for euidaccess).
10733
10734 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
10735
10736 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
10737 gcpro1, gcpro2.
10738 (read_minibuf): Deal with allow_props correctly.
10739
649351f9
EZ
107402000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
10741
10742 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
10743
66e4690f 107442000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
10745
10746 * search.c (compile_pattern): If a cache entry has a nil regexp,
10747 fill in that entry instead of clobbering a previously cached
10748 string regexp.
10749
66e4690f 107502000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
10751
10752 * puresize.h (BASE_PURESIZE): Increase to 610000.
10753
d240a249
GM
107542000-02-02 Gerd Moellmann <gerd@gnu.org>
10755
10756 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
10757 can GC.
10758
ca91fb26
KH
107592000-02-02 Kenichi Handa <handa@etl.go.jp>
10760
25660570
KH
10761 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
10762 instead of incrementing ic directly.
10763 <CCL_WriteExprConst> Likewise.
10764 <ccl_set_expr>: Set ic to jump_address.
10765
ca91fb26
KH
10766 * fileio.c (e_write): Fix the handling of
10767 CODING_FINISH_INSUFFICIENT_SRC.
10768
2ede9689
DL
107692000-02-01 Dave Love <fx@gnu.org>
10770
10771 * editfns.c (Fpropertize): Doc fix.
10772
10773 * process.c (Fstart_process): Doc fix.
10774
10775 * eval.c: Fix various doc strings not to duplicate information
10776 from help-manyarg-func-alist.
10777
52283633 10778 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
2ede9689
DL
10779
10780 * doc.c (Vhelp_manyarg_func_alist): New variable.
10781 (Fdocumentation): Use it.
10782 (syms_of_doc): Define it.
10783
b6680a0e
GM
107842000-01-31 Gerd Moellmann <gerd@gnu.org>
10785
2cb750ba
GM
10786 * xterm.c (xim_open_dpy): Remove unused local variable.
10787
52283633 10788 * emacs.c (USAGE): Use term `display options' instead of `X options'.
74e9213b
GM
10789
10790 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
10791 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
10792
b6680a0e
GM
10793 * fns.c (sweep_weak_table): New function.
10794 (sweep_weak_hash_tables): Use it. Keep on marking until there
10795 is no more change.
10796
994c5afe
GM
107972000-01-30 Gerd Moellmann <gerd@gnu.org>
10798
10799 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
10800 that XTread_socket does not crash by trying to call XNoOp on a
10801 closed display.
427ec082 10802
f00276e3
JR
108032000-01-30 Jason Rumney <jasonr@gnu.org>
10804
10805 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
10806 Change selected_frame to SELECTED_FRAME ().
10807 (w32_console_mouse_position): Remove #ifndef MULE from around
10808 `insist' parameter.
10809
10810 * makefile.nt: Remove dosfns.obj.
10811
10812 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
10813
10814 * w32fns.c (w32_defined_color): Check for valid frame before
10815 applying gamma correction. Eliminate dependency on frame elsewhere.
10816 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
10817 (w32_to_x_font): Use resx and resy not height_in and width_in.
10818 (x_to_w32_font): Doc fix.
10819 (xlfd_strip_height): New function to strip and return font height.
10820 (w32_font_match): Compare height separately from rest of xlfd
10821 spec, using xlfd_strip_height.
10822
10823 * w32term.c (w32_term_init): Swap resx and height_in, resy and
10824 width_in. Use w32_defined_color in place of defined_color.
10825
10826 * w32faces.c: Merge more of DOS and X specifics in preparation for
10827 merge with xfaces.c.
10828 (defined_color): Remove FIXME comment.
10829 (tty_color_name): Provide w32-specific function.
10830 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
10831
10832 * w32console.c (turn_on_face, turn_off_face): Removed.
10833 (w32_face_attributes): New function.
10834 (Global_variables): Reduce scope where possible.
10835 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
10836 fill attribute.
10837 (hl_mode): Don't modify text attributes.
10838 (write_glyphs): Don't do anything if len <= 0. Use
10839 w32_face_attributes to get attributes for drawing. Write
10840 terminating codes using char_attr_normal.
10841 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
10842 (update_begin, update_end): Likewise.
10843 (vga_stdcolor_name): New function.
10844 (initialize_w32_display): Remove char_attr_reverse and char_attr.
10845 (Fset_screen_color): Remove char_attr_reverse.
10846
b08e8bb2
GM
108472000-01-29 Gerd Moellmann <gerd@gnu.org>
10848
10849 * xfns.c (xic_set_preeditarea): Take window parameter and
10850 window-relative pixel-positions.
10851
10852 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
10853 is its frame's selected window.
10854 (xim_instantiate_callback): Likewise.
10855
10856 * xfns.c (x_create_im): Removed.
10857 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
10858 (supported_xim_styles): Renamed from supported_styles.
10859 (best_xim_style): Renamed from best_style.
10860 (create_frame_xic): Renamed from xic_create_frame.
10861 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 10862
b08e8bb2
GM
108632000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
10864
10865 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
10866 our frames, call XFilterEvent with 2nd parameter `None'.
10867 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
10868 returning XBufferOverflow.
52283633 10869 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
b08e8bb2
GM
10870 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
10871 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
10872 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
10873 (xim_initialize, xim_close)
10874 [HAVE_X_I18N && HAVE_X11R6]: New functions.
10875 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
10876 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
10877 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
10878
10879 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
10880 and `xim_styles'.
10881 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
10882 `xic_style' and `xic_xfs'.
10883 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
10884 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
10885 (FRAME_XIM): Removed.
10886
10887 * xfns.c (supported_styles): New variable.
10888 (DEFAULT_STYLE, DEFAULT_FONT): New macros
10889 (xic_create_xfontset, best_style, xic_create_frame)
10890 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
10891 (xic_set_xfontset): New functions.
10892
142e109c
DL
108932000-01-28 Dave Love <fx@gnu.org>
10894
10895 * s/irix6-5.h: Revert last change after change to irix5-0.h.
10896
10897 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
10898
b02786f9
GM
108992000-01-28 Gerd Moellmann <gerd@gnu.org>
10900
d060bc9f
GM
10901 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
10902 for *scratch* if it already existed.
10903
b02786f9
GM
10904 * emacs.c (USAGE): New macro.
10905 (main): Use it to display usage information.
10906
2c52d7e4
EZ
109072000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
10908
10909 Support for the menu-help feature:
10910
52283633 10911 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
2c52d7e4
EZ
10912
10913 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
10914 part of the line to the termscript file.
10915 (IT_clear_to_end): Clear the entire line, not just its beginning.
10916 (menu_help_message, prev_menu_help_message): New variables.
10917 (IT_menu_make_room): Make room for the help_text member.
10918 (IT_menu_display): New argument disp_help; all callers changed.
10919 If disp_help is non-zero, store the help text of the active menu
10920 item in menu_help_message.
10921 (XMenuAddPane): Initialize the help_text member to NULL.
10922 (XMenuAddSelection): New argument help_text. Store it in the
10923 XMenu structure.
10924 (XMenuActivate): New argument help_callback. If the value of
10925 menu_help_message has changed since the last time, display the
10926 menu help message text while waiting for the mouse to move. Clear
10927 the echo area before exiting.
10928 (XMenuDestroy): Free the help_text member.
10929
ffe0bcd1
GM
109302000-01-27 Gerd Moellmann <gerd@gnu.org>
10931
10932 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
10933 XMenuAddSelection. Pass help callback to XMenuActivate.
10934 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
10935
50dbd23f
EZ
109362000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
10937
10938 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
10939 and EMACS_SET_USECS.
10940
f5941bf8
GM
109412000-01-26 Dave Love <fx@gnu.org>
10942
6c67ddee
DL
10943 * editfns.c (Fchar_after, Fchar_before): Doc fix.
10944
f5941bf8
GM
10945 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
10946 an error may be signalled.
10947
9e49c990
GM
109482000-01-26 Gerd Moellmann <gerd@gnu.org>
10949
fc3cb460
GM
10950 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
10951 LD_SWITCH_SYSTEM inherited from irix5-0.h.
10952
9e49c990
GM
10953 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
10954
d0c037d8
GM
109552000-01-25 Gerd Moellmann <gerd@gnu.org>
10956
10957 * charset.c (Fstring): If there is a multibyte char among
10958 the args, always return a multibyte string.
10959
e12489f9
GM
109602000-01-25 Gerd Moellmann <gerd@gnu.org>
10961
10962 * sysdep.c (sys_select): Turn atimers off and on instead of
10963 recording and restoring old alarm handler
10964
10965 * process.c (toplevel): Include atimer.h.
10966 (create_process_1): Rewritten.
10967 (create_process): Use atimers instead of alarm.
10968 (wait_reading_process_input) [hpux]: Turn atimers off instead
10969 of turning off SIGALRM.
10970 (wait_reading_process_input): Turn off atimers instead off
10971 calling stop_polling.
10972
10973 * emacs.c (main): Call init_atimer.
10974
10975 * keyboard.c (toplevel): Include systime.h and atimer.h.
10976 (polling_for_input): Removed because unused.
10977 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
10978 (poll_timer): New variable.
10979 (poll_for_input, poll_for_input_1): New functions.
10980 (start_polling, stop_polling): Rewritten.
10981
10982 * keyboard.h (polling_for_input): Removed.
427ec082 10983
e12489f9
GM
10984 * atimer.h, atimer.c: New files.
10985
10986 * Makefile.in (obj): Add atimer.o.
10987 (atimer.o): New target.
10988
10989 * blockinput.h (pending_atimers): Add extern declaration.
10990 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
10991
10992 * lisp.h (popup_activated_flag): Add extern declaration.
10993
10994 * xmenu.c (popup_activated_flag): Make externally visible.
52283633 10995 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
e12489f9
GM
10996 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
10997
10998 * xterm.c (toplevel): Include atimer.h.
10999 (toolkit_scroll_bar_interaction): New variable.
11000 (Fxt_process_timeouts): Removed.
11001 (x_process_timeouts): New function.
11002 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
11003 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
11004 (x_make_frame_visible): Call poll_for_input_1 instead of
11005 input_poll_signal. Don't call alarm.
11006 (x_initialize): Install timer calling x_process_timeouts.
427ec082 11007
1e5279b9
DL
110082000-01-24 Dave Love <fx@gnu.org>
11009
6c67ddee 11010 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
11011 Don't use -cckr -- apparently not now necessary.
11012
edf6aeb8
EZ
110132000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
11014
11015 * msdos.c (IT_menu_display): Truncate long menu lines at the right
11016 screen boundary.
11017
9badad41
JR
110182000-01-23 Jason Rumney <jasonr@gnu.org>
11019
11020 * w32fns.c (w32_defined_color): Apply gamma correction before
11021 trying to map to the palette.
11022 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
11023 to w32_clear_rect.
11024
11025 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
11026 here. Callers changed to always pass real device context.
11027 (w32_draw_bitmap): Likewise.
11028 (w32_get_glyph_overhangs): Likewise.
52283633 11029 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
9badad41
JR
11030 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
11031 pfnSetScrollInfo and SetScrollRange.
11032 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
11033 back into MULE characters after decoding them.
11034 (x_get_glyph_face_and_encoding): Likewise.
11035 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
11036 GetCharABCWidthsW fails, since this is defined on Windows 9x.
11037 (x_produce_glyphs): Calculate per char metrics for a character
11038 that we know exists in default font when font_not_found_p is true.
11039
63bd786b
JR
110402000-01-22 Jason Rumney <jasonr@gnu.org>
11041
11042 * makefile.nt (intervals.obj, composite.obj): New modules.
11043 (composite.h): Added as dependency where appropriate.
11044
11045 * w32gui.h (XGCValue): New struct for emulating X GCs.
11046
11047 * w32term.h (XCharStruct): New struct for emulating X.
11048
11049 * w32console.c (turn_on_face, turn_off_face): New functions.
11050 (change_line_highlight): New prototype for new redisplay.
11051 (write_glyphs): Support multibyte text. Support faces.
11052
52283633 11053 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
63bd786b
JR
11054
11055 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
11056 throughout. struct frame * in place of FRAME_PTR.
11057 Skeleton support for images, toolbars, tooltips from xfns.c.
52283633 11058 (Fx_create_frame): Use system default for default scroll bar width.
63bd786b
JR
11059 (w32_get_arg): Renamed from x_get_arg.
11060 (Fx_file_dialog): New function.
11061 (w32_list_fonts): Check cache before asking system.
11062 (Vw32_enable_synthesized_fonts): New variable.
11063 (Vw32_enable_italics): Obsolete, removed.
11064
11065 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
11066 Use SELECTED_FRAME macro.
11067
11068 * w32menu.c: Add skeleton support for help strings on menus.
11069 (add_menu_item): Native checkbox and radio support added, but not
11070 yet enabled due to bugs.
11071 (push_menu_item): Add parameters type, selection and help.
11072 Callers updated.
11073 Formatting changes to reduce unnecessary diffs with xmenu.c.
11074
11075 * w32select.c (Fw32_set_clipboard_data): Update call to
11076 find_charset_in_str.
11077
11078 * w32term.c: Complete rewrite for new redisplay based on new
11079 xterm.c with necessary sections merged back in from old w32term.c.
11080
6ffd3cf7 110812000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
11082
11083 * data.c (set_internal): Further fix in same criterion.
11084
6ffd3cf7 110852000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
11086
11087 * data.c (set_internal): Fix the criteria for whether
11088 to swap out the old cached binding.
11089
60af03f1
DL
110902000-01-19 Dave Love <fx@gnu.org>
11091
11092 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
11093
f9be074f
KH
110942000-01-18 Kenichi Handa <handa@etl.go.jp>
11095
11096 * regex.c (re_compile_fastmap): While checking a range table for
11097 `charset', skip flag bits for a character class correctly.
11098
52b8dbf9
GM
110992000-01-17 Gerd Moellmann <gerd@gnu.org>
11100
d36100c9
GM
11101 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
11102
52283633 11103 * xfns.c (x_window): Call lw_create_widget with new parameter list.
52b8dbf9
GM
11104
11105 * widget.c (EmacsFrameSetCharSize): Change size of children first
52283633 11106 because of problems with main window geometry management under Lesstif.
52b8dbf9
GM
11107
11108 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
11109 MENU_ITEMS_ITEM_.*.
11110 (MENU_ITEMS_ITEM_HELP): New enumerator.
11111 (push_menu_item): Add parameter HELP. Record help in menu_items.
11112 (single_menu_item, single_submenu, list_of_items): Call
11113 push_menu_item with new parameter.
11114 (single_submenu): Set help string in widget value.
11115 (menu_highlight_callback): New function.
11116 (set_frame_menubar): Call lw_create_widget with new
11117 parameter list.
11118 (xmenu_show, xdialog_show): Ditto.
11119
3139018f
GM
111202000-01-13 Gerd Moellmann <gerd@gnu.org>
11121
11122 * sound.c (Fplay_sound): Improve doc string.
11123
83c8f461
RS
111242000-01-11 Richard M. Stallman <rms@gnu.org>
11125
11126 * lisp.h (set_internal): Enter the new arg.
11127
11128 * eval.c (specbind): Record buffer-local variables specially,
11129 indicating which buffer's binding was saved.
11130 (unbind_to): Restore buffer-local variables specially
11131 in the proper buffer.
11132
11133 * data.c (set_internal): New arg BUF.
427ec082 11134
83c8f461
RS
11135 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
11136 * data.c (Fset): Pass new arg to set_internal.
11137 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 11138
1fab1775
GM
111392000-01-11 Gerd Moellmann <gerd@gnu.org>
11140
52283633 11141 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
1fab1775 11142
83c8f461 111432000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
11144
11145 * minibuf.c (Ftry_completion): Doc fix.
11146
7a85e4df
GM
111472000-01-11 Gerd Moellmann <gerd@gnu.org>
11148
11149 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
11150 vector, too.
11151
a970dae4
AS
111522000-01-11 Andreas Schwab <schwab@suse.de>
11153
11154 * coding.c (code_convert_region): Initialize total_skip.
11155
c65d14ee
DL
111562000-01-08 Dave Love <fx@gnu.org>
11157
11158 * eval.c (Fuser_variable_p): Check customizability too.
11159
834938d2
GM
111602000-01-07 Gerd Moellmann <gerd@gnu.org>
11161
11162 * minibuf.c (Fcompleting_read): Doc fix.
11163
e0303cd6
GM
111642000-01-05 Gerd Moellmann <gerd@gnu.org>
11165
8a26744b
GM
11166 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
11167 -L /usr/local/lib.
11168
e0303cd6
GM
11169 * xfns.c (x_create_im): New function to set IM and IC of a frame.
11170 Check that input style is supported before trying to create an
11171 IC for it.
11172 (x_window): Call x_create_im.
427ec082 11173
2e471eb5
GM
111742000-01-04 Gerd Moellmann <gerd@gnu.org>
11175
560a7bd2
GM
11176 * xfns.c (current_gif_memory_src): New variable.
11177 (gif_load): Record the address of the current memory source
11178 in current_gif_memory_src.
11179 (gif_read_from_memory): Use current_gif_memory_src.
11180
f9ee84a3
GM
11181 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
11182 macros statement form.
11183
d1299cde
GM
11184 * sound.c (struct sound): Renamed from struct sound_file.
11185 (struct sound): Add members `data' and `header_size'.
11186 (enum sound_attr): Add SOUND_DATA.
11187 (current_sound, current_sound_device): Variables renamed from
11188 sound_file and sound_device.
11189 (parse_sound): Parse :data.
11190 (parse_sound): Handle sound data in strings.
11191 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 11192 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
11193 needed header size.
11194 (wav_play, au_play): Play sounds from string data.
11195
2e471eb5
GM
11196 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
11197
11198 * lisp.h: Add prototype for allocate_string_data.
11199
52283633 11200 * alloc.c (Fgarbage_collect): Return number of live and free strings.
2e471eb5
GM
11201
11202 * alloc.c (mark_buffer): Remove code in #if 0.
11203 (gc_sweep): Ditto.
11204 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
11205 (strings_consed): New variable.
11206 (allocate_string): Set it.
11207 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
11208 (Fmemory_use_counts): Return strings_consed. Use Flist.
11209
11210 * alloc.c: General cleanup in comments etc. Remove conditional
11211 compilation for `standalone'.
11212
11213 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
11214
11215 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
11216 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
11217 (DONT_COPY_FLAG): Removed.
11218 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
11219 (struct sdata, struct sblock): New
11220 (struct string_block): Rewritten.
11221 (STRINGS_IN_STRING_BLOCK): New macro.
11222 (oldest_sblock, current_sblock, total_strings, total_free_strings)
11223 (large_sblocks, string_blocks, string_free_list): New variables.
11224 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
11225 (init_strings): Rewritten.
11226 (allocate_string, allocate_string_data, compact_small_strings)
11227 (free_large_strings, sweep_strings): New functions.
11228 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
11229 (struct string_block_head, current_string_block)
11230 (first_string_block, large_string_blocks, STRING_FULLSIZE)
11231 (STRING_PAD): Removed.
11232 (make_uninit_multibyte_string, make_pure_string): Rewritten.
11233 (Fgarbage_collect): Don't set mark bit in large strings.
11234 (mark_object): Mark strings differently. Mark symbol names
11235 differently.
11236 (survives_gc_p): Test marked strings differently.
427ec082 11237 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
11238 symbol names.
11239 (compact_strings): Removed.
11240
42608ba8
EZ
112412000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
11242
11243 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
11244 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
11245
e0a09e1a
KH
112462000-01-04 Kenichi Handa <handa@etl.go.jp>
11247
dd9f0750 11248 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 11249 in a non-empty buffer.
dd9f0750 11250
3c0f3b15 11251 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 11252
44cd3ae5
GM
112532000-01-03 Gerd Moellmann <gerd@gnu.org>
11254
11255 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
11256 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
11257
11258 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
11259
c182a70f
EZ
112602000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11261
11262 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
11263 need to test for MSDOS frames.
11264
24480d5b
EZ
112652000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11266
11267 * dosfns.c (unspecified_colors): Remove.
11268 (msdos_stdcolor_idx): Use global variables unspecified_fg and
11269 unspecified_bg.
11270 (msdos_stdcolor_name): Return strings for unspecified fore- and
11271 back-ground colors.
11272
11273 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 11274 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
11275 (tty_color_name): Return Lisp strings for unspecified fore- and
11276 back-ground colors.
11277 (Finternal_set_lisp_face_attribute): Remove the special treatment
11278 for Qunspecified_{f,b}g.
52283633 11279 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
24480d5b 11280
047f434a
GM
112812000-01-03 Gerd Moellmann <gerd@gnu.org>
11282
11283 * xdisp.c (reseat_at_next_visible_line_start): Position before
11284 newline only if ending up on a newline.
11285 (next_element_from_ellipsis): Return success. Handle case of
52283633 11286 displaying no ellipsis. Fix case of ellipsis defined in display table.
047f434a
GM
11287 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
11288 returns 0.
11289
d684c676
EZ
112902000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11291
11292 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
11293 (Fcolor_supported_p): Renamed from face-color-supported-p.
11294
5fe1d139
EZ
112952000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11296
11297 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
11298 list of colors renamed to tty-defined-color-alist.
11299 (tty_color_name): Pass the frame to tty-color-by-index.
11300 (realize_tty_face): tty-color-alist is now a function which
11301 accepts the frame as argument.
11302
52283633 11303 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
5fe1d139 11304
816be8b8
EZ
113052000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11306
11307 * term.c (insert_glyphs): Pass glyph, not &glyph, to
11308 encode_terminal_code.
11309
b635321e
EZ
113102000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11311
11312 * dispnew.c (mode_line_string): Support termcap frames as well.
11313
9b784e96
GM
113142000-01-01 Gerd Moellmann <gerd@gnu.org>
11315
27189709
GM
11316 * syntax.c (Fforward_word): Undo previous change.
11317
11318 * editfns.c (Fconstrain_to_field): Don't constrain if
11319 inhibit-field-text-motion is non-nil.
11320 (Fline_beginning_position): Undo previous change.
11321 (Fline_end_position): Ditto.
11322
11323 * syntax.c (Fforward_word): Notice field boundaries only if
11324 inhibit-field-text-motion is nil.
11325
11326 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
11327
11328 * editfns.c (Vinhibit_field_text_motion): New variable.
11329 (inhibit-field-text-motion): New DEFVAR_LISP.
11330 (Fline_beginning_position, Fline_end_position): Notice field
11331 boundaries only if inhibit-field-text-motion is nil.
11332
45158a91
GM
11333 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
11334 All calls adjusted.
11335 (x_build_heuristic_mask): Likewise.
11336 (xbm_load_image_from_file): Change error output.
11337 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
11338 (gif_load, gs_load, x_kill_gs_process): Ditto.
11339
9b784e96
GM
11340 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
11341 color indices when accessing raster pixels.
63cec32f
GM
11342 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
11343 one of :file or :data.
11344 (enum pbm_keyword_index): Add PBM_DATA.
11345 (pbm_format): Add :data.
11346 (pbm_image_p): Allow either :file or :data.
11347 (pbm_read_file): New function.
11348 (pbm_scan_number): Rewritten to read from string.
11349 (pbm_load): Support :data.
9b784e96 11350
2cb085db 11351See ChangeLog.8 for earlier changes.
6922b018
KH
11352
11353;; Local Variables:
49b3bd82 11354;; coding: iso-2022-7bit
6922b018 11355;; End: