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