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