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