(mouse_face_overlay_overlaps): Fix the computation
[bpt/emacs.git] / src / ChangeLog
CommitLineData
8c56a983
GM
12001-04-25 Gerd Moellmann <gerd@gnu.org>
2
bfd8410f
GM
3 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
4 of the number of overlays to check.
5
be2488ca
GM
6 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
7
8c56a983
GM
8 * xdisp.c (try_window_id): Fix a case where window_end_pos
9 and window_end_bytepos were not adjusted.
10
522d42f7
GM
112001-04-23 Gerd Moellmann <gerd@gnu.org>
12
13 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
14 zero instead of -1.
15
78c1afb6
EZ
162001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
17
18 * process.c (wait_reading_process_input) [!subprocesses]: Don't
19 reference waiting_for_user_input_p, it's not defined in the branch
20 without async subprocesses support.
21
a2fab450
GM
222001-04-19 Gerd Moellmann <gerd@gnu.org>
23
a122a38e
GM
24 * keyboard.c (delete_kboard): Prevent a dangling reference
25 from current_kboard to KB, which is freed.
26
a2fab450
GM
27 * process.c (wait_reading_process_input): Call
28 record_asynch_buffer_change after running timers, to make
29 read_key_sequence aware of buffer changes from under it.
30
0f8d6dc7
GM
312001-04-18 Gerd Moellmann <gerd@gnu.org>
32
eeffb293
GM
33 * xfaces.c (Qscalable_fonts_allowed): New variable.
34 (realizing_basic_faces_p): Removed.
35 (x_face_list_fonts): Special handling for realizing_basic_faces_p
36 removed.
37 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
38 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change
39 default for scalable-fonts-allowed to t.
40
0f8d6dc7
GM
41 * fileio.c (Finsert_file_contents): If the file size returned from
42 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
43 read from files on a procfs whose contents are generated
44 dynamically.
45
eec2d1de
EZ
462001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
47
48 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
49 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
50 (__memalign_hook): Make the two prototypes consistent.
51
f4f480bd
GM
522001-04-17 Gerd Moellmann <gerd@gnu.org>
53
54 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
55 matrix of mini-windows.
56
52283633
SM
572001-04-12 Stefan Monnier <monnier@cs.yale.edu>
58
59 * intervals.c (find_interval): Don't rebalance during signal handling.
60
ec2423c9
GM
612001-04-11 Gerd Moellmann <gerd@gnu.org>
62
30cb0001 63 * fns.c: Include blockinput.h.
52283633 64
ec2423c9
GM
65 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
66
719d83ad
GM
672001-04-10 Gerd Moellmann <gerd@gnu.org>
68
60f8d735
GM
69 * fns.c (Fcompare_strings): Fix return values.
70
afffeb57
GM
71 * window.c (window_scroll): Change the meaning of N to mean
72 N screen-fulls or N lines.
73 (window_scroll_pixel_based, window_scroll_line_based)
74 (scroll_command, Fscroll_other_window): Change accordingly.
75
52283633
SM
76 * window.c (window_scroll_pixel_based, Frecenter):
77 Call window_box_height instead of using it.last_visible_y for the
afffeb57
GM
78 height of the window.
79
80 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
81 instead of using it.last_visible_y for the height of the window.
52283633 82
719d83ad
GM
83 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
84
85 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
86 able to write to hidden and system files. Make file handles
87 non-inheritable.
88
89 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile.
90
522ed7fb
GM
912001-04-09 Gerd Moellmann <gerd@gnu.org>
92
9170e5d4
GM
93 * fns.c (Fplist_get, Fplist_put): Add QUITs.
94
522ed7fb
GM
95 * window.c (window_internal_height): Return 1 less if the
96 window has a header line.
97
98 * xdisp.c (try_window_id): When scrolling on a terminal, take
99 the change of window_internal_height into account.
100
ceeb3d7d
EZ
1012001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
102
103 * gmalloc.c (align): If the argument SIZE would overflow
104 __malloc_ptrdiff_t, fail right away.
105
63685b9d
GM
1062001-04-06 Gerd Moellmann <gerd@gnu.org>
107
108 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
109 Make sure the tooltip is completely visible.
110 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
111
112 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
113
114 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
115
3ffb33bb
DL
1162001-04-06 Dave Love <fx@gnu.org>
117
52283633
SM
118 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
119 Fix test of `from'.
3ffb33bb 120
869fb12c
GM
1212001-04-06 Gerd Moellmann <gerd@gnu.org>
122
52283633 123 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
afa3935f 124
869fb12c
GM
125 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
126
441bf856
GM
1272001-04-05 Gerd Moellmann <gerd@gnu.org>
128
4d664b04
GM
129 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
130
52283633 131 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
a55e4e68 132
30ca89f5
GM
133 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
134 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
135
136 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
137 shell widget's position only if it is non-null.
138
52283633
SM
139 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
140 Set f->output_data.x->widget to null after destroying it.
30ca89f5 141
81a81c0f
GM
142 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
143 FILENAME to bring it in synch with the documentation.
144
441bf856
GM
145 * xfaces.c (realizing_basic_faces_p): Renamed from
146 realize_default_face_p.
147 (realize_basic_faces): Set/clear realizing_basic_faces_p.
148 (realize_default_face): Don't set the flag.
149
702a1e8e
GM
1502001-04-04 Gerd Moellmann <gerd@gnu.org>
151
1013f4e3
GM
152 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
153
52283633
SM
154 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
155
1013f4e3
GM
156 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
157 the buffer that was used for echoing.
158
702a1e8e
GM
159 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
160 (first_font_matching): Removed unused function.
161 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
162 (may_use_scalable_font_p): Remove parameter FONT; rename
163 parameter NAME to FONT.
164 (x_face_list_fonts): Fix missing bounds check.
165 (realizing_default_face_p): New variable.
166 (realize_default_face): Set and clear that flag.
167 (x_face_list_fonts): When called during the realization of the
168 default face, and no matching fonts are found when ignoring
169 scalable fonts and fonts matching a regexp from
170 face-ignored-fonts, try without ignoring fonts.
171
f9dbcda4
GM
1722001-04-03 Gerd Moellmann <gerd@gnu.org>
173
ad18ffb1
GM
174 * xfns.c (postprocess_image): New function.
175 (lookup_image): Call it for all image types except PostScript.
176 (x_kill_gs_process): Call postprocess_image.
177
f9dbcda4
GM
178 * xterm.c (x_use_underline_position_properties): New variable.
179 (x_draw_glyph_string): Use it.
180 (syms_of_xterm): DEFVAR_BOOL it.
181
651f03b6
GM
1822001-04-02 Gerd Moellmann <gerd@gnu.org>
183
184 * xterm.c (x_alloc_nearest_color_1): New function.
185 (x_alloc_nearest_color): Use it.
186 (x_color_cells): Take a Display as argument, instead of a frame.
187 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
188 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
189 (x_initialize): Register cvt_string_to_pixel as resource converter
190 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
191
73d75a62
GM
1922001-03-30 Gerd Moellmann <gerd@gnu.org>
193
b2046df8
GM
194 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
195 (set_iterator_to_next): If a string from a display property ends,
196 consider the case that this might also be the end of an
197 overlay string having the display property.
198
52283633 199 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
b2046df8 200
87d8eba4
GM
201 * xdisp.c (reseat_to_string): Undo last change.
202
73d75a62
GM
203 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
204 matrix of a window when the header line changes, when
205 new rows are allocated, or when the width changes.
206
911a2406
EZ
2072001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
208
52283633 209 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
911a2406 210
aea51abe
EZ
2112001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
212
213 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
214 deprecated.
215
176bc847
GM
2162001-03-29 Gerd Moellmann <gerd@gnu.org>
217
ed31fabf
GM
218 * data.c (Fsubr_interactive_form): New function.
219 (syms_of_data): Defsubr it.
220
176bc847
GM
221 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
222 (live_float_p, live_misc_p): Return 1 only if the offset of the
223 pointer in its block is >= 0.
224
e59d0e9d
GM
2252001-03-28 Paul Eggert <eggert@twinsun.com>
226
227 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
228 microseconds calcuation. Avoid double-rounding problem.
229 In doc string, warn that the result is approximate.
230
f827b862
GM
2312001-03-28 Gerd Moellmann <gerd@gnu.org>
232
30a3f61c
GM
233 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
234 bind `inhibit-eval-during-redisplay' to t.
235
236 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
237
238 * xdisp.c (inhibit_eval_during_redisplay)
239 (Qinhibit_eval_during_redisplay): New variables.
240 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
241 don't eval, return nil instead.
242 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
243 Initialize Qinhibit_eval_during_redisplay.
244
e719f5ae
GM
245 * xdisp.c (reseat_to_string): If STRING is multibyte, set
246 the iterator's multibyte_p flag.
247
deb2613a
GM
248 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
249 instead of setting it to zero; it's incremented for each frame
250 where the menu face is changed.
251
52283633
SM
252 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
253 change bottom shadow accordingly.
254
255 * xterm.c (expose_window_tree, expose_frame): Don't compute
a02f1be0
GM
256 intersections here.
257 (expose_window): Do it here instead.
52283633 258 (x_draw_glyph_string): Fix a computation of the underline position.
a02f1be0 259
f827b862
GM
260 * bytecode.c (BYTE_CODE_QUIT): New macro.
261 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
262
4bde0ebb
GM
2632001-03-27 Gerd Moellmann <gerd@gnu.org>
264
607ec83c
GM
265 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
266 Give up if matrix starts in an ellipsis.
267 (init_from_display_pos): Do nothing if POS doesn't specify
268 a dpvec_index but the iterator has such a position.
269
0245398f
GM
270 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
271
aba25348
GM
272 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
273 x/y position is (0, 0) after destroying the menu bar, restore
274 its original position.
275
4bde0ebb
GM
276 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
277 (init_from_display_pos): Use it.
278 (try_window_reusing_current_matrix): Don't use cursor_row_p.
279
8cdb267e
GM
2802001-03-26 Gerd Moellmann <gerd@gnu.org>
281
282 * xdisp.c (try_window_id): Undo last change.
283
9948db79
EZ
2842001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
285
286 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
287
288 * buffer.c (syms_of_buffer): Doc fix.
289
2eddf899
GM
2902001-03-26 Gerd Moellmann <gerd@gnu.org>
291
292 * xfaces.c (x_update_menu_appearance): Use local variable
293 popup_path for setting font resources.
294
6c145d35
EZ
2952001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
296
6a65b1b5
EZ
297 * frame.c (Fframe_list): Don't reference tip_frame if
298 HAVE_WINDOW_SYSTEM is not defined.
299
6c145d35
EZ
300 * emacs.c (main): Update the copyright year. From Werner LEMBERG
301 <wl@gnu.org>.
302
d74c1900
GM
3032001-03-25 Gerd Moellmann <gerd@gnu.org>
304
20fbd925
GM
305 * xdisp.c (init_from_display_pos): Test invisible property
306 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
52283633 307
927c5b3b
GM
308 * xdisp.c (redisplay_internal) <update one window>: Make sure
309 last_arrow_position and last_arrow_string are set.
310
d74c1900
GM
311 * frame.c (Fframe_list): Don't return a tooltip frame.
312
091f8878
GM
3132001-03-23 Gerd Moellmann <gerd@gnu.org>
314
52283633
SM
315 * xdisp.c (mark_window_display_accurate_1): New function,
316 extracted from mark_window_display_accurate.
317 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
43c09969
GM
318 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
319 (mark_window_display_accurate): Use it.
320 (redisplay_internal): Use it for the selected window.
321 (redisplay_internal): Avoid duplicate mark_window_display_accurate
322 for the selected frame.
323
ac90c44f
GM
324 * xdisp.c Use make_number, for readability.
325 (try_window_id): Disable rows below the window end.
326 (try_window_reusing_current_matrix): Use cursor_row_p.
327 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
328 of rows.
329 (init_from_display_pos): If POS specifies a position in a display
330 vector, maybe get the iterator set up for that ellipsis.
43c09969 331
091f8878
GM
332 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
333
991786dd
EZ
3342001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
335
336 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
337
6c29b43c
GM
3382001-03-23 Gerd Moellmann <gerd@gnu.org>
339
340 * xfaces.c (x_update_menu_appearance): Use a different path
341 for Lucid popup menus.
342
d8731202
SM
3432001-03-22 Stefan Monnier <monnier@cs.yale.edu>
344
345 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
346
347 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
348 (string_buffer_position): Use `make_number'.
349
f61a541b
GM
3502001-03-22 Gerd Moellmann <gerd@gnu.org>
351
3c9e997b
GM
352 * xfaces.c (x_update_menu_appearance): Renamed from
353 x_set_menu_face_resources. Use different resources for popups.
354
355 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
356 (GC_CHECK_STRING_BYTES): Don't define.
357
364cd450
GM
358 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
359 Removed, together with subroutines.
360 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
d8731202 361 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
364cd450 362
d8731202
SM
363 * dispextern.h (x_set_menu_resources_from_menu_face):
364 Remove prototype.
364cd450 365
d8731202 366 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
364cd450
GM
367 Remove calls to x_set_menu_resources_from_menu_face.
368
d8731202
SM
369 * xfaces.c (xm_set_menu_resources_from_menu_face):
370 Remove #ifndef LESSTIF_VERSION.
f61a541b
GM
371
372 * xmenu.c: Include widget.h.
373 (single_submenu): Return int. Some cleanup.
374 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
375
140330de
GM
3762001-03-21 Gerd Moellmann <gerd@gnu.org>
377
378 * xterm.c (x_update_window_end): Handle overwritten mouse face
379 also for tool bar windows.
380 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
381 DRAW is DRAW_IMAGE_RAISED.
382
1741905c
GM
3832001-03-20 Gerd Moellmann <gerd@gnu.org>
384
fa88947e
GM
385 * print.c (syms_of_print): Doc fixes.
386
1741905c
GM
387 * fns.c (Fmd5): Doc fix.
388
ade0bee1
GM
3892001-03-19 Gerd Moellmann <gerd@gnu.org>
390
357e7376
GM
391 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
392 Clear area of the frame not occupied by the scroll bar.
393
c2c097cc
GM
394 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
395 tip frame's root window buffer to *tip* right after creating
396 the frame.
397
ade0bee1
GM
398 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
399 is an integer don't have to be for space characters.
400
88c6e37e
GM
4012001-03-16 Gerd Moellmann <gerd@gnu.org>
402
52283633
SM
403 * indent.c (current_column, current_column_1, Fmove_to_column)
404 (compute_motion): Handle characters from display vectors differently.
88c6e37e 405
c62eed76
KH
4062001-03-15 Kenichi Handa <handa@etl.go.jp>
407
408 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
409 drawing glyph string.
410
c899e7e6
GM
4112001-03-15 Gerd Moellmann <gerd@gnu.org>
412
d0bbfc99
GM
413 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
414 (command_loop_1): Undo last change.
415
03d1a189
GM
416 * xterm.c (fast_find_position): Return the correct vpos.
417
c899e7e6 418 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
52283633 419 non-null, set a per-buffer value in BUF instead of the current buffer.
c899e7e6
GM
420 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
421 Call store_symval_forwarding with BUF null.
422 (set_internal): Call store_symval_forwarding with the BUF
423 parameter passed to set_internal. Formerly, the value was always
424 set in the current buffer; the buffer recorded in specbind for
425 this case wasn't used.
426 (arith_driver): Reindent.
427
52283633
SM
428 * buffer.c (swap_out_buffer_local_variables):
429 Call store_symval_forwarding with BUF null.
c899e7e6
GM
430
431 * lisp.h (store_symval_forwarding): Change prototype.
432
433 * eval.c (specbind): Call store_symval_forwarding with BUF null.
434
57ac7c81
GM
4352001-03-14 Gerd Moellmann <gerd@gnu.org>
436
697617d9
GM
437 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
438 FOR_DELETION. Avoid resizing the mini-window of the selected
439 frame if FOR_DELETION is set.
440 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
441 (Fmake_frame_invisible): Change calls to do_switch_frame for new
442 signature.
443
444 * window.c (Fset_window_configuration): Change call to
445 do_switch_frame to new format.
446
447 * keyboard.c (quit_throw_to_read_char): Change call to
448 do_switch_frame to new format.
449
450 * lisp.h (do_switch_frame): Change prototype.
451
819dce0f
GM
452 * frame.c (Fframe_parameters): In the `buffer-list' frame
453 parameter, store the buffer list of FRAME, not the list of the
454 selected frame.
455
57ac7c81
GM
456 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
457 box just because the glyph row's full_width_p flag is set.
458
65008712
GM
4592001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
460
461 * xdisp.c (highlight_trailing_whitespace): On character terminals,
462 skip the padding blanks inserted in extend_face_to_end_of_line,
463 before checking for trailing whitespace.
464
159cf431
GM
4652001-03-13 Gerd Moellmann <gerd@gnu.org>
466
52283633 467 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
19b2bb80
GM
468 Remove special handling for LessTif/Motif.
469 (toplevel): Don't include Xm/Xm.h.
470
52283633
SM
471 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
472 Remove workaround code for LessTif; it doesn't work anymore.
473
2564ea1b 474 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
57ac7c81 475 Xm/ScrollBarP.h.
afcdc0a1 476
52283633
SM
477 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
478 Don't access private scroll bar data; it's no longer necessary with
23442ae4
GM
479 contemporary LessTif.
480
52283633
SM
481 * xfaces.c (xm_set_menu_resources_from_menu_face):
482 Change #if 0 to #ifndef LESSTIF_VERSION.
9faaaa52 483
159cf431
GM
484 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
485 removing button grabs.
486
c6f7429a
KH
4872001-03-13 Kenichi Handa <handa@etl.go.jp>
488
cb82d767
KH
489 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
490 and clip-large-size-font as obsolete.
491
c6f7429a
KH
492 * lread.c (read_multibyte): Check the validity of multibyte
493 sequence. If invalid, return the first byte.
494
760cefb5
GM
4952001-03-12 Gerd Moellmann <gerd@gnu.org>
496
497 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
498 before running the command; timer functions or process
499 filters may have set it.
500
5141f9d0
EZ
5012001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
502
503 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
504 Doc fix.
505
b6a15240
GM
5062001-03-12 Gerd Moellmann <gerd@gnu.org>
507
508 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
509 to sprintf.
510
95522746
GM
5112001-03-09 Gerd Moellmann <gerd@gnu.org>
512
db14cfc5
GM
513 * dispextern.h (string_buffer_position): Add prototype.
514
52283633 515 * xdisp.c (string_buffer_position, display_prop_string_p)
db14cfc5
GM
516 (single_display_prop_string_p): New functions.
517
518 * xterm.c (note_mouse_highlight): If there's no help-echo on
519 a string, look at the buffer text ``under'' it.
520
521 * keyboard.c (make_lispy_event): Add string info to the event,
522 analogous to what's done on mode lines.
523 (read_key_sequence): For a click on a string, consider `local-map'
524 and `keymap' of that string.
525
52283633
SM
526 * keyboard.c (make_lispy_event, make_lispy_movement):
527 Adjust calls to buffer_posn_from_coords to new format.
3cfd8357
GM
528
529 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
530
531 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
532 POS; return void.
533
95522746
GM
534 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
535 flags argument to emacs_open; it seems to conflict with O_EXCL.
536
898a399d
KH
5372001-03-09 Kenichi Handa <handa@etl.go.jp>
538
28cd4910
KH
539 * composite.h (struct composition): Change types of members;
540 glyph_len to unsigned, width to unsigned short.
898a399d 541
4cdf6a6c
AI
5422001-03-08 Andrew Innes <andrewi@gnu.org>
543
544 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
545 menu titles.
546
129004d3
GM
5472001-03-08 Gerd Moellmann <gerd@gnu.org>
548
221dd3e7
GM
549 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
550 instead of nil.
551
52283633 552 * xterm.c (note_mouse_highlight): Handle mouse-face and
5de7c6f2
GM
553 help-echo in strings.
554 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
555 (fast_find_string_pos): New function.
556
52283633
SM
557 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
558 (display_string): Call face_at_string_position with new parameter.
5de7c6f2
GM
559
560 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
561 Handle `mouse-face'.
562
563 * dispextern.h (face_at_string_position): Change prototype.
564
52283633 565 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
e1fbabaf 566
129004d3
GM
567 * keyboard.c (make_lispy_event): Avoid generating drag events
568 if the mouse hasn't actually moved to another buffer position.
52283633 569
80c8ab8c
DL
5702001-03-08 Dave Love <fx@gnu.org>
571
129004d3 572 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
80c8ab8c 573
989521fd
GM
5742001-03-08 Gerd Moellmann <gerd@gnu.org>
575
576 * process.c (Fset_process_window_size): Fix a typo.
577
bb5c338d
KH
5782001-03-08 Kenichi Handa <handa@etl.go.jp>
579
580 * coding.c (detect_coding_sjis): Do more rigid check.
581 (detect_coding_big5): Likewise.
582 (decode_coding_sjis_big5): Likewise.
583 (Fdetect_coding_region): Call detect_coding_system with tailing
584 anchor byte `\0' for more rigid detection.
52283633 585 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
bb5c338d
KH
586 (Fdetect_coding_string): Likewise.
587
8b8f9197
SM
5882001-03-07 Stefan Monnier <monnier@cs.yale.edu>
589
590 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
591 a string before extracting its data.
592
3bdf2660
GM
5932001-03-07 Gerd Moellmann <gerd@gnu.org>
594
595 * window.c (Frecenter): Rewrite code handling negative values
596 of ARG on graphical frames.
597
5982001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
599
600 * window.c (displayed_window_lines): If W->start is outside the
601 accessible portion of the buffer, call start_display with BEGV or
602 ZV instead of W->start.
603
471f86b9
GM
6042001-03-07 Gerd Moellmann <gerd@gnu.org>
605
2ab62c6c
GM
606 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
607
471f86b9
GM
608 * process.c (Fset_process_filter): Don't crash if the input
609 file descriptor of PROCESS is closed.
610 (Fset_process_window_size): Likewise.
611
101922c3
GM
6122001-03-06 Kenichi Handa <handa@etl.go.jp>
613
614 * xterm.c (XTflash): Make the timeout of select shorter, and call
615 select repeatedly until the desired time expires.
616
45d051a7
GM
6172001-03-06 Gerd Moellmann <gerd@gnu.org>
618
619 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
620
621 * xfns.c (Fx_create_frame): Clear Vwindow_list.
622
623 * lisp.h (Vwindow_list): Declare extern.
624
8f372c46
EZ
6252001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
626
627 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
628
f16a7aa5
GM
6292001-03-06 Gerd Moellmann <gerd@gnu.org>
630
157ae273
GM
631 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
632 to detect a case where we have to highlight a different region
633 despite not having left the currently highlighted region.
634 Set mouse_face_overlay in the x_display_info.
45d051a7 635 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
157ae273
GM
636
637 * xterm.h (struct x_display_info): Add mouse_face_overlay.
638
639 * buffer.c (mouse_face_overlay_overlaps): New function.
640
641 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
642 (Qmouse_face): Declare extern.
643
f16a7aa5
GM
644 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
645 if face_change_count is non-zero.
646
827afcac
KH
6472001-03-06 Kenichi Handa <handa@etl.go.jp>
648
649 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
650 that the source is unibyte.
651
14c7242e
DL
6522001-03-05 Dave Love <fx@gnu.org>
653
827afcac 654 * xterm.c (XTmouse_position): Fix typo.
14c7242e 655
c28b847b
GM
6562001-03-05 Gerd Moellmann <gerd@gnu.org>
657
658 * minibuf.c (read_minibuf): Clean up the binding stack if
659 called noninteractively.
660
b86644f2
KH
6612001-03-05 Kenichi Handa <handa@etl.go.jp>
662
663 * coding.c (syms_of_coding): Docstring modified.
664
203682cc 6652001-03-05 Kenichi Handa <handa@etl.go.jp>
b86644f2
KH
666
667 * charset.c (char_to_string): If a single byte char has modifier
668 bits that can't be reflected to the character code, ignore them
45d051a7 669 instead of signaling an error.
b86644f2 670
e30bd7b7
EZ
6712001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
672
673 * s/msdos.h: Update copyright notice.
674
675 * dosfns.h: Update copyright notice.
676
677 * dosfns.c: Update copyright notice.
678
679 * msdos.c: Update copyright notice.
680
b52b65bd
GM
6812001-03-02 Gerd Moellmann <gerd@gnu.org>
682
683 * xterm.c (glyph_rect): New function.
684 (XTmouse_position): Use it to raise the threshold for mouse
685 movement event generation.
686
53c4b1e6
EZ
6872001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
688
689 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
690 specifies (reverse . t), reverse the initial screen colors.
691 (IT_set_frame_parameters): If the property is foreground-color,
52283633
SM
692 but we are reversing the colors, set bg_set, not fg_set.
693 Likewise for setting background-color and reversing: set fg_set.
694 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
53c4b1e6
EZ
695 in effect.
696
697 * xfaces.c (Finternal_set_lisp_face_attribute)
698 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
699 parameters alist.
700
f964b4d7
GM
7012001-03-02 Gerd Moellmann <gerd@gnu.org>
702
ef53d75e
GM
703 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
704 to a single slash in the middle of file names.
705
52283633 706 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
cda0f4da
GM
707 Accept only alphanumeric time zone names.
708
f964b4d7
GM
709 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
710 or width area.
711 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
712 a widget to zero height.
52283633 713
c3c45f65
GM
7142001-03-01 Gerd Moellmann <gerd@gnu.org>
715
716 * window.c (Fwindow_end): Call move_it_past_eol only if
717 ending up on a partially visible line.
718
028d739a
DL
7192001-03-01 Dave Love <fx@gnu.org>
720
721 * ccl.c (Fccl_execute): Doc fix.
722
57c5889c
GM
7232001-03-01 Gerd Moellmann <gerd@gnu.org>
724
35f59f6b
GM
725 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
726 of the tool bar before calling x_figure_window_size.
727
f84ff02c
GM
728 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
729 NULL after destroying it, otherwise XTread_socket can access a
730 destroyed widget when input is unblocked.
731
8b8f9197 732 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
52283633 733
57c5889c
GM
734 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
735 same name as before, although there was a change in fontsets.
736
224227d1
KR
7372001-02-28 Ken Raeburn <raeburn@gnu.org>
738
4560730a
KR
739 * lisp.h (Fframe_parameter): Declare.
740
224227d1 741 * window.c (set_window_buffer): Field vscroll is an int, not a
57c5889c 742 Lisp_Object.
224227d1 743
ece93c02
GM
7442001-02-28 Gerd Moellmann <gerd@gnu.org>
745
11ef99b9
GM
746 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
747 NULL instead.
748
749 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
750 NULL instead.
751
ece93c02
GM
752 * alloc.c (toplevel): Include process.h.
753 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
754 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
755 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
52283633
SM
756 (allocate_vector, allocate_hash_table, allocate_window)
757 (allocate_frame, allocate_process, allocate_other_vector):
758 New functions.
ece93c02
GM
759 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
760 (mark_maybe_pointer): New function.
52283633 761 (mark_memory): Also mark Lisp data to which only pointers
ece93c02
GM
762 remain and not Lisp_Objects.
763 (min_heap_address, max_heap_address): New variables.
764 (mem_find): Return MEM_NIL if START is below min_heap_address or
765 above max_heap_address.
766 (mem_insert): Compute min_heap_address and max_heap_address.
767
768 * process.c (make_process): Use allocate_process.
769
770 * frame.c (make_frame): Use allocate_frame.
771
772 * window.c (make_window, make_dummy_parent): Use allocate_window.
773 (Fcurrent_window_configuration): Use allocate_other_vector.
774
775 * lisp.h (allocate_vectorlike): Remove prototype.
776 (allocate_vector, allocate_other_vector, allocate_frame)
777 (allocate_window, allocate_process, allocate_hash_table):
778 Add prototypes.
779
780 * fns.c (Fdelete, larger_vector): Use allocate_vector.
781 (make_hash_table, copy_hash_table): Use allocate_hash_table.
782
063af457
KH
7832001-02-27 Kenichi Handa <handa@etl.go.jp>
784
785 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
786 treat the produced bytes as a valid multibyte sequence.
787
788 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
52283633
SM
789 (ccl_driver) <CCL_WriteMultibyteChar2>:
790 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
063af457
KH
791 <ccl_finish>: Set ccl->eight_bit_control properly.
792
793 * ccl.h (struct ccl_program): New member eight_bit_control.
794
f58c6494
SM
7952001-02-26 Stefan Monnier <monnier@cs.yale.edu>
796
797 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
798 accessible_keymaps_char_table.
799 (accessible_keymaps_char_table): Obey `is_metized'.
800 (where_is_internal, Fwhere_is_internal): Don't confuse int and
801 Lisp_Object.
802
c596c392
GM
8032001-02-26 Gerd Moellmann <gerd@gnu.org>
804
805 * dispnew.c: Check HAVE_TERM_H before including term.h.
806
425de386
AI
8072001-02-24 Andrew Innes <andrewi@gnu.org>
808
809 * makefile.w32-in: Update copyright notice.
810
2ba11bbd
SM
8112001-02-24 Stefan Monnier <monnier@cs.yale.edu>
812
813 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
814
66c56ed1
KH
8152001-02-24 Kenichi Handa <handa@etl.go.jp>
816
4c1593ce
KH
817 * Makefile.in (lisp): Add international/utf-8.elc.
818
66c56ed1
KH
819 * fontset.c (Fnew_fontset): Fix handling of the case that an
820 element of FONTLIST is a cons of family and registry.
821
796ead7e
JR
8222001-02-23 Jason Rumney <jasonr@gnu.org>
823
824 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
825 to height unconditionally.
826
827 * w32term.c (x_set_glyph_string_background_width): Extend the
52283633 828 background face to the end of the drawing area in the text area, only.
796ead7e
JR
829 (x_insert_glyphs): Call window_box_left to obtain the left
830 x-coordinate of the area to shift.
831
832 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
833 safe_run_hooks.
834
f6839838
AI
8352001-02-22 Andrew Innes <andrewi@gnu.org>
836
52283633 837 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
f6839838
AI
838 ($(BLD)\dispnew.obj):
839 ($(BLD)\editfns.obj):
840 ($(BLD)\fileio.obj):
841 ($(BLD)\filelock.obj):
842 ($(BLD)\keyboard.obj):
843 ($(BLD)\w32proc.obj):
844 ($(BLD)\process.obj):
845 ($(BLD)\sysdep.obj): Ditto.
846
847 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
848 header files.
52283633
SM
849 ($(BLD)/dispnew.$(O)):
850 ($(BLD)/editfns.$(O)):
851 ($(BLD)/fileio.$(O)):
852 ($(BLD)/filelock.$(O)):
853 ($(BLD)/keyboard.$(O)):
854 ($(BLD)/w32proc.$(O)):
855 ($(BLD)/process.$(O)):
f6839838
AI
856 ($(BLD)/sysdep.$(O)): Ditto.
857
c224f70b
GM
8582001-02-22 Gerd Moellmann <gerd@gnu.org>
859
51695746
GM
860 * xdisp.c (forward_to_next_line_start): When taking the shortcut
861 at the start of the function, check that the \n in it->c is
862 from the iterator's current position.
52283633 863
a61b7058
GM
864 * xdisp.c (handle_single_display_prop): Add parameter
865 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
866 properties which replace the display of text with something else.
867 (handle_display_prop): Call handle_single_display_prop with
868 additional argument saying if we already replaced text display
869 with something else. Use AREF.
52283633 870 (with_echo_area_buffer_unwind_data, display_menu_bar)
a61b7058
GM
871 (decode_mode_spec_coding): Use AREF and ASIZE.
872
3473f362
GM
873 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
874 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
875 * vmstime.h: Files removed.
52283633 876
2bb58df3
GM
877 * unexencap.c, unexfx2800.c: Files removed.
878
c224f70b
GM
879 * dispnew.c (direct_output_for_insert): Give up if we are showing
880 a message or just cleared the message because we might need to
881 resize the echo area window or display an empty echo area.
882
ffc9ff0c
GM
8832001-02-21 Gerd Moellmann <gerd@gnu.org>
884
0528abe1
GM
885 * xdisp.c (redisplay_internal): Do the
886 mark_window_display_accurate after all windows have been
887 redisplayed because this call resets flags in buffers which are
888 needed for proper redisplay.
889
52283633
SM
890 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
891 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
ffc9ff0c
GM
892 the old names.
893
52283633
SM
894 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
895 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
896
897 * msdos.h (struct x_output): Rename busy_window to
898 hourglass_window, busy_p to hourglass_p.
899
52283633
SM
900 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
901 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
902
903 * xfns.c: Rename everything containing *busy_cursor* and similar
904 to *hourglass*.
905 (syms_of_w32fns): Rename x-busy-pointer-shape to
906 x-hourglass-pointer-shape, display-busy-cursor to
907 display-hourglass, busy-cursor-delay to hourglass-delay.
908
909 * w32fns.c: Rename everything containing *busy_cursor* and similar
910 to *hourglass*.
911 (syms_of_w32fns): Rename x-busy-pointer-shape to
912 x-hourglass-pointer-shape, display-busy-cursor to
913 display-hourglass, busy-cursor-delay to hourglass-delay.
914
915 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
916 of its busy_p flag.
917
918 * dispextern.h (start_hourglass, cancel_hourglass)
919 (display_hourglass_p): Renamed from *busy_cursor*.
920
ab2c5f0a
GM
9212001-02-20 Gerd Moellmann <gerd@gnu.org>
922
d17e49a8
GM
923 * keyboard.c (read_char): When an event from unread-command-events
924 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
925
fa97adf6
GM
926 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
927 equal to the current buffer.
928
ab2c5f0a
GM
929 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
930 nil, otherwise we're left with truncate_lines t when a message
931 is printed with message-truncate-lines bound to t.
932
aeac019e
GM
9332001-02-19 Gerd Moellmann <gerd@gnu.org>
934
c8bc6f65
GM
935 * window.c (Fmove_to_window_line): Undo last change.
936 (displayed_window_lines): Call line_bottom_y to determine
937 the line's bottom position.
938
939 * dispextern.h (line_bottom_y): Add prototype.
940
52283633 941 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
c8bc6f65
GM
942 (pos_visible_p): Use it.
943
980a2d69
GM
944 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
945 set redisplaying_p to 0 here instead of in Frecursive_edit.
946 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
947 set redisplaying_p.
948
52283633 949 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
184d2372
GM
950 New variables.
951 (syms_of_xdisp): Initialize new variables.
952 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
953 Specbind `inhibit-menubar-update' when updating the menu bar.
954
65048e97
GM
955 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
956 safe_run_hooks.
957
958 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
959 safe_run_hooks.
960
a57c4026
GM
961 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
962 is null.
963
aeac019e
GM
964 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
965 to the start of the file.
966
76846b31
GM
9672001-02-16 Gerd Moellmann <gerd@gnu.org>
968
f3f053f3 969 * window.c (set_window_buffer): Fix last change.
52283633 970
f3f053f3
GM
971 * window.c (set_window_buffer): Set window's vscroll to 0.
972
dad75588
GM
973 * window.c (coordinates_in_window): Increase width of area
974 where the vertical line can be dragged.
975
c220b753
GM
976 * xterm.c (x_set_glyph_string_background_width): Extend the
977 background face to the end of the drawing area in the text
978 area, only.
979
c56b1c1b
GM
980 * xdisp.c (handle_single_display_prop): Set iterator's position
981 to where the `display' property starts, like for images.
982 (dump_glyph): New function.
983 (dump_glyph_row): Use it. Dump info about marginal areas.
984
985 * dispnew.c (direct_output_for_insert): Recognize more cases where
986 glyphs can be written instead of being inserted.
987
988 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
989 the left x-coordinate of the area to shift.
990
76846b31
GM
991 * dired.c (directory_files_internal): Set result list to nil
992 before retrying.
993
0fc71a77
KH
9942001-02-15 Kenichi Handa <handa@etl.go.jp>
995
996 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
997 invalid multibyte sequence, treat *SRC as a character of
998 eight-bit-graphic.
999
25078b54
EZ
10002001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
1001
1002 * textprop.c (Fset_text_properties): Doc fix.
1003
8399f8a0
GM
10042001-02-15 Gerd Moellmann <gerd@gnu.org>
1005
1006 * dispnew.c (update_text_area): Undo change of 2001-01-12.
1007
9a2a6f73
DL
10082001-02-14 Dave Love <fx@gnu.org>
1009
1010 * coding.c: Doc and message fixes.
1011
bf853fee
AI
10122001-02-14 Andrew Innes <andrewi@gnu.org>
1013
1014 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
1015 Emacs frame above the screen size.
1016
78c663d8
GM
10172001-02-14 Gerd Moellmann <gerd@gnu.org>
1018
1019 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
1020
7cc9f69f
GM
10212001-02-13 Gerd Moellmann <gerd@gnu.org>
1022
0a411995
GM
1023 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
1024 case that TO ends up beyond ZV after running before-change-functions.
1025
5ddc1b75
GM
1026 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
1027 the selected window if it is showing the buffer in question.
1028
7cc9f69f
GM
1029 * dired.c (directory_files_internal): Initialize errno.
1030 (toplevel): Include errno.h.
1031
2e6621ca
GM
10322001-02-13 Kenichi Handa <handa@etl.go.jp>
1033
1034 * xfaces.c (best_matching_font): New parameter width_ratio.
1035 Multiply avgwidth by width_ratio.
1036 (choose_face_font): Call best_matching_font with width_ratio
1037 calculated from the column width of C.
1038
60222d69
AI
10392001-02-12 Andrew Innes <andrewi@gnu.org>
1040
1041 The following changes are to draw box lines inside characters area
1042 if line-width is negative.
52283633 1043
60222d69
AI
1044 * w32term.c (x_produce_image_glyph): Pay attention to the case that
1045 face->box_line_width is negative.
1046 (x_produce_stretch_glyph): Likewise.
1047 (x_produce_glyphs): Likewise.
1048 (x_estimate_mode_line_height): Likewise.
1049 (x_draw_glyph_string_background): Likewise.
1050 (x_draw_glyph_string_foreground): Likewise.
1051 (x_draw_composite_glyph_string_foreground): Likewise.
1052 (x_draw_glyph_string_box): Likewise.
1053 (x_draw_image_foreground): Likewise.
1054 (x_draw_image_relief): Likewise.
1055 (x_draw_image_foreground_1): Likewise.
1056 (x_draw_image_glyph_string): Likewise.
1057
9804b846
KH
10582001-02-09 Kenichi Handa <handa@etl.go.jp>
1059
1060 The following changes are to draw box lines inside characters area
1061 if line-width is negative.
52283633 1062
9804b846
KH
1063 * xterm.c (x_produce_image_glyph): Pay attention to the case that
1064 face->box_line_width is negative.
1065 (x_produce_stretch_glyph): Likewise.
1066 (x_produce_glyphs): Likewise.
1067 (x_estimate_mode_line_height): Likewise.
1068 (x_draw_glyph_string_background): Likewise.
1069 (x_draw_glyph_string_foreground): Likewise.
1070 (x_draw_composite_glyph_string_foreground): Likewise.
1071 (x_draw_glyph_string_box): Likewise.
1072 (x_draw_image_foreground): Likewise.
1073 (x_draw_image_relief): Likewise.
1074 (x_draw_image_foreground_1): Likewise.
1075 (x_draw_image_glyph_string): Likewise.
1076
1077 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
1078 and :line-width can be negative.
52283633 1079 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
9804b846 1080
49be9f70
JR
10812001-02-09 Jason Rumney <jasonr@gnu.org>
1082
1083 * w32term.c (w32_encode_char): Treat eight bit graphic and control
1084 characters the same as ASCII and latin-1.
1085 (x_display_and_set_cursor): Check for the focus frame's selected
1086 window instead of selected_window.
1087 (x_after_update_window_line): Don't clear if frame's internal
1088 border width is zero.
1089 (x_new_font): Don't change a tooltip's size.
1090 (w32_initialize): Set char_ins_del_ok to 1.
1091
1092 * w32fns.c (Fx_show_tip): Fix calls to make_number.
1093 (x_set_font): If font hasn't changed, avoid recomputing
1094 faces and other things.
52283633
SM
1095 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
1096 (Fx_create_frame): Add the tool bar height to the frame height.
49be9f70
JR
1097 (x_create_tip_frame): Prevent changing the tooltip's
1098 background color by specifying a color for the default font
1099 in .Xdefaults.
1100 (Qcancel_timer): New variable.
1101 (syms_of_w32fns): Initialize and staticpro it.
1102 (Fx_hide_tip, Fx_show_tip): Use it.
1103 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
1104 the timer.
1105 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
1106
1107 * w32.c (init_environment): Duplicate local string before putenv.
1108
555e35d2
SZ
11092001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
1110
1111 * charset.c (Fstring): A typo.
1112
19c92c94
KH
11132001-02-09 Kenichi Handa <handa@etl.go.jp>
1114
e47a1c33
KH
1115 * charset.c (Fstring): If all arguments are less than 256, return
1116 a unibyte string.
1117
1118 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
1119 return a unibyte string.
1120
19c92c94
KH
1121 * coding.c (code_convert_region): After detecting a coding, if
1122 nothing found, set coding->composing to COMPOSITION_NO.
1123 (decode_coding_string): Likewise.
1124
d8e675f5
SM
11252001-02-08 Stefan Monnier <monnier@cs.yale.edu>
1126
1127 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
1128 to avoid overflow.
1129
bd503487
KH
11302001-02-07 Kenichi Handa <handa@etl.go.jp>
1131
1132 * charset.c (parse_str_to_multibyte): New function.
1133
1134 * charset.h (parse_str_to_multibyte): Extern it.
1135
1136 * print.c (print_string): If we are going to print a unibyte
1137 string into a multibyte buffer, convert the string to multibyte by
1138 str_to_multibyte.
1139
a8370d72
AI
11402001-02-06 Andrew Innes <andrewi@gnu.org>
1141
1142 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
1143 been created. It seems we can get sent window messages such as
1144 WM_ERASEBKGND before we properly update a frame.
1145
c363a1d6
GM
11462001-02-06 Gerd Moellmann <gerd@gnu.org>
1147
1148 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
1149 Avoid some unnecessary cursor positioning.
1150
a08332c0
GM
11512001-02-05 Gerd Moellmann <gerd@gnu.org>
1152
52283633 1153 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
a08332c0
GM
1154 (LFACE_AVGWIDTH): New macro.
1155 (LFACEP): Use AREF.
1156 (check_lface_attrs): Check LFACE_AVGWIDTH.
1157 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
1158 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
1159 (merge_face_vectors): Check LFACE_AVGWIDTH.
1160 (Finternal_make_lisp_face): Use AREF.
1161 (xm_set_menu_resources_from_menu_face)
1162 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
1163 (Finternal_lisp_face_empty_p): Use AREF.
1164 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
1165 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
1166 Compare average widths..
1167 (best_matching_font): Arrange for comparing average widths.
1168
52283633
SM
1169 * dispextern.h (enum lface_attribute_index):
1170 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
1171
5cb3c8d4
DL
11722001-02-05 Dave Love <fx@gnu.org>
1173
1174 * puresize.h: Revert last change following loadup.el change.
1175
193fba87
AI
11762001-02-05 Andrew Innes <andrewi@gnu.org>
1177
1178 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
1179 invocation of temacs, to work with Windows 2000.
1180 (bootstrap-emacs): Ditto.
1181
e16f52ce
GM
11822001-02-05 Gerd Moellmann <gerd@gnu.org>
1183
7a58ab59
GM
1184 * xterm.c (x_display_and_set_cursor): Check for the focus
1185 frame's selected window instead of selected_window.
1186
e89aaabd
GM
1187 * xdisp.c (try_scrolling): If point is in the line below the
1188 window, make sure to move the iterator at least a canonical
1189 char height down.
1190
52283633 1191 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
e16f52ce 1192
789ce875
KH
11932001-02-05 Kenichi Handa <handa@etl.go.jp>
1194
52283633
SM
1195 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
1196 If invalid, execute CCL_INVALID_CMD.
789ce875
KH
1197 (ccl_driver): If the CCL program is terminated because of
1198 CCL_STAT_INVALID_CMD, copy the remaining source data to the
1199 destination instead of throwing them away.
1200
20b28f82
GM
12012001-02-02 Gerd Moellmann <gerd@gnu.org>
1202
79fb38c0
GM
1203 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
1204 faces and other things.
1205
20b28f82
GM
1206 * xdisp.c (get_next_display_element): Fix case of empty
1207 display table entry.
1208
5a72551e
EZ
12092001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
1210
eb24d0bf
EZ
1211 * editfns.c (Fconstrain_to_field): Doc fix.
1212
6a3f48c7
EZ
1213 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
1214 into `thoroughly', to make it consistent with the doc string.
1215
5a72551e
EZ
1216 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
1217
01acdb05
GM
12182001-02-01 Gerd Moellmann <gerd@gnu.org>
1219
0353b28f
GM
1220 * search.c (search_buffer): Call set_search_regs with a byte
1221 position, not a character position.
1222
01acdb05
GM
1223 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
1224 minibuffer-only,
1225
e86b5133
EZ
12262001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
1227
1228 * frame.c (Fmodify_frame_parameters): Doc fix.
1229
7442878f
GM
12302001-01-31 Gerd Moellmann <gerd@gnu.org>
1231
01acdb05
GM
1232 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
1233 identifier which is not reserved by Standard C.
52283633 1234
7442878f
GM
1235 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
1236
1237 * window.c (enum window_part): New enumeration.
1238 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
1239 Qright_bitmap_area.
1240 (coordinates_in_window): Return an enumerator from enum
1241 window_part. Fix handling of right scroll bar.
1242 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
1243 `right-fringe' instead of `left-bitmap-area' and
1244 `right-bitmap-area'. Use enumerators from enum window_part
1245 instead of hard-coded integers.
52283633
SM
1246 (check_window_containing, window_from_coordinates):
1247 Use enumerators from enum window_part instead of hard-coded integers.
7442878f
GM
1248 (syms_of_window): Replace Qleft_bitmap_area and
1249 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
1250
7c132cba
EZ
12512001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
1252
1253 * editfns.c (Fformat_time_string): Doc fix.
1254
c359dd9e
SM
12552001-01-31 Stefan Monnier <monnier@cs.yale.edu>
1256
1257 * keymap.c (Fwhere_is_internal): Use the first valid binding
1258 if no ascii binding is found (when firstonly is t).
1259
ce070307
GM
12602001-01-31 Gerd Moellmann <gerd@gnu.org>
1261
b4f30ec5
GM
1262 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
1263 instead of Finteractive_p.
1264
1265 * lisp.h (interactive_p): Add prototype.
1266
1267 * eval.c (interactive_p): New function.
1268 (Finteractive_p): Use it.
1269
ce070307
GM
1270 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
1271
f57b6e64
DL
12722001-01-31 Dave Love <fx@gnu.org>
1273
d61c7afe
DL
1274 * .gdbinit (hook-run): Define to run xreload.
1275
f57b6e64
DL
1276 * textprop.c (Fset_text_properties): Fix newline in doc string.
1277
eef93f99
GM
12782001-01-30 Gerd Moellmann <gerd@gnu.org>
1279
52283633
SM
1280 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
1281 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
eef93f99
GM
1282
1283 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
52283633 1284 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
eef93f99
GM
1285 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
1286
1287 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
1288 height.
1289
d9c1f6f9
DL
12902001-01-30 Dave Love <fx@gnu.org>
1291
1292 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
1293 AFTER_POTENTIAL_GC.
1294
e8f044a0
GM
12952001-01-29 Gerd Moellmann <gerd@gnu.org>
1296
52283633
SM
1297 * bytecode.c (Fbyte_code) <Bcurrent_column>:
1298 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
e8f044a0 1299
8e1db7b3
EZ
13002001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
1301
1302 * textprop.c (Fset_text_properties): Doc fix.
1303
4eefd9d2
GM
13042001-01-29 Gerd Moellmann <gerd@gnu.org>
1305
1306 * xdisp.c (forward_to_next_line_start): Remove xassert.
1307
fccb8288
EZ
13082001-01-29 Jason Rumney <jasonr@gnu.org>
1309
4eefd9d2 1310 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
fccb8288
EZ
1311 returning without releasing it.
1312
76581eab
KH
13132001-01-29 Kenichi Handa <handa@etl.go.jp>
1314
1315 * w32fns.c (w32_font_match): Allocate three more bytes to regex
1316 for '^', '$', and '\0'.
1317
83a96b4d
AC
13182001-01-28 Andrew Choi <akochoi@i-cable.com>
1319
5604ec34
AC
1320 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
1321 regex for '^', '$', and '\0'.
1322
83a96b4d
AC
1323 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
1324 only if current_sblock has been initialized.
1325
1326 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
1327 terminal frame even if it is the only visible frame.
1328
c09a6440
KH
13292001-01-28 Kenichi Handa <handa@etl.go.jp>
1330
1331 * fontset.c (font_family_registry): Even if FONTNAME conform to
1332 XLFD, if it specifies other fields than family and registry,
52283633 1333 return FONTANME. New argument FORCE if nonzero cancel that feature.
c09a6440 1334 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
52283633
SM
1335 a signle byte character. Don't set FAMILY part to nil here.
1336 It is handled by the caller choose_face_font.
c09a6440
KH
1337 (Fnew_fontset): Call font_family_registry with FORCE 0.
1338 (Fset_fontset_font): Likewise.
1339
4dcd74e6
GM
13402001-01-27 Gerd Moellmann <gerd@gnu.org>
1341
1342 * xdisp.c (display_line): Don't treat a newline as fitting
1343 on the line.
1344
d2906bf8
GM
13452001-01-26 Gerd Moellmann <gerd@gnu.org>
1346
0130fe1a
GM
1347 * window.c (size_window): Set the window's orig_top to nil when
1348 changing heights, so that a future shrink_mini_window won't
1349 restore a bogus height.
1350
550f0e6a
GM
1351 * frame.c (do_switch_frame): If selected frame has a mini-window,
1352 resize that to exact size.
1353
b7b20fbd
GM
1354 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
1355
a47b7816
GM
1356 * xdisp.c (display_line): Simplify check for glyphs fitting
1357 entirely in the line.
1358
d2906bf8
GM
1359 * xfns.c (xic_style): New variable.
1360 (create_frame_xic): Move static variable to global scope for
550f0e6a 1361 the case that `static' gets defined away.
d2906bf8 1362
73df2b1e
KH
13632001-01-26 Kenichi Handa <handa@etl.go.jp>
1364
1365 * coding.c (decode_coding): Set a flag for inhibiting
1366 inconsistent eol.
1367 (code_convert_region): Always set saved_coding_symbol.
1368 (decode_coding_string): Likewise. Update coding->symbol when we
52283633 1369 encounter a inconsistent eol by the same way as code_convert_region.
73df2b1e 1370
6613cfc4
GM
13712001-01-25 Gerd Moellmann <gerd@gnu.org>
1372
c5e6e06b
GM
1373 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
1374 XClearArea.
1375
1376 * xterm.c (x_after_update_window_line): Don't clear if frame's
1377 internal border width is zero.
1378 (x_clear_area): New function.
1379 (x_after_update_window_line, x_clear_end_of_line)
1380 (x_scroll_bar_create, x_scroll_bar_set_handle)
1381 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
1382 instead of XClearArea.
1383
1384 * xterm.h (x_clear_area): Add prototype.
1385
6613cfc4
GM
1386 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
1387 which doesn't seem necessary anymore with Lesstif 0.92.
1388
650cc6cc
DL
13892001-01-25 Dave Love <fx@gnu.org>
1390
34ac3367
DL
1391 * puresize.h (BASE_PURESIZE): Up to 720000.
1392
650cc6cc
DL
1393 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
1394
5e37dc22
GM
13952001-01-25 Gerd Moellmann <gerd@gnu.org>
1396
e1e441f9
GM
1397 * xdisp.c (echo_area_display): Don't call redisplay_internal
1398 when Emacs is shutting down. We can't run hooks etc. that
1399 would be necessary to do a redisplay.
1400
5e37dc22
GM
1401 * lread.c (read_integer): Use type EMACS_INT instead of int.
1402
0fb94c7f
EZ
14032001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
1404
1405 * ccl.c (ccl_driver): Fix last change.
1406
e3778624
KH
14072001-01-25 Kenichi Handa <handa@etl.go.jp>
1408
1409 * ccl.h (sturct ccl_program): New member suppress_error.
1410
bb264518 1411 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
e3778624
KH
1412 insert error message to the output.
1413 (setup_ccl_program): Initialize ccl->suppress_error to 0.
1414
1415 * coding.h (struct coding_system): New member suppress_error.
1416
1417 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
1418 (Fset_terminal_coding_system_internal): Set the member
1419 suppress_error to 1.
1420 (Fset_safe_terminal_coding_system_internal): Likewise.
1421
245ed2b1
SM
14222001-01-24 Stefan Monnier <monnier@cs.yale.edu>
1423
1424 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
1425 as if it was a `charset'.
1426
f9aaedb6
GM
14272001-01-24 Gerd Moellmann <gerd@gnu.org>
1428
1429 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
1430 value in where_is_cache; the next lookup in the cache returns
1431 something bogus if we do.
1432
c3902c3e
EZ
14332001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
1434
1435 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
1436 if HAVE_WINDOW_SYSTEM isn't defined.
1437
3497f73e
GM
14382001-01-24 Gerd Moellmann <gerd@gnu.org>
1439
e7e41584
GM
1440 * fns.c (sweep_weak_table): Fix code taking items out of
1441 the hash collision chain. Some cleanup.
1442
3497f73e
GM
1443 * xterm.c (x_new_font): Don't change a tooltip's size.
1444
1445 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
1446 background color by specifying a color for the default font
1447 in .Xdefaults.
1448
3d48e687
KH
14492001-01-24 Kenichi Handa <handa@etl.go.jp>
1450
96531b20
KH
1451 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
1452 a workaround for SunOS 4's cc.
1453 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
1454 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
1455 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
1456 statement.
3d48e687 1457
a30629d2
GM
14582001-01-23 Gerd Moellmann <gerd@gnu.org>
1459
1460 * xterm.c (x_set_window_size_1): New function extracted from
1461 x_set_window_size.
1462 (x_set_window_size): Use it.
1463 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
1464 doesn't have a widget, like tooltips.
1465
5a43decf
EZ
14662001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
1467
52283633 1468 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5a43decf 1469
b0e98867
KH
14702001-01-23 Kenichi Handa <handa@etl.go.jp>
1471
1472 * fns.c (Fset_char_table_default): Fix to make sub char-table
1473 correctly.
1474
50606b4c
GM
14752001-01-22 Gerd Moellmann <gerd@gnu.org>
1476
cb2ddc53 1477 * xdisp.c (build_desired_tool_bar_string): Make sure we have
52283633
SM
1478 a desired tool bar string, even if there are no tool bar items.
1479
57c28064
GM
1480 * xdisp.c (Ftool_bar_lines_needed): New function.
1481 (syms_of_xdisp): Defsubr it.
1482
50606b4c
GM
1483 * editfns.c (Fformat): Don't extend text properties from arguments
1484 to padding chars in the result.
1485
2f169c38
EZ
14862001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
1487
1488 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
1489
0f32f023
AI
14902001-01-20 Andrew Innes <andrewi@gnu.org>
1491
52283633 1492 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
0f32f023
AI
1493 (w32_initialize): Don't set term hooks that aren't actually needed
1494 in windowed mode.
1495
1496 * xfaces.c (realize_default_face):
1497 (realize_face):
1498 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
1499
1500 * xdisp.c (handle_single_display_prop): Remove references to
1501 FRAME_W32_CONSOLE_P.
1502
52283633 1503 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
0f32f023
AI
1504
1505 * frame.h (output_method): Remove output_w32_console method.
1506 (FRAME_W32_CONSOLE_P): Remove macro.
1507
1508 * frame.c (Qw32_console): Remove variable.
1509 (Fframep): Remove references to it.
1510 (syms_of_frame): Ditto.
1511 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
1512
1513 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
1514 redefinition.
1515
7173eada
KH
15162001-01-20 Kenichi Handa <handa@etl.go.jp>
1517
1518 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
1519
755b45ce
AI
15202001-01-19 Andrew Innes <andrewi@gnu.org>
1521
1522 * w32.c (init_environment): Add a version-independent site-lisp
1523 directory to EMACSLOADPATH, after the version dependent one.
1524
0a949811
GM
15252001-01-19 Gerd Moellmann <gerd@gnu.org>
1526
8501998a
GM
1527 * editfns.c (Fbuffer_substring): Doc fix.
1528
52283633
SM
1529 * xdisp.c (message_dolog, message2, message2_nolog):
1530 Rename parameter LEN to NBYTES.
0a949811 1531
e6ebcbbe
KH
15322001-01-19 Kenichi Handa <handa@etl.go.jp>
1533
200ecca2
KH
1534 * charset.c (strwidth): Use c_string_width.
1535 (c_string_width): New function.
1536 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
1537 Caller changed.
1538
1539 * charset.h (c_string_width, lisp_string_width): Extern them.
1540
52283633 1541 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
200ecca2 1542
e6ebcbbe
KH
1543 * indent.c (check_composition): Check validity of composition.
1544
200ecca2
KH
1545 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
1546 characters by calling c_string_width.
1547 (x_consider_frame_title): Get byte length of frame tile string
1548 correctly.
1549 (display_mode_element): Pay attention to width of non-ASCII
1550 characters by calling strwidth.
1551
8692ca92
GM
15522001-01-18 Gerd Moellmann <gerd@gnu.org>
1553
8962e303
GM
1554 * xfns.c (Qcancel_timer): New variable.
1555 (syms_of_xfns): Initialize and staticpro it.
1556 (Fx_hide_tip, Fx_show_tip): Use it.
1557 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
1558 the timer.
1559 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
1560
91523be9
GM
1561 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
1562
1563 * window.h (WINDOW_LIVE_P): New macro.
1564
b0b7ed0e
GM
1565 * window.c (window_size_fixed): New variable.
1566 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
1567 the doc string.
1568
06bccf8e
GM
1569 * eval.c (specbind): If binding a per-buffer variable which
1570 doesn't have a buffer-local value in the current buffer, change
1571 the global value by changing the value of the symbol bound in all
1572 buffers not having their own value, to make it consistent with
1573 what happens with other buffer-local variables.
1574
8692ca92
GM
1575 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
1576
1577 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
1578 when searching for a newline.
1579
bb3a3b50
KH
15802001-01-18 Kenichi Handa <handa@etl.go.jp>
1581
1582 * xdisp.c (display_string): Fix previous change.
1583
c2cc16fa
JR
15842001-01-18 Jason Rumney <jasonr@gnu.org>
1585
1586 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
1587 GLYPH_DEBUG is defined.
1588 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
1589 true for images with `:ascent 100'.
1590 (x_set_mouse_face_gc): If the last used mouse face has gone in the
1591 meantime, use face MOUSE_FACE_ID.
1592 If first glyph isn't a character glyph, use the ASCII NUL
1593 character to determine the face.
1594 (expose_area): Do not treat left margin specially.
1595 (note_mode_line_highlight): If no local_map, check global keymap.
1596 (note_mouse_highlight): Initialize overlay.
52283633 1597 (clear_mouse_face): Don't return if tip_frame is non-nil.
c2cc16fa
JR
1598 (show_scroll_bars): Remove unused function.
1599 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
1600 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
1601 Clip to row.
52283633 1602 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
c2cc16fa
JR
1603 (x_free_frame_resources): Unload relief colors.
1604
9c11f79e
GM
16052001-01-17 Gerd Moellmann <gerd@gnu.org>
1606
3aec8722 1607 * xdisp.c (forward_to_next_line_start): Avoid calling
52283633
SM
1608 get_next_display_element when the newline is already found.
1609 This may change the iterator's position, when its current position is
3aec8722
GM
1610 equal to the iterator's stop_charpos.
1611
f3ffc2c3
GM
1612 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
1613 zero, use this method only at the end of a line.
1614
52283633 1615 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
a86110a8
GM
1616 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
1617 if SCALABLE_FONTS_P is set.
52283633 1618
d26d6fd9
GM
1619 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
1620 so that scalable fonts are included.
1621
9c11f79e
GM
1622 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
1623 In the cache, use a key containing the information if scalable
1624 fonts are included.
1625 (x_load_font): Adapt to change of keys in the font cache.
1626
16272001-01-17 Kim F. Storm <storm@filanet.dk>
52283633 1628
d26d6fd9
GM
1629 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
1630 XListFonts to take advantage of font caching.
1631
9c11f79e
GM
1632 * xterm.c (x_list_fonts): Ensure caching font information when
1633 called for a null frame, which is the case frequently when Emacs
1634 starts.
1635
51446987
GM
16362001-01-17 Gerd Moellmann <gerd@gnu.org>
1637
f864120f
GM
1638 * xfns.c (QCconversion): Replaces QCalgorithm.
1639
1640 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
1641
1642 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
1643 of :algorithm.
52283633 1644
e37d1417
GM
1645 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
1646 not everything could be displayed.
1647
51446987
GM
1648 * line.h, x-list-font.c: Files removed because unused.
1649
9ad4f3e5
AI
16502001-01-17 Andrew Innes <andrewi@gnu.org>
1651
1652 * dired.c (directory_files_internal): Convert result from readdir
1653 to a unibyte string initially, to avoid possible misinterpretation
1654 of some bytes as the internal form of Emacs characters.
1655
2eda09b5
KH
16562001-01-17 Kenichi Handa <handa@etl.go.jp>
1657
1658 * fns.c (concat): Be sure to avoid putting the same `composition'
1659 property on the adjacent regions.
1660
826f3788
GM
16612001-01-16 Gerd Moellmann <gerd@gnu.org>
1662
52283633 1663 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
f251459d
GM
1664 (Fscroll_right, Fscroll_left): Set it here instead, if called
1665 interactively.
1666
d57b83b3
GM
1667 * buffer.c (Fset_buffer_modified_p): Set buffer's
1668 prevent_redisplay_optimizations_p flag.
1669
826f3788 1670 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
52283633
SM
1671 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
1672 with additional arg.
1673
1674 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
1675 Change prototype.
826f3788 1676
826f3788
GM
1677 * xdisp.c (redisplay_preserve_echo_area): Add parameter
1678 FROM_WHERE, for debugging.
1679
261d788b
KH
16802001-01-16 Kenichi Handa <handa@etl.go.jp>
1681
1682 * ccl.c (Fregister_ccl_program): Handle the return value of
1683 resolve_symbol_ccl_program correctly.
52283633 1684 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
261d788b 1685
bccee4f2
GM
16862001-01-15 Gerd Moellmann <gerd@gnu.org>
1687
e4ded23c
GM
1688 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
1689 has gone in the meantime, use face MOUSE_FACE_ID.
52283633
SM
1690
1691 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
1692 If x_display_info_for_display returns null, don't try to close
ae24cb3b
GM
1693 the display; we didn't open it.
1694
bccee4f2
GM
1695 * dispnew.c (save_or_restore_current_matrices): Function removed.
1696 (save_current_matrix, restore_current_matrix): New functions.
1697 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
1698 restore the frame's current matrix. Due to the glyph pointer
1699 setup done in adjust_glyph_matrix, there is no easy way to make
1700 saving the current matrix in the desired matrix generally correct,
1701 so don't try it.
1702
ebeccffa
KH
17032001-01-15 Kenichi Handa <handa@etl.go.jp>
1704
1705 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
1706 truncation glyphs.
1707 (display_line): Optimize for wide characters.
e4ded23c 1708 (display_string): Don't try to display a multi-column character
ebeccffa
KH
1709 partially. On ttys, produce more than one truncation glyph for
1710 multi-column characters that don't fit on the line.
1711
64388126
KH
17122001-01-13 Kenichi Handa <handa@etl.go.jp>
1713
52283633
SM
1714 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
1715 Define it instead of WORDS_BIGENDIAN. Caller changed.
64388126 1716
8edb0a6f
JR
17172001-01-13 Jason Rumney <jasonr@gnu.org>
1718
1719 * w32fns.c (Fimage_size, image_ascent, lookup_image)
1720 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
52283633
SM
1721 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
1722 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
8edb0a6f 1723
52283633
SM
1724 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
1725 (x_draw_image_relief, x_draw_image_foreground_1)
8edb0a6f
JR
1726 (x_draw_image_glyph_string): Adapt to change of image margins.
1727
1728 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
1729 variables.
1730
1731 * w32bdf.c (search_file_line, get_cached_font_char)
1732 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
1733
1734 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
1735
1736 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
1737 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
1738 (Fw32_send_sys_command): Remove unused variables.
1739 (w32_msg_pump): Add parentheses.
1740
1741 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
1742 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
1743 Add parentheses.
1744
4956d1ef
GM
17452001-01-12 Gerd Moellmann <gerd@gnu.org>
1746
b30623be
GM
1747 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
1748 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
1749 being a pair of margins.
1750 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
1751 to DEFVAR_LISP. Extend doc.
1752
1753 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
1754 margins.
1755 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
1756 pair of integers `(X . Y)', use X for the horizontal and Y for the
1757 vertical margin.
1758 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
1759 (parse_image_spec): Check it.
52283633
SM
1760 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
1761 (tiff_format, gif_format, gs_format):
1762 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
b30623be 1763
52283633
SM
1764 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
1765 (x_draw_image_relief, x_draw_image_foreground_1)
b30623be
GM
1766 (x_draw_image_glyph_string): Adapt to the change of image margins.
1767
1768 * dispextern.h (struct image): Replace member `margin' with
1769 `hmargin' and `vmargin'.
1770
4554cc79
GM
1771 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
1772 and GLYPHS.
1773
1774 * dispnew.c (update_text_area): Put code which decrements the
1775 stop position when the row's face extends to the end of the
3bffc665 1776 line in #if 0.
4554cc79 1777
3cccce8d
GM
1778 * xfns.c (x_set_mouse_color): Fix color allocation.
1779
4956d1ef
GM
1780 * keyboard.c: Call get_local_map with new argument list.
1781
1782 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
1783
1784 * intervals.h (enum map_property): Removed.
1785 (get_local_map): Change prototype.
1786
1787 * keymap.c: Call get_local_map with new argument list.
1788 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
1789
2c2ff7f2
GM
17902001-01-11 Gerd Moellmann <gerd@gnu.org>
1791
a23887b9
GM
1792 * xdisp.c (build_desired_tool_bar_string): Correct the computation
1793 of the size needed for the tool bar string. For the last image,
1794 use a `display' property that reaches to the end of the string.
1795
a7ee2d2e
GM
1796 * xselect.c (selection_request_dpyinfo): New variable.
1797 (x_handle_selection_request): Set it.
1798 (x_selection_request_lisp_error): Don't call
1799 x_decline_selection_request if selection request's display has
1800 been closed.
1801
52283633
SM
1802 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
1803 Do the unregister_colors before calling XFreeColors.
2c2ff7f2 1804
457b792c
GM
18052001-01-10 Dave Love <fx@gnu.org>
1806
1807 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
1808 ${SOME_MACHINE_LISP}, not ${lisp}.
1809
c1efd260
GM
18102001-01-10 Gerd Moellmann <gerd@gnu.org>
1811
52283633
SM
1812 * xdisp.c (display_line): On ttys, produce more than one truncation
1813 glyph for multi-column characters that don't fit on the line.
a98b5ed9 1814
ac95a621
GM
1815 * xselect.c (x_reply_selection_request): Add a comment.
1816
c1efd260
GM
1817 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
1818 XkbGetNames instead of XkbGetKeyboard.
1819
1bfb1345
DL
18202001-01-10 Dave Love <fx@gnu.org>
1821
1822 * sysdep.c (random): Revert the declaration.
1823
38119822
GM
18242001-01-09 Gerd Moellmann <gerd@gnu.org>
1825
52283633
SM
1826 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
1827 Call function string_bytes.
35f464a7
GM
1828 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
1829
1830 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
1831 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
1832 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
1833 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
1834 the current sblock.
1835 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
1836 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
1837 after sweeping strings, and at the end.
1838 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
1839
38119822
GM
1840 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
1841 ensure that pop_message is called.
1842
1843 * keyboard.c (Fexecute_extended_command): Use a
1844 record_unwind_protect to ensure that pop_message is called.
1845
1846 * lisp.h (push_message_unwind): Add prototype.
1847
1848 * xdisp.c (push_message_unwind): New function.
1849
1850 * fileio.c (do_auto_save_unwind): Do the pop_message here
1851 instead of in Fdo_auto_save.
1852 (Fdo_auto_save): Don't call pop_message.
1853
f47a9ec4
KR
18542001-01-08 Ken Raeburn <raeburn@gnu.org>
1855
1856 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
1857 in inner block.
1858
a758f97d
GM
18592001-01-08 Gerd Moellmann <gerd@gnu.org>
1860
6d0afc03
GM
1861 * window.c (window_scroll_pixel_based): Adjust glyph matrices
1862 when increasing window's vscroll.
1863
a758f97d
GM
1864 * macros.c (Qkbd_macro_termination_hook): New variable.
1865 (syms_of_macros): Initialize and staticpro it.
1866 (pop_kbd_macro): Run kbd-macro-termination-hook.
1867
1868 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
1869
1bfb1345 18702001-01-07 Dave Love <fx@gnu.org>
64d4ec0f
DL
1871
1872 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
1873 arglist, for documentation's sake.
1874
0dac6924
AI
18752001-01-06 Andrew Innes <andrewi@gnu.org>
1876
1877 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
1878 of *.pdb.
1879
8182406a
AI
18802001-01-05 Andrew Innes <andrewi@gnu.org>
1881
1882 * term.c (update_end): Don't check updating_frame; for some reason
1883 this can be 0 sometimes, such as after dismissing a popup menu,
1884 and isn't necessary given the explicit frame argument.
1885
3828218c
GM
18862001-01-05 Gerd Moellmann <gerd@gnu.org>
1887
1888 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
1889 on some systems, and an unsigned long on others, like FreeBSD 4.1.
1890
2f5ded21
GM
18912001-01-04 Gerd Moellmann <gerd@gnu.org>
1892
52283633 1893 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
2f5ded21
GM
1894
1895 * xfns.c (x_create_tip_frame): Preserve the value of
1896 face_change_count around the creation of the tip frame.
52283633 1897
2f5ded21
GM
1898 * xfns.c (last_show_tip_args): New variable.
1899 (compute_tip_xy): New function.
1900 (Fx_show_tip): Reuse an existing tip frame, if possible.
1901 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
1902
dfad65fa
DL
19032001-01-04 Dave Love <fx@gnu.org>
1904
64d4ec0f
DL
1905 * editfns.c (Fformat): Doc fix.
1906
dfad65fa
DL
1907 * systime.h (set_file_times): Prototype.
1908
1909 * widget.h (EmacsFrameSetCharSize_): Prototype.
1910
1911 * sysdep.c (random, srandom): Declare explicitly.
1912
1913 * dispextern.h (move_it_vertically_backward): Declare.
1914
85fe3b5e
GM
19152001-01-04 Gerd Moellmann <gerd@gnu.org>
1916
0f2ac578
GM
1917 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
1918 like in Fx_create_frame.
1919
482cca61
GM
1920 * xfaces.c (set_font_frame_param): Don't do anything for
1921 non-graphical frames.
1922
85fe3b5e
GM
1923 * window.c (Fdelete_other_windows): Set window's window_end_valid
1924 to nil when changing the window's start. Don't change the
1925 window's start when its top position hasn't changed. If we do,
1926 this will set the window's optional_new_start, which act's like a
1927 force_start during redisplay with C-x 1 M-> under particular
1928 circumstances (see report from Per Starback to emacs-pretest-bug
1929 from 2000-12-13.).
1930
3e99d3b4
GM
19312001-01-03 Gerd Moellmann <gerd@gnu.org>
1932
a77dc1ec
GM
1933 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
1934 short cut at the start of the function. Add an assertion.
1935 (reseat_at_next_visible_line_start): Add an assertion.
1936
2f3cad6c
GM
1937 * window.c (Frecenter): When changing the window start, set the
1938 window's window_end_valid to nil.
1939 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
1940
1941 * dispextern.h (move_it_past_eol): Add prototype.
1942
1943 * xdisp.c (move_it_past_eol): New function.
1944
3e99d3b4
GM
1945 * window.c (Fwindow_end): Doc fix.
1946
19472001-01-03 Dave Love <fx@gnu.org>
1948
52283633 1949 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
3e99d3b4 1950
bafb434c
GM
19512001-01-03 Gerd Moellmann <gerd@gnu.org>
1952
1953 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
1954 the enabled_p flag of the glyph row at window_end_vpos to 0.
1955 (handle_single_display_prop): Fix last change.
1956
5297fb00
RS
19572001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
1958
1959 * window.c (Frecenter): Doc fix.
1960
13d6a61c
AI
19612001-01-02 Andrew Innes <andrewi@gnu.org>
1962
1963 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
1964
1965 * frame.h (output_method): Add output_w32_console method.
1966 (FRAME_W32_CONSOLE_P): New macro.
1967
1968 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
1969 use output_w32_console method.
1970 (Qw32_console): New Lisp_Object.
1971 (Fframep): Return it.
1972 (syms_of_frame): Init it.
52283633 1973 (Fframe_parameters): Report w32console as font for w32_console frames.
13d6a61c
AI
1974
1975 * xfaces.c (realize_default_face): Set face foreground and
1976 background to unspecified for w32_console frames.
1977 (realize_face): Realize face cache for w32_console frames.
1978 (realize_tty_face): Accept w32_console frames.
1979
52283633 1980 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
13d6a61c
AI
1981 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
1982 necessary, even if running interactively.
1983
1984 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
1985 w32_console frames.
1986
52283633
SM
1987 * w32term.c (x_update_begin):
1988 (x_update_end):
1989 (x_clear_frame):
1990 (x_ins_del_lines):
1991 (x_change_line_highlight):
1992 (x_delete_glyphs):
1993 (w32_ring_bell):
1994 (x_update_begin):
1995 (x_update_end):
1996 (w32_reassert_line_highlight):
1997 (w32_frame_rehighlight):
13d6a61c
AI
1998 (w32_frame_raise_lower): Do nothing if not w32 frame.
1999
2000 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
2001
2002 * w32fns.c (Fx_display_color_cells): Determine correct value, when
2003 system doesn't tell us directly.
2004 (Fx_display_visual_class): Implement properly.
2005
d6bb0c0d
GM
20062001-01-02 Gerd Moellmann <gerd@gnu.org>
2007
2008 * window.c (Frecenter): Handle centering in graphical frames
2009 specially. Centering on the basis of line counts doesn't work
2010 reliably with variable-height lines.
52283633 2011
315f5865
EZ
20122001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
2013
2014 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
2015 and al[].
2016
52283633 2017 * composite.c (run_composition_function): Remove unused var `val'.
315f5865
EZ
2018 (update_compositions): Remove unused variable `hook'.
2019
2020 * intervals.c (get_local_map): Remove unused variable `tem'.
2021
2022 * doprnt.c (doprnt1): Remove unused variable `size'.
2023
2024 * fns.c (Flength): Remove unused variable `tail'.
2025 (Fdelete): Remove unused variable `size'.
2026
2027 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
2028 and `gcpro2'.
2029
52283633 2030 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
315f5865
EZ
2031
2032 * data.c (find_symbol_value): Remove extra 3rd argument in the
2033 call to swap_in_symval_forwarding.
2034
52283633 2035 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
315f5865
EZ
2036
2037 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
2038 (trivial_regexp_p): Remove unused variable `c'.
2039 (boyer_moore): Remove unused variable `k'.
2040
2041 * indent.c (current_column): Remove unused variable `stopchar'.
2042 (Fcompute_motion): Remove unused variable `contin'.
2043
2044 * casefiddle.c (casify_object): Remove unused variable `tolen'.
2045
2046 * dired.c (directory_files_internal): Fix a typo in a comment.
2047 Remove an unused variable `handler'.
52283633 2048 (file_name_completion): Remove unused function-scope variable `dp'.
315f5865
EZ
2049 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
2050 on BSD4_2.
2051
52283633 2052 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
315f5865
EZ
2053
2054 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
2055 and `buf'.
2056 (Fmarker_insertion_type): Remove unused variable `buf'.
2057
2058 * insdel.c (make_gap): Remove unused variable `result'.
2059
52283633 2060 * keyboard.c (record_char): Remove unused function-scope var `help'.
315f5865
EZ
2061 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
2062 (menu_bar_items): Remove unused function-scope variable `tem'.
2063
2064 * fontset.c (fontset_ref): Remove unused variable `i'.
2065 (fontset_set): Remove unused variables `j' and `tmp'.
52283633 2066 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
315f5865
EZ
2067 (make_fontset_for_ascii_face): Remove unused variable `name'.
2068 (fs_load_font): Remove unused variable `font_idx'.
52283633 2069 (fs_query_fontset): Remove unused function-local variable `fontset'.
315f5865
EZ
2070 (list_fontsets): Remove unused variable `tail'.
2071 (Fnew_fontset): Remove unused variables `family' and `registry'.
2072 (accumulate_font_info): Remove unused variable `tmp'.
2073 (Ffontset_font): Remove unused variable `id'.
2074 (syms_of_fontset): Remove unused variable `i'.
2075
2076 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
2077 to x_term_init.
2078 (lookup_image): Remove unused variable `file'.
2079 (xbm_load): Remove unused variables `bitmap_data', `height', and
2080 `width'. Remove function-local variable `i', leave the
2081 block-local one.
2082 (gif_load): Remove unused variable `inc'.
2083
52283633 2084 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
315f5865
EZ
2085 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
2086 leave only the one in the inner block.
2087
2088 * xfaces.c (face_fontset, realize_default_face): Remove unused
2089 variable `fontset'.
2090 (face_at_buffer_position): Remove unused variable `multibyte_p'.
2091
2092 * term.c (encode_terminal_code): Remove unused variable `c'.
2093
2094 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
2095 char *' instead of `char *'.
2096
2097 * category.c (Fcategory_docstring): Remove unused variable `doc'.
52283633 2098 (Fget_unused_category): Remove unused variable `docstring_vector'.
315f5865
EZ
2099 (Fchar_category_set): Remove unused variables `val', `charset',
2100 `c1' and `c2'.
2101
52283633
SM
2102 * coding.c (detect_coding_iso2022, setup_coding_system):
2103 Remove unused variable `i'.
315f5865
EZ
2104 (detect_coding_mask): Remove unused variable `idx'.
2105 (detect_coding): Remove unused variable `i'.
2106 (ccl_coding_driver): Remove unused variable `result'.
2107 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
52283633 2108 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
315f5865
EZ
2109 (encode_coding_string): Remove unused variables `gcpro1' and
2110 `saved_coding_symbol'.
2111 (Ffind_coding_systems_region_internal): Remove function-local
2112 variable args[], leave only the block-local one.
2113 (code_convert_region1): Remove unused variable `len'.
2114
2115 * charset.c (char_printable_p): Remove unused variable `chars'.
2116 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
2117 (str_to_multibyte): Remove unused variable `c'.
2118
2119 * window.c (size_window): Remove block-local variable `min_size'.
2120
2121 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
2122 `header_line_height'.
2123 (append_space, extend_face_to_end_of_line): Declare `saved_what'
2124 enum display_element_type.
2125
1a8a9daf
GM
21262001-01-02 Gerd Moellmann <gerd@gnu.org>
2127
6dde6abc 2128 * xterm.c (x_connection_closed): Catch X errors around all
52283633
SM
2129 statements that call X. Save away the error message in a local copy.
2130
1883b2c6
GM
2131 * xterm.c (x_connection_closed): Set handling_signal to 0 at
2132 the start.
2133
a13be207
GM
2134 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
2135 in or at the start of invisible text.
2136
1a8a9daf
GM
2137 * dispnew.c (update_window): Don't check_current_matrix_flags.
2138
3608c0f9
JR
21392001-01-01 Jason Rumney <jasonr@gnu.org>
2140
2141 * w32fns.c (x_figure_window_size): Do not allow new_height and
2142 new_width of frame to override specified values.
2143
abb1acc4
KH
21442000-12-30 Kenichi Handa <handa@etl.go.jp>
2145
52283633 2146 * composite.c (find_composition): Fix a code for searching backward.
abb1acc4 2147
762a68ec
GM
21482000-12-29 Gerd Moellmann <gerd@gnu.org>
2149
52283633 2150 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
9c8b8382
GM
2151 (update_window) [GLYPH_DEBUG]: Call it.
2152 (scrolling_window): Prevent including current rows which are below
2153 what's displayed in the window.
2154
2155 * xdisp.c (try_window_reusing_current_matrix)
2156 <new start <= old start>: Disable rows in the current matrix
2157 which are below the window after scrolling.
52283633 2158
762a68ec
GM
2159 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
2160 is zero. It's not worth the complexity.
2161 (invisible_text_between_p): Put in #if 0 because unused.
2162
2d5912c1
GM
21632000-12-28 Gerd Moellmann <gerd@gnu.org>
2164
46f6a258
GM
2165 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
2166 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
2167
89f93679
GM
2168 * keyboard.c (echo_char): If C is an integer, always call
2169 push_key_description. Former code could signal an invalid
2170 character error.
2171
2172 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
2173 If set, print multibyte text.
2174 (Fsingle_key_description): Call push_key_description with
2175 FORCE_MULTIBYTE set.
2176 (describe_buffer_bindings): Likewise.
2177
2178 * lisp.h (push_key_description): Add prototype.
2179
c06017fb
GM
2180 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
2181 around the call to redisplay_internal.
2182
f1d2ce7f
GM
2183 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
2184
2d5912c1
GM
2185 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
2186
9371f831
KH
21872000-12-28 Kenichi Handa <handa@etl.go.jp>
2188
2189 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
2190 (ccl_driver): New local variable `extra_bytes'.
2191
2192 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
2193
52283633
SM
2194 * coding.c (setup_coding_system):
2195 Initialize coding->spec.ccl.eight_bit_carryover.
9371f831
KH
2196 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
2197
0c80628a
KH
21982000-12-28 Kenichi Handa <handa@etl.go.jp>
2199
2200 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
2201 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
2202 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
2203 (decode_composition_emacs_mule): New function.
2204 (decode_coding_emacs_mule): Decode composition sequence by calling
2205 decode_composition_emacs_mule.
2206 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
52283633
SM
2207 (encode_coding_emacs_mule): Changed from macro to function.
2208 If a text contains compositions, encode them correctly.
0c80628a
KH
2209 (setup_coding_system): Set coding->commong_flags for emacs-mule so
2210 that decoding and encoding are required.
2211
3e32cc27
GM
22122000-12-27 Gerd Moellmann <gerd@gnu.org>
2213
5e25feee
GM
2214 * xfaces.c (PT_PER_INCH): New macro.
2215 (xlfd_point_size): Compute real point size from font's pixel size.
2216 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
2217 instead of 72.
2218
892d8fcd
GM
2219 * .gdbinit: Comment out the line pointing to the Lesstif source
2220 directory.
2221
12c8b416
GM
2222 * window.c (Frecenter): Use displayed_window_lines instead
2223 of window_internal_height.
2224
6061fbf0
GM
2225 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
2226 instead of x-toolkit-scroll-bars-p.
2227 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
2228
2229 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
2230 instead of x-toolkit-scroll-bars-p.
2231 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
52283633 2232
3e32cc27
GM
2233 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
2234 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
52283633
SM
2235 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
2236 New variables.
2237 (add_window_display_history, add_frame_display_history)
3e32cc27
GM
2238 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
2239 (build_frame_matrix_from_leaf_window): Remove unused code.
2240 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
2241 redisplay history.
2242 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
2243 (update_window) [GLYPH_DEBUG]: Likewise.
2244 (syms_of_display): Defsubr dump-redisplay-history.
2245
31798cfe
GM
22462000-12-23 Gerd Moellmann <gerd@gnu.org>
2247
f717c2ba
GM
2248 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
2249 the end of the prompt. Set echo_after_prompt to the offset
2250 of echoptr in echobuf.
2251
aeb2b8fc
GM
2252 * xdisp.c (init_from_display_pos): Pop until the iterator's
2253 stack is empty; there may be frames for stretch or images
2254 on the stack.
2255
31798cfe
GM
2256 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
2257 (save_or_restore_current_matrix): New function for the same
2258 purpose, but more efficient.
2259 (adjust_frame_glyphs_for_frame_redisplay): Use it.
2260
f8156156
EZ
22612000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
2262
2263 * xdisp.c (syms_of_xdisp): Fix last change.
2264
bdd6d4e8
GM
22652000-12-23 Gerd Moellmann <gerd@gnu.org>
2266
2267 * xdisp.c (syms_of_xdisp): Doc fix.
2268
2269 * xdisp.c (redisplay_window): Remove label restore_buffers;
2270 use finish_scroll_bars instead to make sure that scroll bars
2271 are redeemed. If we don't do this, flickering can result from
2272 scroll bars being destroyed and recreated.
2273
9436cdf9
JR
22742000-12-22 Jason Rumney <jasonr@gnu.org>
2275
2276 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
2277 in the wrong colors when the foreground is not black.
2278 (expose_window): Don't redraw the window that's currently being
2279 updated.
2280
951f9df5
GM
22812000-12-22 Gerd Moellmann <gerd@gnu.org>
2282
856ff7a7
GM
2283 * window.c (size_window): When setting the window's too_small_ok
2284 flag, compare old size with minimum size depending on WIDTH_P,
2285 don't compare with window_min_width.
52283633 2286
951f9df5
GM
2287 * window.c (delete_window): Simplify somewhat.
2288 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
2289 freeing window matrices. The flag windows_or_buffers_changed is
2290 set, so the next redisplay will consider all windows; this should
2291 suffice.
2292
886bc933
KH
22932000-12-22 Kenichi Handa <handa@etl.go.jp>
2294
2295 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
2296
2297 * ccl.h (struct ccl_program): New member cr_consumed.
2298
2299 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
2300 (CCL_READ_CHAR): Handle EOL conversion here.
2301 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
2302
177f4e88
GM
23032000-12-21 Gerd Moellmann <gerd@gnu.org>
2304
52283633 2305 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
6ba384dc
GM
2306
2307 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
2308 otherwise tabs of different size compare equal.
2309
2310 * callint.c (Fcall_interactively): Prevent a compiler warning.
2311
2312 * print.c (print_unwind): Return nil.
2313 (PRINTDECLARE): Initialize all local variables.
2314 (print_preprocess): Add a default case.
2315
8e15274f
GM
2316 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
2317
2318 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
2319
52283633 2320 * window.c (delete_window, Fsplit_window)
177f4e88
GM
2321 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
2322
2323 * dispextern.h (ensure_frame_matrix): Function declaration removed.
2324
2325 * dispnew.c (ensure_frame_matrix): Removed.
2326 (save_frame_matrix, restore_frame_matrix): New functions.
2327 (adjust_frame_glyphs_for_frame_redisplay): Use them.
2328
2329 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
2330 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
2331
99012074
AI
23322000-12-21 Andrew Innes <andrewi@gnu.org>
2333
2334 * w32term.c (x_update_begin): Regenerate the palette here, rather
2335 than for each window.
2336
2337 * w32xfns.c (select_palette): Avoid calling SelectPalette if
2338 palette is NULL, since this corrupts memory! Also get
2339 display_info reference from frame.
2340
29ef7d2d
JR
23412000-12-21 Jason Rumney <jasonr@gnu.org>
2342
2343 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
2344
2345 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
2346 to avoid returning without releasing it.
3e27fa1f 2347
3f9d67a6
KH
23482000-12-21 Kenichi Handa <handa@etl.go.jp>
2349
587fc3f9
KH
2350 * keymap.c (push_key_description): Don't convert eight-bit-control
2351 and eight-bit-graphic to multibyte character.
2352
3f9d67a6
KH
2353 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
2354 generic character and CODE1 is nil, return the smallest character
2355 in CHARSET.
2356
774ba8c9
DL
23572000-12-20 Dave Love <fx@gnu.org>
2358
2359 * s/osf5-0.h (NSIG): Don't redefine.
2360
88416888
SM
23612000-12-20 Stefan Monnier <monnier@cs.yale.edu>
2362
2363 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
2364 excluding menu-bar and tool-bar.
2365 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
2366 (menu_item_p): Remove.
2367 (where_is_internal_1): Don't ignore menu-items.
2368
a6426c6f
GM
23692000-12-20 Gerd Moellmann <gerd@gnu.org>
2370
03ff8aab
GM
2371 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
2372 into account.
2373
2374 * window.c (make_window): Initialize window's min_hscroll.
2375 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
2376 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
2377 to zero.
2378 (struct saved_window): New member min_hscroll.
2379 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
2380 (Fset_window_configuration): Set window's min_hscroll.
2381 (save_window_save): Save window's min_hscroll.
2382 (compare_window_configurations): Compare min_hscroll values.
2383
2384 * window.h (struct window): New member min_hscroll.
2385
2386 * keyboard.c (echo_prompt): Prevent a compiler warning.
2387
8de4aaf8
GM
2388 * xdisp.c (try_cursor_movement): Fix last change. The real
2389 condition is that PT is at the end of the row, and should
2390 be displayed at the start of the next row.
52283633 2391
3f7e3031
GM
2392 * xdisp.c (try_cursor_movement): If we end on a partially
2393 visible line, end we already decided to scroll, return -1.
2394
a6426c6f
GM
2395 * dispextern.h (ensure_frame_matrix): Add prototype.
2396
2397 * window.c (delete_window, Fsplit_window)
2398 (Fset_window_configuration): Call ensure_frame_matrix.
2399
52283633
SM
2400 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
2401 New functions.
a6426c6f
GM
2402 (adjust_frame_glyphs_for_frame_redisplay): If display has been
2403 completed, call fake_current_matrices instead of marking frame
2404 garbaged.
2405
57fa2774
JR
24062000-12-20 Jason Rumney <jasonr@gnu.org>
2407
2408 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
2409
d925df90
EZ
24102000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
2411
2412 * fns.c (Frequire): Doc fix.
2413
7b93a85b
GM
24142000-12-19 Gerd Moellmann <gerd@gnu.org>
2415
52283633 2416 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
71d4497a 2417
c74e645b
GM
2418 * dispnew.c (direct_output_for_insert): Fix check for mini-window
2419 currently displaying a message.
2420
7b93a85b
GM
2421 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
2422 xterm.h.
2423 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
2424
90d97e64
AI
24252000-12-18 Andrew Innes <andrewi@gnu.org>
2426
2427 * w32.c (w32_strerror): New function.
2428
2429 * w32.h (w32_strerror): New extern.
2430
2431 * w32fns.c (Fw32_shell_execute): Use it.
2432
91c9e6ce
GM
24332000-12-18 Gerd Moellmann <gerd@gnu.org>
2434
2435 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
2436
6f4745e2
EZ
24372000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
2438
2439 * msdos.c (IT_set_face): Obey inverse_video.
2440
c9e088ce
KH
24412000-12-18 Kenichi Handa <handa@etl.go.jp>
2442
2443 * dired.c (directory_files_internal): Always return decoded filenames.
2444
c3695f5f
GM
24452000-12-18 Gerd Moellmann <gerd@gnu.org>
2446
52d8e4ff
GM
2447 * xterm.c (x_connection_closed): Prevent being called recursively
2448 because of an error condition in XtCloseDisplay.
52283633 2449
62be9979
GM
2450 * xdisp.c (init_iterator): If noninteractive, and the frame's
2451 face cache is null, make one.
2452
52283633 2453 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
5f7a1890 2454
c3695f5f
GM
2455 * process.c (wait_reading_process_input): Check for pending
2456 input when running timers.
2457
78555fbe
EZ
24582000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
2459
52283633 2460 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
78555fbe 2461
b2b36264
KH
24622000-12-18 Kenichi Handa <handa@etl.go.jp>
2463
2464 * process.c (read_process_output): Don't run a filter if the code
2465 decoder produces nothing but carryover.
2466
9c543fbf
AI
24672000-12-17 Andrew Innes <andrewi@gnu.org>
2468
2469 * w32.c (sys_rename): Only check errno against EEXIST, and not
2470 EACCES, when determining whether rename failed because the target
2471 exists. This was resulting in indefinite looping on Windows 9x if
2472 the source file was locked by another process.
2473
2474 * w32fns.c (Ffile_system_info): New function.
2475 (syms_of_w32fns): Defsubr it.
2476
10c2b5a8
GM
24772000-12-17 Gerd Moellmann <gerd@gnu.org>
2478
b0228ace
GM
2479 * window.c (coordinates_in_window): Fix computation for
2480 position on vertical line between mode lines.
2481
10c2b5a8
GM
2482 * xfns.c (unwind_create_frame): Return t if frame was deleted.
2483 Don't alter tip_frame or tip_window.
2484 (unwind_create_tip_frame): Set tip_frame to nil only if frame
2485 was deleted.
2486
c844a81a
GM
2487 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
2488 Don't alter tip_frame or tip_window.
2489 (unwind_create_tip_frame): Set tip_frame to nil only if frame
2490 was deleted.
2491
6c825f8e
EZ
24922000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
2493
2494 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
2495 be consistent with the doc string. Reported by NAKAJIMA Mikio
2496 <minakaji@osaka.email.ne.jp>.
2497
af4bb4c8
KH
24982000-12-16 Kenichi Handa <handa@etl.go.jp>
2499
2500 * xfaces.c (Vface_ignored_fonts): New variable.
2501 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
2502 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
2503
8062e53a
GM
25042000-12-15 Gerd Moellmann <gerd@gnu.org>
2505
e87b8809
GM
2506 * dispnew.c (update_window): Detect pending input every nth line
2507 updated, i.e. do it depending on real work done, and not on the
2508 vpos of the line.
2509
2510 * xterm.c (expose_window): Don't redraw the window that's
2511 currently being updated.
2512
a6768cc5
GM
2513 * window.c (Fset_window_point): Remove test for
2514 cursor_in_non_selected_windows.
2515
4ea7fdca
GM
2516 * lread.c (read1): Recognize end of file after `\\'.
2517
8062e53a
GM
2518 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
2519 not unwind_create_frame.
2520
bb7959c1
GM
25212000-12-15 Dave Love <fx@gnu.org>
2522
2523 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
2524 bcopy & al.
2525
2526 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
2527
ced04c42
KH
25282000-12-15 Kenichi Handa <handa@etl.go.jp>
2529
c5443913
KH
2530 * coding.c (setup_coding_system): Clear all members of the struct
2531 coding_system at first.
bc137305
KH
2532 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
2533 argument.
2534 (code_convert_region): Don't override coding->src_multibyte and
2535 coding->dst_multibyte.
c5443913 2536
ced04c42
KH
2537 * fns.c (Fmd5): Docstring improved.
2538
c2d7f289
MB
25392000-12-15 Miles Bader <miles@gnu.org>
2540
2541 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
2542 are actually marked as mode-lines; otherwise use
2543 estimate_mode_line_height.
2544
9d7d9263
GM
25452000-12-14 Gerd Moellmann <gerd@gnu.org>
2546
2547 * editfns.c (Fformat): Prevent a buffer overrun when the format
2548 specifies a precision.
2549
7cf0153a
EZ
25502000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
2551
2552 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
2553 argument is outside the range [2..3].
2554
1de0f662
AI
25552000-12-14 Andrew Innes <andrewi@gnu.org>
2556
2557 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
2558 nothing to do. Bind inhibit-quit.
2559 (tip_frame): Make it a Lisp_Object.
2560 (x_create_tip_frame): Set tip_frame after it has been added to
2561 Vframe_list.
2562 (Fx_show_tip): Don't set tip_frame here.
52283633 2563 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
1de0f662
AI
2564 (unwind_create_frame, unwind_create_tip_frame): New functions.
2565 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
2566 while a frame is only partially constructed.
2567
2568 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
2569 (x_free_frame_resources): New function.
2570 (x_destroy_window): Use it.
2571
02387dcc
GM
25722000-12-14 Gerd Moellmann <gerd@gnu.org>
2573
2574 * xfns.c (Fx_backspace_delete_keys_p): New function.
2575 (syms_of_xfns): Defsubr it.
2576
2577 * config.in (HAVE_XKBGETKEYBOARD): Add.
2578
0544ef49
KH
25792000-12-14 Kenichi Handa <handa@etl.go.jp>
2580
98d62747
KH
2581 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
2582 Always store string in multibyte representation in echobuf.
2583 (echo_char): Always store string in multibyte representation in
2584 echobuf.
2585 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
2586 (read_key_sequence): Adjusted for the change of echo_prompt.
2587
a20193cd
KH
2588 * fns.c (Fmd5): Docstring improved.
2589
191b83b6
KH
2590 * lisp.h (detect_coding_system): Prototype adjusted.
2591
0544ef49
KH
2592 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
2593 (detect_coding_emacs_mule, detect_coding_iso2022,)
2594 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
52283633
SM
2595 (detect_coding_utf_16, detect_coding_ccl): Make them static.
2596 New argument MULTIBYTEP. Callers changed.
0544ef49
KH
2597 (detect_coding_mask, detect_coding_system): New argument
2598 MULTIBYTEP. Callers changed.
1da1bb05
KH
2599 (decode_coding_string): Set coding->src_multibyte and
2600 coding->dst_multibyte before calling detect_coding and detect_eol.
2601 Update them after some coding system is detected.
52283633 2602
d5b3eb1b
SM
26032000-12-13 Stefan Monnier <monnier@cs.yale.edu>
2604
2605 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
2606
2607 * keyboard.c (menu_bar_items, tool_bar_items):
2608 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
2609
f7f8bb69
GM
26102000-12-13 Gerd Moellmann <gerd@gnu.org>
2611
52283633 2612 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
19f71add
GM
2613 New variables.
2614 (unwind_create_frame, unwind_create_tip_frame): New functions.
2615 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
2616 while a frame is only partially constructed.
2617
2618 * xterm.h (x_free_frame_resources): Declare.
2619
2620 * xterm.c (x_free_frame_resources): New function.
2621 (x_destroy_window): Use it.
2622
e10da507
GM
2623 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
2624 don't interrupt the update for pending input initially, i.e.
2625 update at least some lines.
2626
2627 * keyboard.c (do_mouse_tracking): Make externally visible.
52283633 2628
d5b3eb1b 2629 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
f7f8bb69
GM
2630
2631 * xfns.c (gray_bitmap_bits): Declare `char *'.
2632
90aa2856
GM
26332000-12-12 Gerd Moellmann <gerd@gnu.org>
2634
2635 * xdisp.c (display_tool_bar_line): Make sure that tool bar
2636 lines start with a relief line.
2637
a308c9cd
DL
26382000-12-12 Dave Love <fx@gnu.org>
2639
2640 * window.c (Fdisplay_buffer): Doc fix.
2641 (Fwindow_list): Remove unused var.
2642
2643 * buffer.h (mmap_set_vars): Declare.
2644
2645 * window.h (Fset_window_point): Declare.
2646
d575011f
EZ
26472000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
2648
bf6282d2 2649 * msdos.c (fast_find_position): Don't overstep the last window row.
52283633
SM
2650 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
2651 variable `area'. When looking for a row under (X,Y), give up if some
2652 of the previous rows is not enabled.
d575011f 2653
ecf4d726
GM
26542000-12-12 Gerd Moellmann <gerd@gnu.org>
2655
2ebf6139
GM
2656 * window.c (Fset_window_point): If displaying cursors in windows
2657 other than the selected window, make sure redisplay updates
2658 other windows to show the new value of point in the window.
2659
2660 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
2661
bfdb75ee
GM
2662 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
2663 the buffer is the sole visible buffer when in the mini-buffer.
2664
52283633 2665 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
4fdbd809
GM
2666 Bind `inhibit-read-only' to t.
2667 (unwind_with_echo_area_buffer): Use AREF.
2668
c0006262
GM
2669 * xfns.c (Fx_hide_tip): Simplified.
2670
52283633
SM
2671 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
2672 instead of `1'.
e9a59cad 2673
ecf4d726
GM
2674 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
2675
e5959a9a
GM
26762000-12-11 Gerd Moellmann <gerd@gnu.org>
2677
a3642e49 2678 * xfns.c (Fx_hide_tip): Fix last change.
52283633 2679
44b5a125
GM
2680 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
2681 nothing to do. Bind inhibit-quit.
2682 (tip_frame): Make it a Lisp_Object.
2683 (x_create_tip_frame): Set tip_frame after it has been added to
2684 Vframe_list.
2685 (Fx_show_tip): Don't set tip_frame here.
2686
2687 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
2688
2689 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
2690 Lisp_Object.
2691
2692 * dispextern.h: Change external declaration of tip_frame.
2693
d990421f
GM
2694 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
2695 return an empty string.
2696
4db87380
GM
2697 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
2698 of the window's update_mode_line flag, since the former is set by
2699 force-mode-line-update, not the latter. This makes
2700 column-number-mode slightly faster.
52283633 2701
e5959a9a
GM
2702 * xdisp.c (try_window_id) <all changes above window start>:
2703 Set the cursor.
2704
169fe44e
GM
27052000-12-11 Paul Eggert <eggert@twinsun.com>
2706
2707 * config.in (HAVE_FTELLO): Remove.
2708 (HAVE_FSEEKO): Add.
2709 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
2710 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
2711 HAVE_FTELLO.
2712 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
2713 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
52283633 2714
59ec59ae
MB
27152000-12-11 Miles Bader <miles@gnu.org>
2716
2717 * window.c (displayed_window_lines): Don't round up when
2718 converting empty space at bottom to lines.
ff904dd6
MB
2719 Handle non-newline-terminated final lines properly.
2720 (Fwindow_text_height): New function (used to be in lisp).
2721 (syms_of_window): Initialize it.
59ec59ae 2722
42ebfa31
SM
27232000-12-09 Stefan Monnier <monnier@cs.yale.edu>
2724
2725 * syntax.c (scan_lists): Check that the right quote char has the
2726 right Sstring syntax when jumping over strings.
2727 (init_syntax_once): Use Smax rather than 13.
2728
5cdb3cf3
MB
27292000-12-09 Miles Bader <miles@gnu.org>
2730
2731 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
2732 with PARTIALLY, inverting the sense.
2733 (window_scroll_pixel_based): Scroll partially visible lines into
2734 place if we hit the beginning or end of the buffer.
a12167c5
MB
2735 (displayed_window_lines): Don't include partially visible lines.
2736 (Fmove_to_window_line): Skip past any partially visible first line.
5cdb3cf3 2737
842b2a94
GM
27382000-12-08 Gerd Moellmann <gerd@gnu.org>
2739
2740 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
2741
2742 * tparam.c (tparam1): Change the way buffers are reallocated to be
2743 portable and less obfuscated.
2744
2745 * termcap.c (tgetent): Change the way buffers are reallocated to
2746 be portable and less obfuscated.
2747
2748 * macros.c (store_kbd_macro_char): Change the way buffers are
2749 reallocated to be portable and less obfuscated.
2750
2751 * lread.c (read1): Change the way buffers are reallocated to be
2752 portable and less obfuscated.
2753
2754 * doc.c (Fsubstitute_command_keys): Change the way buffers
2755 are reallocated so that it is portable.
2756
137cad7c
EZ
27572000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
2758
2759 * dosfns.c (Ffile_system_info): New function.
2760 (syms_of_dosfns): Defsubr it.
2761
5c7f629c
SM
27622000-12-07 Stefan Monnier <monnier@cs.yale.edu>
2763
2764 * alloc.c (gc_sweep): Add comment.
2765
959e647d
GM
27662000-12-07 Gerd Moellmann <gerd@gnu.org>
2767
52283633
SM
2768 * sound.c (vox_configure): Change order of ioctls.
2769 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
28fcb7dc
GM
2770 Ignore errors when changing volume.
2771 (vox_close): Don't reset the device.
2772
926b7e5e
GM
2773 * process.c (read_process_output): Make sure the process marker's
2774 position is valid when the process buffer is changed in
2775 after-change functions. W3 does that.
52283633 2776
959e647d
GM
2777 * xfns.c (x_free_gcs): New function.
2778
2779 * xterm.h (x_free_gcs): Add prototype.
2780
2781 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
2782 freeing GCs here.
2783
2784 * xterm.c (x_destroy_window): Call x_free_gcs so that
2785 resources of non-toolkit X windows will be freed.
2786
478ea067
AI
27872000-12-07 Andrew Innes <andrewi@gnu.org>
2788
2789 * w32fns.c (xlfd_charset_of_font): Fix last change.
2790
fbee3231
DL
27912000-12-06 Dave Love <fx@gnu.org>
2792
67292061
DL
2793 * md5.h (__P): Don't define -- it comes from config.h.
2794
fbee3231
DL
2795 * strftime.c: Change some #if foo to #ifdef foo.
2796
4ee87dbb
AI
27972000-12-06 Andrew Innes <andrewi@gnu.org>
2798
2799 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
2800
52283633 2801 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
4ee87dbb 2802 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
52283633 2803 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
4ee87dbb 2804
9765b4a4
GM
28052000-12-06 Gerd Moellmann <gerd@gnu.org>
2806
d285b373
GM
2807 * alloc.c (gc_sweep): Prevent symbols read during loadup
2808 from being freed.
2809
384333ee
GM
2810 * xdisp.c (underlying_face_id): New function.
2811 (handle_face_prop, face_before_or_after_it_pos): Use it
2812 to determine the face ``under'' a string. Let strings inherit
2813 the face of the buffer under them.
2814
2815 * xfaces.c (face_at_string_position): Update function comment.
52283633 2816
d4b72d58
GM
2817 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
2818 matrix if the window's left position has changed; we need to
2819 redraw it in this case.
2820
2821 * dispextern.h (struct glyph_matrix): Add member window_left_x.
2822
e1d05387
GM
2823 * window.c (coordinates_in_window): Check mouse on mode-line or
2824 header-line first.
2825
eb1b0c74
GM
2826 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
2827 advertized by the function documentation.
2828
d94d636f
GM
2829 * window.c (syms_of_window): Doc fix.
2830
3887b449
GM
2831 * sound.c (vox_configure): Set volume for left and right channel.
2832 (sound_cleanup): Return nil.
2833
efc8f57a
GM
2834 * xdisp.c (move_it_by_lines): Fix paren typo.
2835
9765b4a4
GM
2836 * xterm.c (x_load_font): Don't use the font's max_bounds for
2837 computing the height of the font. If max_bounds' ascent or
2838 descent are greater than the font's ascent or descent, this means
2839 glyphs overlap, which should be handled now by redisplay.
2840
6529ed87
GM
2841 * window.c (Veven_window_heights): New variable.
2842 (syms_of_window): DEFVAR_LISP it.
2843 (Fdisplay_buffer): Check Veven_window_heights before evening the
2844 window heights.
52283633 2845
0eb2ecde
MB
28462000-12-06 Miles Bader <miles@gnu.org>
2847
2848 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
2849 update `default-frame-alist' instead of setting no frame parameters.
2850
03d7a167
KH
28512000-12-06 Kenichi Handa <handa@etl.go.jp>
2852
2853 * composite.c (update_compositions): Fix typo (use the correct
2854 variable).
2855
5f8803c2
JR
28562000-12-05 Jason Rumney <jasonr@gnu.org>
2857
2858 * md5.h: Remove underscores from function declarations.
2859 (__attribute__, __alignof__) [!__GNUC__]: Define.
2860
2861 * md5.c: Delay include of md5.h until after namespace cleaning.
2862
c28a075b
JR
2863 * makefile.w32-in (fns.o): Depend on md5.h
2864 (md5.o): New target.
2865 (sunfns.o): Remove.
2866
2867 * makefile.nt: Likewise.
2868
ff3c7056
JR
28692000-12-05 Jason Rumney <jasonr@altavista.net>
2870
2871 * w32term.c (expose_area): Complete last change.
2872
0c21eeeb
KR
28732000-12-05 Ken Raeburn <raeburn@gnu.org>
2874
2875 * minibuf.c: Include intervals.h.
2876
f201d732
JR
28772000-12-05 Jason Rumney <jasonr@gnu.org>
2878
2879 * w32term.c (x_produce_glyphs): If a font for a component of
2880 a composition is not found, use 1 pixel dot ascent and 0 dot
2881 descent value to avoid displaying terribly tall empty boxes.
2882 (expose_area): Pass x-coordinate relative to the exposed
2883 area to x_draw_glyphs instead of a window-relative coordinate.
2884
21999ab9
GM
28852000-12-05 Gerd Moellmann <gerd@gnu.org>
2886
4d2036e4
GM
2887 * xdisp.c (next_element_from_ellipsis): Save face before selective
2888 display in saved_face_id, and set face_before_selective_p.
2889 (reseat_1): Reset face_before_selective_p.
2890 (append_space, extend_face_to_end_of_line): If iterator's
2891 face_before_selective_p is set, use the face from saved_face_id.
2892 (extend_face_to_end_of_line): For tty frames, make sure to
2893 use the right face id when producing spaces at the end of
2894 the line.
2895
2896 * dispextern.h (struct it): Add face_before_selective_p.
2897
52be17cc
GM
2898 * keyboard.c (record_char): Don't record identical help-echo
2899 events in recent_keys.
2900
8a4f36cc
GM
2901 * xterm.c [USE_X_TOOLKIT]: Close the display.
2902 (xim_close_dpy): Handle case that the display has been closed.
2903
57d6e381
GM
2904 * xterm.c (x_destroy_window): Reset the frame's X window after
2905 destroying it.
2906
21999ab9
GM
2907 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
2908 variable window_width.
2909 (line_draw_cost): Fix code skipping over spaces at the end of the
2910 line when must_write_spaces is not set.
2911 (scrolling_window): Fix code inserting runs in list of all runs.
2912
91372bb7
KH
29132000-12-05 Kenichi Handa <handa@etl.go.jp>
2914
2915 * coding.c (setup_coding_system): Be sure to initialize
2916 coding->category_idx.
2917
6c083b4c
GM
29182000-12-04 Gerd Moellmann <gerd@gnu.org>
2919
0c68ce6f 2920 * xterm.c (PER_CHAR_METRIC): Removed because not used.
52283633 2921
6452929e
GM
2922 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
2923 area to x_draw_glyphs instead of a window-relative coordinate.
2924
d7f31e22
GM
2925 * fileio.c (auto_save_error): Add parameter ERROR. Show the
2926 error in the message.
2927
ae18aa3b
GM
2928 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
2929 timer after having read a key. It's not good for code reading
2930 several keys in a loop, like an input method.
2931
caa15ef7
GM
2932 * fileio.c (Finsert_file_contents): When VISIT is t, don't
2933 record undo information for format-decode.
2934
2935 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
2936 current buffer is read-only, not if it isn't.
2937
6c083b4c
GM
2938 * keyboard.c (record_char): Record `help-echo' input events
2939 in recent_keys only if they display some help. Don't record
2940 `help-echo' events as macro char.
2941
caa15ef7
GM
29422000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2943
2944 * editfns.c (save_excursion_restore): Don't move point
2945 in another window if it is showing the wrong buffer.
2946 Avoid the call to Fwindow_live_p, for speed.
2947
5a13529b
KH
29482000-12-04 Kenichi Handa <handa@etl.go.jp>
2949
e225faa7
KH
2950 * xfaces.c (struct font_name): New member registry_priority.
2951 (split_font_name): Initialize the above member to zero.
2952 (concat_font_list): New function.
2953 (font_list): Include fonts of all alternative registries.
2954 (FONT_POINT_SIZE_QUANTUM): New macro.
2955 (better_font_p): Ignore point size difference less than
2956 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
2957
e89648b4
KH
2958 * xterm.c (x_produce_glyphs): If a font for a component of
2959 a composition is not found, use 1 pixel dot ascent and 0 dot
2960 descent value to avoid displaying terribly tall empty boxes.
2961
5a13529b
KH
2962 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
2963
d7935eb6
KR
29642000-12-03 Ken Raeburn <raeburn@gnu.org>
2965
2966 * coding.h (code_convert_string1): Declare.
2967
2968 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
2969
52283633 2970 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
d7935eb6 2971
0dd5e255
JR
29722000-12-02 Jason Rumney <jasonr@gnu.org>
2973
2974 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
2975 correctly for single byte character case.
2976 (w32_per_char_metric): Do not try to make any assumptions about
2977 the metrics of BDF fonts.
250cfece 2978 (x_estimate_mode_line_height): If `mode-line' face
52283633 2979 hasn't a font, use that of the frame, as drawing glyphs does.
250cfece
JR
2980 (note_mouse_highlight): Change the cursor shape on the vertical
2981 border between windows [not enabled].
2982
2983 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
2984
2985 * w32fns.c (Fx_create_frame): Reintroduce the call to
2986 face-set-after-frame-defaults.
2987 (Vx_window_horizontal_drag_shape): New variable.
2988 (syms_of_xfns): DEFVAR_LISP it.
2989 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
2990 enabled].
0dd5e255 2991
b5d8d2ca
GM
29922000-12-02 Simon Josefsson <simon@josefsson.org>
2993
2994 * fns.c (Fmd5): Use a different logic to decide the coding system
2995 to use.
2996
2997 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
2998
fbb87147
EZ
29992000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
3000
52283633 3001 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
fbb87147 3002
447e9da0
GM
30032000-12-01 Gerd Moellmann <gerd@gnu.org>
3004
7708ced0
GM
3005 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
3006 height for YNegative.
3007 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
3008 height; also see comment there.
3009
447e9da0
GM
3010 * window.c (coordinates_in_window): Handle computations for
3011 positions on the vertical bar and fringes differently for
3012 window-system frames. Consider some pixels near the vertical bar
3013 as on the bar if the frame doesn't have vertical scroll bars.
3014 Associate positions between mode or header lines with the
3015 right window, the left one.
3016
86d1db20
JR
30172000-12-01 Jason Rumney <jasonr@gnu.org>
3018
3019 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
3020
3021 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
3022 invalid frame.
3023
a1d58e5b
GM
30242000-12-01 Gerd Moellmann <gerd@gnu.org>
3025
52283633 3026 * window.c (struct saved_window): Add members orig_top and orig_height.
a1d58e5b
GM
3027 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
3028 (save_window_save, Fset_window_configuration): Save/restore
3029 window's orig_top and orig_height.
3030
89c609af
JR
30312000-12-01 Jason Rumney <jasonr@gnu.org>
3032
4d177746 3033 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
86d1db20 3034
89c609af
JR
3035 * w32fns.c (x_set_cursor_color): Fix last change.
3036
eccc05db
GM
30372000-11-30 Gerd Moellmann <gerd@gnu.org>
3038
31b6671b
GM
3039 * xdisp.c (echo_area_display): If cursor is in the echo area, make
3040 sure that the next redisplay displays the minibuffer, so that
3041 the cursor will be replaced with what the minibuffer wants.
3042
eccc05db
GM
3043 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
3044 #ifndef instead of using #if.
3045 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
3046 USE_TOOLKIT_SCROLL_BARS is defined.
3047
162de750
JR
30482000-11-30 Jason Rumney <jasonr@gnu.org>
3049
3050 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
3051 x_display_cursor.
3052
693c4692
GM
30532000-11-30 Gerd Moellmann <gerd@gnu.org>
3054
3055 * fns.c (Fmd5): Doc fix.
3056
b5d8d2ca 30572000-11-30 Simon Josefsson <simon@josefsson.org>
edfb795e
GM
3058
3059 * fns.c (Fmd5): New function.
3060 (syms_of_fns): Defsubr md5.
3061
3062 * Makefile.in (obj): Add md5.o
3063
b02cd40b
GM
30642000-11-30 Gerd Moellmann <gerd@gnu.org>
3065
edfb795e
GM
3066 * md5.h, md5.c: New files, taken from glibc.
3067
df3aedcf
GM
3068 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
3069
b02cd40b 3070 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
52283633 3071 hasn't a font, use that of the frame, as drawing glyphs does.
b02cd40b 3072
8b5176cd
SM
30732000-11-29 Stefan Monnier <monnier@cs.yale.edu>
3074
3075 * eval.c (Frun_hooks): Allow 0 arguments.
3076
346598f1
GM
30772000-11-29 Gerd Moellmann <gerd@gnu.org>
3078
f9396e03
GM
3079 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
3080 is over the menu bar widget, say it's not on the frame.
3081
4a967a9b
GM
3082 * xfns.c (Fx_create_frame): Reintroduce the call to
3083 face-set-after-frame-defaults.
3084
346598f1
GM
3085 * eval.c (Fsignal): Reset handling_signal.
3086
222456a1
JR
30872000-11-28 Jason Rumney <jasonr@gnu.org>
3088
3089 * w32menu.c (add_menu_item): Reset menu item text when changing
3090 type to radio button.
3091
8049ddc0
GM
30922000-11-28 Gerd Moellmann <gerd@gnu.org>
3093
346598f1 3094 * xselect.c: Update copyright.
f4f4ee4d 3095
bebe4a2c
GM
3096 * window.c (coordinates_in_window): If on a mode or header line,
3097 but sufficiently close to its start, return ``on vertical
3098 border''. This gives us a way to drag windows horizontally when
3099 using toolkit scroll bars.
3100
3101 * xterm.c (note_mouse_highlight): Change the cursor shape
3102 on the vertical border between windows.
3103
3104 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
3105
3106 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
3107 (syms_of_xfns): DEFVAR_LISP it.
3108 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
3109
8d2c2642
GM
3110 * textprop.c (text_read_only): New function.
3111 (verify_interval_modification): Use it instead of signaling
3112 `text-read-only'. This makes it easier to catch this error
52283633 3113 with a breakpoint.:
8d2c2642 3114
52283633 3115 * xdisp.c (forward_to_next_line_start): Check for newlines,
8049ddc0
GM
3116 not end of line, which includes CR.
3117
5a2bae6c
KH
31182000-11-28 Kenichi Handa <handa@etl.go.jp>
3119
3120 * coding.c (Ffind_coding_systems_region_internal): Be sure to
3121 include no-conversion.
3122
ae31f84d
JR
31232000-11-27 Jason Rumney <jasonr@gnu.org>
3124
3125 * w32fns.c (w32_load_system_font): Always mark font as double byte
3126 if codepage is unicode.
3127
67f1cf4c
GM
31282000-11-27 Gerd Moellmann <gerd@gnu.org>
3129
4a74d071 3130 * xdisp.c (forward_to_next_line_start): If already on a newline,
52283633 3131 just consume it to avoid unintended skipping over invisible text below.
4a74d071 3132
902ae620
GM
3133 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
3134 `vertical-line', `mode-line' and `header-line' events.
3135
3136 * xdisp.c (try_window_id): Avoid starting to display in the middle
67f1cf4c
GM
3137 of a character, a TAB for instance. This is easier than to set
3138 up the iterator exactly, and it's not a frequent case, so the
3139 additional effort wouldn't really pay off.
3140
c1e279c2
AC
31412000-11-26 Andrew Choi <akochoi@i-cable.com>
3142
67f1cf4c 3143 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
c1e279c2
AC
3144 init_window_once.
3145
a609568a
JR
31462000-11-25 Jason Rumney <jasonr@gnu.org>
3147
52283633
SM
3148 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
3149 Args to window_from_coordinates should be pixel coordinates.
48b21762 3150
a609568a
JR
3151 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
3152 redisplay handles them properly.
3153
a658d039
MB
31542000-11-25 Miles Bader <miles@gnu.org>
3155
3156 * indent.c (compute_motion): Keep pos_byte in sync with pos.
3157
d3416cca
JR
31582000-11-24 Jason Rumney <jasonr@gnu.org>
3159
3160 * w32.c (init_environment): Set LANG environment variable based on
3161 locale settings, if not set.
3162
3163 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
3164 making tool bar smaller. When clearing the frame, also
3165 clear current matrices. Clear frame when tool bar disappears.
3166 Don't use more lines for the tool-bar than is available.
3167 (x_change_window_heights): New function.
3168
ba193890
GM
31692000-11-24 Gerd Moellmann <gerd@gnu.org>
3170
2be8f184
GM
3171 * xdisp.c (init_from_display_pos): If POS says we're already after
3172 an overlay string ending at POS, make sure to pop the iterator
3173 because it will be in front of that overlay string. When POS is
3174 ZV, we've thereby also ``processed'' overlay strings at ZV.
3175
ba193890
GM
3176 * xfaces.c (lface_from_face_name): Function comment fix.
3177
1862a24e
MB
31782000-11-24 Miles Bader <miles@gnu.org>
3179
3180 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
3181 apply `mode-line-inverse-video' -- zero means force display using
3182 the default face, non-zero means display using the specialized face.
3183 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
3184
f07fa1b8
KH
31852000-11-23 Kenichi Handa <handa@etl.go.jp>
3186
3187 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
3188 hard coded `4'.
3189
2bcdf662
EZ
31902000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
3191
3192 * coding.c (decode_coding_emacs_mule): Fix the case of
3193 CODING_EOL_LF, which used uninitialized value of c.
3194
ba8299ff
SM
31952000-11-23 Stefan Monnier <monnier@cs.yale.edu>
3196
3197 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
3198
f4117c4d
GM
31992000-11-22 Gerd Moellmann <gerd@gnu.org>
3200
03e757c1
GM
3201 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
3202 buffer object.
3203
f4117c4d
GM
3204 * frame.h (struct frame): Replace desired_tool_bar_items,
3205 current_tool_bar_items, n_desired_tool_bar_items,
cc362d76 3206 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
f4117c4d
GM
3207
3208 * frame.c (make_frame): Change initialization of tool bar
3209 items accordingly.
3210
3211 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
cc362d76 3212 Change references to members deleted from struct frame to use the
f4117c4d
GM
3213 new ones.
3214
3215 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
52283633 3216 references to members deleted from struct frame to use the new ones.
f4117c4d 3217
52283633 3218 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
f4117c4d
GM
3219
3220 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
3221
3222 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
cc362d76 3223 (note_tool_bar_highlight): Change references to members deleted
f4117c4d
GM
3224 from struct frame to use the new ones.
3225
f8e2f3f2
MB
32262000-11-23 Miles Bader <miles@gnu.org>
3227
3228 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
3229 the face's inverse-video attribute, rather than overriding it.
3230
60e8e0a5
GM
32312000-11-22 Gerd Moellmann <gerd@gnu.org>
3232
3233 * xfns.c (x_set_tool_bar_lines): Clear internal border when
3234 making tool bar smaller.
3235
92dd1b29
DL
32362000-11-22 Dave Love <fx@gnu.org>
3237
3238 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
3239
e672fdce
MB
32402000-11-22 Miles Bader <miles@gnu.org>
3241
3a17d6cc
MB
3242 * keyboard.c (Vminibuffer_message_timeout): New variable.
3243 (command_loop_1): Use it to determine message timeout.
3244 (syms_of_keyboard): Initialize it.
3245
60e8e0a5 3246 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
e672fdce 3247
e9655d81
KH
32482000-11-22 Kenichi Handa <handa@etl.go.jp>
3249
3250 * sysdep.c: Move the code for declaring h_errno after #include
3251 <netdb.h>.
3252
77270fac
GM
32532000-11-21 Gerd Moellmann <gerd@gnu.org>
3254
cd913aae
GM
3255 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
3256 the menu bar when the tooltip is unmapped.
3257
77270fac
GM
3258 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
3259 sole visible buffer when we're currently in the mini-buffer, and
3260 give up if so.
52283633 3261
556635d6
JR
32622000-11-21 Jason Rumney <jasonr@gnu.org>
3263
3264 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
3265 put on the clipboard.
3266 (Fw32_get_clipboard_data): Compare data on clipboard with saved
3267 copy of what Emacs last put there. If they are the same, do not
52283633 3268 use the clipboard copy to avoid losing data due to coding conversions.
556635d6 3269
5b7bde64
MB
32702000-11-22 Miles Bader <miles@gnu.org>
3271
3272 * minibuf.c (Vminibuffer_prompt_properties): New variable.
3273 (syms_of_minibuf): Initialize it.
3274 (read_minibuf): Add properties from Vminibuffer_prompt_properties
3275 to prompt, don't make read-only.
3276
ff23e1dd
GM
32772000-11-21 Gerd Moellmann <gerd@gnu.org>
3278
52283633
SM
3279 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
3280 Add BEFORE/AFTER_POTENTIAL_GC.
3c64f287 3281
7aaf4388
GM
3282 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
3283
f5f47add 3284 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 3285
ff23e1dd
GM
3286 * term.c, cm.c: Don't try to include termcap.h; see comment there.
3287
37c35586
KH
32882000-11-21 Kenichi Handa <handa@etl.go.jp>
3289
3290 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
3291 ... #endif scope.
3292
ff9ab414
GM
32932000-11-20 Gerd Moellmann <gerd@gnu.org>
3294
52283633 3295 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
c51d2b5e
GM
3296 screen supports it.
3297
29a01b72
GM
3298 * s/gnu-linux.h: Don't use `#cpu'.
3299
09dfdf85
GM
3300 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
3301 not defined in mman.h.
3302
52283633 3303 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
ff9ab414
GM
3304 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
3305 and store an index in the XClientMessageEvent. Storing a
3306 Lisp_Object or pointer can fail on a 64 bit system, since X only
3307 transfers 32 bits.
52283633
SM
3308 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
3309
81459ac9
DL
33102000-11-20 Dave Love <fx@gnu.org>
3311
3312 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
3313
56c13ae6
GM
33142000-11-20 Gerd Moellmann <gerd@gnu.org>
3315
3316 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
3317
495a6df3
KH
33182000-11-20 Kenichi Handa <handa@etl.go.jp>
3319
2bcf3714
KH
3320 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
3321 by WIDTH.
3322
495a6df3
KH
3323 * alloc.c (make_string): Fix previous change. Be sure to make
3324 unibyte string correctly.
3325
6d950f4c
GM
33262000-11-19 Gerd Moellmann <gerd@gnu.org>
3327
39b39373
GM
3328 * window.c (Fwindow_list): Change parameter list to be XEmacs
3329 compatible.
3330 (window_list_1): New function.
3331 (window_loop): Use it instead of Fwindow_list.
3332
b95b34e5
GM
3333 * sysdep.c (emacs_ospeed): New variable.
3334 (toplevel): Don't declare ospeed extern.
3335 (init_baud_rate): Use emacs_ospeed instead of ospeed.
3336
3337 * termcap.c (ospeed): Remove.
3338 (tputs) [!emacs]: Remove unused code.
3339 (tgetent): Avoid a compiler warning.
3340
e83dc917
GM
3341 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
3342 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 3343 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
3344
3345 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
3346 removed.
3347 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
3348 Take the X display as additional argument.
3349 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
3350 `Widget' is a pointer type that's not easily stored in Lisp_Object
3351 form in a portable way.
52283633 3352
6d950f4c
GM
3353 * dispnew.c (update_text_area): Fix last change.
3354
e47306e6
GM
33552000-11-18 Gerd Moellmann <gerd@gnu.org>
3356
fb3cd89b
GM
3357 * xdisp.c: Use BINDING_STACK_SIZE throughout.
3358
3359 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
3360 clear current matrices.
3361
edaa9aed
GM
3362 * buffer.c (mmap_enlarge): Don't print a message on stderr
3363 if mapping new memory at the end of the existing region fails.
3364
e47306e6
GM
3365 * dispnew.c (update_text_area): Don't skip over equal glyphs
3366 when the last current glyph overlaps the glyph to its right.
3367
509633e3
MB
33682000-11-18 Miles Bader <miles@gnu.org>
3369
3370 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
3371 lines that *end* with "..." too (that's the most common case!).
3372
d392e9c5
GM
33732000-11-18 Gerd Moellmann <gerd@gnu.org>
3374
67988445
GM
3375 * xdisp.c (resize_mini_window): Temporarily change to the
3376 mini-window's buffer if necessary.
1bfdbe43 3377
d392e9c5
GM
3378 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
3379 the tooltip obscures less text under it.
3380
33812000-11-17 Gerd Moellmann <gerd@gnu.org>
3382
3383 * puresize.h (BASE_PURESIZE): Increase to 700000.
3384
92bb977f
JR
33852000-11-18 Jason Rumney <jasonr@gnu.org>
3386
3387 * w32term.c (w32_draw_bitmap): Use face to set colors.
3388
26fbf20b
DL
33892000-11-17 Dave Love <fx@gnu.org>
3390
3391 * lread.c (Fload): Fix #ifdef for pcc.
3392
100b593b
GM
33932000-11-17 Gerd Moellmann <gerd@gnu.org>
3394
3395 * xdisp.c (pos_visible_p): Compute the default character height
3396 differently.
3397
a288d0d1
GM
33982000-11-16 Gerd Moellmann <gerd@gnu.org>
3399
cac94de6 3400 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
52283633 3401 knowing the line's height; use the default font's height in that case.
cac94de6 3402
a288d0d1
GM
3403 * xfaces.c (weight_table): Add `demi' with the same meaning as
3404 `demibold'.
3405
981fb6f6
KH
34062000-11-16 Kenichi Handa <handa@etl.go.jp>
3407
2cca872d 3408 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
3409 (clear_glyph_row): Delete local static variable null_row.
3410
e5fa381b
JR
34112000-11-15 Jason Rumney <jasonr@gnu.org>
3412
3413 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
3414 (w32_alloc_lighter_color): Use new brightness calculations from
3415 xterm.c. Scale delta to be in the range expected by W32.
3416 (w32_draw_relief_rect): Use frame relief colors.
3417
8e42f043
GM
34182000-11-15 Gerd Moellmann <gerd@gnu.org>
3419
6d133d1f
GM
3420 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
3421 (Qinhibit_default_face_x_resources): New variable.
3422 (syms_of_frame): Initialize it.
3423 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
3424
3425 * xdisp.c (pos_visible_p): Improve function comment.
3426
3427 * lisp.h (BINDING_STACK_SIZE): New macro.
3428
8e42f043
GM
3429 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
3430 reading the directory if readdir returns null and errno is EAGAIN
3431 or EINTR.
3432
e8c87124
SM
34332000-11-14 Stefan Monnier <monnier@cs.yale.edu>
3434
3435 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
3436 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
3437 Set amount_to_scroll to max of dx and scroll_step so that
3438 scroll-conservatively doesn't defeat scroll-step>1.
3439 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
3440 scroll-conservatively for line-at-a-time scrolling.
3441
5f0c971d
GM
34422000-11-14 Gerd Moellmann <gerd@gnu.org>
3443
3444 * window.c (Fpos_visible_in_window_p): Call pos_visible with
3445 extra argument.
3446
3447 * xdisp.c (current_mode_line_height, current_header_line_height):
3448 New variables.
3449 (init_xdisp): Initialize them.
3450 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
3451 and use exact mode line heights if it is set.
3452
3453 * lisp.h (pos_visible_p): Change prototype.
3454
3455 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
3456 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
3457 and current_header_line_height first.
52283633
SM
3458 (current_mode_line_height, current_header_line_height):
3459 Declare extern.
5f0c971d 3460
d7361edf
MB
34612000-11-14 Miles Bader <miles@lsi.nec.co.jp>
3462
3463 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
3464 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
3465 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
3466
ee5e440a
MB
34672000-11-14 Miles Bader <miles@gnu.org>
3468
3469 * xterm.c (x_alloc_lighter_color): Include an additive component
3470 too for dark colors, because FACTOR isn't enough.
3471 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
3472 New macros.
3473
5ca020fc
GM
34742000-11-13 Gerd Moellmann <gerd@gnu.org>
3475
3476 * keyboard.c (show_help_echo): Call message3_nolog with number of
3477 bytes in the help string as 2nd parameter, instead of the number
3478 of characters.
3479
9d348294
MB
34802000-11-13 Miles Bader <miles@gnu.org>
3481
3482 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
3483 (Fload): Use new openp return protocol.
3484 Don't try to use Vload_source_file_function to load .elc files.
3485 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
3486 openp return protocol.
3487 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
3488
1729bb9a
KH
34892000-11-11 Kenichi Handa <handa@etl.go.jp>
3490
4e677396
KH
3491 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
3492
3493 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
3494 Defined these macros.
3495 (NLIST_STRUCT): Avoid re-defining it.
3496
1729bb9a
KH
3497 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
3498 -I/usr/contrib/X11R6/include.
3499 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
3500
a82fe213
JR
35012000-11-10 Jason Rumney <jasonr@gnu.org>
3502
3503 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
3504
3505 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
3506 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
3507
3508 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
3509 (Qw32_charset_vietnamese): New symbol.
3510 (xlfd_charset_of_font): New function.
3511 (w32_load_system_font): Use it.
3512 (x_to_w32_charset): Use Fassoc to find charset info. Special case
3513 when Vw32_charset_info_alist is nil to ensure default face always
3514 has font. Use Fcar and Fcdr for safety.
3515 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
3516 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
3517 pseudo-codepages for special cases.
3518 (w32_to_x_font): New parameter to allow charset portion to be
3519 specified where there is many to one mapping. Callers changed.
3520 (w32_list_fonts): Avoid listing fonts that won't display.
3521
52d89894
GM
35222000-11-10 Gerd Moellmann <gerd@gnu.org>
3523
3524 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
3525 (font_list_1): Renamed from font_list.
3526 (font_list): New function, trying alternative registries from
3527 Vface_alternative_font_registry_alist.
3528 (Finternal_set_alternative_font_registry_alist): New function.
3529 (syms_of_xfaces): Initialize and Staticpro
52283633
SM
3530 Vface_alternative_font_registry_alist.
3531 Defsubr Finternal_set_alternative_font_registry_alist.
52d89894 3532
651cd3da
KR
35332000-11-09 Ken Raeburn <raeburn@gnu.org>
3534
3535 * lisp.h (Flooking_at): Declare.
3536
388ac098
GM
35372000-11-09 Gerd Moellmann <gerd@gnu.org>
3538
778fbc46 3539 * dired.c (directory_files_internal): Fix a braino.
52283633 3540
388ac098
GM
3541 * dired.c (directory_files_internal): Add missing GCPRO's.
3542 Some cleanup.
3543
ecaedde1
GM
35442000-11-08 Gerd Moellmann <gerd@gnu.org>
3545
f7eb32aa
GM
3546 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
3547 (resize_mini_window): Return quickly if Vresize_mini_window is
3548 nil. Don't return if Vmax_mini_window_height is nil.
3549
3550 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
3551 (syms_of_xdisp): Initialize them.
3552 (resize_mini_window): Act according to the setting of
3553 Vresize_mini_window.
3554 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
3555
ecaedde1
GM
3556 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
3557 scroll bar widget after configuring it, so that it will appear at
3558 the right position from the start.
3559 (XTredeem_scroll_bar): Cleaned up.
3560
3747ef2c
KH
35612000-11-08 Kenichi Handa <handa@etl.go.jp>
3562
3563 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 3564 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
3565 division by two.
3566
3567 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
3568
03391420
DL
35692000-11-07 Dave Love <fx@gnu.org>
3570
7758f1c1 3571 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
3572
3573 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
3574
b5de343d
GM
35752000-11-07 Gerd Moellmann <gerd@gnu.org>
3576
acad3c0b
GM
3577 * window.c (Fset_window_configuration): Don't try to preserve
3578 point in the current buffer, if that buffer is displayed in more
3579 than one window.
3580
b5de343d
GM
3581 * xfaces.c (lookup_named_face): If default face isn't realized,
3582 try to realize it. Return -1 if not successful.
3583 (Fx_list_fonts): Handle case that face cannot be determined.
3584 (Fface_font): Likewise.
3585
cdb1fe49
GM
35862000-11-06 Gerd Moellmann <gerd@gnu.org>
3587
3588 * window.c (displayed_window_lines): Detect partially
3589 visible lines at the bottom correctly.
3590
d3a67486
SM
35912000-11-06 Stefan Monnier <monnier@cs.yale.edu>
3592
3593 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
3594 when ensuring we don't do visit in indirect buffer.
3595
ff8dd5d5
KH
35962000-11-06 Kenichi Handa <handa@etl.go.jp>
3597
3598 * composite.h (compose_chars_in_text): Add prototype.
3599
3600 * composite.c (Vcomposition_function_table): New variable.
3601 (Qcomposition_function_table): New variable.
3602 (run_composition_function): Call
3603 Vcompose_chars_after_function with three arguments.
3604 (compose_chars_in_text): New function.
3605 (syms_of_composite): Modified the doc-string of
3606 Vcompose_chars_after_function. Declare composition-function-table
3607 as a lisp variable, and initialize it.
3608
3609 * xfns.c (x_encode_text): Suppress producing escape sequences for
3610 composition.
3611
3612 * xselect.c: Include composite.h.
3613 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
3614
d1145f85
AI
36152000-11-05 Andrew Innes <andrewi@gnu.org>
3616
3617 * w32term.c (x_produce_glyphs): Fix typo in enum name.
3618
3619 * sysdep.c (read_input_waiting): Remove extraneous argument to
3620 read_socket_hook.
3621
3622 * w32fns.c (Fx_server_version): Include w32_build_number in the
3623 return list.
3624
3625 * w32heap.c (w32_build_number): New variable.
3626 (cache_system_info): Set it.
3627
3628 * w32heap.h (w32_build_number): Add extern.
3629
3630 * emacs.c (syms_of_emacs): Update docstring for
3631 system-configuration, to reflect the actual usage on MS-Windows.
3632
e85ee976
GM
36332000-10-31 Gerd Moellmann <gerd@gnu.org>
3634
26dcb81b
GM
3635 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
3636 process idle timers while waiting for another event.
3637
52283633 3638 * dispnew.c (update_frame_line): Handle case where spaces in
0a894bad
GM
3639 the default face are colored.
3640
e85ee976
GM
3641 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
3642 window height hasn't changed.
3643
01b220b6
JR
36442000-10-31 Jason Rumney <jasonr@gnu.org>
3645
3646 * w32term.c (x_produce_glyphs): Handle composite characters.
3647 (x_draw_glyph_string_foreground)
3648 (x_draw_composite_glyph_string_foreground): Restore old font.
3649
4e6b7204
MB
36502000-10-31 Miles Bader <miles@lsi.nec.co.jp>
3651
3652 * minibuf.c (read_minibuf): Reset the undo history just before
3653 starting the recursive-edit.
3654
d4358b37
GM
36552000-10-30 Gerd Moellmann <gerd@gnu.org>
3656
563f68f1
GM
3657 * xfaces.c (menu_face_change_count): New variable.
3658 (Finternal_set_lisp_face_attribute): Increment it for changes
3659 of the `menu' face.
3660 (realize_basic_faces): Reflect changes in the `menu' faces
3661 in menu bars.
3662
82e274d1
GM
3663 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
3664 dy obtained from the iterator's y-position after moving from
3665 scroll_margin_pos to PT; see comment there.
52283633 3666
0dbf9fd2
GM
3667 * xdisp.c (safe_eval_handler): Call add_to_log.
3668
906b3b14
GM
3669 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
3670 is not a symbol or string.
3671
d4358b37
GM
3672 * xdisp.c (echo_area_display): Don't perform a display update from
3673 inside redisplay. The update will happen anyway at the end of
3674 redisplay, and it can confuse redisplay (GC messages while
3675 redisplaying, for instance.)
3676
70c825df
SM
36772000-10-30 Stefan Monnier <monnier@cs.yale.edu>
3678
cf9b4b0b
SM
3679 * xrdb.c (x_load_resources): Use the class name in the defaults.
3680
70c825df
SM
3681 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
3682 (regex_compile): Catch bogus \(\1\).
3683
a1d34b1e
GM
36842000-10-30 Gerd Moellmann <gerd@gnu.org>
3685
cae71efe
GM
3686 * xterm.c (x_alloc_nearest_color): Fix last change to compare
3687 RGB values.
52283633 3688
35efe0a1
GM
3689 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
3690 we have a color cache, check that the cached color equals the
3691 allocated color. If not, clear the color cache.
3692
1d3baf74
GM
3693 * window.c (displayed_window_lines): Change buffers if necessary.
3694 Fix computation of displayed lines.
3695
a1d34b1e
GM
3696 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
3697 update_menu_bindings to DEFVAR_BOOL.
3698
70737ea9
KH
36992000-10-30 Kenichi Handa <handa@etl.go.jp>
3700
70c825df 3701 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 3702
fa0cb51d
KH
3703 * puresize.h (BASE_PURESIZE): Increase to 680000.
3704
70737ea9
KH
3705 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
3706
0e4c08e8
JR
37072000-10-29 Jason Rumney <jasonr@gnu.org>
3708
3709 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
3710
3711 * w32term.c (w32_bdf_per_char_metric): Negate descent.
3712 (w32_cache_char_metrics): Handle possibility that 'x' does not
3713 exist in a BDF font.
3714 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
3715
3716 * w32bdf.h (bdffont): Add nchars.
3717
3718 * w32bdf.c (set_bdf_font_info): Set it.
3719 (w32_BDF_TextOut): Swap byte order of double byte characters.
3720 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
3721
45b84006
EZ
37222000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
3723
3724 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
3725 don't override the colors in frame's param_alist, unless they are
3726 unspecified.
3727
3728 * term.c (reassert_line_highlight): If inverse_video is non-zero,
3729 reverse the effect of the highlight flag.
3730
caf9deee
KR
37312000-10-27 Ken Raeburn <raeburn@gnu.org>
3732
3733 * window.h (Fwindow_live_p): Declare.
3734
ae0b9b46
KR
3735 * undo.c (record_delete): Check that last_undo_buffer is really a
3736 buffer before applying XBUFFER to it.
3737
3738 * keymap.c (where_is_internal): Pass lisp object, not integer, to
3739 Faref.
3740
02067692
SM
37412000-10-27 Stefan Monnier <monnier@cs.yale.edu>
3742
3743 * lisp.h (KEYMAPP): New macro.
3744 (get_keymap): Remove.
3745 (get_keymap_1): Rename get_keymap.
3746
3747 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
3748
3749 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
3750
3751 * xmenu.c (single_submenu): Use KEYMAPP.
3752 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
3753 Use KEYMAPP rather than Fkeymapp.
3754
3755 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
3756
3757 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
3758 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
3759 Use KEYMAPP rather than Fkeymapp.
3760 (single_submenu): Use KEYMAPP.
3761 (w32_menu_show, w32_dialog_show): Use TRUE.
3762
3763 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
3764
3765 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
3766 (Fkeymapp): Use KEYMAPP.
3767 (get_keymap): Rename from get_keymap_1. Remove old def.
3768 Return t when autoload=0 and error=0 and the keymap needs autoloading.
3769 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
3770 (Fminor_mode_key_binding): Don't raise an error if the binding
3771 is not a keymap.
3772 (Fuse_global_map, Fuse_local_map): Allow autoloading.
3773 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
3774
3775 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
3776 Allow Vspecial_event_map to be autoloaded.
3777 (menu_bar_items): Fetch the keymap rather than using keymapp.
3778 (menu_bar_one_keymap): No need to follow func-indirect any more.
3779 (parse_menu_item): get_keymap_1 -> get_keymap.
3780 (tool_bar_items): Fetch the keymap rather than using keymapp.
3781 (read_key_sequence): Use KEYMAPP.
3782
3783 * intervals.c (get_local_map): Use get_keymap rather than following
3784 function-indirections explicitly.
3785
3786 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
3787
f9d80af3
JR
37882000-10-27 Jason Rumney <jasonr@gnu.org>
3789
3790 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
3791 point, as Windows has oversized fonts.
3792
3793 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
3794
a3ba27da
GM
37952000-10-27 Gerd Moellmann <gerd@gnu.org>
3796
3797 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
3798 (freehook, reallochook): Handle null pointer arguments.
3799 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
3800
aa3b80cc
SM
38012000-10-27 Stefan Monnier <monnier@cs.yale.edu>
3802
3803 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
3804 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
3805 Giving in to popular pressure to shut up the compiler with casts.
3806
e24e84cc
GM
38072000-10-27 Gerd Moellmann <gerd@gnu.org>
3808
3809 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
3810 signed value, and use a default value computed from the font's
3811 maximum descent.
3812
05ea7ef2
MB
38132000-10-27 Miles Bader <miles@lsi.nec.co.jp>
3814
3815 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
3816 that specify a negative underline position can still use underlines.
3817
3818 * window.c (Fpos_visible_in_window_p): Make POS default to
3819 WINDOW's point, not the current buffer's point.
3820
0b95284b
DL
38212000-10-26 Dave Love <fx@gnu.org>
3822
3823 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
3824 when it's necessary.
3825
6c5b90af
GM
38262000-10-26 Gerd Moellmann <gerd@gnu.org>
3827
8b6d9dc9
GM
3828 * window.c (size_window): Compute size difference from sum of old
3829 child window sizes instead of from parent's size.
3830
6bc92b2e
GM
3831 * xdisp.c (pos_visible_p): Change current buffer if necessary.
3832 Handle obscured lines at the top of the window.
3833
3834 * frame.c (Fdelete_frame): Doc fix. Move running the hook
3835 down after the last error condition check.
3836
6c5b90af
GM
3837 * frame.c (Fdelete_frame): Run delete-frame-hook.
3838
42f92d4d
KH
38392000-10-26 Kenichi Handa <handa@etl.go.jp>
3840
3841 * coding.c (decode_coding): Fix previous change (check also
3842 CODING_MODE_LAST_BLOCK).
3843
d97151cb
SM
38442000-10-25 Stefan Monnier <monnier@cs.yale.edu>
3845
e7efc503
SM
3846 * regex.c: More `unsigned char' -> `re_char' changes.
3847 Also change several `int' into `re_wchar_t'.
3848 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
3849 (PUSH_FAILURE_POINTER): Don't cast any more.
3850 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
3851 We want GCC to complain, since this piece of code makes
3852 re_match non-reentrant, which *should* be fixed.
3853 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
3854 (EXTEND_BUFFER): Use RETALLOC.
3855 (SET_LIST_BIT): Don't cast.
3856 (re_wchar_t): New type.
3857 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
3858 that those two functions will always properly return.
3859 (IMMEDIATE_QUIT_CHECK): Cast to void.
3860 (analyse_first): Use recursion rather than an explicit stack.
3861 (re_compile_fastmap): Can't fail anymore.
3862 (re_search_2): Don't check re_compile_fastmap for failure.
3863 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
3864 Now also sets the new value (passed in a new argument).
3865 (re_match_2_internal): Use it.
3866 Also, use a new var `reg' of type size_t when looping through regs
3867 rather than reuse the inappropriate `mcnt'.
3868
d97151cb
SM
3869 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
3870 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
3871 (where_is_internal): Renamed from Fwhere_is_internal.
3872 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
3873 (Fwhere_is_internal): New function wrapping where_is_internal.
3874 (where_is_internal_1): Handle the case where we're filling the cache.
3875 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
3876
d5789b65
MB
38772000-10-25 Miles Bader <miles@gnu.org>
3878
3879 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
3880
4ecda532
GM
38812000-10-25 Gerd Moellmann <gerd@gnu.org>
3882
3883 * window.c (pos_fully_visible_p): Removed.
3884 (Fpos_visible_in_window_p): Use pos_visible_p to determine
3885 if position is visible and/or fully visible.
3886
3887 * lisp.h (pos_visible_p): Add prototype.
3888
3889 * xdisp.c (pos_visible_p): New function.
3890
68c3a137
KH
38912000-10-25 Kenichi Handa <handa@etl.go.jp>
3892
3893 * process.c (send_process): If OBJECT is t, it means that the data
3894 is from C string, but we should encode it. Before calling
3895 setup_raw_text_coding_system, be sure to flush out data by the
3896 previous coding system.
3897
7ae1c032
MB
38982000-10-25 Miles Bader <miles@lsi.nec.co.jp>
3899
ff4dcd4b
MB
3900 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
3901 assignment of startpos to prev when startpos == pos.
3902
7ae1c032
MB
3903 * editfns.c (find_field): Set the field stickiness correctly from
3904 overlay fields. Use renamed `text_property_stickiness'.
3905 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 3906 Only check text properties, not overlays.
7ae1c032
MB
3907 * textprop.c (get_char_property_and_overlay): New function.
3908 (Fget_char_property): Use it.
3909 * intervals.h (get_char_property_and_overlay): Add declaration.
3910
49801145
SM
39112000-10-25 Stefan Monnier <monnier@cs.yale.edu>
3912
3913 * keymap.c: Use AREF, ASET and ASIZE macros.
3914 (Fmake_sparse_keymap): Docstring fix.
3915 (synkey): Remove.
3916 (shadow_lookup): Move up.
3917 Handle the case where lookup-key returns an integer.
3918 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
3919 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
3920 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
3921 Simplify/rewrite the keymap-finding code.
3922 Add check for command shadowing, using shadow_lookup.
3923
39e776cd
SM
39242000-10-24 Stefan Monnier <monnier@cs.yale.edu>
3925
3926 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
3927 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
3928 a symbol.
3929
2488aba5
AI
39302000-10-24 Andrew Innes <andrewi@gnu.org>
3931
3932 * dired.c (directory_files_internal_unwind): New function.
3933 (directory_files_internal): Use it to ensure closedir is called
3934 even if expand-file-name or file-attributes throw, eg. because of
3935 a user interrupt. Also enable immediate_quit while calling
3936 re_search, so that matching can be interrupted as well.
3937
b94fdf61
AI
39382000-10-24 Andrew Innes <andrewi@gnu.org>
3939
3940 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
3941 NT-Emacs only.
3942 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
3943 so that re_search functions only quit when callers expect them to.
3944
39452000-10-24 Kenichi Handa <handa@etl.go.jp>
3946
3947 * regex.c (regex_compile): Change the way of handling a range from
3948 a char less than 256 to a char not less than 256.
3949
1946f901
GM
39502000-10-24 Gerd Moellmann <gerd@gnu.org>
3951
7ae2f10f
GM
3952 * window.c (size_window): Prevent setting window's width or
3953 height to a negative value (esp. with XSETFASTINT).
3954
5dcab13e
GM
3955 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
3956 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
3957 (protect_malloc_state) [GC_MALLOC_CHECK &&
3958 GC_PROTECT_MALLOC_STATE]: New function.
3959 (PROTECT_MALLOC_STATE): New macro.
3960 (__malloc_initialize, morecore, _malloc_internal)
3961 (_free_internal) _realloc_internal): Use it to make _heapinfo
3962 read-only outside of gmalloc.
3963
63e1b552
GM
3964 * keymap.c: Update copyright.
3965
1946f901
GM
3966 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
3967 a symbol.
3968
4fa09beb
GM
39692000-10-24 Colin Walters <walters@cis.ohio-state.edu>
3970
3971 * filelock.c (unlock_all_files): Use unlock_file to expand each
3972 buffer's file_truename before trying remove its lock file.
3973
23afac01
EZ
39742000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
3975
3976 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
3977 or CRLF, decode EOLs.
3978
04448b95
KH
39792000-10-24 Kenichi Handa <handa@etl.go.jp>
3980
3981 * window.c (Fdisplay_buffer): Fix doc.
3982
3090a5a5
JR
39832000-10-23 Jason Rumney <jasonr@gnu.org>
3984
3985 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
3986 ASCII font of default fontset on Windows.
3987
3988 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
3989 xterm.c comment below).
3990
3991 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
3992
a83fee2c
GM
39932000-10-23 Gerd Moellmann <gerd@gnu.org>
3994
3995 * xterm.c (x_connection_closed): Reset handling_signal.
3996
52283633 3997 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
a83fee2c 3998
6ffdb539
MB
39992000-10-23 Miles Bader <miles@gnu.org>
4000
4001 * window.c (window_scroll_pixel_based, window_scroll_line_based):
4002 Pass nil for FULLY argument to Fpos_visible_in_window_p to
4003 maintain old behavior.
4004 * minibuf.c (Fminibuffer_complete): Likewise.
4005
7f1c969b
MB
40062000-10-23 Miles Bader <miles@lsi.nec.co.jp>
4007
4008 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
4009 that when a font can't be exactly centered, it errs up rather than
4010 down.
4011
23afac01 40122000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd 4013
52283633 4014 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
8ec118cd 4015
1a578e9b
AC
40162000-10-23 Andrew Choi <akochoi@i-cable.com>
4017
4018 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
4019
4020 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 4021 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
4022
4023 * emacs.c (main) [macintosh]: Call syms_of_textprop,
4024 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
4025 syms_of_search, x_term_init, and init_keyboard before calling
4026 init_window_once. Also, call syms_of_xmenu.
4027
4028 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
4029 default fontset to Monaco.
4030
4031 * frame.c [macintosh]: Include macterm.h. Remove declarations of
4032 NewMacWindow and DisposeMacWindow.
4033 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
4034 instead of calling NewMacWindow and setting fields of
4035 f->output_data.mac directly. Call init_frame_faces.
4036 (Fdelete_frame) [macintosh]: Remove unused code.
4037 (Fmodify_frame_parameters) [macintosh]: Call
4038 x_set_frame_parameters instead of mac_set_frame_parameters.
4039
4040 * frame.h [macintosh]: Define menu_bar_lines field in struct
4041 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
4042
4043 * keyboard.c [macintosh]: Include macterm.h.
4044 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
4045 and menu_bar_activate_event type events as for X and NT.
4046 (make_lispy_event) [macintosh]: Construct lisp events of type
4047 MENU_BAR_EVENT as for X and NT.
4048
4049 * sysdep.c [macintosh]: Remove declaration for sys_signal.
4050 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
4051 (sys_subshell) [macintosh]: Remove definition entirely.
4052 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
4053 Vwindow_system_version here. Remove initialization of
4054 Vx_bitmap_file_path.
4055 (read_input_waiting): Correct the number of parameters passed to
4056 read_socket_hook.
4057 Move all Macintosh functions to mac/mac.c.
4058
4059 * term.c [macintosh]: Include macterm.h.
4060
4061 * window.c [macintosh]: Include macterm.h.
4062
4063 * xdisp.c [macintosh]: Include macterm.h. Declare
4064 set_frame_menubar and pending_menu_activation.
4065 (echo_area_display) [macintosh]: Do not return if terminal frame
4066 is the selected frame.
4067 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
4068 Allow only the selected frame to set menu bar.
4069 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
4070 calling FRAME_EXTERNAL_MENU_BAR (f).
4071 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
4072
4073 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
4074 and check_x. Declare XCreateGC. Define x_create_gc and
4075 x_free_gc. Initialize font_sort_order.
4076 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
4077 but call x_list_fonts instead of w32_list_fonts.
4078 (Finternal_face_x_get_resource) [macintosh]: Do not call
4079 display_x_get_resource.
4080 (prepare_face_for_display) [macintosh]: Set xgcv.font.
4081 (realize_x_face) [macintosh]: Load the font if it is specified in
4082 ATTRS.
52283633 4083 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
1a578e9b 4084
1ffbabe3
SM
40852000-10-22 Stefan Monnier <monnier@cs.yale.edu>
4086
4087 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
4088 is nil: since we go to the end of submap anyway, we'd end up
4089 setting nil to nil.
4090 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
4091 doesn't obey autoload.
4092
bed43f1d
EZ
40932000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
4094
1ffbabe3 4095 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 4096
ea4233a7
JR
40972000-10-21 Jason Rumney <jasonr@gnu.org>
4098
4099 * w32term.c (w32_cache_char_metrics): Double check that font is
4100 really fixed pitch before trusting tmPitchAndFamily.
4101
f3d3c491
AI
41022000-10-21 Andrew Innes <andrewi@gnu.org>
4103
4104 * w32gui.h (w32_char_font_type): Move enum from w32term.c
4105
4106 * w32term.h: Extern decl for w32_cache_char_metrics.
4107
4108 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
4109
4110 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
4111 (w32_unload_font): Free per_char array if present.
4112
4113 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
4114 cached information in emulated XFontStruct to handle common cases
4115 quickly. Do not allocate XCharStruct for return.
4116 (w32_native_per_char_metric): New function.
4117 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
4118 allocating one.
4119 (x_produce_glyphs): Don't get an HDC. Change calls to
4120 w32_per_char_metric to match arg change above. Remove calls to
4121 free results.
4122 (w32_get_glyph_overhangs): Ditto.
4123 (w32_cache_char_metrics): New function.
4124
4125 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
4126 ($(BLD)/casefiddle.$(O)): Remove compile command.
4127 ($(BLD)/gmalloc.$(O)): Remove compile command.
52283633
SM
4128 ($(BLD)/dispnew.obj):
4129 ($(BLD)/keyboard.obj):
4130 ($(BLD)/w32inevt.obj):
4131 ($(BLD)/w32bdf.obj):
4132 ($(BLD)/alloc.obj):
4133 ($(BLD)/buffer.obj):
4134 ($(BLD)/editfns.obj):
4135 ($(BLD)/emacs.obj):
4136 ($(BLD)/fileio.obj):
4137 ($(BLD)/fns.obj):
4138 ($(BLD)/indent.obj):
4139 ($(BLD)/insdel.obj):
4140 ($(BLD)/intervals.obj):
4141 ($(BLD)/minibuf.obj):
4142 ($(BLD)/print.obj):
4143 ($(BLD)/scroll.obj):
4144 ($(BLD)/sysdep.obj):
4145 ($(BLD)/textprop.obj):
4146 ($(BLD)/widget.obj):
f3d3c491
AI
4147 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
4148 ($(BLD)/term.obj): Add dependency on dispextern.h.
4149
52283633
SM
4150 * makefile.nt ($(BLD)\dispnew.obj):
4151 ($(BLD)\keyboard.obj):
4152 ($(BLD)\w32inevt.obj):
4153 ($(BLD)\w32bdf.obj):
4154 ($(BLD)\alloc.obj):
4155 ($(BLD)\buffer.obj):
4156 ($(BLD)\editfns.obj):
4157 ($(BLD)\emacs.obj):
4158 ($(BLD)\fileio.obj):
4159 ($(BLD)\fns.obj):
4160 ($(BLD)\indent.obj):
4161 ($(BLD)\insdel.obj):
4162 ($(BLD)\intervals.obj):
4163 ($(BLD)\minibuf.obj):
4164 ($(BLD)\print.obj):
4165 ($(BLD)\scroll.obj):
4166 ($(BLD)\sysdep.obj):
4167 ($(BLD)\textprop.obj):
4168 ($(BLD)\widget.obj):
f3d3c491
AI
4169 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
4170 ($(BLD)\term.obj): Add dependency on dispextern.h
4171
18ad4821
EZ
41722000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
4173
4174 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
4175 with an additional argument of Qt.
4176
de54681a
MB
41772000-10-21 Miles Bader <miles@gnu.org>
4178
4179 * window.c (pos_fully_visible_in_window_p): New function.
4180 (Fpos_visible_in_window_p): Add FULLY argument.
4181 Use pos_fully_visible_in_window_p.
4182 (window_scroll_pixel_based, window_scroll_line_based): Update
4183 calls to Fpos_visible_in_window_p.
4184 * lisp.h (Fpos_visible_in_window_p): Update prototype
4185
13c844fb
GM
41862000-10-20 Gerd Moellmann <gerd@gnu.org>
4187
4188 * alloc.c (toplevel): Conditionalize compilation of mem_*
4189 functions differently.
52283633 4190
d9506268
JR
41912000-10-20 Jason Rumney <jasonr@gnu.org>
4192
4193 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
4194 mem_init where it used to be. mem_z etc not defined otherwise.
4195
8094989b
GM
41962000-10-20 Gerd Moellmann <gerd@gnu.org>
4197
4198 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
4199 GC_MALLOC_CHECK.
4200 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
4201 structure definition and related variabled to the top of the file.
4202 Include this code when GC_MALLOC_CHECK is defined.
4203 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
4204 register/unregister allocated region.
4205 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
4206 which isn't allocated.
4207 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
4208 something which is already in use.
4209 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
4210 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
4211 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
4212 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
4213
4214 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
4215 _malloc_internal instead of malloc.
4216 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
4217 of free.
4218
ea456eb4
AI
42192000-10-20 Andrew Innes <andrewi@gnu.org>
4220
4221 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
4222 Windows.
4223 (my_strftime) <macro>: Don't use macro arg list when redefining as
4224 _strftime_copytm.
4225 (my_strftime) <function>: Supply 0 as ut argument.
4226
e64c3a75
JR
42272000-10-19 Jason Rumney <jasonr@altavista.net>
4228
4229 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
4230 including dispextern.h, as it stops faces from working.
4231
4232 * w32fns.c (Fx_create_frame): Don't bother calling
4233 face-set-after-frame-default since the caller does it for us
4234 anyway. Clean up calls to x_get_arg to be consistent with X.
4235
4236 * w32term.c (x_produce_glyphs): Handle
4237 unibyte_display_via_language_environment correctly.
4238 (w32_draw_box_rect): Fix the calculation of width and height.
4239
4240 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
4241 as it has stopped working.
4242 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
4243 menu-bar.
4244
17401c97
GM
42452000-10-19 Gerd Moellmann <gerd@gnu.org>
4246
4247 * eval.c (skip_debugger): Prevent a compiler warning.
4248 (Fcondition_case): Likewise.
4249 (Fbacktrace_frame): Use a null interactive spec.
4250
773272d8
KH
42512000-10-19 Kenichi Handa <handa@etl.go.jp>
4252
4253 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
4254
a42943e9
GM
42552000-10-18 Gerd Moellmann <gerd@gnu.org>
4256
e50517d9
GM
4257 * strftime.c: Sync with glibc, file version 1.78.
4258 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
4259 should no longer be used according to ISO 8601.
4260
9035a35a
GM
4261 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
4262 no map for meta_prefix_char, don't try to use it as a keymap.
4263 Instead, if T_OK is non-zero, look up a default binding, if any,
4264 otherwise, if T_OK is zero, return nil.
4265
a42943e9
GM
4266 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
4267 (x_to_xcolors, png_load): Use x_query_color.
4268
52283633
SM
4269 * xterm.c (x_color_cells, x_query_colors, x_query_color):
4270 New functions.
a42943e9
GM
4271 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
4272 which can be slow.
4273 (x_copy_color, x_alloc_lighter_color): Likewise.
4274
4275 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
4276 (x_query_color, x_query_colors): Add prototype.
4277
4278 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
4279 check_string_bytes only if not noninteractive, increase count to 50.
4280
00de2987
MB
42812000-10-18 Miles Bader <miles@lsi.nec.co.jp>
4282
4283 * insdel.c (adjust_markers_for_delete): Handle before-insertion
4284 markers correctly.
4285
54918e2b
GM
42862000-10-17 Gerd Moellmann <gerd@gnu.org>
4287
1f0b3fd2
GM
4288 * alloc.c (pure_bytes_used): Renamed from pureptr.
4289 (ALIGN): New macro.
4290 (pure_alloc): New function.
4291 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
4292 Use it.
4293 (Fpurecopy): Use PURE_POINTER_P.
4294
68c5d1db
GM
4295 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
4296 PT has moved backward.
52283633 4297
9a038881
GM
4298 * xdisp.c (cursor_row_p): Take continued lines into account.
4299
361b097f
GM
4300 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
4301 string's size_byte.
4302 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
4303 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
4304 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
4305 string allocated.
4306
54918e2b
GM
4307 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
4308 of selective display off while searching for the next line start.
4309
03ed0806
KH
43102000-10-17 Kenichi Handa <handa@etl.go.jp>
4311
4312 * Makefile.in (term.o): Depend on dispextern.h.
4313
7e05cdaf
SM
43142000-10-16 Stefan Monnier <monnier@cs.yale.edu>
4315
4316 * keymap.c (keymap_memberp): Ensure that nil is not a member.
4317
a6801fd1
GM
43182000-10-16 Gerd Moellmann <gerd@gnu.org>
4319
483de32b
GM
4320 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
4321 the iterator at the beginning, so that they can be set later on,
4322 for instance in reseat_at_next_visible_line_start, without being
4323 overwritten.
4324
a6801fd1
GM
4325 * xfns.c (pbm_format): Add :foreground and :background keywords.
4326 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
52283633 4327 (xbm_load): Recognize foreground and background color specifications.
a6801fd1 4328
dbf1fcc1
EZ
43292000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
4330
4331 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
4332
52283633 4333 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
dbf1fcc1
EZ
4334
4335 * msdos.c (IT_set_face): Compare highlighted face with the default
4336 face, and invert colors if these faces' colors are identical.
4337 (Fmsdos_remember_default_colors): Don't swap foreground and
4338 background colors in initial_colors[].
4339 (IT_set_frame_parameters): Don't swap frame's foreground and
4340 background pixels. If ALIST includes "(reverse . t)", swap
4341 foreground-color and background-color properties in frame's
4342 param_alist. If the original frame's param_alist doesn't specify
4343 the colors, store unspecified-fg and unspecified-bg, reversed if
4344 required.
4345
4346 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
4347 the colors are unspecified and reversed, reverse fore- and back-
4348 ground in the returned value.
4349 (Fframe_parameter): Ditto.
4350
b41fe2c3 43512000-10-16 Gerd Moellmann <gerd@gnu.org>
52283633 4352
3a6b59d9
GM
4353 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
4354 get_last_unchanged_at_beg_row.
4355 (find_first_unchanged_at_end_row): Renamed from
4356 get_first_unchanged_at_end_row.
4357 (find_first_unchanged_at_end_row): Convert assertions to
4358 unconditional tests which abort. When looking for a row in
4359 unchanged text, don't go further back than first_text_row.
4360
b41fe2c3
GM
4361 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
4362 Don't add in the last line's height when deciding if the new
4363 position is below the scroll margin.
9d1af64f 4364
b41fe2c3 43652000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
4366
4367 * editfns.c (Fconstrain_to_field): Check carefully for field
4368 boundaries if either OLD_POS or NEW_POS has a non-nil field
4369 property, even if they're the same.
4370
c412cb7b
KH
43712000-10-16 Kenichi Handa <handa@etl.go.jp>
4372
4373 * xterm.c (x_draw_box_rect): Fix the calculation of width and
4374 height for XFillRectangle.
4375
5586f3eb
SM
43762000-10-15 Stefan Monnier <monnier@cs.yale.edu>
4377
4378 * syntax.c (Fstring_to_syntax): New function extracted from
4379 Fmodify_syntax_entry.
4380 (Fmodify_syntax_entry): Use it and document the ! and | fences.
4381 (skip_chars, Fforward_comment): Remove unused variables.
4382 (syms_of_syntax): Add defsubr for string-to-syntax.
4383 (describe_syntax): Add code for comment and string fences.
4384
db785038
SM
43852000-10-14 Stefan Monnier <monnier@cs.yale.edu>
4386
4387 * keymap.c (access_keymap): Add AUTOLOAD parameter.
4388 Do the meta->esc mapping. Call get_keyelt before returning.
4389 Start scanning from the second element (the first is always `keymap')
4390 to make it easier to detect when we reach a parent map.
4391 Handle the case of inheriting from a symbol whose function is a map.
4392 (Fkeymap_parent): Also handle the `inherit from symbol' case.
4393 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
4394 (get_keyelt, Flookup_key): Update call to access_keymap.
4395 Remove the meta->esc mappings.
4396 (define_as_prefix): Delete old disabled code.
4397 (menu_item_p): New function.
4398 (where_is_internal_1): Skip over the few remaining menu items.
4399 * lisp.h (access_keymap): Update prototype.
4400 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
4401 Update call to access_keymap.
4402 (follow_key, read_key_sequence): Update calls to access_keymap.
4403 Remove the meta->esc mappings.
4404
cafafe0b
GM
44052000-10-13 Gerd Moellmann <gerd@gnu.org>
4406
a2e2a7f6
GM
4407 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
4408 with additional argument.
4409
cafafe0b
GM
4410 * xdisp.c (cursor_row_p): New function.
4411 (try_cursor_movement, display_line): Use it.
52283633 4412
cafafe0b
GM
4413 * xdisp.c (append_space): Also save/restore iterator's current
4414 character and its length.
4415
4416 * xdisp.c (init_from_display_pos): Add an assertion.
4417 (handle_stop): Don't set iterator's add_overlay_start.
4418 (handle_invisible_prop): Likewise.
4419 (load_overlay_strings): If text under an overlay is invisible,
4420 take both before- and after-strings into account when the iterator
4421 is positioned either at the start or at the end of the overlay.
4422 (forward_to_next_line_start): Rewritten.
4423 (reseat_at_next_visible_line_start): Rewritten.
4424 (set_iterator_to_next): Add parameter RESEAT_P.
4425
4426 * dispextern.h (struct it): Remove member add_overlay_start.
4427 (set_iterator_to_next): Change prototype.
4428
c744452b
KH
44292000-10-13 Kenichi Handa <handa@etl.go.jp>
4430
4431 * coding.c (code_convert_region): Be sure to initialize
4432 coding->category_idx.
e4a3f4e1
KH
4433 (decode_coding_string): Set coding->src_multibyte and
4434 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
4435 (encode_coding_string): Set coding->src_multibyte and
4436 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 4437
321fd26f
SM
44382000-10-12 Stefan Monnier <monnier@cs.yale.edu>
4439
4440 * xfns.c (Fx_create_frame): Don't bother calling
4441 face-set-after-frame-default since the caller does it for us anyway.
4442
76832439
EZ
44432000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
4444
4445 * window.c (coordinates_in_window): Fix detection of vertical line
4446 on character terminals.
4447
2483cf58
GM
44482000-10-12 Gerd Moellmann <gerd@gnu.org>
4449
4450 * editfns.c (save_excursion_save): Additionally record the
4451 selected window.
4452 (save_excursion_restore): If buffer was visible in a window, and a
4453 different window was selected, and the old selected window is
4454 still live, restore point in that window.
4455
eb991b25
KH
44562000-10-12 Kenichi Handa <handa@etl.go.jp>
4457
8a0eba09
KH
4458 * xterm.c (x_produce_glyphs): Handle
4459 unibyte_display_via_language_environment correctly.
4460
20401fcc
KH
4461 * regex.c (regex_compile): Change the way of handling a range from
4462 unibyte char to multibyte char.
4463
4464 * syntax.c (skip_chars): Change the way of handling a range from
4465 unibyte char to multibyte char.
4466
eb991b25
KH
4467 * process.c (read_process_output): Cancel previous change.
4468
365dd325
EZ
44692000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
4470
c1b096cb
EZ
4471 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
4472
365dd325
EZ
4473 * charset.c (Ffind_charset_string): Doc fix.
4474 (Ffind_charset_region): Doc fix.
4475
eb483c2b
KH
44762000-10-11 Kenichi Handa <handa@mule.m17n.org>
4477
4478 * process.c (read_process_output): Fix previous change. Adjust
4479 multibyteness of text to insert in a buffer by
52283633 4480 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
eb483c2b 4481
b40bfb99
AS
44822000-10-10 Andreas Schwab <schwab@suse.de>
4483
4484 * alloc.c (mark_object): Remove all workarounds installed on
4485 1993-08-08.
4486
caff31d4
KH
44872000-10-10 Kenichi Handa <handa@etl.go.jp>
4488
52283633 4489 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
caff31d4
KH
4490 (base64_encode_1): Make it work for a text of multibyte form.
4491 (Fbase64_decode_region): Allocate sufficient memory for multibyte
4492 case. Don't call str_to_multibyte because base64_decode_1
4493 produces correct multibyte form for eight-bit codes.
52283633 4494 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
caff31d4
KH
4495 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
4496 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
4497 codes.
4498
4499 * charset.h (CHAR_STRING): Optimized for single byte characters.
4500
cba026ef
AS
45012000-10-09 Andreas Schwab <schwab@suse.de>
4502
4503 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
4504 -1 after socket is closed, to fall through to error processing.
4505
1e21fe48
EZ
45062000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
4507
4508 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 4509 variables. If ALIST includes foreground-color or
1e21fe48
EZ
4510 background-color, change also the colors of the default face for
4511 this frame.
4512
a640322e
EZ
45132000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
4514
4515 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
4516 them extern (they are defined on xfaces.c).
4517 (syms_of_msdos): Don't intern and don't staticpro
4518 Qbackground_color and Qforeground_color.
4519
a115794c
EZ
45202000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
4521
4522 * frame.c (Fframe_parameter): For non-windowed frames, if
4523 f->param_alist says foreground or background color is unspecified,
4524 call tty_color_name to return the color name computed from the
4525 frame's current colors.
4526
f5533b63
DL
45272000-10-06 Dave Love <fx@gnu.org>
4528
4529 * terminfo.c (ospeed): Don't declare.
4530
4531 * sysdep.c: Don't include string.h.
4532 (h_errno): Declare conditional also on TRY_AGAIN.
4533
4534 * charset.c (Ffind_charset_string): Doc fix.
4535
52283633 4536 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
f5533b63
DL
4537 (Fbase64_decode_region, Fbase64_decode_string): More explicit
4538 error messages.
4539
2b06561a
DL
45402000-10-05 Dave Love <fx@gnu.org>
4541
4542 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
4543 position like menu-bar.
4544
ca839c85
GM
45452000-10-05 Gerd Moellmann <gerd@gnu.org>
4546
4547 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
4548
4549 * xdisp.c (handle_single_display_prop): Use safe_call1.
4550 (safe_call): Renamed from call_function.
4551 (safe_call1): New function.
4552 (handle_fontified_prop): Use safe_call1 instead of call1.
4553 (safe_eval): Renamed from eval_form.
4554 (safe_eval_handler): Renamed from eval_handler.
4555 (handle_single_display_prop, display_mode_element): Use safe_eval
4556 instead of eval_form.
4557
4558 * xfaces.c (merge_face_heights): Use safe_call instead of
4559 call_function.
4560
4561 * keyboard.c (show_help_echo): Use safe_call instead of
4562 call_function; use safe_eval instead of eval_form.
4563
4564 * lisp.h (safe_call): Renamed from call_function.
4565 (safe_eval): Renamed from eval_form.
4566 (safe_call1): Add prototype.
4567
a3489ece
MB
45682000-10-05 Miles Bader <miles@lsi.nec.co.jp>
4569
4570 * xfns.c (image_ascent): Rearrange ascent calculation for the
4571 has-a-font case.
4572
35810b6f
SM
45732000-10-04 Stefan Monnier <monnier@cs.yale.edu>
4574
4575 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
4576 (where_is_internal_1): Don't bother ignoring menu-items any more.
4577
3dc78168
GM
45782000-10-04 Gerd Moellmann <gerd@gnu.org>
4579
4580 * keyboard.c (update_menu_bindings): New variable.
4581 (parse_menu_item): Use AREF. If update_menu_bindings
4582 is 0, don't update menu bindings.
4583 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
4584
1efc2bb9
EZ
45852000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
4586
4587 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
4588 to `mark_object'.
4589
3f679f55
SM
45902000-10-02 Stefan Monnier <monnier@cs.yale.edu>
4591
4592 * syntax.c (forw_comment): Match nestedness of ender/starter.
4593 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
4594 (prev_char_comstart_first): Remove.
4595 (back_comment): Check two-char comment markers more carefully
4596 to better handle overlapping cases like *//* or /* */* */ ...
4597 Match nestedness of ender/starter.
4598
2021ab61
DL
45992000-10-02 Dave Love <fx@gnu.org>
4600
4601 * config.in (HAVE_GAI_STRERROR): Add undef.
4602
4603 * process.c (Fopen_network_stream): Use it.
4604
4605 * m/alpha.h (NO_REMAP): Don't define.
4606
64e6cc18
GM
46072000-10-02 Gerd Moellmann <gerd@gnu.org>
4608
4609 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
4610 return with a string converted to an integer or vice versa when
4611 Vmocklisp_arguments is t.
4612 (Fsignal): Likewise. The function can return for `quit'.
4613 (struct gcpro): Declare member `var' to point to a volatile
4614 Lisp_Object.
4615
4616 * eval.c (error): Prevent compiler warning.
4617
b1904cd9
SM
46182000-09-30 Stefan Monnier <monnier@cs.yale.edu>
4619
4620 * keymap.c (keymap_memberp): New function.
4621 (Fset_keymap_parent): Use it.
4622 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
4623 Use keymap_memberp to avoid creating cycles.
4624 (access_keymap): Use KEYMAPP.
4625
71c9ec51
GM
46262000-09-30 Gerd Moellmann <gerd@gnu.org>
4627
4628 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
4629 gai_strerror. Make sure xerrno is set if connect fails. Improve
4630 error recovery.
71c9ec51 4631
c70c6b58
JR
46322000-09-29 Jason Rumney <jasonr@gnu.org>
4633
4634 * w32term.c (w32_char_font_type, w32_encode_char)
4635 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
4636 (w32_bdf_per_char_metric): New function.
4637 (w32_per_char_metric): Use it.
4638 (x_draw_glyph_string_background): Always draw background for BDF
4639 glyphs.
4640
4641 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
4642 GDI object which is a scarce resource.
4643
4644 * w32bdf.c (search_file_line): Fix skipping of whitespace.
4645 (get_quoted_string): Fix limit on memchr search.
4646 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
4647 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
4648 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
4649 (get_cached_font_char, cache_char_offset): Use macro
4650 BDF_CODEPOINT_RANGE_COVER_P.
4651 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
4652 (clear_cached_bitmap_slots): New function.
4653 (GET_HEX_VALUE): G-Z, g-z are not hex.
4654 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
4655 (get_bitmap_with_cache): Use new cache implementation.
4656 (create_offscreen_bitmap): New function.
4657 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
4658
4659 * w32term.c (x_produce_glyphs): If the distance from the current
4660 position to the next tab stop is less than a canonical character
4661 width, use the tab stop after that.
4662 (x_draw_glyphs): Handle case START and END are out of bounds more
4663 carefully.
4664 (x_clear_mouse_face): Block/unblock input.
4665 (x_display_and_set_cursor): Don't show a hollow box cursor for
4666 buffers whose cursor_type is nil.
4667
fe01239f
GM
46682000-09-29 Gerd Moellmann <gerd@gnu.org>
4669
52283633 4670 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
fe01239f
GM
4671
4672 * dispextern.h (updating_frame): Declare extern.
4673
e7c52f1f
AS
46742000-09-29 Andreas Schwab <schwab@suse.de>
4675
4676 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
4677
de6e1f7c
GM
46782000-09-29 Gerd Moellmann <gerd@gnu.org>
4679
25126faa
GM
4680 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
4681 use its function definition.
4682 (tool_bar_items): Likewise.
4683
de6e1f7c 4684 * lisp.h (fatal): Declare NO_RETURN.
52283633 4685
454ee39b
KH
46862000-09-29 Kenichi Handa <handa@etl.go.jp>
4687
4688 * keymap.c: Remove the line "#undef NULL".
4689
96301c5f
GM
46902000-09-28 Gerd Moellmann <gerd@gnu.org>
4691
52283633 4692 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
96301c5f 4693
efffeeb4
DL
46942000-09-28 Dave Love <fx@gnu.org>
4695
ecb8b666
DL
4696 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
4697
dc3cd20f
DL
4698 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
4699
4700 * .gdbinit (xreload): Note its need on GNU/Linux.
4701
efffeeb4
DL
4702 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
4703 r_alloc, r_alloc_free.
4704
8610d903
KH
47052000-09-28 Kenichi Handa <handa@etl.go.jp>
4706
4707 * syntax.c (skip_chars): Handle negation correctly.
4708
8901d1ac
GM
47092000-09-27 Gerd Moellmann <gerd@gnu.org>
4710
6f22f1ad
GM
4711 * xfaces.c (realize_default_face): Call set_lface_from_font_name
4712 with non-zero FORCE_P argument.
4713
52283633 4714 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
8901d1ac
GM
4715 Add assertions.
4716
4717 * xdisp.c (window_box_height): Add an assertion.
4718
4719 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
4720 tool-bar than is available.
4721 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
4722
36f1966f
DL
47232000-09-27 Dave Love <fx@gnu.org>
4724
efffeeb4 4725 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 4726
31d929e5
GM
47272000-09-26 Gerd Moellmann <gerd@gnu.org>
4728
c98863bf
GM
4729 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
4730 instead of BITS_PER_INT.
4731 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
4732 EMACS_UINT, respectively.
4733 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
4734
4735 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
4736
4737 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
4738
77072ab1
GM
4739 * window.c (freeze_window_starts): Construct last argument for
4740 foreach_window differently.
4741
4742 * xfns.c (x_decode_color): Don't return a Lisp_Object.
4743
4744 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
4745 EMACS_UINT instead of `int' and `unsigned int'.
4746 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
4747
4748 * frame.h (struct frame): Make the `nothing' member of union
4749 output_data an EMACS_INT.
4750
52283633 4751 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
31d929e5
GM
4752 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
4753 size in the sdata structure.
4754 (SDATA_NBYTES, SDATA_DATA): New macros.
4755 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
4756 differently for the different layout of the sdata structure.
4757 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
4758 in sdata.
4759 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
4760 Check that size recorded in the string size and size recorded in
4761 the sdata structure agree.
4762
3e60b029
DL
47632000-09-25 Dave Love <fx@gnu.org>
4764
4765 * buffer.c: Include stdio.h.
4766
4767 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
52283633 4768
3e60b029
DL
4769 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
4770
4771 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
52283633 4772 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
3e60b029
DL
4773 (__malloc_extra_blocks): Declare as __malloc_size_t.
4774
8ff16b4e
GM
47752000-09-25 Gerd Moellmann <gerd@gnu.org>
4776
755a2ccd
GM
4777 * alloc.c (mark_image): Use GC_NILP instead of NILP.
4778
d8b4516f
GM
4779 * keyboard.c (show_help_echo): Set help_echo_showing_p.
4780 (read_char): If help-echo is showing, preserve the echo area
4781 when redisplaying.
4782
4783 * xdisp.c (help_echo_showing_p): New variable.
4784 (set_message): Reset it to 0.
4785 (init_xdisp): Initialize help_echo_showing_p.
4786
4787 * dispextern.h (help_echo_showing_p): Declare extern.
4788
4789 * config.in: Fix typo in __GNUC_MINOR__.
4790
4791 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
4792
b11af2dd
GM
4793 * s/freebsd.h (POSIX_SIGNALS): Define.
4794
8ff16b4e
GM
4795 * xterm.c (x_clear_mouse_face): Block/unblock input.
4796
844eb643
DL
47972000-09-24 Dave Love <fx@gnu.org>
4798
4799 * fns.c (base64_encode_1): Fix last change.
4800
b30ab1b3
GM
48012000-09-22 Gerd Moellmann <gerd@gnu.org>
4802
4803 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
4804
4805 * xdisp.c (try_window_reusing_current_matrix): More fixes
4806 for the case window has a header-line.
4807
c6cbe5f0
DL
48082000-09-22 Dave Love <fx@gnu.org>
4809
4c7c1f3f
DL
4810 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
4811 a doc string.
4812
4813 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
4814
c6cbe5f0
DL
4815 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
4816
550a625e
GM
48172000-09-21 Gerd Moellmann <gerd@gnu.org>
4818
4c7c1f3f 4819 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
4820 for GCC >= 2.5.
4821
52283633
SM
4822 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
4823 Declare NO_RETURN.
fca99116 4824
80d26f99
GM
4825 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
4826 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
4827 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
4828 warnings.
52283633 4829
80d26f99
GM
4830 * marker.c (byte_char_debug_check): Return void.
4831
623a0aae
GM
4832 * xfns.c (Fx_create_frame): Set default frame parameter value
4833 for tool-bar-lines to 1.
4834
4835 * dispnew.c (scrolling_window): Compare y-positions of rows
4836 equal at the start. Some simplification.
4837
4838 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
4839 reused rows' y-position in the case window has a header-line, and
4840 new window start is greater than old window start.
4841
42ac0ae5
GM
4842 * process.c (process_sent_to): New variable.
4843 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
4844 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
4845 Declare more parameters volatile.
4846
550a625e
GM
4847 * lread.c (Vrecursive_load_depth_limit): New variable.
4848 (Fload): Check recursive loads whose recursion depth exceeds
4849 Vrecursive_load_depth_limit.
4850 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
4851
8320414c
GM
48522000-09-20 Gerd Moellmann <gerd@gnu.org>
4853
f46c275e
GM
4854 * fileio.c (Fread_file_name): Doc fix.
4855
4856 * editfns.c (Fmessage_or_box): Doc fix.
4857
4858 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
4859
b7e11c5b 4860 * xfns.c (xbm_scan): Allow C-style comments.
52283633 4861
8320414c
GM
4862 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
4863 symbols are specified, add color translations to the cache.
52283633 4864 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
8320414c
GM
4865 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
4866 xpm_cache_color.
4867 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
4868 structures to xpm_init_color_cache.
4869
da1608d9
GM
48702000-09-19 Gerd Moellmann <gerd@gnu.org>
4871
52283633 4872 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
da1608d9 4873
6badfa25
AI
48742000-09-19 Andrew Innes <andrewi@gnu.org>
4875
4876 * makefile.nt (bootstrap-emacs): Don't change directory.
4877
3a5f42bb
KH
48782000-09-19 Kenichi Handa <handa@etl.go.jp>
4879
1b7649bd
KH
4880 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
4881
3a5f42bb
KH
4882 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
4883 If output buffer is too small, signal an appropriated error.
4884
9f83cf0b
DL
48852000-09-18 Dave Love <fx@gnu.org>
4886
52283633 4887 * keyboard.c (menu_bar_items, tool_bar_items)
9f83cf0b
DL
4888 (current_active_maps): Remove redundant get_local_map call.
4889
28c7826c
GM
48902000-09-18 Gerd Moellmann <gerd@gnu.org>
4891
5cefa566
GM
4892 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
4893 cursor for buffers whose cursor_type is nil.
52283633 4894
6fed3546
GM
4895 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
4896 a feature to implement that is already implemented.
4897 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
4898 warnings.
4899
4900 * xfns.c (x_clear_image_1): New function.
4901 (x_clear_image): Use it.
52283633 4902 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
6fed3546 4903
05b1f851
GM
4904 * dispnew.c (update_window): Move test for invisible lines
4905 at the top to update_window_line.
4906 (update_window_line): Handle invisible lines here.
4907
f4779de9
GM
4908 * xfns.c (clear_image_cache): Clear current matrices of all
4909 frames sharing an image cache. Block input while freeing
4910 images. Fix timestamp comparison.
4911 (x_clear_image): Also free the mask.
4912
28c7826c
GM
4913 * xfns.c (lookup_image): Block input while loading the image so
4914 that we won't get interrupted in a state where the image isn't yet
4915 set up completely.
4916 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
4917 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
4918 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
52283633 4919 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
28c7826c 4920
b7412313
GM
49212000-09-16 Gerd Moellmann <gerd@gnu.org>
4922
4923 * dispnew.c (update_window): Make sure to make desired rows
4924 current even if they are completely invisible at the top
4925 of a window.
4926
47e351a3
GM
49272000-09-15 Gerd Moellmann <gerd@gnu.org>
4928
7f8f1edc
GM
4929 * xfns.c (lookup_image): Build mask before applying an algorithm.
4930 Recognize algorithm `disabled'.
4931 (cross_disabled_images): New variable.
4932 (COLOR_INTENSITY): New macro.
4933 (x_detect_edges): Use COLOR_INTENSITY.
4934 (x_disable_image): New function.
4935 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
4936
4937 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
4938 disabled state, don't apply an image transformation algorithm if
4939 the user specified an image for the disabled state. Use
28c7826c 4940 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
4941 user hasn't specified an image.
4942
ebb8f116
GM
4943 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
4944 allocation functions with the XPM lib.
4945 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
4946 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
4947 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
4948 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
52283633 4949 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
ebb8f116
GM
4950 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
4951 functions, if possible, because these handle color allocation
4952 failure more gracefully.
4953 (Fimage_mask_p): New function.
4954
47e351a3
GM
4955 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
4956 (Qedge_detection, Qheuristic): New symbols.
4957 (syms_of_xfns): Initialize new symbols.
4958 (lookup_image): Handle `:mask X', `:algorithm emboss', and
4959 `algorithm (edge-detection ...)'.
4960 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
4961 (tiff_format, gif_format, gs_format): Add `:mask'.
4962 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
4963 (GIF_MASK, GS_MASK): New enumerators.
4964 (x_laplace_read_row, x_laplace_write_row): Functions removed.
4965 (emboss_matrix, laplace_matrix): New variables.
4966 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
4967 (x_edge_detection): New functions.
4968 (x_laplace): Rewritten in terms of x_detect_edges.
4969 (x_build_heuristic_mask): If image has a mask, free it.
4970
fe83b953
AI
49712000-09-14 Andrew Innes <andrewi@gnu.org>
4972
4973 * makefile.w32-in: Revert to Unix line endings.
4974
3021e816
AI
49752000-09-14 Andrew Innes <andrewi@gnu.org>
4976
4977 * makefile.w32-in: Standardize indentation somewhat.
4978 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
4979 cater for differences between shells.
4980
4981 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
4982
2a32b5ea
GM
49832000-09-14 Gerd Moellmann <gerd@gnu.org>
4984
4985 * xterm.c (x_produce_glyphs): If the distance from the current
4986 position to the next tab stop is less than a canonical character
4987 width, use the tab stop after that.
4988
b4331e96
DL
49892000-09-14 Dave Love <fx@gnu.org>
4990
4991 * buffer.c (alloc_buffer_text): Fix xmalloc call.
4992
ef9e4345
GM
49932000-09-14 Gerd Moellmann <gerd@gnu.org>
4994
085536c2
GM
4995 * xdisp.c (handle_fontified_prop): While running fontification
4996 functions, bind `fontification-functions' and
4997 `after-change-functions' to nil.
4998
ef9e4345
GM
4999 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
5000 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
5001
5002 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
5003
5004 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
5005 USE_MMAP_FOR_BUFFERS.
5006
5007 * insdel.c (make_gap): Use enlarge_buffer_text.
5008
5009 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
5010 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
5011 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
5012 from former r_alloc_* functions in ralloc.c.
52283633 5013 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
ef9e4345
GM
5014 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
5015 (mmap_init) [REL_ALLOC_MMAP]: New function.
5016 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
5017 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
5018 BUFFER_FREE.
5019
5020 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
5021 (enlarge_buffer_text): Add prototype.
5022
5023 * ralloc.c: Remove everything having to do with the use of mmap.
5024
f8608968
GM
50252000-09-13 Gerd Moellmann <gerd@gnu.org>
5026
2a494b2d
GM
5027 * sound.c (Fplay_sound): Doc fix.
5028
8c907a56
GM
5029 * keyboard.c: Avoid some more compiler warnings.
5030 (parse_tool_bar_item): Ignore cached key bindings.
5031
f8608968
GM
5032 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
5033 and allocation of Lisp data.
5034
6ab70e9a
GM
50352000-09-12 Gerd Moellmann <gerd@gnu.org>
5036
d12d0a9b
GM
5037 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
5038 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
5039 defaults first.
5040
6ab70e9a
GM
5041 * lread.c (Fload): Put code checking for recursive loads in #if 0.
5042
63c36c3c
KH
50432000-09-12 Miyashita Hisashi <himi@meadowy.org>
5044
5045 * ccl.c: Comment fixed.
5046 (MAX_MAP_SET_LEVEL): Increased to 30.
5047 (PUSH_MAPPING_STACK): Enclose with do-while block.
5048 (POP_MAPPING_STACK): Likewise.
5049 (stack_idx_of_map_multiple): New variable.
5050 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
5051 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
52283633 5052 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
63c36c3c
KH
5053 (ccl_driver) <CCL_MapSingle>: Likewise.
5054 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
5055 with the case where looking up process reaches to the end of
5056 map-set, and call CCL programs as the above change.
5057
7ee3bd7b
GM
50582000-09-11 Gerd Moellmann <gerd@gnu.org>
5059
8ec8a5ec
GM
5060 * xfns.c (png_load, jpeg_load): Declare some variables volatile
5061 that might be clobbered by longjmp.
5062 (check_x_display_info, x_decode_color, create_frame_xic)
5063 (Fx_display_backing_store, Fx_display_visual_class)
52283633 5064 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
8ec8a5ec 5065
f74b0705
GM
5066 * lread.c (init_lread): Set Vloads_in_progress to nil.
5067 (Fload): Show list of recursively loaded files, when signaling an
5068 error.
5069
7ee3bd7b
GM
5070 * lread.c (Vloads_in_progress): New variable.
5071 (record_load_unwind): New function.
5072 (Fload): Check for recursive loads.
5073 (syms_of_lread): Initialize Vloads_in_progress.
5074 (read_integer, read1): Avoid some compiler warnings.
5075
5076 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
5077 compiler warnings.
5078
974e1e5b
MB
50792000-09-11 Miles Bader <miles@gnu.org>
5080
5081 * editfns.c (Fbuffer_string): Doc fix.
5082
9824c4e3
GM
50832000-09-10 Gerd Moellmann <gerd@gnu.org>
5084
5085 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
5086
6a72fdd1
KR
50872000-09-09 Ken Raeburn <raeburn@gnu.org>
5088
5089 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
5090 whether to include other header files.
5091
28e6fb66
GM
50922000-09-09 Gerd Moellmann <gerd@gnu.org>
5093
52283633 5094 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 5095 by Fmemq as a boolean.
28e6fb66 5096
7f8b6551
SM
50972000-09-08 Stefan Monnier <monnier@cs.yale.edu>
5098
5099 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
5100
a8710abf
GM
51012000-09-08 Gerd Moellmann <gerd@gnu.org>
5102
d1a02881
GM
5103 * ralloc.c (mmap_fd): Remove initializer which can make it
5104 read-only in a dumped Emacs.
5105 (mmap_fd_1): New variable.
5106 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
5107 restore it from there.
5108 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
5109 unconditionally so that mmap_fd can be initialized there.
5110 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
5111 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
5112 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
5113
c454aac1
GM
5114 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
5115
5116 * xdisp.c (dump_glyph_row): Fix printf format string.
52283633 5117 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
c454aac1 5118
fc653ef2
GM
5119 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
5120
3015eec0
GM
5121 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
5122 inheritance.
5123
bfe0ee88
GM
5124 * xdisp.c (try_window_id): When trying to locate cursor in
5125 unchanged rows at the top, handle the case that we can't find it.
5126
a8710abf
GM
5127 * xterm.c (x_draw_glyphs): Handle case START and END are out
5128 of bounds more carefully.
5129
6b7d4ae4
DL
51302000-09-08 Dave Love <fx@gnu.org>
5131
423193c5
DL
5132 * s/sol2.h (REL_ALLOC_MMAP): Define.
5133 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
5134
5135 * ralloc.c: Don't include string.h (redundant).
5136 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
5137 [!MAP_ANON]: Include fcntl.h.
5138 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
5139 (r_alloc, r_re_alloc, r_alloc_free)
5140 (mmap_enlarge, mmap_set_vars): Use it.
5141 (r_alloc_init_fd): New function.
5142 (__morecore) [SYSTEM_MALLOC]: Don't declare.
5143 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
5144 malloc type.
5145
5146 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
5147 Remove vm-limit.o.
5148
6b7d4ae4
DL
5149 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
5150 change to __NetBSD__.
5151
44d31981
KH
51522000-09-08 Kenichi Handa <handa@etl.go.jp>
5153
5154 * search.c (compile_pattern): Check the multibyteness of cached
5155 string and PATTERN.
5156
aad40737
MB
51572000-09-08 Miles Bader <miles@gnu.org>
5158
5159 * xfaces.c (default_face_vector): Function removed.
5160 (Finternal_merge_in_global_face): Restore old global/local
5161 attribute override order. Use inline loop instead of calling
5162 default_face_vector.
5163
91a211b5
GM
51642000-09-07 Gerd Moellmann <gerd@gnu.org>
5165
5166 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
5167 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
5168 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
5169 where necessary, in case POINTER_TYPE is `void'.
5170
03419440
EZ
51712000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
5172
5173 * frame.c (make_terminal_frame): Initialize frame foreground and
5174 background colors to unspecified, for the initial instance of an
5175 MSDOS frame.
5176
f46f845b
GM
51772000-09-07 Gerd Moellmann <gerd@gnu.org>
5178
24f76fbf
GM
5179 * ralloc.c (mmap_find): Fix overlap computation.
5180 (mmap_enlarge): Compute nbytes before trying to find an
5181 overlapping region.
5182
f46f845b
GM
5183 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
5184 instead of `!='.
5185
5186 * lread.c (syms_of_lread): Change value of regexp
5187 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
5188
5189 * xmenu.c (xdialog_show): When looking up the selection in
5190 menu_items, take `quote' boundaries into account; this corresponds
5191 to a nil ITEM in x-popup-dialog.
5192
3c014385
KH
51932000-09-07 Kenichi Handa <handa@etl.go.jp>
5194
fd6f711b
KH
5195 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
5196 not 0x81.
5197 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
5198
3c014385 5199 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
5200 encoding, not decoding. Fix the handling of latin-jisx0201.
5201 Check for the charset katakana-jisx0201 too.
3c014385 5202 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 5203 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 5204
0da3ecef
GM
52052000-09-07 Gerd Moellmann <gerd@gnu.org>
5206
ab0ee409
GM
5207 * xfaces.c (Vparam_value_alist): New variable.
5208 (syms_of_xfaces): Initialize it.
5209 (Finternal_set_lisp_face_attribute): Avoid more consing.
5210
5211 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
5212 specially.
5213 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
5214 (Qbackground_mode): New variable.
5215 (syms_of_frame_1): Initialize Qbackground_mode.
5216
5217 * lisp.h (Qdisplay): Declare extern.
1091dd67 5218
0da3ecef
GM
5219 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
5220 change face on all frames, and change the default for new frames.
5221
b14654b9
DL
52222000-09-07 Dave Love <fx@gnu.org>
5223
5224 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
5225
d24fd56f
KH
52262000-09-07 Kenichi Handa <handa@etl.go.jp>
5227
794f3670
KH
5228 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
5229
0fddd0dc
KH
5230 * charset.c: Include composite.h
5231 (lisp_string_width): New function.
5232 (Fstring_width): Call lisp_string_width instead of strwidth.
5233
5234 * Makefile.in (charset.o): Depends on composite.h.
5235
d24fd56f
KH
5236 * process.c (read_process_output): Before inserting the decoded
5237 text in the buffer, adjust the multibyteness.
5238
fa0b693c
GM
52392000-09-06 Gerd Moellmann <gerd@gnu.org>
5240
52283633 5241 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
73b77ee5
GM
5242 buffer's text buffer is null, map new memory.
5243
0a58f946
GM
5244 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
5245 POINTER_TYPE and size_t.
5246 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
5247 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
5248 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
5249 [REL_ALLOC_MMAP]: New macros.
5250 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
5251 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
5252 [REL_ALLOC_MMAP]: New functions.
5253
5254 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
5255 before and after unexec.
5256
5257 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
5258 text buffers if necessary.
5259
5260 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
5261 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
5262 in prototypes.
5263
fa0b693c
GM
5264 * config.in (HAVE_MMAP): Add #undef.
5265
877055f6
GM
52662000-09-05 Gerd Moellmann <gerd@gnu.org>
5267
08ba3862
GM
5268 * frame.c (Qdisplay_type): New variable.
5269 (syms_of_frame_1): Initialize it.
5270 (Fframe_parameter): New function that avoids consing.
5271 (syms_of_frame): Defsubr it.
5272
66ffe51c
GM
5273 * buffer.c (Fother_buffer): Consider buffers as invisible when
5274 they are displayed in a window on an invisible frame.
5275
877055f6
GM
5276 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
5277 get-largest-window always return nil.
5278
bb970e67
GM
52792000-09-04 Gerd Moellmann <gerd@gnu.org>
5280
5281 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
5282 variable; recognize Emacs 19 elc files.
5283
7a3d0e0e
MB
52842000-09-04 Miles Bader <miles@gnu.org>
5285
5286 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
5287 before initially popping up the menu, so the menu doesn't flash
52283633 5288 when the face settings are significantly different from the defaults.
7a3d0e0e 5289
14473664
SM
52902000-09-04 Stefan Monnier <monnier@cs.yale.edu>
5291
5292 * regex.c (WIDE_CHAR_SUPPORT): New macro.
5293 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
5294 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
5295 (BIT_UNIBYTE): Remove.
5296 (re_match_2_internal): Delete corresponding code and streamline the
5297 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
5298 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
5299 (re_wctype_t): New type.
5300 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
5301 (regex_compile): Use them and fix handling of overly long char classes.
5302
c1174479
AI
53032000-09-03 Andrew Innes <andrewi@gnu.org>
5304
f8803e97
AI
5305 * makefile.w32-in: Change to DOS line endings.
5306
c1174479
AI
5307 * s/ms-w32.h (ORDINARY_LINK): New define.
5308
5309 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
5310 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
5311
5312 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
5313 (distclean): Delete them here instead.
5314
44ef7cf6
AI
5315 * w32proc.c (compare_env): Convert to uppercase for comparison,
5316 not lowercase, to match how the native Windows shell works.
5317
49b3bd82
JR
53182000-09-03 Jason Rumney <jasonr@gnu.org>
5319
5320 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
5321 CVS changes the line-ends when checking in/out on DOS/Windows.
5322
5323 * makefile.nt (emacs): Do not change directory to run temacs, as
5324 the load-path is set relative to current directory.
5325
a3d35a39
MB
53262000-09-03 Miles Bader <miles@gnu.org>
5327
5328 * xterm.c (x_alloc_lighter_color_for_widget): New function.
5329
d276b0cf
GM
53302000-09-02 Gerd Moellmann <gerd@gnu.org>
5331
715e84c9
GM
5332 * xdisp.c (redisplay_mode_lines): New function.
5333 (display_mode_lines): Return number of mode lines displayed.
5334 (echo_area_display): Use redisplay_mode_lines to draw garbaged
5335 mode lines. Don't temporarily bind redisplay-dont-pause to t.
5336
8892f40b
GM
5337 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
5338 string.h and strings.h.
5339 (index) [HAVE_INDEX]: Add prototype.
5340
d276b0cf
GM
5341 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
5342 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
5343
5344 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
5345 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
5346
38404229
GM
53472000-09-01 Gerd Moellmann <gerd@gnu.org>
5348
5349 * lread.c (read1): Accept `?' as symbol constituent, for
5350 compatiblity with XEmacs.
5351
c0f9ea08
SM
53522000-08-31 Stefan Monnier <monnier@cs.yale.edu>
5353
5354 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
5355 (struct re_pattern_buffer): Remove newline_anchor.
5356 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
5357 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
5358 (re_max_failures, fail_stack): Use size_t rather than unsigned.
5359 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
5360 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
5361 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
5362 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
5363 Get rid of references to newline_anchor.
5364 (regcomp): Allocate and precompute a fastmap.
5365
8c0f83fe
GM
53662000-08-31 Gerd Moellmann <gerd@gnu.org>
5367
5368 * lread.c (openp): GCPRO local variable `filename'.
5369
4bb91c68
SM
53702000-08-30 Stefan Monnier <monnier@cs.yale.edu>
5371
5372 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
5373
5374 * regex.c: Merge some changes from GNU libc. Add prototypes.
5375 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
5376 Use memcmp and memcpy instead of bcopy and bcmp.
5377 (init_syntax_once): Use ISALNUM.
5378 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
5379 (REG_UNSET_VALUE): Remove. Use NULL instead.
5380 (REG_UNSET, re_match_2_internal): Use NULL.
5381 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
5382 New macros.
5383 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
5384 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
5385 (regex_compile): In handle_interval, return an error rather than try to
5386 unfetch the interval if we can't find the closing brace.
5387 Obey the RE_NO_GNU_OPS syntax bit.
5388 (TOLOWER): New macro.
5389 (regcomp): Use it.
5390 (regexec): Allocate regs.start and regs.end as one block.
5391
5226a931
GM
53922000-08-30 Gerd Moellmann <gerd@gnu.org>
5393
868dd24b
GM
5394 * xdisp.c (echo_area_display): Check display_completed instead
5395 of calling detect_input_pending.
5396
5397 * dispnew.c (update_frame): Only set display_completed here; move
5398 the update_begin and update_end calls here from update_frame_1.
5399 (update_frame_1): Don't set display_completed here, don't call
5400 update_begin/update_end.
5401
5226a931
GM
5402 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
5403 instead of store_frame_param.
5404
2a8bd25f
GM
54052000-08-29 Gerd Moellmann <gerd@gnu.org>
5406
5407 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
5408 desired window matrix hasn't been displayed, use the current row
5409 instead. Make sure that only those frame rows are updated for
5410 which there exists a corresponding enabled desired row.
52283633 5411
ba3478d9
MB
54122000-08-29 Miles Bader <miles@gnu.org>
5413
5414 * xfaces.c (default_face_vector): New function.
5415 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
5416
87d0f685
GM
54172000-08-29 Gerd Moellmann <gerd@gnu.org>
5418
5419 * lread.c (openp): Prevent temporary string passed to
5420 Ffile_readable_p from being garbage collected.
5421
6fa86045
DL
54222000-08-28 Dave Love <fx@gnu.org>
5423
5424 * keymap.c (store_in_keymap): Add `static' to declaration.
5425
bb17930d
GM
54262000-08-28 Gerd Moellmann <gerd@gnu.org>
5427
5428 * emacs.c, callint.c, doc.c, editfns.c
5429 (toplevel) [HAVE_STRING_H]: Include string.h.
5430 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
5431 (index): Remove prototypes which might conflict with non-standard
5432 definitions of index/strchr.
5433
5434 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
5435 (rindex): Define only if !HAVE_RINDEX.
5436
5437 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
5438
5439 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
5440
87188200
MB
54412000-08-28 Miles Bader <miles@gnu.org>
5442
5443 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
5444 made inconsistent by a font-related attribute in FROM.
5445 (merge_face_inheritance): Add function comment.
5446
41a68aef
KH
54472000-08-28 Kenichi Handa <handa@etl.go.jp>
5448
5449 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
5450 the 4th arg (PREV_EVENT) Qt to suppress input method.
5451
f7c436c1
SM
54522000-08-27 Stefan Monnier <monnier@cs.yale.edu>
5453
0b32bf0e
SM
5454 * regex.c: Indent cpp directives and remove parens after `defined'.
5455 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
5456 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
5457 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
5458 (re_compile_pattern): Use size_t for length.
5459 (init_syntax_once): Move to a better place.
5460 * regex.h: Merge changes from GNU libc. Indent cpp directives.
5461 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
5462
f7c436c1
SM
5463 * syntax.c (back_comment): Detect cases where a comment-starter is
5464 actually inside another comment as in: /* a // b */ c // d \n.
5465 Make it clear that `comstart_pos' is unused for nested comments.
5466
5467 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
5468 (KEYMAPP): New macro.
5469 (Fkeymap_parent, Fset_keymap_parent): Use it.
5470 (fix_submap_inheritance): Mark it static.
5471 (define_as_prefix, describe_buffer_bindings, describe_command)
5472 (describe_translation, describe_map): Complete prototypes.
5473
5474 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
5475
5476 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
5477 to better match the key-lookup behavior.
5478
6288c62f
GM
54792000-08-27 Gerd Moellmann <gerd@gnu.org>
5480
5481 * xfaces.c (lface_fully_specified_p): Handle :inherit.
5482 (Finternal_set_lisp_face_attribute): Fix typo in error message.
5483
e931344e
EZ
54842000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
5485
5486 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
5487 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
5488 (xterm.o): Depend on coding.h
5489
d10dfeef
KH
54902000-08-26 Kenichi Handa <handa@etl.go.jp>
5491
5492 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
5493 the corresponding '#endif'.
5494
2d73e8d3
MB
54952000-08-26 Miles Bader <miles@gnu.org>
5496
5497 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
5498 * xfaces.c (QCinherit): New variable.
5499 (syms_of_xfaces): Initialize it.
5500 (LFACE_INHERIT): New macro.
5501 (Finternal_get_lisp_face_attribute)
52283633 5502 (merge_face_vector_with_property)
2d73e8d3
MB
5503 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
5504 (check_lface_attrs): Allow new types of face height. Check
5505 inherit attribute.
5506 (CYCLE_CHECK): New macro.
5507 (merge_face_inheritance): New function.
5508 (merge_face_vectors): Merge inherited faces too. Add F and
5509 CYCLE_CHECK arguments.
5510 (merge_face_vector_with_property, Finternal_merge_in_global_face)
5511 (lookup_named_face, lookup_derived_face, realize_named_face)
5512 (face_at_string_position, face_at_buffer_position): Supply
5513 new F and CYCLE_CHECK arguments to merge_face_vectors.
5514 (merge_face_heights): New function.
52283633 5515 (merge_face_vectors, merge_face_vector_with_property)
2d73e8d3
MB
5516 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
5517 handle relative face heights.
5518 (lface_same_font_attributes_p): Compare heights using EQ.
5519
6ce974d4
KH
55202000-08-26 Kenichi Handa <handa@etl.go.jp>
5521
5522 * charset.c (char_to_string): Check the character validity.
52283633 5523 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
6ce974d4 5524
dc1e502d
SM
55252000-08-25 Stefan Monnier <monnier@cs.yale.edu>
5526
5527 * regex.c (PUSH_FAILURE_COUNT): New macro.
5528 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
5529 Handle popping of a register's or a counter's data.
5530 (POP_FAILURE_POINT): Use the new name.
5531 (re_match_2_internal): Push counter data on the stack for succeed_n,
5532 jump_n and set_number_at and remove misleading dead code in succeed_n.
5533
bd9d0f3f
GM
55342000-08-25 Gerd Moellmann <gerd@gnu.org>
5535
5536 * xdisp.c (redisplay_internal): If considering all windows on all
5537 frames, update the display for each frame as soon as possible,
5538 instead of first building all desired matrices for all frames, and
5539 then updating them all.
5540 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
5541
aa5b8e15
GM
55422000-08-24 Gerd Moellmann <gerd@gnu.org>
5543
17494071
GM
5544 * bytecode.c (mark_byte_stack): Add a comment.
5545
52283633
SM
5546 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
5547 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
aa5b8e15
GM
5548 a graphical frame.
5549
c543db81
KH
55502000-08-24 Kenichi Handa <handa@etl.go.jp>
5551
d246d5f5
KH
5552 * minibuf.c (do_completion): Always use compare-string, not
5553 string-equal because the latter doesn't pay attention to
5554 multibyteness of strings.
5555
c543db81
KH
5556 * process.c (create_process): Don't setup raw-text coding here.
5557 (Fopen_network_stream): Don't set coding->src_multibyte and
5558 coding->dst_multibyte here.
5559 (read_process_output): For process filter, return unibyte string
5560 if default-enable-multibyte-characters is nil.
5561 (send_process): If OBJECT is multibyte text, be sure to encoded it
5562 by the specified coding system for the process. Otherwise, setup
5563 raw-text coding.
52283633 5564 (init_process): Don't initialize default-process-coding-system here.
c543db81 5565
9b47cfe0
EZ
55662000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
5567
5568 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
5569 <scroll-down-aggressively>: Likewise.
5570
f5a36960
KH
55712000-08-23 Kenichi Handa <handa@etl.go.jp>
5572
5573 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
5574 zero. Set coding->produced_char correctly.
5575
69a7ffa7
AI
55762000-08-22 Andrew Innes <andrewi@gnu.org>
5577
5578 * makefile.w32-in: New file.
5579
5580 * unexw32.c (unexec): Ignore old_name, and use the actual location
5581 of the current executable instead. Base new_name on this.
5582
5583 * w32proc.c (create_child): Remove reference to security
5584 descriptor, which isn't needed and doesn't compile with mingw32.
5585
5586 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5587 up dllimport attributes.
5588 (x_update_window_end): Update prototype.
5589
5590 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
5591 extern, which screws up dllimport attributes.
5592
5593 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5594 up dllimport attributes.
5595
5596 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
5597 screws up dllimport attributes.
5598
5599 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5600 up dllimport attributes.
5601 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
5602 screws up dllimport attributes.
5603
5604 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5605 up dllimport attributes.
5606
5607 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
5608 screws up dllimport attributes.
5609
5610 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
5611 screws up dllimport attributes.
5612
5613 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5614 up dllimport attributes.
5615
5616 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
5617 unnecessary extern, which screws up dllimport attributes.
5618 (main): Ditto.
5619
5620 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5621 up dllimport attributes.
5622
5623 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
5624 unnecessary extern, which screws up dllimport attributes.
5625
5626 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
5627 screws up dllimport attributes.
5628
5629 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5630 up dllimport attributes.
5631
5632 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
5633
52283633
SM
5634 * w32bdf.c (search_file_line):
5635 (set_bdf_font_info):
5636 (seek_char):
5637 (w32_get_bdf_glyph):
69a7ffa7
AI
5638 (w32_BDF_to_x_font): Fix compile warnings.
5639
52283633 5640 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
69a7ffa7
AI
5641
5642 * w32select.c: Include keyboard.h before frame.h.
5643
5644 * w32fns.c (max): Define macro.
5645 (JOHAB_CHARSET): Define if not known.
5646 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
5647 (Fx_show_tip): Synch with X version.
5648
5649 * w32xfns.c: Include keyboard.h before frame.h.
5650
5651 * w32fns.c: Include keyboard.h before frame.h.
5652
5653 * w32term.c: Include keyboard.h before frame.h.
5654
5655 * fontset.c: Include keyboard.h before frame.h.
5656
5657 * w32inevt.c: Include keyboard.h before frame.h.
5658 (MOUSE_MOVED): Define if not known.
5659
5660 * minibuf.c: Include keyboard.h before frame.h.
5661
5662 * keyboard.c: Include keyboard.h before frame.h.
5663
5664 * indent.c: Include keyboard.h before frame.h.
5665
5666 * dispnew.c: Include keyboard.h before frame.h.
5667
5668 * buffer.c: Include keyboard.h before frame.h.
5669
5670 * alloc.c: Include keyboard.h before frame.h.
5671
5672 * print.c: Include keyboard.h before frame.h.
5673
5674 * process.c: Include keyboard.h before frame.h.
5675
5676 * scroll.c: Include keyboard.h before frame.h.
5677
5678 * sysdep.c: Include keyboard.h before frame.h.
5679
5680 * term.c: Include keyboard.h before frame.h.
5681
5682 * window.c: Include keyboard.h before frame.h.
5683
5684 * xdisp.c: Include keyboard.h before frame.h.
5685 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
5686
5687 * frame.c: Include keyboard.h before frame.h.
5688
5689 * w32heap.h: Undefine min, max.
5690
5691 * w32gui.h: Undefine min, max.
5692
5693 * unexw32.c: Change PUCHAR to PCHAR.
5694 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
52283633
SM
5695 (relocate_offset):
5696 (get_section_info):
69a7ffa7
AI
5697 (copy_executable_and_dump_data): Remove unnecessary static defs.
5698 (copy_executable_and_dump_data): Fix compile warnings.
5699
5700 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
5701
5702 * w32console.c (min): Define macro.
5703 (clear_frame, write_glyphs): Fix compile warning.
5704
52283633 5705 * w32proc.c (compare_env):
69a7ffa7
AI
5706 (find_child_console): Fix compile warning.
5707
5708 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
5709 sys_errlist instead of _sys_errlist.
5710 (get_emacs_configuration_options): New function.
5711
5712 * s/ms-w32.h (sys_nerr): Provide default definition.
5713 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
5714 name with _ prepended.
5715 (NSIG): Define if not known.
5716 (get_emacs_configuration): Provide extern declaration.
5717 (get_emacs_configuration_options): Provide extern declaration.
5718 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
5719
5720 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
52283633 5721 (map_w32_filename):
69a7ffa7
AI
5722 (read_unc_volume): Fix compile warning.
5723
5724 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
5725 definitions from being used.
5726
5727 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
5728
52283633 5729 * w32.c (unc_volume_file_attributes):
69a7ffa7
AI
5730 (open_unc_volume): Make arg const.
5731
5732 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
5733 (read_input_waiting): Remove excess parameter.
5734
5735 * w32.c (init_environment): Call _access.
5736 (check_windows_init_file): Call _close.
5737 (init_user_info): Call _putenv.
5738 (init_environment): Call _putenv and _strdup.
5739 (init_ntproc): Reset volume info cache on startup.
5740
5741 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
5742 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
5743 cannot override the CRT malloc.
5744
5745 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
5746 (LINK_FLAGS): Append to original value of LINK_FLAGS.
5747
5748 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
5749 unless we are linking with a static CRT.
5750 (RVA_TO_PTR): Cast result to unsigned char*.
5751
5752 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
5753 (add_volume_info): Use xstrdup.
5754
25060080
SM
57552000-08-22 Stefan Monnier <monnier@cs.yale.edu>
5756
5757 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
5758 (do_completion, Fminibuffer_complete_word): Use it.
5759 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
5760 var so it can take non-boolean values.
5761
6917e6bb
GM
57622000-08-21 Gerd Moellmann <gerd@gnu.org>
5763
acb7cc89 5764 * editfns.c (find_field): Formatting changes.
52283633 5765 (toplevel): Some old-style function forward declarations
acb7cc89
GM
5766 changed to prototypes, some new protypes added, some functions
5767 made static.
5768
5769 * lisp.h (set_time_zone_rule): Add prototype.
5770 (use_dialog_box): External declaration.
5771
0bbfdc25
GM
5772 * keyboard.c (gen_help_event): Add parameter SIZE.
5773 (kbd_buffer_events_waiting): Slightly rewritten.
5774 (clear_event): New function.
5775 (kbd_buffer_get_event): Use it, and clear the input_events of
5776 HELP_EVENTs.
5777 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
5778 don't fill the newly created array with nils.
5779 (toplevel): Convert some old-style function forward declarations
5780 to prototypes.
5781
5782 * keyboard.h (gen_help_event): Change prototype.
5783
5784 * xterm.c (XTread_socket): Change calls to gen_help_event.
5785
5786 * w32term.c (w32_read_socket): Change calls to gen_help_event.
5787
6917e6bb
GM
5788 * eval.c (Fmacroexpand): Doc fix.
5789
e5cd3d11
JR
57902000-08-20 Jason Rumney <jasonr@gnu.org>
5791
5792 * w32term.h (x_display_info_for_display): Remove as this function
5793 does not exist on W32.
5794
5795 * w32term.c (help_echo_window): New variable.
5796 (syms_of_w32term): staticpro it.
5797 (note_mode_line_highlight): Set it.
5798 (XTextExtents16): Removed as there is no equivalent on W32.
5799 (x_compute_glyph_string_overhangs): Incomplete body removed, as
5800 the X way of doing this will not work for W32.
5801 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
5802 (x_draw_image_foreground): Avoid drawing outside of the clip area
5803 when image doesn't have a mask.
5804 (note_mouse_highlight): Process overlays in the right order of
5805 priority. Set help_echo_window.
5806 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
5807 because that's more visible for large images.
5808
5809 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
5810 name to single_keymap_panes.
5811 (w32_menu_show): Set wv->title when dealing with titles.
5812 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
5813
6e69ab8c
MB
58142000-08-21 Miles Bader <miles@gnu.org>
5815
5816 * minibuf.c (do_completion): Try again if we rewrite the input
5817 string, but no completion was done, so that any completion message
5818 will be correct.
5819
511bd4eb
GM
58202000-08-20 Gerd Moellmann <gerd@gnu.org>
5821
5822 * xfaces.c (lface_equal_p): Compare strings differently.
5823 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
5824 (realize_tty_face): Use them.
5825 (syms_of_xfaces): Initialize new variables.
5826 (map_tty_color): New function, extracted from realize_tty_face.
5827 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
5828 foreground or background color, store the new color name in the
5829 realized face; previous code trying to do this had no effect.
5830 (realize_tty_face): Use map_tty_color.
5831 (Fclear_face_cache): Set face_change_count and ensure thorough
5832 redisplay.
5833
1433385f
GM
58342000-08-19 Gerd Moellmann <gerd@gnu.org>
5835
511bd4eb
GM
5836 * undo.c (record_first_change, record_marker_adjustment): Don't
5837 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 5838
419ac0a2
KH
58392000-08-18 Kenichi Handa <handa@etl.go.jp>
5840
5841 * coding.c (decode_coding_string): Set members consumed,
5842 consumed_char, produced, produced_char of *coding correctly. If
5843 decode_coding doesn't consume any byte, don't try anymore.
5844 (encode_coding_string): Likewise.
5845
7eb9e30d
GM
58462000-08-18 Gerd Moellmann <gerd@gnu.org>
5847
511bd4eb
GM
5848 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
5849 conditional have void type, for Standard C compilers.
7eb9e30d
GM
5850
5851 * xdisp.c (redisplay_internal): Compare windows for equality with
5852 EQ, instead of applying XWINDOW to something that might not
5853 be a window.
52283633 5854
dd34a735
KH
58552000-08-18 Kenichi Handa <handa@etl.go.jp>
5856
5857 * fontset.c (Finternal_char_font): Search only the selected frame
5858 for a window of the current buffer.
5859
385ff9e3
GM
58602000-08-18 Gerd Moellmann <gerd@gnu.org>
5861
511bd4eb 5862 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
5863 Lisp_Objects.
5864
385ff9e3
GM
5865 * keyboard.c (kbd_buffer_get_event): Handle the case that the
5866 second half of a HELP_EVENT is found at the start of kbd_buffer.
5867
d6abb4c7
MB
58682000-08-18 Miles Bader <miles@gnu.org>
5869
4618074a
MB
5870 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
5871
d6abb4c7
MB
5872 * editfns.c (save_restriction_save): Rewrite to use markers.
5873 (save_restriction_restore): Rewrite to understand new form of data
5874 saved by save_restriction_save.
5875 (Fsave_restriction): Remove cautionary note in doc-string.
5876
a7b28523
GM
58772000-08-17 Gerd Moellmann <gerd@gnu.org>
5878
5879 * fileio.c (build_annotations): Add a comment explaining the
5880 return value of format-annotate-function. Replace a spurious call
5881 to Flength with a CONSP test. Call format-annotate-function with
5882 a fifth arg specifying how many times the function is been called
5883 in a row, to let it choose temporary buffers appropriately.
5884
03c9ed77
DL
58852000-08-17 Dave Love <fx@gnu.org>
5886
5887 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
5888 declare make_temp_name twice.
5889
52283633 5890 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
03c9ed77
DL
5891 (unreadpure): Give it an arg.
5892
5893 * unexalpha.c: Prototype fatal_unexec, mark_x,
5894 update_dynamic_symbols. Declare unexec as void.
5895
5896 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
5897 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
5898
5899 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
52283633 5900 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
03c9ed77
DL
5901
5902 * alloca.c: Use #error.
5903 [POINTER_TYPE]: Use it.
5904
5905 * eval.c (Fdefvar): Doc fix.
5906
5907 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
5908 INITIALIZE_INTERVAL.
5909
5910 * buffer.h: Avoid DECLARE_INTERVALS.
5911
5912 * config.in: Add size_t.
5913
aae41d97
EZ
59142000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
5915
5916 * w16select.c (set_clipboard_data): If there's not enough memory
5917 to put text into clipboard, return 1, as Fw16_set_clipboard_data
5918 expects. In case of other failures, return 3.
5919 (system_error_msg): New error message.
5920 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
5921 system_error_msg.
5922
65aa5e85
GM
59232000-08-16 Gerd Moellmann <gerd@gnu.org>
5924
5925 * term.c (write_glyphs): Also turn off inverse video after turning
5926 off other appearances in case TS_exit_attribute_mode is not equal
5927 to TS_end_standout_mode.
5928 (insert_glyphs): Turn inverse video on/off for each run of glyphs
5929 with the same face.
5930 (turn_off_face): Reset standout_mode only if
5931 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
5932 is equal to TS_end_standout_mode.
5933
ece23901
KH
59342000-08-16 Kenichi Handa <handa@etl.go.jp>
5935
9d7bcb2e
KH
5936 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
5937 sequence at the end of the source block.
5938
ece23901
KH
5939 * ccl.c (Fccl_program_p): Docstring modified.
5940 (Fccl_execute): Likewise.
5941 (Fccl_execute_on_string): Likewise.
5942
5e30eaa2
EZ
59432000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
5944
5945 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
5946
290602fd
KH
59472000-08-16 Kenichi Handa <handa@etl.go.jp>
5948
5949 The following changes are mainly to fix bugs of
5950 encode/decode-coding-string failing if encoding/decoding return
5951 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
5952 variable conversion_buffer.
5953
5954 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
5955 decrement dst_end to avoid buffer overflow in the later call of
5956 string_as_multibyte
5957
5958 * coding.h (conversion_buffer_size, conversion_buffer)
5959 (get_conversion_buffer): Extern deleted.
5960
5961 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
5962 (conversion_buffer, conversion_buffer_size): Variables deleted.
5963 (get_conversion_buffer): Function deleted.
5964 (struct conversion_buffer): New structure.
5965 (MAX_ALLOCA): New macro.
5966 (allocate_conversion_buffer): New macro.
5967 (extend_conversion_buffer, free_conversion_buffer): New functions.
5968 (ccl_coding_driver): Set coding->result.
5969 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
5970 this is the last block of source.
5971 (encode_coding): Likewise. Handle the source block as the last
5972 one only when the whole source text is consumed.
5973 (decode_coding_string): Handle the case that the output buffer is
5974 too small to decode the whole source text. Use
5975 allocate_conversion_buffer, extend_conversion_buffer and
5976 free_conversion_buffer, not get_conversion_buffer.
5977 (encode_coding_string): Likewise.
5978 (init_coding): Function deleted.
52283633 5979 (init_coding_once): Delete code to initialize conversion_buffer_size.
290602fd
KH
5980
5981 * emacs.c (main): Don't call init_coding.
5982
52283633 5983 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
290602fd
KH
5984
5985 * term.c (write_glyphs): Use a locally declared conversion_buffer.
5986 (insert_glyphs): Likewise.
5987
5988 * w32console.c (write_glyphs): Use a locally declared
5989 conversion_buffer.
5990
b9f80d41
EZ
59912000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
5992
5993 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
5994 member of display_info is NULL.
5995
32dc52f7
GM
59962000-08-15 Gerd Moellmann <gerd@gnu.org>
5997
52283633 5998 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
58ed0d3b 5999
32dc52f7 6000 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 6001 appearances with capability `me'.
32dc52f7
GM
6002 (write_glyphs): Switch on inverse video before each face change.
6003
4eb22d33
DL
60042000-08-14 Dave Love <fx@gnu.org>
6005
6006 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
6007 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
6008 (lisp_free): Declare and make static.
6009
6010 * window.c: Fix embedded comment.
6011 (syms_of_window): Fix doc string.
6012
90cbf47e
GM
60132000-08-14 Gerd Moellmann <gerd@gnu.org>
6014
52283633 6015 * keymap.c (push_key_description): If C without modifiers is < 32,
90cbf47e
GM
6016 make sure to print `C-' before `M-', like in the manual.
6017
440fc135
GM
60182000-08-11 Gerd Moellmann <gerd@gnu.org>
6019
6020 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
6021 since they aren't relocated anymore.
52283633 6022 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
440fc135
GM
6023
6024 * xdisp.c (try_cursor_movement): Fix handling of cursor in
52283633 6025 partially visible line which is smaller than the window's height.
440fc135 6026
6e264fad
KH
60272000-08-11 Kenichi Handa <handa@etl.go.jp>
6028
6029 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
52283633 6030 the multibyte form of eight-bit-control characters.
6e264fad
KH
6031 (Fccl_execute_on_string): Initialize ccl->multibyte.
6032
6033 * ccl.h (struct ccl_program): New member multibyte.
6034
6035 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
6036
c371f69a
KH
60372000-08-11 Kenichi Handa <handa@etl.go.jp>
6038
6039 * regex.c (regex_compile) <normal_char>: Pay attention to
6040 multibyteness.
6041 (analyse_first) <exactn>: Setup fastmap correctly for
6042 eight-bit-control characters.
6043
60442000-08-11 Kenichi Handa <handa@etl.go.jp>
6045
52283633 6046 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
c371f69a
KH
6047
6048 * keyboard.c (make_lispy_event): Handle the new event type
6049 multibyte_char_keystroke.
6050
6051 * xterm.c: Include coding.h.
6052 (XTread_socket): Work around a bug of XmbLookupString. If the
6053 input is from XIM, decode it according to the current locale. In
6054 that case, generate multibyte_char_keystroke events.
6055
b8ddbe71
KH
60562000-08-11 Kenichi Handa <handa@etl.go.jp>
6057
6058 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
6059 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
6060
47589c8c
GM
60612000-08-10 Gerd Moellmann <gerd@gnu.org>
6062
6063 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
6064 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
6065 (move_it_in_display_line_to): Record iterator's ascent and descent
6066 before producing glyphs, and restore them when we know the glyph
6067 doesn't fit on the line.
6068 (move_it_to): Restructured so that it's easier to debug. If
6069 moving to a vpos, and not moving to an x or character position,
6070 stop as soon as the specified vpos is reached; don't move further
6071 into that line because that might change the computed line height.
6072 (try_cursor_movement): New function, extracted from the cursor
6073 movement branch of redisplay_window. If ending on a partially
6074 visible line, don't try to scroll if the cursor line is taller
6075 than the window.
6076 (redisplay_window): Use try_cursor_movement.
6077
6078 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
6079 because that function doesn't cope with variable-height lines.
6080
6081 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
6082 box cursor because that's better visible for large images.
52283633 6083
c51bacd6
MB
60842000-08-10 Miles Bader <miles@gnu.org>
6085
6086 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
6087
bea56df7
GM
60882000-08-10 Gerd Moellmann <gerd@gnu.org>
6089
6090 * xdisp.c (Vmessages_buffer_name): New variable.
6091 (message_dolog): Use it.
6092 (syms_of_xdisp): Initialize it.
6093
99cd7364
EZ
60942000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
6095
52283633 6096 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
99cd7364
EZ
6097 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
6098 redundant now that keyboard.h is included.
6099
7d093d56
EZ
61002000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
6101
6102 * keyboard.c (kbd_buffer_events_waiting): New function.
6103
6104 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
6105
6106 * msdos.c: Include keyboard.h.
6107 (XMenuActivate): Empty no_event events from the event buffer. If
6108 no events are left after that, call clear_input_pending.
6109 (mouse_clear_clicks): New function, code moved from mouse_init.
6110 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
6111 mouse driver to ``forget'' any past clicks.
6112
6113 * Makefile.in (msdos.o): Depend on keyboard.h.
6114
41e757a6
GM
61152000-08-09 Gerd Moellmann <gerd@gnu.org>
6116
8e7bd231
GM
6117 * lisp.h (input_pending): External declaration.
6118
6119 * dispextern.h (Qredisplay_dont_pause): Declare extern.
52283633 6120
8e7bd231
GM
6121 * xdisp.c (echo_area_display): Display thoroughly if input is
6122 pending. Bind redisplay-dont-pause to t during the redisplay.
6123 in case input is pending.
6124
6125 * dispnew.c (Qredisplay_dont_pause): New variable.
6126 (syms_of_display): Initialize and staticpro it.
6127 (update_frame_1): Don't interrupt the display for pending input if
6128 redisplay_dont_pause is set.
52283633 6129
43028b7e
GM
6130 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
6131
41e757a6
GM
6132 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
6133
2f2174fa
KH
61342000-08-09 Miles Bader <miles@lsi.nec.co.jp>
6135
6136 * callproc.c (Fcall_process): Terminate the unwind-protect around
6137 the post-read-conversion of coding system.
6138
0a6fd67e
MB
6139 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
6140 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
6141 * buffer.h (overlays_at): Update prototype.
6142 * xdisp.c (next_overlay_change): Update call to overlays_at.
6143 * xfaces.c (face_at_buffer_position): Likewise.
6144 * textprop.c (Fget_char_property): Likewise.
6145 * xterm.c (note_mouse_highlight): Likewise.
6146
0c80756e
MB
6147 * minibuf.c (do_completion): Don't consider a simple change of
6148 case as `completion'.
6149
975f250a
KR
61502000-08-08 Ken Raeburn <raeburn@gnu.org>
6151
52283633 6152 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
b347b3fd
KR
6153 * undo.c (record_delete): Make sure last_point_position_buffer is
6154 a buffer before comparing pointers.
6155
6156 * coding.h (decode_coding_string): Declare.
6157
6158 * intervals.h (Fprevious_single_char_property_change): Declare.
6159
6160 * textprop.c (Fprevious_single_char_property_change): Don't do
6161 arithmetic directly on lisp objects.
6162
52283633 6163 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
b347b3fd
KR
6164
6165 * keyboard.h (menu_item_eval_property): Declare.
6166
6167 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
6168 reuse as buffer name, instead of recreating (and discarding) every
6169 time a message is logged.
6170 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
6171 (current_message_1, truncate_message_1, set_message_1)
6172 (display_echo_area_1, resize_mini_window_1): Signatures changed.
6173 (current_message, truncate_echo_area, display_echo_area)
6174 (resize_echo_area_axactly): Changed calls.
b347b3fd 6175
975f250a 6176 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 6177 Lisp object.
975f250a 6178 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 6179 must be an integer, not a Lisp object.
975f250a 6180
46dc9912
KH
61812000-08-08 Kenichi Handa <handa@etl.go.jp>
6182
6183 * charset.c (Fchar_width): Doc fix.
6184
9f6d1a6c
GM
61852000-08-08 Gerd Moellmann <gerd@gnu.org>
6186
6187 * charset.c (Fstring_width): Doc fix.
6188
ff3d9573
GM
61892000-08-07 Gerd Moellmann <gerd@gnu.org>
6190
41e757a6 6191 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
6192 line, clear ascent and descent members of the iterator structure;
6193 the height of the continued line does not affect the height of the
6194 continuation line.
6195 (make_cursor_line_fully_visible): Do nothing if cursor is on a
6196 line taller than the window.
6197 (redisplay_window) <forced window start>: Handle case that the
6198 middle of the window is not found in any row.
6199 (dump_glyph_row): Show more information.
6200 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
6201 first text line in a glyph matrix.
6202
6203 * xterm.c (x_draw_image_foreground): Avoid drawing outside
6204 of the clip area when image doesn't have a mask.
6205
70fc58b3
GM
6206 * fns.c (sweep_weak_table): Fix survival conditions for
6207 key-or-value and key-and-value weakness.
6208
6209 * .gdbinit (xhashtable): New command.
6210
ac0e96ee
GM
6211 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
6212 tables out of the list of all weak hash tables.
6213
ff3d9573
GM
6214 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
6215 a new buffer is created, make sure echo_area_buffer[] references
6216 the new buffer.
6217
e0d8827b
EZ
62182000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
6219
6220 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
6221 the doc string.
6222
c6f35378
KH
62232000-08-07 Kenichi Handa <handa@etl.go.jp>
6224
6225 * syntax.c (skip_chars): Fix previous change. Make the handling
6226 of unibyte string consistent with that of regex search.
6227
1fd4c450
GM
62282000-08-05 Gerd Moellmann <gerd@gnu.org>
6229
e49aa397
GM
6230 * xmenu.c (popup_get_selection): Use xfree instead of free.
6231
6232 * fileio.c (Finsert_file_contents): Use xfree instead of free.
6233
6234 * editfns.c (Ftranspose_regions): Use xfree instead of free.
6235
6236 * callproc.c (child_setup): Use xfree instead of free.
6237
6238 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
6239 instead of malloc.
6240 (run_mac_command, closedir): Use `xfree' instead of `free'.
6241
6242 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
6243
6244 * eval.c (error): Use xfree instead of free.
6245
1fd4c450
GM
6246 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
6247
6248 * fns.c: Replace `illegal' with `invalid'.
e49aa397 6249 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 6250
82d497fc
KH
62512000-08-05 Kenichi Handa <handa@etl.go.jp>
6252
6253 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
6254 conversion.
6255
59f953a2
NF
62562000-08-04 Noah Friedman <friedman@splode.com>
6257
6258 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
6259 docstring.
6260
688351f2
GM
62612000-08-04 Gerd Moellmann <gerd@gnu.org>
6262
6263 * syntax.c (skip_chars): Fix typo in error message.
6264
2dad51cc
AS
62652000-08-04 Andreas Schwab <schwab@suse.de>
6266
6267 * m/ia64.h: Moved from s/ia64.h.
6268
99bb2c60
KH
62692000-08-04 Kenichi Handa <handa@etl.go.jp>
6270
082a1df2
KH
6271 * process.c (read_process_output): Big simplification. Handle
6272 composition and post-read-conversion of coding system correctly.
6273 (send_process): Handle composition correctly.
6274
6275 * callproc.c (Fcall_process): Handle post-read-conversion of
6276 coding system if any.
6277
99bb2c60
KH
6278 * coding.c (decode_coding_iso2022): More strict check for handling
6279 single shifting.
082a1df2
KH
6280 (coding_restore_composition): Pay attention to the case that
6281 cmp_data is not set properly (because of invalid code in the
6282 source text).
6283 (run_pre_post_conversion_on_str): Include text properties in the
6284 resulting string.
6285 (decode_coding_string): Set members of coding correctly.
99bb2c60 6286
f4988be7
GM
62872000-08-03 Gerd Moellmann <gerd@gnu.org>
6288
6289 * s/ia64.h: New file.
6290
6291 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
6292 Use NULL instead of 0 at the end of variable argument list of
6293 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
6294 sizeof (int) < sizeof (void *).
6295
6296 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
6297 of variable argument lists of XtVaGetValues and XtVaSetValues.
6298
6299 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
6300 variable argument lists of XtVaGetValues and XtVaSetValues.
6301
ead53494
GM
63022000-08-02 Gerd Moellmann <gerd@gnu.org>
6303
6304 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
6305 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
6306
6307 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
6308 prototype.
6309
6310 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
6311 in call to Fsingle_key_description.
6312
6313 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
6314 Callers changed.
6315
63162000-08-02 Colin Walters <walters@cis.ohio-state.edu>
6317
6318 * window.c (display_buffer_reuse_frames): New variable.
6319 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
6320 frames displaying BUFFER.
52283633 6321 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
ead53494 6322
10b0f752
MB
63232000-08-01 Miles Bader <miles@gnu.org>
6324
6325 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
6326 when to constrain NEW_POS (they were pretty screwed up before).
6327
16425c4a
EZ
63282000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
6329
6330 * msdos.c (run_msdos_command): Save and restore the master
6331 environment, for the case that child_setup signals an error.
6332 When mirroring slashes in DOS shell commands, don't fail when
6333 argv[2] has embedded blanks.
da288c14
EZ
6334 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
6335 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
6336 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
6337
6338 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
6339 using alloca; free it after run_msdos_command returns.
6340
27f73852
DL
63412000-07-27 Dave Love <fx@gnu.org>
6342
52283633
SM
6343 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
6344 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
27f73852
DL
6345
6346 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
6347
c0261b5e
EZ
63482000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
6349
6350 * editfns.c (lisp_time_argument): Fix last change.
6351
b548072f
GM
63522000-07-27 Gerd Moellmann <gerd@gnu.org>
6353
3ab82477
GM
6354 * fns.c (Fdelete): Make it work on vectors and strings in addition
6355 to lists.
6356
b548072f
GM
6357 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
6358 (syms_of_fns): Initialize new variables.
52283633 6359 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
b548072f
GM
6360 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
6361 weakness, with t meaning the same as `key-and-value'.
6362
91ae8751
KH
63632000-07-27 Kenichi Handa <handa@etl.go.jp>
6364
6365 * coding.h (struct coding_system): Member safe_charset deleted.
6366
6367 * coding.c (Qsafe_charsets): This variable deleted.
52283633
SM
6368 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
6369 New variables.
91ae8751
KH
6370 (coding_safe_chars): New function.
6371 (CODING_SAFE_CHAR_P): New macro.
6372 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
52283633 6373 checking safe_charsets member of the coding system. Caller changed.
91ae8751
KH
6374 (detect_coding_iso2022): New local variable safe_chars.
6375 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
6376 safe_charsets member of the coding system.
6377 (decode_coding_iso2022): New local variable safe_chars.
6378 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
6379 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
6380 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
6381 (ENCODE_UNSAFE_CHARACTER): New macro.
6382 (encode_coding_iso2022): New local variable safe_chars. Check
6383 unsafe chars.
6384 (setup_coding_system): Delete the code to initialize
6385 coding->safe_charses
6386 (intersection, find_safe_codings): New functions.
6387 (Ffind_coding_systems_region_internal): New function.
6388 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
6389 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
6390 variable and initialize it.
6391
6392 * fns.c (char_table_ref_and_index): New function.
6393
6394 * lisp.h (char_table_ref_and_index): Add prototype.
6395
34a7a267
SS
63962000-07-26 Sam Steingold <sds@gnu.org>
6397
6398 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 6399 (Ffloat_time): New built-in Lisp function.
34a7a267 6400
a95cb10a
GM
64012000-07-26 Gerd Moellmann <gerd@gnu.org>
6402
3353ef5a
GM
6403 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
6404 for the character code.
6405
6406 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
6407 GNU/Linux.
6408
a95cb10a
GM
6409 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
6410 if called for a popup menu.
6411 (xmenu_show): Store help string in widget values.
6412
b4a12321
DL
64132000-07-26 Dave Love <fx@gnu.org>
6414
6415 * syswait.h: Move some definitions.
6416 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
6417 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
6418 perspicuous definitions.
6419 (WTERMSIG): Fix bit pattern used.
6420
13f5ad37
KH
64212000-07-26 Kenichi Handa <handa@etl.go.jp>
6422
6423 * print.c (print_object): If vector printing is truncated, print
6424 "..." to indicate it as well as the case of list printing.
6425
070fe99c
GM
64262000-07-25 Gerd Moellmann <gerd@gnu.org>
6427
969065c3
GM
6428 * xdisp.c (next_element_from_display_vector): Improve comments.
6429
6430 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
6431 for the character code, and the rest for the face id as in 20.x.
6432 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
6433
6434 * window.c (window_display_table): Cleaned up.
6435
070fe99c
GM
6436 * syntax.c (Fforward_word): Add last arg nil in call of
6437 Fconstrain_to_field.
6438
bad77ef7
EZ
64392000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
6440
969065c3 6441 * fileio.c (Frename_file) [DOS_NT]: If the file names are
52283633
SM
6442 identical but for the letter-case, don't call
6443 barf_or_query_if_file_exists.
bad77ef7 6444
c28da489
MB
64452000-07-25 Miles Bader <miles@gnu.org>
6446
6447 * editfns.c (find_field): Honor special `boundary' fields.
6448 (Qboundary): New variables.
6449 (syms_of_editfns): Initialize Qboundary.
6450 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
6451 Use scan_buffer instead of find_before_next_newline, because it
6452 allows us to detect the boundary case where there's a newline at
6453 the search limit.
6454 * lisp.h (Fconstrain_to_field): Update external declaration.
6455
e3c31fd5
GM
64562000-07-24 Gerd Moellmann <gerd@gnu.org>
6457
6458 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
6459 if that is nil.
c28da489 6460
c66c29a2
DL
64612000-07-24 Dave Love <fx@gnu.org>
6462
6463 * s/sunos4-0.h, s/sol2.h:
6464 (LIBS_TERMCAP): Move from m/sparc.h.
6465
6466 * m/sparc.h (TERMINFO): Moved to system files (probably only
6467 relevant for sunos4 judging by its vintage).
6468 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
6469 __arch64__.
6470
fbe0a958
EZ
64712000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
6472
6473 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
6474 name to single_keymap_panes.
6475
7d88e5c9
AS
64762000-07-24 Andreas Schwab <schwab@suse.de>
6477
6478 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
6479
e024b101
GM
64802000-07-24 Gerd Moellmann <gerd@gnu.org>
6481
6482 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
6483 parameters instead of using int parameters. Expect FN to accept
6484 EMACS_INT parameters.
6485 (display_echo_area, resize_echo_area_axactly, current_message)
6486 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
6487 with new argument list.
6488 (resize_mini_window_1): New callback function.
6489 (current_message_1, truncate_message_1, set_message_1): Change
52283633 6490 parameter lists to the new format expected by with_echo_area_buffer.
e024b101 6491
25c1a9ce
KH
64922000-07-24 Kenichi Handa <handa@etl.go.jp>
6493
6494 * fontset.c (fontset_ref): Remove INLINE declaration.
6495 (fontset_ref_via_base): Likewise.
6496 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
6497 to downcase.
6498
7f987ac0
EZ
64992000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
6500
6501 * msdos.c (IT_note_mouse_highlight): Process overlays in the
6502 correct order of priority. If help echo was found in an overlay,
6503 use that overlay as the object in which the help echo was found.
6504
e2db3069
MB
65052000-07-22 Miles Bader <miles@gnu.org>
6506
6507 * textprop.c (Fprevious_single_char_property_change): The initial
6508 property value should be from the position preceding POSITION, not
6509 following it.
6510
5e3203e4
EZ
65112000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
6512
6513 * coding.c (syms_of_coding): Doc fix for
6514 inhibit-iso-escape-detection.
6515
62145073
GM
65162000-07-21 Gerd Moellmann <gerd@gnu.org>
6517
c20aeb83
GM
6518 * xterm.c (note_mouse_highlight): Process overlays in the right
6519 order of priority.
34a7a267 6520
743934db
GM
6521 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
6522
6523 * xterm.c (note_mouse_highlight): If help-echo was found in an
52283633 6524 overlay, use that overlay as the object in which the help was found.
743934db 6525
d1dc7e43 6526 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 6527
62145073
GM
6528 * window.c (foreach_window): Instead of a fake variable argument
6529 list, take one USER_DATA argument.
6530 (foreach_window_1): Likewise, and call callback functions with two
6531 args, the window and USER_DATA.
6532 (struct check_window_data): New struct.
6533 (check_window_containing): Use it.
6534 (window_from_coordinates): Set up a struct check_window_data for
6535 foreach_window.
6536 (add_window_to_list, freeze_window_start): Change parameters
6537 according to new calling convention.
6538
6539 * window.h (foreach_window): Change prototype.
6540
6541 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
6542
65432000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
6544
6545 * xmenu.c (menu_help_callback): Call show_help_echo with
6546 additional arguments OBJECT and POS.
6547
11270583
KH
65482000-07-21 Kenichi Handa <handa@etl.go.jp>
6549
07b14857
KH
6550 * data.c (Faset): Allow storing any multibyte character in a
6551 string. Convert unibyte string to multibyte if necessary.
6552
11270583
KH
6553 * xfns.c (x_encode_text): New function.
6554 (x_set_name): Use x_encode_text.
6555 (x_set_title): Likewise.
6556
6557 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
6558
6559 * xterm.h (x_encode_text): Add prototype.
6560
bc75b4fd
DL
65612000-07-20 Dave Love <fx@gnu.org>
6562
6563 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
6564 xfree, not free.
6565
48c14970
EZ
65662000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
6567
6568 * msdos.c (help_echo_window): New variable.
6569 (syms_of_msdos): Initialize and staticpro it.
6570 (IT_note_mode_line_highlight): Set help_echo_window.
6571 (IT_note_mouse_highlight): Ditto.
6572 (dos_rawgetc): Store help_echo_window in the second event produced
6573 for HELP_EVENTs.
6574
6575 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
6576 Record the object that generated the help echo and the position of
6577 that object in help_echo_object and help_echo_pos. Record that
6578 some glyphs in a row are displayed in mouse-face.
6579 (IT_update_begin): Don't clear mouse highlight unless one of the
6580 enabled glyph rows is marked as being displayed in mouse-face.
6581 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
6582 and position recorded in help_echo_object and help_echo_pos to the
6583 event queue.
6584 (IT_menu_display): Accept a new argument PN: the pane number of
6585 the current menu pane. Record the pane number and the item
6586 number of the item which has associated help string.
6587 (XMenuActivate): Update the prototype for help_callback in
6588 function declaration. Call IT_menu_display with the current menu
6589 pane number as an additional argument. Call help_callback with
6590 two additional arguments: the pane number and the item number of
6591 the menu item associated with the help text.
6592 (help_echo_object, help_echo_pos): New variables.
6593 (syms_of_msdos): Initialize them and staticpro help_echo_object.
6594
6595 * msdos.h (XMenuActivate): Update prototype.
6596
4279296d
GM
65972000-07-19 Gerd Moellmann <gerd@gnu.org>
6598
47db06aa
GM
6599 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
6600 Add some more prototypes.
6601
6602 * xterm.c, xterm.h: Add some more prototypes.
6603
6604 * lisp.h (Fnext_single_char_property_change): Add prototype.
6605
6606 * dispnew.c (direct_output_for_insert): Remove confusing
6607 outer local variable mouse_face_overwritten_p.
6608 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
6609
4279296d
GM
6610 * alloc.c (allocate_string_data): Don't copy old string contents.
6611
670acd62
KH
66122000-07-19 Kenichi Handa <handa@etl.go.jp>
6613
6614 * coding.c (code_convert_region): Delete text properties before
6615 shrinking the conversion region.
6616
7cea38bc
GM
66172000-07-18 Gerd Moellmann <gerd@gnu.org>
6618
dc1cac59
GM
6619 * dispnew.c (update_text_area): Write the whole row if it
6620 has mouse-face in it.
6621
85a8aca9
GM
6622 * xfaces.c (face-alternative-font-family-alist): Remove
6623 DEFVAR_LISP; staticpro instead.
6624
34a7a267 6625 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
6626 new arguments.
6627
6628 * keyboard.c (show_help_echo): Add parameter WINDOW.
6629 (read_char): Call show_help_echo with window extracted from Lisp
6630 help event.
6631 (gen_help_event): Add parameter WINDOW.
6632
6633 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
6634
6635 * xterm.c (help_echo_window): New variable.
52283633 6636 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
7cea38bc
GM
6637 (XTread_socket): Pass help_echo_window to gen_help_event.
6638 (syms_of_xterm): Initialize and staticpro help_echo_window.
6639
f8276b77
DL
66402000-07-18 Dave Love <fx@gnu.org>
6641
52283633 6642 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
f8276b77 6643
088831a6
GM
66442000-07-18 Gerd Moellmann <gerd@gnu.org>
6645
3d6cd763
GM
6646 * alloc.c (allocate_string_data): If string had already data
6647 assigned, copy old contents to new string data.
6648
6649 * coding.c (syms_of_coding): Fix typo in spelling of variable
6650 `inhibit-iso-escape-detection'.
6651
088831a6
GM
6652 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
6653
6654 * Makefile.in: Add dependencies on dispextern.h.
6655 (alloca.o): Don't define malloc and define EMACS_FREE instead of
6656 `free'; both can conflict with system header files.
6657
bc8a8d55
KH
66582000-07-18 Kenichi Handa <handa@etl.go.jp>
6659
6660 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
6661 undefined.
6662
069f5950
DL
66632000-07-18 Dave Love <fx@gnu.org>
6664
6665 * window.c (Fwindow_list): Declare arg `window'.
6666
aa96c820
KH
66672000-07-18 Kenichi Handa <handa@etl.go.jp>
6668
6669 * coding.c (setup_coding_system): Don't override the explicitly
6670 specified designations.
6671
06be8d32
MB
66722000-07-15 Miles Bader <miles@gnu.org>
6673
6674 * editfns.c (char_property_eq, char_property_stickiness): Renamed
6675 from `text_property_eq' and `text_property_stickiness', respectively.
6676 (find_field, Fconstrain_to_field, char_property_eq)
6677 (char_property_stickiness): Changed to call char-property functions
6678 instead of text-property-only ones.
6679
6680 * textprop.c (Fnext_single_char_property_change): Made a subr (was
6681 `next_single_char_property_change'). Do more error checking, and
6682 cleanup limit behavior.
6683 (Fprevious_single_char_property_change): New function.
6684 (syms_of_textprop): Initialize new subrs.
6685
6686 * xdisp.c (display_prop_end, invisible_text_between_p):
6687 Call Fnext_single_char_property_change instead of
6688 next_single_char_property_change.
6689
3fddcdc3
JR
66902000-07-15 Jason Rumney <jasonr@gnu.org>
6691
6692 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
6693 after menu is finished with.
6694 (add_menu_item): Only consider wv->title as a menu title.
6695 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
6696
6697 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
6698 null title.
6699 (FONT_REGEXP): Remove unused macro, and its sub-components.
6700 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
6701
6702 * w32term.c (help_echo_object, help_echo_pos): New variables.
6703 (note_mode_line_highlight): Store additional information about the
6704 help-echo in help_echo_object and help_echo_pos. Check both
6705 `local-map' and `keymap' properties for changing the cursor
6706 (note_mouse_highlight): Store additional information about the
6707 help-echo in help_echo_object and help_echo_pos.
6708 (note_tool_bar_highlight): Set help_echo_object to nil and
6709 help_echo_pos to -1.
6710 (w32_read_socket): Use gen_help_event instead of filling
6711 input_events manually.
6712 (syms_of_w32term): Staticpro help_echo_object.
6713 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
52283633 6714 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
3fddcdc3
JR
6715 (x_clear_mouse_face): New function.
6716 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
6717 (x_update_window_begin): No need to turn off the mouse
6718 highlight here.
6719 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 6720 depending on whether they contain glyphs highlighted in mouse-face.
3fddcdc3
JR
6721 (x_fill_stretch_glyph_string): Consume runs of stretch
6722 glyphs instead of a single one.
6723 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
6724 with new argument list.
6725 (x_set_glyph_string_gc): Make sure the face's GC is valid.
6726 (x_append_glyph, x_append_composite_glyph)
6727 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
6728 changes in struct glyph starting 1999-12-27. See comments for
6729 xterm.c on 2000-07-05.
6730
178c5d9c
SS
67312000-07-14 Sam Steingold <sds@gnu.org>
6732
6733 * xfaces.c (realize_x_face): Fix the last patch:
6734 check `default_face' before dereferencing.
6735
6fe533f6
DL
67362000-07-14 Dave Love <fx@gnu.org>
6737
069f5950 6738 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 6739
dd7b81cf
KH
67402000-07-14 Kenichi Handa <handa@etl.go.jp>
6741
0693904a 6742 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 6743 default_face's fontset, not using the default fontset.
0693904a 6744
dd7b81cf
KH
6745 * coding.c (inhibit_iso_escape_detection): New variable.
6746 (syms_of_coding): Make it a Lisp variable.
6747 (detect_coding_iso2022): If inhibit_iso_escape_detection is
6748 nonzero, ignore ISO2022's escape sequence.
6749
d5aa31d8
GM
67502000-07-14 Gerd Moellmann <gerd@gnu.org>
6751
e5acf0ca
GM
6752 * alloca.c (malloc) [emacs]: Define as xmalloc.
6753
bd23a692
GM
6754 * xfns.c (Fx_show_tip): If frame parameters contain a position,
6755 use that instead of the mouse position. Add parameters DX and DY.
6756
6757 * dispextern.h (Fx_show_tip): Adjust number of parameters
6758 in prototype.
6759
9662da0b
GM
6760 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
6761 if HELP is a function, call it with OBJECT and POS as parameters
6762 to get the help to display.
6763 (gen_help_event, kbd_buffer_store_help_event): New functions.
6764 (kbd_buffer_get_event): Construct the Lisp help-event differently.
6765 (read_char): Call show_help_echo with new parameters.
6766
178c5d9c 6767 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
6768 Add prototypes.
6769
6770 * xterm.c (help_echo_object, help_echo_pos): New variables.
6771 (note_mode_line_highlight): Store additional information about the
6772 help-echo in help_echo_object and help_echo_pos. Check both
6773 `local-map' and `keymap' properties for changing the cursor
6774 (note_mouse_highlight): Store additional information about the
6775 help-echo in help_echo_object and help_echo_pos.
6776 (note_tool_bar_highlight): Set help_echo_object to nil and
6777 help_echo_pos to -1.
6778 (XTread_socket): Use gen_help_event instead of filling
6779 input_events manually.
6780 (syms_of_xterm): Staticpro help_echo_object.
6781
6782 * xmenu.c (menu_highlight_callback): Use
6783 kbd_buffer_store_help_event instead of setting up and input_event
6784 structure manually.
6785
6786 * xdisp.c (eval_form): GCPRO argument sexpr.
6787 (call_function): New function.
6788 (handle_single_display_prop): Use call_function and FUNCTIONP
6789 instead of checking whether if font_height is a symbol and
6790 using eval_form.
6791
6792 * eval.c (internal_condition_case_2): New function.
6793
6794 * lisp.h (FUNCTIONP): New macro.
6795 (internal_condition_case_2, call_function): Add prototypes.
6796
d5aa31d8
GM
6797 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
6798 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
6799 Always set `arg' member of input_events.
6800 (construct_menu_click): Unused function removed.
6801
6802 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
6803
6804 * w32term.c (construct_mouse_click, construct_mouse_wheel)
6805 (construct_drag_n_drop, x_scroll_bar_handle_click)
6806 (w32_read_socket): Always set `arg' member of input_events.
6807
6808 * keyboard.c (show_help_echo): Use eval_form. Add comment.
6809
6810 * lisp.h (eval_form): Add prototype.
6811
6812 * xdisp.c (eval_form): Make it externally visible.
6813
0f1a9b23
GM
68142000-07-13 Gerd Moellmann <gerd@gnu.org>
6815
6816 * xterm.c (x_handle_tool_bar_click): Store the frame in the
6817 frame_or_window slot of TOOL_BAR_EVENT input events instead of
6818 consing. For prefix events, store the frame in the `arg' slot of
6819 the event, otherwise store the key there.
6820 (XTread_socket): Instead of consing, use the frame_or_window slot
52283633 6821 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
0f1a9b23
GM
6822
6823 * xmenu.c (menu_highlight_callback): Store help string in the
6824 `arg' member of the input event; don't cons.
6825 (menubar_selection_callback): Use the `arg' slot of input events
6826 to queue additional information, instead of consing.
6827
6828 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
6829
6830 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
6831 TOOL_BAR_EVENTs.
6832 (w32_read_socket): Adapt to changes in HELP_EVENTs.
6833
6834 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
6835 input events to queue additional information, instead of consing.
6836
6837 * keyboard.c (kbd_buffer_gcpro): Renamed from
6838 kbd_buffer_frame_or_window. Now used for all Lisp objects
6839 referenced from the input queue.
6840 (kbd_buffer_store_event): Always use structure assignment for
6841 copying input events. Record all Lisp objects referenced from
6842 events in kbd_buffer_gcpro.
6843 (kbd_buffer_get_event): Construct Lisp `help-echo' events
6844 differently from input events. Test for prefix menu_bar_events
6845 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
6846 event in kbd_buffer_gcpro to nil.
6847 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
6848 frame_or_window is equal to its arg member as prefix events.
6849 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
6850 used by an input event to nil.
6851 (init_keyboard): Use two times the size of the input queue
6852 for kbd_buffer_gcpro.
6853 (syms_of_keyboard): Likewise.
6854
52283633
SM
6855 * emacs.c (handle_USR2_signal, handle_USR1_signal):
6856 Use USER_SIGNAL_EVENT.
0f1a9b23
GM
6857
6858 * termhooks.h (struct input_event): Add member `arg'.
6859 (MENU_BAR_EVENT): Renamed from menu_bar_event.
6860 (USER_SIGNAL_EVENT): Renamed from user_signal.
6861
6862 * xfaces.c (ASET): Remove definition.
6863
6864 * lisp.h (AREF, ASET, ASIZE): New macros.
6865
6866 * fontset.c (AREF, ASIZE): Remove definitions.
6867
6868 * fns.c (AREF): Remove definition.
178c5d9c 6869
0f1a9b23
GM
6870 * composite.c (AREF): Remove definition.
6871
712eaef2
GM
68722000-07-12 Gerd Moellmann <gerd@gnu.org>
6873
d8ee7803
GM
6874 * dispnew.c (redraw_overlapped_rows): Add missing local.
6875 (scrolling_window): Remove debug code.
6876
712eaef2
GM
6877 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
6878 Before scrolling, turn off a mouse-highlight in the window
6879 being scrolled.
6880
6881 * xterm.c (x_update_window_end): Add parameter
6882 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
6883 redisplay in XTframe_up_to_date.
6884 (x_clear_mouse_face): New function.
6885 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
6886
6887 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
6888 current glyph row.
6889 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
6890 it when any row is written to that contains glyphs highlighted in
6891 mouse-face.
6892 (update_window): Call the window update end hook with new
6893 parameter MOUSE_FACE_OVERWRITTEN_P.
6894 (direct_output_for_insert): Give up if row contains mouse-face.
6895
6896 * dispextern.h (struct redisplay_interface): Add parameter
6897 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
6898 (clear_mouse_face): New function pointer member.
6899
02010917
SM
69002000-07-11 Stefan Monnier <monnier@cs.yale.edu>
6901
6902 * syntax.c (back_comment): Use one switch rather than a few `if's.
6903 Obey open_paren_in_column_0_is_defun_start.
6904 When reverting to the `slow' method, try to nicely handle the case
6905 of nested comments by checking that the comment-starter we found
6906 does indeed match the comment-ender.
6907 (scan_sexps_forward, scan_sexps_forward):
6908 Ignore excessive opening parenthesis rather than throwing an error.
6909
d76c03ea
GM
69102000-07-11 Gerd Moellmann <gerd@gnu.org>
6911
6912 * doc.c (Fsubstitute_command_keys): Handle case that a GC
6913 in Fwhere_is_internal or get_keymap_1 relocates string contents.
6914
6915 * dispnew.c (direct_output_forward_char): Give up if currently
6916 displaying a message instead of the minibuffer contents.
6917
6918 * xterm.c (x_update_window_begin): No need to turn off the mouse
6919 highlight here.
6920 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 6921 depending on whether they contain glyphs highlighted in mouse-face.
d76c03ea
GM
6922
6923 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
6924 compare the mouse_face_p flags of both rows.
6925
6926 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
6927
d55ead18
EZ
69282000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
6929
6930 * keyboard.c (show_help_echo): Accept additional parameter
6931 ok_to_overwrite_keystroke_echo.
6932 (read_char): Call show_help_echo with a zero
6933 ok_to_overwrite_keystroke_echo argument.
52283633 6934 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
d55ead18
EZ
6935 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
6936 ok_to_overwrite_keystroke_echo argument.
6937 * w32menu.c (w32_menu_display_help): Call show_help_echo with
6938 non-zero ok_to_overwrite_keystroke_echo argument.
6939
df75b1a3
GM
69402000-07-10 Gerd Moellmann <gerd@gnu.org>
6941
4b92c49a
GM
6942 * xdisp.c (try_window_id): If changes are all below what is
6943 displayed in the window, and point is in the window, we still
6944 might have to find point on the display.
6945
6946 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
6947 glyphs instead of a single one.
6948 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
6949 with new argument list.
6950 (x_set_glyph_string_gc): Make sure the face's GC is valid.
6951
df75b1a3
GM
6952 * keymap.c (get_keymap_1): Add comment that this function can GC.
6953 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
6954 comment that functions can GC.
6955 (Fset_keymap_parent): GCPRO arg KEYMAP.
6956
4314cf3e
EZ
69572000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
6958
6959 * msdos.c (XMenuActivate): After exiting the menu, restore the
6960 echo area message and erase it.
6961
ab49ce15
KH
69622000-07-10 Kenichi Handa <handa@etl.go.jp>
6963
6964 * fontset.c (Ffontset_info): Make the return value more compatible
6965 with that of Emacs 20.
6966
090a072f
GM
69672000-07-07 Gerd Moellmann <gerd@gnu.org>
6968
6969 * eval.c (Fsignal): Handle case that backtrace_list is null.
6970
f92de4a6
KH
69712000-07-07 Kenichi Handa <handa@etl.go.jp>
6972
6973 * ccl.c (Fccl_execute): Typo fixed.
6974
dd8888a1
GM
69752000-07-06 Gerd Moellmann <gerd@gnu.org>
6976
e5c81191 6977 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 6978
dd8888a1
GM
6979 * window.c (Fwindow_list): Reverse list at the end.
6980 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
6981 means allow windows on OWINDOW's frame, only.
6982 (window_loop): Simplified; use Fwindow_list.
6983
6984 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
6985
485266d0
GM
69862000-07-05 Gerd Moellmann <gerd@gnu.org>
6987
6988 * xterm.c (XTread_socket): Increment handling_signal at the start,
6989 decrement it at the end.
6990
6991 * eval.c (handling_signal): New variable.
6992 (Fsignal): Abort if handling_signal is non-zero.
6993
6994 * lisp.h (handling_signal): External declaration.
178c5d9c 6995
485266d0
GM
6996 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
6997
80fcd514
KR
69982000-07-05 Ken Raeburn <raeburn@gnu.org>
6999
7000 Sound support for NetBSD through "Linux emulation" support:
7001 * config.in (HAVE_SOUNDCARD_H): Undef.
7002 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
7003 * Makefile.in (LIBSOUND): New variable.
7004 (LIBES): Include it.
52283633
SM
7005 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
7006 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
80fcd514
KR
7007 (vox_open): Use DEFAULT_SOUND_DEVICE.
7008 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
7009
d5c5cddd
GM
70102000-07-05 Gerd Moellmann <gerd@gnu.org>
7011
7012 * print.c (print_error_message): If Vsignaling_function is set,
7013 show it in *Messages*.
7014
7015 * lisp.h (Vsignaling_function): External declaration.
7016
7017 * eval.c (Vsignaling_function): New variable.
7018 (Fsignal): Compute it.
7019 (syms_of_eval): Staticpro it.
7020
65171e3a
DL
70212000-07-05 Dave Love <fx@gnu.org>
7022
7023 * syswait.h: Use the autoconf recommended approach. Old code
7024 #if'd out in case we need to revert.
7025
178c5d9c 7026 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 7027
e2c46326
AI
70282000-07-05 Andrew Innes <andrewi@gnu.org>
7029
7030 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
7031 when non-NULL instead of __morecore, to take account of buffer
7032 memory. This also solves a problem with spurious memory warnings
7033 on Windows.
7034
7035 * ralloc.c: Make real_morecore non-static.
7036
7037 * eval.c (internal_condition_case): Comment out abort if
7038 interrupt_input_blocked is not zero.
7039
7040 * makefile.nt: Add support for `bootstrap' and related targets.
7041 Include minimal debug info in emacs.exe in release build.
7042 Remove all dependencies on lisp.h, and fixup some others.
7043
7044 * w32.c (init_environment): Install code from 20.7 for providing
7045 default values for environment variables, based on the
7046 executable's own location.
52283633 7047 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
e2c46326
AI
7048 (sys_socket): Install socket inheritance bug fix from 20.7.
7049
7050 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
7051 here via blockinput.h).
7052
a027a91b
SM
70532000-07-05 Stefan Monnier <monnier@cs.yale.edu>
7054
e4b31601
SM
7055 * w32menu.c (w32_menu_display_help):
7056 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
7057
7058 * keyboard.h (show_help_echo): Declare.
7059
7060 * keyboard.c (show_help_echo): New function, extracted from read_char.
7061 Feval its `msg' argument if it's a cons cell.
7062 (read_char): Use it.
4cf8d9d5 7063 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 7064
178c5d9c 7065 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 7066 (note_tool_bar_highlight, XTread_socket):
178c5d9c 7067 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
7068 (dos_rawgetc):
7069 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
7070 (note_tool_bar_highlight, w32_read_socket):
7071 Do not gratuitously ignore non-string `help-echo' properties.
7072
88d75730
GM
70732000-07-05 Gerd Moellmann <gerd@gnu.org>
7074
969f7e79
GM
7075 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
7076
71201b00
GM
7077 * window.c (delete_all_subwindows): Reset Vwindow_list.
7078
88d75730
GM
7079 * xterm.c (x_append_glyph, x_append_composite_glyph)
7080 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
7081 changes in struct glyph starting 1999-12-27. Some bit-fields of
7082 struct glyph were not set, which made glyphs unequal when compared
7083 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
7084 effects were the result. This also depended on the contents of
7085 memory returned by xmalloc. If flickering happens again, activate
7086 the code in clear_glyph_row that's in #if 0. If the flickering is
52283633 7087 gone with that, chances are that it is caused by something similar.
88d75730
GM
7088
7089 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 7090
88d75730
GM
7091 * dispextern.h: Add some comments.
7092
7093 * window.c (add_window_to_list): Add parameter LIST.
7094 (window_list): Order list so that, for each frame, windows are
7095 in canonical order, and so that frames appear in the list in
7096 the order given by Vframe_list.
7097 (next_window): Reverse the handling of NEXT_P.
7098
53654733
GM
70992000-07-04 Gerd Moellmann <gerd@gnu.org>
7100
87efd256
GM
7101 * window.c (Vwindow_list): New variable.
7102 (make_window, delete_window): Set Vwindow_list to nil.
7103 (check_window_containing): New function.
7104 (window_from_coordinates): Rewritten.
7105 (add_window_to_list, window_list, candidate_window_p)
7106 (decode_next_window_args, next_window): New functions.
52283633 7107 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
87efd256
GM
7108 (Fwindow_list): New function.
7109 (Fother_window): Cleaned up.
7110 (foreach_window): Add a longer "variable argument list". Let
7111 callback function return 0 to indicate that cycling over windows
7112 should stop.
7113 (foreach_window_1): Likewise.
7114 (freeze_window_start): Return int.
7115 (init_window): New function.
7116 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
7117
7118 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
7119 input_event with bzero.
7120 (main): Call init_window.
7121
53654733
GM
7122 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
7123 a menu filter.
7124
4a8c194f
KH
71252000-07-04 Kenichi Handa <handa@etl.go.jp>
7126
7127 * composite.h (make_composition_value_copy): Extern it.
7128
7129 * composite.c (make_composition_value_copy): New function.
7130
7131 * editfns.c (Fformat): While copying text properties, make each
7132 composition property value a copy.
7133
7134 * fns.c (concat): While copying text properties, make each
7135 composition property value a copy.
7136
831a6cb0
GM
71372000-07-03 Gerd Moellmann <gerd@gnu.org>
7138
2f516940
GM
7139 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
7140
178c5d9c 7141 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
7142 marked already.
7143
831a6cb0
GM
7144 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
7145 include those frames as candidates which have their focus
7146 redirected to the minibuffer frame.
7147
d9c4f922
SM
71482000-07-03 Stefan Monnier <monnier@cs.yale.edu>
7149
7150 * fns.c (Fputhash): Return `value' rather than nil.
7151
3780bc22
GM
71522000-06-30 Gerd Moellmann <gerd@gnu.org>
7153
97d176db
GM
7154 * frame.c (next_frame): Don't check focus redirection in case
7155 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
7156 unless their focus is redirected, which contradicts the
7157 specification of next-frame, and leads to infinite loops in
7158 certain situations when cycling through windows with next-window.
7159
dca9961d
KH
71602000-06-30 Kenichi Handa <handa@etl.go.jp>
7161
7162 * coding.c (code_convert_region): Even if the length of text is
7163 zero, try to convert it if coding->type is coding_type_ccl.
7164 (decode_coding_string, encode_coding_string): Likewise.
7165
d5483ab1
GM
71662000-06-28 Gerd Moellmann <gerd@gnu.org>
7167
af5c25e1 7168 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 7169 the display if windows_or_buffers_changed.
af5c25e1
GM
7170
7171 * dispnew.c (struct row_entry): New structure.
7172 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
7173 (row_table_size, old_lines, new_lines, old_lines_size)
7174 (new_lines_size, run_pool, runs_size, runs): New variables.
7175 (add_row_entry): New function.
7176 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 7177 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
7178 holding them in local variables. Use a larger hash table whose
7179 size depends on glyph matrix sizes. Don't use bzero to clear the
7180 hash table; instead, clear used slots only.
7181
7182 * fns.c (next_almost_prime): Make it externally visible.
7183
7184 * lisp.h (next_almost_prime): Add prototype.
7185
d5483ab1
GM
7186 * s/isc4-0.h (sigunblock): Define.
7187
7188 * s/sco5.h (sigunblock): Define.
7189
93e40f40
DL
71902000-06-27 Dave Love <fx@gnu.org>
7191
7192 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
7193 (moved to osf5-0.h).
7194 [!NOT_C_CODE]: Protect string.h stuff.
7195
7196 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
7197 (sys_siglist, NSIG): Definitions moved here from osf1.h.
7198
3c4b7685
GM
71992000-06-27 Gerd Moellmann <gerd@gnu.org>
7200
97d176db 7201 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
7202 below the last line from the needed window height.
7203
32cad0aa
SM
72042000-06-26 Stefan Monnier <monnier@cs.yale.edu>
7205
7206 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
7207 (Fwidget_get): Use it.
7208 (syms_of_fns): Defsubr it.
7209
2c69ced2
GM
72102000-06-26 Gerd Moellmann <gerd@gnu.org>
7211
178c5d9c 7212 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
7213 display info for XIM.
7214 (xim_open_dpy): Likewise.
7215 (xim_close_dpy): Don't free the display info's XIM.
7216
7217 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
7218
7219 * config.in (USE_XIM): New define.
7220
3fc720e4
GM
7221 * keymap.c (get_keyelt): For menu-items containing a `:filter
7222 FILTER', apply FILTER to the menu-item's definition to get the
7223 real definition to use.
7224
7225 * lisp.h (QCfilter): External declaration.
7226
2c69ced2
GM
7227 * xfns.c (Fimage_size): New function.
7228 (syms_of_xfns): Defsubr it.
7229
f978b2a2
AS
72302000-06-26 Andreas Schwab <schwab@suse.de>
7231
7232 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
7233 Fstring_as_unibyte.
7234
94cc7892
DL
72352000-06-25 Dave Love <fx@gnu.org>
7236
52283633 7237 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
94cc7892
DL
7238
7239 * Makefile.in (blockinput.h): Depend on atimer.h.
7240 (atimer.h): Depend on systime.h.
7241
52283633 7242 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
94cc7892 7243
52283633 7244 * atimer.h: Protect against multiple inclusion. Include systime.h.
94cc7892
DL
7245
7246 * lisp.h (swap_in_global_binding): Declare.
7247
b8c24556
KR
72482000-06-24 Ken Raeburn <raeburn@gnu.org>
7249
7250 * process.c (Fopen_network_stream): Turn off atimers for duration
7251 of call to connect. (Patch from Gerd.)
7252
8cf8560b
DL
72532000-06-23 Dave Love <fx@gnu.org>
7254
511c7541
DL
7255 * ralloc.c: Maybe include unistd.h
7256
8cf8560b
DL
7257 * emacs.c (setgrp): Undefine before defining.
7258 (malloc_warning, set_time_zone_rule, index): Prototype.
7259
7260 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
7261 HAVE_STRUCT_TIMEZONE.
7262
7263 * s/osf1.h: Move string.h hack here from alpha.h and make it
7264 conditional.
7265 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
7266 _XOPEN_SOURCE.
7267 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
7268 (SOCKLEN_TYPE): Don't define.
7269
7270 * m/alpha.h: Remove string.h hack.
7271
7272 * s/osf5-0.h: New file.
7273
7274 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
7275 include time.h, done by systime.h.
7276 [__FreeBSD__]: Remove redundant includes.
7277
3fc720e4 7278 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
7279 (delete_temp_file): Return Qnil to avoid warning.
7280
7281 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
7282
7283 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
7284 HAVE_X_WINDOWS.
7285
7286 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
7287
7288 * composite.h (compose_text): Declare.
7289
7290 * xterm.c: Don't include sys/types.h unconditionally. Don't
7291 protect its inclusion with !USG (following xmenu.c).
7292
ea055732
GM
72932000-06-23 Gerd Moellmann <gerd@gnu.org>
7294
7295 * xfns.c (x_create_tip_frame): Initialize frame's colors like
7296 in x_create_frame.
7297
74b01b80
EZ
72982000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
7299
7300 * coding.c (decode_eol_post_ccl): Special handling for undecided
7301 and inconsistent EOL types.
7302
64f3a166
GM
73032000-06-22 Gerd Moellmann <gerd@gnu.org>
7304
16cf31f7
GM
7305 * xrdb.c (x_load_resources): Add default resource for scroll bar's
7306 trough color and main window's background color.
7307
52283633 7308 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
16cf31f7
GM
7309
7310 * xterm.h (Xt_app_con): External declaration.
7311
7312 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 7313
486a103d
GM
7314 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
7315
64f3a166
GM
7316 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
7317 (handle_invisible_prop): Record the start of invisible text in
7318 it->add_overlay_start.
7319 (struct overlay_entry): Add member `overlay'.
7320 (handle_overlay_change): Simplify.
7321 (next_overlay_string): After having processed overlay strings at the
7322 end of the buffer, record that fact in
7323 it->overlay_strings_at_end_processed_p.
7324 (compare_overlay_entries): If before- and after-strings come
7325 from the same overlay, let before-strings come first.
7326 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
7327 (load_overlay_strings): Take it->add_overlay_start into account
7328 when adding overlay strings.
7329
7330 * dispextern.h (struct it): Add member add_overlay_start.
7331
bb746ea6
DL
73322000-06-22 Dave Love <fx@gnu.org>
7333
7334 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
7335
7336 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
7337
a8f573f3
KH
73382000-06-22 Kenichi Handa <handa@etl.go.jp>
7339
7340 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
7341 is greater than 0.
7342
9f2bbc92
DL
73432000-06-21 Dave Love <fx@gnu.org>
7344
178c5d9c 7345 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 7346
3ee5041c
SM
73472000-06-21 Stefan Monnier <monnier@cs.yale.edu>
7348
7349 * syntax.c (back_comment): Simplify string-parity counting (with
7350 the added benefit of handling multiple string-styles as long as
7351 they are not intertwined).
7352 Jump to the slow code as soon as a comment starter is found in
7353 a "string_lossage" position. Fixes the case: " /* " /* " */.
7354
4c343001
DL
73552000-06-21 Dave Love <fx@gnu.org>
7356
7357 * Makefile.in: Use GETLOADAVG_LIBS.
7358
7359 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
7360 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
7361
e6365855
SM
73622000-06-20 Stefan Monnier <monnier@cs.yale.edu>
7363
7364 * syntax.c (describe_syntax): Recognize the `n'estable bit.
7365 (Fforward_comment, scan_lists):
7366 Check the comstyle of single-char comment-starters.
7367 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
7368 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
7369 Check the comstyle of single-char comment-starters.
7370 Clarify control-flow around the Scomment case.
e6365855 7371
5700d2cc
DL
73722000-06-20 Dave Love <fx@gnu.org>
7373
d355bd8a
SM
7374 * fns.c (make_hash_table, maybe_resize_hash_table):
7375 Cast arg of next_almost_prime.
5700d2cc 7376
178c5d9c 7377 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
7378
7379 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
7380 and unistd.h.
7381
4a27bdfb
GM
73822000-06-20 Gerd Moellmann <gerd@gnu.org>
7383
a61d762c 7384 * keyboard.c (adjust_point_for_property): Check if display
52283633 7385 property should be treated as intangible by looking at its value.
a61d762c 7386
178c5d9c 7387 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
7388 (display_prop_intangible_p): New functions.
7389
7390 * dispextern.h (display_prop_intangible_p): Add prototype.
7391
7392 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 7393
4a27bdfb
GM
7394 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
7395 argument to sigprocmask.
7396
7397 * s/sco5.h (sigblock): Redefined to pass a pointer as second
7398 argument to sigprocmask.
7399
7400 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
7401 sigprocmask_set, and pass a pointer to it to sigprocmask.
7402
7403 * sysdep.c (sigprocmask_set): New variable.
7404
7405 * fileio.c (make_temp_name): Don't use `%s' in string passed to
7406 report_file_error.
7407
427ec082
SS
74082000-06-20 Sam Steingold <sds@gnu.org>
7409
7410 * xrdb.c: Don't declare xmalloc, xrealloc.
7411
8972fe79 74122000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
7413
7414 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
7415 (re_comp): Cast gettext return value to avoid complaints when
7416 !HAVE_LIBINTL.
7417
074b6efe
DL
74182000-06-20 Dave Love <fx@gnu.org>
7419
52283633 7420 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
f85c008a 7421
5700d2cc 7422 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 7423
d355bd8a 7424 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
7425
7426 * m/alpha.h: Don't declare xmalloc, xrealloc.
7427
0af4f205
DL
7428 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
7429
7430 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
7431
7432 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
7433
7434 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
7435 HAVE_GETWD.
7436
074b6efe
DL
7437 * keyboard.h (poll_for_input_1): Declare.
7438
7439 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
7440
7441 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
7442
7443 * doprnt.c: Don't declare xmalloc, xrealloc.
7444
7445 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
7446 (getenv, ctime, getwd): Removed.
7447 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
7448
7449 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
7450 x_set_tool_bar_lines.
7451
7452 * config.in: Add HAVE_GETWD. Move some definitions above
7453 machine/system includes.
7454
68a5e97b
KH
74552000-06-20 Kenichi Handa <handa@etl.go.jp>
7456
95417e1e
KH
7457 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
7458
68a5e97b
KH
7459 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
7460 contain information about ENCODING.
7461
7462 * fontset.c (FONTSET_ASCII): Use the first element of char table
7463 for an ASCII font, not defalt slot.
7464 (fontset_ref_via_base): If FONTSET doesn't contain information for
7465 C, try the default fontset.
7466 (make_fontset): Don't copy the default fontset.
7467 (fontset_font_pattern): Likewise.
7468 (accumulate_font_info): If ELT is nil, use the corresponding
7469 element in the default fontset.
7470
3b4fa1b2
DL
74712000-06-19 Dave Love <fx@gnu.org>
7472
943e731c
DL
7473 * syntax.c (Fparse_partial_sexp): Doc fix.
7474
7475 * regex.h: Test PROTOTYPES as well as __STDC__.
7476
3b4fa1b2
DL
7477 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
7478 errno, strerror. Put text after #endif in comment.
7479
52283633 7480 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
3b4fa1b2
DL
7481
7482 * xterm.c (x_frame_of_widget): Likewise.
7483
cdf0357b
GM
74842000-06-19 Gerd Moellmann <gerd@gnu.org>
7485
7486 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
7487 to Vfundamental_mode_abbrev_table.
7488
7489 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
7490 bogus objects are marked. This slows down GC by ~80 percent, but
7491 it might be worth trying when debugging GC-related problems.
7492 This feature requires conservative stack marking to be enabled.
7493
7494 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
7495 returns XLookupChars, reset `modifiers' to zero.
7496
998e9f8c
DL
74972000-06-19 Dave Love <fx@gnu.org>
7498
7499 * mktime.c: Unprotoized.
7500
18e21ce8 75012000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
7502
7503 * data.c (set_internal): If variable is frame-local,
7504 store the new value immediately into the frame parameter alist.
7505
140c4ac6
KR
75062000-06-19 Ken Raeburn <raeburn@gnu.org>
7507
14358466
KR
7508 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
7509 in the custom handler pointer.
7510
140c4ac6
KR
7511 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
7512 value, or checks for CHAR_META can fail when Lisp_Object is a
7513 union type.
7514 * keymap.c (get_keyelt): Likewise.
7515
10d7bf84
KH
75162000-06-19 Kenichi Handa <handa@etl.go.jp>
7517
7518 * ccl.h (struct ccl_program): New member eol_type.
7519 (struct ccl_spec): New member cr_carryover.
7520
7521 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
7522 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
7523
7524 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
7525 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
7526 (decode_eol_post_ccl): New function.
7527 (decode_coding): Don't detect EOL format here for CCL based coding
7528 systems.
7529 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
7530 decode_eol_post_ccl after running the CCL program.
7531 (code_convert_region): Don't detect EOL format here for CCL based
7532 coding systems.
7533 (decode_coding_string): Likewise.
7534
52e386c2
KR
75352000-06-18 Ken Raeburn <raeburn@gnu.org>
7536
7537 * charset.c (update_charset_table): Use XINT on "iso_final_char"
7538 when treating it as an integer.
7539
7540 * coding.h (encode_coding_string): Declare.
7541
7542 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
7543 it as an integer.
7544
7545 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
7546 "xkeymap" to avoid shadowing the "enum map_type" value that needs
7547 to be passed to get_local_map.
7548
7549 * sound.c (Fplay_sound): Don't call make_number on
7550 Frun_hook_with_args count argument.
7551
7552 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
7553 for lisp objects in X event structure data field, when lisp
7554 objects are represented with unions.
7555 (x_scroll_bar_to_input_event): Ditto.
7556
b357b9d4
KR
75572000-06-16 Ken Raeburn <raeburn@gnu.org>
7558
7559 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
7560 termination of string. Fix sense of test whether
7561 Vline_number_display_limit is an integer.
b357b9d4 7562
a871441d
GM
75632000-06-16 Gerd Moellmann <gerd@gnu.org>
7564
a9021acd
GM
7565 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
7566 only if HAVE_X_WINDOWS.
7567
6344985d
GM
7568 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
7569 of titles.
7570
427ec082 7571 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
7572 out of bounds.
7573
228b083e
EZ
75742000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
7575
7576 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
7577 of its headers.
7578
c25b53a2
KH
75792000-06-15 Kenichi Handa <handa@etl.go.jp>
7580
7581 * coding.c (decode_coding_emacs_mule): Always set src_base at the
7582 start of the while loop.
7583
a6981b11
GM
75842000-06-15 Gerd Moellmann <gerd@gnu.org>
7585
e9924e52
GM
7586 * atimer.c (alarm_signal_handler): Add forward declaration.
7587
a6981b11
GM
7588 * data.c (set_internal): Remove debug code.
7589
25fa6deb
GM
75902000-06-14 Gerd Moellmann <gerd@gnu.org>
7591
dce6b995
GM
7592 * Makefile.in (bootstrap-temacs): Add `-I../src'.
7593
9f817ea4
GM
7594 * unexec.c (toplevel) [COFF]: Include coff.h.
7595
7596 * s/lynxos.h: New file.
7597
7598 * keymap.c (Fsingle_key_description): Enclose function key and
7599 event symbol names in angle brackets.
7600
8a4e3c0c
GM
7601 * xdisp.c (setup_echo_area_for_printing): Call
7602 message_log_maybe_newline if message_buf_print is not set.
7603
7604 * print.c (printchar, strout): Don't check message_buf_print
427ec082 7605 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
7606 function does something useful even when message_buf_print is
7607 already set.
7608
52283633
SM
7609 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
7610 New variables.
25fa6deb
GM
7611 (ensure_echo_area_buffers): Initialize echo buffer's
7612 truncate lines setting to nil.
7613 (with_echo_area_buffer): Don't set the echo buffer's truncate
7614 lines setting here.
8a4e3c0c 7615 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
7616 of message_truncate_lines.
7617 (resize_mini_window): Handle case that lines are truncated.
52283633
SM
7618 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
7619 DEFVAR_BOOL message-truncate-lines.
25fa6deb
GM
7620
7621 * keyboard.c (read_char): Bind message-truncate-lines to t
7622 while displaying a help-echo.
7623
7624 * lisp.h (Qmessage_truncate_lines): External declaration.
7625
163dcff3
GM
76262000-06-13 Gerd Moellmann <gerd@gnu.org>
7627
1681ead6
GM
7628 * xdisp.c (Vline_number_display_limit): Renamed from
7629 line_number_display_limit.
7630 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
7631 Extend documentation string. Initialize
7632 Vline_number_display_limit to nil meaning no limit.
7633 (decode_mode_spec): Use Vline_number_display_limit with its new
7634 meaning.
7635
163dcff3
GM
7636 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
7637
18e21ce8 76382000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
7639
7640 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 7641
163dcff3
GM
7642 * xfns.c (x_set_frame_parameters): Comment fix.
7643
7644 * frame.c (store_frame_param): Call swap_in_global_binding if the
7645 variable's current binding was chosen based on this frame.
7646
7647 * data.c (swap_in_global_binding): New function.
7648
a704139d
EZ
76492000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
7650
7651 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
7652 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
7653
9b6610db
EZ
76542000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
7655
7656 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
7657
c68833d2
JR
76582000-06-12 Jason Rumney <jasonr@gnu.org>
7659
7660 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
7661
7662 * w32.h (EMACS_W32_H): Renamed from _NT_H_
7663
7664 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
7665
7666 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
7667
ed1056b3
GM
76682000-06-12 Gerd Moellmann <gerd@gnu.org>
7669
7670 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
7671 (syms_of_xfaces): Defsubr Sdump_colors.
7672 (x_free_colors): Don't treat b&w specially on default visual.
7673 (x_free_dpy_colors): New function.
7674 (free_face_colors): Don't check visual class; it's done
7675 in x_free_colors.
7676
7677 * xterm.c (x_frame_of_widget): New function.
7678 (x_alloc_nearest_color_for_widget): Use it.
7679 (x_copy_dpy_color): New function.
7680 (x_destroy_window): Free various colors.
7681
5050a2ef
KH
76822000-06-12 Kenichi Handa <handa@etl.go.jp>
7683
7684 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
7685
7686 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
7687
7688 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
7689
7690 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
7691
7692 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
7693
fb1b041d
DL
76942000-06-11 Dave Love <fx@gnu.org>
7695
7696 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
7697
ff96b5f4
EZ
76982000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
7699
7700 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
7701
db8eeecd
GM
77022000-06-11 Gerd Moellmann <gerd@gnu.org>
7703
ed1056b3 7704 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
7705 to `XEvent *'.
7706
49b71c5f
KH
77072000-06-10 Kenichi Handa <handa@etl.go.jp>
7708
c479bd55
KH
7709 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
7710 (regex_compile): Fix the code for handling the case of single byte
7711 char and multibyte char being mixed in a range within [...].
7712
ff6a65c2
KH
7713 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
7714 and dst_multibyte members of coding.
7715
49b71c5f
KH
7716 * charset.c (update_charset_table): Update the table
7717 bytes_by_char_head.
7718 (init_charset_once): Initialize elements of bytes_by_char_head to
7719 1 except for leading codes for private charases.
7720
7721 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
52283633 7722 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
49b71c5f 7723
9e80b57d
KR
77242000-06-09 Ken Raeburn <raeburn@gnu.org>
7725
7726 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
7727 access the data it doesn't point to.
7728
f83fe4b4
GM
77292000-06-08 Gerd Moellmann <gerd@gnu.org>
7730
7731 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 7732 will be translated to a switch-frame event when reading the
f83fe4b4
GM
7733 event queue. This is necessary because Emacs otherwise won't
7734 perform a switch-frame to a new frame until some other event, for
7735 example a keystroke event, forces it to do so. This has various
7736 effects, one visible being that the cursor of a frame created with
7737 C-x 5 2 or switched to with a window manager key binding like
7738 A-TAB stays hollow because selected_window isn't on the newly
7739 focused frame until the switch-frame is performed.
7740
7741 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
7742 generating a switch-frame event if necessary.
7743
7744 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
7745
7746 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
7747 it's an integer.
7748
0890801b
KH
77492000-06-08 Kenichi Handa <handa@etl.go.jp>
7750
52283633 7751 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
0890801b 7752
173cbca8
GM
77532000-06-07 Gerd Moellmann <gerd@gnu.org>
7754
3091c2a6
GM
7755 * window.c (displayed_window_lines): Take empty lines at
7756 the bottom of a window into account.
427ec082 7757
f38952fe
GM
7758 * window.c (displayed_window_lines): New function.
7759 (Fmove_to_window_line): Use displayed_window_lines to determine
7760 the number of lines to move, instead of using the window's height.
7761
7762 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
7763 to stop reading, even if the form read sets point to a different
7764 value when evaluated.
7765
427ec082 7766 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
7767 put the cursor.
7768
6ba6c818
KH
77692000-06-07 Kenichi Handa <handa@etl.go.jp>
7770
7771 * fileio.c (e_write): Free composition data if stored in
7772 coding->cmp_data.
7773
5f1aea9a
GM
77742000-06-06 Gerd Moellmann <gerd@gnu.org>
7775
666852af
GM
7776 * xdisp.c (display_line): Set row's and iterator's
7777 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
7778 Set cursor even if row ends in the middle of a character.
7779 (dump_glyph_row): Print values of new flags.
7780 (redisplay_window) <cursor movement in unchanged window>: When
7781 point has been moved forward, and PT is at the end of the cursor
7782 row, don't place the cursor in the next row if the cursor row ends
7783 in the middle of a character or at ZV.
7784
7785 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
7786 (struct glyph_row): Add starts_in_middle_of_char_p and
7787 ends_in_middle_of_char_p.
7788 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
7789 ends_in_middle_of_char_p flag.
7790 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
7791
d13f3e2e
GM
7792 * term.c (append_glyph): Revert change of 2000-06-06.
7793
7794 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
7795 padding glyph not fitting on line as whole character not
7796 fitting on line.
7797
5f1aea9a
GM
7798 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
7799 this isn't true for images with `:ascent 100'.
7800
10cda9b0
KH
78012000-06-06 Kenichi Handa <handa@etl.go.jp>
7802
ed00559d
KH
7803 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
7804 as modified if it is originally unmodified.
7805
10cda9b0
KH
7806 * term.c (encode_terminal_code): Change the way to check if
7807 terminal coding does any conversion.
7808 (append_glyph): Set glyph->pixel_width correctly.
7809
7810 * xdisp.c (display_line): While checking line continuation, pay
7811 attention to a padding glyph.
7812
1969fae2
GM
78132000-06-05 Gerd Moellmann <gerd@gnu.org>
7814
7815 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
7816
162ccef4
DL
78172000-06-05 Dave Love <fx@gnu.org>
7818
f19f32dd
DL
7819 * xdisp.c: Include fontset.h.
7820
7821 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
7822
7823 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
7824
7825 * dispnew.c: Conditionally include term.h.
7826
7827 * coding.h: Declare code_convert_string_norecord.
7828
7829 * frame.h (struct frame): Use volatile unconditionally.
7830
7831 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
7832
7833 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
7834
7835 * systime.h: Protect against multiple inclusion.
7836 (timezone) [USG5_4]: Define as time_t.
7837
7838 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
7839 (Foptimize_char_table, make_temp_name): Declare.
7840
7841 * Makefile.in (xdisp.o): Depend on fontset.h.
7842
7843 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
7844
7845 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
7846 (Foptimize_char_table, make_temp_name): Declare.
7847
427ec082 7848 * s/irix4-0.h:
162ccef4
DL
7849 * s/irix5-0.h:
7850 * s/netbsd.h: Don't define autoconfiscated MATHERR.
7851
2082fe81
DL
78522000-06-02 Dave Love <fx@gnu.org>
7853
7854 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
7855
dcf671d2
GM
78562000-06-02 Gerd Moellmann <gerd@gnu.org>
7857
7858 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 7859 result face, set flags in that face indicating that colors may not
dcf671d2
GM
7860 be freed.
7861
7862 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
7863 glyph, use the ASCII NUL character to determine the face.
7864
d42122a3
DL
78652000-06-02 Dave Love <fx@gnu.org>
7866
7867 * sysdep.c: Conditionally include stdlib.h, unistd.h.
7868 (VFORK_RETURN_TYPE): Remove.
427ec082 7869
d42122a3
DL
7870 * config.in: Add NO_MATHERR.
7871
dd432f16
DL
78722000-06-01 Dave Love <fx@gnu.org>
7873
90aa4ea8
DL
7874 * cmds.c (internal_self_insert): Don't check
7875 Vbefore_change_function, Vafter_change_function.
7876
7877 * insdel.c (signal_before_change, signal_after_change): Likewise.
7878
7879 * buffer.c (Vbefore_change_function, Vafter_change_function):
7880 Variables and their initializations deleted.
7881
2330c9d4
DL
7882 * callint.c (Fcall_interactively): Doc fix.
7883
dd432f16
DL
7884 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
7885
bf9e8804
DL
78862000-05-31 Dave Love <fx@gnu.org>
7887
7888 * textprop.c: Revert last change -- duplicated.
7889
3694b4ab
GM
78902000-05-31 Gerd Moellmann <gerd@gnu.org>
7891
7892 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
7893 in #if 0.
7894
7895 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
7896
f14156cd
JR
78972000-05-31 Jason Rumney <jasonr@gnu.org>
7898
8119aab8
JR
7899 * search.c (Fre_search_forward, Fre_search_backward)
7900 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
7901
f14156cd
JR
7902 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
7903
4aab9be3
JR
79042000-05-30 Jason Rumney <jasonr@gnu.org>
7905
7906 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
7907 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
7908
52283633 7909 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
4aab9be3
JR
7910
7911 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
7912 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
7913 expand a nil default_filename.
7914
7915 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
7916 pointer to glyph_to_pixel_coords, not a frame.
7917
7918 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
7919 coding.h to dependencies.
7920
7921 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
7922
7923 * w32console.c (glyph_to_pixel_coords): Change first parameter to
7924 window pointer to be consistent with w32term.c and xterm.c.
7925
7926 * w32fns.c: Format and doc changes to bring closer to xfns.c.
7927 (VIETNAMESE_CHARSET): Define if not defined in system headers.
7928 (Qline_spacing, Qcenter): New variables.
7929 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
7930 (x_set_line_spacing): New function.
52283633 7931 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
4aab9be3
JR
7932 (x_specified_cursor_type): New function.
7933 (x_set_cursor_type): Use it.
7934 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
7935 and icon strings.
7936 (validate_x_resource_name, x_get_resource_string): Measure lengths
7937 of external strings in bytes.
7938 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
7939 GetTextExtentPoint32 with NULL title.
7940 (Fx_create_frame): Initialize Qline_spacing.
7941 (w32_load_system_font): Initialize font->double_byte_p.
7942 (x_to_w32_charset): Use Vw32_charset_info_alist.
7943 (Image, busy cursor, tooltip functions): Merged changes from
7944 xfns.c. Not yet functional on Windows.
7945
7946 * w32gui.h (W32FontStruct): Add double_byte_p member.
7947
7948 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
7949 (emacs_button_translation): Use it.
7950 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
7951 in `mask' to be set.
7952
7953 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
7954 menu strings.
7955
7956 * w32term.c: Format and doc changes to bring closer to xterm.c.
7957 (w32_char_font_type): New enum.
7958 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
7959 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
7960 (w32_encode_char): New function.
7961 (x_encode_char): Removed.
7962 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
7963 x_encode_char and w32_font_is_double_byte.
7964 (x_produce_image_glyph): Use image_ascent.
7965 (x_produce_glyphs): Use new version of w32_per_char_metric and
7966 handle NULL return value. Allow extra line spacing.
7967 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
7968 (w32_get_glyph_overhangs): Remove unicode_p param. Use
7969 w32_font_type member of glyph instead.
7970 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
7971 (fast_find_position): Make sure not to consider rows not visible
7972 in the window.
7973 (w32_read_socket) [WM_MENUSELECT]: Cannot call
7974 w32_menu_display_help with input blocked, as it can abort.
7975 (x_display_and_set_cursor): Choose cursor depending
7976 on buffer-local value of cursor_type.
7977 (x_draw_bar_cursor): Add parameter WIDTH.
7978
7979 * w32term.h (CP_DEFAULT): Define.
7980 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
7981
10fc3187
GM
79822000-05-30 Gerd Moellmann <gerd@gnu.org>
7983
7984 * search.c (Fre_search_forward, Fre_search_backward)
7985 (Fposix_search_backward, Fposix_search_forward): Doc fix.
7986
d0555360
KH
79872000-05-30 Kenichi Handa <handa@etl.go.jp>
7988
7989 * coding.c (detect_coding_iso2022): Fix code for checking
7990 CODING_CATEGORY_MASK_ISO_8_2.
7991
f1ad044f
SM
79922000-05-29 Stefan Monnier <monnier@cs.yale.edu>
7993
7994 * regex.c (PREFETCH_NOLIMIT): New function.
7995 (re_match_2_internal): Use it and adjust the end_match_2 logic.
7996
84ec3b4b
GM
79972000-05-29 Gerd Moellmann <gerd@gnu.org>
7998
66254a13
GM
7999 * syntax.c (find_defun_start): Move test for
8000 open_paren_in_column_0_is_defun_start outside of the loop.
8001
49e70dec
GM
8002 * xdisp.c (redisplay_window): Really switch buffers when
8003 displaying mode lines, and temporarily set selected_frame to the
8004 frame of the window that's redisplayed.
8005
84ec3b4b
GM
8006 * xfaces.c (free_realized_faces): Block/unblock input.
8007 (free_realized_multibyte_face): Ditto.
8008
869a3a14
DL
80092000-05-29 Dave Love <fx@gnu.org>
8010
8011 * textprop.c (Qkeymap): New variable.
8012 (syms_of_textprop): Intern it.
8013
8014 * keymap.c: Include intervals.h.
8015 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
8016
8017 * Makefile.in (keymap.o): Depend on intervals.h.
8018
8019 * keyboard.c (menu_bar_items, tool_bar_items)
8020 (Fexecute_extended_command): Deal with `keymap' property.
8021 (read_key_sequence): Track map from `keymap' property as well as
8022 `local_map'.
8023
8024 * intervals.c (get_local_map): Extra arg to allow looking for
8025 `keymap' too.
8026
8027 * intervals.h (map_property): New enum.
8028 (get_local_map): Extra arg using it.
8029 (Qkeymap): Declare.
8030
84ec3b4b 8031 * lisp.h (get_local_map): Don't declare here.
869a3a14 8032
89d0c844
KH
80332000-05-29 Kenichi Handa <handa@etl.go.jp>
8034
8035 * Makefile.in (callproc.o): Depend on composite.h.
8036
8037 * callproc.c: Include composite.h.
8038 (Fcall_process): Handle composition correctly.
8039
8040 * coding.h (coding_allocate_composition_data): Extern it.
8041 (coding_restore_composition): Likewise.
8042
8043 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
8044 yet allocated, finish decoding with result
8045 CODING_FINISH_INSUFFICIENT_CMP.
8046 (coding_allocate_composition_data): Make it non-static.
8047 (coding_restore_composition): Likewise.
8048
797a084a
EZ
80492000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
8050
8051 * charset.c (syms_of_charset): Revert last change.
8052
cf872af5
EZ
80532000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
8054
8055 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
8056 charsets as unibyte, with 1-column screen width. Sent by Kenichi
8057 Handa.
cf872af5 8058
5b1ae051
EZ
80592000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
8060
8061 * charset.c (syms_of_charset): Set width of character sets
8062 eight-bit-control and eight-bit-graphic to 1 column.
8063
34ec9ebe
GM
80642000-05-26 Gerd Moellmann <gerd@gnu.org>
8065
8066 * config.in (HAVE_SPEED_T): New define.
8067
8068 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
8069 `extern speed_t'.
8070
dd854dc2
DL
80712000-05-26 Dave Love <fx@gnu.org>
8072
8073 * coding.c (shrink_decoding_region): Initialize eol_conversion.
8074
8075 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
8076 (Fsubr_arity): New function.
8077 (syms_of_data): Install them.
8078
ba9f8f95
KH
80792000-05-26 Kenichi Handa <handa@etl.go.jp>
8080
0f3e0672
KH
8081 * charset.c (init_charset_once): Set the table bytes_by_char_head
8082 correctly.
8083
cebefb44
KH
8084 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
8085 the default fontset to what Emacs uses by default.
0f3e0672
KH
8086 (check_registry_encoding): This function deleted.
8087 (Fset_fontset_font): Remove the adhoc condition for the default
8088 fontset. Allow cons in FONTNAME.
cebefb44 8089
0f3e0672
KH
8090 * fns.c (map_char_table): Ignore char-table entries for
8091 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 8092
7a18af49
KR
80932000-05-25 Ken Raeburn <raeburn@gnu.org>
8094
8095 * emacs.c (main): Initialize keyboard syms before initializing
8096 window code, so face names are available.
8097
d2af47df
SM
80982000-05-25 Stefan Monnier <monnier@cs.yale.edu>
8099
8100 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
8101 of an anchor at the beginning of a shy-group.
8102
fc6a6a4e
GM
81032000-05-25 Gerd Moellmann <gerd@gnu.org>
8104
8105 * xdisp.c (handle_invisible_prop): Don't try to skip over
8106 invisible text if end of text is already reached.
8107
005f0d35
DL
81082000-05-25 Dave Love <fx@gnu.org>
8109
02513cdd
DL
8110 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
8111
005f0d35
DL
8112 * coding.c (encode_eol): Add null statement after label.
8113
89f6ca4e
EZ
81142000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
8115
8116 * w16select.c (Fw16_set_clipboard_data): Fix the change from
8117 2000-05-20.
8118
a4e1759e
KH
81192000-05-25 Kenichi Handa <handa@etl.go.jp>
8120
8121 * ccl.c (ccl_driver): Fix previous change.
8122
eacfd7fe
KH
81232000-05-25 Kenichi Handa <handa@etl.go.jp>
8124
46ab33a9
KH
8125 * coding.c (run_pre_post_conversion_on_str): Set point to the
8126 beginning of buffer before calling coding->post_read_conversion.
8127 (decode_coding_string): Give correct args to
8128 run_pre_post_conversion_on_str.
8129 (encode_coding_string): Likewise.
8130
eacfd7fe
KH
8131 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
8132 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
8133 eight-bit-graphic correctly.
8134
f8569325
DL
81352000-05-24 Kenichi HANDA <handa@etl.go.jp>
8136
8137 * fileio.c (Finsert_file_contents): Even if a file is not found,
8138 execute codes for setting up coding system. Call
8139 after-insert-file-functions unconditionally.
8140
04545643
GM
81412000-05-24 Gerd Moellmann <gerd@gnu.org>
8142
8143 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
8144 BSD_PGRPS are not defined.
8145
747d90ea
KH
81462000-05-24 Kenichi Handa <handa@etl.go.jp>
8147
8148 * charset.c (update_charset_table): Accept nil in LONG_NAME and
8149 DESCRIPTION.
8150 (syms_of_charset): Avoid building same strings.
8151
716e3b88
GM
81522000-05-23 Gerd Moellmann <gerd@gnu.org>
8153
8154 * lread.c (Fload): Add a comment about the meaning of
8155 Vuser_init_file being t.
8156
8157 * puresize.h (BASE_PURESIZE): Increase to 675000.
8158
8159 * s/gnu-linux.h (setpgrp): Don't define it here because this
8160 prevents compilation on GNU/Linux systems with glib 2.2.
8161
8162 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
8163 as setpgid.
427ec082 8164
9aeb39fa
EZ
81652000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
8166
8167 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
8168 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
8169 version.
8170 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
8171
29ced61b
KH
81722000-05-23 Kenichi Handa <handa@etl.go.jp>
8173
52283633 8174 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
0574a2ed 8175
3d80f24d
KH
8176 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
8177
52283633 8178 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
3d80f24d 8179
29ced61b
KH
8180 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
8181
d7e00792
KH
81822000-05-22 Kenichi Handa <handa@etl.go.jp>
8183
c9d80d38
KH
8184 * keyboard.c (read_char): Allow character codes 128..255 to be
8185 handled by input-method-function.
8186
d7e00792
KH
8187 * insdel.c (adjust_markers_for_replace): Fix previous change.
8188 (adjust_after_replace): If PREV_TEXT is nil, call
8189 adjust_markers_for_insert, not adjust_markers_for_replace.
8190
087121cc 81912000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 8192
087121cc
GM
8193 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
8194 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
8195 [HAVE_GRANDPT]: Define.
8196 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
8197
8198 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
8199 like SYSV_PTYS.
8200
8201 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
8202
8203 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
8204
c9671f81
KH
82052000-05-20 Kenichi Handa <handa@etl.go.jp>
8206
8207 The following changes are to handle 8-bit characters in a
8208 multibyte buffer/string without facing with byte combining
8209 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
8210 eight-bit-graphic (for 0xA0..0xFF) are introduced.
8211
8212 * Makefile.in (fns.o): Depend on charset.h.
8213
8214 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
8215 convert it to unibyte.
8216 (make_string): Use parse_str_as_multibyte, not chars_in_text.
8217
8218 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
8219 apparent char boundary.
8220 (Fset_buffer_multibyte): Convert 8-bit characters in the range
8221 0x80..0x9F to/from multibyte form.
8222
8223 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
8224 to unibyte.
8225
8226 * callproc.c (Fcall_process): Always encode an argument string if
8227 it is multibyte. Setup src_multibyte and dst_multibyte members of
8228 process_coding properly.
ce75fd23 8229
c9671f81
KH
8230 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
8231 SPLIT_NON_ASCII_CHAR.
8232
8233 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
8234 as is.
8235 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
8236
52283633 8237 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
c9671f81 8238 (SPLIT_CHARACTER_SEQ): This macro deleted.
52283633 8239 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
c9671f81
KH
8240 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
8241 and eight-bit-graphic.
8242 (char_to_string): Likewise. Signal an error for too large
8243 character code.
8244 (char_printable_p): Return 0 for 8-bit characters.
8245 (update_charset_table): Update iso_charset_table only when a final
8246 character is non-negative.
8247 (find_charset_in_text): Renamed from find_charset_in_str.
8248 Arguments and return value changed. Callers changed.
8249 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
8250 be -1 if CHARSET is used only internally.
8251 (Fmake_char_internal): Handle new charsets; eight-bit-control and
8252 eight-bit-graphic.
8253 (Fcharset_after): Simplified.
8254 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
8255 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
8256 (multibyte_chars_in_text): Simplified by assuming there's no
8257 invalid multibyte sequence.
52283633
SM
8258 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
8259 (str_as_unibyte): New functions.
8260 (Fstring): Simpified by assuming that byte combining never happens.
c9671f81
KH
8261 (init_charset_once): Initialization for
8262 LEADING_CODE_8_BIT_CONTROL.
8263 (syms_of_charset): Intern and staticpro Qeight_bit_control and
8264 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
8265 eight-bit-control and eight-bit-graphic.
8266
52283633
SM
8267 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
8268 (CHARSET_8_BIT_GRAPHIC): New macros.
c9671f81
KH
8269 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
8270 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
8271 (CHARSET_REVERSE_CHARSET): Likewise.
8272 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
8273 eight-bit-graphic.
8274 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
8275 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
8276 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
8277 encounter an invalid multibyte sequence.
8278 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
8279 sequence is always valid.
8280 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
52283633 8281 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
c9671f81
KH
8282 (CHAR_STRING): For 8-bit characters, call char_to_string.
8283 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
8284 multibyte sequence is always valid.
8285 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
52283633
SM
8286 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
8287 (str_as_unibyte): Extern them.
c9671f81 8288 (BCOPY_SHORT): Fix a bug.
52283633 8289 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
c9671f81
KH
8290 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
8291 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
8292 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
8293
bd4bde7f 8294 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81 8295 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
52283633
SM
8296 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
8297 (EMIT_BYTES): New macros.
8298 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
8299 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
c9671f81
KH
8300 macros deleted.
8301 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
8302 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
8303 check the validity of multibyte sequence.
8304 (decode_coding_emacs_mule): New function.
8305 (encode_coding_emacs_mule): New macro.
8306 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
8307 the source.
8308 (DECODE_ISO_CHARACTER): Just return a character code.
8309 (DECODE_COMPOSITION_START): Set coding->result instead of result.
8310 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
8311 EMIT_CHAR to produced decoded characters. Exit the loop only by
8312 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
8313 block here.
8314 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
8315 only position codes for an invalid character.
8316 (encode_designation_at_bol): Return new destination pointer. 5th
8317 arg DSTP is changed to DST.
8318 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
8319 from the source by ONE_MORE_CHAR. Don't handle the case of last
8320 block here.
8321 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
8322 macros deleted.
52283633
SM
8323 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
8324 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
c9671f81
KH
8325 TWO_MORE_BYTES to fetch a byte from the source.
8326 (encode_eol): Pay attention to coding->src_multibyte.
8327 (detect_coding, detect_eol): Preserve members src_multibyte and
8328 dst_multibyte.
8329 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
8330 (encoding_buffer_size): Set magnification to 3 for all coding
8331 systems that require encoding.
8332 (ccl_coding_driver): For decoding, be sure that the result is
8333 valid multibyte sequence.
8334 (decode_coding): Initialize coding->errors and coding->result.
8335 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
8336 and raw-text, always call decode_eol. Handle the case of last
8337 block here. If not coding->dst_multibyte, convert the resulting
8338 sequence to unibyte.
8339 (encode_coding): Initialize coding->errors and coding->result.
8340 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
8341 and raw-text, always call encode_eol. Handle the case of last
8342 block here.
8343 (shrink_decoding_region, shrink_encoding_region): Detect cases
8344 that we can't skip data more rigidly.
8345 (code_convert_region): Setup src_multibyte and dst_multibyte
8346 members of coding. For decoding, if the buffer is multibyte,
8347 convert the source sequence to unibyte in advance. For encoding,
8348 if the buffer is multibyte, convert the resulting sequence to
8349 multibyte afterward.
8350 (run_pre_post_conversion_on_str): New function.
8351 (code_convert_string): Deleted and divided into the following two.
8352 (decode_coding_string, encode_coding_string): New functions.
8353 (code_convert_string1, code_convert_string_norecord): Call one of
8354 above.
8355 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
8356 MAKE_NON_ASCII_CHAR.
52283633
SM
8357 (Fset_terminal_coding_system_internal)
8358 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
c9671f81
KH
8359 and dst_multibyte members.
8360 (init_coding_once): Initialize iso_code_class with new enum
8361 ISO_control_0 and ISO_control_1.
8362
8363 * coding.h (enum iso_code_class_type): Member ISO_control_code is
8364 devided into ISO_control_0 and ISO_control_1.
8365 (struct coding_system): New members src_multibyte, dst_multibyte,
8366 errors, and result. Delete member fake_multibyte.
8367 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
8368 nonzero.
8369 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
8370 nonzero.
8371
8372 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
8373 (Faset): Likewise.
8374
8375 * editfns.c (Fformat): Be sure to convert 8-bit characters to
8376 multibyte form.
8377 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
8378 combining occurs.
8379 (Ftranspose_region): Delete codes for handling byte combining.
8380
8381 * fileio.c (Finsert_file_contents): Setup src_multibyte and
8382 dst_multibyte members of coding. On handling REPLACE on unibyte
8383 buffer, convert the result of decode_coding to unibyte. On
8384 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 8385 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
8386 multibyteness of the source (buffer or string).
8387
8388 * fns.c (concat): Handle 8-bit characters correctly.
8389 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
8390 unibyte in the result.
8391 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
8392 valid multibyte form in the result.
8393 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
8394 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
8395 return -1, signal an error.
8396 (base64_encode_1): New arg MULTIBYTE. Get each character by
8397 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
8398 character is found, return -1.
8399 (Fbase64_decode_region): Delete codes for handling byte-combining.
8400 Treat each decoded byte as a unibyte character.
8401 (Fbase64_decode_string): Return unibyte string.
8402 (Fcompare_strings, concat, string_byte_to_char): Use
8403 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
8404 FETCH_STRING_CHAR_ADVANCE.
8405 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
8406 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
8407
8408 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
8409 SPLIT_NON_ASCII_CHAR.
8410 (fontset_ref_via_base, fontset_set): Likewise
8411
8412 * insdel.c (adjust_markers_for_record_delete): Deleted.
8413 (adjust_markers_for_insert): Argument changed. Caller changed.
8414 (adjust_markers_for_replace): Likewise.
52283633
SM
8415 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
8416 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
c9671f81
KH
8417 (copy_text): Delete unused local varialbe c_save. For converting
8418 to multibyte, be sure to make all 8-bit characters in valid
8419 multibyte form.
8420 (count_size_as_multibyte): Handle 8-bit characters correctly.
52283633
SM
8421 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
8422 (adjust_after_replace, replace_range, del_range_2)
c9671f81 8423 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
52283633
SM
8424 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
8425 (adjust_after_replace, replace_range, del_range_2) Delete codes for
c9671f81
KH
8426 handling byte combining.
8427 (adjust_before_replace): Deleted.
427ec082 8428
c9671f81
KH
8429 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
8430 SPLIT_NON_ASCII_CHAR.
8431 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
52283633 8432 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
8433 (Fkey_description): Likewise.
8434
8435 * lread.c (read1): On reading multibyte string, be sure to make
8436 all 8-bit chararacters in valid multibyte form.
8437 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
8438
8439 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
8440 unconditionally.
8441
8442 * process.c (Fstart_process): GCPRO current_dir before calling
8443 Ffind_operation_coding_system. Encode arguments here.
8444 (create_process): Don't encode arguments here. Setup
8445 src_multibyte and dst_multibyte members of struct coding.
8446 (read_process_output): Setup src_multibyte and dst_multibyte
8447 members of struct coding. If the output is to multibyte buffer,
8448 always decode the output of the process. Adjust the
52283633 8449 representation of 8-bit characters to the multibyteness of the output.
c9671f81
KH
8450 (send_process): Setup coding->src_multibyte according to the
8451 multibyteness of the source.
8452
52283633 8453 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
8454 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
8455 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
8456
52283633 8457 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
c9671f81
KH
8458
8459 * w16select.c (Fw16_set_clipboard_data): Setup members
8460 src_multibyte and dst_multibyte of coding. Adjusted for the
8461 change for find_charset_in_str.
8462 (Fw16_get_clipboard_data): Likewise.
8463
8464 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
8465 dst_multibyte of coding.
8466 (x_to_w32_font): Likewise.
8467
8468 * w32select.c (Fw32_set_clipboard_data): Setup members
8469 src_multibyte and dst_multibyte of coding. Adjusted for the
8470 change for find_charset_in_str.
8471 (Fw32_get_clipboard_data): Likewise.
8472
8473 * xdisp.c (get_next_display_element): Handle 8-bit characters
8474 correctly.
52283633
SM
8475 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
8476 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
c9671f81
KH
8477
8478 * xselect.c (selection_data_to_lisp_data): Setup members
8479 src_multibyte and dst_multibyte of coding. Adjusted for the
8480 change for find_charset_in_str.
8481 (lisp_data_to_selection_data): Likewise.
8482
5f64c9e0
GM
84832000-05-19 Gerd Moellmann <gerd@gnu.org>
8484
52283633 8485 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
2b63d473 8486
5f64c9e0
GM
8487 * dispextern.h (Vimage_types): Add extern declaration.
8488
8489 * xdisp.c (Vimage_types): Moved here from xfns.c.
8490 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
8491
8492 * xfns.c (Vimages_types): Moved to xdisp.c.
8493 (syms_of_xfns): Move `image-types' to xdisp.c.
8494
8495 * w32fns.c (Vimage_types): Removed.
8496 (syms_of_w32fns): Remove `image-types'.
8497
813086ea
KH
84982000-05-18 Kenichi Handa <handa@etl.go.jp>
8499
8500 * fns.c (map_char_table): Pay attention to character number of
8501 charset. Check the validity of charset at the first level. For
8502 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
8503 the default value.
8504
8505 * fontset.c: Include "buffer.h".
8506 (fs_load_font): If the face has fontset, record the face ID in
8507 that fontset.
8508 (Finternal_char_font): New function.
8509 (accumulate_font_info): New function.
8510 (Ffontset_info): Rewritten for the new fontset implementation.
8511 (syms_of_fontset): Register Vdefault_fontset in the first element
8512 of Vfontset_table. Include Vdefault_fontset in
8513 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
8514 function.
8515
bdaebbf0
DL
85162000-05-16 Dave Love <fx@gnu.org>
8517
8518 * m/iris5d.h: Deleted -- unused.
8519
cb613bb8
GM
85202000-05-16 Gerd Moellmann <gerd@gnu.org>
8521
b15f3b77
GM
8522 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
8523 `invalid' instead of `illegal'.
8524
8525 * indent.c (Fmove_to_column): When ending within a tab, insert
8526 spaces first so that markers at the end of the tab get adjusted.
8527
835c1b36
GM
8528 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
8529 buffer list that wasn't selected in that frame.
8530
cb613bb8
GM
8531 * filelock.c (get_boot_time): To obtain an 8 char file name, which
8532 is needed on mescaline, use a 2 char prefix, and call
8533 make_temp_name with second arg non-zero.
8534
8535 * fileio.c (make_temp_name): New function, extracted from
8536 Fmake_temp_name.
8537 (Fmake_temp_name): Use it.
8538
f685bea9
EZ
85392000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
8540
52283633 8541 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
f685bea9 8542
a1b8d58b
GM
85432000-05-15 Gerd Moellmann <gerd@gnu.org>
8544
8545 * Makefile.in (lisp): Add env.elc.
8546
8547 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
8548
a265079f
GM
85492000-05-12 Gerd Moellmann <gerd@gnu.org>
8550
8551 * search.c (Freplace_match): Handle case of `\N' in the
8552 replacement when there's no group N.
8553
da4496b6
GM
85542000-05-11 Gerd Moellmann <gerd@gnu.org>
8555
0ace421a
GM
8556 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
8557 of the message to message_dolog.
8558
1172eb8d
GM
8559 * keyboard.c (read_char): Don't clear current message for help
8560 events; let the code handling help events handle this. Change
8561 code detecting help events that should be ignored.
8562
da4496b6
GM
8563 * xdisp.c (handle_single_display_prop): Don't try to set PT if
8564 we're interating over a string.
8565
0623e40f
DL
85662000-05-09 Dave Love <fx@gnu.org>
8567
8568 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
8569 that offset before writing. Move gcpro region past call of
8570 Ffile_regular_p.
8571
bae2503b
DL
85722000-05-04 Dave Love <fx@gnu.org>
8573
8574 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
8575
ec82fb2f
GM
85762000-05-04 Gerd Moellmann <gerd@gnu.org>
8577
8578 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
8579 of inserted characters when BUF equals the current buffer, and PT
8580 is in front of or equal to FROM.
8581
cbf18892
GM
85822000-05-03 Gerd Moellmann <gerd@gnu.org>
8583
4ff40dd0
GM
8584 * xdisp.c (handle_single_display_prop): If display property value
8585 is invalid, or something not supported on the frame, restore
8586 iterator's position to what it was initially. Make sure to return
8587 0 for invalid and unsupported property values.
8588
cbf18892
GM
8589 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
8590 that x_per_char_metric returns null.
8591
1b0672c3
GM
85922000-05-02 Gerd Moellmann <gerd@gnu.org>
8593
576da55d
GM
8594 * xterm.h (struct face): Add forward declaration.
8595 (struct image): Ditto.
8596 (image_ascent): Add prototype.
8597
8598 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
8599 (x_draw_image_relief, x_draw_image_foreground_1): Call function
8600 image_ascent instead of using IMAGE_ASCENT.
8601
8602 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
8603 (IMAGE_ASCENT): Removed.
8604
8605 * xfns.c (Qcenter): New variable.
8606 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
8607 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
8608 (image_ascent): New function.
8609 (lookup_image): Recognize `:ascent center'.
8610 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
8611 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
8612 (xbm_load): Don't set image's ascent here.
8613 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
8614 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
8615 check ascent values here.
8616 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
8617 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
8618 (syms_of_xfns): Initialize Qcenter.
8619
1b0672c3
GM
8620 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
8621 to the limits, increase the limits.
8622
0d7811ed
KH
86232000-05-01 Kenichi Handa <handa@etl.go.jp>
8624
8625 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
52283633 8626 Check Vfont_encoding_alist against the full name of the opened font.
0d7811ed 8627
a943a5ca
GM
86282000-04-28 Gerd Moellmann <gerd@gnu.org>
8629
8630 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
8631 taller than the window.
8632
5dba1e29
KH
86332000-04-28 Kenichi Handa <handa@etl.go.jp>
8634
8635 * xfaces.c (realize_x_face): Fix the argument of the second
8636 xassert. BASE_FACE may not be a face for ASCII.
8637
353964e3
GM
86382000-04-27 Gerd Moellmann <gerd@gnu.org>
8639
c76e04a8
GM
8640 * print.c (print_object): Treat print-length < 0 as nil.
8641
8642 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
8643
8644 * s/freebsd.h (TERMCAP_OBJ): Removed.
8645 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
8646
8647 * lread.c (read1): Don't treat period followed by certain
8648 characters as symbol start.
8649
8650 * xfns.c (slurp_file): New function.
8651 (xbm_image_p): Handle case of in-memory XBM files.
8652 (xbm_scan): Rewritten to work on memory buffers instead of files.
8653 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
8654 Work on memory buffers instead of files. If DATA is null test
8655 if buffer looks like an in-memory XBM file.
8656 (xbm_load_image): Renamed from xbm_load_image_file. Work on
8657 memory buffers instead of files.
8658 (xbm_file_p): New function.
8659 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
8660
353964e3
GM
8661 * lread.c (end_of_file_error): New function.
8662 (read1): Call it instead of signaling `end-of-file' directly.
8663
427ec082 8664 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
8665 with Fprinc instead of Fprin1.
8666
24d744ac
KR
86672000-04-26 Ken Raeburn <raeburn@gnu.org>
8668
8669 * window.c (freeze_window_start): Check that minibuffer scroll
8670 window isn't nil before extracting the window structure pointer
8671 from it.
8672
8673 * undo.c (record_delete): If we hit the end of the undo list, stop
8674 picking elements apart.
8675
7464346d
GM
86762000-04-26 Gerd Moellmann <gerd@gnu.org>
8677
8678 * xdisp.c (display_line): If lines are continued, restore
8679 iterator's ascent/descent information to the values before the
8680 first glyph not fitting on the line.
8681
612839b6
GM
86822000-04-25 Gerd Moellmann <gerd@gnu.org>
8683
8684 * xdisp.c (try_window_id) <all changes above window start>: Adjust
52283633 8685 positions in glyph matrix. Don't compute new window end positions.
612839b6
GM
8686
8687 * dispnew.c (increment_matrix_positions): Renamed from
8688 increment_glyph_matrix_buffer_positions.
8689 (increment_row_positions): Renamed from
8690 increment_glyph_row_buffer_positions.
8691
8692 * dispextern.h: Change names of renamed functions from dispnew.c
8693 in prototypes.
8694
cc181e95
GM
86952000-04-24 Gerd Moellmann <gerd@gnu.org>
8696
abfcc168
GM
8697 * fileio.c (Fdo_auto_save): Create directories for auto-save
8698 list file if necessary.
8699
cc181e95
GM
8700 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
8701 from buffer or frame.
8702 (automatic_hscrolling_p): New variable.
8703 (hscroll_windows): Scroll windows horizontally only if automatic
8704 hscrolling is allowed.
8705 (syms_of_xdisp): New variable `automatic-hscrolling'.
8706
8707 * frame.h (struct frame): Add member extra_line_spacing.
8708
8709 * xfns.c (x_set_line_spacing): New function.
8710 (Fx_create_frame): Set line spacing from resources.
8711 (Qline_spacing): New variable.
8712 (syms_of_xfns): Initialize Qline_spacing.
427ec082 8713
cc181e95
GM
8714 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
8715
8716 * buffer.c (init_buffer_once): Handle extra_line_spacing.
8717 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 8718 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
8719 extra_line_spacing from default value.
8720 (init_buffer_once): Initialize default value of extra_line_spacing.
8721
8722 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
8723 and extra3.
8724
8725 * xterm.c (x_produce_glyphs): Remove reference to struct it's
8726 prompt_width. Add extra line spacing.
8727
8728 * term.c (produce_glyphs): Remove reference to struct it's
8729 prompt_width.
8730
8731 * dispextern.h (struct it): Remove member prompt_width, add
8732 extra_line_spacing.
8733
58827478
GM
87342000-04-22 Gerd Moellmann <gerd@gnu.org>
8735
8736 * dispnew.c (update_frame_line): When writing a whole line, make
8737 sure cursor is in the right row afterwards, otherwise a use of
8738 capability `ch' in cmgoto might leave the cursor in the row below.
8739
25a87f42
GM
87402000-04-21 Gerd Moellmann <gerd@gnu.org>
8741
8742 * lisp.h (struct Lisp_Buffer_Cons): Remove.
8743
8744 * keyboard.c (timer_check): Fix typo in comment.
8745
54edf5c2
KH
87462000-04-21 Kenichi Handa <handa@etl.go.jp>
8747
8748 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
8749 name change: ch -> character.
8750
3a64eef5
GM
87512000-04-20 Gerd Moellmann <gerd@gnu.org>
8752
8753 * keyboard.c (echo_message_buffer): New variable.
8754 (echo_now): Set echo_message_buffer to the echo area buffer used
8755 to display the echo.
8756 (cancel_echoing): Reset echo_message_buffer to nil.
8757 (read_char): Code rewritten that handles canceling an echo or
8758 echoing a dash, respectively.
8759
8760 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
8761 directory doesn't exist.
8762
6142fdcb
DL
87632000-04-19 Dave Love <fx@gnu.org>
8764
8765 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
8766 (concat): Don't allow numeric args.
8767 (Fconcat): Doc change.
6142fdcb 8768
ac6b5352
SM
87692000-04-19 Stefan Monnier <monnier@cs.yale.edu>
8770
8771 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
8772 instead define end_match(1|2) more carefully.
8773 Use GET_CHAR_BEFORE_2 for `begline'.
8774
cb9215e4
GM
87752000-04-19 Gerd Moellmann <gerd@gnu.org>
8776
5e3dac3f
GM
8777 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
8778 on 64-bit systems where NULL is defined as `0'.
8779
8780 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
8781 the `variable argument list' to make it work on Alpha.
8782
cb9215e4
GM
8783 * m/alpha.h (_LP64) [!_LP64]: Define.
8784 (ORDINARY_LINK): Define for NetBSD.
8785
8786 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 8787
f532dca0
DL
87882000-04-19 Dave Love <fx@gnu.org>
8789
c750667e
DL
8790 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
8791 change.
8792
8793 * Makefile.in (LIBS): Don't use.
8794 (GETLOADAVG_OBJ): Define again.
8795 (otherobj): Add GETLOADAVG_OBJ.
8796
f532dca0
DL
8797 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
8798
1c7e22fd
GM
87992000-04-18 Gerd Moellmann <gerd@gnu.org>
8800
f6d3257b
GM
8801 * lread.c (read_filtered_event): Cancel and start busy cursor.
8802
427ec082 8803 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
8804 that the per-character metrics may be null.
8805
e10f64e7
GM
88062000-04-17 Gerd Moellmann <gerd@gnu.org>
8807
0daee095
GM
8808 * buffer.c (clone_per_buffer_values): New function.
8809 (Fmake_indirect_buffer): Add optional argument CLONE. Call
8810 clone_per_buffer_values if CLONE is not nil.
8811
e10f64e7
GM
8812 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
8813
38687d43
DL
88142000-04-16 Dave Love <fx@gnu.org>
8815
8816 * Makefile.in: Remove obsolete localcpp stuff.
8817 (GETLOADAVG_OBJ): Don't define.
8818 (obj): Move LIBOBJS...
8819 (otherobj): ... to here.
8820 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
8821 whitespace-only lines after the continuation (Irix).
8822
c21c7262
GM
88232000-04-14 Gerd Moellmann <gerd@gnu.org>
8824
8825 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
8826
8827 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
8828
314767c0
DL
88292000-04-14 Dave Love <fx@gnu.org>
8830
8831 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
8832 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
8833 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
8834 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
8835 NLIST_STRUCT.
8836
8837 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
8838 autoconfiscated HAVE_GETLOADAVG.
8839
8840 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
8841 BROKEN_MKTIME.
8842
a2522dca
GM
88432000-04-14 Gerd Moellmann <gerd@gnu.org>
8844
8845 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
52283633 8846 (fill_in_lock_file_name): Avoid existing files that aren't links.
a2522dca 8847
33744b5d
DL
88482000-04-14 Dave Love <fx@gnu.org>
8849
c21c7262 8850 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
8851 (INTERVAL_SRC): Convert to make variable.
8852 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
8853 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
8854 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
8855 add LIBOBJS.
8856 (SOME_MACHINE_OBJECTS): Remove interval stuff.
8857 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
8858 (shortlisp): Add facemenu, float-sup, frame.
8859 (SOME_MACHINE_LISP): Remove them from here.
8860 (LIBES): Change unused LDLIBS to autoconf LIBS.
8861
8862 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
8863
9d3d5916
KH
88642000-04-14 Kenichi Handa <handa@etl.go.jp>
8865
8866 * composite.c (update_compositions): If FROM and TO are not in a
8867 valid range, do nothing.
8868
198e3c7a
GM
88692000-04-13 Gerd Moellmann <gerd@gnu.org>
8870
52283633 8871 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
198e3c7a 8872
52283633 8873 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
198e3c7a
GM
8874
8875 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
8876 as TERMCAP_OBJ.
8877
055a28c9
EZ
88782000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
8879
8880 * fileio.c (a_write): Remove redundant semi-colons.
8881 (e_write): Return -1 if failed to write all the data.
8882 This fixes the changes made at 1999-12-15.
8883
f5c75033
DL
88842000-04-12 Dave Love <fx@gnu.org>
8885
8886 * fns.c (mapcar1): Test for null vals to support mapc.
8887 (Fmapc): New function.
8888
0c3cfc51
EZ
88892000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
8890
8891 * msdos.c (NUM_MOUSE_BUTTONS): Define.
8892 (IT_frame_up_to_date): Support the buffer local value of
8893 cursor-type, if defined.
8894
33465a31
DL
88952000-04-10 Dave Love <fx@gnu.org>
8896
8897 * editfns.c (preceding-char, following-char): Doc fix.
8898
6ed56568
KR
88992000-04-10 Ken Raeburn <raeburn@gnu.org>
8900
8901 * Makefile.in (temacs): Revert 2000-03-12 change.
8902
7cf80d4e
JR
89032000-04-10 Jason Rumney <jasonr@gnu.org>
8904
8905 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
8906
34f3f342
GM
89072000-04-10 Gerd Moellmann <gerd@gnu.org>
8908
1a1b1895
GM
8909 * xdisp.c (setup_echo_area_for_printing): Choose an echo
8910 area buffer, if it's not set up yet.
8911
34f3f342
GM
8912 * indent.c (compute_motion): Set immediate_quit.
8913
be0dbdab
GM
89142000-04-09 Gerd Moellmann <gerd@gnu.org>
8915
52283633 8916 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
c45be9ac
GM
8917 (realize_tty_face): Suppress boldness if colors are the inverse of
8918 the default colors, and tty_suppress_bold_inverse_default_colors_p
8919 is set.
8920 (Ftty_suppress_bold_inverse_default_colors): New function.
8921 (syms_of_xfaces): Defsubr it.
8922
be0dbdab
GM
8923 * buffer.c (Frestore_buffer_modified_p): New function.
8924 (syms_of_buffer): Defsubr it.
8925
e8413c3b
KR
89262000-04-08 Ken Raeburn <raeburn@gnu.org>
8927
87f67317
KR
8928 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
8929 charset id (int) argument, not a charset (Lisp_Object).
8930
e8413c3b
KR
8931 * coding.h (code_convert_string): Declare.
8932 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
8933 object, as the fourth argument to code_convert_string.
8934
52283633 8935 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
e8413c3b
KR
8936 (Fset_fontset_font): Use EQ to compare lisp objects.
8937
7c752c80
KR
89382000-04-05 Ken Raeburn <raeburn@gnu.org>
8939
c0333abc
KR
8940 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
8941 a pointer that looks like a lisp object.
8942 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
8943 zero, instead see whether it's an integer object, since they can't
8944 have intervals.
8945 (GET_INTERVAL_OBJECT): Simply assign to the destination.
8946
52283633
SM
8947 * dispnew.c (allocate_matrices_for_frame_redisplay)
8948 (direct_output_forward_char): Use X(U)INT and make_number as needed
7c752c80
KR
8949 to convert between (unsigned) int values and lisp integers.
8950 * keyboard.c (read_key_sequence): Likewise.
8951 * lread.c (substitute_object_recurse): Likewise.
8952 * fns.c (concat, hash_lookup, hash_remove): Likewise.
52283633
SM
8953 * minibuf.c (do_completion, Fminibuffer_complete_word)
8954 (Fminibuffer_completion_help): Likewise.
7c752c80
KR
8955 * term.c (produce_special_glyphs): Likewise.
8956
8957 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
8958 * print.c (print_preprocess, print_object): Likewise.
8959
8960 * search.c (compile_pattern): Use NILP when checking for nil.
8961
74e49b38
KR
8962 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
8963 __OPTIMIZE__]: Provide a GNU C macro version that handles
8964 lisp-object unions.
8965 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
8966 field, to better cope with ENABLE_CHECKING and calls that modify a
8967 Lisp_Object using its old value.
8968
685e5ed2
GM
89692000-04-04 Gerd Moellmann <gerd@gnu.org>
8970
c407c570
GM
8971 * window.c (compare_window_configurations): Signal an error
8972 if parameters C1 or C2 aren't window configurations.
8973
685e5ed2
GM
8974 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
8975 AFTER_POTENTIAL_GC calls around calls to functions that can
8976 signal an error and thus invoke the debugger.
8977
587a49ab
GM
89782000-04-03 Gerd Moellmann <gerd@gnu.org>
8979
62f20204
GM
8980 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
8981 an error if decoding fails.
8982
587a49ab
GM
8983 * keyboard.c (lispy_mouse_names): Variable removed.
8984 (Vlispy_mouse_stem): New variable.
8985 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
8986 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
8987 for any mouse button number. Increase size of mouse_syms and
8988 button_down_location as needed. Call modify_event_symbol with
8989 different arguments.
8990 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
8991 Call modify_event_symbol with different arguments.
8992 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
8993 for any button number. Call modify_event_symbol with different
8994 arguments.
8995 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
8996 Accept a string for NAME_ALIST_OR_STEM.
8997
8998 * lisp.h (larger_vector): Add prototype.
8999
9000 * fns.c (larger_vector): Make externally visible.
9001
9002 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
9003
2d1675e4
SM
90042000-04-02 Stefan Monnier <monnier@cs.yale.edu>
9005
9006 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
9007 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
9008 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
9009 we are between str1 and str2.
9010 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
9011 (PATFETCH): Use `TRANSLATE'.
9012 (PATFETCH_RAW): Fetch multibyte char if applicable.
9013 (PATUNFETCH): Remove.
9014 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
9015 When writing a char, write it directly into the pattern buffer rather
9016 than going needlessly through a temp char-array.
9017 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
9018 multibyte magic and remove the useless `#ifdef emacs'.
9019 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
9020 buffer.
9021
9022 * regex.h (struct re_pattern_buffer): Make field `multibyte'
9023 conditional on `emacs'.
9024
9025 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
9026
cc2d8c6b
KR
90272000-04-01 Ken Raeburn <raeburn@gnu.org>
9028
9029 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
9030 non-union-type versions of XMARK and friends here, because XMARK
9031 and friends won't work on an integer field if NO_UNION_TYPE is not
9032 defined.
52283633 9033 (make_number): Define as a function if it's not defined as a macro.
cc2d8c6b 9034
52283633 9035 * composite.c (run_composite_function): Use NILP when checking for nil.
09654086
KR
9036 (syms_of_composite): Delete local var NARGS, pass an int as first
9037 argument to Fmake_hash_table.
9038
2387b382
KR
9039 * editfns.c (text_property_stickiness): Use NILP to test
9040 Lisp_Object boolean value.
9041 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
9042 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
9043 problems reading from and changing the same lisp value in an
9044 XSETSTRING call.
9045
27660e89
GM
90462000-04-01 Gerd Moellmann <gerd@gnu.org>
9047
9048 * term.c (TN_no_color_video): New variable.
9049 (term_init): Intitialize TN_no_color_video.
9050 (enum no_color_bit): New enumeration.
9051 (MAY_USE_WITH_COLORS_P): New macro.
9052 (turn_on_face): Use it to determine if attributes may be used
9053 combined with colors.
9054
3578db3c
KR
90552000-04-01 Ken Raeburn <raeburn@gnu.org>
9056
9057 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
52283633 9058 with int lvalues via casts; instead, just yield lisp object lvalues.
3578db3c
KR
9059 (enlarge_window): Variable sizep now points to Lisp_Object. Use
9060 proper accessor macros.
9061 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
9062 (grow_mini_window): Fix typo getting int value of root->height.
9063
6fc556fd
KR
9064 * xdisp.c (compute_string_pos): Fix order of arguments to
9065 string_pos_nchars_ahead.
9066 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
9067 count arg to variable-arg routines like Frun_hook_with_args and
9068 Fformat.
587a49ab
GM
9069 (back_to_previous_visible_line_start)
9070 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
9071 fixed-arg routines like Fget_char_property and Fmake_string.
9072 (reconsider_clip_changes): Use XINT when comparing integer lisp
9073 objects, or passing them as int arguments.
587a49ab
GM
9074 (mark_window_display_accurate, insert_left_trunc_glyphs)
9075 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
9076 storing or passing integer values as lisp objects.
9077 (set_cursor_from_row, highlight_trailing_whitespace): Use
9078 INTEGERP, not implicit test against zero, for glyph object.
9079 (try_window_id): Don't use make_number when we want an int value.
9080
9081 * xfaces.c (xlfd_symbolic_value): Make last argument a
9082 Lisp_Object, to be consistent with callers.
9083 (Fbitmap_spec_p): Use XINT to get numeric value of height.
9084 (lface_hash): Apply XFASTINT to lisp values before folding in.
9085
9086 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
9087 fill in window width and height. Pass an int, not a lisp object,
9088 as first arg to Finsert.
9089
6e7b2457
GM
90902000-04-01 Gerd Moellmann <gerd@gnu.org>
9091
610d841e
GM
9092 * xfaces.c (realize_basic_faces): Block input while realizing
9093 the faces.
9094
6e7b2457
GM
9095 * keyboard.c (lispy_mouse_names): Add additional mouse names.
9096
9097 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
9098
aa110c0c
GM
90992000-03-31 Gerd Moellmann <gerd@gnu.org>
9100
9101 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 9102 or ASCII, handle case that per-char metric is null.
aa110c0c 9103
8801a864
KR
91042000-03-30 Ken Raeburn <raeburn@gnu.org>
9105
c6129d7e
KR
9106 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
9107
52283633
SM
9108 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
9109 (XSUBR, XBUFFER): Verify correct object type before returning
8801a864
KR
9110 pointer, using eassert.
9111 * frame.h (XFRAME): Likewise.
9112
52283633
SM
9113 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
9114 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
9115 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
8801a864 9116 * data.c (set_internal): Likewise.
52283633
SM
9117 * dispextern.h (WINDOW_WANTS_MODELINE_P)
9118 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
8801a864
KR
9119 * fileio.c (auto_save_1): Likewise.
9120 * insdel.c (check_markers): Likewise.
9121 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
9122 * undo.c (record_insert): Likewise.
9123 * vmsproc.c (child_sig): Likewise.
9124 * window.c (unshow_buffer, window_loop): Likewise.
9125 * xterm.c (x_erase_phys_cursor): Likewise.
9126
8e7af858
GM
91272000-03-30 Gerd Moellmann <gerd@gnu.org>
9128
9129 * xfns.c (free_image_cache): Free the cache structure itself
9130 last, after all its members have been freed.
9131
9132 * lisp.h (xstrdup): Add prototype.
9133
9134 * alloc.c (xstrdup): Moved here from xfaces.c.
9135 (allocating_for_lisp): Variable removed.
52283633 9136 (lisp_malloc): Block input around the calls to malloc and mem_insert.
8e7af858
GM
9137
9138 * xfaces.c (realize_tty_face): Use find_symbol_value instead
9139 of Fsymbol_value.
9140 (xstrdup): Moved to alloc.c.
9141
e0b8c689
KR
91422000-03-29 Ken Raeburn <raeburn@gnu.org>
9143
b96f9fb7
KR
9144 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
9145
9146 * emacs.c (main): Fix sense of no-loadup test.
9147
e0b8c689
KR
9148 * config.in (ENABLE_CHECKING): Undef.
9149
9150 * lisp.h (struct interval): Replace "parent" field with a union of
9151 interval pointer and Lisp_Object; add new bitfield to use as
9152 discriminant. Change other flag fields to bitfields.
9153 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
52283633
SM
9154 is defined and the supplied test fails, print a message and abort.
9155 (eassert): New macro. Use CHECK to provide an assert-like facility.
e0b8c689
KR
9156
9157 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
9158 pointers; abort if the value looks like a lisp object.
52283633
SM
9159 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
9160 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
e0b8c689
KR
9161 Modify for new interval parent definition.
9162
52283633
SM
9163 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
9164 (UNMARK_BALANCE_INTERVALS): Update references that need an
e0b8c689
KR
9165 addressable lisp object in the interval structure.
9166 (die): New function.
9167 (suppress_checking): New variable.
9168
9169 * intervals.c (interval_start_pos): Just return 0 if there's no
9170 parent object.
9171
f83c5440
GM
91722000-03-29 Gerd Moellmann <gerd@gnu.org>
9173
9174 * lread.c (read1): Accept `.' (period) as symbol start like in CL
9175 and earlier Emacs versions.
9176
9177 * keyboard.c (Ftop_level): Cancel busy-cursor.
9178
9179 * eval.c (call_debugger): Cancel busy-cursor.
9180
fdce64ff
KH
91812000-03-29 Kenichi Handa <handa@etl.go.jp>
9182
9183 * search.c (Freplace_match): Adjust multibyteness of the current
52283633 9184 buffer and NEWTEXT. Free allocated memory before signaling an error.
fdce64ff 9185
f6a3f532
SM
91862000-03-28 Stefan Monnier <monnier@cs.yale.edu>
9187
9188 * regex.c (analyse_first): New function obtained by ripping out most
9189 of re_compile_fastmap and generalizing it a little bit so that it
9190 can also just return whether a given (sub)pattern can match the empty
9191 string or not.
9192 (regex_compile): Use `analyse_first' to decide whether the loop-check
9193 needs to be done or not for *, +, *? and +? (the loop check is costly
9194 for non-greedy repetition).
9195 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
9196
e9b309ac
DL
91972000-03-28 Dave Love <fx@gnu.org>
9198
52283633 9199 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
bb15bd9a 9200
e9b309ac
DL
9201 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
9202
ed0767d8
SM
92032000-03-27 Stefan Monnier <monnier@cs.yale.edu>
9204
9205 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
9206 an expression.
9207 (enum re_opcode_t): Update description of succeed_n.
9208 (PATFETCH): Always define.
9209 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
9210 operators, char classes, shy-groups and intervals).
9211 Optimize special cases of intervals so as to only use succeed_n and
9212 jump_n when really needed.
9213 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
9214 that we don't have to handle the special cases any more.
9215 Simplify on_failure_jump handling as well.
9216
e11e7e46
JR
92172000-03-28 Jason Rumney <jasonr@gnu.org>
9218
9219 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
9220
88faab89
GM
92212000-03-27 Gerd Moellmann <gerd@gnu.org>
9222
182ff242
GM
9223 * s/freebsd.h (GC_SETJMP_WORKS): Define.
9224
9225 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 9226
182ff242
GM
9227 * alloc.c (mark_maybe_object): New function.
9228 (mark_memory): Use it.
9229 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
9230 (setjmp_tested_p, longjmp_done): New variables.
9231 (test_setjmp): New function.
9232 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
9233 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
9234
c1005d06
GM
9235 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
9236 to DEC_TEXT_POS and INC_TEXT_POS.
9237
9238 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
9239 with parameter MULTIBYTE_P.
9240
52283633 9241 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
c1005d06 9242
7439e5b9 9243 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
9244 buffers because it looks for multibyte character byte sequences
9245 which don't exist in unibyte text.
7439e5b9 9246
d9c545da
GM
9247 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
9248
11fd416e 9249 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
9250 [DEBUG_X_COLORS]: New functions.
9251 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
9252
9253 * xfns.c (x_set_cursor_color): Get color reference counts right.
9254
9255 * xterm.c (x_copy_color): New function.
9256 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
9257
9258 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
9259 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
9260 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
9261 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
9262 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
9263 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
9264 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
9265 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
9266 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
9267 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
9268
11fd416e
GM
9269 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
9270 names for handling per-buffer variables.
d9c545da
GM
9271
9272 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
9273 instead of MAX_BUFFER_LOCAL_VARS.
9274 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
9275
9276 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
9277
88faab89
GM
9278 * xfns.c (x_specified_cursor_type): New function.
9279 (x_set_cursor_type): Use it.
9280
9281 * buffer.h (struct buffer): Add cursor_type.
9282
d80f42b7
SM
92832000-03-26 Stefan Monnier <monnier@cs.yale.edu>
9284
9285 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
52283633
SM
9286 (print_partial_compiled_pattern, re_compile_fastmap):
9287 Handle new opcode.
d80f42b7
SM
9288 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
9289 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
9290 executing it as well as when popping it off the stack to find infinite
9291 loops in non-greedy repetition operators.
9292
89e80928
GM
92932000-03-26 Gerd Moellmann <gerd@gnu.org>
9294
3d4ff2dd
GM
9295 * doc.c (Qfunction_documentation): New variable.
9296 (syms_of_doc): Initialize Qfunction_documentation.
9297 (Fdocumentation): If FUNCTION is a symbol with non-nil
9298 `function-documentation' property, return a documentation derived
9299 from that.
9300
bd96bd79
GM
9301 * buffer.c (syms_of_buffer): Add default-cursor-type.
9302 (init_buffer_once): Don't let cursor_type have a local value
9303 in every buffer.
9304
19d1bc27
GM
9305 * xterm.c (x_display_and_set_cursor): Choose cursor depending
9306 on buffer-local value of cursor_type.
9307 (x_draw_bar_cursor): Add parameter WIDTH.
9308
9309 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
9310 (init_buffer_once): Set default cursor_type value to t.
9311 Mark cursor_type as local everywhere.
9312 (syms_of_buffer): New per-buffer variable cursor-type.
9313
89e80928
GM
9314 * buffer.h (struct buffer): Remove member local_var_flags,
9315 add local_flags.
9316 (MAX_BUFFER_LOCAL_VARS): New macro.
9317 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
9318 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
9319 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
9320 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
9321
52283633 9322 * print.c (print_object): Use new macros for per-buffer variables.
89e80928
GM
9323
9324 * category.c (Fset_category_table): Use new macros for per-buffer
9325 variables.
9326
9327 * buffer.c (buffer_permanent_local_flags): Make a char array.
9328 (max_buffer_local_idx): New variable.
9329 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
9330 for new handling of per-buffer variables.
9331 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
9332 (init_buffer_once): Initialize per-buffer vars differently.
9333 Set max_buffer_local_idx.
9334
9335 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
9336 variables.
9337
52283633 9338 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
89e80928
GM
9339
9340 * data.c (do_symval_forwarding, store_symval_forwarding)
9341 (find_symbol_value, set_internal, default_value, Fset_default)
9342 (Fkill_local_variable, Flocal_variable_p): Use new macros for
9343 per-buffer variables.
9344
9345 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
9346
9a0dd3dc
GM
93472000-03-24 Gerd Moellmann <gerd@gnu.org>
9348
b68c375f
GM
9349 * xterm.c (x_term_init): Unblock input around call1 of
9350 Qvendor_specific_keysyms.
9351
9a0dd3dc
GM
9352 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
9353 (find_defun_start): Consider an open parenthesis in column 0
9354 a defun start only if open_paren_in_column_0_is_defun_start is set.
9355 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
9356
7973e637
SM
93572000-03-24 Stefan Monnier <monnier@cs.yale.edu>
9358
9359 * eval.c (Fautoload): Add entry in load-history (if after dump).
9360 * lread.c (load-history): Update docstring.
9361
39210e90
GM
93622000-03-24 Gerd Moellmann <gerd@gnu.org>
9363
9364 * indent.c (Fvertical_motion): Always use the current buffer.
9365 Temporarily change the window's buffer, if necessary.
9366
72db3ab5
GM
93672000-03-23 Gerd Moellmann <gerd@gnu.org>
9368
9369 * xterm.c (fast_find_position): Make sure not to consider rows
9370 not visible in the window.
9371
990b2375
SM
93722000-03-22 Stefan Monnier <monnier@cs.yale.edu>
9373
9374 * regex.c (enum syntaxcode): Provide default for non-Emacs.
9375 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
9376
ff4df011
JR
93772000-03-22 Jason Rumney <jasonr@gnu.org>
9378
9379 * w32menu.c (single_submenu): Set help string to NULL if none.
9380 (w32_menu_show): Set help string correctly.
9381 (add-menu-item): Set help string in MIIM_DATA for menu item.
9382 Load SetMenuItemInfoA explicitly.
9383 (w32_menu_display_help): New function.
427ec082 9384
ff4df011
JR
9385 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
9386 (QCdata): Moved to xdisp.c.
9387
9388 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
9389 (Vw32_charset_to_codepage_alist): Removed.
9390 (Vw32_charset_info_alist): New variable.
52283633
SM
9391 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
9392 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
9393 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
ff4df011
JR
9394 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
9395 with TODO comment.
9396 (w32_codepage_for_font): Use Vw32_charset_info_alist.
9397 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
9398 Define Vw32_charset_info_alist and w32_charset symbols.
9399
94002000-03-22 Jason Rumney <jasonr@gnu.org>
9401
9402 * makefile.nt (w32bdf.obj): Update dependencies.
9403
9404 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
9405
9406 * w32fns.c: Include fontset.h after dispextern.h.
9407 (Fx_create_frame): Do not create fontset.
9408 (w32_load_system_font): Doc fix.
9409 (Fx_close_connection): Free full_name if it is not shared.
9410
9411 * w32term.c: Include fontset.h after dispextern.h.
52283633
SM
9412 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
9413 Callers updated.
ff4df011
JR
9414 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
9415 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
9416 (w32_font_is_double_byte): New function, needs body.
9417 (x_append_glyph): Set glyph->glyph_not_available_p.
9418 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
9419 it->charset. If it->multibyte_p is zero and it->c is a multibyte
9420 character, convert it to a unibyte character.
9421 (struct glyph_string): Delete member `charset'.
9422 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
9423 calculating it is found.
9424 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
9425 the case that per char metric is not available correctly.
9426 (x_fill_glyph_string): Handle the case that the specific glyph is
9427 not available correctly.
9428 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
9429 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
9430 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
9431 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
9432 fontset. Don't call FS_LOAD_FONT.
9433
439d5cb4
KR
94342000-03-22 Ken Raeburn <raeburn@gnu.org>
9435
9436 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
9437 (INT_LISPLIKE): New macro.
9438 (NULL_INTERVAL_P): Use it.
52283633
SM
9439 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
9440 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
9441 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
439d5cb4
KR
9442
9443 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
9444 explicit references to "parent" field of struct interval and
9445 associated unclean type conversions.
52283633
SM
9446 * intervals.c (create_root_interval, root_interval, rotate_right)
9447 (rotate_left, balance_possible_root_interval, split_interval_right)
9448 (split_interval_left, interval_start_pos, find_interval)
9449 (next_interval, previous_interval, update_interval)
9450 (adjust_intervals_for_insertion, delete_node, delete_interval)
9451 (adjust_intervals_for_deletion, merge_interval_right)
9452 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
9453 (copy_intervals_to_string): Likewise.
439d5cb4
KR
9454 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
9455 Likewise.
9456 * syntax.c (update_syntax_table): Likewise.
9457
9458 * intervals.c (reproduce_tree_obj): New function, like
9459 reproduce_tree but takes a Lisp_Object for the parent. Declare
9460 with prototype.
9461 (graft_intervals_into_buffer): Use it when appropriate.
9462 (reproduce_tree): Declare with prototype.
9463 (balance_possible_root_interval): Check that the parent is a lisp
9464 object before trying to examine its type.
9465
ee1c5b21
GM
94662000-03-22 Gerd Moellmann <gerd@gnu.org>
9467
9468 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
9469 as strings only if both are known to be strings.
9470
9471 * s/openbsd.h (LIBS_TERMCAP): Undef.
9472
1fb352e0
SM
94732000-03-21 Stefan Monnier <monnier@cs.yale.edu>
9474
9475 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
9476 definitions for non-Emacs compilation.
9477 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
9478 outside of `#ifdef emacs'.
9479 (print_partial_compiled_pattern): Update.
9480 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
9481 (re_compile_fastmap): Merge handling of charset and charset_not (for
9482 emacs and non-emacs compilation as well).
9483 Similarly for (not)categoryspec and (not)syntaxspec.
9484 Don't use the fastmap when reaching `anychar' since the added
9485 complexity is not justified.
9486 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
9487 and (not)syntaxspec. Merge (not)categoryspec.
9488
fdaa1f77
KH
94892000-03-22 Kenichi Handa <handa@etl.go.jp>
9490
52283633
SM
9491 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
9492 (FACE_FOR_CHAR): Define them differently for the configuration of
ff1a0d8e 9493 --without-x.
fdaa1f77 9494
d152fb46
DL
94952000-03-21 Dave Love <fx@gnu.org>
9496
9497 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
9498 doc string.
9499
d2cafc8c
GM
95002000-03-21 Gerd Moellmann <gerd@gnu.org>
9501
9502 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
9503 (lface_fully_specified_p): Don't check contents of
9504 LFACE_FONT_INDEX because that attribute is optional.
9505 (realize_x_face): Remove now unwarranted xassert.
9506
9111d4b5
KH
95072000-03-21 Kenichi HANDA <handa@etl.go.jp>
9508
9509 The following changes are to make font selection based on
9510 characters, not charset. In addition, they recover fontset
9511 facilities while utilizing the new font selection mechanism.
9512
6c4bfdc0
KH
9513 * Makefile.in (fontset.o): Depend on dispextern.h.
9514
9515 * alloc.c (mark_face_cache): Don't mark face->registry.
9516
9111d4b5
KH
9517 * dispextern.h (struct glyph): New member glyph_not_available_p.
9518 Use 22 bits for face_id.
9519 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
9520 (struct face): Delete member registry, new member ascii_face.
9521 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
9522 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
9523 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
52283633 9524 (struct it): Delete member charset, new member glyph_not_available_p.
9111d4b5
KH
9525
9526 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
9527 (struct fontset_info, struct fontset_data): Structs removed.
52283633
SM
9528 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
9529 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
9111d4b5 9530 (fs_load_font, fs_query_fontset): Adjusted for new argument.
52283633
SM
9531 (fs_free_face_fontset, fontset_font_pattern)
9532 (face_suitable_for_char_p, face_for_char)
9533 (make_fontset_for_ascii_face): Extern them.
9111d4b5
KH
9534 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
9535 (FS_LOAD_FACE_FONT): New macro.
9536
9537 * fontset.c: All codes rewritten or adjusted for the change of
9538 fontset implementation. Now fontset is represented by char table.
52283633
SM
9539 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
9540 Variables removed.
9111d4b5 9541 (my_strcasecmp): Function removed.
52283633 9542 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
9111d4b5 9543 (AREF, ASIZE): New macros.
52283633
SM
9544 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
9545 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
9546 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
9547 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
9548 (fontset_id_valid_p, font_family_registry, fontset_name)
9549 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
9550 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
9111d4b5
KH
9551 New functions.
9552 (fs_load_font): New arg FACE. Caller changed.
9553 (fs_query_fontset): Argument changed. Caller changed.
9554 (Fquery_fontset): call fs_query_fontset.
9555 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
9556 Functions removed.
52283633
SM
9557 (clear_fontset_elements, check_registry_encoding)
9558 (check_fontset_name): New functions.
9111d4b5
KH
9559 (syms_of_fontset): Set char-table-extra-slots property of fontset
9560 to 3. Staticpro and initialize Vfontset_table and
9561 Vdefault_fontset. Defsubr fontset_font and fontset_list.
9562
9563 * frame.h (struct frame): Member `fontset_data' removed.
9564 (FRAME_FONTSET_DATA): Macro removed.
9565
9566 * frame.c (make_frame): Don't allocate f->fontset_data.
9567 (Fdelete_frame): Don't free f->fontset_data.
9568
6c4bfdc0
KH
9569 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
9570
9111d4b5
KH
9571 * xdisp.c (charset_at_position): Function removed.
9572 (init_iterator): Don't set member charset of struct `it'.
52283633
SM
9573 (handle_face_prop, reseat_to_string, set_iterator_to_next)
9574 (next_element_from_display_vector, insert_left_trunc_glyphs):
9111d4b5
KH
9575 Likewise.
9576 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
9577 FACE_FOR_CHARSET.
52283633
SM
9578 (get_next_display_element, append_space)
9579 (extend_face_to_end_of_line): Likewise.
9111d4b5
KH
9580
9581 * xfaces.c (Qx_charset_registry, Vface_default_registry):
9582 Variables removed.
9583 (clear_font_table, frame_update_line_height, load_face_font):
9584 Adjusted for the change of fontset implementation.
9585 (load_face_fontset_font): Function removed.
9586 (pixel_point_size): New function.
9587 (font_list): Argument type changed. Caller changed.
9588 (LFACE_FONT): New macro.
9589 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
9590 (set_lface_from_font_name): Type of arg FONTNAME is changed to
9591 Lisp_Object. Determine the font name by actually loading a font
9592 by the specified pattern. Set LFACE_FONT (lface) to the specified
9593 pattern. Even if a font is not found, don't try alternatives.
9594 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
9595 (set_font_frame_param): If `font' is specified in lface, use it.
9596 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
9597 (lface_same_font_attributes_p): Likewise.
9598 (make_realized_face): Arguent changed. Caller changed. Set
9599 face->ascii_face to face itself.
9600 (free_realized_face): Free face->fontset if face is for ASCII.
52283633
SM
9601 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
9602 (deduce_unibyte_registry, x_charset_registry): Functions removed.
9111d4b5
KH
9603 (free_realized_multibyte_face): New function.
9604 (lookup_face, lookup_named_face, lookup_derived_face): Argument
9605 changed. Caller changed.
9606 (try_font_list): Argument type changed.
9607 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
9608 (choose_face_font): Argument changed. Handle fontset properly.
9609 (choose_face_fontset_font): Function removed.
9610 (realize_default_face, realize_named_face): Don't remove the
9611 former face here.
9612 (realize_face): Argument changed. Caller changed. Remove face
52283633 9613 with the arg former_face_id in advance. Load font for the new face.
9111d4b5
KH
9614 (realize_x_face): Argument changed. Caller changed. For a
9615 multibyte character, share fontset with base_face. For a single
52283633 9616 byte character, make a new realized fontset. Don't load a font here.
9111d4b5
KH
9617 (realize_tty_face): Argument changed. Caller changed.
9618 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
9619 (face_at_buffer_position): Don't check multibyte_p for returning
9620 DEFAULT_FACE_ID.
9621 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
9622 FACE_SUITABLE_FOR_CHARSET_P.
9623 (syms_of_xfaces): Remove code for Qx_charset_registry and
9624 Vface_default_registry.
9625
6c4bfdc0
KH
9626 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
9627 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
9628 (x_per_char_metric): Don't try FONT->default_char. Even if
9629 pcm->width is zero, glyph bits may exist.
9630 (x_encode_char): Always initialize char2b->byte1.
9631 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
52283633 9632 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
9111d4b5
KH
9633 (x_append_glyph): Set glyph->glyph_not_available_p.
9634 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
9635 it->charset. Handle the case that per char metric is not
9636 available. If it->multibyte_p is zero and it->c is a multibyte
9637 character, convert it to a unibyte character.
9638 (struct glyph_string): Delete member `charset'.
9639 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
9640 the case that per char metric is not available correctly.
9641 (x_fill_glyph_string): Handle the case that the specific glyph is
9642 not available correctly.
9643 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
9644 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
9645 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
9646 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
9647 fontset. Don't call FS_LOAD_FONT.
9648
9649 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
9650 (x_create_tip_frame): Likewise.
9651 (Fx_close_connection): Free full_name of font_info.
9652
9653 * fns.c (optimize_sub_char_table): New function.
9654 (Foptimize_char_table): New function.
9655 (syms_of_fns): Defsubr Soptimize_char_table.
9656
b33dd3b0
GM
96572000-03-20 Gerd Moellmann <gerd@gnu.org>
9658
9659 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
9660 only if buffer is displayed in some window.
9661
9662 * xdisp.c (handle_single_display_prop): Initialize local `value'.
9663 (try_window_reusing_current_matrix): Don't call scroll run
9664 function if run's current and desired position are the same;
9665 this prevents cursor flickering.
9666
4e8a9132
SM
96672000-03-19 Stefan Monnier <monnier@cs.yale.edu>
9668
9669 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
9670
9671 * regex.c (RE_STRING_CHAR): New macro.
9672 (GET_CHAR_AFER_2): Remove.
9673 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
9674 (enum re_opcode_t): Remove on_failure_jump_exclusive.
9675 (print_partial_compiled_pattern, re_compile_fastmap)
9676 (re_match_2_internal): Remove on_failure_jump_exclusive.
9677 (regex_compile): Turn optimizable P+ loops into PP*, so that the
9678 optimization only need to work for * (ie. can use of_keep_string_jump).
9679 Remove the special case for .*\n since it is now covered by the general
9680 optimization.
9681 (re_search_2): Don't bother with `room'.
9682 (skip_one_char): New function.
9683 (skip_noops): Simplify since `memory' is not needed any more.
9684 (mutually_exclusive_p): Restructure slightly to use `switch' and
9685 add handling for "all" remaining cases.
9686 (re_match_2_internal): Change on_failure_jump_smart to use
9687 on_failure_keep_string_jump (and redirect the end-of-loop jump)
9688 rather than on_failure_jump_exclusive.
9689
2136fdd4
GM
96902000-03-19 Gerd Moellmann <gerd@gnu.org>
9691
9692 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
9693 number of bits per RGB because it's everywhere used as the depth
9694 of the visual.
9695
9696 * term.c (calculate_costs): Remove code dealing with X frames.
9697
18e21ce8 96982000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
9699
9700 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
9701
d7b511c4
GM
97022000-03-18 Gerd Moellmann <gerd@gnu.org>
9703
9704 * lread.c (read_integer): Unread the last char not consumed.
9705
16b5d424
GM
97062000-03-17 Gerd Moellmann <gerd@gnu.org>
9707
9708 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 9709 which are in the process of being deleted.
16b5d424 9710
1fa28578
GM
97112000-03-16 Gerd Moellmann <gerd@gnu.org>
9712
83488cce
GM
9713 * Makefile.in (mostlyclean): Add `*.core'.
9714 (clean): Add `bootstrap-emacs'.
9715
1fa28578
GM
9716 * lread.c (read_integer): New function.
9717 (read1): Support read syntax #o, #x, #b, #r.
9718
99633e97
SM
97192000-03-15 Stefan Monnier <monnier@cs.yale.edu>
9720
1fa28578
GM
9721 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
9722 make sure POINTER_TO_OFFSET gives the same value before and after
9723 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
9724 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
9725 (debug): Now only active if > 0 rather than if != 0.
9726 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
9727 (print_partial_compiled_pattern): Add missing `succeed' case. Use
9728 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
9729 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
9730 (store_op1, store_op2, insert_op1, insert_op2)
9731 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
9732 (group_in_compile_stack): Move to after its arg's types are
9733 declared and add a prototype.
99633e97 9734 (PATFETCH): Define in terms of PATFETCH_RAW.
52283633 9735 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
99633e97 9736 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
9737 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
9738 indentation of the greedy-op and shy-group code.
99633e97
SM
9739 (at_(beg|end)line_loc_p): Fix argument's types.
9740 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
9741 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
9742 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
9743 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
9744 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
9745 QUIT unconditionally.
99633e97 9746
699238d9
GM
97472000-03-15 Gerd Moellmann <gerd@gnu.org>
9748
9749 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
9750 a sole completion.
9751
9752 * process.c (send_process): Add a hint that the function
9753 can call Lisp code to its comment.
9754
9755 * lread.c (load_dangerous_libraries): New variable.
9756 (Vbytecomp_version_regexp): New variable.
9757 (safe_to_load_p): New function.
9758 (Fload): Handle files not compiled with Emacs specially.
9759 (syms_of_lread): New Lisp variable load-dangerous-libraries.
9760
34e23e5a
GM
97612000-03-14 Gerd Moellmann <gerd@gnu.org>
9762
9c763cca
GM
9763 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
9764
9765 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
9766 support functions only if HAVE_X11R6_XIM is defined.
9767 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
9768
9769 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
9770
9771 * xfns.c (X_I18N_INHIBITED): Don't define.
52283633 9772 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
9c763cca
GM
9773 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
9774
9775 * config.in (HAVE_X_I18N): Moved here from xterm.h.
9776 (HAVE_X11R6_XIM): Define.
9777
9778 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
9779
34e23e5a
GM
9780 * xterm.c (x_term_init): Add support for X resource `synchronous'.
9781 If set, call XSynchronize.
9782
66f0296e
SM
97832000-03-13 Stefan Monnier <monnier@cs.yale.edu>
9784
34e23e5a
GM
9785 * regex.c: Declare a new type `re_char' used throughout the code
9786 for the string char type. It's `const unsigned char' to match the
9787 rest of Emacs. Consistently make sure all pointers to strings use
52283633 9788 it and make sure all pointers into the pattern use `unsigned char'.
66f0296e 9789 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
9790 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
9791 code duplication.
66f0296e
SM
9792
9793 * charset.h (GET_CHAR_AFTER_2): Remove.
9794 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
9795
854a025c
KR
97962000-03-12 Ken Raeburn <raeburn@gnu.org>
9797
9798 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
9799 variable before the invocation of YMF_PASS_LDFLAGS, in case both
9800 of them try to use backquotes.
9801
b9d2c7e2
DL
98022000-03-12 Dave Love <fx@gnu.org>
9803
9804 * unexelf.c: Restore changes of 1999-10-19.
9805 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
9806 fix its type and alignment; copy it from current process.
9807
5e5dff44
GM
98082000-03-12 Gerd Moellmann <gerd@gnu.org>
9809
9b2f3c38
GM
9810 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
9811 has been found. Fix bug not computing timer's predecessor.
9812
427ec082 9813 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
9814 file name.
9815
e1cff360
GM
9816 * window.c (Fsave_window_excursion): Doc fix.
9817
52283633 9818 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
5e5dff44 9819
e411ce4b
EZ
98202000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
9821
9822 * msdos.c (vga_installed): New function, code moved from
9823 dos_set_window_size.
9824 (Qbar, Qcursor_type, outside_cursor): New variables.
9825 (syms_of_msdos): Intern and staticpro them.
9826 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
9827 shape used outside Emacs when called for the first time.
9828 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
9829 cursor shape used outside Emacs.
9830 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
9831 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
9832 type has changed.
9833 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
9834 parameters specify the cursor. Make qreverse a global
9835 variable (renamed to Qreverse).
9836
80460654
GM
98372000-03-09 Gerd Moellmann <gerd@gnu.org>
9838
9839 * fns.c (Fy_or_n_p): Cancel busy-cursor.
9840
95cd4c40
SM
98412000-03-08 Stefan Monnier <monnier@cs.yale.edu>
9842
9843 This is a big redesign of failure-stack and register handling, prompted
9844 by bugs revealed when trying to add shy-groups. Overall, what happened
9845 is that loops are now structured a little differently, groups can be
9846 shy and the code is a little simpler.
9847
9848 * regex.h: Update the copyright.
9849 (RE_SHY_GROUPS): New value.
9850 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
9851 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
9852
80460654
GM
9853 * regex.c (enum re_opcode_t): Remove jump_past_alt,
9854 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
9855 on_failure_jump_(exclusive, loop and smart). Also fix the comment
9856 for (start|stop)_memory since they now only take one argument (the
9857 second has becomes unnecessary).
52283633 9858 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
80460654
GM
9859 (print_compiled_pattern): Use %ld to printf long ints and flush to
9860 make debugging a little easier.
95cd4c40
SM
9861 (union fail_stack_elt): Make the integer unsigned.
9862 (struct fail_stack_type): Add a `frame' element.
9863 (INIT_FAIL_STACK): Init `frame' as well.
9864 (POP_PATTERN_OP): New macro for re_compile_fastmap.
9865 (DEBUG_PUSH, DEBUG_POP): Remove.
9866 (NUM_REG_ITEMS): Remove.
9867 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
9868 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
9869 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 9870 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
52283633
SM
9871 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
9872 New macros.
80460654
GM
9873 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
9874 address pushed is not the destination of the jump but the source
9875 of it instead.
95cd4c40
SM
9876 (NUM_FAILURE_ITEMS): Remove.
9877 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
9878 registers before the actual failure point). Don't hardcode any
9879 meaning for str==NULL anymore.
95cd4c40 9880 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
9881 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
9882 Remove.
95cd4c40
SM
9883 (REG_UNSET_VALUE): Use NULL (why not?).
9884 (compile_range): Remove declaration since it doesn't exist.
9885 (struct compile_stack_elt_t): Remove inner_group_offset.
9886 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
9887 (regex_grow_registers): Remove dead code.
9888 (FIXUP_ALT_JUMP): New macro.
80460654
GM
9889 (regex_compile): Add shy-groups Change loops to use
9890 on_failure_jump_smart&jump instead of
9891 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
9892 initial (dummy_failure_)jump. Remove c1_base (looks like unused
9893 variable to me). Use `jump' instead of `jump_past_alt' and don't
9894 bother with push_dummy_failure in alternatives since it is now
9895 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
9896 emacs' for (re)allocating the stack.
9897 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
9898 from loop when bufp->can_be_null rather than jumping to `done'.
9899 Avoid jumping backwards so as to ensure termination. Use
9900 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
9901 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 9902 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
9903 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
9904 improve mutually_exclusive_p to handle ".+\n".
52283633
SM
9905 (lowest_active_reg, highest_active_reg)
9906 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
80460654
GM
9907 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
9908 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
9909 variables. Push register (in `start_memory') on the stack rather
9910 than storing it in old_reg(start|end). Remove the cycle detection
9911 from `stop_memory', replaced by the use of on_failure_jump_loop
9912 for greedy loops. Add code for the new on_failure_jump_<foo>.
9913 Remove ad-hoc code in `on_failure_jump' to push more registers in
9914 the case of a loop. Take out code from `maybe_pop_jump' into
9915 separate functions and adapt it to the semantics of
9916 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
9917 and push_dummy_failure. Remove dummy_failure handling and
9918 handling of `failures to jump to on_failure_jump' (this last one
9919 was already dead code, it seems).
9920 (group_match_null_string_p, alt_match_null_string_p)
9921 (common_op_match_null_string_p): Remove.
95cd4c40 9922
7397acc4
DL
99232000-03-08 Dave Love <fx@gnu.org>
9924
9925 * config.in: Don't depend on __STDC__ for volatile.
9926 Add POINTER_TYPE, PTR, PROTOTYPES.
9927
9928 * hftctl.c, strftime.c: Use PROTOTYPES.
9929 * eval.c (find_handler_clause): Likewise.
9930
9931 * mem-limits.h: Use POINTER_TYPE.
9932
9933 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
9934 (memory_warnings): Declare using POINTER_TYPE.
9935
5e91ff9e
GM
99362000-03-08 Gerd Moellmann <gerd@gnu.org>
9937
feab4fba
GM
9938 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
9939
52283633 9940 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
25edb08f 9941
5e91ff9e
GM
9942 * xfns.c: Remove obsolete code in #if 0.
9943 (Fx_focus_frame): New function.
9944
a735b7e1
KH
99452000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
9946
9947 * coding.c (coding_category_name): Add coding-category-utf-8,
9948 coding-category-utf-16-be, coding-category-utf-16-le.
9949 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
9950 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
9951 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
9952 (detect_coding_utf_8): New function.
9953 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
9954 UTF_16_LOW_SURROGATE_P): New macros.
9955 (detect_coding_utf_16): New function
9956 (detect_coding_mask): When priorities are specified, skip any
9957 categories that have `nil' coding-system. Fix bug of returning
9958 wrong mask when PRIORITIES is specified and detect_coding_XXX()
9959 returns a mask not set in PRIORITIES.
9960 (detect_eol_type_in_2_octet_form): New function.
9961 (detect_eol): selects detect_eol_type_XXX to call according to
9962 cooding->category_idx.
9963 (detect_coding_system): Remove `nil' coding-system in the result.
9964 (Fupdate_coding_systems_internal): Update all coding-categories.
9965
52283633
SM
9966 * coding.h (CODING_CATEGORY_IDX_UTF_8)
9967 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
9968 New macros.
9969 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
9970 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
9971 (CODING_CATEGORY_IDX_UTF_16_LE)
9972 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
9973 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
a735b7e1
KH
9974 (CODING_CATEGORY_MASK_ANY): Include the above macros.
9975 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
9976
9994cc69
GM
99772000-03-07 Gerd Moellmann <gerd@gnu.org>
9978
e9b4e5ff
GM
9979 * doc.c (Fdocumentation_property): If value is not a string,
9980 and doesn't refer to etc/DOC, evaluate it to obtain a string.
9981
f7daf1e1
GM
9982 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
9983 close the display with XtCloseDisplay. This caused a bus error
9984 on OpenWindows.
9985
9994cc69
GM
9986 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
9987 complete but not unique.
9988
4336c705
GM
99892000-03-06 Gerd Moellmann <gerd@gnu.org>
9990
18bb0684
GM
9991 * process.c (send_process): Remove local variable `procname' that
9992 might become invalid when a GC happens. Instead, access the
9993 process name slot directly.
9994
4336c705
GM
9995 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
9996 orig_height if set.
9997
9998 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
9999 orig_height if set.
10000
515d0d0e
EZ
100012000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
10002
10003 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
10004 glyph matrices have been freed.
10005
100b3cbb
GM
100062000-03-05 Gerd Moellmann <gerd@gnu.org>
10007
50df5e5a 10008 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 10009 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
10010
10011 * xfns.c (QCdata): Moved to xdisp.c.
10012
10013 * xdisp.c (QCdata): Moved here from xfns.c.
10014 (syms_of_xdisp): Initialize QCdata.
10015
10016 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
10017
10018 * window.c (coordinates_in_window): Use
10019 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
10020 FRAME_INTERNAL_BORDER_WIDTH.
10021
100b3cbb 10022 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 10023 it is obviously invalid.
100b3cbb
GM
10024
10025 * xterm.c (x_term_init): Create a colormap if not using the
10026 default visual.
10027
10028 * xterm.h (select_visual): Change prototype.
10029
10030 * xfns.c (select_visual): Rewritten. Recognize user-specified
10031 visual classes.
10032 (visual_classes): New variable.
10033
64d739c4
GM
100342000-03-04 Gerd Moellmann <gerd@gnu.org>
10035
10036 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
10037 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
10038 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
52283633 10039 (x_decode_color): Don't handle allocation of white and black specially.
64d739c4
GM
10040 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
10041 XtNcolormap resources.
10042 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
10043 (Fx_create_frame): Initialize color members of x_output structure.
10044 (xpm_load): Pass colormap to XPM lib.
10045
10046 * xfaces.c (x_free_colors): Access colormap of frame using
10047 FRAME_X_COLORMAP. Be paranoid about freeing black and white
10048 when default colormap is used.
10049
10050 * xterm.c (x_term_init): Set Colormap member of x_display_info
10051 structure. Copy colormap if resource `privateColormap' is
10052 specified (PseudoColor only).
10053 (x_setup_relief_color): Access colormap of frame using
10054 FRAME_X_COLORMAP.
10055
10056 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
10057 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
10058
c3cee013
JR
100592000-03-04 Jason Rumney <jasonr@gnu.org>
10060
10061 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
10062 other non-platform-specific equivalents.
64d739c4 10063 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
10064 specific functions and macros as their w32 equivalents where
10065 non-platform-specifics are not available.
10066 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
10067 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
10068 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
10069 (frame_update_line_height): Use macros to access f->output_data.
10070 (defined_color): Remove FIXME comments; fixed.
10071 (x_face_list_fonts, prepare_face_for_display): Put X specifics
10072 into #ifdef blocks. Add WINDOWSNT blocks.
10073 (Fx_list_fonts): Use macros for accessing font data.
10074 (set_lface_from_font_name): Different default fonts for X and
10075 WINDOWSNT.
10076 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
10077 scalable for backward compatibility.
64d739c4 10078 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
10079 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
10080
64d739c4 10081 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
10082 syms_of_w32faces.
10083
10084 * makefile.nt (w32faces.obj): Remove.
10085 (xfaces.obj): Add.
10086
807cc41c
JR
100872000-03-03 Jason Rumney <jasonr@gnu.org>
10088
10089 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
10090 correct parameters.
10091
0007072a
KR
100922000-03-03 Ken Raeburn <raeburn@gnu.org>
10093
10094 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
10095 standard ELF definitions here if the system header does not.
10096
71a6ba55
GM
100972000-03-03 Gerd Moellmann <gerd@gnu.org>
10098
10099 * xterm.c (PER_CHAR_METRIC): Removed.
10100 (x_per_char_metric_1, x_default_char): New functions.
10101 (x_per_char_metric): If font's default char is invalid, return
10102 metrics of a suitably chosen usable default char.
10103 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
10104 char, replace occurrences of unprintable chars with a suitably
10105 chosen usable default char.
71a6ba55 10106
900fa1f1
GM
101072000-03-02 Gerd Moellmann <gerd@gnu.org>
10108
42f55fe0
GM
10109 * xterm.c (note_mouse_highlight): Return quickly if frame's
10110 glyph matrices have been freed.
10111
10112 * dispnew.c (free_glyphs): Block input while freeing matrices.
10113
900fa1f1
GM
10114 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
10115
52283633
SM
10116 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
10117 Use x_free_colors.
900fa1f1
GM
10118
10119 * dispextern.h (x_free_colors): Add prototype.
10120
10121 * xfaces.c (x_free_colors): New function.
10122 (unload_color, free_face_colors): Use it.
10123
2f950292
EZ
101242000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
10125
10126 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
10127
10128 * window.c [MSDOS]: Include msdos.h.
10129
54d04320
DL
101302000-03-02 Dave Love <fx@gnu.org>
10131
10132 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
10133
10134 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
10135 set C_OPTIMIZE_SWITCH for gcc.
10136
0ba93ac4
KH
101372000-03-02 Kenichi Handa <handa@etl.go.jp>
10138
10139 * coding.c (coding_save_composition): Be sure to allocate
10140 composition data area in coding even if there's no composition in
10141 the current run.
10142
a2bc11d4
JR
101432000-03-01 Jason Rumney <jasonr@gnu.org>
10144
10145 * w32term.c: Equivalent changes to those made to xterm.c on
10146 2000-02-25 and 2000-02-24.
10147
10148 * w32fns.c: Equivalent changes to those made to xfns.c on
10149 2000-02-25 and 2000-02-21.
10150
10151 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
10152 correct line-end convention is followed.
10153
10154 * w32menu.c [HAVE_BOXES]: Remove #undef.
10155 (single_keymap_panes): Remove code for simulating checkmarks.
10156 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
10157 Remove code for drawing simulated checkmarks.
10158 (w32_menu_show): make unibyte help string correctly.
10159 (add_menu_item): draw standard Windows checkmarks. Draw radio
10160 buttons as radio buttons if possible.
10161
72d19d75
GM
101622000-03-01 Gerd Moellmann <gerd@gnu.org>
10163
2df636f4
GM
10164 * sysdep.c (start_of_text): Don't define this function for NetBSD
10165 with ELF.
10166
427ec082 10167 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
10168 Don't define.
10169 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
10170 (LINKER): Don't undef if __NetBSD__ is defined.
10171
10172 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
10173
10174 * fileio.c [__NetBSD__]: Define `unix'.
10175
72d19d75
GM
10176 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
10177
ed4d0512
GM
101782000-02-29 Gerd Moellmann <gerd@gnu.org>
10179
50b1039f
GM
10180 * atimer.c (start_atimer): Don't abort when timers are stopped.
10181 (append_atimer_lists): New function.
10182 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
10183 arbitrary lists of stopped and running atimers.
10184
ed4d0512
GM
10185 * atimer.c (cancel_atimer): Handle canceling an atimer when
10186 some timers are stopped.
10187
10188 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
10189 after canceling it.
10190
10191 * fns.c (maybe_resize_hash_table): Handle case of new size
10192 coming out as being the same as old size.
10193
387023ee
JR
101942000-02-27 Jason Rumney <jasonr@gnu.org>
10195
10196 * makefile.nt: Add atimer.h to dependencies.
10197 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
10198 * w32console.c: Only disable window system features for dispextern.h
10199 (initialize_w32_display): Build a display info for the console.
10200 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
10201 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
10202 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
10203 as 2 button mice.
10204 * w32gui.h (struct W32FontStruct): Revert last change after change
10205 to xdisp.c.
10206 * w32menu.c (single_submenu): Set up help string.
10207 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
10208 (w32_dialog_show): Set up help string.
10209 * w32term.c (w32_display_info_for_display): Remove unused function.
10210 (w32_draw_bitmap): Use pre-built bitmaps.
10211 (w32_initialize_display_info): New function to initialize parts of
10212 display info that are common to both GUI and console frames.
10213 (w32_term_init): Use w32_initialize_display_info. Do not set
10214 Vw32_num_mouse_buttons here, as it is not called for console
10215 frames. Build bitmaps for indicating truncated lines etc.
10216 (x_delete_display): Destroy pre-built bitmaps.
10217 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
10218 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
10219
4516715a
DL
102202000-02-27 Dave Love <fx@gnu.org>
10221
10222 * lisp.h: Add a bunch of prototypes.
10223
171ca836
KH
102242000-02-26 Kenichi Handa <handa@etl.go.jp>
10225
10226 * keyboard.c (read_char): Set `usec' correctly.
10227
4013921d
KH
102282000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
10229
10230 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
10231 `lambda', set reg[RRR] to the map index.
10232 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
10233 reg[RRR] to 0. Otherwise, set it to -1.
10234
9244a058
GM
102352000-02-25 Gerd Moellmann <gerd@gnu.org>
10236
2df636f4 10237 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 10238
18e21ce8 102392000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 10240
f43d79c1
GM
10241 * fileio.c (Ffile_symlink_p): If result starts with a `/'
10242 and contains a `:', prepend `/:'.
10243
10244 * window.c (select_window_1): If selected_window is nil,
10245 don't "swap out" the buffer's point.
10246 (Fset_window_configuration): Set selected_window to nil
10247 before calling Fselect_window.
10248 (unshow_buffer): Don't set point in buffer from window's point
10249 if another more recently selected window also shows the buffer.
10250
bed0c171
GM
102512000-02-25 Gerd Moellmann <gerd@gnu.org>
10252
449c3c52
GM
10253 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
10254
f5b58615
GM
10255 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
10256 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
52283633
SM
10257 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
10258 New variables.
f5b58615
GM
10259 (DEFAULT_BUSY_CURSOR_DELAY): New define.
10260 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
10261 (hide_busy_cursor): New functions.
10262 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
10263
10264 * minibuf.c (read_minibuf): Cancel busy-cursor.
10265
10266 * keyboard.c (command_loop_1): Call start_busy_cursor before
10267 Fcommand_execute and cancel_busy_cursor after it.
10268 (timer_check): Remove busy-cursor code.
10269 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
10270 cursor timer.
10271
10272 * process.c (wait_reading_process_input): Remove busy-cursor code.
10273
10274 * eval.c (Fsignal): Call cancel_busy_cursor instead of
10275 Fx_hide_busy_cursor.
10276
10277 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
10278 Remove prototyoes.
10279 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
10280
10281 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
10282
10283 * xterm.c (XTread_socket): Remove busy-cursor code.
10284
4eb8436f
GM
10285 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
10286 (build_frame_matrix_from_leaf_window): Put code handling
10287 glyph row's not being a slice of a frame row in #if 0.
10288 (sync_window_with_frame_matrix_rows): New function.
10289 (frame_row_to_window): New function.
10290 (mirror_line_dance): Handle copies between windows.
10291
3cb65b0e
GM
10292 * lread.c (Fload): Use `xfree' instead of `free'.
10293 (init_obarray): Use `xmalloc' instead of `malloc'.
10294
bed0c171
GM
10295 * window.c (Fset_window_buffer): Set WINDOW to the window
10296 after decoding.
2add4349
GM
10297 (coordinates_in_window): Take frame's internal border width
10298 into account.
bed0c171 10299
42088c12
GM
103002000-02-24 Gerd Moellmann <gerd@gnu.org>
10301
10302 * xterm.c (x_display_and_set_cursor): Display cursor of
10303 non-selected windows depending on the setting of
10304 cursor_in_non_selected_windows.
10305
10306 * xdisp.c (cursor_in_non_selected_windows): New variable.
10307 (syms_of_xdisp): DEFVAR_BOOL it.
10308
d1e103b2
GM
103092000-02-23 Gerd Moellmann <gerd@gnu.org>
10310
723e779c
GM
10311 * data.c (Fstring_to_number): If number is greater than what
10312 fits into an integer, return a float.
10313
d1e103b2
GM
10314 * eval.c (specbind): Remove references to
10315 keyword_symbols_constant_flag.
10316
10317 * data.c (keyword_symbols_constant_flag): Removed.
10318 (Fmakunbound, set_internal, syms_of_data): Remove references to
10319 keyword_symbols_constant_flag.
10320
10321 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
10322
214f877f
KH
103232000-02-23 Kenichi Handa <handa@etl.go.jp>
10324
10325 * syntax.c (multibyte_syntax_as_symbol): New variable.
10326 (syms_of_syntax): Declare it as a Lisp variable.
10327 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
10328 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
10329 nonzero, treat all multibyte characters as symbol.
52283633 10330 (init_syntax_once): Give syntax `word' to all multibyte characters.
214f877f 10331
130adcb7
EZ
103322000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
10333
3cb65b0e 10334 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 10335 a deleted frame.
130adcb7 10336
17cbbf95
GM
103372000-02-21 Gerd Moellmann <gerd@gnu.org>
10338
10339 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
10340
10341 * xfns.c (x_window_to_frame, x_any_window_to_frame)
10342 (x_non_menubar_window_to_frame): Check the busy-cursor window.
10343
beb0bc36
DL
103442000-02-21 Dave Love <fx@gnu.org>
10345
10346 * frame.c (Vmouse_position_function): New variable.
10347 (Fmouse_position): Use it.
10348 (syms_of_frame): Install it.
10349
10350 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
10351
1d92afcd
GM
103522000-02-20 Gerd Moellmann <gerd@gnu.org>
10353
10354 * fileio.c (Finsert_file_contents): Unbind the binding of
10355 standard-output done by temp_output_buffer_setup.
329eed9f
GM
10356
10357 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
10358 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
10359 (specbind, unbind_to): Handle most common case of non-constant
10360 symbol with trivial value specially.
10361
10362 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
10363
18e21ce8 103642000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
10365
10366 * data.c (Fmake_variable_buffer_local): Doc fix.
10367 Init found_for_buffer to 0.
10368 (Fmake_variable_frame_local): If the variable has already
10369 been buffer-local, set the check_frame field.
10370
1d4311c3
EZ
103712000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
10372
10373 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
10374 produced for CODING_MODE_LAST_BLOCK requires.
10375
2dc95ddd
DL
103762000-02-18 Dave Love <fx@gnu.org>
10377
10378 * keyboard.c (echo_keystrokes): Remove declaration.
10379 (Vecho_keystrokes) New variable.
10380 (read_char, record_menu_key, read_key_sequence): Use it to allow
10381 use of float value.
10382 (syms_of_keyboard): Change Vecho_keystrokes declaration.
10383
10384 * lread.c: Undef feature selection macros before defining.
10385
f0930f35
GM
103862000-02-18 Gerd Moellmann <gerd@gnu.org>
10387
10388 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
10389 for symbols other than the symbol in question.
10390
e3d4de90
DL
103912000-02-17 Dave Love <fx@gnu.org>
10392
10393 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
10394
0b378936
GM
103952000-02-17 Gerd Moellmann <gerd@gnu.org>
10396
d621caf7
GM
10397 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
10398
0b378936
GM
10399 * alloc.c (enum mem_type): Compile unconditionally.
10400
3b451f74
EZ
104012000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
10402
10403 * xfaces.c (tty_defined_color): Don't return faulire indication
10404 for unspecified-fg and unspecified-bg pseudo-colors.
10405
10689a01
GM
104062000-02-17 Gerd Moellmann <gerd@gnu.org>
10407
1216f5e4
GM
10408 * alloc.c (mark_object): Don't mark symbol names in pure space.
10409 (gc_sweep): Don't unmark symbol names in pure space.
10410
10411 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
10412 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
10413 [GC_MARK_STACK]: New defines.
427ec082 10414 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
10415 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
10416
10417 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
10418
10419 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
10420 allocate_buffer instead of xmalloc.
10421
10422 * alloc.c (toplevel): Include setjmp.h.
10423 (PURE_POINTER_P): New define.
10424 (enum mem_type) [GC_MARK_STACK]: New enumeration.
10425 (Vdead) [GC_MARK_STACK]: New variable.
10426 (lisp_malloc): Add parameter TYPE, call mem_insert if
10427 GC_MARK_STACK is defined.
10428 (allocate_buffer): New function.
427ec082 10429 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
10430 (free_float) [GC_MARK_STACK]: Set type to Vdead.
10431 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
10432 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
10433 (MEM_NIL) [GC_MARK_STACK]: New define.
10434 (struct mem_node) [GC_MARK_STACK]: New structure.
10435 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
10436 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
10437 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
10438 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
10439 (mark_stack) [GC_MARK_STACK]: New functions.
10440 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
10441 (clear_marks): Removed.
10442 (gc_sweep): Set free conses' car, free floats' type, free
10443 symbols' function to Vdead. Use lisp_free to free buffers.
10444 (init_alloc_once): Initialize Vdead.
10445 (survives_gc_p): Return non-zero for pure objects.
10446
10447 * alloc.c: Add comments throughout the file.
10448
2503c8b1
GM
10449 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
10450 that unblocks alarms.
10451
8389e1e2
GM
10452 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
10453 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
10454 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
10455
10689a01 10456 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 10457
bfc17d18
KH
104582000-02-17 Kenichi Handa <handa@etl.go.jp>
10459
4a09dee0
KH
10460 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
10461 avoid infinite error signaling. Allocate sufficient memory for
10462 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 10463
2b927d02
SM
104642000-02-17 Stefan Monnier <monnier@cs.yale.edu>
10465
10466 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
10467 depends on the previous behavior.
10468
b49cb764
GM
104692000-02-16 Gerd Moellmann <gerd@gnu.org>
10470
10471 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
10472
99e95407
GM
104732000-02-15 Gerd Moellmann <gerd@gnu.org>
10474
10475 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
10476
10477 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 10478 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
10479 write(2).
10480
6ffd3cf7
RS
104812000-02-15 Richard M. Stallman <rms@gnu.org>
10482
10483 * data.c (set_internal): Don't make variable buffer-local
10484 if within a let-binding for the same buffer.
10485 (let_shadows_buffer_binding_p): New function.
10486
10487 * eval.c (specbind): For buffer-local value,
10488 record the current buffer also.
10489 (unbind_to): Cope with that change.
10490
cad53475
GM
104912000-02-15 Gerd Moellmann <gerd@gnu.org>
10492
10493 * window.c (Fsave_window_excursion): Doc fix.
10494
1aa963c8
SM
104952000-02-15 Stefan Monnier <monnier@cs.yale.edu>
10496
10497 * syntax.c (back_comment): Make sure we only consider comment-starters
10498 of the relevant style and return -1 in case of a failure to find the
10499 beginning of the comment.
10500 (Fforward_comment): If back_comment fails, go back to the position just
10501 after the comment-end.
10502 (scan_lists): Add comment describing a very minor bug.
10503
b9b84fd3
SM
105042000-02-14 Stefan Monnier <monnier@cs.yale.edu>
10505
10506 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
10507 `completion-regexp-list' in the docstring.
10508
3a28db80
DL
105092000-02-14 Dave Love <fx@gnu.org>
10510
10511 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
10512
fb4a568d
SM
105132000-02-14 Stefan Monnier <monnier@cs.yale.edu>
10514
10515 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
10516 to Emacs' syntax. Also fix the comment about set/not-set meanings
10517 since Emacs syntax is not the value 0 any more.
10518 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
10519 since it's now part of RE_SYNTAX_EMACS.
10520
1063ebb5
DL
105212000-02-12 Dave Love <fx@gnu.org>
10522
52283633 10523 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
1063ebb5 10524
fb07a302
GM
105252000-02-12 Gerd Moellmann <gerd@gnu.org>
10526
10527 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
10528
aaf2320c
DL
105292000-02-12 Dave Love <fx@gnu.org>
10530
10531 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
10532
10533 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
10534 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
10535 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
10536
10537 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
10538
10539 * s/nextstep.h: Don't define HAVE_ALLOCA.
10540
10541 * config.in: Add vfork bits.
10542
eedf8bde
GM
105432000-02-12 Gerd Moellmann <gerd@gnu.org>
10544
10545 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
10546 unwind function to undo the effect of stopping atimers.
10547
52283633 10548 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
eedf8bde
GM
10549
10550 * atimer.c (stopped_atimers): New variable.
10551 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
10552 New functions.
10553
10554 * atimer.h (stop_other_atimers, run_all_atimers)
10555 (unwind_stop_other_atimers): Add function prototypes.
427ec082 10556
eedf8bde
GM
10557 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
10558
8476c2f8
KR
105592000-02-11 Ken Raeburn <raeburn@gnu.org>
10560
10561 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
10562 library may depend on jpeg.
10563 (atimer.o): Depends on atimer.c.
10564
0e85e4a3
KH
105652000-02-11 Kenichi Handa <handa@etl.go.jp>
10566
10567 * insdel.c (del_range_1): Call update_compositions.
10568 (del_range_both): Call update_compositions just once..
10569
97fa0cc8
DL
105702000-02-10 Dave Love <fx@gnu.org>
10571
10572 * xfns.c (create_frame_xic): Fix initialization of automatic
10573 aggregates for pcc.
10574
25566a3c
KH
105752000-02-09 Kenichi Handa <handa@etl.go.jp>
10576
10577 * ccl.c (CCL_MAKE_CHAR): New macro.
10578 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
10579 registers by CCL_MAKE_CHAR before calling translate_char.
10580 <CCL_TranslateCharacterConstTbl> Likewise.
10581
69da54ba
DL
105822000-02-08 Dave Love <fx@gnu.org>
10583
10584 * lread.c (__EXTENSIONS__): Define.
10585
f7136ee8
GM
105862000-02-08 Gerd Moellmann <gerd@gnu.org>
10587
10588 * puresize.h (BASE_PURESIZE): Increase to 650000.
10589
7768790b
EZ
105902000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
10591
10592 * msdos.c (XMenuActivate): Turn off the cursor after displaying
10593 the help message.
10594
38fd211b
EZ
105952000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
10596
10597 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
10598 md, mh, mb, mr, and me to the fake termcap entry.
10599
66e4690f
KR
106002000-02-06 Ken Raeburn <raeburn@gnu.org>
10601
10602 * sound.c (sound_cleanup): Don't call device close routine if the
10603 function pointer is null.
10604
a75dfea0
AI
106052000-02-06 Andrew Innes <andrewi@gnu.org>
10606
10607 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
10608 around image definitions and prototypes.
10609 (gamma_correct) [WINDOWSNT]: New prototype.
10610
10611 * w32term.c (x_make_frame_visible): Replace call to
10612 input_poll_signal with poll_for_input.
10613
10614 * window.c [WINDOWSNT]: Include w32term.h.
10615
10616 * xdisp.c [WINDOWSNT]: Include w32term.h.
10617
10618 * makefile.nt: Add dependencies on w32gui.h.
10619 (OBJ1): Include atimer.obj.
10620 ($(BLD)\atimer.obj): New dependency rule.
10621
10622 * w32.c (sigmask): New function (does nothing).
10623 (sigunblock): Ditto.
10624
10625 * frame.c [WINDOWSNT]: Include w32term.h.
10626
10627 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
10628
10629 * lread.c (syms_of_lread): Fix literal newlines.
10630
10631 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
10632 the string constant limit (2048 bytes) in MSVC.
10633 (main): Ditto.
10634
59ddecde
GM
106352000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
10636
52283633 10637 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
59ddecde
GM
10638 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
10639 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
10640 dispatch the event.
10641
07590973
DL
106422000-02-04 Dave Love <fx@gnu.org>
10643
10644 * fileio.c: Remove some unused vars.
10645 (_GNU_SOURCE): Define (for euidaccess).
10646
10647 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
10648
10649 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
10650 gcpro1, gcpro2.
10651 (read_minibuf): Deal with allow_props correctly.
10652
649351f9
EZ
106532000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
10654
10655 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
10656
66e4690f 106572000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
10658
10659 * search.c (compile_pattern): If a cache entry has a nil regexp,
10660 fill in that entry instead of clobbering a previously cached
10661 string regexp.
10662
66e4690f 106632000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
10664
10665 * puresize.h (BASE_PURESIZE): Increase to 610000.
10666
d240a249
GM
106672000-02-02 Gerd Moellmann <gerd@gnu.org>
10668
10669 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
10670 can GC.
10671
ca91fb26
KH
106722000-02-02 Kenichi Handa <handa@etl.go.jp>
10673
25660570
KH
10674 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
10675 instead of incrementing ic directly.
10676 <CCL_WriteExprConst> Likewise.
10677 <ccl_set_expr>: Set ic to jump_address.
10678
ca91fb26
KH
10679 * fileio.c (e_write): Fix the handling of
10680 CODING_FINISH_INSUFFICIENT_SRC.
10681
2ede9689
DL
106822000-02-01 Dave Love <fx@gnu.org>
10683
10684 * editfns.c (Fpropertize): Doc fix.
10685
10686 * process.c (Fstart_process): Doc fix.
10687
10688 * eval.c: Fix various doc strings not to duplicate information
10689 from help-manyarg-func-alist.
10690
52283633 10691 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
2ede9689
DL
10692
10693 * doc.c (Vhelp_manyarg_func_alist): New variable.
10694 (Fdocumentation): Use it.
10695 (syms_of_doc): Define it.
10696
b6680a0e
GM
106972000-01-31 Gerd Moellmann <gerd@gnu.org>
10698
2cb750ba
GM
10699 * xterm.c (xim_open_dpy): Remove unused local variable.
10700
52283633 10701 * emacs.c (USAGE): Use term `display options' instead of `X options'.
74e9213b
GM
10702
10703 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
10704 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
10705
b6680a0e
GM
10706 * fns.c (sweep_weak_table): New function.
10707 (sweep_weak_hash_tables): Use it. Keep on marking until there
10708 is no more change.
10709
994c5afe
GM
107102000-01-30 Gerd Moellmann <gerd@gnu.org>
10711
10712 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
10713 that XTread_socket does not crash by trying to call XNoOp on a
10714 closed display.
427ec082 10715
f00276e3
JR
107162000-01-30 Jason Rumney <jasonr@gnu.org>
10717
10718 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
10719 Change selected_frame to SELECTED_FRAME ().
10720 (w32_console_mouse_position): Remove #ifndef MULE from around
10721 `insist' parameter.
10722
10723 * makefile.nt: Remove dosfns.obj.
10724
10725 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
10726
10727 * w32fns.c (w32_defined_color): Check for valid frame before
10728 applying gamma correction. Eliminate dependency on frame elsewhere.
10729 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
10730 (w32_to_x_font): Use resx and resy not height_in and width_in.
10731 (x_to_w32_font): Doc fix.
10732 (xlfd_strip_height): New function to strip and return font height.
10733 (w32_font_match): Compare height separately from rest of xlfd
10734 spec, using xlfd_strip_height.
10735
10736 * w32term.c (w32_term_init): Swap resx and height_in, resy and
10737 width_in. Use w32_defined_color in place of defined_color.
10738
10739 * w32faces.c: Merge more of DOS and X specifics in preparation for
10740 merge with xfaces.c.
10741 (defined_color): Remove FIXME comment.
10742 (tty_color_name): Provide w32-specific function.
10743 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
10744
10745 * w32console.c (turn_on_face, turn_off_face): Removed.
10746 (w32_face_attributes): New function.
10747 (Global_variables): Reduce scope where possible.
10748 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
10749 fill attribute.
10750 (hl_mode): Don't modify text attributes.
10751 (write_glyphs): Don't do anything if len <= 0. Use
10752 w32_face_attributes to get attributes for drawing. Write
10753 terminating codes using char_attr_normal.
10754 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
10755 (update_begin, update_end): Likewise.
10756 (vga_stdcolor_name): New function.
10757 (initialize_w32_display): Remove char_attr_reverse and char_attr.
10758 (Fset_screen_color): Remove char_attr_reverse.
10759
b08e8bb2
GM
107602000-01-29 Gerd Moellmann <gerd@gnu.org>
10761
10762 * xfns.c (xic_set_preeditarea): Take window parameter and
10763 window-relative pixel-positions.
10764
10765 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
10766 is its frame's selected window.
10767 (xim_instantiate_callback): Likewise.
10768
10769 * xfns.c (x_create_im): Removed.
10770 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
10771 (supported_xim_styles): Renamed from supported_styles.
10772 (best_xim_style): Renamed from best_style.
10773 (create_frame_xic): Renamed from xic_create_frame.
10774 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 10775
b08e8bb2
GM
107762000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
10777
10778 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
10779 our frames, call XFilterEvent with 2nd parameter `None'.
10780 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
10781 returning XBufferOverflow.
52283633 10782 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
b08e8bb2
GM
10783 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
10784 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
10785 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
10786 (xim_initialize, xim_close)
10787 [HAVE_X_I18N && HAVE_X11R6]: New functions.
10788 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
10789 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
10790 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
10791
10792 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
10793 and `xim_styles'.
10794 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
10795 `xic_style' and `xic_xfs'.
10796 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
10797 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
10798 (FRAME_XIM): Removed.
10799
10800 * xfns.c (supported_styles): New variable.
10801 (DEFAULT_STYLE, DEFAULT_FONT): New macros
10802 (xic_create_xfontset, best_style, xic_create_frame)
10803 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
10804 (xic_set_xfontset): New functions.
10805
142e109c
DL
108062000-01-28 Dave Love <fx@gnu.org>
10807
10808 * s/irix6-5.h: Revert last change after change to irix5-0.h.
10809
10810 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
10811
b02786f9
GM
108122000-01-28 Gerd Moellmann <gerd@gnu.org>
10813
d060bc9f
GM
10814 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
10815 for *scratch* if it already existed.
10816
b02786f9
GM
10817 * emacs.c (USAGE): New macro.
10818 (main): Use it to display usage information.
10819
2c52d7e4
EZ
108202000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
10821
10822 Support for the menu-help feature:
10823
52283633 10824 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
2c52d7e4
EZ
10825
10826 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
10827 part of the line to the termscript file.
10828 (IT_clear_to_end): Clear the entire line, not just its beginning.
10829 (menu_help_message, prev_menu_help_message): New variables.
10830 (IT_menu_make_room): Make room for the help_text member.
10831 (IT_menu_display): New argument disp_help; all callers changed.
10832 If disp_help is non-zero, store the help text of the active menu
10833 item in menu_help_message.
10834 (XMenuAddPane): Initialize the help_text member to NULL.
10835 (XMenuAddSelection): New argument help_text. Store it in the
10836 XMenu structure.
10837 (XMenuActivate): New argument help_callback. If the value of
10838 menu_help_message has changed since the last time, display the
10839 menu help message text while waiting for the mouse to move. Clear
10840 the echo area before exiting.
10841 (XMenuDestroy): Free the help_text member.
10842
ffe0bcd1
GM
108432000-01-27 Gerd Moellmann <gerd@gnu.org>
10844
10845 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
10846 XMenuAddSelection. Pass help callback to XMenuActivate.
10847 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
10848
50dbd23f
EZ
108492000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
10850
10851 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
10852 and EMACS_SET_USECS.
10853
f5941bf8
GM
108542000-01-26 Dave Love <fx@gnu.org>
10855
6c67ddee
DL
10856 * editfns.c (Fchar_after, Fchar_before): Doc fix.
10857
f5941bf8
GM
10858 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
10859 an error may be signalled.
10860
9e49c990
GM
108612000-01-26 Gerd Moellmann <gerd@gnu.org>
10862
fc3cb460
GM
10863 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
10864 LD_SWITCH_SYSTEM inherited from irix5-0.h.
10865
9e49c990
GM
10866 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
10867
d0c037d8
GM
108682000-01-25 Gerd Moellmann <gerd@gnu.org>
10869
10870 * charset.c (Fstring): If there is a multibyte char among
10871 the args, always return a multibyte string.
10872
e12489f9
GM
108732000-01-25 Gerd Moellmann <gerd@gnu.org>
10874
10875 * sysdep.c (sys_select): Turn atimers off and on instead of
10876 recording and restoring old alarm handler
10877
10878 * process.c (toplevel): Include atimer.h.
10879 (create_process_1): Rewritten.
10880 (create_process): Use atimers instead of alarm.
10881 (wait_reading_process_input) [hpux]: Turn atimers off instead
10882 of turning off SIGALRM.
10883 (wait_reading_process_input): Turn off atimers instead off
10884 calling stop_polling.
10885
10886 * emacs.c (main): Call init_atimer.
10887
10888 * keyboard.c (toplevel): Include systime.h and atimer.h.
10889 (polling_for_input): Removed because unused.
10890 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
10891 (poll_timer): New variable.
10892 (poll_for_input, poll_for_input_1): New functions.
10893 (start_polling, stop_polling): Rewritten.
10894
10895 * keyboard.h (polling_for_input): Removed.
427ec082 10896
e12489f9
GM
10897 * atimer.h, atimer.c: New files.
10898
10899 * Makefile.in (obj): Add atimer.o.
10900 (atimer.o): New target.
10901
10902 * blockinput.h (pending_atimers): Add extern declaration.
10903 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
10904
10905 * lisp.h (popup_activated_flag): Add extern declaration.
10906
10907 * xmenu.c (popup_activated_flag): Make externally visible.
52283633 10908 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
e12489f9
GM
10909 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
10910
10911 * xterm.c (toplevel): Include atimer.h.
10912 (toolkit_scroll_bar_interaction): New variable.
10913 (Fxt_process_timeouts): Removed.
10914 (x_process_timeouts): New function.
10915 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
10916 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
10917 (x_make_frame_visible): Call poll_for_input_1 instead of
10918 input_poll_signal. Don't call alarm.
10919 (x_initialize): Install timer calling x_process_timeouts.
427ec082 10920
1e5279b9
DL
109212000-01-24 Dave Love <fx@gnu.org>
10922
6c67ddee 10923 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
10924 Don't use -cckr -- apparently not now necessary.
10925
edf6aeb8
EZ
109262000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
10927
10928 * msdos.c (IT_menu_display): Truncate long menu lines at the right
10929 screen boundary.
10930
9badad41
JR
109312000-01-23 Jason Rumney <jasonr@gnu.org>
10932
10933 * w32fns.c (w32_defined_color): Apply gamma correction before
10934 trying to map to the palette.
10935 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
10936 to w32_clear_rect.
10937
10938 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
10939 here. Callers changed to always pass real device context.
10940 (w32_draw_bitmap): Likewise.
10941 (w32_get_glyph_overhangs): Likewise.
52283633 10942 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
9badad41
JR
10943 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
10944 pfnSetScrollInfo and SetScrollRange.
10945 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
10946 back into MULE characters after decoding them.
10947 (x_get_glyph_face_and_encoding): Likewise.
10948 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
10949 GetCharABCWidthsW fails, since this is defined on Windows 9x.
10950 (x_produce_glyphs): Calculate per char metrics for a character
10951 that we know exists in default font when font_not_found_p is true.
10952
63bd786b
JR
109532000-01-22 Jason Rumney <jasonr@gnu.org>
10954
10955 * makefile.nt (intervals.obj, composite.obj): New modules.
10956 (composite.h): Added as dependency where appropriate.
10957
10958 * w32gui.h (XGCValue): New struct for emulating X GCs.
10959
10960 * w32term.h (XCharStruct): New struct for emulating X.
10961
10962 * w32console.c (turn_on_face, turn_off_face): New functions.
10963 (change_line_highlight): New prototype for new redisplay.
10964 (write_glyphs): Support multibyte text. Support faces.
10965
52283633 10966 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
63bd786b
JR
10967
10968 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
10969 throughout. struct frame * in place of FRAME_PTR.
10970 Skeleton support for images, toolbars, tooltips from xfns.c.
52283633 10971 (Fx_create_frame): Use system default for default scroll bar width.
63bd786b
JR
10972 (w32_get_arg): Renamed from x_get_arg.
10973 (Fx_file_dialog): New function.
10974 (w32_list_fonts): Check cache before asking system.
10975 (Vw32_enable_synthesized_fonts): New variable.
10976 (Vw32_enable_italics): Obsolete, removed.
10977
10978 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
10979 Use SELECTED_FRAME macro.
10980
10981 * w32menu.c: Add skeleton support for help strings on menus.
10982 (add_menu_item): Native checkbox and radio support added, but not
10983 yet enabled due to bugs.
10984 (push_menu_item): Add parameters type, selection and help.
10985 Callers updated.
10986 Formatting changes to reduce unnecessary diffs with xmenu.c.
10987
10988 * w32select.c (Fw32_set_clipboard_data): Update call to
10989 find_charset_in_str.
10990
10991 * w32term.c: Complete rewrite for new redisplay based on new
10992 xterm.c with necessary sections merged back in from old w32term.c.
10993
6ffd3cf7 109942000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
10995
10996 * data.c (set_internal): Further fix in same criterion.
10997
6ffd3cf7 109982000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
10999
11000 * data.c (set_internal): Fix the criteria for whether
11001 to swap out the old cached binding.
11002
60af03f1
DL
110032000-01-19 Dave Love <fx@gnu.org>
11004
11005 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
11006
f9be074f
KH
110072000-01-18 Kenichi Handa <handa@etl.go.jp>
11008
11009 * regex.c (re_compile_fastmap): While checking a range table for
11010 `charset', skip flag bits for a character class correctly.
11011
52b8dbf9
GM
110122000-01-17 Gerd Moellmann <gerd@gnu.org>
11013
d36100c9
GM
11014 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
11015
52283633 11016 * xfns.c (x_window): Call lw_create_widget with new parameter list.
52b8dbf9
GM
11017
11018 * widget.c (EmacsFrameSetCharSize): Change size of children first
52283633 11019 because of problems with main window geometry management under Lesstif.
52b8dbf9
GM
11020
11021 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
11022 MENU_ITEMS_ITEM_.*.
11023 (MENU_ITEMS_ITEM_HELP): New enumerator.
11024 (push_menu_item): Add parameter HELP. Record help in menu_items.
11025 (single_menu_item, single_submenu, list_of_items): Call
11026 push_menu_item with new parameter.
11027 (single_submenu): Set help string in widget value.
11028 (menu_highlight_callback): New function.
11029 (set_frame_menubar): Call lw_create_widget with new
11030 parameter list.
11031 (xmenu_show, xdialog_show): Ditto.
11032
3139018f
GM
110332000-01-13 Gerd Moellmann <gerd@gnu.org>
11034
11035 * sound.c (Fplay_sound): Improve doc string.
11036
83c8f461
RS
110372000-01-11 Richard M. Stallman <rms@gnu.org>
11038
11039 * lisp.h (set_internal): Enter the new arg.
11040
11041 * eval.c (specbind): Record buffer-local variables specially,
11042 indicating which buffer's binding was saved.
11043 (unbind_to): Restore buffer-local variables specially
11044 in the proper buffer.
11045
11046 * data.c (set_internal): New arg BUF.
427ec082 11047
83c8f461
RS
11048 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
11049 * data.c (Fset): Pass new arg to set_internal.
11050 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 11051
1fab1775
GM
110522000-01-11 Gerd Moellmann <gerd@gnu.org>
11053
52283633 11054 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
1fab1775 11055
83c8f461 110562000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
11057
11058 * minibuf.c (Ftry_completion): Doc fix.
11059
7a85e4df
GM
110602000-01-11 Gerd Moellmann <gerd@gnu.org>
11061
11062 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
11063 vector, too.
11064
a970dae4
AS
110652000-01-11 Andreas Schwab <schwab@suse.de>
11066
11067 * coding.c (code_convert_region): Initialize total_skip.
11068
c65d14ee
DL
110692000-01-08 Dave Love <fx@gnu.org>
11070
11071 * eval.c (Fuser_variable_p): Check customizability too.
11072
834938d2
GM
110732000-01-07 Gerd Moellmann <gerd@gnu.org>
11074
11075 * minibuf.c (Fcompleting_read): Doc fix.
11076
e0303cd6
GM
110772000-01-05 Gerd Moellmann <gerd@gnu.org>
11078
8a26744b
GM
11079 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
11080 -L /usr/local/lib.
11081
e0303cd6
GM
11082 * xfns.c (x_create_im): New function to set IM and IC of a frame.
11083 Check that input style is supported before trying to create an
11084 IC for it.
11085 (x_window): Call x_create_im.
427ec082 11086
2e471eb5
GM
110872000-01-04 Gerd Moellmann <gerd@gnu.org>
11088
560a7bd2
GM
11089 * xfns.c (current_gif_memory_src): New variable.
11090 (gif_load): Record the address of the current memory source
11091 in current_gif_memory_src.
11092 (gif_read_from_memory): Use current_gif_memory_src.
11093
f9ee84a3
GM
11094 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
11095 macros statement form.
11096
d1299cde
GM
11097 * sound.c (struct sound): Renamed from struct sound_file.
11098 (struct sound): Add members `data' and `header_size'.
11099 (enum sound_attr): Add SOUND_DATA.
11100 (current_sound, current_sound_device): Variables renamed from
11101 sound_file and sound_device.
11102 (parse_sound): Parse :data.
11103 (parse_sound): Handle sound data in strings.
11104 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 11105 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
11106 needed header size.
11107 (wav_play, au_play): Play sounds from string data.
11108
2e471eb5
GM
11109 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
11110
11111 * lisp.h: Add prototype for allocate_string_data.
11112
52283633 11113 * alloc.c (Fgarbage_collect): Return number of live and free strings.
2e471eb5
GM
11114
11115 * alloc.c (mark_buffer): Remove code in #if 0.
11116 (gc_sweep): Ditto.
11117 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
11118 (strings_consed): New variable.
11119 (allocate_string): Set it.
11120 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
11121 (Fmemory_use_counts): Return strings_consed. Use Flist.
11122
11123 * alloc.c: General cleanup in comments etc. Remove conditional
11124 compilation for `standalone'.
11125
11126 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
11127
11128 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
11129 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
11130 (DONT_COPY_FLAG): Removed.
11131 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
11132 (struct sdata, struct sblock): New
11133 (struct string_block): Rewritten.
11134 (STRINGS_IN_STRING_BLOCK): New macro.
11135 (oldest_sblock, current_sblock, total_strings, total_free_strings)
11136 (large_sblocks, string_blocks, string_free_list): New variables.
11137 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
11138 (init_strings): Rewritten.
11139 (allocate_string, allocate_string_data, compact_small_strings)
11140 (free_large_strings, sweep_strings): New functions.
11141 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
11142 (struct string_block_head, current_string_block)
11143 (first_string_block, large_string_blocks, STRING_FULLSIZE)
11144 (STRING_PAD): Removed.
11145 (make_uninit_multibyte_string, make_pure_string): Rewritten.
11146 (Fgarbage_collect): Don't set mark bit in large strings.
11147 (mark_object): Mark strings differently. Mark symbol names
11148 differently.
11149 (survives_gc_p): Test marked strings differently.
427ec082 11150 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
11151 symbol names.
11152 (compact_strings): Removed.
11153
42608ba8
EZ
111542000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
11155
11156 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
11157 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
11158
e0a09e1a
KH
111592000-01-04 Kenichi Handa <handa@etl.go.jp>
11160
dd9f0750 11161 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 11162 in a non-empty buffer.
dd9f0750 11163
3c0f3b15 11164 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 11165
44cd3ae5
GM
111662000-01-03 Gerd Moellmann <gerd@gnu.org>
11167
11168 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
11169 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
11170
11171 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
11172
c182a70f
EZ
111732000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11174
11175 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
11176 need to test for MSDOS frames.
11177
24480d5b
EZ
111782000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11179
11180 * dosfns.c (unspecified_colors): Remove.
11181 (msdos_stdcolor_idx): Use global variables unspecified_fg and
11182 unspecified_bg.
11183 (msdos_stdcolor_name): Return strings for unspecified fore- and
11184 back-ground colors.
11185
11186 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 11187 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
11188 (tty_color_name): Return Lisp strings for unspecified fore- and
11189 back-ground colors.
11190 (Finternal_set_lisp_face_attribute): Remove the special treatment
11191 for Qunspecified_{f,b}g.
52283633 11192 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
24480d5b 11193
047f434a
GM
111942000-01-03 Gerd Moellmann <gerd@gnu.org>
11195
11196 * xdisp.c (reseat_at_next_visible_line_start): Position before
11197 newline only if ending up on a newline.
11198 (next_element_from_ellipsis): Return success. Handle case of
52283633 11199 displaying no ellipsis. Fix case of ellipsis defined in display table.
047f434a
GM
11200 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
11201 returns 0.
11202
d684c676
EZ
112032000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11204
11205 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
11206 (Fcolor_supported_p): Renamed from face-color-supported-p.
11207
5fe1d139
EZ
112082000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11209
11210 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
11211 list of colors renamed to tty-defined-color-alist.
11212 (tty_color_name): Pass the frame to tty-color-by-index.
11213 (realize_tty_face): tty-color-alist is now a function which
11214 accepts the frame as argument.
11215
52283633 11216 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
5fe1d139 11217
816be8b8
EZ
112182000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11219
11220 * term.c (insert_glyphs): Pass glyph, not &glyph, to
11221 encode_terminal_code.
11222
b635321e
EZ
112232000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11224
11225 * dispnew.c (mode_line_string): Support termcap frames as well.
11226
9b784e96
GM
112272000-01-01 Gerd Moellmann <gerd@gnu.org>
11228
27189709
GM
11229 * syntax.c (Fforward_word): Undo previous change.
11230
11231 * editfns.c (Fconstrain_to_field): Don't constrain if
11232 inhibit-field-text-motion is non-nil.
11233 (Fline_beginning_position): Undo previous change.
11234 (Fline_end_position): Ditto.
11235
11236 * syntax.c (Fforward_word): Notice field boundaries only if
11237 inhibit-field-text-motion is nil.
11238
11239 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
11240
11241 * editfns.c (Vinhibit_field_text_motion): New variable.
11242 (inhibit-field-text-motion): New DEFVAR_LISP.
11243 (Fline_beginning_position, Fline_end_position): Notice field
11244 boundaries only if inhibit-field-text-motion is nil.
11245
45158a91
GM
11246 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
11247 All calls adjusted.
11248 (x_build_heuristic_mask): Likewise.
11249 (xbm_load_image_from_file): Change error output.
11250 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
11251 (gif_load, gs_load, x_kill_gs_process): Ditto.
11252
9b784e96
GM
11253 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
11254 color indices when accessing raster pixels.
63cec32f
GM
11255 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
11256 one of :file or :data.
11257 (enum pbm_keyword_index): Add PBM_DATA.
11258 (pbm_format): Add :data.
11259 (pbm_image_p): Allow either :file or :data.
11260 (pbm_read_file): New function.
11261 (pbm_scan_number): Rewritten to read from string.
11262 (pbm_load): Support :data.
9b784e96 11263
2cb085db 11264See ChangeLog.8 for earlier changes.
6922b018
KH
11265
11266;; Local Variables:
49b3bd82 11267;; coding: iso-2022-7bit
6922b018 11268;; End: