(realize_basic_faces): Decrement menu_face_change_count
[bpt/emacs.git] / src / ChangeLog
CommitLineData
f827b862
GM
12001-03-28 Gerd Moellmann <gerd@gnu.org>
2
44655e77
GM
3 * xterm.c (x_draw_relief_rect): Extend left shadow to the
4 bottom; change bottom shadow accordingly.
5
a02f1be0
GM
6 * xterm.c (expose_window_tree, expose_frame): Don't compute
7 intersections here.
8 (expose_window): Do it here instead.
9 (x_draw_glyph_string): Fix a computation of the underline
10 position.
11
f827b862
GM
12 * bytecode.c (BYTE_CODE_QUIT): New macro.
13 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
14
4bde0ebb
GM
152001-03-27 Gerd Moellmann <gerd@gnu.org>
16
607ec83c
GM
17 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
18 Give up if matrix starts in an ellipsis.
19 (init_from_display_pos): Do nothing if POS doesn't specify
20 a dpvec_index but the iterator has such a position.
21
0245398f
GM
22 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
23
aba25348
GM
24 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
25 x/y position is (0, 0) after destroying the menu bar, restore
26 its original position.
27
4bde0ebb
GM
28 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
29 (init_from_display_pos): Use it.
30 (try_window_reusing_current_matrix): Don't use cursor_row_p.
31
8cdb267e
GM
322001-03-26 Gerd Moellmann <gerd@gnu.org>
33
34 * xdisp.c (try_window_id): Undo last change.
35
9948db79
EZ
362001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
37
38 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
39
40 * buffer.c (syms_of_buffer): Doc fix.
41
2eddf899
GM
422001-03-26 Gerd Moellmann <gerd@gnu.org>
43
44 * xfaces.c (x_update_menu_appearance): Use local variable
45 popup_path for setting font resources.
46
6c145d35
EZ
472001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
48
6a65b1b5
EZ
49 * frame.c (Fframe_list): Don't reference tip_frame if
50 HAVE_WINDOW_SYSTEM is not defined.
51
6c145d35
EZ
52 * emacs.c (main): Update the copyright year. From Werner LEMBERG
53 <wl@gnu.org>.
54
d74c1900
GM
552001-03-25 Gerd Moellmann <gerd@gnu.org>
56
20fbd925
GM
57 * xdisp.c (init_from_display_pos): Test invisible property
58 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
59
927c5b3b
GM
60 * xdisp.c (redisplay_internal) <update one window>: Make sure
61 last_arrow_position and last_arrow_string are set.
62
d74c1900
GM
63 * frame.c (Fframe_list): Don't return a tooltip frame.
64
091f8878
GM
652001-03-23 Gerd Moellmann <gerd@gnu.org>
66
43c09969
GM
67 * xdisp.c (mark_window_display_accurate_1): New function,
68 extracted from mark_window_display_accurate. Compute
69 BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
70 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
71 (mark_window_display_accurate): Use it.
72 (redisplay_internal): Use it for the selected window.
73 (redisplay_internal): Avoid duplicate mark_window_display_accurate
74 for the selected frame.
75
ac90c44f
GM
76 * xdisp.c Use make_number, for readability.
77 (try_window_id): Disable rows below the window end.
78 (try_window_reusing_current_matrix): Use cursor_row_p.
79 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
80 of rows.
81 (init_from_display_pos): If POS specifies a position in a display
82 vector, maybe get the iterator set up for that ellipsis.
43c09969 83
091f8878
GM
84 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
85
991786dd
EZ
862001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
87
88 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
89
6c29b43c
GM
902001-03-23 Gerd Moellmann <gerd@gnu.org>
91
92 * xfaces.c (x_update_menu_appearance): Use a different path
93 for Lucid popup menus.
94
d8731202
SM
952001-03-22 Stefan Monnier <monnier@cs.yale.edu>
96
97 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
98
99 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
100 (string_buffer_position): Use `make_number'.
101
f61a541b
GM
1022001-03-22 Gerd Moellmann <gerd@gnu.org>
103
3c9e997b
GM
104 * xfaces.c (x_update_menu_appearance): Renamed from
105 x_set_menu_face_resources. Use different resources for popups.
106
107 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
108 (GC_CHECK_STRING_BYTES): Don't define.
109
364cd450
GM
110 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
111 Removed, together with subroutines.
112 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
d8731202 113 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
364cd450 114
d8731202
SM
115 * dispextern.h (x_set_menu_resources_from_menu_face):
116 Remove prototype.
364cd450 117
d8731202 118 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
364cd450
GM
119 Remove calls to x_set_menu_resources_from_menu_face.
120
d8731202
SM
121 * xfaces.c (xm_set_menu_resources_from_menu_face):
122 Remove #ifndef LESSTIF_VERSION.
f61a541b
GM
123
124 * xmenu.c: Include widget.h.
125 (single_submenu): Return int. Some cleanup.
126 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
127
140330de
GM
1282001-03-21 Gerd Moellmann <gerd@gnu.org>
129
130 * xterm.c (x_update_window_end): Handle overwritten mouse face
131 also for tool bar windows.
132 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
133 DRAW is DRAW_IMAGE_RAISED.
134
1741905c
GM
1352001-03-20 Gerd Moellmann <gerd@gnu.org>
136
fa88947e
GM
137 * print.c (syms_of_print): Doc fixes.
138
1741905c
GM
139 * fns.c (Fmd5): Doc fix.
140
ade0bee1
GM
1412001-03-19 Gerd Moellmann <gerd@gnu.org>
142
357e7376
GM
143 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
144 Clear area of the frame not occupied by the scroll bar.
145
c2c097cc
GM
146 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
147 tip frame's root window buffer to *tip* right after creating
148 the frame.
149
ade0bee1
GM
150 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
151 is an integer don't have to be for space characters.
152
88c6e37e
GM
1532001-03-16 Gerd Moellmann <gerd@gnu.org>
154
155 * indent.c (current_column, current_column_1, Fmove_to_column)
156 (compute_motion): Handle characters from display vectors
157 differently.
158
c62eed76
KH
1592001-03-15 Kenichi Handa <handa@etl.go.jp>
160
161 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
162 drawing glyph string.
163
c899e7e6
GM
1642001-03-15 Gerd Moellmann <gerd@gnu.org>
165
d0bbfc99
GM
166 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
167 (command_loop_1): Undo last change.
168
03d1a189
GM
169 * xterm.c (fast_find_position): Return the correct vpos.
170
c899e7e6
GM
171 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
172 non-null, set a per-buffer value in BUF instead of the current
173 buffer.
174 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
175 Call store_symval_forwarding with BUF null.
176 (set_internal): Call store_symval_forwarding with the BUF
177 parameter passed to set_internal. Formerly, the value was always
178 set in the current buffer; the buffer recorded in specbind for
179 this case wasn't used.
180 (arith_driver): Reindent.
181
182 * buffer.c (swap_out_buffer_local_variables): Call
183 store_symval_forwarding with BUF null.
184
185 * lisp.h (store_symval_forwarding): Change prototype.
186
187 * eval.c (specbind): Call store_symval_forwarding with BUF null.
188
57ac7c81
GM
1892001-03-14 Gerd Moellmann <gerd@gnu.org>
190
697617d9
GM
191 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
192 FOR_DELETION. Avoid resizing the mini-window of the selected
193 frame if FOR_DELETION is set.
194 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
195 (Fmake_frame_invisible): Change calls to do_switch_frame for new
196 signature.
197
198 * window.c (Fset_window_configuration): Change call to
199 do_switch_frame to new format.
200
201 * keyboard.c (quit_throw_to_read_char): Change call to
202 do_switch_frame to new format.
203
204 * lisp.h (do_switch_frame): Change prototype.
205
819dce0f
GM
206 * frame.c (Fframe_parameters): In the `buffer-list' frame
207 parameter, store the buffer list of FRAME, not the list of the
208 selected frame.
209
57ac7c81
GM
210 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
211 box just because the glyph row's full_width_p flag is set.
212
65008712
GM
2132001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
214
215 * xdisp.c (highlight_trailing_whitespace): On character terminals,
216 skip the padding blanks inserted in extend_face_to_end_of_line,
217 before checking for trailing whitespace.
218
159cf431
GM
2192001-03-13 Gerd Moellmann <gerd@gnu.org>
220
19b2bb80
GM
221 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
222 Remove special handling for LessTif/Motif.
223 (toplevel): Don't include Xm/Xm.h.
224
afcdc0a1
GM
225 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>: Remove
226 workaround code for LessTif; it doesn't work anymore.
227
2564ea1b 228 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
57ac7c81 229 Xm/ScrollBarP.h.
afcdc0a1 230
23442ae4
GM
231 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Don't
232 access private scroll bar data; it's no longer necessary with
233 contemporary LessTif.
234
9faaaa52
GM
235 * xfaces.c (xm_set_menu_resources_from_menu_face): Change
236 #if 0 to #ifndef LESSTIF_VERSION.
237
159cf431
GM
238 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
239 removing button grabs.
240
c6f7429a
KH
2412001-03-13 Kenichi Handa <handa@etl.go.jp>
242
cb82d767
KH
243 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
244 and clip-large-size-font as obsolete.
245
c6f7429a
KH
246 * lread.c (read_multibyte): Check the validity of multibyte
247 sequence. If invalid, return the first byte.
248
760cefb5
GM
2492001-03-12 Gerd Moellmann <gerd@gnu.org>
250
251 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
252 before running the command; timer functions or process
253 filters may have set it.
254
5141f9d0
EZ
2552001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
256
257 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
258 Doc fix.
259
b6a15240
GM
2602001-03-12 Gerd Moellmann <gerd@gnu.org>
261
262 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
263 to sprintf.
264
95522746
GM
2652001-03-09 Gerd Moellmann <gerd@gnu.org>
266
db14cfc5
GM
267 * dispextern.h (string_buffer_position): Add prototype.
268
269 * xdisp.c (string_buffer_position, display_prop_string_p)
270 (single_display_prop_string_p): New functions.
271
272 * xterm.c (note_mouse_highlight): If there's no help-echo on
273 a string, look at the buffer text ``under'' it.
274
275 * keyboard.c (make_lispy_event): Add string info to the event,
276 analogous to what's done on mode lines.
277 (read_key_sequence): For a click on a string, consider `local-map'
278 and `keymap' of that string.
279
3cfd8357
GM
280 * keyboard.c (make_lispy_event, make_lispy_movement): Adjust
281 calls to buffer_posn_from_coords to new format.
282
283 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
284
285 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
286 POS; return void.
287
95522746
GM
288 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
289 flags argument to emacs_open; it seems to conflict with O_EXCL.
290
898a399d
KH
2912001-03-09 Kenichi Handa <handa@etl.go.jp>
292
28cd4910
KH
293 * composite.h (struct composition): Change types of members;
294 glyph_len to unsigned, width to unsigned short.
898a399d 295
4cdf6a6c
AI
2962001-03-08 Andrew Innes <andrewi@gnu.org>
297
298 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
299 menu titles.
300
129004d3
GM
3012001-03-08 Gerd Moellmann <gerd@gnu.org>
302
221dd3e7
GM
303 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
304 instead of nil.
305
5de7c6f2
GM
306 * xterm.c (note_mouse_highlight): Handle mouse-face and
307 help-echo in strings.
308 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
309 (fast_find_string_pos): New function.
310
311 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
312 (display_string): Call face_at_string_position with new
313 parameter.
314
315 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
316 Handle `mouse-face'.
317
318 * dispextern.h (face_at_string_position): Change prototype.
319
e1fbabaf
GM
320 * dired.c (directory_files_internal): Handle EAGAIN more
321 efficiently.
322
129004d3
GM
323 * keyboard.c (make_lispy_event): Avoid generating drag events
324 if the mouse hasn't actually moved to another buffer position.
325
80c8ab8c
DL
3262001-03-08 Dave Love <fx@gnu.org>
327
129004d3 328 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
80c8ab8c 329
989521fd
GM
3302001-03-08 Gerd Moellmann <gerd@gnu.org>
331
332 * process.c (Fset_process_window_size): Fix a typo.
333
bb5c338d
KH
3342001-03-08 Kenichi Handa <handa@etl.go.jp>
335
336 * coding.c (detect_coding_sjis): Do more rigid check.
337 (detect_coding_big5): Likewise.
338 (decode_coding_sjis_big5): Likewise.
339 (Fdetect_coding_region): Call detect_coding_system with tailing
340 anchor byte `\0' for more rigid detection.
a1b12fe9
KH
341 (detect_coding_mask): Fix the incorrect handling of arg
342 MULTIBYTEP.
bb5c338d
KH
343 (Fdetect_coding_string): Likewise.
344
8b8f9197
SM
3452001-03-07 Stefan Monnier <monnier@cs.yale.edu>
346
347 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
348 a string before extracting its data.
349
3bdf2660
GM
3502001-03-07 Gerd Moellmann <gerd@gnu.org>
351
352 * window.c (Frecenter): Rewrite code handling negative values
353 of ARG on graphical frames.
354
3552001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
356
357 * window.c (displayed_window_lines): If W->start is outside the
358 accessible portion of the buffer, call start_display with BEGV or
359 ZV instead of W->start.
360
471f86b9
GM
3612001-03-07 Gerd Moellmann <gerd@gnu.org>
362
2ab62c6c
GM
363 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
364
471f86b9
GM
365 * process.c (Fset_process_filter): Don't crash if the input
366 file descriptor of PROCESS is closed.
367 (Fset_process_window_size): Likewise.
368
101922c3
GM
3692001-03-06 Kenichi Handa <handa@etl.go.jp>
370
371 * xterm.c (XTflash): Make the timeout of select shorter, and call
372 select repeatedly until the desired time expires.
373
45d051a7
GM
3742001-03-06 Gerd Moellmann <gerd@gnu.org>
375
376 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
377
378 * xfns.c (Fx_create_frame): Clear Vwindow_list.
379
380 * lisp.h (Vwindow_list): Declare extern.
381
8f372c46
EZ
3822001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
383
384 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
385
f16a7aa5
GM
3862001-03-06 Gerd Moellmann <gerd@gnu.org>
387
157ae273
GM
388 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
389 to detect a case where we have to highlight a different region
390 despite not having left the currently highlighted region.
391 Set mouse_face_overlay in the x_display_info.
45d051a7 392 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
157ae273
GM
393
394 * xterm.h (struct x_display_info): Add mouse_face_overlay.
395
396 * buffer.c (mouse_face_overlay_overlaps): New function.
397
398 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
399 (Qmouse_face): Declare extern.
400
f16a7aa5
GM
401 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
402 if face_change_count is non-zero.
403
827afcac
KH
4042001-03-06 Kenichi Handa <handa@etl.go.jp>
405
406 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
407 that the source is unibyte.
408
14c7242e
DL
4092001-03-05 Dave Love <fx@gnu.org>
410
827afcac 411 * xterm.c (XTmouse_position): Fix typo.
14c7242e 412
c28b847b
GM
4132001-03-05 Gerd Moellmann <gerd@gnu.org>
414
415 * minibuf.c (read_minibuf): Clean up the binding stack if
416 called noninteractively.
417
b86644f2
KH
4182001-03-05 Kenichi Handa <handa@etl.go.jp>
419
420 * coding.c (syms_of_coding): Docstring modified.
421
203682cc 4222001-03-05 Kenichi Handa <handa@etl.go.jp>
b86644f2
KH
423
424 * charset.c (char_to_string): If a single byte char has modifier
425 bits that can't be reflected to the character code, ignore them
45d051a7 426 instead of signaling an error.
b86644f2 427
e30bd7b7
EZ
4282001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
429
430 * s/msdos.h: Update copyright notice.
431
432 * dosfns.h: Update copyright notice.
433
434 * dosfns.c: Update copyright notice.
435
436 * msdos.c: Update copyright notice.
437
b52b65bd
GM
4382001-03-02 Gerd Moellmann <gerd@gnu.org>
439
440 * xterm.c (glyph_rect): New function.
441 (XTmouse_position): Use it to raise the threshold for mouse
442 movement event generation.
443
53c4b1e6
EZ
4442001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
445
446 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
447 specifies (reverse . t), reverse the initial screen colors.
448 (IT_set_frame_parameters): If the property is foreground-color,
449 but we are reversing the colors, set bg_set, not fg_set. Likewise
450 for setting background-color and reversing: set fg_set. Set
451 unspecified-fg and unspecified-bg correctly when (reverse . t) is
452 in effect.
453
454 * xfaces.c (Finternal_set_lisp_face_attribute)
455 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
456 parameters alist.
457
f964b4d7
GM
4582001-03-02 Gerd Moellmann <gerd@gnu.org>
459
ef53d75e
GM
460 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
461 to a single slash in the middle of file names.
462
cda0f4da
GM
463 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
464 Accept only alphanumeric time zone names.
465
f964b4d7
GM
466 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
467 or width area.
468 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
469 a widget to zero height.
470
c3c45f65
GM
4712001-03-01 Gerd Moellmann <gerd@gnu.org>
472
473 * window.c (Fwindow_end): Call move_it_past_eol only if
474 ending up on a partially visible line.
475
028d739a
DL
4762001-03-01 Dave Love <fx@gnu.org>
477
478 * ccl.c (Fccl_execute): Doc fix.
479
57c5889c
GM
4802001-03-01 Gerd Moellmann <gerd@gnu.org>
481
35f59f6b
GM
482 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
483 of the tool bar before calling x_figure_window_size.
484
f84ff02c
GM
485 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
486 NULL after destroying it, otherwise XTread_socket can access a
487 destroyed widget when input is unblocked.
488
8b8f9197 489 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
420f628c 490
57c5889c
GM
491 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
492 same name as before, although there was a change in fontsets.
493
224227d1
KR
4942001-02-28 Ken Raeburn <raeburn@gnu.org>
495
4560730a
KR
496 * lisp.h (Fframe_parameter): Declare.
497
224227d1 498 * window.c (set_window_buffer): Field vscroll is an int, not a
57c5889c 499 Lisp_Object.
224227d1 500
ece93c02
GM
5012001-02-28 Gerd Moellmann <gerd@gnu.org>
502
11ef99b9
GM
503 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
504 NULL instead.
505
506 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
507 NULL instead.
508
ece93c02
GM
509 * alloc.c (toplevel): Include process.h.
510 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
511 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
512 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
513 (allocate_vector, allocate_hash_table, allocate_window)
514 (allocate_frame, allocate_process, allocate_other_vector): New
515 functions.
516 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
517 (mark_maybe_pointer): New function.
518 (mark_memory): Also mark Lisp data to which only pointers
519 remain and not Lisp_Objects.
520 (min_heap_address, max_heap_address): New variables.
521 (mem_find): Return MEM_NIL if START is below min_heap_address or
522 above max_heap_address.
523 (mem_insert): Compute min_heap_address and max_heap_address.
524
525 * process.c (make_process): Use allocate_process.
526
527 * frame.c (make_frame): Use allocate_frame.
528
529 * window.c (make_window, make_dummy_parent): Use allocate_window.
530 (Fcurrent_window_configuration): Use allocate_other_vector.
531
532 * lisp.h (allocate_vectorlike): Remove prototype.
533 (allocate_vector, allocate_other_vector, allocate_frame)
534 (allocate_window, allocate_process, allocate_hash_table):
535 Add prototypes.
536
537 * fns.c (Fdelete, larger_vector): Use allocate_vector.
538 (make_hash_table, copy_hash_table): Use allocate_hash_table.
539
063af457
KH
5402001-02-27 Kenichi Handa <handa@etl.go.jp>
541
542 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
543 treat the produced bytes as a valid multibyte sequence.
544
545 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
546 (ccl_driver) <CCL_WriteMultibyteChar2>: Use
547 CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
548 <ccl_finish>: Set ccl->eight_bit_control properly.
549
550 * ccl.h (struct ccl_program): New member eight_bit_control.
551
f58c6494
SM
5522001-02-26 Stefan Monnier <monnier@cs.yale.edu>
553
554 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
555 accessible_keymaps_char_table.
556 (accessible_keymaps_char_table): Obey `is_metized'.
557 (where_is_internal, Fwhere_is_internal): Don't confuse int and
558 Lisp_Object.
559
c596c392
GM
5602001-02-26 Gerd Moellmann <gerd@gnu.org>
561
562 * dispnew.c: Check HAVE_TERM_H before including term.h.
563
425de386
AI
5642001-02-24 Andrew Innes <andrewi@gnu.org>
565
566 * makefile.w32-in: Update copyright notice.
567
2ba11bbd
SM
5682001-02-24 Stefan Monnier <monnier@cs.yale.edu>
569
570 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
571
66c56ed1
KH
5722001-02-24 Kenichi Handa <handa@etl.go.jp>
573
4c1593ce
KH
574 * Makefile.in (lisp): Add international/utf-8.elc.
575
66c56ed1
KH
576 * fontset.c (Fnew_fontset): Fix handling of the case that an
577 element of FONTLIST is a cons of family and registry.
578
796ead7e
JR
5792001-02-23 Jason Rumney <jasonr@gnu.org>
580
581 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
582 to height unconditionally.
583
584 * w32term.c (x_set_glyph_string_background_width): Extend the
585 background face to the end of the drawing area in the text area,
586 only.
587 (x_insert_glyphs): Call window_box_left to obtain the left
588 x-coordinate of the area to shift.
589
590 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
591 safe_run_hooks.
592
f6839838
AI
5932001-02-22 Andrew Innes <andrewi@gnu.org>
594
595 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header
596 files.
597 ($(BLD)\dispnew.obj):
598 ($(BLD)\editfns.obj):
599 ($(BLD)\fileio.obj):
600 ($(BLD)\filelock.obj):
601 ($(BLD)\keyboard.obj):
602 ($(BLD)\w32proc.obj):
603 ($(BLD)\process.obj):
604 ($(BLD)\sysdep.obj): Ditto.
605
606 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
607 header files.
608 ($(BLD)/dispnew.$(O)):
609 ($(BLD)/editfns.$(O)):
610 ($(BLD)/fileio.$(O)):
611 ($(BLD)/filelock.$(O)):
612 ($(BLD)/keyboard.$(O)):
613 ($(BLD)/w32proc.$(O)):
614 ($(BLD)/process.$(O)):
615 ($(BLD)/sysdep.$(O)): Ditto.
616
c224f70b
GM
6172001-02-22 Gerd Moellmann <gerd@gnu.org>
618
51695746
GM
619 * xdisp.c (forward_to_next_line_start): When taking the shortcut
620 at the start of the function, check that the \n in it->c is
621 from the iterator's current position.
622
a61b7058
GM
623 * xdisp.c (handle_single_display_prop): Add parameter
624 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
625 properties which replace the display of text with something else.
626 (handle_display_prop): Call handle_single_display_prop with
627 additional argument saying if we already replaced text display
628 with something else. Use AREF.
629 (with_echo_area_buffer_unwind_data, display_menu_bar)
630 (decode_mode_spec_coding): Use AREF and ASIZE.
631
3473f362
GM
632 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
633 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
634 * vmstime.h: Files removed.
635
2bb58df3
GM
636 * unexencap.c, unexfx2800.c: Files removed.
637
c224f70b
GM
638 * dispnew.c (direct_output_for_insert): Give up if we are showing
639 a message or just cleared the message because we might need to
640 resize the echo area window or display an empty echo area.
641
ffc9ff0c
GM
6422001-02-21 Gerd Moellmann <gerd@gnu.org>
643
0528abe1
GM
644 * xdisp.c (redisplay_internal): Do the
645 mark_window_display_accurate after all windows have been
646 redisplayed because this call resets flags in buffers which are
647 needed for proper redisplay.
648
ffc9ff0c
GM
649 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c: Use
650 display_hourglass_p, start_hourglass, cancel_hourglass instead of
651 the old names.
652
653 * w32term.h (struct x_output): Rename busy_cursor to
654 hourglass_cursor, busy_window to hourglass_window, busy_p to
655 hourglass_p.
656
657 * msdos.h (struct x_output): Rename busy_window to
658 hourglass_window, busy_p to hourglass_p.
659
660 * xterm.h (struct x_output): Rename busy_cursor to
661 hourglass_cursor, busy_window to hourglass_window, busy_p to
662 hourglass_p.
663
664 * xfns.c: Rename everything containing *busy_cursor* and similar
665 to *hourglass*.
666 (syms_of_w32fns): Rename x-busy-pointer-shape to
667 x-hourglass-pointer-shape, display-busy-cursor to
668 display-hourglass, busy-cursor-delay to hourglass-delay.
669
670 * w32fns.c: Rename everything containing *busy_cursor* and similar
671 to *hourglass*.
672 (syms_of_w32fns): Rename x-busy-pointer-shape to
673 x-hourglass-pointer-shape, display-busy-cursor to
674 display-hourglass, busy-cursor-delay to hourglass-delay.
675
676 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
677 of its busy_p flag.
678
679 * dispextern.h (start_hourglass, cancel_hourglass)
680 (display_hourglass_p): Renamed from *busy_cursor*.
681
ab2c5f0a
GM
6822001-02-20 Gerd Moellmann <gerd@gnu.org>
683
d17e49a8
GM
684 * keyboard.c (read_char): When an event from unread-command-events
685 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
686
fa97adf6
GM
687 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
688 equal to the current buffer.
689
ab2c5f0a
GM
690 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
691 nil, otherwise we're left with truncate_lines t when a message
692 is printed with message-truncate-lines bound to t.
693
aeac019e
GM
6942001-02-19 Gerd Moellmann <gerd@gnu.org>
695
c8bc6f65
GM
696 * window.c (Fmove_to_window_line): Undo last change.
697 (displayed_window_lines): Call line_bottom_y to determine
698 the line's bottom position.
699
700 * dispextern.h (line_bottom_y): Add prototype.
701
702 * xdisp.c (line_bottom_y): New function extracted from
703 pos_visible_p.
704 (pos_visible_p): Use it.
705
980a2d69
GM
706 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
707 set redisplaying_p to 0 here instead of in Frecursive_edit.
708 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
709 set redisplaying_p.
710
184d2372
GM
711 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
712 New variables.
713 (syms_of_xdisp): Initialize new variables.
714 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
715 Specbind `inhibit-menubar-update' when updating the menu bar.
716
65048e97
GM
717 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
718 safe_run_hooks.
719
720 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
721 safe_run_hooks.
722
a57c4026
GM
723 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
724 is null.
725
aeac019e
GM
726 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
727 to the start of the file.
728
76846b31
GM
7292001-02-16 Gerd Moellmann <gerd@gnu.org>
730
f3f053f3 731 * window.c (set_window_buffer): Fix last change.
25237df5 732
f3f053f3
GM
733 * window.c (set_window_buffer): Set window's vscroll to 0.
734
dad75588
GM
735 * window.c (coordinates_in_window): Increase width of area
736 where the vertical line can be dragged.
737
c220b753
GM
738 * xterm.c (x_set_glyph_string_background_width): Extend the
739 background face to the end of the drawing area in the text
740 area, only.
741
c56b1c1b
GM
742 * xdisp.c (handle_single_display_prop): Set iterator's position
743 to where the `display' property starts, like for images.
744 (dump_glyph): New function.
745 (dump_glyph_row): Use it. Dump info about marginal areas.
746
747 * dispnew.c (direct_output_for_insert): Recognize more cases where
748 glyphs can be written instead of being inserted.
749
750 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
751 the left x-coordinate of the area to shift.
752
76846b31
GM
753 * dired.c (directory_files_internal): Set result list to nil
754 before retrying.
755
0fc71a77
KH
7562001-02-15 Kenichi Handa <handa@etl.go.jp>
757
758 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
759 invalid multibyte sequence, treat *SRC as a character of
760 eight-bit-graphic.
761
25078b54
EZ
7622001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
763
764 * textprop.c (Fset_text_properties): Doc fix.
765
8399f8a0
GM
7662001-02-15 Gerd Moellmann <gerd@gnu.org>
767
768 * dispnew.c (update_text_area): Undo change of 2001-01-12.
769
9a2a6f73
DL
7702001-02-14 Dave Love <fx@gnu.org>
771
772 * coding.c: Doc and message fixes.
773
bf853fee
AI
7742001-02-14 Andrew Innes <andrewi@gnu.org>
775
776 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
777 Emacs frame above the screen size.
778
78c663d8
GM
7792001-02-14 Gerd Moellmann <gerd@gnu.org>
780
781 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
782
7cc9f69f
GM
7832001-02-13 Gerd Moellmann <gerd@gnu.org>
784
0a411995
GM
785 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
786 case that TO ends up beyond ZV after running before-change-functions.
787
5ddc1b75
GM
788 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
789 the selected window if it is showing the buffer in question.
790
7cc9f69f
GM
791 * dired.c (directory_files_internal): Initialize errno.
792 (toplevel): Include errno.h.
793
2e6621ca
GM
7942001-02-13 Kenichi Handa <handa@etl.go.jp>
795
796 * xfaces.c (best_matching_font): New parameter width_ratio.
797 Multiply avgwidth by width_ratio.
798 (choose_face_font): Call best_matching_font with width_ratio
799 calculated from the column width of C.
800
60222d69
AI
8012001-02-12 Andrew Innes <andrewi@gnu.org>
802
803 The following changes are to draw box lines inside characters area
804 if line-width is negative.
805
806 * w32term.c (x_produce_image_glyph): Pay attention to the case that
807 face->box_line_width is negative.
808 (x_produce_stretch_glyph): Likewise.
809 (x_produce_glyphs): Likewise.
810 (x_estimate_mode_line_height): Likewise.
811 (x_draw_glyph_string_background): Likewise.
812 (x_draw_glyph_string_foreground): Likewise.
813 (x_draw_composite_glyph_string_foreground): Likewise.
814 (x_draw_glyph_string_box): Likewise.
815 (x_draw_image_foreground): Likewise.
816 (x_draw_image_relief): Likewise.
817 (x_draw_image_foreground_1): Likewise.
818 (x_draw_image_glyph_string): Likewise.
819
9804b846
KH
8202001-02-09 Kenichi Handa <handa@etl.go.jp>
821
822 The following changes are to draw box lines inside characters area
823 if line-width is negative.
824
825 * xterm.c (x_produce_image_glyph): Pay attention to the case that
826 face->box_line_width is negative.
827 (x_produce_stretch_glyph): Likewise.
828 (x_produce_glyphs): Likewise.
829 (x_estimate_mode_line_height): Likewise.
830 (x_draw_glyph_string_background): Likewise.
831 (x_draw_glyph_string_foreground): Likewise.
832 (x_draw_composite_glyph_string_foreground): Likewise.
833 (x_draw_glyph_string_box): Likewise.
834 (x_draw_image_foreground): Likewise.
835 (x_draw_image_relief): Likewise.
836 (x_draw_image_foreground_1): Likewise.
837 (x_draw_image_glyph_string): Likewise.
838
839 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
840 and :line-width can be negative.
841 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be
842 negative.
843
49be9f70
JR
8442001-02-09 Jason Rumney <jasonr@gnu.org>
845
846 * w32term.c (w32_encode_char): Treat eight bit graphic and control
847 characters the same as ASCII and latin-1.
848 (x_display_and_set_cursor): Check for the focus frame's selected
849 window instead of selected_window.
850 (x_after_update_window_line): Don't clear if frame's internal
851 border width is zero.
852 (x_new_font): Don't change a tooltip's size.
853 (w32_initialize): Set char_ins_del_ok to 1.
854
855 * w32fns.c (Fx_show_tip): Fix calls to make_number.
856 (x_set_font): If font hasn't changed, avoid recomputing
857 faces and other things.
858 (x_set_tool_bar_lines): Do nothing if frame is
859 minibuffer-only,
860 (Fx_create_frame): Add the tool bar height to the frame
861 height.
862 (x_create_tip_frame): Prevent changing the tooltip's
863 background color by specifying a color for the default font
864 in .Xdefaults.
865 (Qcancel_timer): New variable.
866 (syms_of_w32fns): Initialize and staticpro it.
867 (Fx_hide_tip, Fx_show_tip): Use it.
868 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
869 the timer.
870 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
871
872 * w32.c (init_environment): Duplicate local string before putenv.
873
555e35d2
SZ
8742001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
875
876 * charset.c (Fstring): A typo.
877
19c92c94
KH
8782001-02-09 Kenichi Handa <handa@etl.go.jp>
879
e47a1c33
KH
880 * charset.c (Fstring): If all arguments are less than 256, return
881 a unibyte string.
882
883 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
884 return a unibyte string.
885
19c92c94
KH
886 * coding.c (code_convert_region): After detecting a coding, if
887 nothing found, set coding->composing to COMPOSITION_NO.
888 (decode_coding_string): Likewise.
889
d8e675f5
SM
8902001-02-08 Stefan Monnier <monnier@cs.yale.edu>
891
892 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
893 to avoid overflow.
894
bd503487
KH
8952001-02-07 Kenichi Handa <handa@etl.go.jp>
896
897 * charset.c (parse_str_to_multibyte): New function.
898
899 * charset.h (parse_str_to_multibyte): Extern it.
900
901 * print.c (print_string): If we are going to print a unibyte
902 string into a multibyte buffer, convert the string to multibyte by
903 str_to_multibyte.
904
a8370d72
AI
9052001-02-06 Andrew Innes <andrewi@gnu.org>
906
907 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
908 been created. It seems we can get sent window messages such as
909 WM_ERASEBKGND before we properly update a frame.
910
c363a1d6
GM
9112001-02-06 Gerd Moellmann <gerd@gnu.org>
912
913 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
914 Avoid some unnecessary cursor positioning.
915
a08332c0
GM
9162001-02-05 Gerd Moellmann <gerd@gnu.org>
917
918 * xfaces.c (split_font_name): Compute numeric value of
919 XLFD_AVGWIDTH.
920 (LFACE_AVGWIDTH): New macro.
921 (LFACEP): Use AREF.
922 (check_lface_attrs): Check LFACE_AVGWIDTH.
923 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
924 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
925 (merge_face_vectors): Check LFACE_AVGWIDTH.
926 (Finternal_make_lisp_face): Use AREF.
927 (xm_set_menu_resources_from_menu_face)
928 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
929 (Finternal_lisp_face_empty_p): Use AREF.
930 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
931 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
932 Compare average widths..
933 (best_matching_font): Arrange for comparing average widths.
934
935 * dispextern.h (enum lface_attribute_index): Add
936 LFACE_AVGWIDTH_INDEX (invisible from Lisp).
937
5cb3c8d4
DL
9382001-02-05 Dave Love <fx@gnu.org>
939
940 * puresize.h: Revert last change following loadup.el change.
941
193fba87
AI
9422001-02-05 Andrew Innes <andrewi@gnu.org>
943
944 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
945 invocation of temacs, to work with Windows 2000.
946 (bootstrap-emacs): Ditto.
947
e16f52ce
GM
9482001-02-05 Gerd Moellmann <gerd@gnu.org>
949
7a58ab59
GM
950 * xterm.c (x_display_and_set_cursor): Check for the focus
951 frame's selected window instead of selected_window.
952
e89aaabd
GM
953 * xdisp.c (try_scrolling): If point is in the line below the
954 window, make sure to move the iterator at least a canonical
955 char height down.
956
e16f52ce
GM
957 * window.c (Fmove_to_window_line): Don't add 1 if window is
958 vscrolled.
959
789ce875
KH
9602001-02-05 Kenichi Handa <handa@etl.go.jp>
961
962 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not. If
963 invalid, execute CCL_INVALID_CMD.
964 (ccl_driver): If the CCL program is terminated because of
965 CCL_STAT_INVALID_CMD, copy the remaining source data to the
966 destination instead of throwing them away.
967
20b28f82
GM
9682001-02-02 Gerd Moellmann <gerd@gnu.org>
969
79fb38c0
GM
970 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
971 faces and other things.
972
20b28f82
GM
973 * xdisp.c (get_next_display_element): Fix case of empty
974 display table entry.
975
5a72551e
EZ
9762001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
977
eb24d0bf
EZ
978 * editfns.c (Fconstrain_to_field): Doc fix.
979
6a3f48c7
EZ
980 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
981 into `thoroughly', to make it consistent with the doc string.
982
5a72551e
EZ
983 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
984
01acdb05
GM
9852001-02-01 Gerd Moellmann <gerd@gnu.org>
986
0353b28f
GM
987 * search.c (search_buffer): Call set_search_regs with a byte
988 position, not a character position.
989
01acdb05
GM
990 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
991 minibuffer-only,
992
e86b5133
EZ
9932001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
994
995 * frame.c (Fmodify_frame_parameters): Doc fix.
996
7442878f
GM
9972001-01-31 Gerd Moellmann <gerd@gnu.org>
998
01acdb05
GM
999 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
1000 identifier which is not reserved by Standard C.
1001
7442878f
GM
1002 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
1003
1004 * window.c (enum window_part): New enumeration.
1005 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
1006 Qright_bitmap_area.
1007 (coordinates_in_window): Return an enumerator from enum
1008 window_part. Fix handling of right scroll bar.
1009 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
1010 `right-fringe' instead of `left-bitmap-area' and
1011 `right-bitmap-area'. Use enumerators from enum window_part
1012 instead of hard-coded integers.
1013 (check_window_containing, window_from_coordinates): Use
1014 enumerators from enum window_part instead of hard-coded integers.
1015 (syms_of_window): Replace Qleft_bitmap_area and
1016 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
1017
7c132cba
EZ
10182001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
1019
1020 * editfns.c (Fformat_time_string): Doc fix.
1021
c359dd9e
SM
10222001-01-31 Stefan Monnier <monnier@cs.yale.edu>
1023
1024 * keymap.c (Fwhere_is_internal): Use the first valid binding
1025 if no ascii binding is found (when firstonly is t).
1026
ce070307
GM
10272001-01-31 Gerd Moellmann <gerd@gnu.org>
1028
b4f30ec5
GM
1029 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
1030 instead of Finteractive_p.
1031
1032 * lisp.h (interactive_p): Add prototype.
1033
1034 * eval.c (interactive_p): New function.
1035 (Finteractive_p): Use it.
1036
ce070307
GM
1037 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
1038
f57b6e64
DL
10392001-01-31 Dave Love <fx@gnu.org>
1040
d61c7afe
DL
1041 * .gdbinit (hook-run): Define to run xreload.
1042
f57b6e64
DL
1043 * textprop.c (Fset_text_properties): Fix newline in doc string.
1044
eef93f99
GM
10452001-01-30 Gerd Moellmann <gerd@gnu.org>
1046
1047 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp): Use
1048 DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
1049
1050 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
1051 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
1052 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
1053
1054 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
1055 height.
1056
d9c1f6f9
DL
10572001-01-30 Dave Love <fx@gnu.org>
1058
1059 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
1060 AFTER_POTENTIAL_GC.
1061
e8f044a0
GM
10622001-01-29 Gerd Moellmann <gerd@gnu.org>
1063
1064 * bytecode.c (Fbyte_code) <Bcurrent_column>: Add
1065 BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
1066
8e1db7b3
EZ
10672001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
1068
1069 * textprop.c (Fset_text_properties): Doc fix.
1070
4eefd9d2
GM
10712001-01-29 Gerd Moellmann <gerd@gnu.org>
1072
1073 * xdisp.c (forward_to_next_line_start): Remove xassert.
1074
fccb8288
EZ
10752001-01-29 Jason Rumney <jasonr@gnu.org>
1076
4eefd9d2 1077 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
fccb8288
EZ
1078 returning without releasing it.
1079
76581eab
KH
10802001-01-29 Kenichi Handa <handa@etl.go.jp>
1081
1082 * w32fns.c (w32_font_match): Allocate three more bytes to regex
1083 for '^', '$', and '\0'.
1084
83a96b4d
AC
10852001-01-28 Andrew Choi <akochoi@i-cable.com>
1086
5604ec34
AC
1087 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
1088 regex for '^', '$', and '\0'.
1089
83a96b4d
AC
1090 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
1091 only if current_sblock has been initialized.
1092
1093 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
1094 terminal frame even if it is the only visible frame.
1095
c09a6440
KH
10962001-01-28 Kenichi Handa <handa@etl.go.jp>
1097
1098 * fontset.c (font_family_registry): Even if FONTNAME conform to
1099 XLFD, if it specifies other fields than family and registry,
1100 return FONTANME. New argument FORCE if nonzero cancel that
1101 feature.
1102 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
1103 a signle byte character. Don't set FAMILY part to nil here. It
1104 is handled by the caller choose_face_font.
1105 (Fnew_fontset): Call font_family_registry with FORCE 0.
1106 (Fset_fontset_font): Likewise.
1107
4dcd74e6
GM
11082001-01-27 Gerd Moellmann <gerd@gnu.org>
1109
1110 * xdisp.c (display_line): Don't treat a newline as fitting
1111 on the line.
1112
d2906bf8
GM
11132001-01-26 Gerd Moellmann <gerd@gnu.org>
1114
0130fe1a
GM
1115 * window.c (size_window): Set the window's orig_top to nil when
1116 changing heights, so that a future shrink_mini_window won't
1117 restore a bogus height.
1118
550f0e6a
GM
1119 * frame.c (do_switch_frame): If selected frame has a mini-window,
1120 resize that to exact size.
1121
b7b20fbd
GM
1122 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
1123
a47b7816
GM
1124 * xdisp.c (display_line): Simplify check for glyphs fitting
1125 entirely in the line.
1126
d2906bf8
GM
1127 * xfns.c (xic_style): New variable.
1128 (create_frame_xic): Move static variable to global scope for
550f0e6a 1129 the case that `static' gets defined away.
d2906bf8 1130
73df2b1e
KH
11312001-01-26 Kenichi Handa <handa@etl.go.jp>
1132
1133 * coding.c (decode_coding): Set a flag for inhibiting
1134 inconsistent eol.
1135 (code_convert_region): Always set saved_coding_symbol.
1136 (decode_coding_string): Likewise. Update coding->symbol when we
1137 encounter a inconsistent eol by the same way as
1138 code_convert_region.
1139
6613cfc4
GM
11402001-01-25 Gerd Moellmann <gerd@gnu.org>
1141
c5e6e06b
GM
1142 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
1143 XClearArea.
1144
1145 * xterm.c (x_after_update_window_line): Don't clear if frame's
1146 internal border width is zero.
1147 (x_clear_area): New function.
1148 (x_after_update_window_line, x_clear_end_of_line)
1149 (x_scroll_bar_create, x_scroll_bar_set_handle)
1150 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
1151 instead of XClearArea.
1152
1153 * xterm.h (x_clear_area): Add prototype.
1154
6613cfc4
GM
1155 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
1156 which doesn't seem necessary anymore with Lesstif 0.92.
1157
650cc6cc
DL
11582001-01-25 Dave Love <fx@gnu.org>
1159
34ac3367
DL
1160 * puresize.h (BASE_PURESIZE): Up to 720000.
1161
650cc6cc
DL
1162 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
1163
5e37dc22
GM
11642001-01-25 Gerd Moellmann <gerd@gnu.org>
1165
e1e441f9
GM
1166 * xdisp.c (echo_area_display): Don't call redisplay_internal
1167 when Emacs is shutting down. We can't run hooks etc. that
1168 would be necessary to do a redisplay.
1169
5e37dc22
GM
1170 * lread.c (read_integer): Use type EMACS_INT instead of int.
1171
0fb94c7f
EZ
11722001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
1173
1174 * ccl.c (ccl_driver): Fix last change.
1175
e3778624
KH
11762001-01-25 Kenichi Handa <handa@etl.go.jp>
1177
1178 * ccl.h (sturct ccl_program): New member suppress_error.
1179
bb264518 1180 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
e3778624
KH
1181 insert error message to the output.
1182 (setup_ccl_program): Initialize ccl->suppress_error to 0.
1183
1184 * coding.h (struct coding_system): New member suppress_error.
1185
1186 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
1187 (Fset_terminal_coding_system_internal): Set the member
1188 suppress_error to 1.
1189 (Fset_safe_terminal_coding_system_internal): Likewise.
1190
245ed2b1
SM
11912001-01-24 Stefan Monnier <monnier@cs.yale.edu>
1192
1193 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
1194 as if it was a `charset'.
1195
f9aaedb6
GM
11962001-01-24 Gerd Moellmann <gerd@gnu.org>
1197
1198 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
1199 value in where_is_cache; the next lookup in the cache returns
1200 something bogus if we do.
1201
c3902c3e
EZ
12022001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
1203
1204 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
1205 if HAVE_WINDOW_SYSTEM isn't defined.
1206
3497f73e
GM
12072001-01-24 Gerd Moellmann <gerd@gnu.org>
1208
e7e41584
GM
1209 * fns.c (sweep_weak_table): Fix code taking items out of
1210 the hash collision chain. Some cleanup.
1211
3497f73e
GM
1212 * xterm.c (x_new_font): Don't change a tooltip's size.
1213
1214 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
1215 background color by specifying a color for the default font
1216 in .Xdefaults.
1217
3d48e687
KH
12182001-01-24 Kenichi Handa <handa@etl.go.jp>
1219
96531b20
KH
1220 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
1221 a workaround for SunOS 4's cc.
1222 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
1223 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
1224 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
1225 statement.
3d48e687 1226
a30629d2
GM
12272001-01-23 Gerd Moellmann <gerd@gnu.org>
1228
1229 * xterm.c (x_set_window_size_1): New function extracted from
1230 x_set_window_size.
1231 (x_set_window_size): Use it.
1232 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
1233 doesn't have a widget, like tooltips.
1234
5a43decf
EZ
12352001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
1236
1237 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc
1238 fix.
1239
b0e98867
KH
12402001-01-23 Kenichi Handa <handa@etl.go.jp>
1241
1242 * fns.c (Fset_char_table_default): Fix to make sub char-table
1243 correctly.
1244
50606b4c
GM
12452001-01-22 Gerd Moellmann <gerd@gnu.org>
1246
cb2ddc53 1247 * xdisp.c (build_desired_tool_bar_string): Make sure we have
a30629d2 1248 a desired tool bar string, even if there are no tool bar
cb2ddc53
GM
1249 items.
1250
57c28064
GM
1251 * xdisp.c (Ftool_bar_lines_needed): New function.
1252 (syms_of_xdisp): Defsubr it.
1253
50606b4c
GM
1254 * editfns.c (Fformat): Don't extend text properties from arguments
1255 to padding chars in the result.
1256
2f169c38
EZ
12572001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
1258
1259 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
1260
0f32f023
AI
12612001-01-20 Andrew Innes <andrewi@gnu.org>
1262
1263 * w32term.c (w32_ring_bell): Only support visible bell on w32
1264 frames.
1265 (w32_initialize): Don't set term hooks that aren't actually needed
1266 in windowed mode.
1267
1268 * xfaces.c (realize_default_face):
1269 (realize_face):
1270 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
1271
1272 * xdisp.c (handle_single_display_prop): Remove references to
1273 FRAME_W32_CONSOLE_P.
1274
1275 * dispnew.c (Fredraw_frame): Remove reference to
1276 FRAME_W32_CONSOLE_P.
1277
1278 * frame.h (output_method): Remove output_w32_console method.
1279 (FRAME_W32_CONSOLE_P): Remove macro.
1280
1281 * frame.c (Qw32_console): Remove variable.
1282 (Fframep): Remove references to it.
1283 (syms_of_frame): Ditto.
1284 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
1285
1286 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
1287 redefinition.
1288
7173eada
KH
12892001-01-20 Kenichi Handa <handa@etl.go.jp>
1290
1291 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
1292
755b45ce
AI
12932001-01-19 Andrew Innes <andrewi@gnu.org>
1294
1295 * w32.c (init_environment): Add a version-independent site-lisp
1296 directory to EMACSLOADPATH, after the version dependent one.
1297
0a949811
GM
12982001-01-19 Gerd Moellmann <gerd@gnu.org>
1299
8501998a
GM
1300 * editfns.c (Fbuffer_substring): Doc fix.
1301
0a949811
GM
1302 * xdisp.c (message_dolog, message2, message2_nolog): Rename
1303 parameter LEN to NBYTES.
1304
e6ebcbbe
KH
13052001-01-19 Kenichi Handa <handa@etl.go.jp>
1306
200ecca2
KH
1307 * charset.c (strwidth): Use c_string_width.
1308 (c_string_width): New function.
1309 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
1310 Caller changed.
1311
1312 * charset.h (c_string_width, lisp_string_width): Extern them.
1313
1314 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
1315
e6ebcbbe
KH
1316 * indent.c (check_composition): Check validity of composition.
1317
200ecca2
KH
1318 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
1319 characters by calling c_string_width.
1320 (x_consider_frame_title): Get byte length of frame tile string
1321 correctly.
1322 (display_mode_element): Pay attention to width of non-ASCII
1323 characters by calling strwidth.
1324
8692ca92
GM
13252001-01-18 Gerd Moellmann <gerd@gnu.org>
1326
8962e303
GM
1327 * xfns.c (Qcancel_timer): New variable.
1328 (syms_of_xfns): Initialize and staticpro it.
1329 (Fx_hide_tip, Fx_show_tip): Use it.
1330 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
1331 the timer.
1332 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
1333
91523be9
GM
1334 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
1335
1336 * window.h (WINDOW_LIVE_P): New macro.
1337
b0b7ed0e
GM
1338 * window.c (window_size_fixed): New variable.
1339 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
1340 the doc string.
1341
06bccf8e
GM
1342 * eval.c (specbind): If binding a per-buffer variable which
1343 doesn't have a buffer-local value in the current buffer, change
1344 the global value by changing the value of the symbol bound in all
1345 buffers not having their own value, to make it consistent with
1346 what happens with other buffer-local variables.
1347
8692ca92
GM
1348 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
1349
1350 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
1351 when searching for a newline.
1352
bb3a3b50
KH
13532001-01-18 Kenichi Handa <handa@etl.go.jp>
1354
1355 * xdisp.c (display_string): Fix previous change.
1356
c2cc16fa
JR
13572001-01-18 Jason Rumney <jasonr@gnu.org>
1358
1359 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
1360 GLYPH_DEBUG is defined.
1361 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
1362 true for images with `:ascent 100'.
1363 (x_set_mouse_face_gc): If the last used mouse face has gone in the
1364 meantime, use face MOUSE_FACE_ID.
1365 If first glyph isn't a character glyph, use the ASCII NUL
1366 character to determine the face.
1367 (expose_area): Do not treat left margin specially.
1368 (note_mode_line_highlight): If no local_map, check global keymap.
1369 (note_mouse_highlight): Initialize overlay.
1370 (clear_mouse_face): Don't return if tip_frame is
1371 non-nil.
1372 (show_scroll_bars): Remove unused function.
1373 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
1374 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
1375 Clip to row.
1376 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be
1377 nil.
1378 (x_free_frame_resources): Unload relief colors.
1379
9c11f79e
GM
13802001-01-17 Gerd Moellmann <gerd@gnu.org>
1381
3aec8722
GM
1382 * xdisp.c (forward_to_next_line_start): Avoid calling
1383 get_next_display_element when the newline is already found. This
1384 may change the iterator's position, when its current position is
1385 equal to the iterator's stop_charpos.
1386
f3ffc2c3
GM
1387 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
1388 zero, use this method only at the end of a line.
1389
a86110a8
GM
1390 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
1391 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
1392 if SCALABLE_FONTS_P is set.
1393
d26d6fd9
GM
1394 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
1395 so that scalable fonts are included.
1396
9c11f79e
GM
1397 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
1398 In the cache, use a key containing the information if scalable
1399 fonts are included.
1400 (x_load_font): Adapt to change of keys in the font cache.
1401
14022001-01-17 Kim F. Storm <storm@filanet.dk>
1403
d26d6fd9
GM
1404 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
1405 XListFonts to take advantage of font caching.
1406
9c11f79e
GM
1407 * xterm.c (x_list_fonts): Ensure caching font information when
1408 called for a null frame, which is the case frequently when Emacs
1409 starts.
1410
51446987
GM
14112001-01-17 Gerd Moellmann <gerd@gnu.org>
1412
f864120f
GM
1413 * xfns.c (QCconversion): Replaces QCalgorithm.
1414
1415 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
1416
1417 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
1418 of :algorithm.
1419
e37d1417
GM
1420 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
1421 not everything could be displayed.
1422
51446987
GM
1423 * line.h, x-list-font.c: Files removed because unused.
1424
9ad4f3e5
AI
14252001-01-17 Andrew Innes <andrewi@gnu.org>
1426
1427 * dired.c (directory_files_internal): Convert result from readdir
1428 to a unibyte string initially, to avoid possible misinterpretation
1429 of some bytes as the internal form of Emacs characters.
1430
2eda09b5
KH
14312001-01-17 Kenichi Handa <handa@etl.go.jp>
1432
1433 * fns.c (concat): Be sure to avoid putting the same `composition'
1434 property on the adjacent regions.
1435
826f3788
GM
14362001-01-16 Gerd Moellmann <gerd@gnu.org>
1437
f251459d
GM
1438 * window.c (Fset_window_hscroll): Don't set window's min_hscroll
1439 here.
1440 (Fscroll_right, Fscroll_left): Set it here instead, if called
1441 interactively.
1442
d57b83b3
GM
1443 * buffer.c (Fset_buffer_modified_p): Set buffer's
1444 prevent_redisplay_optimizations_p flag.
1445
826f3788
GM
1446 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
1447 * sysdep.c, vmsproc.c, xselect.c: Call
1448 redisplay_preserve_echo_area with additional arg.
1449
1450 * dispextern.h, lisp.h (redisplay_preserve_echo_area): Change
1451 prototype.
1452
1453 * xdisp.c (redisplay_preserve_echo_area): Add parameter
1454 FROM_WHERE, for debugging.
1455
261d788b
KH
14562001-01-16 Kenichi Handa <handa@etl.go.jp>
1457
1458 * ccl.c (Fregister_ccl_program): Handle the return value of
1459 resolve_symbol_ccl_program correctly.
bda6b481
KH
1460 (CCL_Extension): Fix typo (originally CCL_Extention). Caller
1461 changed.
261d788b 1462
bccee4f2
GM
14632001-01-15 Gerd Moellmann <gerd@gnu.org>
1464
e4ded23c
GM
1465 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
1466 has gone in the meantime, use face MOUSE_FACE_ID.
1467
ae24cb3b
GM
1468 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: If
1469 x_display_info_for_display returns null, don't try to close
1470 the display; we didn't open it.
1471
bccee4f2
GM
1472 * dispnew.c (save_or_restore_current_matrices): Function removed.
1473 (save_current_matrix, restore_current_matrix): New functions.
1474 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
1475 restore the frame's current matrix. Due to the glyph pointer
1476 setup done in adjust_glyph_matrix, there is no easy way to make
1477 saving the current matrix in the desired matrix generally correct,
1478 so don't try it.
1479
ebeccffa
KH
14802001-01-15 Kenichi Handa <handa@etl.go.jp>
1481
1482 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
1483 truncation glyphs.
1484 (display_line): Optimize for wide characters.
e4ded23c 1485 (display_string): Don't try to display a multi-column character
ebeccffa
KH
1486 partially. On ttys, produce more than one truncation glyph for
1487 multi-column characters that don't fit on the line.
1488
64388126
KH
14892001-01-13 Kenichi Handa <handa@etl.go.jp>
1490
1491 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]: Define
1492 it instead of WORDS_BIGENDIAN. Caller changed.
1493
8edb0a6f
JR
14942001-01-13 Jason Rumney <jasonr@gnu.org>
1495
1496 * w32fns.c (Fimage_size, image_ascent, lookup_image)
1497 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
1498 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
1499 (tiff_format, gif_format, gs_format): Adapt to change of image
1500 margins.
1501
1502 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
1503 (x_draw_image_relief, x_draw_image_foreground_1)
1504 (x_draw_image_glyph_string): Adapt to change of image margins.
1505
1506 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
1507 variables.
1508
1509 * w32bdf.c (search_file_line, get_cached_font_char)
1510 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
1511
1512 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
1513
1514 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
1515 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
1516 (Fw32_send_sys_command): Remove unused variables.
1517 (w32_msg_pump): Add parentheses.
1518
1519 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
1520 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
1521 Add parentheses.
1522
4956d1ef
GM
15232001-01-12 Gerd Moellmann <gerd@gnu.org>
1524
b30623be
GM
1525 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
1526 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
1527 being a pair of margins.
1528 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
1529 to DEFVAR_LISP. Extend doc.
1530
1531 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
1532 margins.
1533 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
1534 pair of integers `(X . Y)', use X for the horizontal and Y for the
1535 vertical margin.
1536 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
1537 (parse_image_spec): Check it.
1538 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
1539 (tiff_format, gif_format, gs_format): Use
1540 IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
1541
1542 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
1543 (x_draw_image_relief, x_draw_image_foreground_1)
1544 (x_draw_image_glyph_string): Adapt to the change of image margins.
1545
1546 * dispextern.h (struct image): Replace member `margin' with
1547 `hmargin' and `vmargin'.
1548
4554cc79
GM
1549 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
1550 and GLYPHS.
1551
1552 * dispnew.c (update_text_area): Put code which decrements the
1553 stop position when the row's face extends to the end of the
3bffc665 1554 line in #if 0.
4554cc79 1555
3cccce8d
GM
1556 * xfns.c (x_set_mouse_color): Fix color allocation.
1557
4956d1ef
GM
1558 * keyboard.c: Call get_local_map with new argument list.
1559
1560 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
1561
1562 * intervals.h (enum map_property): Removed.
1563 (get_local_map): Change prototype.
1564
1565 * keymap.c: Call get_local_map with new argument list.
1566 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
1567
2c2ff7f2
GM
15682001-01-11 Gerd Moellmann <gerd@gnu.org>
1569
a23887b9
GM
1570 * xdisp.c (build_desired_tool_bar_string): Correct the computation
1571 of the size needed for the tool bar string. For the last image,
1572 use a `display' property that reaches to the end of the string.
1573
a7ee2d2e
GM
1574 * xselect.c (selection_request_dpyinfo): New variable.
1575 (x_handle_selection_request): Set it.
1576 (x_selection_request_lisp_error): Don't call
1577 x_decline_selection_request if selection request's display has
1578 been closed.
1579
2c2ff7f2
GM
1580 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]: Do
1581 the unregister_colors before calling XFreeColors.
1582
457b792c
GM
15832001-01-10 Dave Love <fx@gnu.org>
1584
1585 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
1586 ${SOME_MACHINE_LISP}, not ${lisp}.
1587
c1efd260
GM
15882001-01-10 Gerd Moellmann <gerd@gnu.org>
1589
a98b5ed9 1590 * xdisp.c (display_line): On ttys, produce more than one
4554cc79 1591 truncation glyph for multi-column characters that don't fit on the
a98b5ed9
GM
1592 line.
1593
ac95a621
GM
1594 * xselect.c (x_reply_selection_request): Add a comment.
1595
c1efd260
GM
1596 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
1597 XkbGetNames instead of XkbGetKeyboard.
1598
1bfb1345
DL
15992001-01-10 Dave Love <fx@gnu.org>
1600
1601 * sysdep.c (random): Revert the declaration.
1602
38119822
GM
16032001-01-09 Gerd Moellmann <gerd@gnu.org>
1604
35f464a7
GM
1605 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]: Call
1606 function string_bytes.
1607 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
1608
1609 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
1610 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
1611 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
1612 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
1613 the current sblock.
1614 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
1615 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
1616 after sweeping strings, and at the end.
1617 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
1618
38119822
GM
1619 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
1620 ensure that pop_message is called.
1621
1622 * keyboard.c (Fexecute_extended_command): Use a
1623 record_unwind_protect to ensure that pop_message is called.
1624
1625 * lisp.h (push_message_unwind): Add prototype.
1626
1627 * xdisp.c (push_message_unwind): New function.
1628
1629 * fileio.c (do_auto_save_unwind): Do the pop_message here
1630 instead of in Fdo_auto_save.
1631 (Fdo_auto_save): Don't call pop_message.
1632
f47a9ec4
KR
16332001-01-08 Ken Raeburn <raeburn@gnu.org>
1634
1635 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
1636 in inner block.
1637
a758f97d
GM
16382001-01-08 Gerd Moellmann <gerd@gnu.org>
1639
6d0afc03
GM
1640 * window.c (window_scroll_pixel_based): Adjust glyph matrices
1641 when increasing window's vscroll.
1642
a758f97d
GM
1643 * macros.c (Qkbd_macro_termination_hook): New variable.
1644 (syms_of_macros): Initialize and staticpro it.
1645 (pop_kbd_macro): Run kbd-macro-termination-hook.
1646
1647 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
1648
1bfb1345 16492001-01-07 Dave Love <fx@gnu.org>
64d4ec0f
DL
1650
1651 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
1652 arglist, for documentation's sake.
1653
0dac6924
AI
16542001-01-06 Andrew Innes <andrewi@gnu.org>
1655
1656 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
1657 of *.pdb.
1658
8182406a
AI
16592001-01-05 Andrew Innes <andrewi@gnu.org>
1660
1661 * term.c (update_end): Don't check updating_frame; for some reason
1662 this can be 0 sometimes, such as after dismissing a popup menu,
1663 and isn't necessary given the explicit frame argument.
1664
3828218c
GM
16652001-01-05 Gerd Moellmann <gerd@gnu.org>
1666
1667 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
1668 on some systems, and an unsigned long on others, like FreeBSD 4.1.
1669
2f5ded21
GM
16702001-01-04 Gerd Moellmann <gerd@gnu.org>
1671
1672 * xterm.c (clear_mouse_face): Don't return if tip_frame is
1673 non-nil.
1674
1675 * xfns.c (x_create_tip_frame): Preserve the value of
1676 face_change_count around the creation of the tip frame.
1677
1678 * xfns.c (last_show_tip_args): New variable.
1679 (compute_tip_xy): New function.
1680 (Fx_show_tip): Reuse an existing tip frame, if possible.
1681 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
1682
dfad65fa
DL
16832001-01-04 Dave Love <fx@gnu.org>
1684
64d4ec0f
DL
1685 * editfns.c (Fformat): Doc fix.
1686
dfad65fa
DL
1687 * systime.h (set_file_times): Prototype.
1688
1689 * widget.h (EmacsFrameSetCharSize_): Prototype.
1690
1691 * sysdep.c (random, srandom): Declare explicitly.
1692
1693 * dispextern.h (move_it_vertically_backward): Declare.
1694
85fe3b5e
GM
16952001-01-04 Gerd Moellmann <gerd@gnu.org>
1696
0f2ac578
GM
1697 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
1698 like in Fx_create_frame.
1699
482cca61
GM
1700 * xfaces.c (set_font_frame_param): Don't do anything for
1701 non-graphical frames.
1702
85fe3b5e
GM
1703 * window.c (Fdelete_other_windows): Set window's window_end_valid
1704 to nil when changing the window's start. Don't change the
1705 window's start when its top position hasn't changed. If we do,
1706 this will set the window's optional_new_start, which act's like a
1707 force_start during redisplay with C-x 1 M-> under particular
1708 circumstances (see report from Per Starback to emacs-pretest-bug
1709 from 2000-12-13.).
1710
3e99d3b4
GM
17112001-01-03 Gerd Moellmann <gerd@gnu.org>
1712
a77dc1ec
GM
1713 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
1714 short cut at the start of the function. Add an assertion.
1715 (reseat_at_next_visible_line_start): Add an assertion.
1716
2f3cad6c
GM
1717 * window.c (Frecenter): When changing the window start, set the
1718 window's window_end_valid to nil.
1719 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
1720
1721 * dispextern.h (move_it_past_eol): Add prototype.
1722
1723 * xdisp.c (move_it_past_eol): New function.
1724
3e99d3b4
GM
1725 * window.c (Fwindow_end): Doc fix.
1726
17272001-01-03 Dave Love <fx@gnu.org>
1728
1729 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3
1730 kluge.
1731
bafb434c
GM
17322001-01-03 Gerd Moellmann <gerd@gnu.org>
1733
1734 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
1735 the enabled_p flag of the glyph row at window_end_vpos to 0.
1736 (handle_single_display_prop): Fix last change.
1737
5297fb00
RS
17382001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
1739
1740 * window.c (Frecenter): Doc fix.
1741
13d6a61c
AI
17422001-01-02 Andrew Innes <andrewi@gnu.org>
1743
1744 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
1745
1746 * frame.h (output_method): Add output_w32_console method.
1747 (FRAME_W32_CONSOLE_P): New macro.
1748
1749 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
1750 use output_w32_console method.
1751 (Qw32_console): New Lisp_Object.
1752 (Fframep): Return it.
1753 (syms_of_frame): Init it.
1754 (Fframe_parameters): Report w32console as font for w32_console
1755 frames.
1756
1757 * xfaces.c (realize_default_face): Set face foreground and
1758 background to unspecified for w32_console frames.
1759 (realize_face): Realize face cache for w32_console frames.
1760 (realize_tty_face): Accept w32_console frames.
1761
1762 * xdisp.c (handle_single_display_prop): Return if frame is
1763 w32_console.
1764 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
1765 necessary, even if running interactively.
1766
1767 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
1768 w32_console frames.
1769
1770 * w32term.c (x_update_begin):
1771 (x_update_end):
1772 (x_clear_frame):
1773 (x_ins_del_lines):
1774 (x_change_line_highlight):
1775 (x_delete_glyphs):
1776 (w32_ring_bell):
1777 (x_update_begin):
1778 (x_update_end):
1779 (w32_reassert_line_highlight):
1780 (w32_frame_rehighlight):
1781 (w32_frame_raise_lower): Do nothing if not w32 frame.
1782
1783 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
1784
1785 * w32fns.c (Fx_display_color_cells): Determine correct value, when
1786 system doesn't tell us directly.
1787 (Fx_display_visual_class): Implement properly.
1788
d6bb0c0d
GM
17892001-01-02 Gerd Moellmann <gerd@gnu.org>
1790
1791 * window.c (Frecenter): Handle centering in graphical frames
1792 specially. Centering on the basis of line counts doesn't work
1793 reliably with variable-height lines.
1794
315f5865
EZ
17952001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
1796
1797 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
1798 and al[].
1799
1800 * composite.c (run_composition_function): Remove unused variable
1801 `val'.
1802 (update_compositions): Remove unused variable `hook'.
1803
1804 * intervals.c (get_local_map): Remove unused variable `tem'.
1805
1806 * doprnt.c (doprnt1): Remove unused variable `size'.
1807
1808 * fns.c (Flength): Remove unused variable `tail'.
1809 (Fdelete): Remove unused variable `size'.
1810
1811 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
1812 and `gcpro2'.
1813
1814 * doc.c (Fsnarf_documentation): Remove unused variables `fun' and
1815 `tem'.
1816
1817 * data.c (find_symbol_value): Remove extra 3rd argument in the
1818 call to swap_in_symval_forwarding.
1819
1820 * undo.c (Fprimitive_undo): Remove unused block-scope variable
1821 `end'.
1822
1823 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
1824 (trivial_regexp_p): Remove unused variable `c'.
1825 (boyer_moore): Remove unused variable `k'.
1826
1827 * indent.c (current_column): Remove unused variable `stopchar'.
1828 (Fcompute_motion): Remove unused variable `contin'.
1829
1830 * casefiddle.c (casify_object): Remove unused variable `tolen'.
1831
1832 * dired.c (directory_files_internal): Fix a typo in a comment.
1833 Remove an unused variable `handler'.
1834 (file_name_completion): Remove unused function-scope variable
1835 `dp'.
1836 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
1837 on BSD4_2.
1838
1839 * fileio.c (e_write): Remove unused variable
1840 `require_encoding_p'.
1841
1842 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
1843 and `buf'.
1844 (Fmarker_insertion_type): Remove unused variable `buf'.
1845
1846 * insdel.c (make_gap): Remove unused variable `result'.
1847
1848 * keyboard.c (record_char): Remove unused function-scope variable
1849 `help'.
1850 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
1851 (menu_bar_items): Remove unused function-scope variable `tem'.
1852
1853 * fontset.c (fontset_ref): Remove unused variable `i'.
1854 (fontset_set): Remove unused variables `j' and `tmp'.
1855 (make_fontset): Remove unused variables `i', `j', `elt' and
1856 `base_elt'.
1857 (make_fontset_for_ascii_face): Remove unused variable `name'.
1858 (fs_load_font): Remove unused variable `font_idx'.
1859 (fs_query_fontset): Remove unused function-local variable
1860 `fontset'.
1861 (list_fontsets): Remove unused variable `tail'.
1862 (Fnew_fontset): Remove unused variables `family' and `registry'.
1863 (accumulate_font_info): Remove unused variable `tmp'.
1864 (Ffontset_font): Remove unused variable `id'.
1865 (syms_of_fontset): Remove unused variable `i'.
1866
1867 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
1868 to x_term_init.
1869 (lookup_image): Remove unused variable `file'.
1870 (xbm_load): Remove unused variables `bitmap_data', `height', and
1871 `width'. Remove function-local variable `i', leave the
1872 block-local one.
1873 (gif_load): Remove unused variable `inc'.
1874
1875 * xterm.c (XTread_socket): Remove unused variables `p' and
1876 `pend'.
1877 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
1878 leave only the one in the inner block.
1879
1880 * xfaces.c (face_fontset, realize_default_face): Remove unused
1881 variable `fontset'.
1882 (face_at_buffer_position): Remove unused variable `multibyte_p'.
1883
1884 * term.c (encode_terminal_code): Remove unused variable `c'.
1885
1886 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
1887 char *' instead of `char *'.
1888
1889 * category.c (Fcategory_docstring): Remove unused variable `doc'.
1890 (Fget_unused_category): Remove unused variable
1891 `docstring_vector'.
1892 (Fchar_category_set): Remove unused variables `val', `charset',
1893 `c1' and `c2'.
1894
1895 * coding.c (detect_coding_iso2022, setup_coding_system): Remove
1896 unused variable `i'.
1897 (detect_coding_mask): Remove unused variable `idx'.
1898 (detect_coding): Remove unused variable `i'.
1899 (ccl_coding_driver): Remove unused variable `result'.
1900 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
1901 (decode_coding_string): Remove unused variables `to' and
1902 `gcpro1'.
1903 (encode_coding_string): Remove unused variables `gcpro1' and
1904 `saved_coding_symbol'.
1905 (Ffind_coding_systems_region_internal): Remove function-local
1906 variable args[], leave only the block-local one.
1907 (code_convert_region1): Remove unused variable `len'.
1908
1909 * charset.c (char_printable_p): Remove unused variable `chars'.
1910 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
1911 (str_to_multibyte): Remove unused variable `c'.
1912
1913 * window.c (size_window): Remove block-local variable `min_size'.
1914
1915 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
1916 `header_line_height'.
1917 (append_space, extend_face_to_end_of_line): Declare `saved_what'
1918 enum display_element_type.
1919
1a8a9daf
GM
19202001-01-02 Gerd Moellmann <gerd@gnu.org>
1921
6dde6abc
GM
1922 * xterm.c (x_connection_closed): Catch X errors around all
1923 statements that call X. Save away the error message in a local
1924 copy.
1925
1883b2c6
GM
1926 * xterm.c (x_connection_closed): Set handling_signal to 0 at
1927 the start.
1928
a13be207
GM
1929 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
1930 in or at the start of invisible text.
1931
1a8a9daf
GM
1932 * dispnew.c (update_window): Don't check_current_matrix_flags.
1933
3608c0f9
JR
19342001-01-01 Jason Rumney <jasonr@gnu.org>
1935
1936 * w32fns.c (x_figure_window_size): Do not allow new_height and
1937 new_width of frame to override specified values.
1938
abb1acc4
KH
19392000-12-30 Kenichi Handa <handa@etl.go.jp>
1940
d279f620
KH
1941 * composite.c (find_composition): Fix a code for searching
1942 backward.
abb1acc4 1943
762a68ec
GM
19442000-12-29 Gerd Moellmann <gerd@gnu.org>
1945
9c8b8382
GM
1946 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New
1947 function.
1948 (update_window) [GLYPH_DEBUG]: Call it.
1949 (scrolling_window): Prevent including current rows which are below
1950 what's displayed in the window.
1951
1952 * xdisp.c (try_window_reusing_current_matrix)
1953 <new start <= old start>: Disable rows in the current matrix
1954 which are below the window after scrolling.
1955
762a68ec
GM
1956 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
1957 is zero. It's not worth the complexity.
1958 (invisible_text_between_p): Put in #if 0 because unused.
1959
2d5912c1
GM
19602000-12-28 Gerd Moellmann <gerd@gnu.org>
1961
46f6a258
GM
1962 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
1963 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
1964
89f93679
GM
1965 * keyboard.c (echo_char): If C is an integer, always call
1966 push_key_description. Former code could signal an invalid
1967 character error.
1968
1969 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
1970 If set, print multibyte text.
1971 (Fsingle_key_description): Call push_key_description with
1972 FORCE_MULTIBYTE set.
1973 (describe_buffer_bindings): Likewise.
1974
1975 * lisp.h (push_key_description): Add prototype.
1976
c06017fb
GM
1977 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
1978 around the call to redisplay_internal.
1979
f1d2ce7f
GM
1980 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
1981
2d5912c1
GM
1982 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
1983
9371f831
KH
19842000-12-28 Kenichi Handa <handa@etl.go.jp>
1985
1986 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
1987 (ccl_driver): New local variable `extra_bytes'.
1988
1989 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
1990
1991 * coding.c (setup_coding_system): Initialize
1992 coding->spec.ccl.eight_bit_carryover.
1993 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
1994
0c80628a
KH
19952000-12-28 Kenichi Handa <handa@etl.go.jp>
1996
1997 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
1998 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
1999 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
2000 (decode_composition_emacs_mule): New function.
2001 (decode_coding_emacs_mule): Decode composition sequence by calling
2002 decode_composition_emacs_mule.
2003 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
2004 (encode_coding_emacs_mule): Changed from macro to function. If
2d5912c1 2005 a text contains compositions, encode them correctly.
0c80628a
KH
2006 (setup_coding_system): Set coding->commong_flags for emacs-mule so
2007 that decoding and encoding are required.
2008
3e32cc27
GM
20092000-12-27 Gerd Moellmann <gerd@gnu.org>
2010
5e25feee
GM
2011 * xfaces.c (PT_PER_INCH): New macro.
2012 (xlfd_point_size): Compute real point size from font's pixel size.
2013 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
2014 instead of 72.
2015
892d8fcd
GM
2016 * .gdbinit: Comment out the line pointing to the Lesstif source
2017 directory.
2018
12c8b416
GM
2019 * window.c (Frecenter): Use displayed_window_lines instead
2020 of window_internal_height.
2021
6061fbf0
GM
2022 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
2023 instead of x-toolkit-scroll-bars-p.
2024 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
2025
2026 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
2027 instead of x-toolkit-scroll-bars-p.
2028 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
2029
3e32cc27
GM
2030 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
2031 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
2032 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]: New
2033 variables.
2034 (add_window_display_history, add_frame_display_history)
2035 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
2036 (build_frame_matrix_from_leaf_window): Remove unused code.
2037 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
2038 redisplay history.
2039 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
2040 (update_window) [GLYPH_DEBUG]: Likewise.
2041 (syms_of_display): Defsubr dump-redisplay-history.
2042
31798cfe
GM
20432000-12-23 Gerd Moellmann <gerd@gnu.org>
2044
f717c2ba
GM
2045 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
2046 the end of the prompt. Set echo_after_prompt to the offset
2047 of echoptr in echobuf.
2048
aeb2b8fc
GM
2049 * xdisp.c (init_from_display_pos): Pop until the iterator's
2050 stack is empty; there may be frames for stretch or images
2051 on the stack.
2052
31798cfe
GM
2053 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
2054 (save_or_restore_current_matrix): New function for the same
2055 purpose, but more efficient.
2056 (adjust_frame_glyphs_for_frame_redisplay): Use it.
2057
f8156156
EZ
20582000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
2059
2060 * xdisp.c (syms_of_xdisp): Fix last change.
2061
bdd6d4e8
GM
20622000-12-23 Gerd Moellmann <gerd@gnu.org>
2063
2064 * xdisp.c (syms_of_xdisp): Doc fix.
2065
2066 * xdisp.c (redisplay_window): Remove label restore_buffers;
2067 use finish_scroll_bars instead to make sure that scroll bars
2068 are redeemed. If we don't do this, flickering can result from
2069 scroll bars being destroyed and recreated.
2070
9436cdf9
JR
20712000-12-22 Jason Rumney <jasonr@gnu.org>
2072
2073 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
2074 in the wrong colors when the foreground is not black.
2075 (expose_window): Don't redraw the window that's currently being
2076 updated.
2077
951f9df5
GM
20782000-12-22 Gerd Moellmann <gerd@gnu.org>
2079
856ff7a7
GM
2080 * window.c (size_window): When setting the window's too_small_ok
2081 flag, compare old size with minimum size depending on WIDTH_P,
2082 don't compare with window_min_width.
2083
951f9df5
GM
2084 * window.c (delete_window): Simplify somewhat.
2085 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
2086 freeing window matrices. The flag windows_or_buffers_changed is
2087 set, so the next redisplay will consider all windows; this should
2088 suffice.
2089
886bc933
KH
20902000-12-22 Kenichi Handa <handa@etl.go.jp>
2091
2092 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
2093
2094 * ccl.h (struct ccl_program): New member cr_consumed.
2095
2096 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
2097 (CCL_READ_CHAR): Handle EOL conversion here.
2098 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
2099
177f4e88
GM
21002000-12-21 Gerd Moellmann <gerd@gnu.org>
2101
6ba384dc
GM
2102 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg
2103 GLYPHS.
2104
2105 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
2106 otherwise tabs of different size compare equal.
2107
2108 * callint.c (Fcall_interactively): Prevent a compiler warning.
2109
2110 * print.c (print_unwind): Return nil.
2111 (PRINTDECLARE): Initialize all local variables.
2112 (print_preprocess): Add a default case.
2113
8e15274f
GM
2114 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
2115
2116 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
2117
177f4e88
GM
2118 * window.c (delete_window, Fsplit_window)
2119 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
2120
2121 * dispextern.h (ensure_frame_matrix): Function declaration removed.
2122
2123 * dispnew.c (ensure_frame_matrix): Removed.
2124 (save_frame_matrix, restore_frame_matrix): New functions.
2125 (adjust_frame_glyphs_for_frame_redisplay): Use them.
2126
2127 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
2128 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
2129
99012074
AI
21302000-12-21 Andrew Innes <andrewi@gnu.org>
2131
2132 * w32term.c (x_update_begin): Regenerate the palette here, rather
2133 than for each window.
2134
2135 * w32xfns.c (select_palette): Avoid calling SelectPalette if
2136 palette is NULL, since this corrupts memory! Also get
2137 display_info reference from frame.
2138
29ef7d2d
JR
21392000-12-21 Jason Rumney <jasonr@gnu.org>
2140
2141 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
2142
2143 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
2144 to avoid returning without releasing it.
3e27fa1f 2145
3f9d67a6
KH
21462000-12-21 Kenichi Handa <handa@etl.go.jp>
2147
587fc3f9
KH
2148 * keymap.c (push_key_description): Don't convert eight-bit-control
2149 and eight-bit-graphic to multibyte character.
2150
3f9d67a6
KH
2151 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
2152 generic character and CODE1 is nil, return the smallest character
2153 in CHARSET.
2154
774ba8c9
DL
21552000-12-20 Dave Love <fx@gnu.org>
2156
2157 * s/osf5-0.h (NSIG): Don't redefine.
2158
88416888
SM
21592000-12-20 Stefan Monnier <monnier@cs.yale.edu>
2160
2161 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
2162 excluding menu-bar and tool-bar.
2163 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
2164 (menu_item_p): Remove.
2165 (where_is_internal_1): Don't ignore menu-items.
2166
a6426c6f
GM
21672000-12-20 Gerd Moellmann <gerd@gnu.org>
2168
03ff8aab
GM
2169 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
2170 into account.
2171
2172 * window.c (make_window): Initialize window's min_hscroll.
2173 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
2174 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
2175 to zero.
2176 (struct saved_window): New member min_hscroll.
2177 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
2178 (Fset_window_configuration): Set window's min_hscroll.
2179 (save_window_save): Save window's min_hscroll.
2180 (compare_window_configurations): Compare min_hscroll values.
2181
2182 * window.h (struct window): New member min_hscroll.
2183
2184 * keyboard.c (echo_prompt): Prevent a compiler warning.
2185
8de4aaf8
GM
2186 * xdisp.c (try_cursor_movement): Fix last change. The real
2187 condition is that PT is at the end of the row, and should
2188 be displayed at the start of the next row.
2189
3f7e3031
GM
2190 * xdisp.c (try_cursor_movement): If we end on a partially
2191 visible line, end we already decided to scroll, return -1.
2192
a6426c6f
GM
2193 * dispextern.h (ensure_frame_matrix): Add prototype.
2194
2195 * window.c (delete_window, Fsplit_window)
2196 (Fset_window_configuration): Call ensure_frame_matrix.
2197
2198 * dispnew.c (fake_current_matrices, ensure_frame_matrix): New
2199 functions.
2200 (adjust_frame_glyphs_for_frame_redisplay): If display has been
2201 completed, call fake_current_matrices instead of marking frame
2202 garbaged.
2203
57fa2774
JR
22042000-12-20 Jason Rumney <jasonr@gnu.org>
2205
2206 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
2207
d925df90
EZ
22082000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
2209
2210 * fns.c (Frequire): Doc fix.
2211
7b93a85b
GM
22122000-12-19 Gerd Moellmann <gerd@gnu.org>
2213
71d4497a
GM
2214 * window.c (window_scroll_pixel_based): Don't use
2215 move_it_vertically.
2216
c74e645b
GM
2217 * dispnew.c (direct_output_for_insert): Fix check for mini-window
2218 currently displaying a message.
2219
7b93a85b
GM
2220 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
2221 xterm.h.
2222 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
2223
90d97e64
AI
22242000-12-18 Andrew Innes <andrewi@gnu.org>
2225
2226 * w32.c (w32_strerror): New function.
2227
2228 * w32.h (w32_strerror): New extern.
2229
2230 * w32fns.c (Fw32_shell_execute): Use it.
2231
91c9e6ce
GM
22322000-12-18 Gerd Moellmann <gerd@gnu.org>
2233
2234 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
2235
6f4745e2
EZ
22362000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
2237
2238 * msdos.c (IT_set_face): Obey inverse_video.
2239
c9e088ce
KH
22402000-12-18 Kenichi Handa <handa@etl.go.jp>
2241
2242 * dired.c (directory_files_internal): Always return decoded filenames.
2243
c3695f5f
GM
22442000-12-18 Gerd Moellmann <gerd@gnu.org>
2245
52d8e4ff
GM
2246 * xterm.c (x_connection_closed): Prevent being called recursively
2247 because of an error condition in XtCloseDisplay.
2248
62be9979
GM
2249 * xdisp.c (init_iterator): If noninteractive, and the frame's
2250 face cache is null, make one.
2251
5f7a1890
GM
2252 * xfns.c (show_busy_cursor): Check for live frames more
2253 thoroughly.
2254
c3695f5f
GM
2255 * process.c (wait_reading_process_input): Check for pending
2256 input when running timers.
2257
78555fbe
EZ
22582000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
2259
2260 * msdos.c (IT_write_glyphs): Compute the glyph face from
2261 str->face_id.
2262
b2b36264
KH
22632000-12-18 Kenichi Handa <handa@etl.go.jp>
2264
2265 * process.c (read_process_output): Don't run a filter if the code
2266 decoder produces nothing but carryover.
2267
9c543fbf
AI
22682000-12-17 Andrew Innes <andrewi@gnu.org>
2269
2270 * w32.c (sys_rename): Only check errno against EEXIST, and not
2271 EACCES, when determining whether rename failed because the target
2272 exists. This was resulting in indefinite looping on Windows 9x if
2273 the source file was locked by another process.
2274
2275 * w32fns.c (Ffile_system_info): New function.
2276 (syms_of_w32fns): Defsubr it.
2277
10c2b5a8
GM
22782000-12-17 Gerd Moellmann <gerd@gnu.org>
2279
b0228ace
GM
2280 * window.c (coordinates_in_window): Fix computation for
2281 position on vertical line between mode lines.
2282
10c2b5a8
GM
2283 * xfns.c (unwind_create_frame): Return t if frame was deleted.
2284 Don't alter tip_frame or tip_window.
2285 (unwind_create_tip_frame): Set tip_frame to nil only if frame
2286 was deleted.
2287
c844a81a
GM
2288 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
2289 Don't alter tip_frame or tip_window.
2290 (unwind_create_tip_frame): Set tip_frame to nil only if frame
2291 was deleted.
2292
6c825f8e
EZ
22932000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
2294
2295 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
2296 be consistent with the doc string. Reported by NAKAJIMA Mikio
2297 <minakaji@osaka.email.ne.jp>.
2298
af4bb4c8
KH
22992000-12-16 Kenichi Handa <handa@etl.go.jp>
2300
2301 * xfaces.c (Vface_ignored_fonts): New variable.
2302 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
2303 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
2304
8062e53a
GM
23052000-12-15 Gerd Moellmann <gerd@gnu.org>
2306
e87b8809
GM
2307 * dispnew.c (update_window): Detect pending input every nth line
2308 updated, i.e. do it depending on real work done, and not on the
2309 vpos of the line.
2310
2311 * xterm.c (expose_window): Don't redraw the window that's
2312 currently being updated.
2313
a6768cc5
GM
2314 * window.c (Fset_window_point): Remove test for
2315 cursor_in_non_selected_windows.
2316
4ea7fdca
GM
2317 * lread.c (read1): Recognize end of file after `\\'.
2318
8062e53a
GM
2319 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
2320 not unwind_create_frame.
2321
bb7959c1
GM
23222000-12-15 Dave Love <fx@gnu.org>
2323
2324 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
2325 bcopy & al.
2326
2327 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
2328
ced04c42
KH
23292000-12-15 Kenichi Handa <handa@etl.go.jp>
2330
c5443913
KH
2331 * coding.c (setup_coding_system): Clear all members of the struct
2332 coding_system at first.
bc137305
KH
2333 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
2334 argument.
2335 (code_convert_region): Don't override coding->src_multibyte and
2336 coding->dst_multibyte.
c5443913 2337
ced04c42
KH
2338 * fns.c (Fmd5): Docstring improved.
2339
c2d7f289
MB
23402000-12-15 Miles Bader <miles@gnu.org>
2341
2342 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
2343 are actually marked as mode-lines; otherwise use
2344 estimate_mode_line_height.
2345
9d7d9263
GM
23462000-12-14 Gerd Moellmann <gerd@gnu.org>
2347
2348 * editfns.c (Fformat): Prevent a buffer overrun when the format
2349 specifies a precision.
2350
7cf0153a
EZ
23512000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
2352
2353 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
2354 argument is outside the range [2..3].
2355
1de0f662
AI
23562000-12-14 Andrew Innes <andrewi@gnu.org>
2357
2358 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
2359 nothing to do. Bind inhibit-quit.
2360 (tip_frame): Make it a Lisp_Object.
2361 (x_create_tip_frame): Set tip_frame after it has been added to
2362 Vframe_list.
2363 (Fx_show_tip): Don't set tip_frame here.
2364 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New
2365 variables.
2366 (unwind_create_frame, unwind_create_tip_frame): New functions.
2367 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
2368 while a frame is only partially constructed.
2369
2370 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
2371 (x_free_frame_resources): New function.
2372 (x_destroy_window): Use it.
2373
02387dcc
GM
23742000-12-14 Gerd Moellmann <gerd@gnu.org>
2375
2376 * xfns.c (Fx_backspace_delete_keys_p): New function.
2377 (syms_of_xfns): Defsubr it.
2378
2379 * config.in (HAVE_XKBGETKEYBOARD): Add.
2380
0544ef49
KH
23812000-12-14 Kenichi Handa <handa@etl.go.jp>
2382
98d62747
KH
2383 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
2384 Always store string in multibyte representation in echobuf.
2385 (echo_char): Always store string in multibyte representation in
2386 echobuf.
2387 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
2388 (read_key_sequence): Adjusted for the change of echo_prompt.
2389
a20193cd
KH
2390 * fns.c (Fmd5): Docstring improved.
2391
191b83b6
KH
2392 * lisp.h (detect_coding_system): Prototype adjusted.
2393
0544ef49
KH
2394 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
2395 (detect_coding_emacs_mule, detect_coding_iso2022,)
2396 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
2397 (detect_coding_utf_16, detect_coding_ccl): Make them static. New
2398 argument MULTIBYTEP. Callers changed.
2399 (detect_coding_mask, detect_coding_system): New argument
2400 MULTIBYTEP. Callers changed.
1da1bb05
KH
2401 (decode_coding_string): Set coding->src_multibyte and
2402 coding->dst_multibyte before calling detect_coding and detect_eol.
2403 Update them after some coding system is detected.
2404
d5b3eb1b
SM
24052000-12-13 Stefan Monnier <monnier@cs.yale.edu>
2406
2407 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
2408
2409 * keyboard.c (menu_bar_items, tool_bar_items):
2410 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
2411
f7f8bb69
GM
24122000-12-13 Gerd Moellmann <gerd@gnu.org>
2413
19f71add
GM
2414 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
2415 New variables.
2416 (unwind_create_frame, unwind_create_tip_frame): New functions.
2417 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
2418 while a frame is only partially constructed.
2419
2420 * xterm.h (x_free_frame_resources): Declare.
2421
2422 * xterm.c (x_free_frame_resources): New function.
2423 (x_destroy_window): Use it.
2424
e10da507
GM
2425 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
2426 don't interrupt the update for pending input initially, i.e.
2427 update at least some lines.
2428
2429 * keyboard.c (do_mouse_tracking): Make externally visible.
2430
d5b3eb1b 2431 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
f7f8bb69
GM
2432
2433 * xfns.c (gray_bitmap_bits): Declare `char *'.
2434
90aa2856
GM
24352000-12-12 Gerd Moellmann <gerd@gnu.org>
2436
2437 * xdisp.c (display_tool_bar_line): Make sure that tool bar
2438 lines start with a relief line.
2439
a308c9cd
DL
24402000-12-12 Dave Love <fx@gnu.org>
2441
2442 * window.c (Fdisplay_buffer): Doc fix.
2443 (Fwindow_list): Remove unused var.
2444
2445 * buffer.h (mmap_set_vars): Declare.
2446
2447 * window.h (Fset_window_point): Declare.
2448
d575011f
EZ
24492000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
2450
bf6282d2 2451 * msdos.c (fast_find_position): Don't overstep the last window row.
d575011f
EZ
2452 (IT_note_mouse_highlight): Initialize portion to -1. Remove
2453 unused variable `area'. When looking for a row under (X,Y), give
2454 up if some of the previous rows is not enabled.
2455
ecf4d726
GM
24562000-12-12 Gerd Moellmann <gerd@gnu.org>
2457
2ebf6139
GM
2458 * window.c (Fset_window_point): If displaying cursors in windows
2459 other than the selected window, make sure redisplay updates
2460 other windows to show the new value of point in the window.
2461
2462 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
2463
bfdb75ee
GM
2464 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
2465 the buffer is the sole visible buffer when in the mini-buffer.
2466
4fdbd809
GM
2467 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
2468 Bind `inhibit-read-only' to t.
2469 (unwind_with_echo_area_buffer): Use AREF.
2470
c0006262
GM
2471 * xfns.c (Fx_hide_tip): Simplified.
2472
e9a59cad
GM
2473 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use
2474 GC_MAKE_GCPROS_NOOPS instead of `1'.
2475
ecf4d726
GM
2476 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
2477
e5959a9a
GM
24782000-12-11 Gerd Moellmann <gerd@gnu.org>
2479
a3642e49
GM
2480 * xfns.c (Fx_hide_tip): Fix last change.
2481
44b5a125
GM
2482 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
2483 nothing to do. Bind inhibit-quit.
2484 (tip_frame): Make it a Lisp_Object.
2485 (x_create_tip_frame): Set tip_frame after it has been added to
2486 Vframe_list.
2487 (Fx_show_tip): Don't set tip_frame here.
2488
2489 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
2490
2491 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
2492 Lisp_Object.
2493
2494 * dispextern.h: Change external declaration of tip_frame.
2495
d990421f
GM
2496 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
2497 return an empty string.
2498
4db87380
GM
2499 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
2500 of the window's update_mode_line flag, since the former is set by
2501 force-mode-line-update, not the latter. This makes
2502 column-number-mode slightly faster.
2503
e5959a9a
GM
2504 * xdisp.c (try_window_id) <all changes above window start>:
2505 Set the cursor.
2506
169fe44e
GM
25072000-12-11 Paul Eggert <eggert@twinsun.com>
2508
2509 * config.in (HAVE_FTELLO): Remove.
2510 (HAVE_FSEEKO): Add.
2511 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
2512 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
2513 HAVE_FTELLO.
2514 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
2515 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
2516
59ec59ae
MB
25172000-12-11 Miles Bader <miles@gnu.org>
2518
2519 * window.c (displayed_window_lines): Don't round up when
2520 converting empty space at bottom to lines.
ff904dd6
MB
2521 Handle non-newline-terminated final lines properly.
2522 (Fwindow_text_height): New function (used to be in lisp).
2523 (syms_of_window): Initialize it.
59ec59ae 2524
42ebfa31
SM
25252000-12-09 Stefan Monnier <monnier@cs.yale.edu>
2526
2527 * syntax.c (scan_lists): Check that the right quote char has the
2528 right Sstring syntax when jumping over strings.
2529 (init_syntax_once): Use Smax rather than 13.
2530
5cdb3cf3
MB
25312000-12-09 Miles Bader <miles@gnu.org>
2532
2533 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
2534 with PARTIALLY, inverting the sense.
2535 (window_scroll_pixel_based): Scroll partially visible lines into
2536 place if we hit the beginning or end of the buffer.
a12167c5
MB
2537 (displayed_window_lines): Don't include partially visible lines.
2538 (Fmove_to_window_line): Skip past any partially visible first line.
5cdb3cf3 2539
842b2a94
GM
25402000-12-08 Gerd Moellmann <gerd@gnu.org>
2541
2542 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
2543
2544 * tparam.c (tparam1): Change the way buffers are reallocated to be
2545 portable and less obfuscated.
2546
2547 * termcap.c (tgetent): Change the way buffers are reallocated to
2548 be portable and less obfuscated.
2549
2550 * macros.c (store_kbd_macro_char): Change the way buffers are
2551 reallocated to be portable and less obfuscated.
2552
2553 * lread.c (read1): Change the way buffers are reallocated to be
2554 portable and less obfuscated.
2555
2556 * doc.c (Fsubstitute_command_keys): Change the way buffers
2557 are reallocated so that it is portable.
2558
137cad7c
EZ
25592000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
2560
2561 * dosfns.c (Ffile_system_info): New function.
2562 (syms_of_dosfns): Defsubr it.
2563
5c7f629c
SM
25642000-12-07 Stefan Monnier <monnier@cs.yale.edu>
2565
2566 * alloc.c (gc_sweep): Add comment.
2567
959e647d
GM
25682000-12-07 Gerd Moellmann <gerd@gnu.org>
2569
28fcb7dc
GM
2570 * sound.c (vox_configure): Change order of ioctls. Don't
2571 set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
2572 Ignore errors when changing volume.
2573 (vox_close): Don't reset the device.
2574
926b7e5e
GM
2575 * process.c (read_process_output): Make sure the process marker's
2576 position is valid when the process buffer is changed in
2577 after-change functions. W3 does that.
2578
959e647d
GM
2579 * xfns.c (x_free_gcs): New function.
2580
2581 * xterm.h (x_free_gcs): Add prototype.
2582
2583 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
2584 freeing GCs here.
2585
2586 * xterm.c (x_destroy_window): Call x_free_gcs so that
2587 resources of non-toolkit X windows will be freed.
2588
478ea067
AI
25892000-12-07 Andrew Innes <andrewi@gnu.org>
2590
2591 * w32fns.c (xlfd_charset_of_font): Fix last change.
2592
fbee3231
DL
25932000-12-06 Dave Love <fx@gnu.org>
2594
67292061
DL
2595 * md5.h (__P): Don't define -- it comes from config.h.
2596
fbee3231
DL
2597 * strftime.c: Change some #if foo to #ifdef foo.
2598
4ee87dbb
AI
25992000-12-06 Andrew Innes <andrewi@gnu.org>
2600
2601 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
2602
2603 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname
2604 argument.
2605 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
2606 (w32_list_fonts): Don't choke if pattern doesn't specify a
2607 codepage.
2608
9765b4a4
GM
26092000-12-06 Gerd Moellmann <gerd@gnu.org>
2610
d285b373
GM
2611 * alloc.c (gc_sweep): Prevent symbols read during loadup
2612 from being freed.
2613
384333ee
GM
2614 * xdisp.c (underlying_face_id): New function.
2615 (handle_face_prop, face_before_or_after_it_pos): Use it
2616 to determine the face ``under'' a string. Let strings inherit
2617 the face of the buffer under them.
2618
2619 * xfaces.c (face_at_string_position): Update function comment.
2620
d4b72d58
GM
2621 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
2622 matrix if the window's left position has changed; we need to
2623 redraw it in this case.
2624
2625 * dispextern.h (struct glyph_matrix): Add member window_left_x.
2626
e1d05387
GM
2627 * window.c (coordinates_in_window): Check mouse on mode-line or
2628 header-line first.
2629
eb1b0c74
GM
2630 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
2631 advertized by the function documentation.
2632
d94d636f
GM
2633 * window.c (syms_of_window): Doc fix.
2634
3887b449
GM
2635 * sound.c (vox_configure): Set volume for left and right channel.
2636 (sound_cleanup): Return nil.
2637
efc8f57a
GM
2638 * xdisp.c (move_it_by_lines): Fix paren typo.
2639
9765b4a4
GM
2640 * xterm.c (x_load_font): Don't use the font's max_bounds for
2641 computing the height of the font. If max_bounds' ascent or
2642 descent are greater than the font's ascent or descent, this means
2643 glyphs overlap, which should be handled now by redisplay.
2644
6529ed87
GM
2645 * window.c (Veven_window_heights): New variable.
2646 (syms_of_window): DEFVAR_LISP it.
2647 (Fdisplay_buffer): Check Veven_window_heights before evening the
2648 window heights.
2649
0eb2ecde
MB
26502000-12-06 Miles Bader <miles@gnu.org>
2651
2652 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
2653 update `default-frame-alist' instead of setting no frame parameters.
2654
03d7a167
KH
26552000-12-06 Kenichi Handa <handa@etl.go.jp>
2656
2657 * composite.c (update_compositions): Fix typo (use the correct
2658 variable).
2659
5f8803c2
JR
26602000-12-05 Jason Rumney <jasonr@gnu.org>
2661
2662 * md5.h: Remove underscores from function declarations.
2663 (__attribute__, __alignof__) [!__GNUC__]: Define.
2664
2665 * md5.c: Delay include of md5.h until after namespace cleaning.
2666
c28a075b
JR
2667 * makefile.w32-in (fns.o): Depend on md5.h
2668 (md5.o): New target.
2669 (sunfns.o): Remove.
2670
2671 * makefile.nt: Likewise.
2672
ff3c7056
JR
26732000-12-05 Jason Rumney <jasonr@altavista.net>
2674
2675 * w32term.c (expose_area): Complete last change.
2676
0c21eeeb
KR
26772000-12-05 Ken Raeburn <raeburn@gnu.org>
2678
2679 * minibuf.c: Include intervals.h.
2680
f201d732
JR
26812000-12-05 Jason Rumney <jasonr@gnu.org>
2682
2683 * w32term.c (x_produce_glyphs): If a font for a component of
2684 a composition is not found, use 1 pixel dot ascent and 0 dot
2685 descent value to avoid displaying terribly tall empty boxes.
2686 (expose_area): Pass x-coordinate relative to the exposed
2687 area to x_draw_glyphs instead of a window-relative coordinate.
2688
21999ab9
GM
26892000-12-05 Gerd Moellmann <gerd@gnu.org>
2690
4d2036e4
GM
2691 * xdisp.c (next_element_from_ellipsis): Save face before selective
2692 display in saved_face_id, and set face_before_selective_p.
2693 (reseat_1): Reset face_before_selective_p.
2694 (append_space, extend_face_to_end_of_line): If iterator's
2695 face_before_selective_p is set, use the face from saved_face_id.
2696 (extend_face_to_end_of_line): For tty frames, make sure to
2697 use the right face id when producing spaces at the end of
2698 the line.
2699
2700 * dispextern.h (struct it): Add face_before_selective_p.
2701
52be17cc
GM
2702 * keyboard.c (record_char): Don't record identical help-echo
2703 events in recent_keys.
2704
8a4f36cc
GM
2705 * xterm.c [USE_X_TOOLKIT]: Close the display.
2706 (xim_close_dpy): Handle case that the display has been closed.
2707
57d6e381
GM
2708 * xterm.c (x_destroy_window): Reset the frame's X window after
2709 destroying it.
2710
21999ab9
GM
2711 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
2712 variable window_width.
2713 (line_draw_cost): Fix code skipping over spaces at the end of the
2714 line when must_write_spaces is not set.
2715 (scrolling_window): Fix code inserting runs in list of all runs.
2716
91372bb7
KH
27172000-12-05 Kenichi Handa <handa@etl.go.jp>
2718
2719 * coding.c (setup_coding_system): Be sure to initialize
2720 coding->category_idx.
2721
6c083b4c
GM
27222000-12-04 Gerd Moellmann <gerd@gnu.org>
2723
0c68ce6f
GM
2724 * xterm.c (PER_CHAR_METRIC): Removed because not used.
2725
6452929e
GM
2726 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
2727 area to x_draw_glyphs instead of a window-relative coordinate.
2728
d7f31e22
GM
2729 * fileio.c (auto_save_error): Add parameter ERROR. Show the
2730 error in the message.
2731
ae18aa3b
GM
2732 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
2733 timer after having read a key. It's not good for code reading
2734 several keys in a loop, like an input method.
2735
caa15ef7
GM
2736 * fileio.c (Finsert_file_contents): When VISIT is t, don't
2737 record undo information for format-decode.
2738
2739 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
2740 current buffer is read-only, not if it isn't.
2741
6c083b4c
GM
2742 * keyboard.c (record_char): Record `help-echo' input events
2743 in recent_keys only if they display some help. Don't record
2744 `help-echo' events as macro char.
2745
caa15ef7
GM
27462000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2747
2748 * editfns.c (save_excursion_restore): Don't move point
2749 in another window if it is showing the wrong buffer.
2750 Avoid the call to Fwindow_live_p, for speed.
2751
5a13529b
KH
27522000-12-04 Kenichi Handa <handa@etl.go.jp>
2753
e225faa7
KH
2754 * xfaces.c (struct font_name): New member registry_priority.
2755 (split_font_name): Initialize the above member to zero.
2756 (concat_font_list): New function.
2757 (font_list): Include fonts of all alternative registries.
2758 (FONT_POINT_SIZE_QUANTUM): New macro.
2759 (better_font_p): Ignore point size difference less than
2760 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
2761
e89648b4
KH
2762 * xterm.c (x_produce_glyphs): If a font for a component of
2763 a composition is not found, use 1 pixel dot ascent and 0 dot
2764 descent value to avoid displaying terribly tall empty boxes.
2765
5a13529b
KH
2766 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
2767
d7935eb6
KR
27682000-12-03 Ken Raeburn <raeburn@gnu.org>
2769
2770 * coding.h (code_convert_string1): Declare.
2771
2772 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
2773
2774 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name):
2775 Declare.
2776
0dd5e255
JR
27772000-12-02 Jason Rumney <jasonr@gnu.org>
2778
2779 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
2780 correctly for single byte character case.
2781 (w32_per_char_metric): Do not try to make any assumptions about
2782 the metrics of BDF fonts.
250cfece
JR
2783 (x_estimate_mode_line_height): If `mode-line' face
2784 hasn't a font, use that of the frame, as drawing glyphs
2785 does.
2786 (note_mouse_highlight): Change the cursor shape on the vertical
2787 border between windows [not enabled].
2788
2789 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
2790
2791 * w32fns.c (Fx_create_frame): Reintroduce the call to
2792 face-set-after-frame-defaults.
2793 (Vx_window_horizontal_drag_shape): New variable.
2794 (syms_of_xfns): DEFVAR_LISP it.
2795 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
2796 enabled].
0dd5e255 2797
b5d8d2ca
GM
27982000-12-02 Simon Josefsson <simon@josefsson.org>
2799
2800 * fns.c (Fmd5): Use a different logic to decide the coding system
2801 to use.
2802
2803 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
2804
fbb87147
EZ
28052000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
2806
2807 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is
2808 NULL.
2809
447e9da0
GM
28102000-12-01 Gerd Moellmann <gerd@gnu.org>
2811
7708ced0
GM
2812 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
2813 height for YNegative.
2814 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
2815 height; also see comment there.
2816
447e9da0
GM
2817 * window.c (coordinates_in_window): Handle computations for
2818 positions on the vertical bar and fringes differently for
2819 window-system frames. Consider some pixels near the vertical bar
2820 as on the bar if the frame doesn't have vertical scroll bars.
2821 Associate positions between mode or header lines with the
2822 right window, the left one.
2823
86d1db20
JR
28242000-12-01 Jason Rumney <jasonr@gnu.org>
2825
2826 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
2827
2828 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
2829 invalid frame.
2830
a1d58e5b
GM
28312000-12-01 Gerd Moellmann <gerd@gnu.org>
2832
2833 * window.c (struct saved_window): Add members orig_top and
2834 orig_height.
2835 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
2836 (save_window_save, Fset_window_configuration): Save/restore
2837 window's orig_top and orig_height.
2838
89c609af
JR
28392000-12-01 Jason Rumney <jasonr@gnu.org>
2840
4d177746 2841 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
86d1db20 2842
89c609af
JR
2843 * w32fns.c (x_set_cursor_color): Fix last change.
2844
eccc05db
GM
28452000-11-30 Gerd Moellmann <gerd@gnu.org>
2846
31b6671b
GM
2847 * xdisp.c (echo_area_display): If cursor is in the echo area, make
2848 sure that the next redisplay displays the minibuffer, so that
2849 the cursor will be replaced with what the minibuffer wants.
2850
eccc05db
GM
2851 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
2852 #ifndef instead of using #if.
2853 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
2854 USE_TOOLKIT_SCROLL_BARS is defined.
2855
162de750
JR
28562000-11-30 Jason Rumney <jasonr@gnu.org>
2857
2858 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
2859 x_display_cursor.
2860
693c4692
GM
28612000-11-30 Gerd Moellmann <gerd@gnu.org>
2862
2863 * fns.c (Fmd5): Doc fix.
2864
b5d8d2ca 28652000-11-30 Simon Josefsson <simon@josefsson.org>
edfb795e
GM
2866
2867 * fns.c (Fmd5): New function.
2868 (syms_of_fns): Defsubr md5.
2869
2870 * Makefile.in (obj): Add md5.o
2871
b02cd40b
GM
28722000-11-30 Gerd Moellmann <gerd@gnu.org>
2873
edfb795e
GM
2874 * md5.h, md5.c: New files, taken from glibc.
2875
df3aedcf
GM
2876 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
2877
b02cd40b
GM
2878 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
2879 hasn't a font, use that of the frame, as drawing glyphs
2880 does.
2881
8b5176cd
SM
28822000-11-29 Stefan Monnier <monnier@cs.yale.edu>
2883
2884 * eval.c (Frun_hooks): Allow 0 arguments.
2885
346598f1
GM
28862000-11-29 Gerd Moellmann <gerd@gnu.org>
2887
f9396e03
GM
2888 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
2889 is over the menu bar widget, say it's not on the frame.
2890
4a967a9b
GM
2891 * xfns.c (Fx_create_frame): Reintroduce the call to
2892 face-set-after-frame-defaults.
2893
346598f1
GM
2894 * eval.c (Fsignal): Reset handling_signal.
2895
222456a1
JR
28962000-11-28 Jason Rumney <jasonr@gnu.org>
2897
2898 * w32menu.c (add_menu_item): Reset menu item text when changing
2899 type to radio button.
2900
8049ddc0
GM
29012000-11-28 Gerd Moellmann <gerd@gnu.org>
2902
346598f1 2903 * xselect.c: Update copyright.
f4f4ee4d 2904
bebe4a2c
GM
2905 * window.c (coordinates_in_window): If on a mode or header line,
2906 but sufficiently close to its start, return ``on vertical
2907 border''. This gives us a way to drag windows horizontally when
2908 using toolkit scroll bars.
2909
2910 * xterm.c (note_mouse_highlight): Change the cursor shape
2911 on the vertical border between windows.
2912
2913 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
2914
2915 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
2916 (syms_of_xfns): DEFVAR_LISP it.
2917 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
2918
8d2c2642
GM
2919 * textprop.c (text_read_only): New function.
2920 (verify_interval_modification): Use it instead of signaling
2921 `text-read-only'. This makes it easier to catch this error
2922 with a breakpoint.:
2923
8049ddc0
GM
2924 * xdisp.c (forward_to_next_line_start): Check for newlines,
2925 not end of line, which includes CR.
2926
5a2bae6c
KH
29272000-11-28 Kenichi Handa <handa@etl.go.jp>
2928
2929 * coding.c (Ffind_coding_systems_region_internal): Be sure to
2930 include no-conversion.
2931
ae31f84d
JR
29322000-11-27 Jason Rumney <jasonr@gnu.org>
2933
2934 * w32fns.c (w32_load_system_font): Always mark font as double byte
2935 if codepage is unicode.
2936
67f1cf4c
GM
29372000-11-27 Gerd Moellmann <gerd@gnu.org>
2938
4a74d071
GM
2939 * xdisp.c (forward_to_next_line_start): If already on a newline,
2940 just consume it to avoid unintended skipping over invisible text
2941 below.
2942
902ae620
GM
2943 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
2944 `vertical-line', `mode-line' and `header-line' events.
2945
2946 * xdisp.c (try_window_id): Avoid starting to display in the middle
67f1cf4c
GM
2947 of a character, a TAB for instance. This is easier than to set
2948 up the iterator exactly, and it's not a frequent case, so the
2949 additional effort wouldn't really pay off.
2950
c1e279c2
AC
29512000-11-26 Andrew Choi <akochoi@i-cable.com>
2952
67f1cf4c 2953 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
c1e279c2
AC
2954 init_window_once.
2955
a609568a
JR
29562000-11-25 Jason Rumney <jasonr@gnu.org>
2957
48b21762
JR
2958 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]: Args
2959 to window_from_coordinates should be pixel coordinates.
2960
a609568a
JR
2961 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
2962 redisplay handles them properly.
2963
a658d039
MB
29642000-11-25 Miles Bader <miles@gnu.org>
2965
2966 * indent.c (compute_motion): Keep pos_byte in sync with pos.
2967
d3416cca
JR
29682000-11-24 Jason Rumney <jasonr@gnu.org>
2969
2970 * w32.c (init_environment): Set LANG environment variable based on
2971 locale settings, if not set.
2972
2973 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
2974 making tool bar smaller. When clearing the frame, also
2975 clear current matrices. Clear frame when tool bar disappears.
2976 Don't use more lines for the tool-bar than is available.
2977 (x_change_window_heights): New function.
2978
ba193890
GM
29792000-11-24 Gerd Moellmann <gerd@gnu.org>
2980
2be8f184
GM
2981 * xdisp.c (init_from_display_pos): If POS says we're already after
2982 an overlay string ending at POS, make sure to pop the iterator
2983 because it will be in front of that overlay string. When POS is
2984 ZV, we've thereby also ``processed'' overlay strings at ZV.
2985
ba193890
GM
2986 * xfaces.c (lface_from_face_name): Function comment fix.
2987
1862a24e
MB
29882000-11-24 Miles Bader <miles@gnu.org>
2989
2990 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
2991 apply `mode-line-inverse-video' -- zero means force display using
2992 the default face, non-zero means display using the specialized face.
2993 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
2994
f07fa1b8
KH
29952000-11-23 Kenichi Handa <handa@etl.go.jp>
2996
2997 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
2998 hard coded `4'.
2999
2bcdf662
EZ
30002000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
3001
3002 * coding.c (decode_coding_emacs_mule): Fix the case of
3003 CODING_EOL_LF, which used uninitialized value of c.
3004
ba8299ff
SM
30052000-11-23 Stefan Monnier <monnier@cs.yale.edu>
3006
3007 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
3008
f4117c4d
GM
30092000-11-22 Gerd Moellmann <gerd@gnu.org>
3010
03e757c1
GM
3011 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
3012 buffer object.
3013
f4117c4d
GM
3014 * frame.h (struct frame): Replace desired_tool_bar_items,
3015 current_tool_bar_items, n_desired_tool_bar_items,
cc362d76 3016 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
f4117c4d
GM
3017
3018 * frame.c (make_frame): Change initialization of tool bar
3019 items accordingly.
3020
3021 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
cc362d76 3022 Change references to members deleted from struct frame to use the
f4117c4d
GM
3023 new ones.
3024
3025 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
cc362d76 3026 references to members deleted from struct frame to use the new
f4117c4d
GM
3027 ones.
3028
3029 * dispnew.c (update_frame): Do nothing with frame's tool bar
3030 items.
3031
3032 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
3033
3034 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
cc362d76 3035 (note_tool_bar_highlight): Change references to members deleted
f4117c4d
GM
3036 from struct frame to use the new ones.
3037
f8e2f3f2
MB
30382000-11-23 Miles Bader <miles@gnu.org>
3039
3040 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
3041 the face's inverse-video attribute, rather than overriding it.
3042
60e8e0a5
GM
30432000-11-22 Gerd Moellmann <gerd@gnu.org>
3044
3045 * xfns.c (x_set_tool_bar_lines): Clear internal border when
3046 making tool bar smaller.
3047
92dd1b29
DL
30482000-11-22 Dave Love <fx@gnu.org>
3049
3050 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
3051
e672fdce
MB
30522000-11-22 Miles Bader <miles@gnu.org>
3053
3a17d6cc
MB
3054 * keyboard.c (Vminibuffer_message_timeout): New variable.
3055 (command_loop_1): Use it to determine message timeout.
3056 (syms_of_keyboard): Initialize it.
3057
60e8e0a5 3058 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
e672fdce 3059
e9655d81
KH
30602000-11-22 Kenichi Handa <handa@etl.go.jp>
3061
3062 * sysdep.c: Move the code for declaring h_errno after #include
3063 <netdb.h>.
3064
77270fac
GM
30652000-11-21 Gerd Moellmann <gerd@gnu.org>
3066
cd913aae
GM
3067 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
3068 the menu bar when the tooltip is unmapped.
3069
77270fac
GM
3070 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
3071 sole visible buffer when we're currently in the mini-buffer, and
3072 give up if so.
3073
556635d6
JR
30742000-11-21 Jason Rumney <jasonr@gnu.org>
3075
3076 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
3077 put on the clipboard.
3078 (Fw32_get_clipboard_data): Compare data on clipboard with saved
3079 copy of what Emacs last put there. If they are the same, do not
3080 use the clipboard copy to avoid losing data due to coding
3081 conversions.
3082
5b7bde64
MB
30832000-11-22 Miles Bader <miles@gnu.org>
3084
3085 * minibuf.c (Vminibuffer_prompt_properties): New variable.
3086 (syms_of_minibuf): Initialize it.
3087 (read_minibuf): Add properties from Vminibuffer_prompt_properties
3088 to prompt, don't make read-only.
3089
ff23e1dd
GM
30902000-11-21 Gerd Moellmann <gerd@gnu.org>
3091
3c64f287
GM
3092 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>: Add
3093 BEFORE/AFTER_POTENTIAL_GC.
3094
7aaf4388
GM
3095 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
3096
f5f47add 3097 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 3098
ff23e1dd
GM
3099 * term.c, cm.c: Don't try to include termcap.h; see comment there.
3100
37c35586
KH
31012000-11-21 Kenichi Handa <handa@etl.go.jp>
3102
3103 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
3104 ... #endif scope.
3105
ff9ab414
GM
31062000-11-20 Gerd Moellmann <gerd@gnu.org>
3107
c51d2b5e
GM
3108 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
3109 screen supports it.
3110
29a01b72
GM
3111 * s/gnu-linux.h: Don't use `#cpu'.
3112
09dfdf85
GM
3113 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
3114 not defined in mman.h.
3115
ff9ab414
GM
3116 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New
3117 variables.
3118 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
3119 and store an index in the XClientMessageEvent. Storing a
3120 Lisp_Object or pointer can fail on a 64 bit system, since X only
3121 transfers 32 bits.
3122 (x_scroll_bar_to_input_event): Get the window from
3123 scroll_bar_windows.
3124
81459ac9
DL
31252000-11-20 Dave Love <fx@gnu.org>
3126
3127 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
3128
56c13ae6
GM
31292000-11-20 Gerd Moellmann <gerd@gnu.org>
3130
3131 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
3132
495a6df3
KH
31332000-11-20 Kenichi Handa <handa@etl.go.jp>
3134
2bcf3714
KH
3135 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
3136 by WIDTH.
3137
495a6df3
KH
3138 * alloc.c (make_string): Fix previous change. Be sure to make
3139 unibyte string correctly.
3140
6d950f4c
GM
31412000-11-19 Gerd Moellmann <gerd@gnu.org>
3142
39b39373
GM
3143 * window.c (Fwindow_list): Change parameter list to be XEmacs
3144 compatible.
3145 (window_list_1): New function.
3146 (window_loop): Use it instead of Fwindow_list.
3147
b95b34e5
GM
3148 * sysdep.c (emacs_ospeed): New variable.
3149 (toplevel): Don't declare ospeed extern.
3150 (init_baud_rate): Use emacs_ospeed instead of ospeed.
3151
3152 * termcap.c (ospeed): Remove.
3153 (tputs) [!emacs]: Remove unused code.
3154 (tgetent): Avoid a compiler warning.
3155
e83dc917
GM
3156 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
3157 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 3158 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
3159
3160 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
3161 removed.
3162 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
3163 Take the X display as additional argument.
3164 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
3165 `Widget' is a pointer type that's not easily stored in Lisp_Object
3166 form in a portable way.
3167
6d950f4c
GM
3168 * dispnew.c (update_text_area): Fix last change.
3169
e47306e6
GM
31702000-11-18 Gerd Moellmann <gerd@gnu.org>
3171
fb3cd89b
GM
3172 * xdisp.c: Use BINDING_STACK_SIZE throughout.
3173
3174 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
3175 clear current matrices.
3176
edaa9aed
GM
3177 * buffer.c (mmap_enlarge): Don't print a message on stderr
3178 if mapping new memory at the end of the existing region fails.
3179
e47306e6
GM
3180 * dispnew.c (update_text_area): Don't skip over equal glyphs
3181 when the last current glyph overlaps the glyph to its right.
3182
509633e3
MB
31832000-11-18 Miles Bader <miles@gnu.org>
3184
3185 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
3186 lines that *end* with "..." too (that's the most common case!).
3187
d392e9c5
GM
31882000-11-18 Gerd Moellmann <gerd@gnu.org>
3189
67988445
GM
3190 * xdisp.c (resize_mini_window): Temporarily change to the
3191 mini-window's buffer if necessary.
1bfdbe43 3192
d392e9c5
GM
3193 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
3194 the tooltip obscures less text under it.
3195
31962000-11-17 Gerd Moellmann <gerd@gnu.org>
3197
3198 * puresize.h (BASE_PURESIZE): Increase to 700000.
3199
92bb977f
JR
32002000-11-18 Jason Rumney <jasonr@gnu.org>
3201
3202 * w32term.c (w32_draw_bitmap): Use face to set colors.
3203
26fbf20b
DL
32042000-11-17 Dave Love <fx@gnu.org>
3205
3206 * lread.c (Fload): Fix #ifdef for pcc.
3207
100b593b
GM
32082000-11-17 Gerd Moellmann <gerd@gnu.org>
3209
3210 * xdisp.c (pos_visible_p): Compute the default character height
3211 differently.
3212
a288d0d1
GM
32132000-11-16 Gerd Moellmann <gerd@gnu.org>
3214
cac94de6
GM
3215 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
3216 knowing the line's height; use the default font's height in that
3217 case.
3218
a288d0d1
GM
3219 * xfaces.c (weight_table): Add `demi' with the same meaning as
3220 `demibold'.
3221
981fb6f6
KH
32222000-11-16 Kenichi Handa <handa@etl.go.jp>
3223
2cca872d 3224 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
3225 (clear_glyph_row): Delete local static variable null_row.
3226
e5fa381b
JR
32272000-11-15 Jason Rumney <jasonr@gnu.org>
3228
3229 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
3230 (w32_alloc_lighter_color): Use new brightness calculations from
3231 xterm.c. Scale delta to be in the range expected by W32.
3232 (w32_draw_relief_rect): Use frame relief colors.
3233
8e42f043
GM
32342000-11-15 Gerd Moellmann <gerd@gnu.org>
3235
6d133d1f
GM
3236 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
3237 (Qinhibit_default_face_x_resources): New variable.
3238 (syms_of_frame): Initialize it.
3239 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
3240
3241 * xdisp.c (pos_visible_p): Improve function comment.
3242
3243 * lisp.h (BINDING_STACK_SIZE): New macro.
3244
8e42f043
GM
3245 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
3246 reading the directory if readdir returns null and errno is EAGAIN
3247 or EINTR.
3248
e8c87124
SM
32492000-11-14 Stefan Monnier <monnier@cs.yale.edu>
3250
3251 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
3252 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
3253 Set amount_to_scroll to max of dx and scroll_step so that
3254 scroll-conservatively doesn't defeat scroll-step>1.
3255 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
3256 scroll-conservatively for line-at-a-time scrolling.
3257
5f0c971d
GM
32582000-11-14 Gerd Moellmann <gerd@gnu.org>
3259
3260 * window.c (Fpos_visible_in_window_p): Call pos_visible with
3261 extra argument.
3262
3263 * xdisp.c (current_mode_line_height, current_header_line_height):
3264 New variables.
3265 (init_xdisp): Initialize them.
3266 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
3267 and use exact mode line heights if it is set.
3268
3269 * lisp.h (pos_visible_p): Change prototype.
3270
3271 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
3272 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
3273 and current_header_line_height first.
3274 (current_mode_line_height, current_header_line_height): Declare
3275 extern.
3276
d7361edf
MB
32772000-11-14 Miles Bader <miles@lsi.nec.co.jp>
3278
3279 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
3280 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
3281 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
3282
ee5e440a
MB
32832000-11-14 Miles Bader <miles@gnu.org>
3284
3285 * xterm.c (x_alloc_lighter_color): Include an additive component
3286 too for dark colors, because FACTOR isn't enough.
3287 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
3288 New macros.
3289
5ca020fc
GM
32902000-11-13 Gerd Moellmann <gerd@gnu.org>
3291
3292 * keyboard.c (show_help_echo): Call message3_nolog with number of
3293 bytes in the help string as 2nd parameter, instead of the number
3294 of characters.
3295
9d348294
MB
32962000-11-13 Miles Bader <miles@gnu.org>
3297
3298 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
3299 (Fload): Use new openp return protocol.
3300 Don't try to use Vload_source_file_function to load .elc files.
3301 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
3302 openp return protocol.
3303 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
3304
1729bb9a
KH
33052000-11-11 Kenichi Handa <handa@etl.go.jp>
3306
4e677396
KH
3307 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
3308
3309 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
3310 Defined these macros.
3311 (NLIST_STRUCT): Avoid re-defining it.
3312
1729bb9a
KH
3313 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
3314 -I/usr/contrib/X11R6/include.
3315 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
3316
a82fe213
JR
33172000-11-10 Jason Rumney <jasonr@gnu.org>
3318
3319 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
3320
3321 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
3322 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
3323
3324 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
3325 (Qw32_charset_vietnamese): New symbol.
3326 (xlfd_charset_of_font): New function.
3327 (w32_load_system_font): Use it.
3328 (x_to_w32_charset): Use Fassoc to find charset info. Special case
3329 when Vw32_charset_info_alist is nil to ensure default face always
3330 has font. Use Fcar and Fcdr for safety.
3331 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
3332 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
3333 pseudo-codepages for special cases.
3334 (w32_to_x_font): New parameter to allow charset portion to be
3335 specified where there is many to one mapping. Callers changed.
3336 (w32_list_fonts): Avoid listing fonts that won't display.
3337
52d89894
GM
33382000-11-10 Gerd Moellmann <gerd@gnu.org>
3339
3340 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
3341 (font_list_1): Renamed from font_list.
3342 (font_list): New function, trying alternative registries from
3343 Vface_alternative_font_registry_alist.
3344 (Finternal_set_alternative_font_registry_alist): New function.
3345 (syms_of_xfaces): Initialize and Staticpro
3346 Vface_alternative_font_registry_alist. Defsubr
3347 Finternal_set_alternative_font_registry_alist.
3348
651cd3da
KR
33492000-11-09 Ken Raeburn <raeburn@gnu.org>
3350
3351 * lisp.h (Flooking_at): Declare.
3352
388ac098
GM
33532000-11-09 Gerd Moellmann <gerd@gnu.org>
3354
778fbc46
GM
3355 * dired.c (directory_files_internal): Fix a braino.
3356
388ac098
GM
3357 * dired.c (directory_files_internal): Add missing GCPRO's.
3358 Some cleanup.
3359
ecaedde1
GM
33602000-11-08 Gerd Moellmann <gerd@gnu.org>
3361
f7eb32aa
GM
3362 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
3363 (resize_mini_window): Return quickly if Vresize_mini_window is
3364 nil. Don't return if Vmax_mini_window_height is nil.
3365
3366 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
3367 (syms_of_xdisp): Initialize them.
3368 (resize_mini_window): Act according to the setting of
3369 Vresize_mini_window.
3370 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
3371
ecaedde1
GM
3372 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
3373 scroll bar widget after configuring it, so that it will appear at
3374 the right position from the start.
3375 (XTredeem_scroll_bar): Cleaned up.
3376
3747ef2c
KH
33772000-11-08 Kenichi Handa <handa@etl.go.jp>
3378
3379 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 3380 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
3381 division by two.
3382
3383 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
3384
03391420
DL
33852000-11-07 Dave Love <fx@gnu.org>
3386
7758f1c1 3387 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
3388
3389 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
3390
b5de343d
GM
33912000-11-07 Gerd Moellmann <gerd@gnu.org>
3392
acad3c0b
GM
3393 * window.c (Fset_window_configuration): Don't try to preserve
3394 point in the current buffer, if that buffer is displayed in more
3395 than one window.
3396
b5de343d
GM
3397 * xfaces.c (lookup_named_face): If default face isn't realized,
3398 try to realize it. Return -1 if not successful.
3399 (Fx_list_fonts): Handle case that face cannot be determined.
3400 (Fface_font): Likewise.
3401
cdb1fe49
GM
34022000-11-06 Gerd Moellmann <gerd@gnu.org>
3403
3404 * window.c (displayed_window_lines): Detect partially
3405 visible lines at the bottom correctly.
3406
d3a67486
SM
34072000-11-06 Stefan Monnier <monnier@cs.yale.edu>
3408
3409 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
3410 when ensuring we don't do visit in indirect buffer.
3411
ff8dd5d5
KH
34122000-11-06 Kenichi Handa <handa@etl.go.jp>
3413
3414 * composite.h (compose_chars_in_text): Add prototype.
3415
3416 * composite.c (Vcomposition_function_table): New variable.
3417 (Qcomposition_function_table): New variable.
3418 (run_composition_function): Call
3419 Vcompose_chars_after_function with three arguments.
3420 (compose_chars_in_text): New function.
3421 (syms_of_composite): Modified the doc-string of
3422 Vcompose_chars_after_function. Declare composition-function-table
3423 as a lisp variable, and initialize it.
3424
3425 * xfns.c (x_encode_text): Suppress producing escape sequences for
3426 composition.
3427
3428 * xselect.c: Include composite.h.
3429 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
3430
d1145f85
AI
34312000-11-05 Andrew Innes <andrewi@gnu.org>
3432
3433 * w32term.c (x_produce_glyphs): Fix typo in enum name.
3434
3435 * sysdep.c (read_input_waiting): Remove extraneous argument to
3436 read_socket_hook.
3437
3438 * w32fns.c (Fx_server_version): Include w32_build_number in the
3439 return list.
3440
3441 * w32heap.c (w32_build_number): New variable.
3442 (cache_system_info): Set it.
3443
3444 * w32heap.h (w32_build_number): Add extern.
3445
3446 * emacs.c (syms_of_emacs): Update docstring for
3447 system-configuration, to reflect the actual usage on MS-Windows.
3448
e85ee976
GM
34492000-10-31 Gerd Moellmann <gerd@gnu.org>
3450
26dcb81b
GM
3451 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
3452 process idle timers while waiting for another event.
3453
0a894bad
GM
3454 * dispnew.c (update_frame_line): Handle case where spaces in
3455 the default face are colored.
3456
e85ee976
GM
3457 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
3458 window height hasn't changed.
3459
01b220b6
JR
34602000-10-31 Jason Rumney <jasonr@gnu.org>
3461
3462 * w32term.c (x_produce_glyphs): Handle composite characters.
3463 (x_draw_glyph_string_foreground)
3464 (x_draw_composite_glyph_string_foreground): Restore old font.
3465
4e6b7204
MB
34662000-10-31 Miles Bader <miles@lsi.nec.co.jp>
3467
3468 * minibuf.c (read_minibuf): Reset the undo history just before
3469 starting the recursive-edit.
3470
d4358b37
GM
34712000-10-30 Gerd Moellmann <gerd@gnu.org>
3472
563f68f1
GM
3473 * xfaces.c (menu_face_change_count): New variable.
3474 (Finternal_set_lisp_face_attribute): Increment it for changes
3475 of the `menu' face.
3476 (realize_basic_faces): Reflect changes in the `menu' faces
3477 in menu bars.
3478
82e274d1
GM
3479 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
3480 dy obtained from the iterator's y-position after moving from
3481 scroll_margin_pos to PT; see comment there.
3482
0dbf9fd2
GM
3483 * xdisp.c (safe_eval_handler): Call add_to_log.
3484
906b3b14
GM
3485 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
3486 is not a symbol or string.
3487
d4358b37
GM
3488 * xdisp.c (echo_area_display): Don't perform a display update from
3489 inside redisplay. The update will happen anyway at the end of
3490 redisplay, and it can confuse redisplay (GC messages while
3491 redisplaying, for instance.)
3492
70c825df
SM
34932000-10-30 Stefan Monnier <monnier@cs.yale.edu>
3494
cf9b4b0b
SM
3495 * xrdb.c (x_load_resources): Use the class name in the defaults.
3496
70c825df
SM
3497 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
3498 (regex_compile): Catch bogus \(\1\).
3499
a1d34b1e
GM
35002000-10-30 Gerd Moellmann <gerd@gnu.org>
3501
cae71efe
GM
3502 * xterm.c (x_alloc_nearest_color): Fix last change to compare
3503 RGB values.
3504
35efe0a1
GM
3505 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
3506 we have a color cache, check that the cached color equals the
3507 allocated color. If not, clear the color cache.
3508
1d3baf74
GM
3509 * window.c (displayed_window_lines): Change buffers if necessary.
3510 Fix computation of displayed lines.
3511
a1d34b1e
GM
3512 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
3513 update_menu_bindings to DEFVAR_BOOL.
3514
70737ea9
KH
35152000-10-30 Kenichi Handa <handa@etl.go.jp>
3516
70c825df 3517 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 3518
fa0cb51d
KH
3519 * puresize.h (BASE_PURESIZE): Increase to 680000.
3520
70737ea9
KH
3521 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
3522
0e4c08e8
JR
35232000-10-29 Jason Rumney <jasonr@gnu.org>
3524
3525 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
3526
3527 * w32term.c (w32_bdf_per_char_metric): Negate descent.
3528 (w32_cache_char_metrics): Handle possibility that 'x' does not
3529 exist in a BDF font.
3530 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
3531
3532 * w32bdf.h (bdffont): Add nchars.
3533
3534 * w32bdf.c (set_bdf_font_info): Set it.
3535 (w32_BDF_TextOut): Swap byte order of double byte characters.
3536 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
3537
45b84006
EZ
35382000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
3539
3540 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
3541 don't override the colors in frame's param_alist, unless they are
3542 unspecified.
3543
3544 * term.c (reassert_line_highlight): If inverse_video is non-zero,
3545 reverse the effect of the highlight flag.
3546
caf9deee
KR
35472000-10-27 Ken Raeburn <raeburn@gnu.org>
3548
3549 * window.h (Fwindow_live_p): Declare.
3550
ae0b9b46
KR
3551 * undo.c (record_delete): Check that last_undo_buffer is really a
3552 buffer before applying XBUFFER to it.
3553
3554 * keymap.c (where_is_internal): Pass lisp object, not integer, to
3555 Faref.
3556
02067692
SM
35572000-10-27 Stefan Monnier <monnier@cs.yale.edu>
3558
3559 * lisp.h (KEYMAPP): New macro.
3560 (get_keymap): Remove.
3561 (get_keymap_1): Rename get_keymap.
3562
3563 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
3564
3565 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
3566
3567 * xmenu.c (single_submenu): Use KEYMAPP.
3568 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
3569 Use KEYMAPP rather than Fkeymapp.
3570
3571 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
3572
3573 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
3574 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
3575 Use KEYMAPP rather than Fkeymapp.
3576 (single_submenu): Use KEYMAPP.
3577 (w32_menu_show, w32_dialog_show): Use TRUE.
3578
3579 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
3580
3581 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
3582 (Fkeymapp): Use KEYMAPP.
3583 (get_keymap): Rename from get_keymap_1. Remove old def.
3584 Return t when autoload=0 and error=0 and the keymap needs autoloading.
3585 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
3586 (Fminor_mode_key_binding): Don't raise an error if the binding
3587 is not a keymap.
3588 (Fuse_global_map, Fuse_local_map): Allow autoloading.
3589 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
3590
3591 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
3592 Allow Vspecial_event_map to be autoloaded.
3593 (menu_bar_items): Fetch the keymap rather than using keymapp.
3594 (menu_bar_one_keymap): No need to follow func-indirect any more.
3595 (parse_menu_item): get_keymap_1 -> get_keymap.
3596 (tool_bar_items): Fetch the keymap rather than using keymapp.
3597 (read_key_sequence): Use KEYMAPP.
3598
3599 * intervals.c (get_local_map): Use get_keymap rather than following
3600 function-indirections explicitly.
3601
3602 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
3603
f9d80af3
JR
36042000-10-27 Jason Rumney <jasonr@gnu.org>
3605
3606 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
3607 point, as Windows has oversized fonts.
3608
3609 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
3610
a3ba27da
GM
36112000-10-27 Gerd Moellmann <gerd@gnu.org>
3612
3613 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
3614 (freehook, reallochook): Handle null pointer arguments.
3615 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
3616
aa3b80cc
SM
36172000-10-27 Stefan Monnier <monnier@cs.yale.edu>
3618
3619 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
3620 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
3621 Giving in to popular pressure to shut up the compiler with casts.
3622
e24e84cc
GM
36232000-10-27 Gerd Moellmann <gerd@gnu.org>
3624
3625 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
3626 signed value, and use a default value computed from the font's
3627 maximum descent.
3628
05ea7ef2
MB
36292000-10-27 Miles Bader <miles@lsi.nec.co.jp>
3630
3631 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
3632 that specify a negative underline position can still use underlines.
3633
3634 * window.c (Fpos_visible_in_window_p): Make POS default to
3635 WINDOW's point, not the current buffer's point.
3636
0b95284b
DL
36372000-10-26 Dave Love <fx@gnu.org>
3638
3639 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
3640 when it's necessary.
3641
6c5b90af
GM
36422000-10-26 Gerd Moellmann <gerd@gnu.org>
3643
8b6d9dc9
GM
3644 * window.c (size_window): Compute size difference from sum of old
3645 child window sizes instead of from parent's size.
3646
6bc92b2e
GM
3647 * xdisp.c (pos_visible_p): Change current buffer if necessary.
3648 Handle obscured lines at the top of the window.
3649
3650 * frame.c (Fdelete_frame): Doc fix. Move running the hook
3651 down after the last error condition check.
3652
6c5b90af
GM
3653 * frame.c (Fdelete_frame): Run delete-frame-hook.
3654
42f92d4d
KH
36552000-10-26 Kenichi Handa <handa@etl.go.jp>
3656
3657 * coding.c (decode_coding): Fix previous change (check also
3658 CODING_MODE_LAST_BLOCK).
3659
d97151cb
SM
36602000-10-25 Stefan Monnier <monnier@cs.yale.edu>
3661
e7efc503
SM
3662 * regex.c: More `unsigned char' -> `re_char' changes.
3663 Also change several `int' into `re_wchar_t'.
3664 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
3665 (PUSH_FAILURE_POINTER): Don't cast any more.
3666 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
3667 We want GCC to complain, since this piece of code makes
3668 re_match non-reentrant, which *should* be fixed.
3669 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
3670 (EXTEND_BUFFER): Use RETALLOC.
3671 (SET_LIST_BIT): Don't cast.
3672 (re_wchar_t): New type.
3673 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
3674 that those two functions will always properly return.
3675 (IMMEDIATE_QUIT_CHECK): Cast to void.
3676 (analyse_first): Use recursion rather than an explicit stack.
3677 (re_compile_fastmap): Can't fail anymore.
3678 (re_search_2): Don't check re_compile_fastmap for failure.
3679 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
3680 Now also sets the new value (passed in a new argument).
3681 (re_match_2_internal): Use it.
3682 Also, use a new var `reg' of type size_t when looping through regs
3683 rather than reuse the inappropriate `mcnt'.
3684
d97151cb
SM
3685 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
3686 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
3687 (where_is_internal): Renamed from Fwhere_is_internal.
3688 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
3689 (Fwhere_is_internal): New function wrapping where_is_internal.
3690 (where_is_internal_1): Handle the case where we're filling the cache.
3691 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
3692
d5789b65
MB
36932000-10-25 Miles Bader <miles@gnu.org>
3694
3695 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
3696
4ecda532
GM
36972000-10-25 Gerd Moellmann <gerd@gnu.org>
3698
3699 * window.c (pos_fully_visible_p): Removed.
3700 (Fpos_visible_in_window_p): Use pos_visible_p to determine
3701 if position is visible and/or fully visible.
3702
3703 * lisp.h (pos_visible_p): Add prototype.
3704
3705 * xdisp.c (pos_visible_p): New function.
3706
68c3a137
KH
37072000-10-25 Kenichi Handa <handa@etl.go.jp>
3708
3709 * process.c (send_process): If OBJECT is t, it means that the data
3710 is from C string, but we should encode it. Before calling
3711 setup_raw_text_coding_system, be sure to flush out data by the
3712 previous coding system.
3713
7ae1c032
MB
37142000-10-25 Miles Bader <miles@lsi.nec.co.jp>
3715
ff4dcd4b
MB
3716 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
3717 assignment of startpos to prev when startpos == pos.
3718
7ae1c032
MB
3719 * editfns.c (find_field): Set the field stickiness correctly from
3720 overlay fields. Use renamed `text_property_stickiness'.
3721 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 3722 Only check text properties, not overlays.
7ae1c032
MB
3723 * textprop.c (get_char_property_and_overlay): New function.
3724 (Fget_char_property): Use it.
3725 * intervals.h (get_char_property_and_overlay): Add declaration.
3726
49801145
SM
37272000-10-25 Stefan Monnier <monnier@cs.yale.edu>
3728
3729 * keymap.c: Use AREF, ASET and ASIZE macros.
3730 (Fmake_sparse_keymap): Docstring fix.
3731 (synkey): Remove.
3732 (shadow_lookup): Move up.
3733 Handle the case where lookup-key returns an integer.
3734 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
3735 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
3736 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
3737 Simplify/rewrite the keymap-finding code.
3738 Add check for command shadowing, using shadow_lookup.
3739
39e776cd
SM
37402000-10-24 Stefan Monnier <monnier@cs.yale.edu>
3741
3742 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
3743 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
3744 a symbol.
3745
2488aba5
AI
37462000-10-24 Andrew Innes <andrewi@gnu.org>
3747
3748 * dired.c (directory_files_internal_unwind): New function.
3749 (directory_files_internal): Use it to ensure closedir is called
3750 even if expand-file-name or file-attributes throw, eg. because of
3751 a user interrupt. Also enable immediate_quit while calling
3752 re_search, so that matching can be interrupted as well.
3753
b94fdf61
AI
37542000-10-24 Andrew Innes <andrewi@gnu.org>
3755
3756 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
3757 NT-Emacs only.
3758 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
3759 so that re_search functions only quit when callers expect them to.
3760
37612000-10-24 Kenichi Handa <handa@etl.go.jp>
3762
3763 * regex.c (regex_compile): Change the way of handling a range from
3764 a char less than 256 to a char not less than 256.
3765
1946f901
GM
37662000-10-24 Gerd Moellmann <gerd@gnu.org>
3767
7ae2f10f
GM
3768 * window.c (size_window): Prevent setting window's width or
3769 height to a negative value (esp. with XSETFASTINT).
3770
5dcab13e
GM
3771 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
3772 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
3773 (protect_malloc_state) [GC_MALLOC_CHECK &&
3774 GC_PROTECT_MALLOC_STATE]: New function.
3775 (PROTECT_MALLOC_STATE): New macro.
3776 (__malloc_initialize, morecore, _malloc_internal)
3777 (_free_internal) _realloc_internal): Use it to make _heapinfo
3778 read-only outside of gmalloc.
3779
63e1b552
GM
3780 * keymap.c: Update copyright.
3781
1946f901
GM
3782 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
3783 a symbol.
3784
4fa09beb
GM
37852000-10-24 Colin Walters <walters@cis.ohio-state.edu>
3786
3787 * filelock.c (unlock_all_files): Use unlock_file to expand each
3788 buffer's file_truename before trying remove its lock file.
3789
23afac01
EZ
37902000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
3791
3792 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
3793 or CRLF, decode EOLs.
3794
04448b95
KH
37952000-10-24 Kenichi Handa <handa@etl.go.jp>
3796
3797 * window.c (Fdisplay_buffer): Fix doc.
3798
3090a5a5
JR
37992000-10-23 Jason Rumney <jasonr@gnu.org>
3800
3801 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
3802 ASCII font of default fontset on Windows.
3803
3804 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
3805 xterm.c comment below).
3806
3807 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
3808
a83fee2c
GM
38092000-10-23 Gerd Moellmann <gerd@gnu.org>
3810
3811 * xterm.c (x_connection_closed): Reset handling_signal.
3812
3813 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing
3814 null.
3815
6ffdb539
MB
38162000-10-23 Miles Bader <miles@gnu.org>
3817
3818 * window.c (window_scroll_pixel_based, window_scroll_line_based):
3819 Pass nil for FULLY argument to Fpos_visible_in_window_p to
3820 maintain old behavior.
3821 * minibuf.c (Fminibuffer_complete): Likewise.
3822
7f1c969b
MB
38232000-10-23 Miles Bader <miles@lsi.nec.co.jp>
3824
3825 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
3826 that when a font can't be exactly centered, it errs up rather than
3827 down.
3828
23afac01 38292000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd
SZ
3830
3831 * fns.c (Fbase64_decode_string): The decoded result should be
3832 unibyte.
3833
1a578e9b
AC
38342000-10-23 Andrew Choi <akochoi@i-cable.com>
3835
3836 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
3837
3838 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 3839 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
3840
3841 * emacs.c (main) [macintosh]: Call syms_of_textprop,
3842 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
3843 syms_of_search, x_term_init, and init_keyboard before calling
3844 init_window_once. Also, call syms_of_xmenu.
3845
3846 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
3847 default fontset to Monaco.
3848
3849 * frame.c [macintosh]: Include macterm.h. Remove declarations of
3850 NewMacWindow and DisposeMacWindow.
3851 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
3852 instead of calling NewMacWindow and setting fields of
3853 f->output_data.mac directly. Call init_frame_faces.
3854 (Fdelete_frame) [macintosh]: Remove unused code.
3855 (Fmodify_frame_parameters) [macintosh]: Call
3856 x_set_frame_parameters instead of mac_set_frame_parameters.
3857
3858 * frame.h [macintosh]: Define menu_bar_lines field in struct
3859 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
3860
3861 * keyboard.c [macintosh]: Include macterm.h.
3862 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
3863 and menu_bar_activate_event type events as for X and NT.
3864 (make_lispy_event) [macintosh]: Construct lisp events of type
3865 MENU_BAR_EVENT as for X and NT.
3866
3867 * sysdep.c [macintosh]: Remove declaration for sys_signal.
3868 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
3869 (sys_subshell) [macintosh]: Remove definition entirely.
3870 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
3871 Vwindow_system_version here. Remove initialization of
3872 Vx_bitmap_file_path.
3873 (read_input_waiting): Correct the number of parameters passed to
3874 read_socket_hook.
3875 Move all Macintosh functions to mac/mac.c.
3876
3877 * term.c [macintosh]: Include macterm.h.
3878
3879 * window.c [macintosh]: Include macterm.h.
3880
3881 * xdisp.c [macintosh]: Include macterm.h. Declare
3882 set_frame_menubar and pending_menu_activation.
3883 (echo_area_display) [macintosh]: Do not return if terminal frame
3884 is the selected frame.
3885 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
3886 Allow only the selected frame to set menu bar.
3887 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
3888 calling FRAME_EXTERNAL_MENU_BAR (f).
3889 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
3890
3891 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
3892 and check_x. Declare XCreateGC. Define x_create_gc and
3893 x_free_gc. Initialize font_sort_order.
3894 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
3895 but call x_list_fonts instead of w32_list_fonts.
3896 (Finternal_face_x_get_resource) [macintosh]: Do not call
3897 display_x_get_resource.
3898 (prepare_face_for_display) [macintosh]: Set xgcv.font.
3899 (realize_x_face) [macintosh]: Load the font if it is specified in
3900 ATTRS.
3901 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed
3902 to Qt.
3903
1ffbabe3
SM
39042000-10-22 Stefan Monnier <monnier@cs.yale.edu>
3905
3906 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
3907 is nil: since we go to the end of submap anyway, we'd end up
3908 setting nil to nil.
3909 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
3910 doesn't obey autoload.
3911
bed43f1d
EZ
39122000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
3913
1ffbabe3 3914 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 3915
ea4233a7
JR
39162000-10-21 Jason Rumney <jasonr@gnu.org>
3917
3918 * w32term.c (w32_cache_char_metrics): Double check that font is
3919 really fixed pitch before trusting tmPitchAndFamily.
3920
f3d3c491
AI
39212000-10-21 Andrew Innes <andrewi@gnu.org>
3922
3923 * w32gui.h (w32_char_font_type): Move enum from w32term.c
3924
3925 * w32term.h: Extern decl for w32_cache_char_metrics.
3926
3927 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
3928
3929 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
3930 (w32_unload_font): Free per_char array if present.
3931
3932 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
3933 cached information in emulated XFontStruct to handle common cases
3934 quickly. Do not allocate XCharStruct for return.
3935 (w32_native_per_char_metric): New function.
3936 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
3937 allocating one.
3938 (x_produce_glyphs): Don't get an HDC. Change calls to
3939 w32_per_char_metric to match arg change above. Remove calls to
3940 free results.
3941 (w32_get_glyph_overhangs): Ditto.
3942 (w32_cache_char_metrics): New function.
3943
3944 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
3945 ($(BLD)/casefiddle.$(O)): Remove compile command.
3946 ($(BLD)/gmalloc.$(O)): Remove compile command.
3947 ($(BLD)/dispnew.obj):
3948 ($(BLD)/keyboard.obj):
3949 ($(BLD)/w32inevt.obj):
3950 ($(BLD)/w32bdf.obj):
3951 ($(BLD)/alloc.obj):
3952 ($(BLD)/buffer.obj):
3953 ($(BLD)/editfns.obj):
3954 ($(BLD)/emacs.obj):
3955 ($(BLD)/fileio.obj):
3956 ($(BLD)/fns.obj):
3957 ($(BLD)/indent.obj):
3958 ($(BLD)/insdel.obj):
3959 ($(BLD)/intervals.obj):
3960 ($(BLD)/minibuf.obj):
3961 ($(BLD)/print.obj):
3962 ($(BLD)/scroll.obj):
3963 ($(BLD)/sysdep.obj):
3964 ($(BLD)/textprop.obj):
3965 ($(BLD)/widget.obj):
3966 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
3967 ($(BLD)/term.obj): Add dependency on dispextern.h.
3968
3969 * makefile.nt ($(BLD)\dispnew.obj):
3970 ($(BLD)\keyboard.obj):
3971 ($(BLD)\w32inevt.obj):
3972 ($(BLD)\w32bdf.obj):
3973 ($(BLD)\alloc.obj):
3974 ($(BLD)\buffer.obj):
3975 ($(BLD)\editfns.obj):
3976 ($(BLD)\emacs.obj):
3977 ($(BLD)\fileio.obj):
3978 ($(BLD)\fns.obj):
3979 ($(BLD)\indent.obj):
3980 ($(BLD)\insdel.obj):
3981 ($(BLD)\intervals.obj):
3982 ($(BLD)\minibuf.obj):
3983 ($(BLD)\print.obj):
3984 ($(BLD)\scroll.obj):
3985 ($(BLD)\sysdep.obj):
3986 ($(BLD)\textprop.obj):
3987 ($(BLD)\widget.obj):
3988 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
3989 ($(BLD)\term.obj): Add dependency on dispextern.h
3990
18ad4821
EZ
39912000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
3992
3993 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
3994 with an additional argument of Qt.
3995
de54681a
MB
39962000-10-21 Miles Bader <miles@gnu.org>
3997
3998 * window.c (pos_fully_visible_in_window_p): New function.
3999 (Fpos_visible_in_window_p): Add FULLY argument.
4000 Use pos_fully_visible_in_window_p.
4001 (window_scroll_pixel_based, window_scroll_line_based): Update
4002 calls to Fpos_visible_in_window_p.
4003 * lisp.h (Fpos_visible_in_window_p): Update prototype
4004
13c844fb
GM
40052000-10-20 Gerd Moellmann <gerd@gnu.org>
4006
4007 * alloc.c (toplevel): Conditionalize compilation of mem_*
4008 functions differently.
4009
d9506268
JR
40102000-10-20 Jason Rumney <jasonr@gnu.org>
4011
4012 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
4013 mem_init where it used to be. mem_z etc not defined otherwise.
4014
8094989b
GM
40152000-10-20 Gerd Moellmann <gerd@gnu.org>
4016
4017 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
4018 GC_MALLOC_CHECK.
4019 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
4020 structure definition and related variabled to the top of the file.
4021 Include this code when GC_MALLOC_CHECK is defined.
4022 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
4023 register/unregister allocated region.
4024 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
4025 which isn't allocated.
4026 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
4027 something which is already in use.
4028 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
4029 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
4030 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
4031 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
4032
4033 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
4034 _malloc_internal instead of malloc.
4035 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
4036 of free.
4037
ea456eb4
AI
40382000-10-20 Andrew Innes <andrewi@gnu.org>
4039
4040 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
4041 Windows.
4042 (my_strftime) <macro>: Don't use macro arg list when redefining as
4043 _strftime_copytm.
4044 (my_strftime) <function>: Supply 0 as ut argument.
4045
e64c3a75
JR
40462000-10-19 Jason Rumney <jasonr@altavista.net>
4047
4048 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
4049 including dispextern.h, as it stops faces from working.
4050
4051 * w32fns.c (Fx_create_frame): Don't bother calling
4052 face-set-after-frame-default since the caller does it for us
4053 anyway. Clean up calls to x_get_arg to be consistent with X.
4054
4055 * w32term.c (x_produce_glyphs): Handle
4056 unibyte_display_via_language_environment correctly.
4057 (w32_draw_box_rect): Fix the calculation of width and height.
4058
4059 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
4060 as it has stopped working.
4061 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
4062 menu-bar.
4063
17401c97
GM
40642000-10-19 Gerd Moellmann <gerd@gnu.org>
4065
4066 * eval.c (skip_debugger): Prevent a compiler warning.
4067 (Fcondition_case): Likewise.
4068 (Fbacktrace_frame): Use a null interactive spec.
4069
773272d8
KH
40702000-10-19 Kenichi Handa <handa@etl.go.jp>
4071
4072 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
4073
a42943e9
GM
40742000-10-18 Gerd Moellmann <gerd@gnu.org>
4075
e50517d9
GM
4076 * strftime.c: Sync with glibc, file version 1.78.
4077 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
4078 should no longer be used according to ISO 8601.
4079
9035a35a
GM
4080 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
4081 no map for meta_prefix_char, don't try to use it as a keymap.
4082 Instead, if T_OK is non-zero, look up a default binding, if any,
4083 otherwise, if T_OK is zero, return nil.
4084
a42943e9
GM
4085 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
4086 (x_to_xcolors, png_load): Use x_query_color.
4087
4088 * xterm.c (x_color_cells, x_query_colors, x_query_color): New
4089 functions.
4090 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
4091 which can be slow.
4092 (x_copy_color, x_alloc_lighter_color): Likewise.
4093
4094 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
4095 (x_query_color, x_query_colors): Add prototype.
4096
4097 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
4098 check_string_bytes only if not noninteractive, increase count to 50.
4099
00de2987
MB
41002000-10-18 Miles Bader <miles@lsi.nec.co.jp>
4101
4102 * insdel.c (adjust_markers_for_delete): Handle before-insertion
4103 markers correctly.
4104
54918e2b
GM
41052000-10-17 Gerd Moellmann <gerd@gnu.org>
4106
1f0b3fd2
GM
4107 * alloc.c (pure_bytes_used): Renamed from pureptr.
4108 (ALIGN): New macro.
4109 (pure_alloc): New function.
4110 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
4111 Use it.
4112 (Fpurecopy): Use PURE_POINTER_P.
4113
68c5d1db
GM
4114 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
4115 PT has moved backward.
4116
9a038881
GM
4117 * xdisp.c (cursor_row_p): Take continued lines into account.
4118
361b097f
GM
4119 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
4120 string's size_byte.
4121 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
4122 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
4123 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
4124 string allocated.
4125
54918e2b
GM
4126 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
4127 of selective display off while searching for the next line start.
4128
03ed0806
KH
41292000-10-17 Kenichi Handa <handa@etl.go.jp>
4130
4131 * Makefile.in (term.o): Depend on dispextern.h.
4132
7e05cdaf
SM
41332000-10-16 Stefan Monnier <monnier@cs.yale.edu>
4134
4135 * keymap.c (keymap_memberp): Ensure that nil is not a member.
4136
a6801fd1
GM
41372000-10-16 Gerd Moellmann <gerd@gnu.org>
4138
483de32b
GM
4139 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
4140 the iterator at the beginning, so that they can be set later on,
4141 for instance in reseat_at_next_visible_line_start, without being
4142 overwritten.
4143
a6801fd1
GM
4144 * xfns.c (pbm_format): Add :foreground and :background keywords.
4145 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
483de32b 4146 (xbm_load): Recognize foreground and background color
a6801fd1
GM
4147 specifications.
4148
dbf1fcc1
EZ
41492000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
4150
4151 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
4152
4153 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern
4154 declaration.
4155
4156 * msdos.c (IT_set_face): Compare highlighted face with the default
4157 face, and invert colors if these faces' colors are identical.
4158 (Fmsdos_remember_default_colors): Don't swap foreground and
4159 background colors in initial_colors[].
4160 (IT_set_frame_parameters): Don't swap frame's foreground and
4161 background pixels. If ALIST includes "(reverse . t)", swap
4162 foreground-color and background-color properties in frame's
4163 param_alist. If the original frame's param_alist doesn't specify
4164 the colors, store unspecified-fg and unspecified-bg, reversed if
4165 required.
4166
4167 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
4168 the colors are unspecified and reversed, reverse fore- and back-
4169 ground in the returned value.
4170 (Fframe_parameter): Ditto.
4171
b41fe2c3
GM
41722000-10-16 Gerd Moellmann <gerd@gnu.org>
4173
3a6b59d9
GM
4174 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
4175 get_last_unchanged_at_beg_row.
4176 (find_first_unchanged_at_end_row): Renamed from
4177 get_first_unchanged_at_end_row.
4178 (find_first_unchanged_at_end_row): Convert assertions to
4179 unconditional tests which abort. When looking for a row in
4180 unchanged text, don't go further back than first_text_row.
4181
b41fe2c3
GM
4182 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
4183 Don't add in the last line's height when deciding if the new
4184 position is below the scroll margin.
9d1af64f 4185
b41fe2c3 41862000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
4187
4188 * editfns.c (Fconstrain_to_field): Check carefully for field
4189 boundaries if either OLD_POS or NEW_POS has a non-nil field
4190 property, even if they're the same.
4191
c412cb7b
KH
41922000-10-16 Kenichi Handa <handa@etl.go.jp>
4193
4194 * xterm.c (x_draw_box_rect): Fix the calculation of width and
4195 height for XFillRectangle.
4196
5586f3eb
SM
41972000-10-15 Stefan Monnier <monnier@cs.yale.edu>
4198
4199 * syntax.c (Fstring_to_syntax): New function extracted from
4200 Fmodify_syntax_entry.
4201 (Fmodify_syntax_entry): Use it and document the ! and | fences.
4202 (skip_chars, Fforward_comment): Remove unused variables.
4203 (syms_of_syntax): Add defsubr for string-to-syntax.
4204 (describe_syntax): Add code for comment and string fences.
4205
db785038
SM
42062000-10-14 Stefan Monnier <monnier@cs.yale.edu>
4207
4208 * keymap.c (access_keymap): Add AUTOLOAD parameter.
4209 Do the meta->esc mapping. Call get_keyelt before returning.
4210 Start scanning from the second element (the first is always `keymap')
4211 to make it easier to detect when we reach a parent map.
4212 Handle the case of inheriting from a symbol whose function is a map.
4213 (Fkeymap_parent): Also handle the `inherit from symbol' case.
4214 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
4215 (get_keyelt, Flookup_key): Update call to access_keymap.
4216 Remove the meta->esc mappings.
4217 (define_as_prefix): Delete old disabled code.
4218 (menu_item_p): New function.
4219 (where_is_internal_1): Skip over the few remaining menu items.
4220 * lisp.h (access_keymap): Update prototype.
4221 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
4222 Update call to access_keymap.
4223 (follow_key, read_key_sequence): Update calls to access_keymap.
4224 Remove the meta->esc mappings.
4225
cafafe0b
GM
42262000-10-13 Gerd Moellmann <gerd@gnu.org>
4227
a2e2a7f6
GM
4228 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
4229 with additional argument.
4230
cafafe0b
GM
4231 * xdisp.c (cursor_row_p): New function.
4232 (try_cursor_movement, display_line): Use it.
4233
4234 * xdisp.c (append_space): Also save/restore iterator's current
4235 character and its length.
4236
4237 * xdisp.c (init_from_display_pos): Add an assertion.
4238 (handle_stop): Don't set iterator's add_overlay_start.
4239 (handle_invisible_prop): Likewise.
4240 (load_overlay_strings): If text under an overlay is invisible,
4241 take both before- and after-strings into account when the iterator
4242 is positioned either at the start or at the end of the overlay.
4243 (forward_to_next_line_start): Rewritten.
4244 (reseat_at_next_visible_line_start): Rewritten.
4245 (set_iterator_to_next): Add parameter RESEAT_P.
4246
4247 * dispextern.h (struct it): Remove member add_overlay_start.
4248 (set_iterator_to_next): Change prototype.
4249
c744452b
KH
42502000-10-13 Kenichi Handa <handa@etl.go.jp>
4251
4252 * coding.c (code_convert_region): Be sure to initialize
4253 coding->category_idx.
e4a3f4e1
KH
4254 (decode_coding_string): Set coding->src_multibyte and
4255 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
4256 (encode_coding_string): Set coding->src_multibyte and
4257 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 4258
321fd26f
SM
42592000-10-12 Stefan Monnier <monnier@cs.yale.edu>
4260
4261 * xfns.c (Fx_create_frame): Don't bother calling
4262 face-set-after-frame-default since the caller does it for us anyway.
4263
76832439
EZ
42642000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
4265
4266 * window.c (coordinates_in_window): Fix detection of vertical line
4267 on character terminals.
4268
2483cf58
GM
42692000-10-12 Gerd Moellmann <gerd@gnu.org>
4270
4271 * editfns.c (save_excursion_save): Additionally record the
4272 selected window.
4273 (save_excursion_restore): If buffer was visible in a window, and a
4274 different window was selected, and the old selected window is
4275 still live, restore point in that window.
4276
eb991b25
KH
42772000-10-12 Kenichi Handa <handa@etl.go.jp>
4278
8a0eba09
KH
4279 * xterm.c (x_produce_glyphs): Handle
4280 unibyte_display_via_language_environment correctly.
4281
20401fcc
KH
4282 * regex.c (regex_compile): Change the way of handling a range from
4283 unibyte char to multibyte char.
4284
4285 * syntax.c (skip_chars): Change the way of handling a range from
4286 unibyte char to multibyte char.
4287
eb991b25
KH
4288 * process.c (read_process_output): Cancel previous change.
4289
365dd325
EZ
42902000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
4291
c1b096cb
EZ
4292 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
4293
365dd325
EZ
4294 * charset.c (Ffind_charset_string): Doc fix.
4295 (Ffind_charset_region): Doc fix.
4296
eb483c2b
KH
42972000-10-11 Kenichi Handa <handa@mule.m17n.org>
4298
4299 * process.c (read_process_output): Fix previous change. Adjust
4300 multibyteness of text to insert in a buffer by
df3c11b9 4301 string_make_unibyte/multibyte instead of
eb483c2b
KH
4302 Fstring_as_unibyte/multibyte.
4303
b40bfb99
AS
43042000-10-10 Andreas Schwab <schwab@suse.de>
4305
4306 * alloc.c (mark_object): Remove all workarounds installed on
4307 1993-08-08.
4308
caff31d4
KH
43092000-10-10 Kenichi Handa <handa@etl.go.jp>
4310
4311 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before
4312 returning.
4313 (base64_encode_1): Make it work for a text of multibyte form.
4314 (Fbase64_decode_region): Allocate sufficient memory for multibyte
4315 case. Don't call str_to_multibyte because base64_decode_1
4316 produces correct multibyte form for eight-bit codes.
4317 (Fbase64_decode_string): Adjusted for the change of
4318 base64_decode_1.
4319 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
4320 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
4321 codes.
4322
4323 * charset.h (CHAR_STRING): Optimized for single byte characters.
4324
cba026ef
AS
43252000-10-09 Andreas Schwab <schwab@suse.de>
4326
4327 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
4328 -1 after socket is closed, to fall through to error processing.
4329
1e21fe48
EZ
43302000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
4331
4332 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 4333 variables. If ALIST includes foreground-color or
1e21fe48
EZ
4334 background-color, change also the colors of the default face for
4335 this frame.
4336
a640322e
EZ
43372000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
4338
4339 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
4340 them extern (they are defined on xfaces.c).
4341 (syms_of_msdos): Don't intern and don't staticpro
4342 Qbackground_color and Qforeground_color.
4343
a115794c
EZ
43442000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
4345
4346 * frame.c (Fframe_parameter): For non-windowed frames, if
4347 f->param_alist says foreground or background color is unspecified,
4348 call tty_color_name to return the color name computed from the
4349 frame's current colors.
4350
f5533b63
DL
43512000-10-06 Dave Love <fx@gnu.org>
4352
4353 * terminfo.c (ospeed): Don't declare.
4354
4355 * sysdep.c: Don't include string.h.
4356 (h_errno): Declare conditional also on TRY_AGAIN.
4357
4358 * charset.c (Ffind_charset_string): Doc fix.
4359
4360 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
4361 (Fbase64_decode_region, Fbase64_decode_string): More explicit
4362 error messages.
4363
2b06561a
DL
43642000-10-05 Dave Love <fx@gnu.org>
4365
4366 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
4367 position like menu-bar.
4368
ca839c85
GM
43692000-10-05 Gerd Moellmann <gerd@gnu.org>
4370
4371 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
4372
4373 * xdisp.c (handle_single_display_prop): Use safe_call1.
4374 (safe_call): Renamed from call_function.
4375 (safe_call1): New function.
4376 (handle_fontified_prop): Use safe_call1 instead of call1.
4377 (safe_eval): Renamed from eval_form.
4378 (safe_eval_handler): Renamed from eval_handler.
4379 (handle_single_display_prop, display_mode_element): Use safe_eval
4380 instead of eval_form.
4381
4382 * xfaces.c (merge_face_heights): Use safe_call instead of
4383 call_function.
4384
4385 * keyboard.c (show_help_echo): Use safe_call instead of
4386 call_function; use safe_eval instead of eval_form.
4387
4388 * lisp.h (safe_call): Renamed from call_function.
4389 (safe_eval): Renamed from eval_form.
4390 (safe_call1): Add prototype.
4391
a3489ece
MB
43922000-10-05 Miles Bader <miles@lsi.nec.co.jp>
4393
4394 * xfns.c (image_ascent): Rearrange ascent calculation for the
4395 has-a-font case.
4396
35810b6f
SM
43972000-10-04 Stefan Monnier <monnier@cs.yale.edu>
4398
4399 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
4400 (where_is_internal_1): Don't bother ignoring menu-items any more.
4401
3dc78168
GM
44022000-10-04 Gerd Moellmann <gerd@gnu.org>
4403
4404 * keyboard.c (update_menu_bindings): New variable.
4405 (parse_menu_item): Use AREF. If update_menu_bindings
4406 is 0, don't update menu bindings.
4407 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
4408
1efc2bb9
EZ
44092000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
4410
4411 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
4412 to `mark_object'.
4413
3f679f55
SM
44142000-10-02 Stefan Monnier <monnier@cs.yale.edu>
4415
4416 * syntax.c (forw_comment): Match nestedness of ender/starter.
4417 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
4418 (prev_char_comstart_first): Remove.
4419 (back_comment): Check two-char comment markers more carefully
4420 to better handle overlapping cases like *//* or /* */* */ ...
4421 Match nestedness of ender/starter.
4422
2021ab61
DL
44232000-10-02 Dave Love <fx@gnu.org>
4424
4425 * config.in (HAVE_GAI_STRERROR): Add undef.
4426
4427 * process.c (Fopen_network_stream): Use it.
4428
4429 * m/alpha.h (NO_REMAP): Don't define.
4430
64e6cc18
GM
44312000-10-02 Gerd Moellmann <gerd@gnu.org>
4432
4433 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
4434 return with a string converted to an integer or vice versa when
4435 Vmocklisp_arguments is t.
4436 (Fsignal): Likewise. The function can return for `quit'.
4437 (struct gcpro): Declare member `var' to point to a volatile
4438 Lisp_Object.
4439
4440 * eval.c (error): Prevent compiler warning.
4441
b1904cd9
SM
44422000-09-30 Stefan Monnier <monnier@cs.yale.edu>
4443
4444 * keymap.c (keymap_memberp): New function.
4445 (Fset_keymap_parent): Use it.
4446 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
4447 Use keymap_memberp to avoid creating cycles.
4448 (access_keymap): Use KEYMAPP.
4449
71c9ec51
GM
44502000-09-30 Gerd Moellmann <gerd@gnu.org>
4451
4452 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
4453 gai_strerror. Make sure xerrno is set if connect fails. Improve
4454 error recovery.
71c9ec51 4455
c70c6b58
JR
44562000-09-29 Jason Rumney <jasonr@gnu.org>
4457
4458 * w32term.c (w32_char_font_type, w32_encode_char)
4459 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
4460 (w32_bdf_per_char_metric): New function.
4461 (w32_per_char_metric): Use it.
4462 (x_draw_glyph_string_background): Always draw background for BDF
4463 glyphs.
4464
4465 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
4466 GDI object which is a scarce resource.
4467
4468 * w32bdf.c (search_file_line): Fix skipping of whitespace.
4469 (get_quoted_string): Fix limit on memchr search.
4470 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
4471 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
4472 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
4473 (get_cached_font_char, cache_char_offset): Use macro
4474 BDF_CODEPOINT_RANGE_COVER_P.
4475 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
4476 (clear_cached_bitmap_slots): New function.
4477 (GET_HEX_VALUE): G-Z, g-z are not hex.
4478 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
4479 (get_bitmap_with_cache): Use new cache implementation.
4480 (create_offscreen_bitmap): New function.
4481 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
4482
4483 * w32term.c (x_produce_glyphs): If the distance from the current
4484 position to the next tab stop is less than a canonical character
4485 width, use the tab stop after that.
4486 (x_draw_glyphs): Handle case START and END are out of bounds more
4487 carefully.
4488 (x_clear_mouse_face): Block/unblock input.
4489 (x_display_and_set_cursor): Don't show a hollow box cursor for
4490 buffers whose cursor_type is nil.
4491
fe01239f
GM
44922000-09-29 Gerd Moellmann <gerd@gnu.org>
4493
4494 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar
4495 disappears.
4496
4497 * dispextern.h (updating_frame): Declare extern.
4498
e7c52f1f
AS
44992000-09-29 Andreas Schwab <schwab@suse.de>
4500
4501 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
4502
de6e1f7c
GM
45032000-09-29 Gerd Moellmann <gerd@gnu.org>
4504
25126faa
GM
4505 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
4506 use its function definition.
4507 (tool_bar_items): Likewise.
4508
de6e1f7c
GM
4509 * lisp.h (fatal): Declare NO_RETURN.
4510
454ee39b
KH
45112000-09-29 Kenichi Handa <handa@etl.go.jp>
4512
4513 * keymap.c: Remove the line "#undef NULL".
4514
96301c5f
GM
45152000-09-28 Gerd Moellmann <gerd@gnu.org>
4516
4517 * xterm.c (x_make_frame_visible): Try harder to make the frame
4518 visible.
4519
efffeeb4
DL
45202000-09-28 Dave Love <fx@gnu.org>
4521
ecb8b666
DL
4522 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
4523
dc3cd20f
DL
4524 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
4525
4526 * .gdbinit (xreload): Note its need on GNU/Linux.
4527
efffeeb4
DL
4528 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
4529 r_alloc, r_alloc_free.
4530
8610d903
KH
45312000-09-28 Kenichi Handa <handa@etl.go.jp>
4532
4533 * syntax.c (skip_chars): Handle negation correctly.
4534
8901d1ac
GM
45352000-09-27 Gerd Moellmann <gerd@gnu.org>
4536
6f22f1ad
GM
4537 * xfaces.c (realize_default_face): Call set_lface_from_font_name
4538 with non-zero FORCE_P argument.
4539
8901d1ac
GM
4540 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
4541 Add assertions.
4542
4543 * xdisp.c (window_box_height): Add an assertion.
4544
4545 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
4546 tool-bar than is available.
4547 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
4548
36f1966f
DL
45492000-09-27 Dave Love <fx@gnu.org>
4550
efffeeb4 4551 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 4552
31d929e5
GM
45532000-09-26 Gerd Moellmann <gerd@gnu.org>
4554
c98863bf
GM
4555 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
4556 instead of BITS_PER_INT.
4557 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
4558 EMACS_UINT, respectively.
4559 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
4560
4561 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
4562
4563 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
4564
77072ab1
GM
4565 * window.c (freeze_window_starts): Construct last argument for
4566 foreach_window differently.
4567
4568 * xfns.c (x_decode_color): Don't return a Lisp_Object.
4569
4570 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
4571 EMACS_UINT instead of `int' and `unsigned int'.
4572 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
4573
4574 * frame.h (struct frame): Make the `nothing' member of union
4575 output_data an EMACS_INT.
4576
31d929e5
GM
4577 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug
4578 hunting.
4579 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
4580 size in the sdata structure.
4581 (SDATA_NBYTES, SDATA_DATA): New macros.
4582 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
4583 differently for the different layout of the sdata structure.
4584 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
4585 in sdata.
4586 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
4587 Check that size recorded in the string size and size recorded in
4588 the sdata structure agree.
4589
3e60b029
DL
45902000-09-25 Dave Love <fx@gnu.org>
4591
4592 * buffer.c: Include stdio.h.
4593
4594 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
4595
4596 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
4597
4598 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
4599 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as
4600 size_t.
4601 (__malloc_extra_blocks): Declare as __malloc_size_t.
4602
8ff16b4e
GM
46032000-09-25 Gerd Moellmann <gerd@gnu.org>
4604
755a2ccd
GM
4605 * alloc.c (mark_image): Use GC_NILP instead of NILP.
4606
d8b4516f
GM
4607 * keyboard.c (show_help_echo): Set help_echo_showing_p.
4608 (read_char): If help-echo is showing, preserve the echo area
4609 when redisplaying.
4610
4611 * xdisp.c (help_echo_showing_p): New variable.
4612 (set_message): Reset it to 0.
4613 (init_xdisp): Initialize help_echo_showing_p.
4614
4615 * dispextern.h (help_echo_showing_p): Declare extern.
4616
4617 * config.in: Fix typo in __GNUC_MINOR__.
4618
4619 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
4620
b11af2dd
GM
4621 * s/freebsd.h (POSIX_SIGNALS): Define.
4622
8ff16b4e
GM
4623 * xterm.c (x_clear_mouse_face): Block/unblock input.
4624
844eb643
DL
46252000-09-24 Dave Love <fx@gnu.org>
4626
4627 * fns.c (base64_encode_1): Fix last change.
4628
b30ab1b3
GM
46292000-09-22 Gerd Moellmann <gerd@gnu.org>
4630
4631 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
4632
4633 * xdisp.c (try_window_reusing_current_matrix): More fixes
4634 for the case window has a header-line.
4635
c6cbe5f0
DL
46362000-09-22 Dave Love <fx@gnu.org>
4637
4c7c1f3f
DL
4638 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
4639 a doc string.
4640
4641 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
4642
c6cbe5f0
DL
4643 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
4644
550a625e
GM
46452000-09-21 Gerd Moellmann <gerd@gnu.org>
4646
4c7c1f3f 4647 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
4648 for GCC >= 2.5.
4649
4650 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error): Declare
4651 NO_RETURN.
4652
80d26f99
GM
4653 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
4654 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
4655 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
4656 warnings.
4657
4658 * marker.c (byte_char_debug_check): Return void.
4659
623a0aae
GM
4660 * xfns.c (Fx_create_frame): Set default frame parameter value
4661 for tool-bar-lines to 1.
4662
4663 * dispnew.c (scrolling_window): Compare y-positions of rows
4664 equal at the start. Some simplification.
4665
4666 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
4667 reused rows' y-position in the case window has a header-line, and
4668 new window start is greater than old window start.
4669
42ac0ae5
GM
4670 * process.c (process_sent_to): New variable.
4671 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
4672 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
4673 Declare more parameters volatile.
4674
550a625e
GM
4675 * lread.c (Vrecursive_load_depth_limit): New variable.
4676 (Fload): Check recursive loads whose recursion depth exceeds
4677 Vrecursive_load_depth_limit.
4678 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
4679
8320414c
GM
46802000-09-20 Gerd Moellmann <gerd@gnu.org>
4681
f46c275e
GM
4682 * fileio.c (Fread_file_name): Doc fix.
4683
4684 * editfns.c (Fmessage_or_box): Doc fix.
4685
4686 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
4687
b7e11c5b
GM
4688 * xfns.c (xbm_scan): Allow C-style comments.
4689
8320414c
GM
4690 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
4691 symbols are specified, add color translations to the cache.
4692 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New
4693 functions.
4694 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
4695 xpm_cache_color.
4696 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
4697 structures to xpm_init_color_cache.
4698
da1608d9
GM
46992000-09-19 Gerd Moellmann <gerd@gnu.org>
4700
4701 * dispnew.c (update_window_line): Make sure to always draw
4702 mode-lines.
4703
6badfa25
AI
47042000-09-19 Andrew Innes <andrewi@gnu.org>
4705
4706 * makefile.nt (bootstrap-emacs): Don't change directory.
4707
3a5f42bb
KH
47082000-09-19 Kenichi Handa <handa@etl.go.jp>
4709
1b7649bd
KH
4710 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
4711
3a5f42bb
KH
4712 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
4713 If output buffer is too small, signal an appropriated error.
4714
9f83cf0b
DL
47152000-09-18 Dave Love <fx@gnu.org>
4716
4717 * keyboard.c (menu_bar_items, tool_bar_items)
4718 (current_active_maps): Remove redundant get_local_map call.
4719
28c7826c
GM
47202000-09-18 Gerd Moellmann <gerd@gnu.org>
4721
5cefa566
GM
4722 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
4723 cursor for buffers whose cursor_type is nil.
4724
6fed3546
GM
4725 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
4726 a feature to implement that is already implemented.
4727 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
4728 warnings.
4729
4730 * xfns.c (x_clear_image_1): New function.
4731 (x_clear_image): Use it.
4732 (x_from_xcolors): Use x_clear_image_1; don't free the image's
4733 mask.
4734
05b1f851
GM
4735 * dispnew.c (update_window): Move test for invisible lines
4736 at the top to update_window_line.
4737 (update_window_line): Handle invisible lines here.
4738
f4779de9
GM
4739 * xfns.c (clear_image_cache): Clear current matrices of all
4740 frames sharing an image cache. Block input while freeing
4741 images. Fix timestamp comparison.
4742 (x_clear_image): Also free the mask.
4743
28c7826c
GM
4744 * xfns.c (lookup_image): Block input while loading the image so
4745 that we won't get interrupted in a state where the image isn't yet
4746 set up completely.
4747 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
4748 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
4749 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
4750 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock
4751 input.
4752
b7412313
GM
47532000-09-16 Gerd Moellmann <gerd@gnu.org>
4754
4755 * dispnew.c (update_window): Make sure to make desired rows
4756 current even if they are completely invisible at the top
4757 of a window.
4758
47e351a3
GM
47592000-09-15 Gerd Moellmann <gerd@gnu.org>
4760
7f8f1edc
GM
4761 * xfns.c (lookup_image): Build mask before applying an algorithm.
4762 Recognize algorithm `disabled'.
4763 (cross_disabled_images): New variable.
4764 (COLOR_INTENSITY): New macro.
4765 (x_detect_edges): Use COLOR_INTENSITY.
4766 (x_disable_image): New function.
4767 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
4768
4769 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
4770 disabled state, don't apply an image transformation algorithm if
4771 the user specified an image for the disabled state. Use
28c7826c 4772 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
4773 user hasn't specified an image.
4774
ebb8f116
GM
4775 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
4776 allocation functions with the XPM lib.
4777 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
4778 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
4779 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
4780 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
4781 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New
4782 functions.
4783 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
4784 functions, if possible, because these handle color allocation
4785 failure more gracefully.
4786 (Fimage_mask_p): New function.
4787
47e351a3
GM
4788 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
4789 (Qedge_detection, Qheuristic): New symbols.
4790 (syms_of_xfns): Initialize new symbols.
4791 (lookup_image): Handle `:mask X', `:algorithm emboss', and
4792 `algorithm (edge-detection ...)'.
4793 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
4794 (tiff_format, gif_format, gs_format): Add `:mask'.
4795 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
4796 (GIF_MASK, GS_MASK): New enumerators.
4797 (x_laplace_read_row, x_laplace_write_row): Functions removed.
4798 (emboss_matrix, laplace_matrix): New variables.
4799 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
4800 (x_edge_detection): New functions.
4801 (x_laplace): Rewritten in terms of x_detect_edges.
4802 (x_build_heuristic_mask): If image has a mask, free it.
4803
fe83b953
AI
48042000-09-14 Andrew Innes <andrewi@gnu.org>
4805
4806 * makefile.w32-in: Revert to Unix line endings.
4807
3021e816
AI
48082000-09-14 Andrew Innes <andrewi@gnu.org>
4809
4810 * makefile.w32-in: Standardize indentation somewhat.
4811 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
4812 cater for differences between shells.
4813
4814 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
4815
2a32b5ea
GM
48162000-09-14 Gerd Moellmann <gerd@gnu.org>
4817
4818 * xterm.c (x_produce_glyphs): If the distance from the current
4819 position to the next tab stop is less than a canonical character
4820 width, use the tab stop after that.
4821
b4331e96
DL
48222000-09-14 Dave Love <fx@gnu.org>
4823
4824 * buffer.c (alloc_buffer_text): Fix xmalloc call.
4825
ef9e4345
GM
48262000-09-14 Gerd Moellmann <gerd@gnu.org>
4827
085536c2
GM
4828 * xdisp.c (handle_fontified_prop): While running fontification
4829 functions, bind `fontification-functions' and
4830 `after-change-functions' to nil.
4831
ef9e4345
GM
4832 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
4833 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
4834
4835 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
4836
4837 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
4838 USE_MMAP_FOR_BUFFERS.
4839
4840 * insdel.c (make_gap): Use enlarge_buffer_text.
4841
4842 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
4843 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
4844 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
4845 from former r_alloc_* functions in ralloc.c.
4846 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New
4847 variables.
4848 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
4849 (mmap_init) [REL_ALLOC_MMAP]: New function.
4850 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
4851 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
4852 BUFFER_FREE.
4853
4854 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
4855 (enlarge_buffer_text): Add prototype.
4856
4857 * ralloc.c: Remove everything having to do with the use of mmap.
4858
f8608968
GM
48592000-09-13 Gerd Moellmann <gerd@gnu.org>
4860
2a494b2d
GM
4861 * sound.c (Fplay_sound): Doc fix.
4862
8c907a56
GM
4863 * keyboard.c: Avoid some more compiler warnings.
4864 (parse_tool_bar_item): Ignore cached key bindings.
4865
f8608968
GM
4866 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
4867 and allocation of Lisp data.
4868
6ab70e9a
GM
48692000-09-12 Gerd Moellmann <gerd@gnu.org>
4870
d12d0a9b
GM
4871 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
4872 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
4873 defaults first.
4874
6ab70e9a
GM
4875 * lread.c (Fload): Put code checking for recursive loads in #if 0.
4876
63c36c3c
KH
48772000-09-12 Miyashita Hisashi <himi@meadowy.org>
4878
4879 * ccl.c: Comment fixed.
4880 (MAX_MAP_SET_LEVEL): Increased to 30.
4881 (PUSH_MAPPING_STACK): Enclose with do-while block.
4882 (POP_MAPPING_STACK): Likewise.
4883 (stack_idx_of_map_multiple): New variable.
4884 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
4885 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
4886 call the corresponding CCL program by
4887 CCL_CALL_FOR_MAP_INSTRUCTION.
4888 (ccl_driver) <CCL_MapSingle>: Likewise.
4889 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
4890 with the case where looking up process reaches to the end of
4891 map-set, and call CCL programs as the above change.
4892
7ee3bd7b
GM
48932000-09-11 Gerd Moellmann <gerd@gnu.org>
4894
8ec8a5ec
GM
4895 * xfns.c (png_load, jpeg_load): Declare some variables volatile
4896 that might be clobbered by longjmp.
4897 (check_x_display_info, x_decode_color, create_frame_xic)
4898 (Fx_display_backing_store, Fx_display_visual_class)
4899 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler
4900 warnings.
4901
f74b0705
GM
4902 * lread.c (init_lread): Set Vloads_in_progress to nil.
4903 (Fload): Show list of recursively loaded files, when signaling an
4904 error.
4905
7ee3bd7b
GM
4906 * lread.c (Vloads_in_progress): New variable.
4907 (record_load_unwind): New function.
4908 (Fload): Check for recursive loads.
4909 (syms_of_lread): Initialize Vloads_in_progress.
4910 (read_integer, read1): Avoid some compiler warnings.
4911
4912 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
4913 compiler warnings.
4914
974e1e5b
MB
49152000-09-11 Miles Bader <miles@gnu.org>
4916
4917 * editfns.c (Fbuffer_string): Doc fix.
4918
9824c4e3
GM
49192000-09-10 Gerd Moellmann <gerd@gnu.org>
4920
4921 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
4922
6a72fdd1
KR
49232000-09-09 Ken Raeburn <raeburn@gnu.org>
4924
4925 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
4926 whether to include other header files.
4927
28e6fb66
GM
49282000-09-09 Gerd Moellmann <gerd@gnu.org>
4929
4930 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 4931 by Fmemq as a boolean.
28e6fb66 4932
7f8b6551
SM
49332000-09-08 Stefan Monnier <monnier@cs.yale.edu>
4934
4935 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
4936
a8710abf
GM
49372000-09-08 Gerd Moellmann <gerd@gnu.org>
4938
d1a02881
GM
4939 * ralloc.c (mmap_fd): Remove initializer which can make it
4940 read-only in a dumped Emacs.
4941 (mmap_fd_1): New variable.
4942 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
4943 restore it from there.
4944 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
4945 unconditionally so that mmap_fd can be initialized there.
4946 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
4947 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
4948 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
4949
c454aac1
GM
4950 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
4951
4952 * xdisp.c (dump_glyph_row): Fix printf format string.
4953 (display_line, move_it_in_display_line_to): Avoid compiler
4954 warnings.
4955
fc653ef2
GM
4956 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
4957
3015eec0
GM
4958 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
4959 inheritance.
4960
bfe0ee88
GM
4961 * xdisp.c (try_window_id): When trying to locate cursor in
4962 unchanged rows at the top, handle the case that we can't find it.
4963
a8710abf
GM
4964 * xterm.c (x_draw_glyphs): Handle case START and END are out
4965 of bounds more carefully.
4966
6b7d4ae4
DL
49672000-09-08 Dave Love <fx@gnu.org>
4968
423193c5
DL
4969 * s/sol2.h (REL_ALLOC_MMAP): Define.
4970 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
4971
4972 * ralloc.c: Don't include string.h (redundant).
4973 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
4974 [!MAP_ANON]: Include fcntl.h.
4975 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
4976 (r_alloc, r_re_alloc, r_alloc_free)
4977 (mmap_enlarge, mmap_set_vars): Use it.
4978 (r_alloc_init_fd): New function.
4979 (__morecore) [SYSTEM_MALLOC]: Don't declare.
4980 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
4981 malloc type.
4982
4983 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
4984 Remove vm-limit.o.
4985
6b7d4ae4
DL
4986 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
4987 change to __NetBSD__.
4988
44d31981
KH
49892000-09-08 Kenichi Handa <handa@etl.go.jp>
4990
4991 * search.c (compile_pattern): Check the multibyteness of cached
4992 string and PATTERN.
4993
aad40737
MB
49942000-09-08 Miles Bader <miles@gnu.org>
4995
4996 * xfaces.c (default_face_vector): Function removed.
4997 (Finternal_merge_in_global_face): Restore old global/local
4998 attribute override order. Use inline loop instead of calling
4999 default_face_vector.
5000
91a211b5
GM
50012000-09-07 Gerd Moellmann <gerd@gnu.org>
5002
5003 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
5004 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
5005 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
5006 where necessary, in case POINTER_TYPE is `void'.
5007
03419440
EZ
50082000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
5009
5010 * frame.c (make_terminal_frame): Initialize frame foreground and
5011 background colors to unspecified, for the initial instance of an
5012 MSDOS frame.
5013
f46f845b
GM
50142000-09-07 Gerd Moellmann <gerd@gnu.org>
5015
24f76fbf
GM
5016 * ralloc.c (mmap_find): Fix overlap computation.
5017 (mmap_enlarge): Compute nbytes before trying to find an
5018 overlapping region.
5019
f46f845b
GM
5020 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
5021 instead of `!='.
5022
5023 * lread.c (syms_of_lread): Change value of regexp
5024 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
5025
5026 * xmenu.c (xdialog_show): When looking up the selection in
5027 menu_items, take `quote' boundaries into account; this corresponds
5028 to a nil ITEM in x-popup-dialog.
5029
3c014385
KH
50302000-09-07 Kenichi Handa <handa@etl.go.jp>
5031
fd6f711b
KH
5032 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
5033 not 0x81.
5034 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
5035
3c014385 5036 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
5037 encoding, not decoding. Fix the handling of latin-jisx0201.
5038 Check for the charset katakana-jisx0201 too.
3c014385 5039 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 5040 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 5041
0da3ecef
GM
50422000-09-07 Gerd Moellmann <gerd@gnu.org>
5043
ab0ee409
GM
5044 * xfaces.c (Vparam_value_alist): New variable.
5045 (syms_of_xfaces): Initialize it.
5046 (Finternal_set_lisp_face_attribute): Avoid more consing.
5047
5048 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
5049 specially.
5050 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
5051 (Qbackground_mode): New variable.
5052 (syms_of_frame_1): Initialize Qbackground_mode.
5053
5054 * lisp.h (Qdisplay): Declare extern.
1091dd67 5055
0da3ecef
GM
5056 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
5057 change face on all frames, and change the default for new frames.
5058
b14654b9
DL
50592000-09-07 Dave Love <fx@gnu.org>
5060
5061 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
5062
d24fd56f
KH
50632000-09-07 Kenichi Handa <handa@etl.go.jp>
5064
794f3670
KH
5065 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
5066
0fddd0dc
KH
5067 * charset.c: Include composite.h
5068 (lisp_string_width): New function.
5069 (Fstring_width): Call lisp_string_width instead of strwidth.
5070
5071 * Makefile.in (charset.o): Depends on composite.h.
5072
d24fd56f
KH
5073 * process.c (read_process_output): Before inserting the decoded
5074 text in the buffer, adjust the multibyteness.
5075
fa0b693c
GM
50762000-09-06 Gerd Moellmann <gerd@gnu.org>
5077
73b77ee5
GM
5078 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
5079 buffer's text buffer is null, map new memory.
5080
0a58f946
GM
5081 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
5082 POINTER_TYPE and size_t.
5083 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
5084 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
5085 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
5086 [REL_ALLOC_MMAP]: New macros.
5087 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
5088 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
5089 [REL_ALLOC_MMAP]: New functions.
5090
5091 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
5092 before and after unexec.
5093
5094 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
5095 text buffers if necessary.
5096
5097 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
5098 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
5099 in prototypes.
5100
fa0b693c
GM
5101 * config.in (HAVE_MMAP): Add #undef.
5102
877055f6
GM
51032000-09-05 Gerd Moellmann <gerd@gnu.org>
5104
08ba3862
GM
5105 * frame.c (Qdisplay_type): New variable.
5106 (syms_of_frame_1): Initialize it.
5107 (Fframe_parameter): New function that avoids consing.
5108 (syms_of_frame): Defsubr it.
5109
66ffe51c
GM
5110 * buffer.c (Fother_buffer): Consider buffers as invisible when
5111 they are displayed in a window on an invisible frame.
5112
877055f6
GM
5113 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
5114 get-largest-window always return nil.
5115
bb970e67
GM
51162000-09-04 Gerd Moellmann <gerd@gnu.org>
5117
5118 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
5119 variable; recognize Emacs 19 elc files.
5120
7a3d0e0e
MB
51212000-09-04 Miles Bader <miles@gnu.org>
5122
5123 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
5124 before initially popping up the menu, so the menu doesn't flash
5125 when the face settings are significantly different from the
5126 defaults.
5127
14473664
SM
51282000-09-04 Stefan Monnier <monnier@cs.yale.edu>
5129
5130 * regex.c (WIDE_CHAR_SUPPORT): New macro.
5131 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
5132 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
5133 (BIT_UNIBYTE): Remove.
5134 (re_match_2_internal): Delete corresponding code and streamline the
5135 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
5136 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
5137 (re_wctype_t): New type.
5138 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
5139 (regex_compile): Use them and fix handling of overly long char classes.
5140
c1174479
AI
51412000-09-03 Andrew Innes <andrewi@gnu.org>
5142
f8803e97
AI
5143 * makefile.w32-in: Change to DOS line endings.
5144
c1174479
AI
5145 * s/ms-w32.h (ORDINARY_LINK): New define.
5146
5147 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
5148 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
5149
5150 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
5151 (distclean): Delete them here instead.
5152
44ef7cf6
AI
5153 * w32proc.c (compare_env): Convert to uppercase for comparison,
5154 not lowercase, to match how the native Windows shell works.
5155
49b3bd82
JR
51562000-09-03 Jason Rumney <jasonr@gnu.org>
5157
5158 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
5159 CVS changes the line-ends when checking in/out on DOS/Windows.
5160
5161 * makefile.nt (emacs): Do not change directory to run temacs, as
5162 the load-path is set relative to current directory.
5163
a3d35a39
MB
51642000-09-03 Miles Bader <miles@gnu.org>
5165
5166 * xterm.c (x_alloc_lighter_color_for_widget): New function.
5167
d276b0cf
GM
51682000-09-02 Gerd Moellmann <gerd@gnu.org>
5169
715e84c9
GM
5170 * xdisp.c (redisplay_mode_lines): New function.
5171 (display_mode_lines): Return number of mode lines displayed.
5172 (echo_area_display): Use redisplay_mode_lines to draw garbaged
5173 mode lines. Don't temporarily bind redisplay-dont-pause to t.
5174
8892f40b
GM
5175 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
5176 string.h and strings.h.
5177 (index) [HAVE_INDEX]: Add prototype.
5178
d276b0cf
GM
5179 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
5180 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
5181
5182 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
5183 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
5184
38404229
GM
51852000-09-01 Gerd Moellmann <gerd@gnu.org>
5186
5187 * lread.c (read1): Accept `?' as symbol constituent, for
5188 compatiblity with XEmacs.
5189
c0f9ea08
SM
51902000-08-31 Stefan Monnier <monnier@cs.yale.edu>
5191
5192 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
5193 (struct re_pattern_buffer): Remove newline_anchor.
5194 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
5195 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
5196 (re_max_failures, fail_stack): Use size_t rather than unsigned.
5197 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
5198 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
5199 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
5200 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
5201 Get rid of references to newline_anchor.
5202 (regcomp): Allocate and precompute a fastmap.
5203
8c0f83fe
GM
52042000-08-31 Gerd Moellmann <gerd@gnu.org>
5205
5206 * lread.c (openp): GCPRO local variable `filename'.
5207
4bb91c68
SM
52082000-08-30 Stefan Monnier <monnier@cs.yale.edu>
5209
5210 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
5211
5212 * regex.c: Merge some changes from GNU libc. Add prototypes.
5213 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
5214 Use memcmp and memcpy instead of bcopy and bcmp.
5215 (init_syntax_once): Use ISALNUM.
5216 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
5217 (REG_UNSET_VALUE): Remove. Use NULL instead.
5218 (REG_UNSET, re_match_2_internal): Use NULL.
5219 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
5220 New macros.
5221 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
5222 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
5223 (regex_compile): In handle_interval, return an error rather than try to
5224 unfetch the interval if we can't find the closing brace.
5225 Obey the RE_NO_GNU_OPS syntax bit.
5226 (TOLOWER): New macro.
5227 (regcomp): Use it.
5228 (regexec): Allocate regs.start and regs.end as one block.
5229
5226a931
GM
52302000-08-30 Gerd Moellmann <gerd@gnu.org>
5231
868dd24b
GM
5232 * xdisp.c (echo_area_display): Check display_completed instead
5233 of calling detect_input_pending.
5234
5235 * dispnew.c (update_frame): Only set display_completed here; move
5236 the update_begin and update_end calls here from update_frame_1.
5237 (update_frame_1): Don't set display_completed here, don't call
5238 update_begin/update_end.
5239
5226a931
GM
5240 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
5241 instead of store_frame_param.
5242
2a8bd25f
GM
52432000-08-29 Gerd Moellmann <gerd@gnu.org>
5244
5245 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
5246 desired window matrix hasn't been displayed, use the current row
5247 instead. Make sure that only those frame rows are updated for
5248 which there exists a corresponding enabled desired row.
5249
ba3478d9
MB
52502000-08-29 Miles Bader <miles@gnu.org>
5251
5252 * xfaces.c (default_face_vector): New function.
5253 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
5254
87d0f685
GM
52552000-08-29 Gerd Moellmann <gerd@gnu.org>
5256
5257 * lread.c (openp): Prevent temporary string passed to
5258 Ffile_readable_p from being garbage collected.
5259
6fa86045
DL
52602000-08-28 Dave Love <fx@gnu.org>
5261
5262 * keymap.c (store_in_keymap): Add `static' to declaration.
5263
bb17930d
GM
52642000-08-28 Gerd Moellmann <gerd@gnu.org>
5265
5266 * emacs.c, callint.c, doc.c, editfns.c
5267 (toplevel) [HAVE_STRING_H]: Include string.h.
5268 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
5269 (index): Remove prototypes which might conflict with non-standard
5270 definitions of index/strchr.
5271
5272 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
5273 (rindex): Define only if !HAVE_RINDEX.
5274
5275 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
5276
5277 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
5278
87188200
MB
52792000-08-28 Miles Bader <miles@gnu.org>
5280
5281 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
5282 made inconsistent by a font-related attribute in FROM.
5283 (merge_face_inheritance): Add function comment.
5284
41a68aef
KH
52852000-08-28 Kenichi Handa <handa@etl.go.jp>
5286
5287 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
5288 the 4th arg (PREV_EVENT) Qt to suppress input method.
5289
f7c436c1
SM
52902000-08-27 Stefan Monnier <monnier@cs.yale.edu>
5291
0b32bf0e
SM
5292 * regex.c: Indent cpp directives and remove parens after `defined'.
5293 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
5294 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
5295 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
5296 (re_compile_pattern): Use size_t for length.
5297 (init_syntax_once): Move to a better place.
5298 * regex.h: Merge changes from GNU libc. Indent cpp directives.
5299 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
5300
f7c436c1
SM
5301 * syntax.c (back_comment): Detect cases where a comment-starter is
5302 actually inside another comment as in: /* a // b */ c // d \n.
5303 Make it clear that `comstart_pos' is unused for nested comments.
5304
5305 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
5306 (KEYMAPP): New macro.
5307 (Fkeymap_parent, Fset_keymap_parent): Use it.
5308 (fix_submap_inheritance): Mark it static.
5309 (define_as_prefix, describe_buffer_bindings, describe_command)
5310 (describe_translation, describe_map): Complete prototypes.
5311
5312 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
5313
5314 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
5315 to better match the key-lookup behavior.
5316
6288c62f
GM
53172000-08-27 Gerd Moellmann <gerd@gnu.org>
5318
5319 * xfaces.c (lface_fully_specified_p): Handle :inherit.
5320 (Finternal_set_lisp_face_attribute): Fix typo in error message.
5321
e931344e
EZ
53222000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
5323
5324 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
5325 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
5326 (xterm.o): Depend on coding.h
5327
d10dfeef
KH
53282000-08-26 Kenichi Handa <handa@etl.go.jp>
5329
5330 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
5331 the corresponding '#endif'.
5332
2d73e8d3
MB
53332000-08-26 Miles Bader <miles@gnu.org>
5334
5335 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
5336 * xfaces.c (QCinherit): New variable.
5337 (syms_of_xfaces): Initialize it.
5338 (LFACE_INHERIT): New macro.
5339 (Finternal_get_lisp_face_attribute)
5340 (merge_face_vector_with_property)
5341 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
5342 (check_lface_attrs): Allow new types of face height. Check
5343 inherit attribute.
5344 (CYCLE_CHECK): New macro.
5345 (merge_face_inheritance): New function.
5346 (merge_face_vectors): Merge inherited faces too. Add F and
5347 CYCLE_CHECK arguments.
5348 (merge_face_vector_with_property, Finternal_merge_in_global_face)
5349 (lookup_named_face, lookup_derived_face, realize_named_face)
5350 (face_at_string_position, face_at_buffer_position): Supply
5351 new F and CYCLE_CHECK arguments to merge_face_vectors.
5352 (merge_face_heights): New function.
5353 (merge_face_vectors, merge_face_vector_with_property)
5354 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
5355 handle relative face heights.
5356 (lface_same_font_attributes_p): Compare heights using EQ.
5357
6ce974d4
KH
53582000-08-26 Kenichi Handa <handa@etl.go.jp>
5359
5360 * charset.c (char_to_string): Check the character validity.
5361 (char_valid_p): If C is not less than MAX_CHAR, be sure to return
5362 0.
5363
dc1e502d
SM
53642000-08-25 Stefan Monnier <monnier@cs.yale.edu>
5365
5366 * regex.c (PUSH_FAILURE_COUNT): New macro.
5367 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
5368 Handle popping of a register's or a counter's data.
5369 (POP_FAILURE_POINT): Use the new name.
5370 (re_match_2_internal): Push counter data on the stack for succeed_n,
5371 jump_n and set_number_at and remove misleading dead code in succeed_n.
5372
bd9d0f3f
GM
53732000-08-25 Gerd Moellmann <gerd@gnu.org>
5374
5375 * xdisp.c (redisplay_internal): If considering all windows on all
5376 frames, update the display for each frame as soon as possible,
5377 instead of first building all desired matrices for all frames, and
5378 then updating them all.
5379 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
5380
aa5b8e15
GM
53812000-08-24 Gerd Moellmann <gerd@gnu.org>
5382
17494071
GM
5383 * bytecode.c (mark_byte_stack): Add a comment.
5384
aa5b8e15
GM
5385 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
5386 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
5387 a graphical frame.
5388
c543db81
KH
53892000-08-24 Kenichi Handa <handa@etl.go.jp>
5390
d246d5f5
KH
5391 * minibuf.c (do_completion): Always use compare-string, not
5392 string-equal because the latter doesn't pay attention to
5393 multibyteness of strings.
5394
c543db81
KH
5395 * process.c (create_process): Don't setup raw-text coding here.
5396 (Fopen_network_stream): Don't set coding->src_multibyte and
5397 coding->dst_multibyte here.
5398 (read_process_output): For process filter, return unibyte string
5399 if default-enable-multibyte-characters is nil.
5400 (send_process): If OBJECT is multibyte text, be sure to encoded it
5401 by the specified coding system for the process. Otherwise, setup
5402 raw-text coding.
5403 (init_process): Don't initialize default-process-coding-system
5404 here.
5405
9b47cfe0
EZ
54062000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
5407
5408 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
5409 <scroll-down-aggressively>: Likewise.
5410
f5a36960
KH
54112000-08-23 Kenichi Handa <handa@etl.go.jp>
5412
5413 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
5414 zero. Set coding->produced_char correctly.
5415
69a7ffa7
AI
54162000-08-22 Andrew Innes <andrewi@gnu.org>
5417
5418 * makefile.w32-in: New file.
5419
5420 * unexw32.c (unexec): Ignore old_name, and use the actual location
5421 of the current executable instead. Base new_name on this.
5422
5423 * w32proc.c (create_child): Remove reference to security
5424 descriptor, which isn't needed and doesn't compile with mingw32.
5425
5426 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5427 up dllimport attributes.
5428 (x_update_window_end): Update prototype.
5429
5430 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
5431 extern, which screws up dllimport attributes.
5432
5433 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5434 up dllimport attributes.
5435
5436 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
5437 screws up dllimport attributes.
5438
5439 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5440 up dllimport attributes.
5441 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
5442 screws up dllimport attributes.
5443
5444 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5445 up dllimport attributes.
5446
5447 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
5448 screws up dllimport attributes.
5449
5450 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
5451 screws up dllimport attributes.
5452
5453 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5454 up dllimport attributes.
5455
5456 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
5457 unnecessary extern, which screws up dllimport attributes.
5458 (main): Ditto.
5459
5460 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5461 up dllimport attributes.
5462
5463 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
5464 unnecessary extern, which screws up dllimport attributes.
5465
5466 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
5467 screws up dllimport attributes.
5468
5469 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5470 up dllimport attributes.
5471
5472 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
5473
5474 * w32bdf.c (search_file_line):
5475 (set_bdf_font_info):
5476 (seek_char):
5477 (w32_get_bdf_glyph):
5478 (w32_BDF_to_x_font): Fix compile warnings.
5479
5480 * w32menu.c: Include keyboard.h before frame.h. Fix compile
5481 warnings.
5482
5483 * w32select.c: Include keyboard.h before frame.h.
5484
5485 * w32fns.c (max): Define macro.
5486 (JOHAB_CHARSET): Define if not known.
5487 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
5488 (Fx_show_tip): Synch with X version.
5489
5490 * w32xfns.c: Include keyboard.h before frame.h.
5491
5492 * w32fns.c: Include keyboard.h before frame.h.
5493
5494 * w32term.c: Include keyboard.h before frame.h.
5495
5496 * fontset.c: Include keyboard.h before frame.h.
5497
5498 * w32inevt.c: Include keyboard.h before frame.h.
5499 (MOUSE_MOVED): Define if not known.
5500
5501 * minibuf.c: Include keyboard.h before frame.h.
5502
5503 * keyboard.c: Include keyboard.h before frame.h.
5504
5505 * indent.c: Include keyboard.h before frame.h.
5506
5507 * dispnew.c: Include keyboard.h before frame.h.
5508
5509 * buffer.c: Include keyboard.h before frame.h.
5510
5511 * alloc.c: Include keyboard.h before frame.h.
5512
5513 * print.c: Include keyboard.h before frame.h.
5514
5515 * process.c: Include keyboard.h before frame.h.
5516
5517 * scroll.c: Include keyboard.h before frame.h.
5518
5519 * sysdep.c: Include keyboard.h before frame.h.
5520
5521 * term.c: Include keyboard.h before frame.h.
5522
5523 * window.c: Include keyboard.h before frame.h.
5524
5525 * xdisp.c: Include keyboard.h before frame.h.
5526 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
5527
5528 * frame.c: Include keyboard.h before frame.h.
5529
5530 * w32heap.h: Undefine min, max.
5531
5532 * w32gui.h: Undefine min, max.
5533
5534 * unexw32.c: Change PUCHAR to PCHAR.
5535 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
5536 (relocate_offset):
5537 (get_section_info):
5538 (copy_executable_and_dump_data): Remove unnecessary static defs.
5539 (copy_executable_and_dump_data): Fix compile warnings.
5540
5541 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
5542
5543 * w32console.c (min): Define macro.
5544 (clear_frame, write_glyphs): Fix compile warning.
5545
5546 * w32proc.c (compare_env):
5547 (find_child_console): Fix compile warning.
5548
5549 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
5550 sys_errlist instead of _sys_errlist.
5551 (get_emacs_configuration_options): New function.
5552
5553 * s/ms-w32.h (sys_nerr): Provide default definition.
5554 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
5555 name with _ prepended.
5556 (NSIG): Define if not known.
5557 (get_emacs_configuration): Provide extern declaration.
5558 (get_emacs_configuration_options): Provide extern declaration.
5559 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
5560
5561 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
5562 (map_w32_filename):
5563 (read_unc_volume): Fix compile warning.
5564
5565 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
5566 definitions from being used.
5567
5568 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
5569
5570 * w32.c (unc_volume_file_attributes):
5571 (open_unc_volume): Make arg const.
5572
5573 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
5574 (read_input_waiting): Remove excess parameter.
5575
5576 * w32.c (init_environment): Call _access.
5577 (check_windows_init_file): Call _close.
5578 (init_user_info): Call _putenv.
5579 (init_environment): Call _putenv and _strdup.
5580 (init_ntproc): Reset volume info cache on startup.
5581
5582 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
5583 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
5584 cannot override the CRT malloc.
5585
5586 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
5587 (LINK_FLAGS): Append to original value of LINK_FLAGS.
5588
5589 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
5590 unless we are linking with a static CRT.
5591 (RVA_TO_PTR): Cast result to unsigned char*.
5592
5593 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
5594 (add_volume_info): Use xstrdup.
5595
25060080
SM
55962000-08-22 Stefan Monnier <monnier@cs.yale.edu>
5597
5598 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
5599 (do_completion, Fminibuffer_complete_word): Use it.
5600 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
5601 var so it can take non-boolean values.
5602
6917e6bb
GM
56032000-08-21 Gerd Moellmann <gerd@gnu.org>
5604
acb7cc89
GM
5605 * editfns.c (find_field): Formatting changes.
5606 (toplevel): Some old-style function forward declarations
5607 changed to prototypes, some new protypes added, some functions
5608 made static.
5609
5610 * lisp.h (set_time_zone_rule): Add prototype.
5611 (use_dialog_box): External declaration.
5612
0bbfdc25
GM
5613 * keyboard.c (gen_help_event): Add parameter SIZE.
5614 (kbd_buffer_events_waiting): Slightly rewritten.
5615 (clear_event): New function.
5616 (kbd_buffer_get_event): Use it, and clear the input_events of
5617 HELP_EVENTs.
5618 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
5619 don't fill the newly created array with nils.
5620 (toplevel): Convert some old-style function forward declarations
5621 to prototypes.
5622
5623 * keyboard.h (gen_help_event): Change prototype.
5624
5625 * xterm.c (XTread_socket): Change calls to gen_help_event.
5626
5627 * w32term.c (w32_read_socket): Change calls to gen_help_event.
5628
6917e6bb
GM
5629 * eval.c (Fmacroexpand): Doc fix.
5630
e5cd3d11
JR
56312000-08-20 Jason Rumney <jasonr@gnu.org>
5632
5633 * w32term.h (x_display_info_for_display): Remove as this function
5634 does not exist on W32.
5635
5636 * w32term.c (help_echo_window): New variable.
5637 (syms_of_w32term): staticpro it.
5638 (note_mode_line_highlight): Set it.
5639 (XTextExtents16): Removed as there is no equivalent on W32.
5640 (x_compute_glyph_string_overhangs): Incomplete body removed, as
5641 the X way of doing this will not work for W32.
5642 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
5643 (x_draw_image_foreground): Avoid drawing outside of the clip area
5644 when image doesn't have a mask.
5645 (note_mouse_highlight): Process overlays in the right order of
5646 priority. Set help_echo_window.
5647 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
5648 because that's more visible for large images.
5649
5650 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
5651 name to single_keymap_panes.
5652 (w32_menu_show): Set wv->title when dealing with titles.
5653 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
5654
6e69ab8c
MB
56552000-08-21 Miles Bader <miles@gnu.org>
5656
5657 * minibuf.c (do_completion): Try again if we rewrite the input
5658 string, but no completion was done, so that any completion message
5659 will be correct.
5660
511bd4eb
GM
56612000-08-20 Gerd Moellmann <gerd@gnu.org>
5662
5663 * xfaces.c (lface_equal_p): Compare strings differently.
5664 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
5665 (realize_tty_face): Use them.
5666 (syms_of_xfaces): Initialize new variables.
5667 (map_tty_color): New function, extracted from realize_tty_face.
5668 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
5669 foreground or background color, store the new color name in the
5670 realized face; previous code trying to do this had no effect.
5671 (realize_tty_face): Use map_tty_color.
5672 (Fclear_face_cache): Set face_change_count and ensure thorough
5673 redisplay.
5674
1433385f
GM
56752000-08-19 Gerd Moellmann <gerd@gnu.org>
5676
511bd4eb
GM
5677 * undo.c (record_first_change, record_marker_adjustment): Don't
5678 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 5679
419ac0a2
KH
56802000-08-18 Kenichi Handa <handa@etl.go.jp>
5681
5682 * coding.c (decode_coding_string): Set members consumed,
5683 consumed_char, produced, produced_char of *coding correctly. If
5684 decode_coding doesn't consume any byte, don't try anymore.
5685 (encode_coding_string): Likewise.
5686
7eb9e30d
GM
56872000-08-18 Gerd Moellmann <gerd@gnu.org>
5688
511bd4eb
GM
5689 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
5690 conditional have void type, for Standard C compilers.
7eb9e30d
GM
5691
5692 * xdisp.c (redisplay_internal): Compare windows for equality with
5693 EQ, instead of applying XWINDOW to something that might not
5694 be a window.
5695
dd34a735
KH
56962000-08-18 Kenichi Handa <handa@etl.go.jp>
5697
5698 * fontset.c (Finternal_char_font): Search only the selected frame
5699 for a window of the current buffer.
5700
385ff9e3
GM
57012000-08-18 Gerd Moellmann <gerd@gnu.org>
5702
511bd4eb 5703 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
5704 Lisp_Objects.
5705
385ff9e3
GM
5706 * keyboard.c (kbd_buffer_get_event): Handle the case that the
5707 second half of a HELP_EVENT is found at the start of kbd_buffer.
5708
d6abb4c7
MB
57092000-08-18 Miles Bader <miles@gnu.org>
5710
4618074a
MB
5711 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
5712
d6abb4c7
MB
5713 * editfns.c (save_restriction_save): Rewrite to use markers.
5714 (save_restriction_restore): Rewrite to understand new form of data
5715 saved by save_restriction_save.
5716 (Fsave_restriction): Remove cautionary note in doc-string.
5717
a7b28523
GM
57182000-08-17 Gerd Moellmann <gerd@gnu.org>
5719
5720 * fileio.c (build_annotations): Add a comment explaining the
5721 return value of format-annotate-function. Replace a spurious call
5722 to Flength with a CONSP test. Call format-annotate-function with
5723 a fifth arg specifying how many times the function is been called
5724 in a row, to let it choose temporary buffers appropriately.
5725
03c9ed77
DL
57262000-08-17 Dave Love <fx@gnu.org>
5727
5728 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
5729 declare make_temp_name twice.
5730
5731 * lread.c: Prototype readevalloop, load_unwind,
5732 load_descriptor_unwind.
5733 (unreadpure): Give it an arg.
5734
5735 * unexalpha.c: Prototype fatal_unexec, mark_x,
5736 update_dynamic_symbols. Declare unexec as void.
5737
5738 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
5739 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
5740
5741 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
5742 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on
5743 DOUG_LEA_MALLOC.
5744
5745 * alloca.c: Use #error.
5746 [POINTER_TYPE]: Use it.
5747
5748 * eval.c (Fdefvar): Doc fix.
5749
5750 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
5751 INITIALIZE_INTERVAL.
5752
5753 * buffer.h: Avoid DECLARE_INTERVALS.
5754
5755 * config.in: Add size_t.
5756
aae41d97
EZ
57572000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
5758
5759 * w16select.c (set_clipboard_data): If there's not enough memory
5760 to put text into clipboard, return 1, as Fw16_set_clipboard_data
5761 expects. In case of other failures, return 3.
5762 (system_error_msg): New error message.
5763 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
5764 system_error_msg.
5765
65aa5e85
GM
57662000-08-16 Gerd Moellmann <gerd@gnu.org>
5767
5768 * term.c (write_glyphs): Also turn off inverse video after turning
5769 off other appearances in case TS_exit_attribute_mode is not equal
5770 to TS_end_standout_mode.
5771 (insert_glyphs): Turn inverse video on/off for each run of glyphs
5772 with the same face.
5773 (turn_off_face): Reset standout_mode only if
5774 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
5775 is equal to TS_end_standout_mode.
5776
ece23901
KH
57772000-08-16 Kenichi Handa <handa@etl.go.jp>
5778
9d7bcb2e
KH
5779 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
5780 sequence at the end of the source block.
5781
ece23901
KH
5782 * ccl.c (Fccl_program_p): Docstring modified.
5783 (Fccl_execute): Likewise.
5784 (Fccl_execute_on_string): Likewise.
5785
5e30eaa2
EZ
57862000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
5787
5788 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
5789
290602fd
KH
57902000-08-16 Kenichi Handa <handa@etl.go.jp>
5791
5792 The following changes are mainly to fix bugs of
5793 encode/decode-coding-string failing if encoding/decoding return
5794 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
5795 variable conversion_buffer.
5796
5797 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
5798 decrement dst_end to avoid buffer overflow in the later call of
5799 string_as_multibyte
5800
5801 * coding.h (conversion_buffer_size, conversion_buffer)
5802 (get_conversion_buffer): Extern deleted.
5803
5804 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
5805 (conversion_buffer, conversion_buffer_size): Variables deleted.
5806 (get_conversion_buffer): Function deleted.
5807 (struct conversion_buffer): New structure.
5808 (MAX_ALLOCA): New macro.
5809 (allocate_conversion_buffer): New macro.
5810 (extend_conversion_buffer, free_conversion_buffer): New functions.
5811 (ccl_coding_driver): Set coding->result.
5812 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
5813 this is the last block of source.
5814 (encode_coding): Likewise. Handle the source block as the last
5815 one only when the whole source text is consumed.
5816 (decode_coding_string): Handle the case that the output buffer is
5817 too small to decode the whole source text. Use
5818 allocate_conversion_buffer, extend_conversion_buffer and
5819 free_conversion_buffer, not get_conversion_buffer.
5820 (encode_coding_string): Likewise.
5821 (init_coding): Function deleted.
5822 (init_coding_once): Delete code to initialize
5823 conversion_buffer_size.
5824
5825 * emacs.c (main): Don't call init_coding.
5826
5827 * msdos.c (IT_write_glyphs): Use a locally declared
5828 conversion_buffer.
5829
5830 * term.c (write_glyphs): Use a locally declared conversion_buffer.
5831 (insert_glyphs): Likewise.
5832
5833 * w32console.c (write_glyphs): Use a locally declared
5834 conversion_buffer.
5835
b9f80d41
EZ
58362000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
5837
5838 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
5839 member of display_info is NULL.
5840
32dc52f7
GM
58412000-08-15 Gerd Moellmann <gerd@gnu.org>
5842
58ed0d3b
GM
5843 * alloc.c (compact_small_strings): Use safe_bcopy, add an
5844 assertion.
5845
32dc52f7 5846 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 5847 appearances with capability `me'.
32dc52f7
GM
5848 (write_glyphs): Switch on inverse video before each face change.
5849
4eb22d33
DL
58502000-08-14 Dave Love <fx@gnu.org>
5851
5852 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
5853 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
5854 (lisp_free): Declare and make static.
5855
5856 * window.c: Fix embedded comment.
5857 (syms_of_window): Fix doc string.
5858
90cbf47e
GM
58592000-08-14 Gerd Moellmann <gerd@gnu.org>
5860
5861 * keymap.c (push_key_description): If C without modifiers is < 32,
5862 make sure to print `C-' before `M-', like in the manual.
5863
440fc135
GM
58642000-08-11 Gerd Moellmann <gerd@gnu.org>
5865
5866 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
5867 since they aren't relocated anymore.
5868 (sxhash_string): Make sure returned hash code fits in a Lisp
5869 integer.
5870
5871 * xdisp.c (try_cursor_movement): Fix handling of cursor in
5872 partially visible line which is smaller than the window's
5873 height.
5874
6e264fad
KH
58752000-08-11 Kenichi Handa <handa@etl.go.jp>
5876
5877 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
5878 the multibyte form of eight-bit-control characters.
5879 (Fccl_execute_on_string): Initialize ccl->multibyte.
5880
5881 * ccl.h (struct ccl_program): New member multibyte.
5882
5883 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
5884
c371f69a
KH
58852000-08-11 Kenichi Handa <handa@etl.go.jp>
5886
5887 * regex.c (regex_compile) <normal_char>: Pay attention to
5888 multibyteness.
5889 (analyse_first) <exactn>: Setup fastmap correctly for
5890 eight-bit-control characters.
5891
58922000-08-11 Kenichi Handa <handa@etl.go.jp>
5893
5894 * termhooks.h (enum event_kind): New member
5895 multibyte_char_keystroke.
5896
5897 * keyboard.c (make_lispy_event): Handle the new event type
5898 multibyte_char_keystroke.
5899
5900 * xterm.c: Include coding.h.
5901 (XTread_socket): Work around a bug of XmbLookupString. If the
5902 input is from XIM, decode it according to the current locale. In
5903 that case, generate multibyte_char_keystroke events.
5904
b8ddbe71
KH
59052000-08-11 Kenichi Handa <handa@etl.go.jp>
5906
5907 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
5908 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
5909
47589c8c
GM
59102000-08-10 Gerd Moellmann <gerd@gnu.org>
5911
5912 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
5913 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
5914 (move_it_in_display_line_to): Record iterator's ascent and descent
5915 before producing glyphs, and restore them when we know the glyph
5916 doesn't fit on the line.
5917 (move_it_to): Restructured so that it's easier to debug. If
5918 moving to a vpos, and not moving to an x or character position,
5919 stop as soon as the specified vpos is reached; don't move further
5920 into that line because that might change the computed line height.
5921 (try_cursor_movement): New function, extracted from the cursor
5922 movement branch of redisplay_window. If ending on a partially
5923 visible line, don't try to scroll if the cursor line is taller
5924 than the window.
5925 (redisplay_window): Use try_cursor_movement.
5926
5927 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
5928 because that function doesn't cope with variable-height lines.
5929
5930 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
5931 box cursor because that's better visible for large images.
5932
c51bacd6
MB
59332000-08-10 Miles Bader <miles@gnu.org>
5934
5935 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
5936
bea56df7
GM
59372000-08-10 Gerd Moellmann <gerd@gnu.org>
5938
5939 * xdisp.c (Vmessages_buffer_name): New variable.
5940 (message_dolog): Use it.
5941 (syms_of_xdisp): Initialize it.
5942
99cd7364
EZ
59432000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
5944
5945 * msdos.c (IT_note_mouse_highlight): Update the calls to
5946 overlays_at.
5947 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
5948 redundant now that keyboard.h is included.
5949
7d093d56
EZ
59502000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
5951
5952 * keyboard.c (kbd_buffer_events_waiting): New function.
5953
5954 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
5955
5956 * msdos.c: Include keyboard.h.
5957 (XMenuActivate): Empty no_event events from the event buffer. If
5958 no events are left after that, call clear_input_pending.
5959 (mouse_clear_clicks): New function, code moved from mouse_init.
5960 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
5961 mouse driver to ``forget'' any past clicks.
5962
5963 * Makefile.in (msdos.o): Depend on keyboard.h.
5964
41e757a6
GM
59652000-08-09 Gerd Moellmann <gerd@gnu.org>
5966
8e7bd231
GM
5967 * lisp.h (input_pending): External declaration.
5968
5969 * dispextern.h (Qredisplay_dont_pause): Declare extern.
5970
5971 * xdisp.c (echo_area_display): Display thoroughly if input is
5972 pending. Bind redisplay-dont-pause to t during the redisplay.
5973 in case input is pending.
5974
5975 * dispnew.c (Qredisplay_dont_pause): New variable.
5976 (syms_of_display): Initialize and staticpro it.
5977 (update_frame_1): Don't interrupt the display for pending input if
5978 redisplay_dont_pause is set.
5979
43028b7e
GM
5980 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
5981
41e757a6
GM
5982 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
5983
2f2174fa
KH
59842000-08-09 Miles Bader <miles@lsi.nec.co.jp>
5985
5986 * callproc.c (Fcall_process): Terminate the unwind-protect around
5987 the post-read-conversion of coding system.
5988
0a6fd67e
MB
5989 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
5990 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
5991 * buffer.h (overlays_at): Update prototype.
5992 * xdisp.c (next_overlay_change): Update call to overlays_at.
5993 * xfaces.c (face_at_buffer_position): Likewise.
5994 * textprop.c (Fget_char_property): Likewise.
5995 * xterm.c (note_mouse_highlight): Likewise.
5996
0c80756e
MB
5997 * minibuf.c (do_completion): Don't consider a simple change of
5998 case as `completion'.
5999
975f250a
KR
60002000-08-08 Ken Raeburn <raeburn@gnu.org>
6001
b347b3fd
KR
6002 * keyboard.c (syms_of_keyboard): Initialize
6003 last_point_position_buffer.
6004 * undo.c (record_delete): Make sure last_point_position_buffer is
6005 a buffer before comparing pointers.
6006
6007 * coding.h (decode_coding_string): Declare.
6008
6009 * intervals.h (Fprevious_single_char_property_change): Declare.
6010
6011 * textprop.c (Fprevious_single_char_property_change): Don't do
6012 arithmetic directly on lisp objects.
6013
25ad1371 6014 * editfns.c (find_field): Use EQ, not ==, to compare Lisp
b347b3fd
KR
6015 objects.
6016
6017 * keyboard.h (menu_item_eval_property): Declare.
6018
6019 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
6020 reuse as buffer name, instead of recreating (and discarding) every
6021 time a message is logged.
6022 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
6023 (current_message_1, truncate_message_1, set_message_1)
6024 (display_echo_area_1, resize_mini_window_1): Signatures changed.
6025 (current_message, truncate_echo_area, display_echo_area)
6026 (resize_echo_area_axactly): Changed calls.
b347b3fd 6027
975f250a 6028 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 6029 Lisp object.
975f250a 6030 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 6031 must be an integer, not a Lisp object.
975f250a 6032
46dc9912
KH
60332000-08-08 Kenichi Handa <handa@etl.go.jp>
6034
6035 * charset.c (Fchar_width): Doc fix.
6036
9f6d1a6c
GM
60372000-08-08 Gerd Moellmann <gerd@gnu.org>
6038
6039 * charset.c (Fstring_width): Doc fix.
6040
ff3d9573
GM
60412000-08-07 Gerd Moellmann <gerd@gnu.org>
6042
41e757a6 6043 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
6044 line, clear ascent and descent members of the iterator structure;
6045 the height of the continued line does not affect the height of the
6046 continuation line.
6047 (make_cursor_line_fully_visible): Do nothing if cursor is on a
6048 line taller than the window.
6049 (redisplay_window) <forced window start>: Handle case that the
6050 middle of the window is not found in any row.
6051 (dump_glyph_row): Show more information.
6052 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
6053 first text line in a glyph matrix.
6054
6055 * xterm.c (x_draw_image_foreground): Avoid drawing outside
6056 of the clip area when image doesn't have a mask.
6057
70fc58b3
GM
6058 * fns.c (sweep_weak_table): Fix survival conditions for
6059 key-or-value and key-and-value weakness.
6060
6061 * .gdbinit (xhashtable): New command.
6062
ac0e96ee
GM
6063 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
6064 tables out of the list of all weak hash tables.
6065
ff3d9573
GM
6066 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
6067 a new buffer is created, make sure echo_area_buffer[] references
6068 the new buffer.
6069
e0d8827b
EZ
60702000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
6071
6072 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
6073 the doc string.
6074
c6f35378
KH
60752000-08-07 Kenichi Handa <handa@etl.go.jp>
6076
6077 * syntax.c (skip_chars): Fix previous change. Make the handling
6078 of unibyte string consistent with that of regex search.
6079
1fd4c450
GM
60802000-08-05 Gerd Moellmann <gerd@gnu.org>
6081
e49aa397
GM
6082 * xmenu.c (popup_get_selection): Use xfree instead of free.
6083
6084 * fileio.c (Finsert_file_contents): Use xfree instead of free.
6085
6086 * editfns.c (Ftranspose_regions): Use xfree instead of free.
6087
6088 * callproc.c (child_setup): Use xfree instead of free.
6089
6090 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
6091 instead of malloc.
6092 (run_mac_command, closedir): Use `xfree' instead of `free'.
6093
6094 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
6095
6096 * eval.c (error): Use xfree instead of free.
6097
1fd4c450
GM
6098 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
6099
6100 * fns.c: Replace `illegal' with `invalid'.
e49aa397 6101 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 6102
82d497fc
KH
61032000-08-05 Kenichi Handa <handa@etl.go.jp>
6104
6105 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
6106 conversion.
6107
59f953a2
NF
61082000-08-04 Noah Friedman <friedman@splode.com>
6109
6110 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
6111 docstring.
6112
688351f2
GM
61132000-08-04 Gerd Moellmann <gerd@gnu.org>
6114
6115 * syntax.c (skip_chars): Fix typo in error message.
6116
2dad51cc
AS
61172000-08-04 Andreas Schwab <schwab@suse.de>
6118
6119 * m/ia64.h: Moved from s/ia64.h.
6120
99bb2c60
KH
61212000-08-04 Kenichi Handa <handa@etl.go.jp>
6122
082a1df2
KH
6123 * process.c (read_process_output): Big simplification. Handle
6124 composition and post-read-conversion of coding system correctly.
6125 (send_process): Handle composition correctly.
6126
6127 * callproc.c (Fcall_process): Handle post-read-conversion of
6128 coding system if any.
6129
99bb2c60
KH
6130 * coding.c (decode_coding_iso2022): More strict check for handling
6131 single shifting.
082a1df2
KH
6132 (coding_restore_composition): Pay attention to the case that
6133 cmp_data is not set properly (because of invalid code in the
6134 source text).
6135 (run_pre_post_conversion_on_str): Include text properties in the
6136 resulting string.
6137 (decode_coding_string): Set members of coding correctly.
99bb2c60 6138
f4988be7
GM
61392000-08-03 Gerd Moellmann <gerd@gnu.org>
6140
6141 * s/ia64.h: New file.
6142
6143 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
6144 Use NULL instead of 0 at the end of variable argument list of
6145 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
6146 sizeof (int) < sizeof (void *).
6147
6148 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
6149 of variable argument lists of XtVaGetValues and XtVaSetValues.
6150
6151 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
6152 variable argument lists of XtVaGetValues and XtVaSetValues.
6153
ead53494
GM
61542000-08-02 Gerd Moellmann <gerd@gnu.org>
6155
6156 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
6157 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
6158
6159 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
6160 prototype.
6161
6162 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
6163 in call to Fsingle_key_description.
6164
6165 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
6166 Callers changed.
6167
61682000-08-02 Colin Walters <walters@cis.ohio-state.edu>
6169
6170 * window.c (display_buffer_reuse_frames): New variable.
6171 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
6172 frames displaying BUFFER.
6173 (syms_of_window): Define Lisp variable
6174 display-buffer-reuse-frames.
6175
10b0f752
MB
61762000-08-01 Miles Bader <miles@gnu.org>
6177
6178 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
6179 when to constrain NEW_POS (they were pretty screwed up before).
6180
16425c4a
EZ
61812000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
6182
6183 * msdos.c (run_msdos_command): Save and restore the master
6184 environment, for the case that child_setup signals an error.
6185 When mirroring slashes in DOS shell commands, don't fail when
6186 argv[2] has embedded blanks.
da288c14
EZ
6187 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
6188 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
6189 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
6190
6191 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
6192 using alloca; free it after run_msdos_command returns.
6193
27f73852
DL
61942000-07-27 Dave Love <fx@gnu.org>
6195
6196 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't
6197 define.
6198 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently
6199 working.
6200
6201 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
6202
c0261b5e
EZ
62032000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
6204
6205 * editfns.c (lisp_time_argument): Fix last change.
6206
b548072f
GM
62072000-07-27 Gerd Moellmann <gerd@gnu.org>
6208
3ab82477
GM
6209 * fns.c (Fdelete): Make it work on vectors and strings in addition
6210 to lists.
6211
b548072f
GM
6212 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
6213 (syms_of_fns): Initialize new variables.
6214 (sweep_weak_table): Handle weakness `key-or-value' and
6215 `key-and-value'.
6216 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
6217 weakness, with t meaning the same as `key-and-value'.
6218
91ae8751
KH
62192000-07-27 Kenichi Handa <handa@etl.go.jp>
6220
6221 * coding.h (struct coding_system): Member safe_charset deleted.
6222
6223 * coding.c (Qsafe_charsets): This variable deleted.
6224 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system): New
6225 variables.
6226 (coding_safe_chars): New function.
6227 (CODING_SAFE_CHAR_P): New macro.
6228 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
6229 checking safe_charsets member of the coding system. Caller
6230 changed.
6231 (detect_coding_iso2022): New local variable safe_chars.
6232 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
6233 safe_charsets member of the coding system.
6234 (decode_coding_iso2022): New local variable safe_chars.
6235 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
6236 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
6237 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
6238 (ENCODE_UNSAFE_CHARACTER): New macro.
6239 (encode_coding_iso2022): New local variable safe_chars. Check
6240 unsafe chars.
6241 (setup_coding_system): Delete the code to initialize
6242 coding->safe_charses
6243 (intersection, find_safe_codings): New functions.
6244 (Ffind_coding_systems_region_internal): New function.
6245 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
6246 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
6247 variable and initialize it.
6248
6249 * fns.c (char_table_ref_and_index): New function.
6250
6251 * lisp.h (char_table_ref_and_index): Add prototype.
6252
34a7a267
SS
62532000-07-26 Sam Steingold <sds@gnu.org>
6254
6255 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 6256 (Ffloat_time): New built-in Lisp function.
34a7a267 6257
a95cb10a
GM
62582000-07-26 Gerd Moellmann <gerd@gnu.org>
6259
3353ef5a
GM
6260 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
6261 for the character code.
6262
6263 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
6264 GNU/Linux.
6265
a95cb10a
GM
6266 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
6267 if called for a popup menu.
6268 (xmenu_show): Store help string in widget values.
6269
b4a12321
DL
62702000-07-26 Dave Love <fx@gnu.org>
6271
6272 * syswait.h: Move some definitions.
6273 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
6274 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
6275 perspicuous definitions.
6276 (WTERMSIG): Fix bit pattern used.
6277
13f5ad37
KH
62782000-07-26 Kenichi Handa <handa@etl.go.jp>
6279
6280 * print.c (print_object): If vector printing is truncated, print
6281 "..." to indicate it as well as the case of list printing.
6282
070fe99c
GM
62832000-07-25 Gerd Moellmann <gerd@gnu.org>
6284
969065c3
GM
6285 * xdisp.c (next_element_from_display_vector): Improve comments.
6286
6287 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
6288 for the character code, and the rest for the face id as in 20.x.
6289 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
6290
6291 * window.c (window_display_table): Cleaned up.
6292
070fe99c
GM
6293 * syntax.c (Fforward_word): Add last arg nil in call of
6294 Fconstrain_to_field.
6295
bad77ef7
EZ
62962000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
6297
969065c3 6298 * fileio.c (Frename_file) [DOS_NT]: If the file names are
bad77ef7
EZ
6299 identical but for the letter-case, don't call
6300 barf_or_query_if_file_exists.
6301
c28da489
MB
63022000-07-25 Miles Bader <miles@gnu.org>
6303
6304 * editfns.c (find_field): Honor special `boundary' fields.
6305 (Qboundary): New variables.
6306 (syms_of_editfns): Initialize Qboundary.
6307 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
6308 Use scan_buffer instead of find_before_next_newline, because it
6309 allows us to detect the boundary case where there's a newline at
6310 the search limit.
6311 * lisp.h (Fconstrain_to_field): Update external declaration.
6312
e3c31fd5
GM
63132000-07-24 Gerd Moellmann <gerd@gnu.org>
6314
6315 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
6316 if that is nil.
c28da489 6317
c66c29a2
DL
63182000-07-24 Dave Love <fx@gnu.org>
6319
6320 * s/sunos4-0.h, s/sol2.h:
6321 (LIBS_TERMCAP): Move from m/sparc.h.
6322
6323 * m/sparc.h (TERMINFO): Moved to system files (probably only
6324 relevant for sunos4 judging by its vintage).
6325 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
6326 __arch64__.
6327
fbe0a958
EZ
63282000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
6329
6330 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
6331 name to single_keymap_panes.
6332
7d88e5c9
AS
63332000-07-24 Andreas Schwab <schwab@suse.de>
6334
6335 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
6336
e024b101
GM
63372000-07-24 Gerd Moellmann <gerd@gnu.org>
6338
6339 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
6340 parameters instead of using int parameters. Expect FN to accept
6341 EMACS_INT parameters.
6342 (display_echo_area, resize_echo_area_axactly, current_message)
6343 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
6344 with new argument list.
6345 (resize_mini_window_1): New callback function.
6346 (current_message_1, truncate_message_1, set_message_1): Change
6347 parameter lists to the new format expected by
6348 with_echo_area_buffer.
6349
25c1a9ce
KH
63502000-07-24 Kenichi Handa <handa@etl.go.jp>
6351
6352 * fontset.c (fontset_ref): Remove INLINE declaration.
6353 (fontset_ref_via_base): Likewise.
6354 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
6355 to downcase.
6356
7f987ac0
EZ
63572000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
6358
6359 * msdos.c (IT_note_mouse_highlight): Process overlays in the
6360 correct order of priority. If help echo was found in an overlay,
6361 use that overlay as the object in which the help echo was found.
6362
e2db3069
MB
63632000-07-22 Miles Bader <miles@gnu.org>
6364
6365 * textprop.c (Fprevious_single_char_property_change): The initial
6366 property value should be from the position preceding POSITION, not
6367 following it.
6368
5e3203e4
EZ
63692000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
6370
6371 * coding.c (syms_of_coding): Doc fix for
6372 inhibit-iso-escape-detection.
6373
62145073
GM
63742000-07-21 Gerd Moellmann <gerd@gnu.org>
6375
c20aeb83
GM
6376 * xterm.c (note_mouse_highlight): Process overlays in the right
6377 order of priority.
34a7a267 6378
743934db
GM
6379 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
6380
6381 * xterm.c (note_mouse_highlight): If help-echo was found in an
6382 overlay, use that overlay as the object in which the help was
6383 found.
6384
d1dc7e43 6385 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 6386
62145073
GM
6387 * window.c (foreach_window): Instead of a fake variable argument
6388 list, take one USER_DATA argument.
6389 (foreach_window_1): Likewise, and call callback functions with two
6390 args, the window and USER_DATA.
6391 (struct check_window_data): New struct.
6392 (check_window_containing): Use it.
6393 (window_from_coordinates): Set up a struct check_window_data for
6394 foreach_window.
6395 (add_window_to_list, freeze_window_start): Change parameters
6396 according to new calling convention.
6397
6398 * window.h (foreach_window): Change prototype.
6399
6400 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
6401
64022000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
6403
6404 * xmenu.c (menu_help_callback): Call show_help_echo with
6405 additional arguments OBJECT and POS.
6406
11270583
KH
64072000-07-21 Kenichi Handa <handa@etl.go.jp>
6408
07b14857
KH
6409 * data.c (Faset): Allow storing any multibyte character in a
6410 string. Convert unibyte string to multibyte if necessary.
6411
11270583
KH
6412 * xfns.c (x_encode_text): New function.
6413 (x_set_name): Use x_encode_text.
6414 (x_set_title): Likewise.
6415
6416 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
6417
6418 * xterm.h (x_encode_text): Add prototype.
6419
bc75b4fd
DL
64202000-07-20 Dave Love <fx@gnu.org>
6421
6422 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
6423 xfree, not free.
6424
48c14970
EZ
64252000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
6426
6427 * msdos.c (help_echo_window): New variable.
6428 (syms_of_msdos): Initialize and staticpro it.
6429 (IT_note_mode_line_highlight): Set help_echo_window.
6430 (IT_note_mouse_highlight): Ditto.
6431 (dos_rawgetc): Store help_echo_window in the second event produced
6432 for HELP_EVENTs.
6433
6434 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
6435 Record the object that generated the help echo and the position of
6436 that object in help_echo_object and help_echo_pos. Record that
6437 some glyphs in a row are displayed in mouse-face.
6438 (IT_update_begin): Don't clear mouse highlight unless one of the
6439 enabled glyph rows is marked as being displayed in mouse-face.
6440 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
6441 and position recorded in help_echo_object and help_echo_pos to the
6442 event queue.
6443 (IT_menu_display): Accept a new argument PN: the pane number of
6444 the current menu pane. Record the pane number and the item
6445 number of the item which has associated help string.
6446 (XMenuActivate): Update the prototype for help_callback in
6447 function declaration. Call IT_menu_display with the current menu
6448 pane number as an additional argument. Call help_callback with
6449 two additional arguments: the pane number and the item number of
6450 the menu item associated with the help text.
6451 (help_echo_object, help_echo_pos): New variables.
6452 (syms_of_msdos): Initialize them and staticpro help_echo_object.
6453
6454 * msdos.h (XMenuActivate): Update prototype.
6455
4279296d
GM
64562000-07-19 Gerd Moellmann <gerd@gnu.org>
6457
47db06aa
GM
6458 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
6459 Add some more prototypes.
6460
6461 * xterm.c, xterm.h: Add some more prototypes.
6462
6463 * lisp.h (Fnext_single_char_property_change): Add prototype.
6464
6465 * dispnew.c (direct_output_for_insert): Remove confusing
6466 outer local variable mouse_face_overwritten_p.
6467 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
6468
4279296d
GM
6469 * alloc.c (allocate_string_data): Don't copy old string contents.
6470
670acd62
KH
64712000-07-19 Kenichi Handa <handa@etl.go.jp>
6472
6473 * coding.c (code_convert_region): Delete text properties before
6474 shrinking the conversion region.
6475
7cea38bc
GM
64762000-07-18 Gerd Moellmann <gerd@gnu.org>
6477
dc1cac59
GM
6478 * dispnew.c (update_text_area): Write the whole row if it
6479 has mouse-face in it.
6480
85a8aca9
GM
6481 * xfaces.c (face-alternative-font-family-alist): Remove
6482 DEFVAR_LISP; staticpro instead.
6483
34a7a267 6484 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
6485 new arguments.
6486
6487 * keyboard.c (show_help_echo): Add parameter WINDOW.
6488 (read_char): Call show_help_echo with window extracted from Lisp
6489 help event.
6490 (gen_help_event): Add parameter WINDOW.
6491
6492 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
6493
6494 * xterm.c (help_echo_window): New variable.
6495 (note_mouse_highlight, note_tool_bar_highlight): Set
6496 help_echo_window.
6497 (XTread_socket): Pass help_echo_window to gen_help_event.
6498 (syms_of_xterm): Initialize and staticpro help_echo_window.
6499
f8276b77
DL
65002000-07-18 Dave Love <fx@gnu.org>
6501
6502 * Makefile.in: Fix dependencies of blockinput.h on atimer.h,
6503 systime.h.
6504
088831a6
GM
65052000-07-18 Gerd Moellmann <gerd@gnu.org>
6506
3d6cd763
GM
6507 * alloc.c (allocate_string_data): If string had already data
6508 assigned, copy old contents to new string data.
6509
6510 * coding.c (syms_of_coding): Fix typo in spelling of variable
6511 `inhibit-iso-escape-detection'.
6512
088831a6
GM
6513 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
6514
6515 * Makefile.in: Add dependencies on dispextern.h.
6516 (alloca.o): Don't define malloc and define EMACS_FREE instead of
6517 `free'; both can conflict with system header files.
6518
bc8a8d55
KH
65192000-07-18 Kenichi Handa <handa@etl.go.jp>
6520
6521 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
6522 undefined.
6523
069f5950
DL
65242000-07-18 Dave Love <fx@gnu.org>
6525
6526 * window.c (Fwindow_list): Declare arg `window'.
6527
aa96c820
KH
65282000-07-18 Kenichi Handa <handa@etl.go.jp>
6529
6530 * coding.c (setup_coding_system): Don't override the explicitly
6531 specified designations.
6532
06be8d32
MB
65332000-07-15 Miles Bader <miles@gnu.org>
6534
6535 * editfns.c (char_property_eq, char_property_stickiness): Renamed
6536 from `text_property_eq' and `text_property_stickiness', respectively.
6537 (find_field, Fconstrain_to_field, char_property_eq)
6538 (char_property_stickiness): Changed to call char-property functions
6539 instead of text-property-only ones.
6540
6541 * textprop.c (Fnext_single_char_property_change): Made a subr (was
6542 `next_single_char_property_change'). Do more error checking, and
6543 cleanup limit behavior.
6544 (Fprevious_single_char_property_change): New function.
6545 (syms_of_textprop): Initialize new subrs.
6546
6547 * xdisp.c (display_prop_end, invisible_text_between_p):
6548 Call Fnext_single_char_property_change instead of
6549 next_single_char_property_change.
6550
3fddcdc3
JR
65512000-07-15 Jason Rumney <jasonr@gnu.org>
6552
6553 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
6554 after menu is finished with.
6555 (add_menu_item): Only consider wv->title as a menu title.
6556 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
6557
6558 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
6559 null title.
6560 (FONT_REGEXP): Remove unused macro, and its sub-components.
6561 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
6562
6563 * w32term.c (help_echo_object, help_echo_pos): New variables.
6564 (note_mode_line_highlight): Store additional information about the
6565 help-echo in help_echo_object and help_echo_pos. Check both
6566 `local-map' and `keymap' properties for changing the cursor
6567 (note_mouse_highlight): Store additional information about the
6568 help-echo in help_echo_object and help_echo_pos.
6569 (note_tool_bar_highlight): Set help_echo_object to nil and
6570 help_echo_pos to -1.
6571 (w32_read_socket): Use gen_help_event instead of filling
6572 input_events manually.
6573 (syms_of_w32term): Staticpro help_echo_object.
6574 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
6575 set, arrange for a mouse-highlight redisplay in
6576 XTframe_up_to_date.
6577 (x_clear_mouse_face): New function.
6578 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
6579 (x_update_window_begin): No need to turn off the mouse
6580 highlight here.
6581 (show_mouse_face): Set the mouse_face_p flag of glyph rows
6582 depending on whether they contain glyphs highlighted in
6583 mouse-face.
6584 (x_fill_stretch_glyph_string): Consume runs of stretch
6585 glyphs instead of a single one.
6586 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
6587 with new argument list.
6588 (x_set_glyph_string_gc): Make sure the face's GC is valid.
6589 (x_append_glyph, x_append_composite_glyph)
6590 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
6591 changes in struct glyph starting 1999-12-27. See comments for
6592 xterm.c on 2000-07-05.
6593
178c5d9c
SS
65942000-07-14 Sam Steingold <sds@gnu.org>
6595
6596 * xfaces.c (realize_x_face): Fix the last patch:
6597 check `default_face' before dereferencing.
6598
6fe533f6
DL
65992000-07-14 Dave Love <fx@gnu.org>
6600
069f5950 6601 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 6602
dd7b81cf
KH
66032000-07-14 Kenichi Handa <handa@etl.go.jp>
6604
0693904a 6605 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 6606 default_face's fontset, not using the default fontset.
0693904a 6607
dd7b81cf
KH
6608 * coding.c (inhibit_iso_escape_detection): New variable.
6609 (syms_of_coding): Make it a Lisp variable.
6610 (detect_coding_iso2022): If inhibit_iso_escape_detection is
6611 nonzero, ignore ISO2022's escape sequence.
6612
d5aa31d8
GM
66132000-07-14 Gerd Moellmann <gerd@gnu.org>
6614
e5acf0ca
GM
6615 * alloca.c (malloc) [emacs]: Define as xmalloc.
6616
bd23a692
GM
6617 * xfns.c (Fx_show_tip): If frame parameters contain a position,
6618 use that instead of the mouse position. Add parameters DX and DY.
6619
6620 * dispextern.h (Fx_show_tip): Adjust number of parameters
6621 in prototype.
6622
9662da0b
GM
6623 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
6624 if HELP is a function, call it with OBJECT and POS as parameters
6625 to get the help to display.
6626 (gen_help_event, kbd_buffer_store_help_event): New functions.
6627 (kbd_buffer_get_event): Construct the Lisp help-event differently.
6628 (read_char): Call show_help_echo with new parameters.
6629
178c5d9c 6630 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
6631 Add prototypes.
6632
6633 * xterm.c (help_echo_object, help_echo_pos): New variables.
6634 (note_mode_line_highlight): Store additional information about the
6635 help-echo in help_echo_object and help_echo_pos. Check both
6636 `local-map' and `keymap' properties for changing the cursor
6637 (note_mouse_highlight): Store additional information about the
6638 help-echo in help_echo_object and help_echo_pos.
6639 (note_tool_bar_highlight): Set help_echo_object to nil and
6640 help_echo_pos to -1.
6641 (XTread_socket): Use gen_help_event instead of filling
6642 input_events manually.
6643 (syms_of_xterm): Staticpro help_echo_object.
6644
6645 * xmenu.c (menu_highlight_callback): Use
6646 kbd_buffer_store_help_event instead of setting up and input_event
6647 structure manually.
6648
6649 * xdisp.c (eval_form): GCPRO argument sexpr.
6650 (call_function): New function.
6651 (handle_single_display_prop): Use call_function and FUNCTIONP
6652 instead of checking whether if font_height is a symbol and
6653 using eval_form.
6654
6655 * eval.c (internal_condition_case_2): New function.
6656
6657 * lisp.h (FUNCTIONP): New macro.
6658 (internal_condition_case_2, call_function): Add prototypes.
6659
d5aa31d8
GM
6660 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
6661 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
6662 Always set `arg' member of input_events.
6663 (construct_menu_click): Unused function removed.
6664
6665 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
6666
6667 * w32term.c (construct_mouse_click, construct_mouse_wheel)
6668 (construct_drag_n_drop, x_scroll_bar_handle_click)
6669 (w32_read_socket): Always set `arg' member of input_events.
6670
6671 * keyboard.c (show_help_echo): Use eval_form. Add comment.
6672
6673 * lisp.h (eval_form): Add prototype.
6674
6675 * xdisp.c (eval_form): Make it externally visible.
6676
0f1a9b23
GM
66772000-07-13 Gerd Moellmann <gerd@gnu.org>
6678
6679 * xterm.c (x_handle_tool_bar_click): Store the frame in the
6680 frame_or_window slot of TOOL_BAR_EVENT input events instead of
6681 consing. For prefix events, store the frame in the `arg' slot of
6682 the event, otherwise store the key there.
6683 (XTread_socket): Instead of consing, use the frame_or_window slot
6684 of HELP_EVENTs for the frame, and the `arg' slot for the help
6685 string.
6686
6687 * xmenu.c (menu_highlight_callback): Store help string in the
6688 `arg' member of the input event; don't cons.
6689 (menubar_selection_callback): Use the `arg' slot of input events
6690 to queue additional information, instead of consing.
6691
6692 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
6693
6694 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
6695 TOOL_BAR_EVENTs.
6696 (w32_read_socket): Adapt to changes in HELP_EVENTs.
6697
6698 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
6699 input events to queue additional information, instead of consing.
6700
6701 * keyboard.c (kbd_buffer_gcpro): Renamed from
6702 kbd_buffer_frame_or_window. Now used for all Lisp objects
6703 referenced from the input queue.
6704 (kbd_buffer_store_event): Always use structure assignment for
6705 copying input events. Record all Lisp objects referenced from
6706 events in kbd_buffer_gcpro.
6707 (kbd_buffer_get_event): Construct Lisp `help-echo' events
6708 differently from input events. Test for prefix menu_bar_events
6709 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
6710 event in kbd_buffer_gcpro to nil.
6711 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
6712 frame_or_window is equal to its arg member as prefix events.
6713 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
6714 used by an input event to nil.
6715 (init_keyboard): Use two times the size of the input queue
6716 for kbd_buffer_gcpro.
6717 (syms_of_keyboard): Likewise.
6718
6719 * emacs.c (handle_USR2_signal, handle_USR1_signal): Use
6720 USER_SIGNAL_EVENT.
6721
6722 * termhooks.h (struct input_event): Add member `arg'.
6723 (MENU_BAR_EVENT): Renamed from menu_bar_event.
6724 (USER_SIGNAL_EVENT): Renamed from user_signal.
6725
6726 * xfaces.c (ASET): Remove definition.
6727
6728 * lisp.h (AREF, ASET, ASIZE): New macros.
6729
6730 * fontset.c (AREF, ASIZE): Remove definitions.
6731
6732 * fns.c (AREF): Remove definition.
178c5d9c 6733
0f1a9b23
GM
6734 * composite.c (AREF): Remove definition.
6735
712eaef2
GM
67362000-07-12 Gerd Moellmann <gerd@gnu.org>
6737
d8ee7803
GM
6738 * dispnew.c (redraw_overlapped_rows): Add missing local.
6739 (scrolling_window): Remove debug code.
6740
712eaef2
GM
6741 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
6742 Before scrolling, turn off a mouse-highlight in the window
6743 being scrolled.
6744
6745 * xterm.c (x_update_window_end): Add parameter
6746 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
6747 redisplay in XTframe_up_to_date.
6748 (x_clear_mouse_face): New function.
6749 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
6750
6751 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
6752 current glyph row.
6753 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
6754 it when any row is written to that contains glyphs highlighted in
6755 mouse-face.
6756 (update_window): Call the window update end hook with new
6757 parameter MOUSE_FACE_OVERWRITTEN_P.
6758 (direct_output_for_insert): Give up if row contains mouse-face.
6759
6760 * dispextern.h (struct redisplay_interface): Add parameter
6761 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
6762 (clear_mouse_face): New function pointer member.
6763
02010917
SM
67642000-07-11 Stefan Monnier <monnier@cs.yale.edu>
6765
6766 * syntax.c (back_comment): Use one switch rather than a few `if's.
6767 Obey open_paren_in_column_0_is_defun_start.
6768 When reverting to the `slow' method, try to nicely handle the case
6769 of nested comments by checking that the comment-starter we found
6770 does indeed match the comment-ender.
6771 (scan_sexps_forward, scan_sexps_forward):
6772 Ignore excessive opening parenthesis rather than throwing an error.
6773
d76c03ea
GM
67742000-07-11 Gerd Moellmann <gerd@gnu.org>
6775
6776 * doc.c (Fsubstitute_command_keys): Handle case that a GC
6777 in Fwhere_is_internal or get_keymap_1 relocates string contents.
6778
6779 * dispnew.c (direct_output_forward_char): Give up if currently
6780 displaying a message instead of the minibuffer contents.
6781
6782 * xterm.c (x_update_window_begin): No need to turn off the mouse
6783 highlight here.
6784 (show_mouse_face): Set the mouse_face_p flag of glyph rows
6785 depending on whether they contain glyphs highlighted in
6786 mouse-face.
6787
6788 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
6789 compare the mouse_face_p flags of both rows.
6790
6791 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
6792
d55ead18
EZ
67932000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
6794
6795 * keyboard.c (show_help_echo): Accept additional parameter
6796 ok_to_overwrite_keystroke_echo.
6797 (read_char): Call show_help_echo with a zero
6798 ok_to_overwrite_keystroke_echo argument.
6799 * keyboard.h (show_help_echo): Update prototype of
6800 show_help_echo.
6801 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
6802 ok_to_overwrite_keystroke_echo argument.
6803 * w32menu.c (w32_menu_display_help): Call show_help_echo with
6804 non-zero ok_to_overwrite_keystroke_echo argument.
6805
df75b1a3
GM
68062000-07-10 Gerd Moellmann <gerd@gnu.org>
6807
4b92c49a
GM
6808 * xdisp.c (try_window_id): If changes are all below what is
6809 displayed in the window, and point is in the window, we still
6810 might have to find point on the display.
6811
6812 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
6813 glyphs instead of a single one.
6814 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
6815 with new argument list.
6816 (x_set_glyph_string_gc): Make sure the face's GC is valid.
6817
df75b1a3
GM
6818 * keymap.c (get_keymap_1): Add comment that this function can GC.
6819 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
6820 comment that functions can GC.
6821 (Fset_keymap_parent): GCPRO arg KEYMAP.
6822
4314cf3e
EZ
68232000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
6824
6825 * msdos.c (XMenuActivate): After exiting the menu, restore the
6826 echo area message and erase it.
6827
ab49ce15
KH
68282000-07-10 Kenichi Handa <handa@etl.go.jp>
6829
6830 * fontset.c (Ffontset_info): Make the return value more compatible
6831 with that of Emacs 20.
6832
090a072f
GM
68332000-07-07 Gerd Moellmann <gerd@gnu.org>
6834
6835 * eval.c (Fsignal): Handle case that backtrace_list is null.
6836
f92de4a6
KH
68372000-07-07 Kenichi Handa <handa@etl.go.jp>
6838
6839 * ccl.c (Fccl_execute): Typo fixed.
6840
dd8888a1
GM
68412000-07-06 Gerd Moellmann <gerd@gnu.org>
6842
e5c81191 6843 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 6844
dd8888a1
GM
6845 * window.c (Fwindow_list): Reverse list at the end.
6846 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
6847 means allow windows on OWINDOW's frame, only.
6848 (window_loop): Simplified; use Fwindow_list.
6849
6850 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
6851
485266d0
GM
68522000-07-05 Gerd Moellmann <gerd@gnu.org>
6853
6854 * xterm.c (XTread_socket): Increment handling_signal at the start,
6855 decrement it at the end.
6856
6857 * eval.c (handling_signal): New variable.
6858 (Fsignal): Abort if handling_signal is non-zero.
6859
6860 * lisp.h (handling_signal): External declaration.
178c5d9c 6861
485266d0
GM
6862 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
6863
80fcd514
KR
68642000-07-05 Ken Raeburn <raeburn@gnu.org>
6865
6866 Sound support for NetBSD through "Linux emulation" support:
6867 * config.in (HAVE_SOUNDCARD_H): Undef.
6868 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
6869 * Makefile.in (LIBSOUND): New variable.
6870 (LIBES): Include it.
6871 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and
6872 <soundcard.h>.
6873 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined
6874 elsewhere.
6875 (vox_open): Use DEFAULT_SOUND_DEVICE.
6876 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
6877
d5c5cddd
GM
68782000-07-05 Gerd Moellmann <gerd@gnu.org>
6879
6880 * print.c (print_error_message): If Vsignaling_function is set,
6881 show it in *Messages*.
6882
6883 * lisp.h (Vsignaling_function): External declaration.
6884
6885 * eval.c (Vsignaling_function): New variable.
6886 (Fsignal): Compute it.
6887 (syms_of_eval): Staticpro it.
6888
65171e3a
DL
68892000-07-05 Dave Love <fx@gnu.org>
6890
6891 * syswait.h: Use the autoconf recommended approach. Old code
6892 #if'd out in case we need to revert.
6893
178c5d9c 6894 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 6895
e2c46326
AI
68962000-07-05 Andrew Innes <andrewi@gnu.org>
6897
6898 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
6899 when non-NULL instead of __morecore, to take account of buffer
6900 memory. This also solves a problem with spurious memory warnings
6901 on Windows.
6902
6903 * ralloc.c: Make real_morecore non-static.
6904
6905 * eval.c (internal_condition_case): Comment out abort if
6906 interrupt_input_blocked is not zero.
6907
6908 * makefile.nt: Add support for `bootstrap' and related targets.
6909 Include minimal debug info in emacs.exe in release build.
6910 Remove all dependencies on lisp.h, and fixup some others.
6911
6912 * w32.c (init_environment): Install code from 20.7 for providing
6913 default values for environment variables, based on the
6914 executable's own location.
6915 (map_w32_filename): Handle filenames that are longer than
6916 MAX_PATH.
6917 (sys_socket): Install socket inheritance bug fix from 20.7.
6918
6919 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
6920 here via blockinput.h).
6921
a027a91b
SM
69222000-07-05 Stefan Monnier <monnier@cs.yale.edu>
6923
e4b31601
SM
6924 * w32menu.c (w32_menu_display_help):
6925 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
6926
6927 * keyboard.h (show_help_echo): Declare.
6928
6929 * keyboard.c (show_help_echo): New function, extracted from read_char.
6930 Feval its `msg' argument if it's a cons cell.
6931 (read_char): Use it.
4cf8d9d5 6932 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 6933
178c5d9c 6934 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 6935 (note_tool_bar_highlight, XTread_socket):
178c5d9c 6936 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
6937 (dos_rawgetc):
6938 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
6939 (note_tool_bar_highlight, w32_read_socket):
6940 Do not gratuitously ignore non-string `help-echo' properties.
6941
88d75730
GM
69422000-07-05 Gerd Moellmann <gerd@gnu.org>
6943
969f7e79
GM
6944 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
6945
71201b00
GM
6946 * window.c (delete_all_subwindows): Reset Vwindow_list.
6947
88d75730
GM
6948 * xterm.c (x_append_glyph, x_append_composite_glyph)
6949 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
6950 changes in struct glyph starting 1999-12-27. Some bit-fields of
6951 struct glyph were not set, which made glyphs unequal when compared
6952 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
6953 effects were the result. This also depended on the contents of
6954 memory returned by xmalloc. If flickering happens again, activate
6955 the code in clear_glyph_row that's in #if 0. If the flickering is
6956 gone with that, chances are that it is caused by something
6957 similar.
6958
6959 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 6960
88d75730
GM
6961 * dispextern.h: Add some comments.
6962
6963 * window.c (add_window_to_list): Add parameter LIST.
6964 (window_list): Order list so that, for each frame, windows are
6965 in canonical order, and so that frames appear in the list in
6966 the order given by Vframe_list.
6967 (next_window): Reverse the handling of NEXT_P.
6968
53654733
GM
69692000-07-04 Gerd Moellmann <gerd@gnu.org>
6970
87efd256
GM
6971 * window.c (Vwindow_list): New variable.
6972 (make_window, delete_window): Set Vwindow_list to nil.
6973 (check_window_containing): New function.
6974 (window_from_coordinates): Rewritten.
6975 (add_window_to_list, window_list, candidate_window_p)
6976 (decode_next_window_args, next_window): New functions.
6977 (Fnext_window, Fprevious_window): Rewritten in terms of
6978 next_window.
6979 (Fwindow_list): New function.
6980 (Fother_window): Cleaned up.
6981 (foreach_window): Add a longer "variable argument list". Let
6982 callback function return 0 to indicate that cycling over windows
6983 should stop.
6984 (foreach_window_1): Likewise.
6985 (freeze_window_start): Return int.
6986 (init_window): New function.
6987 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
6988
6989 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
6990 input_event with bzero.
6991 (main): Call init_window.
6992
53654733
GM
6993 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
6994 a menu filter.
6995
4a8c194f
KH
69962000-07-04 Kenichi Handa <handa@etl.go.jp>
6997
6998 * composite.h (make_composition_value_copy): Extern it.
6999
7000 * composite.c (make_composition_value_copy): New function.
7001
7002 * editfns.c (Fformat): While copying text properties, make each
7003 composition property value a copy.
7004
7005 * fns.c (concat): While copying text properties, make each
7006 composition property value a copy.
7007
831a6cb0
GM
70082000-07-03 Gerd Moellmann <gerd@gnu.org>
7009
2f516940
GM
7010 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
7011
178c5d9c 7012 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
7013 marked already.
7014
831a6cb0
GM
7015 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
7016 include those frames as candidates which have their focus
7017 redirected to the minibuffer frame.
7018
d9c4f922
SM
70192000-07-03 Stefan Monnier <monnier@cs.yale.edu>
7020
7021 * fns.c (Fputhash): Return `value' rather than nil.
7022
3780bc22
GM
70232000-06-30 Gerd Moellmann <gerd@gnu.org>
7024
97d176db
GM
7025 * frame.c (next_frame): Don't check focus redirection in case
7026 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
7027 unless their focus is redirected, which contradicts the
7028 specification of next-frame, and leads to infinite loops in
7029 certain situations when cycling through windows with next-window.
7030
dca9961d
KH
70312000-06-30 Kenichi Handa <handa@etl.go.jp>
7032
7033 * coding.c (code_convert_region): Even if the length of text is
7034 zero, try to convert it if coding->type is coding_type_ccl.
7035 (decode_coding_string, encode_coding_string): Likewise.
7036
d5483ab1
GM
70372000-06-28 Gerd Moellmann <gerd@gnu.org>
7038
af5c25e1 7039 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 7040 the display if windows_or_buffers_changed.
af5c25e1
GM
7041
7042 * dispnew.c (struct row_entry): New structure.
7043 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
7044 (row_table_size, old_lines, new_lines, old_lines_size)
7045 (new_lines_size, run_pool, runs_size, runs): New variables.
7046 (add_row_entry): New function.
7047 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 7048 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
7049 holding them in local variables. Use a larger hash table whose
7050 size depends on glyph matrix sizes. Don't use bzero to clear the
7051 hash table; instead, clear used slots only.
7052
7053 * fns.c (next_almost_prime): Make it externally visible.
7054
7055 * lisp.h (next_almost_prime): Add prototype.
7056
d5483ab1
GM
7057 * s/isc4-0.h (sigunblock): Define.
7058
7059 * s/sco5.h (sigunblock): Define.
7060
93e40f40
DL
70612000-06-27 Dave Love <fx@gnu.org>
7062
7063 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
7064 (moved to osf5-0.h).
7065 [!NOT_C_CODE]: Protect string.h stuff.
7066
7067 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
7068 (sys_siglist, NSIG): Definitions moved here from osf1.h.
7069
3c4b7685
GM
70702000-06-27 Gerd Moellmann <gerd@gnu.org>
7071
97d176db 7072 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
7073 below the last line from the needed window height.
7074
32cad0aa
SM
70752000-06-26 Stefan Monnier <monnier@cs.yale.edu>
7076
7077 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
7078 (Fwidget_get): Use it.
7079 (syms_of_fns): Defsubr it.
7080
2c69ced2
GM
70812000-06-26 Gerd Moellmann <gerd@gnu.org>
7082
178c5d9c 7083 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
7084 display info for XIM.
7085 (xim_open_dpy): Likewise.
7086 (xim_close_dpy): Don't free the display info's XIM.
7087
7088 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
7089
7090 * config.in (USE_XIM): New define.
7091
3fc720e4
GM
7092 * keymap.c (get_keyelt): For menu-items containing a `:filter
7093 FILTER', apply FILTER to the menu-item's definition to get the
7094 real definition to use.
7095
7096 * lisp.h (QCfilter): External declaration.
7097
2c69ced2
GM
7098 * xfns.c (Fimage_size): New function.
7099 (syms_of_xfns): Defsubr it.
7100
f978b2a2
AS
71012000-06-26 Andreas Schwab <schwab@suse.de>
7102
7103 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
7104 Fstring_as_unibyte.
7105
94cc7892
DL
71062000-06-25 Dave Love <fx@gnu.org>
7107
7108 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag,
7109 tgetnum.
7110
7111 * Makefile.in (blockinput.h): Depend on atimer.h.
7112 (atimer.h): Depend on systime.h.
7113
7114 * blockinput.h: Protect against multiple inclusion. Include
7115 atimer.h.
7116
7117 * atimer.h: Protect against multiple inclusion. Include
7118 systime.h.
7119
7120 * lisp.h (swap_in_global_binding): Declare.
7121
b8c24556
KR
71222000-06-24 Ken Raeburn <raeburn@gnu.org>
7123
7124 * process.c (Fopen_network_stream): Turn off atimers for duration
7125 of call to connect. (Patch from Gerd.)
7126
8cf8560b
DL
71272000-06-23 Dave Love <fx@gnu.org>
7128
511c7541
DL
7129 * ralloc.c: Maybe include unistd.h
7130
8cf8560b
DL
7131 * emacs.c (setgrp): Undefine before defining.
7132 (malloc_warning, set_time_zone_rule, index): Prototype.
7133
7134 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
7135 HAVE_STRUCT_TIMEZONE.
7136
7137 * s/osf1.h: Move string.h hack here from alpha.h and make it
7138 conditional.
7139 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
7140 _XOPEN_SOURCE.
7141 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
7142 (SOCKLEN_TYPE): Don't define.
7143
7144 * m/alpha.h: Remove string.h hack.
7145
7146 * s/osf5-0.h: New file.
7147
7148 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
7149 include time.h, done by systime.h.
7150 [__FreeBSD__]: Remove redundant includes.
7151
3fc720e4 7152 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
7153 (delete_temp_file): Return Qnil to avoid warning.
7154
7155 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
7156
7157 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
7158 HAVE_X_WINDOWS.
7159
7160 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
7161
7162 * composite.h (compose_text): Declare.
7163
7164 * xterm.c: Don't include sys/types.h unconditionally. Don't
7165 protect its inclusion with !USG (following xmenu.c).
7166
ea055732
GM
71672000-06-23 Gerd Moellmann <gerd@gnu.org>
7168
7169 * xfns.c (x_create_tip_frame): Initialize frame's colors like
7170 in x_create_frame.
7171
74b01b80
EZ
71722000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
7173
7174 * coding.c (decode_eol_post_ccl): Special handling for undecided
7175 and inconsistent EOL types.
7176
64f3a166
GM
71772000-06-22 Gerd Moellmann <gerd@gnu.org>
7178
16cf31f7
GM
7179 * xrdb.c (x_load_resources): Add default resource for scroll bar's
7180 trough color and main window's background color.
7181
178c5d9c 7182 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events
16cf31f7
GM
7183 differently.
7184
7185 * xterm.h (Xt_app_con): External declaration.
7186
7187 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 7188
486a103d
GM
7189 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
7190
64f3a166
GM
7191 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
7192 (handle_invisible_prop): Record the start of invisible text in
7193 it->add_overlay_start.
7194 (struct overlay_entry): Add member `overlay'.
7195 (handle_overlay_change): Simplify.
7196 (next_overlay_string): After having processed overlay strings at the
7197 end of the buffer, record that fact in
7198 it->overlay_strings_at_end_processed_p.
7199 (compare_overlay_entries): If before- and after-strings come
7200 from the same overlay, let before-strings come first.
7201 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
7202 (load_overlay_strings): Take it->add_overlay_start into account
7203 when adding overlay strings.
7204
7205 * dispextern.h (struct it): Add member add_overlay_start.
7206
bb746ea6
DL
72072000-06-22 Dave Love <fx@gnu.org>
7208
7209 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
7210
7211 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
7212
a8f573f3
KH
72132000-06-22 Kenichi Handa <handa@etl.go.jp>
7214
7215 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
7216 is greater than 0.
7217
9f2bbc92
DL
72182000-06-21 Dave Love <fx@gnu.org>
7219
178c5d9c 7220 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 7221
3ee5041c
SM
72222000-06-21 Stefan Monnier <monnier@cs.yale.edu>
7223
7224 * syntax.c (back_comment): Simplify string-parity counting (with
7225 the added benefit of handling multiple string-styles as long as
7226 they are not intertwined).
7227 Jump to the slow code as soon as a comment starter is found in
7228 a "string_lossage" position. Fixes the case: " /* " /* " */.
7229
4c343001
DL
72302000-06-21 Dave Love <fx@gnu.org>
7231
7232 * Makefile.in: Use GETLOADAVG_LIBS.
7233
7234 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
7235 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
7236
e6365855
SM
72372000-06-20 Stefan Monnier <monnier@cs.yale.edu>
7238
7239 * syntax.c (describe_syntax): Recognize the `n'estable bit.
7240 (Fforward_comment, scan_lists):
7241 Check the comstyle of single-char comment-starters.
7242 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
7243 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
7244 Check the comstyle of single-char comment-starters.
7245 Clarify control-flow around the Scomment case.
e6365855 7246
5700d2cc
DL
72472000-06-20 Dave Love <fx@gnu.org>
7248
d355bd8a
SM
7249 * fns.c (make_hash_table, maybe_resize_hash_table):
7250 Cast arg of next_almost_prime.
5700d2cc 7251
178c5d9c 7252 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
7253
7254 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
7255 and unistd.h.
7256
4a27bdfb
GM
72572000-06-20 Gerd Moellmann <gerd@gnu.org>
7258
a61d762c
GM
7259 * keyboard.c (adjust_point_for_property): Check if display
7260 property should be treated as intangible by looking at its
7261 value.
7262
178c5d9c 7263 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
7264 (display_prop_intangible_p): New functions.
7265
7266 * dispextern.h (display_prop_intangible_p): Add prototype.
7267
7268 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 7269
4a27bdfb
GM
7270 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
7271 argument to sigprocmask.
7272
7273 * s/sco5.h (sigblock): Redefined to pass a pointer as second
7274 argument to sigprocmask.
7275
7276 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
7277 sigprocmask_set, and pass a pointer to it to sigprocmask.
7278
7279 * sysdep.c (sigprocmask_set): New variable.
7280
7281 * fileio.c (make_temp_name): Don't use `%s' in string passed to
7282 report_file_error.
7283
427ec082
SS
72842000-06-20 Sam Steingold <sds@gnu.org>
7285
7286 * xrdb.c: Don't declare xmalloc, xrealloc.
7287
8972fe79 72882000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
7289
7290 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
7291 (re_comp): Cast gettext return value to avoid complaints when
7292 !HAVE_LIBINTL.
7293
074b6efe
DL
72942000-06-20 Dave Love <fx@gnu.org>
7295
f85c008a
DL
7296 * m/stride.h, m/mips.h: Don't define HAVE_GETWD,
7297 HAVE_GETTIMEOFDAY.
7298
5700d2cc 7299 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 7300
d355bd8a 7301 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
7302
7303 * m/alpha.h: Don't declare xmalloc, xrealloc.
7304
0af4f205
DL
7305 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
7306
7307 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
7308
7309 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
7310
7311 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
7312 HAVE_GETWD.
7313
074b6efe
DL
7314 * keyboard.h (poll_for_input_1): Declare.
7315
7316 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
7317
7318 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
7319
7320 * doprnt.c: Don't declare xmalloc, xrealloc.
7321
7322 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
7323 (getenv, ctime, getwd): Removed.
7324 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
7325
7326 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
7327 x_set_tool_bar_lines.
7328
7329 * config.in: Add HAVE_GETWD. Move some definitions above
7330 machine/system includes.
7331
68a5e97b
KH
73322000-06-20 Kenichi Handa <handa@etl.go.jp>
7333
95417e1e
KH
7334 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
7335
68a5e97b
KH
7336 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
7337 contain information about ENCODING.
7338
7339 * fontset.c (FONTSET_ASCII): Use the first element of char table
7340 for an ASCII font, not defalt slot.
7341 (fontset_ref_via_base): If FONTSET doesn't contain information for
7342 C, try the default fontset.
7343 (make_fontset): Don't copy the default fontset.
7344 (fontset_font_pattern): Likewise.
7345 (accumulate_font_info): If ELT is nil, use the corresponding
7346 element in the default fontset.
7347
3b4fa1b2
DL
73482000-06-19 Dave Love <fx@gnu.org>
7349
943e731c
DL
7350 * syntax.c (Fparse_partial_sexp): Doc fix.
7351
7352 * regex.h: Test PROTOTYPES as well as __STDC__.
7353
3b4fa1b2
DL
7354 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
7355 errno, strerror. Put text after #endif in comment.
7356
7357 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for
7358 pcc).
7359
7360 * xterm.c (x_frame_of_widget): Likewise.
7361
cdf0357b
GM
73622000-06-19 Gerd Moellmann <gerd@gnu.org>
7363
7364 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
7365 to Vfundamental_mode_abbrev_table.
7366
7367 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
7368 bogus objects are marked. This slows down GC by ~80 percent, but
7369 it might be worth trying when debugging GC-related problems.
7370 This feature requires conservative stack marking to be enabled.
7371
7372 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
7373 returns XLookupChars, reset `modifiers' to zero.
7374
998e9f8c
DL
73752000-06-19 Dave Love <fx@gnu.org>
7376
7377 * mktime.c: Unprotoized.
7378
18e21ce8 73792000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
7380
7381 * data.c (set_internal): If variable is frame-local,
7382 store the new value immediately into the frame parameter alist.
7383
140c4ac6
KR
73842000-06-19 Ken Raeburn <raeburn@gnu.org>
7385
14358466
KR
7386 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
7387 in the custom handler pointer.
7388
140c4ac6
KR
7389 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
7390 value, or checks for CHAR_META can fail when Lisp_Object is a
7391 union type.
7392 * keymap.c (get_keyelt): Likewise.
7393
10d7bf84
KH
73942000-06-19 Kenichi Handa <handa@etl.go.jp>
7395
7396 * ccl.h (struct ccl_program): New member eol_type.
7397 (struct ccl_spec): New member cr_carryover.
7398
7399 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
7400 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
7401
7402 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
7403 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
7404 (decode_eol_post_ccl): New function.
7405 (decode_coding): Don't detect EOL format here for CCL based coding
7406 systems.
7407 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
7408 decode_eol_post_ccl after running the CCL program.
7409 (code_convert_region): Don't detect EOL format here for CCL based
7410 coding systems.
7411 (decode_coding_string): Likewise.
7412
52e386c2
KR
74132000-06-18 Ken Raeburn <raeburn@gnu.org>
7414
7415 * charset.c (update_charset_table): Use XINT on "iso_final_char"
7416 when treating it as an integer.
7417
7418 * coding.h (encode_coding_string): Declare.
7419
7420 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
7421 it as an integer.
7422
7423 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
7424 "xkeymap" to avoid shadowing the "enum map_type" value that needs
7425 to be passed to get_local_map.
7426
7427 * sound.c (Fplay_sound): Don't call make_number on
7428 Frun_hook_with_args count argument.
7429
7430 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
7431 for lisp objects in X event structure data field, when lisp
7432 objects are represented with unions.
7433 (x_scroll_bar_to_input_event): Ditto.
7434
b357b9d4
KR
74352000-06-16 Ken Raeburn <raeburn@gnu.org>
7436
7437 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
7438 termination of string. Fix sense of test whether
7439 Vline_number_display_limit is an integer.
b357b9d4 7440
a871441d
GM
74412000-06-16 Gerd Moellmann <gerd@gnu.org>
7442
a9021acd
GM
7443 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
7444 only if HAVE_X_WINDOWS.
7445
6344985d
GM
7446 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
7447 of titles.
7448
427ec082 7449 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
7450 out of bounds.
7451
228b083e
EZ
74522000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
7453
7454 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
7455 of its headers.
7456
c25b53a2
KH
74572000-06-15 Kenichi Handa <handa@etl.go.jp>
7458
7459 * coding.c (decode_coding_emacs_mule): Always set src_base at the
7460 start of the while loop.
7461
a6981b11
GM
74622000-06-15 Gerd Moellmann <gerd@gnu.org>
7463
e9924e52
GM
7464 * atimer.c (alarm_signal_handler): Add forward declaration.
7465
a6981b11
GM
7466 * data.c (set_internal): Remove debug code.
7467
25fa6deb
GM
74682000-06-14 Gerd Moellmann <gerd@gnu.org>
7469
dce6b995
GM
7470 * Makefile.in (bootstrap-temacs): Add `-I../src'.
7471
9f817ea4
GM
7472 * unexec.c (toplevel) [COFF]: Include coff.h.
7473
7474 * s/lynxos.h: New file.
7475
7476 * keymap.c (Fsingle_key_description): Enclose function key and
7477 event symbol names in angle brackets.
7478
8a4e3c0c
GM
7479 * xdisp.c (setup_echo_area_for_printing): Call
7480 message_log_maybe_newline if message_buf_print is not set.
7481
7482 * print.c (printchar, strout): Don't check message_buf_print
427ec082 7483 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
7484 function does something useful even when message_buf_print is
7485 already set.
7486
25fa6deb
GM
7487 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines): New
7488 variables.
7489 (ensure_echo_area_buffers): Initialize echo buffer's
7490 truncate lines setting to nil.
7491 (with_echo_area_buffer): Don't set the echo buffer's truncate
7492 lines setting here.
8a4e3c0c 7493 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
7494 of message_truncate_lines.
7495 (resize_mini_window): Handle case that lines are truncated.
7496 (syms_of_xdisp): Initialize Qmessage_truncate_lines. DEFVAR_BOOL
7497 message-truncate-lines.
7498
7499 * keyboard.c (read_char): Bind message-truncate-lines to t
7500 while displaying a help-echo.
7501
7502 * lisp.h (Qmessage_truncate_lines): External declaration.
7503
163dcff3
GM
75042000-06-13 Gerd Moellmann <gerd@gnu.org>
7505
1681ead6
GM
7506 * xdisp.c (Vline_number_display_limit): Renamed from
7507 line_number_display_limit.
7508 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
7509 Extend documentation string. Initialize
7510 Vline_number_display_limit to nil meaning no limit.
7511 (decode_mode_spec): Use Vline_number_display_limit with its new
7512 meaning.
7513
163dcff3
GM
7514 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
7515
18e21ce8 75162000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
7517
7518 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 7519
163dcff3
GM
7520 * xfns.c (x_set_frame_parameters): Comment fix.
7521
7522 * frame.c (store_frame_param): Call swap_in_global_binding if the
7523 variable's current binding was chosen based on this frame.
7524
7525 * data.c (swap_in_global_binding): New function.
7526
a704139d
EZ
75272000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
7528
7529 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
7530 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
7531
9b6610db
EZ
75322000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
7533
7534 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
7535
c68833d2
JR
75362000-06-12 Jason Rumney <jasonr@gnu.org>
7537
7538 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
7539
7540 * w32.h (EMACS_W32_H): Renamed from _NT_H_
7541
7542 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
7543
7544 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
7545
ed1056b3
GM
75462000-06-12 Gerd Moellmann <gerd@gnu.org>
7547
7548 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
7549 (syms_of_xfaces): Defsubr Sdump_colors.
7550 (x_free_colors): Don't treat b&w specially on default visual.
7551 (x_free_dpy_colors): New function.
7552 (free_face_colors): Don't check visual class; it's done
7553 in x_free_colors.
7554
7555 * xterm.c (x_frame_of_widget): New function.
7556 (x_alloc_nearest_color_for_widget): Use it.
7557 (x_copy_dpy_color): New function.
7558 (x_destroy_window): Free various colors.
7559
5050a2ef
KH
75602000-06-12 Kenichi Handa <handa@etl.go.jp>
7561
7562 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
7563
7564 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
7565
7566 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
7567
7568 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
7569
7570 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
7571
fb1b041d
DL
75722000-06-11 Dave Love <fx@gnu.org>
7573
7574 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
7575
ff96b5f4
EZ
75762000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
7577
7578 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
7579
db8eeecd
GM
75802000-06-11 Gerd Moellmann <gerd@gnu.org>
7581
ed1056b3 7582 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
7583 to `XEvent *'.
7584
49b71c5f
KH
75852000-06-10 Kenichi Handa <handa@etl.go.jp>
7586
c479bd55
KH
7587 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
7588 (regex_compile): Fix the code for handling the case of single byte
7589 char and multibyte char being mixed in a range within [...].
7590
ff6a65c2
KH
7591 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
7592 and dst_multibyte members of coding.
7593
49b71c5f
KH
7594 * charset.c (update_charset_table): Update the table
7595 bytes_by_char_head.
7596 (init_charset_once): Initialize elements of bytes_by_char_head to
7597 1 except for leading codes for private charases.
7598
7599 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
7600 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte
7601 sequence.
7602
9e80b57d
KR
76032000-06-09 Ken Raeburn <raeburn@gnu.org>
7604
7605 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
7606 access the data it doesn't point to.
7607
f83fe4b4
GM
76082000-06-08 Gerd Moellmann <gerd@gnu.org>
7609
7610 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 7611 will be translated to a switch-frame event when reading the
f83fe4b4
GM
7612 event queue. This is necessary because Emacs otherwise won't
7613 perform a switch-frame to a new frame until some other event, for
7614 example a keystroke event, forces it to do so. This has various
7615 effects, one visible being that the cursor of a frame created with
7616 C-x 5 2 or switched to with a window manager key binding like
7617 A-TAB stays hollow because selected_window isn't on the newly
7618 focused frame until the switch-frame is performed.
7619
7620 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
7621 generating a switch-frame event if necessary.
7622
7623 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
7624
7625 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
7626 it's an integer.
7627
0890801b
KH
76282000-06-08 Kenichi Handa <handa@etl.go.jp>
7629
7630 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a
7631 charset.
7632
173cbca8
GM
76332000-06-07 Gerd Moellmann <gerd@gnu.org>
7634
3091c2a6
GM
7635 * window.c (displayed_window_lines): Take empty lines at
7636 the bottom of a window into account.
427ec082 7637
f38952fe
GM
7638 * window.c (displayed_window_lines): New function.
7639 (Fmove_to_window_line): Use displayed_window_lines to determine
7640 the number of lines to move, instead of using the window's height.
7641
7642 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
7643 to stop reading, even if the form read sets point to a different
7644 value when evaluated.
7645
427ec082 7646 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
7647 put the cursor.
7648
6ba6c818
KH
76492000-06-07 Kenichi Handa <handa@etl.go.jp>
7650
7651 * fileio.c (e_write): Free composition data if stored in
7652 coding->cmp_data.
7653
5f1aea9a
GM
76542000-06-06 Gerd Moellmann <gerd@gnu.org>
7655
666852af
GM
7656 * xdisp.c (display_line): Set row's and iterator's
7657 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
7658 Set cursor even if row ends in the middle of a character.
7659 (dump_glyph_row): Print values of new flags.
7660 (redisplay_window) <cursor movement in unchanged window>: When
7661 point has been moved forward, and PT is at the end of the cursor
7662 row, don't place the cursor in the next row if the cursor row ends
7663 in the middle of a character or at ZV.
7664
7665 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
7666 (struct glyph_row): Add starts_in_middle_of_char_p and
7667 ends_in_middle_of_char_p.
7668 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
7669 ends_in_middle_of_char_p flag.
7670 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
7671
d13f3e2e
GM
7672 * term.c (append_glyph): Revert change of 2000-06-06.
7673
7674 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
7675 padding glyph not fitting on line as whole character not
7676 fitting on line.
7677
5f1aea9a
GM
7678 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
7679 this isn't true for images with `:ascent 100'.
7680
10cda9b0
KH
76812000-06-06 Kenichi Handa <handa@etl.go.jp>
7682
ed00559d
KH
7683 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
7684 as modified if it is originally unmodified.
7685
10cda9b0
KH
7686 * term.c (encode_terminal_code): Change the way to check if
7687 terminal coding does any conversion.
7688 (append_glyph): Set glyph->pixel_width correctly.
7689
7690 * xdisp.c (display_line): While checking line continuation, pay
7691 attention to a padding glyph.
7692
1969fae2
GM
76932000-06-05 Gerd Moellmann <gerd@gnu.org>
7694
7695 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
7696
162ccef4
DL
76972000-06-05 Dave Love <fx@gnu.org>
7698
f19f32dd
DL
7699 * xdisp.c: Include fontset.h.
7700
7701 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
7702
7703 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
7704
7705 * dispnew.c: Conditionally include term.h.
7706
7707 * coding.h: Declare code_convert_string_norecord.
7708
7709 * frame.h (struct frame): Use volatile unconditionally.
7710
7711 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
7712
7713 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
7714
7715 * systime.h: Protect against multiple inclusion.
7716 (timezone) [USG5_4]: Define as time_t.
7717
7718 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
7719 (Foptimize_char_table, make_temp_name): Declare.
7720
7721 * Makefile.in (xdisp.o): Depend on fontset.h.
7722
7723 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
7724
7725 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
7726 (Foptimize_char_table, make_temp_name): Declare.
7727
427ec082 7728 * s/irix4-0.h:
162ccef4
DL
7729 * s/irix5-0.h:
7730 * s/netbsd.h: Don't define autoconfiscated MATHERR.
7731
2082fe81
DL
77322000-06-02 Dave Love <fx@gnu.org>
7733
7734 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
7735
dcf671d2
GM
77362000-06-02 Gerd Moellmann <gerd@gnu.org>
7737
7738 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 7739 result face, set flags in that face indicating that colors may not
dcf671d2
GM
7740 be freed.
7741
7742 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
7743 glyph, use the ASCII NUL character to determine the face.
7744
d42122a3
DL
77452000-06-02 Dave Love <fx@gnu.org>
7746
7747 * sysdep.c: Conditionally include stdlib.h, unistd.h.
7748 (VFORK_RETURN_TYPE): Remove.
427ec082 7749
d42122a3
DL
7750 * config.in: Add NO_MATHERR.
7751
dd432f16
DL
77522000-06-01 Dave Love <fx@gnu.org>
7753
90aa4ea8
DL
7754 * cmds.c (internal_self_insert): Don't check
7755 Vbefore_change_function, Vafter_change_function.
7756
7757 * insdel.c (signal_before_change, signal_after_change): Likewise.
7758
7759 * buffer.c (Vbefore_change_function, Vafter_change_function):
7760 Variables and their initializations deleted.
7761
2330c9d4
DL
7762 * callint.c (Fcall_interactively): Doc fix.
7763
dd432f16
DL
7764 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
7765
bf9e8804
DL
77662000-05-31 Dave Love <fx@gnu.org>
7767
7768 * textprop.c: Revert last change -- duplicated.
7769
3694b4ab
GM
77702000-05-31 Gerd Moellmann <gerd@gnu.org>
7771
7772 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
7773 in #if 0.
7774
7775 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
7776
f14156cd
JR
77772000-05-31 Jason Rumney <jasonr@gnu.org>
7778
8119aab8
JR
7779 * search.c (Fre_search_forward, Fre_search_backward)
7780 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
7781
f14156cd
JR
7782 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
7783
4aab9be3
JR
77842000-05-30 Jason Rumney <jasonr@gnu.org>
7785
7786 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
7787 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
7788
7789 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type
7790 member.
7791
7792 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
7793 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
7794 expand a nil default_filename.
7795
7796 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
7797 pointer to glyph_to_pixel_coords, not a frame.
7798
7799 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
7800 coding.h to dependencies.
7801
7802 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
7803
7804 * w32console.c (glyph_to_pixel_coords): Change first parameter to
7805 window pointer to be consistent with w32term.c and xterm.c.
7806
7807 * w32fns.c: Format and doc changes to bring closer to xfns.c.
7808 (VIETNAMESE_CHARSET): Define if not defined in system headers.
7809 (Qline_spacing, Qcenter): New variables.
7810 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
7811 (x_set_line_spacing): New function.
7812 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT
7813 macros.
7814 (x_specified_cursor_type): New function.
7815 (x_set_cursor_type): Use it.
7816 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
7817 and icon strings.
7818 (validate_x_resource_name, x_get_resource_string): Measure lengths
7819 of external strings in bytes.
7820 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
7821 GetTextExtentPoint32 with NULL title.
7822 (Fx_create_frame): Initialize Qline_spacing.
7823 (w32_load_system_font): Initialize font->double_byte_p.
7824 (x_to_w32_charset): Use Vw32_charset_info_alist.
7825 (Image, busy cursor, tooltip functions): Merged changes from
7826 xfns.c. Not yet functional on Windows.
7827
7828 * w32gui.h (W32FontStruct): Add double_byte_p member.
7829
7830 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
7831 (emacs_button_translation): Use it.
7832 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
7833 in `mask' to be set.
7834
7835 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
7836 menu strings.
7837
7838 * w32term.c: Format and doc changes to bring closer to xterm.c.
7839 (w32_char_font_type): New enum.
7840 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
7841 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
7842 (w32_encode_char): New function.
7843 (x_encode_char): Removed.
7844 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
7845 x_encode_char and w32_font_is_double_byte.
7846 (x_produce_image_glyph): Use image_ascent.
7847 (x_produce_glyphs): Use new version of w32_per_char_metric and
7848 handle NULL return value. Allow extra line spacing.
7849 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
7850 (w32_get_glyph_overhangs): Remove unicode_p param. Use
7851 w32_font_type member of glyph instead.
7852 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
7853 (fast_find_position): Make sure not to consider rows not visible
7854 in the window.
7855 (w32_read_socket) [WM_MENUSELECT]: Cannot call
7856 w32_menu_display_help with input blocked, as it can abort.
7857 (x_display_and_set_cursor): Choose cursor depending
7858 on buffer-local value of cursor_type.
7859 (x_draw_bar_cursor): Add parameter WIDTH.
7860
7861 * w32term.h (CP_DEFAULT): Define.
7862 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
7863
10fc3187
GM
78642000-05-30 Gerd Moellmann <gerd@gnu.org>
7865
7866 * search.c (Fre_search_forward, Fre_search_backward)
7867 (Fposix_search_backward, Fposix_search_forward): Doc fix.
7868
d0555360
KH
78692000-05-30 Kenichi Handa <handa@etl.go.jp>
7870
7871 * coding.c (detect_coding_iso2022): Fix code for checking
7872 CODING_CATEGORY_MASK_ISO_8_2.
7873
f1ad044f
SM
78742000-05-29 Stefan Monnier <monnier@cs.yale.edu>
7875
7876 * regex.c (PREFETCH_NOLIMIT): New function.
7877 (re_match_2_internal): Use it and adjust the end_match_2 logic.
7878
84ec3b4b
GM
78792000-05-29 Gerd Moellmann <gerd@gnu.org>
7880
66254a13
GM
7881 * syntax.c (find_defun_start): Move test for
7882 open_paren_in_column_0_is_defun_start outside of the loop.
7883
49e70dec
GM
7884 * xdisp.c (redisplay_window): Really switch buffers when
7885 displaying mode lines, and temporarily set selected_frame to the
7886 frame of the window that's redisplayed.
7887
84ec3b4b
GM
7888 * xfaces.c (free_realized_faces): Block/unblock input.
7889 (free_realized_multibyte_face): Ditto.
7890
869a3a14
DL
78912000-05-29 Dave Love <fx@gnu.org>
7892
7893 * textprop.c (Qkeymap): New variable.
7894 (syms_of_textprop): Intern it.
7895
7896 * keymap.c: Include intervals.h.
7897 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
7898
7899 * Makefile.in (keymap.o): Depend on intervals.h.
7900
7901 * keyboard.c (menu_bar_items, tool_bar_items)
7902 (Fexecute_extended_command): Deal with `keymap' property.
7903 (read_key_sequence): Track map from `keymap' property as well as
7904 `local_map'.
7905
7906 * intervals.c (get_local_map): Extra arg to allow looking for
7907 `keymap' too.
7908
7909 * intervals.h (map_property): New enum.
7910 (get_local_map): Extra arg using it.
7911 (Qkeymap): Declare.
7912
84ec3b4b 7913 * lisp.h (get_local_map): Don't declare here.
869a3a14 7914
89d0c844
KH
79152000-05-29 Kenichi Handa <handa@etl.go.jp>
7916
7917 * Makefile.in (callproc.o): Depend on composite.h.
7918
7919 * callproc.c: Include composite.h.
7920 (Fcall_process): Handle composition correctly.
7921
7922 * coding.h (coding_allocate_composition_data): Extern it.
7923 (coding_restore_composition): Likewise.
7924
7925 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
7926 yet allocated, finish decoding with result
7927 CODING_FINISH_INSUFFICIENT_CMP.
7928 (coding_allocate_composition_data): Make it non-static.
7929 (coding_restore_composition): Likewise.
7930
797a084a
EZ
79312000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
7932
7933 * charset.c (syms_of_charset): Revert last change.
7934
cf872af5
EZ
79352000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
7936
7937 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
7938 charsets as unibyte, with 1-column screen width. Sent by Kenichi
7939 Handa.
cf872af5 7940
5b1ae051
EZ
79412000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
7942
7943 * charset.c (syms_of_charset): Set width of character sets
7944 eight-bit-control and eight-bit-graphic to 1 column.
7945
34ec9ebe
GM
79462000-05-26 Gerd Moellmann <gerd@gnu.org>
7947
7948 * config.in (HAVE_SPEED_T): New define.
7949
7950 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
7951 `extern speed_t'.
7952
dd854dc2
DL
79532000-05-26 Dave Love <fx@gnu.org>
7954
7955 * coding.c (shrink_decoding_region): Initialize eol_conversion.
7956
7957 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
7958 (Fsubr_arity): New function.
7959 (syms_of_data): Install them.
7960
ba9f8f95
KH
79612000-05-26 Kenichi Handa <handa@etl.go.jp>
7962
0f3e0672
KH
7963 * charset.c (init_charset_once): Set the table bytes_by_char_head
7964 correctly.
7965
cebefb44
KH
7966 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
7967 the default fontset to what Emacs uses by default.
0f3e0672
KH
7968 (check_registry_encoding): This function deleted.
7969 (Fset_fontset_font): Remove the adhoc condition for the default
7970 fontset. Allow cons in FONTNAME.
cebefb44 7971
0f3e0672
KH
7972 * fns.c (map_char_table): Ignore char-table entries for
7973 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 7974
7a18af49
KR
79752000-05-25 Ken Raeburn <raeburn@gnu.org>
7976
7977 * emacs.c (main): Initialize keyboard syms before initializing
7978 window code, so face names are available.
7979
d2af47df
SM
79802000-05-25 Stefan Monnier <monnier@cs.yale.edu>
7981
7982 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
7983 of an anchor at the beginning of a shy-group.
7984
fc6a6a4e
GM
79852000-05-25 Gerd Moellmann <gerd@gnu.org>
7986
7987 * xdisp.c (handle_invisible_prop): Don't try to skip over
7988 invisible text if end of text is already reached.
7989
005f0d35
DL
79902000-05-25 Dave Love <fx@gnu.org>
7991
02513cdd
DL
7992 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
7993
005f0d35
DL
7994 * coding.c (encode_eol): Add null statement after label.
7995
89f6ca4e
EZ
79962000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
7997
7998 * w16select.c (Fw16_set_clipboard_data): Fix the change from
7999 2000-05-20.
8000
a4e1759e
KH
80012000-05-25 Kenichi Handa <handa@etl.go.jp>
8002
8003 * ccl.c (ccl_driver): Fix previous change.
8004
eacfd7fe
KH
80052000-05-25 Kenichi Handa <handa@etl.go.jp>
8006
46ab33a9
KH
8007 * coding.c (run_pre_post_conversion_on_str): Set point to the
8008 beginning of buffer before calling coding->post_read_conversion.
8009 (decode_coding_string): Give correct args to
8010 run_pre_post_conversion_on_str.
8011 (encode_coding_string): Likewise.
8012
eacfd7fe
KH
8013 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
8014 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
8015 eight-bit-graphic correctly.
8016
f8569325
DL
80172000-05-24 Kenichi HANDA <handa@etl.go.jp>
8018
8019 * fileio.c (Finsert_file_contents): Even if a file is not found,
8020 execute codes for setting up coding system. Call
8021 after-insert-file-functions unconditionally.
8022
04545643
GM
80232000-05-24 Gerd Moellmann <gerd@gnu.org>
8024
8025 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
8026 BSD_PGRPS are not defined.
8027
747d90ea
KH
80282000-05-24 Kenichi Handa <handa@etl.go.jp>
8029
8030 * charset.c (update_charset_table): Accept nil in LONG_NAME and
8031 DESCRIPTION.
8032 (syms_of_charset): Avoid building same strings.
8033
716e3b88
GM
80342000-05-23 Gerd Moellmann <gerd@gnu.org>
8035
8036 * lread.c (Fload): Add a comment about the meaning of
8037 Vuser_init_file being t.
8038
8039 * puresize.h (BASE_PURESIZE): Increase to 675000.
8040
8041 * s/gnu-linux.h (setpgrp): Don't define it here because this
8042 prevents compilation on GNU/Linux systems with glib 2.2.
8043
8044 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
8045 as setpgid.
427ec082 8046
9aeb39fa
EZ
80472000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
8048
8049 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
8050 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
8051 version.
8052 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
8053
29ced61b
KH
80542000-05-23 Kenichi Handa <handa@etl.go.jp>
8055
0574a2ed
KH
8056 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE
8057 unconditionally.
8058
3d80f24d
KH
8059 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
8060
8061 * term.c (encode_terminal_code): Set coding->src_multibyte
8062 properly.
8063
29ced61b
KH
8064 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
8065
d7e00792
KH
80662000-05-22 Kenichi Handa <handa@etl.go.jp>
8067
c9d80d38
KH
8068 * keyboard.c (read_char): Allow character codes 128..255 to be
8069 handled by input-method-function.
8070
d7e00792
KH
8071 * insdel.c (adjust_markers_for_replace): Fix previous change.
8072 (adjust_after_replace): If PREV_TEXT is nil, call
8073 adjust_markers_for_insert, not adjust_markers_for_replace.
8074
087121cc 80752000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 8076
087121cc
GM
8077 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
8078 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
8079 [HAVE_GRANDPT]: Define.
8080 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
8081
8082 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
8083 like SYSV_PTYS.
8084
8085 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
8086
8087 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
8088
c9671f81
KH
80892000-05-20 Kenichi Handa <handa@etl.go.jp>
8090
8091 The following changes are to handle 8-bit characters in a
8092 multibyte buffer/string without facing with byte combining
8093 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
8094 eight-bit-graphic (for 0xA0..0xFF) are introduced.
8095
8096 * Makefile.in (fns.o): Depend on charset.h.
8097
8098 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
8099 convert it to unibyte.
8100 (make_string): Use parse_str_as_multibyte, not chars_in_text.
8101
8102 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
8103 apparent char boundary.
8104 (Fset_buffer_multibyte): Convert 8-bit characters in the range
8105 0x80..0x9F to/from multibyte form.
8106
8107 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
8108 to unibyte.
8109
8110 * callproc.c (Fcall_process): Always encode an argument string if
8111 it is multibyte. Setup src_multibyte and dst_multibyte members of
8112 process_coding properly.
ce75fd23 8113
c9671f81
KH
8114 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
8115 SPLIT_NON_ASCII_CHAR.
8116
8117 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
8118 as is.
8119 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
8120
8121 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New
8122 variables.
8123 (SPLIT_CHARACTER_SEQ): This macro deleted.
8124 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is
8125 valid.
8126 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
8127 and eight-bit-graphic.
8128 (char_to_string): Likewise. Signal an error for too large
8129 character code.
8130 (char_printable_p): Return 0 for 8-bit characters.
8131 (update_charset_table): Update iso_charset_table only when a final
8132 character is non-negative.
8133 (find_charset_in_text): Renamed from find_charset_in_str.
8134 Arguments and return value changed. Callers changed.
8135 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
8136 be -1 if CHARSET is used only internally.
8137 (Fmake_char_internal): Handle new charsets; eight-bit-control and
8138 eight-bit-graphic.
8139 (Fcharset_after): Simplified.
8140 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
8141 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
8142 (multibyte_chars_in_text): Simplified by assuming there's no
8143 invalid multibyte sequence.
8144 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
8145 str_as_unibyte): New functions.
8146 (Fstring): Simpified by assuming that byte combining never
8147 happens.
8148 (init_charset_once): Initialization for
8149 LEADING_CODE_8_BIT_CONTROL.
8150 (syms_of_charset): Intern and staticpro Qeight_bit_control and
8151 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
8152 eight-bit-control and eight-bit-graphic.
8153
8154 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL,
8155 CHARSET_8_BIT_GRAPHIC): New macros.
8156 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
8157 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
8158 (CHARSET_REVERSE_CHARSET): Likewise.
8159 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
8160 eight-bit-graphic.
8161 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
8162 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
8163 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
8164 encounter an invalid multibyte sequence.
8165 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
8166 sequence is always valid.
8167 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
8168 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New
8169 macros.
8170 (CHAR_STRING): For 8-bit characters, call char_to_string.
8171 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
8172 multibyte sequence is always valid.
8173 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
8174 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
8175 str_as_unibyte): Extern them.
8176 (BCOPY_SHORT): Fix a bug.
8177 (CHAR_LEN): This macro deleted. Callers changed to use
8178 CHAR_BYTES.
8179 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
8180 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
8181 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
8182
bd4bde7f 8183 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81
KH
8184 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
8185 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
8186 EMIT_BYTES): New macros.
8187 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
8188 DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
8189 macros deleted.
8190 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
8191 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
8192 check the validity of multibyte sequence.
8193 (decode_coding_emacs_mule): New function.
8194 (encode_coding_emacs_mule): New macro.
8195 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
8196 the source.
8197 (DECODE_ISO_CHARACTER): Just return a character code.
8198 (DECODE_COMPOSITION_START): Set coding->result instead of result.
8199 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
8200 EMIT_CHAR to produced decoded characters. Exit the loop only by
8201 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
8202 block here.
8203 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
8204 only position codes for an invalid character.
8205 (encode_designation_at_bol): Return new destination pointer. 5th
8206 arg DSTP is changed to DST.
8207 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
8208 from the source by ONE_MORE_CHAR. Don't handle the case of last
8209 block here.
8210 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
8211 macros deleted.
8212 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
8213 detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
8214 TWO_MORE_BYTES to fetch a byte from the source.
8215 (encode_eol): Pay attention to coding->src_multibyte.
8216 (detect_coding, detect_eol): Preserve members src_multibyte and
8217 dst_multibyte.
8218 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
8219 (encoding_buffer_size): Set magnification to 3 for all coding
8220 systems that require encoding.
8221 (ccl_coding_driver): For decoding, be sure that the result is
8222 valid multibyte sequence.
8223 (decode_coding): Initialize coding->errors and coding->result.
8224 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
8225 and raw-text, always call decode_eol. Handle the case of last
8226 block here. If not coding->dst_multibyte, convert the resulting
8227 sequence to unibyte.
8228 (encode_coding): Initialize coding->errors and coding->result.
8229 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
8230 and raw-text, always call encode_eol. Handle the case of last
8231 block here.
8232 (shrink_decoding_region, shrink_encoding_region): Detect cases
8233 that we can't skip data more rigidly.
8234 (code_convert_region): Setup src_multibyte and dst_multibyte
8235 members of coding. For decoding, if the buffer is multibyte,
8236 convert the source sequence to unibyte in advance. For encoding,
8237 if the buffer is multibyte, convert the resulting sequence to
8238 multibyte afterward.
8239 (run_pre_post_conversion_on_str): New function.
8240 (code_convert_string): Deleted and divided into the following two.
8241 (decode_coding_string, encode_coding_string): New functions.
8242 (code_convert_string1, code_convert_string_norecord): Call one of
8243 above.
8244 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
8245 MAKE_NON_ASCII_CHAR.
8246 (Fset_terminal_coding_system_internal,
8247 Fset_safe_terminal_coding_system_internal): Setup src_multibyte
8248 and dst_multibyte members.
8249 (init_coding_once): Initialize iso_code_class with new enum
8250 ISO_control_0 and ISO_control_1.
8251
8252 * coding.h (enum iso_code_class_type): Member ISO_control_code is
8253 devided into ISO_control_0 and ISO_control_1.
8254 (struct coding_system): New members src_multibyte, dst_multibyte,
8255 errors, and result. Delete member fake_multibyte.
8256 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
8257 nonzero.
8258 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
8259 nonzero.
8260
8261 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
8262 (Faset): Likewise.
8263
8264 * editfns.c (Fformat): Be sure to convert 8-bit characters to
8265 multibyte form.
8266 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
8267 combining occurs.
8268 (Ftranspose_region): Delete codes for handling byte combining.
8269
8270 * fileio.c (Finsert_file_contents): Setup src_multibyte and
8271 dst_multibyte members of coding. On handling REPLACE on unibyte
8272 buffer, convert the result of decode_coding to unibyte. On
8273 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 8274 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
8275 multibyteness of the source (buffer or string).
8276
8277 * fns.c (concat): Handle 8-bit characters correctly.
8278 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
8279 unibyte in the result.
8280 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
8281 valid multibyte form in the result.
8282 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
8283 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
8284 return -1, signal an error.
8285 (base64_encode_1): New arg MULTIBYTE. Get each character by
8286 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
8287 character is found, return -1.
8288 (Fbase64_decode_region): Delete codes for handling byte-combining.
8289 Treat each decoded byte as a unibyte character.
8290 (Fbase64_decode_string): Return unibyte string.
8291 (Fcompare_strings, concat, string_byte_to_char): Use
8292 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
8293 FETCH_STRING_CHAR_ADVANCE.
8294 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
8295 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
8296
8297 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
8298 SPLIT_NON_ASCII_CHAR.
8299 (fontset_ref_via_base, fontset_set): Likewise
8300
8301 * insdel.c (adjust_markers_for_record_delete): Deleted.
8302 (adjust_markers_for_insert): Argument changed. Caller changed.
8303 (adjust_markers_for_replace): Likewise.
8304 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error,
8305 CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
8306 (copy_text): Delete unused local varialbe c_save. For converting
8307 to multibyte, be sure to make all 8-bit characters in valid
8308 multibyte form.
8309 (count_size_as_multibyte): Handle 8-bit characters correctly.
8310 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
8311 adjust_after_replace, replace_range, del_range_2)
8312 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
8313 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
8314 adjust_after_replace, replace_range, del_range_2) Delete codes for
8315 handling byte combining.
8316 (adjust_before_replace): Deleted.
427ec082 8317
c9671f81
KH
8318 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
8319 SPLIT_NON_ASCII_CHAR.
8320 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
8321 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE
8322 unconditionally.
8323 (Fkey_description): Likewise.
8324
8325 * lread.c (read1): On reading multibyte string, be sure to make
8326 all 8-bit chararacters in valid multibyte form.
8327 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
8328
8329 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
8330 unconditionally.
8331
8332 * process.c (Fstart_process): GCPRO current_dir before calling
8333 Ffind_operation_coding_system. Encode arguments here.
8334 (create_process): Don't encode arguments here. Setup
8335 src_multibyte and dst_multibyte members of struct coding.
8336 (read_process_output): Setup src_multibyte and dst_multibyte
8337 members of struct coding. If the output is to multibyte buffer,
8338 always decode the output of the process. Adjust the
8339 representation of 8-bit characters to the multibyteness of the
8340 output.
8341 (send_process): Setup coding->src_multibyte according to the
8342 multibyteness of the source.
8343
8344 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE
8345 unconditionally.
8346 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
8347 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
8348
8349 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of
8350 CHAR_LEN.
8351
8352 * w16select.c (Fw16_set_clipboard_data): Setup members
8353 src_multibyte and dst_multibyte of coding. Adjusted for the
8354 change for find_charset_in_str.
8355 (Fw16_get_clipboard_data): Likewise.
8356
8357 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
8358 dst_multibyte of coding.
8359 (x_to_w32_font): Likewise.
8360
8361 * w32select.c (Fw32_set_clipboard_data): Setup members
8362 src_multibyte and dst_multibyte of coding. Adjusted for the
8363 change for find_charset_in_str.
8364 (Fw32_get_clipboard_data): Likewise.
8365
8366 * xdisp.c (get_next_display_element): Handle 8-bit characters
8367 correctly.
8368 (next_element_from_display_vector): Use CHAR_BYTES instead of
8369 CHAR_LEN.
8370 (disp_char_vector): Use SPLIT_CHAR instead of
8371 SPLIT_NON_ASCII_CHAR.
8372
8373 * xselect.c (selection_data_to_lisp_data): Setup members
8374 src_multibyte and dst_multibyte of coding. Adjusted for the
8375 change for find_charset_in_str.
8376 (lisp_data_to_selection_data): Likewise.
8377
5f64c9e0
GM
83782000-05-19 Gerd Moellmann <gerd@gnu.org>
8379
2b63d473
GM
8380 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed
8381 buffer.
8382
5f64c9e0
GM
8383 * dispextern.h (Vimage_types): Add extern declaration.
8384
8385 * xdisp.c (Vimage_types): Moved here from xfns.c.
8386 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
8387
8388 * xfns.c (Vimages_types): Moved to xdisp.c.
8389 (syms_of_xfns): Move `image-types' to xdisp.c.
8390
8391 * w32fns.c (Vimage_types): Removed.
8392 (syms_of_w32fns): Remove `image-types'.
8393
813086ea
KH
83942000-05-18 Kenichi Handa <handa@etl.go.jp>
8395
8396 * fns.c (map_char_table): Pay attention to character number of
8397 charset. Check the validity of charset at the first level. For
8398 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
8399 the default value.
8400
8401 * fontset.c: Include "buffer.h".
8402 (fs_load_font): If the face has fontset, record the face ID in
8403 that fontset.
8404 (Finternal_char_font): New function.
8405 (accumulate_font_info): New function.
8406 (Ffontset_info): Rewritten for the new fontset implementation.
8407 (syms_of_fontset): Register Vdefault_fontset in the first element
8408 of Vfontset_table. Include Vdefault_fontset in
8409 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
8410 function.
8411
bdaebbf0
DL
84122000-05-16 Dave Love <fx@gnu.org>
8413
8414 * m/iris5d.h: Deleted -- unused.
8415
cb613bb8
GM
84162000-05-16 Gerd Moellmann <gerd@gnu.org>
8417
b15f3b77
GM
8418 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
8419 `invalid' instead of `illegal'.
8420
8421 * indent.c (Fmove_to_column): When ending within a tab, insert
8422 spaces first so that markers at the end of the tab get adjusted.
8423
835c1b36
GM
8424 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
8425 buffer list that wasn't selected in that frame.
8426
cb613bb8
GM
8427 * filelock.c (get_boot_time): To obtain an 8 char file name, which
8428 is needed on mescaline, use a 2 char prefix, and call
8429 make_temp_name with second arg non-zero.
8430
8431 * fileio.c (make_temp_name): New function, extracted from
8432 Fmake_temp_name.
8433 (Fmake_temp_name): Use it.
8434
f685bea9
EZ
84352000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
8436
8437 * window.c (coordinates_in_window): Subtract 1 when computing
8438 right_x.
8439
a1b8d58b
GM
84402000-05-15 Gerd Moellmann <gerd@gnu.org>
8441
8442 * Makefile.in (lisp): Add env.elc.
8443
8444 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
8445
a265079f
GM
84462000-05-12 Gerd Moellmann <gerd@gnu.org>
8447
8448 * search.c (Freplace_match): Handle case of `\N' in the
8449 replacement when there's no group N.
8450
da4496b6
GM
84512000-05-11 Gerd Moellmann <gerd@gnu.org>
8452
0ace421a
GM
8453 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
8454 of the message to message_dolog.
8455
1172eb8d
GM
8456 * keyboard.c (read_char): Don't clear current message for help
8457 events; let the code handling help events handle this. Change
8458 code detecting help events that should be ignored.
8459
da4496b6
GM
8460 * xdisp.c (handle_single_display_prop): Don't try to set PT if
8461 we're interating over a string.
8462
0623e40f
DL
84632000-05-09 Dave Love <fx@gnu.org>
8464
8465 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
8466 that offset before writing. Move gcpro region past call of
8467 Ffile_regular_p.
8468
bae2503b
DL
84692000-05-04 Dave Love <fx@gnu.org>
8470
8471 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
8472
ec82fb2f
GM
84732000-05-04 Gerd Moellmann <gerd@gnu.org>
8474
8475 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
8476 of inserted characters when BUF equals the current buffer, and PT
8477 is in front of or equal to FROM.
8478
cbf18892
GM
84792000-05-03 Gerd Moellmann <gerd@gnu.org>
8480
4ff40dd0
GM
8481 * xdisp.c (handle_single_display_prop): If display property value
8482 is invalid, or something not supported on the frame, restore
8483 iterator's position to what it was initially. Make sure to return
8484 0 for invalid and unsupported property values.
8485
cbf18892
GM
8486 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
8487 that x_per_char_metric returns null.
8488
1b0672c3
GM
84892000-05-02 Gerd Moellmann <gerd@gnu.org>
8490
576da55d
GM
8491 * xterm.h (struct face): Add forward declaration.
8492 (struct image): Ditto.
8493 (image_ascent): Add prototype.
8494
8495 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
8496 (x_draw_image_relief, x_draw_image_foreground_1): Call function
8497 image_ascent instead of using IMAGE_ASCENT.
8498
8499 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
8500 (IMAGE_ASCENT): Removed.
8501
8502 * xfns.c (Qcenter): New variable.
8503 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
8504 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
8505 (image_ascent): New function.
8506 (lookup_image): Recognize `:ascent center'.
8507 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
8508 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
8509 (xbm_load): Don't set image's ascent here.
8510 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
8511 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
8512 check ascent values here.
8513 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
8514 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
8515 (syms_of_xfns): Initialize Qcenter.
8516
1b0672c3
GM
8517 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
8518 to the limits, increase the limits.
8519
0d7811ed
KH
85202000-05-01 Kenichi Handa <handa@etl.go.jp>
8521
8522 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
8523 Check Vfont_encoding_alist against the full name of the opened
8524 font.
8525
a943a5ca
GM
85262000-04-28 Gerd Moellmann <gerd@gnu.org>
8527
8528 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
8529 taller than the window.
8530
5dba1e29
KH
85312000-04-28 Kenichi Handa <handa@etl.go.jp>
8532
8533 * xfaces.c (realize_x_face): Fix the argument of the second
8534 xassert. BASE_FACE may not be a face for ASCII.
8535
353964e3
GM
85362000-04-27 Gerd Moellmann <gerd@gnu.org>
8537
c76e04a8
GM
8538 * print.c (print_object): Treat print-length < 0 as nil.
8539
8540 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
8541
8542 * s/freebsd.h (TERMCAP_OBJ): Removed.
8543 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
8544
8545 * lread.c (read1): Don't treat period followed by certain
8546 characters as symbol start.
8547
8548 * xfns.c (slurp_file): New function.
8549 (xbm_image_p): Handle case of in-memory XBM files.
8550 (xbm_scan): Rewritten to work on memory buffers instead of files.
8551 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
8552 Work on memory buffers instead of files. If DATA is null test
8553 if buffer looks like an in-memory XBM file.
8554 (xbm_load_image): Renamed from xbm_load_image_file. Work on
8555 memory buffers instead of files.
8556 (xbm_file_p): New function.
8557 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
8558
353964e3
GM
8559 * lread.c (end_of_file_error): New function.
8560 (read1): Call it instead of signaling `end-of-file' directly.
8561
427ec082 8562 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
8563 with Fprinc instead of Fprin1.
8564
24d744ac
KR
85652000-04-26 Ken Raeburn <raeburn@gnu.org>
8566
8567 * window.c (freeze_window_start): Check that minibuffer scroll
8568 window isn't nil before extracting the window structure pointer
8569 from it.
8570
8571 * undo.c (record_delete): If we hit the end of the undo list, stop
8572 picking elements apart.
8573
7464346d
GM
85742000-04-26 Gerd Moellmann <gerd@gnu.org>
8575
8576 * xdisp.c (display_line): If lines are continued, restore
8577 iterator's ascent/descent information to the values before the
8578 first glyph not fitting on the line.
8579
612839b6
GM
85802000-04-25 Gerd Moellmann <gerd@gnu.org>
8581
8582 * xdisp.c (try_window_id) <all changes above window start>: Adjust
8583 positions in glyph matrix. Don't compute new window end
8584 positions.
8585
8586 * dispnew.c (increment_matrix_positions): Renamed from
8587 increment_glyph_matrix_buffer_positions.
8588 (increment_row_positions): Renamed from
8589 increment_glyph_row_buffer_positions.
8590
8591 * dispextern.h: Change names of renamed functions from dispnew.c
8592 in prototypes.
8593
cc181e95
GM
85942000-04-24 Gerd Moellmann <gerd@gnu.org>
8595
abfcc168
GM
8596 * fileio.c (Fdo_auto_save): Create directories for auto-save
8597 list file if necessary.
8598
cc181e95
GM
8599 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
8600 from buffer or frame.
8601 (automatic_hscrolling_p): New variable.
8602 (hscroll_windows): Scroll windows horizontally only if automatic
8603 hscrolling is allowed.
8604 (syms_of_xdisp): New variable `automatic-hscrolling'.
8605
8606 * frame.h (struct frame): Add member extra_line_spacing.
8607
8608 * xfns.c (x_set_line_spacing): New function.
8609 (Fx_create_frame): Set line spacing from resources.
8610 (Qline_spacing): New variable.
8611 (syms_of_xfns): Initialize Qline_spacing.
427ec082 8612
cc181e95
GM
8613 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
8614
8615 * buffer.c (init_buffer_once): Handle extra_line_spacing.
8616 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 8617 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
8618 extra_line_spacing from default value.
8619 (init_buffer_once): Initialize default value of extra_line_spacing.
8620
8621 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
8622 and extra3.
8623
8624 * xterm.c (x_produce_glyphs): Remove reference to struct it's
8625 prompt_width. Add extra line spacing.
8626
8627 * term.c (produce_glyphs): Remove reference to struct it's
8628 prompt_width.
8629
8630 * dispextern.h (struct it): Remove member prompt_width, add
8631 extra_line_spacing.
8632
58827478
GM
86332000-04-22 Gerd Moellmann <gerd@gnu.org>
8634
8635 * dispnew.c (update_frame_line): When writing a whole line, make
8636 sure cursor is in the right row afterwards, otherwise a use of
8637 capability `ch' in cmgoto might leave the cursor in the row below.
8638
25a87f42
GM
86392000-04-21 Gerd Moellmann <gerd@gnu.org>
8640
8641 * lisp.h (struct Lisp_Buffer_Cons): Remove.
8642
8643 * keyboard.c (timer_check): Fix typo in comment.
8644
54edf5c2
KH
86452000-04-21 Kenichi Handa <handa@etl.go.jp>
8646
8647 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
8648 name change: ch -> character.
8649
3a64eef5
GM
86502000-04-20 Gerd Moellmann <gerd@gnu.org>
8651
8652 * keyboard.c (echo_message_buffer): New variable.
8653 (echo_now): Set echo_message_buffer to the echo area buffer used
8654 to display the echo.
8655 (cancel_echoing): Reset echo_message_buffer to nil.
8656 (read_char): Code rewritten that handles canceling an echo or
8657 echoing a dash, respectively.
8658
8659 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
8660 directory doesn't exist.
8661
6142fdcb
DL
86622000-04-19 Dave Love <fx@gnu.org>
8663
8664 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
8665 (concat): Don't allow numeric args.
8666 (Fconcat): Doc change.
6142fdcb 8667
ac6b5352
SM
86682000-04-19 Stefan Monnier <monnier@cs.yale.edu>
8669
8670 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
8671 instead define end_match(1|2) more carefully.
8672 Use GET_CHAR_BEFORE_2 for `begline'.
8673
cb9215e4
GM
86742000-04-19 Gerd Moellmann <gerd@gnu.org>
8675
5e3dac3f
GM
8676 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
8677 on 64-bit systems where NULL is defined as `0'.
8678
8679 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
8680 the `variable argument list' to make it work on Alpha.
8681
cb9215e4
GM
8682 * m/alpha.h (_LP64) [!_LP64]: Define.
8683 (ORDINARY_LINK): Define for NetBSD.
8684
8685 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 8686
f532dca0
DL
86872000-04-19 Dave Love <fx@gnu.org>
8688
c750667e
DL
8689 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
8690 change.
8691
8692 * Makefile.in (LIBS): Don't use.
8693 (GETLOADAVG_OBJ): Define again.
8694 (otherobj): Add GETLOADAVG_OBJ.
8695
f532dca0
DL
8696 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
8697
1c7e22fd
GM
86982000-04-18 Gerd Moellmann <gerd@gnu.org>
8699
f6d3257b
GM
8700 * lread.c (read_filtered_event): Cancel and start busy cursor.
8701
427ec082 8702 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
8703 that the per-character metrics may be null.
8704
e10f64e7
GM
87052000-04-17 Gerd Moellmann <gerd@gnu.org>
8706
0daee095
GM
8707 * buffer.c (clone_per_buffer_values): New function.
8708 (Fmake_indirect_buffer): Add optional argument CLONE. Call
8709 clone_per_buffer_values if CLONE is not nil.
8710
e10f64e7
GM
8711 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
8712
38687d43
DL
87132000-04-16 Dave Love <fx@gnu.org>
8714
8715 * Makefile.in: Remove obsolete localcpp stuff.
8716 (GETLOADAVG_OBJ): Don't define.
8717 (obj): Move LIBOBJS...
8718 (otherobj): ... to here.
8719 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
8720 whitespace-only lines after the continuation (Irix).
8721
c21c7262
GM
87222000-04-14 Gerd Moellmann <gerd@gnu.org>
8723
8724 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
8725
8726 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
8727
314767c0
DL
87282000-04-14 Dave Love <fx@gnu.org>
8729
8730 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
8731 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
8732 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
8733 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
8734 NLIST_STRUCT.
8735
8736 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
8737 autoconfiscated HAVE_GETLOADAVG.
8738
8739 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
8740 BROKEN_MKTIME.
8741
a2522dca
GM
87422000-04-14 Gerd Moellmann <gerd@gnu.org>
8743
8744 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
8745 (fill_in_lock_file_name): Avoid existing files that aren't
8746 links.
8747
33744b5d
DL
87482000-04-14 Dave Love <fx@gnu.org>
8749
c21c7262 8750 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
8751 (INTERVAL_SRC): Convert to make variable.
8752 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
8753 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
8754 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
8755 add LIBOBJS.
8756 (SOME_MACHINE_OBJECTS): Remove interval stuff.
8757 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
8758 (shortlisp): Add facemenu, float-sup, frame.
8759 (SOME_MACHINE_LISP): Remove them from here.
8760 (LIBES): Change unused LDLIBS to autoconf LIBS.
8761
8762 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
8763
9d3d5916
KH
87642000-04-14 Kenichi Handa <handa@etl.go.jp>
8765
8766 * composite.c (update_compositions): If FROM and TO are not in a
8767 valid range, do nothing.
8768
198e3c7a
GM
87692000-04-13 Gerd Moellmann <gerd@gnu.org>
8770
8771 * tparam.c (tparam1): Abort when encountering an unknown
8772 `%'-specifier.
8773
8774 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
8775 terminfo.o.
8776
8777 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
8778 as TERMCAP_OBJ.
8779
055a28c9
EZ
87802000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
8781
8782 * fileio.c (a_write): Remove redundant semi-colons.
8783 (e_write): Return -1 if failed to write all the data.
8784 This fixes the changes made at 1999-12-15.
8785
f5c75033
DL
87862000-04-12 Dave Love <fx@gnu.org>
8787
8788 * fns.c (mapcar1): Test for null vals to support mapc.
8789 (Fmapc): New function.
8790
0c3cfc51
EZ
87912000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
8792
8793 * msdos.c (NUM_MOUSE_BUTTONS): Define.
8794 (IT_frame_up_to_date): Support the buffer local value of
8795 cursor-type, if defined.
8796
33465a31
DL
87972000-04-10 Dave Love <fx@gnu.org>
8798
8799 * editfns.c (preceding-char, following-char): Doc fix.
8800
6ed56568
KR
88012000-04-10 Ken Raeburn <raeburn@gnu.org>
8802
8803 * Makefile.in (temacs): Revert 2000-03-12 change.
8804
7cf80d4e
JR
88052000-04-10 Jason Rumney <jasonr@gnu.org>
8806
8807 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
8808
34f3f342
GM
88092000-04-10 Gerd Moellmann <gerd@gnu.org>
8810
1a1b1895
GM
8811 * xdisp.c (setup_echo_area_for_printing): Choose an echo
8812 area buffer, if it's not set up yet.
8813
34f3f342
GM
8814 * indent.c (compute_motion): Set immediate_quit.
8815
be0dbdab
GM
88162000-04-09 Gerd Moellmann <gerd@gnu.org>
8817
c45be9ac
GM
8818 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New
8819 variable.
8820 (realize_tty_face): Suppress boldness if colors are the inverse of
8821 the default colors, and tty_suppress_bold_inverse_default_colors_p
8822 is set.
8823 (Ftty_suppress_bold_inverse_default_colors): New function.
8824 (syms_of_xfaces): Defsubr it.
8825
be0dbdab
GM
8826 * buffer.c (Frestore_buffer_modified_p): New function.
8827 (syms_of_buffer): Defsubr it.
8828
e8413c3b
KR
88292000-04-08 Ken Raeburn <raeburn@gnu.org>
8830
87f67317
KR
8831 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
8832 charset id (int) argument, not a charset (Lisp_Object).
8833
e8413c3b
KR
8834 * coding.h (code_convert_string): Declare.
8835 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
8836 object, as the fourth argument to code_convert_string.
8837
8838 * fontset.c (make_fontset_for_ascii_face): Use XINT on return
8839 value.
8840 (Fset_fontset_font): Use EQ to compare lisp objects.
8841
7c752c80
KR
88422000-04-05 Ken Raeburn <raeburn@gnu.org>
8843
c0333abc
KR
8844 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
8845 a pointer that looks like a lisp object.
8846 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
8847 zero, instead see whether it's an integer object, since they can't
8848 have intervals.
8849 (GET_INTERVAL_OBJECT): Simply assign to the destination.
8850
7c752c80
KR
8851 * dispnew.c (allocate_matrices_for_frame_redisplay,
8852 direct_output_forward_char): Use X(U)INT and make_number as needed
8853 to convert between (unsigned) int values and lisp integers.
8854 * keyboard.c (read_key_sequence): Likewise.
8855 * lread.c (substitute_object_recurse): Likewise.
8856 * fns.c (concat, hash_lookup, hash_remove): Likewise.
8857 * minibuf.c (do_completion, Fminibuffer_complete_word,
8858 Fminibuffer_completion_help): Likewise.
8859 * term.c (produce_special_glyphs): Likewise.
8860
8861 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
8862 * print.c (print_preprocess, print_object): Likewise.
8863
8864 * search.c (compile_pattern): Use NILP when checking for nil.
8865
74e49b38
KR
8866 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
8867 __OPTIMIZE__]: Provide a GNU C macro version that handles
8868 lisp-object unions.
8869 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
8870 field, to better cope with ENABLE_CHECKING and calls that modify a
8871 Lisp_Object using its old value.
8872
685e5ed2
GM
88732000-04-04 Gerd Moellmann <gerd@gnu.org>
8874
c407c570
GM
8875 * window.c (compare_window_configurations): Signal an error
8876 if parameters C1 or C2 aren't window configurations.
8877
685e5ed2
GM
8878 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
8879 AFTER_POTENTIAL_GC calls around calls to functions that can
8880 signal an error and thus invoke the debugger.
8881
587a49ab
GM
88822000-04-03 Gerd Moellmann <gerd@gnu.org>
8883
62f20204
GM
8884 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
8885 an error if decoding fails.
8886
587a49ab
GM
8887 * keyboard.c (lispy_mouse_names): Variable removed.
8888 (Vlispy_mouse_stem): New variable.
8889 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
8890 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
8891 for any mouse button number. Increase size of mouse_syms and
8892 button_down_location as needed. Call modify_event_symbol with
8893 different arguments.
8894 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
8895 Call modify_event_symbol with different arguments.
8896 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
8897 for any button number. Call modify_event_symbol with different
8898 arguments.
8899 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
8900 Accept a string for NAME_ALIST_OR_STEM.
8901
8902 * lisp.h (larger_vector): Add prototype.
8903
8904 * fns.c (larger_vector): Make externally visible.
8905
8906 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
8907
2d1675e4
SM
89082000-04-02 Stefan Monnier <monnier@cs.yale.edu>
8909
8910 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
8911 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
8912 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
8913 we are between str1 and str2.
8914 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
8915 (PATFETCH): Use `TRANSLATE'.
8916 (PATFETCH_RAW): Fetch multibyte char if applicable.
8917 (PATUNFETCH): Remove.
8918 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
8919 When writing a char, write it directly into the pattern buffer rather
8920 than going needlessly through a temp char-array.
8921 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
8922 multibyte magic and remove the useless `#ifdef emacs'.
8923 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
8924 buffer.
8925
8926 * regex.h (struct re_pattern_buffer): Make field `multibyte'
8927 conditional on `emacs'.
8928
8929 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
8930
cc2d8c6b
KR
89312000-04-01 Ken Raeburn <raeburn@gnu.org>
8932
8933 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
8934 non-union-type versions of XMARK and friends here, because XMARK
8935 and friends won't work on an integer field if NO_UNION_TYPE is not
8936 defined.
8937 (make_number): Define as a function if it's not defined as a
8938 macro.
8939
09654086
KR
8940 * composite.c (run_composite_function): Use NILP when checking for
8941 nil.
8942 (syms_of_composite): Delete local var NARGS, pass an int as first
8943 argument to Fmake_hash_table.
8944
2387b382
KR
8945 * editfns.c (text_property_stickiness): Use NILP to test
8946 Lisp_Object boolean value.
8947 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
8948 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
8949 problems reading from and changing the same lisp value in an
8950 XSETSTRING call.
8951
27660e89
GM
89522000-04-01 Gerd Moellmann <gerd@gnu.org>
8953
8954 * term.c (TN_no_color_video): New variable.
8955 (term_init): Intitialize TN_no_color_video.
8956 (enum no_color_bit): New enumeration.
8957 (MAY_USE_WITH_COLORS_P): New macro.
8958 (turn_on_face): Use it to determine if attributes may be used
8959 combined with colors.
8960
3578db3c
KR
89612000-04-01 Ken Raeburn <raeburn@gnu.org>
8962
8963 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
8964 with int lvalues via casts; instead, just yield lisp object
8965 lvalues.
8966 (enlarge_window): Variable sizep now points to Lisp_Object. Use
8967 proper accessor macros.
8968 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
8969 (grow_mini_window): Fix typo getting int value of root->height.
8970
6fc556fd
KR
8971 * xdisp.c (compute_string_pos): Fix order of arguments to
8972 string_pos_nchars_ahead.
8973 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
8974 count arg to variable-arg routines like Frun_hook_with_args and
8975 Fformat.
587a49ab
GM
8976 (back_to_previous_visible_line_start)
8977 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
8978 fixed-arg routines like Fget_char_property and Fmake_string.
8979 (reconsider_clip_changes): Use XINT when comparing integer lisp
8980 objects, or passing them as int arguments.
587a49ab
GM
8981 (mark_window_display_accurate, insert_left_trunc_glyphs)
8982 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
8983 storing or passing integer values as lisp objects.
8984 (set_cursor_from_row, highlight_trailing_whitespace): Use
8985 INTEGERP, not implicit test against zero, for glyph object.
8986 (try_window_id): Don't use make_number when we want an int value.
8987
8988 * xfaces.c (xlfd_symbolic_value): Make last argument a
8989 Lisp_Object, to be consistent with callers.
8990 (Fbitmap_spec_p): Use XINT to get numeric value of height.
8991 (lface_hash): Apply XFASTINT to lisp values before folding in.
8992
8993 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
8994 fill in window width and height. Pass an int, not a lisp object,
8995 as first arg to Finsert.
8996
6e7b2457
GM
89972000-04-01 Gerd Moellmann <gerd@gnu.org>
8998
610d841e
GM
8999 * xfaces.c (realize_basic_faces): Block input while realizing
9000 the faces.
9001
6e7b2457
GM
9002 * keyboard.c (lispy_mouse_names): Add additional mouse names.
9003
9004 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
9005
aa110c0c
GM
90062000-03-31 Gerd Moellmann <gerd@gnu.org>
9007
9008 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 9009 or ASCII, handle case that per-char metric is null.
aa110c0c 9010
8801a864
KR
90112000-03-30 Ken Raeburn <raeburn@gnu.org>
9012
c6129d7e
KR
9013 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
9014
8801a864
KR
9015 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW,
9016 XSUBR, XBUFFER): Verify correct object type before returning
9017 pointer, using eassert.
9018 * frame.h (XFRAME): Likewise.
9019
9020 * buffer.c (Frename_buffer, Fset_buffer_multibyte,
9021 swap_out_buffer_local_variables, Fmove_overlay): Don't apply
9022 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong
9023 type.
9024 * data.c (set_internal): Likewise.
9025 * dispextern.h (WINDOW_WANTS_MODELINE_P,
9026 WINDOW_WANTS_HEADER_LINE_P): Likewise.
9027 * fileio.c (auto_save_1): Likewise.
9028 * insdel.c (check_markers): Likewise.
9029 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
9030 * undo.c (record_insert): Likewise.
9031 * vmsproc.c (child_sig): Likewise.
9032 * window.c (unshow_buffer, window_loop): Likewise.
9033 * xterm.c (x_erase_phys_cursor): Likewise.
9034
8e7af858
GM
90352000-03-30 Gerd Moellmann <gerd@gnu.org>
9036
9037 * xfns.c (free_image_cache): Free the cache structure itself
9038 last, after all its members have been freed.
9039
9040 * lisp.h (xstrdup): Add prototype.
9041
9042 * alloc.c (xstrdup): Moved here from xfaces.c.
9043 (allocating_for_lisp): Variable removed.
9044 (lisp_malloc): Block input around the calls to malloc and
9045 mem_insert.
9046
9047 * xfaces.c (realize_tty_face): Use find_symbol_value instead
9048 of Fsymbol_value.
9049 (xstrdup): Moved to alloc.c.
9050
e0b8c689
KR
90512000-03-29 Ken Raeburn <raeburn@gnu.org>
9052
b96f9fb7
KR
9053 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
9054
9055 * emacs.c (main): Fix sense of no-loadup test.
9056
e0b8c689
KR
9057 * config.in (ENABLE_CHECKING): Undef.
9058
9059 * lisp.h (struct interval): Replace "parent" field with a union of
9060 interval pointer and Lisp_Object; add new bitfield to use as
9061 discriminant. Change other flag fields to bitfields.
9062 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
9063 is defined and the supplied test fails, print a message and
9064 abort.
9065 (eassert): New macro. Use CHECK to provide an assert-like
9066 facility.
9067
9068 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
9069 pointers; abort if the value looks like a lisp object.
9070 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT,
9071 SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
9072 Modify for new interval parent definition.
9073
9074 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE,
9075 UNMARK_BALANCE_INTERVALS): Update references that need an
9076 addressable lisp object in the interval structure.
9077 (die): New function.
9078 (suppress_checking): New variable.
9079
9080 * intervals.c (interval_start_pos): Just return 0 if there's no
9081 parent object.
9082
f83c5440
GM
90832000-03-29 Gerd Moellmann <gerd@gnu.org>
9084
9085 * lread.c (read1): Accept `.' (period) as symbol start like in CL
9086 and earlier Emacs versions.
9087
9088 * keyboard.c (Ftop_level): Cancel busy-cursor.
9089
9090 * eval.c (call_debugger): Cancel busy-cursor.
9091
fdce64ff
KH
90922000-03-29 Kenichi Handa <handa@etl.go.jp>
9093
9094 * search.c (Freplace_match): Adjust multibyteness of the current
9095 buffer and NEWTEXT. Free allocated memory before signaling an
9096 error.
9097
f6a3f532
SM
90982000-03-28 Stefan Monnier <monnier@cs.yale.edu>
9099
9100 * regex.c (analyse_first): New function obtained by ripping out most
9101 of re_compile_fastmap and generalizing it a little bit so that it
9102 can also just return whether a given (sub)pattern can match the empty
9103 string or not.
9104 (regex_compile): Use `analyse_first' to decide whether the loop-check
9105 needs to be done or not for *, +, *? and +? (the loop check is costly
9106 for non-greedy repetition).
9107 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
9108
e9b309ac
DL
91092000-03-28 Dave Love <fx@gnu.org>
9110
bb15bd9a
DL
9111 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k,
9112 alpha.
9113
e9b309ac
DL
9114 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
9115
ed0767d8
SM
91162000-03-27 Stefan Monnier <monnier@cs.yale.edu>
9117
9118 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
9119 an expression.
9120 (enum re_opcode_t): Update description of succeed_n.
9121 (PATFETCH): Always define.
9122 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
9123 operators, char classes, shy-groups and intervals).
9124 Optimize special cases of intervals so as to only use succeed_n and
9125 jump_n when really needed.
9126 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
9127 that we don't have to handle the special cases any more.
9128 Simplify on_failure_jump handling as well.
9129
e11e7e46
JR
91302000-03-28 Jason Rumney <jasonr@gnu.org>
9131
9132 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
9133
88faab89
GM
91342000-03-27 Gerd Moellmann <gerd@gnu.org>
9135
182ff242
GM
9136 * s/freebsd.h (GC_SETJMP_WORKS): Define.
9137
9138 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 9139
182ff242
GM
9140 * alloc.c (mark_maybe_object): New function.
9141 (mark_memory): Use it.
9142 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
9143 (setjmp_tested_p, longjmp_done): New variables.
9144 (test_setjmp): New function.
9145 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
9146 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
9147
c1005d06
GM
9148 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
9149 to DEC_TEXT_POS and INC_TEXT_POS.
9150
9151 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
9152 with parameter MULTIBYTE_P.
9153
427ec082 9154 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
c1005d06
GM
9155 MULTIBYTE_P.
9156
7439e5b9 9157 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
9158 buffers because it looks for multibyte character byte sequences
9159 which don't exist in unibyte text.
7439e5b9 9160
d9c545da
GM
9161 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
9162
11fd416e 9163 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
9164 [DEBUG_X_COLORS]: New functions.
9165 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
9166
9167 * xfns.c (x_set_cursor_color): Get color reference counts right.
9168
9169 * xterm.c (x_copy_color): New function.
9170 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
9171
9172 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
9173 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
9174 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
9175 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
9176 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
9177 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
9178 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
9179 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
9180 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
9181 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
9182
11fd416e
GM
9183 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
9184 names for handling per-buffer variables.
d9c545da
GM
9185
9186 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
9187 instead of MAX_BUFFER_LOCAL_VARS.
9188 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
9189
9190 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
9191
88faab89
GM
9192 * xfns.c (x_specified_cursor_type): New function.
9193 (x_set_cursor_type): Use it.
9194
9195 * buffer.h (struct buffer): Add cursor_type.
9196
d80f42b7
SM
91972000-03-26 Stefan Monnier <monnier@cs.yale.edu>
9198
9199 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
427ec082 9200 (print_partial_compiled_pattern, re_compile_fastmap): Handle new
88faab89 9201 opcode.
d80f42b7
SM
9202 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
9203 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
9204 executing it as well as when popping it off the stack to find infinite
9205 loops in non-greedy repetition operators.
9206
89e80928
GM
92072000-03-26 Gerd Moellmann <gerd@gnu.org>
9208
3d4ff2dd
GM
9209 * doc.c (Qfunction_documentation): New variable.
9210 (syms_of_doc): Initialize Qfunction_documentation.
9211 (Fdocumentation): If FUNCTION is a symbol with non-nil
9212 `function-documentation' property, return a documentation derived
9213 from that.
9214
bd96bd79
GM
9215 * buffer.c (syms_of_buffer): Add default-cursor-type.
9216 (init_buffer_once): Don't let cursor_type have a local value
9217 in every buffer.
9218
19d1bc27
GM
9219 * xterm.c (x_display_and_set_cursor): Choose cursor depending
9220 on buffer-local value of cursor_type.
9221 (x_draw_bar_cursor): Add parameter WIDTH.
9222
9223 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
9224 (init_buffer_once): Set default cursor_type value to t.
9225 Mark cursor_type as local everywhere.
9226 (syms_of_buffer): New per-buffer variable cursor-type.
9227
89e80928
GM
9228 * buffer.h (struct buffer): Remove member local_var_flags,
9229 add local_flags.
9230 (MAX_BUFFER_LOCAL_VARS): New macro.
9231 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
9232 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
9233 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
9234 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
9235
9236 * print.c (print_object): Use new macros for per-buffer
9237 variables.
9238
9239 * category.c (Fset_category_table): Use new macros for per-buffer
9240 variables.
9241
9242 * buffer.c (buffer_permanent_local_flags): Make a char array.
9243 (max_buffer_local_idx): New variable.
9244 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
9245 for new handling of per-buffer variables.
9246 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
9247 (init_buffer_once): Initialize per-buffer vars differently.
9248 Set max_buffer_local_idx.
9249
9250 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
9251 variables.
9252
9253 * lread.c (defvar_per_buffer): Use new macros for per-buffer
9254 variables.
9255
9256 * data.c (do_symval_forwarding, store_symval_forwarding)
9257 (find_symbol_value, set_internal, default_value, Fset_default)
9258 (Fkill_local_variable, Flocal_variable_p): Use new macros for
9259 per-buffer variables.
9260
9261 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
9262
9a0dd3dc
GM
92632000-03-24 Gerd Moellmann <gerd@gnu.org>
9264
b68c375f
GM
9265 * xterm.c (x_term_init): Unblock input around call1 of
9266 Qvendor_specific_keysyms.
9267
9a0dd3dc
GM
9268 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
9269 (find_defun_start): Consider an open parenthesis in column 0
9270 a defun start only if open_paren_in_column_0_is_defun_start is set.
9271 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
9272
7973e637
SM
92732000-03-24 Stefan Monnier <monnier@cs.yale.edu>
9274
9275 * eval.c (Fautoload): Add entry in load-history (if after dump).
9276 * lread.c (load-history): Update docstring.
9277
39210e90
GM
92782000-03-24 Gerd Moellmann <gerd@gnu.org>
9279
9280 * indent.c (Fvertical_motion): Always use the current buffer.
9281 Temporarily change the window's buffer, if necessary.
9282
72db3ab5
GM
92832000-03-23 Gerd Moellmann <gerd@gnu.org>
9284
9285 * xterm.c (fast_find_position): Make sure not to consider rows
9286 not visible in the window.
9287
990b2375
SM
92882000-03-22 Stefan Monnier <monnier@cs.yale.edu>
9289
9290 * regex.c (enum syntaxcode): Provide default for non-Emacs.
9291 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
9292
ff4df011
JR
92932000-03-22 Jason Rumney <jasonr@gnu.org>
9294
9295 * w32menu.c (single_submenu): Set help string to NULL if none.
9296 (w32_menu_show): Set help string correctly.
9297 (add-menu-item): Set help string in MIIM_DATA for menu item.
9298 Load SetMenuItemInfoA explicitly.
9299 (w32_menu_display_help): New function.
427ec082 9300
ff4df011
JR
9301 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
9302 (QCdata): Moved to xdisp.c.
9303
9304 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
9305 (Vw32_charset_to_codepage_alist): Removed.
9306 (Vw32_charset_info_alist): New variable.
9307 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312,
9308 chinesebig5, oem, easteurope, turkish, baltic, russian, arabic,
9309 greek, hebrew, thai, johab, mac, unicode]): New symbols.
9310 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
9311 with TODO comment.
9312 (w32_codepage_for_font): Use Vw32_charset_info_alist.
9313 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
9314 Define Vw32_charset_info_alist and w32_charset symbols.
9315
93162000-03-22 Jason Rumney <jasonr@gnu.org>
9317
9318 * makefile.nt (w32bdf.obj): Update dependencies.
9319
9320 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
9321
9322 * w32fns.c: Include fontset.h after dispextern.h.
9323 (Fx_create_frame): Do not create fontset.
9324 (w32_load_system_font): Doc fix.
9325 (Fx_close_connection): Free full_name if it is not shared.
9326
9327 * w32term.c: Include fontset.h after dispextern.h.
9328 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
9329 updated.
9330 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
9331 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
9332 (w32_font_is_double_byte): New function, needs body.
9333 (x_append_glyph): Set glyph->glyph_not_available_p.
9334 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
9335 it->charset. If it->multibyte_p is zero and it->c is a multibyte
9336 character, convert it to a unibyte character.
9337 (struct glyph_string): Delete member `charset'.
9338 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
9339 calculating it is found.
9340 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
9341 the case that per char metric is not available correctly.
9342 (x_fill_glyph_string): Handle the case that the specific glyph is
9343 not available correctly.
9344 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
9345 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
9346 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
9347 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
9348 fontset. Don't call FS_LOAD_FONT.
9349
439d5cb4
KR
93502000-03-22 Ken Raeburn <raeburn@gnu.org>
9351
9352 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
9353 (INT_LISPLIKE): New macro.
9354 (NULL_INTERVAL_P): Use it.
9355 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
9356 SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
9357 GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
9358
9359 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
9360 explicit references to "parent" field of struct interval and
9361 associated unclean type conversions.
9362 * intervals.c (create_root_interval, root_interval, rotate_right,
9363 rotate_left, balance_possible_root_interval, split_interval_right,
9364 split_interval_left, interval_start_pos, find_interval,
9365 next_interval, previous_interval, update_interval,
9366 adjust_intervals_for_insertion, delete_node, delete_interval,
9367 adjust_intervals_for_deletion, merge_interval_right,
9368 merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
9369 copy_intervals_to_string): Likewise.
9370 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
9371 Likewise.
9372 * syntax.c (update_syntax_table): Likewise.
9373
9374 * intervals.c (reproduce_tree_obj): New function, like
9375 reproduce_tree but takes a Lisp_Object for the parent. Declare
9376 with prototype.
9377 (graft_intervals_into_buffer): Use it when appropriate.
9378 (reproduce_tree): Declare with prototype.
9379 (balance_possible_root_interval): Check that the parent is a lisp
9380 object before trying to examine its type.
9381
ee1c5b21
GM
93822000-03-22 Gerd Moellmann <gerd@gnu.org>
9383
9384 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
9385 as strings only if both are known to be strings.
9386
9387 * s/openbsd.h (LIBS_TERMCAP): Undef.
9388
1fb352e0
SM
93892000-03-21 Stefan Monnier <monnier@cs.yale.edu>
9390
9391 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
9392 definitions for non-Emacs compilation.
9393 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
9394 outside of `#ifdef emacs'.
9395 (print_partial_compiled_pattern): Update.
9396 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
9397 (re_compile_fastmap): Merge handling of charset and charset_not (for
9398 emacs and non-emacs compilation as well).
9399 Similarly for (not)categoryspec and (not)syntaxspec.
9400 Don't use the fastmap when reaching `anychar' since the added
9401 complexity is not justified.
9402 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
9403 and (not)syntaxspec. Merge (not)categoryspec.
9404
fdaa1f77
KH
94052000-03-22 Kenichi Handa <handa@etl.go.jp>
9406
ff1a0d8e
KH
9407 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
9408 FACE_FOR_CHAR): Define them differently for the configuration of
9409 --without-x.
fdaa1f77 9410
d152fb46
DL
94112000-03-21 Dave Love <fx@gnu.org>
9412
9413 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
9414 doc string.
9415
d2cafc8c
GM
94162000-03-21 Gerd Moellmann <gerd@gnu.org>
9417
9418 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
9419 (lface_fully_specified_p): Don't check contents of
9420 LFACE_FONT_INDEX because that attribute is optional.
9421 (realize_x_face): Remove now unwarranted xassert.
9422
9111d4b5
KH
94232000-03-21 Kenichi HANDA <handa@etl.go.jp>
9424
9425 The following changes are to make font selection based on
9426 characters, not charset. In addition, they recover fontset
9427 facilities while utilizing the new font selection mechanism.
9428
6c4bfdc0
KH
9429 * Makefile.in (fontset.o): Depend on dispextern.h.
9430
9431 * alloc.c (mark_face_cache): Don't mark face->registry.
9432
9111d4b5
KH
9433 * dispextern.h (struct glyph): New member glyph_not_available_p.
9434 Use 22 bits for face_id.
9435 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
9436 (struct face): Delete member registry, new member ascii_face.
9437 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
9438 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
9439 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
9440 (struct it): Delete member charset, new member
9441 glyph_not_available_p.
9442
9443 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
9444 (struct fontset_info, struct fontset_data): Structs removed.
9445 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
9446 Vglobale_fontset_alist, font_idx_temp): Externs removed.
9447 (fs_load_font, fs_query_fontset): Adjusted for new argument.
9448 (fs_free_face_fontset, fontset_font_pattern,
9449 face_suitable_for_char_p, face_for_char,
9450 make_fontset_for_ascii_face): Extern them.
9451 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
9452 (FS_LOAD_FACE_FONT): New macro.
9453
9454 * fontset.c: All codes rewritten or adjusted for the change of
9455 fontset implementation. Now fontset is represented by char table.
9456 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
9457 removed.
9458 (my_strcasecmp): Function removed.
9459 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
9460 variables.
9461 (AREF, ASIZE): New macros.
9462 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
9463 FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
9464 FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
9465 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
9466 fontset_id_valid_p, font_family_registry, fontset_name,
9467 fontset_ascii, free_face_fontset, face_suitable_for_char_p,
9468 face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
9469 New functions.
9470 (fs_load_font): New arg FACE. Caller changed.
9471 (fs_query_fontset): Argument changed. Caller changed.
9472 (Fquery_fontset): call fs_query_fontset.
9473 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
9474 Functions removed.
9475 (clear_fontset_elements, check_registry_encoding,
9476 check_fontset_name): New functions.
9477 (syms_of_fontset): Set char-table-extra-slots property of fontset
9478 to 3. Staticpro and initialize Vfontset_table and
9479 Vdefault_fontset. Defsubr fontset_font and fontset_list.
9480
9481 * frame.h (struct frame): Member `fontset_data' removed.
9482 (FRAME_FONTSET_DATA): Macro removed.
9483
9484 * frame.c (make_frame): Don't allocate f->fontset_data.
9485 (Fdelete_frame): Don't free f->fontset_data.
9486
6c4bfdc0
KH
9487 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
9488
9111d4b5
KH
9489 * xdisp.c (charset_at_position): Function removed.
9490 (init_iterator): Don't set member charset of struct `it'.
9491 (handle_face_prop, reseat_to_string, set_iterator_to_next,
9492 next_element_from_display_vector, insert_left_trunc_glyphs):
9493 Likewise.
9494 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
9495 FACE_FOR_CHARSET.
9496 (get_next_display_element, append_space,
9497 extend_face_to_end_of_line): Likewise.
9498
9499 * xfaces.c (Qx_charset_registry, Vface_default_registry):
9500 Variables removed.
9501 (clear_font_table, frame_update_line_height, load_face_font):
9502 Adjusted for the change of fontset implementation.
9503 (load_face_fontset_font): Function removed.
9504 (pixel_point_size): New function.
9505 (font_list): Argument type changed. Caller changed.
9506 (LFACE_FONT): New macro.
9507 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
9508 (set_lface_from_font_name): Type of arg FONTNAME is changed to
9509 Lisp_Object. Determine the font name by actually loading a font
9510 by the specified pattern. Set LFACE_FONT (lface) to the specified
9511 pattern. Even if a font is not found, don't try alternatives.
9512 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
9513 (set_font_frame_param): If `font' is specified in lface, use it.
9514 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
9515 (lface_same_font_attributes_p): Likewise.
9516 (make_realized_face): Arguent changed. Caller changed. Set
9517 face->ascii_face to face itself.
9518 (free_realized_face): Free face->fontset if face is for ASCII.
9519 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
9520 deduce_unibyte_registry, x_charset_registry): Functions removed.
9521 (free_realized_multibyte_face): New function.
9522 (lookup_face, lookup_named_face, lookup_derived_face): Argument
9523 changed. Caller changed.
9524 (try_font_list): Argument type changed.
9525 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
9526 (choose_face_font): Argument changed. Handle fontset properly.
9527 (choose_face_fontset_font): Function removed.
9528 (realize_default_face, realize_named_face): Don't remove the
9529 former face here.
9530 (realize_face): Argument changed. Caller changed. Remove face
9531 with the arg former_face_id in advance. Load font for the new
9532 face.
9533 (realize_x_face): Argument changed. Caller changed. For a
9534 multibyte character, share fontset with base_face. For a single
9535 byte character, make a new realized fontset. Don't load a font
9536 here.
9537 (realize_tty_face): Argument changed. Caller changed.
9538 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
9539 (face_at_buffer_position): Don't check multibyte_p for returning
9540 DEFAULT_FACE_ID.
9541 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
9542 FACE_SUITABLE_FOR_CHARSET_P.
9543 (syms_of_xfaces): Remove code for Qx_charset_registry and
9544 Vface_default_registry.
9545
6c4bfdc0
KH
9546 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
9547 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
9548 (x_per_char_metric): Don't try FONT->default_char. Even if
9549 pcm->width is zero, glyph bits may exist.
9550 (x_encode_char): Always initialize char2b->byte1.
9551 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
9552 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
9553 changed.
9554 (x_append_glyph): Set glyph->glyph_not_available_p.
9555 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
9556 it->charset. Handle the case that per char metric is not
9557 available. If it->multibyte_p is zero and it->c is a multibyte
9558 character, convert it to a unibyte character.
9559 (struct glyph_string): Delete member `charset'.
9560 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
9561 the case that per char metric is not available correctly.
9562 (x_fill_glyph_string): Handle the case that the specific glyph is
9563 not available correctly.
9564 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
9565 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
9566 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
9567 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
9568 fontset. Don't call FS_LOAD_FONT.
9569
9570 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
9571 (x_create_tip_frame): Likewise.
9572 (Fx_close_connection): Free full_name of font_info.
9573
9574 * fns.c (optimize_sub_char_table): New function.
9575 (Foptimize_char_table): New function.
9576 (syms_of_fns): Defsubr Soptimize_char_table.
9577
b33dd3b0
GM
95782000-03-20 Gerd Moellmann <gerd@gnu.org>
9579
9580 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
9581 only if buffer is displayed in some window.
9582
9583 * xdisp.c (handle_single_display_prop): Initialize local `value'.
9584 (try_window_reusing_current_matrix): Don't call scroll run
9585 function if run's current and desired position are the same;
9586 this prevents cursor flickering.
9587
4e8a9132
SM
95882000-03-19 Stefan Monnier <monnier@cs.yale.edu>
9589
9590 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
9591
9592 * regex.c (RE_STRING_CHAR): New macro.
9593 (GET_CHAR_AFER_2): Remove.
9594 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
9595 (enum re_opcode_t): Remove on_failure_jump_exclusive.
9596 (print_partial_compiled_pattern, re_compile_fastmap)
9597 (re_match_2_internal): Remove on_failure_jump_exclusive.
9598 (regex_compile): Turn optimizable P+ loops into PP*, so that the
9599 optimization only need to work for * (ie. can use of_keep_string_jump).
9600 Remove the special case for .*\n since it is now covered by the general
9601 optimization.
9602 (re_search_2): Don't bother with `room'.
9603 (skip_one_char): New function.
9604 (skip_noops): Simplify since `memory' is not needed any more.
9605 (mutually_exclusive_p): Restructure slightly to use `switch' and
9606 add handling for "all" remaining cases.
9607 (re_match_2_internal): Change on_failure_jump_smart to use
9608 on_failure_keep_string_jump (and redirect the end-of-loop jump)
9609 rather than on_failure_jump_exclusive.
9610
2136fdd4
GM
96112000-03-19 Gerd Moellmann <gerd@gnu.org>
9612
9613 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
9614 number of bits per RGB because it's everywhere used as the depth
9615 of the visual.
9616
9617 * term.c (calculate_costs): Remove code dealing with X frames.
9618
18e21ce8 96192000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
9620
9621 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
9622
d7b511c4
GM
96232000-03-18 Gerd Moellmann <gerd@gnu.org>
9624
9625 * lread.c (read_integer): Unread the last char not consumed.
9626
16b5d424
GM
96272000-03-17 Gerd Moellmann <gerd@gnu.org>
9628
9629 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 9630 which are in the process of being deleted.
16b5d424 9631
1fa28578
GM
96322000-03-16 Gerd Moellmann <gerd@gnu.org>
9633
83488cce
GM
9634 * Makefile.in (mostlyclean): Add `*.core'.
9635 (clean): Add `bootstrap-emacs'.
9636
1fa28578
GM
9637 * lread.c (read_integer): New function.
9638 (read1): Support read syntax #o, #x, #b, #r.
9639
99633e97
SM
96402000-03-15 Stefan Monnier <monnier@cs.yale.edu>
9641
1fa28578
GM
9642 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
9643 make sure POINTER_TO_OFFSET gives the same value before and after
9644 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
9645 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
9646 (debug): Now only active if > 0 rather than if != 0.
9647 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
9648 (print_partial_compiled_pattern): Add missing `succeed' case. Use
9649 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
9650 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
9651 (store_op1, store_op2, insert_op1, insert_op2)
9652 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
9653 (group_in_compile_stack): Move to after its arg's types are
9654 declared and add a prototype.
99633e97 9655 (PATFETCH): Define in terms of PATFETCH_RAW.
1fa28578
GM
9656 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
9657 wrapper.
99633e97 9658 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
9659 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
9660 indentation of the greedy-op and shy-group code.
99633e97
SM
9661 (at_(beg|end)line_loc_p): Fix argument's types.
9662 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
9663 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
9664 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
9665 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
9666 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
9667 QUIT unconditionally.
99633e97 9668
699238d9
GM
96692000-03-15 Gerd Moellmann <gerd@gnu.org>
9670
9671 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
9672 a sole completion.
9673
9674 * process.c (send_process): Add a hint that the function
9675 can call Lisp code to its comment.
9676
9677 * lread.c (load_dangerous_libraries): New variable.
9678 (Vbytecomp_version_regexp): New variable.
9679 (safe_to_load_p): New function.
9680 (Fload): Handle files not compiled with Emacs specially.
9681 (syms_of_lread): New Lisp variable load-dangerous-libraries.
9682
34e23e5a
GM
96832000-03-14 Gerd Moellmann <gerd@gnu.org>
9684
9c763cca
GM
9685 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
9686
9687 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
9688 support functions only if HAVE_X11R6_XIM is defined.
9689 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
9690
9691 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
9692
9693 * xfns.c (X_I18N_INHIBITED): Don't define.
9694 (create_frame_xic): Remove conditional compilation on
9695 X_I18N_INHIBITED.
9696 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
9697
9698 * config.in (HAVE_X_I18N): Moved here from xterm.h.
9699 (HAVE_X11R6_XIM): Define.
9700
9701 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
9702
34e23e5a
GM
9703 * xterm.c (x_term_init): Add support for X resource `synchronous'.
9704 If set, call XSynchronize.
9705
66f0296e
SM
97062000-03-13 Stefan Monnier <monnier@cs.yale.edu>
9707
34e23e5a
GM
9708 * regex.c: Declare a new type `re_char' used throughout the code
9709 for the string char type. It's `const unsigned char' to match the
9710 rest of Emacs. Consistently make sure all pointers to strings use
9711 it and make sure all pointers into the pattern use `unsigned
9712 char'.
66f0296e 9713 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
9714 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
9715 code duplication.
66f0296e
SM
9716
9717 * charset.h (GET_CHAR_AFTER_2): Remove.
9718 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
9719
854a025c
KR
97202000-03-12 Ken Raeburn <raeburn@gnu.org>
9721
9722 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
9723 variable before the invocation of YMF_PASS_LDFLAGS, in case both
9724 of them try to use backquotes.
9725
b9d2c7e2
DL
97262000-03-12 Dave Love <fx@gnu.org>
9727
9728 * unexelf.c: Restore changes of 1999-10-19.
9729 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
9730 fix its type and alignment; copy it from current process.
9731
5e5dff44
GM
97322000-03-12 Gerd Moellmann <gerd@gnu.org>
9733
9b2f3c38
GM
9734 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
9735 has been found. Fix bug not computing timer's predecessor.
9736
427ec082 9737 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
9738 file name.
9739
e1cff360
GM
9740 * window.c (Fsave_window_excursion): Doc fix.
9741
5e5dff44
GM
9742 * xfns.c (x_defined_color): Rewritten to use
9743 x_allocate_nearest_color.
9744
e411ce4b
EZ
97452000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
9746
9747 * msdos.c (vga_installed): New function, code moved from
9748 dos_set_window_size.
9749 (Qbar, Qcursor_type, outside_cursor): New variables.
9750 (syms_of_msdos): Intern and staticpro them.
9751 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
9752 shape used outside Emacs when called for the first time.
9753 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
9754 cursor shape used outside Emacs.
9755 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
9756 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
9757 type has changed.
9758 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
9759 parameters specify the cursor. Make qreverse a global
9760 variable (renamed to Qreverse).
9761
80460654
GM
97622000-03-09 Gerd Moellmann <gerd@gnu.org>
9763
9764 * fns.c (Fy_or_n_p): Cancel busy-cursor.
9765
95cd4c40
SM
97662000-03-08 Stefan Monnier <monnier@cs.yale.edu>
9767
9768 This is a big redesign of failure-stack and register handling, prompted
9769 by bugs revealed when trying to add shy-groups. Overall, what happened
9770 is that loops are now structured a little differently, groups can be
9771 shy and the code is a little simpler.
9772
9773 * regex.h: Update the copyright.
9774 (RE_SHY_GROUPS): New value.
9775 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
9776 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
9777
80460654
GM
9778 * regex.c (enum re_opcode_t): Remove jump_past_alt,
9779 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
9780 on_failure_jump_(exclusive, loop and smart). Also fix the comment
9781 for (start|stop)_memory since they now only take one argument (the
9782 second has becomes unnecessary).
9783 (print_partial_compiled_pattern): Adjust for changes in
9784 re_opcode_t.
9785 (print_compiled_pattern): Use %ld to printf long ints and flush to
9786 make debugging a little easier.
95cd4c40
SM
9787 (union fail_stack_elt): Make the integer unsigned.
9788 (struct fail_stack_type): Add a `frame' element.
9789 (INIT_FAIL_STACK): Init `frame' as well.
9790 (POP_PATTERN_OP): New macro for re_compile_fastmap.
9791 (DEBUG_PUSH, DEBUG_POP): Remove.
9792 (NUM_REG_ITEMS): Remove.
9793 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
9794 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
9795 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 9796 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
80460654
GM
9797 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
9798 macros.
9799 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
9800 address pushed is not the destination of the jump but the source
9801 of it instead.
95cd4c40
SM
9802 (NUM_FAILURE_ITEMS): Remove.
9803 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
9804 registers before the actual failure point). Don't hardcode any
9805 meaning for str==NULL anymore.
95cd4c40 9806 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
9807 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
9808 Remove.
95cd4c40
SM
9809 (REG_UNSET_VALUE): Use NULL (why not?).
9810 (compile_range): Remove declaration since it doesn't exist.
9811 (struct compile_stack_elt_t): Remove inner_group_offset.
9812 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
9813 (regex_grow_registers): Remove dead code.
9814 (FIXUP_ALT_JUMP): New macro.
80460654
GM
9815 (regex_compile): Add shy-groups Change loops to use
9816 on_failure_jump_smart&jump instead of
9817 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
9818 initial (dummy_failure_)jump. Remove c1_base (looks like unused
9819 variable to me). Use `jump' instead of `jump_past_alt' and don't
9820 bother with push_dummy_failure in alternatives since it is now
9821 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
9822 emacs' for (re)allocating the stack.
9823 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
9824 from loop when bufp->can_be_null rather than jumping to `done'.
9825 Avoid jumping backwards so as to ensure termination. Use
9826 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
9827 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 9828 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
9829 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
9830 improve mutually_exclusive_p to handle ".+\n".
9831 (lowest_active_reg, highest_active_reg,
9832 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
9833 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
9834 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
9835 variables. Push register (in `start_memory') on the stack rather
9836 than storing it in old_reg(start|end). Remove the cycle detection
9837 from `stop_memory', replaced by the use of on_failure_jump_loop
9838 for greedy loops. Add code for the new on_failure_jump_<foo>.
9839 Remove ad-hoc code in `on_failure_jump' to push more registers in
9840 the case of a loop. Take out code from `maybe_pop_jump' into
9841 separate functions and adapt it to the semantics of
9842 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
9843 and push_dummy_failure. Remove dummy_failure handling and
9844 handling of `failures to jump to on_failure_jump' (this last one
9845 was already dead code, it seems).
9846 (group_match_null_string_p, alt_match_null_string_p)
9847 (common_op_match_null_string_p): Remove.
95cd4c40 9848
7397acc4
DL
98492000-03-08 Dave Love <fx@gnu.org>
9850
9851 * config.in: Don't depend on __STDC__ for volatile.
9852 Add POINTER_TYPE, PTR, PROTOTYPES.
9853
9854 * hftctl.c, strftime.c: Use PROTOTYPES.
9855 * eval.c (find_handler_clause): Likewise.
9856
9857 * mem-limits.h: Use POINTER_TYPE.
9858
9859 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
9860 (memory_warnings): Declare using POINTER_TYPE.
9861
5e91ff9e
GM
98622000-03-08 Gerd Moellmann <gerd@gnu.org>
9863
feab4fba
GM
9864 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
9865
25edb08f
GM
9866 * xdisp.c (display_echo_area): Temporarily inhibit garbage
9867 collection.
9868
5e91ff9e
GM
9869 * xfns.c: Remove obsolete code in #if 0.
9870 (Fx_focus_frame): New function.
9871
a735b7e1
KH
98722000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
9873
9874 * coding.c (coding_category_name): Add coding-category-utf-8,
9875 coding-category-utf-16-be, coding-category-utf-16-le.
9876 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
9877 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
9878 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
9879 (detect_coding_utf_8): New function.
9880 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
9881 UTF_16_LOW_SURROGATE_P): New macros.
9882 (detect_coding_utf_16): New function
9883 (detect_coding_mask): When priorities are specified, skip any
9884 categories that have `nil' coding-system. Fix bug of returning
9885 wrong mask when PRIORITIES is specified and detect_coding_XXX()
9886 returns a mask not set in PRIORITIES.
9887 (detect_eol_type_in_2_octet_form): New function.
9888 (detect_eol): selects detect_eol_type_XXX to call according to
9889 cooding->category_idx.
9890 (detect_coding_system): Remove `nil' coding-system in the result.
9891 (Fupdate_coding_systems_internal): Update all coding-categories.
9892
9893 * coding.h (CODING_CATEGORY_IDX_UTF_8,
9894 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
9895 macros.
9896 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
9897 CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
9898 CODING_CATEGORY_IDX_UTF_16_LE.
9899 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
9900 CODING_CATEGORY_MASK_UTF_16_LE): New macros.
9901 (CODING_CATEGORY_MASK_ANY): Include the above macros.
9902 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
9903
9994cc69
GM
99042000-03-07 Gerd Moellmann <gerd@gnu.org>
9905
e9b4e5ff
GM
9906 * doc.c (Fdocumentation_property): If value is not a string,
9907 and doesn't refer to etc/DOC, evaluate it to obtain a string.
9908
f7daf1e1
GM
9909 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
9910 close the display with XtCloseDisplay. This caused a bus error
9911 on OpenWindows.
9912
9994cc69
GM
9913 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
9914 complete but not unique.
9915
4336c705
GM
99162000-03-06 Gerd Moellmann <gerd@gnu.org>
9917
18bb0684
GM
9918 * process.c (send_process): Remove local variable `procname' that
9919 might become invalid when a GC happens. Instead, access the
9920 process name slot directly.
9921
4336c705
GM
9922 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
9923 orig_height if set.
9924
9925 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
9926 orig_height if set.
9927
515d0d0e
EZ
99282000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
9929
9930 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
9931 glyph matrices have been freed.
9932
100b3cbb
GM
99332000-03-05 Gerd Moellmann <gerd@gnu.org>
9934
50df5e5a 9935 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 9936 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
9937
9938 * xfns.c (QCdata): Moved to xdisp.c.
9939
9940 * xdisp.c (QCdata): Moved here from xfns.c.
9941 (syms_of_xdisp): Initialize QCdata.
9942
9943 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
9944
9945 * window.c (coordinates_in_window): Use
9946 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
9947 FRAME_INTERNAL_BORDER_WIDTH.
9948
100b3cbb 9949 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 9950 it is obviously invalid.
100b3cbb
GM
9951
9952 * xterm.c (x_term_init): Create a colormap if not using the
9953 default visual.
9954
9955 * xterm.h (select_visual): Change prototype.
9956
9957 * xfns.c (select_visual): Rewritten. Recognize user-specified
9958 visual classes.
9959 (visual_classes): New variable.
9960
64d739c4
GM
99612000-03-04 Gerd Moellmann <gerd@gnu.org>
9962
9963 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
9964 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
9965 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
9966 (x_decode_color): Don't handle allocation of white and black
9967 specially.
9968 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
9969 XtNcolormap resources.
9970 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
9971 (Fx_create_frame): Initialize color members of x_output structure.
9972 (xpm_load): Pass colormap to XPM lib.
9973
9974 * xfaces.c (x_free_colors): Access colormap of frame using
9975 FRAME_X_COLORMAP. Be paranoid about freeing black and white
9976 when default colormap is used.
9977
9978 * xterm.c (x_term_init): Set Colormap member of x_display_info
9979 structure. Copy colormap if resource `privateColormap' is
9980 specified (PseudoColor only).
9981 (x_setup_relief_color): Access colormap of frame using
9982 FRAME_X_COLORMAP.
9983
9984 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
9985 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
9986
c3cee013
JR
99872000-03-04 Jason Rumney <jasonr@gnu.org>
9988
9989 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
9990 other non-platform-specific equivalents.
64d739c4 9991 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
9992 specific functions and macros as their w32 equivalents where
9993 non-platform-specifics are not available.
9994 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
9995 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
9996 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
9997 (frame_update_line_height): Use macros to access f->output_data.
9998 (defined_color): Remove FIXME comments; fixed.
9999 (x_face_list_fonts, prepare_face_for_display): Put X specifics
10000 into #ifdef blocks. Add WINDOWSNT blocks.
10001 (Fx_list_fonts): Use macros for accessing font data.
10002 (set_lface_from_font_name): Different default fonts for X and
10003 WINDOWSNT.
10004 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
10005 scalable for backward compatibility.
64d739c4 10006 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
10007 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
10008
64d739c4 10009 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
10010 syms_of_w32faces.
10011
10012 * makefile.nt (w32faces.obj): Remove.
10013 (xfaces.obj): Add.
10014
807cc41c
JR
100152000-03-03 Jason Rumney <jasonr@gnu.org>
10016
10017 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
10018 correct parameters.
10019
0007072a
KR
100202000-03-03 Ken Raeburn <raeburn@gnu.org>
10021
10022 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
10023 standard ELF definitions here if the system header does not.
10024
71a6ba55
GM
100252000-03-03 Gerd Moellmann <gerd@gnu.org>
10026
10027 * xterm.c (PER_CHAR_METRIC): Removed.
10028 (x_per_char_metric_1, x_default_char): New functions.
10029 (x_per_char_metric): If font's default char is invalid, return
10030 metrics of a suitably chosen usable default char.
10031 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
10032 char, replace occurrences of unprintable chars with a suitably
10033 chosen usable default char.
71a6ba55 10034
900fa1f1
GM
100352000-03-02 Gerd Moellmann <gerd@gnu.org>
10036
42f55fe0
GM
10037 * xterm.c (note_mouse_highlight): Return quickly if frame's
10038 glyph matrices have been freed.
10039
10040 * dispnew.c (free_glyphs): Block input while freeing matrices.
10041
900fa1f1
GM
10042 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
10043
10044 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
10045 x_free_colors.
10046
10047 * dispextern.h (x_free_colors): Add prototype.
10048
10049 * xfaces.c (x_free_colors): New function.
10050 (unload_color, free_face_colors): Use it.
10051
2f950292
EZ
100522000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
10053
10054 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
10055
10056 * window.c [MSDOS]: Include msdos.h.
10057
54d04320
DL
100582000-03-02 Dave Love <fx@gnu.org>
10059
10060 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
10061
10062 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
10063 set C_OPTIMIZE_SWITCH for gcc.
10064
0ba93ac4
KH
100652000-03-02 Kenichi Handa <handa@etl.go.jp>
10066
10067 * coding.c (coding_save_composition): Be sure to allocate
10068 composition data area in coding even if there's no composition in
10069 the current run.
10070
a2bc11d4
JR
100712000-03-01 Jason Rumney <jasonr@gnu.org>
10072
10073 * w32term.c: Equivalent changes to those made to xterm.c on
10074 2000-02-25 and 2000-02-24.
10075
10076 * w32fns.c: Equivalent changes to those made to xfns.c on
10077 2000-02-25 and 2000-02-21.
10078
10079 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
10080 correct line-end convention is followed.
10081
10082 * w32menu.c [HAVE_BOXES]: Remove #undef.
10083 (single_keymap_panes): Remove code for simulating checkmarks.
10084 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
10085 Remove code for drawing simulated checkmarks.
10086 (w32_menu_show): make unibyte help string correctly.
10087 (add_menu_item): draw standard Windows checkmarks. Draw radio
10088 buttons as radio buttons if possible.
10089
72d19d75
GM
100902000-03-01 Gerd Moellmann <gerd@gnu.org>
10091
2df636f4
GM
10092 * sysdep.c (start_of_text): Don't define this function for NetBSD
10093 with ELF.
10094
427ec082 10095 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
10096 Don't define.
10097 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
10098 (LINKER): Don't undef if __NetBSD__ is defined.
10099
10100 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
10101
10102 * fileio.c [__NetBSD__]: Define `unix'.
10103
72d19d75
GM
10104 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
10105
ed4d0512
GM
101062000-02-29 Gerd Moellmann <gerd@gnu.org>
10107
50b1039f
GM
10108 * atimer.c (start_atimer): Don't abort when timers are stopped.
10109 (append_atimer_lists): New function.
10110 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
10111 arbitrary lists of stopped and running atimers.
10112
ed4d0512
GM
10113 * atimer.c (cancel_atimer): Handle canceling an atimer when
10114 some timers are stopped.
10115
10116 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
10117 after canceling it.
10118
10119 * fns.c (maybe_resize_hash_table): Handle case of new size
10120 coming out as being the same as old size.
10121
387023ee
JR
101222000-02-27 Jason Rumney <jasonr@gnu.org>
10123
10124 * makefile.nt: Add atimer.h to dependencies.
10125 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
10126 * w32console.c: Only disable window system features for dispextern.h
10127 (initialize_w32_display): Build a display info for the console.
10128 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
10129 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
10130 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
10131 as 2 button mice.
10132 * w32gui.h (struct W32FontStruct): Revert last change after change
10133 to xdisp.c.
10134 * w32menu.c (single_submenu): Set up help string.
10135 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
10136 (w32_dialog_show): Set up help string.
10137 * w32term.c (w32_display_info_for_display): Remove unused function.
10138 (w32_draw_bitmap): Use pre-built bitmaps.
10139 (w32_initialize_display_info): New function to initialize parts of
10140 display info that are common to both GUI and console frames.
10141 (w32_term_init): Use w32_initialize_display_info. Do not set
10142 Vw32_num_mouse_buttons here, as it is not called for console
10143 frames. Build bitmaps for indicating truncated lines etc.
10144 (x_delete_display): Destroy pre-built bitmaps.
10145 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
10146 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
10147
4516715a
DL
101482000-02-27 Dave Love <fx@gnu.org>
10149
10150 * lisp.h: Add a bunch of prototypes.
10151
171ca836
KH
101522000-02-26 Kenichi Handa <handa@etl.go.jp>
10153
10154 * keyboard.c (read_char): Set `usec' correctly.
10155
4013921d
KH
101562000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
10157
10158 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
10159 `lambda', set reg[RRR] to the map index.
10160 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
10161 reg[RRR] to 0. Otherwise, set it to -1.
10162
9244a058
GM
101632000-02-25 Gerd Moellmann <gerd@gnu.org>
10164
2df636f4 10165 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 10166
18e21ce8 101672000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 10168
f43d79c1
GM
10169 * fileio.c (Ffile_symlink_p): If result starts with a `/'
10170 and contains a `:', prepend `/:'.
10171
10172 * window.c (select_window_1): If selected_window is nil,
10173 don't "swap out" the buffer's point.
10174 (Fset_window_configuration): Set selected_window to nil
10175 before calling Fselect_window.
10176 (unshow_buffer): Don't set point in buffer from window's point
10177 if another more recently selected window also shows the buffer.
10178
bed0c171
GM
101792000-02-25 Gerd Moellmann <gerd@gnu.org>
10180
449c3c52
GM
10181 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
10182
f5b58615
GM
10183 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
10184 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
10185 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
10186 variables.
10187 (DEFAULT_BUSY_CURSOR_DELAY): New define.
10188 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
10189 (hide_busy_cursor): New functions.
10190 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
10191
10192 * minibuf.c (read_minibuf): Cancel busy-cursor.
10193
10194 * keyboard.c (command_loop_1): Call start_busy_cursor before
10195 Fcommand_execute and cancel_busy_cursor after it.
10196 (timer_check): Remove busy-cursor code.
10197 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
10198 cursor timer.
10199
10200 * process.c (wait_reading_process_input): Remove busy-cursor code.
10201
10202 * eval.c (Fsignal): Call cancel_busy_cursor instead of
10203 Fx_hide_busy_cursor.
10204
10205 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
10206 Remove prototyoes.
10207 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
10208
10209 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
10210
10211 * xterm.c (XTread_socket): Remove busy-cursor code.
10212
4eb8436f
GM
10213 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
10214 (build_frame_matrix_from_leaf_window): Put code handling
10215 glyph row's not being a slice of a frame row in #if 0.
10216 (sync_window_with_frame_matrix_rows): New function.
10217 (frame_row_to_window): New function.
10218 (mirror_line_dance): Handle copies between windows.
10219
3cb65b0e
GM
10220 * lread.c (Fload): Use `xfree' instead of `free'.
10221 (init_obarray): Use `xmalloc' instead of `malloc'.
10222
bed0c171
GM
10223 * window.c (Fset_window_buffer): Set WINDOW to the window
10224 after decoding.
2add4349
GM
10225 (coordinates_in_window): Take frame's internal border width
10226 into account.
bed0c171 10227
42088c12
GM
102282000-02-24 Gerd Moellmann <gerd@gnu.org>
10229
10230 * xterm.c (x_display_and_set_cursor): Display cursor of
10231 non-selected windows depending on the setting of
10232 cursor_in_non_selected_windows.
10233
10234 * xdisp.c (cursor_in_non_selected_windows): New variable.
10235 (syms_of_xdisp): DEFVAR_BOOL it.
10236
d1e103b2
GM
102372000-02-23 Gerd Moellmann <gerd@gnu.org>
10238
723e779c
GM
10239 * data.c (Fstring_to_number): If number is greater than what
10240 fits into an integer, return a float.
10241
d1e103b2
GM
10242 * eval.c (specbind): Remove references to
10243 keyword_symbols_constant_flag.
10244
10245 * data.c (keyword_symbols_constant_flag): Removed.
10246 (Fmakunbound, set_internal, syms_of_data): Remove references to
10247 keyword_symbols_constant_flag.
10248
10249 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
10250
214f877f
KH
102512000-02-23 Kenichi Handa <handa@etl.go.jp>
10252
10253 * syntax.c (multibyte_syntax_as_symbol): New variable.
10254 (syms_of_syntax): Declare it as a Lisp variable.
10255 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
10256 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
10257 nonzero, treat all multibyte characters as symbol.
42088c12 10258 (init_syntax_once): Give syntax `word' to all multibyte
214f877f
KH
10259 characters.
10260
130adcb7
EZ
102612000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
10262
3cb65b0e 10263 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 10264 a deleted frame.
130adcb7 10265
17cbbf95
GM
102662000-02-21 Gerd Moellmann <gerd@gnu.org>
10267
10268 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
10269
10270 * xfns.c (x_window_to_frame, x_any_window_to_frame)
10271 (x_non_menubar_window_to_frame): Check the busy-cursor window.
10272
beb0bc36
DL
102732000-02-21 Dave Love <fx@gnu.org>
10274
10275 * frame.c (Vmouse_position_function): New variable.
10276 (Fmouse_position): Use it.
10277 (syms_of_frame): Install it.
10278
10279 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
10280
1d92afcd
GM
102812000-02-20 Gerd Moellmann <gerd@gnu.org>
10282
10283 * fileio.c (Finsert_file_contents): Unbind the binding of
10284 standard-output done by temp_output_buffer_setup.
329eed9f
GM
10285
10286 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
10287 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
10288 (specbind, unbind_to): Handle most common case of non-constant
10289 symbol with trivial value specially.
10290
10291 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
10292
18e21ce8 102932000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
10294
10295 * data.c (Fmake_variable_buffer_local): Doc fix.
10296 Init found_for_buffer to 0.
10297 (Fmake_variable_frame_local): If the variable has already
10298 been buffer-local, set the check_frame field.
10299
1d4311c3
EZ
103002000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
10301
10302 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
10303 produced for CODING_MODE_LAST_BLOCK requires.
10304
2dc95ddd
DL
103052000-02-18 Dave Love <fx@gnu.org>
10306
10307 * keyboard.c (echo_keystrokes): Remove declaration.
10308 (Vecho_keystrokes) New variable.
10309 (read_char, record_menu_key, read_key_sequence): Use it to allow
10310 use of float value.
10311 (syms_of_keyboard): Change Vecho_keystrokes declaration.
10312
10313 * lread.c: Undef feature selection macros before defining.
10314
f0930f35
GM
103152000-02-18 Gerd Moellmann <gerd@gnu.org>
10316
10317 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
10318 for symbols other than the symbol in question.
10319
e3d4de90
DL
103202000-02-17 Dave Love <fx@gnu.org>
10321
10322 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
10323
0b378936
GM
103242000-02-17 Gerd Moellmann <gerd@gnu.org>
10325
d621caf7
GM
10326 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
10327
0b378936
GM
10328 * alloc.c (enum mem_type): Compile unconditionally.
10329
3b451f74
EZ
103302000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
10331
10332 * xfaces.c (tty_defined_color): Don't return faulire indication
10333 for unspecified-fg and unspecified-bg pseudo-colors.
10334
10689a01
GM
103352000-02-17 Gerd Moellmann <gerd@gnu.org>
10336
1216f5e4
GM
10337 * alloc.c (mark_object): Don't mark symbol names in pure space.
10338 (gc_sweep): Don't unmark symbol names in pure space.
10339
10340 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
10341 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
10342 [GC_MARK_STACK]: New defines.
427ec082 10343 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
10344 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
10345
10346 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
10347
10348 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
10349 allocate_buffer instead of xmalloc.
10350
10351 * alloc.c (toplevel): Include setjmp.h.
10352 (PURE_POINTER_P): New define.
10353 (enum mem_type) [GC_MARK_STACK]: New enumeration.
10354 (Vdead) [GC_MARK_STACK]: New variable.
10355 (lisp_malloc): Add parameter TYPE, call mem_insert if
10356 GC_MARK_STACK is defined.
10357 (allocate_buffer): New function.
427ec082 10358 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
10359 (free_float) [GC_MARK_STACK]: Set type to Vdead.
10360 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
10361 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
10362 (MEM_NIL) [GC_MARK_STACK]: New define.
10363 (struct mem_node) [GC_MARK_STACK]: New structure.
10364 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
10365 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
10366 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
10367 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
10368 (mark_stack) [GC_MARK_STACK]: New functions.
10369 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
10370 (clear_marks): Removed.
10371 (gc_sweep): Set free conses' car, free floats' type, free
10372 symbols' function to Vdead. Use lisp_free to free buffers.
10373 (init_alloc_once): Initialize Vdead.
10374 (survives_gc_p): Return non-zero for pure objects.
10375
10376 * alloc.c: Add comments throughout the file.
10377
2503c8b1
GM
10378 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
10379 that unblocks alarms.
10380
8389e1e2
GM
10381 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
10382 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
10383 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
10384
10689a01 10385 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 10386
bfc17d18
KH
103872000-02-17 Kenichi Handa <handa@etl.go.jp>
10388
4a09dee0
KH
10389 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
10390 avoid infinite error signaling. Allocate sufficient memory for
10391 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 10392
2b927d02
SM
103932000-02-17 Stefan Monnier <monnier@cs.yale.edu>
10394
10395 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
10396 depends on the previous behavior.
10397
b49cb764
GM
103982000-02-16 Gerd Moellmann <gerd@gnu.org>
10399
10400 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
10401
99e95407
GM
104022000-02-15 Gerd Moellmann <gerd@gnu.org>
10403
10404 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
10405
10406 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 10407 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
10408 write(2).
10409
6ffd3cf7
RS
104102000-02-15 Richard M. Stallman <rms@gnu.org>
10411
10412 * data.c (set_internal): Don't make variable buffer-local
10413 if within a let-binding for the same buffer.
10414 (let_shadows_buffer_binding_p): New function.
10415
10416 * eval.c (specbind): For buffer-local value,
10417 record the current buffer also.
10418 (unbind_to): Cope with that change.
10419
cad53475
GM
104202000-02-15 Gerd Moellmann <gerd@gnu.org>
10421
10422 * window.c (Fsave_window_excursion): Doc fix.
10423
1aa963c8
SM
104242000-02-15 Stefan Monnier <monnier@cs.yale.edu>
10425
10426 * syntax.c (back_comment): Make sure we only consider comment-starters
10427 of the relevant style and return -1 in case of a failure to find the
10428 beginning of the comment.
10429 (Fforward_comment): If back_comment fails, go back to the position just
10430 after the comment-end.
10431 (scan_lists): Add comment describing a very minor bug.
10432
b9b84fd3
SM
104332000-02-14 Stefan Monnier <monnier@cs.yale.edu>
10434
10435 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
10436 `completion-regexp-list' in the docstring.
10437
3a28db80
DL
104382000-02-14 Dave Love <fx@gnu.org>
10439
10440 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
10441
fb4a568d
SM
104422000-02-14 Stefan Monnier <monnier@cs.yale.edu>
10443
10444 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
10445 to Emacs' syntax. Also fix the comment about set/not-set meanings
10446 since Emacs syntax is not the value 0 any more.
10447 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
10448 since it's now part of RE_SYNTAX_EMACS.
10449
1063ebb5
DL
104502000-02-12 Dave Love <fx@gnu.org>
10451
10452 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
10453 Alpha.
10454
fb07a302
GM
104552000-02-12 Gerd Moellmann <gerd@gnu.org>
10456
10457 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
10458
aaf2320c
DL
104592000-02-12 Dave Love <fx@gnu.org>
10460
10461 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
10462
10463 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
10464 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
10465 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
10466
10467 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
10468
10469 * s/nextstep.h: Don't define HAVE_ALLOCA.
10470
10471 * config.in: Add vfork bits.
10472
eedf8bde
GM
104732000-02-12 Gerd Moellmann <gerd@gnu.org>
10474
10475 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
10476 unwind function to undo the effect of stopping atimers.
10477
10478 * keyboard.c (bind_polling_period): Stop all timers except
10479 poll_timer.
10480
10481 * atimer.c (stopped_atimers): New variable.
10482 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
10483 New functions.
10484
10485 * atimer.h (stop_other_atimers, run_all_atimers)
10486 (unwind_stop_other_atimers): Add function prototypes.
427ec082 10487
eedf8bde
GM
10488 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
10489
8476c2f8
KR
104902000-02-11 Ken Raeburn <raeburn@gnu.org>
10491
10492 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
10493 library may depend on jpeg.
10494 (atimer.o): Depends on atimer.c.
10495
0e85e4a3
KH
104962000-02-11 Kenichi Handa <handa@etl.go.jp>
10497
10498 * insdel.c (del_range_1): Call update_compositions.
10499 (del_range_both): Call update_compositions just once..
10500
97fa0cc8
DL
105012000-02-10 Dave Love <fx@gnu.org>
10502
10503 * xfns.c (create_frame_xic): Fix initialization of automatic
10504 aggregates for pcc.
10505
25566a3c
KH
105062000-02-09 Kenichi Handa <handa@etl.go.jp>
10507
10508 * ccl.c (CCL_MAKE_CHAR): New macro.
10509 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
10510 registers by CCL_MAKE_CHAR before calling translate_char.
10511 <CCL_TranslateCharacterConstTbl> Likewise.
10512
69da54ba
DL
105132000-02-08 Dave Love <fx@gnu.org>
10514
10515 * lread.c (__EXTENSIONS__): Define.
10516
f7136ee8
GM
105172000-02-08 Gerd Moellmann <gerd@gnu.org>
10518
10519 * puresize.h (BASE_PURESIZE): Increase to 650000.
10520
7768790b
EZ
105212000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
10522
10523 * msdos.c (XMenuActivate): Turn off the cursor after displaying
10524 the help message.
10525
38fd211b
EZ
105262000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
10527
10528 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
10529 md, mh, mb, mr, and me to the fake termcap entry.
10530
66e4690f
KR
105312000-02-06 Ken Raeburn <raeburn@gnu.org>
10532
10533 * sound.c (sound_cleanup): Don't call device close routine if the
10534 function pointer is null.
10535
a75dfea0
AI
105362000-02-06 Andrew Innes <andrewi@gnu.org>
10537
10538 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
10539 around image definitions and prototypes.
10540 (gamma_correct) [WINDOWSNT]: New prototype.
10541
10542 * w32term.c (x_make_frame_visible): Replace call to
10543 input_poll_signal with poll_for_input.
10544
10545 * window.c [WINDOWSNT]: Include w32term.h.
10546
10547 * xdisp.c [WINDOWSNT]: Include w32term.h.
10548
10549 * makefile.nt: Add dependencies on w32gui.h.
10550 (OBJ1): Include atimer.obj.
10551 ($(BLD)\atimer.obj): New dependency rule.
10552
10553 * w32.c (sigmask): New function (does nothing).
10554 (sigunblock): Ditto.
10555
10556 * frame.c [WINDOWSNT]: Include w32term.h.
10557
10558 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
10559
10560 * lread.c (syms_of_lread): Fix literal newlines.
10561
10562 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
10563 the string constant limit (2048 bytes) in MSVC.
10564 (main): Ditto.
10565
59ddecde
GM
105662000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
10567
10568 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
10569 area.
10570 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
10571 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
10572 dispatch the event.
10573
07590973
DL
105742000-02-04 Dave Love <fx@gnu.org>
10575
10576 * fileio.c: Remove some unused vars.
10577 (_GNU_SOURCE): Define (for euidaccess).
10578
10579 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
10580
10581 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
10582 gcpro1, gcpro2.
10583 (read_minibuf): Deal with allow_props correctly.
10584
649351f9
EZ
105852000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
10586
10587 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
10588
66e4690f 105892000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
10590
10591 * search.c (compile_pattern): If a cache entry has a nil regexp,
10592 fill in that entry instead of clobbering a previously cached
10593 string regexp.
10594
66e4690f 105952000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
10596
10597 * puresize.h (BASE_PURESIZE): Increase to 610000.
10598
d240a249
GM
105992000-02-02 Gerd Moellmann <gerd@gnu.org>
10600
10601 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
10602 can GC.
10603
ca91fb26
KH
106042000-02-02 Kenichi Handa <handa@etl.go.jp>
10605
25660570
KH
10606 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
10607 instead of incrementing ic directly.
10608 <CCL_WriteExprConst> Likewise.
10609 <ccl_set_expr>: Set ic to jump_address.
10610
ca91fb26
KH
10611 * fileio.c (e_write): Fix the handling of
10612 CODING_FINISH_INSUFFICIENT_SRC.
10613
2ede9689
DL
106142000-02-01 Dave Love <fx@gnu.org>
10615
10616 * editfns.c (Fpropertize): Doc fix.
10617
10618 * process.c (Fstart_process): Doc fix.
10619
10620 * eval.c: Fix various doc strings not to duplicate information
10621 from help-manyarg-func-alist.
10622
10623 * window.c (Fset_window_margins): Don't make interactive. Doc
10624 fix.
10625
10626 * doc.c (Vhelp_manyarg_func_alist): New variable.
10627 (Fdocumentation): Use it.
10628 (syms_of_doc): Define it.
10629
b6680a0e
GM
106302000-01-31 Gerd Moellmann <gerd@gnu.org>
10631
2cb750ba
GM
10632 * xterm.c (xim_open_dpy): Remove unused local variable.
10633
74e9213b
GM
10634 * emacs.c (USAGE): Use term `display options' instead of `X
10635 options'.
10636
10637 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
10638 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
10639
b6680a0e
GM
10640 * fns.c (sweep_weak_table): New function.
10641 (sweep_weak_hash_tables): Use it. Keep on marking until there
10642 is no more change.
10643
994c5afe
GM
106442000-01-30 Gerd Moellmann <gerd@gnu.org>
10645
10646 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
10647 that XTread_socket does not crash by trying to call XNoOp on a
10648 closed display.
427ec082 10649
f00276e3
JR
106502000-01-30 Jason Rumney <jasonr@gnu.org>
10651
10652 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
10653 Change selected_frame to SELECTED_FRAME ().
10654 (w32_console_mouse_position): Remove #ifndef MULE from around
10655 `insist' parameter.
10656
10657 * makefile.nt: Remove dosfns.obj.
10658
10659 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
10660
10661 * w32fns.c (w32_defined_color): Check for valid frame before
10662 applying gamma correction. Eliminate dependency on frame elsewhere.
10663 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
10664 (w32_to_x_font): Use resx and resy not height_in and width_in.
10665 (x_to_w32_font): Doc fix.
10666 (xlfd_strip_height): New function to strip and return font height.
10667 (w32_font_match): Compare height separately from rest of xlfd
10668 spec, using xlfd_strip_height.
10669
10670 * w32term.c (w32_term_init): Swap resx and height_in, resy and
10671 width_in. Use w32_defined_color in place of defined_color.
10672
10673 * w32faces.c: Merge more of DOS and X specifics in preparation for
10674 merge with xfaces.c.
10675 (defined_color): Remove FIXME comment.
10676 (tty_color_name): Provide w32-specific function.
10677 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
10678
10679 * w32console.c (turn_on_face, turn_off_face): Removed.
10680 (w32_face_attributes): New function.
10681 (Global_variables): Reduce scope where possible.
10682 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
10683 fill attribute.
10684 (hl_mode): Don't modify text attributes.
10685 (write_glyphs): Don't do anything if len <= 0. Use
10686 w32_face_attributes to get attributes for drawing. Write
10687 terminating codes using char_attr_normal.
10688 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
10689 (update_begin, update_end): Likewise.
10690 (vga_stdcolor_name): New function.
10691 (initialize_w32_display): Remove char_attr_reverse and char_attr.
10692 (Fset_screen_color): Remove char_attr_reverse.
10693
b08e8bb2
GM
106942000-01-29 Gerd Moellmann <gerd@gnu.org>
10695
10696 * xfns.c (xic_set_preeditarea): Take window parameter and
10697 window-relative pixel-positions.
10698
10699 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
10700 is its frame's selected window.
10701 (xim_instantiate_callback): Likewise.
10702
10703 * xfns.c (x_create_im): Removed.
10704 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
10705 (supported_xim_styles): Renamed from supported_styles.
10706 (best_xim_style): Renamed from best_style.
10707 (create_frame_xic): Renamed from xic_create_frame.
10708 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 10709
b08e8bb2
GM
107102000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
10711
10712 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
10713 our frames, call XFilterEvent with 2nd parameter `None'.
10714 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
10715 returning XBufferOverflow.
10716 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
10717 area.
10718 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
10719 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
10720 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
10721 (xim_initialize, xim_close)
10722 [HAVE_X_I18N && HAVE_X11R6]: New functions.
10723 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
10724 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
10725 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
10726
10727 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
10728 and `xim_styles'.
10729 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
10730 `xic_style' and `xic_xfs'.
10731 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
10732 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
10733 (FRAME_XIM): Removed.
10734
10735 * xfns.c (supported_styles): New variable.
10736 (DEFAULT_STYLE, DEFAULT_FONT): New macros
10737 (xic_create_xfontset, best_style, xic_create_frame)
10738 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
10739 (xic_set_xfontset): New functions.
10740
142e109c
DL
107412000-01-28 Dave Love <fx@gnu.org>
10742
10743 * s/irix6-5.h: Revert last change after change to irix5-0.h.
10744
10745 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
10746
b02786f9
GM
107472000-01-28 Gerd Moellmann <gerd@gnu.org>
10748
d060bc9f
GM
10749 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
10750 for *scratch* if it already existed.
10751
b02786f9
GM
10752 * emacs.c (USAGE): New macro.
10753 (main): Use it to display usage information.
10754
2c52d7e4
EZ
107552000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
10756
10757 Support for the menu-help feature:
10758
10759 * msdos.h: Change prototypes of XMenuAddSelection and
10760 XMenuActivate.
10761
10762 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
10763 part of the line to the termscript file.
10764 (IT_clear_to_end): Clear the entire line, not just its beginning.
10765 (menu_help_message, prev_menu_help_message): New variables.
10766 (IT_menu_make_room): Make room for the help_text member.
10767 (IT_menu_display): New argument disp_help; all callers changed.
10768 If disp_help is non-zero, store the help text of the active menu
10769 item in menu_help_message.
10770 (XMenuAddPane): Initialize the help_text member to NULL.
10771 (XMenuAddSelection): New argument help_text. Store it in the
10772 XMenu structure.
10773 (XMenuActivate): New argument help_callback. If the value of
10774 menu_help_message has changed since the last time, display the
10775 menu help message text while waiting for the mouse to move. Clear
10776 the echo area before exiting.
10777 (XMenuDestroy): Free the help_text member.
10778
ffe0bcd1
GM
107792000-01-27 Gerd Moellmann <gerd@gnu.org>
10780
10781 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
10782 XMenuAddSelection. Pass help callback to XMenuActivate.
10783 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
10784
50dbd23f
EZ
107852000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
10786
10787 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
10788 and EMACS_SET_USECS.
10789
f5941bf8
GM
107902000-01-26 Dave Love <fx@gnu.org>
10791
6c67ddee
DL
10792 * editfns.c (Fchar_after, Fchar_before): Doc fix.
10793
f5941bf8
GM
10794 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
10795 an error may be signalled.
10796
9e49c990
GM
107972000-01-26 Gerd Moellmann <gerd@gnu.org>
10798
fc3cb460
GM
10799 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
10800 LD_SWITCH_SYSTEM inherited from irix5-0.h.
10801
9e49c990
GM
10802 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
10803
d0c037d8
GM
108042000-01-25 Gerd Moellmann <gerd@gnu.org>
10805
10806 * charset.c (Fstring): If there is a multibyte char among
10807 the args, always return a multibyte string.
10808
e12489f9
GM
108092000-01-25 Gerd Moellmann <gerd@gnu.org>
10810
10811 * sysdep.c (sys_select): Turn atimers off and on instead of
10812 recording and restoring old alarm handler
10813
10814 * process.c (toplevel): Include atimer.h.
10815 (create_process_1): Rewritten.
10816 (create_process): Use atimers instead of alarm.
10817 (wait_reading_process_input) [hpux]: Turn atimers off instead
10818 of turning off SIGALRM.
10819 (wait_reading_process_input): Turn off atimers instead off
10820 calling stop_polling.
10821
10822 * emacs.c (main): Call init_atimer.
10823
10824 * keyboard.c (toplevel): Include systime.h and atimer.h.
10825 (polling_for_input): Removed because unused.
10826 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
10827 (poll_timer): New variable.
10828 (poll_for_input, poll_for_input_1): New functions.
10829 (start_polling, stop_polling): Rewritten.
10830
10831 * keyboard.h (polling_for_input): Removed.
427ec082 10832
e12489f9
GM
10833 * atimer.h, atimer.c: New files.
10834
10835 * Makefile.in (obj): Add atimer.o.
10836 (atimer.o): New target.
10837
10838 * blockinput.h (pending_atimers): Add extern declaration.
10839 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
10840
10841 * lisp.h (popup_activated_flag): Add extern declaration.
10842
10843 * xmenu.c (popup_activated_flag): Make externally visible.
10844 (popup_activate_callback) [USE_MOTIF]: Increment
10845 popup_activated_flag.
10846 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
10847
10848 * xterm.c (toplevel): Include atimer.h.
10849 (toolkit_scroll_bar_interaction): New variable.
10850 (Fxt_process_timeouts): Removed.
10851 (x_process_timeouts): New function.
10852 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
10853 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
10854 (x_make_frame_visible): Call poll_for_input_1 instead of
10855 input_poll_signal. Don't call alarm.
10856 (x_initialize): Install timer calling x_process_timeouts.
427ec082 10857
1e5279b9
DL
108582000-01-24 Dave Love <fx@gnu.org>
10859
6c67ddee 10860 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
10861 Don't use -cckr -- apparently not now necessary.
10862
edf6aeb8
EZ
108632000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
10864
10865 * msdos.c (IT_menu_display): Truncate long menu lines at the right
10866 screen boundary.
10867
9badad41
JR
108682000-01-23 Jason Rumney <jasonr@gnu.org>
10869
10870 * w32fns.c (w32_defined_color): Apply gamma correction before
10871 trying to map to the palette.
10872 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
10873 to w32_clear_rect.
10874
10875 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
10876 here. Callers changed to always pass real device context.
10877 (w32_draw_bitmap): Likewise.
10878 (w32_get_glyph_overhangs): Likewise.
10879 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
10880 one.
10881 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
10882 pfnSetScrollInfo and SetScrollRange.
10883 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
10884 back into MULE characters after decoding them.
10885 (x_get_glyph_face_and_encoding): Likewise.
10886 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
10887 GetCharABCWidthsW fails, since this is defined on Windows 9x.
10888 (x_produce_glyphs): Calculate per char metrics for a character
10889 that we know exists in default font when font_not_found_p is true.
10890
63bd786b
JR
108912000-01-22 Jason Rumney <jasonr@gnu.org>
10892
10893 * makefile.nt (intervals.obj, composite.obj): New modules.
10894 (composite.h): Added as dependency where appropriate.
10895
10896 * w32gui.h (XGCValue): New struct for emulating X GCs.
10897
10898 * w32term.h (XCharStruct): New struct for emulating X.
10899
10900 * w32console.c (turn_on_face, turn_off_face): New functions.
10901 (change_line_highlight): New prototype for new redisplay.
10902 (write_glyphs): Support multibyte text. Support faces.
10903
10904 * w32faces.c: Complete rewrite for new redisplay based on new
10905 xfaces.c.
10906
10907 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
10908 throughout. struct frame * in place of FRAME_PTR.
10909 Skeleton support for images, toolbars, tooltips from xfns.c.
10910 (Fx_create_frame): Use system default for default scroll bar
10911 width.
10912 (w32_get_arg): Renamed from x_get_arg.
10913 (Fx_file_dialog): New function.
10914 (w32_list_fonts): Check cache before asking system.
10915 (Vw32_enable_synthesized_fonts): New variable.
10916 (Vw32_enable_italics): Obsolete, removed.
10917
10918 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
10919 Use SELECTED_FRAME macro.
10920
10921 * w32menu.c: Add skeleton support for help strings on menus.
10922 (add_menu_item): Native checkbox and radio support added, but not
10923 yet enabled due to bugs.
10924 (push_menu_item): Add parameters type, selection and help.
10925 Callers updated.
10926 Formatting changes to reduce unnecessary diffs with xmenu.c.
10927
10928 * w32select.c (Fw32_set_clipboard_data): Update call to
10929 find_charset_in_str.
10930
10931 * w32term.c: Complete rewrite for new redisplay based on new
10932 xterm.c with necessary sections merged back in from old w32term.c.
10933
6ffd3cf7 109342000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
10935
10936 * data.c (set_internal): Further fix in same criterion.
10937
6ffd3cf7 109382000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
10939
10940 * data.c (set_internal): Fix the criteria for whether
10941 to swap out the old cached binding.
10942
60af03f1
DL
109432000-01-19 Dave Love <fx@gnu.org>
10944
10945 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
10946
f9be074f
KH
109472000-01-18 Kenichi Handa <handa@etl.go.jp>
10948
10949 * regex.c (re_compile_fastmap): While checking a range table for
10950 `charset', skip flag bits for a character class correctly.
10951
52b8dbf9
GM
109522000-01-17 Gerd Moellmann <gerd@gnu.org>
10953
d36100c9
GM
10954 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
10955
52b8dbf9
GM
10956 * xfns.c (x_window): Call lw_create_widget with new parameter
10957 list.
10958
10959 * widget.c (EmacsFrameSetCharSize): Change size of children first
10960 because of problems with main window geometry management under
10961 Lesstif.
10962
10963 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
10964 MENU_ITEMS_ITEM_.*.
10965 (MENU_ITEMS_ITEM_HELP): New enumerator.
10966 (push_menu_item): Add parameter HELP. Record help in menu_items.
10967 (single_menu_item, single_submenu, list_of_items): Call
10968 push_menu_item with new parameter.
10969 (single_submenu): Set help string in widget value.
10970 (menu_highlight_callback): New function.
10971 (set_frame_menubar): Call lw_create_widget with new
10972 parameter list.
10973 (xmenu_show, xdialog_show): Ditto.
10974
3139018f
GM
109752000-01-13 Gerd Moellmann <gerd@gnu.org>
10976
10977 * sound.c (Fplay_sound): Improve doc string.
10978
83c8f461
RS
109792000-01-11 Richard M. Stallman <rms@gnu.org>
10980
10981 * lisp.h (set_internal): Enter the new arg.
10982
10983 * eval.c (specbind): Record buffer-local variables specially,
10984 indicating which buffer's binding was saved.
10985 (unbind_to): Restore buffer-local variables specially
10986 in the proper buffer.
10987
10988 * data.c (set_internal): New arg BUF.
427ec082 10989
83c8f461
RS
10990 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
10991 * data.c (Fset): Pass new arg to set_internal.
10992 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 10993
1fab1775
GM
109942000-01-11 Gerd Moellmann <gerd@gnu.org>
10995
10996 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
10997 xprintsym.
10998
83c8f461 109992000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
11000
11001 * minibuf.c (Ftry_completion): Doc fix.
11002
7a85e4df
GM
110032000-01-11 Gerd Moellmann <gerd@gnu.org>
11004
11005 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
11006 vector, too.
11007
a970dae4
AS
110082000-01-11 Andreas Schwab <schwab@suse.de>
11009
11010 * coding.c (code_convert_region): Initialize total_skip.
11011
c65d14ee
DL
110122000-01-08 Dave Love <fx@gnu.org>
11013
11014 * eval.c (Fuser_variable_p): Check customizability too.
11015
834938d2
GM
110162000-01-07 Gerd Moellmann <gerd@gnu.org>
11017
11018 * minibuf.c (Fcompleting_read): Doc fix.
11019
e0303cd6
GM
110202000-01-05 Gerd Moellmann <gerd@gnu.org>
11021
8a26744b
GM
11022 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
11023 -L /usr/local/lib.
11024
e0303cd6
GM
11025 * xfns.c (x_create_im): New function to set IM and IC of a frame.
11026 Check that input style is supported before trying to create an
11027 IC for it.
11028 (x_window): Call x_create_im.
427ec082 11029
2e471eb5
GM
110302000-01-04 Gerd Moellmann <gerd@gnu.org>
11031
560a7bd2
GM
11032 * xfns.c (current_gif_memory_src): New variable.
11033 (gif_load): Record the address of the current memory source
11034 in current_gif_memory_src.
11035 (gif_read_from_memory): Use current_gif_memory_src.
11036
f9ee84a3
GM
11037 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
11038 macros statement form.
11039
d1299cde
GM
11040 * sound.c (struct sound): Renamed from struct sound_file.
11041 (struct sound): Add members `data' and `header_size'.
11042 (enum sound_attr): Add SOUND_DATA.
11043 (current_sound, current_sound_device): Variables renamed from
11044 sound_file and sound_device.
11045 (parse_sound): Parse :data.
11046 (parse_sound): Handle sound data in strings.
11047 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 11048 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
11049 needed header size.
11050 (wav_play, au_play): Play sounds from string data.
11051
2e471eb5
GM
11052 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
11053
11054 * lisp.h: Add prototype for allocate_string_data.
11055
11056 * alloc.c (Fgarbage_collect): Return number of live and free
11057 strings.
11058
11059 * alloc.c (mark_buffer): Remove code in #if 0.
11060 (gc_sweep): Ditto.
11061 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
11062 (strings_consed): New variable.
11063 (allocate_string): Set it.
11064 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
11065 (Fmemory_use_counts): Return strings_consed. Use Flist.
11066
11067 * alloc.c: General cleanup in comments etc. Remove conditional
11068 compilation for `standalone'.
11069
11070 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
11071
11072 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
11073 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
11074 (DONT_COPY_FLAG): Removed.
11075 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
11076 (struct sdata, struct sblock): New
11077 (struct string_block): Rewritten.
11078 (STRINGS_IN_STRING_BLOCK): New macro.
11079 (oldest_sblock, current_sblock, total_strings, total_free_strings)
11080 (large_sblocks, string_blocks, string_free_list): New variables.
11081 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
11082 (init_strings): Rewritten.
11083 (allocate_string, allocate_string_data, compact_small_strings)
11084 (free_large_strings, sweep_strings): New functions.
11085 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
11086 (struct string_block_head, current_string_block)
11087 (first_string_block, large_string_blocks, STRING_FULLSIZE)
11088 (STRING_PAD): Removed.
11089 (make_uninit_multibyte_string, make_pure_string): Rewritten.
11090 (Fgarbage_collect): Don't set mark bit in large strings.
11091 (mark_object): Mark strings differently. Mark symbol names
11092 differently.
11093 (survives_gc_p): Test marked strings differently.
427ec082 11094 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
11095 symbol names.
11096 (compact_strings): Removed.
11097
42608ba8
EZ
110982000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
11099
11100 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
11101 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
11102
e0a09e1a
KH
111032000-01-04 Kenichi Handa <handa@etl.go.jp>
11104
dd9f0750 11105 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 11106 in a non-empty buffer.
dd9f0750 11107
3c0f3b15 11108 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 11109
44cd3ae5
GM
111102000-01-03 Gerd Moellmann <gerd@gnu.org>
11111
11112 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
11113 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
11114
11115 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
11116
c182a70f
EZ
111172000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11118
11119 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
11120 need to test for MSDOS frames.
11121
24480d5b
EZ
111222000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11123
11124 * dosfns.c (unspecified_colors): Remove.
11125 (msdos_stdcolor_idx): Use global variables unspecified_fg and
11126 unspecified_bg.
11127 (msdos_stdcolor_name): Return strings for unspecified fore- and
11128 back-ground colors.
11129
11130 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 11131 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
11132 (tty_color_name): Return Lisp strings for unspecified fore- and
11133 back-ground colors.
11134 (Finternal_set_lisp_face_attribute): Remove the special treatment
11135 for Qunspecified_{f,b}g.
11136 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
11137 string.
11138
047f434a
GM
111392000-01-03 Gerd Moellmann <gerd@gnu.org>
11140
11141 * xdisp.c (reseat_at_next_visible_line_start): Position before
11142 newline only if ending up on a newline.
11143 (next_element_from_ellipsis): Return success. Handle case of
11144 displaying no ellipsis. Fix case of ellipsis defined in display
11145 table.
11146 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
11147 returns 0.
11148
d684c676
EZ
111492000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11150
11151 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
11152 (Fcolor_supported_p): Renamed from face-color-supported-p.
11153
5fe1d139
EZ
111542000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11155
11156 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
11157 list of colors renamed to tty-defined-color-alist.
11158 (tty_color_name): Pass the frame to tty-color-by-index.
11159 (realize_tty_face): tty-color-alist is now a function which
11160 accepts the frame as argument.
11161
11162 * term.c (Ftty_display_color_p): Accept an optional argument
11163 FRAME.
11164
816be8b8
EZ
111652000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11166
11167 * term.c (insert_glyphs): Pass glyph, not &glyph, to
11168 encode_terminal_code.
11169
b635321e
EZ
111702000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11171
11172 * dispnew.c (mode_line_string): Support termcap frames as well.
11173
9b784e96
GM
111742000-01-01 Gerd Moellmann <gerd@gnu.org>
11175
27189709
GM
11176 * syntax.c (Fforward_word): Undo previous change.
11177
11178 * editfns.c (Fconstrain_to_field): Don't constrain if
11179 inhibit-field-text-motion is non-nil.
11180 (Fline_beginning_position): Undo previous change.
11181 (Fline_end_position): Ditto.
11182
11183 * syntax.c (Fforward_word): Notice field boundaries only if
11184 inhibit-field-text-motion is nil.
11185
11186 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
11187
11188 * editfns.c (Vinhibit_field_text_motion): New variable.
11189 (inhibit-field-text-motion): New DEFVAR_LISP.
11190 (Fline_beginning_position, Fline_end_position): Notice field
11191 boundaries only if inhibit-field-text-motion is nil.
11192
45158a91
GM
11193 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
11194 All calls adjusted.
11195 (x_build_heuristic_mask): Likewise.
11196 (xbm_load_image_from_file): Change error output.
11197 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
11198 (gif_load, gs_load, x_kill_gs_process): Ditto.
11199
9b784e96
GM
11200 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
11201 color indices when accessing raster pixels.
63cec32f
GM
11202 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
11203 one of :file or :data.
11204 (enum pbm_keyword_index): Add PBM_DATA.
11205 (pbm_format): Add :data.
11206 (pbm_image_p): Allow either :file or :data.
11207 (pbm_read_file): New function.
11208 (pbm_scan_number): Rewritten to read from string.
11209 (pbm_load): Support :data.
9b784e96 11210
2cb085db 11211See ChangeLog.8 for earlier changes.
6922b018
KH
11212
11213;; Local Variables:
49b3bd82 11214;; coding: iso-2022-7bit
6922b018 11215;; End: