*** empty log message ***
[bpt/emacs.git] / src / ChangeLog
CommitLineData
ade0bee1
GM
12001-03-19 Gerd Moellmann <gerd@gnu.org>
2
c2c097cc
GM
3 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
4 tip frame's root window buffer to *tip* right after creating
5 the frame.
6
ade0bee1
GM
7 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
8 is an integer don't have to be for space characters.
9
88c6e37e
GM
102001-03-16 Gerd Moellmann <gerd@gnu.org>
11
12 * indent.c (current_column, current_column_1, Fmove_to_column)
13 (compute_motion): Handle characters from display vectors
14 differently.
15
c62eed76
KH
162001-03-15 Kenichi Handa <handa@etl.go.jp>
17
18 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
19 drawing glyph string.
20
c899e7e6
GM
212001-03-15 Gerd Moellmann <gerd@gnu.org>
22
d0bbfc99
GM
23 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
24 (command_loop_1): Undo last change.
25
03d1a189
GM
26 * xterm.c (fast_find_position): Return the correct vpos.
27
c899e7e6
GM
28 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
29 non-null, set a per-buffer value in BUF instead of the current
30 buffer.
31 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
32 Call store_symval_forwarding with BUF null.
33 (set_internal): Call store_symval_forwarding with the BUF
34 parameter passed to set_internal. Formerly, the value was always
35 set in the current buffer; the buffer recorded in specbind for
36 this case wasn't used.
37 (arith_driver): Reindent.
38
39 * buffer.c (swap_out_buffer_local_variables): Call
40 store_symval_forwarding with BUF null.
41
42 * lisp.h (store_symval_forwarding): Change prototype.
43
44 * eval.c (specbind): Call store_symval_forwarding with BUF null.
45
57ac7c81
GM
462001-03-14 Gerd Moellmann <gerd@gnu.org>
47
697617d9
GM
48 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
49 FOR_DELETION. Avoid resizing the mini-window of the selected
50 frame if FOR_DELETION is set.
51 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
52 (Fmake_frame_invisible): Change calls to do_switch_frame for new
53 signature.
54
55 * window.c (Fset_window_configuration): Change call to
56 do_switch_frame to new format.
57
58 * keyboard.c (quit_throw_to_read_char): Change call to
59 do_switch_frame to new format.
60
61 * lisp.h (do_switch_frame): Change prototype.
62
819dce0f
GM
63 * frame.c (Fframe_parameters): In the `buffer-list' frame
64 parameter, store the buffer list of FRAME, not the list of the
65 selected frame.
66
57ac7c81
GM
67 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
68 box just because the glyph row's full_width_p flag is set.
69
65008712
GM
702001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
71
72 * xdisp.c (highlight_trailing_whitespace): On character terminals,
73 skip the padding blanks inserted in extend_face_to_end_of_line,
74 before checking for trailing whitespace.
75
159cf431
GM
762001-03-13 Gerd Moellmann <gerd@gnu.org>
77
19b2bb80
GM
78 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
79 Remove special handling for LessTif/Motif.
80 (toplevel): Don't include Xm/Xm.h.
81
afcdc0a1
GM
82 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>: Remove
83 workaround code for LessTif; it doesn't work anymore.
84
2564ea1b 85 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
57ac7c81 86 Xm/ScrollBarP.h.
afcdc0a1 87
23442ae4
GM
88 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Don't
89 access private scroll bar data; it's no longer necessary with
90 contemporary LessTif.
91
9faaaa52
GM
92 * xfaces.c (xm_set_menu_resources_from_menu_face): Change
93 #if 0 to #ifndef LESSTIF_VERSION.
94
159cf431
GM
95 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
96 removing button grabs.
97
c6f7429a
KH
982001-03-13 Kenichi Handa <handa@etl.go.jp>
99
cb82d767
KH
100 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
101 and clip-large-size-font as obsolete.
102
c6f7429a
KH
103 * lread.c (read_multibyte): Check the validity of multibyte
104 sequence. If invalid, return the first byte.
105
760cefb5
GM
1062001-03-12 Gerd Moellmann <gerd@gnu.org>
107
108 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
109 before running the command; timer functions or process
110 filters may have set it.
111
5141f9d0
EZ
1122001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
113
114 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
115 Doc fix.
116
b6a15240
GM
1172001-03-12 Gerd Moellmann <gerd@gnu.org>
118
119 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
120 to sprintf.
121
95522746
GM
1222001-03-09 Gerd Moellmann <gerd@gnu.org>
123
db14cfc5
GM
124 * dispextern.h (string_buffer_position): Add prototype.
125
126 * xdisp.c (string_buffer_position, display_prop_string_p)
127 (single_display_prop_string_p): New functions.
128
129 * xterm.c (note_mouse_highlight): If there's no help-echo on
130 a string, look at the buffer text ``under'' it.
131
132 * keyboard.c (make_lispy_event): Add string info to the event,
133 analogous to what's done on mode lines.
134 (read_key_sequence): For a click on a string, consider `local-map'
135 and `keymap' of that string.
136
3cfd8357
GM
137 * keyboard.c (make_lispy_event, make_lispy_movement): Adjust
138 calls to buffer_posn_from_coords to new format.
139
140 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
141
142 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
143 POS; return void.
144
95522746
GM
145 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
146 flags argument to emacs_open; it seems to conflict with O_EXCL.
147
898a399d
KH
1482001-03-09 Kenichi Handa <handa@etl.go.jp>
149
28cd4910
KH
150 * composite.h (struct composition): Change types of members;
151 glyph_len to unsigned, width to unsigned short.
898a399d 152
4cdf6a6c
AI
1532001-03-08 Andrew Innes <andrewi@gnu.org>
154
155 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
156 menu titles.
157
129004d3
GM
1582001-03-08 Gerd Moellmann <gerd@gnu.org>
159
221dd3e7
GM
160 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
161 instead of nil.
162
5de7c6f2
GM
163 * xterm.c (note_mouse_highlight): Handle mouse-face and
164 help-echo in strings.
165 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
166 (fast_find_string_pos): New function.
167
168 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
169 (display_string): Call face_at_string_position with new
170 parameter.
171
172 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
173 Handle `mouse-face'.
174
175 * dispextern.h (face_at_string_position): Change prototype.
176
e1fbabaf
GM
177 * dired.c (directory_files_internal): Handle EAGAIN more
178 efficiently.
179
129004d3
GM
180 * keyboard.c (make_lispy_event): Avoid generating drag events
181 if the mouse hasn't actually moved to another buffer position.
182
80c8ab8c
DL
1832001-03-08 Dave Love <fx@gnu.org>
184
129004d3 185 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
80c8ab8c 186
989521fd
GM
1872001-03-08 Gerd Moellmann <gerd@gnu.org>
188
189 * process.c (Fset_process_window_size): Fix a typo.
190
bb5c338d
KH
1912001-03-08 Kenichi Handa <handa@etl.go.jp>
192
193 * coding.c (detect_coding_sjis): Do more rigid check.
194 (detect_coding_big5): Likewise.
195 (decode_coding_sjis_big5): Likewise.
196 (Fdetect_coding_region): Call detect_coding_system with tailing
197 anchor byte `\0' for more rigid detection.
a1b12fe9
KH
198 (detect_coding_mask): Fix the incorrect handling of arg
199 MULTIBYTEP.
bb5c338d
KH
200 (Fdetect_coding_string): Likewise.
201
8b8f9197
SM
2022001-03-07 Stefan Monnier <monnier@cs.yale.edu>
203
204 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
205 a string before extracting its data.
206
3bdf2660
GM
2072001-03-07 Gerd Moellmann <gerd@gnu.org>
208
209 * window.c (Frecenter): Rewrite code handling negative values
210 of ARG on graphical frames.
211
2122001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
213
214 * window.c (displayed_window_lines): If W->start is outside the
215 accessible portion of the buffer, call start_display with BEGV or
216 ZV instead of W->start.
217
471f86b9
GM
2182001-03-07 Gerd Moellmann <gerd@gnu.org>
219
2ab62c6c
GM
220 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
221
471f86b9
GM
222 * process.c (Fset_process_filter): Don't crash if the input
223 file descriptor of PROCESS is closed.
224 (Fset_process_window_size): Likewise.
225
101922c3
GM
2262001-03-06 Kenichi Handa <handa@etl.go.jp>
227
228 * xterm.c (XTflash): Make the timeout of select shorter, and call
229 select repeatedly until the desired time expires.
230
45d051a7
GM
2312001-03-06 Gerd Moellmann <gerd@gnu.org>
232
233 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
234
235 * xfns.c (Fx_create_frame): Clear Vwindow_list.
236
237 * lisp.h (Vwindow_list): Declare extern.
238
8f372c46
EZ
2392001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
240
241 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
242
f16a7aa5
GM
2432001-03-06 Gerd Moellmann <gerd@gnu.org>
244
157ae273
GM
245 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
246 to detect a case where we have to highlight a different region
247 despite not having left the currently highlighted region.
248 Set mouse_face_overlay in the x_display_info.
45d051a7 249 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
157ae273
GM
250
251 * xterm.h (struct x_display_info): Add mouse_face_overlay.
252
253 * buffer.c (mouse_face_overlay_overlaps): New function.
254
255 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
256 (Qmouse_face): Declare extern.
257
f16a7aa5
GM
258 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
259 if face_change_count is non-zero.
260
827afcac
KH
2612001-03-06 Kenichi Handa <handa@etl.go.jp>
262
263 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
264 that the source is unibyte.
265
14c7242e
DL
2662001-03-05 Dave Love <fx@gnu.org>
267
827afcac 268 * xterm.c (XTmouse_position): Fix typo.
14c7242e 269
c28b847b
GM
2702001-03-05 Gerd Moellmann <gerd@gnu.org>
271
272 * minibuf.c (read_minibuf): Clean up the binding stack if
273 called noninteractively.
274
b86644f2
KH
2752001-03-05 Kenichi Handa <handa@etl.go.jp>
276
277 * coding.c (syms_of_coding): Docstring modified.
278
203682cc 2792001-03-05 Kenichi Handa <handa@etl.go.jp>
b86644f2
KH
280
281 * charset.c (char_to_string): If a single byte char has modifier
282 bits that can't be reflected to the character code, ignore them
45d051a7 283 instead of signaling an error.
b86644f2 284
e30bd7b7
EZ
2852001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
286
287 * s/msdos.h: Update copyright notice.
288
289 * dosfns.h: Update copyright notice.
290
291 * dosfns.c: Update copyright notice.
292
293 * msdos.c: Update copyright notice.
294
b52b65bd
GM
2952001-03-02 Gerd Moellmann <gerd@gnu.org>
296
297 * xterm.c (glyph_rect): New function.
298 (XTmouse_position): Use it to raise the threshold for mouse
299 movement event generation.
300
53c4b1e6
EZ
3012001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
302
303 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
304 specifies (reverse . t), reverse the initial screen colors.
305 (IT_set_frame_parameters): If the property is foreground-color,
306 but we are reversing the colors, set bg_set, not fg_set. Likewise
307 for setting background-color and reversing: set fg_set. Set
308 unspecified-fg and unspecified-bg correctly when (reverse . t) is
309 in effect.
310
311 * xfaces.c (Finternal_set_lisp_face_attribute)
312 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
313 parameters alist.
314
f964b4d7
GM
3152001-03-02 Gerd Moellmann <gerd@gnu.org>
316
ef53d75e
GM
317 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
318 to a single slash in the middle of file names.
319
cda0f4da
GM
320 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
321 Accept only alphanumeric time zone names.
322
f964b4d7
GM
323 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
324 or width area.
325 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
326 a widget to zero height.
327
c3c45f65
GM
3282001-03-01 Gerd Moellmann <gerd@gnu.org>
329
330 * window.c (Fwindow_end): Call move_it_past_eol only if
331 ending up on a partially visible line.
332
028d739a
DL
3332001-03-01 Dave Love <fx@gnu.org>
334
335 * ccl.c (Fccl_execute): Doc fix.
336
57c5889c
GM
3372001-03-01 Gerd Moellmann <gerd@gnu.org>
338
35f59f6b
GM
339 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
340 of the tool bar before calling x_figure_window_size.
341
f84ff02c
GM
342 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
343 NULL after destroying it, otherwise XTread_socket can access a
344 destroyed widget when input is unblocked.
345
8b8f9197 346 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
420f628c 347
57c5889c
GM
348 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
349 same name as before, although there was a change in fontsets.
350
224227d1
KR
3512001-02-28 Ken Raeburn <raeburn@gnu.org>
352
4560730a
KR
353 * lisp.h (Fframe_parameter): Declare.
354
224227d1 355 * window.c (set_window_buffer): Field vscroll is an int, not a
57c5889c 356 Lisp_Object.
224227d1 357
ece93c02
GM
3582001-02-28 Gerd Moellmann <gerd@gnu.org>
359
11ef99b9
GM
360 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
361 NULL instead.
362
363 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
364 NULL instead.
365
ece93c02
GM
366 * alloc.c (toplevel): Include process.h.
367 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
368 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
369 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
370 (allocate_vector, allocate_hash_table, allocate_window)
371 (allocate_frame, allocate_process, allocate_other_vector): New
372 functions.
373 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
374 (mark_maybe_pointer): New function.
375 (mark_memory): Also mark Lisp data to which only pointers
376 remain and not Lisp_Objects.
377 (min_heap_address, max_heap_address): New variables.
378 (mem_find): Return MEM_NIL if START is below min_heap_address or
379 above max_heap_address.
380 (mem_insert): Compute min_heap_address and max_heap_address.
381
382 * process.c (make_process): Use allocate_process.
383
384 * frame.c (make_frame): Use allocate_frame.
385
386 * window.c (make_window, make_dummy_parent): Use allocate_window.
387 (Fcurrent_window_configuration): Use allocate_other_vector.
388
389 * lisp.h (allocate_vectorlike): Remove prototype.
390 (allocate_vector, allocate_other_vector, allocate_frame)
391 (allocate_window, allocate_process, allocate_hash_table):
392 Add prototypes.
393
394 * fns.c (Fdelete, larger_vector): Use allocate_vector.
395 (make_hash_table, copy_hash_table): Use allocate_hash_table.
396
063af457
KH
3972001-02-27 Kenichi Handa <handa@etl.go.jp>
398
399 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
400 treat the produced bytes as a valid multibyte sequence.
401
402 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
403 (ccl_driver) <CCL_WriteMultibyteChar2>: Use
404 CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
405 <ccl_finish>: Set ccl->eight_bit_control properly.
406
407 * ccl.h (struct ccl_program): New member eight_bit_control.
408
f58c6494
SM
4092001-02-26 Stefan Monnier <monnier@cs.yale.edu>
410
411 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
412 accessible_keymaps_char_table.
413 (accessible_keymaps_char_table): Obey `is_metized'.
414 (where_is_internal, Fwhere_is_internal): Don't confuse int and
415 Lisp_Object.
416
c596c392
GM
4172001-02-26 Gerd Moellmann <gerd@gnu.org>
418
419 * dispnew.c: Check HAVE_TERM_H before including term.h.
420
425de386
AI
4212001-02-24 Andrew Innes <andrewi@gnu.org>
422
423 * makefile.w32-in: Update copyright notice.
424
2ba11bbd
SM
4252001-02-24 Stefan Monnier <monnier@cs.yale.edu>
426
427 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
428
66c56ed1
KH
4292001-02-24 Kenichi Handa <handa@etl.go.jp>
430
4c1593ce
KH
431 * Makefile.in (lisp): Add international/utf-8.elc.
432
66c56ed1
KH
433 * fontset.c (Fnew_fontset): Fix handling of the case that an
434 element of FONTLIST is a cons of family and registry.
435
796ead7e
JR
4362001-02-23 Jason Rumney <jasonr@gnu.org>
437
438 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
439 to height unconditionally.
440
441 * w32term.c (x_set_glyph_string_background_width): Extend the
442 background face to the end of the drawing area in the text area,
443 only.
444 (x_insert_glyphs): Call window_box_left to obtain the left
445 x-coordinate of the area to shift.
446
447 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
448 safe_run_hooks.
449
f6839838
AI
4502001-02-22 Andrew Innes <andrewi@gnu.org>
451
452 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header
453 files.
454 ($(BLD)\dispnew.obj):
455 ($(BLD)\editfns.obj):
456 ($(BLD)\fileio.obj):
457 ($(BLD)\filelock.obj):
458 ($(BLD)\keyboard.obj):
459 ($(BLD)\w32proc.obj):
460 ($(BLD)\process.obj):
461 ($(BLD)\sysdep.obj): Ditto.
462
463 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
464 header files.
465 ($(BLD)/dispnew.$(O)):
466 ($(BLD)/editfns.$(O)):
467 ($(BLD)/fileio.$(O)):
468 ($(BLD)/filelock.$(O)):
469 ($(BLD)/keyboard.$(O)):
470 ($(BLD)/w32proc.$(O)):
471 ($(BLD)/process.$(O)):
472 ($(BLD)/sysdep.$(O)): Ditto.
473
c224f70b
GM
4742001-02-22 Gerd Moellmann <gerd@gnu.org>
475
51695746
GM
476 * xdisp.c (forward_to_next_line_start): When taking the shortcut
477 at the start of the function, check that the \n in it->c is
478 from the iterator's current position.
479
a61b7058
GM
480 * xdisp.c (handle_single_display_prop): Add parameter
481 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
482 properties which replace the display of text with something else.
483 (handle_display_prop): Call handle_single_display_prop with
484 additional argument saying if we already replaced text display
485 with something else. Use AREF.
486 (with_echo_area_buffer_unwind_data, display_menu_bar)
487 (decode_mode_spec_coding): Use AREF and ASIZE.
488
3473f362
GM
489 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
490 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
491 * vmstime.h: Files removed.
492
2bb58df3
GM
493 * unexencap.c, unexfx2800.c: Files removed.
494
c224f70b
GM
495 * dispnew.c (direct_output_for_insert): Give up if we are showing
496 a message or just cleared the message because we might need to
497 resize the echo area window or display an empty echo area.
498
ffc9ff0c
GM
4992001-02-21 Gerd Moellmann <gerd@gnu.org>
500
0528abe1
GM
501 * xdisp.c (redisplay_internal): Do the
502 mark_window_display_accurate after all windows have been
503 redisplayed because this call resets flags in buffers which are
504 needed for proper redisplay.
505
ffc9ff0c
GM
506 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c: Use
507 display_hourglass_p, start_hourglass, cancel_hourglass instead of
508 the old names.
509
510 * w32term.h (struct x_output): Rename busy_cursor to
511 hourglass_cursor, busy_window to hourglass_window, busy_p to
512 hourglass_p.
513
514 * msdos.h (struct x_output): Rename busy_window to
515 hourglass_window, busy_p to hourglass_p.
516
517 * xterm.h (struct x_output): Rename busy_cursor to
518 hourglass_cursor, busy_window to hourglass_window, busy_p to
519 hourglass_p.
520
521 * xfns.c: Rename everything containing *busy_cursor* and similar
522 to *hourglass*.
523 (syms_of_w32fns): Rename x-busy-pointer-shape to
524 x-hourglass-pointer-shape, display-busy-cursor to
525 display-hourglass, busy-cursor-delay to hourglass-delay.
526
527 * w32fns.c: Rename everything containing *busy_cursor* and similar
528 to *hourglass*.
529 (syms_of_w32fns): Rename x-busy-pointer-shape to
530 x-hourglass-pointer-shape, display-busy-cursor to
531 display-hourglass, busy-cursor-delay to hourglass-delay.
532
533 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
534 of its busy_p flag.
535
536 * dispextern.h (start_hourglass, cancel_hourglass)
537 (display_hourglass_p): Renamed from *busy_cursor*.
538
ab2c5f0a
GM
5392001-02-20 Gerd Moellmann <gerd@gnu.org>
540
d17e49a8
GM
541 * keyboard.c (read_char): When an event from unread-command-events
542 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
543
fa97adf6
GM
544 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
545 equal to the current buffer.
546
ab2c5f0a
GM
547 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
548 nil, otherwise we're left with truncate_lines t when a message
549 is printed with message-truncate-lines bound to t.
550
aeac019e
GM
5512001-02-19 Gerd Moellmann <gerd@gnu.org>
552
c8bc6f65
GM
553 * window.c (Fmove_to_window_line): Undo last change.
554 (displayed_window_lines): Call line_bottom_y to determine
555 the line's bottom position.
556
557 * dispextern.h (line_bottom_y): Add prototype.
558
559 * xdisp.c (line_bottom_y): New function extracted from
560 pos_visible_p.
561 (pos_visible_p): Use it.
562
980a2d69
GM
563 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
564 set redisplaying_p to 0 here instead of in Frecursive_edit.
565 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
566 set redisplaying_p.
567
184d2372
GM
568 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
569 New variables.
570 (syms_of_xdisp): Initialize new variables.
571 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
572 Specbind `inhibit-menubar-update' when updating the menu bar.
573
65048e97
GM
574 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
575 safe_run_hooks.
576
577 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
578 safe_run_hooks.
579
a57c4026
GM
580 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
581 is null.
582
aeac019e
GM
583 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
584 to the start of the file.
585
76846b31
GM
5862001-02-16 Gerd Moellmann <gerd@gnu.org>
587
f3f053f3 588 * window.c (set_window_buffer): Fix last change.
25237df5 589
f3f053f3
GM
590 * window.c (set_window_buffer): Set window's vscroll to 0.
591
dad75588
GM
592 * window.c (coordinates_in_window): Increase width of area
593 where the vertical line can be dragged.
594
c220b753
GM
595 * xterm.c (x_set_glyph_string_background_width): Extend the
596 background face to the end of the drawing area in the text
597 area, only.
598
c56b1c1b
GM
599 * xdisp.c (handle_single_display_prop): Set iterator's position
600 to where the `display' property starts, like for images.
601 (dump_glyph): New function.
602 (dump_glyph_row): Use it. Dump info about marginal areas.
603
604 * dispnew.c (direct_output_for_insert): Recognize more cases where
605 glyphs can be written instead of being inserted.
606
607 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
608 the left x-coordinate of the area to shift.
609
76846b31
GM
610 * dired.c (directory_files_internal): Set result list to nil
611 before retrying.
612
0fc71a77
KH
6132001-02-15 Kenichi Handa <handa@etl.go.jp>
614
615 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
616 invalid multibyte sequence, treat *SRC as a character of
617 eight-bit-graphic.
618
25078b54
EZ
6192001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
620
621 * textprop.c (Fset_text_properties): Doc fix.
622
8399f8a0
GM
6232001-02-15 Gerd Moellmann <gerd@gnu.org>
624
625 * dispnew.c (update_text_area): Undo change of 2001-01-12.
626
9a2a6f73
DL
6272001-02-14 Dave Love <fx@gnu.org>
628
629 * coding.c: Doc and message fixes.
630
bf853fee
AI
6312001-02-14 Andrew Innes <andrewi@gnu.org>
632
633 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
634 Emacs frame above the screen size.
635
78c663d8
GM
6362001-02-14 Gerd Moellmann <gerd@gnu.org>
637
638 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
639
7cc9f69f
GM
6402001-02-13 Gerd Moellmann <gerd@gnu.org>
641
0a411995
GM
642 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
643 case that TO ends up beyond ZV after running before-change-functions.
644
5ddc1b75
GM
645 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
646 the selected window if it is showing the buffer in question.
647
7cc9f69f
GM
648 * dired.c (directory_files_internal): Initialize errno.
649 (toplevel): Include errno.h.
650
2e6621ca
GM
6512001-02-13 Kenichi Handa <handa@etl.go.jp>
652
653 * xfaces.c (best_matching_font): New parameter width_ratio.
654 Multiply avgwidth by width_ratio.
655 (choose_face_font): Call best_matching_font with width_ratio
656 calculated from the column width of C.
657
60222d69
AI
6582001-02-12 Andrew Innes <andrewi@gnu.org>
659
660 The following changes are to draw box lines inside characters area
661 if line-width is negative.
662
663 * w32term.c (x_produce_image_glyph): Pay attention to the case that
664 face->box_line_width is negative.
665 (x_produce_stretch_glyph): Likewise.
666 (x_produce_glyphs): Likewise.
667 (x_estimate_mode_line_height): Likewise.
668 (x_draw_glyph_string_background): Likewise.
669 (x_draw_glyph_string_foreground): Likewise.
670 (x_draw_composite_glyph_string_foreground): Likewise.
671 (x_draw_glyph_string_box): Likewise.
672 (x_draw_image_foreground): Likewise.
673 (x_draw_image_relief): Likewise.
674 (x_draw_image_foreground_1): Likewise.
675 (x_draw_image_glyph_string): Likewise.
676
9804b846
KH
6772001-02-09 Kenichi Handa <handa@etl.go.jp>
678
679 The following changes are to draw box lines inside characters area
680 if line-width is negative.
681
682 * xterm.c (x_produce_image_glyph): Pay attention to the case that
683 face->box_line_width is negative.
684 (x_produce_stretch_glyph): Likewise.
685 (x_produce_glyphs): Likewise.
686 (x_estimate_mode_line_height): Likewise.
687 (x_draw_glyph_string_background): Likewise.
688 (x_draw_glyph_string_foreground): Likewise.
689 (x_draw_composite_glyph_string_foreground): Likewise.
690 (x_draw_glyph_string_box): Likewise.
691 (x_draw_image_foreground): Likewise.
692 (x_draw_image_relief): Likewise.
693 (x_draw_image_foreground_1): Likewise.
694 (x_draw_image_glyph_string): Likewise.
695
696 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
697 and :line-width can be negative.
698 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be
699 negative.
700
49be9f70
JR
7012001-02-09 Jason Rumney <jasonr@gnu.org>
702
703 * w32term.c (w32_encode_char): Treat eight bit graphic and control
704 characters the same as ASCII and latin-1.
705 (x_display_and_set_cursor): Check for the focus frame's selected
706 window instead of selected_window.
707 (x_after_update_window_line): Don't clear if frame's internal
708 border width is zero.
709 (x_new_font): Don't change a tooltip's size.
710 (w32_initialize): Set char_ins_del_ok to 1.
711
712 * w32fns.c (Fx_show_tip): Fix calls to make_number.
713 (x_set_font): If font hasn't changed, avoid recomputing
714 faces and other things.
715 (x_set_tool_bar_lines): Do nothing if frame is
716 minibuffer-only,
717 (Fx_create_frame): Add the tool bar height to the frame
718 height.
719 (x_create_tip_frame): Prevent changing the tooltip's
720 background color by specifying a color for the default font
721 in .Xdefaults.
722 (Qcancel_timer): New variable.
723 (syms_of_w32fns): Initialize and staticpro it.
724 (Fx_hide_tip, Fx_show_tip): Use it.
725 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
726 the timer.
727 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
728
729 * w32.c (init_environment): Duplicate local string before putenv.
730
555e35d2
SZ
7312001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
732
733 * charset.c (Fstring): A typo.
734
19c92c94
KH
7352001-02-09 Kenichi Handa <handa@etl.go.jp>
736
e47a1c33
KH
737 * charset.c (Fstring): If all arguments are less than 256, return
738 a unibyte string.
739
740 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
741 return a unibyte string.
742
19c92c94
KH
743 * coding.c (code_convert_region): After detecting a coding, if
744 nothing found, set coding->composing to COMPOSITION_NO.
745 (decode_coding_string): Likewise.
746
d8e675f5
SM
7472001-02-08 Stefan Monnier <monnier@cs.yale.edu>
748
749 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
750 to avoid overflow.
751
bd503487
KH
7522001-02-07 Kenichi Handa <handa@etl.go.jp>
753
754 * charset.c (parse_str_to_multibyte): New function.
755
756 * charset.h (parse_str_to_multibyte): Extern it.
757
758 * print.c (print_string): If we are going to print a unibyte
759 string into a multibyte buffer, convert the string to multibyte by
760 str_to_multibyte.
761
a8370d72
AI
7622001-02-06 Andrew Innes <andrewi@gnu.org>
763
764 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
765 been created. It seems we can get sent window messages such as
766 WM_ERASEBKGND before we properly update a frame.
767
c363a1d6
GM
7682001-02-06 Gerd Moellmann <gerd@gnu.org>
769
770 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
771 Avoid some unnecessary cursor positioning.
772
a08332c0
GM
7732001-02-05 Gerd Moellmann <gerd@gnu.org>
774
775 * xfaces.c (split_font_name): Compute numeric value of
776 XLFD_AVGWIDTH.
777 (LFACE_AVGWIDTH): New macro.
778 (LFACEP): Use AREF.
779 (check_lface_attrs): Check LFACE_AVGWIDTH.
780 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
781 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
782 (merge_face_vectors): Check LFACE_AVGWIDTH.
783 (Finternal_make_lisp_face): Use AREF.
784 (xm_set_menu_resources_from_menu_face)
785 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
786 (Finternal_lisp_face_empty_p): Use AREF.
787 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
788 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
789 Compare average widths..
790 (best_matching_font): Arrange for comparing average widths.
791
792 * dispextern.h (enum lface_attribute_index): Add
793 LFACE_AVGWIDTH_INDEX (invisible from Lisp).
794
5cb3c8d4
DL
7952001-02-05 Dave Love <fx@gnu.org>
796
797 * puresize.h: Revert last change following loadup.el change.
798
193fba87
AI
7992001-02-05 Andrew Innes <andrewi@gnu.org>
800
801 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
802 invocation of temacs, to work with Windows 2000.
803 (bootstrap-emacs): Ditto.
804
e16f52ce
GM
8052001-02-05 Gerd Moellmann <gerd@gnu.org>
806
7a58ab59
GM
807 * xterm.c (x_display_and_set_cursor): Check for the focus
808 frame's selected window instead of selected_window.
809
e89aaabd
GM
810 * xdisp.c (try_scrolling): If point is in the line below the
811 window, make sure to move the iterator at least a canonical
812 char height down.
813
e16f52ce
GM
814 * window.c (Fmove_to_window_line): Don't add 1 if window is
815 vscrolled.
816
789ce875
KH
8172001-02-05 Kenichi Handa <handa@etl.go.jp>
818
819 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not. If
820 invalid, execute CCL_INVALID_CMD.
821 (ccl_driver): If the CCL program is terminated because of
822 CCL_STAT_INVALID_CMD, copy the remaining source data to the
823 destination instead of throwing them away.
824
20b28f82
GM
8252001-02-02 Gerd Moellmann <gerd@gnu.org>
826
79fb38c0
GM
827 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
828 faces and other things.
829
20b28f82
GM
830 * xdisp.c (get_next_display_element): Fix case of empty
831 display table entry.
832
5a72551e
EZ
8332001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
834
eb24d0bf
EZ
835 * editfns.c (Fconstrain_to_field): Doc fix.
836
6a3f48c7
EZ
837 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
838 into `thoroughly', to make it consistent with the doc string.
839
5a72551e
EZ
840 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
841
01acdb05
GM
8422001-02-01 Gerd Moellmann <gerd@gnu.org>
843
0353b28f
GM
844 * search.c (search_buffer): Call set_search_regs with a byte
845 position, not a character position.
846
01acdb05
GM
847 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
848 minibuffer-only,
849
e86b5133
EZ
8502001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
851
852 * frame.c (Fmodify_frame_parameters): Doc fix.
853
7442878f
GM
8542001-01-31 Gerd Moellmann <gerd@gnu.org>
855
01acdb05
GM
856 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
857 identifier which is not reserved by Standard C.
858
7442878f
GM
859 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
860
861 * window.c (enum window_part): New enumeration.
862 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
863 Qright_bitmap_area.
864 (coordinates_in_window): Return an enumerator from enum
865 window_part. Fix handling of right scroll bar.
866 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
867 `right-fringe' instead of `left-bitmap-area' and
868 `right-bitmap-area'. Use enumerators from enum window_part
869 instead of hard-coded integers.
870 (check_window_containing, window_from_coordinates): Use
871 enumerators from enum window_part instead of hard-coded integers.
872 (syms_of_window): Replace Qleft_bitmap_area and
873 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
874
7c132cba
EZ
8752001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
876
877 * editfns.c (Fformat_time_string): Doc fix.
878
c359dd9e
SM
8792001-01-31 Stefan Monnier <monnier@cs.yale.edu>
880
881 * keymap.c (Fwhere_is_internal): Use the first valid binding
882 if no ascii binding is found (when firstonly is t).
883
ce070307
GM
8842001-01-31 Gerd Moellmann <gerd@gnu.org>
885
b4f30ec5
GM
886 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
887 instead of Finteractive_p.
888
889 * lisp.h (interactive_p): Add prototype.
890
891 * eval.c (interactive_p): New function.
892 (Finteractive_p): Use it.
893
ce070307
GM
894 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
895
f57b6e64
DL
8962001-01-31 Dave Love <fx@gnu.org>
897
d61c7afe
DL
898 * .gdbinit (hook-run): Define to run xreload.
899
f57b6e64
DL
900 * textprop.c (Fset_text_properties): Fix newline in doc string.
901
eef93f99
GM
9022001-01-30 Gerd Moellmann <gerd@gnu.org>
903
904 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp): Use
905 DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
906
907 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
908 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
909 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
910
911 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
912 height.
913
d9c1f6f9
DL
9142001-01-30 Dave Love <fx@gnu.org>
915
916 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
917 AFTER_POTENTIAL_GC.
918
e8f044a0
GM
9192001-01-29 Gerd Moellmann <gerd@gnu.org>
920
921 * bytecode.c (Fbyte_code) <Bcurrent_column>: Add
922 BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
923
8e1db7b3
EZ
9242001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
925
926 * textprop.c (Fset_text_properties): Doc fix.
927
4eefd9d2
GM
9282001-01-29 Gerd Moellmann <gerd@gnu.org>
929
930 * xdisp.c (forward_to_next_line_start): Remove xassert.
931
fccb8288
EZ
9322001-01-29 Jason Rumney <jasonr@gnu.org>
933
4eefd9d2 934 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
fccb8288
EZ
935 returning without releasing it.
936
76581eab
KH
9372001-01-29 Kenichi Handa <handa@etl.go.jp>
938
939 * w32fns.c (w32_font_match): Allocate three more bytes to regex
940 for '^', '$', and '\0'.
941
83a96b4d
AC
9422001-01-28 Andrew Choi <akochoi@i-cable.com>
943
5604ec34
AC
944 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
945 regex for '^', '$', and '\0'.
946
83a96b4d
AC
947 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
948 only if current_sblock has been initialized.
949
950 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
951 terminal frame even if it is the only visible frame.
952
c09a6440
KH
9532001-01-28 Kenichi Handa <handa@etl.go.jp>
954
955 * fontset.c (font_family_registry): Even if FONTNAME conform to
956 XLFD, if it specifies other fields than family and registry,
957 return FONTANME. New argument FORCE if nonzero cancel that
958 feature.
959 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
960 a signle byte character. Don't set FAMILY part to nil here. It
961 is handled by the caller choose_face_font.
962 (Fnew_fontset): Call font_family_registry with FORCE 0.
963 (Fset_fontset_font): Likewise.
964
4dcd74e6
GM
9652001-01-27 Gerd Moellmann <gerd@gnu.org>
966
967 * xdisp.c (display_line): Don't treat a newline as fitting
968 on the line.
969
d2906bf8
GM
9702001-01-26 Gerd Moellmann <gerd@gnu.org>
971
0130fe1a
GM
972 * window.c (size_window): Set the window's orig_top to nil when
973 changing heights, so that a future shrink_mini_window won't
974 restore a bogus height.
975
550f0e6a
GM
976 * frame.c (do_switch_frame): If selected frame has a mini-window,
977 resize that to exact size.
978
b7b20fbd
GM
979 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
980
a47b7816
GM
981 * xdisp.c (display_line): Simplify check for glyphs fitting
982 entirely in the line.
983
d2906bf8
GM
984 * xfns.c (xic_style): New variable.
985 (create_frame_xic): Move static variable to global scope for
550f0e6a 986 the case that `static' gets defined away.
d2906bf8 987
73df2b1e
KH
9882001-01-26 Kenichi Handa <handa@etl.go.jp>
989
990 * coding.c (decode_coding): Set a flag for inhibiting
991 inconsistent eol.
992 (code_convert_region): Always set saved_coding_symbol.
993 (decode_coding_string): Likewise. Update coding->symbol when we
994 encounter a inconsistent eol by the same way as
995 code_convert_region.
996
6613cfc4
GM
9972001-01-25 Gerd Moellmann <gerd@gnu.org>
998
c5e6e06b
GM
999 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
1000 XClearArea.
1001
1002 * xterm.c (x_after_update_window_line): Don't clear if frame's
1003 internal border width is zero.
1004 (x_clear_area): New function.
1005 (x_after_update_window_line, x_clear_end_of_line)
1006 (x_scroll_bar_create, x_scroll_bar_set_handle)
1007 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
1008 instead of XClearArea.
1009
1010 * xterm.h (x_clear_area): Add prototype.
1011
6613cfc4
GM
1012 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
1013 which doesn't seem necessary anymore with Lesstif 0.92.
1014
650cc6cc
DL
10152001-01-25 Dave Love <fx@gnu.org>
1016
34ac3367
DL
1017 * puresize.h (BASE_PURESIZE): Up to 720000.
1018
650cc6cc
DL
1019 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
1020
5e37dc22
GM
10212001-01-25 Gerd Moellmann <gerd@gnu.org>
1022
e1e441f9
GM
1023 * xdisp.c (echo_area_display): Don't call redisplay_internal
1024 when Emacs is shutting down. We can't run hooks etc. that
1025 would be necessary to do a redisplay.
1026
5e37dc22
GM
1027 * lread.c (read_integer): Use type EMACS_INT instead of int.
1028
0fb94c7f
EZ
10292001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
1030
1031 * ccl.c (ccl_driver): Fix last change.
1032
e3778624
KH
10332001-01-25 Kenichi Handa <handa@etl.go.jp>
1034
1035 * ccl.h (sturct ccl_program): New member suppress_error.
1036
bb264518 1037 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
e3778624
KH
1038 insert error message to the output.
1039 (setup_ccl_program): Initialize ccl->suppress_error to 0.
1040
1041 * coding.h (struct coding_system): New member suppress_error.
1042
1043 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
1044 (Fset_terminal_coding_system_internal): Set the member
1045 suppress_error to 1.
1046 (Fset_safe_terminal_coding_system_internal): Likewise.
1047
245ed2b1
SM
10482001-01-24 Stefan Monnier <monnier@cs.yale.edu>
1049
1050 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
1051 as if it was a `charset'.
1052
f9aaedb6
GM
10532001-01-24 Gerd Moellmann <gerd@gnu.org>
1054
1055 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
1056 value in where_is_cache; the next lookup in the cache returns
1057 something bogus if we do.
1058
c3902c3e
EZ
10592001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
1060
1061 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
1062 if HAVE_WINDOW_SYSTEM isn't defined.
1063
3497f73e
GM
10642001-01-24 Gerd Moellmann <gerd@gnu.org>
1065
e7e41584
GM
1066 * fns.c (sweep_weak_table): Fix code taking items out of
1067 the hash collision chain. Some cleanup.
1068
3497f73e
GM
1069 * xterm.c (x_new_font): Don't change a tooltip's size.
1070
1071 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
1072 background color by specifying a color for the default font
1073 in .Xdefaults.
1074
3d48e687
KH
10752001-01-24 Kenichi Handa <handa@etl.go.jp>
1076
96531b20
KH
1077 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
1078 a workaround for SunOS 4's cc.
1079 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
1080 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
1081 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
1082 statement.
3d48e687 1083
a30629d2
GM
10842001-01-23 Gerd Moellmann <gerd@gnu.org>
1085
1086 * xterm.c (x_set_window_size_1): New function extracted from
1087 x_set_window_size.
1088 (x_set_window_size): Use it.
1089 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
1090 doesn't have a widget, like tooltips.
1091
5a43decf
EZ
10922001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
1093
1094 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc
1095 fix.
1096
b0e98867
KH
10972001-01-23 Kenichi Handa <handa@etl.go.jp>
1098
1099 * fns.c (Fset_char_table_default): Fix to make sub char-table
1100 correctly.
1101
50606b4c
GM
11022001-01-22 Gerd Moellmann <gerd@gnu.org>
1103
cb2ddc53 1104 * xdisp.c (build_desired_tool_bar_string): Make sure we have
a30629d2 1105 a desired tool bar string, even if there are no tool bar
cb2ddc53
GM
1106 items.
1107
57c28064
GM
1108 * xdisp.c (Ftool_bar_lines_needed): New function.
1109 (syms_of_xdisp): Defsubr it.
1110
50606b4c
GM
1111 * editfns.c (Fformat): Don't extend text properties from arguments
1112 to padding chars in the result.
1113
2f169c38
EZ
11142001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
1115
1116 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
1117
0f32f023
AI
11182001-01-20 Andrew Innes <andrewi@gnu.org>
1119
1120 * w32term.c (w32_ring_bell): Only support visible bell on w32
1121 frames.
1122 (w32_initialize): Don't set term hooks that aren't actually needed
1123 in windowed mode.
1124
1125 * xfaces.c (realize_default_face):
1126 (realize_face):
1127 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
1128
1129 * xdisp.c (handle_single_display_prop): Remove references to
1130 FRAME_W32_CONSOLE_P.
1131
1132 * dispnew.c (Fredraw_frame): Remove reference to
1133 FRAME_W32_CONSOLE_P.
1134
1135 * frame.h (output_method): Remove output_w32_console method.
1136 (FRAME_W32_CONSOLE_P): Remove macro.
1137
1138 * frame.c (Qw32_console): Remove variable.
1139 (Fframep): Remove references to it.
1140 (syms_of_frame): Ditto.
1141 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
1142
1143 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
1144 redefinition.
1145
7173eada
KH
11462001-01-20 Kenichi Handa <handa@etl.go.jp>
1147
1148 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
1149
755b45ce
AI
11502001-01-19 Andrew Innes <andrewi@gnu.org>
1151
1152 * w32.c (init_environment): Add a version-independent site-lisp
1153 directory to EMACSLOADPATH, after the version dependent one.
1154
0a949811
GM
11552001-01-19 Gerd Moellmann <gerd@gnu.org>
1156
8501998a
GM
1157 * editfns.c (Fbuffer_substring): Doc fix.
1158
0a949811
GM
1159 * xdisp.c (message_dolog, message2, message2_nolog): Rename
1160 parameter LEN to NBYTES.
1161
e6ebcbbe
KH
11622001-01-19 Kenichi Handa <handa@etl.go.jp>
1163
200ecca2
KH
1164 * charset.c (strwidth): Use c_string_width.
1165 (c_string_width): New function.
1166 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
1167 Caller changed.
1168
1169 * charset.h (c_string_width, lisp_string_width): Extern them.
1170
1171 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
1172
e6ebcbbe
KH
1173 * indent.c (check_composition): Check validity of composition.
1174
200ecca2
KH
1175 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
1176 characters by calling c_string_width.
1177 (x_consider_frame_title): Get byte length of frame tile string
1178 correctly.
1179 (display_mode_element): Pay attention to width of non-ASCII
1180 characters by calling strwidth.
1181
8692ca92
GM
11822001-01-18 Gerd Moellmann <gerd@gnu.org>
1183
8962e303
GM
1184 * xfns.c (Qcancel_timer): New variable.
1185 (syms_of_xfns): Initialize and staticpro it.
1186 (Fx_hide_tip, Fx_show_tip): Use it.
1187 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
1188 the timer.
1189 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
1190
91523be9
GM
1191 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
1192
1193 * window.h (WINDOW_LIVE_P): New macro.
1194
b0b7ed0e
GM
1195 * window.c (window_size_fixed): New variable.
1196 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
1197 the doc string.
1198
06bccf8e
GM
1199 * eval.c (specbind): If binding a per-buffer variable which
1200 doesn't have a buffer-local value in the current buffer, change
1201 the global value by changing the value of the symbol bound in all
1202 buffers not having their own value, to make it consistent with
1203 what happens with other buffer-local variables.
1204
8692ca92
GM
1205 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
1206
1207 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
1208 when searching for a newline.
1209
bb3a3b50
KH
12102001-01-18 Kenichi Handa <handa@etl.go.jp>
1211
1212 * xdisp.c (display_string): Fix previous change.
1213
c2cc16fa
JR
12142001-01-18 Jason Rumney <jasonr@gnu.org>
1215
1216 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
1217 GLYPH_DEBUG is defined.
1218 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
1219 true for images with `:ascent 100'.
1220 (x_set_mouse_face_gc): If the last used mouse face has gone in the
1221 meantime, use face MOUSE_FACE_ID.
1222 If first glyph isn't a character glyph, use the ASCII NUL
1223 character to determine the face.
1224 (expose_area): Do not treat left margin specially.
1225 (note_mode_line_highlight): If no local_map, check global keymap.
1226 (note_mouse_highlight): Initialize overlay.
1227 (clear_mouse_face): Don't return if tip_frame is
1228 non-nil.
1229 (show_scroll_bars): Remove unused function.
1230 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
1231 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
1232 Clip to row.
1233 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be
1234 nil.
1235 (x_free_frame_resources): Unload relief colors.
1236
9c11f79e
GM
12372001-01-17 Gerd Moellmann <gerd@gnu.org>
1238
3aec8722
GM
1239 * xdisp.c (forward_to_next_line_start): Avoid calling
1240 get_next_display_element when the newline is already found. This
1241 may change the iterator's position, when its current position is
1242 equal to the iterator's stop_charpos.
1243
f3ffc2c3
GM
1244 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
1245 zero, use this method only at the end of a line.
1246
a86110a8
GM
1247 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
1248 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
1249 if SCALABLE_FONTS_P is set.
1250
d26d6fd9
GM
1251 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
1252 so that scalable fonts are included.
1253
9c11f79e
GM
1254 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
1255 In the cache, use a key containing the information if scalable
1256 fonts are included.
1257 (x_load_font): Adapt to change of keys in the font cache.
1258
12592001-01-17 Kim F. Storm <storm@filanet.dk>
1260
d26d6fd9
GM
1261 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
1262 XListFonts to take advantage of font caching.
1263
9c11f79e
GM
1264 * xterm.c (x_list_fonts): Ensure caching font information when
1265 called for a null frame, which is the case frequently when Emacs
1266 starts.
1267
51446987
GM
12682001-01-17 Gerd Moellmann <gerd@gnu.org>
1269
f864120f
GM
1270 * xfns.c (QCconversion): Replaces QCalgorithm.
1271
1272 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
1273
1274 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
1275 of :algorithm.
1276
e37d1417
GM
1277 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
1278 not everything could be displayed.
1279
51446987
GM
1280 * line.h, x-list-font.c: Files removed because unused.
1281
9ad4f3e5
AI
12822001-01-17 Andrew Innes <andrewi@gnu.org>
1283
1284 * dired.c (directory_files_internal): Convert result from readdir
1285 to a unibyte string initially, to avoid possible misinterpretation
1286 of some bytes as the internal form of Emacs characters.
1287
2eda09b5
KH
12882001-01-17 Kenichi Handa <handa@etl.go.jp>
1289
1290 * fns.c (concat): Be sure to avoid putting the same `composition'
1291 property on the adjacent regions.
1292
826f3788
GM
12932001-01-16 Gerd Moellmann <gerd@gnu.org>
1294
f251459d
GM
1295 * window.c (Fset_window_hscroll): Don't set window's min_hscroll
1296 here.
1297 (Fscroll_right, Fscroll_left): Set it here instead, if called
1298 interactively.
1299
d57b83b3
GM
1300 * buffer.c (Fset_buffer_modified_p): Set buffer's
1301 prevent_redisplay_optimizations_p flag.
1302
826f3788
GM
1303 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
1304 * sysdep.c, vmsproc.c, xselect.c: Call
1305 redisplay_preserve_echo_area with additional arg.
1306
1307 * dispextern.h, lisp.h (redisplay_preserve_echo_area): Change
1308 prototype.
1309
1310 * xdisp.c (redisplay_preserve_echo_area): Add parameter
1311 FROM_WHERE, for debugging.
1312
261d788b
KH
13132001-01-16 Kenichi Handa <handa@etl.go.jp>
1314
1315 * ccl.c (Fregister_ccl_program): Handle the return value of
1316 resolve_symbol_ccl_program correctly.
bda6b481
KH
1317 (CCL_Extension): Fix typo (originally CCL_Extention). Caller
1318 changed.
261d788b 1319
bccee4f2
GM
13202001-01-15 Gerd Moellmann <gerd@gnu.org>
1321
e4ded23c
GM
1322 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
1323 has gone in the meantime, use face MOUSE_FACE_ID.
1324
ae24cb3b
GM
1325 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: If
1326 x_display_info_for_display returns null, don't try to close
1327 the display; we didn't open it.
1328
bccee4f2
GM
1329 * dispnew.c (save_or_restore_current_matrices): Function removed.
1330 (save_current_matrix, restore_current_matrix): New functions.
1331 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
1332 restore the frame's current matrix. Due to the glyph pointer
1333 setup done in adjust_glyph_matrix, there is no easy way to make
1334 saving the current matrix in the desired matrix generally correct,
1335 so don't try it.
1336
ebeccffa
KH
13372001-01-15 Kenichi Handa <handa@etl.go.jp>
1338
1339 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
1340 truncation glyphs.
1341 (display_line): Optimize for wide characters.
e4ded23c 1342 (display_string): Don't try to display a multi-column character
ebeccffa
KH
1343 partially. On ttys, produce more than one truncation glyph for
1344 multi-column characters that don't fit on the line.
1345
64388126
KH
13462001-01-13 Kenichi Handa <handa@etl.go.jp>
1347
1348 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]: Define
1349 it instead of WORDS_BIGENDIAN. Caller changed.
1350
8edb0a6f
JR
13512001-01-13 Jason Rumney <jasonr@gnu.org>
1352
1353 * w32fns.c (Fimage_size, image_ascent, lookup_image)
1354 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
1355 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
1356 (tiff_format, gif_format, gs_format): Adapt to change of image
1357 margins.
1358
1359 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
1360 (x_draw_image_relief, x_draw_image_foreground_1)
1361 (x_draw_image_glyph_string): Adapt to change of image margins.
1362
1363 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
1364 variables.
1365
1366 * w32bdf.c (search_file_line, get_cached_font_char)
1367 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
1368
1369 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
1370
1371 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
1372 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
1373 (Fw32_send_sys_command): Remove unused variables.
1374 (w32_msg_pump): Add parentheses.
1375
1376 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
1377 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
1378 Add parentheses.
1379
4956d1ef
GM
13802001-01-12 Gerd Moellmann <gerd@gnu.org>
1381
b30623be
GM
1382 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
1383 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
1384 being a pair of margins.
1385 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
1386 to DEFVAR_LISP. Extend doc.
1387
1388 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
1389 margins.
1390 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
1391 pair of integers `(X . Y)', use X for the horizontal and Y for the
1392 vertical margin.
1393 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
1394 (parse_image_spec): Check it.
1395 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
1396 (tiff_format, gif_format, gs_format): Use
1397 IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
1398
1399 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
1400 (x_draw_image_relief, x_draw_image_foreground_1)
1401 (x_draw_image_glyph_string): Adapt to the change of image margins.
1402
1403 * dispextern.h (struct image): Replace member `margin' with
1404 `hmargin' and `vmargin'.
1405
4554cc79
GM
1406 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
1407 and GLYPHS.
1408
1409 * dispnew.c (update_text_area): Put code which decrements the
1410 stop position when the row's face extends to the end of the
3bffc665 1411 line in #if 0.
4554cc79 1412
3cccce8d
GM
1413 * xfns.c (x_set_mouse_color): Fix color allocation.
1414
4956d1ef
GM
1415 * keyboard.c: Call get_local_map with new argument list.
1416
1417 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
1418
1419 * intervals.h (enum map_property): Removed.
1420 (get_local_map): Change prototype.
1421
1422 * keymap.c: Call get_local_map with new argument list.
1423 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
1424
2c2ff7f2
GM
14252001-01-11 Gerd Moellmann <gerd@gnu.org>
1426
a23887b9
GM
1427 * xdisp.c (build_desired_tool_bar_string): Correct the computation
1428 of the size needed for the tool bar string. For the last image,
1429 use a `display' property that reaches to the end of the string.
1430
a7ee2d2e
GM
1431 * xselect.c (selection_request_dpyinfo): New variable.
1432 (x_handle_selection_request): Set it.
1433 (x_selection_request_lisp_error): Don't call
1434 x_decline_selection_request if selection request's display has
1435 been closed.
1436
2c2ff7f2
GM
1437 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]: Do
1438 the unregister_colors before calling XFreeColors.
1439
457b792c
GM
14402001-01-10 Dave Love <fx@gnu.org>
1441
1442 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
1443 ${SOME_MACHINE_LISP}, not ${lisp}.
1444
c1efd260
GM
14452001-01-10 Gerd Moellmann <gerd@gnu.org>
1446
a98b5ed9 1447 * xdisp.c (display_line): On ttys, produce more than one
4554cc79 1448 truncation glyph for multi-column characters that don't fit on the
a98b5ed9
GM
1449 line.
1450
ac95a621
GM
1451 * xselect.c (x_reply_selection_request): Add a comment.
1452
c1efd260
GM
1453 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
1454 XkbGetNames instead of XkbGetKeyboard.
1455
1bfb1345
DL
14562001-01-10 Dave Love <fx@gnu.org>
1457
1458 * sysdep.c (random): Revert the declaration.
1459
38119822
GM
14602001-01-09 Gerd Moellmann <gerd@gnu.org>
1461
35f464a7
GM
1462 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]: Call
1463 function string_bytes.
1464 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
1465
1466 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
1467 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
1468 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
1469 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
1470 the current sblock.
1471 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
1472 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
1473 after sweeping strings, and at the end.
1474 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
1475
38119822
GM
1476 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
1477 ensure that pop_message is called.
1478
1479 * keyboard.c (Fexecute_extended_command): Use a
1480 record_unwind_protect to ensure that pop_message is called.
1481
1482 * lisp.h (push_message_unwind): Add prototype.
1483
1484 * xdisp.c (push_message_unwind): New function.
1485
1486 * fileio.c (do_auto_save_unwind): Do the pop_message here
1487 instead of in Fdo_auto_save.
1488 (Fdo_auto_save): Don't call pop_message.
1489
f47a9ec4
KR
14902001-01-08 Ken Raeburn <raeburn@gnu.org>
1491
1492 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
1493 in inner block.
1494
a758f97d
GM
14952001-01-08 Gerd Moellmann <gerd@gnu.org>
1496
6d0afc03
GM
1497 * window.c (window_scroll_pixel_based): Adjust glyph matrices
1498 when increasing window's vscroll.
1499
a758f97d
GM
1500 * macros.c (Qkbd_macro_termination_hook): New variable.
1501 (syms_of_macros): Initialize and staticpro it.
1502 (pop_kbd_macro): Run kbd-macro-termination-hook.
1503
1504 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
1505
1bfb1345 15062001-01-07 Dave Love <fx@gnu.org>
64d4ec0f
DL
1507
1508 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
1509 arglist, for documentation's sake.
1510
0dac6924
AI
15112001-01-06 Andrew Innes <andrewi@gnu.org>
1512
1513 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
1514 of *.pdb.
1515
8182406a
AI
15162001-01-05 Andrew Innes <andrewi@gnu.org>
1517
1518 * term.c (update_end): Don't check updating_frame; for some reason
1519 this can be 0 sometimes, such as after dismissing a popup menu,
1520 and isn't necessary given the explicit frame argument.
1521
3828218c
GM
15222001-01-05 Gerd Moellmann <gerd@gnu.org>
1523
1524 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
1525 on some systems, and an unsigned long on others, like FreeBSD 4.1.
1526
2f5ded21
GM
15272001-01-04 Gerd Moellmann <gerd@gnu.org>
1528
1529 * xterm.c (clear_mouse_face): Don't return if tip_frame is
1530 non-nil.
1531
1532 * xfns.c (x_create_tip_frame): Preserve the value of
1533 face_change_count around the creation of the tip frame.
1534
1535 * xfns.c (last_show_tip_args): New variable.
1536 (compute_tip_xy): New function.
1537 (Fx_show_tip): Reuse an existing tip frame, if possible.
1538 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
1539
dfad65fa
DL
15402001-01-04 Dave Love <fx@gnu.org>
1541
64d4ec0f
DL
1542 * editfns.c (Fformat): Doc fix.
1543
dfad65fa
DL
1544 * systime.h (set_file_times): Prototype.
1545
1546 * widget.h (EmacsFrameSetCharSize_): Prototype.
1547
1548 * sysdep.c (random, srandom): Declare explicitly.
1549
1550 * dispextern.h (move_it_vertically_backward): Declare.
1551
85fe3b5e
GM
15522001-01-04 Gerd Moellmann <gerd@gnu.org>
1553
0f2ac578
GM
1554 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
1555 like in Fx_create_frame.
1556
482cca61
GM
1557 * xfaces.c (set_font_frame_param): Don't do anything for
1558 non-graphical frames.
1559
85fe3b5e
GM
1560 * window.c (Fdelete_other_windows): Set window's window_end_valid
1561 to nil when changing the window's start. Don't change the
1562 window's start when its top position hasn't changed. If we do,
1563 this will set the window's optional_new_start, which act's like a
1564 force_start during redisplay with C-x 1 M-> under particular
1565 circumstances (see report from Per Starback to emacs-pretest-bug
1566 from 2000-12-13.).
1567
3e99d3b4
GM
15682001-01-03 Gerd Moellmann <gerd@gnu.org>
1569
a77dc1ec
GM
1570 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
1571 short cut at the start of the function. Add an assertion.
1572 (reseat_at_next_visible_line_start): Add an assertion.
1573
2f3cad6c
GM
1574 * window.c (Frecenter): When changing the window start, set the
1575 window's window_end_valid to nil.
1576 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
1577
1578 * dispextern.h (move_it_past_eol): Add prototype.
1579
1580 * xdisp.c (move_it_past_eol): New function.
1581
3e99d3b4
GM
1582 * window.c (Fwindow_end): Doc fix.
1583
15842001-01-03 Dave Love <fx@gnu.org>
1585
1586 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3
1587 kluge.
1588
bafb434c
GM
15892001-01-03 Gerd Moellmann <gerd@gnu.org>
1590
1591 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
1592 the enabled_p flag of the glyph row at window_end_vpos to 0.
1593 (handle_single_display_prop): Fix last change.
1594
5297fb00
RS
15952001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
1596
1597 * window.c (Frecenter): Doc fix.
1598
13d6a61c
AI
15992001-01-02 Andrew Innes <andrewi@gnu.org>
1600
1601 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
1602
1603 * frame.h (output_method): Add output_w32_console method.
1604 (FRAME_W32_CONSOLE_P): New macro.
1605
1606 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
1607 use output_w32_console method.
1608 (Qw32_console): New Lisp_Object.
1609 (Fframep): Return it.
1610 (syms_of_frame): Init it.
1611 (Fframe_parameters): Report w32console as font for w32_console
1612 frames.
1613
1614 * xfaces.c (realize_default_face): Set face foreground and
1615 background to unspecified for w32_console frames.
1616 (realize_face): Realize face cache for w32_console frames.
1617 (realize_tty_face): Accept w32_console frames.
1618
1619 * xdisp.c (handle_single_display_prop): Return if frame is
1620 w32_console.
1621 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
1622 necessary, even if running interactively.
1623
1624 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
1625 w32_console frames.
1626
1627 * w32term.c (x_update_begin):
1628 (x_update_end):
1629 (x_clear_frame):
1630 (x_ins_del_lines):
1631 (x_change_line_highlight):
1632 (x_delete_glyphs):
1633 (w32_ring_bell):
1634 (x_update_begin):
1635 (x_update_end):
1636 (w32_reassert_line_highlight):
1637 (w32_frame_rehighlight):
1638 (w32_frame_raise_lower): Do nothing if not w32 frame.
1639
1640 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
1641
1642 * w32fns.c (Fx_display_color_cells): Determine correct value, when
1643 system doesn't tell us directly.
1644 (Fx_display_visual_class): Implement properly.
1645
d6bb0c0d
GM
16462001-01-02 Gerd Moellmann <gerd@gnu.org>
1647
1648 * window.c (Frecenter): Handle centering in graphical frames
1649 specially. Centering on the basis of line counts doesn't work
1650 reliably with variable-height lines.
1651
315f5865
EZ
16522001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
1653
1654 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
1655 and al[].
1656
1657 * composite.c (run_composition_function): Remove unused variable
1658 `val'.
1659 (update_compositions): Remove unused variable `hook'.
1660
1661 * intervals.c (get_local_map): Remove unused variable `tem'.
1662
1663 * doprnt.c (doprnt1): Remove unused variable `size'.
1664
1665 * fns.c (Flength): Remove unused variable `tail'.
1666 (Fdelete): Remove unused variable `size'.
1667
1668 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
1669 and `gcpro2'.
1670
1671 * doc.c (Fsnarf_documentation): Remove unused variables `fun' and
1672 `tem'.
1673
1674 * data.c (find_symbol_value): Remove extra 3rd argument in the
1675 call to swap_in_symval_forwarding.
1676
1677 * undo.c (Fprimitive_undo): Remove unused block-scope variable
1678 `end'.
1679
1680 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
1681 (trivial_regexp_p): Remove unused variable `c'.
1682 (boyer_moore): Remove unused variable `k'.
1683
1684 * indent.c (current_column): Remove unused variable `stopchar'.
1685 (Fcompute_motion): Remove unused variable `contin'.
1686
1687 * casefiddle.c (casify_object): Remove unused variable `tolen'.
1688
1689 * dired.c (directory_files_internal): Fix a typo in a comment.
1690 Remove an unused variable `handler'.
1691 (file_name_completion): Remove unused function-scope variable
1692 `dp'.
1693 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
1694 on BSD4_2.
1695
1696 * fileio.c (e_write): Remove unused variable
1697 `require_encoding_p'.
1698
1699 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
1700 and `buf'.
1701 (Fmarker_insertion_type): Remove unused variable `buf'.
1702
1703 * insdel.c (make_gap): Remove unused variable `result'.
1704
1705 * keyboard.c (record_char): Remove unused function-scope variable
1706 `help'.
1707 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
1708 (menu_bar_items): Remove unused function-scope variable `tem'.
1709
1710 * fontset.c (fontset_ref): Remove unused variable `i'.
1711 (fontset_set): Remove unused variables `j' and `tmp'.
1712 (make_fontset): Remove unused variables `i', `j', `elt' and
1713 `base_elt'.
1714 (make_fontset_for_ascii_face): Remove unused variable `name'.
1715 (fs_load_font): Remove unused variable `font_idx'.
1716 (fs_query_fontset): Remove unused function-local variable
1717 `fontset'.
1718 (list_fontsets): Remove unused variable `tail'.
1719 (Fnew_fontset): Remove unused variables `family' and `registry'.
1720 (accumulate_font_info): Remove unused variable `tmp'.
1721 (Ffontset_font): Remove unused variable `id'.
1722 (syms_of_fontset): Remove unused variable `i'.
1723
1724 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
1725 to x_term_init.
1726 (lookup_image): Remove unused variable `file'.
1727 (xbm_load): Remove unused variables `bitmap_data', `height', and
1728 `width'. Remove function-local variable `i', leave the
1729 block-local one.
1730 (gif_load): Remove unused variable `inc'.
1731
1732 * xterm.c (XTread_socket): Remove unused variables `p' and
1733 `pend'.
1734 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
1735 leave only the one in the inner block.
1736
1737 * xfaces.c (face_fontset, realize_default_face): Remove unused
1738 variable `fontset'.
1739 (face_at_buffer_position): Remove unused variable `multibyte_p'.
1740
1741 * term.c (encode_terminal_code): Remove unused variable `c'.
1742
1743 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
1744 char *' instead of `char *'.
1745
1746 * category.c (Fcategory_docstring): Remove unused variable `doc'.
1747 (Fget_unused_category): Remove unused variable
1748 `docstring_vector'.
1749 (Fchar_category_set): Remove unused variables `val', `charset',
1750 `c1' and `c2'.
1751
1752 * coding.c (detect_coding_iso2022, setup_coding_system): Remove
1753 unused variable `i'.
1754 (detect_coding_mask): Remove unused variable `idx'.
1755 (detect_coding): Remove unused variable `i'.
1756 (ccl_coding_driver): Remove unused variable `result'.
1757 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
1758 (decode_coding_string): Remove unused variables `to' and
1759 `gcpro1'.
1760 (encode_coding_string): Remove unused variables `gcpro1' and
1761 `saved_coding_symbol'.
1762 (Ffind_coding_systems_region_internal): Remove function-local
1763 variable args[], leave only the block-local one.
1764 (code_convert_region1): Remove unused variable `len'.
1765
1766 * charset.c (char_printable_p): Remove unused variable `chars'.
1767 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
1768 (str_to_multibyte): Remove unused variable `c'.
1769
1770 * window.c (size_window): Remove block-local variable `min_size'.
1771
1772 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
1773 `header_line_height'.
1774 (append_space, extend_face_to_end_of_line): Declare `saved_what'
1775 enum display_element_type.
1776
1a8a9daf
GM
17772001-01-02 Gerd Moellmann <gerd@gnu.org>
1778
6dde6abc
GM
1779 * xterm.c (x_connection_closed): Catch X errors around all
1780 statements that call X. Save away the error message in a local
1781 copy.
1782
1883b2c6
GM
1783 * xterm.c (x_connection_closed): Set handling_signal to 0 at
1784 the start.
1785
a13be207
GM
1786 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
1787 in or at the start of invisible text.
1788
1a8a9daf
GM
1789 * dispnew.c (update_window): Don't check_current_matrix_flags.
1790
3608c0f9
JR
17912001-01-01 Jason Rumney <jasonr@gnu.org>
1792
1793 * w32fns.c (x_figure_window_size): Do not allow new_height and
1794 new_width of frame to override specified values.
1795
abb1acc4
KH
17962000-12-30 Kenichi Handa <handa@etl.go.jp>
1797
d279f620
KH
1798 * composite.c (find_composition): Fix a code for searching
1799 backward.
abb1acc4 1800
762a68ec
GM
18012000-12-29 Gerd Moellmann <gerd@gnu.org>
1802
9c8b8382
GM
1803 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New
1804 function.
1805 (update_window) [GLYPH_DEBUG]: Call it.
1806 (scrolling_window): Prevent including current rows which are below
1807 what's displayed in the window.
1808
1809 * xdisp.c (try_window_reusing_current_matrix)
1810 <new start <= old start>: Disable rows in the current matrix
1811 which are below the window after scrolling.
1812
762a68ec
GM
1813 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
1814 is zero. It's not worth the complexity.
1815 (invisible_text_between_p): Put in #if 0 because unused.
1816
2d5912c1
GM
18172000-12-28 Gerd Moellmann <gerd@gnu.org>
1818
46f6a258
GM
1819 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
1820 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
1821
89f93679
GM
1822 * keyboard.c (echo_char): If C is an integer, always call
1823 push_key_description. Former code could signal an invalid
1824 character error.
1825
1826 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
1827 If set, print multibyte text.
1828 (Fsingle_key_description): Call push_key_description with
1829 FORCE_MULTIBYTE set.
1830 (describe_buffer_bindings): Likewise.
1831
1832 * lisp.h (push_key_description): Add prototype.
1833
c06017fb
GM
1834 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
1835 around the call to redisplay_internal.
1836
f1d2ce7f
GM
1837 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
1838
2d5912c1
GM
1839 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
1840
9371f831
KH
18412000-12-28 Kenichi Handa <handa@etl.go.jp>
1842
1843 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
1844 (ccl_driver): New local variable `extra_bytes'.
1845
1846 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
1847
1848 * coding.c (setup_coding_system): Initialize
1849 coding->spec.ccl.eight_bit_carryover.
1850 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
1851
0c80628a
KH
18522000-12-28 Kenichi Handa <handa@etl.go.jp>
1853
1854 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
1855 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
1856 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
1857 (decode_composition_emacs_mule): New function.
1858 (decode_coding_emacs_mule): Decode composition sequence by calling
1859 decode_composition_emacs_mule.
1860 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
1861 (encode_coding_emacs_mule): Changed from macro to function. If
2d5912c1 1862 a text contains compositions, encode them correctly.
0c80628a
KH
1863 (setup_coding_system): Set coding->commong_flags for emacs-mule so
1864 that decoding and encoding are required.
1865
3e32cc27
GM
18662000-12-27 Gerd Moellmann <gerd@gnu.org>
1867
5e25feee
GM
1868 * xfaces.c (PT_PER_INCH): New macro.
1869 (xlfd_point_size): Compute real point size from font's pixel size.
1870 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
1871 instead of 72.
1872
892d8fcd
GM
1873 * .gdbinit: Comment out the line pointing to the Lesstif source
1874 directory.
1875
12c8b416
GM
1876 * window.c (Frecenter): Use displayed_window_lines instead
1877 of window_internal_height.
1878
6061fbf0
GM
1879 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
1880 instead of x-toolkit-scroll-bars-p.
1881 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
1882
1883 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
1884 instead of x-toolkit-scroll-bars-p.
1885 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
1886
3e32cc27
GM
1887 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
1888 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
1889 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]: New
1890 variables.
1891 (add_window_display_history, add_frame_display_history)
1892 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
1893 (build_frame_matrix_from_leaf_window): Remove unused code.
1894 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
1895 redisplay history.
1896 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
1897 (update_window) [GLYPH_DEBUG]: Likewise.
1898 (syms_of_display): Defsubr dump-redisplay-history.
1899
31798cfe
GM
19002000-12-23 Gerd Moellmann <gerd@gnu.org>
1901
f717c2ba
GM
1902 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
1903 the end of the prompt. Set echo_after_prompt to the offset
1904 of echoptr in echobuf.
1905
aeb2b8fc
GM
1906 * xdisp.c (init_from_display_pos): Pop until the iterator's
1907 stack is empty; there may be frames for stretch or images
1908 on the stack.
1909
31798cfe
GM
1910 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
1911 (save_or_restore_current_matrix): New function for the same
1912 purpose, but more efficient.
1913 (adjust_frame_glyphs_for_frame_redisplay): Use it.
1914
f8156156
EZ
19152000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
1916
1917 * xdisp.c (syms_of_xdisp): Fix last change.
1918
bdd6d4e8
GM
19192000-12-23 Gerd Moellmann <gerd@gnu.org>
1920
1921 * xdisp.c (syms_of_xdisp): Doc fix.
1922
1923 * xdisp.c (redisplay_window): Remove label restore_buffers;
1924 use finish_scroll_bars instead to make sure that scroll bars
1925 are redeemed. If we don't do this, flickering can result from
1926 scroll bars being destroyed and recreated.
1927
9436cdf9
JR
19282000-12-22 Jason Rumney <jasonr@gnu.org>
1929
1930 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
1931 in the wrong colors when the foreground is not black.
1932 (expose_window): Don't redraw the window that's currently being
1933 updated.
1934
951f9df5
GM
19352000-12-22 Gerd Moellmann <gerd@gnu.org>
1936
856ff7a7
GM
1937 * window.c (size_window): When setting the window's too_small_ok
1938 flag, compare old size with minimum size depending on WIDTH_P,
1939 don't compare with window_min_width.
1940
951f9df5
GM
1941 * window.c (delete_window): Simplify somewhat.
1942 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
1943 freeing window matrices. The flag windows_or_buffers_changed is
1944 set, so the next redisplay will consider all windows; this should
1945 suffice.
1946
886bc933
KH
19472000-12-22 Kenichi Handa <handa@etl.go.jp>
1948
1949 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
1950
1951 * ccl.h (struct ccl_program): New member cr_consumed.
1952
1953 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
1954 (CCL_READ_CHAR): Handle EOL conversion here.
1955 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
1956
177f4e88
GM
19572000-12-21 Gerd Moellmann <gerd@gnu.org>
1958
6ba384dc
GM
1959 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg
1960 GLYPHS.
1961
1962 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
1963 otherwise tabs of different size compare equal.
1964
1965 * callint.c (Fcall_interactively): Prevent a compiler warning.
1966
1967 * print.c (print_unwind): Return nil.
1968 (PRINTDECLARE): Initialize all local variables.
1969 (print_preprocess): Add a default case.
1970
8e15274f
GM
1971 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
1972
1973 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
1974
177f4e88
GM
1975 * window.c (delete_window, Fsplit_window)
1976 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
1977
1978 * dispextern.h (ensure_frame_matrix): Function declaration removed.
1979
1980 * dispnew.c (ensure_frame_matrix): Removed.
1981 (save_frame_matrix, restore_frame_matrix): New functions.
1982 (adjust_frame_glyphs_for_frame_redisplay): Use them.
1983
1984 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
1985 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
1986
99012074
AI
19872000-12-21 Andrew Innes <andrewi@gnu.org>
1988
1989 * w32term.c (x_update_begin): Regenerate the palette here, rather
1990 than for each window.
1991
1992 * w32xfns.c (select_palette): Avoid calling SelectPalette if
1993 palette is NULL, since this corrupts memory! Also get
1994 display_info reference from frame.
1995
29ef7d2d
JR
19962000-12-21 Jason Rumney <jasonr@gnu.org>
1997
1998 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
1999
2000 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
2001 to avoid returning without releasing it.
3e27fa1f 2002
3f9d67a6
KH
20032000-12-21 Kenichi Handa <handa@etl.go.jp>
2004
587fc3f9
KH
2005 * keymap.c (push_key_description): Don't convert eight-bit-control
2006 and eight-bit-graphic to multibyte character.
2007
3f9d67a6
KH
2008 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
2009 generic character and CODE1 is nil, return the smallest character
2010 in CHARSET.
2011
774ba8c9
DL
20122000-12-20 Dave Love <fx@gnu.org>
2013
2014 * s/osf5-0.h (NSIG): Don't redefine.
2015
88416888
SM
20162000-12-20 Stefan Monnier <monnier@cs.yale.edu>
2017
2018 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
2019 excluding menu-bar and tool-bar.
2020 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
2021 (menu_item_p): Remove.
2022 (where_is_internal_1): Don't ignore menu-items.
2023
a6426c6f
GM
20242000-12-20 Gerd Moellmann <gerd@gnu.org>
2025
03ff8aab
GM
2026 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
2027 into account.
2028
2029 * window.c (make_window): Initialize window's min_hscroll.
2030 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
2031 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
2032 to zero.
2033 (struct saved_window): New member min_hscroll.
2034 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
2035 (Fset_window_configuration): Set window's min_hscroll.
2036 (save_window_save): Save window's min_hscroll.
2037 (compare_window_configurations): Compare min_hscroll values.
2038
2039 * window.h (struct window): New member min_hscroll.
2040
2041 * keyboard.c (echo_prompt): Prevent a compiler warning.
2042
8de4aaf8
GM
2043 * xdisp.c (try_cursor_movement): Fix last change. The real
2044 condition is that PT is at the end of the row, and should
2045 be displayed at the start of the next row.
2046
3f7e3031
GM
2047 * xdisp.c (try_cursor_movement): If we end on a partially
2048 visible line, end we already decided to scroll, return -1.
2049
a6426c6f
GM
2050 * dispextern.h (ensure_frame_matrix): Add prototype.
2051
2052 * window.c (delete_window, Fsplit_window)
2053 (Fset_window_configuration): Call ensure_frame_matrix.
2054
2055 * dispnew.c (fake_current_matrices, ensure_frame_matrix): New
2056 functions.
2057 (adjust_frame_glyphs_for_frame_redisplay): If display has been
2058 completed, call fake_current_matrices instead of marking frame
2059 garbaged.
2060
57fa2774
JR
20612000-12-20 Jason Rumney <jasonr@gnu.org>
2062
2063 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
2064
d925df90
EZ
20652000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
2066
2067 * fns.c (Frequire): Doc fix.
2068
7b93a85b
GM
20692000-12-19 Gerd Moellmann <gerd@gnu.org>
2070
71d4497a
GM
2071 * window.c (window_scroll_pixel_based): Don't use
2072 move_it_vertically.
2073
c74e645b
GM
2074 * dispnew.c (direct_output_for_insert): Fix check for mini-window
2075 currently displaying a message.
2076
7b93a85b
GM
2077 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
2078 xterm.h.
2079 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
2080
90d97e64
AI
20812000-12-18 Andrew Innes <andrewi@gnu.org>
2082
2083 * w32.c (w32_strerror): New function.
2084
2085 * w32.h (w32_strerror): New extern.
2086
2087 * w32fns.c (Fw32_shell_execute): Use it.
2088
91c9e6ce
GM
20892000-12-18 Gerd Moellmann <gerd@gnu.org>
2090
2091 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
2092
6f4745e2
EZ
20932000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
2094
2095 * msdos.c (IT_set_face): Obey inverse_video.
2096
c9e088ce
KH
20972000-12-18 Kenichi Handa <handa@etl.go.jp>
2098
2099 * dired.c (directory_files_internal): Always return decoded filenames.
2100
c3695f5f
GM
21012000-12-18 Gerd Moellmann <gerd@gnu.org>
2102
52d8e4ff
GM
2103 * xterm.c (x_connection_closed): Prevent being called recursively
2104 because of an error condition in XtCloseDisplay.
2105
62be9979
GM
2106 * xdisp.c (init_iterator): If noninteractive, and the frame's
2107 face cache is null, make one.
2108
5f7a1890
GM
2109 * xfns.c (show_busy_cursor): Check for live frames more
2110 thoroughly.
2111
c3695f5f
GM
2112 * process.c (wait_reading_process_input): Check for pending
2113 input when running timers.
2114
78555fbe
EZ
21152000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
2116
2117 * msdos.c (IT_write_glyphs): Compute the glyph face from
2118 str->face_id.
2119
b2b36264
KH
21202000-12-18 Kenichi Handa <handa@etl.go.jp>
2121
2122 * process.c (read_process_output): Don't run a filter if the code
2123 decoder produces nothing but carryover.
2124
9c543fbf
AI
21252000-12-17 Andrew Innes <andrewi@gnu.org>
2126
2127 * w32.c (sys_rename): Only check errno against EEXIST, and not
2128 EACCES, when determining whether rename failed because the target
2129 exists. This was resulting in indefinite looping on Windows 9x if
2130 the source file was locked by another process.
2131
2132 * w32fns.c (Ffile_system_info): New function.
2133 (syms_of_w32fns): Defsubr it.
2134
10c2b5a8
GM
21352000-12-17 Gerd Moellmann <gerd@gnu.org>
2136
b0228ace
GM
2137 * window.c (coordinates_in_window): Fix computation for
2138 position on vertical line between mode lines.
2139
10c2b5a8
GM
2140 * xfns.c (unwind_create_frame): Return t if frame was deleted.
2141 Don't alter tip_frame or tip_window.
2142 (unwind_create_tip_frame): Set tip_frame to nil only if frame
2143 was deleted.
2144
c844a81a
GM
2145 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
2146 Don't alter tip_frame or tip_window.
2147 (unwind_create_tip_frame): Set tip_frame to nil only if frame
2148 was deleted.
2149
6c825f8e
EZ
21502000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
2151
2152 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
2153 be consistent with the doc string. Reported by NAKAJIMA Mikio
2154 <minakaji@osaka.email.ne.jp>.
2155
af4bb4c8
KH
21562000-12-16 Kenichi Handa <handa@etl.go.jp>
2157
2158 * xfaces.c (Vface_ignored_fonts): New variable.
2159 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
2160 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
2161
8062e53a
GM
21622000-12-15 Gerd Moellmann <gerd@gnu.org>
2163
e87b8809
GM
2164 * dispnew.c (update_window): Detect pending input every nth line
2165 updated, i.e. do it depending on real work done, and not on the
2166 vpos of the line.
2167
2168 * xterm.c (expose_window): Don't redraw the window that's
2169 currently being updated.
2170
a6768cc5
GM
2171 * window.c (Fset_window_point): Remove test for
2172 cursor_in_non_selected_windows.
2173
4ea7fdca
GM
2174 * lread.c (read1): Recognize end of file after `\\'.
2175
8062e53a
GM
2176 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
2177 not unwind_create_frame.
2178
bb7959c1
GM
21792000-12-15 Dave Love <fx@gnu.org>
2180
2181 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
2182 bcopy & al.
2183
2184 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
2185
ced04c42
KH
21862000-12-15 Kenichi Handa <handa@etl.go.jp>
2187
c5443913
KH
2188 * coding.c (setup_coding_system): Clear all members of the struct
2189 coding_system at first.
bc137305
KH
2190 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
2191 argument.
2192 (code_convert_region): Don't override coding->src_multibyte and
2193 coding->dst_multibyte.
c5443913 2194
ced04c42
KH
2195 * fns.c (Fmd5): Docstring improved.
2196
c2d7f289
MB
21972000-12-15 Miles Bader <miles@gnu.org>
2198
2199 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
2200 are actually marked as mode-lines; otherwise use
2201 estimate_mode_line_height.
2202
9d7d9263
GM
22032000-12-14 Gerd Moellmann <gerd@gnu.org>
2204
2205 * editfns.c (Fformat): Prevent a buffer overrun when the format
2206 specifies a precision.
2207
7cf0153a
EZ
22082000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
2209
2210 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
2211 argument is outside the range [2..3].
2212
1de0f662
AI
22132000-12-14 Andrew Innes <andrewi@gnu.org>
2214
2215 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
2216 nothing to do. Bind inhibit-quit.
2217 (tip_frame): Make it a Lisp_Object.
2218 (x_create_tip_frame): Set tip_frame after it has been added to
2219 Vframe_list.
2220 (Fx_show_tip): Don't set tip_frame here.
2221 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New
2222 variables.
2223 (unwind_create_frame, unwind_create_tip_frame): New functions.
2224 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
2225 while a frame is only partially constructed.
2226
2227 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
2228 (x_free_frame_resources): New function.
2229 (x_destroy_window): Use it.
2230
02387dcc
GM
22312000-12-14 Gerd Moellmann <gerd@gnu.org>
2232
2233 * xfns.c (Fx_backspace_delete_keys_p): New function.
2234 (syms_of_xfns): Defsubr it.
2235
2236 * config.in (HAVE_XKBGETKEYBOARD): Add.
2237
0544ef49
KH
22382000-12-14 Kenichi Handa <handa@etl.go.jp>
2239
98d62747
KH
2240 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
2241 Always store string in multibyte representation in echobuf.
2242 (echo_char): Always store string in multibyte representation in
2243 echobuf.
2244 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
2245 (read_key_sequence): Adjusted for the change of echo_prompt.
2246
a20193cd
KH
2247 * fns.c (Fmd5): Docstring improved.
2248
191b83b6
KH
2249 * lisp.h (detect_coding_system): Prototype adjusted.
2250
0544ef49
KH
2251 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
2252 (detect_coding_emacs_mule, detect_coding_iso2022,)
2253 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
2254 (detect_coding_utf_16, detect_coding_ccl): Make them static. New
2255 argument MULTIBYTEP. Callers changed.
2256 (detect_coding_mask, detect_coding_system): New argument
2257 MULTIBYTEP. Callers changed.
1da1bb05
KH
2258 (decode_coding_string): Set coding->src_multibyte and
2259 coding->dst_multibyte before calling detect_coding and detect_eol.
2260 Update them after some coding system is detected.
2261
d5b3eb1b
SM
22622000-12-13 Stefan Monnier <monnier@cs.yale.edu>
2263
2264 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
2265
2266 * keyboard.c (menu_bar_items, tool_bar_items):
2267 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
2268
f7f8bb69
GM
22692000-12-13 Gerd Moellmann <gerd@gnu.org>
2270
19f71add
GM
2271 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
2272 New variables.
2273 (unwind_create_frame, unwind_create_tip_frame): New functions.
2274 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
2275 while a frame is only partially constructed.
2276
2277 * xterm.h (x_free_frame_resources): Declare.
2278
2279 * xterm.c (x_free_frame_resources): New function.
2280 (x_destroy_window): Use it.
2281
e10da507
GM
2282 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
2283 don't interrupt the update for pending input initially, i.e.
2284 update at least some lines.
2285
2286 * keyboard.c (do_mouse_tracking): Make externally visible.
2287
d5b3eb1b 2288 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
f7f8bb69
GM
2289
2290 * xfns.c (gray_bitmap_bits): Declare `char *'.
2291
90aa2856
GM
22922000-12-12 Gerd Moellmann <gerd@gnu.org>
2293
2294 * xdisp.c (display_tool_bar_line): Make sure that tool bar
2295 lines start with a relief line.
2296
a308c9cd
DL
22972000-12-12 Dave Love <fx@gnu.org>
2298
2299 * window.c (Fdisplay_buffer): Doc fix.
2300 (Fwindow_list): Remove unused var.
2301
2302 * buffer.h (mmap_set_vars): Declare.
2303
2304 * window.h (Fset_window_point): Declare.
2305
d575011f
EZ
23062000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
2307
bf6282d2 2308 * msdos.c (fast_find_position): Don't overstep the last window row.
d575011f
EZ
2309 (IT_note_mouse_highlight): Initialize portion to -1. Remove
2310 unused variable `area'. When looking for a row under (X,Y), give
2311 up if some of the previous rows is not enabled.
2312
ecf4d726
GM
23132000-12-12 Gerd Moellmann <gerd@gnu.org>
2314
2ebf6139
GM
2315 * window.c (Fset_window_point): If displaying cursors in windows
2316 other than the selected window, make sure redisplay updates
2317 other windows to show the new value of point in the window.
2318
2319 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
2320
bfdb75ee
GM
2321 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
2322 the buffer is the sole visible buffer when in the mini-buffer.
2323
4fdbd809
GM
2324 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
2325 Bind `inhibit-read-only' to t.
2326 (unwind_with_echo_area_buffer): Use AREF.
2327
c0006262
GM
2328 * xfns.c (Fx_hide_tip): Simplified.
2329
e9a59cad
GM
2330 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use
2331 GC_MAKE_GCPROS_NOOPS instead of `1'.
2332
ecf4d726
GM
2333 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
2334
e5959a9a
GM
23352000-12-11 Gerd Moellmann <gerd@gnu.org>
2336
a3642e49
GM
2337 * xfns.c (Fx_hide_tip): Fix last change.
2338
44b5a125
GM
2339 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
2340 nothing to do. Bind inhibit-quit.
2341 (tip_frame): Make it a Lisp_Object.
2342 (x_create_tip_frame): Set tip_frame after it has been added to
2343 Vframe_list.
2344 (Fx_show_tip): Don't set tip_frame here.
2345
2346 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
2347
2348 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
2349 Lisp_Object.
2350
2351 * dispextern.h: Change external declaration of tip_frame.
2352
d990421f
GM
2353 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
2354 return an empty string.
2355
4db87380
GM
2356 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
2357 of the window's update_mode_line flag, since the former is set by
2358 force-mode-line-update, not the latter. This makes
2359 column-number-mode slightly faster.
2360
e5959a9a
GM
2361 * xdisp.c (try_window_id) <all changes above window start>:
2362 Set the cursor.
2363
169fe44e
GM
23642000-12-11 Paul Eggert <eggert@twinsun.com>
2365
2366 * config.in (HAVE_FTELLO): Remove.
2367 (HAVE_FSEEKO): Add.
2368 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
2369 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
2370 HAVE_FTELLO.
2371 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
2372 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
2373
59ec59ae
MB
23742000-12-11 Miles Bader <miles@gnu.org>
2375
2376 * window.c (displayed_window_lines): Don't round up when
2377 converting empty space at bottom to lines.
ff904dd6
MB
2378 Handle non-newline-terminated final lines properly.
2379 (Fwindow_text_height): New function (used to be in lisp).
2380 (syms_of_window): Initialize it.
59ec59ae 2381
42ebfa31
SM
23822000-12-09 Stefan Monnier <monnier@cs.yale.edu>
2383
2384 * syntax.c (scan_lists): Check that the right quote char has the
2385 right Sstring syntax when jumping over strings.
2386 (init_syntax_once): Use Smax rather than 13.
2387
5cdb3cf3
MB
23882000-12-09 Miles Bader <miles@gnu.org>
2389
2390 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
2391 with PARTIALLY, inverting the sense.
2392 (window_scroll_pixel_based): Scroll partially visible lines into
2393 place if we hit the beginning or end of the buffer.
a12167c5
MB
2394 (displayed_window_lines): Don't include partially visible lines.
2395 (Fmove_to_window_line): Skip past any partially visible first line.
5cdb3cf3 2396
842b2a94
GM
23972000-12-08 Gerd Moellmann <gerd@gnu.org>
2398
2399 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
2400
2401 * tparam.c (tparam1): Change the way buffers are reallocated to be
2402 portable and less obfuscated.
2403
2404 * termcap.c (tgetent): Change the way buffers are reallocated to
2405 be portable and less obfuscated.
2406
2407 * macros.c (store_kbd_macro_char): Change the way buffers are
2408 reallocated to be portable and less obfuscated.
2409
2410 * lread.c (read1): Change the way buffers are reallocated to be
2411 portable and less obfuscated.
2412
2413 * doc.c (Fsubstitute_command_keys): Change the way buffers
2414 are reallocated so that it is portable.
2415
137cad7c
EZ
24162000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
2417
2418 * dosfns.c (Ffile_system_info): New function.
2419 (syms_of_dosfns): Defsubr it.
2420
5c7f629c
SM
24212000-12-07 Stefan Monnier <monnier@cs.yale.edu>
2422
2423 * alloc.c (gc_sweep): Add comment.
2424
959e647d
GM
24252000-12-07 Gerd Moellmann <gerd@gnu.org>
2426
28fcb7dc
GM
2427 * sound.c (vox_configure): Change order of ioctls. Don't
2428 set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
2429 Ignore errors when changing volume.
2430 (vox_close): Don't reset the device.
2431
926b7e5e
GM
2432 * process.c (read_process_output): Make sure the process marker's
2433 position is valid when the process buffer is changed in
2434 after-change functions. W3 does that.
2435
959e647d
GM
2436 * xfns.c (x_free_gcs): New function.
2437
2438 * xterm.h (x_free_gcs): Add prototype.
2439
2440 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
2441 freeing GCs here.
2442
2443 * xterm.c (x_destroy_window): Call x_free_gcs so that
2444 resources of non-toolkit X windows will be freed.
2445
478ea067
AI
24462000-12-07 Andrew Innes <andrewi@gnu.org>
2447
2448 * w32fns.c (xlfd_charset_of_font): Fix last change.
2449
fbee3231
DL
24502000-12-06 Dave Love <fx@gnu.org>
2451
67292061
DL
2452 * md5.h (__P): Don't define -- it comes from config.h.
2453
fbee3231
DL
2454 * strftime.c: Change some #if foo to #ifdef foo.
2455
4ee87dbb
AI
24562000-12-06 Andrew Innes <andrewi@gnu.org>
2457
2458 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
2459
2460 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname
2461 argument.
2462 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
2463 (w32_list_fonts): Don't choke if pattern doesn't specify a
2464 codepage.
2465
9765b4a4
GM
24662000-12-06 Gerd Moellmann <gerd@gnu.org>
2467
d285b373
GM
2468 * alloc.c (gc_sweep): Prevent symbols read during loadup
2469 from being freed.
2470
384333ee
GM
2471 * xdisp.c (underlying_face_id): New function.
2472 (handle_face_prop, face_before_or_after_it_pos): Use it
2473 to determine the face ``under'' a string. Let strings inherit
2474 the face of the buffer under them.
2475
2476 * xfaces.c (face_at_string_position): Update function comment.
2477
d4b72d58
GM
2478 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
2479 matrix if the window's left position has changed; we need to
2480 redraw it in this case.
2481
2482 * dispextern.h (struct glyph_matrix): Add member window_left_x.
2483
e1d05387
GM
2484 * window.c (coordinates_in_window): Check mouse on mode-line or
2485 header-line first.
2486
eb1b0c74
GM
2487 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
2488 advertized by the function documentation.
2489
d94d636f
GM
2490 * window.c (syms_of_window): Doc fix.
2491
3887b449
GM
2492 * sound.c (vox_configure): Set volume for left and right channel.
2493 (sound_cleanup): Return nil.
2494
efc8f57a
GM
2495 * xdisp.c (move_it_by_lines): Fix paren typo.
2496
9765b4a4
GM
2497 * xterm.c (x_load_font): Don't use the font's max_bounds for
2498 computing the height of the font. If max_bounds' ascent or
2499 descent are greater than the font's ascent or descent, this means
2500 glyphs overlap, which should be handled now by redisplay.
2501
6529ed87
GM
2502 * window.c (Veven_window_heights): New variable.
2503 (syms_of_window): DEFVAR_LISP it.
2504 (Fdisplay_buffer): Check Veven_window_heights before evening the
2505 window heights.
2506
0eb2ecde
MB
25072000-12-06 Miles Bader <miles@gnu.org>
2508
2509 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
2510 update `default-frame-alist' instead of setting no frame parameters.
2511
03d7a167
KH
25122000-12-06 Kenichi Handa <handa@etl.go.jp>
2513
2514 * composite.c (update_compositions): Fix typo (use the correct
2515 variable).
2516
5f8803c2
JR
25172000-12-05 Jason Rumney <jasonr@gnu.org>
2518
2519 * md5.h: Remove underscores from function declarations.
2520 (__attribute__, __alignof__) [!__GNUC__]: Define.
2521
2522 * md5.c: Delay include of md5.h until after namespace cleaning.
2523
c28a075b
JR
2524 * makefile.w32-in (fns.o): Depend on md5.h
2525 (md5.o): New target.
2526 (sunfns.o): Remove.
2527
2528 * makefile.nt: Likewise.
2529
ff3c7056
JR
25302000-12-05 Jason Rumney <jasonr@altavista.net>
2531
2532 * w32term.c (expose_area): Complete last change.
2533
0c21eeeb
KR
25342000-12-05 Ken Raeburn <raeburn@gnu.org>
2535
2536 * minibuf.c: Include intervals.h.
2537
f201d732
JR
25382000-12-05 Jason Rumney <jasonr@gnu.org>
2539
2540 * w32term.c (x_produce_glyphs): If a font for a component of
2541 a composition is not found, use 1 pixel dot ascent and 0 dot
2542 descent value to avoid displaying terribly tall empty boxes.
2543 (expose_area): Pass x-coordinate relative to the exposed
2544 area to x_draw_glyphs instead of a window-relative coordinate.
2545
21999ab9
GM
25462000-12-05 Gerd Moellmann <gerd@gnu.org>
2547
4d2036e4
GM
2548 * xdisp.c (next_element_from_ellipsis): Save face before selective
2549 display in saved_face_id, and set face_before_selective_p.
2550 (reseat_1): Reset face_before_selective_p.
2551 (append_space, extend_face_to_end_of_line): If iterator's
2552 face_before_selective_p is set, use the face from saved_face_id.
2553 (extend_face_to_end_of_line): For tty frames, make sure to
2554 use the right face id when producing spaces at the end of
2555 the line.
2556
2557 * dispextern.h (struct it): Add face_before_selective_p.
2558
52be17cc
GM
2559 * keyboard.c (record_char): Don't record identical help-echo
2560 events in recent_keys.
2561
8a4f36cc
GM
2562 * xterm.c [USE_X_TOOLKIT]: Close the display.
2563 (xim_close_dpy): Handle case that the display has been closed.
2564
57d6e381
GM
2565 * xterm.c (x_destroy_window): Reset the frame's X window after
2566 destroying it.
2567
21999ab9
GM
2568 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
2569 variable window_width.
2570 (line_draw_cost): Fix code skipping over spaces at the end of the
2571 line when must_write_spaces is not set.
2572 (scrolling_window): Fix code inserting runs in list of all runs.
2573
91372bb7
KH
25742000-12-05 Kenichi Handa <handa@etl.go.jp>
2575
2576 * coding.c (setup_coding_system): Be sure to initialize
2577 coding->category_idx.
2578
6c083b4c
GM
25792000-12-04 Gerd Moellmann <gerd@gnu.org>
2580
0c68ce6f
GM
2581 * xterm.c (PER_CHAR_METRIC): Removed because not used.
2582
6452929e
GM
2583 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
2584 area to x_draw_glyphs instead of a window-relative coordinate.
2585
d7f31e22
GM
2586 * fileio.c (auto_save_error): Add parameter ERROR. Show the
2587 error in the message.
2588
ae18aa3b
GM
2589 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
2590 timer after having read a key. It's not good for code reading
2591 several keys in a loop, like an input method.
2592
caa15ef7
GM
2593 * fileio.c (Finsert_file_contents): When VISIT is t, don't
2594 record undo information for format-decode.
2595
2596 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
2597 current buffer is read-only, not if it isn't.
2598
6c083b4c
GM
2599 * keyboard.c (record_char): Record `help-echo' input events
2600 in recent_keys only if they display some help. Don't record
2601 `help-echo' events as macro char.
2602
caa15ef7
GM
26032000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
2604
2605 * editfns.c (save_excursion_restore): Don't move point
2606 in another window if it is showing the wrong buffer.
2607 Avoid the call to Fwindow_live_p, for speed.
2608
5a13529b
KH
26092000-12-04 Kenichi Handa <handa@etl.go.jp>
2610
e225faa7
KH
2611 * xfaces.c (struct font_name): New member registry_priority.
2612 (split_font_name): Initialize the above member to zero.
2613 (concat_font_list): New function.
2614 (font_list): Include fonts of all alternative registries.
2615 (FONT_POINT_SIZE_QUANTUM): New macro.
2616 (better_font_p): Ignore point size difference less than
2617 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
2618
e89648b4
KH
2619 * xterm.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
5a13529b
KH
2623 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
2624
d7935eb6
KR
26252000-12-03 Ken Raeburn <raeburn@gnu.org>
2626
2627 * coding.h (code_convert_string1): Declare.
2628
2629 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
2630
2631 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name):
2632 Declare.
2633
0dd5e255
JR
26342000-12-02 Jason Rumney <jasonr@gnu.org>
2635
2636 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
2637 correctly for single byte character case.
2638 (w32_per_char_metric): Do not try to make any assumptions about
2639 the metrics of BDF fonts.
250cfece
JR
2640 (x_estimate_mode_line_height): If `mode-line' face
2641 hasn't a font, use that of the frame, as drawing glyphs
2642 does.
2643 (note_mouse_highlight): Change the cursor shape on the vertical
2644 border between windows [not enabled].
2645
2646 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
2647
2648 * w32fns.c (Fx_create_frame): Reintroduce the call to
2649 face-set-after-frame-defaults.
2650 (Vx_window_horizontal_drag_shape): New variable.
2651 (syms_of_xfns): DEFVAR_LISP it.
2652 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
2653 enabled].
0dd5e255 2654
b5d8d2ca
GM
26552000-12-02 Simon Josefsson <simon@josefsson.org>
2656
2657 * fns.c (Fmd5): Use a different logic to decide the coding system
2658 to use.
2659
2660 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
2661
fbb87147
EZ
26622000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
2663
2664 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is
2665 NULL.
2666
447e9da0
GM
26672000-12-01 Gerd Moellmann <gerd@gnu.org>
2668
7708ced0
GM
2669 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
2670 height for YNegative.
2671 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
2672 height; also see comment there.
2673
447e9da0
GM
2674 * window.c (coordinates_in_window): Handle computations for
2675 positions on the vertical bar and fringes differently for
2676 window-system frames. Consider some pixels near the vertical bar
2677 as on the bar if the frame doesn't have vertical scroll bars.
2678 Associate positions between mode or header lines with the
2679 right window, the left one.
2680
86d1db20
JR
26812000-12-01 Jason Rumney <jasonr@gnu.org>
2682
2683 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
2684
2685 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
2686 invalid frame.
2687
a1d58e5b
GM
26882000-12-01 Gerd Moellmann <gerd@gnu.org>
2689
2690 * window.c (struct saved_window): Add members orig_top and
2691 orig_height.
2692 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
2693 (save_window_save, Fset_window_configuration): Save/restore
2694 window's orig_top and orig_height.
2695
89c609af
JR
26962000-12-01 Jason Rumney <jasonr@gnu.org>
2697
4d177746 2698 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
86d1db20 2699
89c609af
JR
2700 * w32fns.c (x_set_cursor_color): Fix last change.
2701
eccc05db
GM
27022000-11-30 Gerd Moellmann <gerd@gnu.org>
2703
31b6671b
GM
2704 * xdisp.c (echo_area_display): If cursor is in the echo area, make
2705 sure that the next redisplay displays the minibuffer, so that
2706 the cursor will be replaced with what the minibuffer wants.
2707
eccc05db
GM
2708 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
2709 #ifndef instead of using #if.
2710 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
2711 USE_TOOLKIT_SCROLL_BARS is defined.
2712
162de750
JR
27132000-11-30 Jason Rumney <jasonr@gnu.org>
2714
2715 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
2716 x_display_cursor.
2717
693c4692
GM
27182000-11-30 Gerd Moellmann <gerd@gnu.org>
2719
2720 * fns.c (Fmd5): Doc fix.
2721
b5d8d2ca 27222000-11-30 Simon Josefsson <simon@josefsson.org>
edfb795e
GM
2723
2724 * fns.c (Fmd5): New function.
2725 (syms_of_fns): Defsubr md5.
2726
2727 * Makefile.in (obj): Add md5.o
2728
b02cd40b
GM
27292000-11-30 Gerd Moellmann <gerd@gnu.org>
2730
edfb795e
GM
2731 * md5.h, md5.c: New files, taken from glibc.
2732
df3aedcf
GM
2733 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
2734
b02cd40b
GM
2735 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
2736 hasn't a font, use that of the frame, as drawing glyphs
2737 does.
2738
8b5176cd
SM
27392000-11-29 Stefan Monnier <monnier@cs.yale.edu>
2740
2741 * eval.c (Frun_hooks): Allow 0 arguments.
2742
346598f1
GM
27432000-11-29 Gerd Moellmann <gerd@gnu.org>
2744
f9396e03
GM
2745 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
2746 is over the menu bar widget, say it's not on the frame.
2747
4a967a9b
GM
2748 * xfns.c (Fx_create_frame): Reintroduce the call to
2749 face-set-after-frame-defaults.
2750
346598f1
GM
2751 * eval.c (Fsignal): Reset handling_signal.
2752
222456a1
JR
27532000-11-28 Jason Rumney <jasonr@gnu.org>
2754
2755 * w32menu.c (add_menu_item): Reset menu item text when changing
2756 type to radio button.
2757
8049ddc0
GM
27582000-11-28 Gerd Moellmann <gerd@gnu.org>
2759
346598f1 2760 * xselect.c: Update copyright.
f4f4ee4d 2761
bebe4a2c
GM
2762 * window.c (coordinates_in_window): If on a mode or header line,
2763 but sufficiently close to its start, return ``on vertical
2764 border''. This gives us a way to drag windows horizontally when
2765 using toolkit scroll bars.
2766
2767 * xterm.c (note_mouse_highlight): Change the cursor shape
2768 on the vertical border between windows.
2769
2770 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
2771
2772 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
2773 (syms_of_xfns): DEFVAR_LISP it.
2774 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
2775
8d2c2642
GM
2776 * textprop.c (text_read_only): New function.
2777 (verify_interval_modification): Use it instead of signaling
2778 `text-read-only'. This makes it easier to catch this error
2779 with a breakpoint.:
2780
8049ddc0
GM
2781 * xdisp.c (forward_to_next_line_start): Check for newlines,
2782 not end of line, which includes CR.
2783
5a2bae6c
KH
27842000-11-28 Kenichi Handa <handa@etl.go.jp>
2785
2786 * coding.c (Ffind_coding_systems_region_internal): Be sure to
2787 include no-conversion.
2788
ae31f84d
JR
27892000-11-27 Jason Rumney <jasonr@gnu.org>
2790
2791 * w32fns.c (w32_load_system_font): Always mark font as double byte
2792 if codepage is unicode.
2793
67f1cf4c
GM
27942000-11-27 Gerd Moellmann <gerd@gnu.org>
2795
4a74d071
GM
2796 * xdisp.c (forward_to_next_line_start): If already on a newline,
2797 just consume it to avoid unintended skipping over invisible text
2798 below.
2799
902ae620
GM
2800 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
2801 `vertical-line', `mode-line' and `header-line' events.
2802
2803 * xdisp.c (try_window_id): Avoid starting to display in the middle
67f1cf4c
GM
2804 of a character, a TAB for instance. This is easier than to set
2805 up the iterator exactly, and it's not a frequent case, so the
2806 additional effort wouldn't really pay off.
2807
c1e279c2
AC
28082000-11-26 Andrew Choi <akochoi@i-cable.com>
2809
67f1cf4c 2810 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
c1e279c2
AC
2811 init_window_once.
2812
a609568a
JR
28132000-11-25 Jason Rumney <jasonr@gnu.org>
2814
48b21762
JR
2815 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]: Args
2816 to window_from_coordinates should be pixel coordinates.
2817
a609568a
JR
2818 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
2819 redisplay handles them properly.
2820
a658d039
MB
28212000-11-25 Miles Bader <miles@gnu.org>
2822
2823 * indent.c (compute_motion): Keep pos_byte in sync with pos.
2824
d3416cca
JR
28252000-11-24 Jason Rumney <jasonr@gnu.org>
2826
2827 * w32.c (init_environment): Set LANG environment variable based on
2828 locale settings, if not set.
2829
2830 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
2831 making tool bar smaller. When clearing the frame, also
2832 clear current matrices. Clear frame when tool bar disappears.
2833 Don't use more lines for the tool-bar than is available.
2834 (x_change_window_heights): New function.
2835
ba193890
GM
28362000-11-24 Gerd Moellmann <gerd@gnu.org>
2837
2be8f184
GM
2838 * xdisp.c (init_from_display_pos): If POS says we're already after
2839 an overlay string ending at POS, make sure to pop the iterator
2840 because it will be in front of that overlay string. When POS is
2841 ZV, we've thereby also ``processed'' overlay strings at ZV.
2842
ba193890
GM
2843 * xfaces.c (lface_from_face_name): Function comment fix.
2844
1862a24e
MB
28452000-11-24 Miles Bader <miles@gnu.org>
2846
2847 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
2848 apply `mode-line-inverse-video' -- zero means force display using
2849 the default face, non-zero means display using the specialized face.
2850 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
2851
f07fa1b8
KH
28522000-11-23 Kenichi Handa <handa@etl.go.jp>
2853
2854 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
2855 hard coded `4'.
2856
2bcdf662
EZ
28572000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
2858
2859 * coding.c (decode_coding_emacs_mule): Fix the case of
2860 CODING_EOL_LF, which used uninitialized value of c.
2861
ba8299ff
SM
28622000-11-23 Stefan Monnier <monnier@cs.yale.edu>
2863
2864 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
2865
f4117c4d
GM
28662000-11-22 Gerd Moellmann <gerd@gnu.org>
2867
03e757c1
GM
2868 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
2869 buffer object.
2870
f4117c4d
GM
2871 * frame.h (struct frame): Replace desired_tool_bar_items,
2872 current_tool_bar_items, n_desired_tool_bar_items,
cc362d76 2873 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
f4117c4d
GM
2874
2875 * frame.c (make_frame): Change initialization of tool bar
2876 items accordingly.
2877
2878 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
cc362d76 2879 Change references to members deleted from struct frame to use the
f4117c4d
GM
2880 new ones.
2881
2882 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
cc362d76 2883 references to members deleted from struct frame to use the new
f4117c4d
GM
2884 ones.
2885
2886 * dispnew.c (update_frame): Do nothing with frame's tool bar
2887 items.
2888
2889 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
2890
2891 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
cc362d76 2892 (note_tool_bar_highlight): Change references to members deleted
f4117c4d
GM
2893 from struct frame to use the new ones.
2894
f8e2f3f2
MB
28952000-11-23 Miles Bader <miles@gnu.org>
2896
2897 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
2898 the face's inverse-video attribute, rather than overriding it.
2899
60e8e0a5
GM
29002000-11-22 Gerd Moellmann <gerd@gnu.org>
2901
2902 * xfns.c (x_set_tool_bar_lines): Clear internal border when
2903 making tool bar smaller.
2904
92dd1b29
DL
29052000-11-22 Dave Love <fx@gnu.org>
2906
2907 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
2908
e672fdce
MB
29092000-11-22 Miles Bader <miles@gnu.org>
2910
3a17d6cc
MB
2911 * keyboard.c (Vminibuffer_message_timeout): New variable.
2912 (command_loop_1): Use it to determine message timeout.
2913 (syms_of_keyboard): Initialize it.
2914
60e8e0a5 2915 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
e672fdce 2916
e9655d81
KH
29172000-11-22 Kenichi Handa <handa@etl.go.jp>
2918
2919 * sysdep.c: Move the code for declaring h_errno after #include
2920 <netdb.h>.
2921
77270fac
GM
29222000-11-21 Gerd Moellmann <gerd@gnu.org>
2923
cd913aae
GM
2924 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
2925 the menu bar when the tooltip is unmapped.
2926
77270fac
GM
2927 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
2928 sole visible buffer when we're currently in the mini-buffer, and
2929 give up if so.
2930
556635d6
JR
29312000-11-21 Jason Rumney <jasonr@gnu.org>
2932
2933 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
2934 put on the clipboard.
2935 (Fw32_get_clipboard_data): Compare data on clipboard with saved
2936 copy of what Emacs last put there. If they are the same, do not
2937 use the clipboard copy to avoid losing data due to coding
2938 conversions.
2939
5b7bde64
MB
29402000-11-22 Miles Bader <miles@gnu.org>
2941
2942 * minibuf.c (Vminibuffer_prompt_properties): New variable.
2943 (syms_of_minibuf): Initialize it.
2944 (read_minibuf): Add properties from Vminibuffer_prompt_properties
2945 to prompt, don't make read-only.
2946
ff23e1dd
GM
29472000-11-21 Gerd Moellmann <gerd@gnu.org>
2948
3c64f287
GM
2949 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>: Add
2950 BEFORE/AFTER_POTENTIAL_GC.
2951
7aaf4388
GM
2952 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
2953
f5f47add 2954 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 2955
ff23e1dd
GM
2956 * term.c, cm.c: Don't try to include termcap.h; see comment there.
2957
37c35586
KH
29582000-11-21 Kenichi Handa <handa@etl.go.jp>
2959
2960 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
2961 ... #endif scope.
2962
ff9ab414
GM
29632000-11-20 Gerd Moellmann <gerd@gnu.org>
2964
c51d2b5e
GM
2965 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
2966 screen supports it.
2967
29a01b72
GM
2968 * s/gnu-linux.h: Don't use `#cpu'.
2969
09dfdf85
GM
2970 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
2971 not defined in mman.h.
2972
ff9ab414
GM
2973 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New
2974 variables.
2975 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
2976 and store an index in the XClientMessageEvent. Storing a
2977 Lisp_Object or pointer can fail on a 64 bit system, since X only
2978 transfers 32 bits.
2979 (x_scroll_bar_to_input_event): Get the window from
2980 scroll_bar_windows.
2981
81459ac9
DL
29822000-11-20 Dave Love <fx@gnu.org>
2983
2984 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
2985
56c13ae6
GM
29862000-11-20 Gerd Moellmann <gerd@gnu.org>
2987
2988 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
2989
495a6df3
KH
29902000-11-20 Kenichi Handa <handa@etl.go.jp>
2991
2bcf3714
KH
2992 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
2993 by WIDTH.
2994
495a6df3
KH
2995 * alloc.c (make_string): Fix previous change. Be sure to make
2996 unibyte string correctly.
2997
6d950f4c
GM
29982000-11-19 Gerd Moellmann <gerd@gnu.org>
2999
39b39373
GM
3000 * window.c (Fwindow_list): Change parameter list to be XEmacs
3001 compatible.
3002 (window_list_1): New function.
3003 (window_loop): Use it instead of Fwindow_list.
3004
b95b34e5
GM
3005 * sysdep.c (emacs_ospeed): New variable.
3006 (toplevel): Don't declare ospeed extern.
3007 (init_baud_rate): Use emacs_ospeed instead of ospeed.
3008
3009 * termcap.c (ospeed): Remove.
3010 (tputs) [!emacs]: Remove unused code.
3011 (tgetent): Avoid a compiler warning.
3012
e83dc917
GM
3013 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
3014 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 3015 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
3016
3017 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
3018 removed.
3019 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
3020 Take the X display as additional argument.
3021 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
3022 `Widget' is a pointer type that's not easily stored in Lisp_Object
3023 form in a portable way.
3024
6d950f4c
GM
3025 * dispnew.c (update_text_area): Fix last change.
3026
e47306e6
GM
30272000-11-18 Gerd Moellmann <gerd@gnu.org>
3028
fb3cd89b
GM
3029 * xdisp.c: Use BINDING_STACK_SIZE throughout.
3030
3031 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
3032 clear current matrices.
3033
edaa9aed
GM
3034 * buffer.c (mmap_enlarge): Don't print a message on stderr
3035 if mapping new memory at the end of the existing region fails.
3036
e47306e6
GM
3037 * dispnew.c (update_text_area): Don't skip over equal glyphs
3038 when the last current glyph overlaps the glyph to its right.
3039
509633e3
MB
30402000-11-18 Miles Bader <miles@gnu.org>
3041
3042 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
3043 lines that *end* with "..." too (that's the most common case!).
3044
d392e9c5
GM
30452000-11-18 Gerd Moellmann <gerd@gnu.org>
3046
67988445
GM
3047 * xdisp.c (resize_mini_window): Temporarily change to the
3048 mini-window's buffer if necessary.
1bfdbe43 3049
d392e9c5
GM
3050 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
3051 the tooltip obscures less text under it.
3052
30532000-11-17 Gerd Moellmann <gerd@gnu.org>
3054
3055 * puresize.h (BASE_PURESIZE): Increase to 700000.
3056
92bb977f
JR
30572000-11-18 Jason Rumney <jasonr@gnu.org>
3058
3059 * w32term.c (w32_draw_bitmap): Use face to set colors.
3060
26fbf20b
DL
30612000-11-17 Dave Love <fx@gnu.org>
3062
3063 * lread.c (Fload): Fix #ifdef for pcc.
3064
100b593b
GM
30652000-11-17 Gerd Moellmann <gerd@gnu.org>
3066
3067 * xdisp.c (pos_visible_p): Compute the default character height
3068 differently.
3069
a288d0d1
GM
30702000-11-16 Gerd Moellmann <gerd@gnu.org>
3071
cac94de6
GM
3072 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
3073 knowing the line's height; use the default font's height in that
3074 case.
3075
a288d0d1
GM
3076 * xfaces.c (weight_table): Add `demi' with the same meaning as
3077 `demibold'.
3078
981fb6f6
KH
30792000-11-16 Kenichi Handa <handa@etl.go.jp>
3080
2cca872d 3081 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
3082 (clear_glyph_row): Delete local static variable null_row.
3083
e5fa381b
JR
30842000-11-15 Jason Rumney <jasonr@gnu.org>
3085
3086 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
3087 (w32_alloc_lighter_color): Use new brightness calculations from
3088 xterm.c. Scale delta to be in the range expected by W32.
3089 (w32_draw_relief_rect): Use frame relief colors.
3090
8e42f043
GM
30912000-11-15 Gerd Moellmann <gerd@gnu.org>
3092
6d133d1f
GM
3093 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
3094 (Qinhibit_default_face_x_resources): New variable.
3095 (syms_of_frame): Initialize it.
3096 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
3097
3098 * xdisp.c (pos_visible_p): Improve function comment.
3099
3100 * lisp.h (BINDING_STACK_SIZE): New macro.
3101
8e42f043
GM
3102 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
3103 reading the directory if readdir returns null and errno is EAGAIN
3104 or EINTR.
3105
e8c87124
SM
31062000-11-14 Stefan Monnier <monnier@cs.yale.edu>
3107
3108 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
3109 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
3110 Set amount_to_scroll to max of dx and scroll_step so that
3111 scroll-conservatively doesn't defeat scroll-step>1.
3112 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
3113 scroll-conservatively for line-at-a-time scrolling.
3114
5f0c971d
GM
31152000-11-14 Gerd Moellmann <gerd@gnu.org>
3116
3117 * window.c (Fpos_visible_in_window_p): Call pos_visible with
3118 extra argument.
3119
3120 * xdisp.c (current_mode_line_height, current_header_line_height):
3121 New variables.
3122 (init_xdisp): Initialize them.
3123 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
3124 and use exact mode line heights if it is set.
3125
3126 * lisp.h (pos_visible_p): Change prototype.
3127
3128 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
3129 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
3130 and current_header_line_height first.
3131 (current_mode_line_height, current_header_line_height): Declare
3132 extern.
3133
d7361edf
MB
31342000-11-14 Miles Bader <miles@lsi.nec.co.jp>
3135
3136 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
3137 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
3138 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
3139
ee5e440a
MB
31402000-11-14 Miles Bader <miles@gnu.org>
3141
3142 * xterm.c (x_alloc_lighter_color): Include an additive component
3143 too for dark colors, because FACTOR isn't enough.
3144 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
3145 New macros.
3146
5ca020fc
GM
31472000-11-13 Gerd Moellmann <gerd@gnu.org>
3148
3149 * keyboard.c (show_help_echo): Call message3_nolog with number of
3150 bytes in the help string as 2nd parameter, instead of the number
3151 of characters.
3152
9d348294
MB
31532000-11-13 Miles Bader <miles@gnu.org>
3154
3155 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
3156 (Fload): Use new openp return protocol.
3157 Don't try to use Vload_source_file_function to load .elc files.
3158 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
3159 openp return protocol.
3160 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
3161
1729bb9a
KH
31622000-11-11 Kenichi Handa <handa@etl.go.jp>
3163
4e677396
KH
3164 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
3165
3166 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
3167 Defined these macros.
3168 (NLIST_STRUCT): Avoid re-defining it.
3169
1729bb9a
KH
3170 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
3171 -I/usr/contrib/X11R6/include.
3172 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
3173
a82fe213
JR
31742000-11-10 Jason Rumney <jasonr@gnu.org>
3175
3176 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
3177
3178 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
3179 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
3180
3181 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
3182 (Qw32_charset_vietnamese): New symbol.
3183 (xlfd_charset_of_font): New function.
3184 (w32_load_system_font): Use it.
3185 (x_to_w32_charset): Use Fassoc to find charset info. Special case
3186 when Vw32_charset_info_alist is nil to ensure default face always
3187 has font. Use Fcar and Fcdr for safety.
3188 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
3189 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
3190 pseudo-codepages for special cases.
3191 (w32_to_x_font): New parameter to allow charset portion to be
3192 specified where there is many to one mapping. Callers changed.
3193 (w32_list_fonts): Avoid listing fonts that won't display.
3194
52d89894
GM
31952000-11-10 Gerd Moellmann <gerd@gnu.org>
3196
3197 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
3198 (font_list_1): Renamed from font_list.
3199 (font_list): New function, trying alternative registries from
3200 Vface_alternative_font_registry_alist.
3201 (Finternal_set_alternative_font_registry_alist): New function.
3202 (syms_of_xfaces): Initialize and Staticpro
3203 Vface_alternative_font_registry_alist. Defsubr
3204 Finternal_set_alternative_font_registry_alist.
3205
651cd3da
KR
32062000-11-09 Ken Raeburn <raeburn@gnu.org>
3207
3208 * lisp.h (Flooking_at): Declare.
3209
388ac098
GM
32102000-11-09 Gerd Moellmann <gerd@gnu.org>
3211
778fbc46
GM
3212 * dired.c (directory_files_internal): Fix a braino.
3213
388ac098
GM
3214 * dired.c (directory_files_internal): Add missing GCPRO's.
3215 Some cleanup.
3216
ecaedde1
GM
32172000-11-08 Gerd Moellmann <gerd@gnu.org>
3218
f7eb32aa
GM
3219 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
3220 (resize_mini_window): Return quickly if Vresize_mini_window is
3221 nil. Don't return if Vmax_mini_window_height is nil.
3222
3223 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
3224 (syms_of_xdisp): Initialize them.
3225 (resize_mini_window): Act according to the setting of
3226 Vresize_mini_window.
3227 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
3228
ecaedde1
GM
3229 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
3230 scroll bar widget after configuring it, so that it will appear at
3231 the right position from the start.
3232 (XTredeem_scroll_bar): Cleaned up.
3233
3747ef2c
KH
32342000-11-08 Kenichi Handa <handa@etl.go.jp>
3235
3236 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 3237 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
3238 division by two.
3239
3240 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
3241
03391420
DL
32422000-11-07 Dave Love <fx@gnu.org>
3243
7758f1c1 3244 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
3245
3246 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
3247
b5de343d
GM
32482000-11-07 Gerd Moellmann <gerd@gnu.org>
3249
acad3c0b
GM
3250 * window.c (Fset_window_configuration): Don't try to preserve
3251 point in the current buffer, if that buffer is displayed in more
3252 than one window.
3253
b5de343d
GM
3254 * xfaces.c (lookup_named_face): If default face isn't realized,
3255 try to realize it. Return -1 if not successful.
3256 (Fx_list_fonts): Handle case that face cannot be determined.
3257 (Fface_font): Likewise.
3258
cdb1fe49
GM
32592000-11-06 Gerd Moellmann <gerd@gnu.org>
3260
3261 * window.c (displayed_window_lines): Detect partially
3262 visible lines at the bottom correctly.
3263
d3a67486
SM
32642000-11-06 Stefan Monnier <monnier@cs.yale.edu>
3265
3266 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
3267 when ensuring we don't do visit in indirect buffer.
3268
ff8dd5d5
KH
32692000-11-06 Kenichi Handa <handa@etl.go.jp>
3270
3271 * composite.h (compose_chars_in_text): Add prototype.
3272
3273 * composite.c (Vcomposition_function_table): New variable.
3274 (Qcomposition_function_table): New variable.
3275 (run_composition_function): Call
3276 Vcompose_chars_after_function with three arguments.
3277 (compose_chars_in_text): New function.
3278 (syms_of_composite): Modified the doc-string of
3279 Vcompose_chars_after_function. Declare composition-function-table
3280 as a lisp variable, and initialize it.
3281
3282 * xfns.c (x_encode_text): Suppress producing escape sequences for
3283 composition.
3284
3285 * xselect.c: Include composite.h.
3286 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
3287
d1145f85
AI
32882000-11-05 Andrew Innes <andrewi@gnu.org>
3289
3290 * w32term.c (x_produce_glyphs): Fix typo in enum name.
3291
3292 * sysdep.c (read_input_waiting): Remove extraneous argument to
3293 read_socket_hook.
3294
3295 * w32fns.c (Fx_server_version): Include w32_build_number in the
3296 return list.
3297
3298 * w32heap.c (w32_build_number): New variable.
3299 (cache_system_info): Set it.
3300
3301 * w32heap.h (w32_build_number): Add extern.
3302
3303 * emacs.c (syms_of_emacs): Update docstring for
3304 system-configuration, to reflect the actual usage on MS-Windows.
3305
e85ee976
GM
33062000-10-31 Gerd Moellmann <gerd@gnu.org>
3307
26dcb81b
GM
3308 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
3309 process idle timers while waiting for another event.
3310
0a894bad
GM
3311 * dispnew.c (update_frame_line): Handle case where spaces in
3312 the default face are colored.
3313
e85ee976
GM
3314 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
3315 window height hasn't changed.
3316
01b220b6
JR
33172000-10-31 Jason Rumney <jasonr@gnu.org>
3318
3319 * w32term.c (x_produce_glyphs): Handle composite characters.
3320 (x_draw_glyph_string_foreground)
3321 (x_draw_composite_glyph_string_foreground): Restore old font.
3322
4e6b7204
MB
33232000-10-31 Miles Bader <miles@lsi.nec.co.jp>
3324
3325 * minibuf.c (read_minibuf): Reset the undo history just before
3326 starting the recursive-edit.
3327
d4358b37
GM
33282000-10-30 Gerd Moellmann <gerd@gnu.org>
3329
563f68f1
GM
3330 * xfaces.c (menu_face_change_count): New variable.
3331 (Finternal_set_lisp_face_attribute): Increment it for changes
3332 of the `menu' face.
3333 (realize_basic_faces): Reflect changes in the `menu' faces
3334 in menu bars.
3335
82e274d1
GM
3336 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
3337 dy obtained from the iterator's y-position after moving from
3338 scroll_margin_pos to PT; see comment there.
3339
0dbf9fd2
GM
3340 * xdisp.c (safe_eval_handler): Call add_to_log.
3341
906b3b14
GM
3342 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
3343 is not a symbol or string.
3344
d4358b37
GM
3345 * xdisp.c (echo_area_display): Don't perform a display update from
3346 inside redisplay. The update will happen anyway at the end of
3347 redisplay, and it can confuse redisplay (GC messages while
3348 redisplaying, for instance.)
3349
70c825df
SM
33502000-10-30 Stefan Monnier <monnier@cs.yale.edu>
3351
cf9b4b0b
SM
3352 * xrdb.c (x_load_resources): Use the class name in the defaults.
3353
70c825df
SM
3354 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
3355 (regex_compile): Catch bogus \(\1\).
3356
a1d34b1e
GM
33572000-10-30 Gerd Moellmann <gerd@gnu.org>
3358
cae71efe
GM
3359 * xterm.c (x_alloc_nearest_color): Fix last change to compare
3360 RGB values.
3361
35efe0a1
GM
3362 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
3363 we have a color cache, check that the cached color equals the
3364 allocated color. If not, clear the color cache.
3365
1d3baf74
GM
3366 * window.c (displayed_window_lines): Change buffers if necessary.
3367 Fix computation of displayed lines.
3368
a1d34b1e
GM
3369 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
3370 update_menu_bindings to DEFVAR_BOOL.
3371
70737ea9
KH
33722000-10-30 Kenichi Handa <handa@etl.go.jp>
3373
70c825df 3374 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 3375
fa0cb51d
KH
3376 * puresize.h (BASE_PURESIZE): Increase to 680000.
3377
70737ea9
KH
3378 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
3379
0e4c08e8
JR
33802000-10-29 Jason Rumney <jasonr@gnu.org>
3381
3382 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
3383
3384 * w32term.c (w32_bdf_per_char_metric): Negate descent.
3385 (w32_cache_char_metrics): Handle possibility that 'x' does not
3386 exist in a BDF font.
3387 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
3388
3389 * w32bdf.h (bdffont): Add nchars.
3390
3391 * w32bdf.c (set_bdf_font_info): Set it.
3392 (w32_BDF_TextOut): Swap byte order of double byte characters.
3393 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
3394
45b84006
EZ
33952000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
3396
3397 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
3398 don't override the colors in frame's param_alist, unless they are
3399 unspecified.
3400
3401 * term.c (reassert_line_highlight): If inverse_video is non-zero,
3402 reverse the effect of the highlight flag.
3403
caf9deee
KR
34042000-10-27 Ken Raeburn <raeburn@gnu.org>
3405
3406 * window.h (Fwindow_live_p): Declare.
3407
ae0b9b46
KR
3408 * undo.c (record_delete): Check that last_undo_buffer is really a
3409 buffer before applying XBUFFER to it.
3410
3411 * keymap.c (where_is_internal): Pass lisp object, not integer, to
3412 Faref.
3413
02067692
SM
34142000-10-27 Stefan Monnier <monnier@cs.yale.edu>
3415
3416 * lisp.h (KEYMAPP): New macro.
3417 (get_keymap): Remove.
3418 (get_keymap_1): Rename get_keymap.
3419
3420 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
3421
3422 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
3423
3424 * xmenu.c (single_submenu): Use KEYMAPP.
3425 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
3426 Use KEYMAPP rather than Fkeymapp.
3427
3428 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
3429
3430 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
3431 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
3432 Use KEYMAPP rather than Fkeymapp.
3433 (single_submenu): Use KEYMAPP.
3434 (w32_menu_show, w32_dialog_show): Use TRUE.
3435
3436 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
3437
3438 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
3439 (Fkeymapp): Use KEYMAPP.
3440 (get_keymap): Rename from get_keymap_1. Remove old def.
3441 Return t when autoload=0 and error=0 and the keymap needs autoloading.
3442 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
3443 (Fminor_mode_key_binding): Don't raise an error if the binding
3444 is not a keymap.
3445 (Fuse_global_map, Fuse_local_map): Allow autoloading.
3446 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
3447
3448 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
3449 Allow Vspecial_event_map to be autoloaded.
3450 (menu_bar_items): Fetch the keymap rather than using keymapp.
3451 (menu_bar_one_keymap): No need to follow func-indirect any more.
3452 (parse_menu_item): get_keymap_1 -> get_keymap.
3453 (tool_bar_items): Fetch the keymap rather than using keymapp.
3454 (read_key_sequence): Use KEYMAPP.
3455
3456 * intervals.c (get_local_map): Use get_keymap rather than following
3457 function-indirections explicitly.
3458
3459 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
3460
f9d80af3
JR
34612000-10-27 Jason Rumney <jasonr@gnu.org>
3462
3463 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
3464 point, as Windows has oversized fonts.
3465
3466 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
3467
a3ba27da
GM
34682000-10-27 Gerd Moellmann <gerd@gnu.org>
3469
3470 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
3471 (freehook, reallochook): Handle null pointer arguments.
3472 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
3473
aa3b80cc
SM
34742000-10-27 Stefan Monnier <monnier@cs.yale.edu>
3475
3476 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
3477 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
3478 Giving in to popular pressure to shut up the compiler with casts.
3479
e24e84cc
GM
34802000-10-27 Gerd Moellmann <gerd@gnu.org>
3481
3482 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
3483 signed value, and use a default value computed from the font's
3484 maximum descent.
3485
05ea7ef2
MB
34862000-10-27 Miles Bader <miles@lsi.nec.co.jp>
3487
3488 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
3489 that specify a negative underline position can still use underlines.
3490
3491 * window.c (Fpos_visible_in_window_p): Make POS default to
3492 WINDOW's point, not the current buffer's point.
3493
0b95284b
DL
34942000-10-26 Dave Love <fx@gnu.org>
3495
3496 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
3497 when it's necessary.
3498
6c5b90af
GM
34992000-10-26 Gerd Moellmann <gerd@gnu.org>
3500
8b6d9dc9
GM
3501 * window.c (size_window): Compute size difference from sum of old
3502 child window sizes instead of from parent's size.
3503
6bc92b2e
GM
3504 * xdisp.c (pos_visible_p): Change current buffer if necessary.
3505 Handle obscured lines at the top of the window.
3506
3507 * frame.c (Fdelete_frame): Doc fix. Move running the hook
3508 down after the last error condition check.
3509
6c5b90af
GM
3510 * frame.c (Fdelete_frame): Run delete-frame-hook.
3511
42f92d4d
KH
35122000-10-26 Kenichi Handa <handa@etl.go.jp>
3513
3514 * coding.c (decode_coding): Fix previous change (check also
3515 CODING_MODE_LAST_BLOCK).
3516
d97151cb
SM
35172000-10-25 Stefan Monnier <monnier@cs.yale.edu>
3518
e7efc503
SM
3519 * regex.c: More `unsigned char' -> `re_char' changes.
3520 Also change several `int' into `re_wchar_t'.
3521 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
3522 (PUSH_FAILURE_POINTER): Don't cast any more.
3523 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
3524 We want GCC to complain, since this piece of code makes
3525 re_match non-reentrant, which *should* be fixed.
3526 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
3527 (EXTEND_BUFFER): Use RETALLOC.
3528 (SET_LIST_BIT): Don't cast.
3529 (re_wchar_t): New type.
3530 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
3531 that those two functions will always properly return.
3532 (IMMEDIATE_QUIT_CHECK): Cast to void.
3533 (analyse_first): Use recursion rather than an explicit stack.
3534 (re_compile_fastmap): Can't fail anymore.
3535 (re_search_2): Don't check re_compile_fastmap for failure.
3536 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
3537 Now also sets the new value (passed in a new argument).
3538 (re_match_2_internal): Use it.
3539 Also, use a new var `reg' of type size_t when looping through regs
3540 rather than reuse the inappropriate `mcnt'.
3541
d97151cb
SM
3542 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
3543 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
3544 (where_is_internal): Renamed from Fwhere_is_internal.
3545 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
3546 (Fwhere_is_internal): New function wrapping where_is_internal.
3547 (where_is_internal_1): Handle the case where we're filling the cache.
3548 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
3549
d5789b65
MB
35502000-10-25 Miles Bader <miles@gnu.org>
3551
3552 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
3553
4ecda532
GM
35542000-10-25 Gerd Moellmann <gerd@gnu.org>
3555
3556 * window.c (pos_fully_visible_p): Removed.
3557 (Fpos_visible_in_window_p): Use pos_visible_p to determine
3558 if position is visible and/or fully visible.
3559
3560 * lisp.h (pos_visible_p): Add prototype.
3561
3562 * xdisp.c (pos_visible_p): New function.
3563
68c3a137
KH
35642000-10-25 Kenichi Handa <handa@etl.go.jp>
3565
3566 * process.c (send_process): If OBJECT is t, it means that the data
3567 is from C string, but we should encode it. Before calling
3568 setup_raw_text_coding_system, be sure to flush out data by the
3569 previous coding system.
3570
7ae1c032
MB
35712000-10-25 Miles Bader <miles@lsi.nec.co.jp>
3572
ff4dcd4b
MB
3573 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
3574 assignment of startpos to prev when startpos == pos.
3575
7ae1c032
MB
3576 * editfns.c (find_field): Set the field stickiness correctly from
3577 overlay fields. Use renamed `text_property_stickiness'.
3578 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 3579 Only check text properties, not overlays.
7ae1c032
MB
3580 * textprop.c (get_char_property_and_overlay): New function.
3581 (Fget_char_property): Use it.
3582 * intervals.h (get_char_property_and_overlay): Add declaration.
3583
49801145
SM
35842000-10-25 Stefan Monnier <monnier@cs.yale.edu>
3585
3586 * keymap.c: Use AREF, ASET and ASIZE macros.
3587 (Fmake_sparse_keymap): Docstring fix.
3588 (synkey): Remove.
3589 (shadow_lookup): Move up.
3590 Handle the case where lookup-key returns an integer.
3591 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
3592 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
3593 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
3594 Simplify/rewrite the keymap-finding code.
3595 Add check for command shadowing, using shadow_lookup.
3596
39e776cd
SM
35972000-10-24 Stefan Monnier <monnier@cs.yale.edu>
3598
3599 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
3600 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
3601 a symbol.
3602
2488aba5
AI
36032000-10-24 Andrew Innes <andrewi@gnu.org>
3604
3605 * dired.c (directory_files_internal_unwind): New function.
3606 (directory_files_internal): Use it to ensure closedir is called
3607 even if expand-file-name or file-attributes throw, eg. because of
3608 a user interrupt. Also enable immediate_quit while calling
3609 re_search, so that matching can be interrupted as well.
3610
b94fdf61
AI
36112000-10-24 Andrew Innes <andrewi@gnu.org>
3612
3613 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
3614 NT-Emacs only.
3615 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
3616 so that re_search functions only quit when callers expect them to.
3617
36182000-10-24 Kenichi Handa <handa@etl.go.jp>
3619
3620 * regex.c (regex_compile): Change the way of handling a range from
3621 a char less than 256 to a char not less than 256.
3622
1946f901
GM
36232000-10-24 Gerd Moellmann <gerd@gnu.org>
3624
7ae2f10f
GM
3625 * window.c (size_window): Prevent setting window's width or
3626 height to a negative value (esp. with XSETFASTINT).
3627
5dcab13e
GM
3628 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
3629 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
3630 (protect_malloc_state) [GC_MALLOC_CHECK &&
3631 GC_PROTECT_MALLOC_STATE]: New function.
3632 (PROTECT_MALLOC_STATE): New macro.
3633 (__malloc_initialize, morecore, _malloc_internal)
3634 (_free_internal) _realloc_internal): Use it to make _heapinfo
3635 read-only outside of gmalloc.
3636
63e1b552
GM
3637 * keymap.c: Update copyright.
3638
1946f901
GM
3639 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
3640 a symbol.
3641
4fa09beb
GM
36422000-10-24 Colin Walters <walters@cis.ohio-state.edu>
3643
3644 * filelock.c (unlock_all_files): Use unlock_file to expand each
3645 buffer's file_truename before trying remove its lock file.
3646
23afac01
EZ
36472000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
3648
3649 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
3650 or CRLF, decode EOLs.
3651
04448b95
KH
36522000-10-24 Kenichi Handa <handa@etl.go.jp>
3653
3654 * window.c (Fdisplay_buffer): Fix doc.
3655
3090a5a5
JR
36562000-10-23 Jason Rumney <jasonr@gnu.org>
3657
3658 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
3659 ASCII font of default fontset on Windows.
3660
3661 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
3662 xterm.c comment below).
3663
3664 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
3665
a83fee2c
GM
36662000-10-23 Gerd Moellmann <gerd@gnu.org>
3667
3668 * xterm.c (x_connection_closed): Reset handling_signal.
3669
3670 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing
3671 null.
3672
6ffdb539
MB
36732000-10-23 Miles Bader <miles@gnu.org>
3674
3675 * window.c (window_scroll_pixel_based, window_scroll_line_based):
3676 Pass nil for FULLY argument to Fpos_visible_in_window_p to
3677 maintain old behavior.
3678 * minibuf.c (Fminibuffer_complete): Likewise.
3679
7f1c969b
MB
36802000-10-23 Miles Bader <miles@lsi.nec.co.jp>
3681
3682 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
3683 that when a font can't be exactly centered, it errs up rather than
3684 down.
3685
23afac01 36862000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd
SZ
3687
3688 * fns.c (Fbase64_decode_string): The decoded result should be
3689 unibyte.
3690
1a578e9b
AC
36912000-10-23 Andrew Choi <akochoi@i-cable.com>
3692
3693 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
3694
3695 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 3696 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
3697
3698 * emacs.c (main) [macintosh]: Call syms_of_textprop,
3699 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
3700 syms_of_search, x_term_init, and init_keyboard before calling
3701 init_window_once. Also, call syms_of_xmenu.
3702
3703 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
3704 default fontset to Monaco.
3705
3706 * frame.c [macintosh]: Include macterm.h. Remove declarations of
3707 NewMacWindow and DisposeMacWindow.
3708 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
3709 instead of calling NewMacWindow and setting fields of
3710 f->output_data.mac directly. Call init_frame_faces.
3711 (Fdelete_frame) [macintosh]: Remove unused code.
3712 (Fmodify_frame_parameters) [macintosh]: Call
3713 x_set_frame_parameters instead of mac_set_frame_parameters.
3714
3715 * frame.h [macintosh]: Define menu_bar_lines field in struct
3716 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
3717
3718 * keyboard.c [macintosh]: Include macterm.h.
3719 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
3720 and menu_bar_activate_event type events as for X and NT.
3721 (make_lispy_event) [macintosh]: Construct lisp events of type
3722 MENU_BAR_EVENT as for X and NT.
3723
3724 * sysdep.c [macintosh]: Remove declaration for sys_signal.
3725 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
3726 (sys_subshell) [macintosh]: Remove definition entirely.
3727 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
3728 Vwindow_system_version here. Remove initialization of
3729 Vx_bitmap_file_path.
3730 (read_input_waiting): Correct the number of parameters passed to
3731 read_socket_hook.
3732 Move all Macintosh functions to mac/mac.c.
3733
3734 * term.c [macintosh]: Include macterm.h.
3735
3736 * window.c [macintosh]: Include macterm.h.
3737
3738 * xdisp.c [macintosh]: Include macterm.h. Declare
3739 set_frame_menubar and pending_menu_activation.
3740 (echo_area_display) [macintosh]: Do not return if terminal frame
3741 is the selected frame.
3742 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
3743 Allow only the selected frame to set menu bar.
3744 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
3745 calling FRAME_EXTERNAL_MENU_BAR (f).
3746 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
3747
3748 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
3749 and check_x. Declare XCreateGC. Define x_create_gc and
3750 x_free_gc. Initialize font_sort_order.
3751 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
3752 but call x_list_fonts instead of w32_list_fonts.
3753 (Finternal_face_x_get_resource) [macintosh]: Do not call
3754 display_x_get_resource.
3755 (prepare_face_for_display) [macintosh]: Set xgcv.font.
3756 (realize_x_face) [macintosh]: Load the font if it is specified in
3757 ATTRS.
3758 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed
3759 to Qt.
3760
1ffbabe3
SM
37612000-10-22 Stefan Monnier <monnier@cs.yale.edu>
3762
3763 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
3764 is nil: since we go to the end of submap anyway, we'd end up
3765 setting nil to nil.
3766 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
3767 doesn't obey autoload.
3768
bed43f1d
EZ
37692000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
3770
1ffbabe3 3771 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 3772
ea4233a7
JR
37732000-10-21 Jason Rumney <jasonr@gnu.org>
3774
3775 * w32term.c (w32_cache_char_metrics): Double check that font is
3776 really fixed pitch before trusting tmPitchAndFamily.
3777
f3d3c491
AI
37782000-10-21 Andrew Innes <andrewi@gnu.org>
3779
3780 * w32gui.h (w32_char_font_type): Move enum from w32term.c
3781
3782 * w32term.h: Extern decl for w32_cache_char_metrics.
3783
3784 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
3785
3786 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
3787 (w32_unload_font): Free per_char array if present.
3788
3789 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
3790 cached information in emulated XFontStruct to handle common cases
3791 quickly. Do not allocate XCharStruct for return.
3792 (w32_native_per_char_metric): New function.
3793 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
3794 allocating one.
3795 (x_produce_glyphs): Don't get an HDC. Change calls to
3796 w32_per_char_metric to match arg change above. Remove calls to
3797 free results.
3798 (w32_get_glyph_overhangs): Ditto.
3799 (w32_cache_char_metrics): New function.
3800
3801 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
3802 ($(BLD)/casefiddle.$(O)): Remove compile command.
3803 ($(BLD)/gmalloc.$(O)): Remove compile command.
3804 ($(BLD)/dispnew.obj):
3805 ($(BLD)/keyboard.obj):
3806 ($(BLD)/w32inevt.obj):
3807 ($(BLD)/w32bdf.obj):
3808 ($(BLD)/alloc.obj):
3809 ($(BLD)/buffer.obj):
3810 ($(BLD)/editfns.obj):
3811 ($(BLD)/emacs.obj):
3812 ($(BLD)/fileio.obj):
3813 ($(BLD)/fns.obj):
3814 ($(BLD)/indent.obj):
3815 ($(BLD)/insdel.obj):
3816 ($(BLD)/intervals.obj):
3817 ($(BLD)/minibuf.obj):
3818 ($(BLD)/print.obj):
3819 ($(BLD)/scroll.obj):
3820 ($(BLD)/sysdep.obj):
3821 ($(BLD)/textprop.obj):
3822 ($(BLD)/widget.obj):
3823 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
3824 ($(BLD)/term.obj): Add dependency on dispextern.h.
3825
3826 * makefile.nt ($(BLD)\dispnew.obj):
3827 ($(BLD)\keyboard.obj):
3828 ($(BLD)\w32inevt.obj):
3829 ($(BLD)\w32bdf.obj):
3830 ($(BLD)\alloc.obj):
3831 ($(BLD)\buffer.obj):
3832 ($(BLD)\editfns.obj):
3833 ($(BLD)\emacs.obj):
3834 ($(BLD)\fileio.obj):
3835 ($(BLD)\fns.obj):
3836 ($(BLD)\indent.obj):
3837 ($(BLD)\insdel.obj):
3838 ($(BLD)\intervals.obj):
3839 ($(BLD)\minibuf.obj):
3840 ($(BLD)\print.obj):
3841 ($(BLD)\scroll.obj):
3842 ($(BLD)\sysdep.obj):
3843 ($(BLD)\textprop.obj):
3844 ($(BLD)\widget.obj):
3845 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
3846 ($(BLD)\term.obj): Add dependency on dispextern.h
3847
18ad4821
EZ
38482000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
3849
3850 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
3851 with an additional argument of Qt.
3852
de54681a
MB
38532000-10-21 Miles Bader <miles@gnu.org>
3854
3855 * window.c (pos_fully_visible_in_window_p): New function.
3856 (Fpos_visible_in_window_p): Add FULLY argument.
3857 Use pos_fully_visible_in_window_p.
3858 (window_scroll_pixel_based, window_scroll_line_based): Update
3859 calls to Fpos_visible_in_window_p.
3860 * lisp.h (Fpos_visible_in_window_p): Update prototype
3861
13c844fb
GM
38622000-10-20 Gerd Moellmann <gerd@gnu.org>
3863
3864 * alloc.c (toplevel): Conditionalize compilation of mem_*
3865 functions differently.
3866
d9506268
JR
38672000-10-20 Jason Rumney <jasonr@gnu.org>
3868
3869 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
3870 mem_init where it used to be. mem_z etc not defined otherwise.
3871
8094989b
GM
38722000-10-20 Gerd Moellmann <gerd@gnu.org>
3873
3874 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
3875 GC_MALLOC_CHECK.
3876 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
3877 structure definition and related variabled to the top of the file.
3878 Include this code when GC_MALLOC_CHECK is defined.
3879 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
3880 register/unregister allocated region.
3881 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
3882 which isn't allocated.
3883 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
3884 something which is already in use.
3885 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
3886 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
3887 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
3888 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
3889
3890 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
3891 _malloc_internal instead of malloc.
3892 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
3893 of free.
3894
ea456eb4
AI
38952000-10-20 Andrew Innes <andrewi@gnu.org>
3896
3897 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
3898 Windows.
3899 (my_strftime) <macro>: Don't use macro arg list when redefining as
3900 _strftime_copytm.
3901 (my_strftime) <function>: Supply 0 as ut argument.
3902
e64c3a75
JR
39032000-10-19 Jason Rumney <jasonr@altavista.net>
3904
3905 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
3906 including dispextern.h, as it stops faces from working.
3907
3908 * w32fns.c (Fx_create_frame): Don't bother calling
3909 face-set-after-frame-default since the caller does it for us
3910 anyway. Clean up calls to x_get_arg to be consistent with X.
3911
3912 * w32term.c (x_produce_glyphs): Handle
3913 unibyte_display_via_language_environment correctly.
3914 (w32_draw_box_rect): Fix the calculation of width and height.
3915
3916 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
3917 as it has stopped working.
3918 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
3919 menu-bar.
3920
17401c97
GM
39212000-10-19 Gerd Moellmann <gerd@gnu.org>
3922
3923 * eval.c (skip_debugger): Prevent a compiler warning.
3924 (Fcondition_case): Likewise.
3925 (Fbacktrace_frame): Use a null interactive spec.
3926
773272d8
KH
39272000-10-19 Kenichi Handa <handa@etl.go.jp>
3928
3929 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
3930
a42943e9
GM
39312000-10-18 Gerd Moellmann <gerd@gnu.org>
3932
e50517d9
GM
3933 * strftime.c: Sync with glibc, file version 1.78.
3934 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
3935 should no longer be used according to ISO 8601.
3936
9035a35a
GM
3937 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
3938 no map for meta_prefix_char, don't try to use it as a keymap.
3939 Instead, if T_OK is non-zero, look up a default binding, if any,
3940 otherwise, if T_OK is zero, return nil.
3941
a42943e9
GM
3942 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
3943 (x_to_xcolors, png_load): Use x_query_color.
3944
3945 * xterm.c (x_color_cells, x_query_colors, x_query_color): New
3946 functions.
3947 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
3948 which can be slow.
3949 (x_copy_color, x_alloc_lighter_color): Likewise.
3950
3951 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
3952 (x_query_color, x_query_colors): Add prototype.
3953
3954 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
3955 check_string_bytes only if not noninteractive, increase count to 50.
3956
00de2987
MB
39572000-10-18 Miles Bader <miles@lsi.nec.co.jp>
3958
3959 * insdel.c (adjust_markers_for_delete): Handle before-insertion
3960 markers correctly.
3961
54918e2b
GM
39622000-10-17 Gerd Moellmann <gerd@gnu.org>
3963
1f0b3fd2
GM
3964 * alloc.c (pure_bytes_used): Renamed from pureptr.
3965 (ALIGN): New macro.
3966 (pure_alloc): New function.
3967 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
3968 Use it.
3969 (Fpurecopy): Use PURE_POINTER_P.
3970
68c5d1db
GM
3971 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
3972 PT has moved backward.
3973
9a038881
GM
3974 * xdisp.c (cursor_row_p): Take continued lines into account.
3975
361b097f
GM
3976 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
3977 string's size_byte.
3978 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
3979 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
3980 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
3981 string allocated.
3982
54918e2b
GM
3983 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
3984 of selective display off while searching for the next line start.
3985
03ed0806
KH
39862000-10-17 Kenichi Handa <handa@etl.go.jp>
3987
3988 * Makefile.in (term.o): Depend on dispextern.h.
3989
7e05cdaf
SM
39902000-10-16 Stefan Monnier <monnier@cs.yale.edu>
3991
3992 * keymap.c (keymap_memberp): Ensure that nil is not a member.
3993
a6801fd1
GM
39942000-10-16 Gerd Moellmann <gerd@gnu.org>
3995
483de32b
GM
3996 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
3997 the iterator at the beginning, so that they can be set later on,
3998 for instance in reseat_at_next_visible_line_start, without being
3999 overwritten.
4000
a6801fd1
GM
4001 * xfns.c (pbm_format): Add :foreground and :background keywords.
4002 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
483de32b 4003 (xbm_load): Recognize foreground and background color
a6801fd1
GM
4004 specifications.
4005
dbf1fcc1
EZ
40062000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
4007
4008 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
4009
4010 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern
4011 declaration.
4012
4013 * msdos.c (IT_set_face): Compare highlighted face with the default
4014 face, and invert colors if these faces' colors are identical.
4015 (Fmsdos_remember_default_colors): Don't swap foreground and
4016 background colors in initial_colors[].
4017 (IT_set_frame_parameters): Don't swap frame's foreground and
4018 background pixels. If ALIST includes "(reverse . t)", swap
4019 foreground-color and background-color properties in frame's
4020 param_alist. If the original frame's param_alist doesn't specify
4021 the colors, store unspecified-fg and unspecified-bg, reversed if
4022 required.
4023
4024 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
4025 the colors are unspecified and reversed, reverse fore- and back-
4026 ground in the returned value.
4027 (Fframe_parameter): Ditto.
4028
b41fe2c3
GM
40292000-10-16 Gerd Moellmann <gerd@gnu.org>
4030
3a6b59d9
GM
4031 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
4032 get_last_unchanged_at_beg_row.
4033 (find_first_unchanged_at_end_row): Renamed from
4034 get_first_unchanged_at_end_row.
4035 (find_first_unchanged_at_end_row): Convert assertions to
4036 unconditional tests which abort. When looking for a row in
4037 unchanged text, don't go further back than first_text_row.
4038
b41fe2c3
GM
4039 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
4040 Don't add in the last line's height when deciding if the new
4041 position is below the scroll margin.
9d1af64f 4042
b41fe2c3 40432000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
4044
4045 * editfns.c (Fconstrain_to_field): Check carefully for field
4046 boundaries if either OLD_POS or NEW_POS has a non-nil field
4047 property, even if they're the same.
4048
c412cb7b
KH
40492000-10-16 Kenichi Handa <handa@etl.go.jp>
4050
4051 * xterm.c (x_draw_box_rect): Fix the calculation of width and
4052 height for XFillRectangle.
4053
5586f3eb
SM
40542000-10-15 Stefan Monnier <monnier@cs.yale.edu>
4055
4056 * syntax.c (Fstring_to_syntax): New function extracted from
4057 Fmodify_syntax_entry.
4058 (Fmodify_syntax_entry): Use it and document the ! and | fences.
4059 (skip_chars, Fforward_comment): Remove unused variables.
4060 (syms_of_syntax): Add defsubr for string-to-syntax.
4061 (describe_syntax): Add code for comment and string fences.
4062
db785038
SM
40632000-10-14 Stefan Monnier <monnier@cs.yale.edu>
4064
4065 * keymap.c (access_keymap): Add AUTOLOAD parameter.
4066 Do the meta->esc mapping. Call get_keyelt before returning.
4067 Start scanning from the second element (the first is always `keymap')
4068 to make it easier to detect when we reach a parent map.
4069 Handle the case of inheriting from a symbol whose function is a map.
4070 (Fkeymap_parent): Also handle the `inherit from symbol' case.
4071 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
4072 (get_keyelt, Flookup_key): Update call to access_keymap.
4073 Remove the meta->esc mappings.
4074 (define_as_prefix): Delete old disabled code.
4075 (menu_item_p): New function.
4076 (where_is_internal_1): Skip over the few remaining menu items.
4077 * lisp.h (access_keymap): Update prototype.
4078 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
4079 Update call to access_keymap.
4080 (follow_key, read_key_sequence): Update calls to access_keymap.
4081 Remove the meta->esc mappings.
4082
cafafe0b
GM
40832000-10-13 Gerd Moellmann <gerd@gnu.org>
4084
a2e2a7f6
GM
4085 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
4086 with additional argument.
4087
cafafe0b
GM
4088 * xdisp.c (cursor_row_p): New function.
4089 (try_cursor_movement, display_line): Use it.
4090
4091 * xdisp.c (append_space): Also save/restore iterator's current
4092 character and its length.
4093
4094 * xdisp.c (init_from_display_pos): Add an assertion.
4095 (handle_stop): Don't set iterator's add_overlay_start.
4096 (handle_invisible_prop): Likewise.
4097 (load_overlay_strings): If text under an overlay is invisible,
4098 take both before- and after-strings into account when the iterator
4099 is positioned either at the start or at the end of the overlay.
4100 (forward_to_next_line_start): Rewritten.
4101 (reseat_at_next_visible_line_start): Rewritten.
4102 (set_iterator_to_next): Add parameter RESEAT_P.
4103
4104 * dispextern.h (struct it): Remove member add_overlay_start.
4105 (set_iterator_to_next): Change prototype.
4106
c744452b
KH
41072000-10-13 Kenichi Handa <handa@etl.go.jp>
4108
4109 * coding.c (code_convert_region): Be sure to initialize
4110 coding->category_idx.
e4a3f4e1
KH
4111 (decode_coding_string): Set coding->src_multibyte and
4112 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
4113 (encode_coding_string): Set coding->src_multibyte and
4114 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 4115
321fd26f
SM
41162000-10-12 Stefan Monnier <monnier@cs.yale.edu>
4117
4118 * xfns.c (Fx_create_frame): Don't bother calling
4119 face-set-after-frame-default since the caller does it for us anyway.
4120
76832439
EZ
41212000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
4122
4123 * window.c (coordinates_in_window): Fix detection of vertical line
4124 on character terminals.
4125
2483cf58
GM
41262000-10-12 Gerd Moellmann <gerd@gnu.org>
4127
4128 * editfns.c (save_excursion_save): Additionally record the
4129 selected window.
4130 (save_excursion_restore): If buffer was visible in a window, and a
4131 different window was selected, and the old selected window is
4132 still live, restore point in that window.
4133
eb991b25
KH
41342000-10-12 Kenichi Handa <handa@etl.go.jp>
4135
8a0eba09
KH
4136 * xterm.c (x_produce_glyphs): Handle
4137 unibyte_display_via_language_environment correctly.
4138
20401fcc
KH
4139 * regex.c (regex_compile): Change the way of handling a range from
4140 unibyte char to multibyte char.
4141
4142 * syntax.c (skip_chars): Change the way of handling a range from
4143 unibyte char to multibyte char.
4144
eb991b25
KH
4145 * process.c (read_process_output): Cancel previous change.
4146
365dd325
EZ
41472000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
4148
c1b096cb
EZ
4149 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
4150
365dd325
EZ
4151 * charset.c (Ffind_charset_string): Doc fix.
4152 (Ffind_charset_region): Doc fix.
4153
eb483c2b
KH
41542000-10-11 Kenichi Handa <handa@mule.m17n.org>
4155
4156 * process.c (read_process_output): Fix previous change. Adjust
4157 multibyteness of text to insert in a buffer by
df3c11b9 4158 string_make_unibyte/multibyte instead of
eb483c2b
KH
4159 Fstring_as_unibyte/multibyte.
4160
b40bfb99
AS
41612000-10-10 Andreas Schwab <schwab@suse.de>
4162
4163 * alloc.c (mark_object): Remove all workarounds installed on
4164 1993-08-08.
4165
caff31d4
KH
41662000-10-10 Kenichi Handa <handa@etl.go.jp>
4167
4168 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before
4169 returning.
4170 (base64_encode_1): Make it work for a text of multibyte form.
4171 (Fbase64_decode_region): Allocate sufficient memory for multibyte
4172 case. Don't call str_to_multibyte because base64_decode_1
4173 produces correct multibyte form for eight-bit codes.
4174 (Fbase64_decode_string): Adjusted for the change of
4175 base64_decode_1.
4176 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
4177 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
4178 codes.
4179
4180 * charset.h (CHAR_STRING): Optimized for single byte characters.
4181
cba026ef
AS
41822000-10-09 Andreas Schwab <schwab@suse.de>
4183
4184 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
4185 -1 after socket is closed, to fall through to error processing.
4186
1e21fe48
EZ
41872000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
4188
4189 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 4190 variables. If ALIST includes foreground-color or
1e21fe48
EZ
4191 background-color, change also the colors of the default face for
4192 this frame.
4193
a640322e
EZ
41942000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
4195
4196 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
4197 them extern (they are defined on xfaces.c).
4198 (syms_of_msdos): Don't intern and don't staticpro
4199 Qbackground_color and Qforeground_color.
4200
a115794c
EZ
42012000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
4202
4203 * frame.c (Fframe_parameter): For non-windowed frames, if
4204 f->param_alist says foreground or background color is unspecified,
4205 call tty_color_name to return the color name computed from the
4206 frame's current colors.
4207
f5533b63
DL
42082000-10-06 Dave Love <fx@gnu.org>
4209
4210 * terminfo.c (ospeed): Don't declare.
4211
4212 * sysdep.c: Don't include string.h.
4213 (h_errno): Declare conditional also on TRY_AGAIN.
4214
4215 * charset.c (Ffind_charset_string): Doc fix.
4216
4217 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
4218 (Fbase64_decode_region, Fbase64_decode_string): More explicit
4219 error messages.
4220
2b06561a
DL
42212000-10-05 Dave Love <fx@gnu.org>
4222
4223 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
4224 position like menu-bar.
4225
ca839c85
GM
42262000-10-05 Gerd Moellmann <gerd@gnu.org>
4227
4228 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
4229
4230 * xdisp.c (handle_single_display_prop): Use safe_call1.
4231 (safe_call): Renamed from call_function.
4232 (safe_call1): New function.
4233 (handle_fontified_prop): Use safe_call1 instead of call1.
4234 (safe_eval): Renamed from eval_form.
4235 (safe_eval_handler): Renamed from eval_handler.
4236 (handle_single_display_prop, display_mode_element): Use safe_eval
4237 instead of eval_form.
4238
4239 * xfaces.c (merge_face_heights): Use safe_call instead of
4240 call_function.
4241
4242 * keyboard.c (show_help_echo): Use safe_call instead of
4243 call_function; use safe_eval instead of eval_form.
4244
4245 * lisp.h (safe_call): Renamed from call_function.
4246 (safe_eval): Renamed from eval_form.
4247 (safe_call1): Add prototype.
4248
a3489ece
MB
42492000-10-05 Miles Bader <miles@lsi.nec.co.jp>
4250
4251 * xfns.c (image_ascent): Rearrange ascent calculation for the
4252 has-a-font case.
4253
35810b6f
SM
42542000-10-04 Stefan Monnier <monnier@cs.yale.edu>
4255
4256 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
4257 (where_is_internal_1): Don't bother ignoring menu-items any more.
4258
3dc78168
GM
42592000-10-04 Gerd Moellmann <gerd@gnu.org>
4260
4261 * keyboard.c (update_menu_bindings): New variable.
4262 (parse_menu_item): Use AREF. If update_menu_bindings
4263 is 0, don't update menu bindings.
4264 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
4265
1efc2bb9
EZ
42662000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
4267
4268 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
4269 to `mark_object'.
4270
3f679f55
SM
42712000-10-02 Stefan Monnier <monnier@cs.yale.edu>
4272
4273 * syntax.c (forw_comment): Match nestedness of ender/starter.
4274 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
4275 (prev_char_comstart_first): Remove.
4276 (back_comment): Check two-char comment markers more carefully
4277 to better handle overlapping cases like *//* or /* */* */ ...
4278 Match nestedness of ender/starter.
4279
2021ab61
DL
42802000-10-02 Dave Love <fx@gnu.org>
4281
4282 * config.in (HAVE_GAI_STRERROR): Add undef.
4283
4284 * process.c (Fopen_network_stream): Use it.
4285
4286 * m/alpha.h (NO_REMAP): Don't define.
4287
64e6cc18
GM
42882000-10-02 Gerd Moellmann <gerd@gnu.org>
4289
4290 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
4291 return with a string converted to an integer or vice versa when
4292 Vmocklisp_arguments is t.
4293 (Fsignal): Likewise. The function can return for `quit'.
4294 (struct gcpro): Declare member `var' to point to a volatile
4295 Lisp_Object.
4296
4297 * eval.c (error): Prevent compiler warning.
4298
b1904cd9
SM
42992000-09-30 Stefan Monnier <monnier@cs.yale.edu>
4300
4301 * keymap.c (keymap_memberp): New function.
4302 (Fset_keymap_parent): Use it.
4303 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
4304 Use keymap_memberp to avoid creating cycles.
4305 (access_keymap): Use KEYMAPP.
4306
71c9ec51
GM
43072000-09-30 Gerd Moellmann <gerd@gnu.org>
4308
4309 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
4310 gai_strerror. Make sure xerrno is set if connect fails. Improve
4311 error recovery.
71c9ec51 4312
c70c6b58
JR
43132000-09-29 Jason Rumney <jasonr@gnu.org>
4314
4315 * w32term.c (w32_char_font_type, w32_encode_char)
4316 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
4317 (w32_bdf_per_char_metric): New function.
4318 (w32_per_char_metric): Use it.
4319 (x_draw_glyph_string_background): Always draw background for BDF
4320 glyphs.
4321
4322 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
4323 GDI object which is a scarce resource.
4324
4325 * w32bdf.c (search_file_line): Fix skipping of whitespace.
4326 (get_quoted_string): Fix limit on memchr search.
4327 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
4328 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
4329 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
4330 (get_cached_font_char, cache_char_offset): Use macro
4331 BDF_CODEPOINT_RANGE_COVER_P.
4332 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
4333 (clear_cached_bitmap_slots): New function.
4334 (GET_HEX_VALUE): G-Z, g-z are not hex.
4335 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
4336 (get_bitmap_with_cache): Use new cache implementation.
4337 (create_offscreen_bitmap): New function.
4338 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
4339
4340 * w32term.c (x_produce_glyphs): If the distance from the current
4341 position to the next tab stop is less than a canonical character
4342 width, use the tab stop after that.
4343 (x_draw_glyphs): Handle case START and END are out of bounds more
4344 carefully.
4345 (x_clear_mouse_face): Block/unblock input.
4346 (x_display_and_set_cursor): Don't show a hollow box cursor for
4347 buffers whose cursor_type is nil.
4348
fe01239f
GM
43492000-09-29 Gerd Moellmann <gerd@gnu.org>
4350
4351 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar
4352 disappears.
4353
4354 * dispextern.h (updating_frame): Declare extern.
4355
e7c52f1f
AS
43562000-09-29 Andreas Schwab <schwab@suse.de>
4357
4358 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
4359
de6e1f7c
GM
43602000-09-29 Gerd Moellmann <gerd@gnu.org>
4361
25126faa
GM
4362 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
4363 use its function definition.
4364 (tool_bar_items): Likewise.
4365
de6e1f7c
GM
4366 * lisp.h (fatal): Declare NO_RETURN.
4367
454ee39b
KH
43682000-09-29 Kenichi Handa <handa@etl.go.jp>
4369
4370 * keymap.c: Remove the line "#undef NULL".
4371
96301c5f
GM
43722000-09-28 Gerd Moellmann <gerd@gnu.org>
4373
4374 * xterm.c (x_make_frame_visible): Try harder to make the frame
4375 visible.
4376
efffeeb4
DL
43772000-09-28 Dave Love <fx@gnu.org>
4378
ecb8b666
DL
4379 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
4380
dc3cd20f
DL
4381 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
4382
4383 * .gdbinit (xreload): Note its need on GNU/Linux.
4384
efffeeb4
DL
4385 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
4386 r_alloc, r_alloc_free.
4387
8610d903
KH
43882000-09-28 Kenichi Handa <handa@etl.go.jp>
4389
4390 * syntax.c (skip_chars): Handle negation correctly.
4391
8901d1ac
GM
43922000-09-27 Gerd Moellmann <gerd@gnu.org>
4393
6f22f1ad
GM
4394 * xfaces.c (realize_default_face): Call set_lface_from_font_name
4395 with non-zero FORCE_P argument.
4396
8901d1ac
GM
4397 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
4398 Add assertions.
4399
4400 * xdisp.c (window_box_height): Add an assertion.
4401
4402 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
4403 tool-bar than is available.
4404 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
4405
36f1966f
DL
44062000-09-27 Dave Love <fx@gnu.org>
4407
efffeeb4 4408 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 4409
31d929e5
GM
44102000-09-26 Gerd Moellmann <gerd@gnu.org>
4411
c98863bf
GM
4412 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
4413 instead of BITS_PER_INT.
4414 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
4415 EMACS_UINT, respectively.
4416 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
4417
4418 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
4419
4420 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
4421
77072ab1
GM
4422 * window.c (freeze_window_starts): Construct last argument for
4423 foreach_window differently.
4424
4425 * xfns.c (x_decode_color): Don't return a Lisp_Object.
4426
4427 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
4428 EMACS_UINT instead of `int' and `unsigned int'.
4429 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
4430
4431 * frame.h (struct frame): Make the `nothing' member of union
4432 output_data an EMACS_INT.
4433
31d929e5
GM
4434 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug
4435 hunting.
4436 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
4437 size in the sdata structure.
4438 (SDATA_NBYTES, SDATA_DATA): New macros.
4439 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
4440 differently for the different layout of the sdata structure.
4441 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
4442 in sdata.
4443 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
4444 Check that size recorded in the string size and size recorded in
4445 the sdata structure agree.
4446
3e60b029
DL
44472000-09-25 Dave Love <fx@gnu.org>
4448
4449 * buffer.c: Include stdio.h.
4450
4451 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
4452
4453 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
4454
4455 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
4456 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as
4457 size_t.
4458 (__malloc_extra_blocks): Declare as __malloc_size_t.
4459
8ff16b4e
GM
44602000-09-25 Gerd Moellmann <gerd@gnu.org>
4461
755a2ccd
GM
4462 * alloc.c (mark_image): Use GC_NILP instead of NILP.
4463
d8b4516f
GM
4464 * keyboard.c (show_help_echo): Set help_echo_showing_p.
4465 (read_char): If help-echo is showing, preserve the echo area
4466 when redisplaying.
4467
4468 * xdisp.c (help_echo_showing_p): New variable.
4469 (set_message): Reset it to 0.
4470 (init_xdisp): Initialize help_echo_showing_p.
4471
4472 * dispextern.h (help_echo_showing_p): Declare extern.
4473
4474 * config.in: Fix typo in __GNUC_MINOR__.
4475
4476 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
4477
b11af2dd
GM
4478 * s/freebsd.h (POSIX_SIGNALS): Define.
4479
8ff16b4e
GM
4480 * xterm.c (x_clear_mouse_face): Block/unblock input.
4481
844eb643
DL
44822000-09-24 Dave Love <fx@gnu.org>
4483
4484 * fns.c (base64_encode_1): Fix last change.
4485
b30ab1b3
GM
44862000-09-22 Gerd Moellmann <gerd@gnu.org>
4487
4488 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
4489
4490 * xdisp.c (try_window_reusing_current_matrix): More fixes
4491 for the case window has a header-line.
4492
c6cbe5f0
DL
44932000-09-22 Dave Love <fx@gnu.org>
4494
4c7c1f3f
DL
4495 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
4496 a doc string.
4497
4498 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
4499
c6cbe5f0
DL
4500 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
4501
550a625e
GM
45022000-09-21 Gerd Moellmann <gerd@gnu.org>
4503
4c7c1f3f 4504 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
4505 for GCC >= 2.5.
4506
4507 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error): Declare
4508 NO_RETURN.
4509
80d26f99
GM
4510 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
4511 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
4512 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
4513 warnings.
4514
4515 * marker.c (byte_char_debug_check): Return void.
4516
623a0aae
GM
4517 * xfns.c (Fx_create_frame): Set default frame parameter value
4518 for tool-bar-lines to 1.
4519
4520 * dispnew.c (scrolling_window): Compare y-positions of rows
4521 equal at the start. Some simplification.
4522
4523 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
4524 reused rows' y-position in the case window has a header-line, and
4525 new window start is greater than old window start.
4526
42ac0ae5
GM
4527 * process.c (process_sent_to): New variable.
4528 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
4529 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
4530 Declare more parameters volatile.
4531
550a625e
GM
4532 * lread.c (Vrecursive_load_depth_limit): New variable.
4533 (Fload): Check recursive loads whose recursion depth exceeds
4534 Vrecursive_load_depth_limit.
4535 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
4536
8320414c
GM
45372000-09-20 Gerd Moellmann <gerd@gnu.org>
4538
f46c275e
GM
4539 * fileio.c (Fread_file_name): Doc fix.
4540
4541 * editfns.c (Fmessage_or_box): Doc fix.
4542
4543 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
4544
b7e11c5b
GM
4545 * xfns.c (xbm_scan): Allow C-style comments.
4546
8320414c
GM
4547 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
4548 symbols are specified, add color translations to the cache.
4549 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New
4550 functions.
4551 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
4552 xpm_cache_color.
4553 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
4554 structures to xpm_init_color_cache.
4555
da1608d9
GM
45562000-09-19 Gerd Moellmann <gerd@gnu.org>
4557
4558 * dispnew.c (update_window_line): Make sure to always draw
4559 mode-lines.
4560
6badfa25
AI
45612000-09-19 Andrew Innes <andrewi@gnu.org>
4562
4563 * makefile.nt (bootstrap-emacs): Don't change directory.
4564
3a5f42bb
KH
45652000-09-19 Kenichi Handa <handa@etl.go.jp>
4566
1b7649bd
KH
4567 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
4568
3a5f42bb
KH
4569 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
4570 If output buffer is too small, signal an appropriated error.
4571
9f83cf0b
DL
45722000-09-18 Dave Love <fx@gnu.org>
4573
4574 * keyboard.c (menu_bar_items, tool_bar_items)
4575 (current_active_maps): Remove redundant get_local_map call.
4576
28c7826c
GM
45772000-09-18 Gerd Moellmann <gerd@gnu.org>
4578
5cefa566
GM
4579 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
4580 cursor for buffers whose cursor_type is nil.
4581
6fed3546
GM
4582 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
4583 a feature to implement that is already implemented.
4584 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
4585 warnings.
4586
4587 * xfns.c (x_clear_image_1): New function.
4588 (x_clear_image): Use it.
4589 (x_from_xcolors): Use x_clear_image_1; don't free the image's
4590 mask.
4591
05b1f851
GM
4592 * dispnew.c (update_window): Move test for invisible lines
4593 at the top to update_window_line.
4594 (update_window_line): Handle invisible lines here.
4595
f4779de9
GM
4596 * xfns.c (clear_image_cache): Clear current matrices of all
4597 frames sharing an image cache. Block input while freeing
4598 images. Fix timestamp comparison.
4599 (x_clear_image): Also free the mask.
4600
28c7826c
GM
4601 * xfns.c (lookup_image): Block input while loading the image so
4602 that we won't get interrupted in a state where the image isn't yet
4603 set up completely.
4604 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
4605 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
4606 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
4607 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock
4608 input.
4609
b7412313
GM
46102000-09-16 Gerd Moellmann <gerd@gnu.org>
4611
4612 * dispnew.c (update_window): Make sure to make desired rows
4613 current even if they are completely invisible at the top
4614 of a window.
4615
47e351a3
GM
46162000-09-15 Gerd Moellmann <gerd@gnu.org>
4617
7f8f1edc
GM
4618 * xfns.c (lookup_image): Build mask before applying an algorithm.
4619 Recognize algorithm `disabled'.
4620 (cross_disabled_images): New variable.
4621 (COLOR_INTENSITY): New macro.
4622 (x_detect_edges): Use COLOR_INTENSITY.
4623 (x_disable_image): New function.
4624 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
4625
4626 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
4627 disabled state, don't apply an image transformation algorithm if
4628 the user specified an image for the disabled state. Use
28c7826c 4629 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
4630 user hasn't specified an image.
4631
ebb8f116
GM
4632 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
4633 allocation functions with the XPM lib.
4634 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
4635 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
4636 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
4637 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
4638 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New
4639 functions.
4640 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
4641 functions, if possible, because these handle color allocation
4642 failure more gracefully.
4643 (Fimage_mask_p): New function.
4644
47e351a3
GM
4645 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
4646 (Qedge_detection, Qheuristic): New symbols.
4647 (syms_of_xfns): Initialize new symbols.
4648 (lookup_image): Handle `:mask X', `:algorithm emboss', and
4649 `algorithm (edge-detection ...)'.
4650 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
4651 (tiff_format, gif_format, gs_format): Add `:mask'.
4652 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
4653 (GIF_MASK, GS_MASK): New enumerators.
4654 (x_laplace_read_row, x_laplace_write_row): Functions removed.
4655 (emboss_matrix, laplace_matrix): New variables.
4656 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
4657 (x_edge_detection): New functions.
4658 (x_laplace): Rewritten in terms of x_detect_edges.
4659 (x_build_heuristic_mask): If image has a mask, free it.
4660
fe83b953
AI
46612000-09-14 Andrew Innes <andrewi@gnu.org>
4662
4663 * makefile.w32-in: Revert to Unix line endings.
4664
3021e816
AI
46652000-09-14 Andrew Innes <andrewi@gnu.org>
4666
4667 * makefile.w32-in: Standardize indentation somewhat.
4668 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
4669 cater for differences between shells.
4670
4671 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
4672
2a32b5ea
GM
46732000-09-14 Gerd Moellmann <gerd@gnu.org>
4674
4675 * xterm.c (x_produce_glyphs): If the distance from the current
4676 position to the next tab stop is less than a canonical character
4677 width, use the tab stop after that.
4678
b4331e96
DL
46792000-09-14 Dave Love <fx@gnu.org>
4680
4681 * buffer.c (alloc_buffer_text): Fix xmalloc call.
4682
ef9e4345
GM
46832000-09-14 Gerd Moellmann <gerd@gnu.org>
4684
085536c2
GM
4685 * xdisp.c (handle_fontified_prop): While running fontification
4686 functions, bind `fontification-functions' and
4687 `after-change-functions' to nil.
4688
ef9e4345
GM
4689 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
4690 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
4691
4692 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
4693
4694 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
4695 USE_MMAP_FOR_BUFFERS.
4696
4697 * insdel.c (make_gap): Use enlarge_buffer_text.
4698
4699 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
4700 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
4701 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
4702 from former r_alloc_* functions in ralloc.c.
4703 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New
4704 variables.
4705 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
4706 (mmap_init) [REL_ALLOC_MMAP]: New function.
4707 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
4708 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
4709 BUFFER_FREE.
4710
4711 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
4712 (enlarge_buffer_text): Add prototype.
4713
4714 * ralloc.c: Remove everything having to do with the use of mmap.
4715
f8608968
GM
47162000-09-13 Gerd Moellmann <gerd@gnu.org>
4717
2a494b2d
GM
4718 * sound.c (Fplay_sound): Doc fix.
4719
8c907a56
GM
4720 * keyboard.c: Avoid some more compiler warnings.
4721 (parse_tool_bar_item): Ignore cached key bindings.
4722
f8608968
GM
4723 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
4724 and allocation of Lisp data.
4725
6ab70e9a
GM
47262000-09-12 Gerd Moellmann <gerd@gnu.org>
4727
d12d0a9b
GM
4728 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
4729 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
4730 defaults first.
4731
6ab70e9a
GM
4732 * lread.c (Fload): Put code checking for recursive loads in #if 0.
4733
63c36c3c
KH
47342000-09-12 Miyashita Hisashi <himi@meadowy.org>
4735
4736 * ccl.c: Comment fixed.
4737 (MAX_MAP_SET_LEVEL): Increased to 30.
4738 (PUSH_MAPPING_STACK): Enclose with do-while block.
4739 (POP_MAPPING_STACK): Likewise.
4740 (stack_idx_of_map_multiple): New variable.
4741 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
4742 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
4743 call the corresponding CCL program by
4744 CCL_CALL_FOR_MAP_INSTRUCTION.
4745 (ccl_driver) <CCL_MapSingle>: Likewise.
4746 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
4747 with the case where looking up process reaches to the end of
4748 map-set, and call CCL programs as the above change.
4749
7ee3bd7b
GM
47502000-09-11 Gerd Moellmann <gerd@gnu.org>
4751
8ec8a5ec
GM
4752 * xfns.c (png_load, jpeg_load): Declare some variables volatile
4753 that might be clobbered by longjmp.
4754 (check_x_display_info, x_decode_color, create_frame_xic)
4755 (Fx_display_backing_store, Fx_display_visual_class)
4756 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler
4757 warnings.
4758
f74b0705
GM
4759 * lread.c (init_lread): Set Vloads_in_progress to nil.
4760 (Fload): Show list of recursively loaded files, when signaling an
4761 error.
4762
7ee3bd7b
GM
4763 * lread.c (Vloads_in_progress): New variable.
4764 (record_load_unwind): New function.
4765 (Fload): Check for recursive loads.
4766 (syms_of_lread): Initialize Vloads_in_progress.
4767 (read_integer, read1): Avoid some compiler warnings.
4768
4769 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
4770 compiler warnings.
4771
974e1e5b
MB
47722000-09-11 Miles Bader <miles@gnu.org>
4773
4774 * editfns.c (Fbuffer_string): Doc fix.
4775
9824c4e3
GM
47762000-09-10 Gerd Moellmann <gerd@gnu.org>
4777
4778 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
4779
6a72fdd1
KR
47802000-09-09 Ken Raeburn <raeburn@gnu.org>
4781
4782 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
4783 whether to include other header files.
4784
28e6fb66
GM
47852000-09-09 Gerd Moellmann <gerd@gnu.org>
4786
4787 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 4788 by Fmemq as a boolean.
28e6fb66 4789
7f8b6551
SM
47902000-09-08 Stefan Monnier <monnier@cs.yale.edu>
4791
4792 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
4793
a8710abf
GM
47942000-09-08 Gerd Moellmann <gerd@gnu.org>
4795
d1a02881
GM
4796 * ralloc.c (mmap_fd): Remove initializer which can make it
4797 read-only in a dumped Emacs.
4798 (mmap_fd_1): New variable.
4799 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
4800 restore it from there.
4801 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
4802 unconditionally so that mmap_fd can be initialized there.
4803 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
4804 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
4805 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
4806
c454aac1
GM
4807 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
4808
4809 * xdisp.c (dump_glyph_row): Fix printf format string.
4810 (display_line, move_it_in_display_line_to): Avoid compiler
4811 warnings.
4812
fc653ef2
GM
4813 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
4814
3015eec0
GM
4815 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
4816 inheritance.
4817
bfe0ee88
GM
4818 * xdisp.c (try_window_id): When trying to locate cursor in
4819 unchanged rows at the top, handle the case that we can't find it.
4820
a8710abf
GM
4821 * xterm.c (x_draw_glyphs): Handle case START and END are out
4822 of bounds more carefully.
4823
6b7d4ae4
DL
48242000-09-08 Dave Love <fx@gnu.org>
4825
423193c5
DL
4826 * s/sol2.h (REL_ALLOC_MMAP): Define.
4827 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
4828
4829 * ralloc.c: Don't include string.h (redundant).
4830 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
4831 [!MAP_ANON]: Include fcntl.h.
4832 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
4833 (r_alloc, r_re_alloc, r_alloc_free)
4834 (mmap_enlarge, mmap_set_vars): Use it.
4835 (r_alloc_init_fd): New function.
4836 (__morecore) [SYSTEM_MALLOC]: Don't declare.
4837 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
4838 malloc type.
4839
4840 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
4841 Remove vm-limit.o.
4842
6b7d4ae4
DL
4843 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
4844 change to __NetBSD__.
4845
44d31981
KH
48462000-09-08 Kenichi Handa <handa@etl.go.jp>
4847
4848 * search.c (compile_pattern): Check the multibyteness of cached
4849 string and PATTERN.
4850
aad40737
MB
48512000-09-08 Miles Bader <miles@gnu.org>
4852
4853 * xfaces.c (default_face_vector): Function removed.
4854 (Finternal_merge_in_global_face): Restore old global/local
4855 attribute override order. Use inline loop instead of calling
4856 default_face_vector.
4857
91a211b5
GM
48582000-09-07 Gerd Moellmann <gerd@gnu.org>
4859
4860 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
4861 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
4862 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
4863 where necessary, in case POINTER_TYPE is `void'.
4864
03419440
EZ
48652000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
4866
4867 * frame.c (make_terminal_frame): Initialize frame foreground and
4868 background colors to unspecified, for the initial instance of an
4869 MSDOS frame.
4870
f46f845b
GM
48712000-09-07 Gerd Moellmann <gerd@gnu.org>
4872
24f76fbf
GM
4873 * ralloc.c (mmap_find): Fix overlap computation.
4874 (mmap_enlarge): Compute nbytes before trying to find an
4875 overlapping region.
4876
f46f845b
GM
4877 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
4878 instead of `!='.
4879
4880 * lread.c (syms_of_lread): Change value of regexp
4881 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
4882
4883 * xmenu.c (xdialog_show): When looking up the selection in
4884 menu_items, take `quote' boundaries into account; this corresponds
4885 to a nil ITEM in x-popup-dialog.
4886
3c014385
KH
48872000-09-07 Kenichi Handa <handa@etl.go.jp>
4888
fd6f711b
KH
4889 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
4890 not 0x81.
4891 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
4892
3c014385 4893 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
4894 encoding, not decoding. Fix the handling of latin-jisx0201.
4895 Check for the charset katakana-jisx0201 too.
3c014385 4896 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 4897 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 4898
0da3ecef
GM
48992000-09-07 Gerd Moellmann <gerd@gnu.org>
4900
ab0ee409
GM
4901 * xfaces.c (Vparam_value_alist): New variable.
4902 (syms_of_xfaces): Initialize it.
4903 (Finternal_set_lisp_face_attribute): Avoid more consing.
4904
4905 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
4906 specially.
4907 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
4908 (Qbackground_mode): New variable.
4909 (syms_of_frame_1): Initialize Qbackground_mode.
4910
4911 * lisp.h (Qdisplay): Declare extern.
1091dd67 4912
0da3ecef
GM
4913 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
4914 change face on all frames, and change the default for new frames.
4915
b14654b9
DL
49162000-09-07 Dave Love <fx@gnu.org>
4917
4918 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
4919
d24fd56f
KH
49202000-09-07 Kenichi Handa <handa@etl.go.jp>
4921
794f3670
KH
4922 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
4923
0fddd0dc
KH
4924 * charset.c: Include composite.h
4925 (lisp_string_width): New function.
4926 (Fstring_width): Call lisp_string_width instead of strwidth.
4927
4928 * Makefile.in (charset.o): Depends on composite.h.
4929
d24fd56f
KH
4930 * process.c (read_process_output): Before inserting the decoded
4931 text in the buffer, adjust the multibyteness.
4932
fa0b693c
GM
49332000-09-06 Gerd Moellmann <gerd@gnu.org>
4934
73b77ee5
GM
4935 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
4936 buffer's text buffer is null, map new memory.
4937
0a58f946
GM
4938 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
4939 POINTER_TYPE and size_t.
4940 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
4941 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
4942 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
4943 [REL_ALLOC_MMAP]: New macros.
4944 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
4945 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
4946 [REL_ALLOC_MMAP]: New functions.
4947
4948 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
4949 before and after unexec.
4950
4951 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
4952 text buffers if necessary.
4953
4954 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
4955 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
4956 in prototypes.
4957
fa0b693c
GM
4958 * config.in (HAVE_MMAP): Add #undef.
4959
877055f6
GM
49602000-09-05 Gerd Moellmann <gerd@gnu.org>
4961
08ba3862
GM
4962 * frame.c (Qdisplay_type): New variable.
4963 (syms_of_frame_1): Initialize it.
4964 (Fframe_parameter): New function that avoids consing.
4965 (syms_of_frame): Defsubr it.
4966
66ffe51c
GM
4967 * buffer.c (Fother_buffer): Consider buffers as invisible when
4968 they are displayed in a window on an invisible frame.
4969
877055f6
GM
4970 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
4971 get-largest-window always return nil.
4972
bb970e67
GM
49732000-09-04 Gerd Moellmann <gerd@gnu.org>
4974
4975 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
4976 variable; recognize Emacs 19 elc files.
4977
7a3d0e0e
MB
49782000-09-04 Miles Bader <miles@gnu.org>
4979
4980 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
4981 before initially popping up the menu, so the menu doesn't flash
4982 when the face settings are significantly different from the
4983 defaults.
4984
14473664
SM
49852000-09-04 Stefan Monnier <monnier@cs.yale.edu>
4986
4987 * regex.c (WIDE_CHAR_SUPPORT): New macro.
4988 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
4989 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
4990 (BIT_UNIBYTE): Remove.
4991 (re_match_2_internal): Delete corresponding code and streamline the
4992 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
4993 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
4994 (re_wctype_t): New type.
4995 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
4996 (regex_compile): Use them and fix handling of overly long char classes.
4997
c1174479
AI
49982000-09-03 Andrew Innes <andrewi@gnu.org>
4999
f8803e97
AI
5000 * makefile.w32-in: Change to DOS line endings.
5001
c1174479
AI
5002 * s/ms-w32.h (ORDINARY_LINK): New define.
5003
5004 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
5005 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
5006
5007 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
5008 (distclean): Delete them here instead.
5009
44ef7cf6
AI
5010 * w32proc.c (compare_env): Convert to uppercase for comparison,
5011 not lowercase, to match how the native Windows shell works.
5012
49b3bd82
JR
50132000-09-03 Jason Rumney <jasonr@gnu.org>
5014
5015 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
5016 CVS changes the line-ends when checking in/out on DOS/Windows.
5017
5018 * makefile.nt (emacs): Do not change directory to run temacs, as
5019 the load-path is set relative to current directory.
5020
a3d35a39
MB
50212000-09-03 Miles Bader <miles@gnu.org>
5022
5023 * xterm.c (x_alloc_lighter_color_for_widget): New function.
5024
d276b0cf
GM
50252000-09-02 Gerd Moellmann <gerd@gnu.org>
5026
715e84c9
GM
5027 * xdisp.c (redisplay_mode_lines): New function.
5028 (display_mode_lines): Return number of mode lines displayed.
5029 (echo_area_display): Use redisplay_mode_lines to draw garbaged
5030 mode lines. Don't temporarily bind redisplay-dont-pause to t.
5031
8892f40b
GM
5032 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
5033 string.h and strings.h.
5034 (index) [HAVE_INDEX]: Add prototype.
5035
d276b0cf
GM
5036 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
5037 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
5038
5039 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
5040 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
5041
38404229
GM
50422000-09-01 Gerd Moellmann <gerd@gnu.org>
5043
5044 * lread.c (read1): Accept `?' as symbol constituent, for
5045 compatiblity with XEmacs.
5046
c0f9ea08
SM
50472000-08-31 Stefan Monnier <monnier@cs.yale.edu>
5048
5049 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
5050 (struct re_pattern_buffer): Remove newline_anchor.
5051 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
5052 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
5053 (re_max_failures, fail_stack): Use size_t rather than unsigned.
5054 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
5055 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
5056 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
5057 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
5058 Get rid of references to newline_anchor.
5059 (regcomp): Allocate and precompute a fastmap.
5060
8c0f83fe
GM
50612000-08-31 Gerd Moellmann <gerd@gnu.org>
5062
5063 * lread.c (openp): GCPRO local variable `filename'.
5064
4bb91c68
SM
50652000-08-30 Stefan Monnier <monnier@cs.yale.edu>
5066
5067 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
5068
5069 * regex.c: Merge some changes from GNU libc. Add prototypes.
5070 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
5071 Use memcmp and memcpy instead of bcopy and bcmp.
5072 (init_syntax_once): Use ISALNUM.
5073 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
5074 (REG_UNSET_VALUE): Remove. Use NULL instead.
5075 (REG_UNSET, re_match_2_internal): Use NULL.
5076 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
5077 New macros.
5078 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
5079 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
5080 (regex_compile): In handle_interval, return an error rather than try to
5081 unfetch the interval if we can't find the closing brace.
5082 Obey the RE_NO_GNU_OPS syntax bit.
5083 (TOLOWER): New macro.
5084 (regcomp): Use it.
5085 (regexec): Allocate regs.start and regs.end as one block.
5086
5226a931
GM
50872000-08-30 Gerd Moellmann <gerd@gnu.org>
5088
868dd24b
GM
5089 * xdisp.c (echo_area_display): Check display_completed instead
5090 of calling detect_input_pending.
5091
5092 * dispnew.c (update_frame): Only set display_completed here; move
5093 the update_begin and update_end calls here from update_frame_1.
5094 (update_frame_1): Don't set display_completed here, don't call
5095 update_begin/update_end.
5096
5226a931
GM
5097 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
5098 instead of store_frame_param.
5099
2a8bd25f
GM
51002000-08-29 Gerd Moellmann <gerd@gnu.org>
5101
5102 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
5103 desired window matrix hasn't been displayed, use the current row
5104 instead. Make sure that only those frame rows are updated for
5105 which there exists a corresponding enabled desired row.
5106
ba3478d9
MB
51072000-08-29 Miles Bader <miles@gnu.org>
5108
5109 * xfaces.c (default_face_vector): New function.
5110 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
5111
87d0f685
GM
51122000-08-29 Gerd Moellmann <gerd@gnu.org>
5113
5114 * lread.c (openp): Prevent temporary string passed to
5115 Ffile_readable_p from being garbage collected.
5116
6fa86045
DL
51172000-08-28 Dave Love <fx@gnu.org>
5118
5119 * keymap.c (store_in_keymap): Add `static' to declaration.
5120
bb17930d
GM
51212000-08-28 Gerd Moellmann <gerd@gnu.org>
5122
5123 * emacs.c, callint.c, doc.c, editfns.c
5124 (toplevel) [HAVE_STRING_H]: Include string.h.
5125 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
5126 (index): Remove prototypes which might conflict with non-standard
5127 definitions of index/strchr.
5128
5129 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
5130 (rindex): Define only if !HAVE_RINDEX.
5131
5132 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
5133
5134 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
5135
87188200
MB
51362000-08-28 Miles Bader <miles@gnu.org>
5137
5138 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
5139 made inconsistent by a font-related attribute in FROM.
5140 (merge_face_inheritance): Add function comment.
5141
41a68aef
KH
51422000-08-28 Kenichi Handa <handa@etl.go.jp>
5143
5144 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
5145 the 4th arg (PREV_EVENT) Qt to suppress input method.
5146
f7c436c1
SM
51472000-08-27 Stefan Monnier <monnier@cs.yale.edu>
5148
0b32bf0e
SM
5149 * regex.c: Indent cpp directives and remove parens after `defined'.
5150 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
5151 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
5152 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
5153 (re_compile_pattern): Use size_t for length.
5154 (init_syntax_once): Move to a better place.
5155 * regex.h: Merge changes from GNU libc. Indent cpp directives.
5156 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
5157
f7c436c1
SM
5158 * syntax.c (back_comment): Detect cases where a comment-starter is
5159 actually inside another comment as in: /* a // b */ c // d \n.
5160 Make it clear that `comstart_pos' is unused for nested comments.
5161
5162 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
5163 (KEYMAPP): New macro.
5164 (Fkeymap_parent, Fset_keymap_parent): Use it.
5165 (fix_submap_inheritance): Mark it static.
5166 (define_as_prefix, describe_buffer_bindings, describe_command)
5167 (describe_translation, describe_map): Complete prototypes.
5168
5169 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
5170
5171 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
5172 to better match the key-lookup behavior.
5173
6288c62f
GM
51742000-08-27 Gerd Moellmann <gerd@gnu.org>
5175
5176 * xfaces.c (lface_fully_specified_p): Handle :inherit.
5177 (Finternal_set_lisp_face_attribute): Fix typo in error message.
5178
e931344e
EZ
51792000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
5180
5181 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
5182 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
5183 (xterm.o): Depend on coding.h
5184
d10dfeef
KH
51852000-08-26 Kenichi Handa <handa@etl.go.jp>
5186
5187 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
5188 the corresponding '#endif'.
5189
2d73e8d3
MB
51902000-08-26 Miles Bader <miles@gnu.org>
5191
5192 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
5193 * xfaces.c (QCinherit): New variable.
5194 (syms_of_xfaces): Initialize it.
5195 (LFACE_INHERIT): New macro.
5196 (Finternal_get_lisp_face_attribute)
5197 (merge_face_vector_with_property)
5198 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
5199 (check_lface_attrs): Allow new types of face height. Check
5200 inherit attribute.
5201 (CYCLE_CHECK): New macro.
5202 (merge_face_inheritance): New function.
5203 (merge_face_vectors): Merge inherited faces too. Add F and
5204 CYCLE_CHECK arguments.
5205 (merge_face_vector_with_property, Finternal_merge_in_global_face)
5206 (lookup_named_face, lookup_derived_face, realize_named_face)
5207 (face_at_string_position, face_at_buffer_position): Supply
5208 new F and CYCLE_CHECK arguments to merge_face_vectors.
5209 (merge_face_heights): New function.
5210 (merge_face_vectors, merge_face_vector_with_property)
5211 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
5212 handle relative face heights.
5213 (lface_same_font_attributes_p): Compare heights using EQ.
5214
6ce974d4
KH
52152000-08-26 Kenichi Handa <handa@etl.go.jp>
5216
5217 * charset.c (char_to_string): Check the character validity.
5218 (char_valid_p): If C is not less than MAX_CHAR, be sure to return
5219 0.
5220
dc1e502d
SM
52212000-08-25 Stefan Monnier <monnier@cs.yale.edu>
5222
5223 * regex.c (PUSH_FAILURE_COUNT): New macro.
5224 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
5225 Handle popping of a register's or a counter's data.
5226 (POP_FAILURE_POINT): Use the new name.
5227 (re_match_2_internal): Push counter data on the stack for succeed_n,
5228 jump_n and set_number_at and remove misleading dead code in succeed_n.
5229
bd9d0f3f
GM
52302000-08-25 Gerd Moellmann <gerd@gnu.org>
5231
5232 * xdisp.c (redisplay_internal): If considering all windows on all
5233 frames, update the display for each frame as soon as possible,
5234 instead of first building all desired matrices for all frames, and
5235 then updating them all.
5236 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
5237
aa5b8e15
GM
52382000-08-24 Gerd Moellmann <gerd@gnu.org>
5239
17494071
GM
5240 * bytecode.c (mark_byte_stack): Add a comment.
5241
aa5b8e15
GM
5242 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
5243 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
5244 a graphical frame.
5245
c543db81
KH
52462000-08-24 Kenichi Handa <handa@etl.go.jp>
5247
d246d5f5
KH
5248 * minibuf.c (do_completion): Always use compare-string, not
5249 string-equal because the latter doesn't pay attention to
5250 multibyteness of strings.
5251
c543db81
KH
5252 * process.c (create_process): Don't setup raw-text coding here.
5253 (Fopen_network_stream): Don't set coding->src_multibyte and
5254 coding->dst_multibyte here.
5255 (read_process_output): For process filter, return unibyte string
5256 if default-enable-multibyte-characters is nil.
5257 (send_process): If OBJECT is multibyte text, be sure to encoded it
5258 by the specified coding system for the process. Otherwise, setup
5259 raw-text coding.
5260 (init_process): Don't initialize default-process-coding-system
5261 here.
5262
9b47cfe0
EZ
52632000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
5264
5265 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
5266 <scroll-down-aggressively>: Likewise.
5267
f5a36960
KH
52682000-08-23 Kenichi Handa <handa@etl.go.jp>
5269
5270 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
5271 zero. Set coding->produced_char correctly.
5272
69a7ffa7
AI
52732000-08-22 Andrew Innes <andrewi@gnu.org>
5274
5275 * makefile.w32-in: New file.
5276
5277 * unexw32.c (unexec): Ignore old_name, and use the actual location
5278 of the current executable instead. Base new_name on this.
5279
5280 * w32proc.c (create_child): Remove reference to security
5281 descriptor, which isn't needed and doesn't compile with mingw32.
5282
5283 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5284 up dllimport attributes.
5285 (x_update_window_end): Update prototype.
5286
5287 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
5288 extern, which screws up dllimport attributes.
5289
5290 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5291 up dllimport attributes.
5292
5293 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
5294 screws up dllimport attributes.
5295
5296 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5297 up dllimport attributes.
5298 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
5299 screws up dllimport attributes.
5300
5301 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5302 up dllimport attributes.
5303
5304 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
5305 screws up dllimport attributes.
5306
5307 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
5308 screws up dllimport attributes.
5309
5310 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5311 up dllimport attributes.
5312
5313 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
5314 unnecessary extern, which screws up dllimport attributes.
5315 (main): Ditto.
5316
5317 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5318 up dllimport attributes.
5319
5320 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
5321 unnecessary extern, which screws up dllimport attributes.
5322
5323 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
5324 screws up dllimport attributes.
5325
5326 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
5327 up dllimport attributes.
5328
5329 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
5330
5331 * w32bdf.c (search_file_line):
5332 (set_bdf_font_info):
5333 (seek_char):
5334 (w32_get_bdf_glyph):
5335 (w32_BDF_to_x_font): Fix compile warnings.
5336
5337 * w32menu.c: Include keyboard.h before frame.h. Fix compile
5338 warnings.
5339
5340 * w32select.c: Include keyboard.h before frame.h.
5341
5342 * w32fns.c (max): Define macro.
5343 (JOHAB_CHARSET): Define if not known.
5344 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
5345 (Fx_show_tip): Synch with X version.
5346
5347 * w32xfns.c: Include keyboard.h before frame.h.
5348
5349 * w32fns.c: Include keyboard.h before frame.h.
5350
5351 * w32term.c: Include keyboard.h before frame.h.
5352
5353 * fontset.c: Include keyboard.h before frame.h.
5354
5355 * w32inevt.c: Include keyboard.h before frame.h.
5356 (MOUSE_MOVED): Define if not known.
5357
5358 * minibuf.c: Include keyboard.h before frame.h.
5359
5360 * keyboard.c: Include keyboard.h before frame.h.
5361
5362 * indent.c: Include keyboard.h before frame.h.
5363
5364 * dispnew.c: Include keyboard.h before frame.h.
5365
5366 * buffer.c: Include keyboard.h before frame.h.
5367
5368 * alloc.c: Include keyboard.h before frame.h.
5369
5370 * print.c: Include keyboard.h before frame.h.
5371
5372 * process.c: Include keyboard.h before frame.h.
5373
5374 * scroll.c: Include keyboard.h before frame.h.
5375
5376 * sysdep.c: Include keyboard.h before frame.h.
5377
5378 * term.c: Include keyboard.h before frame.h.
5379
5380 * window.c: Include keyboard.h before frame.h.
5381
5382 * xdisp.c: Include keyboard.h before frame.h.
5383 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
5384
5385 * frame.c: Include keyboard.h before frame.h.
5386
5387 * w32heap.h: Undefine min, max.
5388
5389 * w32gui.h: Undefine min, max.
5390
5391 * unexw32.c: Change PUCHAR to PCHAR.
5392 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
5393 (relocate_offset):
5394 (get_section_info):
5395 (copy_executable_and_dump_data): Remove unnecessary static defs.
5396 (copy_executable_and_dump_data): Fix compile warnings.
5397
5398 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
5399
5400 * w32console.c (min): Define macro.
5401 (clear_frame, write_glyphs): Fix compile warning.
5402
5403 * w32proc.c (compare_env):
5404 (find_child_console): Fix compile warning.
5405
5406 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
5407 sys_errlist instead of _sys_errlist.
5408 (get_emacs_configuration_options): New function.
5409
5410 * s/ms-w32.h (sys_nerr): Provide default definition.
5411 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
5412 name with _ prepended.
5413 (NSIG): Define if not known.
5414 (get_emacs_configuration): Provide extern declaration.
5415 (get_emacs_configuration_options): Provide extern declaration.
5416 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
5417
5418 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
5419 (map_w32_filename):
5420 (read_unc_volume): Fix compile warning.
5421
5422 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
5423 definitions from being used.
5424
5425 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
5426
5427 * w32.c (unc_volume_file_attributes):
5428 (open_unc_volume): Make arg const.
5429
5430 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
5431 (read_input_waiting): Remove excess parameter.
5432
5433 * w32.c (init_environment): Call _access.
5434 (check_windows_init_file): Call _close.
5435 (init_user_info): Call _putenv.
5436 (init_environment): Call _putenv and _strdup.
5437 (init_ntproc): Reset volume info cache on startup.
5438
5439 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
5440 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
5441 cannot override the CRT malloc.
5442
5443 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
5444 (LINK_FLAGS): Append to original value of LINK_FLAGS.
5445
5446 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
5447 unless we are linking with a static CRT.
5448 (RVA_TO_PTR): Cast result to unsigned char*.
5449
5450 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
5451 (add_volume_info): Use xstrdup.
5452
25060080
SM
54532000-08-22 Stefan Monnier <monnier@cs.yale.edu>
5454
5455 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
5456 (do_completion, Fminibuffer_complete_word): Use it.
5457 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
5458 var so it can take non-boolean values.
5459
6917e6bb
GM
54602000-08-21 Gerd Moellmann <gerd@gnu.org>
5461
acb7cc89
GM
5462 * editfns.c (find_field): Formatting changes.
5463 (toplevel): Some old-style function forward declarations
5464 changed to prototypes, some new protypes added, some functions
5465 made static.
5466
5467 * lisp.h (set_time_zone_rule): Add prototype.
5468 (use_dialog_box): External declaration.
5469
0bbfdc25
GM
5470 * keyboard.c (gen_help_event): Add parameter SIZE.
5471 (kbd_buffer_events_waiting): Slightly rewritten.
5472 (clear_event): New function.
5473 (kbd_buffer_get_event): Use it, and clear the input_events of
5474 HELP_EVENTs.
5475 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
5476 don't fill the newly created array with nils.
5477 (toplevel): Convert some old-style function forward declarations
5478 to prototypes.
5479
5480 * keyboard.h (gen_help_event): Change prototype.
5481
5482 * xterm.c (XTread_socket): Change calls to gen_help_event.
5483
5484 * w32term.c (w32_read_socket): Change calls to gen_help_event.
5485
6917e6bb
GM
5486 * eval.c (Fmacroexpand): Doc fix.
5487
e5cd3d11
JR
54882000-08-20 Jason Rumney <jasonr@gnu.org>
5489
5490 * w32term.h (x_display_info_for_display): Remove as this function
5491 does not exist on W32.
5492
5493 * w32term.c (help_echo_window): New variable.
5494 (syms_of_w32term): staticpro it.
5495 (note_mode_line_highlight): Set it.
5496 (XTextExtents16): Removed as there is no equivalent on W32.
5497 (x_compute_glyph_string_overhangs): Incomplete body removed, as
5498 the X way of doing this will not work for W32.
5499 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
5500 (x_draw_image_foreground): Avoid drawing outside of the clip area
5501 when image doesn't have a mask.
5502 (note_mouse_highlight): Process overlays in the right order of
5503 priority. Set help_echo_window.
5504 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
5505 because that's more visible for large images.
5506
5507 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
5508 name to single_keymap_panes.
5509 (w32_menu_show): Set wv->title when dealing with titles.
5510 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
5511
6e69ab8c
MB
55122000-08-21 Miles Bader <miles@gnu.org>
5513
5514 * minibuf.c (do_completion): Try again if we rewrite the input
5515 string, but no completion was done, so that any completion message
5516 will be correct.
5517
511bd4eb
GM
55182000-08-20 Gerd Moellmann <gerd@gnu.org>
5519
5520 * xfaces.c (lface_equal_p): Compare strings differently.
5521 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
5522 (realize_tty_face): Use them.
5523 (syms_of_xfaces): Initialize new variables.
5524 (map_tty_color): New function, extracted from realize_tty_face.
5525 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
5526 foreground or background color, store the new color name in the
5527 realized face; previous code trying to do this had no effect.
5528 (realize_tty_face): Use map_tty_color.
5529 (Fclear_face_cache): Set face_change_count and ensure thorough
5530 redisplay.
5531
1433385f
GM
55322000-08-19 Gerd Moellmann <gerd@gnu.org>
5533
511bd4eb
GM
5534 * undo.c (record_first_change, record_marker_adjustment): Don't
5535 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 5536
419ac0a2
KH
55372000-08-18 Kenichi Handa <handa@etl.go.jp>
5538
5539 * coding.c (decode_coding_string): Set members consumed,
5540 consumed_char, produced, produced_char of *coding correctly. If
5541 decode_coding doesn't consume any byte, don't try anymore.
5542 (encode_coding_string): Likewise.
5543
7eb9e30d
GM
55442000-08-18 Gerd Moellmann <gerd@gnu.org>
5545
511bd4eb
GM
5546 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
5547 conditional have void type, for Standard C compilers.
7eb9e30d
GM
5548
5549 * xdisp.c (redisplay_internal): Compare windows for equality with
5550 EQ, instead of applying XWINDOW to something that might not
5551 be a window.
5552
dd34a735
KH
55532000-08-18 Kenichi Handa <handa@etl.go.jp>
5554
5555 * fontset.c (Finternal_char_font): Search only the selected frame
5556 for a window of the current buffer.
5557
385ff9e3
GM
55582000-08-18 Gerd Moellmann <gerd@gnu.org>
5559
511bd4eb 5560 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
5561 Lisp_Objects.
5562
385ff9e3
GM
5563 * keyboard.c (kbd_buffer_get_event): Handle the case that the
5564 second half of a HELP_EVENT is found at the start of kbd_buffer.
5565
d6abb4c7
MB
55662000-08-18 Miles Bader <miles@gnu.org>
5567
4618074a
MB
5568 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
5569
d6abb4c7
MB
5570 * editfns.c (save_restriction_save): Rewrite to use markers.
5571 (save_restriction_restore): Rewrite to understand new form of data
5572 saved by save_restriction_save.
5573 (Fsave_restriction): Remove cautionary note in doc-string.
5574
a7b28523
GM
55752000-08-17 Gerd Moellmann <gerd@gnu.org>
5576
5577 * fileio.c (build_annotations): Add a comment explaining the
5578 return value of format-annotate-function. Replace a spurious call
5579 to Flength with a CONSP test. Call format-annotate-function with
5580 a fifth arg specifying how many times the function is been called
5581 in a row, to let it choose temporary buffers appropriately.
5582
03c9ed77
DL
55832000-08-17 Dave Love <fx@gnu.org>
5584
5585 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
5586 declare make_temp_name twice.
5587
5588 * lread.c: Prototype readevalloop, load_unwind,
5589 load_descriptor_unwind.
5590 (unreadpure): Give it an arg.
5591
5592 * unexalpha.c: Prototype fatal_unexec, mark_x,
5593 update_dynamic_symbols. Declare unexec as void.
5594
5595 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
5596 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
5597
5598 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
5599 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on
5600 DOUG_LEA_MALLOC.
5601
5602 * alloca.c: Use #error.
5603 [POINTER_TYPE]: Use it.
5604
5605 * eval.c (Fdefvar): Doc fix.
5606
5607 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
5608 INITIALIZE_INTERVAL.
5609
5610 * buffer.h: Avoid DECLARE_INTERVALS.
5611
5612 * config.in: Add size_t.
5613
aae41d97
EZ
56142000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
5615
5616 * w16select.c (set_clipboard_data): If there's not enough memory
5617 to put text into clipboard, return 1, as Fw16_set_clipboard_data
5618 expects. In case of other failures, return 3.
5619 (system_error_msg): New error message.
5620 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
5621 system_error_msg.
5622
65aa5e85
GM
56232000-08-16 Gerd Moellmann <gerd@gnu.org>
5624
5625 * term.c (write_glyphs): Also turn off inverse video after turning
5626 off other appearances in case TS_exit_attribute_mode is not equal
5627 to TS_end_standout_mode.
5628 (insert_glyphs): Turn inverse video on/off for each run of glyphs
5629 with the same face.
5630 (turn_off_face): Reset standout_mode only if
5631 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
5632 is equal to TS_end_standout_mode.
5633
ece23901
KH
56342000-08-16 Kenichi Handa <handa@etl.go.jp>
5635
9d7bcb2e
KH
5636 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
5637 sequence at the end of the source block.
5638
ece23901
KH
5639 * ccl.c (Fccl_program_p): Docstring modified.
5640 (Fccl_execute): Likewise.
5641 (Fccl_execute_on_string): Likewise.
5642
5e30eaa2
EZ
56432000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
5644
5645 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
5646
290602fd
KH
56472000-08-16 Kenichi Handa <handa@etl.go.jp>
5648
5649 The following changes are mainly to fix bugs of
5650 encode/decode-coding-string failing if encoding/decoding return
5651 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
5652 variable conversion_buffer.
5653
5654 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
5655 decrement dst_end to avoid buffer overflow in the later call of
5656 string_as_multibyte
5657
5658 * coding.h (conversion_buffer_size, conversion_buffer)
5659 (get_conversion_buffer): Extern deleted.
5660
5661 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
5662 (conversion_buffer, conversion_buffer_size): Variables deleted.
5663 (get_conversion_buffer): Function deleted.
5664 (struct conversion_buffer): New structure.
5665 (MAX_ALLOCA): New macro.
5666 (allocate_conversion_buffer): New macro.
5667 (extend_conversion_buffer, free_conversion_buffer): New functions.
5668 (ccl_coding_driver): Set coding->result.
5669 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
5670 this is the last block of source.
5671 (encode_coding): Likewise. Handle the source block as the last
5672 one only when the whole source text is consumed.
5673 (decode_coding_string): Handle the case that the output buffer is
5674 too small to decode the whole source text. Use
5675 allocate_conversion_buffer, extend_conversion_buffer and
5676 free_conversion_buffer, not get_conversion_buffer.
5677 (encode_coding_string): Likewise.
5678 (init_coding): Function deleted.
5679 (init_coding_once): Delete code to initialize
5680 conversion_buffer_size.
5681
5682 * emacs.c (main): Don't call init_coding.
5683
5684 * msdos.c (IT_write_glyphs): Use a locally declared
5685 conversion_buffer.
5686
5687 * term.c (write_glyphs): Use a locally declared conversion_buffer.
5688 (insert_glyphs): Likewise.
5689
5690 * w32console.c (write_glyphs): Use a locally declared
5691 conversion_buffer.
5692
b9f80d41
EZ
56932000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
5694
5695 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
5696 member of display_info is NULL.
5697
32dc52f7
GM
56982000-08-15 Gerd Moellmann <gerd@gnu.org>
5699
58ed0d3b
GM
5700 * alloc.c (compact_small_strings): Use safe_bcopy, add an
5701 assertion.
5702
32dc52f7 5703 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 5704 appearances with capability `me'.
32dc52f7
GM
5705 (write_glyphs): Switch on inverse video before each face change.
5706
4eb22d33
DL
57072000-08-14 Dave Love <fx@gnu.org>
5708
5709 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
5710 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
5711 (lisp_free): Declare and make static.
5712
5713 * window.c: Fix embedded comment.
5714 (syms_of_window): Fix doc string.
5715
90cbf47e
GM
57162000-08-14 Gerd Moellmann <gerd@gnu.org>
5717
5718 * keymap.c (push_key_description): If C without modifiers is < 32,
5719 make sure to print `C-' before `M-', like in the manual.
5720
440fc135
GM
57212000-08-11 Gerd Moellmann <gerd@gnu.org>
5722
5723 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
5724 since they aren't relocated anymore.
5725 (sxhash_string): Make sure returned hash code fits in a Lisp
5726 integer.
5727
5728 * xdisp.c (try_cursor_movement): Fix handling of cursor in
5729 partially visible line which is smaller than the window's
5730 height.
5731
6e264fad
KH
57322000-08-11 Kenichi Handa <handa@etl.go.jp>
5733
5734 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
5735 the multibyte form of eight-bit-control characters.
5736 (Fccl_execute_on_string): Initialize ccl->multibyte.
5737
5738 * ccl.h (struct ccl_program): New member multibyte.
5739
5740 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
5741
c371f69a
KH
57422000-08-11 Kenichi Handa <handa@etl.go.jp>
5743
5744 * regex.c (regex_compile) <normal_char>: Pay attention to
5745 multibyteness.
5746 (analyse_first) <exactn>: Setup fastmap correctly for
5747 eight-bit-control characters.
5748
57492000-08-11 Kenichi Handa <handa@etl.go.jp>
5750
5751 * termhooks.h (enum event_kind): New member
5752 multibyte_char_keystroke.
5753
5754 * keyboard.c (make_lispy_event): Handle the new event type
5755 multibyte_char_keystroke.
5756
5757 * xterm.c: Include coding.h.
5758 (XTread_socket): Work around a bug of XmbLookupString. If the
5759 input is from XIM, decode it according to the current locale. In
5760 that case, generate multibyte_char_keystroke events.
5761
b8ddbe71
KH
57622000-08-11 Kenichi Handa <handa@etl.go.jp>
5763
5764 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
5765 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
5766
47589c8c
GM
57672000-08-10 Gerd Moellmann <gerd@gnu.org>
5768
5769 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
5770 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
5771 (move_it_in_display_line_to): Record iterator's ascent and descent
5772 before producing glyphs, and restore them when we know the glyph
5773 doesn't fit on the line.
5774 (move_it_to): Restructured so that it's easier to debug. If
5775 moving to a vpos, and not moving to an x or character position,
5776 stop as soon as the specified vpos is reached; don't move further
5777 into that line because that might change the computed line height.
5778 (try_cursor_movement): New function, extracted from the cursor
5779 movement branch of redisplay_window. If ending on a partially
5780 visible line, don't try to scroll if the cursor line is taller
5781 than the window.
5782 (redisplay_window): Use try_cursor_movement.
5783
5784 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
5785 because that function doesn't cope with variable-height lines.
5786
5787 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
5788 box cursor because that's better visible for large images.
5789
c51bacd6
MB
57902000-08-10 Miles Bader <miles@gnu.org>
5791
5792 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
5793
bea56df7
GM
57942000-08-10 Gerd Moellmann <gerd@gnu.org>
5795
5796 * xdisp.c (Vmessages_buffer_name): New variable.
5797 (message_dolog): Use it.
5798 (syms_of_xdisp): Initialize it.
5799
99cd7364
EZ
58002000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
5801
5802 * msdos.c (IT_note_mouse_highlight): Update the calls to
5803 overlays_at.
5804 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
5805 redundant now that keyboard.h is included.
5806
7d093d56
EZ
58072000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
5808
5809 * keyboard.c (kbd_buffer_events_waiting): New function.
5810
5811 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
5812
5813 * msdos.c: Include keyboard.h.
5814 (XMenuActivate): Empty no_event events from the event buffer. If
5815 no events are left after that, call clear_input_pending.
5816 (mouse_clear_clicks): New function, code moved from mouse_init.
5817 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
5818 mouse driver to ``forget'' any past clicks.
5819
5820 * Makefile.in (msdos.o): Depend on keyboard.h.
5821
41e757a6
GM
58222000-08-09 Gerd Moellmann <gerd@gnu.org>
5823
8e7bd231
GM
5824 * lisp.h (input_pending): External declaration.
5825
5826 * dispextern.h (Qredisplay_dont_pause): Declare extern.
5827
5828 * xdisp.c (echo_area_display): Display thoroughly if input is
5829 pending. Bind redisplay-dont-pause to t during the redisplay.
5830 in case input is pending.
5831
5832 * dispnew.c (Qredisplay_dont_pause): New variable.
5833 (syms_of_display): Initialize and staticpro it.
5834 (update_frame_1): Don't interrupt the display for pending input if
5835 redisplay_dont_pause is set.
5836
43028b7e
GM
5837 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
5838
41e757a6
GM
5839 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
5840
2f2174fa
KH
58412000-08-09 Miles Bader <miles@lsi.nec.co.jp>
5842
5843 * callproc.c (Fcall_process): Terminate the unwind-protect around
5844 the post-read-conversion of coding system.
5845
0a6fd67e
MB
5846 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
5847 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
5848 * buffer.h (overlays_at): Update prototype.
5849 * xdisp.c (next_overlay_change): Update call to overlays_at.
5850 * xfaces.c (face_at_buffer_position): Likewise.
5851 * textprop.c (Fget_char_property): Likewise.
5852 * xterm.c (note_mouse_highlight): Likewise.
5853
0c80756e
MB
5854 * minibuf.c (do_completion): Don't consider a simple change of
5855 case as `completion'.
5856
975f250a
KR
58572000-08-08 Ken Raeburn <raeburn@gnu.org>
5858
b347b3fd
KR
5859 * keyboard.c (syms_of_keyboard): Initialize
5860 last_point_position_buffer.
5861 * undo.c (record_delete): Make sure last_point_position_buffer is
5862 a buffer before comparing pointers.
5863
5864 * coding.h (decode_coding_string): Declare.
5865
5866 * intervals.h (Fprevious_single_char_property_change): Declare.
5867
5868 * textprop.c (Fprevious_single_char_property_change): Don't do
5869 arithmetic directly on lisp objects.
5870
25ad1371 5871 * editfns.c (find_field): Use EQ, not ==, to compare Lisp
b347b3fd
KR
5872 objects.
5873
5874 * keyboard.h (menu_item_eval_property): Declare.
5875
5876 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
5877 reuse as buffer name, instead of recreating (and discarding) every
5878 time a message is logged.
5879 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
5880 (current_message_1, truncate_message_1, set_message_1)
5881 (display_echo_area_1, resize_mini_window_1): Signatures changed.
5882 (current_message, truncate_echo_area, display_echo_area)
5883 (resize_echo_area_axactly): Changed calls.
b347b3fd 5884
975f250a 5885 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 5886 Lisp object.
975f250a 5887 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 5888 must be an integer, not a Lisp object.
975f250a 5889
46dc9912
KH
58902000-08-08 Kenichi Handa <handa@etl.go.jp>
5891
5892 * charset.c (Fchar_width): Doc fix.
5893
9f6d1a6c
GM
58942000-08-08 Gerd Moellmann <gerd@gnu.org>
5895
5896 * charset.c (Fstring_width): Doc fix.
5897
ff3d9573
GM
58982000-08-07 Gerd Moellmann <gerd@gnu.org>
5899
41e757a6 5900 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
5901 line, clear ascent and descent members of the iterator structure;
5902 the height of the continued line does not affect the height of the
5903 continuation line.
5904 (make_cursor_line_fully_visible): Do nothing if cursor is on a
5905 line taller than the window.
5906 (redisplay_window) <forced window start>: Handle case that the
5907 middle of the window is not found in any row.
5908 (dump_glyph_row): Show more information.
5909 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
5910 first text line in a glyph matrix.
5911
5912 * xterm.c (x_draw_image_foreground): Avoid drawing outside
5913 of the clip area when image doesn't have a mask.
5914
70fc58b3
GM
5915 * fns.c (sweep_weak_table): Fix survival conditions for
5916 key-or-value and key-and-value weakness.
5917
5918 * .gdbinit (xhashtable): New command.
5919
ac0e96ee
GM
5920 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
5921 tables out of the list of all weak hash tables.
5922
ff3d9573
GM
5923 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
5924 a new buffer is created, make sure echo_area_buffer[] references
5925 the new buffer.
5926
e0d8827b
EZ
59272000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
5928
5929 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
5930 the doc string.
5931
c6f35378
KH
59322000-08-07 Kenichi Handa <handa@etl.go.jp>
5933
5934 * syntax.c (skip_chars): Fix previous change. Make the handling
5935 of unibyte string consistent with that of regex search.
5936
1fd4c450
GM
59372000-08-05 Gerd Moellmann <gerd@gnu.org>
5938
e49aa397
GM
5939 * xmenu.c (popup_get_selection): Use xfree instead of free.
5940
5941 * fileio.c (Finsert_file_contents): Use xfree instead of free.
5942
5943 * editfns.c (Ftranspose_regions): Use xfree instead of free.
5944
5945 * callproc.c (child_setup): Use xfree instead of free.
5946
5947 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
5948 instead of malloc.
5949 (run_mac_command, closedir): Use `xfree' instead of `free'.
5950
5951 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
5952
5953 * eval.c (error): Use xfree instead of free.
5954
1fd4c450
GM
5955 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
5956
5957 * fns.c: Replace `illegal' with `invalid'.
e49aa397 5958 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 5959
82d497fc
KH
59602000-08-05 Kenichi Handa <handa@etl.go.jp>
5961
5962 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
5963 conversion.
5964
59f953a2
NF
59652000-08-04 Noah Friedman <friedman@splode.com>
5966
5967 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
5968 docstring.
5969
688351f2
GM
59702000-08-04 Gerd Moellmann <gerd@gnu.org>
5971
5972 * syntax.c (skip_chars): Fix typo in error message.
5973
2dad51cc
AS
59742000-08-04 Andreas Schwab <schwab@suse.de>
5975
5976 * m/ia64.h: Moved from s/ia64.h.
5977
99bb2c60
KH
59782000-08-04 Kenichi Handa <handa@etl.go.jp>
5979
082a1df2
KH
5980 * process.c (read_process_output): Big simplification. Handle
5981 composition and post-read-conversion of coding system correctly.
5982 (send_process): Handle composition correctly.
5983
5984 * callproc.c (Fcall_process): Handle post-read-conversion of
5985 coding system if any.
5986
99bb2c60
KH
5987 * coding.c (decode_coding_iso2022): More strict check for handling
5988 single shifting.
082a1df2
KH
5989 (coding_restore_composition): Pay attention to the case that
5990 cmp_data is not set properly (because of invalid code in the
5991 source text).
5992 (run_pre_post_conversion_on_str): Include text properties in the
5993 resulting string.
5994 (decode_coding_string): Set members of coding correctly.
99bb2c60 5995
f4988be7
GM
59962000-08-03 Gerd Moellmann <gerd@gnu.org>
5997
5998 * s/ia64.h: New file.
5999
6000 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
6001 Use NULL instead of 0 at the end of variable argument list of
6002 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
6003 sizeof (int) < sizeof (void *).
6004
6005 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
6006 of variable argument lists of XtVaGetValues and XtVaSetValues.
6007
6008 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
6009 variable argument lists of XtVaGetValues and XtVaSetValues.
6010
ead53494
GM
60112000-08-02 Gerd Moellmann <gerd@gnu.org>
6012
6013 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
6014 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
6015
6016 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
6017 prototype.
6018
6019 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
6020 in call to Fsingle_key_description.
6021
6022 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
6023 Callers changed.
6024
60252000-08-02 Colin Walters <walters@cis.ohio-state.edu>
6026
6027 * window.c (display_buffer_reuse_frames): New variable.
6028 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
6029 frames displaying BUFFER.
6030 (syms_of_window): Define Lisp variable
6031 display-buffer-reuse-frames.
6032
10b0f752
MB
60332000-08-01 Miles Bader <miles@gnu.org>
6034
6035 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
6036 when to constrain NEW_POS (they were pretty screwed up before).
6037
16425c4a
EZ
60382000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
6039
6040 * msdos.c (run_msdos_command): Save and restore the master
6041 environment, for the case that child_setup signals an error.
6042 When mirroring slashes in DOS shell commands, don't fail when
6043 argv[2] has embedded blanks.
da288c14
EZ
6044 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
6045 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
6046 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
6047
6048 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
6049 using alloca; free it after run_msdos_command returns.
6050
27f73852
DL
60512000-07-27 Dave Love <fx@gnu.org>
6052
6053 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't
6054 define.
6055 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently
6056 working.
6057
6058 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
6059
c0261b5e
EZ
60602000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
6061
6062 * editfns.c (lisp_time_argument): Fix last change.
6063
b548072f
GM
60642000-07-27 Gerd Moellmann <gerd@gnu.org>
6065
3ab82477
GM
6066 * fns.c (Fdelete): Make it work on vectors and strings in addition
6067 to lists.
6068
b548072f
GM
6069 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
6070 (syms_of_fns): Initialize new variables.
6071 (sweep_weak_table): Handle weakness `key-or-value' and
6072 `key-and-value'.
6073 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
6074 weakness, with t meaning the same as `key-and-value'.
6075
91ae8751
KH
60762000-07-27 Kenichi Handa <handa@etl.go.jp>
6077
6078 * coding.h (struct coding_system): Member safe_charset deleted.
6079
6080 * coding.c (Qsafe_charsets): This variable deleted.
6081 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system): New
6082 variables.
6083 (coding_safe_chars): New function.
6084 (CODING_SAFE_CHAR_P): New macro.
6085 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
6086 checking safe_charsets member of the coding system. Caller
6087 changed.
6088 (detect_coding_iso2022): New local variable safe_chars.
6089 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
6090 safe_charsets member of the coding system.
6091 (decode_coding_iso2022): New local variable safe_chars.
6092 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
6093 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
6094 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
6095 (ENCODE_UNSAFE_CHARACTER): New macro.
6096 (encode_coding_iso2022): New local variable safe_chars. Check
6097 unsafe chars.
6098 (setup_coding_system): Delete the code to initialize
6099 coding->safe_charses
6100 (intersection, find_safe_codings): New functions.
6101 (Ffind_coding_systems_region_internal): New function.
6102 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
6103 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
6104 variable and initialize it.
6105
6106 * fns.c (char_table_ref_and_index): New function.
6107
6108 * lisp.h (char_table_ref_and_index): Add prototype.
6109
34a7a267
SS
61102000-07-26 Sam Steingold <sds@gnu.org>
6111
6112 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 6113 (Ffloat_time): New built-in Lisp function.
34a7a267 6114
a95cb10a
GM
61152000-07-26 Gerd Moellmann <gerd@gnu.org>
6116
3353ef5a
GM
6117 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
6118 for the character code.
6119
6120 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
6121 GNU/Linux.
6122
a95cb10a
GM
6123 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
6124 if called for a popup menu.
6125 (xmenu_show): Store help string in widget values.
6126
b4a12321
DL
61272000-07-26 Dave Love <fx@gnu.org>
6128
6129 * syswait.h: Move some definitions.
6130 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
6131 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
6132 perspicuous definitions.
6133 (WTERMSIG): Fix bit pattern used.
6134
13f5ad37
KH
61352000-07-26 Kenichi Handa <handa@etl.go.jp>
6136
6137 * print.c (print_object): If vector printing is truncated, print
6138 "..." to indicate it as well as the case of list printing.
6139
070fe99c
GM
61402000-07-25 Gerd Moellmann <gerd@gnu.org>
6141
969065c3
GM
6142 * xdisp.c (next_element_from_display_vector): Improve comments.
6143
6144 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
6145 for the character code, and the rest for the face id as in 20.x.
6146 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
6147
6148 * window.c (window_display_table): Cleaned up.
6149
070fe99c
GM
6150 * syntax.c (Fforward_word): Add last arg nil in call of
6151 Fconstrain_to_field.
6152
bad77ef7
EZ
61532000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
6154
969065c3 6155 * fileio.c (Frename_file) [DOS_NT]: If the file names are
bad77ef7
EZ
6156 identical but for the letter-case, don't call
6157 barf_or_query_if_file_exists.
6158
c28da489
MB
61592000-07-25 Miles Bader <miles@gnu.org>
6160
6161 * editfns.c (find_field): Honor special `boundary' fields.
6162 (Qboundary): New variables.
6163 (syms_of_editfns): Initialize Qboundary.
6164 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
6165 Use scan_buffer instead of find_before_next_newline, because it
6166 allows us to detect the boundary case where there's a newline at
6167 the search limit.
6168 * lisp.h (Fconstrain_to_field): Update external declaration.
6169
e3c31fd5
GM
61702000-07-24 Gerd Moellmann <gerd@gnu.org>
6171
6172 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
6173 if that is nil.
c28da489 6174
c66c29a2
DL
61752000-07-24 Dave Love <fx@gnu.org>
6176
6177 * s/sunos4-0.h, s/sol2.h:
6178 (LIBS_TERMCAP): Move from m/sparc.h.
6179
6180 * m/sparc.h (TERMINFO): Moved to system files (probably only
6181 relevant for sunos4 judging by its vintage).
6182 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
6183 __arch64__.
6184
fbe0a958
EZ
61852000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
6186
6187 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
6188 name to single_keymap_panes.
6189
7d88e5c9
AS
61902000-07-24 Andreas Schwab <schwab@suse.de>
6191
6192 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
6193
e024b101
GM
61942000-07-24 Gerd Moellmann <gerd@gnu.org>
6195
6196 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
6197 parameters instead of using int parameters. Expect FN to accept
6198 EMACS_INT parameters.
6199 (display_echo_area, resize_echo_area_axactly, current_message)
6200 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
6201 with new argument list.
6202 (resize_mini_window_1): New callback function.
6203 (current_message_1, truncate_message_1, set_message_1): Change
6204 parameter lists to the new format expected by
6205 with_echo_area_buffer.
6206
25c1a9ce
KH
62072000-07-24 Kenichi Handa <handa@etl.go.jp>
6208
6209 * fontset.c (fontset_ref): Remove INLINE declaration.
6210 (fontset_ref_via_base): Likewise.
6211 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
6212 to downcase.
6213
7f987ac0
EZ
62142000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
6215
6216 * msdos.c (IT_note_mouse_highlight): Process overlays in the
6217 correct order of priority. If help echo was found in an overlay,
6218 use that overlay as the object in which the help echo was found.
6219
e2db3069
MB
62202000-07-22 Miles Bader <miles@gnu.org>
6221
6222 * textprop.c (Fprevious_single_char_property_change): The initial
6223 property value should be from the position preceding POSITION, not
6224 following it.
6225
5e3203e4
EZ
62262000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
6227
6228 * coding.c (syms_of_coding): Doc fix for
6229 inhibit-iso-escape-detection.
6230
62145073
GM
62312000-07-21 Gerd Moellmann <gerd@gnu.org>
6232
c20aeb83
GM
6233 * xterm.c (note_mouse_highlight): Process overlays in the right
6234 order of priority.
34a7a267 6235
743934db
GM
6236 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
6237
6238 * xterm.c (note_mouse_highlight): If help-echo was found in an
6239 overlay, use that overlay as the object in which the help was
6240 found.
6241
d1dc7e43 6242 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 6243
62145073
GM
6244 * window.c (foreach_window): Instead of a fake variable argument
6245 list, take one USER_DATA argument.
6246 (foreach_window_1): Likewise, and call callback functions with two
6247 args, the window and USER_DATA.
6248 (struct check_window_data): New struct.
6249 (check_window_containing): Use it.
6250 (window_from_coordinates): Set up a struct check_window_data for
6251 foreach_window.
6252 (add_window_to_list, freeze_window_start): Change parameters
6253 according to new calling convention.
6254
6255 * window.h (foreach_window): Change prototype.
6256
6257 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
6258
62592000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
6260
6261 * xmenu.c (menu_help_callback): Call show_help_echo with
6262 additional arguments OBJECT and POS.
6263
11270583
KH
62642000-07-21 Kenichi Handa <handa@etl.go.jp>
6265
07b14857
KH
6266 * data.c (Faset): Allow storing any multibyte character in a
6267 string. Convert unibyte string to multibyte if necessary.
6268
11270583
KH
6269 * xfns.c (x_encode_text): New function.
6270 (x_set_name): Use x_encode_text.
6271 (x_set_title): Likewise.
6272
6273 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
6274
6275 * xterm.h (x_encode_text): Add prototype.
6276
bc75b4fd
DL
62772000-07-20 Dave Love <fx@gnu.org>
6278
6279 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
6280 xfree, not free.
6281
48c14970
EZ
62822000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
6283
6284 * msdos.c (help_echo_window): New variable.
6285 (syms_of_msdos): Initialize and staticpro it.
6286 (IT_note_mode_line_highlight): Set help_echo_window.
6287 (IT_note_mouse_highlight): Ditto.
6288 (dos_rawgetc): Store help_echo_window in the second event produced
6289 for HELP_EVENTs.
6290
6291 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
6292 Record the object that generated the help echo and the position of
6293 that object in help_echo_object and help_echo_pos. Record that
6294 some glyphs in a row are displayed in mouse-face.
6295 (IT_update_begin): Don't clear mouse highlight unless one of the
6296 enabled glyph rows is marked as being displayed in mouse-face.
6297 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
6298 and position recorded in help_echo_object and help_echo_pos to the
6299 event queue.
6300 (IT_menu_display): Accept a new argument PN: the pane number of
6301 the current menu pane. Record the pane number and the item
6302 number of the item which has associated help string.
6303 (XMenuActivate): Update the prototype for help_callback in
6304 function declaration. Call IT_menu_display with the current menu
6305 pane number as an additional argument. Call help_callback with
6306 two additional arguments: the pane number and the item number of
6307 the menu item associated with the help text.
6308 (help_echo_object, help_echo_pos): New variables.
6309 (syms_of_msdos): Initialize them and staticpro help_echo_object.
6310
6311 * msdos.h (XMenuActivate): Update prototype.
6312
4279296d
GM
63132000-07-19 Gerd Moellmann <gerd@gnu.org>
6314
47db06aa
GM
6315 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
6316 Add some more prototypes.
6317
6318 * xterm.c, xterm.h: Add some more prototypes.
6319
6320 * lisp.h (Fnext_single_char_property_change): Add prototype.
6321
6322 * dispnew.c (direct_output_for_insert): Remove confusing
6323 outer local variable mouse_face_overwritten_p.
6324 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
6325
4279296d
GM
6326 * alloc.c (allocate_string_data): Don't copy old string contents.
6327
670acd62
KH
63282000-07-19 Kenichi Handa <handa@etl.go.jp>
6329
6330 * coding.c (code_convert_region): Delete text properties before
6331 shrinking the conversion region.
6332
7cea38bc
GM
63332000-07-18 Gerd Moellmann <gerd@gnu.org>
6334
dc1cac59
GM
6335 * dispnew.c (update_text_area): Write the whole row if it
6336 has mouse-face in it.
6337
85a8aca9
GM
6338 * xfaces.c (face-alternative-font-family-alist): Remove
6339 DEFVAR_LISP; staticpro instead.
6340
34a7a267 6341 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
6342 new arguments.
6343
6344 * keyboard.c (show_help_echo): Add parameter WINDOW.
6345 (read_char): Call show_help_echo with window extracted from Lisp
6346 help event.
6347 (gen_help_event): Add parameter WINDOW.
6348
6349 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
6350
6351 * xterm.c (help_echo_window): New variable.
6352 (note_mouse_highlight, note_tool_bar_highlight): Set
6353 help_echo_window.
6354 (XTread_socket): Pass help_echo_window to gen_help_event.
6355 (syms_of_xterm): Initialize and staticpro help_echo_window.
6356
f8276b77
DL
63572000-07-18 Dave Love <fx@gnu.org>
6358
6359 * Makefile.in: Fix dependencies of blockinput.h on atimer.h,
6360 systime.h.
6361
088831a6
GM
63622000-07-18 Gerd Moellmann <gerd@gnu.org>
6363
3d6cd763
GM
6364 * alloc.c (allocate_string_data): If string had already data
6365 assigned, copy old contents to new string data.
6366
6367 * coding.c (syms_of_coding): Fix typo in spelling of variable
6368 `inhibit-iso-escape-detection'.
6369
088831a6
GM
6370 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
6371
6372 * Makefile.in: Add dependencies on dispextern.h.
6373 (alloca.o): Don't define malloc and define EMACS_FREE instead of
6374 `free'; both can conflict with system header files.
6375
bc8a8d55
KH
63762000-07-18 Kenichi Handa <handa@etl.go.jp>
6377
6378 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
6379 undefined.
6380
069f5950
DL
63812000-07-18 Dave Love <fx@gnu.org>
6382
6383 * window.c (Fwindow_list): Declare arg `window'.
6384
aa96c820
KH
63852000-07-18 Kenichi Handa <handa@etl.go.jp>
6386
6387 * coding.c (setup_coding_system): Don't override the explicitly
6388 specified designations.
6389
06be8d32
MB
63902000-07-15 Miles Bader <miles@gnu.org>
6391
6392 * editfns.c (char_property_eq, char_property_stickiness): Renamed
6393 from `text_property_eq' and `text_property_stickiness', respectively.
6394 (find_field, Fconstrain_to_field, char_property_eq)
6395 (char_property_stickiness): Changed to call char-property functions
6396 instead of text-property-only ones.
6397
6398 * textprop.c (Fnext_single_char_property_change): Made a subr (was
6399 `next_single_char_property_change'). Do more error checking, and
6400 cleanup limit behavior.
6401 (Fprevious_single_char_property_change): New function.
6402 (syms_of_textprop): Initialize new subrs.
6403
6404 * xdisp.c (display_prop_end, invisible_text_between_p):
6405 Call Fnext_single_char_property_change instead of
6406 next_single_char_property_change.
6407
3fddcdc3
JR
64082000-07-15 Jason Rumney <jasonr@gnu.org>
6409
6410 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
6411 after menu is finished with.
6412 (add_menu_item): Only consider wv->title as a menu title.
6413 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
6414
6415 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
6416 null title.
6417 (FONT_REGEXP): Remove unused macro, and its sub-components.
6418 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
6419
6420 * w32term.c (help_echo_object, help_echo_pos): New variables.
6421 (note_mode_line_highlight): Store additional information about the
6422 help-echo in help_echo_object and help_echo_pos. Check both
6423 `local-map' and `keymap' properties for changing the cursor
6424 (note_mouse_highlight): Store additional information about the
6425 help-echo in help_echo_object and help_echo_pos.
6426 (note_tool_bar_highlight): Set help_echo_object to nil and
6427 help_echo_pos to -1.
6428 (w32_read_socket): Use gen_help_event instead of filling
6429 input_events manually.
6430 (syms_of_w32term): Staticpro help_echo_object.
6431 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
6432 set, arrange for a mouse-highlight redisplay in
6433 XTframe_up_to_date.
6434 (x_clear_mouse_face): New function.
6435 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
6436 (x_update_window_begin): No need to turn off the mouse
6437 highlight here.
6438 (show_mouse_face): Set the mouse_face_p flag of glyph rows
6439 depending on whether they contain glyphs highlighted in
6440 mouse-face.
6441 (x_fill_stretch_glyph_string): Consume runs of stretch
6442 glyphs instead of a single one.
6443 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
6444 with new argument list.
6445 (x_set_glyph_string_gc): Make sure the face's GC is valid.
6446 (x_append_glyph, x_append_composite_glyph)
6447 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
6448 changes in struct glyph starting 1999-12-27. See comments for
6449 xterm.c on 2000-07-05.
6450
178c5d9c
SS
64512000-07-14 Sam Steingold <sds@gnu.org>
6452
6453 * xfaces.c (realize_x_face): Fix the last patch:
6454 check `default_face' before dereferencing.
6455
6fe533f6
DL
64562000-07-14 Dave Love <fx@gnu.org>
6457
069f5950 6458 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 6459
dd7b81cf
KH
64602000-07-14 Kenichi Handa <handa@etl.go.jp>
6461
0693904a 6462 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 6463 default_face's fontset, not using the default fontset.
0693904a 6464
dd7b81cf
KH
6465 * coding.c (inhibit_iso_escape_detection): New variable.
6466 (syms_of_coding): Make it a Lisp variable.
6467 (detect_coding_iso2022): If inhibit_iso_escape_detection is
6468 nonzero, ignore ISO2022's escape sequence.
6469
d5aa31d8
GM
64702000-07-14 Gerd Moellmann <gerd@gnu.org>
6471
e5acf0ca
GM
6472 * alloca.c (malloc) [emacs]: Define as xmalloc.
6473
bd23a692
GM
6474 * xfns.c (Fx_show_tip): If frame parameters contain a position,
6475 use that instead of the mouse position. Add parameters DX and DY.
6476
6477 * dispextern.h (Fx_show_tip): Adjust number of parameters
6478 in prototype.
6479
9662da0b
GM
6480 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
6481 if HELP is a function, call it with OBJECT and POS as parameters
6482 to get the help to display.
6483 (gen_help_event, kbd_buffer_store_help_event): New functions.
6484 (kbd_buffer_get_event): Construct the Lisp help-event differently.
6485 (read_char): Call show_help_echo with new parameters.
6486
178c5d9c 6487 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
6488 Add prototypes.
6489
6490 * xterm.c (help_echo_object, help_echo_pos): New variables.
6491 (note_mode_line_highlight): Store additional information about the
6492 help-echo in help_echo_object and help_echo_pos. Check both
6493 `local-map' and `keymap' properties for changing the cursor
6494 (note_mouse_highlight): Store additional information about the
6495 help-echo in help_echo_object and help_echo_pos.
6496 (note_tool_bar_highlight): Set help_echo_object to nil and
6497 help_echo_pos to -1.
6498 (XTread_socket): Use gen_help_event instead of filling
6499 input_events manually.
6500 (syms_of_xterm): Staticpro help_echo_object.
6501
6502 * xmenu.c (menu_highlight_callback): Use
6503 kbd_buffer_store_help_event instead of setting up and input_event
6504 structure manually.
6505
6506 * xdisp.c (eval_form): GCPRO argument sexpr.
6507 (call_function): New function.
6508 (handle_single_display_prop): Use call_function and FUNCTIONP
6509 instead of checking whether if font_height is a symbol and
6510 using eval_form.
6511
6512 * eval.c (internal_condition_case_2): New function.
6513
6514 * lisp.h (FUNCTIONP): New macro.
6515 (internal_condition_case_2, call_function): Add prototypes.
6516
d5aa31d8
GM
6517 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
6518 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
6519 Always set `arg' member of input_events.
6520 (construct_menu_click): Unused function removed.
6521
6522 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
6523
6524 * w32term.c (construct_mouse_click, construct_mouse_wheel)
6525 (construct_drag_n_drop, x_scroll_bar_handle_click)
6526 (w32_read_socket): Always set `arg' member of input_events.
6527
6528 * keyboard.c (show_help_echo): Use eval_form. Add comment.
6529
6530 * lisp.h (eval_form): Add prototype.
6531
6532 * xdisp.c (eval_form): Make it externally visible.
6533
0f1a9b23
GM
65342000-07-13 Gerd Moellmann <gerd@gnu.org>
6535
6536 * xterm.c (x_handle_tool_bar_click): Store the frame in the
6537 frame_or_window slot of TOOL_BAR_EVENT input events instead of
6538 consing. For prefix events, store the frame in the `arg' slot of
6539 the event, otherwise store the key there.
6540 (XTread_socket): Instead of consing, use the frame_or_window slot
6541 of HELP_EVENTs for the frame, and the `arg' slot for the help
6542 string.
6543
6544 * xmenu.c (menu_highlight_callback): Store help string in the
6545 `arg' member of the input event; don't cons.
6546 (menubar_selection_callback): Use the `arg' slot of input events
6547 to queue additional information, instead of consing.
6548
6549 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
6550
6551 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
6552 TOOL_BAR_EVENTs.
6553 (w32_read_socket): Adapt to changes in HELP_EVENTs.
6554
6555 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
6556 input events to queue additional information, instead of consing.
6557
6558 * keyboard.c (kbd_buffer_gcpro): Renamed from
6559 kbd_buffer_frame_or_window. Now used for all Lisp objects
6560 referenced from the input queue.
6561 (kbd_buffer_store_event): Always use structure assignment for
6562 copying input events. Record all Lisp objects referenced from
6563 events in kbd_buffer_gcpro.
6564 (kbd_buffer_get_event): Construct Lisp `help-echo' events
6565 differently from input events. Test for prefix menu_bar_events
6566 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
6567 event in kbd_buffer_gcpro to nil.
6568 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
6569 frame_or_window is equal to its arg member as prefix events.
6570 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
6571 used by an input event to nil.
6572 (init_keyboard): Use two times the size of the input queue
6573 for kbd_buffer_gcpro.
6574 (syms_of_keyboard): Likewise.
6575
6576 * emacs.c (handle_USR2_signal, handle_USR1_signal): Use
6577 USER_SIGNAL_EVENT.
6578
6579 * termhooks.h (struct input_event): Add member `arg'.
6580 (MENU_BAR_EVENT): Renamed from menu_bar_event.
6581 (USER_SIGNAL_EVENT): Renamed from user_signal.
6582
6583 * xfaces.c (ASET): Remove definition.
6584
6585 * lisp.h (AREF, ASET, ASIZE): New macros.
6586
6587 * fontset.c (AREF, ASIZE): Remove definitions.
6588
6589 * fns.c (AREF): Remove definition.
178c5d9c 6590
0f1a9b23
GM
6591 * composite.c (AREF): Remove definition.
6592
712eaef2
GM
65932000-07-12 Gerd Moellmann <gerd@gnu.org>
6594
d8ee7803
GM
6595 * dispnew.c (redraw_overlapped_rows): Add missing local.
6596 (scrolling_window): Remove debug code.
6597
712eaef2
GM
6598 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
6599 Before scrolling, turn off a mouse-highlight in the window
6600 being scrolled.
6601
6602 * xterm.c (x_update_window_end): Add parameter
6603 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
6604 redisplay in XTframe_up_to_date.
6605 (x_clear_mouse_face): New function.
6606 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
6607
6608 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
6609 current glyph row.
6610 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
6611 it when any row is written to that contains glyphs highlighted in
6612 mouse-face.
6613 (update_window): Call the window update end hook with new
6614 parameter MOUSE_FACE_OVERWRITTEN_P.
6615 (direct_output_for_insert): Give up if row contains mouse-face.
6616
6617 * dispextern.h (struct redisplay_interface): Add parameter
6618 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
6619 (clear_mouse_face): New function pointer member.
6620
02010917
SM
66212000-07-11 Stefan Monnier <monnier@cs.yale.edu>
6622
6623 * syntax.c (back_comment): Use one switch rather than a few `if's.
6624 Obey open_paren_in_column_0_is_defun_start.
6625 When reverting to the `slow' method, try to nicely handle the case
6626 of nested comments by checking that the comment-starter we found
6627 does indeed match the comment-ender.
6628 (scan_sexps_forward, scan_sexps_forward):
6629 Ignore excessive opening parenthesis rather than throwing an error.
6630
d76c03ea
GM
66312000-07-11 Gerd Moellmann <gerd@gnu.org>
6632
6633 * doc.c (Fsubstitute_command_keys): Handle case that a GC
6634 in Fwhere_is_internal or get_keymap_1 relocates string contents.
6635
6636 * dispnew.c (direct_output_forward_char): Give up if currently
6637 displaying a message instead of the minibuffer contents.
6638
6639 * xterm.c (x_update_window_begin): No need to turn off the mouse
6640 highlight here.
6641 (show_mouse_face): Set the mouse_face_p flag of glyph rows
6642 depending on whether they contain glyphs highlighted in
6643 mouse-face.
6644
6645 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
6646 compare the mouse_face_p flags of both rows.
6647
6648 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
6649
d55ead18
EZ
66502000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
6651
6652 * keyboard.c (show_help_echo): Accept additional parameter
6653 ok_to_overwrite_keystroke_echo.
6654 (read_char): Call show_help_echo with a zero
6655 ok_to_overwrite_keystroke_echo argument.
6656 * keyboard.h (show_help_echo): Update prototype of
6657 show_help_echo.
6658 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
6659 ok_to_overwrite_keystroke_echo argument.
6660 * w32menu.c (w32_menu_display_help): Call show_help_echo with
6661 non-zero ok_to_overwrite_keystroke_echo argument.
6662
df75b1a3
GM
66632000-07-10 Gerd Moellmann <gerd@gnu.org>
6664
4b92c49a
GM
6665 * xdisp.c (try_window_id): If changes are all below what is
6666 displayed in the window, and point is in the window, we still
6667 might have to find point on the display.
6668
6669 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
6670 glyphs instead of a single one.
6671 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
6672 with new argument list.
6673 (x_set_glyph_string_gc): Make sure the face's GC is valid.
6674
df75b1a3
GM
6675 * keymap.c (get_keymap_1): Add comment that this function can GC.
6676 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
6677 comment that functions can GC.
6678 (Fset_keymap_parent): GCPRO arg KEYMAP.
6679
4314cf3e
EZ
66802000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
6681
6682 * msdos.c (XMenuActivate): After exiting the menu, restore the
6683 echo area message and erase it.
6684
ab49ce15
KH
66852000-07-10 Kenichi Handa <handa@etl.go.jp>
6686
6687 * fontset.c (Ffontset_info): Make the return value more compatible
6688 with that of Emacs 20.
6689
090a072f
GM
66902000-07-07 Gerd Moellmann <gerd@gnu.org>
6691
6692 * eval.c (Fsignal): Handle case that backtrace_list is null.
6693
f92de4a6
KH
66942000-07-07 Kenichi Handa <handa@etl.go.jp>
6695
6696 * ccl.c (Fccl_execute): Typo fixed.
6697
dd8888a1
GM
66982000-07-06 Gerd Moellmann <gerd@gnu.org>
6699
e5c81191 6700 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 6701
dd8888a1
GM
6702 * window.c (Fwindow_list): Reverse list at the end.
6703 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
6704 means allow windows on OWINDOW's frame, only.
6705 (window_loop): Simplified; use Fwindow_list.
6706
6707 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
6708
485266d0
GM
67092000-07-05 Gerd Moellmann <gerd@gnu.org>
6710
6711 * xterm.c (XTread_socket): Increment handling_signal at the start,
6712 decrement it at the end.
6713
6714 * eval.c (handling_signal): New variable.
6715 (Fsignal): Abort if handling_signal is non-zero.
6716
6717 * lisp.h (handling_signal): External declaration.
178c5d9c 6718
485266d0
GM
6719 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
6720
80fcd514
KR
67212000-07-05 Ken Raeburn <raeburn@gnu.org>
6722
6723 Sound support for NetBSD through "Linux emulation" support:
6724 * config.in (HAVE_SOUNDCARD_H): Undef.
6725 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
6726 * Makefile.in (LIBSOUND): New variable.
6727 (LIBES): Include it.
6728 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and
6729 <soundcard.h>.
6730 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined
6731 elsewhere.
6732 (vox_open): Use DEFAULT_SOUND_DEVICE.
6733 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
6734
d5c5cddd
GM
67352000-07-05 Gerd Moellmann <gerd@gnu.org>
6736
6737 * print.c (print_error_message): If Vsignaling_function is set,
6738 show it in *Messages*.
6739
6740 * lisp.h (Vsignaling_function): External declaration.
6741
6742 * eval.c (Vsignaling_function): New variable.
6743 (Fsignal): Compute it.
6744 (syms_of_eval): Staticpro it.
6745
65171e3a
DL
67462000-07-05 Dave Love <fx@gnu.org>
6747
6748 * syswait.h: Use the autoconf recommended approach. Old code
6749 #if'd out in case we need to revert.
6750
178c5d9c 6751 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 6752
e2c46326
AI
67532000-07-05 Andrew Innes <andrewi@gnu.org>
6754
6755 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
6756 when non-NULL instead of __morecore, to take account of buffer
6757 memory. This also solves a problem with spurious memory warnings
6758 on Windows.
6759
6760 * ralloc.c: Make real_morecore non-static.
6761
6762 * eval.c (internal_condition_case): Comment out abort if
6763 interrupt_input_blocked is not zero.
6764
6765 * makefile.nt: Add support for `bootstrap' and related targets.
6766 Include minimal debug info in emacs.exe in release build.
6767 Remove all dependencies on lisp.h, and fixup some others.
6768
6769 * w32.c (init_environment): Install code from 20.7 for providing
6770 default values for environment variables, based on the
6771 executable's own location.
6772 (map_w32_filename): Handle filenames that are longer than
6773 MAX_PATH.
6774 (sys_socket): Install socket inheritance bug fix from 20.7.
6775
6776 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
6777 here via blockinput.h).
6778
a027a91b
SM
67792000-07-05 Stefan Monnier <monnier@cs.yale.edu>
6780
e4b31601
SM
6781 * w32menu.c (w32_menu_display_help):
6782 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
6783
6784 * keyboard.h (show_help_echo): Declare.
6785
6786 * keyboard.c (show_help_echo): New function, extracted from read_char.
6787 Feval its `msg' argument if it's a cons cell.
6788 (read_char): Use it.
4cf8d9d5 6789 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 6790
178c5d9c 6791 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 6792 (note_tool_bar_highlight, XTread_socket):
178c5d9c 6793 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
6794 (dos_rawgetc):
6795 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
6796 (note_tool_bar_highlight, w32_read_socket):
6797 Do not gratuitously ignore non-string `help-echo' properties.
6798
88d75730
GM
67992000-07-05 Gerd Moellmann <gerd@gnu.org>
6800
969f7e79
GM
6801 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
6802
71201b00
GM
6803 * window.c (delete_all_subwindows): Reset Vwindow_list.
6804
88d75730
GM
6805 * xterm.c (x_append_glyph, x_append_composite_glyph)
6806 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
6807 changes in struct glyph starting 1999-12-27. Some bit-fields of
6808 struct glyph were not set, which made glyphs unequal when compared
6809 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
6810 effects were the result. This also depended on the contents of
6811 memory returned by xmalloc. If flickering happens again, activate
6812 the code in clear_glyph_row that's in #if 0. If the flickering is
6813 gone with that, chances are that it is caused by something
6814 similar.
6815
6816 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 6817
88d75730
GM
6818 * dispextern.h: Add some comments.
6819
6820 * window.c (add_window_to_list): Add parameter LIST.
6821 (window_list): Order list so that, for each frame, windows are
6822 in canonical order, and so that frames appear in the list in
6823 the order given by Vframe_list.
6824 (next_window): Reverse the handling of NEXT_P.
6825
53654733
GM
68262000-07-04 Gerd Moellmann <gerd@gnu.org>
6827
87efd256
GM
6828 * window.c (Vwindow_list): New variable.
6829 (make_window, delete_window): Set Vwindow_list to nil.
6830 (check_window_containing): New function.
6831 (window_from_coordinates): Rewritten.
6832 (add_window_to_list, window_list, candidate_window_p)
6833 (decode_next_window_args, next_window): New functions.
6834 (Fnext_window, Fprevious_window): Rewritten in terms of
6835 next_window.
6836 (Fwindow_list): New function.
6837 (Fother_window): Cleaned up.
6838 (foreach_window): Add a longer "variable argument list". Let
6839 callback function return 0 to indicate that cycling over windows
6840 should stop.
6841 (foreach_window_1): Likewise.
6842 (freeze_window_start): Return int.
6843 (init_window): New function.
6844 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
6845
6846 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
6847 input_event with bzero.
6848 (main): Call init_window.
6849
53654733
GM
6850 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
6851 a menu filter.
6852
4a8c194f
KH
68532000-07-04 Kenichi Handa <handa@etl.go.jp>
6854
6855 * composite.h (make_composition_value_copy): Extern it.
6856
6857 * composite.c (make_composition_value_copy): New function.
6858
6859 * editfns.c (Fformat): While copying text properties, make each
6860 composition property value a copy.
6861
6862 * fns.c (concat): While copying text properties, make each
6863 composition property value a copy.
6864
831a6cb0
GM
68652000-07-03 Gerd Moellmann <gerd@gnu.org>
6866
2f516940
GM
6867 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
6868
178c5d9c 6869 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
6870 marked already.
6871
831a6cb0
GM
6872 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
6873 include those frames as candidates which have their focus
6874 redirected to the minibuffer frame.
6875
d9c4f922
SM
68762000-07-03 Stefan Monnier <monnier@cs.yale.edu>
6877
6878 * fns.c (Fputhash): Return `value' rather than nil.
6879
3780bc22
GM
68802000-06-30 Gerd Moellmann <gerd@gnu.org>
6881
97d176db
GM
6882 * frame.c (next_frame): Don't check focus redirection in case
6883 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
6884 unless their focus is redirected, which contradicts the
6885 specification of next-frame, and leads to infinite loops in
6886 certain situations when cycling through windows with next-window.
6887
dca9961d
KH
68882000-06-30 Kenichi Handa <handa@etl.go.jp>
6889
6890 * coding.c (code_convert_region): Even if the length of text is
6891 zero, try to convert it if coding->type is coding_type_ccl.
6892 (decode_coding_string, encode_coding_string): Likewise.
6893
d5483ab1
GM
68942000-06-28 Gerd Moellmann <gerd@gnu.org>
6895
af5c25e1 6896 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 6897 the display if windows_or_buffers_changed.
af5c25e1
GM
6898
6899 * dispnew.c (struct row_entry): New structure.
6900 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
6901 (row_table_size, old_lines, new_lines, old_lines_size)
6902 (new_lines_size, run_pool, runs_size, runs): New variables.
6903 (add_row_entry): New function.
6904 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 6905 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
6906 holding them in local variables. Use a larger hash table whose
6907 size depends on glyph matrix sizes. Don't use bzero to clear the
6908 hash table; instead, clear used slots only.
6909
6910 * fns.c (next_almost_prime): Make it externally visible.
6911
6912 * lisp.h (next_almost_prime): Add prototype.
6913
d5483ab1
GM
6914 * s/isc4-0.h (sigunblock): Define.
6915
6916 * s/sco5.h (sigunblock): Define.
6917
93e40f40
DL
69182000-06-27 Dave Love <fx@gnu.org>
6919
6920 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
6921 (moved to osf5-0.h).
6922 [!NOT_C_CODE]: Protect string.h stuff.
6923
6924 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
6925 (sys_siglist, NSIG): Definitions moved here from osf1.h.
6926
3c4b7685
GM
69272000-06-27 Gerd Moellmann <gerd@gnu.org>
6928
97d176db 6929 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
6930 below the last line from the needed window height.
6931
32cad0aa
SM
69322000-06-26 Stefan Monnier <monnier@cs.yale.edu>
6933
6934 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
6935 (Fwidget_get): Use it.
6936 (syms_of_fns): Defsubr it.
6937
2c69ced2
GM
69382000-06-26 Gerd Moellmann <gerd@gnu.org>
6939
178c5d9c 6940 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
6941 display info for XIM.
6942 (xim_open_dpy): Likewise.
6943 (xim_close_dpy): Don't free the display info's XIM.
6944
6945 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
6946
6947 * config.in (USE_XIM): New define.
6948
3fc720e4
GM
6949 * keymap.c (get_keyelt): For menu-items containing a `:filter
6950 FILTER', apply FILTER to the menu-item's definition to get the
6951 real definition to use.
6952
6953 * lisp.h (QCfilter): External declaration.
6954
2c69ced2
GM
6955 * xfns.c (Fimage_size): New function.
6956 (syms_of_xfns): Defsubr it.
6957
f978b2a2
AS
69582000-06-26 Andreas Schwab <schwab@suse.de>
6959
6960 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
6961 Fstring_as_unibyte.
6962
94cc7892
DL
69632000-06-25 Dave Love <fx@gnu.org>
6964
6965 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag,
6966 tgetnum.
6967
6968 * Makefile.in (blockinput.h): Depend on atimer.h.
6969 (atimer.h): Depend on systime.h.
6970
6971 * blockinput.h: Protect against multiple inclusion. Include
6972 atimer.h.
6973
6974 * atimer.h: Protect against multiple inclusion. Include
6975 systime.h.
6976
6977 * lisp.h (swap_in_global_binding): Declare.
6978
b8c24556
KR
69792000-06-24 Ken Raeburn <raeburn@gnu.org>
6980
6981 * process.c (Fopen_network_stream): Turn off atimers for duration
6982 of call to connect. (Patch from Gerd.)
6983
8cf8560b
DL
69842000-06-23 Dave Love <fx@gnu.org>
6985
511c7541
DL
6986 * ralloc.c: Maybe include unistd.h
6987
8cf8560b
DL
6988 * emacs.c (setgrp): Undefine before defining.
6989 (malloc_warning, set_time_zone_rule, index): Prototype.
6990
6991 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
6992 HAVE_STRUCT_TIMEZONE.
6993
6994 * s/osf1.h: Move string.h hack here from alpha.h and make it
6995 conditional.
6996 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
6997 _XOPEN_SOURCE.
6998 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
6999 (SOCKLEN_TYPE): Don't define.
7000
7001 * m/alpha.h: Remove string.h hack.
7002
7003 * s/osf5-0.h: New file.
7004
7005 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
7006 include time.h, done by systime.h.
7007 [__FreeBSD__]: Remove redundant includes.
7008
3fc720e4 7009 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
7010 (delete_temp_file): Return Qnil to avoid warning.
7011
7012 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
7013
7014 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
7015 HAVE_X_WINDOWS.
7016
7017 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
7018
7019 * composite.h (compose_text): Declare.
7020
7021 * xterm.c: Don't include sys/types.h unconditionally. Don't
7022 protect its inclusion with !USG (following xmenu.c).
7023
ea055732
GM
70242000-06-23 Gerd Moellmann <gerd@gnu.org>
7025
7026 * xfns.c (x_create_tip_frame): Initialize frame's colors like
7027 in x_create_frame.
7028
74b01b80
EZ
70292000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
7030
7031 * coding.c (decode_eol_post_ccl): Special handling for undecided
7032 and inconsistent EOL types.
7033
64f3a166
GM
70342000-06-22 Gerd Moellmann <gerd@gnu.org>
7035
16cf31f7
GM
7036 * xrdb.c (x_load_resources): Add default resource for scroll bar's
7037 trough color and main window's background color.
7038
178c5d9c 7039 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events
16cf31f7
GM
7040 differently.
7041
7042 * xterm.h (Xt_app_con): External declaration.
7043
7044 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 7045
486a103d
GM
7046 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
7047
64f3a166
GM
7048 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
7049 (handle_invisible_prop): Record the start of invisible text in
7050 it->add_overlay_start.
7051 (struct overlay_entry): Add member `overlay'.
7052 (handle_overlay_change): Simplify.
7053 (next_overlay_string): After having processed overlay strings at the
7054 end of the buffer, record that fact in
7055 it->overlay_strings_at_end_processed_p.
7056 (compare_overlay_entries): If before- and after-strings come
7057 from the same overlay, let before-strings come first.
7058 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
7059 (load_overlay_strings): Take it->add_overlay_start into account
7060 when adding overlay strings.
7061
7062 * dispextern.h (struct it): Add member add_overlay_start.
7063
bb746ea6
DL
70642000-06-22 Dave Love <fx@gnu.org>
7065
7066 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
7067
7068 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
7069
a8f573f3
KH
70702000-06-22 Kenichi Handa <handa@etl.go.jp>
7071
7072 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
7073 is greater than 0.
7074
9f2bbc92
DL
70752000-06-21 Dave Love <fx@gnu.org>
7076
178c5d9c 7077 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 7078
3ee5041c
SM
70792000-06-21 Stefan Monnier <monnier@cs.yale.edu>
7080
7081 * syntax.c (back_comment): Simplify string-parity counting (with
7082 the added benefit of handling multiple string-styles as long as
7083 they are not intertwined).
7084 Jump to the slow code as soon as a comment starter is found in
7085 a "string_lossage" position. Fixes the case: " /* " /* " */.
7086
4c343001
DL
70872000-06-21 Dave Love <fx@gnu.org>
7088
7089 * Makefile.in: Use GETLOADAVG_LIBS.
7090
7091 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
7092 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
7093
e6365855
SM
70942000-06-20 Stefan Monnier <monnier@cs.yale.edu>
7095
7096 * syntax.c (describe_syntax): Recognize the `n'estable bit.
7097 (Fforward_comment, scan_lists):
7098 Check the comstyle of single-char comment-starters.
7099 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
7100 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
7101 Check the comstyle of single-char comment-starters.
7102 Clarify control-flow around the Scomment case.
e6365855 7103
5700d2cc
DL
71042000-06-20 Dave Love <fx@gnu.org>
7105
d355bd8a
SM
7106 * fns.c (make_hash_table, maybe_resize_hash_table):
7107 Cast arg of next_almost_prime.
5700d2cc 7108
178c5d9c 7109 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
7110
7111 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
7112 and unistd.h.
7113
4a27bdfb
GM
71142000-06-20 Gerd Moellmann <gerd@gnu.org>
7115
a61d762c
GM
7116 * keyboard.c (adjust_point_for_property): Check if display
7117 property should be treated as intangible by looking at its
7118 value.
7119
178c5d9c 7120 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
7121 (display_prop_intangible_p): New functions.
7122
7123 * dispextern.h (display_prop_intangible_p): Add prototype.
7124
7125 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 7126
4a27bdfb
GM
7127 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
7128 argument to sigprocmask.
7129
7130 * s/sco5.h (sigblock): Redefined to pass a pointer as second
7131 argument to sigprocmask.
7132
7133 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
7134 sigprocmask_set, and pass a pointer to it to sigprocmask.
7135
7136 * sysdep.c (sigprocmask_set): New variable.
7137
7138 * fileio.c (make_temp_name): Don't use `%s' in string passed to
7139 report_file_error.
7140
427ec082
SS
71412000-06-20 Sam Steingold <sds@gnu.org>
7142
7143 * xrdb.c: Don't declare xmalloc, xrealloc.
7144
8972fe79 71452000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
7146
7147 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
7148 (re_comp): Cast gettext return value to avoid complaints when
7149 !HAVE_LIBINTL.
7150
074b6efe
DL
71512000-06-20 Dave Love <fx@gnu.org>
7152
f85c008a
DL
7153 * m/stride.h, m/mips.h: Don't define HAVE_GETWD,
7154 HAVE_GETTIMEOFDAY.
7155
5700d2cc 7156 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 7157
d355bd8a 7158 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
7159
7160 * m/alpha.h: Don't declare xmalloc, xrealloc.
7161
0af4f205
DL
7162 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
7163
7164 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
7165
7166 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
7167
7168 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
7169 HAVE_GETWD.
7170
074b6efe
DL
7171 * keyboard.h (poll_for_input_1): Declare.
7172
7173 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
7174
7175 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
7176
7177 * doprnt.c: Don't declare xmalloc, xrealloc.
7178
7179 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
7180 (getenv, ctime, getwd): Removed.
7181 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
7182
7183 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
7184 x_set_tool_bar_lines.
7185
7186 * config.in: Add HAVE_GETWD. Move some definitions above
7187 machine/system includes.
7188
68a5e97b
KH
71892000-06-20 Kenichi Handa <handa@etl.go.jp>
7190
95417e1e
KH
7191 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
7192
68a5e97b
KH
7193 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
7194 contain information about ENCODING.
7195
7196 * fontset.c (FONTSET_ASCII): Use the first element of char table
7197 for an ASCII font, not defalt slot.
7198 (fontset_ref_via_base): If FONTSET doesn't contain information for
7199 C, try the default fontset.
7200 (make_fontset): Don't copy the default fontset.
7201 (fontset_font_pattern): Likewise.
7202 (accumulate_font_info): If ELT is nil, use the corresponding
7203 element in the default fontset.
7204
3b4fa1b2
DL
72052000-06-19 Dave Love <fx@gnu.org>
7206
943e731c
DL
7207 * syntax.c (Fparse_partial_sexp): Doc fix.
7208
7209 * regex.h: Test PROTOTYPES as well as __STDC__.
7210
3b4fa1b2
DL
7211 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
7212 errno, strerror. Put text after #endif in comment.
7213
7214 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for
7215 pcc).
7216
7217 * xterm.c (x_frame_of_widget): Likewise.
7218
cdf0357b
GM
72192000-06-19 Gerd Moellmann <gerd@gnu.org>
7220
7221 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
7222 to Vfundamental_mode_abbrev_table.
7223
7224 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
7225 bogus objects are marked. This slows down GC by ~80 percent, but
7226 it might be worth trying when debugging GC-related problems.
7227 This feature requires conservative stack marking to be enabled.
7228
7229 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
7230 returns XLookupChars, reset `modifiers' to zero.
7231
998e9f8c
DL
72322000-06-19 Dave Love <fx@gnu.org>
7233
7234 * mktime.c: Unprotoized.
7235
18e21ce8 72362000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
7237
7238 * data.c (set_internal): If variable is frame-local,
7239 store the new value immediately into the frame parameter alist.
7240
140c4ac6
KR
72412000-06-19 Ken Raeburn <raeburn@gnu.org>
7242
14358466
KR
7243 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
7244 in the custom handler pointer.
7245
140c4ac6
KR
7246 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
7247 value, or checks for CHAR_META can fail when Lisp_Object is a
7248 union type.
7249 * keymap.c (get_keyelt): Likewise.
7250
10d7bf84
KH
72512000-06-19 Kenichi Handa <handa@etl.go.jp>
7252
7253 * ccl.h (struct ccl_program): New member eol_type.
7254 (struct ccl_spec): New member cr_carryover.
7255
7256 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
7257 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
7258
7259 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
7260 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
7261 (decode_eol_post_ccl): New function.
7262 (decode_coding): Don't detect EOL format here for CCL based coding
7263 systems.
7264 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
7265 decode_eol_post_ccl after running the CCL program.
7266 (code_convert_region): Don't detect EOL format here for CCL based
7267 coding systems.
7268 (decode_coding_string): Likewise.
7269
52e386c2
KR
72702000-06-18 Ken Raeburn <raeburn@gnu.org>
7271
7272 * charset.c (update_charset_table): Use XINT on "iso_final_char"
7273 when treating it as an integer.
7274
7275 * coding.h (encode_coding_string): Declare.
7276
7277 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
7278 it as an integer.
7279
7280 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
7281 "xkeymap" to avoid shadowing the "enum map_type" value that needs
7282 to be passed to get_local_map.
7283
7284 * sound.c (Fplay_sound): Don't call make_number on
7285 Frun_hook_with_args count argument.
7286
7287 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
7288 for lisp objects in X event structure data field, when lisp
7289 objects are represented with unions.
7290 (x_scroll_bar_to_input_event): Ditto.
7291
b357b9d4
KR
72922000-06-16 Ken Raeburn <raeburn@gnu.org>
7293
7294 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
7295 termination of string. Fix sense of test whether
7296 Vline_number_display_limit is an integer.
b357b9d4 7297
a871441d
GM
72982000-06-16 Gerd Moellmann <gerd@gnu.org>
7299
a9021acd
GM
7300 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
7301 only if HAVE_X_WINDOWS.
7302
6344985d
GM
7303 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
7304 of titles.
7305
427ec082 7306 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
7307 out of bounds.
7308
228b083e
EZ
73092000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
7310
7311 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
7312 of its headers.
7313
c25b53a2
KH
73142000-06-15 Kenichi Handa <handa@etl.go.jp>
7315
7316 * coding.c (decode_coding_emacs_mule): Always set src_base at the
7317 start of the while loop.
7318
a6981b11
GM
73192000-06-15 Gerd Moellmann <gerd@gnu.org>
7320
e9924e52
GM
7321 * atimer.c (alarm_signal_handler): Add forward declaration.
7322
a6981b11
GM
7323 * data.c (set_internal): Remove debug code.
7324
25fa6deb
GM
73252000-06-14 Gerd Moellmann <gerd@gnu.org>
7326
dce6b995
GM
7327 * Makefile.in (bootstrap-temacs): Add `-I../src'.
7328
9f817ea4
GM
7329 * unexec.c (toplevel) [COFF]: Include coff.h.
7330
7331 * s/lynxos.h: New file.
7332
7333 * keymap.c (Fsingle_key_description): Enclose function key and
7334 event symbol names in angle brackets.
7335
8a4e3c0c
GM
7336 * xdisp.c (setup_echo_area_for_printing): Call
7337 message_log_maybe_newline if message_buf_print is not set.
7338
7339 * print.c (printchar, strout): Don't check message_buf_print
427ec082 7340 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
7341 function does something useful even when message_buf_print is
7342 already set.
7343
25fa6deb
GM
7344 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines): New
7345 variables.
7346 (ensure_echo_area_buffers): Initialize echo buffer's
7347 truncate lines setting to nil.
7348 (with_echo_area_buffer): Don't set the echo buffer's truncate
7349 lines setting here.
8a4e3c0c 7350 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
7351 of message_truncate_lines.
7352 (resize_mini_window): Handle case that lines are truncated.
7353 (syms_of_xdisp): Initialize Qmessage_truncate_lines. DEFVAR_BOOL
7354 message-truncate-lines.
7355
7356 * keyboard.c (read_char): Bind message-truncate-lines to t
7357 while displaying a help-echo.
7358
7359 * lisp.h (Qmessage_truncate_lines): External declaration.
7360
163dcff3
GM
73612000-06-13 Gerd Moellmann <gerd@gnu.org>
7362
1681ead6
GM
7363 * xdisp.c (Vline_number_display_limit): Renamed from
7364 line_number_display_limit.
7365 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
7366 Extend documentation string. Initialize
7367 Vline_number_display_limit to nil meaning no limit.
7368 (decode_mode_spec): Use Vline_number_display_limit with its new
7369 meaning.
7370
163dcff3
GM
7371 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
7372
18e21ce8 73732000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
7374
7375 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 7376
163dcff3
GM
7377 * xfns.c (x_set_frame_parameters): Comment fix.
7378
7379 * frame.c (store_frame_param): Call swap_in_global_binding if the
7380 variable's current binding was chosen based on this frame.
7381
7382 * data.c (swap_in_global_binding): New function.
7383
a704139d
EZ
73842000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
7385
7386 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
7387 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
7388
9b6610db
EZ
73892000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
7390
7391 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
7392
c68833d2
JR
73932000-06-12 Jason Rumney <jasonr@gnu.org>
7394
7395 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
7396
7397 * w32.h (EMACS_W32_H): Renamed from _NT_H_
7398
7399 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
7400
7401 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
7402
ed1056b3
GM
74032000-06-12 Gerd Moellmann <gerd@gnu.org>
7404
7405 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
7406 (syms_of_xfaces): Defsubr Sdump_colors.
7407 (x_free_colors): Don't treat b&w specially on default visual.
7408 (x_free_dpy_colors): New function.
7409 (free_face_colors): Don't check visual class; it's done
7410 in x_free_colors.
7411
7412 * xterm.c (x_frame_of_widget): New function.
7413 (x_alloc_nearest_color_for_widget): Use it.
7414 (x_copy_dpy_color): New function.
7415 (x_destroy_window): Free various colors.
7416
5050a2ef
KH
74172000-06-12 Kenichi Handa <handa@etl.go.jp>
7418
7419 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
7420
7421 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
7422
7423 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
7424
7425 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
7426
7427 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
7428
fb1b041d
DL
74292000-06-11 Dave Love <fx@gnu.org>
7430
7431 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
7432
ff96b5f4
EZ
74332000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
7434
7435 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
7436
db8eeecd
GM
74372000-06-11 Gerd Moellmann <gerd@gnu.org>
7438
ed1056b3 7439 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
7440 to `XEvent *'.
7441
49b71c5f
KH
74422000-06-10 Kenichi Handa <handa@etl.go.jp>
7443
c479bd55
KH
7444 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
7445 (regex_compile): Fix the code for handling the case of single byte
7446 char and multibyte char being mixed in a range within [...].
7447
ff6a65c2
KH
7448 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
7449 and dst_multibyte members of coding.
7450
49b71c5f
KH
7451 * charset.c (update_charset_table): Update the table
7452 bytes_by_char_head.
7453 (init_charset_once): Initialize elements of bytes_by_char_head to
7454 1 except for leading codes for private charases.
7455
7456 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
7457 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte
7458 sequence.
7459
9e80b57d
KR
74602000-06-09 Ken Raeburn <raeburn@gnu.org>
7461
7462 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
7463 access the data it doesn't point to.
7464
f83fe4b4
GM
74652000-06-08 Gerd Moellmann <gerd@gnu.org>
7466
7467 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 7468 will be translated to a switch-frame event when reading the
f83fe4b4
GM
7469 event queue. This is necessary because Emacs otherwise won't
7470 perform a switch-frame to a new frame until some other event, for
7471 example a keystroke event, forces it to do so. This has various
7472 effects, one visible being that the cursor of a frame created with
7473 C-x 5 2 or switched to with a window manager key binding like
7474 A-TAB stays hollow because selected_window isn't on the newly
7475 focused frame until the switch-frame is performed.
7476
7477 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
7478 generating a switch-frame event if necessary.
7479
7480 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
7481
7482 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
7483 it's an integer.
7484
0890801b
KH
74852000-06-08 Kenichi Handa <handa@etl.go.jp>
7486
7487 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a
7488 charset.
7489
173cbca8
GM
74902000-06-07 Gerd Moellmann <gerd@gnu.org>
7491
3091c2a6
GM
7492 * window.c (displayed_window_lines): Take empty lines at
7493 the bottom of a window into account.
427ec082 7494
f38952fe
GM
7495 * window.c (displayed_window_lines): New function.
7496 (Fmove_to_window_line): Use displayed_window_lines to determine
7497 the number of lines to move, instead of using the window's height.
7498
7499 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
7500 to stop reading, even if the form read sets point to a different
7501 value when evaluated.
7502
427ec082 7503 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
7504 put the cursor.
7505
6ba6c818
KH
75062000-06-07 Kenichi Handa <handa@etl.go.jp>
7507
7508 * fileio.c (e_write): Free composition data if stored in
7509 coding->cmp_data.
7510
5f1aea9a
GM
75112000-06-06 Gerd Moellmann <gerd@gnu.org>
7512
666852af
GM
7513 * xdisp.c (display_line): Set row's and iterator's
7514 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
7515 Set cursor even if row ends in the middle of a character.
7516 (dump_glyph_row): Print values of new flags.
7517 (redisplay_window) <cursor movement in unchanged window>: When
7518 point has been moved forward, and PT is at the end of the cursor
7519 row, don't place the cursor in the next row if the cursor row ends
7520 in the middle of a character or at ZV.
7521
7522 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
7523 (struct glyph_row): Add starts_in_middle_of_char_p and
7524 ends_in_middle_of_char_p.
7525 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
7526 ends_in_middle_of_char_p flag.
7527 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
7528
d13f3e2e
GM
7529 * term.c (append_glyph): Revert change of 2000-06-06.
7530
7531 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
7532 padding glyph not fitting on line as whole character not
7533 fitting on line.
7534
5f1aea9a
GM
7535 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
7536 this isn't true for images with `:ascent 100'.
7537
10cda9b0
KH
75382000-06-06 Kenichi Handa <handa@etl.go.jp>
7539
ed00559d
KH
7540 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
7541 as modified if it is originally unmodified.
7542
10cda9b0
KH
7543 * term.c (encode_terminal_code): Change the way to check if
7544 terminal coding does any conversion.
7545 (append_glyph): Set glyph->pixel_width correctly.
7546
7547 * xdisp.c (display_line): While checking line continuation, pay
7548 attention to a padding glyph.
7549
1969fae2
GM
75502000-06-05 Gerd Moellmann <gerd@gnu.org>
7551
7552 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
7553
162ccef4
DL
75542000-06-05 Dave Love <fx@gnu.org>
7555
f19f32dd
DL
7556 * xdisp.c: Include fontset.h.
7557
7558 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
7559
7560 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
7561
7562 * dispnew.c: Conditionally include term.h.
7563
7564 * coding.h: Declare code_convert_string_norecord.
7565
7566 * frame.h (struct frame): Use volatile unconditionally.
7567
7568 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
7569
7570 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
7571
7572 * systime.h: Protect against multiple inclusion.
7573 (timezone) [USG5_4]: Define as time_t.
7574
7575 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
7576 (Foptimize_char_table, make_temp_name): Declare.
7577
7578 * Makefile.in (xdisp.o): Depend on fontset.h.
7579
7580 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
7581
7582 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
7583 (Foptimize_char_table, make_temp_name): Declare.
7584
427ec082 7585 * s/irix4-0.h:
162ccef4
DL
7586 * s/irix5-0.h:
7587 * s/netbsd.h: Don't define autoconfiscated MATHERR.
7588
2082fe81
DL
75892000-06-02 Dave Love <fx@gnu.org>
7590
7591 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
7592
dcf671d2
GM
75932000-06-02 Gerd Moellmann <gerd@gnu.org>
7594
7595 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 7596 result face, set flags in that face indicating that colors may not
dcf671d2
GM
7597 be freed.
7598
7599 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
7600 glyph, use the ASCII NUL character to determine the face.
7601
d42122a3
DL
76022000-06-02 Dave Love <fx@gnu.org>
7603
7604 * sysdep.c: Conditionally include stdlib.h, unistd.h.
7605 (VFORK_RETURN_TYPE): Remove.
427ec082 7606
d42122a3
DL
7607 * config.in: Add NO_MATHERR.
7608
dd432f16
DL
76092000-06-01 Dave Love <fx@gnu.org>
7610
90aa4ea8
DL
7611 * cmds.c (internal_self_insert): Don't check
7612 Vbefore_change_function, Vafter_change_function.
7613
7614 * insdel.c (signal_before_change, signal_after_change): Likewise.
7615
7616 * buffer.c (Vbefore_change_function, Vafter_change_function):
7617 Variables and their initializations deleted.
7618
2330c9d4
DL
7619 * callint.c (Fcall_interactively): Doc fix.
7620
dd432f16
DL
7621 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
7622
bf9e8804
DL
76232000-05-31 Dave Love <fx@gnu.org>
7624
7625 * textprop.c: Revert last change -- duplicated.
7626
3694b4ab
GM
76272000-05-31 Gerd Moellmann <gerd@gnu.org>
7628
7629 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
7630 in #if 0.
7631
7632 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
7633
f14156cd
JR
76342000-05-31 Jason Rumney <jasonr@gnu.org>
7635
8119aab8
JR
7636 * search.c (Fre_search_forward, Fre_search_backward)
7637 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
7638
f14156cd
JR
7639 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
7640
4aab9be3
JR
76412000-05-30 Jason Rumney <jasonr@gnu.org>
7642
7643 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
7644 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
7645
7646 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type
7647 member.
7648
7649 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
7650 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
7651 expand a nil default_filename.
7652
7653 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
7654 pointer to glyph_to_pixel_coords, not a frame.
7655
7656 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
7657 coding.h to dependencies.
7658
7659 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
7660
7661 * w32console.c (glyph_to_pixel_coords): Change first parameter to
7662 window pointer to be consistent with w32term.c and xterm.c.
7663
7664 * w32fns.c: Format and doc changes to bring closer to xfns.c.
7665 (VIETNAMESE_CHARSET): Define if not defined in system headers.
7666 (Qline_spacing, Qcenter): New variables.
7667 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
7668 (x_set_line_spacing): New function.
7669 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT
7670 macros.
7671 (x_specified_cursor_type): New function.
7672 (x_set_cursor_type): Use it.
7673 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
7674 and icon strings.
7675 (validate_x_resource_name, x_get_resource_string): Measure lengths
7676 of external strings in bytes.
7677 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
7678 GetTextExtentPoint32 with NULL title.
7679 (Fx_create_frame): Initialize Qline_spacing.
7680 (w32_load_system_font): Initialize font->double_byte_p.
7681 (x_to_w32_charset): Use Vw32_charset_info_alist.
7682 (Image, busy cursor, tooltip functions): Merged changes from
7683 xfns.c. Not yet functional on Windows.
7684
7685 * w32gui.h (W32FontStruct): Add double_byte_p member.
7686
7687 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
7688 (emacs_button_translation): Use it.
7689 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
7690 in `mask' to be set.
7691
7692 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
7693 menu strings.
7694
7695 * w32term.c: Format and doc changes to bring closer to xterm.c.
7696 (w32_char_font_type): New enum.
7697 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
7698 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
7699 (w32_encode_char): New function.
7700 (x_encode_char): Removed.
7701 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
7702 x_encode_char and w32_font_is_double_byte.
7703 (x_produce_image_glyph): Use image_ascent.
7704 (x_produce_glyphs): Use new version of w32_per_char_metric and
7705 handle NULL return value. Allow extra line spacing.
7706 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
7707 (w32_get_glyph_overhangs): Remove unicode_p param. Use
7708 w32_font_type member of glyph instead.
7709 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
7710 (fast_find_position): Make sure not to consider rows not visible
7711 in the window.
7712 (w32_read_socket) [WM_MENUSELECT]: Cannot call
7713 w32_menu_display_help with input blocked, as it can abort.
7714 (x_display_and_set_cursor): Choose cursor depending
7715 on buffer-local value of cursor_type.
7716 (x_draw_bar_cursor): Add parameter WIDTH.
7717
7718 * w32term.h (CP_DEFAULT): Define.
7719 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
7720
10fc3187
GM
77212000-05-30 Gerd Moellmann <gerd@gnu.org>
7722
7723 * search.c (Fre_search_forward, Fre_search_backward)
7724 (Fposix_search_backward, Fposix_search_forward): Doc fix.
7725
d0555360
KH
77262000-05-30 Kenichi Handa <handa@etl.go.jp>
7727
7728 * coding.c (detect_coding_iso2022): Fix code for checking
7729 CODING_CATEGORY_MASK_ISO_8_2.
7730
f1ad044f
SM
77312000-05-29 Stefan Monnier <monnier@cs.yale.edu>
7732
7733 * regex.c (PREFETCH_NOLIMIT): New function.
7734 (re_match_2_internal): Use it and adjust the end_match_2 logic.
7735
84ec3b4b
GM
77362000-05-29 Gerd Moellmann <gerd@gnu.org>
7737
66254a13
GM
7738 * syntax.c (find_defun_start): Move test for
7739 open_paren_in_column_0_is_defun_start outside of the loop.
7740
49e70dec
GM
7741 * xdisp.c (redisplay_window): Really switch buffers when
7742 displaying mode lines, and temporarily set selected_frame to the
7743 frame of the window that's redisplayed.
7744
84ec3b4b
GM
7745 * xfaces.c (free_realized_faces): Block/unblock input.
7746 (free_realized_multibyte_face): Ditto.
7747
869a3a14
DL
77482000-05-29 Dave Love <fx@gnu.org>
7749
7750 * textprop.c (Qkeymap): New variable.
7751 (syms_of_textprop): Intern it.
7752
7753 * keymap.c: Include intervals.h.
7754 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
7755
7756 * Makefile.in (keymap.o): Depend on intervals.h.
7757
7758 * keyboard.c (menu_bar_items, tool_bar_items)
7759 (Fexecute_extended_command): Deal with `keymap' property.
7760 (read_key_sequence): Track map from `keymap' property as well as
7761 `local_map'.
7762
7763 * intervals.c (get_local_map): Extra arg to allow looking for
7764 `keymap' too.
7765
7766 * intervals.h (map_property): New enum.
7767 (get_local_map): Extra arg using it.
7768 (Qkeymap): Declare.
7769
84ec3b4b 7770 * lisp.h (get_local_map): Don't declare here.
869a3a14 7771
89d0c844
KH
77722000-05-29 Kenichi Handa <handa@etl.go.jp>
7773
7774 * Makefile.in (callproc.o): Depend on composite.h.
7775
7776 * callproc.c: Include composite.h.
7777 (Fcall_process): Handle composition correctly.
7778
7779 * coding.h (coding_allocate_composition_data): Extern it.
7780 (coding_restore_composition): Likewise.
7781
7782 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
7783 yet allocated, finish decoding with result
7784 CODING_FINISH_INSUFFICIENT_CMP.
7785 (coding_allocate_composition_data): Make it non-static.
7786 (coding_restore_composition): Likewise.
7787
797a084a
EZ
77882000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
7789
7790 * charset.c (syms_of_charset): Revert last change.
7791
cf872af5
EZ
77922000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
7793
7794 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
7795 charsets as unibyte, with 1-column screen width. Sent by Kenichi
7796 Handa.
cf872af5 7797
5b1ae051
EZ
77982000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
7799
7800 * charset.c (syms_of_charset): Set width of character sets
7801 eight-bit-control and eight-bit-graphic to 1 column.
7802
34ec9ebe
GM
78032000-05-26 Gerd Moellmann <gerd@gnu.org>
7804
7805 * config.in (HAVE_SPEED_T): New define.
7806
7807 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
7808 `extern speed_t'.
7809
dd854dc2
DL
78102000-05-26 Dave Love <fx@gnu.org>
7811
7812 * coding.c (shrink_decoding_region): Initialize eol_conversion.
7813
7814 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
7815 (Fsubr_arity): New function.
7816 (syms_of_data): Install them.
7817
ba9f8f95
KH
78182000-05-26 Kenichi Handa <handa@etl.go.jp>
7819
0f3e0672
KH
7820 * charset.c (init_charset_once): Set the table bytes_by_char_head
7821 correctly.
7822
cebefb44
KH
7823 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
7824 the default fontset to what Emacs uses by default.
0f3e0672
KH
7825 (check_registry_encoding): This function deleted.
7826 (Fset_fontset_font): Remove the adhoc condition for the default
7827 fontset. Allow cons in FONTNAME.
cebefb44 7828
0f3e0672
KH
7829 * fns.c (map_char_table): Ignore char-table entries for
7830 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 7831
7a18af49
KR
78322000-05-25 Ken Raeburn <raeburn@gnu.org>
7833
7834 * emacs.c (main): Initialize keyboard syms before initializing
7835 window code, so face names are available.
7836
d2af47df
SM
78372000-05-25 Stefan Monnier <monnier@cs.yale.edu>
7838
7839 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
7840 of an anchor at the beginning of a shy-group.
7841
fc6a6a4e
GM
78422000-05-25 Gerd Moellmann <gerd@gnu.org>
7843
7844 * xdisp.c (handle_invisible_prop): Don't try to skip over
7845 invisible text if end of text is already reached.
7846
005f0d35
DL
78472000-05-25 Dave Love <fx@gnu.org>
7848
02513cdd
DL
7849 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
7850
005f0d35
DL
7851 * coding.c (encode_eol): Add null statement after label.
7852
89f6ca4e
EZ
78532000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
7854
7855 * w16select.c (Fw16_set_clipboard_data): Fix the change from
7856 2000-05-20.
7857
a4e1759e
KH
78582000-05-25 Kenichi Handa <handa@etl.go.jp>
7859
7860 * ccl.c (ccl_driver): Fix previous change.
7861
eacfd7fe
KH
78622000-05-25 Kenichi Handa <handa@etl.go.jp>
7863
46ab33a9
KH
7864 * coding.c (run_pre_post_conversion_on_str): Set point to the
7865 beginning of buffer before calling coding->post_read_conversion.
7866 (decode_coding_string): Give correct args to
7867 run_pre_post_conversion_on_str.
7868 (encode_coding_string): Likewise.
7869
eacfd7fe
KH
7870 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
7871 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
7872 eight-bit-graphic correctly.
7873
f8569325
DL
78742000-05-24 Kenichi HANDA <handa@etl.go.jp>
7875
7876 * fileio.c (Finsert_file_contents): Even if a file is not found,
7877 execute codes for setting up coding system. Call
7878 after-insert-file-functions unconditionally.
7879
04545643
GM
78802000-05-24 Gerd Moellmann <gerd@gnu.org>
7881
7882 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
7883 BSD_PGRPS are not defined.
7884
747d90ea
KH
78852000-05-24 Kenichi Handa <handa@etl.go.jp>
7886
7887 * charset.c (update_charset_table): Accept nil in LONG_NAME and
7888 DESCRIPTION.
7889 (syms_of_charset): Avoid building same strings.
7890
716e3b88
GM
78912000-05-23 Gerd Moellmann <gerd@gnu.org>
7892
7893 * lread.c (Fload): Add a comment about the meaning of
7894 Vuser_init_file being t.
7895
7896 * puresize.h (BASE_PURESIZE): Increase to 675000.
7897
7898 * s/gnu-linux.h (setpgrp): Don't define it here because this
7899 prevents compilation on GNU/Linux systems with glib 2.2.
7900
7901 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
7902 as setpgid.
427ec082 7903
9aeb39fa
EZ
79042000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
7905
7906 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
7907 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
7908 version.
7909 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
7910
29ced61b
KH
79112000-05-23 Kenichi Handa <handa@etl.go.jp>
7912
0574a2ed
KH
7913 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE
7914 unconditionally.
7915
3d80f24d
KH
7916 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
7917
7918 * term.c (encode_terminal_code): Set coding->src_multibyte
7919 properly.
7920
29ced61b
KH
7921 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
7922
d7e00792
KH
79232000-05-22 Kenichi Handa <handa@etl.go.jp>
7924
c9d80d38
KH
7925 * keyboard.c (read_char): Allow character codes 128..255 to be
7926 handled by input-method-function.
7927
d7e00792
KH
7928 * insdel.c (adjust_markers_for_replace): Fix previous change.
7929 (adjust_after_replace): If PREV_TEXT is nil, call
7930 adjust_markers_for_insert, not adjust_markers_for_replace.
7931
087121cc 79322000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 7933
087121cc
GM
7934 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
7935 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
7936 [HAVE_GRANDPT]: Define.
7937 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
7938
7939 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
7940 like SYSV_PTYS.
7941
7942 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
7943
7944 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
7945
c9671f81
KH
79462000-05-20 Kenichi Handa <handa@etl.go.jp>
7947
7948 The following changes are to handle 8-bit characters in a
7949 multibyte buffer/string without facing with byte combining
7950 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
7951 eight-bit-graphic (for 0xA0..0xFF) are introduced.
7952
7953 * Makefile.in (fns.o): Depend on charset.h.
7954
7955 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
7956 convert it to unibyte.
7957 (make_string): Use parse_str_as_multibyte, not chars_in_text.
7958
7959 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
7960 apparent char boundary.
7961 (Fset_buffer_multibyte): Convert 8-bit characters in the range
7962 0x80..0x9F to/from multibyte form.
7963
7964 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
7965 to unibyte.
7966
7967 * callproc.c (Fcall_process): Always encode an argument string if
7968 it is multibyte. Setup src_multibyte and dst_multibyte members of
7969 process_coding properly.
ce75fd23 7970
c9671f81
KH
7971 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
7972 SPLIT_NON_ASCII_CHAR.
7973
7974 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
7975 as is.
7976 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
7977
7978 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New
7979 variables.
7980 (SPLIT_CHARACTER_SEQ): This macro deleted.
7981 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is
7982 valid.
7983 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
7984 and eight-bit-graphic.
7985 (char_to_string): Likewise. Signal an error for too large
7986 character code.
7987 (char_printable_p): Return 0 for 8-bit characters.
7988 (update_charset_table): Update iso_charset_table only when a final
7989 character is non-negative.
7990 (find_charset_in_text): Renamed from find_charset_in_str.
7991 Arguments and return value changed. Callers changed.
7992 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
7993 be -1 if CHARSET is used only internally.
7994 (Fmake_char_internal): Handle new charsets; eight-bit-control and
7995 eight-bit-graphic.
7996 (Fcharset_after): Simplified.
7997 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
7998 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
7999 (multibyte_chars_in_text): Simplified by assuming there's no
8000 invalid multibyte sequence.
8001 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
8002 str_as_unibyte): New functions.
8003 (Fstring): Simpified by assuming that byte combining never
8004 happens.
8005 (init_charset_once): Initialization for
8006 LEADING_CODE_8_BIT_CONTROL.
8007 (syms_of_charset): Intern and staticpro Qeight_bit_control and
8008 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
8009 eight-bit-control and eight-bit-graphic.
8010
8011 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL,
8012 CHARSET_8_BIT_GRAPHIC): New macros.
8013 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
8014 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
8015 (CHARSET_REVERSE_CHARSET): Likewise.
8016 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
8017 eight-bit-graphic.
8018 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
8019 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
8020 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
8021 encounter an invalid multibyte sequence.
8022 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
8023 sequence is always valid.
8024 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
8025 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New
8026 macros.
8027 (CHAR_STRING): For 8-bit characters, call char_to_string.
8028 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
8029 multibyte sequence is always valid.
8030 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
8031 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
8032 str_as_unibyte): Extern them.
8033 (BCOPY_SHORT): Fix a bug.
8034 (CHAR_LEN): This macro deleted. Callers changed to use
8035 CHAR_BYTES.
8036 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
8037 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
8038 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
8039
bd4bde7f 8040 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81
KH
8041 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
8042 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
8043 EMIT_BYTES): New macros.
8044 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
8045 DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
8046 macros deleted.
8047 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
8048 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
8049 check the validity of multibyte sequence.
8050 (decode_coding_emacs_mule): New function.
8051 (encode_coding_emacs_mule): New macro.
8052 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
8053 the source.
8054 (DECODE_ISO_CHARACTER): Just return a character code.
8055 (DECODE_COMPOSITION_START): Set coding->result instead of result.
8056 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
8057 EMIT_CHAR to produced decoded characters. Exit the loop only by
8058 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
8059 block here.
8060 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
8061 only position codes for an invalid character.
8062 (encode_designation_at_bol): Return new destination pointer. 5th
8063 arg DSTP is changed to DST.
8064 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
8065 from the source by ONE_MORE_CHAR. Don't handle the case of last
8066 block here.
8067 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
8068 macros deleted.
8069 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
8070 detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
8071 TWO_MORE_BYTES to fetch a byte from the source.
8072 (encode_eol): Pay attention to coding->src_multibyte.
8073 (detect_coding, detect_eol): Preserve members src_multibyte and
8074 dst_multibyte.
8075 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
8076 (encoding_buffer_size): Set magnification to 3 for all coding
8077 systems that require encoding.
8078 (ccl_coding_driver): For decoding, be sure that the result is
8079 valid multibyte sequence.
8080 (decode_coding): Initialize coding->errors and coding->result.
8081 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
8082 and raw-text, always call decode_eol. Handle the case of last
8083 block here. If not coding->dst_multibyte, convert the resulting
8084 sequence to unibyte.
8085 (encode_coding): Initialize coding->errors and coding->result.
8086 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
8087 and raw-text, always call encode_eol. Handle the case of last
8088 block here.
8089 (shrink_decoding_region, shrink_encoding_region): Detect cases
8090 that we can't skip data more rigidly.
8091 (code_convert_region): Setup src_multibyte and dst_multibyte
8092 members of coding. For decoding, if the buffer is multibyte,
8093 convert the source sequence to unibyte in advance. For encoding,
8094 if the buffer is multibyte, convert the resulting sequence to
8095 multibyte afterward.
8096 (run_pre_post_conversion_on_str): New function.
8097 (code_convert_string): Deleted and divided into the following two.
8098 (decode_coding_string, encode_coding_string): New functions.
8099 (code_convert_string1, code_convert_string_norecord): Call one of
8100 above.
8101 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
8102 MAKE_NON_ASCII_CHAR.
8103 (Fset_terminal_coding_system_internal,
8104 Fset_safe_terminal_coding_system_internal): Setup src_multibyte
8105 and dst_multibyte members.
8106 (init_coding_once): Initialize iso_code_class with new enum
8107 ISO_control_0 and ISO_control_1.
8108
8109 * coding.h (enum iso_code_class_type): Member ISO_control_code is
8110 devided into ISO_control_0 and ISO_control_1.
8111 (struct coding_system): New members src_multibyte, dst_multibyte,
8112 errors, and result. Delete member fake_multibyte.
8113 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
8114 nonzero.
8115 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
8116 nonzero.
8117
8118 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
8119 (Faset): Likewise.
8120
8121 * editfns.c (Fformat): Be sure to convert 8-bit characters to
8122 multibyte form.
8123 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
8124 combining occurs.
8125 (Ftranspose_region): Delete codes for handling byte combining.
8126
8127 * fileio.c (Finsert_file_contents): Setup src_multibyte and
8128 dst_multibyte members of coding. On handling REPLACE on unibyte
8129 buffer, convert the result of decode_coding to unibyte. On
8130 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 8131 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
8132 multibyteness of the source (buffer or string).
8133
8134 * fns.c (concat): Handle 8-bit characters correctly.
8135 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
8136 unibyte in the result.
8137 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
8138 valid multibyte form in the result.
8139 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
8140 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
8141 return -1, signal an error.
8142 (base64_encode_1): New arg MULTIBYTE. Get each character by
8143 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
8144 character is found, return -1.
8145 (Fbase64_decode_region): Delete codes for handling byte-combining.
8146 Treat each decoded byte as a unibyte character.
8147 (Fbase64_decode_string): Return unibyte string.
8148 (Fcompare_strings, concat, string_byte_to_char): Use
8149 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
8150 FETCH_STRING_CHAR_ADVANCE.
8151 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
8152 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
8153
8154 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
8155 SPLIT_NON_ASCII_CHAR.
8156 (fontset_ref_via_base, fontset_set): Likewise
8157
8158 * insdel.c (adjust_markers_for_record_delete): Deleted.
8159 (adjust_markers_for_insert): Argument changed. Caller changed.
8160 (adjust_markers_for_replace): Likewise.
8161 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error,
8162 CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
8163 (copy_text): Delete unused local varialbe c_save. For converting
8164 to multibyte, be sure to make all 8-bit characters in valid
8165 multibyte form.
8166 (count_size_as_multibyte): Handle 8-bit characters correctly.
8167 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
8168 adjust_after_replace, replace_range, del_range_2)
8169 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
8170 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
8171 adjust_after_replace, replace_range, del_range_2) Delete codes for
8172 handling byte combining.
8173 (adjust_before_replace): Deleted.
427ec082 8174
c9671f81
KH
8175 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
8176 SPLIT_NON_ASCII_CHAR.
8177 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
8178 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE
8179 unconditionally.
8180 (Fkey_description): Likewise.
8181
8182 * lread.c (read1): On reading multibyte string, be sure to make
8183 all 8-bit chararacters in valid multibyte form.
8184 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
8185
8186 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
8187 unconditionally.
8188
8189 * process.c (Fstart_process): GCPRO current_dir before calling
8190 Ffind_operation_coding_system. Encode arguments here.
8191 (create_process): Don't encode arguments here. Setup
8192 src_multibyte and dst_multibyte members of struct coding.
8193 (read_process_output): Setup src_multibyte and dst_multibyte
8194 members of struct coding. If the output is to multibyte buffer,
8195 always decode the output of the process. Adjust the
8196 representation of 8-bit characters to the multibyteness of the
8197 output.
8198 (send_process): Setup coding->src_multibyte according to the
8199 multibyteness of the source.
8200
8201 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE
8202 unconditionally.
8203 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
8204 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
8205
8206 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of
8207 CHAR_LEN.
8208
8209 * w16select.c (Fw16_set_clipboard_data): Setup members
8210 src_multibyte and dst_multibyte of coding. Adjusted for the
8211 change for find_charset_in_str.
8212 (Fw16_get_clipboard_data): Likewise.
8213
8214 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
8215 dst_multibyte of coding.
8216 (x_to_w32_font): Likewise.
8217
8218 * w32select.c (Fw32_set_clipboard_data): Setup members
8219 src_multibyte and dst_multibyte of coding. Adjusted for the
8220 change for find_charset_in_str.
8221 (Fw32_get_clipboard_data): Likewise.
8222
8223 * xdisp.c (get_next_display_element): Handle 8-bit characters
8224 correctly.
8225 (next_element_from_display_vector): Use CHAR_BYTES instead of
8226 CHAR_LEN.
8227 (disp_char_vector): Use SPLIT_CHAR instead of
8228 SPLIT_NON_ASCII_CHAR.
8229
8230 * xselect.c (selection_data_to_lisp_data): Setup members
8231 src_multibyte and dst_multibyte of coding. Adjusted for the
8232 change for find_charset_in_str.
8233 (lisp_data_to_selection_data): Likewise.
8234
5f64c9e0
GM
82352000-05-19 Gerd Moellmann <gerd@gnu.org>
8236
2b63d473
GM
8237 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed
8238 buffer.
8239
5f64c9e0
GM
8240 * dispextern.h (Vimage_types): Add extern declaration.
8241
8242 * xdisp.c (Vimage_types): Moved here from xfns.c.
8243 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
8244
8245 * xfns.c (Vimages_types): Moved to xdisp.c.
8246 (syms_of_xfns): Move `image-types' to xdisp.c.
8247
8248 * w32fns.c (Vimage_types): Removed.
8249 (syms_of_w32fns): Remove `image-types'.
8250
813086ea
KH
82512000-05-18 Kenichi Handa <handa@etl.go.jp>
8252
8253 * fns.c (map_char_table): Pay attention to character number of
8254 charset. Check the validity of charset at the first level. For
8255 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
8256 the default value.
8257
8258 * fontset.c: Include "buffer.h".
8259 (fs_load_font): If the face has fontset, record the face ID in
8260 that fontset.
8261 (Finternal_char_font): New function.
8262 (accumulate_font_info): New function.
8263 (Ffontset_info): Rewritten for the new fontset implementation.
8264 (syms_of_fontset): Register Vdefault_fontset in the first element
8265 of Vfontset_table. Include Vdefault_fontset in
8266 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
8267 function.
8268
bdaebbf0
DL
82692000-05-16 Dave Love <fx@gnu.org>
8270
8271 * m/iris5d.h: Deleted -- unused.
8272
cb613bb8
GM
82732000-05-16 Gerd Moellmann <gerd@gnu.org>
8274
b15f3b77
GM
8275 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
8276 `invalid' instead of `illegal'.
8277
8278 * indent.c (Fmove_to_column): When ending within a tab, insert
8279 spaces first so that markers at the end of the tab get adjusted.
8280
835c1b36
GM
8281 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
8282 buffer list that wasn't selected in that frame.
8283
cb613bb8
GM
8284 * filelock.c (get_boot_time): To obtain an 8 char file name, which
8285 is needed on mescaline, use a 2 char prefix, and call
8286 make_temp_name with second arg non-zero.
8287
8288 * fileio.c (make_temp_name): New function, extracted from
8289 Fmake_temp_name.
8290 (Fmake_temp_name): Use it.
8291
f685bea9
EZ
82922000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
8293
8294 * window.c (coordinates_in_window): Subtract 1 when computing
8295 right_x.
8296
a1b8d58b
GM
82972000-05-15 Gerd Moellmann <gerd@gnu.org>
8298
8299 * Makefile.in (lisp): Add env.elc.
8300
8301 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
8302
a265079f
GM
83032000-05-12 Gerd Moellmann <gerd@gnu.org>
8304
8305 * search.c (Freplace_match): Handle case of `\N' in the
8306 replacement when there's no group N.
8307
da4496b6
GM
83082000-05-11 Gerd Moellmann <gerd@gnu.org>
8309
0ace421a
GM
8310 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
8311 of the message to message_dolog.
8312
1172eb8d
GM
8313 * keyboard.c (read_char): Don't clear current message for help
8314 events; let the code handling help events handle this. Change
8315 code detecting help events that should be ignored.
8316
da4496b6
GM
8317 * xdisp.c (handle_single_display_prop): Don't try to set PT if
8318 we're interating over a string.
8319
0623e40f
DL
83202000-05-09 Dave Love <fx@gnu.org>
8321
8322 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
8323 that offset before writing. Move gcpro region past call of
8324 Ffile_regular_p.
8325
bae2503b
DL
83262000-05-04 Dave Love <fx@gnu.org>
8327
8328 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
8329
ec82fb2f
GM
83302000-05-04 Gerd Moellmann <gerd@gnu.org>
8331
8332 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
8333 of inserted characters when BUF equals the current buffer, and PT
8334 is in front of or equal to FROM.
8335
cbf18892
GM
83362000-05-03 Gerd Moellmann <gerd@gnu.org>
8337
4ff40dd0
GM
8338 * xdisp.c (handle_single_display_prop): If display property value
8339 is invalid, or something not supported on the frame, restore
8340 iterator's position to what it was initially. Make sure to return
8341 0 for invalid and unsupported property values.
8342
cbf18892
GM
8343 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
8344 that x_per_char_metric returns null.
8345
1b0672c3
GM
83462000-05-02 Gerd Moellmann <gerd@gnu.org>
8347
576da55d
GM
8348 * xterm.h (struct face): Add forward declaration.
8349 (struct image): Ditto.
8350 (image_ascent): Add prototype.
8351
8352 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
8353 (x_draw_image_relief, x_draw_image_foreground_1): Call function
8354 image_ascent instead of using IMAGE_ASCENT.
8355
8356 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
8357 (IMAGE_ASCENT): Removed.
8358
8359 * xfns.c (Qcenter): New variable.
8360 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
8361 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
8362 (image_ascent): New function.
8363 (lookup_image): Recognize `:ascent center'.
8364 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
8365 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
8366 (xbm_load): Don't set image's ascent here.
8367 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
8368 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
8369 check ascent values here.
8370 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
8371 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
8372 (syms_of_xfns): Initialize Qcenter.
8373
1b0672c3
GM
8374 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
8375 to the limits, increase the limits.
8376
0d7811ed
KH
83772000-05-01 Kenichi Handa <handa@etl.go.jp>
8378
8379 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
8380 Check Vfont_encoding_alist against the full name of the opened
8381 font.
8382
a943a5ca
GM
83832000-04-28 Gerd Moellmann <gerd@gnu.org>
8384
8385 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
8386 taller than the window.
8387
5dba1e29
KH
83882000-04-28 Kenichi Handa <handa@etl.go.jp>
8389
8390 * xfaces.c (realize_x_face): Fix the argument of the second
8391 xassert. BASE_FACE may not be a face for ASCII.
8392
353964e3
GM
83932000-04-27 Gerd Moellmann <gerd@gnu.org>
8394
c76e04a8
GM
8395 * print.c (print_object): Treat print-length < 0 as nil.
8396
8397 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
8398
8399 * s/freebsd.h (TERMCAP_OBJ): Removed.
8400 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
8401
8402 * lread.c (read1): Don't treat period followed by certain
8403 characters as symbol start.
8404
8405 * xfns.c (slurp_file): New function.
8406 (xbm_image_p): Handle case of in-memory XBM files.
8407 (xbm_scan): Rewritten to work on memory buffers instead of files.
8408 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
8409 Work on memory buffers instead of files. If DATA is null test
8410 if buffer looks like an in-memory XBM file.
8411 (xbm_load_image): Renamed from xbm_load_image_file. Work on
8412 memory buffers instead of files.
8413 (xbm_file_p): New function.
8414 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
8415
353964e3
GM
8416 * lread.c (end_of_file_error): New function.
8417 (read1): Call it instead of signaling `end-of-file' directly.
8418
427ec082 8419 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
8420 with Fprinc instead of Fprin1.
8421
24d744ac
KR
84222000-04-26 Ken Raeburn <raeburn@gnu.org>
8423
8424 * window.c (freeze_window_start): Check that minibuffer scroll
8425 window isn't nil before extracting the window structure pointer
8426 from it.
8427
8428 * undo.c (record_delete): If we hit the end of the undo list, stop
8429 picking elements apart.
8430
7464346d
GM
84312000-04-26 Gerd Moellmann <gerd@gnu.org>
8432
8433 * xdisp.c (display_line): If lines are continued, restore
8434 iterator's ascent/descent information to the values before the
8435 first glyph not fitting on the line.
8436
612839b6
GM
84372000-04-25 Gerd Moellmann <gerd@gnu.org>
8438
8439 * xdisp.c (try_window_id) <all changes above window start>: Adjust
8440 positions in glyph matrix. Don't compute new window end
8441 positions.
8442
8443 * dispnew.c (increment_matrix_positions): Renamed from
8444 increment_glyph_matrix_buffer_positions.
8445 (increment_row_positions): Renamed from
8446 increment_glyph_row_buffer_positions.
8447
8448 * dispextern.h: Change names of renamed functions from dispnew.c
8449 in prototypes.
8450
cc181e95
GM
84512000-04-24 Gerd Moellmann <gerd@gnu.org>
8452
abfcc168
GM
8453 * fileio.c (Fdo_auto_save): Create directories for auto-save
8454 list file if necessary.
8455
cc181e95
GM
8456 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
8457 from buffer or frame.
8458 (automatic_hscrolling_p): New variable.
8459 (hscroll_windows): Scroll windows horizontally only if automatic
8460 hscrolling is allowed.
8461 (syms_of_xdisp): New variable `automatic-hscrolling'.
8462
8463 * frame.h (struct frame): Add member extra_line_spacing.
8464
8465 * xfns.c (x_set_line_spacing): New function.
8466 (Fx_create_frame): Set line spacing from resources.
8467 (Qline_spacing): New variable.
8468 (syms_of_xfns): Initialize Qline_spacing.
427ec082 8469
cc181e95
GM
8470 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
8471
8472 * buffer.c (init_buffer_once): Handle extra_line_spacing.
8473 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 8474 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
8475 extra_line_spacing from default value.
8476 (init_buffer_once): Initialize default value of extra_line_spacing.
8477
8478 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
8479 and extra3.
8480
8481 * xterm.c (x_produce_glyphs): Remove reference to struct it's
8482 prompt_width. Add extra line spacing.
8483
8484 * term.c (produce_glyphs): Remove reference to struct it's
8485 prompt_width.
8486
8487 * dispextern.h (struct it): Remove member prompt_width, add
8488 extra_line_spacing.
8489
58827478
GM
84902000-04-22 Gerd Moellmann <gerd@gnu.org>
8491
8492 * dispnew.c (update_frame_line): When writing a whole line, make
8493 sure cursor is in the right row afterwards, otherwise a use of
8494 capability `ch' in cmgoto might leave the cursor in the row below.
8495
25a87f42
GM
84962000-04-21 Gerd Moellmann <gerd@gnu.org>
8497
8498 * lisp.h (struct Lisp_Buffer_Cons): Remove.
8499
8500 * keyboard.c (timer_check): Fix typo in comment.
8501
54edf5c2
KH
85022000-04-21 Kenichi Handa <handa@etl.go.jp>
8503
8504 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
8505 name change: ch -> character.
8506
3a64eef5
GM
85072000-04-20 Gerd Moellmann <gerd@gnu.org>
8508
8509 * keyboard.c (echo_message_buffer): New variable.
8510 (echo_now): Set echo_message_buffer to the echo area buffer used
8511 to display the echo.
8512 (cancel_echoing): Reset echo_message_buffer to nil.
8513 (read_char): Code rewritten that handles canceling an echo or
8514 echoing a dash, respectively.
8515
8516 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
8517 directory doesn't exist.
8518
6142fdcb
DL
85192000-04-19 Dave Love <fx@gnu.org>
8520
8521 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
8522 (concat): Don't allow numeric args.
8523 (Fconcat): Doc change.
6142fdcb 8524
ac6b5352
SM
85252000-04-19 Stefan Monnier <monnier@cs.yale.edu>
8526
8527 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
8528 instead define end_match(1|2) more carefully.
8529 Use GET_CHAR_BEFORE_2 for `begline'.
8530
cb9215e4
GM
85312000-04-19 Gerd Moellmann <gerd@gnu.org>
8532
5e3dac3f
GM
8533 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
8534 on 64-bit systems where NULL is defined as `0'.
8535
8536 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
8537 the `variable argument list' to make it work on Alpha.
8538
cb9215e4
GM
8539 * m/alpha.h (_LP64) [!_LP64]: Define.
8540 (ORDINARY_LINK): Define for NetBSD.
8541
8542 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 8543
f532dca0
DL
85442000-04-19 Dave Love <fx@gnu.org>
8545
c750667e
DL
8546 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
8547 change.
8548
8549 * Makefile.in (LIBS): Don't use.
8550 (GETLOADAVG_OBJ): Define again.
8551 (otherobj): Add GETLOADAVG_OBJ.
8552
f532dca0
DL
8553 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
8554
1c7e22fd
GM
85552000-04-18 Gerd Moellmann <gerd@gnu.org>
8556
f6d3257b
GM
8557 * lread.c (read_filtered_event): Cancel and start busy cursor.
8558
427ec082 8559 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
8560 that the per-character metrics may be null.
8561
e10f64e7
GM
85622000-04-17 Gerd Moellmann <gerd@gnu.org>
8563
0daee095
GM
8564 * buffer.c (clone_per_buffer_values): New function.
8565 (Fmake_indirect_buffer): Add optional argument CLONE. Call
8566 clone_per_buffer_values if CLONE is not nil.
8567
e10f64e7
GM
8568 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
8569
38687d43
DL
85702000-04-16 Dave Love <fx@gnu.org>
8571
8572 * Makefile.in: Remove obsolete localcpp stuff.
8573 (GETLOADAVG_OBJ): Don't define.
8574 (obj): Move LIBOBJS...
8575 (otherobj): ... to here.
8576 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
8577 whitespace-only lines after the continuation (Irix).
8578
c21c7262
GM
85792000-04-14 Gerd Moellmann <gerd@gnu.org>
8580
8581 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
8582
8583 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
8584
314767c0
DL
85852000-04-14 Dave Love <fx@gnu.org>
8586
8587 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
8588 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
8589 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
8590 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
8591 NLIST_STRUCT.
8592
8593 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
8594 autoconfiscated HAVE_GETLOADAVG.
8595
8596 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
8597 BROKEN_MKTIME.
8598
a2522dca
GM
85992000-04-14 Gerd Moellmann <gerd@gnu.org>
8600
8601 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
8602 (fill_in_lock_file_name): Avoid existing files that aren't
8603 links.
8604
33744b5d
DL
86052000-04-14 Dave Love <fx@gnu.org>
8606
c21c7262 8607 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
8608 (INTERVAL_SRC): Convert to make variable.
8609 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
8610 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
8611 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
8612 add LIBOBJS.
8613 (SOME_MACHINE_OBJECTS): Remove interval stuff.
8614 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
8615 (shortlisp): Add facemenu, float-sup, frame.
8616 (SOME_MACHINE_LISP): Remove them from here.
8617 (LIBES): Change unused LDLIBS to autoconf LIBS.
8618
8619 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
8620
9d3d5916
KH
86212000-04-14 Kenichi Handa <handa@etl.go.jp>
8622
8623 * composite.c (update_compositions): If FROM and TO are not in a
8624 valid range, do nothing.
8625
198e3c7a
GM
86262000-04-13 Gerd Moellmann <gerd@gnu.org>
8627
8628 * tparam.c (tparam1): Abort when encountering an unknown
8629 `%'-specifier.
8630
8631 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
8632 terminfo.o.
8633
8634 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
8635 as TERMCAP_OBJ.
8636
055a28c9
EZ
86372000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
8638
8639 * fileio.c (a_write): Remove redundant semi-colons.
8640 (e_write): Return -1 if failed to write all the data.
8641 This fixes the changes made at 1999-12-15.
8642
f5c75033
DL
86432000-04-12 Dave Love <fx@gnu.org>
8644
8645 * fns.c (mapcar1): Test for null vals to support mapc.
8646 (Fmapc): New function.
8647
0c3cfc51
EZ
86482000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
8649
8650 * msdos.c (NUM_MOUSE_BUTTONS): Define.
8651 (IT_frame_up_to_date): Support the buffer local value of
8652 cursor-type, if defined.
8653
33465a31
DL
86542000-04-10 Dave Love <fx@gnu.org>
8655
8656 * editfns.c (preceding-char, following-char): Doc fix.
8657
6ed56568
KR
86582000-04-10 Ken Raeburn <raeburn@gnu.org>
8659
8660 * Makefile.in (temacs): Revert 2000-03-12 change.
8661
7cf80d4e
JR
86622000-04-10 Jason Rumney <jasonr@gnu.org>
8663
8664 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
8665
34f3f342
GM
86662000-04-10 Gerd Moellmann <gerd@gnu.org>
8667
1a1b1895
GM
8668 * xdisp.c (setup_echo_area_for_printing): Choose an echo
8669 area buffer, if it's not set up yet.
8670
34f3f342
GM
8671 * indent.c (compute_motion): Set immediate_quit.
8672
be0dbdab
GM
86732000-04-09 Gerd Moellmann <gerd@gnu.org>
8674
c45be9ac
GM
8675 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New
8676 variable.
8677 (realize_tty_face): Suppress boldness if colors are the inverse of
8678 the default colors, and tty_suppress_bold_inverse_default_colors_p
8679 is set.
8680 (Ftty_suppress_bold_inverse_default_colors): New function.
8681 (syms_of_xfaces): Defsubr it.
8682
be0dbdab
GM
8683 * buffer.c (Frestore_buffer_modified_p): New function.
8684 (syms_of_buffer): Defsubr it.
8685
e8413c3b
KR
86862000-04-08 Ken Raeburn <raeburn@gnu.org>
8687
87f67317
KR
8688 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
8689 charset id (int) argument, not a charset (Lisp_Object).
8690
e8413c3b
KR
8691 * coding.h (code_convert_string): Declare.
8692 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
8693 object, as the fourth argument to code_convert_string.
8694
8695 * fontset.c (make_fontset_for_ascii_face): Use XINT on return
8696 value.
8697 (Fset_fontset_font): Use EQ to compare lisp objects.
8698
7c752c80
KR
86992000-04-05 Ken Raeburn <raeburn@gnu.org>
8700
c0333abc
KR
8701 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
8702 a pointer that looks like a lisp object.
8703 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
8704 zero, instead see whether it's an integer object, since they can't
8705 have intervals.
8706 (GET_INTERVAL_OBJECT): Simply assign to the destination.
8707
7c752c80
KR
8708 * dispnew.c (allocate_matrices_for_frame_redisplay,
8709 direct_output_forward_char): Use X(U)INT and make_number as needed
8710 to convert between (unsigned) int values and lisp integers.
8711 * keyboard.c (read_key_sequence): Likewise.
8712 * lread.c (substitute_object_recurse): Likewise.
8713 * fns.c (concat, hash_lookup, hash_remove): Likewise.
8714 * minibuf.c (do_completion, Fminibuffer_complete_word,
8715 Fminibuffer_completion_help): Likewise.
8716 * term.c (produce_special_glyphs): Likewise.
8717
8718 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
8719 * print.c (print_preprocess, print_object): Likewise.
8720
8721 * search.c (compile_pattern): Use NILP when checking for nil.
8722
74e49b38
KR
8723 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
8724 __OPTIMIZE__]: Provide a GNU C macro version that handles
8725 lisp-object unions.
8726 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
8727 field, to better cope with ENABLE_CHECKING and calls that modify a
8728 Lisp_Object using its old value.
8729
685e5ed2
GM
87302000-04-04 Gerd Moellmann <gerd@gnu.org>
8731
c407c570
GM
8732 * window.c (compare_window_configurations): Signal an error
8733 if parameters C1 or C2 aren't window configurations.
8734
685e5ed2
GM
8735 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
8736 AFTER_POTENTIAL_GC calls around calls to functions that can
8737 signal an error and thus invoke the debugger.
8738
587a49ab
GM
87392000-04-03 Gerd Moellmann <gerd@gnu.org>
8740
62f20204
GM
8741 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
8742 an error if decoding fails.
8743
587a49ab
GM
8744 * keyboard.c (lispy_mouse_names): Variable removed.
8745 (Vlispy_mouse_stem): New variable.
8746 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
8747 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
8748 for any mouse button number. Increase size of mouse_syms and
8749 button_down_location as needed. Call modify_event_symbol with
8750 different arguments.
8751 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
8752 Call modify_event_symbol with different arguments.
8753 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
8754 for any button number. Call modify_event_symbol with different
8755 arguments.
8756 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
8757 Accept a string for NAME_ALIST_OR_STEM.
8758
8759 * lisp.h (larger_vector): Add prototype.
8760
8761 * fns.c (larger_vector): Make externally visible.
8762
8763 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
8764
2d1675e4
SM
87652000-04-02 Stefan Monnier <monnier@cs.yale.edu>
8766
8767 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
8768 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
8769 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
8770 we are between str1 and str2.
8771 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
8772 (PATFETCH): Use `TRANSLATE'.
8773 (PATFETCH_RAW): Fetch multibyte char if applicable.
8774 (PATUNFETCH): Remove.
8775 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
8776 When writing a char, write it directly into the pattern buffer rather
8777 than going needlessly through a temp char-array.
8778 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
8779 multibyte magic and remove the useless `#ifdef emacs'.
8780 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
8781 buffer.
8782
8783 * regex.h (struct re_pattern_buffer): Make field `multibyte'
8784 conditional on `emacs'.
8785
8786 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
8787
cc2d8c6b
KR
87882000-04-01 Ken Raeburn <raeburn@gnu.org>
8789
8790 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
8791 non-union-type versions of XMARK and friends here, because XMARK
8792 and friends won't work on an integer field if NO_UNION_TYPE is not
8793 defined.
8794 (make_number): Define as a function if it's not defined as a
8795 macro.
8796
09654086
KR
8797 * composite.c (run_composite_function): Use NILP when checking for
8798 nil.
8799 (syms_of_composite): Delete local var NARGS, pass an int as first
8800 argument to Fmake_hash_table.
8801
2387b382
KR
8802 * editfns.c (text_property_stickiness): Use NILP to test
8803 Lisp_Object boolean value.
8804 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
8805 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
8806 problems reading from and changing the same lisp value in an
8807 XSETSTRING call.
8808
27660e89
GM
88092000-04-01 Gerd Moellmann <gerd@gnu.org>
8810
8811 * term.c (TN_no_color_video): New variable.
8812 (term_init): Intitialize TN_no_color_video.
8813 (enum no_color_bit): New enumeration.
8814 (MAY_USE_WITH_COLORS_P): New macro.
8815 (turn_on_face): Use it to determine if attributes may be used
8816 combined with colors.
8817
3578db3c
KR
88182000-04-01 Ken Raeburn <raeburn@gnu.org>
8819
8820 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
8821 with int lvalues via casts; instead, just yield lisp object
8822 lvalues.
8823 (enlarge_window): Variable sizep now points to Lisp_Object. Use
8824 proper accessor macros.
8825 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
8826 (grow_mini_window): Fix typo getting int value of root->height.
8827
6fc556fd
KR
8828 * xdisp.c (compute_string_pos): Fix order of arguments to
8829 string_pos_nchars_ahead.
8830 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
8831 count arg to variable-arg routines like Frun_hook_with_args and
8832 Fformat.
587a49ab
GM
8833 (back_to_previous_visible_line_start)
8834 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
8835 fixed-arg routines like Fget_char_property and Fmake_string.
8836 (reconsider_clip_changes): Use XINT when comparing integer lisp
8837 objects, or passing them as int arguments.
587a49ab
GM
8838 (mark_window_display_accurate, insert_left_trunc_glyphs)
8839 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
8840 storing or passing integer values as lisp objects.
8841 (set_cursor_from_row, highlight_trailing_whitespace): Use
8842 INTEGERP, not implicit test against zero, for glyph object.
8843 (try_window_id): Don't use make_number when we want an int value.
8844
8845 * xfaces.c (xlfd_symbolic_value): Make last argument a
8846 Lisp_Object, to be consistent with callers.
8847 (Fbitmap_spec_p): Use XINT to get numeric value of height.
8848 (lface_hash): Apply XFASTINT to lisp values before folding in.
8849
8850 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
8851 fill in window width and height. Pass an int, not a lisp object,
8852 as first arg to Finsert.
8853
6e7b2457
GM
88542000-04-01 Gerd Moellmann <gerd@gnu.org>
8855
610d841e
GM
8856 * xfaces.c (realize_basic_faces): Block input while realizing
8857 the faces.
8858
6e7b2457
GM
8859 * keyboard.c (lispy_mouse_names): Add additional mouse names.
8860
8861 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
8862
aa110c0c
GM
88632000-03-31 Gerd Moellmann <gerd@gnu.org>
8864
8865 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 8866 or ASCII, handle case that per-char metric is null.
aa110c0c 8867
8801a864
KR
88682000-03-30 Ken Raeburn <raeburn@gnu.org>
8869
c6129d7e
KR
8870 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
8871
8801a864
KR
8872 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW,
8873 XSUBR, XBUFFER): Verify correct object type before returning
8874 pointer, using eassert.
8875 * frame.h (XFRAME): Likewise.
8876
8877 * buffer.c (Frename_buffer, Fset_buffer_multibyte,
8878 swap_out_buffer_local_variables, Fmove_overlay): Don't apply
8879 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong
8880 type.
8881 * data.c (set_internal): Likewise.
8882 * dispextern.h (WINDOW_WANTS_MODELINE_P,
8883 WINDOW_WANTS_HEADER_LINE_P): Likewise.
8884 * fileio.c (auto_save_1): Likewise.
8885 * insdel.c (check_markers): Likewise.
8886 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
8887 * undo.c (record_insert): Likewise.
8888 * vmsproc.c (child_sig): Likewise.
8889 * window.c (unshow_buffer, window_loop): Likewise.
8890 * xterm.c (x_erase_phys_cursor): Likewise.
8891
8e7af858
GM
88922000-03-30 Gerd Moellmann <gerd@gnu.org>
8893
8894 * xfns.c (free_image_cache): Free the cache structure itself
8895 last, after all its members have been freed.
8896
8897 * lisp.h (xstrdup): Add prototype.
8898
8899 * alloc.c (xstrdup): Moved here from xfaces.c.
8900 (allocating_for_lisp): Variable removed.
8901 (lisp_malloc): Block input around the calls to malloc and
8902 mem_insert.
8903
8904 * xfaces.c (realize_tty_face): Use find_symbol_value instead
8905 of Fsymbol_value.
8906 (xstrdup): Moved to alloc.c.
8907
e0b8c689
KR
89082000-03-29 Ken Raeburn <raeburn@gnu.org>
8909
b96f9fb7
KR
8910 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
8911
8912 * emacs.c (main): Fix sense of no-loadup test.
8913
e0b8c689
KR
8914 * config.in (ENABLE_CHECKING): Undef.
8915
8916 * lisp.h (struct interval): Replace "parent" field with a union of
8917 interval pointer and Lisp_Object; add new bitfield to use as
8918 discriminant. Change other flag fields to bitfields.
8919 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
8920 is defined and the supplied test fails, print a message and
8921 abort.
8922 (eassert): New macro. Use CHECK to provide an assert-like
8923 facility.
8924
8925 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
8926 pointers; abort if the value looks like a lisp object.
8927 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT,
8928 SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
8929 Modify for new interval parent definition.
8930
8931 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE,
8932 UNMARK_BALANCE_INTERVALS): Update references that need an
8933 addressable lisp object in the interval structure.
8934 (die): New function.
8935 (suppress_checking): New variable.
8936
8937 * intervals.c (interval_start_pos): Just return 0 if there's no
8938 parent object.
8939
f83c5440
GM
89402000-03-29 Gerd Moellmann <gerd@gnu.org>
8941
8942 * lread.c (read1): Accept `.' (period) as symbol start like in CL
8943 and earlier Emacs versions.
8944
8945 * keyboard.c (Ftop_level): Cancel busy-cursor.
8946
8947 * eval.c (call_debugger): Cancel busy-cursor.
8948
fdce64ff
KH
89492000-03-29 Kenichi Handa <handa@etl.go.jp>
8950
8951 * search.c (Freplace_match): Adjust multibyteness of the current
8952 buffer and NEWTEXT. Free allocated memory before signaling an
8953 error.
8954
f6a3f532
SM
89552000-03-28 Stefan Monnier <monnier@cs.yale.edu>
8956
8957 * regex.c (analyse_first): New function obtained by ripping out most
8958 of re_compile_fastmap and generalizing it a little bit so that it
8959 can also just return whether a given (sub)pattern can match the empty
8960 string or not.
8961 (regex_compile): Use `analyse_first' to decide whether the loop-check
8962 needs to be done or not for *, +, *? and +? (the loop check is costly
8963 for non-greedy repetition).
8964 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
8965
e9b309ac
DL
89662000-03-28 Dave Love <fx@gnu.org>
8967
bb15bd9a
DL
8968 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k,
8969 alpha.
8970
e9b309ac
DL
8971 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
8972
ed0767d8
SM
89732000-03-27 Stefan Monnier <monnier@cs.yale.edu>
8974
8975 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
8976 an expression.
8977 (enum re_opcode_t): Update description of succeed_n.
8978 (PATFETCH): Always define.
8979 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
8980 operators, char classes, shy-groups and intervals).
8981 Optimize special cases of intervals so as to only use succeed_n and
8982 jump_n when really needed.
8983 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
8984 that we don't have to handle the special cases any more.
8985 Simplify on_failure_jump handling as well.
8986
e11e7e46
JR
89872000-03-28 Jason Rumney <jasonr@gnu.org>
8988
8989 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
8990
88faab89
GM
89912000-03-27 Gerd Moellmann <gerd@gnu.org>
8992
182ff242
GM
8993 * s/freebsd.h (GC_SETJMP_WORKS): Define.
8994
8995 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 8996
182ff242
GM
8997 * alloc.c (mark_maybe_object): New function.
8998 (mark_memory): Use it.
8999 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
9000 (setjmp_tested_p, longjmp_done): New variables.
9001 (test_setjmp): New function.
9002 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
9003 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
9004
c1005d06
GM
9005 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
9006 to DEC_TEXT_POS and INC_TEXT_POS.
9007
9008 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
9009 with parameter MULTIBYTE_P.
9010
427ec082 9011 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
c1005d06
GM
9012 MULTIBYTE_P.
9013
7439e5b9 9014 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
9015 buffers because it looks for multibyte character byte sequences
9016 which don't exist in unibyte text.
7439e5b9 9017
d9c545da
GM
9018 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
9019
11fd416e 9020 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
9021 [DEBUG_X_COLORS]: New functions.
9022 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
9023
9024 * xfns.c (x_set_cursor_color): Get color reference counts right.
9025
9026 * xterm.c (x_copy_color): New function.
9027 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
9028
9029 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
9030 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
9031 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
9032 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
9033 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
9034 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
9035 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
9036 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
9037 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
9038 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
9039
11fd416e
GM
9040 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
9041 names for handling per-buffer variables.
d9c545da
GM
9042
9043 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
9044 instead of MAX_BUFFER_LOCAL_VARS.
9045 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
9046
9047 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
9048
88faab89
GM
9049 * xfns.c (x_specified_cursor_type): New function.
9050 (x_set_cursor_type): Use it.
9051
9052 * buffer.h (struct buffer): Add cursor_type.
9053
d80f42b7
SM
90542000-03-26 Stefan Monnier <monnier@cs.yale.edu>
9055
9056 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
427ec082 9057 (print_partial_compiled_pattern, re_compile_fastmap): Handle new
88faab89 9058 opcode.
d80f42b7
SM
9059 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
9060 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
9061 executing it as well as when popping it off the stack to find infinite
9062 loops in non-greedy repetition operators.
9063
89e80928
GM
90642000-03-26 Gerd Moellmann <gerd@gnu.org>
9065
3d4ff2dd
GM
9066 * doc.c (Qfunction_documentation): New variable.
9067 (syms_of_doc): Initialize Qfunction_documentation.
9068 (Fdocumentation): If FUNCTION is a symbol with non-nil
9069 `function-documentation' property, return a documentation derived
9070 from that.
9071
bd96bd79
GM
9072 * buffer.c (syms_of_buffer): Add default-cursor-type.
9073 (init_buffer_once): Don't let cursor_type have a local value
9074 in every buffer.
9075
19d1bc27
GM
9076 * xterm.c (x_display_and_set_cursor): Choose cursor depending
9077 on buffer-local value of cursor_type.
9078 (x_draw_bar_cursor): Add parameter WIDTH.
9079
9080 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
9081 (init_buffer_once): Set default cursor_type value to t.
9082 Mark cursor_type as local everywhere.
9083 (syms_of_buffer): New per-buffer variable cursor-type.
9084
89e80928
GM
9085 * buffer.h (struct buffer): Remove member local_var_flags,
9086 add local_flags.
9087 (MAX_BUFFER_LOCAL_VARS): New macro.
9088 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
9089 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
9090 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
9091 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
9092
9093 * print.c (print_object): Use new macros for per-buffer
9094 variables.
9095
9096 * category.c (Fset_category_table): Use new macros for per-buffer
9097 variables.
9098
9099 * buffer.c (buffer_permanent_local_flags): Make a char array.
9100 (max_buffer_local_idx): New variable.
9101 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
9102 for new handling of per-buffer variables.
9103 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
9104 (init_buffer_once): Initialize per-buffer vars differently.
9105 Set max_buffer_local_idx.
9106
9107 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
9108 variables.
9109
9110 * lread.c (defvar_per_buffer): Use new macros for per-buffer
9111 variables.
9112
9113 * data.c (do_symval_forwarding, store_symval_forwarding)
9114 (find_symbol_value, set_internal, default_value, Fset_default)
9115 (Fkill_local_variable, Flocal_variable_p): Use new macros for
9116 per-buffer variables.
9117
9118 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
9119
9a0dd3dc
GM
91202000-03-24 Gerd Moellmann <gerd@gnu.org>
9121
b68c375f
GM
9122 * xterm.c (x_term_init): Unblock input around call1 of
9123 Qvendor_specific_keysyms.
9124
9a0dd3dc
GM
9125 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
9126 (find_defun_start): Consider an open parenthesis in column 0
9127 a defun start only if open_paren_in_column_0_is_defun_start is set.
9128 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
9129
7973e637
SM
91302000-03-24 Stefan Monnier <monnier@cs.yale.edu>
9131
9132 * eval.c (Fautoload): Add entry in load-history (if after dump).
9133 * lread.c (load-history): Update docstring.
9134
39210e90
GM
91352000-03-24 Gerd Moellmann <gerd@gnu.org>
9136
9137 * indent.c (Fvertical_motion): Always use the current buffer.
9138 Temporarily change the window's buffer, if necessary.
9139
72db3ab5
GM
91402000-03-23 Gerd Moellmann <gerd@gnu.org>
9141
9142 * xterm.c (fast_find_position): Make sure not to consider rows
9143 not visible in the window.
9144
990b2375
SM
91452000-03-22 Stefan Monnier <monnier@cs.yale.edu>
9146
9147 * regex.c (enum syntaxcode): Provide default for non-Emacs.
9148 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
9149
ff4df011
JR
91502000-03-22 Jason Rumney <jasonr@gnu.org>
9151
9152 * w32menu.c (single_submenu): Set help string to NULL if none.
9153 (w32_menu_show): Set help string correctly.
9154 (add-menu-item): Set help string in MIIM_DATA for menu item.
9155 Load SetMenuItemInfoA explicitly.
9156 (w32_menu_display_help): New function.
427ec082 9157
ff4df011
JR
9158 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
9159 (QCdata): Moved to xdisp.c.
9160
9161 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
9162 (Vw32_charset_to_codepage_alist): Removed.
9163 (Vw32_charset_info_alist): New variable.
9164 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312,
9165 chinesebig5, oem, easteurope, turkish, baltic, russian, arabic,
9166 greek, hebrew, thai, johab, mac, unicode]): New symbols.
9167 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
9168 with TODO comment.
9169 (w32_codepage_for_font): Use Vw32_charset_info_alist.
9170 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
9171 Define Vw32_charset_info_alist and w32_charset symbols.
9172
91732000-03-22 Jason Rumney <jasonr@gnu.org>
9174
9175 * makefile.nt (w32bdf.obj): Update dependencies.
9176
9177 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
9178
9179 * w32fns.c: Include fontset.h after dispextern.h.
9180 (Fx_create_frame): Do not create fontset.
9181 (w32_load_system_font): Doc fix.
9182 (Fx_close_connection): Free full_name if it is not shared.
9183
9184 * w32term.c: Include fontset.h after dispextern.h.
9185 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
9186 updated.
9187 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
9188 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
9189 (w32_font_is_double_byte): New function, needs body.
9190 (x_append_glyph): Set glyph->glyph_not_available_p.
9191 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
9192 it->charset. If it->multibyte_p is zero and it->c is a multibyte
9193 character, convert it to a unibyte character.
9194 (struct glyph_string): Delete member `charset'.
9195 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
9196 calculating it is found.
9197 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
9198 the case that per char metric is not available correctly.
9199 (x_fill_glyph_string): Handle the case that the specific glyph is
9200 not available correctly.
9201 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
9202 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
9203 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
9204 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
9205 fontset. Don't call FS_LOAD_FONT.
9206
439d5cb4
KR
92072000-03-22 Ken Raeburn <raeburn@gnu.org>
9208
9209 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
9210 (INT_LISPLIKE): New macro.
9211 (NULL_INTERVAL_P): Use it.
9212 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
9213 SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
9214 GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
9215
9216 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
9217 explicit references to "parent" field of struct interval and
9218 associated unclean type conversions.
9219 * intervals.c (create_root_interval, root_interval, rotate_right,
9220 rotate_left, balance_possible_root_interval, split_interval_right,
9221 split_interval_left, interval_start_pos, find_interval,
9222 next_interval, previous_interval, update_interval,
9223 adjust_intervals_for_insertion, delete_node, delete_interval,
9224 adjust_intervals_for_deletion, merge_interval_right,
9225 merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
9226 copy_intervals_to_string): Likewise.
9227 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
9228 Likewise.
9229 * syntax.c (update_syntax_table): Likewise.
9230
9231 * intervals.c (reproduce_tree_obj): New function, like
9232 reproduce_tree but takes a Lisp_Object for the parent. Declare
9233 with prototype.
9234 (graft_intervals_into_buffer): Use it when appropriate.
9235 (reproduce_tree): Declare with prototype.
9236 (balance_possible_root_interval): Check that the parent is a lisp
9237 object before trying to examine its type.
9238
ee1c5b21
GM
92392000-03-22 Gerd Moellmann <gerd@gnu.org>
9240
9241 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
9242 as strings only if both are known to be strings.
9243
9244 * s/openbsd.h (LIBS_TERMCAP): Undef.
9245
1fb352e0
SM
92462000-03-21 Stefan Monnier <monnier@cs.yale.edu>
9247
9248 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
9249 definitions for non-Emacs compilation.
9250 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
9251 outside of `#ifdef emacs'.
9252 (print_partial_compiled_pattern): Update.
9253 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
9254 (re_compile_fastmap): Merge handling of charset and charset_not (for
9255 emacs and non-emacs compilation as well).
9256 Similarly for (not)categoryspec and (not)syntaxspec.
9257 Don't use the fastmap when reaching `anychar' since the added
9258 complexity is not justified.
9259 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
9260 and (not)syntaxspec. Merge (not)categoryspec.
9261
fdaa1f77
KH
92622000-03-22 Kenichi Handa <handa@etl.go.jp>
9263
ff1a0d8e
KH
9264 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
9265 FACE_FOR_CHAR): Define them differently for the configuration of
9266 --without-x.
fdaa1f77 9267
d152fb46
DL
92682000-03-21 Dave Love <fx@gnu.org>
9269
9270 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
9271 doc string.
9272
d2cafc8c
GM
92732000-03-21 Gerd Moellmann <gerd@gnu.org>
9274
9275 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
9276 (lface_fully_specified_p): Don't check contents of
9277 LFACE_FONT_INDEX because that attribute is optional.
9278 (realize_x_face): Remove now unwarranted xassert.
9279
9111d4b5
KH
92802000-03-21 Kenichi HANDA <handa@etl.go.jp>
9281
9282 The following changes are to make font selection based on
9283 characters, not charset. In addition, they recover fontset
9284 facilities while utilizing the new font selection mechanism.
9285
6c4bfdc0
KH
9286 * Makefile.in (fontset.o): Depend on dispextern.h.
9287
9288 * alloc.c (mark_face_cache): Don't mark face->registry.
9289
9111d4b5
KH
9290 * dispextern.h (struct glyph): New member glyph_not_available_p.
9291 Use 22 bits for face_id.
9292 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
9293 (struct face): Delete member registry, new member ascii_face.
9294 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
9295 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
9296 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
9297 (struct it): Delete member charset, new member
9298 glyph_not_available_p.
9299
9300 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
9301 (struct fontset_info, struct fontset_data): Structs removed.
9302 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
9303 Vglobale_fontset_alist, font_idx_temp): Externs removed.
9304 (fs_load_font, fs_query_fontset): Adjusted for new argument.
9305 (fs_free_face_fontset, fontset_font_pattern,
9306 face_suitable_for_char_p, face_for_char,
9307 make_fontset_for_ascii_face): Extern them.
9308 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
9309 (FS_LOAD_FACE_FONT): New macro.
9310
9311 * fontset.c: All codes rewritten or adjusted for the change of
9312 fontset implementation. Now fontset is represented by char table.
9313 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
9314 removed.
9315 (my_strcasecmp): Function removed.
9316 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
9317 variables.
9318 (AREF, ASIZE): New macros.
9319 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
9320 FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
9321 FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
9322 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
9323 fontset_id_valid_p, font_family_registry, fontset_name,
9324 fontset_ascii, free_face_fontset, face_suitable_for_char_p,
9325 face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
9326 New functions.
9327 (fs_load_font): New arg FACE. Caller changed.
9328 (fs_query_fontset): Argument changed. Caller changed.
9329 (Fquery_fontset): call fs_query_fontset.
9330 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
9331 Functions removed.
9332 (clear_fontset_elements, check_registry_encoding,
9333 check_fontset_name): New functions.
9334 (syms_of_fontset): Set char-table-extra-slots property of fontset
9335 to 3. Staticpro and initialize Vfontset_table and
9336 Vdefault_fontset. Defsubr fontset_font and fontset_list.
9337
9338 * frame.h (struct frame): Member `fontset_data' removed.
9339 (FRAME_FONTSET_DATA): Macro removed.
9340
9341 * frame.c (make_frame): Don't allocate f->fontset_data.
9342 (Fdelete_frame): Don't free f->fontset_data.
9343
6c4bfdc0
KH
9344 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
9345
9111d4b5
KH
9346 * xdisp.c (charset_at_position): Function removed.
9347 (init_iterator): Don't set member charset of struct `it'.
9348 (handle_face_prop, reseat_to_string, set_iterator_to_next,
9349 next_element_from_display_vector, insert_left_trunc_glyphs):
9350 Likewise.
9351 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
9352 FACE_FOR_CHARSET.
9353 (get_next_display_element, append_space,
9354 extend_face_to_end_of_line): Likewise.
9355
9356 * xfaces.c (Qx_charset_registry, Vface_default_registry):
9357 Variables removed.
9358 (clear_font_table, frame_update_line_height, load_face_font):
9359 Adjusted for the change of fontset implementation.
9360 (load_face_fontset_font): Function removed.
9361 (pixel_point_size): New function.
9362 (font_list): Argument type changed. Caller changed.
9363 (LFACE_FONT): New macro.
9364 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
9365 (set_lface_from_font_name): Type of arg FONTNAME is changed to
9366 Lisp_Object. Determine the font name by actually loading a font
9367 by the specified pattern. Set LFACE_FONT (lface) to the specified
9368 pattern. Even if a font is not found, don't try alternatives.
9369 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
9370 (set_font_frame_param): If `font' is specified in lface, use it.
9371 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
9372 (lface_same_font_attributes_p): Likewise.
9373 (make_realized_face): Arguent changed. Caller changed. Set
9374 face->ascii_face to face itself.
9375 (free_realized_face): Free face->fontset if face is for ASCII.
9376 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
9377 deduce_unibyte_registry, x_charset_registry): Functions removed.
9378 (free_realized_multibyte_face): New function.
9379 (lookup_face, lookup_named_face, lookup_derived_face): Argument
9380 changed. Caller changed.
9381 (try_font_list): Argument type changed.
9382 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
9383 (choose_face_font): Argument changed. Handle fontset properly.
9384 (choose_face_fontset_font): Function removed.
9385 (realize_default_face, realize_named_face): Don't remove the
9386 former face here.
9387 (realize_face): Argument changed. Caller changed. Remove face
9388 with the arg former_face_id in advance. Load font for the new
9389 face.
9390 (realize_x_face): Argument changed. Caller changed. For a
9391 multibyte character, share fontset with base_face. For a single
9392 byte character, make a new realized fontset. Don't load a font
9393 here.
9394 (realize_tty_face): Argument changed. Caller changed.
9395 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
9396 (face_at_buffer_position): Don't check multibyte_p for returning
9397 DEFAULT_FACE_ID.
9398 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
9399 FACE_SUITABLE_FOR_CHARSET_P.
9400 (syms_of_xfaces): Remove code for Qx_charset_registry and
9401 Vface_default_registry.
9402
6c4bfdc0
KH
9403 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
9404 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
9405 (x_per_char_metric): Don't try FONT->default_char. Even if
9406 pcm->width is zero, glyph bits may exist.
9407 (x_encode_char): Always initialize char2b->byte1.
9408 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
9409 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
9410 changed.
9411 (x_append_glyph): Set glyph->glyph_not_available_p.
9412 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
9413 it->charset. Handle the case that per char metric is not
9414 available. If it->multibyte_p is zero and it->c is a multibyte
9415 character, convert it to a unibyte character.
9416 (struct glyph_string): Delete member `charset'.
9417 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
9418 the case that per char metric is not available correctly.
9419 (x_fill_glyph_string): Handle the case that the specific glyph is
9420 not available correctly.
9421 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
9422 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
9423 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
9424 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
9425 fontset. Don't call FS_LOAD_FONT.
9426
9427 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
9428 (x_create_tip_frame): Likewise.
9429 (Fx_close_connection): Free full_name of font_info.
9430
9431 * fns.c (optimize_sub_char_table): New function.
9432 (Foptimize_char_table): New function.
9433 (syms_of_fns): Defsubr Soptimize_char_table.
9434
b33dd3b0
GM
94352000-03-20 Gerd Moellmann <gerd@gnu.org>
9436
9437 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
9438 only if buffer is displayed in some window.
9439
9440 * xdisp.c (handle_single_display_prop): Initialize local `value'.
9441 (try_window_reusing_current_matrix): Don't call scroll run
9442 function if run's current and desired position are the same;
9443 this prevents cursor flickering.
9444
4e8a9132
SM
94452000-03-19 Stefan Monnier <monnier@cs.yale.edu>
9446
9447 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
9448
9449 * regex.c (RE_STRING_CHAR): New macro.
9450 (GET_CHAR_AFER_2): Remove.
9451 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
9452 (enum re_opcode_t): Remove on_failure_jump_exclusive.
9453 (print_partial_compiled_pattern, re_compile_fastmap)
9454 (re_match_2_internal): Remove on_failure_jump_exclusive.
9455 (regex_compile): Turn optimizable P+ loops into PP*, so that the
9456 optimization only need to work for * (ie. can use of_keep_string_jump).
9457 Remove the special case for .*\n since it is now covered by the general
9458 optimization.
9459 (re_search_2): Don't bother with `room'.
9460 (skip_one_char): New function.
9461 (skip_noops): Simplify since `memory' is not needed any more.
9462 (mutually_exclusive_p): Restructure slightly to use `switch' and
9463 add handling for "all" remaining cases.
9464 (re_match_2_internal): Change on_failure_jump_smart to use
9465 on_failure_keep_string_jump (and redirect the end-of-loop jump)
9466 rather than on_failure_jump_exclusive.
9467
2136fdd4
GM
94682000-03-19 Gerd Moellmann <gerd@gnu.org>
9469
9470 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
9471 number of bits per RGB because it's everywhere used as the depth
9472 of the visual.
9473
9474 * term.c (calculate_costs): Remove code dealing with X frames.
9475
18e21ce8 94762000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
9477
9478 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
9479
d7b511c4
GM
94802000-03-18 Gerd Moellmann <gerd@gnu.org>
9481
9482 * lread.c (read_integer): Unread the last char not consumed.
9483
16b5d424
GM
94842000-03-17 Gerd Moellmann <gerd@gnu.org>
9485
9486 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 9487 which are in the process of being deleted.
16b5d424 9488
1fa28578
GM
94892000-03-16 Gerd Moellmann <gerd@gnu.org>
9490
83488cce
GM
9491 * Makefile.in (mostlyclean): Add `*.core'.
9492 (clean): Add `bootstrap-emacs'.
9493
1fa28578
GM
9494 * lread.c (read_integer): New function.
9495 (read1): Support read syntax #o, #x, #b, #r.
9496
99633e97
SM
94972000-03-15 Stefan Monnier <monnier@cs.yale.edu>
9498
1fa28578
GM
9499 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
9500 make sure POINTER_TO_OFFSET gives the same value before and after
9501 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
9502 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
9503 (debug): Now only active if > 0 rather than if != 0.
9504 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
9505 (print_partial_compiled_pattern): Add missing `succeed' case. Use
9506 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
9507 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
9508 (store_op1, store_op2, insert_op1, insert_op2)
9509 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
9510 (group_in_compile_stack): Move to after its arg's types are
9511 declared and add a prototype.
99633e97 9512 (PATFETCH): Define in terms of PATFETCH_RAW.
1fa28578
GM
9513 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
9514 wrapper.
99633e97 9515 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
9516 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
9517 indentation of the greedy-op and shy-group code.
99633e97
SM
9518 (at_(beg|end)line_loc_p): Fix argument's types.
9519 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
9520 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
9521 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
9522 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
9523 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
9524 QUIT unconditionally.
99633e97 9525
699238d9
GM
95262000-03-15 Gerd Moellmann <gerd@gnu.org>
9527
9528 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
9529 a sole completion.
9530
9531 * process.c (send_process): Add a hint that the function
9532 can call Lisp code to its comment.
9533
9534 * lread.c (load_dangerous_libraries): New variable.
9535 (Vbytecomp_version_regexp): New variable.
9536 (safe_to_load_p): New function.
9537 (Fload): Handle files not compiled with Emacs specially.
9538 (syms_of_lread): New Lisp variable load-dangerous-libraries.
9539
34e23e5a
GM
95402000-03-14 Gerd Moellmann <gerd@gnu.org>
9541
9c763cca
GM
9542 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
9543
9544 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
9545 support functions only if HAVE_X11R6_XIM is defined.
9546 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
9547
9548 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
9549
9550 * xfns.c (X_I18N_INHIBITED): Don't define.
9551 (create_frame_xic): Remove conditional compilation on
9552 X_I18N_INHIBITED.
9553 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
9554
9555 * config.in (HAVE_X_I18N): Moved here from xterm.h.
9556 (HAVE_X11R6_XIM): Define.
9557
9558 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
9559
34e23e5a
GM
9560 * xterm.c (x_term_init): Add support for X resource `synchronous'.
9561 If set, call XSynchronize.
9562
66f0296e
SM
95632000-03-13 Stefan Monnier <monnier@cs.yale.edu>
9564
34e23e5a
GM
9565 * regex.c: Declare a new type `re_char' used throughout the code
9566 for the string char type. It's `const unsigned char' to match the
9567 rest of Emacs. Consistently make sure all pointers to strings use
9568 it and make sure all pointers into the pattern use `unsigned
9569 char'.
66f0296e 9570 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
9571 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
9572 code duplication.
66f0296e
SM
9573
9574 * charset.h (GET_CHAR_AFTER_2): Remove.
9575 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
9576
854a025c
KR
95772000-03-12 Ken Raeburn <raeburn@gnu.org>
9578
9579 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
9580 variable before the invocation of YMF_PASS_LDFLAGS, in case both
9581 of them try to use backquotes.
9582
b9d2c7e2
DL
95832000-03-12 Dave Love <fx@gnu.org>
9584
9585 * unexelf.c: Restore changes of 1999-10-19.
9586 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
9587 fix its type and alignment; copy it from current process.
9588
5e5dff44
GM
95892000-03-12 Gerd Moellmann <gerd@gnu.org>
9590
9b2f3c38
GM
9591 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
9592 has been found. Fix bug not computing timer's predecessor.
9593
427ec082 9594 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
9595 file name.
9596
e1cff360
GM
9597 * window.c (Fsave_window_excursion): Doc fix.
9598
5e5dff44
GM
9599 * xfns.c (x_defined_color): Rewritten to use
9600 x_allocate_nearest_color.
9601
e411ce4b
EZ
96022000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
9603
9604 * msdos.c (vga_installed): New function, code moved from
9605 dos_set_window_size.
9606 (Qbar, Qcursor_type, outside_cursor): New variables.
9607 (syms_of_msdos): Intern and staticpro them.
9608 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
9609 shape used outside Emacs when called for the first time.
9610 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
9611 cursor shape used outside Emacs.
9612 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
9613 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
9614 type has changed.
9615 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
9616 parameters specify the cursor. Make qreverse a global
9617 variable (renamed to Qreverse).
9618
80460654
GM
96192000-03-09 Gerd Moellmann <gerd@gnu.org>
9620
9621 * fns.c (Fy_or_n_p): Cancel busy-cursor.
9622
95cd4c40
SM
96232000-03-08 Stefan Monnier <monnier@cs.yale.edu>
9624
9625 This is a big redesign of failure-stack and register handling, prompted
9626 by bugs revealed when trying to add shy-groups. Overall, what happened
9627 is that loops are now structured a little differently, groups can be
9628 shy and the code is a little simpler.
9629
9630 * regex.h: Update the copyright.
9631 (RE_SHY_GROUPS): New value.
9632 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
9633 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
9634
80460654
GM
9635 * regex.c (enum re_opcode_t): Remove jump_past_alt,
9636 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
9637 on_failure_jump_(exclusive, loop and smart). Also fix the comment
9638 for (start|stop)_memory since they now only take one argument (the
9639 second has becomes unnecessary).
9640 (print_partial_compiled_pattern): Adjust for changes in
9641 re_opcode_t.
9642 (print_compiled_pattern): Use %ld to printf long ints and flush to
9643 make debugging a little easier.
95cd4c40
SM
9644 (union fail_stack_elt): Make the integer unsigned.
9645 (struct fail_stack_type): Add a `frame' element.
9646 (INIT_FAIL_STACK): Init `frame' as well.
9647 (POP_PATTERN_OP): New macro for re_compile_fastmap.
9648 (DEBUG_PUSH, DEBUG_POP): Remove.
9649 (NUM_REG_ITEMS): Remove.
9650 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
9651 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
9652 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 9653 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
80460654
GM
9654 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
9655 macros.
9656 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
9657 address pushed is not the destination of the jump but the source
9658 of it instead.
95cd4c40
SM
9659 (NUM_FAILURE_ITEMS): Remove.
9660 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
9661 registers before the actual failure point). Don't hardcode any
9662 meaning for str==NULL anymore.
95cd4c40 9663 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
9664 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
9665 Remove.
95cd4c40
SM
9666 (REG_UNSET_VALUE): Use NULL (why not?).
9667 (compile_range): Remove declaration since it doesn't exist.
9668 (struct compile_stack_elt_t): Remove inner_group_offset.
9669 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
9670 (regex_grow_registers): Remove dead code.
9671 (FIXUP_ALT_JUMP): New macro.
80460654
GM
9672 (regex_compile): Add shy-groups Change loops to use
9673 on_failure_jump_smart&jump instead of
9674 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
9675 initial (dummy_failure_)jump. Remove c1_base (looks like unused
9676 variable to me). Use `jump' instead of `jump_past_alt' and don't
9677 bother with push_dummy_failure in alternatives since it is now
9678 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
9679 emacs' for (re)allocating the stack.
9680 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
9681 from loop when bufp->can_be_null rather than jumping to `done'.
9682 Avoid jumping backwards so as to ensure termination. Use
9683 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
9684 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 9685 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
9686 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
9687 improve mutually_exclusive_p to handle ".+\n".
9688 (lowest_active_reg, highest_active_reg,
9689 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
9690 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
9691 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
9692 variables. Push register (in `start_memory') on the stack rather
9693 than storing it in old_reg(start|end). Remove the cycle detection
9694 from `stop_memory', replaced by the use of on_failure_jump_loop
9695 for greedy loops. Add code for the new on_failure_jump_<foo>.
9696 Remove ad-hoc code in `on_failure_jump' to push more registers in
9697 the case of a loop. Take out code from `maybe_pop_jump' into
9698 separate functions and adapt it to the semantics of
9699 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
9700 and push_dummy_failure. Remove dummy_failure handling and
9701 handling of `failures to jump to on_failure_jump' (this last one
9702 was already dead code, it seems).
9703 (group_match_null_string_p, alt_match_null_string_p)
9704 (common_op_match_null_string_p): Remove.
95cd4c40 9705
7397acc4
DL
97062000-03-08 Dave Love <fx@gnu.org>
9707
9708 * config.in: Don't depend on __STDC__ for volatile.
9709 Add POINTER_TYPE, PTR, PROTOTYPES.
9710
9711 * hftctl.c, strftime.c: Use PROTOTYPES.
9712 * eval.c (find_handler_clause): Likewise.
9713
9714 * mem-limits.h: Use POINTER_TYPE.
9715
9716 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
9717 (memory_warnings): Declare using POINTER_TYPE.
9718
5e91ff9e
GM
97192000-03-08 Gerd Moellmann <gerd@gnu.org>
9720
feab4fba
GM
9721 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
9722
25edb08f
GM
9723 * xdisp.c (display_echo_area): Temporarily inhibit garbage
9724 collection.
9725
5e91ff9e
GM
9726 * xfns.c: Remove obsolete code in #if 0.
9727 (Fx_focus_frame): New function.
9728
a735b7e1
KH
97292000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
9730
9731 * coding.c (coding_category_name): Add coding-category-utf-8,
9732 coding-category-utf-16-be, coding-category-utf-16-le.
9733 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
9734 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
9735 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
9736 (detect_coding_utf_8): New function.
9737 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
9738 UTF_16_LOW_SURROGATE_P): New macros.
9739 (detect_coding_utf_16): New function
9740 (detect_coding_mask): When priorities are specified, skip any
9741 categories that have `nil' coding-system. Fix bug of returning
9742 wrong mask when PRIORITIES is specified and detect_coding_XXX()
9743 returns a mask not set in PRIORITIES.
9744 (detect_eol_type_in_2_octet_form): New function.
9745 (detect_eol): selects detect_eol_type_XXX to call according to
9746 cooding->category_idx.
9747 (detect_coding_system): Remove `nil' coding-system in the result.
9748 (Fupdate_coding_systems_internal): Update all coding-categories.
9749
9750 * coding.h (CODING_CATEGORY_IDX_UTF_8,
9751 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
9752 macros.
9753 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
9754 CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
9755 CODING_CATEGORY_IDX_UTF_16_LE.
9756 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
9757 CODING_CATEGORY_MASK_UTF_16_LE): New macros.
9758 (CODING_CATEGORY_MASK_ANY): Include the above macros.
9759 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
9760
9994cc69
GM
97612000-03-07 Gerd Moellmann <gerd@gnu.org>
9762
e9b4e5ff
GM
9763 * doc.c (Fdocumentation_property): If value is not a string,
9764 and doesn't refer to etc/DOC, evaluate it to obtain a string.
9765
f7daf1e1
GM
9766 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
9767 close the display with XtCloseDisplay. This caused a bus error
9768 on OpenWindows.
9769
9994cc69
GM
9770 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
9771 complete but not unique.
9772
4336c705
GM
97732000-03-06 Gerd Moellmann <gerd@gnu.org>
9774
18bb0684
GM
9775 * process.c (send_process): Remove local variable `procname' that
9776 might become invalid when a GC happens. Instead, access the
9777 process name slot directly.
9778
4336c705
GM
9779 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
9780 orig_height if set.
9781
9782 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
9783 orig_height if set.
9784
515d0d0e
EZ
97852000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
9786
9787 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
9788 glyph matrices have been freed.
9789
100b3cbb
GM
97902000-03-05 Gerd Moellmann <gerd@gnu.org>
9791
50df5e5a 9792 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 9793 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
9794
9795 * xfns.c (QCdata): Moved to xdisp.c.
9796
9797 * xdisp.c (QCdata): Moved here from xfns.c.
9798 (syms_of_xdisp): Initialize QCdata.
9799
9800 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
9801
9802 * window.c (coordinates_in_window): Use
9803 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
9804 FRAME_INTERNAL_BORDER_WIDTH.
9805
100b3cbb 9806 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 9807 it is obviously invalid.
100b3cbb
GM
9808
9809 * xterm.c (x_term_init): Create a colormap if not using the
9810 default visual.
9811
9812 * xterm.h (select_visual): Change prototype.
9813
9814 * xfns.c (select_visual): Rewritten. Recognize user-specified
9815 visual classes.
9816 (visual_classes): New variable.
9817
64d739c4
GM
98182000-03-04 Gerd Moellmann <gerd@gnu.org>
9819
9820 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
9821 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
9822 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
9823 (x_decode_color): Don't handle allocation of white and black
9824 specially.
9825 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
9826 XtNcolormap resources.
9827 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
9828 (Fx_create_frame): Initialize color members of x_output structure.
9829 (xpm_load): Pass colormap to XPM lib.
9830
9831 * xfaces.c (x_free_colors): Access colormap of frame using
9832 FRAME_X_COLORMAP. Be paranoid about freeing black and white
9833 when default colormap is used.
9834
9835 * xterm.c (x_term_init): Set Colormap member of x_display_info
9836 structure. Copy colormap if resource `privateColormap' is
9837 specified (PseudoColor only).
9838 (x_setup_relief_color): Access colormap of frame using
9839 FRAME_X_COLORMAP.
9840
9841 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
9842 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
9843
c3cee013
JR
98442000-03-04 Jason Rumney <jasonr@gnu.org>
9845
9846 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
9847 other non-platform-specific equivalents.
64d739c4 9848 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
9849 specific functions and macros as their w32 equivalents where
9850 non-platform-specifics are not available.
9851 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
9852 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
9853 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
9854 (frame_update_line_height): Use macros to access f->output_data.
9855 (defined_color): Remove FIXME comments; fixed.
9856 (x_face_list_fonts, prepare_face_for_display): Put X specifics
9857 into #ifdef blocks. Add WINDOWSNT blocks.
9858 (Fx_list_fonts): Use macros for accessing font data.
9859 (set_lface_from_font_name): Different default fonts for X and
9860 WINDOWSNT.
9861 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
9862 scalable for backward compatibility.
64d739c4 9863 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
9864 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
9865
64d739c4 9866 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
9867 syms_of_w32faces.
9868
9869 * makefile.nt (w32faces.obj): Remove.
9870 (xfaces.obj): Add.
9871
807cc41c
JR
98722000-03-03 Jason Rumney <jasonr@gnu.org>
9873
9874 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
9875 correct parameters.
9876
0007072a
KR
98772000-03-03 Ken Raeburn <raeburn@gnu.org>
9878
9879 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
9880 standard ELF definitions here if the system header does not.
9881
71a6ba55
GM
98822000-03-03 Gerd Moellmann <gerd@gnu.org>
9883
9884 * xterm.c (PER_CHAR_METRIC): Removed.
9885 (x_per_char_metric_1, x_default_char): New functions.
9886 (x_per_char_metric): If font's default char is invalid, return
9887 metrics of a suitably chosen usable default char.
9888 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
9889 char, replace occurrences of unprintable chars with a suitably
9890 chosen usable default char.
71a6ba55 9891
900fa1f1
GM
98922000-03-02 Gerd Moellmann <gerd@gnu.org>
9893
42f55fe0
GM
9894 * xterm.c (note_mouse_highlight): Return quickly if frame's
9895 glyph matrices have been freed.
9896
9897 * dispnew.c (free_glyphs): Block input while freeing matrices.
9898
900fa1f1
GM
9899 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
9900
9901 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
9902 x_free_colors.
9903
9904 * dispextern.h (x_free_colors): Add prototype.
9905
9906 * xfaces.c (x_free_colors): New function.
9907 (unload_color, free_face_colors): Use it.
9908
2f950292
EZ
99092000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
9910
9911 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
9912
9913 * window.c [MSDOS]: Include msdos.h.
9914
54d04320
DL
99152000-03-02 Dave Love <fx@gnu.org>
9916
9917 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
9918
9919 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
9920 set C_OPTIMIZE_SWITCH for gcc.
9921
0ba93ac4
KH
99222000-03-02 Kenichi Handa <handa@etl.go.jp>
9923
9924 * coding.c (coding_save_composition): Be sure to allocate
9925 composition data area in coding even if there's no composition in
9926 the current run.
9927
a2bc11d4
JR
99282000-03-01 Jason Rumney <jasonr@gnu.org>
9929
9930 * w32term.c: Equivalent changes to those made to xterm.c on
9931 2000-02-25 and 2000-02-24.
9932
9933 * w32fns.c: Equivalent changes to those made to xfns.c on
9934 2000-02-25 and 2000-02-21.
9935
9936 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
9937 correct line-end convention is followed.
9938
9939 * w32menu.c [HAVE_BOXES]: Remove #undef.
9940 (single_keymap_panes): Remove code for simulating checkmarks.
9941 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
9942 Remove code for drawing simulated checkmarks.
9943 (w32_menu_show): make unibyte help string correctly.
9944 (add_menu_item): draw standard Windows checkmarks. Draw radio
9945 buttons as radio buttons if possible.
9946
72d19d75
GM
99472000-03-01 Gerd Moellmann <gerd@gnu.org>
9948
2df636f4
GM
9949 * sysdep.c (start_of_text): Don't define this function for NetBSD
9950 with ELF.
9951
427ec082 9952 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
9953 Don't define.
9954 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
9955 (LINKER): Don't undef if __NetBSD__ is defined.
9956
9957 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
9958
9959 * fileio.c [__NetBSD__]: Define `unix'.
9960
72d19d75
GM
9961 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
9962
ed4d0512
GM
99632000-02-29 Gerd Moellmann <gerd@gnu.org>
9964
50b1039f
GM
9965 * atimer.c (start_atimer): Don't abort when timers are stopped.
9966 (append_atimer_lists): New function.
9967 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
9968 arbitrary lists of stopped and running atimers.
9969
ed4d0512
GM
9970 * atimer.c (cancel_atimer): Handle canceling an atimer when
9971 some timers are stopped.
9972
9973 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
9974 after canceling it.
9975
9976 * fns.c (maybe_resize_hash_table): Handle case of new size
9977 coming out as being the same as old size.
9978
387023ee
JR
99792000-02-27 Jason Rumney <jasonr@gnu.org>
9980
9981 * makefile.nt: Add atimer.h to dependencies.
9982 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
9983 * w32console.c: Only disable window system features for dispextern.h
9984 (initialize_w32_display): Build a display info for the console.
9985 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
9986 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
9987 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
9988 as 2 button mice.
9989 * w32gui.h (struct W32FontStruct): Revert last change after change
9990 to xdisp.c.
9991 * w32menu.c (single_submenu): Set up help string.
9992 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
9993 (w32_dialog_show): Set up help string.
9994 * w32term.c (w32_display_info_for_display): Remove unused function.
9995 (w32_draw_bitmap): Use pre-built bitmaps.
9996 (w32_initialize_display_info): New function to initialize parts of
9997 display info that are common to both GUI and console frames.
9998 (w32_term_init): Use w32_initialize_display_info. Do not set
9999 Vw32_num_mouse_buttons here, as it is not called for console
10000 frames. Build bitmaps for indicating truncated lines etc.
10001 (x_delete_display): Destroy pre-built bitmaps.
10002 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
10003 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
10004
4516715a
DL
100052000-02-27 Dave Love <fx@gnu.org>
10006
10007 * lisp.h: Add a bunch of prototypes.
10008
171ca836
KH
100092000-02-26 Kenichi Handa <handa@etl.go.jp>
10010
10011 * keyboard.c (read_char): Set `usec' correctly.
10012
4013921d
KH
100132000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
10014
10015 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
10016 `lambda', set reg[RRR] to the map index.
10017 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
10018 reg[RRR] to 0. Otherwise, set it to -1.
10019
9244a058
GM
100202000-02-25 Gerd Moellmann <gerd@gnu.org>
10021
2df636f4 10022 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 10023
18e21ce8 100242000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 10025
f43d79c1
GM
10026 * fileio.c (Ffile_symlink_p): If result starts with a `/'
10027 and contains a `:', prepend `/:'.
10028
10029 * window.c (select_window_1): If selected_window is nil,
10030 don't "swap out" the buffer's point.
10031 (Fset_window_configuration): Set selected_window to nil
10032 before calling Fselect_window.
10033 (unshow_buffer): Don't set point in buffer from window's point
10034 if another more recently selected window also shows the buffer.
10035
bed0c171
GM
100362000-02-25 Gerd Moellmann <gerd@gnu.org>
10037
449c3c52
GM
10038 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
10039
f5b58615
GM
10040 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
10041 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
10042 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
10043 variables.
10044 (DEFAULT_BUSY_CURSOR_DELAY): New define.
10045 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
10046 (hide_busy_cursor): New functions.
10047 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
10048
10049 * minibuf.c (read_minibuf): Cancel busy-cursor.
10050
10051 * keyboard.c (command_loop_1): Call start_busy_cursor before
10052 Fcommand_execute and cancel_busy_cursor after it.
10053 (timer_check): Remove busy-cursor code.
10054 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
10055 cursor timer.
10056
10057 * process.c (wait_reading_process_input): Remove busy-cursor code.
10058
10059 * eval.c (Fsignal): Call cancel_busy_cursor instead of
10060 Fx_hide_busy_cursor.
10061
10062 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
10063 Remove prototyoes.
10064 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
10065
10066 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
10067
10068 * xterm.c (XTread_socket): Remove busy-cursor code.
10069
4eb8436f
GM
10070 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
10071 (build_frame_matrix_from_leaf_window): Put code handling
10072 glyph row's not being a slice of a frame row in #if 0.
10073 (sync_window_with_frame_matrix_rows): New function.
10074 (frame_row_to_window): New function.
10075 (mirror_line_dance): Handle copies between windows.
10076
3cb65b0e
GM
10077 * lread.c (Fload): Use `xfree' instead of `free'.
10078 (init_obarray): Use `xmalloc' instead of `malloc'.
10079
bed0c171
GM
10080 * window.c (Fset_window_buffer): Set WINDOW to the window
10081 after decoding.
2add4349
GM
10082 (coordinates_in_window): Take frame's internal border width
10083 into account.
bed0c171 10084
42088c12
GM
100852000-02-24 Gerd Moellmann <gerd@gnu.org>
10086
10087 * xterm.c (x_display_and_set_cursor): Display cursor of
10088 non-selected windows depending on the setting of
10089 cursor_in_non_selected_windows.
10090
10091 * xdisp.c (cursor_in_non_selected_windows): New variable.
10092 (syms_of_xdisp): DEFVAR_BOOL it.
10093
d1e103b2
GM
100942000-02-23 Gerd Moellmann <gerd@gnu.org>
10095
723e779c
GM
10096 * data.c (Fstring_to_number): If number is greater than what
10097 fits into an integer, return a float.
10098
d1e103b2
GM
10099 * eval.c (specbind): Remove references to
10100 keyword_symbols_constant_flag.
10101
10102 * data.c (keyword_symbols_constant_flag): Removed.
10103 (Fmakunbound, set_internal, syms_of_data): Remove references to
10104 keyword_symbols_constant_flag.
10105
10106 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
10107
214f877f
KH
101082000-02-23 Kenichi Handa <handa@etl.go.jp>
10109
10110 * syntax.c (multibyte_syntax_as_symbol): New variable.
10111 (syms_of_syntax): Declare it as a Lisp variable.
10112 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
10113 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
10114 nonzero, treat all multibyte characters as symbol.
42088c12 10115 (init_syntax_once): Give syntax `word' to all multibyte
214f877f
KH
10116 characters.
10117
130adcb7
EZ
101182000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
10119
3cb65b0e 10120 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 10121 a deleted frame.
130adcb7 10122
17cbbf95
GM
101232000-02-21 Gerd Moellmann <gerd@gnu.org>
10124
10125 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
10126
10127 * xfns.c (x_window_to_frame, x_any_window_to_frame)
10128 (x_non_menubar_window_to_frame): Check the busy-cursor window.
10129
beb0bc36
DL
101302000-02-21 Dave Love <fx@gnu.org>
10131
10132 * frame.c (Vmouse_position_function): New variable.
10133 (Fmouse_position): Use it.
10134 (syms_of_frame): Install it.
10135
10136 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
10137
1d92afcd
GM
101382000-02-20 Gerd Moellmann <gerd@gnu.org>
10139
10140 * fileio.c (Finsert_file_contents): Unbind the binding of
10141 standard-output done by temp_output_buffer_setup.
329eed9f
GM
10142
10143 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
10144 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
10145 (specbind, unbind_to): Handle most common case of non-constant
10146 symbol with trivial value specially.
10147
10148 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
10149
18e21ce8 101502000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
10151
10152 * data.c (Fmake_variable_buffer_local): Doc fix.
10153 Init found_for_buffer to 0.
10154 (Fmake_variable_frame_local): If the variable has already
10155 been buffer-local, set the check_frame field.
10156
1d4311c3
EZ
101572000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
10158
10159 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
10160 produced for CODING_MODE_LAST_BLOCK requires.
10161
2dc95ddd
DL
101622000-02-18 Dave Love <fx@gnu.org>
10163
10164 * keyboard.c (echo_keystrokes): Remove declaration.
10165 (Vecho_keystrokes) New variable.
10166 (read_char, record_menu_key, read_key_sequence): Use it to allow
10167 use of float value.
10168 (syms_of_keyboard): Change Vecho_keystrokes declaration.
10169
10170 * lread.c: Undef feature selection macros before defining.
10171
f0930f35
GM
101722000-02-18 Gerd Moellmann <gerd@gnu.org>
10173
10174 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
10175 for symbols other than the symbol in question.
10176
e3d4de90
DL
101772000-02-17 Dave Love <fx@gnu.org>
10178
10179 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
10180
0b378936
GM
101812000-02-17 Gerd Moellmann <gerd@gnu.org>
10182
d621caf7
GM
10183 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
10184
0b378936
GM
10185 * alloc.c (enum mem_type): Compile unconditionally.
10186
3b451f74
EZ
101872000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
10188
10189 * xfaces.c (tty_defined_color): Don't return faulire indication
10190 for unspecified-fg and unspecified-bg pseudo-colors.
10191
10689a01
GM
101922000-02-17 Gerd Moellmann <gerd@gnu.org>
10193
1216f5e4
GM
10194 * alloc.c (mark_object): Don't mark symbol names in pure space.
10195 (gc_sweep): Don't unmark symbol names in pure space.
10196
10197 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
10198 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
10199 [GC_MARK_STACK]: New defines.
427ec082 10200 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
10201 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
10202
10203 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
10204
10205 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
10206 allocate_buffer instead of xmalloc.
10207
10208 * alloc.c (toplevel): Include setjmp.h.
10209 (PURE_POINTER_P): New define.
10210 (enum mem_type) [GC_MARK_STACK]: New enumeration.
10211 (Vdead) [GC_MARK_STACK]: New variable.
10212 (lisp_malloc): Add parameter TYPE, call mem_insert if
10213 GC_MARK_STACK is defined.
10214 (allocate_buffer): New function.
427ec082 10215 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
10216 (free_float) [GC_MARK_STACK]: Set type to Vdead.
10217 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
10218 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
10219 (MEM_NIL) [GC_MARK_STACK]: New define.
10220 (struct mem_node) [GC_MARK_STACK]: New structure.
10221 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
10222 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
10223 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
10224 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
10225 (mark_stack) [GC_MARK_STACK]: New functions.
10226 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
10227 (clear_marks): Removed.
10228 (gc_sweep): Set free conses' car, free floats' type, free
10229 symbols' function to Vdead. Use lisp_free to free buffers.
10230 (init_alloc_once): Initialize Vdead.
10231 (survives_gc_p): Return non-zero for pure objects.
10232
10233 * alloc.c: Add comments throughout the file.
10234
2503c8b1
GM
10235 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
10236 that unblocks alarms.
10237
8389e1e2
GM
10238 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
10239 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
10240 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
10241
10689a01 10242 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 10243
bfc17d18
KH
102442000-02-17 Kenichi Handa <handa@etl.go.jp>
10245
4a09dee0
KH
10246 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
10247 avoid infinite error signaling. Allocate sufficient memory for
10248 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 10249
2b927d02
SM
102502000-02-17 Stefan Monnier <monnier@cs.yale.edu>
10251
10252 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
10253 depends on the previous behavior.
10254
b49cb764
GM
102552000-02-16 Gerd Moellmann <gerd@gnu.org>
10256
10257 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
10258
99e95407
GM
102592000-02-15 Gerd Moellmann <gerd@gnu.org>
10260
10261 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
10262
10263 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 10264 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
10265 write(2).
10266
6ffd3cf7
RS
102672000-02-15 Richard M. Stallman <rms@gnu.org>
10268
10269 * data.c (set_internal): Don't make variable buffer-local
10270 if within a let-binding for the same buffer.
10271 (let_shadows_buffer_binding_p): New function.
10272
10273 * eval.c (specbind): For buffer-local value,
10274 record the current buffer also.
10275 (unbind_to): Cope with that change.
10276
cad53475
GM
102772000-02-15 Gerd Moellmann <gerd@gnu.org>
10278
10279 * window.c (Fsave_window_excursion): Doc fix.
10280
1aa963c8
SM
102812000-02-15 Stefan Monnier <monnier@cs.yale.edu>
10282
10283 * syntax.c (back_comment): Make sure we only consider comment-starters
10284 of the relevant style and return -1 in case of a failure to find the
10285 beginning of the comment.
10286 (Fforward_comment): If back_comment fails, go back to the position just
10287 after the comment-end.
10288 (scan_lists): Add comment describing a very minor bug.
10289
b9b84fd3
SM
102902000-02-14 Stefan Monnier <monnier@cs.yale.edu>
10291
10292 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
10293 `completion-regexp-list' in the docstring.
10294
3a28db80
DL
102952000-02-14 Dave Love <fx@gnu.org>
10296
10297 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
10298
fb4a568d
SM
102992000-02-14 Stefan Monnier <monnier@cs.yale.edu>
10300
10301 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
10302 to Emacs' syntax. Also fix the comment about set/not-set meanings
10303 since Emacs syntax is not the value 0 any more.
10304 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
10305 since it's now part of RE_SYNTAX_EMACS.
10306
1063ebb5
DL
103072000-02-12 Dave Love <fx@gnu.org>
10308
10309 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
10310 Alpha.
10311
fb07a302
GM
103122000-02-12 Gerd Moellmann <gerd@gnu.org>
10313
10314 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
10315
aaf2320c
DL
103162000-02-12 Dave Love <fx@gnu.org>
10317
10318 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
10319
10320 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
10321 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
10322 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
10323
10324 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
10325
10326 * s/nextstep.h: Don't define HAVE_ALLOCA.
10327
10328 * config.in: Add vfork bits.
10329
eedf8bde
GM
103302000-02-12 Gerd Moellmann <gerd@gnu.org>
10331
10332 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
10333 unwind function to undo the effect of stopping atimers.
10334
10335 * keyboard.c (bind_polling_period): Stop all timers except
10336 poll_timer.
10337
10338 * atimer.c (stopped_atimers): New variable.
10339 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
10340 New functions.
10341
10342 * atimer.h (stop_other_atimers, run_all_atimers)
10343 (unwind_stop_other_atimers): Add function prototypes.
427ec082 10344
eedf8bde
GM
10345 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
10346
8476c2f8
KR
103472000-02-11 Ken Raeburn <raeburn@gnu.org>
10348
10349 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
10350 library may depend on jpeg.
10351 (atimer.o): Depends on atimer.c.
10352
0e85e4a3
KH
103532000-02-11 Kenichi Handa <handa@etl.go.jp>
10354
10355 * insdel.c (del_range_1): Call update_compositions.
10356 (del_range_both): Call update_compositions just once..
10357
97fa0cc8
DL
103582000-02-10 Dave Love <fx@gnu.org>
10359
10360 * xfns.c (create_frame_xic): Fix initialization of automatic
10361 aggregates for pcc.
10362
25566a3c
KH
103632000-02-09 Kenichi Handa <handa@etl.go.jp>
10364
10365 * ccl.c (CCL_MAKE_CHAR): New macro.
10366 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
10367 registers by CCL_MAKE_CHAR before calling translate_char.
10368 <CCL_TranslateCharacterConstTbl> Likewise.
10369
69da54ba
DL
103702000-02-08 Dave Love <fx@gnu.org>
10371
10372 * lread.c (__EXTENSIONS__): Define.
10373
f7136ee8
GM
103742000-02-08 Gerd Moellmann <gerd@gnu.org>
10375
10376 * puresize.h (BASE_PURESIZE): Increase to 650000.
10377
7768790b
EZ
103782000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
10379
10380 * msdos.c (XMenuActivate): Turn off the cursor after displaying
10381 the help message.
10382
38fd211b
EZ
103832000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
10384
10385 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
10386 md, mh, mb, mr, and me to the fake termcap entry.
10387
66e4690f
KR
103882000-02-06 Ken Raeburn <raeburn@gnu.org>
10389
10390 * sound.c (sound_cleanup): Don't call device close routine if the
10391 function pointer is null.
10392
a75dfea0
AI
103932000-02-06 Andrew Innes <andrewi@gnu.org>
10394
10395 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
10396 around image definitions and prototypes.
10397 (gamma_correct) [WINDOWSNT]: New prototype.
10398
10399 * w32term.c (x_make_frame_visible): Replace call to
10400 input_poll_signal with poll_for_input.
10401
10402 * window.c [WINDOWSNT]: Include w32term.h.
10403
10404 * xdisp.c [WINDOWSNT]: Include w32term.h.
10405
10406 * makefile.nt: Add dependencies on w32gui.h.
10407 (OBJ1): Include atimer.obj.
10408 ($(BLD)\atimer.obj): New dependency rule.
10409
10410 * w32.c (sigmask): New function (does nothing).
10411 (sigunblock): Ditto.
10412
10413 * frame.c [WINDOWSNT]: Include w32term.h.
10414
10415 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
10416
10417 * lread.c (syms_of_lread): Fix literal newlines.
10418
10419 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
10420 the string constant limit (2048 bytes) in MSVC.
10421 (main): Ditto.
10422
59ddecde
GM
104232000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
10424
10425 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
10426 area.
10427 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
10428 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
10429 dispatch the event.
10430
07590973
DL
104312000-02-04 Dave Love <fx@gnu.org>
10432
10433 * fileio.c: Remove some unused vars.
10434 (_GNU_SOURCE): Define (for euidaccess).
10435
10436 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
10437
10438 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
10439 gcpro1, gcpro2.
10440 (read_minibuf): Deal with allow_props correctly.
10441
649351f9
EZ
104422000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
10443
10444 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
10445
66e4690f 104462000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
10447
10448 * search.c (compile_pattern): If a cache entry has a nil regexp,
10449 fill in that entry instead of clobbering a previously cached
10450 string regexp.
10451
66e4690f 104522000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
10453
10454 * puresize.h (BASE_PURESIZE): Increase to 610000.
10455
d240a249
GM
104562000-02-02 Gerd Moellmann <gerd@gnu.org>
10457
10458 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
10459 can GC.
10460
ca91fb26
KH
104612000-02-02 Kenichi Handa <handa@etl.go.jp>
10462
25660570
KH
10463 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
10464 instead of incrementing ic directly.
10465 <CCL_WriteExprConst> Likewise.
10466 <ccl_set_expr>: Set ic to jump_address.
10467
ca91fb26
KH
10468 * fileio.c (e_write): Fix the handling of
10469 CODING_FINISH_INSUFFICIENT_SRC.
10470
2ede9689
DL
104712000-02-01 Dave Love <fx@gnu.org>
10472
10473 * editfns.c (Fpropertize): Doc fix.
10474
10475 * process.c (Fstart_process): Doc fix.
10476
10477 * eval.c: Fix various doc strings not to duplicate information
10478 from help-manyarg-func-alist.
10479
10480 * window.c (Fset_window_margins): Don't make interactive. Doc
10481 fix.
10482
10483 * doc.c (Vhelp_manyarg_func_alist): New variable.
10484 (Fdocumentation): Use it.
10485 (syms_of_doc): Define it.
10486
b6680a0e
GM
104872000-01-31 Gerd Moellmann <gerd@gnu.org>
10488
2cb750ba
GM
10489 * xterm.c (xim_open_dpy): Remove unused local variable.
10490
74e9213b
GM
10491 * emacs.c (USAGE): Use term `display options' instead of `X
10492 options'.
10493
10494 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
10495 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
10496
b6680a0e
GM
10497 * fns.c (sweep_weak_table): New function.
10498 (sweep_weak_hash_tables): Use it. Keep on marking until there
10499 is no more change.
10500
994c5afe
GM
105012000-01-30 Gerd Moellmann <gerd@gnu.org>
10502
10503 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
10504 that XTread_socket does not crash by trying to call XNoOp on a
10505 closed display.
427ec082 10506
f00276e3
JR
105072000-01-30 Jason Rumney <jasonr@gnu.org>
10508
10509 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
10510 Change selected_frame to SELECTED_FRAME ().
10511 (w32_console_mouse_position): Remove #ifndef MULE from around
10512 `insist' parameter.
10513
10514 * makefile.nt: Remove dosfns.obj.
10515
10516 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
10517
10518 * w32fns.c (w32_defined_color): Check for valid frame before
10519 applying gamma correction. Eliminate dependency on frame elsewhere.
10520 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
10521 (w32_to_x_font): Use resx and resy not height_in and width_in.
10522 (x_to_w32_font): Doc fix.
10523 (xlfd_strip_height): New function to strip and return font height.
10524 (w32_font_match): Compare height separately from rest of xlfd
10525 spec, using xlfd_strip_height.
10526
10527 * w32term.c (w32_term_init): Swap resx and height_in, resy and
10528 width_in. Use w32_defined_color in place of defined_color.
10529
10530 * w32faces.c: Merge more of DOS and X specifics in preparation for
10531 merge with xfaces.c.
10532 (defined_color): Remove FIXME comment.
10533 (tty_color_name): Provide w32-specific function.
10534 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
10535
10536 * w32console.c (turn_on_face, turn_off_face): Removed.
10537 (w32_face_attributes): New function.
10538 (Global_variables): Reduce scope where possible.
10539 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
10540 fill attribute.
10541 (hl_mode): Don't modify text attributes.
10542 (write_glyphs): Don't do anything if len <= 0. Use
10543 w32_face_attributes to get attributes for drawing. Write
10544 terminating codes using char_attr_normal.
10545 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
10546 (update_begin, update_end): Likewise.
10547 (vga_stdcolor_name): New function.
10548 (initialize_w32_display): Remove char_attr_reverse and char_attr.
10549 (Fset_screen_color): Remove char_attr_reverse.
10550
b08e8bb2
GM
105512000-01-29 Gerd Moellmann <gerd@gnu.org>
10552
10553 * xfns.c (xic_set_preeditarea): Take window parameter and
10554 window-relative pixel-positions.
10555
10556 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
10557 is its frame's selected window.
10558 (xim_instantiate_callback): Likewise.
10559
10560 * xfns.c (x_create_im): Removed.
10561 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
10562 (supported_xim_styles): Renamed from supported_styles.
10563 (best_xim_style): Renamed from best_style.
10564 (create_frame_xic): Renamed from xic_create_frame.
10565 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 10566
b08e8bb2
GM
105672000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
10568
10569 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
10570 our frames, call XFilterEvent with 2nd parameter `None'.
10571 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
10572 returning XBufferOverflow.
10573 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
10574 area.
10575 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
10576 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
10577 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
10578 (xim_initialize, xim_close)
10579 [HAVE_X_I18N && HAVE_X11R6]: New functions.
10580 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
10581 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
10582 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
10583
10584 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
10585 and `xim_styles'.
10586 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
10587 `xic_style' and `xic_xfs'.
10588 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
10589 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
10590 (FRAME_XIM): Removed.
10591
10592 * xfns.c (supported_styles): New variable.
10593 (DEFAULT_STYLE, DEFAULT_FONT): New macros
10594 (xic_create_xfontset, best_style, xic_create_frame)
10595 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
10596 (xic_set_xfontset): New functions.
10597
142e109c
DL
105982000-01-28 Dave Love <fx@gnu.org>
10599
10600 * s/irix6-5.h: Revert last change after change to irix5-0.h.
10601
10602 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
10603
b02786f9
GM
106042000-01-28 Gerd Moellmann <gerd@gnu.org>
10605
d060bc9f
GM
10606 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
10607 for *scratch* if it already existed.
10608
b02786f9
GM
10609 * emacs.c (USAGE): New macro.
10610 (main): Use it to display usage information.
10611
2c52d7e4
EZ
106122000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
10613
10614 Support for the menu-help feature:
10615
10616 * msdos.h: Change prototypes of XMenuAddSelection and
10617 XMenuActivate.
10618
10619 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
10620 part of the line to the termscript file.
10621 (IT_clear_to_end): Clear the entire line, not just its beginning.
10622 (menu_help_message, prev_menu_help_message): New variables.
10623 (IT_menu_make_room): Make room for the help_text member.
10624 (IT_menu_display): New argument disp_help; all callers changed.
10625 If disp_help is non-zero, store the help text of the active menu
10626 item in menu_help_message.
10627 (XMenuAddPane): Initialize the help_text member to NULL.
10628 (XMenuAddSelection): New argument help_text. Store it in the
10629 XMenu structure.
10630 (XMenuActivate): New argument help_callback. If the value of
10631 menu_help_message has changed since the last time, display the
10632 menu help message text while waiting for the mouse to move. Clear
10633 the echo area before exiting.
10634 (XMenuDestroy): Free the help_text member.
10635
ffe0bcd1
GM
106362000-01-27 Gerd Moellmann <gerd@gnu.org>
10637
10638 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
10639 XMenuAddSelection. Pass help callback to XMenuActivate.
10640 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
10641
50dbd23f
EZ
106422000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
10643
10644 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
10645 and EMACS_SET_USECS.
10646
f5941bf8
GM
106472000-01-26 Dave Love <fx@gnu.org>
10648
6c67ddee
DL
10649 * editfns.c (Fchar_after, Fchar_before): Doc fix.
10650
f5941bf8
GM
10651 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
10652 an error may be signalled.
10653
9e49c990
GM
106542000-01-26 Gerd Moellmann <gerd@gnu.org>
10655
fc3cb460
GM
10656 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
10657 LD_SWITCH_SYSTEM inherited from irix5-0.h.
10658
9e49c990
GM
10659 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
10660
d0c037d8
GM
106612000-01-25 Gerd Moellmann <gerd@gnu.org>
10662
10663 * charset.c (Fstring): If there is a multibyte char among
10664 the args, always return a multibyte string.
10665
e12489f9
GM
106662000-01-25 Gerd Moellmann <gerd@gnu.org>
10667
10668 * sysdep.c (sys_select): Turn atimers off and on instead of
10669 recording and restoring old alarm handler
10670
10671 * process.c (toplevel): Include atimer.h.
10672 (create_process_1): Rewritten.
10673 (create_process): Use atimers instead of alarm.
10674 (wait_reading_process_input) [hpux]: Turn atimers off instead
10675 of turning off SIGALRM.
10676 (wait_reading_process_input): Turn off atimers instead off
10677 calling stop_polling.
10678
10679 * emacs.c (main): Call init_atimer.
10680
10681 * keyboard.c (toplevel): Include systime.h and atimer.h.
10682 (polling_for_input): Removed because unused.
10683 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
10684 (poll_timer): New variable.
10685 (poll_for_input, poll_for_input_1): New functions.
10686 (start_polling, stop_polling): Rewritten.
10687
10688 * keyboard.h (polling_for_input): Removed.
427ec082 10689
e12489f9
GM
10690 * atimer.h, atimer.c: New files.
10691
10692 * Makefile.in (obj): Add atimer.o.
10693 (atimer.o): New target.
10694
10695 * blockinput.h (pending_atimers): Add extern declaration.
10696 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
10697
10698 * lisp.h (popup_activated_flag): Add extern declaration.
10699
10700 * xmenu.c (popup_activated_flag): Make externally visible.
10701 (popup_activate_callback) [USE_MOTIF]: Increment
10702 popup_activated_flag.
10703 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
10704
10705 * xterm.c (toplevel): Include atimer.h.
10706 (toolkit_scroll_bar_interaction): New variable.
10707 (Fxt_process_timeouts): Removed.
10708 (x_process_timeouts): New function.
10709 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
10710 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
10711 (x_make_frame_visible): Call poll_for_input_1 instead of
10712 input_poll_signal. Don't call alarm.
10713 (x_initialize): Install timer calling x_process_timeouts.
427ec082 10714
1e5279b9
DL
107152000-01-24 Dave Love <fx@gnu.org>
10716
6c67ddee 10717 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
10718 Don't use -cckr -- apparently not now necessary.
10719
edf6aeb8
EZ
107202000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
10721
10722 * msdos.c (IT_menu_display): Truncate long menu lines at the right
10723 screen boundary.
10724
9badad41
JR
107252000-01-23 Jason Rumney <jasonr@gnu.org>
10726
10727 * w32fns.c (w32_defined_color): Apply gamma correction before
10728 trying to map to the palette.
10729 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
10730 to w32_clear_rect.
10731
10732 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
10733 here. Callers changed to always pass real device context.
10734 (w32_draw_bitmap): Likewise.
10735 (w32_get_glyph_overhangs): Likewise.
10736 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
10737 one.
10738 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
10739 pfnSetScrollInfo and SetScrollRange.
10740 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
10741 back into MULE characters after decoding them.
10742 (x_get_glyph_face_and_encoding): Likewise.
10743 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
10744 GetCharABCWidthsW fails, since this is defined on Windows 9x.
10745 (x_produce_glyphs): Calculate per char metrics for a character
10746 that we know exists in default font when font_not_found_p is true.
10747
63bd786b
JR
107482000-01-22 Jason Rumney <jasonr@gnu.org>
10749
10750 * makefile.nt (intervals.obj, composite.obj): New modules.
10751 (composite.h): Added as dependency where appropriate.
10752
10753 * w32gui.h (XGCValue): New struct for emulating X GCs.
10754
10755 * w32term.h (XCharStruct): New struct for emulating X.
10756
10757 * w32console.c (turn_on_face, turn_off_face): New functions.
10758 (change_line_highlight): New prototype for new redisplay.
10759 (write_glyphs): Support multibyte text. Support faces.
10760
10761 * w32faces.c: Complete rewrite for new redisplay based on new
10762 xfaces.c.
10763
10764 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
10765 throughout. struct frame * in place of FRAME_PTR.
10766 Skeleton support for images, toolbars, tooltips from xfns.c.
10767 (Fx_create_frame): Use system default for default scroll bar
10768 width.
10769 (w32_get_arg): Renamed from x_get_arg.
10770 (Fx_file_dialog): New function.
10771 (w32_list_fonts): Check cache before asking system.
10772 (Vw32_enable_synthesized_fonts): New variable.
10773 (Vw32_enable_italics): Obsolete, removed.
10774
10775 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
10776 Use SELECTED_FRAME macro.
10777
10778 * w32menu.c: Add skeleton support for help strings on menus.
10779 (add_menu_item): Native checkbox and radio support added, but not
10780 yet enabled due to bugs.
10781 (push_menu_item): Add parameters type, selection and help.
10782 Callers updated.
10783 Formatting changes to reduce unnecessary diffs with xmenu.c.
10784
10785 * w32select.c (Fw32_set_clipboard_data): Update call to
10786 find_charset_in_str.
10787
10788 * w32term.c: Complete rewrite for new redisplay based on new
10789 xterm.c with necessary sections merged back in from old w32term.c.
10790
6ffd3cf7 107912000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
10792
10793 * data.c (set_internal): Further fix in same criterion.
10794
6ffd3cf7 107952000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
10796
10797 * data.c (set_internal): Fix the criteria for whether
10798 to swap out the old cached binding.
10799
60af03f1
DL
108002000-01-19 Dave Love <fx@gnu.org>
10801
10802 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
10803
f9be074f
KH
108042000-01-18 Kenichi Handa <handa@etl.go.jp>
10805
10806 * regex.c (re_compile_fastmap): While checking a range table for
10807 `charset', skip flag bits for a character class correctly.
10808
52b8dbf9
GM
108092000-01-17 Gerd Moellmann <gerd@gnu.org>
10810
d36100c9
GM
10811 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
10812
52b8dbf9
GM
10813 * xfns.c (x_window): Call lw_create_widget with new parameter
10814 list.
10815
10816 * widget.c (EmacsFrameSetCharSize): Change size of children first
10817 because of problems with main window geometry management under
10818 Lesstif.
10819
10820 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
10821 MENU_ITEMS_ITEM_.*.
10822 (MENU_ITEMS_ITEM_HELP): New enumerator.
10823 (push_menu_item): Add parameter HELP. Record help in menu_items.
10824 (single_menu_item, single_submenu, list_of_items): Call
10825 push_menu_item with new parameter.
10826 (single_submenu): Set help string in widget value.
10827 (menu_highlight_callback): New function.
10828 (set_frame_menubar): Call lw_create_widget with new
10829 parameter list.
10830 (xmenu_show, xdialog_show): Ditto.
10831
3139018f
GM
108322000-01-13 Gerd Moellmann <gerd@gnu.org>
10833
10834 * sound.c (Fplay_sound): Improve doc string.
10835
83c8f461
RS
108362000-01-11 Richard M. Stallman <rms@gnu.org>
10837
10838 * lisp.h (set_internal): Enter the new arg.
10839
10840 * eval.c (specbind): Record buffer-local variables specially,
10841 indicating which buffer's binding was saved.
10842 (unbind_to): Restore buffer-local variables specially
10843 in the proper buffer.
10844
10845 * data.c (set_internal): New arg BUF.
427ec082 10846
83c8f461
RS
10847 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
10848 * data.c (Fset): Pass new arg to set_internal.
10849 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 10850
1fab1775
GM
108512000-01-11 Gerd Moellmann <gerd@gnu.org>
10852
10853 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
10854 xprintsym.
10855
83c8f461 108562000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
10857
10858 * minibuf.c (Ftry_completion): Doc fix.
10859
7a85e4df
GM
108602000-01-11 Gerd Moellmann <gerd@gnu.org>
10861
10862 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
10863 vector, too.
10864
a970dae4
AS
108652000-01-11 Andreas Schwab <schwab@suse.de>
10866
10867 * coding.c (code_convert_region): Initialize total_skip.
10868
c65d14ee
DL
108692000-01-08 Dave Love <fx@gnu.org>
10870
10871 * eval.c (Fuser_variable_p): Check customizability too.
10872
834938d2
GM
108732000-01-07 Gerd Moellmann <gerd@gnu.org>
10874
10875 * minibuf.c (Fcompleting_read): Doc fix.
10876
e0303cd6
GM
108772000-01-05 Gerd Moellmann <gerd@gnu.org>
10878
8a26744b
GM
10879 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
10880 -L /usr/local/lib.
10881
e0303cd6
GM
10882 * xfns.c (x_create_im): New function to set IM and IC of a frame.
10883 Check that input style is supported before trying to create an
10884 IC for it.
10885 (x_window): Call x_create_im.
427ec082 10886
2e471eb5
GM
108872000-01-04 Gerd Moellmann <gerd@gnu.org>
10888
560a7bd2
GM
10889 * xfns.c (current_gif_memory_src): New variable.
10890 (gif_load): Record the address of the current memory source
10891 in current_gif_memory_src.
10892 (gif_read_from_memory): Use current_gif_memory_src.
10893
f9ee84a3
GM
10894 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
10895 macros statement form.
10896
d1299cde
GM
10897 * sound.c (struct sound): Renamed from struct sound_file.
10898 (struct sound): Add members `data' and `header_size'.
10899 (enum sound_attr): Add SOUND_DATA.
10900 (current_sound, current_sound_device): Variables renamed from
10901 sound_file and sound_device.
10902 (parse_sound): Parse :data.
10903 (parse_sound): Handle sound data in strings.
10904 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 10905 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
10906 needed header size.
10907 (wav_play, au_play): Play sounds from string data.
10908
2e471eb5
GM
10909 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
10910
10911 * lisp.h: Add prototype for allocate_string_data.
10912
10913 * alloc.c (Fgarbage_collect): Return number of live and free
10914 strings.
10915
10916 * alloc.c (mark_buffer): Remove code in #if 0.
10917 (gc_sweep): Ditto.
10918 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
10919 (strings_consed): New variable.
10920 (allocate_string): Set it.
10921 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
10922 (Fmemory_use_counts): Return strings_consed. Use Flist.
10923
10924 * alloc.c: General cleanup in comments etc. Remove conditional
10925 compilation for `standalone'.
10926
10927 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
10928
10929 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
10930 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
10931 (DONT_COPY_FLAG): Removed.
10932 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
10933 (struct sdata, struct sblock): New
10934 (struct string_block): Rewritten.
10935 (STRINGS_IN_STRING_BLOCK): New macro.
10936 (oldest_sblock, current_sblock, total_strings, total_free_strings)
10937 (large_sblocks, string_blocks, string_free_list): New variables.
10938 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
10939 (init_strings): Rewritten.
10940 (allocate_string, allocate_string_data, compact_small_strings)
10941 (free_large_strings, sweep_strings): New functions.
10942 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
10943 (struct string_block_head, current_string_block)
10944 (first_string_block, large_string_blocks, STRING_FULLSIZE)
10945 (STRING_PAD): Removed.
10946 (make_uninit_multibyte_string, make_pure_string): Rewritten.
10947 (Fgarbage_collect): Don't set mark bit in large strings.
10948 (mark_object): Mark strings differently. Mark symbol names
10949 differently.
10950 (survives_gc_p): Test marked strings differently.
427ec082 10951 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
10952 symbol names.
10953 (compact_strings): Removed.
10954
42608ba8
EZ
109552000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
10956
10957 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
10958 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
10959
e0a09e1a
KH
109602000-01-04 Kenichi Handa <handa@etl.go.jp>
10961
dd9f0750 10962 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 10963 in a non-empty buffer.
dd9f0750 10964
3c0f3b15 10965 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 10966
44cd3ae5
GM
109672000-01-03 Gerd Moellmann <gerd@gnu.org>
10968
10969 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
10970 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
10971
10972 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
10973
c182a70f
EZ
109742000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
10975
10976 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
10977 need to test for MSDOS frames.
10978
24480d5b
EZ
109792000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
10980
10981 * dosfns.c (unspecified_colors): Remove.
10982 (msdos_stdcolor_idx): Use global variables unspecified_fg and
10983 unspecified_bg.
10984 (msdos_stdcolor_name): Return strings for unspecified fore- and
10985 back-ground colors.
10986
10987 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 10988 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
10989 (tty_color_name): Return Lisp strings for unspecified fore- and
10990 back-ground colors.
10991 (Finternal_set_lisp_face_attribute): Remove the special treatment
10992 for Qunspecified_{f,b}g.
10993 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
10994 string.
10995
047f434a
GM
109962000-01-03 Gerd Moellmann <gerd@gnu.org>
10997
10998 * xdisp.c (reseat_at_next_visible_line_start): Position before
10999 newline only if ending up on a newline.
11000 (next_element_from_ellipsis): Return success. Handle case of
11001 displaying no ellipsis. Fix case of ellipsis defined in display
11002 table.
11003 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
11004 returns 0.
11005
d684c676
EZ
110062000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
11007
11008 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
11009 (Fcolor_supported_p): Renamed from face-color-supported-p.
11010
5fe1d139
EZ
110112000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11012
11013 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
11014 list of colors renamed to tty-defined-color-alist.
11015 (tty_color_name): Pass the frame to tty-color-by-index.
11016 (realize_tty_face): tty-color-alist is now a function which
11017 accepts the frame as argument.
11018
11019 * term.c (Ftty_display_color_p): Accept an optional argument
11020 FRAME.
11021
816be8b8
EZ
110222000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11023
11024 * term.c (insert_glyphs): Pass glyph, not &glyph, to
11025 encode_terminal_code.
11026
b635321e
EZ
110272000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
11028
11029 * dispnew.c (mode_line_string): Support termcap frames as well.
11030
9b784e96
GM
110312000-01-01 Gerd Moellmann <gerd@gnu.org>
11032
27189709
GM
11033 * syntax.c (Fforward_word): Undo previous change.
11034
11035 * editfns.c (Fconstrain_to_field): Don't constrain if
11036 inhibit-field-text-motion is non-nil.
11037 (Fline_beginning_position): Undo previous change.
11038 (Fline_end_position): Ditto.
11039
11040 * syntax.c (Fforward_word): Notice field boundaries only if
11041 inhibit-field-text-motion is nil.
11042
11043 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
11044
11045 * editfns.c (Vinhibit_field_text_motion): New variable.
11046 (inhibit-field-text-motion): New DEFVAR_LISP.
11047 (Fline_beginning_position, Fline_end_position): Notice field
11048 boundaries only if inhibit-field-text-motion is nil.
11049
45158a91
GM
11050 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
11051 All calls adjusted.
11052 (x_build_heuristic_mask): Likewise.
11053 (xbm_load_image_from_file): Change error output.
11054 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
11055 (gif_load, gs_load, x_kill_gs_process): Ditto.
11056
9b784e96
GM
11057 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
11058 color indices when accessing raster pixels.
63cec32f
GM
11059 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
11060 one of :file or :data.
11061 (enum pbm_keyword_index): Add PBM_DATA.
11062 (pbm_format): Add :data.
11063 (pbm_image_p): Allow either :file or :data.
11064 (pbm_read_file): New function.
11065 (pbm_scan_number): Rewritten to read from string.
11066 (pbm_load): Support :data.
9b784e96 11067
2cb085db 11068See ChangeLog.8 for earlier changes.
6922b018
KH
11069
11070;; Local Variables:
49b3bd82 11071;; coding: iso-2022-7bit
6922b018 11072;; End: