Correct case of "Mark set" message.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
719d83ad
GM
12001-04-10 Gerd Moellmann <gerd@gnu.org>
2
60f8d735
GM
3 * fns.c (Fcompare_strings): Fix return values.
4
afffeb57
GM
5 * window.c (window_scroll): Change the meaning of N to mean
6 N screen-fulls or N lines.
7 (window_scroll_pixel_based, window_scroll_line_based)
8 (scroll_command, Fscroll_other_window): Change accordingly.
9
10 * window.c (window_scroll_pixel_based, Frecenter): Call
11 window_box_height instead of using it.last_visible_y for the
12 height of the window.
13
14 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
15 instead of using it.last_visible_y for the height of the window.
16
719d83ad
GM
17 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
18
19 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
20 able to write to hidden and system files. Make file handles
21 non-inheritable.
22
23 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile.
24
522ed7fb
GM
252001-04-09 Gerd Moellmann <gerd@gnu.org>
26
9170e5d4
GM
27 * fns.c (Fplist_get, Fplist_put): Add QUITs.
28
522ed7fb
GM
29 * window.c (window_internal_height): Return 1 less if the
30 window has a header line.
31
32 * xdisp.c (try_window_id): When scrolling on a terminal, take
33 the change of window_internal_height into account.
34
ceeb3d7d
EZ
352001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
36
37 * gmalloc.c (align): If the argument SIZE would overflow
38 __malloc_ptrdiff_t, fail right away.
39
63685b9d
GM
402001-04-06 Gerd Moellmann <gerd@gnu.org>
41
42 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
43 Make sure the tooltip is completely visible.
44 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
45
46 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
47
48 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
49
3ffb33bb
DL
502001-04-06 Dave Love <fx@gnu.org>
51
52 * composite.c (update_compositions) <check_mask & CHECK_HEAD>: Fix
53 test of `from'.
54
869fb12c
GM
552001-04-06 Gerd Moellmann <gerd@gnu.org>
56
afa3935f
GM
57 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of
58 PROP.
59
869fb12c
GM
60 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
61
441bf856
GM
622001-04-05 Gerd Moellmann <gerd@gnu.org>
63
4d664b04
GM
64 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
65
a55e4e68
GM
66 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone
67 names.
68
30ca89f5
GM
69 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
70 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
71
72 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
73 shell widget's position only if it is non-null.
74
75 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Set
76 f->output_data.x->widget to null after destroying it.
77
81a81c0f
GM
78 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
79 FILENAME to bring it in synch with the documentation.
80
441bf856
GM
81 * xfaces.c (realizing_basic_faces_p): Renamed from
82 realize_default_face_p.
83 (realize_basic_faces): Set/clear realizing_basic_faces_p.
84 (realize_default_face): Don't set the flag.
85
702a1e8e
GM
862001-04-04 Gerd Moellmann <gerd@gnu.org>
87
1013f4e3
GM
88 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
89
90 * keyboard.c (echoing, echo_message_buffer): Make externally
91 visible.
92
93 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
94 the buffer that was used for echoing.
95
702a1e8e
GM
96 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
97 (first_font_matching): Removed unused function.
98 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
99 (may_use_scalable_font_p): Remove parameter FONT; rename
100 parameter NAME to FONT.
101 (x_face_list_fonts): Fix missing bounds check.
102 (realizing_default_face_p): New variable.
103 (realize_default_face): Set and clear that flag.
104 (x_face_list_fonts): When called during the realization of the
105 default face, and no matching fonts are found when ignoring
106 scalable fonts and fonts matching a regexp from
107 face-ignored-fonts, try without ignoring fonts.
108
f9dbcda4
GM
1092001-04-03 Gerd Moellmann <gerd@gnu.org>
110
ad18ffb1
GM
111 * xfns.c (postprocess_image): New function.
112 (lookup_image): Call it for all image types except PostScript.
113 (x_kill_gs_process): Call postprocess_image.
114
f9dbcda4
GM
115 * xterm.c (x_use_underline_position_properties): New variable.
116 (x_draw_glyph_string): Use it.
117 (syms_of_xterm): DEFVAR_BOOL it.
118
651f03b6
GM
1192001-04-02 Gerd Moellmann <gerd@gnu.org>
120
121 * xterm.c (x_alloc_nearest_color_1): New function.
122 (x_alloc_nearest_color): Use it.
123 (x_color_cells): Take a Display as argument, instead of a frame.
124 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
125 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
126 (x_initialize): Register cvt_string_to_pixel as resource converter
127 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
128
73d75a62
GM
1292001-03-30 Gerd Moellmann <gerd@gnu.org>
130
b2046df8
GM
131 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
132 (set_iterator_to_next): If a string from a display property ends,
133 consider the case that this might also be the end of an
134 overlay string having the display property.
135
12700f40
GM
136 * xdisp.c (handle_display_prop): Fix recognition of subproperty
137 lists.
b2046df8 138
87d8eba4
GM
139 * xdisp.c (reseat_to_string): Undo last change.
140
73d75a62
GM
141 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
142 matrix of a window when the header line changes, when
143 new rows are allocated, or when the width changes.
144
911a2406
EZ
1452001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
146
147 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last
148 change.
149
aea51abe
EZ
1502001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
151
152 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
153 deprecated.
154
176bc847
GM
1552001-03-29 Gerd Moellmann <gerd@gnu.org>
156
ed31fabf
GM
157 * data.c (Fsubr_interactive_form): New function.
158 (syms_of_data): Defsubr it.
159
176bc847
GM
160 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
161 (live_float_p, live_misc_p): Return 1 only if the offset of the
162 pointer in its block is >= 0.
163
e59d0e9d
GM
1642001-03-28 Paul Eggert <eggert@twinsun.com>
165
166 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
167 microseconds calcuation. Avoid double-rounding problem.
168 In doc string, warn that the result is approximate.
169
f827b862
GM
1702001-03-28 Gerd Moellmann <gerd@gnu.org>
171
30a3f61c
GM
172 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
173 bind `inhibit-eval-during-redisplay' to t.
174
175 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
176
177 * xdisp.c (inhibit_eval_during_redisplay)
178 (Qinhibit_eval_during_redisplay): New variables.
179 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
180 don't eval, return nil instead.
181 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
182 Initialize Qinhibit_eval_during_redisplay.
183
e719f5ae
GM
184 * xdisp.c (reseat_to_string): If STRING is multibyte, set
185 the iterator's multibyte_p flag.
186
deb2613a
GM
187 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
188 instead of setting it to zero; it's incremented for each frame
189 where the menu face is changed.
190
44655e77
GM
191 * xterm.c (x_draw_relief_rect): Extend left shadow to the
192 bottom; change bottom shadow accordingly.
193
a02f1be0
GM
194 * xterm.c (expose_window_tree, expose_frame): Don't compute
195 intersections here.
196 (expose_window): Do it here instead.
197 (x_draw_glyph_string): Fix a computation of the underline
198 position.
199
f827b862
GM
200 * bytecode.c (BYTE_CODE_QUIT): New macro.
201 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
202
4bde0ebb
GM
2032001-03-27 Gerd Moellmann <gerd@gnu.org>
204
607ec83c
GM
205 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
206 Give up if matrix starts in an ellipsis.
207 (init_from_display_pos): Do nothing if POS doesn't specify
208 a dpvec_index but the iterator has such a position.
209
0245398f
GM
210 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
211
aba25348
GM
212 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
213 x/y position is (0, 0) after destroying the menu bar, restore
214 its original position.
215
4bde0ebb
GM
216 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
217 (init_from_display_pos): Use it.
218 (try_window_reusing_current_matrix): Don't use cursor_row_p.
219
8cdb267e
GM
2202001-03-26 Gerd Moellmann <gerd@gnu.org>
221
222 * xdisp.c (try_window_id): Undo last change.
223
9948db79
EZ
2242001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
225
226 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
227
228 * buffer.c (syms_of_buffer): Doc fix.
229
2eddf899
GM
2302001-03-26 Gerd Moellmann <gerd@gnu.org>
231
232 * xfaces.c (x_update_menu_appearance): Use local variable
233 popup_path for setting font resources.
234
6c145d35
EZ
2352001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
236
6a65b1b5
EZ
237 * frame.c (Fframe_list): Don't reference tip_frame if
238 HAVE_WINDOW_SYSTEM is not defined.
239
6c145d35
EZ
240 * emacs.c (main): Update the copyright year. From Werner LEMBERG
241 <wl@gnu.org>.
242
d74c1900
GM
2432001-03-25 Gerd Moellmann <gerd@gnu.org>
244
20fbd925
GM
245 * xdisp.c (init_from_display_pos): Test invisible property
246 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
247
927c5b3b
GM
248 * xdisp.c (redisplay_internal) <update one window>: Make sure
249 last_arrow_position and last_arrow_string are set.
250
d74c1900
GM
251 * frame.c (Fframe_list): Don't return a tooltip frame.
252
091f8878
GM
2532001-03-23 Gerd Moellmann <gerd@gnu.org>
254
43c09969
GM
255 * xdisp.c (mark_window_display_accurate_1): New function,
256 extracted from mark_window_display_accurate. Compute
257 BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
258 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
259 (mark_window_display_accurate): Use it.
260 (redisplay_internal): Use it for the selected window.
261 (redisplay_internal): Avoid duplicate mark_window_display_accurate
262 for the selected frame.
263
ac90c44f
GM
264 * xdisp.c Use make_number, for readability.
265 (try_window_id): Disable rows below the window end.
266 (try_window_reusing_current_matrix): Use cursor_row_p.
267 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
268 of rows.
269 (init_from_display_pos): If POS specifies a position in a display
270 vector, maybe get the iterator set up for that ellipsis.
43c09969 271
091f8878
GM
272 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
273
991786dd
EZ
2742001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
275
276 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
277
6c29b43c
GM
2782001-03-23 Gerd Moellmann <gerd@gnu.org>
279
280 * xfaces.c (x_update_menu_appearance): Use a different path
281 for Lucid popup menus.
282
d8731202
SM
2832001-03-22 Stefan Monnier <monnier@cs.yale.edu>
284
285 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
286
287 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
288 (string_buffer_position): Use `make_number'.
289
f61a541b
GM
2902001-03-22 Gerd Moellmann <gerd@gnu.org>
291
3c9e997b
GM
292 * xfaces.c (x_update_menu_appearance): Renamed from
293 x_set_menu_face_resources. Use different resources for popups.
294
295 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
296 (GC_CHECK_STRING_BYTES): Don't define.
297
364cd450
GM
298 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
299 Removed, together with subroutines.
300 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
d8731202 301 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
364cd450 302
d8731202
SM
303 * dispextern.h (x_set_menu_resources_from_menu_face):
304 Remove prototype.
364cd450 305
d8731202 306 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
364cd450
GM
307 Remove calls to x_set_menu_resources_from_menu_face.
308
d8731202
SM
309 * xfaces.c (xm_set_menu_resources_from_menu_face):
310 Remove #ifndef LESSTIF_VERSION.
f61a541b
GM
311
312 * xmenu.c: Include widget.h.
313 (single_submenu): Return int. Some cleanup.
314 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
315
140330de
GM
3162001-03-21 Gerd Moellmann <gerd@gnu.org>
317
318 * xterm.c (x_update_window_end): Handle overwritten mouse face
319 also for tool bar windows.
320 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
321 DRAW is DRAW_IMAGE_RAISED.
322
1741905c
GM
3232001-03-20 Gerd Moellmann <gerd@gnu.org>
324
fa88947e
GM
325 * print.c (syms_of_print): Doc fixes.
326
1741905c
GM
327 * fns.c (Fmd5): Doc fix.
328
ade0bee1
GM
3292001-03-19 Gerd Moellmann <gerd@gnu.org>
330
357e7376
GM
331 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
332 Clear area of the frame not occupied by the scroll bar.
333
c2c097cc
GM
334 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
335 tip frame's root window buffer to *tip* right after creating
336 the frame.
337
ade0bee1
GM
338 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
339 is an integer don't have to be for space characters.
340
88c6e37e
GM
3412001-03-16 Gerd Moellmann <gerd@gnu.org>
342
343 * indent.c (current_column, current_column_1, Fmove_to_column)
344 (compute_motion): Handle characters from display vectors
345 differently.
346
c62eed76
KH
3472001-03-15 Kenichi Handa <handa@etl.go.jp>
348
349 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
350 drawing glyph string.
351
c899e7e6
GM
3522001-03-15 Gerd Moellmann <gerd@gnu.org>
353
d0bbfc99
GM
354 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
355 (command_loop_1): Undo last change.
356
03d1a189
GM
357 * xterm.c (fast_find_position): Return the correct vpos.
358
c899e7e6
GM
359 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
360 non-null, set a per-buffer value in BUF instead of the current
361 buffer.
362 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
363 Call store_symval_forwarding with BUF null.
364 (set_internal): Call store_symval_forwarding with the BUF
365 parameter passed to set_internal. Formerly, the value was always
366 set in the current buffer; the buffer recorded in specbind for
367 this case wasn't used.
368 (arith_driver): Reindent.
369
370 * buffer.c (swap_out_buffer_local_variables): Call
371 store_symval_forwarding with BUF null.
372
373 * lisp.h (store_symval_forwarding): Change prototype.
374
375 * eval.c (specbind): Call store_symval_forwarding with BUF null.
376
57ac7c81
GM
3772001-03-14 Gerd Moellmann <gerd@gnu.org>
378
697617d9
GM
379 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
380 FOR_DELETION. Avoid resizing the mini-window of the selected
381 frame if FOR_DELETION is set.
382 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
383 (Fmake_frame_invisible): Change calls to do_switch_frame for new
384 signature.
385
386 * window.c (Fset_window_configuration): Change call to
387 do_switch_frame to new format.
388
389 * keyboard.c (quit_throw_to_read_char): Change call to
390 do_switch_frame to new format.
391
392 * lisp.h (do_switch_frame): Change prototype.
393
819dce0f
GM
394 * frame.c (Fframe_parameters): In the `buffer-list' frame
395 parameter, store the buffer list of FRAME, not the list of the
396 selected frame.
397
57ac7c81
GM
398 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
399 box just because the glyph row's full_width_p flag is set.
400
65008712
GM
4012001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
402
403 * xdisp.c (highlight_trailing_whitespace): On character terminals,
404 skip the padding blanks inserted in extend_face_to_end_of_line,
405 before checking for trailing whitespace.
406
159cf431
GM
4072001-03-13 Gerd Moellmann <gerd@gnu.org>
408
19b2bb80
GM
409 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
410 Remove special handling for LessTif/Motif.
411 (toplevel): Don't include Xm/Xm.h.
412
afcdc0a1
GM
413 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>: Remove
414 workaround code for LessTif; it doesn't work anymore.
415
2564ea1b 416 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
57ac7c81 417 Xm/ScrollBarP.h.
afcdc0a1 418
23442ae4
GM
419 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Don't
420 access private scroll bar data; it's no longer necessary with
421 contemporary LessTif.
422
9faaaa52
GM
423 * xfaces.c (xm_set_menu_resources_from_menu_face): Change
424 #if 0 to #ifndef LESSTIF_VERSION.
425
159cf431
GM
426 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
427 removing button grabs.
428
c6f7429a
KH
4292001-03-13 Kenichi Handa <handa@etl.go.jp>
430
cb82d767
KH
431 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
432 and clip-large-size-font as obsolete.
433
c6f7429a
KH
434 * lread.c (read_multibyte): Check the validity of multibyte
435 sequence. If invalid, return the first byte.
436
760cefb5
GM
4372001-03-12 Gerd Moellmann <gerd@gnu.org>
438
439 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
440 before running the command; timer functions or process
441 filters may have set it.
442
5141f9d0
EZ
4432001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
444
445 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
446 Doc fix.
447
b6a15240
GM
4482001-03-12 Gerd Moellmann <gerd@gnu.org>
449
450 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
451 to sprintf.
452
95522746
GM
4532001-03-09 Gerd Moellmann <gerd@gnu.org>
454
db14cfc5
GM
455 * dispextern.h (string_buffer_position): Add prototype.
456
457 * xdisp.c (string_buffer_position, display_prop_string_p)
458 (single_display_prop_string_p): New functions.
459
460 * xterm.c (note_mouse_highlight): If there's no help-echo on
461 a string, look at the buffer text ``under'' it.
462
463 * keyboard.c (make_lispy_event): Add string info to the event,
464 analogous to what's done on mode lines.
465 (read_key_sequence): For a click on a string, consider `local-map'
466 and `keymap' of that string.
467
3cfd8357
GM
468 * keyboard.c (make_lispy_event, make_lispy_movement): Adjust
469 calls to buffer_posn_from_coords to new format.
470
471 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
472
473 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
474 POS; return void.
475
95522746
GM
476 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
477 flags argument to emacs_open; it seems to conflict with O_EXCL.
478
898a399d
KH
4792001-03-09 Kenichi Handa <handa@etl.go.jp>
480
28cd4910
KH
481 * composite.h (struct composition): Change types of members;
482 glyph_len to unsigned, width to unsigned short.
898a399d 483
4cdf6a6c
AI
4842001-03-08 Andrew Innes <andrewi@gnu.org>
485
486 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
487 menu titles.
488
129004d3
GM
4892001-03-08 Gerd Moellmann <gerd@gnu.org>
490
221dd3e7
GM
491 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
492 instead of nil.
493
5de7c6f2
GM
494 * xterm.c (note_mouse_highlight): Handle mouse-face and
495 help-echo in strings.
496 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
497 (fast_find_string_pos): New function.
498
499 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
500 (display_string): Call face_at_string_position with new
501 parameter.
502
503 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
504 Handle `mouse-face'.
505
506 * dispextern.h (face_at_string_position): Change prototype.
507
e1fbabaf
GM
508 * dired.c (directory_files_internal): Handle EAGAIN more
509 efficiently.
510
129004d3
GM
511 * keyboard.c (make_lispy_event): Avoid generating drag events
512 if the mouse hasn't actually moved to another buffer position.
513
80c8ab8c
DL
5142001-03-08 Dave Love <fx@gnu.org>
515
129004d3 516 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
80c8ab8c 517
989521fd
GM
5182001-03-08 Gerd Moellmann <gerd@gnu.org>
519
520 * process.c (Fset_process_window_size): Fix a typo.
521
bb5c338d
KH
5222001-03-08 Kenichi Handa <handa@etl.go.jp>
523
524 * coding.c (detect_coding_sjis): Do more rigid check.
525 (detect_coding_big5): Likewise.
526 (decode_coding_sjis_big5): Likewise.
527 (Fdetect_coding_region): Call detect_coding_system with tailing
528 anchor byte `\0' for more rigid detection.
a1b12fe9
KH
529 (detect_coding_mask): Fix the incorrect handling of arg
530 MULTIBYTEP.
bb5c338d
KH
531 (Fdetect_coding_string): Likewise.
532
8b8f9197
SM
5332001-03-07 Stefan Monnier <monnier@cs.yale.edu>
534
535 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
536 a string before extracting its data.
537
3bdf2660
GM
5382001-03-07 Gerd Moellmann <gerd@gnu.org>
539
540 * window.c (Frecenter): Rewrite code handling negative values
541 of ARG on graphical frames.
542
5432001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
544
545 * window.c (displayed_window_lines): If W->start is outside the
546 accessible portion of the buffer, call start_display with BEGV or
547 ZV instead of W->start.
548
471f86b9
GM
5492001-03-07 Gerd Moellmann <gerd@gnu.org>
550
2ab62c6c
GM
551 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
552
471f86b9
GM
553 * process.c (Fset_process_filter): Don't crash if the input
554 file descriptor of PROCESS is closed.
555 (Fset_process_window_size): Likewise.
556
101922c3
GM
5572001-03-06 Kenichi Handa <handa@etl.go.jp>
558
559 * xterm.c (XTflash): Make the timeout of select shorter, and call
560 select repeatedly until the desired time expires.
561
45d051a7
GM
5622001-03-06 Gerd Moellmann <gerd@gnu.org>
563
564 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
565
566 * xfns.c (Fx_create_frame): Clear Vwindow_list.
567
568 * lisp.h (Vwindow_list): Declare extern.
569
8f372c46
EZ
5702001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
571
572 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
573
f16a7aa5
GM
5742001-03-06 Gerd Moellmann <gerd@gnu.org>
575
157ae273
GM
576 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
577 to detect a case where we have to highlight a different region
578 despite not having left the currently highlighted region.
579 Set mouse_face_overlay in the x_display_info.
45d051a7 580 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
157ae273
GM
581
582 * xterm.h (struct x_display_info): Add mouse_face_overlay.
583
584 * buffer.c (mouse_face_overlay_overlaps): New function.
585
586 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
587 (Qmouse_face): Declare extern.
588
f16a7aa5
GM
589 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
590 if face_change_count is non-zero.
591
827afcac
KH
5922001-03-06 Kenichi Handa <handa@etl.go.jp>
593
594 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
595 that the source is unibyte.
596
14c7242e
DL
5972001-03-05 Dave Love <fx@gnu.org>
598
827afcac 599 * xterm.c (XTmouse_position): Fix typo.
14c7242e 600
c28b847b
GM
6012001-03-05 Gerd Moellmann <gerd@gnu.org>
602
603 * minibuf.c (read_minibuf): Clean up the binding stack if
604 called noninteractively.
605
b86644f2
KH
6062001-03-05 Kenichi Handa <handa@etl.go.jp>
607
608 * coding.c (syms_of_coding): Docstring modified.
609
203682cc 6102001-03-05 Kenichi Handa <handa@etl.go.jp>
b86644f2
KH
611
612 * charset.c (char_to_string): If a single byte char has modifier
613 bits that can't be reflected to the character code, ignore them
45d051a7 614 instead of signaling an error.
b86644f2 615
e30bd7b7
EZ
6162001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
617
618 * s/msdos.h: Update copyright notice.
619
620 * dosfns.h: Update copyright notice.
621
622 * dosfns.c: Update copyright notice.
623
624 * msdos.c: Update copyright notice.
625
b52b65bd
GM
6262001-03-02 Gerd Moellmann <gerd@gnu.org>
627
628 * xterm.c (glyph_rect): New function.
629 (XTmouse_position): Use it to raise the threshold for mouse
630 movement event generation.
631
53c4b1e6
EZ
6322001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
633
634 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
635 specifies (reverse . t), reverse the initial screen colors.
636 (IT_set_frame_parameters): If the property is foreground-color,
637 but we are reversing the colors, set bg_set, not fg_set. Likewise
638 for setting background-color and reversing: set fg_set. Set
639 unspecified-fg and unspecified-bg correctly when (reverse . t) is
640 in effect.
641
642 * xfaces.c (Finternal_set_lisp_face_attribute)
643 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
644 parameters alist.
645
f964b4d7
GM
6462001-03-02 Gerd Moellmann <gerd@gnu.org>
647
ef53d75e
GM
648 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
649 to a single slash in the middle of file names.
650
cda0f4da
GM
651 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
652 Accept only alphanumeric time zone names.
653
f964b4d7
GM
654 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
655 or width area.
656 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
657 a widget to zero height.
658
c3c45f65
GM
6592001-03-01 Gerd Moellmann <gerd@gnu.org>
660
661 * window.c (Fwindow_end): Call move_it_past_eol only if
662 ending up on a partially visible line.
663
028d739a
DL
6642001-03-01 Dave Love <fx@gnu.org>
665
666 * ccl.c (Fccl_execute): Doc fix.
667
57c5889c
GM
6682001-03-01 Gerd Moellmann <gerd@gnu.org>
669
35f59f6b
GM
670 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
671 of the tool bar before calling x_figure_window_size.
672
f84ff02c
GM
673 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
674 NULL after destroying it, otherwise XTread_socket can access a
675 destroyed widget when input is unblocked.
676
8b8f9197 677 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
420f628c 678
57c5889c
GM
679 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
680 same name as before, although there was a change in fontsets.
681
224227d1
KR
6822001-02-28 Ken Raeburn <raeburn@gnu.org>
683
4560730a
KR
684 * lisp.h (Fframe_parameter): Declare.
685
224227d1 686 * window.c (set_window_buffer): Field vscroll is an int, not a
57c5889c 687 Lisp_Object.
224227d1 688
ece93c02
GM
6892001-02-28 Gerd Moellmann <gerd@gnu.org>
690
11ef99b9
GM
691 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
692 NULL instead.
693
694 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
695 NULL instead.
696
ece93c02
GM
697 * alloc.c (toplevel): Include process.h.
698 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
699 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
700 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
701 (allocate_vector, allocate_hash_table, allocate_window)
702 (allocate_frame, allocate_process, allocate_other_vector): New
703 functions.
704 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
705 (mark_maybe_pointer): New function.
706 (mark_memory): Also mark Lisp data to which only pointers
707 remain and not Lisp_Objects.
708 (min_heap_address, max_heap_address): New variables.
709 (mem_find): Return MEM_NIL if START is below min_heap_address or
710 above max_heap_address.
711 (mem_insert): Compute min_heap_address and max_heap_address.
712
713 * process.c (make_process): Use allocate_process.
714
715 * frame.c (make_frame): Use allocate_frame.
716
717 * window.c (make_window, make_dummy_parent): Use allocate_window.
718 (Fcurrent_window_configuration): Use allocate_other_vector.
719
720 * lisp.h (allocate_vectorlike): Remove prototype.
721 (allocate_vector, allocate_other_vector, allocate_frame)
722 (allocate_window, allocate_process, allocate_hash_table):
723 Add prototypes.
724
725 * fns.c (Fdelete, larger_vector): Use allocate_vector.
726 (make_hash_table, copy_hash_table): Use allocate_hash_table.
727
063af457
KH
7282001-02-27 Kenichi Handa <handa@etl.go.jp>
729
730 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
731 treat the produced bytes as a valid multibyte sequence.
732
733 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
734 (ccl_driver) <CCL_WriteMultibyteChar2>: Use
735 CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
736 <ccl_finish>: Set ccl->eight_bit_control properly.
737
738 * ccl.h (struct ccl_program): New member eight_bit_control.
739
f58c6494
SM
7402001-02-26 Stefan Monnier <monnier@cs.yale.edu>
741
742 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
743 accessible_keymaps_char_table.
744 (accessible_keymaps_char_table): Obey `is_metized'.
745 (where_is_internal, Fwhere_is_internal): Don't confuse int and
746 Lisp_Object.
747
c596c392
GM
7482001-02-26 Gerd Moellmann <gerd@gnu.org>
749
750 * dispnew.c: Check HAVE_TERM_H before including term.h.
751
425de386
AI
7522001-02-24 Andrew Innes <andrewi@gnu.org>
753
754 * makefile.w32-in: Update copyright notice.
755
2ba11bbd
SM
7562001-02-24 Stefan Monnier <monnier@cs.yale.edu>
757
758 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
759
66c56ed1
KH
7602001-02-24 Kenichi Handa <handa@etl.go.jp>
761
4c1593ce
KH
762 * Makefile.in (lisp): Add international/utf-8.elc.
763
66c56ed1
KH
764 * fontset.c (Fnew_fontset): Fix handling of the case that an
765 element of FONTLIST is a cons of family and registry.
766
796ead7e
JR
7672001-02-23 Jason Rumney <jasonr@gnu.org>
768
769 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
770 to height unconditionally.
771
772 * w32term.c (x_set_glyph_string_background_width): Extend the
773 background face to the end of the drawing area in the text area,
774 only.
775 (x_insert_glyphs): Call window_box_left to obtain the left
776 x-coordinate of the area to shift.
777
778 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
779 safe_run_hooks.
780
f6839838
AI
7812001-02-22 Andrew Innes <andrewi@gnu.org>
782
783 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header
784 files.
785 ($(BLD)\dispnew.obj):
786 ($(BLD)\editfns.obj):
787 ($(BLD)\fileio.obj):
788 ($(BLD)\filelock.obj):
789 ($(BLD)\keyboard.obj):
790 ($(BLD)\w32proc.obj):
791 ($(BLD)\process.obj):
792 ($(BLD)\sysdep.obj): Ditto.
793
794 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
795 header files.
796 ($(BLD)/dispnew.$(O)):
797 ($(BLD)/editfns.$(O)):
798 ($(BLD)/fileio.$(O)):
799 ($(BLD)/filelock.$(O)):
800 ($(BLD)/keyboard.$(O)):
801 ($(BLD)/w32proc.$(O)):
802 ($(BLD)/process.$(O)):
803 ($(BLD)/sysdep.$(O)): Ditto.
804
c224f70b
GM
8052001-02-22 Gerd Moellmann <gerd@gnu.org>
806
51695746
GM
807 * xdisp.c (forward_to_next_line_start): When taking the shortcut
808 at the start of the function, check that the \n in it->c is
809 from the iterator's current position.
810
a61b7058
GM
811 * xdisp.c (handle_single_display_prop): Add parameter
812 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
813 properties which replace the display of text with something else.
814 (handle_display_prop): Call handle_single_display_prop with
815 additional argument saying if we already replaced text display
816 with something else. Use AREF.
817 (with_echo_area_buffer_unwind_data, display_menu_bar)
818 (decode_mode_spec_coding): Use AREF and ASIZE.
819
3473f362
GM
820 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
821 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
822 * vmstime.h: Files removed.
823
2bb58df3
GM
824 * unexencap.c, unexfx2800.c: Files removed.
825
c224f70b
GM
826 * dispnew.c (direct_output_for_insert): Give up if we are showing
827 a message or just cleared the message because we might need to
828 resize the echo area window or display an empty echo area.
829
ffc9ff0c
GM
8302001-02-21 Gerd Moellmann <gerd@gnu.org>
831
0528abe1
GM
832 * xdisp.c (redisplay_internal): Do the
833 mark_window_display_accurate after all windows have been
834 redisplayed because this call resets flags in buffers which are
835 needed for proper redisplay.
836
ffc9ff0c
GM
837 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c: Use
838 display_hourglass_p, start_hourglass, cancel_hourglass instead of
839 the old names.
840
841 * w32term.h (struct x_output): Rename busy_cursor to
842 hourglass_cursor, busy_window to hourglass_window, busy_p to
843 hourglass_p.
844
845 * msdos.h (struct x_output): Rename busy_window to
846 hourglass_window, busy_p to hourglass_p.
847
848 * xterm.h (struct x_output): Rename busy_cursor to
849 hourglass_cursor, busy_window to hourglass_window, busy_p to
850 hourglass_p.
851
852 * xfns.c: Rename everything containing *busy_cursor* and similar
853 to *hourglass*.
854 (syms_of_w32fns): Rename x-busy-pointer-shape to
855 x-hourglass-pointer-shape, display-busy-cursor to
856 display-hourglass, busy-cursor-delay to hourglass-delay.
857
858 * w32fns.c: Rename everything containing *busy_cursor* and similar
859 to *hourglass*.
860 (syms_of_w32fns): Rename x-busy-pointer-shape to
861 x-hourglass-pointer-shape, display-busy-cursor to
862 display-hourglass, busy-cursor-delay to hourglass-delay.
863
864 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
865 of its busy_p flag.
866
867 * dispextern.h (start_hourglass, cancel_hourglass)
868 (display_hourglass_p): Renamed from *busy_cursor*.
869
ab2c5f0a
GM
8702001-02-20 Gerd Moellmann <gerd@gnu.org>
871
d17e49a8
GM
872 * keyboard.c (read_char): When an event from unread-command-events
873 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
874
fa97adf6
GM
875 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
876 equal to the current buffer.
877
ab2c5f0a
GM
878 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
879 nil, otherwise we're left with truncate_lines t when a message
880 is printed with message-truncate-lines bound to t.
881
aeac019e
GM
8822001-02-19 Gerd Moellmann <gerd@gnu.org>
883
c8bc6f65
GM
884 * window.c (Fmove_to_window_line): Undo last change.
885 (displayed_window_lines): Call line_bottom_y to determine
886 the line's bottom position.
887
888 * dispextern.h (line_bottom_y): Add prototype.
889
890 * xdisp.c (line_bottom_y): New function extracted from
891 pos_visible_p.
892 (pos_visible_p): Use it.
893
980a2d69
GM
894 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
895 set redisplaying_p to 0 here instead of in Frecursive_edit.
896 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
897 set redisplaying_p.
898
184d2372
GM
899 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
900 New variables.
901 (syms_of_xdisp): Initialize new variables.
902 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
903 Specbind `inhibit-menubar-update' when updating the menu bar.
904
65048e97
GM
905 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
906 safe_run_hooks.
907
908 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
909 safe_run_hooks.
910
a57c4026
GM
911 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
912 is null.
913
aeac019e
GM
914 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
915 to the start of the file.
916
76846b31
GM
9172001-02-16 Gerd Moellmann <gerd@gnu.org>
918
f3f053f3 919 * window.c (set_window_buffer): Fix last change.
25237df5 920
f3f053f3
GM
921 * window.c (set_window_buffer): Set window's vscroll to 0.
922
dad75588
GM
923 * window.c (coordinates_in_window): Increase width of area
924 where the vertical line can be dragged.
925
c220b753
GM
926 * xterm.c (x_set_glyph_string_background_width): Extend the
927 background face to the end of the drawing area in the text
928 area, only.
929
c56b1c1b
GM
930 * xdisp.c (handle_single_display_prop): Set iterator's position
931 to where the `display' property starts, like for images.
932 (dump_glyph): New function.
933 (dump_glyph_row): Use it. Dump info about marginal areas.
934
935 * dispnew.c (direct_output_for_insert): Recognize more cases where
936 glyphs can be written instead of being inserted.
937
938 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
939 the left x-coordinate of the area to shift.
940
76846b31
GM
941 * dired.c (directory_files_internal): Set result list to nil
942 before retrying.
943
0fc71a77
KH
9442001-02-15 Kenichi Handa <handa@etl.go.jp>
945
946 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
947 invalid multibyte sequence, treat *SRC as a character of
948 eight-bit-graphic.
949
25078b54
EZ
9502001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
951
952 * textprop.c (Fset_text_properties): Doc fix.
953
8399f8a0
GM
9542001-02-15 Gerd Moellmann <gerd@gnu.org>
955
956 * dispnew.c (update_text_area): Undo change of 2001-01-12.
957
9a2a6f73
DL
9582001-02-14 Dave Love <fx@gnu.org>
959
960 * coding.c: Doc and message fixes.
961
bf853fee
AI
9622001-02-14 Andrew Innes <andrewi@gnu.org>
963
964 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
965 Emacs frame above the screen size.
966
78c663d8
GM
9672001-02-14 Gerd Moellmann <gerd@gnu.org>
968
969 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
970
7cc9f69f
GM
9712001-02-13 Gerd Moellmann <gerd@gnu.org>
972
0a411995
GM
973 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
974 case that TO ends up beyond ZV after running before-change-functions.
975
5ddc1b75
GM
976 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
977 the selected window if it is showing the buffer in question.
978
7cc9f69f
GM
979 * dired.c (directory_files_internal): Initialize errno.
980 (toplevel): Include errno.h.
981
2e6621ca
GM
9822001-02-13 Kenichi Handa <handa@etl.go.jp>
983
984 * xfaces.c (best_matching_font): New parameter width_ratio.
985 Multiply avgwidth by width_ratio.
986 (choose_face_font): Call best_matching_font with width_ratio
987 calculated from the column width of C.
988
60222d69
AI
9892001-02-12 Andrew Innes <andrewi@gnu.org>
990
991 The following changes are to draw box lines inside characters area
992 if line-width is negative.
993
994 * w32term.c (x_produce_image_glyph): Pay attention to the case that
995 face->box_line_width is negative.
996 (x_produce_stretch_glyph): Likewise.
997 (x_produce_glyphs): Likewise.
998 (x_estimate_mode_line_height): Likewise.
999 (x_draw_glyph_string_background): Likewise.
1000 (x_draw_glyph_string_foreground): Likewise.
1001 (x_draw_composite_glyph_string_foreground): Likewise.
1002 (x_draw_glyph_string_box): Likewise.
1003 (x_draw_image_foreground): Likewise.
1004 (x_draw_image_relief): Likewise.
1005 (x_draw_image_foreground_1): Likewise.
1006 (x_draw_image_glyph_string): Likewise.
1007
9804b846
KH
10082001-02-09 Kenichi Handa <handa@etl.go.jp>
1009
1010 The following changes are to draw box lines inside characters area
1011 if line-width is negative.
1012
1013 * xterm.c (x_produce_image_glyph): Pay attention to the case that
1014 face->box_line_width is negative.
1015 (x_produce_stretch_glyph): Likewise.
1016 (x_produce_glyphs): Likewise.
1017 (x_estimate_mode_line_height): Likewise.
1018 (x_draw_glyph_string_background): Likewise.
1019 (x_draw_glyph_string_foreground): Likewise.
1020 (x_draw_composite_glyph_string_foreground): Likewise.
1021 (x_draw_glyph_string_box): Likewise.
1022 (x_draw_image_foreground): Likewise.
1023 (x_draw_image_relief): Likewise.
1024 (x_draw_image_foreground_1): Likewise.
1025 (x_draw_image_glyph_string): Likewise.
1026
1027 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
1028 and :line-width can be negative.
1029 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be
1030 negative.
1031
49be9f70
JR
10322001-02-09 Jason Rumney <jasonr@gnu.org>
1033
1034 * w32term.c (w32_encode_char): Treat eight bit graphic and control
1035 characters the same as ASCII and latin-1.
1036 (x_display_and_set_cursor): Check for the focus frame's selected
1037 window instead of selected_window.
1038 (x_after_update_window_line): Don't clear if frame's internal
1039 border width is zero.
1040 (x_new_font): Don't change a tooltip's size.
1041 (w32_initialize): Set char_ins_del_ok to 1.
1042
1043 * w32fns.c (Fx_show_tip): Fix calls to make_number.
1044 (x_set_font): If font hasn't changed, avoid recomputing
1045 faces and other things.
1046 (x_set_tool_bar_lines): Do nothing if frame is
1047 minibuffer-only,
1048 (Fx_create_frame): Add the tool bar height to the frame
1049 height.
1050 (x_create_tip_frame): Prevent changing the tooltip's
1051 background color by specifying a color for the default font
1052 in .Xdefaults.
1053 (Qcancel_timer): New variable.
1054 (syms_of_w32fns): Initialize and staticpro it.
1055 (Fx_hide_tip, Fx_show_tip): Use it.
1056 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
1057 the timer.
1058 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
1059
1060 * w32.c (init_environment): Duplicate local string before putenv.
1061
555e35d2
SZ
10622001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
1063
1064 * charset.c (Fstring): A typo.
1065
19c92c94
KH
10662001-02-09 Kenichi Handa <handa@etl.go.jp>
1067
e47a1c33
KH
1068 * charset.c (Fstring): If all arguments are less than 256, return
1069 a unibyte string.
1070
1071 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
1072 return a unibyte string.
1073
19c92c94
KH
1074 * coding.c (code_convert_region): After detecting a coding, if
1075 nothing found, set coding->composing to COMPOSITION_NO.
1076 (decode_coding_string): Likewise.
1077
d8e675f5
SM
10782001-02-08 Stefan Monnier <monnier@cs.yale.edu>
1079
1080 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
1081 to avoid overflow.
1082
bd503487
KH
10832001-02-07 Kenichi Handa <handa@etl.go.jp>
1084
1085 * charset.c (parse_str_to_multibyte): New function.
1086
1087 * charset.h (parse_str_to_multibyte): Extern it.
1088
1089 * print.c (print_string): If we are going to print a unibyte
1090 string into a multibyte buffer, convert the string to multibyte by
1091 str_to_multibyte.
1092
a8370d72
AI
10932001-02-06 Andrew Innes <andrewi@gnu.org>
1094
1095 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
1096 been created. It seems we can get sent window messages such as
1097 WM_ERASEBKGND before we properly update a frame.
1098
c363a1d6
GM
10992001-02-06 Gerd Moellmann <gerd@gnu.org>
1100
1101 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
1102 Avoid some unnecessary cursor positioning.
1103
a08332c0
GM
11042001-02-05 Gerd Moellmann <gerd@gnu.org>
1105
1106 * xfaces.c (split_font_name): Compute numeric value of
1107 XLFD_AVGWIDTH.
1108 (LFACE_AVGWIDTH): New macro.
1109 (LFACEP): Use AREF.
1110 (check_lface_attrs): Check LFACE_AVGWIDTH.
1111 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
1112 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
1113 (merge_face_vectors): Check LFACE_AVGWIDTH.
1114 (Finternal_make_lisp_face): Use AREF.
1115 (xm_set_menu_resources_from_menu_face)
1116 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
1117 (Finternal_lisp_face_empty_p): Use AREF.
1118 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
1119 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
1120 Compare average widths..
1121 (best_matching_font): Arrange for comparing average widths.
1122
1123 * dispextern.h (enum lface_attribute_index): Add
1124 LFACE_AVGWIDTH_INDEX (invisible from Lisp).
1125
5cb3c8d4
DL
11262001-02-05 Dave Love <fx@gnu.org>
1127
1128 * puresize.h: Revert last change following loadup.el change.
1129
193fba87
AI
11302001-02-05 Andrew Innes <andrewi@gnu.org>
1131
1132 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
1133 invocation of temacs, to work with Windows 2000.
1134 (bootstrap-emacs): Ditto.
1135
e16f52ce
GM
11362001-02-05 Gerd Moellmann <gerd@gnu.org>
1137
7a58ab59
GM
1138 * xterm.c (x_display_and_set_cursor): Check for the focus
1139 frame's selected window instead of selected_window.
1140
e89aaabd
GM
1141 * xdisp.c (try_scrolling): If point is in the line below the
1142 window, make sure to move the iterator at least a canonical
1143 char height down.
1144
e16f52ce
GM
1145 * window.c (Fmove_to_window_line): Don't add 1 if window is
1146 vscrolled.
1147
789ce875
KH
11482001-02-05 Kenichi Handa <handa@etl.go.jp>
1149
1150 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not. If
1151 invalid, execute CCL_INVALID_CMD.
1152 (ccl_driver): If the CCL program is terminated because of
1153 CCL_STAT_INVALID_CMD, copy the remaining source data to the
1154 destination instead of throwing them away.
1155
20b28f82
GM
11562001-02-02 Gerd Moellmann <gerd@gnu.org>
1157
79fb38c0
GM
1158 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
1159 faces and other things.
1160
20b28f82
GM
1161 * xdisp.c (get_next_display_element): Fix case of empty
1162 display table entry.
1163
5a72551e
EZ
11642001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
1165
eb24d0bf
EZ
1166 * editfns.c (Fconstrain_to_field): Doc fix.
1167
6a3f48c7
EZ
1168 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
1169 into `thoroughly', to make it consistent with the doc string.
1170
5a72551e
EZ
1171 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
1172
01acdb05
GM
11732001-02-01 Gerd Moellmann <gerd@gnu.org>
1174
0353b28f
GM
1175 * search.c (search_buffer): Call set_search_regs with a byte
1176 position, not a character position.
1177
01acdb05
GM
1178 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
1179 minibuffer-only,
1180
e86b5133
EZ
11812001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
1182
1183 * frame.c (Fmodify_frame_parameters): Doc fix.
1184
7442878f
GM
11852001-01-31 Gerd Moellmann <gerd@gnu.org>
1186
01acdb05
GM
1187 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
1188 identifier which is not reserved by Standard C.
1189
7442878f
GM
1190 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
1191
1192 * window.c (enum window_part): New enumeration.
1193 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
1194 Qright_bitmap_area.
1195 (coordinates_in_window): Return an enumerator from enum
1196 window_part. Fix handling of right scroll bar.
1197 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
1198 `right-fringe' instead of `left-bitmap-area' and
1199 `right-bitmap-area'. Use enumerators from enum window_part
1200 instead of hard-coded integers.
1201 (check_window_containing, window_from_coordinates): Use
1202 enumerators from enum window_part instead of hard-coded integers.
1203 (syms_of_window): Replace Qleft_bitmap_area and
1204 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
1205
7c132cba
EZ
12062001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
1207
1208 * editfns.c (Fformat_time_string): Doc fix.
1209
c359dd9e
SM
12102001-01-31 Stefan Monnier <monnier@cs.yale.edu>
1211
1212 * keymap.c (Fwhere_is_internal): Use the first valid binding
1213 if no ascii binding is found (when firstonly is t).
1214
ce070307
GM
12152001-01-31 Gerd Moellmann <gerd@gnu.org>
1216
b4f30ec5
GM
1217 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
1218 instead of Finteractive_p.
1219
1220 * lisp.h (interactive_p): Add prototype.
1221
1222 * eval.c (interactive_p): New function.
1223 (Finteractive_p): Use it.
1224
ce070307
GM
1225 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
1226
f57b6e64
DL
12272001-01-31 Dave Love <fx@gnu.org>
1228
d61c7afe
DL
1229 * .gdbinit (hook-run): Define to run xreload.
1230
f57b6e64
DL
1231 * textprop.c (Fset_text_properties): Fix newline in doc string.
1232
eef93f99
GM
12332001-01-30 Gerd Moellmann <gerd@gnu.org>
1234
1235 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp): Use
1236 DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
1237
1238 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
1239 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
1240 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
1241
1242 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
1243 height.
1244
d9c1f6f9
DL
12452001-01-30 Dave Love <fx@gnu.org>
1246
1247 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
1248 AFTER_POTENTIAL_GC.
1249
e8f044a0
GM
12502001-01-29 Gerd Moellmann <gerd@gnu.org>
1251
1252 * bytecode.c (Fbyte_code) <Bcurrent_column>: Add
1253 BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
1254
8e1db7b3
EZ
12552001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
1256
1257 * textprop.c (Fset_text_properties): Doc fix.
1258
4eefd9d2
GM
12592001-01-29 Gerd Moellmann <gerd@gnu.org>
1260
1261 * xdisp.c (forward_to_next_line_start): Remove xassert.
1262
fccb8288
EZ
12632001-01-29 Jason Rumney <jasonr@gnu.org>
1264
4eefd9d2 1265 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
fccb8288
EZ
1266 returning without releasing it.
1267
76581eab
KH
12682001-01-29 Kenichi Handa <handa@etl.go.jp>
1269
1270 * w32fns.c (w32_font_match): Allocate three more bytes to regex
1271 for '^', '$', and '\0'.
1272
83a96b4d
AC
12732001-01-28 Andrew Choi <akochoi@i-cable.com>
1274
5604ec34
AC
1275 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
1276 regex for '^', '$', and '\0'.
1277
83a96b4d
AC
1278 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
1279 only if current_sblock has been initialized.
1280
1281 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
1282 terminal frame even if it is the only visible frame.
1283
c09a6440
KH
12842001-01-28 Kenichi Handa <handa@etl.go.jp>
1285
1286 * fontset.c (font_family_registry): Even if FONTNAME conform to
1287 XLFD, if it specifies other fields than family and registry,
1288 return FONTANME. New argument FORCE if nonzero cancel that
1289 feature.
1290 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
1291 a signle byte character. Don't set FAMILY part to nil here. It
1292 is handled by the caller choose_face_font.
1293 (Fnew_fontset): Call font_family_registry with FORCE 0.
1294 (Fset_fontset_font): Likewise.
1295
4dcd74e6
GM
12962001-01-27 Gerd Moellmann <gerd@gnu.org>
1297
1298 * xdisp.c (display_line): Don't treat a newline as fitting
1299 on the line.
1300
d2906bf8
GM
13012001-01-26 Gerd Moellmann <gerd@gnu.org>
1302
0130fe1a
GM
1303 * window.c (size_window): Set the window's orig_top to nil when
1304 changing heights, so that a future shrink_mini_window won't
1305 restore a bogus height.
1306
550f0e6a
GM
1307 * frame.c (do_switch_frame): If selected frame has a mini-window,
1308 resize that to exact size.
1309
b7b20fbd
GM
1310 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
1311
a47b7816
GM
1312 * xdisp.c (display_line): Simplify check for glyphs fitting
1313 entirely in the line.
1314
d2906bf8
GM
1315 * xfns.c (xic_style): New variable.
1316 (create_frame_xic): Move static variable to global scope for
550f0e6a 1317 the case that `static' gets defined away.
d2906bf8 1318
73df2b1e
KH
13192001-01-26 Kenichi Handa <handa@etl.go.jp>
1320
1321 * coding.c (decode_coding): Set a flag for inhibiting
1322 inconsistent eol.
1323 (code_convert_region): Always set saved_coding_symbol.
1324 (decode_coding_string): Likewise. Update coding->symbol when we
1325 encounter a inconsistent eol by the same way as
1326 code_convert_region.
1327
6613cfc4
GM
13282001-01-25 Gerd Moellmann <gerd@gnu.org>
1329
c5e6e06b
GM
1330 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
1331 XClearArea.
1332
1333 * xterm.c (x_after_update_window_line): Don't clear if frame's
1334 internal border width is zero.
1335 (x_clear_area): New function.
1336 (x_after_update_window_line, x_clear_end_of_line)
1337 (x_scroll_bar_create, x_scroll_bar_set_handle)
1338 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
1339 instead of XClearArea.
1340
1341 * xterm.h (x_clear_area): Add prototype.
1342
6613cfc4
GM
1343 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
1344 which doesn't seem necessary anymore with Lesstif 0.92.
1345
650cc6cc
DL
13462001-01-25 Dave Love <fx@gnu.org>
1347
34ac3367
DL
1348 * puresize.h (BASE_PURESIZE): Up to 720000.
1349
650cc6cc
DL
1350 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
1351
5e37dc22
GM
13522001-01-25 Gerd Moellmann <gerd@gnu.org>
1353
e1e441f9
GM
1354 * xdisp.c (echo_area_display): Don't call redisplay_internal
1355 when Emacs is shutting down. We can't run hooks etc. that
1356 would be necessary to do a redisplay.
1357
5e37dc22
GM
1358 * lread.c (read_integer): Use type EMACS_INT instead of int.
1359
0fb94c7f
EZ
13602001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
1361
1362 * ccl.c (ccl_driver): Fix last change.
1363
e3778624
KH
13642001-01-25 Kenichi Handa <handa@etl.go.jp>
1365
1366 * ccl.h (sturct ccl_program): New member suppress_error.
1367
bb264518 1368 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
e3778624
KH
1369 insert error message to the output.
1370 (setup_ccl_program): Initialize ccl->suppress_error to 0.
1371
1372 * coding.h (struct coding_system): New member suppress_error.
1373
1374 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
1375 (Fset_terminal_coding_system_internal): Set the member
1376 suppress_error to 1.
1377 (Fset_safe_terminal_coding_system_internal): Likewise.
1378
245ed2b1
SM
13792001-01-24 Stefan Monnier <monnier@cs.yale.edu>
1380
1381 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
1382 as if it was a `charset'.
1383
f9aaedb6
GM
13842001-01-24 Gerd Moellmann <gerd@gnu.org>
1385
1386 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
1387 value in where_is_cache; the next lookup in the cache returns
1388 something bogus if we do.
1389
c3902c3e
EZ
13902001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
1391
1392 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
1393 if HAVE_WINDOW_SYSTEM isn't defined.
1394
3497f73e
GM
13952001-01-24 Gerd Moellmann <gerd@gnu.org>
1396
e7e41584
GM
1397 * fns.c (sweep_weak_table): Fix code taking items out of
1398 the hash collision chain. Some cleanup.
1399
3497f73e
GM
1400 * xterm.c (x_new_font): Don't change a tooltip's size.
1401
1402 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
1403 background color by specifying a color for the default font
1404 in .Xdefaults.
1405
3d48e687
KH
14062001-01-24 Kenichi Handa <handa@etl.go.jp>
1407
96531b20
KH
1408 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
1409 a workaround for SunOS 4's cc.
1410 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
1411 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
1412 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
1413 statement.
3d48e687 1414
a30629d2
GM
14152001-01-23 Gerd Moellmann <gerd@gnu.org>
1416
1417 * xterm.c (x_set_window_size_1): New function extracted from
1418 x_set_window_size.
1419 (x_set_window_size): Use it.
1420 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
1421 doesn't have a widget, like tooltips.
1422
5a43decf
EZ
14232001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
1424
1425 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc
1426 fix.
1427
b0e98867
KH
14282001-01-23 Kenichi Handa <handa@etl.go.jp>
1429
1430 * fns.c (Fset_char_table_default): Fix to make sub char-table
1431 correctly.
1432
50606b4c
GM
14332001-01-22 Gerd Moellmann <gerd@gnu.org>
1434
cb2ddc53 1435 * xdisp.c (build_desired_tool_bar_string): Make sure we have
a30629d2 1436 a desired tool bar string, even if there are no tool bar
cb2ddc53
GM
1437 items.
1438
57c28064
GM
1439 * xdisp.c (Ftool_bar_lines_needed): New function.
1440 (syms_of_xdisp): Defsubr it.
1441
50606b4c
GM
1442 * editfns.c (Fformat): Don't extend text properties from arguments
1443 to padding chars in the result.
1444
2f169c38
EZ
14452001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
1446
1447 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
1448
0f32f023
AI
14492001-01-20 Andrew Innes <andrewi@gnu.org>
1450
1451 * w32term.c (w32_ring_bell): Only support visible bell on w32
1452 frames.
1453 (w32_initialize): Don't set term hooks that aren't actually needed
1454 in windowed mode.
1455
1456 * xfaces.c (realize_default_face):
1457 (realize_face):
1458 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
1459
1460 * xdisp.c (handle_single_display_prop): Remove references to
1461 FRAME_W32_CONSOLE_P.
1462
1463 * dispnew.c (Fredraw_frame): Remove reference to
1464 FRAME_W32_CONSOLE_P.
1465
1466 * frame.h (output_method): Remove output_w32_console method.
1467 (FRAME_W32_CONSOLE_P): Remove macro.
1468
1469 * frame.c (Qw32_console): Remove variable.
1470 (Fframep): Remove references to it.
1471 (syms_of_frame): Ditto.
1472 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
1473
1474 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
1475 redefinition.
1476
7173eada
KH
14772001-01-20 Kenichi Handa <handa@etl.go.jp>
1478
1479 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
1480
755b45ce
AI
14812001-01-19 Andrew Innes <andrewi@gnu.org>
1482
1483 * w32.c (init_environment): Add a version-independent site-lisp
1484 directory to EMACSLOADPATH, after the version dependent one.
1485
0a949811
GM
14862001-01-19 Gerd Moellmann <gerd@gnu.org>
1487
8501998a
GM
1488 * editfns.c (Fbuffer_substring): Doc fix.
1489
0a949811
GM
1490 * xdisp.c (message_dolog, message2, message2_nolog): Rename
1491 parameter LEN to NBYTES.
1492
e6ebcbbe
KH
14932001-01-19 Kenichi Handa <handa@etl.go.jp>
1494
200ecca2
KH
1495 * charset.c (strwidth): Use c_string_width.
1496 (c_string_width): New function.
1497 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
1498 Caller changed.
1499
1500 * charset.h (c_string_width, lisp_string_width): Extern them.
1501
1502 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
1503
e6ebcbbe
KH
1504 * indent.c (check_composition): Check validity of composition.
1505
200ecca2
KH
1506 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
1507 characters by calling c_string_width.
1508 (x_consider_frame_title): Get byte length of frame tile string
1509 correctly.
1510 (display_mode_element): Pay attention to width of non-ASCII
1511 characters by calling strwidth.
1512
8692ca92
GM
15132001-01-18 Gerd Moellmann <gerd@gnu.org>
1514
8962e303
GM
1515 * xfns.c (Qcancel_timer): New variable.
1516 (syms_of_xfns): Initialize and staticpro it.
1517 (Fx_hide_tip, Fx_show_tip): Use it.
1518 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
1519 the timer.
1520 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
1521
91523be9
GM
1522 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
1523
1524 * window.h (WINDOW_LIVE_P): New macro.
1525
b0b7ed0e
GM
1526 * window.c (window_size_fixed): New variable.
1527 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
1528 the doc string.
1529
06bccf8e
GM
1530 * eval.c (specbind): If binding a per-buffer variable which
1531 doesn't have a buffer-local value in the current buffer, change
1532 the global value by changing the value of the symbol bound in all
1533 buffers not having their own value, to make it consistent with
1534 what happens with other buffer-local variables.
1535
8692ca92
GM
1536 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
1537
1538 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
1539 when searching for a newline.
1540
bb3a3b50
KH
15412001-01-18 Kenichi Handa <handa@etl.go.jp>
1542
1543 * xdisp.c (display_string): Fix previous change.
1544
c2cc16fa
JR
15452001-01-18 Jason Rumney <jasonr@gnu.org>
1546
1547 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
1548 GLYPH_DEBUG is defined.
1549 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
1550 true for images with `:ascent 100'.
1551 (x_set_mouse_face_gc): If the last used mouse face has gone in the
1552 meantime, use face MOUSE_FACE_ID.
1553 If first glyph isn't a character glyph, use the ASCII NUL
1554 character to determine the face.
1555 (expose_area): Do not treat left margin specially.
1556 (note_mode_line_highlight): If no local_map, check global keymap.
1557 (note_mouse_highlight): Initialize overlay.
1558 (clear_mouse_face): Don't return if tip_frame is
1559 non-nil.
1560 (show_scroll_bars): Remove unused function.
1561 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
1562 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
1563 Clip to row.
1564 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be
1565 nil.
1566 (x_free_frame_resources): Unload relief colors.
1567
9c11f79e
GM
15682001-01-17 Gerd Moellmann <gerd@gnu.org>
1569
3aec8722
GM
1570 * xdisp.c (forward_to_next_line_start): Avoid calling
1571 get_next_display_element when the newline is already found. This
1572 may change the iterator's position, when its current position is
1573 equal to the iterator's stop_charpos.
1574
f3ffc2c3
GM
1575 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
1576 zero, use this method only at the end of a line.
1577
a86110a8
GM
1578 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
1579 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
1580 if SCALABLE_FONTS_P is set.
1581
d26d6fd9
GM
1582 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
1583 so that scalable fonts are included.
1584
9c11f79e
GM
1585 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
1586 In the cache, use a key containing the information if scalable
1587 fonts are included.
1588 (x_load_font): Adapt to change of keys in the font cache.
1589
15902001-01-17 Kim F. Storm <storm@filanet.dk>
1591
d26d6fd9
GM
1592 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
1593 XListFonts to take advantage of font caching.
1594
9c11f79e
GM
1595 * xterm.c (x_list_fonts): Ensure caching font information when
1596 called for a null frame, which is the case frequently when Emacs
1597 starts.
1598
51446987
GM
15992001-01-17 Gerd Moellmann <gerd@gnu.org>
1600
f864120f
GM
1601 * xfns.c (QCconversion): Replaces QCalgorithm.
1602
1603 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
1604
1605 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
1606 of :algorithm.
1607
e37d1417
GM
1608 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
1609 not everything could be displayed.
1610
51446987
GM
1611 * line.h, x-list-font.c: Files removed because unused.
1612
9ad4f3e5
AI
16132001-01-17 Andrew Innes <andrewi@gnu.org>
1614
1615 * dired.c (directory_files_internal): Convert result from readdir
1616 to a unibyte string initially, to avoid possible misinterpretation
1617 of some bytes as the internal form of Emacs characters.
1618
2eda09b5
KH
16192001-01-17 Kenichi Handa <handa@etl.go.jp>
1620
1621 * fns.c (concat): Be sure to avoid putting the same `composition'
1622 property on the adjacent regions.
1623
826f3788
GM
16242001-01-16 Gerd Moellmann <gerd@gnu.org>
1625
f251459d
GM
1626 * window.c (Fset_window_hscroll): Don't set window's min_hscroll
1627 here.
1628 (Fscroll_right, Fscroll_left): Set it here instead, if called
1629 interactively.
1630
d57b83b3
GM
1631 * buffer.c (Fset_buffer_modified_p): Set buffer's
1632 prevent_redisplay_optimizations_p flag.
1633
826f3788
GM
1634 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
1635 * sysdep.c, vmsproc.c, xselect.c: Call
1636 redisplay_preserve_echo_area with additional arg.
1637
1638 * dispextern.h, lisp.h (redisplay_preserve_echo_area): Change
1639 prototype.
1640
1641 * xdisp.c (redisplay_preserve_echo_area): Add parameter
1642 FROM_WHERE, for debugging.
1643
261d788b
KH
16442001-01-16 Kenichi Handa <handa@etl.go.jp>
1645
1646 * ccl.c (Fregister_ccl_program): Handle the return value of
1647 resolve_symbol_ccl_program correctly.
bda6b481
KH
1648 (CCL_Extension): Fix typo (originally CCL_Extention). Caller
1649 changed.
261d788b 1650
bccee4f2
GM
16512001-01-15 Gerd Moellmann <gerd@gnu.org>
1652
e4ded23c
GM
1653 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
1654 has gone in the meantime, use face MOUSE_FACE_ID.
1655
ae24cb3b
GM
1656 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: If
1657 x_display_info_for_display returns null, don't try to close
1658 the display; we didn't open it.
1659
bccee4f2
GM
1660 * dispnew.c (save_or_restore_current_matrices): Function removed.
1661 (save_current_matrix, restore_current_matrix): New functions.
1662 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
1663 restore the frame's current matrix. Due to the glyph pointer
1664 setup done in adjust_glyph_matrix, there is no easy way to make
1665 saving the current matrix in the desired matrix generally correct,
1666 so don't try it.
1667
ebeccffa
KH
16682001-01-15 Kenichi Handa <handa@etl.go.jp>
1669
1670 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
1671 truncation glyphs.
1672 (display_line): Optimize for wide characters.
e4ded23c 1673 (display_string): Don't try to display a multi-column character
ebeccffa
KH
1674 partially. On ttys, produce more than one truncation glyph for
1675 multi-column characters that don't fit on the line.
1676
64388126
KH
16772001-01-13 Kenichi Handa <handa@etl.go.jp>
1678
1679 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]: Define
1680 it instead of WORDS_BIGENDIAN. Caller changed.
1681
8edb0a6f
JR
16822001-01-13 Jason Rumney <jasonr@gnu.org>
1683
1684 * w32fns.c (Fimage_size, image_ascent, lookup_image)
1685 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
1686 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
1687 (tiff_format, gif_format, gs_format): Adapt to change of image
1688 margins.
1689
1690 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
1691 (x_draw_image_relief, x_draw_image_foreground_1)
1692 (x_draw_image_glyph_string): Adapt to change of image margins.
1693
1694 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
1695 variables.
1696
1697 * w32bdf.c (search_file_line, get_cached_font_char)
1698 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
1699
1700 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
1701
1702 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
1703 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
1704 (Fw32_send_sys_command): Remove unused variables.
1705 (w32_msg_pump): Add parentheses.
1706
1707 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
1708 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
1709 Add parentheses.
1710
4956d1ef
GM
17112001-01-12 Gerd Moellmann <gerd@gnu.org>
1712
b30623be
GM
1713 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
1714 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
1715 being a pair of margins.
1716 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
1717 to DEFVAR_LISP. Extend doc.
1718
1719 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
1720 margins.
1721 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
1722 pair of integers `(X . Y)', use X for the horizontal and Y for the
1723 vertical margin.
1724 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
1725 (parse_image_spec): Check it.
1726 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
1727 (tiff_format, gif_format, gs_format): Use
1728 IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
1729
1730 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
1731 (x_draw_image_relief, x_draw_image_foreground_1)
1732 (x_draw_image_glyph_string): Adapt to the change of image margins.
1733
1734 * dispextern.h (struct image): Replace member `margin' with
1735 `hmargin' and `vmargin'.
1736
4554cc79
GM
1737 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
1738 and GLYPHS.
1739
1740 * dispnew.c (update_text_area): Put code which decrements the
1741 stop position when the row's face extends to the end of the
3bffc665 1742 line in #if 0.
4554cc79 1743
3cccce8d
GM
1744 * xfns.c (x_set_mouse_color): Fix color allocation.
1745
4956d1ef
GM
1746 * keyboard.c: Call get_local_map with new argument list.
1747
1748 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
1749
1750 * intervals.h (enum map_property): Removed.
1751 (get_local_map): Change prototype.
1752
1753 * keymap.c: Call get_local_map with new argument list.
1754 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
1755
2c2ff7f2
GM
17562001-01-11 Gerd Moellmann <gerd@gnu.org>
1757
a23887b9
GM
1758 * xdisp.c (build_desired_tool_bar_string): Correct the computation
1759 of the size needed for the tool bar string. For the last image,
1760 use a `display' property that reaches to the end of the string.
1761
a7ee2d2e
GM
1762 * xselect.c (selection_request_dpyinfo): New variable.
1763 (x_handle_selection_request): Set it.
1764 (x_selection_request_lisp_error): Don't call
1765 x_decline_selection_request if selection request's display has
1766 been closed.
1767
2c2ff7f2
GM
1768 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]: Do
1769 the unregister_colors before calling XFreeColors.
1770
457b792c
GM
17712001-01-10 Dave Love <fx@gnu.org>
1772
1773 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
1774 ${SOME_MACHINE_LISP}, not ${lisp}.
1775
c1efd260
GM
17762001-01-10 Gerd Moellmann <gerd@gnu.org>
1777
a98b5ed9 1778 * xdisp.c (display_line): On ttys, produce more than one
4554cc79 1779 truncation glyph for multi-column characters that don't fit on the
a98b5ed9
GM
1780 line.
1781
ac95a621
GM
1782 * xselect.c (x_reply_selection_request): Add a comment.
1783
c1efd260
GM
1784 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
1785 XkbGetNames instead of XkbGetKeyboard.
1786
1bfb1345
DL
17872001-01-10 Dave Love <fx@gnu.org>
1788
1789 * sysdep.c (random): Revert the declaration.
1790
38119822
GM
17912001-01-09 Gerd Moellmann <gerd@gnu.org>
1792
35f464a7
GM
1793 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]: Call
1794 function string_bytes.
1795 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
1796
1797 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
1798 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
1799 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
1800 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
1801 the current sblock.
1802 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
1803 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
1804 after sweeping strings, and at the end.
1805 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
1806
38119822
GM
1807 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
1808 ensure that pop_message is called.
1809
1810 * keyboard.c (Fexecute_extended_command): Use a
1811 record_unwind_protect to ensure that pop_message is called.
1812
1813 * lisp.h (push_message_unwind): Add prototype.
1814
1815 * xdisp.c (push_message_unwind): New function.
1816
1817 * fileio.c (do_auto_save_unwind): Do the pop_message here
1818 instead of in Fdo_auto_save.
1819 (Fdo_auto_save): Don't call pop_message.
1820
f47a9ec4
KR
18212001-01-08 Ken Raeburn <raeburn@gnu.org>
1822
1823 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
1824 in inner block.
1825
a758f97d
GM
18262001-01-08 Gerd Moellmann <gerd@gnu.org>
1827
6d0afc03
GM
1828 * window.c (window_scroll_pixel_based): Adjust glyph matrices
1829 when increasing window's vscroll.
1830
a758f97d
GM
1831 * macros.c (Qkbd_macro_termination_hook): New variable.
1832 (syms_of_macros): Initialize and staticpro it.
1833 (pop_kbd_macro): Run kbd-macro-termination-hook.
1834
1835 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
1836
1bfb1345 18372001-01-07 Dave Love <fx@gnu.org>
64d4ec0f
DL
1838
1839 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
1840 arglist, for documentation's sake.
1841
0dac6924
AI
18422001-01-06 Andrew Innes <andrewi@gnu.org>
1843
1844 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
1845 of *.pdb.
1846
8182406a
AI
18472001-01-05 Andrew Innes <andrewi@gnu.org>
1848
1849 * term.c (update_end): Don't check updating_frame; for some reason
1850 this can be 0 sometimes, such as after dismissing a popup menu,
1851 and isn't necessary given the explicit frame argument.
1852
3828218c
GM
18532001-01-05 Gerd Moellmann <gerd@gnu.org>
1854
1855 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
1856 on some systems, and an unsigned long on others, like FreeBSD 4.1.
1857
2f5ded21
GM
18582001-01-04 Gerd Moellmann <gerd@gnu.org>
1859
1860 * xterm.c (clear_mouse_face): Don't return if tip_frame is
1861 non-nil.
1862
1863 * xfns.c (x_create_tip_frame): Preserve the value of
1864 face_change_count around the creation of the tip frame.
1865
1866 * xfns.c (last_show_tip_args): New variable.
1867 (compute_tip_xy): New function.
1868 (Fx_show_tip): Reuse an existing tip frame, if possible.
1869 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
1870
dfad65fa
DL
18712001-01-04 Dave Love <fx@gnu.org>
1872
64d4ec0f
DL
1873 * editfns.c (Fformat): Doc fix.
1874
dfad65fa
DL
1875 * systime.h (set_file_times): Prototype.
1876
1877 * widget.h (EmacsFrameSetCharSize_): Prototype.
1878
1879 * sysdep.c (random, srandom): Declare explicitly.
1880
1881 * dispextern.h (move_it_vertically_backward): Declare.
1882
85fe3b5e
GM
18832001-01-04 Gerd Moellmann <gerd@gnu.org>
1884
0f2ac578
GM
1885 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
1886 like in Fx_create_frame.
1887
482cca61
GM
1888 * xfaces.c (set_font_frame_param): Don't do anything for
1889 non-graphical frames.
1890
85fe3b5e
GM
1891 * window.c (Fdelete_other_windows): Set window's window_end_valid
1892 to nil when changing the window's start. Don't change the
1893 window's start when its top position hasn't changed. If we do,
1894 this will set the window's optional_new_start, which act's like a
1895 force_start during redisplay with C-x 1 M-> under particular
1896 circumstances (see report from Per Starback to emacs-pretest-bug
1897 from 2000-12-13.).
1898
3e99d3b4
GM
18992001-01-03 Gerd Moellmann <gerd@gnu.org>
1900
a77dc1ec
GM
1901 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
1902 short cut at the start of the function. Add an assertion.
1903 (reseat_at_next_visible_line_start): Add an assertion.
1904
2f3cad6c
GM
1905 * window.c (Frecenter): When changing the window start, set the
1906 window's window_end_valid to nil.
1907 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
1908
1909 * dispextern.h (move_it_past_eol): Add prototype.
1910
1911 * xdisp.c (move_it_past_eol): New function.
1912
3e99d3b4
GM
1913 * window.c (Fwindow_end): Doc fix.
1914
19152001-01-03 Dave Love <fx@gnu.org>
1916
1917 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3
1918 kluge.
1919
bafb434c
GM
19202001-01-03 Gerd Moellmann <gerd@gnu.org>
1921
1922 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
1923 the enabled_p flag of the glyph row at window_end_vpos to 0.
1924 (handle_single_display_prop): Fix last change.
1925
5297fb00
RS
19262001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
1927
1928 * window.c (Frecenter): Doc fix.
1929
13d6a61c
AI
19302001-01-02 Andrew Innes <andrewi@gnu.org>
1931
1932 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
1933
1934 * frame.h (output_method): Add output_w32_console method.
1935 (FRAME_W32_CONSOLE_P): New macro.
1936
1937 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
1938 use output_w32_console method.
1939 (Qw32_console): New Lisp_Object.
1940 (Fframep): Return it.
1941 (syms_of_frame): Init it.
1942 (Fframe_parameters): Report w32console as font for w32_console
1943 frames.
1944
1945 * xfaces.c (realize_default_face): Set face foreground and
1946 background to unspecified for w32_console frames.
1947 (realize_face): Realize face cache for w32_console frames.
1948 (realize_tty_face): Accept w32_console frames.
1949
1950 * xdisp.c (handle_single_display_prop): Return if frame is
1951 w32_console.
1952 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
1953 necessary, even if running interactively.
1954
1955 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
1956 w32_console frames.
1957
1958 * w32term.c (x_update_begin):
1959 (x_update_end):
1960 (x_clear_frame):
1961 (x_ins_del_lines):
1962 (x_change_line_highlight):
1963 (x_delete_glyphs):
1964 (w32_ring_bell):
1965 (x_update_begin):
1966 (x_update_end):
1967 (w32_reassert_line_highlight):
1968 (w32_frame_rehighlight):
1969 (w32_frame_raise_lower): Do nothing if not w32 frame.
1970
1971 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
1972
1973 * w32fns.c (Fx_display_color_cells): Determine correct value, when
1974 system doesn't tell us directly.
1975 (Fx_display_visual_class): Implement properly.
1976
d6bb0c0d
GM
19772001-01-02 Gerd Moellmann <gerd@gnu.org>
1978
1979 * window.c (Frecenter): Handle centering in graphical frames
1980 specially. Centering on the basis of line counts doesn't work
1981 reliably with variable-height lines.
1982
315f5865
EZ
19832001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
1984
1985 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
1986 and al[].
1987
1988 * composite.c (run_composition_function): Remove unused variable
1989 `val'.
1990 (update_compositions): Remove unused variable `hook'.
1991
1992 * intervals.c (get_local_map): Remove unused variable `tem'.
1993
1994 * doprnt.c (doprnt1): Remove unused variable `size'.
1995
1996 * fns.c (Flength): Remove unused variable `tail'.
1997 (Fdelete): Remove unused variable `size'.
1998
1999 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
2000 and `gcpro2'.
2001
2002 * doc.c (Fsnarf_documentation): Remove unused variables `fun' and
2003 `tem'.
2004
2005 * data.c (find_symbol_value): Remove extra 3rd argument in the
2006 call to swap_in_symval_forwarding.
2007
2008 * undo.c (Fprimitive_undo): Remove unused block-scope variable
2009 `end'.
2010
2011 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
2012 (trivial_regexp_p): Remove unused variable `c'.
2013 (boyer_moore): Remove unused variable `k'.
2014
2015 * indent.c (current_column): Remove unused variable `stopchar'.
2016 (Fcompute_motion): Remove unused variable `contin'.
2017
2018 * casefiddle.c (casify_object): Remove unused variable `tolen'.
2019
2020 * dired.c (directory_files_internal): Fix a typo in a comment.
2021 Remove an unused variable `handler'.
2022 (file_name_completion): Remove unused function-scope variable
2023 `dp'.
2024 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
2025 on BSD4_2.
2026
2027 * fileio.c (e_write): Remove unused variable
2028 `require_encoding_p'.
2029
2030 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
2031 and `buf'.
2032 (Fmarker_insertion_type): Remove unused variable `buf'.
2033
2034 * insdel.c (make_gap): Remove unused variable `result'.
2035
2036 * keyboard.c (record_char): Remove unused function-scope variable
2037 `help'.
2038 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
2039 (menu_bar_items): Remove unused function-scope variable `tem'.
2040
2041 * fontset.c (fontset_ref): Remove unused variable `i'.
2042 (fontset_set): Remove unused variables `j' and `tmp'.
2043 (make_fontset): Remove unused variables `i', `j', `elt' and
2044 `base_elt'.
2045 (make_fontset_for_ascii_face): Remove unused variable `name'.
2046 (fs_load_font): Remove unused variable `font_idx'.
2047 (fs_query_fontset): Remove unused function-local variable
2048 `fontset'.
2049 (list_fontsets): Remove unused variable `tail'.
2050 (Fnew_fontset): Remove unused variables `family' and `registry'.
2051 (accumulate_font_info): Remove unused variable `tmp'.
2052 (Ffontset_font): Remove unused variable `id'.
2053 (syms_of_fontset): Remove unused variable `i'.
2054
2055 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
2056 to x_term_init.
2057 (lookup_image): Remove unused variable `file'.
2058 (xbm_load): Remove unused variables `bitmap_data', `height', and
2059 `width'. Remove function-local variable `i', leave the
2060 block-local one.
2061 (gif_load): Remove unused variable `inc'.
2062
2063 * xterm.c (XTread_socket): Remove unused variables `p' and
2064 `pend'.
2065 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
2066 leave only the one in the inner block.
2067
2068 * xfaces.c (face_fontset, realize_default_face): Remove unused
2069 variable `fontset'.
2070 (face_at_buffer_position): Remove unused variable `multibyte_p'.
2071
2072 * term.c (encode_terminal_code): Remove unused variable `c'.
2073
2074 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
2075 char *' instead of `char *'.
2076
2077 * category.c (Fcategory_docstring): Remove unused variable `doc'.
2078 (Fget_unused_category): Remove unused variable
2079 `docstring_vector'.
2080 (Fchar_category_set): Remove unused variables `val', `charset',
2081 `c1' and `c2'.
2082
2083 * coding.c (detect_coding_iso2022, setup_coding_system): Remove
2084 unused variable `i'.
2085 (detect_coding_mask): Remove unused variable `idx'.
2086 (detect_coding): Remove unused variable `i'.
2087 (ccl_coding_driver): Remove unused variable `result'.
2088 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
2089 (decode_coding_string): Remove unused variables `to' and
2090 `gcpro1'.
2091 (encode_coding_string): Remove unused variables `gcpro1' and
2092 `saved_coding_symbol'.
2093 (Ffind_coding_systems_region_internal): Remove function-local
2094 variable args[], leave only the block-local one.
2095 (code_convert_region1): Remove unused variable `len'.
2096
2097 * charset.c (char_printable_p): Remove unused variable `chars'.
2098 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
2099 (str_to_multibyte): Remove unused variable `c'.
2100
2101 * window.c (size_window): Remove block-local variable `min_size'.
2102
2103 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
2104 `header_line_height'.
2105 (append_space, extend_face_to_end_of_line): Declare `saved_what'
2106 enum display_element_type.
2107
1a8a9daf
GM
21082001-01-02 Gerd Moellmann <gerd@gnu.org>
2109
6dde6abc
GM
2110 * xterm.c (x_connection_closed): Catch X errors around all
2111 statements that call X. Save away the error message in a local
2112 copy.
2113
1883b2c6
GM
2114 * xterm.c (x_connection_closed): Set handling_signal to 0 at
2115 the start.
2116
a13be207
GM
2117 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
2118 in or at the start of invisible text.
2119
1a8a9daf
GM
2120 * dispnew.c (update_window): Don't check_current_matrix_flags.
2121
3608c0f9
JR
21222001-01-01 Jason Rumney <jasonr@gnu.org>
2123
2124 * w32fns.c (x_figure_window_size): Do not allow new_height and
2125 new_width of frame to override specified values.
2126
abb1acc4
KH
21272000-12-30 Kenichi Handa <handa@etl.go.jp>
2128
d279f620
KH
2129 * composite.c (find_composition): Fix a code for searching
2130 backward.
abb1acc4 2131
762a68ec
GM
21322000-12-29 Gerd Moellmann <gerd@gnu.org>
2133
9c8b8382
GM
2134 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New
2135 function.
2136 (update_window) [GLYPH_DEBUG]: Call it.
2137 (scrolling_window): Prevent including current rows which are below
2138 what's displayed in the window.
2139
2140 * xdisp.c (try_window_reusing_current_matrix)
2141 <new start <= old start>: Disable rows in the current matrix
2142 which are below the window after scrolling.
2143
762a68ec
GM
2144 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
2145 is zero. It's not worth the complexity.
2146 (invisible_text_between_p): Put in #if 0 because unused.
2147
2d5912c1
GM
21482000-12-28 Gerd Moellmann <gerd@gnu.org>
2149
46f6a258
GM
2150 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
2151 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
2152
89f93679
GM
2153 * keyboard.c (echo_char): If C is an integer, always call
2154 push_key_description. Former code could signal an invalid
2155 character error.
2156
2157 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
2158 If set, print multibyte text.
2159 (Fsingle_key_description): Call push_key_description with
2160 FORCE_MULTIBYTE set.
2161 (describe_buffer_bindings): Likewise.
2162
2163 * lisp.h (push_key_description): Add prototype.
2164
c06017fb
GM
2165 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
2166 around the call to redisplay_internal.
2167
f1d2ce7f
GM
2168 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
2169
2d5912c1
GM
2170 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
2171
9371f831
KH
21722000-12-28 Kenichi Handa <handa@etl.go.jp>
2173
2174 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
2175 (ccl_driver): New local variable `extra_bytes'.
2176
2177 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
2178
2179 * coding.c (setup_coding_system): Initialize
2180 coding->spec.ccl.eight_bit_carryover.
2181 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
2182
0c80628a
KH
21832000-12-28 Kenichi Handa <handa@etl.go.jp>
2184
2185 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
2186 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
2187 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
2188 (decode_composition_emacs_mule): New function.
2189 (decode_coding_emacs_mule): Decode composition sequence by calling
2190 decode_composition_emacs_mule.
2191 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
2192 (encode_coding_emacs_mule): Changed from macro to function. If
2d5912c1 2193 a text contains compositions, encode them correctly.
0c80628a
KH
2194 (setup_coding_system): Set coding->commong_flags for emacs-mule so
2195 that decoding and encoding are required.
2196
3e32cc27
GM
21972000-12-27 Gerd Moellmann <gerd@gnu.org>
2198
5e25feee
GM
2199 * xfaces.c (PT_PER_INCH): New macro.
2200 (xlfd_point_size): Compute real point size from font's pixel size.
2201 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
2202 instead of 72.
2203
892d8fcd
GM
2204 * .gdbinit: Comment out the line pointing to the Lesstif source
2205 directory.
2206
12c8b416
GM
2207 * window.c (Frecenter): Use displayed_window_lines instead
2208 of window_internal_height.
2209
6061fbf0
GM
2210 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
2211 instead of x-toolkit-scroll-bars-p.
2212 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
2213
2214 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
2215 instead of x-toolkit-scroll-bars-p.
2216 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
2217
3e32cc27
GM
2218 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
2219 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
2220 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]: New
2221 variables.
2222 (add_window_display_history, add_frame_display_history)
2223 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
2224 (build_frame_matrix_from_leaf_window): Remove unused code.
2225 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
2226 redisplay history.
2227 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
2228 (update_window) [GLYPH_DEBUG]: Likewise.
2229 (syms_of_display): Defsubr dump-redisplay-history.
2230
31798cfe
GM
22312000-12-23 Gerd Moellmann <gerd@gnu.org>
2232
f717c2ba
GM
2233 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
2234 the end of the prompt. Set echo_after_prompt to the offset
2235 of echoptr in echobuf.
2236
aeb2b8fc
GM
2237 * xdisp.c (init_from_display_pos): Pop until the iterator's
2238 stack is empty; there may be frames for stretch or images
2239 on the stack.
2240
31798cfe
GM
2241 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
2242 (save_or_restore_current_matrix): New function for the same
2243 purpose, but more efficient.
2244 (adjust_frame_glyphs_for_frame_redisplay): Use it.
2245
f8156156
EZ
22462000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
2247
2248 * xdisp.c (syms_of_xdisp): Fix last change.
2249
bdd6d4e8
GM
22502000-12-23 Gerd Moellmann <gerd@gnu.org>
2251
2252 * xdisp.c (syms_of_xdisp): Doc fix.
2253
2254 * xdisp.c (redisplay_window): Remove label restore_buffers;
2255 use finish_scroll_bars instead to make sure that scroll bars
2256 are redeemed. If we don't do this, flickering can result from
2257 scroll bars being destroyed and recreated.
2258
9436cdf9
JR
22592000-12-22 Jason Rumney <jasonr@gnu.org>
2260
2261 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
2262 in the wrong colors when the foreground is not black.
2263 (expose_window): Don't redraw the window that's currently being
2264 updated.
2265
951f9df5
GM
22662000-12-22 Gerd Moellmann <gerd@gnu.org>
2267
856ff7a7
GM
2268 * window.c (size_window): When setting the window's too_small_ok
2269 flag, compare old size with minimum size depending on WIDTH_P,
2270 don't compare with window_min_width.
2271
951f9df5
GM
2272 * window.c (delete_window): Simplify somewhat.
2273 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
2274 freeing window matrices. The flag windows_or_buffers_changed is
2275 set, so the next redisplay will consider all windows; this should
2276 suffice.
2277
886bc933
KH
22782000-12-22 Kenichi Handa <handa@etl.go.jp>
2279
2280 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
2281
2282 * ccl.h (struct ccl_program): New member cr_consumed.
2283
2284 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
2285 (CCL_READ_CHAR): Handle EOL conversion here.
2286 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
2287
177f4e88
GM
22882000-12-21 Gerd Moellmann <gerd@gnu.org>
2289
6ba384dc
GM
2290 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg
2291 GLYPHS.
2292
2293 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
2294 otherwise tabs of different size compare equal.
2295
2296 * callint.c (Fcall_interactively): Prevent a compiler warning.
2297
2298 * print.c (print_unwind): Return nil.
2299 (PRINTDECLARE): Initialize all local variables.
2300 (print_preprocess): Add a default case.
2301
8e15274f
GM
2302 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
2303
2304 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
2305
177f4e88
GM
2306 * window.c (delete_window, Fsplit_window)
2307 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
2308
2309 * dispextern.h (ensure_frame_matrix): Function declaration removed.
2310
2311 * dispnew.c (ensure_frame_matrix): Removed.
2312 (save_frame_matrix, restore_frame_matrix): New functions.
2313 (adjust_frame_glyphs_for_frame_redisplay): Use them.
2314
2315 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
2316 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
2317
99012074
AI
23182000-12-21 Andrew Innes <andrewi@gnu.org>
2319
2320 * w32term.c (x_update_begin): Regenerate the palette here, rather
2321 than for each window.
2322
2323 * w32xfns.c (select_palette): Avoid calling SelectPalette if
2324 palette is NULL, since this corrupts memory! Also get
2325 display_info reference from frame.
2326
29ef7d2d
JR
23272000-12-21 Jason Rumney <jasonr@gnu.org>
2328
2329 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
2330
2331 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
2332 to avoid returning without releasing it.
3e27fa1f 2333
3f9d67a6
KH
23342000-12-21 Kenichi Handa <handa@etl.go.jp>
2335
587fc3f9
KH
2336 * keymap.c (push_key_description): Don't convert eight-bit-control
2337 and eight-bit-graphic to multibyte character.
2338
3f9d67a6
KH
2339 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
2340 generic character and CODE1 is nil, return the smallest character
2341 in CHARSET.
2342
774ba8c9
DL
23432000-12-20 Dave Love <fx@gnu.org>
2344
2345 * s/osf5-0.h (NSIG): Don't redefine.
2346
88416888
SM
23472000-12-20 Stefan Monnier <monnier@cs.yale.edu>
2348
2349 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
2350 excluding menu-bar and tool-bar.
2351 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
2352 (menu_item_p): Remove.
2353 (where_is_internal_1): Don't ignore menu-items.
2354
a6426c6f
GM
23552000-12-20 Gerd Moellmann <gerd@gnu.org>
2356
03ff8aab
GM
2357 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
2358 into account.
2359
2360 * window.c (make_window): Initialize window's min_hscroll.
2361 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
2362 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
2363 to zero.
2364 (struct saved_window): New member min_hscroll.
2365 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
2366 (Fset_window_configuration): Set window's min_hscroll.
2367 (save_window_save): Save window's min_hscroll.
2368 (compare_window_configurations): Compare min_hscroll values.
2369
2370 * window.h (struct window): New member min_hscroll.
2371
2372 * keyboard.c (echo_prompt): Prevent a compiler warning.
2373
8de4aaf8
GM
2374 * xdisp.c (try_cursor_movement): Fix last change. The real
2375 condition is that PT is at the end of the row, and should
2376 be displayed at the start of the next row.
2377
3f7e3031
GM
2378 * xdisp.c (try_cursor_movement): If we end on a partially
2379 visible line, end we already decided to scroll, return -1.
2380
a6426c6f
GM
2381 * dispextern.h (ensure_frame_matrix): Add prototype.
2382
2383 * window.c (delete_window, Fsplit_window)
2384 (Fset_window_configuration): Call ensure_frame_matrix.
2385
2386 * dispnew.c (fake_current_matrices, ensure_frame_matrix): New
2387 functions.
2388 (adjust_frame_glyphs_for_frame_redisplay): If display has been
2389 completed, call fake_current_matrices instead of marking frame
2390 garbaged.
2391
57fa2774
JR
23922000-12-20 Jason Rumney <jasonr@gnu.org>
2393
2394 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
2395
d925df90
EZ
23962000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
2397
2398 * fns.c (Frequire): Doc fix.
2399
7b93a85b
GM
24002000-12-19 Gerd Moellmann <gerd@gnu.org>
2401
71d4497a
GM
2402 * window.c (window_scroll_pixel_based): Don't use
2403 move_it_vertically.
2404
c74e645b
GM
2405 * dispnew.c (direct_output_for_insert): Fix check for mini-window
2406 currently displaying a message.
2407
7b93a85b
GM
2408 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
2409 xterm.h.
2410 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
2411
90d97e64
AI
24122000-12-18 Andrew Innes <andrewi@gnu.org>
2413
2414 * w32.c (w32_strerror): New function.
2415
2416 * w32.h (w32_strerror): New extern.
2417
2418 * w32fns.c (Fw32_shell_execute): Use it.
2419
91c9e6ce
GM
24202000-12-18 Gerd Moellmann <gerd@gnu.org>
2421
2422 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
2423
6f4745e2
EZ
24242000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
2425
2426 * msdos.c (IT_set_face): Obey inverse_video.
2427
c9e088ce
KH
24282000-12-18 Kenichi Handa <handa@etl.go.jp>
2429
2430 * dired.c (directory_files_internal): Always return decoded filenames.
2431
c3695f5f
GM
24322000-12-18 Gerd Moellmann <gerd@gnu.org>
2433
52d8e4ff
GM
2434 * xterm.c (x_connection_closed): Prevent being called recursively
2435 because of an error condition in XtCloseDisplay.
2436
62be9979
GM
2437 * xdisp.c (init_iterator): If noninteractive, and the frame's
2438 face cache is null, make one.
2439
5f7a1890
GM
2440 * xfns.c (show_busy_cursor): Check for live frames more
2441 thoroughly.
2442
c3695f5f
GM
2443 * process.c (wait_reading_process_input): Check for pending
2444 input when running timers.
2445
78555fbe
EZ
24462000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
2447
2448 * msdos.c (IT_write_glyphs): Compute the glyph face from
2449 str->face_id.
2450
b2b36264
KH
24512000-12-18 Kenichi Handa <handa@etl.go.jp>
2452
2453 * process.c (read_process_output): Don't run a filter if the code
2454 decoder produces nothing but carryover.
2455
9c543fbf
AI
24562000-12-17 Andrew Innes <andrewi@gnu.org>
2457
2458 * w32.c (sys_rename): Only check errno against EEXIST, and not
2459 EACCES, when determining whether rename failed because the target
2460 exists. This was resulting in indefinite looping on Windows 9x if
2461 the source file was locked by another process.
2462
2463 * w32fns.c (Ffile_system_info): New function.
2464 (syms_of_w32fns): Defsubr it.
2465
10c2b5a8
GM
24662000-12-17 Gerd Moellmann <gerd@gnu.org>
2467
b0228ace
GM
2468 * window.c (coordinates_in_window): Fix computation for
2469 position on vertical line between mode lines.
2470
10c2b5a8
GM
2471 * xfns.c (unwind_create_frame): Return t if frame was deleted.
2472 Don't alter tip_frame or tip_window.
2473 (unwind_create_tip_frame): Set tip_frame to nil only if frame
2474 was deleted.
2475
c844a81a
GM
2476 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
2477 Don't alter tip_frame or tip_window.
2478 (unwind_create_tip_frame): Set tip_frame to nil only if frame
2479 was deleted.
2480
6c825f8e
EZ
24812000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
2482
2483 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
2484 be consistent with the doc string. Reported by NAKAJIMA Mikio
2485 <minakaji@osaka.email.ne.jp>.
2486
af4bb4c8
KH
24872000-12-16 Kenichi Handa <handa@etl.go.jp>
2488
2489 * xfaces.c (Vface_ignored_fonts): New variable.
2490 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
2491 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
2492
8062e53a
GM
24932000-12-15 Gerd Moellmann <gerd@gnu.org>
2494
e87b8809
GM
2495 * dispnew.c (update_window): Detect pending input every nth line
2496 updated, i.e. do it depending on real work done, and not on the
2497 vpos of the line.
2498
2499 * xterm.c (expose_window): Don't redraw the window that's
2500 currently being updated.
2501
a6768cc5
GM
2502 * window.c (Fset_window_point): Remove test for
2503 cursor_in_non_selected_windows.
2504
4ea7fdca
GM
2505 * lread.c (read1): Recognize end of file after `\\'.
2506
8062e53a
GM
2507 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
2508 not unwind_create_frame.
2509
bb7959c1
GM
25102000-12-15 Dave Love <fx@gnu.org>
2511
2512 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
2513 bcopy & al.
2514
2515 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
2516
ced04c42
KH
25172000-12-15 Kenichi Handa <handa@etl.go.jp>
2518
c5443913
KH
2519 * coding.c (setup_coding_system): Clear all members of the struct
2520 coding_system at first.
bc137305
KH
2521 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
2522 argument.
2523 (code_convert_region): Don't override coding->src_multibyte and
2524 coding->dst_multibyte.
c5443913 2525
ced04c42
KH
2526 * fns.c (Fmd5): Docstring improved.
2527
c2d7f289
MB
25282000-12-15 Miles Bader <miles@gnu.org>
2529
2530 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
2531 are actually marked as mode-lines; otherwise use
2532 estimate_mode_line_height.
2533
9d7d9263
GM
25342000-12-14 Gerd Moellmann <gerd@gnu.org>
2535
2536 * editfns.c (Fformat): Prevent a buffer overrun when the format
2537 specifies a precision.
2538
7cf0153a
EZ
25392000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
2540
2541 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
2542 argument is outside the range [2..3].
2543
1de0f662
AI
25442000-12-14 Andrew Innes <andrewi@gnu.org>
2545
2546 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
2547 nothing to do. Bind inhibit-quit.
2548 (tip_frame): Make it a Lisp_Object.
2549 (x_create_tip_frame): Set tip_frame after it has been added to
2550 Vframe_list.
2551 (Fx_show_tip): Don't set tip_frame here.
2552 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New
2553 variables.
2554 (unwind_create_frame, unwind_create_tip_frame): New functions.
2555 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
2556 while a frame is only partially constructed.
2557
2558 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
2559 (x_free_frame_resources): New function.
2560 (x_destroy_window): Use it.
2561
02387dcc
GM
25622000-12-14 Gerd Moellmann <gerd@gnu.org>
2563
2564 * xfns.c (Fx_backspace_delete_keys_p): New function.
2565 (syms_of_xfns): Defsubr it.
2566
2567 * config.in (HAVE_XKBGETKEYBOARD): Add.
2568
0544ef49
KH
25692000-12-14 Kenichi Handa <handa@etl.go.jp>
2570
98d62747
KH
2571 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
2572 Always store string in multibyte representation in echobuf.
2573 (echo_char): Always store string in multibyte representation in
2574 echobuf.
2575 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
2576 (read_key_sequence): Adjusted for the change of echo_prompt.
2577
a20193cd
KH
2578 * fns.c (Fmd5): Docstring improved.
2579
191b83b6
KH
2580 * lisp.h (detect_coding_system): Prototype adjusted.
2581
0544ef49
KH
2582 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
2583 (detect_coding_emacs_mule, detect_coding_iso2022,)
2584 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
2585 (detect_coding_utf_16, detect_coding_ccl): Make them static. New
2586 argument MULTIBYTEP. Callers changed.
2587 (detect_coding_mask, detect_coding_system): New argument
2588 MULTIBYTEP. Callers changed.
1da1bb05
KH
2589 (decode_coding_string): Set coding->src_multibyte and
2590 coding->dst_multibyte before calling detect_coding and detect_eol.
2591 Update them after some coding system is detected.
2592
d5b3eb1b
SM
25932000-12-13 Stefan Monnier <monnier@cs.yale.edu>
2594
2595 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
2596
2597 * keyboard.c (menu_bar_items, tool_bar_items):
2598 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
2599
f7f8bb69
GM
26002000-12-13 Gerd Moellmann <gerd@gnu.org>
2601
19f71add
GM
2602 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
2603 New variables.
2604 (unwind_create_frame, unwind_create_tip_frame): New functions.
2605 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
2606 while a frame is only partially constructed.
2607
2608 * xterm.h (x_free_frame_resources): Declare.
2609
2610 * xterm.c (x_free_frame_resources): New function.
2611 (x_destroy_window): Use it.
2612
e10da507
GM
2613 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
2614 don't interrupt the update for pending input initially, i.e.
2615 update at least some lines.
2616
2617 * keyboard.c (do_mouse_tracking): Make externally visible.
2618
d5b3eb1b 2619 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
f7f8bb69
GM
2620
2621 * xfns.c (gray_bitmap_bits): Declare `char *'.
2622
90aa2856
GM
26232000-12-12 Gerd Moellmann <gerd@gnu.org>
2624
2625 * xdisp.c (display_tool_bar_line): Make sure that tool bar
2626 lines start with a relief line.
2627
a308c9cd
DL
26282000-12-12 Dave Love <fx@gnu.org>
2629
2630 * window.c (Fdisplay_buffer): Doc fix.
2631 (Fwindow_list): Remove unused var.
2632
2633 * buffer.h (mmap_set_vars): Declare.
2634
2635 * window.h (Fset_window_point): Declare.
2636
d575011f
EZ
26372000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
2638
bf6282d2 2639 * msdos.c (fast_find_position): Don't overstep the last window row.
d575011f
EZ
2640 (IT_note_mouse_highlight): Initialize portion to -1. Remove
2641 unused variable `area'. When looking for a row under (X,Y), give
2642 up if some of the previous rows is not enabled.
2643
ecf4d726
GM
26442000-12-12 Gerd Moellmann <gerd@gnu.org>
2645
2ebf6139
GM
2646 * window.c (Fset_window_point): If displaying cursors in windows
2647 other than the selected window, make sure redisplay updates
2648 other windows to show the new value of point in the window.
2649
2650 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
2651
bfdb75ee
GM
2652 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
2653 the buffer is the sole visible buffer when in the mini-buffer.
2654
4fdbd809
GM
2655 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
2656 Bind `inhibit-read-only' to t.
2657 (unwind_with_echo_area_buffer): Use AREF.
2658
c0006262
GM
2659 * xfns.c (Fx_hide_tip): Simplified.
2660
e9a59cad
GM
2661 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use
2662 GC_MAKE_GCPROS_NOOPS instead of `1'.
2663
ecf4d726
GM
2664 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
2665
e5959a9a
GM
26662000-12-11 Gerd Moellmann <gerd@gnu.org>
2667
a3642e49
GM
2668 * xfns.c (Fx_hide_tip): Fix last change.
2669
44b5a125
GM
2670 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
2671 nothing to do. Bind inhibit-quit.
2672 (tip_frame): Make it a Lisp_Object.
2673 (x_create_tip_frame): Set tip_frame after it has been added to
2674 Vframe_list.
2675 (Fx_show_tip): Don't set tip_frame here.
2676
2677 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
2678
2679 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
2680 Lisp_Object.
2681
2682 * dispextern.h: Change external declaration of tip_frame.
2683
d990421f
GM
2684 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
2685 return an empty string.
2686
4db87380
GM
2687 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
2688 of the window's update_mode_line flag, since the former is set by
2689 force-mode-line-update, not the latter. This makes
2690 column-number-mode slightly faster.
2691
e5959a9a
GM
2692 * xdisp.c (try_window_id) <all changes above window start>:
2693 Set the cursor.
2694
169fe44e
GM
26952000-12-11 Paul Eggert <eggert@twinsun.com>
2696
2697 * config.in (HAVE_FTELLO): Remove.
2698 (HAVE_FSEEKO): Add.
2699 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
2700 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
2701 HAVE_FTELLO.
2702 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
2703 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
2704
59ec59ae
MB
27052000-12-11 Miles Bader <miles@gnu.org>
2706
2707 * window.c (displayed_window_lines): Don't round up when
2708 converting empty space at bottom to lines.
ff904dd6
MB
2709 Handle non-newline-terminated final lines properly.
2710 (Fwindow_text_height): New function (used to be in lisp).
2711 (syms_of_window): Initialize it.
59ec59ae 2712
42ebfa31
SM
27132000-12-09 Stefan Monnier <monnier@cs.yale.edu>
2714
2715 * syntax.c (scan_lists): Check that the right quote char has the
2716 right Sstring syntax when jumping over strings.
2717 (init_syntax_once): Use Smax rather than 13.
2718
5cdb3cf3
MB
27192000-12-09 Miles Bader <miles@gnu.org>
2720
2721 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
2722 with PARTIALLY, inverting the sense.
2723 (window_scroll_pixel_based): Scroll partially visible lines into
2724 place if we hit the beginning or end of the buffer.
a12167c5
MB
2725 (displayed_window_lines): Don't include partially visible lines.
2726 (Fmove_to_window_line): Skip past any partially visible first line.
5cdb3cf3 2727
842b2a94
GM
27282000-12-08 Gerd Moellmann <gerd@gnu.org>
2729
2730 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
2731
2732 * tparam.c (tparam1): Change the way buffers are reallocated to be
2733 portable and less obfuscated.
2734
2735 * termcap.c (tgetent): Change the way buffers are reallocated to
2736 be portable and less obfuscated.
2737
2738 * macros.c (store_kbd_macro_char): Change the way buffers are
2739 reallocated to be portable and less obfuscated.
2740
2741 * lread.c (read1): Change the way buffers are reallocated to be
2742 portable and less obfuscated.
2743
2744 * doc.c (Fsubstitute_command_keys): Change the way buffers
2745 are reallocated so that it is portable.
2746
137cad7c
EZ
27472000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
2748
2749 * dosfns.c (Ffile_system_info): New function.
2750 (syms_of_dosfns): Defsubr it.
2751
5c7f629c
SM
27522000-12-07 Stefan Monnier <monnier@cs.yale.edu>
2753
2754 * alloc.c (gc_sweep): Add comment.
2755
959e647d
GM
27562000-12-07 Gerd Moellmann <gerd@gnu.org>
2757
28fcb7dc
GM
2758 * sound.c (vox_configure): Change order of ioctls. Don't
2759 set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
2760 Ignore errors when changing volume.
2761 (vox_close): Don't reset the device.
2762
926b7e5e
GM
2763 * process.c (read_process_output): Make sure the process marker's
2764 position is valid when the process buffer is changed in
2765 after-change functions. W3 does that.
2766
959e647d
GM
2767 * xfns.c (x_free_gcs): New function.
2768
2769 * xterm.h (x_free_gcs): Add prototype.
2770
2771 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
2772 freeing GCs here.
2773
2774 * xterm.c (x_destroy_window): Call x_free_gcs so that
2775 resources of non-toolkit X windows will be freed.
2776
478ea067
AI
27772000-12-07 Andrew Innes <andrewi@gnu.org>
2778
2779 * w32fns.c (xlfd_charset_of_font): Fix last change.
2780
fbee3231
DL
27812000-12-06 Dave Love <fx@gnu.org>
2782
67292061
DL
2783 * md5.h (__P): Don't define -- it comes from config.h.
2784
fbee3231
DL
2785 * strftime.c: Change some #if foo to #ifdef foo.
2786
4ee87dbb
AI
27872000-12-06 Andrew Innes <andrewi@gnu.org>
2788
2789 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
2790
2791 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname
2792 argument.
2793 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
2794 (w32_list_fonts): Don't choke if pattern doesn't specify a
2795 codepage.
2796
9765b4a4
GM
27972000-12-06 Gerd Moellmann <gerd@gnu.org>
2798
d285b373
GM
2799 * alloc.c (gc_sweep): Prevent symbols read during loadup
2800 from being freed.
2801
384333ee
GM
2802 * xdisp.c (underlying_face_id): New function.
2803 (handle_face_prop, face_before_or_after_it_pos): Use it
2804 to determine the face ``under'' a string. Let strings inherit
2805 the face of the buffer under them.
2806
2807 * xfaces.c (face_at_string_position): Update function comment.
2808
d4b72d58
GM
2809 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
2810 matrix if the window's left position has changed; we need to
2811 redraw it in this case.
2812
2813 * dispextern.h (struct glyph_matrix): Add member window_left_x.
2814
e1d05387
GM
2815 * window.c (coordinates_in_window): Check mouse on mode-line or
2816 header-line first.
2817
eb1b0c74
GM
2818 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
2819 advertized by the function documentation.
2820
d94d636f
GM
2821 * window.c (syms_of_window): Doc fix.
2822
3887b449
GM
2823 * sound.c (vox_configure): Set volume for left and right channel.
2824 (sound_cleanup): Return nil.
2825
efc8f57a
GM
2826 * xdisp.c (move_it_by_lines): Fix paren typo.
2827
9765b4a4
GM
2828 * xterm.c (x_load_font): Don't use the font's max_bounds for
2829 computing the height of the font. If max_bounds' ascent or
2830 descent are greater than the font's ascent or descent, this means
2831 glyphs overlap, which should be handled now by redisplay.
2832
6529ed87
GM
2833 * window.c (Veven_window_heights): New variable.
2834 (syms_of_window): DEFVAR_LISP it.
2835 (Fdisplay_buffer): Check Veven_window_heights before evening the
2836 window heights.
2837
0eb2ecde
MB
28382000-12-06 Miles Bader <miles@gnu.org>
2839
2840 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
2841 update `default-frame-alist' instead of setting no frame parameters.
2842
03d7a167
KH
28432000-12-06 Kenichi Handa <handa@etl.go.jp>
2844
2845 * composite.c (update_compositions): Fix typo (use the correct
2846 variable).
2847
5f8803c2
JR
28482000-12-05 Jason Rumney <jasonr@gnu.org>
2849
2850 * md5.h: Remove underscores from function declarations.
2851 (__attribute__, __alignof__) [!__GNUC__]: Define.
2852
2853 * md5.c: Delay include of md5.h until after namespace cleaning.
2854
c28a075b
JR
2855 * makefile.w32-in (fns.o): Depend on md5.h
2856 (md5.o): New target.
2857 (sunfns.o): Remove.
2858
2859 * makefile.nt: Likewise.
2860
ff3c7056
JR
28612000-12-05 Jason Rumney <jasonr@altavista.net>
2862
2863 * w32term.c (expose_area): Complete last change.
2864
0c21eeeb
KR
28652000-12-05 Ken Raeburn <raeburn@gnu.org>
2866
2867 * minibuf.c: Include intervals.h.
2868
f201d732
JR
28692000-12-05 Jason Rumney <jasonr@gnu.org>
2870
2871 * w32term.c (x_produce_glyphs): If a font for a component of
2872 a composition is not found, use 1 pixel dot ascent and 0 dot
2873 descent value to avoid displaying terribly tall empty boxes.
2874 (expose_area): Pass x-coordinate relative to the exposed
2875 area to x_draw_glyphs instead of a window-relative coordinate.
2876
21999ab9
GM
28772000-12-05 Gerd Moellmann <gerd@gnu.org>
2878
4d2036e4
GM
2879 * xdisp.c (next_element_from_ellipsis): Save face before selective
2880 display in saved_face_id, and set face_before_selective_p.
2881 (reseat_1): Reset face_before_selective_p.
2882 (append_space, extend_face_to_end_of_line): If iterator's
2883 face_before_selective_p is set, use the face from saved_face_id.
2884 (extend_face_to_end_of_line): For tty frames, make sure to
2885 use the right face id when producing spaces at the end of
2886 the line.
2887
2888 * dispextern.h (struct it): Add face_before_selective_p.
2889
52be17cc
GM
2890 * keyboard.c (record_char): Don't record identical help-echo
2891 events in recent_keys.
2892
8a4f36cc
GM
2893 * xterm.c [USE_X_TOOLKIT]: Close the display.
2894 (xim_close_dpy): Handle case that the display has been closed.
2895
57d6e381
GM
2896 * xterm.c (x_destroy_window): Reset the frame's X window after
2897 destroying it.
2898
21999ab9
GM
2899 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
2900 variable window_width.
2901 (line_draw_cost): Fix code skipping over spaces at the end of the
2902 line when must_write_spaces is not set.
2903 (scrolling_window): Fix code inserting runs in list of all runs.
2904
91372bb7
KH
29052000-12-05 Kenichi Handa <handa@etl.go.jp>
2906
2907 * coding.c (setup_coding_system): Be sure to initialize
2908 coding->category_idx.
2909
6c083b4c
GM
29102000-12-04 Gerd Moellmann <gerd@gnu.org>
2911
0c68ce6f
GM
2912 * xterm.c (PER_CHAR_METRIC): Removed because not used.
2913
6452929e
GM
2914 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
2915 area to x_draw_glyphs instead of a window-relative coordinate.
2916
d7f31e22
GM
2917 * fileio.c (auto_save_error): Add parameter ERROR. Show the
2918 error in the message.
2919
ae18aa3b
GM
2920 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
2921 timer after having read a key. It's not good for code reading
2922 several keys in a loop, like an input method.
2923
caa15ef7
GM
2924 * fileio.c (Finsert_file_contents): When VISIT is t, don't
2925 record undo information for format-decode.
2926
2927 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
2928 current buffer is read-only, not if it isn't.
2929
6c083b4c
GM
2930 * keyboard.c (record_char): Record `help-echo' input events
2931 in recent_keys only if they display some help. Don't record
2932 `help-echo' events as macro char.
2933
caa15ef7
GM
29342000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2935
2936 * editfns.c (save_excursion_restore): Don't move point
2937 in another window if it is showing the wrong buffer.
2938 Avoid the call to Fwindow_live_p, for speed.
2939
5a13529b
KH
29402000-12-04 Kenichi Handa <handa@etl.go.jp>
2941
e225faa7
KH
2942 * xfaces.c (struct font_name): New member registry_priority.
2943 (split_font_name): Initialize the above member to zero.
2944 (concat_font_list): New function.
2945 (font_list): Include fonts of all alternative registries.
2946 (FONT_POINT_SIZE_QUANTUM): New macro.
2947 (better_font_p): Ignore point size difference less than
2948 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
2949
e89648b4
KH
2950 * xterm.c (x_produce_glyphs): If a font for a component of
2951 a composition is not found, use 1 pixel dot ascent and 0 dot
2952 descent value to avoid displaying terribly tall empty boxes.
2953
5a13529b
KH
2954 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
2955
d7935eb6
KR
29562000-12-03 Ken Raeburn <raeburn@gnu.org>
2957
2958 * coding.h (code_convert_string1): Declare.
2959
2960 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
2961
2962 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name):
2963 Declare.
2964
0dd5e255
JR
29652000-12-02 Jason Rumney <jasonr@gnu.org>
2966
2967 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
2968 correctly for single byte character case.
2969 (w32_per_char_metric): Do not try to make any assumptions about
2970 the metrics of BDF fonts.
250cfece
JR
2971 (x_estimate_mode_line_height): If `mode-line' face
2972 hasn't a font, use that of the frame, as drawing glyphs
2973 does.
2974 (note_mouse_highlight): Change the cursor shape on the vertical
2975 border between windows [not enabled].
2976
2977 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
2978
2979 * w32fns.c (Fx_create_frame): Reintroduce the call to
2980 face-set-after-frame-defaults.
2981 (Vx_window_horizontal_drag_shape): New variable.
2982 (syms_of_xfns): DEFVAR_LISP it.
2983 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
2984 enabled].
0dd5e255 2985
b5d8d2ca
GM
29862000-12-02 Simon Josefsson <simon@josefsson.org>
2987
2988 * fns.c (Fmd5): Use a different logic to decide the coding system
2989 to use.
2990
2991 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
2992
fbb87147
EZ
29932000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
2994
2995 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is
2996 NULL.
2997
447e9da0
GM
29982000-12-01 Gerd Moellmann <gerd@gnu.org>
2999
7708ced0
GM
3000 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
3001 height for YNegative.
3002 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
3003 height; also see comment there.
3004
447e9da0
GM
3005 * window.c (coordinates_in_window): Handle computations for
3006 positions on the vertical bar and fringes differently for
3007 window-system frames. Consider some pixels near the vertical bar
3008 as on the bar if the frame doesn't have vertical scroll bars.
3009 Associate positions between mode or header lines with the
3010 right window, the left one.
3011
86d1db20
JR
30122000-12-01 Jason Rumney <jasonr@gnu.org>
3013
3014 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
3015
3016 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
3017 invalid frame.
3018
a1d58e5b
GM
30192000-12-01 Gerd Moellmann <gerd@gnu.org>
3020
3021 * window.c (struct saved_window): Add members orig_top and
3022 orig_height.
3023 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
3024 (save_window_save, Fset_window_configuration): Save/restore
3025 window's orig_top and orig_height.
3026
89c609af
JR
30272000-12-01 Jason Rumney <jasonr@gnu.org>
3028
4d177746 3029 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
86d1db20 3030
89c609af
JR
3031 * w32fns.c (x_set_cursor_color): Fix last change.
3032
eccc05db
GM
30332000-11-30 Gerd Moellmann <gerd@gnu.org>
3034
31b6671b
GM
3035 * xdisp.c (echo_area_display): If cursor is in the echo area, make
3036 sure that the next redisplay displays the minibuffer, so that
3037 the cursor will be replaced with what the minibuffer wants.
3038
eccc05db
GM
3039 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
3040 #ifndef instead of using #if.
3041 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
3042 USE_TOOLKIT_SCROLL_BARS is defined.
3043
162de750
JR
30442000-11-30 Jason Rumney <jasonr@gnu.org>
3045
3046 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
3047 x_display_cursor.
3048
693c4692
GM
30492000-11-30 Gerd Moellmann <gerd@gnu.org>
3050
3051 * fns.c (Fmd5): Doc fix.
3052
b5d8d2ca 30532000-11-30 Simon Josefsson <simon@josefsson.org>
edfb795e
GM
3054
3055 * fns.c (Fmd5): New function.
3056 (syms_of_fns): Defsubr md5.
3057
3058 * Makefile.in (obj): Add md5.o
3059
b02cd40b
GM
30602000-11-30 Gerd Moellmann <gerd@gnu.org>
3061
edfb795e
GM
3062 * md5.h, md5.c: New files, taken from glibc.
3063
df3aedcf
GM
3064 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
3065
b02cd40b
GM
3066 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
3067 hasn't a font, use that of the frame, as drawing glyphs
3068 does.
3069
8b5176cd
SM
30702000-11-29 Stefan Monnier <monnier@cs.yale.edu>
3071
3072 * eval.c (Frun_hooks): Allow 0 arguments.
3073
346598f1
GM
30742000-11-29 Gerd Moellmann <gerd@gnu.org>
3075
f9396e03
GM
3076 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
3077 is over the menu bar widget, say it's not on the frame.
3078
4a967a9b
GM
3079 * xfns.c (Fx_create_frame): Reintroduce the call to
3080 face-set-after-frame-defaults.
3081
346598f1
GM
3082 * eval.c (Fsignal): Reset handling_signal.
3083
222456a1
JR
30842000-11-28 Jason Rumney <jasonr@gnu.org>
3085
3086 * w32menu.c (add_menu_item): Reset menu item text when changing
3087 type to radio button.
3088
8049ddc0
GM
30892000-11-28 Gerd Moellmann <gerd@gnu.org>
3090
346598f1 3091 * xselect.c: Update copyright.
f4f4ee4d 3092
bebe4a2c
GM
3093 * window.c (coordinates_in_window): If on a mode or header line,
3094 but sufficiently close to its start, return ``on vertical
3095 border''. This gives us a way to drag windows horizontally when
3096 using toolkit scroll bars.
3097
3098 * xterm.c (note_mouse_highlight): Change the cursor shape
3099 on the vertical border between windows.
3100
3101 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
3102
3103 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
3104 (syms_of_xfns): DEFVAR_LISP it.
3105 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
3106
8d2c2642
GM
3107 * textprop.c (text_read_only): New function.
3108 (verify_interval_modification): Use it instead of signaling
3109 `text-read-only'. This makes it easier to catch this error
3110 with a breakpoint.:
3111
8049ddc0
GM
3112 * xdisp.c (forward_to_next_line_start): Check for newlines,
3113 not end of line, which includes CR.
3114
5a2bae6c
KH
31152000-11-28 Kenichi Handa <handa@etl.go.jp>
3116
3117 * coding.c (Ffind_coding_systems_region_internal): Be sure to
3118 include no-conversion.
3119
ae31f84d
JR
31202000-11-27 Jason Rumney <jasonr@gnu.org>
3121
3122 * w32fns.c (w32_load_system_font): Always mark font as double byte
3123 if codepage is unicode.
3124
67f1cf4c
GM
31252000-11-27 Gerd Moellmann <gerd@gnu.org>
3126
4a74d071
GM
3127 * xdisp.c (forward_to_next_line_start): If already on a newline,
3128 just consume it to avoid unintended skipping over invisible text
3129 below.
3130
902ae620
GM
3131 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
3132 `vertical-line', `mode-line' and `header-line' events.
3133
3134 * xdisp.c (try_window_id): Avoid starting to display in the middle
67f1cf4c
GM
3135 of a character, a TAB for instance. This is easier than to set
3136 up the iterator exactly, and it's not a frequent case, so the
3137 additional effort wouldn't really pay off.
3138
c1e279c2
AC
31392000-11-26 Andrew Choi <akochoi@i-cable.com>
3140
67f1cf4c 3141 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
c1e279c2
AC
3142 init_window_once.
3143
a609568a
JR
31442000-11-25 Jason Rumney <jasonr@gnu.org>
3145
48b21762
JR
3146 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]: Args
3147 to window_from_coordinates should be pixel coordinates.
3148
a609568a
JR
3149 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
3150 redisplay handles them properly.
3151
a658d039
MB
31522000-11-25 Miles Bader <miles@gnu.org>
3153
3154 * indent.c (compute_motion): Keep pos_byte in sync with pos.
3155
d3416cca
JR
31562000-11-24 Jason Rumney <jasonr@gnu.org>
3157
3158 * w32.c (init_environment): Set LANG environment variable based on
3159 locale settings, if not set.
3160
3161 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
3162 making tool bar smaller. When clearing the frame, also
3163 clear current matrices. Clear frame when tool bar disappears.
3164 Don't use more lines for the tool-bar than is available.
3165 (x_change_window_heights): New function.
3166
ba193890
GM
31672000-11-24 Gerd Moellmann <gerd@gnu.org>
3168
2be8f184
GM
3169 * xdisp.c (init_from_display_pos): If POS says we're already after
3170 an overlay string ending at POS, make sure to pop the iterator
3171 because it will be in front of that overlay string. When POS is
3172 ZV, we've thereby also ``processed'' overlay strings at ZV.
3173
ba193890
GM
3174 * xfaces.c (lface_from_face_name): Function comment fix.
3175
1862a24e
MB
31762000-11-24 Miles Bader <miles@gnu.org>
3177
3178 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
3179 apply `mode-line-inverse-video' -- zero means force display using
3180 the default face, non-zero means display using the specialized face.
3181 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
3182
f07fa1b8
KH
31832000-11-23 Kenichi Handa <handa@etl.go.jp>
3184
3185 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
3186 hard coded `4'.
3187
2bcdf662
EZ
31882000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
3189
3190 * coding.c (decode_coding_emacs_mule): Fix the case of
3191 CODING_EOL_LF, which used uninitialized value of c.
3192
ba8299ff
SM
31932000-11-23 Stefan Monnier <monnier@cs.yale.edu>
3194
3195 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
3196
f4117c4d
GM
31972000-11-22 Gerd Moellmann <gerd@gnu.org>
3198
03e757c1
GM
3199 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
3200 buffer object.
3201
f4117c4d
GM
3202 * frame.h (struct frame): Replace desired_tool_bar_items,
3203 current_tool_bar_items, n_desired_tool_bar_items,
cc362d76 3204 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
f4117c4d
GM
3205
3206 * frame.c (make_frame): Change initialization of tool bar
3207 items accordingly.
3208
3209 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
cc362d76 3210 Change references to members deleted from struct frame to use the
f4117c4d
GM
3211 new ones.
3212
3213 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
cc362d76 3214 references to members deleted from struct frame to use the new
f4117c4d
GM
3215 ones.
3216
3217 * dispnew.c (update_frame): Do nothing with frame's tool bar
3218 items.
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.
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
3268 use the clipboard copy to avoid losing data due to coding
3269 conversions.
3270
5b7bde64
MB
32712000-11-22 Miles Bader <miles@gnu.org>
3272
3273 * minibuf.c (Vminibuffer_prompt_properties): New variable.
3274 (syms_of_minibuf): Initialize it.
3275 (read_minibuf): Add properties from Vminibuffer_prompt_properties
3276 to prompt, don't make read-only.
3277
ff23e1dd
GM
32782000-11-21 Gerd Moellmann <gerd@gnu.org>
3279
3c64f287
GM
3280 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>: Add
3281 BEFORE/AFTER_POTENTIAL_GC.
3282
7aaf4388
GM
3283 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
3284
f5f47add 3285 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 3286
ff23e1dd
GM
3287 * term.c, cm.c: Don't try to include termcap.h; see comment there.
3288
37c35586
KH
32892000-11-21 Kenichi Handa <handa@etl.go.jp>
3290
3291 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
3292 ... #endif scope.
3293
ff9ab414
GM
32942000-11-20 Gerd Moellmann <gerd@gnu.org>
3295
c51d2b5e
GM
3296 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
3297 screen supports it.
3298
29a01b72
GM
3299 * s/gnu-linux.h: Don't use `#cpu'.
3300
09dfdf85
GM
3301 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
3302 not defined in mman.h.
3303
ff9ab414
GM
3304 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New
3305 variables.
3306 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
3307 and store an index in the XClientMessageEvent. Storing a
3308 Lisp_Object or pointer can fail on a 64 bit system, since X only
3309 transfers 32 bits.
3310 (x_scroll_bar_to_input_event): Get the window from
3311 scroll_bar_windows.
3312
81459ac9
DL
33132000-11-20 Dave Love <fx@gnu.org>
3314
3315 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
3316
56c13ae6
GM
33172000-11-20 Gerd Moellmann <gerd@gnu.org>
3318
3319 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
3320
495a6df3
KH
33212000-11-20 Kenichi Handa <handa@etl.go.jp>
3322
2bcf3714
KH
3323 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
3324 by WIDTH.
3325
495a6df3
KH
3326 * alloc.c (make_string): Fix previous change. Be sure to make
3327 unibyte string correctly.
3328
6d950f4c
GM
33292000-11-19 Gerd Moellmann <gerd@gnu.org>
3330
39b39373
GM
3331 * window.c (Fwindow_list): Change parameter list to be XEmacs
3332 compatible.
3333 (window_list_1): New function.
3334 (window_loop): Use it instead of Fwindow_list.
3335
b95b34e5
GM
3336 * sysdep.c (emacs_ospeed): New variable.
3337 (toplevel): Don't declare ospeed extern.
3338 (init_baud_rate): Use emacs_ospeed instead of ospeed.
3339
3340 * termcap.c (ospeed): Remove.
3341 (tputs) [!emacs]: Remove unused code.
3342 (tgetent): Avoid a compiler warning.
3343
e83dc917
GM
3344 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
3345 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 3346 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
3347
3348 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
3349 removed.
3350 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
3351 Take the X display as additional argument.
3352 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
3353 `Widget' is a pointer type that's not easily stored in Lisp_Object
3354 form in a portable way.
3355
6d950f4c
GM
3356 * dispnew.c (update_text_area): Fix last change.
3357
e47306e6
GM
33582000-11-18 Gerd Moellmann <gerd@gnu.org>
3359
fb3cd89b
GM
3360 * xdisp.c: Use BINDING_STACK_SIZE throughout.
3361
3362 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
3363 clear current matrices.
3364
edaa9aed
GM
3365 * buffer.c (mmap_enlarge): Don't print a message on stderr
3366 if mapping new memory at the end of the existing region fails.
3367
e47306e6
GM
3368 * dispnew.c (update_text_area): Don't skip over equal glyphs
3369 when the last current glyph overlaps the glyph to its right.
3370
509633e3
MB
33712000-11-18 Miles Bader <miles@gnu.org>
3372
3373 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
3374 lines that *end* with "..." too (that's the most common case!).
3375
d392e9c5
GM
33762000-11-18 Gerd Moellmann <gerd@gnu.org>
3377
67988445
GM
3378 * xdisp.c (resize_mini_window): Temporarily change to the
3379 mini-window's buffer if necessary.
1bfdbe43 3380
d392e9c5
GM
3381 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
3382 the tooltip obscures less text under it.
3383
33842000-11-17 Gerd Moellmann <gerd@gnu.org>
3385
3386 * puresize.h (BASE_PURESIZE): Increase to 700000.
3387
92bb977f
JR
33882000-11-18 Jason Rumney <jasonr@gnu.org>
3389
3390 * w32term.c (w32_draw_bitmap): Use face to set colors.
3391
26fbf20b
DL
33922000-11-17 Dave Love <fx@gnu.org>
3393
3394 * lread.c (Fload): Fix #ifdef for pcc.
3395
100b593b
GM
33962000-11-17 Gerd Moellmann <gerd@gnu.org>
3397
3398 * xdisp.c (pos_visible_p): Compute the default character height
3399 differently.
3400
a288d0d1
GM
34012000-11-16 Gerd Moellmann <gerd@gnu.org>
3402
cac94de6
GM
3403 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
3404 knowing the line's height; use the default font's height in that
3405 case.
3406
a288d0d1
GM
3407 * xfaces.c (weight_table): Add `demi' with the same meaning as
3408 `demibold'.
3409
981fb6f6
KH
34102000-11-16 Kenichi Handa <handa@etl.go.jp>
3411
2cca872d 3412 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
3413 (clear_glyph_row): Delete local static variable null_row.
3414
e5fa381b
JR
34152000-11-15 Jason Rumney <jasonr@gnu.org>
3416
3417 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
3418 (w32_alloc_lighter_color): Use new brightness calculations from
3419 xterm.c. Scale delta to be in the range expected by W32.
3420 (w32_draw_relief_rect): Use frame relief colors.
3421
8e42f043
GM
34222000-11-15 Gerd Moellmann <gerd@gnu.org>
3423
6d133d1f
GM
3424 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
3425 (Qinhibit_default_face_x_resources): New variable.
3426 (syms_of_frame): Initialize it.
3427 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
3428
3429 * xdisp.c (pos_visible_p): Improve function comment.
3430
3431 * lisp.h (BINDING_STACK_SIZE): New macro.
3432
8e42f043
GM
3433 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
3434 reading the directory if readdir returns null and errno is EAGAIN
3435 or EINTR.
3436
e8c87124
SM
34372000-11-14 Stefan Monnier <monnier@cs.yale.edu>
3438
3439 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
3440 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
3441 Set amount_to_scroll to max of dx and scroll_step so that
3442 scroll-conservatively doesn't defeat scroll-step>1.
3443 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
3444 scroll-conservatively for line-at-a-time scrolling.
3445
5f0c971d
GM
34462000-11-14 Gerd Moellmann <gerd@gnu.org>
3447
3448 * window.c (Fpos_visible_in_window_p): Call pos_visible with
3449 extra argument.
3450
3451 * xdisp.c (current_mode_line_height, current_header_line_height):
3452 New variables.
3453 (init_xdisp): Initialize them.
3454 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
3455 and use exact mode line heights if it is set.
3456
3457 * lisp.h (pos_visible_p): Change prototype.
3458
3459 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
3460 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
3461 and current_header_line_height first.
3462 (current_mode_line_height, current_header_line_height): Declare
3463 extern.
3464
d7361edf
MB
34652000-11-14 Miles Bader <miles@lsi.nec.co.jp>
3466
3467 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
3468 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
3469 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
3470
ee5e440a
MB
34712000-11-14 Miles Bader <miles@gnu.org>
3472
3473 * xterm.c (x_alloc_lighter_color): Include an additive component
3474 too for dark colors, because FACTOR isn't enough.
3475 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
3476 New macros.
3477
5ca020fc
GM
34782000-11-13 Gerd Moellmann <gerd@gnu.org>
3479
3480 * keyboard.c (show_help_echo): Call message3_nolog with number of
3481 bytes in the help string as 2nd parameter, instead of the number
3482 of characters.
3483
9d348294
MB
34842000-11-13 Miles Bader <miles@gnu.org>
3485
3486 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
3487 (Fload): Use new openp return protocol.
3488 Don't try to use Vload_source_file_function to load .elc files.
3489 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
3490 openp return protocol.
3491 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
3492
1729bb9a
KH
34932000-11-11 Kenichi Handa <handa@etl.go.jp>
3494
4e677396
KH
3495 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
3496
3497 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
3498 Defined these macros.
3499 (NLIST_STRUCT): Avoid re-defining it.
3500
1729bb9a
KH
3501 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
3502 -I/usr/contrib/X11R6/include.
3503 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
3504
a82fe213
JR
35052000-11-10 Jason Rumney <jasonr@gnu.org>
3506
3507 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
3508
3509 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
3510 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
3511
3512 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
3513 (Qw32_charset_vietnamese): New symbol.
3514 (xlfd_charset_of_font): New function.
3515 (w32_load_system_font): Use it.
3516 (x_to_w32_charset): Use Fassoc to find charset info. Special case
3517 when Vw32_charset_info_alist is nil to ensure default face always
3518 has font. Use Fcar and Fcdr for safety.
3519 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
3520 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
3521 pseudo-codepages for special cases.
3522 (w32_to_x_font): New parameter to allow charset portion to be
3523 specified where there is many to one mapping. Callers changed.
3524 (w32_list_fonts): Avoid listing fonts that won't display.
3525
52d89894
GM
35262000-11-10 Gerd Moellmann <gerd@gnu.org>
3527
3528 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
3529 (font_list_1): Renamed from font_list.
3530 (font_list): New function, trying alternative registries from
3531 Vface_alternative_font_registry_alist.
3532 (Finternal_set_alternative_font_registry_alist): New function.
3533 (syms_of_xfaces): Initialize and Staticpro
3534 Vface_alternative_font_registry_alist. Defsubr
3535 Finternal_set_alternative_font_registry_alist.
3536
651cd3da
KR
35372000-11-09 Ken Raeburn <raeburn@gnu.org>
3538
3539 * lisp.h (Flooking_at): Declare.
3540
388ac098
GM
35412000-11-09 Gerd Moellmann <gerd@gnu.org>
3542
778fbc46
GM
3543 * dired.c (directory_files_internal): Fix a braino.
3544
388ac098
GM
3545 * dired.c (directory_files_internal): Add missing GCPRO's.
3546 Some cleanup.
3547
ecaedde1
GM
35482000-11-08 Gerd Moellmann <gerd@gnu.org>
3549
f7eb32aa
GM
3550 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
3551 (resize_mini_window): Return quickly if Vresize_mini_window is
3552 nil. Don't return if Vmax_mini_window_height is nil.
3553
3554 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
3555 (syms_of_xdisp): Initialize them.
3556 (resize_mini_window): Act according to the setting of
3557 Vresize_mini_window.
3558 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
3559
ecaedde1
GM
3560 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
3561 scroll bar widget after configuring it, so that it will appear at
3562 the right position from the start.
3563 (XTredeem_scroll_bar): Cleaned up.
3564
3747ef2c
KH
35652000-11-08 Kenichi Handa <handa@etl.go.jp>
3566
3567 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 3568 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
3569 division by two.
3570
3571 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
3572
03391420
DL
35732000-11-07 Dave Love <fx@gnu.org>
3574
7758f1c1 3575 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
3576
3577 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
3578
b5de343d
GM
35792000-11-07 Gerd Moellmann <gerd@gnu.org>
3580
acad3c0b
GM
3581 * window.c (Fset_window_configuration): Don't try to preserve
3582 point in the current buffer, if that buffer is displayed in more
3583 than one window.
3584
b5de343d
GM
3585 * xfaces.c (lookup_named_face): If default face isn't realized,
3586 try to realize it. Return -1 if not successful.
3587 (Fx_list_fonts): Handle case that face cannot be determined.
3588 (Fface_font): Likewise.
3589
cdb1fe49
GM
35902000-11-06 Gerd Moellmann <gerd@gnu.org>
3591
3592 * window.c (displayed_window_lines): Detect partially
3593 visible lines at the bottom correctly.
3594
d3a67486
SM
35952000-11-06 Stefan Monnier <monnier@cs.yale.edu>
3596
3597 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
3598 when ensuring we don't do visit in indirect buffer.
3599
ff8dd5d5
KH
36002000-11-06 Kenichi Handa <handa@etl.go.jp>
3601
3602 * composite.h (compose_chars_in_text): Add prototype.
3603
3604 * composite.c (Vcomposition_function_table): New variable.
3605 (Qcomposition_function_table): New variable.
3606 (run_composition_function): Call
3607 Vcompose_chars_after_function with three arguments.
3608 (compose_chars_in_text): New function.
3609 (syms_of_composite): Modified the doc-string of
3610 Vcompose_chars_after_function. Declare composition-function-table
3611 as a lisp variable, and initialize it.
3612
3613 * xfns.c (x_encode_text): Suppress producing escape sequences for
3614 composition.
3615
3616 * xselect.c: Include composite.h.
3617 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
3618
d1145f85
AI
36192000-11-05 Andrew Innes <andrewi@gnu.org>
3620
3621 * w32term.c (x_produce_glyphs): Fix typo in enum name.
3622
3623 * sysdep.c (read_input_waiting): Remove extraneous argument to
3624 read_socket_hook.
3625
3626 * w32fns.c (Fx_server_version): Include w32_build_number in the
3627 return list.
3628
3629 * w32heap.c (w32_build_number): New variable.
3630 (cache_system_info): Set it.
3631
3632 * w32heap.h (w32_build_number): Add extern.
3633
3634 * emacs.c (syms_of_emacs): Update docstring for
3635 system-configuration, to reflect the actual usage on MS-Windows.
3636
e85ee976
GM
36372000-10-31 Gerd Moellmann <gerd@gnu.org>
3638
26dcb81b
GM
3639 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
3640 process idle timers while waiting for another event.
3641
0a894bad
GM
3642 * dispnew.c (update_frame_line): Handle case where spaces in
3643 the default face are colored.
3644
e85ee976
GM
3645 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
3646 window height hasn't changed.
3647
01b220b6
JR
36482000-10-31 Jason Rumney <jasonr@gnu.org>
3649
3650 * w32term.c (x_produce_glyphs): Handle composite characters.
3651 (x_draw_glyph_string_foreground)
3652 (x_draw_composite_glyph_string_foreground): Restore old font.
3653
4e6b7204
MB
36542000-10-31 Miles Bader <miles@lsi.nec.co.jp>
3655
3656 * minibuf.c (read_minibuf): Reset the undo history just before
3657 starting the recursive-edit.
3658
d4358b37
GM
36592000-10-30 Gerd Moellmann <gerd@gnu.org>
3660
563f68f1
GM
3661 * xfaces.c (menu_face_change_count): New variable.
3662 (Finternal_set_lisp_face_attribute): Increment it for changes
3663 of the `menu' face.
3664 (realize_basic_faces): Reflect changes in the `menu' faces
3665 in menu bars.
3666
82e274d1
GM
3667 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
3668 dy obtained from the iterator's y-position after moving from
3669 scroll_margin_pos to PT; see comment there.
3670
0dbf9fd2
GM
3671 * xdisp.c (safe_eval_handler): Call add_to_log.
3672
906b3b14
GM
3673 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
3674 is not a symbol or string.
3675
d4358b37
GM
3676 * xdisp.c (echo_area_display): Don't perform a display update from
3677 inside redisplay. The update will happen anyway at the end of
3678 redisplay, and it can confuse redisplay (GC messages while
3679 redisplaying, for instance.)
3680
70c825df
SM
36812000-10-30 Stefan Monnier <monnier@cs.yale.edu>
3682
cf9b4b0b
SM
3683 * xrdb.c (x_load_resources): Use the class name in the defaults.
3684
70c825df
SM
3685 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
3686 (regex_compile): Catch bogus \(\1\).
3687
a1d34b1e
GM
36882000-10-30 Gerd Moellmann <gerd@gnu.org>
3689
cae71efe
GM
3690 * xterm.c (x_alloc_nearest_color): Fix last change to compare
3691 RGB values.
3692
35efe0a1
GM
3693 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
3694 we have a color cache, check that the cached color equals the
3695 allocated color. If not, clear the color cache.
3696
1d3baf74
GM
3697 * window.c (displayed_window_lines): Change buffers if necessary.
3698 Fix computation of displayed lines.
3699
a1d34b1e
GM
3700 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
3701 update_menu_bindings to DEFVAR_BOOL.
3702
70737ea9
KH
37032000-10-30 Kenichi Handa <handa@etl.go.jp>
3704
70c825df 3705 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 3706
fa0cb51d
KH
3707 * puresize.h (BASE_PURESIZE): Increase to 680000.
3708
70737ea9
KH
3709 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
3710
0e4c08e8
JR
37112000-10-29 Jason Rumney <jasonr@gnu.org>
3712
3713 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
3714
3715 * w32term.c (w32_bdf_per_char_metric): Negate descent.
3716 (w32_cache_char_metrics): Handle possibility that 'x' does not
3717 exist in a BDF font.
3718 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
3719
3720 * w32bdf.h (bdffont): Add nchars.
3721
3722 * w32bdf.c (set_bdf_font_info): Set it.
3723 (w32_BDF_TextOut): Swap byte order of double byte characters.
3724 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
3725
45b84006
EZ
37262000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
3727
3728 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
3729 don't override the colors in frame's param_alist, unless they are
3730 unspecified.
3731
3732 * term.c (reassert_line_highlight): If inverse_video is non-zero,
3733 reverse the effect of the highlight flag.
3734
caf9deee
KR
37352000-10-27 Ken Raeburn <raeburn@gnu.org>
3736
3737 * window.h (Fwindow_live_p): Declare.
3738
ae0b9b46
KR
3739 * undo.c (record_delete): Check that last_undo_buffer is really a
3740 buffer before applying XBUFFER to it.
3741
3742 * keymap.c (where_is_internal): Pass lisp object, not integer, to
3743 Faref.
3744
02067692
SM
37452000-10-27 Stefan Monnier <monnier@cs.yale.edu>
3746
3747 * lisp.h (KEYMAPP): New macro.
3748 (get_keymap): Remove.
3749 (get_keymap_1): Rename get_keymap.
3750
3751 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
3752
3753 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
3754
3755 * xmenu.c (single_submenu): Use KEYMAPP.
3756 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
3757 Use KEYMAPP rather than Fkeymapp.
3758
3759 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
3760
3761 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
3762 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
3763 Use KEYMAPP rather than Fkeymapp.
3764 (single_submenu): Use KEYMAPP.
3765 (w32_menu_show, w32_dialog_show): Use TRUE.
3766
3767 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
3768
3769 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
3770 (Fkeymapp): Use KEYMAPP.
3771 (get_keymap): Rename from get_keymap_1. Remove old def.
3772 Return t when autoload=0 and error=0 and the keymap needs autoloading.
3773 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
3774 (Fminor_mode_key_binding): Don't raise an error if the binding
3775 is not a keymap.
3776 (Fuse_global_map, Fuse_local_map): Allow autoloading.
3777 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
3778
3779 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
3780 Allow Vspecial_event_map to be autoloaded.
3781 (menu_bar_items): Fetch the keymap rather than using keymapp.
3782 (menu_bar_one_keymap): No need to follow func-indirect any more.
3783 (parse_menu_item): get_keymap_1 -> get_keymap.
3784 (tool_bar_items): Fetch the keymap rather than using keymapp.
3785 (read_key_sequence): Use KEYMAPP.
3786
3787 * intervals.c (get_local_map): Use get_keymap rather than following
3788 function-indirections explicitly.
3789
3790 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
3791
f9d80af3
JR
37922000-10-27 Jason Rumney <jasonr@gnu.org>
3793
3794 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
3795 point, as Windows has oversized fonts.
3796
3797 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
3798
a3ba27da
GM
37992000-10-27 Gerd Moellmann <gerd@gnu.org>
3800
3801 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
3802 (freehook, reallochook): Handle null pointer arguments.
3803 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
3804
aa3b80cc
SM
38052000-10-27 Stefan Monnier <monnier@cs.yale.edu>
3806
3807 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
3808 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
3809 Giving in to popular pressure to shut up the compiler with casts.
3810
e24e84cc
GM
38112000-10-27 Gerd Moellmann <gerd@gnu.org>
3812
3813 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
3814 signed value, and use a default value computed from the font's
3815 maximum descent.
3816
05ea7ef2
MB
38172000-10-27 Miles Bader <miles@lsi.nec.co.jp>
3818
3819 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
3820 that specify a negative underline position can still use underlines.
3821
3822 * window.c (Fpos_visible_in_window_p): Make POS default to
3823 WINDOW's point, not the current buffer's point.
3824
0b95284b
DL
38252000-10-26 Dave Love <fx@gnu.org>
3826
3827 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
3828 when it's necessary.
3829
6c5b90af
GM
38302000-10-26 Gerd Moellmann <gerd@gnu.org>
3831
8b6d9dc9
GM
3832 * window.c (size_window): Compute size difference from sum of old
3833 child window sizes instead of from parent's size.
3834
6bc92b2e
GM
3835 * xdisp.c (pos_visible_p): Change current buffer if necessary.
3836 Handle obscured lines at the top of the window.
3837
3838 * frame.c (Fdelete_frame): Doc fix. Move running the hook
3839 down after the last error condition check.
3840
6c5b90af
GM
3841 * frame.c (Fdelete_frame): Run delete-frame-hook.
3842
42f92d4d
KH
38432000-10-26 Kenichi Handa <handa@etl.go.jp>
3844
3845 * coding.c (decode_coding): Fix previous change (check also
3846 CODING_MODE_LAST_BLOCK).
3847
d97151cb
SM
38482000-10-25 Stefan Monnier <monnier@cs.yale.edu>
3849
e7efc503
SM
3850 * regex.c: More `unsigned char' -> `re_char' changes.
3851 Also change several `int' into `re_wchar_t'.
3852 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
3853 (PUSH_FAILURE_POINTER): Don't cast any more.
3854 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
3855 We want GCC to complain, since this piece of code makes
3856 re_match non-reentrant, which *should* be fixed.
3857 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
3858 (EXTEND_BUFFER): Use RETALLOC.
3859 (SET_LIST_BIT): Don't cast.
3860 (re_wchar_t): New type.
3861 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
3862 that those two functions will always properly return.
3863 (IMMEDIATE_QUIT_CHECK): Cast to void.
3864 (analyse_first): Use recursion rather than an explicit stack.
3865 (re_compile_fastmap): Can't fail anymore.
3866 (re_search_2): Don't check re_compile_fastmap for failure.
3867 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
3868 Now also sets the new value (passed in a new argument).
3869 (re_match_2_internal): Use it.
3870 Also, use a new var `reg' of type size_t when looping through regs
3871 rather than reuse the inappropriate `mcnt'.
3872
d97151cb
SM
3873 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
3874 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
3875 (where_is_internal): Renamed from Fwhere_is_internal.
3876 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
3877 (Fwhere_is_internal): New function wrapping where_is_internal.
3878 (where_is_internal_1): Handle the case where we're filling the cache.
3879 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
3880
d5789b65
MB
38812000-10-25 Miles Bader <miles@gnu.org>
3882
3883 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
3884
4ecda532
GM
38852000-10-25 Gerd Moellmann <gerd@gnu.org>
3886
3887 * window.c (pos_fully_visible_p): Removed.
3888 (Fpos_visible_in_window_p): Use pos_visible_p to determine
3889 if position is visible and/or fully visible.
3890
3891 * lisp.h (pos_visible_p): Add prototype.
3892
3893 * xdisp.c (pos_visible_p): New function.
3894
68c3a137
KH
38952000-10-25 Kenichi Handa <handa@etl.go.jp>
3896
3897 * process.c (send_process): If OBJECT is t, it means that the data
3898 is from C string, but we should encode it. Before calling
3899 setup_raw_text_coding_system, be sure to flush out data by the
3900 previous coding system.
3901
7ae1c032
MB
39022000-10-25 Miles Bader <miles@lsi.nec.co.jp>
3903
ff4dcd4b
MB
3904 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
3905 assignment of startpos to prev when startpos == pos.
3906
7ae1c032
MB
3907 * editfns.c (find_field): Set the field stickiness correctly from
3908 overlay fields. Use renamed `text_property_stickiness'.
3909 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 3910 Only check text properties, not overlays.
7ae1c032
MB
3911 * textprop.c (get_char_property_and_overlay): New function.
3912 (Fget_char_property): Use it.
3913 * intervals.h (get_char_property_and_overlay): Add declaration.
3914
49801145
SM
39152000-10-25 Stefan Monnier <monnier@cs.yale.edu>
3916
3917 * keymap.c: Use AREF, ASET and ASIZE macros.
3918 (Fmake_sparse_keymap): Docstring fix.
3919 (synkey): Remove.
3920 (shadow_lookup): Move up.
3921 Handle the case where lookup-key returns an integer.
3922 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
3923 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
3924 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
3925 Simplify/rewrite the keymap-finding code.
3926 Add check for command shadowing, using shadow_lookup.
3927
39e776cd
SM
39282000-10-24 Stefan Monnier <monnier@cs.yale.edu>
3929
3930 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
3931 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
3932 a symbol.
3933
2488aba5
AI
39342000-10-24 Andrew Innes <andrewi@gnu.org>
3935
3936 * dired.c (directory_files_internal_unwind): New function.
3937 (directory_files_internal): Use it to ensure closedir is called
3938 even if expand-file-name or file-attributes throw, eg. because of
3939 a user interrupt. Also enable immediate_quit while calling
3940 re_search, so that matching can be interrupted as well.
3941
b94fdf61
AI
39422000-10-24 Andrew Innes <andrewi@gnu.org>
3943
3944 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
3945 NT-Emacs only.
3946 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
3947 so that re_search functions only quit when callers expect them to.
3948
39492000-10-24 Kenichi Handa <handa@etl.go.jp>
3950
3951 * regex.c (regex_compile): Change the way of handling a range from
3952 a char less than 256 to a char not less than 256.
3953
1946f901
GM
39542000-10-24 Gerd Moellmann <gerd@gnu.org>
3955
7ae2f10f
GM
3956 * window.c (size_window): Prevent setting window's width or
3957 height to a negative value (esp. with XSETFASTINT).
3958
5dcab13e
GM
3959 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
3960 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
3961 (protect_malloc_state) [GC_MALLOC_CHECK &&
3962 GC_PROTECT_MALLOC_STATE]: New function.
3963 (PROTECT_MALLOC_STATE): New macro.
3964 (__malloc_initialize, morecore, _malloc_internal)
3965 (_free_internal) _realloc_internal): Use it to make _heapinfo
3966 read-only outside of gmalloc.
3967
63e1b552
GM
3968 * keymap.c: Update copyright.
3969
1946f901
GM
3970 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
3971 a symbol.
3972
4fa09beb
GM
39732000-10-24 Colin Walters <walters@cis.ohio-state.edu>
3974
3975 * filelock.c (unlock_all_files): Use unlock_file to expand each
3976 buffer's file_truename before trying remove its lock file.
3977
23afac01
EZ
39782000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
3979
3980 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
3981 or CRLF, decode EOLs.
3982
04448b95
KH
39832000-10-24 Kenichi Handa <handa@etl.go.jp>
3984
3985 * window.c (Fdisplay_buffer): Fix doc.
3986
3090a5a5
JR
39872000-10-23 Jason Rumney <jasonr@gnu.org>
3988
3989 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
3990 ASCII font of default fontset on Windows.
3991
3992 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
3993 xterm.c comment below).
3994
3995 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
3996
a83fee2c
GM
39972000-10-23 Gerd Moellmann <gerd@gnu.org>
3998
3999 * xterm.c (x_connection_closed): Reset handling_signal.
4000
4001 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing
4002 null.
4003
6ffdb539
MB
40042000-10-23 Miles Bader <miles@gnu.org>
4005
4006 * window.c (window_scroll_pixel_based, window_scroll_line_based):
4007 Pass nil for FULLY argument to Fpos_visible_in_window_p to
4008 maintain old behavior.
4009 * minibuf.c (Fminibuffer_complete): Likewise.
4010
7f1c969b
MB
40112000-10-23 Miles Bader <miles@lsi.nec.co.jp>
4012
4013 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
4014 that when a font can't be exactly centered, it errs up rather than
4015 down.
4016
23afac01 40172000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd
SZ
4018
4019 * fns.c (Fbase64_decode_string): The decoded result should be
4020 unibyte.
4021
1a578e9b
AC
40222000-10-23 Andrew Choi <akochoi@i-cable.com>
4023
4024 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
4025
4026 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 4027 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
4028
4029 * emacs.c (main) [macintosh]: Call syms_of_textprop,
4030 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
4031 syms_of_search, x_term_init, and init_keyboard before calling
4032 init_window_once. Also, call syms_of_xmenu.
4033
4034 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
4035 default fontset to Monaco.
4036
4037 * frame.c [macintosh]: Include macterm.h. Remove declarations of
4038 NewMacWindow and DisposeMacWindow.
4039 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
4040 instead of calling NewMacWindow and setting fields of
4041 f->output_data.mac directly. Call init_frame_faces.
4042 (Fdelete_frame) [macintosh]: Remove unused code.
4043 (Fmodify_frame_parameters) [macintosh]: Call
4044 x_set_frame_parameters instead of mac_set_frame_parameters.
4045
4046 * frame.h [macintosh]: Define menu_bar_lines field in struct
4047 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
4048
4049 * keyboard.c [macintosh]: Include macterm.h.
4050 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
4051 and menu_bar_activate_event type events as for X and NT.
4052 (make_lispy_event) [macintosh]: Construct lisp events of type
4053 MENU_BAR_EVENT as for X and NT.
4054
4055 * sysdep.c [macintosh]: Remove declaration for sys_signal.
4056 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
4057 (sys_subshell) [macintosh]: Remove definition entirely.
4058 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
4059 Vwindow_system_version here. Remove initialization of
4060 Vx_bitmap_file_path.
4061 (read_input_waiting): Correct the number of parameters passed to
4062 read_socket_hook.
4063 Move all Macintosh functions to mac/mac.c.
4064
4065 * term.c [macintosh]: Include macterm.h.
4066
4067 * window.c [macintosh]: Include macterm.h.
4068
4069 * xdisp.c [macintosh]: Include macterm.h. Declare
4070 set_frame_menubar and pending_menu_activation.
4071 (echo_area_display) [macintosh]: Do not return if terminal frame
4072 is the selected frame.
4073 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
4074 Allow only the selected frame to set menu bar.
4075 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
4076 calling FRAME_EXTERNAL_MENU_BAR (f).
4077 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
4078
4079 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
4080 and check_x. Declare XCreateGC. Define x_create_gc and
4081 x_free_gc. Initialize font_sort_order.
4082 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
4083 but call x_list_fonts instead of w32_list_fonts.
4084 (Finternal_face_x_get_resource) [macintosh]: Do not call
4085 display_x_get_resource.
4086 (prepare_face_for_display) [macintosh]: Set xgcv.font.
4087 (realize_x_face) [macintosh]: Load the font if it is specified in
4088 ATTRS.
4089 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed
4090 to Qt.
4091
1ffbabe3
SM
40922000-10-22 Stefan Monnier <monnier@cs.yale.edu>
4093
4094 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
4095 is nil: since we go to the end of submap anyway, we'd end up
4096 setting nil to nil.
4097 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
4098 doesn't obey autoload.
4099
bed43f1d
EZ
41002000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
4101
1ffbabe3 4102 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 4103
ea4233a7
JR
41042000-10-21 Jason Rumney <jasonr@gnu.org>
4105
4106 * w32term.c (w32_cache_char_metrics): Double check that font is
4107 really fixed pitch before trusting tmPitchAndFamily.
4108
f3d3c491
AI
41092000-10-21 Andrew Innes <andrewi@gnu.org>
4110
4111 * w32gui.h (w32_char_font_type): Move enum from w32term.c
4112
4113 * w32term.h: Extern decl for w32_cache_char_metrics.
4114
4115 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
4116
4117 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
4118 (w32_unload_font): Free per_char array if present.
4119
4120 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
4121 cached information in emulated XFontStruct to handle common cases
4122 quickly. Do not allocate XCharStruct for return.
4123 (w32_native_per_char_metric): New function.
4124 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
4125 allocating one.
4126 (x_produce_glyphs): Don't get an HDC. Change calls to
4127 w32_per_char_metric to match arg change above. Remove calls to
4128 free results.
4129 (w32_get_glyph_overhangs): Ditto.
4130 (w32_cache_char_metrics): New function.
4131
4132 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
4133 ($(BLD)/casefiddle.$(O)): Remove compile command.
4134 ($(BLD)/gmalloc.$(O)): Remove compile command.
4135 ($(BLD)/dispnew.obj):
4136 ($(BLD)/keyboard.obj):
4137 ($(BLD)/w32inevt.obj):
4138 ($(BLD)/w32bdf.obj):
4139 ($(BLD)/alloc.obj):
4140 ($(BLD)/buffer.obj):
4141 ($(BLD)/editfns.obj):
4142 ($(BLD)/emacs.obj):
4143 ($(BLD)/fileio.obj):
4144 ($(BLD)/fns.obj):
4145 ($(BLD)/indent.obj):
4146 ($(BLD)/insdel.obj):
4147 ($(BLD)/intervals.obj):
4148 ($(BLD)/minibuf.obj):
4149 ($(BLD)/print.obj):
4150 ($(BLD)/scroll.obj):
4151 ($(BLD)/sysdep.obj):
4152 ($(BLD)/textprop.obj):
4153 ($(BLD)/widget.obj):
4154 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
4155 ($(BLD)/term.obj): Add dependency on dispextern.h.
4156
4157 * makefile.nt ($(BLD)\dispnew.obj):
4158 ($(BLD)\keyboard.obj):
4159 ($(BLD)\w32inevt.obj):
4160 ($(BLD)\w32bdf.obj):
4161 ($(BLD)\alloc.obj):
4162 ($(BLD)\buffer.obj):
4163 ($(BLD)\editfns.obj):
4164 ($(BLD)\emacs.obj):
4165 ($(BLD)\fileio.obj):
4166 ($(BLD)\fns.obj):
4167 ($(BLD)\indent.obj):
4168 ($(BLD)\insdel.obj):
4169 ($(BLD)\intervals.obj):
4170 ($(BLD)\minibuf.obj):
4171 ($(BLD)\print.obj):
4172 ($(BLD)\scroll.obj):
4173 ($(BLD)\sysdep.obj):
4174 ($(BLD)\textprop.obj):
4175 ($(BLD)\widget.obj):
4176 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
4177 ($(BLD)\term.obj): Add dependency on dispextern.h
4178
18ad4821
EZ
41792000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
4180
4181 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
4182 with an additional argument of Qt.
4183
de54681a
MB
41842000-10-21 Miles Bader <miles@gnu.org>
4185
4186 * window.c (pos_fully_visible_in_window_p): New function.
4187 (Fpos_visible_in_window_p): Add FULLY argument.
4188 Use pos_fully_visible_in_window_p.
4189 (window_scroll_pixel_based, window_scroll_line_based): Update
4190 calls to Fpos_visible_in_window_p.
4191 * lisp.h (Fpos_visible_in_window_p): Update prototype
4192
13c844fb
GM
41932000-10-20 Gerd Moellmann <gerd@gnu.org>
4194
4195 * alloc.c (toplevel): Conditionalize compilation of mem_*
4196 functions differently.
4197
d9506268
JR
41982000-10-20 Jason Rumney <jasonr@gnu.org>
4199
4200 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
4201 mem_init where it used to be. mem_z etc not defined otherwise.
4202
8094989b
GM
42032000-10-20 Gerd Moellmann <gerd@gnu.org>
4204
4205 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
4206 GC_MALLOC_CHECK.
4207 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
4208 structure definition and related variabled to the top of the file.
4209 Include this code when GC_MALLOC_CHECK is defined.
4210 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
4211 register/unregister allocated region.
4212 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
4213 which isn't allocated.
4214 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
4215 something which is already in use.
4216 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
4217 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
4218 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
4219 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
4220
4221 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
4222 _malloc_internal instead of malloc.
4223 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
4224 of free.
4225
ea456eb4
AI
42262000-10-20 Andrew Innes <andrewi@gnu.org>
4227
4228 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
4229 Windows.
4230 (my_strftime) <macro>: Don't use macro arg list when redefining as
4231 _strftime_copytm.
4232 (my_strftime) <function>: Supply 0 as ut argument.
4233
e64c3a75
JR
42342000-10-19 Jason Rumney <jasonr@altavista.net>
4235
4236 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
4237 including dispextern.h, as it stops faces from working.
4238
4239 * w32fns.c (Fx_create_frame): Don't bother calling
4240 face-set-after-frame-default since the caller does it for us
4241 anyway. Clean up calls to x_get_arg to be consistent with X.
4242
4243 * w32term.c (x_produce_glyphs): Handle
4244 unibyte_display_via_language_environment correctly.
4245 (w32_draw_box_rect): Fix the calculation of width and height.
4246
4247 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
4248 as it has stopped working.
4249 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
4250 menu-bar.
4251
17401c97
GM
42522000-10-19 Gerd Moellmann <gerd@gnu.org>
4253
4254 * eval.c (skip_debugger): Prevent a compiler warning.
4255 (Fcondition_case): Likewise.
4256 (Fbacktrace_frame): Use a null interactive spec.
4257
773272d8
KH
42582000-10-19 Kenichi Handa <handa@etl.go.jp>
4259
4260 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
4261
a42943e9
GM
42622000-10-18 Gerd Moellmann <gerd@gnu.org>
4263
e50517d9
GM
4264 * strftime.c: Sync with glibc, file version 1.78.
4265 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
4266 should no longer be used according to ISO 8601.
4267
9035a35a
GM
4268 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
4269 no map for meta_prefix_char, don't try to use it as a keymap.
4270 Instead, if T_OK is non-zero, look up a default binding, if any,
4271 otherwise, if T_OK is zero, return nil.
4272
a42943e9
GM
4273 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
4274 (x_to_xcolors, png_load): Use x_query_color.
4275
4276 * xterm.c (x_color_cells, x_query_colors, x_query_color): New
4277 functions.
4278 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
4279 which can be slow.
4280 (x_copy_color, x_alloc_lighter_color): Likewise.
4281
4282 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
4283 (x_query_color, x_query_colors): Add prototype.
4284
4285 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
4286 check_string_bytes only if not noninteractive, increase count to 50.
4287
00de2987
MB
42882000-10-18 Miles Bader <miles@lsi.nec.co.jp>
4289
4290 * insdel.c (adjust_markers_for_delete): Handle before-insertion
4291 markers correctly.
4292
54918e2b
GM
42932000-10-17 Gerd Moellmann <gerd@gnu.org>
4294
1f0b3fd2
GM
4295 * alloc.c (pure_bytes_used): Renamed from pureptr.
4296 (ALIGN): New macro.
4297 (pure_alloc): New function.
4298 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
4299 Use it.
4300 (Fpurecopy): Use PURE_POINTER_P.
4301
68c5d1db
GM
4302 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
4303 PT has moved backward.
4304
9a038881
GM
4305 * xdisp.c (cursor_row_p): Take continued lines into account.
4306
361b097f
GM
4307 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
4308 string's size_byte.
4309 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
4310 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
4311 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
4312 string allocated.
4313
54918e2b
GM
4314 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
4315 of selective display off while searching for the next line start.
4316
03ed0806
KH
43172000-10-17 Kenichi Handa <handa@etl.go.jp>
4318
4319 * Makefile.in (term.o): Depend on dispextern.h.
4320
7e05cdaf
SM
43212000-10-16 Stefan Monnier <monnier@cs.yale.edu>
4322
4323 * keymap.c (keymap_memberp): Ensure that nil is not a member.
4324
a6801fd1
GM
43252000-10-16 Gerd Moellmann <gerd@gnu.org>
4326
483de32b
GM
4327 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
4328 the iterator at the beginning, so that they can be set later on,
4329 for instance in reseat_at_next_visible_line_start, without being
4330 overwritten.
4331
a6801fd1
GM
4332 * xfns.c (pbm_format): Add :foreground and :background keywords.
4333 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
483de32b 4334 (xbm_load): Recognize foreground and background color
a6801fd1
GM
4335 specifications.
4336
dbf1fcc1
EZ
43372000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
4338
4339 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
4340
4341 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern
4342 declaration.
4343
4344 * msdos.c (IT_set_face): Compare highlighted face with the default
4345 face, and invert colors if these faces' colors are identical.
4346 (Fmsdos_remember_default_colors): Don't swap foreground and
4347 background colors in initial_colors[].
4348 (IT_set_frame_parameters): Don't swap frame's foreground and
4349 background pixels. If ALIST includes "(reverse . t)", swap
4350 foreground-color and background-color properties in frame's
4351 param_alist. If the original frame's param_alist doesn't specify
4352 the colors, store unspecified-fg and unspecified-bg, reversed if
4353 required.
4354
4355 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
4356 the colors are unspecified and reversed, reverse fore- and back-
4357 ground in the returned value.
4358 (Fframe_parameter): Ditto.
4359
b41fe2c3
GM
43602000-10-16 Gerd Moellmann <gerd@gnu.org>
4361
3a6b59d9
GM
4362 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
4363 get_last_unchanged_at_beg_row.
4364 (find_first_unchanged_at_end_row): Renamed from
4365 get_first_unchanged_at_end_row.
4366 (find_first_unchanged_at_end_row): Convert assertions to
4367 unconditional tests which abort. When looking for a row in
4368 unchanged text, don't go further back than first_text_row.
4369
b41fe2c3
GM
4370 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
4371 Don't add in the last line's height when deciding if the new
4372 position is below the scroll margin.
9d1af64f 4373
b41fe2c3 43742000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
4375
4376 * editfns.c (Fconstrain_to_field): Check carefully for field
4377 boundaries if either OLD_POS or NEW_POS has a non-nil field
4378 property, even if they're the same.
4379
c412cb7b
KH
43802000-10-16 Kenichi Handa <handa@etl.go.jp>
4381
4382 * xterm.c (x_draw_box_rect): Fix the calculation of width and
4383 height for XFillRectangle.
4384
5586f3eb
SM
43852000-10-15 Stefan Monnier <monnier@cs.yale.edu>
4386
4387 * syntax.c (Fstring_to_syntax): New function extracted from
4388 Fmodify_syntax_entry.
4389 (Fmodify_syntax_entry): Use it and document the ! and | fences.
4390 (skip_chars, Fforward_comment): Remove unused variables.
4391 (syms_of_syntax): Add defsubr for string-to-syntax.
4392 (describe_syntax): Add code for comment and string fences.
4393
db785038
SM
43942000-10-14 Stefan Monnier <monnier@cs.yale.edu>
4395
4396 * keymap.c (access_keymap): Add AUTOLOAD parameter.
4397 Do the meta->esc mapping. Call get_keyelt before returning.
4398 Start scanning from the second element (the first is always `keymap')
4399 to make it easier to detect when we reach a parent map.
4400 Handle the case of inheriting from a symbol whose function is a map.
4401 (Fkeymap_parent): Also handle the `inherit from symbol' case.
4402 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
4403 (get_keyelt, Flookup_key): Update call to access_keymap.
4404 Remove the meta->esc mappings.
4405 (define_as_prefix): Delete old disabled code.
4406 (menu_item_p): New function.
4407 (where_is_internal_1): Skip over the few remaining menu items.
4408 * lisp.h (access_keymap): Update prototype.
4409 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
4410 Update call to access_keymap.
4411 (follow_key, read_key_sequence): Update calls to access_keymap.
4412 Remove the meta->esc mappings.
4413
cafafe0b
GM
44142000-10-13 Gerd Moellmann <gerd@gnu.org>
4415
a2e2a7f6
GM
4416 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
4417 with additional argument.
4418
cafafe0b
GM
4419 * xdisp.c (cursor_row_p): New function.
4420 (try_cursor_movement, display_line): Use it.
4421
4422 * xdisp.c (append_space): Also save/restore iterator's current
4423 character and its length.
4424
4425 * xdisp.c (init_from_display_pos): Add an assertion.
4426 (handle_stop): Don't set iterator's add_overlay_start.
4427 (handle_invisible_prop): Likewise.
4428 (load_overlay_strings): If text under an overlay is invisible,
4429 take both before- and after-strings into account when the iterator
4430 is positioned either at the start or at the end of the overlay.
4431 (forward_to_next_line_start): Rewritten.
4432 (reseat_at_next_visible_line_start): Rewritten.
4433 (set_iterator_to_next): Add parameter RESEAT_P.
4434
4435 * dispextern.h (struct it): Remove member add_overlay_start.
4436 (set_iterator_to_next): Change prototype.
4437
c744452b
KH
44382000-10-13 Kenichi Handa <handa@etl.go.jp>
4439
4440 * coding.c (code_convert_region): Be sure to initialize
4441 coding->category_idx.
e4a3f4e1
KH
4442 (decode_coding_string): Set coding->src_multibyte and
4443 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
4444 (encode_coding_string): Set coding->src_multibyte and
4445 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 4446
321fd26f
SM
44472000-10-12 Stefan Monnier <monnier@cs.yale.edu>
4448
4449 * xfns.c (Fx_create_frame): Don't bother calling
4450 face-set-after-frame-default since the caller does it for us anyway.
4451
76832439
EZ
44522000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
4453
4454 * window.c (coordinates_in_window): Fix detection of vertical line
4455 on character terminals.
4456
2483cf58
GM
44572000-10-12 Gerd Moellmann <gerd@gnu.org>
4458
4459 * editfns.c (save_excursion_save): Additionally record the
4460 selected window.
4461 (save_excursion_restore): If buffer was visible in a window, and a
4462 different window was selected, and the old selected window is
4463 still live, restore point in that window.
4464
eb991b25
KH
44652000-10-12 Kenichi Handa <handa@etl.go.jp>
4466
8a0eba09
KH
4467 * xterm.c (x_produce_glyphs): Handle
4468 unibyte_display_via_language_environment correctly.
4469
20401fcc
KH
4470 * regex.c (regex_compile): Change the way of handling a range from
4471 unibyte char to multibyte char.
4472
4473 * syntax.c (skip_chars): Change the way of handling a range from
4474 unibyte char to multibyte char.
4475
eb991b25
KH
4476 * process.c (read_process_output): Cancel previous change.
4477
365dd325
EZ
44782000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
4479
c1b096cb
EZ
4480 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
4481
365dd325
EZ
4482 * charset.c (Ffind_charset_string): Doc fix.
4483 (Ffind_charset_region): Doc fix.
4484
eb483c2b
KH
44852000-10-11 Kenichi Handa <handa@mule.m17n.org>
4486
4487 * process.c (read_process_output): Fix previous change. Adjust
4488 multibyteness of text to insert in a buffer by
df3c11b9 4489 string_make_unibyte/multibyte instead of
eb483c2b
KH
4490 Fstring_as_unibyte/multibyte.
4491
b40bfb99
AS
44922000-10-10 Andreas Schwab <schwab@suse.de>
4493
4494 * alloc.c (mark_object): Remove all workarounds installed on
4495 1993-08-08.
4496
caff31d4
KH
44972000-10-10 Kenichi Handa <handa@etl.go.jp>
4498
4499 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before
4500 returning.
4501 (base64_encode_1): Make it work for a text of multibyte form.
4502 (Fbase64_decode_region): Allocate sufficient memory for multibyte
4503 case. Don't call str_to_multibyte because base64_decode_1
4504 produces correct multibyte form for eight-bit codes.
4505 (Fbase64_decode_string): Adjusted for the change of
4506 base64_decode_1.
4507 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
4508 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
4509 codes.
4510
4511 * charset.h (CHAR_STRING): Optimized for single byte characters.
4512
cba026ef
AS
45132000-10-09 Andreas Schwab <schwab@suse.de>
4514
4515 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
4516 -1 after socket is closed, to fall through to error processing.
4517
1e21fe48
EZ
45182000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
4519
4520 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 4521 variables. If ALIST includes foreground-color or
1e21fe48
EZ
4522 background-color, change also the colors of the default face for
4523 this frame.
4524
a640322e
EZ
45252000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
4526
4527 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
4528 them extern (they are defined on xfaces.c).
4529 (syms_of_msdos): Don't intern and don't staticpro
4530 Qbackground_color and Qforeground_color.
4531
a115794c
EZ
45322000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
4533
4534 * frame.c (Fframe_parameter): For non-windowed frames, if
4535 f->param_alist says foreground or background color is unspecified,
4536 call tty_color_name to return the color name computed from the
4537 frame's current colors.
4538
f5533b63
DL
45392000-10-06 Dave Love <fx@gnu.org>
4540
4541 * terminfo.c (ospeed): Don't declare.
4542
4543 * sysdep.c: Don't include string.h.
4544 (h_errno): Declare conditional also on TRY_AGAIN.
4545
4546 * charset.c (Ffind_charset_string): Doc fix.
4547
4548 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
4549 (Fbase64_decode_region, Fbase64_decode_string): More explicit
4550 error messages.
4551
2b06561a
DL
45522000-10-05 Dave Love <fx@gnu.org>
4553
4554 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
4555 position like menu-bar.
4556
ca839c85
GM
45572000-10-05 Gerd Moellmann <gerd@gnu.org>
4558
4559 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
4560
4561 * xdisp.c (handle_single_display_prop): Use safe_call1.
4562 (safe_call): Renamed from call_function.
4563 (safe_call1): New function.
4564 (handle_fontified_prop): Use safe_call1 instead of call1.
4565 (safe_eval): Renamed from eval_form.
4566 (safe_eval_handler): Renamed from eval_handler.
4567 (handle_single_display_prop, display_mode_element): Use safe_eval
4568 instead of eval_form.
4569
4570 * xfaces.c (merge_face_heights): Use safe_call instead of
4571 call_function.
4572
4573 * keyboard.c (show_help_echo): Use safe_call instead of
4574 call_function; use safe_eval instead of eval_form.
4575
4576 * lisp.h (safe_call): Renamed from call_function.
4577 (safe_eval): Renamed from eval_form.
4578 (safe_call1): Add prototype.
4579
a3489ece
MB
45802000-10-05 Miles Bader <miles@lsi.nec.co.jp>
4581
4582 * xfns.c (image_ascent): Rearrange ascent calculation for the
4583 has-a-font case.
4584
35810b6f
SM
45852000-10-04 Stefan Monnier <monnier@cs.yale.edu>
4586
4587 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
4588 (where_is_internal_1): Don't bother ignoring menu-items any more.
4589
3dc78168
GM
45902000-10-04 Gerd Moellmann <gerd@gnu.org>
4591
4592 * keyboard.c (update_menu_bindings): New variable.
4593 (parse_menu_item): Use AREF. If update_menu_bindings
4594 is 0, don't update menu bindings.
4595 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
4596
1efc2bb9
EZ
45972000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
4598
4599 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
4600 to `mark_object'.
4601
3f679f55
SM
46022000-10-02 Stefan Monnier <monnier@cs.yale.edu>
4603
4604 * syntax.c (forw_comment): Match nestedness of ender/starter.
4605 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
4606 (prev_char_comstart_first): Remove.
4607 (back_comment): Check two-char comment markers more carefully
4608 to better handle overlapping cases like *//* or /* */* */ ...
4609 Match nestedness of ender/starter.
4610
2021ab61
DL
46112000-10-02 Dave Love <fx@gnu.org>
4612
4613 * config.in (HAVE_GAI_STRERROR): Add undef.
4614
4615 * process.c (Fopen_network_stream): Use it.
4616
4617 * m/alpha.h (NO_REMAP): Don't define.
4618
64e6cc18
GM
46192000-10-02 Gerd Moellmann <gerd@gnu.org>
4620
4621 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
4622 return with a string converted to an integer or vice versa when
4623 Vmocklisp_arguments is t.
4624 (Fsignal): Likewise. The function can return for `quit'.
4625 (struct gcpro): Declare member `var' to point to a volatile
4626 Lisp_Object.
4627
4628 * eval.c (error): Prevent compiler warning.
4629
b1904cd9
SM
46302000-09-30 Stefan Monnier <monnier@cs.yale.edu>
4631
4632 * keymap.c (keymap_memberp): New function.
4633 (Fset_keymap_parent): Use it.
4634 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
4635 Use keymap_memberp to avoid creating cycles.
4636 (access_keymap): Use KEYMAPP.
4637
71c9ec51
GM
46382000-09-30 Gerd Moellmann <gerd@gnu.org>
4639
4640 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
4641 gai_strerror. Make sure xerrno is set if connect fails. Improve
4642 error recovery.
71c9ec51 4643
c70c6b58
JR
46442000-09-29 Jason Rumney <jasonr@gnu.org>
4645
4646 * w32term.c (w32_char_font_type, w32_encode_char)
4647 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
4648 (w32_bdf_per_char_metric): New function.
4649 (w32_per_char_metric): Use it.
4650 (x_draw_glyph_string_background): Always draw background for BDF
4651 glyphs.
4652
4653 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
4654 GDI object which is a scarce resource.
4655
4656 * w32bdf.c (search_file_line): Fix skipping of whitespace.
4657 (get_quoted_string): Fix limit on memchr search.
4658 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
4659 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
4660 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
4661 (get_cached_font_char, cache_char_offset): Use macro
4662 BDF_CODEPOINT_RANGE_COVER_P.
4663 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
4664 (clear_cached_bitmap_slots): New function.
4665 (GET_HEX_VALUE): G-Z, g-z are not hex.
4666 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
4667 (get_bitmap_with_cache): Use new cache implementation.
4668 (create_offscreen_bitmap): New function.
4669 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
4670
4671 * w32term.c (x_produce_glyphs): If the distance from the current
4672 position to the next tab stop is less than a canonical character
4673 width, use the tab stop after that.
4674 (x_draw_glyphs): Handle case START and END are out of bounds more
4675 carefully.
4676 (x_clear_mouse_face): Block/unblock input.
4677 (x_display_and_set_cursor): Don't show a hollow box cursor for
4678 buffers whose cursor_type is nil.
4679
fe01239f
GM
46802000-09-29 Gerd Moellmann <gerd@gnu.org>
4681
4682 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar
4683 disappears.
4684
4685 * dispextern.h (updating_frame): Declare extern.
4686
e7c52f1f
AS
46872000-09-29 Andreas Schwab <schwab@suse.de>
4688
4689 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
4690
de6e1f7c
GM
46912000-09-29 Gerd Moellmann <gerd@gnu.org>
4692
25126faa
GM
4693 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
4694 use its function definition.
4695 (tool_bar_items): Likewise.
4696
de6e1f7c
GM
4697 * lisp.h (fatal): Declare NO_RETURN.
4698
454ee39b
KH
46992000-09-29 Kenichi Handa <handa@etl.go.jp>
4700
4701 * keymap.c: Remove the line "#undef NULL".
4702
96301c5f
GM
47032000-09-28 Gerd Moellmann <gerd@gnu.org>
4704
4705 * xterm.c (x_make_frame_visible): Try harder to make the frame
4706 visible.
4707
efffeeb4
DL
47082000-09-28 Dave Love <fx@gnu.org>
4709
ecb8b666
DL
4710 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
4711
dc3cd20f
DL
4712 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
4713
4714 * .gdbinit (xreload): Note its need on GNU/Linux.
4715
efffeeb4
DL
4716 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
4717 r_alloc, r_alloc_free.
4718
8610d903
KH
47192000-09-28 Kenichi Handa <handa@etl.go.jp>
4720
4721 * syntax.c (skip_chars): Handle negation correctly.
4722
8901d1ac
GM
47232000-09-27 Gerd Moellmann <gerd@gnu.org>
4724
6f22f1ad
GM
4725 * xfaces.c (realize_default_face): Call set_lface_from_font_name
4726 with non-zero FORCE_P argument.
4727
8901d1ac
GM
4728 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
4729 Add assertions.
4730
4731 * xdisp.c (window_box_height): Add an assertion.
4732
4733 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
4734 tool-bar than is available.
4735 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
4736
36f1966f
DL
47372000-09-27 Dave Love <fx@gnu.org>
4738
efffeeb4 4739 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 4740
31d929e5
GM
47412000-09-26 Gerd Moellmann <gerd@gnu.org>
4742
c98863bf
GM
4743 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
4744 instead of BITS_PER_INT.
4745 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
4746 EMACS_UINT, respectively.
4747 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
4748
4749 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
4750
4751 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
4752
77072ab1
GM
4753 * window.c (freeze_window_starts): Construct last argument for
4754 foreach_window differently.
4755
4756 * xfns.c (x_decode_color): Don't return a Lisp_Object.
4757
4758 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
4759 EMACS_UINT instead of `int' and `unsigned int'.
4760 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
4761
4762 * frame.h (struct frame): Make the `nothing' member of union
4763 output_data an EMACS_INT.
4764
31d929e5
GM
4765 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug
4766 hunting.
4767 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
4768 size in the sdata structure.
4769 (SDATA_NBYTES, SDATA_DATA): New macros.
4770 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
4771 differently for the different layout of the sdata structure.
4772 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
4773 in sdata.
4774 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
4775 Check that size recorded in the string size and size recorded in
4776 the sdata structure agree.
4777
3e60b029
DL
47782000-09-25 Dave Love <fx@gnu.org>
4779
4780 * buffer.c: Include stdio.h.
4781
4782 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
4783
4784 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
4785
4786 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
4787 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as
4788 size_t.
4789 (__malloc_extra_blocks): Declare as __malloc_size_t.
4790
8ff16b4e
GM
47912000-09-25 Gerd Moellmann <gerd@gnu.org>
4792
755a2ccd
GM
4793 * alloc.c (mark_image): Use GC_NILP instead of NILP.
4794
d8b4516f
GM
4795 * keyboard.c (show_help_echo): Set help_echo_showing_p.
4796 (read_char): If help-echo is showing, preserve the echo area
4797 when redisplaying.
4798
4799 * xdisp.c (help_echo_showing_p): New variable.
4800 (set_message): Reset it to 0.
4801 (init_xdisp): Initialize help_echo_showing_p.
4802
4803 * dispextern.h (help_echo_showing_p): Declare extern.
4804
4805 * config.in: Fix typo in __GNUC_MINOR__.
4806
4807 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
4808
b11af2dd
GM
4809 * s/freebsd.h (POSIX_SIGNALS): Define.
4810
8ff16b4e
GM
4811 * xterm.c (x_clear_mouse_face): Block/unblock input.
4812
844eb643
DL
48132000-09-24 Dave Love <fx@gnu.org>
4814
4815 * fns.c (base64_encode_1): Fix last change.
4816
b30ab1b3
GM
48172000-09-22 Gerd Moellmann <gerd@gnu.org>
4818
4819 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
4820
4821 * xdisp.c (try_window_reusing_current_matrix): More fixes
4822 for the case window has a header-line.
4823
c6cbe5f0
DL
48242000-09-22 Dave Love <fx@gnu.org>
4825
4c7c1f3f
DL
4826 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
4827 a doc string.
4828
4829 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
4830
c6cbe5f0
DL
4831 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
4832
550a625e
GM
48332000-09-21 Gerd Moellmann <gerd@gnu.org>
4834
4c7c1f3f 4835 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
4836 for GCC >= 2.5.
4837
4838 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error): Declare
4839 NO_RETURN.
4840
80d26f99
GM
4841 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
4842 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
4843 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
4844 warnings.
4845
4846 * marker.c (byte_char_debug_check): Return void.
4847
623a0aae
GM
4848 * xfns.c (Fx_create_frame): Set default frame parameter value
4849 for tool-bar-lines to 1.
4850
4851 * dispnew.c (scrolling_window): Compare y-positions of rows
4852 equal at the start. Some simplification.
4853
4854 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
4855 reused rows' y-position in the case window has a header-line, and
4856 new window start is greater than old window start.
4857
42ac0ae5
GM
4858 * process.c (process_sent_to): New variable.
4859 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
4860 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
4861 Declare more parameters volatile.
4862
550a625e
GM
4863 * lread.c (Vrecursive_load_depth_limit): New variable.
4864 (Fload): Check recursive loads whose recursion depth exceeds
4865 Vrecursive_load_depth_limit.
4866 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
4867
8320414c
GM
48682000-09-20 Gerd Moellmann <gerd@gnu.org>
4869
f46c275e
GM
4870 * fileio.c (Fread_file_name): Doc fix.
4871
4872 * editfns.c (Fmessage_or_box): Doc fix.
4873
4874 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
4875
b7e11c5b
GM
4876 * xfns.c (xbm_scan): Allow C-style comments.
4877
8320414c
GM
4878 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
4879 symbols are specified, add color translations to the cache.
4880 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New
4881 functions.
4882 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
4883 xpm_cache_color.
4884 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
4885 structures to xpm_init_color_cache.
4886
da1608d9
GM
48872000-09-19 Gerd Moellmann <gerd@gnu.org>
4888
4889 * dispnew.c (update_window_line): Make sure to always draw
4890 mode-lines.
4891
6badfa25
AI
48922000-09-19 Andrew Innes <andrewi@gnu.org>
4893
4894 * makefile.nt (bootstrap-emacs): Don't change directory.
4895
3a5f42bb
KH
48962000-09-19 Kenichi Handa <handa@etl.go.jp>
4897
1b7649bd
KH
4898 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
4899
3a5f42bb
KH
4900 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
4901 If output buffer is too small, signal an appropriated error.
4902
9f83cf0b
DL
49032000-09-18 Dave Love <fx@gnu.org>
4904
4905 * keyboard.c (menu_bar_items, tool_bar_items)
4906 (current_active_maps): Remove redundant get_local_map call.
4907
28c7826c
GM
49082000-09-18 Gerd Moellmann <gerd@gnu.org>
4909
5cefa566
GM
4910 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
4911 cursor for buffers whose cursor_type is nil.
4912
6fed3546
GM
4913 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
4914 a feature to implement that is already implemented.
4915 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
4916 warnings.
4917
4918 * xfns.c (x_clear_image_1): New function.
4919 (x_clear_image): Use it.
4920 (x_from_xcolors): Use x_clear_image_1; don't free the image's
4921 mask.
4922
05b1f851
GM
4923 * dispnew.c (update_window): Move test for invisible lines
4924 at the top to update_window_line.
4925 (update_window_line): Handle invisible lines here.
4926
f4779de9
GM
4927 * xfns.c (clear_image_cache): Clear current matrices of all
4928 frames sharing an image cache. Block input while freeing
4929 images. Fix timestamp comparison.
4930 (x_clear_image): Also free the mask.
4931
28c7826c
GM
4932 * xfns.c (lookup_image): Block input while loading the image so
4933 that we won't get interrupted in a state where the image isn't yet
4934 set up completely.
4935 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
4936 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
4937 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
4938 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock
4939 input.
4940
b7412313
GM
49412000-09-16 Gerd Moellmann <gerd@gnu.org>
4942
4943 * dispnew.c (update_window): Make sure to make desired rows
4944 current even if they are completely invisible at the top
4945 of a window.
4946
47e351a3
GM
49472000-09-15 Gerd Moellmann <gerd@gnu.org>
4948
7f8f1edc
GM
4949 * xfns.c (lookup_image): Build mask before applying an algorithm.
4950 Recognize algorithm `disabled'.
4951 (cross_disabled_images): New variable.
4952 (COLOR_INTENSITY): New macro.
4953 (x_detect_edges): Use COLOR_INTENSITY.
4954 (x_disable_image): New function.
4955 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
4956
4957 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
4958 disabled state, don't apply an image transformation algorithm if
4959 the user specified an image for the disabled state. Use
28c7826c 4960 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
4961 user hasn't specified an image.
4962
ebb8f116
GM
4963 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
4964 allocation functions with the XPM lib.
4965 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
4966 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
4967 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
4968 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
4969 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New
4970 functions.
4971 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
4972 functions, if possible, because these handle color allocation
4973 failure more gracefully.
4974 (Fimage_mask_p): New function.
4975
47e351a3
GM
4976 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
4977 (Qedge_detection, Qheuristic): New symbols.
4978 (syms_of_xfns): Initialize new symbols.
4979 (lookup_image): Handle `:mask X', `:algorithm emboss', and
4980 `algorithm (edge-detection ...)'.
4981 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
4982 (tiff_format, gif_format, gs_format): Add `:mask'.
4983 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
4984 (GIF_MASK, GS_MASK): New enumerators.
4985 (x_laplace_read_row, x_laplace_write_row): Functions removed.
4986 (emboss_matrix, laplace_matrix): New variables.
4987 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
4988 (x_edge_detection): New functions.
4989 (x_laplace): Rewritten in terms of x_detect_edges.
4990 (x_build_heuristic_mask): If image has a mask, free it.
4991
fe83b953
AI
49922000-09-14 Andrew Innes <andrewi@gnu.org>
4993
4994 * makefile.w32-in: Revert to Unix line endings.
4995
3021e816
AI
49962000-09-14 Andrew Innes <andrewi@gnu.org>
4997
4998 * makefile.w32-in: Standardize indentation somewhat.
4999 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
5000 cater for differences between shells.
5001
5002 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
5003
2a32b5ea
GM
50042000-09-14 Gerd Moellmann <gerd@gnu.org>
5005
5006 * xterm.c (x_produce_glyphs): If the distance from the current
5007 position to the next tab stop is less than a canonical character
5008 width, use the tab stop after that.
5009
b4331e96
DL
50102000-09-14 Dave Love <fx@gnu.org>
5011
5012 * buffer.c (alloc_buffer_text): Fix xmalloc call.
5013
ef9e4345
GM
50142000-09-14 Gerd Moellmann <gerd@gnu.org>
5015
085536c2
GM
5016 * xdisp.c (handle_fontified_prop): While running fontification
5017 functions, bind `fontification-functions' and
5018 `after-change-functions' to nil.
5019
ef9e4345
GM
5020 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
5021 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
5022
5023 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
5024
5025 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
5026 USE_MMAP_FOR_BUFFERS.
5027
5028 * insdel.c (make_gap): Use enlarge_buffer_text.
5029
5030 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
5031 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
5032 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
5033 from former r_alloc_* functions in ralloc.c.
5034 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New
5035 variables.
5036 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
5037 (mmap_init) [REL_ALLOC_MMAP]: New function.
5038 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
5039 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
5040 BUFFER_FREE.
5041
5042 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
5043 (enlarge_buffer_text): Add prototype.
5044
5045 * ralloc.c: Remove everything having to do with the use of mmap.
5046
f8608968
GM
50472000-09-13 Gerd Moellmann <gerd@gnu.org>
5048
2a494b2d
GM
5049 * sound.c (Fplay_sound): Doc fix.
5050
8c907a56
GM
5051 * keyboard.c: Avoid some more compiler warnings.
5052 (parse_tool_bar_item): Ignore cached key bindings.
5053
f8608968
GM
5054 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
5055 and allocation of Lisp data.
5056
6ab70e9a
GM
50572000-09-12 Gerd Moellmann <gerd@gnu.org>
5058
d12d0a9b
GM
5059 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
5060 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
5061 defaults first.
5062
6ab70e9a
GM
5063 * lread.c (Fload): Put code checking for recursive loads in #if 0.
5064
63c36c3c
KH
50652000-09-12 Miyashita Hisashi <himi@meadowy.org>
5066
5067 * ccl.c: Comment fixed.
5068 (MAX_MAP_SET_LEVEL): Increased to 30.
5069 (PUSH_MAPPING_STACK): Enclose with do-while block.
5070 (POP_MAPPING_STACK): Likewise.
5071 (stack_idx_of_map_multiple): New variable.
5072 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
5073 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
5074 call the corresponding CCL program by
5075 CCL_CALL_FOR_MAP_INSTRUCTION.
5076 (ccl_driver) <CCL_MapSingle>: Likewise.
5077 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
5078 with the case where looking up process reaches to the end of
5079 map-set, and call CCL programs as the above change.
5080
7ee3bd7b
GM
50812000-09-11 Gerd Moellmann <gerd@gnu.org>
5082
8ec8a5ec
GM
5083 * xfns.c (png_load, jpeg_load): Declare some variables volatile
5084 that might be clobbered by longjmp.
5085 (check_x_display_info, x_decode_color, create_frame_xic)
5086 (Fx_display_backing_store, Fx_display_visual_class)
5087 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler
5088 warnings.
5089
f74b0705
GM
5090 * lread.c (init_lread): Set Vloads_in_progress to nil.
5091 (Fload): Show list of recursively loaded files, when signaling an
5092 error.
5093
7ee3bd7b
GM
5094 * lread.c (Vloads_in_progress): New variable.
5095 (record_load_unwind): New function.
5096 (Fload): Check for recursive loads.
5097 (syms_of_lread): Initialize Vloads_in_progress.
5098 (read_integer, read1): Avoid some compiler warnings.
5099
5100 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
5101 compiler warnings.
5102
974e1e5b
MB
51032000-09-11 Miles Bader <miles@gnu.org>
5104
5105 * editfns.c (Fbuffer_string): Doc fix.
5106
9824c4e3
GM
51072000-09-10 Gerd Moellmann <gerd@gnu.org>
5108
5109 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
5110
6a72fdd1
KR
51112000-09-09 Ken Raeburn <raeburn@gnu.org>
5112
5113 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
5114 whether to include other header files.
5115
28e6fb66
GM
51162000-09-09 Gerd Moellmann <gerd@gnu.org>
5117
5118 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 5119 by Fmemq as a boolean.
28e6fb66 5120
7f8b6551
SM
51212000-09-08 Stefan Monnier <monnier@cs.yale.edu>
5122
5123 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
5124
a8710abf
GM
51252000-09-08 Gerd Moellmann <gerd@gnu.org>
5126
d1a02881
GM
5127 * ralloc.c (mmap_fd): Remove initializer which can make it
5128 read-only in a dumped Emacs.
5129 (mmap_fd_1): New variable.
5130 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
5131 restore it from there.
5132 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
5133 unconditionally so that mmap_fd can be initialized there.
5134 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
5135 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
5136 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
5137
c454aac1
GM
5138 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
5139
5140 * xdisp.c (dump_glyph_row): Fix printf format string.
5141 (display_line, move_it_in_display_line_to): Avoid compiler
5142 warnings.
5143
fc653ef2
GM
5144 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
5145
3015eec0
GM
5146 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
5147 inheritance.
5148
bfe0ee88
GM
5149 * xdisp.c (try_window_id): When trying to locate cursor in
5150 unchanged rows at the top, handle the case that we can't find it.
5151
a8710abf
GM
5152 * xterm.c (x_draw_glyphs): Handle case START and END are out
5153 of bounds more carefully.
5154
6b7d4ae4
DL
51552000-09-08 Dave Love <fx@gnu.org>
5156
423193c5
DL
5157 * s/sol2.h (REL_ALLOC_MMAP): Define.
5158 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
5159
5160 * ralloc.c: Don't include string.h (redundant).
5161 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
5162 [!MAP_ANON]: Include fcntl.h.
5163 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
5164 (r_alloc, r_re_alloc, r_alloc_free)
5165 (mmap_enlarge, mmap_set_vars): Use it.
5166 (r_alloc_init_fd): New function.
5167 (__morecore) [SYSTEM_MALLOC]: Don't declare.
5168 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
5169 malloc type.
5170
5171 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
5172 Remove vm-limit.o.
5173
6b7d4ae4
DL
5174 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
5175 change to __NetBSD__.
5176
44d31981
KH
51772000-09-08 Kenichi Handa <handa@etl.go.jp>
5178
5179 * search.c (compile_pattern): Check the multibyteness of cached
5180 string and PATTERN.
5181
aad40737
MB
51822000-09-08 Miles Bader <miles@gnu.org>
5183
5184 * xfaces.c (default_face_vector): Function removed.
5185 (Finternal_merge_in_global_face): Restore old global/local
5186 attribute override order. Use inline loop instead of calling
5187 default_face_vector.
5188
91a211b5
GM
51892000-09-07 Gerd Moellmann <gerd@gnu.org>
5190
5191 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
5192 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
5193 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
5194 where necessary, in case POINTER_TYPE is `void'.
5195
03419440
EZ
51962000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
5197
5198 * frame.c (make_terminal_frame): Initialize frame foreground and
5199 background colors to unspecified, for the initial instance of an
5200 MSDOS frame.
5201
f46f845b
GM
52022000-09-07 Gerd Moellmann <gerd@gnu.org>
5203
24f76fbf
GM
5204 * ralloc.c (mmap_find): Fix overlap computation.
5205 (mmap_enlarge): Compute nbytes before trying to find an
5206 overlapping region.
5207
f46f845b
GM
5208 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
5209 instead of `!='.
5210
5211 * lread.c (syms_of_lread): Change value of regexp
5212 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
5213
5214 * xmenu.c (xdialog_show): When looking up the selection in
5215 menu_items, take `quote' boundaries into account; this corresponds
5216 to a nil ITEM in x-popup-dialog.
5217
3c014385
KH
52182000-09-07 Kenichi Handa <handa@etl.go.jp>
5219
fd6f711b
KH
5220 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
5221 not 0x81.
5222 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
5223
3c014385 5224 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
5225 encoding, not decoding. Fix the handling of latin-jisx0201.
5226 Check for the charset katakana-jisx0201 too.
3c014385 5227 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 5228 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 5229
0da3ecef
GM
52302000-09-07 Gerd Moellmann <gerd@gnu.org>
5231
ab0ee409
GM
5232 * xfaces.c (Vparam_value_alist): New variable.
5233 (syms_of_xfaces): Initialize it.
5234 (Finternal_set_lisp_face_attribute): Avoid more consing.
5235
5236 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
5237 specially.
5238 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
5239 (Qbackground_mode): New variable.
5240 (syms_of_frame_1): Initialize Qbackground_mode.
5241
5242 * lisp.h (Qdisplay): Declare extern.
1091dd67 5243
0da3ecef
GM
5244 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
5245 change face on all frames, and change the default for new frames.
5246
b14654b9
DL
52472000-09-07 Dave Love <fx@gnu.org>
5248
5249 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
5250
d24fd56f
KH
52512000-09-07 Kenichi Handa <handa@etl.go.jp>
5252
794f3670
KH
5253 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
5254
0fddd0dc
KH
5255 * charset.c: Include composite.h
5256 (lisp_string_width): New function.
5257 (Fstring_width): Call lisp_string_width instead of strwidth.
5258
5259 * Makefile.in (charset.o): Depends on composite.h.
5260
d24fd56f
KH
5261 * process.c (read_process_output): Before inserting the decoded
5262 text in the buffer, adjust the multibyteness.
5263
fa0b693c
GM
52642000-09-06 Gerd Moellmann <gerd@gnu.org>
5265
73b77ee5
GM
5266 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
5267 buffer's text buffer is null, map new memory.
5268
0a58f946
GM
5269 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
5270 POINTER_TYPE and size_t.
5271 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
5272 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
5273 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
5274 [REL_ALLOC_MMAP]: New macros.
5275 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
5276 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
5277 [REL_ALLOC_MMAP]: New functions.
5278
5279 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
5280 before and after unexec.
5281
5282 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
5283 text buffers if necessary.
5284
5285 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
5286 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
5287 in prototypes.
5288
fa0b693c
GM
5289 * config.in (HAVE_MMAP): Add #undef.
5290
877055f6
GM
52912000-09-05 Gerd Moellmann <gerd@gnu.org>
5292
08ba3862
GM
5293 * frame.c (Qdisplay_type): New variable.
5294 (syms_of_frame_1): Initialize it.
5295 (Fframe_parameter): New function that avoids consing.
5296 (syms_of_frame): Defsubr it.
5297
66ffe51c
GM
5298 * buffer.c (Fother_buffer): Consider buffers as invisible when
5299 they are displayed in a window on an invisible frame.
5300
877055f6
GM
5301 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
5302 get-largest-window always return nil.
5303
bb970e67
GM
53042000-09-04 Gerd Moellmann <gerd@gnu.org>
5305
5306 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
5307 variable; recognize Emacs 19 elc files.
5308
7a3d0e0e
MB
53092000-09-04 Miles Bader <miles@gnu.org>
5310
5311 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
5312 before initially popping up the menu, so the menu doesn't flash
5313 when the face settings are significantly different from the
5314 defaults.
5315
14473664
SM
53162000-09-04 Stefan Monnier <monnier@cs.yale.edu>
5317
5318 * regex.c (WIDE_CHAR_SUPPORT): New macro.
5319 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
5320 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
5321 (BIT_UNIBYTE): Remove.
5322 (re_match_2_internal): Delete corresponding code and streamline the
5323 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
5324 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
5325 (re_wctype_t): New type.
5326 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
5327 (regex_compile): Use them and fix handling of overly long char classes.
5328
c1174479
AI
53292000-09-03 Andrew Innes <andrewi@gnu.org>
5330
f8803e97
AI
5331 * makefile.w32-in: Change to DOS line endings.
5332
c1174479
AI
5333 * s/ms-w32.h (ORDINARY_LINK): New define.
5334
5335 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
5336 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
5337
5338 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
5339 (distclean): Delete them here instead.
5340
44ef7cf6
AI
5341 * w32proc.c (compare_env): Convert to uppercase for comparison,
5342 not lowercase, to match how the native Windows shell works.
5343
49b3bd82
JR
53442000-09-03 Jason Rumney <jasonr@gnu.org>
5345
5346 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
5347 CVS changes the line-ends when checking in/out on DOS/Windows.
5348
5349 * makefile.nt (emacs): Do not change directory to run temacs, as
5350 the load-path is set relative to current directory.
5351
a3d35a39
MB
53522000-09-03 Miles Bader <miles@gnu.org>
5353
5354 * xterm.c (x_alloc_lighter_color_for_widget): New function.
5355
d276b0cf
GM
53562000-09-02 Gerd Moellmann <gerd@gnu.org>
5357
715e84c9
GM
5358 * xdisp.c (redisplay_mode_lines): New function.
5359 (display_mode_lines): Return number of mode lines displayed.
5360 (echo_area_display): Use redisplay_mode_lines to draw garbaged
5361 mode lines. Don't temporarily bind redisplay-dont-pause to t.
5362
8892f40b
GM
5363 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
5364 string.h and strings.h.
5365 (index) [HAVE_INDEX]: Add prototype.
5366
d276b0cf
GM
5367 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
5368 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
5369
5370 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
5371 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
5372
38404229
GM
53732000-09-01 Gerd Moellmann <gerd@gnu.org>
5374
5375 * lread.c (read1): Accept `?' as symbol constituent, for
5376 compatiblity with XEmacs.
5377
c0f9ea08
SM
53782000-08-31 Stefan Monnier <monnier@cs.yale.edu>
5379
5380 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
5381 (struct re_pattern_buffer): Remove newline_anchor.
5382 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
5383 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
5384 (re_max_failures, fail_stack): Use size_t rather than unsigned.
5385 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
5386 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
5387 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
5388 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
5389 Get rid of references to newline_anchor.
5390 (regcomp): Allocate and precompute a fastmap.
5391
8c0f83fe
GM
53922000-08-31 Gerd Moellmann <gerd@gnu.org>
5393
5394 * lread.c (openp): GCPRO local variable `filename'.
5395
4bb91c68
SM
53962000-08-30 Stefan Monnier <monnier@cs.yale.edu>
5397
5398 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
5399
5400 * regex.c: Merge some changes from GNU libc. Add prototypes.
5401 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
5402 Use memcmp and memcpy instead of bcopy and bcmp.
5403 (init_syntax_once): Use ISALNUM.
5404 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
5405 (REG_UNSET_VALUE): Remove. Use NULL instead.
5406 (REG_UNSET, re_match_2_internal): Use NULL.
5407 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
5408 New macros.
5409 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
5410 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
5411 (regex_compile): In handle_interval, return an error rather than try to
5412 unfetch the interval if we can't find the closing brace.
5413 Obey the RE_NO_GNU_OPS syntax bit.
5414 (TOLOWER): New macro.
5415 (regcomp): Use it.
5416 (regexec): Allocate regs.start and regs.end as one block.
5417
5226a931
GM
54182000-08-30 Gerd Moellmann <gerd@gnu.org>
5419
868dd24b
GM
5420 * xdisp.c (echo_area_display): Check display_completed instead
5421 of calling detect_input_pending.
5422
5423 * dispnew.c (update_frame): Only set display_completed here; move
5424 the update_begin and update_end calls here from update_frame_1.
5425 (update_frame_1): Don't set display_completed here, don't call
5426 update_begin/update_end.
5427
5226a931
GM
5428 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
5429 instead of store_frame_param.
5430
2a8bd25f
GM
54312000-08-29 Gerd Moellmann <gerd@gnu.org>
5432
5433 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
5434 desired window matrix hasn't been displayed, use the current row
5435 instead. Make sure that only those frame rows are updated for
5436 which there exists a corresponding enabled desired row.
5437
ba3478d9
MB
54382000-08-29 Miles Bader <miles@gnu.org>
5439
5440 * xfaces.c (default_face_vector): New function.
5441 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
5442
87d0f685
GM
54432000-08-29 Gerd Moellmann <gerd@gnu.org>
5444
5445 * lread.c (openp): Prevent temporary string passed to
5446 Ffile_readable_p from being garbage collected.
5447
6fa86045
DL
54482000-08-28 Dave Love <fx@gnu.org>
5449
5450 * keymap.c (store_in_keymap): Add `static' to declaration.
5451
bb17930d
GM
54522000-08-28 Gerd Moellmann <gerd@gnu.org>
5453
5454 * emacs.c, callint.c, doc.c, editfns.c
5455 (toplevel) [HAVE_STRING_H]: Include string.h.
5456 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
5457 (index): Remove prototypes which might conflict with non-standard
5458 definitions of index/strchr.
5459
5460 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
5461 (rindex): Define only if !HAVE_RINDEX.
5462
5463 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
5464
5465 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
5466
87188200
MB
54672000-08-28 Miles Bader <miles@gnu.org>
5468
5469 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
5470 made inconsistent by a font-related attribute in FROM.
5471 (merge_face_inheritance): Add function comment.
5472
41a68aef
KH
54732000-08-28 Kenichi Handa <handa@etl.go.jp>
5474
5475 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
5476 the 4th arg (PREV_EVENT) Qt to suppress input method.
5477
f7c436c1
SM
54782000-08-27 Stefan Monnier <monnier@cs.yale.edu>
5479
0b32bf0e
SM
5480 * regex.c: Indent cpp directives and remove parens after `defined'.
5481 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
5482 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
5483 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
5484 (re_compile_pattern): Use size_t for length.
5485 (init_syntax_once): Move to a better place.
5486 * regex.h: Merge changes from GNU libc. Indent cpp directives.
5487 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
5488
f7c436c1
SM
5489 * syntax.c (back_comment): Detect cases where a comment-starter is
5490 actually inside another comment as in: /* a // b */ c // d \n.
5491 Make it clear that `comstart_pos' is unused for nested comments.
5492
5493 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
5494 (KEYMAPP): New macro.
5495 (Fkeymap_parent, Fset_keymap_parent): Use it.
5496 (fix_submap_inheritance): Mark it static.
5497 (define_as_prefix, describe_buffer_bindings, describe_command)
5498 (describe_translation, describe_map): Complete prototypes.
5499
5500 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
5501
5502 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
5503 to better match the key-lookup behavior.
5504
6288c62f
GM
55052000-08-27 Gerd Moellmann <gerd@gnu.org>
5506
5507 * xfaces.c (lface_fully_specified_p): Handle :inherit.
5508 (Finternal_set_lisp_face_attribute): Fix typo in error message.
5509
e931344e
EZ
55102000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
5511
5512 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
5513 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
5514 (xterm.o): Depend on coding.h
5515
d10dfeef
KH
55162000-08-26 Kenichi Handa <handa@etl.go.jp>
5517
5518 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
5519 the corresponding '#endif'.
5520
2d73e8d3
MB
55212000-08-26 Miles Bader <miles@gnu.org>
5522
5523 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
5524 * xfaces.c (QCinherit): New variable.
5525 (syms_of_xfaces): Initialize it.
5526 (LFACE_INHERIT): New macro.
5527 (Finternal_get_lisp_face_attribute)
5528 (merge_face_vector_with_property)
5529 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
5530 (check_lface_attrs): Allow new types of face height. Check
5531 inherit attribute.
5532 (CYCLE_CHECK): New macro.
5533 (merge_face_inheritance): New function.
5534 (merge_face_vectors): Merge inherited faces too. Add F and
5535 CYCLE_CHECK arguments.
5536 (merge_face_vector_with_property, Finternal_merge_in_global_face)
5537 (lookup_named_face, lookup_derived_face, realize_named_face)
5538 (face_at_string_position, face_at_buffer_position): Supply
5539 new F and CYCLE_CHECK arguments to merge_face_vectors.
5540 (merge_face_heights): New function.
5541 (merge_face_vectors, merge_face_vector_with_property)
5542 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
5543 handle relative face heights.
5544 (lface_same_font_attributes_p): Compare heights using EQ.
5545
6ce974d4
KH
55462000-08-26 Kenichi Handa <handa@etl.go.jp>
5547
5548 * charset.c (char_to_string): Check the character validity.
5549 (char_valid_p): If C is not less than MAX_CHAR, be sure to return
5550 0.
5551
dc1e502d
SM
55522000-08-25 Stefan Monnier <monnier@cs.yale.edu>
5553
5554 * regex.c (PUSH_FAILURE_COUNT): New macro.
5555 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
5556 Handle popping of a register's or a counter's data.
5557 (POP_FAILURE_POINT): Use the new name.
5558 (re_match_2_internal): Push counter data on the stack for succeed_n,
5559 jump_n and set_number_at and remove misleading dead code in succeed_n.
5560
bd9d0f3f
GM
55612000-08-25 Gerd Moellmann <gerd@gnu.org>
5562
5563 * xdisp.c (redisplay_internal): If considering all windows on all
5564 frames, update the display for each frame as soon as possible,
5565 instead of first building all desired matrices for all frames, and
5566 then updating them all.
5567 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
5568
aa5b8e15
GM
55692000-08-24 Gerd Moellmann <gerd@gnu.org>
5570
17494071
GM
5571 * bytecode.c (mark_byte_stack): Add a comment.
5572
aa5b8e15
GM
5573 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
5574 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
5575 a graphical frame.
5576
c543db81
KH
55772000-08-24 Kenichi Handa <handa@etl.go.jp>
5578
d246d5f5
KH
5579 * minibuf.c (do_completion): Always use compare-string, not
5580 string-equal because the latter doesn't pay attention to
5581 multibyteness of strings.
5582
c543db81
KH
5583 * process.c (create_process): Don't setup raw-text coding here.
5584 (Fopen_network_stream): Don't set coding->src_multibyte and
5585 coding->dst_multibyte here.
5586 (read_process_output): For process filter, return unibyte string
5587 if default-enable-multibyte-characters is nil.
5588 (send_process): If OBJECT is multibyte text, be sure to encoded it
5589 by the specified coding system for the process. Otherwise, setup
5590 raw-text coding.
5591 (init_process): Don't initialize default-process-coding-system
5592 here.
5593
9b47cfe0
EZ
55942000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
5595
5596 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
5597 <scroll-down-aggressively>: Likewise.
5598
f5a36960
KH
55992000-08-23 Kenichi Handa <handa@etl.go.jp>
5600
5601 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
5602 zero. Set coding->produced_char correctly.
5603
69a7ffa7
AI
56042000-08-22 Andrew Innes <andrewi@gnu.org>
5605
5606 * makefile.w32-in: New file.
5607
5608 * unexw32.c (unexec): Ignore old_name, and use the actual location
5609 of the current executable instead. Base new_name on this.
5610
5611 * w32proc.c (create_child): Remove reference to security
5612 descriptor, which isn't needed and doesn't compile with mingw32.
5613
5614 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5615 up dllimport attributes.
5616 (x_update_window_end): Update prototype.
5617
5618 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
5619 extern, which screws up dllimport attributes.
5620
5621 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5622 up dllimport attributes.
5623
5624 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
5625 screws up dllimport attributes.
5626
5627 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5628 up dllimport attributes.
5629 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
5630 screws up dllimport attributes.
5631
5632 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5633 up dllimport attributes.
5634
5635 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
5636 screws up dllimport attributes.
5637
5638 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
5639 screws up dllimport attributes.
5640
5641 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5642 up dllimport attributes.
5643
5644 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
5645 unnecessary extern, which screws up dllimport attributes.
5646 (main): Ditto.
5647
5648 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5649 up dllimport attributes.
5650
5651 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
5652 unnecessary extern, which screws up dllimport attributes.
5653
5654 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
5655 screws up dllimport attributes.
5656
5657 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5658 up dllimport attributes.
5659
5660 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
5661
5662 * w32bdf.c (search_file_line):
5663 (set_bdf_font_info):
5664 (seek_char):
5665 (w32_get_bdf_glyph):
5666 (w32_BDF_to_x_font): Fix compile warnings.
5667
5668 * w32menu.c: Include keyboard.h before frame.h. Fix compile
5669 warnings.
5670
5671 * w32select.c: Include keyboard.h before frame.h.
5672
5673 * w32fns.c (max): Define macro.
5674 (JOHAB_CHARSET): Define if not known.
5675 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
5676 (Fx_show_tip): Synch with X version.
5677
5678 * w32xfns.c: Include keyboard.h before frame.h.
5679
5680 * w32fns.c: Include keyboard.h before frame.h.
5681
5682 * w32term.c: Include keyboard.h before frame.h.
5683
5684 * fontset.c: Include keyboard.h before frame.h.
5685
5686 * w32inevt.c: Include keyboard.h before frame.h.
5687 (MOUSE_MOVED): Define if not known.
5688
5689 * minibuf.c: Include keyboard.h before frame.h.
5690
5691 * keyboard.c: Include keyboard.h before frame.h.
5692
5693 * indent.c: Include keyboard.h before frame.h.
5694
5695 * dispnew.c: Include keyboard.h before frame.h.
5696
5697 * buffer.c: Include keyboard.h before frame.h.
5698
5699 * alloc.c: Include keyboard.h before frame.h.
5700
5701 * print.c: Include keyboard.h before frame.h.
5702
5703 * process.c: Include keyboard.h before frame.h.
5704
5705 * scroll.c: Include keyboard.h before frame.h.
5706
5707 * sysdep.c: Include keyboard.h before frame.h.
5708
5709 * term.c: Include keyboard.h before frame.h.
5710
5711 * window.c: Include keyboard.h before frame.h.
5712
5713 * xdisp.c: Include keyboard.h before frame.h.
5714 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
5715
5716 * frame.c: Include keyboard.h before frame.h.
5717
5718 * w32heap.h: Undefine min, max.
5719
5720 * w32gui.h: Undefine min, max.
5721
5722 * unexw32.c: Change PUCHAR to PCHAR.
5723 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
5724 (relocate_offset):
5725 (get_section_info):
5726 (copy_executable_and_dump_data): Remove unnecessary static defs.
5727 (copy_executable_and_dump_data): Fix compile warnings.
5728
5729 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
5730
5731 * w32console.c (min): Define macro.
5732 (clear_frame, write_glyphs): Fix compile warning.
5733
5734 * w32proc.c (compare_env):
5735 (find_child_console): Fix compile warning.
5736
5737 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
5738 sys_errlist instead of _sys_errlist.
5739 (get_emacs_configuration_options): New function.
5740
5741 * s/ms-w32.h (sys_nerr): Provide default definition.
5742 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
5743 name with _ prepended.
5744 (NSIG): Define if not known.
5745 (get_emacs_configuration): Provide extern declaration.
5746 (get_emacs_configuration_options): Provide extern declaration.
5747 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
5748
5749 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
5750 (map_w32_filename):
5751 (read_unc_volume): Fix compile warning.
5752
5753 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
5754 definitions from being used.
5755
5756 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
5757
5758 * w32.c (unc_volume_file_attributes):
5759 (open_unc_volume): Make arg const.
5760
5761 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
5762 (read_input_waiting): Remove excess parameter.
5763
5764 * w32.c (init_environment): Call _access.
5765 (check_windows_init_file): Call _close.
5766 (init_user_info): Call _putenv.
5767 (init_environment): Call _putenv and _strdup.
5768 (init_ntproc): Reset volume info cache on startup.
5769
5770 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
5771 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
5772 cannot override the CRT malloc.
5773
5774 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
5775 (LINK_FLAGS): Append to original value of LINK_FLAGS.
5776
5777 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
5778 unless we are linking with a static CRT.
5779 (RVA_TO_PTR): Cast result to unsigned char*.
5780
5781 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
5782 (add_volume_info): Use xstrdup.
5783
25060080
SM
57842000-08-22 Stefan Monnier <monnier@cs.yale.edu>
5785
5786 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
5787 (do_completion, Fminibuffer_complete_word): Use it.
5788 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
5789 var so it can take non-boolean values.
5790
6917e6bb
GM
57912000-08-21 Gerd Moellmann <gerd@gnu.org>
5792
acb7cc89
GM
5793 * editfns.c (find_field): Formatting changes.
5794 (toplevel): Some old-style function forward declarations
5795 changed to prototypes, some new protypes added, some functions
5796 made static.
5797
5798 * lisp.h (set_time_zone_rule): Add prototype.
5799 (use_dialog_box): External declaration.
5800
0bbfdc25
GM
5801 * keyboard.c (gen_help_event): Add parameter SIZE.
5802 (kbd_buffer_events_waiting): Slightly rewritten.
5803 (clear_event): New function.
5804 (kbd_buffer_get_event): Use it, and clear the input_events of
5805 HELP_EVENTs.
5806 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
5807 don't fill the newly created array with nils.
5808 (toplevel): Convert some old-style function forward declarations
5809 to prototypes.
5810
5811 * keyboard.h (gen_help_event): Change prototype.
5812
5813 * xterm.c (XTread_socket): Change calls to gen_help_event.
5814
5815 * w32term.c (w32_read_socket): Change calls to gen_help_event.
5816
6917e6bb
GM
5817 * eval.c (Fmacroexpand): Doc fix.
5818
e5cd3d11
JR
58192000-08-20 Jason Rumney <jasonr@gnu.org>
5820
5821 * w32term.h (x_display_info_for_display): Remove as this function
5822 does not exist on W32.
5823
5824 * w32term.c (help_echo_window): New variable.
5825 (syms_of_w32term): staticpro it.
5826 (note_mode_line_highlight): Set it.
5827 (XTextExtents16): Removed as there is no equivalent on W32.
5828 (x_compute_glyph_string_overhangs): Incomplete body removed, as
5829 the X way of doing this will not work for W32.
5830 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
5831 (x_draw_image_foreground): Avoid drawing outside of the clip area
5832 when image doesn't have a mask.
5833 (note_mouse_highlight): Process overlays in the right order of
5834 priority. Set help_echo_window.
5835 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
5836 because that's more visible for large images.
5837
5838 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
5839 name to single_keymap_panes.
5840 (w32_menu_show): Set wv->title when dealing with titles.
5841 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
5842
6e69ab8c
MB
58432000-08-21 Miles Bader <miles@gnu.org>
5844
5845 * minibuf.c (do_completion): Try again if we rewrite the input
5846 string, but no completion was done, so that any completion message
5847 will be correct.
5848
511bd4eb
GM
58492000-08-20 Gerd Moellmann <gerd@gnu.org>
5850
5851 * xfaces.c (lface_equal_p): Compare strings differently.
5852 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
5853 (realize_tty_face): Use them.
5854 (syms_of_xfaces): Initialize new variables.
5855 (map_tty_color): New function, extracted from realize_tty_face.
5856 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
5857 foreground or background color, store the new color name in the
5858 realized face; previous code trying to do this had no effect.
5859 (realize_tty_face): Use map_tty_color.
5860 (Fclear_face_cache): Set face_change_count and ensure thorough
5861 redisplay.
5862
1433385f
GM
58632000-08-19 Gerd Moellmann <gerd@gnu.org>
5864
511bd4eb
GM
5865 * undo.c (record_first_change, record_marker_adjustment): Don't
5866 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 5867
419ac0a2
KH
58682000-08-18 Kenichi Handa <handa@etl.go.jp>
5869
5870 * coding.c (decode_coding_string): Set members consumed,
5871 consumed_char, produced, produced_char of *coding correctly. If
5872 decode_coding doesn't consume any byte, don't try anymore.
5873 (encode_coding_string): Likewise.
5874
7eb9e30d
GM
58752000-08-18 Gerd Moellmann <gerd@gnu.org>
5876
511bd4eb
GM
5877 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
5878 conditional have void type, for Standard C compilers.
7eb9e30d
GM
5879
5880 * xdisp.c (redisplay_internal): Compare windows for equality with
5881 EQ, instead of applying XWINDOW to something that might not
5882 be a window.
5883
dd34a735
KH
58842000-08-18 Kenichi Handa <handa@etl.go.jp>
5885
5886 * fontset.c (Finternal_char_font): Search only the selected frame
5887 for a window of the current buffer.
5888
385ff9e3
GM
58892000-08-18 Gerd Moellmann <gerd@gnu.org>
5890
511bd4eb 5891 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
5892 Lisp_Objects.
5893
385ff9e3
GM
5894 * keyboard.c (kbd_buffer_get_event): Handle the case that the
5895 second half of a HELP_EVENT is found at the start of kbd_buffer.
5896
d6abb4c7
MB
58972000-08-18 Miles Bader <miles@gnu.org>
5898
4618074a
MB
5899 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
5900
d6abb4c7
MB
5901 * editfns.c (save_restriction_save): Rewrite to use markers.
5902 (save_restriction_restore): Rewrite to understand new form of data
5903 saved by save_restriction_save.
5904 (Fsave_restriction): Remove cautionary note in doc-string.
5905
a7b28523
GM
59062000-08-17 Gerd Moellmann <gerd@gnu.org>
5907
5908 * fileio.c (build_annotations): Add a comment explaining the
5909 return value of format-annotate-function. Replace a spurious call
5910 to Flength with a CONSP test. Call format-annotate-function with
5911 a fifth arg specifying how many times the function is been called
5912 in a row, to let it choose temporary buffers appropriately.
5913
03c9ed77
DL
59142000-08-17 Dave Love <fx@gnu.org>
5915
5916 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
5917 declare make_temp_name twice.
5918
5919 * lread.c: Prototype readevalloop, load_unwind,
5920 load_descriptor_unwind.
5921 (unreadpure): Give it an arg.
5922
5923 * unexalpha.c: Prototype fatal_unexec, mark_x,
5924 update_dynamic_symbols. Declare unexec as void.
5925
5926 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
5927 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
5928
5929 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
5930 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on
5931 DOUG_LEA_MALLOC.
5932
5933 * alloca.c: Use #error.
5934 [POINTER_TYPE]: Use it.
5935
5936 * eval.c (Fdefvar): Doc fix.
5937
5938 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
5939 INITIALIZE_INTERVAL.
5940
5941 * buffer.h: Avoid DECLARE_INTERVALS.
5942
5943 * config.in: Add size_t.
5944
aae41d97
EZ
59452000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
5946
5947 * w16select.c (set_clipboard_data): If there's not enough memory
5948 to put text into clipboard, return 1, as Fw16_set_clipboard_data
5949 expects. In case of other failures, return 3.
5950 (system_error_msg): New error message.
5951 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
5952 system_error_msg.
5953
65aa5e85
GM
59542000-08-16 Gerd Moellmann <gerd@gnu.org>
5955
5956 * term.c (write_glyphs): Also turn off inverse video after turning
5957 off other appearances in case TS_exit_attribute_mode is not equal
5958 to TS_end_standout_mode.
5959 (insert_glyphs): Turn inverse video on/off for each run of glyphs
5960 with the same face.
5961 (turn_off_face): Reset standout_mode only if
5962 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
5963 is equal to TS_end_standout_mode.
5964
ece23901
KH
59652000-08-16 Kenichi Handa <handa@etl.go.jp>
5966
9d7bcb2e
KH
5967 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
5968 sequence at the end of the source block.
5969
ece23901
KH
5970 * ccl.c (Fccl_program_p): Docstring modified.
5971 (Fccl_execute): Likewise.
5972 (Fccl_execute_on_string): Likewise.
5973
5e30eaa2
EZ
59742000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
5975
5976 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
5977
290602fd
KH
59782000-08-16 Kenichi Handa <handa@etl.go.jp>
5979
5980 The following changes are mainly to fix bugs of
5981 encode/decode-coding-string failing if encoding/decoding return
5982 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
5983 variable conversion_buffer.
5984
5985 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
5986 decrement dst_end to avoid buffer overflow in the later call of
5987 string_as_multibyte
5988
5989 * coding.h (conversion_buffer_size, conversion_buffer)
5990 (get_conversion_buffer): Extern deleted.
5991
5992 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
5993 (conversion_buffer, conversion_buffer_size): Variables deleted.
5994 (get_conversion_buffer): Function deleted.
5995 (struct conversion_buffer): New structure.
5996 (MAX_ALLOCA): New macro.
5997 (allocate_conversion_buffer): New macro.
5998 (extend_conversion_buffer, free_conversion_buffer): New functions.
5999 (ccl_coding_driver): Set coding->result.
6000 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
6001 this is the last block of source.
6002 (encode_coding): Likewise. Handle the source block as the last
6003 one only when the whole source text is consumed.
6004 (decode_coding_string): Handle the case that the output buffer is
6005 too small to decode the whole source text. Use
6006 allocate_conversion_buffer, extend_conversion_buffer and
6007 free_conversion_buffer, not get_conversion_buffer.
6008 (encode_coding_string): Likewise.
6009 (init_coding): Function deleted.
6010 (init_coding_once): Delete code to initialize
6011 conversion_buffer_size.
6012
6013 * emacs.c (main): Don't call init_coding.
6014
6015 * msdos.c (IT_write_glyphs): Use a locally declared
6016 conversion_buffer.
6017
6018 * term.c (write_glyphs): Use a locally declared conversion_buffer.
6019 (insert_glyphs): Likewise.
6020
6021 * w32console.c (write_glyphs): Use a locally declared
6022 conversion_buffer.
6023
b9f80d41
EZ
60242000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
6025
6026 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
6027 member of display_info is NULL.
6028
32dc52f7
GM
60292000-08-15 Gerd Moellmann <gerd@gnu.org>
6030
58ed0d3b
GM
6031 * alloc.c (compact_small_strings): Use safe_bcopy, add an
6032 assertion.
6033
32dc52f7 6034 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 6035 appearances with capability `me'.
32dc52f7
GM
6036 (write_glyphs): Switch on inverse video before each face change.
6037
4eb22d33
DL
60382000-08-14 Dave Love <fx@gnu.org>
6039
6040 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
6041 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
6042 (lisp_free): Declare and make static.
6043
6044 * window.c: Fix embedded comment.
6045 (syms_of_window): Fix doc string.
6046
90cbf47e
GM
60472000-08-14 Gerd Moellmann <gerd@gnu.org>
6048
6049 * keymap.c (push_key_description): If C without modifiers is < 32,
6050 make sure to print `C-' before `M-', like in the manual.
6051
440fc135
GM
60522000-08-11 Gerd Moellmann <gerd@gnu.org>
6053
6054 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
6055 since they aren't relocated anymore.
6056 (sxhash_string): Make sure returned hash code fits in a Lisp
6057 integer.
6058
6059 * xdisp.c (try_cursor_movement): Fix handling of cursor in
6060 partially visible line which is smaller than the window's
6061 height.
6062
6e264fad
KH
60632000-08-11 Kenichi Handa <handa@etl.go.jp>
6064
6065 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
6066 the multibyte form of eight-bit-control characters.
6067 (Fccl_execute_on_string): Initialize ccl->multibyte.
6068
6069 * ccl.h (struct ccl_program): New member multibyte.
6070
6071 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
6072
c371f69a
KH
60732000-08-11 Kenichi Handa <handa@etl.go.jp>
6074
6075 * regex.c (regex_compile) <normal_char>: Pay attention to
6076 multibyteness.
6077 (analyse_first) <exactn>: Setup fastmap correctly for
6078 eight-bit-control characters.
6079
60802000-08-11 Kenichi Handa <handa@etl.go.jp>
6081
6082 * termhooks.h (enum event_kind): New member
6083 multibyte_char_keystroke.
6084
6085 * keyboard.c (make_lispy_event): Handle the new event type
6086 multibyte_char_keystroke.
6087
6088 * xterm.c: Include coding.h.
6089 (XTread_socket): Work around a bug of XmbLookupString. If the
6090 input is from XIM, decode it according to the current locale. In
6091 that case, generate multibyte_char_keystroke events.
6092
b8ddbe71
KH
60932000-08-11 Kenichi Handa <handa@etl.go.jp>
6094
6095 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
6096 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
6097
47589c8c
GM
60982000-08-10 Gerd Moellmann <gerd@gnu.org>
6099
6100 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
6101 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
6102 (move_it_in_display_line_to): Record iterator's ascent and descent
6103 before producing glyphs, and restore them when we know the glyph
6104 doesn't fit on the line.
6105 (move_it_to): Restructured so that it's easier to debug. If
6106 moving to a vpos, and not moving to an x or character position,
6107 stop as soon as the specified vpos is reached; don't move further
6108 into that line because that might change the computed line height.
6109 (try_cursor_movement): New function, extracted from the cursor
6110 movement branch of redisplay_window. If ending on a partially
6111 visible line, don't try to scroll if the cursor line is taller
6112 than the window.
6113 (redisplay_window): Use try_cursor_movement.
6114
6115 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
6116 because that function doesn't cope with variable-height lines.
6117
6118 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
6119 box cursor because that's better visible for large images.
6120
c51bacd6
MB
61212000-08-10 Miles Bader <miles@gnu.org>
6122
6123 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
6124
bea56df7
GM
61252000-08-10 Gerd Moellmann <gerd@gnu.org>
6126
6127 * xdisp.c (Vmessages_buffer_name): New variable.
6128 (message_dolog): Use it.
6129 (syms_of_xdisp): Initialize it.
6130
99cd7364
EZ
61312000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
6132
6133 * msdos.c (IT_note_mouse_highlight): Update the calls to
6134 overlays_at.
6135 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
6136 redundant now that keyboard.h is included.
6137
7d093d56
EZ
61382000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
6139
6140 * keyboard.c (kbd_buffer_events_waiting): New function.
6141
6142 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
6143
6144 * msdos.c: Include keyboard.h.
6145 (XMenuActivate): Empty no_event events from the event buffer. If
6146 no events are left after that, call clear_input_pending.
6147 (mouse_clear_clicks): New function, code moved from mouse_init.
6148 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
6149 mouse driver to ``forget'' any past clicks.
6150
6151 * Makefile.in (msdos.o): Depend on keyboard.h.
6152
41e757a6
GM
61532000-08-09 Gerd Moellmann <gerd@gnu.org>
6154
8e7bd231
GM
6155 * lisp.h (input_pending): External declaration.
6156
6157 * dispextern.h (Qredisplay_dont_pause): Declare extern.
6158
6159 * xdisp.c (echo_area_display): Display thoroughly if input is
6160 pending. Bind redisplay-dont-pause to t during the redisplay.
6161 in case input is pending.
6162
6163 * dispnew.c (Qredisplay_dont_pause): New variable.
6164 (syms_of_display): Initialize and staticpro it.
6165 (update_frame_1): Don't interrupt the display for pending input if
6166 redisplay_dont_pause is set.
6167
43028b7e
GM
6168 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
6169
41e757a6
GM
6170 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
6171
2f2174fa
KH
61722000-08-09 Miles Bader <miles@lsi.nec.co.jp>
6173
6174 * callproc.c (Fcall_process): Terminate the unwind-protect around
6175 the post-read-conversion of coding system.
6176
0a6fd67e
MB
6177 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
6178 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
6179 * buffer.h (overlays_at): Update prototype.
6180 * xdisp.c (next_overlay_change): Update call to overlays_at.
6181 * xfaces.c (face_at_buffer_position): Likewise.
6182 * textprop.c (Fget_char_property): Likewise.
6183 * xterm.c (note_mouse_highlight): Likewise.
6184
0c80756e
MB
6185 * minibuf.c (do_completion): Don't consider a simple change of
6186 case as `completion'.
6187
975f250a
KR
61882000-08-08 Ken Raeburn <raeburn@gnu.org>
6189
b347b3fd
KR
6190 * keyboard.c (syms_of_keyboard): Initialize
6191 last_point_position_buffer.
6192 * undo.c (record_delete): Make sure last_point_position_buffer is
6193 a buffer before comparing pointers.
6194
6195 * coding.h (decode_coding_string): Declare.
6196
6197 * intervals.h (Fprevious_single_char_property_change): Declare.
6198
6199 * textprop.c (Fprevious_single_char_property_change): Don't do
6200 arithmetic directly on lisp objects.
6201
25ad1371 6202 * editfns.c (find_field): Use EQ, not ==, to compare Lisp
b347b3fd
KR
6203 objects.
6204
6205 * keyboard.h (menu_item_eval_property): Declare.
6206
6207 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
6208 reuse as buffer name, instead of recreating (and discarding) every
6209 time a message is logged.
6210 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
6211 (current_message_1, truncate_message_1, set_message_1)
6212 (display_echo_area_1, resize_mini_window_1): Signatures changed.
6213 (current_message, truncate_echo_area, display_echo_area)
6214 (resize_echo_area_axactly): Changed calls.
b347b3fd 6215
975f250a 6216 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 6217 Lisp object.
975f250a 6218 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 6219 must be an integer, not a Lisp object.
975f250a 6220
46dc9912
KH
62212000-08-08 Kenichi Handa <handa@etl.go.jp>
6222
6223 * charset.c (Fchar_width): Doc fix.
6224
9f6d1a6c
GM
62252000-08-08 Gerd Moellmann <gerd@gnu.org>
6226
6227 * charset.c (Fstring_width): Doc fix.
6228
ff3d9573
GM
62292000-08-07 Gerd Moellmann <gerd@gnu.org>
6230
41e757a6 6231 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
6232 line, clear ascent and descent members of the iterator structure;
6233 the height of the continued line does not affect the height of the
6234 continuation line.
6235 (make_cursor_line_fully_visible): Do nothing if cursor is on a
6236 line taller than the window.
6237 (redisplay_window) <forced window start>: Handle case that the
6238 middle of the window is not found in any row.
6239 (dump_glyph_row): Show more information.
6240 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
6241 first text line in a glyph matrix.
6242
6243 * xterm.c (x_draw_image_foreground): Avoid drawing outside
6244 of the clip area when image doesn't have a mask.
6245
70fc58b3
GM
6246 * fns.c (sweep_weak_table): Fix survival conditions for
6247 key-or-value and key-and-value weakness.
6248
6249 * .gdbinit (xhashtable): New command.
6250
ac0e96ee
GM
6251 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
6252 tables out of the list of all weak hash tables.
6253
ff3d9573
GM
6254 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
6255 a new buffer is created, make sure echo_area_buffer[] references
6256 the new buffer.
6257
e0d8827b
EZ
62582000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
6259
6260 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
6261 the doc string.
6262
c6f35378
KH
62632000-08-07 Kenichi Handa <handa@etl.go.jp>
6264
6265 * syntax.c (skip_chars): Fix previous change. Make the handling
6266 of unibyte string consistent with that of regex search.
6267
1fd4c450
GM
62682000-08-05 Gerd Moellmann <gerd@gnu.org>
6269
e49aa397
GM
6270 * xmenu.c (popup_get_selection): Use xfree instead of free.
6271
6272 * fileio.c (Finsert_file_contents): Use xfree instead of free.
6273
6274 * editfns.c (Ftranspose_regions): Use xfree instead of free.
6275
6276 * callproc.c (child_setup): Use xfree instead of free.
6277
6278 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
6279 instead of malloc.
6280 (run_mac_command, closedir): Use `xfree' instead of `free'.
6281
6282 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
6283
6284 * eval.c (error): Use xfree instead of free.
6285
1fd4c450
GM
6286 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
6287
6288 * fns.c: Replace `illegal' with `invalid'.
e49aa397 6289 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 6290
82d497fc
KH
62912000-08-05 Kenichi Handa <handa@etl.go.jp>
6292
6293 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
6294 conversion.
6295
59f953a2
NF
62962000-08-04 Noah Friedman <friedman@splode.com>
6297
6298 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
6299 docstring.
6300
688351f2
GM
63012000-08-04 Gerd Moellmann <gerd@gnu.org>
6302
6303 * syntax.c (skip_chars): Fix typo in error message.
6304
2dad51cc
AS
63052000-08-04 Andreas Schwab <schwab@suse.de>
6306
6307 * m/ia64.h: Moved from s/ia64.h.
6308
99bb2c60
KH
63092000-08-04 Kenichi Handa <handa@etl.go.jp>
6310
082a1df2
KH
6311 * process.c (read_process_output): Big simplification. Handle
6312 composition and post-read-conversion of coding system correctly.
6313 (send_process): Handle composition correctly.
6314
6315 * callproc.c (Fcall_process): Handle post-read-conversion of
6316 coding system if any.
6317
99bb2c60
KH
6318 * coding.c (decode_coding_iso2022): More strict check for handling
6319 single shifting.
082a1df2
KH
6320 (coding_restore_composition): Pay attention to the case that
6321 cmp_data is not set properly (because of invalid code in the
6322 source text).
6323 (run_pre_post_conversion_on_str): Include text properties in the
6324 resulting string.
6325 (decode_coding_string): Set members of coding correctly.
99bb2c60 6326
f4988be7
GM
63272000-08-03 Gerd Moellmann <gerd@gnu.org>
6328
6329 * s/ia64.h: New file.
6330
6331 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
6332 Use NULL instead of 0 at the end of variable argument list of
6333 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
6334 sizeof (int) < sizeof (void *).
6335
6336 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
6337 of variable argument lists of XtVaGetValues and XtVaSetValues.
6338
6339 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
6340 variable argument lists of XtVaGetValues and XtVaSetValues.
6341
ead53494
GM
63422000-08-02 Gerd Moellmann <gerd@gnu.org>
6343
6344 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
6345 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
6346
6347 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
6348 prototype.
6349
6350 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
6351 in call to Fsingle_key_description.
6352
6353 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
6354 Callers changed.
6355
63562000-08-02 Colin Walters <walters@cis.ohio-state.edu>
6357
6358 * window.c (display_buffer_reuse_frames): New variable.
6359 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
6360 frames displaying BUFFER.
6361 (syms_of_window): Define Lisp variable
6362 display-buffer-reuse-frames.
6363
10b0f752
MB
63642000-08-01 Miles Bader <miles@gnu.org>
6365
6366 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
6367 when to constrain NEW_POS (they were pretty screwed up before).
6368
16425c4a
EZ
63692000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
6370
6371 * msdos.c (run_msdos_command): Save and restore the master
6372 environment, for the case that child_setup signals an error.
6373 When mirroring slashes in DOS shell commands, don't fail when
6374 argv[2] has embedded blanks.
da288c14
EZ
6375 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
6376 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
6377 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
6378
6379 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
6380 using alloca; free it after run_msdos_command returns.
6381
27f73852
DL
63822000-07-27 Dave Love <fx@gnu.org>
6383
6384 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't
6385 define.
6386 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently
6387 working.
6388
6389 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
6390
c0261b5e
EZ
63912000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
6392
6393 * editfns.c (lisp_time_argument): Fix last change.
6394
b548072f
GM
63952000-07-27 Gerd Moellmann <gerd@gnu.org>
6396
3ab82477
GM
6397 * fns.c (Fdelete): Make it work on vectors and strings in addition
6398 to lists.
6399
b548072f
GM
6400 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
6401 (syms_of_fns): Initialize new variables.
6402 (sweep_weak_table): Handle weakness `key-or-value' and
6403 `key-and-value'.
6404 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
6405 weakness, with t meaning the same as `key-and-value'.
6406
91ae8751
KH
64072000-07-27 Kenichi Handa <handa@etl.go.jp>
6408
6409 * coding.h (struct coding_system): Member safe_charset deleted.
6410
6411 * coding.c (Qsafe_charsets): This variable deleted.
6412 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system): New
6413 variables.
6414 (coding_safe_chars): New function.
6415 (CODING_SAFE_CHAR_P): New macro.
6416 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
6417 checking safe_charsets member of the coding system. Caller
6418 changed.
6419 (detect_coding_iso2022): New local variable safe_chars.
6420 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
6421 safe_charsets member of the coding system.
6422 (decode_coding_iso2022): New local variable safe_chars.
6423 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
6424 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
6425 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
6426 (ENCODE_UNSAFE_CHARACTER): New macro.
6427 (encode_coding_iso2022): New local variable safe_chars. Check
6428 unsafe chars.
6429 (setup_coding_system): Delete the code to initialize
6430 coding->safe_charses
6431 (intersection, find_safe_codings): New functions.
6432 (Ffind_coding_systems_region_internal): New function.
6433 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
6434 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
6435 variable and initialize it.
6436
6437 * fns.c (char_table_ref_and_index): New function.
6438
6439 * lisp.h (char_table_ref_and_index): Add prototype.
6440
34a7a267
SS
64412000-07-26 Sam Steingold <sds@gnu.org>
6442
6443 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 6444 (Ffloat_time): New built-in Lisp function.
34a7a267 6445
a95cb10a
GM
64462000-07-26 Gerd Moellmann <gerd@gnu.org>
6447
3353ef5a
GM
6448 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
6449 for the character code.
6450
6451 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
6452 GNU/Linux.
6453
a95cb10a
GM
6454 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
6455 if called for a popup menu.
6456 (xmenu_show): Store help string in widget values.
6457
b4a12321
DL
64582000-07-26 Dave Love <fx@gnu.org>
6459
6460 * syswait.h: Move some definitions.
6461 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
6462 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
6463 perspicuous definitions.
6464 (WTERMSIG): Fix bit pattern used.
6465
13f5ad37
KH
64662000-07-26 Kenichi Handa <handa@etl.go.jp>
6467
6468 * print.c (print_object): If vector printing is truncated, print
6469 "..." to indicate it as well as the case of list printing.
6470
070fe99c
GM
64712000-07-25 Gerd Moellmann <gerd@gnu.org>
6472
969065c3
GM
6473 * xdisp.c (next_element_from_display_vector): Improve comments.
6474
6475 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
6476 for the character code, and the rest for the face id as in 20.x.
6477 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
6478
6479 * window.c (window_display_table): Cleaned up.
6480
070fe99c
GM
6481 * syntax.c (Fforward_word): Add last arg nil in call of
6482 Fconstrain_to_field.
6483
bad77ef7
EZ
64842000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
6485
969065c3 6486 * fileio.c (Frename_file) [DOS_NT]: If the file names are
bad77ef7
EZ
6487 identical but for the letter-case, don't call
6488 barf_or_query_if_file_exists.
6489
c28da489
MB
64902000-07-25 Miles Bader <miles@gnu.org>
6491
6492 * editfns.c (find_field): Honor special `boundary' fields.
6493 (Qboundary): New variables.
6494 (syms_of_editfns): Initialize Qboundary.
6495 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
6496 Use scan_buffer instead of find_before_next_newline, because it
6497 allows us to detect the boundary case where there's a newline at
6498 the search limit.
6499 * lisp.h (Fconstrain_to_field): Update external declaration.
6500
e3c31fd5
GM
65012000-07-24 Gerd Moellmann <gerd@gnu.org>
6502
6503 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
6504 if that is nil.
c28da489 6505
c66c29a2
DL
65062000-07-24 Dave Love <fx@gnu.org>
6507
6508 * s/sunos4-0.h, s/sol2.h:
6509 (LIBS_TERMCAP): Move from m/sparc.h.
6510
6511 * m/sparc.h (TERMINFO): Moved to system files (probably only
6512 relevant for sunos4 judging by its vintage).
6513 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
6514 __arch64__.
6515
fbe0a958
EZ
65162000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
6517
6518 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
6519 name to single_keymap_panes.
6520
7d88e5c9
AS
65212000-07-24 Andreas Schwab <schwab@suse.de>
6522
6523 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
6524
e024b101
GM
65252000-07-24 Gerd Moellmann <gerd@gnu.org>
6526
6527 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
6528 parameters instead of using int parameters. Expect FN to accept
6529 EMACS_INT parameters.
6530 (display_echo_area, resize_echo_area_axactly, current_message)
6531 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
6532 with new argument list.
6533 (resize_mini_window_1): New callback function.
6534 (current_message_1, truncate_message_1, set_message_1): Change
6535 parameter lists to the new format expected by
6536 with_echo_area_buffer.
6537
25c1a9ce
KH
65382000-07-24 Kenichi Handa <handa@etl.go.jp>
6539
6540 * fontset.c (fontset_ref): Remove INLINE declaration.
6541 (fontset_ref_via_base): Likewise.
6542 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
6543 to downcase.
6544
7f987ac0
EZ
65452000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
6546
6547 * msdos.c (IT_note_mouse_highlight): Process overlays in the
6548 correct order of priority. If help echo was found in an overlay,
6549 use that overlay as the object in which the help echo was found.
6550
e2db3069
MB
65512000-07-22 Miles Bader <miles@gnu.org>
6552
6553 * textprop.c (Fprevious_single_char_property_change): The initial
6554 property value should be from the position preceding POSITION, not
6555 following it.
6556
5e3203e4
EZ
65572000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
6558
6559 * coding.c (syms_of_coding): Doc fix for
6560 inhibit-iso-escape-detection.
6561
62145073
GM
65622000-07-21 Gerd Moellmann <gerd@gnu.org>
6563
c20aeb83
GM
6564 * xterm.c (note_mouse_highlight): Process overlays in the right
6565 order of priority.
34a7a267 6566
743934db
GM
6567 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
6568
6569 * xterm.c (note_mouse_highlight): If help-echo was found in an
6570 overlay, use that overlay as the object in which the help was
6571 found.
6572
d1dc7e43 6573 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 6574
62145073
GM
6575 * window.c (foreach_window): Instead of a fake variable argument
6576 list, take one USER_DATA argument.
6577 (foreach_window_1): Likewise, and call callback functions with two
6578 args, the window and USER_DATA.
6579 (struct check_window_data): New struct.
6580 (check_window_containing): Use it.
6581 (window_from_coordinates): Set up a struct check_window_data for
6582 foreach_window.
6583 (add_window_to_list, freeze_window_start): Change parameters
6584 according to new calling convention.
6585
6586 * window.h (foreach_window): Change prototype.
6587
6588 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
6589
65902000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
6591
6592 * xmenu.c (menu_help_callback): Call show_help_echo with
6593 additional arguments OBJECT and POS.
6594
11270583
KH
65952000-07-21 Kenichi Handa <handa@etl.go.jp>
6596
07b14857
KH
6597 * data.c (Faset): Allow storing any multibyte character in a
6598 string. Convert unibyte string to multibyte if necessary.
6599
11270583
KH
6600 * xfns.c (x_encode_text): New function.
6601 (x_set_name): Use x_encode_text.
6602 (x_set_title): Likewise.
6603
6604 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
6605
6606 * xterm.h (x_encode_text): Add prototype.
6607
bc75b4fd
DL
66082000-07-20 Dave Love <fx@gnu.org>
6609
6610 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
6611 xfree, not free.
6612
48c14970
EZ
66132000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
6614
6615 * msdos.c (help_echo_window): New variable.
6616 (syms_of_msdos): Initialize and staticpro it.
6617 (IT_note_mode_line_highlight): Set help_echo_window.
6618 (IT_note_mouse_highlight): Ditto.
6619 (dos_rawgetc): Store help_echo_window in the second event produced
6620 for HELP_EVENTs.
6621
6622 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
6623 Record the object that generated the help echo and the position of
6624 that object in help_echo_object and help_echo_pos. Record that
6625 some glyphs in a row are displayed in mouse-face.
6626 (IT_update_begin): Don't clear mouse highlight unless one of the
6627 enabled glyph rows is marked as being displayed in mouse-face.
6628 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
6629 and position recorded in help_echo_object and help_echo_pos to the
6630 event queue.
6631 (IT_menu_display): Accept a new argument PN: the pane number of
6632 the current menu pane. Record the pane number and the item
6633 number of the item which has associated help string.
6634 (XMenuActivate): Update the prototype for help_callback in
6635 function declaration. Call IT_menu_display with the current menu
6636 pane number as an additional argument. Call help_callback with
6637 two additional arguments: the pane number and the item number of
6638 the menu item associated with the help text.
6639 (help_echo_object, help_echo_pos): New variables.
6640 (syms_of_msdos): Initialize them and staticpro help_echo_object.
6641
6642 * msdos.h (XMenuActivate): Update prototype.
6643
4279296d
GM
66442000-07-19 Gerd Moellmann <gerd@gnu.org>
6645
47db06aa
GM
6646 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
6647 Add some more prototypes.
6648
6649 * xterm.c, xterm.h: Add some more prototypes.
6650
6651 * lisp.h (Fnext_single_char_property_change): Add prototype.
6652
6653 * dispnew.c (direct_output_for_insert): Remove confusing
6654 outer local variable mouse_face_overwritten_p.
6655 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
6656
4279296d
GM
6657 * alloc.c (allocate_string_data): Don't copy old string contents.
6658
670acd62
KH
66592000-07-19 Kenichi Handa <handa@etl.go.jp>
6660
6661 * coding.c (code_convert_region): Delete text properties before
6662 shrinking the conversion region.
6663
7cea38bc
GM
66642000-07-18 Gerd Moellmann <gerd@gnu.org>
6665
dc1cac59
GM
6666 * dispnew.c (update_text_area): Write the whole row if it
6667 has mouse-face in it.
6668
85a8aca9
GM
6669 * xfaces.c (face-alternative-font-family-alist): Remove
6670 DEFVAR_LISP; staticpro instead.
6671
34a7a267 6672 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
6673 new arguments.
6674
6675 * keyboard.c (show_help_echo): Add parameter WINDOW.
6676 (read_char): Call show_help_echo with window extracted from Lisp
6677 help event.
6678 (gen_help_event): Add parameter WINDOW.
6679
6680 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
6681
6682 * xterm.c (help_echo_window): New variable.
6683 (note_mouse_highlight, note_tool_bar_highlight): Set
6684 help_echo_window.
6685 (XTread_socket): Pass help_echo_window to gen_help_event.
6686 (syms_of_xterm): Initialize and staticpro help_echo_window.
6687
f8276b77
DL
66882000-07-18 Dave Love <fx@gnu.org>
6689
6690 * Makefile.in: Fix dependencies of blockinput.h on atimer.h,
6691 systime.h.
6692
088831a6
GM
66932000-07-18 Gerd Moellmann <gerd@gnu.org>
6694
3d6cd763
GM
6695 * alloc.c (allocate_string_data): If string had already data
6696 assigned, copy old contents to new string data.
6697
6698 * coding.c (syms_of_coding): Fix typo in spelling of variable
6699 `inhibit-iso-escape-detection'.
6700
088831a6
GM
6701 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
6702
6703 * Makefile.in: Add dependencies on dispextern.h.
6704 (alloca.o): Don't define malloc and define EMACS_FREE instead of
6705 `free'; both can conflict with system header files.
6706
bc8a8d55
KH
67072000-07-18 Kenichi Handa <handa@etl.go.jp>
6708
6709 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
6710 undefined.
6711
069f5950
DL
67122000-07-18 Dave Love <fx@gnu.org>
6713
6714 * window.c (Fwindow_list): Declare arg `window'.
6715
aa96c820
KH
67162000-07-18 Kenichi Handa <handa@etl.go.jp>
6717
6718 * coding.c (setup_coding_system): Don't override the explicitly
6719 specified designations.
6720
06be8d32
MB
67212000-07-15 Miles Bader <miles@gnu.org>
6722
6723 * editfns.c (char_property_eq, char_property_stickiness): Renamed
6724 from `text_property_eq' and `text_property_stickiness', respectively.
6725 (find_field, Fconstrain_to_field, char_property_eq)
6726 (char_property_stickiness): Changed to call char-property functions
6727 instead of text-property-only ones.
6728
6729 * textprop.c (Fnext_single_char_property_change): Made a subr (was
6730 `next_single_char_property_change'). Do more error checking, and
6731 cleanup limit behavior.
6732 (Fprevious_single_char_property_change): New function.
6733 (syms_of_textprop): Initialize new subrs.
6734
6735 * xdisp.c (display_prop_end, invisible_text_between_p):
6736 Call Fnext_single_char_property_change instead of
6737 next_single_char_property_change.
6738
3fddcdc3
JR
67392000-07-15 Jason Rumney <jasonr@gnu.org>
6740
6741 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
6742 after menu is finished with.
6743 (add_menu_item): Only consider wv->title as a menu title.
6744 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
6745
6746 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
6747 null title.
6748 (FONT_REGEXP): Remove unused macro, and its sub-components.
6749 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
6750
6751 * w32term.c (help_echo_object, help_echo_pos): New variables.
6752 (note_mode_line_highlight): Store additional information about the
6753 help-echo in help_echo_object and help_echo_pos. Check both
6754 `local-map' and `keymap' properties for changing the cursor
6755 (note_mouse_highlight): Store additional information about the
6756 help-echo in help_echo_object and help_echo_pos.
6757 (note_tool_bar_highlight): Set help_echo_object to nil and
6758 help_echo_pos to -1.
6759 (w32_read_socket): Use gen_help_event instead of filling
6760 input_events manually.
6761 (syms_of_w32term): Staticpro help_echo_object.
6762 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
6763 set, arrange for a mouse-highlight redisplay in
6764 XTframe_up_to_date.
6765 (x_clear_mouse_face): New function.
6766 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
6767 (x_update_window_begin): No need to turn off the mouse
6768 highlight here.
6769 (show_mouse_face): Set the mouse_face_p flag of glyph rows
6770 depending on whether they contain glyphs highlighted in
6771 mouse-face.
6772 (x_fill_stretch_glyph_string): Consume runs of stretch
6773 glyphs instead of a single one.
6774 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
6775 with new argument list.
6776 (x_set_glyph_string_gc): Make sure the face's GC is valid.
6777 (x_append_glyph, x_append_composite_glyph)
6778 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
6779 changes in struct glyph starting 1999-12-27. See comments for
6780 xterm.c on 2000-07-05.
6781
178c5d9c
SS
67822000-07-14 Sam Steingold <sds@gnu.org>
6783
6784 * xfaces.c (realize_x_face): Fix the last patch:
6785 check `default_face' before dereferencing.
6786
6fe533f6
DL
67872000-07-14 Dave Love <fx@gnu.org>
6788
069f5950 6789 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 6790
dd7b81cf
KH
67912000-07-14 Kenichi Handa <handa@etl.go.jp>
6792
0693904a 6793 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 6794 default_face's fontset, not using the default fontset.
0693904a 6795
dd7b81cf
KH
6796 * coding.c (inhibit_iso_escape_detection): New variable.
6797 (syms_of_coding): Make it a Lisp variable.
6798 (detect_coding_iso2022): If inhibit_iso_escape_detection is
6799 nonzero, ignore ISO2022's escape sequence.
6800
d5aa31d8
GM
68012000-07-14 Gerd Moellmann <gerd@gnu.org>
6802
e5acf0ca
GM
6803 * alloca.c (malloc) [emacs]: Define as xmalloc.
6804
bd23a692
GM
6805 * xfns.c (Fx_show_tip): If frame parameters contain a position,
6806 use that instead of the mouse position. Add parameters DX and DY.
6807
6808 * dispextern.h (Fx_show_tip): Adjust number of parameters
6809 in prototype.
6810
9662da0b
GM
6811 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
6812 if HELP is a function, call it with OBJECT and POS as parameters
6813 to get the help to display.
6814 (gen_help_event, kbd_buffer_store_help_event): New functions.
6815 (kbd_buffer_get_event): Construct the Lisp help-event differently.
6816 (read_char): Call show_help_echo with new parameters.
6817
178c5d9c 6818 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
6819 Add prototypes.
6820
6821 * xterm.c (help_echo_object, help_echo_pos): New variables.
6822 (note_mode_line_highlight): Store additional information about the
6823 help-echo in help_echo_object and help_echo_pos. Check both
6824 `local-map' and `keymap' properties for changing the cursor
6825 (note_mouse_highlight): Store additional information about the
6826 help-echo in help_echo_object and help_echo_pos.
6827 (note_tool_bar_highlight): Set help_echo_object to nil and
6828 help_echo_pos to -1.
6829 (XTread_socket): Use gen_help_event instead of filling
6830 input_events manually.
6831 (syms_of_xterm): Staticpro help_echo_object.
6832
6833 * xmenu.c (menu_highlight_callback): Use
6834 kbd_buffer_store_help_event instead of setting up and input_event
6835 structure manually.
6836
6837 * xdisp.c (eval_form): GCPRO argument sexpr.
6838 (call_function): New function.
6839 (handle_single_display_prop): Use call_function and FUNCTIONP
6840 instead of checking whether if font_height is a symbol and
6841 using eval_form.
6842
6843 * eval.c (internal_condition_case_2): New function.
6844
6845 * lisp.h (FUNCTIONP): New macro.
6846 (internal_condition_case_2, call_function): Add prototypes.
6847
d5aa31d8
GM
6848 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
6849 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
6850 Always set `arg' member of input_events.
6851 (construct_menu_click): Unused function removed.
6852
6853 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
6854
6855 * w32term.c (construct_mouse_click, construct_mouse_wheel)
6856 (construct_drag_n_drop, x_scroll_bar_handle_click)
6857 (w32_read_socket): Always set `arg' member of input_events.
6858
6859 * keyboard.c (show_help_echo): Use eval_form. Add comment.
6860
6861 * lisp.h (eval_form): Add prototype.
6862
6863 * xdisp.c (eval_form): Make it externally visible.
6864
0f1a9b23
GM
68652000-07-13 Gerd Moellmann <gerd@gnu.org>
6866
6867 * xterm.c (x_handle_tool_bar_click): Store the frame in the
6868 frame_or_window slot of TOOL_BAR_EVENT input events instead of
6869 consing. For prefix events, store the frame in the `arg' slot of
6870 the event, otherwise store the key there.
6871 (XTread_socket): Instead of consing, use the frame_or_window slot
6872 of HELP_EVENTs for the frame, and the `arg' slot for the help
6873 string.
6874
6875 * xmenu.c (menu_highlight_callback): Store help string in the
6876 `arg' member of the input event; don't cons.
6877 (menubar_selection_callback): Use the `arg' slot of input events
6878 to queue additional information, instead of consing.
6879
6880 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
6881
6882 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
6883 TOOL_BAR_EVENTs.
6884 (w32_read_socket): Adapt to changes in HELP_EVENTs.
6885
6886 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
6887 input events to queue additional information, instead of consing.
6888
6889 * keyboard.c (kbd_buffer_gcpro): Renamed from
6890 kbd_buffer_frame_or_window. Now used for all Lisp objects
6891 referenced from the input queue.
6892 (kbd_buffer_store_event): Always use structure assignment for
6893 copying input events. Record all Lisp objects referenced from
6894 events in kbd_buffer_gcpro.
6895 (kbd_buffer_get_event): Construct Lisp `help-echo' events
6896 differently from input events. Test for prefix menu_bar_events
6897 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
6898 event in kbd_buffer_gcpro to nil.
6899 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
6900 frame_or_window is equal to its arg member as prefix events.
6901 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
6902 used by an input event to nil.
6903 (init_keyboard): Use two times the size of the input queue
6904 for kbd_buffer_gcpro.
6905 (syms_of_keyboard): Likewise.
6906
6907 * emacs.c (handle_USR2_signal, handle_USR1_signal): Use
6908 USER_SIGNAL_EVENT.
6909
6910 * termhooks.h (struct input_event): Add member `arg'.
6911 (MENU_BAR_EVENT): Renamed from menu_bar_event.
6912 (USER_SIGNAL_EVENT): Renamed from user_signal.
6913
6914 * xfaces.c (ASET): Remove definition.
6915
6916 * lisp.h (AREF, ASET, ASIZE): New macros.
6917
6918 * fontset.c (AREF, ASIZE): Remove definitions.
6919
6920 * fns.c (AREF): Remove definition.
178c5d9c 6921
0f1a9b23
GM
6922 * composite.c (AREF): Remove definition.
6923
712eaef2
GM
69242000-07-12 Gerd Moellmann <gerd@gnu.org>
6925
d8ee7803
GM
6926 * dispnew.c (redraw_overlapped_rows): Add missing local.
6927 (scrolling_window): Remove debug code.
6928
712eaef2
GM
6929 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
6930 Before scrolling, turn off a mouse-highlight in the window
6931 being scrolled.
6932
6933 * xterm.c (x_update_window_end): Add parameter
6934 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
6935 redisplay in XTframe_up_to_date.
6936 (x_clear_mouse_face): New function.
6937 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
6938
6939 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
6940 current glyph row.
6941 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
6942 it when any row is written to that contains glyphs highlighted in
6943 mouse-face.
6944 (update_window): Call the window update end hook with new
6945 parameter MOUSE_FACE_OVERWRITTEN_P.
6946 (direct_output_for_insert): Give up if row contains mouse-face.
6947
6948 * dispextern.h (struct redisplay_interface): Add parameter
6949 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
6950 (clear_mouse_face): New function pointer member.
6951
02010917
SM
69522000-07-11 Stefan Monnier <monnier@cs.yale.edu>
6953
6954 * syntax.c (back_comment): Use one switch rather than a few `if's.
6955 Obey open_paren_in_column_0_is_defun_start.
6956 When reverting to the `slow' method, try to nicely handle the case
6957 of nested comments by checking that the comment-starter we found
6958 does indeed match the comment-ender.
6959 (scan_sexps_forward, scan_sexps_forward):
6960 Ignore excessive opening parenthesis rather than throwing an error.
6961
d76c03ea
GM
69622000-07-11 Gerd Moellmann <gerd@gnu.org>
6963
6964 * doc.c (Fsubstitute_command_keys): Handle case that a GC
6965 in Fwhere_is_internal or get_keymap_1 relocates string contents.
6966
6967 * dispnew.c (direct_output_forward_char): Give up if currently
6968 displaying a message instead of the minibuffer contents.
6969
6970 * xterm.c (x_update_window_begin): No need to turn off the mouse
6971 highlight here.
6972 (show_mouse_face): Set the mouse_face_p flag of glyph rows
6973 depending on whether they contain glyphs highlighted in
6974 mouse-face.
6975
6976 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
6977 compare the mouse_face_p flags of both rows.
6978
6979 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
6980
d55ead18
EZ
69812000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
6982
6983 * keyboard.c (show_help_echo): Accept additional parameter
6984 ok_to_overwrite_keystroke_echo.
6985 (read_char): Call show_help_echo with a zero
6986 ok_to_overwrite_keystroke_echo argument.
6987 * keyboard.h (show_help_echo): Update prototype of
6988 show_help_echo.
6989 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
6990 ok_to_overwrite_keystroke_echo argument.
6991 * w32menu.c (w32_menu_display_help): Call show_help_echo with
6992 non-zero ok_to_overwrite_keystroke_echo argument.
6993
df75b1a3
GM
69942000-07-10 Gerd Moellmann <gerd@gnu.org>
6995
4b92c49a
GM
6996 * xdisp.c (try_window_id): If changes are all below what is
6997 displayed in the window, and point is in the window, we still
6998 might have to find point on the display.
6999
7000 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
7001 glyphs instead of a single one.
7002 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
7003 with new argument list.
7004 (x_set_glyph_string_gc): Make sure the face's GC is valid.
7005
df75b1a3
GM
7006 * keymap.c (get_keymap_1): Add comment that this function can GC.
7007 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
7008 comment that functions can GC.
7009 (Fset_keymap_parent): GCPRO arg KEYMAP.
7010
4314cf3e
EZ
70112000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
7012
7013 * msdos.c (XMenuActivate): After exiting the menu, restore the
7014 echo area message and erase it.
7015
ab49ce15
KH
70162000-07-10 Kenichi Handa <handa@etl.go.jp>
7017
7018 * fontset.c (Ffontset_info): Make the return value more compatible
7019 with that of Emacs 20.
7020
090a072f
GM
70212000-07-07 Gerd Moellmann <gerd@gnu.org>
7022
7023 * eval.c (Fsignal): Handle case that backtrace_list is null.
7024
f92de4a6
KH
70252000-07-07 Kenichi Handa <handa@etl.go.jp>
7026
7027 * ccl.c (Fccl_execute): Typo fixed.
7028
dd8888a1
GM
70292000-07-06 Gerd Moellmann <gerd@gnu.org>
7030
e5c81191 7031 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 7032
dd8888a1
GM
7033 * window.c (Fwindow_list): Reverse list at the end.
7034 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
7035 means allow windows on OWINDOW's frame, only.
7036 (window_loop): Simplified; use Fwindow_list.
7037
7038 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
7039
485266d0
GM
70402000-07-05 Gerd Moellmann <gerd@gnu.org>
7041
7042 * xterm.c (XTread_socket): Increment handling_signal at the start,
7043 decrement it at the end.
7044
7045 * eval.c (handling_signal): New variable.
7046 (Fsignal): Abort if handling_signal is non-zero.
7047
7048 * lisp.h (handling_signal): External declaration.
178c5d9c 7049
485266d0
GM
7050 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
7051
80fcd514
KR
70522000-07-05 Ken Raeburn <raeburn@gnu.org>
7053
7054 Sound support for NetBSD through "Linux emulation" support:
7055 * config.in (HAVE_SOUNDCARD_H): Undef.
7056 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
7057 * Makefile.in (LIBSOUND): New variable.
7058 (LIBES): Include it.
7059 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and
7060 <soundcard.h>.
7061 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined
7062 elsewhere.
7063 (vox_open): Use DEFAULT_SOUND_DEVICE.
7064 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
7065
d5c5cddd
GM
70662000-07-05 Gerd Moellmann <gerd@gnu.org>
7067
7068 * print.c (print_error_message): If Vsignaling_function is set,
7069 show it in *Messages*.
7070
7071 * lisp.h (Vsignaling_function): External declaration.
7072
7073 * eval.c (Vsignaling_function): New variable.
7074 (Fsignal): Compute it.
7075 (syms_of_eval): Staticpro it.
7076
65171e3a
DL
70772000-07-05 Dave Love <fx@gnu.org>
7078
7079 * syswait.h: Use the autoconf recommended approach. Old code
7080 #if'd out in case we need to revert.
7081
178c5d9c 7082 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 7083
e2c46326
AI
70842000-07-05 Andrew Innes <andrewi@gnu.org>
7085
7086 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
7087 when non-NULL instead of __morecore, to take account of buffer
7088 memory. This also solves a problem with spurious memory warnings
7089 on Windows.
7090
7091 * ralloc.c: Make real_morecore non-static.
7092
7093 * eval.c (internal_condition_case): Comment out abort if
7094 interrupt_input_blocked is not zero.
7095
7096 * makefile.nt: Add support for `bootstrap' and related targets.
7097 Include minimal debug info in emacs.exe in release build.
7098 Remove all dependencies on lisp.h, and fixup some others.
7099
7100 * w32.c (init_environment): Install code from 20.7 for providing
7101 default values for environment variables, based on the
7102 executable's own location.
7103 (map_w32_filename): Handle filenames that are longer than
7104 MAX_PATH.
7105 (sys_socket): Install socket inheritance bug fix from 20.7.
7106
7107 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
7108 here via blockinput.h).
7109
a027a91b
SM
71102000-07-05 Stefan Monnier <monnier@cs.yale.edu>
7111
e4b31601
SM
7112 * w32menu.c (w32_menu_display_help):
7113 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
7114
7115 * keyboard.h (show_help_echo): Declare.
7116
7117 * keyboard.c (show_help_echo): New function, extracted from read_char.
7118 Feval its `msg' argument if it's a cons cell.
7119 (read_char): Use it.
4cf8d9d5 7120 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 7121
178c5d9c 7122 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 7123 (note_tool_bar_highlight, XTread_socket):
178c5d9c 7124 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
7125 (dos_rawgetc):
7126 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
7127 (note_tool_bar_highlight, w32_read_socket):
7128 Do not gratuitously ignore non-string `help-echo' properties.
7129
88d75730
GM
71302000-07-05 Gerd Moellmann <gerd@gnu.org>
7131
969f7e79
GM
7132 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
7133
71201b00
GM
7134 * window.c (delete_all_subwindows): Reset Vwindow_list.
7135
88d75730
GM
7136 * xterm.c (x_append_glyph, x_append_composite_glyph)
7137 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
7138 changes in struct glyph starting 1999-12-27. Some bit-fields of
7139 struct glyph were not set, which made glyphs unequal when compared
7140 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
7141 effects were the result. This also depended on the contents of
7142 memory returned by xmalloc. If flickering happens again, activate
7143 the code in clear_glyph_row that's in #if 0. If the flickering is
7144 gone with that, chances are that it is caused by something
7145 similar.
7146
7147 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 7148
88d75730
GM
7149 * dispextern.h: Add some comments.
7150
7151 * window.c (add_window_to_list): Add parameter LIST.
7152 (window_list): Order list so that, for each frame, windows are
7153 in canonical order, and so that frames appear in the list in
7154 the order given by Vframe_list.
7155 (next_window): Reverse the handling of NEXT_P.
7156
53654733
GM
71572000-07-04 Gerd Moellmann <gerd@gnu.org>
7158
87efd256
GM
7159 * window.c (Vwindow_list): New variable.
7160 (make_window, delete_window): Set Vwindow_list to nil.
7161 (check_window_containing): New function.
7162 (window_from_coordinates): Rewritten.
7163 (add_window_to_list, window_list, candidate_window_p)
7164 (decode_next_window_args, next_window): New functions.
7165 (Fnext_window, Fprevious_window): Rewritten in terms of
7166 next_window.
7167 (Fwindow_list): New function.
7168 (Fother_window): Cleaned up.
7169 (foreach_window): Add a longer "variable argument list". Let
7170 callback function return 0 to indicate that cycling over windows
7171 should stop.
7172 (foreach_window_1): Likewise.
7173 (freeze_window_start): Return int.
7174 (init_window): New function.
7175 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
7176
7177 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
7178 input_event with bzero.
7179 (main): Call init_window.
7180
53654733
GM
7181 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
7182 a menu filter.
7183
4a8c194f
KH
71842000-07-04 Kenichi Handa <handa@etl.go.jp>
7185
7186 * composite.h (make_composition_value_copy): Extern it.
7187
7188 * composite.c (make_composition_value_copy): New function.
7189
7190 * editfns.c (Fformat): While copying text properties, make each
7191 composition property value a copy.
7192
7193 * fns.c (concat): While copying text properties, make each
7194 composition property value a copy.
7195
831a6cb0
GM
71962000-07-03 Gerd Moellmann <gerd@gnu.org>
7197
2f516940
GM
7198 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
7199
178c5d9c 7200 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
7201 marked already.
7202
831a6cb0
GM
7203 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
7204 include those frames as candidates which have their focus
7205 redirected to the minibuffer frame.
7206
d9c4f922
SM
72072000-07-03 Stefan Monnier <monnier@cs.yale.edu>
7208
7209 * fns.c (Fputhash): Return `value' rather than nil.
7210
3780bc22
GM
72112000-06-30 Gerd Moellmann <gerd@gnu.org>
7212
97d176db
GM
7213 * frame.c (next_frame): Don't check focus redirection in case
7214 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
7215 unless their focus is redirected, which contradicts the
7216 specification of next-frame, and leads to infinite loops in
7217 certain situations when cycling through windows with next-window.
7218
dca9961d
KH
72192000-06-30 Kenichi Handa <handa@etl.go.jp>
7220
7221 * coding.c (code_convert_region): Even if the length of text is
7222 zero, try to convert it if coding->type is coding_type_ccl.
7223 (decode_coding_string, encode_coding_string): Likewise.
7224
d5483ab1
GM
72252000-06-28 Gerd Moellmann <gerd@gnu.org>
7226
af5c25e1 7227 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 7228 the display if windows_or_buffers_changed.
af5c25e1
GM
7229
7230 * dispnew.c (struct row_entry): New structure.
7231 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
7232 (row_table_size, old_lines, new_lines, old_lines_size)
7233 (new_lines_size, run_pool, runs_size, runs): New variables.
7234 (add_row_entry): New function.
7235 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 7236 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
7237 holding them in local variables. Use a larger hash table whose
7238 size depends on glyph matrix sizes. Don't use bzero to clear the
7239 hash table; instead, clear used slots only.
7240
7241 * fns.c (next_almost_prime): Make it externally visible.
7242
7243 * lisp.h (next_almost_prime): Add prototype.
7244
d5483ab1
GM
7245 * s/isc4-0.h (sigunblock): Define.
7246
7247 * s/sco5.h (sigunblock): Define.
7248
93e40f40
DL
72492000-06-27 Dave Love <fx@gnu.org>
7250
7251 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
7252 (moved to osf5-0.h).
7253 [!NOT_C_CODE]: Protect string.h stuff.
7254
7255 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
7256 (sys_siglist, NSIG): Definitions moved here from osf1.h.
7257
3c4b7685
GM
72582000-06-27 Gerd Moellmann <gerd@gnu.org>
7259
97d176db 7260 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
7261 below the last line from the needed window height.
7262
32cad0aa
SM
72632000-06-26 Stefan Monnier <monnier@cs.yale.edu>
7264
7265 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
7266 (Fwidget_get): Use it.
7267 (syms_of_fns): Defsubr it.
7268
2c69ced2
GM
72692000-06-26 Gerd Moellmann <gerd@gnu.org>
7270
178c5d9c 7271 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
7272 display info for XIM.
7273 (xim_open_dpy): Likewise.
7274 (xim_close_dpy): Don't free the display info's XIM.
7275
7276 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
7277
7278 * config.in (USE_XIM): New define.
7279
3fc720e4
GM
7280 * keymap.c (get_keyelt): For menu-items containing a `:filter
7281 FILTER', apply FILTER to the menu-item's definition to get the
7282 real definition to use.
7283
7284 * lisp.h (QCfilter): External declaration.
7285
2c69ced2
GM
7286 * xfns.c (Fimage_size): New function.
7287 (syms_of_xfns): Defsubr it.
7288
f978b2a2
AS
72892000-06-26 Andreas Schwab <schwab@suse.de>
7290
7291 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
7292 Fstring_as_unibyte.
7293
94cc7892
DL
72942000-06-25 Dave Love <fx@gnu.org>
7295
7296 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag,
7297 tgetnum.
7298
7299 * Makefile.in (blockinput.h): Depend on atimer.h.
7300 (atimer.h): Depend on systime.h.
7301
7302 * blockinput.h: Protect against multiple inclusion. Include
7303 atimer.h.
7304
7305 * atimer.h: Protect against multiple inclusion. Include
7306 systime.h.
7307
7308 * lisp.h (swap_in_global_binding): Declare.
7309
b8c24556
KR
73102000-06-24 Ken Raeburn <raeburn@gnu.org>
7311
7312 * process.c (Fopen_network_stream): Turn off atimers for duration
7313 of call to connect. (Patch from Gerd.)
7314
8cf8560b
DL
73152000-06-23 Dave Love <fx@gnu.org>
7316
511c7541
DL
7317 * ralloc.c: Maybe include unistd.h
7318
8cf8560b
DL
7319 * emacs.c (setgrp): Undefine before defining.
7320 (malloc_warning, set_time_zone_rule, index): Prototype.
7321
7322 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
7323 HAVE_STRUCT_TIMEZONE.
7324
7325 * s/osf1.h: Move string.h hack here from alpha.h and make it
7326 conditional.
7327 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
7328 _XOPEN_SOURCE.
7329 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
7330 (SOCKLEN_TYPE): Don't define.
7331
7332 * m/alpha.h: Remove string.h hack.
7333
7334 * s/osf5-0.h: New file.
7335
7336 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
7337 include time.h, done by systime.h.
7338 [__FreeBSD__]: Remove redundant includes.
7339
3fc720e4 7340 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
7341 (delete_temp_file): Return Qnil to avoid warning.
7342
7343 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
7344
7345 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
7346 HAVE_X_WINDOWS.
7347
7348 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
7349
7350 * composite.h (compose_text): Declare.
7351
7352 * xterm.c: Don't include sys/types.h unconditionally. Don't
7353 protect its inclusion with !USG (following xmenu.c).
7354
ea055732
GM
73552000-06-23 Gerd Moellmann <gerd@gnu.org>
7356
7357 * xfns.c (x_create_tip_frame): Initialize frame's colors like
7358 in x_create_frame.
7359
74b01b80
EZ
73602000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
7361
7362 * coding.c (decode_eol_post_ccl): Special handling for undecided
7363 and inconsistent EOL types.
7364
64f3a166
GM
73652000-06-22 Gerd Moellmann <gerd@gnu.org>
7366
16cf31f7
GM
7367 * xrdb.c (x_load_resources): Add default resource for scroll bar's
7368 trough color and main window's background color.
7369
178c5d9c 7370 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events
16cf31f7
GM
7371 differently.
7372
7373 * xterm.h (Xt_app_con): External declaration.
7374
7375 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 7376
486a103d
GM
7377 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
7378
64f3a166
GM
7379 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
7380 (handle_invisible_prop): Record the start of invisible text in
7381 it->add_overlay_start.
7382 (struct overlay_entry): Add member `overlay'.
7383 (handle_overlay_change): Simplify.
7384 (next_overlay_string): After having processed overlay strings at the
7385 end of the buffer, record that fact in
7386 it->overlay_strings_at_end_processed_p.
7387 (compare_overlay_entries): If before- and after-strings come
7388 from the same overlay, let before-strings come first.
7389 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
7390 (load_overlay_strings): Take it->add_overlay_start into account
7391 when adding overlay strings.
7392
7393 * dispextern.h (struct it): Add member add_overlay_start.
7394
bb746ea6
DL
73952000-06-22 Dave Love <fx@gnu.org>
7396
7397 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
7398
7399 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
7400
a8f573f3
KH
74012000-06-22 Kenichi Handa <handa@etl.go.jp>
7402
7403 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
7404 is greater than 0.
7405
9f2bbc92
DL
74062000-06-21 Dave Love <fx@gnu.org>
7407
178c5d9c 7408 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 7409
3ee5041c
SM
74102000-06-21 Stefan Monnier <monnier@cs.yale.edu>
7411
7412 * syntax.c (back_comment): Simplify string-parity counting (with
7413 the added benefit of handling multiple string-styles as long as
7414 they are not intertwined).
7415 Jump to the slow code as soon as a comment starter is found in
7416 a "string_lossage" position. Fixes the case: " /* " /* " */.
7417
4c343001
DL
74182000-06-21 Dave Love <fx@gnu.org>
7419
7420 * Makefile.in: Use GETLOADAVG_LIBS.
7421
7422 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
7423 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
7424
e6365855
SM
74252000-06-20 Stefan Monnier <monnier@cs.yale.edu>
7426
7427 * syntax.c (describe_syntax): Recognize the `n'estable bit.
7428 (Fforward_comment, scan_lists):
7429 Check the comstyle of single-char comment-starters.
7430 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
7431 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
7432 Check the comstyle of single-char comment-starters.
7433 Clarify control-flow around the Scomment case.
e6365855 7434
5700d2cc
DL
74352000-06-20 Dave Love <fx@gnu.org>
7436
d355bd8a
SM
7437 * fns.c (make_hash_table, maybe_resize_hash_table):
7438 Cast arg of next_almost_prime.
5700d2cc 7439
178c5d9c 7440 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
7441
7442 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
7443 and unistd.h.
7444
4a27bdfb
GM
74452000-06-20 Gerd Moellmann <gerd@gnu.org>
7446
a61d762c
GM
7447 * keyboard.c (adjust_point_for_property): Check if display
7448 property should be treated as intangible by looking at its
7449 value.
7450
178c5d9c 7451 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
7452 (display_prop_intangible_p): New functions.
7453
7454 * dispextern.h (display_prop_intangible_p): Add prototype.
7455
7456 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 7457
4a27bdfb
GM
7458 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
7459 argument to sigprocmask.
7460
7461 * s/sco5.h (sigblock): Redefined to pass a pointer as second
7462 argument to sigprocmask.
7463
7464 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
7465 sigprocmask_set, and pass a pointer to it to sigprocmask.
7466
7467 * sysdep.c (sigprocmask_set): New variable.
7468
7469 * fileio.c (make_temp_name): Don't use `%s' in string passed to
7470 report_file_error.
7471
427ec082
SS
74722000-06-20 Sam Steingold <sds@gnu.org>
7473
7474 * xrdb.c: Don't declare xmalloc, xrealloc.
7475
8972fe79 74762000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
7477
7478 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
7479 (re_comp): Cast gettext return value to avoid complaints when
7480 !HAVE_LIBINTL.
7481
074b6efe
DL
74822000-06-20 Dave Love <fx@gnu.org>
7483
f85c008a
DL
7484 * m/stride.h, m/mips.h: Don't define HAVE_GETWD,
7485 HAVE_GETTIMEOFDAY.
7486
5700d2cc 7487 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 7488
d355bd8a 7489 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
7490
7491 * m/alpha.h: Don't declare xmalloc, xrealloc.
7492
0af4f205
DL
7493 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
7494
7495 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
7496
7497 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
7498
7499 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
7500 HAVE_GETWD.
7501
074b6efe
DL
7502 * keyboard.h (poll_for_input_1): Declare.
7503
7504 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
7505
7506 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
7507
7508 * doprnt.c: Don't declare xmalloc, xrealloc.
7509
7510 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
7511 (getenv, ctime, getwd): Removed.
7512 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
7513
7514 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
7515 x_set_tool_bar_lines.
7516
7517 * config.in: Add HAVE_GETWD. Move some definitions above
7518 machine/system includes.
7519
68a5e97b
KH
75202000-06-20 Kenichi Handa <handa@etl.go.jp>
7521
95417e1e
KH
7522 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
7523
68a5e97b
KH
7524 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
7525 contain information about ENCODING.
7526
7527 * fontset.c (FONTSET_ASCII): Use the first element of char table
7528 for an ASCII font, not defalt slot.
7529 (fontset_ref_via_base): If FONTSET doesn't contain information for
7530 C, try the default fontset.
7531 (make_fontset): Don't copy the default fontset.
7532 (fontset_font_pattern): Likewise.
7533 (accumulate_font_info): If ELT is nil, use the corresponding
7534 element in the default fontset.
7535
3b4fa1b2
DL
75362000-06-19 Dave Love <fx@gnu.org>
7537
943e731c
DL
7538 * syntax.c (Fparse_partial_sexp): Doc fix.
7539
7540 * regex.h: Test PROTOTYPES as well as __STDC__.
7541
3b4fa1b2
DL
7542 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
7543 errno, strerror. Put text after #endif in comment.
7544
7545 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for
7546 pcc).
7547
7548 * xterm.c (x_frame_of_widget): Likewise.
7549
cdf0357b
GM
75502000-06-19 Gerd Moellmann <gerd@gnu.org>
7551
7552 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
7553 to Vfundamental_mode_abbrev_table.
7554
7555 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
7556 bogus objects are marked. This slows down GC by ~80 percent, but
7557 it might be worth trying when debugging GC-related problems.
7558 This feature requires conservative stack marking to be enabled.
7559
7560 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
7561 returns XLookupChars, reset `modifiers' to zero.
7562
998e9f8c
DL
75632000-06-19 Dave Love <fx@gnu.org>
7564
7565 * mktime.c: Unprotoized.
7566
18e21ce8 75672000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
7568
7569 * data.c (set_internal): If variable is frame-local,
7570 store the new value immediately into the frame parameter alist.
7571
140c4ac6
KR
75722000-06-19 Ken Raeburn <raeburn@gnu.org>
7573
14358466
KR
7574 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
7575 in the custom handler pointer.
7576
140c4ac6
KR
7577 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
7578 value, or checks for CHAR_META can fail when Lisp_Object is a
7579 union type.
7580 * keymap.c (get_keyelt): Likewise.
7581
10d7bf84
KH
75822000-06-19 Kenichi Handa <handa@etl.go.jp>
7583
7584 * ccl.h (struct ccl_program): New member eol_type.
7585 (struct ccl_spec): New member cr_carryover.
7586
7587 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
7588 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
7589
7590 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
7591 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
7592 (decode_eol_post_ccl): New function.
7593 (decode_coding): Don't detect EOL format here for CCL based coding
7594 systems.
7595 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
7596 decode_eol_post_ccl after running the CCL program.
7597 (code_convert_region): Don't detect EOL format here for CCL based
7598 coding systems.
7599 (decode_coding_string): Likewise.
7600
52e386c2
KR
76012000-06-18 Ken Raeburn <raeburn@gnu.org>
7602
7603 * charset.c (update_charset_table): Use XINT on "iso_final_char"
7604 when treating it as an integer.
7605
7606 * coding.h (encode_coding_string): Declare.
7607
7608 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
7609 it as an integer.
7610
7611 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
7612 "xkeymap" to avoid shadowing the "enum map_type" value that needs
7613 to be passed to get_local_map.
7614
7615 * sound.c (Fplay_sound): Don't call make_number on
7616 Frun_hook_with_args count argument.
7617
7618 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
7619 for lisp objects in X event structure data field, when lisp
7620 objects are represented with unions.
7621 (x_scroll_bar_to_input_event): Ditto.
7622
b357b9d4
KR
76232000-06-16 Ken Raeburn <raeburn@gnu.org>
7624
7625 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
7626 termination of string. Fix sense of test whether
7627 Vline_number_display_limit is an integer.
b357b9d4 7628
a871441d
GM
76292000-06-16 Gerd Moellmann <gerd@gnu.org>
7630
a9021acd
GM
7631 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
7632 only if HAVE_X_WINDOWS.
7633
6344985d
GM
7634 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
7635 of titles.
7636
427ec082 7637 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
7638 out of bounds.
7639
228b083e
EZ
76402000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
7641
7642 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
7643 of its headers.
7644
c25b53a2
KH
76452000-06-15 Kenichi Handa <handa@etl.go.jp>
7646
7647 * coding.c (decode_coding_emacs_mule): Always set src_base at the
7648 start of the while loop.
7649
a6981b11
GM
76502000-06-15 Gerd Moellmann <gerd@gnu.org>
7651
e9924e52
GM
7652 * atimer.c (alarm_signal_handler): Add forward declaration.
7653
a6981b11
GM
7654 * data.c (set_internal): Remove debug code.
7655
25fa6deb
GM
76562000-06-14 Gerd Moellmann <gerd@gnu.org>
7657
dce6b995
GM
7658 * Makefile.in (bootstrap-temacs): Add `-I../src'.
7659
9f817ea4
GM
7660 * unexec.c (toplevel) [COFF]: Include coff.h.
7661
7662 * s/lynxos.h: New file.
7663
7664 * keymap.c (Fsingle_key_description): Enclose function key and
7665 event symbol names in angle brackets.
7666
8a4e3c0c
GM
7667 * xdisp.c (setup_echo_area_for_printing): Call
7668 message_log_maybe_newline if message_buf_print is not set.
7669
7670 * print.c (printchar, strout): Don't check message_buf_print
427ec082 7671 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
7672 function does something useful even when message_buf_print is
7673 already set.
7674
25fa6deb
GM
7675 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines): New
7676 variables.
7677 (ensure_echo_area_buffers): Initialize echo buffer's
7678 truncate lines setting to nil.
7679 (with_echo_area_buffer): Don't set the echo buffer's truncate
7680 lines setting here.
8a4e3c0c 7681 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
7682 of message_truncate_lines.
7683 (resize_mini_window): Handle case that lines are truncated.
7684 (syms_of_xdisp): Initialize Qmessage_truncate_lines. DEFVAR_BOOL
7685 message-truncate-lines.
7686
7687 * keyboard.c (read_char): Bind message-truncate-lines to t
7688 while displaying a help-echo.
7689
7690 * lisp.h (Qmessage_truncate_lines): External declaration.
7691
163dcff3
GM
76922000-06-13 Gerd Moellmann <gerd@gnu.org>
7693
1681ead6
GM
7694 * xdisp.c (Vline_number_display_limit): Renamed from
7695 line_number_display_limit.
7696 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
7697 Extend documentation string. Initialize
7698 Vline_number_display_limit to nil meaning no limit.
7699 (decode_mode_spec): Use Vline_number_display_limit with its new
7700 meaning.
7701
163dcff3
GM
7702 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
7703
18e21ce8 77042000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
7705
7706 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 7707
163dcff3
GM
7708 * xfns.c (x_set_frame_parameters): Comment fix.
7709
7710 * frame.c (store_frame_param): Call swap_in_global_binding if the
7711 variable's current binding was chosen based on this frame.
7712
7713 * data.c (swap_in_global_binding): New function.
7714
a704139d
EZ
77152000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
7716
7717 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
7718 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
7719
9b6610db
EZ
77202000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
7721
7722 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
7723
c68833d2
JR
77242000-06-12 Jason Rumney <jasonr@gnu.org>
7725
7726 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
7727
7728 * w32.h (EMACS_W32_H): Renamed from _NT_H_
7729
7730 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
7731
7732 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
7733
ed1056b3
GM
77342000-06-12 Gerd Moellmann <gerd@gnu.org>
7735
7736 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
7737 (syms_of_xfaces): Defsubr Sdump_colors.
7738 (x_free_colors): Don't treat b&w specially on default visual.
7739 (x_free_dpy_colors): New function.
7740 (free_face_colors): Don't check visual class; it's done
7741 in x_free_colors.
7742
7743 * xterm.c (x_frame_of_widget): New function.
7744 (x_alloc_nearest_color_for_widget): Use it.
7745 (x_copy_dpy_color): New function.
7746 (x_destroy_window): Free various colors.
7747
5050a2ef
KH
77482000-06-12 Kenichi Handa <handa@etl.go.jp>
7749
7750 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
7751
7752 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
7753
7754 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
7755
7756 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
7757
7758 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
7759
fb1b041d
DL
77602000-06-11 Dave Love <fx@gnu.org>
7761
7762 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
7763
ff96b5f4
EZ
77642000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
7765
7766 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
7767
db8eeecd
GM
77682000-06-11 Gerd Moellmann <gerd@gnu.org>
7769
ed1056b3 7770 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
7771 to `XEvent *'.
7772
49b71c5f
KH
77732000-06-10 Kenichi Handa <handa@etl.go.jp>
7774
c479bd55
KH
7775 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
7776 (regex_compile): Fix the code for handling the case of single byte
7777 char and multibyte char being mixed in a range within [...].
7778
ff6a65c2
KH
7779 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
7780 and dst_multibyte members of coding.
7781
49b71c5f
KH
7782 * charset.c (update_charset_table): Update the table
7783 bytes_by_char_head.
7784 (init_charset_once): Initialize elements of bytes_by_char_head to
7785 1 except for leading codes for private charases.
7786
7787 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
7788 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte
7789 sequence.
7790
9e80b57d
KR
77912000-06-09 Ken Raeburn <raeburn@gnu.org>
7792
7793 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
7794 access the data it doesn't point to.
7795
f83fe4b4
GM
77962000-06-08 Gerd Moellmann <gerd@gnu.org>
7797
7798 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 7799 will be translated to a switch-frame event when reading the
f83fe4b4
GM
7800 event queue. This is necessary because Emacs otherwise won't
7801 perform a switch-frame to a new frame until some other event, for
7802 example a keystroke event, forces it to do so. This has various
7803 effects, one visible being that the cursor of a frame created with
7804 C-x 5 2 or switched to with a window manager key binding like
7805 A-TAB stays hollow because selected_window isn't on the newly
7806 focused frame until the switch-frame is performed.
7807
7808 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
7809 generating a switch-frame event if necessary.
7810
7811 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
7812
7813 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
7814 it's an integer.
7815
0890801b
KH
78162000-06-08 Kenichi Handa <handa@etl.go.jp>
7817
7818 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a
7819 charset.
7820
173cbca8
GM
78212000-06-07 Gerd Moellmann <gerd@gnu.org>
7822
3091c2a6
GM
7823 * window.c (displayed_window_lines): Take empty lines at
7824 the bottom of a window into account.
427ec082 7825
f38952fe
GM
7826 * window.c (displayed_window_lines): New function.
7827 (Fmove_to_window_line): Use displayed_window_lines to determine
7828 the number of lines to move, instead of using the window's height.
7829
7830 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
7831 to stop reading, even if the form read sets point to a different
7832 value when evaluated.
7833
427ec082 7834 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
7835 put the cursor.
7836
6ba6c818
KH
78372000-06-07 Kenichi Handa <handa@etl.go.jp>
7838
7839 * fileio.c (e_write): Free composition data if stored in
7840 coding->cmp_data.
7841
5f1aea9a
GM
78422000-06-06 Gerd Moellmann <gerd@gnu.org>
7843
666852af
GM
7844 * xdisp.c (display_line): Set row's and iterator's
7845 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
7846 Set cursor even if row ends in the middle of a character.
7847 (dump_glyph_row): Print values of new flags.
7848 (redisplay_window) <cursor movement in unchanged window>: When
7849 point has been moved forward, and PT is at the end of the cursor
7850 row, don't place the cursor in the next row if the cursor row ends
7851 in the middle of a character or at ZV.
7852
7853 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
7854 (struct glyph_row): Add starts_in_middle_of_char_p and
7855 ends_in_middle_of_char_p.
7856 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
7857 ends_in_middle_of_char_p flag.
7858 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
7859
d13f3e2e
GM
7860 * term.c (append_glyph): Revert change of 2000-06-06.
7861
7862 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
7863 padding glyph not fitting on line as whole character not
7864 fitting on line.
7865
5f1aea9a
GM
7866 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
7867 this isn't true for images with `:ascent 100'.
7868
10cda9b0
KH
78692000-06-06 Kenichi Handa <handa@etl.go.jp>
7870
ed00559d
KH
7871 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
7872 as modified if it is originally unmodified.
7873
10cda9b0
KH
7874 * term.c (encode_terminal_code): Change the way to check if
7875 terminal coding does any conversion.
7876 (append_glyph): Set glyph->pixel_width correctly.
7877
7878 * xdisp.c (display_line): While checking line continuation, pay
7879 attention to a padding glyph.
7880
1969fae2
GM
78812000-06-05 Gerd Moellmann <gerd@gnu.org>
7882
7883 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
7884
162ccef4
DL
78852000-06-05 Dave Love <fx@gnu.org>
7886
f19f32dd
DL
7887 * xdisp.c: Include fontset.h.
7888
7889 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
7890
7891 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
7892
7893 * dispnew.c: Conditionally include term.h.
7894
7895 * coding.h: Declare code_convert_string_norecord.
7896
7897 * frame.h (struct frame): Use volatile unconditionally.
7898
7899 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
7900
7901 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
7902
7903 * systime.h: Protect against multiple inclusion.
7904 (timezone) [USG5_4]: Define as time_t.
7905
7906 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
7907 (Foptimize_char_table, make_temp_name): Declare.
7908
7909 * Makefile.in (xdisp.o): Depend on fontset.h.
7910
7911 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
7912
7913 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
7914 (Foptimize_char_table, make_temp_name): Declare.
7915
427ec082 7916 * s/irix4-0.h:
162ccef4
DL
7917 * s/irix5-0.h:
7918 * s/netbsd.h: Don't define autoconfiscated MATHERR.
7919
2082fe81
DL
79202000-06-02 Dave Love <fx@gnu.org>
7921
7922 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
7923
dcf671d2
GM
79242000-06-02 Gerd Moellmann <gerd@gnu.org>
7925
7926 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 7927 result face, set flags in that face indicating that colors may not
dcf671d2
GM
7928 be freed.
7929
7930 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
7931 glyph, use the ASCII NUL character to determine the face.
7932
d42122a3
DL
79332000-06-02 Dave Love <fx@gnu.org>
7934
7935 * sysdep.c: Conditionally include stdlib.h, unistd.h.
7936 (VFORK_RETURN_TYPE): Remove.
427ec082 7937
d42122a3
DL
7938 * config.in: Add NO_MATHERR.
7939
dd432f16
DL
79402000-06-01 Dave Love <fx@gnu.org>
7941
90aa4ea8
DL
7942 * cmds.c (internal_self_insert): Don't check
7943 Vbefore_change_function, Vafter_change_function.
7944
7945 * insdel.c (signal_before_change, signal_after_change): Likewise.
7946
7947 * buffer.c (Vbefore_change_function, Vafter_change_function):
7948 Variables and their initializations deleted.
7949
2330c9d4
DL
7950 * callint.c (Fcall_interactively): Doc fix.
7951
dd432f16
DL
7952 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
7953
bf9e8804
DL
79542000-05-31 Dave Love <fx@gnu.org>
7955
7956 * textprop.c: Revert last change -- duplicated.
7957
3694b4ab
GM
79582000-05-31 Gerd Moellmann <gerd@gnu.org>
7959
7960 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
7961 in #if 0.
7962
7963 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
7964
f14156cd
JR
79652000-05-31 Jason Rumney <jasonr@gnu.org>
7966
8119aab8
JR
7967 * search.c (Fre_search_forward, Fre_search_backward)
7968 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
7969
f14156cd
JR
7970 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
7971
4aab9be3
JR
79722000-05-30 Jason Rumney <jasonr@gnu.org>
7973
7974 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
7975 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
7976
7977 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type
7978 member.
7979
7980 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
7981 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
7982 expand a nil default_filename.
7983
7984 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
7985 pointer to glyph_to_pixel_coords, not a frame.
7986
7987 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
7988 coding.h to dependencies.
7989
7990 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
7991
7992 * w32console.c (glyph_to_pixel_coords): Change first parameter to
7993 window pointer to be consistent with w32term.c and xterm.c.
7994
7995 * w32fns.c: Format and doc changes to bring closer to xfns.c.
7996 (VIETNAMESE_CHARSET): Define if not defined in system headers.
7997 (Qline_spacing, Qcenter): New variables.
7998 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
7999 (x_set_line_spacing): New function.
8000 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT
8001 macros.
8002 (x_specified_cursor_type): New function.
8003 (x_set_cursor_type): Use it.
8004 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
8005 and icon strings.
8006 (validate_x_resource_name, x_get_resource_string): Measure lengths
8007 of external strings in bytes.
8008 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
8009 GetTextExtentPoint32 with NULL title.
8010 (Fx_create_frame): Initialize Qline_spacing.
8011 (w32_load_system_font): Initialize font->double_byte_p.
8012 (x_to_w32_charset): Use Vw32_charset_info_alist.
8013 (Image, busy cursor, tooltip functions): Merged changes from
8014 xfns.c. Not yet functional on Windows.
8015
8016 * w32gui.h (W32FontStruct): Add double_byte_p member.
8017
8018 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
8019 (emacs_button_translation): Use it.
8020 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
8021 in `mask' to be set.
8022
8023 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
8024 menu strings.
8025
8026 * w32term.c: Format and doc changes to bring closer to xterm.c.
8027 (w32_char_font_type): New enum.
8028 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
8029 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
8030 (w32_encode_char): New function.
8031 (x_encode_char): Removed.
8032 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
8033 x_encode_char and w32_font_is_double_byte.
8034 (x_produce_image_glyph): Use image_ascent.
8035 (x_produce_glyphs): Use new version of w32_per_char_metric and
8036 handle NULL return value. Allow extra line spacing.
8037 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
8038 (w32_get_glyph_overhangs): Remove unicode_p param. Use
8039 w32_font_type member of glyph instead.
8040 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
8041 (fast_find_position): Make sure not to consider rows not visible
8042 in the window.
8043 (w32_read_socket) [WM_MENUSELECT]: Cannot call
8044 w32_menu_display_help with input blocked, as it can abort.
8045 (x_display_and_set_cursor): Choose cursor depending
8046 on buffer-local value of cursor_type.
8047 (x_draw_bar_cursor): Add parameter WIDTH.
8048
8049 * w32term.h (CP_DEFAULT): Define.
8050 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
8051
10fc3187
GM
80522000-05-30 Gerd Moellmann <gerd@gnu.org>
8053
8054 * search.c (Fre_search_forward, Fre_search_backward)
8055 (Fposix_search_backward, Fposix_search_forward): Doc fix.
8056
d0555360
KH
80572000-05-30 Kenichi Handa <handa@etl.go.jp>
8058
8059 * coding.c (detect_coding_iso2022): Fix code for checking
8060 CODING_CATEGORY_MASK_ISO_8_2.
8061
f1ad044f
SM
80622000-05-29 Stefan Monnier <monnier@cs.yale.edu>
8063
8064 * regex.c (PREFETCH_NOLIMIT): New function.
8065 (re_match_2_internal): Use it and adjust the end_match_2 logic.
8066
84ec3b4b
GM
80672000-05-29 Gerd Moellmann <gerd@gnu.org>
8068
66254a13
GM
8069 * syntax.c (find_defun_start): Move test for
8070 open_paren_in_column_0_is_defun_start outside of the loop.
8071
49e70dec
GM
8072 * xdisp.c (redisplay_window): Really switch buffers when
8073 displaying mode lines, and temporarily set selected_frame to the
8074 frame of the window that's redisplayed.
8075
84ec3b4b
GM
8076 * xfaces.c (free_realized_faces): Block/unblock input.
8077 (free_realized_multibyte_face): Ditto.
8078
869a3a14
DL
80792000-05-29 Dave Love <fx@gnu.org>
8080
8081 * textprop.c (Qkeymap): New variable.
8082 (syms_of_textprop): Intern it.
8083
8084 * keymap.c: Include intervals.h.
8085 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
8086
8087 * Makefile.in (keymap.o): Depend on intervals.h.
8088
8089 * keyboard.c (menu_bar_items, tool_bar_items)
8090 (Fexecute_extended_command): Deal with `keymap' property.
8091 (read_key_sequence): Track map from `keymap' property as well as
8092 `local_map'.
8093
8094 * intervals.c (get_local_map): Extra arg to allow looking for
8095 `keymap' too.
8096
8097 * intervals.h (map_property): New enum.
8098 (get_local_map): Extra arg using it.
8099 (Qkeymap): Declare.
8100
84ec3b4b 8101 * lisp.h (get_local_map): Don't declare here.
869a3a14 8102
89d0c844
KH
81032000-05-29 Kenichi Handa <handa@etl.go.jp>
8104
8105 * Makefile.in (callproc.o): Depend on composite.h.
8106
8107 * callproc.c: Include composite.h.
8108 (Fcall_process): Handle composition correctly.
8109
8110 * coding.h (coding_allocate_composition_data): Extern it.
8111 (coding_restore_composition): Likewise.
8112
8113 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
8114 yet allocated, finish decoding with result
8115 CODING_FINISH_INSUFFICIENT_CMP.
8116 (coding_allocate_composition_data): Make it non-static.
8117 (coding_restore_composition): Likewise.
8118
797a084a
EZ
81192000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
8120
8121 * charset.c (syms_of_charset): Revert last change.
8122
cf872af5
EZ
81232000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
8124
8125 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
8126 charsets as unibyte, with 1-column screen width. Sent by Kenichi
8127 Handa.
cf872af5 8128
5b1ae051
EZ
81292000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
8130
8131 * charset.c (syms_of_charset): Set width of character sets
8132 eight-bit-control and eight-bit-graphic to 1 column.
8133
34ec9ebe
GM
81342000-05-26 Gerd Moellmann <gerd@gnu.org>
8135
8136 * config.in (HAVE_SPEED_T): New define.
8137
8138 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
8139 `extern speed_t'.
8140
dd854dc2
DL
81412000-05-26 Dave Love <fx@gnu.org>
8142
8143 * coding.c (shrink_decoding_region): Initialize eol_conversion.
8144
8145 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
8146 (Fsubr_arity): New function.
8147 (syms_of_data): Install them.
8148
ba9f8f95
KH
81492000-05-26 Kenichi Handa <handa@etl.go.jp>
8150
0f3e0672
KH
8151 * charset.c (init_charset_once): Set the table bytes_by_char_head
8152 correctly.
8153
cebefb44
KH
8154 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
8155 the default fontset to what Emacs uses by default.
0f3e0672
KH
8156 (check_registry_encoding): This function deleted.
8157 (Fset_fontset_font): Remove the adhoc condition for the default
8158 fontset. Allow cons in FONTNAME.
cebefb44 8159
0f3e0672
KH
8160 * fns.c (map_char_table): Ignore char-table entries for
8161 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 8162
7a18af49
KR
81632000-05-25 Ken Raeburn <raeburn@gnu.org>
8164
8165 * emacs.c (main): Initialize keyboard syms before initializing
8166 window code, so face names are available.
8167
d2af47df
SM
81682000-05-25 Stefan Monnier <monnier@cs.yale.edu>
8169
8170 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
8171 of an anchor at the beginning of a shy-group.
8172
fc6a6a4e
GM
81732000-05-25 Gerd Moellmann <gerd@gnu.org>
8174
8175 * xdisp.c (handle_invisible_prop): Don't try to skip over
8176 invisible text if end of text is already reached.
8177
005f0d35
DL
81782000-05-25 Dave Love <fx@gnu.org>
8179
02513cdd
DL
8180 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
8181
005f0d35
DL
8182 * coding.c (encode_eol): Add null statement after label.
8183
89f6ca4e
EZ
81842000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
8185
8186 * w16select.c (Fw16_set_clipboard_data): Fix the change from
8187 2000-05-20.
8188
a4e1759e
KH
81892000-05-25 Kenichi Handa <handa@etl.go.jp>
8190
8191 * ccl.c (ccl_driver): Fix previous change.
8192
eacfd7fe
KH
81932000-05-25 Kenichi Handa <handa@etl.go.jp>
8194
46ab33a9
KH
8195 * coding.c (run_pre_post_conversion_on_str): Set point to the
8196 beginning of buffer before calling coding->post_read_conversion.
8197 (decode_coding_string): Give correct args to
8198 run_pre_post_conversion_on_str.
8199 (encode_coding_string): Likewise.
8200
eacfd7fe
KH
8201 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
8202 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
8203 eight-bit-graphic correctly.
8204
f8569325
DL
82052000-05-24 Kenichi HANDA <handa@etl.go.jp>
8206
8207 * fileio.c (Finsert_file_contents): Even if a file is not found,
8208 execute codes for setting up coding system. Call
8209 after-insert-file-functions unconditionally.
8210
04545643
GM
82112000-05-24 Gerd Moellmann <gerd@gnu.org>
8212
8213 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
8214 BSD_PGRPS are not defined.
8215
747d90ea
KH
82162000-05-24 Kenichi Handa <handa@etl.go.jp>
8217
8218 * charset.c (update_charset_table): Accept nil in LONG_NAME and
8219 DESCRIPTION.
8220 (syms_of_charset): Avoid building same strings.
8221
716e3b88
GM
82222000-05-23 Gerd Moellmann <gerd@gnu.org>
8223
8224 * lread.c (Fload): Add a comment about the meaning of
8225 Vuser_init_file being t.
8226
8227 * puresize.h (BASE_PURESIZE): Increase to 675000.
8228
8229 * s/gnu-linux.h (setpgrp): Don't define it here because this
8230 prevents compilation on GNU/Linux systems with glib 2.2.
8231
8232 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
8233 as setpgid.
427ec082 8234
9aeb39fa
EZ
82352000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
8236
8237 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
8238 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
8239 version.
8240 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
8241
29ced61b
KH
82422000-05-23 Kenichi Handa <handa@etl.go.jp>
8243
0574a2ed
KH
8244 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE
8245 unconditionally.
8246
3d80f24d
KH
8247 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
8248
8249 * term.c (encode_terminal_code): Set coding->src_multibyte
8250 properly.
8251
29ced61b
KH
8252 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
8253
d7e00792
KH
82542000-05-22 Kenichi Handa <handa@etl.go.jp>
8255
c9d80d38
KH
8256 * keyboard.c (read_char): Allow character codes 128..255 to be
8257 handled by input-method-function.
8258
d7e00792
KH
8259 * insdel.c (adjust_markers_for_replace): Fix previous change.
8260 (adjust_after_replace): If PREV_TEXT is nil, call
8261 adjust_markers_for_insert, not adjust_markers_for_replace.
8262
087121cc 82632000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 8264
087121cc
GM
8265 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
8266 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
8267 [HAVE_GRANDPT]: Define.
8268 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
8269
8270 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
8271 like SYSV_PTYS.
8272
8273 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
8274
8275 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
8276
c9671f81
KH
82772000-05-20 Kenichi Handa <handa@etl.go.jp>
8278
8279 The following changes are to handle 8-bit characters in a
8280 multibyte buffer/string without facing with byte combining
8281 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
8282 eight-bit-graphic (for 0xA0..0xFF) are introduced.
8283
8284 * Makefile.in (fns.o): Depend on charset.h.
8285
8286 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
8287 convert it to unibyte.
8288 (make_string): Use parse_str_as_multibyte, not chars_in_text.
8289
8290 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
8291 apparent char boundary.
8292 (Fset_buffer_multibyte): Convert 8-bit characters in the range
8293 0x80..0x9F to/from multibyte form.
8294
8295 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
8296 to unibyte.
8297
8298 * callproc.c (Fcall_process): Always encode an argument string if
8299 it is multibyte. Setup src_multibyte and dst_multibyte members of
8300 process_coding properly.
ce75fd23 8301
c9671f81
KH
8302 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
8303 SPLIT_NON_ASCII_CHAR.
8304
8305 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
8306 as is.
8307 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
8308
8309 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New
8310 variables.
8311 (SPLIT_CHARACTER_SEQ): This macro deleted.
8312 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is
8313 valid.
8314 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
8315 and eight-bit-graphic.
8316 (char_to_string): Likewise. Signal an error for too large
8317 character code.
8318 (char_printable_p): Return 0 for 8-bit characters.
8319 (update_charset_table): Update iso_charset_table only when a final
8320 character is non-negative.
8321 (find_charset_in_text): Renamed from find_charset_in_str.
8322 Arguments and return value changed. Callers changed.
8323 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
8324 be -1 if CHARSET is used only internally.
8325 (Fmake_char_internal): Handle new charsets; eight-bit-control and
8326 eight-bit-graphic.
8327 (Fcharset_after): Simplified.
8328 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
8329 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
8330 (multibyte_chars_in_text): Simplified by assuming there's no
8331 invalid multibyte sequence.
8332 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
8333 str_as_unibyte): New functions.
8334 (Fstring): Simpified by assuming that byte combining never
8335 happens.
8336 (init_charset_once): Initialization for
8337 LEADING_CODE_8_BIT_CONTROL.
8338 (syms_of_charset): Intern and staticpro Qeight_bit_control and
8339 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
8340 eight-bit-control and eight-bit-graphic.
8341
8342 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL,
8343 CHARSET_8_BIT_GRAPHIC): New macros.
8344 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
8345 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
8346 (CHARSET_REVERSE_CHARSET): Likewise.
8347 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
8348 eight-bit-graphic.
8349 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
8350 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
8351 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
8352 encounter an invalid multibyte sequence.
8353 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
8354 sequence is always valid.
8355 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
8356 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New
8357 macros.
8358 (CHAR_STRING): For 8-bit characters, call char_to_string.
8359 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
8360 multibyte sequence is always valid.
8361 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
8362 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
8363 str_as_unibyte): Extern them.
8364 (BCOPY_SHORT): Fix a bug.
8365 (CHAR_LEN): This macro deleted. Callers changed to use
8366 CHAR_BYTES.
8367 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
8368 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
8369 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
8370
bd4bde7f 8371 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81
KH
8372 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
8373 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
8374 EMIT_BYTES): New macros.
8375 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
8376 DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
8377 macros deleted.
8378 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
8379 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
8380 check the validity of multibyte sequence.
8381 (decode_coding_emacs_mule): New function.
8382 (encode_coding_emacs_mule): New macro.
8383 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
8384 the source.
8385 (DECODE_ISO_CHARACTER): Just return a character code.
8386 (DECODE_COMPOSITION_START): Set coding->result instead of result.
8387 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
8388 EMIT_CHAR to produced decoded characters. Exit the loop only by
8389 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
8390 block here.
8391 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
8392 only position codes for an invalid character.
8393 (encode_designation_at_bol): Return new destination pointer. 5th
8394 arg DSTP is changed to DST.
8395 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
8396 from the source by ONE_MORE_CHAR. Don't handle the case of last
8397 block here.
8398 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
8399 macros deleted.
8400 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
8401 detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
8402 TWO_MORE_BYTES to fetch a byte from the source.
8403 (encode_eol): Pay attention to coding->src_multibyte.
8404 (detect_coding, detect_eol): Preserve members src_multibyte and
8405 dst_multibyte.
8406 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
8407 (encoding_buffer_size): Set magnification to 3 for all coding
8408 systems that require encoding.
8409 (ccl_coding_driver): For decoding, be sure that the result is
8410 valid multibyte sequence.
8411 (decode_coding): Initialize coding->errors and coding->result.
8412 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
8413 and raw-text, always call decode_eol. Handle the case of last
8414 block here. If not coding->dst_multibyte, convert the resulting
8415 sequence to unibyte.
8416 (encode_coding): Initialize coding->errors and coding->result.
8417 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
8418 and raw-text, always call encode_eol. Handle the case of last
8419 block here.
8420 (shrink_decoding_region, shrink_encoding_region): Detect cases
8421 that we can't skip data more rigidly.
8422 (code_convert_region): Setup src_multibyte and dst_multibyte
8423 members of coding. For decoding, if the buffer is multibyte,
8424 convert the source sequence to unibyte in advance. For encoding,
8425 if the buffer is multibyte, convert the resulting sequence to
8426 multibyte afterward.
8427 (run_pre_post_conversion_on_str): New function.
8428 (code_convert_string): Deleted and divided into the following two.
8429 (decode_coding_string, encode_coding_string): New functions.
8430 (code_convert_string1, code_convert_string_norecord): Call one of
8431 above.
8432 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
8433 MAKE_NON_ASCII_CHAR.
8434 (Fset_terminal_coding_system_internal,
8435 Fset_safe_terminal_coding_system_internal): Setup src_multibyte
8436 and dst_multibyte members.
8437 (init_coding_once): Initialize iso_code_class with new enum
8438 ISO_control_0 and ISO_control_1.
8439
8440 * coding.h (enum iso_code_class_type): Member ISO_control_code is
8441 devided into ISO_control_0 and ISO_control_1.
8442 (struct coding_system): New members src_multibyte, dst_multibyte,
8443 errors, and result. Delete member fake_multibyte.
8444 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
8445 nonzero.
8446 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
8447 nonzero.
8448
8449 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
8450 (Faset): Likewise.
8451
8452 * editfns.c (Fformat): Be sure to convert 8-bit characters to
8453 multibyte form.
8454 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
8455 combining occurs.
8456 (Ftranspose_region): Delete codes for handling byte combining.
8457
8458 * fileio.c (Finsert_file_contents): Setup src_multibyte and
8459 dst_multibyte members of coding. On handling REPLACE on unibyte
8460 buffer, convert the result of decode_coding to unibyte. On
8461 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 8462 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
8463 multibyteness of the source (buffer or string).
8464
8465 * fns.c (concat): Handle 8-bit characters correctly.
8466 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
8467 unibyte in the result.
8468 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
8469 valid multibyte form in the result.
8470 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
8471 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
8472 return -1, signal an error.
8473 (base64_encode_1): New arg MULTIBYTE. Get each character by
8474 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
8475 character is found, return -1.
8476 (Fbase64_decode_region): Delete codes for handling byte-combining.
8477 Treat each decoded byte as a unibyte character.
8478 (Fbase64_decode_string): Return unibyte string.
8479 (Fcompare_strings, concat, string_byte_to_char): Use
8480 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
8481 FETCH_STRING_CHAR_ADVANCE.
8482 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
8483 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
8484
8485 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
8486 SPLIT_NON_ASCII_CHAR.
8487 (fontset_ref_via_base, fontset_set): Likewise
8488
8489 * insdel.c (adjust_markers_for_record_delete): Deleted.
8490 (adjust_markers_for_insert): Argument changed. Caller changed.
8491 (adjust_markers_for_replace): Likewise.
8492 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error,
8493 CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
8494 (copy_text): Delete unused local varialbe c_save. For converting
8495 to multibyte, be sure to make all 8-bit characters in valid
8496 multibyte form.
8497 (count_size_as_multibyte): Handle 8-bit characters correctly.
8498 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
8499 adjust_after_replace, replace_range, del_range_2)
8500 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
8501 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
8502 adjust_after_replace, replace_range, del_range_2) Delete codes for
8503 handling byte combining.
8504 (adjust_before_replace): Deleted.
427ec082 8505
c9671f81
KH
8506 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
8507 SPLIT_NON_ASCII_CHAR.
8508 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
8509 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE
8510 unconditionally.
8511 (Fkey_description): Likewise.
8512
8513 * lread.c (read1): On reading multibyte string, be sure to make
8514 all 8-bit chararacters in valid multibyte form.
8515 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
8516
8517 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
8518 unconditionally.
8519
8520 * process.c (Fstart_process): GCPRO current_dir before calling
8521 Ffind_operation_coding_system. Encode arguments here.
8522 (create_process): Don't encode arguments here. Setup
8523 src_multibyte and dst_multibyte members of struct coding.
8524 (read_process_output): Setup src_multibyte and dst_multibyte
8525 members of struct coding. If the output is to multibyte buffer,
8526 always decode the output of the process. Adjust the
8527 representation of 8-bit characters to the multibyteness of the
8528 output.
8529 (send_process): Setup coding->src_multibyte according to the
8530 multibyteness of the source.
8531
8532 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE
8533 unconditionally.
8534 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
8535 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
8536
8537 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of
8538 CHAR_LEN.
8539
8540 * w16select.c (Fw16_set_clipboard_data): Setup members
8541 src_multibyte and dst_multibyte of coding. Adjusted for the
8542 change for find_charset_in_str.
8543 (Fw16_get_clipboard_data): Likewise.
8544
8545 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
8546 dst_multibyte of coding.
8547 (x_to_w32_font): Likewise.
8548
8549 * w32select.c (Fw32_set_clipboard_data): Setup members
8550 src_multibyte and dst_multibyte of coding. Adjusted for the
8551 change for find_charset_in_str.
8552 (Fw32_get_clipboard_data): Likewise.
8553
8554 * xdisp.c (get_next_display_element): Handle 8-bit characters
8555 correctly.
8556 (next_element_from_display_vector): Use CHAR_BYTES instead of
8557 CHAR_LEN.
8558 (disp_char_vector): Use SPLIT_CHAR instead of
8559 SPLIT_NON_ASCII_CHAR.
8560
8561 * xselect.c (selection_data_to_lisp_data): Setup members
8562 src_multibyte and dst_multibyte of coding. Adjusted for the
8563 change for find_charset_in_str.
8564 (lisp_data_to_selection_data): Likewise.
8565
5f64c9e0
GM
85662000-05-19 Gerd Moellmann <gerd@gnu.org>
8567
2b63d473
GM
8568 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed
8569 buffer.
8570
5f64c9e0
GM
8571 * dispextern.h (Vimage_types): Add extern declaration.
8572
8573 * xdisp.c (Vimage_types): Moved here from xfns.c.
8574 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
8575
8576 * xfns.c (Vimages_types): Moved to xdisp.c.
8577 (syms_of_xfns): Move `image-types' to xdisp.c.
8578
8579 * w32fns.c (Vimage_types): Removed.
8580 (syms_of_w32fns): Remove `image-types'.
8581
813086ea
KH
85822000-05-18 Kenichi Handa <handa@etl.go.jp>
8583
8584 * fns.c (map_char_table): Pay attention to character number of
8585 charset. Check the validity of charset at the first level. For
8586 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
8587 the default value.
8588
8589 * fontset.c: Include "buffer.h".
8590 (fs_load_font): If the face has fontset, record the face ID in
8591 that fontset.
8592 (Finternal_char_font): New function.
8593 (accumulate_font_info): New function.
8594 (Ffontset_info): Rewritten for the new fontset implementation.
8595 (syms_of_fontset): Register Vdefault_fontset in the first element
8596 of Vfontset_table. Include Vdefault_fontset in
8597 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
8598 function.
8599
bdaebbf0
DL
86002000-05-16 Dave Love <fx@gnu.org>
8601
8602 * m/iris5d.h: Deleted -- unused.
8603
cb613bb8
GM
86042000-05-16 Gerd Moellmann <gerd@gnu.org>
8605
b15f3b77
GM
8606 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
8607 `invalid' instead of `illegal'.
8608
8609 * indent.c (Fmove_to_column): When ending within a tab, insert
8610 spaces first so that markers at the end of the tab get adjusted.
8611
835c1b36
GM
8612 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
8613 buffer list that wasn't selected in that frame.
8614
cb613bb8
GM
8615 * filelock.c (get_boot_time): To obtain an 8 char file name, which
8616 is needed on mescaline, use a 2 char prefix, and call
8617 make_temp_name with second arg non-zero.
8618
8619 * fileio.c (make_temp_name): New function, extracted from
8620 Fmake_temp_name.
8621 (Fmake_temp_name): Use it.
8622
f685bea9
EZ
86232000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
8624
8625 * window.c (coordinates_in_window): Subtract 1 when computing
8626 right_x.
8627
a1b8d58b
GM
86282000-05-15 Gerd Moellmann <gerd@gnu.org>
8629
8630 * Makefile.in (lisp): Add env.elc.
8631
8632 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
8633
a265079f
GM
86342000-05-12 Gerd Moellmann <gerd@gnu.org>
8635
8636 * search.c (Freplace_match): Handle case of `\N' in the
8637 replacement when there's no group N.
8638
da4496b6
GM
86392000-05-11 Gerd Moellmann <gerd@gnu.org>
8640
0ace421a
GM
8641 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
8642 of the message to message_dolog.
8643
1172eb8d
GM
8644 * keyboard.c (read_char): Don't clear current message for help
8645 events; let the code handling help events handle this. Change
8646 code detecting help events that should be ignored.
8647
da4496b6
GM
8648 * xdisp.c (handle_single_display_prop): Don't try to set PT if
8649 we're interating over a string.
8650
0623e40f
DL
86512000-05-09 Dave Love <fx@gnu.org>
8652
8653 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
8654 that offset before writing. Move gcpro region past call of
8655 Ffile_regular_p.
8656
bae2503b
DL
86572000-05-04 Dave Love <fx@gnu.org>
8658
8659 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
8660
ec82fb2f
GM
86612000-05-04 Gerd Moellmann <gerd@gnu.org>
8662
8663 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
8664 of inserted characters when BUF equals the current buffer, and PT
8665 is in front of or equal to FROM.
8666
cbf18892
GM
86672000-05-03 Gerd Moellmann <gerd@gnu.org>
8668
4ff40dd0
GM
8669 * xdisp.c (handle_single_display_prop): If display property value
8670 is invalid, or something not supported on the frame, restore
8671 iterator's position to what it was initially. Make sure to return
8672 0 for invalid and unsupported property values.
8673
cbf18892
GM
8674 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
8675 that x_per_char_metric returns null.
8676
1b0672c3
GM
86772000-05-02 Gerd Moellmann <gerd@gnu.org>
8678
576da55d
GM
8679 * xterm.h (struct face): Add forward declaration.
8680 (struct image): Ditto.
8681 (image_ascent): Add prototype.
8682
8683 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
8684 (x_draw_image_relief, x_draw_image_foreground_1): Call function
8685 image_ascent instead of using IMAGE_ASCENT.
8686
8687 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
8688 (IMAGE_ASCENT): Removed.
8689
8690 * xfns.c (Qcenter): New variable.
8691 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
8692 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
8693 (image_ascent): New function.
8694 (lookup_image): Recognize `:ascent center'.
8695 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
8696 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
8697 (xbm_load): Don't set image's ascent here.
8698 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
8699 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
8700 check ascent values here.
8701 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
8702 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
8703 (syms_of_xfns): Initialize Qcenter.
8704
1b0672c3
GM
8705 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
8706 to the limits, increase the limits.
8707
0d7811ed
KH
87082000-05-01 Kenichi Handa <handa@etl.go.jp>
8709
8710 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
8711 Check Vfont_encoding_alist against the full name of the opened
8712 font.
8713
a943a5ca
GM
87142000-04-28 Gerd Moellmann <gerd@gnu.org>
8715
8716 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
8717 taller than the window.
8718
5dba1e29
KH
87192000-04-28 Kenichi Handa <handa@etl.go.jp>
8720
8721 * xfaces.c (realize_x_face): Fix the argument of the second
8722 xassert. BASE_FACE may not be a face for ASCII.
8723
353964e3
GM
87242000-04-27 Gerd Moellmann <gerd@gnu.org>
8725
c76e04a8
GM
8726 * print.c (print_object): Treat print-length < 0 as nil.
8727
8728 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
8729
8730 * s/freebsd.h (TERMCAP_OBJ): Removed.
8731 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
8732
8733 * lread.c (read1): Don't treat period followed by certain
8734 characters as symbol start.
8735
8736 * xfns.c (slurp_file): New function.
8737 (xbm_image_p): Handle case of in-memory XBM files.
8738 (xbm_scan): Rewritten to work on memory buffers instead of files.
8739 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
8740 Work on memory buffers instead of files. If DATA is null test
8741 if buffer looks like an in-memory XBM file.
8742 (xbm_load_image): Renamed from xbm_load_image_file. Work on
8743 memory buffers instead of files.
8744 (xbm_file_p): New function.
8745 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
8746
353964e3
GM
8747 * lread.c (end_of_file_error): New function.
8748 (read1): Call it instead of signaling `end-of-file' directly.
8749
427ec082 8750 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
8751 with Fprinc instead of Fprin1.
8752
24d744ac
KR
87532000-04-26 Ken Raeburn <raeburn@gnu.org>
8754
8755 * window.c (freeze_window_start): Check that minibuffer scroll
8756 window isn't nil before extracting the window structure pointer
8757 from it.
8758
8759 * undo.c (record_delete): If we hit the end of the undo list, stop
8760 picking elements apart.
8761
7464346d
GM
87622000-04-26 Gerd Moellmann <gerd@gnu.org>
8763
8764 * xdisp.c (display_line): If lines are continued, restore
8765 iterator's ascent/descent information to the values before the
8766 first glyph not fitting on the line.
8767
612839b6
GM
87682000-04-25 Gerd Moellmann <gerd@gnu.org>
8769
8770 * xdisp.c (try_window_id) <all changes above window start>: Adjust
8771 positions in glyph matrix. Don't compute new window end
8772 positions.
8773
8774 * dispnew.c (increment_matrix_positions): Renamed from
8775 increment_glyph_matrix_buffer_positions.
8776 (increment_row_positions): Renamed from
8777 increment_glyph_row_buffer_positions.
8778
8779 * dispextern.h: Change names of renamed functions from dispnew.c
8780 in prototypes.
8781
cc181e95
GM
87822000-04-24 Gerd Moellmann <gerd@gnu.org>
8783
abfcc168
GM
8784 * fileio.c (Fdo_auto_save): Create directories for auto-save
8785 list file if necessary.
8786
cc181e95
GM
8787 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
8788 from buffer or frame.
8789 (automatic_hscrolling_p): New variable.
8790 (hscroll_windows): Scroll windows horizontally only if automatic
8791 hscrolling is allowed.
8792 (syms_of_xdisp): New variable `automatic-hscrolling'.
8793
8794 * frame.h (struct frame): Add member extra_line_spacing.
8795
8796 * xfns.c (x_set_line_spacing): New function.
8797 (Fx_create_frame): Set line spacing from resources.
8798 (Qline_spacing): New variable.
8799 (syms_of_xfns): Initialize Qline_spacing.
427ec082 8800
cc181e95
GM
8801 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
8802
8803 * buffer.c (init_buffer_once): Handle extra_line_spacing.
8804 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 8805 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
8806 extra_line_spacing from default value.
8807 (init_buffer_once): Initialize default value of extra_line_spacing.
8808
8809 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
8810 and extra3.
8811
8812 * xterm.c (x_produce_glyphs): Remove reference to struct it's
8813 prompt_width. Add extra line spacing.
8814
8815 * term.c (produce_glyphs): Remove reference to struct it's
8816 prompt_width.
8817
8818 * dispextern.h (struct it): Remove member prompt_width, add
8819 extra_line_spacing.
8820
58827478
GM
88212000-04-22 Gerd Moellmann <gerd@gnu.org>
8822
8823 * dispnew.c (update_frame_line): When writing a whole line, make
8824 sure cursor is in the right row afterwards, otherwise a use of
8825 capability `ch' in cmgoto might leave the cursor in the row below.
8826
25a87f42
GM
88272000-04-21 Gerd Moellmann <gerd@gnu.org>
8828
8829 * lisp.h (struct Lisp_Buffer_Cons): Remove.
8830
8831 * keyboard.c (timer_check): Fix typo in comment.
8832
54edf5c2
KH
88332000-04-21 Kenichi Handa <handa@etl.go.jp>
8834
8835 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
8836 name change: ch -> character.
8837
3a64eef5
GM
88382000-04-20 Gerd Moellmann <gerd@gnu.org>
8839
8840 * keyboard.c (echo_message_buffer): New variable.
8841 (echo_now): Set echo_message_buffer to the echo area buffer used
8842 to display the echo.
8843 (cancel_echoing): Reset echo_message_buffer to nil.
8844 (read_char): Code rewritten that handles canceling an echo or
8845 echoing a dash, respectively.
8846
8847 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
8848 directory doesn't exist.
8849
6142fdcb
DL
88502000-04-19 Dave Love <fx@gnu.org>
8851
8852 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
8853 (concat): Don't allow numeric args.
8854 (Fconcat): Doc change.
6142fdcb 8855
ac6b5352
SM
88562000-04-19 Stefan Monnier <monnier@cs.yale.edu>
8857
8858 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
8859 instead define end_match(1|2) more carefully.
8860 Use GET_CHAR_BEFORE_2 for `begline'.
8861
cb9215e4
GM
88622000-04-19 Gerd Moellmann <gerd@gnu.org>
8863
5e3dac3f
GM
8864 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
8865 on 64-bit systems where NULL is defined as `0'.
8866
8867 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
8868 the `variable argument list' to make it work on Alpha.
8869
cb9215e4
GM
8870 * m/alpha.h (_LP64) [!_LP64]: Define.
8871 (ORDINARY_LINK): Define for NetBSD.
8872
8873 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 8874
f532dca0
DL
88752000-04-19 Dave Love <fx@gnu.org>
8876
c750667e
DL
8877 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
8878 change.
8879
8880 * Makefile.in (LIBS): Don't use.
8881 (GETLOADAVG_OBJ): Define again.
8882 (otherobj): Add GETLOADAVG_OBJ.
8883
f532dca0
DL
8884 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
8885
1c7e22fd
GM
88862000-04-18 Gerd Moellmann <gerd@gnu.org>
8887
f6d3257b
GM
8888 * lread.c (read_filtered_event): Cancel and start busy cursor.
8889
427ec082 8890 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
8891 that the per-character metrics may be null.
8892
e10f64e7
GM
88932000-04-17 Gerd Moellmann <gerd@gnu.org>
8894
0daee095
GM
8895 * buffer.c (clone_per_buffer_values): New function.
8896 (Fmake_indirect_buffer): Add optional argument CLONE. Call
8897 clone_per_buffer_values if CLONE is not nil.
8898
e10f64e7
GM
8899 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
8900
38687d43
DL
89012000-04-16 Dave Love <fx@gnu.org>
8902
8903 * Makefile.in: Remove obsolete localcpp stuff.
8904 (GETLOADAVG_OBJ): Don't define.
8905 (obj): Move LIBOBJS...
8906 (otherobj): ... to here.
8907 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
8908 whitespace-only lines after the continuation (Irix).
8909
c21c7262
GM
89102000-04-14 Gerd Moellmann <gerd@gnu.org>
8911
8912 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
8913
8914 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
8915
314767c0
DL
89162000-04-14 Dave Love <fx@gnu.org>
8917
8918 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
8919 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
8920 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
8921 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
8922 NLIST_STRUCT.
8923
8924 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
8925 autoconfiscated HAVE_GETLOADAVG.
8926
8927 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
8928 BROKEN_MKTIME.
8929
a2522dca
GM
89302000-04-14 Gerd Moellmann <gerd@gnu.org>
8931
8932 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
8933 (fill_in_lock_file_name): Avoid existing files that aren't
8934 links.
8935
33744b5d
DL
89362000-04-14 Dave Love <fx@gnu.org>
8937
c21c7262 8938 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
8939 (INTERVAL_SRC): Convert to make variable.
8940 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
8941 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
8942 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
8943 add LIBOBJS.
8944 (SOME_MACHINE_OBJECTS): Remove interval stuff.
8945 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
8946 (shortlisp): Add facemenu, float-sup, frame.
8947 (SOME_MACHINE_LISP): Remove them from here.
8948 (LIBES): Change unused LDLIBS to autoconf LIBS.
8949
8950 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
8951
9d3d5916
KH
89522000-04-14 Kenichi Handa <handa@etl.go.jp>
8953
8954 * composite.c (update_compositions): If FROM and TO are not in a
8955 valid range, do nothing.
8956
198e3c7a
GM
89572000-04-13 Gerd Moellmann <gerd@gnu.org>
8958
8959 * tparam.c (tparam1): Abort when encountering an unknown
8960 `%'-specifier.
8961
8962 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
8963 terminfo.o.
8964
8965 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
8966 as TERMCAP_OBJ.
8967
055a28c9
EZ
89682000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
8969
8970 * fileio.c (a_write): Remove redundant semi-colons.
8971 (e_write): Return -1 if failed to write all the data.
8972 This fixes the changes made at 1999-12-15.
8973
f5c75033
DL
89742000-04-12 Dave Love <fx@gnu.org>
8975
8976 * fns.c (mapcar1): Test for null vals to support mapc.
8977 (Fmapc): New function.
8978
0c3cfc51
EZ
89792000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
8980
8981 * msdos.c (NUM_MOUSE_BUTTONS): Define.
8982 (IT_frame_up_to_date): Support the buffer local value of
8983 cursor-type, if defined.
8984
33465a31
DL
89852000-04-10 Dave Love <fx@gnu.org>
8986
8987 * editfns.c (preceding-char, following-char): Doc fix.
8988
6ed56568
KR
89892000-04-10 Ken Raeburn <raeburn@gnu.org>
8990
8991 * Makefile.in (temacs): Revert 2000-03-12 change.
8992
7cf80d4e
JR
89932000-04-10 Jason Rumney <jasonr@gnu.org>
8994
8995 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
8996
34f3f342
GM
89972000-04-10 Gerd Moellmann <gerd@gnu.org>
8998
1a1b1895
GM
8999 * xdisp.c (setup_echo_area_for_printing): Choose an echo
9000 area buffer, if it's not set up yet.
9001
34f3f342
GM
9002 * indent.c (compute_motion): Set immediate_quit.
9003
be0dbdab
GM
90042000-04-09 Gerd Moellmann <gerd@gnu.org>
9005
c45be9ac
GM
9006 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New
9007 variable.
9008 (realize_tty_face): Suppress boldness if colors are the inverse of
9009 the default colors, and tty_suppress_bold_inverse_default_colors_p
9010 is set.
9011 (Ftty_suppress_bold_inverse_default_colors): New function.
9012 (syms_of_xfaces): Defsubr it.
9013
be0dbdab
GM
9014 * buffer.c (Frestore_buffer_modified_p): New function.
9015 (syms_of_buffer): Defsubr it.
9016
e8413c3b
KR
90172000-04-08 Ken Raeburn <raeburn@gnu.org>
9018
87f67317
KR
9019 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
9020 charset id (int) argument, not a charset (Lisp_Object).
9021
e8413c3b
KR
9022 * coding.h (code_convert_string): Declare.
9023 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
9024 object, as the fourth argument to code_convert_string.
9025
9026 * fontset.c (make_fontset_for_ascii_face): Use XINT on return
9027 value.
9028 (Fset_fontset_font): Use EQ to compare lisp objects.
9029
7c752c80
KR
90302000-04-05 Ken Raeburn <raeburn@gnu.org>
9031
c0333abc
KR
9032 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
9033 a pointer that looks like a lisp object.
9034 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
9035 zero, instead see whether it's an integer object, since they can't
9036 have intervals.
9037 (GET_INTERVAL_OBJECT): Simply assign to the destination.
9038
7c752c80
KR
9039 * dispnew.c (allocate_matrices_for_frame_redisplay,
9040 direct_output_forward_char): Use X(U)INT and make_number as needed
9041 to convert between (unsigned) int values and lisp integers.
9042 * keyboard.c (read_key_sequence): Likewise.
9043 * lread.c (substitute_object_recurse): Likewise.
9044 * fns.c (concat, hash_lookup, hash_remove): Likewise.
9045 * minibuf.c (do_completion, Fminibuffer_complete_word,
9046 Fminibuffer_completion_help): Likewise.
9047 * term.c (produce_special_glyphs): Likewise.
9048
9049 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
9050 * print.c (print_preprocess, print_object): Likewise.
9051
9052 * search.c (compile_pattern): Use NILP when checking for nil.
9053
74e49b38
KR
9054 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
9055 __OPTIMIZE__]: Provide a GNU C macro version that handles
9056 lisp-object unions.
9057 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
9058 field, to better cope with ENABLE_CHECKING and calls that modify a
9059 Lisp_Object using its old value.
9060
685e5ed2
GM
90612000-04-04 Gerd Moellmann <gerd@gnu.org>
9062
c407c570
GM
9063 * window.c (compare_window_configurations): Signal an error
9064 if parameters C1 or C2 aren't window configurations.
9065
685e5ed2
GM
9066 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
9067 AFTER_POTENTIAL_GC calls around calls to functions that can
9068 signal an error and thus invoke the debugger.
9069
587a49ab
GM
90702000-04-03 Gerd Moellmann <gerd@gnu.org>
9071
62f20204
GM
9072 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
9073 an error if decoding fails.
9074
587a49ab
GM
9075 * keyboard.c (lispy_mouse_names): Variable removed.
9076 (Vlispy_mouse_stem): New variable.
9077 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
9078 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
9079 for any mouse button number. Increase size of mouse_syms and
9080 button_down_location as needed. Call modify_event_symbol with
9081 different arguments.
9082 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
9083 Call modify_event_symbol with different arguments.
9084 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
9085 for any button number. Call modify_event_symbol with different
9086 arguments.
9087 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
9088 Accept a string for NAME_ALIST_OR_STEM.
9089
9090 * lisp.h (larger_vector): Add prototype.
9091
9092 * fns.c (larger_vector): Make externally visible.
9093
9094 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
9095
2d1675e4
SM
90962000-04-02 Stefan Monnier <monnier@cs.yale.edu>
9097
9098 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
9099 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
9100 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
9101 we are between str1 and str2.
9102 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
9103 (PATFETCH): Use `TRANSLATE'.
9104 (PATFETCH_RAW): Fetch multibyte char if applicable.
9105 (PATUNFETCH): Remove.
9106 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
9107 When writing a char, write it directly into the pattern buffer rather
9108 than going needlessly through a temp char-array.
9109 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
9110 multibyte magic and remove the useless `#ifdef emacs'.
9111 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
9112 buffer.
9113
9114 * regex.h (struct re_pattern_buffer): Make field `multibyte'
9115 conditional on `emacs'.
9116
9117 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
9118
cc2d8c6b
KR
91192000-04-01 Ken Raeburn <raeburn@gnu.org>
9120
9121 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
9122 non-union-type versions of XMARK and friends here, because XMARK
9123 and friends won't work on an integer field if NO_UNION_TYPE is not
9124 defined.
9125 (make_number): Define as a function if it's not defined as a
9126 macro.
9127
09654086
KR
9128 * composite.c (run_composite_function): Use NILP when checking for
9129 nil.
9130 (syms_of_composite): Delete local var NARGS, pass an int as first
9131 argument to Fmake_hash_table.
9132
2387b382
KR
9133 * editfns.c (text_property_stickiness): Use NILP to test
9134 Lisp_Object boolean value.
9135 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
9136 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
9137 problems reading from and changing the same lisp value in an
9138 XSETSTRING call.
9139
27660e89
GM
91402000-04-01 Gerd Moellmann <gerd@gnu.org>
9141
9142 * term.c (TN_no_color_video): New variable.
9143 (term_init): Intitialize TN_no_color_video.
9144 (enum no_color_bit): New enumeration.
9145 (MAY_USE_WITH_COLORS_P): New macro.
9146 (turn_on_face): Use it to determine if attributes may be used
9147 combined with colors.
9148
3578db3c
KR
91492000-04-01 Ken Raeburn <raeburn@gnu.org>
9150
9151 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
9152 with int lvalues via casts; instead, just yield lisp object
9153 lvalues.
9154 (enlarge_window): Variable sizep now points to Lisp_Object. Use
9155 proper accessor macros.
9156 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
9157 (grow_mini_window): Fix typo getting int value of root->height.
9158
6fc556fd
KR
9159 * xdisp.c (compute_string_pos): Fix order of arguments to
9160 string_pos_nchars_ahead.
9161 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
9162 count arg to variable-arg routines like Frun_hook_with_args and
9163 Fformat.
587a49ab
GM
9164 (back_to_previous_visible_line_start)
9165 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
9166 fixed-arg routines like Fget_char_property and Fmake_string.
9167 (reconsider_clip_changes): Use XINT when comparing integer lisp
9168 objects, or passing them as int arguments.
587a49ab
GM
9169 (mark_window_display_accurate, insert_left_trunc_glyphs)
9170 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
9171 storing or passing integer values as lisp objects.
9172 (set_cursor_from_row, highlight_trailing_whitespace): Use
9173 INTEGERP, not implicit test against zero, for glyph object.
9174 (try_window_id): Don't use make_number when we want an int value.
9175
9176 * xfaces.c (xlfd_symbolic_value): Make last argument a
9177 Lisp_Object, to be consistent with callers.
9178 (Fbitmap_spec_p): Use XINT to get numeric value of height.
9179 (lface_hash): Apply XFASTINT to lisp values before folding in.
9180
9181 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
9182 fill in window width and height. Pass an int, not a lisp object,
9183 as first arg to Finsert.
9184
6e7b2457
GM
91852000-04-01 Gerd Moellmann <gerd@gnu.org>
9186
610d841e
GM
9187 * xfaces.c (realize_basic_faces): Block input while realizing
9188 the faces.
9189
6e7b2457
GM
9190 * keyboard.c (lispy_mouse_names): Add additional mouse names.
9191
9192 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
9193
aa110c0c
GM
91942000-03-31 Gerd Moellmann <gerd@gnu.org>
9195
9196 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 9197 or ASCII, handle case that per-char metric is null.
aa110c0c 9198
8801a864
KR
91992000-03-30 Ken Raeburn <raeburn@gnu.org>
9200
c6129d7e
KR
9201 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
9202
8801a864
KR
9203 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW,
9204 XSUBR, XBUFFER): Verify correct object type before returning
9205 pointer, using eassert.
9206 * frame.h (XFRAME): Likewise.
9207
9208 * buffer.c (Frename_buffer, Fset_buffer_multibyte,
9209 swap_out_buffer_local_variables, Fmove_overlay): Don't apply
9210 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong
9211 type.
9212 * data.c (set_internal): Likewise.
9213 * dispextern.h (WINDOW_WANTS_MODELINE_P,
9214 WINDOW_WANTS_HEADER_LINE_P): Likewise.
9215 * fileio.c (auto_save_1): Likewise.
9216 * insdel.c (check_markers): Likewise.
9217 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
9218 * undo.c (record_insert): Likewise.
9219 * vmsproc.c (child_sig): Likewise.
9220 * window.c (unshow_buffer, window_loop): Likewise.
9221 * xterm.c (x_erase_phys_cursor): Likewise.
9222
8e7af858
GM
92232000-03-30 Gerd Moellmann <gerd@gnu.org>
9224
9225 * xfns.c (free_image_cache): Free the cache structure itself
9226 last, after all its members have been freed.
9227
9228 * lisp.h (xstrdup): Add prototype.
9229
9230 * alloc.c (xstrdup): Moved here from xfaces.c.
9231 (allocating_for_lisp): Variable removed.
9232 (lisp_malloc): Block input around the calls to malloc and
9233 mem_insert.
9234
9235 * xfaces.c (realize_tty_face): Use find_symbol_value instead
9236 of Fsymbol_value.
9237 (xstrdup): Moved to alloc.c.
9238
e0b8c689
KR
92392000-03-29 Ken Raeburn <raeburn@gnu.org>
9240
b96f9fb7
KR
9241 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
9242
9243 * emacs.c (main): Fix sense of no-loadup test.
9244
e0b8c689
KR
9245 * config.in (ENABLE_CHECKING): Undef.
9246
9247 * lisp.h (struct interval): Replace "parent" field with a union of
9248 interval pointer and Lisp_Object; add new bitfield to use as
9249 discriminant. Change other flag fields to bitfields.
9250 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
9251 is defined and the supplied test fails, print a message and
9252 abort.
9253 (eassert): New macro. Use CHECK to provide an assert-like
9254 facility.
9255
9256 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
9257 pointers; abort if the value looks like a lisp object.
9258 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT,
9259 SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
9260 Modify for new interval parent definition.
9261
9262 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE,
9263 UNMARK_BALANCE_INTERVALS): Update references that need an
9264 addressable lisp object in the interval structure.
9265 (die): New function.
9266 (suppress_checking): New variable.
9267
9268 * intervals.c (interval_start_pos): Just return 0 if there's no
9269 parent object.
9270
f83c5440
GM
92712000-03-29 Gerd Moellmann <gerd@gnu.org>
9272
9273 * lread.c (read1): Accept `.' (period) as symbol start like in CL
9274 and earlier Emacs versions.
9275
9276 * keyboard.c (Ftop_level): Cancel busy-cursor.
9277
9278 * eval.c (call_debugger): Cancel busy-cursor.
9279
fdce64ff
KH
92802000-03-29 Kenichi Handa <handa@etl.go.jp>
9281
9282 * search.c (Freplace_match): Adjust multibyteness of the current
9283 buffer and NEWTEXT. Free allocated memory before signaling an
9284 error.
9285
f6a3f532
SM
92862000-03-28 Stefan Monnier <monnier@cs.yale.edu>
9287
9288 * regex.c (analyse_first): New function obtained by ripping out most
9289 of re_compile_fastmap and generalizing it a little bit so that it
9290 can also just return whether a given (sub)pattern can match the empty
9291 string or not.
9292 (regex_compile): Use `analyse_first' to decide whether the loop-check
9293 needs to be done or not for *, +, *? and +? (the loop check is costly
9294 for non-greedy repetition).
9295 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
9296
e9b309ac
DL
92972000-03-28 Dave Love <fx@gnu.org>
9298
bb15bd9a
DL
9299 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k,
9300 alpha.
9301
e9b309ac
DL
9302 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
9303
ed0767d8
SM
93042000-03-27 Stefan Monnier <monnier@cs.yale.edu>
9305
9306 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
9307 an expression.
9308 (enum re_opcode_t): Update description of succeed_n.
9309 (PATFETCH): Always define.
9310 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
9311 operators, char classes, shy-groups and intervals).
9312 Optimize special cases of intervals so as to only use succeed_n and
9313 jump_n when really needed.
9314 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
9315 that we don't have to handle the special cases any more.
9316 Simplify on_failure_jump handling as well.
9317
e11e7e46
JR
93182000-03-28 Jason Rumney <jasonr@gnu.org>
9319
9320 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
9321
88faab89
GM
93222000-03-27 Gerd Moellmann <gerd@gnu.org>
9323
182ff242
GM
9324 * s/freebsd.h (GC_SETJMP_WORKS): Define.
9325
9326 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 9327
182ff242
GM
9328 * alloc.c (mark_maybe_object): New function.
9329 (mark_memory): Use it.
9330 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
9331 (setjmp_tested_p, longjmp_done): New variables.
9332 (test_setjmp): New function.
9333 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
9334 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
9335
c1005d06
GM
9336 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
9337 to DEC_TEXT_POS and INC_TEXT_POS.
9338
9339 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
9340 with parameter MULTIBYTE_P.
9341
427ec082 9342 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
c1005d06
GM
9343 MULTIBYTE_P.
9344
7439e5b9 9345 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
9346 buffers because it looks for multibyte character byte sequences
9347 which don't exist in unibyte text.
7439e5b9 9348
d9c545da
GM
9349 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
9350
11fd416e 9351 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
9352 [DEBUG_X_COLORS]: New functions.
9353 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
9354
9355 * xfns.c (x_set_cursor_color): Get color reference counts right.
9356
9357 * xterm.c (x_copy_color): New function.
9358 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
9359
9360 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
9361 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
9362 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
9363 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
9364 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
9365 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
9366 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
9367 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
9368 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
9369 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
9370
11fd416e
GM
9371 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
9372 names for handling per-buffer variables.
d9c545da
GM
9373
9374 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
9375 instead of MAX_BUFFER_LOCAL_VARS.
9376 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
9377
9378 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
9379
88faab89
GM
9380 * xfns.c (x_specified_cursor_type): New function.
9381 (x_set_cursor_type): Use it.
9382
9383 * buffer.h (struct buffer): Add cursor_type.
9384
d80f42b7
SM
93852000-03-26 Stefan Monnier <monnier@cs.yale.edu>
9386
9387 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
427ec082 9388 (print_partial_compiled_pattern, re_compile_fastmap): Handle new
88faab89 9389 opcode.
d80f42b7
SM
9390 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
9391 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
9392 executing it as well as when popping it off the stack to find infinite
9393 loops in non-greedy repetition operators.
9394
89e80928
GM
93952000-03-26 Gerd Moellmann <gerd@gnu.org>
9396
3d4ff2dd
GM
9397 * doc.c (Qfunction_documentation): New variable.
9398 (syms_of_doc): Initialize Qfunction_documentation.
9399 (Fdocumentation): If FUNCTION is a symbol with non-nil
9400 `function-documentation' property, return a documentation derived
9401 from that.
9402
bd96bd79
GM
9403 * buffer.c (syms_of_buffer): Add default-cursor-type.
9404 (init_buffer_once): Don't let cursor_type have a local value
9405 in every buffer.
9406
19d1bc27
GM
9407 * xterm.c (x_display_and_set_cursor): Choose cursor depending
9408 on buffer-local value of cursor_type.
9409 (x_draw_bar_cursor): Add parameter WIDTH.
9410
9411 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
9412 (init_buffer_once): Set default cursor_type value to t.
9413 Mark cursor_type as local everywhere.
9414 (syms_of_buffer): New per-buffer variable cursor-type.
9415
89e80928
GM
9416 * buffer.h (struct buffer): Remove member local_var_flags,
9417 add local_flags.
9418 (MAX_BUFFER_LOCAL_VARS): New macro.
9419 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
9420 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
9421 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
9422 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
9423
9424 * print.c (print_object): Use new macros for per-buffer
9425 variables.
9426
9427 * category.c (Fset_category_table): Use new macros for per-buffer
9428 variables.
9429
9430 * buffer.c (buffer_permanent_local_flags): Make a char array.
9431 (max_buffer_local_idx): New variable.
9432 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
9433 for new handling of per-buffer variables.
9434 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
9435 (init_buffer_once): Initialize per-buffer vars differently.
9436 Set max_buffer_local_idx.
9437
9438 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
9439 variables.
9440
9441 * lread.c (defvar_per_buffer): Use new macros for per-buffer
9442 variables.
9443
9444 * data.c (do_symval_forwarding, store_symval_forwarding)
9445 (find_symbol_value, set_internal, default_value, Fset_default)
9446 (Fkill_local_variable, Flocal_variable_p): Use new macros for
9447 per-buffer variables.
9448
9449 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
9450
9a0dd3dc
GM
94512000-03-24 Gerd Moellmann <gerd@gnu.org>
9452
b68c375f
GM
9453 * xterm.c (x_term_init): Unblock input around call1 of
9454 Qvendor_specific_keysyms.
9455
9a0dd3dc
GM
9456 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
9457 (find_defun_start): Consider an open parenthesis in column 0
9458 a defun start only if open_paren_in_column_0_is_defun_start is set.
9459 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
9460
7973e637
SM
94612000-03-24 Stefan Monnier <monnier@cs.yale.edu>
9462
9463 * eval.c (Fautoload): Add entry in load-history (if after dump).
9464 * lread.c (load-history): Update docstring.
9465
39210e90
GM
94662000-03-24 Gerd Moellmann <gerd@gnu.org>
9467
9468 * indent.c (Fvertical_motion): Always use the current buffer.
9469 Temporarily change the window's buffer, if necessary.
9470
72db3ab5
GM
94712000-03-23 Gerd Moellmann <gerd@gnu.org>
9472
9473 * xterm.c (fast_find_position): Make sure not to consider rows
9474 not visible in the window.
9475
990b2375
SM
94762000-03-22 Stefan Monnier <monnier@cs.yale.edu>
9477
9478 * regex.c (enum syntaxcode): Provide default for non-Emacs.
9479 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
9480
ff4df011
JR
94812000-03-22 Jason Rumney <jasonr@gnu.org>
9482
9483 * w32menu.c (single_submenu): Set help string to NULL if none.
9484 (w32_menu_show): Set help string correctly.
9485 (add-menu-item): Set help string in MIIM_DATA for menu item.
9486 Load SetMenuItemInfoA explicitly.
9487 (w32_menu_display_help): New function.
427ec082 9488
ff4df011
JR
9489 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
9490 (QCdata): Moved to xdisp.c.
9491
9492 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
9493 (Vw32_charset_to_codepage_alist): Removed.
9494 (Vw32_charset_info_alist): New variable.
9495 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312,
9496 chinesebig5, oem, easteurope, turkish, baltic, russian, arabic,
9497 greek, hebrew, thai, johab, mac, unicode]): New symbols.
9498 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
9499 with TODO comment.
9500 (w32_codepage_for_font): Use Vw32_charset_info_alist.
9501 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
9502 Define Vw32_charset_info_alist and w32_charset symbols.
9503
95042000-03-22 Jason Rumney <jasonr@gnu.org>
9505
9506 * makefile.nt (w32bdf.obj): Update dependencies.
9507
9508 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
9509
9510 * w32fns.c: Include fontset.h after dispextern.h.
9511 (Fx_create_frame): Do not create fontset.
9512 (w32_load_system_font): Doc fix.
9513 (Fx_close_connection): Free full_name if it is not shared.
9514
9515 * w32term.c: Include fontset.h after dispextern.h.
9516 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
9517 updated.
9518 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
9519 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
9520 (w32_font_is_double_byte): New function, needs body.
9521 (x_append_glyph): Set glyph->glyph_not_available_p.
9522 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
9523 it->charset. If it->multibyte_p is zero and it->c is a multibyte
9524 character, convert it to a unibyte character.
9525 (struct glyph_string): Delete member `charset'.
9526 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
9527 calculating it is found.
9528 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
9529 the case that per char metric is not available correctly.
9530 (x_fill_glyph_string): Handle the case that the specific glyph is
9531 not available correctly.
9532 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
9533 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
9534 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
9535 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
9536 fontset. Don't call FS_LOAD_FONT.
9537
439d5cb4
KR
95382000-03-22 Ken Raeburn <raeburn@gnu.org>
9539
9540 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
9541 (INT_LISPLIKE): New macro.
9542 (NULL_INTERVAL_P): Use it.
9543 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
9544 SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
9545 GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
9546
9547 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
9548 explicit references to "parent" field of struct interval and
9549 associated unclean type conversions.
9550 * intervals.c (create_root_interval, root_interval, rotate_right,
9551 rotate_left, balance_possible_root_interval, split_interval_right,
9552 split_interval_left, interval_start_pos, find_interval,
9553 next_interval, previous_interval, update_interval,
9554 adjust_intervals_for_insertion, delete_node, delete_interval,
9555 adjust_intervals_for_deletion, merge_interval_right,
9556 merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
9557 copy_intervals_to_string): Likewise.
9558 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
9559 Likewise.
9560 * syntax.c (update_syntax_table): Likewise.
9561
9562 * intervals.c (reproduce_tree_obj): New function, like
9563 reproduce_tree but takes a Lisp_Object for the parent. Declare
9564 with prototype.
9565 (graft_intervals_into_buffer): Use it when appropriate.
9566 (reproduce_tree): Declare with prototype.
9567 (balance_possible_root_interval): Check that the parent is a lisp
9568 object before trying to examine its type.
9569
ee1c5b21
GM
95702000-03-22 Gerd Moellmann <gerd@gnu.org>
9571
9572 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
9573 as strings only if both are known to be strings.
9574
9575 * s/openbsd.h (LIBS_TERMCAP): Undef.
9576
1fb352e0
SM
95772000-03-21 Stefan Monnier <monnier@cs.yale.edu>
9578
9579 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
9580 definitions for non-Emacs compilation.
9581 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
9582 outside of `#ifdef emacs'.
9583 (print_partial_compiled_pattern): Update.
9584 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
9585 (re_compile_fastmap): Merge handling of charset and charset_not (for
9586 emacs and non-emacs compilation as well).
9587 Similarly for (not)categoryspec and (not)syntaxspec.
9588 Don't use the fastmap when reaching `anychar' since the added
9589 complexity is not justified.
9590 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
9591 and (not)syntaxspec. Merge (not)categoryspec.
9592
fdaa1f77
KH
95932000-03-22 Kenichi Handa <handa@etl.go.jp>
9594
ff1a0d8e
KH
9595 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
9596 FACE_FOR_CHAR): Define them differently for the configuration of
9597 --without-x.
fdaa1f77 9598
d152fb46
DL
95992000-03-21 Dave Love <fx@gnu.org>
9600
9601 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
9602 doc string.
9603
d2cafc8c
GM
96042000-03-21 Gerd Moellmann <gerd@gnu.org>
9605
9606 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
9607 (lface_fully_specified_p): Don't check contents of
9608 LFACE_FONT_INDEX because that attribute is optional.
9609 (realize_x_face): Remove now unwarranted xassert.
9610
9111d4b5
KH
96112000-03-21 Kenichi HANDA <handa@etl.go.jp>
9612
9613 The following changes are to make font selection based on
9614 characters, not charset. In addition, they recover fontset
9615 facilities while utilizing the new font selection mechanism.
9616
6c4bfdc0
KH
9617 * Makefile.in (fontset.o): Depend on dispextern.h.
9618
9619 * alloc.c (mark_face_cache): Don't mark face->registry.
9620
9111d4b5
KH
9621 * dispextern.h (struct glyph): New member glyph_not_available_p.
9622 Use 22 bits for face_id.
9623 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
9624 (struct face): Delete member registry, new member ascii_face.
9625 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
9626 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
9627 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
9628 (struct it): Delete member charset, new member
9629 glyph_not_available_p.
9630
9631 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
9632 (struct fontset_info, struct fontset_data): Structs removed.
9633 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
9634 Vglobale_fontset_alist, font_idx_temp): Externs removed.
9635 (fs_load_font, fs_query_fontset): Adjusted for new argument.
9636 (fs_free_face_fontset, fontset_font_pattern,
9637 face_suitable_for_char_p, face_for_char,
9638 make_fontset_for_ascii_face): Extern them.
9639 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
9640 (FS_LOAD_FACE_FONT): New macro.
9641
9642 * fontset.c: All codes rewritten or adjusted for the change of
9643 fontset implementation. Now fontset is represented by char table.
9644 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
9645 removed.
9646 (my_strcasecmp): Function removed.
9647 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
9648 variables.
9649 (AREF, ASIZE): New macros.
9650 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
9651 FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
9652 FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
9653 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
9654 fontset_id_valid_p, font_family_registry, fontset_name,
9655 fontset_ascii, free_face_fontset, face_suitable_for_char_p,
9656 face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
9657 New functions.
9658 (fs_load_font): New arg FACE. Caller changed.
9659 (fs_query_fontset): Argument changed. Caller changed.
9660 (Fquery_fontset): call fs_query_fontset.
9661 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
9662 Functions removed.
9663 (clear_fontset_elements, check_registry_encoding,
9664 check_fontset_name): New functions.
9665 (syms_of_fontset): Set char-table-extra-slots property of fontset
9666 to 3. Staticpro and initialize Vfontset_table and
9667 Vdefault_fontset. Defsubr fontset_font and fontset_list.
9668
9669 * frame.h (struct frame): Member `fontset_data' removed.
9670 (FRAME_FONTSET_DATA): Macro removed.
9671
9672 * frame.c (make_frame): Don't allocate f->fontset_data.
9673 (Fdelete_frame): Don't free f->fontset_data.
9674
6c4bfdc0
KH
9675 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
9676
9111d4b5
KH
9677 * xdisp.c (charset_at_position): Function removed.
9678 (init_iterator): Don't set member charset of struct `it'.
9679 (handle_face_prop, reseat_to_string, set_iterator_to_next,
9680 next_element_from_display_vector, insert_left_trunc_glyphs):
9681 Likewise.
9682 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
9683 FACE_FOR_CHARSET.
9684 (get_next_display_element, append_space,
9685 extend_face_to_end_of_line): Likewise.
9686
9687 * xfaces.c (Qx_charset_registry, Vface_default_registry):
9688 Variables removed.
9689 (clear_font_table, frame_update_line_height, load_face_font):
9690 Adjusted for the change of fontset implementation.
9691 (load_face_fontset_font): Function removed.
9692 (pixel_point_size): New function.
9693 (font_list): Argument type changed. Caller changed.
9694 (LFACE_FONT): New macro.
9695 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
9696 (set_lface_from_font_name): Type of arg FONTNAME is changed to
9697 Lisp_Object. Determine the font name by actually loading a font
9698 by the specified pattern. Set LFACE_FONT (lface) to the specified
9699 pattern. Even if a font is not found, don't try alternatives.
9700 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
9701 (set_font_frame_param): If `font' is specified in lface, use it.
9702 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
9703 (lface_same_font_attributes_p): Likewise.
9704 (make_realized_face): Arguent changed. Caller changed. Set
9705 face->ascii_face to face itself.
9706 (free_realized_face): Free face->fontset if face is for ASCII.
9707 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
9708 deduce_unibyte_registry, x_charset_registry): Functions removed.
9709 (free_realized_multibyte_face): New function.
9710 (lookup_face, lookup_named_face, lookup_derived_face): Argument
9711 changed. Caller changed.
9712 (try_font_list): Argument type changed.
9713 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
9714 (choose_face_font): Argument changed. Handle fontset properly.
9715 (choose_face_fontset_font): Function removed.
9716 (realize_default_face, realize_named_face): Don't remove the
9717 former face here.
9718 (realize_face): Argument changed. Caller changed. Remove face
9719 with the arg former_face_id in advance. Load font for the new
9720 face.
9721 (realize_x_face): Argument changed. Caller changed. For a
9722 multibyte character, share fontset with base_face. For a single
9723 byte character, make a new realized fontset. Don't load a font
9724 here.
9725 (realize_tty_face): Argument changed. Caller changed.
9726 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
9727 (face_at_buffer_position): Don't check multibyte_p for returning
9728 DEFAULT_FACE_ID.
9729 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
9730 FACE_SUITABLE_FOR_CHARSET_P.
9731 (syms_of_xfaces): Remove code for Qx_charset_registry and
9732 Vface_default_registry.
9733
6c4bfdc0
KH
9734 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
9735 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
9736 (x_per_char_metric): Don't try FONT->default_char. Even if
9737 pcm->width is zero, glyph bits may exist.
9738 (x_encode_char): Always initialize char2b->byte1.
9739 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
9740 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
9741 changed.
9742 (x_append_glyph): Set glyph->glyph_not_available_p.
9743 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
9744 it->charset. Handle the case that per char metric is not
9745 available. If it->multibyte_p is zero and it->c is a multibyte
9746 character, convert it to a unibyte character.
9747 (struct glyph_string): Delete member `charset'.
9748 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
9749 the case that per char metric is not available correctly.
9750 (x_fill_glyph_string): Handle the case that the specific glyph is
9751 not available correctly.
9752 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
9753 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
9754 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
9755 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
9756 fontset. Don't call FS_LOAD_FONT.
9757
9758 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
9759 (x_create_tip_frame): Likewise.
9760 (Fx_close_connection): Free full_name of font_info.
9761
9762 * fns.c (optimize_sub_char_table): New function.
9763 (Foptimize_char_table): New function.
9764 (syms_of_fns): Defsubr Soptimize_char_table.
9765
b33dd3b0
GM
97662000-03-20 Gerd Moellmann <gerd@gnu.org>
9767
9768 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
9769 only if buffer is displayed in some window.
9770
9771 * xdisp.c (handle_single_display_prop): Initialize local `value'.
9772 (try_window_reusing_current_matrix): Don't call scroll run
9773 function if run's current and desired position are the same;
9774 this prevents cursor flickering.
9775
4e8a9132
SM
97762000-03-19 Stefan Monnier <monnier@cs.yale.edu>
9777
9778 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
9779
9780 * regex.c (RE_STRING_CHAR): New macro.
9781 (GET_CHAR_AFER_2): Remove.
9782 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
9783 (enum re_opcode_t): Remove on_failure_jump_exclusive.
9784 (print_partial_compiled_pattern, re_compile_fastmap)
9785 (re_match_2_internal): Remove on_failure_jump_exclusive.
9786 (regex_compile): Turn optimizable P+ loops into PP*, so that the
9787 optimization only need to work for * (ie. can use of_keep_string_jump).
9788 Remove the special case for .*\n since it is now covered by the general
9789 optimization.
9790 (re_search_2): Don't bother with `room'.
9791 (skip_one_char): New function.
9792 (skip_noops): Simplify since `memory' is not needed any more.
9793 (mutually_exclusive_p): Restructure slightly to use `switch' and
9794 add handling for "all" remaining cases.
9795 (re_match_2_internal): Change on_failure_jump_smart to use
9796 on_failure_keep_string_jump (and redirect the end-of-loop jump)
9797 rather than on_failure_jump_exclusive.
9798
2136fdd4
GM
97992000-03-19 Gerd Moellmann <gerd@gnu.org>
9800
9801 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
9802 number of bits per RGB because it's everywhere used as the depth
9803 of the visual.
9804
9805 * term.c (calculate_costs): Remove code dealing with X frames.
9806
18e21ce8 98072000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
9808
9809 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
9810
d7b511c4
GM
98112000-03-18 Gerd Moellmann <gerd@gnu.org>
9812
9813 * lread.c (read_integer): Unread the last char not consumed.
9814
16b5d424
GM
98152000-03-17 Gerd Moellmann <gerd@gnu.org>
9816
9817 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 9818 which are in the process of being deleted.
16b5d424 9819
1fa28578
GM
98202000-03-16 Gerd Moellmann <gerd@gnu.org>
9821
83488cce
GM
9822 * Makefile.in (mostlyclean): Add `*.core'.
9823 (clean): Add `bootstrap-emacs'.
9824
1fa28578
GM
9825 * lread.c (read_integer): New function.
9826 (read1): Support read syntax #o, #x, #b, #r.
9827
99633e97
SM
98282000-03-15 Stefan Monnier <monnier@cs.yale.edu>
9829
1fa28578
GM
9830 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
9831 make sure POINTER_TO_OFFSET gives the same value before and after
9832 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
9833 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
9834 (debug): Now only active if > 0 rather than if != 0.
9835 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
9836 (print_partial_compiled_pattern): Add missing `succeed' case. Use
9837 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
9838 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
9839 (store_op1, store_op2, insert_op1, insert_op2)
9840 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
9841 (group_in_compile_stack): Move to after its arg's types are
9842 declared and add a prototype.
99633e97 9843 (PATFETCH): Define in terms of PATFETCH_RAW.
1fa28578
GM
9844 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
9845 wrapper.
99633e97 9846 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
9847 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
9848 indentation of the greedy-op and shy-group code.
99633e97
SM
9849 (at_(beg|end)line_loc_p): Fix argument's types.
9850 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
9851 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
9852 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
9853 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
9854 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
9855 QUIT unconditionally.
99633e97 9856
699238d9
GM
98572000-03-15 Gerd Moellmann <gerd@gnu.org>
9858
9859 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
9860 a sole completion.
9861
9862 * process.c (send_process): Add a hint that the function
9863 can call Lisp code to its comment.
9864
9865 * lread.c (load_dangerous_libraries): New variable.
9866 (Vbytecomp_version_regexp): New variable.
9867 (safe_to_load_p): New function.
9868 (Fload): Handle files not compiled with Emacs specially.
9869 (syms_of_lread): New Lisp variable load-dangerous-libraries.
9870
34e23e5a
GM
98712000-03-14 Gerd Moellmann <gerd@gnu.org>
9872
9c763cca
GM
9873 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
9874
9875 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
9876 support functions only if HAVE_X11R6_XIM is defined.
9877 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
9878
9879 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
9880
9881 * xfns.c (X_I18N_INHIBITED): Don't define.
9882 (create_frame_xic): Remove conditional compilation on
9883 X_I18N_INHIBITED.
9884 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
9885
9886 * config.in (HAVE_X_I18N): Moved here from xterm.h.
9887 (HAVE_X11R6_XIM): Define.
9888
9889 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
9890
34e23e5a
GM
9891 * xterm.c (x_term_init): Add support for X resource `synchronous'.
9892 If set, call XSynchronize.
9893
66f0296e
SM
98942000-03-13 Stefan Monnier <monnier@cs.yale.edu>
9895
34e23e5a
GM
9896 * regex.c: Declare a new type `re_char' used throughout the code
9897 for the string char type. It's `const unsigned char' to match the
9898 rest of Emacs. Consistently make sure all pointers to strings use
9899 it and make sure all pointers into the pattern use `unsigned
9900 char'.
66f0296e 9901 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
9902 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
9903 code duplication.
66f0296e
SM
9904
9905 * charset.h (GET_CHAR_AFTER_2): Remove.
9906 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
9907
854a025c
KR
99082000-03-12 Ken Raeburn <raeburn@gnu.org>
9909
9910 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
9911 variable before the invocation of YMF_PASS_LDFLAGS, in case both
9912 of them try to use backquotes.
9913
b9d2c7e2
DL
99142000-03-12 Dave Love <fx@gnu.org>
9915
9916 * unexelf.c: Restore changes of 1999-10-19.
9917 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
9918 fix its type and alignment; copy it from current process.
9919
5e5dff44
GM
99202000-03-12 Gerd Moellmann <gerd@gnu.org>
9921
9b2f3c38
GM
9922 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
9923 has been found. Fix bug not computing timer's predecessor.
9924
427ec082 9925 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
9926 file name.
9927
e1cff360
GM
9928 * window.c (Fsave_window_excursion): Doc fix.
9929
5e5dff44
GM
9930 * xfns.c (x_defined_color): Rewritten to use
9931 x_allocate_nearest_color.
9932
e411ce4b
EZ
99332000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
9934
9935 * msdos.c (vga_installed): New function, code moved from
9936 dos_set_window_size.
9937 (Qbar, Qcursor_type, outside_cursor): New variables.
9938 (syms_of_msdos): Intern and staticpro them.
9939 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
9940 shape used outside Emacs when called for the first time.
9941 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
9942 cursor shape used outside Emacs.
9943 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
9944 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
9945 type has changed.
9946 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
9947 parameters specify the cursor. Make qreverse a global
9948 variable (renamed to Qreverse).
9949
80460654
GM
99502000-03-09 Gerd Moellmann <gerd@gnu.org>
9951
9952 * fns.c (Fy_or_n_p): Cancel busy-cursor.
9953
95cd4c40
SM
99542000-03-08 Stefan Monnier <monnier@cs.yale.edu>
9955
9956 This is a big redesign of failure-stack and register handling, prompted
9957 by bugs revealed when trying to add shy-groups. Overall, what happened
9958 is that loops are now structured a little differently, groups can be
9959 shy and the code is a little simpler.
9960
9961 * regex.h: Update the copyright.
9962 (RE_SHY_GROUPS): New value.
9963 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
9964 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
9965
80460654
GM
9966 * regex.c (enum re_opcode_t): Remove jump_past_alt,
9967 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
9968 on_failure_jump_(exclusive, loop and smart). Also fix the comment
9969 for (start|stop)_memory since they now only take one argument (the
9970 second has becomes unnecessary).
9971 (print_partial_compiled_pattern): Adjust for changes in
9972 re_opcode_t.
9973 (print_compiled_pattern): Use %ld to printf long ints and flush to
9974 make debugging a little easier.
95cd4c40
SM
9975 (union fail_stack_elt): Make the integer unsigned.
9976 (struct fail_stack_type): Add a `frame' element.
9977 (INIT_FAIL_STACK): Init `frame' as well.
9978 (POP_PATTERN_OP): New macro for re_compile_fastmap.
9979 (DEBUG_PUSH, DEBUG_POP): Remove.
9980 (NUM_REG_ITEMS): Remove.
9981 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
9982 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
9983 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 9984 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
80460654
GM
9985 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
9986 macros.
9987 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
9988 address pushed is not the destination of the jump but the source
9989 of it instead.
95cd4c40
SM
9990 (NUM_FAILURE_ITEMS): Remove.
9991 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
9992 registers before the actual failure point). Don't hardcode any
9993 meaning for str==NULL anymore.
95cd4c40 9994 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
9995 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
9996 Remove.
95cd4c40
SM
9997 (REG_UNSET_VALUE): Use NULL (why not?).
9998 (compile_range): Remove declaration since it doesn't exist.
9999 (struct compile_stack_elt_t): Remove inner_group_offset.
10000 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
10001 (regex_grow_registers): Remove dead code.
10002 (FIXUP_ALT_JUMP): New macro.
80460654
GM
10003 (regex_compile): Add shy-groups Change loops to use
10004 on_failure_jump_smart&jump instead of
10005 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
10006 initial (dummy_failure_)jump. Remove c1_base (looks like unused
10007 variable to me). Use `jump' instead of `jump_past_alt' and don't
10008 bother with push_dummy_failure in alternatives since it is now
10009 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
10010 emacs' for (re)allocating the stack.
10011 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
10012 from loop when bufp->can_be_null rather than jumping to `done'.
10013 Avoid jumping backwards so as to ensure termination. Use
10014 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
10015 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 10016 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
10017 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
10018 improve mutually_exclusive_p to handle ".+\n".
10019 (lowest_active_reg, highest_active_reg,
10020 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
10021 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
10022 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
10023 variables. Push register (in `start_memory') on the stack rather
10024 than storing it in old_reg(start|end). Remove the cycle detection
10025 from `stop_memory', replaced by the use of on_failure_jump_loop
10026 for greedy loops. Add code for the new on_failure_jump_<foo>.
10027 Remove ad-hoc code in `on_failure_jump' to push more registers in
10028 the case of a loop. Take out code from `maybe_pop_jump' into
10029 separate functions and adapt it to the semantics of
10030 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
10031 and push_dummy_failure. Remove dummy_failure handling and
10032 handling of `failures to jump to on_failure_jump' (this last one
10033 was already dead code, it seems).
10034 (group_match_null_string_p, alt_match_null_string_p)
10035 (common_op_match_null_string_p): Remove.
95cd4c40 10036
7397acc4
DL
100372000-03-08 Dave Love <fx@gnu.org>
10038
10039 * config.in: Don't depend on __STDC__ for volatile.
10040 Add POINTER_TYPE, PTR, PROTOTYPES.
10041
10042 * hftctl.c, strftime.c: Use PROTOTYPES.
10043 * eval.c (find_handler_clause): Likewise.
10044
10045 * mem-limits.h: Use POINTER_TYPE.
10046
10047 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
10048 (memory_warnings): Declare using POINTER_TYPE.
10049
5e91ff9e
GM
100502000-03-08 Gerd Moellmann <gerd@gnu.org>
10051
feab4fba
GM
10052 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
10053
25edb08f
GM
10054 * xdisp.c (display_echo_area): Temporarily inhibit garbage
10055 collection.
10056
5e91ff9e
GM
10057 * xfns.c: Remove obsolete code in #if 0.
10058 (Fx_focus_frame): New function.
10059
a735b7e1
KH
100602000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
10061
10062 * coding.c (coding_category_name): Add coding-category-utf-8,
10063 coding-category-utf-16-be, coding-category-utf-16-le.
10064 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
10065 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
10066 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
10067 (detect_coding_utf_8): New function.
10068 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
10069 UTF_16_LOW_SURROGATE_P): New macros.
10070 (detect_coding_utf_16): New function
10071 (detect_coding_mask): When priorities are specified, skip any
10072 categories that have `nil' coding-system. Fix bug of returning
10073 wrong mask when PRIORITIES is specified and detect_coding_XXX()
10074 returns a mask not set in PRIORITIES.
10075 (detect_eol_type_in_2_octet_form): New function.
10076 (detect_eol): selects detect_eol_type_XXX to call according to
10077 cooding->category_idx.
10078 (detect_coding_system): Remove `nil' coding-system in the result.
10079 (Fupdate_coding_systems_internal): Update all coding-categories.
10080
10081 * coding.h (CODING_CATEGORY_IDX_UTF_8,
10082 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
10083 macros.
10084 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
10085 CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
10086 CODING_CATEGORY_IDX_UTF_16_LE.
10087 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
10088 CODING_CATEGORY_MASK_UTF_16_LE): New macros.
10089 (CODING_CATEGORY_MASK_ANY): Include the above macros.
10090 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
10091
9994cc69
GM
100922000-03-07 Gerd Moellmann <gerd@gnu.org>
10093
e9b4e5ff
GM
10094 * doc.c (Fdocumentation_property): If value is not a string,
10095 and doesn't refer to etc/DOC, evaluate it to obtain a string.
10096
f7daf1e1
GM
10097 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
10098 close the display with XtCloseDisplay. This caused a bus error
10099 on OpenWindows.
10100
9994cc69
GM
10101 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
10102 complete but not unique.
10103
4336c705
GM
101042000-03-06 Gerd Moellmann <gerd@gnu.org>
10105
18bb0684
GM
10106 * process.c (send_process): Remove local variable `procname' that
10107 might become invalid when a GC happens. Instead, access the
10108 process name slot directly.
10109
4336c705
GM
10110 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
10111 orig_height if set.
10112
10113 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
10114 orig_height if set.
10115
515d0d0e
EZ
101162000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
10117
10118 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
10119 glyph matrices have been freed.
10120
100b3cbb
GM
101212000-03-05 Gerd Moellmann <gerd@gnu.org>
10122
50df5e5a 10123 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 10124 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
10125
10126 * xfns.c (QCdata): Moved to xdisp.c.
10127
10128 * xdisp.c (QCdata): Moved here from xfns.c.
10129 (syms_of_xdisp): Initialize QCdata.
10130
10131 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
10132
10133 * window.c (coordinates_in_window): Use
10134 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
10135 FRAME_INTERNAL_BORDER_WIDTH.
10136
100b3cbb 10137 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 10138 it is obviously invalid.
100b3cbb
GM
10139
10140 * xterm.c (x_term_init): Create a colormap if not using the
10141 default visual.
10142
10143 * xterm.h (select_visual): Change prototype.
10144
10145 * xfns.c (select_visual): Rewritten. Recognize user-specified
10146 visual classes.
10147 (visual_classes): New variable.
10148
64d739c4
GM
101492000-03-04 Gerd Moellmann <gerd@gnu.org>
10150
10151 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
10152 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
10153 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
10154 (x_decode_color): Don't handle allocation of white and black
10155 specially.
10156 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
10157 XtNcolormap resources.
10158 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
10159 (Fx_create_frame): Initialize color members of x_output structure.
10160 (xpm_load): Pass colormap to XPM lib.
10161
10162 * xfaces.c (x_free_colors): Access colormap of frame using
10163 FRAME_X_COLORMAP. Be paranoid about freeing black and white
10164 when default colormap is used.
10165
10166 * xterm.c (x_term_init): Set Colormap member of x_display_info
10167 structure. Copy colormap if resource `privateColormap' is
10168 specified (PseudoColor only).
10169 (x_setup_relief_color): Access colormap of frame using
10170 FRAME_X_COLORMAP.
10171
10172 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
10173 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
10174
c3cee013
JR
101752000-03-04 Jason Rumney <jasonr@gnu.org>
10176
10177 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
10178 other non-platform-specific equivalents.
64d739c4 10179 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
10180 specific functions and macros as their w32 equivalents where
10181 non-platform-specifics are not available.
10182 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
10183 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
10184 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
10185 (frame_update_line_height): Use macros to access f->output_data.
10186 (defined_color): Remove FIXME comments; fixed.
10187 (x_face_list_fonts, prepare_face_for_display): Put X specifics
10188 into #ifdef blocks. Add WINDOWSNT blocks.
10189 (Fx_list_fonts): Use macros for accessing font data.
10190 (set_lface_from_font_name): Different default fonts for X and
10191 WINDOWSNT.
10192 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
10193 scalable for backward compatibility.
64d739c4 10194 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
10195 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
10196
64d739c4 10197 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
10198 syms_of_w32faces.
10199
10200 * makefile.nt (w32faces.obj): Remove.
10201 (xfaces.obj): Add.
10202
807cc41c
JR
102032000-03-03 Jason Rumney <jasonr@gnu.org>
10204
10205 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
10206 correct parameters.
10207
0007072a
KR
102082000-03-03 Ken Raeburn <raeburn@gnu.org>
10209
10210 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
10211 standard ELF definitions here if the system header does not.
10212
71a6ba55
GM
102132000-03-03 Gerd Moellmann <gerd@gnu.org>
10214
10215 * xterm.c (PER_CHAR_METRIC): Removed.
10216 (x_per_char_metric_1, x_default_char): New functions.
10217 (x_per_char_metric): If font's default char is invalid, return
10218 metrics of a suitably chosen usable default char.
10219 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
10220 char, replace occurrences of unprintable chars with a suitably
10221 chosen usable default char.
71a6ba55 10222
900fa1f1
GM
102232000-03-02 Gerd Moellmann <gerd@gnu.org>
10224
42f55fe0
GM
10225 * xterm.c (note_mouse_highlight): Return quickly if frame's
10226 glyph matrices have been freed.
10227
10228 * dispnew.c (free_glyphs): Block input while freeing matrices.
10229
900fa1f1
GM
10230 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
10231
10232 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
10233 x_free_colors.
10234
10235 * dispextern.h (x_free_colors): Add prototype.
10236
10237 * xfaces.c (x_free_colors): New function.
10238 (unload_color, free_face_colors): Use it.
10239
2f950292
EZ
102402000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
10241
10242 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
10243
10244 * window.c [MSDOS]: Include msdos.h.
10245
54d04320
DL
102462000-03-02 Dave Love <fx@gnu.org>
10247
10248 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
10249
10250 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
10251 set C_OPTIMIZE_SWITCH for gcc.
10252
0ba93ac4
KH
102532000-03-02 Kenichi Handa <handa@etl.go.jp>
10254
10255 * coding.c (coding_save_composition): Be sure to allocate
10256 composition data area in coding even if there's no composition in
10257 the current run.
10258
a2bc11d4
JR
102592000-03-01 Jason Rumney <jasonr@gnu.org>
10260
10261 * w32term.c: Equivalent changes to those made to xterm.c on
10262 2000-02-25 and 2000-02-24.
10263
10264 * w32fns.c: Equivalent changes to those made to xfns.c on
10265 2000-02-25 and 2000-02-21.
10266
10267 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
10268 correct line-end convention is followed.
10269
10270 * w32menu.c [HAVE_BOXES]: Remove #undef.
10271 (single_keymap_panes): Remove code for simulating checkmarks.
10272 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
10273 Remove code for drawing simulated checkmarks.
10274 (w32_menu_show): make unibyte help string correctly.
10275 (add_menu_item): draw standard Windows checkmarks. Draw radio
10276 buttons as radio buttons if possible.
10277
72d19d75
GM
102782000-03-01 Gerd Moellmann <gerd@gnu.org>
10279
2df636f4
GM
10280 * sysdep.c (start_of_text): Don't define this function for NetBSD
10281 with ELF.
10282
427ec082 10283 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
10284 Don't define.
10285 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
10286 (LINKER): Don't undef if __NetBSD__ is defined.
10287
10288 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
10289
10290 * fileio.c [__NetBSD__]: Define `unix'.
10291
72d19d75
GM
10292 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
10293
ed4d0512
GM
102942000-02-29 Gerd Moellmann <gerd@gnu.org>
10295
50b1039f
GM
10296 * atimer.c (start_atimer): Don't abort when timers are stopped.
10297 (append_atimer_lists): New function.
10298 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
10299 arbitrary lists of stopped and running atimers.
10300
ed4d0512
GM
10301 * atimer.c (cancel_atimer): Handle canceling an atimer when
10302 some timers are stopped.
10303
10304 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
10305 after canceling it.
10306
10307 * fns.c (maybe_resize_hash_table): Handle case of new size
10308 coming out as being the same as old size.
10309
387023ee
JR
103102000-02-27 Jason Rumney <jasonr@gnu.org>
10311
10312 * makefile.nt: Add atimer.h to dependencies.
10313 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
10314 * w32console.c: Only disable window system features for dispextern.h
10315 (initialize_w32_display): Build a display info for the console.
10316 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
10317 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
10318 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
10319 as 2 button mice.
10320 * w32gui.h (struct W32FontStruct): Revert last change after change
10321 to xdisp.c.
10322 * w32menu.c (single_submenu): Set up help string.
10323 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
10324 (w32_dialog_show): Set up help string.
10325 * w32term.c (w32_display_info_for_display): Remove unused function.
10326 (w32_draw_bitmap): Use pre-built bitmaps.
10327 (w32_initialize_display_info): New function to initialize parts of
10328 display info that are common to both GUI and console frames.
10329 (w32_term_init): Use w32_initialize_display_info. Do not set
10330 Vw32_num_mouse_buttons here, as it is not called for console
10331 frames. Build bitmaps for indicating truncated lines etc.
10332 (x_delete_display): Destroy pre-built bitmaps.
10333 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
10334 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
10335
4516715a
DL
103362000-02-27 Dave Love <fx@gnu.org>
10337
10338 * lisp.h: Add a bunch of prototypes.
10339
171ca836
KH
103402000-02-26 Kenichi Handa <handa@etl.go.jp>
10341
10342 * keyboard.c (read_char): Set `usec' correctly.
10343
4013921d
KH
103442000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
10345
10346 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
10347 `lambda', set reg[RRR] to the map index.
10348 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
10349 reg[RRR] to 0. Otherwise, set it to -1.
10350
9244a058
GM
103512000-02-25 Gerd Moellmann <gerd@gnu.org>
10352
2df636f4 10353 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 10354
18e21ce8 103552000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 10356
f43d79c1
GM
10357 * fileio.c (Ffile_symlink_p): If result starts with a `/'
10358 and contains a `:', prepend `/:'.
10359
10360 * window.c (select_window_1): If selected_window is nil,
10361 don't "swap out" the buffer's point.
10362 (Fset_window_configuration): Set selected_window to nil
10363 before calling Fselect_window.
10364 (unshow_buffer): Don't set point in buffer from window's point
10365 if another more recently selected window also shows the buffer.
10366
bed0c171
GM
103672000-02-25 Gerd Moellmann <gerd@gnu.org>
10368
449c3c52
GM
10369 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
10370
f5b58615
GM
10371 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
10372 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
10373 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
10374 variables.
10375 (DEFAULT_BUSY_CURSOR_DELAY): New define.
10376 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
10377 (hide_busy_cursor): New functions.
10378 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
10379
10380 * minibuf.c (read_minibuf): Cancel busy-cursor.
10381
10382 * keyboard.c (command_loop_1): Call start_busy_cursor before
10383 Fcommand_execute and cancel_busy_cursor after it.
10384 (timer_check): Remove busy-cursor code.
10385 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
10386 cursor timer.
10387
10388 * process.c (wait_reading_process_input): Remove busy-cursor code.
10389
10390 * eval.c (Fsignal): Call cancel_busy_cursor instead of
10391 Fx_hide_busy_cursor.
10392
10393 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
10394 Remove prototyoes.
10395 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
10396
10397 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
10398
10399 * xterm.c (XTread_socket): Remove busy-cursor code.
10400
4eb8436f
GM
10401 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
10402 (build_frame_matrix_from_leaf_window): Put code handling
10403 glyph row's not being a slice of a frame row in #if 0.
10404 (sync_window_with_frame_matrix_rows): New function.
10405 (frame_row_to_window): New function.
10406 (mirror_line_dance): Handle copies between windows.
10407
3cb65b0e
GM
10408 * lread.c (Fload): Use `xfree' instead of `free'.
10409 (init_obarray): Use `xmalloc' instead of `malloc'.
10410
bed0c171
GM
10411 * window.c (Fset_window_buffer): Set WINDOW to the window
10412 after decoding.
2add4349
GM
10413 (coordinates_in_window): Take frame's internal border width
10414 into account.
bed0c171 10415
42088c12
GM
104162000-02-24 Gerd Moellmann <gerd@gnu.org>
10417
10418 * xterm.c (x_display_and_set_cursor): Display cursor of
10419 non-selected windows depending on the setting of
10420 cursor_in_non_selected_windows.
10421
10422 * xdisp.c (cursor_in_non_selected_windows): New variable.
10423 (syms_of_xdisp): DEFVAR_BOOL it.
10424
d1e103b2
GM
104252000-02-23 Gerd Moellmann <gerd@gnu.org>
10426
723e779c
GM
10427 * data.c (Fstring_to_number): If number is greater than what
10428 fits into an integer, return a float.
10429
d1e103b2
GM
10430 * eval.c (specbind): Remove references to
10431 keyword_symbols_constant_flag.
10432
10433 * data.c (keyword_symbols_constant_flag): Removed.
10434 (Fmakunbound, set_internal, syms_of_data): Remove references to
10435 keyword_symbols_constant_flag.
10436
10437 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
10438
214f877f
KH
104392000-02-23 Kenichi Handa <handa@etl.go.jp>
10440
10441 * syntax.c (multibyte_syntax_as_symbol): New variable.
10442 (syms_of_syntax): Declare it as a Lisp variable.
10443 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
10444 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
10445 nonzero, treat all multibyte characters as symbol.
42088c12 10446 (init_syntax_once): Give syntax `word' to all multibyte
214f877f
KH
10447 characters.
10448
130adcb7
EZ
104492000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
10450
3cb65b0e 10451 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 10452 a deleted frame.
130adcb7 10453
17cbbf95
GM
104542000-02-21 Gerd Moellmann <gerd@gnu.org>
10455
10456 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
10457
10458 * xfns.c (x_window_to_frame, x_any_window_to_frame)
10459 (x_non_menubar_window_to_frame): Check the busy-cursor window.
10460
beb0bc36
DL
104612000-02-21 Dave Love <fx@gnu.org>
10462
10463 * frame.c (Vmouse_position_function): New variable.
10464 (Fmouse_position): Use it.
10465 (syms_of_frame): Install it.
10466
10467 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
10468
1d92afcd
GM
104692000-02-20 Gerd Moellmann <gerd@gnu.org>
10470
10471 * fileio.c (Finsert_file_contents): Unbind the binding of
10472 standard-output done by temp_output_buffer_setup.
329eed9f
GM
10473
10474 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
10475 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
10476 (specbind, unbind_to): Handle most common case of non-constant
10477 symbol with trivial value specially.
10478
10479 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
10480
18e21ce8 104812000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
10482
10483 * data.c (Fmake_variable_buffer_local): Doc fix.
10484 Init found_for_buffer to 0.
10485 (Fmake_variable_frame_local): If the variable has already
10486 been buffer-local, set the check_frame field.
10487
1d4311c3
EZ
104882000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
10489
10490 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
10491 produced for CODING_MODE_LAST_BLOCK requires.
10492
2dc95ddd
DL
104932000-02-18 Dave Love <fx@gnu.org>
10494
10495 * keyboard.c (echo_keystrokes): Remove declaration.
10496 (Vecho_keystrokes) New variable.
10497 (read_char, record_menu_key, read_key_sequence): Use it to allow
10498 use of float value.
10499 (syms_of_keyboard): Change Vecho_keystrokes declaration.
10500
10501 * lread.c: Undef feature selection macros before defining.
10502
f0930f35
GM
105032000-02-18 Gerd Moellmann <gerd@gnu.org>
10504
10505 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
10506 for symbols other than the symbol in question.
10507
e3d4de90
DL
105082000-02-17 Dave Love <fx@gnu.org>
10509
10510 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
10511
0b378936
GM
105122000-02-17 Gerd Moellmann <gerd@gnu.org>
10513
d621caf7
GM
10514 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
10515
0b378936
GM
10516 * alloc.c (enum mem_type): Compile unconditionally.
10517
3b451f74
EZ
105182000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
10519
10520 * xfaces.c (tty_defined_color): Don't return faulire indication
10521 for unspecified-fg and unspecified-bg pseudo-colors.
10522
10689a01
GM
105232000-02-17 Gerd Moellmann <gerd@gnu.org>
10524
1216f5e4
GM
10525 * alloc.c (mark_object): Don't mark symbol names in pure space.
10526 (gc_sweep): Don't unmark symbol names in pure space.
10527
10528 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
10529 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
10530 [GC_MARK_STACK]: New defines.
427ec082 10531 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
10532 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
10533
10534 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
10535
10536 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
10537 allocate_buffer instead of xmalloc.
10538
10539 * alloc.c (toplevel): Include setjmp.h.
10540 (PURE_POINTER_P): New define.
10541 (enum mem_type) [GC_MARK_STACK]: New enumeration.
10542 (Vdead) [GC_MARK_STACK]: New variable.
10543 (lisp_malloc): Add parameter TYPE, call mem_insert if
10544 GC_MARK_STACK is defined.
10545 (allocate_buffer): New function.
427ec082 10546 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
10547 (free_float) [GC_MARK_STACK]: Set type to Vdead.
10548 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
10549 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
10550 (MEM_NIL) [GC_MARK_STACK]: New define.
10551 (struct mem_node) [GC_MARK_STACK]: New structure.
10552 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
10553 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
10554 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
10555 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
10556 (mark_stack) [GC_MARK_STACK]: New functions.
10557 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
10558 (clear_marks): Removed.
10559 (gc_sweep): Set free conses' car, free floats' type, free
10560 symbols' function to Vdead. Use lisp_free to free buffers.
10561 (init_alloc_once): Initialize Vdead.
10562 (survives_gc_p): Return non-zero for pure objects.
10563
10564 * alloc.c: Add comments throughout the file.
10565
2503c8b1
GM
10566 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
10567 that unblocks alarms.
10568
8389e1e2
GM
10569 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
10570 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
10571 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
10572
10689a01 10573 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 10574
bfc17d18
KH
105752000-02-17 Kenichi Handa <handa@etl.go.jp>
10576
4a09dee0
KH
10577 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
10578 avoid infinite error signaling. Allocate sufficient memory for
10579 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 10580
2b927d02
SM
105812000-02-17 Stefan Monnier <monnier@cs.yale.edu>
10582
10583 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
10584 depends on the previous behavior.
10585
b49cb764
GM
105862000-02-16 Gerd Moellmann <gerd@gnu.org>
10587
10588 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
10589
99e95407
GM
105902000-02-15 Gerd Moellmann <gerd@gnu.org>
10591
10592 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
10593
10594 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 10595 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
10596 write(2).
10597
6ffd3cf7
RS
105982000-02-15 Richard M. Stallman <rms@gnu.org>
10599
10600 * data.c (set_internal): Don't make variable buffer-local
10601 if within a let-binding for the same buffer.
10602 (let_shadows_buffer_binding_p): New function.
10603
10604 * eval.c (specbind): For buffer-local value,
10605 record the current buffer also.
10606 (unbind_to): Cope with that change.
10607
cad53475
GM
106082000-02-15 Gerd Moellmann <gerd@gnu.org>
10609
10610 * window.c (Fsave_window_excursion): Doc fix.
10611
1aa963c8
SM
106122000-02-15 Stefan Monnier <monnier@cs.yale.edu>
10613
10614 * syntax.c (back_comment): Make sure we only consider comment-starters
10615 of the relevant style and return -1 in case of a failure to find the
10616 beginning of the comment.
10617 (Fforward_comment): If back_comment fails, go back to the position just
10618 after the comment-end.
10619 (scan_lists): Add comment describing a very minor bug.
10620
b9b84fd3
SM
106212000-02-14 Stefan Monnier <monnier@cs.yale.edu>
10622
10623 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
10624 `completion-regexp-list' in the docstring.
10625
3a28db80
DL
106262000-02-14 Dave Love <fx@gnu.org>
10627
10628 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
10629
fb4a568d
SM
106302000-02-14 Stefan Monnier <monnier@cs.yale.edu>
10631
10632 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
10633 to Emacs' syntax. Also fix the comment about set/not-set meanings
10634 since Emacs syntax is not the value 0 any more.
10635 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
10636 since it's now part of RE_SYNTAX_EMACS.
10637
1063ebb5
DL
106382000-02-12 Dave Love <fx@gnu.org>
10639
10640 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
10641 Alpha.
10642
fb07a302
GM
106432000-02-12 Gerd Moellmann <gerd@gnu.org>
10644
10645 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
10646
aaf2320c
DL
106472000-02-12 Dave Love <fx@gnu.org>
10648
10649 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
10650
10651 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
10652 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
10653 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
10654
10655 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
10656
10657 * s/nextstep.h: Don't define HAVE_ALLOCA.
10658
10659 * config.in: Add vfork bits.
10660
eedf8bde
GM
106612000-02-12 Gerd Moellmann <gerd@gnu.org>
10662
10663 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
10664 unwind function to undo the effect of stopping atimers.
10665
10666 * keyboard.c (bind_polling_period): Stop all timers except
10667 poll_timer.
10668
10669 * atimer.c (stopped_atimers): New variable.
10670 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
10671 New functions.
10672
10673 * atimer.h (stop_other_atimers, run_all_atimers)
10674 (unwind_stop_other_atimers): Add function prototypes.
427ec082 10675
eedf8bde
GM
10676 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
10677
8476c2f8
KR
106782000-02-11 Ken Raeburn <raeburn@gnu.org>
10679
10680 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
10681 library may depend on jpeg.
10682 (atimer.o): Depends on atimer.c.
10683
0e85e4a3
KH
106842000-02-11 Kenichi Handa <handa@etl.go.jp>
10685
10686 * insdel.c (del_range_1): Call update_compositions.
10687 (del_range_both): Call update_compositions just once..
10688
97fa0cc8
DL
106892000-02-10 Dave Love <fx@gnu.org>
10690
10691 * xfns.c (create_frame_xic): Fix initialization of automatic
10692 aggregates for pcc.
10693
25566a3c
KH
106942000-02-09 Kenichi Handa <handa@etl.go.jp>
10695
10696 * ccl.c (CCL_MAKE_CHAR): New macro.
10697 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
10698 registers by CCL_MAKE_CHAR before calling translate_char.
10699 <CCL_TranslateCharacterConstTbl> Likewise.
10700
69da54ba
DL
107012000-02-08 Dave Love <fx@gnu.org>
10702
10703 * lread.c (__EXTENSIONS__): Define.
10704
f7136ee8
GM
107052000-02-08 Gerd Moellmann <gerd@gnu.org>
10706
10707 * puresize.h (BASE_PURESIZE): Increase to 650000.
10708
7768790b
EZ
107092000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
10710
10711 * msdos.c (XMenuActivate): Turn off the cursor after displaying
10712 the help message.
10713
38fd211b
EZ
107142000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
10715
10716 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
10717 md, mh, mb, mr, and me to the fake termcap entry.
10718
66e4690f
KR
107192000-02-06 Ken Raeburn <raeburn@gnu.org>
10720
10721 * sound.c (sound_cleanup): Don't call device close routine if the
10722 function pointer is null.
10723
a75dfea0
AI
107242000-02-06 Andrew Innes <andrewi@gnu.org>
10725
10726 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
10727 around image definitions and prototypes.
10728 (gamma_correct) [WINDOWSNT]: New prototype.
10729
10730 * w32term.c (x_make_frame_visible): Replace call to
10731 input_poll_signal with poll_for_input.
10732
10733 * window.c [WINDOWSNT]: Include w32term.h.
10734
10735 * xdisp.c [WINDOWSNT]: Include w32term.h.
10736
10737 * makefile.nt: Add dependencies on w32gui.h.
10738 (OBJ1): Include atimer.obj.
10739 ($(BLD)\atimer.obj): New dependency rule.
10740
10741 * w32.c (sigmask): New function (does nothing).
10742 (sigunblock): Ditto.
10743
10744 * frame.c [WINDOWSNT]: Include w32term.h.
10745
10746 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
10747
10748 * lread.c (syms_of_lread): Fix literal newlines.
10749
10750 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
10751 the string constant limit (2048 bytes) in MSVC.
10752 (main): Ditto.
10753
59ddecde
GM
107542000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
10755
10756 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
10757 area.
10758 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
10759 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
10760 dispatch the event.
10761
07590973
DL
107622000-02-04 Dave Love <fx@gnu.org>
10763
10764 * fileio.c: Remove some unused vars.
10765 (_GNU_SOURCE): Define (for euidaccess).
10766
10767 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
10768
10769 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
10770 gcpro1, gcpro2.
10771 (read_minibuf): Deal with allow_props correctly.
10772
649351f9
EZ
107732000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
10774
10775 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
10776
66e4690f 107772000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
10778
10779 * search.c (compile_pattern): If a cache entry has a nil regexp,
10780 fill in that entry instead of clobbering a previously cached
10781 string regexp.
10782
66e4690f 107832000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
10784
10785 * puresize.h (BASE_PURESIZE): Increase to 610000.
10786
d240a249
GM
107872000-02-02 Gerd Moellmann <gerd@gnu.org>
10788
10789 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
10790 can GC.
10791
ca91fb26
KH
107922000-02-02 Kenichi Handa <handa@etl.go.jp>
10793
25660570
KH
10794 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
10795 instead of incrementing ic directly.
10796 <CCL_WriteExprConst> Likewise.
10797 <ccl_set_expr>: Set ic to jump_address.
10798
ca91fb26
KH
10799 * fileio.c (e_write): Fix the handling of
10800 CODING_FINISH_INSUFFICIENT_SRC.
10801
2ede9689
DL
108022000-02-01 Dave Love <fx@gnu.org>
10803
10804 * editfns.c (Fpropertize): Doc fix.
10805
10806 * process.c (Fstart_process): Doc fix.
10807
10808 * eval.c: Fix various doc strings not to duplicate information
10809 from help-manyarg-func-alist.
10810
10811 * window.c (Fset_window_margins): Don't make interactive. Doc
10812 fix.
10813
10814 * doc.c (Vhelp_manyarg_func_alist): New variable.
10815 (Fdocumentation): Use it.
10816 (syms_of_doc): Define it.
10817
b6680a0e
GM
108182000-01-31 Gerd Moellmann <gerd@gnu.org>
10819
2cb750ba
GM
10820 * xterm.c (xim_open_dpy): Remove unused local variable.
10821
74e9213b
GM
10822 * emacs.c (USAGE): Use term `display options' instead of `X
10823 options'.
10824
10825 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
10826 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
10827
b6680a0e
GM
10828 * fns.c (sweep_weak_table): New function.
10829 (sweep_weak_hash_tables): Use it. Keep on marking until there
10830 is no more change.
10831
994c5afe
GM
108322000-01-30 Gerd Moellmann <gerd@gnu.org>
10833
10834 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
10835 that XTread_socket does not crash by trying to call XNoOp on a
10836 closed display.
427ec082 10837
f00276e3
JR
108382000-01-30 Jason Rumney <jasonr@gnu.org>
10839
10840 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
10841 Change selected_frame to SELECTED_FRAME ().
10842 (w32_console_mouse_position): Remove #ifndef MULE from around
10843 `insist' parameter.
10844
10845 * makefile.nt: Remove dosfns.obj.
10846
10847 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
10848
10849 * w32fns.c (w32_defined_color): Check for valid frame before
10850 applying gamma correction. Eliminate dependency on frame elsewhere.
10851 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
10852 (w32_to_x_font): Use resx and resy not height_in and width_in.
10853 (x_to_w32_font): Doc fix.
10854 (xlfd_strip_height): New function to strip and return font height.
10855 (w32_font_match): Compare height separately from rest of xlfd
10856 spec, using xlfd_strip_height.
10857
10858 * w32term.c (w32_term_init): Swap resx and height_in, resy and
10859 width_in. Use w32_defined_color in place of defined_color.
10860
10861 * w32faces.c: Merge more of DOS and X specifics in preparation for
10862 merge with xfaces.c.
10863 (defined_color): Remove FIXME comment.
10864 (tty_color_name): Provide w32-specific function.
10865 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
10866
10867 * w32console.c (turn_on_face, turn_off_face): Removed.
10868 (w32_face_attributes): New function.
10869 (Global_variables): Reduce scope where possible.
10870 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
10871 fill attribute.
10872 (hl_mode): Don't modify text attributes.
10873 (write_glyphs): Don't do anything if len <= 0. Use
10874 w32_face_attributes to get attributes for drawing. Write
10875 terminating codes using char_attr_normal.
10876 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
10877 (update_begin, update_end): Likewise.
10878 (vga_stdcolor_name): New function.
10879 (initialize_w32_display): Remove char_attr_reverse and char_attr.
10880 (Fset_screen_color): Remove char_attr_reverse.
10881
b08e8bb2
GM
108822000-01-29 Gerd Moellmann <gerd@gnu.org>
10883
10884 * xfns.c (xic_set_preeditarea): Take window parameter and
10885 window-relative pixel-positions.
10886
10887 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
10888 is its frame's selected window.
10889 (xim_instantiate_callback): Likewise.
10890
10891 * xfns.c (x_create_im): Removed.
10892 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
10893 (supported_xim_styles): Renamed from supported_styles.
10894 (best_xim_style): Renamed from best_style.
10895 (create_frame_xic): Renamed from xic_create_frame.
10896 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 10897
b08e8bb2
GM
108982000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
10899
10900 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
10901 our frames, call XFilterEvent with 2nd parameter `None'.
10902 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
10903 returning XBufferOverflow.
10904 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
10905 area.
10906 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
10907 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
10908 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
10909 (xim_initialize, xim_close)
10910 [HAVE_X_I18N && HAVE_X11R6]: New functions.
10911 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
10912 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
10913 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
10914
10915 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
10916 and `xim_styles'.
10917 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
10918 `xic_style' and `xic_xfs'.
10919 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
10920 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
10921 (FRAME_XIM): Removed.
10922
10923 * xfns.c (supported_styles): New variable.
10924 (DEFAULT_STYLE, DEFAULT_FONT): New macros
10925 (xic_create_xfontset, best_style, xic_create_frame)
10926 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
10927 (xic_set_xfontset): New functions.
10928
142e109c
DL
109292000-01-28 Dave Love <fx@gnu.org>
10930
10931 * s/irix6-5.h: Revert last change after change to irix5-0.h.
10932
10933 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
10934
b02786f9
GM
109352000-01-28 Gerd Moellmann <gerd@gnu.org>
10936
d060bc9f
GM
10937 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
10938 for *scratch* if it already existed.
10939
b02786f9
GM
10940 * emacs.c (USAGE): New macro.
10941 (main): Use it to display usage information.
10942
2c52d7e4
EZ
109432000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
10944
10945 Support for the menu-help feature:
10946
10947 * msdos.h: Change prototypes of XMenuAddSelection and
10948 XMenuActivate.
10949
10950 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
10951 part of the line to the termscript file.
10952 (IT_clear_to_end): Clear the entire line, not just its beginning.
10953 (menu_help_message, prev_menu_help_message): New variables.
10954 (IT_menu_make_room): Make room for the help_text member.
10955 (IT_menu_display): New argument disp_help; all callers changed.
10956 If disp_help is non-zero, store the help text of the active menu
10957 item in menu_help_message.
10958 (XMenuAddPane): Initialize the help_text member to NULL.
10959 (XMenuAddSelection): New argument help_text. Store it in the
10960 XMenu structure.
10961 (XMenuActivate): New argument help_callback. If the value of
10962 menu_help_message has changed since the last time, display the
10963 menu help message text while waiting for the mouse to move. Clear
10964 the echo area before exiting.
10965 (XMenuDestroy): Free the help_text member.
10966
ffe0bcd1
GM
109672000-01-27 Gerd Moellmann <gerd@gnu.org>
10968
10969 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
10970 XMenuAddSelection. Pass help callback to XMenuActivate.
10971 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
10972
50dbd23f
EZ
109732000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
10974
10975 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
10976 and EMACS_SET_USECS.
10977
f5941bf8
GM
109782000-01-26 Dave Love <fx@gnu.org>
10979
6c67ddee
DL
10980 * editfns.c (Fchar_after, Fchar_before): Doc fix.
10981
f5941bf8
GM
10982 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
10983 an error may be signalled.
10984
9e49c990
GM
109852000-01-26 Gerd Moellmann <gerd@gnu.org>
10986
fc3cb460
GM
10987 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
10988 LD_SWITCH_SYSTEM inherited from irix5-0.h.
10989
9e49c990
GM
10990 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
10991
d0c037d8
GM
109922000-01-25 Gerd Moellmann <gerd@gnu.org>
10993
10994 * charset.c (Fstring): If there is a multibyte char among
10995 the args, always return a multibyte string.
10996
e12489f9
GM
109972000-01-25 Gerd Moellmann <gerd@gnu.org>
10998
10999 * sysdep.c (sys_select): Turn atimers off and on instead of
11000 recording and restoring old alarm handler
11001
11002 * process.c (toplevel): Include atimer.h.
11003 (create_process_1): Rewritten.
11004 (create_process): Use atimers instead of alarm.
11005 (wait_reading_process_input) [hpux]: Turn atimers off instead
11006 of turning off SIGALRM.
11007 (wait_reading_process_input): Turn off atimers instead off
11008 calling stop_polling.
11009
11010 * emacs.c (main): Call init_atimer.
11011
11012 * keyboard.c (toplevel): Include systime.h and atimer.h.
11013 (polling_for_input): Removed because unused.
11014 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
11015 (poll_timer): New variable.
11016 (poll_for_input, poll_for_input_1): New functions.
11017 (start_polling, stop_polling): Rewritten.
11018
11019 * keyboard.h (polling_for_input): Removed.
427ec082 11020
e12489f9
GM
11021 * atimer.h, atimer.c: New files.
11022
11023 * Makefile.in (obj): Add atimer.o.
11024 (atimer.o): New target.
11025
11026 * blockinput.h (pending_atimers): Add extern declaration.
11027 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
11028
11029 * lisp.h (popup_activated_flag): Add extern declaration.
11030
11031 * xmenu.c (popup_activated_flag): Make externally visible.
11032 (popup_activate_callback) [USE_MOTIF]: Increment
11033 popup_activated_flag.
11034 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
11035
11036 * xterm.c (toplevel): Include atimer.h.
11037 (toolkit_scroll_bar_interaction): New variable.
11038 (Fxt_process_timeouts): Removed.
11039 (x_process_timeouts): New function.
11040 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
11041 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
11042 (x_make_frame_visible): Call poll_for_input_1 instead of
11043 input_poll_signal. Don't call alarm.
11044 (x_initialize): Install timer calling x_process_timeouts.
427ec082 11045
1e5279b9
DL
110462000-01-24 Dave Love <fx@gnu.org>
11047
6c67ddee 11048 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
11049 Don't use -cckr -- apparently not now necessary.
11050
edf6aeb8
EZ
110512000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
11052
11053 * msdos.c (IT_menu_display): Truncate long menu lines at the right
11054 screen boundary.
11055
9badad41
JR
110562000-01-23 Jason Rumney <jasonr@gnu.org>
11057
11058 * w32fns.c (w32_defined_color): Apply gamma correction before
11059 trying to map to the palette.
11060 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
11061 to w32_clear_rect.
11062
11063 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
11064 here. Callers changed to always pass real device context.
11065 (w32_draw_bitmap): Likewise.
11066 (w32_get_glyph_overhangs): Likewise.
11067 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
11068 one.
11069 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
11070 pfnSetScrollInfo and SetScrollRange.
11071 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
11072 back into MULE characters after decoding them.
11073 (x_get_glyph_face_and_encoding): Likewise.
11074 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
11075 GetCharABCWidthsW fails, since this is defined on Windows 9x.
11076 (x_produce_glyphs): Calculate per char metrics for a character
11077 that we know exists in default font when font_not_found_p is true.
11078
63bd786b
JR
110792000-01-22 Jason Rumney <jasonr@gnu.org>
11080
11081 * makefile.nt (intervals.obj, composite.obj): New modules.
11082 (composite.h): Added as dependency where appropriate.
11083
11084 * w32gui.h (XGCValue): New struct for emulating X GCs.
11085
11086 * w32term.h (XCharStruct): New struct for emulating X.
11087
11088 * w32console.c (turn_on_face, turn_off_face): New functions.
11089 (change_line_highlight): New prototype for new redisplay.
11090 (write_glyphs): Support multibyte text. Support faces.
11091
11092 * w32faces.c: Complete rewrite for new redisplay based on new
11093 xfaces.c.
11094
11095 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
11096 throughout. struct frame * in place of FRAME_PTR.
11097 Skeleton support for images, toolbars, tooltips from xfns.c.
11098 (Fx_create_frame): Use system default for default scroll bar
11099 width.
11100 (w32_get_arg): Renamed from x_get_arg.
11101 (Fx_file_dialog): New function.
11102 (w32_list_fonts): Check cache before asking system.
11103 (Vw32_enable_synthesized_fonts): New variable.
11104 (Vw32_enable_italics): Obsolete, removed.
11105
11106 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
11107 Use SELECTED_FRAME macro.
11108
11109 * w32menu.c: Add skeleton support for help strings on menus.
11110 (add_menu_item): Native checkbox and radio support added, but not
11111 yet enabled due to bugs.
11112 (push_menu_item): Add parameters type, selection and help.
11113 Callers updated.
11114 Formatting changes to reduce unnecessary diffs with xmenu.c.
11115
11116 * w32select.c (Fw32_set_clipboard_data): Update call to
11117 find_charset_in_str.
11118
11119 * w32term.c: Complete rewrite for new redisplay based on new
11120 xterm.c with necessary sections merged back in from old w32term.c.
11121
6ffd3cf7 111222000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
11123
11124 * data.c (set_internal): Further fix in same criterion.
11125
6ffd3cf7 111262000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
11127
11128 * data.c (set_internal): Fix the criteria for whether
11129 to swap out the old cached binding.
11130
60af03f1
DL
111312000-01-19 Dave Love <fx@gnu.org>
11132
11133 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
11134
f9be074f
KH
111352000-01-18 Kenichi Handa <handa@etl.go.jp>
11136
11137 * regex.c (re_compile_fastmap): While checking a range table for
11138 `charset', skip flag bits for a character class correctly.
11139
52b8dbf9
GM
111402000-01-17 Gerd Moellmann <gerd@gnu.org>
11141
d36100c9
GM
11142 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
11143
52b8dbf9
GM
11144 * xfns.c (x_window): Call lw_create_widget with new parameter
11145 list.
11146
11147 * widget.c (EmacsFrameSetCharSize): Change size of children first
11148 because of problems with main window geometry management under
11149 Lesstif.
11150
11151 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
11152 MENU_ITEMS_ITEM_.*.
11153 (MENU_ITEMS_ITEM_HELP): New enumerator.
11154 (push_menu_item): Add parameter HELP. Record help in menu_items.
11155 (single_menu_item, single_submenu, list_of_items): Call
11156 push_menu_item with new parameter.
11157 (single_submenu): Set help string in widget value.
11158 (menu_highlight_callback): New function.
11159 (set_frame_menubar): Call lw_create_widget with new
11160 parameter list.
11161 (xmenu_show, xdialog_show): Ditto.
11162
3139018f
GM
111632000-01-13 Gerd Moellmann <gerd@gnu.org>
11164
11165 * sound.c (Fplay_sound): Improve doc string.
11166
83c8f461
RS
111672000-01-11 Richard M. Stallman <rms@gnu.org>
11168
11169 * lisp.h (set_internal): Enter the new arg.
11170
11171 * eval.c (specbind): Record buffer-local variables specially,
11172 indicating which buffer's binding was saved.
11173 (unbind_to): Restore buffer-local variables specially
11174 in the proper buffer.
11175
11176 * data.c (set_internal): New arg BUF.
427ec082 11177
83c8f461
RS
11178 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
11179 * data.c (Fset): Pass new arg to set_internal.
11180 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 11181
1fab1775
GM
111822000-01-11 Gerd Moellmann <gerd@gnu.org>
11183
11184 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
11185 xprintsym.
11186
83c8f461 111872000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
11188
11189 * minibuf.c (Ftry_completion): Doc fix.
11190
7a85e4df
GM
111912000-01-11 Gerd Moellmann <gerd@gnu.org>
11192
11193 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
11194 vector, too.
11195
a970dae4
AS
111962000-01-11 Andreas Schwab <schwab@suse.de>
11197
11198 * coding.c (code_convert_region): Initialize total_skip.
11199
c65d14ee
DL
112002000-01-08 Dave Love <fx@gnu.org>
11201
11202 * eval.c (Fuser_variable_p): Check customizability too.
11203
834938d2
GM
112042000-01-07 Gerd Moellmann <gerd@gnu.org>
11205
11206 * minibuf.c (Fcompleting_read): Doc fix.
11207
e0303cd6
GM
112082000-01-05 Gerd Moellmann <gerd@gnu.org>
11209
8a26744b
GM
11210 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
11211 -L /usr/local/lib.
11212
e0303cd6
GM
11213 * xfns.c (x_create_im): New function to set IM and IC of a frame.
11214 Check that input style is supported before trying to create an
11215 IC for it.
11216 (x_window): Call x_create_im.
427ec082 11217
2e471eb5
GM
112182000-01-04 Gerd Moellmann <gerd@gnu.org>
11219
560a7bd2
GM
11220 * xfns.c (current_gif_memory_src): New variable.
11221 (gif_load): Record the address of the current memory source
11222 in current_gif_memory_src.
11223 (gif_read_from_memory): Use current_gif_memory_src.
11224
f9ee84a3
GM
11225 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
11226 macros statement form.
11227
d1299cde
GM
11228 * sound.c (struct sound): Renamed from struct sound_file.
11229 (struct sound): Add members `data' and `header_size'.
11230 (enum sound_attr): Add SOUND_DATA.
11231 (current_sound, current_sound_device): Variables renamed from
11232 sound_file and sound_device.
11233 (parse_sound): Parse :data.
11234 (parse_sound): Handle sound data in strings.
11235 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 11236 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
11237 needed header size.
11238 (wav_play, au_play): Play sounds from string data.
11239
2e471eb5
GM
11240 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
11241
11242 * lisp.h: Add prototype for allocate_string_data.
11243
11244 * alloc.c (Fgarbage_collect): Return number of live and free
11245 strings.
11246
11247 * alloc.c (mark_buffer): Remove code in #if 0.
11248 (gc_sweep): Ditto.
11249 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
11250 (strings_consed): New variable.
11251 (allocate_string): Set it.
11252 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
11253 (Fmemory_use_counts): Return strings_consed. Use Flist.
11254
11255 * alloc.c: General cleanup in comments etc. Remove conditional
11256 compilation for `standalone'.
11257
11258 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
11259
11260 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
11261 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
11262 (DONT_COPY_FLAG): Removed.
11263 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
11264 (struct sdata, struct sblock): New
11265 (struct string_block): Rewritten.
11266 (STRINGS_IN_STRING_BLOCK): New macro.
11267 (oldest_sblock, current_sblock, total_strings, total_free_strings)
11268 (large_sblocks, string_blocks, string_free_list): New variables.
11269 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
11270 (init_strings): Rewritten.
11271 (allocate_string, allocate_string_data, compact_small_strings)
11272 (free_large_strings, sweep_strings): New functions.
11273 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
11274 (struct string_block_head, current_string_block)
11275 (first_string_block, large_string_blocks, STRING_FULLSIZE)
11276 (STRING_PAD): Removed.
11277 (make_uninit_multibyte_string, make_pure_string): Rewritten.
11278 (Fgarbage_collect): Don't set mark bit in large strings.
11279 (mark_object): Mark strings differently. Mark symbol names
11280 differently.
11281 (survives_gc_p): Test marked strings differently.
427ec082 11282 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
11283 symbol names.
11284 (compact_strings): Removed.
11285
42608ba8
EZ
112862000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
11287
11288 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
11289 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
11290
e0a09e1a
KH
112912000-01-04 Kenichi Handa <handa@etl.go.jp>
11292
dd9f0750 11293 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 11294 in a non-empty buffer.
dd9f0750 11295
3c0f3b15 11296 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 11297
44cd3ae5
GM
112982000-01-03 Gerd Moellmann <gerd@gnu.org>
11299
11300 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
11301 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
11302
11303 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
11304
c182a70f
EZ
113052000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11306
11307 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
11308 need to test for MSDOS frames.
11309
24480d5b
EZ
113102000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11311
11312 * dosfns.c (unspecified_colors): Remove.
11313 (msdos_stdcolor_idx): Use global variables unspecified_fg and
11314 unspecified_bg.
11315 (msdos_stdcolor_name): Return strings for unspecified fore- and
11316 back-ground colors.
11317
11318 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 11319 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
11320 (tty_color_name): Return Lisp strings for unspecified fore- and
11321 back-ground colors.
11322 (Finternal_set_lisp_face_attribute): Remove the special treatment
11323 for Qunspecified_{f,b}g.
11324 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
11325 string.
11326
047f434a
GM
113272000-01-03 Gerd Moellmann <gerd@gnu.org>
11328
11329 * xdisp.c (reseat_at_next_visible_line_start): Position before
11330 newline only if ending up on a newline.
11331 (next_element_from_ellipsis): Return success. Handle case of
11332 displaying no ellipsis. Fix case of ellipsis defined in display
11333 table.
11334 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
11335 returns 0.
11336
d684c676
EZ
113372000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11338
11339 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
11340 (Fcolor_supported_p): Renamed from face-color-supported-p.
11341
5fe1d139
EZ
113422000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11343
11344 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
11345 list of colors renamed to tty-defined-color-alist.
11346 (tty_color_name): Pass the frame to tty-color-by-index.
11347 (realize_tty_face): tty-color-alist is now a function which
11348 accepts the frame as argument.
11349
11350 * term.c (Ftty_display_color_p): Accept an optional argument
11351 FRAME.
11352
816be8b8
EZ
113532000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11354
11355 * term.c (insert_glyphs): Pass glyph, not &glyph, to
11356 encode_terminal_code.
11357
b635321e
EZ
113582000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11359
11360 * dispnew.c (mode_line_string): Support termcap frames as well.
11361
9b784e96
GM
113622000-01-01 Gerd Moellmann <gerd@gnu.org>
11363
27189709
GM
11364 * syntax.c (Fforward_word): Undo previous change.
11365
11366 * editfns.c (Fconstrain_to_field): Don't constrain if
11367 inhibit-field-text-motion is non-nil.
11368 (Fline_beginning_position): Undo previous change.
11369 (Fline_end_position): Ditto.
11370
11371 * syntax.c (Fforward_word): Notice field boundaries only if
11372 inhibit-field-text-motion is nil.
11373
11374 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
11375
11376 * editfns.c (Vinhibit_field_text_motion): New variable.
11377 (inhibit-field-text-motion): New DEFVAR_LISP.
11378 (Fline_beginning_position, Fline_end_position): Notice field
11379 boundaries only if inhibit-field-text-motion is nil.
11380
45158a91
GM
11381 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
11382 All calls adjusted.
11383 (x_build_heuristic_mask): Likewise.
11384 (xbm_load_image_from_file): Change error output.
11385 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
11386 (gif_load, gs_load, x_kill_gs_process): Ditto.
11387
9b784e96
GM
11388 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
11389 color indices when accessing raster pixels.
63cec32f
GM
11390 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
11391 one of :file or :data.
11392 (enum pbm_keyword_index): Add PBM_DATA.
11393 (pbm_format): Add :data.
11394 (pbm_image_p): Allow either :file or :data.
11395 (pbm_read_file): New function.
11396 (pbm_scan_number): Rewritten to read from string.
11397 (pbm_load): Support :data.
9b784e96 11398
2cb085db 11399See ChangeLog.8 for earlier changes.
6922b018
KH
11400
11401;; Local Variables:
49b3bd82 11402;; coding: iso-2022-7bit
6922b018 11403;; End: