Say "RedHat Linux" instead of "RedHat GNU/Linux".
[bpt/emacs.git] / src / ChangeLog
CommitLineData
091f8878
GM
12001-03-23 Gerd Moellmann <gerd@gnu.org>
2
43c09969
GM
3 * xdisp.c (mark_window_display_accurate_1): New function,
4 extracted from mark_window_display_accurate. Compute
5 BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
6 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
7 (mark_window_display_accurate): Use it.
8 (redisplay_internal): Use it for the selected window.
9 (redisplay_internal): Avoid duplicate mark_window_display_accurate
10 for the selected frame.
11
ac90c44f
GM
12 * xdisp.c Use make_number, for readability.
13 (try_window_id): Disable rows below the window end.
14 (try_window_reusing_current_matrix): Use cursor_row_p.
15 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
16 of rows.
17 (init_from_display_pos): If POS specifies a position in a display
18 vector, maybe get the iterator set up for that ellipsis.
43c09969 19
091f8878
GM
20 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
21
991786dd
EZ
222001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
23
24 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
25
6c29b43c
GM
262001-03-23 Gerd Moellmann <gerd@gnu.org>
27
28 * xfaces.c (x_update_menu_appearance): Use a different path
29 for Lucid popup menus.
30
d8731202
SM
312001-03-22 Stefan Monnier <monnier@cs.yale.edu>
32
33 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
34
35 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
36 (string_buffer_position): Use `make_number'.
37
f61a541b
GM
382001-03-22 Gerd Moellmann <gerd@gnu.org>
39
3c9e997b
GM
40 * xfaces.c (x_update_menu_appearance): Renamed from
41 x_set_menu_face_resources. Use different resources for popups.
42
43 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
44 (GC_CHECK_STRING_BYTES): Don't define.
45
364cd450
GM
46 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
47 Removed, together with subroutines.
48 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
d8731202 49 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
364cd450 50
d8731202
SM
51 * dispextern.h (x_set_menu_resources_from_menu_face):
52 Remove prototype.
364cd450 53
d8731202 54 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
364cd450
GM
55 Remove calls to x_set_menu_resources_from_menu_face.
56
d8731202
SM
57 * xfaces.c (xm_set_menu_resources_from_menu_face):
58 Remove #ifndef LESSTIF_VERSION.
f61a541b
GM
59
60 * xmenu.c: Include widget.h.
61 (single_submenu): Return int. Some cleanup.
62 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
63
140330de
GM
642001-03-21 Gerd Moellmann <gerd@gnu.org>
65
66 * xterm.c (x_update_window_end): Handle overwritten mouse face
67 also for tool bar windows.
68 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
69 DRAW is DRAW_IMAGE_RAISED.
70
1741905c
GM
712001-03-20 Gerd Moellmann <gerd@gnu.org>
72
fa88947e
GM
73 * print.c (syms_of_print): Doc fixes.
74
1741905c
GM
75 * fns.c (Fmd5): Doc fix.
76
ade0bee1
GM
772001-03-19 Gerd Moellmann <gerd@gnu.org>
78
357e7376
GM
79 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
80 Clear area of the frame not occupied by the scroll bar.
81
c2c097cc
GM
82 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
83 tip frame's root window buffer to *tip* right after creating
84 the frame.
85
ade0bee1
GM
86 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
87 is an integer don't have to be for space characters.
88
88c6e37e
GM
892001-03-16 Gerd Moellmann <gerd@gnu.org>
90
91 * indent.c (current_column, current_column_1, Fmove_to_column)
92 (compute_motion): Handle characters from display vectors
93 differently.
94
c62eed76
KH
952001-03-15 Kenichi Handa <handa@etl.go.jp>
96
97 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
98 drawing glyph string.
99
c899e7e6
GM
1002001-03-15 Gerd Moellmann <gerd@gnu.org>
101
d0bbfc99
GM
102 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
103 (command_loop_1): Undo last change.
104
03d1a189
GM
105 * xterm.c (fast_find_position): Return the correct vpos.
106
c899e7e6
GM
107 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
108 non-null, set a per-buffer value in BUF instead of the current
109 buffer.
110 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
111 Call store_symval_forwarding with BUF null.
112 (set_internal): Call store_symval_forwarding with the BUF
113 parameter passed to set_internal. Formerly, the value was always
114 set in the current buffer; the buffer recorded in specbind for
115 this case wasn't used.
116 (arith_driver): Reindent.
117
118 * buffer.c (swap_out_buffer_local_variables): Call
119 store_symval_forwarding with BUF null.
120
121 * lisp.h (store_symval_forwarding): Change prototype.
122
123 * eval.c (specbind): Call store_symval_forwarding with BUF null.
124
57ac7c81
GM
1252001-03-14 Gerd Moellmann <gerd@gnu.org>
126
697617d9
GM
127 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
128 FOR_DELETION. Avoid resizing the mini-window of the selected
129 frame if FOR_DELETION is set.
130 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
131 (Fmake_frame_invisible): Change calls to do_switch_frame for new
132 signature.
133
134 * window.c (Fset_window_configuration): Change call to
135 do_switch_frame to new format.
136
137 * keyboard.c (quit_throw_to_read_char): Change call to
138 do_switch_frame to new format.
139
140 * lisp.h (do_switch_frame): Change prototype.
141
819dce0f
GM
142 * frame.c (Fframe_parameters): In the `buffer-list' frame
143 parameter, store the buffer list of FRAME, not the list of the
144 selected frame.
145
57ac7c81
GM
146 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
147 box just because the glyph row's full_width_p flag is set.
148
65008712
GM
1492001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
150
151 * xdisp.c (highlight_trailing_whitespace): On character terminals,
152 skip the padding blanks inserted in extend_face_to_end_of_line,
153 before checking for trailing whitespace.
154
159cf431
GM
1552001-03-13 Gerd Moellmann <gerd@gnu.org>
156
19b2bb80
GM
157 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
158 Remove special handling for LessTif/Motif.
159 (toplevel): Don't include Xm/Xm.h.
160
afcdc0a1
GM
161 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>: Remove
162 workaround code for LessTif; it doesn't work anymore.
163
2564ea1b 164 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
57ac7c81 165 Xm/ScrollBarP.h.
afcdc0a1 166
23442ae4
GM
167 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Don't
168 access private scroll bar data; it's no longer necessary with
169 contemporary LessTif.
170
9faaaa52
GM
171 * xfaces.c (xm_set_menu_resources_from_menu_face): Change
172 #if 0 to #ifndef LESSTIF_VERSION.
173
159cf431
GM
174 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
175 removing button grabs.
176
c6f7429a
KH
1772001-03-13 Kenichi Handa <handa@etl.go.jp>
178
cb82d767
KH
179 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
180 and clip-large-size-font as obsolete.
181
c6f7429a
KH
182 * lread.c (read_multibyte): Check the validity of multibyte
183 sequence. If invalid, return the first byte.
184
760cefb5
GM
1852001-03-12 Gerd Moellmann <gerd@gnu.org>
186
187 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
188 before running the command; timer functions or process
189 filters may have set it.
190
5141f9d0
EZ
1912001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
192
193 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
194 Doc fix.
195
b6a15240
GM
1962001-03-12 Gerd Moellmann <gerd@gnu.org>
197
198 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
199 to sprintf.
200
95522746
GM
2012001-03-09 Gerd Moellmann <gerd@gnu.org>
202
db14cfc5
GM
203 * dispextern.h (string_buffer_position): Add prototype.
204
205 * xdisp.c (string_buffer_position, display_prop_string_p)
206 (single_display_prop_string_p): New functions.
207
208 * xterm.c (note_mouse_highlight): If there's no help-echo on
209 a string, look at the buffer text ``under'' it.
210
211 * keyboard.c (make_lispy_event): Add string info to the event,
212 analogous to what's done on mode lines.
213 (read_key_sequence): For a click on a string, consider `local-map'
214 and `keymap' of that string.
215
3cfd8357
GM
216 * keyboard.c (make_lispy_event, make_lispy_movement): Adjust
217 calls to buffer_posn_from_coords to new format.
218
219 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
220
221 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
222 POS; return void.
223
95522746
GM
224 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
225 flags argument to emacs_open; it seems to conflict with O_EXCL.
226
898a399d
KH
2272001-03-09 Kenichi Handa <handa@etl.go.jp>
228
28cd4910
KH
229 * composite.h (struct composition): Change types of members;
230 glyph_len to unsigned, width to unsigned short.
898a399d 231
4cdf6a6c
AI
2322001-03-08 Andrew Innes <andrewi@gnu.org>
233
234 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
235 menu titles.
236
129004d3
GM
2372001-03-08 Gerd Moellmann <gerd@gnu.org>
238
221dd3e7
GM
239 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
240 instead of nil.
241
5de7c6f2
GM
242 * xterm.c (note_mouse_highlight): Handle mouse-face and
243 help-echo in strings.
244 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
245 (fast_find_string_pos): New function.
246
247 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
248 (display_string): Call face_at_string_position with new
249 parameter.
250
251 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
252 Handle `mouse-face'.
253
254 * dispextern.h (face_at_string_position): Change prototype.
255
e1fbabaf
GM
256 * dired.c (directory_files_internal): Handle EAGAIN more
257 efficiently.
258
129004d3
GM
259 * keyboard.c (make_lispy_event): Avoid generating drag events
260 if the mouse hasn't actually moved to another buffer position.
261
80c8ab8c
DL
2622001-03-08 Dave Love <fx@gnu.org>
263
129004d3 264 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
80c8ab8c 265
989521fd
GM
2662001-03-08 Gerd Moellmann <gerd@gnu.org>
267
268 * process.c (Fset_process_window_size): Fix a typo.
269
bb5c338d
KH
2702001-03-08 Kenichi Handa <handa@etl.go.jp>
271
272 * coding.c (detect_coding_sjis): Do more rigid check.
273 (detect_coding_big5): Likewise.
274 (decode_coding_sjis_big5): Likewise.
275 (Fdetect_coding_region): Call detect_coding_system with tailing
276 anchor byte `\0' for more rigid detection.
a1b12fe9
KH
277 (detect_coding_mask): Fix the incorrect handling of arg
278 MULTIBYTEP.
bb5c338d
KH
279 (Fdetect_coding_string): Likewise.
280
8b8f9197
SM
2812001-03-07 Stefan Monnier <monnier@cs.yale.edu>
282
283 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
284 a string before extracting its data.
285
3bdf2660
GM
2862001-03-07 Gerd Moellmann <gerd@gnu.org>
287
288 * window.c (Frecenter): Rewrite code handling negative values
289 of ARG on graphical frames.
290
2912001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
292
293 * window.c (displayed_window_lines): If W->start is outside the
294 accessible portion of the buffer, call start_display with BEGV or
295 ZV instead of W->start.
296
471f86b9
GM
2972001-03-07 Gerd Moellmann <gerd@gnu.org>
298
2ab62c6c
GM
299 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
300
471f86b9
GM
301 * process.c (Fset_process_filter): Don't crash if the input
302 file descriptor of PROCESS is closed.
303 (Fset_process_window_size): Likewise.
304
101922c3
GM
3052001-03-06 Kenichi Handa <handa@etl.go.jp>
306
307 * xterm.c (XTflash): Make the timeout of select shorter, and call
308 select repeatedly until the desired time expires.
309
45d051a7
GM
3102001-03-06 Gerd Moellmann <gerd@gnu.org>
311
312 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
313
314 * xfns.c (Fx_create_frame): Clear Vwindow_list.
315
316 * lisp.h (Vwindow_list): Declare extern.
317
8f372c46
EZ
3182001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
319
320 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
321
f16a7aa5
GM
3222001-03-06 Gerd Moellmann <gerd@gnu.org>
323
157ae273
GM
324 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
325 to detect a case where we have to highlight a different region
326 despite not having left the currently highlighted region.
327 Set mouse_face_overlay in the x_display_info.
45d051a7 328 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
157ae273
GM
329
330 * xterm.h (struct x_display_info): Add mouse_face_overlay.
331
332 * buffer.c (mouse_face_overlay_overlaps): New function.
333
334 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
335 (Qmouse_face): Declare extern.
336
f16a7aa5
GM
337 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
338 if face_change_count is non-zero.
339
827afcac
KH
3402001-03-06 Kenichi Handa <handa@etl.go.jp>
341
342 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
343 that the source is unibyte.
344
14c7242e
DL
3452001-03-05 Dave Love <fx@gnu.org>
346
827afcac 347 * xterm.c (XTmouse_position): Fix typo.
14c7242e 348
c28b847b
GM
3492001-03-05 Gerd Moellmann <gerd@gnu.org>
350
351 * minibuf.c (read_minibuf): Clean up the binding stack if
352 called noninteractively.
353
b86644f2
KH
3542001-03-05 Kenichi Handa <handa@etl.go.jp>
355
356 * coding.c (syms_of_coding): Docstring modified.
357
203682cc 3582001-03-05 Kenichi Handa <handa@etl.go.jp>
b86644f2
KH
359
360 * charset.c (char_to_string): If a single byte char has modifier
361 bits that can't be reflected to the character code, ignore them
45d051a7 362 instead of signaling an error.
b86644f2 363
e30bd7b7
EZ
3642001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
365
366 * s/msdos.h: Update copyright notice.
367
368 * dosfns.h: Update copyright notice.
369
370 * dosfns.c: Update copyright notice.
371
372 * msdos.c: Update copyright notice.
373
b52b65bd
GM
3742001-03-02 Gerd Moellmann <gerd@gnu.org>
375
376 * xterm.c (glyph_rect): New function.
377 (XTmouse_position): Use it to raise the threshold for mouse
378 movement event generation.
379
53c4b1e6
EZ
3802001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
381
382 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
383 specifies (reverse . t), reverse the initial screen colors.
384 (IT_set_frame_parameters): If the property is foreground-color,
385 but we are reversing the colors, set bg_set, not fg_set. Likewise
386 for setting background-color and reversing: set fg_set. Set
387 unspecified-fg and unspecified-bg correctly when (reverse . t) is
388 in effect.
389
390 * xfaces.c (Finternal_set_lisp_face_attribute)
391 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
392 parameters alist.
393
f964b4d7
GM
3942001-03-02 Gerd Moellmann <gerd@gnu.org>
395
ef53d75e
GM
396 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
397 to a single slash in the middle of file names.
398
cda0f4da
GM
399 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
400 Accept only alphanumeric time zone names.
401
f964b4d7
GM
402 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
403 or width area.
404 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
405 a widget to zero height.
406
c3c45f65
GM
4072001-03-01 Gerd Moellmann <gerd@gnu.org>
408
409 * window.c (Fwindow_end): Call move_it_past_eol only if
410 ending up on a partially visible line.
411
028d739a
DL
4122001-03-01 Dave Love <fx@gnu.org>
413
414 * ccl.c (Fccl_execute): Doc fix.
415
57c5889c
GM
4162001-03-01 Gerd Moellmann <gerd@gnu.org>
417
35f59f6b
GM
418 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
419 of the tool bar before calling x_figure_window_size.
420
f84ff02c
GM
421 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
422 NULL after destroying it, otherwise XTread_socket can access a
423 destroyed widget when input is unblocked.
424
8b8f9197 425 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
420f628c 426
57c5889c
GM
427 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
428 same name as before, although there was a change in fontsets.
429
224227d1
KR
4302001-02-28 Ken Raeburn <raeburn@gnu.org>
431
4560730a
KR
432 * lisp.h (Fframe_parameter): Declare.
433
224227d1 434 * window.c (set_window_buffer): Field vscroll is an int, not a
57c5889c 435 Lisp_Object.
224227d1 436
ece93c02
GM
4372001-02-28 Gerd Moellmann <gerd@gnu.org>
438
11ef99b9
GM
439 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
440 NULL instead.
441
442 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
443 NULL instead.
444
ece93c02
GM
445 * alloc.c (toplevel): Include process.h.
446 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
447 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
448 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
449 (allocate_vector, allocate_hash_table, allocate_window)
450 (allocate_frame, allocate_process, allocate_other_vector): New
451 functions.
452 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
453 (mark_maybe_pointer): New function.
454 (mark_memory): Also mark Lisp data to which only pointers
455 remain and not Lisp_Objects.
456 (min_heap_address, max_heap_address): New variables.
457 (mem_find): Return MEM_NIL if START is below min_heap_address or
458 above max_heap_address.
459 (mem_insert): Compute min_heap_address and max_heap_address.
460
461 * process.c (make_process): Use allocate_process.
462
463 * frame.c (make_frame): Use allocate_frame.
464
465 * window.c (make_window, make_dummy_parent): Use allocate_window.
466 (Fcurrent_window_configuration): Use allocate_other_vector.
467
468 * lisp.h (allocate_vectorlike): Remove prototype.
469 (allocate_vector, allocate_other_vector, allocate_frame)
470 (allocate_window, allocate_process, allocate_hash_table):
471 Add prototypes.
472
473 * fns.c (Fdelete, larger_vector): Use allocate_vector.
474 (make_hash_table, copy_hash_table): Use allocate_hash_table.
475
063af457
KH
4762001-02-27 Kenichi Handa <handa@etl.go.jp>
477
478 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
479 treat the produced bytes as a valid multibyte sequence.
480
481 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
482 (ccl_driver) <CCL_WriteMultibyteChar2>: Use
483 CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
484 <ccl_finish>: Set ccl->eight_bit_control properly.
485
486 * ccl.h (struct ccl_program): New member eight_bit_control.
487
f58c6494
SM
4882001-02-26 Stefan Monnier <monnier@cs.yale.edu>
489
490 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
491 accessible_keymaps_char_table.
492 (accessible_keymaps_char_table): Obey `is_metized'.
493 (where_is_internal, Fwhere_is_internal): Don't confuse int and
494 Lisp_Object.
495
c596c392
GM
4962001-02-26 Gerd Moellmann <gerd@gnu.org>
497
498 * dispnew.c: Check HAVE_TERM_H before including term.h.
499
425de386
AI
5002001-02-24 Andrew Innes <andrewi@gnu.org>
501
502 * makefile.w32-in: Update copyright notice.
503
2ba11bbd
SM
5042001-02-24 Stefan Monnier <monnier@cs.yale.edu>
505
506 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
507
66c56ed1
KH
5082001-02-24 Kenichi Handa <handa@etl.go.jp>
509
4c1593ce
KH
510 * Makefile.in (lisp): Add international/utf-8.elc.
511
66c56ed1
KH
512 * fontset.c (Fnew_fontset): Fix handling of the case that an
513 element of FONTLIST is a cons of family and registry.
514
796ead7e
JR
5152001-02-23 Jason Rumney <jasonr@gnu.org>
516
517 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
518 to height unconditionally.
519
520 * w32term.c (x_set_glyph_string_background_width): Extend the
521 background face to the end of the drawing area in the text area,
522 only.
523 (x_insert_glyphs): Call window_box_left to obtain the left
524 x-coordinate of the area to shift.
525
526 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
527 safe_run_hooks.
528
f6839838
AI
5292001-02-22 Andrew Innes <andrewi@gnu.org>
530
531 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header
532 files.
533 ($(BLD)\dispnew.obj):
534 ($(BLD)\editfns.obj):
535 ($(BLD)\fileio.obj):
536 ($(BLD)\filelock.obj):
537 ($(BLD)\keyboard.obj):
538 ($(BLD)\w32proc.obj):
539 ($(BLD)\process.obj):
540 ($(BLD)\sysdep.obj): Ditto.
541
542 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
543 header files.
544 ($(BLD)/dispnew.$(O)):
545 ($(BLD)/editfns.$(O)):
546 ($(BLD)/fileio.$(O)):
547 ($(BLD)/filelock.$(O)):
548 ($(BLD)/keyboard.$(O)):
549 ($(BLD)/w32proc.$(O)):
550 ($(BLD)/process.$(O)):
551 ($(BLD)/sysdep.$(O)): Ditto.
552
c224f70b
GM
5532001-02-22 Gerd Moellmann <gerd@gnu.org>
554
51695746
GM
555 * xdisp.c (forward_to_next_line_start): When taking the shortcut
556 at the start of the function, check that the \n in it->c is
557 from the iterator's current position.
558
a61b7058
GM
559 * xdisp.c (handle_single_display_prop): Add parameter
560 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
561 properties which replace the display of text with something else.
562 (handle_display_prop): Call handle_single_display_prop with
563 additional argument saying if we already replaced text display
564 with something else. Use AREF.
565 (with_echo_area_buffer_unwind_data, display_menu_bar)
566 (decode_mode_spec_coding): Use AREF and ASIZE.
567
3473f362
GM
568 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
569 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
570 * vmstime.h: Files removed.
571
2bb58df3
GM
572 * unexencap.c, unexfx2800.c: Files removed.
573
c224f70b
GM
574 * dispnew.c (direct_output_for_insert): Give up if we are showing
575 a message or just cleared the message because we might need to
576 resize the echo area window or display an empty echo area.
577
ffc9ff0c
GM
5782001-02-21 Gerd Moellmann <gerd@gnu.org>
579
0528abe1
GM
580 * xdisp.c (redisplay_internal): Do the
581 mark_window_display_accurate after all windows have been
582 redisplayed because this call resets flags in buffers which are
583 needed for proper redisplay.
584
ffc9ff0c
GM
585 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c: Use
586 display_hourglass_p, start_hourglass, cancel_hourglass instead of
587 the old names.
588
589 * w32term.h (struct x_output): Rename busy_cursor to
590 hourglass_cursor, busy_window to hourglass_window, busy_p to
591 hourglass_p.
592
593 * msdos.h (struct x_output): Rename busy_window to
594 hourglass_window, busy_p to hourglass_p.
595
596 * xterm.h (struct x_output): Rename busy_cursor to
597 hourglass_cursor, busy_window to hourglass_window, busy_p to
598 hourglass_p.
599
600 * xfns.c: Rename everything containing *busy_cursor* and similar
601 to *hourglass*.
602 (syms_of_w32fns): Rename x-busy-pointer-shape to
603 x-hourglass-pointer-shape, display-busy-cursor to
604 display-hourglass, busy-cursor-delay to hourglass-delay.
605
606 * w32fns.c: Rename everything containing *busy_cursor* and similar
607 to *hourglass*.
608 (syms_of_w32fns): Rename x-busy-pointer-shape to
609 x-hourglass-pointer-shape, display-busy-cursor to
610 display-hourglass, busy-cursor-delay to hourglass-delay.
611
612 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
613 of its busy_p flag.
614
615 * dispextern.h (start_hourglass, cancel_hourglass)
616 (display_hourglass_p): Renamed from *busy_cursor*.
617
ab2c5f0a
GM
6182001-02-20 Gerd Moellmann <gerd@gnu.org>
619
d17e49a8
GM
620 * keyboard.c (read_char): When an event from unread-command-events
621 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
622
fa97adf6
GM
623 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
624 equal to the current buffer.
625
ab2c5f0a
GM
626 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
627 nil, otherwise we're left with truncate_lines t when a message
628 is printed with message-truncate-lines bound to t.
629
aeac019e
GM
6302001-02-19 Gerd Moellmann <gerd@gnu.org>
631
c8bc6f65
GM
632 * window.c (Fmove_to_window_line): Undo last change.
633 (displayed_window_lines): Call line_bottom_y to determine
634 the line's bottom position.
635
636 * dispextern.h (line_bottom_y): Add prototype.
637
638 * xdisp.c (line_bottom_y): New function extracted from
639 pos_visible_p.
640 (pos_visible_p): Use it.
641
980a2d69
GM
642 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
643 set redisplaying_p to 0 here instead of in Frecursive_edit.
644 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
645 set redisplaying_p.
646
184d2372
GM
647 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
648 New variables.
649 (syms_of_xdisp): Initialize new variables.
650 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
651 Specbind `inhibit-menubar-update' when updating the menu bar.
652
65048e97
GM
653 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
654 safe_run_hooks.
655
656 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
657 safe_run_hooks.
658
a57c4026
GM
659 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
660 is null.
661
aeac019e
GM
662 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
663 to the start of the file.
664
76846b31
GM
6652001-02-16 Gerd Moellmann <gerd@gnu.org>
666
f3f053f3 667 * window.c (set_window_buffer): Fix last change.
25237df5 668
f3f053f3
GM
669 * window.c (set_window_buffer): Set window's vscroll to 0.
670
dad75588
GM
671 * window.c (coordinates_in_window): Increase width of area
672 where the vertical line can be dragged.
673
c220b753
GM
674 * xterm.c (x_set_glyph_string_background_width): Extend the
675 background face to the end of the drawing area in the text
676 area, only.
677
c56b1c1b
GM
678 * xdisp.c (handle_single_display_prop): Set iterator's position
679 to where the `display' property starts, like for images.
680 (dump_glyph): New function.
681 (dump_glyph_row): Use it. Dump info about marginal areas.
682
683 * dispnew.c (direct_output_for_insert): Recognize more cases where
684 glyphs can be written instead of being inserted.
685
686 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
687 the left x-coordinate of the area to shift.
688
76846b31
GM
689 * dired.c (directory_files_internal): Set result list to nil
690 before retrying.
691
0fc71a77
KH
6922001-02-15 Kenichi Handa <handa@etl.go.jp>
693
694 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
695 invalid multibyte sequence, treat *SRC as a character of
696 eight-bit-graphic.
697
25078b54
EZ
6982001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
699
700 * textprop.c (Fset_text_properties): Doc fix.
701
8399f8a0
GM
7022001-02-15 Gerd Moellmann <gerd@gnu.org>
703
704 * dispnew.c (update_text_area): Undo change of 2001-01-12.
705
9a2a6f73
DL
7062001-02-14 Dave Love <fx@gnu.org>
707
708 * coding.c: Doc and message fixes.
709
bf853fee
AI
7102001-02-14 Andrew Innes <andrewi@gnu.org>
711
712 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
713 Emacs frame above the screen size.
714
78c663d8
GM
7152001-02-14 Gerd Moellmann <gerd@gnu.org>
716
717 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
718
7cc9f69f
GM
7192001-02-13 Gerd Moellmann <gerd@gnu.org>
720
0a411995
GM
721 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
722 case that TO ends up beyond ZV after running before-change-functions.
723
5ddc1b75
GM
724 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
725 the selected window if it is showing the buffer in question.
726
7cc9f69f
GM
727 * dired.c (directory_files_internal): Initialize errno.
728 (toplevel): Include errno.h.
729
2e6621ca
GM
7302001-02-13 Kenichi Handa <handa@etl.go.jp>
731
732 * xfaces.c (best_matching_font): New parameter width_ratio.
733 Multiply avgwidth by width_ratio.
734 (choose_face_font): Call best_matching_font with width_ratio
735 calculated from the column width of C.
736
60222d69
AI
7372001-02-12 Andrew Innes <andrewi@gnu.org>
738
739 The following changes are to draw box lines inside characters area
740 if line-width is negative.
741
742 * w32term.c (x_produce_image_glyph): Pay attention to the case that
743 face->box_line_width is negative.
744 (x_produce_stretch_glyph): Likewise.
745 (x_produce_glyphs): Likewise.
746 (x_estimate_mode_line_height): Likewise.
747 (x_draw_glyph_string_background): Likewise.
748 (x_draw_glyph_string_foreground): Likewise.
749 (x_draw_composite_glyph_string_foreground): Likewise.
750 (x_draw_glyph_string_box): Likewise.
751 (x_draw_image_foreground): Likewise.
752 (x_draw_image_relief): Likewise.
753 (x_draw_image_foreground_1): Likewise.
754 (x_draw_image_glyph_string): Likewise.
755
9804b846
KH
7562001-02-09 Kenichi Handa <handa@etl.go.jp>
757
758 The following changes are to draw box lines inside characters area
759 if line-width is negative.
760
761 * xterm.c (x_produce_image_glyph): Pay attention to the case that
762 face->box_line_width is negative.
763 (x_produce_stretch_glyph): Likewise.
764 (x_produce_glyphs): Likewise.
765 (x_estimate_mode_line_height): Likewise.
766 (x_draw_glyph_string_background): Likewise.
767 (x_draw_glyph_string_foreground): Likewise.
768 (x_draw_composite_glyph_string_foreground): Likewise.
769 (x_draw_glyph_string_box): Likewise.
770 (x_draw_image_foreground): Likewise.
771 (x_draw_image_relief): Likewise.
772 (x_draw_image_foreground_1): Likewise.
773 (x_draw_image_glyph_string): Likewise.
774
775 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
776 and :line-width can be negative.
777 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be
778 negative.
779
49be9f70
JR
7802001-02-09 Jason Rumney <jasonr@gnu.org>
781
782 * w32term.c (w32_encode_char): Treat eight bit graphic and control
783 characters the same as ASCII and latin-1.
784 (x_display_and_set_cursor): Check for the focus frame's selected
785 window instead of selected_window.
786 (x_after_update_window_line): Don't clear if frame's internal
787 border width is zero.
788 (x_new_font): Don't change a tooltip's size.
789 (w32_initialize): Set char_ins_del_ok to 1.
790
791 * w32fns.c (Fx_show_tip): Fix calls to make_number.
792 (x_set_font): If font hasn't changed, avoid recomputing
793 faces and other things.
794 (x_set_tool_bar_lines): Do nothing if frame is
795 minibuffer-only,
796 (Fx_create_frame): Add the tool bar height to the frame
797 height.
798 (x_create_tip_frame): Prevent changing the tooltip's
799 background color by specifying a color for the default font
800 in .Xdefaults.
801 (Qcancel_timer): New variable.
802 (syms_of_w32fns): Initialize and staticpro it.
803 (Fx_hide_tip, Fx_show_tip): Use it.
804 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
805 the timer.
806 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
807
808 * w32.c (init_environment): Duplicate local string before putenv.
809
555e35d2
SZ
8102001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
811
812 * charset.c (Fstring): A typo.
813
19c92c94
KH
8142001-02-09 Kenichi Handa <handa@etl.go.jp>
815
e47a1c33
KH
816 * charset.c (Fstring): If all arguments are less than 256, return
817 a unibyte string.
818
819 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
820 return a unibyte string.
821
19c92c94
KH
822 * coding.c (code_convert_region): After detecting a coding, if
823 nothing found, set coding->composing to COMPOSITION_NO.
824 (decode_coding_string): Likewise.
825
d8e675f5
SM
8262001-02-08 Stefan Monnier <monnier@cs.yale.edu>
827
828 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
829 to avoid overflow.
830
bd503487
KH
8312001-02-07 Kenichi Handa <handa@etl.go.jp>
832
833 * charset.c (parse_str_to_multibyte): New function.
834
835 * charset.h (parse_str_to_multibyte): Extern it.
836
837 * print.c (print_string): If we are going to print a unibyte
838 string into a multibyte buffer, convert the string to multibyte by
839 str_to_multibyte.
840
a8370d72
AI
8412001-02-06 Andrew Innes <andrewi@gnu.org>
842
843 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
844 been created. It seems we can get sent window messages such as
845 WM_ERASEBKGND before we properly update a frame.
846
c363a1d6
GM
8472001-02-06 Gerd Moellmann <gerd@gnu.org>
848
849 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
850 Avoid some unnecessary cursor positioning.
851
a08332c0
GM
8522001-02-05 Gerd Moellmann <gerd@gnu.org>
853
854 * xfaces.c (split_font_name): Compute numeric value of
855 XLFD_AVGWIDTH.
856 (LFACE_AVGWIDTH): New macro.
857 (LFACEP): Use AREF.
858 (check_lface_attrs): Check LFACE_AVGWIDTH.
859 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
860 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
861 (merge_face_vectors): Check LFACE_AVGWIDTH.
862 (Finternal_make_lisp_face): Use AREF.
863 (xm_set_menu_resources_from_menu_face)
864 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
865 (Finternal_lisp_face_empty_p): Use AREF.
866 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
867 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
868 Compare average widths..
869 (best_matching_font): Arrange for comparing average widths.
870
871 * dispextern.h (enum lface_attribute_index): Add
872 LFACE_AVGWIDTH_INDEX (invisible from Lisp).
873
5cb3c8d4
DL
8742001-02-05 Dave Love <fx@gnu.org>
875
876 * puresize.h: Revert last change following loadup.el change.
877
193fba87
AI
8782001-02-05 Andrew Innes <andrewi@gnu.org>
879
880 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
881 invocation of temacs, to work with Windows 2000.
882 (bootstrap-emacs): Ditto.
883
e16f52ce
GM
8842001-02-05 Gerd Moellmann <gerd@gnu.org>
885
7a58ab59
GM
886 * xterm.c (x_display_and_set_cursor): Check for the focus
887 frame's selected window instead of selected_window.
888
e89aaabd
GM
889 * xdisp.c (try_scrolling): If point is in the line below the
890 window, make sure to move the iterator at least a canonical
891 char height down.
892
e16f52ce
GM
893 * window.c (Fmove_to_window_line): Don't add 1 if window is
894 vscrolled.
895
789ce875
KH
8962001-02-05 Kenichi Handa <handa@etl.go.jp>
897
898 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not. If
899 invalid, execute CCL_INVALID_CMD.
900 (ccl_driver): If the CCL program is terminated because of
901 CCL_STAT_INVALID_CMD, copy the remaining source data to the
902 destination instead of throwing them away.
903
20b28f82
GM
9042001-02-02 Gerd Moellmann <gerd@gnu.org>
905
79fb38c0
GM
906 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
907 faces and other things.
908
20b28f82
GM
909 * xdisp.c (get_next_display_element): Fix case of empty
910 display table entry.
911
5a72551e
EZ
9122001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
913
eb24d0bf
EZ
914 * editfns.c (Fconstrain_to_field): Doc fix.
915
6a3f48c7
EZ
916 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
917 into `thoroughly', to make it consistent with the doc string.
918
5a72551e
EZ
919 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
920
01acdb05
GM
9212001-02-01 Gerd Moellmann <gerd@gnu.org>
922
0353b28f
GM
923 * search.c (search_buffer): Call set_search_regs with a byte
924 position, not a character position.
925
01acdb05
GM
926 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
927 minibuffer-only,
928
e86b5133
EZ
9292001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
930
931 * frame.c (Fmodify_frame_parameters): Doc fix.
932
7442878f
GM
9332001-01-31 Gerd Moellmann <gerd@gnu.org>
934
01acdb05
GM
935 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
936 identifier which is not reserved by Standard C.
937
7442878f
GM
938 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
939
940 * window.c (enum window_part): New enumeration.
941 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
942 Qright_bitmap_area.
943 (coordinates_in_window): Return an enumerator from enum
944 window_part. Fix handling of right scroll bar.
945 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
946 `right-fringe' instead of `left-bitmap-area' and
947 `right-bitmap-area'. Use enumerators from enum window_part
948 instead of hard-coded integers.
949 (check_window_containing, window_from_coordinates): Use
950 enumerators from enum window_part instead of hard-coded integers.
951 (syms_of_window): Replace Qleft_bitmap_area and
952 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
953
7c132cba
EZ
9542001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
955
956 * editfns.c (Fformat_time_string): Doc fix.
957
c359dd9e
SM
9582001-01-31 Stefan Monnier <monnier@cs.yale.edu>
959
960 * keymap.c (Fwhere_is_internal): Use the first valid binding
961 if no ascii binding is found (when firstonly is t).
962
ce070307
GM
9632001-01-31 Gerd Moellmann <gerd@gnu.org>
964
b4f30ec5
GM
965 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
966 instead of Finteractive_p.
967
968 * lisp.h (interactive_p): Add prototype.
969
970 * eval.c (interactive_p): New function.
971 (Finteractive_p): Use it.
972
ce070307
GM
973 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
974
f57b6e64
DL
9752001-01-31 Dave Love <fx@gnu.org>
976
d61c7afe
DL
977 * .gdbinit (hook-run): Define to run xreload.
978
f57b6e64
DL
979 * textprop.c (Fset_text_properties): Fix newline in doc string.
980
eef93f99
GM
9812001-01-30 Gerd Moellmann <gerd@gnu.org>
982
983 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp): Use
984 DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
985
986 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
987 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
988 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
989
990 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
991 height.
992
d9c1f6f9
DL
9932001-01-30 Dave Love <fx@gnu.org>
994
995 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
996 AFTER_POTENTIAL_GC.
997
e8f044a0
GM
9982001-01-29 Gerd Moellmann <gerd@gnu.org>
999
1000 * bytecode.c (Fbyte_code) <Bcurrent_column>: Add
1001 BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
1002
8e1db7b3
EZ
10032001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
1004
1005 * textprop.c (Fset_text_properties): Doc fix.
1006
4eefd9d2
GM
10072001-01-29 Gerd Moellmann <gerd@gnu.org>
1008
1009 * xdisp.c (forward_to_next_line_start): Remove xassert.
1010
fccb8288
EZ
10112001-01-29 Jason Rumney <jasonr@gnu.org>
1012
4eefd9d2 1013 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
fccb8288
EZ
1014 returning without releasing it.
1015
76581eab
KH
10162001-01-29 Kenichi Handa <handa@etl.go.jp>
1017
1018 * w32fns.c (w32_font_match): Allocate three more bytes to regex
1019 for '^', '$', and '\0'.
1020
83a96b4d
AC
10212001-01-28 Andrew Choi <akochoi@i-cable.com>
1022
5604ec34
AC
1023 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
1024 regex for '^', '$', and '\0'.
1025
83a96b4d
AC
1026 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
1027 only if current_sblock has been initialized.
1028
1029 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
1030 terminal frame even if it is the only visible frame.
1031
c09a6440
KH
10322001-01-28 Kenichi Handa <handa@etl.go.jp>
1033
1034 * fontset.c (font_family_registry): Even if FONTNAME conform to
1035 XLFD, if it specifies other fields than family and registry,
1036 return FONTANME. New argument FORCE if nonzero cancel that
1037 feature.
1038 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
1039 a signle byte character. Don't set FAMILY part to nil here. It
1040 is handled by the caller choose_face_font.
1041 (Fnew_fontset): Call font_family_registry with FORCE 0.
1042 (Fset_fontset_font): Likewise.
1043
4dcd74e6
GM
10442001-01-27 Gerd Moellmann <gerd@gnu.org>
1045
1046 * xdisp.c (display_line): Don't treat a newline as fitting
1047 on the line.
1048
d2906bf8
GM
10492001-01-26 Gerd Moellmann <gerd@gnu.org>
1050
0130fe1a
GM
1051 * window.c (size_window): Set the window's orig_top to nil when
1052 changing heights, so that a future shrink_mini_window won't
1053 restore a bogus height.
1054
550f0e6a
GM
1055 * frame.c (do_switch_frame): If selected frame has a mini-window,
1056 resize that to exact size.
1057
b7b20fbd
GM
1058 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
1059
a47b7816
GM
1060 * xdisp.c (display_line): Simplify check for glyphs fitting
1061 entirely in the line.
1062
d2906bf8
GM
1063 * xfns.c (xic_style): New variable.
1064 (create_frame_xic): Move static variable to global scope for
550f0e6a 1065 the case that `static' gets defined away.
d2906bf8 1066
73df2b1e
KH
10672001-01-26 Kenichi Handa <handa@etl.go.jp>
1068
1069 * coding.c (decode_coding): Set a flag for inhibiting
1070 inconsistent eol.
1071 (code_convert_region): Always set saved_coding_symbol.
1072 (decode_coding_string): Likewise. Update coding->symbol when we
1073 encounter a inconsistent eol by the same way as
1074 code_convert_region.
1075
6613cfc4
GM
10762001-01-25 Gerd Moellmann <gerd@gnu.org>
1077
c5e6e06b
GM
1078 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
1079 XClearArea.
1080
1081 * xterm.c (x_after_update_window_line): Don't clear if frame's
1082 internal border width is zero.
1083 (x_clear_area): New function.
1084 (x_after_update_window_line, x_clear_end_of_line)
1085 (x_scroll_bar_create, x_scroll_bar_set_handle)
1086 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
1087 instead of XClearArea.
1088
1089 * xterm.h (x_clear_area): Add prototype.
1090
6613cfc4
GM
1091 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
1092 which doesn't seem necessary anymore with Lesstif 0.92.
1093
650cc6cc
DL
10942001-01-25 Dave Love <fx@gnu.org>
1095
34ac3367
DL
1096 * puresize.h (BASE_PURESIZE): Up to 720000.
1097
650cc6cc
DL
1098 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
1099
5e37dc22
GM
11002001-01-25 Gerd Moellmann <gerd@gnu.org>
1101
e1e441f9
GM
1102 * xdisp.c (echo_area_display): Don't call redisplay_internal
1103 when Emacs is shutting down. We can't run hooks etc. that
1104 would be necessary to do a redisplay.
1105
5e37dc22
GM
1106 * lread.c (read_integer): Use type EMACS_INT instead of int.
1107
0fb94c7f
EZ
11082001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
1109
1110 * ccl.c (ccl_driver): Fix last change.
1111
e3778624
KH
11122001-01-25 Kenichi Handa <handa@etl.go.jp>
1113
1114 * ccl.h (sturct ccl_program): New member suppress_error.
1115
bb264518 1116 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
e3778624
KH
1117 insert error message to the output.
1118 (setup_ccl_program): Initialize ccl->suppress_error to 0.
1119
1120 * coding.h (struct coding_system): New member suppress_error.
1121
1122 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
1123 (Fset_terminal_coding_system_internal): Set the member
1124 suppress_error to 1.
1125 (Fset_safe_terminal_coding_system_internal): Likewise.
1126
245ed2b1
SM
11272001-01-24 Stefan Monnier <monnier@cs.yale.edu>
1128
1129 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
1130 as if it was a `charset'.
1131
f9aaedb6
GM
11322001-01-24 Gerd Moellmann <gerd@gnu.org>
1133
1134 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
1135 value in where_is_cache; the next lookup in the cache returns
1136 something bogus if we do.
1137
c3902c3e
EZ
11382001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
1139
1140 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
1141 if HAVE_WINDOW_SYSTEM isn't defined.
1142
3497f73e
GM
11432001-01-24 Gerd Moellmann <gerd@gnu.org>
1144
e7e41584
GM
1145 * fns.c (sweep_weak_table): Fix code taking items out of
1146 the hash collision chain. Some cleanup.
1147
3497f73e
GM
1148 * xterm.c (x_new_font): Don't change a tooltip's size.
1149
1150 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
1151 background color by specifying a color for the default font
1152 in .Xdefaults.
1153
3d48e687
KH
11542001-01-24 Kenichi Handa <handa@etl.go.jp>
1155
96531b20
KH
1156 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
1157 a workaround for SunOS 4's cc.
1158 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
1159 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
1160 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
1161 statement.
3d48e687 1162
a30629d2
GM
11632001-01-23 Gerd Moellmann <gerd@gnu.org>
1164
1165 * xterm.c (x_set_window_size_1): New function extracted from
1166 x_set_window_size.
1167 (x_set_window_size): Use it.
1168 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
1169 doesn't have a widget, like tooltips.
1170
5a43decf
EZ
11712001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
1172
1173 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc
1174 fix.
1175
b0e98867
KH
11762001-01-23 Kenichi Handa <handa@etl.go.jp>
1177
1178 * fns.c (Fset_char_table_default): Fix to make sub char-table
1179 correctly.
1180
50606b4c
GM
11812001-01-22 Gerd Moellmann <gerd@gnu.org>
1182
cb2ddc53 1183 * xdisp.c (build_desired_tool_bar_string): Make sure we have
a30629d2 1184 a desired tool bar string, even if there are no tool bar
cb2ddc53
GM
1185 items.
1186
57c28064
GM
1187 * xdisp.c (Ftool_bar_lines_needed): New function.
1188 (syms_of_xdisp): Defsubr it.
1189
50606b4c
GM
1190 * editfns.c (Fformat): Don't extend text properties from arguments
1191 to padding chars in the result.
1192
2f169c38
EZ
11932001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
1194
1195 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
1196
0f32f023
AI
11972001-01-20 Andrew Innes <andrewi@gnu.org>
1198
1199 * w32term.c (w32_ring_bell): Only support visible bell on w32
1200 frames.
1201 (w32_initialize): Don't set term hooks that aren't actually needed
1202 in windowed mode.
1203
1204 * xfaces.c (realize_default_face):
1205 (realize_face):
1206 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
1207
1208 * xdisp.c (handle_single_display_prop): Remove references to
1209 FRAME_W32_CONSOLE_P.
1210
1211 * dispnew.c (Fredraw_frame): Remove reference to
1212 FRAME_W32_CONSOLE_P.
1213
1214 * frame.h (output_method): Remove output_w32_console method.
1215 (FRAME_W32_CONSOLE_P): Remove macro.
1216
1217 * frame.c (Qw32_console): Remove variable.
1218 (Fframep): Remove references to it.
1219 (syms_of_frame): Ditto.
1220 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
1221
1222 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
1223 redefinition.
1224
7173eada
KH
12252001-01-20 Kenichi Handa <handa@etl.go.jp>
1226
1227 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
1228
755b45ce
AI
12292001-01-19 Andrew Innes <andrewi@gnu.org>
1230
1231 * w32.c (init_environment): Add a version-independent site-lisp
1232 directory to EMACSLOADPATH, after the version dependent one.
1233
0a949811
GM
12342001-01-19 Gerd Moellmann <gerd@gnu.org>
1235
8501998a
GM
1236 * editfns.c (Fbuffer_substring): Doc fix.
1237
0a949811
GM
1238 * xdisp.c (message_dolog, message2, message2_nolog): Rename
1239 parameter LEN to NBYTES.
1240
e6ebcbbe
KH
12412001-01-19 Kenichi Handa <handa@etl.go.jp>
1242
200ecca2
KH
1243 * charset.c (strwidth): Use c_string_width.
1244 (c_string_width): New function.
1245 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
1246 Caller changed.
1247
1248 * charset.h (c_string_width, lisp_string_width): Extern them.
1249
1250 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
1251
e6ebcbbe
KH
1252 * indent.c (check_composition): Check validity of composition.
1253
200ecca2
KH
1254 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
1255 characters by calling c_string_width.
1256 (x_consider_frame_title): Get byte length of frame tile string
1257 correctly.
1258 (display_mode_element): Pay attention to width of non-ASCII
1259 characters by calling strwidth.
1260
8692ca92
GM
12612001-01-18 Gerd Moellmann <gerd@gnu.org>
1262
8962e303
GM
1263 * xfns.c (Qcancel_timer): New variable.
1264 (syms_of_xfns): Initialize and staticpro it.
1265 (Fx_hide_tip, Fx_show_tip): Use it.
1266 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
1267 the timer.
1268 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
1269
91523be9
GM
1270 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
1271
1272 * window.h (WINDOW_LIVE_P): New macro.
1273
b0b7ed0e
GM
1274 * window.c (window_size_fixed): New variable.
1275 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
1276 the doc string.
1277
06bccf8e
GM
1278 * eval.c (specbind): If binding a per-buffer variable which
1279 doesn't have a buffer-local value in the current buffer, change
1280 the global value by changing the value of the symbol bound in all
1281 buffers not having their own value, to make it consistent with
1282 what happens with other buffer-local variables.
1283
8692ca92
GM
1284 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
1285
1286 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
1287 when searching for a newline.
1288
bb3a3b50
KH
12892001-01-18 Kenichi Handa <handa@etl.go.jp>
1290
1291 * xdisp.c (display_string): Fix previous change.
1292
c2cc16fa
JR
12932001-01-18 Jason Rumney <jasonr@gnu.org>
1294
1295 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
1296 GLYPH_DEBUG is defined.
1297 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
1298 true for images with `:ascent 100'.
1299 (x_set_mouse_face_gc): If the last used mouse face has gone in the
1300 meantime, use face MOUSE_FACE_ID.
1301 If first glyph isn't a character glyph, use the ASCII NUL
1302 character to determine the face.
1303 (expose_area): Do not treat left margin specially.
1304 (note_mode_line_highlight): If no local_map, check global keymap.
1305 (note_mouse_highlight): Initialize overlay.
1306 (clear_mouse_face): Don't return if tip_frame is
1307 non-nil.
1308 (show_scroll_bars): Remove unused function.
1309 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
1310 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
1311 Clip to row.
1312 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be
1313 nil.
1314 (x_free_frame_resources): Unload relief colors.
1315
9c11f79e
GM
13162001-01-17 Gerd Moellmann <gerd@gnu.org>
1317
3aec8722
GM
1318 * xdisp.c (forward_to_next_line_start): Avoid calling
1319 get_next_display_element when the newline is already found. This
1320 may change the iterator's position, when its current position is
1321 equal to the iterator's stop_charpos.
1322
f3ffc2c3
GM
1323 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
1324 zero, use this method only at the end of a line.
1325
a86110a8
GM
1326 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
1327 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
1328 if SCALABLE_FONTS_P is set.
1329
d26d6fd9
GM
1330 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
1331 so that scalable fonts are included.
1332
9c11f79e
GM
1333 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
1334 In the cache, use a key containing the information if scalable
1335 fonts are included.
1336 (x_load_font): Adapt to change of keys in the font cache.
1337
13382001-01-17 Kim F. Storm <storm@filanet.dk>
1339
d26d6fd9
GM
1340 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
1341 XListFonts to take advantage of font caching.
1342
9c11f79e
GM
1343 * xterm.c (x_list_fonts): Ensure caching font information when
1344 called for a null frame, which is the case frequently when Emacs
1345 starts.
1346
51446987
GM
13472001-01-17 Gerd Moellmann <gerd@gnu.org>
1348
f864120f
GM
1349 * xfns.c (QCconversion): Replaces QCalgorithm.
1350
1351 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
1352
1353 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
1354 of :algorithm.
1355
e37d1417
GM
1356 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
1357 not everything could be displayed.
1358
51446987
GM
1359 * line.h, x-list-font.c: Files removed because unused.
1360
9ad4f3e5
AI
13612001-01-17 Andrew Innes <andrewi@gnu.org>
1362
1363 * dired.c (directory_files_internal): Convert result from readdir
1364 to a unibyte string initially, to avoid possible misinterpretation
1365 of some bytes as the internal form of Emacs characters.
1366
2eda09b5
KH
13672001-01-17 Kenichi Handa <handa@etl.go.jp>
1368
1369 * fns.c (concat): Be sure to avoid putting the same `composition'
1370 property on the adjacent regions.
1371
826f3788
GM
13722001-01-16 Gerd Moellmann <gerd@gnu.org>
1373
f251459d
GM
1374 * window.c (Fset_window_hscroll): Don't set window's min_hscroll
1375 here.
1376 (Fscroll_right, Fscroll_left): Set it here instead, if called
1377 interactively.
1378
d57b83b3
GM
1379 * buffer.c (Fset_buffer_modified_p): Set buffer's
1380 prevent_redisplay_optimizations_p flag.
1381
826f3788
GM
1382 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
1383 * sysdep.c, vmsproc.c, xselect.c: Call
1384 redisplay_preserve_echo_area with additional arg.
1385
1386 * dispextern.h, lisp.h (redisplay_preserve_echo_area): Change
1387 prototype.
1388
1389 * xdisp.c (redisplay_preserve_echo_area): Add parameter
1390 FROM_WHERE, for debugging.
1391
261d788b
KH
13922001-01-16 Kenichi Handa <handa@etl.go.jp>
1393
1394 * ccl.c (Fregister_ccl_program): Handle the return value of
1395 resolve_symbol_ccl_program correctly.
bda6b481
KH
1396 (CCL_Extension): Fix typo (originally CCL_Extention). Caller
1397 changed.
261d788b 1398
bccee4f2
GM
13992001-01-15 Gerd Moellmann <gerd@gnu.org>
1400
e4ded23c
GM
1401 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
1402 has gone in the meantime, use face MOUSE_FACE_ID.
1403
ae24cb3b
GM
1404 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: If
1405 x_display_info_for_display returns null, don't try to close
1406 the display; we didn't open it.
1407
bccee4f2
GM
1408 * dispnew.c (save_or_restore_current_matrices): Function removed.
1409 (save_current_matrix, restore_current_matrix): New functions.
1410 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
1411 restore the frame's current matrix. Due to the glyph pointer
1412 setup done in adjust_glyph_matrix, there is no easy way to make
1413 saving the current matrix in the desired matrix generally correct,
1414 so don't try it.
1415
ebeccffa
KH
14162001-01-15 Kenichi Handa <handa@etl.go.jp>
1417
1418 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
1419 truncation glyphs.
1420 (display_line): Optimize for wide characters.
e4ded23c 1421 (display_string): Don't try to display a multi-column character
ebeccffa
KH
1422 partially. On ttys, produce more than one truncation glyph for
1423 multi-column characters that don't fit on the line.
1424
64388126
KH
14252001-01-13 Kenichi Handa <handa@etl.go.jp>
1426
1427 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]: Define
1428 it instead of WORDS_BIGENDIAN. Caller changed.
1429
8edb0a6f
JR
14302001-01-13 Jason Rumney <jasonr@gnu.org>
1431
1432 * w32fns.c (Fimage_size, image_ascent, lookup_image)
1433 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
1434 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
1435 (tiff_format, gif_format, gs_format): Adapt to change of image
1436 margins.
1437
1438 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
1439 (x_draw_image_relief, x_draw_image_foreground_1)
1440 (x_draw_image_glyph_string): Adapt to change of image margins.
1441
1442 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
1443 variables.
1444
1445 * w32bdf.c (search_file_line, get_cached_font_char)
1446 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
1447
1448 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
1449
1450 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
1451 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
1452 (Fw32_send_sys_command): Remove unused variables.
1453 (w32_msg_pump): Add parentheses.
1454
1455 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
1456 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
1457 Add parentheses.
1458
4956d1ef
GM
14592001-01-12 Gerd Moellmann <gerd@gnu.org>
1460
b30623be
GM
1461 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
1462 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
1463 being a pair of margins.
1464 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
1465 to DEFVAR_LISP. Extend doc.
1466
1467 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
1468 margins.
1469 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
1470 pair of integers `(X . Y)', use X for the horizontal and Y for the
1471 vertical margin.
1472 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
1473 (parse_image_spec): Check it.
1474 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
1475 (tiff_format, gif_format, gs_format): Use
1476 IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
1477
1478 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
1479 (x_draw_image_relief, x_draw_image_foreground_1)
1480 (x_draw_image_glyph_string): Adapt to the change of image margins.
1481
1482 * dispextern.h (struct image): Replace member `margin' with
1483 `hmargin' and `vmargin'.
1484
4554cc79
GM
1485 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
1486 and GLYPHS.
1487
1488 * dispnew.c (update_text_area): Put code which decrements the
1489 stop position when the row's face extends to the end of the
3bffc665 1490 line in #if 0.
4554cc79 1491
3cccce8d
GM
1492 * xfns.c (x_set_mouse_color): Fix color allocation.
1493
4956d1ef
GM
1494 * keyboard.c: Call get_local_map with new argument list.
1495
1496 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
1497
1498 * intervals.h (enum map_property): Removed.
1499 (get_local_map): Change prototype.
1500
1501 * keymap.c: Call get_local_map with new argument list.
1502 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
1503
2c2ff7f2
GM
15042001-01-11 Gerd Moellmann <gerd@gnu.org>
1505
a23887b9
GM
1506 * xdisp.c (build_desired_tool_bar_string): Correct the computation
1507 of the size needed for the tool bar string. For the last image,
1508 use a `display' property that reaches to the end of the string.
1509
a7ee2d2e
GM
1510 * xselect.c (selection_request_dpyinfo): New variable.
1511 (x_handle_selection_request): Set it.
1512 (x_selection_request_lisp_error): Don't call
1513 x_decline_selection_request if selection request's display has
1514 been closed.
1515
2c2ff7f2
GM
1516 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]: Do
1517 the unregister_colors before calling XFreeColors.
1518
457b792c
GM
15192001-01-10 Dave Love <fx@gnu.org>
1520
1521 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
1522 ${SOME_MACHINE_LISP}, not ${lisp}.
1523
c1efd260
GM
15242001-01-10 Gerd Moellmann <gerd@gnu.org>
1525
a98b5ed9 1526 * xdisp.c (display_line): On ttys, produce more than one
4554cc79 1527 truncation glyph for multi-column characters that don't fit on the
a98b5ed9
GM
1528 line.
1529
ac95a621
GM
1530 * xselect.c (x_reply_selection_request): Add a comment.
1531
c1efd260
GM
1532 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
1533 XkbGetNames instead of XkbGetKeyboard.
1534
1bfb1345
DL
15352001-01-10 Dave Love <fx@gnu.org>
1536
1537 * sysdep.c (random): Revert the declaration.
1538
38119822
GM
15392001-01-09 Gerd Moellmann <gerd@gnu.org>
1540
35f464a7
GM
1541 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]: Call
1542 function string_bytes.
1543 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
1544
1545 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
1546 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
1547 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
1548 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
1549 the current sblock.
1550 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
1551 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
1552 after sweeping strings, and at the end.
1553 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
1554
38119822
GM
1555 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
1556 ensure that pop_message is called.
1557
1558 * keyboard.c (Fexecute_extended_command): Use a
1559 record_unwind_protect to ensure that pop_message is called.
1560
1561 * lisp.h (push_message_unwind): Add prototype.
1562
1563 * xdisp.c (push_message_unwind): New function.
1564
1565 * fileio.c (do_auto_save_unwind): Do the pop_message here
1566 instead of in Fdo_auto_save.
1567 (Fdo_auto_save): Don't call pop_message.
1568
f47a9ec4
KR
15692001-01-08 Ken Raeburn <raeburn@gnu.org>
1570
1571 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
1572 in inner block.
1573
a758f97d
GM
15742001-01-08 Gerd Moellmann <gerd@gnu.org>
1575
6d0afc03
GM
1576 * window.c (window_scroll_pixel_based): Adjust glyph matrices
1577 when increasing window's vscroll.
1578
a758f97d
GM
1579 * macros.c (Qkbd_macro_termination_hook): New variable.
1580 (syms_of_macros): Initialize and staticpro it.
1581 (pop_kbd_macro): Run kbd-macro-termination-hook.
1582
1583 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
1584
1bfb1345 15852001-01-07 Dave Love <fx@gnu.org>
64d4ec0f
DL
1586
1587 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
1588 arglist, for documentation's sake.
1589
0dac6924
AI
15902001-01-06 Andrew Innes <andrewi@gnu.org>
1591
1592 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
1593 of *.pdb.
1594
8182406a
AI
15952001-01-05 Andrew Innes <andrewi@gnu.org>
1596
1597 * term.c (update_end): Don't check updating_frame; for some reason
1598 this can be 0 sometimes, such as after dismissing a popup menu,
1599 and isn't necessary given the explicit frame argument.
1600
3828218c
GM
16012001-01-05 Gerd Moellmann <gerd@gnu.org>
1602
1603 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
1604 on some systems, and an unsigned long on others, like FreeBSD 4.1.
1605
2f5ded21
GM
16062001-01-04 Gerd Moellmann <gerd@gnu.org>
1607
1608 * xterm.c (clear_mouse_face): Don't return if tip_frame is
1609 non-nil.
1610
1611 * xfns.c (x_create_tip_frame): Preserve the value of
1612 face_change_count around the creation of the tip frame.
1613
1614 * xfns.c (last_show_tip_args): New variable.
1615 (compute_tip_xy): New function.
1616 (Fx_show_tip): Reuse an existing tip frame, if possible.
1617 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
1618
dfad65fa
DL
16192001-01-04 Dave Love <fx@gnu.org>
1620
64d4ec0f
DL
1621 * editfns.c (Fformat): Doc fix.
1622
dfad65fa
DL
1623 * systime.h (set_file_times): Prototype.
1624
1625 * widget.h (EmacsFrameSetCharSize_): Prototype.
1626
1627 * sysdep.c (random, srandom): Declare explicitly.
1628
1629 * dispextern.h (move_it_vertically_backward): Declare.
1630
85fe3b5e
GM
16312001-01-04 Gerd Moellmann <gerd@gnu.org>
1632
0f2ac578
GM
1633 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
1634 like in Fx_create_frame.
1635
482cca61
GM
1636 * xfaces.c (set_font_frame_param): Don't do anything for
1637 non-graphical frames.
1638
85fe3b5e
GM
1639 * window.c (Fdelete_other_windows): Set window's window_end_valid
1640 to nil when changing the window's start. Don't change the
1641 window's start when its top position hasn't changed. If we do,
1642 this will set the window's optional_new_start, which act's like a
1643 force_start during redisplay with C-x 1 M-> under particular
1644 circumstances (see report from Per Starback to emacs-pretest-bug
1645 from 2000-12-13.).
1646
3e99d3b4
GM
16472001-01-03 Gerd Moellmann <gerd@gnu.org>
1648
a77dc1ec
GM
1649 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
1650 short cut at the start of the function. Add an assertion.
1651 (reseat_at_next_visible_line_start): Add an assertion.
1652
2f3cad6c
GM
1653 * window.c (Frecenter): When changing the window start, set the
1654 window's window_end_valid to nil.
1655 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
1656
1657 * dispextern.h (move_it_past_eol): Add prototype.
1658
1659 * xdisp.c (move_it_past_eol): New function.
1660
3e99d3b4
GM
1661 * window.c (Fwindow_end): Doc fix.
1662
16632001-01-03 Dave Love <fx@gnu.org>
1664
1665 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3
1666 kluge.
1667
bafb434c
GM
16682001-01-03 Gerd Moellmann <gerd@gnu.org>
1669
1670 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
1671 the enabled_p flag of the glyph row at window_end_vpos to 0.
1672 (handle_single_display_prop): Fix last change.
1673
5297fb00
RS
16742001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
1675
1676 * window.c (Frecenter): Doc fix.
1677
13d6a61c
AI
16782001-01-02 Andrew Innes <andrewi@gnu.org>
1679
1680 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
1681
1682 * frame.h (output_method): Add output_w32_console method.
1683 (FRAME_W32_CONSOLE_P): New macro.
1684
1685 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
1686 use output_w32_console method.
1687 (Qw32_console): New Lisp_Object.
1688 (Fframep): Return it.
1689 (syms_of_frame): Init it.
1690 (Fframe_parameters): Report w32console as font for w32_console
1691 frames.
1692
1693 * xfaces.c (realize_default_face): Set face foreground and
1694 background to unspecified for w32_console frames.
1695 (realize_face): Realize face cache for w32_console frames.
1696 (realize_tty_face): Accept w32_console frames.
1697
1698 * xdisp.c (handle_single_display_prop): Return if frame is
1699 w32_console.
1700 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
1701 necessary, even if running interactively.
1702
1703 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
1704 w32_console frames.
1705
1706 * w32term.c (x_update_begin):
1707 (x_update_end):
1708 (x_clear_frame):
1709 (x_ins_del_lines):
1710 (x_change_line_highlight):
1711 (x_delete_glyphs):
1712 (w32_ring_bell):
1713 (x_update_begin):
1714 (x_update_end):
1715 (w32_reassert_line_highlight):
1716 (w32_frame_rehighlight):
1717 (w32_frame_raise_lower): Do nothing if not w32 frame.
1718
1719 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
1720
1721 * w32fns.c (Fx_display_color_cells): Determine correct value, when
1722 system doesn't tell us directly.
1723 (Fx_display_visual_class): Implement properly.
1724
d6bb0c0d
GM
17252001-01-02 Gerd Moellmann <gerd@gnu.org>
1726
1727 * window.c (Frecenter): Handle centering in graphical frames
1728 specially. Centering on the basis of line counts doesn't work
1729 reliably with variable-height lines.
1730
315f5865
EZ
17312001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
1732
1733 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
1734 and al[].
1735
1736 * composite.c (run_composition_function): Remove unused variable
1737 `val'.
1738 (update_compositions): Remove unused variable `hook'.
1739
1740 * intervals.c (get_local_map): Remove unused variable `tem'.
1741
1742 * doprnt.c (doprnt1): Remove unused variable `size'.
1743
1744 * fns.c (Flength): Remove unused variable `tail'.
1745 (Fdelete): Remove unused variable `size'.
1746
1747 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
1748 and `gcpro2'.
1749
1750 * doc.c (Fsnarf_documentation): Remove unused variables `fun' and
1751 `tem'.
1752
1753 * data.c (find_symbol_value): Remove extra 3rd argument in the
1754 call to swap_in_symval_forwarding.
1755
1756 * undo.c (Fprimitive_undo): Remove unused block-scope variable
1757 `end'.
1758
1759 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
1760 (trivial_regexp_p): Remove unused variable `c'.
1761 (boyer_moore): Remove unused variable `k'.
1762
1763 * indent.c (current_column): Remove unused variable `stopchar'.
1764 (Fcompute_motion): Remove unused variable `contin'.
1765
1766 * casefiddle.c (casify_object): Remove unused variable `tolen'.
1767
1768 * dired.c (directory_files_internal): Fix a typo in a comment.
1769 Remove an unused variable `handler'.
1770 (file_name_completion): Remove unused function-scope variable
1771 `dp'.
1772 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
1773 on BSD4_2.
1774
1775 * fileio.c (e_write): Remove unused variable
1776 `require_encoding_p'.
1777
1778 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
1779 and `buf'.
1780 (Fmarker_insertion_type): Remove unused variable `buf'.
1781
1782 * insdel.c (make_gap): Remove unused variable `result'.
1783
1784 * keyboard.c (record_char): Remove unused function-scope variable
1785 `help'.
1786 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
1787 (menu_bar_items): Remove unused function-scope variable `tem'.
1788
1789 * fontset.c (fontset_ref): Remove unused variable `i'.
1790 (fontset_set): Remove unused variables `j' and `tmp'.
1791 (make_fontset): Remove unused variables `i', `j', `elt' and
1792 `base_elt'.
1793 (make_fontset_for_ascii_face): Remove unused variable `name'.
1794 (fs_load_font): Remove unused variable `font_idx'.
1795 (fs_query_fontset): Remove unused function-local variable
1796 `fontset'.
1797 (list_fontsets): Remove unused variable `tail'.
1798 (Fnew_fontset): Remove unused variables `family' and `registry'.
1799 (accumulate_font_info): Remove unused variable `tmp'.
1800 (Ffontset_font): Remove unused variable `id'.
1801 (syms_of_fontset): Remove unused variable `i'.
1802
1803 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
1804 to x_term_init.
1805 (lookup_image): Remove unused variable `file'.
1806 (xbm_load): Remove unused variables `bitmap_data', `height', and
1807 `width'. Remove function-local variable `i', leave the
1808 block-local one.
1809 (gif_load): Remove unused variable `inc'.
1810
1811 * xterm.c (XTread_socket): Remove unused variables `p' and
1812 `pend'.
1813 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
1814 leave only the one in the inner block.
1815
1816 * xfaces.c (face_fontset, realize_default_face): Remove unused
1817 variable `fontset'.
1818 (face_at_buffer_position): Remove unused variable `multibyte_p'.
1819
1820 * term.c (encode_terminal_code): Remove unused variable `c'.
1821
1822 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
1823 char *' instead of `char *'.
1824
1825 * category.c (Fcategory_docstring): Remove unused variable `doc'.
1826 (Fget_unused_category): Remove unused variable
1827 `docstring_vector'.
1828 (Fchar_category_set): Remove unused variables `val', `charset',
1829 `c1' and `c2'.
1830
1831 * coding.c (detect_coding_iso2022, setup_coding_system): Remove
1832 unused variable `i'.
1833 (detect_coding_mask): Remove unused variable `idx'.
1834 (detect_coding): Remove unused variable `i'.
1835 (ccl_coding_driver): Remove unused variable `result'.
1836 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
1837 (decode_coding_string): Remove unused variables `to' and
1838 `gcpro1'.
1839 (encode_coding_string): Remove unused variables `gcpro1' and
1840 `saved_coding_symbol'.
1841 (Ffind_coding_systems_region_internal): Remove function-local
1842 variable args[], leave only the block-local one.
1843 (code_convert_region1): Remove unused variable `len'.
1844
1845 * charset.c (char_printable_p): Remove unused variable `chars'.
1846 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
1847 (str_to_multibyte): Remove unused variable `c'.
1848
1849 * window.c (size_window): Remove block-local variable `min_size'.
1850
1851 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
1852 `header_line_height'.
1853 (append_space, extend_face_to_end_of_line): Declare `saved_what'
1854 enum display_element_type.
1855
1a8a9daf
GM
18562001-01-02 Gerd Moellmann <gerd@gnu.org>
1857
6dde6abc
GM
1858 * xterm.c (x_connection_closed): Catch X errors around all
1859 statements that call X. Save away the error message in a local
1860 copy.
1861
1883b2c6
GM
1862 * xterm.c (x_connection_closed): Set handling_signal to 0 at
1863 the start.
1864
a13be207
GM
1865 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
1866 in or at the start of invisible text.
1867
1a8a9daf
GM
1868 * dispnew.c (update_window): Don't check_current_matrix_flags.
1869
3608c0f9
JR
18702001-01-01 Jason Rumney <jasonr@gnu.org>
1871
1872 * w32fns.c (x_figure_window_size): Do not allow new_height and
1873 new_width of frame to override specified values.
1874
abb1acc4
KH
18752000-12-30 Kenichi Handa <handa@etl.go.jp>
1876
d279f620
KH
1877 * composite.c (find_composition): Fix a code for searching
1878 backward.
abb1acc4 1879
762a68ec
GM
18802000-12-29 Gerd Moellmann <gerd@gnu.org>
1881
9c8b8382
GM
1882 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New
1883 function.
1884 (update_window) [GLYPH_DEBUG]: Call it.
1885 (scrolling_window): Prevent including current rows which are below
1886 what's displayed in the window.
1887
1888 * xdisp.c (try_window_reusing_current_matrix)
1889 <new start <= old start>: Disable rows in the current matrix
1890 which are below the window after scrolling.
1891
762a68ec
GM
1892 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
1893 is zero. It's not worth the complexity.
1894 (invisible_text_between_p): Put in #if 0 because unused.
1895
2d5912c1
GM
18962000-12-28 Gerd Moellmann <gerd@gnu.org>
1897
46f6a258
GM
1898 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
1899 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
1900
89f93679
GM
1901 * keyboard.c (echo_char): If C is an integer, always call
1902 push_key_description. Former code could signal an invalid
1903 character error.
1904
1905 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
1906 If set, print multibyte text.
1907 (Fsingle_key_description): Call push_key_description with
1908 FORCE_MULTIBYTE set.
1909 (describe_buffer_bindings): Likewise.
1910
1911 * lisp.h (push_key_description): Add prototype.
1912
c06017fb
GM
1913 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
1914 around the call to redisplay_internal.
1915
f1d2ce7f
GM
1916 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
1917
2d5912c1
GM
1918 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
1919
9371f831
KH
19202000-12-28 Kenichi Handa <handa@etl.go.jp>
1921
1922 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
1923 (ccl_driver): New local variable `extra_bytes'.
1924
1925 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
1926
1927 * coding.c (setup_coding_system): Initialize
1928 coding->spec.ccl.eight_bit_carryover.
1929 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
1930
0c80628a
KH
19312000-12-28 Kenichi Handa <handa@etl.go.jp>
1932
1933 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
1934 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
1935 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
1936 (decode_composition_emacs_mule): New function.
1937 (decode_coding_emacs_mule): Decode composition sequence by calling
1938 decode_composition_emacs_mule.
1939 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
1940 (encode_coding_emacs_mule): Changed from macro to function. If
2d5912c1 1941 a text contains compositions, encode them correctly.
0c80628a
KH
1942 (setup_coding_system): Set coding->commong_flags for emacs-mule so
1943 that decoding and encoding are required.
1944
3e32cc27
GM
19452000-12-27 Gerd Moellmann <gerd@gnu.org>
1946
5e25feee
GM
1947 * xfaces.c (PT_PER_INCH): New macro.
1948 (xlfd_point_size): Compute real point size from font's pixel size.
1949 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
1950 instead of 72.
1951
892d8fcd
GM
1952 * .gdbinit: Comment out the line pointing to the Lesstif source
1953 directory.
1954
12c8b416
GM
1955 * window.c (Frecenter): Use displayed_window_lines instead
1956 of window_internal_height.
1957
6061fbf0
GM
1958 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
1959 instead of x-toolkit-scroll-bars-p.
1960 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
1961
1962 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
1963 instead of x-toolkit-scroll-bars-p.
1964 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
1965
3e32cc27
GM
1966 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
1967 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
1968 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]: New
1969 variables.
1970 (add_window_display_history, add_frame_display_history)
1971 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
1972 (build_frame_matrix_from_leaf_window): Remove unused code.
1973 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
1974 redisplay history.
1975 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
1976 (update_window) [GLYPH_DEBUG]: Likewise.
1977 (syms_of_display): Defsubr dump-redisplay-history.
1978
31798cfe
GM
19792000-12-23 Gerd Moellmann <gerd@gnu.org>
1980
f717c2ba
GM
1981 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
1982 the end of the prompt. Set echo_after_prompt to the offset
1983 of echoptr in echobuf.
1984
aeb2b8fc
GM
1985 * xdisp.c (init_from_display_pos): Pop until the iterator's
1986 stack is empty; there may be frames for stretch or images
1987 on the stack.
1988
31798cfe
GM
1989 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
1990 (save_or_restore_current_matrix): New function for the same
1991 purpose, but more efficient.
1992 (adjust_frame_glyphs_for_frame_redisplay): Use it.
1993
f8156156
EZ
19942000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
1995
1996 * xdisp.c (syms_of_xdisp): Fix last change.
1997
bdd6d4e8
GM
19982000-12-23 Gerd Moellmann <gerd@gnu.org>
1999
2000 * xdisp.c (syms_of_xdisp): Doc fix.
2001
2002 * xdisp.c (redisplay_window): Remove label restore_buffers;
2003 use finish_scroll_bars instead to make sure that scroll bars
2004 are redeemed. If we don't do this, flickering can result from
2005 scroll bars being destroyed and recreated.
2006
9436cdf9
JR
20072000-12-22 Jason Rumney <jasonr@gnu.org>
2008
2009 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
2010 in the wrong colors when the foreground is not black.
2011 (expose_window): Don't redraw the window that's currently being
2012 updated.
2013
951f9df5
GM
20142000-12-22 Gerd Moellmann <gerd@gnu.org>
2015
856ff7a7
GM
2016 * window.c (size_window): When setting the window's too_small_ok
2017 flag, compare old size with minimum size depending on WIDTH_P,
2018 don't compare with window_min_width.
2019
951f9df5
GM
2020 * window.c (delete_window): Simplify somewhat.
2021 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
2022 freeing window matrices. The flag windows_or_buffers_changed is
2023 set, so the next redisplay will consider all windows; this should
2024 suffice.
2025
886bc933
KH
20262000-12-22 Kenichi Handa <handa@etl.go.jp>
2027
2028 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
2029
2030 * ccl.h (struct ccl_program): New member cr_consumed.
2031
2032 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
2033 (CCL_READ_CHAR): Handle EOL conversion here.
2034 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
2035
177f4e88
GM
20362000-12-21 Gerd Moellmann <gerd@gnu.org>
2037
6ba384dc
GM
2038 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg
2039 GLYPHS.
2040
2041 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
2042 otherwise tabs of different size compare equal.
2043
2044 * callint.c (Fcall_interactively): Prevent a compiler warning.
2045
2046 * print.c (print_unwind): Return nil.
2047 (PRINTDECLARE): Initialize all local variables.
2048 (print_preprocess): Add a default case.
2049
8e15274f
GM
2050 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
2051
2052 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
2053
177f4e88
GM
2054 * window.c (delete_window, Fsplit_window)
2055 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
2056
2057 * dispextern.h (ensure_frame_matrix): Function declaration removed.
2058
2059 * dispnew.c (ensure_frame_matrix): Removed.
2060 (save_frame_matrix, restore_frame_matrix): New functions.
2061 (adjust_frame_glyphs_for_frame_redisplay): Use them.
2062
2063 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
2064 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
2065
99012074
AI
20662000-12-21 Andrew Innes <andrewi@gnu.org>
2067
2068 * w32term.c (x_update_begin): Regenerate the palette here, rather
2069 than for each window.
2070
2071 * w32xfns.c (select_palette): Avoid calling SelectPalette if
2072 palette is NULL, since this corrupts memory! Also get
2073 display_info reference from frame.
2074
29ef7d2d
JR
20752000-12-21 Jason Rumney <jasonr@gnu.org>
2076
2077 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
2078
2079 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
2080 to avoid returning without releasing it.
3e27fa1f 2081
3f9d67a6
KH
20822000-12-21 Kenichi Handa <handa@etl.go.jp>
2083
587fc3f9
KH
2084 * keymap.c (push_key_description): Don't convert eight-bit-control
2085 and eight-bit-graphic to multibyte character.
2086
3f9d67a6
KH
2087 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
2088 generic character and CODE1 is nil, return the smallest character
2089 in CHARSET.
2090
774ba8c9
DL
20912000-12-20 Dave Love <fx@gnu.org>
2092
2093 * s/osf5-0.h (NSIG): Don't redefine.
2094
88416888
SM
20952000-12-20 Stefan Monnier <monnier@cs.yale.edu>
2096
2097 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
2098 excluding menu-bar and tool-bar.
2099 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
2100 (menu_item_p): Remove.
2101 (where_is_internal_1): Don't ignore menu-items.
2102
a6426c6f
GM
21032000-12-20 Gerd Moellmann <gerd@gnu.org>
2104
03ff8aab
GM
2105 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
2106 into account.
2107
2108 * window.c (make_window): Initialize window's min_hscroll.
2109 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
2110 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
2111 to zero.
2112 (struct saved_window): New member min_hscroll.
2113 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
2114 (Fset_window_configuration): Set window's min_hscroll.
2115 (save_window_save): Save window's min_hscroll.
2116 (compare_window_configurations): Compare min_hscroll values.
2117
2118 * window.h (struct window): New member min_hscroll.
2119
2120 * keyboard.c (echo_prompt): Prevent a compiler warning.
2121
8de4aaf8
GM
2122 * xdisp.c (try_cursor_movement): Fix last change. The real
2123 condition is that PT is at the end of the row, and should
2124 be displayed at the start of the next row.
2125
3f7e3031
GM
2126 * xdisp.c (try_cursor_movement): If we end on a partially
2127 visible line, end we already decided to scroll, return -1.
2128
a6426c6f
GM
2129 * dispextern.h (ensure_frame_matrix): Add prototype.
2130
2131 * window.c (delete_window, Fsplit_window)
2132 (Fset_window_configuration): Call ensure_frame_matrix.
2133
2134 * dispnew.c (fake_current_matrices, ensure_frame_matrix): New
2135 functions.
2136 (adjust_frame_glyphs_for_frame_redisplay): If display has been
2137 completed, call fake_current_matrices instead of marking frame
2138 garbaged.
2139
57fa2774
JR
21402000-12-20 Jason Rumney <jasonr@gnu.org>
2141
2142 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
2143
d925df90
EZ
21442000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
2145
2146 * fns.c (Frequire): Doc fix.
2147
7b93a85b
GM
21482000-12-19 Gerd Moellmann <gerd@gnu.org>
2149
71d4497a
GM
2150 * window.c (window_scroll_pixel_based): Don't use
2151 move_it_vertically.
2152
c74e645b
GM
2153 * dispnew.c (direct_output_for_insert): Fix check for mini-window
2154 currently displaying a message.
2155
7b93a85b
GM
2156 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
2157 xterm.h.
2158 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
2159
90d97e64
AI
21602000-12-18 Andrew Innes <andrewi@gnu.org>
2161
2162 * w32.c (w32_strerror): New function.
2163
2164 * w32.h (w32_strerror): New extern.
2165
2166 * w32fns.c (Fw32_shell_execute): Use it.
2167
91c9e6ce
GM
21682000-12-18 Gerd Moellmann <gerd@gnu.org>
2169
2170 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
2171
6f4745e2
EZ
21722000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
2173
2174 * msdos.c (IT_set_face): Obey inverse_video.
2175
c9e088ce
KH
21762000-12-18 Kenichi Handa <handa@etl.go.jp>
2177
2178 * dired.c (directory_files_internal): Always return decoded filenames.
2179
c3695f5f
GM
21802000-12-18 Gerd Moellmann <gerd@gnu.org>
2181
52d8e4ff
GM
2182 * xterm.c (x_connection_closed): Prevent being called recursively
2183 because of an error condition in XtCloseDisplay.
2184
62be9979
GM
2185 * xdisp.c (init_iterator): If noninteractive, and the frame's
2186 face cache is null, make one.
2187
5f7a1890
GM
2188 * xfns.c (show_busy_cursor): Check for live frames more
2189 thoroughly.
2190
c3695f5f
GM
2191 * process.c (wait_reading_process_input): Check for pending
2192 input when running timers.
2193
78555fbe
EZ
21942000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
2195
2196 * msdos.c (IT_write_glyphs): Compute the glyph face from
2197 str->face_id.
2198
b2b36264
KH
21992000-12-18 Kenichi Handa <handa@etl.go.jp>
2200
2201 * process.c (read_process_output): Don't run a filter if the code
2202 decoder produces nothing but carryover.
2203
9c543fbf
AI
22042000-12-17 Andrew Innes <andrewi@gnu.org>
2205
2206 * w32.c (sys_rename): Only check errno against EEXIST, and not
2207 EACCES, when determining whether rename failed because the target
2208 exists. This was resulting in indefinite looping on Windows 9x if
2209 the source file was locked by another process.
2210
2211 * w32fns.c (Ffile_system_info): New function.
2212 (syms_of_w32fns): Defsubr it.
2213
10c2b5a8
GM
22142000-12-17 Gerd Moellmann <gerd@gnu.org>
2215
b0228ace
GM
2216 * window.c (coordinates_in_window): Fix computation for
2217 position on vertical line between mode lines.
2218
10c2b5a8
GM
2219 * xfns.c (unwind_create_frame): Return t if frame was deleted.
2220 Don't alter tip_frame or tip_window.
2221 (unwind_create_tip_frame): Set tip_frame to nil only if frame
2222 was deleted.
2223
c844a81a
GM
2224 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
2225 Don't alter tip_frame or tip_window.
2226 (unwind_create_tip_frame): Set tip_frame to nil only if frame
2227 was deleted.
2228
6c825f8e
EZ
22292000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
2230
2231 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
2232 be consistent with the doc string. Reported by NAKAJIMA Mikio
2233 <minakaji@osaka.email.ne.jp>.
2234
af4bb4c8
KH
22352000-12-16 Kenichi Handa <handa@etl.go.jp>
2236
2237 * xfaces.c (Vface_ignored_fonts): New variable.
2238 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
2239 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
2240
8062e53a
GM
22412000-12-15 Gerd Moellmann <gerd@gnu.org>
2242
e87b8809
GM
2243 * dispnew.c (update_window): Detect pending input every nth line
2244 updated, i.e. do it depending on real work done, and not on the
2245 vpos of the line.
2246
2247 * xterm.c (expose_window): Don't redraw the window that's
2248 currently being updated.
2249
a6768cc5
GM
2250 * window.c (Fset_window_point): Remove test for
2251 cursor_in_non_selected_windows.
2252
4ea7fdca
GM
2253 * lread.c (read1): Recognize end of file after `\\'.
2254
8062e53a
GM
2255 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
2256 not unwind_create_frame.
2257
bb7959c1
GM
22582000-12-15 Dave Love <fx@gnu.org>
2259
2260 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
2261 bcopy & al.
2262
2263 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
2264
ced04c42
KH
22652000-12-15 Kenichi Handa <handa@etl.go.jp>
2266
c5443913
KH
2267 * coding.c (setup_coding_system): Clear all members of the struct
2268 coding_system at first.
bc137305
KH
2269 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
2270 argument.
2271 (code_convert_region): Don't override coding->src_multibyte and
2272 coding->dst_multibyte.
c5443913 2273
ced04c42
KH
2274 * fns.c (Fmd5): Docstring improved.
2275
c2d7f289
MB
22762000-12-15 Miles Bader <miles@gnu.org>
2277
2278 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
2279 are actually marked as mode-lines; otherwise use
2280 estimate_mode_line_height.
2281
9d7d9263
GM
22822000-12-14 Gerd Moellmann <gerd@gnu.org>
2283
2284 * editfns.c (Fformat): Prevent a buffer overrun when the format
2285 specifies a precision.
2286
7cf0153a
EZ
22872000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
2288
2289 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
2290 argument is outside the range [2..3].
2291
1de0f662
AI
22922000-12-14 Andrew Innes <andrewi@gnu.org>
2293
2294 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
2295 nothing to do. Bind inhibit-quit.
2296 (tip_frame): Make it a Lisp_Object.
2297 (x_create_tip_frame): Set tip_frame after it has been added to
2298 Vframe_list.
2299 (Fx_show_tip): Don't set tip_frame here.
2300 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New
2301 variables.
2302 (unwind_create_frame, unwind_create_tip_frame): New functions.
2303 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
2304 while a frame is only partially constructed.
2305
2306 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
2307 (x_free_frame_resources): New function.
2308 (x_destroy_window): Use it.
2309
02387dcc
GM
23102000-12-14 Gerd Moellmann <gerd@gnu.org>
2311
2312 * xfns.c (Fx_backspace_delete_keys_p): New function.
2313 (syms_of_xfns): Defsubr it.
2314
2315 * config.in (HAVE_XKBGETKEYBOARD): Add.
2316
0544ef49
KH
23172000-12-14 Kenichi Handa <handa@etl.go.jp>
2318
98d62747
KH
2319 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
2320 Always store string in multibyte representation in echobuf.
2321 (echo_char): Always store string in multibyte representation in
2322 echobuf.
2323 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
2324 (read_key_sequence): Adjusted for the change of echo_prompt.
2325
a20193cd
KH
2326 * fns.c (Fmd5): Docstring improved.
2327
191b83b6
KH
2328 * lisp.h (detect_coding_system): Prototype adjusted.
2329
0544ef49
KH
2330 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
2331 (detect_coding_emacs_mule, detect_coding_iso2022,)
2332 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
2333 (detect_coding_utf_16, detect_coding_ccl): Make them static. New
2334 argument MULTIBYTEP. Callers changed.
2335 (detect_coding_mask, detect_coding_system): New argument
2336 MULTIBYTEP. Callers changed.
1da1bb05
KH
2337 (decode_coding_string): Set coding->src_multibyte and
2338 coding->dst_multibyte before calling detect_coding and detect_eol.
2339 Update them after some coding system is detected.
2340
d5b3eb1b
SM
23412000-12-13 Stefan Monnier <monnier@cs.yale.edu>
2342
2343 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
2344
2345 * keyboard.c (menu_bar_items, tool_bar_items):
2346 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
2347
f7f8bb69
GM
23482000-12-13 Gerd Moellmann <gerd@gnu.org>
2349
19f71add
GM
2350 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
2351 New variables.
2352 (unwind_create_frame, unwind_create_tip_frame): New functions.
2353 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
2354 while a frame is only partially constructed.
2355
2356 * xterm.h (x_free_frame_resources): Declare.
2357
2358 * xterm.c (x_free_frame_resources): New function.
2359 (x_destroy_window): Use it.
2360
e10da507
GM
2361 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
2362 don't interrupt the update for pending input initially, i.e.
2363 update at least some lines.
2364
2365 * keyboard.c (do_mouse_tracking): Make externally visible.
2366
d5b3eb1b 2367 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
f7f8bb69
GM
2368
2369 * xfns.c (gray_bitmap_bits): Declare `char *'.
2370
90aa2856
GM
23712000-12-12 Gerd Moellmann <gerd@gnu.org>
2372
2373 * xdisp.c (display_tool_bar_line): Make sure that tool bar
2374 lines start with a relief line.
2375
a308c9cd
DL
23762000-12-12 Dave Love <fx@gnu.org>
2377
2378 * window.c (Fdisplay_buffer): Doc fix.
2379 (Fwindow_list): Remove unused var.
2380
2381 * buffer.h (mmap_set_vars): Declare.
2382
2383 * window.h (Fset_window_point): Declare.
2384
d575011f
EZ
23852000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
2386
bf6282d2 2387 * msdos.c (fast_find_position): Don't overstep the last window row.
d575011f
EZ
2388 (IT_note_mouse_highlight): Initialize portion to -1. Remove
2389 unused variable `area'. When looking for a row under (X,Y), give
2390 up if some of the previous rows is not enabled.
2391
ecf4d726
GM
23922000-12-12 Gerd Moellmann <gerd@gnu.org>
2393
2ebf6139
GM
2394 * window.c (Fset_window_point): If displaying cursors in windows
2395 other than the selected window, make sure redisplay updates
2396 other windows to show the new value of point in the window.
2397
2398 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
2399
bfdb75ee
GM
2400 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
2401 the buffer is the sole visible buffer when in the mini-buffer.
2402
4fdbd809
GM
2403 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
2404 Bind `inhibit-read-only' to t.
2405 (unwind_with_echo_area_buffer): Use AREF.
2406
c0006262
GM
2407 * xfns.c (Fx_hide_tip): Simplified.
2408
e9a59cad
GM
2409 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use
2410 GC_MAKE_GCPROS_NOOPS instead of `1'.
2411
ecf4d726
GM
2412 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
2413
e5959a9a
GM
24142000-12-11 Gerd Moellmann <gerd@gnu.org>
2415
a3642e49
GM
2416 * xfns.c (Fx_hide_tip): Fix last change.
2417
44b5a125
GM
2418 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
2419 nothing to do. Bind inhibit-quit.
2420 (tip_frame): Make it a Lisp_Object.
2421 (x_create_tip_frame): Set tip_frame after it has been added to
2422 Vframe_list.
2423 (Fx_show_tip): Don't set tip_frame here.
2424
2425 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
2426
2427 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
2428 Lisp_Object.
2429
2430 * dispextern.h: Change external declaration of tip_frame.
2431
d990421f
GM
2432 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
2433 return an empty string.
2434
4db87380
GM
2435 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
2436 of the window's update_mode_line flag, since the former is set by
2437 force-mode-line-update, not the latter. This makes
2438 column-number-mode slightly faster.
2439
e5959a9a
GM
2440 * xdisp.c (try_window_id) <all changes above window start>:
2441 Set the cursor.
2442
169fe44e
GM
24432000-12-11 Paul Eggert <eggert@twinsun.com>
2444
2445 * config.in (HAVE_FTELLO): Remove.
2446 (HAVE_FSEEKO): Add.
2447 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
2448 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
2449 HAVE_FTELLO.
2450 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
2451 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
2452
59ec59ae
MB
24532000-12-11 Miles Bader <miles@gnu.org>
2454
2455 * window.c (displayed_window_lines): Don't round up when
2456 converting empty space at bottom to lines.
ff904dd6
MB
2457 Handle non-newline-terminated final lines properly.
2458 (Fwindow_text_height): New function (used to be in lisp).
2459 (syms_of_window): Initialize it.
59ec59ae 2460
42ebfa31
SM
24612000-12-09 Stefan Monnier <monnier@cs.yale.edu>
2462
2463 * syntax.c (scan_lists): Check that the right quote char has the
2464 right Sstring syntax when jumping over strings.
2465 (init_syntax_once): Use Smax rather than 13.
2466
5cdb3cf3
MB
24672000-12-09 Miles Bader <miles@gnu.org>
2468
2469 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
2470 with PARTIALLY, inverting the sense.
2471 (window_scroll_pixel_based): Scroll partially visible lines into
2472 place if we hit the beginning or end of the buffer.
a12167c5
MB
2473 (displayed_window_lines): Don't include partially visible lines.
2474 (Fmove_to_window_line): Skip past any partially visible first line.
5cdb3cf3 2475
842b2a94
GM
24762000-12-08 Gerd Moellmann <gerd@gnu.org>
2477
2478 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
2479
2480 * tparam.c (tparam1): Change the way buffers are reallocated to be
2481 portable and less obfuscated.
2482
2483 * termcap.c (tgetent): Change the way buffers are reallocated to
2484 be portable and less obfuscated.
2485
2486 * macros.c (store_kbd_macro_char): Change the way buffers are
2487 reallocated to be portable and less obfuscated.
2488
2489 * lread.c (read1): Change the way buffers are reallocated to be
2490 portable and less obfuscated.
2491
2492 * doc.c (Fsubstitute_command_keys): Change the way buffers
2493 are reallocated so that it is portable.
2494
137cad7c
EZ
24952000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
2496
2497 * dosfns.c (Ffile_system_info): New function.
2498 (syms_of_dosfns): Defsubr it.
2499
5c7f629c
SM
25002000-12-07 Stefan Monnier <monnier@cs.yale.edu>
2501
2502 * alloc.c (gc_sweep): Add comment.
2503
959e647d
GM
25042000-12-07 Gerd Moellmann <gerd@gnu.org>
2505
28fcb7dc
GM
2506 * sound.c (vox_configure): Change order of ioctls. Don't
2507 set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
2508 Ignore errors when changing volume.
2509 (vox_close): Don't reset the device.
2510
926b7e5e
GM
2511 * process.c (read_process_output): Make sure the process marker's
2512 position is valid when the process buffer is changed in
2513 after-change functions. W3 does that.
2514
959e647d
GM
2515 * xfns.c (x_free_gcs): New function.
2516
2517 * xterm.h (x_free_gcs): Add prototype.
2518
2519 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
2520 freeing GCs here.
2521
2522 * xterm.c (x_destroy_window): Call x_free_gcs so that
2523 resources of non-toolkit X windows will be freed.
2524
478ea067
AI
25252000-12-07 Andrew Innes <andrewi@gnu.org>
2526
2527 * w32fns.c (xlfd_charset_of_font): Fix last change.
2528
fbee3231
DL
25292000-12-06 Dave Love <fx@gnu.org>
2530
67292061
DL
2531 * md5.h (__P): Don't define -- it comes from config.h.
2532
fbee3231
DL
2533 * strftime.c: Change some #if foo to #ifdef foo.
2534
4ee87dbb
AI
25352000-12-06 Andrew Innes <andrewi@gnu.org>
2536
2537 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
2538
2539 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname
2540 argument.
2541 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
2542 (w32_list_fonts): Don't choke if pattern doesn't specify a
2543 codepage.
2544
9765b4a4
GM
25452000-12-06 Gerd Moellmann <gerd@gnu.org>
2546
d285b373
GM
2547 * alloc.c (gc_sweep): Prevent symbols read during loadup
2548 from being freed.
2549
384333ee
GM
2550 * xdisp.c (underlying_face_id): New function.
2551 (handle_face_prop, face_before_or_after_it_pos): Use it
2552 to determine the face ``under'' a string. Let strings inherit
2553 the face of the buffer under them.
2554
2555 * xfaces.c (face_at_string_position): Update function comment.
2556
d4b72d58
GM
2557 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
2558 matrix if the window's left position has changed; we need to
2559 redraw it in this case.
2560
2561 * dispextern.h (struct glyph_matrix): Add member window_left_x.
2562
e1d05387
GM
2563 * window.c (coordinates_in_window): Check mouse on mode-line or
2564 header-line first.
2565
eb1b0c74
GM
2566 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
2567 advertized by the function documentation.
2568
d94d636f
GM
2569 * window.c (syms_of_window): Doc fix.
2570
3887b449
GM
2571 * sound.c (vox_configure): Set volume for left and right channel.
2572 (sound_cleanup): Return nil.
2573
efc8f57a
GM
2574 * xdisp.c (move_it_by_lines): Fix paren typo.
2575
9765b4a4
GM
2576 * xterm.c (x_load_font): Don't use the font's max_bounds for
2577 computing the height of the font. If max_bounds' ascent or
2578 descent are greater than the font's ascent or descent, this means
2579 glyphs overlap, which should be handled now by redisplay.
2580
6529ed87
GM
2581 * window.c (Veven_window_heights): New variable.
2582 (syms_of_window): DEFVAR_LISP it.
2583 (Fdisplay_buffer): Check Veven_window_heights before evening the
2584 window heights.
2585
0eb2ecde
MB
25862000-12-06 Miles Bader <miles@gnu.org>
2587
2588 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
2589 update `default-frame-alist' instead of setting no frame parameters.
2590
03d7a167
KH
25912000-12-06 Kenichi Handa <handa@etl.go.jp>
2592
2593 * composite.c (update_compositions): Fix typo (use the correct
2594 variable).
2595
5f8803c2
JR
25962000-12-05 Jason Rumney <jasonr@gnu.org>
2597
2598 * md5.h: Remove underscores from function declarations.
2599 (__attribute__, __alignof__) [!__GNUC__]: Define.
2600
2601 * md5.c: Delay include of md5.h until after namespace cleaning.
2602
c28a075b
JR
2603 * makefile.w32-in (fns.o): Depend on md5.h
2604 (md5.o): New target.
2605 (sunfns.o): Remove.
2606
2607 * makefile.nt: Likewise.
2608
ff3c7056
JR
26092000-12-05 Jason Rumney <jasonr@altavista.net>
2610
2611 * w32term.c (expose_area): Complete last change.
2612
0c21eeeb
KR
26132000-12-05 Ken Raeburn <raeburn@gnu.org>
2614
2615 * minibuf.c: Include intervals.h.
2616
f201d732
JR
26172000-12-05 Jason Rumney <jasonr@gnu.org>
2618
2619 * w32term.c (x_produce_glyphs): If a font for a component of
2620 a composition is not found, use 1 pixel dot ascent and 0 dot
2621 descent value to avoid displaying terribly tall empty boxes.
2622 (expose_area): Pass x-coordinate relative to the exposed
2623 area to x_draw_glyphs instead of a window-relative coordinate.
2624
21999ab9
GM
26252000-12-05 Gerd Moellmann <gerd@gnu.org>
2626
4d2036e4
GM
2627 * xdisp.c (next_element_from_ellipsis): Save face before selective
2628 display in saved_face_id, and set face_before_selective_p.
2629 (reseat_1): Reset face_before_selective_p.
2630 (append_space, extend_face_to_end_of_line): If iterator's
2631 face_before_selective_p is set, use the face from saved_face_id.
2632 (extend_face_to_end_of_line): For tty frames, make sure to
2633 use the right face id when producing spaces at the end of
2634 the line.
2635
2636 * dispextern.h (struct it): Add face_before_selective_p.
2637
52be17cc
GM
2638 * keyboard.c (record_char): Don't record identical help-echo
2639 events in recent_keys.
2640
8a4f36cc
GM
2641 * xterm.c [USE_X_TOOLKIT]: Close the display.
2642 (xim_close_dpy): Handle case that the display has been closed.
2643
57d6e381
GM
2644 * xterm.c (x_destroy_window): Reset the frame's X window after
2645 destroying it.
2646
21999ab9
GM
2647 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
2648 variable window_width.
2649 (line_draw_cost): Fix code skipping over spaces at the end of the
2650 line when must_write_spaces is not set.
2651 (scrolling_window): Fix code inserting runs in list of all runs.
2652
91372bb7
KH
26532000-12-05 Kenichi Handa <handa@etl.go.jp>
2654
2655 * coding.c (setup_coding_system): Be sure to initialize
2656 coding->category_idx.
2657
6c083b4c
GM
26582000-12-04 Gerd Moellmann <gerd@gnu.org>
2659
0c68ce6f
GM
2660 * xterm.c (PER_CHAR_METRIC): Removed because not used.
2661
6452929e
GM
2662 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
2663 area to x_draw_glyphs instead of a window-relative coordinate.
2664
d7f31e22
GM
2665 * fileio.c (auto_save_error): Add parameter ERROR. Show the
2666 error in the message.
2667
ae18aa3b
GM
2668 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
2669 timer after having read a key. It's not good for code reading
2670 several keys in a loop, like an input method.
2671
caa15ef7
GM
2672 * fileio.c (Finsert_file_contents): When VISIT is t, don't
2673 record undo information for format-decode.
2674
2675 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
2676 current buffer is read-only, not if it isn't.
2677
6c083b4c
GM
2678 * keyboard.c (record_char): Record `help-echo' input events
2679 in recent_keys only if they display some help. Don't record
2680 `help-echo' events as macro char.
2681
caa15ef7
GM
26822000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2683
2684 * editfns.c (save_excursion_restore): Don't move point
2685 in another window if it is showing the wrong buffer.
2686 Avoid the call to Fwindow_live_p, for speed.
2687
5a13529b
KH
26882000-12-04 Kenichi Handa <handa@etl.go.jp>
2689
e225faa7
KH
2690 * xfaces.c (struct font_name): New member registry_priority.
2691 (split_font_name): Initialize the above member to zero.
2692 (concat_font_list): New function.
2693 (font_list): Include fonts of all alternative registries.
2694 (FONT_POINT_SIZE_QUANTUM): New macro.
2695 (better_font_p): Ignore point size difference less than
2696 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
2697
e89648b4
KH
2698 * xterm.c (x_produce_glyphs): If a font for a component of
2699 a composition is not found, use 1 pixel dot ascent and 0 dot
2700 descent value to avoid displaying terribly tall empty boxes.
2701
5a13529b
KH
2702 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
2703
d7935eb6
KR
27042000-12-03 Ken Raeburn <raeburn@gnu.org>
2705
2706 * coding.h (code_convert_string1): Declare.
2707
2708 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
2709
2710 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name):
2711 Declare.
2712
0dd5e255
JR
27132000-12-02 Jason Rumney <jasonr@gnu.org>
2714
2715 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
2716 correctly for single byte character case.
2717 (w32_per_char_metric): Do not try to make any assumptions about
2718 the metrics of BDF fonts.
250cfece
JR
2719 (x_estimate_mode_line_height): If `mode-line' face
2720 hasn't a font, use that of the frame, as drawing glyphs
2721 does.
2722 (note_mouse_highlight): Change the cursor shape on the vertical
2723 border between windows [not enabled].
2724
2725 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
2726
2727 * w32fns.c (Fx_create_frame): Reintroduce the call to
2728 face-set-after-frame-defaults.
2729 (Vx_window_horizontal_drag_shape): New variable.
2730 (syms_of_xfns): DEFVAR_LISP it.
2731 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
2732 enabled].
0dd5e255 2733
b5d8d2ca
GM
27342000-12-02 Simon Josefsson <simon@josefsson.org>
2735
2736 * fns.c (Fmd5): Use a different logic to decide the coding system
2737 to use.
2738
2739 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
2740
fbb87147
EZ
27412000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
2742
2743 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is
2744 NULL.
2745
447e9da0
GM
27462000-12-01 Gerd Moellmann <gerd@gnu.org>
2747
7708ced0
GM
2748 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
2749 height for YNegative.
2750 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
2751 height; also see comment there.
2752
447e9da0
GM
2753 * window.c (coordinates_in_window): Handle computations for
2754 positions on the vertical bar and fringes differently for
2755 window-system frames. Consider some pixels near the vertical bar
2756 as on the bar if the frame doesn't have vertical scroll bars.
2757 Associate positions between mode or header lines with the
2758 right window, the left one.
2759
86d1db20
JR
27602000-12-01 Jason Rumney <jasonr@gnu.org>
2761
2762 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
2763
2764 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
2765 invalid frame.
2766
a1d58e5b
GM
27672000-12-01 Gerd Moellmann <gerd@gnu.org>
2768
2769 * window.c (struct saved_window): Add members orig_top and
2770 orig_height.
2771 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
2772 (save_window_save, Fset_window_configuration): Save/restore
2773 window's orig_top and orig_height.
2774
89c609af
JR
27752000-12-01 Jason Rumney <jasonr@gnu.org>
2776
4d177746 2777 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
86d1db20 2778
89c609af
JR
2779 * w32fns.c (x_set_cursor_color): Fix last change.
2780
eccc05db
GM
27812000-11-30 Gerd Moellmann <gerd@gnu.org>
2782
31b6671b
GM
2783 * xdisp.c (echo_area_display): If cursor is in the echo area, make
2784 sure that the next redisplay displays the minibuffer, so that
2785 the cursor will be replaced with what the minibuffer wants.
2786
eccc05db
GM
2787 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
2788 #ifndef instead of using #if.
2789 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
2790 USE_TOOLKIT_SCROLL_BARS is defined.
2791
162de750
JR
27922000-11-30 Jason Rumney <jasonr@gnu.org>
2793
2794 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
2795 x_display_cursor.
2796
693c4692
GM
27972000-11-30 Gerd Moellmann <gerd@gnu.org>
2798
2799 * fns.c (Fmd5): Doc fix.
2800
b5d8d2ca 28012000-11-30 Simon Josefsson <simon@josefsson.org>
edfb795e
GM
2802
2803 * fns.c (Fmd5): New function.
2804 (syms_of_fns): Defsubr md5.
2805
2806 * Makefile.in (obj): Add md5.o
2807
b02cd40b
GM
28082000-11-30 Gerd Moellmann <gerd@gnu.org>
2809
edfb795e
GM
2810 * md5.h, md5.c: New files, taken from glibc.
2811
df3aedcf
GM
2812 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
2813
b02cd40b
GM
2814 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
2815 hasn't a font, use that of the frame, as drawing glyphs
2816 does.
2817
8b5176cd
SM
28182000-11-29 Stefan Monnier <monnier@cs.yale.edu>
2819
2820 * eval.c (Frun_hooks): Allow 0 arguments.
2821
346598f1
GM
28222000-11-29 Gerd Moellmann <gerd@gnu.org>
2823
f9396e03
GM
2824 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
2825 is over the menu bar widget, say it's not on the frame.
2826
4a967a9b
GM
2827 * xfns.c (Fx_create_frame): Reintroduce the call to
2828 face-set-after-frame-defaults.
2829
346598f1
GM
2830 * eval.c (Fsignal): Reset handling_signal.
2831
222456a1
JR
28322000-11-28 Jason Rumney <jasonr@gnu.org>
2833
2834 * w32menu.c (add_menu_item): Reset menu item text when changing
2835 type to radio button.
2836
8049ddc0
GM
28372000-11-28 Gerd Moellmann <gerd@gnu.org>
2838
346598f1 2839 * xselect.c: Update copyright.
f4f4ee4d 2840
bebe4a2c
GM
2841 * window.c (coordinates_in_window): If on a mode or header line,
2842 but sufficiently close to its start, return ``on vertical
2843 border''. This gives us a way to drag windows horizontally when
2844 using toolkit scroll bars.
2845
2846 * xterm.c (note_mouse_highlight): Change the cursor shape
2847 on the vertical border between windows.
2848
2849 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
2850
2851 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
2852 (syms_of_xfns): DEFVAR_LISP it.
2853 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
2854
8d2c2642
GM
2855 * textprop.c (text_read_only): New function.
2856 (verify_interval_modification): Use it instead of signaling
2857 `text-read-only'. This makes it easier to catch this error
2858 with a breakpoint.:
2859
8049ddc0
GM
2860 * xdisp.c (forward_to_next_line_start): Check for newlines,
2861 not end of line, which includes CR.
2862
5a2bae6c
KH
28632000-11-28 Kenichi Handa <handa@etl.go.jp>
2864
2865 * coding.c (Ffind_coding_systems_region_internal): Be sure to
2866 include no-conversion.
2867
ae31f84d
JR
28682000-11-27 Jason Rumney <jasonr@gnu.org>
2869
2870 * w32fns.c (w32_load_system_font): Always mark font as double byte
2871 if codepage is unicode.
2872
67f1cf4c
GM
28732000-11-27 Gerd Moellmann <gerd@gnu.org>
2874
4a74d071
GM
2875 * xdisp.c (forward_to_next_line_start): If already on a newline,
2876 just consume it to avoid unintended skipping over invisible text
2877 below.
2878
902ae620
GM
2879 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
2880 `vertical-line', `mode-line' and `header-line' events.
2881
2882 * xdisp.c (try_window_id): Avoid starting to display in the middle
67f1cf4c
GM
2883 of a character, a TAB for instance. This is easier than to set
2884 up the iterator exactly, and it's not a frequent case, so the
2885 additional effort wouldn't really pay off.
2886
c1e279c2
AC
28872000-11-26 Andrew Choi <akochoi@i-cable.com>
2888
67f1cf4c 2889 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
c1e279c2
AC
2890 init_window_once.
2891
a609568a
JR
28922000-11-25 Jason Rumney <jasonr@gnu.org>
2893
48b21762
JR
2894 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]: Args
2895 to window_from_coordinates should be pixel coordinates.
2896
a609568a
JR
2897 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
2898 redisplay handles them properly.
2899
a658d039
MB
29002000-11-25 Miles Bader <miles@gnu.org>
2901
2902 * indent.c (compute_motion): Keep pos_byte in sync with pos.
2903
d3416cca
JR
29042000-11-24 Jason Rumney <jasonr@gnu.org>
2905
2906 * w32.c (init_environment): Set LANG environment variable based on
2907 locale settings, if not set.
2908
2909 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
2910 making tool bar smaller. When clearing the frame, also
2911 clear current matrices. Clear frame when tool bar disappears.
2912 Don't use more lines for the tool-bar than is available.
2913 (x_change_window_heights): New function.
2914
ba193890
GM
29152000-11-24 Gerd Moellmann <gerd@gnu.org>
2916
2be8f184
GM
2917 * xdisp.c (init_from_display_pos): If POS says we're already after
2918 an overlay string ending at POS, make sure to pop the iterator
2919 because it will be in front of that overlay string. When POS is
2920 ZV, we've thereby also ``processed'' overlay strings at ZV.
2921
ba193890
GM
2922 * xfaces.c (lface_from_face_name): Function comment fix.
2923
1862a24e
MB
29242000-11-24 Miles Bader <miles@gnu.org>
2925
2926 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
2927 apply `mode-line-inverse-video' -- zero means force display using
2928 the default face, non-zero means display using the specialized face.
2929 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
2930
f07fa1b8
KH
29312000-11-23 Kenichi Handa <handa@etl.go.jp>
2932
2933 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
2934 hard coded `4'.
2935
2bcdf662
EZ
29362000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
2937
2938 * coding.c (decode_coding_emacs_mule): Fix the case of
2939 CODING_EOL_LF, which used uninitialized value of c.
2940
ba8299ff
SM
29412000-11-23 Stefan Monnier <monnier@cs.yale.edu>
2942
2943 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
2944
f4117c4d
GM
29452000-11-22 Gerd Moellmann <gerd@gnu.org>
2946
03e757c1
GM
2947 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
2948 buffer object.
2949
f4117c4d
GM
2950 * frame.h (struct frame): Replace desired_tool_bar_items,
2951 current_tool_bar_items, n_desired_tool_bar_items,
cc362d76 2952 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
f4117c4d
GM
2953
2954 * frame.c (make_frame): Change initialization of tool bar
2955 items accordingly.
2956
2957 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
cc362d76 2958 Change references to members deleted from struct frame to use the
f4117c4d
GM
2959 new ones.
2960
2961 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
cc362d76 2962 references to members deleted from struct frame to use the new
f4117c4d
GM
2963 ones.
2964
2965 * dispnew.c (update_frame): Do nothing with frame's tool bar
2966 items.
2967
2968 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
2969
2970 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
cc362d76 2971 (note_tool_bar_highlight): Change references to members deleted
f4117c4d
GM
2972 from struct frame to use the new ones.
2973
f8e2f3f2
MB
29742000-11-23 Miles Bader <miles@gnu.org>
2975
2976 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
2977 the face's inverse-video attribute, rather than overriding it.
2978
60e8e0a5
GM
29792000-11-22 Gerd Moellmann <gerd@gnu.org>
2980
2981 * xfns.c (x_set_tool_bar_lines): Clear internal border when
2982 making tool bar smaller.
2983
92dd1b29
DL
29842000-11-22 Dave Love <fx@gnu.org>
2985
2986 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
2987
e672fdce
MB
29882000-11-22 Miles Bader <miles@gnu.org>
2989
3a17d6cc
MB
2990 * keyboard.c (Vminibuffer_message_timeout): New variable.
2991 (command_loop_1): Use it to determine message timeout.
2992 (syms_of_keyboard): Initialize it.
2993
60e8e0a5 2994 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
e672fdce 2995
e9655d81
KH
29962000-11-22 Kenichi Handa <handa@etl.go.jp>
2997
2998 * sysdep.c: Move the code for declaring h_errno after #include
2999 <netdb.h>.
3000
77270fac
GM
30012000-11-21 Gerd Moellmann <gerd@gnu.org>
3002
cd913aae
GM
3003 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
3004 the menu bar when the tooltip is unmapped.
3005
77270fac
GM
3006 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
3007 sole visible buffer when we're currently in the mini-buffer, and
3008 give up if so.
3009
556635d6
JR
30102000-11-21 Jason Rumney <jasonr@gnu.org>
3011
3012 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
3013 put on the clipboard.
3014 (Fw32_get_clipboard_data): Compare data on clipboard with saved
3015 copy of what Emacs last put there. If they are the same, do not
3016 use the clipboard copy to avoid losing data due to coding
3017 conversions.
3018
5b7bde64
MB
30192000-11-22 Miles Bader <miles@gnu.org>
3020
3021 * minibuf.c (Vminibuffer_prompt_properties): New variable.
3022 (syms_of_minibuf): Initialize it.
3023 (read_minibuf): Add properties from Vminibuffer_prompt_properties
3024 to prompt, don't make read-only.
3025
ff23e1dd
GM
30262000-11-21 Gerd Moellmann <gerd@gnu.org>
3027
3c64f287
GM
3028 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>: Add
3029 BEFORE/AFTER_POTENTIAL_GC.
3030
7aaf4388
GM
3031 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
3032
f5f47add 3033 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 3034
ff23e1dd
GM
3035 * term.c, cm.c: Don't try to include termcap.h; see comment there.
3036
37c35586
KH
30372000-11-21 Kenichi Handa <handa@etl.go.jp>
3038
3039 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
3040 ... #endif scope.
3041
ff9ab414
GM
30422000-11-20 Gerd Moellmann <gerd@gnu.org>
3043
c51d2b5e
GM
3044 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
3045 screen supports it.
3046
29a01b72
GM
3047 * s/gnu-linux.h: Don't use `#cpu'.
3048
09dfdf85
GM
3049 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
3050 not defined in mman.h.
3051
ff9ab414
GM
3052 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New
3053 variables.
3054 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
3055 and store an index in the XClientMessageEvent. Storing a
3056 Lisp_Object or pointer can fail on a 64 bit system, since X only
3057 transfers 32 bits.
3058 (x_scroll_bar_to_input_event): Get the window from
3059 scroll_bar_windows.
3060
81459ac9
DL
30612000-11-20 Dave Love <fx@gnu.org>
3062
3063 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
3064
56c13ae6
GM
30652000-11-20 Gerd Moellmann <gerd@gnu.org>
3066
3067 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
3068
495a6df3
KH
30692000-11-20 Kenichi Handa <handa@etl.go.jp>
3070
2bcf3714
KH
3071 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
3072 by WIDTH.
3073
495a6df3
KH
3074 * alloc.c (make_string): Fix previous change. Be sure to make
3075 unibyte string correctly.
3076
6d950f4c
GM
30772000-11-19 Gerd Moellmann <gerd@gnu.org>
3078
39b39373
GM
3079 * window.c (Fwindow_list): Change parameter list to be XEmacs
3080 compatible.
3081 (window_list_1): New function.
3082 (window_loop): Use it instead of Fwindow_list.
3083
b95b34e5
GM
3084 * sysdep.c (emacs_ospeed): New variable.
3085 (toplevel): Don't declare ospeed extern.
3086 (init_baud_rate): Use emacs_ospeed instead of ospeed.
3087
3088 * termcap.c (ospeed): Remove.
3089 (tputs) [!emacs]: Remove unused code.
3090 (tgetent): Avoid a compiler warning.
3091
e83dc917
GM
3092 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
3093 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 3094 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
3095
3096 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
3097 removed.
3098 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
3099 Take the X display as additional argument.
3100 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
3101 `Widget' is a pointer type that's not easily stored in Lisp_Object
3102 form in a portable way.
3103
6d950f4c
GM
3104 * dispnew.c (update_text_area): Fix last change.
3105
e47306e6
GM
31062000-11-18 Gerd Moellmann <gerd@gnu.org>
3107
fb3cd89b
GM
3108 * xdisp.c: Use BINDING_STACK_SIZE throughout.
3109
3110 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
3111 clear current matrices.
3112
edaa9aed
GM
3113 * buffer.c (mmap_enlarge): Don't print a message on stderr
3114 if mapping new memory at the end of the existing region fails.
3115
e47306e6
GM
3116 * dispnew.c (update_text_area): Don't skip over equal glyphs
3117 when the last current glyph overlaps the glyph to its right.
3118
509633e3
MB
31192000-11-18 Miles Bader <miles@gnu.org>
3120
3121 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
3122 lines that *end* with "..." too (that's the most common case!).
3123
d392e9c5
GM
31242000-11-18 Gerd Moellmann <gerd@gnu.org>
3125
67988445
GM
3126 * xdisp.c (resize_mini_window): Temporarily change to the
3127 mini-window's buffer if necessary.
1bfdbe43 3128
d392e9c5
GM
3129 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
3130 the tooltip obscures less text under it.
3131
31322000-11-17 Gerd Moellmann <gerd@gnu.org>
3133
3134 * puresize.h (BASE_PURESIZE): Increase to 700000.
3135
92bb977f
JR
31362000-11-18 Jason Rumney <jasonr@gnu.org>
3137
3138 * w32term.c (w32_draw_bitmap): Use face to set colors.
3139
26fbf20b
DL
31402000-11-17 Dave Love <fx@gnu.org>
3141
3142 * lread.c (Fload): Fix #ifdef for pcc.
3143
100b593b
GM
31442000-11-17 Gerd Moellmann <gerd@gnu.org>
3145
3146 * xdisp.c (pos_visible_p): Compute the default character height
3147 differently.
3148
a288d0d1
GM
31492000-11-16 Gerd Moellmann <gerd@gnu.org>
3150
cac94de6
GM
3151 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
3152 knowing the line's height; use the default font's height in that
3153 case.
3154
a288d0d1
GM
3155 * xfaces.c (weight_table): Add `demi' with the same meaning as
3156 `demibold'.
3157
981fb6f6
KH
31582000-11-16 Kenichi Handa <handa@etl.go.jp>
3159
2cca872d 3160 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
3161 (clear_glyph_row): Delete local static variable null_row.
3162
e5fa381b
JR
31632000-11-15 Jason Rumney <jasonr@gnu.org>
3164
3165 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
3166 (w32_alloc_lighter_color): Use new brightness calculations from
3167 xterm.c. Scale delta to be in the range expected by W32.
3168 (w32_draw_relief_rect): Use frame relief colors.
3169
8e42f043
GM
31702000-11-15 Gerd Moellmann <gerd@gnu.org>
3171
6d133d1f
GM
3172 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
3173 (Qinhibit_default_face_x_resources): New variable.
3174 (syms_of_frame): Initialize it.
3175 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
3176
3177 * xdisp.c (pos_visible_p): Improve function comment.
3178
3179 * lisp.h (BINDING_STACK_SIZE): New macro.
3180
8e42f043
GM
3181 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
3182 reading the directory if readdir returns null and errno is EAGAIN
3183 or EINTR.
3184
e8c87124
SM
31852000-11-14 Stefan Monnier <monnier@cs.yale.edu>
3186
3187 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
3188 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
3189 Set amount_to_scroll to max of dx and scroll_step so that
3190 scroll-conservatively doesn't defeat scroll-step>1.
3191 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
3192 scroll-conservatively for line-at-a-time scrolling.
3193
5f0c971d
GM
31942000-11-14 Gerd Moellmann <gerd@gnu.org>
3195
3196 * window.c (Fpos_visible_in_window_p): Call pos_visible with
3197 extra argument.
3198
3199 * xdisp.c (current_mode_line_height, current_header_line_height):
3200 New variables.
3201 (init_xdisp): Initialize them.
3202 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
3203 and use exact mode line heights if it is set.
3204
3205 * lisp.h (pos_visible_p): Change prototype.
3206
3207 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
3208 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
3209 and current_header_line_height first.
3210 (current_mode_line_height, current_header_line_height): Declare
3211 extern.
3212
d7361edf
MB
32132000-11-14 Miles Bader <miles@lsi.nec.co.jp>
3214
3215 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
3216 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
3217 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
3218
ee5e440a
MB
32192000-11-14 Miles Bader <miles@gnu.org>
3220
3221 * xterm.c (x_alloc_lighter_color): Include an additive component
3222 too for dark colors, because FACTOR isn't enough.
3223 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
3224 New macros.
3225
5ca020fc
GM
32262000-11-13 Gerd Moellmann <gerd@gnu.org>
3227
3228 * keyboard.c (show_help_echo): Call message3_nolog with number of
3229 bytes in the help string as 2nd parameter, instead of the number
3230 of characters.
3231
9d348294
MB
32322000-11-13 Miles Bader <miles@gnu.org>
3233
3234 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
3235 (Fload): Use new openp return protocol.
3236 Don't try to use Vload_source_file_function to load .elc files.
3237 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
3238 openp return protocol.
3239 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
3240
1729bb9a
KH
32412000-11-11 Kenichi Handa <handa@etl.go.jp>
3242
4e677396
KH
3243 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
3244
3245 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
3246 Defined these macros.
3247 (NLIST_STRUCT): Avoid re-defining it.
3248
1729bb9a
KH
3249 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
3250 -I/usr/contrib/X11R6/include.
3251 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
3252
a82fe213
JR
32532000-11-10 Jason Rumney <jasonr@gnu.org>
3254
3255 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
3256
3257 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
3258 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
3259
3260 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
3261 (Qw32_charset_vietnamese): New symbol.
3262 (xlfd_charset_of_font): New function.
3263 (w32_load_system_font): Use it.
3264 (x_to_w32_charset): Use Fassoc to find charset info. Special case
3265 when Vw32_charset_info_alist is nil to ensure default face always
3266 has font. Use Fcar and Fcdr for safety.
3267 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
3268 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
3269 pseudo-codepages for special cases.
3270 (w32_to_x_font): New parameter to allow charset portion to be
3271 specified where there is many to one mapping. Callers changed.
3272 (w32_list_fonts): Avoid listing fonts that won't display.
3273
52d89894
GM
32742000-11-10 Gerd Moellmann <gerd@gnu.org>
3275
3276 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
3277 (font_list_1): Renamed from font_list.
3278 (font_list): New function, trying alternative registries from
3279 Vface_alternative_font_registry_alist.
3280 (Finternal_set_alternative_font_registry_alist): New function.
3281 (syms_of_xfaces): Initialize and Staticpro
3282 Vface_alternative_font_registry_alist. Defsubr
3283 Finternal_set_alternative_font_registry_alist.
3284
651cd3da
KR
32852000-11-09 Ken Raeburn <raeburn@gnu.org>
3286
3287 * lisp.h (Flooking_at): Declare.
3288
388ac098
GM
32892000-11-09 Gerd Moellmann <gerd@gnu.org>
3290
778fbc46
GM
3291 * dired.c (directory_files_internal): Fix a braino.
3292
388ac098
GM
3293 * dired.c (directory_files_internal): Add missing GCPRO's.
3294 Some cleanup.
3295
ecaedde1
GM
32962000-11-08 Gerd Moellmann <gerd@gnu.org>
3297
f7eb32aa
GM
3298 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
3299 (resize_mini_window): Return quickly if Vresize_mini_window is
3300 nil. Don't return if Vmax_mini_window_height is nil.
3301
3302 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
3303 (syms_of_xdisp): Initialize them.
3304 (resize_mini_window): Act according to the setting of
3305 Vresize_mini_window.
3306 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
3307
ecaedde1
GM
3308 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
3309 scroll bar widget after configuring it, so that it will appear at
3310 the right position from the start.
3311 (XTredeem_scroll_bar): Cleaned up.
3312
3747ef2c
KH
33132000-11-08 Kenichi Handa <handa@etl.go.jp>
3314
3315 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 3316 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
3317 division by two.
3318
3319 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
3320
03391420
DL
33212000-11-07 Dave Love <fx@gnu.org>
3322
7758f1c1 3323 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
3324
3325 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
3326
b5de343d
GM
33272000-11-07 Gerd Moellmann <gerd@gnu.org>
3328
acad3c0b
GM
3329 * window.c (Fset_window_configuration): Don't try to preserve
3330 point in the current buffer, if that buffer is displayed in more
3331 than one window.
3332
b5de343d
GM
3333 * xfaces.c (lookup_named_face): If default face isn't realized,
3334 try to realize it. Return -1 if not successful.
3335 (Fx_list_fonts): Handle case that face cannot be determined.
3336 (Fface_font): Likewise.
3337
cdb1fe49
GM
33382000-11-06 Gerd Moellmann <gerd@gnu.org>
3339
3340 * window.c (displayed_window_lines): Detect partially
3341 visible lines at the bottom correctly.
3342
d3a67486
SM
33432000-11-06 Stefan Monnier <monnier@cs.yale.edu>
3344
3345 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
3346 when ensuring we don't do visit in indirect buffer.
3347
ff8dd5d5
KH
33482000-11-06 Kenichi Handa <handa@etl.go.jp>
3349
3350 * composite.h (compose_chars_in_text): Add prototype.
3351
3352 * composite.c (Vcomposition_function_table): New variable.
3353 (Qcomposition_function_table): New variable.
3354 (run_composition_function): Call
3355 Vcompose_chars_after_function with three arguments.
3356 (compose_chars_in_text): New function.
3357 (syms_of_composite): Modified the doc-string of
3358 Vcompose_chars_after_function. Declare composition-function-table
3359 as a lisp variable, and initialize it.
3360
3361 * xfns.c (x_encode_text): Suppress producing escape sequences for
3362 composition.
3363
3364 * xselect.c: Include composite.h.
3365 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
3366
d1145f85
AI
33672000-11-05 Andrew Innes <andrewi@gnu.org>
3368
3369 * w32term.c (x_produce_glyphs): Fix typo in enum name.
3370
3371 * sysdep.c (read_input_waiting): Remove extraneous argument to
3372 read_socket_hook.
3373
3374 * w32fns.c (Fx_server_version): Include w32_build_number in the
3375 return list.
3376
3377 * w32heap.c (w32_build_number): New variable.
3378 (cache_system_info): Set it.
3379
3380 * w32heap.h (w32_build_number): Add extern.
3381
3382 * emacs.c (syms_of_emacs): Update docstring for
3383 system-configuration, to reflect the actual usage on MS-Windows.
3384
e85ee976
GM
33852000-10-31 Gerd Moellmann <gerd@gnu.org>
3386
26dcb81b
GM
3387 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
3388 process idle timers while waiting for another event.
3389
0a894bad
GM
3390 * dispnew.c (update_frame_line): Handle case where spaces in
3391 the default face are colored.
3392
e85ee976
GM
3393 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
3394 window height hasn't changed.
3395
01b220b6
JR
33962000-10-31 Jason Rumney <jasonr@gnu.org>
3397
3398 * w32term.c (x_produce_glyphs): Handle composite characters.
3399 (x_draw_glyph_string_foreground)
3400 (x_draw_composite_glyph_string_foreground): Restore old font.
3401
4e6b7204
MB
34022000-10-31 Miles Bader <miles@lsi.nec.co.jp>
3403
3404 * minibuf.c (read_minibuf): Reset the undo history just before
3405 starting the recursive-edit.
3406
d4358b37
GM
34072000-10-30 Gerd Moellmann <gerd@gnu.org>
3408
563f68f1
GM
3409 * xfaces.c (menu_face_change_count): New variable.
3410 (Finternal_set_lisp_face_attribute): Increment it for changes
3411 of the `menu' face.
3412 (realize_basic_faces): Reflect changes in the `menu' faces
3413 in menu bars.
3414
82e274d1
GM
3415 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
3416 dy obtained from the iterator's y-position after moving from
3417 scroll_margin_pos to PT; see comment there.
3418
0dbf9fd2
GM
3419 * xdisp.c (safe_eval_handler): Call add_to_log.
3420
906b3b14
GM
3421 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
3422 is not a symbol or string.
3423
d4358b37
GM
3424 * xdisp.c (echo_area_display): Don't perform a display update from
3425 inside redisplay. The update will happen anyway at the end of
3426 redisplay, and it can confuse redisplay (GC messages while
3427 redisplaying, for instance.)
3428
70c825df
SM
34292000-10-30 Stefan Monnier <monnier@cs.yale.edu>
3430
cf9b4b0b
SM
3431 * xrdb.c (x_load_resources): Use the class name in the defaults.
3432
70c825df
SM
3433 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
3434 (regex_compile): Catch bogus \(\1\).
3435
a1d34b1e
GM
34362000-10-30 Gerd Moellmann <gerd@gnu.org>
3437
cae71efe
GM
3438 * xterm.c (x_alloc_nearest_color): Fix last change to compare
3439 RGB values.
3440
35efe0a1
GM
3441 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
3442 we have a color cache, check that the cached color equals the
3443 allocated color. If not, clear the color cache.
3444
1d3baf74
GM
3445 * window.c (displayed_window_lines): Change buffers if necessary.
3446 Fix computation of displayed lines.
3447
a1d34b1e
GM
3448 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
3449 update_menu_bindings to DEFVAR_BOOL.
3450
70737ea9
KH
34512000-10-30 Kenichi Handa <handa@etl.go.jp>
3452
70c825df 3453 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 3454
fa0cb51d
KH
3455 * puresize.h (BASE_PURESIZE): Increase to 680000.
3456
70737ea9
KH
3457 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
3458
0e4c08e8
JR
34592000-10-29 Jason Rumney <jasonr@gnu.org>
3460
3461 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
3462
3463 * w32term.c (w32_bdf_per_char_metric): Negate descent.
3464 (w32_cache_char_metrics): Handle possibility that 'x' does not
3465 exist in a BDF font.
3466 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
3467
3468 * w32bdf.h (bdffont): Add nchars.
3469
3470 * w32bdf.c (set_bdf_font_info): Set it.
3471 (w32_BDF_TextOut): Swap byte order of double byte characters.
3472 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
3473
45b84006
EZ
34742000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
3475
3476 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
3477 don't override the colors in frame's param_alist, unless they are
3478 unspecified.
3479
3480 * term.c (reassert_line_highlight): If inverse_video is non-zero,
3481 reverse the effect of the highlight flag.
3482
caf9deee
KR
34832000-10-27 Ken Raeburn <raeburn@gnu.org>
3484
3485 * window.h (Fwindow_live_p): Declare.
3486
ae0b9b46
KR
3487 * undo.c (record_delete): Check that last_undo_buffer is really a
3488 buffer before applying XBUFFER to it.
3489
3490 * keymap.c (where_is_internal): Pass lisp object, not integer, to
3491 Faref.
3492
02067692
SM
34932000-10-27 Stefan Monnier <monnier@cs.yale.edu>
3494
3495 * lisp.h (KEYMAPP): New macro.
3496 (get_keymap): Remove.
3497 (get_keymap_1): Rename get_keymap.
3498
3499 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
3500
3501 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
3502
3503 * xmenu.c (single_submenu): Use KEYMAPP.
3504 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
3505 Use KEYMAPP rather than Fkeymapp.
3506
3507 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
3508
3509 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
3510 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
3511 Use KEYMAPP rather than Fkeymapp.
3512 (single_submenu): Use KEYMAPP.
3513 (w32_menu_show, w32_dialog_show): Use TRUE.
3514
3515 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
3516
3517 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
3518 (Fkeymapp): Use KEYMAPP.
3519 (get_keymap): Rename from get_keymap_1. Remove old def.
3520 Return t when autoload=0 and error=0 and the keymap needs autoloading.
3521 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
3522 (Fminor_mode_key_binding): Don't raise an error if the binding
3523 is not a keymap.
3524 (Fuse_global_map, Fuse_local_map): Allow autoloading.
3525 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
3526
3527 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
3528 Allow Vspecial_event_map to be autoloaded.
3529 (menu_bar_items): Fetch the keymap rather than using keymapp.
3530 (menu_bar_one_keymap): No need to follow func-indirect any more.
3531 (parse_menu_item): get_keymap_1 -> get_keymap.
3532 (tool_bar_items): Fetch the keymap rather than using keymapp.
3533 (read_key_sequence): Use KEYMAPP.
3534
3535 * intervals.c (get_local_map): Use get_keymap rather than following
3536 function-indirections explicitly.
3537
3538 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
3539
f9d80af3
JR
35402000-10-27 Jason Rumney <jasonr@gnu.org>
3541
3542 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
3543 point, as Windows has oversized fonts.
3544
3545 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
3546
a3ba27da
GM
35472000-10-27 Gerd Moellmann <gerd@gnu.org>
3548
3549 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
3550 (freehook, reallochook): Handle null pointer arguments.
3551 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
3552
aa3b80cc
SM
35532000-10-27 Stefan Monnier <monnier@cs.yale.edu>
3554
3555 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
3556 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
3557 Giving in to popular pressure to shut up the compiler with casts.
3558
e24e84cc
GM
35592000-10-27 Gerd Moellmann <gerd@gnu.org>
3560
3561 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
3562 signed value, and use a default value computed from the font's
3563 maximum descent.
3564
05ea7ef2
MB
35652000-10-27 Miles Bader <miles@lsi.nec.co.jp>
3566
3567 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
3568 that specify a negative underline position can still use underlines.
3569
3570 * window.c (Fpos_visible_in_window_p): Make POS default to
3571 WINDOW's point, not the current buffer's point.
3572
0b95284b
DL
35732000-10-26 Dave Love <fx@gnu.org>
3574
3575 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
3576 when it's necessary.
3577
6c5b90af
GM
35782000-10-26 Gerd Moellmann <gerd@gnu.org>
3579
8b6d9dc9
GM
3580 * window.c (size_window): Compute size difference from sum of old
3581 child window sizes instead of from parent's size.
3582
6bc92b2e
GM
3583 * xdisp.c (pos_visible_p): Change current buffer if necessary.
3584 Handle obscured lines at the top of the window.
3585
3586 * frame.c (Fdelete_frame): Doc fix. Move running the hook
3587 down after the last error condition check.
3588
6c5b90af
GM
3589 * frame.c (Fdelete_frame): Run delete-frame-hook.
3590
42f92d4d
KH
35912000-10-26 Kenichi Handa <handa@etl.go.jp>
3592
3593 * coding.c (decode_coding): Fix previous change (check also
3594 CODING_MODE_LAST_BLOCK).
3595
d97151cb
SM
35962000-10-25 Stefan Monnier <monnier@cs.yale.edu>
3597
e7efc503
SM
3598 * regex.c: More `unsigned char' -> `re_char' changes.
3599 Also change several `int' into `re_wchar_t'.
3600 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
3601 (PUSH_FAILURE_POINTER): Don't cast any more.
3602 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
3603 We want GCC to complain, since this piece of code makes
3604 re_match non-reentrant, which *should* be fixed.
3605 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
3606 (EXTEND_BUFFER): Use RETALLOC.
3607 (SET_LIST_BIT): Don't cast.
3608 (re_wchar_t): New type.
3609 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
3610 that those two functions will always properly return.
3611 (IMMEDIATE_QUIT_CHECK): Cast to void.
3612 (analyse_first): Use recursion rather than an explicit stack.
3613 (re_compile_fastmap): Can't fail anymore.
3614 (re_search_2): Don't check re_compile_fastmap for failure.
3615 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
3616 Now also sets the new value (passed in a new argument).
3617 (re_match_2_internal): Use it.
3618 Also, use a new var `reg' of type size_t when looping through regs
3619 rather than reuse the inappropriate `mcnt'.
3620
d97151cb
SM
3621 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
3622 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
3623 (where_is_internal): Renamed from Fwhere_is_internal.
3624 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
3625 (Fwhere_is_internal): New function wrapping where_is_internal.
3626 (where_is_internal_1): Handle the case where we're filling the cache.
3627 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
3628
d5789b65
MB
36292000-10-25 Miles Bader <miles@gnu.org>
3630
3631 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
3632
4ecda532
GM
36332000-10-25 Gerd Moellmann <gerd@gnu.org>
3634
3635 * window.c (pos_fully_visible_p): Removed.
3636 (Fpos_visible_in_window_p): Use pos_visible_p to determine
3637 if position is visible and/or fully visible.
3638
3639 * lisp.h (pos_visible_p): Add prototype.
3640
3641 * xdisp.c (pos_visible_p): New function.
3642
68c3a137
KH
36432000-10-25 Kenichi Handa <handa@etl.go.jp>
3644
3645 * process.c (send_process): If OBJECT is t, it means that the data
3646 is from C string, but we should encode it. Before calling
3647 setup_raw_text_coding_system, be sure to flush out data by the
3648 previous coding system.
3649
7ae1c032
MB
36502000-10-25 Miles Bader <miles@lsi.nec.co.jp>
3651
ff4dcd4b
MB
3652 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
3653 assignment of startpos to prev when startpos == pos.
3654
7ae1c032
MB
3655 * editfns.c (find_field): Set the field stickiness correctly from
3656 overlay fields. Use renamed `text_property_stickiness'.
3657 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 3658 Only check text properties, not overlays.
7ae1c032
MB
3659 * textprop.c (get_char_property_and_overlay): New function.
3660 (Fget_char_property): Use it.
3661 * intervals.h (get_char_property_and_overlay): Add declaration.
3662
49801145
SM
36632000-10-25 Stefan Monnier <monnier@cs.yale.edu>
3664
3665 * keymap.c: Use AREF, ASET and ASIZE macros.
3666 (Fmake_sparse_keymap): Docstring fix.
3667 (synkey): Remove.
3668 (shadow_lookup): Move up.
3669 Handle the case where lookup-key returns an integer.
3670 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
3671 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
3672 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
3673 Simplify/rewrite the keymap-finding code.
3674 Add check for command shadowing, using shadow_lookup.
3675
39e776cd
SM
36762000-10-24 Stefan Monnier <monnier@cs.yale.edu>
3677
3678 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
3679 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
3680 a symbol.
3681
2488aba5
AI
36822000-10-24 Andrew Innes <andrewi@gnu.org>
3683
3684 * dired.c (directory_files_internal_unwind): New function.
3685 (directory_files_internal): Use it to ensure closedir is called
3686 even if expand-file-name or file-attributes throw, eg. because of
3687 a user interrupt. Also enable immediate_quit while calling
3688 re_search, so that matching can be interrupted as well.
3689
b94fdf61
AI
36902000-10-24 Andrew Innes <andrewi@gnu.org>
3691
3692 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
3693 NT-Emacs only.
3694 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
3695 so that re_search functions only quit when callers expect them to.
3696
36972000-10-24 Kenichi Handa <handa@etl.go.jp>
3698
3699 * regex.c (regex_compile): Change the way of handling a range from
3700 a char less than 256 to a char not less than 256.
3701
1946f901
GM
37022000-10-24 Gerd Moellmann <gerd@gnu.org>
3703
7ae2f10f
GM
3704 * window.c (size_window): Prevent setting window's width or
3705 height to a negative value (esp. with XSETFASTINT).
3706
5dcab13e
GM
3707 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
3708 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
3709 (protect_malloc_state) [GC_MALLOC_CHECK &&
3710 GC_PROTECT_MALLOC_STATE]: New function.
3711 (PROTECT_MALLOC_STATE): New macro.
3712 (__malloc_initialize, morecore, _malloc_internal)
3713 (_free_internal) _realloc_internal): Use it to make _heapinfo
3714 read-only outside of gmalloc.
3715
63e1b552
GM
3716 * keymap.c: Update copyright.
3717
1946f901
GM
3718 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
3719 a symbol.
3720
4fa09beb
GM
37212000-10-24 Colin Walters <walters@cis.ohio-state.edu>
3722
3723 * filelock.c (unlock_all_files): Use unlock_file to expand each
3724 buffer's file_truename before trying remove its lock file.
3725
23afac01
EZ
37262000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
3727
3728 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
3729 or CRLF, decode EOLs.
3730
04448b95
KH
37312000-10-24 Kenichi Handa <handa@etl.go.jp>
3732
3733 * window.c (Fdisplay_buffer): Fix doc.
3734
3090a5a5
JR
37352000-10-23 Jason Rumney <jasonr@gnu.org>
3736
3737 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
3738 ASCII font of default fontset on Windows.
3739
3740 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
3741 xterm.c comment below).
3742
3743 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
3744
a83fee2c
GM
37452000-10-23 Gerd Moellmann <gerd@gnu.org>
3746
3747 * xterm.c (x_connection_closed): Reset handling_signal.
3748
3749 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing
3750 null.
3751
6ffdb539
MB
37522000-10-23 Miles Bader <miles@gnu.org>
3753
3754 * window.c (window_scroll_pixel_based, window_scroll_line_based):
3755 Pass nil for FULLY argument to Fpos_visible_in_window_p to
3756 maintain old behavior.
3757 * minibuf.c (Fminibuffer_complete): Likewise.
3758
7f1c969b
MB
37592000-10-23 Miles Bader <miles@lsi.nec.co.jp>
3760
3761 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
3762 that when a font can't be exactly centered, it errs up rather than
3763 down.
3764
23afac01 37652000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd
SZ
3766
3767 * fns.c (Fbase64_decode_string): The decoded result should be
3768 unibyte.
3769
1a578e9b
AC
37702000-10-23 Andrew Choi <akochoi@i-cable.com>
3771
3772 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
3773
3774 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 3775 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
3776
3777 * emacs.c (main) [macintosh]: Call syms_of_textprop,
3778 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
3779 syms_of_search, x_term_init, and init_keyboard before calling
3780 init_window_once. Also, call syms_of_xmenu.
3781
3782 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
3783 default fontset to Monaco.
3784
3785 * frame.c [macintosh]: Include macterm.h. Remove declarations of
3786 NewMacWindow and DisposeMacWindow.
3787 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
3788 instead of calling NewMacWindow and setting fields of
3789 f->output_data.mac directly. Call init_frame_faces.
3790 (Fdelete_frame) [macintosh]: Remove unused code.
3791 (Fmodify_frame_parameters) [macintosh]: Call
3792 x_set_frame_parameters instead of mac_set_frame_parameters.
3793
3794 * frame.h [macintosh]: Define menu_bar_lines field in struct
3795 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
3796
3797 * keyboard.c [macintosh]: Include macterm.h.
3798 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
3799 and menu_bar_activate_event type events as for X and NT.
3800 (make_lispy_event) [macintosh]: Construct lisp events of type
3801 MENU_BAR_EVENT as for X and NT.
3802
3803 * sysdep.c [macintosh]: Remove declaration for sys_signal.
3804 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
3805 (sys_subshell) [macintosh]: Remove definition entirely.
3806 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
3807 Vwindow_system_version here. Remove initialization of
3808 Vx_bitmap_file_path.
3809 (read_input_waiting): Correct the number of parameters passed to
3810 read_socket_hook.
3811 Move all Macintosh functions to mac/mac.c.
3812
3813 * term.c [macintosh]: Include macterm.h.
3814
3815 * window.c [macintosh]: Include macterm.h.
3816
3817 * xdisp.c [macintosh]: Include macterm.h. Declare
3818 set_frame_menubar and pending_menu_activation.
3819 (echo_area_display) [macintosh]: Do not return if terminal frame
3820 is the selected frame.
3821 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
3822 Allow only the selected frame to set menu bar.
3823 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
3824 calling FRAME_EXTERNAL_MENU_BAR (f).
3825 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
3826
3827 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
3828 and check_x. Declare XCreateGC. Define x_create_gc and
3829 x_free_gc. Initialize font_sort_order.
3830 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
3831 but call x_list_fonts instead of w32_list_fonts.
3832 (Finternal_face_x_get_resource) [macintosh]: Do not call
3833 display_x_get_resource.
3834 (prepare_face_for_display) [macintosh]: Set xgcv.font.
3835 (realize_x_face) [macintosh]: Load the font if it is specified in
3836 ATTRS.
3837 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed
3838 to Qt.
3839
1ffbabe3
SM
38402000-10-22 Stefan Monnier <monnier@cs.yale.edu>
3841
3842 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
3843 is nil: since we go to the end of submap anyway, we'd end up
3844 setting nil to nil.
3845 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
3846 doesn't obey autoload.
3847
bed43f1d
EZ
38482000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
3849
1ffbabe3 3850 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 3851
ea4233a7
JR
38522000-10-21 Jason Rumney <jasonr@gnu.org>
3853
3854 * w32term.c (w32_cache_char_metrics): Double check that font is
3855 really fixed pitch before trusting tmPitchAndFamily.
3856
f3d3c491
AI
38572000-10-21 Andrew Innes <andrewi@gnu.org>
3858
3859 * w32gui.h (w32_char_font_type): Move enum from w32term.c
3860
3861 * w32term.h: Extern decl for w32_cache_char_metrics.
3862
3863 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
3864
3865 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
3866 (w32_unload_font): Free per_char array if present.
3867
3868 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
3869 cached information in emulated XFontStruct to handle common cases
3870 quickly. Do not allocate XCharStruct for return.
3871 (w32_native_per_char_metric): New function.
3872 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
3873 allocating one.
3874 (x_produce_glyphs): Don't get an HDC. Change calls to
3875 w32_per_char_metric to match arg change above. Remove calls to
3876 free results.
3877 (w32_get_glyph_overhangs): Ditto.
3878 (w32_cache_char_metrics): New function.
3879
3880 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
3881 ($(BLD)/casefiddle.$(O)): Remove compile command.
3882 ($(BLD)/gmalloc.$(O)): Remove compile command.
3883 ($(BLD)/dispnew.obj):
3884 ($(BLD)/keyboard.obj):
3885 ($(BLD)/w32inevt.obj):
3886 ($(BLD)/w32bdf.obj):
3887 ($(BLD)/alloc.obj):
3888 ($(BLD)/buffer.obj):
3889 ($(BLD)/editfns.obj):
3890 ($(BLD)/emacs.obj):
3891 ($(BLD)/fileio.obj):
3892 ($(BLD)/fns.obj):
3893 ($(BLD)/indent.obj):
3894 ($(BLD)/insdel.obj):
3895 ($(BLD)/intervals.obj):
3896 ($(BLD)/minibuf.obj):
3897 ($(BLD)/print.obj):
3898 ($(BLD)/scroll.obj):
3899 ($(BLD)/sysdep.obj):
3900 ($(BLD)/textprop.obj):
3901 ($(BLD)/widget.obj):
3902 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
3903 ($(BLD)/term.obj): Add dependency on dispextern.h.
3904
3905 * makefile.nt ($(BLD)\dispnew.obj):
3906 ($(BLD)\keyboard.obj):
3907 ($(BLD)\w32inevt.obj):
3908 ($(BLD)\w32bdf.obj):
3909 ($(BLD)\alloc.obj):
3910 ($(BLD)\buffer.obj):
3911 ($(BLD)\editfns.obj):
3912 ($(BLD)\emacs.obj):
3913 ($(BLD)\fileio.obj):
3914 ($(BLD)\fns.obj):
3915 ($(BLD)\indent.obj):
3916 ($(BLD)\insdel.obj):
3917 ($(BLD)\intervals.obj):
3918 ($(BLD)\minibuf.obj):
3919 ($(BLD)\print.obj):
3920 ($(BLD)\scroll.obj):
3921 ($(BLD)\sysdep.obj):
3922 ($(BLD)\textprop.obj):
3923 ($(BLD)\widget.obj):
3924 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
3925 ($(BLD)\term.obj): Add dependency on dispextern.h
3926
18ad4821
EZ
39272000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
3928
3929 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
3930 with an additional argument of Qt.
3931
de54681a
MB
39322000-10-21 Miles Bader <miles@gnu.org>
3933
3934 * window.c (pos_fully_visible_in_window_p): New function.
3935 (Fpos_visible_in_window_p): Add FULLY argument.
3936 Use pos_fully_visible_in_window_p.
3937 (window_scroll_pixel_based, window_scroll_line_based): Update
3938 calls to Fpos_visible_in_window_p.
3939 * lisp.h (Fpos_visible_in_window_p): Update prototype
3940
13c844fb
GM
39412000-10-20 Gerd Moellmann <gerd@gnu.org>
3942
3943 * alloc.c (toplevel): Conditionalize compilation of mem_*
3944 functions differently.
3945
d9506268
JR
39462000-10-20 Jason Rumney <jasonr@gnu.org>
3947
3948 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
3949 mem_init where it used to be. mem_z etc not defined otherwise.
3950
8094989b
GM
39512000-10-20 Gerd Moellmann <gerd@gnu.org>
3952
3953 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
3954 GC_MALLOC_CHECK.
3955 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
3956 structure definition and related variabled to the top of the file.
3957 Include this code when GC_MALLOC_CHECK is defined.
3958 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
3959 register/unregister allocated region.
3960 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
3961 which isn't allocated.
3962 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
3963 something which is already in use.
3964 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
3965 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
3966 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
3967 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
3968
3969 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
3970 _malloc_internal instead of malloc.
3971 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
3972 of free.
3973
ea456eb4
AI
39742000-10-20 Andrew Innes <andrewi@gnu.org>
3975
3976 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
3977 Windows.
3978 (my_strftime) <macro>: Don't use macro arg list when redefining as
3979 _strftime_copytm.
3980 (my_strftime) <function>: Supply 0 as ut argument.
3981
e64c3a75
JR
39822000-10-19 Jason Rumney <jasonr@altavista.net>
3983
3984 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
3985 including dispextern.h, as it stops faces from working.
3986
3987 * w32fns.c (Fx_create_frame): Don't bother calling
3988 face-set-after-frame-default since the caller does it for us
3989 anyway. Clean up calls to x_get_arg to be consistent with X.
3990
3991 * w32term.c (x_produce_glyphs): Handle
3992 unibyte_display_via_language_environment correctly.
3993 (w32_draw_box_rect): Fix the calculation of width and height.
3994
3995 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
3996 as it has stopped working.
3997 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
3998 menu-bar.
3999
17401c97
GM
40002000-10-19 Gerd Moellmann <gerd@gnu.org>
4001
4002 * eval.c (skip_debugger): Prevent a compiler warning.
4003 (Fcondition_case): Likewise.
4004 (Fbacktrace_frame): Use a null interactive spec.
4005
773272d8
KH
40062000-10-19 Kenichi Handa <handa@etl.go.jp>
4007
4008 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
4009
a42943e9
GM
40102000-10-18 Gerd Moellmann <gerd@gnu.org>
4011
e50517d9
GM
4012 * strftime.c: Sync with glibc, file version 1.78.
4013 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
4014 should no longer be used according to ISO 8601.
4015
9035a35a
GM
4016 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
4017 no map for meta_prefix_char, don't try to use it as a keymap.
4018 Instead, if T_OK is non-zero, look up a default binding, if any,
4019 otherwise, if T_OK is zero, return nil.
4020
a42943e9
GM
4021 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
4022 (x_to_xcolors, png_load): Use x_query_color.
4023
4024 * xterm.c (x_color_cells, x_query_colors, x_query_color): New
4025 functions.
4026 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
4027 which can be slow.
4028 (x_copy_color, x_alloc_lighter_color): Likewise.
4029
4030 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
4031 (x_query_color, x_query_colors): Add prototype.
4032
4033 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
4034 check_string_bytes only if not noninteractive, increase count to 50.
4035
00de2987
MB
40362000-10-18 Miles Bader <miles@lsi.nec.co.jp>
4037
4038 * insdel.c (adjust_markers_for_delete): Handle before-insertion
4039 markers correctly.
4040
54918e2b
GM
40412000-10-17 Gerd Moellmann <gerd@gnu.org>
4042
1f0b3fd2
GM
4043 * alloc.c (pure_bytes_used): Renamed from pureptr.
4044 (ALIGN): New macro.
4045 (pure_alloc): New function.
4046 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
4047 Use it.
4048 (Fpurecopy): Use PURE_POINTER_P.
4049
68c5d1db
GM
4050 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
4051 PT has moved backward.
4052
9a038881
GM
4053 * xdisp.c (cursor_row_p): Take continued lines into account.
4054
361b097f
GM
4055 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
4056 string's size_byte.
4057 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
4058 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
4059 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
4060 string allocated.
4061
54918e2b
GM
4062 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
4063 of selective display off while searching for the next line start.
4064
03ed0806
KH
40652000-10-17 Kenichi Handa <handa@etl.go.jp>
4066
4067 * Makefile.in (term.o): Depend on dispextern.h.
4068
7e05cdaf
SM
40692000-10-16 Stefan Monnier <monnier@cs.yale.edu>
4070
4071 * keymap.c (keymap_memberp): Ensure that nil is not a member.
4072
a6801fd1
GM
40732000-10-16 Gerd Moellmann <gerd@gnu.org>
4074
483de32b
GM
4075 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
4076 the iterator at the beginning, so that they can be set later on,
4077 for instance in reseat_at_next_visible_line_start, without being
4078 overwritten.
4079
a6801fd1
GM
4080 * xfns.c (pbm_format): Add :foreground and :background keywords.
4081 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
483de32b 4082 (xbm_load): Recognize foreground and background color
a6801fd1
GM
4083 specifications.
4084
dbf1fcc1
EZ
40852000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
4086
4087 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
4088
4089 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern
4090 declaration.
4091
4092 * msdos.c (IT_set_face): Compare highlighted face with the default
4093 face, and invert colors if these faces' colors are identical.
4094 (Fmsdos_remember_default_colors): Don't swap foreground and
4095 background colors in initial_colors[].
4096 (IT_set_frame_parameters): Don't swap frame's foreground and
4097 background pixels. If ALIST includes "(reverse . t)", swap
4098 foreground-color and background-color properties in frame's
4099 param_alist. If the original frame's param_alist doesn't specify
4100 the colors, store unspecified-fg and unspecified-bg, reversed if
4101 required.
4102
4103 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
4104 the colors are unspecified and reversed, reverse fore- and back-
4105 ground in the returned value.
4106 (Fframe_parameter): Ditto.
4107
b41fe2c3
GM
41082000-10-16 Gerd Moellmann <gerd@gnu.org>
4109
3a6b59d9
GM
4110 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
4111 get_last_unchanged_at_beg_row.
4112 (find_first_unchanged_at_end_row): Renamed from
4113 get_first_unchanged_at_end_row.
4114 (find_first_unchanged_at_end_row): Convert assertions to
4115 unconditional tests which abort. When looking for a row in
4116 unchanged text, don't go further back than first_text_row.
4117
b41fe2c3
GM
4118 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
4119 Don't add in the last line's height when deciding if the new
4120 position is below the scroll margin.
9d1af64f 4121
b41fe2c3 41222000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
4123
4124 * editfns.c (Fconstrain_to_field): Check carefully for field
4125 boundaries if either OLD_POS or NEW_POS has a non-nil field
4126 property, even if they're the same.
4127
c412cb7b
KH
41282000-10-16 Kenichi Handa <handa@etl.go.jp>
4129
4130 * xterm.c (x_draw_box_rect): Fix the calculation of width and
4131 height for XFillRectangle.
4132
5586f3eb
SM
41332000-10-15 Stefan Monnier <monnier@cs.yale.edu>
4134
4135 * syntax.c (Fstring_to_syntax): New function extracted from
4136 Fmodify_syntax_entry.
4137 (Fmodify_syntax_entry): Use it and document the ! and | fences.
4138 (skip_chars, Fforward_comment): Remove unused variables.
4139 (syms_of_syntax): Add defsubr for string-to-syntax.
4140 (describe_syntax): Add code for comment and string fences.
4141
db785038
SM
41422000-10-14 Stefan Monnier <monnier@cs.yale.edu>
4143
4144 * keymap.c (access_keymap): Add AUTOLOAD parameter.
4145 Do the meta->esc mapping. Call get_keyelt before returning.
4146 Start scanning from the second element (the first is always `keymap')
4147 to make it easier to detect when we reach a parent map.
4148 Handle the case of inheriting from a symbol whose function is a map.
4149 (Fkeymap_parent): Also handle the `inherit from symbol' case.
4150 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
4151 (get_keyelt, Flookup_key): Update call to access_keymap.
4152 Remove the meta->esc mappings.
4153 (define_as_prefix): Delete old disabled code.
4154 (menu_item_p): New function.
4155 (where_is_internal_1): Skip over the few remaining menu items.
4156 * lisp.h (access_keymap): Update prototype.
4157 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
4158 Update call to access_keymap.
4159 (follow_key, read_key_sequence): Update calls to access_keymap.
4160 Remove the meta->esc mappings.
4161
cafafe0b
GM
41622000-10-13 Gerd Moellmann <gerd@gnu.org>
4163
a2e2a7f6
GM
4164 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
4165 with additional argument.
4166
cafafe0b
GM
4167 * xdisp.c (cursor_row_p): New function.
4168 (try_cursor_movement, display_line): Use it.
4169
4170 * xdisp.c (append_space): Also save/restore iterator's current
4171 character and its length.
4172
4173 * xdisp.c (init_from_display_pos): Add an assertion.
4174 (handle_stop): Don't set iterator's add_overlay_start.
4175 (handle_invisible_prop): Likewise.
4176 (load_overlay_strings): If text under an overlay is invisible,
4177 take both before- and after-strings into account when the iterator
4178 is positioned either at the start or at the end of the overlay.
4179 (forward_to_next_line_start): Rewritten.
4180 (reseat_at_next_visible_line_start): Rewritten.
4181 (set_iterator_to_next): Add parameter RESEAT_P.
4182
4183 * dispextern.h (struct it): Remove member add_overlay_start.
4184 (set_iterator_to_next): Change prototype.
4185
c744452b
KH
41862000-10-13 Kenichi Handa <handa@etl.go.jp>
4187
4188 * coding.c (code_convert_region): Be sure to initialize
4189 coding->category_idx.
e4a3f4e1
KH
4190 (decode_coding_string): Set coding->src_multibyte and
4191 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
4192 (encode_coding_string): Set coding->src_multibyte and
4193 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 4194
321fd26f
SM
41952000-10-12 Stefan Monnier <monnier@cs.yale.edu>
4196
4197 * xfns.c (Fx_create_frame): Don't bother calling
4198 face-set-after-frame-default since the caller does it for us anyway.
4199
76832439
EZ
42002000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
4201
4202 * window.c (coordinates_in_window): Fix detection of vertical line
4203 on character terminals.
4204
2483cf58
GM
42052000-10-12 Gerd Moellmann <gerd@gnu.org>
4206
4207 * editfns.c (save_excursion_save): Additionally record the
4208 selected window.
4209 (save_excursion_restore): If buffer was visible in a window, and a
4210 different window was selected, and the old selected window is
4211 still live, restore point in that window.
4212
eb991b25
KH
42132000-10-12 Kenichi Handa <handa@etl.go.jp>
4214
8a0eba09
KH
4215 * xterm.c (x_produce_glyphs): Handle
4216 unibyte_display_via_language_environment correctly.
4217
20401fcc
KH
4218 * regex.c (regex_compile): Change the way of handling a range from
4219 unibyte char to multibyte char.
4220
4221 * syntax.c (skip_chars): Change the way of handling a range from
4222 unibyte char to multibyte char.
4223
eb991b25
KH
4224 * process.c (read_process_output): Cancel previous change.
4225
365dd325
EZ
42262000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
4227
c1b096cb
EZ
4228 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
4229
365dd325
EZ
4230 * charset.c (Ffind_charset_string): Doc fix.
4231 (Ffind_charset_region): Doc fix.
4232
eb483c2b
KH
42332000-10-11 Kenichi Handa <handa@mule.m17n.org>
4234
4235 * process.c (read_process_output): Fix previous change. Adjust
4236 multibyteness of text to insert in a buffer by
df3c11b9 4237 string_make_unibyte/multibyte instead of
eb483c2b
KH
4238 Fstring_as_unibyte/multibyte.
4239
b40bfb99
AS
42402000-10-10 Andreas Schwab <schwab@suse.de>
4241
4242 * alloc.c (mark_object): Remove all workarounds installed on
4243 1993-08-08.
4244
caff31d4
KH
42452000-10-10 Kenichi Handa <handa@etl.go.jp>
4246
4247 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before
4248 returning.
4249 (base64_encode_1): Make it work for a text of multibyte form.
4250 (Fbase64_decode_region): Allocate sufficient memory for multibyte
4251 case. Don't call str_to_multibyte because base64_decode_1
4252 produces correct multibyte form for eight-bit codes.
4253 (Fbase64_decode_string): Adjusted for the change of
4254 base64_decode_1.
4255 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
4256 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
4257 codes.
4258
4259 * charset.h (CHAR_STRING): Optimized for single byte characters.
4260
cba026ef
AS
42612000-10-09 Andreas Schwab <schwab@suse.de>
4262
4263 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
4264 -1 after socket is closed, to fall through to error processing.
4265
1e21fe48
EZ
42662000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
4267
4268 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 4269 variables. If ALIST includes foreground-color or
1e21fe48
EZ
4270 background-color, change also the colors of the default face for
4271 this frame.
4272
a640322e
EZ
42732000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
4274
4275 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
4276 them extern (they are defined on xfaces.c).
4277 (syms_of_msdos): Don't intern and don't staticpro
4278 Qbackground_color and Qforeground_color.
4279
a115794c
EZ
42802000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
4281
4282 * frame.c (Fframe_parameter): For non-windowed frames, if
4283 f->param_alist says foreground or background color is unspecified,
4284 call tty_color_name to return the color name computed from the
4285 frame's current colors.
4286
f5533b63
DL
42872000-10-06 Dave Love <fx@gnu.org>
4288
4289 * terminfo.c (ospeed): Don't declare.
4290
4291 * sysdep.c: Don't include string.h.
4292 (h_errno): Declare conditional also on TRY_AGAIN.
4293
4294 * charset.c (Ffind_charset_string): Doc fix.
4295
4296 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
4297 (Fbase64_decode_region, Fbase64_decode_string): More explicit
4298 error messages.
4299
2b06561a
DL
43002000-10-05 Dave Love <fx@gnu.org>
4301
4302 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
4303 position like menu-bar.
4304
ca839c85
GM
43052000-10-05 Gerd Moellmann <gerd@gnu.org>
4306
4307 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
4308
4309 * xdisp.c (handle_single_display_prop): Use safe_call1.
4310 (safe_call): Renamed from call_function.
4311 (safe_call1): New function.
4312 (handle_fontified_prop): Use safe_call1 instead of call1.
4313 (safe_eval): Renamed from eval_form.
4314 (safe_eval_handler): Renamed from eval_handler.
4315 (handle_single_display_prop, display_mode_element): Use safe_eval
4316 instead of eval_form.
4317
4318 * xfaces.c (merge_face_heights): Use safe_call instead of
4319 call_function.
4320
4321 * keyboard.c (show_help_echo): Use safe_call instead of
4322 call_function; use safe_eval instead of eval_form.
4323
4324 * lisp.h (safe_call): Renamed from call_function.
4325 (safe_eval): Renamed from eval_form.
4326 (safe_call1): Add prototype.
4327
a3489ece
MB
43282000-10-05 Miles Bader <miles@lsi.nec.co.jp>
4329
4330 * xfns.c (image_ascent): Rearrange ascent calculation for the
4331 has-a-font case.
4332
35810b6f
SM
43332000-10-04 Stefan Monnier <monnier@cs.yale.edu>
4334
4335 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
4336 (where_is_internal_1): Don't bother ignoring menu-items any more.
4337
3dc78168
GM
43382000-10-04 Gerd Moellmann <gerd@gnu.org>
4339
4340 * keyboard.c (update_menu_bindings): New variable.
4341 (parse_menu_item): Use AREF. If update_menu_bindings
4342 is 0, don't update menu bindings.
4343 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
4344
1efc2bb9
EZ
43452000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
4346
4347 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
4348 to `mark_object'.
4349
3f679f55
SM
43502000-10-02 Stefan Monnier <monnier@cs.yale.edu>
4351
4352 * syntax.c (forw_comment): Match nestedness of ender/starter.
4353 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
4354 (prev_char_comstart_first): Remove.
4355 (back_comment): Check two-char comment markers more carefully
4356 to better handle overlapping cases like *//* or /* */* */ ...
4357 Match nestedness of ender/starter.
4358
2021ab61
DL
43592000-10-02 Dave Love <fx@gnu.org>
4360
4361 * config.in (HAVE_GAI_STRERROR): Add undef.
4362
4363 * process.c (Fopen_network_stream): Use it.
4364
4365 * m/alpha.h (NO_REMAP): Don't define.
4366
64e6cc18
GM
43672000-10-02 Gerd Moellmann <gerd@gnu.org>
4368
4369 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
4370 return with a string converted to an integer or vice versa when
4371 Vmocklisp_arguments is t.
4372 (Fsignal): Likewise. The function can return for `quit'.
4373 (struct gcpro): Declare member `var' to point to a volatile
4374 Lisp_Object.
4375
4376 * eval.c (error): Prevent compiler warning.
4377
b1904cd9
SM
43782000-09-30 Stefan Monnier <monnier@cs.yale.edu>
4379
4380 * keymap.c (keymap_memberp): New function.
4381 (Fset_keymap_parent): Use it.
4382 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
4383 Use keymap_memberp to avoid creating cycles.
4384 (access_keymap): Use KEYMAPP.
4385
71c9ec51
GM
43862000-09-30 Gerd Moellmann <gerd@gnu.org>
4387
4388 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
4389 gai_strerror. Make sure xerrno is set if connect fails. Improve
4390 error recovery.
71c9ec51 4391
c70c6b58
JR
43922000-09-29 Jason Rumney <jasonr@gnu.org>
4393
4394 * w32term.c (w32_char_font_type, w32_encode_char)
4395 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
4396 (w32_bdf_per_char_metric): New function.
4397 (w32_per_char_metric): Use it.
4398 (x_draw_glyph_string_background): Always draw background for BDF
4399 glyphs.
4400
4401 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
4402 GDI object which is a scarce resource.
4403
4404 * w32bdf.c (search_file_line): Fix skipping of whitespace.
4405 (get_quoted_string): Fix limit on memchr search.
4406 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
4407 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
4408 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
4409 (get_cached_font_char, cache_char_offset): Use macro
4410 BDF_CODEPOINT_RANGE_COVER_P.
4411 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
4412 (clear_cached_bitmap_slots): New function.
4413 (GET_HEX_VALUE): G-Z, g-z are not hex.
4414 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
4415 (get_bitmap_with_cache): Use new cache implementation.
4416 (create_offscreen_bitmap): New function.
4417 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
4418
4419 * w32term.c (x_produce_glyphs): If the distance from the current
4420 position to the next tab stop is less than a canonical character
4421 width, use the tab stop after that.
4422 (x_draw_glyphs): Handle case START and END are out of bounds more
4423 carefully.
4424 (x_clear_mouse_face): Block/unblock input.
4425 (x_display_and_set_cursor): Don't show a hollow box cursor for
4426 buffers whose cursor_type is nil.
4427
fe01239f
GM
44282000-09-29 Gerd Moellmann <gerd@gnu.org>
4429
4430 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar
4431 disappears.
4432
4433 * dispextern.h (updating_frame): Declare extern.
4434
e7c52f1f
AS
44352000-09-29 Andreas Schwab <schwab@suse.de>
4436
4437 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
4438
de6e1f7c
GM
44392000-09-29 Gerd Moellmann <gerd@gnu.org>
4440
25126faa
GM
4441 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
4442 use its function definition.
4443 (tool_bar_items): Likewise.
4444
de6e1f7c
GM
4445 * lisp.h (fatal): Declare NO_RETURN.
4446
454ee39b
KH
44472000-09-29 Kenichi Handa <handa@etl.go.jp>
4448
4449 * keymap.c: Remove the line "#undef NULL".
4450
96301c5f
GM
44512000-09-28 Gerd Moellmann <gerd@gnu.org>
4452
4453 * xterm.c (x_make_frame_visible): Try harder to make the frame
4454 visible.
4455
efffeeb4
DL
44562000-09-28 Dave Love <fx@gnu.org>
4457
ecb8b666
DL
4458 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
4459
dc3cd20f
DL
4460 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
4461
4462 * .gdbinit (xreload): Note its need on GNU/Linux.
4463
efffeeb4
DL
4464 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
4465 r_alloc, r_alloc_free.
4466
8610d903
KH
44672000-09-28 Kenichi Handa <handa@etl.go.jp>
4468
4469 * syntax.c (skip_chars): Handle negation correctly.
4470
8901d1ac
GM
44712000-09-27 Gerd Moellmann <gerd@gnu.org>
4472
6f22f1ad
GM
4473 * xfaces.c (realize_default_face): Call set_lface_from_font_name
4474 with non-zero FORCE_P argument.
4475
8901d1ac
GM
4476 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
4477 Add assertions.
4478
4479 * xdisp.c (window_box_height): Add an assertion.
4480
4481 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
4482 tool-bar than is available.
4483 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
4484
36f1966f
DL
44852000-09-27 Dave Love <fx@gnu.org>
4486
efffeeb4 4487 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 4488
31d929e5
GM
44892000-09-26 Gerd Moellmann <gerd@gnu.org>
4490
c98863bf
GM
4491 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
4492 instead of BITS_PER_INT.
4493 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
4494 EMACS_UINT, respectively.
4495 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
4496
4497 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
4498
4499 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
4500
77072ab1
GM
4501 * window.c (freeze_window_starts): Construct last argument for
4502 foreach_window differently.
4503
4504 * xfns.c (x_decode_color): Don't return a Lisp_Object.
4505
4506 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
4507 EMACS_UINT instead of `int' and `unsigned int'.
4508 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
4509
4510 * frame.h (struct frame): Make the `nothing' member of union
4511 output_data an EMACS_INT.
4512
31d929e5
GM
4513 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug
4514 hunting.
4515 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
4516 size in the sdata structure.
4517 (SDATA_NBYTES, SDATA_DATA): New macros.
4518 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
4519 differently for the different layout of the sdata structure.
4520 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
4521 in sdata.
4522 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
4523 Check that size recorded in the string size and size recorded in
4524 the sdata structure agree.
4525
3e60b029
DL
45262000-09-25 Dave Love <fx@gnu.org>
4527
4528 * buffer.c: Include stdio.h.
4529
4530 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
4531
4532 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
4533
4534 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
4535 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as
4536 size_t.
4537 (__malloc_extra_blocks): Declare as __malloc_size_t.
4538
8ff16b4e
GM
45392000-09-25 Gerd Moellmann <gerd@gnu.org>
4540
755a2ccd
GM
4541 * alloc.c (mark_image): Use GC_NILP instead of NILP.
4542
d8b4516f
GM
4543 * keyboard.c (show_help_echo): Set help_echo_showing_p.
4544 (read_char): If help-echo is showing, preserve the echo area
4545 when redisplaying.
4546
4547 * xdisp.c (help_echo_showing_p): New variable.
4548 (set_message): Reset it to 0.
4549 (init_xdisp): Initialize help_echo_showing_p.
4550
4551 * dispextern.h (help_echo_showing_p): Declare extern.
4552
4553 * config.in: Fix typo in __GNUC_MINOR__.
4554
4555 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
4556
b11af2dd
GM
4557 * s/freebsd.h (POSIX_SIGNALS): Define.
4558
8ff16b4e
GM
4559 * xterm.c (x_clear_mouse_face): Block/unblock input.
4560
844eb643
DL
45612000-09-24 Dave Love <fx@gnu.org>
4562
4563 * fns.c (base64_encode_1): Fix last change.
4564
b30ab1b3
GM
45652000-09-22 Gerd Moellmann <gerd@gnu.org>
4566
4567 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
4568
4569 * xdisp.c (try_window_reusing_current_matrix): More fixes
4570 for the case window has a header-line.
4571
c6cbe5f0
DL
45722000-09-22 Dave Love <fx@gnu.org>
4573
4c7c1f3f
DL
4574 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
4575 a doc string.
4576
4577 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
4578
c6cbe5f0
DL
4579 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
4580
550a625e
GM
45812000-09-21 Gerd Moellmann <gerd@gnu.org>
4582
4c7c1f3f 4583 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
4584 for GCC >= 2.5.
4585
4586 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error): Declare
4587 NO_RETURN.
4588
80d26f99
GM
4589 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
4590 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
4591 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
4592 warnings.
4593
4594 * marker.c (byte_char_debug_check): Return void.
4595
623a0aae
GM
4596 * xfns.c (Fx_create_frame): Set default frame parameter value
4597 for tool-bar-lines to 1.
4598
4599 * dispnew.c (scrolling_window): Compare y-positions of rows
4600 equal at the start. Some simplification.
4601
4602 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
4603 reused rows' y-position in the case window has a header-line, and
4604 new window start is greater than old window start.
4605
42ac0ae5
GM
4606 * process.c (process_sent_to): New variable.
4607 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
4608 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
4609 Declare more parameters volatile.
4610
550a625e
GM
4611 * lread.c (Vrecursive_load_depth_limit): New variable.
4612 (Fload): Check recursive loads whose recursion depth exceeds
4613 Vrecursive_load_depth_limit.
4614 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
4615
8320414c
GM
46162000-09-20 Gerd Moellmann <gerd@gnu.org>
4617
f46c275e
GM
4618 * fileio.c (Fread_file_name): Doc fix.
4619
4620 * editfns.c (Fmessage_or_box): Doc fix.
4621
4622 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
4623
b7e11c5b
GM
4624 * xfns.c (xbm_scan): Allow C-style comments.
4625
8320414c
GM
4626 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
4627 symbols are specified, add color translations to the cache.
4628 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New
4629 functions.
4630 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
4631 xpm_cache_color.
4632 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
4633 structures to xpm_init_color_cache.
4634
da1608d9
GM
46352000-09-19 Gerd Moellmann <gerd@gnu.org>
4636
4637 * dispnew.c (update_window_line): Make sure to always draw
4638 mode-lines.
4639
6badfa25
AI
46402000-09-19 Andrew Innes <andrewi@gnu.org>
4641
4642 * makefile.nt (bootstrap-emacs): Don't change directory.
4643
3a5f42bb
KH
46442000-09-19 Kenichi Handa <handa@etl.go.jp>
4645
1b7649bd
KH
4646 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
4647
3a5f42bb
KH
4648 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
4649 If output buffer is too small, signal an appropriated error.
4650
9f83cf0b
DL
46512000-09-18 Dave Love <fx@gnu.org>
4652
4653 * keyboard.c (menu_bar_items, tool_bar_items)
4654 (current_active_maps): Remove redundant get_local_map call.
4655
28c7826c
GM
46562000-09-18 Gerd Moellmann <gerd@gnu.org>
4657
5cefa566
GM
4658 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
4659 cursor for buffers whose cursor_type is nil.
4660
6fed3546
GM
4661 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
4662 a feature to implement that is already implemented.
4663 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
4664 warnings.
4665
4666 * xfns.c (x_clear_image_1): New function.
4667 (x_clear_image): Use it.
4668 (x_from_xcolors): Use x_clear_image_1; don't free the image's
4669 mask.
4670
05b1f851
GM
4671 * dispnew.c (update_window): Move test for invisible lines
4672 at the top to update_window_line.
4673 (update_window_line): Handle invisible lines here.
4674
f4779de9
GM
4675 * xfns.c (clear_image_cache): Clear current matrices of all
4676 frames sharing an image cache. Block input while freeing
4677 images. Fix timestamp comparison.
4678 (x_clear_image): Also free the mask.
4679
28c7826c
GM
4680 * xfns.c (lookup_image): Block input while loading the image so
4681 that we won't get interrupted in a state where the image isn't yet
4682 set up completely.
4683 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
4684 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
4685 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
4686 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock
4687 input.
4688
b7412313
GM
46892000-09-16 Gerd Moellmann <gerd@gnu.org>
4690
4691 * dispnew.c (update_window): Make sure to make desired rows
4692 current even if they are completely invisible at the top
4693 of a window.
4694
47e351a3
GM
46952000-09-15 Gerd Moellmann <gerd@gnu.org>
4696
7f8f1edc
GM
4697 * xfns.c (lookup_image): Build mask before applying an algorithm.
4698 Recognize algorithm `disabled'.
4699 (cross_disabled_images): New variable.
4700 (COLOR_INTENSITY): New macro.
4701 (x_detect_edges): Use COLOR_INTENSITY.
4702 (x_disable_image): New function.
4703 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
4704
4705 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
4706 disabled state, don't apply an image transformation algorithm if
4707 the user specified an image for the disabled state. Use
28c7826c 4708 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
4709 user hasn't specified an image.
4710
ebb8f116
GM
4711 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
4712 allocation functions with the XPM lib.
4713 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
4714 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
4715 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
4716 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
4717 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New
4718 functions.
4719 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
4720 functions, if possible, because these handle color allocation
4721 failure more gracefully.
4722 (Fimage_mask_p): New function.
4723
47e351a3
GM
4724 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
4725 (Qedge_detection, Qheuristic): New symbols.
4726 (syms_of_xfns): Initialize new symbols.
4727 (lookup_image): Handle `:mask X', `:algorithm emboss', and
4728 `algorithm (edge-detection ...)'.
4729 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
4730 (tiff_format, gif_format, gs_format): Add `:mask'.
4731 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
4732 (GIF_MASK, GS_MASK): New enumerators.
4733 (x_laplace_read_row, x_laplace_write_row): Functions removed.
4734 (emboss_matrix, laplace_matrix): New variables.
4735 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
4736 (x_edge_detection): New functions.
4737 (x_laplace): Rewritten in terms of x_detect_edges.
4738 (x_build_heuristic_mask): If image has a mask, free it.
4739
fe83b953
AI
47402000-09-14 Andrew Innes <andrewi@gnu.org>
4741
4742 * makefile.w32-in: Revert to Unix line endings.
4743
3021e816
AI
47442000-09-14 Andrew Innes <andrewi@gnu.org>
4745
4746 * makefile.w32-in: Standardize indentation somewhat.
4747 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
4748 cater for differences between shells.
4749
4750 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
4751
2a32b5ea
GM
47522000-09-14 Gerd Moellmann <gerd@gnu.org>
4753
4754 * xterm.c (x_produce_glyphs): If the distance from the current
4755 position to the next tab stop is less than a canonical character
4756 width, use the tab stop after that.
4757
b4331e96
DL
47582000-09-14 Dave Love <fx@gnu.org>
4759
4760 * buffer.c (alloc_buffer_text): Fix xmalloc call.
4761
ef9e4345
GM
47622000-09-14 Gerd Moellmann <gerd@gnu.org>
4763
085536c2
GM
4764 * xdisp.c (handle_fontified_prop): While running fontification
4765 functions, bind `fontification-functions' and
4766 `after-change-functions' to nil.
4767
ef9e4345
GM
4768 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
4769 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
4770
4771 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
4772
4773 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
4774 USE_MMAP_FOR_BUFFERS.
4775
4776 * insdel.c (make_gap): Use enlarge_buffer_text.
4777
4778 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
4779 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
4780 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
4781 from former r_alloc_* functions in ralloc.c.
4782 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New
4783 variables.
4784 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
4785 (mmap_init) [REL_ALLOC_MMAP]: New function.
4786 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
4787 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
4788 BUFFER_FREE.
4789
4790 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
4791 (enlarge_buffer_text): Add prototype.
4792
4793 * ralloc.c: Remove everything having to do with the use of mmap.
4794
f8608968
GM
47952000-09-13 Gerd Moellmann <gerd@gnu.org>
4796
2a494b2d
GM
4797 * sound.c (Fplay_sound): Doc fix.
4798
8c907a56
GM
4799 * keyboard.c: Avoid some more compiler warnings.
4800 (parse_tool_bar_item): Ignore cached key bindings.
4801
f8608968
GM
4802 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
4803 and allocation of Lisp data.
4804
6ab70e9a
GM
48052000-09-12 Gerd Moellmann <gerd@gnu.org>
4806
d12d0a9b
GM
4807 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
4808 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
4809 defaults first.
4810
6ab70e9a
GM
4811 * lread.c (Fload): Put code checking for recursive loads in #if 0.
4812
63c36c3c
KH
48132000-09-12 Miyashita Hisashi <himi@meadowy.org>
4814
4815 * ccl.c: Comment fixed.
4816 (MAX_MAP_SET_LEVEL): Increased to 30.
4817 (PUSH_MAPPING_STACK): Enclose with do-while block.
4818 (POP_MAPPING_STACK): Likewise.
4819 (stack_idx_of_map_multiple): New variable.
4820 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
4821 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
4822 call the corresponding CCL program by
4823 CCL_CALL_FOR_MAP_INSTRUCTION.
4824 (ccl_driver) <CCL_MapSingle>: Likewise.
4825 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
4826 with the case where looking up process reaches to the end of
4827 map-set, and call CCL programs as the above change.
4828
7ee3bd7b
GM
48292000-09-11 Gerd Moellmann <gerd@gnu.org>
4830
8ec8a5ec
GM
4831 * xfns.c (png_load, jpeg_load): Declare some variables volatile
4832 that might be clobbered by longjmp.
4833 (check_x_display_info, x_decode_color, create_frame_xic)
4834 (Fx_display_backing_store, Fx_display_visual_class)
4835 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler
4836 warnings.
4837
f74b0705
GM
4838 * lread.c (init_lread): Set Vloads_in_progress to nil.
4839 (Fload): Show list of recursively loaded files, when signaling an
4840 error.
4841
7ee3bd7b
GM
4842 * lread.c (Vloads_in_progress): New variable.
4843 (record_load_unwind): New function.
4844 (Fload): Check for recursive loads.
4845 (syms_of_lread): Initialize Vloads_in_progress.
4846 (read_integer, read1): Avoid some compiler warnings.
4847
4848 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
4849 compiler warnings.
4850
974e1e5b
MB
48512000-09-11 Miles Bader <miles@gnu.org>
4852
4853 * editfns.c (Fbuffer_string): Doc fix.
4854
9824c4e3
GM
48552000-09-10 Gerd Moellmann <gerd@gnu.org>
4856
4857 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
4858
6a72fdd1
KR
48592000-09-09 Ken Raeburn <raeburn@gnu.org>
4860
4861 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
4862 whether to include other header files.
4863
28e6fb66
GM
48642000-09-09 Gerd Moellmann <gerd@gnu.org>
4865
4866 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 4867 by Fmemq as a boolean.
28e6fb66 4868
7f8b6551
SM
48692000-09-08 Stefan Monnier <monnier@cs.yale.edu>
4870
4871 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
4872
a8710abf
GM
48732000-09-08 Gerd Moellmann <gerd@gnu.org>
4874
d1a02881
GM
4875 * ralloc.c (mmap_fd): Remove initializer which can make it
4876 read-only in a dumped Emacs.
4877 (mmap_fd_1): New variable.
4878 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
4879 restore it from there.
4880 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
4881 unconditionally so that mmap_fd can be initialized there.
4882 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
4883 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
4884 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
4885
c454aac1
GM
4886 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
4887
4888 * xdisp.c (dump_glyph_row): Fix printf format string.
4889 (display_line, move_it_in_display_line_to): Avoid compiler
4890 warnings.
4891
fc653ef2
GM
4892 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
4893
3015eec0
GM
4894 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
4895 inheritance.
4896
bfe0ee88
GM
4897 * xdisp.c (try_window_id): When trying to locate cursor in
4898 unchanged rows at the top, handle the case that we can't find it.
4899
a8710abf
GM
4900 * xterm.c (x_draw_glyphs): Handle case START and END are out
4901 of bounds more carefully.
4902
6b7d4ae4
DL
49032000-09-08 Dave Love <fx@gnu.org>
4904
423193c5
DL
4905 * s/sol2.h (REL_ALLOC_MMAP): Define.
4906 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
4907
4908 * ralloc.c: Don't include string.h (redundant).
4909 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
4910 [!MAP_ANON]: Include fcntl.h.
4911 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
4912 (r_alloc, r_re_alloc, r_alloc_free)
4913 (mmap_enlarge, mmap_set_vars): Use it.
4914 (r_alloc_init_fd): New function.
4915 (__morecore) [SYSTEM_MALLOC]: Don't declare.
4916 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
4917 malloc type.
4918
4919 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
4920 Remove vm-limit.o.
4921
6b7d4ae4
DL
4922 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
4923 change to __NetBSD__.
4924
44d31981
KH
49252000-09-08 Kenichi Handa <handa@etl.go.jp>
4926
4927 * search.c (compile_pattern): Check the multibyteness of cached
4928 string and PATTERN.
4929
aad40737
MB
49302000-09-08 Miles Bader <miles@gnu.org>
4931
4932 * xfaces.c (default_face_vector): Function removed.
4933 (Finternal_merge_in_global_face): Restore old global/local
4934 attribute override order. Use inline loop instead of calling
4935 default_face_vector.
4936
91a211b5
GM
49372000-09-07 Gerd Moellmann <gerd@gnu.org>
4938
4939 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
4940 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
4941 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
4942 where necessary, in case POINTER_TYPE is `void'.
4943
03419440
EZ
49442000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
4945
4946 * frame.c (make_terminal_frame): Initialize frame foreground and
4947 background colors to unspecified, for the initial instance of an
4948 MSDOS frame.
4949
f46f845b
GM
49502000-09-07 Gerd Moellmann <gerd@gnu.org>
4951
24f76fbf
GM
4952 * ralloc.c (mmap_find): Fix overlap computation.
4953 (mmap_enlarge): Compute nbytes before trying to find an
4954 overlapping region.
4955
f46f845b
GM
4956 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
4957 instead of `!='.
4958
4959 * lread.c (syms_of_lread): Change value of regexp
4960 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
4961
4962 * xmenu.c (xdialog_show): When looking up the selection in
4963 menu_items, take `quote' boundaries into account; this corresponds
4964 to a nil ITEM in x-popup-dialog.
4965
3c014385
KH
49662000-09-07 Kenichi Handa <handa@etl.go.jp>
4967
fd6f711b
KH
4968 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
4969 not 0x81.
4970 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
4971
3c014385 4972 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
4973 encoding, not decoding. Fix the handling of latin-jisx0201.
4974 Check for the charset katakana-jisx0201 too.
3c014385 4975 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 4976 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 4977
0da3ecef
GM
49782000-09-07 Gerd Moellmann <gerd@gnu.org>
4979
ab0ee409
GM
4980 * xfaces.c (Vparam_value_alist): New variable.
4981 (syms_of_xfaces): Initialize it.
4982 (Finternal_set_lisp_face_attribute): Avoid more consing.
4983
4984 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
4985 specially.
4986 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
4987 (Qbackground_mode): New variable.
4988 (syms_of_frame_1): Initialize Qbackground_mode.
4989
4990 * lisp.h (Qdisplay): Declare extern.
1091dd67 4991
0da3ecef
GM
4992 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
4993 change face on all frames, and change the default for new frames.
4994
b14654b9
DL
49952000-09-07 Dave Love <fx@gnu.org>
4996
4997 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
4998
d24fd56f
KH
49992000-09-07 Kenichi Handa <handa@etl.go.jp>
5000
794f3670
KH
5001 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
5002
0fddd0dc
KH
5003 * charset.c: Include composite.h
5004 (lisp_string_width): New function.
5005 (Fstring_width): Call lisp_string_width instead of strwidth.
5006
5007 * Makefile.in (charset.o): Depends on composite.h.
5008
d24fd56f
KH
5009 * process.c (read_process_output): Before inserting the decoded
5010 text in the buffer, adjust the multibyteness.
5011
fa0b693c
GM
50122000-09-06 Gerd Moellmann <gerd@gnu.org>
5013
73b77ee5
GM
5014 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
5015 buffer's text buffer is null, map new memory.
5016
0a58f946
GM
5017 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
5018 POINTER_TYPE and size_t.
5019 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
5020 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
5021 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
5022 [REL_ALLOC_MMAP]: New macros.
5023 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
5024 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
5025 [REL_ALLOC_MMAP]: New functions.
5026
5027 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
5028 before and after unexec.
5029
5030 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
5031 text buffers if necessary.
5032
5033 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
5034 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
5035 in prototypes.
5036
fa0b693c
GM
5037 * config.in (HAVE_MMAP): Add #undef.
5038
877055f6
GM
50392000-09-05 Gerd Moellmann <gerd@gnu.org>
5040
08ba3862
GM
5041 * frame.c (Qdisplay_type): New variable.
5042 (syms_of_frame_1): Initialize it.
5043 (Fframe_parameter): New function that avoids consing.
5044 (syms_of_frame): Defsubr it.
5045
66ffe51c
GM
5046 * buffer.c (Fother_buffer): Consider buffers as invisible when
5047 they are displayed in a window on an invisible frame.
5048
877055f6
GM
5049 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
5050 get-largest-window always return nil.
5051
bb970e67
GM
50522000-09-04 Gerd Moellmann <gerd@gnu.org>
5053
5054 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
5055 variable; recognize Emacs 19 elc files.
5056
7a3d0e0e
MB
50572000-09-04 Miles Bader <miles@gnu.org>
5058
5059 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
5060 before initially popping up the menu, so the menu doesn't flash
5061 when the face settings are significantly different from the
5062 defaults.
5063
14473664
SM
50642000-09-04 Stefan Monnier <monnier@cs.yale.edu>
5065
5066 * regex.c (WIDE_CHAR_SUPPORT): New macro.
5067 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
5068 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
5069 (BIT_UNIBYTE): Remove.
5070 (re_match_2_internal): Delete corresponding code and streamline the
5071 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
5072 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
5073 (re_wctype_t): New type.
5074 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
5075 (regex_compile): Use them and fix handling of overly long char classes.
5076
c1174479
AI
50772000-09-03 Andrew Innes <andrewi@gnu.org>
5078
f8803e97
AI
5079 * makefile.w32-in: Change to DOS line endings.
5080
c1174479
AI
5081 * s/ms-w32.h (ORDINARY_LINK): New define.
5082
5083 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
5084 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
5085
5086 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
5087 (distclean): Delete them here instead.
5088
44ef7cf6
AI
5089 * w32proc.c (compare_env): Convert to uppercase for comparison,
5090 not lowercase, to match how the native Windows shell works.
5091
49b3bd82
JR
50922000-09-03 Jason Rumney <jasonr@gnu.org>
5093
5094 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
5095 CVS changes the line-ends when checking in/out on DOS/Windows.
5096
5097 * makefile.nt (emacs): Do not change directory to run temacs, as
5098 the load-path is set relative to current directory.
5099
a3d35a39
MB
51002000-09-03 Miles Bader <miles@gnu.org>
5101
5102 * xterm.c (x_alloc_lighter_color_for_widget): New function.
5103
d276b0cf
GM
51042000-09-02 Gerd Moellmann <gerd@gnu.org>
5105
715e84c9
GM
5106 * xdisp.c (redisplay_mode_lines): New function.
5107 (display_mode_lines): Return number of mode lines displayed.
5108 (echo_area_display): Use redisplay_mode_lines to draw garbaged
5109 mode lines. Don't temporarily bind redisplay-dont-pause to t.
5110
8892f40b
GM
5111 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
5112 string.h and strings.h.
5113 (index) [HAVE_INDEX]: Add prototype.
5114
d276b0cf
GM
5115 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
5116 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
5117
5118 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
5119 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
5120
38404229
GM
51212000-09-01 Gerd Moellmann <gerd@gnu.org>
5122
5123 * lread.c (read1): Accept `?' as symbol constituent, for
5124 compatiblity with XEmacs.
5125
c0f9ea08
SM
51262000-08-31 Stefan Monnier <monnier@cs.yale.edu>
5127
5128 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
5129 (struct re_pattern_buffer): Remove newline_anchor.
5130 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
5131 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
5132 (re_max_failures, fail_stack): Use size_t rather than unsigned.
5133 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
5134 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
5135 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
5136 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
5137 Get rid of references to newline_anchor.
5138 (regcomp): Allocate and precompute a fastmap.
5139
8c0f83fe
GM
51402000-08-31 Gerd Moellmann <gerd@gnu.org>
5141
5142 * lread.c (openp): GCPRO local variable `filename'.
5143
4bb91c68
SM
51442000-08-30 Stefan Monnier <monnier@cs.yale.edu>
5145
5146 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
5147
5148 * regex.c: Merge some changes from GNU libc. Add prototypes.
5149 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
5150 Use memcmp and memcpy instead of bcopy and bcmp.
5151 (init_syntax_once): Use ISALNUM.
5152 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
5153 (REG_UNSET_VALUE): Remove. Use NULL instead.
5154 (REG_UNSET, re_match_2_internal): Use NULL.
5155 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
5156 New macros.
5157 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
5158 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
5159 (regex_compile): In handle_interval, return an error rather than try to
5160 unfetch the interval if we can't find the closing brace.
5161 Obey the RE_NO_GNU_OPS syntax bit.
5162 (TOLOWER): New macro.
5163 (regcomp): Use it.
5164 (regexec): Allocate regs.start and regs.end as one block.
5165
5226a931
GM
51662000-08-30 Gerd Moellmann <gerd@gnu.org>
5167
868dd24b
GM
5168 * xdisp.c (echo_area_display): Check display_completed instead
5169 of calling detect_input_pending.
5170
5171 * dispnew.c (update_frame): Only set display_completed here; move
5172 the update_begin and update_end calls here from update_frame_1.
5173 (update_frame_1): Don't set display_completed here, don't call
5174 update_begin/update_end.
5175
5226a931
GM
5176 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
5177 instead of store_frame_param.
5178
2a8bd25f
GM
51792000-08-29 Gerd Moellmann <gerd@gnu.org>
5180
5181 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
5182 desired window matrix hasn't been displayed, use the current row
5183 instead. Make sure that only those frame rows are updated for
5184 which there exists a corresponding enabled desired row.
5185
ba3478d9
MB
51862000-08-29 Miles Bader <miles@gnu.org>
5187
5188 * xfaces.c (default_face_vector): New function.
5189 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
5190
87d0f685
GM
51912000-08-29 Gerd Moellmann <gerd@gnu.org>
5192
5193 * lread.c (openp): Prevent temporary string passed to
5194 Ffile_readable_p from being garbage collected.
5195
6fa86045
DL
51962000-08-28 Dave Love <fx@gnu.org>
5197
5198 * keymap.c (store_in_keymap): Add `static' to declaration.
5199
bb17930d
GM
52002000-08-28 Gerd Moellmann <gerd@gnu.org>
5201
5202 * emacs.c, callint.c, doc.c, editfns.c
5203 (toplevel) [HAVE_STRING_H]: Include string.h.
5204 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
5205 (index): Remove prototypes which might conflict with non-standard
5206 definitions of index/strchr.
5207
5208 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
5209 (rindex): Define only if !HAVE_RINDEX.
5210
5211 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
5212
5213 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
5214
87188200
MB
52152000-08-28 Miles Bader <miles@gnu.org>
5216
5217 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
5218 made inconsistent by a font-related attribute in FROM.
5219 (merge_face_inheritance): Add function comment.
5220
41a68aef
KH
52212000-08-28 Kenichi Handa <handa@etl.go.jp>
5222
5223 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
5224 the 4th arg (PREV_EVENT) Qt to suppress input method.
5225
f7c436c1
SM
52262000-08-27 Stefan Monnier <monnier@cs.yale.edu>
5227
0b32bf0e
SM
5228 * regex.c: Indent cpp directives and remove parens after `defined'.
5229 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
5230 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
5231 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
5232 (re_compile_pattern): Use size_t for length.
5233 (init_syntax_once): Move to a better place.
5234 * regex.h: Merge changes from GNU libc. Indent cpp directives.
5235 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
5236
f7c436c1
SM
5237 * syntax.c (back_comment): Detect cases where a comment-starter is
5238 actually inside another comment as in: /* a // b */ c // d \n.
5239 Make it clear that `comstart_pos' is unused for nested comments.
5240
5241 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
5242 (KEYMAPP): New macro.
5243 (Fkeymap_parent, Fset_keymap_parent): Use it.
5244 (fix_submap_inheritance): Mark it static.
5245 (define_as_prefix, describe_buffer_bindings, describe_command)
5246 (describe_translation, describe_map): Complete prototypes.
5247
5248 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
5249
5250 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
5251 to better match the key-lookup behavior.
5252
6288c62f
GM
52532000-08-27 Gerd Moellmann <gerd@gnu.org>
5254
5255 * xfaces.c (lface_fully_specified_p): Handle :inherit.
5256 (Finternal_set_lisp_face_attribute): Fix typo in error message.
5257
e931344e
EZ
52582000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
5259
5260 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
5261 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
5262 (xterm.o): Depend on coding.h
5263
d10dfeef
KH
52642000-08-26 Kenichi Handa <handa@etl.go.jp>
5265
5266 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
5267 the corresponding '#endif'.
5268
2d73e8d3
MB
52692000-08-26 Miles Bader <miles@gnu.org>
5270
5271 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
5272 * xfaces.c (QCinherit): New variable.
5273 (syms_of_xfaces): Initialize it.
5274 (LFACE_INHERIT): New macro.
5275 (Finternal_get_lisp_face_attribute)
5276 (merge_face_vector_with_property)
5277 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
5278 (check_lface_attrs): Allow new types of face height. Check
5279 inherit attribute.
5280 (CYCLE_CHECK): New macro.
5281 (merge_face_inheritance): New function.
5282 (merge_face_vectors): Merge inherited faces too. Add F and
5283 CYCLE_CHECK arguments.
5284 (merge_face_vector_with_property, Finternal_merge_in_global_face)
5285 (lookup_named_face, lookup_derived_face, realize_named_face)
5286 (face_at_string_position, face_at_buffer_position): Supply
5287 new F and CYCLE_CHECK arguments to merge_face_vectors.
5288 (merge_face_heights): New function.
5289 (merge_face_vectors, merge_face_vector_with_property)
5290 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
5291 handle relative face heights.
5292 (lface_same_font_attributes_p): Compare heights using EQ.
5293
6ce974d4
KH
52942000-08-26 Kenichi Handa <handa@etl.go.jp>
5295
5296 * charset.c (char_to_string): Check the character validity.
5297 (char_valid_p): If C is not less than MAX_CHAR, be sure to return
5298 0.
5299
dc1e502d
SM
53002000-08-25 Stefan Monnier <monnier@cs.yale.edu>
5301
5302 * regex.c (PUSH_FAILURE_COUNT): New macro.
5303 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
5304 Handle popping of a register's or a counter's data.
5305 (POP_FAILURE_POINT): Use the new name.
5306 (re_match_2_internal): Push counter data on the stack for succeed_n,
5307 jump_n and set_number_at and remove misleading dead code in succeed_n.
5308
bd9d0f3f
GM
53092000-08-25 Gerd Moellmann <gerd@gnu.org>
5310
5311 * xdisp.c (redisplay_internal): If considering all windows on all
5312 frames, update the display for each frame as soon as possible,
5313 instead of first building all desired matrices for all frames, and
5314 then updating them all.
5315 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
5316
aa5b8e15
GM
53172000-08-24 Gerd Moellmann <gerd@gnu.org>
5318
17494071
GM
5319 * bytecode.c (mark_byte_stack): Add a comment.
5320
aa5b8e15
GM
5321 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
5322 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
5323 a graphical frame.
5324
c543db81
KH
53252000-08-24 Kenichi Handa <handa@etl.go.jp>
5326
d246d5f5
KH
5327 * minibuf.c (do_completion): Always use compare-string, not
5328 string-equal because the latter doesn't pay attention to
5329 multibyteness of strings.
5330
c543db81
KH
5331 * process.c (create_process): Don't setup raw-text coding here.
5332 (Fopen_network_stream): Don't set coding->src_multibyte and
5333 coding->dst_multibyte here.
5334 (read_process_output): For process filter, return unibyte string
5335 if default-enable-multibyte-characters is nil.
5336 (send_process): If OBJECT is multibyte text, be sure to encoded it
5337 by the specified coding system for the process. Otherwise, setup
5338 raw-text coding.
5339 (init_process): Don't initialize default-process-coding-system
5340 here.
5341
9b47cfe0
EZ
53422000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
5343
5344 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
5345 <scroll-down-aggressively>: Likewise.
5346
f5a36960
KH
53472000-08-23 Kenichi Handa <handa@etl.go.jp>
5348
5349 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
5350 zero. Set coding->produced_char correctly.
5351
69a7ffa7
AI
53522000-08-22 Andrew Innes <andrewi@gnu.org>
5353
5354 * makefile.w32-in: New file.
5355
5356 * unexw32.c (unexec): Ignore old_name, and use the actual location
5357 of the current executable instead. Base new_name on this.
5358
5359 * w32proc.c (create_child): Remove reference to security
5360 descriptor, which isn't needed and doesn't compile with mingw32.
5361
5362 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5363 up dllimport attributes.
5364 (x_update_window_end): Update prototype.
5365
5366 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
5367 extern, which screws up dllimport attributes.
5368
5369 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5370 up dllimport attributes.
5371
5372 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
5373 screws up dllimport attributes.
5374
5375 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5376 up dllimport attributes.
5377 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
5378 screws up dllimport attributes.
5379
5380 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5381 up dllimport attributes.
5382
5383 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
5384 screws up dllimport attributes.
5385
5386 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
5387 screws up dllimport attributes.
5388
5389 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5390 up dllimport attributes.
5391
5392 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
5393 unnecessary extern, which screws up dllimport attributes.
5394 (main): Ditto.
5395
5396 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5397 up dllimport attributes.
5398
5399 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
5400 unnecessary extern, which screws up dllimport attributes.
5401
5402 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
5403 screws up dllimport attributes.
5404
5405 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5406 up dllimport attributes.
5407
5408 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
5409
5410 * w32bdf.c (search_file_line):
5411 (set_bdf_font_info):
5412 (seek_char):
5413 (w32_get_bdf_glyph):
5414 (w32_BDF_to_x_font): Fix compile warnings.
5415
5416 * w32menu.c: Include keyboard.h before frame.h. Fix compile
5417 warnings.
5418
5419 * w32select.c: Include keyboard.h before frame.h.
5420
5421 * w32fns.c (max): Define macro.
5422 (JOHAB_CHARSET): Define if not known.
5423 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
5424 (Fx_show_tip): Synch with X version.
5425
5426 * w32xfns.c: Include keyboard.h before frame.h.
5427
5428 * w32fns.c: Include keyboard.h before frame.h.
5429
5430 * w32term.c: Include keyboard.h before frame.h.
5431
5432 * fontset.c: Include keyboard.h before frame.h.
5433
5434 * w32inevt.c: Include keyboard.h before frame.h.
5435 (MOUSE_MOVED): Define if not known.
5436
5437 * minibuf.c: Include keyboard.h before frame.h.
5438
5439 * keyboard.c: Include keyboard.h before frame.h.
5440
5441 * indent.c: Include keyboard.h before frame.h.
5442
5443 * dispnew.c: Include keyboard.h before frame.h.
5444
5445 * buffer.c: Include keyboard.h before frame.h.
5446
5447 * alloc.c: Include keyboard.h before frame.h.
5448
5449 * print.c: Include keyboard.h before frame.h.
5450
5451 * process.c: Include keyboard.h before frame.h.
5452
5453 * scroll.c: Include keyboard.h before frame.h.
5454
5455 * sysdep.c: Include keyboard.h before frame.h.
5456
5457 * term.c: Include keyboard.h before frame.h.
5458
5459 * window.c: Include keyboard.h before frame.h.
5460
5461 * xdisp.c: Include keyboard.h before frame.h.
5462 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
5463
5464 * frame.c: Include keyboard.h before frame.h.
5465
5466 * w32heap.h: Undefine min, max.
5467
5468 * w32gui.h: Undefine min, max.
5469
5470 * unexw32.c: Change PUCHAR to PCHAR.
5471 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
5472 (relocate_offset):
5473 (get_section_info):
5474 (copy_executable_and_dump_data): Remove unnecessary static defs.
5475 (copy_executable_and_dump_data): Fix compile warnings.
5476
5477 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
5478
5479 * w32console.c (min): Define macro.
5480 (clear_frame, write_glyphs): Fix compile warning.
5481
5482 * w32proc.c (compare_env):
5483 (find_child_console): Fix compile warning.
5484
5485 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
5486 sys_errlist instead of _sys_errlist.
5487 (get_emacs_configuration_options): New function.
5488
5489 * s/ms-w32.h (sys_nerr): Provide default definition.
5490 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
5491 name with _ prepended.
5492 (NSIG): Define if not known.
5493 (get_emacs_configuration): Provide extern declaration.
5494 (get_emacs_configuration_options): Provide extern declaration.
5495 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
5496
5497 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
5498 (map_w32_filename):
5499 (read_unc_volume): Fix compile warning.
5500
5501 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
5502 definitions from being used.
5503
5504 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
5505
5506 * w32.c (unc_volume_file_attributes):
5507 (open_unc_volume): Make arg const.
5508
5509 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
5510 (read_input_waiting): Remove excess parameter.
5511
5512 * w32.c (init_environment): Call _access.
5513 (check_windows_init_file): Call _close.
5514 (init_user_info): Call _putenv.
5515 (init_environment): Call _putenv and _strdup.
5516 (init_ntproc): Reset volume info cache on startup.
5517
5518 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
5519 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
5520 cannot override the CRT malloc.
5521
5522 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
5523 (LINK_FLAGS): Append to original value of LINK_FLAGS.
5524
5525 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
5526 unless we are linking with a static CRT.
5527 (RVA_TO_PTR): Cast result to unsigned char*.
5528
5529 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
5530 (add_volume_info): Use xstrdup.
5531
25060080
SM
55322000-08-22 Stefan Monnier <monnier@cs.yale.edu>
5533
5534 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
5535 (do_completion, Fminibuffer_complete_word): Use it.
5536 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
5537 var so it can take non-boolean values.
5538
6917e6bb
GM
55392000-08-21 Gerd Moellmann <gerd@gnu.org>
5540
acb7cc89
GM
5541 * editfns.c (find_field): Formatting changes.
5542 (toplevel): Some old-style function forward declarations
5543 changed to prototypes, some new protypes added, some functions
5544 made static.
5545
5546 * lisp.h (set_time_zone_rule): Add prototype.
5547 (use_dialog_box): External declaration.
5548
0bbfdc25
GM
5549 * keyboard.c (gen_help_event): Add parameter SIZE.
5550 (kbd_buffer_events_waiting): Slightly rewritten.
5551 (clear_event): New function.
5552 (kbd_buffer_get_event): Use it, and clear the input_events of
5553 HELP_EVENTs.
5554 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
5555 don't fill the newly created array with nils.
5556 (toplevel): Convert some old-style function forward declarations
5557 to prototypes.
5558
5559 * keyboard.h (gen_help_event): Change prototype.
5560
5561 * xterm.c (XTread_socket): Change calls to gen_help_event.
5562
5563 * w32term.c (w32_read_socket): Change calls to gen_help_event.
5564
6917e6bb
GM
5565 * eval.c (Fmacroexpand): Doc fix.
5566
e5cd3d11
JR
55672000-08-20 Jason Rumney <jasonr@gnu.org>
5568
5569 * w32term.h (x_display_info_for_display): Remove as this function
5570 does not exist on W32.
5571
5572 * w32term.c (help_echo_window): New variable.
5573 (syms_of_w32term): staticpro it.
5574 (note_mode_line_highlight): Set it.
5575 (XTextExtents16): Removed as there is no equivalent on W32.
5576 (x_compute_glyph_string_overhangs): Incomplete body removed, as
5577 the X way of doing this will not work for W32.
5578 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
5579 (x_draw_image_foreground): Avoid drawing outside of the clip area
5580 when image doesn't have a mask.
5581 (note_mouse_highlight): Process overlays in the right order of
5582 priority. Set help_echo_window.
5583 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
5584 because that's more visible for large images.
5585
5586 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
5587 name to single_keymap_panes.
5588 (w32_menu_show): Set wv->title when dealing with titles.
5589 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
5590
6e69ab8c
MB
55912000-08-21 Miles Bader <miles@gnu.org>
5592
5593 * minibuf.c (do_completion): Try again if we rewrite the input
5594 string, but no completion was done, so that any completion message
5595 will be correct.
5596
511bd4eb
GM
55972000-08-20 Gerd Moellmann <gerd@gnu.org>
5598
5599 * xfaces.c (lface_equal_p): Compare strings differently.
5600 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
5601 (realize_tty_face): Use them.
5602 (syms_of_xfaces): Initialize new variables.
5603 (map_tty_color): New function, extracted from realize_tty_face.
5604 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
5605 foreground or background color, store the new color name in the
5606 realized face; previous code trying to do this had no effect.
5607 (realize_tty_face): Use map_tty_color.
5608 (Fclear_face_cache): Set face_change_count and ensure thorough
5609 redisplay.
5610
1433385f
GM
56112000-08-19 Gerd Moellmann <gerd@gnu.org>
5612
511bd4eb
GM
5613 * undo.c (record_first_change, record_marker_adjustment): Don't
5614 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 5615
419ac0a2
KH
56162000-08-18 Kenichi Handa <handa@etl.go.jp>
5617
5618 * coding.c (decode_coding_string): Set members consumed,
5619 consumed_char, produced, produced_char of *coding correctly. If
5620 decode_coding doesn't consume any byte, don't try anymore.
5621 (encode_coding_string): Likewise.
5622
7eb9e30d
GM
56232000-08-18 Gerd Moellmann <gerd@gnu.org>
5624
511bd4eb
GM
5625 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
5626 conditional have void type, for Standard C compilers.
7eb9e30d
GM
5627
5628 * xdisp.c (redisplay_internal): Compare windows for equality with
5629 EQ, instead of applying XWINDOW to something that might not
5630 be a window.
5631
dd34a735
KH
56322000-08-18 Kenichi Handa <handa@etl.go.jp>
5633
5634 * fontset.c (Finternal_char_font): Search only the selected frame
5635 for a window of the current buffer.
5636
385ff9e3
GM
56372000-08-18 Gerd Moellmann <gerd@gnu.org>
5638
511bd4eb 5639 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
5640 Lisp_Objects.
5641
385ff9e3
GM
5642 * keyboard.c (kbd_buffer_get_event): Handle the case that the
5643 second half of a HELP_EVENT is found at the start of kbd_buffer.
5644
d6abb4c7
MB
56452000-08-18 Miles Bader <miles@gnu.org>
5646
4618074a
MB
5647 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
5648
d6abb4c7
MB
5649 * editfns.c (save_restriction_save): Rewrite to use markers.
5650 (save_restriction_restore): Rewrite to understand new form of data
5651 saved by save_restriction_save.
5652 (Fsave_restriction): Remove cautionary note in doc-string.
5653
a7b28523
GM
56542000-08-17 Gerd Moellmann <gerd@gnu.org>
5655
5656 * fileio.c (build_annotations): Add a comment explaining the
5657 return value of format-annotate-function. Replace a spurious call
5658 to Flength with a CONSP test. Call format-annotate-function with
5659 a fifth arg specifying how many times the function is been called
5660 in a row, to let it choose temporary buffers appropriately.
5661
03c9ed77
DL
56622000-08-17 Dave Love <fx@gnu.org>
5663
5664 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
5665 declare make_temp_name twice.
5666
5667 * lread.c: Prototype readevalloop, load_unwind,
5668 load_descriptor_unwind.
5669 (unreadpure): Give it an arg.
5670
5671 * unexalpha.c: Prototype fatal_unexec, mark_x,
5672 update_dynamic_symbols. Declare unexec as void.
5673
5674 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
5675 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
5676
5677 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
5678 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on
5679 DOUG_LEA_MALLOC.
5680
5681 * alloca.c: Use #error.
5682 [POINTER_TYPE]: Use it.
5683
5684 * eval.c (Fdefvar): Doc fix.
5685
5686 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
5687 INITIALIZE_INTERVAL.
5688
5689 * buffer.h: Avoid DECLARE_INTERVALS.
5690
5691 * config.in: Add size_t.
5692
aae41d97
EZ
56932000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
5694
5695 * w16select.c (set_clipboard_data): If there's not enough memory
5696 to put text into clipboard, return 1, as Fw16_set_clipboard_data
5697 expects. In case of other failures, return 3.
5698 (system_error_msg): New error message.
5699 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
5700 system_error_msg.
5701
65aa5e85
GM
57022000-08-16 Gerd Moellmann <gerd@gnu.org>
5703
5704 * term.c (write_glyphs): Also turn off inverse video after turning
5705 off other appearances in case TS_exit_attribute_mode is not equal
5706 to TS_end_standout_mode.
5707 (insert_glyphs): Turn inverse video on/off for each run of glyphs
5708 with the same face.
5709 (turn_off_face): Reset standout_mode only if
5710 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
5711 is equal to TS_end_standout_mode.
5712
ece23901
KH
57132000-08-16 Kenichi Handa <handa@etl.go.jp>
5714
9d7bcb2e
KH
5715 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
5716 sequence at the end of the source block.
5717
ece23901
KH
5718 * ccl.c (Fccl_program_p): Docstring modified.
5719 (Fccl_execute): Likewise.
5720 (Fccl_execute_on_string): Likewise.
5721
5e30eaa2
EZ
57222000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
5723
5724 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
5725
290602fd
KH
57262000-08-16 Kenichi Handa <handa@etl.go.jp>
5727
5728 The following changes are mainly to fix bugs of
5729 encode/decode-coding-string failing if encoding/decoding return
5730 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
5731 variable conversion_buffer.
5732
5733 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
5734 decrement dst_end to avoid buffer overflow in the later call of
5735 string_as_multibyte
5736
5737 * coding.h (conversion_buffer_size, conversion_buffer)
5738 (get_conversion_buffer): Extern deleted.
5739
5740 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
5741 (conversion_buffer, conversion_buffer_size): Variables deleted.
5742 (get_conversion_buffer): Function deleted.
5743 (struct conversion_buffer): New structure.
5744 (MAX_ALLOCA): New macro.
5745 (allocate_conversion_buffer): New macro.
5746 (extend_conversion_buffer, free_conversion_buffer): New functions.
5747 (ccl_coding_driver): Set coding->result.
5748 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
5749 this is the last block of source.
5750 (encode_coding): Likewise. Handle the source block as the last
5751 one only when the whole source text is consumed.
5752 (decode_coding_string): Handle the case that the output buffer is
5753 too small to decode the whole source text. Use
5754 allocate_conversion_buffer, extend_conversion_buffer and
5755 free_conversion_buffer, not get_conversion_buffer.
5756 (encode_coding_string): Likewise.
5757 (init_coding): Function deleted.
5758 (init_coding_once): Delete code to initialize
5759 conversion_buffer_size.
5760
5761 * emacs.c (main): Don't call init_coding.
5762
5763 * msdos.c (IT_write_glyphs): Use a locally declared
5764 conversion_buffer.
5765
5766 * term.c (write_glyphs): Use a locally declared conversion_buffer.
5767 (insert_glyphs): Likewise.
5768
5769 * w32console.c (write_glyphs): Use a locally declared
5770 conversion_buffer.
5771
b9f80d41
EZ
57722000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
5773
5774 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
5775 member of display_info is NULL.
5776
32dc52f7
GM
57772000-08-15 Gerd Moellmann <gerd@gnu.org>
5778
58ed0d3b
GM
5779 * alloc.c (compact_small_strings): Use safe_bcopy, add an
5780 assertion.
5781
32dc52f7 5782 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 5783 appearances with capability `me'.
32dc52f7
GM
5784 (write_glyphs): Switch on inverse video before each face change.
5785
4eb22d33
DL
57862000-08-14 Dave Love <fx@gnu.org>
5787
5788 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
5789 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
5790 (lisp_free): Declare and make static.
5791
5792 * window.c: Fix embedded comment.
5793 (syms_of_window): Fix doc string.
5794
90cbf47e
GM
57952000-08-14 Gerd Moellmann <gerd@gnu.org>
5796
5797 * keymap.c (push_key_description): If C without modifiers is < 32,
5798 make sure to print `C-' before `M-', like in the manual.
5799
440fc135
GM
58002000-08-11 Gerd Moellmann <gerd@gnu.org>
5801
5802 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
5803 since they aren't relocated anymore.
5804 (sxhash_string): Make sure returned hash code fits in a Lisp
5805 integer.
5806
5807 * xdisp.c (try_cursor_movement): Fix handling of cursor in
5808 partially visible line which is smaller than the window's
5809 height.
5810
6e264fad
KH
58112000-08-11 Kenichi Handa <handa@etl.go.jp>
5812
5813 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
5814 the multibyte form of eight-bit-control characters.
5815 (Fccl_execute_on_string): Initialize ccl->multibyte.
5816
5817 * ccl.h (struct ccl_program): New member multibyte.
5818
5819 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
5820
c371f69a
KH
58212000-08-11 Kenichi Handa <handa@etl.go.jp>
5822
5823 * regex.c (regex_compile) <normal_char>: Pay attention to
5824 multibyteness.
5825 (analyse_first) <exactn>: Setup fastmap correctly for
5826 eight-bit-control characters.
5827
58282000-08-11 Kenichi Handa <handa@etl.go.jp>
5829
5830 * termhooks.h (enum event_kind): New member
5831 multibyte_char_keystroke.
5832
5833 * keyboard.c (make_lispy_event): Handle the new event type
5834 multibyte_char_keystroke.
5835
5836 * xterm.c: Include coding.h.
5837 (XTread_socket): Work around a bug of XmbLookupString. If the
5838 input is from XIM, decode it according to the current locale. In
5839 that case, generate multibyte_char_keystroke events.
5840
b8ddbe71
KH
58412000-08-11 Kenichi Handa <handa@etl.go.jp>
5842
5843 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
5844 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
5845
47589c8c
GM
58462000-08-10 Gerd Moellmann <gerd@gnu.org>
5847
5848 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
5849 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
5850 (move_it_in_display_line_to): Record iterator's ascent and descent
5851 before producing glyphs, and restore them when we know the glyph
5852 doesn't fit on the line.
5853 (move_it_to): Restructured so that it's easier to debug. If
5854 moving to a vpos, and not moving to an x or character position,
5855 stop as soon as the specified vpos is reached; don't move further
5856 into that line because that might change the computed line height.
5857 (try_cursor_movement): New function, extracted from the cursor
5858 movement branch of redisplay_window. If ending on a partially
5859 visible line, don't try to scroll if the cursor line is taller
5860 than the window.
5861 (redisplay_window): Use try_cursor_movement.
5862
5863 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
5864 because that function doesn't cope with variable-height lines.
5865
5866 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
5867 box cursor because that's better visible for large images.
5868
c51bacd6
MB
58692000-08-10 Miles Bader <miles@gnu.org>
5870
5871 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
5872
bea56df7
GM
58732000-08-10 Gerd Moellmann <gerd@gnu.org>
5874
5875 * xdisp.c (Vmessages_buffer_name): New variable.
5876 (message_dolog): Use it.
5877 (syms_of_xdisp): Initialize it.
5878
99cd7364
EZ
58792000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
5880
5881 * msdos.c (IT_note_mouse_highlight): Update the calls to
5882 overlays_at.
5883 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
5884 redundant now that keyboard.h is included.
5885
7d093d56
EZ
58862000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
5887
5888 * keyboard.c (kbd_buffer_events_waiting): New function.
5889
5890 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
5891
5892 * msdos.c: Include keyboard.h.
5893 (XMenuActivate): Empty no_event events from the event buffer. If
5894 no events are left after that, call clear_input_pending.
5895 (mouse_clear_clicks): New function, code moved from mouse_init.
5896 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
5897 mouse driver to ``forget'' any past clicks.
5898
5899 * Makefile.in (msdos.o): Depend on keyboard.h.
5900
41e757a6
GM
59012000-08-09 Gerd Moellmann <gerd@gnu.org>
5902
8e7bd231
GM
5903 * lisp.h (input_pending): External declaration.
5904
5905 * dispextern.h (Qredisplay_dont_pause): Declare extern.
5906
5907 * xdisp.c (echo_area_display): Display thoroughly if input is
5908 pending. Bind redisplay-dont-pause to t during the redisplay.
5909 in case input is pending.
5910
5911 * dispnew.c (Qredisplay_dont_pause): New variable.
5912 (syms_of_display): Initialize and staticpro it.
5913 (update_frame_1): Don't interrupt the display for pending input if
5914 redisplay_dont_pause is set.
5915
43028b7e
GM
5916 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
5917
41e757a6
GM
5918 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
5919
2f2174fa
KH
59202000-08-09 Miles Bader <miles@lsi.nec.co.jp>
5921
5922 * callproc.c (Fcall_process): Terminate the unwind-protect around
5923 the post-read-conversion of coding system.
5924
0a6fd67e
MB
5925 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
5926 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
5927 * buffer.h (overlays_at): Update prototype.
5928 * xdisp.c (next_overlay_change): Update call to overlays_at.
5929 * xfaces.c (face_at_buffer_position): Likewise.
5930 * textprop.c (Fget_char_property): Likewise.
5931 * xterm.c (note_mouse_highlight): Likewise.
5932
0c80756e
MB
5933 * minibuf.c (do_completion): Don't consider a simple change of
5934 case as `completion'.
5935
975f250a
KR
59362000-08-08 Ken Raeburn <raeburn@gnu.org>
5937
b347b3fd
KR
5938 * keyboard.c (syms_of_keyboard): Initialize
5939 last_point_position_buffer.
5940 * undo.c (record_delete): Make sure last_point_position_buffer is
5941 a buffer before comparing pointers.
5942
5943 * coding.h (decode_coding_string): Declare.
5944
5945 * intervals.h (Fprevious_single_char_property_change): Declare.
5946
5947 * textprop.c (Fprevious_single_char_property_change): Don't do
5948 arithmetic directly on lisp objects.
5949
25ad1371 5950 * editfns.c (find_field): Use EQ, not ==, to compare Lisp
b347b3fd
KR
5951 objects.
5952
5953 * keyboard.h (menu_item_eval_property): Declare.
5954
5955 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
5956 reuse as buffer name, instead of recreating (and discarding) every
5957 time a message is logged.
5958 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
5959 (current_message_1, truncate_message_1, set_message_1)
5960 (display_echo_area_1, resize_mini_window_1): Signatures changed.
5961 (current_message, truncate_echo_area, display_echo_area)
5962 (resize_echo_area_axactly): Changed calls.
b347b3fd 5963
975f250a 5964 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 5965 Lisp object.
975f250a 5966 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 5967 must be an integer, not a Lisp object.
975f250a 5968
46dc9912
KH
59692000-08-08 Kenichi Handa <handa@etl.go.jp>
5970
5971 * charset.c (Fchar_width): Doc fix.
5972
9f6d1a6c
GM
59732000-08-08 Gerd Moellmann <gerd@gnu.org>
5974
5975 * charset.c (Fstring_width): Doc fix.
5976
ff3d9573
GM
59772000-08-07 Gerd Moellmann <gerd@gnu.org>
5978
41e757a6 5979 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
5980 line, clear ascent and descent members of the iterator structure;
5981 the height of the continued line does not affect the height of the
5982 continuation line.
5983 (make_cursor_line_fully_visible): Do nothing if cursor is on a
5984 line taller than the window.
5985 (redisplay_window) <forced window start>: Handle case that the
5986 middle of the window is not found in any row.
5987 (dump_glyph_row): Show more information.
5988 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
5989 first text line in a glyph matrix.
5990
5991 * xterm.c (x_draw_image_foreground): Avoid drawing outside
5992 of the clip area when image doesn't have a mask.
5993
70fc58b3
GM
5994 * fns.c (sweep_weak_table): Fix survival conditions for
5995 key-or-value and key-and-value weakness.
5996
5997 * .gdbinit (xhashtable): New command.
5998
ac0e96ee
GM
5999 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
6000 tables out of the list of all weak hash tables.
6001
ff3d9573
GM
6002 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
6003 a new buffer is created, make sure echo_area_buffer[] references
6004 the new buffer.
6005
e0d8827b
EZ
60062000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
6007
6008 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
6009 the doc string.
6010
c6f35378
KH
60112000-08-07 Kenichi Handa <handa@etl.go.jp>
6012
6013 * syntax.c (skip_chars): Fix previous change. Make the handling
6014 of unibyte string consistent with that of regex search.
6015
1fd4c450
GM
60162000-08-05 Gerd Moellmann <gerd@gnu.org>
6017
e49aa397
GM
6018 * xmenu.c (popup_get_selection): Use xfree instead of free.
6019
6020 * fileio.c (Finsert_file_contents): Use xfree instead of free.
6021
6022 * editfns.c (Ftranspose_regions): Use xfree instead of free.
6023
6024 * callproc.c (child_setup): Use xfree instead of free.
6025
6026 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
6027 instead of malloc.
6028 (run_mac_command, closedir): Use `xfree' instead of `free'.
6029
6030 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
6031
6032 * eval.c (error): Use xfree instead of free.
6033
1fd4c450
GM
6034 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
6035
6036 * fns.c: Replace `illegal' with `invalid'.
e49aa397 6037 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 6038
82d497fc
KH
60392000-08-05 Kenichi Handa <handa@etl.go.jp>
6040
6041 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
6042 conversion.
6043
59f953a2
NF
60442000-08-04 Noah Friedman <friedman@splode.com>
6045
6046 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
6047 docstring.
6048
688351f2
GM
60492000-08-04 Gerd Moellmann <gerd@gnu.org>
6050
6051 * syntax.c (skip_chars): Fix typo in error message.
6052
2dad51cc
AS
60532000-08-04 Andreas Schwab <schwab@suse.de>
6054
6055 * m/ia64.h: Moved from s/ia64.h.
6056
99bb2c60
KH
60572000-08-04 Kenichi Handa <handa@etl.go.jp>
6058
082a1df2
KH
6059 * process.c (read_process_output): Big simplification. Handle
6060 composition and post-read-conversion of coding system correctly.
6061 (send_process): Handle composition correctly.
6062
6063 * callproc.c (Fcall_process): Handle post-read-conversion of
6064 coding system if any.
6065
99bb2c60
KH
6066 * coding.c (decode_coding_iso2022): More strict check for handling
6067 single shifting.
082a1df2
KH
6068 (coding_restore_composition): Pay attention to the case that
6069 cmp_data is not set properly (because of invalid code in the
6070 source text).
6071 (run_pre_post_conversion_on_str): Include text properties in the
6072 resulting string.
6073 (decode_coding_string): Set members of coding correctly.
99bb2c60 6074
f4988be7
GM
60752000-08-03 Gerd Moellmann <gerd@gnu.org>
6076
6077 * s/ia64.h: New file.
6078
6079 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
6080 Use NULL instead of 0 at the end of variable argument list of
6081 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
6082 sizeof (int) < sizeof (void *).
6083
6084 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
6085 of variable argument lists of XtVaGetValues and XtVaSetValues.
6086
6087 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
6088 variable argument lists of XtVaGetValues and XtVaSetValues.
6089
ead53494
GM
60902000-08-02 Gerd Moellmann <gerd@gnu.org>
6091
6092 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
6093 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
6094
6095 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
6096 prototype.
6097
6098 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
6099 in call to Fsingle_key_description.
6100
6101 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
6102 Callers changed.
6103
61042000-08-02 Colin Walters <walters@cis.ohio-state.edu>
6105
6106 * window.c (display_buffer_reuse_frames): New variable.
6107 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
6108 frames displaying BUFFER.
6109 (syms_of_window): Define Lisp variable
6110 display-buffer-reuse-frames.
6111
10b0f752
MB
61122000-08-01 Miles Bader <miles@gnu.org>
6113
6114 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
6115 when to constrain NEW_POS (they were pretty screwed up before).
6116
16425c4a
EZ
61172000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
6118
6119 * msdos.c (run_msdos_command): Save and restore the master
6120 environment, for the case that child_setup signals an error.
6121 When mirroring slashes in DOS shell commands, don't fail when
6122 argv[2] has embedded blanks.
da288c14
EZ
6123 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
6124 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
6125 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
6126
6127 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
6128 using alloca; free it after run_msdos_command returns.
6129
27f73852
DL
61302000-07-27 Dave Love <fx@gnu.org>
6131
6132 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't
6133 define.
6134 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently
6135 working.
6136
6137 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
6138
c0261b5e
EZ
61392000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
6140
6141 * editfns.c (lisp_time_argument): Fix last change.
6142
b548072f
GM
61432000-07-27 Gerd Moellmann <gerd@gnu.org>
6144
3ab82477
GM
6145 * fns.c (Fdelete): Make it work on vectors and strings in addition
6146 to lists.
6147
b548072f
GM
6148 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
6149 (syms_of_fns): Initialize new variables.
6150 (sweep_weak_table): Handle weakness `key-or-value' and
6151 `key-and-value'.
6152 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
6153 weakness, with t meaning the same as `key-and-value'.
6154
91ae8751
KH
61552000-07-27 Kenichi Handa <handa@etl.go.jp>
6156
6157 * coding.h (struct coding_system): Member safe_charset deleted.
6158
6159 * coding.c (Qsafe_charsets): This variable deleted.
6160 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system): New
6161 variables.
6162 (coding_safe_chars): New function.
6163 (CODING_SAFE_CHAR_P): New macro.
6164 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
6165 checking safe_charsets member of the coding system. Caller
6166 changed.
6167 (detect_coding_iso2022): New local variable safe_chars.
6168 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
6169 safe_charsets member of the coding system.
6170 (decode_coding_iso2022): New local variable safe_chars.
6171 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
6172 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
6173 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
6174 (ENCODE_UNSAFE_CHARACTER): New macro.
6175 (encode_coding_iso2022): New local variable safe_chars. Check
6176 unsafe chars.
6177 (setup_coding_system): Delete the code to initialize
6178 coding->safe_charses
6179 (intersection, find_safe_codings): New functions.
6180 (Ffind_coding_systems_region_internal): New function.
6181 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
6182 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
6183 variable and initialize it.
6184
6185 * fns.c (char_table_ref_and_index): New function.
6186
6187 * lisp.h (char_table_ref_and_index): Add prototype.
6188
34a7a267
SS
61892000-07-26 Sam Steingold <sds@gnu.org>
6190
6191 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 6192 (Ffloat_time): New built-in Lisp function.
34a7a267 6193
a95cb10a
GM
61942000-07-26 Gerd Moellmann <gerd@gnu.org>
6195
3353ef5a
GM
6196 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
6197 for the character code.
6198
6199 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
6200 GNU/Linux.
6201
a95cb10a
GM
6202 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
6203 if called for a popup menu.
6204 (xmenu_show): Store help string in widget values.
6205
b4a12321
DL
62062000-07-26 Dave Love <fx@gnu.org>
6207
6208 * syswait.h: Move some definitions.
6209 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
6210 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
6211 perspicuous definitions.
6212 (WTERMSIG): Fix bit pattern used.
6213
13f5ad37
KH
62142000-07-26 Kenichi Handa <handa@etl.go.jp>
6215
6216 * print.c (print_object): If vector printing is truncated, print
6217 "..." to indicate it as well as the case of list printing.
6218
070fe99c
GM
62192000-07-25 Gerd Moellmann <gerd@gnu.org>
6220
969065c3
GM
6221 * xdisp.c (next_element_from_display_vector): Improve comments.
6222
6223 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
6224 for the character code, and the rest for the face id as in 20.x.
6225 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
6226
6227 * window.c (window_display_table): Cleaned up.
6228
070fe99c
GM
6229 * syntax.c (Fforward_word): Add last arg nil in call of
6230 Fconstrain_to_field.
6231
bad77ef7
EZ
62322000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
6233
969065c3 6234 * fileio.c (Frename_file) [DOS_NT]: If the file names are
bad77ef7
EZ
6235 identical but for the letter-case, don't call
6236 barf_or_query_if_file_exists.
6237
c28da489
MB
62382000-07-25 Miles Bader <miles@gnu.org>
6239
6240 * editfns.c (find_field): Honor special `boundary' fields.
6241 (Qboundary): New variables.
6242 (syms_of_editfns): Initialize Qboundary.
6243 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
6244 Use scan_buffer instead of find_before_next_newline, because it
6245 allows us to detect the boundary case where there's a newline at
6246 the search limit.
6247 * lisp.h (Fconstrain_to_field): Update external declaration.
6248
e3c31fd5
GM
62492000-07-24 Gerd Moellmann <gerd@gnu.org>
6250
6251 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
6252 if that is nil.
c28da489 6253
c66c29a2
DL
62542000-07-24 Dave Love <fx@gnu.org>
6255
6256 * s/sunos4-0.h, s/sol2.h:
6257 (LIBS_TERMCAP): Move from m/sparc.h.
6258
6259 * m/sparc.h (TERMINFO): Moved to system files (probably only
6260 relevant for sunos4 judging by its vintage).
6261 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
6262 __arch64__.
6263
fbe0a958
EZ
62642000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
6265
6266 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
6267 name to single_keymap_panes.
6268
7d88e5c9
AS
62692000-07-24 Andreas Schwab <schwab@suse.de>
6270
6271 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
6272
e024b101
GM
62732000-07-24 Gerd Moellmann <gerd@gnu.org>
6274
6275 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
6276 parameters instead of using int parameters. Expect FN to accept
6277 EMACS_INT parameters.
6278 (display_echo_area, resize_echo_area_axactly, current_message)
6279 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
6280 with new argument list.
6281 (resize_mini_window_1): New callback function.
6282 (current_message_1, truncate_message_1, set_message_1): Change
6283 parameter lists to the new format expected by
6284 with_echo_area_buffer.
6285
25c1a9ce
KH
62862000-07-24 Kenichi Handa <handa@etl.go.jp>
6287
6288 * fontset.c (fontset_ref): Remove INLINE declaration.
6289 (fontset_ref_via_base): Likewise.
6290 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
6291 to downcase.
6292
7f987ac0
EZ
62932000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
6294
6295 * msdos.c (IT_note_mouse_highlight): Process overlays in the
6296 correct order of priority. If help echo was found in an overlay,
6297 use that overlay as the object in which the help echo was found.
6298
e2db3069
MB
62992000-07-22 Miles Bader <miles@gnu.org>
6300
6301 * textprop.c (Fprevious_single_char_property_change): The initial
6302 property value should be from the position preceding POSITION, not
6303 following it.
6304
5e3203e4
EZ
63052000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
6306
6307 * coding.c (syms_of_coding): Doc fix for
6308 inhibit-iso-escape-detection.
6309
62145073
GM
63102000-07-21 Gerd Moellmann <gerd@gnu.org>
6311
c20aeb83
GM
6312 * xterm.c (note_mouse_highlight): Process overlays in the right
6313 order of priority.
34a7a267 6314
743934db
GM
6315 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
6316
6317 * xterm.c (note_mouse_highlight): If help-echo was found in an
6318 overlay, use that overlay as the object in which the help was
6319 found.
6320
d1dc7e43 6321 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 6322
62145073
GM
6323 * window.c (foreach_window): Instead of a fake variable argument
6324 list, take one USER_DATA argument.
6325 (foreach_window_1): Likewise, and call callback functions with two
6326 args, the window and USER_DATA.
6327 (struct check_window_data): New struct.
6328 (check_window_containing): Use it.
6329 (window_from_coordinates): Set up a struct check_window_data for
6330 foreach_window.
6331 (add_window_to_list, freeze_window_start): Change parameters
6332 according to new calling convention.
6333
6334 * window.h (foreach_window): Change prototype.
6335
6336 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
6337
63382000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
6339
6340 * xmenu.c (menu_help_callback): Call show_help_echo with
6341 additional arguments OBJECT and POS.
6342
11270583
KH
63432000-07-21 Kenichi Handa <handa@etl.go.jp>
6344
07b14857
KH
6345 * data.c (Faset): Allow storing any multibyte character in a
6346 string. Convert unibyte string to multibyte if necessary.
6347
11270583
KH
6348 * xfns.c (x_encode_text): New function.
6349 (x_set_name): Use x_encode_text.
6350 (x_set_title): Likewise.
6351
6352 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
6353
6354 * xterm.h (x_encode_text): Add prototype.
6355
bc75b4fd
DL
63562000-07-20 Dave Love <fx@gnu.org>
6357
6358 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
6359 xfree, not free.
6360
48c14970
EZ
63612000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
6362
6363 * msdos.c (help_echo_window): New variable.
6364 (syms_of_msdos): Initialize and staticpro it.
6365 (IT_note_mode_line_highlight): Set help_echo_window.
6366 (IT_note_mouse_highlight): Ditto.
6367 (dos_rawgetc): Store help_echo_window in the second event produced
6368 for HELP_EVENTs.
6369
6370 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
6371 Record the object that generated the help echo and the position of
6372 that object in help_echo_object and help_echo_pos. Record that
6373 some glyphs in a row are displayed in mouse-face.
6374 (IT_update_begin): Don't clear mouse highlight unless one of the
6375 enabled glyph rows is marked as being displayed in mouse-face.
6376 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
6377 and position recorded in help_echo_object and help_echo_pos to the
6378 event queue.
6379 (IT_menu_display): Accept a new argument PN: the pane number of
6380 the current menu pane. Record the pane number and the item
6381 number of the item which has associated help string.
6382 (XMenuActivate): Update the prototype for help_callback in
6383 function declaration. Call IT_menu_display with the current menu
6384 pane number as an additional argument. Call help_callback with
6385 two additional arguments: the pane number and the item number of
6386 the menu item associated with the help text.
6387 (help_echo_object, help_echo_pos): New variables.
6388 (syms_of_msdos): Initialize them and staticpro help_echo_object.
6389
6390 * msdos.h (XMenuActivate): Update prototype.
6391
4279296d
GM
63922000-07-19 Gerd Moellmann <gerd@gnu.org>
6393
47db06aa
GM
6394 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
6395 Add some more prototypes.
6396
6397 * xterm.c, xterm.h: Add some more prototypes.
6398
6399 * lisp.h (Fnext_single_char_property_change): Add prototype.
6400
6401 * dispnew.c (direct_output_for_insert): Remove confusing
6402 outer local variable mouse_face_overwritten_p.
6403 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
6404
4279296d
GM
6405 * alloc.c (allocate_string_data): Don't copy old string contents.
6406
670acd62
KH
64072000-07-19 Kenichi Handa <handa@etl.go.jp>
6408
6409 * coding.c (code_convert_region): Delete text properties before
6410 shrinking the conversion region.
6411
7cea38bc
GM
64122000-07-18 Gerd Moellmann <gerd@gnu.org>
6413
dc1cac59
GM
6414 * dispnew.c (update_text_area): Write the whole row if it
6415 has mouse-face in it.
6416
85a8aca9
GM
6417 * xfaces.c (face-alternative-font-family-alist): Remove
6418 DEFVAR_LISP; staticpro instead.
6419
34a7a267 6420 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
6421 new arguments.
6422
6423 * keyboard.c (show_help_echo): Add parameter WINDOW.
6424 (read_char): Call show_help_echo with window extracted from Lisp
6425 help event.
6426 (gen_help_event): Add parameter WINDOW.
6427
6428 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
6429
6430 * xterm.c (help_echo_window): New variable.
6431 (note_mouse_highlight, note_tool_bar_highlight): Set
6432 help_echo_window.
6433 (XTread_socket): Pass help_echo_window to gen_help_event.
6434 (syms_of_xterm): Initialize and staticpro help_echo_window.
6435
f8276b77
DL
64362000-07-18 Dave Love <fx@gnu.org>
6437
6438 * Makefile.in: Fix dependencies of blockinput.h on atimer.h,
6439 systime.h.
6440
088831a6
GM
64412000-07-18 Gerd Moellmann <gerd@gnu.org>
6442
3d6cd763
GM
6443 * alloc.c (allocate_string_data): If string had already data
6444 assigned, copy old contents to new string data.
6445
6446 * coding.c (syms_of_coding): Fix typo in spelling of variable
6447 `inhibit-iso-escape-detection'.
6448
088831a6
GM
6449 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
6450
6451 * Makefile.in: Add dependencies on dispextern.h.
6452 (alloca.o): Don't define malloc and define EMACS_FREE instead of
6453 `free'; both can conflict with system header files.
6454
bc8a8d55
KH
64552000-07-18 Kenichi Handa <handa@etl.go.jp>
6456
6457 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
6458 undefined.
6459
069f5950
DL
64602000-07-18 Dave Love <fx@gnu.org>
6461
6462 * window.c (Fwindow_list): Declare arg `window'.
6463
aa96c820
KH
64642000-07-18 Kenichi Handa <handa@etl.go.jp>
6465
6466 * coding.c (setup_coding_system): Don't override the explicitly
6467 specified designations.
6468
06be8d32
MB
64692000-07-15 Miles Bader <miles@gnu.org>
6470
6471 * editfns.c (char_property_eq, char_property_stickiness): Renamed
6472 from `text_property_eq' and `text_property_stickiness', respectively.
6473 (find_field, Fconstrain_to_field, char_property_eq)
6474 (char_property_stickiness): Changed to call char-property functions
6475 instead of text-property-only ones.
6476
6477 * textprop.c (Fnext_single_char_property_change): Made a subr (was
6478 `next_single_char_property_change'). Do more error checking, and
6479 cleanup limit behavior.
6480 (Fprevious_single_char_property_change): New function.
6481 (syms_of_textprop): Initialize new subrs.
6482
6483 * xdisp.c (display_prop_end, invisible_text_between_p):
6484 Call Fnext_single_char_property_change instead of
6485 next_single_char_property_change.
6486
3fddcdc3
JR
64872000-07-15 Jason Rumney <jasonr@gnu.org>
6488
6489 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
6490 after menu is finished with.
6491 (add_menu_item): Only consider wv->title as a menu title.
6492 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
6493
6494 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
6495 null title.
6496 (FONT_REGEXP): Remove unused macro, and its sub-components.
6497 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
6498
6499 * w32term.c (help_echo_object, help_echo_pos): New variables.
6500 (note_mode_line_highlight): Store additional information about the
6501 help-echo in help_echo_object and help_echo_pos. Check both
6502 `local-map' and `keymap' properties for changing the cursor
6503 (note_mouse_highlight): Store additional information about the
6504 help-echo in help_echo_object and help_echo_pos.
6505 (note_tool_bar_highlight): Set help_echo_object to nil and
6506 help_echo_pos to -1.
6507 (w32_read_socket): Use gen_help_event instead of filling
6508 input_events manually.
6509 (syms_of_w32term): Staticpro help_echo_object.
6510 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
6511 set, arrange for a mouse-highlight redisplay in
6512 XTframe_up_to_date.
6513 (x_clear_mouse_face): New function.
6514 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
6515 (x_update_window_begin): No need to turn off the mouse
6516 highlight here.
6517 (show_mouse_face): Set the mouse_face_p flag of glyph rows
6518 depending on whether they contain glyphs highlighted in
6519 mouse-face.
6520 (x_fill_stretch_glyph_string): Consume runs of stretch
6521 glyphs instead of a single one.
6522 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
6523 with new argument list.
6524 (x_set_glyph_string_gc): Make sure the face's GC is valid.
6525 (x_append_glyph, x_append_composite_glyph)
6526 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
6527 changes in struct glyph starting 1999-12-27. See comments for
6528 xterm.c on 2000-07-05.
6529
178c5d9c
SS
65302000-07-14 Sam Steingold <sds@gnu.org>
6531
6532 * xfaces.c (realize_x_face): Fix the last patch:
6533 check `default_face' before dereferencing.
6534
6fe533f6
DL
65352000-07-14 Dave Love <fx@gnu.org>
6536
069f5950 6537 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 6538
dd7b81cf
KH
65392000-07-14 Kenichi Handa <handa@etl.go.jp>
6540
0693904a 6541 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 6542 default_face's fontset, not using the default fontset.
0693904a 6543
dd7b81cf
KH
6544 * coding.c (inhibit_iso_escape_detection): New variable.
6545 (syms_of_coding): Make it a Lisp variable.
6546 (detect_coding_iso2022): If inhibit_iso_escape_detection is
6547 nonzero, ignore ISO2022's escape sequence.
6548
d5aa31d8
GM
65492000-07-14 Gerd Moellmann <gerd@gnu.org>
6550
e5acf0ca
GM
6551 * alloca.c (malloc) [emacs]: Define as xmalloc.
6552
bd23a692
GM
6553 * xfns.c (Fx_show_tip): If frame parameters contain a position,
6554 use that instead of the mouse position. Add parameters DX and DY.
6555
6556 * dispextern.h (Fx_show_tip): Adjust number of parameters
6557 in prototype.
6558
9662da0b
GM
6559 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
6560 if HELP is a function, call it with OBJECT and POS as parameters
6561 to get the help to display.
6562 (gen_help_event, kbd_buffer_store_help_event): New functions.
6563 (kbd_buffer_get_event): Construct the Lisp help-event differently.
6564 (read_char): Call show_help_echo with new parameters.
6565
178c5d9c 6566 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
6567 Add prototypes.
6568
6569 * xterm.c (help_echo_object, help_echo_pos): New variables.
6570 (note_mode_line_highlight): Store additional information about the
6571 help-echo in help_echo_object and help_echo_pos. Check both
6572 `local-map' and `keymap' properties for changing the cursor
6573 (note_mouse_highlight): Store additional information about the
6574 help-echo in help_echo_object and help_echo_pos.
6575 (note_tool_bar_highlight): Set help_echo_object to nil and
6576 help_echo_pos to -1.
6577 (XTread_socket): Use gen_help_event instead of filling
6578 input_events manually.
6579 (syms_of_xterm): Staticpro help_echo_object.
6580
6581 * xmenu.c (menu_highlight_callback): Use
6582 kbd_buffer_store_help_event instead of setting up and input_event
6583 structure manually.
6584
6585 * xdisp.c (eval_form): GCPRO argument sexpr.
6586 (call_function): New function.
6587 (handle_single_display_prop): Use call_function and FUNCTIONP
6588 instead of checking whether if font_height is a symbol and
6589 using eval_form.
6590
6591 * eval.c (internal_condition_case_2): New function.
6592
6593 * lisp.h (FUNCTIONP): New macro.
6594 (internal_condition_case_2, call_function): Add prototypes.
6595
d5aa31d8
GM
6596 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
6597 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
6598 Always set `arg' member of input_events.
6599 (construct_menu_click): Unused function removed.
6600
6601 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
6602
6603 * w32term.c (construct_mouse_click, construct_mouse_wheel)
6604 (construct_drag_n_drop, x_scroll_bar_handle_click)
6605 (w32_read_socket): Always set `arg' member of input_events.
6606
6607 * keyboard.c (show_help_echo): Use eval_form. Add comment.
6608
6609 * lisp.h (eval_form): Add prototype.
6610
6611 * xdisp.c (eval_form): Make it externally visible.
6612
0f1a9b23
GM
66132000-07-13 Gerd Moellmann <gerd@gnu.org>
6614
6615 * xterm.c (x_handle_tool_bar_click): Store the frame in the
6616 frame_or_window slot of TOOL_BAR_EVENT input events instead of
6617 consing. For prefix events, store the frame in the `arg' slot of
6618 the event, otherwise store the key there.
6619 (XTread_socket): Instead of consing, use the frame_or_window slot
6620 of HELP_EVENTs for the frame, and the `arg' slot for the help
6621 string.
6622
6623 * xmenu.c (menu_highlight_callback): Store help string in the
6624 `arg' member of the input event; don't cons.
6625 (menubar_selection_callback): Use the `arg' slot of input events
6626 to queue additional information, instead of consing.
6627
6628 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
6629
6630 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
6631 TOOL_BAR_EVENTs.
6632 (w32_read_socket): Adapt to changes in HELP_EVENTs.
6633
6634 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
6635 input events to queue additional information, instead of consing.
6636
6637 * keyboard.c (kbd_buffer_gcpro): Renamed from
6638 kbd_buffer_frame_or_window. Now used for all Lisp objects
6639 referenced from the input queue.
6640 (kbd_buffer_store_event): Always use structure assignment for
6641 copying input events. Record all Lisp objects referenced from
6642 events in kbd_buffer_gcpro.
6643 (kbd_buffer_get_event): Construct Lisp `help-echo' events
6644 differently from input events. Test for prefix menu_bar_events
6645 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
6646 event in kbd_buffer_gcpro to nil.
6647 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
6648 frame_or_window is equal to its arg member as prefix events.
6649 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
6650 used by an input event to nil.
6651 (init_keyboard): Use two times the size of the input queue
6652 for kbd_buffer_gcpro.
6653 (syms_of_keyboard): Likewise.
6654
6655 * emacs.c (handle_USR2_signal, handle_USR1_signal): Use
6656 USER_SIGNAL_EVENT.
6657
6658 * termhooks.h (struct input_event): Add member `arg'.
6659 (MENU_BAR_EVENT): Renamed from menu_bar_event.
6660 (USER_SIGNAL_EVENT): Renamed from user_signal.
6661
6662 * xfaces.c (ASET): Remove definition.
6663
6664 * lisp.h (AREF, ASET, ASIZE): New macros.
6665
6666 * fontset.c (AREF, ASIZE): Remove definitions.
6667
6668 * fns.c (AREF): Remove definition.
178c5d9c 6669
0f1a9b23
GM
6670 * composite.c (AREF): Remove definition.
6671
712eaef2
GM
66722000-07-12 Gerd Moellmann <gerd@gnu.org>
6673
d8ee7803
GM
6674 * dispnew.c (redraw_overlapped_rows): Add missing local.
6675 (scrolling_window): Remove debug code.
6676
712eaef2
GM
6677 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
6678 Before scrolling, turn off a mouse-highlight in the window
6679 being scrolled.
6680
6681 * xterm.c (x_update_window_end): Add parameter
6682 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
6683 redisplay in XTframe_up_to_date.
6684 (x_clear_mouse_face): New function.
6685 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
6686
6687 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
6688 current glyph row.
6689 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
6690 it when any row is written to that contains glyphs highlighted in
6691 mouse-face.
6692 (update_window): Call the window update end hook with new
6693 parameter MOUSE_FACE_OVERWRITTEN_P.
6694 (direct_output_for_insert): Give up if row contains mouse-face.
6695
6696 * dispextern.h (struct redisplay_interface): Add parameter
6697 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
6698 (clear_mouse_face): New function pointer member.
6699
02010917
SM
67002000-07-11 Stefan Monnier <monnier@cs.yale.edu>
6701
6702 * syntax.c (back_comment): Use one switch rather than a few `if's.
6703 Obey open_paren_in_column_0_is_defun_start.
6704 When reverting to the `slow' method, try to nicely handle the case
6705 of nested comments by checking that the comment-starter we found
6706 does indeed match the comment-ender.
6707 (scan_sexps_forward, scan_sexps_forward):
6708 Ignore excessive opening parenthesis rather than throwing an error.
6709
d76c03ea
GM
67102000-07-11 Gerd Moellmann <gerd@gnu.org>
6711
6712 * doc.c (Fsubstitute_command_keys): Handle case that a GC
6713 in Fwhere_is_internal or get_keymap_1 relocates string contents.
6714
6715 * dispnew.c (direct_output_forward_char): Give up if currently
6716 displaying a message instead of the minibuffer contents.
6717
6718 * xterm.c (x_update_window_begin): No need to turn off the mouse
6719 highlight here.
6720 (show_mouse_face): Set the mouse_face_p flag of glyph rows
6721 depending on whether they contain glyphs highlighted in
6722 mouse-face.
6723
6724 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
6725 compare the mouse_face_p flags of both rows.
6726
6727 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
6728
d55ead18
EZ
67292000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
6730
6731 * keyboard.c (show_help_echo): Accept additional parameter
6732 ok_to_overwrite_keystroke_echo.
6733 (read_char): Call show_help_echo with a zero
6734 ok_to_overwrite_keystroke_echo argument.
6735 * keyboard.h (show_help_echo): Update prototype of
6736 show_help_echo.
6737 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
6738 ok_to_overwrite_keystroke_echo argument.
6739 * w32menu.c (w32_menu_display_help): Call show_help_echo with
6740 non-zero ok_to_overwrite_keystroke_echo argument.
6741
df75b1a3
GM
67422000-07-10 Gerd Moellmann <gerd@gnu.org>
6743
4b92c49a
GM
6744 * xdisp.c (try_window_id): If changes are all below what is
6745 displayed in the window, and point is in the window, we still
6746 might have to find point on the display.
6747
6748 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
6749 glyphs instead of a single one.
6750 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
6751 with new argument list.
6752 (x_set_glyph_string_gc): Make sure the face's GC is valid.
6753
df75b1a3
GM
6754 * keymap.c (get_keymap_1): Add comment that this function can GC.
6755 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
6756 comment that functions can GC.
6757 (Fset_keymap_parent): GCPRO arg KEYMAP.
6758
4314cf3e
EZ
67592000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
6760
6761 * msdos.c (XMenuActivate): After exiting the menu, restore the
6762 echo area message and erase it.
6763
ab49ce15
KH
67642000-07-10 Kenichi Handa <handa@etl.go.jp>
6765
6766 * fontset.c (Ffontset_info): Make the return value more compatible
6767 with that of Emacs 20.
6768
090a072f
GM
67692000-07-07 Gerd Moellmann <gerd@gnu.org>
6770
6771 * eval.c (Fsignal): Handle case that backtrace_list is null.
6772
f92de4a6
KH
67732000-07-07 Kenichi Handa <handa@etl.go.jp>
6774
6775 * ccl.c (Fccl_execute): Typo fixed.
6776
dd8888a1
GM
67772000-07-06 Gerd Moellmann <gerd@gnu.org>
6778
e5c81191 6779 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 6780
dd8888a1
GM
6781 * window.c (Fwindow_list): Reverse list at the end.
6782 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
6783 means allow windows on OWINDOW's frame, only.
6784 (window_loop): Simplified; use Fwindow_list.
6785
6786 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
6787
485266d0
GM
67882000-07-05 Gerd Moellmann <gerd@gnu.org>
6789
6790 * xterm.c (XTread_socket): Increment handling_signal at the start,
6791 decrement it at the end.
6792
6793 * eval.c (handling_signal): New variable.
6794 (Fsignal): Abort if handling_signal is non-zero.
6795
6796 * lisp.h (handling_signal): External declaration.
178c5d9c 6797
485266d0
GM
6798 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
6799
80fcd514
KR
68002000-07-05 Ken Raeburn <raeburn@gnu.org>
6801
6802 Sound support for NetBSD through "Linux emulation" support:
6803 * config.in (HAVE_SOUNDCARD_H): Undef.
6804 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
6805 * Makefile.in (LIBSOUND): New variable.
6806 (LIBES): Include it.
6807 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and
6808 <soundcard.h>.
6809 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined
6810 elsewhere.
6811 (vox_open): Use DEFAULT_SOUND_DEVICE.
6812 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
6813
d5c5cddd
GM
68142000-07-05 Gerd Moellmann <gerd@gnu.org>
6815
6816 * print.c (print_error_message): If Vsignaling_function is set,
6817 show it in *Messages*.
6818
6819 * lisp.h (Vsignaling_function): External declaration.
6820
6821 * eval.c (Vsignaling_function): New variable.
6822 (Fsignal): Compute it.
6823 (syms_of_eval): Staticpro it.
6824
65171e3a
DL
68252000-07-05 Dave Love <fx@gnu.org>
6826
6827 * syswait.h: Use the autoconf recommended approach. Old code
6828 #if'd out in case we need to revert.
6829
178c5d9c 6830 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 6831
e2c46326
AI
68322000-07-05 Andrew Innes <andrewi@gnu.org>
6833
6834 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
6835 when non-NULL instead of __morecore, to take account of buffer
6836 memory. This also solves a problem with spurious memory warnings
6837 on Windows.
6838
6839 * ralloc.c: Make real_morecore non-static.
6840
6841 * eval.c (internal_condition_case): Comment out abort if
6842 interrupt_input_blocked is not zero.
6843
6844 * makefile.nt: Add support for `bootstrap' and related targets.
6845 Include minimal debug info in emacs.exe in release build.
6846 Remove all dependencies on lisp.h, and fixup some others.
6847
6848 * w32.c (init_environment): Install code from 20.7 for providing
6849 default values for environment variables, based on the
6850 executable's own location.
6851 (map_w32_filename): Handle filenames that are longer than
6852 MAX_PATH.
6853 (sys_socket): Install socket inheritance bug fix from 20.7.
6854
6855 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
6856 here via blockinput.h).
6857
a027a91b
SM
68582000-07-05 Stefan Monnier <monnier@cs.yale.edu>
6859
e4b31601
SM
6860 * w32menu.c (w32_menu_display_help):
6861 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
6862
6863 * keyboard.h (show_help_echo): Declare.
6864
6865 * keyboard.c (show_help_echo): New function, extracted from read_char.
6866 Feval its `msg' argument if it's a cons cell.
6867 (read_char): Use it.
4cf8d9d5 6868 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 6869
178c5d9c 6870 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 6871 (note_tool_bar_highlight, XTread_socket):
178c5d9c 6872 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
6873 (dos_rawgetc):
6874 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
6875 (note_tool_bar_highlight, w32_read_socket):
6876 Do not gratuitously ignore non-string `help-echo' properties.
6877
88d75730
GM
68782000-07-05 Gerd Moellmann <gerd@gnu.org>
6879
969f7e79
GM
6880 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
6881
71201b00
GM
6882 * window.c (delete_all_subwindows): Reset Vwindow_list.
6883
88d75730
GM
6884 * xterm.c (x_append_glyph, x_append_composite_glyph)
6885 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
6886 changes in struct glyph starting 1999-12-27. Some bit-fields of
6887 struct glyph were not set, which made glyphs unequal when compared
6888 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
6889 effects were the result. This also depended on the contents of
6890 memory returned by xmalloc. If flickering happens again, activate
6891 the code in clear_glyph_row that's in #if 0. If the flickering is
6892 gone with that, chances are that it is caused by something
6893 similar.
6894
6895 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 6896
88d75730
GM
6897 * dispextern.h: Add some comments.
6898
6899 * window.c (add_window_to_list): Add parameter LIST.
6900 (window_list): Order list so that, for each frame, windows are
6901 in canonical order, and so that frames appear in the list in
6902 the order given by Vframe_list.
6903 (next_window): Reverse the handling of NEXT_P.
6904
53654733
GM
69052000-07-04 Gerd Moellmann <gerd@gnu.org>
6906
87efd256
GM
6907 * window.c (Vwindow_list): New variable.
6908 (make_window, delete_window): Set Vwindow_list to nil.
6909 (check_window_containing): New function.
6910 (window_from_coordinates): Rewritten.
6911 (add_window_to_list, window_list, candidate_window_p)
6912 (decode_next_window_args, next_window): New functions.
6913 (Fnext_window, Fprevious_window): Rewritten in terms of
6914 next_window.
6915 (Fwindow_list): New function.
6916 (Fother_window): Cleaned up.
6917 (foreach_window): Add a longer "variable argument list". Let
6918 callback function return 0 to indicate that cycling over windows
6919 should stop.
6920 (foreach_window_1): Likewise.
6921 (freeze_window_start): Return int.
6922 (init_window): New function.
6923 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
6924
6925 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
6926 input_event with bzero.
6927 (main): Call init_window.
6928
53654733
GM
6929 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
6930 a menu filter.
6931
4a8c194f
KH
69322000-07-04 Kenichi Handa <handa@etl.go.jp>
6933
6934 * composite.h (make_composition_value_copy): Extern it.
6935
6936 * composite.c (make_composition_value_copy): New function.
6937
6938 * editfns.c (Fformat): While copying text properties, make each
6939 composition property value a copy.
6940
6941 * fns.c (concat): While copying text properties, make each
6942 composition property value a copy.
6943
831a6cb0
GM
69442000-07-03 Gerd Moellmann <gerd@gnu.org>
6945
2f516940
GM
6946 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
6947
178c5d9c 6948 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
6949 marked already.
6950
831a6cb0
GM
6951 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
6952 include those frames as candidates which have their focus
6953 redirected to the minibuffer frame.
6954
d9c4f922
SM
69552000-07-03 Stefan Monnier <monnier@cs.yale.edu>
6956
6957 * fns.c (Fputhash): Return `value' rather than nil.
6958
3780bc22
GM
69592000-06-30 Gerd Moellmann <gerd@gnu.org>
6960
97d176db
GM
6961 * frame.c (next_frame): Don't check focus redirection in case
6962 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
6963 unless their focus is redirected, which contradicts the
6964 specification of next-frame, and leads to infinite loops in
6965 certain situations when cycling through windows with next-window.
6966
dca9961d
KH
69672000-06-30 Kenichi Handa <handa@etl.go.jp>
6968
6969 * coding.c (code_convert_region): Even if the length of text is
6970 zero, try to convert it if coding->type is coding_type_ccl.
6971 (decode_coding_string, encode_coding_string): Likewise.
6972
d5483ab1
GM
69732000-06-28 Gerd Moellmann <gerd@gnu.org>
6974
af5c25e1 6975 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 6976 the display if windows_or_buffers_changed.
af5c25e1
GM
6977
6978 * dispnew.c (struct row_entry): New structure.
6979 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
6980 (row_table_size, old_lines, new_lines, old_lines_size)
6981 (new_lines_size, run_pool, runs_size, runs): New variables.
6982 (add_row_entry): New function.
6983 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 6984 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
6985 holding them in local variables. Use a larger hash table whose
6986 size depends on glyph matrix sizes. Don't use bzero to clear the
6987 hash table; instead, clear used slots only.
6988
6989 * fns.c (next_almost_prime): Make it externally visible.
6990
6991 * lisp.h (next_almost_prime): Add prototype.
6992
d5483ab1
GM
6993 * s/isc4-0.h (sigunblock): Define.
6994
6995 * s/sco5.h (sigunblock): Define.
6996
93e40f40
DL
69972000-06-27 Dave Love <fx@gnu.org>
6998
6999 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
7000 (moved to osf5-0.h).
7001 [!NOT_C_CODE]: Protect string.h stuff.
7002
7003 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
7004 (sys_siglist, NSIG): Definitions moved here from osf1.h.
7005
3c4b7685
GM
70062000-06-27 Gerd Moellmann <gerd@gnu.org>
7007
97d176db 7008 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
7009 below the last line from the needed window height.
7010
32cad0aa
SM
70112000-06-26 Stefan Monnier <monnier@cs.yale.edu>
7012
7013 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
7014 (Fwidget_get): Use it.
7015 (syms_of_fns): Defsubr it.
7016
2c69ced2
GM
70172000-06-26 Gerd Moellmann <gerd@gnu.org>
7018
178c5d9c 7019 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
7020 display info for XIM.
7021 (xim_open_dpy): Likewise.
7022 (xim_close_dpy): Don't free the display info's XIM.
7023
7024 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
7025
7026 * config.in (USE_XIM): New define.
7027
3fc720e4
GM
7028 * keymap.c (get_keyelt): For menu-items containing a `:filter
7029 FILTER', apply FILTER to the menu-item's definition to get the
7030 real definition to use.
7031
7032 * lisp.h (QCfilter): External declaration.
7033
2c69ced2
GM
7034 * xfns.c (Fimage_size): New function.
7035 (syms_of_xfns): Defsubr it.
7036
f978b2a2
AS
70372000-06-26 Andreas Schwab <schwab@suse.de>
7038
7039 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
7040 Fstring_as_unibyte.
7041
94cc7892
DL
70422000-06-25 Dave Love <fx@gnu.org>
7043
7044 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag,
7045 tgetnum.
7046
7047 * Makefile.in (blockinput.h): Depend on atimer.h.
7048 (atimer.h): Depend on systime.h.
7049
7050 * blockinput.h: Protect against multiple inclusion. Include
7051 atimer.h.
7052
7053 * atimer.h: Protect against multiple inclusion. Include
7054 systime.h.
7055
7056 * lisp.h (swap_in_global_binding): Declare.
7057
b8c24556
KR
70582000-06-24 Ken Raeburn <raeburn@gnu.org>
7059
7060 * process.c (Fopen_network_stream): Turn off atimers for duration
7061 of call to connect. (Patch from Gerd.)
7062
8cf8560b
DL
70632000-06-23 Dave Love <fx@gnu.org>
7064
511c7541
DL
7065 * ralloc.c: Maybe include unistd.h
7066
8cf8560b
DL
7067 * emacs.c (setgrp): Undefine before defining.
7068 (malloc_warning, set_time_zone_rule, index): Prototype.
7069
7070 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
7071 HAVE_STRUCT_TIMEZONE.
7072
7073 * s/osf1.h: Move string.h hack here from alpha.h and make it
7074 conditional.
7075 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
7076 _XOPEN_SOURCE.
7077 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
7078 (SOCKLEN_TYPE): Don't define.
7079
7080 * m/alpha.h: Remove string.h hack.
7081
7082 * s/osf5-0.h: New file.
7083
7084 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
7085 include time.h, done by systime.h.
7086 [__FreeBSD__]: Remove redundant includes.
7087
3fc720e4 7088 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
7089 (delete_temp_file): Return Qnil to avoid warning.
7090
7091 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
7092
7093 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
7094 HAVE_X_WINDOWS.
7095
7096 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
7097
7098 * composite.h (compose_text): Declare.
7099
7100 * xterm.c: Don't include sys/types.h unconditionally. Don't
7101 protect its inclusion with !USG (following xmenu.c).
7102
ea055732
GM
71032000-06-23 Gerd Moellmann <gerd@gnu.org>
7104
7105 * xfns.c (x_create_tip_frame): Initialize frame's colors like
7106 in x_create_frame.
7107
74b01b80
EZ
71082000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
7109
7110 * coding.c (decode_eol_post_ccl): Special handling for undecided
7111 and inconsistent EOL types.
7112
64f3a166
GM
71132000-06-22 Gerd Moellmann <gerd@gnu.org>
7114
16cf31f7
GM
7115 * xrdb.c (x_load_resources): Add default resource for scroll bar's
7116 trough color and main window's background color.
7117
178c5d9c 7118 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events
16cf31f7
GM
7119 differently.
7120
7121 * xterm.h (Xt_app_con): External declaration.
7122
7123 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 7124
486a103d
GM
7125 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
7126
64f3a166
GM
7127 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
7128 (handle_invisible_prop): Record the start of invisible text in
7129 it->add_overlay_start.
7130 (struct overlay_entry): Add member `overlay'.
7131 (handle_overlay_change): Simplify.
7132 (next_overlay_string): After having processed overlay strings at the
7133 end of the buffer, record that fact in
7134 it->overlay_strings_at_end_processed_p.
7135 (compare_overlay_entries): If before- and after-strings come
7136 from the same overlay, let before-strings come first.
7137 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
7138 (load_overlay_strings): Take it->add_overlay_start into account
7139 when adding overlay strings.
7140
7141 * dispextern.h (struct it): Add member add_overlay_start.
7142
bb746ea6
DL
71432000-06-22 Dave Love <fx@gnu.org>
7144
7145 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
7146
7147 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
7148
a8f573f3
KH
71492000-06-22 Kenichi Handa <handa@etl.go.jp>
7150
7151 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
7152 is greater than 0.
7153
9f2bbc92
DL
71542000-06-21 Dave Love <fx@gnu.org>
7155
178c5d9c 7156 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 7157
3ee5041c
SM
71582000-06-21 Stefan Monnier <monnier@cs.yale.edu>
7159
7160 * syntax.c (back_comment): Simplify string-parity counting (with
7161 the added benefit of handling multiple string-styles as long as
7162 they are not intertwined).
7163 Jump to the slow code as soon as a comment starter is found in
7164 a "string_lossage" position. Fixes the case: " /* " /* " */.
7165
4c343001
DL
71662000-06-21 Dave Love <fx@gnu.org>
7167
7168 * Makefile.in: Use GETLOADAVG_LIBS.
7169
7170 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
7171 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
7172
e6365855
SM
71732000-06-20 Stefan Monnier <monnier@cs.yale.edu>
7174
7175 * syntax.c (describe_syntax): Recognize the `n'estable bit.
7176 (Fforward_comment, scan_lists):
7177 Check the comstyle of single-char comment-starters.
7178 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
7179 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
7180 Check the comstyle of single-char comment-starters.
7181 Clarify control-flow around the Scomment case.
e6365855 7182
5700d2cc
DL
71832000-06-20 Dave Love <fx@gnu.org>
7184
d355bd8a
SM
7185 * fns.c (make_hash_table, maybe_resize_hash_table):
7186 Cast arg of next_almost_prime.
5700d2cc 7187
178c5d9c 7188 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
7189
7190 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
7191 and unistd.h.
7192
4a27bdfb
GM
71932000-06-20 Gerd Moellmann <gerd@gnu.org>
7194
a61d762c
GM
7195 * keyboard.c (adjust_point_for_property): Check if display
7196 property should be treated as intangible by looking at its
7197 value.
7198
178c5d9c 7199 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
7200 (display_prop_intangible_p): New functions.
7201
7202 * dispextern.h (display_prop_intangible_p): Add prototype.
7203
7204 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 7205
4a27bdfb
GM
7206 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
7207 argument to sigprocmask.
7208
7209 * s/sco5.h (sigblock): Redefined to pass a pointer as second
7210 argument to sigprocmask.
7211
7212 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
7213 sigprocmask_set, and pass a pointer to it to sigprocmask.
7214
7215 * sysdep.c (sigprocmask_set): New variable.
7216
7217 * fileio.c (make_temp_name): Don't use `%s' in string passed to
7218 report_file_error.
7219
427ec082
SS
72202000-06-20 Sam Steingold <sds@gnu.org>
7221
7222 * xrdb.c: Don't declare xmalloc, xrealloc.
7223
8972fe79 72242000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
7225
7226 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
7227 (re_comp): Cast gettext return value to avoid complaints when
7228 !HAVE_LIBINTL.
7229
074b6efe
DL
72302000-06-20 Dave Love <fx@gnu.org>
7231
f85c008a
DL
7232 * m/stride.h, m/mips.h: Don't define HAVE_GETWD,
7233 HAVE_GETTIMEOFDAY.
7234
5700d2cc 7235 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 7236
d355bd8a 7237 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
7238
7239 * m/alpha.h: Don't declare xmalloc, xrealloc.
7240
0af4f205
DL
7241 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
7242
7243 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
7244
7245 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
7246
7247 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
7248 HAVE_GETWD.
7249
074b6efe
DL
7250 * keyboard.h (poll_for_input_1): Declare.
7251
7252 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
7253
7254 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
7255
7256 * doprnt.c: Don't declare xmalloc, xrealloc.
7257
7258 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
7259 (getenv, ctime, getwd): Removed.
7260 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
7261
7262 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
7263 x_set_tool_bar_lines.
7264
7265 * config.in: Add HAVE_GETWD. Move some definitions above
7266 machine/system includes.
7267
68a5e97b
KH
72682000-06-20 Kenichi Handa <handa@etl.go.jp>
7269
95417e1e
KH
7270 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
7271
68a5e97b
KH
7272 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
7273 contain information about ENCODING.
7274
7275 * fontset.c (FONTSET_ASCII): Use the first element of char table
7276 for an ASCII font, not defalt slot.
7277 (fontset_ref_via_base): If FONTSET doesn't contain information for
7278 C, try the default fontset.
7279 (make_fontset): Don't copy the default fontset.
7280 (fontset_font_pattern): Likewise.
7281 (accumulate_font_info): If ELT is nil, use the corresponding
7282 element in the default fontset.
7283
3b4fa1b2
DL
72842000-06-19 Dave Love <fx@gnu.org>
7285
943e731c
DL
7286 * syntax.c (Fparse_partial_sexp): Doc fix.
7287
7288 * regex.h: Test PROTOTYPES as well as __STDC__.
7289
3b4fa1b2
DL
7290 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
7291 errno, strerror. Put text after #endif in comment.
7292
7293 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for
7294 pcc).
7295
7296 * xterm.c (x_frame_of_widget): Likewise.
7297
cdf0357b
GM
72982000-06-19 Gerd Moellmann <gerd@gnu.org>
7299
7300 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
7301 to Vfundamental_mode_abbrev_table.
7302
7303 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
7304 bogus objects are marked. This slows down GC by ~80 percent, but
7305 it might be worth trying when debugging GC-related problems.
7306 This feature requires conservative stack marking to be enabled.
7307
7308 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
7309 returns XLookupChars, reset `modifiers' to zero.
7310
998e9f8c
DL
73112000-06-19 Dave Love <fx@gnu.org>
7312
7313 * mktime.c: Unprotoized.
7314
18e21ce8 73152000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
7316
7317 * data.c (set_internal): If variable is frame-local,
7318 store the new value immediately into the frame parameter alist.
7319
140c4ac6
KR
73202000-06-19 Ken Raeburn <raeburn@gnu.org>
7321
14358466
KR
7322 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
7323 in the custom handler pointer.
7324
140c4ac6
KR
7325 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
7326 value, or checks for CHAR_META can fail when Lisp_Object is a
7327 union type.
7328 * keymap.c (get_keyelt): Likewise.
7329
10d7bf84
KH
73302000-06-19 Kenichi Handa <handa@etl.go.jp>
7331
7332 * ccl.h (struct ccl_program): New member eol_type.
7333 (struct ccl_spec): New member cr_carryover.
7334
7335 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
7336 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
7337
7338 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
7339 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
7340 (decode_eol_post_ccl): New function.
7341 (decode_coding): Don't detect EOL format here for CCL based coding
7342 systems.
7343 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
7344 decode_eol_post_ccl after running the CCL program.
7345 (code_convert_region): Don't detect EOL format here for CCL based
7346 coding systems.
7347 (decode_coding_string): Likewise.
7348
52e386c2
KR
73492000-06-18 Ken Raeburn <raeburn@gnu.org>
7350
7351 * charset.c (update_charset_table): Use XINT on "iso_final_char"
7352 when treating it as an integer.
7353
7354 * coding.h (encode_coding_string): Declare.
7355
7356 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
7357 it as an integer.
7358
7359 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
7360 "xkeymap" to avoid shadowing the "enum map_type" value that needs
7361 to be passed to get_local_map.
7362
7363 * sound.c (Fplay_sound): Don't call make_number on
7364 Frun_hook_with_args count argument.
7365
7366 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
7367 for lisp objects in X event structure data field, when lisp
7368 objects are represented with unions.
7369 (x_scroll_bar_to_input_event): Ditto.
7370
b357b9d4
KR
73712000-06-16 Ken Raeburn <raeburn@gnu.org>
7372
7373 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
7374 termination of string. Fix sense of test whether
7375 Vline_number_display_limit is an integer.
b357b9d4 7376
a871441d
GM
73772000-06-16 Gerd Moellmann <gerd@gnu.org>
7378
a9021acd
GM
7379 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
7380 only if HAVE_X_WINDOWS.
7381
6344985d
GM
7382 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
7383 of titles.
7384
427ec082 7385 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
7386 out of bounds.
7387
228b083e
EZ
73882000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
7389
7390 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
7391 of its headers.
7392
c25b53a2
KH
73932000-06-15 Kenichi Handa <handa@etl.go.jp>
7394
7395 * coding.c (decode_coding_emacs_mule): Always set src_base at the
7396 start of the while loop.
7397
a6981b11
GM
73982000-06-15 Gerd Moellmann <gerd@gnu.org>
7399
e9924e52
GM
7400 * atimer.c (alarm_signal_handler): Add forward declaration.
7401
a6981b11
GM
7402 * data.c (set_internal): Remove debug code.
7403
25fa6deb
GM
74042000-06-14 Gerd Moellmann <gerd@gnu.org>
7405
dce6b995
GM
7406 * Makefile.in (bootstrap-temacs): Add `-I../src'.
7407
9f817ea4
GM
7408 * unexec.c (toplevel) [COFF]: Include coff.h.
7409
7410 * s/lynxos.h: New file.
7411
7412 * keymap.c (Fsingle_key_description): Enclose function key and
7413 event symbol names in angle brackets.
7414
8a4e3c0c
GM
7415 * xdisp.c (setup_echo_area_for_printing): Call
7416 message_log_maybe_newline if message_buf_print is not set.
7417
7418 * print.c (printchar, strout): Don't check message_buf_print
427ec082 7419 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
7420 function does something useful even when message_buf_print is
7421 already set.
7422
25fa6deb
GM
7423 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines): New
7424 variables.
7425 (ensure_echo_area_buffers): Initialize echo buffer's
7426 truncate lines setting to nil.
7427 (with_echo_area_buffer): Don't set the echo buffer's truncate
7428 lines setting here.
8a4e3c0c 7429 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
7430 of message_truncate_lines.
7431 (resize_mini_window): Handle case that lines are truncated.
7432 (syms_of_xdisp): Initialize Qmessage_truncate_lines. DEFVAR_BOOL
7433 message-truncate-lines.
7434
7435 * keyboard.c (read_char): Bind message-truncate-lines to t
7436 while displaying a help-echo.
7437
7438 * lisp.h (Qmessage_truncate_lines): External declaration.
7439
163dcff3
GM
74402000-06-13 Gerd Moellmann <gerd@gnu.org>
7441
1681ead6
GM
7442 * xdisp.c (Vline_number_display_limit): Renamed from
7443 line_number_display_limit.
7444 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
7445 Extend documentation string. Initialize
7446 Vline_number_display_limit to nil meaning no limit.
7447 (decode_mode_spec): Use Vline_number_display_limit with its new
7448 meaning.
7449
163dcff3
GM
7450 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
7451
18e21ce8 74522000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
7453
7454 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 7455
163dcff3
GM
7456 * xfns.c (x_set_frame_parameters): Comment fix.
7457
7458 * frame.c (store_frame_param): Call swap_in_global_binding if the
7459 variable's current binding was chosen based on this frame.
7460
7461 * data.c (swap_in_global_binding): New function.
7462
a704139d
EZ
74632000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
7464
7465 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
7466 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
7467
9b6610db
EZ
74682000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
7469
7470 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
7471
c68833d2
JR
74722000-06-12 Jason Rumney <jasonr@gnu.org>
7473
7474 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
7475
7476 * w32.h (EMACS_W32_H): Renamed from _NT_H_
7477
7478 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
7479
7480 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
7481
ed1056b3
GM
74822000-06-12 Gerd Moellmann <gerd@gnu.org>
7483
7484 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
7485 (syms_of_xfaces): Defsubr Sdump_colors.
7486 (x_free_colors): Don't treat b&w specially on default visual.
7487 (x_free_dpy_colors): New function.
7488 (free_face_colors): Don't check visual class; it's done
7489 in x_free_colors.
7490
7491 * xterm.c (x_frame_of_widget): New function.
7492 (x_alloc_nearest_color_for_widget): Use it.
7493 (x_copy_dpy_color): New function.
7494 (x_destroy_window): Free various colors.
7495
5050a2ef
KH
74962000-06-12 Kenichi Handa <handa@etl.go.jp>
7497
7498 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
7499
7500 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
7501
7502 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
7503
7504 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
7505
7506 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
7507
fb1b041d
DL
75082000-06-11 Dave Love <fx@gnu.org>
7509
7510 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
7511
ff96b5f4
EZ
75122000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
7513
7514 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
7515
db8eeecd
GM
75162000-06-11 Gerd Moellmann <gerd@gnu.org>
7517
ed1056b3 7518 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
7519 to `XEvent *'.
7520
49b71c5f
KH
75212000-06-10 Kenichi Handa <handa@etl.go.jp>
7522
c479bd55
KH
7523 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
7524 (regex_compile): Fix the code for handling the case of single byte
7525 char and multibyte char being mixed in a range within [...].
7526
ff6a65c2
KH
7527 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
7528 and dst_multibyte members of coding.
7529
49b71c5f
KH
7530 * charset.c (update_charset_table): Update the table
7531 bytes_by_char_head.
7532 (init_charset_once): Initialize elements of bytes_by_char_head to
7533 1 except for leading codes for private charases.
7534
7535 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
7536 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte
7537 sequence.
7538
9e80b57d
KR
75392000-06-09 Ken Raeburn <raeburn@gnu.org>
7540
7541 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
7542 access the data it doesn't point to.
7543
f83fe4b4
GM
75442000-06-08 Gerd Moellmann <gerd@gnu.org>
7545
7546 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 7547 will be translated to a switch-frame event when reading the
f83fe4b4
GM
7548 event queue. This is necessary because Emacs otherwise won't
7549 perform a switch-frame to a new frame until some other event, for
7550 example a keystroke event, forces it to do so. This has various
7551 effects, one visible being that the cursor of a frame created with
7552 C-x 5 2 or switched to with a window manager key binding like
7553 A-TAB stays hollow because selected_window isn't on the newly
7554 focused frame until the switch-frame is performed.
7555
7556 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
7557 generating a switch-frame event if necessary.
7558
7559 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
7560
7561 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
7562 it's an integer.
7563
0890801b
KH
75642000-06-08 Kenichi Handa <handa@etl.go.jp>
7565
7566 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a
7567 charset.
7568
173cbca8
GM
75692000-06-07 Gerd Moellmann <gerd@gnu.org>
7570
3091c2a6
GM
7571 * window.c (displayed_window_lines): Take empty lines at
7572 the bottom of a window into account.
427ec082 7573
f38952fe
GM
7574 * window.c (displayed_window_lines): New function.
7575 (Fmove_to_window_line): Use displayed_window_lines to determine
7576 the number of lines to move, instead of using the window's height.
7577
7578 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
7579 to stop reading, even if the form read sets point to a different
7580 value when evaluated.
7581
427ec082 7582 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
7583 put the cursor.
7584
6ba6c818
KH
75852000-06-07 Kenichi Handa <handa@etl.go.jp>
7586
7587 * fileio.c (e_write): Free composition data if stored in
7588 coding->cmp_data.
7589
5f1aea9a
GM
75902000-06-06 Gerd Moellmann <gerd@gnu.org>
7591
666852af
GM
7592 * xdisp.c (display_line): Set row's and iterator's
7593 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
7594 Set cursor even if row ends in the middle of a character.
7595 (dump_glyph_row): Print values of new flags.
7596 (redisplay_window) <cursor movement in unchanged window>: When
7597 point has been moved forward, and PT is at the end of the cursor
7598 row, don't place the cursor in the next row if the cursor row ends
7599 in the middle of a character or at ZV.
7600
7601 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
7602 (struct glyph_row): Add starts_in_middle_of_char_p and
7603 ends_in_middle_of_char_p.
7604 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
7605 ends_in_middle_of_char_p flag.
7606 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
7607
d13f3e2e
GM
7608 * term.c (append_glyph): Revert change of 2000-06-06.
7609
7610 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
7611 padding glyph not fitting on line as whole character not
7612 fitting on line.
7613
5f1aea9a
GM
7614 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
7615 this isn't true for images with `:ascent 100'.
7616
10cda9b0
KH
76172000-06-06 Kenichi Handa <handa@etl.go.jp>
7618
ed00559d
KH
7619 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
7620 as modified if it is originally unmodified.
7621
10cda9b0
KH
7622 * term.c (encode_terminal_code): Change the way to check if
7623 terminal coding does any conversion.
7624 (append_glyph): Set glyph->pixel_width correctly.
7625
7626 * xdisp.c (display_line): While checking line continuation, pay
7627 attention to a padding glyph.
7628
1969fae2
GM
76292000-06-05 Gerd Moellmann <gerd@gnu.org>
7630
7631 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
7632
162ccef4
DL
76332000-06-05 Dave Love <fx@gnu.org>
7634
f19f32dd
DL
7635 * xdisp.c: Include fontset.h.
7636
7637 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
7638
7639 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
7640
7641 * dispnew.c: Conditionally include term.h.
7642
7643 * coding.h: Declare code_convert_string_norecord.
7644
7645 * frame.h (struct frame): Use volatile unconditionally.
7646
7647 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
7648
7649 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
7650
7651 * systime.h: Protect against multiple inclusion.
7652 (timezone) [USG5_4]: Define as time_t.
7653
7654 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
7655 (Foptimize_char_table, make_temp_name): Declare.
7656
7657 * Makefile.in (xdisp.o): Depend on fontset.h.
7658
7659 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
7660
7661 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
7662 (Foptimize_char_table, make_temp_name): Declare.
7663
427ec082 7664 * s/irix4-0.h:
162ccef4
DL
7665 * s/irix5-0.h:
7666 * s/netbsd.h: Don't define autoconfiscated MATHERR.
7667
2082fe81
DL
76682000-06-02 Dave Love <fx@gnu.org>
7669
7670 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
7671
dcf671d2
GM
76722000-06-02 Gerd Moellmann <gerd@gnu.org>
7673
7674 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 7675 result face, set flags in that face indicating that colors may not
dcf671d2
GM
7676 be freed.
7677
7678 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
7679 glyph, use the ASCII NUL character to determine the face.
7680
d42122a3
DL
76812000-06-02 Dave Love <fx@gnu.org>
7682
7683 * sysdep.c: Conditionally include stdlib.h, unistd.h.
7684 (VFORK_RETURN_TYPE): Remove.
427ec082 7685
d42122a3
DL
7686 * config.in: Add NO_MATHERR.
7687
dd432f16
DL
76882000-06-01 Dave Love <fx@gnu.org>
7689
90aa4ea8
DL
7690 * cmds.c (internal_self_insert): Don't check
7691 Vbefore_change_function, Vafter_change_function.
7692
7693 * insdel.c (signal_before_change, signal_after_change): Likewise.
7694
7695 * buffer.c (Vbefore_change_function, Vafter_change_function):
7696 Variables and their initializations deleted.
7697
2330c9d4
DL
7698 * callint.c (Fcall_interactively): Doc fix.
7699
dd432f16
DL
7700 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
7701
bf9e8804
DL
77022000-05-31 Dave Love <fx@gnu.org>
7703
7704 * textprop.c: Revert last change -- duplicated.
7705
3694b4ab
GM
77062000-05-31 Gerd Moellmann <gerd@gnu.org>
7707
7708 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
7709 in #if 0.
7710
7711 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
7712
f14156cd
JR
77132000-05-31 Jason Rumney <jasonr@gnu.org>
7714
8119aab8
JR
7715 * search.c (Fre_search_forward, Fre_search_backward)
7716 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
7717
f14156cd
JR
7718 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
7719
4aab9be3
JR
77202000-05-30 Jason Rumney <jasonr@gnu.org>
7721
7722 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
7723 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
7724
7725 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type
7726 member.
7727
7728 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
7729 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
7730 expand a nil default_filename.
7731
7732 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
7733 pointer to glyph_to_pixel_coords, not a frame.
7734
7735 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
7736 coding.h to dependencies.
7737
7738 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
7739
7740 * w32console.c (glyph_to_pixel_coords): Change first parameter to
7741 window pointer to be consistent with w32term.c and xterm.c.
7742
7743 * w32fns.c: Format and doc changes to bring closer to xfns.c.
7744 (VIETNAMESE_CHARSET): Define if not defined in system headers.
7745 (Qline_spacing, Qcenter): New variables.
7746 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
7747 (x_set_line_spacing): New function.
7748 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT
7749 macros.
7750 (x_specified_cursor_type): New function.
7751 (x_set_cursor_type): Use it.
7752 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
7753 and icon strings.
7754 (validate_x_resource_name, x_get_resource_string): Measure lengths
7755 of external strings in bytes.
7756 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
7757 GetTextExtentPoint32 with NULL title.
7758 (Fx_create_frame): Initialize Qline_spacing.
7759 (w32_load_system_font): Initialize font->double_byte_p.
7760 (x_to_w32_charset): Use Vw32_charset_info_alist.
7761 (Image, busy cursor, tooltip functions): Merged changes from
7762 xfns.c. Not yet functional on Windows.
7763
7764 * w32gui.h (W32FontStruct): Add double_byte_p member.
7765
7766 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
7767 (emacs_button_translation): Use it.
7768 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
7769 in `mask' to be set.
7770
7771 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
7772 menu strings.
7773
7774 * w32term.c: Format and doc changes to bring closer to xterm.c.
7775 (w32_char_font_type): New enum.
7776 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
7777 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
7778 (w32_encode_char): New function.
7779 (x_encode_char): Removed.
7780 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
7781 x_encode_char and w32_font_is_double_byte.
7782 (x_produce_image_glyph): Use image_ascent.
7783 (x_produce_glyphs): Use new version of w32_per_char_metric and
7784 handle NULL return value. Allow extra line spacing.
7785 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
7786 (w32_get_glyph_overhangs): Remove unicode_p param. Use
7787 w32_font_type member of glyph instead.
7788 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
7789 (fast_find_position): Make sure not to consider rows not visible
7790 in the window.
7791 (w32_read_socket) [WM_MENUSELECT]: Cannot call
7792 w32_menu_display_help with input blocked, as it can abort.
7793 (x_display_and_set_cursor): Choose cursor depending
7794 on buffer-local value of cursor_type.
7795 (x_draw_bar_cursor): Add parameter WIDTH.
7796
7797 * w32term.h (CP_DEFAULT): Define.
7798 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
7799
10fc3187
GM
78002000-05-30 Gerd Moellmann <gerd@gnu.org>
7801
7802 * search.c (Fre_search_forward, Fre_search_backward)
7803 (Fposix_search_backward, Fposix_search_forward): Doc fix.
7804
d0555360
KH
78052000-05-30 Kenichi Handa <handa@etl.go.jp>
7806
7807 * coding.c (detect_coding_iso2022): Fix code for checking
7808 CODING_CATEGORY_MASK_ISO_8_2.
7809
f1ad044f
SM
78102000-05-29 Stefan Monnier <monnier@cs.yale.edu>
7811
7812 * regex.c (PREFETCH_NOLIMIT): New function.
7813 (re_match_2_internal): Use it and adjust the end_match_2 logic.
7814
84ec3b4b
GM
78152000-05-29 Gerd Moellmann <gerd@gnu.org>
7816
66254a13
GM
7817 * syntax.c (find_defun_start): Move test for
7818 open_paren_in_column_0_is_defun_start outside of the loop.
7819
49e70dec
GM
7820 * xdisp.c (redisplay_window): Really switch buffers when
7821 displaying mode lines, and temporarily set selected_frame to the
7822 frame of the window that's redisplayed.
7823
84ec3b4b
GM
7824 * xfaces.c (free_realized_faces): Block/unblock input.
7825 (free_realized_multibyte_face): Ditto.
7826
869a3a14
DL
78272000-05-29 Dave Love <fx@gnu.org>
7828
7829 * textprop.c (Qkeymap): New variable.
7830 (syms_of_textprop): Intern it.
7831
7832 * keymap.c: Include intervals.h.
7833 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
7834
7835 * Makefile.in (keymap.o): Depend on intervals.h.
7836
7837 * keyboard.c (menu_bar_items, tool_bar_items)
7838 (Fexecute_extended_command): Deal with `keymap' property.
7839 (read_key_sequence): Track map from `keymap' property as well as
7840 `local_map'.
7841
7842 * intervals.c (get_local_map): Extra arg to allow looking for
7843 `keymap' too.
7844
7845 * intervals.h (map_property): New enum.
7846 (get_local_map): Extra arg using it.
7847 (Qkeymap): Declare.
7848
84ec3b4b 7849 * lisp.h (get_local_map): Don't declare here.
869a3a14 7850
89d0c844
KH
78512000-05-29 Kenichi Handa <handa@etl.go.jp>
7852
7853 * Makefile.in (callproc.o): Depend on composite.h.
7854
7855 * callproc.c: Include composite.h.
7856 (Fcall_process): Handle composition correctly.
7857
7858 * coding.h (coding_allocate_composition_data): Extern it.
7859 (coding_restore_composition): Likewise.
7860
7861 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
7862 yet allocated, finish decoding with result
7863 CODING_FINISH_INSUFFICIENT_CMP.
7864 (coding_allocate_composition_data): Make it non-static.
7865 (coding_restore_composition): Likewise.
7866
797a084a
EZ
78672000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
7868
7869 * charset.c (syms_of_charset): Revert last change.
7870
cf872af5
EZ
78712000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
7872
7873 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
7874 charsets as unibyte, with 1-column screen width. Sent by Kenichi
7875 Handa.
cf872af5 7876
5b1ae051
EZ
78772000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
7878
7879 * charset.c (syms_of_charset): Set width of character sets
7880 eight-bit-control and eight-bit-graphic to 1 column.
7881
34ec9ebe
GM
78822000-05-26 Gerd Moellmann <gerd@gnu.org>
7883
7884 * config.in (HAVE_SPEED_T): New define.
7885
7886 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
7887 `extern speed_t'.
7888
dd854dc2
DL
78892000-05-26 Dave Love <fx@gnu.org>
7890
7891 * coding.c (shrink_decoding_region): Initialize eol_conversion.
7892
7893 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
7894 (Fsubr_arity): New function.
7895 (syms_of_data): Install them.
7896
ba9f8f95
KH
78972000-05-26 Kenichi Handa <handa@etl.go.jp>
7898
0f3e0672
KH
7899 * charset.c (init_charset_once): Set the table bytes_by_char_head
7900 correctly.
7901
cebefb44
KH
7902 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
7903 the default fontset to what Emacs uses by default.
0f3e0672
KH
7904 (check_registry_encoding): This function deleted.
7905 (Fset_fontset_font): Remove the adhoc condition for the default
7906 fontset. Allow cons in FONTNAME.
cebefb44 7907
0f3e0672
KH
7908 * fns.c (map_char_table): Ignore char-table entries for
7909 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 7910
7a18af49
KR
79112000-05-25 Ken Raeburn <raeburn@gnu.org>
7912
7913 * emacs.c (main): Initialize keyboard syms before initializing
7914 window code, so face names are available.
7915
d2af47df
SM
79162000-05-25 Stefan Monnier <monnier@cs.yale.edu>
7917
7918 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
7919 of an anchor at the beginning of a shy-group.
7920
fc6a6a4e
GM
79212000-05-25 Gerd Moellmann <gerd@gnu.org>
7922
7923 * xdisp.c (handle_invisible_prop): Don't try to skip over
7924 invisible text if end of text is already reached.
7925
005f0d35
DL
79262000-05-25 Dave Love <fx@gnu.org>
7927
02513cdd
DL
7928 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
7929
005f0d35
DL
7930 * coding.c (encode_eol): Add null statement after label.
7931
89f6ca4e
EZ
79322000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
7933
7934 * w16select.c (Fw16_set_clipboard_data): Fix the change from
7935 2000-05-20.
7936
a4e1759e
KH
79372000-05-25 Kenichi Handa <handa@etl.go.jp>
7938
7939 * ccl.c (ccl_driver): Fix previous change.
7940
eacfd7fe
KH
79412000-05-25 Kenichi Handa <handa@etl.go.jp>
7942
46ab33a9
KH
7943 * coding.c (run_pre_post_conversion_on_str): Set point to the
7944 beginning of buffer before calling coding->post_read_conversion.
7945 (decode_coding_string): Give correct args to
7946 run_pre_post_conversion_on_str.
7947 (encode_coding_string): Likewise.
7948
eacfd7fe
KH
7949 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
7950 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
7951 eight-bit-graphic correctly.
7952
f8569325
DL
79532000-05-24 Kenichi HANDA <handa@etl.go.jp>
7954
7955 * fileio.c (Finsert_file_contents): Even if a file is not found,
7956 execute codes for setting up coding system. Call
7957 after-insert-file-functions unconditionally.
7958
04545643
GM
79592000-05-24 Gerd Moellmann <gerd@gnu.org>
7960
7961 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
7962 BSD_PGRPS are not defined.
7963
747d90ea
KH
79642000-05-24 Kenichi Handa <handa@etl.go.jp>
7965
7966 * charset.c (update_charset_table): Accept nil in LONG_NAME and
7967 DESCRIPTION.
7968 (syms_of_charset): Avoid building same strings.
7969
716e3b88
GM
79702000-05-23 Gerd Moellmann <gerd@gnu.org>
7971
7972 * lread.c (Fload): Add a comment about the meaning of
7973 Vuser_init_file being t.
7974
7975 * puresize.h (BASE_PURESIZE): Increase to 675000.
7976
7977 * s/gnu-linux.h (setpgrp): Don't define it here because this
7978 prevents compilation on GNU/Linux systems with glib 2.2.
7979
7980 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
7981 as setpgid.
427ec082 7982
9aeb39fa
EZ
79832000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
7984
7985 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
7986 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
7987 version.
7988 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
7989
29ced61b
KH
79902000-05-23 Kenichi Handa <handa@etl.go.jp>
7991
0574a2ed
KH
7992 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE
7993 unconditionally.
7994
3d80f24d
KH
7995 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
7996
7997 * term.c (encode_terminal_code): Set coding->src_multibyte
7998 properly.
7999
29ced61b
KH
8000 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
8001
d7e00792
KH
80022000-05-22 Kenichi Handa <handa@etl.go.jp>
8003
c9d80d38
KH
8004 * keyboard.c (read_char): Allow character codes 128..255 to be
8005 handled by input-method-function.
8006
d7e00792
KH
8007 * insdel.c (adjust_markers_for_replace): Fix previous change.
8008 (adjust_after_replace): If PREV_TEXT is nil, call
8009 adjust_markers_for_insert, not adjust_markers_for_replace.
8010
087121cc 80112000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 8012
087121cc
GM
8013 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
8014 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
8015 [HAVE_GRANDPT]: Define.
8016 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
8017
8018 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
8019 like SYSV_PTYS.
8020
8021 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
8022
8023 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
8024
c9671f81
KH
80252000-05-20 Kenichi Handa <handa@etl.go.jp>
8026
8027 The following changes are to handle 8-bit characters in a
8028 multibyte buffer/string without facing with byte combining
8029 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
8030 eight-bit-graphic (for 0xA0..0xFF) are introduced.
8031
8032 * Makefile.in (fns.o): Depend on charset.h.
8033
8034 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
8035 convert it to unibyte.
8036 (make_string): Use parse_str_as_multibyte, not chars_in_text.
8037
8038 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
8039 apparent char boundary.
8040 (Fset_buffer_multibyte): Convert 8-bit characters in the range
8041 0x80..0x9F to/from multibyte form.
8042
8043 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
8044 to unibyte.
8045
8046 * callproc.c (Fcall_process): Always encode an argument string if
8047 it is multibyte. Setup src_multibyte and dst_multibyte members of
8048 process_coding properly.
ce75fd23 8049
c9671f81
KH
8050 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
8051 SPLIT_NON_ASCII_CHAR.
8052
8053 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
8054 as is.
8055 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
8056
8057 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New
8058 variables.
8059 (SPLIT_CHARACTER_SEQ): This macro deleted.
8060 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is
8061 valid.
8062 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
8063 and eight-bit-graphic.
8064 (char_to_string): Likewise. Signal an error for too large
8065 character code.
8066 (char_printable_p): Return 0 for 8-bit characters.
8067 (update_charset_table): Update iso_charset_table only when a final
8068 character is non-negative.
8069 (find_charset_in_text): Renamed from find_charset_in_str.
8070 Arguments and return value changed. Callers changed.
8071 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
8072 be -1 if CHARSET is used only internally.
8073 (Fmake_char_internal): Handle new charsets; eight-bit-control and
8074 eight-bit-graphic.
8075 (Fcharset_after): Simplified.
8076 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
8077 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
8078 (multibyte_chars_in_text): Simplified by assuming there's no
8079 invalid multibyte sequence.
8080 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
8081 str_as_unibyte): New functions.
8082 (Fstring): Simpified by assuming that byte combining never
8083 happens.
8084 (init_charset_once): Initialization for
8085 LEADING_CODE_8_BIT_CONTROL.
8086 (syms_of_charset): Intern and staticpro Qeight_bit_control and
8087 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
8088 eight-bit-control and eight-bit-graphic.
8089
8090 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL,
8091 CHARSET_8_BIT_GRAPHIC): New macros.
8092 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
8093 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
8094 (CHARSET_REVERSE_CHARSET): Likewise.
8095 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
8096 eight-bit-graphic.
8097 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
8098 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
8099 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
8100 encounter an invalid multibyte sequence.
8101 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
8102 sequence is always valid.
8103 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
8104 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New
8105 macros.
8106 (CHAR_STRING): For 8-bit characters, call char_to_string.
8107 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
8108 multibyte sequence is always valid.
8109 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
8110 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
8111 str_as_unibyte): Extern them.
8112 (BCOPY_SHORT): Fix a bug.
8113 (CHAR_LEN): This macro deleted. Callers changed to use
8114 CHAR_BYTES.
8115 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
8116 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
8117 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
8118
bd4bde7f 8119 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81
KH
8120 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
8121 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
8122 EMIT_BYTES): New macros.
8123 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
8124 DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
8125 macros deleted.
8126 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
8127 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
8128 check the validity of multibyte sequence.
8129 (decode_coding_emacs_mule): New function.
8130 (encode_coding_emacs_mule): New macro.
8131 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
8132 the source.
8133 (DECODE_ISO_CHARACTER): Just return a character code.
8134 (DECODE_COMPOSITION_START): Set coding->result instead of result.
8135 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
8136 EMIT_CHAR to produced decoded characters. Exit the loop only by
8137 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
8138 block here.
8139 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
8140 only position codes for an invalid character.
8141 (encode_designation_at_bol): Return new destination pointer. 5th
8142 arg DSTP is changed to DST.
8143 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
8144 from the source by ONE_MORE_CHAR. Don't handle the case of last
8145 block here.
8146 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
8147 macros deleted.
8148 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
8149 detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
8150 TWO_MORE_BYTES to fetch a byte from the source.
8151 (encode_eol): Pay attention to coding->src_multibyte.
8152 (detect_coding, detect_eol): Preserve members src_multibyte and
8153 dst_multibyte.
8154 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
8155 (encoding_buffer_size): Set magnification to 3 for all coding
8156 systems that require encoding.
8157 (ccl_coding_driver): For decoding, be sure that the result is
8158 valid multibyte sequence.
8159 (decode_coding): Initialize coding->errors and coding->result.
8160 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
8161 and raw-text, always call decode_eol. Handle the case of last
8162 block here. If not coding->dst_multibyte, convert the resulting
8163 sequence to unibyte.
8164 (encode_coding): Initialize coding->errors and coding->result.
8165 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
8166 and raw-text, always call encode_eol. Handle the case of last
8167 block here.
8168 (shrink_decoding_region, shrink_encoding_region): Detect cases
8169 that we can't skip data more rigidly.
8170 (code_convert_region): Setup src_multibyte and dst_multibyte
8171 members of coding. For decoding, if the buffer is multibyte,
8172 convert the source sequence to unibyte in advance. For encoding,
8173 if the buffer is multibyte, convert the resulting sequence to
8174 multibyte afterward.
8175 (run_pre_post_conversion_on_str): New function.
8176 (code_convert_string): Deleted and divided into the following two.
8177 (decode_coding_string, encode_coding_string): New functions.
8178 (code_convert_string1, code_convert_string_norecord): Call one of
8179 above.
8180 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
8181 MAKE_NON_ASCII_CHAR.
8182 (Fset_terminal_coding_system_internal,
8183 Fset_safe_terminal_coding_system_internal): Setup src_multibyte
8184 and dst_multibyte members.
8185 (init_coding_once): Initialize iso_code_class with new enum
8186 ISO_control_0 and ISO_control_1.
8187
8188 * coding.h (enum iso_code_class_type): Member ISO_control_code is
8189 devided into ISO_control_0 and ISO_control_1.
8190 (struct coding_system): New members src_multibyte, dst_multibyte,
8191 errors, and result. Delete member fake_multibyte.
8192 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
8193 nonzero.
8194 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
8195 nonzero.
8196
8197 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
8198 (Faset): Likewise.
8199
8200 * editfns.c (Fformat): Be sure to convert 8-bit characters to
8201 multibyte form.
8202 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
8203 combining occurs.
8204 (Ftranspose_region): Delete codes for handling byte combining.
8205
8206 * fileio.c (Finsert_file_contents): Setup src_multibyte and
8207 dst_multibyte members of coding. On handling REPLACE on unibyte
8208 buffer, convert the result of decode_coding to unibyte. On
8209 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 8210 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
8211 multibyteness of the source (buffer or string).
8212
8213 * fns.c (concat): Handle 8-bit characters correctly.
8214 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
8215 unibyte in the result.
8216 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
8217 valid multibyte form in the result.
8218 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
8219 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
8220 return -1, signal an error.
8221 (base64_encode_1): New arg MULTIBYTE. Get each character by
8222 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
8223 character is found, return -1.
8224 (Fbase64_decode_region): Delete codes for handling byte-combining.
8225 Treat each decoded byte as a unibyte character.
8226 (Fbase64_decode_string): Return unibyte string.
8227 (Fcompare_strings, concat, string_byte_to_char): Use
8228 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
8229 FETCH_STRING_CHAR_ADVANCE.
8230 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
8231 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
8232
8233 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
8234 SPLIT_NON_ASCII_CHAR.
8235 (fontset_ref_via_base, fontset_set): Likewise
8236
8237 * insdel.c (adjust_markers_for_record_delete): Deleted.
8238 (adjust_markers_for_insert): Argument changed. Caller changed.
8239 (adjust_markers_for_replace): Likewise.
8240 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error,
8241 CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
8242 (copy_text): Delete unused local varialbe c_save. For converting
8243 to multibyte, be sure to make all 8-bit characters in valid
8244 multibyte form.
8245 (count_size_as_multibyte): Handle 8-bit characters correctly.
8246 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
8247 adjust_after_replace, replace_range, del_range_2)
8248 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
8249 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
8250 adjust_after_replace, replace_range, del_range_2) Delete codes for
8251 handling byte combining.
8252 (adjust_before_replace): Deleted.
427ec082 8253
c9671f81
KH
8254 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
8255 SPLIT_NON_ASCII_CHAR.
8256 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
8257 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE
8258 unconditionally.
8259 (Fkey_description): Likewise.
8260
8261 * lread.c (read1): On reading multibyte string, be sure to make
8262 all 8-bit chararacters in valid multibyte form.
8263 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
8264
8265 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
8266 unconditionally.
8267
8268 * process.c (Fstart_process): GCPRO current_dir before calling
8269 Ffind_operation_coding_system. Encode arguments here.
8270 (create_process): Don't encode arguments here. Setup
8271 src_multibyte and dst_multibyte members of struct coding.
8272 (read_process_output): Setup src_multibyte and dst_multibyte
8273 members of struct coding. If the output is to multibyte buffer,
8274 always decode the output of the process. Adjust the
8275 representation of 8-bit characters to the multibyteness of the
8276 output.
8277 (send_process): Setup coding->src_multibyte according to the
8278 multibyteness of the source.
8279
8280 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE
8281 unconditionally.
8282 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
8283 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
8284
8285 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of
8286 CHAR_LEN.
8287
8288 * w16select.c (Fw16_set_clipboard_data): Setup members
8289 src_multibyte and dst_multibyte of coding. Adjusted for the
8290 change for find_charset_in_str.
8291 (Fw16_get_clipboard_data): Likewise.
8292
8293 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
8294 dst_multibyte of coding.
8295 (x_to_w32_font): Likewise.
8296
8297 * w32select.c (Fw32_set_clipboard_data): Setup members
8298 src_multibyte and dst_multibyte of coding. Adjusted for the
8299 change for find_charset_in_str.
8300 (Fw32_get_clipboard_data): Likewise.
8301
8302 * xdisp.c (get_next_display_element): Handle 8-bit characters
8303 correctly.
8304 (next_element_from_display_vector): Use CHAR_BYTES instead of
8305 CHAR_LEN.
8306 (disp_char_vector): Use SPLIT_CHAR instead of
8307 SPLIT_NON_ASCII_CHAR.
8308
8309 * xselect.c (selection_data_to_lisp_data): Setup members
8310 src_multibyte and dst_multibyte of coding. Adjusted for the
8311 change for find_charset_in_str.
8312 (lisp_data_to_selection_data): Likewise.
8313
5f64c9e0
GM
83142000-05-19 Gerd Moellmann <gerd@gnu.org>
8315
2b63d473
GM
8316 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed
8317 buffer.
8318
5f64c9e0
GM
8319 * dispextern.h (Vimage_types): Add extern declaration.
8320
8321 * xdisp.c (Vimage_types): Moved here from xfns.c.
8322 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
8323
8324 * xfns.c (Vimages_types): Moved to xdisp.c.
8325 (syms_of_xfns): Move `image-types' to xdisp.c.
8326
8327 * w32fns.c (Vimage_types): Removed.
8328 (syms_of_w32fns): Remove `image-types'.
8329
813086ea
KH
83302000-05-18 Kenichi Handa <handa@etl.go.jp>
8331
8332 * fns.c (map_char_table): Pay attention to character number of
8333 charset. Check the validity of charset at the first level. For
8334 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
8335 the default value.
8336
8337 * fontset.c: Include "buffer.h".
8338 (fs_load_font): If the face has fontset, record the face ID in
8339 that fontset.
8340 (Finternal_char_font): New function.
8341 (accumulate_font_info): New function.
8342 (Ffontset_info): Rewritten for the new fontset implementation.
8343 (syms_of_fontset): Register Vdefault_fontset in the first element
8344 of Vfontset_table. Include Vdefault_fontset in
8345 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
8346 function.
8347
bdaebbf0
DL
83482000-05-16 Dave Love <fx@gnu.org>
8349
8350 * m/iris5d.h: Deleted -- unused.
8351
cb613bb8
GM
83522000-05-16 Gerd Moellmann <gerd@gnu.org>
8353
b15f3b77
GM
8354 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
8355 `invalid' instead of `illegal'.
8356
8357 * indent.c (Fmove_to_column): When ending within a tab, insert
8358 spaces first so that markers at the end of the tab get adjusted.
8359
835c1b36
GM
8360 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
8361 buffer list that wasn't selected in that frame.
8362
cb613bb8
GM
8363 * filelock.c (get_boot_time): To obtain an 8 char file name, which
8364 is needed on mescaline, use a 2 char prefix, and call
8365 make_temp_name with second arg non-zero.
8366
8367 * fileio.c (make_temp_name): New function, extracted from
8368 Fmake_temp_name.
8369 (Fmake_temp_name): Use it.
8370
f685bea9
EZ
83712000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
8372
8373 * window.c (coordinates_in_window): Subtract 1 when computing
8374 right_x.
8375
a1b8d58b
GM
83762000-05-15 Gerd Moellmann <gerd@gnu.org>
8377
8378 * Makefile.in (lisp): Add env.elc.
8379
8380 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
8381
a265079f
GM
83822000-05-12 Gerd Moellmann <gerd@gnu.org>
8383
8384 * search.c (Freplace_match): Handle case of `\N' in the
8385 replacement when there's no group N.
8386
da4496b6
GM
83872000-05-11 Gerd Moellmann <gerd@gnu.org>
8388
0ace421a
GM
8389 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
8390 of the message to message_dolog.
8391
1172eb8d
GM
8392 * keyboard.c (read_char): Don't clear current message for help
8393 events; let the code handling help events handle this. Change
8394 code detecting help events that should be ignored.
8395
da4496b6
GM
8396 * xdisp.c (handle_single_display_prop): Don't try to set PT if
8397 we're interating over a string.
8398
0623e40f
DL
83992000-05-09 Dave Love <fx@gnu.org>
8400
8401 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
8402 that offset before writing. Move gcpro region past call of
8403 Ffile_regular_p.
8404
bae2503b
DL
84052000-05-04 Dave Love <fx@gnu.org>
8406
8407 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
8408
ec82fb2f
GM
84092000-05-04 Gerd Moellmann <gerd@gnu.org>
8410
8411 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
8412 of inserted characters when BUF equals the current buffer, and PT
8413 is in front of or equal to FROM.
8414
cbf18892
GM
84152000-05-03 Gerd Moellmann <gerd@gnu.org>
8416
4ff40dd0
GM
8417 * xdisp.c (handle_single_display_prop): If display property value
8418 is invalid, or something not supported on the frame, restore
8419 iterator's position to what it was initially. Make sure to return
8420 0 for invalid and unsupported property values.
8421
cbf18892
GM
8422 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
8423 that x_per_char_metric returns null.
8424
1b0672c3
GM
84252000-05-02 Gerd Moellmann <gerd@gnu.org>
8426
576da55d
GM
8427 * xterm.h (struct face): Add forward declaration.
8428 (struct image): Ditto.
8429 (image_ascent): Add prototype.
8430
8431 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
8432 (x_draw_image_relief, x_draw_image_foreground_1): Call function
8433 image_ascent instead of using IMAGE_ASCENT.
8434
8435 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
8436 (IMAGE_ASCENT): Removed.
8437
8438 * xfns.c (Qcenter): New variable.
8439 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
8440 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
8441 (image_ascent): New function.
8442 (lookup_image): Recognize `:ascent center'.
8443 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
8444 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
8445 (xbm_load): Don't set image's ascent here.
8446 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
8447 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
8448 check ascent values here.
8449 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
8450 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
8451 (syms_of_xfns): Initialize Qcenter.
8452
1b0672c3
GM
8453 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
8454 to the limits, increase the limits.
8455
0d7811ed
KH
84562000-05-01 Kenichi Handa <handa@etl.go.jp>
8457
8458 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
8459 Check Vfont_encoding_alist against the full name of the opened
8460 font.
8461
a943a5ca
GM
84622000-04-28 Gerd Moellmann <gerd@gnu.org>
8463
8464 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
8465 taller than the window.
8466
5dba1e29
KH
84672000-04-28 Kenichi Handa <handa@etl.go.jp>
8468
8469 * xfaces.c (realize_x_face): Fix the argument of the second
8470 xassert. BASE_FACE may not be a face for ASCII.
8471
353964e3
GM
84722000-04-27 Gerd Moellmann <gerd@gnu.org>
8473
c76e04a8
GM
8474 * print.c (print_object): Treat print-length < 0 as nil.
8475
8476 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
8477
8478 * s/freebsd.h (TERMCAP_OBJ): Removed.
8479 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
8480
8481 * lread.c (read1): Don't treat period followed by certain
8482 characters as symbol start.
8483
8484 * xfns.c (slurp_file): New function.
8485 (xbm_image_p): Handle case of in-memory XBM files.
8486 (xbm_scan): Rewritten to work on memory buffers instead of files.
8487 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
8488 Work on memory buffers instead of files. If DATA is null test
8489 if buffer looks like an in-memory XBM file.
8490 (xbm_load_image): Renamed from xbm_load_image_file. Work on
8491 memory buffers instead of files.
8492 (xbm_file_p): New function.
8493 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
8494
353964e3
GM
8495 * lread.c (end_of_file_error): New function.
8496 (read1): Call it instead of signaling `end-of-file' directly.
8497
427ec082 8498 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
8499 with Fprinc instead of Fprin1.
8500
24d744ac
KR
85012000-04-26 Ken Raeburn <raeburn@gnu.org>
8502
8503 * window.c (freeze_window_start): Check that minibuffer scroll
8504 window isn't nil before extracting the window structure pointer
8505 from it.
8506
8507 * undo.c (record_delete): If we hit the end of the undo list, stop
8508 picking elements apart.
8509
7464346d
GM
85102000-04-26 Gerd Moellmann <gerd@gnu.org>
8511
8512 * xdisp.c (display_line): If lines are continued, restore
8513 iterator's ascent/descent information to the values before the
8514 first glyph not fitting on the line.
8515
612839b6
GM
85162000-04-25 Gerd Moellmann <gerd@gnu.org>
8517
8518 * xdisp.c (try_window_id) <all changes above window start>: Adjust
8519 positions in glyph matrix. Don't compute new window end
8520 positions.
8521
8522 * dispnew.c (increment_matrix_positions): Renamed from
8523 increment_glyph_matrix_buffer_positions.
8524 (increment_row_positions): Renamed from
8525 increment_glyph_row_buffer_positions.
8526
8527 * dispextern.h: Change names of renamed functions from dispnew.c
8528 in prototypes.
8529
cc181e95
GM
85302000-04-24 Gerd Moellmann <gerd@gnu.org>
8531
abfcc168
GM
8532 * fileio.c (Fdo_auto_save): Create directories for auto-save
8533 list file if necessary.
8534
cc181e95
GM
8535 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
8536 from buffer or frame.
8537 (automatic_hscrolling_p): New variable.
8538 (hscroll_windows): Scroll windows horizontally only if automatic
8539 hscrolling is allowed.
8540 (syms_of_xdisp): New variable `automatic-hscrolling'.
8541
8542 * frame.h (struct frame): Add member extra_line_spacing.
8543
8544 * xfns.c (x_set_line_spacing): New function.
8545 (Fx_create_frame): Set line spacing from resources.
8546 (Qline_spacing): New variable.
8547 (syms_of_xfns): Initialize Qline_spacing.
427ec082 8548
cc181e95
GM
8549 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
8550
8551 * buffer.c (init_buffer_once): Handle extra_line_spacing.
8552 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 8553 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
8554 extra_line_spacing from default value.
8555 (init_buffer_once): Initialize default value of extra_line_spacing.
8556
8557 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
8558 and extra3.
8559
8560 * xterm.c (x_produce_glyphs): Remove reference to struct it's
8561 prompt_width. Add extra line spacing.
8562
8563 * term.c (produce_glyphs): Remove reference to struct it's
8564 prompt_width.
8565
8566 * dispextern.h (struct it): Remove member prompt_width, add
8567 extra_line_spacing.
8568
58827478
GM
85692000-04-22 Gerd Moellmann <gerd@gnu.org>
8570
8571 * dispnew.c (update_frame_line): When writing a whole line, make
8572 sure cursor is in the right row afterwards, otherwise a use of
8573 capability `ch' in cmgoto might leave the cursor in the row below.
8574
25a87f42
GM
85752000-04-21 Gerd Moellmann <gerd@gnu.org>
8576
8577 * lisp.h (struct Lisp_Buffer_Cons): Remove.
8578
8579 * keyboard.c (timer_check): Fix typo in comment.
8580
54edf5c2
KH
85812000-04-21 Kenichi Handa <handa@etl.go.jp>
8582
8583 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
8584 name change: ch -> character.
8585
3a64eef5
GM
85862000-04-20 Gerd Moellmann <gerd@gnu.org>
8587
8588 * keyboard.c (echo_message_buffer): New variable.
8589 (echo_now): Set echo_message_buffer to the echo area buffer used
8590 to display the echo.
8591 (cancel_echoing): Reset echo_message_buffer to nil.
8592 (read_char): Code rewritten that handles canceling an echo or
8593 echoing a dash, respectively.
8594
8595 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
8596 directory doesn't exist.
8597
6142fdcb
DL
85982000-04-19 Dave Love <fx@gnu.org>
8599
8600 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
8601 (concat): Don't allow numeric args.
8602 (Fconcat): Doc change.
6142fdcb 8603
ac6b5352
SM
86042000-04-19 Stefan Monnier <monnier@cs.yale.edu>
8605
8606 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
8607 instead define end_match(1|2) more carefully.
8608 Use GET_CHAR_BEFORE_2 for `begline'.
8609
cb9215e4
GM
86102000-04-19 Gerd Moellmann <gerd@gnu.org>
8611
5e3dac3f
GM
8612 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
8613 on 64-bit systems where NULL is defined as `0'.
8614
8615 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
8616 the `variable argument list' to make it work on Alpha.
8617
cb9215e4
GM
8618 * m/alpha.h (_LP64) [!_LP64]: Define.
8619 (ORDINARY_LINK): Define for NetBSD.
8620
8621 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 8622
f532dca0
DL
86232000-04-19 Dave Love <fx@gnu.org>
8624
c750667e
DL
8625 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
8626 change.
8627
8628 * Makefile.in (LIBS): Don't use.
8629 (GETLOADAVG_OBJ): Define again.
8630 (otherobj): Add GETLOADAVG_OBJ.
8631
f532dca0
DL
8632 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
8633
1c7e22fd
GM
86342000-04-18 Gerd Moellmann <gerd@gnu.org>
8635
f6d3257b
GM
8636 * lread.c (read_filtered_event): Cancel and start busy cursor.
8637
427ec082 8638 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
8639 that the per-character metrics may be null.
8640
e10f64e7
GM
86412000-04-17 Gerd Moellmann <gerd@gnu.org>
8642
0daee095
GM
8643 * buffer.c (clone_per_buffer_values): New function.
8644 (Fmake_indirect_buffer): Add optional argument CLONE. Call
8645 clone_per_buffer_values if CLONE is not nil.
8646
e10f64e7
GM
8647 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
8648
38687d43
DL
86492000-04-16 Dave Love <fx@gnu.org>
8650
8651 * Makefile.in: Remove obsolete localcpp stuff.
8652 (GETLOADAVG_OBJ): Don't define.
8653 (obj): Move LIBOBJS...
8654 (otherobj): ... to here.
8655 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
8656 whitespace-only lines after the continuation (Irix).
8657
c21c7262
GM
86582000-04-14 Gerd Moellmann <gerd@gnu.org>
8659
8660 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
8661
8662 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
8663
314767c0
DL
86642000-04-14 Dave Love <fx@gnu.org>
8665
8666 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
8667 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
8668 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
8669 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
8670 NLIST_STRUCT.
8671
8672 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
8673 autoconfiscated HAVE_GETLOADAVG.
8674
8675 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
8676 BROKEN_MKTIME.
8677
a2522dca
GM
86782000-04-14 Gerd Moellmann <gerd@gnu.org>
8679
8680 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
8681 (fill_in_lock_file_name): Avoid existing files that aren't
8682 links.
8683
33744b5d
DL
86842000-04-14 Dave Love <fx@gnu.org>
8685
c21c7262 8686 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
8687 (INTERVAL_SRC): Convert to make variable.
8688 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
8689 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
8690 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
8691 add LIBOBJS.
8692 (SOME_MACHINE_OBJECTS): Remove interval stuff.
8693 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
8694 (shortlisp): Add facemenu, float-sup, frame.
8695 (SOME_MACHINE_LISP): Remove them from here.
8696 (LIBES): Change unused LDLIBS to autoconf LIBS.
8697
8698 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
8699
9d3d5916
KH
87002000-04-14 Kenichi Handa <handa@etl.go.jp>
8701
8702 * composite.c (update_compositions): If FROM and TO are not in a
8703 valid range, do nothing.
8704
198e3c7a
GM
87052000-04-13 Gerd Moellmann <gerd@gnu.org>
8706
8707 * tparam.c (tparam1): Abort when encountering an unknown
8708 `%'-specifier.
8709
8710 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
8711 terminfo.o.
8712
8713 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
8714 as TERMCAP_OBJ.
8715
055a28c9
EZ
87162000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
8717
8718 * fileio.c (a_write): Remove redundant semi-colons.
8719 (e_write): Return -1 if failed to write all the data.
8720 This fixes the changes made at 1999-12-15.
8721
f5c75033
DL
87222000-04-12 Dave Love <fx@gnu.org>
8723
8724 * fns.c (mapcar1): Test for null vals to support mapc.
8725 (Fmapc): New function.
8726
0c3cfc51
EZ
87272000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
8728
8729 * msdos.c (NUM_MOUSE_BUTTONS): Define.
8730 (IT_frame_up_to_date): Support the buffer local value of
8731 cursor-type, if defined.
8732
33465a31
DL
87332000-04-10 Dave Love <fx@gnu.org>
8734
8735 * editfns.c (preceding-char, following-char): Doc fix.
8736
6ed56568
KR
87372000-04-10 Ken Raeburn <raeburn@gnu.org>
8738
8739 * Makefile.in (temacs): Revert 2000-03-12 change.
8740
7cf80d4e
JR
87412000-04-10 Jason Rumney <jasonr@gnu.org>
8742
8743 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
8744
34f3f342
GM
87452000-04-10 Gerd Moellmann <gerd@gnu.org>
8746
1a1b1895
GM
8747 * xdisp.c (setup_echo_area_for_printing): Choose an echo
8748 area buffer, if it's not set up yet.
8749
34f3f342
GM
8750 * indent.c (compute_motion): Set immediate_quit.
8751
be0dbdab
GM
87522000-04-09 Gerd Moellmann <gerd@gnu.org>
8753
c45be9ac
GM
8754 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New
8755 variable.
8756 (realize_tty_face): Suppress boldness if colors are the inverse of
8757 the default colors, and tty_suppress_bold_inverse_default_colors_p
8758 is set.
8759 (Ftty_suppress_bold_inverse_default_colors): New function.
8760 (syms_of_xfaces): Defsubr it.
8761
be0dbdab
GM
8762 * buffer.c (Frestore_buffer_modified_p): New function.
8763 (syms_of_buffer): Defsubr it.
8764
e8413c3b
KR
87652000-04-08 Ken Raeburn <raeburn@gnu.org>
8766
87f67317
KR
8767 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
8768 charset id (int) argument, not a charset (Lisp_Object).
8769
e8413c3b
KR
8770 * coding.h (code_convert_string): Declare.
8771 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
8772 object, as the fourth argument to code_convert_string.
8773
8774 * fontset.c (make_fontset_for_ascii_face): Use XINT on return
8775 value.
8776 (Fset_fontset_font): Use EQ to compare lisp objects.
8777
7c752c80
KR
87782000-04-05 Ken Raeburn <raeburn@gnu.org>
8779
c0333abc
KR
8780 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
8781 a pointer that looks like a lisp object.
8782 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
8783 zero, instead see whether it's an integer object, since they can't
8784 have intervals.
8785 (GET_INTERVAL_OBJECT): Simply assign to the destination.
8786
7c752c80
KR
8787 * dispnew.c (allocate_matrices_for_frame_redisplay,
8788 direct_output_forward_char): Use X(U)INT and make_number as needed
8789 to convert between (unsigned) int values and lisp integers.
8790 * keyboard.c (read_key_sequence): Likewise.
8791 * lread.c (substitute_object_recurse): Likewise.
8792 * fns.c (concat, hash_lookup, hash_remove): Likewise.
8793 * minibuf.c (do_completion, Fminibuffer_complete_word,
8794 Fminibuffer_completion_help): Likewise.
8795 * term.c (produce_special_glyphs): Likewise.
8796
8797 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
8798 * print.c (print_preprocess, print_object): Likewise.
8799
8800 * search.c (compile_pattern): Use NILP when checking for nil.
8801
74e49b38
KR
8802 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
8803 __OPTIMIZE__]: Provide a GNU C macro version that handles
8804 lisp-object unions.
8805 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
8806 field, to better cope with ENABLE_CHECKING and calls that modify a
8807 Lisp_Object using its old value.
8808
685e5ed2
GM
88092000-04-04 Gerd Moellmann <gerd@gnu.org>
8810
c407c570
GM
8811 * window.c (compare_window_configurations): Signal an error
8812 if parameters C1 or C2 aren't window configurations.
8813
685e5ed2
GM
8814 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
8815 AFTER_POTENTIAL_GC calls around calls to functions that can
8816 signal an error and thus invoke the debugger.
8817
587a49ab
GM
88182000-04-03 Gerd Moellmann <gerd@gnu.org>
8819
62f20204
GM
8820 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
8821 an error if decoding fails.
8822
587a49ab
GM
8823 * keyboard.c (lispy_mouse_names): Variable removed.
8824 (Vlispy_mouse_stem): New variable.
8825 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
8826 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
8827 for any mouse button number. Increase size of mouse_syms and
8828 button_down_location as needed. Call modify_event_symbol with
8829 different arguments.
8830 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
8831 Call modify_event_symbol with different arguments.
8832 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
8833 for any button number. Call modify_event_symbol with different
8834 arguments.
8835 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
8836 Accept a string for NAME_ALIST_OR_STEM.
8837
8838 * lisp.h (larger_vector): Add prototype.
8839
8840 * fns.c (larger_vector): Make externally visible.
8841
8842 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
8843
2d1675e4
SM
88442000-04-02 Stefan Monnier <monnier@cs.yale.edu>
8845
8846 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
8847 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
8848 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
8849 we are between str1 and str2.
8850 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
8851 (PATFETCH): Use `TRANSLATE'.
8852 (PATFETCH_RAW): Fetch multibyte char if applicable.
8853 (PATUNFETCH): Remove.
8854 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
8855 When writing a char, write it directly into the pattern buffer rather
8856 than going needlessly through a temp char-array.
8857 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
8858 multibyte magic and remove the useless `#ifdef emacs'.
8859 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
8860 buffer.
8861
8862 * regex.h (struct re_pattern_buffer): Make field `multibyte'
8863 conditional on `emacs'.
8864
8865 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
8866
cc2d8c6b
KR
88672000-04-01 Ken Raeburn <raeburn@gnu.org>
8868
8869 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
8870 non-union-type versions of XMARK and friends here, because XMARK
8871 and friends won't work on an integer field if NO_UNION_TYPE is not
8872 defined.
8873 (make_number): Define as a function if it's not defined as a
8874 macro.
8875
09654086
KR
8876 * composite.c (run_composite_function): Use NILP when checking for
8877 nil.
8878 (syms_of_composite): Delete local var NARGS, pass an int as first
8879 argument to Fmake_hash_table.
8880
2387b382
KR
8881 * editfns.c (text_property_stickiness): Use NILP to test
8882 Lisp_Object boolean value.
8883 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
8884 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
8885 problems reading from and changing the same lisp value in an
8886 XSETSTRING call.
8887
27660e89
GM
88882000-04-01 Gerd Moellmann <gerd@gnu.org>
8889
8890 * term.c (TN_no_color_video): New variable.
8891 (term_init): Intitialize TN_no_color_video.
8892 (enum no_color_bit): New enumeration.
8893 (MAY_USE_WITH_COLORS_P): New macro.
8894 (turn_on_face): Use it to determine if attributes may be used
8895 combined with colors.
8896
3578db3c
KR
88972000-04-01 Ken Raeburn <raeburn@gnu.org>
8898
8899 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
8900 with int lvalues via casts; instead, just yield lisp object
8901 lvalues.
8902 (enlarge_window): Variable sizep now points to Lisp_Object. Use
8903 proper accessor macros.
8904 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
8905 (grow_mini_window): Fix typo getting int value of root->height.
8906
6fc556fd
KR
8907 * xdisp.c (compute_string_pos): Fix order of arguments to
8908 string_pos_nchars_ahead.
8909 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
8910 count arg to variable-arg routines like Frun_hook_with_args and
8911 Fformat.
587a49ab
GM
8912 (back_to_previous_visible_line_start)
8913 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
8914 fixed-arg routines like Fget_char_property and Fmake_string.
8915 (reconsider_clip_changes): Use XINT when comparing integer lisp
8916 objects, or passing them as int arguments.
587a49ab
GM
8917 (mark_window_display_accurate, insert_left_trunc_glyphs)
8918 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
8919 storing or passing integer values as lisp objects.
8920 (set_cursor_from_row, highlight_trailing_whitespace): Use
8921 INTEGERP, not implicit test against zero, for glyph object.
8922 (try_window_id): Don't use make_number when we want an int value.
8923
8924 * xfaces.c (xlfd_symbolic_value): Make last argument a
8925 Lisp_Object, to be consistent with callers.
8926 (Fbitmap_spec_p): Use XINT to get numeric value of height.
8927 (lface_hash): Apply XFASTINT to lisp values before folding in.
8928
8929 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
8930 fill in window width and height. Pass an int, not a lisp object,
8931 as first arg to Finsert.
8932
6e7b2457
GM
89332000-04-01 Gerd Moellmann <gerd@gnu.org>
8934
610d841e
GM
8935 * xfaces.c (realize_basic_faces): Block input while realizing
8936 the faces.
8937
6e7b2457
GM
8938 * keyboard.c (lispy_mouse_names): Add additional mouse names.
8939
8940 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
8941
aa110c0c
GM
89422000-03-31 Gerd Moellmann <gerd@gnu.org>
8943
8944 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 8945 or ASCII, handle case that per-char metric is null.
aa110c0c 8946
8801a864
KR
89472000-03-30 Ken Raeburn <raeburn@gnu.org>
8948
c6129d7e
KR
8949 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
8950
8801a864
KR
8951 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW,
8952 XSUBR, XBUFFER): Verify correct object type before returning
8953 pointer, using eassert.
8954 * frame.h (XFRAME): Likewise.
8955
8956 * buffer.c (Frename_buffer, Fset_buffer_multibyte,
8957 swap_out_buffer_local_variables, Fmove_overlay): Don't apply
8958 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong
8959 type.
8960 * data.c (set_internal): Likewise.
8961 * dispextern.h (WINDOW_WANTS_MODELINE_P,
8962 WINDOW_WANTS_HEADER_LINE_P): Likewise.
8963 * fileio.c (auto_save_1): Likewise.
8964 * insdel.c (check_markers): Likewise.
8965 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
8966 * undo.c (record_insert): Likewise.
8967 * vmsproc.c (child_sig): Likewise.
8968 * window.c (unshow_buffer, window_loop): Likewise.
8969 * xterm.c (x_erase_phys_cursor): Likewise.
8970
8e7af858
GM
89712000-03-30 Gerd Moellmann <gerd@gnu.org>
8972
8973 * xfns.c (free_image_cache): Free the cache structure itself
8974 last, after all its members have been freed.
8975
8976 * lisp.h (xstrdup): Add prototype.
8977
8978 * alloc.c (xstrdup): Moved here from xfaces.c.
8979 (allocating_for_lisp): Variable removed.
8980 (lisp_malloc): Block input around the calls to malloc and
8981 mem_insert.
8982
8983 * xfaces.c (realize_tty_face): Use find_symbol_value instead
8984 of Fsymbol_value.
8985 (xstrdup): Moved to alloc.c.
8986
e0b8c689
KR
89872000-03-29 Ken Raeburn <raeburn@gnu.org>
8988
b96f9fb7
KR
8989 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
8990
8991 * emacs.c (main): Fix sense of no-loadup test.
8992
e0b8c689
KR
8993 * config.in (ENABLE_CHECKING): Undef.
8994
8995 * lisp.h (struct interval): Replace "parent" field with a union of
8996 interval pointer and Lisp_Object; add new bitfield to use as
8997 discriminant. Change other flag fields to bitfields.
8998 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
8999 is defined and the supplied test fails, print a message and
9000 abort.
9001 (eassert): New macro. Use CHECK to provide an assert-like
9002 facility.
9003
9004 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
9005 pointers; abort if the value looks like a lisp object.
9006 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT,
9007 SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
9008 Modify for new interval parent definition.
9009
9010 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE,
9011 UNMARK_BALANCE_INTERVALS): Update references that need an
9012 addressable lisp object in the interval structure.
9013 (die): New function.
9014 (suppress_checking): New variable.
9015
9016 * intervals.c (interval_start_pos): Just return 0 if there's no
9017 parent object.
9018
f83c5440
GM
90192000-03-29 Gerd Moellmann <gerd@gnu.org>
9020
9021 * lread.c (read1): Accept `.' (period) as symbol start like in CL
9022 and earlier Emacs versions.
9023
9024 * keyboard.c (Ftop_level): Cancel busy-cursor.
9025
9026 * eval.c (call_debugger): Cancel busy-cursor.
9027
fdce64ff
KH
90282000-03-29 Kenichi Handa <handa@etl.go.jp>
9029
9030 * search.c (Freplace_match): Adjust multibyteness of the current
9031 buffer and NEWTEXT. Free allocated memory before signaling an
9032 error.
9033
f6a3f532
SM
90342000-03-28 Stefan Monnier <monnier@cs.yale.edu>
9035
9036 * regex.c (analyse_first): New function obtained by ripping out most
9037 of re_compile_fastmap and generalizing it a little bit so that it
9038 can also just return whether a given (sub)pattern can match the empty
9039 string or not.
9040 (regex_compile): Use `analyse_first' to decide whether the loop-check
9041 needs to be done or not for *, +, *? and +? (the loop check is costly
9042 for non-greedy repetition).
9043 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
9044
e9b309ac
DL
90452000-03-28 Dave Love <fx@gnu.org>
9046
bb15bd9a
DL
9047 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k,
9048 alpha.
9049
e9b309ac
DL
9050 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
9051
ed0767d8
SM
90522000-03-27 Stefan Monnier <monnier@cs.yale.edu>
9053
9054 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
9055 an expression.
9056 (enum re_opcode_t): Update description of succeed_n.
9057 (PATFETCH): Always define.
9058 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
9059 operators, char classes, shy-groups and intervals).
9060 Optimize special cases of intervals so as to only use succeed_n and
9061 jump_n when really needed.
9062 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
9063 that we don't have to handle the special cases any more.
9064 Simplify on_failure_jump handling as well.
9065
e11e7e46
JR
90662000-03-28 Jason Rumney <jasonr@gnu.org>
9067
9068 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
9069
88faab89
GM
90702000-03-27 Gerd Moellmann <gerd@gnu.org>
9071
182ff242
GM
9072 * s/freebsd.h (GC_SETJMP_WORKS): Define.
9073
9074 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 9075
182ff242
GM
9076 * alloc.c (mark_maybe_object): New function.
9077 (mark_memory): Use it.
9078 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
9079 (setjmp_tested_p, longjmp_done): New variables.
9080 (test_setjmp): New function.
9081 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
9082 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
9083
c1005d06
GM
9084 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
9085 to DEC_TEXT_POS and INC_TEXT_POS.
9086
9087 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
9088 with parameter MULTIBYTE_P.
9089
427ec082 9090 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
c1005d06
GM
9091 MULTIBYTE_P.
9092
7439e5b9 9093 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
9094 buffers because it looks for multibyte character byte sequences
9095 which don't exist in unibyte text.
7439e5b9 9096
d9c545da
GM
9097 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
9098
11fd416e 9099 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
9100 [DEBUG_X_COLORS]: New functions.
9101 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
9102
9103 * xfns.c (x_set_cursor_color): Get color reference counts right.
9104
9105 * xterm.c (x_copy_color): New function.
9106 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
9107
9108 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
9109 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
9110 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
9111 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
9112 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
9113 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
9114 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
9115 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
9116 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
9117 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
9118
11fd416e
GM
9119 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
9120 names for handling per-buffer variables.
d9c545da
GM
9121
9122 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
9123 instead of MAX_BUFFER_LOCAL_VARS.
9124 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
9125
9126 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
9127
88faab89
GM
9128 * xfns.c (x_specified_cursor_type): New function.
9129 (x_set_cursor_type): Use it.
9130
9131 * buffer.h (struct buffer): Add cursor_type.
9132
d80f42b7
SM
91332000-03-26 Stefan Monnier <monnier@cs.yale.edu>
9134
9135 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
427ec082 9136 (print_partial_compiled_pattern, re_compile_fastmap): Handle new
88faab89 9137 opcode.
d80f42b7
SM
9138 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
9139 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
9140 executing it as well as when popping it off the stack to find infinite
9141 loops in non-greedy repetition operators.
9142
89e80928
GM
91432000-03-26 Gerd Moellmann <gerd@gnu.org>
9144
3d4ff2dd
GM
9145 * doc.c (Qfunction_documentation): New variable.
9146 (syms_of_doc): Initialize Qfunction_documentation.
9147 (Fdocumentation): If FUNCTION is a symbol with non-nil
9148 `function-documentation' property, return a documentation derived
9149 from that.
9150
bd96bd79
GM
9151 * buffer.c (syms_of_buffer): Add default-cursor-type.
9152 (init_buffer_once): Don't let cursor_type have a local value
9153 in every buffer.
9154
19d1bc27
GM
9155 * xterm.c (x_display_and_set_cursor): Choose cursor depending
9156 on buffer-local value of cursor_type.
9157 (x_draw_bar_cursor): Add parameter WIDTH.
9158
9159 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
9160 (init_buffer_once): Set default cursor_type value to t.
9161 Mark cursor_type as local everywhere.
9162 (syms_of_buffer): New per-buffer variable cursor-type.
9163
89e80928
GM
9164 * buffer.h (struct buffer): Remove member local_var_flags,
9165 add local_flags.
9166 (MAX_BUFFER_LOCAL_VARS): New macro.
9167 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
9168 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
9169 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
9170 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
9171
9172 * print.c (print_object): Use new macros for per-buffer
9173 variables.
9174
9175 * category.c (Fset_category_table): Use new macros for per-buffer
9176 variables.
9177
9178 * buffer.c (buffer_permanent_local_flags): Make a char array.
9179 (max_buffer_local_idx): New variable.
9180 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
9181 for new handling of per-buffer variables.
9182 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
9183 (init_buffer_once): Initialize per-buffer vars differently.
9184 Set max_buffer_local_idx.
9185
9186 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
9187 variables.
9188
9189 * lread.c (defvar_per_buffer): Use new macros for per-buffer
9190 variables.
9191
9192 * data.c (do_symval_forwarding, store_symval_forwarding)
9193 (find_symbol_value, set_internal, default_value, Fset_default)
9194 (Fkill_local_variable, Flocal_variable_p): Use new macros for
9195 per-buffer variables.
9196
9197 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
9198
9a0dd3dc
GM
91992000-03-24 Gerd Moellmann <gerd@gnu.org>
9200
b68c375f
GM
9201 * xterm.c (x_term_init): Unblock input around call1 of
9202 Qvendor_specific_keysyms.
9203
9a0dd3dc
GM
9204 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
9205 (find_defun_start): Consider an open parenthesis in column 0
9206 a defun start only if open_paren_in_column_0_is_defun_start is set.
9207 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
9208
7973e637
SM
92092000-03-24 Stefan Monnier <monnier@cs.yale.edu>
9210
9211 * eval.c (Fautoload): Add entry in load-history (if after dump).
9212 * lread.c (load-history): Update docstring.
9213
39210e90
GM
92142000-03-24 Gerd Moellmann <gerd@gnu.org>
9215
9216 * indent.c (Fvertical_motion): Always use the current buffer.
9217 Temporarily change the window's buffer, if necessary.
9218
72db3ab5
GM
92192000-03-23 Gerd Moellmann <gerd@gnu.org>
9220
9221 * xterm.c (fast_find_position): Make sure not to consider rows
9222 not visible in the window.
9223
990b2375
SM
92242000-03-22 Stefan Monnier <monnier@cs.yale.edu>
9225
9226 * regex.c (enum syntaxcode): Provide default for non-Emacs.
9227 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
9228
ff4df011
JR
92292000-03-22 Jason Rumney <jasonr@gnu.org>
9230
9231 * w32menu.c (single_submenu): Set help string to NULL if none.
9232 (w32_menu_show): Set help string correctly.
9233 (add-menu-item): Set help string in MIIM_DATA for menu item.
9234 Load SetMenuItemInfoA explicitly.
9235 (w32_menu_display_help): New function.
427ec082 9236
ff4df011
JR
9237 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
9238 (QCdata): Moved to xdisp.c.
9239
9240 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
9241 (Vw32_charset_to_codepage_alist): Removed.
9242 (Vw32_charset_info_alist): New variable.
9243 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312,
9244 chinesebig5, oem, easteurope, turkish, baltic, russian, arabic,
9245 greek, hebrew, thai, johab, mac, unicode]): New symbols.
9246 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
9247 with TODO comment.
9248 (w32_codepage_for_font): Use Vw32_charset_info_alist.
9249 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
9250 Define Vw32_charset_info_alist and w32_charset symbols.
9251
92522000-03-22 Jason Rumney <jasonr@gnu.org>
9253
9254 * makefile.nt (w32bdf.obj): Update dependencies.
9255
9256 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
9257
9258 * w32fns.c: Include fontset.h after dispextern.h.
9259 (Fx_create_frame): Do not create fontset.
9260 (w32_load_system_font): Doc fix.
9261 (Fx_close_connection): Free full_name if it is not shared.
9262
9263 * w32term.c: Include fontset.h after dispextern.h.
9264 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
9265 updated.
9266 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
9267 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
9268 (w32_font_is_double_byte): New function, needs body.
9269 (x_append_glyph): Set glyph->glyph_not_available_p.
9270 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
9271 it->charset. If it->multibyte_p is zero and it->c is a multibyte
9272 character, convert it to a unibyte character.
9273 (struct glyph_string): Delete member `charset'.
9274 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
9275 calculating it is found.
9276 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
9277 the case that per char metric is not available correctly.
9278 (x_fill_glyph_string): Handle the case that the specific glyph is
9279 not available correctly.
9280 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
9281 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
9282 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
9283 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
9284 fontset. Don't call FS_LOAD_FONT.
9285
439d5cb4
KR
92862000-03-22 Ken Raeburn <raeburn@gnu.org>
9287
9288 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
9289 (INT_LISPLIKE): New macro.
9290 (NULL_INTERVAL_P): Use it.
9291 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
9292 SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
9293 GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
9294
9295 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
9296 explicit references to "parent" field of struct interval and
9297 associated unclean type conversions.
9298 * intervals.c (create_root_interval, root_interval, rotate_right,
9299 rotate_left, balance_possible_root_interval, split_interval_right,
9300 split_interval_left, interval_start_pos, find_interval,
9301 next_interval, previous_interval, update_interval,
9302 adjust_intervals_for_insertion, delete_node, delete_interval,
9303 adjust_intervals_for_deletion, merge_interval_right,
9304 merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
9305 copy_intervals_to_string): Likewise.
9306 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
9307 Likewise.
9308 * syntax.c (update_syntax_table): Likewise.
9309
9310 * intervals.c (reproduce_tree_obj): New function, like
9311 reproduce_tree but takes a Lisp_Object for the parent. Declare
9312 with prototype.
9313 (graft_intervals_into_buffer): Use it when appropriate.
9314 (reproduce_tree): Declare with prototype.
9315 (balance_possible_root_interval): Check that the parent is a lisp
9316 object before trying to examine its type.
9317
ee1c5b21
GM
93182000-03-22 Gerd Moellmann <gerd@gnu.org>
9319
9320 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
9321 as strings only if both are known to be strings.
9322
9323 * s/openbsd.h (LIBS_TERMCAP): Undef.
9324
1fb352e0
SM
93252000-03-21 Stefan Monnier <monnier@cs.yale.edu>
9326
9327 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
9328 definitions for non-Emacs compilation.
9329 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
9330 outside of `#ifdef emacs'.
9331 (print_partial_compiled_pattern): Update.
9332 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
9333 (re_compile_fastmap): Merge handling of charset and charset_not (for
9334 emacs and non-emacs compilation as well).
9335 Similarly for (not)categoryspec and (not)syntaxspec.
9336 Don't use the fastmap when reaching `anychar' since the added
9337 complexity is not justified.
9338 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
9339 and (not)syntaxspec. Merge (not)categoryspec.
9340
fdaa1f77
KH
93412000-03-22 Kenichi Handa <handa@etl.go.jp>
9342
ff1a0d8e
KH
9343 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
9344 FACE_FOR_CHAR): Define them differently for the configuration of
9345 --without-x.
fdaa1f77 9346
d152fb46
DL
93472000-03-21 Dave Love <fx@gnu.org>
9348
9349 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
9350 doc string.
9351
d2cafc8c
GM
93522000-03-21 Gerd Moellmann <gerd@gnu.org>
9353
9354 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
9355 (lface_fully_specified_p): Don't check contents of
9356 LFACE_FONT_INDEX because that attribute is optional.
9357 (realize_x_face): Remove now unwarranted xassert.
9358
9111d4b5
KH
93592000-03-21 Kenichi HANDA <handa@etl.go.jp>
9360
9361 The following changes are to make font selection based on
9362 characters, not charset. In addition, they recover fontset
9363 facilities while utilizing the new font selection mechanism.
9364
6c4bfdc0
KH
9365 * Makefile.in (fontset.o): Depend on dispextern.h.
9366
9367 * alloc.c (mark_face_cache): Don't mark face->registry.
9368
9111d4b5
KH
9369 * dispextern.h (struct glyph): New member glyph_not_available_p.
9370 Use 22 bits for face_id.
9371 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
9372 (struct face): Delete member registry, new member ascii_face.
9373 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
9374 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
9375 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
9376 (struct it): Delete member charset, new member
9377 glyph_not_available_p.
9378
9379 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
9380 (struct fontset_info, struct fontset_data): Structs removed.
9381 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
9382 Vglobale_fontset_alist, font_idx_temp): Externs removed.
9383 (fs_load_font, fs_query_fontset): Adjusted for new argument.
9384 (fs_free_face_fontset, fontset_font_pattern,
9385 face_suitable_for_char_p, face_for_char,
9386 make_fontset_for_ascii_face): Extern them.
9387 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
9388 (FS_LOAD_FACE_FONT): New macro.
9389
9390 * fontset.c: All codes rewritten or adjusted for the change of
9391 fontset implementation. Now fontset is represented by char table.
9392 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
9393 removed.
9394 (my_strcasecmp): Function removed.
9395 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
9396 variables.
9397 (AREF, ASIZE): New macros.
9398 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
9399 FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
9400 FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
9401 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
9402 fontset_id_valid_p, font_family_registry, fontset_name,
9403 fontset_ascii, free_face_fontset, face_suitable_for_char_p,
9404 face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
9405 New functions.
9406 (fs_load_font): New arg FACE. Caller changed.
9407 (fs_query_fontset): Argument changed. Caller changed.
9408 (Fquery_fontset): call fs_query_fontset.
9409 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
9410 Functions removed.
9411 (clear_fontset_elements, check_registry_encoding,
9412 check_fontset_name): New functions.
9413 (syms_of_fontset): Set char-table-extra-slots property of fontset
9414 to 3. Staticpro and initialize Vfontset_table and
9415 Vdefault_fontset. Defsubr fontset_font and fontset_list.
9416
9417 * frame.h (struct frame): Member `fontset_data' removed.
9418 (FRAME_FONTSET_DATA): Macro removed.
9419
9420 * frame.c (make_frame): Don't allocate f->fontset_data.
9421 (Fdelete_frame): Don't free f->fontset_data.
9422
6c4bfdc0
KH
9423 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
9424
9111d4b5
KH
9425 * xdisp.c (charset_at_position): Function removed.
9426 (init_iterator): Don't set member charset of struct `it'.
9427 (handle_face_prop, reseat_to_string, set_iterator_to_next,
9428 next_element_from_display_vector, insert_left_trunc_glyphs):
9429 Likewise.
9430 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
9431 FACE_FOR_CHARSET.
9432 (get_next_display_element, append_space,
9433 extend_face_to_end_of_line): Likewise.
9434
9435 * xfaces.c (Qx_charset_registry, Vface_default_registry):
9436 Variables removed.
9437 (clear_font_table, frame_update_line_height, load_face_font):
9438 Adjusted for the change of fontset implementation.
9439 (load_face_fontset_font): Function removed.
9440 (pixel_point_size): New function.
9441 (font_list): Argument type changed. Caller changed.
9442 (LFACE_FONT): New macro.
9443 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
9444 (set_lface_from_font_name): Type of arg FONTNAME is changed to
9445 Lisp_Object. Determine the font name by actually loading a font
9446 by the specified pattern. Set LFACE_FONT (lface) to the specified
9447 pattern. Even if a font is not found, don't try alternatives.
9448 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
9449 (set_font_frame_param): If `font' is specified in lface, use it.
9450 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
9451 (lface_same_font_attributes_p): Likewise.
9452 (make_realized_face): Arguent changed. Caller changed. Set
9453 face->ascii_face to face itself.
9454 (free_realized_face): Free face->fontset if face is for ASCII.
9455 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
9456 deduce_unibyte_registry, x_charset_registry): Functions removed.
9457 (free_realized_multibyte_face): New function.
9458 (lookup_face, lookup_named_face, lookup_derived_face): Argument
9459 changed. Caller changed.
9460 (try_font_list): Argument type changed.
9461 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
9462 (choose_face_font): Argument changed. Handle fontset properly.
9463 (choose_face_fontset_font): Function removed.
9464 (realize_default_face, realize_named_face): Don't remove the
9465 former face here.
9466 (realize_face): Argument changed. Caller changed. Remove face
9467 with the arg former_face_id in advance. Load font for the new
9468 face.
9469 (realize_x_face): Argument changed. Caller changed. For a
9470 multibyte character, share fontset with base_face. For a single
9471 byte character, make a new realized fontset. Don't load a font
9472 here.
9473 (realize_tty_face): Argument changed. Caller changed.
9474 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
9475 (face_at_buffer_position): Don't check multibyte_p for returning
9476 DEFAULT_FACE_ID.
9477 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
9478 FACE_SUITABLE_FOR_CHARSET_P.
9479 (syms_of_xfaces): Remove code for Qx_charset_registry and
9480 Vface_default_registry.
9481
6c4bfdc0
KH
9482 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
9483 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
9484 (x_per_char_metric): Don't try FONT->default_char. Even if
9485 pcm->width is zero, glyph bits may exist.
9486 (x_encode_char): Always initialize char2b->byte1.
9487 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
9488 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
9489 changed.
9490 (x_append_glyph): Set glyph->glyph_not_available_p.
9491 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
9492 it->charset. Handle the case that per char metric is not
9493 available. If it->multibyte_p is zero and it->c is a multibyte
9494 character, convert it to a unibyte character.
9495 (struct glyph_string): Delete member `charset'.
9496 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
9497 the case that per char metric is not available correctly.
9498 (x_fill_glyph_string): Handle the case that the specific glyph is
9499 not available correctly.
9500 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
9501 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
9502 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
9503 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
9504 fontset. Don't call FS_LOAD_FONT.
9505
9506 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
9507 (x_create_tip_frame): Likewise.
9508 (Fx_close_connection): Free full_name of font_info.
9509
9510 * fns.c (optimize_sub_char_table): New function.
9511 (Foptimize_char_table): New function.
9512 (syms_of_fns): Defsubr Soptimize_char_table.
9513
b33dd3b0
GM
95142000-03-20 Gerd Moellmann <gerd@gnu.org>
9515
9516 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
9517 only if buffer is displayed in some window.
9518
9519 * xdisp.c (handle_single_display_prop): Initialize local `value'.
9520 (try_window_reusing_current_matrix): Don't call scroll run
9521 function if run's current and desired position are the same;
9522 this prevents cursor flickering.
9523
4e8a9132
SM
95242000-03-19 Stefan Monnier <monnier@cs.yale.edu>
9525
9526 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
9527
9528 * regex.c (RE_STRING_CHAR): New macro.
9529 (GET_CHAR_AFER_2): Remove.
9530 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
9531 (enum re_opcode_t): Remove on_failure_jump_exclusive.
9532 (print_partial_compiled_pattern, re_compile_fastmap)
9533 (re_match_2_internal): Remove on_failure_jump_exclusive.
9534 (regex_compile): Turn optimizable P+ loops into PP*, so that the
9535 optimization only need to work for * (ie. can use of_keep_string_jump).
9536 Remove the special case for .*\n since it is now covered by the general
9537 optimization.
9538 (re_search_2): Don't bother with `room'.
9539 (skip_one_char): New function.
9540 (skip_noops): Simplify since `memory' is not needed any more.
9541 (mutually_exclusive_p): Restructure slightly to use `switch' and
9542 add handling for "all" remaining cases.
9543 (re_match_2_internal): Change on_failure_jump_smart to use
9544 on_failure_keep_string_jump (and redirect the end-of-loop jump)
9545 rather than on_failure_jump_exclusive.
9546
2136fdd4
GM
95472000-03-19 Gerd Moellmann <gerd@gnu.org>
9548
9549 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
9550 number of bits per RGB because it's everywhere used as the depth
9551 of the visual.
9552
9553 * term.c (calculate_costs): Remove code dealing with X frames.
9554
18e21ce8 95552000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
9556
9557 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
9558
d7b511c4
GM
95592000-03-18 Gerd Moellmann <gerd@gnu.org>
9560
9561 * lread.c (read_integer): Unread the last char not consumed.
9562
16b5d424
GM
95632000-03-17 Gerd Moellmann <gerd@gnu.org>
9564
9565 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 9566 which are in the process of being deleted.
16b5d424 9567
1fa28578
GM
95682000-03-16 Gerd Moellmann <gerd@gnu.org>
9569
83488cce
GM
9570 * Makefile.in (mostlyclean): Add `*.core'.
9571 (clean): Add `bootstrap-emacs'.
9572
1fa28578
GM
9573 * lread.c (read_integer): New function.
9574 (read1): Support read syntax #o, #x, #b, #r.
9575
99633e97
SM
95762000-03-15 Stefan Monnier <monnier@cs.yale.edu>
9577
1fa28578
GM
9578 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
9579 make sure POINTER_TO_OFFSET gives the same value before and after
9580 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
9581 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
9582 (debug): Now only active if > 0 rather than if != 0.
9583 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
9584 (print_partial_compiled_pattern): Add missing `succeed' case. Use
9585 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
9586 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
9587 (store_op1, store_op2, insert_op1, insert_op2)
9588 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
9589 (group_in_compile_stack): Move to after its arg's types are
9590 declared and add a prototype.
99633e97 9591 (PATFETCH): Define in terms of PATFETCH_RAW.
1fa28578
GM
9592 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
9593 wrapper.
99633e97 9594 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
9595 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
9596 indentation of the greedy-op and shy-group code.
99633e97
SM
9597 (at_(beg|end)line_loc_p): Fix argument's types.
9598 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
9599 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
9600 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
9601 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
9602 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
9603 QUIT unconditionally.
99633e97 9604
699238d9
GM
96052000-03-15 Gerd Moellmann <gerd@gnu.org>
9606
9607 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
9608 a sole completion.
9609
9610 * process.c (send_process): Add a hint that the function
9611 can call Lisp code to its comment.
9612
9613 * lread.c (load_dangerous_libraries): New variable.
9614 (Vbytecomp_version_regexp): New variable.
9615 (safe_to_load_p): New function.
9616 (Fload): Handle files not compiled with Emacs specially.
9617 (syms_of_lread): New Lisp variable load-dangerous-libraries.
9618
34e23e5a
GM
96192000-03-14 Gerd Moellmann <gerd@gnu.org>
9620
9c763cca
GM
9621 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
9622
9623 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
9624 support functions only if HAVE_X11R6_XIM is defined.
9625 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
9626
9627 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
9628
9629 * xfns.c (X_I18N_INHIBITED): Don't define.
9630 (create_frame_xic): Remove conditional compilation on
9631 X_I18N_INHIBITED.
9632 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
9633
9634 * config.in (HAVE_X_I18N): Moved here from xterm.h.
9635 (HAVE_X11R6_XIM): Define.
9636
9637 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
9638
34e23e5a
GM
9639 * xterm.c (x_term_init): Add support for X resource `synchronous'.
9640 If set, call XSynchronize.
9641
66f0296e
SM
96422000-03-13 Stefan Monnier <monnier@cs.yale.edu>
9643
34e23e5a
GM
9644 * regex.c: Declare a new type `re_char' used throughout the code
9645 for the string char type. It's `const unsigned char' to match the
9646 rest of Emacs. Consistently make sure all pointers to strings use
9647 it and make sure all pointers into the pattern use `unsigned
9648 char'.
66f0296e 9649 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
9650 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
9651 code duplication.
66f0296e
SM
9652
9653 * charset.h (GET_CHAR_AFTER_2): Remove.
9654 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
9655
854a025c
KR
96562000-03-12 Ken Raeburn <raeburn@gnu.org>
9657
9658 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
9659 variable before the invocation of YMF_PASS_LDFLAGS, in case both
9660 of them try to use backquotes.
9661
b9d2c7e2
DL
96622000-03-12 Dave Love <fx@gnu.org>
9663
9664 * unexelf.c: Restore changes of 1999-10-19.
9665 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
9666 fix its type and alignment; copy it from current process.
9667
5e5dff44
GM
96682000-03-12 Gerd Moellmann <gerd@gnu.org>
9669
9b2f3c38
GM
9670 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
9671 has been found. Fix bug not computing timer's predecessor.
9672
427ec082 9673 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
9674 file name.
9675
e1cff360
GM
9676 * window.c (Fsave_window_excursion): Doc fix.
9677
5e5dff44
GM
9678 * xfns.c (x_defined_color): Rewritten to use
9679 x_allocate_nearest_color.
9680
e411ce4b
EZ
96812000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
9682
9683 * msdos.c (vga_installed): New function, code moved from
9684 dos_set_window_size.
9685 (Qbar, Qcursor_type, outside_cursor): New variables.
9686 (syms_of_msdos): Intern and staticpro them.
9687 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
9688 shape used outside Emacs when called for the first time.
9689 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
9690 cursor shape used outside Emacs.
9691 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
9692 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
9693 type has changed.
9694 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
9695 parameters specify the cursor. Make qreverse a global
9696 variable (renamed to Qreverse).
9697
80460654
GM
96982000-03-09 Gerd Moellmann <gerd@gnu.org>
9699
9700 * fns.c (Fy_or_n_p): Cancel busy-cursor.
9701
95cd4c40
SM
97022000-03-08 Stefan Monnier <monnier@cs.yale.edu>
9703
9704 This is a big redesign of failure-stack and register handling, prompted
9705 by bugs revealed when trying to add shy-groups. Overall, what happened
9706 is that loops are now structured a little differently, groups can be
9707 shy and the code is a little simpler.
9708
9709 * regex.h: Update the copyright.
9710 (RE_SHY_GROUPS): New value.
9711 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
9712 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
9713
80460654
GM
9714 * regex.c (enum re_opcode_t): Remove jump_past_alt,
9715 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
9716 on_failure_jump_(exclusive, loop and smart). Also fix the comment
9717 for (start|stop)_memory since they now only take one argument (the
9718 second has becomes unnecessary).
9719 (print_partial_compiled_pattern): Adjust for changes in
9720 re_opcode_t.
9721 (print_compiled_pattern): Use %ld to printf long ints and flush to
9722 make debugging a little easier.
95cd4c40
SM
9723 (union fail_stack_elt): Make the integer unsigned.
9724 (struct fail_stack_type): Add a `frame' element.
9725 (INIT_FAIL_STACK): Init `frame' as well.
9726 (POP_PATTERN_OP): New macro for re_compile_fastmap.
9727 (DEBUG_PUSH, DEBUG_POP): Remove.
9728 (NUM_REG_ITEMS): Remove.
9729 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
9730 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
9731 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 9732 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
80460654
GM
9733 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
9734 macros.
9735 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
9736 address pushed is not the destination of the jump but the source
9737 of it instead.
95cd4c40
SM
9738 (NUM_FAILURE_ITEMS): Remove.
9739 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
9740 registers before the actual failure point). Don't hardcode any
9741 meaning for str==NULL anymore.
95cd4c40 9742 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
9743 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
9744 Remove.
95cd4c40
SM
9745 (REG_UNSET_VALUE): Use NULL (why not?).
9746 (compile_range): Remove declaration since it doesn't exist.
9747 (struct compile_stack_elt_t): Remove inner_group_offset.
9748 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
9749 (regex_grow_registers): Remove dead code.
9750 (FIXUP_ALT_JUMP): New macro.
80460654
GM
9751 (regex_compile): Add shy-groups Change loops to use
9752 on_failure_jump_smart&jump instead of
9753 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
9754 initial (dummy_failure_)jump. Remove c1_base (looks like unused
9755 variable to me). Use `jump' instead of `jump_past_alt' and don't
9756 bother with push_dummy_failure in alternatives since it is now
9757 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
9758 emacs' for (re)allocating the stack.
9759 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
9760 from loop when bufp->can_be_null rather than jumping to `done'.
9761 Avoid jumping backwards so as to ensure termination. Use
9762 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
9763 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 9764 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
9765 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
9766 improve mutually_exclusive_p to handle ".+\n".
9767 (lowest_active_reg, highest_active_reg,
9768 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
9769 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
9770 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
9771 variables. Push register (in `start_memory') on the stack rather
9772 than storing it in old_reg(start|end). Remove the cycle detection
9773 from `stop_memory', replaced by the use of on_failure_jump_loop
9774 for greedy loops. Add code for the new on_failure_jump_<foo>.
9775 Remove ad-hoc code in `on_failure_jump' to push more registers in
9776 the case of a loop. Take out code from `maybe_pop_jump' into
9777 separate functions and adapt it to the semantics of
9778 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
9779 and push_dummy_failure. Remove dummy_failure handling and
9780 handling of `failures to jump to on_failure_jump' (this last one
9781 was already dead code, it seems).
9782 (group_match_null_string_p, alt_match_null_string_p)
9783 (common_op_match_null_string_p): Remove.
95cd4c40 9784
7397acc4
DL
97852000-03-08 Dave Love <fx@gnu.org>
9786
9787 * config.in: Don't depend on __STDC__ for volatile.
9788 Add POINTER_TYPE, PTR, PROTOTYPES.
9789
9790 * hftctl.c, strftime.c: Use PROTOTYPES.
9791 * eval.c (find_handler_clause): Likewise.
9792
9793 * mem-limits.h: Use POINTER_TYPE.
9794
9795 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
9796 (memory_warnings): Declare using POINTER_TYPE.
9797
5e91ff9e
GM
97982000-03-08 Gerd Moellmann <gerd@gnu.org>
9799
feab4fba
GM
9800 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
9801
25edb08f
GM
9802 * xdisp.c (display_echo_area): Temporarily inhibit garbage
9803 collection.
9804
5e91ff9e
GM
9805 * xfns.c: Remove obsolete code in #if 0.
9806 (Fx_focus_frame): New function.
9807
a735b7e1
KH
98082000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
9809
9810 * coding.c (coding_category_name): Add coding-category-utf-8,
9811 coding-category-utf-16-be, coding-category-utf-16-le.
9812 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
9813 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
9814 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
9815 (detect_coding_utf_8): New function.
9816 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
9817 UTF_16_LOW_SURROGATE_P): New macros.
9818 (detect_coding_utf_16): New function
9819 (detect_coding_mask): When priorities are specified, skip any
9820 categories that have `nil' coding-system. Fix bug of returning
9821 wrong mask when PRIORITIES is specified and detect_coding_XXX()
9822 returns a mask not set in PRIORITIES.
9823 (detect_eol_type_in_2_octet_form): New function.
9824 (detect_eol): selects detect_eol_type_XXX to call according to
9825 cooding->category_idx.
9826 (detect_coding_system): Remove `nil' coding-system in the result.
9827 (Fupdate_coding_systems_internal): Update all coding-categories.
9828
9829 * coding.h (CODING_CATEGORY_IDX_UTF_8,
9830 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
9831 macros.
9832 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
9833 CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
9834 CODING_CATEGORY_IDX_UTF_16_LE.
9835 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
9836 CODING_CATEGORY_MASK_UTF_16_LE): New macros.
9837 (CODING_CATEGORY_MASK_ANY): Include the above macros.
9838 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
9839
9994cc69
GM
98402000-03-07 Gerd Moellmann <gerd@gnu.org>
9841
e9b4e5ff
GM
9842 * doc.c (Fdocumentation_property): If value is not a string,
9843 and doesn't refer to etc/DOC, evaluate it to obtain a string.
9844
f7daf1e1
GM
9845 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
9846 close the display with XtCloseDisplay. This caused a bus error
9847 on OpenWindows.
9848
9994cc69
GM
9849 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
9850 complete but not unique.
9851
4336c705
GM
98522000-03-06 Gerd Moellmann <gerd@gnu.org>
9853
18bb0684
GM
9854 * process.c (send_process): Remove local variable `procname' that
9855 might become invalid when a GC happens. Instead, access the
9856 process name slot directly.
9857
4336c705
GM
9858 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
9859 orig_height if set.
9860
9861 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
9862 orig_height if set.
9863
515d0d0e
EZ
98642000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
9865
9866 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
9867 glyph matrices have been freed.
9868
100b3cbb
GM
98692000-03-05 Gerd Moellmann <gerd@gnu.org>
9870
50df5e5a 9871 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 9872 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
9873
9874 * xfns.c (QCdata): Moved to xdisp.c.
9875
9876 * xdisp.c (QCdata): Moved here from xfns.c.
9877 (syms_of_xdisp): Initialize QCdata.
9878
9879 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
9880
9881 * window.c (coordinates_in_window): Use
9882 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
9883 FRAME_INTERNAL_BORDER_WIDTH.
9884
100b3cbb 9885 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 9886 it is obviously invalid.
100b3cbb
GM
9887
9888 * xterm.c (x_term_init): Create a colormap if not using the
9889 default visual.
9890
9891 * xterm.h (select_visual): Change prototype.
9892
9893 * xfns.c (select_visual): Rewritten. Recognize user-specified
9894 visual classes.
9895 (visual_classes): New variable.
9896
64d739c4
GM
98972000-03-04 Gerd Moellmann <gerd@gnu.org>
9898
9899 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
9900 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
9901 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
9902 (x_decode_color): Don't handle allocation of white and black
9903 specially.
9904 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
9905 XtNcolormap resources.
9906 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
9907 (Fx_create_frame): Initialize color members of x_output structure.
9908 (xpm_load): Pass colormap to XPM lib.
9909
9910 * xfaces.c (x_free_colors): Access colormap of frame using
9911 FRAME_X_COLORMAP. Be paranoid about freeing black and white
9912 when default colormap is used.
9913
9914 * xterm.c (x_term_init): Set Colormap member of x_display_info
9915 structure. Copy colormap if resource `privateColormap' is
9916 specified (PseudoColor only).
9917 (x_setup_relief_color): Access colormap of frame using
9918 FRAME_X_COLORMAP.
9919
9920 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
9921 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
9922
c3cee013
JR
99232000-03-04 Jason Rumney <jasonr@gnu.org>
9924
9925 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
9926 other non-platform-specific equivalents.
64d739c4 9927 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
9928 specific functions and macros as their w32 equivalents where
9929 non-platform-specifics are not available.
9930 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
9931 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
9932 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
9933 (frame_update_line_height): Use macros to access f->output_data.
9934 (defined_color): Remove FIXME comments; fixed.
9935 (x_face_list_fonts, prepare_face_for_display): Put X specifics
9936 into #ifdef blocks. Add WINDOWSNT blocks.
9937 (Fx_list_fonts): Use macros for accessing font data.
9938 (set_lface_from_font_name): Different default fonts for X and
9939 WINDOWSNT.
9940 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
9941 scalable for backward compatibility.
64d739c4 9942 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
9943 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
9944
64d739c4 9945 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
9946 syms_of_w32faces.
9947
9948 * makefile.nt (w32faces.obj): Remove.
9949 (xfaces.obj): Add.
9950
807cc41c
JR
99512000-03-03 Jason Rumney <jasonr@gnu.org>
9952
9953 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
9954 correct parameters.
9955
0007072a
KR
99562000-03-03 Ken Raeburn <raeburn@gnu.org>
9957
9958 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
9959 standard ELF definitions here if the system header does not.
9960
71a6ba55
GM
99612000-03-03 Gerd Moellmann <gerd@gnu.org>
9962
9963 * xterm.c (PER_CHAR_METRIC): Removed.
9964 (x_per_char_metric_1, x_default_char): New functions.
9965 (x_per_char_metric): If font's default char is invalid, return
9966 metrics of a suitably chosen usable default char.
9967 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
9968 char, replace occurrences of unprintable chars with a suitably
9969 chosen usable default char.
71a6ba55 9970
900fa1f1
GM
99712000-03-02 Gerd Moellmann <gerd@gnu.org>
9972
42f55fe0
GM
9973 * xterm.c (note_mouse_highlight): Return quickly if frame's
9974 glyph matrices have been freed.
9975
9976 * dispnew.c (free_glyphs): Block input while freeing matrices.
9977
900fa1f1
GM
9978 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
9979
9980 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
9981 x_free_colors.
9982
9983 * dispextern.h (x_free_colors): Add prototype.
9984
9985 * xfaces.c (x_free_colors): New function.
9986 (unload_color, free_face_colors): Use it.
9987
2f950292
EZ
99882000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
9989
9990 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
9991
9992 * window.c [MSDOS]: Include msdos.h.
9993
54d04320
DL
99942000-03-02 Dave Love <fx@gnu.org>
9995
9996 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
9997
9998 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
9999 set C_OPTIMIZE_SWITCH for gcc.
10000
0ba93ac4
KH
100012000-03-02 Kenichi Handa <handa@etl.go.jp>
10002
10003 * coding.c (coding_save_composition): Be sure to allocate
10004 composition data area in coding even if there's no composition in
10005 the current run.
10006
a2bc11d4
JR
100072000-03-01 Jason Rumney <jasonr@gnu.org>
10008
10009 * w32term.c: Equivalent changes to those made to xterm.c on
10010 2000-02-25 and 2000-02-24.
10011
10012 * w32fns.c: Equivalent changes to those made to xfns.c on
10013 2000-02-25 and 2000-02-21.
10014
10015 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
10016 correct line-end convention is followed.
10017
10018 * w32menu.c [HAVE_BOXES]: Remove #undef.
10019 (single_keymap_panes): Remove code for simulating checkmarks.
10020 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
10021 Remove code for drawing simulated checkmarks.
10022 (w32_menu_show): make unibyte help string correctly.
10023 (add_menu_item): draw standard Windows checkmarks. Draw radio
10024 buttons as radio buttons if possible.
10025
72d19d75
GM
100262000-03-01 Gerd Moellmann <gerd@gnu.org>
10027
2df636f4
GM
10028 * sysdep.c (start_of_text): Don't define this function for NetBSD
10029 with ELF.
10030
427ec082 10031 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
10032 Don't define.
10033 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
10034 (LINKER): Don't undef if __NetBSD__ is defined.
10035
10036 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
10037
10038 * fileio.c [__NetBSD__]: Define `unix'.
10039
72d19d75
GM
10040 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
10041
ed4d0512
GM
100422000-02-29 Gerd Moellmann <gerd@gnu.org>
10043
50b1039f
GM
10044 * atimer.c (start_atimer): Don't abort when timers are stopped.
10045 (append_atimer_lists): New function.
10046 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
10047 arbitrary lists of stopped and running atimers.
10048
ed4d0512
GM
10049 * atimer.c (cancel_atimer): Handle canceling an atimer when
10050 some timers are stopped.
10051
10052 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
10053 after canceling it.
10054
10055 * fns.c (maybe_resize_hash_table): Handle case of new size
10056 coming out as being the same as old size.
10057
387023ee
JR
100582000-02-27 Jason Rumney <jasonr@gnu.org>
10059
10060 * makefile.nt: Add atimer.h to dependencies.
10061 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
10062 * w32console.c: Only disable window system features for dispextern.h
10063 (initialize_w32_display): Build a display info for the console.
10064 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
10065 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
10066 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
10067 as 2 button mice.
10068 * w32gui.h (struct W32FontStruct): Revert last change after change
10069 to xdisp.c.
10070 * w32menu.c (single_submenu): Set up help string.
10071 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
10072 (w32_dialog_show): Set up help string.
10073 * w32term.c (w32_display_info_for_display): Remove unused function.
10074 (w32_draw_bitmap): Use pre-built bitmaps.
10075 (w32_initialize_display_info): New function to initialize parts of
10076 display info that are common to both GUI and console frames.
10077 (w32_term_init): Use w32_initialize_display_info. Do not set
10078 Vw32_num_mouse_buttons here, as it is not called for console
10079 frames. Build bitmaps for indicating truncated lines etc.
10080 (x_delete_display): Destroy pre-built bitmaps.
10081 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
10082 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
10083
4516715a
DL
100842000-02-27 Dave Love <fx@gnu.org>
10085
10086 * lisp.h: Add a bunch of prototypes.
10087
171ca836
KH
100882000-02-26 Kenichi Handa <handa@etl.go.jp>
10089
10090 * keyboard.c (read_char): Set `usec' correctly.
10091
4013921d
KH
100922000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
10093
10094 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
10095 `lambda', set reg[RRR] to the map index.
10096 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
10097 reg[RRR] to 0. Otherwise, set it to -1.
10098
9244a058
GM
100992000-02-25 Gerd Moellmann <gerd@gnu.org>
10100
2df636f4 10101 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 10102
18e21ce8 101032000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 10104
f43d79c1
GM
10105 * fileio.c (Ffile_symlink_p): If result starts with a `/'
10106 and contains a `:', prepend `/:'.
10107
10108 * window.c (select_window_1): If selected_window is nil,
10109 don't "swap out" the buffer's point.
10110 (Fset_window_configuration): Set selected_window to nil
10111 before calling Fselect_window.
10112 (unshow_buffer): Don't set point in buffer from window's point
10113 if another more recently selected window also shows the buffer.
10114
bed0c171
GM
101152000-02-25 Gerd Moellmann <gerd@gnu.org>
10116
449c3c52
GM
10117 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
10118
f5b58615
GM
10119 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
10120 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
10121 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
10122 variables.
10123 (DEFAULT_BUSY_CURSOR_DELAY): New define.
10124 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
10125 (hide_busy_cursor): New functions.
10126 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
10127
10128 * minibuf.c (read_minibuf): Cancel busy-cursor.
10129
10130 * keyboard.c (command_loop_1): Call start_busy_cursor before
10131 Fcommand_execute and cancel_busy_cursor after it.
10132 (timer_check): Remove busy-cursor code.
10133 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
10134 cursor timer.
10135
10136 * process.c (wait_reading_process_input): Remove busy-cursor code.
10137
10138 * eval.c (Fsignal): Call cancel_busy_cursor instead of
10139 Fx_hide_busy_cursor.
10140
10141 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
10142 Remove prototyoes.
10143 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
10144
10145 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
10146
10147 * xterm.c (XTread_socket): Remove busy-cursor code.
10148
4eb8436f
GM
10149 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
10150 (build_frame_matrix_from_leaf_window): Put code handling
10151 glyph row's not being a slice of a frame row in #if 0.
10152 (sync_window_with_frame_matrix_rows): New function.
10153 (frame_row_to_window): New function.
10154 (mirror_line_dance): Handle copies between windows.
10155
3cb65b0e
GM
10156 * lread.c (Fload): Use `xfree' instead of `free'.
10157 (init_obarray): Use `xmalloc' instead of `malloc'.
10158
bed0c171
GM
10159 * window.c (Fset_window_buffer): Set WINDOW to the window
10160 after decoding.
2add4349
GM
10161 (coordinates_in_window): Take frame's internal border width
10162 into account.
bed0c171 10163
42088c12
GM
101642000-02-24 Gerd Moellmann <gerd@gnu.org>
10165
10166 * xterm.c (x_display_and_set_cursor): Display cursor of
10167 non-selected windows depending on the setting of
10168 cursor_in_non_selected_windows.
10169
10170 * xdisp.c (cursor_in_non_selected_windows): New variable.
10171 (syms_of_xdisp): DEFVAR_BOOL it.
10172
d1e103b2
GM
101732000-02-23 Gerd Moellmann <gerd@gnu.org>
10174
723e779c
GM
10175 * data.c (Fstring_to_number): If number is greater than what
10176 fits into an integer, return a float.
10177
d1e103b2
GM
10178 * eval.c (specbind): Remove references to
10179 keyword_symbols_constant_flag.
10180
10181 * data.c (keyword_symbols_constant_flag): Removed.
10182 (Fmakunbound, set_internal, syms_of_data): Remove references to
10183 keyword_symbols_constant_flag.
10184
10185 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
10186
214f877f
KH
101872000-02-23 Kenichi Handa <handa@etl.go.jp>
10188
10189 * syntax.c (multibyte_syntax_as_symbol): New variable.
10190 (syms_of_syntax): Declare it as a Lisp variable.
10191 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
10192 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
10193 nonzero, treat all multibyte characters as symbol.
42088c12 10194 (init_syntax_once): Give syntax `word' to all multibyte
214f877f
KH
10195 characters.
10196
130adcb7
EZ
101972000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
10198
3cb65b0e 10199 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 10200 a deleted frame.
130adcb7 10201
17cbbf95
GM
102022000-02-21 Gerd Moellmann <gerd@gnu.org>
10203
10204 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
10205
10206 * xfns.c (x_window_to_frame, x_any_window_to_frame)
10207 (x_non_menubar_window_to_frame): Check the busy-cursor window.
10208
beb0bc36
DL
102092000-02-21 Dave Love <fx@gnu.org>
10210
10211 * frame.c (Vmouse_position_function): New variable.
10212 (Fmouse_position): Use it.
10213 (syms_of_frame): Install it.
10214
10215 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
10216
1d92afcd
GM
102172000-02-20 Gerd Moellmann <gerd@gnu.org>
10218
10219 * fileio.c (Finsert_file_contents): Unbind the binding of
10220 standard-output done by temp_output_buffer_setup.
329eed9f
GM
10221
10222 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
10223 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
10224 (specbind, unbind_to): Handle most common case of non-constant
10225 symbol with trivial value specially.
10226
10227 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
10228
18e21ce8 102292000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
10230
10231 * data.c (Fmake_variable_buffer_local): Doc fix.
10232 Init found_for_buffer to 0.
10233 (Fmake_variable_frame_local): If the variable has already
10234 been buffer-local, set the check_frame field.
10235
1d4311c3
EZ
102362000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
10237
10238 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
10239 produced for CODING_MODE_LAST_BLOCK requires.
10240
2dc95ddd
DL
102412000-02-18 Dave Love <fx@gnu.org>
10242
10243 * keyboard.c (echo_keystrokes): Remove declaration.
10244 (Vecho_keystrokes) New variable.
10245 (read_char, record_menu_key, read_key_sequence): Use it to allow
10246 use of float value.
10247 (syms_of_keyboard): Change Vecho_keystrokes declaration.
10248
10249 * lread.c: Undef feature selection macros before defining.
10250
f0930f35
GM
102512000-02-18 Gerd Moellmann <gerd@gnu.org>
10252
10253 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
10254 for symbols other than the symbol in question.
10255
e3d4de90
DL
102562000-02-17 Dave Love <fx@gnu.org>
10257
10258 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
10259
0b378936
GM
102602000-02-17 Gerd Moellmann <gerd@gnu.org>
10261
d621caf7
GM
10262 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
10263
0b378936
GM
10264 * alloc.c (enum mem_type): Compile unconditionally.
10265
3b451f74
EZ
102662000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
10267
10268 * xfaces.c (tty_defined_color): Don't return faulire indication
10269 for unspecified-fg and unspecified-bg pseudo-colors.
10270
10689a01
GM
102712000-02-17 Gerd Moellmann <gerd@gnu.org>
10272
1216f5e4
GM
10273 * alloc.c (mark_object): Don't mark symbol names in pure space.
10274 (gc_sweep): Don't unmark symbol names in pure space.
10275
10276 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
10277 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
10278 [GC_MARK_STACK]: New defines.
427ec082 10279 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
10280 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
10281
10282 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
10283
10284 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
10285 allocate_buffer instead of xmalloc.
10286
10287 * alloc.c (toplevel): Include setjmp.h.
10288 (PURE_POINTER_P): New define.
10289 (enum mem_type) [GC_MARK_STACK]: New enumeration.
10290 (Vdead) [GC_MARK_STACK]: New variable.
10291 (lisp_malloc): Add parameter TYPE, call mem_insert if
10292 GC_MARK_STACK is defined.
10293 (allocate_buffer): New function.
427ec082 10294 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
10295 (free_float) [GC_MARK_STACK]: Set type to Vdead.
10296 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
10297 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
10298 (MEM_NIL) [GC_MARK_STACK]: New define.
10299 (struct mem_node) [GC_MARK_STACK]: New structure.
10300 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
10301 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
10302 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
10303 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
10304 (mark_stack) [GC_MARK_STACK]: New functions.
10305 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
10306 (clear_marks): Removed.
10307 (gc_sweep): Set free conses' car, free floats' type, free
10308 symbols' function to Vdead. Use lisp_free to free buffers.
10309 (init_alloc_once): Initialize Vdead.
10310 (survives_gc_p): Return non-zero for pure objects.
10311
10312 * alloc.c: Add comments throughout the file.
10313
2503c8b1
GM
10314 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
10315 that unblocks alarms.
10316
8389e1e2
GM
10317 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
10318 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
10319 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
10320
10689a01 10321 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 10322
bfc17d18
KH
103232000-02-17 Kenichi Handa <handa@etl.go.jp>
10324
4a09dee0
KH
10325 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
10326 avoid infinite error signaling. Allocate sufficient memory for
10327 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 10328
2b927d02
SM
103292000-02-17 Stefan Monnier <monnier@cs.yale.edu>
10330
10331 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
10332 depends on the previous behavior.
10333
b49cb764
GM
103342000-02-16 Gerd Moellmann <gerd@gnu.org>
10335
10336 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
10337
99e95407
GM
103382000-02-15 Gerd Moellmann <gerd@gnu.org>
10339
10340 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
10341
10342 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 10343 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
10344 write(2).
10345
6ffd3cf7
RS
103462000-02-15 Richard M. Stallman <rms@gnu.org>
10347
10348 * data.c (set_internal): Don't make variable buffer-local
10349 if within a let-binding for the same buffer.
10350 (let_shadows_buffer_binding_p): New function.
10351
10352 * eval.c (specbind): For buffer-local value,
10353 record the current buffer also.
10354 (unbind_to): Cope with that change.
10355
cad53475
GM
103562000-02-15 Gerd Moellmann <gerd@gnu.org>
10357
10358 * window.c (Fsave_window_excursion): Doc fix.
10359
1aa963c8
SM
103602000-02-15 Stefan Monnier <monnier@cs.yale.edu>
10361
10362 * syntax.c (back_comment): Make sure we only consider comment-starters
10363 of the relevant style and return -1 in case of a failure to find the
10364 beginning of the comment.
10365 (Fforward_comment): If back_comment fails, go back to the position just
10366 after the comment-end.
10367 (scan_lists): Add comment describing a very minor bug.
10368
b9b84fd3
SM
103692000-02-14 Stefan Monnier <monnier@cs.yale.edu>
10370
10371 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
10372 `completion-regexp-list' in the docstring.
10373
3a28db80
DL
103742000-02-14 Dave Love <fx@gnu.org>
10375
10376 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
10377
fb4a568d
SM
103782000-02-14 Stefan Monnier <monnier@cs.yale.edu>
10379
10380 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
10381 to Emacs' syntax. Also fix the comment about set/not-set meanings
10382 since Emacs syntax is not the value 0 any more.
10383 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
10384 since it's now part of RE_SYNTAX_EMACS.
10385
1063ebb5
DL
103862000-02-12 Dave Love <fx@gnu.org>
10387
10388 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
10389 Alpha.
10390
fb07a302
GM
103912000-02-12 Gerd Moellmann <gerd@gnu.org>
10392
10393 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
10394
aaf2320c
DL
103952000-02-12 Dave Love <fx@gnu.org>
10396
10397 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
10398
10399 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
10400 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
10401 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
10402
10403 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
10404
10405 * s/nextstep.h: Don't define HAVE_ALLOCA.
10406
10407 * config.in: Add vfork bits.
10408
eedf8bde
GM
104092000-02-12 Gerd Moellmann <gerd@gnu.org>
10410
10411 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
10412 unwind function to undo the effect of stopping atimers.
10413
10414 * keyboard.c (bind_polling_period): Stop all timers except
10415 poll_timer.
10416
10417 * atimer.c (stopped_atimers): New variable.
10418 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
10419 New functions.
10420
10421 * atimer.h (stop_other_atimers, run_all_atimers)
10422 (unwind_stop_other_atimers): Add function prototypes.
427ec082 10423
eedf8bde
GM
10424 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
10425
8476c2f8
KR
104262000-02-11 Ken Raeburn <raeburn@gnu.org>
10427
10428 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
10429 library may depend on jpeg.
10430 (atimer.o): Depends on atimer.c.
10431
0e85e4a3
KH
104322000-02-11 Kenichi Handa <handa@etl.go.jp>
10433
10434 * insdel.c (del_range_1): Call update_compositions.
10435 (del_range_both): Call update_compositions just once..
10436
97fa0cc8
DL
104372000-02-10 Dave Love <fx@gnu.org>
10438
10439 * xfns.c (create_frame_xic): Fix initialization of automatic
10440 aggregates for pcc.
10441
25566a3c
KH
104422000-02-09 Kenichi Handa <handa@etl.go.jp>
10443
10444 * ccl.c (CCL_MAKE_CHAR): New macro.
10445 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
10446 registers by CCL_MAKE_CHAR before calling translate_char.
10447 <CCL_TranslateCharacterConstTbl> Likewise.
10448
69da54ba
DL
104492000-02-08 Dave Love <fx@gnu.org>
10450
10451 * lread.c (__EXTENSIONS__): Define.
10452
f7136ee8
GM
104532000-02-08 Gerd Moellmann <gerd@gnu.org>
10454
10455 * puresize.h (BASE_PURESIZE): Increase to 650000.
10456
7768790b
EZ
104572000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
10458
10459 * msdos.c (XMenuActivate): Turn off the cursor after displaying
10460 the help message.
10461
38fd211b
EZ
104622000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
10463
10464 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
10465 md, mh, mb, mr, and me to the fake termcap entry.
10466
66e4690f
KR
104672000-02-06 Ken Raeburn <raeburn@gnu.org>
10468
10469 * sound.c (sound_cleanup): Don't call device close routine if the
10470 function pointer is null.
10471
a75dfea0
AI
104722000-02-06 Andrew Innes <andrewi@gnu.org>
10473
10474 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
10475 around image definitions and prototypes.
10476 (gamma_correct) [WINDOWSNT]: New prototype.
10477
10478 * w32term.c (x_make_frame_visible): Replace call to
10479 input_poll_signal with poll_for_input.
10480
10481 * window.c [WINDOWSNT]: Include w32term.h.
10482
10483 * xdisp.c [WINDOWSNT]: Include w32term.h.
10484
10485 * makefile.nt: Add dependencies on w32gui.h.
10486 (OBJ1): Include atimer.obj.
10487 ($(BLD)\atimer.obj): New dependency rule.
10488
10489 * w32.c (sigmask): New function (does nothing).
10490 (sigunblock): Ditto.
10491
10492 * frame.c [WINDOWSNT]: Include w32term.h.
10493
10494 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
10495
10496 * lread.c (syms_of_lread): Fix literal newlines.
10497
10498 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
10499 the string constant limit (2048 bytes) in MSVC.
10500 (main): Ditto.
10501
59ddecde
GM
105022000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
10503
10504 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
10505 area.
10506 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
10507 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
10508 dispatch the event.
10509
07590973
DL
105102000-02-04 Dave Love <fx@gnu.org>
10511
10512 * fileio.c: Remove some unused vars.
10513 (_GNU_SOURCE): Define (for euidaccess).
10514
10515 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
10516
10517 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
10518 gcpro1, gcpro2.
10519 (read_minibuf): Deal with allow_props correctly.
10520
649351f9
EZ
105212000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
10522
10523 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
10524
66e4690f 105252000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
10526
10527 * search.c (compile_pattern): If a cache entry has a nil regexp,
10528 fill in that entry instead of clobbering a previously cached
10529 string regexp.
10530
66e4690f 105312000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
10532
10533 * puresize.h (BASE_PURESIZE): Increase to 610000.
10534
d240a249
GM
105352000-02-02 Gerd Moellmann <gerd@gnu.org>
10536
10537 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
10538 can GC.
10539
ca91fb26
KH
105402000-02-02 Kenichi Handa <handa@etl.go.jp>
10541
25660570
KH
10542 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
10543 instead of incrementing ic directly.
10544 <CCL_WriteExprConst> Likewise.
10545 <ccl_set_expr>: Set ic to jump_address.
10546
ca91fb26
KH
10547 * fileio.c (e_write): Fix the handling of
10548 CODING_FINISH_INSUFFICIENT_SRC.
10549
2ede9689
DL
105502000-02-01 Dave Love <fx@gnu.org>
10551
10552 * editfns.c (Fpropertize): Doc fix.
10553
10554 * process.c (Fstart_process): Doc fix.
10555
10556 * eval.c: Fix various doc strings not to duplicate information
10557 from help-manyarg-func-alist.
10558
10559 * window.c (Fset_window_margins): Don't make interactive. Doc
10560 fix.
10561
10562 * doc.c (Vhelp_manyarg_func_alist): New variable.
10563 (Fdocumentation): Use it.
10564 (syms_of_doc): Define it.
10565
b6680a0e
GM
105662000-01-31 Gerd Moellmann <gerd@gnu.org>
10567
2cb750ba
GM
10568 * xterm.c (xim_open_dpy): Remove unused local variable.
10569
74e9213b
GM
10570 * emacs.c (USAGE): Use term `display options' instead of `X
10571 options'.
10572
10573 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
10574 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
10575
b6680a0e
GM
10576 * fns.c (sweep_weak_table): New function.
10577 (sweep_weak_hash_tables): Use it. Keep on marking until there
10578 is no more change.
10579
994c5afe
GM
105802000-01-30 Gerd Moellmann <gerd@gnu.org>
10581
10582 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
10583 that XTread_socket does not crash by trying to call XNoOp on a
10584 closed display.
427ec082 10585
f00276e3
JR
105862000-01-30 Jason Rumney <jasonr@gnu.org>
10587
10588 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
10589 Change selected_frame to SELECTED_FRAME ().
10590 (w32_console_mouse_position): Remove #ifndef MULE from around
10591 `insist' parameter.
10592
10593 * makefile.nt: Remove dosfns.obj.
10594
10595 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
10596
10597 * w32fns.c (w32_defined_color): Check for valid frame before
10598 applying gamma correction. Eliminate dependency on frame elsewhere.
10599 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
10600 (w32_to_x_font): Use resx and resy not height_in and width_in.
10601 (x_to_w32_font): Doc fix.
10602 (xlfd_strip_height): New function to strip and return font height.
10603 (w32_font_match): Compare height separately from rest of xlfd
10604 spec, using xlfd_strip_height.
10605
10606 * w32term.c (w32_term_init): Swap resx and height_in, resy and
10607 width_in. Use w32_defined_color in place of defined_color.
10608
10609 * w32faces.c: Merge more of DOS and X specifics in preparation for
10610 merge with xfaces.c.
10611 (defined_color): Remove FIXME comment.
10612 (tty_color_name): Provide w32-specific function.
10613 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
10614
10615 * w32console.c (turn_on_face, turn_off_face): Removed.
10616 (w32_face_attributes): New function.
10617 (Global_variables): Reduce scope where possible.
10618 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
10619 fill attribute.
10620 (hl_mode): Don't modify text attributes.
10621 (write_glyphs): Don't do anything if len <= 0. Use
10622 w32_face_attributes to get attributes for drawing. Write
10623 terminating codes using char_attr_normal.
10624 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
10625 (update_begin, update_end): Likewise.
10626 (vga_stdcolor_name): New function.
10627 (initialize_w32_display): Remove char_attr_reverse and char_attr.
10628 (Fset_screen_color): Remove char_attr_reverse.
10629
b08e8bb2
GM
106302000-01-29 Gerd Moellmann <gerd@gnu.org>
10631
10632 * xfns.c (xic_set_preeditarea): Take window parameter and
10633 window-relative pixel-positions.
10634
10635 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
10636 is its frame's selected window.
10637 (xim_instantiate_callback): Likewise.
10638
10639 * xfns.c (x_create_im): Removed.
10640 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
10641 (supported_xim_styles): Renamed from supported_styles.
10642 (best_xim_style): Renamed from best_style.
10643 (create_frame_xic): Renamed from xic_create_frame.
10644 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 10645
b08e8bb2
GM
106462000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
10647
10648 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
10649 our frames, call XFilterEvent with 2nd parameter `None'.
10650 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
10651 returning XBufferOverflow.
10652 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
10653 area.
10654 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
10655 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
10656 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
10657 (xim_initialize, xim_close)
10658 [HAVE_X_I18N && HAVE_X11R6]: New functions.
10659 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
10660 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
10661 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
10662
10663 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
10664 and `xim_styles'.
10665 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
10666 `xic_style' and `xic_xfs'.
10667 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
10668 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
10669 (FRAME_XIM): Removed.
10670
10671 * xfns.c (supported_styles): New variable.
10672 (DEFAULT_STYLE, DEFAULT_FONT): New macros
10673 (xic_create_xfontset, best_style, xic_create_frame)
10674 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
10675 (xic_set_xfontset): New functions.
10676
142e109c
DL
106772000-01-28 Dave Love <fx@gnu.org>
10678
10679 * s/irix6-5.h: Revert last change after change to irix5-0.h.
10680
10681 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
10682
b02786f9
GM
106832000-01-28 Gerd Moellmann <gerd@gnu.org>
10684
d060bc9f
GM
10685 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
10686 for *scratch* if it already existed.
10687
b02786f9
GM
10688 * emacs.c (USAGE): New macro.
10689 (main): Use it to display usage information.
10690
2c52d7e4
EZ
106912000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
10692
10693 Support for the menu-help feature:
10694
10695 * msdos.h: Change prototypes of XMenuAddSelection and
10696 XMenuActivate.
10697
10698 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
10699 part of the line to the termscript file.
10700 (IT_clear_to_end): Clear the entire line, not just its beginning.
10701 (menu_help_message, prev_menu_help_message): New variables.
10702 (IT_menu_make_room): Make room for the help_text member.
10703 (IT_menu_display): New argument disp_help; all callers changed.
10704 If disp_help is non-zero, store the help text of the active menu
10705 item in menu_help_message.
10706 (XMenuAddPane): Initialize the help_text member to NULL.
10707 (XMenuAddSelection): New argument help_text. Store it in the
10708 XMenu structure.
10709 (XMenuActivate): New argument help_callback. If the value of
10710 menu_help_message has changed since the last time, display the
10711 menu help message text while waiting for the mouse to move. Clear
10712 the echo area before exiting.
10713 (XMenuDestroy): Free the help_text member.
10714
ffe0bcd1
GM
107152000-01-27 Gerd Moellmann <gerd@gnu.org>
10716
10717 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
10718 XMenuAddSelection. Pass help callback to XMenuActivate.
10719 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
10720
50dbd23f
EZ
107212000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
10722
10723 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
10724 and EMACS_SET_USECS.
10725
f5941bf8
GM
107262000-01-26 Dave Love <fx@gnu.org>
10727
6c67ddee
DL
10728 * editfns.c (Fchar_after, Fchar_before): Doc fix.
10729
f5941bf8
GM
10730 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
10731 an error may be signalled.
10732
9e49c990
GM
107332000-01-26 Gerd Moellmann <gerd@gnu.org>
10734
fc3cb460
GM
10735 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
10736 LD_SWITCH_SYSTEM inherited from irix5-0.h.
10737
9e49c990
GM
10738 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
10739
d0c037d8
GM
107402000-01-25 Gerd Moellmann <gerd@gnu.org>
10741
10742 * charset.c (Fstring): If there is a multibyte char among
10743 the args, always return a multibyte string.
10744
e12489f9
GM
107452000-01-25 Gerd Moellmann <gerd@gnu.org>
10746
10747 * sysdep.c (sys_select): Turn atimers off and on instead of
10748 recording and restoring old alarm handler
10749
10750 * process.c (toplevel): Include atimer.h.
10751 (create_process_1): Rewritten.
10752 (create_process): Use atimers instead of alarm.
10753 (wait_reading_process_input) [hpux]: Turn atimers off instead
10754 of turning off SIGALRM.
10755 (wait_reading_process_input): Turn off atimers instead off
10756 calling stop_polling.
10757
10758 * emacs.c (main): Call init_atimer.
10759
10760 * keyboard.c (toplevel): Include systime.h and atimer.h.
10761 (polling_for_input): Removed because unused.
10762 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
10763 (poll_timer): New variable.
10764 (poll_for_input, poll_for_input_1): New functions.
10765 (start_polling, stop_polling): Rewritten.
10766
10767 * keyboard.h (polling_for_input): Removed.
427ec082 10768
e12489f9
GM
10769 * atimer.h, atimer.c: New files.
10770
10771 * Makefile.in (obj): Add atimer.o.
10772 (atimer.o): New target.
10773
10774 * blockinput.h (pending_atimers): Add extern declaration.
10775 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
10776
10777 * lisp.h (popup_activated_flag): Add extern declaration.
10778
10779 * xmenu.c (popup_activated_flag): Make externally visible.
10780 (popup_activate_callback) [USE_MOTIF]: Increment
10781 popup_activated_flag.
10782 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
10783
10784 * xterm.c (toplevel): Include atimer.h.
10785 (toolkit_scroll_bar_interaction): New variable.
10786 (Fxt_process_timeouts): Removed.
10787 (x_process_timeouts): New function.
10788 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
10789 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
10790 (x_make_frame_visible): Call poll_for_input_1 instead of
10791 input_poll_signal. Don't call alarm.
10792 (x_initialize): Install timer calling x_process_timeouts.
427ec082 10793
1e5279b9
DL
107942000-01-24 Dave Love <fx@gnu.org>
10795
6c67ddee 10796 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
10797 Don't use -cckr -- apparently not now necessary.
10798
edf6aeb8
EZ
107992000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
10800
10801 * msdos.c (IT_menu_display): Truncate long menu lines at the right
10802 screen boundary.
10803
9badad41
JR
108042000-01-23 Jason Rumney <jasonr@gnu.org>
10805
10806 * w32fns.c (w32_defined_color): Apply gamma correction before
10807 trying to map to the palette.
10808 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
10809 to w32_clear_rect.
10810
10811 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
10812 here. Callers changed to always pass real device context.
10813 (w32_draw_bitmap): Likewise.
10814 (w32_get_glyph_overhangs): Likewise.
10815 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
10816 one.
10817 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
10818 pfnSetScrollInfo and SetScrollRange.
10819 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
10820 back into MULE characters after decoding them.
10821 (x_get_glyph_face_and_encoding): Likewise.
10822 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
10823 GetCharABCWidthsW fails, since this is defined on Windows 9x.
10824 (x_produce_glyphs): Calculate per char metrics for a character
10825 that we know exists in default font when font_not_found_p is true.
10826
63bd786b
JR
108272000-01-22 Jason Rumney <jasonr@gnu.org>
10828
10829 * makefile.nt (intervals.obj, composite.obj): New modules.
10830 (composite.h): Added as dependency where appropriate.
10831
10832 * w32gui.h (XGCValue): New struct for emulating X GCs.
10833
10834 * w32term.h (XCharStruct): New struct for emulating X.
10835
10836 * w32console.c (turn_on_face, turn_off_face): New functions.
10837 (change_line_highlight): New prototype for new redisplay.
10838 (write_glyphs): Support multibyte text. Support faces.
10839
10840 * w32faces.c: Complete rewrite for new redisplay based on new
10841 xfaces.c.
10842
10843 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
10844 throughout. struct frame * in place of FRAME_PTR.
10845 Skeleton support for images, toolbars, tooltips from xfns.c.
10846 (Fx_create_frame): Use system default for default scroll bar
10847 width.
10848 (w32_get_arg): Renamed from x_get_arg.
10849 (Fx_file_dialog): New function.
10850 (w32_list_fonts): Check cache before asking system.
10851 (Vw32_enable_synthesized_fonts): New variable.
10852 (Vw32_enable_italics): Obsolete, removed.
10853
10854 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
10855 Use SELECTED_FRAME macro.
10856
10857 * w32menu.c: Add skeleton support for help strings on menus.
10858 (add_menu_item): Native checkbox and radio support added, but not
10859 yet enabled due to bugs.
10860 (push_menu_item): Add parameters type, selection and help.
10861 Callers updated.
10862 Formatting changes to reduce unnecessary diffs with xmenu.c.
10863
10864 * w32select.c (Fw32_set_clipboard_data): Update call to
10865 find_charset_in_str.
10866
10867 * w32term.c: Complete rewrite for new redisplay based on new
10868 xterm.c with necessary sections merged back in from old w32term.c.
10869
6ffd3cf7 108702000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
10871
10872 * data.c (set_internal): Further fix in same criterion.
10873
6ffd3cf7 108742000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
10875
10876 * data.c (set_internal): Fix the criteria for whether
10877 to swap out the old cached binding.
10878
60af03f1
DL
108792000-01-19 Dave Love <fx@gnu.org>
10880
10881 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
10882
f9be074f
KH
108832000-01-18 Kenichi Handa <handa@etl.go.jp>
10884
10885 * regex.c (re_compile_fastmap): While checking a range table for
10886 `charset', skip flag bits for a character class correctly.
10887
52b8dbf9
GM
108882000-01-17 Gerd Moellmann <gerd@gnu.org>
10889
d36100c9
GM
10890 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
10891
52b8dbf9
GM
10892 * xfns.c (x_window): Call lw_create_widget with new parameter
10893 list.
10894
10895 * widget.c (EmacsFrameSetCharSize): Change size of children first
10896 because of problems with main window geometry management under
10897 Lesstif.
10898
10899 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
10900 MENU_ITEMS_ITEM_.*.
10901 (MENU_ITEMS_ITEM_HELP): New enumerator.
10902 (push_menu_item): Add parameter HELP. Record help in menu_items.
10903 (single_menu_item, single_submenu, list_of_items): Call
10904 push_menu_item with new parameter.
10905 (single_submenu): Set help string in widget value.
10906 (menu_highlight_callback): New function.
10907 (set_frame_menubar): Call lw_create_widget with new
10908 parameter list.
10909 (xmenu_show, xdialog_show): Ditto.
10910
3139018f
GM
109112000-01-13 Gerd Moellmann <gerd@gnu.org>
10912
10913 * sound.c (Fplay_sound): Improve doc string.
10914
83c8f461
RS
109152000-01-11 Richard M. Stallman <rms@gnu.org>
10916
10917 * lisp.h (set_internal): Enter the new arg.
10918
10919 * eval.c (specbind): Record buffer-local variables specially,
10920 indicating which buffer's binding was saved.
10921 (unbind_to): Restore buffer-local variables specially
10922 in the proper buffer.
10923
10924 * data.c (set_internal): New arg BUF.
427ec082 10925
83c8f461
RS
10926 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
10927 * data.c (Fset): Pass new arg to set_internal.
10928 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 10929
1fab1775
GM
109302000-01-11 Gerd Moellmann <gerd@gnu.org>
10931
10932 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
10933 xprintsym.
10934
83c8f461 109352000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
10936
10937 * minibuf.c (Ftry_completion): Doc fix.
10938
7a85e4df
GM
109392000-01-11 Gerd Moellmann <gerd@gnu.org>
10940
10941 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
10942 vector, too.
10943
a970dae4
AS
109442000-01-11 Andreas Schwab <schwab@suse.de>
10945
10946 * coding.c (code_convert_region): Initialize total_skip.
10947
c65d14ee
DL
109482000-01-08 Dave Love <fx@gnu.org>
10949
10950 * eval.c (Fuser_variable_p): Check customizability too.
10951
834938d2
GM
109522000-01-07 Gerd Moellmann <gerd@gnu.org>
10953
10954 * minibuf.c (Fcompleting_read): Doc fix.
10955
e0303cd6
GM
109562000-01-05 Gerd Moellmann <gerd@gnu.org>
10957
8a26744b
GM
10958 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
10959 -L /usr/local/lib.
10960
e0303cd6
GM
10961 * xfns.c (x_create_im): New function to set IM and IC of a frame.
10962 Check that input style is supported before trying to create an
10963 IC for it.
10964 (x_window): Call x_create_im.
427ec082 10965
2e471eb5
GM
109662000-01-04 Gerd Moellmann <gerd@gnu.org>
10967
560a7bd2
GM
10968 * xfns.c (current_gif_memory_src): New variable.
10969 (gif_load): Record the address of the current memory source
10970 in current_gif_memory_src.
10971 (gif_read_from_memory): Use current_gif_memory_src.
10972
f9ee84a3
GM
10973 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
10974 macros statement form.
10975
d1299cde
GM
10976 * sound.c (struct sound): Renamed from struct sound_file.
10977 (struct sound): Add members `data' and `header_size'.
10978 (enum sound_attr): Add SOUND_DATA.
10979 (current_sound, current_sound_device): Variables renamed from
10980 sound_file and sound_device.
10981 (parse_sound): Parse :data.
10982 (parse_sound): Handle sound data in strings.
10983 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 10984 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
10985 needed header size.
10986 (wav_play, au_play): Play sounds from string data.
10987
2e471eb5
GM
10988 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
10989
10990 * lisp.h: Add prototype for allocate_string_data.
10991
10992 * alloc.c (Fgarbage_collect): Return number of live and free
10993 strings.
10994
10995 * alloc.c (mark_buffer): Remove code in #if 0.
10996 (gc_sweep): Ditto.
10997 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
10998 (strings_consed): New variable.
10999 (allocate_string): Set it.
11000 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
11001 (Fmemory_use_counts): Return strings_consed. Use Flist.
11002
11003 * alloc.c: General cleanup in comments etc. Remove conditional
11004 compilation for `standalone'.
11005
11006 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
11007
11008 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
11009 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
11010 (DONT_COPY_FLAG): Removed.
11011 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
11012 (struct sdata, struct sblock): New
11013 (struct string_block): Rewritten.
11014 (STRINGS_IN_STRING_BLOCK): New macro.
11015 (oldest_sblock, current_sblock, total_strings, total_free_strings)
11016 (large_sblocks, string_blocks, string_free_list): New variables.
11017 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
11018 (init_strings): Rewritten.
11019 (allocate_string, allocate_string_data, compact_small_strings)
11020 (free_large_strings, sweep_strings): New functions.
11021 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
11022 (struct string_block_head, current_string_block)
11023 (first_string_block, large_string_blocks, STRING_FULLSIZE)
11024 (STRING_PAD): Removed.
11025 (make_uninit_multibyte_string, make_pure_string): Rewritten.
11026 (Fgarbage_collect): Don't set mark bit in large strings.
11027 (mark_object): Mark strings differently. Mark symbol names
11028 differently.
11029 (survives_gc_p): Test marked strings differently.
427ec082 11030 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
11031 symbol names.
11032 (compact_strings): Removed.
11033
42608ba8
EZ
110342000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
11035
11036 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
11037 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
11038
e0a09e1a
KH
110392000-01-04 Kenichi Handa <handa@etl.go.jp>
11040
dd9f0750 11041 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 11042 in a non-empty buffer.
dd9f0750 11043
3c0f3b15 11044 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 11045
44cd3ae5
GM
110462000-01-03 Gerd Moellmann <gerd@gnu.org>
11047
11048 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
11049 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
11050
11051 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
11052
c182a70f
EZ
110532000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11054
11055 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
11056 need to test for MSDOS frames.
11057
24480d5b
EZ
110582000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11059
11060 * dosfns.c (unspecified_colors): Remove.
11061 (msdos_stdcolor_idx): Use global variables unspecified_fg and
11062 unspecified_bg.
11063 (msdos_stdcolor_name): Return strings for unspecified fore- and
11064 back-ground colors.
11065
11066 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 11067 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
11068 (tty_color_name): Return Lisp strings for unspecified fore- and
11069 back-ground colors.
11070 (Finternal_set_lisp_face_attribute): Remove the special treatment
11071 for Qunspecified_{f,b}g.
11072 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
11073 string.
11074
047f434a
GM
110752000-01-03 Gerd Moellmann <gerd@gnu.org>
11076
11077 * xdisp.c (reseat_at_next_visible_line_start): Position before
11078 newline only if ending up on a newline.
11079 (next_element_from_ellipsis): Return success. Handle case of
11080 displaying no ellipsis. Fix case of ellipsis defined in display
11081 table.
11082 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
11083 returns 0.
11084
d684c676
EZ
110852000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11086
11087 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
11088 (Fcolor_supported_p): Renamed from face-color-supported-p.
11089
5fe1d139
EZ
110902000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11091
11092 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
11093 list of colors renamed to tty-defined-color-alist.
11094 (tty_color_name): Pass the frame to tty-color-by-index.
11095 (realize_tty_face): tty-color-alist is now a function which
11096 accepts the frame as argument.
11097
11098 * term.c (Ftty_display_color_p): Accept an optional argument
11099 FRAME.
11100
816be8b8
EZ
111012000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11102
11103 * term.c (insert_glyphs): Pass glyph, not &glyph, to
11104 encode_terminal_code.
11105
b635321e
EZ
111062000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11107
11108 * dispnew.c (mode_line_string): Support termcap frames as well.
11109
9b784e96
GM
111102000-01-01 Gerd Moellmann <gerd@gnu.org>
11111
27189709
GM
11112 * syntax.c (Fforward_word): Undo previous change.
11113
11114 * editfns.c (Fconstrain_to_field): Don't constrain if
11115 inhibit-field-text-motion is non-nil.
11116 (Fline_beginning_position): Undo previous change.
11117 (Fline_end_position): Ditto.
11118
11119 * syntax.c (Fforward_word): Notice field boundaries only if
11120 inhibit-field-text-motion is nil.
11121
11122 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
11123
11124 * editfns.c (Vinhibit_field_text_motion): New variable.
11125 (inhibit-field-text-motion): New DEFVAR_LISP.
11126 (Fline_beginning_position, Fline_end_position): Notice field
11127 boundaries only if inhibit-field-text-motion is nil.
11128
45158a91
GM
11129 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
11130 All calls adjusted.
11131 (x_build_heuristic_mask): Likewise.
11132 (xbm_load_image_from_file): Change error output.
11133 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
11134 (gif_load, gs_load, x_kill_gs_process): Ditto.
11135
9b784e96
GM
11136 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
11137 color indices when accessing raster pixels.
63cec32f
GM
11138 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
11139 one of :file or :data.
11140 (enum pbm_keyword_index): Add PBM_DATA.
11141 (pbm_format): Add :data.
11142 (pbm_image_p): Allow either :file or :data.
11143 (pbm_read_file): New function.
11144 (pbm_scan_number): Rewritten to read from string.
11145 (pbm_load): Support :data.
9b784e96 11146
2cb085db 11147See ChangeLog.8 for earlier changes.
6922b018
KH
11148
11149;; Local Variables:
49b3bd82 11150;; coding: iso-2022-7bit
6922b018 11151;; End: