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