Say that it's obsolete in the header line.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
176bc847
GM
12001-03-29 Gerd Moellmann <gerd@gnu.org>
2
ed31fabf
GM
3 * data.c (Fsubr_interactive_form): New function.
4 (syms_of_data): Defsubr it.
5
176bc847
GM
6 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
7 (live_float_p, live_misc_p): Return 1 only if the offset of the
8 pointer in its block is >= 0.
9
e59d0e9d
GM
102001-03-28 Paul Eggert <eggert@twinsun.com>
11
12 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
13 microseconds calcuation. Avoid double-rounding problem.
14 In doc string, warn that the result is approximate.
15
f827b862
GM
162001-03-28 Gerd Moellmann <gerd@gnu.org>
17
30a3f61c
GM
18 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
19 bind `inhibit-eval-during-redisplay' to t.
20
21 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
22
23 * xdisp.c (inhibit_eval_during_redisplay)
24 (Qinhibit_eval_during_redisplay): New variables.
25 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
26 don't eval, return nil instead.
27 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
28 Initialize Qinhibit_eval_during_redisplay.
29
e719f5ae
GM
30 * xdisp.c (reseat_to_string): If STRING is multibyte, set
31 the iterator's multibyte_p flag.
32
deb2613a
GM
33 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
34 instead of setting it to zero; it's incremented for each frame
35 where the menu face is changed.
36
44655e77
GM
37 * xterm.c (x_draw_relief_rect): Extend left shadow to the
38 bottom; change bottom shadow accordingly.
39
a02f1be0
GM
40 * xterm.c (expose_window_tree, expose_frame): Don't compute
41 intersections here.
42 (expose_window): Do it here instead.
43 (x_draw_glyph_string): Fix a computation of the underline
44 position.
45
f827b862
GM
46 * bytecode.c (BYTE_CODE_QUIT): New macro.
47 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
48
4bde0ebb
GM
492001-03-27 Gerd Moellmann <gerd@gnu.org>
50
607ec83c
GM
51 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
52 Give up if matrix starts in an ellipsis.
53 (init_from_display_pos): Do nothing if POS doesn't specify
54 a dpvec_index but the iterator has such a position.
55
0245398f
GM
56 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
57
aba25348
GM
58 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
59 x/y position is (0, 0) after destroying the menu bar, restore
60 its original position.
61
4bde0ebb
GM
62 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
63 (init_from_display_pos): Use it.
64 (try_window_reusing_current_matrix): Don't use cursor_row_p.
65
8cdb267e
GM
662001-03-26 Gerd Moellmann <gerd@gnu.org>
67
68 * xdisp.c (try_window_id): Undo last change.
69
9948db79
EZ
702001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
71
72 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
73
74 * buffer.c (syms_of_buffer): Doc fix.
75
2eddf899
GM
762001-03-26 Gerd Moellmann <gerd@gnu.org>
77
78 * xfaces.c (x_update_menu_appearance): Use local variable
79 popup_path for setting font resources.
80
6c145d35
EZ
812001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
82
6a65b1b5
EZ
83 * frame.c (Fframe_list): Don't reference tip_frame if
84 HAVE_WINDOW_SYSTEM is not defined.
85
6c145d35
EZ
86 * emacs.c (main): Update the copyright year. From Werner LEMBERG
87 <wl@gnu.org>.
88
d74c1900
GM
892001-03-25 Gerd Moellmann <gerd@gnu.org>
90
20fbd925
GM
91 * xdisp.c (init_from_display_pos): Test invisible property
92 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
93
927c5b3b
GM
94 * xdisp.c (redisplay_internal) <update one window>: Make sure
95 last_arrow_position and last_arrow_string are set.
96
d74c1900
GM
97 * frame.c (Fframe_list): Don't return a tooltip frame.
98
091f8878
GM
992001-03-23 Gerd Moellmann <gerd@gnu.org>
100
43c09969
GM
101 * xdisp.c (mark_window_display_accurate_1): New function,
102 extracted from mark_window_display_accurate. Compute
103 BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
104 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
105 (mark_window_display_accurate): Use it.
106 (redisplay_internal): Use it for the selected window.
107 (redisplay_internal): Avoid duplicate mark_window_display_accurate
108 for the selected frame.
109
ac90c44f
GM
110 * xdisp.c Use make_number, for readability.
111 (try_window_id): Disable rows below the window end.
112 (try_window_reusing_current_matrix): Use cursor_row_p.
113 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
114 of rows.
115 (init_from_display_pos): If POS specifies a position in a display
116 vector, maybe get the iterator set up for that ellipsis.
43c09969 117
091f8878
GM
118 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
119
991786dd
EZ
1202001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
121
122 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
123
6c29b43c
GM
1242001-03-23 Gerd Moellmann <gerd@gnu.org>
125
126 * xfaces.c (x_update_menu_appearance): Use a different path
127 for Lucid popup menus.
128
d8731202
SM
1292001-03-22 Stefan Monnier <monnier@cs.yale.edu>
130
131 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
132
133 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
134 (string_buffer_position): Use `make_number'.
135
f61a541b
GM
1362001-03-22 Gerd Moellmann <gerd@gnu.org>
137
3c9e997b
GM
138 * xfaces.c (x_update_menu_appearance): Renamed from
139 x_set_menu_face_resources. Use different resources for popups.
140
141 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
142 (GC_CHECK_STRING_BYTES): Don't define.
143
364cd450
GM
144 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
145 Removed, together with subroutines.
146 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
d8731202 147 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
364cd450 148
d8731202
SM
149 * dispextern.h (x_set_menu_resources_from_menu_face):
150 Remove prototype.
364cd450 151
d8731202 152 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
364cd450
GM
153 Remove calls to x_set_menu_resources_from_menu_face.
154
d8731202
SM
155 * xfaces.c (xm_set_menu_resources_from_menu_face):
156 Remove #ifndef LESSTIF_VERSION.
f61a541b
GM
157
158 * xmenu.c: Include widget.h.
159 (single_submenu): Return int. Some cleanup.
160 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
161
140330de
GM
1622001-03-21 Gerd Moellmann <gerd@gnu.org>
163
164 * xterm.c (x_update_window_end): Handle overwritten mouse face
165 also for tool bar windows.
166 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
167 DRAW is DRAW_IMAGE_RAISED.
168
1741905c
GM
1692001-03-20 Gerd Moellmann <gerd@gnu.org>
170
fa88947e
GM
171 * print.c (syms_of_print): Doc fixes.
172
1741905c
GM
173 * fns.c (Fmd5): Doc fix.
174
ade0bee1
GM
1752001-03-19 Gerd Moellmann <gerd@gnu.org>
176
357e7376
GM
177 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
178 Clear area of the frame not occupied by the scroll bar.
179
c2c097cc
GM
180 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
181 tip frame's root window buffer to *tip* right after creating
182 the frame.
183
ade0bee1
GM
184 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
185 is an integer don't have to be for space characters.
186
88c6e37e
GM
1872001-03-16 Gerd Moellmann <gerd@gnu.org>
188
189 * indent.c (current_column, current_column_1, Fmove_to_column)
190 (compute_motion): Handle characters from display vectors
191 differently.
192
c62eed76
KH
1932001-03-15 Kenichi Handa <handa@etl.go.jp>
194
195 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
196 drawing glyph string.
197
c899e7e6
GM
1982001-03-15 Gerd Moellmann <gerd@gnu.org>
199
d0bbfc99
GM
200 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
201 (command_loop_1): Undo last change.
202
03d1a189
GM
203 * xterm.c (fast_find_position): Return the correct vpos.
204
c899e7e6
GM
205 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
206 non-null, set a per-buffer value in BUF instead of the current
207 buffer.
208 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
209 Call store_symval_forwarding with BUF null.
210 (set_internal): Call store_symval_forwarding with the BUF
211 parameter passed to set_internal. Formerly, the value was always
212 set in the current buffer; the buffer recorded in specbind for
213 this case wasn't used.
214 (arith_driver): Reindent.
215
216 * buffer.c (swap_out_buffer_local_variables): Call
217 store_symval_forwarding with BUF null.
218
219 * lisp.h (store_symval_forwarding): Change prototype.
220
221 * eval.c (specbind): Call store_symval_forwarding with BUF null.
222
57ac7c81
GM
2232001-03-14 Gerd Moellmann <gerd@gnu.org>
224
697617d9
GM
225 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
226 FOR_DELETION. Avoid resizing the mini-window of the selected
227 frame if FOR_DELETION is set.
228 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
229 (Fmake_frame_invisible): Change calls to do_switch_frame for new
230 signature.
231
232 * window.c (Fset_window_configuration): Change call to
233 do_switch_frame to new format.
234
235 * keyboard.c (quit_throw_to_read_char): Change call to
236 do_switch_frame to new format.
237
238 * lisp.h (do_switch_frame): Change prototype.
239
819dce0f
GM
240 * frame.c (Fframe_parameters): In the `buffer-list' frame
241 parameter, store the buffer list of FRAME, not the list of the
242 selected frame.
243
57ac7c81
GM
244 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
245 box just because the glyph row's full_width_p flag is set.
246
65008712
GM
2472001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
248
249 * xdisp.c (highlight_trailing_whitespace): On character terminals,
250 skip the padding blanks inserted in extend_face_to_end_of_line,
251 before checking for trailing whitespace.
252
159cf431
GM
2532001-03-13 Gerd Moellmann <gerd@gnu.org>
254
19b2bb80
GM
255 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
256 Remove special handling for LessTif/Motif.
257 (toplevel): Don't include Xm/Xm.h.
258
afcdc0a1
GM
259 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>: Remove
260 workaround code for LessTif; it doesn't work anymore.
261
2564ea1b 262 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
57ac7c81 263 Xm/ScrollBarP.h.
afcdc0a1 264
23442ae4
GM
265 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Don't
266 access private scroll bar data; it's no longer necessary with
267 contemporary LessTif.
268
9faaaa52
GM
269 * xfaces.c (xm_set_menu_resources_from_menu_face): Change
270 #if 0 to #ifndef LESSTIF_VERSION.
271
159cf431
GM
272 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
273 removing button grabs.
274
c6f7429a
KH
2752001-03-13 Kenichi Handa <handa@etl.go.jp>
276
cb82d767
KH
277 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
278 and clip-large-size-font as obsolete.
279
c6f7429a
KH
280 * lread.c (read_multibyte): Check the validity of multibyte
281 sequence. If invalid, return the first byte.
282
760cefb5
GM
2832001-03-12 Gerd Moellmann <gerd@gnu.org>
284
285 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
286 before running the command; timer functions or process
287 filters may have set it.
288
5141f9d0
EZ
2892001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
290
291 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
292 Doc fix.
293
b6a15240
GM
2942001-03-12 Gerd Moellmann <gerd@gnu.org>
295
296 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
297 to sprintf.
298
95522746
GM
2992001-03-09 Gerd Moellmann <gerd@gnu.org>
300
db14cfc5
GM
301 * dispextern.h (string_buffer_position): Add prototype.
302
303 * xdisp.c (string_buffer_position, display_prop_string_p)
304 (single_display_prop_string_p): New functions.
305
306 * xterm.c (note_mouse_highlight): If there's no help-echo on
307 a string, look at the buffer text ``under'' it.
308
309 * keyboard.c (make_lispy_event): Add string info to the event,
310 analogous to what's done on mode lines.
311 (read_key_sequence): For a click on a string, consider `local-map'
312 and `keymap' of that string.
313
3cfd8357
GM
314 * keyboard.c (make_lispy_event, make_lispy_movement): Adjust
315 calls to buffer_posn_from_coords to new format.
316
317 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
318
319 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
320 POS; return void.
321
95522746
GM
322 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
323 flags argument to emacs_open; it seems to conflict with O_EXCL.
324
898a399d
KH
3252001-03-09 Kenichi Handa <handa@etl.go.jp>
326
28cd4910
KH
327 * composite.h (struct composition): Change types of members;
328 glyph_len to unsigned, width to unsigned short.
898a399d 329
4cdf6a6c
AI
3302001-03-08 Andrew Innes <andrewi@gnu.org>
331
332 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
333 menu titles.
334
129004d3
GM
3352001-03-08 Gerd Moellmann <gerd@gnu.org>
336
221dd3e7
GM
337 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
338 instead of nil.
339
5de7c6f2
GM
340 * xterm.c (note_mouse_highlight): Handle mouse-face and
341 help-echo in strings.
342 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
343 (fast_find_string_pos): New function.
344
345 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
346 (display_string): Call face_at_string_position with new
347 parameter.
348
349 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
350 Handle `mouse-face'.
351
352 * dispextern.h (face_at_string_position): Change prototype.
353
e1fbabaf
GM
354 * dired.c (directory_files_internal): Handle EAGAIN more
355 efficiently.
356
129004d3
GM
357 * keyboard.c (make_lispy_event): Avoid generating drag events
358 if the mouse hasn't actually moved to another buffer position.
359
80c8ab8c
DL
3602001-03-08 Dave Love <fx@gnu.org>
361
129004d3 362 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
80c8ab8c 363
989521fd
GM
3642001-03-08 Gerd Moellmann <gerd@gnu.org>
365
366 * process.c (Fset_process_window_size): Fix a typo.
367
bb5c338d
KH
3682001-03-08 Kenichi Handa <handa@etl.go.jp>
369
370 * coding.c (detect_coding_sjis): Do more rigid check.
371 (detect_coding_big5): Likewise.
372 (decode_coding_sjis_big5): Likewise.
373 (Fdetect_coding_region): Call detect_coding_system with tailing
374 anchor byte `\0' for more rigid detection.
a1b12fe9
KH
375 (detect_coding_mask): Fix the incorrect handling of arg
376 MULTIBYTEP.
bb5c338d
KH
377 (Fdetect_coding_string): Likewise.
378
8b8f9197
SM
3792001-03-07 Stefan Monnier <monnier@cs.yale.edu>
380
381 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
382 a string before extracting its data.
383
3bdf2660
GM
3842001-03-07 Gerd Moellmann <gerd@gnu.org>
385
386 * window.c (Frecenter): Rewrite code handling negative values
387 of ARG on graphical frames.
388
3892001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
390
391 * window.c (displayed_window_lines): If W->start is outside the
392 accessible portion of the buffer, call start_display with BEGV or
393 ZV instead of W->start.
394
471f86b9
GM
3952001-03-07 Gerd Moellmann <gerd@gnu.org>
396
2ab62c6c
GM
397 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
398
471f86b9
GM
399 * process.c (Fset_process_filter): Don't crash if the input
400 file descriptor of PROCESS is closed.
401 (Fset_process_window_size): Likewise.
402
101922c3
GM
4032001-03-06 Kenichi Handa <handa@etl.go.jp>
404
405 * xterm.c (XTflash): Make the timeout of select shorter, and call
406 select repeatedly until the desired time expires.
407
45d051a7
GM
4082001-03-06 Gerd Moellmann <gerd@gnu.org>
409
410 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
411
412 * xfns.c (Fx_create_frame): Clear Vwindow_list.
413
414 * lisp.h (Vwindow_list): Declare extern.
415
8f372c46
EZ
4162001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
417
418 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
419
f16a7aa5
GM
4202001-03-06 Gerd Moellmann <gerd@gnu.org>
421
157ae273
GM
422 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
423 to detect a case where we have to highlight a different region
424 despite not having left the currently highlighted region.
425 Set mouse_face_overlay in the x_display_info.
45d051a7 426 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
157ae273
GM
427
428 * xterm.h (struct x_display_info): Add mouse_face_overlay.
429
430 * buffer.c (mouse_face_overlay_overlaps): New function.
431
432 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
433 (Qmouse_face): Declare extern.
434
f16a7aa5
GM
435 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
436 if face_change_count is non-zero.
437
827afcac
KH
4382001-03-06 Kenichi Handa <handa@etl.go.jp>
439
440 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
441 that the source is unibyte.
442
14c7242e
DL
4432001-03-05 Dave Love <fx@gnu.org>
444
827afcac 445 * xterm.c (XTmouse_position): Fix typo.
14c7242e 446
c28b847b
GM
4472001-03-05 Gerd Moellmann <gerd@gnu.org>
448
449 * minibuf.c (read_minibuf): Clean up the binding stack if
450 called noninteractively.
451
b86644f2
KH
4522001-03-05 Kenichi Handa <handa@etl.go.jp>
453
454 * coding.c (syms_of_coding): Docstring modified.
455
203682cc 4562001-03-05 Kenichi Handa <handa@etl.go.jp>
b86644f2
KH
457
458 * charset.c (char_to_string): If a single byte char has modifier
459 bits that can't be reflected to the character code, ignore them
45d051a7 460 instead of signaling an error.
b86644f2 461
e30bd7b7
EZ
4622001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
463
464 * s/msdos.h: Update copyright notice.
465
466 * dosfns.h: Update copyright notice.
467
468 * dosfns.c: Update copyright notice.
469
470 * msdos.c: Update copyright notice.
471
b52b65bd
GM
4722001-03-02 Gerd Moellmann <gerd@gnu.org>
473
474 * xterm.c (glyph_rect): New function.
475 (XTmouse_position): Use it to raise the threshold for mouse
476 movement event generation.
477
53c4b1e6
EZ
4782001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
479
480 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
481 specifies (reverse . t), reverse the initial screen colors.
482 (IT_set_frame_parameters): If the property is foreground-color,
483 but we are reversing the colors, set bg_set, not fg_set. Likewise
484 for setting background-color and reversing: set fg_set. Set
485 unspecified-fg and unspecified-bg correctly when (reverse . t) is
486 in effect.
487
488 * xfaces.c (Finternal_set_lisp_face_attribute)
489 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
490 parameters alist.
491
f964b4d7
GM
4922001-03-02 Gerd Moellmann <gerd@gnu.org>
493
ef53d75e
GM
494 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
495 to a single slash in the middle of file names.
496
cda0f4da
GM
497 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
498 Accept only alphanumeric time zone names.
499
f964b4d7
GM
500 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
501 or width area.
502 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
503 a widget to zero height.
504
c3c45f65
GM
5052001-03-01 Gerd Moellmann <gerd@gnu.org>
506
507 * window.c (Fwindow_end): Call move_it_past_eol only if
508 ending up on a partially visible line.
509
028d739a
DL
5102001-03-01 Dave Love <fx@gnu.org>
511
512 * ccl.c (Fccl_execute): Doc fix.
513
57c5889c
GM
5142001-03-01 Gerd Moellmann <gerd@gnu.org>
515
35f59f6b
GM
516 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
517 of the tool bar before calling x_figure_window_size.
518
f84ff02c
GM
519 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
520 NULL after destroying it, otherwise XTread_socket can access a
521 destroyed widget when input is unblocked.
522
8b8f9197 523 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
420f628c 524
57c5889c
GM
525 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
526 same name as before, although there was a change in fontsets.
527
224227d1
KR
5282001-02-28 Ken Raeburn <raeburn@gnu.org>
529
4560730a
KR
530 * lisp.h (Fframe_parameter): Declare.
531
224227d1 532 * window.c (set_window_buffer): Field vscroll is an int, not a
57c5889c 533 Lisp_Object.
224227d1 534
ece93c02
GM
5352001-02-28 Gerd Moellmann <gerd@gnu.org>
536
11ef99b9
GM
537 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
538 NULL instead.
539
540 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
541 NULL instead.
542
ece93c02
GM
543 * alloc.c (toplevel): Include process.h.
544 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
545 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
546 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
547 (allocate_vector, allocate_hash_table, allocate_window)
548 (allocate_frame, allocate_process, allocate_other_vector): New
549 functions.
550 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
551 (mark_maybe_pointer): New function.
552 (mark_memory): Also mark Lisp data to which only pointers
553 remain and not Lisp_Objects.
554 (min_heap_address, max_heap_address): New variables.
555 (mem_find): Return MEM_NIL if START is below min_heap_address or
556 above max_heap_address.
557 (mem_insert): Compute min_heap_address and max_heap_address.
558
559 * process.c (make_process): Use allocate_process.
560
561 * frame.c (make_frame): Use allocate_frame.
562
563 * window.c (make_window, make_dummy_parent): Use allocate_window.
564 (Fcurrent_window_configuration): Use allocate_other_vector.
565
566 * lisp.h (allocate_vectorlike): Remove prototype.
567 (allocate_vector, allocate_other_vector, allocate_frame)
568 (allocate_window, allocate_process, allocate_hash_table):
569 Add prototypes.
570
571 * fns.c (Fdelete, larger_vector): Use allocate_vector.
572 (make_hash_table, copy_hash_table): Use allocate_hash_table.
573
063af457
KH
5742001-02-27 Kenichi Handa <handa@etl.go.jp>
575
576 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
577 treat the produced bytes as a valid multibyte sequence.
578
579 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
580 (ccl_driver) <CCL_WriteMultibyteChar2>: Use
581 CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
582 <ccl_finish>: Set ccl->eight_bit_control properly.
583
584 * ccl.h (struct ccl_program): New member eight_bit_control.
585
f58c6494
SM
5862001-02-26 Stefan Monnier <monnier@cs.yale.edu>
587
588 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
589 accessible_keymaps_char_table.
590 (accessible_keymaps_char_table): Obey `is_metized'.
591 (where_is_internal, Fwhere_is_internal): Don't confuse int and
592 Lisp_Object.
593
c596c392
GM
5942001-02-26 Gerd Moellmann <gerd@gnu.org>
595
596 * dispnew.c: Check HAVE_TERM_H before including term.h.
597
425de386
AI
5982001-02-24 Andrew Innes <andrewi@gnu.org>
599
600 * makefile.w32-in: Update copyright notice.
601
2ba11bbd
SM
6022001-02-24 Stefan Monnier <monnier@cs.yale.edu>
603
604 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
605
66c56ed1
KH
6062001-02-24 Kenichi Handa <handa@etl.go.jp>
607
4c1593ce
KH
608 * Makefile.in (lisp): Add international/utf-8.elc.
609
66c56ed1
KH
610 * fontset.c (Fnew_fontset): Fix handling of the case that an
611 element of FONTLIST is a cons of family and registry.
612
796ead7e
JR
6132001-02-23 Jason Rumney <jasonr@gnu.org>
614
615 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
616 to height unconditionally.
617
618 * w32term.c (x_set_glyph_string_background_width): Extend the
619 background face to the end of the drawing area in the text area,
620 only.
621 (x_insert_glyphs): Call window_box_left to obtain the left
622 x-coordinate of the area to shift.
623
624 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
625 safe_run_hooks.
626
f6839838
AI
6272001-02-22 Andrew Innes <andrewi@gnu.org>
628
629 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header
630 files.
631 ($(BLD)\dispnew.obj):
632 ($(BLD)\editfns.obj):
633 ($(BLD)\fileio.obj):
634 ($(BLD)\filelock.obj):
635 ($(BLD)\keyboard.obj):
636 ($(BLD)\w32proc.obj):
637 ($(BLD)\process.obj):
638 ($(BLD)\sysdep.obj): Ditto.
639
640 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
641 header files.
642 ($(BLD)/dispnew.$(O)):
643 ($(BLD)/editfns.$(O)):
644 ($(BLD)/fileio.$(O)):
645 ($(BLD)/filelock.$(O)):
646 ($(BLD)/keyboard.$(O)):
647 ($(BLD)/w32proc.$(O)):
648 ($(BLD)/process.$(O)):
649 ($(BLD)/sysdep.$(O)): Ditto.
650
c224f70b
GM
6512001-02-22 Gerd Moellmann <gerd@gnu.org>
652
51695746
GM
653 * xdisp.c (forward_to_next_line_start): When taking the shortcut
654 at the start of the function, check that the \n in it->c is
655 from the iterator's current position.
656
a61b7058
GM
657 * xdisp.c (handle_single_display_prop): Add parameter
658 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
659 properties which replace the display of text with something else.
660 (handle_display_prop): Call handle_single_display_prop with
661 additional argument saying if we already replaced text display
662 with something else. Use AREF.
663 (with_echo_area_buffer_unwind_data, display_menu_bar)
664 (decode_mode_spec_coding): Use AREF and ASIZE.
665
3473f362
GM
666 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
667 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
668 * vmstime.h: Files removed.
669
2bb58df3
GM
670 * unexencap.c, unexfx2800.c: Files removed.
671
c224f70b
GM
672 * dispnew.c (direct_output_for_insert): Give up if we are showing
673 a message or just cleared the message because we might need to
674 resize the echo area window or display an empty echo area.
675
ffc9ff0c
GM
6762001-02-21 Gerd Moellmann <gerd@gnu.org>
677
0528abe1
GM
678 * xdisp.c (redisplay_internal): Do the
679 mark_window_display_accurate after all windows have been
680 redisplayed because this call resets flags in buffers which are
681 needed for proper redisplay.
682
ffc9ff0c
GM
683 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c: Use
684 display_hourglass_p, start_hourglass, cancel_hourglass instead of
685 the old names.
686
687 * w32term.h (struct x_output): Rename busy_cursor to
688 hourglass_cursor, busy_window to hourglass_window, busy_p to
689 hourglass_p.
690
691 * msdos.h (struct x_output): Rename busy_window to
692 hourglass_window, busy_p to hourglass_p.
693
694 * xterm.h (struct x_output): Rename busy_cursor to
695 hourglass_cursor, busy_window to hourglass_window, busy_p to
696 hourglass_p.
697
698 * xfns.c: Rename everything containing *busy_cursor* and similar
699 to *hourglass*.
700 (syms_of_w32fns): Rename x-busy-pointer-shape to
701 x-hourglass-pointer-shape, display-busy-cursor to
702 display-hourglass, busy-cursor-delay to hourglass-delay.
703
704 * w32fns.c: Rename everything containing *busy_cursor* and similar
705 to *hourglass*.
706 (syms_of_w32fns): Rename x-busy-pointer-shape to
707 x-hourglass-pointer-shape, display-busy-cursor to
708 display-hourglass, busy-cursor-delay to hourglass-delay.
709
710 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
711 of its busy_p flag.
712
713 * dispextern.h (start_hourglass, cancel_hourglass)
714 (display_hourglass_p): Renamed from *busy_cursor*.
715
ab2c5f0a
GM
7162001-02-20 Gerd Moellmann <gerd@gnu.org>
717
d17e49a8
GM
718 * keyboard.c (read_char): When an event from unread-command-events
719 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
720
fa97adf6
GM
721 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
722 equal to the current buffer.
723
ab2c5f0a
GM
724 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
725 nil, otherwise we're left with truncate_lines t when a message
726 is printed with message-truncate-lines bound to t.
727
aeac019e
GM
7282001-02-19 Gerd Moellmann <gerd@gnu.org>
729
c8bc6f65
GM
730 * window.c (Fmove_to_window_line): Undo last change.
731 (displayed_window_lines): Call line_bottom_y to determine
732 the line's bottom position.
733
734 * dispextern.h (line_bottom_y): Add prototype.
735
736 * xdisp.c (line_bottom_y): New function extracted from
737 pos_visible_p.
738 (pos_visible_p): Use it.
739
980a2d69
GM
740 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
741 set redisplaying_p to 0 here instead of in Frecursive_edit.
742 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
743 set redisplaying_p.
744
184d2372
GM
745 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
746 New variables.
747 (syms_of_xdisp): Initialize new variables.
748 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
749 Specbind `inhibit-menubar-update' when updating the menu bar.
750
65048e97
GM
751 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
752 safe_run_hooks.
753
754 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
755 safe_run_hooks.
756
a57c4026
GM
757 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
758 is null.
759
aeac019e
GM
760 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
761 to the start of the file.
762
76846b31
GM
7632001-02-16 Gerd Moellmann <gerd@gnu.org>
764
f3f053f3 765 * window.c (set_window_buffer): Fix last change.
25237df5 766
f3f053f3
GM
767 * window.c (set_window_buffer): Set window's vscroll to 0.
768
dad75588
GM
769 * window.c (coordinates_in_window): Increase width of area
770 where the vertical line can be dragged.
771
c220b753
GM
772 * xterm.c (x_set_glyph_string_background_width): Extend the
773 background face to the end of the drawing area in the text
774 area, only.
775
c56b1c1b
GM
776 * xdisp.c (handle_single_display_prop): Set iterator's position
777 to where the `display' property starts, like for images.
778 (dump_glyph): New function.
779 (dump_glyph_row): Use it. Dump info about marginal areas.
780
781 * dispnew.c (direct_output_for_insert): Recognize more cases where
782 glyphs can be written instead of being inserted.
783
784 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
785 the left x-coordinate of the area to shift.
786
76846b31
GM
787 * dired.c (directory_files_internal): Set result list to nil
788 before retrying.
789
0fc71a77
KH
7902001-02-15 Kenichi Handa <handa@etl.go.jp>
791
792 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
793 invalid multibyte sequence, treat *SRC as a character of
794 eight-bit-graphic.
795
25078b54
EZ
7962001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
797
798 * textprop.c (Fset_text_properties): Doc fix.
799
8399f8a0
GM
8002001-02-15 Gerd Moellmann <gerd@gnu.org>
801
802 * dispnew.c (update_text_area): Undo change of 2001-01-12.
803
9a2a6f73
DL
8042001-02-14 Dave Love <fx@gnu.org>
805
806 * coding.c: Doc and message fixes.
807
bf853fee
AI
8082001-02-14 Andrew Innes <andrewi@gnu.org>
809
810 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
811 Emacs frame above the screen size.
812
78c663d8
GM
8132001-02-14 Gerd Moellmann <gerd@gnu.org>
814
815 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
816
7cc9f69f
GM
8172001-02-13 Gerd Moellmann <gerd@gnu.org>
818
0a411995
GM
819 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
820 case that TO ends up beyond ZV after running before-change-functions.
821
5ddc1b75
GM
822 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
823 the selected window if it is showing the buffer in question.
824
7cc9f69f
GM
825 * dired.c (directory_files_internal): Initialize errno.
826 (toplevel): Include errno.h.
827
2e6621ca
GM
8282001-02-13 Kenichi Handa <handa@etl.go.jp>
829
830 * xfaces.c (best_matching_font): New parameter width_ratio.
831 Multiply avgwidth by width_ratio.
832 (choose_face_font): Call best_matching_font with width_ratio
833 calculated from the column width of C.
834
60222d69
AI
8352001-02-12 Andrew Innes <andrewi@gnu.org>
836
837 The following changes are to draw box lines inside characters area
838 if line-width is negative.
839
840 * w32term.c (x_produce_image_glyph): Pay attention to the case that
841 face->box_line_width is negative.
842 (x_produce_stretch_glyph): Likewise.
843 (x_produce_glyphs): Likewise.
844 (x_estimate_mode_line_height): Likewise.
845 (x_draw_glyph_string_background): Likewise.
846 (x_draw_glyph_string_foreground): Likewise.
847 (x_draw_composite_glyph_string_foreground): Likewise.
848 (x_draw_glyph_string_box): Likewise.
849 (x_draw_image_foreground): Likewise.
850 (x_draw_image_relief): Likewise.
851 (x_draw_image_foreground_1): Likewise.
852 (x_draw_image_glyph_string): Likewise.
853
9804b846
KH
8542001-02-09 Kenichi Handa <handa@etl.go.jp>
855
856 The following changes are to draw box lines inside characters area
857 if line-width is negative.
858
859 * xterm.c (x_produce_image_glyph): Pay attention to the case that
860 face->box_line_width is negative.
861 (x_produce_stretch_glyph): Likewise.
862 (x_produce_glyphs): Likewise.
863 (x_estimate_mode_line_height): Likewise.
864 (x_draw_glyph_string_background): Likewise.
865 (x_draw_glyph_string_foreground): Likewise.
866 (x_draw_composite_glyph_string_foreground): Likewise.
867 (x_draw_glyph_string_box): Likewise.
868 (x_draw_image_foreground): Likewise.
869 (x_draw_image_relief): Likewise.
870 (x_draw_image_foreground_1): Likewise.
871 (x_draw_image_glyph_string): Likewise.
872
873 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
874 and :line-width can be negative.
875 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be
876 negative.
877
49be9f70
JR
8782001-02-09 Jason Rumney <jasonr@gnu.org>
879
880 * w32term.c (w32_encode_char): Treat eight bit graphic and control
881 characters the same as ASCII and latin-1.
882 (x_display_and_set_cursor): Check for the focus frame's selected
883 window instead of selected_window.
884 (x_after_update_window_line): Don't clear if frame's internal
885 border width is zero.
886 (x_new_font): Don't change a tooltip's size.
887 (w32_initialize): Set char_ins_del_ok to 1.
888
889 * w32fns.c (Fx_show_tip): Fix calls to make_number.
890 (x_set_font): If font hasn't changed, avoid recomputing
891 faces and other things.
892 (x_set_tool_bar_lines): Do nothing if frame is
893 minibuffer-only,
894 (Fx_create_frame): Add the tool bar height to the frame
895 height.
896 (x_create_tip_frame): Prevent changing the tooltip's
897 background color by specifying a color for the default font
898 in .Xdefaults.
899 (Qcancel_timer): New variable.
900 (syms_of_w32fns): Initialize and staticpro it.
901 (Fx_hide_tip, Fx_show_tip): Use it.
902 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
903 the timer.
904 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
905
906 * w32.c (init_environment): Duplicate local string before putenv.
907
555e35d2
SZ
9082001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
909
910 * charset.c (Fstring): A typo.
911
19c92c94
KH
9122001-02-09 Kenichi Handa <handa@etl.go.jp>
913
e47a1c33
KH
914 * charset.c (Fstring): If all arguments are less than 256, return
915 a unibyte string.
916
917 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
918 return a unibyte string.
919
19c92c94
KH
920 * coding.c (code_convert_region): After detecting a coding, if
921 nothing found, set coding->composing to COMPOSITION_NO.
922 (decode_coding_string): Likewise.
923
d8e675f5
SM
9242001-02-08 Stefan Monnier <monnier@cs.yale.edu>
925
926 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
927 to avoid overflow.
928
bd503487
KH
9292001-02-07 Kenichi Handa <handa@etl.go.jp>
930
931 * charset.c (parse_str_to_multibyte): New function.
932
933 * charset.h (parse_str_to_multibyte): Extern it.
934
935 * print.c (print_string): If we are going to print a unibyte
936 string into a multibyte buffer, convert the string to multibyte by
937 str_to_multibyte.
938
a8370d72
AI
9392001-02-06 Andrew Innes <andrewi@gnu.org>
940
941 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
942 been created. It seems we can get sent window messages such as
943 WM_ERASEBKGND before we properly update a frame.
944
c363a1d6
GM
9452001-02-06 Gerd Moellmann <gerd@gnu.org>
946
947 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
948 Avoid some unnecessary cursor positioning.
949
a08332c0
GM
9502001-02-05 Gerd Moellmann <gerd@gnu.org>
951
952 * xfaces.c (split_font_name): Compute numeric value of
953 XLFD_AVGWIDTH.
954 (LFACE_AVGWIDTH): New macro.
955 (LFACEP): Use AREF.
956 (check_lface_attrs): Check LFACE_AVGWIDTH.
957 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
958 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
959 (merge_face_vectors): Check LFACE_AVGWIDTH.
960 (Finternal_make_lisp_face): Use AREF.
961 (xm_set_menu_resources_from_menu_face)
962 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
963 (Finternal_lisp_face_empty_p): Use AREF.
964 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
965 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
966 Compare average widths..
967 (best_matching_font): Arrange for comparing average widths.
968
969 * dispextern.h (enum lface_attribute_index): Add
970 LFACE_AVGWIDTH_INDEX (invisible from Lisp).
971
5cb3c8d4
DL
9722001-02-05 Dave Love <fx@gnu.org>
973
974 * puresize.h: Revert last change following loadup.el change.
975
193fba87
AI
9762001-02-05 Andrew Innes <andrewi@gnu.org>
977
978 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
979 invocation of temacs, to work with Windows 2000.
980 (bootstrap-emacs): Ditto.
981
e16f52ce
GM
9822001-02-05 Gerd Moellmann <gerd@gnu.org>
983
7a58ab59
GM
984 * xterm.c (x_display_and_set_cursor): Check for the focus
985 frame's selected window instead of selected_window.
986
e89aaabd
GM
987 * xdisp.c (try_scrolling): If point is in the line below the
988 window, make sure to move the iterator at least a canonical
989 char height down.
990
e16f52ce
GM
991 * window.c (Fmove_to_window_line): Don't add 1 if window is
992 vscrolled.
993
789ce875
KH
9942001-02-05 Kenichi Handa <handa@etl.go.jp>
995
996 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not. If
997 invalid, execute CCL_INVALID_CMD.
998 (ccl_driver): If the CCL program is terminated because of
999 CCL_STAT_INVALID_CMD, copy the remaining source data to the
1000 destination instead of throwing them away.
1001
20b28f82
GM
10022001-02-02 Gerd Moellmann <gerd@gnu.org>
1003
79fb38c0
GM
1004 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
1005 faces and other things.
1006
20b28f82
GM
1007 * xdisp.c (get_next_display_element): Fix case of empty
1008 display table entry.
1009
5a72551e
EZ
10102001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
1011
eb24d0bf
EZ
1012 * editfns.c (Fconstrain_to_field): Doc fix.
1013
6a3f48c7
EZ
1014 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
1015 into `thoroughly', to make it consistent with the doc string.
1016
5a72551e
EZ
1017 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
1018
01acdb05
GM
10192001-02-01 Gerd Moellmann <gerd@gnu.org>
1020
0353b28f
GM
1021 * search.c (search_buffer): Call set_search_regs with a byte
1022 position, not a character position.
1023
01acdb05
GM
1024 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
1025 minibuffer-only,
1026
e86b5133
EZ
10272001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
1028
1029 * frame.c (Fmodify_frame_parameters): Doc fix.
1030
7442878f
GM
10312001-01-31 Gerd Moellmann <gerd@gnu.org>
1032
01acdb05
GM
1033 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
1034 identifier which is not reserved by Standard C.
1035
7442878f
GM
1036 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
1037
1038 * window.c (enum window_part): New enumeration.
1039 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
1040 Qright_bitmap_area.
1041 (coordinates_in_window): Return an enumerator from enum
1042 window_part. Fix handling of right scroll bar.
1043 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
1044 `right-fringe' instead of `left-bitmap-area' and
1045 `right-bitmap-area'. Use enumerators from enum window_part
1046 instead of hard-coded integers.
1047 (check_window_containing, window_from_coordinates): Use
1048 enumerators from enum window_part instead of hard-coded integers.
1049 (syms_of_window): Replace Qleft_bitmap_area and
1050 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
1051
7c132cba
EZ
10522001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
1053
1054 * editfns.c (Fformat_time_string): Doc fix.
1055
c359dd9e
SM
10562001-01-31 Stefan Monnier <monnier@cs.yale.edu>
1057
1058 * keymap.c (Fwhere_is_internal): Use the first valid binding
1059 if no ascii binding is found (when firstonly is t).
1060
ce070307
GM
10612001-01-31 Gerd Moellmann <gerd@gnu.org>
1062
b4f30ec5
GM
1063 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
1064 instead of Finteractive_p.
1065
1066 * lisp.h (interactive_p): Add prototype.
1067
1068 * eval.c (interactive_p): New function.
1069 (Finteractive_p): Use it.
1070
ce070307
GM
1071 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
1072
f57b6e64
DL
10732001-01-31 Dave Love <fx@gnu.org>
1074
d61c7afe
DL
1075 * .gdbinit (hook-run): Define to run xreload.
1076
f57b6e64
DL
1077 * textprop.c (Fset_text_properties): Fix newline in doc string.
1078
eef93f99
GM
10792001-01-30 Gerd Moellmann <gerd@gnu.org>
1080
1081 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp): Use
1082 DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
1083
1084 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
1085 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
1086 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
1087
1088 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
1089 height.
1090
d9c1f6f9
DL
10912001-01-30 Dave Love <fx@gnu.org>
1092
1093 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
1094 AFTER_POTENTIAL_GC.
1095
e8f044a0
GM
10962001-01-29 Gerd Moellmann <gerd@gnu.org>
1097
1098 * bytecode.c (Fbyte_code) <Bcurrent_column>: Add
1099 BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
1100
8e1db7b3
EZ
11012001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
1102
1103 * textprop.c (Fset_text_properties): Doc fix.
1104
4eefd9d2
GM
11052001-01-29 Gerd Moellmann <gerd@gnu.org>
1106
1107 * xdisp.c (forward_to_next_line_start): Remove xassert.
1108
fccb8288
EZ
11092001-01-29 Jason Rumney <jasonr@gnu.org>
1110
4eefd9d2 1111 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
fccb8288
EZ
1112 returning without releasing it.
1113
76581eab
KH
11142001-01-29 Kenichi Handa <handa@etl.go.jp>
1115
1116 * w32fns.c (w32_font_match): Allocate three more bytes to regex
1117 for '^', '$', and '\0'.
1118
83a96b4d
AC
11192001-01-28 Andrew Choi <akochoi@i-cable.com>
1120
5604ec34
AC
1121 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
1122 regex for '^', '$', and '\0'.
1123
83a96b4d
AC
1124 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
1125 only if current_sblock has been initialized.
1126
1127 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
1128 terminal frame even if it is the only visible frame.
1129
c09a6440
KH
11302001-01-28 Kenichi Handa <handa@etl.go.jp>
1131
1132 * fontset.c (font_family_registry): Even if FONTNAME conform to
1133 XLFD, if it specifies other fields than family and registry,
1134 return FONTANME. New argument FORCE if nonzero cancel that
1135 feature.
1136 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
1137 a signle byte character. Don't set FAMILY part to nil here. It
1138 is handled by the caller choose_face_font.
1139 (Fnew_fontset): Call font_family_registry with FORCE 0.
1140 (Fset_fontset_font): Likewise.
1141
4dcd74e6
GM
11422001-01-27 Gerd Moellmann <gerd@gnu.org>
1143
1144 * xdisp.c (display_line): Don't treat a newline as fitting
1145 on the line.
1146
d2906bf8
GM
11472001-01-26 Gerd Moellmann <gerd@gnu.org>
1148
0130fe1a
GM
1149 * window.c (size_window): Set the window's orig_top to nil when
1150 changing heights, so that a future shrink_mini_window won't
1151 restore a bogus height.
1152
550f0e6a
GM
1153 * frame.c (do_switch_frame): If selected frame has a mini-window,
1154 resize that to exact size.
1155
b7b20fbd
GM
1156 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
1157
a47b7816
GM
1158 * xdisp.c (display_line): Simplify check for glyphs fitting
1159 entirely in the line.
1160
d2906bf8
GM
1161 * xfns.c (xic_style): New variable.
1162 (create_frame_xic): Move static variable to global scope for
550f0e6a 1163 the case that `static' gets defined away.
d2906bf8 1164
73df2b1e
KH
11652001-01-26 Kenichi Handa <handa@etl.go.jp>
1166
1167 * coding.c (decode_coding): Set a flag for inhibiting
1168 inconsistent eol.
1169 (code_convert_region): Always set saved_coding_symbol.
1170 (decode_coding_string): Likewise. Update coding->symbol when we
1171 encounter a inconsistent eol by the same way as
1172 code_convert_region.
1173
6613cfc4
GM
11742001-01-25 Gerd Moellmann <gerd@gnu.org>
1175
c5e6e06b
GM
1176 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
1177 XClearArea.
1178
1179 * xterm.c (x_after_update_window_line): Don't clear if frame's
1180 internal border width is zero.
1181 (x_clear_area): New function.
1182 (x_after_update_window_line, x_clear_end_of_line)
1183 (x_scroll_bar_create, x_scroll_bar_set_handle)
1184 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
1185 instead of XClearArea.
1186
1187 * xterm.h (x_clear_area): Add prototype.
1188
6613cfc4
GM
1189 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
1190 which doesn't seem necessary anymore with Lesstif 0.92.
1191
650cc6cc
DL
11922001-01-25 Dave Love <fx@gnu.org>
1193
34ac3367
DL
1194 * puresize.h (BASE_PURESIZE): Up to 720000.
1195
650cc6cc
DL
1196 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
1197
5e37dc22
GM
11982001-01-25 Gerd Moellmann <gerd@gnu.org>
1199
e1e441f9
GM
1200 * xdisp.c (echo_area_display): Don't call redisplay_internal
1201 when Emacs is shutting down. We can't run hooks etc. that
1202 would be necessary to do a redisplay.
1203
5e37dc22
GM
1204 * lread.c (read_integer): Use type EMACS_INT instead of int.
1205
0fb94c7f
EZ
12062001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
1207
1208 * ccl.c (ccl_driver): Fix last change.
1209
e3778624
KH
12102001-01-25 Kenichi Handa <handa@etl.go.jp>
1211
1212 * ccl.h (sturct ccl_program): New member suppress_error.
1213
bb264518 1214 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
e3778624
KH
1215 insert error message to the output.
1216 (setup_ccl_program): Initialize ccl->suppress_error to 0.
1217
1218 * coding.h (struct coding_system): New member suppress_error.
1219
1220 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
1221 (Fset_terminal_coding_system_internal): Set the member
1222 suppress_error to 1.
1223 (Fset_safe_terminal_coding_system_internal): Likewise.
1224
245ed2b1
SM
12252001-01-24 Stefan Monnier <monnier@cs.yale.edu>
1226
1227 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
1228 as if it was a `charset'.
1229
f9aaedb6
GM
12302001-01-24 Gerd Moellmann <gerd@gnu.org>
1231
1232 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
1233 value in where_is_cache; the next lookup in the cache returns
1234 something bogus if we do.
1235
c3902c3e
EZ
12362001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
1237
1238 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
1239 if HAVE_WINDOW_SYSTEM isn't defined.
1240
3497f73e
GM
12412001-01-24 Gerd Moellmann <gerd@gnu.org>
1242
e7e41584
GM
1243 * fns.c (sweep_weak_table): Fix code taking items out of
1244 the hash collision chain. Some cleanup.
1245
3497f73e
GM
1246 * xterm.c (x_new_font): Don't change a tooltip's size.
1247
1248 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
1249 background color by specifying a color for the default font
1250 in .Xdefaults.
1251
3d48e687
KH
12522001-01-24 Kenichi Handa <handa@etl.go.jp>
1253
96531b20
KH
1254 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
1255 a workaround for SunOS 4's cc.
1256 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
1257 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
1258 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
1259 statement.
3d48e687 1260
a30629d2
GM
12612001-01-23 Gerd Moellmann <gerd@gnu.org>
1262
1263 * xterm.c (x_set_window_size_1): New function extracted from
1264 x_set_window_size.
1265 (x_set_window_size): Use it.
1266 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
1267 doesn't have a widget, like tooltips.
1268
5a43decf
EZ
12692001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
1270
1271 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc
1272 fix.
1273
b0e98867
KH
12742001-01-23 Kenichi Handa <handa@etl.go.jp>
1275
1276 * fns.c (Fset_char_table_default): Fix to make sub char-table
1277 correctly.
1278
50606b4c
GM
12792001-01-22 Gerd Moellmann <gerd@gnu.org>
1280
cb2ddc53 1281 * xdisp.c (build_desired_tool_bar_string): Make sure we have
a30629d2 1282 a desired tool bar string, even if there are no tool bar
cb2ddc53
GM
1283 items.
1284
57c28064
GM
1285 * xdisp.c (Ftool_bar_lines_needed): New function.
1286 (syms_of_xdisp): Defsubr it.
1287
50606b4c
GM
1288 * editfns.c (Fformat): Don't extend text properties from arguments
1289 to padding chars in the result.
1290
2f169c38
EZ
12912001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
1292
1293 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
1294
0f32f023
AI
12952001-01-20 Andrew Innes <andrewi@gnu.org>
1296
1297 * w32term.c (w32_ring_bell): Only support visible bell on w32
1298 frames.
1299 (w32_initialize): Don't set term hooks that aren't actually needed
1300 in windowed mode.
1301
1302 * xfaces.c (realize_default_face):
1303 (realize_face):
1304 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
1305
1306 * xdisp.c (handle_single_display_prop): Remove references to
1307 FRAME_W32_CONSOLE_P.
1308
1309 * dispnew.c (Fredraw_frame): Remove reference to
1310 FRAME_W32_CONSOLE_P.
1311
1312 * frame.h (output_method): Remove output_w32_console method.
1313 (FRAME_W32_CONSOLE_P): Remove macro.
1314
1315 * frame.c (Qw32_console): Remove variable.
1316 (Fframep): Remove references to it.
1317 (syms_of_frame): Ditto.
1318 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
1319
1320 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
1321 redefinition.
1322
7173eada
KH
13232001-01-20 Kenichi Handa <handa@etl.go.jp>
1324
1325 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
1326
755b45ce
AI
13272001-01-19 Andrew Innes <andrewi@gnu.org>
1328
1329 * w32.c (init_environment): Add a version-independent site-lisp
1330 directory to EMACSLOADPATH, after the version dependent one.
1331
0a949811
GM
13322001-01-19 Gerd Moellmann <gerd@gnu.org>
1333
8501998a
GM
1334 * editfns.c (Fbuffer_substring): Doc fix.
1335
0a949811
GM
1336 * xdisp.c (message_dolog, message2, message2_nolog): Rename
1337 parameter LEN to NBYTES.
1338
e6ebcbbe
KH
13392001-01-19 Kenichi Handa <handa@etl.go.jp>
1340
200ecca2
KH
1341 * charset.c (strwidth): Use c_string_width.
1342 (c_string_width): New function.
1343 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
1344 Caller changed.
1345
1346 * charset.h (c_string_width, lisp_string_width): Extern them.
1347
1348 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
1349
e6ebcbbe
KH
1350 * indent.c (check_composition): Check validity of composition.
1351
200ecca2
KH
1352 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
1353 characters by calling c_string_width.
1354 (x_consider_frame_title): Get byte length of frame tile string
1355 correctly.
1356 (display_mode_element): Pay attention to width of non-ASCII
1357 characters by calling strwidth.
1358
8692ca92
GM
13592001-01-18 Gerd Moellmann <gerd@gnu.org>
1360
8962e303
GM
1361 * xfns.c (Qcancel_timer): New variable.
1362 (syms_of_xfns): Initialize and staticpro it.
1363 (Fx_hide_tip, Fx_show_tip): Use it.
1364 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
1365 the timer.
1366 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
1367
91523be9
GM
1368 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
1369
1370 * window.h (WINDOW_LIVE_P): New macro.
1371
b0b7ed0e
GM
1372 * window.c (window_size_fixed): New variable.
1373 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
1374 the doc string.
1375
06bccf8e
GM
1376 * eval.c (specbind): If binding a per-buffer variable which
1377 doesn't have a buffer-local value in the current buffer, change
1378 the global value by changing the value of the symbol bound in all
1379 buffers not having their own value, to make it consistent with
1380 what happens with other buffer-local variables.
1381
8692ca92
GM
1382 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
1383
1384 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
1385 when searching for a newline.
1386
bb3a3b50
KH
13872001-01-18 Kenichi Handa <handa@etl.go.jp>
1388
1389 * xdisp.c (display_string): Fix previous change.
1390
c2cc16fa
JR
13912001-01-18 Jason Rumney <jasonr@gnu.org>
1392
1393 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
1394 GLYPH_DEBUG is defined.
1395 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
1396 true for images with `:ascent 100'.
1397 (x_set_mouse_face_gc): If the last used mouse face has gone in the
1398 meantime, use face MOUSE_FACE_ID.
1399 If first glyph isn't a character glyph, use the ASCII NUL
1400 character to determine the face.
1401 (expose_area): Do not treat left margin specially.
1402 (note_mode_line_highlight): If no local_map, check global keymap.
1403 (note_mouse_highlight): Initialize overlay.
1404 (clear_mouse_face): Don't return if tip_frame is
1405 non-nil.
1406 (show_scroll_bars): Remove unused function.
1407 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
1408 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
1409 Clip to row.
1410 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be
1411 nil.
1412 (x_free_frame_resources): Unload relief colors.
1413
9c11f79e
GM
14142001-01-17 Gerd Moellmann <gerd@gnu.org>
1415
3aec8722
GM
1416 * xdisp.c (forward_to_next_line_start): Avoid calling
1417 get_next_display_element when the newline is already found. This
1418 may change the iterator's position, when its current position is
1419 equal to the iterator's stop_charpos.
1420
f3ffc2c3
GM
1421 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
1422 zero, use this method only at the end of a line.
1423
a86110a8
GM
1424 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
1425 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
1426 if SCALABLE_FONTS_P is set.
1427
d26d6fd9
GM
1428 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
1429 so that scalable fonts are included.
1430
9c11f79e
GM
1431 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
1432 In the cache, use a key containing the information if scalable
1433 fonts are included.
1434 (x_load_font): Adapt to change of keys in the font cache.
1435
14362001-01-17 Kim F. Storm <storm@filanet.dk>
1437
d26d6fd9
GM
1438 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
1439 XListFonts to take advantage of font caching.
1440
9c11f79e
GM
1441 * xterm.c (x_list_fonts): Ensure caching font information when
1442 called for a null frame, which is the case frequently when Emacs
1443 starts.
1444
51446987
GM
14452001-01-17 Gerd Moellmann <gerd@gnu.org>
1446
f864120f
GM
1447 * xfns.c (QCconversion): Replaces QCalgorithm.
1448
1449 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
1450
1451 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
1452 of :algorithm.
1453
e37d1417
GM
1454 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
1455 not everything could be displayed.
1456
51446987
GM
1457 * line.h, x-list-font.c: Files removed because unused.
1458
9ad4f3e5
AI
14592001-01-17 Andrew Innes <andrewi@gnu.org>
1460
1461 * dired.c (directory_files_internal): Convert result from readdir
1462 to a unibyte string initially, to avoid possible misinterpretation
1463 of some bytes as the internal form of Emacs characters.
1464
2eda09b5
KH
14652001-01-17 Kenichi Handa <handa@etl.go.jp>
1466
1467 * fns.c (concat): Be sure to avoid putting the same `composition'
1468 property on the adjacent regions.
1469
826f3788
GM
14702001-01-16 Gerd Moellmann <gerd@gnu.org>
1471
f251459d
GM
1472 * window.c (Fset_window_hscroll): Don't set window's min_hscroll
1473 here.
1474 (Fscroll_right, Fscroll_left): Set it here instead, if called
1475 interactively.
1476
d57b83b3
GM
1477 * buffer.c (Fset_buffer_modified_p): Set buffer's
1478 prevent_redisplay_optimizations_p flag.
1479
826f3788
GM
1480 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
1481 * sysdep.c, vmsproc.c, xselect.c: Call
1482 redisplay_preserve_echo_area with additional arg.
1483
1484 * dispextern.h, lisp.h (redisplay_preserve_echo_area): Change
1485 prototype.
1486
1487 * xdisp.c (redisplay_preserve_echo_area): Add parameter
1488 FROM_WHERE, for debugging.
1489
261d788b
KH
14902001-01-16 Kenichi Handa <handa@etl.go.jp>
1491
1492 * ccl.c (Fregister_ccl_program): Handle the return value of
1493 resolve_symbol_ccl_program correctly.
bda6b481
KH
1494 (CCL_Extension): Fix typo (originally CCL_Extention). Caller
1495 changed.
261d788b 1496
bccee4f2
GM
14972001-01-15 Gerd Moellmann <gerd@gnu.org>
1498
e4ded23c
GM
1499 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
1500 has gone in the meantime, use face MOUSE_FACE_ID.
1501
ae24cb3b
GM
1502 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: If
1503 x_display_info_for_display returns null, don't try to close
1504 the display; we didn't open it.
1505
bccee4f2
GM
1506 * dispnew.c (save_or_restore_current_matrices): Function removed.
1507 (save_current_matrix, restore_current_matrix): New functions.
1508 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
1509 restore the frame's current matrix. Due to the glyph pointer
1510 setup done in adjust_glyph_matrix, there is no easy way to make
1511 saving the current matrix in the desired matrix generally correct,
1512 so don't try it.
1513
ebeccffa
KH
15142001-01-15 Kenichi Handa <handa@etl.go.jp>
1515
1516 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
1517 truncation glyphs.
1518 (display_line): Optimize for wide characters.
e4ded23c 1519 (display_string): Don't try to display a multi-column character
ebeccffa
KH
1520 partially. On ttys, produce more than one truncation glyph for
1521 multi-column characters that don't fit on the line.
1522
64388126
KH
15232001-01-13 Kenichi Handa <handa@etl.go.jp>
1524
1525 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]: Define
1526 it instead of WORDS_BIGENDIAN. Caller changed.
1527
8edb0a6f
JR
15282001-01-13 Jason Rumney <jasonr@gnu.org>
1529
1530 * w32fns.c (Fimage_size, image_ascent, lookup_image)
1531 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
1532 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
1533 (tiff_format, gif_format, gs_format): Adapt to change of image
1534 margins.
1535
1536 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
1537 (x_draw_image_relief, x_draw_image_foreground_1)
1538 (x_draw_image_glyph_string): Adapt to change of image margins.
1539
1540 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
1541 variables.
1542
1543 * w32bdf.c (search_file_line, get_cached_font_char)
1544 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
1545
1546 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
1547
1548 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
1549 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
1550 (Fw32_send_sys_command): Remove unused variables.
1551 (w32_msg_pump): Add parentheses.
1552
1553 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
1554 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
1555 Add parentheses.
1556
4956d1ef
GM
15572001-01-12 Gerd Moellmann <gerd@gnu.org>
1558
b30623be
GM
1559 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
1560 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
1561 being a pair of margins.
1562 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
1563 to DEFVAR_LISP. Extend doc.
1564
1565 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
1566 margins.
1567 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
1568 pair of integers `(X . Y)', use X for the horizontal and Y for the
1569 vertical margin.
1570 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
1571 (parse_image_spec): Check it.
1572 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
1573 (tiff_format, gif_format, gs_format): Use
1574 IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
1575
1576 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
1577 (x_draw_image_relief, x_draw_image_foreground_1)
1578 (x_draw_image_glyph_string): Adapt to the change of image margins.
1579
1580 * dispextern.h (struct image): Replace member `margin' with
1581 `hmargin' and `vmargin'.
1582
4554cc79
GM
1583 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
1584 and GLYPHS.
1585
1586 * dispnew.c (update_text_area): Put code which decrements the
1587 stop position when the row's face extends to the end of the
3bffc665 1588 line in #if 0.
4554cc79 1589
3cccce8d
GM
1590 * xfns.c (x_set_mouse_color): Fix color allocation.
1591
4956d1ef
GM
1592 * keyboard.c: Call get_local_map with new argument list.
1593
1594 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
1595
1596 * intervals.h (enum map_property): Removed.
1597 (get_local_map): Change prototype.
1598
1599 * keymap.c: Call get_local_map with new argument list.
1600 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
1601
2c2ff7f2
GM
16022001-01-11 Gerd Moellmann <gerd@gnu.org>
1603
a23887b9
GM
1604 * xdisp.c (build_desired_tool_bar_string): Correct the computation
1605 of the size needed for the tool bar string. For the last image,
1606 use a `display' property that reaches to the end of the string.
1607
a7ee2d2e
GM
1608 * xselect.c (selection_request_dpyinfo): New variable.
1609 (x_handle_selection_request): Set it.
1610 (x_selection_request_lisp_error): Don't call
1611 x_decline_selection_request if selection request's display has
1612 been closed.
1613
2c2ff7f2
GM
1614 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]: Do
1615 the unregister_colors before calling XFreeColors.
1616
457b792c
GM
16172001-01-10 Dave Love <fx@gnu.org>
1618
1619 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
1620 ${SOME_MACHINE_LISP}, not ${lisp}.
1621
c1efd260
GM
16222001-01-10 Gerd Moellmann <gerd@gnu.org>
1623
a98b5ed9 1624 * xdisp.c (display_line): On ttys, produce more than one
4554cc79 1625 truncation glyph for multi-column characters that don't fit on the
a98b5ed9
GM
1626 line.
1627
ac95a621
GM
1628 * xselect.c (x_reply_selection_request): Add a comment.
1629
c1efd260
GM
1630 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
1631 XkbGetNames instead of XkbGetKeyboard.
1632
1bfb1345
DL
16332001-01-10 Dave Love <fx@gnu.org>
1634
1635 * sysdep.c (random): Revert the declaration.
1636
38119822
GM
16372001-01-09 Gerd Moellmann <gerd@gnu.org>
1638
35f464a7
GM
1639 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]: Call
1640 function string_bytes.
1641 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
1642
1643 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
1644 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
1645 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
1646 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
1647 the current sblock.
1648 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
1649 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
1650 after sweeping strings, and at the end.
1651 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
1652
38119822
GM
1653 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
1654 ensure that pop_message is called.
1655
1656 * keyboard.c (Fexecute_extended_command): Use a
1657 record_unwind_protect to ensure that pop_message is called.
1658
1659 * lisp.h (push_message_unwind): Add prototype.
1660
1661 * xdisp.c (push_message_unwind): New function.
1662
1663 * fileio.c (do_auto_save_unwind): Do the pop_message here
1664 instead of in Fdo_auto_save.
1665 (Fdo_auto_save): Don't call pop_message.
1666
f47a9ec4
KR
16672001-01-08 Ken Raeburn <raeburn@gnu.org>
1668
1669 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
1670 in inner block.
1671
a758f97d
GM
16722001-01-08 Gerd Moellmann <gerd@gnu.org>
1673
6d0afc03
GM
1674 * window.c (window_scroll_pixel_based): Adjust glyph matrices
1675 when increasing window's vscroll.
1676
a758f97d
GM
1677 * macros.c (Qkbd_macro_termination_hook): New variable.
1678 (syms_of_macros): Initialize and staticpro it.
1679 (pop_kbd_macro): Run kbd-macro-termination-hook.
1680
1681 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
1682
1bfb1345 16832001-01-07 Dave Love <fx@gnu.org>
64d4ec0f
DL
1684
1685 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
1686 arglist, for documentation's sake.
1687
0dac6924
AI
16882001-01-06 Andrew Innes <andrewi@gnu.org>
1689
1690 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
1691 of *.pdb.
1692
8182406a
AI
16932001-01-05 Andrew Innes <andrewi@gnu.org>
1694
1695 * term.c (update_end): Don't check updating_frame; for some reason
1696 this can be 0 sometimes, such as after dismissing a popup menu,
1697 and isn't necessary given the explicit frame argument.
1698
3828218c
GM
16992001-01-05 Gerd Moellmann <gerd@gnu.org>
1700
1701 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
1702 on some systems, and an unsigned long on others, like FreeBSD 4.1.
1703
2f5ded21
GM
17042001-01-04 Gerd Moellmann <gerd@gnu.org>
1705
1706 * xterm.c (clear_mouse_face): Don't return if tip_frame is
1707 non-nil.
1708
1709 * xfns.c (x_create_tip_frame): Preserve the value of
1710 face_change_count around the creation of the tip frame.
1711
1712 * xfns.c (last_show_tip_args): New variable.
1713 (compute_tip_xy): New function.
1714 (Fx_show_tip): Reuse an existing tip frame, if possible.
1715 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
1716
dfad65fa
DL
17172001-01-04 Dave Love <fx@gnu.org>
1718
64d4ec0f
DL
1719 * editfns.c (Fformat): Doc fix.
1720
dfad65fa
DL
1721 * systime.h (set_file_times): Prototype.
1722
1723 * widget.h (EmacsFrameSetCharSize_): Prototype.
1724
1725 * sysdep.c (random, srandom): Declare explicitly.
1726
1727 * dispextern.h (move_it_vertically_backward): Declare.
1728
85fe3b5e
GM
17292001-01-04 Gerd Moellmann <gerd@gnu.org>
1730
0f2ac578
GM
1731 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
1732 like in Fx_create_frame.
1733
482cca61
GM
1734 * xfaces.c (set_font_frame_param): Don't do anything for
1735 non-graphical frames.
1736
85fe3b5e
GM
1737 * window.c (Fdelete_other_windows): Set window's window_end_valid
1738 to nil when changing the window's start. Don't change the
1739 window's start when its top position hasn't changed. If we do,
1740 this will set the window's optional_new_start, which act's like a
1741 force_start during redisplay with C-x 1 M-> under particular
1742 circumstances (see report from Per Starback to emacs-pretest-bug
1743 from 2000-12-13.).
1744
3e99d3b4
GM
17452001-01-03 Gerd Moellmann <gerd@gnu.org>
1746
a77dc1ec
GM
1747 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
1748 short cut at the start of the function. Add an assertion.
1749 (reseat_at_next_visible_line_start): Add an assertion.
1750
2f3cad6c
GM
1751 * window.c (Frecenter): When changing the window start, set the
1752 window's window_end_valid to nil.
1753 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
1754
1755 * dispextern.h (move_it_past_eol): Add prototype.
1756
1757 * xdisp.c (move_it_past_eol): New function.
1758
3e99d3b4
GM
1759 * window.c (Fwindow_end): Doc fix.
1760
17612001-01-03 Dave Love <fx@gnu.org>
1762
1763 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3
1764 kluge.
1765
bafb434c
GM
17662001-01-03 Gerd Moellmann <gerd@gnu.org>
1767
1768 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
1769 the enabled_p flag of the glyph row at window_end_vpos to 0.
1770 (handle_single_display_prop): Fix last change.
1771
5297fb00
RS
17722001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
1773
1774 * window.c (Frecenter): Doc fix.
1775
13d6a61c
AI
17762001-01-02 Andrew Innes <andrewi@gnu.org>
1777
1778 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
1779
1780 * frame.h (output_method): Add output_w32_console method.
1781 (FRAME_W32_CONSOLE_P): New macro.
1782
1783 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
1784 use output_w32_console method.
1785 (Qw32_console): New Lisp_Object.
1786 (Fframep): Return it.
1787 (syms_of_frame): Init it.
1788 (Fframe_parameters): Report w32console as font for w32_console
1789 frames.
1790
1791 * xfaces.c (realize_default_face): Set face foreground and
1792 background to unspecified for w32_console frames.
1793 (realize_face): Realize face cache for w32_console frames.
1794 (realize_tty_face): Accept w32_console frames.
1795
1796 * xdisp.c (handle_single_display_prop): Return if frame is
1797 w32_console.
1798 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
1799 necessary, even if running interactively.
1800
1801 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
1802 w32_console frames.
1803
1804 * w32term.c (x_update_begin):
1805 (x_update_end):
1806 (x_clear_frame):
1807 (x_ins_del_lines):
1808 (x_change_line_highlight):
1809 (x_delete_glyphs):
1810 (w32_ring_bell):
1811 (x_update_begin):
1812 (x_update_end):
1813 (w32_reassert_line_highlight):
1814 (w32_frame_rehighlight):
1815 (w32_frame_raise_lower): Do nothing if not w32 frame.
1816
1817 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
1818
1819 * w32fns.c (Fx_display_color_cells): Determine correct value, when
1820 system doesn't tell us directly.
1821 (Fx_display_visual_class): Implement properly.
1822
d6bb0c0d
GM
18232001-01-02 Gerd Moellmann <gerd@gnu.org>
1824
1825 * window.c (Frecenter): Handle centering in graphical frames
1826 specially. Centering on the basis of line counts doesn't work
1827 reliably with variable-height lines.
1828
315f5865
EZ
18292001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
1830
1831 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
1832 and al[].
1833
1834 * composite.c (run_composition_function): Remove unused variable
1835 `val'.
1836 (update_compositions): Remove unused variable `hook'.
1837
1838 * intervals.c (get_local_map): Remove unused variable `tem'.
1839
1840 * doprnt.c (doprnt1): Remove unused variable `size'.
1841
1842 * fns.c (Flength): Remove unused variable `tail'.
1843 (Fdelete): Remove unused variable `size'.
1844
1845 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
1846 and `gcpro2'.
1847
1848 * doc.c (Fsnarf_documentation): Remove unused variables `fun' and
1849 `tem'.
1850
1851 * data.c (find_symbol_value): Remove extra 3rd argument in the
1852 call to swap_in_symval_forwarding.
1853
1854 * undo.c (Fprimitive_undo): Remove unused block-scope variable
1855 `end'.
1856
1857 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
1858 (trivial_regexp_p): Remove unused variable `c'.
1859 (boyer_moore): Remove unused variable `k'.
1860
1861 * indent.c (current_column): Remove unused variable `stopchar'.
1862 (Fcompute_motion): Remove unused variable `contin'.
1863
1864 * casefiddle.c (casify_object): Remove unused variable `tolen'.
1865
1866 * dired.c (directory_files_internal): Fix a typo in a comment.
1867 Remove an unused variable `handler'.
1868 (file_name_completion): Remove unused function-scope variable
1869 `dp'.
1870 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
1871 on BSD4_2.
1872
1873 * fileio.c (e_write): Remove unused variable
1874 `require_encoding_p'.
1875
1876 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
1877 and `buf'.
1878 (Fmarker_insertion_type): Remove unused variable `buf'.
1879
1880 * insdel.c (make_gap): Remove unused variable `result'.
1881
1882 * keyboard.c (record_char): Remove unused function-scope variable
1883 `help'.
1884 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
1885 (menu_bar_items): Remove unused function-scope variable `tem'.
1886
1887 * fontset.c (fontset_ref): Remove unused variable `i'.
1888 (fontset_set): Remove unused variables `j' and `tmp'.
1889 (make_fontset): Remove unused variables `i', `j', `elt' and
1890 `base_elt'.
1891 (make_fontset_for_ascii_face): Remove unused variable `name'.
1892 (fs_load_font): Remove unused variable `font_idx'.
1893 (fs_query_fontset): Remove unused function-local variable
1894 `fontset'.
1895 (list_fontsets): Remove unused variable `tail'.
1896 (Fnew_fontset): Remove unused variables `family' and `registry'.
1897 (accumulate_font_info): Remove unused variable `tmp'.
1898 (Ffontset_font): Remove unused variable `id'.
1899 (syms_of_fontset): Remove unused variable `i'.
1900
1901 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
1902 to x_term_init.
1903 (lookup_image): Remove unused variable `file'.
1904 (xbm_load): Remove unused variables `bitmap_data', `height', and
1905 `width'. Remove function-local variable `i', leave the
1906 block-local one.
1907 (gif_load): Remove unused variable `inc'.
1908
1909 * xterm.c (XTread_socket): Remove unused variables `p' and
1910 `pend'.
1911 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
1912 leave only the one in the inner block.
1913
1914 * xfaces.c (face_fontset, realize_default_face): Remove unused
1915 variable `fontset'.
1916 (face_at_buffer_position): Remove unused variable `multibyte_p'.
1917
1918 * term.c (encode_terminal_code): Remove unused variable `c'.
1919
1920 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
1921 char *' instead of `char *'.
1922
1923 * category.c (Fcategory_docstring): Remove unused variable `doc'.
1924 (Fget_unused_category): Remove unused variable
1925 `docstring_vector'.
1926 (Fchar_category_set): Remove unused variables `val', `charset',
1927 `c1' and `c2'.
1928
1929 * coding.c (detect_coding_iso2022, setup_coding_system): Remove
1930 unused variable `i'.
1931 (detect_coding_mask): Remove unused variable `idx'.
1932 (detect_coding): Remove unused variable `i'.
1933 (ccl_coding_driver): Remove unused variable `result'.
1934 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
1935 (decode_coding_string): Remove unused variables `to' and
1936 `gcpro1'.
1937 (encode_coding_string): Remove unused variables `gcpro1' and
1938 `saved_coding_symbol'.
1939 (Ffind_coding_systems_region_internal): Remove function-local
1940 variable args[], leave only the block-local one.
1941 (code_convert_region1): Remove unused variable `len'.
1942
1943 * charset.c (char_printable_p): Remove unused variable `chars'.
1944 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
1945 (str_to_multibyte): Remove unused variable `c'.
1946
1947 * window.c (size_window): Remove block-local variable `min_size'.
1948
1949 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
1950 `header_line_height'.
1951 (append_space, extend_face_to_end_of_line): Declare `saved_what'
1952 enum display_element_type.
1953
1a8a9daf
GM
19542001-01-02 Gerd Moellmann <gerd@gnu.org>
1955
6dde6abc
GM
1956 * xterm.c (x_connection_closed): Catch X errors around all
1957 statements that call X. Save away the error message in a local
1958 copy.
1959
1883b2c6
GM
1960 * xterm.c (x_connection_closed): Set handling_signal to 0 at
1961 the start.
1962
a13be207
GM
1963 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
1964 in or at the start of invisible text.
1965
1a8a9daf
GM
1966 * dispnew.c (update_window): Don't check_current_matrix_flags.
1967
3608c0f9
JR
19682001-01-01 Jason Rumney <jasonr@gnu.org>
1969
1970 * w32fns.c (x_figure_window_size): Do not allow new_height and
1971 new_width of frame to override specified values.
1972
abb1acc4
KH
19732000-12-30 Kenichi Handa <handa@etl.go.jp>
1974
d279f620
KH
1975 * composite.c (find_composition): Fix a code for searching
1976 backward.
abb1acc4 1977
762a68ec
GM
19782000-12-29 Gerd Moellmann <gerd@gnu.org>
1979
9c8b8382
GM
1980 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New
1981 function.
1982 (update_window) [GLYPH_DEBUG]: Call it.
1983 (scrolling_window): Prevent including current rows which are below
1984 what's displayed in the window.
1985
1986 * xdisp.c (try_window_reusing_current_matrix)
1987 <new start <= old start>: Disable rows in the current matrix
1988 which are below the window after scrolling.
1989
762a68ec
GM
1990 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
1991 is zero. It's not worth the complexity.
1992 (invisible_text_between_p): Put in #if 0 because unused.
1993
2d5912c1
GM
19942000-12-28 Gerd Moellmann <gerd@gnu.org>
1995
46f6a258
GM
1996 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
1997 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
1998
89f93679
GM
1999 * keyboard.c (echo_char): If C is an integer, always call
2000 push_key_description. Former code could signal an invalid
2001 character error.
2002
2003 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
2004 If set, print multibyte text.
2005 (Fsingle_key_description): Call push_key_description with
2006 FORCE_MULTIBYTE set.
2007 (describe_buffer_bindings): Likewise.
2008
2009 * lisp.h (push_key_description): Add prototype.
2010
c06017fb
GM
2011 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
2012 around the call to redisplay_internal.
2013
f1d2ce7f
GM
2014 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
2015
2d5912c1
GM
2016 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
2017
9371f831
KH
20182000-12-28 Kenichi Handa <handa@etl.go.jp>
2019
2020 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
2021 (ccl_driver): New local variable `extra_bytes'.
2022
2023 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
2024
2025 * coding.c (setup_coding_system): Initialize
2026 coding->spec.ccl.eight_bit_carryover.
2027 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
2028
0c80628a
KH
20292000-12-28 Kenichi Handa <handa@etl.go.jp>
2030
2031 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
2032 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
2033 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
2034 (decode_composition_emacs_mule): New function.
2035 (decode_coding_emacs_mule): Decode composition sequence by calling
2036 decode_composition_emacs_mule.
2037 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
2038 (encode_coding_emacs_mule): Changed from macro to function. If
2d5912c1 2039 a text contains compositions, encode them correctly.
0c80628a
KH
2040 (setup_coding_system): Set coding->commong_flags for emacs-mule so
2041 that decoding and encoding are required.
2042
3e32cc27
GM
20432000-12-27 Gerd Moellmann <gerd@gnu.org>
2044
5e25feee
GM
2045 * xfaces.c (PT_PER_INCH): New macro.
2046 (xlfd_point_size): Compute real point size from font's pixel size.
2047 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
2048 instead of 72.
2049
892d8fcd
GM
2050 * .gdbinit: Comment out the line pointing to the Lesstif source
2051 directory.
2052
12c8b416
GM
2053 * window.c (Frecenter): Use displayed_window_lines instead
2054 of window_internal_height.
2055
6061fbf0
GM
2056 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
2057 instead of x-toolkit-scroll-bars-p.
2058 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
2059
2060 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
2061 instead of x-toolkit-scroll-bars-p.
2062 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
2063
3e32cc27
GM
2064 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
2065 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
2066 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]: New
2067 variables.
2068 (add_window_display_history, add_frame_display_history)
2069 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
2070 (build_frame_matrix_from_leaf_window): Remove unused code.
2071 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
2072 redisplay history.
2073 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
2074 (update_window) [GLYPH_DEBUG]: Likewise.
2075 (syms_of_display): Defsubr dump-redisplay-history.
2076
31798cfe
GM
20772000-12-23 Gerd Moellmann <gerd@gnu.org>
2078
f717c2ba
GM
2079 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
2080 the end of the prompt. Set echo_after_prompt to the offset
2081 of echoptr in echobuf.
2082
aeb2b8fc
GM
2083 * xdisp.c (init_from_display_pos): Pop until the iterator's
2084 stack is empty; there may be frames for stretch or images
2085 on the stack.
2086
31798cfe
GM
2087 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
2088 (save_or_restore_current_matrix): New function for the same
2089 purpose, but more efficient.
2090 (adjust_frame_glyphs_for_frame_redisplay): Use it.
2091
f8156156
EZ
20922000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
2093
2094 * xdisp.c (syms_of_xdisp): Fix last change.
2095
bdd6d4e8
GM
20962000-12-23 Gerd Moellmann <gerd@gnu.org>
2097
2098 * xdisp.c (syms_of_xdisp): Doc fix.
2099
2100 * xdisp.c (redisplay_window): Remove label restore_buffers;
2101 use finish_scroll_bars instead to make sure that scroll bars
2102 are redeemed. If we don't do this, flickering can result from
2103 scroll bars being destroyed and recreated.
2104
9436cdf9
JR
21052000-12-22 Jason Rumney <jasonr@gnu.org>
2106
2107 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
2108 in the wrong colors when the foreground is not black.
2109 (expose_window): Don't redraw the window that's currently being
2110 updated.
2111
951f9df5
GM
21122000-12-22 Gerd Moellmann <gerd@gnu.org>
2113
856ff7a7
GM
2114 * window.c (size_window): When setting the window's too_small_ok
2115 flag, compare old size with minimum size depending on WIDTH_P,
2116 don't compare with window_min_width.
2117
951f9df5
GM
2118 * window.c (delete_window): Simplify somewhat.
2119 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
2120 freeing window matrices. The flag windows_or_buffers_changed is
2121 set, so the next redisplay will consider all windows; this should
2122 suffice.
2123
886bc933
KH
21242000-12-22 Kenichi Handa <handa@etl.go.jp>
2125
2126 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
2127
2128 * ccl.h (struct ccl_program): New member cr_consumed.
2129
2130 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
2131 (CCL_READ_CHAR): Handle EOL conversion here.
2132 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
2133
177f4e88
GM
21342000-12-21 Gerd Moellmann <gerd@gnu.org>
2135
6ba384dc
GM
2136 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg
2137 GLYPHS.
2138
2139 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
2140 otherwise tabs of different size compare equal.
2141
2142 * callint.c (Fcall_interactively): Prevent a compiler warning.
2143
2144 * print.c (print_unwind): Return nil.
2145 (PRINTDECLARE): Initialize all local variables.
2146 (print_preprocess): Add a default case.
2147
8e15274f
GM
2148 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
2149
2150 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
2151
177f4e88
GM
2152 * window.c (delete_window, Fsplit_window)
2153 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
2154
2155 * dispextern.h (ensure_frame_matrix): Function declaration removed.
2156
2157 * dispnew.c (ensure_frame_matrix): Removed.
2158 (save_frame_matrix, restore_frame_matrix): New functions.
2159 (adjust_frame_glyphs_for_frame_redisplay): Use them.
2160
2161 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
2162 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
2163
99012074
AI
21642000-12-21 Andrew Innes <andrewi@gnu.org>
2165
2166 * w32term.c (x_update_begin): Regenerate the palette here, rather
2167 than for each window.
2168
2169 * w32xfns.c (select_palette): Avoid calling SelectPalette if
2170 palette is NULL, since this corrupts memory! Also get
2171 display_info reference from frame.
2172
29ef7d2d
JR
21732000-12-21 Jason Rumney <jasonr@gnu.org>
2174
2175 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
2176
2177 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
2178 to avoid returning without releasing it.
3e27fa1f 2179
3f9d67a6
KH
21802000-12-21 Kenichi Handa <handa@etl.go.jp>
2181
587fc3f9
KH
2182 * keymap.c (push_key_description): Don't convert eight-bit-control
2183 and eight-bit-graphic to multibyte character.
2184
3f9d67a6
KH
2185 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
2186 generic character and CODE1 is nil, return the smallest character
2187 in CHARSET.
2188
774ba8c9
DL
21892000-12-20 Dave Love <fx@gnu.org>
2190
2191 * s/osf5-0.h (NSIG): Don't redefine.
2192
88416888
SM
21932000-12-20 Stefan Monnier <monnier@cs.yale.edu>
2194
2195 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
2196 excluding menu-bar and tool-bar.
2197 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
2198 (menu_item_p): Remove.
2199 (where_is_internal_1): Don't ignore menu-items.
2200
a6426c6f
GM
22012000-12-20 Gerd Moellmann <gerd@gnu.org>
2202
03ff8aab
GM
2203 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
2204 into account.
2205
2206 * window.c (make_window): Initialize window's min_hscroll.
2207 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
2208 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
2209 to zero.
2210 (struct saved_window): New member min_hscroll.
2211 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
2212 (Fset_window_configuration): Set window's min_hscroll.
2213 (save_window_save): Save window's min_hscroll.
2214 (compare_window_configurations): Compare min_hscroll values.
2215
2216 * window.h (struct window): New member min_hscroll.
2217
2218 * keyboard.c (echo_prompt): Prevent a compiler warning.
2219
8de4aaf8
GM
2220 * xdisp.c (try_cursor_movement): Fix last change. The real
2221 condition is that PT is at the end of the row, and should
2222 be displayed at the start of the next row.
2223
3f7e3031
GM
2224 * xdisp.c (try_cursor_movement): If we end on a partially
2225 visible line, end we already decided to scroll, return -1.
2226
a6426c6f
GM
2227 * dispextern.h (ensure_frame_matrix): Add prototype.
2228
2229 * window.c (delete_window, Fsplit_window)
2230 (Fset_window_configuration): Call ensure_frame_matrix.
2231
2232 * dispnew.c (fake_current_matrices, ensure_frame_matrix): New
2233 functions.
2234 (adjust_frame_glyphs_for_frame_redisplay): If display has been
2235 completed, call fake_current_matrices instead of marking frame
2236 garbaged.
2237
57fa2774
JR
22382000-12-20 Jason Rumney <jasonr@gnu.org>
2239
2240 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
2241
d925df90
EZ
22422000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
2243
2244 * fns.c (Frequire): Doc fix.
2245
7b93a85b
GM
22462000-12-19 Gerd Moellmann <gerd@gnu.org>
2247
71d4497a
GM
2248 * window.c (window_scroll_pixel_based): Don't use
2249 move_it_vertically.
2250
c74e645b
GM
2251 * dispnew.c (direct_output_for_insert): Fix check for mini-window
2252 currently displaying a message.
2253
7b93a85b
GM
2254 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
2255 xterm.h.
2256 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
2257
90d97e64
AI
22582000-12-18 Andrew Innes <andrewi@gnu.org>
2259
2260 * w32.c (w32_strerror): New function.
2261
2262 * w32.h (w32_strerror): New extern.
2263
2264 * w32fns.c (Fw32_shell_execute): Use it.
2265
91c9e6ce
GM
22662000-12-18 Gerd Moellmann <gerd@gnu.org>
2267
2268 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
2269
6f4745e2
EZ
22702000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
2271
2272 * msdos.c (IT_set_face): Obey inverse_video.
2273
c9e088ce
KH
22742000-12-18 Kenichi Handa <handa@etl.go.jp>
2275
2276 * dired.c (directory_files_internal): Always return decoded filenames.
2277
c3695f5f
GM
22782000-12-18 Gerd Moellmann <gerd@gnu.org>
2279
52d8e4ff
GM
2280 * xterm.c (x_connection_closed): Prevent being called recursively
2281 because of an error condition in XtCloseDisplay.
2282
62be9979
GM
2283 * xdisp.c (init_iterator): If noninteractive, and the frame's
2284 face cache is null, make one.
2285
5f7a1890
GM
2286 * xfns.c (show_busy_cursor): Check for live frames more
2287 thoroughly.
2288
c3695f5f
GM
2289 * process.c (wait_reading_process_input): Check for pending
2290 input when running timers.
2291
78555fbe
EZ
22922000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
2293
2294 * msdos.c (IT_write_glyphs): Compute the glyph face from
2295 str->face_id.
2296
b2b36264
KH
22972000-12-18 Kenichi Handa <handa@etl.go.jp>
2298
2299 * process.c (read_process_output): Don't run a filter if the code
2300 decoder produces nothing but carryover.
2301
9c543fbf
AI
23022000-12-17 Andrew Innes <andrewi@gnu.org>
2303
2304 * w32.c (sys_rename): Only check errno against EEXIST, and not
2305 EACCES, when determining whether rename failed because the target
2306 exists. This was resulting in indefinite looping on Windows 9x if
2307 the source file was locked by another process.
2308
2309 * w32fns.c (Ffile_system_info): New function.
2310 (syms_of_w32fns): Defsubr it.
2311
10c2b5a8
GM
23122000-12-17 Gerd Moellmann <gerd@gnu.org>
2313
b0228ace
GM
2314 * window.c (coordinates_in_window): Fix computation for
2315 position on vertical line between mode lines.
2316
10c2b5a8
GM
2317 * xfns.c (unwind_create_frame): Return t if frame was deleted.
2318 Don't alter tip_frame or tip_window.
2319 (unwind_create_tip_frame): Set tip_frame to nil only if frame
2320 was deleted.
2321
c844a81a
GM
2322 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
2323 Don't alter tip_frame or tip_window.
2324 (unwind_create_tip_frame): Set tip_frame to nil only if frame
2325 was deleted.
2326
6c825f8e
EZ
23272000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
2328
2329 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
2330 be consistent with the doc string. Reported by NAKAJIMA Mikio
2331 <minakaji@osaka.email.ne.jp>.
2332
af4bb4c8
KH
23332000-12-16 Kenichi Handa <handa@etl.go.jp>
2334
2335 * xfaces.c (Vface_ignored_fonts): New variable.
2336 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
2337 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
2338
8062e53a
GM
23392000-12-15 Gerd Moellmann <gerd@gnu.org>
2340
e87b8809
GM
2341 * dispnew.c (update_window): Detect pending input every nth line
2342 updated, i.e. do it depending on real work done, and not on the
2343 vpos of the line.
2344
2345 * xterm.c (expose_window): Don't redraw the window that's
2346 currently being updated.
2347
a6768cc5
GM
2348 * window.c (Fset_window_point): Remove test for
2349 cursor_in_non_selected_windows.
2350
4ea7fdca
GM
2351 * lread.c (read1): Recognize end of file after `\\'.
2352
8062e53a
GM
2353 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
2354 not unwind_create_frame.
2355
bb7959c1
GM
23562000-12-15 Dave Love <fx@gnu.org>
2357
2358 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
2359 bcopy & al.
2360
2361 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
2362
ced04c42
KH
23632000-12-15 Kenichi Handa <handa@etl.go.jp>
2364
c5443913
KH
2365 * coding.c (setup_coding_system): Clear all members of the struct
2366 coding_system at first.
bc137305
KH
2367 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
2368 argument.
2369 (code_convert_region): Don't override coding->src_multibyte and
2370 coding->dst_multibyte.
c5443913 2371
ced04c42
KH
2372 * fns.c (Fmd5): Docstring improved.
2373
c2d7f289
MB
23742000-12-15 Miles Bader <miles@gnu.org>
2375
2376 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
2377 are actually marked as mode-lines; otherwise use
2378 estimate_mode_line_height.
2379
9d7d9263
GM
23802000-12-14 Gerd Moellmann <gerd@gnu.org>
2381
2382 * editfns.c (Fformat): Prevent a buffer overrun when the format
2383 specifies a precision.
2384
7cf0153a
EZ
23852000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
2386
2387 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
2388 argument is outside the range [2..3].
2389
1de0f662
AI
23902000-12-14 Andrew Innes <andrewi@gnu.org>
2391
2392 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
2393 nothing to do. Bind inhibit-quit.
2394 (tip_frame): Make it a Lisp_Object.
2395 (x_create_tip_frame): Set tip_frame after it has been added to
2396 Vframe_list.
2397 (Fx_show_tip): Don't set tip_frame here.
2398 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New
2399 variables.
2400 (unwind_create_frame, unwind_create_tip_frame): New functions.
2401 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
2402 while a frame is only partially constructed.
2403
2404 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
2405 (x_free_frame_resources): New function.
2406 (x_destroy_window): Use it.
2407
02387dcc
GM
24082000-12-14 Gerd Moellmann <gerd@gnu.org>
2409
2410 * xfns.c (Fx_backspace_delete_keys_p): New function.
2411 (syms_of_xfns): Defsubr it.
2412
2413 * config.in (HAVE_XKBGETKEYBOARD): Add.
2414
0544ef49
KH
24152000-12-14 Kenichi Handa <handa@etl.go.jp>
2416
98d62747
KH
2417 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
2418 Always store string in multibyte representation in echobuf.
2419 (echo_char): Always store string in multibyte representation in
2420 echobuf.
2421 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
2422 (read_key_sequence): Adjusted for the change of echo_prompt.
2423
a20193cd
KH
2424 * fns.c (Fmd5): Docstring improved.
2425
191b83b6
KH
2426 * lisp.h (detect_coding_system): Prototype adjusted.
2427
0544ef49
KH
2428 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
2429 (detect_coding_emacs_mule, detect_coding_iso2022,)
2430 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
2431 (detect_coding_utf_16, detect_coding_ccl): Make them static. New
2432 argument MULTIBYTEP. Callers changed.
2433 (detect_coding_mask, detect_coding_system): New argument
2434 MULTIBYTEP. Callers changed.
1da1bb05
KH
2435 (decode_coding_string): Set coding->src_multibyte and
2436 coding->dst_multibyte before calling detect_coding and detect_eol.
2437 Update them after some coding system is detected.
2438
d5b3eb1b
SM
24392000-12-13 Stefan Monnier <monnier@cs.yale.edu>
2440
2441 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
2442
2443 * keyboard.c (menu_bar_items, tool_bar_items):
2444 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
2445
f7f8bb69
GM
24462000-12-13 Gerd Moellmann <gerd@gnu.org>
2447
19f71add
GM
2448 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
2449 New variables.
2450 (unwind_create_frame, unwind_create_tip_frame): New functions.
2451 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
2452 while a frame is only partially constructed.
2453
2454 * xterm.h (x_free_frame_resources): Declare.
2455
2456 * xterm.c (x_free_frame_resources): New function.
2457 (x_destroy_window): Use it.
2458
e10da507
GM
2459 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
2460 don't interrupt the update for pending input initially, i.e.
2461 update at least some lines.
2462
2463 * keyboard.c (do_mouse_tracking): Make externally visible.
2464
d5b3eb1b 2465 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
f7f8bb69
GM
2466
2467 * xfns.c (gray_bitmap_bits): Declare `char *'.
2468
90aa2856
GM
24692000-12-12 Gerd Moellmann <gerd@gnu.org>
2470
2471 * xdisp.c (display_tool_bar_line): Make sure that tool bar
2472 lines start with a relief line.
2473
a308c9cd
DL
24742000-12-12 Dave Love <fx@gnu.org>
2475
2476 * window.c (Fdisplay_buffer): Doc fix.
2477 (Fwindow_list): Remove unused var.
2478
2479 * buffer.h (mmap_set_vars): Declare.
2480
2481 * window.h (Fset_window_point): Declare.
2482
d575011f
EZ
24832000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
2484
bf6282d2 2485 * msdos.c (fast_find_position): Don't overstep the last window row.
d575011f
EZ
2486 (IT_note_mouse_highlight): Initialize portion to -1. Remove
2487 unused variable `area'. When looking for a row under (X,Y), give
2488 up if some of the previous rows is not enabled.
2489
ecf4d726
GM
24902000-12-12 Gerd Moellmann <gerd@gnu.org>
2491
2ebf6139
GM
2492 * window.c (Fset_window_point): If displaying cursors in windows
2493 other than the selected window, make sure redisplay updates
2494 other windows to show the new value of point in the window.
2495
2496 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
2497
bfdb75ee
GM
2498 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
2499 the buffer is the sole visible buffer when in the mini-buffer.
2500
4fdbd809
GM
2501 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
2502 Bind `inhibit-read-only' to t.
2503 (unwind_with_echo_area_buffer): Use AREF.
2504
c0006262
GM
2505 * xfns.c (Fx_hide_tip): Simplified.
2506
e9a59cad
GM
2507 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use
2508 GC_MAKE_GCPROS_NOOPS instead of `1'.
2509
ecf4d726
GM
2510 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
2511
e5959a9a
GM
25122000-12-11 Gerd Moellmann <gerd@gnu.org>
2513
a3642e49
GM
2514 * xfns.c (Fx_hide_tip): Fix last change.
2515
44b5a125
GM
2516 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
2517 nothing to do. Bind inhibit-quit.
2518 (tip_frame): Make it a Lisp_Object.
2519 (x_create_tip_frame): Set tip_frame after it has been added to
2520 Vframe_list.
2521 (Fx_show_tip): Don't set tip_frame here.
2522
2523 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
2524
2525 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
2526 Lisp_Object.
2527
2528 * dispextern.h: Change external declaration of tip_frame.
2529
d990421f
GM
2530 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
2531 return an empty string.
2532
4db87380
GM
2533 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
2534 of the window's update_mode_line flag, since the former is set by
2535 force-mode-line-update, not the latter. This makes
2536 column-number-mode slightly faster.
2537
e5959a9a
GM
2538 * xdisp.c (try_window_id) <all changes above window start>:
2539 Set the cursor.
2540
169fe44e
GM
25412000-12-11 Paul Eggert <eggert@twinsun.com>
2542
2543 * config.in (HAVE_FTELLO): Remove.
2544 (HAVE_FSEEKO): Add.
2545 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
2546 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
2547 HAVE_FTELLO.
2548 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
2549 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
2550
59ec59ae
MB
25512000-12-11 Miles Bader <miles@gnu.org>
2552
2553 * window.c (displayed_window_lines): Don't round up when
2554 converting empty space at bottom to lines.
ff904dd6
MB
2555 Handle non-newline-terminated final lines properly.
2556 (Fwindow_text_height): New function (used to be in lisp).
2557 (syms_of_window): Initialize it.
59ec59ae 2558
42ebfa31
SM
25592000-12-09 Stefan Monnier <monnier@cs.yale.edu>
2560
2561 * syntax.c (scan_lists): Check that the right quote char has the
2562 right Sstring syntax when jumping over strings.
2563 (init_syntax_once): Use Smax rather than 13.
2564
5cdb3cf3
MB
25652000-12-09 Miles Bader <miles@gnu.org>
2566
2567 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
2568 with PARTIALLY, inverting the sense.
2569 (window_scroll_pixel_based): Scroll partially visible lines into
2570 place if we hit the beginning or end of the buffer.
a12167c5
MB
2571 (displayed_window_lines): Don't include partially visible lines.
2572 (Fmove_to_window_line): Skip past any partially visible first line.
5cdb3cf3 2573
842b2a94
GM
25742000-12-08 Gerd Moellmann <gerd@gnu.org>
2575
2576 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
2577
2578 * tparam.c (tparam1): Change the way buffers are reallocated to be
2579 portable and less obfuscated.
2580
2581 * termcap.c (tgetent): Change the way buffers are reallocated to
2582 be portable and less obfuscated.
2583
2584 * macros.c (store_kbd_macro_char): Change the way buffers are
2585 reallocated to be portable and less obfuscated.
2586
2587 * lread.c (read1): Change the way buffers are reallocated to be
2588 portable and less obfuscated.
2589
2590 * doc.c (Fsubstitute_command_keys): Change the way buffers
2591 are reallocated so that it is portable.
2592
137cad7c
EZ
25932000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
2594
2595 * dosfns.c (Ffile_system_info): New function.
2596 (syms_of_dosfns): Defsubr it.
2597
5c7f629c
SM
25982000-12-07 Stefan Monnier <monnier@cs.yale.edu>
2599
2600 * alloc.c (gc_sweep): Add comment.
2601
959e647d
GM
26022000-12-07 Gerd Moellmann <gerd@gnu.org>
2603
28fcb7dc
GM
2604 * sound.c (vox_configure): Change order of ioctls. Don't
2605 set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
2606 Ignore errors when changing volume.
2607 (vox_close): Don't reset the device.
2608
926b7e5e
GM
2609 * process.c (read_process_output): Make sure the process marker's
2610 position is valid when the process buffer is changed in
2611 after-change functions. W3 does that.
2612
959e647d
GM
2613 * xfns.c (x_free_gcs): New function.
2614
2615 * xterm.h (x_free_gcs): Add prototype.
2616
2617 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
2618 freeing GCs here.
2619
2620 * xterm.c (x_destroy_window): Call x_free_gcs so that
2621 resources of non-toolkit X windows will be freed.
2622
478ea067
AI
26232000-12-07 Andrew Innes <andrewi@gnu.org>
2624
2625 * w32fns.c (xlfd_charset_of_font): Fix last change.
2626
fbee3231
DL
26272000-12-06 Dave Love <fx@gnu.org>
2628
67292061
DL
2629 * md5.h (__P): Don't define -- it comes from config.h.
2630
fbee3231
DL
2631 * strftime.c: Change some #if foo to #ifdef foo.
2632
4ee87dbb
AI
26332000-12-06 Andrew Innes <andrewi@gnu.org>
2634
2635 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
2636
2637 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname
2638 argument.
2639 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
2640 (w32_list_fonts): Don't choke if pattern doesn't specify a
2641 codepage.
2642
9765b4a4
GM
26432000-12-06 Gerd Moellmann <gerd@gnu.org>
2644
d285b373
GM
2645 * alloc.c (gc_sweep): Prevent symbols read during loadup
2646 from being freed.
2647
384333ee
GM
2648 * xdisp.c (underlying_face_id): New function.
2649 (handle_face_prop, face_before_or_after_it_pos): Use it
2650 to determine the face ``under'' a string. Let strings inherit
2651 the face of the buffer under them.
2652
2653 * xfaces.c (face_at_string_position): Update function comment.
2654
d4b72d58
GM
2655 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
2656 matrix if the window's left position has changed; we need to
2657 redraw it in this case.
2658
2659 * dispextern.h (struct glyph_matrix): Add member window_left_x.
2660
e1d05387
GM
2661 * window.c (coordinates_in_window): Check mouse on mode-line or
2662 header-line first.
2663
eb1b0c74
GM
2664 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
2665 advertized by the function documentation.
2666
d94d636f
GM
2667 * window.c (syms_of_window): Doc fix.
2668
3887b449
GM
2669 * sound.c (vox_configure): Set volume for left and right channel.
2670 (sound_cleanup): Return nil.
2671
efc8f57a
GM
2672 * xdisp.c (move_it_by_lines): Fix paren typo.
2673
9765b4a4
GM
2674 * xterm.c (x_load_font): Don't use the font's max_bounds for
2675 computing the height of the font. If max_bounds' ascent or
2676 descent are greater than the font's ascent or descent, this means
2677 glyphs overlap, which should be handled now by redisplay.
2678
6529ed87
GM
2679 * window.c (Veven_window_heights): New variable.
2680 (syms_of_window): DEFVAR_LISP it.
2681 (Fdisplay_buffer): Check Veven_window_heights before evening the
2682 window heights.
2683
0eb2ecde
MB
26842000-12-06 Miles Bader <miles@gnu.org>
2685
2686 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
2687 update `default-frame-alist' instead of setting no frame parameters.
2688
03d7a167
KH
26892000-12-06 Kenichi Handa <handa@etl.go.jp>
2690
2691 * composite.c (update_compositions): Fix typo (use the correct
2692 variable).
2693
5f8803c2
JR
26942000-12-05 Jason Rumney <jasonr@gnu.org>
2695
2696 * md5.h: Remove underscores from function declarations.
2697 (__attribute__, __alignof__) [!__GNUC__]: Define.
2698
2699 * md5.c: Delay include of md5.h until after namespace cleaning.
2700
c28a075b
JR
2701 * makefile.w32-in (fns.o): Depend on md5.h
2702 (md5.o): New target.
2703 (sunfns.o): Remove.
2704
2705 * makefile.nt: Likewise.
2706
ff3c7056
JR
27072000-12-05 Jason Rumney <jasonr@altavista.net>
2708
2709 * w32term.c (expose_area): Complete last change.
2710
0c21eeeb
KR
27112000-12-05 Ken Raeburn <raeburn@gnu.org>
2712
2713 * minibuf.c: Include intervals.h.
2714
f201d732
JR
27152000-12-05 Jason Rumney <jasonr@gnu.org>
2716
2717 * w32term.c (x_produce_glyphs): If a font for a component of
2718 a composition is not found, use 1 pixel dot ascent and 0 dot
2719 descent value to avoid displaying terribly tall empty boxes.
2720 (expose_area): Pass x-coordinate relative to the exposed
2721 area to x_draw_glyphs instead of a window-relative coordinate.
2722
21999ab9
GM
27232000-12-05 Gerd Moellmann <gerd@gnu.org>
2724
4d2036e4
GM
2725 * xdisp.c (next_element_from_ellipsis): Save face before selective
2726 display in saved_face_id, and set face_before_selective_p.
2727 (reseat_1): Reset face_before_selective_p.
2728 (append_space, extend_face_to_end_of_line): If iterator's
2729 face_before_selective_p is set, use the face from saved_face_id.
2730 (extend_face_to_end_of_line): For tty frames, make sure to
2731 use the right face id when producing spaces at the end of
2732 the line.
2733
2734 * dispextern.h (struct it): Add face_before_selective_p.
2735
52be17cc
GM
2736 * keyboard.c (record_char): Don't record identical help-echo
2737 events in recent_keys.
2738
8a4f36cc
GM
2739 * xterm.c [USE_X_TOOLKIT]: Close the display.
2740 (xim_close_dpy): Handle case that the display has been closed.
2741
57d6e381
GM
2742 * xterm.c (x_destroy_window): Reset the frame's X window after
2743 destroying it.
2744
21999ab9
GM
2745 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
2746 variable window_width.
2747 (line_draw_cost): Fix code skipping over spaces at the end of the
2748 line when must_write_spaces is not set.
2749 (scrolling_window): Fix code inserting runs in list of all runs.
2750
91372bb7
KH
27512000-12-05 Kenichi Handa <handa@etl.go.jp>
2752
2753 * coding.c (setup_coding_system): Be sure to initialize
2754 coding->category_idx.
2755
6c083b4c
GM
27562000-12-04 Gerd Moellmann <gerd@gnu.org>
2757
0c68ce6f
GM
2758 * xterm.c (PER_CHAR_METRIC): Removed because not used.
2759
6452929e
GM
2760 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
2761 area to x_draw_glyphs instead of a window-relative coordinate.
2762
d7f31e22
GM
2763 * fileio.c (auto_save_error): Add parameter ERROR. Show the
2764 error in the message.
2765
ae18aa3b
GM
2766 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
2767 timer after having read a key. It's not good for code reading
2768 several keys in a loop, like an input method.
2769
caa15ef7
GM
2770 * fileio.c (Finsert_file_contents): When VISIT is t, don't
2771 record undo information for format-decode.
2772
2773 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
2774 current buffer is read-only, not if it isn't.
2775
6c083b4c
GM
2776 * keyboard.c (record_char): Record `help-echo' input events
2777 in recent_keys only if they display some help. Don't record
2778 `help-echo' events as macro char.
2779
caa15ef7
GM
27802000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2781
2782 * editfns.c (save_excursion_restore): Don't move point
2783 in another window if it is showing the wrong buffer.
2784 Avoid the call to Fwindow_live_p, for speed.
2785
5a13529b
KH
27862000-12-04 Kenichi Handa <handa@etl.go.jp>
2787
e225faa7
KH
2788 * xfaces.c (struct font_name): New member registry_priority.
2789 (split_font_name): Initialize the above member to zero.
2790 (concat_font_list): New function.
2791 (font_list): Include fonts of all alternative registries.
2792 (FONT_POINT_SIZE_QUANTUM): New macro.
2793 (better_font_p): Ignore point size difference less than
2794 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
2795
e89648b4
KH
2796 * xterm.c (x_produce_glyphs): If a font for a component of
2797 a composition is not found, use 1 pixel dot ascent and 0 dot
2798 descent value to avoid displaying terribly tall empty boxes.
2799
5a13529b
KH
2800 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
2801
d7935eb6
KR
28022000-12-03 Ken Raeburn <raeburn@gnu.org>
2803
2804 * coding.h (code_convert_string1): Declare.
2805
2806 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
2807
2808 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name):
2809 Declare.
2810
0dd5e255
JR
28112000-12-02 Jason Rumney <jasonr@gnu.org>
2812
2813 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
2814 correctly for single byte character case.
2815 (w32_per_char_metric): Do not try to make any assumptions about
2816 the metrics of BDF fonts.
250cfece
JR
2817 (x_estimate_mode_line_height): If `mode-line' face
2818 hasn't a font, use that of the frame, as drawing glyphs
2819 does.
2820 (note_mouse_highlight): Change the cursor shape on the vertical
2821 border between windows [not enabled].
2822
2823 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
2824
2825 * w32fns.c (Fx_create_frame): Reintroduce the call to
2826 face-set-after-frame-defaults.
2827 (Vx_window_horizontal_drag_shape): New variable.
2828 (syms_of_xfns): DEFVAR_LISP it.
2829 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
2830 enabled].
0dd5e255 2831
b5d8d2ca
GM
28322000-12-02 Simon Josefsson <simon@josefsson.org>
2833
2834 * fns.c (Fmd5): Use a different logic to decide the coding system
2835 to use.
2836
2837 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
2838
fbb87147
EZ
28392000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
2840
2841 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is
2842 NULL.
2843
447e9da0
GM
28442000-12-01 Gerd Moellmann <gerd@gnu.org>
2845
7708ced0
GM
2846 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
2847 height for YNegative.
2848 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
2849 height; also see comment there.
2850
447e9da0
GM
2851 * window.c (coordinates_in_window): Handle computations for
2852 positions on the vertical bar and fringes differently for
2853 window-system frames. Consider some pixels near the vertical bar
2854 as on the bar if the frame doesn't have vertical scroll bars.
2855 Associate positions between mode or header lines with the
2856 right window, the left one.
2857
86d1db20
JR
28582000-12-01 Jason Rumney <jasonr@gnu.org>
2859
2860 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
2861
2862 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
2863 invalid frame.
2864
a1d58e5b
GM
28652000-12-01 Gerd Moellmann <gerd@gnu.org>
2866
2867 * window.c (struct saved_window): Add members orig_top and
2868 orig_height.
2869 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
2870 (save_window_save, Fset_window_configuration): Save/restore
2871 window's orig_top and orig_height.
2872
89c609af
JR
28732000-12-01 Jason Rumney <jasonr@gnu.org>
2874
4d177746 2875 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
86d1db20 2876
89c609af
JR
2877 * w32fns.c (x_set_cursor_color): Fix last change.
2878
eccc05db
GM
28792000-11-30 Gerd Moellmann <gerd@gnu.org>
2880
31b6671b
GM
2881 * xdisp.c (echo_area_display): If cursor is in the echo area, make
2882 sure that the next redisplay displays the minibuffer, so that
2883 the cursor will be replaced with what the minibuffer wants.
2884
eccc05db
GM
2885 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
2886 #ifndef instead of using #if.
2887 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
2888 USE_TOOLKIT_SCROLL_BARS is defined.
2889
162de750
JR
28902000-11-30 Jason Rumney <jasonr@gnu.org>
2891
2892 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
2893 x_display_cursor.
2894
693c4692
GM
28952000-11-30 Gerd Moellmann <gerd@gnu.org>
2896
2897 * fns.c (Fmd5): Doc fix.
2898
b5d8d2ca 28992000-11-30 Simon Josefsson <simon@josefsson.org>
edfb795e
GM
2900
2901 * fns.c (Fmd5): New function.
2902 (syms_of_fns): Defsubr md5.
2903
2904 * Makefile.in (obj): Add md5.o
2905
b02cd40b
GM
29062000-11-30 Gerd Moellmann <gerd@gnu.org>
2907
edfb795e
GM
2908 * md5.h, md5.c: New files, taken from glibc.
2909
df3aedcf
GM
2910 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
2911
b02cd40b
GM
2912 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
2913 hasn't a font, use that of the frame, as drawing glyphs
2914 does.
2915
8b5176cd
SM
29162000-11-29 Stefan Monnier <monnier@cs.yale.edu>
2917
2918 * eval.c (Frun_hooks): Allow 0 arguments.
2919
346598f1
GM
29202000-11-29 Gerd Moellmann <gerd@gnu.org>
2921
f9396e03
GM
2922 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
2923 is over the menu bar widget, say it's not on the frame.
2924
4a967a9b
GM
2925 * xfns.c (Fx_create_frame): Reintroduce the call to
2926 face-set-after-frame-defaults.
2927
346598f1
GM
2928 * eval.c (Fsignal): Reset handling_signal.
2929
222456a1
JR
29302000-11-28 Jason Rumney <jasonr@gnu.org>
2931
2932 * w32menu.c (add_menu_item): Reset menu item text when changing
2933 type to radio button.
2934
8049ddc0
GM
29352000-11-28 Gerd Moellmann <gerd@gnu.org>
2936
346598f1 2937 * xselect.c: Update copyright.
f4f4ee4d 2938
bebe4a2c
GM
2939 * window.c (coordinates_in_window): If on a mode or header line,
2940 but sufficiently close to its start, return ``on vertical
2941 border''. This gives us a way to drag windows horizontally when
2942 using toolkit scroll bars.
2943
2944 * xterm.c (note_mouse_highlight): Change the cursor shape
2945 on the vertical border between windows.
2946
2947 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
2948
2949 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
2950 (syms_of_xfns): DEFVAR_LISP it.
2951 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
2952
8d2c2642
GM
2953 * textprop.c (text_read_only): New function.
2954 (verify_interval_modification): Use it instead of signaling
2955 `text-read-only'. This makes it easier to catch this error
2956 with a breakpoint.:
2957
8049ddc0
GM
2958 * xdisp.c (forward_to_next_line_start): Check for newlines,
2959 not end of line, which includes CR.
2960
5a2bae6c
KH
29612000-11-28 Kenichi Handa <handa@etl.go.jp>
2962
2963 * coding.c (Ffind_coding_systems_region_internal): Be sure to
2964 include no-conversion.
2965
ae31f84d
JR
29662000-11-27 Jason Rumney <jasonr@gnu.org>
2967
2968 * w32fns.c (w32_load_system_font): Always mark font as double byte
2969 if codepage is unicode.
2970
67f1cf4c
GM
29712000-11-27 Gerd Moellmann <gerd@gnu.org>
2972
4a74d071
GM
2973 * xdisp.c (forward_to_next_line_start): If already on a newline,
2974 just consume it to avoid unintended skipping over invisible text
2975 below.
2976
902ae620
GM
2977 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
2978 `vertical-line', `mode-line' and `header-line' events.
2979
2980 * xdisp.c (try_window_id): Avoid starting to display in the middle
67f1cf4c
GM
2981 of a character, a TAB for instance. This is easier than to set
2982 up the iterator exactly, and it's not a frequent case, so the
2983 additional effort wouldn't really pay off.
2984
c1e279c2
AC
29852000-11-26 Andrew Choi <akochoi@i-cable.com>
2986
67f1cf4c 2987 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
c1e279c2
AC
2988 init_window_once.
2989
a609568a
JR
29902000-11-25 Jason Rumney <jasonr@gnu.org>
2991
48b21762
JR
2992 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]: Args
2993 to window_from_coordinates should be pixel coordinates.
2994
a609568a
JR
2995 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
2996 redisplay handles them properly.
2997
a658d039
MB
29982000-11-25 Miles Bader <miles@gnu.org>
2999
3000 * indent.c (compute_motion): Keep pos_byte in sync with pos.
3001
d3416cca
JR
30022000-11-24 Jason Rumney <jasonr@gnu.org>
3003
3004 * w32.c (init_environment): Set LANG environment variable based on
3005 locale settings, if not set.
3006
3007 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
3008 making tool bar smaller. When clearing the frame, also
3009 clear current matrices. Clear frame when tool bar disappears.
3010 Don't use more lines for the tool-bar than is available.
3011 (x_change_window_heights): New function.
3012
ba193890
GM
30132000-11-24 Gerd Moellmann <gerd@gnu.org>
3014
2be8f184
GM
3015 * xdisp.c (init_from_display_pos): If POS says we're already after
3016 an overlay string ending at POS, make sure to pop the iterator
3017 because it will be in front of that overlay string. When POS is
3018 ZV, we've thereby also ``processed'' overlay strings at ZV.
3019
ba193890
GM
3020 * xfaces.c (lface_from_face_name): Function comment fix.
3021
1862a24e
MB
30222000-11-24 Miles Bader <miles@gnu.org>
3023
3024 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
3025 apply `mode-line-inverse-video' -- zero means force display using
3026 the default face, non-zero means display using the specialized face.
3027 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
3028
f07fa1b8
KH
30292000-11-23 Kenichi Handa <handa@etl.go.jp>
3030
3031 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
3032 hard coded `4'.
3033
2bcdf662
EZ
30342000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
3035
3036 * coding.c (decode_coding_emacs_mule): Fix the case of
3037 CODING_EOL_LF, which used uninitialized value of c.
3038
ba8299ff
SM
30392000-11-23 Stefan Monnier <monnier@cs.yale.edu>
3040
3041 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
3042
f4117c4d
GM
30432000-11-22 Gerd Moellmann <gerd@gnu.org>
3044
03e757c1
GM
3045 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
3046 buffer object.
3047
f4117c4d
GM
3048 * frame.h (struct frame): Replace desired_tool_bar_items,
3049 current_tool_bar_items, n_desired_tool_bar_items,
cc362d76 3050 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
f4117c4d
GM
3051
3052 * frame.c (make_frame): Change initialization of tool bar
3053 items accordingly.
3054
3055 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
cc362d76 3056 Change references to members deleted from struct frame to use the
f4117c4d
GM
3057 new ones.
3058
3059 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
cc362d76 3060 references to members deleted from struct frame to use the new
f4117c4d
GM
3061 ones.
3062
3063 * dispnew.c (update_frame): Do nothing with frame's tool bar
3064 items.
3065
3066 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
3067
3068 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
cc362d76 3069 (note_tool_bar_highlight): Change references to members deleted
f4117c4d
GM
3070 from struct frame to use the new ones.
3071
f8e2f3f2
MB
30722000-11-23 Miles Bader <miles@gnu.org>
3073
3074 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
3075 the face's inverse-video attribute, rather than overriding it.
3076
60e8e0a5
GM
30772000-11-22 Gerd Moellmann <gerd@gnu.org>
3078
3079 * xfns.c (x_set_tool_bar_lines): Clear internal border when
3080 making tool bar smaller.
3081
92dd1b29
DL
30822000-11-22 Dave Love <fx@gnu.org>
3083
3084 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
3085
e672fdce
MB
30862000-11-22 Miles Bader <miles@gnu.org>
3087
3a17d6cc
MB
3088 * keyboard.c (Vminibuffer_message_timeout): New variable.
3089 (command_loop_1): Use it to determine message timeout.
3090 (syms_of_keyboard): Initialize it.
3091
60e8e0a5 3092 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
e672fdce 3093
e9655d81
KH
30942000-11-22 Kenichi Handa <handa@etl.go.jp>
3095
3096 * sysdep.c: Move the code for declaring h_errno after #include
3097 <netdb.h>.
3098
77270fac
GM
30992000-11-21 Gerd Moellmann <gerd@gnu.org>
3100
cd913aae
GM
3101 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
3102 the menu bar when the tooltip is unmapped.
3103
77270fac
GM
3104 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
3105 sole visible buffer when we're currently in the mini-buffer, and
3106 give up if so.
3107
556635d6
JR
31082000-11-21 Jason Rumney <jasonr@gnu.org>
3109
3110 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
3111 put on the clipboard.
3112 (Fw32_get_clipboard_data): Compare data on clipboard with saved
3113 copy of what Emacs last put there. If they are the same, do not
3114 use the clipboard copy to avoid losing data due to coding
3115 conversions.
3116
5b7bde64
MB
31172000-11-22 Miles Bader <miles@gnu.org>
3118
3119 * minibuf.c (Vminibuffer_prompt_properties): New variable.
3120 (syms_of_minibuf): Initialize it.
3121 (read_minibuf): Add properties from Vminibuffer_prompt_properties
3122 to prompt, don't make read-only.
3123
ff23e1dd
GM
31242000-11-21 Gerd Moellmann <gerd@gnu.org>
3125
3c64f287
GM
3126 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>: Add
3127 BEFORE/AFTER_POTENTIAL_GC.
3128
7aaf4388
GM
3129 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
3130
f5f47add 3131 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 3132
ff23e1dd
GM
3133 * term.c, cm.c: Don't try to include termcap.h; see comment there.
3134
37c35586
KH
31352000-11-21 Kenichi Handa <handa@etl.go.jp>
3136
3137 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
3138 ... #endif scope.
3139
ff9ab414
GM
31402000-11-20 Gerd Moellmann <gerd@gnu.org>
3141
c51d2b5e
GM
3142 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
3143 screen supports it.
3144
29a01b72
GM
3145 * s/gnu-linux.h: Don't use `#cpu'.
3146
09dfdf85
GM
3147 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
3148 not defined in mman.h.
3149
ff9ab414
GM
3150 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New
3151 variables.
3152 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
3153 and store an index in the XClientMessageEvent. Storing a
3154 Lisp_Object or pointer can fail on a 64 bit system, since X only
3155 transfers 32 bits.
3156 (x_scroll_bar_to_input_event): Get the window from
3157 scroll_bar_windows.
3158
81459ac9
DL
31592000-11-20 Dave Love <fx@gnu.org>
3160
3161 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
3162
56c13ae6
GM
31632000-11-20 Gerd Moellmann <gerd@gnu.org>
3164
3165 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
3166
495a6df3
KH
31672000-11-20 Kenichi Handa <handa@etl.go.jp>
3168
2bcf3714
KH
3169 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
3170 by WIDTH.
3171
495a6df3
KH
3172 * alloc.c (make_string): Fix previous change. Be sure to make
3173 unibyte string correctly.
3174
6d950f4c
GM
31752000-11-19 Gerd Moellmann <gerd@gnu.org>
3176
39b39373
GM
3177 * window.c (Fwindow_list): Change parameter list to be XEmacs
3178 compatible.
3179 (window_list_1): New function.
3180 (window_loop): Use it instead of Fwindow_list.
3181
b95b34e5
GM
3182 * sysdep.c (emacs_ospeed): New variable.
3183 (toplevel): Don't declare ospeed extern.
3184 (init_baud_rate): Use emacs_ospeed instead of ospeed.
3185
3186 * termcap.c (ospeed): Remove.
3187 (tputs) [!emacs]: Remove unused code.
3188 (tgetent): Avoid a compiler warning.
3189
e83dc917
GM
3190 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
3191 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 3192 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
3193
3194 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
3195 removed.
3196 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
3197 Take the X display as additional argument.
3198 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
3199 `Widget' is a pointer type that's not easily stored in Lisp_Object
3200 form in a portable way.
3201
6d950f4c
GM
3202 * dispnew.c (update_text_area): Fix last change.
3203
e47306e6
GM
32042000-11-18 Gerd Moellmann <gerd@gnu.org>
3205
fb3cd89b
GM
3206 * xdisp.c: Use BINDING_STACK_SIZE throughout.
3207
3208 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
3209 clear current matrices.
3210
edaa9aed
GM
3211 * buffer.c (mmap_enlarge): Don't print a message on stderr
3212 if mapping new memory at the end of the existing region fails.
3213
e47306e6
GM
3214 * dispnew.c (update_text_area): Don't skip over equal glyphs
3215 when the last current glyph overlaps the glyph to its right.
3216
509633e3
MB
32172000-11-18 Miles Bader <miles@gnu.org>
3218
3219 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
3220 lines that *end* with "..." too (that's the most common case!).
3221
d392e9c5
GM
32222000-11-18 Gerd Moellmann <gerd@gnu.org>
3223
67988445
GM
3224 * xdisp.c (resize_mini_window): Temporarily change to the
3225 mini-window's buffer if necessary.
1bfdbe43 3226
d392e9c5
GM
3227 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
3228 the tooltip obscures less text under it.
3229
32302000-11-17 Gerd Moellmann <gerd@gnu.org>
3231
3232 * puresize.h (BASE_PURESIZE): Increase to 700000.
3233
92bb977f
JR
32342000-11-18 Jason Rumney <jasonr@gnu.org>
3235
3236 * w32term.c (w32_draw_bitmap): Use face to set colors.
3237
26fbf20b
DL
32382000-11-17 Dave Love <fx@gnu.org>
3239
3240 * lread.c (Fload): Fix #ifdef for pcc.
3241
100b593b
GM
32422000-11-17 Gerd Moellmann <gerd@gnu.org>
3243
3244 * xdisp.c (pos_visible_p): Compute the default character height
3245 differently.
3246
a288d0d1
GM
32472000-11-16 Gerd Moellmann <gerd@gnu.org>
3248
cac94de6
GM
3249 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
3250 knowing the line's height; use the default font's height in that
3251 case.
3252
a288d0d1
GM
3253 * xfaces.c (weight_table): Add `demi' with the same meaning as
3254 `demibold'.
3255
981fb6f6
KH
32562000-11-16 Kenichi Handa <handa@etl.go.jp>
3257
2cca872d 3258 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
3259 (clear_glyph_row): Delete local static variable null_row.
3260
e5fa381b
JR
32612000-11-15 Jason Rumney <jasonr@gnu.org>
3262
3263 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
3264 (w32_alloc_lighter_color): Use new brightness calculations from
3265 xterm.c. Scale delta to be in the range expected by W32.
3266 (w32_draw_relief_rect): Use frame relief colors.
3267
8e42f043
GM
32682000-11-15 Gerd Moellmann <gerd@gnu.org>
3269
6d133d1f
GM
3270 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
3271 (Qinhibit_default_face_x_resources): New variable.
3272 (syms_of_frame): Initialize it.
3273 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
3274
3275 * xdisp.c (pos_visible_p): Improve function comment.
3276
3277 * lisp.h (BINDING_STACK_SIZE): New macro.
3278
8e42f043
GM
3279 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
3280 reading the directory if readdir returns null and errno is EAGAIN
3281 or EINTR.
3282
e8c87124
SM
32832000-11-14 Stefan Monnier <monnier@cs.yale.edu>
3284
3285 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
3286 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
3287 Set amount_to_scroll to max of dx and scroll_step so that
3288 scroll-conservatively doesn't defeat scroll-step>1.
3289 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
3290 scroll-conservatively for line-at-a-time scrolling.
3291
5f0c971d
GM
32922000-11-14 Gerd Moellmann <gerd@gnu.org>
3293
3294 * window.c (Fpos_visible_in_window_p): Call pos_visible with
3295 extra argument.
3296
3297 * xdisp.c (current_mode_line_height, current_header_line_height):
3298 New variables.
3299 (init_xdisp): Initialize them.
3300 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
3301 and use exact mode line heights if it is set.
3302
3303 * lisp.h (pos_visible_p): Change prototype.
3304
3305 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
3306 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
3307 and current_header_line_height first.
3308 (current_mode_line_height, current_header_line_height): Declare
3309 extern.
3310
d7361edf
MB
33112000-11-14 Miles Bader <miles@lsi.nec.co.jp>
3312
3313 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
3314 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
3315 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
3316
ee5e440a
MB
33172000-11-14 Miles Bader <miles@gnu.org>
3318
3319 * xterm.c (x_alloc_lighter_color): Include an additive component
3320 too for dark colors, because FACTOR isn't enough.
3321 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
3322 New macros.
3323
5ca020fc
GM
33242000-11-13 Gerd Moellmann <gerd@gnu.org>
3325
3326 * keyboard.c (show_help_echo): Call message3_nolog with number of
3327 bytes in the help string as 2nd parameter, instead of the number
3328 of characters.
3329
9d348294
MB
33302000-11-13 Miles Bader <miles@gnu.org>
3331
3332 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
3333 (Fload): Use new openp return protocol.
3334 Don't try to use Vload_source_file_function to load .elc files.
3335 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
3336 openp return protocol.
3337 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
3338
1729bb9a
KH
33392000-11-11 Kenichi Handa <handa@etl.go.jp>
3340
4e677396
KH
3341 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
3342
3343 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
3344 Defined these macros.
3345 (NLIST_STRUCT): Avoid re-defining it.
3346
1729bb9a
KH
3347 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
3348 -I/usr/contrib/X11R6/include.
3349 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
3350
a82fe213
JR
33512000-11-10 Jason Rumney <jasonr@gnu.org>
3352
3353 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
3354
3355 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
3356 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
3357
3358 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
3359 (Qw32_charset_vietnamese): New symbol.
3360 (xlfd_charset_of_font): New function.
3361 (w32_load_system_font): Use it.
3362 (x_to_w32_charset): Use Fassoc to find charset info. Special case
3363 when Vw32_charset_info_alist is nil to ensure default face always
3364 has font. Use Fcar and Fcdr for safety.
3365 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
3366 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
3367 pseudo-codepages for special cases.
3368 (w32_to_x_font): New parameter to allow charset portion to be
3369 specified where there is many to one mapping. Callers changed.
3370 (w32_list_fonts): Avoid listing fonts that won't display.
3371
52d89894
GM
33722000-11-10 Gerd Moellmann <gerd@gnu.org>
3373
3374 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
3375 (font_list_1): Renamed from font_list.
3376 (font_list): New function, trying alternative registries from
3377 Vface_alternative_font_registry_alist.
3378 (Finternal_set_alternative_font_registry_alist): New function.
3379 (syms_of_xfaces): Initialize and Staticpro
3380 Vface_alternative_font_registry_alist. Defsubr
3381 Finternal_set_alternative_font_registry_alist.
3382
651cd3da
KR
33832000-11-09 Ken Raeburn <raeburn@gnu.org>
3384
3385 * lisp.h (Flooking_at): Declare.
3386
388ac098
GM
33872000-11-09 Gerd Moellmann <gerd@gnu.org>
3388
778fbc46
GM
3389 * dired.c (directory_files_internal): Fix a braino.
3390
388ac098
GM
3391 * dired.c (directory_files_internal): Add missing GCPRO's.
3392 Some cleanup.
3393
ecaedde1
GM
33942000-11-08 Gerd Moellmann <gerd@gnu.org>
3395
f7eb32aa
GM
3396 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
3397 (resize_mini_window): Return quickly if Vresize_mini_window is
3398 nil. Don't return if Vmax_mini_window_height is nil.
3399
3400 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
3401 (syms_of_xdisp): Initialize them.
3402 (resize_mini_window): Act according to the setting of
3403 Vresize_mini_window.
3404 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
3405
ecaedde1
GM
3406 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
3407 scroll bar widget after configuring it, so that it will appear at
3408 the right position from the start.
3409 (XTredeem_scroll_bar): Cleaned up.
3410
3747ef2c
KH
34112000-11-08 Kenichi Handa <handa@etl.go.jp>
3412
3413 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 3414 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
3415 division by two.
3416
3417 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
3418
03391420
DL
34192000-11-07 Dave Love <fx@gnu.org>
3420
7758f1c1 3421 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
3422
3423 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
3424
b5de343d
GM
34252000-11-07 Gerd Moellmann <gerd@gnu.org>
3426
acad3c0b
GM
3427 * window.c (Fset_window_configuration): Don't try to preserve
3428 point in the current buffer, if that buffer is displayed in more
3429 than one window.
3430
b5de343d
GM
3431 * xfaces.c (lookup_named_face): If default face isn't realized,
3432 try to realize it. Return -1 if not successful.
3433 (Fx_list_fonts): Handle case that face cannot be determined.
3434 (Fface_font): Likewise.
3435
cdb1fe49
GM
34362000-11-06 Gerd Moellmann <gerd@gnu.org>
3437
3438 * window.c (displayed_window_lines): Detect partially
3439 visible lines at the bottom correctly.
3440
d3a67486
SM
34412000-11-06 Stefan Monnier <monnier@cs.yale.edu>
3442
3443 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
3444 when ensuring we don't do visit in indirect buffer.
3445
ff8dd5d5
KH
34462000-11-06 Kenichi Handa <handa@etl.go.jp>
3447
3448 * composite.h (compose_chars_in_text): Add prototype.
3449
3450 * composite.c (Vcomposition_function_table): New variable.
3451 (Qcomposition_function_table): New variable.
3452 (run_composition_function): Call
3453 Vcompose_chars_after_function with three arguments.
3454 (compose_chars_in_text): New function.
3455 (syms_of_composite): Modified the doc-string of
3456 Vcompose_chars_after_function. Declare composition-function-table
3457 as a lisp variable, and initialize it.
3458
3459 * xfns.c (x_encode_text): Suppress producing escape sequences for
3460 composition.
3461
3462 * xselect.c: Include composite.h.
3463 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
3464
d1145f85
AI
34652000-11-05 Andrew Innes <andrewi@gnu.org>
3466
3467 * w32term.c (x_produce_glyphs): Fix typo in enum name.
3468
3469 * sysdep.c (read_input_waiting): Remove extraneous argument to
3470 read_socket_hook.
3471
3472 * w32fns.c (Fx_server_version): Include w32_build_number in the
3473 return list.
3474
3475 * w32heap.c (w32_build_number): New variable.
3476 (cache_system_info): Set it.
3477
3478 * w32heap.h (w32_build_number): Add extern.
3479
3480 * emacs.c (syms_of_emacs): Update docstring for
3481 system-configuration, to reflect the actual usage on MS-Windows.
3482
e85ee976
GM
34832000-10-31 Gerd Moellmann <gerd@gnu.org>
3484
26dcb81b
GM
3485 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
3486 process idle timers while waiting for another event.
3487
0a894bad
GM
3488 * dispnew.c (update_frame_line): Handle case where spaces in
3489 the default face are colored.
3490
e85ee976
GM
3491 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
3492 window height hasn't changed.
3493
01b220b6
JR
34942000-10-31 Jason Rumney <jasonr@gnu.org>
3495
3496 * w32term.c (x_produce_glyphs): Handle composite characters.
3497 (x_draw_glyph_string_foreground)
3498 (x_draw_composite_glyph_string_foreground): Restore old font.
3499
4e6b7204
MB
35002000-10-31 Miles Bader <miles@lsi.nec.co.jp>
3501
3502 * minibuf.c (read_minibuf): Reset the undo history just before
3503 starting the recursive-edit.
3504
d4358b37
GM
35052000-10-30 Gerd Moellmann <gerd@gnu.org>
3506
563f68f1
GM
3507 * xfaces.c (menu_face_change_count): New variable.
3508 (Finternal_set_lisp_face_attribute): Increment it for changes
3509 of the `menu' face.
3510 (realize_basic_faces): Reflect changes in the `menu' faces
3511 in menu bars.
3512
82e274d1
GM
3513 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
3514 dy obtained from the iterator's y-position after moving from
3515 scroll_margin_pos to PT; see comment there.
3516
0dbf9fd2
GM
3517 * xdisp.c (safe_eval_handler): Call add_to_log.
3518
906b3b14
GM
3519 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
3520 is not a symbol or string.
3521
d4358b37
GM
3522 * xdisp.c (echo_area_display): Don't perform a display update from
3523 inside redisplay. The update will happen anyway at the end of
3524 redisplay, and it can confuse redisplay (GC messages while
3525 redisplaying, for instance.)
3526
70c825df
SM
35272000-10-30 Stefan Monnier <monnier@cs.yale.edu>
3528
cf9b4b0b
SM
3529 * xrdb.c (x_load_resources): Use the class name in the defaults.
3530
70c825df
SM
3531 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
3532 (regex_compile): Catch bogus \(\1\).
3533
a1d34b1e
GM
35342000-10-30 Gerd Moellmann <gerd@gnu.org>
3535
cae71efe
GM
3536 * xterm.c (x_alloc_nearest_color): Fix last change to compare
3537 RGB values.
3538
35efe0a1
GM
3539 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
3540 we have a color cache, check that the cached color equals the
3541 allocated color. If not, clear the color cache.
3542
1d3baf74
GM
3543 * window.c (displayed_window_lines): Change buffers if necessary.
3544 Fix computation of displayed lines.
3545
a1d34b1e
GM
3546 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
3547 update_menu_bindings to DEFVAR_BOOL.
3548
70737ea9
KH
35492000-10-30 Kenichi Handa <handa@etl.go.jp>
3550
70c825df 3551 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 3552
fa0cb51d
KH
3553 * puresize.h (BASE_PURESIZE): Increase to 680000.
3554
70737ea9
KH
3555 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
3556
0e4c08e8
JR
35572000-10-29 Jason Rumney <jasonr@gnu.org>
3558
3559 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
3560
3561 * w32term.c (w32_bdf_per_char_metric): Negate descent.
3562 (w32_cache_char_metrics): Handle possibility that 'x' does not
3563 exist in a BDF font.
3564 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
3565
3566 * w32bdf.h (bdffont): Add nchars.
3567
3568 * w32bdf.c (set_bdf_font_info): Set it.
3569 (w32_BDF_TextOut): Swap byte order of double byte characters.
3570 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
3571
45b84006
EZ
35722000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
3573
3574 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
3575 don't override the colors in frame's param_alist, unless they are
3576 unspecified.
3577
3578 * term.c (reassert_line_highlight): If inverse_video is non-zero,
3579 reverse the effect of the highlight flag.
3580
caf9deee
KR
35812000-10-27 Ken Raeburn <raeburn@gnu.org>
3582
3583 * window.h (Fwindow_live_p): Declare.
3584
ae0b9b46
KR
3585 * undo.c (record_delete): Check that last_undo_buffer is really a
3586 buffer before applying XBUFFER to it.
3587
3588 * keymap.c (where_is_internal): Pass lisp object, not integer, to
3589 Faref.
3590
02067692
SM
35912000-10-27 Stefan Monnier <monnier@cs.yale.edu>
3592
3593 * lisp.h (KEYMAPP): New macro.
3594 (get_keymap): Remove.
3595 (get_keymap_1): Rename get_keymap.
3596
3597 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
3598
3599 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
3600
3601 * xmenu.c (single_submenu): Use KEYMAPP.
3602 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
3603 Use KEYMAPP rather than Fkeymapp.
3604
3605 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
3606
3607 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
3608 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
3609 Use KEYMAPP rather than Fkeymapp.
3610 (single_submenu): Use KEYMAPP.
3611 (w32_menu_show, w32_dialog_show): Use TRUE.
3612
3613 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
3614
3615 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
3616 (Fkeymapp): Use KEYMAPP.
3617 (get_keymap): Rename from get_keymap_1. Remove old def.
3618 Return t when autoload=0 and error=0 and the keymap needs autoloading.
3619 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
3620 (Fminor_mode_key_binding): Don't raise an error if the binding
3621 is not a keymap.
3622 (Fuse_global_map, Fuse_local_map): Allow autoloading.
3623 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
3624
3625 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
3626 Allow Vspecial_event_map to be autoloaded.
3627 (menu_bar_items): Fetch the keymap rather than using keymapp.
3628 (menu_bar_one_keymap): No need to follow func-indirect any more.
3629 (parse_menu_item): get_keymap_1 -> get_keymap.
3630 (tool_bar_items): Fetch the keymap rather than using keymapp.
3631 (read_key_sequence): Use KEYMAPP.
3632
3633 * intervals.c (get_local_map): Use get_keymap rather than following
3634 function-indirections explicitly.
3635
3636 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
3637
f9d80af3
JR
36382000-10-27 Jason Rumney <jasonr@gnu.org>
3639
3640 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
3641 point, as Windows has oversized fonts.
3642
3643 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
3644
a3ba27da
GM
36452000-10-27 Gerd Moellmann <gerd@gnu.org>
3646
3647 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
3648 (freehook, reallochook): Handle null pointer arguments.
3649 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
3650
aa3b80cc
SM
36512000-10-27 Stefan Monnier <monnier@cs.yale.edu>
3652
3653 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
3654 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
3655 Giving in to popular pressure to shut up the compiler with casts.
3656
e24e84cc
GM
36572000-10-27 Gerd Moellmann <gerd@gnu.org>
3658
3659 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
3660 signed value, and use a default value computed from the font's
3661 maximum descent.
3662
05ea7ef2
MB
36632000-10-27 Miles Bader <miles@lsi.nec.co.jp>
3664
3665 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
3666 that specify a negative underline position can still use underlines.
3667
3668 * window.c (Fpos_visible_in_window_p): Make POS default to
3669 WINDOW's point, not the current buffer's point.
3670
0b95284b
DL
36712000-10-26 Dave Love <fx@gnu.org>
3672
3673 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
3674 when it's necessary.
3675
6c5b90af
GM
36762000-10-26 Gerd Moellmann <gerd@gnu.org>
3677
8b6d9dc9
GM
3678 * window.c (size_window): Compute size difference from sum of old
3679 child window sizes instead of from parent's size.
3680
6bc92b2e
GM
3681 * xdisp.c (pos_visible_p): Change current buffer if necessary.
3682 Handle obscured lines at the top of the window.
3683
3684 * frame.c (Fdelete_frame): Doc fix. Move running the hook
3685 down after the last error condition check.
3686
6c5b90af
GM
3687 * frame.c (Fdelete_frame): Run delete-frame-hook.
3688
42f92d4d
KH
36892000-10-26 Kenichi Handa <handa@etl.go.jp>
3690
3691 * coding.c (decode_coding): Fix previous change (check also
3692 CODING_MODE_LAST_BLOCK).
3693
d97151cb
SM
36942000-10-25 Stefan Monnier <monnier@cs.yale.edu>
3695
e7efc503
SM
3696 * regex.c: More `unsigned char' -> `re_char' changes.
3697 Also change several `int' into `re_wchar_t'.
3698 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
3699 (PUSH_FAILURE_POINTER): Don't cast any more.
3700 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
3701 We want GCC to complain, since this piece of code makes
3702 re_match non-reentrant, which *should* be fixed.
3703 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
3704 (EXTEND_BUFFER): Use RETALLOC.
3705 (SET_LIST_BIT): Don't cast.
3706 (re_wchar_t): New type.
3707 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
3708 that those two functions will always properly return.
3709 (IMMEDIATE_QUIT_CHECK): Cast to void.
3710 (analyse_first): Use recursion rather than an explicit stack.
3711 (re_compile_fastmap): Can't fail anymore.
3712 (re_search_2): Don't check re_compile_fastmap for failure.
3713 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
3714 Now also sets the new value (passed in a new argument).
3715 (re_match_2_internal): Use it.
3716 Also, use a new var `reg' of type size_t when looping through regs
3717 rather than reuse the inappropriate `mcnt'.
3718
d97151cb
SM
3719 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
3720 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
3721 (where_is_internal): Renamed from Fwhere_is_internal.
3722 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
3723 (Fwhere_is_internal): New function wrapping where_is_internal.
3724 (where_is_internal_1): Handle the case where we're filling the cache.
3725 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
3726
d5789b65
MB
37272000-10-25 Miles Bader <miles@gnu.org>
3728
3729 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
3730
4ecda532
GM
37312000-10-25 Gerd Moellmann <gerd@gnu.org>
3732
3733 * window.c (pos_fully_visible_p): Removed.
3734 (Fpos_visible_in_window_p): Use pos_visible_p to determine
3735 if position is visible and/or fully visible.
3736
3737 * lisp.h (pos_visible_p): Add prototype.
3738
3739 * xdisp.c (pos_visible_p): New function.
3740
68c3a137
KH
37412000-10-25 Kenichi Handa <handa@etl.go.jp>
3742
3743 * process.c (send_process): If OBJECT is t, it means that the data
3744 is from C string, but we should encode it. Before calling
3745 setup_raw_text_coding_system, be sure to flush out data by the
3746 previous coding system.
3747
7ae1c032
MB
37482000-10-25 Miles Bader <miles@lsi.nec.co.jp>
3749
ff4dcd4b
MB
3750 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
3751 assignment of startpos to prev when startpos == pos.
3752
7ae1c032
MB
3753 * editfns.c (find_field): Set the field stickiness correctly from
3754 overlay fields. Use renamed `text_property_stickiness'.
3755 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 3756 Only check text properties, not overlays.
7ae1c032
MB
3757 * textprop.c (get_char_property_and_overlay): New function.
3758 (Fget_char_property): Use it.
3759 * intervals.h (get_char_property_and_overlay): Add declaration.
3760
49801145
SM
37612000-10-25 Stefan Monnier <monnier@cs.yale.edu>
3762
3763 * keymap.c: Use AREF, ASET and ASIZE macros.
3764 (Fmake_sparse_keymap): Docstring fix.
3765 (synkey): Remove.
3766 (shadow_lookup): Move up.
3767 Handle the case where lookup-key returns an integer.
3768 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
3769 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
3770 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
3771 Simplify/rewrite the keymap-finding code.
3772 Add check for command shadowing, using shadow_lookup.
3773
39e776cd
SM
37742000-10-24 Stefan Monnier <monnier@cs.yale.edu>
3775
3776 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
3777 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
3778 a symbol.
3779
2488aba5
AI
37802000-10-24 Andrew Innes <andrewi@gnu.org>
3781
3782 * dired.c (directory_files_internal_unwind): New function.
3783 (directory_files_internal): Use it to ensure closedir is called
3784 even if expand-file-name or file-attributes throw, eg. because of
3785 a user interrupt. Also enable immediate_quit while calling
3786 re_search, so that matching can be interrupted as well.
3787
b94fdf61
AI
37882000-10-24 Andrew Innes <andrewi@gnu.org>
3789
3790 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
3791 NT-Emacs only.
3792 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
3793 so that re_search functions only quit when callers expect them to.
3794
37952000-10-24 Kenichi Handa <handa@etl.go.jp>
3796
3797 * regex.c (regex_compile): Change the way of handling a range from
3798 a char less than 256 to a char not less than 256.
3799
1946f901
GM
38002000-10-24 Gerd Moellmann <gerd@gnu.org>
3801
7ae2f10f
GM
3802 * window.c (size_window): Prevent setting window's width or
3803 height to a negative value (esp. with XSETFASTINT).
3804
5dcab13e
GM
3805 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
3806 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
3807 (protect_malloc_state) [GC_MALLOC_CHECK &&
3808 GC_PROTECT_MALLOC_STATE]: New function.
3809 (PROTECT_MALLOC_STATE): New macro.
3810 (__malloc_initialize, morecore, _malloc_internal)
3811 (_free_internal) _realloc_internal): Use it to make _heapinfo
3812 read-only outside of gmalloc.
3813
63e1b552
GM
3814 * keymap.c: Update copyright.
3815
1946f901
GM
3816 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
3817 a symbol.
3818
4fa09beb
GM
38192000-10-24 Colin Walters <walters@cis.ohio-state.edu>
3820
3821 * filelock.c (unlock_all_files): Use unlock_file to expand each
3822 buffer's file_truename before trying remove its lock file.
3823
23afac01
EZ
38242000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
3825
3826 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
3827 or CRLF, decode EOLs.
3828
04448b95
KH
38292000-10-24 Kenichi Handa <handa@etl.go.jp>
3830
3831 * window.c (Fdisplay_buffer): Fix doc.
3832
3090a5a5
JR
38332000-10-23 Jason Rumney <jasonr@gnu.org>
3834
3835 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
3836 ASCII font of default fontset on Windows.
3837
3838 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
3839 xterm.c comment below).
3840
3841 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
3842
a83fee2c
GM
38432000-10-23 Gerd Moellmann <gerd@gnu.org>
3844
3845 * xterm.c (x_connection_closed): Reset handling_signal.
3846
3847 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing
3848 null.
3849
6ffdb539
MB
38502000-10-23 Miles Bader <miles@gnu.org>
3851
3852 * window.c (window_scroll_pixel_based, window_scroll_line_based):
3853 Pass nil for FULLY argument to Fpos_visible_in_window_p to
3854 maintain old behavior.
3855 * minibuf.c (Fminibuffer_complete): Likewise.
3856
7f1c969b
MB
38572000-10-23 Miles Bader <miles@lsi.nec.co.jp>
3858
3859 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
3860 that when a font can't be exactly centered, it errs up rather than
3861 down.
3862
23afac01 38632000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd
SZ
3864
3865 * fns.c (Fbase64_decode_string): The decoded result should be
3866 unibyte.
3867
1a578e9b
AC
38682000-10-23 Andrew Choi <akochoi@i-cable.com>
3869
3870 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
3871
3872 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 3873 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
3874
3875 * emacs.c (main) [macintosh]: Call syms_of_textprop,
3876 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
3877 syms_of_search, x_term_init, and init_keyboard before calling
3878 init_window_once. Also, call syms_of_xmenu.
3879
3880 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
3881 default fontset to Monaco.
3882
3883 * frame.c [macintosh]: Include macterm.h. Remove declarations of
3884 NewMacWindow and DisposeMacWindow.
3885 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
3886 instead of calling NewMacWindow and setting fields of
3887 f->output_data.mac directly. Call init_frame_faces.
3888 (Fdelete_frame) [macintosh]: Remove unused code.
3889 (Fmodify_frame_parameters) [macintosh]: Call
3890 x_set_frame_parameters instead of mac_set_frame_parameters.
3891
3892 * frame.h [macintosh]: Define menu_bar_lines field in struct
3893 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
3894
3895 * keyboard.c [macintosh]: Include macterm.h.
3896 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
3897 and menu_bar_activate_event type events as for X and NT.
3898 (make_lispy_event) [macintosh]: Construct lisp events of type
3899 MENU_BAR_EVENT as for X and NT.
3900
3901 * sysdep.c [macintosh]: Remove declaration for sys_signal.
3902 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
3903 (sys_subshell) [macintosh]: Remove definition entirely.
3904 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
3905 Vwindow_system_version here. Remove initialization of
3906 Vx_bitmap_file_path.
3907 (read_input_waiting): Correct the number of parameters passed to
3908 read_socket_hook.
3909 Move all Macintosh functions to mac/mac.c.
3910
3911 * term.c [macintosh]: Include macterm.h.
3912
3913 * window.c [macintosh]: Include macterm.h.
3914
3915 * xdisp.c [macintosh]: Include macterm.h. Declare
3916 set_frame_menubar and pending_menu_activation.
3917 (echo_area_display) [macintosh]: Do not return if terminal frame
3918 is the selected frame.
3919 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
3920 Allow only the selected frame to set menu bar.
3921 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
3922 calling FRAME_EXTERNAL_MENU_BAR (f).
3923 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
3924
3925 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
3926 and check_x. Declare XCreateGC. Define x_create_gc and
3927 x_free_gc. Initialize font_sort_order.
3928 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
3929 but call x_list_fonts instead of w32_list_fonts.
3930 (Finternal_face_x_get_resource) [macintosh]: Do not call
3931 display_x_get_resource.
3932 (prepare_face_for_display) [macintosh]: Set xgcv.font.
3933 (realize_x_face) [macintosh]: Load the font if it is specified in
3934 ATTRS.
3935 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed
3936 to Qt.
3937
1ffbabe3
SM
39382000-10-22 Stefan Monnier <monnier@cs.yale.edu>
3939
3940 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
3941 is nil: since we go to the end of submap anyway, we'd end up
3942 setting nil to nil.
3943 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
3944 doesn't obey autoload.
3945
bed43f1d
EZ
39462000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
3947
1ffbabe3 3948 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 3949
ea4233a7
JR
39502000-10-21 Jason Rumney <jasonr@gnu.org>
3951
3952 * w32term.c (w32_cache_char_metrics): Double check that font is
3953 really fixed pitch before trusting tmPitchAndFamily.
3954
f3d3c491
AI
39552000-10-21 Andrew Innes <andrewi@gnu.org>
3956
3957 * w32gui.h (w32_char_font_type): Move enum from w32term.c
3958
3959 * w32term.h: Extern decl for w32_cache_char_metrics.
3960
3961 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
3962
3963 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
3964 (w32_unload_font): Free per_char array if present.
3965
3966 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
3967 cached information in emulated XFontStruct to handle common cases
3968 quickly. Do not allocate XCharStruct for return.
3969 (w32_native_per_char_metric): New function.
3970 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
3971 allocating one.
3972 (x_produce_glyphs): Don't get an HDC. Change calls to
3973 w32_per_char_metric to match arg change above. Remove calls to
3974 free results.
3975 (w32_get_glyph_overhangs): Ditto.
3976 (w32_cache_char_metrics): New function.
3977
3978 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
3979 ($(BLD)/casefiddle.$(O)): Remove compile command.
3980 ($(BLD)/gmalloc.$(O)): Remove compile command.
3981 ($(BLD)/dispnew.obj):
3982 ($(BLD)/keyboard.obj):
3983 ($(BLD)/w32inevt.obj):
3984 ($(BLD)/w32bdf.obj):
3985 ($(BLD)/alloc.obj):
3986 ($(BLD)/buffer.obj):
3987 ($(BLD)/editfns.obj):
3988 ($(BLD)/emacs.obj):
3989 ($(BLD)/fileio.obj):
3990 ($(BLD)/fns.obj):
3991 ($(BLD)/indent.obj):
3992 ($(BLD)/insdel.obj):
3993 ($(BLD)/intervals.obj):
3994 ($(BLD)/minibuf.obj):
3995 ($(BLD)/print.obj):
3996 ($(BLD)/scroll.obj):
3997 ($(BLD)/sysdep.obj):
3998 ($(BLD)/textprop.obj):
3999 ($(BLD)/widget.obj):
4000 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
4001 ($(BLD)/term.obj): Add dependency on dispextern.h.
4002
4003 * makefile.nt ($(BLD)\dispnew.obj):
4004 ($(BLD)\keyboard.obj):
4005 ($(BLD)\w32inevt.obj):
4006 ($(BLD)\w32bdf.obj):
4007 ($(BLD)\alloc.obj):
4008 ($(BLD)\buffer.obj):
4009 ($(BLD)\editfns.obj):
4010 ($(BLD)\emacs.obj):
4011 ($(BLD)\fileio.obj):
4012 ($(BLD)\fns.obj):
4013 ($(BLD)\indent.obj):
4014 ($(BLD)\insdel.obj):
4015 ($(BLD)\intervals.obj):
4016 ($(BLD)\minibuf.obj):
4017 ($(BLD)\print.obj):
4018 ($(BLD)\scroll.obj):
4019 ($(BLD)\sysdep.obj):
4020 ($(BLD)\textprop.obj):
4021 ($(BLD)\widget.obj):
4022 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
4023 ($(BLD)\term.obj): Add dependency on dispextern.h
4024
18ad4821
EZ
40252000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
4026
4027 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
4028 with an additional argument of Qt.
4029
de54681a
MB
40302000-10-21 Miles Bader <miles@gnu.org>
4031
4032 * window.c (pos_fully_visible_in_window_p): New function.
4033 (Fpos_visible_in_window_p): Add FULLY argument.
4034 Use pos_fully_visible_in_window_p.
4035 (window_scroll_pixel_based, window_scroll_line_based): Update
4036 calls to Fpos_visible_in_window_p.
4037 * lisp.h (Fpos_visible_in_window_p): Update prototype
4038
13c844fb
GM
40392000-10-20 Gerd Moellmann <gerd@gnu.org>
4040
4041 * alloc.c (toplevel): Conditionalize compilation of mem_*
4042 functions differently.
4043
d9506268
JR
40442000-10-20 Jason Rumney <jasonr@gnu.org>
4045
4046 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
4047 mem_init where it used to be. mem_z etc not defined otherwise.
4048
8094989b
GM
40492000-10-20 Gerd Moellmann <gerd@gnu.org>
4050
4051 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
4052 GC_MALLOC_CHECK.
4053 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
4054 structure definition and related variabled to the top of the file.
4055 Include this code when GC_MALLOC_CHECK is defined.
4056 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
4057 register/unregister allocated region.
4058 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
4059 which isn't allocated.
4060 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
4061 something which is already in use.
4062 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
4063 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
4064 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
4065 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
4066
4067 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
4068 _malloc_internal instead of malloc.
4069 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
4070 of free.
4071
ea456eb4
AI
40722000-10-20 Andrew Innes <andrewi@gnu.org>
4073
4074 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
4075 Windows.
4076 (my_strftime) <macro>: Don't use macro arg list when redefining as
4077 _strftime_copytm.
4078 (my_strftime) <function>: Supply 0 as ut argument.
4079
e64c3a75
JR
40802000-10-19 Jason Rumney <jasonr@altavista.net>
4081
4082 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
4083 including dispextern.h, as it stops faces from working.
4084
4085 * w32fns.c (Fx_create_frame): Don't bother calling
4086 face-set-after-frame-default since the caller does it for us
4087 anyway. Clean up calls to x_get_arg to be consistent with X.
4088
4089 * w32term.c (x_produce_glyphs): Handle
4090 unibyte_display_via_language_environment correctly.
4091 (w32_draw_box_rect): Fix the calculation of width and height.
4092
4093 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
4094 as it has stopped working.
4095 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
4096 menu-bar.
4097
17401c97
GM
40982000-10-19 Gerd Moellmann <gerd@gnu.org>
4099
4100 * eval.c (skip_debugger): Prevent a compiler warning.
4101 (Fcondition_case): Likewise.
4102 (Fbacktrace_frame): Use a null interactive spec.
4103
773272d8
KH
41042000-10-19 Kenichi Handa <handa@etl.go.jp>
4105
4106 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
4107
a42943e9
GM
41082000-10-18 Gerd Moellmann <gerd@gnu.org>
4109
e50517d9
GM
4110 * strftime.c: Sync with glibc, file version 1.78.
4111 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
4112 should no longer be used according to ISO 8601.
4113
9035a35a
GM
4114 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
4115 no map for meta_prefix_char, don't try to use it as a keymap.
4116 Instead, if T_OK is non-zero, look up a default binding, if any,
4117 otherwise, if T_OK is zero, return nil.
4118
a42943e9
GM
4119 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
4120 (x_to_xcolors, png_load): Use x_query_color.
4121
4122 * xterm.c (x_color_cells, x_query_colors, x_query_color): New
4123 functions.
4124 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
4125 which can be slow.
4126 (x_copy_color, x_alloc_lighter_color): Likewise.
4127
4128 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
4129 (x_query_color, x_query_colors): Add prototype.
4130
4131 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
4132 check_string_bytes only if not noninteractive, increase count to 50.
4133
00de2987
MB
41342000-10-18 Miles Bader <miles@lsi.nec.co.jp>
4135
4136 * insdel.c (adjust_markers_for_delete): Handle before-insertion
4137 markers correctly.
4138
54918e2b
GM
41392000-10-17 Gerd Moellmann <gerd@gnu.org>
4140
1f0b3fd2
GM
4141 * alloc.c (pure_bytes_used): Renamed from pureptr.
4142 (ALIGN): New macro.
4143 (pure_alloc): New function.
4144 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
4145 Use it.
4146 (Fpurecopy): Use PURE_POINTER_P.
4147
68c5d1db
GM
4148 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
4149 PT has moved backward.
4150
9a038881
GM
4151 * xdisp.c (cursor_row_p): Take continued lines into account.
4152
361b097f
GM
4153 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
4154 string's size_byte.
4155 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
4156 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
4157 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
4158 string allocated.
4159
54918e2b
GM
4160 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
4161 of selective display off while searching for the next line start.
4162
03ed0806
KH
41632000-10-17 Kenichi Handa <handa@etl.go.jp>
4164
4165 * Makefile.in (term.o): Depend on dispextern.h.
4166
7e05cdaf
SM
41672000-10-16 Stefan Monnier <monnier@cs.yale.edu>
4168
4169 * keymap.c (keymap_memberp): Ensure that nil is not a member.
4170
a6801fd1
GM
41712000-10-16 Gerd Moellmann <gerd@gnu.org>
4172
483de32b
GM
4173 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
4174 the iterator at the beginning, so that they can be set later on,
4175 for instance in reseat_at_next_visible_line_start, without being
4176 overwritten.
4177
a6801fd1
GM
4178 * xfns.c (pbm_format): Add :foreground and :background keywords.
4179 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
483de32b 4180 (xbm_load): Recognize foreground and background color
a6801fd1
GM
4181 specifications.
4182
dbf1fcc1
EZ
41832000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
4184
4185 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
4186
4187 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern
4188 declaration.
4189
4190 * msdos.c (IT_set_face): Compare highlighted face with the default
4191 face, and invert colors if these faces' colors are identical.
4192 (Fmsdos_remember_default_colors): Don't swap foreground and
4193 background colors in initial_colors[].
4194 (IT_set_frame_parameters): Don't swap frame's foreground and
4195 background pixels. If ALIST includes "(reverse . t)", swap
4196 foreground-color and background-color properties in frame's
4197 param_alist. If the original frame's param_alist doesn't specify
4198 the colors, store unspecified-fg and unspecified-bg, reversed if
4199 required.
4200
4201 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
4202 the colors are unspecified and reversed, reverse fore- and back-
4203 ground in the returned value.
4204 (Fframe_parameter): Ditto.
4205
b41fe2c3
GM
42062000-10-16 Gerd Moellmann <gerd@gnu.org>
4207
3a6b59d9
GM
4208 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
4209 get_last_unchanged_at_beg_row.
4210 (find_first_unchanged_at_end_row): Renamed from
4211 get_first_unchanged_at_end_row.
4212 (find_first_unchanged_at_end_row): Convert assertions to
4213 unconditional tests which abort. When looking for a row in
4214 unchanged text, don't go further back than first_text_row.
4215
b41fe2c3
GM
4216 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
4217 Don't add in the last line's height when deciding if the new
4218 position is below the scroll margin.
9d1af64f 4219
b41fe2c3 42202000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
4221
4222 * editfns.c (Fconstrain_to_field): Check carefully for field
4223 boundaries if either OLD_POS or NEW_POS has a non-nil field
4224 property, even if they're the same.
4225
c412cb7b
KH
42262000-10-16 Kenichi Handa <handa@etl.go.jp>
4227
4228 * xterm.c (x_draw_box_rect): Fix the calculation of width and
4229 height for XFillRectangle.
4230
5586f3eb
SM
42312000-10-15 Stefan Monnier <monnier@cs.yale.edu>
4232
4233 * syntax.c (Fstring_to_syntax): New function extracted from
4234 Fmodify_syntax_entry.
4235 (Fmodify_syntax_entry): Use it and document the ! and | fences.
4236 (skip_chars, Fforward_comment): Remove unused variables.
4237 (syms_of_syntax): Add defsubr for string-to-syntax.
4238 (describe_syntax): Add code for comment and string fences.
4239
db785038
SM
42402000-10-14 Stefan Monnier <monnier@cs.yale.edu>
4241
4242 * keymap.c (access_keymap): Add AUTOLOAD parameter.
4243 Do the meta->esc mapping. Call get_keyelt before returning.
4244 Start scanning from the second element (the first is always `keymap')
4245 to make it easier to detect when we reach a parent map.
4246 Handle the case of inheriting from a symbol whose function is a map.
4247 (Fkeymap_parent): Also handle the `inherit from symbol' case.
4248 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
4249 (get_keyelt, Flookup_key): Update call to access_keymap.
4250 Remove the meta->esc mappings.
4251 (define_as_prefix): Delete old disabled code.
4252 (menu_item_p): New function.
4253 (where_is_internal_1): Skip over the few remaining menu items.
4254 * lisp.h (access_keymap): Update prototype.
4255 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
4256 Update call to access_keymap.
4257 (follow_key, read_key_sequence): Update calls to access_keymap.
4258 Remove the meta->esc mappings.
4259
cafafe0b
GM
42602000-10-13 Gerd Moellmann <gerd@gnu.org>
4261
a2e2a7f6
GM
4262 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
4263 with additional argument.
4264
cafafe0b
GM
4265 * xdisp.c (cursor_row_p): New function.
4266 (try_cursor_movement, display_line): Use it.
4267
4268 * xdisp.c (append_space): Also save/restore iterator's current
4269 character and its length.
4270
4271 * xdisp.c (init_from_display_pos): Add an assertion.
4272 (handle_stop): Don't set iterator's add_overlay_start.
4273 (handle_invisible_prop): Likewise.
4274 (load_overlay_strings): If text under an overlay is invisible,
4275 take both before- and after-strings into account when the iterator
4276 is positioned either at the start or at the end of the overlay.
4277 (forward_to_next_line_start): Rewritten.
4278 (reseat_at_next_visible_line_start): Rewritten.
4279 (set_iterator_to_next): Add parameter RESEAT_P.
4280
4281 * dispextern.h (struct it): Remove member add_overlay_start.
4282 (set_iterator_to_next): Change prototype.
4283
c744452b
KH
42842000-10-13 Kenichi Handa <handa@etl.go.jp>
4285
4286 * coding.c (code_convert_region): Be sure to initialize
4287 coding->category_idx.
e4a3f4e1
KH
4288 (decode_coding_string): Set coding->src_multibyte and
4289 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
4290 (encode_coding_string): Set coding->src_multibyte and
4291 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 4292
321fd26f
SM
42932000-10-12 Stefan Monnier <monnier@cs.yale.edu>
4294
4295 * xfns.c (Fx_create_frame): Don't bother calling
4296 face-set-after-frame-default since the caller does it for us anyway.
4297
76832439
EZ
42982000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
4299
4300 * window.c (coordinates_in_window): Fix detection of vertical line
4301 on character terminals.
4302
2483cf58
GM
43032000-10-12 Gerd Moellmann <gerd@gnu.org>
4304
4305 * editfns.c (save_excursion_save): Additionally record the
4306 selected window.
4307 (save_excursion_restore): If buffer was visible in a window, and a
4308 different window was selected, and the old selected window is
4309 still live, restore point in that window.
4310
eb991b25
KH
43112000-10-12 Kenichi Handa <handa@etl.go.jp>
4312
8a0eba09
KH
4313 * xterm.c (x_produce_glyphs): Handle
4314 unibyte_display_via_language_environment correctly.
4315
20401fcc
KH
4316 * regex.c (regex_compile): Change the way of handling a range from
4317 unibyte char to multibyte char.
4318
4319 * syntax.c (skip_chars): Change the way of handling a range from
4320 unibyte char to multibyte char.
4321
eb991b25
KH
4322 * process.c (read_process_output): Cancel previous change.
4323
365dd325
EZ
43242000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
4325
c1b096cb
EZ
4326 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
4327
365dd325
EZ
4328 * charset.c (Ffind_charset_string): Doc fix.
4329 (Ffind_charset_region): Doc fix.
4330
eb483c2b
KH
43312000-10-11 Kenichi Handa <handa@mule.m17n.org>
4332
4333 * process.c (read_process_output): Fix previous change. Adjust
4334 multibyteness of text to insert in a buffer by
df3c11b9 4335 string_make_unibyte/multibyte instead of
eb483c2b
KH
4336 Fstring_as_unibyte/multibyte.
4337
b40bfb99
AS
43382000-10-10 Andreas Schwab <schwab@suse.de>
4339
4340 * alloc.c (mark_object): Remove all workarounds installed on
4341 1993-08-08.
4342
caff31d4
KH
43432000-10-10 Kenichi Handa <handa@etl.go.jp>
4344
4345 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before
4346 returning.
4347 (base64_encode_1): Make it work for a text of multibyte form.
4348 (Fbase64_decode_region): Allocate sufficient memory for multibyte
4349 case. Don't call str_to_multibyte because base64_decode_1
4350 produces correct multibyte form for eight-bit codes.
4351 (Fbase64_decode_string): Adjusted for the change of
4352 base64_decode_1.
4353 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
4354 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
4355 codes.
4356
4357 * charset.h (CHAR_STRING): Optimized for single byte characters.
4358
cba026ef
AS
43592000-10-09 Andreas Schwab <schwab@suse.de>
4360
4361 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
4362 -1 after socket is closed, to fall through to error processing.
4363
1e21fe48
EZ
43642000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
4365
4366 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 4367 variables. If ALIST includes foreground-color or
1e21fe48
EZ
4368 background-color, change also the colors of the default face for
4369 this frame.
4370
a640322e
EZ
43712000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
4372
4373 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
4374 them extern (they are defined on xfaces.c).
4375 (syms_of_msdos): Don't intern and don't staticpro
4376 Qbackground_color and Qforeground_color.
4377
a115794c
EZ
43782000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
4379
4380 * frame.c (Fframe_parameter): For non-windowed frames, if
4381 f->param_alist says foreground or background color is unspecified,
4382 call tty_color_name to return the color name computed from the
4383 frame's current colors.
4384
f5533b63
DL
43852000-10-06 Dave Love <fx@gnu.org>
4386
4387 * terminfo.c (ospeed): Don't declare.
4388
4389 * sysdep.c: Don't include string.h.
4390 (h_errno): Declare conditional also on TRY_AGAIN.
4391
4392 * charset.c (Ffind_charset_string): Doc fix.
4393
4394 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
4395 (Fbase64_decode_region, Fbase64_decode_string): More explicit
4396 error messages.
4397
2b06561a
DL
43982000-10-05 Dave Love <fx@gnu.org>
4399
4400 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
4401 position like menu-bar.
4402
ca839c85
GM
44032000-10-05 Gerd Moellmann <gerd@gnu.org>
4404
4405 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
4406
4407 * xdisp.c (handle_single_display_prop): Use safe_call1.
4408 (safe_call): Renamed from call_function.
4409 (safe_call1): New function.
4410 (handle_fontified_prop): Use safe_call1 instead of call1.
4411 (safe_eval): Renamed from eval_form.
4412 (safe_eval_handler): Renamed from eval_handler.
4413 (handle_single_display_prop, display_mode_element): Use safe_eval
4414 instead of eval_form.
4415
4416 * xfaces.c (merge_face_heights): Use safe_call instead of
4417 call_function.
4418
4419 * keyboard.c (show_help_echo): Use safe_call instead of
4420 call_function; use safe_eval instead of eval_form.
4421
4422 * lisp.h (safe_call): Renamed from call_function.
4423 (safe_eval): Renamed from eval_form.
4424 (safe_call1): Add prototype.
4425
a3489ece
MB
44262000-10-05 Miles Bader <miles@lsi.nec.co.jp>
4427
4428 * xfns.c (image_ascent): Rearrange ascent calculation for the
4429 has-a-font case.
4430
35810b6f
SM
44312000-10-04 Stefan Monnier <monnier@cs.yale.edu>
4432
4433 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
4434 (where_is_internal_1): Don't bother ignoring menu-items any more.
4435
3dc78168
GM
44362000-10-04 Gerd Moellmann <gerd@gnu.org>
4437
4438 * keyboard.c (update_menu_bindings): New variable.
4439 (parse_menu_item): Use AREF. If update_menu_bindings
4440 is 0, don't update menu bindings.
4441 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
4442
1efc2bb9
EZ
44432000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
4444
4445 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
4446 to `mark_object'.
4447
3f679f55
SM
44482000-10-02 Stefan Monnier <monnier@cs.yale.edu>
4449
4450 * syntax.c (forw_comment): Match nestedness of ender/starter.
4451 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
4452 (prev_char_comstart_first): Remove.
4453 (back_comment): Check two-char comment markers more carefully
4454 to better handle overlapping cases like *//* or /* */* */ ...
4455 Match nestedness of ender/starter.
4456
2021ab61
DL
44572000-10-02 Dave Love <fx@gnu.org>
4458
4459 * config.in (HAVE_GAI_STRERROR): Add undef.
4460
4461 * process.c (Fopen_network_stream): Use it.
4462
4463 * m/alpha.h (NO_REMAP): Don't define.
4464
64e6cc18
GM
44652000-10-02 Gerd Moellmann <gerd@gnu.org>
4466
4467 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
4468 return with a string converted to an integer or vice versa when
4469 Vmocklisp_arguments is t.
4470 (Fsignal): Likewise. The function can return for `quit'.
4471 (struct gcpro): Declare member `var' to point to a volatile
4472 Lisp_Object.
4473
4474 * eval.c (error): Prevent compiler warning.
4475
b1904cd9
SM
44762000-09-30 Stefan Monnier <monnier@cs.yale.edu>
4477
4478 * keymap.c (keymap_memberp): New function.
4479 (Fset_keymap_parent): Use it.
4480 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
4481 Use keymap_memberp to avoid creating cycles.
4482 (access_keymap): Use KEYMAPP.
4483
71c9ec51
GM
44842000-09-30 Gerd Moellmann <gerd@gnu.org>
4485
4486 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
4487 gai_strerror. Make sure xerrno is set if connect fails. Improve
4488 error recovery.
71c9ec51 4489
c70c6b58
JR
44902000-09-29 Jason Rumney <jasonr@gnu.org>
4491
4492 * w32term.c (w32_char_font_type, w32_encode_char)
4493 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
4494 (w32_bdf_per_char_metric): New function.
4495 (w32_per_char_metric): Use it.
4496 (x_draw_glyph_string_background): Always draw background for BDF
4497 glyphs.
4498
4499 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
4500 GDI object which is a scarce resource.
4501
4502 * w32bdf.c (search_file_line): Fix skipping of whitespace.
4503 (get_quoted_string): Fix limit on memchr search.
4504 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
4505 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
4506 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
4507 (get_cached_font_char, cache_char_offset): Use macro
4508 BDF_CODEPOINT_RANGE_COVER_P.
4509 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
4510 (clear_cached_bitmap_slots): New function.
4511 (GET_HEX_VALUE): G-Z, g-z are not hex.
4512 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
4513 (get_bitmap_with_cache): Use new cache implementation.
4514 (create_offscreen_bitmap): New function.
4515 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
4516
4517 * w32term.c (x_produce_glyphs): If the distance from the current
4518 position to the next tab stop is less than a canonical character
4519 width, use the tab stop after that.
4520 (x_draw_glyphs): Handle case START and END are out of bounds more
4521 carefully.
4522 (x_clear_mouse_face): Block/unblock input.
4523 (x_display_and_set_cursor): Don't show a hollow box cursor for
4524 buffers whose cursor_type is nil.
4525
fe01239f
GM
45262000-09-29 Gerd Moellmann <gerd@gnu.org>
4527
4528 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar
4529 disappears.
4530
4531 * dispextern.h (updating_frame): Declare extern.
4532
e7c52f1f
AS
45332000-09-29 Andreas Schwab <schwab@suse.de>
4534
4535 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
4536
de6e1f7c
GM
45372000-09-29 Gerd Moellmann <gerd@gnu.org>
4538
25126faa
GM
4539 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
4540 use its function definition.
4541 (tool_bar_items): Likewise.
4542
de6e1f7c
GM
4543 * lisp.h (fatal): Declare NO_RETURN.
4544
454ee39b
KH
45452000-09-29 Kenichi Handa <handa@etl.go.jp>
4546
4547 * keymap.c: Remove the line "#undef NULL".
4548
96301c5f
GM
45492000-09-28 Gerd Moellmann <gerd@gnu.org>
4550
4551 * xterm.c (x_make_frame_visible): Try harder to make the frame
4552 visible.
4553
efffeeb4
DL
45542000-09-28 Dave Love <fx@gnu.org>
4555
ecb8b666
DL
4556 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
4557
dc3cd20f
DL
4558 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
4559
4560 * .gdbinit (xreload): Note its need on GNU/Linux.
4561
efffeeb4
DL
4562 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
4563 r_alloc, r_alloc_free.
4564
8610d903
KH
45652000-09-28 Kenichi Handa <handa@etl.go.jp>
4566
4567 * syntax.c (skip_chars): Handle negation correctly.
4568
8901d1ac
GM
45692000-09-27 Gerd Moellmann <gerd@gnu.org>
4570
6f22f1ad
GM
4571 * xfaces.c (realize_default_face): Call set_lface_from_font_name
4572 with non-zero FORCE_P argument.
4573
8901d1ac
GM
4574 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
4575 Add assertions.
4576
4577 * xdisp.c (window_box_height): Add an assertion.
4578
4579 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
4580 tool-bar than is available.
4581 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
4582
36f1966f
DL
45832000-09-27 Dave Love <fx@gnu.org>
4584
efffeeb4 4585 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 4586
31d929e5
GM
45872000-09-26 Gerd Moellmann <gerd@gnu.org>
4588
c98863bf
GM
4589 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
4590 instead of BITS_PER_INT.
4591 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
4592 EMACS_UINT, respectively.
4593 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
4594
4595 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
4596
4597 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
4598
77072ab1
GM
4599 * window.c (freeze_window_starts): Construct last argument for
4600 foreach_window differently.
4601
4602 * xfns.c (x_decode_color): Don't return a Lisp_Object.
4603
4604 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
4605 EMACS_UINT instead of `int' and `unsigned int'.
4606 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
4607
4608 * frame.h (struct frame): Make the `nothing' member of union
4609 output_data an EMACS_INT.
4610
31d929e5
GM
4611 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug
4612 hunting.
4613 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
4614 size in the sdata structure.
4615 (SDATA_NBYTES, SDATA_DATA): New macros.
4616 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
4617 differently for the different layout of the sdata structure.
4618 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
4619 in sdata.
4620 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
4621 Check that size recorded in the string size and size recorded in
4622 the sdata structure agree.
4623
3e60b029
DL
46242000-09-25 Dave Love <fx@gnu.org>
4625
4626 * buffer.c: Include stdio.h.
4627
4628 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
4629
4630 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
4631
4632 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
4633 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as
4634 size_t.
4635 (__malloc_extra_blocks): Declare as __malloc_size_t.
4636
8ff16b4e
GM
46372000-09-25 Gerd Moellmann <gerd@gnu.org>
4638
755a2ccd
GM
4639 * alloc.c (mark_image): Use GC_NILP instead of NILP.
4640
d8b4516f
GM
4641 * keyboard.c (show_help_echo): Set help_echo_showing_p.
4642 (read_char): If help-echo is showing, preserve the echo area
4643 when redisplaying.
4644
4645 * xdisp.c (help_echo_showing_p): New variable.
4646 (set_message): Reset it to 0.
4647 (init_xdisp): Initialize help_echo_showing_p.
4648
4649 * dispextern.h (help_echo_showing_p): Declare extern.
4650
4651 * config.in: Fix typo in __GNUC_MINOR__.
4652
4653 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
4654
b11af2dd
GM
4655 * s/freebsd.h (POSIX_SIGNALS): Define.
4656
8ff16b4e
GM
4657 * xterm.c (x_clear_mouse_face): Block/unblock input.
4658
844eb643
DL
46592000-09-24 Dave Love <fx@gnu.org>
4660
4661 * fns.c (base64_encode_1): Fix last change.
4662
b30ab1b3
GM
46632000-09-22 Gerd Moellmann <gerd@gnu.org>
4664
4665 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
4666
4667 * xdisp.c (try_window_reusing_current_matrix): More fixes
4668 for the case window has a header-line.
4669
c6cbe5f0
DL
46702000-09-22 Dave Love <fx@gnu.org>
4671
4c7c1f3f
DL
4672 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
4673 a doc string.
4674
4675 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
4676
c6cbe5f0
DL
4677 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
4678
550a625e
GM
46792000-09-21 Gerd Moellmann <gerd@gnu.org>
4680
4c7c1f3f 4681 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
4682 for GCC >= 2.5.
4683
4684 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error): Declare
4685 NO_RETURN.
4686
80d26f99
GM
4687 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
4688 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
4689 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
4690 warnings.
4691
4692 * marker.c (byte_char_debug_check): Return void.
4693
623a0aae
GM
4694 * xfns.c (Fx_create_frame): Set default frame parameter value
4695 for tool-bar-lines to 1.
4696
4697 * dispnew.c (scrolling_window): Compare y-positions of rows
4698 equal at the start. Some simplification.
4699
4700 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
4701 reused rows' y-position in the case window has a header-line, and
4702 new window start is greater than old window start.
4703
42ac0ae5
GM
4704 * process.c (process_sent_to): New variable.
4705 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
4706 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
4707 Declare more parameters volatile.
4708
550a625e
GM
4709 * lread.c (Vrecursive_load_depth_limit): New variable.
4710 (Fload): Check recursive loads whose recursion depth exceeds
4711 Vrecursive_load_depth_limit.
4712 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
4713
8320414c
GM
47142000-09-20 Gerd Moellmann <gerd@gnu.org>
4715
f46c275e
GM
4716 * fileio.c (Fread_file_name): Doc fix.
4717
4718 * editfns.c (Fmessage_or_box): Doc fix.
4719
4720 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
4721
b7e11c5b
GM
4722 * xfns.c (xbm_scan): Allow C-style comments.
4723
8320414c
GM
4724 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
4725 symbols are specified, add color translations to the cache.
4726 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New
4727 functions.
4728 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
4729 xpm_cache_color.
4730 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
4731 structures to xpm_init_color_cache.
4732
da1608d9
GM
47332000-09-19 Gerd Moellmann <gerd@gnu.org>
4734
4735 * dispnew.c (update_window_line): Make sure to always draw
4736 mode-lines.
4737
6badfa25
AI
47382000-09-19 Andrew Innes <andrewi@gnu.org>
4739
4740 * makefile.nt (bootstrap-emacs): Don't change directory.
4741
3a5f42bb
KH
47422000-09-19 Kenichi Handa <handa@etl.go.jp>
4743
1b7649bd
KH
4744 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
4745
3a5f42bb
KH
4746 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
4747 If output buffer is too small, signal an appropriated error.
4748
9f83cf0b
DL
47492000-09-18 Dave Love <fx@gnu.org>
4750
4751 * keyboard.c (menu_bar_items, tool_bar_items)
4752 (current_active_maps): Remove redundant get_local_map call.
4753
28c7826c
GM
47542000-09-18 Gerd Moellmann <gerd@gnu.org>
4755
5cefa566
GM
4756 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
4757 cursor for buffers whose cursor_type is nil.
4758
6fed3546
GM
4759 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
4760 a feature to implement that is already implemented.
4761 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
4762 warnings.
4763
4764 * xfns.c (x_clear_image_1): New function.
4765 (x_clear_image): Use it.
4766 (x_from_xcolors): Use x_clear_image_1; don't free the image's
4767 mask.
4768
05b1f851
GM
4769 * dispnew.c (update_window): Move test for invisible lines
4770 at the top to update_window_line.
4771 (update_window_line): Handle invisible lines here.
4772
f4779de9
GM
4773 * xfns.c (clear_image_cache): Clear current matrices of all
4774 frames sharing an image cache. Block input while freeing
4775 images. Fix timestamp comparison.
4776 (x_clear_image): Also free the mask.
4777
28c7826c
GM
4778 * xfns.c (lookup_image): Block input while loading the image so
4779 that we won't get interrupted in a state where the image isn't yet
4780 set up completely.
4781 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
4782 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
4783 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
4784 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock
4785 input.
4786
b7412313
GM
47872000-09-16 Gerd Moellmann <gerd@gnu.org>
4788
4789 * dispnew.c (update_window): Make sure to make desired rows
4790 current even if they are completely invisible at the top
4791 of a window.
4792
47e351a3
GM
47932000-09-15 Gerd Moellmann <gerd@gnu.org>
4794
7f8f1edc
GM
4795 * xfns.c (lookup_image): Build mask before applying an algorithm.
4796 Recognize algorithm `disabled'.
4797 (cross_disabled_images): New variable.
4798 (COLOR_INTENSITY): New macro.
4799 (x_detect_edges): Use COLOR_INTENSITY.
4800 (x_disable_image): New function.
4801 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
4802
4803 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
4804 disabled state, don't apply an image transformation algorithm if
4805 the user specified an image for the disabled state. Use
28c7826c 4806 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
4807 user hasn't specified an image.
4808
ebb8f116
GM
4809 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
4810 allocation functions with the XPM lib.
4811 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
4812 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
4813 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
4814 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
4815 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New
4816 functions.
4817 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
4818 functions, if possible, because these handle color allocation
4819 failure more gracefully.
4820 (Fimage_mask_p): New function.
4821
47e351a3
GM
4822 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
4823 (Qedge_detection, Qheuristic): New symbols.
4824 (syms_of_xfns): Initialize new symbols.
4825 (lookup_image): Handle `:mask X', `:algorithm emboss', and
4826 `algorithm (edge-detection ...)'.
4827 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
4828 (tiff_format, gif_format, gs_format): Add `:mask'.
4829 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
4830 (GIF_MASK, GS_MASK): New enumerators.
4831 (x_laplace_read_row, x_laplace_write_row): Functions removed.
4832 (emboss_matrix, laplace_matrix): New variables.
4833 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
4834 (x_edge_detection): New functions.
4835 (x_laplace): Rewritten in terms of x_detect_edges.
4836 (x_build_heuristic_mask): If image has a mask, free it.
4837
fe83b953
AI
48382000-09-14 Andrew Innes <andrewi@gnu.org>
4839
4840 * makefile.w32-in: Revert to Unix line endings.
4841
3021e816
AI
48422000-09-14 Andrew Innes <andrewi@gnu.org>
4843
4844 * makefile.w32-in: Standardize indentation somewhat.
4845 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
4846 cater for differences between shells.
4847
4848 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
4849
2a32b5ea
GM
48502000-09-14 Gerd Moellmann <gerd@gnu.org>
4851
4852 * xterm.c (x_produce_glyphs): If the distance from the current
4853 position to the next tab stop is less than a canonical character
4854 width, use the tab stop after that.
4855
b4331e96
DL
48562000-09-14 Dave Love <fx@gnu.org>
4857
4858 * buffer.c (alloc_buffer_text): Fix xmalloc call.
4859
ef9e4345
GM
48602000-09-14 Gerd Moellmann <gerd@gnu.org>
4861
085536c2
GM
4862 * xdisp.c (handle_fontified_prop): While running fontification
4863 functions, bind `fontification-functions' and
4864 `after-change-functions' to nil.
4865
ef9e4345
GM
4866 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
4867 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
4868
4869 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
4870
4871 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
4872 USE_MMAP_FOR_BUFFERS.
4873
4874 * insdel.c (make_gap): Use enlarge_buffer_text.
4875
4876 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
4877 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
4878 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
4879 from former r_alloc_* functions in ralloc.c.
4880 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New
4881 variables.
4882 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
4883 (mmap_init) [REL_ALLOC_MMAP]: New function.
4884 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
4885 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
4886 BUFFER_FREE.
4887
4888 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
4889 (enlarge_buffer_text): Add prototype.
4890
4891 * ralloc.c: Remove everything having to do with the use of mmap.
4892
f8608968
GM
48932000-09-13 Gerd Moellmann <gerd@gnu.org>
4894
2a494b2d
GM
4895 * sound.c (Fplay_sound): Doc fix.
4896
8c907a56
GM
4897 * keyboard.c: Avoid some more compiler warnings.
4898 (parse_tool_bar_item): Ignore cached key bindings.
4899
f8608968
GM
4900 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
4901 and allocation of Lisp data.
4902
6ab70e9a
GM
49032000-09-12 Gerd Moellmann <gerd@gnu.org>
4904
d12d0a9b
GM
4905 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
4906 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
4907 defaults first.
4908
6ab70e9a
GM
4909 * lread.c (Fload): Put code checking for recursive loads in #if 0.
4910
63c36c3c
KH
49112000-09-12 Miyashita Hisashi <himi@meadowy.org>
4912
4913 * ccl.c: Comment fixed.
4914 (MAX_MAP_SET_LEVEL): Increased to 30.
4915 (PUSH_MAPPING_STACK): Enclose with do-while block.
4916 (POP_MAPPING_STACK): Likewise.
4917 (stack_idx_of_map_multiple): New variable.
4918 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
4919 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
4920 call the corresponding CCL program by
4921 CCL_CALL_FOR_MAP_INSTRUCTION.
4922 (ccl_driver) <CCL_MapSingle>: Likewise.
4923 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
4924 with the case where looking up process reaches to the end of
4925 map-set, and call CCL programs as the above change.
4926
7ee3bd7b
GM
49272000-09-11 Gerd Moellmann <gerd@gnu.org>
4928
8ec8a5ec
GM
4929 * xfns.c (png_load, jpeg_load): Declare some variables volatile
4930 that might be clobbered by longjmp.
4931 (check_x_display_info, x_decode_color, create_frame_xic)
4932 (Fx_display_backing_store, Fx_display_visual_class)
4933 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler
4934 warnings.
4935
f74b0705
GM
4936 * lread.c (init_lread): Set Vloads_in_progress to nil.
4937 (Fload): Show list of recursively loaded files, when signaling an
4938 error.
4939
7ee3bd7b
GM
4940 * lread.c (Vloads_in_progress): New variable.
4941 (record_load_unwind): New function.
4942 (Fload): Check for recursive loads.
4943 (syms_of_lread): Initialize Vloads_in_progress.
4944 (read_integer, read1): Avoid some compiler warnings.
4945
4946 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
4947 compiler warnings.
4948
974e1e5b
MB
49492000-09-11 Miles Bader <miles@gnu.org>
4950
4951 * editfns.c (Fbuffer_string): Doc fix.
4952
9824c4e3
GM
49532000-09-10 Gerd Moellmann <gerd@gnu.org>
4954
4955 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
4956
6a72fdd1
KR
49572000-09-09 Ken Raeburn <raeburn@gnu.org>
4958
4959 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
4960 whether to include other header files.
4961
28e6fb66
GM
49622000-09-09 Gerd Moellmann <gerd@gnu.org>
4963
4964 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 4965 by Fmemq as a boolean.
28e6fb66 4966
7f8b6551
SM
49672000-09-08 Stefan Monnier <monnier@cs.yale.edu>
4968
4969 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
4970
a8710abf
GM
49712000-09-08 Gerd Moellmann <gerd@gnu.org>
4972
d1a02881
GM
4973 * ralloc.c (mmap_fd): Remove initializer which can make it
4974 read-only in a dumped Emacs.
4975 (mmap_fd_1): New variable.
4976 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
4977 restore it from there.
4978 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
4979 unconditionally so that mmap_fd can be initialized there.
4980 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
4981 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
4982 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
4983
c454aac1
GM
4984 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
4985
4986 * xdisp.c (dump_glyph_row): Fix printf format string.
4987 (display_line, move_it_in_display_line_to): Avoid compiler
4988 warnings.
4989
fc653ef2
GM
4990 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
4991
3015eec0
GM
4992 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
4993 inheritance.
4994
bfe0ee88
GM
4995 * xdisp.c (try_window_id): When trying to locate cursor in
4996 unchanged rows at the top, handle the case that we can't find it.
4997
a8710abf
GM
4998 * xterm.c (x_draw_glyphs): Handle case START and END are out
4999 of bounds more carefully.
5000
6b7d4ae4
DL
50012000-09-08 Dave Love <fx@gnu.org>
5002
423193c5
DL
5003 * s/sol2.h (REL_ALLOC_MMAP): Define.
5004 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
5005
5006 * ralloc.c: Don't include string.h (redundant).
5007 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
5008 [!MAP_ANON]: Include fcntl.h.
5009 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
5010 (r_alloc, r_re_alloc, r_alloc_free)
5011 (mmap_enlarge, mmap_set_vars): Use it.
5012 (r_alloc_init_fd): New function.
5013 (__morecore) [SYSTEM_MALLOC]: Don't declare.
5014 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
5015 malloc type.
5016
5017 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
5018 Remove vm-limit.o.
5019
6b7d4ae4
DL
5020 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
5021 change to __NetBSD__.
5022
44d31981
KH
50232000-09-08 Kenichi Handa <handa@etl.go.jp>
5024
5025 * search.c (compile_pattern): Check the multibyteness of cached
5026 string and PATTERN.
5027
aad40737
MB
50282000-09-08 Miles Bader <miles@gnu.org>
5029
5030 * xfaces.c (default_face_vector): Function removed.
5031 (Finternal_merge_in_global_face): Restore old global/local
5032 attribute override order. Use inline loop instead of calling
5033 default_face_vector.
5034
91a211b5
GM
50352000-09-07 Gerd Moellmann <gerd@gnu.org>
5036
5037 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
5038 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
5039 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
5040 where necessary, in case POINTER_TYPE is `void'.
5041
03419440
EZ
50422000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
5043
5044 * frame.c (make_terminal_frame): Initialize frame foreground and
5045 background colors to unspecified, for the initial instance of an
5046 MSDOS frame.
5047
f46f845b
GM
50482000-09-07 Gerd Moellmann <gerd@gnu.org>
5049
24f76fbf
GM
5050 * ralloc.c (mmap_find): Fix overlap computation.
5051 (mmap_enlarge): Compute nbytes before trying to find an
5052 overlapping region.
5053
f46f845b
GM
5054 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
5055 instead of `!='.
5056
5057 * lread.c (syms_of_lread): Change value of regexp
5058 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
5059
5060 * xmenu.c (xdialog_show): When looking up the selection in
5061 menu_items, take `quote' boundaries into account; this corresponds
5062 to a nil ITEM in x-popup-dialog.
5063
3c014385
KH
50642000-09-07 Kenichi Handa <handa@etl.go.jp>
5065
fd6f711b
KH
5066 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
5067 not 0x81.
5068 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
5069
3c014385 5070 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
5071 encoding, not decoding. Fix the handling of latin-jisx0201.
5072 Check for the charset katakana-jisx0201 too.
3c014385 5073 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 5074 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 5075
0da3ecef
GM
50762000-09-07 Gerd Moellmann <gerd@gnu.org>
5077
ab0ee409
GM
5078 * xfaces.c (Vparam_value_alist): New variable.
5079 (syms_of_xfaces): Initialize it.
5080 (Finternal_set_lisp_face_attribute): Avoid more consing.
5081
5082 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
5083 specially.
5084 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
5085 (Qbackground_mode): New variable.
5086 (syms_of_frame_1): Initialize Qbackground_mode.
5087
5088 * lisp.h (Qdisplay): Declare extern.
1091dd67 5089
0da3ecef
GM
5090 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
5091 change face on all frames, and change the default for new frames.
5092
b14654b9
DL
50932000-09-07 Dave Love <fx@gnu.org>
5094
5095 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
5096
d24fd56f
KH
50972000-09-07 Kenichi Handa <handa@etl.go.jp>
5098
794f3670
KH
5099 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
5100
0fddd0dc
KH
5101 * charset.c: Include composite.h
5102 (lisp_string_width): New function.
5103 (Fstring_width): Call lisp_string_width instead of strwidth.
5104
5105 * Makefile.in (charset.o): Depends on composite.h.
5106
d24fd56f
KH
5107 * process.c (read_process_output): Before inserting the decoded
5108 text in the buffer, adjust the multibyteness.
5109
fa0b693c
GM
51102000-09-06 Gerd Moellmann <gerd@gnu.org>
5111
73b77ee5
GM
5112 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
5113 buffer's text buffer is null, map new memory.
5114
0a58f946
GM
5115 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
5116 POINTER_TYPE and size_t.
5117 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
5118 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
5119 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
5120 [REL_ALLOC_MMAP]: New macros.
5121 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
5122 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
5123 [REL_ALLOC_MMAP]: New functions.
5124
5125 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
5126 before and after unexec.
5127
5128 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
5129 text buffers if necessary.
5130
5131 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
5132 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
5133 in prototypes.
5134
fa0b693c
GM
5135 * config.in (HAVE_MMAP): Add #undef.
5136
877055f6
GM
51372000-09-05 Gerd Moellmann <gerd@gnu.org>
5138
08ba3862
GM
5139 * frame.c (Qdisplay_type): New variable.
5140 (syms_of_frame_1): Initialize it.
5141 (Fframe_parameter): New function that avoids consing.
5142 (syms_of_frame): Defsubr it.
5143
66ffe51c
GM
5144 * buffer.c (Fother_buffer): Consider buffers as invisible when
5145 they are displayed in a window on an invisible frame.
5146
877055f6
GM
5147 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
5148 get-largest-window always return nil.
5149
bb970e67
GM
51502000-09-04 Gerd Moellmann <gerd@gnu.org>
5151
5152 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
5153 variable; recognize Emacs 19 elc files.
5154
7a3d0e0e
MB
51552000-09-04 Miles Bader <miles@gnu.org>
5156
5157 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
5158 before initially popping up the menu, so the menu doesn't flash
5159 when the face settings are significantly different from the
5160 defaults.
5161
14473664
SM
51622000-09-04 Stefan Monnier <monnier@cs.yale.edu>
5163
5164 * regex.c (WIDE_CHAR_SUPPORT): New macro.
5165 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
5166 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
5167 (BIT_UNIBYTE): Remove.
5168 (re_match_2_internal): Delete corresponding code and streamline the
5169 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
5170 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
5171 (re_wctype_t): New type.
5172 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
5173 (regex_compile): Use them and fix handling of overly long char classes.
5174
c1174479
AI
51752000-09-03 Andrew Innes <andrewi@gnu.org>
5176
f8803e97
AI
5177 * makefile.w32-in: Change to DOS line endings.
5178
c1174479
AI
5179 * s/ms-w32.h (ORDINARY_LINK): New define.
5180
5181 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
5182 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
5183
5184 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
5185 (distclean): Delete them here instead.
5186
44ef7cf6
AI
5187 * w32proc.c (compare_env): Convert to uppercase for comparison,
5188 not lowercase, to match how the native Windows shell works.
5189
49b3bd82
JR
51902000-09-03 Jason Rumney <jasonr@gnu.org>
5191
5192 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
5193 CVS changes the line-ends when checking in/out on DOS/Windows.
5194
5195 * makefile.nt (emacs): Do not change directory to run temacs, as
5196 the load-path is set relative to current directory.
5197
a3d35a39
MB
51982000-09-03 Miles Bader <miles@gnu.org>
5199
5200 * xterm.c (x_alloc_lighter_color_for_widget): New function.
5201
d276b0cf
GM
52022000-09-02 Gerd Moellmann <gerd@gnu.org>
5203
715e84c9
GM
5204 * xdisp.c (redisplay_mode_lines): New function.
5205 (display_mode_lines): Return number of mode lines displayed.
5206 (echo_area_display): Use redisplay_mode_lines to draw garbaged
5207 mode lines. Don't temporarily bind redisplay-dont-pause to t.
5208
8892f40b
GM
5209 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
5210 string.h and strings.h.
5211 (index) [HAVE_INDEX]: Add prototype.
5212
d276b0cf
GM
5213 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
5214 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
5215
5216 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
5217 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
5218
38404229
GM
52192000-09-01 Gerd Moellmann <gerd@gnu.org>
5220
5221 * lread.c (read1): Accept `?' as symbol constituent, for
5222 compatiblity with XEmacs.
5223
c0f9ea08
SM
52242000-08-31 Stefan Monnier <monnier@cs.yale.edu>
5225
5226 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
5227 (struct re_pattern_buffer): Remove newline_anchor.
5228 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
5229 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
5230 (re_max_failures, fail_stack): Use size_t rather than unsigned.
5231 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
5232 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
5233 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
5234 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
5235 Get rid of references to newline_anchor.
5236 (regcomp): Allocate and precompute a fastmap.
5237
8c0f83fe
GM
52382000-08-31 Gerd Moellmann <gerd@gnu.org>
5239
5240 * lread.c (openp): GCPRO local variable `filename'.
5241
4bb91c68
SM
52422000-08-30 Stefan Monnier <monnier@cs.yale.edu>
5243
5244 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
5245
5246 * regex.c: Merge some changes from GNU libc. Add prototypes.
5247 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
5248 Use memcmp and memcpy instead of bcopy and bcmp.
5249 (init_syntax_once): Use ISALNUM.
5250 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
5251 (REG_UNSET_VALUE): Remove. Use NULL instead.
5252 (REG_UNSET, re_match_2_internal): Use NULL.
5253 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
5254 New macros.
5255 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
5256 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
5257 (regex_compile): In handle_interval, return an error rather than try to
5258 unfetch the interval if we can't find the closing brace.
5259 Obey the RE_NO_GNU_OPS syntax bit.
5260 (TOLOWER): New macro.
5261 (regcomp): Use it.
5262 (regexec): Allocate regs.start and regs.end as one block.
5263
5226a931
GM
52642000-08-30 Gerd Moellmann <gerd@gnu.org>
5265
868dd24b
GM
5266 * xdisp.c (echo_area_display): Check display_completed instead
5267 of calling detect_input_pending.
5268
5269 * dispnew.c (update_frame): Only set display_completed here; move
5270 the update_begin and update_end calls here from update_frame_1.
5271 (update_frame_1): Don't set display_completed here, don't call
5272 update_begin/update_end.
5273
5226a931
GM
5274 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
5275 instead of store_frame_param.
5276
2a8bd25f
GM
52772000-08-29 Gerd Moellmann <gerd@gnu.org>
5278
5279 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
5280 desired window matrix hasn't been displayed, use the current row
5281 instead. Make sure that only those frame rows are updated for
5282 which there exists a corresponding enabled desired row.
5283
ba3478d9
MB
52842000-08-29 Miles Bader <miles@gnu.org>
5285
5286 * xfaces.c (default_face_vector): New function.
5287 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
5288
87d0f685
GM
52892000-08-29 Gerd Moellmann <gerd@gnu.org>
5290
5291 * lread.c (openp): Prevent temporary string passed to
5292 Ffile_readable_p from being garbage collected.
5293
6fa86045
DL
52942000-08-28 Dave Love <fx@gnu.org>
5295
5296 * keymap.c (store_in_keymap): Add `static' to declaration.
5297
bb17930d
GM
52982000-08-28 Gerd Moellmann <gerd@gnu.org>
5299
5300 * emacs.c, callint.c, doc.c, editfns.c
5301 (toplevel) [HAVE_STRING_H]: Include string.h.
5302 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
5303 (index): Remove prototypes which might conflict with non-standard
5304 definitions of index/strchr.
5305
5306 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
5307 (rindex): Define only if !HAVE_RINDEX.
5308
5309 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
5310
5311 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
5312
87188200
MB
53132000-08-28 Miles Bader <miles@gnu.org>
5314
5315 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
5316 made inconsistent by a font-related attribute in FROM.
5317 (merge_face_inheritance): Add function comment.
5318
41a68aef
KH
53192000-08-28 Kenichi Handa <handa@etl.go.jp>
5320
5321 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
5322 the 4th arg (PREV_EVENT) Qt to suppress input method.
5323
f7c436c1
SM
53242000-08-27 Stefan Monnier <monnier@cs.yale.edu>
5325
0b32bf0e
SM
5326 * regex.c: Indent cpp directives and remove parens after `defined'.
5327 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
5328 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
5329 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
5330 (re_compile_pattern): Use size_t for length.
5331 (init_syntax_once): Move to a better place.
5332 * regex.h: Merge changes from GNU libc. Indent cpp directives.
5333 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
5334
f7c436c1
SM
5335 * syntax.c (back_comment): Detect cases where a comment-starter is
5336 actually inside another comment as in: /* a // b */ c // d \n.
5337 Make it clear that `comstart_pos' is unused for nested comments.
5338
5339 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
5340 (KEYMAPP): New macro.
5341 (Fkeymap_parent, Fset_keymap_parent): Use it.
5342 (fix_submap_inheritance): Mark it static.
5343 (define_as_prefix, describe_buffer_bindings, describe_command)
5344 (describe_translation, describe_map): Complete prototypes.
5345
5346 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
5347
5348 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
5349 to better match the key-lookup behavior.
5350
6288c62f
GM
53512000-08-27 Gerd Moellmann <gerd@gnu.org>
5352
5353 * xfaces.c (lface_fully_specified_p): Handle :inherit.
5354 (Finternal_set_lisp_face_attribute): Fix typo in error message.
5355
e931344e
EZ
53562000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
5357
5358 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
5359 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
5360 (xterm.o): Depend on coding.h
5361
d10dfeef
KH
53622000-08-26 Kenichi Handa <handa@etl.go.jp>
5363
5364 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
5365 the corresponding '#endif'.
5366
2d73e8d3
MB
53672000-08-26 Miles Bader <miles@gnu.org>
5368
5369 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
5370 * xfaces.c (QCinherit): New variable.
5371 (syms_of_xfaces): Initialize it.
5372 (LFACE_INHERIT): New macro.
5373 (Finternal_get_lisp_face_attribute)
5374 (merge_face_vector_with_property)
5375 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
5376 (check_lface_attrs): Allow new types of face height. Check
5377 inherit attribute.
5378 (CYCLE_CHECK): New macro.
5379 (merge_face_inheritance): New function.
5380 (merge_face_vectors): Merge inherited faces too. Add F and
5381 CYCLE_CHECK arguments.
5382 (merge_face_vector_with_property, Finternal_merge_in_global_face)
5383 (lookup_named_face, lookup_derived_face, realize_named_face)
5384 (face_at_string_position, face_at_buffer_position): Supply
5385 new F and CYCLE_CHECK arguments to merge_face_vectors.
5386 (merge_face_heights): New function.
5387 (merge_face_vectors, merge_face_vector_with_property)
5388 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
5389 handle relative face heights.
5390 (lface_same_font_attributes_p): Compare heights using EQ.
5391
6ce974d4
KH
53922000-08-26 Kenichi Handa <handa@etl.go.jp>
5393
5394 * charset.c (char_to_string): Check the character validity.
5395 (char_valid_p): If C is not less than MAX_CHAR, be sure to return
5396 0.
5397
dc1e502d
SM
53982000-08-25 Stefan Monnier <monnier@cs.yale.edu>
5399
5400 * regex.c (PUSH_FAILURE_COUNT): New macro.
5401 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
5402 Handle popping of a register's or a counter's data.
5403 (POP_FAILURE_POINT): Use the new name.
5404 (re_match_2_internal): Push counter data on the stack for succeed_n,
5405 jump_n and set_number_at and remove misleading dead code in succeed_n.
5406
bd9d0f3f
GM
54072000-08-25 Gerd Moellmann <gerd@gnu.org>
5408
5409 * xdisp.c (redisplay_internal): If considering all windows on all
5410 frames, update the display for each frame as soon as possible,
5411 instead of first building all desired matrices for all frames, and
5412 then updating them all.
5413 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
5414
aa5b8e15
GM
54152000-08-24 Gerd Moellmann <gerd@gnu.org>
5416
17494071
GM
5417 * bytecode.c (mark_byte_stack): Add a comment.
5418
aa5b8e15
GM
5419 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
5420 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
5421 a graphical frame.
5422
c543db81
KH
54232000-08-24 Kenichi Handa <handa@etl.go.jp>
5424
d246d5f5
KH
5425 * minibuf.c (do_completion): Always use compare-string, not
5426 string-equal because the latter doesn't pay attention to
5427 multibyteness of strings.
5428
c543db81
KH
5429 * process.c (create_process): Don't setup raw-text coding here.
5430 (Fopen_network_stream): Don't set coding->src_multibyte and
5431 coding->dst_multibyte here.
5432 (read_process_output): For process filter, return unibyte string
5433 if default-enable-multibyte-characters is nil.
5434 (send_process): If OBJECT is multibyte text, be sure to encoded it
5435 by the specified coding system for the process. Otherwise, setup
5436 raw-text coding.
5437 (init_process): Don't initialize default-process-coding-system
5438 here.
5439
9b47cfe0
EZ
54402000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
5441
5442 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
5443 <scroll-down-aggressively>: Likewise.
5444
f5a36960
KH
54452000-08-23 Kenichi Handa <handa@etl.go.jp>
5446
5447 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
5448 zero. Set coding->produced_char correctly.
5449
69a7ffa7
AI
54502000-08-22 Andrew Innes <andrewi@gnu.org>
5451
5452 * makefile.w32-in: New file.
5453
5454 * unexw32.c (unexec): Ignore old_name, and use the actual location
5455 of the current executable instead. Base new_name on this.
5456
5457 * w32proc.c (create_child): Remove reference to security
5458 descriptor, which isn't needed and doesn't compile with mingw32.
5459
5460 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5461 up dllimport attributes.
5462 (x_update_window_end): Update prototype.
5463
5464 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
5465 extern, which screws up dllimport attributes.
5466
5467 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5468 up dllimport attributes.
5469
5470 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
5471 screws up dllimport attributes.
5472
5473 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5474 up dllimport attributes.
5475 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
5476 screws up dllimport attributes.
5477
5478 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5479 up dllimport attributes.
5480
5481 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
5482 screws up dllimport attributes.
5483
5484 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
5485 screws up dllimport attributes.
5486
5487 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5488 up dllimport attributes.
5489
5490 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
5491 unnecessary extern, which screws up dllimport attributes.
5492 (main): Ditto.
5493
5494 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5495 up dllimport attributes.
5496
5497 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
5498 unnecessary extern, which screws up dllimport attributes.
5499
5500 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
5501 screws up dllimport attributes.
5502
5503 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5504 up dllimport attributes.
5505
5506 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
5507
5508 * w32bdf.c (search_file_line):
5509 (set_bdf_font_info):
5510 (seek_char):
5511 (w32_get_bdf_glyph):
5512 (w32_BDF_to_x_font): Fix compile warnings.
5513
5514 * w32menu.c: Include keyboard.h before frame.h. Fix compile
5515 warnings.
5516
5517 * w32select.c: Include keyboard.h before frame.h.
5518
5519 * w32fns.c (max): Define macro.
5520 (JOHAB_CHARSET): Define if not known.
5521 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
5522 (Fx_show_tip): Synch with X version.
5523
5524 * w32xfns.c: Include keyboard.h before frame.h.
5525
5526 * w32fns.c: Include keyboard.h before frame.h.
5527
5528 * w32term.c: Include keyboard.h before frame.h.
5529
5530 * fontset.c: Include keyboard.h before frame.h.
5531
5532 * w32inevt.c: Include keyboard.h before frame.h.
5533 (MOUSE_MOVED): Define if not known.
5534
5535 * minibuf.c: Include keyboard.h before frame.h.
5536
5537 * keyboard.c: Include keyboard.h before frame.h.
5538
5539 * indent.c: Include keyboard.h before frame.h.
5540
5541 * dispnew.c: Include keyboard.h before frame.h.
5542
5543 * buffer.c: Include keyboard.h before frame.h.
5544
5545 * alloc.c: Include keyboard.h before frame.h.
5546
5547 * print.c: Include keyboard.h before frame.h.
5548
5549 * process.c: Include keyboard.h before frame.h.
5550
5551 * scroll.c: Include keyboard.h before frame.h.
5552
5553 * sysdep.c: Include keyboard.h before frame.h.
5554
5555 * term.c: Include keyboard.h before frame.h.
5556
5557 * window.c: Include keyboard.h before frame.h.
5558
5559 * xdisp.c: Include keyboard.h before frame.h.
5560 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
5561
5562 * frame.c: Include keyboard.h before frame.h.
5563
5564 * w32heap.h: Undefine min, max.
5565
5566 * w32gui.h: Undefine min, max.
5567
5568 * unexw32.c: Change PUCHAR to PCHAR.
5569 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
5570 (relocate_offset):
5571 (get_section_info):
5572 (copy_executable_and_dump_data): Remove unnecessary static defs.
5573 (copy_executable_and_dump_data): Fix compile warnings.
5574
5575 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
5576
5577 * w32console.c (min): Define macro.
5578 (clear_frame, write_glyphs): Fix compile warning.
5579
5580 * w32proc.c (compare_env):
5581 (find_child_console): Fix compile warning.
5582
5583 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
5584 sys_errlist instead of _sys_errlist.
5585 (get_emacs_configuration_options): New function.
5586
5587 * s/ms-w32.h (sys_nerr): Provide default definition.
5588 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
5589 name with _ prepended.
5590 (NSIG): Define if not known.
5591 (get_emacs_configuration): Provide extern declaration.
5592 (get_emacs_configuration_options): Provide extern declaration.
5593 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
5594
5595 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
5596 (map_w32_filename):
5597 (read_unc_volume): Fix compile warning.
5598
5599 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
5600 definitions from being used.
5601
5602 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
5603
5604 * w32.c (unc_volume_file_attributes):
5605 (open_unc_volume): Make arg const.
5606
5607 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
5608 (read_input_waiting): Remove excess parameter.
5609
5610 * w32.c (init_environment): Call _access.
5611 (check_windows_init_file): Call _close.
5612 (init_user_info): Call _putenv.
5613 (init_environment): Call _putenv and _strdup.
5614 (init_ntproc): Reset volume info cache on startup.
5615
5616 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
5617 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
5618 cannot override the CRT malloc.
5619
5620 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
5621 (LINK_FLAGS): Append to original value of LINK_FLAGS.
5622
5623 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
5624 unless we are linking with a static CRT.
5625 (RVA_TO_PTR): Cast result to unsigned char*.
5626
5627 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
5628 (add_volume_info): Use xstrdup.
5629
25060080
SM
56302000-08-22 Stefan Monnier <monnier@cs.yale.edu>
5631
5632 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
5633 (do_completion, Fminibuffer_complete_word): Use it.
5634 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
5635 var so it can take non-boolean values.
5636
6917e6bb
GM
56372000-08-21 Gerd Moellmann <gerd@gnu.org>
5638
acb7cc89
GM
5639 * editfns.c (find_field): Formatting changes.
5640 (toplevel): Some old-style function forward declarations
5641 changed to prototypes, some new protypes added, some functions
5642 made static.
5643
5644 * lisp.h (set_time_zone_rule): Add prototype.
5645 (use_dialog_box): External declaration.
5646
0bbfdc25
GM
5647 * keyboard.c (gen_help_event): Add parameter SIZE.
5648 (kbd_buffer_events_waiting): Slightly rewritten.
5649 (clear_event): New function.
5650 (kbd_buffer_get_event): Use it, and clear the input_events of
5651 HELP_EVENTs.
5652 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
5653 don't fill the newly created array with nils.
5654 (toplevel): Convert some old-style function forward declarations
5655 to prototypes.
5656
5657 * keyboard.h (gen_help_event): Change prototype.
5658
5659 * xterm.c (XTread_socket): Change calls to gen_help_event.
5660
5661 * w32term.c (w32_read_socket): Change calls to gen_help_event.
5662
6917e6bb
GM
5663 * eval.c (Fmacroexpand): Doc fix.
5664
e5cd3d11
JR
56652000-08-20 Jason Rumney <jasonr@gnu.org>
5666
5667 * w32term.h (x_display_info_for_display): Remove as this function
5668 does not exist on W32.
5669
5670 * w32term.c (help_echo_window): New variable.
5671 (syms_of_w32term): staticpro it.
5672 (note_mode_line_highlight): Set it.
5673 (XTextExtents16): Removed as there is no equivalent on W32.
5674 (x_compute_glyph_string_overhangs): Incomplete body removed, as
5675 the X way of doing this will not work for W32.
5676 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
5677 (x_draw_image_foreground): Avoid drawing outside of the clip area
5678 when image doesn't have a mask.
5679 (note_mouse_highlight): Process overlays in the right order of
5680 priority. Set help_echo_window.
5681 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
5682 because that's more visible for large images.
5683
5684 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
5685 name to single_keymap_panes.
5686 (w32_menu_show): Set wv->title when dealing with titles.
5687 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
5688
6e69ab8c
MB
56892000-08-21 Miles Bader <miles@gnu.org>
5690
5691 * minibuf.c (do_completion): Try again if we rewrite the input
5692 string, but no completion was done, so that any completion message
5693 will be correct.
5694
511bd4eb
GM
56952000-08-20 Gerd Moellmann <gerd@gnu.org>
5696
5697 * xfaces.c (lface_equal_p): Compare strings differently.
5698 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
5699 (realize_tty_face): Use them.
5700 (syms_of_xfaces): Initialize new variables.
5701 (map_tty_color): New function, extracted from realize_tty_face.
5702 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
5703 foreground or background color, store the new color name in the
5704 realized face; previous code trying to do this had no effect.
5705 (realize_tty_face): Use map_tty_color.
5706 (Fclear_face_cache): Set face_change_count and ensure thorough
5707 redisplay.
5708
1433385f
GM
57092000-08-19 Gerd Moellmann <gerd@gnu.org>
5710
511bd4eb
GM
5711 * undo.c (record_first_change, record_marker_adjustment): Don't
5712 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 5713
419ac0a2
KH
57142000-08-18 Kenichi Handa <handa@etl.go.jp>
5715
5716 * coding.c (decode_coding_string): Set members consumed,
5717 consumed_char, produced, produced_char of *coding correctly. If
5718 decode_coding doesn't consume any byte, don't try anymore.
5719 (encode_coding_string): Likewise.
5720
7eb9e30d
GM
57212000-08-18 Gerd Moellmann <gerd@gnu.org>
5722
511bd4eb
GM
5723 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
5724 conditional have void type, for Standard C compilers.
7eb9e30d
GM
5725
5726 * xdisp.c (redisplay_internal): Compare windows for equality with
5727 EQ, instead of applying XWINDOW to something that might not
5728 be a window.
5729
dd34a735
KH
57302000-08-18 Kenichi Handa <handa@etl.go.jp>
5731
5732 * fontset.c (Finternal_char_font): Search only the selected frame
5733 for a window of the current buffer.
5734
385ff9e3
GM
57352000-08-18 Gerd Moellmann <gerd@gnu.org>
5736
511bd4eb 5737 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
5738 Lisp_Objects.
5739
385ff9e3
GM
5740 * keyboard.c (kbd_buffer_get_event): Handle the case that the
5741 second half of a HELP_EVENT is found at the start of kbd_buffer.
5742
d6abb4c7
MB
57432000-08-18 Miles Bader <miles@gnu.org>
5744
4618074a
MB
5745 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
5746
d6abb4c7
MB
5747 * editfns.c (save_restriction_save): Rewrite to use markers.
5748 (save_restriction_restore): Rewrite to understand new form of data
5749 saved by save_restriction_save.
5750 (Fsave_restriction): Remove cautionary note in doc-string.
5751
a7b28523
GM
57522000-08-17 Gerd Moellmann <gerd@gnu.org>
5753
5754 * fileio.c (build_annotations): Add a comment explaining the
5755 return value of format-annotate-function. Replace a spurious call
5756 to Flength with a CONSP test. Call format-annotate-function with
5757 a fifth arg specifying how many times the function is been called
5758 in a row, to let it choose temporary buffers appropriately.
5759
03c9ed77
DL
57602000-08-17 Dave Love <fx@gnu.org>
5761
5762 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
5763 declare make_temp_name twice.
5764
5765 * lread.c: Prototype readevalloop, load_unwind,
5766 load_descriptor_unwind.
5767 (unreadpure): Give it an arg.
5768
5769 * unexalpha.c: Prototype fatal_unexec, mark_x,
5770 update_dynamic_symbols. Declare unexec as void.
5771
5772 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
5773 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
5774
5775 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
5776 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on
5777 DOUG_LEA_MALLOC.
5778
5779 * alloca.c: Use #error.
5780 [POINTER_TYPE]: Use it.
5781
5782 * eval.c (Fdefvar): Doc fix.
5783
5784 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
5785 INITIALIZE_INTERVAL.
5786
5787 * buffer.h: Avoid DECLARE_INTERVALS.
5788
5789 * config.in: Add size_t.
5790
aae41d97
EZ
57912000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
5792
5793 * w16select.c (set_clipboard_data): If there's not enough memory
5794 to put text into clipboard, return 1, as Fw16_set_clipboard_data
5795 expects. In case of other failures, return 3.
5796 (system_error_msg): New error message.
5797 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
5798 system_error_msg.
5799
65aa5e85
GM
58002000-08-16 Gerd Moellmann <gerd@gnu.org>
5801
5802 * term.c (write_glyphs): Also turn off inverse video after turning
5803 off other appearances in case TS_exit_attribute_mode is not equal
5804 to TS_end_standout_mode.
5805 (insert_glyphs): Turn inverse video on/off for each run of glyphs
5806 with the same face.
5807 (turn_off_face): Reset standout_mode only if
5808 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
5809 is equal to TS_end_standout_mode.
5810
ece23901
KH
58112000-08-16 Kenichi Handa <handa@etl.go.jp>
5812
9d7bcb2e
KH
5813 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
5814 sequence at the end of the source block.
5815
ece23901
KH
5816 * ccl.c (Fccl_program_p): Docstring modified.
5817 (Fccl_execute): Likewise.
5818 (Fccl_execute_on_string): Likewise.
5819
5e30eaa2
EZ
58202000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
5821
5822 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
5823
290602fd
KH
58242000-08-16 Kenichi Handa <handa@etl.go.jp>
5825
5826 The following changes are mainly to fix bugs of
5827 encode/decode-coding-string failing if encoding/decoding return
5828 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
5829 variable conversion_buffer.
5830
5831 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
5832 decrement dst_end to avoid buffer overflow in the later call of
5833 string_as_multibyte
5834
5835 * coding.h (conversion_buffer_size, conversion_buffer)
5836 (get_conversion_buffer): Extern deleted.
5837
5838 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
5839 (conversion_buffer, conversion_buffer_size): Variables deleted.
5840 (get_conversion_buffer): Function deleted.
5841 (struct conversion_buffer): New structure.
5842 (MAX_ALLOCA): New macro.
5843 (allocate_conversion_buffer): New macro.
5844 (extend_conversion_buffer, free_conversion_buffer): New functions.
5845 (ccl_coding_driver): Set coding->result.
5846 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
5847 this is the last block of source.
5848 (encode_coding): Likewise. Handle the source block as the last
5849 one only when the whole source text is consumed.
5850 (decode_coding_string): Handle the case that the output buffer is
5851 too small to decode the whole source text. Use
5852 allocate_conversion_buffer, extend_conversion_buffer and
5853 free_conversion_buffer, not get_conversion_buffer.
5854 (encode_coding_string): Likewise.
5855 (init_coding): Function deleted.
5856 (init_coding_once): Delete code to initialize
5857 conversion_buffer_size.
5858
5859 * emacs.c (main): Don't call init_coding.
5860
5861 * msdos.c (IT_write_glyphs): Use a locally declared
5862 conversion_buffer.
5863
5864 * term.c (write_glyphs): Use a locally declared conversion_buffer.
5865 (insert_glyphs): Likewise.
5866
5867 * w32console.c (write_glyphs): Use a locally declared
5868 conversion_buffer.
5869
b9f80d41
EZ
58702000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
5871
5872 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
5873 member of display_info is NULL.
5874
32dc52f7
GM
58752000-08-15 Gerd Moellmann <gerd@gnu.org>
5876
58ed0d3b
GM
5877 * alloc.c (compact_small_strings): Use safe_bcopy, add an
5878 assertion.
5879
32dc52f7 5880 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 5881 appearances with capability `me'.
32dc52f7
GM
5882 (write_glyphs): Switch on inverse video before each face change.
5883
4eb22d33
DL
58842000-08-14 Dave Love <fx@gnu.org>
5885
5886 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
5887 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
5888 (lisp_free): Declare and make static.
5889
5890 * window.c: Fix embedded comment.
5891 (syms_of_window): Fix doc string.
5892
90cbf47e
GM
58932000-08-14 Gerd Moellmann <gerd@gnu.org>
5894
5895 * keymap.c (push_key_description): If C without modifiers is < 32,
5896 make sure to print `C-' before `M-', like in the manual.
5897
440fc135
GM
58982000-08-11 Gerd Moellmann <gerd@gnu.org>
5899
5900 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
5901 since they aren't relocated anymore.
5902 (sxhash_string): Make sure returned hash code fits in a Lisp
5903 integer.
5904
5905 * xdisp.c (try_cursor_movement): Fix handling of cursor in
5906 partially visible line which is smaller than the window's
5907 height.
5908
6e264fad
KH
59092000-08-11 Kenichi Handa <handa@etl.go.jp>
5910
5911 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
5912 the multibyte form of eight-bit-control characters.
5913 (Fccl_execute_on_string): Initialize ccl->multibyte.
5914
5915 * ccl.h (struct ccl_program): New member multibyte.
5916
5917 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
5918
c371f69a
KH
59192000-08-11 Kenichi Handa <handa@etl.go.jp>
5920
5921 * regex.c (regex_compile) <normal_char>: Pay attention to
5922 multibyteness.
5923 (analyse_first) <exactn>: Setup fastmap correctly for
5924 eight-bit-control characters.
5925
59262000-08-11 Kenichi Handa <handa@etl.go.jp>
5927
5928 * termhooks.h (enum event_kind): New member
5929 multibyte_char_keystroke.
5930
5931 * keyboard.c (make_lispy_event): Handle the new event type
5932 multibyte_char_keystroke.
5933
5934 * xterm.c: Include coding.h.
5935 (XTread_socket): Work around a bug of XmbLookupString. If the
5936 input is from XIM, decode it according to the current locale. In
5937 that case, generate multibyte_char_keystroke events.
5938
b8ddbe71
KH
59392000-08-11 Kenichi Handa <handa@etl.go.jp>
5940
5941 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
5942 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
5943
47589c8c
GM
59442000-08-10 Gerd Moellmann <gerd@gnu.org>
5945
5946 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
5947 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
5948 (move_it_in_display_line_to): Record iterator's ascent and descent
5949 before producing glyphs, and restore them when we know the glyph
5950 doesn't fit on the line.
5951 (move_it_to): Restructured so that it's easier to debug. If
5952 moving to a vpos, and not moving to an x or character position,
5953 stop as soon as the specified vpos is reached; don't move further
5954 into that line because that might change the computed line height.
5955 (try_cursor_movement): New function, extracted from the cursor
5956 movement branch of redisplay_window. If ending on a partially
5957 visible line, don't try to scroll if the cursor line is taller
5958 than the window.
5959 (redisplay_window): Use try_cursor_movement.
5960
5961 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
5962 because that function doesn't cope with variable-height lines.
5963
5964 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
5965 box cursor because that's better visible for large images.
5966
c51bacd6
MB
59672000-08-10 Miles Bader <miles@gnu.org>
5968
5969 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
5970
bea56df7
GM
59712000-08-10 Gerd Moellmann <gerd@gnu.org>
5972
5973 * xdisp.c (Vmessages_buffer_name): New variable.
5974 (message_dolog): Use it.
5975 (syms_of_xdisp): Initialize it.
5976
99cd7364
EZ
59772000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
5978
5979 * msdos.c (IT_note_mouse_highlight): Update the calls to
5980 overlays_at.
5981 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
5982 redundant now that keyboard.h is included.
5983
7d093d56
EZ
59842000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
5985
5986 * keyboard.c (kbd_buffer_events_waiting): New function.
5987
5988 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
5989
5990 * msdos.c: Include keyboard.h.
5991 (XMenuActivate): Empty no_event events from the event buffer. If
5992 no events are left after that, call clear_input_pending.
5993 (mouse_clear_clicks): New function, code moved from mouse_init.
5994 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
5995 mouse driver to ``forget'' any past clicks.
5996
5997 * Makefile.in (msdos.o): Depend on keyboard.h.
5998
41e757a6
GM
59992000-08-09 Gerd Moellmann <gerd@gnu.org>
6000
8e7bd231
GM
6001 * lisp.h (input_pending): External declaration.
6002
6003 * dispextern.h (Qredisplay_dont_pause): Declare extern.
6004
6005 * xdisp.c (echo_area_display): Display thoroughly if input is
6006 pending. Bind redisplay-dont-pause to t during the redisplay.
6007 in case input is pending.
6008
6009 * dispnew.c (Qredisplay_dont_pause): New variable.
6010 (syms_of_display): Initialize and staticpro it.
6011 (update_frame_1): Don't interrupt the display for pending input if
6012 redisplay_dont_pause is set.
6013
43028b7e
GM
6014 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
6015
41e757a6
GM
6016 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
6017
2f2174fa
KH
60182000-08-09 Miles Bader <miles@lsi.nec.co.jp>
6019
6020 * callproc.c (Fcall_process): Terminate the unwind-protect around
6021 the post-read-conversion of coding system.
6022
0a6fd67e
MB
6023 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
6024 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
6025 * buffer.h (overlays_at): Update prototype.
6026 * xdisp.c (next_overlay_change): Update call to overlays_at.
6027 * xfaces.c (face_at_buffer_position): Likewise.
6028 * textprop.c (Fget_char_property): Likewise.
6029 * xterm.c (note_mouse_highlight): Likewise.
6030
0c80756e
MB
6031 * minibuf.c (do_completion): Don't consider a simple change of
6032 case as `completion'.
6033
975f250a
KR
60342000-08-08 Ken Raeburn <raeburn@gnu.org>
6035
b347b3fd
KR
6036 * keyboard.c (syms_of_keyboard): Initialize
6037 last_point_position_buffer.
6038 * undo.c (record_delete): Make sure last_point_position_buffer is
6039 a buffer before comparing pointers.
6040
6041 * coding.h (decode_coding_string): Declare.
6042
6043 * intervals.h (Fprevious_single_char_property_change): Declare.
6044
6045 * textprop.c (Fprevious_single_char_property_change): Don't do
6046 arithmetic directly on lisp objects.
6047
25ad1371 6048 * editfns.c (find_field): Use EQ, not ==, to compare Lisp
b347b3fd
KR
6049 objects.
6050
6051 * keyboard.h (menu_item_eval_property): Declare.
6052
6053 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
6054 reuse as buffer name, instead of recreating (and discarding) every
6055 time a message is logged.
6056 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
6057 (current_message_1, truncate_message_1, set_message_1)
6058 (display_echo_area_1, resize_mini_window_1): Signatures changed.
6059 (current_message, truncate_echo_area, display_echo_area)
6060 (resize_echo_area_axactly): Changed calls.
b347b3fd 6061
975f250a 6062 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 6063 Lisp object.
975f250a 6064 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 6065 must be an integer, not a Lisp object.
975f250a 6066
46dc9912
KH
60672000-08-08 Kenichi Handa <handa@etl.go.jp>
6068
6069 * charset.c (Fchar_width): Doc fix.
6070
9f6d1a6c
GM
60712000-08-08 Gerd Moellmann <gerd@gnu.org>
6072
6073 * charset.c (Fstring_width): Doc fix.
6074
ff3d9573
GM
60752000-08-07 Gerd Moellmann <gerd@gnu.org>
6076
41e757a6 6077 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
6078 line, clear ascent and descent members of the iterator structure;
6079 the height of the continued line does not affect the height of the
6080 continuation line.
6081 (make_cursor_line_fully_visible): Do nothing if cursor is on a
6082 line taller than the window.
6083 (redisplay_window) <forced window start>: Handle case that the
6084 middle of the window is not found in any row.
6085 (dump_glyph_row): Show more information.
6086 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
6087 first text line in a glyph matrix.
6088
6089 * xterm.c (x_draw_image_foreground): Avoid drawing outside
6090 of the clip area when image doesn't have a mask.
6091
70fc58b3
GM
6092 * fns.c (sweep_weak_table): Fix survival conditions for
6093 key-or-value and key-and-value weakness.
6094
6095 * .gdbinit (xhashtable): New command.
6096
ac0e96ee
GM
6097 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
6098 tables out of the list of all weak hash tables.
6099
ff3d9573
GM
6100 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
6101 a new buffer is created, make sure echo_area_buffer[] references
6102 the new buffer.
6103
e0d8827b
EZ
61042000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
6105
6106 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
6107 the doc string.
6108
c6f35378
KH
61092000-08-07 Kenichi Handa <handa@etl.go.jp>
6110
6111 * syntax.c (skip_chars): Fix previous change. Make the handling
6112 of unibyte string consistent with that of regex search.
6113
1fd4c450
GM
61142000-08-05 Gerd Moellmann <gerd@gnu.org>
6115
e49aa397
GM
6116 * xmenu.c (popup_get_selection): Use xfree instead of free.
6117
6118 * fileio.c (Finsert_file_contents): Use xfree instead of free.
6119
6120 * editfns.c (Ftranspose_regions): Use xfree instead of free.
6121
6122 * callproc.c (child_setup): Use xfree instead of free.
6123
6124 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
6125 instead of malloc.
6126 (run_mac_command, closedir): Use `xfree' instead of `free'.
6127
6128 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
6129
6130 * eval.c (error): Use xfree instead of free.
6131
1fd4c450
GM
6132 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
6133
6134 * fns.c: Replace `illegal' with `invalid'.
e49aa397 6135 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 6136
82d497fc
KH
61372000-08-05 Kenichi Handa <handa@etl.go.jp>
6138
6139 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
6140 conversion.
6141
59f953a2
NF
61422000-08-04 Noah Friedman <friedman@splode.com>
6143
6144 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
6145 docstring.
6146
688351f2
GM
61472000-08-04 Gerd Moellmann <gerd@gnu.org>
6148
6149 * syntax.c (skip_chars): Fix typo in error message.
6150
2dad51cc
AS
61512000-08-04 Andreas Schwab <schwab@suse.de>
6152
6153 * m/ia64.h: Moved from s/ia64.h.
6154
99bb2c60
KH
61552000-08-04 Kenichi Handa <handa@etl.go.jp>
6156
082a1df2
KH
6157 * process.c (read_process_output): Big simplification. Handle
6158 composition and post-read-conversion of coding system correctly.
6159 (send_process): Handle composition correctly.
6160
6161 * callproc.c (Fcall_process): Handle post-read-conversion of
6162 coding system if any.
6163
99bb2c60
KH
6164 * coding.c (decode_coding_iso2022): More strict check for handling
6165 single shifting.
082a1df2
KH
6166 (coding_restore_composition): Pay attention to the case that
6167 cmp_data is not set properly (because of invalid code in the
6168 source text).
6169 (run_pre_post_conversion_on_str): Include text properties in the
6170 resulting string.
6171 (decode_coding_string): Set members of coding correctly.
99bb2c60 6172
f4988be7
GM
61732000-08-03 Gerd Moellmann <gerd@gnu.org>
6174
6175 * s/ia64.h: New file.
6176
6177 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
6178 Use NULL instead of 0 at the end of variable argument list of
6179 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
6180 sizeof (int) < sizeof (void *).
6181
6182 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
6183 of variable argument lists of XtVaGetValues and XtVaSetValues.
6184
6185 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
6186 variable argument lists of XtVaGetValues and XtVaSetValues.
6187
ead53494
GM
61882000-08-02 Gerd Moellmann <gerd@gnu.org>
6189
6190 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
6191 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
6192
6193 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
6194 prototype.
6195
6196 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
6197 in call to Fsingle_key_description.
6198
6199 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
6200 Callers changed.
6201
62022000-08-02 Colin Walters <walters@cis.ohio-state.edu>
6203
6204 * window.c (display_buffer_reuse_frames): New variable.
6205 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
6206 frames displaying BUFFER.
6207 (syms_of_window): Define Lisp variable
6208 display-buffer-reuse-frames.
6209
10b0f752
MB
62102000-08-01 Miles Bader <miles@gnu.org>
6211
6212 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
6213 when to constrain NEW_POS (they were pretty screwed up before).
6214
16425c4a
EZ
62152000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
6216
6217 * msdos.c (run_msdos_command): Save and restore the master
6218 environment, for the case that child_setup signals an error.
6219 When mirroring slashes in DOS shell commands, don't fail when
6220 argv[2] has embedded blanks.
da288c14
EZ
6221 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
6222 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
6223 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
6224
6225 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
6226 using alloca; free it after run_msdos_command returns.
6227
27f73852
DL
62282000-07-27 Dave Love <fx@gnu.org>
6229
6230 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't
6231 define.
6232 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently
6233 working.
6234
6235 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
6236
c0261b5e
EZ
62372000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
6238
6239 * editfns.c (lisp_time_argument): Fix last change.
6240
b548072f
GM
62412000-07-27 Gerd Moellmann <gerd@gnu.org>
6242
3ab82477
GM
6243 * fns.c (Fdelete): Make it work on vectors and strings in addition
6244 to lists.
6245
b548072f
GM
6246 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
6247 (syms_of_fns): Initialize new variables.
6248 (sweep_weak_table): Handle weakness `key-or-value' and
6249 `key-and-value'.
6250 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
6251 weakness, with t meaning the same as `key-and-value'.
6252
91ae8751
KH
62532000-07-27 Kenichi Handa <handa@etl.go.jp>
6254
6255 * coding.h (struct coding_system): Member safe_charset deleted.
6256
6257 * coding.c (Qsafe_charsets): This variable deleted.
6258 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system): New
6259 variables.
6260 (coding_safe_chars): New function.
6261 (CODING_SAFE_CHAR_P): New macro.
6262 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
6263 checking safe_charsets member of the coding system. Caller
6264 changed.
6265 (detect_coding_iso2022): New local variable safe_chars.
6266 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
6267 safe_charsets member of the coding system.
6268 (decode_coding_iso2022): New local variable safe_chars.
6269 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
6270 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
6271 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
6272 (ENCODE_UNSAFE_CHARACTER): New macro.
6273 (encode_coding_iso2022): New local variable safe_chars. Check
6274 unsafe chars.
6275 (setup_coding_system): Delete the code to initialize
6276 coding->safe_charses
6277 (intersection, find_safe_codings): New functions.
6278 (Ffind_coding_systems_region_internal): New function.
6279 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
6280 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
6281 variable and initialize it.
6282
6283 * fns.c (char_table_ref_and_index): New function.
6284
6285 * lisp.h (char_table_ref_and_index): Add prototype.
6286
34a7a267
SS
62872000-07-26 Sam Steingold <sds@gnu.org>
6288
6289 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 6290 (Ffloat_time): New built-in Lisp function.
34a7a267 6291
a95cb10a
GM
62922000-07-26 Gerd Moellmann <gerd@gnu.org>
6293
3353ef5a
GM
6294 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
6295 for the character code.
6296
6297 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
6298 GNU/Linux.
6299
a95cb10a
GM
6300 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
6301 if called for a popup menu.
6302 (xmenu_show): Store help string in widget values.
6303
b4a12321
DL
63042000-07-26 Dave Love <fx@gnu.org>
6305
6306 * syswait.h: Move some definitions.
6307 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
6308 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
6309 perspicuous definitions.
6310 (WTERMSIG): Fix bit pattern used.
6311
13f5ad37
KH
63122000-07-26 Kenichi Handa <handa@etl.go.jp>
6313
6314 * print.c (print_object): If vector printing is truncated, print
6315 "..." to indicate it as well as the case of list printing.
6316
070fe99c
GM
63172000-07-25 Gerd Moellmann <gerd@gnu.org>
6318
969065c3
GM
6319 * xdisp.c (next_element_from_display_vector): Improve comments.
6320
6321 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
6322 for the character code, and the rest for the face id as in 20.x.
6323 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
6324
6325 * window.c (window_display_table): Cleaned up.
6326
070fe99c
GM
6327 * syntax.c (Fforward_word): Add last arg nil in call of
6328 Fconstrain_to_field.
6329
bad77ef7
EZ
63302000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
6331
969065c3 6332 * fileio.c (Frename_file) [DOS_NT]: If the file names are
bad77ef7
EZ
6333 identical but for the letter-case, don't call
6334 barf_or_query_if_file_exists.
6335
c28da489
MB
63362000-07-25 Miles Bader <miles@gnu.org>
6337
6338 * editfns.c (find_field): Honor special `boundary' fields.
6339 (Qboundary): New variables.
6340 (syms_of_editfns): Initialize Qboundary.
6341 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
6342 Use scan_buffer instead of find_before_next_newline, because it
6343 allows us to detect the boundary case where there's a newline at
6344 the search limit.
6345 * lisp.h (Fconstrain_to_field): Update external declaration.
6346
e3c31fd5
GM
63472000-07-24 Gerd Moellmann <gerd@gnu.org>
6348
6349 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
6350 if that is nil.
c28da489 6351
c66c29a2
DL
63522000-07-24 Dave Love <fx@gnu.org>
6353
6354 * s/sunos4-0.h, s/sol2.h:
6355 (LIBS_TERMCAP): Move from m/sparc.h.
6356
6357 * m/sparc.h (TERMINFO): Moved to system files (probably only
6358 relevant for sunos4 judging by its vintage).
6359 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
6360 __arch64__.
6361
fbe0a958
EZ
63622000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
6363
6364 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
6365 name to single_keymap_panes.
6366
7d88e5c9
AS
63672000-07-24 Andreas Schwab <schwab@suse.de>
6368
6369 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
6370
e024b101
GM
63712000-07-24 Gerd Moellmann <gerd@gnu.org>
6372
6373 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
6374 parameters instead of using int parameters. Expect FN to accept
6375 EMACS_INT parameters.
6376 (display_echo_area, resize_echo_area_axactly, current_message)
6377 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
6378 with new argument list.
6379 (resize_mini_window_1): New callback function.
6380 (current_message_1, truncate_message_1, set_message_1): Change
6381 parameter lists to the new format expected by
6382 with_echo_area_buffer.
6383
25c1a9ce
KH
63842000-07-24 Kenichi Handa <handa@etl.go.jp>
6385
6386 * fontset.c (fontset_ref): Remove INLINE declaration.
6387 (fontset_ref_via_base): Likewise.
6388 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
6389 to downcase.
6390
7f987ac0
EZ
63912000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
6392
6393 * msdos.c (IT_note_mouse_highlight): Process overlays in the
6394 correct order of priority. If help echo was found in an overlay,
6395 use that overlay as the object in which the help echo was found.
6396
e2db3069
MB
63972000-07-22 Miles Bader <miles@gnu.org>
6398
6399 * textprop.c (Fprevious_single_char_property_change): The initial
6400 property value should be from the position preceding POSITION, not
6401 following it.
6402
5e3203e4
EZ
64032000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
6404
6405 * coding.c (syms_of_coding): Doc fix for
6406 inhibit-iso-escape-detection.
6407
62145073
GM
64082000-07-21 Gerd Moellmann <gerd@gnu.org>
6409
c20aeb83
GM
6410 * xterm.c (note_mouse_highlight): Process overlays in the right
6411 order of priority.
34a7a267 6412
743934db
GM
6413 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
6414
6415 * xterm.c (note_mouse_highlight): If help-echo was found in an
6416 overlay, use that overlay as the object in which the help was
6417 found.
6418
d1dc7e43 6419 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 6420
62145073
GM
6421 * window.c (foreach_window): Instead of a fake variable argument
6422 list, take one USER_DATA argument.
6423 (foreach_window_1): Likewise, and call callback functions with two
6424 args, the window and USER_DATA.
6425 (struct check_window_data): New struct.
6426 (check_window_containing): Use it.
6427 (window_from_coordinates): Set up a struct check_window_data for
6428 foreach_window.
6429 (add_window_to_list, freeze_window_start): Change parameters
6430 according to new calling convention.
6431
6432 * window.h (foreach_window): Change prototype.
6433
6434 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
6435
64362000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
6437
6438 * xmenu.c (menu_help_callback): Call show_help_echo with
6439 additional arguments OBJECT and POS.
6440
11270583
KH
64412000-07-21 Kenichi Handa <handa@etl.go.jp>
6442
07b14857
KH
6443 * data.c (Faset): Allow storing any multibyte character in a
6444 string. Convert unibyte string to multibyte if necessary.
6445
11270583
KH
6446 * xfns.c (x_encode_text): New function.
6447 (x_set_name): Use x_encode_text.
6448 (x_set_title): Likewise.
6449
6450 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
6451
6452 * xterm.h (x_encode_text): Add prototype.
6453
bc75b4fd
DL
64542000-07-20 Dave Love <fx@gnu.org>
6455
6456 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
6457 xfree, not free.
6458
48c14970
EZ
64592000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
6460
6461 * msdos.c (help_echo_window): New variable.
6462 (syms_of_msdos): Initialize and staticpro it.
6463 (IT_note_mode_line_highlight): Set help_echo_window.
6464 (IT_note_mouse_highlight): Ditto.
6465 (dos_rawgetc): Store help_echo_window in the second event produced
6466 for HELP_EVENTs.
6467
6468 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
6469 Record the object that generated the help echo and the position of
6470 that object in help_echo_object and help_echo_pos. Record that
6471 some glyphs in a row are displayed in mouse-face.
6472 (IT_update_begin): Don't clear mouse highlight unless one of the
6473 enabled glyph rows is marked as being displayed in mouse-face.
6474 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
6475 and position recorded in help_echo_object and help_echo_pos to the
6476 event queue.
6477 (IT_menu_display): Accept a new argument PN: the pane number of
6478 the current menu pane. Record the pane number and the item
6479 number of the item which has associated help string.
6480 (XMenuActivate): Update the prototype for help_callback in
6481 function declaration. Call IT_menu_display with the current menu
6482 pane number as an additional argument. Call help_callback with
6483 two additional arguments: the pane number and the item number of
6484 the menu item associated with the help text.
6485 (help_echo_object, help_echo_pos): New variables.
6486 (syms_of_msdos): Initialize them and staticpro help_echo_object.
6487
6488 * msdos.h (XMenuActivate): Update prototype.
6489
4279296d
GM
64902000-07-19 Gerd Moellmann <gerd@gnu.org>
6491
47db06aa
GM
6492 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
6493 Add some more prototypes.
6494
6495 * xterm.c, xterm.h: Add some more prototypes.
6496
6497 * lisp.h (Fnext_single_char_property_change): Add prototype.
6498
6499 * dispnew.c (direct_output_for_insert): Remove confusing
6500 outer local variable mouse_face_overwritten_p.
6501 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
6502
4279296d
GM
6503 * alloc.c (allocate_string_data): Don't copy old string contents.
6504
670acd62
KH
65052000-07-19 Kenichi Handa <handa@etl.go.jp>
6506
6507 * coding.c (code_convert_region): Delete text properties before
6508 shrinking the conversion region.
6509
7cea38bc
GM
65102000-07-18 Gerd Moellmann <gerd@gnu.org>
6511
dc1cac59
GM
6512 * dispnew.c (update_text_area): Write the whole row if it
6513 has mouse-face in it.
6514
85a8aca9
GM
6515 * xfaces.c (face-alternative-font-family-alist): Remove
6516 DEFVAR_LISP; staticpro instead.
6517
34a7a267 6518 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
6519 new arguments.
6520
6521 * keyboard.c (show_help_echo): Add parameter WINDOW.
6522 (read_char): Call show_help_echo with window extracted from Lisp
6523 help event.
6524 (gen_help_event): Add parameter WINDOW.
6525
6526 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
6527
6528 * xterm.c (help_echo_window): New variable.
6529 (note_mouse_highlight, note_tool_bar_highlight): Set
6530 help_echo_window.
6531 (XTread_socket): Pass help_echo_window to gen_help_event.
6532 (syms_of_xterm): Initialize and staticpro help_echo_window.
6533
f8276b77
DL
65342000-07-18 Dave Love <fx@gnu.org>
6535
6536 * Makefile.in: Fix dependencies of blockinput.h on atimer.h,
6537 systime.h.
6538
088831a6
GM
65392000-07-18 Gerd Moellmann <gerd@gnu.org>
6540
3d6cd763
GM
6541 * alloc.c (allocate_string_data): If string had already data
6542 assigned, copy old contents to new string data.
6543
6544 * coding.c (syms_of_coding): Fix typo in spelling of variable
6545 `inhibit-iso-escape-detection'.
6546
088831a6
GM
6547 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
6548
6549 * Makefile.in: Add dependencies on dispextern.h.
6550 (alloca.o): Don't define malloc and define EMACS_FREE instead of
6551 `free'; both can conflict with system header files.
6552
bc8a8d55
KH
65532000-07-18 Kenichi Handa <handa@etl.go.jp>
6554
6555 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
6556 undefined.
6557
069f5950
DL
65582000-07-18 Dave Love <fx@gnu.org>
6559
6560 * window.c (Fwindow_list): Declare arg `window'.
6561
aa96c820
KH
65622000-07-18 Kenichi Handa <handa@etl.go.jp>
6563
6564 * coding.c (setup_coding_system): Don't override the explicitly
6565 specified designations.
6566
06be8d32
MB
65672000-07-15 Miles Bader <miles@gnu.org>
6568
6569 * editfns.c (char_property_eq, char_property_stickiness): Renamed
6570 from `text_property_eq' and `text_property_stickiness', respectively.
6571 (find_field, Fconstrain_to_field, char_property_eq)
6572 (char_property_stickiness): Changed to call char-property functions
6573 instead of text-property-only ones.
6574
6575 * textprop.c (Fnext_single_char_property_change): Made a subr (was
6576 `next_single_char_property_change'). Do more error checking, and
6577 cleanup limit behavior.
6578 (Fprevious_single_char_property_change): New function.
6579 (syms_of_textprop): Initialize new subrs.
6580
6581 * xdisp.c (display_prop_end, invisible_text_between_p):
6582 Call Fnext_single_char_property_change instead of
6583 next_single_char_property_change.
6584
3fddcdc3
JR
65852000-07-15 Jason Rumney <jasonr@gnu.org>
6586
6587 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
6588 after menu is finished with.
6589 (add_menu_item): Only consider wv->title as a menu title.
6590 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
6591
6592 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
6593 null title.
6594 (FONT_REGEXP): Remove unused macro, and its sub-components.
6595 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
6596
6597 * w32term.c (help_echo_object, help_echo_pos): New variables.
6598 (note_mode_line_highlight): Store additional information about the
6599 help-echo in help_echo_object and help_echo_pos. Check both
6600 `local-map' and `keymap' properties for changing the cursor
6601 (note_mouse_highlight): Store additional information about the
6602 help-echo in help_echo_object and help_echo_pos.
6603 (note_tool_bar_highlight): Set help_echo_object to nil and
6604 help_echo_pos to -1.
6605 (w32_read_socket): Use gen_help_event instead of filling
6606 input_events manually.
6607 (syms_of_w32term): Staticpro help_echo_object.
6608 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
6609 set, arrange for a mouse-highlight redisplay in
6610 XTframe_up_to_date.
6611 (x_clear_mouse_face): New function.
6612 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
6613 (x_update_window_begin): No need to turn off the mouse
6614 highlight here.
6615 (show_mouse_face): Set the mouse_face_p flag of glyph rows
6616 depending on whether they contain glyphs highlighted in
6617 mouse-face.
6618 (x_fill_stretch_glyph_string): Consume runs of stretch
6619 glyphs instead of a single one.
6620 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
6621 with new argument list.
6622 (x_set_glyph_string_gc): Make sure the face's GC is valid.
6623 (x_append_glyph, x_append_composite_glyph)
6624 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
6625 changes in struct glyph starting 1999-12-27. See comments for
6626 xterm.c on 2000-07-05.
6627
178c5d9c
SS
66282000-07-14 Sam Steingold <sds@gnu.org>
6629
6630 * xfaces.c (realize_x_face): Fix the last patch:
6631 check `default_face' before dereferencing.
6632
6fe533f6
DL
66332000-07-14 Dave Love <fx@gnu.org>
6634
069f5950 6635 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 6636
dd7b81cf
KH
66372000-07-14 Kenichi Handa <handa@etl.go.jp>
6638
0693904a 6639 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 6640 default_face's fontset, not using the default fontset.
0693904a 6641
dd7b81cf
KH
6642 * coding.c (inhibit_iso_escape_detection): New variable.
6643 (syms_of_coding): Make it a Lisp variable.
6644 (detect_coding_iso2022): If inhibit_iso_escape_detection is
6645 nonzero, ignore ISO2022's escape sequence.
6646
d5aa31d8
GM
66472000-07-14 Gerd Moellmann <gerd@gnu.org>
6648
e5acf0ca
GM
6649 * alloca.c (malloc) [emacs]: Define as xmalloc.
6650
bd23a692
GM
6651 * xfns.c (Fx_show_tip): If frame parameters contain a position,
6652 use that instead of the mouse position. Add parameters DX and DY.
6653
6654 * dispextern.h (Fx_show_tip): Adjust number of parameters
6655 in prototype.
6656
9662da0b
GM
6657 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
6658 if HELP is a function, call it with OBJECT and POS as parameters
6659 to get the help to display.
6660 (gen_help_event, kbd_buffer_store_help_event): New functions.
6661 (kbd_buffer_get_event): Construct the Lisp help-event differently.
6662 (read_char): Call show_help_echo with new parameters.
6663
178c5d9c 6664 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
6665 Add prototypes.
6666
6667 * xterm.c (help_echo_object, help_echo_pos): New variables.
6668 (note_mode_line_highlight): Store additional information about the
6669 help-echo in help_echo_object and help_echo_pos. Check both
6670 `local-map' and `keymap' properties for changing the cursor
6671 (note_mouse_highlight): Store additional information about the
6672 help-echo in help_echo_object and help_echo_pos.
6673 (note_tool_bar_highlight): Set help_echo_object to nil and
6674 help_echo_pos to -1.
6675 (XTread_socket): Use gen_help_event instead of filling
6676 input_events manually.
6677 (syms_of_xterm): Staticpro help_echo_object.
6678
6679 * xmenu.c (menu_highlight_callback): Use
6680 kbd_buffer_store_help_event instead of setting up and input_event
6681 structure manually.
6682
6683 * xdisp.c (eval_form): GCPRO argument sexpr.
6684 (call_function): New function.
6685 (handle_single_display_prop): Use call_function and FUNCTIONP
6686 instead of checking whether if font_height is a symbol and
6687 using eval_form.
6688
6689 * eval.c (internal_condition_case_2): New function.
6690
6691 * lisp.h (FUNCTIONP): New macro.
6692 (internal_condition_case_2, call_function): Add prototypes.
6693
d5aa31d8
GM
6694 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
6695 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
6696 Always set `arg' member of input_events.
6697 (construct_menu_click): Unused function removed.
6698
6699 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
6700
6701 * w32term.c (construct_mouse_click, construct_mouse_wheel)
6702 (construct_drag_n_drop, x_scroll_bar_handle_click)
6703 (w32_read_socket): Always set `arg' member of input_events.
6704
6705 * keyboard.c (show_help_echo): Use eval_form. Add comment.
6706
6707 * lisp.h (eval_form): Add prototype.
6708
6709 * xdisp.c (eval_form): Make it externally visible.
6710
0f1a9b23
GM
67112000-07-13 Gerd Moellmann <gerd@gnu.org>
6712
6713 * xterm.c (x_handle_tool_bar_click): Store the frame in the
6714 frame_or_window slot of TOOL_BAR_EVENT input events instead of
6715 consing. For prefix events, store the frame in the `arg' slot of
6716 the event, otherwise store the key there.
6717 (XTread_socket): Instead of consing, use the frame_or_window slot
6718 of HELP_EVENTs for the frame, and the `arg' slot for the help
6719 string.
6720
6721 * xmenu.c (menu_highlight_callback): Store help string in the
6722 `arg' member of the input event; don't cons.
6723 (menubar_selection_callback): Use the `arg' slot of input events
6724 to queue additional information, instead of consing.
6725
6726 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
6727
6728 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
6729 TOOL_BAR_EVENTs.
6730 (w32_read_socket): Adapt to changes in HELP_EVENTs.
6731
6732 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
6733 input events to queue additional information, instead of consing.
6734
6735 * keyboard.c (kbd_buffer_gcpro): Renamed from
6736 kbd_buffer_frame_or_window. Now used for all Lisp objects
6737 referenced from the input queue.
6738 (kbd_buffer_store_event): Always use structure assignment for
6739 copying input events. Record all Lisp objects referenced from
6740 events in kbd_buffer_gcpro.
6741 (kbd_buffer_get_event): Construct Lisp `help-echo' events
6742 differently from input events. Test for prefix menu_bar_events
6743 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
6744 event in kbd_buffer_gcpro to nil.
6745 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
6746 frame_or_window is equal to its arg member as prefix events.
6747 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
6748 used by an input event to nil.
6749 (init_keyboard): Use two times the size of the input queue
6750 for kbd_buffer_gcpro.
6751 (syms_of_keyboard): Likewise.
6752
6753 * emacs.c (handle_USR2_signal, handle_USR1_signal): Use
6754 USER_SIGNAL_EVENT.
6755
6756 * termhooks.h (struct input_event): Add member `arg'.
6757 (MENU_BAR_EVENT): Renamed from menu_bar_event.
6758 (USER_SIGNAL_EVENT): Renamed from user_signal.
6759
6760 * xfaces.c (ASET): Remove definition.
6761
6762 * lisp.h (AREF, ASET, ASIZE): New macros.
6763
6764 * fontset.c (AREF, ASIZE): Remove definitions.
6765
6766 * fns.c (AREF): Remove definition.
178c5d9c 6767
0f1a9b23
GM
6768 * composite.c (AREF): Remove definition.
6769
712eaef2
GM
67702000-07-12 Gerd Moellmann <gerd@gnu.org>
6771
d8ee7803
GM
6772 * dispnew.c (redraw_overlapped_rows): Add missing local.
6773 (scrolling_window): Remove debug code.
6774
712eaef2
GM
6775 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
6776 Before scrolling, turn off a mouse-highlight in the window
6777 being scrolled.
6778
6779 * xterm.c (x_update_window_end): Add parameter
6780 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
6781 redisplay in XTframe_up_to_date.
6782 (x_clear_mouse_face): New function.
6783 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
6784
6785 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
6786 current glyph row.
6787 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
6788 it when any row is written to that contains glyphs highlighted in
6789 mouse-face.
6790 (update_window): Call the window update end hook with new
6791 parameter MOUSE_FACE_OVERWRITTEN_P.
6792 (direct_output_for_insert): Give up if row contains mouse-face.
6793
6794 * dispextern.h (struct redisplay_interface): Add parameter
6795 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
6796 (clear_mouse_face): New function pointer member.
6797
02010917
SM
67982000-07-11 Stefan Monnier <monnier@cs.yale.edu>
6799
6800 * syntax.c (back_comment): Use one switch rather than a few `if's.
6801 Obey open_paren_in_column_0_is_defun_start.
6802 When reverting to the `slow' method, try to nicely handle the case
6803 of nested comments by checking that the comment-starter we found
6804 does indeed match the comment-ender.
6805 (scan_sexps_forward, scan_sexps_forward):
6806 Ignore excessive opening parenthesis rather than throwing an error.
6807
d76c03ea
GM
68082000-07-11 Gerd Moellmann <gerd@gnu.org>
6809
6810 * doc.c (Fsubstitute_command_keys): Handle case that a GC
6811 in Fwhere_is_internal or get_keymap_1 relocates string contents.
6812
6813 * dispnew.c (direct_output_forward_char): Give up if currently
6814 displaying a message instead of the minibuffer contents.
6815
6816 * xterm.c (x_update_window_begin): No need to turn off the mouse
6817 highlight here.
6818 (show_mouse_face): Set the mouse_face_p flag of glyph rows
6819 depending on whether they contain glyphs highlighted in
6820 mouse-face.
6821
6822 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
6823 compare the mouse_face_p flags of both rows.
6824
6825 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
6826
d55ead18
EZ
68272000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
6828
6829 * keyboard.c (show_help_echo): Accept additional parameter
6830 ok_to_overwrite_keystroke_echo.
6831 (read_char): Call show_help_echo with a zero
6832 ok_to_overwrite_keystroke_echo argument.
6833 * keyboard.h (show_help_echo): Update prototype of
6834 show_help_echo.
6835 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
6836 ok_to_overwrite_keystroke_echo argument.
6837 * w32menu.c (w32_menu_display_help): Call show_help_echo with
6838 non-zero ok_to_overwrite_keystroke_echo argument.
6839
df75b1a3
GM
68402000-07-10 Gerd Moellmann <gerd@gnu.org>
6841
4b92c49a
GM
6842 * xdisp.c (try_window_id): If changes are all below what is
6843 displayed in the window, and point is in the window, we still
6844 might have to find point on the display.
6845
6846 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
6847 glyphs instead of a single one.
6848 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
6849 with new argument list.
6850 (x_set_glyph_string_gc): Make sure the face's GC is valid.
6851
df75b1a3
GM
6852 * keymap.c (get_keymap_1): Add comment that this function can GC.
6853 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
6854 comment that functions can GC.
6855 (Fset_keymap_parent): GCPRO arg KEYMAP.
6856
4314cf3e
EZ
68572000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
6858
6859 * msdos.c (XMenuActivate): After exiting the menu, restore the
6860 echo area message and erase it.
6861
ab49ce15
KH
68622000-07-10 Kenichi Handa <handa@etl.go.jp>
6863
6864 * fontset.c (Ffontset_info): Make the return value more compatible
6865 with that of Emacs 20.
6866
090a072f
GM
68672000-07-07 Gerd Moellmann <gerd@gnu.org>
6868
6869 * eval.c (Fsignal): Handle case that backtrace_list is null.
6870
f92de4a6
KH
68712000-07-07 Kenichi Handa <handa@etl.go.jp>
6872
6873 * ccl.c (Fccl_execute): Typo fixed.
6874
dd8888a1
GM
68752000-07-06 Gerd Moellmann <gerd@gnu.org>
6876
e5c81191 6877 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 6878
dd8888a1
GM
6879 * window.c (Fwindow_list): Reverse list at the end.
6880 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
6881 means allow windows on OWINDOW's frame, only.
6882 (window_loop): Simplified; use Fwindow_list.
6883
6884 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
6885
485266d0
GM
68862000-07-05 Gerd Moellmann <gerd@gnu.org>
6887
6888 * xterm.c (XTread_socket): Increment handling_signal at the start,
6889 decrement it at the end.
6890
6891 * eval.c (handling_signal): New variable.
6892 (Fsignal): Abort if handling_signal is non-zero.
6893
6894 * lisp.h (handling_signal): External declaration.
178c5d9c 6895
485266d0
GM
6896 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
6897
80fcd514
KR
68982000-07-05 Ken Raeburn <raeburn@gnu.org>
6899
6900 Sound support for NetBSD through "Linux emulation" support:
6901 * config.in (HAVE_SOUNDCARD_H): Undef.
6902 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
6903 * Makefile.in (LIBSOUND): New variable.
6904 (LIBES): Include it.
6905 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and
6906 <soundcard.h>.
6907 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined
6908 elsewhere.
6909 (vox_open): Use DEFAULT_SOUND_DEVICE.
6910 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
6911
d5c5cddd
GM
69122000-07-05 Gerd Moellmann <gerd@gnu.org>
6913
6914 * print.c (print_error_message): If Vsignaling_function is set,
6915 show it in *Messages*.
6916
6917 * lisp.h (Vsignaling_function): External declaration.
6918
6919 * eval.c (Vsignaling_function): New variable.
6920 (Fsignal): Compute it.
6921 (syms_of_eval): Staticpro it.
6922
65171e3a
DL
69232000-07-05 Dave Love <fx@gnu.org>
6924
6925 * syswait.h: Use the autoconf recommended approach. Old code
6926 #if'd out in case we need to revert.
6927
178c5d9c 6928 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 6929
e2c46326
AI
69302000-07-05 Andrew Innes <andrewi@gnu.org>
6931
6932 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
6933 when non-NULL instead of __morecore, to take account of buffer
6934 memory. This also solves a problem with spurious memory warnings
6935 on Windows.
6936
6937 * ralloc.c: Make real_morecore non-static.
6938
6939 * eval.c (internal_condition_case): Comment out abort if
6940 interrupt_input_blocked is not zero.
6941
6942 * makefile.nt: Add support for `bootstrap' and related targets.
6943 Include minimal debug info in emacs.exe in release build.
6944 Remove all dependencies on lisp.h, and fixup some others.
6945
6946 * w32.c (init_environment): Install code from 20.7 for providing
6947 default values for environment variables, based on the
6948 executable's own location.
6949 (map_w32_filename): Handle filenames that are longer than
6950 MAX_PATH.
6951 (sys_socket): Install socket inheritance bug fix from 20.7.
6952
6953 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
6954 here via blockinput.h).
6955
a027a91b
SM
69562000-07-05 Stefan Monnier <monnier@cs.yale.edu>
6957
e4b31601
SM
6958 * w32menu.c (w32_menu_display_help):
6959 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
6960
6961 * keyboard.h (show_help_echo): Declare.
6962
6963 * keyboard.c (show_help_echo): New function, extracted from read_char.
6964 Feval its `msg' argument if it's a cons cell.
6965 (read_char): Use it.
4cf8d9d5 6966 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 6967
178c5d9c 6968 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 6969 (note_tool_bar_highlight, XTread_socket):
178c5d9c 6970 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
6971 (dos_rawgetc):
6972 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
6973 (note_tool_bar_highlight, w32_read_socket):
6974 Do not gratuitously ignore non-string `help-echo' properties.
6975
88d75730
GM
69762000-07-05 Gerd Moellmann <gerd@gnu.org>
6977
969f7e79
GM
6978 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
6979
71201b00
GM
6980 * window.c (delete_all_subwindows): Reset Vwindow_list.
6981
88d75730
GM
6982 * xterm.c (x_append_glyph, x_append_composite_glyph)
6983 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
6984 changes in struct glyph starting 1999-12-27. Some bit-fields of
6985 struct glyph were not set, which made glyphs unequal when compared
6986 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
6987 effects were the result. This also depended on the contents of
6988 memory returned by xmalloc. If flickering happens again, activate
6989 the code in clear_glyph_row that's in #if 0. If the flickering is
6990 gone with that, chances are that it is caused by something
6991 similar.
6992
6993 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 6994
88d75730
GM
6995 * dispextern.h: Add some comments.
6996
6997 * window.c (add_window_to_list): Add parameter LIST.
6998 (window_list): Order list so that, for each frame, windows are
6999 in canonical order, and so that frames appear in the list in
7000 the order given by Vframe_list.
7001 (next_window): Reverse the handling of NEXT_P.
7002
53654733
GM
70032000-07-04 Gerd Moellmann <gerd@gnu.org>
7004
87efd256
GM
7005 * window.c (Vwindow_list): New variable.
7006 (make_window, delete_window): Set Vwindow_list to nil.
7007 (check_window_containing): New function.
7008 (window_from_coordinates): Rewritten.
7009 (add_window_to_list, window_list, candidate_window_p)
7010 (decode_next_window_args, next_window): New functions.
7011 (Fnext_window, Fprevious_window): Rewritten in terms of
7012 next_window.
7013 (Fwindow_list): New function.
7014 (Fother_window): Cleaned up.
7015 (foreach_window): Add a longer "variable argument list". Let
7016 callback function return 0 to indicate that cycling over windows
7017 should stop.
7018 (foreach_window_1): Likewise.
7019 (freeze_window_start): Return int.
7020 (init_window): New function.
7021 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
7022
7023 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
7024 input_event with bzero.
7025 (main): Call init_window.
7026
53654733
GM
7027 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
7028 a menu filter.
7029
4a8c194f
KH
70302000-07-04 Kenichi Handa <handa@etl.go.jp>
7031
7032 * composite.h (make_composition_value_copy): Extern it.
7033
7034 * composite.c (make_composition_value_copy): New function.
7035
7036 * editfns.c (Fformat): While copying text properties, make each
7037 composition property value a copy.
7038
7039 * fns.c (concat): While copying text properties, make each
7040 composition property value a copy.
7041
831a6cb0
GM
70422000-07-03 Gerd Moellmann <gerd@gnu.org>
7043
2f516940
GM
7044 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
7045
178c5d9c 7046 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
7047 marked already.
7048
831a6cb0
GM
7049 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
7050 include those frames as candidates which have their focus
7051 redirected to the minibuffer frame.
7052
d9c4f922
SM
70532000-07-03 Stefan Monnier <monnier@cs.yale.edu>
7054
7055 * fns.c (Fputhash): Return `value' rather than nil.
7056
3780bc22
GM
70572000-06-30 Gerd Moellmann <gerd@gnu.org>
7058
97d176db
GM
7059 * frame.c (next_frame): Don't check focus redirection in case
7060 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
7061 unless their focus is redirected, which contradicts the
7062 specification of next-frame, and leads to infinite loops in
7063 certain situations when cycling through windows with next-window.
7064
dca9961d
KH
70652000-06-30 Kenichi Handa <handa@etl.go.jp>
7066
7067 * coding.c (code_convert_region): Even if the length of text is
7068 zero, try to convert it if coding->type is coding_type_ccl.
7069 (decode_coding_string, encode_coding_string): Likewise.
7070
d5483ab1
GM
70712000-06-28 Gerd Moellmann <gerd@gnu.org>
7072
af5c25e1 7073 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 7074 the display if windows_or_buffers_changed.
af5c25e1
GM
7075
7076 * dispnew.c (struct row_entry): New structure.
7077 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
7078 (row_table_size, old_lines, new_lines, old_lines_size)
7079 (new_lines_size, run_pool, runs_size, runs): New variables.
7080 (add_row_entry): New function.
7081 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 7082 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
7083 holding them in local variables. Use a larger hash table whose
7084 size depends on glyph matrix sizes. Don't use bzero to clear the
7085 hash table; instead, clear used slots only.
7086
7087 * fns.c (next_almost_prime): Make it externally visible.
7088
7089 * lisp.h (next_almost_prime): Add prototype.
7090
d5483ab1
GM
7091 * s/isc4-0.h (sigunblock): Define.
7092
7093 * s/sco5.h (sigunblock): Define.
7094
93e40f40
DL
70952000-06-27 Dave Love <fx@gnu.org>
7096
7097 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
7098 (moved to osf5-0.h).
7099 [!NOT_C_CODE]: Protect string.h stuff.
7100
7101 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
7102 (sys_siglist, NSIG): Definitions moved here from osf1.h.
7103
3c4b7685
GM
71042000-06-27 Gerd Moellmann <gerd@gnu.org>
7105
97d176db 7106 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
7107 below the last line from the needed window height.
7108
32cad0aa
SM
71092000-06-26 Stefan Monnier <monnier@cs.yale.edu>
7110
7111 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
7112 (Fwidget_get): Use it.
7113 (syms_of_fns): Defsubr it.
7114
2c69ced2
GM
71152000-06-26 Gerd Moellmann <gerd@gnu.org>
7116
178c5d9c 7117 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
7118 display info for XIM.
7119 (xim_open_dpy): Likewise.
7120 (xim_close_dpy): Don't free the display info's XIM.
7121
7122 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
7123
7124 * config.in (USE_XIM): New define.
7125
3fc720e4
GM
7126 * keymap.c (get_keyelt): For menu-items containing a `:filter
7127 FILTER', apply FILTER to the menu-item's definition to get the
7128 real definition to use.
7129
7130 * lisp.h (QCfilter): External declaration.
7131
2c69ced2
GM
7132 * xfns.c (Fimage_size): New function.
7133 (syms_of_xfns): Defsubr it.
7134
f978b2a2
AS
71352000-06-26 Andreas Schwab <schwab@suse.de>
7136
7137 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
7138 Fstring_as_unibyte.
7139
94cc7892
DL
71402000-06-25 Dave Love <fx@gnu.org>
7141
7142 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag,
7143 tgetnum.
7144
7145 * Makefile.in (blockinput.h): Depend on atimer.h.
7146 (atimer.h): Depend on systime.h.
7147
7148 * blockinput.h: Protect against multiple inclusion. Include
7149 atimer.h.
7150
7151 * atimer.h: Protect against multiple inclusion. Include
7152 systime.h.
7153
7154 * lisp.h (swap_in_global_binding): Declare.
7155
b8c24556
KR
71562000-06-24 Ken Raeburn <raeburn@gnu.org>
7157
7158 * process.c (Fopen_network_stream): Turn off atimers for duration
7159 of call to connect. (Patch from Gerd.)
7160
8cf8560b
DL
71612000-06-23 Dave Love <fx@gnu.org>
7162
511c7541
DL
7163 * ralloc.c: Maybe include unistd.h
7164
8cf8560b
DL
7165 * emacs.c (setgrp): Undefine before defining.
7166 (malloc_warning, set_time_zone_rule, index): Prototype.
7167
7168 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
7169 HAVE_STRUCT_TIMEZONE.
7170
7171 * s/osf1.h: Move string.h hack here from alpha.h and make it
7172 conditional.
7173 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
7174 _XOPEN_SOURCE.
7175 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
7176 (SOCKLEN_TYPE): Don't define.
7177
7178 * m/alpha.h: Remove string.h hack.
7179
7180 * s/osf5-0.h: New file.
7181
7182 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
7183 include time.h, done by systime.h.
7184 [__FreeBSD__]: Remove redundant includes.
7185
3fc720e4 7186 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
7187 (delete_temp_file): Return Qnil to avoid warning.
7188
7189 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
7190
7191 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
7192 HAVE_X_WINDOWS.
7193
7194 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
7195
7196 * composite.h (compose_text): Declare.
7197
7198 * xterm.c: Don't include sys/types.h unconditionally. Don't
7199 protect its inclusion with !USG (following xmenu.c).
7200
ea055732
GM
72012000-06-23 Gerd Moellmann <gerd@gnu.org>
7202
7203 * xfns.c (x_create_tip_frame): Initialize frame's colors like
7204 in x_create_frame.
7205
74b01b80
EZ
72062000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
7207
7208 * coding.c (decode_eol_post_ccl): Special handling for undecided
7209 and inconsistent EOL types.
7210
64f3a166
GM
72112000-06-22 Gerd Moellmann <gerd@gnu.org>
7212
16cf31f7
GM
7213 * xrdb.c (x_load_resources): Add default resource for scroll bar's
7214 trough color and main window's background color.
7215
178c5d9c 7216 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events
16cf31f7
GM
7217 differently.
7218
7219 * xterm.h (Xt_app_con): External declaration.
7220
7221 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 7222
486a103d
GM
7223 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
7224
64f3a166
GM
7225 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
7226 (handle_invisible_prop): Record the start of invisible text in
7227 it->add_overlay_start.
7228 (struct overlay_entry): Add member `overlay'.
7229 (handle_overlay_change): Simplify.
7230 (next_overlay_string): After having processed overlay strings at the
7231 end of the buffer, record that fact in
7232 it->overlay_strings_at_end_processed_p.
7233 (compare_overlay_entries): If before- and after-strings come
7234 from the same overlay, let before-strings come first.
7235 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
7236 (load_overlay_strings): Take it->add_overlay_start into account
7237 when adding overlay strings.
7238
7239 * dispextern.h (struct it): Add member add_overlay_start.
7240
bb746ea6
DL
72412000-06-22 Dave Love <fx@gnu.org>
7242
7243 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
7244
7245 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
7246
a8f573f3
KH
72472000-06-22 Kenichi Handa <handa@etl.go.jp>
7248
7249 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
7250 is greater than 0.
7251
9f2bbc92
DL
72522000-06-21 Dave Love <fx@gnu.org>
7253
178c5d9c 7254 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 7255
3ee5041c
SM
72562000-06-21 Stefan Monnier <monnier@cs.yale.edu>
7257
7258 * syntax.c (back_comment): Simplify string-parity counting (with
7259 the added benefit of handling multiple string-styles as long as
7260 they are not intertwined).
7261 Jump to the slow code as soon as a comment starter is found in
7262 a "string_lossage" position. Fixes the case: " /* " /* " */.
7263
4c343001
DL
72642000-06-21 Dave Love <fx@gnu.org>
7265
7266 * Makefile.in: Use GETLOADAVG_LIBS.
7267
7268 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
7269 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
7270
e6365855
SM
72712000-06-20 Stefan Monnier <monnier@cs.yale.edu>
7272
7273 * syntax.c (describe_syntax): Recognize the `n'estable bit.
7274 (Fforward_comment, scan_lists):
7275 Check the comstyle of single-char comment-starters.
7276 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
7277 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
7278 Check the comstyle of single-char comment-starters.
7279 Clarify control-flow around the Scomment case.
e6365855 7280
5700d2cc
DL
72812000-06-20 Dave Love <fx@gnu.org>
7282
d355bd8a
SM
7283 * fns.c (make_hash_table, maybe_resize_hash_table):
7284 Cast arg of next_almost_prime.
5700d2cc 7285
178c5d9c 7286 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
7287
7288 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
7289 and unistd.h.
7290
4a27bdfb
GM
72912000-06-20 Gerd Moellmann <gerd@gnu.org>
7292
a61d762c
GM
7293 * keyboard.c (adjust_point_for_property): Check if display
7294 property should be treated as intangible by looking at its
7295 value.
7296
178c5d9c 7297 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
7298 (display_prop_intangible_p): New functions.
7299
7300 * dispextern.h (display_prop_intangible_p): Add prototype.
7301
7302 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 7303
4a27bdfb
GM
7304 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
7305 argument to sigprocmask.
7306
7307 * s/sco5.h (sigblock): Redefined to pass a pointer as second
7308 argument to sigprocmask.
7309
7310 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
7311 sigprocmask_set, and pass a pointer to it to sigprocmask.
7312
7313 * sysdep.c (sigprocmask_set): New variable.
7314
7315 * fileio.c (make_temp_name): Don't use `%s' in string passed to
7316 report_file_error.
7317
427ec082
SS
73182000-06-20 Sam Steingold <sds@gnu.org>
7319
7320 * xrdb.c: Don't declare xmalloc, xrealloc.
7321
8972fe79 73222000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
7323
7324 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
7325 (re_comp): Cast gettext return value to avoid complaints when
7326 !HAVE_LIBINTL.
7327
074b6efe
DL
73282000-06-20 Dave Love <fx@gnu.org>
7329
f85c008a
DL
7330 * m/stride.h, m/mips.h: Don't define HAVE_GETWD,
7331 HAVE_GETTIMEOFDAY.
7332
5700d2cc 7333 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 7334
d355bd8a 7335 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
7336
7337 * m/alpha.h: Don't declare xmalloc, xrealloc.
7338
0af4f205
DL
7339 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
7340
7341 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
7342
7343 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
7344
7345 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
7346 HAVE_GETWD.
7347
074b6efe
DL
7348 * keyboard.h (poll_for_input_1): Declare.
7349
7350 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
7351
7352 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
7353
7354 * doprnt.c: Don't declare xmalloc, xrealloc.
7355
7356 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
7357 (getenv, ctime, getwd): Removed.
7358 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
7359
7360 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
7361 x_set_tool_bar_lines.
7362
7363 * config.in: Add HAVE_GETWD. Move some definitions above
7364 machine/system includes.
7365
68a5e97b
KH
73662000-06-20 Kenichi Handa <handa@etl.go.jp>
7367
95417e1e
KH
7368 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
7369
68a5e97b
KH
7370 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
7371 contain information about ENCODING.
7372
7373 * fontset.c (FONTSET_ASCII): Use the first element of char table
7374 for an ASCII font, not defalt slot.
7375 (fontset_ref_via_base): If FONTSET doesn't contain information for
7376 C, try the default fontset.
7377 (make_fontset): Don't copy the default fontset.
7378 (fontset_font_pattern): Likewise.
7379 (accumulate_font_info): If ELT is nil, use the corresponding
7380 element in the default fontset.
7381
3b4fa1b2
DL
73822000-06-19 Dave Love <fx@gnu.org>
7383
943e731c
DL
7384 * syntax.c (Fparse_partial_sexp): Doc fix.
7385
7386 * regex.h: Test PROTOTYPES as well as __STDC__.
7387
3b4fa1b2
DL
7388 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
7389 errno, strerror. Put text after #endif in comment.
7390
7391 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for
7392 pcc).
7393
7394 * xterm.c (x_frame_of_widget): Likewise.
7395
cdf0357b
GM
73962000-06-19 Gerd Moellmann <gerd@gnu.org>
7397
7398 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
7399 to Vfundamental_mode_abbrev_table.
7400
7401 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
7402 bogus objects are marked. This slows down GC by ~80 percent, but
7403 it might be worth trying when debugging GC-related problems.
7404 This feature requires conservative stack marking to be enabled.
7405
7406 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
7407 returns XLookupChars, reset `modifiers' to zero.
7408
998e9f8c
DL
74092000-06-19 Dave Love <fx@gnu.org>
7410
7411 * mktime.c: Unprotoized.
7412
18e21ce8 74132000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
7414
7415 * data.c (set_internal): If variable is frame-local,
7416 store the new value immediately into the frame parameter alist.
7417
140c4ac6
KR
74182000-06-19 Ken Raeburn <raeburn@gnu.org>
7419
14358466
KR
7420 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
7421 in the custom handler pointer.
7422
140c4ac6
KR
7423 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
7424 value, or checks for CHAR_META can fail when Lisp_Object is a
7425 union type.
7426 * keymap.c (get_keyelt): Likewise.
7427
10d7bf84
KH
74282000-06-19 Kenichi Handa <handa@etl.go.jp>
7429
7430 * ccl.h (struct ccl_program): New member eol_type.
7431 (struct ccl_spec): New member cr_carryover.
7432
7433 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
7434 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
7435
7436 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
7437 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
7438 (decode_eol_post_ccl): New function.
7439 (decode_coding): Don't detect EOL format here for CCL based coding
7440 systems.
7441 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
7442 decode_eol_post_ccl after running the CCL program.
7443 (code_convert_region): Don't detect EOL format here for CCL based
7444 coding systems.
7445 (decode_coding_string): Likewise.
7446
52e386c2
KR
74472000-06-18 Ken Raeburn <raeburn@gnu.org>
7448
7449 * charset.c (update_charset_table): Use XINT on "iso_final_char"
7450 when treating it as an integer.
7451
7452 * coding.h (encode_coding_string): Declare.
7453
7454 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
7455 it as an integer.
7456
7457 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
7458 "xkeymap" to avoid shadowing the "enum map_type" value that needs
7459 to be passed to get_local_map.
7460
7461 * sound.c (Fplay_sound): Don't call make_number on
7462 Frun_hook_with_args count argument.
7463
7464 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
7465 for lisp objects in X event structure data field, when lisp
7466 objects are represented with unions.
7467 (x_scroll_bar_to_input_event): Ditto.
7468
b357b9d4
KR
74692000-06-16 Ken Raeburn <raeburn@gnu.org>
7470
7471 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
7472 termination of string. Fix sense of test whether
7473 Vline_number_display_limit is an integer.
b357b9d4 7474
a871441d
GM
74752000-06-16 Gerd Moellmann <gerd@gnu.org>
7476
a9021acd
GM
7477 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
7478 only if HAVE_X_WINDOWS.
7479
6344985d
GM
7480 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
7481 of titles.
7482
427ec082 7483 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
7484 out of bounds.
7485
228b083e
EZ
74862000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
7487
7488 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
7489 of its headers.
7490
c25b53a2
KH
74912000-06-15 Kenichi Handa <handa@etl.go.jp>
7492
7493 * coding.c (decode_coding_emacs_mule): Always set src_base at the
7494 start of the while loop.
7495
a6981b11
GM
74962000-06-15 Gerd Moellmann <gerd@gnu.org>
7497
e9924e52
GM
7498 * atimer.c (alarm_signal_handler): Add forward declaration.
7499
a6981b11
GM
7500 * data.c (set_internal): Remove debug code.
7501
25fa6deb
GM
75022000-06-14 Gerd Moellmann <gerd@gnu.org>
7503
dce6b995
GM
7504 * Makefile.in (bootstrap-temacs): Add `-I../src'.
7505
9f817ea4
GM
7506 * unexec.c (toplevel) [COFF]: Include coff.h.
7507
7508 * s/lynxos.h: New file.
7509
7510 * keymap.c (Fsingle_key_description): Enclose function key and
7511 event symbol names in angle brackets.
7512
8a4e3c0c
GM
7513 * xdisp.c (setup_echo_area_for_printing): Call
7514 message_log_maybe_newline if message_buf_print is not set.
7515
7516 * print.c (printchar, strout): Don't check message_buf_print
427ec082 7517 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
7518 function does something useful even when message_buf_print is
7519 already set.
7520
25fa6deb
GM
7521 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines): New
7522 variables.
7523 (ensure_echo_area_buffers): Initialize echo buffer's
7524 truncate lines setting to nil.
7525 (with_echo_area_buffer): Don't set the echo buffer's truncate
7526 lines setting here.
8a4e3c0c 7527 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
7528 of message_truncate_lines.
7529 (resize_mini_window): Handle case that lines are truncated.
7530 (syms_of_xdisp): Initialize Qmessage_truncate_lines. DEFVAR_BOOL
7531 message-truncate-lines.
7532
7533 * keyboard.c (read_char): Bind message-truncate-lines to t
7534 while displaying a help-echo.
7535
7536 * lisp.h (Qmessage_truncate_lines): External declaration.
7537
163dcff3
GM
75382000-06-13 Gerd Moellmann <gerd@gnu.org>
7539
1681ead6
GM
7540 * xdisp.c (Vline_number_display_limit): Renamed from
7541 line_number_display_limit.
7542 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
7543 Extend documentation string. Initialize
7544 Vline_number_display_limit to nil meaning no limit.
7545 (decode_mode_spec): Use Vline_number_display_limit with its new
7546 meaning.
7547
163dcff3
GM
7548 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
7549
18e21ce8 75502000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
7551
7552 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 7553
163dcff3
GM
7554 * xfns.c (x_set_frame_parameters): Comment fix.
7555
7556 * frame.c (store_frame_param): Call swap_in_global_binding if the
7557 variable's current binding was chosen based on this frame.
7558
7559 * data.c (swap_in_global_binding): New function.
7560
a704139d
EZ
75612000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
7562
7563 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
7564 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
7565
9b6610db
EZ
75662000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
7567
7568 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
7569
c68833d2
JR
75702000-06-12 Jason Rumney <jasonr@gnu.org>
7571
7572 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
7573
7574 * w32.h (EMACS_W32_H): Renamed from _NT_H_
7575
7576 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
7577
7578 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
7579
ed1056b3
GM
75802000-06-12 Gerd Moellmann <gerd@gnu.org>
7581
7582 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
7583 (syms_of_xfaces): Defsubr Sdump_colors.
7584 (x_free_colors): Don't treat b&w specially on default visual.
7585 (x_free_dpy_colors): New function.
7586 (free_face_colors): Don't check visual class; it's done
7587 in x_free_colors.
7588
7589 * xterm.c (x_frame_of_widget): New function.
7590 (x_alloc_nearest_color_for_widget): Use it.
7591 (x_copy_dpy_color): New function.
7592 (x_destroy_window): Free various colors.
7593
5050a2ef
KH
75942000-06-12 Kenichi Handa <handa@etl.go.jp>
7595
7596 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
7597
7598 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
7599
7600 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
7601
7602 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
7603
7604 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
7605
fb1b041d
DL
76062000-06-11 Dave Love <fx@gnu.org>
7607
7608 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
7609
ff96b5f4
EZ
76102000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
7611
7612 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
7613
db8eeecd
GM
76142000-06-11 Gerd Moellmann <gerd@gnu.org>
7615
ed1056b3 7616 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
7617 to `XEvent *'.
7618
49b71c5f
KH
76192000-06-10 Kenichi Handa <handa@etl.go.jp>
7620
c479bd55
KH
7621 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
7622 (regex_compile): Fix the code for handling the case of single byte
7623 char and multibyte char being mixed in a range within [...].
7624
ff6a65c2
KH
7625 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
7626 and dst_multibyte members of coding.
7627
49b71c5f
KH
7628 * charset.c (update_charset_table): Update the table
7629 bytes_by_char_head.
7630 (init_charset_once): Initialize elements of bytes_by_char_head to
7631 1 except for leading codes for private charases.
7632
7633 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
7634 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte
7635 sequence.
7636
9e80b57d
KR
76372000-06-09 Ken Raeburn <raeburn@gnu.org>
7638
7639 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
7640 access the data it doesn't point to.
7641
f83fe4b4
GM
76422000-06-08 Gerd Moellmann <gerd@gnu.org>
7643
7644 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 7645 will be translated to a switch-frame event when reading the
f83fe4b4
GM
7646 event queue. This is necessary because Emacs otherwise won't
7647 perform a switch-frame to a new frame until some other event, for
7648 example a keystroke event, forces it to do so. This has various
7649 effects, one visible being that the cursor of a frame created with
7650 C-x 5 2 or switched to with a window manager key binding like
7651 A-TAB stays hollow because selected_window isn't on the newly
7652 focused frame until the switch-frame is performed.
7653
7654 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
7655 generating a switch-frame event if necessary.
7656
7657 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
7658
7659 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
7660 it's an integer.
7661
0890801b
KH
76622000-06-08 Kenichi Handa <handa@etl.go.jp>
7663
7664 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a
7665 charset.
7666
173cbca8
GM
76672000-06-07 Gerd Moellmann <gerd@gnu.org>
7668
3091c2a6
GM
7669 * window.c (displayed_window_lines): Take empty lines at
7670 the bottom of a window into account.
427ec082 7671
f38952fe
GM
7672 * window.c (displayed_window_lines): New function.
7673 (Fmove_to_window_line): Use displayed_window_lines to determine
7674 the number of lines to move, instead of using the window's height.
7675
7676 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
7677 to stop reading, even if the form read sets point to a different
7678 value when evaluated.
7679
427ec082 7680 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
7681 put the cursor.
7682
6ba6c818
KH
76832000-06-07 Kenichi Handa <handa@etl.go.jp>
7684
7685 * fileio.c (e_write): Free composition data if stored in
7686 coding->cmp_data.
7687
5f1aea9a
GM
76882000-06-06 Gerd Moellmann <gerd@gnu.org>
7689
666852af
GM
7690 * xdisp.c (display_line): Set row's and iterator's
7691 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
7692 Set cursor even if row ends in the middle of a character.
7693 (dump_glyph_row): Print values of new flags.
7694 (redisplay_window) <cursor movement in unchanged window>: When
7695 point has been moved forward, and PT is at the end of the cursor
7696 row, don't place the cursor in the next row if the cursor row ends
7697 in the middle of a character or at ZV.
7698
7699 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
7700 (struct glyph_row): Add starts_in_middle_of_char_p and
7701 ends_in_middle_of_char_p.
7702 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
7703 ends_in_middle_of_char_p flag.
7704 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
7705
d13f3e2e
GM
7706 * term.c (append_glyph): Revert change of 2000-06-06.
7707
7708 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
7709 padding glyph not fitting on line as whole character not
7710 fitting on line.
7711
5f1aea9a
GM
7712 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
7713 this isn't true for images with `:ascent 100'.
7714
10cda9b0
KH
77152000-06-06 Kenichi Handa <handa@etl.go.jp>
7716
ed00559d
KH
7717 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
7718 as modified if it is originally unmodified.
7719
10cda9b0
KH
7720 * term.c (encode_terminal_code): Change the way to check if
7721 terminal coding does any conversion.
7722 (append_glyph): Set glyph->pixel_width correctly.
7723
7724 * xdisp.c (display_line): While checking line continuation, pay
7725 attention to a padding glyph.
7726
1969fae2
GM
77272000-06-05 Gerd Moellmann <gerd@gnu.org>
7728
7729 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
7730
162ccef4
DL
77312000-06-05 Dave Love <fx@gnu.org>
7732
f19f32dd
DL
7733 * xdisp.c: Include fontset.h.
7734
7735 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
7736
7737 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
7738
7739 * dispnew.c: Conditionally include term.h.
7740
7741 * coding.h: Declare code_convert_string_norecord.
7742
7743 * frame.h (struct frame): Use volatile unconditionally.
7744
7745 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
7746
7747 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
7748
7749 * systime.h: Protect against multiple inclusion.
7750 (timezone) [USG5_4]: Define as time_t.
7751
7752 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
7753 (Foptimize_char_table, make_temp_name): Declare.
7754
7755 * Makefile.in (xdisp.o): Depend on fontset.h.
7756
7757 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
7758
7759 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
7760 (Foptimize_char_table, make_temp_name): Declare.
7761
427ec082 7762 * s/irix4-0.h:
162ccef4
DL
7763 * s/irix5-0.h:
7764 * s/netbsd.h: Don't define autoconfiscated MATHERR.
7765
2082fe81
DL
77662000-06-02 Dave Love <fx@gnu.org>
7767
7768 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
7769
dcf671d2
GM
77702000-06-02 Gerd Moellmann <gerd@gnu.org>
7771
7772 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 7773 result face, set flags in that face indicating that colors may not
dcf671d2
GM
7774 be freed.
7775
7776 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
7777 glyph, use the ASCII NUL character to determine the face.
7778
d42122a3
DL
77792000-06-02 Dave Love <fx@gnu.org>
7780
7781 * sysdep.c: Conditionally include stdlib.h, unistd.h.
7782 (VFORK_RETURN_TYPE): Remove.
427ec082 7783
d42122a3
DL
7784 * config.in: Add NO_MATHERR.
7785
dd432f16
DL
77862000-06-01 Dave Love <fx@gnu.org>
7787
90aa4ea8
DL
7788 * cmds.c (internal_self_insert): Don't check
7789 Vbefore_change_function, Vafter_change_function.
7790
7791 * insdel.c (signal_before_change, signal_after_change): Likewise.
7792
7793 * buffer.c (Vbefore_change_function, Vafter_change_function):
7794 Variables and their initializations deleted.
7795
2330c9d4
DL
7796 * callint.c (Fcall_interactively): Doc fix.
7797
dd432f16
DL
7798 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
7799
bf9e8804
DL
78002000-05-31 Dave Love <fx@gnu.org>
7801
7802 * textprop.c: Revert last change -- duplicated.
7803
3694b4ab
GM
78042000-05-31 Gerd Moellmann <gerd@gnu.org>
7805
7806 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
7807 in #if 0.
7808
7809 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
7810
f14156cd
JR
78112000-05-31 Jason Rumney <jasonr@gnu.org>
7812
8119aab8
JR
7813 * search.c (Fre_search_forward, Fre_search_backward)
7814 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
7815
f14156cd
JR
7816 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
7817
4aab9be3
JR
78182000-05-30 Jason Rumney <jasonr@gnu.org>
7819
7820 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
7821 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
7822
7823 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type
7824 member.
7825
7826 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
7827 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
7828 expand a nil default_filename.
7829
7830 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
7831 pointer to glyph_to_pixel_coords, not a frame.
7832
7833 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
7834 coding.h to dependencies.
7835
7836 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
7837
7838 * w32console.c (glyph_to_pixel_coords): Change first parameter to
7839 window pointer to be consistent with w32term.c and xterm.c.
7840
7841 * w32fns.c: Format and doc changes to bring closer to xfns.c.
7842 (VIETNAMESE_CHARSET): Define if not defined in system headers.
7843 (Qline_spacing, Qcenter): New variables.
7844 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
7845 (x_set_line_spacing): New function.
7846 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT
7847 macros.
7848 (x_specified_cursor_type): New function.
7849 (x_set_cursor_type): Use it.
7850 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
7851 and icon strings.
7852 (validate_x_resource_name, x_get_resource_string): Measure lengths
7853 of external strings in bytes.
7854 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
7855 GetTextExtentPoint32 with NULL title.
7856 (Fx_create_frame): Initialize Qline_spacing.
7857 (w32_load_system_font): Initialize font->double_byte_p.
7858 (x_to_w32_charset): Use Vw32_charset_info_alist.
7859 (Image, busy cursor, tooltip functions): Merged changes from
7860 xfns.c. Not yet functional on Windows.
7861
7862 * w32gui.h (W32FontStruct): Add double_byte_p member.
7863
7864 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
7865 (emacs_button_translation): Use it.
7866 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
7867 in `mask' to be set.
7868
7869 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
7870 menu strings.
7871
7872 * w32term.c: Format and doc changes to bring closer to xterm.c.
7873 (w32_char_font_type): New enum.
7874 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
7875 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
7876 (w32_encode_char): New function.
7877 (x_encode_char): Removed.
7878 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
7879 x_encode_char and w32_font_is_double_byte.
7880 (x_produce_image_glyph): Use image_ascent.
7881 (x_produce_glyphs): Use new version of w32_per_char_metric and
7882 handle NULL return value. Allow extra line spacing.
7883 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
7884 (w32_get_glyph_overhangs): Remove unicode_p param. Use
7885 w32_font_type member of glyph instead.
7886 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
7887 (fast_find_position): Make sure not to consider rows not visible
7888 in the window.
7889 (w32_read_socket) [WM_MENUSELECT]: Cannot call
7890 w32_menu_display_help with input blocked, as it can abort.
7891 (x_display_and_set_cursor): Choose cursor depending
7892 on buffer-local value of cursor_type.
7893 (x_draw_bar_cursor): Add parameter WIDTH.
7894
7895 * w32term.h (CP_DEFAULT): Define.
7896 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
7897
10fc3187
GM
78982000-05-30 Gerd Moellmann <gerd@gnu.org>
7899
7900 * search.c (Fre_search_forward, Fre_search_backward)
7901 (Fposix_search_backward, Fposix_search_forward): Doc fix.
7902
d0555360
KH
79032000-05-30 Kenichi Handa <handa@etl.go.jp>
7904
7905 * coding.c (detect_coding_iso2022): Fix code for checking
7906 CODING_CATEGORY_MASK_ISO_8_2.
7907
f1ad044f
SM
79082000-05-29 Stefan Monnier <monnier@cs.yale.edu>
7909
7910 * regex.c (PREFETCH_NOLIMIT): New function.
7911 (re_match_2_internal): Use it and adjust the end_match_2 logic.
7912
84ec3b4b
GM
79132000-05-29 Gerd Moellmann <gerd@gnu.org>
7914
66254a13
GM
7915 * syntax.c (find_defun_start): Move test for
7916 open_paren_in_column_0_is_defun_start outside of the loop.
7917
49e70dec
GM
7918 * xdisp.c (redisplay_window): Really switch buffers when
7919 displaying mode lines, and temporarily set selected_frame to the
7920 frame of the window that's redisplayed.
7921
84ec3b4b
GM
7922 * xfaces.c (free_realized_faces): Block/unblock input.
7923 (free_realized_multibyte_face): Ditto.
7924
869a3a14
DL
79252000-05-29 Dave Love <fx@gnu.org>
7926
7927 * textprop.c (Qkeymap): New variable.
7928 (syms_of_textprop): Intern it.
7929
7930 * keymap.c: Include intervals.h.
7931 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
7932
7933 * Makefile.in (keymap.o): Depend on intervals.h.
7934
7935 * keyboard.c (menu_bar_items, tool_bar_items)
7936 (Fexecute_extended_command): Deal with `keymap' property.
7937 (read_key_sequence): Track map from `keymap' property as well as
7938 `local_map'.
7939
7940 * intervals.c (get_local_map): Extra arg to allow looking for
7941 `keymap' too.
7942
7943 * intervals.h (map_property): New enum.
7944 (get_local_map): Extra arg using it.
7945 (Qkeymap): Declare.
7946
84ec3b4b 7947 * lisp.h (get_local_map): Don't declare here.
869a3a14 7948
89d0c844
KH
79492000-05-29 Kenichi Handa <handa@etl.go.jp>
7950
7951 * Makefile.in (callproc.o): Depend on composite.h.
7952
7953 * callproc.c: Include composite.h.
7954 (Fcall_process): Handle composition correctly.
7955
7956 * coding.h (coding_allocate_composition_data): Extern it.
7957 (coding_restore_composition): Likewise.
7958
7959 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
7960 yet allocated, finish decoding with result
7961 CODING_FINISH_INSUFFICIENT_CMP.
7962 (coding_allocate_composition_data): Make it non-static.
7963 (coding_restore_composition): Likewise.
7964
797a084a
EZ
79652000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
7966
7967 * charset.c (syms_of_charset): Revert last change.
7968
cf872af5
EZ
79692000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
7970
7971 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
7972 charsets as unibyte, with 1-column screen width. Sent by Kenichi
7973 Handa.
cf872af5 7974
5b1ae051
EZ
79752000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
7976
7977 * charset.c (syms_of_charset): Set width of character sets
7978 eight-bit-control and eight-bit-graphic to 1 column.
7979
34ec9ebe
GM
79802000-05-26 Gerd Moellmann <gerd@gnu.org>
7981
7982 * config.in (HAVE_SPEED_T): New define.
7983
7984 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
7985 `extern speed_t'.
7986
dd854dc2
DL
79872000-05-26 Dave Love <fx@gnu.org>
7988
7989 * coding.c (shrink_decoding_region): Initialize eol_conversion.
7990
7991 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
7992 (Fsubr_arity): New function.
7993 (syms_of_data): Install them.
7994
ba9f8f95
KH
79952000-05-26 Kenichi Handa <handa@etl.go.jp>
7996
0f3e0672
KH
7997 * charset.c (init_charset_once): Set the table bytes_by_char_head
7998 correctly.
7999
cebefb44
KH
8000 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
8001 the default fontset to what Emacs uses by default.
0f3e0672
KH
8002 (check_registry_encoding): This function deleted.
8003 (Fset_fontset_font): Remove the adhoc condition for the default
8004 fontset. Allow cons in FONTNAME.
cebefb44 8005
0f3e0672
KH
8006 * fns.c (map_char_table): Ignore char-table entries for
8007 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 8008
7a18af49
KR
80092000-05-25 Ken Raeburn <raeburn@gnu.org>
8010
8011 * emacs.c (main): Initialize keyboard syms before initializing
8012 window code, so face names are available.
8013
d2af47df
SM
80142000-05-25 Stefan Monnier <monnier@cs.yale.edu>
8015
8016 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
8017 of an anchor at the beginning of a shy-group.
8018
fc6a6a4e
GM
80192000-05-25 Gerd Moellmann <gerd@gnu.org>
8020
8021 * xdisp.c (handle_invisible_prop): Don't try to skip over
8022 invisible text if end of text is already reached.
8023
005f0d35
DL
80242000-05-25 Dave Love <fx@gnu.org>
8025
02513cdd
DL
8026 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
8027
005f0d35
DL
8028 * coding.c (encode_eol): Add null statement after label.
8029
89f6ca4e
EZ
80302000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
8031
8032 * w16select.c (Fw16_set_clipboard_data): Fix the change from
8033 2000-05-20.
8034
a4e1759e
KH
80352000-05-25 Kenichi Handa <handa@etl.go.jp>
8036
8037 * ccl.c (ccl_driver): Fix previous change.
8038
eacfd7fe
KH
80392000-05-25 Kenichi Handa <handa@etl.go.jp>
8040
46ab33a9
KH
8041 * coding.c (run_pre_post_conversion_on_str): Set point to the
8042 beginning of buffer before calling coding->post_read_conversion.
8043 (decode_coding_string): Give correct args to
8044 run_pre_post_conversion_on_str.
8045 (encode_coding_string): Likewise.
8046
eacfd7fe
KH
8047 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
8048 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
8049 eight-bit-graphic correctly.
8050
f8569325
DL
80512000-05-24 Kenichi HANDA <handa@etl.go.jp>
8052
8053 * fileio.c (Finsert_file_contents): Even if a file is not found,
8054 execute codes for setting up coding system. Call
8055 after-insert-file-functions unconditionally.
8056
04545643
GM
80572000-05-24 Gerd Moellmann <gerd@gnu.org>
8058
8059 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
8060 BSD_PGRPS are not defined.
8061
747d90ea
KH
80622000-05-24 Kenichi Handa <handa@etl.go.jp>
8063
8064 * charset.c (update_charset_table): Accept nil in LONG_NAME and
8065 DESCRIPTION.
8066 (syms_of_charset): Avoid building same strings.
8067
716e3b88
GM
80682000-05-23 Gerd Moellmann <gerd@gnu.org>
8069
8070 * lread.c (Fload): Add a comment about the meaning of
8071 Vuser_init_file being t.
8072
8073 * puresize.h (BASE_PURESIZE): Increase to 675000.
8074
8075 * s/gnu-linux.h (setpgrp): Don't define it here because this
8076 prevents compilation on GNU/Linux systems with glib 2.2.
8077
8078 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
8079 as setpgid.
427ec082 8080
9aeb39fa
EZ
80812000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
8082
8083 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
8084 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
8085 version.
8086 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
8087
29ced61b
KH
80882000-05-23 Kenichi Handa <handa@etl.go.jp>
8089
0574a2ed
KH
8090 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE
8091 unconditionally.
8092
3d80f24d
KH
8093 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
8094
8095 * term.c (encode_terminal_code): Set coding->src_multibyte
8096 properly.
8097
29ced61b
KH
8098 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
8099
d7e00792
KH
81002000-05-22 Kenichi Handa <handa@etl.go.jp>
8101
c9d80d38
KH
8102 * keyboard.c (read_char): Allow character codes 128..255 to be
8103 handled by input-method-function.
8104
d7e00792
KH
8105 * insdel.c (adjust_markers_for_replace): Fix previous change.
8106 (adjust_after_replace): If PREV_TEXT is nil, call
8107 adjust_markers_for_insert, not adjust_markers_for_replace.
8108
087121cc 81092000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 8110
087121cc
GM
8111 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
8112 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
8113 [HAVE_GRANDPT]: Define.
8114 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
8115
8116 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
8117 like SYSV_PTYS.
8118
8119 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
8120
8121 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
8122
c9671f81
KH
81232000-05-20 Kenichi Handa <handa@etl.go.jp>
8124
8125 The following changes are to handle 8-bit characters in a
8126 multibyte buffer/string without facing with byte combining
8127 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
8128 eight-bit-graphic (for 0xA0..0xFF) are introduced.
8129
8130 * Makefile.in (fns.o): Depend on charset.h.
8131
8132 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
8133 convert it to unibyte.
8134 (make_string): Use parse_str_as_multibyte, not chars_in_text.
8135
8136 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
8137 apparent char boundary.
8138 (Fset_buffer_multibyte): Convert 8-bit characters in the range
8139 0x80..0x9F to/from multibyte form.
8140
8141 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
8142 to unibyte.
8143
8144 * callproc.c (Fcall_process): Always encode an argument string if
8145 it is multibyte. Setup src_multibyte and dst_multibyte members of
8146 process_coding properly.
ce75fd23 8147
c9671f81
KH
8148 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
8149 SPLIT_NON_ASCII_CHAR.
8150
8151 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
8152 as is.
8153 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
8154
8155 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New
8156 variables.
8157 (SPLIT_CHARACTER_SEQ): This macro deleted.
8158 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is
8159 valid.
8160 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
8161 and eight-bit-graphic.
8162 (char_to_string): Likewise. Signal an error for too large
8163 character code.
8164 (char_printable_p): Return 0 for 8-bit characters.
8165 (update_charset_table): Update iso_charset_table only when a final
8166 character is non-negative.
8167 (find_charset_in_text): Renamed from find_charset_in_str.
8168 Arguments and return value changed. Callers changed.
8169 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
8170 be -1 if CHARSET is used only internally.
8171 (Fmake_char_internal): Handle new charsets; eight-bit-control and
8172 eight-bit-graphic.
8173 (Fcharset_after): Simplified.
8174 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
8175 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
8176 (multibyte_chars_in_text): Simplified by assuming there's no
8177 invalid multibyte sequence.
8178 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
8179 str_as_unibyte): New functions.
8180 (Fstring): Simpified by assuming that byte combining never
8181 happens.
8182 (init_charset_once): Initialization for
8183 LEADING_CODE_8_BIT_CONTROL.
8184 (syms_of_charset): Intern and staticpro Qeight_bit_control and
8185 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
8186 eight-bit-control and eight-bit-graphic.
8187
8188 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL,
8189 CHARSET_8_BIT_GRAPHIC): New macros.
8190 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
8191 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
8192 (CHARSET_REVERSE_CHARSET): Likewise.
8193 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
8194 eight-bit-graphic.
8195 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
8196 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
8197 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
8198 encounter an invalid multibyte sequence.
8199 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
8200 sequence is always valid.
8201 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
8202 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New
8203 macros.
8204 (CHAR_STRING): For 8-bit characters, call char_to_string.
8205 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
8206 multibyte sequence is always valid.
8207 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
8208 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
8209 str_as_unibyte): Extern them.
8210 (BCOPY_SHORT): Fix a bug.
8211 (CHAR_LEN): This macro deleted. Callers changed to use
8212 CHAR_BYTES.
8213 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
8214 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
8215 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
8216
bd4bde7f 8217 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81
KH
8218 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
8219 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
8220 EMIT_BYTES): New macros.
8221 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
8222 DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
8223 macros deleted.
8224 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
8225 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
8226 check the validity of multibyte sequence.
8227 (decode_coding_emacs_mule): New function.
8228 (encode_coding_emacs_mule): New macro.
8229 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
8230 the source.
8231 (DECODE_ISO_CHARACTER): Just return a character code.
8232 (DECODE_COMPOSITION_START): Set coding->result instead of result.
8233 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
8234 EMIT_CHAR to produced decoded characters. Exit the loop only by
8235 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
8236 block here.
8237 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
8238 only position codes for an invalid character.
8239 (encode_designation_at_bol): Return new destination pointer. 5th
8240 arg DSTP is changed to DST.
8241 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
8242 from the source by ONE_MORE_CHAR. Don't handle the case of last
8243 block here.
8244 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
8245 macros deleted.
8246 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
8247 detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
8248 TWO_MORE_BYTES to fetch a byte from the source.
8249 (encode_eol): Pay attention to coding->src_multibyte.
8250 (detect_coding, detect_eol): Preserve members src_multibyte and
8251 dst_multibyte.
8252 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
8253 (encoding_buffer_size): Set magnification to 3 for all coding
8254 systems that require encoding.
8255 (ccl_coding_driver): For decoding, be sure that the result is
8256 valid multibyte sequence.
8257 (decode_coding): Initialize coding->errors and coding->result.
8258 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
8259 and raw-text, always call decode_eol. Handle the case of last
8260 block here. If not coding->dst_multibyte, convert the resulting
8261 sequence to unibyte.
8262 (encode_coding): Initialize coding->errors and coding->result.
8263 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
8264 and raw-text, always call encode_eol. Handle the case of last
8265 block here.
8266 (shrink_decoding_region, shrink_encoding_region): Detect cases
8267 that we can't skip data more rigidly.
8268 (code_convert_region): Setup src_multibyte and dst_multibyte
8269 members of coding. For decoding, if the buffer is multibyte,
8270 convert the source sequence to unibyte in advance. For encoding,
8271 if the buffer is multibyte, convert the resulting sequence to
8272 multibyte afterward.
8273 (run_pre_post_conversion_on_str): New function.
8274 (code_convert_string): Deleted and divided into the following two.
8275 (decode_coding_string, encode_coding_string): New functions.
8276 (code_convert_string1, code_convert_string_norecord): Call one of
8277 above.
8278 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
8279 MAKE_NON_ASCII_CHAR.
8280 (Fset_terminal_coding_system_internal,
8281 Fset_safe_terminal_coding_system_internal): Setup src_multibyte
8282 and dst_multibyte members.
8283 (init_coding_once): Initialize iso_code_class with new enum
8284 ISO_control_0 and ISO_control_1.
8285
8286 * coding.h (enum iso_code_class_type): Member ISO_control_code is
8287 devided into ISO_control_0 and ISO_control_1.
8288 (struct coding_system): New members src_multibyte, dst_multibyte,
8289 errors, and result. Delete member fake_multibyte.
8290 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
8291 nonzero.
8292 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
8293 nonzero.
8294
8295 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
8296 (Faset): Likewise.
8297
8298 * editfns.c (Fformat): Be sure to convert 8-bit characters to
8299 multibyte form.
8300 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
8301 combining occurs.
8302 (Ftranspose_region): Delete codes for handling byte combining.
8303
8304 * fileio.c (Finsert_file_contents): Setup src_multibyte and
8305 dst_multibyte members of coding. On handling REPLACE on unibyte
8306 buffer, convert the result of decode_coding to unibyte. On
8307 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 8308 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
8309 multibyteness of the source (buffer or string).
8310
8311 * fns.c (concat): Handle 8-bit characters correctly.
8312 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
8313 unibyte in the result.
8314 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
8315 valid multibyte form in the result.
8316 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
8317 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
8318 return -1, signal an error.
8319 (base64_encode_1): New arg MULTIBYTE. Get each character by
8320 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
8321 character is found, return -1.
8322 (Fbase64_decode_region): Delete codes for handling byte-combining.
8323 Treat each decoded byte as a unibyte character.
8324 (Fbase64_decode_string): Return unibyte string.
8325 (Fcompare_strings, concat, string_byte_to_char): Use
8326 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
8327 FETCH_STRING_CHAR_ADVANCE.
8328 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
8329 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
8330
8331 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
8332 SPLIT_NON_ASCII_CHAR.
8333 (fontset_ref_via_base, fontset_set): Likewise
8334
8335 * insdel.c (adjust_markers_for_record_delete): Deleted.
8336 (adjust_markers_for_insert): Argument changed. Caller changed.
8337 (adjust_markers_for_replace): Likewise.
8338 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error,
8339 CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
8340 (copy_text): Delete unused local varialbe c_save. For converting
8341 to multibyte, be sure to make all 8-bit characters in valid
8342 multibyte form.
8343 (count_size_as_multibyte): Handle 8-bit characters correctly.
8344 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
8345 adjust_after_replace, replace_range, del_range_2)
8346 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
8347 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
8348 adjust_after_replace, replace_range, del_range_2) Delete codes for
8349 handling byte combining.
8350 (adjust_before_replace): Deleted.
427ec082 8351
c9671f81
KH
8352 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
8353 SPLIT_NON_ASCII_CHAR.
8354 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
8355 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE
8356 unconditionally.
8357 (Fkey_description): Likewise.
8358
8359 * lread.c (read1): On reading multibyte string, be sure to make
8360 all 8-bit chararacters in valid multibyte form.
8361 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
8362
8363 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
8364 unconditionally.
8365
8366 * process.c (Fstart_process): GCPRO current_dir before calling
8367 Ffind_operation_coding_system. Encode arguments here.
8368 (create_process): Don't encode arguments here. Setup
8369 src_multibyte and dst_multibyte members of struct coding.
8370 (read_process_output): Setup src_multibyte and dst_multibyte
8371 members of struct coding. If the output is to multibyte buffer,
8372 always decode the output of the process. Adjust the
8373 representation of 8-bit characters to the multibyteness of the
8374 output.
8375 (send_process): Setup coding->src_multibyte according to the
8376 multibyteness of the source.
8377
8378 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE
8379 unconditionally.
8380 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
8381 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
8382
8383 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of
8384 CHAR_LEN.
8385
8386 * w16select.c (Fw16_set_clipboard_data): Setup members
8387 src_multibyte and dst_multibyte of coding. Adjusted for the
8388 change for find_charset_in_str.
8389 (Fw16_get_clipboard_data): Likewise.
8390
8391 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
8392 dst_multibyte of coding.
8393 (x_to_w32_font): Likewise.
8394
8395 * w32select.c (Fw32_set_clipboard_data): Setup members
8396 src_multibyte and dst_multibyte of coding. Adjusted for the
8397 change for find_charset_in_str.
8398 (Fw32_get_clipboard_data): Likewise.
8399
8400 * xdisp.c (get_next_display_element): Handle 8-bit characters
8401 correctly.
8402 (next_element_from_display_vector): Use CHAR_BYTES instead of
8403 CHAR_LEN.
8404 (disp_char_vector): Use SPLIT_CHAR instead of
8405 SPLIT_NON_ASCII_CHAR.
8406
8407 * xselect.c (selection_data_to_lisp_data): Setup members
8408 src_multibyte and dst_multibyte of coding. Adjusted for the
8409 change for find_charset_in_str.
8410 (lisp_data_to_selection_data): Likewise.
8411
5f64c9e0
GM
84122000-05-19 Gerd Moellmann <gerd@gnu.org>
8413
2b63d473
GM
8414 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed
8415 buffer.
8416
5f64c9e0
GM
8417 * dispextern.h (Vimage_types): Add extern declaration.
8418
8419 * xdisp.c (Vimage_types): Moved here from xfns.c.
8420 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
8421
8422 * xfns.c (Vimages_types): Moved to xdisp.c.
8423 (syms_of_xfns): Move `image-types' to xdisp.c.
8424
8425 * w32fns.c (Vimage_types): Removed.
8426 (syms_of_w32fns): Remove `image-types'.
8427
813086ea
KH
84282000-05-18 Kenichi Handa <handa@etl.go.jp>
8429
8430 * fns.c (map_char_table): Pay attention to character number of
8431 charset. Check the validity of charset at the first level. For
8432 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
8433 the default value.
8434
8435 * fontset.c: Include "buffer.h".
8436 (fs_load_font): If the face has fontset, record the face ID in
8437 that fontset.
8438 (Finternal_char_font): New function.
8439 (accumulate_font_info): New function.
8440 (Ffontset_info): Rewritten for the new fontset implementation.
8441 (syms_of_fontset): Register Vdefault_fontset in the first element
8442 of Vfontset_table. Include Vdefault_fontset in
8443 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
8444 function.
8445
bdaebbf0
DL
84462000-05-16 Dave Love <fx@gnu.org>
8447
8448 * m/iris5d.h: Deleted -- unused.
8449
cb613bb8
GM
84502000-05-16 Gerd Moellmann <gerd@gnu.org>
8451
b15f3b77
GM
8452 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
8453 `invalid' instead of `illegal'.
8454
8455 * indent.c (Fmove_to_column): When ending within a tab, insert
8456 spaces first so that markers at the end of the tab get adjusted.
8457
835c1b36
GM
8458 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
8459 buffer list that wasn't selected in that frame.
8460
cb613bb8
GM
8461 * filelock.c (get_boot_time): To obtain an 8 char file name, which
8462 is needed on mescaline, use a 2 char prefix, and call
8463 make_temp_name with second arg non-zero.
8464
8465 * fileio.c (make_temp_name): New function, extracted from
8466 Fmake_temp_name.
8467 (Fmake_temp_name): Use it.
8468
f685bea9
EZ
84692000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
8470
8471 * window.c (coordinates_in_window): Subtract 1 when computing
8472 right_x.
8473
a1b8d58b
GM
84742000-05-15 Gerd Moellmann <gerd@gnu.org>
8475
8476 * Makefile.in (lisp): Add env.elc.
8477
8478 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
8479
a265079f
GM
84802000-05-12 Gerd Moellmann <gerd@gnu.org>
8481
8482 * search.c (Freplace_match): Handle case of `\N' in the
8483 replacement when there's no group N.
8484
da4496b6
GM
84852000-05-11 Gerd Moellmann <gerd@gnu.org>
8486
0ace421a
GM
8487 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
8488 of the message to message_dolog.
8489
1172eb8d
GM
8490 * keyboard.c (read_char): Don't clear current message for help
8491 events; let the code handling help events handle this. Change
8492 code detecting help events that should be ignored.
8493
da4496b6
GM
8494 * xdisp.c (handle_single_display_prop): Don't try to set PT if
8495 we're interating over a string.
8496
0623e40f
DL
84972000-05-09 Dave Love <fx@gnu.org>
8498
8499 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
8500 that offset before writing. Move gcpro region past call of
8501 Ffile_regular_p.
8502
bae2503b
DL
85032000-05-04 Dave Love <fx@gnu.org>
8504
8505 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
8506
ec82fb2f
GM
85072000-05-04 Gerd Moellmann <gerd@gnu.org>
8508
8509 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
8510 of inserted characters when BUF equals the current buffer, and PT
8511 is in front of or equal to FROM.
8512
cbf18892
GM
85132000-05-03 Gerd Moellmann <gerd@gnu.org>
8514
4ff40dd0
GM
8515 * xdisp.c (handle_single_display_prop): If display property value
8516 is invalid, or something not supported on the frame, restore
8517 iterator's position to what it was initially. Make sure to return
8518 0 for invalid and unsupported property values.
8519
cbf18892
GM
8520 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
8521 that x_per_char_metric returns null.
8522
1b0672c3
GM
85232000-05-02 Gerd Moellmann <gerd@gnu.org>
8524
576da55d
GM
8525 * xterm.h (struct face): Add forward declaration.
8526 (struct image): Ditto.
8527 (image_ascent): Add prototype.
8528
8529 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
8530 (x_draw_image_relief, x_draw_image_foreground_1): Call function
8531 image_ascent instead of using IMAGE_ASCENT.
8532
8533 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
8534 (IMAGE_ASCENT): Removed.
8535
8536 * xfns.c (Qcenter): New variable.
8537 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
8538 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
8539 (image_ascent): New function.
8540 (lookup_image): Recognize `:ascent center'.
8541 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
8542 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
8543 (xbm_load): Don't set image's ascent here.
8544 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
8545 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
8546 check ascent values here.
8547 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
8548 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
8549 (syms_of_xfns): Initialize Qcenter.
8550
1b0672c3
GM
8551 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
8552 to the limits, increase the limits.
8553
0d7811ed
KH
85542000-05-01 Kenichi Handa <handa@etl.go.jp>
8555
8556 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
8557 Check Vfont_encoding_alist against the full name of the opened
8558 font.
8559
a943a5ca
GM
85602000-04-28 Gerd Moellmann <gerd@gnu.org>
8561
8562 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
8563 taller than the window.
8564
5dba1e29
KH
85652000-04-28 Kenichi Handa <handa@etl.go.jp>
8566
8567 * xfaces.c (realize_x_face): Fix the argument of the second
8568 xassert. BASE_FACE may not be a face for ASCII.
8569
353964e3
GM
85702000-04-27 Gerd Moellmann <gerd@gnu.org>
8571
c76e04a8
GM
8572 * print.c (print_object): Treat print-length < 0 as nil.
8573
8574 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
8575
8576 * s/freebsd.h (TERMCAP_OBJ): Removed.
8577 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
8578
8579 * lread.c (read1): Don't treat period followed by certain
8580 characters as symbol start.
8581
8582 * xfns.c (slurp_file): New function.
8583 (xbm_image_p): Handle case of in-memory XBM files.
8584 (xbm_scan): Rewritten to work on memory buffers instead of files.
8585 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
8586 Work on memory buffers instead of files. If DATA is null test
8587 if buffer looks like an in-memory XBM file.
8588 (xbm_load_image): Renamed from xbm_load_image_file. Work on
8589 memory buffers instead of files.
8590 (xbm_file_p): New function.
8591 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
8592
353964e3
GM
8593 * lread.c (end_of_file_error): New function.
8594 (read1): Call it instead of signaling `end-of-file' directly.
8595
427ec082 8596 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
8597 with Fprinc instead of Fprin1.
8598
24d744ac
KR
85992000-04-26 Ken Raeburn <raeburn@gnu.org>
8600
8601 * window.c (freeze_window_start): Check that minibuffer scroll
8602 window isn't nil before extracting the window structure pointer
8603 from it.
8604
8605 * undo.c (record_delete): If we hit the end of the undo list, stop
8606 picking elements apart.
8607
7464346d
GM
86082000-04-26 Gerd Moellmann <gerd@gnu.org>
8609
8610 * xdisp.c (display_line): If lines are continued, restore
8611 iterator's ascent/descent information to the values before the
8612 first glyph not fitting on the line.
8613
612839b6
GM
86142000-04-25 Gerd Moellmann <gerd@gnu.org>
8615
8616 * xdisp.c (try_window_id) <all changes above window start>: Adjust
8617 positions in glyph matrix. Don't compute new window end
8618 positions.
8619
8620 * dispnew.c (increment_matrix_positions): Renamed from
8621 increment_glyph_matrix_buffer_positions.
8622 (increment_row_positions): Renamed from
8623 increment_glyph_row_buffer_positions.
8624
8625 * dispextern.h: Change names of renamed functions from dispnew.c
8626 in prototypes.
8627
cc181e95
GM
86282000-04-24 Gerd Moellmann <gerd@gnu.org>
8629
abfcc168
GM
8630 * fileio.c (Fdo_auto_save): Create directories for auto-save
8631 list file if necessary.
8632
cc181e95
GM
8633 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
8634 from buffer or frame.
8635 (automatic_hscrolling_p): New variable.
8636 (hscroll_windows): Scroll windows horizontally only if automatic
8637 hscrolling is allowed.
8638 (syms_of_xdisp): New variable `automatic-hscrolling'.
8639
8640 * frame.h (struct frame): Add member extra_line_spacing.
8641
8642 * xfns.c (x_set_line_spacing): New function.
8643 (Fx_create_frame): Set line spacing from resources.
8644 (Qline_spacing): New variable.
8645 (syms_of_xfns): Initialize Qline_spacing.
427ec082 8646
cc181e95
GM
8647 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
8648
8649 * buffer.c (init_buffer_once): Handle extra_line_spacing.
8650 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 8651 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
8652 extra_line_spacing from default value.
8653 (init_buffer_once): Initialize default value of extra_line_spacing.
8654
8655 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
8656 and extra3.
8657
8658 * xterm.c (x_produce_glyphs): Remove reference to struct it's
8659 prompt_width. Add extra line spacing.
8660
8661 * term.c (produce_glyphs): Remove reference to struct it's
8662 prompt_width.
8663
8664 * dispextern.h (struct it): Remove member prompt_width, add
8665 extra_line_spacing.
8666
58827478
GM
86672000-04-22 Gerd Moellmann <gerd@gnu.org>
8668
8669 * dispnew.c (update_frame_line): When writing a whole line, make
8670 sure cursor is in the right row afterwards, otherwise a use of
8671 capability `ch' in cmgoto might leave the cursor in the row below.
8672
25a87f42
GM
86732000-04-21 Gerd Moellmann <gerd@gnu.org>
8674
8675 * lisp.h (struct Lisp_Buffer_Cons): Remove.
8676
8677 * keyboard.c (timer_check): Fix typo in comment.
8678
54edf5c2
KH
86792000-04-21 Kenichi Handa <handa@etl.go.jp>
8680
8681 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
8682 name change: ch -> character.
8683
3a64eef5
GM
86842000-04-20 Gerd Moellmann <gerd@gnu.org>
8685
8686 * keyboard.c (echo_message_buffer): New variable.
8687 (echo_now): Set echo_message_buffer to the echo area buffer used
8688 to display the echo.
8689 (cancel_echoing): Reset echo_message_buffer to nil.
8690 (read_char): Code rewritten that handles canceling an echo or
8691 echoing a dash, respectively.
8692
8693 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
8694 directory doesn't exist.
8695
6142fdcb
DL
86962000-04-19 Dave Love <fx@gnu.org>
8697
8698 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
8699 (concat): Don't allow numeric args.
8700 (Fconcat): Doc change.
6142fdcb 8701
ac6b5352
SM
87022000-04-19 Stefan Monnier <monnier@cs.yale.edu>
8703
8704 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
8705 instead define end_match(1|2) more carefully.
8706 Use GET_CHAR_BEFORE_2 for `begline'.
8707
cb9215e4
GM
87082000-04-19 Gerd Moellmann <gerd@gnu.org>
8709
5e3dac3f
GM
8710 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
8711 on 64-bit systems where NULL is defined as `0'.
8712
8713 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
8714 the `variable argument list' to make it work on Alpha.
8715
cb9215e4
GM
8716 * m/alpha.h (_LP64) [!_LP64]: Define.
8717 (ORDINARY_LINK): Define for NetBSD.
8718
8719 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 8720
f532dca0
DL
87212000-04-19 Dave Love <fx@gnu.org>
8722
c750667e
DL
8723 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
8724 change.
8725
8726 * Makefile.in (LIBS): Don't use.
8727 (GETLOADAVG_OBJ): Define again.
8728 (otherobj): Add GETLOADAVG_OBJ.
8729
f532dca0
DL
8730 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
8731
1c7e22fd
GM
87322000-04-18 Gerd Moellmann <gerd@gnu.org>
8733
f6d3257b
GM
8734 * lread.c (read_filtered_event): Cancel and start busy cursor.
8735
427ec082 8736 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
8737 that the per-character metrics may be null.
8738
e10f64e7
GM
87392000-04-17 Gerd Moellmann <gerd@gnu.org>
8740
0daee095
GM
8741 * buffer.c (clone_per_buffer_values): New function.
8742 (Fmake_indirect_buffer): Add optional argument CLONE. Call
8743 clone_per_buffer_values if CLONE is not nil.
8744
e10f64e7
GM
8745 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
8746
38687d43
DL
87472000-04-16 Dave Love <fx@gnu.org>
8748
8749 * Makefile.in: Remove obsolete localcpp stuff.
8750 (GETLOADAVG_OBJ): Don't define.
8751 (obj): Move LIBOBJS...
8752 (otherobj): ... to here.
8753 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
8754 whitespace-only lines after the continuation (Irix).
8755
c21c7262
GM
87562000-04-14 Gerd Moellmann <gerd@gnu.org>
8757
8758 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
8759
8760 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
8761
314767c0
DL
87622000-04-14 Dave Love <fx@gnu.org>
8763
8764 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
8765 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
8766 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
8767 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
8768 NLIST_STRUCT.
8769
8770 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
8771 autoconfiscated HAVE_GETLOADAVG.
8772
8773 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
8774 BROKEN_MKTIME.
8775
a2522dca
GM
87762000-04-14 Gerd Moellmann <gerd@gnu.org>
8777
8778 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
8779 (fill_in_lock_file_name): Avoid existing files that aren't
8780 links.
8781
33744b5d
DL
87822000-04-14 Dave Love <fx@gnu.org>
8783
c21c7262 8784 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
8785 (INTERVAL_SRC): Convert to make variable.
8786 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
8787 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
8788 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
8789 add LIBOBJS.
8790 (SOME_MACHINE_OBJECTS): Remove interval stuff.
8791 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
8792 (shortlisp): Add facemenu, float-sup, frame.
8793 (SOME_MACHINE_LISP): Remove them from here.
8794 (LIBES): Change unused LDLIBS to autoconf LIBS.
8795
8796 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
8797
9d3d5916
KH
87982000-04-14 Kenichi Handa <handa@etl.go.jp>
8799
8800 * composite.c (update_compositions): If FROM and TO are not in a
8801 valid range, do nothing.
8802
198e3c7a
GM
88032000-04-13 Gerd Moellmann <gerd@gnu.org>
8804
8805 * tparam.c (tparam1): Abort when encountering an unknown
8806 `%'-specifier.
8807
8808 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
8809 terminfo.o.
8810
8811 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
8812 as TERMCAP_OBJ.
8813
055a28c9
EZ
88142000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
8815
8816 * fileio.c (a_write): Remove redundant semi-colons.
8817 (e_write): Return -1 if failed to write all the data.
8818 This fixes the changes made at 1999-12-15.
8819
f5c75033
DL
88202000-04-12 Dave Love <fx@gnu.org>
8821
8822 * fns.c (mapcar1): Test for null vals to support mapc.
8823 (Fmapc): New function.
8824
0c3cfc51
EZ
88252000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
8826
8827 * msdos.c (NUM_MOUSE_BUTTONS): Define.
8828 (IT_frame_up_to_date): Support the buffer local value of
8829 cursor-type, if defined.
8830
33465a31
DL
88312000-04-10 Dave Love <fx@gnu.org>
8832
8833 * editfns.c (preceding-char, following-char): Doc fix.
8834
6ed56568
KR
88352000-04-10 Ken Raeburn <raeburn@gnu.org>
8836
8837 * Makefile.in (temacs): Revert 2000-03-12 change.
8838
7cf80d4e
JR
88392000-04-10 Jason Rumney <jasonr@gnu.org>
8840
8841 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
8842
34f3f342
GM
88432000-04-10 Gerd Moellmann <gerd@gnu.org>
8844
1a1b1895
GM
8845 * xdisp.c (setup_echo_area_for_printing): Choose an echo
8846 area buffer, if it's not set up yet.
8847
34f3f342
GM
8848 * indent.c (compute_motion): Set immediate_quit.
8849
be0dbdab
GM
88502000-04-09 Gerd Moellmann <gerd@gnu.org>
8851
c45be9ac
GM
8852 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New
8853 variable.
8854 (realize_tty_face): Suppress boldness if colors are the inverse of
8855 the default colors, and tty_suppress_bold_inverse_default_colors_p
8856 is set.
8857 (Ftty_suppress_bold_inverse_default_colors): New function.
8858 (syms_of_xfaces): Defsubr it.
8859
be0dbdab
GM
8860 * buffer.c (Frestore_buffer_modified_p): New function.
8861 (syms_of_buffer): Defsubr it.
8862
e8413c3b
KR
88632000-04-08 Ken Raeburn <raeburn@gnu.org>
8864
87f67317
KR
8865 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
8866 charset id (int) argument, not a charset (Lisp_Object).
8867
e8413c3b
KR
8868 * coding.h (code_convert_string): Declare.
8869 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
8870 object, as the fourth argument to code_convert_string.
8871
8872 * fontset.c (make_fontset_for_ascii_face): Use XINT on return
8873 value.
8874 (Fset_fontset_font): Use EQ to compare lisp objects.
8875
7c752c80
KR
88762000-04-05 Ken Raeburn <raeburn@gnu.org>
8877
c0333abc
KR
8878 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
8879 a pointer that looks like a lisp object.
8880 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
8881 zero, instead see whether it's an integer object, since they can't
8882 have intervals.
8883 (GET_INTERVAL_OBJECT): Simply assign to the destination.
8884
7c752c80
KR
8885 * dispnew.c (allocate_matrices_for_frame_redisplay,
8886 direct_output_forward_char): Use X(U)INT and make_number as needed
8887 to convert between (unsigned) int values and lisp integers.
8888 * keyboard.c (read_key_sequence): Likewise.
8889 * lread.c (substitute_object_recurse): Likewise.
8890 * fns.c (concat, hash_lookup, hash_remove): Likewise.
8891 * minibuf.c (do_completion, Fminibuffer_complete_word,
8892 Fminibuffer_completion_help): Likewise.
8893 * term.c (produce_special_glyphs): Likewise.
8894
8895 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
8896 * print.c (print_preprocess, print_object): Likewise.
8897
8898 * search.c (compile_pattern): Use NILP when checking for nil.
8899
74e49b38
KR
8900 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
8901 __OPTIMIZE__]: Provide a GNU C macro version that handles
8902 lisp-object unions.
8903 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
8904 field, to better cope with ENABLE_CHECKING and calls that modify a
8905 Lisp_Object using its old value.
8906
685e5ed2
GM
89072000-04-04 Gerd Moellmann <gerd@gnu.org>
8908
c407c570
GM
8909 * window.c (compare_window_configurations): Signal an error
8910 if parameters C1 or C2 aren't window configurations.
8911
685e5ed2
GM
8912 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
8913 AFTER_POTENTIAL_GC calls around calls to functions that can
8914 signal an error and thus invoke the debugger.
8915
587a49ab
GM
89162000-04-03 Gerd Moellmann <gerd@gnu.org>
8917
62f20204
GM
8918 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
8919 an error if decoding fails.
8920
587a49ab
GM
8921 * keyboard.c (lispy_mouse_names): Variable removed.
8922 (Vlispy_mouse_stem): New variable.
8923 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
8924 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
8925 for any mouse button number. Increase size of mouse_syms and
8926 button_down_location as needed. Call modify_event_symbol with
8927 different arguments.
8928 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
8929 Call modify_event_symbol with different arguments.
8930 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
8931 for any button number. Call modify_event_symbol with different
8932 arguments.
8933 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
8934 Accept a string for NAME_ALIST_OR_STEM.
8935
8936 * lisp.h (larger_vector): Add prototype.
8937
8938 * fns.c (larger_vector): Make externally visible.
8939
8940 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
8941
2d1675e4
SM
89422000-04-02 Stefan Monnier <monnier@cs.yale.edu>
8943
8944 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
8945 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
8946 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
8947 we are between str1 and str2.
8948 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
8949 (PATFETCH): Use `TRANSLATE'.
8950 (PATFETCH_RAW): Fetch multibyte char if applicable.
8951 (PATUNFETCH): Remove.
8952 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
8953 When writing a char, write it directly into the pattern buffer rather
8954 than going needlessly through a temp char-array.
8955 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
8956 multibyte magic and remove the useless `#ifdef emacs'.
8957 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
8958 buffer.
8959
8960 * regex.h (struct re_pattern_buffer): Make field `multibyte'
8961 conditional on `emacs'.
8962
8963 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
8964
cc2d8c6b
KR
89652000-04-01 Ken Raeburn <raeburn@gnu.org>
8966
8967 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
8968 non-union-type versions of XMARK and friends here, because XMARK
8969 and friends won't work on an integer field if NO_UNION_TYPE is not
8970 defined.
8971 (make_number): Define as a function if it's not defined as a
8972 macro.
8973
09654086
KR
8974 * composite.c (run_composite_function): Use NILP when checking for
8975 nil.
8976 (syms_of_composite): Delete local var NARGS, pass an int as first
8977 argument to Fmake_hash_table.
8978
2387b382
KR
8979 * editfns.c (text_property_stickiness): Use NILP to test
8980 Lisp_Object boolean value.
8981 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
8982 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
8983 problems reading from and changing the same lisp value in an
8984 XSETSTRING call.
8985
27660e89
GM
89862000-04-01 Gerd Moellmann <gerd@gnu.org>
8987
8988 * term.c (TN_no_color_video): New variable.
8989 (term_init): Intitialize TN_no_color_video.
8990 (enum no_color_bit): New enumeration.
8991 (MAY_USE_WITH_COLORS_P): New macro.
8992 (turn_on_face): Use it to determine if attributes may be used
8993 combined with colors.
8994
3578db3c
KR
89952000-04-01 Ken Raeburn <raeburn@gnu.org>
8996
8997 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
8998 with int lvalues via casts; instead, just yield lisp object
8999 lvalues.
9000 (enlarge_window): Variable sizep now points to Lisp_Object. Use
9001 proper accessor macros.
9002 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
9003 (grow_mini_window): Fix typo getting int value of root->height.
9004
6fc556fd
KR
9005 * xdisp.c (compute_string_pos): Fix order of arguments to
9006 string_pos_nchars_ahead.
9007 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
9008 count arg to variable-arg routines like Frun_hook_with_args and
9009 Fformat.
587a49ab
GM
9010 (back_to_previous_visible_line_start)
9011 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
9012 fixed-arg routines like Fget_char_property and Fmake_string.
9013 (reconsider_clip_changes): Use XINT when comparing integer lisp
9014 objects, or passing them as int arguments.
587a49ab
GM
9015 (mark_window_display_accurate, insert_left_trunc_glyphs)
9016 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
9017 storing or passing integer values as lisp objects.
9018 (set_cursor_from_row, highlight_trailing_whitespace): Use
9019 INTEGERP, not implicit test against zero, for glyph object.
9020 (try_window_id): Don't use make_number when we want an int value.
9021
9022 * xfaces.c (xlfd_symbolic_value): Make last argument a
9023 Lisp_Object, to be consistent with callers.
9024 (Fbitmap_spec_p): Use XINT to get numeric value of height.
9025 (lface_hash): Apply XFASTINT to lisp values before folding in.
9026
9027 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
9028 fill in window width and height. Pass an int, not a lisp object,
9029 as first arg to Finsert.
9030
6e7b2457
GM
90312000-04-01 Gerd Moellmann <gerd@gnu.org>
9032
610d841e
GM
9033 * xfaces.c (realize_basic_faces): Block input while realizing
9034 the faces.
9035
6e7b2457
GM
9036 * keyboard.c (lispy_mouse_names): Add additional mouse names.
9037
9038 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
9039
aa110c0c
GM
90402000-03-31 Gerd Moellmann <gerd@gnu.org>
9041
9042 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 9043 or ASCII, handle case that per-char metric is null.
aa110c0c 9044
8801a864
KR
90452000-03-30 Ken Raeburn <raeburn@gnu.org>
9046
c6129d7e
KR
9047 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
9048
8801a864
KR
9049 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW,
9050 XSUBR, XBUFFER): Verify correct object type before returning
9051 pointer, using eassert.
9052 * frame.h (XFRAME): Likewise.
9053
9054 * buffer.c (Frename_buffer, Fset_buffer_multibyte,
9055 swap_out_buffer_local_variables, Fmove_overlay): Don't apply
9056 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong
9057 type.
9058 * data.c (set_internal): Likewise.
9059 * dispextern.h (WINDOW_WANTS_MODELINE_P,
9060 WINDOW_WANTS_HEADER_LINE_P): Likewise.
9061 * fileio.c (auto_save_1): Likewise.
9062 * insdel.c (check_markers): Likewise.
9063 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
9064 * undo.c (record_insert): Likewise.
9065 * vmsproc.c (child_sig): Likewise.
9066 * window.c (unshow_buffer, window_loop): Likewise.
9067 * xterm.c (x_erase_phys_cursor): Likewise.
9068
8e7af858
GM
90692000-03-30 Gerd Moellmann <gerd@gnu.org>
9070
9071 * xfns.c (free_image_cache): Free the cache structure itself
9072 last, after all its members have been freed.
9073
9074 * lisp.h (xstrdup): Add prototype.
9075
9076 * alloc.c (xstrdup): Moved here from xfaces.c.
9077 (allocating_for_lisp): Variable removed.
9078 (lisp_malloc): Block input around the calls to malloc and
9079 mem_insert.
9080
9081 * xfaces.c (realize_tty_face): Use find_symbol_value instead
9082 of Fsymbol_value.
9083 (xstrdup): Moved to alloc.c.
9084
e0b8c689
KR
90852000-03-29 Ken Raeburn <raeburn@gnu.org>
9086
b96f9fb7
KR
9087 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
9088
9089 * emacs.c (main): Fix sense of no-loadup test.
9090
e0b8c689
KR
9091 * config.in (ENABLE_CHECKING): Undef.
9092
9093 * lisp.h (struct interval): Replace "parent" field with a union of
9094 interval pointer and Lisp_Object; add new bitfield to use as
9095 discriminant. Change other flag fields to bitfields.
9096 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
9097 is defined and the supplied test fails, print a message and
9098 abort.
9099 (eassert): New macro. Use CHECK to provide an assert-like
9100 facility.
9101
9102 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
9103 pointers; abort if the value looks like a lisp object.
9104 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT,
9105 SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
9106 Modify for new interval parent definition.
9107
9108 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE,
9109 UNMARK_BALANCE_INTERVALS): Update references that need an
9110 addressable lisp object in the interval structure.
9111 (die): New function.
9112 (suppress_checking): New variable.
9113
9114 * intervals.c (interval_start_pos): Just return 0 if there's no
9115 parent object.
9116
f83c5440
GM
91172000-03-29 Gerd Moellmann <gerd@gnu.org>
9118
9119 * lread.c (read1): Accept `.' (period) as symbol start like in CL
9120 and earlier Emacs versions.
9121
9122 * keyboard.c (Ftop_level): Cancel busy-cursor.
9123
9124 * eval.c (call_debugger): Cancel busy-cursor.
9125
fdce64ff
KH
91262000-03-29 Kenichi Handa <handa@etl.go.jp>
9127
9128 * search.c (Freplace_match): Adjust multibyteness of the current
9129 buffer and NEWTEXT. Free allocated memory before signaling an
9130 error.
9131
f6a3f532
SM
91322000-03-28 Stefan Monnier <monnier@cs.yale.edu>
9133
9134 * regex.c (analyse_first): New function obtained by ripping out most
9135 of re_compile_fastmap and generalizing it a little bit so that it
9136 can also just return whether a given (sub)pattern can match the empty
9137 string or not.
9138 (regex_compile): Use `analyse_first' to decide whether the loop-check
9139 needs to be done or not for *, +, *? and +? (the loop check is costly
9140 for non-greedy repetition).
9141 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
9142
e9b309ac
DL
91432000-03-28 Dave Love <fx@gnu.org>
9144
bb15bd9a
DL
9145 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k,
9146 alpha.
9147
e9b309ac
DL
9148 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
9149
ed0767d8
SM
91502000-03-27 Stefan Monnier <monnier@cs.yale.edu>
9151
9152 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
9153 an expression.
9154 (enum re_opcode_t): Update description of succeed_n.
9155 (PATFETCH): Always define.
9156 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
9157 operators, char classes, shy-groups and intervals).
9158 Optimize special cases of intervals so as to only use succeed_n and
9159 jump_n when really needed.
9160 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
9161 that we don't have to handle the special cases any more.
9162 Simplify on_failure_jump handling as well.
9163
e11e7e46
JR
91642000-03-28 Jason Rumney <jasonr@gnu.org>
9165
9166 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
9167
88faab89
GM
91682000-03-27 Gerd Moellmann <gerd@gnu.org>
9169
182ff242
GM
9170 * s/freebsd.h (GC_SETJMP_WORKS): Define.
9171
9172 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 9173
182ff242
GM
9174 * alloc.c (mark_maybe_object): New function.
9175 (mark_memory): Use it.
9176 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
9177 (setjmp_tested_p, longjmp_done): New variables.
9178 (test_setjmp): New function.
9179 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
9180 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
9181
c1005d06
GM
9182 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
9183 to DEC_TEXT_POS and INC_TEXT_POS.
9184
9185 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
9186 with parameter MULTIBYTE_P.
9187
427ec082 9188 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
c1005d06
GM
9189 MULTIBYTE_P.
9190
7439e5b9 9191 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
9192 buffers because it looks for multibyte character byte sequences
9193 which don't exist in unibyte text.
7439e5b9 9194
d9c545da
GM
9195 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
9196
11fd416e 9197 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
9198 [DEBUG_X_COLORS]: New functions.
9199 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
9200
9201 * xfns.c (x_set_cursor_color): Get color reference counts right.
9202
9203 * xterm.c (x_copy_color): New function.
9204 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
9205
9206 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
9207 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
9208 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
9209 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
9210 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
9211 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
9212 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
9213 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
9214 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
9215 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
9216
11fd416e
GM
9217 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
9218 names for handling per-buffer variables.
d9c545da
GM
9219
9220 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
9221 instead of MAX_BUFFER_LOCAL_VARS.
9222 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
9223
9224 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
9225
88faab89
GM
9226 * xfns.c (x_specified_cursor_type): New function.
9227 (x_set_cursor_type): Use it.
9228
9229 * buffer.h (struct buffer): Add cursor_type.
9230
d80f42b7
SM
92312000-03-26 Stefan Monnier <monnier@cs.yale.edu>
9232
9233 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
427ec082 9234 (print_partial_compiled_pattern, re_compile_fastmap): Handle new
88faab89 9235 opcode.
d80f42b7
SM
9236 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
9237 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
9238 executing it as well as when popping it off the stack to find infinite
9239 loops in non-greedy repetition operators.
9240
89e80928
GM
92412000-03-26 Gerd Moellmann <gerd@gnu.org>
9242
3d4ff2dd
GM
9243 * doc.c (Qfunction_documentation): New variable.
9244 (syms_of_doc): Initialize Qfunction_documentation.
9245 (Fdocumentation): If FUNCTION is a symbol with non-nil
9246 `function-documentation' property, return a documentation derived
9247 from that.
9248
bd96bd79
GM
9249 * buffer.c (syms_of_buffer): Add default-cursor-type.
9250 (init_buffer_once): Don't let cursor_type have a local value
9251 in every buffer.
9252
19d1bc27
GM
9253 * xterm.c (x_display_and_set_cursor): Choose cursor depending
9254 on buffer-local value of cursor_type.
9255 (x_draw_bar_cursor): Add parameter WIDTH.
9256
9257 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
9258 (init_buffer_once): Set default cursor_type value to t.
9259 Mark cursor_type as local everywhere.
9260 (syms_of_buffer): New per-buffer variable cursor-type.
9261
89e80928
GM
9262 * buffer.h (struct buffer): Remove member local_var_flags,
9263 add local_flags.
9264 (MAX_BUFFER_LOCAL_VARS): New macro.
9265 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
9266 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
9267 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
9268 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
9269
9270 * print.c (print_object): Use new macros for per-buffer
9271 variables.
9272
9273 * category.c (Fset_category_table): Use new macros for per-buffer
9274 variables.
9275
9276 * buffer.c (buffer_permanent_local_flags): Make a char array.
9277 (max_buffer_local_idx): New variable.
9278 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
9279 for new handling of per-buffer variables.
9280 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
9281 (init_buffer_once): Initialize per-buffer vars differently.
9282 Set max_buffer_local_idx.
9283
9284 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
9285 variables.
9286
9287 * lread.c (defvar_per_buffer): Use new macros for per-buffer
9288 variables.
9289
9290 * data.c (do_symval_forwarding, store_symval_forwarding)
9291 (find_symbol_value, set_internal, default_value, Fset_default)
9292 (Fkill_local_variable, Flocal_variable_p): Use new macros for
9293 per-buffer variables.
9294
9295 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
9296
9a0dd3dc
GM
92972000-03-24 Gerd Moellmann <gerd@gnu.org>
9298
b68c375f
GM
9299 * xterm.c (x_term_init): Unblock input around call1 of
9300 Qvendor_specific_keysyms.
9301
9a0dd3dc
GM
9302 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
9303 (find_defun_start): Consider an open parenthesis in column 0
9304 a defun start only if open_paren_in_column_0_is_defun_start is set.
9305 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
9306
7973e637
SM
93072000-03-24 Stefan Monnier <monnier@cs.yale.edu>
9308
9309 * eval.c (Fautoload): Add entry in load-history (if after dump).
9310 * lread.c (load-history): Update docstring.
9311
39210e90
GM
93122000-03-24 Gerd Moellmann <gerd@gnu.org>
9313
9314 * indent.c (Fvertical_motion): Always use the current buffer.
9315 Temporarily change the window's buffer, if necessary.
9316
72db3ab5
GM
93172000-03-23 Gerd Moellmann <gerd@gnu.org>
9318
9319 * xterm.c (fast_find_position): Make sure not to consider rows
9320 not visible in the window.
9321
990b2375
SM
93222000-03-22 Stefan Monnier <monnier@cs.yale.edu>
9323
9324 * regex.c (enum syntaxcode): Provide default for non-Emacs.
9325 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
9326
ff4df011
JR
93272000-03-22 Jason Rumney <jasonr@gnu.org>
9328
9329 * w32menu.c (single_submenu): Set help string to NULL if none.
9330 (w32_menu_show): Set help string correctly.
9331 (add-menu-item): Set help string in MIIM_DATA for menu item.
9332 Load SetMenuItemInfoA explicitly.
9333 (w32_menu_display_help): New function.
427ec082 9334
ff4df011
JR
9335 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
9336 (QCdata): Moved to xdisp.c.
9337
9338 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
9339 (Vw32_charset_to_codepage_alist): Removed.
9340 (Vw32_charset_info_alist): New variable.
9341 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312,
9342 chinesebig5, oem, easteurope, turkish, baltic, russian, arabic,
9343 greek, hebrew, thai, johab, mac, unicode]): New symbols.
9344 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
9345 with TODO comment.
9346 (w32_codepage_for_font): Use Vw32_charset_info_alist.
9347 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
9348 Define Vw32_charset_info_alist and w32_charset symbols.
9349
93502000-03-22 Jason Rumney <jasonr@gnu.org>
9351
9352 * makefile.nt (w32bdf.obj): Update dependencies.
9353
9354 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
9355
9356 * w32fns.c: Include fontset.h after dispextern.h.
9357 (Fx_create_frame): Do not create fontset.
9358 (w32_load_system_font): Doc fix.
9359 (Fx_close_connection): Free full_name if it is not shared.
9360
9361 * w32term.c: Include fontset.h after dispextern.h.
9362 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
9363 updated.
9364 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
9365 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
9366 (w32_font_is_double_byte): New function, needs body.
9367 (x_append_glyph): Set glyph->glyph_not_available_p.
9368 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
9369 it->charset. If it->multibyte_p is zero and it->c is a multibyte
9370 character, convert it to a unibyte character.
9371 (struct glyph_string): Delete member `charset'.
9372 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
9373 calculating it is found.
9374 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
9375 the case that per char metric is not available correctly.
9376 (x_fill_glyph_string): Handle the case that the specific glyph is
9377 not available correctly.
9378 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
9379 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
9380 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
9381 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
9382 fontset. Don't call FS_LOAD_FONT.
9383
439d5cb4
KR
93842000-03-22 Ken Raeburn <raeburn@gnu.org>
9385
9386 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
9387 (INT_LISPLIKE): New macro.
9388 (NULL_INTERVAL_P): Use it.
9389 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
9390 SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
9391 GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
9392
9393 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
9394 explicit references to "parent" field of struct interval and
9395 associated unclean type conversions.
9396 * intervals.c (create_root_interval, root_interval, rotate_right,
9397 rotate_left, balance_possible_root_interval, split_interval_right,
9398 split_interval_left, interval_start_pos, find_interval,
9399 next_interval, previous_interval, update_interval,
9400 adjust_intervals_for_insertion, delete_node, delete_interval,
9401 adjust_intervals_for_deletion, merge_interval_right,
9402 merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
9403 copy_intervals_to_string): Likewise.
9404 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
9405 Likewise.
9406 * syntax.c (update_syntax_table): Likewise.
9407
9408 * intervals.c (reproduce_tree_obj): New function, like
9409 reproduce_tree but takes a Lisp_Object for the parent. Declare
9410 with prototype.
9411 (graft_intervals_into_buffer): Use it when appropriate.
9412 (reproduce_tree): Declare with prototype.
9413 (balance_possible_root_interval): Check that the parent is a lisp
9414 object before trying to examine its type.
9415
ee1c5b21
GM
94162000-03-22 Gerd Moellmann <gerd@gnu.org>
9417
9418 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
9419 as strings only if both are known to be strings.
9420
9421 * s/openbsd.h (LIBS_TERMCAP): Undef.
9422
1fb352e0
SM
94232000-03-21 Stefan Monnier <monnier@cs.yale.edu>
9424
9425 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
9426 definitions for non-Emacs compilation.
9427 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
9428 outside of `#ifdef emacs'.
9429 (print_partial_compiled_pattern): Update.
9430 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
9431 (re_compile_fastmap): Merge handling of charset and charset_not (for
9432 emacs and non-emacs compilation as well).
9433 Similarly for (not)categoryspec and (not)syntaxspec.
9434 Don't use the fastmap when reaching `anychar' since the added
9435 complexity is not justified.
9436 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
9437 and (not)syntaxspec. Merge (not)categoryspec.
9438
fdaa1f77
KH
94392000-03-22 Kenichi Handa <handa@etl.go.jp>
9440
ff1a0d8e
KH
9441 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
9442 FACE_FOR_CHAR): Define them differently for the configuration of
9443 --without-x.
fdaa1f77 9444
d152fb46
DL
94452000-03-21 Dave Love <fx@gnu.org>
9446
9447 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
9448 doc string.
9449
d2cafc8c
GM
94502000-03-21 Gerd Moellmann <gerd@gnu.org>
9451
9452 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
9453 (lface_fully_specified_p): Don't check contents of
9454 LFACE_FONT_INDEX because that attribute is optional.
9455 (realize_x_face): Remove now unwarranted xassert.
9456
9111d4b5
KH
94572000-03-21 Kenichi HANDA <handa@etl.go.jp>
9458
9459 The following changes are to make font selection based on
9460 characters, not charset. In addition, they recover fontset
9461 facilities while utilizing the new font selection mechanism.
9462
6c4bfdc0
KH
9463 * Makefile.in (fontset.o): Depend on dispextern.h.
9464
9465 * alloc.c (mark_face_cache): Don't mark face->registry.
9466
9111d4b5
KH
9467 * dispextern.h (struct glyph): New member glyph_not_available_p.
9468 Use 22 bits for face_id.
9469 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
9470 (struct face): Delete member registry, new member ascii_face.
9471 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
9472 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
9473 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
9474 (struct it): Delete member charset, new member
9475 glyph_not_available_p.
9476
9477 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
9478 (struct fontset_info, struct fontset_data): Structs removed.
9479 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
9480 Vglobale_fontset_alist, font_idx_temp): Externs removed.
9481 (fs_load_font, fs_query_fontset): Adjusted for new argument.
9482 (fs_free_face_fontset, fontset_font_pattern,
9483 face_suitable_for_char_p, face_for_char,
9484 make_fontset_for_ascii_face): Extern them.
9485 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
9486 (FS_LOAD_FACE_FONT): New macro.
9487
9488 * fontset.c: All codes rewritten or adjusted for the change of
9489 fontset implementation. Now fontset is represented by char table.
9490 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
9491 removed.
9492 (my_strcasecmp): Function removed.
9493 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
9494 variables.
9495 (AREF, ASIZE): New macros.
9496 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
9497 FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
9498 FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
9499 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
9500 fontset_id_valid_p, font_family_registry, fontset_name,
9501 fontset_ascii, free_face_fontset, face_suitable_for_char_p,
9502 face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
9503 New functions.
9504 (fs_load_font): New arg FACE. Caller changed.
9505 (fs_query_fontset): Argument changed. Caller changed.
9506 (Fquery_fontset): call fs_query_fontset.
9507 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
9508 Functions removed.
9509 (clear_fontset_elements, check_registry_encoding,
9510 check_fontset_name): New functions.
9511 (syms_of_fontset): Set char-table-extra-slots property of fontset
9512 to 3. Staticpro and initialize Vfontset_table and
9513 Vdefault_fontset. Defsubr fontset_font and fontset_list.
9514
9515 * frame.h (struct frame): Member `fontset_data' removed.
9516 (FRAME_FONTSET_DATA): Macro removed.
9517
9518 * frame.c (make_frame): Don't allocate f->fontset_data.
9519 (Fdelete_frame): Don't free f->fontset_data.
9520
6c4bfdc0
KH
9521 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
9522
9111d4b5
KH
9523 * xdisp.c (charset_at_position): Function removed.
9524 (init_iterator): Don't set member charset of struct `it'.
9525 (handle_face_prop, reseat_to_string, set_iterator_to_next,
9526 next_element_from_display_vector, insert_left_trunc_glyphs):
9527 Likewise.
9528 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
9529 FACE_FOR_CHARSET.
9530 (get_next_display_element, append_space,
9531 extend_face_to_end_of_line): Likewise.
9532
9533 * xfaces.c (Qx_charset_registry, Vface_default_registry):
9534 Variables removed.
9535 (clear_font_table, frame_update_line_height, load_face_font):
9536 Adjusted for the change of fontset implementation.
9537 (load_face_fontset_font): Function removed.
9538 (pixel_point_size): New function.
9539 (font_list): Argument type changed. Caller changed.
9540 (LFACE_FONT): New macro.
9541 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
9542 (set_lface_from_font_name): Type of arg FONTNAME is changed to
9543 Lisp_Object. Determine the font name by actually loading a font
9544 by the specified pattern. Set LFACE_FONT (lface) to the specified
9545 pattern. Even if a font is not found, don't try alternatives.
9546 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
9547 (set_font_frame_param): If `font' is specified in lface, use it.
9548 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
9549 (lface_same_font_attributes_p): Likewise.
9550 (make_realized_face): Arguent changed. Caller changed. Set
9551 face->ascii_face to face itself.
9552 (free_realized_face): Free face->fontset if face is for ASCII.
9553 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
9554 deduce_unibyte_registry, x_charset_registry): Functions removed.
9555 (free_realized_multibyte_face): New function.
9556 (lookup_face, lookup_named_face, lookup_derived_face): Argument
9557 changed. Caller changed.
9558 (try_font_list): Argument type changed.
9559 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
9560 (choose_face_font): Argument changed. Handle fontset properly.
9561 (choose_face_fontset_font): Function removed.
9562 (realize_default_face, realize_named_face): Don't remove the
9563 former face here.
9564 (realize_face): Argument changed. Caller changed. Remove face
9565 with the arg former_face_id in advance. Load font for the new
9566 face.
9567 (realize_x_face): Argument changed. Caller changed. For a
9568 multibyte character, share fontset with base_face. For a single
9569 byte character, make a new realized fontset. Don't load a font
9570 here.
9571 (realize_tty_face): Argument changed. Caller changed.
9572 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
9573 (face_at_buffer_position): Don't check multibyte_p for returning
9574 DEFAULT_FACE_ID.
9575 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
9576 FACE_SUITABLE_FOR_CHARSET_P.
9577 (syms_of_xfaces): Remove code for Qx_charset_registry and
9578 Vface_default_registry.
9579
6c4bfdc0
KH
9580 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
9581 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
9582 (x_per_char_metric): Don't try FONT->default_char. Even if
9583 pcm->width is zero, glyph bits may exist.
9584 (x_encode_char): Always initialize char2b->byte1.
9585 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
9586 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
9587 changed.
9588 (x_append_glyph): Set glyph->glyph_not_available_p.
9589 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
9590 it->charset. Handle the case that per char metric is not
9591 available. If it->multibyte_p is zero and it->c is a multibyte
9592 character, convert it to a unibyte character.
9593 (struct glyph_string): Delete member `charset'.
9594 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
9595 the case that per char metric is not available correctly.
9596 (x_fill_glyph_string): Handle the case that the specific glyph is
9597 not available correctly.
9598 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
9599 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
9600 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
9601 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
9602 fontset. Don't call FS_LOAD_FONT.
9603
9604 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
9605 (x_create_tip_frame): Likewise.
9606 (Fx_close_connection): Free full_name of font_info.
9607
9608 * fns.c (optimize_sub_char_table): New function.
9609 (Foptimize_char_table): New function.
9610 (syms_of_fns): Defsubr Soptimize_char_table.
9611
b33dd3b0
GM
96122000-03-20 Gerd Moellmann <gerd@gnu.org>
9613
9614 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
9615 only if buffer is displayed in some window.
9616
9617 * xdisp.c (handle_single_display_prop): Initialize local `value'.
9618 (try_window_reusing_current_matrix): Don't call scroll run
9619 function if run's current and desired position are the same;
9620 this prevents cursor flickering.
9621
4e8a9132
SM
96222000-03-19 Stefan Monnier <monnier@cs.yale.edu>
9623
9624 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
9625
9626 * regex.c (RE_STRING_CHAR): New macro.
9627 (GET_CHAR_AFER_2): Remove.
9628 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
9629 (enum re_opcode_t): Remove on_failure_jump_exclusive.
9630 (print_partial_compiled_pattern, re_compile_fastmap)
9631 (re_match_2_internal): Remove on_failure_jump_exclusive.
9632 (regex_compile): Turn optimizable P+ loops into PP*, so that the
9633 optimization only need to work for * (ie. can use of_keep_string_jump).
9634 Remove the special case for .*\n since it is now covered by the general
9635 optimization.
9636 (re_search_2): Don't bother with `room'.
9637 (skip_one_char): New function.
9638 (skip_noops): Simplify since `memory' is not needed any more.
9639 (mutually_exclusive_p): Restructure slightly to use `switch' and
9640 add handling for "all" remaining cases.
9641 (re_match_2_internal): Change on_failure_jump_smart to use
9642 on_failure_keep_string_jump (and redirect the end-of-loop jump)
9643 rather than on_failure_jump_exclusive.
9644
2136fdd4
GM
96452000-03-19 Gerd Moellmann <gerd@gnu.org>
9646
9647 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
9648 number of bits per RGB because it's everywhere used as the depth
9649 of the visual.
9650
9651 * term.c (calculate_costs): Remove code dealing with X frames.
9652
18e21ce8 96532000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
9654
9655 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
9656
d7b511c4
GM
96572000-03-18 Gerd Moellmann <gerd@gnu.org>
9658
9659 * lread.c (read_integer): Unread the last char not consumed.
9660
16b5d424
GM
96612000-03-17 Gerd Moellmann <gerd@gnu.org>
9662
9663 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 9664 which are in the process of being deleted.
16b5d424 9665
1fa28578
GM
96662000-03-16 Gerd Moellmann <gerd@gnu.org>
9667
83488cce
GM
9668 * Makefile.in (mostlyclean): Add `*.core'.
9669 (clean): Add `bootstrap-emacs'.
9670
1fa28578
GM
9671 * lread.c (read_integer): New function.
9672 (read1): Support read syntax #o, #x, #b, #r.
9673
99633e97
SM
96742000-03-15 Stefan Monnier <monnier@cs.yale.edu>
9675
1fa28578
GM
9676 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
9677 make sure POINTER_TO_OFFSET gives the same value before and after
9678 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
9679 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
9680 (debug): Now only active if > 0 rather than if != 0.
9681 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
9682 (print_partial_compiled_pattern): Add missing `succeed' case. Use
9683 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
9684 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
9685 (store_op1, store_op2, insert_op1, insert_op2)
9686 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
9687 (group_in_compile_stack): Move to after its arg's types are
9688 declared and add a prototype.
99633e97 9689 (PATFETCH): Define in terms of PATFETCH_RAW.
1fa28578
GM
9690 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
9691 wrapper.
99633e97 9692 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
9693 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
9694 indentation of the greedy-op and shy-group code.
99633e97
SM
9695 (at_(beg|end)line_loc_p): Fix argument's types.
9696 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
9697 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
9698 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
9699 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
9700 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
9701 QUIT unconditionally.
99633e97 9702
699238d9
GM
97032000-03-15 Gerd Moellmann <gerd@gnu.org>
9704
9705 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
9706 a sole completion.
9707
9708 * process.c (send_process): Add a hint that the function
9709 can call Lisp code to its comment.
9710
9711 * lread.c (load_dangerous_libraries): New variable.
9712 (Vbytecomp_version_regexp): New variable.
9713 (safe_to_load_p): New function.
9714 (Fload): Handle files not compiled with Emacs specially.
9715 (syms_of_lread): New Lisp variable load-dangerous-libraries.
9716
34e23e5a
GM
97172000-03-14 Gerd Moellmann <gerd@gnu.org>
9718
9c763cca
GM
9719 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
9720
9721 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
9722 support functions only if HAVE_X11R6_XIM is defined.
9723 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
9724
9725 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
9726
9727 * xfns.c (X_I18N_INHIBITED): Don't define.
9728 (create_frame_xic): Remove conditional compilation on
9729 X_I18N_INHIBITED.
9730 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
9731
9732 * config.in (HAVE_X_I18N): Moved here from xterm.h.
9733 (HAVE_X11R6_XIM): Define.
9734
9735 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
9736
34e23e5a
GM
9737 * xterm.c (x_term_init): Add support for X resource `synchronous'.
9738 If set, call XSynchronize.
9739
66f0296e
SM
97402000-03-13 Stefan Monnier <monnier@cs.yale.edu>
9741
34e23e5a
GM
9742 * regex.c: Declare a new type `re_char' used throughout the code
9743 for the string char type. It's `const unsigned char' to match the
9744 rest of Emacs. Consistently make sure all pointers to strings use
9745 it and make sure all pointers into the pattern use `unsigned
9746 char'.
66f0296e 9747 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
9748 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
9749 code duplication.
66f0296e
SM
9750
9751 * charset.h (GET_CHAR_AFTER_2): Remove.
9752 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
9753
854a025c
KR
97542000-03-12 Ken Raeburn <raeburn@gnu.org>
9755
9756 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
9757 variable before the invocation of YMF_PASS_LDFLAGS, in case both
9758 of them try to use backquotes.
9759
b9d2c7e2
DL
97602000-03-12 Dave Love <fx@gnu.org>
9761
9762 * unexelf.c: Restore changes of 1999-10-19.
9763 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
9764 fix its type and alignment; copy it from current process.
9765
5e5dff44
GM
97662000-03-12 Gerd Moellmann <gerd@gnu.org>
9767
9b2f3c38
GM
9768 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
9769 has been found. Fix bug not computing timer's predecessor.
9770
427ec082 9771 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
9772 file name.
9773
e1cff360
GM
9774 * window.c (Fsave_window_excursion): Doc fix.
9775
5e5dff44
GM
9776 * xfns.c (x_defined_color): Rewritten to use
9777 x_allocate_nearest_color.
9778
e411ce4b
EZ
97792000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
9780
9781 * msdos.c (vga_installed): New function, code moved from
9782 dos_set_window_size.
9783 (Qbar, Qcursor_type, outside_cursor): New variables.
9784 (syms_of_msdos): Intern and staticpro them.
9785 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
9786 shape used outside Emacs when called for the first time.
9787 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
9788 cursor shape used outside Emacs.
9789 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
9790 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
9791 type has changed.
9792 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
9793 parameters specify the cursor. Make qreverse a global
9794 variable (renamed to Qreverse).
9795
80460654
GM
97962000-03-09 Gerd Moellmann <gerd@gnu.org>
9797
9798 * fns.c (Fy_or_n_p): Cancel busy-cursor.
9799
95cd4c40
SM
98002000-03-08 Stefan Monnier <monnier@cs.yale.edu>
9801
9802 This is a big redesign of failure-stack and register handling, prompted
9803 by bugs revealed when trying to add shy-groups. Overall, what happened
9804 is that loops are now structured a little differently, groups can be
9805 shy and the code is a little simpler.
9806
9807 * regex.h: Update the copyright.
9808 (RE_SHY_GROUPS): New value.
9809 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
9810 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
9811
80460654
GM
9812 * regex.c (enum re_opcode_t): Remove jump_past_alt,
9813 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
9814 on_failure_jump_(exclusive, loop and smart). Also fix the comment
9815 for (start|stop)_memory since they now only take one argument (the
9816 second has becomes unnecessary).
9817 (print_partial_compiled_pattern): Adjust for changes in
9818 re_opcode_t.
9819 (print_compiled_pattern): Use %ld to printf long ints and flush to
9820 make debugging a little easier.
95cd4c40
SM
9821 (union fail_stack_elt): Make the integer unsigned.
9822 (struct fail_stack_type): Add a `frame' element.
9823 (INIT_FAIL_STACK): Init `frame' as well.
9824 (POP_PATTERN_OP): New macro for re_compile_fastmap.
9825 (DEBUG_PUSH, DEBUG_POP): Remove.
9826 (NUM_REG_ITEMS): Remove.
9827 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
9828 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
9829 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 9830 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
80460654
GM
9831 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
9832 macros.
9833 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
9834 address pushed is not the destination of the jump but the source
9835 of it instead.
95cd4c40
SM
9836 (NUM_FAILURE_ITEMS): Remove.
9837 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
9838 registers before the actual failure point). Don't hardcode any
9839 meaning for str==NULL anymore.
95cd4c40 9840 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
9841 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
9842 Remove.
95cd4c40
SM
9843 (REG_UNSET_VALUE): Use NULL (why not?).
9844 (compile_range): Remove declaration since it doesn't exist.
9845 (struct compile_stack_elt_t): Remove inner_group_offset.
9846 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
9847 (regex_grow_registers): Remove dead code.
9848 (FIXUP_ALT_JUMP): New macro.
80460654
GM
9849 (regex_compile): Add shy-groups Change loops to use
9850 on_failure_jump_smart&jump instead of
9851 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
9852 initial (dummy_failure_)jump. Remove c1_base (looks like unused
9853 variable to me). Use `jump' instead of `jump_past_alt' and don't
9854 bother with push_dummy_failure in alternatives since it is now
9855 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
9856 emacs' for (re)allocating the stack.
9857 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
9858 from loop when bufp->can_be_null rather than jumping to `done'.
9859 Avoid jumping backwards so as to ensure termination. Use
9860 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
9861 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 9862 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
9863 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
9864 improve mutually_exclusive_p to handle ".+\n".
9865 (lowest_active_reg, highest_active_reg,
9866 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
9867 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
9868 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
9869 variables. Push register (in `start_memory') on the stack rather
9870 than storing it in old_reg(start|end). Remove the cycle detection
9871 from `stop_memory', replaced by the use of on_failure_jump_loop
9872 for greedy loops. Add code for the new on_failure_jump_<foo>.
9873 Remove ad-hoc code in `on_failure_jump' to push more registers in
9874 the case of a loop. Take out code from `maybe_pop_jump' into
9875 separate functions and adapt it to the semantics of
9876 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
9877 and push_dummy_failure. Remove dummy_failure handling and
9878 handling of `failures to jump to on_failure_jump' (this last one
9879 was already dead code, it seems).
9880 (group_match_null_string_p, alt_match_null_string_p)
9881 (common_op_match_null_string_p): Remove.
95cd4c40 9882
7397acc4
DL
98832000-03-08 Dave Love <fx@gnu.org>
9884
9885 * config.in: Don't depend on __STDC__ for volatile.
9886 Add POINTER_TYPE, PTR, PROTOTYPES.
9887
9888 * hftctl.c, strftime.c: Use PROTOTYPES.
9889 * eval.c (find_handler_clause): Likewise.
9890
9891 * mem-limits.h: Use POINTER_TYPE.
9892
9893 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
9894 (memory_warnings): Declare using POINTER_TYPE.
9895
5e91ff9e
GM
98962000-03-08 Gerd Moellmann <gerd@gnu.org>
9897
feab4fba
GM
9898 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
9899
25edb08f
GM
9900 * xdisp.c (display_echo_area): Temporarily inhibit garbage
9901 collection.
9902
5e91ff9e
GM
9903 * xfns.c: Remove obsolete code in #if 0.
9904 (Fx_focus_frame): New function.
9905
a735b7e1
KH
99062000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
9907
9908 * coding.c (coding_category_name): Add coding-category-utf-8,
9909 coding-category-utf-16-be, coding-category-utf-16-le.
9910 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
9911 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
9912 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
9913 (detect_coding_utf_8): New function.
9914 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
9915 UTF_16_LOW_SURROGATE_P): New macros.
9916 (detect_coding_utf_16): New function
9917 (detect_coding_mask): When priorities are specified, skip any
9918 categories that have `nil' coding-system. Fix bug of returning
9919 wrong mask when PRIORITIES is specified and detect_coding_XXX()
9920 returns a mask not set in PRIORITIES.
9921 (detect_eol_type_in_2_octet_form): New function.
9922 (detect_eol): selects detect_eol_type_XXX to call according to
9923 cooding->category_idx.
9924 (detect_coding_system): Remove `nil' coding-system in the result.
9925 (Fupdate_coding_systems_internal): Update all coding-categories.
9926
9927 * coding.h (CODING_CATEGORY_IDX_UTF_8,
9928 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
9929 macros.
9930 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
9931 CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
9932 CODING_CATEGORY_IDX_UTF_16_LE.
9933 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
9934 CODING_CATEGORY_MASK_UTF_16_LE): New macros.
9935 (CODING_CATEGORY_MASK_ANY): Include the above macros.
9936 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
9937
9994cc69
GM
99382000-03-07 Gerd Moellmann <gerd@gnu.org>
9939
e9b4e5ff
GM
9940 * doc.c (Fdocumentation_property): If value is not a string,
9941 and doesn't refer to etc/DOC, evaluate it to obtain a string.
9942
f7daf1e1
GM
9943 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
9944 close the display with XtCloseDisplay. This caused a bus error
9945 on OpenWindows.
9946
9994cc69
GM
9947 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
9948 complete but not unique.
9949
4336c705
GM
99502000-03-06 Gerd Moellmann <gerd@gnu.org>
9951
18bb0684
GM
9952 * process.c (send_process): Remove local variable `procname' that
9953 might become invalid when a GC happens. Instead, access the
9954 process name slot directly.
9955
4336c705
GM
9956 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
9957 orig_height if set.
9958
9959 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
9960 orig_height if set.
9961
515d0d0e
EZ
99622000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
9963
9964 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
9965 glyph matrices have been freed.
9966
100b3cbb
GM
99672000-03-05 Gerd Moellmann <gerd@gnu.org>
9968
50df5e5a 9969 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 9970 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
9971
9972 * xfns.c (QCdata): Moved to xdisp.c.
9973
9974 * xdisp.c (QCdata): Moved here from xfns.c.
9975 (syms_of_xdisp): Initialize QCdata.
9976
9977 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
9978
9979 * window.c (coordinates_in_window): Use
9980 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
9981 FRAME_INTERNAL_BORDER_WIDTH.
9982
100b3cbb 9983 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 9984 it is obviously invalid.
100b3cbb
GM
9985
9986 * xterm.c (x_term_init): Create a colormap if not using the
9987 default visual.
9988
9989 * xterm.h (select_visual): Change prototype.
9990
9991 * xfns.c (select_visual): Rewritten. Recognize user-specified
9992 visual classes.
9993 (visual_classes): New variable.
9994
64d739c4
GM
99952000-03-04 Gerd Moellmann <gerd@gnu.org>
9996
9997 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
9998 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
9999 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
10000 (x_decode_color): Don't handle allocation of white and black
10001 specially.
10002 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
10003 XtNcolormap resources.
10004 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
10005 (Fx_create_frame): Initialize color members of x_output structure.
10006 (xpm_load): Pass colormap to XPM lib.
10007
10008 * xfaces.c (x_free_colors): Access colormap of frame using
10009 FRAME_X_COLORMAP. Be paranoid about freeing black and white
10010 when default colormap is used.
10011
10012 * xterm.c (x_term_init): Set Colormap member of x_display_info
10013 structure. Copy colormap if resource `privateColormap' is
10014 specified (PseudoColor only).
10015 (x_setup_relief_color): Access colormap of frame using
10016 FRAME_X_COLORMAP.
10017
10018 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
10019 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
10020
c3cee013
JR
100212000-03-04 Jason Rumney <jasonr@gnu.org>
10022
10023 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
10024 other non-platform-specific equivalents.
64d739c4 10025 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
10026 specific functions and macros as their w32 equivalents where
10027 non-platform-specifics are not available.
10028 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
10029 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
10030 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
10031 (frame_update_line_height): Use macros to access f->output_data.
10032 (defined_color): Remove FIXME comments; fixed.
10033 (x_face_list_fonts, prepare_face_for_display): Put X specifics
10034 into #ifdef blocks. Add WINDOWSNT blocks.
10035 (Fx_list_fonts): Use macros for accessing font data.
10036 (set_lface_from_font_name): Different default fonts for X and
10037 WINDOWSNT.
10038 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
10039 scalable for backward compatibility.
64d739c4 10040 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
10041 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
10042
64d739c4 10043 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
10044 syms_of_w32faces.
10045
10046 * makefile.nt (w32faces.obj): Remove.
10047 (xfaces.obj): Add.
10048
807cc41c
JR
100492000-03-03 Jason Rumney <jasonr@gnu.org>
10050
10051 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
10052 correct parameters.
10053
0007072a
KR
100542000-03-03 Ken Raeburn <raeburn@gnu.org>
10055
10056 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
10057 standard ELF definitions here if the system header does not.
10058
71a6ba55
GM
100592000-03-03 Gerd Moellmann <gerd@gnu.org>
10060
10061 * xterm.c (PER_CHAR_METRIC): Removed.
10062 (x_per_char_metric_1, x_default_char): New functions.
10063 (x_per_char_metric): If font's default char is invalid, return
10064 metrics of a suitably chosen usable default char.
10065 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
10066 char, replace occurrences of unprintable chars with a suitably
10067 chosen usable default char.
71a6ba55 10068
900fa1f1
GM
100692000-03-02 Gerd Moellmann <gerd@gnu.org>
10070
42f55fe0
GM
10071 * xterm.c (note_mouse_highlight): Return quickly if frame's
10072 glyph matrices have been freed.
10073
10074 * dispnew.c (free_glyphs): Block input while freeing matrices.
10075
900fa1f1
GM
10076 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
10077
10078 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
10079 x_free_colors.
10080
10081 * dispextern.h (x_free_colors): Add prototype.
10082
10083 * xfaces.c (x_free_colors): New function.
10084 (unload_color, free_face_colors): Use it.
10085
2f950292
EZ
100862000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
10087
10088 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
10089
10090 * window.c [MSDOS]: Include msdos.h.
10091
54d04320
DL
100922000-03-02 Dave Love <fx@gnu.org>
10093
10094 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
10095
10096 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
10097 set C_OPTIMIZE_SWITCH for gcc.
10098
0ba93ac4
KH
100992000-03-02 Kenichi Handa <handa@etl.go.jp>
10100
10101 * coding.c (coding_save_composition): Be sure to allocate
10102 composition data area in coding even if there's no composition in
10103 the current run.
10104
a2bc11d4
JR
101052000-03-01 Jason Rumney <jasonr@gnu.org>
10106
10107 * w32term.c: Equivalent changes to those made to xterm.c on
10108 2000-02-25 and 2000-02-24.
10109
10110 * w32fns.c: Equivalent changes to those made to xfns.c on
10111 2000-02-25 and 2000-02-21.
10112
10113 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
10114 correct line-end convention is followed.
10115
10116 * w32menu.c [HAVE_BOXES]: Remove #undef.
10117 (single_keymap_panes): Remove code for simulating checkmarks.
10118 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
10119 Remove code for drawing simulated checkmarks.
10120 (w32_menu_show): make unibyte help string correctly.
10121 (add_menu_item): draw standard Windows checkmarks. Draw radio
10122 buttons as radio buttons if possible.
10123
72d19d75
GM
101242000-03-01 Gerd Moellmann <gerd@gnu.org>
10125
2df636f4
GM
10126 * sysdep.c (start_of_text): Don't define this function for NetBSD
10127 with ELF.
10128
427ec082 10129 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
10130 Don't define.
10131 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
10132 (LINKER): Don't undef if __NetBSD__ is defined.
10133
10134 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
10135
10136 * fileio.c [__NetBSD__]: Define `unix'.
10137
72d19d75
GM
10138 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
10139
ed4d0512
GM
101402000-02-29 Gerd Moellmann <gerd@gnu.org>
10141
50b1039f
GM
10142 * atimer.c (start_atimer): Don't abort when timers are stopped.
10143 (append_atimer_lists): New function.
10144 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
10145 arbitrary lists of stopped and running atimers.
10146
ed4d0512
GM
10147 * atimer.c (cancel_atimer): Handle canceling an atimer when
10148 some timers are stopped.
10149
10150 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
10151 after canceling it.
10152
10153 * fns.c (maybe_resize_hash_table): Handle case of new size
10154 coming out as being the same as old size.
10155
387023ee
JR
101562000-02-27 Jason Rumney <jasonr@gnu.org>
10157
10158 * makefile.nt: Add atimer.h to dependencies.
10159 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
10160 * w32console.c: Only disable window system features for dispextern.h
10161 (initialize_w32_display): Build a display info for the console.
10162 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
10163 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
10164 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
10165 as 2 button mice.
10166 * w32gui.h (struct W32FontStruct): Revert last change after change
10167 to xdisp.c.
10168 * w32menu.c (single_submenu): Set up help string.
10169 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
10170 (w32_dialog_show): Set up help string.
10171 * w32term.c (w32_display_info_for_display): Remove unused function.
10172 (w32_draw_bitmap): Use pre-built bitmaps.
10173 (w32_initialize_display_info): New function to initialize parts of
10174 display info that are common to both GUI and console frames.
10175 (w32_term_init): Use w32_initialize_display_info. Do not set
10176 Vw32_num_mouse_buttons here, as it is not called for console
10177 frames. Build bitmaps for indicating truncated lines etc.
10178 (x_delete_display): Destroy pre-built bitmaps.
10179 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
10180 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
10181
4516715a
DL
101822000-02-27 Dave Love <fx@gnu.org>
10183
10184 * lisp.h: Add a bunch of prototypes.
10185
171ca836
KH
101862000-02-26 Kenichi Handa <handa@etl.go.jp>
10187
10188 * keyboard.c (read_char): Set `usec' correctly.
10189
4013921d
KH
101902000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
10191
10192 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
10193 `lambda', set reg[RRR] to the map index.
10194 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
10195 reg[RRR] to 0. Otherwise, set it to -1.
10196
9244a058
GM
101972000-02-25 Gerd Moellmann <gerd@gnu.org>
10198
2df636f4 10199 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 10200
18e21ce8 102012000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 10202
f43d79c1
GM
10203 * fileio.c (Ffile_symlink_p): If result starts with a `/'
10204 and contains a `:', prepend `/:'.
10205
10206 * window.c (select_window_1): If selected_window is nil,
10207 don't "swap out" the buffer's point.
10208 (Fset_window_configuration): Set selected_window to nil
10209 before calling Fselect_window.
10210 (unshow_buffer): Don't set point in buffer from window's point
10211 if another more recently selected window also shows the buffer.
10212
bed0c171
GM
102132000-02-25 Gerd Moellmann <gerd@gnu.org>
10214
449c3c52
GM
10215 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
10216
f5b58615
GM
10217 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
10218 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
10219 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
10220 variables.
10221 (DEFAULT_BUSY_CURSOR_DELAY): New define.
10222 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
10223 (hide_busy_cursor): New functions.
10224 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
10225
10226 * minibuf.c (read_minibuf): Cancel busy-cursor.
10227
10228 * keyboard.c (command_loop_1): Call start_busy_cursor before
10229 Fcommand_execute and cancel_busy_cursor after it.
10230 (timer_check): Remove busy-cursor code.
10231 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
10232 cursor timer.
10233
10234 * process.c (wait_reading_process_input): Remove busy-cursor code.
10235
10236 * eval.c (Fsignal): Call cancel_busy_cursor instead of
10237 Fx_hide_busy_cursor.
10238
10239 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
10240 Remove prototyoes.
10241 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
10242
10243 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
10244
10245 * xterm.c (XTread_socket): Remove busy-cursor code.
10246
4eb8436f
GM
10247 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
10248 (build_frame_matrix_from_leaf_window): Put code handling
10249 glyph row's not being a slice of a frame row in #if 0.
10250 (sync_window_with_frame_matrix_rows): New function.
10251 (frame_row_to_window): New function.
10252 (mirror_line_dance): Handle copies between windows.
10253
3cb65b0e
GM
10254 * lread.c (Fload): Use `xfree' instead of `free'.
10255 (init_obarray): Use `xmalloc' instead of `malloc'.
10256
bed0c171
GM
10257 * window.c (Fset_window_buffer): Set WINDOW to the window
10258 after decoding.
2add4349
GM
10259 (coordinates_in_window): Take frame's internal border width
10260 into account.
bed0c171 10261
42088c12
GM
102622000-02-24 Gerd Moellmann <gerd@gnu.org>
10263
10264 * xterm.c (x_display_and_set_cursor): Display cursor of
10265 non-selected windows depending on the setting of
10266 cursor_in_non_selected_windows.
10267
10268 * xdisp.c (cursor_in_non_selected_windows): New variable.
10269 (syms_of_xdisp): DEFVAR_BOOL it.
10270
d1e103b2
GM
102712000-02-23 Gerd Moellmann <gerd@gnu.org>
10272
723e779c
GM
10273 * data.c (Fstring_to_number): If number is greater than what
10274 fits into an integer, return a float.
10275
d1e103b2
GM
10276 * eval.c (specbind): Remove references to
10277 keyword_symbols_constant_flag.
10278
10279 * data.c (keyword_symbols_constant_flag): Removed.
10280 (Fmakunbound, set_internal, syms_of_data): Remove references to
10281 keyword_symbols_constant_flag.
10282
10283 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
10284
214f877f
KH
102852000-02-23 Kenichi Handa <handa@etl.go.jp>
10286
10287 * syntax.c (multibyte_syntax_as_symbol): New variable.
10288 (syms_of_syntax): Declare it as a Lisp variable.
10289 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
10290 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
10291 nonzero, treat all multibyte characters as symbol.
42088c12 10292 (init_syntax_once): Give syntax `word' to all multibyte
214f877f
KH
10293 characters.
10294
130adcb7
EZ
102952000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
10296
3cb65b0e 10297 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 10298 a deleted frame.
130adcb7 10299
17cbbf95
GM
103002000-02-21 Gerd Moellmann <gerd@gnu.org>
10301
10302 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
10303
10304 * xfns.c (x_window_to_frame, x_any_window_to_frame)
10305 (x_non_menubar_window_to_frame): Check the busy-cursor window.
10306
beb0bc36
DL
103072000-02-21 Dave Love <fx@gnu.org>
10308
10309 * frame.c (Vmouse_position_function): New variable.
10310 (Fmouse_position): Use it.
10311 (syms_of_frame): Install it.
10312
10313 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
10314
1d92afcd
GM
103152000-02-20 Gerd Moellmann <gerd@gnu.org>
10316
10317 * fileio.c (Finsert_file_contents): Unbind the binding of
10318 standard-output done by temp_output_buffer_setup.
329eed9f
GM
10319
10320 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
10321 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
10322 (specbind, unbind_to): Handle most common case of non-constant
10323 symbol with trivial value specially.
10324
10325 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
10326
18e21ce8 103272000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
10328
10329 * data.c (Fmake_variable_buffer_local): Doc fix.
10330 Init found_for_buffer to 0.
10331 (Fmake_variable_frame_local): If the variable has already
10332 been buffer-local, set the check_frame field.
10333
1d4311c3
EZ
103342000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
10335
10336 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
10337 produced for CODING_MODE_LAST_BLOCK requires.
10338
2dc95ddd
DL
103392000-02-18 Dave Love <fx@gnu.org>
10340
10341 * keyboard.c (echo_keystrokes): Remove declaration.
10342 (Vecho_keystrokes) New variable.
10343 (read_char, record_menu_key, read_key_sequence): Use it to allow
10344 use of float value.
10345 (syms_of_keyboard): Change Vecho_keystrokes declaration.
10346
10347 * lread.c: Undef feature selection macros before defining.
10348
f0930f35
GM
103492000-02-18 Gerd Moellmann <gerd@gnu.org>
10350
10351 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
10352 for symbols other than the symbol in question.
10353
e3d4de90
DL
103542000-02-17 Dave Love <fx@gnu.org>
10355
10356 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
10357
0b378936
GM
103582000-02-17 Gerd Moellmann <gerd@gnu.org>
10359
d621caf7
GM
10360 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
10361
0b378936
GM
10362 * alloc.c (enum mem_type): Compile unconditionally.
10363
3b451f74
EZ
103642000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
10365
10366 * xfaces.c (tty_defined_color): Don't return faulire indication
10367 for unspecified-fg and unspecified-bg pseudo-colors.
10368
10689a01
GM
103692000-02-17 Gerd Moellmann <gerd@gnu.org>
10370
1216f5e4
GM
10371 * alloc.c (mark_object): Don't mark symbol names in pure space.
10372 (gc_sweep): Don't unmark symbol names in pure space.
10373
10374 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
10375 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
10376 [GC_MARK_STACK]: New defines.
427ec082 10377 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
10378 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
10379
10380 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
10381
10382 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
10383 allocate_buffer instead of xmalloc.
10384
10385 * alloc.c (toplevel): Include setjmp.h.
10386 (PURE_POINTER_P): New define.
10387 (enum mem_type) [GC_MARK_STACK]: New enumeration.
10388 (Vdead) [GC_MARK_STACK]: New variable.
10389 (lisp_malloc): Add parameter TYPE, call mem_insert if
10390 GC_MARK_STACK is defined.
10391 (allocate_buffer): New function.
427ec082 10392 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
10393 (free_float) [GC_MARK_STACK]: Set type to Vdead.
10394 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
10395 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
10396 (MEM_NIL) [GC_MARK_STACK]: New define.
10397 (struct mem_node) [GC_MARK_STACK]: New structure.
10398 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
10399 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
10400 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
10401 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
10402 (mark_stack) [GC_MARK_STACK]: New functions.
10403 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
10404 (clear_marks): Removed.
10405 (gc_sweep): Set free conses' car, free floats' type, free
10406 symbols' function to Vdead. Use lisp_free to free buffers.
10407 (init_alloc_once): Initialize Vdead.
10408 (survives_gc_p): Return non-zero for pure objects.
10409
10410 * alloc.c: Add comments throughout the file.
10411
2503c8b1
GM
10412 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
10413 that unblocks alarms.
10414
8389e1e2
GM
10415 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
10416 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
10417 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
10418
10689a01 10419 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 10420
bfc17d18
KH
104212000-02-17 Kenichi Handa <handa@etl.go.jp>
10422
4a09dee0
KH
10423 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
10424 avoid infinite error signaling. Allocate sufficient memory for
10425 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 10426
2b927d02
SM
104272000-02-17 Stefan Monnier <monnier@cs.yale.edu>
10428
10429 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
10430 depends on the previous behavior.
10431
b49cb764
GM
104322000-02-16 Gerd Moellmann <gerd@gnu.org>
10433
10434 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
10435
99e95407
GM
104362000-02-15 Gerd Moellmann <gerd@gnu.org>
10437
10438 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
10439
10440 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 10441 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
10442 write(2).
10443
6ffd3cf7
RS
104442000-02-15 Richard M. Stallman <rms@gnu.org>
10445
10446 * data.c (set_internal): Don't make variable buffer-local
10447 if within a let-binding for the same buffer.
10448 (let_shadows_buffer_binding_p): New function.
10449
10450 * eval.c (specbind): For buffer-local value,
10451 record the current buffer also.
10452 (unbind_to): Cope with that change.
10453
cad53475
GM
104542000-02-15 Gerd Moellmann <gerd@gnu.org>
10455
10456 * window.c (Fsave_window_excursion): Doc fix.
10457
1aa963c8
SM
104582000-02-15 Stefan Monnier <monnier@cs.yale.edu>
10459
10460 * syntax.c (back_comment): Make sure we only consider comment-starters
10461 of the relevant style and return -1 in case of a failure to find the
10462 beginning of the comment.
10463 (Fforward_comment): If back_comment fails, go back to the position just
10464 after the comment-end.
10465 (scan_lists): Add comment describing a very minor bug.
10466
b9b84fd3
SM
104672000-02-14 Stefan Monnier <monnier@cs.yale.edu>
10468
10469 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
10470 `completion-regexp-list' in the docstring.
10471
3a28db80
DL
104722000-02-14 Dave Love <fx@gnu.org>
10473
10474 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
10475
fb4a568d
SM
104762000-02-14 Stefan Monnier <monnier@cs.yale.edu>
10477
10478 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
10479 to Emacs' syntax. Also fix the comment about set/not-set meanings
10480 since Emacs syntax is not the value 0 any more.
10481 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
10482 since it's now part of RE_SYNTAX_EMACS.
10483
1063ebb5
DL
104842000-02-12 Dave Love <fx@gnu.org>
10485
10486 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
10487 Alpha.
10488
fb07a302
GM
104892000-02-12 Gerd Moellmann <gerd@gnu.org>
10490
10491 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
10492
aaf2320c
DL
104932000-02-12 Dave Love <fx@gnu.org>
10494
10495 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
10496
10497 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
10498 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
10499 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
10500
10501 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
10502
10503 * s/nextstep.h: Don't define HAVE_ALLOCA.
10504
10505 * config.in: Add vfork bits.
10506
eedf8bde
GM
105072000-02-12 Gerd Moellmann <gerd@gnu.org>
10508
10509 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
10510 unwind function to undo the effect of stopping atimers.
10511
10512 * keyboard.c (bind_polling_period): Stop all timers except
10513 poll_timer.
10514
10515 * atimer.c (stopped_atimers): New variable.
10516 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
10517 New functions.
10518
10519 * atimer.h (stop_other_atimers, run_all_atimers)
10520 (unwind_stop_other_atimers): Add function prototypes.
427ec082 10521
eedf8bde
GM
10522 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
10523
8476c2f8
KR
105242000-02-11 Ken Raeburn <raeburn@gnu.org>
10525
10526 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
10527 library may depend on jpeg.
10528 (atimer.o): Depends on atimer.c.
10529
0e85e4a3
KH
105302000-02-11 Kenichi Handa <handa@etl.go.jp>
10531
10532 * insdel.c (del_range_1): Call update_compositions.
10533 (del_range_both): Call update_compositions just once..
10534
97fa0cc8
DL
105352000-02-10 Dave Love <fx@gnu.org>
10536
10537 * xfns.c (create_frame_xic): Fix initialization of automatic
10538 aggregates for pcc.
10539
25566a3c
KH
105402000-02-09 Kenichi Handa <handa@etl.go.jp>
10541
10542 * ccl.c (CCL_MAKE_CHAR): New macro.
10543 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
10544 registers by CCL_MAKE_CHAR before calling translate_char.
10545 <CCL_TranslateCharacterConstTbl> Likewise.
10546
69da54ba
DL
105472000-02-08 Dave Love <fx@gnu.org>
10548
10549 * lread.c (__EXTENSIONS__): Define.
10550
f7136ee8
GM
105512000-02-08 Gerd Moellmann <gerd@gnu.org>
10552
10553 * puresize.h (BASE_PURESIZE): Increase to 650000.
10554
7768790b
EZ
105552000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
10556
10557 * msdos.c (XMenuActivate): Turn off the cursor after displaying
10558 the help message.
10559
38fd211b
EZ
105602000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
10561
10562 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
10563 md, mh, mb, mr, and me to the fake termcap entry.
10564
66e4690f
KR
105652000-02-06 Ken Raeburn <raeburn@gnu.org>
10566
10567 * sound.c (sound_cleanup): Don't call device close routine if the
10568 function pointer is null.
10569
a75dfea0
AI
105702000-02-06 Andrew Innes <andrewi@gnu.org>
10571
10572 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
10573 around image definitions and prototypes.
10574 (gamma_correct) [WINDOWSNT]: New prototype.
10575
10576 * w32term.c (x_make_frame_visible): Replace call to
10577 input_poll_signal with poll_for_input.
10578
10579 * window.c [WINDOWSNT]: Include w32term.h.
10580
10581 * xdisp.c [WINDOWSNT]: Include w32term.h.
10582
10583 * makefile.nt: Add dependencies on w32gui.h.
10584 (OBJ1): Include atimer.obj.
10585 ($(BLD)\atimer.obj): New dependency rule.
10586
10587 * w32.c (sigmask): New function (does nothing).
10588 (sigunblock): Ditto.
10589
10590 * frame.c [WINDOWSNT]: Include w32term.h.
10591
10592 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
10593
10594 * lread.c (syms_of_lread): Fix literal newlines.
10595
10596 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
10597 the string constant limit (2048 bytes) in MSVC.
10598 (main): Ditto.
10599
59ddecde
GM
106002000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
10601
10602 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
10603 area.
10604 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
10605 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
10606 dispatch the event.
10607
07590973
DL
106082000-02-04 Dave Love <fx@gnu.org>
10609
10610 * fileio.c: Remove some unused vars.
10611 (_GNU_SOURCE): Define (for euidaccess).
10612
10613 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
10614
10615 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
10616 gcpro1, gcpro2.
10617 (read_minibuf): Deal with allow_props correctly.
10618
649351f9
EZ
106192000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
10620
10621 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
10622
66e4690f 106232000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
10624
10625 * search.c (compile_pattern): If a cache entry has a nil regexp,
10626 fill in that entry instead of clobbering a previously cached
10627 string regexp.
10628
66e4690f 106292000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
10630
10631 * puresize.h (BASE_PURESIZE): Increase to 610000.
10632
d240a249
GM
106332000-02-02 Gerd Moellmann <gerd@gnu.org>
10634
10635 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
10636 can GC.
10637
ca91fb26
KH
106382000-02-02 Kenichi Handa <handa@etl.go.jp>
10639
25660570
KH
10640 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
10641 instead of incrementing ic directly.
10642 <CCL_WriteExprConst> Likewise.
10643 <ccl_set_expr>: Set ic to jump_address.
10644
ca91fb26
KH
10645 * fileio.c (e_write): Fix the handling of
10646 CODING_FINISH_INSUFFICIENT_SRC.
10647
2ede9689
DL
106482000-02-01 Dave Love <fx@gnu.org>
10649
10650 * editfns.c (Fpropertize): Doc fix.
10651
10652 * process.c (Fstart_process): Doc fix.
10653
10654 * eval.c: Fix various doc strings not to duplicate information
10655 from help-manyarg-func-alist.
10656
10657 * window.c (Fset_window_margins): Don't make interactive. Doc
10658 fix.
10659
10660 * doc.c (Vhelp_manyarg_func_alist): New variable.
10661 (Fdocumentation): Use it.
10662 (syms_of_doc): Define it.
10663
b6680a0e
GM
106642000-01-31 Gerd Moellmann <gerd@gnu.org>
10665
2cb750ba
GM
10666 * xterm.c (xim_open_dpy): Remove unused local variable.
10667
74e9213b
GM
10668 * emacs.c (USAGE): Use term `display options' instead of `X
10669 options'.
10670
10671 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
10672 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
10673
b6680a0e
GM
10674 * fns.c (sweep_weak_table): New function.
10675 (sweep_weak_hash_tables): Use it. Keep on marking until there
10676 is no more change.
10677
994c5afe
GM
106782000-01-30 Gerd Moellmann <gerd@gnu.org>
10679
10680 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
10681 that XTread_socket does not crash by trying to call XNoOp on a
10682 closed display.
427ec082 10683
f00276e3
JR
106842000-01-30 Jason Rumney <jasonr@gnu.org>
10685
10686 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
10687 Change selected_frame to SELECTED_FRAME ().
10688 (w32_console_mouse_position): Remove #ifndef MULE from around
10689 `insist' parameter.
10690
10691 * makefile.nt: Remove dosfns.obj.
10692
10693 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
10694
10695 * w32fns.c (w32_defined_color): Check for valid frame before
10696 applying gamma correction. Eliminate dependency on frame elsewhere.
10697 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
10698 (w32_to_x_font): Use resx and resy not height_in and width_in.
10699 (x_to_w32_font): Doc fix.
10700 (xlfd_strip_height): New function to strip and return font height.
10701 (w32_font_match): Compare height separately from rest of xlfd
10702 spec, using xlfd_strip_height.
10703
10704 * w32term.c (w32_term_init): Swap resx and height_in, resy and
10705 width_in. Use w32_defined_color in place of defined_color.
10706
10707 * w32faces.c: Merge more of DOS and X specifics in preparation for
10708 merge with xfaces.c.
10709 (defined_color): Remove FIXME comment.
10710 (tty_color_name): Provide w32-specific function.
10711 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
10712
10713 * w32console.c (turn_on_face, turn_off_face): Removed.
10714 (w32_face_attributes): New function.
10715 (Global_variables): Reduce scope where possible.
10716 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
10717 fill attribute.
10718 (hl_mode): Don't modify text attributes.
10719 (write_glyphs): Don't do anything if len <= 0. Use
10720 w32_face_attributes to get attributes for drawing. Write
10721 terminating codes using char_attr_normal.
10722 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
10723 (update_begin, update_end): Likewise.
10724 (vga_stdcolor_name): New function.
10725 (initialize_w32_display): Remove char_attr_reverse and char_attr.
10726 (Fset_screen_color): Remove char_attr_reverse.
10727
b08e8bb2
GM
107282000-01-29 Gerd Moellmann <gerd@gnu.org>
10729
10730 * xfns.c (xic_set_preeditarea): Take window parameter and
10731 window-relative pixel-positions.
10732
10733 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
10734 is its frame's selected window.
10735 (xim_instantiate_callback): Likewise.
10736
10737 * xfns.c (x_create_im): Removed.
10738 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
10739 (supported_xim_styles): Renamed from supported_styles.
10740 (best_xim_style): Renamed from best_style.
10741 (create_frame_xic): Renamed from xic_create_frame.
10742 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 10743
b08e8bb2
GM
107442000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
10745
10746 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
10747 our frames, call XFilterEvent with 2nd parameter `None'.
10748 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
10749 returning XBufferOverflow.
10750 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
10751 area.
10752 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
10753 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
10754 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
10755 (xim_initialize, xim_close)
10756 [HAVE_X_I18N && HAVE_X11R6]: New functions.
10757 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
10758 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
10759 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
10760
10761 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
10762 and `xim_styles'.
10763 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
10764 `xic_style' and `xic_xfs'.
10765 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
10766 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
10767 (FRAME_XIM): Removed.
10768
10769 * xfns.c (supported_styles): New variable.
10770 (DEFAULT_STYLE, DEFAULT_FONT): New macros
10771 (xic_create_xfontset, best_style, xic_create_frame)
10772 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
10773 (xic_set_xfontset): New functions.
10774
142e109c
DL
107752000-01-28 Dave Love <fx@gnu.org>
10776
10777 * s/irix6-5.h: Revert last change after change to irix5-0.h.
10778
10779 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
10780
b02786f9
GM
107812000-01-28 Gerd Moellmann <gerd@gnu.org>
10782
d060bc9f
GM
10783 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
10784 for *scratch* if it already existed.
10785
b02786f9
GM
10786 * emacs.c (USAGE): New macro.
10787 (main): Use it to display usage information.
10788
2c52d7e4
EZ
107892000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
10790
10791 Support for the menu-help feature:
10792
10793 * msdos.h: Change prototypes of XMenuAddSelection and
10794 XMenuActivate.
10795
10796 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
10797 part of the line to the termscript file.
10798 (IT_clear_to_end): Clear the entire line, not just its beginning.
10799 (menu_help_message, prev_menu_help_message): New variables.
10800 (IT_menu_make_room): Make room for the help_text member.
10801 (IT_menu_display): New argument disp_help; all callers changed.
10802 If disp_help is non-zero, store the help text of the active menu
10803 item in menu_help_message.
10804 (XMenuAddPane): Initialize the help_text member to NULL.
10805 (XMenuAddSelection): New argument help_text. Store it in the
10806 XMenu structure.
10807 (XMenuActivate): New argument help_callback. If the value of
10808 menu_help_message has changed since the last time, display the
10809 menu help message text while waiting for the mouse to move. Clear
10810 the echo area before exiting.
10811 (XMenuDestroy): Free the help_text member.
10812
ffe0bcd1
GM
108132000-01-27 Gerd Moellmann <gerd@gnu.org>
10814
10815 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
10816 XMenuAddSelection. Pass help callback to XMenuActivate.
10817 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
10818
50dbd23f
EZ
108192000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
10820
10821 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
10822 and EMACS_SET_USECS.
10823
f5941bf8
GM
108242000-01-26 Dave Love <fx@gnu.org>
10825
6c67ddee
DL
10826 * editfns.c (Fchar_after, Fchar_before): Doc fix.
10827
f5941bf8
GM
10828 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
10829 an error may be signalled.
10830
9e49c990
GM
108312000-01-26 Gerd Moellmann <gerd@gnu.org>
10832
fc3cb460
GM
10833 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
10834 LD_SWITCH_SYSTEM inherited from irix5-0.h.
10835
9e49c990
GM
10836 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
10837
d0c037d8
GM
108382000-01-25 Gerd Moellmann <gerd@gnu.org>
10839
10840 * charset.c (Fstring): If there is a multibyte char among
10841 the args, always return a multibyte string.
10842
e12489f9
GM
108432000-01-25 Gerd Moellmann <gerd@gnu.org>
10844
10845 * sysdep.c (sys_select): Turn atimers off and on instead of
10846 recording and restoring old alarm handler
10847
10848 * process.c (toplevel): Include atimer.h.
10849 (create_process_1): Rewritten.
10850 (create_process): Use atimers instead of alarm.
10851 (wait_reading_process_input) [hpux]: Turn atimers off instead
10852 of turning off SIGALRM.
10853 (wait_reading_process_input): Turn off atimers instead off
10854 calling stop_polling.
10855
10856 * emacs.c (main): Call init_atimer.
10857
10858 * keyboard.c (toplevel): Include systime.h and atimer.h.
10859 (polling_for_input): Removed because unused.
10860 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
10861 (poll_timer): New variable.
10862 (poll_for_input, poll_for_input_1): New functions.
10863 (start_polling, stop_polling): Rewritten.
10864
10865 * keyboard.h (polling_for_input): Removed.
427ec082 10866
e12489f9
GM
10867 * atimer.h, atimer.c: New files.
10868
10869 * Makefile.in (obj): Add atimer.o.
10870 (atimer.o): New target.
10871
10872 * blockinput.h (pending_atimers): Add extern declaration.
10873 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
10874
10875 * lisp.h (popup_activated_flag): Add extern declaration.
10876
10877 * xmenu.c (popup_activated_flag): Make externally visible.
10878 (popup_activate_callback) [USE_MOTIF]: Increment
10879 popup_activated_flag.
10880 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
10881
10882 * xterm.c (toplevel): Include atimer.h.
10883 (toolkit_scroll_bar_interaction): New variable.
10884 (Fxt_process_timeouts): Removed.
10885 (x_process_timeouts): New function.
10886 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
10887 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
10888 (x_make_frame_visible): Call poll_for_input_1 instead of
10889 input_poll_signal. Don't call alarm.
10890 (x_initialize): Install timer calling x_process_timeouts.
427ec082 10891
1e5279b9
DL
108922000-01-24 Dave Love <fx@gnu.org>
10893
6c67ddee 10894 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
10895 Don't use -cckr -- apparently not now necessary.
10896
edf6aeb8
EZ
108972000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
10898
10899 * msdos.c (IT_menu_display): Truncate long menu lines at the right
10900 screen boundary.
10901
9badad41
JR
109022000-01-23 Jason Rumney <jasonr@gnu.org>
10903
10904 * w32fns.c (w32_defined_color): Apply gamma correction before
10905 trying to map to the palette.
10906 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
10907 to w32_clear_rect.
10908
10909 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
10910 here. Callers changed to always pass real device context.
10911 (w32_draw_bitmap): Likewise.
10912 (w32_get_glyph_overhangs): Likewise.
10913 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
10914 one.
10915 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
10916 pfnSetScrollInfo and SetScrollRange.
10917 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
10918 back into MULE characters after decoding them.
10919 (x_get_glyph_face_and_encoding): Likewise.
10920 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
10921 GetCharABCWidthsW fails, since this is defined on Windows 9x.
10922 (x_produce_glyphs): Calculate per char metrics for a character
10923 that we know exists in default font when font_not_found_p is true.
10924
63bd786b
JR
109252000-01-22 Jason Rumney <jasonr@gnu.org>
10926
10927 * makefile.nt (intervals.obj, composite.obj): New modules.
10928 (composite.h): Added as dependency where appropriate.
10929
10930 * w32gui.h (XGCValue): New struct for emulating X GCs.
10931
10932 * w32term.h (XCharStruct): New struct for emulating X.
10933
10934 * w32console.c (turn_on_face, turn_off_face): New functions.
10935 (change_line_highlight): New prototype for new redisplay.
10936 (write_glyphs): Support multibyte text. Support faces.
10937
10938 * w32faces.c: Complete rewrite for new redisplay based on new
10939 xfaces.c.
10940
10941 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
10942 throughout. struct frame * in place of FRAME_PTR.
10943 Skeleton support for images, toolbars, tooltips from xfns.c.
10944 (Fx_create_frame): Use system default for default scroll bar
10945 width.
10946 (w32_get_arg): Renamed from x_get_arg.
10947 (Fx_file_dialog): New function.
10948 (w32_list_fonts): Check cache before asking system.
10949 (Vw32_enable_synthesized_fonts): New variable.
10950 (Vw32_enable_italics): Obsolete, removed.
10951
10952 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
10953 Use SELECTED_FRAME macro.
10954
10955 * w32menu.c: Add skeleton support for help strings on menus.
10956 (add_menu_item): Native checkbox and radio support added, but not
10957 yet enabled due to bugs.
10958 (push_menu_item): Add parameters type, selection and help.
10959 Callers updated.
10960 Formatting changes to reduce unnecessary diffs with xmenu.c.
10961
10962 * w32select.c (Fw32_set_clipboard_data): Update call to
10963 find_charset_in_str.
10964
10965 * w32term.c: Complete rewrite for new redisplay based on new
10966 xterm.c with necessary sections merged back in from old w32term.c.
10967
6ffd3cf7 109682000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
10969
10970 * data.c (set_internal): Further fix in same criterion.
10971
6ffd3cf7 109722000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
10973
10974 * data.c (set_internal): Fix the criteria for whether
10975 to swap out the old cached binding.
10976
60af03f1
DL
109772000-01-19 Dave Love <fx@gnu.org>
10978
10979 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
10980
f9be074f
KH
109812000-01-18 Kenichi Handa <handa@etl.go.jp>
10982
10983 * regex.c (re_compile_fastmap): While checking a range table for
10984 `charset', skip flag bits for a character class correctly.
10985
52b8dbf9
GM
109862000-01-17 Gerd Moellmann <gerd@gnu.org>
10987
d36100c9
GM
10988 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
10989
52b8dbf9
GM
10990 * xfns.c (x_window): Call lw_create_widget with new parameter
10991 list.
10992
10993 * widget.c (EmacsFrameSetCharSize): Change size of children first
10994 because of problems with main window geometry management under
10995 Lesstif.
10996
10997 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
10998 MENU_ITEMS_ITEM_.*.
10999 (MENU_ITEMS_ITEM_HELP): New enumerator.
11000 (push_menu_item): Add parameter HELP. Record help in menu_items.
11001 (single_menu_item, single_submenu, list_of_items): Call
11002 push_menu_item with new parameter.
11003 (single_submenu): Set help string in widget value.
11004 (menu_highlight_callback): New function.
11005 (set_frame_menubar): Call lw_create_widget with new
11006 parameter list.
11007 (xmenu_show, xdialog_show): Ditto.
11008
3139018f
GM
110092000-01-13 Gerd Moellmann <gerd@gnu.org>
11010
11011 * sound.c (Fplay_sound): Improve doc string.
11012
83c8f461
RS
110132000-01-11 Richard M. Stallman <rms@gnu.org>
11014
11015 * lisp.h (set_internal): Enter the new arg.
11016
11017 * eval.c (specbind): Record buffer-local variables specially,
11018 indicating which buffer's binding was saved.
11019 (unbind_to): Restore buffer-local variables specially
11020 in the proper buffer.
11021
11022 * data.c (set_internal): New arg BUF.
427ec082 11023
83c8f461
RS
11024 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
11025 * data.c (Fset): Pass new arg to set_internal.
11026 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 11027
1fab1775
GM
110282000-01-11 Gerd Moellmann <gerd@gnu.org>
11029
11030 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
11031 xprintsym.
11032
83c8f461 110332000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
11034
11035 * minibuf.c (Ftry_completion): Doc fix.
11036
7a85e4df
GM
110372000-01-11 Gerd Moellmann <gerd@gnu.org>
11038
11039 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
11040 vector, too.
11041
a970dae4
AS
110422000-01-11 Andreas Schwab <schwab@suse.de>
11043
11044 * coding.c (code_convert_region): Initialize total_skip.
11045
c65d14ee
DL
110462000-01-08 Dave Love <fx@gnu.org>
11047
11048 * eval.c (Fuser_variable_p): Check customizability too.
11049
834938d2
GM
110502000-01-07 Gerd Moellmann <gerd@gnu.org>
11051
11052 * minibuf.c (Fcompleting_read): Doc fix.
11053
e0303cd6
GM
110542000-01-05 Gerd Moellmann <gerd@gnu.org>
11055
8a26744b
GM
11056 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
11057 -L /usr/local/lib.
11058
e0303cd6
GM
11059 * xfns.c (x_create_im): New function to set IM and IC of a frame.
11060 Check that input style is supported before trying to create an
11061 IC for it.
11062 (x_window): Call x_create_im.
427ec082 11063
2e471eb5
GM
110642000-01-04 Gerd Moellmann <gerd@gnu.org>
11065
560a7bd2
GM
11066 * xfns.c (current_gif_memory_src): New variable.
11067 (gif_load): Record the address of the current memory source
11068 in current_gif_memory_src.
11069 (gif_read_from_memory): Use current_gif_memory_src.
11070
f9ee84a3
GM
11071 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
11072 macros statement form.
11073
d1299cde
GM
11074 * sound.c (struct sound): Renamed from struct sound_file.
11075 (struct sound): Add members `data' and `header_size'.
11076 (enum sound_attr): Add SOUND_DATA.
11077 (current_sound, current_sound_device): Variables renamed from
11078 sound_file and sound_device.
11079 (parse_sound): Parse :data.
11080 (parse_sound): Handle sound data in strings.
11081 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 11082 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
11083 needed header size.
11084 (wav_play, au_play): Play sounds from string data.
11085
2e471eb5
GM
11086 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
11087
11088 * lisp.h: Add prototype for allocate_string_data.
11089
11090 * alloc.c (Fgarbage_collect): Return number of live and free
11091 strings.
11092
11093 * alloc.c (mark_buffer): Remove code in #if 0.
11094 (gc_sweep): Ditto.
11095 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
11096 (strings_consed): New variable.
11097 (allocate_string): Set it.
11098 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
11099 (Fmemory_use_counts): Return strings_consed. Use Flist.
11100
11101 * alloc.c: General cleanup in comments etc. Remove conditional
11102 compilation for `standalone'.
11103
11104 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
11105
11106 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
11107 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
11108 (DONT_COPY_FLAG): Removed.
11109 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
11110 (struct sdata, struct sblock): New
11111 (struct string_block): Rewritten.
11112 (STRINGS_IN_STRING_BLOCK): New macro.
11113 (oldest_sblock, current_sblock, total_strings, total_free_strings)
11114 (large_sblocks, string_blocks, string_free_list): New variables.
11115 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
11116 (init_strings): Rewritten.
11117 (allocate_string, allocate_string_data, compact_small_strings)
11118 (free_large_strings, sweep_strings): New functions.
11119 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
11120 (struct string_block_head, current_string_block)
11121 (first_string_block, large_string_blocks, STRING_FULLSIZE)
11122 (STRING_PAD): Removed.
11123 (make_uninit_multibyte_string, make_pure_string): Rewritten.
11124 (Fgarbage_collect): Don't set mark bit in large strings.
11125 (mark_object): Mark strings differently. Mark symbol names
11126 differently.
11127 (survives_gc_p): Test marked strings differently.
427ec082 11128 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
11129 symbol names.
11130 (compact_strings): Removed.
11131
42608ba8
EZ
111322000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
11133
11134 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
11135 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
11136
e0a09e1a
KH
111372000-01-04 Kenichi Handa <handa@etl.go.jp>
11138
dd9f0750 11139 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 11140 in a non-empty buffer.
dd9f0750 11141
3c0f3b15 11142 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 11143
44cd3ae5
GM
111442000-01-03 Gerd Moellmann <gerd@gnu.org>
11145
11146 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
11147 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
11148
11149 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
11150
c182a70f
EZ
111512000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11152
11153 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
11154 need to test for MSDOS frames.
11155
24480d5b
EZ
111562000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11157
11158 * dosfns.c (unspecified_colors): Remove.
11159 (msdos_stdcolor_idx): Use global variables unspecified_fg and
11160 unspecified_bg.
11161 (msdos_stdcolor_name): Return strings for unspecified fore- and
11162 back-ground colors.
11163
11164 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 11165 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
11166 (tty_color_name): Return Lisp strings for unspecified fore- and
11167 back-ground colors.
11168 (Finternal_set_lisp_face_attribute): Remove the special treatment
11169 for Qunspecified_{f,b}g.
11170 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
11171 string.
11172
047f434a
GM
111732000-01-03 Gerd Moellmann <gerd@gnu.org>
11174
11175 * xdisp.c (reseat_at_next_visible_line_start): Position before
11176 newline only if ending up on a newline.
11177 (next_element_from_ellipsis): Return success. Handle case of
11178 displaying no ellipsis. Fix case of ellipsis defined in display
11179 table.
11180 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
11181 returns 0.
11182
d684c676
EZ
111832000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11184
11185 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
11186 (Fcolor_supported_p): Renamed from face-color-supported-p.
11187
5fe1d139
EZ
111882000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11189
11190 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
11191 list of colors renamed to tty-defined-color-alist.
11192 (tty_color_name): Pass the frame to tty-color-by-index.
11193 (realize_tty_face): tty-color-alist is now a function which
11194 accepts the frame as argument.
11195
11196 * term.c (Ftty_display_color_p): Accept an optional argument
11197 FRAME.
11198
816be8b8
EZ
111992000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11200
11201 * term.c (insert_glyphs): Pass glyph, not &glyph, to
11202 encode_terminal_code.
11203
b635321e
EZ
112042000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11205
11206 * dispnew.c (mode_line_string): Support termcap frames as well.
11207
9b784e96
GM
112082000-01-01 Gerd Moellmann <gerd@gnu.org>
11209
27189709
GM
11210 * syntax.c (Fforward_word): Undo previous change.
11211
11212 * editfns.c (Fconstrain_to_field): Don't constrain if
11213 inhibit-field-text-motion is non-nil.
11214 (Fline_beginning_position): Undo previous change.
11215 (Fline_end_position): Ditto.
11216
11217 * syntax.c (Fforward_word): Notice field boundaries only if
11218 inhibit-field-text-motion is nil.
11219
11220 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
11221
11222 * editfns.c (Vinhibit_field_text_motion): New variable.
11223 (inhibit-field-text-motion): New DEFVAR_LISP.
11224 (Fline_beginning_position, Fline_end_position): Notice field
11225 boundaries only if inhibit-field-text-motion is nil.
11226
45158a91
GM
11227 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
11228 All calls adjusted.
11229 (x_build_heuristic_mask): Likewise.
11230 (xbm_load_image_from_file): Change error output.
11231 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
11232 (gif_load, gs_load, x_kill_gs_process): Ditto.
11233
9b784e96
GM
11234 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
11235 color indices when accessing raster pixels.
63cec32f
GM
11236 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
11237 one of :file or :data.
11238 (enum pbm_keyword_index): Add PBM_DATA.
11239 (pbm_format): Add :data.
11240 (pbm_image_p): Allow either :file or :data.
11241 (pbm_read_file): New function.
11242 (pbm_scan_number): Rewritten to read from string.
11243 (pbm_load): Support :data.
9b784e96 11244
2cb085db 11245See ChangeLog.8 for earlier changes.
6922b018
KH
11246
11247;; Local Variables:
49b3bd82 11248;; coding: iso-2022-7bit
6922b018 11249;; End: