(Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
2eddf899
GM
12001-03-26 Gerd Moellmann <gerd@gnu.org>
2
3 * xfaces.c (x_update_menu_appearance): Use local variable
4 popup_path for setting font resources.
5
6c145d35
EZ
62001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
7
6a65b1b5
EZ
8 * frame.c (Fframe_list): Don't reference tip_frame if
9 HAVE_WINDOW_SYSTEM is not defined.
10
6c145d35
EZ
11 * emacs.c (main): Update the copyright year. From Werner LEMBERG
12 <wl@gnu.org>.
13
d74c1900
GM
142001-03-25 Gerd Moellmann <gerd@gnu.org>
15
20fbd925
GM
16 * xdisp.c (init_from_display_pos): Test invisible property
17 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
18
927c5b3b
GM
19 * xdisp.c (redisplay_internal) <update one window>: Make sure
20 last_arrow_position and last_arrow_string are set.
21
d74c1900
GM
22 * frame.c (Fframe_list): Don't return a tooltip frame.
23
091f8878
GM
242001-03-23 Gerd Moellmann <gerd@gnu.org>
25
43c09969
GM
26 * xdisp.c (mark_window_display_accurate_1): New function,
27 extracted from mark_window_display_accurate. Compute
28 BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
29 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
30 (mark_window_display_accurate): Use it.
31 (redisplay_internal): Use it for the selected window.
32 (redisplay_internal): Avoid duplicate mark_window_display_accurate
33 for the selected frame.
34
ac90c44f
GM
35 * xdisp.c Use make_number, for readability.
36 (try_window_id): Disable rows below the window end.
37 (try_window_reusing_current_matrix): Use cursor_row_p.
38 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
39 of rows.
40 (init_from_display_pos): If POS specifies a position in a display
41 vector, maybe get the iterator set up for that ellipsis.
43c09969 42
091f8878
GM
43 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
44
991786dd
EZ
452001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
46
47 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
48
6c29b43c
GM
492001-03-23 Gerd Moellmann <gerd@gnu.org>
50
51 * xfaces.c (x_update_menu_appearance): Use a different path
52 for Lucid popup menus.
53
d8731202
SM
542001-03-22 Stefan Monnier <monnier@cs.yale.edu>
55
56 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
57
58 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
59 (string_buffer_position): Use `make_number'.
60
f61a541b
GM
612001-03-22 Gerd Moellmann <gerd@gnu.org>
62
3c9e997b
GM
63 * xfaces.c (x_update_menu_appearance): Renamed from
64 x_set_menu_face_resources. Use different resources for popups.
65
66 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
67 (GC_CHECK_STRING_BYTES): Don't define.
68
364cd450
GM
69 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
70 Removed, together with subroutines.
71 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
d8731202 72 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
364cd450 73
d8731202
SM
74 * dispextern.h (x_set_menu_resources_from_menu_face):
75 Remove prototype.
364cd450 76
d8731202 77 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
364cd450
GM
78 Remove calls to x_set_menu_resources_from_menu_face.
79
d8731202
SM
80 * xfaces.c (xm_set_menu_resources_from_menu_face):
81 Remove #ifndef LESSTIF_VERSION.
f61a541b
GM
82
83 * xmenu.c: Include widget.h.
84 (single_submenu): Return int. Some cleanup.
85 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
86
140330de
GM
872001-03-21 Gerd Moellmann <gerd@gnu.org>
88
89 * xterm.c (x_update_window_end): Handle overwritten mouse face
90 also for tool bar windows.
91 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
92 DRAW is DRAW_IMAGE_RAISED.
93
1741905c
GM
942001-03-20 Gerd Moellmann <gerd@gnu.org>
95
fa88947e
GM
96 * print.c (syms_of_print): Doc fixes.
97
1741905c
GM
98 * fns.c (Fmd5): Doc fix.
99
ade0bee1
GM
1002001-03-19 Gerd Moellmann <gerd@gnu.org>
101
357e7376
GM
102 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
103 Clear area of the frame not occupied by the scroll bar.
104
c2c097cc
GM
105 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
106 tip frame's root window buffer to *tip* right after creating
107 the frame.
108
ade0bee1
GM
109 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
110 is an integer don't have to be for space characters.
111
88c6e37e
GM
1122001-03-16 Gerd Moellmann <gerd@gnu.org>
113
114 * indent.c (current_column, current_column_1, Fmove_to_column)
115 (compute_motion): Handle characters from display vectors
116 differently.
117
c62eed76
KH
1182001-03-15 Kenichi Handa <handa@etl.go.jp>
119
120 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
121 drawing glyph string.
122
c899e7e6
GM
1232001-03-15 Gerd Moellmann <gerd@gnu.org>
124
d0bbfc99
GM
125 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
126 (command_loop_1): Undo last change.
127
03d1a189
GM
128 * xterm.c (fast_find_position): Return the correct vpos.
129
c899e7e6
GM
130 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
131 non-null, set a per-buffer value in BUF instead of the current
132 buffer.
133 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
134 Call store_symval_forwarding with BUF null.
135 (set_internal): Call store_symval_forwarding with the BUF
136 parameter passed to set_internal. Formerly, the value was always
137 set in the current buffer; the buffer recorded in specbind for
138 this case wasn't used.
139 (arith_driver): Reindent.
140
141 * buffer.c (swap_out_buffer_local_variables): Call
142 store_symval_forwarding with BUF null.
143
144 * lisp.h (store_symval_forwarding): Change prototype.
145
146 * eval.c (specbind): Call store_symval_forwarding with BUF null.
147
57ac7c81
GM
1482001-03-14 Gerd Moellmann <gerd@gnu.org>
149
697617d9
GM
150 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
151 FOR_DELETION. Avoid resizing the mini-window of the selected
152 frame if FOR_DELETION is set.
153 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
154 (Fmake_frame_invisible): Change calls to do_switch_frame for new
155 signature.
156
157 * window.c (Fset_window_configuration): Change call to
158 do_switch_frame to new format.
159
160 * keyboard.c (quit_throw_to_read_char): Change call to
161 do_switch_frame to new format.
162
163 * lisp.h (do_switch_frame): Change prototype.
164
819dce0f
GM
165 * frame.c (Fframe_parameters): In the `buffer-list' frame
166 parameter, store the buffer list of FRAME, not the list of the
167 selected frame.
168
57ac7c81
GM
169 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
170 box just because the glyph row's full_width_p flag is set.
171
65008712
GM
1722001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
173
174 * xdisp.c (highlight_trailing_whitespace): On character terminals,
175 skip the padding blanks inserted in extend_face_to_end_of_line,
176 before checking for trailing whitespace.
177
159cf431
GM
1782001-03-13 Gerd Moellmann <gerd@gnu.org>
179
19b2bb80
GM
180 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
181 Remove special handling for LessTif/Motif.
182 (toplevel): Don't include Xm/Xm.h.
183
afcdc0a1
GM
184 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>: Remove
185 workaround code for LessTif; it doesn't work anymore.
186
2564ea1b 187 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
57ac7c81 188 Xm/ScrollBarP.h.
afcdc0a1 189
23442ae4
GM
190 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Don't
191 access private scroll bar data; it's no longer necessary with
192 contemporary LessTif.
193
9faaaa52
GM
194 * xfaces.c (xm_set_menu_resources_from_menu_face): Change
195 #if 0 to #ifndef LESSTIF_VERSION.
196
159cf431
GM
197 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
198 removing button grabs.
199
c6f7429a
KH
2002001-03-13 Kenichi Handa <handa@etl.go.jp>
201
cb82d767
KH
202 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
203 and clip-large-size-font as obsolete.
204
c6f7429a
KH
205 * lread.c (read_multibyte): Check the validity of multibyte
206 sequence. If invalid, return the first byte.
207
760cefb5
GM
2082001-03-12 Gerd Moellmann <gerd@gnu.org>
209
210 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
211 before running the command; timer functions or process
212 filters may have set it.
213
5141f9d0
EZ
2142001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
215
216 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
217 Doc fix.
218
b6a15240
GM
2192001-03-12 Gerd Moellmann <gerd@gnu.org>
220
221 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
222 to sprintf.
223
95522746
GM
2242001-03-09 Gerd Moellmann <gerd@gnu.org>
225
db14cfc5
GM
226 * dispextern.h (string_buffer_position): Add prototype.
227
228 * xdisp.c (string_buffer_position, display_prop_string_p)
229 (single_display_prop_string_p): New functions.
230
231 * xterm.c (note_mouse_highlight): If there's no help-echo on
232 a string, look at the buffer text ``under'' it.
233
234 * keyboard.c (make_lispy_event): Add string info to the event,
235 analogous to what's done on mode lines.
236 (read_key_sequence): For a click on a string, consider `local-map'
237 and `keymap' of that string.
238
3cfd8357
GM
239 * keyboard.c (make_lispy_event, make_lispy_movement): Adjust
240 calls to buffer_posn_from_coords to new format.
241
242 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
243
244 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
245 POS; return void.
246
95522746
GM
247 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
248 flags argument to emacs_open; it seems to conflict with O_EXCL.
249
898a399d
KH
2502001-03-09 Kenichi Handa <handa@etl.go.jp>
251
28cd4910
KH
252 * composite.h (struct composition): Change types of members;
253 glyph_len to unsigned, width to unsigned short.
898a399d 254
4cdf6a6c
AI
2552001-03-08 Andrew Innes <andrewi@gnu.org>
256
257 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
258 menu titles.
259
129004d3
GM
2602001-03-08 Gerd Moellmann <gerd@gnu.org>
261
221dd3e7
GM
262 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
263 instead of nil.
264
5de7c6f2
GM
265 * xterm.c (note_mouse_highlight): Handle mouse-face and
266 help-echo in strings.
267 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
268 (fast_find_string_pos): New function.
269
270 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
271 (display_string): Call face_at_string_position with new
272 parameter.
273
274 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
275 Handle `mouse-face'.
276
277 * dispextern.h (face_at_string_position): Change prototype.
278
e1fbabaf
GM
279 * dired.c (directory_files_internal): Handle EAGAIN more
280 efficiently.
281
129004d3
GM
282 * keyboard.c (make_lispy_event): Avoid generating drag events
283 if the mouse hasn't actually moved to another buffer position.
284
80c8ab8c
DL
2852001-03-08 Dave Love <fx@gnu.org>
286
129004d3 287 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
80c8ab8c 288
989521fd
GM
2892001-03-08 Gerd Moellmann <gerd@gnu.org>
290
291 * process.c (Fset_process_window_size): Fix a typo.
292
bb5c338d
KH
2932001-03-08 Kenichi Handa <handa@etl.go.jp>
294
295 * coding.c (detect_coding_sjis): Do more rigid check.
296 (detect_coding_big5): Likewise.
297 (decode_coding_sjis_big5): Likewise.
298 (Fdetect_coding_region): Call detect_coding_system with tailing
299 anchor byte `\0' for more rigid detection.
a1b12fe9
KH
300 (detect_coding_mask): Fix the incorrect handling of arg
301 MULTIBYTEP.
bb5c338d
KH
302 (Fdetect_coding_string): Likewise.
303
8b8f9197
SM
3042001-03-07 Stefan Monnier <monnier@cs.yale.edu>
305
306 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
307 a string before extracting its data.
308
3bdf2660
GM
3092001-03-07 Gerd Moellmann <gerd@gnu.org>
310
311 * window.c (Frecenter): Rewrite code handling negative values
312 of ARG on graphical frames.
313
3142001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
315
316 * window.c (displayed_window_lines): If W->start is outside the
317 accessible portion of the buffer, call start_display with BEGV or
318 ZV instead of W->start.
319
471f86b9
GM
3202001-03-07 Gerd Moellmann <gerd@gnu.org>
321
2ab62c6c
GM
322 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
323
471f86b9
GM
324 * process.c (Fset_process_filter): Don't crash if the input
325 file descriptor of PROCESS is closed.
326 (Fset_process_window_size): Likewise.
327
101922c3
GM
3282001-03-06 Kenichi Handa <handa@etl.go.jp>
329
330 * xterm.c (XTflash): Make the timeout of select shorter, and call
331 select repeatedly until the desired time expires.
332
45d051a7
GM
3332001-03-06 Gerd Moellmann <gerd@gnu.org>
334
335 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
336
337 * xfns.c (Fx_create_frame): Clear Vwindow_list.
338
339 * lisp.h (Vwindow_list): Declare extern.
340
8f372c46
EZ
3412001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
342
343 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
344
f16a7aa5
GM
3452001-03-06 Gerd Moellmann <gerd@gnu.org>
346
157ae273
GM
347 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
348 to detect a case where we have to highlight a different region
349 despite not having left the currently highlighted region.
350 Set mouse_face_overlay in the x_display_info.
45d051a7 351 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
157ae273
GM
352
353 * xterm.h (struct x_display_info): Add mouse_face_overlay.
354
355 * buffer.c (mouse_face_overlay_overlaps): New function.
356
357 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
358 (Qmouse_face): Declare extern.
359
f16a7aa5
GM
360 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
361 if face_change_count is non-zero.
362
827afcac
KH
3632001-03-06 Kenichi Handa <handa@etl.go.jp>
364
365 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
366 that the source is unibyte.
367
14c7242e
DL
3682001-03-05 Dave Love <fx@gnu.org>
369
827afcac 370 * xterm.c (XTmouse_position): Fix typo.
14c7242e 371
c28b847b
GM
3722001-03-05 Gerd Moellmann <gerd@gnu.org>
373
374 * minibuf.c (read_minibuf): Clean up the binding stack if
375 called noninteractively.
376
b86644f2
KH
3772001-03-05 Kenichi Handa <handa@etl.go.jp>
378
379 * coding.c (syms_of_coding): Docstring modified.
380
203682cc 3812001-03-05 Kenichi Handa <handa@etl.go.jp>
b86644f2
KH
382
383 * charset.c (char_to_string): If a single byte char has modifier
384 bits that can't be reflected to the character code, ignore them
45d051a7 385 instead of signaling an error.
b86644f2 386
e30bd7b7
EZ
3872001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
388
389 * s/msdos.h: Update copyright notice.
390
391 * dosfns.h: Update copyright notice.
392
393 * dosfns.c: Update copyright notice.
394
395 * msdos.c: Update copyright notice.
396
b52b65bd
GM
3972001-03-02 Gerd Moellmann <gerd@gnu.org>
398
399 * xterm.c (glyph_rect): New function.
400 (XTmouse_position): Use it to raise the threshold for mouse
401 movement event generation.
402
53c4b1e6
EZ
4032001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
404
405 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
406 specifies (reverse . t), reverse the initial screen colors.
407 (IT_set_frame_parameters): If the property is foreground-color,
408 but we are reversing the colors, set bg_set, not fg_set. Likewise
409 for setting background-color and reversing: set fg_set. Set
410 unspecified-fg and unspecified-bg correctly when (reverse . t) is
411 in effect.
412
413 * xfaces.c (Finternal_set_lisp_face_attribute)
414 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
415 parameters alist.
416
f964b4d7
GM
4172001-03-02 Gerd Moellmann <gerd@gnu.org>
418
ef53d75e
GM
419 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
420 to a single slash in the middle of file names.
421
cda0f4da
GM
422 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
423 Accept only alphanumeric time zone names.
424
f964b4d7
GM
425 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
426 or width area.
427 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
428 a widget to zero height.
429
c3c45f65
GM
4302001-03-01 Gerd Moellmann <gerd@gnu.org>
431
432 * window.c (Fwindow_end): Call move_it_past_eol only if
433 ending up on a partially visible line.
434
028d739a
DL
4352001-03-01 Dave Love <fx@gnu.org>
436
437 * ccl.c (Fccl_execute): Doc fix.
438
57c5889c
GM
4392001-03-01 Gerd Moellmann <gerd@gnu.org>
440
35f59f6b
GM
441 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
442 of the tool bar before calling x_figure_window_size.
443
f84ff02c
GM
444 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
445 NULL after destroying it, otherwise XTread_socket can access a
446 destroyed widget when input is unblocked.
447
8b8f9197 448 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
420f628c 449
57c5889c
GM
450 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
451 same name as before, although there was a change in fontsets.
452
224227d1
KR
4532001-02-28 Ken Raeburn <raeburn@gnu.org>
454
4560730a
KR
455 * lisp.h (Fframe_parameter): Declare.
456
224227d1 457 * window.c (set_window_buffer): Field vscroll is an int, not a
57c5889c 458 Lisp_Object.
224227d1 459
ece93c02
GM
4602001-02-28 Gerd Moellmann <gerd@gnu.org>
461
11ef99b9
GM
462 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
463 NULL instead.
464
465 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
466 NULL instead.
467
ece93c02
GM
468 * alloc.c (toplevel): Include process.h.
469 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
470 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
471 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
472 (allocate_vector, allocate_hash_table, allocate_window)
473 (allocate_frame, allocate_process, allocate_other_vector): New
474 functions.
475 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
476 (mark_maybe_pointer): New function.
477 (mark_memory): Also mark Lisp data to which only pointers
478 remain and not Lisp_Objects.
479 (min_heap_address, max_heap_address): New variables.
480 (mem_find): Return MEM_NIL if START is below min_heap_address or
481 above max_heap_address.
482 (mem_insert): Compute min_heap_address and max_heap_address.
483
484 * process.c (make_process): Use allocate_process.
485
486 * frame.c (make_frame): Use allocate_frame.
487
488 * window.c (make_window, make_dummy_parent): Use allocate_window.
489 (Fcurrent_window_configuration): Use allocate_other_vector.
490
491 * lisp.h (allocate_vectorlike): Remove prototype.
492 (allocate_vector, allocate_other_vector, allocate_frame)
493 (allocate_window, allocate_process, allocate_hash_table):
494 Add prototypes.
495
496 * fns.c (Fdelete, larger_vector): Use allocate_vector.
497 (make_hash_table, copy_hash_table): Use allocate_hash_table.
498
063af457
KH
4992001-02-27 Kenichi Handa <handa@etl.go.jp>
500
501 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
502 treat the produced bytes as a valid multibyte sequence.
503
504 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
505 (ccl_driver) <CCL_WriteMultibyteChar2>: Use
506 CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
507 <ccl_finish>: Set ccl->eight_bit_control properly.
508
509 * ccl.h (struct ccl_program): New member eight_bit_control.
510
f58c6494
SM
5112001-02-26 Stefan Monnier <monnier@cs.yale.edu>
512
513 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
514 accessible_keymaps_char_table.
515 (accessible_keymaps_char_table): Obey `is_metized'.
516 (where_is_internal, Fwhere_is_internal): Don't confuse int and
517 Lisp_Object.
518
c596c392
GM
5192001-02-26 Gerd Moellmann <gerd@gnu.org>
520
521 * dispnew.c: Check HAVE_TERM_H before including term.h.
522
425de386
AI
5232001-02-24 Andrew Innes <andrewi@gnu.org>
524
525 * makefile.w32-in: Update copyright notice.
526
2ba11bbd
SM
5272001-02-24 Stefan Monnier <monnier@cs.yale.edu>
528
529 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
530
66c56ed1
KH
5312001-02-24 Kenichi Handa <handa@etl.go.jp>
532
4c1593ce
KH
533 * Makefile.in (lisp): Add international/utf-8.elc.
534
66c56ed1
KH
535 * fontset.c (Fnew_fontset): Fix handling of the case that an
536 element of FONTLIST is a cons of family and registry.
537
796ead7e
JR
5382001-02-23 Jason Rumney <jasonr@gnu.org>
539
540 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
541 to height unconditionally.
542
543 * w32term.c (x_set_glyph_string_background_width): Extend the
544 background face to the end of the drawing area in the text area,
545 only.
546 (x_insert_glyphs): Call window_box_left to obtain the left
547 x-coordinate of the area to shift.
548
549 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
550 safe_run_hooks.
551
f6839838
AI
5522001-02-22 Andrew Innes <andrewi@gnu.org>
553
554 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header
555 files.
556 ($(BLD)\dispnew.obj):
557 ($(BLD)\editfns.obj):
558 ($(BLD)\fileio.obj):
559 ($(BLD)\filelock.obj):
560 ($(BLD)\keyboard.obj):
561 ($(BLD)\w32proc.obj):
562 ($(BLD)\process.obj):
563 ($(BLD)\sysdep.obj): Ditto.
564
565 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
566 header files.
567 ($(BLD)/dispnew.$(O)):
568 ($(BLD)/editfns.$(O)):
569 ($(BLD)/fileio.$(O)):
570 ($(BLD)/filelock.$(O)):
571 ($(BLD)/keyboard.$(O)):
572 ($(BLD)/w32proc.$(O)):
573 ($(BLD)/process.$(O)):
574 ($(BLD)/sysdep.$(O)): Ditto.
575
c224f70b
GM
5762001-02-22 Gerd Moellmann <gerd@gnu.org>
577
51695746
GM
578 * xdisp.c (forward_to_next_line_start): When taking the shortcut
579 at the start of the function, check that the \n in it->c is
580 from the iterator's current position.
581
a61b7058
GM
582 * xdisp.c (handle_single_display_prop): Add parameter
583 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
584 properties which replace the display of text with something else.
585 (handle_display_prop): Call handle_single_display_prop with
586 additional argument saying if we already replaced text display
587 with something else. Use AREF.
588 (with_echo_area_buffer_unwind_data, display_menu_bar)
589 (decode_mode_spec_coding): Use AREF and ASIZE.
590
3473f362
GM
591 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
592 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
593 * vmstime.h: Files removed.
594
2bb58df3
GM
595 * unexencap.c, unexfx2800.c: Files removed.
596
c224f70b
GM
597 * dispnew.c (direct_output_for_insert): Give up if we are showing
598 a message or just cleared the message because we might need to
599 resize the echo area window or display an empty echo area.
600
ffc9ff0c
GM
6012001-02-21 Gerd Moellmann <gerd@gnu.org>
602
0528abe1
GM
603 * xdisp.c (redisplay_internal): Do the
604 mark_window_display_accurate after all windows have been
605 redisplayed because this call resets flags in buffers which are
606 needed for proper redisplay.
607
ffc9ff0c
GM
608 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c: Use
609 display_hourglass_p, start_hourglass, cancel_hourglass instead of
610 the old names.
611
612 * w32term.h (struct x_output): Rename busy_cursor to
613 hourglass_cursor, busy_window to hourglass_window, busy_p to
614 hourglass_p.
615
616 * msdos.h (struct x_output): Rename busy_window to
617 hourglass_window, busy_p to hourglass_p.
618
619 * xterm.h (struct x_output): Rename busy_cursor to
620 hourglass_cursor, busy_window to hourglass_window, busy_p to
621 hourglass_p.
622
623 * xfns.c: Rename everything containing *busy_cursor* and similar
624 to *hourglass*.
625 (syms_of_w32fns): Rename x-busy-pointer-shape to
626 x-hourglass-pointer-shape, display-busy-cursor to
627 display-hourglass, busy-cursor-delay to hourglass-delay.
628
629 * w32fns.c: Rename everything containing *busy_cursor* and similar
630 to *hourglass*.
631 (syms_of_w32fns): Rename x-busy-pointer-shape to
632 x-hourglass-pointer-shape, display-busy-cursor to
633 display-hourglass, busy-cursor-delay to hourglass-delay.
634
635 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
636 of its busy_p flag.
637
638 * dispextern.h (start_hourglass, cancel_hourglass)
639 (display_hourglass_p): Renamed from *busy_cursor*.
640
ab2c5f0a
GM
6412001-02-20 Gerd Moellmann <gerd@gnu.org>
642
d17e49a8
GM
643 * keyboard.c (read_char): When an event from unread-command-events
644 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
645
fa97adf6
GM
646 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
647 equal to the current buffer.
648
ab2c5f0a
GM
649 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
650 nil, otherwise we're left with truncate_lines t when a message
651 is printed with message-truncate-lines bound to t.
652
aeac019e
GM
6532001-02-19 Gerd Moellmann <gerd@gnu.org>
654
c8bc6f65
GM
655 * window.c (Fmove_to_window_line): Undo last change.
656 (displayed_window_lines): Call line_bottom_y to determine
657 the line's bottom position.
658
659 * dispextern.h (line_bottom_y): Add prototype.
660
661 * xdisp.c (line_bottom_y): New function extracted from
662 pos_visible_p.
663 (pos_visible_p): Use it.
664
980a2d69
GM
665 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
666 set redisplaying_p to 0 here instead of in Frecursive_edit.
667 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
668 set redisplaying_p.
669
184d2372
GM
670 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
671 New variables.
672 (syms_of_xdisp): Initialize new variables.
673 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
674 Specbind `inhibit-menubar-update' when updating the menu bar.
675
65048e97
GM
676 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
677 safe_run_hooks.
678
679 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
680 safe_run_hooks.
681
a57c4026
GM
682 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
683 is null.
684
aeac019e
GM
685 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
686 to the start of the file.
687
76846b31
GM
6882001-02-16 Gerd Moellmann <gerd@gnu.org>
689
f3f053f3 690 * window.c (set_window_buffer): Fix last change.
25237df5 691
f3f053f3
GM
692 * window.c (set_window_buffer): Set window's vscroll to 0.
693
dad75588
GM
694 * window.c (coordinates_in_window): Increase width of area
695 where the vertical line can be dragged.
696
c220b753
GM
697 * xterm.c (x_set_glyph_string_background_width): Extend the
698 background face to the end of the drawing area in the text
699 area, only.
700
c56b1c1b
GM
701 * xdisp.c (handle_single_display_prop): Set iterator's position
702 to where the `display' property starts, like for images.
703 (dump_glyph): New function.
704 (dump_glyph_row): Use it. Dump info about marginal areas.
705
706 * dispnew.c (direct_output_for_insert): Recognize more cases where
707 glyphs can be written instead of being inserted.
708
709 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
710 the left x-coordinate of the area to shift.
711
76846b31
GM
712 * dired.c (directory_files_internal): Set result list to nil
713 before retrying.
714
0fc71a77
KH
7152001-02-15 Kenichi Handa <handa@etl.go.jp>
716
717 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
718 invalid multibyte sequence, treat *SRC as a character of
719 eight-bit-graphic.
720
25078b54
EZ
7212001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
722
723 * textprop.c (Fset_text_properties): Doc fix.
724
8399f8a0
GM
7252001-02-15 Gerd Moellmann <gerd@gnu.org>
726
727 * dispnew.c (update_text_area): Undo change of 2001-01-12.
728
9a2a6f73
DL
7292001-02-14 Dave Love <fx@gnu.org>
730
731 * coding.c: Doc and message fixes.
732
bf853fee
AI
7332001-02-14 Andrew Innes <andrewi@gnu.org>
734
735 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
736 Emacs frame above the screen size.
737
78c663d8
GM
7382001-02-14 Gerd Moellmann <gerd@gnu.org>
739
740 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
741
7cc9f69f
GM
7422001-02-13 Gerd Moellmann <gerd@gnu.org>
743
0a411995
GM
744 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
745 case that TO ends up beyond ZV after running before-change-functions.
746
5ddc1b75
GM
747 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
748 the selected window if it is showing the buffer in question.
749
7cc9f69f
GM
750 * dired.c (directory_files_internal): Initialize errno.
751 (toplevel): Include errno.h.
752
2e6621ca
GM
7532001-02-13 Kenichi Handa <handa@etl.go.jp>
754
755 * xfaces.c (best_matching_font): New parameter width_ratio.
756 Multiply avgwidth by width_ratio.
757 (choose_face_font): Call best_matching_font with width_ratio
758 calculated from the column width of C.
759
60222d69
AI
7602001-02-12 Andrew Innes <andrewi@gnu.org>
761
762 The following changes are to draw box lines inside characters area
763 if line-width is negative.
764
765 * w32term.c (x_produce_image_glyph): Pay attention to the case that
766 face->box_line_width is negative.
767 (x_produce_stretch_glyph): Likewise.
768 (x_produce_glyphs): Likewise.
769 (x_estimate_mode_line_height): Likewise.
770 (x_draw_glyph_string_background): Likewise.
771 (x_draw_glyph_string_foreground): Likewise.
772 (x_draw_composite_glyph_string_foreground): Likewise.
773 (x_draw_glyph_string_box): Likewise.
774 (x_draw_image_foreground): Likewise.
775 (x_draw_image_relief): Likewise.
776 (x_draw_image_foreground_1): Likewise.
777 (x_draw_image_glyph_string): Likewise.
778
9804b846
KH
7792001-02-09 Kenichi Handa <handa@etl.go.jp>
780
781 The following changes are to draw box lines inside characters area
782 if line-width is negative.
783
784 * xterm.c (x_produce_image_glyph): Pay attention to the case that
785 face->box_line_width is negative.
786 (x_produce_stretch_glyph): Likewise.
787 (x_produce_glyphs): Likewise.
788 (x_estimate_mode_line_height): Likewise.
789 (x_draw_glyph_string_background): Likewise.
790 (x_draw_glyph_string_foreground): Likewise.
791 (x_draw_composite_glyph_string_foreground): Likewise.
792 (x_draw_glyph_string_box): Likewise.
793 (x_draw_image_foreground): Likewise.
794 (x_draw_image_relief): Likewise.
795 (x_draw_image_foreground_1): Likewise.
796 (x_draw_image_glyph_string): Likewise.
797
798 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
799 and :line-width can be negative.
800 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be
801 negative.
802
49be9f70
JR
8032001-02-09 Jason Rumney <jasonr@gnu.org>
804
805 * w32term.c (w32_encode_char): Treat eight bit graphic and control
806 characters the same as ASCII and latin-1.
807 (x_display_and_set_cursor): Check for the focus frame's selected
808 window instead of selected_window.
809 (x_after_update_window_line): Don't clear if frame's internal
810 border width is zero.
811 (x_new_font): Don't change a tooltip's size.
812 (w32_initialize): Set char_ins_del_ok to 1.
813
814 * w32fns.c (Fx_show_tip): Fix calls to make_number.
815 (x_set_font): If font hasn't changed, avoid recomputing
816 faces and other things.
817 (x_set_tool_bar_lines): Do nothing if frame is
818 minibuffer-only,
819 (Fx_create_frame): Add the tool bar height to the frame
820 height.
821 (x_create_tip_frame): Prevent changing the tooltip's
822 background color by specifying a color for the default font
823 in .Xdefaults.
824 (Qcancel_timer): New variable.
825 (syms_of_w32fns): Initialize and staticpro it.
826 (Fx_hide_tip, Fx_show_tip): Use it.
827 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
828 the timer.
829 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
830
831 * w32.c (init_environment): Duplicate local string before putenv.
832
555e35d2
SZ
8332001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
834
835 * charset.c (Fstring): A typo.
836
19c92c94
KH
8372001-02-09 Kenichi Handa <handa@etl.go.jp>
838
e47a1c33
KH
839 * charset.c (Fstring): If all arguments are less than 256, return
840 a unibyte string.
841
842 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
843 return a unibyte string.
844
19c92c94
KH
845 * coding.c (code_convert_region): After detecting a coding, if
846 nothing found, set coding->composing to COMPOSITION_NO.
847 (decode_coding_string): Likewise.
848
d8e675f5
SM
8492001-02-08 Stefan Monnier <monnier@cs.yale.edu>
850
851 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
852 to avoid overflow.
853
bd503487
KH
8542001-02-07 Kenichi Handa <handa@etl.go.jp>
855
856 * charset.c (parse_str_to_multibyte): New function.
857
858 * charset.h (parse_str_to_multibyte): Extern it.
859
860 * print.c (print_string): If we are going to print a unibyte
861 string into a multibyte buffer, convert the string to multibyte by
862 str_to_multibyte.
863
a8370d72
AI
8642001-02-06 Andrew Innes <andrewi@gnu.org>
865
866 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
867 been created. It seems we can get sent window messages such as
868 WM_ERASEBKGND before we properly update a frame.
869
c363a1d6
GM
8702001-02-06 Gerd Moellmann <gerd@gnu.org>
871
872 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
873 Avoid some unnecessary cursor positioning.
874
a08332c0
GM
8752001-02-05 Gerd Moellmann <gerd@gnu.org>
876
877 * xfaces.c (split_font_name): Compute numeric value of
878 XLFD_AVGWIDTH.
879 (LFACE_AVGWIDTH): New macro.
880 (LFACEP): Use AREF.
881 (check_lface_attrs): Check LFACE_AVGWIDTH.
882 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
883 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
884 (merge_face_vectors): Check LFACE_AVGWIDTH.
885 (Finternal_make_lisp_face): Use AREF.
886 (xm_set_menu_resources_from_menu_face)
887 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
888 (Finternal_lisp_face_empty_p): Use AREF.
889 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
890 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
891 Compare average widths..
892 (best_matching_font): Arrange for comparing average widths.
893
894 * dispextern.h (enum lface_attribute_index): Add
895 LFACE_AVGWIDTH_INDEX (invisible from Lisp).
896
5cb3c8d4
DL
8972001-02-05 Dave Love <fx@gnu.org>
898
899 * puresize.h: Revert last change following loadup.el change.
900
193fba87
AI
9012001-02-05 Andrew Innes <andrewi@gnu.org>
902
903 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
904 invocation of temacs, to work with Windows 2000.
905 (bootstrap-emacs): Ditto.
906
e16f52ce
GM
9072001-02-05 Gerd Moellmann <gerd@gnu.org>
908
7a58ab59
GM
909 * xterm.c (x_display_and_set_cursor): Check for the focus
910 frame's selected window instead of selected_window.
911
e89aaabd
GM
912 * xdisp.c (try_scrolling): If point is in the line below the
913 window, make sure to move the iterator at least a canonical
914 char height down.
915
e16f52ce
GM
916 * window.c (Fmove_to_window_line): Don't add 1 if window is
917 vscrolled.
918
789ce875
KH
9192001-02-05 Kenichi Handa <handa@etl.go.jp>
920
921 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not. If
922 invalid, execute CCL_INVALID_CMD.
923 (ccl_driver): If the CCL program is terminated because of
924 CCL_STAT_INVALID_CMD, copy the remaining source data to the
925 destination instead of throwing them away.
926
20b28f82
GM
9272001-02-02 Gerd Moellmann <gerd@gnu.org>
928
79fb38c0
GM
929 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
930 faces and other things.
931
20b28f82
GM
932 * xdisp.c (get_next_display_element): Fix case of empty
933 display table entry.
934
5a72551e
EZ
9352001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
936
eb24d0bf
EZ
937 * editfns.c (Fconstrain_to_field): Doc fix.
938
6a3f48c7
EZ
939 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
940 into `thoroughly', to make it consistent with the doc string.
941
5a72551e
EZ
942 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
943
01acdb05
GM
9442001-02-01 Gerd Moellmann <gerd@gnu.org>
945
0353b28f
GM
946 * search.c (search_buffer): Call set_search_regs with a byte
947 position, not a character position.
948
01acdb05
GM
949 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
950 minibuffer-only,
951
e86b5133
EZ
9522001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
953
954 * frame.c (Fmodify_frame_parameters): Doc fix.
955
7442878f
GM
9562001-01-31 Gerd Moellmann <gerd@gnu.org>
957
01acdb05
GM
958 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
959 identifier which is not reserved by Standard C.
960
7442878f
GM
961 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
962
963 * window.c (enum window_part): New enumeration.
964 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
965 Qright_bitmap_area.
966 (coordinates_in_window): Return an enumerator from enum
967 window_part. Fix handling of right scroll bar.
968 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
969 `right-fringe' instead of `left-bitmap-area' and
970 `right-bitmap-area'. Use enumerators from enum window_part
971 instead of hard-coded integers.
972 (check_window_containing, window_from_coordinates): Use
973 enumerators from enum window_part instead of hard-coded integers.
974 (syms_of_window): Replace Qleft_bitmap_area and
975 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
976
7c132cba
EZ
9772001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
978
979 * editfns.c (Fformat_time_string): Doc fix.
980
c359dd9e
SM
9812001-01-31 Stefan Monnier <monnier@cs.yale.edu>
982
983 * keymap.c (Fwhere_is_internal): Use the first valid binding
984 if no ascii binding is found (when firstonly is t).
985
ce070307
GM
9862001-01-31 Gerd Moellmann <gerd@gnu.org>
987
b4f30ec5
GM
988 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
989 instead of Finteractive_p.
990
991 * lisp.h (interactive_p): Add prototype.
992
993 * eval.c (interactive_p): New function.
994 (Finteractive_p): Use it.
995
ce070307
GM
996 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
997
f57b6e64
DL
9982001-01-31 Dave Love <fx@gnu.org>
999
d61c7afe
DL
1000 * .gdbinit (hook-run): Define to run xreload.
1001
f57b6e64
DL
1002 * textprop.c (Fset_text_properties): Fix newline in doc string.
1003
eef93f99
GM
10042001-01-30 Gerd Moellmann <gerd@gnu.org>
1005
1006 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp): Use
1007 DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
1008
1009 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
1010 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
1011 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
1012
1013 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
1014 height.
1015
d9c1f6f9
DL
10162001-01-30 Dave Love <fx@gnu.org>
1017
1018 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
1019 AFTER_POTENTIAL_GC.
1020
e8f044a0
GM
10212001-01-29 Gerd Moellmann <gerd@gnu.org>
1022
1023 * bytecode.c (Fbyte_code) <Bcurrent_column>: Add
1024 BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
1025
8e1db7b3
EZ
10262001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
1027
1028 * textprop.c (Fset_text_properties): Doc fix.
1029
4eefd9d2
GM
10302001-01-29 Gerd Moellmann <gerd@gnu.org>
1031
1032 * xdisp.c (forward_to_next_line_start): Remove xassert.
1033
fccb8288
EZ
10342001-01-29 Jason Rumney <jasonr@gnu.org>
1035
4eefd9d2 1036 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
fccb8288
EZ
1037 returning without releasing it.
1038
76581eab
KH
10392001-01-29 Kenichi Handa <handa@etl.go.jp>
1040
1041 * w32fns.c (w32_font_match): Allocate three more bytes to regex
1042 for '^', '$', and '\0'.
1043
83a96b4d
AC
10442001-01-28 Andrew Choi <akochoi@i-cable.com>
1045
5604ec34
AC
1046 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
1047 regex for '^', '$', and '\0'.
1048
83a96b4d
AC
1049 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
1050 only if current_sblock has been initialized.
1051
1052 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
1053 terminal frame even if it is the only visible frame.
1054
c09a6440
KH
10552001-01-28 Kenichi Handa <handa@etl.go.jp>
1056
1057 * fontset.c (font_family_registry): Even if FONTNAME conform to
1058 XLFD, if it specifies other fields than family and registry,
1059 return FONTANME. New argument FORCE if nonzero cancel that
1060 feature.
1061 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
1062 a signle byte character. Don't set FAMILY part to nil here. It
1063 is handled by the caller choose_face_font.
1064 (Fnew_fontset): Call font_family_registry with FORCE 0.
1065 (Fset_fontset_font): Likewise.
1066
4dcd74e6
GM
10672001-01-27 Gerd Moellmann <gerd@gnu.org>
1068
1069 * xdisp.c (display_line): Don't treat a newline as fitting
1070 on the line.
1071
d2906bf8
GM
10722001-01-26 Gerd Moellmann <gerd@gnu.org>
1073
0130fe1a
GM
1074 * window.c (size_window): Set the window's orig_top to nil when
1075 changing heights, so that a future shrink_mini_window won't
1076 restore a bogus height.
1077
550f0e6a
GM
1078 * frame.c (do_switch_frame): If selected frame has a mini-window,
1079 resize that to exact size.
1080
b7b20fbd
GM
1081 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
1082
a47b7816
GM
1083 * xdisp.c (display_line): Simplify check for glyphs fitting
1084 entirely in the line.
1085
d2906bf8
GM
1086 * xfns.c (xic_style): New variable.
1087 (create_frame_xic): Move static variable to global scope for
550f0e6a 1088 the case that `static' gets defined away.
d2906bf8 1089
73df2b1e
KH
10902001-01-26 Kenichi Handa <handa@etl.go.jp>
1091
1092 * coding.c (decode_coding): Set a flag for inhibiting
1093 inconsistent eol.
1094 (code_convert_region): Always set saved_coding_symbol.
1095 (decode_coding_string): Likewise. Update coding->symbol when we
1096 encounter a inconsistent eol by the same way as
1097 code_convert_region.
1098
6613cfc4
GM
10992001-01-25 Gerd Moellmann <gerd@gnu.org>
1100
c5e6e06b
GM
1101 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
1102 XClearArea.
1103
1104 * xterm.c (x_after_update_window_line): Don't clear if frame's
1105 internal border width is zero.
1106 (x_clear_area): New function.
1107 (x_after_update_window_line, x_clear_end_of_line)
1108 (x_scroll_bar_create, x_scroll_bar_set_handle)
1109 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
1110 instead of XClearArea.
1111
1112 * xterm.h (x_clear_area): Add prototype.
1113
6613cfc4
GM
1114 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
1115 which doesn't seem necessary anymore with Lesstif 0.92.
1116
650cc6cc
DL
11172001-01-25 Dave Love <fx@gnu.org>
1118
34ac3367
DL
1119 * puresize.h (BASE_PURESIZE): Up to 720000.
1120
650cc6cc
DL
1121 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
1122
5e37dc22
GM
11232001-01-25 Gerd Moellmann <gerd@gnu.org>
1124
e1e441f9
GM
1125 * xdisp.c (echo_area_display): Don't call redisplay_internal
1126 when Emacs is shutting down. We can't run hooks etc. that
1127 would be necessary to do a redisplay.
1128
5e37dc22
GM
1129 * lread.c (read_integer): Use type EMACS_INT instead of int.
1130
0fb94c7f
EZ
11312001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
1132
1133 * ccl.c (ccl_driver): Fix last change.
1134
e3778624
KH
11352001-01-25 Kenichi Handa <handa@etl.go.jp>
1136
1137 * ccl.h (sturct ccl_program): New member suppress_error.
1138
bb264518 1139 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
e3778624
KH
1140 insert error message to the output.
1141 (setup_ccl_program): Initialize ccl->suppress_error to 0.
1142
1143 * coding.h (struct coding_system): New member suppress_error.
1144
1145 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
1146 (Fset_terminal_coding_system_internal): Set the member
1147 suppress_error to 1.
1148 (Fset_safe_terminal_coding_system_internal): Likewise.
1149
245ed2b1
SM
11502001-01-24 Stefan Monnier <monnier@cs.yale.edu>
1151
1152 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
1153 as if it was a `charset'.
1154
f9aaedb6
GM
11552001-01-24 Gerd Moellmann <gerd@gnu.org>
1156
1157 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
1158 value in where_is_cache; the next lookup in the cache returns
1159 something bogus if we do.
1160
c3902c3e
EZ
11612001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
1162
1163 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
1164 if HAVE_WINDOW_SYSTEM isn't defined.
1165
3497f73e
GM
11662001-01-24 Gerd Moellmann <gerd@gnu.org>
1167
e7e41584
GM
1168 * fns.c (sweep_weak_table): Fix code taking items out of
1169 the hash collision chain. Some cleanup.
1170
3497f73e
GM
1171 * xterm.c (x_new_font): Don't change a tooltip's size.
1172
1173 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
1174 background color by specifying a color for the default font
1175 in .Xdefaults.
1176
3d48e687
KH
11772001-01-24 Kenichi Handa <handa@etl.go.jp>
1178
96531b20
KH
1179 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
1180 a workaround for SunOS 4's cc.
1181 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
1182 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
1183 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
1184 statement.
3d48e687 1185
a30629d2
GM
11862001-01-23 Gerd Moellmann <gerd@gnu.org>
1187
1188 * xterm.c (x_set_window_size_1): New function extracted from
1189 x_set_window_size.
1190 (x_set_window_size): Use it.
1191 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
1192 doesn't have a widget, like tooltips.
1193
5a43decf
EZ
11942001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
1195
1196 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc
1197 fix.
1198
b0e98867
KH
11992001-01-23 Kenichi Handa <handa@etl.go.jp>
1200
1201 * fns.c (Fset_char_table_default): Fix to make sub char-table
1202 correctly.
1203
50606b4c
GM
12042001-01-22 Gerd Moellmann <gerd@gnu.org>
1205
cb2ddc53 1206 * xdisp.c (build_desired_tool_bar_string): Make sure we have
a30629d2 1207 a desired tool bar string, even if there are no tool bar
cb2ddc53
GM
1208 items.
1209
57c28064
GM
1210 * xdisp.c (Ftool_bar_lines_needed): New function.
1211 (syms_of_xdisp): Defsubr it.
1212
50606b4c
GM
1213 * editfns.c (Fformat): Don't extend text properties from arguments
1214 to padding chars in the result.
1215
2f169c38
EZ
12162001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
1217
1218 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
1219
0f32f023
AI
12202001-01-20 Andrew Innes <andrewi@gnu.org>
1221
1222 * w32term.c (w32_ring_bell): Only support visible bell on w32
1223 frames.
1224 (w32_initialize): Don't set term hooks that aren't actually needed
1225 in windowed mode.
1226
1227 * xfaces.c (realize_default_face):
1228 (realize_face):
1229 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
1230
1231 * xdisp.c (handle_single_display_prop): Remove references to
1232 FRAME_W32_CONSOLE_P.
1233
1234 * dispnew.c (Fredraw_frame): Remove reference to
1235 FRAME_W32_CONSOLE_P.
1236
1237 * frame.h (output_method): Remove output_w32_console method.
1238 (FRAME_W32_CONSOLE_P): Remove macro.
1239
1240 * frame.c (Qw32_console): Remove variable.
1241 (Fframep): Remove references to it.
1242 (syms_of_frame): Ditto.
1243 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
1244
1245 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
1246 redefinition.
1247
7173eada
KH
12482001-01-20 Kenichi Handa <handa@etl.go.jp>
1249
1250 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
1251
755b45ce
AI
12522001-01-19 Andrew Innes <andrewi@gnu.org>
1253
1254 * w32.c (init_environment): Add a version-independent site-lisp
1255 directory to EMACSLOADPATH, after the version dependent one.
1256
0a949811
GM
12572001-01-19 Gerd Moellmann <gerd@gnu.org>
1258
8501998a
GM
1259 * editfns.c (Fbuffer_substring): Doc fix.
1260
0a949811
GM
1261 * xdisp.c (message_dolog, message2, message2_nolog): Rename
1262 parameter LEN to NBYTES.
1263
e6ebcbbe
KH
12642001-01-19 Kenichi Handa <handa@etl.go.jp>
1265
200ecca2
KH
1266 * charset.c (strwidth): Use c_string_width.
1267 (c_string_width): New function.
1268 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
1269 Caller changed.
1270
1271 * charset.h (c_string_width, lisp_string_width): Extern them.
1272
1273 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
1274
e6ebcbbe
KH
1275 * indent.c (check_composition): Check validity of composition.
1276
200ecca2
KH
1277 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
1278 characters by calling c_string_width.
1279 (x_consider_frame_title): Get byte length of frame tile string
1280 correctly.
1281 (display_mode_element): Pay attention to width of non-ASCII
1282 characters by calling strwidth.
1283
8692ca92
GM
12842001-01-18 Gerd Moellmann <gerd@gnu.org>
1285
8962e303
GM
1286 * xfns.c (Qcancel_timer): New variable.
1287 (syms_of_xfns): Initialize and staticpro it.
1288 (Fx_hide_tip, Fx_show_tip): Use it.
1289 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
1290 the timer.
1291 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
1292
91523be9
GM
1293 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
1294
1295 * window.h (WINDOW_LIVE_P): New macro.
1296
b0b7ed0e
GM
1297 * window.c (window_size_fixed): New variable.
1298 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
1299 the doc string.
1300
06bccf8e
GM
1301 * eval.c (specbind): If binding a per-buffer variable which
1302 doesn't have a buffer-local value in the current buffer, change
1303 the global value by changing the value of the symbol bound in all
1304 buffers not having their own value, to make it consistent with
1305 what happens with other buffer-local variables.
1306
8692ca92
GM
1307 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
1308
1309 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
1310 when searching for a newline.
1311
bb3a3b50
KH
13122001-01-18 Kenichi Handa <handa@etl.go.jp>
1313
1314 * xdisp.c (display_string): Fix previous change.
1315
c2cc16fa
JR
13162001-01-18 Jason Rumney <jasonr@gnu.org>
1317
1318 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
1319 GLYPH_DEBUG is defined.
1320 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
1321 true for images with `:ascent 100'.
1322 (x_set_mouse_face_gc): If the last used mouse face has gone in the
1323 meantime, use face MOUSE_FACE_ID.
1324 If first glyph isn't a character glyph, use the ASCII NUL
1325 character to determine the face.
1326 (expose_area): Do not treat left margin specially.
1327 (note_mode_line_highlight): If no local_map, check global keymap.
1328 (note_mouse_highlight): Initialize overlay.
1329 (clear_mouse_face): Don't return if tip_frame is
1330 non-nil.
1331 (show_scroll_bars): Remove unused function.
1332 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
1333 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
1334 Clip to row.
1335 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be
1336 nil.
1337 (x_free_frame_resources): Unload relief colors.
1338
9c11f79e
GM
13392001-01-17 Gerd Moellmann <gerd@gnu.org>
1340
3aec8722
GM
1341 * xdisp.c (forward_to_next_line_start): Avoid calling
1342 get_next_display_element when the newline is already found. This
1343 may change the iterator's position, when its current position is
1344 equal to the iterator's stop_charpos.
1345
f3ffc2c3
GM
1346 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
1347 zero, use this method only at the end of a line.
1348
a86110a8
GM
1349 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
1350 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
1351 if SCALABLE_FONTS_P is set.
1352
d26d6fd9
GM
1353 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
1354 so that scalable fonts are included.
1355
9c11f79e
GM
1356 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
1357 In the cache, use a key containing the information if scalable
1358 fonts are included.
1359 (x_load_font): Adapt to change of keys in the font cache.
1360
13612001-01-17 Kim F. Storm <storm@filanet.dk>
1362
d26d6fd9
GM
1363 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
1364 XListFonts to take advantage of font caching.
1365
9c11f79e
GM
1366 * xterm.c (x_list_fonts): Ensure caching font information when
1367 called for a null frame, which is the case frequently when Emacs
1368 starts.
1369
51446987
GM
13702001-01-17 Gerd Moellmann <gerd@gnu.org>
1371
f864120f
GM
1372 * xfns.c (QCconversion): Replaces QCalgorithm.
1373
1374 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
1375
1376 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
1377 of :algorithm.
1378
e37d1417
GM
1379 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
1380 not everything could be displayed.
1381
51446987
GM
1382 * line.h, x-list-font.c: Files removed because unused.
1383
9ad4f3e5
AI
13842001-01-17 Andrew Innes <andrewi@gnu.org>
1385
1386 * dired.c (directory_files_internal): Convert result from readdir
1387 to a unibyte string initially, to avoid possible misinterpretation
1388 of some bytes as the internal form of Emacs characters.
1389
2eda09b5
KH
13902001-01-17 Kenichi Handa <handa@etl.go.jp>
1391
1392 * fns.c (concat): Be sure to avoid putting the same `composition'
1393 property on the adjacent regions.
1394
826f3788
GM
13952001-01-16 Gerd Moellmann <gerd@gnu.org>
1396
f251459d
GM
1397 * window.c (Fset_window_hscroll): Don't set window's min_hscroll
1398 here.
1399 (Fscroll_right, Fscroll_left): Set it here instead, if called
1400 interactively.
1401
d57b83b3
GM
1402 * buffer.c (Fset_buffer_modified_p): Set buffer's
1403 prevent_redisplay_optimizations_p flag.
1404
826f3788
GM
1405 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
1406 * sysdep.c, vmsproc.c, xselect.c: Call
1407 redisplay_preserve_echo_area with additional arg.
1408
1409 * dispextern.h, lisp.h (redisplay_preserve_echo_area): Change
1410 prototype.
1411
1412 * xdisp.c (redisplay_preserve_echo_area): Add parameter
1413 FROM_WHERE, for debugging.
1414
261d788b
KH
14152001-01-16 Kenichi Handa <handa@etl.go.jp>
1416
1417 * ccl.c (Fregister_ccl_program): Handle the return value of
1418 resolve_symbol_ccl_program correctly.
bda6b481
KH
1419 (CCL_Extension): Fix typo (originally CCL_Extention). Caller
1420 changed.
261d788b 1421
bccee4f2
GM
14222001-01-15 Gerd Moellmann <gerd@gnu.org>
1423
e4ded23c
GM
1424 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
1425 has gone in the meantime, use face MOUSE_FACE_ID.
1426
ae24cb3b
GM
1427 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: If
1428 x_display_info_for_display returns null, don't try to close
1429 the display; we didn't open it.
1430
bccee4f2
GM
1431 * dispnew.c (save_or_restore_current_matrices): Function removed.
1432 (save_current_matrix, restore_current_matrix): New functions.
1433 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
1434 restore the frame's current matrix. Due to the glyph pointer
1435 setup done in adjust_glyph_matrix, there is no easy way to make
1436 saving the current matrix in the desired matrix generally correct,
1437 so don't try it.
1438
ebeccffa
KH
14392001-01-15 Kenichi Handa <handa@etl.go.jp>
1440
1441 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
1442 truncation glyphs.
1443 (display_line): Optimize for wide characters.
e4ded23c 1444 (display_string): Don't try to display a multi-column character
ebeccffa
KH
1445 partially. On ttys, produce more than one truncation glyph for
1446 multi-column characters that don't fit on the line.
1447
64388126
KH
14482001-01-13 Kenichi Handa <handa@etl.go.jp>
1449
1450 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]: Define
1451 it instead of WORDS_BIGENDIAN. Caller changed.
1452
8edb0a6f
JR
14532001-01-13 Jason Rumney <jasonr@gnu.org>
1454
1455 * w32fns.c (Fimage_size, image_ascent, lookup_image)
1456 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
1457 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
1458 (tiff_format, gif_format, gs_format): Adapt to change of image
1459 margins.
1460
1461 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
1462 (x_draw_image_relief, x_draw_image_foreground_1)
1463 (x_draw_image_glyph_string): Adapt to change of image margins.
1464
1465 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
1466 variables.
1467
1468 * w32bdf.c (search_file_line, get_cached_font_char)
1469 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
1470
1471 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
1472
1473 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
1474 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
1475 (Fw32_send_sys_command): Remove unused variables.
1476 (w32_msg_pump): Add parentheses.
1477
1478 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
1479 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
1480 Add parentheses.
1481
4956d1ef
GM
14822001-01-12 Gerd Moellmann <gerd@gnu.org>
1483
b30623be
GM
1484 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
1485 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
1486 being a pair of margins.
1487 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
1488 to DEFVAR_LISP. Extend doc.
1489
1490 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
1491 margins.
1492 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
1493 pair of integers `(X . Y)', use X for the horizontal and Y for the
1494 vertical margin.
1495 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
1496 (parse_image_spec): Check it.
1497 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
1498 (tiff_format, gif_format, gs_format): Use
1499 IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
1500
1501 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
1502 (x_draw_image_relief, x_draw_image_foreground_1)
1503 (x_draw_image_glyph_string): Adapt to the change of image margins.
1504
1505 * dispextern.h (struct image): Replace member `margin' with
1506 `hmargin' and `vmargin'.
1507
4554cc79
GM
1508 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
1509 and GLYPHS.
1510
1511 * dispnew.c (update_text_area): Put code which decrements the
1512 stop position when the row's face extends to the end of the
3bffc665 1513 line in #if 0.
4554cc79 1514
3cccce8d
GM
1515 * xfns.c (x_set_mouse_color): Fix color allocation.
1516
4956d1ef
GM
1517 * keyboard.c: Call get_local_map with new argument list.
1518
1519 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
1520
1521 * intervals.h (enum map_property): Removed.
1522 (get_local_map): Change prototype.
1523
1524 * keymap.c: Call get_local_map with new argument list.
1525 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
1526
2c2ff7f2
GM
15272001-01-11 Gerd Moellmann <gerd@gnu.org>
1528
a23887b9
GM
1529 * xdisp.c (build_desired_tool_bar_string): Correct the computation
1530 of the size needed for the tool bar string. For the last image,
1531 use a `display' property that reaches to the end of the string.
1532
a7ee2d2e
GM
1533 * xselect.c (selection_request_dpyinfo): New variable.
1534 (x_handle_selection_request): Set it.
1535 (x_selection_request_lisp_error): Don't call
1536 x_decline_selection_request if selection request's display has
1537 been closed.
1538
2c2ff7f2
GM
1539 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]: Do
1540 the unregister_colors before calling XFreeColors.
1541
457b792c
GM
15422001-01-10 Dave Love <fx@gnu.org>
1543
1544 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
1545 ${SOME_MACHINE_LISP}, not ${lisp}.
1546
c1efd260
GM
15472001-01-10 Gerd Moellmann <gerd@gnu.org>
1548
a98b5ed9 1549 * xdisp.c (display_line): On ttys, produce more than one
4554cc79 1550 truncation glyph for multi-column characters that don't fit on the
a98b5ed9
GM
1551 line.
1552
ac95a621
GM
1553 * xselect.c (x_reply_selection_request): Add a comment.
1554
c1efd260
GM
1555 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
1556 XkbGetNames instead of XkbGetKeyboard.
1557
1bfb1345
DL
15582001-01-10 Dave Love <fx@gnu.org>
1559
1560 * sysdep.c (random): Revert the declaration.
1561
38119822
GM
15622001-01-09 Gerd Moellmann <gerd@gnu.org>
1563
35f464a7
GM
1564 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]: Call
1565 function string_bytes.
1566 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
1567
1568 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
1569 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
1570 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
1571 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
1572 the current sblock.
1573 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
1574 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
1575 after sweeping strings, and at the end.
1576 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
1577
38119822
GM
1578 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
1579 ensure that pop_message is called.
1580
1581 * keyboard.c (Fexecute_extended_command): Use a
1582 record_unwind_protect to ensure that pop_message is called.
1583
1584 * lisp.h (push_message_unwind): Add prototype.
1585
1586 * xdisp.c (push_message_unwind): New function.
1587
1588 * fileio.c (do_auto_save_unwind): Do the pop_message here
1589 instead of in Fdo_auto_save.
1590 (Fdo_auto_save): Don't call pop_message.
1591
f47a9ec4
KR
15922001-01-08 Ken Raeburn <raeburn@gnu.org>
1593
1594 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
1595 in inner block.
1596
a758f97d
GM
15972001-01-08 Gerd Moellmann <gerd@gnu.org>
1598
6d0afc03
GM
1599 * window.c (window_scroll_pixel_based): Adjust glyph matrices
1600 when increasing window's vscroll.
1601
a758f97d
GM
1602 * macros.c (Qkbd_macro_termination_hook): New variable.
1603 (syms_of_macros): Initialize and staticpro it.
1604 (pop_kbd_macro): Run kbd-macro-termination-hook.
1605
1606 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
1607
1bfb1345 16082001-01-07 Dave Love <fx@gnu.org>
64d4ec0f
DL
1609
1610 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
1611 arglist, for documentation's sake.
1612
0dac6924
AI
16132001-01-06 Andrew Innes <andrewi@gnu.org>
1614
1615 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
1616 of *.pdb.
1617
8182406a
AI
16182001-01-05 Andrew Innes <andrewi@gnu.org>
1619
1620 * term.c (update_end): Don't check updating_frame; for some reason
1621 this can be 0 sometimes, such as after dismissing a popup menu,
1622 and isn't necessary given the explicit frame argument.
1623
3828218c
GM
16242001-01-05 Gerd Moellmann <gerd@gnu.org>
1625
1626 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
1627 on some systems, and an unsigned long on others, like FreeBSD 4.1.
1628
2f5ded21
GM
16292001-01-04 Gerd Moellmann <gerd@gnu.org>
1630
1631 * xterm.c (clear_mouse_face): Don't return if tip_frame is
1632 non-nil.
1633
1634 * xfns.c (x_create_tip_frame): Preserve the value of
1635 face_change_count around the creation of the tip frame.
1636
1637 * xfns.c (last_show_tip_args): New variable.
1638 (compute_tip_xy): New function.
1639 (Fx_show_tip): Reuse an existing tip frame, if possible.
1640 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
1641
dfad65fa
DL
16422001-01-04 Dave Love <fx@gnu.org>
1643
64d4ec0f
DL
1644 * editfns.c (Fformat): Doc fix.
1645
dfad65fa
DL
1646 * systime.h (set_file_times): Prototype.
1647
1648 * widget.h (EmacsFrameSetCharSize_): Prototype.
1649
1650 * sysdep.c (random, srandom): Declare explicitly.
1651
1652 * dispextern.h (move_it_vertically_backward): Declare.
1653
85fe3b5e
GM
16542001-01-04 Gerd Moellmann <gerd@gnu.org>
1655
0f2ac578
GM
1656 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
1657 like in Fx_create_frame.
1658
482cca61
GM
1659 * xfaces.c (set_font_frame_param): Don't do anything for
1660 non-graphical frames.
1661
85fe3b5e
GM
1662 * window.c (Fdelete_other_windows): Set window's window_end_valid
1663 to nil when changing the window's start. Don't change the
1664 window's start when its top position hasn't changed. If we do,
1665 this will set the window's optional_new_start, which act's like a
1666 force_start during redisplay with C-x 1 M-> under particular
1667 circumstances (see report from Per Starback to emacs-pretest-bug
1668 from 2000-12-13.).
1669
3e99d3b4
GM
16702001-01-03 Gerd Moellmann <gerd@gnu.org>
1671
a77dc1ec
GM
1672 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
1673 short cut at the start of the function. Add an assertion.
1674 (reseat_at_next_visible_line_start): Add an assertion.
1675
2f3cad6c
GM
1676 * window.c (Frecenter): When changing the window start, set the
1677 window's window_end_valid to nil.
1678 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
1679
1680 * dispextern.h (move_it_past_eol): Add prototype.
1681
1682 * xdisp.c (move_it_past_eol): New function.
1683
3e99d3b4
GM
1684 * window.c (Fwindow_end): Doc fix.
1685
16862001-01-03 Dave Love <fx@gnu.org>
1687
1688 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3
1689 kluge.
1690
bafb434c
GM
16912001-01-03 Gerd Moellmann <gerd@gnu.org>
1692
1693 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
1694 the enabled_p flag of the glyph row at window_end_vpos to 0.
1695 (handle_single_display_prop): Fix last change.
1696
5297fb00
RS
16972001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
1698
1699 * window.c (Frecenter): Doc fix.
1700
13d6a61c
AI
17012001-01-02 Andrew Innes <andrewi@gnu.org>
1702
1703 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
1704
1705 * frame.h (output_method): Add output_w32_console method.
1706 (FRAME_W32_CONSOLE_P): New macro.
1707
1708 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
1709 use output_w32_console method.
1710 (Qw32_console): New Lisp_Object.
1711 (Fframep): Return it.
1712 (syms_of_frame): Init it.
1713 (Fframe_parameters): Report w32console as font for w32_console
1714 frames.
1715
1716 * xfaces.c (realize_default_face): Set face foreground and
1717 background to unspecified for w32_console frames.
1718 (realize_face): Realize face cache for w32_console frames.
1719 (realize_tty_face): Accept w32_console frames.
1720
1721 * xdisp.c (handle_single_display_prop): Return if frame is
1722 w32_console.
1723 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
1724 necessary, even if running interactively.
1725
1726 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
1727 w32_console frames.
1728
1729 * w32term.c (x_update_begin):
1730 (x_update_end):
1731 (x_clear_frame):
1732 (x_ins_del_lines):
1733 (x_change_line_highlight):
1734 (x_delete_glyphs):
1735 (w32_ring_bell):
1736 (x_update_begin):
1737 (x_update_end):
1738 (w32_reassert_line_highlight):
1739 (w32_frame_rehighlight):
1740 (w32_frame_raise_lower): Do nothing if not w32 frame.
1741
1742 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
1743
1744 * w32fns.c (Fx_display_color_cells): Determine correct value, when
1745 system doesn't tell us directly.
1746 (Fx_display_visual_class): Implement properly.
1747
d6bb0c0d
GM
17482001-01-02 Gerd Moellmann <gerd@gnu.org>
1749
1750 * window.c (Frecenter): Handle centering in graphical frames
1751 specially. Centering on the basis of line counts doesn't work
1752 reliably with variable-height lines.
1753
315f5865
EZ
17542001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
1755
1756 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
1757 and al[].
1758
1759 * composite.c (run_composition_function): Remove unused variable
1760 `val'.
1761 (update_compositions): Remove unused variable `hook'.
1762
1763 * intervals.c (get_local_map): Remove unused variable `tem'.
1764
1765 * doprnt.c (doprnt1): Remove unused variable `size'.
1766
1767 * fns.c (Flength): Remove unused variable `tail'.
1768 (Fdelete): Remove unused variable `size'.
1769
1770 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
1771 and `gcpro2'.
1772
1773 * doc.c (Fsnarf_documentation): Remove unused variables `fun' and
1774 `tem'.
1775
1776 * data.c (find_symbol_value): Remove extra 3rd argument in the
1777 call to swap_in_symval_forwarding.
1778
1779 * undo.c (Fprimitive_undo): Remove unused block-scope variable
1780 `end'.
1781
1782 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
1783 (trivial_regexp_p): Remove unused variable `c'.
1784 (boyer_moore): Remove unused variable `k'.
1785
1786 * indent.c (current_column): Remove unused variable `stopchar'.
1787 (Fcompute_motion): Remove unused variable `contin'.
1788
1789 * casefiddle.c (casify_object): Remove unused variable `tolen'.
1790
1791 * dired.c (directory_files_internal): Fix a typo in a comment.
1792 Remove an unused variable `handler'.
1793 (file_name_completion): Remove unused function-scope variable
1794 `dp'.
1795 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
1796 on BSD4_2.
1797
1798 * fileio.c (e_write): Remove unused variable
1799 `require_encoding_p'.
1800
1801 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
1802 and `buf'.
1803 (Fmarker_insertion_type): Remove unused variable `buf'.
1804
1805 * insdel.c (make_gap): Remove unused variable `result'.
1806
1807 * keyboard.c (record_char): Remove unused function-scope variable
1808 `help'.
1809 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
1810 (menu_bar_items): Remove unused function-scope variable `tem'.
1811
1812 * fontset.c (fontset_ref): Remove unused variable `i'.
1813 (fontset_set): Remove unused variables `j' and `tmp'.
1814 (make_fontset): Remove unused variables `i', `j', `elt' and
1815 `base_elt'.
1816 (make_fontset_for_ascii_face): Remove unused variable `name'.
1817 (fs_load_font): Remove unused variable `font_idx'.
1818 (fs_query_fontset): Remove unused function-local variable
1819 `fontset'.
1820 (list_fontsets): Remove unused variable `tail'.
1821 (Fnew_fontset): Remove unused variables `family' and `registry'.
1822 (accumulate_font_info): Remove unused variable `tmp'.
1823 (Ffontset_font): Remove unused variable `id'.
1824 (syms_of_fontset): Remove unused variable `i'.
1825
1826 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
1827 to x_term_init.
1828 (lookup_image): Remove unused variable `file'.
1829 (xbm_load): Remove unused variables `bitmap_data', `height', and
1830 `width'. Remove function-local variable `i', leave the
1831 block-local one.
1832 (gif_load): Remove unused variable `inc'.
1833
1834 * xterm.c (XTread_socket): Remove unused variables `p' and
1835 `pend'.
1836 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
1837 leave only the one in the inner block.
1838
1839 * xfaces.c (face_fontset, realize_default_face): Remove unused
1840 variable `fontset'.
1841 (face_at_buffer_position): Remove unused variable `multibyte_p'.
1842
1843 * term.c (encode_terminal_code): Remove unused variable `c'.
1844
1845 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
1846 char *' instead of `char *'.
1847
1848 * category.c (Fcategory_docstring): Remove unused variable `doc'.
1849 (Fget_unused_category): Remove unused variable
1850 `docstring_vector'.
1851 (Fchar_category_set): Remove unused variables `val', `charset',
1852 `c1' and `c2'.
1853
1854 * coding.c (detect_coding_iso2022, setup_coding_system): Remove
1855 unused variable `i'.
1856 (detect_coding_mask): Remove unused variable `idx'.
1857 (detect_coding): Remove unused variable `i'.
1858 (ccl_coding_driver): Remove unused variable `result'.
1859 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
1860 (decode_coding_string): Remove unused variables `to' and
1861 `gcpro1'.
1862 (encode_coding_string): Remove unused variables `gcpro1' and
1863 `saved_coding_symbol'.
1864 (Ffind_coding_systems_region_internal): Remove function-local
1865 variable args[], leave only the block-local one.
1866 (code_convert_region1): Remove unused variable `len'.
1867
1868 * charset.c (char_printable_p): Remove unused variable `chars'.
1869 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
1870 (str_to_multibyte): Remove unused variable `c'.
1871
1872 * window.c (size_window): Remove block-local variable `min_size'.
1873
1874 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
1875 `header_line_height'.
1876 (append_space, extend_face_to_end_of_line): Declare `saved_what'
1877 enum display_element_type.
1878
1a8a9daf
GM
18792001-01-02 Gerd Moellmann <gerd@gnu.org>
1880
6dde6abc
GM
1881 * xterm.c (x_connection_closed): Catch X errors around all
1882 statements that call X. Save away the error message in a local
1883 copy.
1884
1883b2c6
GM
1885 * xterm.c (x_connection_closed): Set handling_signal to 0 at
1886 the start.
1887
a13be207
GM
1888 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
1889 in or at the start of invisible text.
1890
1a8a9daf
GM
1891 * dispnew.c (update_window): Don't check_current_matrix_flags.
1892
3608c0f9
JR
18932001-01-01 Jason Rumney <jasonr@gnu.org>
1894
1895 * w32fns.c (x_figure_window_size): Do not allow new_height and
1896 new_width of frame to override specified values.
1897
abb1acc4
KH
18982000-12-30 Kenichi Handa <handa@etl.go.jp>
1899
d279f620
KH
1900 * composite.c (find_composition): Fix a code for searching
1901 backward.
abb1acc4 1902
762a68ec
GM
19032000-12-29 Gerd Moellmann <gerd@gnu.org>
1904
9c8b8382
GM
1905 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New
1906 function.
1907 (update_window) [GLYPH_DEBUG]: Call it.
1908 (scrolling_window): Prevent including current rows which are below
1909 what's displayed in the window.
1910
1911 * xdisp.c (try_window_reusing_current_matrix)
1912 <new start <= old start>: Disable rows in the current matrix
1913 which are below the window after scrolling.
1914
762a68ec
GM
1915 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
1916 is zero. It's not worth the complexity.
1917 (invisible_text_between_p): Put in #if 0 because unused.
1918
2d5912c1
GM
19192000-12-28 Gerd Moellmann <gerd@gnu.org>
1920
46f6a258
GM
1921 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
1922 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
1923
89f93679
GM
1924 * keyboard.c (echo_char): If C is an integer, always call
1925 push_key_description. Former code could signal an invalid
1926 character error.
1927
1928 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
1929 If set, print multibyte text.
1930 (Fsingle_key_description): Call push_key_description with
1931 FORCE_MULTIBYTE set.
1932 (describe_buffer_bindings): Likewise.
1933
1934 * lisp.h (push_key_description): Add prototype.
1935
c06017fb
GM
1936 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
1937 around the call to redisplay_internal.
1938
f1d2ce7f
GM
1939 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
1940
2d5912c1
GM
1941 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
1942
9371f831
KH
19432000-12-28 Kenichi Handa <handa@etl.go.jp>
1944
1945 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
1946 (ccl_driver): New local variable `extra_bytes'.
1947
1948 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
1949
1950 * coding.c (setup_coding_system): Initialize
1951 coding->spec.ccl.eight_bit_carryover.
1952 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
1953
0c80628a
KH
19542000-12-28 Kenichi Handa <handa@etl.go.jp>
1955
1956 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
1957 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
1958 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
1959 (decode_composition_emacs_mule): New function.
1960 (decode_coding_emacs_mule): Decode composition sequence by calling
1961 decode_composition_emacs_mule.
1962 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
1963 (encode_coding_emacs_mule): Changed from macro to function. If
2d5912c1 1964 a text contains compositions, encode them correctly.
0c80628a
KH
1965 (setup_coding_system): Set coding->commong_flags for emacs-mule so
1966 that decoding and encoding are required.
1967
3e32cc27
GM
19682000-12-27 Gerd Moellmann <gerd@gnu.org>
1969
5e25feee
GM
1970 * xfaces.c (PT_PER_INCH): New macro.
1971 (xlfd_point_size): Compute real point size from font's pixel size.
1972 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
1973 instead of 72.
1974
892d8fcd
GM
1975 * .gdbinit: Comment out the line pointing to the Lesstif source
1976 directory.
1977
12c8b416
GM
1978 * window.c (Frecenter): Use displayed_window_lines instead
1979 of window_internal_height.
1980
6061fbf0
GM
1981 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
1982 instead of x-toolkit-scroll-bars-p.
1983 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
1984
1985 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
1986 instead of x-toolkit-scroll-bars-p.
1987 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
1988
3e32cc27
GM
1989 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
1990 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
1991 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]: New
1992 variables.
1993 (add_window_display_history, add_frame_display_history)
1994 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
1995 (build_frame_matrix_from_leaf_window): Remove unused code.
1996 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
1997 redisplay history.
1998 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
1999 (update_window) [GLYPH_DEBUG]: Likewise.
2000 (syms_of_display): Defsubr dump-redisplay-history.
2001
31798cfe
GM
20022000-12-23 Gerd Moellmann <gerd@gnu.org>
2003
f717c2ba
GM
2004 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
2005 the end of the prompt. Set echo_after_prompt to the offset
2006 of echoptr in echobuf.
2007
aeb2b8fc
GM
2008 * xdisp.c (init_from_display_pos): Pop until the iterator's
2009 stack is empty; there may be frames for stretch or images
2010 on the stack.
2011
31798cfe
GM
2012 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
2013 (save_or_restore_current_matrix): New function for the same
2014 purpose, but more efficient.
2015 (adjust_frame_glyphs_for_frame_redisplay): Use it.
2016
f8156156
EZ
20172000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
2018
2019 * xdisp.c (syms_of_xdisp): Fix last change.
2020
bdd6d4e8
GM
20212000-12-23 Gerd Moellmann <gerd@gnu.org>
2022
2023 * xdisp.c (syms_of_xdisp): Doc fix.
2024
2025 * xdisp.c (redisplay_window): Remove label restore_buffers;
2026 use finish_scroll_bars instead to make sure that scroll bars
2027 are redeemed. If we don't do this, flickering can result from
2028 scroll bars being destroyed and recreated.
2029
9436cdf9
JR
20302000-12-22 Jason Rumney <jasonr@gnu.org>
2031
2032 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
2033 in the wrong colors when the foreground is not black.
2034 (expose_window): Don't redraw the window that's currently being
2035 updated.
2036
951f9df5
GM
20372000-12-22 Gerd Moellmann <gerd@gnu.org>
2038
856ff7a7
GM
2039 * window.c (size_window): When setting the window's too_small_ok
2040 flag, compare old size with minimum size depending on WIDTH_P,
2041 don't compare with window_min_width.
2042
951f9df5
GM
2043 * window.c (delete_window): Simplify somewhat.
2044 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
2045 freeing window matrices. The flag windows_or_buffers_changed is
2046 set, so the next redisplay will consider all windows; this should
2047 suffice.
2048
886bc933
KH
20492000-12-22 Kenichi Handa <handa@etl.go.jp>
2050
2051 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
2052
2053 * ccl.h (struct ccl_program): New member cr_consumed.
2054
2055 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
2056 (CCL_READ_CHAR): Handle EOL conversion here.
2057 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
2058
177f4e88
GM
20592000-12-21 Gerd Moellmann <gerd@gnu.org>
2060
6ba384dc
GM
2061 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg
2062 GLYPHS.
2063
2064 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
2065 otherwise tabs of different size compare equal.
2066
2067 * callint.c (Fcall_interactively): Prevent a compiler warning.
2068
2069 * print.c (print_unwind): Return nil.
2070 (PRINTDECLARE): Initialize all local variables.
2071 (print_preprocess): Add a default case.
2072
8e15274f
GM
2073 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
2074
2075 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
2076
177f4e88
GM
2077 * window.c (delete_window, Fsplit_window)
2078 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
2079
2080 * dispextern.h (ensure_frame_matrix): Function declaration removed.
2081
2082 * dispnew.c (ensure_frame_matrix): Removed.
2083 (save_frame_matrix, restore_frame_matrix): New functions.
2084 (adjust_frame_glyphs_for_frame_redisplay): Use them.
2085
2086 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
2087 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
2088
99012074
AI
20892000-12-21 Andrew Innes <andrewi@gnu.org>
2090
2091 * w32term.c (x_update_begin): Regenerate the palette here, rather
2092 than for each window.
2093
2094 * w32xfns.c (select_palette): Avoid calling SelectPalette if
2095 palette is NULL, since this corrupts memory! Also get
2096 display_info reference from frame.
2097
29ef7d2d
JR
20982000-12-21 Jason Rumney <jasonr@gnu.org>
2099
2100 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
2101
2102 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
2103 to avoid returning without releasing it.
3e27fa1f 2104
3f9d67a6
KH
21052000-12-21 Kenichi Handa <handa@etl.go.jp>
2106
587fc3f9
KH
2107 * keymap.c (push_key_description): Don't convert eight-bit-control
2108 and eight-bit-graphic to multibyte character.
2109
3f9d67a6
KH
2110 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
2111 generic character and CODE1 is nil, return the smallest character
2112 in CHARSET.
2113
774ba8c9
DL
21142000-12-20 Dave Love <fx@gnu.org>
2115
2116 * s/osf5-0.h (NSIG): Don't redefine.
2117
88416888
SM
21182000-12-20 Stefan Monnier <monnier@cs.yale.edu>
2119
2120 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
2121 excluding menu-bar and tool-bar.
2122 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
2123 (menu_item_p): Remove.
2124 (where_is_internal_1): Don't ignore menu-items.
2125
a6426c6f
GM
21262000-12-20 Gerd Moellmann <gerd@gnu.org>
2127
03ff8aab
GM
2128 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
2129 into account.
2130
2131 * window.c (make_window): Initialize window's min_hscroll.
2132 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
2133 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
2134 to zero.
2135 (struct saved_window): New member min_hscroll.
2136 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
2137 (Fset_window_configuration): Set window's min_hscroll.
2138 (save_window_save): Save window's min_hscroll.
2139 (compare_window_configurations): Compare min_hscroll values.
2140
2141 * window.h (struct window): New member min_hscroll.
2142
2143 * keyboard.c (echo_prompt): Prevent a compiler warning.
2144
8de4aaf8
GM
2145 * xdisp.c (try_cursor_movement): Fix last change. The real
2146 condition is that PT is at the end of the row, and should
2147 be displayed at the start of the next row.
2148
3f7e3031
GM
2149 * xdisp.c (try_cursor_movement): If we end on a partially
2150 visible line, end we already decided to scroll, return -1.
2151
a6426c6f
GM
2152 * dispextern.h (ensure_frame_matrix): Add prototype.
2153
2154 * window.c (delete_window, Fsplit_window)
2155 (Fset_window_configuration): Call ensure_frame_matrix.
2156
2157 * dispnew.c (fake_current_matrices, ensure_frame_matrix): New
2158 functions.
2159 (adjust_frame_glyphs_for_frame_redisplay): If display has been
2160 completed, call fake_current_matrices instead of marking frame
2161 garbaged.
2162
57fa2774
JR
21632000-12-20 Jason Rumney <jasonr@gnu.org>
2164
2165 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
2166
d925df90
EZ
21672000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
2168
2169 * fns.c (Frequire): Doc fix.
2170
7b93a85b
GM
21712000-12-19 Gerd Moellmann <gerd@gnu.org>
2172
71d4497a
GM
2173 * window.c (window_scroll_pixel_based): Don't use
2174 move_it_vertically.
2175
c74e645b
GM
2176 * dispnew.c (direct_output_for_insert): Fix check for mini-window
2177 currently displaying a message.
2178
7b93a85b
GM
2179 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
2180 xterm.h.
2181 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
2182
90d97e64
AI
21832000-12-18 Andrew Innes <andrewi@gnu.org>
2184
2185 * w32.c (w32_strerror): New function.
2186
2187 * w32.h (w32_strerror): New extern.
2188
2189 * w32fns.c (Fw32_shell_execute): Use it.
2190
91c9e6ce
GM
21912000-12-18 Gerd Moellmann <gerd@gnu.org>
2192
2193 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
2194
6f4745e2
EZ
21952000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
2196
2197 * msdos.c (IT_set_face): Obey inverse_video.
2198
c9e088ce
KH
21992000-12-18 Kenichi Handa <handa@etl.go.jp>
2200
2201 * dired.c (directory_files_internal): Always return decoded filenames.
2202
c3695f5f
GM
22032000-12-18 Gerd Moellmann <gerd@gnu.org>
2204
52d8e4ff
GM
2205 * xterm.c (x_connection_closed): Prevent being called recursively
2206 because of an error condition in XtCloseDisplay.
2207
62be9979
GM
2208 * xdisp.c (init_iterator): If noninteractive, and the frame's
2209 face cache is null, make one.
2210
5f7a1890
GM
2211 * xfns.c (show_busy_cursor): Check for live frames more
2212 thoroughly.
2213
c3695f5f
GM
2214 * process.c (wait_reading_process_input): Check for pending
2215 input when running timers.
2216
78555fbe
EZ
22172000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
2218
2219 * msdos.c (IT_write_glyphs): Compute the glyph face from
2220 str->face_id.
2221
b2b36264
KH
22222000-12-18 Kenichi Handa <handa@etl.go.jp>
2223
2224 * process.c (read_process_output): Don't run a filter if the code
2225 decoder produces nothing but carryover.
2226
9c543fbf
AI
22272000-12-17 Andrew Innes <andrewi@gnu.org>
2228
2229 * w32.c (sys_rename): Only check errno against EEXIST, and not
2230 EACCES, when determining whether rename failed because the target
2231 exists. This was resulting in indefinite looping on Windows 9x if
2232 the source file was locked by another process.
2233
2234 * w32fns.c (Ffile_system_info): New function.
2235 (syms_of_w32fns): Defsubr it.
2236
10c2b5a8
GM
22372000-12-17 Gerd Moellmann <gerd@gnu.org>
2238
b0228ace
GM
2239 * window.c (coordinates_in_window): Fix computation for
2240 position on vertical line between mode lines.
2241
10c2b5a8
GM
2242 * xfns.c (unwind_create_frame): Return t if frame was deleted.
2243 Don't alter tip_frame or tip_window.
2244 (unwind_create_tip_frame): Set tip_frame to nil only if frame
2245 was deleted.
2246
c844a81a
GM
2247 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
2248 Don't alter tip_frame or tip_window.
2249 (unwind_create_tip_frame): Set tip_frame to nil only if frame
2250 was deleted.
2251
6c825f8e
EZ
22522000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
2253
2254 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
2255 be consistent with the doc string. Reported by NAKAJIMA Mikio
2256 <minakaji@osaka.email.ne.jp>.
2257
af4bb4c8
KH
22582000-12-16 Kenichi Handa <handa@etl.go.jp>
2259
2260 * xfaces.c (Vface_ignored_fonts): New variable.
2261 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
2262 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
2263
8062e53a
GM
22642000-12-15 Gerd Moellmann <gerd@gnu.org>
2265
e87b8809
GM
2266 * dispnew.c (update_window): Detect pending input every nth line
2267 updated, i.e. do it depending on real work done, and not on the
2268 vpos of the line.
2269
2270 * xterm.c (expose_window): Don't redraw the window that's
2271 currently being updated.
2272
a6768cc5
GM
2273 * window.c (Fset_window_point): Remove test for
2274 cursor_in_non_selected_windows.
2275
4ea7fdca
GM
2276 * lread.c (read1): Recognize end of file after `\\'.
2277
8062e53a
GM
2278 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
2279 not unwind_create_frame.
2280
bb7959c1
GM
22812000-12-15 Dave Love <fx@gnu.org>
2282
2283 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
2284 bcopy & al.
2285
2286 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
2287
ced04c42
KH
22882000-12-15 Kenichi Handa <handa@etl.go.jp>
2289
c5443913
KH
2290 * coding.c (setup_coding_system): Clear all members of the struct
2291 coding_system at first.
bc137305
KH
2292 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
2293 argument.
2294 (code_convert_region): Don't override coding->src_multibyte and
2295 coding->dst_multibyte.
c5443913 2296
ced04c42
KH
2297 * fns.c (Fmd5): Docstring improved.
2298
c2d7f289
MB
22992000-12-15 Miles Bader <miles@gnu.org>
2300
2301 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
2302 are actually marked as mode-lines; otherwise use
2303 estimate_mode_line_height.
2304
9d7d9263
GM
23052000-12-14 Gerd Moellmann <gerd@gnu.org>
2306
2307 * editfns.c (Fformat): Prevent a buffer overrun when the format
2308 specifies a precision.
2309
7cf0153a
EZ
23102000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
2311
2312 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
2313 argument is outside the range [2..3].
2314
1de0f662
AI
23152000-12-14 Andrew Innes <andrewi@gnu.org>
2316
2317 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
2318 nothing to do. Bind inhibit-quit.
2319 (tip_frame): Make it a Lisp_Object.
2320 (x_create_tip_frame): Set tip_frame after it has been added to
2321 Vframe_list.
2322 (Fx_show_tip): Don't set tip_frame here.
2323 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New
2324 variables.
2325 (unwind_create_frame, unwind_create_tip_frame): New functions.
2326 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
2327 while a frame is only partially constructed.
2328
2329 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
2330 (x_free_frame_resources): New function.
2331 (x_destroy_window): Use it.
2332
02387dcc
GM
23332000-12-14 Gerd Moellmann <gerd@gnu.org>
2334
2335 * xfns.c (Fx_backspace_delete_keys_p): New function.
2336 (syms_of_xfns): Defsubr it.
2337
2338 * config.in (HAVE_XKBGETKEYBOARD): Add.
2339
0544ef49
KH
23402000-12-14 Kenichi Handa <handa@etl.go.jp>
2341
98d62747
KH
2342 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
2343 Always store string in multibyte representation in echobuf.
2344 (echo_char): Always store string in multibyte representation in
2345 echobuf.
2346 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
2347 (read_key_sequence): Adjusted for the change of echo_prompt.
2348
a20193cd
KH
2349 * fns.c (Fmd5): Docstring improved.
2350
191b83b6
KH
2351 * lisp.h (detect_coding_system): Prototype adjusted.
2352
0544ef49
KH
2353 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
2354 (detect_coding_emacs_mule, detect_coding_iso2022,)
2355 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
2356 (detect_coding_utf_16, detect_coding_ccl): Make them static. New
2357 argument MULTIBYTEP. Callers changed.
2358 (detect_coding_mask, detect_coding_system): New argument
2359 MULTIBYTEP. Callers changed.
1da1bb05
KH
2360 (decode_coding_string): Set coding->src_multibyte and
2361 coding->dst_multibyte before calling detect_coding and detect_eol.
2362 Update them after some coding system is detected.
2363
d5b3eb1b
SM
23642000-12-13 Stefan Monnier <monnier@cs.yale.edu>
2365
2366 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
2367
2368 * keyboard.c (menu_bar_items, tool_bar_items):
2369 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
2370
f7f8bb69
GM
23712000-12-13 Gerd Moellmann <gerd@gnu.org>
2372
19f71add
GM
2373 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
2374 New variables.
2375 (unwind_create_frame, unwind_create_tip_frame): New functions.
2376 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
2377 while a frame is only partially constructed.
2378
2379 * xterm.h (x_free_frame_resources): Declare.
2380
2381 * xterm.c (x_free_frame_resources): New function.
2382 (x_destroy_window): Use it.
2383
e10da507
GM
2384 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
2385 don't interrupt the update for pending input initially, i.e.
2386 update at least some lines.
2387
2388 * keyboard.c (do_mouse_tracking): Make externally visible.
2389
d5b3eb1b 2390 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
f7f8bb69
GM
2391
2392 * xfns.c (gray_bitmap_bits): Declare `char *'.
2393
90aa2856
GM
23942000-12-12 Gerd Moellmann <gerd@gnu.org>
2395
2396 * xdisp.c (display_tool_bar_line): Make sure that tool bar
2397 lines start with a relief line.
2398
a308c9cd
DL
23992000-12-12 Dave Love <fx@gnu.org>
2400
2401 * window.c (Fdisplay_buffer): Doc fix.
2402 (Fwindow_list): Remove unused var.
2403
2404 * buffer.h (mmap_set_vars): Declare.
2405
2406 * window.h (Fset_window_point): Declare.
2407
d575011f
EZ
24082000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
2409
bf6282d2 2410 * msdos.c (fast_find_position): Don't overstep the last window row.
d575011f
EZ
2411 (IT_note_mouse_highlight): Initialize portion to -1. Remove
2412 unused variable `area'. When looking for a row under (X,Y), give
2413 up if some of the previous rows is not enabled.
2414
ecf4d726
GM
24152000-12-12 Gerd Moellmann <gerd@gnu.org>
2416
2ebf6139
GM
2417 * window.c (Fset_window_point): If displaying cursors in windows
2418 other than the selected window, make sure redisplay updates
2419 other windows to show the new value of point in the window.
2420
2421 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
2422
bfdb75ee
GM
2423 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
2424 the buffer is the sole visible buffer when in the mini-buffer.
2425
4fdbd809
GM
2426 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
2427 Bind `inhibit-read-only' to t.
2428 (unwind_with_echo_area_buffer): Use AREF.
2429
c0006262
GM
2430 * xfns.c (Fx_hide_tip): Simplified.
2431
e9a59cad
GM
2432 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use
2433 GC_MAKE_GCPROS_NOOPS instead of `1'.
2434
ecf4d726
GM
2435 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
2436
e5959a9a
GM
24372000-12-11 Gerd Moellmann <gerd@gnu.org>
2438
a3642e49
GM
2439 * xfns.c (Fx_hide_tip): Fix last change.
2440
44b5a125
GM
2441 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
2442 nothing to do. Bind inhibit-quit.
2443 (tip_frame): Make it a Lisp_Object.
2444 (x_create_tip_frame): Set tip_frame after it has been added to
2445 Vframe_list.
2446 (Fx_show_tip): Don't set tip_frame here.
2447
2448 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
2449
2450 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
2451 Lisp_Object.
2452
2453 * dispextern.h: Change external declaration of tip_frame.
2454
d990421f
GM
2455 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
2456 return an empty string.
2457
4db87380
GM
2458 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
2459 of the window's update_mode_line flag, since the former is set by
2460 force-mode-line-update, not the latter. This makes
2461 column-number-mode slightly faster.
2462
e5959a9a
GM
2463 * xdisp.c (try_window_id) <all changes above window start>:
2464 Set the cursor.
2465
169fe44e
GM
24662000-12-11 Paul Eggert <eggert@twinsun.com>
2467
2468 * config.in (HAVE_FTELLO): Remove.
2469 (HAVE_FSEEKO): Add.
2470 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
2471 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
2472 HAVE_FTELLO.
2473 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
2474 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
2475
59ec59ae
MB
24762000-12-11 Miles Bader <miles@gnu.org>
2477
2478 * window.c (displayed_window_lines): Don't round up when
2479 converting empty space at bottom to lines.
ff904dd6
MB
2480 Handle non-newline-terminated final lines properly.
2481 (Fwindow_text_height): New function (used to be in lisp).
2482 (syms_of_window): Initialize it.
59ec59ae 2483
42ebfa31
SM
24842000-12-09 Stefan Monnier <monnier@cs.yale.edu>
2485
2486 * syntax.c (scan_lists): Check that the right quote char has the
2487 right Sstring syntax when jumping over strings.
2488 (init_syntax_once): Use Smax rather than 13.
2489
5cdb3cf3
MB
24902000-12-09 Miles Bader <miles@gnu.org>
2491
2492 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
2493 with PARTIALLY, inverting the sense.
2494 (window_scroll_pixel_based): Scroll partially visible lines into
2495 place if we hit the beginning or end of the buffer.
a12167c5
MB
2496 (displayed_window_lines): Don't include partially visible lines.
2497 (Fmove_to_window_line): Skip past any partially visible first line.
5cdb3cf3 2498
842b2a94
GM
24992000-12-08 Gerd Moellmann <gerd@gnu.org>
2500
2501 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
2502
2503 * tparam.c (tparam1): Change the way buffers are reallocated to be
2504 portable and less obfuscated.
2505
2506 * termcap.c (tgetent): Change the way buffers are reallocated to
2507 be portable and less obfuscated.
2508
2509 * macros.c (store_kbd_macro_char): Change the way buffers are
2510 reallocated to be portable and less obfuscated.
2511
2512 * lread.c (read1): Change the way buffers are reallocated to be
2513 portable and less obfuscated.
2514
2515 * doc.c (Fsubstitute_command_keys): Change the way buffers
2516 are reallocated so that it is portable.
2517
137cad7c
EZ
25182000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
2519
2520 * dosfns.c (Ffile_system_info): New function.
2521 (syms_of_dosfns): Defsubr it.
2522
5c7f629c
SM
25232000-12-07 Stefan Monnier <monnier@cs.yale.edu>
2524
2525 * alloc.c (gc_sweep): Add comment.
2526
959e647d
GM
25272000-12-07 Gerd Moellmann <gerd@gnu.org>
2528
28fcb7dc
GM
2529 * sound.c (vox_configure): Change order of ioctls. Don't
2530 set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
2531 Ignore errors when changing volume.
2532 (vox_close): Don't reset the device.
2533
926b7e5e
GM
2534 * process.c (read_process_output): Make sure the process marker's
2535 position is valid when the process buffer is changed in
2536 after-change functions. W3 does that.
2537
959e647d
GM
2538 * xfns.c (x_free_gcs): New function.
2539
2540 * xterm.h (x_free_gcs): Add prototype.
2541
2542 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
2543 freeing GCs here.
2544
2545 * xterm.c (x_destroy_window): Call x_free_gcs so that
2546 resources of non-toolkit X windows will be freed.
2547
478ea067
AI
25482000-12-07 Andrew Innes <andrewi@gnu.org>
2549
2550 * w32fns.c (xlfd_charset_of_font): Fix last change.
2551
fbee3231
DL
25522000-12-06 Dave Love <fx@gnu.org>
2553
67292061
DL
2554 * md5.h (__P): Don't define -- it comes from config.h.
2555
fbee3231
DL
2556 * strftime.c: Change some #if foo to #ifdef foo.
2557
4ee87dbb
AI
25582000-12-06 Andrew Innes <andrewi@gnu.org>
2559
2560 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
2561
2562 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname
2563 argument.
2564 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
2565 (w32_list_fonts): Don't choke if pattern doesn't specify a
2566 codepage.
2567
9765b4a4
GM
25682000-12-06 Gerd Moellmann <gerd@gnu.org>
2569
d285b373
GM
2570 * alloc.c (gc_sweep): Prevent symbols read during loadup
2571 from being freed.
2572
384333ee
GM
2573 * xdisp.c (underlying_face_id): New function.
2574 (handle_face_prop, face_before_or_after_it_pos): Use it
2575 to determine the face ``under'' a string. Let strings inherit
2576 the face of the buffer under them.
2577
2578 * xfaces.c (face_at_string_position): Update function comment.
2579
d4b72d58
GM
2580 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
2581 matrix if the window's left position has changed; we need to
2582 redraw it in this case.
2583
2584 * dispextern.h (struct glyph_matrix): Add member window_left_x.
2585
e1d05387
GM
2586 * window.c (coordinates_in_window): Check mouse on mode-line or
2587 header-line first.
2588
eb1b0c74
GM
2589 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
2590 advertized by the function documentation.
2591
d94d636f
GM
2592 * window.c (syms_of_window): Doc fix.
2593
3887b449
GM
2594 * sound.c (vox_configure): Set volume for left and right channel.
2595 (sound_cleanup): Return nil.
2596
efc8f57a
GM
2597 * xdisp.c (move_it_by_lines): Fix paren typo.
2598
9765b4a4
GM
2599 * xterm.c (x_load_font): Don't use the font's max_bounds for
2600 computing the height of the font. If max_bounds' ascent or
2601 descent are greater than the font's ascent or descent, this means
2602 glyphs overlap, which should be handled now by redisplay.
2603
6529ed87
GM
2604 * window.c (Veven_window_heights): New variable.
2605 (syms_of_window): DEFVAR_LISP it.
2606 (Fdisplay_buffer): Check Veven_window_heights before evening the
2607 window heights.
2608
0eb2ecde
MB
26092000-12-06 Miles Bader <miles@gnu.org>
2610
2611 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
2612 update `default-frame-alist' instead of setting no frame parameters.
2613
03d7a167
KH
26142000-12-06 Kenichi Handa <handa@etl.go.jp>
2615
2616 * composite.c (update_compositions): Fix typo (use the correct
2617 variable).
2618
5f8803c2
JR
26192000-12-05 Jason Rumney <jasonr@gnu.org>
2620
2621 * md5.h: Remove underscores from function declarations.
2622 (__attribute__, __alignof__) [!__GNUC__]: Define.
2623
2624 * md5.c: Delay include of md5.h until after namespace cleaning.
2625
c28a075b
JR
2626 * makefile.w32-in (fns.o): Depend on md5.h
2627 (md5.o): New target.
2628 (sunfns.o): Remove.
2629
2630 * makefile.nt: Likewise.
2631
ff3c7056
JR
26322000-12-05 Jason Rumney <jasonr@altavista.net>
2633
2634 * w32term.c (expose_area): Complete last change.
2635
0c21eeeb
KR
26362000-12-05 Ken Raeburn <raeburn@gnu.org>
2637
2638 * minibuf.c: Include intervals.h.
2639
f201d732
JR
26402000-12-05 Jason Rumney <jasonr@gnu.org>
2641
2642 * w32term.c (x_produce_glyphs): If a font for a component of
2643 a composition is not found, use 1 pixel dot ascent and 0 dot
2644 descent value to avoid displaying terribly tall empty boxes.
2645 (expose_area): Pass x-coordinate relative to the exposed
2646 area to x_draw_glyphs instead of a window-relative coordinate.
2647
21999ab9
GM
26482000-12-05 Gerd Moellmann <gerd@gnu.org>
2649
4d2036e4
GM
2650 * xdisp.c (next_element_from_ellipsis): Save face before selective
2651 display in saved_face_id, and set face_before_selective_p.
2652 (reseat_1): Reset face_before_selective_p.
2653 (append_space, extend_face_to_end_of_line): If iterator's
2654 face_before_selective_p is set, use the face from saved_face_id.
2655 (extend_face_to_end_of_line): For tty frames, make sure to
2656 use the right face id when producing spaces at the end of
2657 the line.
2658
2659 * dispextern.h (struct it): Add face_before_selective_p.
2660
52be17cc
GM
2661 * keyboard.c (record_char): Don't record identical help-echo
2662 events in recent_keys.
2663
8a4f36cc
GM
2664 * xterm.c [USE_X_TOOLKIT]: Close the display.
2665 (xim_close_dpy): Handle case that the display has been closed.
2666
57d6e381
GM
2667 * xterm.c (x_destroy_window): Reset the frame's X window after
2668 destroying it.
2669
21999ab9
GM
2670 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
2671 variable window_width.
2672 (line_draw_cost): Fix code skipping over spaces at the end of the
2673 line when must_write_spaces is not set.
2674 (scrolling_window): Fix code inserting runs in list of all runs.
2675
91372bb7
KH
26762000-12-05 Kenichi Handa <handa@etl.go.jp>
2677
2678 * coding.c (setup_coding_system): Be sure to initialize
2679 coding->category_idx.
2680
6c083b4c
GM
26812000-12-04 Gerd Moellmann <gerd@gnu.org>
2682
0c68ce6f
GM
2683 * xterm.c (PER_CHAR_METRIC): Removed because not used.
2684
6452929e
GM
2685 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
2686 area to x_draw_glyphs instead of a window-relative coordinate.
2687
d7f31e22
GM
2688 * fileio.c (auto_save_error): Add parameter ERROR. Show the
2689 error in the message.
2690
ae18aa3b
GM
2691 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
2692 timer after having read a key. It's not good for code reading
2693 several keys in a loop, like an input method.
2694
caa15ef7
GM
2695 * fileio.c (Finsert_file_contents): When VISIT is t, don't
2696 record undo information for format-decode.
2697
2698 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
2699 current buffer is read-only, not if it isn't.
2700
6c083b4c
GM
2701 * keyboard.c (record_char): Record `help-echo' input events
2702 in recent_keys only if they display some help. Don't record
2703 `help-echo' events as macro char.
2704
caa15ef7
GM
27052000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2706
2707 * editfns.c (save_excursion_restore): Don't move point
2708 in another window if it is showing the wrong buffer.
2709 Avoid the call to Fwindow_live_p, for speed.
2710
5a13529b
KH
27112000-12-04 Kenichi Handa <handa@etl.go.jp>
2712
e225faa7
KH
2713 * xfaces.c (struct font_name): New member registry_priority.
2714 (split_font_name): Initialize the above member to zero.
2715 (concat_font_list): New function.
2716 (font_list): Include fonts of all alternative registries.
2717 (FONT_POINT_SIZE_QUANTUM): New macro.
2718 (better_font_p): Ignore point size difference less than
2719 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
2720
e89648b4
KH
2721 * xterm.c (x_produce_glyphs): If a font for a component of
2722 a composition is not found, use 1 pixel dot ascent and 0 dot
2723 descent value to avoid displaying terribly tall empty boxes.
2724
5a13529b
KH
2725 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
2726
d7935eb6
KR
27272000-12-03 Ken Raeburn <raeburn@gnu.org>
2728
2729 * coding.h (code_convert_string1): Declare.
2730
2731 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
2732
2733 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name):
2734 Declare.
2735
0dd5e255
JR
27362000-12-02 Jason Rumney <jasonr@gnu.org>
2737
2738 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
2739 correctly for single byte character case.
2740 (w32_per_char_metric): Do not try to make any assumptions about
2741 the metrics of BDF fonts.
250cfece
JR
2742 (x_estimate_mode_line_height): If `mode-line' face
2743 hasn't a font, use that of the frame, as drawing glyphs
2744 does.
2745 (note_mouse_highlight): Change the cursor shape on the vertical
2746 border between windows [not enabled].
2747
2748 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
2749
2750 * w32fns.c (Fx_create_frame): Reintroduce the call to
2751 face-set-after-frame-defaults.
2752 (Vx_window_horizontal_drag_shape): New variable.
2753 (syms_of_xfns): DEFVAR_LISP it.
2754 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
2755 enabled].
0dd5e255 2756
b5d8d2ca
GM
27572000-12-02 Simon Josefsson <simon@josefsson.org>
2758
2759 * fns.c (Fmd5): Use a different logic to decide the coding system
2760 to use.
2761
2762 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
2763
fbb87147
EZ
27642000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
2765
2766 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is
2767 NULL.
2768
447e9da0
GM
27692000-12-01 Gerd Moellmann <gerd@gnu.org>
2770
7708ced0
GM
2771 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
2772 height for YNegative.
2773 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
2774 height; also see comment there.
2775
447e9da0
GM
2776 * window.c (coordinates_in_window): Handle computations for
2777 positions on the vertical bar and fringes differently for
2778 window-system frames. Consider some pixels near the vertical bar
2779 as on the bar if the frame doesn't have vertical scroll bars.
2780 Associate positions between mode or header lines with the
2781 right window, the left one.
2782
86d1db20
JR
27832000-12-01 Jason Rumney <jasonr@gnu.org>
2784
2785 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
2786
2787 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
2788 invalid frame.
2789
a1d58e5b
GM
27902000-12-01 Gerd Moellmann <gerd@gnu.org>
2791
2792 * window.c (struct saved_window): Add members orig_top and
2793 orig_height.
2794 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
2795 (save_window_save, Fset_window_configuration): Save/restore
2796 window's orig_top and orig_height.
2797
89c609af
JR
27982000-12-01 Jason Rumney <jasonr@gnu.org>
2799
4d177746 2800 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
86d1db20 2801
89c609af
JR
2802 * w32fns.c (x_set_cursor_color): Fix last change.
2803
eccc05db
GM
28042000-11-30 Gerd Moellmann <gerd@gnu.org>
2805
31b6671b
GM
2806 * xdisp.c (echo_area_display): If cursor is in the echo area, make
2807 sure that the next redisplay displays the minibuffer, so that
2808 the cursor will be replaced with what the minibuffer wants.
2809
eccc05db
GM
2810 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
2811 #ifndef instead of using #if.
2812 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
2813 USE_TOOLKIT_SCROLL_BARS is defined.
2814
162de750
JR
28152000-11-30 Jason Rumney <jasonr@gnu.org>
2816
2817 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
2818 x_display_cursor.
2819
693c4692
GM
28202000-11-30 Gerd Moellmann <gerd@gnu.org>
2821
2822 * fns.c (Fmd5): Doc fix.
2823
b5d8d2ca 28242000-11-30 Simon Josefsson <simon@josefsson.org>
edfb795e
GM
2825
2826 * fns.c (Fmd5): New function.
2827 (syms_of_fns): Defsubr md5.
2828
2829 * Makefile.in (obj): Add md5.o
2830
b02cd40b
GM
28312000-11-30 Gerd Moellmann <gerd@gnu.org>
2832
edfb795e
GM
2833 * md5.h, md5.c: New files, taken from glibc.
2834
df3aedcf
GM
2835 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
2836
b02cd40b
GM
2837 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
2838 hasn't a font, use that of the frame, as drawing glyphs
2839 does.
2840
8b5176cd
SM
28412000-11-29 Stefan Monnier <monnier@cs.yale.edu>
2842
2843 * eval.c (Frun_hooks): Allow 0 arguments.
2844
346598f1
GM
28452000-11-29 Gerd Moellmann <gerd@gnu.org>
2846
f9396e03
GM
2847 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
2848 is over the menu bar widget, say it's not on the frame.
2849
4a967a9b
GM
2850 * xfns.c (Fx_create_frame): Reintroduce the call to
2851 face-set-after-frame-defaults.
2852
346598f1
GM
2853 * eval.c (Fsignal): Reset handling_signal.
2854
222456a1
JR
28552000-11-28 Jason Rumney <jasonr@gnu.org>
2856
2857 * w32menu.c (add_menu_item): Reset menu item text when changing
2858 type to radio button.
2859
8049ddc0
GM
28602000-11-28 Gerd Moellmann <gerd@gnu.org>
2861
346598f1 2862 * xselect.c: Update copyright.
f4f4ee4d 2863
bebe4a2c
GM
2864 * window.c (coordinates_in_window): If on a mode or header line,
2865 but sufficiently close to its start, return ``on vertical
2866 border''. This gives us a way to drag windows horizontally when
2867 using toolkit scroll bars.
2868
2869 * xterm.c (note_mouse_highlight): Change the cursor shape
2870 on the vertical border between windows.
2871
2872 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
2873
2874 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
2875 (syms_of_xfns): DEFVAR_LISP it.
2876 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
2877
8d2c2642
GM
2878 * textprop.c (text_read_only): New function.
2879 (verify_interval_modification): Use it instead of signaling
2880 `text-read-only'. This makes it easier to catch this error
2881 with a breakpoint.:
2882
8049ddc0
GM
2883 * xdisp.c (forward_to_next_line_start): Check for newlines,
2884 not end of line, which includes CR.
2885
5a2bae6c
KH
28862000-11-28 Kenichi Handa <handa@etl.go.jp>
2887
2888 * coding.c (Ffind_coding_systems_region_internal): Be sure to
2889 include no-conversion.
2890
ae31f84d
JR
28912000-11-27 Jason Rumney <jasonr@gnu.org>
2892
2893 * w32fns.c (w32_load_system_font): Always mark font as double byte
2894 if codepage is unicode.
2895
67f1cf4c
GM
28962000-11-27 Gerd Moellmann <gerd@gnu.org>
2897
4a74d071
GM
2898 * xdisp.c (forward_to_next_line_start): If already on a newline,
2899 just consume it to avoid unintended skipping over invisible text
2900 below.
2901
902ae620
GM
2902 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
2903 `vertical-line', `mode-line' and `header-line' events.
2904
2905 * xdisp.c (try_window_id): Avoid starting to display in the middle
67f1cf4c
GM
2906 of a character, a TAB for instance. This is easier than to set
2907 up the iterator exactly, and it's not a frequent case, so the
2908 additional effort wouldn't really pay off.
2909
c1e279c2
AC
29102000-11-26 Andrew Choi <akochoi@i-cable.com>
2911
67f1cf4c 2912 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
c1e279c2
AC
2913 init_window_once.
2914
a609568a
JR
29152000-11-25 Jason Rumney <jasonr@gnu.org>
2916
48b21762
JR
2917 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]: Args
2918 to window_from_coordinates should be pixel coordinates.
2919
a609568a
JR
2920 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
2921 redisplay handles them properly.
2922
a658d039
MB
29232000-11-25 Miles Bader <miles@gnu.org>
2924
2925 * indent.c (compute_motion): Keep pos_byte in sync with pos.
2926
d3416cca
JR
29272000-11-24 Jason Rumney <jasonr@gnu.org>
2928
2929 * w32.c (init_environment): Set LANG environment variable based on
2930 locale settings, if not set.
2931
2932 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
2933 making tool bar smaller. When clearing the frame, also
2934 clear current matrices. Clear frame when tool bar disappears.
2935 Don't use more lines for the tool-bar than is available.
2936 (x_change_window_heights): New function.
2937
ba193890
GM
29382000-11-24 Gerd Moellmann <gerd@gnu.org>
2939
2be8f184
GM
2940 * xdisp.c (init_from_display_pos): If POS says we're already after
2941 an overlay string ending at POS, make sure to pop the iterator
2942 because it will be in front of that overlay string. When POS is
2943 ZV, we've thereby also ``processed'' overlay strings at ZV.
2944
ba193890
GM
2945 * xfaces.c (lface_from_face_name): Function comment fix.
2946
1862a24e
MB
29472000-11-24 Miles Bader <miles@gnu.org>
2948
2949 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
2950 apply `mode-line-inverse-video' -- zero means force display using
2951 the default face, non-zero means display using the specialized face.
2952 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
2953
f07fa1b8
KH
29542000-11-23 Kenichi Handa <handa@etl.go.jp>
2955
2956 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
2957 hard coded `4'.
2958
2bcdf662
EZ
29592000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
2960
2961 * coding.c (decode_coding_emacs_mule): Fix the case of
2962 CODING_EOL_LF, which used uninitialized value of c.
2963
ba8299ff
SM
29642000-11-23 Stefan Monnier <monnier@cs.yale.edu>
2965
2966 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
2967
f4117c4d
GM
29682000-11-22 Gerd Moellmann <gerd@gnu.org>
2969
03e757c1
GM
2970 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
2971 buffer object.
2972
f4117c4d
GM
2973 * frame.h (struct frame): Replace desired_tool_bar_items,
2974 current_tool_bar_items, n_desired_tool_bar_items,
cc362d76 2975 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
f4117c4d
GM
2976
2977 * frame.c (make_frame): Change initialization of tool bar
2978 items accordingly.
2979
2980 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
cc362d76 2981 Change references to members deleted from struct frame to use the
f4117c4d
GM
2982 new ones.
2983
2984 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
cc362d76 2985 references to members deleted from struct frame to use the new
f4117c4d
GM
2986 ones.
2987
2988 * dispnew.c (update_frame): Do nothing with frame's tool bar
2989 items.
2990
2991 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
2992
2993 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
cc362d76 2994 (note_tool_bar_highlight): Change references to members deleted
f4117c4d
GM
2995 from struct frame to use the new ones.
2996
f8e2f3f2
MB
29972000-11-23 Miles Bader <miles@gnu.org>
2998
2999 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
3000 the face's inverse-video attribute, rather than overriding it.
3001
60e8e0a5
GM
30022000-11-22 Gerd Moellmann <gerd@gnu.org>
3003
3004 * xfns.c (x_set_tool_bar_lines): Clear internal border when
3005 making tool bar smaller.
3006
92dd1b29
DL
30072000-11-22 Dave Love <fx@gnu.org>
3008
3009 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
3010
e672fdce
MB
30112000-11-22 Miles Bader <miles@gnu.org>
3012
3a17d6cc
MB
3013 * keyboard.c (Vminibuffer_message_timeout): New variable.
3014 (command_loop_1): Use it to determine message timeout.
3015 (syms_of_keyboard): Initialize it.
3016
60e8e0a5 3017 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
e672fdce 3018
e9655d81
KH
30192000-11-22 Kenichi Handa <handa@etl.go.jp>
3020
3021 * sysdep.c: Move the code for declaring h_errno after #include
3022 <netdb.h>.
3023
77270fac
GM
30242000-11-21 Gerd Moellmann <gerd@gnu.org>
3025
cd913aae
GM
3026 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
3027 the menu bar when the tooltip is unmapped.
3028
77270fac
GM
3029 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
3030 sole visible buffer when we're currently in the mini-buffer, and
3031 give up if so.
3032
556635d6
JR
30332000-11-21 Jason Rumney <jasonr@gnu.org>
3034
3035 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
3036 put on the clipboard.
3037 (Fw32_get_clipboard_data): Compare data on clipboard with saved
3038 copy of what Emacs last put there. If they are the same, do not
3039 use the clipboard copy to avoid losing data due to coding
3040 conversions.
3041
5b7bde64
MB
30422000-11-22 Miles Bader <miles@gnu.org>
3043
3044 * minibuf.c (Vminibuffer_prompt_properties): New variable.
3045 (syms_of_minibuf): Initialize it.
3046 (read_minibuf): Add properties from Vminibuffer_prompt_properties
3047 to prompt, don't make read-only.
3048
ff23e1dd
GM
30492000-11-21 Gerd Moellmann <gerd@gnu.org>
3050
3c64f287
GM
3051 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>: Add
3052 BEFORE/AFTER_POTENTIAL_GC.
3053
7aaf4388
GM
3054 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
3055
f5f47add 3056 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 3057
ff23e1dd
GM
3058 * term.c, cm.c: Don't try to include termcap.h; see comment there.
3059
37c35586
KH
30602000-11-21 Kenichi Handa <handa@etl.go.jp>
3061
3062 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
3063 ... #endif scope.
3064
ff9ab414
GM
30652000-11-20 Gerd Moellmann <gerd@gnu.org>
3066
c51d2b5e
GM
3067 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
3068 screen supports it.
3069
29a01b72
GM
3070 * s/gnu-linux.h: Don't use `#cpu'.
3071
09dfdf85
GM
3072 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
3073 not defined in mman.h.
3074
ff9ab414
GM
3075 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New
3076 variables.
3077 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
3078 and store an index in the XClientMessageEvent. Storing a
3079 Lisp_Object or pointer can fail on a 64 bit system, since X only
3080 transfers 32 bits.
3081 (x_scroll_bar_to_input_event): Get the window from
3082 scroll_bar_windows.
3083
81459ac9
DL
30842000-11-20 Dave Love <fx@gnu.org>
3085
3086 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
3087
56c13ae6
GM
30882000-11-20 Gerd Moellmann <gerd@gnu.org>
3089
3090 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
3091
495a6df3
KH
30922000-11-20 Kenichi Handa <handa@etl.go.jp>
3093
2bcf3714
KH
3094 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
3095 by WIDTH.
3096
495a6df3
KH
3097 * alloc.c (make_string): Fix previous change. Be sure to make
3098 unibyte string correctly.
3099
6d950f4c
GM
31002000-11-19 Gerd Moellmann <gerd@gnu.org>
3101
39b39373
GM
3102 * window.c (Fwindow_list): Change parameter list to be XEmacs
3103 compatible.
3104 (window_list_1): New function.
3105 (window_loop): Use it instead of Fwindow_list.
3106
b95b34e5
GM
3107 * sysdep.c (emacs_ospeed): New variable.
3108 (toplevel): Don't declare ospeed extern.
3109 (init_baud_rate): Use emacs_ospeed instead of ospeed.
3110
3111 * termcap.c (ospeed): Remove.
3112 (tputs) [!emacs]: Remove unused code.
3113 (tgetent): Avoid a compiler warning.
3114
e83dc917
GM
3115 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
3116 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 3117 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
3118
3119 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
3120 removed.
3121 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
3122 Take the X display as additional argument.
3123 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
3124 `Widget' is a pointer type that's not easily stored in Lisp_Object
3125 form in a portable way.
3126
6d950f4c
GM
3127 * dispnew.c (update_text_area): Fix last change.
3128
e47306e6
GM
31292000-11-18 Gerd Moellmann <gerd@gnu.org>
3130
fb3cd89b
GM
3131 * xdisp.c: Use BINDING_STACK_SIZE throughout.
3132
3133 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
3134 clear current matrices.
3135
edaa9aed
GM
3136 * buffer.c (mmap_enlarge): Don't print a message on stderr
3137 if mapping new memory at the end of the existing region fails.
3138
e47306e6
GM
3139 * dispnew.c (update_text_area): Don't skip over equal glyphs
3140 when the last current glyph overlaps the glyph to its right.
3141
509633e3
MB
31422000-11-18 Miles Bader <miles@gnu.org>
3143
3144 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
3145 lines that *end* with "..." too (that's the most common case!).
3146
d392e9c5
GM
31472000-11-18 Gerd Moellmann <gerd@gnu.org>
3148
67988445
GM
3149 * xdisp.c (resize_mini_window): Temporarily change to the
3150 mini-window's buffer if necessary.
1bfdbe43 3151
d392e9c5
GM
3152 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
3153 the tooltip obscures less text under it.
3154
31552000-11-17 Gerd Moellmann <gerd@gnu.org>
3156
3157 * puresize.h (BASE_PURESIZE): Increase to 700000.
3158
92bb977f
JR
31592000-11-18 Jason Rumney <jasonr@gnu.org>
3160
3161 * w32term.c (w32_draw_bitmap): Use face to set colors.
3162
26fbf20b
DL
31632000-11-17 Dave Love <fx@gnu.org>
3164
3165 * lread.c (Fload): Fix #ifdef for pcc.
3166
100b593b
GM
31672000-11-17 Gerd Moellmann <gerd@gnu.org>
3168
3169 * xdisp.c (pos_visible_p): Compute the default character height
3170 differently.
3171
a288d0d1
GM
31722000-11-16 Gerd Moellmann <gerd@gnu.org>
3173
cac94de6
GM
3174 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
3175 knowing the line's height; use the default font's height in that
3176 case.
3177
a288d0d1
GM
3178 * xfaces.c (weight_table): Add `demi' with the same meaning as
3179 `demibold'.
3180
981fb6f6
KH
31812000-11-16 Kenichi Handa <handa@etl.go.jp>
3182
2cca872d 3183 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
3184 (clear_glyph_row): Delete local static variable null_row.
3185
e5fa381b
JR
31862000-11-15 Jason Rumney <jasonr@gnu.org>
3187
3188 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
3189 (w32_alloc_lighter_color): Use new brightness calculations from
3190 xterm.c. Scale delta to be in the range expected by W32.
3191 (w32_draw_relief_rect): Use frame relief colors.
3192
8e42f043
GM
31932000-11-15 Gerd Moellmann <gerd@gnu.org>
3194
6d133d1f
GM
3195 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
3196 (Qinhibit_default_face_x_resources): New variable.
3197 (syms_of_frame): Initialize it.
3198 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
3199
3200 * xdisp.c (pos_visible_p): Improve function comment.
3201
3202 * lisp.h (BINDING_STACK_SIZE): New macro.
3203
8e42f043
GM
3204 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
3205 reading the directory if readdir returns null and errno is EAGAIN
3206 or EINTR.
3207
e8c87124
SM
32082000-11-14 Stefan Monnier <monnier@cs.yale.edu>
3209
3210 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
3211 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
3212 Set amount_to_scroll to max of dx and scroll_step so that
3213 scroll-conservatively doesn't defeat scroll-step>1.
3214 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
3215 scroll-conservatively for line-at-a-time scrolling.
3216
5f0c971d
GM
32172000-11-14 Gerd Moellmann <gerd@gnu.org>
3218
3219 * window.c (Fpos_visible_in_window_p): Call pos_visible with
3220 extra argument.
3221
3222 * xdisp.c (current_mode_line_height, current_header_line_height):
3223 New variables.
3224 (init_xdisp): Initialize them.
3225 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
3226 and use exact mode line heights if it is set.
3227
3228 * lisp.h (pos_visible_p): Change prototype.
3229
3230 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
3231 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
3232 and current_header_line_height first.
3233 (current_mode_line_height, current_header_line_height): Declare
3234 extern.
3235
d7361edf
MB
32362000-11-14 Miles Bader <miles@lsi.nec.co.jp>
3237
3238 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
3239 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
3240 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
3241
ee5e440a
MB
32422000-11-14 Miles Bader <miles@gnu.org>
3243
3244 * xterm.c (x_alloc_lighter_color): Include an additive component
3245 too for dark colors, because FACTOR isn't enough.
3246 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
3247 New macros.
3248
5ca020fc
GM
32492000-11-13 Gerd Moellmann <gerd@gnu.org>
3250
3251 * keyboard.c (show_help_echo): Call message3_nolog with number of
3252 bytes in the help string as 2nd parameter, instead of the number
3253 of characters.
3254
9d348294
MB
32552000-11-13 Miles Bader <miles@gnu.org>
3256
3257 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
3258 (Fload): Use new openp return protocol.
3259 Don't try to use Vload_source_file_function to load .elc files.
3260 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
3261 openp return protocol.
3262 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
3263
1729bb9a
KH
32642000-11-11 Kenichi Handa <handa@etl.go.jp>
3265
4e677396
KH
3266 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
3267
3268 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
3269 Defined these macros.
3270 (NLIST_STRUCT): Avoid re-defining it.
3271
1729bb9a
KH
3272 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
3273 -I/usr/contrib/X11R6/include.
3274 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
3275
a82fe213
JR
32762000-11-10 Jason Rumney <jasonr@gnu.org>
3277
3278 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
3279
3280 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
3281 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
3282
3283 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
3284 (Qw32_charset_vietnamese): New symbol.
3285 (xlfd_charset_of_font): New function.
3286 (w32_load_system_font): Use it.
3287 (x_to_w32_charset): Use Fassoc to find charset info. Special case
3288 when Vw32_charset_info_alist is nil to ensure default face always
3289 has font. Use Fcar and Fcdr for safety.
3290 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
3291 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
3292 pseudo-codepages for special cases.
3293 (w32_to_x_font): New parameter to allow charset portion to be
3294 specified where there is many to one mapping. Callers changed.
3295 (w32_list_fonts): Avoid listing fonts that won't display.
3296
52d89894
GM
32972000-11-10 Gerd Moellmann <gerd@gnu.org>
3298
3299 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
3300 (font_list_1): Renamed from font_list.
3301 (font_list): New function, trying alternative registries from
3302 Vface_alternative_font_registry_alist.
3303 (Finternal_set_alternative_font_registry_alist): New function.
3304 (syms_of_xfaces): Initialize and Staticpro
3305 Vface_alternative_font_registry_alist. Defsubr
3306 Finternal_set_alternative_font_registry_alist.
3307
651cd3da
KR
33082000-11-09 Ken Raeburn <raeburn@gnu.org>
3309
3310 * lisp.h (Flooking_at): Declare.
3311
388ac098
GM
33122000-11-09 Gerd Moellmann <gerd@gnu.org>
3313
778fbc46
GM
3314 * dired.c (directory_files_internal): Fix a braino.
3315
388ac098
GM
3316 * dired.c (directory_files_internal): Add missing GCPRO's.
3317 Some cleanup.
3318
ecaedde1
GM
33192000-11-08 Gerd Moellmann <gerd@gnu.org>
3320
f7eb32aa
GM
3321 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
3322 (resize_mini_window): Return quickly if Vresize_mini_window is
3323 nil. Don't return if Vmax_mini_window_height is nil.
3324
3325 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
3326 (syms_of_xdisp): Initialize them.
3327 (resize_mini_window): Act according to the setting of
3328 Vresize_mini_window.
3329 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
3330
ecaedde1
GM
3331 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
3332 scroll bar widget after configuring it, so that it will appear at
3333 the right position from the start.
3334 (XTredeem_scroll_bar): Cleaned up.
3335
3747ef2c
KH
33362000-11-08 Kenichi Handa <handa@etl.go.jp>
3337
3338 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 3339 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
3340 division by two.
3341
3342 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
3343
03391420
DL
33442000-11-07 Dave Love <fx@gnu.org>
3345
7758f1c1 3346 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
3347
3348 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
3349
b5de343d
GM
33502000-11-07 Gerd Moellmann <gerd@gnu.org>
3351
acad3c0b
GM
3352 * window.c (Fset_window_configuration): Don't try to preserve
3353 point in the current buffer, if that buffer is displayed in more
3354 than one window.
3355
b5de343d
GM
3356 * xfaces.c (lookup_named_face): If default face isn't realized,
3357 try to realize it. Return -1 if not successful.
3358 (Fx_list_fonts): Handle case that face cannot be determined.
3359 (Fface_font): Likewise.
3360
cdb1fe49
GM
33612000-11-06 Gerd Moellmann <gerd@gnu.org>
3362
3363 * window.c (displayed_window_lines): Detect partially
3364 visible lines at the bottom correctly.
3365
d3a67486
SM
33662000-11-06 Stefan Monnier <monnier@cs.yale.edu>
3367
3368 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
3369 when ensuring we don't do visit in indirect buffer.
3370
ff8dd5d5
KH
33712000-11-06 Kenichi Handa <handa@etl.go.jp>
3372
3373 * composite.h (compose_chars_in_text): Add prototype.
3374
3375 * composite.c (Vcomposition_function_table): New variable.
3376 (Qcomposition_function_table): New variable.
3377 (run_composition_function): Call
3378 Vcompose_chars_after_function with three arguments.
3379 (compose_chars_in_text): New function.
3380 (syms_of_composite): Modified the doc-string of
3381 Vcompose_chars_after_function. Declare composition-function-table
3382 as a lisp variable, and initialize it.
3383
3384 * xfns.c (x_encode_text): Suppress producing escape sequences for
3385 composition.
3386
3387 * xselect.c: Include composite.h.
3388 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
3389
d1145f85
AI
33902000-11-05 Andrew Innes <andrewi@gnu.org>
3391
3392 * w32term.c (x_produce_glyphs): Fix typo in enum name.
3393
3394 * sysdep.c (read_input_waiting): Remove extraneous argument to
3395 read_socket_hook.
3396
3397 * w32fns.c (Fx_server_version): Include w32_build_number in the
3398 return list.
3399
3400 * w32heap.c (w32_build_number): New variable.
3401 (cache_system_info): Set it.
3402
3403 * w32heap.h (w32_build_number): Add extern.
3404
3405 * emacs.c (syms_of_emacs): Update docstring for
3406 system-configuration, to reflect the actual usage on MS-Windows.
3407
e85ee976
GM
34082000-10-31 Gerd Moellmann <gerd@gnu.org>
3409
26dcb81b
GM
3410 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
3411 process idle timers while waiting for another event.
3412
0a894bad
GM
3413 * dispnew.c (update_frame_line): Handle case where spaces in
3414 the default face are colored.
3415
e85ee976
GM
3416 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
3417 window height hasn't changed.
3418
01b220b6
JR
34192000-10-31 Jason Rumney <jasonr@gnu.org>
3420
3421 * w32term.c (x_produce_glyphs): Handle composite characters.
3422 (x_draw_glyph_string_foreground)
3423 (x_draw_composite_glyph_string_foreground): Restore old font.
3424
4e6b7204
MB
34252000-10-31 Miles Bader <miles@lsi.nec.co.jp>
3426
3427 * minibuf.c (read_minibuf): Reset the undo history just before
3428 starting the recursive-edit.
3429
d4358b37
GM
34302000-10-30 Gerd Moellmann <gerd@gnu.org>
3431
563f68f1
GM
3432 * xfaces.c (menu_face_change_count): New variable.
3433 (Finternal_set_lisp_face_attribute): Increment it for changes
3434 of the `menu' face.
3435 (realize_basic_faces): Reflect changes in the `menu' faces
3436 in menu bars.
3437
82e274d1
GM
3438 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
3439 dy obtained from the iterator's y-position after moving from
3440 scroll_margin_pos to PT; see comment there.
3441
0dbf9fd2
GM
3442 * xdisp.c (safe_eval_handler): Call add_to_log.
3443
906b3b14
GM
3444 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
3445 is not a symbol or string.
3446
d4358b37
GM
3447 * xdisp.c (echo_area_display): Don't perform a display update from
3448 inside redisplay. The update will happen anyway at the end of
3449 redisplay, and it can confuse redisplay (GC messages while
3450 redisplaying, for instance.)
3451
70c825df
SM
34522000-10-30 Stefan Monnier <monnier@cs.yale.edu>
3453
cf9b4b0b
SM
3454 * xrdb.c (x_load_resources): Use the class name in the defaults.
3455
70c825df
SM
3456 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
3457 (regex_compile): Catch bogus \(\1\).
3458
a1d34b1e
GM
34592000-10-30 Gerd Moellmann <gerd@gnu.org>
3460
cae71efe
GM
3461 * xterm.c (x_alloc_nearest_color): Fix last change to compare
3462 RGB values.
3463
35efe0a1
GM
3464 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
3465 we have a color cache, check that the cached color equals the
3466 allocated color. If not, clear the color cache.
3467
1d3baf74
GM
3468 * window.c (displayed_window_lines): Change buffers if necessary.
3469 Fix computation of displayed lines.
3470
a1d34b1e
GM
3471 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
3472 update_menu_bindings to DEFVAR_BOOL.
3473
70737ea9
KH
34742000-10-30 Kenichi Handa <handa@etl.go.jp>
3475
70c825df 3476 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 3477
fa0cb51d
KH
3478 * puresize.h (BASE_PURESIZE): Increase to 680000.
3479
70737ea9
KH
3480 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
3481
0e4c08e8
JR
34822000-10-29 Jason Rumney <jasonr@gnu.org>
3483
3484 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
3485
3486 * w32term.c (w32_bdf_per_char_metric): Negate descent.
3487 (w32_cache_char_metrics): Handle possibility that 'x' does not
3488 exist in a BDF font.
3489 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
3490
3491 * w32bdf.h (bdffont): Add nchars.
3492
3493 * w32bdf.c (set_bdf_font_info): Set it.
3494 (w32_BDF_TextOut): Swap byte order of double byte characters.
3495 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
3496
45b84006
EZ
34972000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
3498
3499 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
3500 don't override the colors in frame's param_alist, unless they are
3501 unspecified.
3502
3503 * term.c (reassert_line_highlight): If inverse_video is non-zero,
3504 reverse the effect of the highlight flag.
3505
caf9deee
KR
35062000-10-27 Ken Raeburn <raeburn@gnu.org>
3507
3508 * window.h (Fwindow_live_p): Declare.
3509
ae0b9b46
KR
3510 * undo.c (record_delete): Check that last_undo_buffer is really a
3511 buffer before applying XBUFFER to it.
3512
3513 * keymap.c (where_is_internal): Pass lisp object, not integer, to
3514 Faref.
3515
02067692
SM
35162000-10-27 Stefan Monnier <monnier@cs.yale.edu>
3517
3518 * lisp.h (KEYMAPP): New macro.
3519 (get_keymap): Remove.
3520 (get_keymap_1): Rename get_keymap.
3521
3522 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
3523
3524 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
3525
3526 * xmenu.c (single_submenu): Use KEYMAPP.
3527 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
3528 Use KEYMAPP rather than Fkeymapp.
3529
3530 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
3531
3532 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
3533 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
3534 Use KEYMAPP rather than Fkeymapp.
3535 (single_submenu): Use KEYMAPP.
3536 (w32_menu_show, w32_dialog_show): Use TRUE.
3537
3538 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
3539
3540 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
3541 (Fkeymapp): Use KEYMAPP.
3542 (get_keymap): Rename from get_keymap_1. Remove old def.
3543 Return t when autoload=0 and error=0 and the keymap needs autoloading.
3544 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
3545 (Fminor_mode_key_binding): Don't raise an error if the binding
3546 is not a keymap.
3547 (Fuse_global_map, Fuse_local_map): Allow autoloading.
3548 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
3549
3550 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
3551 Allow Vspecial_event_map to be autoloaded.
3552 (menu_bar_items): Fetch the keymap rather than using keymapp.
3553 (menu_bar_one_keymap): No need to follow func-indirect any more.
3554 (parse_menu_item): get_keymap_1 -> get_keymap.
3555 (tool_bar_items): Fetch the keymap rather than using keymapp.
3556 (read_key_sequence): Use KEYMAPP.
3557
3558 * intervals.c (get_local_map): Use get_keymap rather than following
3559 function-indirections explicitly.
3560
3561 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
3562
f9d80af3
JR
35632000-10-27 Jason Rumney <jasonr@gnu.org>
3564
3565 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
3566 point, as Windows has oversized fonts.
3567
3568 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
3569
a3ba27da
GM
35702000-10-27 Gerd Moellmann <gerd@gnu.org>
3571
3572 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
3573 (freehook, reallochook): Handle null pointer arguments.
3574 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
3575
aa3b80cc
SM
35762000-10-27 Stefan Monnier <monnier@cs.yale.edu>
3577
3578 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
3579 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
3580 Giving in to popular pressure to shut up the compiler with casts.
3581
e24e84cc
GM
35822000-10-27 Gerd Moellmann <gerd@gnu.org>
3583
3584 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
3585 signed value, and use a default value computed from the font's
3586 maximum descent.
3587
05ea7ef2
MB
35882000-10-27 Miles Bader <miles@lsi.nec.co.jp>
3589
3590 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
3591 that specify a negative underline position can still use underlines.
3592
3593 * window.c (Fpos_visible_in_window_p): Make POS default to
3594 WINDOW's point, not the current buffer's point.
3595
0b95284b
DL
35962000-10-26 Dave Love <fx@gnu.org>
3597
3598 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
3599 when it's necessary.
3600
6c5b90af
GM
36012000-10-26 Gerd Moellmann <gerd@gnu.org>
3602
8b6d9dc9
GM
3603 * window.c (size_window): Compute size difference from sum of old
3604 child window sizes instead of from parent's size.
3605
6bc92b2e
GM
3606 * xdisp.c (pos_visible_p): Change current buffer if necessary.
3607 Handle obscured lines at the top of the window.
3608
3609 * frame.c (Fdelete_frame): Doc fix. Move running the hook
3610 down after the last error condition check.
3611
6c5b90af
GM
3612 * frame.c (Fdelete_frame): Run delete-frame-hook.
3613
42f92d4d
KH
36142000-10-26 Kenichi Handa <handa@etl.go.jp>
3615
3616 * coding.c (decode_coding): Fix previous change (check also
3617 CODING_MODE_LAST_BLOCK).
3618
d97151cb
SM
36192000-10-25 Stefan Monnier <monnier@cs.yale.edu>
3620
e7efc503
SM
3621 * regex.c: More `unsigned char' -> `re_char' changes.
3622 Also change several `int' into `re_wchar_t'.
3623 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
3624 (PUSH_FAILURE_POINTER): Don't cast any more.
3625 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
3626 We want GCC to complain, since this piece of code makes
3627 re_match non-reentrant, which *should* be fixed.
3628 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
3629 (EXTEND_BUFFER): Use RETALLOC.
3630 (SET_LIST_BIT): Don't cast.
3631 (re_wchar_t): New type.
3632 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
3633 that those two functions will always properly return.
3634 (IMMEDIATE_QUIT_CHECK): Cast to void.
3635 (analyse_first): Use recursion rather than an explicit stack.
3636 (re_compile_fastmap): Can't fail anymore.
3637 (re_search_2): Don't check re_compile_fastmap for failure.
3638 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
3639 Now also sets the new value (passed in a new argument).
3640 (re_match_2_internal): Use it.
3641 Also, use a new var `reg' of type size_t when looping through regs
3642 rather than reuse the inappropriate `mcnt'.
3643
d97151cb
SM
3644 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
3645 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
3646 (where_is_internal): Renamed from Fwhere_is_internal.
3647 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
3648 (Fwhere_is_internal): New function wrapping where_is_internal.
3649 (where_is_internal_1): Handle the case where we're filling the cache.
3650 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
3651
d5789b65
MB
36522000-10-25 Miles Bader <miles@gnu.org>
3653
3654 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
3655
4ecda532
GM
36562000-10-25 Gerd Moellmann <gerd@gnu.org>
3657
3658 * window.c (pos_fully_visible_p): Removed.
3659 (Fpos_visible_in_window_p): Use pos_visible_p to determine
3660 if position is visible and/or fully visible.
3661
3662 * lisp.h (pos_visible_p): Add prototype.
3663
3664 * xdisp.c (pos_visible_p): New function.
3665
68c3a137
KH
36662000-10-25 Kenichi Handa <handa@etl.go.jp>
3667
3668 * process.c (send_process): If OBJECT is t, it means that the data
3669 is from C string, but we should encode it. Before calling
3670 setup_raw_text_coding_system, be sure to flush out data by the
3671 previous coding system.
3672
7ae1c032
MB
36732000-10-25 Miles Bader <miles@lsi.nec.co.jp>
3674
ff4dcd4b
MB
3675 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
3676 assignment of startpos to prev when startpos == pos.
3677
7ae1c032
MB
3678 * editfns.c (find_field): Set the field stickiness correctly from
3679 overlay fields. Use renamed `text_property_stickiness'.
3680 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 3681 Only check text properties, not overlays.
7ae1c032
MB
3682 * textprop.c (get_char_property_and_overlay): New function.
3683 (Fget_char_property): Use it.
3684 * intervals.h (get_char_property_and_overlay): Add declaration.
3685
49801145
SM
36862000-10-25 Stefan Monnier <monnier@cs.yale.edu>
3687
3688 * keymap.c: Use AREF, ASET and ASIZE macros.
3689 (Fmake_sparse_keymap): Docstring fix.
3690 (synkey): Remove.
3691 (shadow_lookup): Move up.
3692 Handle the case where lookup-key returns an integer.
3693 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
3694 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
3695 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
3696 Simplify/rewrite the keymap-finding code.
3697 Add check for command shadowing, using shadow_lookup.
3698
39e776cd
SM
36992000-10-24 Stefan Monnier <monnier@cs.yale.edu>
3700
3701 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
3702 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
3703 a symbol.
3704
2488aba5
AI
37052000-10-24 Andrew Innes <andrewi@gnu.org>
3706
3707 * dired.c (directory_files_internal_unwind): New function.
3708 (directory_files_internal): Use it to ensure closedir is called
3709 even if expand-file-name or file-attributes throw, eg. because of
3710 a user interrupt. Also enable immediate_quit while calling
3711 re_search, so that matching can be interrupted as well.
3712
b94fdf61
AI
37132000-10-24 Andrew Innes <andrewi@gnu.org>
3714
3715 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
3716 NT-Emacs only.
3717 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
3718 so that re_search functions only quit when callers expect them to.
3719
37202000-10-24 Kenichi Handa <handa@etl.go.jp>
3721
3722 * regex.c (regex_compile): Change the way of handling a range from
3723 a char less than 256 to a char not less than 256.
3724
1946f901
GM
37252000-10-24 Gerd Moellmann <gerd@gnu.org>
3726
7ae2f10f
GM
3727 * window.c (size_window): Prevent setting window's width or
3728 height to a negative value (esp. with XSETFASTINT).
3729
5dcab13e
GM
3730 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
3731 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
3732 (protect_malloc_state) [GC_MALLOC_CHECK &&
3733 GC_PROTECT_MALLOC_STATE]: New function.
3734 (PROTECT_MALLOC_STATE): New macro.
3735 (__malloc_initialize, morecore, _malloc_internal)
3736 (_free_internal) _realloc_internal): Use it to make _heapinfo
3737 read-only outside of gmalloc.
3738
63e1b552
GM
3739 * keymap.c: Update copyright.
3740
1946f901
GM
3741 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
3742 a symbol.
3743
4fa09beb
GM
37442000-10-24 Colin Walters <walters@cis.ohio-state.edu>
3745
3746 * filelock.c (unlock_all_files): Use unlock_file to expand each
3747 buffer's file_truename before trying remove its lock file.
3748
23afac01
EZ
37492000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
3750
3751 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
3752 or CRLF, decode EOLs.
3753
04448b95
KH
37542000-10-24 Kenichi Handa <handa@etl.go.jp>
3755
3756 * window.c (Fdisplay_buffer): Fix doc.
3757
3090a5a5
JR
37582000-10-23 Jason Rumney <jasonr@gnu.org>
3759
3760 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
3761 ASCII font of default fontset on Windows.
3762
3763 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
3764 xterm.c comment below).
3765
3766 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
3767
a83fee2c
GM
37682000-10-23 Gerd Moellmann <gerd@gnu.org>
3769
3770 * xterm.c (x_connection_closed): Reset handling_signal.
3771
3772 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing
3773 null.
3774
6ffdb539
MB
37752000-10-23 Miles Bader <miles@gnu.org>
3776
3777 * window.c (window_scroll_pixel_based, window_scroll_line_based):
3778 Pass nil for FULLY argument to Fpos_visible_in_window_p to
3779 maintain old behavior.
3780 * minibuf.c (Fminibuffer_complete): Likewise.
3781
7f1c969b
MB
37822000-10-23 Miles Bader <miles@lsi.nec.co.jp>
3783
3784 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
3785 that when a font can't be exactly centered, it errs up rather than
3786 down.
3787
23afac01 37882000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd
SZ
3789
3790 * fns.c (Fbase64_decode_string): The decoded result should be
3791 unibyte.
3792
1a578e9b
AC
37932000-10-23 Andrew Choi <akochoi@i-cable.com>
3794
3795 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
3796
3797 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 3798 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
3799
3800 * emacs.c (main) [macintosh]: Call syms_of_textprop,
3801 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
3802 syms_of_search, x_term_init, and init_keyboard before calling
3803 init_window_once. Also, call syms_of_xmenu.
3804
3805 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
3806 default fontset to Monaco.
3807
3808 * frame.c [macintosh]: Include macterm.h. Remove declarations of
3809 NewMacWindow and DisposeMacWindow.
3810 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
3811 instead of calling NewMacWindow and setting fields of
3812 f->output_data.mac directly. Call init_frame_faces.
3813 (Fdelete_frame) [macintosh]: Remove unused code.
3814 (Fmodify_frame_parameters) [macintosh]: Call
3815 x_set_frame_parameters instead of mac_set_frame_parameters.
3816
3817 * frame.h [macintosh]: Define menu_bar_lines field in struct
3818 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
3819
3820 * keyboard.c [macintosh]: Include macterm.h.
3821 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
3822 and menu_bar_activate_event type events as for X and NT.
3823 (make_lispy_event) [macintosh]: Construct lisp events of type
3824 MENU_BAR_EVENT as for X and NT.
3825
3826 * sysdep.c [macintosh]: Remove declaration for sys_signal.
3827 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
3828 (sys_subshell) [macintosh]: Remove definition entirely.
3829 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
3830 Vwindow_system_version here. Remove initialization of
3831 Vx_bitmap_file_path.
3832 (read_input_waiting): Correct the number of parameters passed to
3833 read_socket_hook.
3834 Move all Macintosh functions to mac/mac.c.
3835
3836 * term.c [macintosh]: Include macterm.h.
3837
3838 * window.c [macintosh]: Include macterm.h.
3839
3840 * xdisp.c [macintosh]: Include macterm.h. Declare
3841 set_frame_menubar and pending_menu_activation.
3842 (echo_area_display) [macintosh]: Do not return if terminal frame
3843 is the selected frame.
3844 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
3845 Allow only the selected frame to set menu bar.
3846 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
3847 calling FRAME_EXTERNAL_MENU_BAR (f).
3848 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
3849
3850 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
3851 and check_x. Declare XCreateGC. Define x_create_gc and
3852 x_free_gc. Initialize font_sort_order.
3853 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
3854 but call x_list_fonts instead of w32_list_fonts.
3855 (Finternal_face_x_get_resource) [macintosh]: Do not call
3856 display_x_get_resource.
3857 (prepare_face_for_display) [macintosh]: Set xgcv.font.
3858 (realize_x_face) [macintosh]: Load the font if it is specified in
3859 ATTRS.
3860 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed
3861 to Qt.
3862
1ffbabe3
SM
38632000-10-22 Stefan Monnier <monnier@cs.yale.edu>
3864
3865 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
3866 is nil: since we go to the end of submap anyway, we'd end up
3867 setting nil to nil.
3868 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
3869 doesn't obey autoload.
3870
bed43f1d
EZ
38712000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
3872
1ffbabe3 3873 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 3874
ea4233a7
JR
38752000-10-21 Jason Rumney <jasonr@gnu.org>
3876
3877 * w32term.c (w32_cache_char_metrics): Double check that font is
3878 really fixed pitch before trusting tmPitchAndFamily.
3879
f3d3c491
AI
38802000-10-21 Andrew Innes <andrewi@gnu.org>
3881
3882 * w32gui.h (w32_char_font_type): Move enum from w32term.c
3883
3884 * w32term.h: Extern decl for w32_cache_char_metrics.
3885
3886 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
3887
3888 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
3889 (w32_unload_font): Free per_char array if present.
3890
3891 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
3892 cached information in emulated XFontStruct to handle common cases
3893 quickly. Do not allocate XCharStruct for return.
3894 (w32_native_per_char_metric): New function.
3895 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
3896 allocating one.
3897 (x_produce_glyphs): Don't get an HDC. Change calls to
3898 w32_per_char_metric to match arg change above. Remove calls to
3899 free results.
3900 (w32_get_glyph_overhangs): Ditto.
3901 (w32_cache_char_metrics): New function.
3902
3903 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
3904 ($(BLD)/casefiddle.$(O)): Remove compile command.
3905 ($(BLD)/gmalloc.$(O)): Remove compile command.
3906 ($(BLD)/dispnew.obj):
3907 ($(BLD)/keyboard.obj):
3908 ($(BLD)/w32inevt.obj):
3909 ($(BLD)/w32bdf.obj):
3910 ($(BLD)/alloc.obj):
3911 ($(BLD)/buffer.obj):
3912 ($(BLD)/editfns.obj):
3913 ($(BLD)/emacs.obj):
3914 ($(BLD)/fileio.obj):
3915 ($(BLD)/fns.obj):
3916 ($(BLD)/indent.obj):
3917 ($(BLD)/insdel.obj):
3918 ($(BLD)/intervals.obj):
3919 ($(BLD)/minibuf.obj):
3920 ($(BLD)/print.obj):
3921 ($(BLD)/scroll.obj):
3922 ($(BLD)/sysdep.obj):
3923 ($(BLD)/textprop.obj):
3924 ($(BLD)/widget.obj):
3925 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
3926 ($(BLD)/term.obj): Add dependency on dispextern.h.
3927
3928 * makefile.nt ($(BLD)\dispnew.obj):
3929 ($(BLD)\keyboard.obj):
3930 ($(BLD)\w32inevt.obj):
3931 ($(BLD)\w32bdf.obj):
3932 ($(BLD)\alloc.obj):
3933 ($(BLD)\buffer.obj):
3934 ($(BLD)\editfns.obj):
3935 ($(BLD)\emacs.obj):
3936 ($(BLD)\fileio.obj):
3937 ($(BLD)\fns.obj):
3938 ($(BLD)\indent.obj):
3939 ($(BLD)\insdel.obj):
3940 ($(BLD)\intervals.obj):
3941 ($(BLD)\minibuf.obj):
3942 ($(BLD)\print.obj):
3943 ($(BLD)\scroll.obj):
3944 ($(BLD)\sysdep.obj):
3945 ($(BLD)\textprop.obj):
3946 ($(BLD)\widget.obj):
3947 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
3948 ($(BLD)\term.obj): Add dependency on dispextern.h
3949
18ad4821
EZ
39502000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
3951
3952 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
3953 with an additional argument of Qt.
3954
de54681a
MB
39552000-10-21 Miles Bader <miles@gnu.org>
3956
3957 * window.c (pos_fully_visible_in_window_p): New function.
3958 (Fpos_visible_in_window_p): Add FULLY argument.
3959 Use pos_fully_visible_in_window_p.
3960 (window_scroll_pixel_based, window_scroll_line_based): Update
3961 calls to Fpos_visible_in_window_p.
3962 * lisp.h (Fpos_visible_in_window_p): Update prototype
3963
13c844fb
GM
39642000-10-20 Gerd Moellmann <gerd@gnu.org>
3965
3966 * alloc.c (toplevel): Conditionalize compilation of mem_*
3967 functions differently.
3968
d9506268
JR
39692000-10-20 Jason Rumney <jasonr@gnu.org>
3970
3971 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
3972 mem_init where it used to be. mem_z etc not defined otherwise.
3973
8094989b
GM
39742000-10-20 Gerd Moellmann <gerd@gnu.org>
3975
3976 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
3977 GC_MALLOC_CHECK.
3978 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
3979 structure definition and related variabled to the top of the file.
3980 Include this code when GC_MALLOC_CHECK is defined.
3981 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
3982 register/unregister allocated region.
3983 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
3984 which isn't allocated.
3985 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
3986 something which is already in use.
3987 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
3988 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
3989 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
3990 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
3991
3992 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
3993 _malloc_internal instead of malloc.
3994 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
3995 of free.
3996
ea456eb4
AI
39972000-10-20 Andrew Innes <andrewi@gnu.org>
3998
3999 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
4000 Windows.
4001 (my_strftime) <macro>: Don't use macro arg list when redefining as
4002 _strftime_copytm.
4003 (my_strftime) <function>: Supply 0 as ut argument.
4004
e64c3a75
JR
40052000-10-19 Jason Rumney <jasonr@altavista.net>
4006
4007 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
4008 including dispextern.h, as it stops faces from working.
4009
4010 * w32fns.c (Fx_create_frame): Don't bother calling
4011 face-set-after-frame-default since the caller does it for us
4012 anyway. Clean up calls to x_get_arg to be consistent with X.
4013
4014 * w32term.c (x_produce_glyphs): Handle
4015 unibyte_display_via_language_environment correctly.
4016 (w32_draw_box_rect): Fix the calculation of width and height.
4017
4018 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
4019 as it has stopped working.
4020 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
4021 menu-bar.
4022
17401c97
GM
40232000-10-19 Gerd Moellmann <gerd@gnu.org>
4024
4025 * eval.c (skip_debugger): Prevent a compiler warning.
4026 (Fcondition_case): Likewise.
4027 (Fbacktrace_frame): Use a null interactive spec.
4028
773272d8
KH
40292000-10-19 Kenichi Handa <handa@etl.go.jp>
4030
4031 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
4032
a42943e9
GM
40332000-10-18 Gerd Moellmann <gerd@gnu.org>
4034
e50517d9
GM
4035 * strftime.c: Sync with glibc, file version 1.78.
4036 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
4037 should no longer be used according to ISO 8601.
4038
9035a35a
GM
4039 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
4040 no map for meta_prefix_char, don't try to use it as a keymap.
4041 Instead, if T_OK is non-zero, look up a default binding, if any,
4042 otherwise, if T_OK is zero, return nil.
4043
a42943e9
GM
4044 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
4045 (x_to_xcolors, png_load): Use x_query_color.
4046
4047 * xterm.c (x_color_cells, x_query_colors, x_query_color): New
4048 functions.
4049 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
4050 which can be slow.
4051 (x_copy_color, x_alloc_lighter_color): Likewise.
4052
4053 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
4054 (x_query_color, x_query_colors): Add prototype.
4055
4056 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
4057 check_string_bytes only if not noninteractive, increase count to 50.
4058
00de2987
MB
40592000-10-18 Miles Bader <miles@lsi.nec.co.jp>
4060
4061 * insdel.c (adjust_markers_for_delete): Handle before-insertion
4062 markers correctly.
4063
54918e2b
GM
40642000-10-17 Gerd Moellmann <gerd@gnu.org>
4065
1f0b3fd2
GM
4066 * alloc.c (pure_bytes_used): Renamed from pureptr.
4067 (ALIGN): New macro.
4068 (pure_alloc): New function.
4069 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
4070 Use it.
4071 (Fpurecopy): Use PURE_POINTER_P.
4072
68c5d1db
GM
4073 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
4074 PT has moved backward.
4075
9a038881
GM
4076 * xdisp.c (cursor_row_p): Take continued lines into account.
4077
361b097f
GM
4078 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
4079 string's size_byte.
4080 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
4081 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
4082 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
4083 string allocated.
4084
54918e2b
GM
4085 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
4086 of selective display off while searching for the next line start.
4087
03ed0806
KH
40882000-10-17 Kenichi Handa <handa@etl.go.jp>
4089
4090 * Makefile.in (term.o): Depend on dispextern.h.
4091
7e05cdaf
SM
40922000-10-16 Stefan Monnier <monnier@cs.yale.edu>
4093
4094 * keymap.c (keymap_memberp): Ensure that nil is not a member.
4095
a6801fd1
GM
40962000-10-16 Gerd Moellmann <gerd@gnu.org>
4097
483de32b
GM
4098 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
4099 the iterator at the beginning, so that they can be set later on,
4100 for instance in reseat_at_next_visible_line_start, without being
4101 overwritten.
4102
a6801fd1
GM
4103 * xfns.c (pbm_format): Add :foreground and :background keywords.
4104 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
483de32b 4105 (xbm_load): Recognize foreground and background color
a6801fd1
GM
4106 specifications.
4107
dbf1fcc1
EZ
41082000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
4109
4110 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
4111
4112 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern
4113 declaration.
4114
4115 * msdos.c (IT_set_face): Compare highlighted face with the default
4116 face, and invert colors if these faces' colors are identical.
4117 (Fmsdos_remember_default_colors): Don't swap foreground and
4118 background colors in initial_colors[].
4119 (IT_set_frame_parameters): Don't swap frame's foreground and
4120 background pixels. If ALIST includes "(reverse . t)", swap
4121 foreground-color and background-color properties in frame's
4122 param_alist. If the original frame's param_alist doesn't specify
4123 the colors, store unspecified-fg and unspecified-bg, reversed if
4124 required.
4125
4126 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
4127 the colors are unspecified and reversed, reverse fore- and back-
4128 ground in the returned value.
4129 (Fframe_parameter): Ditto.
4130
b41fe2c3
GM
41312000-10-16 Gerd Moellmann <gerd@gnu.org>
4132
3a6b59d9
GM
4133 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
4134 get_last_unchanged_at_beg_row.
4135 (find_first_unchanged_at_end_row): Renamed from
4136 get_first_unchanged_at_end_row.
4137 (find_first_unchanged_at_end_row): Convert assertions to
4138 unconditional tests which abort. When looking for a row in
4139 unchanged text, don't go further back than first_text_row.
4140
b41fe2c3
GM
4141 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
4142 Don't add in the last line's height when deciding if the new
4143 position is below the scroll margin.
9d1af64f 4144
b41fe2c3 41452000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
4146
4147 * editfns.c (Fconstrain_to_field): Check carefully for field
4148 boundaries if either OLD_POS or NEW_POS has a non-nil field
4149 property, even if they're the same.
4150
c412cb7b
KH
41512000-10-16 Kenichi Handa <handa@etl.go.jp>
4152
4153 * xterm.c (x_draw_box_rect): Fix the calculation of width and
4154 height for XFillRectangle.
4155
5586f3eb
SM
41562000-10-15 Stefan Monnier <monnier@cs.yale.edu>
4157
4158 * syntax.c (Fstring_to_syntax): New function extracted from
4159 Fmodify_syntax_entry.
4160 (Fmodify_syntax_entry): Use it and document the ! and | fences.
4161 (skip_chars, Fforward_comment): Remove unused variables.
4162 (syms_of_syntax): Add defsubr for string-to-syntax.
4163 (describe_syntax): Add code for comment and string fences.
4164
db785038
SM
41652000-10-14 Stefan Monnier <monnier@cs.yale.edu>
4166
4167 * keymap.c (access_keymap): Add AUTOLOAD parameter.
4168 Do the meta->esc mapping. Call get_keyelt before returning.
4169 Start scanning from the second element (the first is always `keymap')
4170 to make it easier to detect when we reach a parent map.
4171 Handle the case of inheriting from a symbol whose function is a map.
4172 (Fkeymap_parent): Also handle the `inherit from symbol' case.
4173 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
4174 (get_keyelt, Flookup_key): Update call to access_keymap.
4175 Remove the meta->esc mappings.
4176 (define_as_prefix): Delete old disabled code.
4177 (menu_item_p): New function.
4178 (where_is_internal_1): Skip over the few remaining menu items.
4179 * lisp.h (access_keymap): Update prototype.
4180 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
4181 Update call to access_keymap.
4182 (follow_key, read_key_sequence): Update calls to access_keymap.
4183 Remove the meta->esc mappings.
4184
cafafe0b
GM
41852000-10-13 Gerd Moellmann <gerd@gnu.org>
4186
a2e2a7f6
GM
4187 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
4188 with additional argument.
4189
cafafe0b
GM
4190 * xdisp.c (cursor_row_p): New function.
4191 (try_cursor_movement, display_line): Use it.
4192
4193 * xdisp.c (append_space): Also save/restore iterator's current
4194 character and its length.
4195
4196 * xdisp.c (init_from_display_pos): Add an assertion.
4197 (handle_stop): Don't set iterator's add_overlay_start.
4198 (handle_invisible_prop): Likewise.
4199 (load_overlay_strings): If text under an overlay is invisible,
4200 take both before- and after-strings into account when the iterator
4201 is positioned either at the start or at the end of the overlay.
4202 (forward_to_next_line_start): Rewritten.
4203 (reseat_at_next_visible_line_start): Rewritten.
4204 (set_iterator_to_next): Add parameter RESEAT_P.
4205
4206 * dispextern.h (struct it): Remove member add_overlay_start.
4207 (set_iterator_to_next): Change prototype.
4208
c744452b
KH
42092000-10-13 Kenichi Handa <handa@etl.go.jp>
4210
4211 * coding.c (code_convert_region): Be sure to initialize
4212 coding->category_idx.
e4a3f4e1
KH
4213 (decode_coding_string): Set coding->src_multibyte and
4214 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
4215 (encode_coding_string): Set coding->src_multibyte and
4216 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 4217
321fd26f
SM
42182000-10-12 Stefan Monnier <monnier@cs.yale.edu>
4219
4220 * xfns.c (Fx_create_frame): Don't bother calling
4221 face-set-after-frame-default since the caller does it for us anyway.
4222
76832439
EZ
42232000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
4224
4225 * window.c (coordinates_in_window): Fix detection of vertical line
4226 on character terminals.
4227
2483cf58
GM
42282000-10-12 Gerd Moellmann <gerd@gnu.org>
4229
4230 * editfns.c (save_excursion_save): Additionally record the
4231 selected window.
4232 (save_excursion_restore): If buffer was visible in a window, and a
4233 different window was selected, and the old selected window is
4234 still live, restore point in that window.
4235
eb991b25
KH
42362000-10-12 Kenichi Handa <handa@etl.go.jp>
4237
8a0eba09
KH
4238 * xterm.c (x_produce_glyphs): Handle
4239 unibyte_display_via_language_environment correctly.
4240
20401fcc
KH
4241 * regex.c (regex_compile): Change the way of handling a range from
4242 unibyte char to multibyte char.
4243
4244 * syntax.c (skip_chars): Change the way of handling a range from
4245 unibyte char to multibyte char.
4246
eb991b25
KH
4247 * process.c (read_process_output): Cancel previous change.
4248
365dd325
EZ
42492000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
4250
c1b096cb
EZ
4251 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
4252
365dd325
EZ
4253 * charset.c (Ffind_charset_string): Doc fix.
4254 (Ffind_charset_region): Doc fix.
4255
eb483c2b
KH
42562000-10-11 Kenichi Handa <handa@mule.m17n.org>
4257
4258 * process.c (read_process_output): Fix previous change. Adjust
4259 multibyteness of text to insert in a buffer by
df3c11b9 4260 string_make_unibyte/multibyte instead of
eb483c2b
KH
4261 Fstring_as_unibyte/multibyte.
4262
b40bfb99
AS
42632000-10-10 Andreas Schwab <schwab@suse.de>
4264
4265 * alloc.c (mark_object): Remove all workarounds installed on
4266 1993-08-08.
4267
caff31d4
KH
42682000-10-10 Kenichi Handa <handa@etl.go.jp>
4269
4270 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before
4271 returning.
4272 (base64_encode_1): Make it work for a text of multibyte form.
4273 (Fbase64_decode_region): Allocate sufficient memory for multibyte
4274 case. Don't call str_to_multibyte because base64_decode_1
4275 produces correct multibyte form for eight-bit codes.
4276 (Fbase64_decode_string): Adjusted for the change of
4277 base64_decode_1.
4278 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
4279 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
4280 codes.
4281
4282 * charset.h (CHAR_STRING): Optimized for single byte characters.
4283
cba026ef
AS
42842000-10-09 Andreas Schwab <schwab@suse.de>
4285
4286 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
4287 -1 after socket is closed, to fall through to error processing.
4288
1e21fe48
EZ
42892000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
4290
4291 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 4292 variables. If ALIST includes foreground-color or
1e21fe48
EZ
4293 background-color, change also the colors of the default face for
4294 this frame.
4295
a640322e
EZ
42962000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
4297
4298 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
4299 them extern (they are defined on xfaces.c).
4300 (syms_of_msdos): Don't intern and don't staticpro
4301 Qbackground_color and Qforeground_color.
4302
a115794c
EZ
43032000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
4304
4305 * frame.c (Fframe_parameter): For non-windowed frames, if
4306 f->param_alist says foreground or background color is unspecified,
4307 call tty_color_name to return the color name computed from the
4308 frame's current colors.
4309
f5533b63
DL
43102000-10-06 Dave Love <fx@gnu.org>
4311
4312 * terminfo.c (ospeed): Don't declare.
4313
4314 * sysdep.c: Don't include string.h.
4315 (h_errno): Declare conditional also on TRY_AGAIN.
4316
4317 * charset.c (Ffind_charset_string): Doc fix.
4318
4319 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
4320 (Fbase64_decode_region, Fbase64_decode_string): More explicit
4321 error messages.
4322
2b06561a
DL
43232000-10-05 Dave Love <fx@gnu.org>
4324
4325 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
4326 position like menu-bar.
4327
ca839c85
GM
43282000-10-05 Gerd Moellmann <gerd@gnu.org>
4329
4330 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
4331
4332 * xdisp.c (handle_single_display_prop): Use safe_call1.
4333 (safe_call): Renamed from call_function.
4334 (safe_call1): New function.
4335 (handle_fontified_prop): Use safe_call1 instead of call1.
4336 (safe_eval): Renamed from eval_form.
4337 (safe_eval_handler): Renamed from eval_handler.
4338 (handle_single_display_prop, display_mode_element): Use safe_eval
4339 instead of eval_form.
4340
4341 * xfaces.c (merge_face_heights): Use safe_call instead of
4342 call_function.
4343
4344 * keyboard.c (show_help_echo): Use safe_call instead of
4345 call_function; use safe_eval instead of eval_form.
4346
4347 * lisp.h (safe_call): Renamed from call_function.
4348 (safe_eval): Renamed from eval_form.
4349 (safe_call1): Add prototype.
4350
a3489ece
MB
43512000-10-05 Miles Bader <miles@lsi.nec.co.jp>
4352
4353 * xfns.c (image_ascent): Rearrange ascent calculation for the
4354 has-a-font case.
4355
35810b6f
SM
43562000-10-04 Stefan Monnier <monnier@cs.yale.edu>
4357
4358 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
4359 (where_is_internal_1): Don't bother ignoring menu-items any more.
4360
3dc78168
GM
43612000-10-04 Gerd Moellmann <gerd@gnu.org>
4362
4363 * keyboard.c (update_menu_bindings): New variable.
4364 (parse_menu_item): Use AREF. If update_menu_bindings
4365 is 0, don't update menu bindings.
4366 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
4367
1efc2bb9
EZ
43682000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
4369
4370 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
4371 to `mark_object'.
4372
3f679f55
SM
43732000-10-02 Stefan Monnier <monnier@cs.yale.edu>
4374
4375 * syntax.c (forw_comment): Match nestedness of ender/starter.
4376 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
4377 (prev_char_comstart_first): Remove.
4378 (back_comment): Check two-char comment markers more carefully
4379 to better handle overlapping cases like *//* or /* */* */ ...
4380 Match nestedness of ender/starter.
4381
2021ab61
DL
43822000-10-02 Dave Love <fx@gnu.org>
4383
4384 * config.in (HAVE_GAI_STRERROR): Add undef.
4385
4386 * process.c (Fopen_network_stream): Use it.
4387
4388 * m/alpha.h (NO_REMAP): Don't define.
4389
64e6cc18
GM
43902000-10-02 Gerd Moellmann <gerd@gnu.org>
4391
4392 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
4393 return with a string converted to an integer or vice versa when
4394 Vmocklisp_arguments is t.
4395 (Fsignal): Likewise. The function can return for `quit'.
4396 (struct gcpro): Declare member `var' to point to a volatile
4397 Lisp_Object.
4398
4399 * eval.c (error): Prevent compiler warning.
4400
b1904cd9
SM
44012000-09-30 Stefan Monnier <monnier@cs.yale.edu>
4402
4403 * keymap.c (keymap_memberp): New function.
4404 (Fset_keymap_parent): Use it.
4405 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
4406 Use keymap_memberp to avoid creating cycles.
4407 (access_keymap): Use KEYMAPP.
4408
71c9ec51
GM
44092000-09-30 Gerd Moellmann <gerd@gnu.org>
4410
4411 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
4412 gai_strerror. Make sure xerrno is set if connect fails. Improve
4413 error recovery.
71c9ec51 4414
c70c6b58
JR
44152000-09-29 Jason Rumney <jasonr@gnu.org>
4416
4417 * w32term.c (w32_char_font_type, w32_encode_char)
4418 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
4419 (w32_bdf_per_char_metric): New function.
4420 (w32_per_char_metric): Use it.
4421 (x_draw_glyph_string_background): Always draw background for BDF
4422 glyphs.
4423
4424 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
4425 GDI object which is a scarce resource.
4426
4427 * w32bdf.c (search_file_line): Fix skipping of whitespace.
4428 (get_quoted_string): Fix limit on memchr search.
4429 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
4430 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
4431 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
4432 (get_cached_font_char, cache_char_offset): Use macro
4433 BDF_CODEPOINT_RANGE_COVER_P.
4434 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
4435 (clear_cached_bitmap_slots): New function.
4436 (GET_HEX_VALUE): G-Z, g-z are not hex.
4437 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
4438 (get_bitmap_with_cache): Use new cache implementation.
4439 (create_offscreen_bitmap): New function.
4440 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
4441
4442 * w32term.c (x_produce_glyphs): If the distance from the current
4443 position to the next tab stop is less than a canonical character
4444 width, use the tab stop after that.
4445 (x_draw_glyphs): Handle case START and END are out of bounds more
4446 carefully.
4447 (x_clear_mouse_face): Block/unblock input.
4448 (x_display_and_set_cursor): Don't show a hollow box cursor for
4449 buffers whose cursor_type is nil.
4450
fe01239f
GM
44512000-09-29 Gerd Moellmann <gerd@gnu.org>
4452
4453 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar
4454 disappears.
4455
4456 * dispextern.h (updating_frame): Declare extern.
4457
e7c52f1f
AS
44582000-09-29 Andreas Schwab <schwab@suse.de>
4459
4460 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
4461
de6e1f7c
GM
44622000-09-29 Gerd Moellmann <gerd@gnu.org>
4463
25126faa
GM
4464 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
4465 use its function definition.
4466 (tool_bar_items): Likewise.
4467
de6e1f7c
GM
4468 * lisp.h (fatal): Declare NO_RETURN.
4469
454ee39b
KH
44702000-09-29 Kenichi Handa <handa@etl.go.jp>
4471
4472 * keymap.c: Remove the line "#undef NULL".
4473
96301c5f
GM
44742000-09-28 Gerd Moellmann <gerd@gnu.org>
4475
4476 * xterm.c (x_make_frame_visible): Try harder to make the frame
4477 visible.
4478
efffeeb4
DL
44792000-09-28 Dave Love <fx@gnu.org>
4480
ecb8b666
DL
4481 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
4482
dc3cd20f
DL
4483 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
4484
4485 * .gdbinit (xreload): Note its need on GNU/Linux.
4486
efffeeb4
DL
4487 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
4488 r_alloc, r_alloc_free.
4489
8610d903
KH
44902000-09-28 Kenichi Handa <handa@etl.go.jp>
4491
4492 * syntax.c (skip_chars): Handle negation correctly.
4493
8901d1ac
GM
44942000-09-27 Gerd Moellmann <gerd@gnu.org>
4495
6f22f1ad
GM
4496 * xfaces.c (realize_default_face): Call set_lface_from_font_name
4497 with non-zero FORCE_P argument.
4498
8901d1ac
GM
4499 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
4500 Add assertions.
4501
4502 * xdisp.c (window_box_height): Add an assertion.
4503
4504 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
4505 tool-bar than is available.
4506 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
4507
36f1966f
DL
45082000-09-27 Dave Love <fx@gnu.org>
4509
efffeeb4 4510 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 4511
31d929e5
GM
45122000-09-26 Gerd Moellmann <gerd@gnu.org>
4513
c98863bf
GM
4514 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
4515 instead of BITS_PER_INT.
4516 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
4517 EMACS_UINT, respectively.
4518 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
4519
4520 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
4521
4522 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
4523
77072ab1
GM
4524 * window.c (freeze_window_starts): Construct last argument for
4525 foreach_window differently.
4526
4527 * xfns.c (x_decode_color): Don't return a Lisp_Object.
4528
4529 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
4530 EMACS_UINT instead of `int' and `unsigned int'.
4531 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
4532
4533 * frame.h (struct frame): Make the `nothing' member of union
4534 output_data an EMACS_INT.
4535
31d929e5
GM
4536 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug
4537 hunting.
4538 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
4539 size in the sdata structure.
4540 (SDATA_NBYTES, SDATA_DATA): New macros.
4541 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
4542 differently for the different layout of the sdata structure.
4543 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
4544 in sdata.
4545 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
4546 Check that size recorded in the string size and size recorded in
4547 the sdata structure agree.
4548
3e60b029
DL
45492000-09-25 Dave Love <fx@gnu.org>
4550
4551 * buffer.c: Include stdio.h.
4552
4553 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
4554
4555 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
4556
4557 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
4558 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as
4559 size_t.
4560 (__malloc_extra_blocks): Declare as __malloc_size_t.
4561
8ff16b4e
GM
45622000-09-25 Gerd Moellmann <gerd@gnu.org>
4563
755a2ccd
GM
4564 * alloc.c (mark_image): Use GC_NILP instead of NILP.
4565
d8b4516f
GM
4566 * keyboard.c (show_help_echo): Set help_echo_showing_p.
4567 (read_char): If help-echo is showing, preserve the echo area
4568 when redisplaying.
4569
4570 * xdisp.c (help_echo_showing_p): New variable.
4571 (set_message): Reset it to 0.
4572 (init_xdisp): Initialize help_echo_showing_p.
4573
4574 * dispextern.h (help_echo_showing_p): Declare extern.
4575
4576 * config.in: Fix typo in __GNUC_MINOR__.
4577
4578 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
4579
b11af2dd
GM
4580 * s/freebsd.h (POSIX_SIGNALS): Define.
4581
8ff16b4e
GM
4582 * xterm.c (x_clear_mouse_face): Block/unblock input.
4583
844eb643
DL
45842000-09-24 Dave Love <fx@gnu.org>
4585
4586 * fns.c (base64_encode_1): Fix last change.
4587
b30ab1b3
GM
45882000-09-22 Gerd Moellmann <gerd@gnu.org>
4589
4590 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
4591
4592 * xdisp.c (try_window_reusing_current_matrix): More fixes
4593 for the case window has a header-line.
4594
c6cbe5f0
DL
45952000-09-22 Dave Love <fx@gnu.org>
4596
4c7c1f3f
DL
4597 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
4598 a doc string.
4599
4600 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
4601
c6cbe5f0
DL
4602 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
4603
550a625e
GM
46042000-09-21 Gerd Moellmann <gerd@gnu.org>
4605
4c7c1f3f 4606 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
4607 for GCC >= 2.5.
4608
4609 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error): Declare
4610 NO_RETURN.
4611
80d26f99
GM
4612 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
4613 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
4614 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
4615 warnings.
4616
4617 * marker.c (byte_char_debug_check): Return void.
4618
623a0aae
GM
4619 * xfns.c (Fx_create_frame): Set default frame parameter value
4620 for tool-bar-lines to 1.
4621
4622 * dispnew.c (scrolling_window): Compare y-positions of rows
4623 equal at the start. Some simplification.
4624
4625 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
4626 reused rows' y-position in the case window has a header-line, and
4627 new window start is greater than old window start.
4628
42ac0ae5
GM
4629 * process.c (process_sent_to): New variable.
4630 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
4631 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
4632 Declare more parameters volatile.
4633
550a625e
GM
4634 * lread.c (Vrecursive_load_depth_limit): New variable.
4635 (Fload): Check recursive loads whose recursion depth exceeds
4636 Vrecursive_load_depth_limit.
4637 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
4638
8320414c
GM
46392000-09-20 Gerd Moellmann <gerd@gnu.org>
4640
f46c275e
GM
4641 * fileio.c (Fread_file_name): Doc fix.
4642
4643 * editfns.c (Fmessage_or_box): Doc fix.
4644
4645 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
4646
b7e11c5b
GM
4647 * xfns.c (xbm_scan): Allow C-style comments.
4648
8320414c
GM
4649 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
4650 symbols are specified, add color translations to the cache.
4651 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New
4652 functions.
4653 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
4654 xpm_cache_color.
4655 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
4656 structures to xpm_init_color_cache.
4657
da1608d9
GM
46582000-09-19 Gerd Moellmann <gerd@gnu.org>
4659
4660 * dispnew.c (update_window_line): Make sure to always draw
4661 mode-lines.
4662
6badfa25
AI
46632000-09-19 Andrew Innes <andrewi@gnu.org>
4664
4665 * makefile.nt (bootstrap-emacs): Don't change directory.
4666
3a5f42bb
KH
46672000-09-19 Kenichi Handa <handa@etl.go.jp>
4668
1b7649bd
KH
4669 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
4670
3a5f42bb
KH
4671 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
4672 If output buffer is too small, signal an appropriated error.
4673
9f83cf0b
DL
46742000-09-18 Dave Love <fx@gnu.org>
4675
4676 * keyboard.c (menu_bar_items, tool_bar_items)
4677 (current_active_maps): Remove redundant get_local_map call.
4678
28c7826c
GM
46792000-09-18 Gerd Moellmann <gerd@gnu.org>
4680
5cefa566
GM
4681 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
4682 cursor for buffers whose cursor_type is nil.
4683
6fed3546
GM
4684 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
4685 a feature to implement that is already implemented.
4686 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
4687 warnings.
4688
4689 * xfns.c (x_clear_image_1): New function.
4690 (x_clear_image): Use it.
4691 (x_from_xcolors): Use x_clear_image_1; don't free the image's
4692 mask.
4693
05b1f851
GM
4694 * dispnew.c (update_window): Move test for invisible lines
4695 at the top to update_window_line.
4696 (update_window_line): Handle invisible lines here.
4697
f4779de9
GM
4698 * xfns.c (clear_image_cache): Clear current matrices of all
4699 frames sharing an image cache. Block input while freeing
4700 images. Fix timestamp comparison.
4701 (x_clear_image): Also free the mask.
4702
28c7826c
GM
4703 * xfns.c (lookup_image): Block input while loading the image so
4704 that we won't get interrupted in a state where the image isn't yet
4705 set up completely.
4706 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
4707 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
4708 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
4709 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock
4710 input.
4711
b7412313
GM
47122000-09-16 Gerd Moellmann <gerd@gnu.org>
4713
4714 * dispnew.c (update_window): Make sure to make desired rows
4715 current even if they are completely invisible at the top
4716 of a window.
4717
47e351a3
GM
47182000-09-15 Gerd Moellmann <gerd@gnu.org>
4719
7f8f1edc
GM
4720 * xfns.c (lookup_image): Build mask before applying an algorithm.
4721 Recognize algorithm `disabled'.
4722 (cross_disabled_images): New variable.
4723 (COLOR_INTENSITY): New macro.
4724 (x_detect_edges): Use COLOR_INTENSITY.
4725 (x_disable_image): New function.
4726 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
4727
4728 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
4729 disabled state, don't apply an image transformation algorithm if
4730 the user specified an image for the disabled state. Use
28c7826c 4731 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
4732 user hasn't specified an image.
4733
ebb8f116
GM
4734 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
4735 allocation functions with the XPM lib.
4736 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
4737 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
4738 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
4739 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
4740 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New
4741 functions.
4742 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
4743 functions, if possible, because these handle color allocation
4744 failure more gracefully.
4745 (Fimage_mask_p): New function.
4746
47e351a3
GM
4747 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
4748 (Qedge_detection, Qheuristic): New symbols.
4749 (syms_of_xfns): Initialize new symbols.
4750 (lookup_image): Handle `:mask X', `:algorithm emboss', and
4751 `algorithm (edge-detection ...)'.
4752 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
4753 (tiff_format, gif_format, gs_format): Add `:mask'.
4754 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
4755 (GIF_MASK, GS_MASK): New enumerators.
4756 (x_laplace_read_row, x_laplace_write_row): Functions removed.
4757 (emboss_matrix, laplace_matrix): New variables.
4758 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
4759 (x_edge_detection): New functions.
4760 (x_laplace): Rewritten in terms of x_detect_edges.
4761 (x_build_heuristic_mask): If image has a mask, free it.
4762
fe83b953
AI
47632000-09-14 Andrew Innes <andrewi@gnu.org>
4764
4765 * makefile.w32-in: Revert to Unix line endings.
4766
3021e816
AI
47672000-09-14 Andrew Innes <andrewi@gnu.org>
4768
4769 * makefile.w32-in: Standardize indentation somewhat.
4770 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
4771 cater for differences between shells.
4772
4773 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
4774
2a32b5ea
GM
47752000-09-14 Gerd Moellmann <gerd@gnu.org>
4776
4777 * xterm.c (x_produce_glyphs): If the distance from the current
4778 position to the next tab stop is less than a canonical character
4779 width, use the tab stop after that.
4780
b4331e96
DL
47812000-09-14 Dave Love <fx@gnu.org>
4782
4783 * buffer.c (alloc_buffer_text): Fix xmalloc call.
4784
ef9e4345
GM
47852000-09-14 Gerd Moellmann <gerd@gnu.org>
4786
085536c2
GM
4787 * xdisp.c (handle_fontified_prop): While running fontification
4788 functions, bind `fontification-functions' and
4789 `after-change-functions' to nil.
4790
ef9e4345
GM
4791 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
4792 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
4793
4794 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
4795
4796 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
4797 USE_MMAP_FOR_BUFFERS.
4798
4799 * insdel.c (make_gap): Use enlarge_buffer_text.
4800
4801 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
4802 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
4803 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
4804 from former r_alloc_* functions in ralloc.c.
4805 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New
4806 variables.
4807 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
4808 (mmap_init) [REL_ALLOC_MMAP]: New function.
4809 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
4810 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
4811 BUFFER_FREE.
4812
4813 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
4814 (enlarge_buffer_text): Add prototype.
4815
4816 * ralloc.c: Remove everything having to do with the use of mmap.
4817
f8608968
GM
48182000-09-13 Gerd Moellmann <gerd@gnu.org>
4819
2a494b2d
GM
4820 * sound.c (Fplay_sound): Doc fix.
4821
8c907a56
GM
4822 * keyboard.c: Avoid some more compiler warnings.
4823 (parse_tool_bar_item): Ignore cached key bindings.
4824
f8608968
GM
4825 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
4826 and allocation of Lisp data.
4827
6ab70e9a
GM
48282000-09-12 Gerd Moellmann <gerd@gnu.org>
4829
d12d0a9b
GM
4830 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
4831 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
4832 defaults first.
4833
6ab70e9a
GM
4834 * lread.c (Fload): Put code checking for recursive loads in #if 0.
4835
63c36c3c
KH
48362000-09-12 Miyashita Hisashi <himi@meadowy.org>
4837
4838 * ccl.c: Comment fixed.
4839 (MAX_MAP_SET_LEVEL): Increased to 30.
4840 (PUSH_MAPPING_STACK): Enclose with do-while block.
4841 (POP_MAPPING_STACK): Likewise.
4842 (stack_idx_of_map_multiple): New variable.
4843 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
4844 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
4845 call the corresponding CCL program by
4846 CCL_CALL_FOR_MAP_INSTRUCTION.
4847 (ccl_driver) <CCL_MapSingle>: Likewise.
4848 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
4849 with the case where looking up process reaches to the end of
4850 map-set, and call CCL programs as the above change.
4851
7ee3bd7b
GM
48522000-09-11 Gerd Moellmann <gerd@gnu.org>
4853
8ec8a5ec
GM
4854 * xfns.c (png_load, jpeg_load): Declare some variables volatile
4855 that might be clobbered by longjmp.
4856 (check_x_display_info, x_decode_color, create_frame_xic)
4857 (Fx_display_backing_store, Fx_display_visual_class)
4858 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler
4859 warnings.
4860
f74b0705
GM
4861 * lread.c (init_lread): Set Vloads_in_progress to nil.
4862 (Fload): Show list of recursively loaded files, when signaling an
4863 error.
4864
7ee3bd7b
GM
4865 * lread.c (Vloads_in_progress): New variable.
4866 (record_load_unwind): New function.
4867 (Fload): Check for recursive loads.
4868 (syms_of_lread): Initialize Vloads_in_progress.
4869 (read_integer, read1): Avoid some compiler warnings.
4870
4871 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
4872 compiler warnings.
4873
974e1e5b
MB
48742000-09-11 Miles Bader <miles@gnu.org>
4875
4876 * editfns.c (Fbuffer_string): Doc fix.
4877
9824c4e3
GM
48782000-09-10 Gerd Moellmann <gerd@gnu.org>
4879
4880 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
4881
6a72fdd1
KR
48822000-09-09 Ken Raeburn <raeburn@gnu.org>
4883
4884 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
4885 whether to include other header files.
4886
28e6fb66
GM
48872000-09-09 Gerd Moellmann <gerd@gnu.org>
4888
4889 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 4890 by Fmemq as a boolean.
28e6fb66 4891
7f8b6551
SM
48922000-09-08 Stefan Monnier <monnier@cs.yale.edu>
4893
4894 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
4895
a8710abf
GM
48962000-09-08 Gerd Moellmann <gerd@gnu.org>
4897
d1a02881
GM
4898 * ralloc.c (mmap_fd): Remove initializer which can make it
4899 read-only in a dumped Emacs.
4900 (mmap_fd_1): New variable.
4901 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
4902 restore it from there.
4903 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
4904 unconditionally so that mmap_fd can be initialized there.
4905 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
4906 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
4907 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
4908
c454aac1
GM
4909 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
4910
4911 * xdisp.c (dump_glyph_row): Fix printf format string.
4912 (display_line, move_it_in_display_line_to): Avoid compiler
4913 warnings.
4914
fc653ef2
GM
4915 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
4916
3015eec0
GM
4917 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
4918 inheritance.
4919
bfe0ee88
GM
4920 * xdisp.c (try_window_id): When trying to locate cursor in
4921 unchanged rows at the top, handle the case that we can't find it.
4922
a8710abf
GM
4923 * xterm.c (x_draw_glyphs): Handle case START and END are out
4924 of bounds more carefully.
4925
6b7d4ae4
DL
49262000-09-08 Dave Love <fx@gnu.org>
4927
423193c5
DL
4928 * s/sol2.h (REL_ALLOC_MMAP): Define.
4929 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
4930
4931 * ralloc.c: Don't include string.h (redundant).
4932 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
4933 [!MAP_ANON]: Include fcntl.h.
4934 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
4935 (r_alloc, r_re_alloc, r_alloc_free)
4936 (mmap_enlarge, mmap_set_vars): Use it.
4937 (r_alloc_init_fd): New function.
4938 (__morecore) [SYSTEM_MALLOC]: Don't declare.
4939 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
4940 malloc type.
4941
4942 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
4943 Remove vm-limit.o.
4944
6b7d4ae4
DL
4945 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
4946 change to __NetBSD__.
4947
44d31981
KH
49482000-09-08 Kenichi Handa <handa@etl.go.jp>
4949
4950 * search.c (compile_pattern): Check the multibyteness of cached
4951 string and PATTERN.
4952
aad40737
MB
49532000-09-08 Miles Bader <miles@gnu.org>
4954
4955 * xfaces.c (default_face_vector): Function removed.
4956 (Finternal_merge_in_global_face): Restore old global/local
4957 attribute override order. Use inline loop instead of calling
4958 default_face_vector.
4959
91a211b5
GM
49602000-09-07 Gerd Moellmann <gerd@gnu.org>
4961
4962 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
4963 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
4964 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
4965 where necessary, in case POINTER_TYPE is `void'.
4966
03419440
EZ
49672000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
4968
4969 * frame.c (make_terminal_frame): Initialize frame foreground and
4970 background colors to unspecified, for the initial instance of an
4971 MSDOS frame.
4972
f46f845b
GM
49732000-09-07 Gerd Moellmann <gerd@gnu.org>
4974
24f76fbf
GM
4975 * ralloc.c (mmap_find): Fix overlap computation.
4976 (mmap_enlarge): Compute nbytes before trying to find an
4977 overlapping region.
4978
f46f845b
GM
4979 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
4980 instead of `!='.
4981
4982 * lread.c (syms_of_lread): Change value of regexp
4983 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
4984
4985 * xmenu.c (xdialog_show): When looking up the selection in
4986 menu_items, take `quote' boundaries into account; this corresponds
4987 to a nil ITEM in x-popup-dialog.
4988
3c014385
KH
49892000-09-07 Kenichi Handa <handa@etl.go.jp>
4990
fd6f711b
KH
4991 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
4992 not 0x81.
4993 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
4994
3c014385 4995 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
4996 encoding, not decoding. Fix the handling of latin-jisx0201.
4997 Check for the charset katakana-jisx0201 too.
3c014385 4998 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 4999 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 5000
0da3ecef
GM
50012000-09-07 Gerd Moellmann <gerd@gnu.org>
5002
ab0ee409
GM
5003 * xfaces.c (Vparam_value_alist): New variable.
5004 (syms_of_xfaces): Initialize it.
5005 (Finternal_set_lisp_face_attribute): Avoid more consing.
5006
5007 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
5008 specially.
5009 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
5010 (Qbackground_mode): New variable.
5011 (syms_of_frame_1): Initialize Qbackground_mode.
5012
5013 * lisp.h (Qdisplay): Declare extern.
1091dd67 5014
0da3ecef
GM
5015 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
5016 change face on all frames, and change the default for new frames.
5017
b14654b9
DL
50182000-09-07 Dave Love <fx@gnu.org>
5019
5020 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
5021
d24fd56f
KH
50222000-09-07 Kenichi Handa <handa@etl.go.jp>
5023
794f3670
KH
5024 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
5025
0fddd0dc
KH
5026 * charset.c: Include composite.h
5027 (lisp_string_width): New function.
5028 (Fstring_width): Call lisp_string_width instead of strwidth.
5029
5030 * Makefile.in (charset.o): Depends on composite.h.
5031
d24fd56f
KH
5032 * process.c (read_process_output): Before inserting the decoded
5033 text in the buffer, adjust the multibyteness.
5034
fa0b693c
GM
50352000-09-06 Gerd Moellmann <gerd@gnu.org>
5036
73b77ee5
GM
5037 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
5038 buffer's text buffer is null, map new memory.
5039
0a58f946
GM
5040 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
5041 POINTER_TYPE and size_t.
5042 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
5043 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
5044 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
5045 [REL_ALLOC_MMAP]: New macros.
5046 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
5047 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
5048 [REL_ALLOC_MMAP]: New functions.
5049
5050 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
5051 before and after unexec.
5052
5053 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
5054 text buffers if necessary.
5055
5056 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
5057 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
5058 in prototypes.
5059
fa0b693c
GM
5060 * config.in (HAVE_MMAP): Add #undef.
5061
877055f6
GM
50622000-09-05 Gerd Moellmann <gerd@gnu.org>
5063
08ba3862
GM
5064 * frame.c (Qdisplay_type): New variable.
5065 (syms_of_frame_1): Initialize it.
5066 (Fframe_parameter): New function that avoids consing.
5067 (syms_of_frame): Defsubr it.
5068
66ffe51c
GM
5069 * buffer.c (Fother_buffer): Consider buffers as invisible when
5070 they are displayed in a window on an invisible frame.
5071
877055f6
GM
5072 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
5073 get-largest-window always return nil.
5074
bb970e67
GM
50752000-09-04 Gerd Moellmann <gerd@gnu.org>
5076
5077 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
5078 variable; recognize Emacs 19 elc files.
5079
7a3d0e0e
MB
50802000-09-04 Miles Bader <miles@gnu.org>
5081
5082 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
5083 before initially popping up the menu, so the menu doesn't flash
5084 when the face settings are significantly different from the
5085 defaults.
5086
14473664
SM
50872000-09-04 Stefan Monnier <monnier@cs.yale.edu>
5088
5089 * regex.c (WIDE_CHAR_SUPPORT): New macro.
5090 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
5091 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
5092 (BIT_UNIBYTE): Remove.
5093 (re_match_2_internal): Delete corresponding code and streamline the
5094 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
5095 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
5096 (re_wctype_t): New type.
5097 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
5098 (regex_compile): Use them and fix handling of overly long char classes.
5099
c1174479
AI
51002000-09-03 Andrew Innes <andrewi@gnu.org>
5101
f8803e97
AI
5102 * makefile.w32-in: Change to DOS line endings.
5103
c1174479
AI
5104 * s/ms-w32.h (ORDINARY_LINK): New define.
5105
5106 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
5107 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
5108
5109 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
5110 (distclean): Delete them here instead.
5111
44ef7cf6
AI
5112 * w32proc.c (compare_env): Convert to uppercase for comparison,
5113 not lowercase, to match how the native Windows shell works.
5114
49b3bd82
JR
51152000-09-03 Jason Rumney <jasonr@gnu.org>
5116
5117 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
5118 CVS changes the line-ends when checking in/out on DOS/Windows.
5119
5120 * makefile.nt (emacs): Do not change directory to run temacs, as
5121 the load-path is set relative to current directory.
5122
a3d35a39
MB
51232000-09-03 Miles Bader <miles@gnu.org>
5124
5125 * xterm.c (x_alloc_lighter_color_for_widget): New function.
5126
d276b0cf
GM
51272000-09-02 Gerd Moellmann <gerd@gnu.org>
5128
715e84c9
GM
5129 * xdisp.c (redisplay_mode_lines): New function.
5130 (display_mode_lines): Return number of mode lines displayed.
5131 (echo_area_display): Use redisplay_mode_lines to draw garbaged
5132 mode lines. Don't temporarily bind redisplay-dont-pause to t.
5133
8892f40b
GM
5134 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
5135 string.h and strings.h.
5136 (index) [HAVE_INDEX]: Add prototype.
5137
d276b0cf
GM
5138 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
5139 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
5140
5141 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
5142 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
5143
38404229
GM
51442000-09-01 Gerd Moellmann <gerd@gnu.org>
5145
5146 * lread.c (read1): Accept `?' as symbol constituent, for
5147 compatiblity with XEmacs.
5148
c0f9ea08
SM
51492000-08-31 Stefan Monnier <monnier@cs.yale.edu>
5150
5151 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
5152 (struct re_pattern_buffer): Remove newline_anchor.
5153 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
5154 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
5155 (re_max_failures, fail_stack): Use size_t rather than unsigned.
5156 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
5157 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
5158 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
5159 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
5160 Get rid of references to newline_anchor.
5161 (regcomp): Allocate and precompute a fastmap.
5162
8c0f83fe
GM
51632000-08-31 Gerd Moellmann <gerd@gnu.org>
5164
5165 * lread.c (openp): GCPRO local variable `filename'.
5166
4bb91c68
SM
51672000-08-30 Stefan Monnier <monnier@cs.yale.edu>
5168
5169 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
5170
5171 * regex.c: Merge some changes from GNU libc. Add prototypes.
5172 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
5173 Use memcmp and memcpy instead of bcopy and bcmp.
5174 (init_syntax_once): Use ISALNUM.
5175 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
5176 (REG_UNSET_VALUE): Remove. Use NULL instead.
5177 (REG_UNSET, re_match_2_internal): Use NULL.
5178 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
5179 New macros.
5180 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
5181 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
5182 (regex_compile): In handle_interval, return an error rather than try to
5183 unfetch the interval if we can't find the closing brace.
5184 Obey the RE_NO_GNU_OPS syntax bit.
5185 (TOLOWER): New macro.
5186 (regcomp): Use it.
5187 (regexec): Allocate regs.start and regs.end as one block.
5188
5226a931
GM
51892000-08-30 Gerd Moellmann <gerd@gnu.org>
5190
868dd24b
GM
5191 * xdisp.c (echo_area_display): Check display_completed instead
5192 of calling detect_input_pending.
5193
5194 * dispnew.c (update_frame): Only set display_completed here; move
5195 the update_begin and update_end calls here from update_frame_1.
5196 (update_frame_1): Don't set display_completed here, don't call
5197 update_begin/update_end.
5198
5226a931
GM
5199 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
5200 instead of store_frame_param.
5201
2a8bd25f
GM
52022000-08-29 Gerd Moellmann <gerd@gnu.org>
5203
5204 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
5205 desired window matrix hasn't been displayed, use the current row
5206 instead. Make sure that only those frame rows are updated for
5207 which there exists a corresponding enabled desired row.
5208
ba3478d9
MB
52092000-08-29 Miles Bader <miles@gnu.org>
5210
5211 * xfaces.c (default_face_vector): New function.
5212 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
5213
87d0f685
GM
52142000-08-29 Gerd Moellmann <gerd@gnu.org>
5215
5216 * lread.c (openp): Prevent temporary string passed to
5217 Ffile_readable_p from being garbage collected.
5218
6fa86045
DL
52192000-08-28 Dave Love <fx@gnu.org>
5220
5221 * keymap.c (store_in_keymap): Add `static' to declaration.
5222
bb17930d
GM
52232000-08-28 Gerd Moellmann <gerd@gnu.org>
5224
5225 * emacs.c, callint.c, doc.c, editfns.c
5226 (toplevel) [HAVE_STRING_H]: Include string.h.
5227 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
5228 (index): Remove prototypes which might conflict with non-standard
5229 definitions of index/strchr.
5230
5231 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
5232 (rindex): Define only if !HAVE_RINDEX.
5233
5234 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
5235
5236 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
5237
87188200
MB
52382000-08-28 Miles Bader <miles@gnu.org>
5239
5240 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
5241 made inconsistent by a font-related attribute in FROM.
5242 (merge_face_inheritance): Add function comment.
5243
41a68aef
KH
52442000-08-28 Kenichi Handa <handa@etl.go.jp>
5245
5246 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
5247 the 4th arg (PREV_EVENT) Qt to suppress input method.
5248
f7c436c1
SM
52492000-08-27 Stefan Monnier <monnier@cs.yale.edu>
5250
0b32bf0e
SM
5251 * regex.c: Indent cpp directives and remove parens after `defined'.
5252 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
5253 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
5254 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
5255 (re_compile_pattern): Use size_t for length.
5256 (init_syntax_once): Move to a better place.
5257 * regex.h: Merge changes from GNU libc. Indent cpp directives.
5258 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
5259
f7c436c1
SM
5260 * syntax.c (back_comment): Detect cases where a comment-starter is
5261 actually inside another comment as in: /* a // b */ c // d \n.
5262 Make it clear that `comstart_pos' is unused for nested comments.
5263
5264 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
5265 (KEYMAPP): New macro.
5266 (Fkeymap_parent, Fset_keymap_parent): Use it.
5267 (fix_submap_inheritance): Mark it static.
5268 (define_as_prefix, describe_buffer_bindings, describe_command)
5269 (describe_translation, describe_map): Complete prototypes.
5270
5271 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
5272
5273 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
5274 to better match the key-lookup behavior.
5275
6288c62f
GM
52762000-08-27 Gerd Moellmann <gerd@gnu.org>
5277
5278 * xfaces.c (lface_fully_specified_p): Handle :inherit.
5279 (Finternal_set_lisp_face_attribute): Fix typo in error message.
5280
e931344e
EZ
52812000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
5282
5283 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
5284 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
5285 (xterm.o): Depend on coding.h
5286
d10dfeef
KH
52872000-08-26 Kenichi Handa <handa@etl.go.jp>
5288
5289 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
5290 the corresponding '#endif'.
5291
2d73e8d3
MB
52922000-08-26 Miles Bader <miles@gnu.org>
5293
5294 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
5295 * xfaces.c (QCinherit): New variable.
5296 (syms_of_xfaces): Initialize it.
5297 (LFACE_INHERIT): New macro.
5298 (Finternal_get_lisp_face_attribute)
5299 (merge_face_vector_with_property)
5300 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
5301 (check_lface_attrs): Allow new types of face height. Check
5302 inherit attribute.
5303 (CYCLE_CHECK): New macro.
5304 (merge_face_inheritance): New function.
5305 (merge_face_vectors): Merge inherited faces too. Add F and
5306 CYCLE_CHECK arguments.
5307 (merge_face_vector_with_property, Finternal_merge_in_global_face)
5308 (lookup_named_face, lookup_derived_face, realize_named_face)
5309 (face_at_string_position, face_at_buffer_position): Supply
5310 new F and CYCLE_CHECK arguments to merge_face_vectors.
5311 (merge_face_heights): New function.
5312 (merge_face_vectors, merge_face_vector_with_property)
5313 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
5314 handle relative face heights.
5315 (lface_same_font_attributes_p): Compare heights using EQ.
5316
6ce974d4
KH
53172000-08-26 Kenichi Handa <handa@etl.go.jp>
5318
5319 * charset.c (char_to_string): Check the character validity.
5320 (char_valid_p): If C is not less than MAX_CHAR, be sure to return
5321 0.
5322
dc1e502d
SM
53232000-08-25 Stefan Monnier <monnier@cs.yale.edu>
5324
5325 * regex.c (PUSH_FAILURE_COUNT): New macro.
5326 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
5327 Handle popping of a register's or a counter's data.
5328 (POP_FAILURE_POINT): Use the new name.
5329 (re_match_2_internal): Push counter data on the stack for succeed_n,
5330 jump_n and set_number_at and remove misleading dead code in succeed_n.
5331
bd9d0f3f
GM
53322000-08-25 Gerd Moellmann <gerd@gnu.org>
5333
5334 * xdisp.c (redisplay_internal): If considering all windows on all
5335 frames, update the display for each frame as soon as possible,
5336 instead of first building all desired matrices for all frames, and
5337 then updating them all.
5338 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
5339
aa5b8e15
GM
53402000-08-24 Gerd Moellmann <gerd@gnu.org>
5341
17494071
GM
5342 * bytecode.c (mark_byte_stack): Add a comment.
5343
aa5b8e15
GM
5344 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
5345 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
5346 a graphical frame.
5347
c543db81
KH
53482000-08-24 Kenichi Handa <handa@etl.go.jp>
5349
d246d5f5
KH
5350 * minibuf.c (do_completion): Always use compare-string, not
5351 string-equal because the latter doesn't pay attention to
5352 multibyteness of strings.
5353
c543db81
KH
5354 * process.c (create_process): Don't setup raw-text coding here.
5355 (Fopen_network_stream): Don't set coding->src_multibyte and
5356 coding->dst_multibyte here.
5357 (read_process_output): For process filter, return unibyte string
5358 if default-enable-multibyte-characters is nil.
5359 (send_process): If OBJECT is multibyte text, be sure to encoded it
5360 by the specified coding system for the process. Otherwise, setup
5361 raw-text coding.
5362 (init_process): Don't initialize default-process-coding-system
5363 here.
5364
9b47cfe0
EZ
53652000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
5366
5367 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
5368 <scroll-down-aggressively>: Likewise.
5369
f5a36960
KH
53702000-08-23 Kenichi Handa <handa@etl.go.jp>
5371
5372 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
5373 zero. Set coding->produced_char correctly.
5374
69a7ffa7
AI
53752000-08-22 Andrew Innes <andrewi@gnu.org>
5376
5377 * makefile.w32-in: New file.
5378
5379 * unexw32.c (unexec): Ignore old_name, and use the actual location
5380 of the current executable instead. Base new_name on this.
5381
5382 * w32proc.c (create_child): Remove reference to security
5383 descriptor, which isn't needed and doesn't compile with mingw32.
5384
5385 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5386 up dllimport attributes.
5387 (x_update_window_end): Update prototype.
5388
5389 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
5390 extern, which screws up dllimport attributes.
5391
5392 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5393 up dllimport attributes.
5394
5395 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
5396 screws up dllimport attributes.
5397
5398 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5399 up dllimport attributes.
5400 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
5401 screws up dllimport attributes.
5402
5403 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5404 up dllimport attributes.
5405
5406 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
5407 screws up dllimport attributes.
5408
5409 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
5410 screws up dllimport attributes.
5411
5412 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5413 up dllimport attributes.
5414
5415 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
5416 unnecessary extern, which screws up dllimport attributes.
5417 (main): Ditto.
5418
5419 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5420 up dllimport attributes.
5421
5422 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
5423 unnecessary extern, which screws up dllimport attributes.
5424
5425 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
5426 screws up dllimport attributes.
5427
5428 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5429 up dllimport attributes.
5430
5431 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
5432
5433 * w32bdf.c (search_file_line):
5434 (set_bdf_font_info):
5435 (seek_char):
5436 (w32_get_bdf_glyph):
5437 (w32_BDF_to_x_font): Fix compile warnings.
5438
5439 * w32menu.c: Include keyboard.h before frame.h. Fix compile
5440 warnings.
5441
5442 * w32select.c: Include keyboard.h before frame.h.
5443
5444 * w32fns.c (max): Define macro.
5445 (JOHAB_CHARSET): Define if not known.
5446 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
5447 (Fx_show_tip): Synch with X version.
5448
5449 * w32xfns.c: Include keyboard.h before frame.h.
5450
5451 * w32fns.c: Include keyboard.h before frame.h.
5452
5453 * w32term.c: Include keyboard.h before frame.h.
5454
5455 * fontset.c: Include keyboard.h before frame.h.
5456
5457 * w32inevt.c: Include keyboard.h before frame.h.
5458 (MOUSE_MOVED): Define if not known.
5459
5460 * minibuf.c: Include keyboard.h before frame.h.
5461
5462 * keyboard.c: Include keyboard.h before frame.h.
5463
5464 * indent.c: Include keyboard.h before frame.h.
5465
5466 * dispnew.c: Include keyboard.h before frame.h.
5467
5468 * buffer.c: Include keyboard.h before frame.h.
5469
5470 * alloc.c: Include keyboard.h before frame.h.
5471
5472 * print.c: Include keyboard.h before frame.h.
5473
5474 * process.c: Include keyboard.h before frame.h.
5475
5476 * scroll.c: Include keyboard.h before frame.h.
5477
5478 * sysdep.c: Include keyboard.h before frame.h.
5479
5480 * term.c: Include keyboard.h before frame.h.
5481
5482 * window.c: Include keyboard.h before frame.h.
5483
5484 * xdisp.c: Include keyboard.h before frame.h.
5485 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
5486
5487 * frame.c: Include keyboard.h before frame.h.
5488
5489 * w32heap.h: Undefine min, max.
5490
5491 * w32gui.h: Undefine min, max.
5492
5493 * unexw32.c: Change PUCHAR to PCHAR.
5494 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
5495 (relocate_offset):
5496 (get_section_info):
5497 (copy_executable_and_dump_data): Remove unnecessary static defs.
5498 (copy_executable_and_dump_data): Fix compile warnings.
5499
5500 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
5501
5502 * w32console.c (min): Define macro.
5503 (clear_frame, write_glyphs): Fix compile warning.
5504
5505 * w32proc.c (compare_env):
5506 (find_child_console): Fix compile warning.
5507
5508 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
5509 sys_errlist instead of _sys_errlist.
5510 (get_emacs_configuration_options): New function.
5511
5512 * s/ms-w32.h (sys_nerr): Provide default definition.
5513 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
5514 name with _ prepended.
5515 (NSIG): Define if not known.
5516 (get_emacs_configuration): Provide extern declaration.
5517 (get_emacs_configuration_options): Provide extern declaration.
5518 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
5519
5520 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
5521 (map_w32_filename):
5522 (read_unc_volume): Fix compile warning.
5523
5524 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
5525 definitions from being used.
5526
5527 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
5528
5529 * w32.c (unc_volume_file_attributes):
5530 (open_unc_volume): Make arg const.
5531
5532 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
5533 (read_input_waiting): Remove excess parameter.
5534
5535 * w32.c (init_environment): Call _access.
5536 (check_windows_init_file): Call _close.
5537 (init_user_info): Call _putenv.
5538 (init_environment): Call _putenv and _strdup.
5539 (init_ntproc): Reset volume info cache on startup.
5540
5541 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
5542 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
5543 cannot override the CRT malloc.
5544
5545 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
5546 (LINK_FLAGS): Append to original value of LINK_FLAGS.
5547
5548 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
5549 unless we are linking with a static CRT.
5550 (RVA_TO_PTR): Cast result to unsigned char*.
5551
5552 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
5553 (add_volume_info): Use xstrdup.
5554
25060080
SM
55552000-08-22 Stefan Monnier <monnier@cs.yale.edu>
5556
5557 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
5558 (do_completion, Fminibuffer_complete_word): Use it.
5559 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
5560 var so it can take non-boolean values.
5561
6917e6bb
GM
55622000-08-21 Gerd Moellmann <gerd@gnu.org>
5563
acb7cc89
GM
5564 * editfns.c (find_field): Formatting changes.
5565 (toplevel): Some old-style function forward declarations
5566 changed to prototypes, some new protypes added, some functions
5567 made static.
5568
5569 * lisp.h (set_time_zone_rule): Add prototype.
5570 (use_dialog_box): External declaration.
5571
0bbfdc25
GM
5572 * keyboard.c (gen_help_event): Add parameter SIZE.
5573 (kbd_buffer_events_waiting): Slightly rewritten.
5574 (clear_event): New function.
5575 (kbd_buffer_get_event): Use it, and clear the input_events of
5576 HELP_EVENTs.
5577 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
5578 don't fill the newly created array with nils.
5579 (toplevel): Convert some old-style function forward declarations
5580 to prototypes.
5581
5582 * keyboard.h (gen_help_event): Change prototype.
5583
5584 * xterm.c (XTread_socket): Change calls to gen_help_event.
5585
5586 * w32term.c (w32_read_socket): Change calls to gen_help_event.
5587
6917e6bb
GM
5588 * eval.c (Fmacroexpand): Doc fix.
5589
e5cd3d11
JR
55902000-08-20 Jason Rumney <jasonr@gnu.org>
5591
5592 * w32term.h (x_display_info_for_display): Remove as this function
5593 does not exist on W32.
5594
5595 * w32term.c (help_echo_window): New variable.
5596 (syms_of_w32term): staticpro it.
5597 (note_mode_line_highlight): Set it.
5598 (XTextExtents16): Removed as there is no equivalent on W32.
5599 (x_compute_glyph_string_overhangs): Incomplete body removed, as
5600 the X way of doing this will not work for W32.
5601 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
5602 (x_draw_image_foreground): Avoid drawing outside of the clip area
5603 when image doesn't have a mask.
5604 (note_mouse_highlight): Process overlays in the right order of
5605 priority. Set help_echo_window.
5606 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
5607 because that's more visible for large images.
5608
5609 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
5610 name to single_keymap_panes.
5611 (w32_menu_show): Set wv->title when dealing with titles.
5612 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
5613
6e69ab8c
MB
56142000-08-21 Miles Bader <miles@gnu.org>
5615
5616 * minibuf.c (do_completion): Try again if we rewrite the input
5617 string, but no completion was done, so that any completion message
5618 will be correct.
5619
511bd4eb
GM
56202000-08-20 Gerd Moellmann <gerd@gnu.org>
5621
5622 * xfaces.c (lface_equal_p): Compare strings differently.
5623 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
5624 (realize_tty_face): Use them.
5625 (syms_of_xfaces): Initialize new variables.
5626 (map_tty_color): New function, extracted from realize_tty_face.
5627 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
5628 foreground or background color, store the new color name in the
5629 realized face; previous code trying to do this had no effect.
5630 (realize_tty_face): Use map_tty_color.
5631 (Fclear_face_cache): Set face_change_count and ensure thorough
5632 redisplay.
5633
1433385f
GM
56342000-08-19 Gerd Moellmann <gerd@gnu.org>
5635
511bd4eb
GM
5636 * undo.c (record_first_change, record_marker_adjustment): Don't
5637 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 5638
419ac0a2
KH
56392000-08-18 Kenichi Handa <handa@etl.go.jp>
5640
5641 * coding.c (decode_coding_string): Set members consumed,
5642 consumed_char, produced, produced_char of *coding correctly. If
5643 decode_coding doesn't consume any byte, don't try anymore.
5644 (encode_coding_string): Likewise.
5645
7eb9e30d
GM
56462000-08-18 Gerd Moellmann <gerd@gnu.org>
5647
511bd4eb
GM
5648 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
5649 conditional have void type, for Standard C compilers.
7eb9e30d
GM
5650
5651 * xdisp.c (redisplay_internal): Compare windows for equality with
5652 EQ, instead of applying XWINDOW to something that might not
5653 be a window.
5654
dd34a735
KH
56552000-08-18 Kenichi Handa <handa@etl.go.jp>
5656
5657 * fontset.c (Finternal_char_font): Search only the selected frame
5658 for a window of the current buffer.
5659
385ff9e3
GM
56602000-08-18 Gerd Moellmann <gerd@gnu.org>
5661
511bd4eb 5662 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
5663 Lisp_Objects.
5664
385ff9e3
GM
5665 * keyboard.c (kbd_buffer_get_event): Handle the case that the
5666 second half of a HELP_EVENT is found at the start of kbd_buffer.
5667
d6abb4c7
MB
56682000-08-18 Miles Bader <miles@gnu.org>
5669
4618074a
MB
5670 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
5671
d6abb4c7
MB
5672 * editfns.c (save_restriction_save): Rewrite to use markers.
5673 (save_restriction_restore): Rewrite to understand new form of data
5674 saved by save_restriction_save.
5675 (Fsave_restriction): Remove cautionary note in doc-string.
5676
a7b28523
GM
56772000-08-17 Gerd Moellmann <gerd@gnu.org>
5678
5679 * fileio.c (build_annotations): Add a comment explaining the
5680 return value of format-annotate-function. Replace a spurious call
5681 to Flength with a CONSP test. Call format-annotate-function with
5682 a fifth arg specifying how many times the function is been called
5683 in a row, to let it choose temporary buffers appropriately.
5684
03c9ed77
DL
56852000-08-17 Dave Love <fx@gnu.org>
5686
5687 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
5688 declare make_temp_name twice.
5689
5690 * lread.c: Prototype readevalloop, load_unwind,
5691 load_descriptor_unwind.
5692 (unreadpure): Give it an arg.
5693
5694 * unexalpha.c: Prototype fatal_unexec, mark_x,
5695 update_dynamic_symbols. Declare unexec as void.
5696
5697 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
5698 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
5699
5700 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
5701 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on
5702 DOUG_LEA_MALLOC.
5703
5704 * alloca.c: Use #error.
5705 [POINTER_TYPE]: Use it.
5706
5707 * eval.c (Fdefvar): Doc fix.
5708
5709 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
5710 INITIALIZE_INTERVAL.
5711
5712 * buffer.h: Avoid DECLARE_INTERVALS.
5713
5714 * config.in: Add size_t.
5715
aae41d97
EZ
57162000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
5717
5718 * w16select.c (set_clipboard_data): If there's not enough memory
5719 to put text into clipboard, return 1, as Fw16_set_clipboard_data
5720 expects. In case of other failures, return 3.
5721 (system_error_msg): New error message.
5722 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
5723 system_error_msg.
5724
65aa5e85
GM
57252000-08-16 Gerd Moellmann <gerd@gnu.org>
5726
5727 * term.c (write_glyphs): Also turn off inverse video after turning
5728 off other appearances in case TS_exit_attribute_mode is not equal
5729 to TS_end_standout_mode.
5730 (insert_glyphs): Turn inverse video on/off for each run of glyphs
5731 with the same face.
5732 (turn_off_face): Reset standout_mode only if
5733 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
5734 is equal to TS_end_standout_mode.
5735
ece23901
KH
57362000-08-16 Kenichi Handa <handa@etl.go.jp>
5737
9d7bcb2e
KH
5738 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
5739 sequence at the end of the source block.
5740
ece23901
KH
5741 * ccl.c (Fccl_program_p): Docstring modified.
5742 (Fccl_execute): Likewise.
5743 (Fccl_execute_on_string): Likewise.
5744
5e30eaa2
EZ
57452000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
5746
5747 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
5748
290602fd
KH
57492000-08-16 Kenichi Handa <handa@etl.go.jp>
5750
5751 The following changes are mainly to fix bugs of
5752 encode/decode-coding-string failing if encoding/decoding return
5753 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
5754 variable conversion_buffer.
5755
5756 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
5757 decrement dst_end to avoid buffer overflow in the later call of
5758 string_as_multibyte
5759
5760 * coding.h (conversion_buffer_size, conversion_buffer)
5761 (get_conversion_buffer): Extern deleted.
5762
5763 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
5764 (conversion_buffer, conversion_buffer_size): Variables deleted.
5765 (get_conversion_buffer): Function deleted.
5766 (struct conversion_buffer): New structure.
5767 (MAX_ALLOCA): New macro.
5768 (allocate_conversion_buffer): New macro.
5769 (extend_conversion_buffer, free_conversion_buffer): New functions.
5770 (ccl_coding_driver): Set coding->result.
5771 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
5772 this is the last block of source.
5773 (encode_coding): Likewise. Handle the source block as the last
5774 one only when the whole source text is consumed.
5775 (decode_coding_string): Handle the case that the output buffer is
5776 too small to decode the whole source text. Use
5777 allocate_conversion_buffer, extend_conversion_buffer and
5778 free_conversion_buffer, not get_conversion_buffer.
5779 (encode_coding_string): Likewise.
5780 (init_coding): Function deleted.
5781 (init_coding_once): Delete code to initialize
5782 conversion_buffer_size.
5783
5784 * emacs.c (main): Don't call init_coding.
5785
5786 * msdos.c (IT_write_glyphs): Use a locally declared
5787 conversion_buffer.
5788
5789 * term.c (write_glyphs): Use a locally declared conversion_buffer.
5790 (insert_glyphs): Likewise.
5791
5792 * w32console.c (write_glyphs): Use a locally declared
5793 conversion_buffer.
5794
b9f80d41
EZ
57952000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
5796
5797 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
5798 member of display_info is NULL.
5799
32dc52f7
GM
58002000-08-15 Gerd Moellmann <gerd@gnu.org>
5801
58ed0d3b
GM
5802 * alloc.c (compact_small_strings): Use safe_bcopy, add an
5803 assertion.
5804
32dc52f7 5805 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 5806 appearances with capability `me'.
32dc52f7
GM
5807 (write_glyphs): Switch on inverse video before each face change.
5808
4eb22d33
DL
58092000-08-14 Dave Love <fx@gnu.org>
5810
5811 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
5812 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
5813 (lisp_free): Declare and make static.
5814
5815 * window.c: Fix embedded comment.
5816 (syms_of_window): Fix doc string.
5817
90cbf47e
GM
58182000-08-14 Gerd Moellmann <gerd@gnu.org>
5819
5820 * keymap.c (push_key_description): If C without modifiers is < 32,
5821 make sure to print `C-' before `M-', like in the manual.
5822
440fc135
GM
58232000-08-11 Gerd Moellmann <gerd@gnu.org>
5824
5825 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
5826 since they aren't relocated anymore.
5827 (sxhash_string): Make sure returned hash code fits in a Lisp
5828 integer.
5829
5830 * xdisp.c (try_cursor_movement): Fix handling of cursor in
5831 partially visible line which is smaller than the window's
5832 height.
5833
6e264fad
KH
58342000-08-11 Kenichi Handa <handa@etl.go.jp>
5835
5836 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
5837 the multibyte form of eight-bit-control characters.
5838 (Fccl_execute_on_string): Initialize ccl->multibyte.
5839
5840 * ccl.h (struct ccl_program): New member multibyte.
5841
5842 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
5843
c371f69a
KH
58442000-08-11 Kenichi Handa <handa@etl.go.jp>
5845
5846 * regex.c (regex_compile) <normal_char>: Pay attention to
5847 multibyteness.
5848 (analyse_first) <exactn>: Setup fastmap correctly for
5849 eight-bit-control characters.
5850
58512000-08-11 Kenichi Handa <handa@etl.go.jp>
5852
5853 * termhooks.h (enum event_kind): New member
5854 multibyte_char_keystroke.
5855
5856 * keyboard.c (make_lispy_event): Handle the new event type
5857 multibyte_char_keystroke.
5858
5859 * xterm.c: Include coding.h.
5860 (XTread_socket): Work around a bug of XmbLookupString. If the
5861 input is from XIM, decode it according to the current locale. In
5862 that case, generate multibyte_char_keystroke events.
5863
b8ddbe71
KH
58642000-08-11 Kenichi Handa <handa@etl.go.jp>
5865
5866 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
5867 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
5868
47589c8c
GM
58692000-08-10 Gerd Moellmann <gerd@gnu.org>
5870
5871 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
5872 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
5873 (move_it_in_display_line_to): Record iterator's ascent and descent
5874 before producing glyphs, and restore them when we know the glyph
5875 doesn't fit on the line.
5876 (move_it_to): Restructured so that it's easier to debug. If
5877 moving to a vpos, and not moving to an x or character position,
5878 stop as soon as the specified vpos is reached; don't move further
5879 into that line because that might change the computed line height.
5880 (try_cursor_movement): New function, extracted from the cursor
5881 movement branch of redisplay_window. If ending on a partially
5882 visible line, don't try to scroll if the cursor line is taller
5883 than the window.
5884 (redisplay_window): Use try_cursor_movement.
5885
5886 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
5887 because that function doesn't cope with variable-height lines.
5888
5889 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
5890 box cursor because that's better visible for large images.
5891
c51bacd6
MB
58922000-08-10 Miles Bader <miles@gnu.org>
5893
5894 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
5895
bea56df7
GM
58962000-08-10 Gerd Moellmann <gerd@gnu.org>
5897
5898 * xdisp.c (Vmessages_buffer_name): New variable.
5899 (message_dolog): Use it.
5900 (syms_of_xdisp): Initialize it.
5901
99cd7364
EZ
59022000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
5903
5904 * msdos.c (IT_note_mouse_highlight): Update the calls to
5905 overlays_at.
5906 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
5907 redundant now that keyboard.h is included.
5908
7d093d56
EZ
59092000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
5910
5911 * keyboard.c (kbd_buffer_events_waiting): New function.
5912
5913 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
5914
5915 * msdos.c: Include keyboard.h.
5916 (XMenuActivate): Empty no_event events from the event buffer. If
5917 no events are left after that, call clear_input_pending.
5918 (mouse_clear_clicks): New function, code moved from mouse_init.
5919 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
5920 mouse driver to ``forget'' any past clicks.
5921
5922 * Makefile.in (msdos.o): Depend on keyboard.h.
5923
41e757a6
GM
59242000-08-09 Gerd Moellmann <gerd@gnu.org>
5925
8e7bd231
GM
5926 * lisp.h (input_pending): External declaration.
5927
5928 * dispextern.h (Qredisplay_dont_pause): Declare extern.
5929
5930 * xdisp.c (echo_area_display): Display thoroughly if input is
5931 pending. Bind redisplay-dont-pause to t during the redisplay.
5932 in case input is pending.
5933
5934 * dispnew.c (Qredisplay_dont_pause): New variable.
5935 (syms_of_display): Initialize and staticpro it.
5936 (update_frame_1): Don't interrupt the display for pending input if
5937 redisplay_dont_pause is set.
5938
43028b7e
GM
5939 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
5940
41e757a6
GM
5941 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
5942
2f2174fa
KH
59432000-08-09 Miles Bader <miles@lsi.nec.co.jp>
5944
5945 * callproc.c (Fcall_process): Terminate the unwind-protect around
5946 the post-read-conversion of coding system.
5947
0a6fd67e
MB
5948 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
5949 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
5950 * buffer.h (overlays_at): Update prototype.
5951 * xdisp.c (next_overlay_change): Update call to overlays_at.
5952 * xfaces.c (face_at_buffer_position): Likewise.
5953 * textprop.c (Fget_char_property): Likewise.
5954 * xterm.c (note_mouse_highlight): Likewise.
5955
0c80756e
MB
5956 * minibuf.c (do_completion): Don't consider a simple change of
5957 case as `completion'.
5958
975f250a
KR
59592000-08-08 Ken Raeburn <raeburn@gnu.org>
5960
b347b3fd
KR
5961 * keyboard.c (syms_of_keyboard): Initialize
5962 last_point_position_buffer.
5963 * undo.c (record_delete): Make sure last_point_position_buffer is
5964 a buffer before comparing pointers.
5965
5966 * coding.h (decode_coding_string): Declare.
5967
5968 * intervals.h (Fprevious_single_char_property_change): Declare.
5969
5970 * textprop.c (Fprevious_single_char_property_change): Don't do
5971 arithmetic directly on lisp objects.
5972
25ad1371 5973 * editfns.c (find_field): Use EQ, not ==, to compare Lisp
b347b3fd
KR
5974 objects.
5975
5976 * keyboard.h (menu_item_eval_property): Declare.
5977
5978 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
5979 reuse as buffer name, instead of recreating (and discarding) every
5980 time a message is logged.
5981 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
5982 (current_message_1, truncate_message_1, set_message_1)
5983 (display_echo_area_1, resize_mini_window_1): Signatures changed.
5984 (current_message, truncate_echo_area, display_echo_area)
5985 (resize_echo_area_axactly): Changed calls.
b347b3fd 5986
975f250a 5987 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 5988 Lisp object.
975f250a 5989 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 5990 must be an integer, not a Lisp object.
975f250a 5991
46dc9912
KH
59922000-08-08 Kenichi Handa <handa@etl.go.jp>
5993
5994 * charset.c (Fchar_width): Doc fix.
5995
9f6d1a6c
GM
59962000-08-08 Gerd Moellmann <gerd@gnu.org>
5997
5998 * charset.c (Fstring_width): Doc fix.
5999
ff3d9573
GM
60002000-08-07 Gerd Moellmann <gerd@gnu.org>
6001
41e757a6 6002 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
6003 line, clear ascent and descent members of the iterator structure;
6004 the height of the continued line does not affect the height of the
6005 continuation line.
6006 (make_cursor_line_fully_visible): Do nothing if cursor is on a
6007 line taller than the window.
6008 (redisplay_window) <forced window start>: Handle case that the
6009 middle of the window is not found in any row.
6010 (dump_glyph_row): Show more information.
6011 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
6012 first text line in a glyph matrix.
6013
6014 * xterm.c (x_draw_image_foreground): Avoid drawing outside
6015 of the clip area when image doesn't have a mask.
6016
70fc58b3
GM
6017 * fns.c (sweep_weak_table): Fix survival conditions for
6018 key-or-value and key-and-value weakness.
6019
6020 * .gdbinit (xhashtable): New command.
6021
ac0e96ee
GM
6022 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
6023 tables out of the list of all weak hash tables.
6024
ff3d9573
GM
6025 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
6026 a new buffer is created, make sure echo_area_buffer[] references
6027 the new buffer.
6028
e0d8827b
EZ
60292000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
6030
6031 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
6032 the doc string.
6033
c6f35378
KH
60342000-08-07 Kenichi Handa <handa@etl.go.jp>
6035
6036 * syntax.c (skip_chars): Fix previous change. Make the handling
6037 of unibyte string consistent with that of regex search.
6038
1fd4c450
GM
60392000-08-05 Gerd Moellmann <gerd@gnu.org>
6040
e49aa397
GM
6041 * xmenu.c (popup_get_selection): Use xfree instead of free.
6042
6043 * fileio.c (Finsert_file_contents): Use xfree instead of free.
6044
6045 * editfns.c (Ftranspose_regions): Use xfree instead of free.
6046
6047 * callproc.c (child_setup): Use xfree instead of free.
6048
6049 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
6050 instead of malloc.
6051 (run_mac_command, closedir): Use `xfree' instead of `free'.
6052
6053 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
6054
6055 * eval.c (error): Use xfree instead of free.
6056
1fd4c450
GM
6057 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
6058
6059 * fns.c: Replace `illegal' with `invalid'.
e49aa397 6060 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 6061
82d497fc
KH
60622000-08-05 Kenichi Handa <handa@etl.go.jp>
6063
6064 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
6065 conversion.
6066
59f953a2
NF
60672000-08-04 Noah Friedman <friedman@splode.com>
6068
6069 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
6070 docstring.
6071
688351f2
GM
60722000-08-04 Gerd Moellmann <gerd@gnu.org>
6073
6074 * syntax.c (skip_chars): Fix typo in error message.
6075
2dad51cc
AS
60762000-08-04 Andreas Schwab <schwab@suse.de>
6077
6078 * m/ia64.h: Moved from s/ia64.h.
6079
99bb2c60
KH
60802000-08-04 Kenichi Handa <handa@etl.go.jp>
6081
082a1df2
KH
6082 * process.c (read_process_output): Big simplification. Handle
6083 composition and post-read-conversion of coding system correctly.
6084 (send_process): Handle composition correctly.
6085
6086 * callproc.c (Fcall_process): Handle post-read-conversion of
6087 coding system if any.
6088
99bb2c60
KH
6089 * coding.c (decode_coding_iso2022): More strict check for handling
6090 single shifting.
082a1df2
KH
6091 (coding_restore_composition): Pay attention to the case that
6092 cmp_data is not set properly (because of invalid code in the
6093 source text).
6094 (run_pre_post_conversion_on_str): Include text properties in the
6095 resulting string.
6096 (decode_coding_string): Set members of coding correctly.
99bb2c60 6097
f4988be7
GM
60982000-08-03 Gerd Moellmann <gerd@gnu.org>
6099
6100 * s/ia64.h: New file.
6101
6102 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
6103 Use NULL instead of 0 at the end of variable argument list of
6104 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
6105 sizeof (int) < sizeof (void *).
6106
6107 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
6108 of variable argument lists of XtVaGetValues and XtVaSetValues.
6109
6110 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
6111 variable argument lists of XtVaGetValues and XtVaSetValues.
6112
ead53494
GM
61132000-08-02 Gerd Moellmann <gerd@gnu.org>
6114
6115 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
6116 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
6117
6118 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
6119 prototype.
6120
6121 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
6122 in call to Fsingle_key_description.
6123
6124 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
6125 Callers changed.
6126
61272000-08-02 Colin Walters <walters@cis.ohio-state.edu>
6128
6129 * window.c (display_buffer_reuse_frames): New variable.
6130 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
6131 frames displaying BUFFER.
6132 (syms_of_window): Define Lisp variable
6133 display-buffer-reuse-frames.
6134
10b0f752
MB
61352000-08-01 Miles Bader <miles@gnu.org>
6136
6137 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
6138 when to constrain NEW_POS (they were pretty screwed up before).
6139
16425c4a
EZ
61402000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
6141
6142 * msdos.c (run_msdos_command): Save and restore the master
6143 environment, for the case that child_setup signals an error.
6144 When mirroring slashes in DOS shell commands, don't fail when
6145 argv[2] has embedded blanks.
da288c14
EZ
6146 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
6147 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
6148 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
6149
6150 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
6151 using alloca; free it after run_msdos_command returns.
6152
27f73852
DL
61532000-07-27 Dave Love <fx@gnu.org>
6154
6155 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't
6156 define.
6157 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently
6158 working.
6159
6160 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
6161
c0261b5e
EZ
61622000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
6163
6164 * editfns.c (lisp_time_argument): Fix last change.
6165
b548072f
GM
61662000-07-27 Gerd Moellmann <gerd@gnu.org>
6167
3ab82477
GM
6168 * fns.c (Fdelete): Make it work on vectors and strings in addition
6169 to lists.
6170
b548072f
GM
6171 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
6172 (syms_of_fns): Initialize new variables.
6173 (sweep_weak_table): Handle weakness `key-or-value' and
6174 `key-and-value'.
6175 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
6176 weakness, with t meaning the same as `key-and-value'.
6177
91ae8751
KH
61782000-07-27 Kenichi Handa <handa@etl.go.jp>
6179
6180 * coding.h (struct coding_system): Member safe_charset deleted.
6181
6182 * coding.c (Qsafe_charsets): This variable deleted.
6183 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system): New
6184 variables.
6185 (coding_safe_chars): New function.
6186 (CODING_SAFE_CHAR_P): New macro.
6187 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
6188 checking safe_charsets member of the coding system. Caller
6189 changed.
6190 (detect_coding_iso2022): New local variable safe_chars.
6191 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
6192 safe_charsets member of the coding system.
6193 (decode_coding_iso2022): New local variable safe_chars.
6194 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
6195 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
6196 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
6197 (ENCODE_UNSAFE_CHARACTER): New macro.
6198 (encode_coding_iso2022): New local variable safe_chars. Check
6199 unsafe chars.
6200 (setup_coding_system): Delete the code to initialize
6201 coding->safe_charses
6202 (intersection, find_safe_codings): New functions.
6203 (Ffind_coding_systems_region_internal): New function.
6204 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
6205 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
6206 variable and initialize it.
6207
6208 * fns.c (char_table_ref_and_index): New function.
6209
6210 * lisp.h (char_table_ref_and_index): Add prototype.
6211
34a7a267
SS
62122000-07-26 Sam Steingold <sds@gnu.org>
6213
6214 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 6215 (Ffloat_time): New built-in Lisp function.
34a7a267 6216
a95cb10a
GM
62172000-07-26 Gerd Moellmann <gerd@gnu.org>
6218
3353ef5a
GM
6219 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
6220 for the character code.
6221
6222 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
6223 GNU/Linux.
6224
a95cb10a
GM
6225 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
6226 if called for a popup menu.
6227 (xmenu_show): Store help string in widget values.
6228
b4a12321
DL
62292000-07-26 Dave Love <fx@gnu.org>
6230
6231 * syswait.h: Move some definitions.
6232 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
6233 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
6234 perspicuous definitions.
6235 (WTERMSIG): Fix bit pattern used.
6236
13f5ad37
KH
62372000-07-26 Kenichi Handa <handa@etl.go.jp>
6238
6239 * print.c (print_object): If vector printing is truncated, print
6240 "..." to indicate it as well as the case of list printing.
6241
070fe99c
GM
62422000-07-25 Gerd Moellmann <gerd@gnu.org>
6243
969065c3
GM
6244 * xdisp.c (next_element_from_display_vector): Improve comments.
6245
6246 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
6247 for the character code, and the rest for the face id as in 20.x.
6248 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
6249
6250 * window.c (window_display_table): Cleaned up.
6251
070fe99c
GM
6252 * syntax.c (Fforward_word): Add last arg nil in call of
6253 Fconstrain_to_field.
6254
bad77ef7
EZ
62552000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
6256
969065c3 6257 * fileio.c (Frename_file) [DOS_NT]: If the file names are
bad77ef7
EZ
6258 identical but for the letter-case, don't call
6259 barf_or_query_if_file_exists.
6260
c28da489
MB
62612000-07-25 Miles Bader <miles@gnu.org>
6262
6263 * editfns.c (find_field): Honor special `boundary' fields.
6264 (Qboundary): New variables.
6265 (syms_of_editfns): Initialize Qboundary.
6266 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
6267 Use scan_buffer instead of find_before_next_newline, because it
6268 allows us to detect the boundary case where there's a newline at
6269 the search limit.
6270 * lisp.h (Fconstrain_to_field): Update external declaration.
6271
e3c31fd5
GM
62722000-07-24 Gerd Moellmann <gerd@gnu.org>
6273
6274 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
6275 if that is nil.
c28da489 6276
c66c29a2
DL
62772000-07-24 Dave Love <fx@gnu.org>
6278
6279 * s/sunos4-0.h, s/sol2.h:
6280 (LIBS_TERMCAP): Move from m/sparc.h.
6281
6282 * m/sparc.h (TERMINFO): Moved to system files (probably only
6283 relevant for sunos4 judging by its vintage).
6284 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
6285 __arch64__.
6286
fbe0a958
EZ
62872000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
6288
6289 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
6290 name to single_keymap_panes.
6291
7d88e5c9
AS
62922000-07-24 Andreas Schwab <schwab@suse.de>
6293
6294 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
6295
e024b101
GM
62962000-07-24 Gerd Moellmann <gerd@gnu.org>
6297
6298 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
6299 parameters instead of using int parameters. Expect FN to accept
6300 EMACS_INT parameters.
6301 (display_echo_area, resize_echo_area_axactly, current_message)
6302 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
6303 with new argument list.
6304 (resize_mini_window_1): New callback function.
6305 (current_message_1, truncate_message_1, set_message_1): Change
6306 parameter lists to the new format expected by
6307 with_echo_area_buffer.
6308
25c1a9ce
KH
63092000-07-24 Kenichi Handa <handa@etl.go.jp>
6310
6311 * fontset.c (fontset_ref): Remove INLINE declaration.
6312 (fontset_ref_via_base): Likewise.
6313 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
6314 to downcase.
6315
7f987ac0
EZ
63162000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
6317
6318 * msdos.c (IT_note_mouse_highlight): Process overlays in the
6319 correct order of priority. If help echo was found in an overlay,
6320 use that overlay as the object in which the help echo was found.
6321
e2db3069
MB
63222000-07-22 Miles Bader <miles@gnu.org>
6323
6324 * textprop.c (Fprevious_single_char_property_change): The initial
6325 property value should be from the position preceding POSITION, not
6326 following it.
6327
5e3203e4
EZ
63282000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
6329
6330 * coding.c (syms_of_coding): Doc fix for
6331 inhibit-iso-escape-detection.
6332
62145073
GM
63332000-07-21 Gerd Moellmann <gerd@gnu.org>
6334
c20aeb83
GM
6335 * xterm.c (note_mouse_highlight): Process overlays in the right
6336 order of priority.
34a7a267 6337
743934db
GM
6338 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
6339
6340 * xterm.c (note_mouse_highlight): If help-echo was found in an
6341 overlay, use that overlay as the object in which the help was
6342 found.
6343
d1dc7e43 6344 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 6345
62145073
GM
6346 * window.c (foreach_window): Instead of a fake variable argument
6347 list, take one USER_DATA argument.
6348 (foreach_window_1): Likewise, and call callback functions with two
6349 args, the window and USER_DATA.
6350 (struct check_window_data): New struct.
6351 (check_window_containing): Use it.
6352 (window_from_coordinates): Set up a struct check_window_data for
6353 foreach_window.
6354 (add_window_to_list, freeze_window_start): Change parameters
6355 according to new calling convention.
6356
6357 * window.h (foreach_window): Change prototype.
6358
6359 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
6360
63612000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
6362
6363 * xmenu.c (menu_help_callback): Call show_help_echo with
6364 additional arguments OBJECT and POS.
6365
11270583
KH
63662000-07-21 Kenichi Handa <handa@etl.go.jp>
6367
07b14857
KH
6368 * data.c (Faset): Allow storing any multibyte character in a
6369 string. Convert unibyte string to multibyte if necessary.
6370
11270583
KH
6371 * xfns.c (x_encode_text): New function.
6372 (x_set_name): Use x_encode_text.
6373 (x_set_title): Likewise.
6374
6375 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
6376
6377 * xterm.h (x_encode_text): Add prototype.
6378
bc75b4fd
DL
63792000-07-20 Dave Love <fx@gnu.org>
6380
6381 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
6382 xfree, not free.
6383
48c14970
EZ
63842000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
6385
6386 * msdos.c (help_echo_window): New variable.
6387 (syms_of_msdos): Initialize and staticpro it.
6388 (IT_note_mode_line_highlight): Set help_echo_window.
6389 (IT_note_mouse_highlight): Ditto.
6390 (dos_rawgetc): Store help_echo_window in the second event produced
6391 for HELP_EVENTs.
6392
6393 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
6394 Record the object that generated the help echo and the position of
6395 that object in help_echo_object and help_echo_pos. Record that
6396 some glyphs in a row are displayed in mouse-face.
6397 (IT_update_begin): Don't clear mouse highlight unless one of the
6398 enabled glyph rows is marked as being displayed in mouse-face.
6399 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
6400 and position recorded in help_echo_object and help_echo_pos to the
6401 event queue.
6402 (IT_menu_display): Accept a new argument PN: the pane number of
6403 the current menu pane. Record the pane number and the item
6404 number of the item which has associated help string.
6405 (XMenuActivate): Update the prototype for help_callback in
6406 function declaration. Call IT_menu_display with the current menu
6407 pane number as an additional argument. Call help_callback with
6408 two additional arguments: the pane number and the item number of
6409 the menu item associated with the help text.
6410 (help_echo_object, help_echo_pos): New variables.
6411 (syms_of_msdos): Initialize them and staticpro help_echo_object.
6412
6413 * msdos.h (XMenuActivate): Update prototype.
6414
4279296d
GM
64152000-07-19 Gerd Moellmann <gerd@gnu.org>
6416
47db06aa
GM
6417 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
6418 Add some more prototypes.
6419
6420 * xterm.c, xterm.h: Add some more prototypes.
6421
6422 * lisp.h (Fnext_single_char_property_change): Add prototype.
6423
6424 * dispnew.c (direct_output_for_insert): Remove confusing
6425 outer local variable mouse_face_overwritten_p.
6426 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
6427
4279296d
GM
6428 * alloc.c (allocate_string_data): Don't copy old string contents.
6429
670acd62
KH
64302000-07-19 Kenichi Handa <handa@etl.go.jp>
6431
6432 * coding.c (code_convert_region): Delete text properties before
6433 shrinking the conversion region.
6434
7cea38bc
GM
64352000-07-18 Gerd Moellmann <gerd@gnu.org>
6436
dc1cac59
GM
6437 * dispnew.c (update_text_area): Write the whole row if it
6438 has mouse-face in it.
6439
85a8aca9
GM
6440 * xfaces.c (face-alternative-font-family-alist): Remove
6441 DEFVAR_LISP; staticpro instead.
6442
34a7a267 6443 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
6444 new arguments.
6445
6446 * keyboard.c (show_help_echo): Add parameter WINDOW.
6447 (read_char): Call show_help_echo with window extracted from Lisp
6448 help event.
6449 (gen_help_event): Add parameter WINDOW.
6450
6451 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
6452
6453 * xterm.c (help_echo_window): New variable.
6454 (note_mouse_highlight, note_tool_bar_highlight): Set
6455 help_echo_window.
6456 (XTread_socket): Pass help_echo_window to gen_help_event.
6457 (syms_of_xterm): Initialize and staticpro help_echo_window.
6458
f8276b77
DL
64592000-07-18 Dave Love <fx@gnu.org>
6460
6461 * Makefile.in: Fix dependencies of blockinput.h on atimer.h,
6462 systime.h.
6463
088831a6
GM
64642000-07-18 Gerd Moellmann <gerd@gnu.org>
6465
3d6cd763
GM
6466 * alloc.c (allocate_string_data): If string had already data
6467 assigned, copy old contents to new string data.
6468
6469 * coding.c (syms_of_coding): Fix typo in spelling of variable
6470 `inhibit-iso-escape-detection'.
6471
088831a6
GM
6472 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
6473
6474 * Makefile.in: Add dependencies on dispextern.h.
6475 (alloca.o): Don't define malloc and define EMACS_FREE instead of
6476 `free'; both can conflict with system header files.
6477
bc8a8d55
KH
64782000-07-18 Kenichi Handa <handa@etl.go.jp>
6479
6480 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
6481 undefined.
6482
069f5950
DL
64832000-07-18 Dave Love <fx@gnu.org>
6484
6485 * window.c (Fwindow_list): Declare arg `window'.
6486
aa96c820
KH
64872000-07-18 Kenichi Handa <handa@etl.go.jp>
6488
6489 * coding.c (setup_coding_system): Don't override the explicitly
6490 specified designations.
6491
06be8d32
MB
64922000-07-15 Miles Bader <miles@gnu.org>
6493
6494 * editfns.c (char_property_eq, char_property_stickiness): Renamed
6495 from `text_property_eq' and `text_property_stickiness', respectively.
6496 (find_field, Fconstrain_to_field, char_property_eq)
6497 (char_property_stickiness): Changed to call char-property functions
6498 instead of text-property-only ones.
6499
6500 * textprop.c (Fnext_single_char_property_change): Made a subr (was
6501 `next_single_char_property_change'). Do more error checking, and
6502 cleanup limit behavior.
6503 (Fprevious_single_char_property_change): New function.
6504 (syms_of_textprop): Initialize new subrs.
6505
6506 * xdisp.c (display_prop_end, invisible_text_between_p):
6507 Call Fnext_single_char_property_change instead of
6508 next_single_char_property_change.
6509
3fddcdc3
JR
65102000-07-15 Jason Rumney <jasonr@gnu.org>
6511
6512 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
6513 after menu is finished with.
6514 (add_menu_item): Only consider wv->title as a menu title.
6515 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
6516
6517 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
6518 null title.
6519 (FONT_REGEXP): Remove unused macro, and its sub-components.
6520 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
6521
6522 * w32term.c (help_echo_object, help_echo_pos): New variables.
6523 (note_mode_line_highlight): Store additional information about the
6524 help-echo in help_echo_object and help_echo_pos. Check both
6525 `local-map' and `keymap' properties for changing the cursor
6526 (note_mouse_highlight): Store additional information about the
6527 help-echo in help_echo_object and help_echo_pos.
6528 (note_tool_bar_highlight): Set help_echo_object to nil and
6529 help_echo_pos to -1.
6530 (w32_read_socket): Use gen_help_event instead of filling
6531 input_events manually.
6532 (syms_of_w32term): Staticpro help_echo_object.
6533 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
6534 set, arrange for a mouse-highlight redisplay in
6535 XTframe_up_to_date.
6536 (x_clear_mouse_face): New function.
6537 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
6538 (x_update_window_begin): No need to turn off the mouse
6539 highlight here.
6540 (show_mouse_face): Set the mouse_face_p flag of glyph rows
6541 depending on whether they contain glyphs highlighted in
6542 mouse-face.
6543 (x_fill_stretch_glyph_string): Consume runs of stretch
6544 glyphs instead of a single one.
6545 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
6546 with new argument list.
6547 (x_set_glyph_string_gc): Make sure the face's GC is valid.
6548 (x_append_glyph, x_append_composite_glyph)
6549 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
6550 changes in struct glyph starting 1999-12-27. See comments for
6551 xterm.c on 2000-07-05.
6552
178c5d9c
SS
65532000-07-14 Sam Steingold <sds@gnu.org>
6554
6555 * xfaces.c (realize_x_face): Fix the last patch:
6556 check `default_face' before dereferencing.
6557
6fe533f6
DL
65582000-07-14 Dave Love <fx@gnu.org>
6559
069f5950 6560 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 6561
dd7b81cf
KH
65622000-07-14 Kenichi Handa <handa@etl.go.jp>
6563
0693904a 6564 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 6565 default_face's fontset, not using the default fontset.
0693904a 6566
dd7b81cf
KH
6567 * coding.c (inhibit_iso_escape_detection): New variable.
6568 (syms_of_coding): Make it a Lisp variable.
6569 (detect_coding_iso2022): If inhibit_iso_escape_detection is
6570 nonzero, ignore ISO2022's escape sequence.
6571
d5aa31d8
GM
65722000-07-14 Gerd Moellmann <gerd@gnu.org>
6573
e5acf0ca
GM
6574 * alloca.c (malloc) [emacs]: Define as xmalloc.
6575
bd23a692
GM
6576 * xfns.c (Fx_show_tip): If frame parameters contain a position,
6577 use that instead of the mouse position. Add parameters DX and DY.
6578
6579 * dispextern.h (Fx_show_tip): Adjust number of parameters
6580 in prototype.
6581
9662da0b
GM
6582 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
6583 if HELP is a function, call it with OBJECT and POS as parameters
6584 to get the help to display.
6585 (gen_help_event, kbd_buffer_store_help_event): New functions.
6586 (kbd_buffer_get_event): Construct the Lisp help-event differently.
6587 (read_char): Call show_help_echo with new parameters.
6588
178c5d9c 6589 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
6590 Add prototypes.
6591
6592 * xterm.c (help_echo_object, help_echo_pos): New variables.
6593 (note_mode_line_highlight): Store additional information about the
6594 help-echo in help_echo_object and help_echo_pos. Check both
6595 `local-map' and `keymap' properties for changing the cursor
6596 (note_mouse_highlight): Store additional information about the
6597 help-echo in help_echo_object and help_echo_pos.
6598 (note_tool_bar_highlight): Set help_echo_object to nil and
6599 help_echo_pos to -1.
6600 (XTread_socket): Use gen_help_event instead of filling
6601 input_events manually.
6602 (syms_of_xterm): Staticpro help_echo_object.
6603
6604 * xmenu.c (menu_highlight_callback): Use
6605 kbd_buffer_store_help_event instead of setting up and input_event
6606 structure manually.
6607
6608 * xdisp.c (eval_form): GCPRO argument sexpr.
6609 (call_function): New function.
6610 (handle_single_display_prop): Use call_function and FUNCTIONP
6611 instead of checking whether if font_height is a symbol and
6612 using eval_form.
6613
6614 * eval.c (internal_condition_case_2): New function.
6615
6616 * lisp.h (FUNCTIONP): New macro.
6617 (internal_condition_case_2, call_function): Add prototypes.
6618
d5aa31d8
GM
6619 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
6620 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
6621 Always set `arg' member of input_events.
6622 (construct_menu_click): Unused function removed.
6623
6624 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
6625
6626 * w32term.c (construct_mouse_click, construct_mouse_wheel)
6627 (construct_drag_n_drop, x_scroll_bar_handle_click)
6628 (w32_read_socket): Always set `arg' member of input_events.
6629
6630 * keyboard.c (show_help_echo): Use eval_form. Add comment.
6631
6632 * lisp.h (eval_form): Add prototype.
6633
6634 * xdisp.c (eval_form): Make it externally visible.
6635
0f1a9b23
GM
66362000-07-13 Gerd Moellmann <gerd@gnu.org>
6637
6638 * xterm.c (x_handle_tool_bar_click): Store the frame in the
6639 frame_or_window slot of TOOL_BAR_EVENT input events instead of
6640 consing. For prefix events, store the frame in the `arg' slot of
6641 the event, otherwise store the key there.
6642 (XTread_socket): Instead of consing, use the frame_or_window slot
6643 of HELP_EVENTs for the frame, and the `arg' slot for the help
6644 string.
6645
6646 * xmenu.c (menu_highlight_callback): Store help string in the
6647 `arg' member of the input event; don't cons.
6648 (menubar_selection_callback): Use the `arg' slot of input events
6649 to queue additional information, instead of consing.
6650
6651 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
6652
6653 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
6654 TOOL_BAR_EVENTs.
6655 (w32_read_socket): Adapt to changes in HELP_EVENTs.
6656
6657 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
6658 input events to queue additional information, instead of consing.
6659
6660 * keyboard.c (kbd_buffer_gcpro): Renamed from
6661 kbd_buffer_frame_or_window. Now used for all Lisp objects
6662 referenced from the input queue.
6663 (kbd_buffer_store_event): Always use structure assignment for
6664 copying input events. Record all Lisp objects referenced from
6665 events in kbd_buffer_gcpro.
6666 (kbd_buffer_get_event): Construct Lisp `help-echo' events
6667 differently from input events. Test for prefix menu_bar_events
6668 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
6669 event in kbd_buffer_gcpro to nil.
6670 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
6671 frame_or_window is equal to its arg member as prefix events.
6672 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
6673 used by an input event to nil.
6674 (init_keyboard): Use two times the size of the input queue
6675 for kbd_buffer_gcpro.
6676 (syms_of_keyboard): Likewise.
6677
6678 * emacs.c (handle_USR2_signal, handle_USR1_signal): Use
6679 USER_SIGNAL_EVENT.
6680
6681 * termhooks.h (struct input_event): Add member `arg'.
6682 (MENU_BAR_EVENT): Renamed from menu_bar_event.
6683 (USER_SIGNAL_EVENT): Renamed from user_signal.
6684
6685 * xfaces.c (ASET): Remove definition.
6686
6687 * lisp.h (AREF, ASET, ASIZE): New macros.
6688
6689 * fontset.c (AREF, ASIZE): Remove definitions.
6690
6691 * fns.c (AREF): Remove definition.
178c5d9c 6692
0f1a9b23
GM
6693 * composite.c (AREF): Remove definition.
6694
712eaef2
GM
66952000-07-12 Gerd Moellmann <gerd@gnu.org>
6696
d8ee7803
GM
6697 * dispnew.c (redraw_overlapped_rows): Add missing local.
6698 (scrolling_window): Remove debug code.
6699
712eaef2
GM
6700 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
6701 Before scrolling, turn off a mouse-highlight in the window
6702 being scrolled.
6703
6704 * xterm.c (x_update_window_end): Add parameter
6705 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
6706 redisplay in XTframe_up_to_date.
6707 (x_clear_mouse_face): New function.
6708 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
6709
6710 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
6711 current glyph row.
6712 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
6713 it when any row is written to that contains glyphs highlighted in
6714 mouse-face.
6715 (update_window): Call the window update end hook with new
6716 parameter MOUSE_FACE_OVERWRITTEN_P.
6717 (direct_output_for_insert): Give up if row contains mouse-face.
6718
6719 * dispextern.h (struct redisplay_interface): Add parameter
6720 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
6721 (clear_mouse_face): New function pointer member.
6722
02010917
SM
67232000-07-11 Stefan Monnier <monnier@cs.yale.edu>
6724
6725 * syntax.c (back_comment): Use one switch rather than a few `if's.
6726 Obey open_paren_in_column_0_is_defun_start.
6727 When reverting to the `slow' method, try to nicely handle the case
6728 of nested comments by checking that the comment-starter we found
6729 does indeed match the comment-ender.
6730 (scan_sexps_forward, scan_sexps_forward):
6731 Ignore excessive opening parenthesis rather than throwing an error.
6732
d76c03ea
GM
67332000-07-11 Gerd Moellmann <gerd@gnu.org>
6734
6735 * doc.c (Fsubstitute_command_keys): Handle case that a GC
6736 in Fwhere_is_internal or get_keymap_1 relocates string contents.
6737
6738 * dispnew.c (direct_output_forward_char): Give up if currently
6739 displaying a message instead of the minibuffer contents.
6740
6741 * xterm.c (x_update_window_begin): No need to turn off the mouse
6742 highlight here.
6743 (show_mouse_face): Set the mouse_face_p flag of glyph rows
6744 depending on whether they contain glyphs highlighted in
6745 mouse-face.
6746
6747 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
6748 compare the mouse_face_p flags of both rows.
6749
6750 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
6751
d55ead18
EZ
67522000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
6753
6754 * keyboard.c (show_help_echo): Accept additional parameter
6755 ok_to_overwrite_keystroke_echo.
6756 (read_char): Call show_help_echo with a zero
6757 ok_to_overwrite_keystroke_echo argument.
6758 * keyboard.h (show_help_echo): Update prototype of
6759 show_help_echo.
6760 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
6761 ok_to_overwrite_keystroke_echo argument.
6762 * w32menu.c (w32_menu_display_help): Call show_help_echo with
6763 non-zero ok_to_overwrite_keystroke_echo argument.
6764
df75b1a3
GM
67652000-07-10 Gerd Moellmann <gerd@gnu.org>
6766
4b92c49a
GM
6767 * xdisp.c (try_window_id): If changes are all below what is
6768 displayed in the window, and point is in the window, we still
6769 might have to find point on the display.
6770
6771 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
6772 glyphs instead of a single one.
6773 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
6774 with new argument list.
6775 (x_set_glyph_string_gc): Make sure the face's GC is valid.
6776
df75b1a3
GM
6777 * keymap.c (get_keymap_1): Add comment that this function can GC.
6778 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
6779 comment that functions can GC.
6780 (Fset_keymap_parent): GCPRO arg KEYMAP.
6781
4314cf3e
EZ
67822000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
6783
6784 * msdos.c (XMenuActivate): After exiting the menu, restore the
6785 echo area message and erase it.
6786
ab49ce15
KH
67872000-07-10 Kenichi Handa <handa@etl.go.jp>
6788
6789 * fontset.c (Ffontset_info): Make the return value more compatible
6790 with that of Emacs 20.
6791
090a072f
GM
67922000-07-07 Gerd Moellmann <gerd@gnu.org>
6793
6794 * eval.c (Fsignal): Handle case that backtrace_list is null.
6795
f92de4a6
KH
67962000-07-07 Kenichi Handa <handa@etl.go.jp>
6797
6798 * ccl.c (Fccl_execute): Typo fixed.
6799
dd8888a1
GM
68002000-07-06 Gerd Moellmann <gerd@gnu.org>
6801
e5c81191 6802 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 6803
dd8888a1
GM
6804 * window.c (Fwindow_list): Reverse list at the end.
6805 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
6806 means allow windows on OWINDOW's frame, only.
6807 (window_loop): Simplified; use Fwindow_list.
6808
6809 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
6810
485266d0
GM
68112000-07-05 Gerd Moellmann <gerd@gnu.org>
6812
6813 * xterm.c (XTread_socket): Increment handling_signal at the start,
6814 decrement it at the end.
6815
6816 * eval.c (handling_signal): New variable.
6817 (Fsignal): Abort if handling_signal is non-zero.
6818
6819 * lisp.h (handling_signal): External declaration.
178c5d9c 6820
485266d0
GM
6821 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
6822
80fcd514
KR
68232000-07-05 Ken Raeburn <raeburn@gnu.org>
6824
6825 Sound support for NetBSD through "Linux emulation" support:
6826 * config.in (HAVE_SOUNDCARD_H): Undef.
6827 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
6828 * Makefile.in (LIBSOUND): New variable.
6829 (LIBES): Include it.
6830 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and
6831 <soundcard.h>.
6832 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined
6833 elsewhere.
6834 (vox_open): Use DEFAULT_SOUND_DEVICE.
6835 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
6836
d5c5cddd
GM
68372000-07-05 Gerd Moellmann <gerd@gnu.org>
6838
6839 * print.c (print_error_message): If Vsignaling_function is set,
6840 show it in *Messages*.
6841
6842 * lisp.h (Vsignaling_function): External declaration.
6843
6844 * eval.c (Vsignaling_function): New variable.
6845 (Fsignal): Compute it.
6846 (syms_of_eval): Staticpro it.
6847
65171e3a
DL
68482000-07-05 Dave Love <fx@gnu.org>
6849
6850 * syswait.h: Use the autoconf recommended approach. Old code
6851 #if'd out in case we need to revert.
6852
178c5d9c 6853 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 6854
e2c46326
AI
68552000-07-05 Andrew Innes <andrewi@gnu.org>
6856
6857 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
6858 when non-NULL instead of __morecore, to take account of buffer
6859 memory. This also solves a problem with spurious memory warnings
6860 on Windows.
6861
6862 * ralloc.c: Make real_morecore non-static.
6863
6864 * eval.c (internal_condition_case): Comment out abort if
6865 interrupt_input_blocked is not zero.
6866
6867 * makefile.nt: Add support for `bootstrap' and related targets.
6868 Include minimal debug info in emacs.exe in release build.
6869 Remove all dependencies on lisp.h, and fixup some others.
6870
6871 * w32.c (init_environment): Install code from 20.7 for providing
6872 default values for environment variables, based on the
6873 executable's own location.
6874 (map_w32_filename): Handle filenames that are longer than
6875 MAX_PATH.
6876 (sys_socket): Install socket inheritance bug fix from 20.7.
6877
6878 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
6879 here via blockinput.h).
6880
a027a91b
SM
68812000-07-05 Stefan Monnier <monnier@cs.yale.edu>
6882
e4b31601
SM
6883 * w32menu.c (w32_menu_display_help):
6884 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
6885
6886 * keyboard.h (show_help_echo): Declare.
6887
6888 * keyboard.c (show_help_echo): New function, extracted from read_char.
6889 Feval its `msg' argument if it's a cons cell.
6890 (read_char): Use it.
4cf8d9d5 6891 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 6892
178c5d9c 6893 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 6894 (note_tool_bar_highlight, XTread_socket):
178c5d9c 6895 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
6896 (dos_rawgetc):
6897 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
6898 (note_tool_bar_highlight, w32_read_socket):
6899 Do not gratuitously ignore non-string `help-echo' properties.
6900
88d75730
GM
69012000-07-05 Gerd Moellmann <gerd@gnu.org>
6902
969f7e79
GM
6903 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
6904
71201b00
GM
6905 * window.c (delete_all_subwindows): Reset Vwindow_list.
6906
88d75730
GM
6907 * xterm.c (x_append_glyph, x_append_composite_glyph)
6908 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
6909 changes in struct glyph starting 1999-12-27. Some bit-fields of
6910 struct glyph were not set, which made glyphs unequal when compared
6911 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
6912 effects were the result. This also depended on the contents of
6913 memory returned by xmalloc. If flickering happens again, activate
6914 the code in clear_glyph_row that's in #if 0. If the flickering is
6915 gone with that, chances are that it is caused by something
6916 similar.
6917
6918 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 6919
88d75730
GM
6920 * dispextern.h: Add some comments.
6921
6922 * window.c (add_window_to_list): Add parameter LIST.
6923 (window_list): Order list so that, for each frame, windows are
6924 in canonical order, and so that frames appear in the list in
6925 the order given by Vframe_list.
6926 (next_window): Reverse the handling of NEXT_P.
6927
53654733
GM
69282000-07-04 Gerd Moellmann <gerd@gnu.org>
6929
87efd256
GM
6930 * window.c (Vwindow_list): New variable.
6931 (make_window, delete_window): Set Vwindow_list to nil.
6932 (check_window_containing): New function.
6933 (window_from_coordinates): Rewritten.
6934 (add_window_to_list, window_list, candidate_window_p)
6935 (decode_next_window_args, next_window): New functions.
6936 (Fnext_window, Fprevious_window): Rewritten in terms of
6937 next_window.
6938 (Fwindow_list): New function.
6939 (Fother_window): Cleaned up.
6940 (foreach_window): Add a longer "variable argument list". Let
6941 callback function return 0 to indicate that cycling over windows
6942 should stop.
6943 (foreach_window_1): Likewise.
6944 (freeze_window_start): Return int.
6945 (init_window): New function.
6946 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
6947
6948 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
6949 input_event with bzero.
6950 (main): Call init_window.
6951
53654733
GM
6952 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
6953 a menu filter.
6954
4a8c194f
KH
69552000-07-04 Kenichi Handa <handa@etl.go.jp>
6956
6957 * composite.h (make_composition_value_copy): Extern it.
6958
6959 * composite.c (make_composition_value_copy): New function.
6960
6961 * editfns.c (Fformat): While copying text properties, make each
6962 composition property value a copy.
6963
6964 * fns.c (concat): While copying text properties, make each
6965 composition property value a copy.
6966
831a6cb0
GM
69672000-07-03 Gerd Moellmann <gerd@gnu.org>
6968
2f516940
GM
6969 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
6970
178c5d9c 6971 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
6972 marked already.
6973
831a6cb0
GM
6974 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
6975 include those frames as candidates which have their focus
6976 redirected to the minibuffer frame.
6977
d9c4f922
SM
69782000-07-03 Stefan Monnier <monnier@cs.yale.edu>
6979
6980 * fns.c (Fputhash): Return `value' rather than nil.
6981
3780bc22
GM
69822000-06-30 Gerd Moellmann <gerd@gnu.org>
6983
97d176db
GM
6984 * frame.c (next_frame): Don't check focus redirection in case
6985 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
6986 unless their focus is redirected, which contradicts the
6987 specification of next-frame, and leads to infinite loops in
6988 certain situations when cycling through windows with next-window.
6989
dca9961d
KH
69902000-06-30 Kenichi Handa <handa@etl.go.jp>
6991
6992 * coding.c (code_convert_region): Even if the length of text is
6993 zero, try to convert it if coding->type is coding_type_ccl.
6994 (decode_coding_string, encode_coding_string): Likewise.
6995
d5483ab1
GM
69962000-06-28 Gerd Moellmann <gerd@gnu.org>
6997
af5c25e1 6998 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 6999 the display if windows_or_buffers_changed.
af5c25e1
GM
7000
7001 * dispnew.c (struct row_entry): New structure.
7002 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
7003 (row_table_size, old_lines, new_lines, old_lines_size)
7004 (new_lines_size, run_pool, runs_size, runs): New variables.
7005 (add_row_entry): New function.
7006 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 7007 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
7008 holding them in local variables. Use a larger hash table whose
7009 size depends on glyph matrix sizes. Don't use bzero to clear the
7010 hash table; instead, clear used slots only.
7011
7012 * fns.c (next_almost_prime): Make it externally visible.
7013
7014 * lisp.h (next_almost_prime): Add prototype.
7015
d5483ab1
GM
7016 * s/isc4-0.h (sigunblock): Define.
7017
7018 * s/sco5.h (sigunblock): Define.
7019
93e40f40
DL
70202000-06-27 Dave Love <fx@gnu.org>
7021
7022 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
7023 (moved to osf5-0.h).
7024 [!NOT_C_CODE]: Protect string.h stuff.
7025
7026 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
7027 (sys_siglist, NSIG): Definitions moved here from osf1.h.
7028
3c4b7685
GM
70292000-06-27 Gerd Moellmann <gerd@gnu.org>
7030
97d176db 7031 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
7032 below the last line from the needed window height.
7033
32cad0aa
SM
70342000-06-26 Stefan Monnier <monnier@cs.yale.edu>
7035
7036 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
7037 (Fwidget_get): Use it.
7038 (syms_of_fns): Defsubr it.
7039
2c69ced2
GM
70402000-06-26 Gerd Moellmann <gerd@gnu.org>
7041
178c5d9c 7042 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
7043 display info for XIM.
7044 (xim_open_dpy): Likewise.
7045 (xim_close_dpy): Don't free the display info's XIM.
7046
7047 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
7048
7049 * config.in (USE_XIM): New define.
7050
3fc720e4
GM
7051 * keymap.c (get_keyelt): For menu-items containing a `:filter
7052 FILTER', apply FILTER to the menu-item's definition to get the
7053 real definition to use.
7054
7055 * lisp.h (QCfilter): External declaration.
7056
2c69ced2
GM
7057 * xfns.c (Fimage_size): New function.
7058 (syms_of_xfns): Defsubr it.
7059
f978b2a2
AS
70602000-06-26 Andreas Schwab <schwab@suse.de>
7061
7062 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
7063 Fstring_as_unibyte.
7064
94cc7892
DL
70652000-06-25 Dave Love <fx@gnu.org>
7066
7067 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag,
7068 tgetnum.
7069
7070 * Makefile.in (blockinput.h): Depend on atimer.h.
7071 (atimer.h): Depend on systime.h.
7072
7073 * blockinput.h: Protect against multiple inclusion. Include
7074 atimer.h.
7075
7076 * atimer.h: Protect against multiple inclusion. Include
7077 systime.h.
7078
7079 * lisp.h (swap_in_global_binding): Declare.
7080
b8c24556
KR
70812000-06-24 Ken Raeburn <raeburn@gnu.org>
7082
7083 * process.c (Fopen_network_stream): Turn off atimers for duration
7084 of call to connect. (Patch from Gerd.)
7085
8cf8560b
DL
70862000-06-23 Dave Love <fx@gnu.org>
7087
511c7541
DL
7088 * ralloc.c: Maybe include unistd.h
7089
8cf8560b
DL
7090 * emacs.c (setgrp): Undefine before defining.
7091 (malloc_warning, set_time_zone_rule, index): Prototype.
7092
7093 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
7094 HAVE_STRUCT_TIMEZONE.
7095
7096 * s/osf1.h: Move string.h hack here from alpha.h and make it
7097 conditional.
7098 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
7099 _XOPEN_SOURCE.
7100 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
7101 (SOCKLEN_TYPE): Don't define.
7102
7103 * m/alpha.h: Remove string.h hack.
7104
7105 * s/osf5-0.h: New file.
7106
7107 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
7108 include time.h, done by systime.h.
7109 [__FreeBSD__]: Remove redundant includes.
7110
3fc720e4 7111 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
7112 (delete_temp_file): Return Qnil to avoid warning.
7113
7114 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
7115
7116 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
7117 HAVE_X_WINDOWS.
7118
7119 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
7120
7121 * composite.h (compose_text): Declare.
7122
7123 * xterm.c: Don't include sys/types.h unconditionally. Don't
7124 protect its inclusion with !USG (following xmenu.c).
7125
ea055732
GM
71262000-06-23 Gerd Moellmann <gerd@gnu.org>
7127
7128 * xfns.c (x_create_tip_frame): Initialize frame's colors like
7129 in x_create_frame.
7130
74b01b80
EZ
71312000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
7132
7133 * coding.c (decode_eol_post_ccl): Special handling for undecided
7134 and inconsistent EOL types.
7135
64f3a166
GM
71362000-06-22 Gerd Moellmann <gerd@gnu.org>
7137
16cf31f7
GM
7138 * xrdb.c (x_load_resources): Add default resource for scroll bar's
7139 trough color and main window's background color.
7140
178c5d9c 7141 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events
16cf31f7
GM
7142 differently.
7143
7144 * xterm.h (Xt_app_con): External declaration.
7145
7146 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 7147
486a103d
GM
7148 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
7149
64f3a166
GM
7150 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
7151 (handle_invisible_prop): Record the start of invisible text in
7152 it->add_overlay_start.
7153 (struct overlay_entry): Add member `overlay'.
7154 (handle_overlay_change): Simplify.
7155 (next_overlay_string): After having processed overlay strings at the
7156 end of the buffer, record that fact in
7157 it->overlay_strings_at_end_processed_p.
7158 (compare_overlay_entries): If before- and after-strings come
7159 from the same overlay, let before-strings come first.
7160 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
7161 (load_overlay_strings): Take it->add_overlay_start into account
7162 when adding overlay strings.
7163
7164 * dispextern.h (struct it): Add member add_overlay_start.
7165
bb746ea6
DL
71662000-06-22 Dave Love <fx@gnu.org>
7167
7168 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
7169
7170 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
7171
a8f573f3
KH
71722000-06-22 Kenichi Handa <handa@etl.go.jp>
7173
7174 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
7175 is greater than 0.
7176
9f2bbc92
DL
71772000-06-21 Dave Love <fx@gnu.org>
7178
178c5d9c 7179 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 7180
3ee5041c
SM
71812000-06-21 Stefan Monnier <monnier@cs.yale.edu>
7182
7183 * syntax.c (back_comment): Simplify string-parity counting (with
7184 the added benefit of handling multiple string-styles as long as
7185 they are not intertwined).
7186 Jump to the slow code as soon as a comment starter is found in
7187 a "string_lossage" position. Fixes the case: " /* " /* " */.
7188
4c343001
DL
71892000-06-21 Dave Love <fx@gnu.org>
7190
7191 * Makefile.in: Use GETLOADAVG_LIBS.
7192
7193 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
7194 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
7195
e6365855
SM
71962000-06-20 Stefan Monnier <monnier@cs.yale.edu>
7197
7198 * syntax.c (describe_syntax): Recognize the `n'estable bit.
7199 (Fforward_comment, scan_lists):
7200 Check the comstyle of single-char comment-starters.
7201 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
7202 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
7203 Check the comstyle of single-char comment-starters.
7204 Clarify control-flow around the Scomment case.
e6365855 7205
5700d2cc
DL
72062000-06-20 Dave Love <fx@gnu.org>
7207
d355bd8a
SM
7208 * fns.c (make_hash_table, maybe_resize_hash_table):
7209 Cast arg of next_almost_prime.
5700d2cc 7210
178c5d9c 7211 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
7212
7213 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
7214 and unistd.h.
7215
4a27bdfb
GM
72162000-06-20 Gerd Moellmann <gerd@gnu.org>
7217
a61d762c
GM
7218 * keyboard.c (adjust_point_for_property): Check if display
7219 property should be treated as intangible by looking at its
7220 value.
7221
178c5d9c 7222 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
7223 (display_prop_intangible_p): New functions.
7224
7225 * dispextern.h (display_prop_intangible_p): Add prototype.
7226
7227 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 7228
4a27bdfb
GM
7229 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
7230 argument to sigprocmask.
7231
7232 * s/sco5.h (sigblock): Redefined to pass a pointer as second
7233 argument to sigprocmask.
7234
7235 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
7236 sigprocmask_set, and pass a pointer to it to sigprocmask.
7237
7238 * sysdep.c (sigprocmask_set): New variable.
7239
7240 * fileio.c (make_temp_name): Don't use `%s' in string passed to
7241 report_file_error.
7242
427ec082
SS
72432000-06-20 Sam Steingold <sds@gnu.org>
7244
7245 * xrdb.c: Don't declare xmalloc, xrealloc.
7246
8972fe79 72472000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
7248
7249 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
7250 (re_comp): Cast gettext return value to avoid complaints when
7251 !HAVE_LIBINTL.
7252
074b6efe
DL
72532000-06-20 Dave Love <fx@gnu.org>
7254
f85c008a
DL
7255 * m/stride.h, m/mips.h: Don't define HAVE_GETWD,
7256 HAVE_GETTIMEOFDAY.
7257
5700d2cc 7258 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 7259
d355bd8a 7260 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
7261
7262 * m/alpha.h: Don't declare xmalloc, xrealloc.
7263
0af4f205
DL
7264 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
7265
7266 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
7267
7268 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
7269
7270 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
7271 HAVE_GETWD.
7272
074b6efe
DL
7273 * keyboard.h (poll_for_input_1): Declare.
7274
7275 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
7276
7277 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
7278
7279 * doprnt.c: Don't declare xmalloc, xrealloc.
7280
7281 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
7282 (getenv, ctime, getwd): Removed.
7283 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
7284
7285 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
7286 x_set_tool_bar_lines.
7287
7288 * config.in: Add HAVE_GETWD. Move some definitions above
7289 machine/system includes.
7290
68a5e97b
KH
72912000-06-20 Kenichi Handa <handa@etl.go.jp>
7292
95417e1e
KH
7293 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
7294
68a5e97b
KH
7295 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
7296 contain information about ENCODING.
7297
7298 * fontset.c (FONTSET_ASCII): Use the first element of char table
7299 for an ASCII font, not defalt slot.
7300 (fontset_ref_via_base): If FONTSET doesn't contain information for
7301 C, try the default fontset.
7302 (make_fontset): Don't copy the default fontset.
7303 (fontset_font_pattern): Likewise.
7304 (accumulate_font_info): If ELT is nil, use the corresponding
7305 element in the default fontset.
7306
3b4fa1b2
DL
73072000-06-19 Dave Love <fx@gnu.org>
7308
943e731c
DL
7309 * syntax.c (Fparse_partial_sexp): Doc fix.
7310
7311 * regex.h: Test PROTOTYPES as well as __STDC__.
7312
3b4fa1b2
DL
7313 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
7314 errno, strerror. Put text after #endif in comment.
7315
7316 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for
7317 pcc).
7318
7319 * xterm.c (x_frame_of_widget): Likewise.
7320
cdf0357b
GM
73212000-06-19 Gerd Moellmann <gerd@gnu.org>
7322
7323 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
7324 to Vfundamental_mode_abbrev_table.
7325
7326 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
7327 bogus objects are marked. This slows down GC by ~80 percent, but
7328 it might be worth trying when debugging GC-related problems.
7329 This feature requires conservative stack marking to be enabled.
7330
7331 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
7332 returns XLookupChars, reset `modifiers' to zero.
7333
998e9f8c
DL
73342000-06-19 Dave Love <fx@gnu.org>
7335
7336 * mktime.c: Unprotoized.
7337
18e21ce8 73382000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
7339
7340 * data.c (set_internal): If variable is frame-local,
7341 store the new value immediately into the frame parameter alist.
7342
140c4ac6
KR
73432000-06-19 Ken Raeburn <raeburn@gnu.org>
7344
14358466
KR
7345 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
7346 in the custom handler pointer.
7347
140c4ac6
KR
7348 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
7349 value, or checks for CHAR_META can fail when Lisp_Object is a
7350 union type.
7351 * keymap.c (get_keyelt): Likewise.
7352
10d7bf84
KH
73532000-06-19 Kenichi Handa <handa@etl.go.jp>
7354
7355 * ccl.h (struct ccl_program): New member eol_type.
7356 (struct ccl_spec): New member cr_carryover.
7357
7358 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
7359 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
7360
7361 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
7362 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
7363 (decode_eol_post_ccl): New function.
7364 (decode_coding): Don't detect EOL format here for CCL based coding
7365 systems.
7366 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
7367 decode_eol_post_ccl after running the CCL program.
7368 (code_convert_region): Don't detect EOL format here for CCL based
7369 coding systems.
7370 (decode_coding_string): Likewise.
7371
52e386c2
KR
73722000-06-18 Ken Raeburn <raeburn@gnu.org>
7373
7374 * charset.c (update_charset_table): Use XINT on "iso_final_char"
7375 when treating it as an integer.
7376
7377 * coding.h (encode_coding_string): Declare.
7378
7379 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
7380 it as an integer.
7381
7382 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
7383 "xkeymap" to avoid shadowing the "enum map_type" value that needs
7384 to be passed to get_local_map.
7385
7386 * sound.c (Fplay_sound): Don't call make_number on
7387 Frun_hook_with_args count argument.
7388
7389 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
7390 for lisp objects in X event structure data field, when lisp
7391 objects are represented with unions.
7392 (x_scroll_bar_to_input_event): Ditto.
7393
b357b9d4
KR
73942000-06-16 Ken Raeburn <raeburn@gnu.org>
7395
7396 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
7397 termination of string. Fix sense of test whether
7398 Vline_number_display_limit is an integer.
b357b9d4 7399
a871441d
GM
74002000-06-16 Gerd Moellmann <gerd@gnu.org>
7401
a9021acd
GM
7402 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
7403 only if HAVE_X_WINDOWS.
7404
6344985d
GM
7405 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
7406 of titles.
7407
427ec082 7408 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
7409 out of bounds.
7410
228b083e
EZ
74112000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
7412
7413 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
7414 of its headers.
7415
c25b53a2
KH
74162000-06-15 Kenichi Handa <handa@etl.go.jp>
7417
7418 * coding.c (decode_coding_emacs_mule): Always set src_base at the
7419 start of the while loop.
7420
a6981b11
GM
74212000-06-15 Gerd Moellmann <gerd@gnu.org>
7422
e9924e52
GM
7423 * atimer.c (alarm_signal_handler): Add forward declaration.
7424
a6981b11
GM
7425 * data.c (set_internal): Remove debug code.
7426
25fa6deb
GM
74272000-06-14 Gerd Moellmann <gerd@gnu.org>
7428
dce6b995
GM
7429 * Makefile.in (bootstrap-temacs): Add `-I../src'.
7430
9f817ea4
GM
7431 * unexec.c (toplevel) [COFF]: Include coff.h.
7432
7433 * s/lynxos.h: New file.
7434
7435 * keymap.c (Fsingle_key_description): Enclose function key and
7436 event symbol names in angle brackets.
7437
8a4e3c0c
GM
7438 * xdisp.c (setup_echo_area_for_printing): Call
7439 message_log_maybe_newline if message_buf_print is not set.
7440
7441 * print.c (printchar, strout): Don't check message_buf_print
427ec082 7442 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
7443 function does something useful even when message_buf_print is
7444 already set.
7445
25fa6deb
GM
7446 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines): New
7447 variables.
7448 (ensure_echo_area_buffers): Initialize echo buffer's
7449 truncate lines setting to nil.
7450 (with_echo_area_buffer): Don't set the echo buffer's truncate
7451 lines setting here.
8a4e3c0c 7452 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
7453 of message_truncate_lines.
7454 (resize_mini_window): Handle case that lines are truncated.
7455 (syms_of_xdisp): Initialize Qmessage_truncate_lines. DEFVAR_BOOL
7456 message-truncate-lines.
7457
7458 * keyboard.c (read_char): Bind message-truncate-lines to t
7459 while displaying a help-echo.
7460
7461 * lisp.h (Qmessage_truncate_lines): External declaration.
7462
163dcff3
GM
74632000-06-13 Gerd Moellmann <gerd@gnu.org>
7464
1681ead6
GM
7465 * xdisp.c (Vline_number_display_limit): Renamed from
7466 line_number_display_limit.
7467 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
7468 Extend documentation string. Initialize
7469 Vline_number_display_limit to nil meaning no limit.
7470 (decode_mode_spec): Use Vline_number_display_limit with its new
7471 meaning.
7472
163dcff3
GM
7473 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
7474
18e21ce8 74752000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
7476
7477 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 7478
163dcff3
GM
7479 * xfns.c (x_set_frame_parameters): Comment fix.
7480
7481 * frame.c (store_frame_param): Call swap_in_global_binding if the
7482 variable's current binding was chosen based on this frame.
7483
7484 * data.c (swap_in_global_binding): New function.
7485
a704139d
EZ
74862000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
7487
7488 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
7489 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
7490
9b6610db
EZ
74912000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
7492
7493 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
7494
c68833d2
JR
74952000-06-12 Jason Rumney <jasonr@gnu.org>
7496
7497 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
7498
7499 * w32.h (EMACS_W32_H): Renamed from _NT_H_
7500
7501 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
7502
7503 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
7504
ed1056b3
GM
75052000-06-12 Gerd Moellmann <gerd@gnu.org>
7506
7507 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
7508 (syms_of_xfaces): Defsubr Sdump_colors.
7509 (x_free_colors): Don't treat b&w specially on default visual.
7510 (x_free_dpy_colors): New function.
7511 (free_face_colors): Don't check visual class; it's done
7512 in x_free_colors.
7513
7514 * xterm.c (x_frame_of_widget): New function.
7515 (x_alloc_nearest_color_for_widget): Use it.
7516 (x_copy_dpy_color): New function.
7517 (x_destroy_window): Free various colors.
7518
5050a2ef
KH
75192000-06-12 Kenichi Handa <handa@etl.go.jp>
7520
7521 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
7522
7523 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
7524
7525 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
7526
7527 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
7528
7529 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
7530
fb1b041d
DL
75312000-06-11 Dave Love <fx@gnu.org>
7532
7533 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
7534
ff96b5f4
EZ
75352000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
7536
7537 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
7538
db8eeecd
GM
75392000-06-11 Gerd Moellmann <gerd@gnu.org>
7540
ed1056b3 7541 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
7542 to `XEvent *'.
7543
49b71c5f
KH
75442000-06-10 Kenichi Handa <handa@etl.go.jp>
7545
c479bd55
KH
7546 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
7547 (regex_compile): Fix the code for handling the case of single byte
7548 char and multibyte char being mixed in a range within [...].
7549
ff6a65c2
KH
7550 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
7551 and dst_multibyte members of coding.
7552
49b71c5f
KH
7553 * charset.c (update_charset_table): Update the table
7554 bytes_by_char_head.
7555 (init_charset_once): Initialize elements of bytes_by_char_head to
7556 1 except for leading codes for private charases.
7557
7558 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
7559 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte
7560 sequence.
7561
9e80b57d
KR
75622000-06-09 Ken Raeburn <raeburn@gnu.org>
7563
7564 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
7565 access the data it doesn't point to.
7566
f83fe4b4
GM
75672000-06-08 Gerd Moellmann <gerd@gnu.org>
7568
7569 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 7570 will be translated to a switch-frame event when reading the
f83fe4b4
GM
7571 event queue. This is necessary because Emacs otherwise won't
7572 perform a switch-frame to a new frame until some other event, for
7573 example a keystroke event, forces it to do so. This has various
7574 effects, one visible being that the cursor of a frame created with
7575 C-x 5 2 or switched to with a window manager key binding like
7576 A-TAB stays hollow because selected_window isn't on the newly
7577 focused frame until the switch-frame is performed.
7578
7579 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
7580 generating a switch-frame event if necessary.
7581
7582 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
7583
7584 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
7585 it's an integer.
7586
0890801b
KH
75872000-06-08 Kenichi Handa <handa@etl.go.jp>
7588
7589 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a
7590 charset.
7591
173cbca8
GM
75922000-06-07 Gerd Moellmann <gerd@gnu.org>
7593
3091c2a6
GM
7594 * window.c (displayed_window_lines): Take empty lines at
7595 the bottom of a window into account.
427ec082 7596
f38952fe
GM
7597 * window.c (displayed_window_lines): New function.
7598 (Fmove_to_window_line): Use displayed_window_lines to determine
7599 the number of lines to move, instead of using the window's height.
7600
7601 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
7602 to stop reading, even if the form read sets point to a different
7603 value when evaluated.
7604
427ec082 7605 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
7606 put the cursor.
7607
6ba6c818
KH
76082000-06-07 Kenichi Handa <handa@etl.go.jp>
7609
7610 * fileio.c (e_write): Free composition data if stored in
7611 coding->cmp_data.
7612
5f1aea9a
GM
76132000-06-06 Gerd Moellmann <gerd@gnu.org>
7614
666852af
GM
7615 * xdisp.c (display_line): Set row's and iterator's
7616 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
7617 Set cursor even if row ends in the middle of a character.
7618 (dump_glyph_row): Print values of new flags.
7619 (redisplay_window) <cursor movement in unchanged window>: When
7620 point has been moved forward, and PT is at the end of the cursor
7621 row, don't place the cursor in the next row if the cursor row ends
7622 in the middle of a character or at ZV.
7623
7624 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
7625 (struct glyph_row): Add starts_in_middle_of_char_p and
7626 ends_in_middle_of_char_p.
7627 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
7628 ends_in_middle_of_char_p flag.
7629 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
7630
d13f3e2e
GM
7631 * term.c (append_glyph): Revert change of 2000-06-06.
7632
7633 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
7634 padding glyph not fitting on line as whole character not
7635 fitting on line.
7636
5f1aea9a
GM
7637 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
7638 this isn't true for images with `:ascent 100'.
7639
10cda9b0
KH
76402000-06-06 Kenichi Handa <handa@etl.go.jp>
7641
ed00559d
KH
7642 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
7643 as modified if it is originally unmodified.
7644
10cda9b0
KH
7645 * term.c (encode_terminal_code): Change the way to check if
7646 terminal coding does any conversion.
7647 (append_glyph): Set glyph->pixel_width correctly.
7648
7649 * xdisp.c (display_line): While checking line continuation, pay
7650 attention to a padding glyph.
7651
1969fae2
GM
76522000-06-05 Gerd Moellmann <gerd@gnu.org>
7653
7654 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
7655
162ccef4
DL
76562000-06-05 Dave Love <fx@gnu.org>
7657
f19f32dd
DL
7658 * xdisp.c: Include fontset.h.
7659
7660 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
7661
7662 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
7663
7664 * dispnew.c: Conditionally include term.h.
7665
7666 * coding.h: Declare code_convert_string_norecord.
7667
7668 * frame.h (struct frame): Use volatile unconditionally.
7669
7670 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
7671
7672 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
7673
7674 * systime.h: Protect against multiple inclusion.
7675 (timezone) [USG5_4]: Define as time_t.
7676
7677 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
7678 (Foptimize_char_table, make_temp_name): Declare.
7679
7680 * Makefile.in (xdisp.o): Depend on fontset.h.
7681
7682 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
7683
7684 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
7685 (Foptimize_char_table, make_temp_name): Declare.
7686
427ec082 7687 * s/irix4-0.h:
162ccef4
DL
7688 * s/irix5-0.h:
7689 * s/netbsd.h: Don't define autoconfiscated MATHERR.
7690
2082fe81
DL
76912000-06-02 Dave Love <fx@gnu.org>
7692
7693 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
7694
dcf671d2
GM
76952000-06-02 Gerd Moellmann <gerd@gnu.org>
7696
7697 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 7698 result face, set flags in that face indicating that colors may not
dcf671d2
GM
7699 be freed.
7700
7701 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
7702 glyph, use the ASCII NUL character to determine the face.
7703
d42122a3
DL
77042000-06-02 Dave Love <fx@gnu.org>
7705
7706 * sysdep.c: Conditionally include stdlib.h, unistd.h.
7707 (VFORK_RETURN_TYPE): Remove.
427ec082 7708
d42122a3
DL
7709 * config.in: Add NO_MATHERR.
7710
dd432f16
DL
77112000-06-01 Dave Love <fx@gnu.org>
7712
90aa4ea8
DL
7713 * cmds.c (internal_self_insert): Don't check
7714 Vbefore_change_function, Vafter_change_function.
7715
7716 * insdel.c (signal_before_change, signal_after_change): Likewise.
7717
7718 * buffer.c (Vbefore_change_function, Vafter_change_function):
7719 Variables and their initializations deleted.
7720
2330c9d4
DL
7721 * callint.c (Fcall_interactively): Doc fix.
7722
dd432f16
DL
7723 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
7724
bf9e8804
DL
77252000-05-31 Dave Love <fx@gnu.org>
7726
7727 * textprop.c: Revert last change -- duplicated.
7728
3694b4ab
GM
77292000-05-31 Gerd Moellmann <gerd@gnu.org>
7730
7731 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
7732 in #if 0.
7733
7734 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
7735
f14156cd
JR
77362000-05-31 Jason Rumney <jasonr@gnu.org>
7737
8119aab8
JR
7738 * search.c (Fre_search_forward, Fre_search_backward)
7739 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
7740
f14156cd
JR
7741 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
7742
4aab9be3
JR
77432000-05-30 Jason Rumney <jasonr@gnu.org>
7744
7745 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
7746 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
7747
7748 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type
7749 member.
7750
7751 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
7752 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
7753 expand a nil default_filename.
7754
7755 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
7756 pointer to glyph_to_pixel_coords, not a frame.
7757
7758 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
7759 coding.h to dependencies.
7760
7761 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
7762
7763 * w32console.c (glyph_to_pixel_coords): Change first parameter to
7764 window pointer to be consistent with w32term.c and xterm.c.
7765
7766 * w32fns.c: Format and doc changes to bring closer to xfns.c.
7767 (VIETNAMESE_CHARSET): Define if not defined in system headers.
7768 (Qline_spacing, Qcenter): New variables.
7769 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
7770 (x_set_line_spacing): New function.
7771 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT
7772 macros.
7773 (x_specified_cursor_type): New function.
7774 (x_set_cursor_type): Use it.
7775 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
7776 and icon strings.
7777 (validate_x_resource_name, x_get_resource_string): Measure lengths
7778 of external strings in bytes.
7779 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
7780 GetTextExtentPoint32 with NULL title.
7781 (Fx_create_frame): Initialize Qline_spacing.
7782 (w32_load_system_font): Initialize font->double_byte_p.
7783 (x_to_w32_charset): Use Vw32_charset_info_alist.
7784 (Image, busy cursor, tooltip functions): Merged changes from
7785 xfns.c. Not yet functional on Windows.
7786
7787 * w32gui.h (W32FontStruct): Add double_byte_p member.
7788
7789 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
7790 (emacs_button_translation): Use it.
7791 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
7792 in `mask' to be set.
7793
7794 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
7795 menu strings.
7796
7797 * w32term.c: Format and doc changes to bring closer to xterm.c.
7798 (w32_char_font_type): New enum.
7799 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
7800 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
7801 (w32_encode_char): New function.
7802 (x_encode_char): Removed.
7803 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
7804 x_encode_char and w32_font_is_double_byte.
7805 (x_produce_image_glyph): Use image_ascent.
7806 (x_produce_glyphs): Use new version of w32_per_char_metric and
7807 handle NULL return value. Allow extra line spacing.
7808 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
7809 (w32_get_glyph_overhangs): Remove unicode_p param. Use
7810 w32_font_type member of glyph instead.
7811 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
7812 (fast_find_position): Make sure not to consider rows not visible
7813 in the window.
7814 (w32_read_socket) [WM_MENUSELECT]: Cannot call
7815 w32_menu_display_help with input blocked, as it can abort.
7816 (x_display_and_set_cursor): Choose cursor depending
7817 on buffer-local value of cursor_type.
7818 (x_draw_bar_cursor): Add parameter WIDTH.
7819
7820 * w32term.h (CP_DEFAULT): Define.
7821 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
7822
10fc3187
GM
78232000-05-30 Gerd Moellmann <gerd@gnu.org>
7824
7825 * search.c (Fre_search_forward, Fre_search_backward)
7826 (Fposix_search_backward, Fposix_search_forward): Doc fix.
7827
d0555360
KH
78282000-05-30 Kenichi Handa <handa@etl.go.jp>
7829
7830 * coding.c (detect_coding_iso2022): Fix code for checking
7831 CODING_CATEGORY_MASK_ISO_8_2.
7832
f1ad044f
SM
78332000-05-29 Stefan Monnier <monnier@cs.yale.edu>
7834
7835 * regex.c (PREFETCH_NOLIMIT): New function.
7836 (re_match_2_internal): Use it and adjust the end_match_2 logic.
7837
84ec3b4b
GM
78382000-05-29 Gerd Moellmann <gerd@gnu.org>
7839
66254a13
GM
7840 * syntax.c (find_defun_start): Move test for
7841 open_paren_in_column_0_is_defun_start outside of the loop.
7842
49e70dec
GM
7843 * xdisp.c (redisplay_window): Really switch buffers when
7844 displaying mode lines, and temporarily set selected_frame to the
7845 frame of the window that's redisplayed.
7846
84ec3b4b
GM
7847 * xfaces.c (free_realized_faces): Block/unblock input.
7848 (free_realized_multibyte_face): Ditto.
7849
869a3a14
DL
78502000-05-29 Dave Love <fx@gnu.org>
7851
7852 * textprop.c (Qkeymap): New variable.
7853 (syms_of_textprop): Intern it.
7854
7855 * keymap.c: Include intervals.h.
7856 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
7857
7858 * Makefile.in (keymap.o): Depend on intervals.h.
7859
7860 * keyboard.c (menu_bar_items, tool_bar_items)
7861 (Fexecute_extended_command): Deal with `keymap' property.
7862 (read_key_sequence): Track map from `keymap' property as well as
7863 `local_map'.
7864
7865 * intervals.c (get_local_map): Extra arg to allow looking for
7866 `keymap' too.
7867
7868 * intervals.h (map_property): New enum.
7869 (get_local_map): Extra arg using it.
7870 (Qkeymap): Declare.
7871
84ec3b4b 7872 * lisp.h (get_local_map): Don't declare here.
869a3a14 7873
89d0c844
KH
78742000-05-29 Kenichi Handa <handa@etl.go.jp>
7875
7876 * Makefile.in (callproc.o): Depend on composite.h.
7877
7878 * callproc.c: Include composite.h.
7879 (Fcall_process): Handle composition correctly.
7880
7881 * coding.h (coding_allocate_composition_data): Extern it.
7882 (coding_restore_composition): Likewise.
7883
7884 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
7885 yet allocated, finish decoding with result
7886 CODING_FINISH_INSUFFICIENT_CMP.
7887 (coding_allocate_composition_data): Make it non-static.
7888 (coding_restore_composition): Likewise.
7889
797a084a
EZ
78902000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
7891
7892 * charset.c (syms_of_charset): Revert last change.
7893
cf872af5
EZ
78942000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
7895
7896 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
7897 charsets as unibyte, with 1-column screen width. Sent by Kenichi
7898 Handa.
cf872af5 7899
5b1ae051
EZ
79002000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
7901
7902 * charset.c (syms_of_charset): Set width of character sets
7903 eight-bit-control and eight-bit-graphic to 1 column.
7904
34ec9ebe
GM
79052000-05-26 Gerd Moellmann <gerd@gnu.org>
7906
7907 * config.in (HAVE_SPEED_T): New define.
7908
7909 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
7910 `extern speed_t'.
7911
dd854dc2
DL
79122000-05-26 Dave Love <fx@gnu.org>
7913
7914 * coding.c (shrink_decoding_region): Initialize eol_conversion.
7915
7916 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
7917 (Fsubr_arity): New function.
7918 (syms_of_data): Install them.
7919
ba9f8f95
KH
79202000-05-26 Kenichi Handa <handa@etl.go.jp>
7921
0f3e0672
KH
7922 * charset.c (init_charset_once): Set the table bytes_by_char_head
7923 correctly.
7924
cebefb44
KH
7925 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
7926 the default fontset to what Emacs uses by default.
0f3e0672
KH
7927 (check_registry_encoding): This function deleted.
7928 (Fset_fontset_font): Remove the adhoc condition for the default
7929 fontset. Allow cons in FONTNAME.
cebefb44 7930
0f3e0672
KH
7931 * fns.c (map_char_table): Ignore char-table entries for
7932 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 7933
7a18af49
KR
79342000-05-25 Ken Raeburn <raeburn@gnu.org>
7935
7936 * emacs.c (main): Initialize keyboard syms before initializing
7937 window code, so face names are available.
7938
d2af47df
SM
79392000-05-25 Stefan Monnier <monnier@cs.yale.edu>
7940
7941 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
7942 of an anchor at the beginning of a shy-group.
7943
fc6a6a4e
GM
79442000-05-25 Gerd Moellmann <gerd@gnu.org>
7945
7946 * xdisp.c (handle_invisible_prop): Don't try to skip over
7947 invisible text if end of text is already reached.
7948
005f0d35
DL
79492000-05-25 Dave Love <fx@gnu.org>
7950
02513cdd
DL
7951 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
7952
005f0d35
DL
7953 * coding.c (encode_eol): Add null statement after label.
7954
89f6ca4e
EZ
79552000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
7956
7957 * w16select.c (Fw16_set_clipboard_data): Fix the change from
7958 2000-05-20.
7959
a4e1759e
KH
79602000-05-25 Kenichi Handa <handa@etl.go.jp>
7961
7962 * ccl.c (ccl_driver): Fix previous change.
7963
eacfd7fe
KH
79642000-05-25 Kenichi Handa <handa@etl.go.jp>
7965
46ab33a9
KH
7966 * coding.c (run_pre_post_conversion_on_str): Set point to the
7967 beginning of buffer before calling coding->post_read_conversion.
7968 (decode_coding_string): Give correct args to
7969 run_pre_post_conversion_on_str.
7970 (encode_coding_string): Likewise.
7971
eacfd7fe
KH
7972 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
7973 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
7974 eight-bit-graphic correctly.
7975
f8569325
DL
79762000-05-24 Kenichi HANDA <handa@etl.go.jp>
7977
7978 * fileio.c (Finsert_file_contents): Even if a file is not found,
7979 execute codes for setting up coding system. Call
7980 after-insert-file-functions unconditionally.
7981
04545643
GM
79822000-05-24 Gerd Moellmann <gerd@gnu.org>
7983
7984 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
7985 BSD_PGRPS are not defined.
7986
747d90ea
KH
79872000-05-24 Kenichi Handa <handa@etl.go.jp>
7988
7989 * charset.c (update_charset_table): Accept nil in LONG_NAME and
7990 DESCRIPTION.
7991 (syms_of_charset): Avoid building same strings.
7992
716e3b88
GM
79932000-05-23 Gerd Moellmann <gerd@gnu.org>
7994
7995 * lread.c (Fload): Add a comment about the meaning of
7996 Vuser_init_file being t.
7997
7998 * puresize.h (BASE_PURESIZE): Increase to 675000.
7999
8000 * s/gnu-linux.h (setpgrp): Don't define it here because this
8001 prevents compilation on GNU/Linux systems with glib 2.2.
8002
8003 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
8004 as setpgid.
427ec082 8005
9aeb39fa
EZ
80062000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
8007
8008 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
8009 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
8010 version.
8011 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
8012
29ced61b
KH
80132000-05-23 Kenichi Handa <handa@etl.go.jp>
8014
0574a2ed
KH
8015 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE
8016 unconditionally.
8017
3d80f24d
KH
8018 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
8019
8020 * term.c (encode_terminal_code): Set coding->src_multibyte
8021 properly.
8022
29ced61b
KH
8023 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
8024
d7e00792
KH
80252000-05-22 Kenichi Handa <handa@etl.go.jp>
8026
c9d80d38
KH
8027 * keyboard.c (read_char): Allow character codes 128..255 to be
8028 handled by input-method-function.
8029
d7e00792
KH
8030 * insdel.c (adjust_markers_for_replace): Fix previous change.
8031 (adjust_after_replace): If PREV_TEXT is nil, call
8032 adjust_markers_for_insert, not adjust_markers_for_replace.
8033
087121cc 80342000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 8035
087121cc
GM
8036 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
8037 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
8038 [HAVE_GRANDPT]: Define.
8039 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
8040
8041 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
8042 like SYSV_PTYS.
8043
8044 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
8045
8046 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
8047
c9671f81
KH
80482000-05-20 Kenichi Handa <handa@etl.go.jp>
8049
8050 The following changes are to handle 8-bit characters in a
8051 multibyte buffer/string without facing with byte combining
8052 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
8053 eight-bit-graphic (for 0xA0..0xFF) are introduced.
8054
8055 * Makefile.in (fns.o): Depend on charset.h.
8056
8057 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
8058 convert it to unibyte.
8059 (make_string): Use parse_str_as_multibyte, not chars_in_text.
8060
8061 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
8062 apparent char boundary.
8063 (Fset_buffer_multibyte): Convert 8-bit characters in the range
8064 0x80..0x9F to/from multibyte form.
8065
8066 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
8067 to unibyte.
8068
8069 * callproc.c (Fcall_process): Always encode an argument string if
8070 it is multibyte. Setup src_multibyte and dst_multibyte members of
8071 process_coding properly.
ce75fd23 8072
c9671f81
KH
8073 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
8074 SPLIT_NON_ASCII_CHAR.
8075
8076 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
8077 as is.
8078 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
8079
8080 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New
8081 variables.
8082 (SPLIT_CHARACTER_SEQ): This macro deleted.
8083 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is
8084 valid.
8085 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
8086 and eight-bit-graphic.
8087 (char_to_string): Likewise. Signal an error for too large
8088 character code.
8089 (char_printable_p): Return 0 for 8-bit characters.
8090 (update_charset_table): Update iso_charset_table only when a final
8091 character is non-negative.
8092 (find_charset_in_text): Renamed from find_charset_in_str.
8093 Arguments and return value changed. Callers changed.
8094 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
8095 be -1 if CHARSET is used only internally.
8096 (Fmake_char_internal): Handle new charsets; eight-bit-control and
8097 eight-bit-graphic.
8098 (Fcharset_after): Simplified.
8099 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
8100 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
8101 (multibyte_chars_in_text): Simplified by assuming there's no
8102 invalid multibyte sequence.
8103 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
8104 str_as_unibyte): New functions.
8105 (Fstring): Simpified by assuming that byte combining never
8106 happens.
8107 (init_charset_once): Initialization for
8108 LEADING_CODE_8_BIT_CONTROL.
8109 (syms_of_charset): Intern and staticpro Qeight_bit_control and
8110 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
8111 eight-bit-control and eight-bit-graphic.
8112
8113 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL,
8114 CHARSET_8_BIT_GRAPHIC): New macros.
8115 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
8116 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
8117 (CHARSET_REVERSE_CHARSET): Likewise.
8118 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
8119 eight-bit-graphic.
8120 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
8121 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
8122 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
8123 encounter an invalid multibyte sequence.
8124 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
8125 sequence is always valid.
8126 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
8127 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New
8128 macros.
8129 (CHAR_STRING): For 8-bit characters, call char_to_string.
8130 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
8131 multibyte sequence is always valid.
8132 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
8133 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
8134 str_as_unibyte): Extern them.
8135 (BCOPY_SHORT): Fix a bug.
8136 (CHAR_LEN): This macro deleted. Callers changed to use
8137 CHAR_BYTES.
8138 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
8139 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
8140 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
8141
bd4bde7f 8142 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81
KH
8143 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
8144 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
8145 EMIT_BYTES): New macros.
8146 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
8147 DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
8148 macros deleted.
8149 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
8150 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
8151 check the validity of multibyte sequence.
8152 (decode_coding_emacs_mule): New function.
8153 (encode_coding_emacs_mule): New macro.
8154 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
8155 the source.
8156 (DECODE_ISO_CHARACTER): Just return a character code.
8157 (DECODE_COMPOSITION_START): Set coding->result instead of result.
8158 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
8159 EMIT_CHAR to produced decoded characters. Exit the loop only by
8160 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
8161 block here.
8162 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
8163 only position codes for an invalid character.
8164 (encode_designation_at_bol): Return new destination pointer. 5th
8165 arg DSTP is changed to DST.
8166 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
8167 from the source by ONE_MORE_CHAR. Don't handle the case of last
8168 block here.
8169 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
8170 macros deleted.
8171 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
8172 detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
8173 TWO_MORE_BYTES to fetch a byte from the source.
8174 (encode_eol): Pay attention to coding->src_multibyte.
8175 (detect_coding, detect_eol): Preserve members src_multibyte and
8176 dst_multibyte.
8177 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
8178 (encoding_buffer_size): Set magnification to 3 for all coding
8179 systems that require encoding.
8180 (ccl_coding_driver): For decoding, be sure that the result is
8181 valid multibyte sequence.
8182 (decode_coding): Initialize coding->errors and coding->result.
8183 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
8184 and raw-text, always call decode_eol. Handle the case of last
8185 block here. If not coding->dst_multibyte, convert the resulting
8186 sequence to unibyte.
8187 (encode_coding): Initialize coding->errors and coding->result.
8188 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
8189 and raw-text, always call encode_eol. Handle the case of last
8190 block here.
8191 (shrink_decoding_region, shrink_encoding_region): Detect cases
8192 that we can't skip data more rigidly.
8193 (code_convert_region): Setup src_multibyte and dst_multibyte
8194 members of coding. For decoding, if the buffer is multibyte,
8195 convert the source sequence to unibyte in advance. For encoding,
8196 if the buffer is multibyte, convert the resulting sequence to
8197 multibyte afterward.
8198 (run_pre_post_conversion_on_str): New function.
8199 (code_convert_string): Deleted and divided into the following two.
8200 (decode_coding_string, encode_coding_string): New functions.
8201 (code_convert_string1, code_convert_string_norecord): Call one of
8202 above.
8203 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
8204 MAKE_NON_ASCII_CHAR.
8205 (Fset_terminal_coding_system_internal,
8206 Fset_safe_terminal_coding_system_internal): Setup src_multibyte
8207 and dst_multibyte members.
8208 (init_coding_once): Initialize iso_code_class with new enum
8209 ISO_control_0 and ISO_control_1.
8210
8211 * coding.h (enum iso_code_class_type): Member ISO_control_code is
8212 devided into ISO_control_0 and ISO_control_1.
8213 (struct coding_system): New members src_multibyte, dst_multibyte,
8214 errors, and result. Delete member fake_multibyte.
8215 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
8216 nonzero.
8217 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
8218 nonzero.
8219
8220 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
8221 (Faset): Likewise.
8222
8223 * editfns.c (Fformat): Be sure to convert 8-bit characters to
8224 multibyte form.
8225 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
8226 combining occurs.
8227 (Ftranspose_region): Delete codes for handling byte combining.
8228
8229 * fileio.c (Finsert_file_contents): Setup src_multibyte and
8230 dst_multibyte members of coding. On handling REPLACE on unibyte
8231 buffer, convert the result of decode_coding to unibyte. On
8232 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 8233 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
8234 multibyteness of the source (buffer or string).
8235
8236 * fns.c (concat): Handle 8-bit characters correctly.
8237 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
8238 unibyte in the result.
8239 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
8240 valid multibyte form in the result.
8241 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
8242 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
8243 return -1, signal an error.
8244 (base64_encode_1): New arg MULTIBYTE. Get each character by
8245 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
8246 character is found, return -1.
8247 (Fbase64_decode_region): Delete codes for handling byte-combining.
8248 Treat each decoded byte as a unibyte character.
8249 (Fbase64_decode_string): Return unibyte string.
8250 (Fcompare_strings, concat, string_byte_to_char): Use
8251 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
8252 FETCH_STRING_CHAR_ADVANCE.
8253 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
8254 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
8255
8256 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
8257 SPLIT_NON_ASCII_CHAR.
8258 (fontset_ref_via_base, fontset_set): Likewise
8259
8260 * insdel.c (adjust_markers_for_record_delete): Deleted.
8261 (adjust_markers_for_insert): Argument changed. Caller changed.
8262 (adjust_markers_for_replace): Likewise.
8263 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error,
8264 CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
8265 (copy_text): Delete unused local varialbe c_save. For converting
8266 to multibyte, be sure to make all 8-bit characters in valid
8267 multibyte form.
8268 (count_size_as_multibyte): Handle 8-bit characters correctly.
8269 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
8270 adjust_after_replace, replace_range, del_range_2)
8271 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
8272 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
8273 adjust_after_replace, replace_range, del_range_2) Delete codes for
8274 handling byte combining.
8275 (adjust_before_replace): Deleted.
427ec082 8276
c9671f81
KH
8277 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
8278 SPLIT_NON_ASCII_CHAR.
8279 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
8280 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE
8281 unconditionally.
8282 (Fkey_description): Likewise.
8283
8284 * lread.c (read1): On reading multibyte string, be sure to make
8285 all 8-bit chararacters in valid multibyte form.
8286 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
8287
8288 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
8289 unconditionally.
8290
8291 * process.c (Fstart_process): GCPRO current_dir before calling
8292 Ffind_operation_coding_system. Encode arguments here.
8293 (create_process): Don't encode arguments here. Setup
8294 src_multibyte and dst_multibyte members of struct coding.
8295 (read_process_output): Setup src_multibyte and dst_multibyte
8296 members of struct coding. If the output is to multibyte buffer,
8297 always decode the output of the process. Adjust the
8298 representation of 8-bit characters to the multibyteness of the
8299 output.
8300 (send_process): Setup coding->src_multibyte according to the
8301 multibyteness of the source.
8302
8303 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE
8304 unconditionally.
8305 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
8306 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
8307
8308 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of
8309 CHAR_LEN.
8310
8311 * w16select.c (Fw16_set_clipboard_data): Setup members
8312 src_multibyte and dst_multibyte of coding. Adjusted for the
8313 change for find_charset_in_str.
8314 (Fw16_get_clipboard_data): Likewise.
8315
8316 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
8317 dst_multibyte of coding.
8318 (x_to_w32_font): Likewise.
8319
8320 * w32select.c (Fw32_set_clipboard_data): Setup members
8321 src_multibyte and dst_multibyte of coding. Adjusted for the
8322 change for find_charset_in_str.
8323 (Fw32_get_clipboard_data): Likewise.
8324
8325 * xdisp.c (get_next_display_element): Handle 8-bit characters
8326 correctly.
8327 (next_element_from_display_vector): Use CHAR_BYTES instead of
8328 CHAR_LEN.
8329 (disp_char_vector): Use SPLIT_CHAR instead of
8330 SPLIT_NON_ASCII_CHAR.
8331
8332 * xselect.c (selection_data_to_lisp_data): Setup members
8333 src_multibyte and dst_multibyte of coding. Adjusted for the
8334 change for find_charset_in_str.
8335 (lisp_data_to_selection_data): Likewise.
8336
5f64c9e0
GM
83372000-05-19 Gerd Moellmann <gerd@gnu.org>
8338
2b63d473
GM
8339 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed
8340 buffer.
8341
5f64c9e0
GM
8342 * dispextern.h (Vimage_types): Add extern declaration.
8343
8344 * xdisp.c (Vimage_types): Moved here from xfns.c.
8345 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
8346
8347 * xfns.c (Vimages_types): Moved to xdisp.c.
8348 (syms_of_xfns): Move `image-types' to xdisp.c.
8349
8350 * w32fns.c (Vimage_types): Removed.
8351 (syms_of_w32fns): Remove `image-types'.
8352
813086ea
KH
83532000-05-18 Kenichi Handa <handa@etl.go.jp>
8354
8355 * fns.c (map_char_table): Pay attention to character number of
8356 charset. Check the validity of charset at the first level. For
8357 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
8358 the default value.
8359
8360 * fontset.c: Include "buffer.h".
8361 (fs_load_font): If the face has fontset, record the face ID in
8362 that fontset.
8363 (Finternal_char_font): New function.
8364 (accumulate_font_info): New function.
8365 (Ffontset_info): Rewritten for the new fontset implementation.
8366 (syms_of_fontset): Register Vdefault_fontset in the first element
8367 of Vfontset_table. Include Vdefault_fontset in
8368 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
8369 function.
8370
bdaebbf0
DL
83712000-05-16 Dave Love <fx@gnu.org>
8372
8373 * m/iris5d.h: Deleted -- unused.
8374
cb613bb8
GM
83752000-05-16 Gerd Moellmann <gerd@gnu.org>
8376
b15f3b77
GM
8377 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
8378 `invalid' instead of `illegal'.
8379
8380 * indent.c (Fmove_to_column): When ending within a tab, insert
8381 spaces first so that markers at the end of the tab get adjusted.
8382
835c1b36
GM
8383 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
8384 buffer list that wasn't selected in that frame.
8385
cb613bb8
GM
8386 * filelock.c (get_boot_time): To obtain an 8 char file name, which
8387 is needed on mescaline, use a 2 char prefix, and call
8388 make_temp_name with second arg non-zero.
8389
8390 * fileio.c (make_temp_name): New function, extracted from
8391 Fmake_temp_name.
8392 (Fmake_temp_name): Use it.
8393
f685bea9
EZ
83942000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
8395
8396 * window.c (coordinates_in_window): Subtract 1 when computing
8397 right_x.
8398
a1b8d58b
GM
83992000-05-15 Gerd Moellmann <gerd@gnu.org>
8400
8401 * Makefile.in (lisp): Add env.elc.
8402
8403 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
8404
a265079f
GM
84052000-05-12 Gerd Moellmann <gerd@gnu.org>
8406
8407 * search.c (Freplace_match): Handle case of `\N' in the
8408 replacement when there's no group N.
8409
da4496b6
GM
84102000-05-11 Gerd Moellmann <gerd@gnu.org>
8411
0ace421a
GM
8412 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
8413 of the message to message_dolog.
8414
1172eb8d
GM
8415 * keyboard.c (read_char): Don't clear current message for help
8416 events; let the code handling help events handle this. Change
8417 code detecting help events that should be ignored.
8418
da4496b6
GM
8419 * xdisp.c (handle_single_display_prop): Don't try to set PT if
8420 we're interating over a string.
8421
0623e40f
DL
84222000-05-09 Dave Love <fx@gnu.org>
8423
8424 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
8425 that offset before writing. Move gcpro region past call of
8426 Ffile_regular_p.
8427
bae2503b
DL
84282000-05-04 Dave Love <fx@gnu.org>
8429
8430 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
8431
ec82fb2f
GM
84322000-05-04 Gerd Moellmann <gerd@gnu.org>
8433
8434 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
8435 of inserted characters when BUF equals the current buffer, and PT
8436 is in front of or equal to FROM.
8437
cbf18892
GM
84382000-05-03 Gerd Moellmann <gerd@gnu.org>
8439
4ff40dd0
GM
8440 * xdisp.c (handle_single_display_prop): If display property value
8441 is invalid, or something not supported on the frame, restore
8442 iterator's position to what it was initially. Make sure to return
8443 0 for invalid and unsupported property values.
8444
cbf18892
GM
8445 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
8446 that x_per_char_metric returns null.
8447
1b0672c3
GM
84482000-05-02 Gerd Moellmann <gerd@gnu.org>
8449
576da55d
GM
8450 * xterm.h (struct face): Add forward declaration.
8451 (struct image): Ditto.
8452 (image_ascent): Add prototype.
8453
8454 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
8455 (x_draw_image_relief, x_draw_image_foreground_1): Call function
8456 image_ascent instead of using IMAGE_ASCENT.
8457
8458 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
8459 (IMAGE_ASCENT): Removed.
8460
8461 * xfns.c (Qcenter): New variable.
8462 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
8463 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
8464 (image_ascent): New function.
8465 (lookup_image): Recognize `:ascent center'.
8466 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
8467 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
8468 (xbm_load): Don't set image's ascent here.
8469 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
8470 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
8471 check ascent values here.
8472 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
8473 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
8474 (syms_of_xfns): Initialize Qcenter.
8475
1b0672c3
GM
8476 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
8477 to the limits, increase the limits.
8478
0d7811ed
KH
84792000-05-01 Kenichi Handa <handa@etl.go.jp>
8480
8481 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
8482 Check Vfont_encoding_alist against the full name of the opened
8483 font.
8484
a943a5ca
GM
84852000-04-28 Gerd Moellmann <gerd@gnu.org>
8486
8487 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
8488 taller than the window.
8489
5dba1e29
KH
84902000-04-28 Kenichi Handa <handa@etl.go.jp>
8491
8492 * xfaces.c (realize_x_face): Fix the argument of the second
8493 xassert. BASE_FACE may not be a face for ASCII.
8494
353964e3
GM
84952000-04-27 Gerd Moellmann <gerd@gnu.org>
8496
c76e04a8
GM
8497 * print.c (print_object): Treat print-length < 0 as nil.
8498
8499 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
8500
8501 * s/freebsd.h (TERMCAP_OBJ): Removed.
8502 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
8503
8504 * lread.c (read1): Don't treat period followed by certain
8505 characters as symbol start.
8506
8507 * xfns.c (slurp_file): New function.
8508 (xbm_image_p): Handle case of in-memory XBM files.
8509 (xbm_scan): Rewritten to work on memory buffers instead of files.
8510 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
8511 Work on memory buffers instead of files. If DATA is null test
8512 if buffer looks like an in-memory XBM file.
8513 (xbm_load_image): Renamed from xbm_load_image_file. Work on
8514 memory buffers instead of files.
8515 (xbm_file_p): New function.
8516 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
8517
353964e3
GM
8518 * lread.c (end_of_file_error): New function.
8519 (read1): Call it instead of signaling `end-of-file' directly.
8520
427ec082 8521 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
8522 with Fprinc instead of Fprin1.
8523
24d744ac
KR
85242000-04-26 Ken Raeburn <raeburn@gnu.org>
8525
8526 * window.c (freeze_window_start): Check that minibuffer scroll
8527 window isn't nil before extracting the window structure pointer
8528 from it.
8529
8530 * undo.c (record_delete): If we hit the end of the undo list, stop
8531 picking elements apart.
8532
7464346d
GM
85332000-04-26 Gerd Moellmann <gerd@gnu.org>
8534
8535 * xdisp.c (display_line): If lines are continued, restore
8536 iterator's ascent/descent information to the values before the
8537 first glyph not fitting on the line.
8538
612839b6
GM
85392000-04-25 Gerd Moellmann <gerd@gnu.org>
8540
8541 * xdisp.c (try_window_id) <all changes above window start>: Adjust
8542 positions in glyph matrix. Don't compute new window end
8543 positions.
8544
8545 * dispnew.c (increment_matrix_positions): Renamed from
8546 increment_glyph_matrix_buffer_positions.
8547 (increment_row_positions): Renamed from
8548 increment_glyph_row_buffer_positions.
8549
8550 * dispextern.h: Change names of renamed functions from dispnew.c
8551 in prototypes.
8552
cc181e95
GM
85532000-04-24 Gerd Moellmann <gerd@gnu.org>
8554
abfcc168
GM
8555 * fileio.c (Fdo_auto_save): Create directories for auto-save
8556 list file if necessary.
8557
cc181e95
GM
8558 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
8559 from buffer or frame.
8560 (automatic_hscrolling_p): New variable.
8561 (hscroll_windows): Scroll windows horizontally only if automatic
8562 hscrolling is allowed.
8563 (syms_of_xdisp): New variable `automatic-hscrolling'.
8564
8565 * frame.h (struct frame): Add member extra_line_spacing.
8566
8567 * xfns.c (x_set_line_spacing): New function.
8568 (Fx_create_frame): Set line spacing from resources.
8569 (Qline_spacing): New variable.
8570 (syms_of_xfns): Initialize Qline_spacing.
427ec082 8571
cc181e95
GM
8572 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
8573
8574 * buffer.c (init_buffer_once): Handle extra_line_spacing.
8575 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 8576 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
8577 extra_line_spacing from default value.
8578 (init_buffer_once): Initialize default value of extra_line_spacing.
8579
8580 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
8581 and extra3.
8582
8583 * xterm.c (x_produce_glyphs): Remove reference to struct it's
8584 prompt_width. Add extra line spacing.
8585
8586 * term.c (produce_glyphs): Remove reference to struct it's
8587 prompt_width.
8588
8589 * dispextern.h (struct it): Remove member prompt_width, add
8590 extra_line_spacing.
8591
58827478
GM
85922000-04-22 Gerd Moellmann <gerd@gnu.org>
8593
8594 * dispnew.c (update_frame_line): When writing a whole line, make
8595 sure cursor is in the right row afterwards, otherwise a use of
8596 capability `ch' in cmgoto might leave the cursor in the row below.
8597
25a87f42
GM
85982000-04-21 Gerd Moellmann <gerd@gnu.org>
8599
8600 * lisp.h (struct Lisp_Buffer_Cons): Remove.
8601
8602 * keyboard.c (timer_check): Fix typo in comment.
8603
54edf5c2
KH
86042000-04-21 Kenichi Handa <handa@etl.go.jp>
8605
8606 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
8607 name change: ch -> character.
8608
3a64eef5
GM
86092000-04-20 Gerd Moellmann <gerd@gnu.org>
8610
8611 * keyboard.c (echo_message_buffer): New variable.
8612 (echo_now): Set echo_message_buffer to the echo area buffer used
8613 to display the echo.
8614 (cancel_echoing): Reset echo_message_buffer to nil.
8615 (read_char): Code rewritten that handles canceling an echo or
8616 echoing a dash, respectively.
8617
8618 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
8619 directory doesn't exist.
8620
6142fdcb
DL
86212000-04-19 Dave Love <fx@gnu.org>
8622
8623 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
8624 (concat): Don't allow numeric args.
8625 (Fconcat): Doc change.
6142fdcb 8626
ac6b5352
SM
86272000-04-19 Stefan Monnier <monnier@cs.yale.edu>
8628
8629 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
8630 instead define end_match(1|2) more carefully.
8631 Use GET_CHAR_BEFORE_2 for `begline'.
8632
cb9215e4
GM
86332000-04-19 Gerd Moellmann <gerd@gnu.org>
8634
5e3dac3f
GM
8635 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
8636 on 64-bit systems where NULL is defined as `0'.
8637
8638 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
8639 the `variable argument list' to make it work on Alpha.
8640
cb9215e4
GM
8641 * m/alpha.h (_LP64) [!_LP64]: Define.
8642 (ORDINARY_LINK): Define for NetBSD.
8643
8644 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 8645
f532dca0
DL
86462000-04-19 Dave Love <fx@gnu.org>
8647
c750667e
DL
8648 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
8649 change.
8650
8651 * Makefile.in (LIBS): Don't use.
8652 (GETLOADAVG_OBJ): Define again.
8653 (otherobj): Add GETLOADAVG_OBJ.
8654
f532dca0
DL
8655 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
8656
1c7e22fd
GM
86572000-04-18 Gerd Moellmann <gerd@gnu.org>
8658
f6d3257b
GM
8659 * lread.c (read_filtered_event): Cancel and start busy cursor.
8660
427ec082 8661 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
8662 that the per-character metrics may be null.
8663
e10f64e7
GM
86642000-04-17 Gerd Moellmann <gerd@gnu.org>
8665
0daee095
GM
8666 * buffer.c (clone_per_buffer_values): New function.
8667 (Fmake_indirect_buffer): Add optional argument CLONE. Call
8668 clone_per_buffer_values if CLONE is not nil.
8669
e10f64e7
GM
8670 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
8671
38687d43
DL
86722000-04-16 Dave Love <fx@gnu.org>
8673
8674 * Makefile.in: Remove obsolete localcpp stuff.
8675 (GETLOADAVG_OBJ): Don't define.
8676 (obj): Move LIBOBJS...
8677 (otherobj): ... to here.
8678 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
8679 whitespace-only lines after the continuation (Irix).
8680
c21c7262
GM
86812000-04-14 Gerd Moellmann <gerd@gnu.org>
8682
8683 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
8684
8685 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
8686
314767c0
DL
86872000-04-14 Dave Love <fx@gnu.org>
8688
8689 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
8690 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
8691 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
8692 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
8693 NLIST_STRUCT.
8694
8695 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
8696 autoconfiscated HAVE_GETLOADAVG.
8697
8698 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
8699 BROKEN_MKTIME.
8700
a2522dca
GM
87012000-04-14 Gerd Moellmann <gerd@gnu.org>
8702
8703 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
8704 (fill_in_lock_file_name): Avoid existing files that aren't
8705 links.
8706
33744b5d
DL
87072000-04-14 Dave Love <fx@gnu.org>
8708
c21c7262 8709 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
8710 (INTERVAL_SRC): Convert to make variable.
8711 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
8712 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
8713 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
8714 add LIBOBJS.
8715 (SOME_MACHINE_OBJECTS): Remove interval stuff.
8716 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
8717 (shortlisp): Add facemenu, float-sup, frame.
8718 (SOME_MACHINE_LISP): Remove them from here.
8719 (LIBES): Change unused LDLIBS to autoconf LIBS.
8720
8721 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
8722
9d3d5916
KH
87232000-04-14 Kenichi Handa <handa@etl.go.jp>
8724
8725 * composite.c (update_compositions): If FROM and TO are not in a
8726 valid range, do nothing.
8727
198e3c7a
GM
87282000-04-13 Gerd Moellmann <gerd@gnu.org>
8729
8730 * tparam.c (tparam1): Abort when encountering an unknown
8731 `%'-specifier.
8732
8733 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
8734 terminfo.o.
8735
8736 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
8737 as TERMCAP_OBJ.
8738
055a28c9
EZ
87392000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
8740
8741 * fileio.c (a_write): Remove redundant semi-colons.
8742 (e_write): Return -1 if failed to write all the data.
8743 This fixes the changes made at 1999-12-15.
8744
f5c75033
DL
87452000-04-12 Dave Love <fx@gnu.org>
8746
8747 * fns.c (mapcar1): Test for null vals to support mapc.
8748 (Fmapc): New function.
8749
0c3cfc51
EZ
87502000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
8751
8752 * msdos.c (NUM_MOUSE_BUTTONS): Define.
8753 (IT_frame_up_to_date): Support the buffer local value of
8754 cursor-type, if defined.
8755
33465a31
DL
87562000-04-10 Dave Love <fx@gnu.org>
8757
8758 * editfns.c (preceding-char, following-char): Doc fix.
8759
6ed56568
KR
87602000-04-10 Ken Raeburn <raeburn@gnu.org>
8761
8762 * Makefile.in (temacs): Revert 2000-03-12 change.
8763
7cf80d4e
JR
87642000-04-10 Jason Rumney <jasonr@gnu.org>
8765
8766 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
8767
34f3f342
GM
87682000-04-10 Gerd Moellmann <gerd@gnu.org>
8769
1a1b1895
GM
8770 * xdisp.c (setup_echo_area_for_printing): Choose an echo
8771 area buffer, if it's not set up yet.
8772
34f3f342
GM
8773 * indent.c (compute_motion): Set immediate_quit.
8774
be0dbdab
GM
87752000-04-09 Gerd Moellmann <gerd@gnu.org>
8776
c45be9ac
GM
8777 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New
8778 variable.
8779 (realize_tty_face): Suppress boldness if colors are the inverse of
8780 the default colors, and tty_suppress_bold_inverse_default_colors_p
8781 is set.
8782 (Ftty_suppress_bold_inverse_default_colors): New function.
8783 (syms_of_xfaces): Defsubr it.
8784
be0dbdab
GM
8785 * buffer.c (Frestore_buffer_modified_p): New function.
8786 (syms_of_buffer): Defsubr it.
8787
e8413c3b
KR
87882000-04-08 Ken Raeburn <raeburn@gnu.org>
8789
87f67317
KR
8790 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
8791 charset id (int) argument, not a charset (Lisp_Object).
8792
e8413c3b
KR
8793 * coding.h (code_convert_string): Declare.
8794 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
8795 object, as the fourth argument to code_convert_string.
8796
8797 * fontset.c (make_fontset_for_ascii_face): Use XINT on return
8798 value.
8799 (Fset_fontset_font): Use EQ to compare lisp objects.
8800
7c752c80
KR
88012000-04-05 Ken Raeburn <raeburn@gnu.org>
8802
c0333abc
KR
8803 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
8804 a pointer that looks like a lisp object.
8805 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
8806 zero, instead see whether it's an integer object, since they can't
8807 have intervals.
8808 (GET_INTERVAL_OBJECT): Simply assign to the destination.
8809
7c752c80
KR
8810 * dispnew.c (allocate_matrices_for_frame_redisplay,
8811 direct_output_forward_char): Use X(U)INT and make_number as needed
8812 to convert between (unsigned) int values and lisp integers.
8813 * keyboard.c (read_key_sequence): Likewise.
8814 * lread.c (substitute_object_recurse): Likewise.
8815 * fns.c (concat, hash_lookup, hash_remove): Likewise.
8816 * minibuf.c (do_completion, Fminibuffer_complete_word,
8817 Fminibuffer_completion_help): Likewise.
8818 * term.c (produce_special_glyphs): Likewise.
8819
8820 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
8821 * print.c (print_preprocess, print_object): Likewise.
8822
8823 * search.c (compile_pattern): Use NILP when checking for nil.
8824
74e49b38
KR
8825 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
8826 __OPTIMIZE__]: Provide a GNU C macro version that handles
8827 lisp-object unions.
8828 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
8829 field, to better cope with ENABLE_CHECKING and calls that modify a
8830 Lisp_Object using its old value.
8831
685e5ed2
GM
88322000-04-04 Gerd Moellmann <gerd@gnu.org>
8833
c407c570
GM
8834 * window.c (compare_window_configurations): Signal an error
8835 if parameters C1 or C2 aren't window configurations.
8836
685e5ed2
GM
8837 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
8838 AFTER_POTENTIAL_GC calls around calls to functions that can
8839 signal an error and thus invoke the debugger.
8840
587a49ab
GM
88412000-04-03 Gerd Moellmann <gerd@gnu.org>
8842
62f20204
GM
8843 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
8844 an error if decoding fails.
8845
587a49ab
GM
8846 * keyboard.c (lispy_mouse_names): Variable removed.
8847 (Vlispy_mouse_stem): New variable.
8848 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
8849 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
8850 for any mouse button number. Increase size of mouse_syms and
8851 button_down_location as needed. Call modify_event_symbol with
8852 different arguments.
8853 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
8854 Call modify_event_symbol with different arguments.
8855 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
8856 for any button number. Call modify_event_symbol with different
8857 arguments.
8858 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
8859 Accept a string for NAME_ALIST_OR_STEM.
8860
8861 * lisp.h (larger_vector): Add prototype.
8862
8863 * fns.c (larger_vector): Make externally visible.
8864
8865 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
8866
2d1675e4
SM
88672000-04-02 Stefan Monnier <monnier@cs.yale.edu>
8868
8869 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
8870 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
8871 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
8872 we are between str1 and str2.
8873 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
8874 (PATFETCH): Use `TRANSLATE'.
8875 (PATFETCH_RAW): Fetch multibyte char if applicable.
8876 (PATUNFETCH): Remove.
8877 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
8878 When writing a char, write it directly into the pattern buffer rather
8879 than going needlessly through a temp char-array.
8880 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
8881 multibyte magic and remove the useless `#ifdef emacs'.
8882 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
8883 buffer.
8884
8885 * regex.h (struct re_pattern_buffer): Make field `multibyte'
8886 conditional on `emacs'.
8887
8888 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
8889
cc2d8c6b
KR
88902000-04-01 Ken Raeburn <raeburn@gnu.org>
8891
8892 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
8893 non-union-type versions of XMARK and friends here, because XMARK
8894 and friends won't work on an integer field if NO_UNION_TYPE is not
8895 defined.
8896 (make_number): Define as a function if it's not defined as a
8897 macro.
8898
09654086
KR
8899 * composite.c (run_composite_function): Use NILP when checking for
8900 nil.
8901 (syms_of_composite): Delete local var NARGS, pass an int as first
8902 argument to Fmake_hash_table.
8903
2387b382
KR
8904 * editfns.c (text_property_stickiness): Use NILP to test
8905 Lisp_Object boolean value.
8906 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
8907 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
8908 problems reading from and changing the same lisp value in an
8909 XSETSTRING call.
8910
27660e89
GM
89112000-04-01 Gerd Moellmann <gerd@gnu.org>
8912
8913 * term.c (TN_no_color_video): New variable.
8914 (term_init): Intitialize TN_no_color_video.
8915 (enum no_color_bit): New enumeration.
8916 (MAY_USE_WITH_COLORS_P): New macro.
8917 (turn_on_face): Use it to determine if attributes may be used
8918 combined with colors.
8919
3578db3c
KR
89202000-04-01 Ken Raeburn <raeburn@gnu.org>
8921
8922 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
8923 with int lvalues via casts; instead, just yield lisp object
8924 lvalues.
8925 (enlarge_window): Variable sizep now points to Lisp_Object. Use
8926 proper accessor macros.
8927 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
8928 (grow_mini_window): Fix typo getting int value of root->height.
8929
6fc556fd
KR
8930 * xdisp.c (compute_string_pos): Fix order of arguments to
8931 string_pos_nchars_ahead.
8932 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
8933 count arg to variable-arg routines like Frun_hook_with_args and
8934 Fformat.
587a49ab
GM
8935 (back_to_previous_visible_line_start)
8936 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
8937 fixed-arg routines like Fget_char_property and Fmake_string.
8938 (reconsider_clip_changes): Use XINT when comparing integer lisp
8939 objects, or passing them as int arguments.
587a49ab
GM
8940 (mark_window_display_accurate, insert_left_trunc_glyphs)
8941 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
8942 storing or passing integer values as lisp objects.
8943 (set_cursor_from_row, highlight_trailing_whitespace): Use
8944 INTEGERP, not implicit test against zero, for glyph object.
8945 (try_window_id): Don't use make_number when we want an int value.
8946
8947 * xfaces.c (xlfd_symbolic_value): Make last argument a
8948 Lisp_Object, to be consistent with callers.
8949 (Fbitmap_spec_p): Use XINT to get numeric value of height.
8950 (lface_hash): Apply XFASTINT to lisp values before folding in.
8951
8952 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
8953 fill in window width and height. Pass an int, not a lisp object,
8954 as first arg to Finsert.
8955
6e7b2457
GM
89562000-04-01 Gerd Moellmann <gerd@gnu.org>
8957
610d841e
GM
8958 * xfaces.c (realize_basic_faces): Block input while realizing
8959 the faces.
8960
6e7b2457
GM
8961 * keyboard.c (lispy_mouse_names): Add additional mouse names.
8962
8963 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
8964
aa110c0c
GM
89652000-03-31 Gerd Moellmann <gerd@gnu.org>
8966
8967 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 8968 or ASCII, handle case that per-char metric is null.
aa110c0c 8969
8801a864
KR
89702000-03-30 Ken Raeburn <raeburn@gnu.org>
8971
c6129d7e
KR
8972 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
8973
8801a864
KR
8974 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW,
8975 XSUBR, XBUFFER): Verify correct object type before returning
8976 pointer, using eassert.
8977 * frame.h (XFRAME): Likewise.
8978
8979 * buffer.c (Frename_buffer, Fset_buffer_multibyte,
8980 swap_out_buffer_local_variables, Fmove_overlay): Don't apply
8981 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong
8982 type.
8983 * data.c (set_internal): Likewise.
8984 * dispextern.h (WINDOW_WANTS_MODELINE_P,
8985 WINDOW_WANTS_HEADER_LINE_P): Likewise.
8986 * fileio.c (auto_save_1): Likewise.
8987 * insdel.c (check_markers): Likewise.
8988 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
8989 * undo.c (record_insert): Likewise.
8990 * vmsproc.c (child_sig): Likewise.
8991 * window.c (unshow_buffer, window_loop): Likewise.
8992 * xterm.c (x_erase_phys_cursor): Likewise.
8993
8e7af858
GM
89942000-03-30 Gerd Moellmann <gerd@gnu.org>
8995
8996 * xfns.c (free_image_cache): Free the cache structure itself
8997 last, after all its members have been freed.
8998
8999 * lisp.h (xstrdup): Add prototype.
9000
9001 * alloc.c (xstrdup): Moved here from xfaces.c.
9002 (allocating_for_lisp): Variable removed.
9003 (lisp_malloc): Block input around the calls to malloc and
9004 mem_insert.
9005
9006 * xfaces.c (realize_tty_face): Use find_symbol_value instead
9007 of Fsymbol_value.
9008 (xstrdup): Moved to alloc.c.
9009
e0b8c689
KR
90102000-03-29 Ken Raeburn <raeburn@gnu.org>
9011
b96f9fb7
KR
9012 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
9013
9014 * emacs.c (main): Fix sense of no-loadup test.
9015
e0b8c689
KR
9016 * config.in (ENABLE_CHECKING): Undef.
9017
9018 * lisp.h (struct interval): Replace "parent" field with a union of
9019 interval pointer and Lisp_Object; add new bitfield to use as
9020 discriminant. Change other flag fields to bitfields.
9021 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
9022 is defined and the supplied test fails, print a message and
9023 abort.
9024 (eassert): New macro. Use CHECK to provide an assert-like
9025 facility.
9026
9027 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
9028 pointers; abort if the value looks like a lisp object.
9029 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT,
9030 SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
9031 Modify for new interval parent definition.
9032
9033 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE,
9034 UNMARK_BALANCE_INTERVALS): Update references that need an
9035 addressable lisp object in the interval structure.
9036 (die): New function.
9037 (suppress_checking): New variable.
9038
9039 * intervals.c (interval_start_pos): Just return 0 if there's no
9040 parent object.
9041
f83c5440
GM
90422000-03-29 Gerd Moellmann <gerd@gnu.org>
9043
9044 * lread.c (read1): Accept `.' (period) as symbol start like in CL
9045 and earlier Emacs versions.
9046
9047 * keyboard.c (Ftop_level): Cancel busy-cursor.
9048
9049 * eval.c (call_debugger): Cancel busy-cursor.
9050
fdce64ff
KH
90512000-03-29 Kenichi Handa <handa@etl.go.jp>
9052
9053 * search.c (Freplace_match): Adjust multibyteness of the current
9054 buffer and NEWTEXT. Free allocated memory before signaling an
9055 error.
9056
f6a3f532
SM
90572000-03-28 Stefan Monnier <monnier@cs.yale.edu>
9058
9059 * regex.c (analyse_first): New function obtained by ripping out most
9060 of re_compile_fastmap and generalizing it a little bit so that it
9061 can also just return whether a given (sub)pattern can match the empty
9062 string or not.
9063 (regex_compile): Use `analyse_first' to decide whether the loop-check
9064 needs to be done or not for *, +, *? and +? (the loop check is costly
9065 for non-greedy repetition).
9066 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
9067
e9b309ac
DL
90682000-03-28 Dave Love <fx@gnu.org>
9069
bb15bd9a
DL
9070 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k,
9071 alpha.
9072
e9b309ac
DL
9073 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
9074
ed0767d8
SM
90752000-03-27 Stefan Monnier <monnier@cs.yale.edu>
9076
9077 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
9078 an expression.
9079 (enum re_opcode_t): Update description of succeed_n.
9080 (PATFETCH): Always define.
9081 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
9082 operators, char classes, shy-groups and intervals).
9083 Optimize special cases of intervals so as to only use succeed_n and
9084 jump_n when really needed.
9085 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
9086 that we don't have to handle the special cases any more.
9087 Simplify on_failure_jump handling as well.
9088
e11e7e46
JR
90892000-03-28 Jason Rumney <jasonr@gnu.org>
9090
9091 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
9092
88faab89
GM
90932000-03-27 Gerd Moellmann <gerd@gnu.org>
9094
182ff242
GM
9095 * s/freebsd.h (GC_SETJMP_WORKS): Define.
9096
9097 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 9098
182ff242
GM
9099 * alloc.c (mark_maybe_object): New function.
9100 (mark_memory): Use it.
9101 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
9102 (setjmp_tested_p, longjmp_done): New variables.
9103 (test_setjmp): New function.
9104 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
9105 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
9106
c1005d06
GM
9107 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
9108 to DEC_TEXT_POS and INC_TEXT_POS.
9109
9110 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
9111 with parameter MULTIBYTE_P.
9112
427ec082 9113 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
c1005d06
GM
9114 MULTIBYTE_P.
9115
7439e5b9 9116 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
9117 buffers because it looks for multibyte character byte sequences
9118 which don't exist in unibyte text.
7439e5b9 9119
d9c545da
GM
9120 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
9121
11fd416e 9122 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
9123 [DEBUG_X_COLORS]: New functions.
9124 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
9125
9126 * xfns.c (x_set_cursor_color): Get color reference counts right.
9127
9128 * xterm.c (x_copy_color): New function.
9129 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
9130
9131 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
9132 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
9133 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
9134 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
9135 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
9136 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
9137 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
9138 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
9139 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
9140 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
9141
11fd416e
GM
9142 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
9143 names for handling per-buffer variables.
d9c545da
GM
9144
9145 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
9146 instead of MAX_BUFFER_LOCAL_VARS.
9147 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
9148
9149 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
9150
88faab89
GM
9151 * xfns.c (x_specified_cursor_type): New function.
9152 (x_set_cursor_type): Use it.
9153
9154 * buffer.h (struct buffer): Add cursor_type.
9155
d80f42b7
SM
91562000-03-26 Stefan Monnier <monnier@cs.yale.edu>
9157
9158 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
427ec082 9159 (print_partial_compiled_pattern, re_compile_fastmap): Handle new
88faab89 9160 opcode.
d80f42b7
SM
9161 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
9162 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
9163 executing it as well as when popping it off the stack to find infinite
9164 loops in non-greedy repetition operators.
9165
89e80928
GM
91662000-03-26 Gerd Moellmann <gerd@gnu.org>
9167
3d4ff2dd
GM
9168 * doc.c (Qfunction_documentation): New variable.
9169 (syms_of_doc): Initialize Qfunction_documentation.
9170 (Fdocumentation): If FUNCTION is a symbol with non-nil
9171 `function-documentation' property, return a documentation derived
9172 from that.
9173
bd96bd79
GM
9174 * buffer.c (syms_of_buffer): Add default-cursor-type.
9175 (init_buffer_once): Don't let cursor_type have a local value
9176 in every buffer.
9177
19d1bc27
GM
9178 * xterm.c (x_display_and_set_cursor): Choose cursor depending
9179 on buffer-local value of cursor_type.
9180 (x_draw_bar_cursor): Add parameter WIDTH.
9181
9182 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
9183 (init_buffer_once): Set default cursor_type value to t.
9184 Mark cursor_type as local everywhere.
9185 (syms_of_buffer): New per-buffer variable cursor-type.
9186
89e80928
GM
9187 * buffer.h (struct buffer): Remove member local_var_flags,
9188 add local_flags.
9189 (MAX_BUFFER_LOCAL_VARS): New macro.
9190 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
9191 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
9192 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
9193 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
9194
9195 * print.c (print_object): Use new macros for per-buffer
9196 variables.
9197
9198 * category.c (Fset_category_table): Use new macros for per-buffer
9199 variables.
9200
9201 * buffer.c (buffer_permanent_local_flags): Make a char array.
9202 (max_buffer_local_idx): New variable.
9203 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
9204 for new handling of per-buffer variables.
9205 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
9206 (init_buffer_once): Initialize per-buffer vars differently.
9207 Set max_buffer_local_idx.
9208
9209 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
9210 variables.
9211
9212 * lread.c (defvar_per_buffer): Use new macros for per-buffer
9213 variables.
9214
9215 * data.c (do_symval_forwarding, store_symval_forwarding)
9216 (find_symbol_value, set_internal, default_value, Fset_default)
9217 (Fkill_local_variable, Flocal_variable_p): Use new macros for
9218 per-buffer variables.
9219
9220 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
9221
9a0dd3dc
GM
92222000-03-24 Gerd Moellmann <gerd@gnu.org>
9223
b68c375f
GM
9224 * xterm.c (x_term_init): Unblock input around call1 of
9225 Qvendor_specific_keysyms.
9226
9a0dd3dc
GM
9227 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
9228 (find_defun_start): Consider an open parenthesis in column 0
9229 a defun start only if open_paren_in_column_0_is_defun_start is set.
9230 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
9231
7973e637
SM
92322000-03-24 Stefan Monnier <monnier@cs.yale.edu>
9233
9234 * eval.c (Fautoload): Add entry in load-history (if after dump).
9235 * lread.c (load-history): Update docstring.
9236
39210e90
GM
92372000-03-24 Gerd Moellmann <gerd@gnu.org>
9238
9239 * indent.c (Fvertical_motion): Always use the current buffer.
9240 Temporarily change the window's buffer, if necessary.
9241
72db3ab5
GM
92422000-03-23 Gerd Moellmann <gerd@gnu.org>
9243
9244 * xterm.c (fast_find_position): Make sure not to consider rows
9245 not visible in the window.
9246
990b2375
SM
92472000-03-22 Stefan Monnier <monnier@cs.yale.edu>
9248
9249 * regex.c (enum syntaxcode): Provide default for non-Emacs.
9250 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
9251
ff4df011
JR
92522000-03-22 Jason Rumney <jasonr@gnu.org>
9253
9254 * w32menu.c (single_submenu): Set help string to NULL if none.
9255 (w32_menu_show): Set help string correctly.
9256 (add-menu-item): Set help string in MIIM_DATA for menu item.
9257 Load SetMenuItemInfoA explicitly.
9258 (w32_menu_display_help): New function.
427ec082 9259
ff4df011
JR
9260 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
9261 (QCdata): Moved to xdisp.c.
9262
9263 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
9264 (Vw32_charset_to_codepage_alist): Removed.
9265 (Vw32_charset_info_alist): New variable.
9266 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312,
9267 chinesebig5, oem, easteurope, turkish, baltic, russian, arabic,
9268 greek, hebrew, thai, johab, mac, unicode]): New symbols.
9269 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
9270 with TODO comment.
9271 (w32_codepage_for_font): Use Vw32_charset_info_alist.
9272 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
9273 Define Vw32_charset_info_alist and w32_charset symbols.
9274
92752000-03-22 Jason Rumney <jasonr@gnu.org>
9276
9277 * makefile.nt (w32bdf.obj): Update dependencies.
9278
9279 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
9280
9281 * w32fns.c: Include fontset.h after dispextern.h.
9282 (Fx_create_frame): Do not create fontset.
9283 (w32_load_system_font): Doc fix.
9284 (Fx_close_connection): Free full_name if it is not shared.
9285
9286 * w32term.c: Include fontset.h after dispextern.h.
9287 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
9288 updated.
9289 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
9290 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
9291 (w32_font_is_double_byte): New function, needs body.
9292 (x_append_glyph): Set glyph->glyph_not_available_p.
9293 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
9294 it->charset. If it->multibyte_p is zero and it->c is a multibyte
9295 character, convert it to a unibyte character.
9296 (struct glyph_string): Delete member `charset'.
9297 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
9298 calculating it is found.
9299 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
9300 the case that per char metric is not available correctly.
9301 (x_fill_glyph_string): Handle the case that the specific glyph is
9302 not available correctly.
9303 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
9304 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
9305 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
9306 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
9307 fontset. Don't call FS_LOAD_FONT.
9308
439d5cb4
KR
93092000-03-22 Ken Raeburn <raeburn@gnu.org>
9310
9311 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
9312 (INT_LISPLIKE): New macro.
9313 (NULL_INTERVAL_P): Use it.
9314 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
9315 SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
9316 GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
9317
9318 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
9319 explicit references to "parent" field of struct interval and
9320 associated unclean type conversions.
9321 * intervals.c (create_root_interval, root_interval, rotate_right,
9322 rotate_left, balance_possible_root_interval, split_interval_right,
9323 split_interval_left, interval_start_pos, find_interval,
9324 next_interval, previous_interval, update_interval,
9325 adjust_intervals_for_insertion, delete_node, delete_interval,
9326 adjust_intervals_for_deletion, merge_interval_right,
9327 merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
9328 copy_intervals_to_string): Likewise.
9329 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
9330 Likewise.
9331 * syntax.c (update_syntax_table): Likewise.
9332
9333 * intervals.c (reproduce_tree_obj): New function, like
9334 reproduce_tree but takes a Lisp_Object for the parent. Declare
9335 with prototype.
9336 (graft_intervals_into_buffer): Use it when appropriate.
9337 (reproduce_tree): Declare with prototype.
9338 (balance_possible_root_interval): Check that the parent is a lisp
9339 object before trying to examine its type.
9340
ee1c5b21
GM
93412000-03-22 Gerd Moellmann <gerd@gnu.org>
9342
9343 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
9344 as strings only if both are known to be strings.
9345
9346 * s/openbsd.h (LIBS_TERMCAP): Undef.
9347
1fb352e0
SM
93482000-03-21 Stefan Monnier <monnier@cs.yale.edu>
9349
9350 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
9351 definitions for non-Emacs compilation.
9352 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
9353 outside of `#ifdef emacs'.
9354 (print_partial_compiled_pattern): Update.
9355 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
9356 (re_compile_fastmap): Merge handling of charset and charset_not (for
9357 emacs and non-emacs compilation as well).
9358 Similarly for (not)categoryspec and (not)syntaxspec.
9359 Don't use the fastmap when reaching `anychar' since the added
9360 complexity is not justified.
9361 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
9362 and (not)syntaxspec. Merge (not)categoryspec.
9363
fdaa1f77
KH
93642000-03-22 Kenichi Handa <handa@etl.go.jp>
9365
ff1a0d8e
KH
9366 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
9367 FACE_FOR_CHAR): Define them differently for the configuration of
9368 --without-x.
fdaa1f77 9369
d152fb46
DL
93702000-03-21 Dave Love <fx@gnu.org>
9371
9372 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
9373 doc string.
9374
d2cafc8c
GM
93752000-03-21 Gerd Moellmann <gerd@gnu.org>
9376
9377 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
9378 (lface_fully_specified_p): Don't check contents of
9379 LFACE_FONT_INDEX because that attribute is optional.
9380 (realize_x_face): Remove now unwarranted xassert.
9381
9111d4b5
KH
93822000-03-21 Kenichi HANDA <handa@etl.go.jp>
9383
9384 The following changes are to make font selection based on
9385 characters, not charset. In addition, they recover fontset
9386 facilities while utilizing the new font selection mechanism.
9387
6c4bfdc0
KH
9388 * Makefile.in (fontset.o): Depend on dispextern.h.
9389
9390 * alloc.c (mark_face_cache): Don't mark face->registry.
9391
9111d4b5
KH
9392 * dispextern.h (struct glyph): New member glyph_not_available_p.
9393 Use 22 bits for face_id.
9394 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
9395 (struct face): Delete member registry, new member ascii_face.
9396 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
9397 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
9398 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
9399 (struct it): Delete member charset, new member
9400 glyph_not_available_p.
9401
9402 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
9403 (struct fontset_info, struct fontset_data): Structs removed.
9404 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
9405 Vglobale_fontset_alist, font_idx_temp): Externs removed.
9406 (fs_load_font, fs_query_fontset): Adjusted for new argument.
9407 (fs_free_face_fontset, fontset_font_pattern,
9408 face_suitable_for_char_p, face_for_char,
9409 make_fontset_for_ascii_face): Extern them.
9410 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
9411 (FS_LOAD_FACE_FONT): New macro.
9412
9413 * fontset.c: All codes rewritten or adjusted for the change of
9414 fontset implementation. Now fontset is represented by char table.
9415 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
9416 removed.
9417 (my_strcasecmp): Function removed.
9418 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
9419 variables.
9420 (AREF, ASIZE): New macros.
9421 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
9422 FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
9423 FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
9424 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
9425 fontset_id_valid_p, font_family_registry, fontset_name,
9426 fontset_ascii, free_face_fontset, face_suitable_for_char_p,
9427 face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
9428 New functions.
9429 (fs_load_font): New arg FACE. Caller changed.
9430 (fs_query_fontset): Argument changed. Caller changed.
9431 (Fquery_fontset): call fs_query_fontset.
9432 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
9433 Functions removed.
9434 (clear_fontset_elements, check_registry_encoding,
9435 check_fontset_name): New functions.
9436 (syms_of_fontset): Set char-table-extra-slots property of fontset
9437 to 3. Staticpro and initialize Vfontset_table and
9438 Vdefault_fontset. Defsubr fontset_font and fontset_list.
9439
9440 * frame.h (struct frame): Member `fontset_data' removed.
9441 (FRAME_FONTSET_DATA): Macro removed.
9442
9443 * frame.c (make_frame): Don't allocate f->fontset_data.
9444 (Fdelete_frame): Don't free f->fontset_data.
9445
6c4bfdc0
KH
9446 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
9447
9111d4b5
KH
9448 * xdisp.c (charset_at_position): Function removed.
9449 (init_iterator): Don't set member charset of struct `it'.
9450 (handle_face_prop, reseat_to_string, set_iterator_to_next,
9451 next_element_from_display_vector, insert_left_trunc_glyphs):
9452 Likewise.
9453 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
9454 FACE_FOR_CHARSET.
9455 (get_next_display_element, append_space,
9456 extend_face_to_end_of_line): Likewise.
9457
9458 * xfaces.c (Qx_charset_registry, Vface_default_registry):
9459 Variables removed.
9460 (clear_font_table, frame_update_line_height, load_face_font):
9461 Adjusted for the change of fontset implementation.
9462 (load_face_fontset_font): Function removed.
9463 (pixel_point_size): New function.
9464 (font_list): Argument type changed. Caller changed.
9465 (LFACE_FONT): New macro.
9466 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
9467 (set_lface_from_font_name): Type of arg FONTNAME is changed to
9468 Lisp_Object. Determine the font name by actually loading a font
9469 by the specified pattern. Set LFACE_FONT (lface) to the specified
9470 pattern. Even if a font is not found, don't try alternatives.
9471 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
9472 (set_font_frame_param): If `font' is specified in lface, use it.
9473 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
9474 (lface_same_font_attributes_p): Likewise.
9475 (make_realized_face): Arguent changed. Caller changed. Set
9476 face->ascii_face to face itself.
9477 (free_realized_face): Free face->fontset if face is for ASCII.
9478 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
9479 deduce_unibyte_registry, x_charset_registry): Functions removed.
9480 (free_realized_multibyte_face): New function.
9481 (lookup_face, lookup_named_face, lookup_derived_face): Argument
9482 changed. Caller changed.
9483 (try_font_list): Argument type changed.
9484 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
9485 (choose_face_font): Argument changed. Handle fontset properly.
9486 (choose_face_fontset_font): Function removed.
9487 (realize_default_face, realize_named_face): Don't remove the
9488 former face here.
9489 (realize_face): Argument changed. Caller changed. Remove face
9490 with the arg former_face_id in advance. Load font for the new
9491 face.
9492 (realize_x_face): Argument changed. Caller changed. For a
9493 multibyte character, share fontset with base_face. For a single
9494 byte character, make a new realized fontset. Don't load a font
9495 here.
9496 (realize_tty_face): Argument changed. Caller changed.
9497 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
9498 (face_at_buffer_position): Don't check multibyte_p for returning
9499 DEFAULT_FACE_ID.
9500 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
9501 FACE_SUITABLE_FOR_CHARSET_P.
9502 (syms_of_xfaces): Remove code for Qx_charset_registry and
9503 Vface_default_registry.
9504
6c4bfdc0
KH
9505 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
9506 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
9507 (x_per_char_metric): Don't try FONT->default_char. Even if
9508 pcm->width is zero, glyph bits may exist.
9509 (x_encode_char): Always initialize char2b->byte1.
9510 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
9511 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
9512 changed.
9513 (x_append_glyph): Set glyph->glyph_not_available_p.
9514 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
9515 it->charset. Handle the case that per char metric is not
9516 available. If it->multibyte_p is zero and it->c is a multibyte
9517 character, convert it to a unibyte character.
9518 (struct glyph_string): Delete member `charset'.
9519 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
9520 the case that per char metric is not available correctly.
9521 (x_fill_glyph_string): Handle the case that the specific glyph is
9522 not available correctly.
9523 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
9524 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
9525 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
9526 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
9527 fontset. Don't call FS_LOAD_FONT.
9528
9529 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
9530 (x_create_tip_frame): Likewise.
9531 (Fx_close_connection): Free full_name of font_info.
9532
9533 * fns.c (optimize_sub_char_table): New function.
9534 (Foptimize_char_table): New function.
9535 (syms_of_fns): Defsubr Soptimize_char_table.
9536
b33dd3b0
GM
95372000-03-20 Gerd Moellmann <gerd@gnu.org>
9538
9539 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
9540 only if buffer is displayed in some window.
9541
9542 * xdisp.c (handle_single_display_prop): Initialize local `value'.
9543 (try_window_reusing_current_matrix): Don't call scroll run
9544 function if run's current and desired position are the same;
9545 this prevents cursor flickering.
9546
4e8a9132
SM
95472000-03-19 Stefan Monnier <monnier@cs.yale.edu>
9548
9549 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
9550
9551 * regex.c (RE_STRING_CHAR): New macro.
9552 (GET_CHAR_AFER_2): Remove.
9553 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
9554 (enum re_opcode_t): Remove on_failure_jump_exclusive.
9555 (print_partial_compiled_pattern, re_compile_fastmap)
9556 (re_match_2_internal): Remove on_failure_jump_exclusive.
9557 (regex_compile): Turn optimizable P+ loops into PP*, so that the
9558 optimization only need to work for * (ie. can use of_keep_string_jump).
9559 Remove the special case for .*\n since it is now covered by the general
9560 optimization.
9561 (re_search_2): Don't bother with `room'.
9562 (skip_one_char): New function.
9563 (skip_noops): Simplify since `memory' is not needed any more.
9564 (mutually_exclusive_p): Restructure slightly to use `switch' and
9565 add handling for "all" remaining cases.
9566 (re_match_2_internal): Change on_failure_jump_smart to use
9567 on_failure_keep_string_jump (and redirect the end-of-loop jump)
9568 rather than on_failure_jump_exclusive.
9569
2136fdd4
GM
95702000-03-19 Gerd Moellmann <gerd@gnu.org>
9571
9572 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
9573 number of bits per RGB because it's everywhere used as the depth
9574 of the visual.
9575
9576 * term.c (calculate_costs): Remove code dealing with X frames.
9577
18e21ce8 95782000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
9579
9580 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
9581
d7b511c4
GM
95822000-03-18 Gerd Moellmann <gerd@gnu.org>
9583
9584 * lread.c (read_integer): Unread the last char not consumed.
9585
16b5d424
GM
95862000-03-17 Gerd Moellmann <gerd@gnu.org>
9587
9588 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 9589 which are in the process of being deleted.
16b5d424 9590
1fa28578
GM
95912000-03-16 Gerd Moellmann <gerd@gnu.org>
9592
83488cce
GM
9593 * Makefile.in (mostlyclean): Add `*.core'.
9594 (clean): Add `bootstrap-emacs'.
9595
1fa28578
GM
9596 * lread.c (read_integer): New function.
9597 (read1): Support read syntax #o, #x, #b, #r.
9598
99633e97
SM
95992000-03-15 Stefan Monnier <monnier@cs.yale.edu>
9600
1fa28578
GM
9601 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
9602 make sure POINTER_TO_OFFSET gives the same value before and after
9603 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
9604 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
9605 (debug): Now only active if > 0 rather than if != 0.
9606 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
9607 (print_partial_compiled_pattern): Add missing `succeed' case. Use
9608 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
9609 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
9610 (store_op1, store_op2, insert_op1, insert_op2)
9611 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
9612 (group_in_compile_stack): Move to after its arg's types are
9613 declared and add a prototype.
99633e97 9614 (PATFETCH): Define in terms of PATFETCH_RAW.
1fa28578
GM
9615 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
9616 wrapper.
99633e97 9617 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
9618 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
9619 indentation of the greedy-op and shy-group code.
99633e97
SM
9620 (at_(beg|end)line_loc_p): Fix argument's types.
9621 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
9622 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
9623 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
9624 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
9625 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
9626 QUIT unconditionally.
99633e97 9627
699238d9
GM
96282000-03-15 Gerd Moellmann <gerd@gnu.org>
9629
9630 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
9631 a sole completion.
9632
9633 * process.c (send_process): Add a hint that the function
9634 can call Lisp code to its comment.
9635
9636 * lread.c (load_dangerous_libraries): New variable.
9637 (Vbytecomp_version_regexp): New variable.
9638 (safe_to_load_p): New function.
9639 (Fload): Handle files not compiled with Emacs specially.
9640 (syms_of_lread): New Lisp variable load-dangerous-libraries.
9641
34e23e5a
GM
96422000-03-14 Gerd Moellmann <gerd@gnu.org>
9643
9c763cca
GM
9644 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
9645
9646 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
9647 support functions only if HAVE_X11R6_XIM is defined.
9648 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
9649
9650 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
9651
9652 * xfns.c (X_I18N_INHIBITED): Don't define.
9653 (create_frame_xic): Remove conditional compilation on
9654 X_I18N_INHIBITED.
9655 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
9656
9657 * config.in (HAVE_X_I18N): Moved here from xterm.h.
9658 (HAVE_X11R6_XIM): Define.
9659
9660 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
9661
34e23e5a
GM
9662 * xterm.c (x_term_init): Add support for X resource `synchronous'.
9663 If set, call XSynchronize.
9664
66f0296e
SM
96652000-03-13 Stefan Monnier <monnier@cs.yale.edu>
9666
34e23e5a
GM
9667 * regex.c: Declare a new type `re_char' used throughout the code
9668 for the string char type. It's `const unsigned char' to match the
9669 rest of Emacs. Consistently make sure all pointers to strings use
9670 it and make sure all pointers into the pattern use `unsigned
9671 char'.
66f0296e 9672 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
9673 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
9674 code duplication.
66f0296e
SM
9675
9676 * charset.h (GET_CHAR_AFTER_2): Remove.
9677 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
9678
854a025c
KR
96792000-03-12 Ken Raeburn <raeburn@gnu.org>
9680
9681 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
9682 variable before the invocation of YMF_PASS_LDFLAGS, in case both
9683 of them try to use backquotes.
9684
b9d2c7e2
DL
96852000-03-12 Dave Love <fx@gnu.org>
9686
9687 * unexelf.c: Restore changes of 1999-10-19.
9688 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
9689 fix its type and alignment; copy it from current process.
9690
5e5dff44
GM
96912000-03-12 Gerd Moellmann <gerd@gnu.org>
9692
9b2f3c38
GM
9693 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
9694 has been found. Fix bug not computing timer's predecessor.
9695
427ec082 9696 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
9697 file name.
9698
e1cff360
GM
9699 * window.c (Fsave_window_excursion): Doc fix.
9700
5e5dff44
GM
9701 * xfns.c (x_defined_color): Rewritten to use
9702 x_allocate_nearest_color.
9703
e411ce4b
EZ
97042000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
9705
9706 * msdos.c (vga_installed): New function, code moved from
9707 dos_set_window_size.
9708 (Qbar, Qcursor_type, outside_cursor): New variables.
9709 (syms_of_msdos): Intern and staticpro them.
9710 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
9711 shape used outside Emacs when called for the first time.
9712 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
9713 cursor shape used outside Emacs.
9714 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
9715 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
9716 type has changed.
9717 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
9718 parameters specify the cursor. Make qreverse a global
9719 variable (renamed to Qreverse).
9720
80460654
GM
97212000-03-09 Gerd Moellmann <gerd@gnu.org>
9722
9723 * fns.c (Fy_or_n_p): Cancel busy-cursor.
9724
95cd4c40
SM
97252000-03-08 Stefan Monnier <monnier@cs.yale.edu>
9726
9727 This is a big redesign of failure-stack and register handling, prompted
9728 by bugs revealed when trying to add shy-groups. Overall, what happened
9729 is that loops are now structured a little differently, groups can be
9730 shy and the code is a little simpler.
9731
9732 * regex.h: Update the copyright.
9733 (RE_SHY_GROUPS): New value.
9734 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
9735 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
9736
80460654
GM
9737 * regex.c (enum re_opcode_t): Remove jump_past_alt,
9738 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
9739 on_failure_jump_(exclusive, loop and smart). Also fix the comment
9740 for (start|stop)_memory since they now only take one argument (the
9741 second has becomes unnecessary).
9742 (print_partial_compiled_pattern): Adjust for changes in
9743 re_opcode_t.
9744 (print_compiled_pattern): Use %ld to printf long ints and flush to
9745 make debugging a little easier.
95cd4c40
SM
9746 (union fail_stack_elt): Make the integer unsigned.
9747 (struct fail_stack_type): Add a `frame' element.
9748 (INIT_FAIL_STACK): Init `frame' as well.
9749 (POP_PATTERN_OP): New macro for re_compile_fastmap.
9750 (DEBUG_PUSH, DEBUG_POP): Remove.
9751 (NUM_REG_ITEMS): Remove.
9752 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
9753 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
9754 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 9755 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
80460654
GM
9756 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
9757 macros.
9758 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
9759 address pushed is not the destination of the jump but the source
9760 of it instead.
95cd4c40
SM
9761 (NUM_FAILURE_ITEMS): Remove.
9762 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
9763 registers before the actual failure point). Don't hardcode any
9764 meaning for str==NULL anymore.
95cd4c40 9765 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
9766 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
9767 Remove.
95cd4c40
SM
9768 (REG_UNSET_VALUE): Use NULL (why not?).
9769 (compile_range): Remove declaration since it doesn't exist.
9770 (struct compile_stack_elt_t): Remove inner_group_offset.
9771 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
9772 (regex_grow_registers): Remove dead code.
9773 (FIXUP_ALT_JUMP): New macro.
80460654
GM
9774 (regex_compile): Add shy-groups Change loops to use
9775 on_failure_jump_smart&jump instead of
9776 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
9777 initial (dummy_failure_)jump. Remove c1_base (looks like unused
9778 variable to me). Use `jump' instead of `jump_past_alt' and don't
9779 bother with push_dummy_failure in alternatives since it is now
9780 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
9781 emacs' for (re)allocating the stack.
9782 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
9783 from loop when bufp->can_be_null rather than jumping to `done'.
9784 Avoid jumping backwards so as to ensure termination. Use
9785 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
9786 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 9787 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
9788 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
9789 improve mutually_exclusive_p to handle ".+\n".
9790 (lowest_active_reg, highest_active_reg,
9791 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
9792 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
9793 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
9794 variables. Push register (in `start_memory') on the stack rather
9795 than storing it in old_reg(start|end). Remove the cycle detection
9796 from `stop_memory', replaced by the use of on_failure_jump_loop
9797 for greedy loops. Add code for the new on_failure_jump_<foo>.
9798 Remove ad-hoc code in `on_failure_jump' to push more registers in
9799 the case of a loop. Take out code from `maybe_pop_jump' into
9800 separate functions and adapt it to the semantics of
9801 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
9802 and push_dummy_failure. Remove dummy_failure handling and
9803 handling of `failures to jump to on_failure_jump' (this last one
9804 was already dead code, it seems).
9805 (group_match_null_string_p, alt_match_null_string_p)
9806 (common_op_match_null_string_p): Remove.
95cd4c40 9807
7397acc4
DL
98082000-03-08 Dave Love <fx@gnu.org>
9809
9810 * config.in: Don't depend on __STDC__ for volatile.
9811 Add POINTER_TYPE, PTR, PROTOTYPES.
9812
9813 * hftctl.c, strftime.c: Use PROTOTYPES.
9814 * eval.c (find_handler_clause): Likewise.
9815
9816 * mem-limits.h: Use POINTER_TYPE.
9817
9818 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
9819 (memory_warnings): Declare using POINTER_TYPE.
9820
5e91ff9e
GM
98212000-03-08 Gerd Moellmann <gerd@gnu.org>
9822
feab4fba
GM
9823 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
9824
25edb08f
GM
9825 * xdisp.c (display_echo_area): Temporarily inhibit garbage
9826 collection.
9827
5e91ff9e
GM
9828 * xfns.c: Remove obsolete code in #if 0.
9829 (Fx_focus_frame): New function.
9830
a735b7e1
KH
98312000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
9832
9833 * coding.c (coding_category_name): Add coding-category-utf-8,
9834 coding-category-utf-16-be, coding-category-utf-16-le.
9835 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
9836 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
9837 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
9838 (detect_coding_utf_8): New function.
9839 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
9840 UTF_16_LOW_SURROGATE_P): New macros.
9841 (detect_coding_utf_16): New function
9842 (detect_coding_mask): When priorities are specified, skip any
9843 categories that have `nil' coding-system. Fix bug of returning
9844 wrong mask when PRIORITIES is specified and detect_coding_XXX()
9845 returns a mask not set in PRIORITIES.
9846 (detect_eol_type_in_2_octet_form): New function.
9847 (detect_eol): selects detect_eol_type_XXX to call according to
9848 cooding->category_idx.
9849 (detect_coding_system): Remove `nil' coding-system in the result.
9850 (Fupdate_coding_systems_internal): Update all coding-categories.
9851
9852 * coding.h (CODING_CATEGORY_IDX_UTF_8,
9853 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
9854 macros.
9855 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
9856 CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
9857 CODING_CATEGORY_IDX_UTF_16_LE.
9858 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
9859 CODING_CATEGORY_MASK_UTF_16_LE): New macros.
9860 (CODING_CATEGORY_MASK_ANY): Include the above macros.
9861 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
9862
9994cc69
GM
98632000-03-07 Gerd Moellmann <gerd@gnu.org>
9864
e9b4e5ff
GM
9865 * doc.c (Fdocumentation_property): If value is not a string,
9866 and doesn't refer to etc/DOC, evaluate it to obtain a string.
9867
f7daf1e1
GM
9868 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
9869 close the display with XtCloseDisplay. This caused a bus error
9870 on OpenWindows.
9871
9994cc69
GM
9872 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
9873 complete but not unique.
9874
4336c705
GM
98752000-03-06 Gerd Moellmann <gerd@gnu.org>
9876
18bb0684
GM
9877 * process.c (send_process): Remove local variable `procname' that
9878 might become invalid when a GC happens. Instead, access the
9879 process name slot directly.
9880
4336c705
GM
9881 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
9882 orig_height if set.
9883
9884 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
9885 orig_height if set.
9886
515d0d0e
EZ
98872000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
9888
9889 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
9890 glyph matrices have been freed.
9891
100b3cbb
GM
98922000-03-05 Gerd Moellmann <gerd@gnu.org>
9893
50df5e5a 9894 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 9895 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
9896
9897 * xfns.c (QCdata): Moved to xdisp.c.
9898
9899 * xdisp.c (QCdata): Moved here from xfns.c.
9900 (syms_of_xdisp): Initialize QCdata.
9901
9902 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
9903
9904 * window.c (coordinates_in_window): Use
9905 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
9906 FRAME_INTERNAL_BORDER_WIDTH.
9907
100b3cbb 9908 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 9909 it is obviously invalid.
100b3cbb
GM
9910
9911 * xterm.c (x_term_init): Create a colormap if not using the
9912 default visual.
9913
9914 * xterm.h (select_visual): Change prototype.
9915
9916 * xfns.c (select_visual): Rewritten. Recognize user-specified
9917 visual classes.
9918 (visual_classes): New variable.
9919
64d739c4
GM
99202000-03-04 Gerd Moellmann <gerd@gnu.org>
9921
9922 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
9923 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
9924 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
9925 (x_decode_color): Don't handle allocation of white and black
9926 specially.
9927 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
9928 XtNcolormap resources.
9929 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
9930 (Fx_create_frame): Initialize color members of x_output structure.
9931 (xpm_load): Pass colormap to XPM lib.
9932
9933 * xfaces.c (x_free_colors): Access colormap of frame using
9934 FRAME_X_COLORMAP. Be paranoid about freeing black and white
9935 when default colormap is used.
9936
9937 * xterm.c (x_term_init): Set Colormap member of x_display_info
9938 structure. Copy colormap if resource `privateColormap' is
9939 specified (PseudoColor only).
9940 (x_setup_relief_color): Access colormap of frame using
9941 FRAME_X_COLORMAP.
9942
9943 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
9944 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
9945
c3cee013
JR
99462000-03-04 Jason Rumney <jasonr@gnu.org>
9947
9948 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
9949 other non-platform-specific equivalents.
64d739c4 9950 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
9951 specific functions and macros as their w32 equivalents where
9952 non-platform-specifics are not available.
9953 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
9954 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
9955 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
9956 (frame_update_line_height): Use macros to access f->output_data.
9957 (defined_color): Remove FIXME comments; fixed.
9958 (x_face_list_fonts, prepare_face_for_display): Put X specifics
9959 into #ifdef blocks. Add WINDOWSNT blocks.
9960 (Fx_list_fonts): Use macros for accessing font data.
9961 (set_lface_from_font_name): Different default fonts for X and
9962 WINDOWSNT.
9963 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
9964 scalable for backward compatibility.
64d739c4 9965 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
9966 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
9967
64d739c4 9968 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
9969 syms_of_w32faces.
9970
9971 * makefile.nt (w32faces.obj): Remove.
9972 (xfaces.obj): Add.
9973
807cc41c
JR
99742000-03-03 Jason Rumney <jasonr@gnu.org>
9975
9976 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
9977 correct parameters.
9978
0007072a
KR
99792000-03-03 Ken Raeburn <raeburn@gnu.org>
9980
9981 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
9982 standard ELF definitions here if the system header does not.
9983
71a6ba55
GM
99842000-03-03 Gerd Moellmann <gerd@gnu.org>
9985
9986 * xterm.c (PER_CHAR_METRIC): Removed.
9987 (x_per_char_metric_1, x_default_char): New functions.
9988 (x_per_char_metric): If font's default char is invalid, return
9989 metrics of a suitably chosen usable default char.
9990 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
9991 char, replace occurrences of unprintable chars with a suitably
9992 chosen usable default char.
71a6ba55 9993
900fa1f1
GM
99942000-03-02 Gerd Moellmann <gerd@gnu.org>
9995
42f55fe0
GM
9996 * xterm.c (note_mouse_highlight): Return quickly if frame's
9997 glyph matrices have been freed.
9998
9999 * dispnew.c (free_glyphs): Block input while freeing matrices.
10000
900fa1f1
GM
10001 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
10002
10003 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
10004 x_free_colors.
10005
10006 * dispextern.h (x_free_colors): Add prototype.
10007
10008 * xfaces.c (x_free_colors): New function.
10009 (unload_color, free_face_colors): Use it.
10010
2f950292
EZ
100112000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
10012
10013 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
10014
10015 * window.c [MSDOS]: Include msdos.h.
10016
54d04320
DL
100172000-03-02 Dave Love <fx@gnu.org>
10018
10019 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
10020
10021 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
10022 set C_OPTIMIZE_SWITCH for gcc.
10023
0ba93ac4
KH
100242000-03-02 Kenichi Handa <handa@etl.go.jp>
10025
10026 * coding.c (coding_save_composition): Be sure to allocate
10027 composition data area in coding even if there's no composition in
10028 the current run.
10029
a2bc11d4
JR
100302000-03-01 Jason Rumney <jasonr@gnu.org>
10031
10032 * w32term.c: Equivalent changes to those made to xterm.c on
10033 2000-02-25 and 2000-02-24.
10034
10035 * w32fns.c: Equivalent changes to those made to xfns.c on
10036 2000-02-25 and 2000-02-21.
10037
10038 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
10039 correct line-end convention is followed.
10040
10041 * w32menu.c [HAVE_BOXES]: Remove #undef.
10042 (single_keymap_panes): Remove code for simulating checkmarks.
10043 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
10044 Remove code for drawing simulated checkmarks.
10045 (w32_menu_show): make unibyte help string correctly.
10046 (add_menu_item): draw standard Windows checkmarks. Draw radio
10047 buttons as radio buttons if possible.
10048
72d19d75
GM
100492000-03-01 Gerd Moellmann <gerd@gnu.org>
10050
2df636f4
GM
10051 * sysdep.c (start_of_text): Don't define this function for NetBSD
10052 with ELF.
10053
427ec082 10054 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
10055 Don't define.
10056 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
10057 (LINKER): Don't undef if __NetBSD__ is defined.
10058
10059 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
10060
10061 * fileio.c [__NetBSD__]: Define `unix'.
10062
72d19d75
GM
10063 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
10064
ed4d0512
GM
100652000-02-29 Gerd Moellmann <gerd@gnu.org>
10066
50b1039f
GM
10067 * atimer.c (start_atimer): Don't abort when timers are stopped.
10068 (append_atimer_lists): New function.
10069 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
10070 arbitrary lists of stopped and running atimers.
10071
ed4d0512
GM
10072 * atimer.c (cancel_atimer): Handle canceling an atimer when
10073 some timers are stopped.
10074
10075 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
10076 after canceling it.
10077
10078 * fns.c (maybe_resize_hash_table): Handle case of new size
10079 coming out as being the same as old size.
10080
387023ee
JR
100812000-02-27 Jason Rumney <jasonr@gnu.org>
10082
10083 * makefile.nt: Add atimer.h to dependencies.
10084 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
10085 * w32console.c: Only disable window system features for dispextern.h
10086 (initialize_w32_display): Build a display info for the console.
10087 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
10088 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
10089 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
10090 as 2 button mice.
10091 * w32gui.h (struct W32FontStruct): Revert last change after change
10092 to xdisp.c.
10093 * w32menu.c (single_submenu): Set up help string.
10094 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
10095 (w32_dialog_show): Set up help string.
10096 * w32term.c (w32_display_info_for_display): Remove unused function.
10097 (w32_draw_bitmap): Use pre-built bitmaps.
10098 (w32_initialize_display_info): New function to initialize parts of
10099 display info that are common to both GUI and console frames.
10100 (w32_term_init): Use w32_initialize_display_info. Do not set
10101 Vw32_num_mouse_buttons here, as it is not called for console
10102 frames. Build bitmaps for indicating truncated lines etc.
10103 (x_delete_display): Destroy pre-built bitmaps.
10104 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
10105 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
10106
4516715a
DL
101072000-02-27 Dave Love <fx@gnu.org>
10108
10109 * lisp.h: Add a bunch of prototypes.
10110
171ca836
KH
101112000-02-26 Kenichi Handa <handa@etl.go.jp>
10112
10113 * keyboard.c (read_char): Set `usec' correctly.
10114
4013921d
KH
101152000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
10116
10117 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
10118 `lambda', set reg[RRR] to the map index.
10119 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
10120 reg[RRR] to 0. Otherwise, set it to -1.
10121
9244a058
GM
101222000-02-25 Gerd Moellmann <gerd@gnu.org>
10123
2df636f4 10124 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 10125
18e21ce8 101262000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 10127
f43d79c1
GM
10128 * fileio.c (Ffile_symlink_p): If result starts with a `/'
10129 and contains a `:', prepend `/:'.
10130
10131 * window.c (select_window_1): If selected_window is nil,
10132 don't "swap out" the buffer's point.
10133 (Fset_window_configuration): Set selected_window to nil
10134 before calling Fselect_window.
10135 (unshow_buffer): Don't set point in buffer from window's point
10136 if another more recently selected window also shows the buffer.
10137
bed0c171
GM
101382000-02-25 Gerd Moellmann <gerd@gnu.org>
10139
449c3c52
GM
10140 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
10141
f5b58615
GM
10142 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
10143 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
10144 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
10145 variables.
10146 (DEFAULT_BUSY_CURSOR_DELAY): New define.
10147 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
10148 (hide_busy_cursor): New functions.
10149 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
10150
10151 * minibuf.c (read_minibuf): Cancel busy-cursor.
10152
10153 * keyboard.c (command_loop_1): Call start_busy_cursor before
10154 Fcommand_execute and cancel_busy_cursor after it.
10155 (timer_check): Remove busy-cursor code.
10156 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
10157 cursor timer.
10158
10159 * process.c (wait_reading_process_input): Remove busy-cursor code.
10160
10161 * eval.c (Fsignal): Call cancel_busy_cursor instead of
10162 Fx_hide_busy_cursor.
10163
10164 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
10165 Remove prototyoes.
10166 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
10167
10168 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
10169
10170 * xterm.c (XTread_socket): Remove busy-cursor code.
10171
4eb8436f
GM
10172 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
10173 (build_frame_matrix_from_leaf_window): Put code handling
10174 glyph row's not being a slice of a frame row in #if 0.
10175 (sync_window_with_frame_matrix_rows): New function.
10176 (frame_row_to_window): New function.
10177 (mirror_line_dance): Handle copies between windows.
10178
3cb65b0e
GM
10179 * lread.c (Fload): Use `xfree' instead of `free'.
10180 (init_obarray): Use `xmalloc' instead of `malloc'.
10181
bed0c171
GM
10182 * window.c (Fset_window_buffer): Set WINDOW to the window
10183 after decoding.
2add4349
GM
10184 (coordinates_in_window): Take frame's internal border width
10185 into account.
bed0c171 10186
42088c12
GM
101872000-02-24 Gerd Moellmann <gerd@gnu.org>
10188
10189 * xterm.c (x_display_and_set_cursor): Display cursor of
10190 non-selected windows depending on the setting of
10191 cursor_in_non_selected_windows.
10192
10193 * xdisp.c (cursor_in_non_selected_windows): New variable.
10194 (syms_of_xdisp): DEFVAR_BOOL it.
10195
d1e103b2
GM
101962000-02-23 Gerd Moellmann <gerd@gnu.org>
10197
723e779c
GM
10198 * data.c (Fstring_to_number): If number is greater than what
10199 fits into an integer, return a float.
10200
d1e103b2
GM
10201 * eval.c (specbind): Remove references to
10202 keyword_symbols_constant_flag.
10203
10204 * data.c (keyword_symbols_constant_flag): Removed.
10205 (Fmakunbound, set_internal, syms_of_data): Remove references to
10206 keyword_symbols_constant_flag.
10207
10208 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
10209
214f877f
KH
102102000-02-23 Kenichi Handa <handa@etl.go.jp>
10211
10212 * syntax.c (multibyte_syntax_as_symbol): New variable.
10213 (syms_of_syntax): Declare it as a Lisp variable.
10214 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
10215 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
10216 nonzero, treat all multibyte characters as symbol.
42088c12 10217 (init_syntax_once): Give syntax `word' to all multibyte
214f877f
KH
10218 characters.
10219
130adcb7
EZ
102202000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
10221
3cb65b0e 10222 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 10223 a deleted frame.
130adcb7 10224
17cbbf95
GM
102252000-02-21 Gerd Moellmann <gerd@gnu.org>
10226
10227 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
10228
10229 * xfns.c (x_window_to_frame, x_any_window_to_frame)
10230 (x_non_menubar_window_to_frame): Check the busy-cursor window.
10231
beb0bc36
DL
102322000-02-21 Dave Love <fx@gnu.org>
10233
10234 * frame.c (Vmouse_position_function): New variable.
10235 (Fmouse_position): Use it.
10236 (syms_of_frame): Install it.
10237
10238 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
10239
1d92afcd
GM
102402000-02-20 Gerd Moellmann <gerd@gnu.org>
10241
10242 * fileio.c (Finsert_file_contents): Unbind the binding of
10243 standard-output done by temp_output_buffer_setup.
329eed9f
GM
10244
10245 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
10246 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
10247 (specbind, unbind_to): Handle most common case of non-constant
10248 symbol with trivial value specially.
10249
10250 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
10251
18e21ce8 102522000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
10253
10254 * data.c (Fmake_variable_buffer_local): Doc fix.
10255 Init found_for_buffer to 0.
10256 (Fmake_variable_frame_local): If the variable has already
10257 been buffer-local, set the check_frame field.
10258
1d4311c3
EZ
102592000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
10260
10261 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
10262 produced for CODING_MODE_LAST_BLOCK requires.
10263
2dc95ddd
DL
102642000-02-18 Dave Love <fx@gnu.org>
10265
10266 * keyboard.c (echo_keystrokes): Remove declaration.
10267 (Vecho_keystrokes) New variable.
10268 (read_char, record_menu_key, read_key_sequence): Use it to allow
10269 use of float value.
10270 (syms_of_keyboard): Change Vecho_keystrokes declaration.
10271
10272 * lread.c: Undef feature selection macros before defining.
10273
f0930f35
GM
102742000-02-18 Gerd Moellmann <gerd@gnu.org>
10275
10276 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
10277 for symbols other than the symbol in question.
10278
e3d4de90
DL
102792000-02-17 Dave Love <fx@gnu.org>
10280
10281 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
10282
0b378936
GM
102832000-02-17 Gerd Moellmann <gerd@gnu.org>
10284
d621caf7
GM
10285 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
10286
0b378936
GM
10287 * alloc.c (enum mem_type): Compile unconditionally.
10288
3b451f74
EZ
102892000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
10290
10291 * xfaces.c (tty_defined_color): Don't return faulire indication
10292 for unspecified-fg and unspecified-bg pseudo-colors.
10293
10689a01
GM
102942000-02-17 Gerd Moellmann <gerd@gnu.org>
10295
1216f5e4
GM
10296 * alloc.c (mark_object): Don't mark symbol names in pure space.
10297 (gc_sweep): Don't unmark symbol names in pure space.
10298
10299 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
10300 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
10301 [GC_MARK_STACK]: New defines.
427ec082 10302 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
10303 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
10304
10305 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
10306
10307 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
10308 allocate_buffer instead of xmalloc.
10309
10310 * alloc.c (toplevel): Include setjmp.h.
10311 (PURE_POINTER_P): New define.
10312 (enum mem_type) [GC_MARK_STACK]: New enumeration.
10313 (Vdead) [GC_MARK_STACK]: New variable.
10314 (lisp_malloc): Add parameter TYPE, call mem_insert if
10315 GC_MARK_STACK is defined.
10316 (allocate_buffer): New function.
427ec082 10317 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
10318 (free_float) [GC_MARK_STACK]: Set type to Vdead.
10319 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
10320 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
10321 (MEM_NIL) [GC_MARK_STACK]: New define.
10322 (struct mem_node) [GC_MARK_STACK]: New structure.
10323 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
10324 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
10325 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
10326 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
10327 (mark_stack) [GC_MARK_STACK]: New functions.
10328 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
10329 (clear_marks): Removed.
10330 (gc_sweep): Set free conses' car, free floats' type, free
10331 symbols' function to Vdead. Use lisp_free to free buffers.
10332 (init_alloc_once): Initialize Vdead.
10333 (survives_gc_p): Return non-zero for pure objects.
10334
10335 * alloc.c: Add comments throughout the file.
10336
2503c8b1
GM
10337 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
10338 that unblocks alarms.
10339
8389e1e2
GM
10340 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
10341 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
10342 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
10343
10689a01 10344 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 10345
bfc17d18
KH
103462000-02-17 Kenichi Handa <handa@etl.go.jp>
10347
4a09dee0
KH
10348 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
10349 avoid infinite error signaling. Allocate sufficient memory for
10350 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 10351
2b927d02
SM
103522000-02-17 Stefan Monnier <monnier@cs.yale.edu>
10353
10354 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
10355 depends on the previous behavior.
10356
b49cb764
GM
103572000-02-16 Gerd Moellmann <gerd@gnu.org>
10358
10359 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
10360
99e95407
GM
103612000-02-15 Gerd Moellmann <gerd@gnu.org>
10362
10363 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
10364
10365 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 10366 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
10367 write(2).
10368
6ffd3cf7
RS
103692000-02-15 Richard M. Stallman <rms@gnu.org>
10370
10371 * data.c (set_internal): Don't make variable buffer-local
10372 if within a let-binding for the same buffer.
10373 (let_shadows_buffer_binding_p): New function.
10374
10375 * eval.c (specbind): For buffer-local value,
10376 record the current buffer also.
10377 (unbind_to): Cope with that change.
10378
cad53475
GM
103792000-02-15 Gerd Moellmann <gerd@gnu.org>
10380
10381 * window.c (Fsave_window_excursion): Doc fix.
10382
1aa963c8
SM
103832000-02-15 Stefan Monnier <monnier@cs.yale.edu>
10384
10385 * syntax.c (back_comment): Make sure we only consider comment-starters
10386 of the relevant style and return -1 in case of a failure to find the
10387 beginning of the comment.
10388 (Fforward_comment): If back_comment fails, go back to the position just
10389 after the comment-end.
10390 (scan_lists): Add comment describing a very minor bug.
10391
b9b84fd3
SM
103922000-02-14 Stefan Monnier <monnier@cs.yale.edu>
10393
10394 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
10395 `completion-regexp-list' in the docstring.
10396
3a28db80
DL
103972000-02-14 Dave Love <fx@gnu.org>
10398
10399 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
10400
fb4a568d
SM
104012000-02-14 Stefan Monnier <monnier@cs.yale.edu>
10402
10403 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
10404 to Emacs' syntax. Also fix the comment about set/not-set meanings
10405 since Emacs syntax is not the value 0 any more.
10406 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
10407 since it's now part of RE_SYNTAX_EMACS.
10408
1063ebb5
DL
104092000-02-12 Dave Love <fx@gnu.org>
10410
10411 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
10412 Alpha.
10413
fb07a302
GM
104142000-02-12 Gerd Moellmann <gerd@gnu.org>
10415
10416 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
10417
aaf2320c
DL
104182000-02-12 Dave Love <fx@gnu.org>
10419
10420 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
10421
10422 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
10423 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
10424 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
10425
10426 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
10427
10428 * s/nextstep.h: Don't define HAVE_ALLOCA.
10429
10430 * config.in: Add vfork bits.
10431
eedf8bde
GM
104322000-02-12 Gerd Moellmann <gerd@gnu.org>
10433
10434 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
10435 unwind function to undo the effect of stopping atimers.
10436
10437 * keyboard.c (bind_polling_period): Stop all timers except
10438 poll_timer.
10439
10440 * atimer.c (stopped_atimers): New variable.
10441 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
10442 New functions.
10443
10444 * atimer.h (stop_other_atimers, run_all_atimers)
10445 (unwind_stop_other_atimers): Add function prototypes.
427ec082 10446
eedf8bde
GM
10447 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
10448
8476c2f8
KR
104492000-02-11 Ken Raeburn <raeburn@gnu.org>
10450
10451 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
10452 library may depend on jpeg.
10453 (atimer.o): Depends on atimer.c.
10454
0e85e4a3
KH
104552000-02-11 Kenichi Handa <handa@etl.go.jp>
10456
10457 * insdel.c (del_range_1): Call update_compositions.
10458 (del_range_both): Call update_compositions just once..
10459
97fa0cc8
DL
104602000-02-10 Dave Love <fx@gnu.org>
10461
10462 * xfns.c (create_frame_xic): Fix initialization of automatic
10463 aggregates for pcc.
10464
25566a3c
KH
104652000-02-09 Kenichi Handa <handa@etl.go.jp>
10466
10467 * ccl.c (CCL_MAKE_CHAR): New macro.
10468 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
10469 registers by CCL_MAKE_CHAR before calling translate_char.
10470 <CCL_TranslateCharacterConstTbl> Likewise.
10471
69da54ba
DL
104722000-02-08 Dave Love <fx@gnu.org>
10473
10474 * lread.c (__EXTENSIONS__): Define.
10475
f7136ee8
GM
104762000-02-08 Gerd Moellmann <gerd@gnu.org>
10477
10478 * puresize.h (BASE_PURESIZE): Increase to 650000.
10479
7768790b
EZ
104802000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
10481
10482 * msdos.c (XMenuActivate): Turn off the cursor after displaying
10483 the help message.
10484
38fd211b
EZ
104852000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
10486
10487 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
10488 md, mh, mb, mr, and me to the fake termcap entry.
10489
66e4690f
KR
104902000-02-06 Ken Raeburn <raeburn@gnu.org>
10491
10492 * sound.c (sound_cleanup): Don't call device close routine if the
10493 function pointer is null.
10494
a75dfea0
AI
104952000-02-06 Andrew Innes <andrewi@gnu.org>
10496
10497 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
10498 around image definitions and prototypes.
10499 (gamma_correct) [WINDOWSNT]: New prototype.
10500
10501 * w32term.c (x_make_frame_visible): Replace call to
10502 input_poll_signal with poll_for_input.
10503
10504 * window.c [WINDOWSNT]: Include w32term.h.
10505
10506 * xdisp.c [WINDOWSNT]: Include w32term.h.
10507
10508 * makefile.nt: Add dependencies on w32gui.h.
10509 (OBJ1): Include atimer.obj.
10510 ($(BLD)\atimer.obj): New dependency rule.
10511
10512 * w32.c (sigmask): New function (does nothing).
10513 (sigunblock): Ditto.
10514
10515 * frame.c [WINDOWSNT]: Include w32term.h.
10516
10517 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
10518
10519 * lread.c (syms_of_lread): Fix literal newlines.
10520
10521 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
10522 the string constant limit (2048 bytes) in MSVC.
10523 (main): Ditto.
10524
59ddecde
GM
105252000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
10526
10527 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
10528 area.
10529 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
10530 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
10531 dispatch the event.
10532
07590973
DL
105332000-02-04 Dave Love <fx@gnu.org>
10534
10535 * fileio.c: Remove some unused vars.
10536 (_GNU_SOURCE): Define (for euidaccess).
10537
10538 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
10539
10540 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
10541 gcpro1, gcpro2.
10542 (read_minibuf): Deal with allow_props correctly.
10543
649351f9
EZ
105442000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
10545
10546 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
10547
66e4690f 105482000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
10549
10550 * search.c (compile_pattern): If a cache entry has a nil regexp,
10551 fill in that entry instead of clobbering a previously cached
10552 string regexp.
10553
66e4690f 105542000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
10555
10556 * puresize.h (BASE_PURESIZE): Increase to 610000.
10557
d240a249
GM
105582000-02-02 Gerd Moellmann <gerd@gnu.org>
10559
10560 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
10561 can GC.
10562
ca91fb26
KH
105632000-02-02 Kenichi Handa <handa@etl.go.jp>
10564
25660570
KH
10565 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
10566 instead of incrementing ic directly.
10567 <CCL_WriteExprConst> Likewise.
10568 <ccl_set_expr>: Set ic to jump_address.
10569
ca91fb26
KH
10570 * fileio.c (e_write): Fix the handling of
10571 CODING_FINISH_INSUFFICIENT_SRC.
10572
2ede9689
DL
105732000-02-01 Dave Love <fx@gnu.org>
10574
10575 * editfns.c (Fpropertize): Doc fix.
10576
10577 * process.c (Fstart_process): Doc fix.
10578
10579 * eval.c: Fix various doc strings not to duplicate information
10580 from help-manyarg-func-alist.
10581
10582 * window.c (Fset_window_margins): Don't make interactive. Doc
10583 fix.
10584
10585 * doc.c (Vhelp_manyarg_func_alist): New variable.
10586 (Fdocumentation): Use it.
10587 (syms_of_doc): Define it.
10588
b6680a0e
GM
105892000-01-31 Gerd Moellmann <gerd@gnu.org>
10590
2cb750ba
GM
10591 * xterm.c (xim_open_dpy): Remove unused local variable.
10592
74e9213b
GM
10593 * emacs.c (USAGE): Use term `display options' instead of `X
10594 options'.
10595
10596 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
10597 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
10598
b6680a0e
GM
10599 * fns.c (sweep_weak_table): New function.
10600 (sweep_weak_hash_tables): Use it. Keep on marking until there
10601 is no more change.
10602
994c5afe
GM
106032000-01-30 Gerd Moellmann <gerd@gnu.org>
10604
10605 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
10606 that XTread_socket does not crash by trying to call XNoOp on a
10607 closed display.
427ec082 10608
f00276e3
JR
106092000-01-30 Jason Rumney <jasonr@gnu.org>
10610
10611 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
10612 Change selected_frame to SELECTED_FRAME ().
10613 (w32_console_mouse_position): Remove #ifndef MULE from around
10614 `insist' parameter.
10615
10616 * makefile.nt: Remove dosfns.obj.
10617
10618 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
10619
10620 * w32fns.c (w32_defined_color): Check for valid frame before
10621 applying gamma correction. Eliminate dependency on frame elsewhere.
10622 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
10623 (w32_to_x_font): Use resx and resy not height_in and width_in.
10624 (x_to_w32_font): Doc fix.
10625 (xlfd_strip_height): New function to strip and return font height.
10626 (w32_font_match): Compare height separately from rest of xlfd
10627 spec, using xlfd_strip_height.
10628
10629 * w32term.c (w32_term_init): Swap resx and height_in, resy and
10630 width_in. Use w32_defined_color in place of defined_color.
10631
10632 * w32faces.c: Merge more of DOS and X specifics in preparation for
10633 merge with xfaces.c.
10634 (defined_color): Remove FIXME comment.
10635 (tty_color_name): Provide w32-specific function.
10636 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
10637
10638 * w32console.c (turn_on_face, turn_off_face): Removed.
10639 (w32_face_attributes): New function.
10640 (Global_variables): Reduce scope where possible.
10641 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
10642 fill attribute.
10643 (hl_mode): Don't modify text attributes.
10644 (write_glyphs): Don't do anything if len <= 0. Use
10645 w32_face_attributes to get attributes for drawing. Write
10646 terminating codes using char_attr_normal.
10647 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
10648 (update_begin, update_end): Likewise.
10649 (vga_stdcolor_name): New function.
10650 (initialize_w32_display): Remove char_attr_reverse and char_attr.
10651 (Fset_screen_color): Remove char_attr_reverse.
10652
b08e8bb2
GM
106532000-01-29 Gerd Moellmann <gerd@gnu.org>
10654
10655 * xfns.c (xic_set_preeditarea): Take window parameter and
10656 window-relative pixel-positions.
10657
10658 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
10659 is its frame's selected window.
10660 (xim_instantiate_callback): Likewise.
10661
10662 * xfns.c (x_create_im): Removed.
10663 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
10664 (supported_xim_styles): Renamed from supported_styles.
10665 (best_xim_style): Renamed from best_style.
10666 (create_frame_xic): Renamed from xic_create_frame.
10667 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 10668
b08e8bb2
GM
106692000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
10670
10671 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
10672 our frames, call XFilterEvent with 2nd parameter `None'.
10673 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
10674 returning XBufferOverflow.
10675 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
10676 area.
10677 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
10678 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
10679 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
10680 (xim_initialize, xim_close)
10681 [HAVE_X_I18N && HAVE_X11R6]: New functions.
10682 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
10683 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
10684 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
10685
10686 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
10687 and `xim_styles'.
10688 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
10689 `xic_style' and `xic_xfs'.
10690 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
10691 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
10692 (FRAME_XIM): Removed.
10693
10694 * xfns.c (supported_styles): New variable.
10695 (DEFAULT_STYLE, DEFAULT_FONT): New macros
10696 (xic_create_xfontset, best_style, xic_create_frame)
10697 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
10698 (xic_set_xfontset): New functions.
10699
142e109c
DL
107002000-01-28 Dave Love <fx@gnu.org>
10701
10702 * s/irix6-5.h: Revert last change after change to irix5-0.h.
10703
10704 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
10705
b02786f9
GM
107062000-01-28 Gerd Moellmann <gerd@gnu.org>
10707
d060bc9f
GM
10708 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
10709 for *scratch* if it already existed.
10710
b02786f9
GM
10711 * emacs.c (USAGE): New macro.
10712 (main): Use it to display usage information.
10713
2c52d7e4
EZ
107142000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
10715
10716 Support for the menu-help feature:
10717
10718 * msdos.h: Change prototypes of XMenuAddSelection and
10719 XMenuActivate.
10720
10721 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
10722 part of the line to the termscript file.
10723 (IT_clear_to_end): Clear the entire line, not just its beginning.
10724 (menu_help_message, prev_menu_help_message): New variables.
10725 (IT_menu_make_room): Make room for the help_text member.
10726 (IT_menu_display): New argument disp_help; all callers changed.
10727 If disp_help is non-zero, store the help text of the active menu
10728 item in menu_help_message.
10729 (XMenuAddPane): Initialize the help_text member to NULL.
10730 (XMenuAddSelection): New argument help_text. Store it in the
10731 XMenu structure.
10732 (XMenuActivate): New argument help_callback. If the value of
10733 menu_help_message has changed since the last time, display the
10734 menu help message text while waiting for the mouse to move. Clear
10735 the echo area before exiting.
10736 (XMenuDestroy): Free the help_text member.
10737
ffe0bcd1
GM
107382000-01-27 Gerd Moellmann <gerd@gnu.org>
10739
10740 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
10741 XMenuAddSelection. Pass help callback to XMenuActivate.
10742 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
10743
50dbd23f
EZ
107442000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
10745
10746 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
10747 and EMACS_SET_USECS.
10748
f5941bf8
GM
107492000-01-26 Dave Love <fx@gnu.org>
10750
6c67ddee
DL
10751 * editfns.c (Fchar_after, Fchar_before): Doc fix.
10752
f5941bf8
GM
10753 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
10754 an error may be signalled.
10755
9e49c990
GM
107562000-01-26 Gerd Moellmann <gerd@gnu.org>
10757
fc3cb460
GM
10758 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
10759 LD_SWITCH_SYSTEM inherited from irix5-0.h.
10760
9e49c990
GM
10761 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
10762
d0c037d8
GM
107632000-01-25 Gerd Moellmann <gerd@gnu.org>
10764
10765 * charset.c (Fstring): If there is a multibyte char among
10766 the args, always return a multibyte string.
10767
e12489f9
GM
107682000-01-25 Gerd Moellmann <gerd@gnu.org>
10769
10770 * sysdep.c (sys_select): Turn atimers off and on instead of
10771 recording and restoring old alarm handler
10772
10773 * process.c (toplevel): Include atimer.h.
10774 (create_process_1): Rewritten.
10775 (create_process): Use atimers instead of alarm.
10776 (wait_reading_process_input) [hpux]: Turn atimers off instead
10777 of turning off SIGALRM.
10778 (wait_reading_process_input): Turn off atimers instead off
10779 calling stop_polling.
10780
10781 * emacs.c (main): Call init_atimer.
10782
10783 * keyboard.c (toplevel): Include systime.h and atimer.h.
10784 (polling_for_input): Removed because unused.
10785 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
10786 (poll_timer): New variable.
10787 (poll_for_input, poll_for_input_1): New functions.
10788 (start_polling, stop_polling): Rewritten.
10789
10790 * keyboard.h (polling_for_input): Removed.
427ec082 10791
e12489f9
GM
10792 * atimer.h, atimer.c: New files.
10793
10794 * Makefile.in (obj): Add atimer.o.
10795 (atimer.o): New target.
10796
10797 * blockinput.h (pending_atimers): Add extern declaration.
10798 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
10799
10800 * lisp.h (popup_activated_flag): Add extern declaration.
10801
10802 * xmenu.c (popup_activated_flag): Make externally visible.
10803 (popup_activate_callback) [USE_MOTIF]: Increment
10804 popup_activated_flag.
10805 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
10806
10807 * xterm.c (toplevel): Include atimer.h.
10808 (toolkit_scroll_bar_interaction): New variable.
10809 (Fxt_process_timeouts): Removed.
10810 (x_process_timeouts): New function.
10811 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
10812 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
10813 (x_make_frame_visible): Call poll_for_input_1 instead of
10814 input_poll_signal. Don't call alarm.
10815 (x_initialize): Install timer calling x_process_timeouts.
427ec082 10816
1e5279b9
DL
108172000-01-24 Dave Love <fx@gnu.org>
10818
6c67ddee 10819 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
10820 Don't use -cckr -- apparently not now necessary.
10821
edf6aeb8
EZ
108222000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
10823
10824 * msdos.c (IT_menu_display): Truncate long menu lines at the right
10825 screen boundary.
10826
9badad41
JR
108272000-01-23 Jason Rumney <jasonr@gnu.org>
10828
10829 * w32fns.c (w32_defined_color): Apply gamma correction before
10830 trying to map to the palette.
10831 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
10832 to w32_clear_rect.
10833
10834 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
10835 here. Callers changed to always pass real device context.
10836 (w32_draw_bitmap): Likewise.
10837 (w32_get_glyph_overhangs): Likewise.
10838 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
10839 one.
10840 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
10841 pfnSetScrollInfo and SetScrollRange.
10842 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
10843 back into MULE characters after decoding them.
10844 (x_get_glyph_face_and_encoding): Likewise.
10845 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
10846 GetCharABCWidthsW fails, since this is defined on Windows 9x.
10847 (x_produce_glyphs): Calculate per char metrics for a character
10848 that we know exists in default font when font_not_found_p is true.
10849
63bd786b
JR
108502000-01-22 Jason Rumney <jasonr@gnu.org>
10851
10852 * makefile.nt (intervals.obj, composite.obj): New modules.
10853 (composite.h): Added as dependency where appropriate.
10854
10855 * w32gui.h (XGCValue): New struct for emulating X GCs.
10856
10857 * w32term.h (XCharStruct): New struct for emulating X.
10858
10859 * w32console.c (turn_on_face, turn_off_face): New functions.
10860 (change_line_highlight): New prototype for new redisplay.
10861 (write_glyphs): Support multibyte text. Support faces.
10862
10863 * w32faces.c: Complete rewrite for new redisplay based on new
10864 xfaces.c.
10865
10866 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
10867 throughout. struct frame * in place of FRAME_PTR.
10868 Skeleton support for images, toolbars, tooltips from xfns.c.
10869 (Fx_create_frame): Use system default for default scroll bar
10870 width.
10871 (w32_get_arg): Renamed from x_get_arg.
10872 (Fx_file_dialog): New function.
10873 (w32_list_fonts): Check cache before asking system.
10874 (Vw32_enable_synthesized_fonts): New variable.
10875 (Vw32_enable_italics): Obsolete, removed.
10876
10877 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
10878 Use SELECTED_FRAME macro.
10879
10880 * w32menu.c: Add skeleton support for help strings on menus.
10881 (add_menu_item): Native checkbox and radio support added, but not
10882 yet enabled due to bugs.
10883 (push_menu_item): Add parameters type, selection and help.
10884 Callers updated.
10885 Formatting changes to reduce unnecessary diffs with xmenu.c.
10886
10887 * w32select.c (Fw32_set_clipboard_data): Update call to
10888 find_charset_in_str.
10889
10890 * w32term.c: Complete rewrite for new redisplay based on new
10891 xterm.c with necessary sections merged back in from old w32term.c.
10892
6ffd3cf7 108932000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
10894
10895 * data.c (set_internal): Further fix in same criterion.
10896
6ffd3cf7 108972000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
10898
10899 * data.c (set_internal): Fix the criteria for whether
10900 to swap out the old cached binding.
10901
60af03f1
DL
109022000-01-19 Dave Love <fx@gnu.org>
10903
10904 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
10905
f9be074f
KH
109062000-01-18 Kenichi Handa <handa@etl.go.jp>
10907
10908 * regex.c (re_compile_fastmap): While checking a range table for
10909 `charset', skip flag bits for a character class correctly.
10910
52b8dbf9
GM
109112000-01-17 Gerd Moellmann <gerd@gnu.org>
10912
d36100c9
GM
10913 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
10914
52b8dbf9
GM
10915 * xfns.c (x_window): Call lw_create_widget with new parameter
10916 list.
10917
10918 * widget.c (EmacsFrameSetCharSize): Change size of children first
10919 because of problems with main window geometry management under
10920 Lesstif.
10921
10922 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
10923 MENU_ITEMS_ITEM_.*.
10924 (MENU_ITEMS_ITEM_HELP): New enumerator.
10925 (push_menu_item): Add parameter HELP. Record help in menu_items.
10926 (single_menu_item, single_submenu, list_of_items): Call
10927 push_menu_item with new parameter.
10928 (single_submenu): Set help string in widget value.
10929 (menu_highlight_callback): New function.
10930 (set_frame_menubar): Call lw_create_widget with new
10931 parameter list.
10932 (xmenu_show, xdialog_show): Ditto.
10933
3139018f
GM
109342000-01-13 Gerd Moellmann <gerd@gnu.org>
10935
10936 * sound.c (Fplay_sound): Improve doc string.
10937
83c8f461
RS
109382000-01-11 Richard M. Stallman <rms@gnu.org>
10939
10940 * lisp.h (set_internal): Enter the new arg.
10941
10942 * eval.c (specbind): Record buffer-local variables specially,
10943 indicating which buffer's binding was saved.
10944 (unbind_to): Restore buffer-local variables specially
10945 in the proper buffer.
10946
10947 * data.c (set_internal): New arg BUF.
427ec082 10948
83c8f461
RS
10949 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
10950 * data.c (Fset): Pass new arg to set_internal.
10951 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 10952
1fab1775
GM
109532000-01-11 Gerd Moellmann <gerd@gnu.org>
10954
10955 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
10956 xprintsym.
10957
83c8f461 109582000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
10959
10960 * minibuf.c (Ftry_completion): Doc fix.
10961
7a85e4df
GM
109622000-01-11 Gerd Moellmann <gerd@gnu.org>
10963
10964 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
10965 vector, too.
10966
a970dae4
AS
109672000-01-11 Andreas Schwab <schwab@suse.de>
10968
10969 * coding.c (code_convert_region): Initialize total_skip.
10970
c65d14ee
DL
109712000-01-08 Dave Love <fx@gnu.org>
10972
10973 * eval.c (Fuser_variable_p): Check customizability too.
10974
834938d2
GM
109752000-01-07 Gerd Moellmann <gerd@gnu.org>
10976
10977 * minibuf.c (Fcompleting_read): Doc fix.
10978
e0303cd6
GM
109792000-01-05 Gerd Moellmann <gerd@gnu.org>
10980
8a26744b
GM
10981 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
10982 -L /usr/local/lib.
10983
e0303cd6
GM
10984 * xfns.c (x_create_im): New function to set IM and IC of a frame.
10985 Check that input style is supported before trying to create an
10986 IC for it.
10987 (x_window): Call x_create_im.
427ec082 10988
2e471eb5
GM
109892000-01-04 Gerd Moellmann <gerd@gnu.org>
10990
560a7bd2
GM
10991 * xfns.c (current_gif_memory_src): New variable.
10992 (gif_load): Record the address of the current memory source
10993 in current_gif_memory_src.
10994 (gif_read_from_memory): Use current_gif_memory_src.
10995
f9ee84a3
GM
10996 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
10997 macros statement form.
10998
d1299cde
GM
10999 * sound.c (struct sound): Renamed from struct sound_file.
11000 (struct sound): Add members `data' and `header_size'.
11001 (enum sound_attr): Add SOUND_DATA.
11002 (current_sound, current_sound_device): Variables renamed from
11003 sound_file and sound_device.
11004 (parse_sound): Parse :data.
11005 (parse_sound): Handle sound data in strings.
11006 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 11007 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
11008 needed header size.
11009 (wav_play, au_play): Play sounds from string data.
11010
2e471eb5
GM
11011 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
11012
11013 * lisp.h: Add prototype for allocate_string_data.
11014
11015 * alloc.c (Fgarbage_collect): Return number of live and free
11016 strings.
11017
11018 * alloc.c (mark_buffer): Remove code in #if 0.
11019 (gc_sweep): Ditto.
11020 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
11021 (strings_consed): New variable.
11022 (allocate_string): Set it.
11023 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
11024 (Fmemory_use_counts): Return strings_consed. Use Flist.
11025
11026 * alloc.c: General cleanup in comments etc. Remove conditional
11027 compilation for `standalone'.
11028
11029 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
11030
11031 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
11032 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
11033 (DONT_COPY_FLAG): Removed.
11034 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
11035 (struct sdata, struct sblock): New
11036 (struct string_block): Rewritten.
11037 (STRINGS_IN_STRING_BLOCK): New macro.
11038 (oldest_sblock, current_sblock, total_strings, total_free_strings)
11039 (large_sblocks, string_blocks, string_free_list): New variables.
11040 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
11041 (init_strings): Rewritten.
11042 (allocate_string, allocate_string_data, compact_small_strings)
11043 (free_large_strings, sweep_strings): New functions.
11044 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
11045 (struct string_block_head, current_string_block)
11046 (first_string_block, large_string_blocks, STRING_FULLSIZE)
11047 (STRING_PAD): Removed.
11048 (make_uninit_multibyte_string, make_pure_string): Rewritten.
11049 (Fgarbage_collect): Don't set mark bit in large strings.
11050 (mark_object): Mark strings differently. Mark symbol names
11051 differently.
11052 (survives_gc_p): Test marked strings differently.
427ec082 11053 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
11054 symbol names.
11055 (compact_strings): Removed.
11056
42608ba8
EZ
110572000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
11058
11059 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
11060 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
11061
e0a09e1a
KH
110622000-01-04 Kenichi Handa <handa@etl.go.jp>
11063
dd9f0750 11064 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 11065 in a non-empty buffer.
dd9f0750 11066
3c0f3b15 11067 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 11068
44cd3ae5
GM
110692000-01-03 Gerd Moellmann <gerd@gnu.org>
11070
11071 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
11072 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
11073
11074 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
11075
c182a70f
EZ
110762000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11077
11078 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
11079 need to test for MSDOS frames.
11080
24480d5b
EZ
110812000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11082
11083 * dosfns.c (unspecified_colors): Remove.
11084 (msdos_stdcolor_idx): Use global variables unspecified_fg and
11085 unspecified_bg.
11086 (msdos_stdcolor_name): Return strings for unspecified fore- and
11087 back-ground colors.
11088
11089 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 11090 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
11091 (tty_color_name): Return Lisp strings for unspecified fore- and
11092 back-ground colors.
11093 (Finternal_set_lisp_face_attribute): Remove the special treatment
11094 for Qunspecified_{f,b}g.
11095 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
11096 string.
11097
047f434a
GM
110982000-01-03 Gerd Moellmann <gerd@gnu.org>
11099
11100 * xdisp.c (reseat_at_next_visible_line_start): Position before
11101 newline only if ending up on a newline.
11102 (next_element_from_ellipsis): Return success. Handle case of
11103 displaying no ellipsis. Fix case of ellipsis defined in display
11104 table.
11105 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
11106 returns 0.
11107
d684c676
EZ
111082000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11109
11110 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
11111 (Fcolor_supported_p): Renamed from face-color-supported-p.
11112
5fe1d139
EZ
111132000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11114
11115 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
11116 list of colors renamed to tty-defined-color-alist.
11117 (tty_color_name): Pass the frame to tty-color-by-index.
11118 (realize_tty_face): tty-color-alist is now a function which
11119 accepts the frame as argument.
11120
11121 * term.c (Ftty_display_color_p): Accept an optional argument
11122 FRAME.
11123
816be8b8
EZ
111242000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11125
11126 * term.c (insert_glyphs): Pass glyph, not &glyph, to
11127 encode_terminal_code.
11128
b635321e
EZ
111292000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11130
11131 * dispnew.c (mode_line_string): Support termcap frames as well.
11132
9b784e96
GM
111332000-01-01 Gerd Moellmann <gerd@gnu.org>
11134
27189709
GM
11135 * syntax.c (Fforward_word): Undo previous change.
11136
11137 * editfns.c (Fconstrain_to_field): Don't constrain if
11138 inhibit-field-text-motion is non-nil.
11139 (Fline_beginning_position): Undo previous change.
11140 (Fline_end_position): Ditto.
11141
11142 * syntax.c (Fforward_word): Notice field boundaries only if
11143 inhibit-field-text-motion is nil.
11144
11145 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
11146
11147 * editfns.c (Vinhibit_field_text_motion): New variable.
11148 (inhibit-field-text-motion): New DEFVAR_LISP.
11149 (Fline_beginning_position, Fline_end_position): Notice field
11150 boundaries only if inhibit-field-text-motion is nil.
11151
45158a91
GM
11152 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
11153 All calls adjusted.
11154 (x_build_heuristic_mask): Likewise.
11155 (xbm_load_image_from_file): Change error output.
11156 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
11157 (gif_load, gs_load, x_kill_gs_process): Ditto.
11158
9b784e96
GM
11159 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
11160 color indices when accessing raster pixels.
63cec32f
GM
11161 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
11162 one of :file or :data.
11163 (enum pbm_keyword_index): Add PBM_DATA.
11164 (pbm_format): Add :data.
11165 (pbm_image_p): Allow either :file or :data.
11166 (pbm_read_file): New function.
11167 (pbm_scan_number): Rewritten to read from string.
11168 (pbm_load): Support :data.
9b784e96 11169
2cb085db 11170See ChangeLog.8 for earlier changes.
6922b018
KH
11171
11172;; Local Variables:
49b3bd82 11173;; coding: iso-2022-7bit
6922b018 11174;; End: