(make_gap_smaller): Preserve BEG_UNCHANGED during gap
[bpt/emacs.git] / src / ChangeLog
1 2002-02-09 Kim F. Storm <storm@cua.dk>
2
3 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
4 reduction. This fixes a display problem where stray newlines were
5 inserted in the window (corrected by C-l). Clarified code (IMHO).
6
7 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
8
9 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
10
11 * xdisp.c (display_mode_lines): Fix last change.
12
13 2002-02-09 Jason Rumney <jasonr@gnu.org>
14
15 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
16 match each other.
17 (w32_load_system_font): Prevent Cleartype fonts from loading.
18 (Fx_show_tip): Ensure tip frames are above other topmost windows.
19
20 2002-02-09 Kim F. Storm <storm@cua.dk>
21
22 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
23 (CURRENT_MODE_LINE_HEIGHT): Use it.
24 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
25
26 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
27 (pos_visible_p, handle_face_prop): Likewise.
28 (display_mode_lines): Likewise, but for the real selected window.
29 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
30
31 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
32 in non-selected windows.
33 (realize_basic_faces): Realize it.
34 (syms_of_term): Intern and staticpro it.
35
36 2002-02-08 Kim F. Storm <storm@cua.dk>
37
38 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
39 Changed mail addresses to emacs-devel@gnu.org.
40
41 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
42
43 * fileio.c (Fsubstitute_in_file_name): If the file name includes
44 ~user, and there's no such user, don't discard everything before
45 ~user.
46
47 * floatfns.c (Fround): Doc fix.
48
49 2002-02-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
50
51 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
52
53 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
54
55 * lisp.h (Fx_file_dialog): Export (for Motif code in fileio.c).
56
57 2002-02-07 Kim F. Storm <storm@cua.dk>
58
59 * keymap.c (where_is_internal): Only check whether definition is
60 remapped if it fulfills is_command_symbol.
61
62 2002-02-07 Andreas Schwab <schwab@suse.de>
63
64 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
65
66 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
67
68 2002-02-06 Kim F. Storm <storm@cua.dk>
69
70 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
71 defining command remapping. Doc updated.
72 (Flookup_key): Remap command through keymap if KEY is a symbol.
73 (is_command_symbol): New function.
74 (Fkey_binding): Use it. New optional argument NO-REMAP.
75 Doc updated. Callers changed. Perform command remapping via
76 recursive call unless that arg is non-nil.
77 (where_is_internal): New argument no_remap. Callers changed.
78 Call recursively to find original key bindings for a remapped
79 comand unless that arg is non-nil.
80 (Fwhere_is_internal): New optional argument NO-REMAP.
81 Doc updated. Callers changed. Pass arg to where_is_internal.
82
83 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
84 (is_command_symbol): Added prototype.
85
86 * keyboard.c (Vthis_original_command): New variable.
87 (syms_of_keyboard): DEFVAR_LISP it.
88 (command_loop_1): Set it, and perform command remapping.
89
90 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
91
92 * keyboard.c (recursive_edit_1): Call cancel_hourglass
93 unconditionally.
94
95 2002-02-06 Jason Rumney <jasonr@gnu.org>
96
97 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
98
99 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
100
101 * charset.c (get_charset_id): Use if-else instead of ?:.
102
103 2002-02-06 Richard M. Stallman <rms@gnu.org>
104
105 * filelock.c (S_ISLNK): Define if not defined.
106
107 2002-02-03 Richard M. Stallman <rms@gnu.org>
108
109 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
110
111 * lread.c (read1): Redesign strategy for force_multibyte and
112 force_singlebyte. Now is_multibyte records whether read_buffer
113 is multibyte. Encountering any multibyte character makes it so.
114
115 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
116
117 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
118 with the same sequence, map that sequence to f10 rather than f0.
119
120 2002-02-03 Andreas Schwab <schwab@suse.de>
121
122 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
123 latter never being defined on GNU/Linux.
124
125 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
126
127 * xfaces.c (realize_default_face): Don't set the weight and slant
128 of the default face to Qnormal, unless these attributes are
129 unspecified.
130
131 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
132
133 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
134 Call cancel_hourglass unconditionally.
135
136 * eval.c (Fsignal): Remove duplicated declaration of
137 the variable `display_hourglass_p'.
138
139 2002-01-31 Richard M. Stallman <rms@gnu.org>
140
141 * editfns.c (region_limit): Nicer error message.
142
143 * coding.c (decode_composition_emacs_mule):
144 Give up if NCOMPONENT gets too large to index `component'.
145
146 * callint.c (check_mark): New arg to specify clearer error message.
147 Callers changed.
148
149 2002-01-27 Richard M. Stallman <rms@gnu.org>
150
151 * minibuf.c (Fcompleting_read): Doc fix.
152
153 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
154
155 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
156 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
157 Fix doc-strings.
158
159 2002-01-26 Richard M. Stallman <rms@gnu.org>
160
161 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
162
163 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
164 and scroll_up_aggressively.
165
166 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
167
168 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
169
170 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
171
172 * textprop.c (Fnext_property_change, Fnext_single_property_change)
173 (Fprevious_property_change, Fprevious_single_property_change):
174 Stay within the narrowed-buffer boundaries.
175
176 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
177
178 * term.c (Ftty_display_color_cells): New function.
179 (syms_of_term): Defsubr it.
180 (Ftty_display_color_cells, Ftty_display_color_p): Change the
181 argument name to DISPLAY. Doc fix.
182
183 * dispextern.h: Add prototype for set_tty_color_mode and
184 tty_setup_colors.
185
186 2002-01-24 Jason Rumney <jasonr@gnu.org>
187
188 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
189 If region left to draw is not what was expected, mark the frame as
190 garbaged.
191
192 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
193 Combine the regions returned by BeginPaint and GetUpdateRect.
194
195 2002-01-23 Jason Rumney <jasonr@gnu.org>
196
197 * w32term.c (x_update_window_begin): Only hide caret if
198 w32_use_visible_system_caret is set.
199 (x_update_window_end): Only show caret if
200 w32_use_visible_system_caret is set.
201 (syms_of_w32term): Handle SystemParametersInfo call failing.
202
203 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
204
205 2002-01-22 Richard M. Stallman <rms@gnu.org>
206
207 * unexelf.c (unexec): Define n so as to cause compilation error
208 for the code where people have often written n instead of nn.
209
210 * .gdbinit (hookpost-run): Defined.
211
212 2002-01-22 Jan D. <Jan.Djarv@mbox200.swipnet.se>
213
214 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
215
216 2002-01-21 Jan D. <Jan.Djarv@mbox200.swipnet.se>
217
218 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
219 if fullscreen is being set.
220
221 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
222
223 * minibuf.c (Fminibuffer_contents)
224 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
225 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
226
227 2002-01-21 Richard M. Stallman <rms@gnu.org>
228
229 * window.c (check_frame_size): Fix minimum height calculation.
230
231 2002-01-20 Ken Raeburn <raeburn@gnu.org>
232
233 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
234 height before comparison.
235 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
236
237 2002-01-20 Jason Rumney <jasonr@gnu.org>
238
239 * w32term.c (w32_system_caret_width): Remove.
240 (w32_use_visible_system_caret): New user flag.
241 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
242 Windows reports a screen reader running.
243 (x_update_window_begin): Hide the system caret.
244 (x_update_window_end): Show the system caret.
245 (x_display_and_set_cursor): Don't draw a cursor when
246 w32_use_visible_system_caret is set. Do not adjust width.
247
248 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
249 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
250 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
251 the user requests it. Use system default width when creating.
252 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
253
254 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
255 New window messages.
256
257 2002-01-20 Richard M. Stallman <rms@gnu.org>
258
259 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
260
261 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
262
263 * doprnt.c (doprnt1): Fix typos in error call.
264
265 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
266
267 * unexelf.c (unexec) [__sgi]: Support the .got sections.
268
269 2002-01-20 Jason Rumney <jasonr@gnu.org>
270
271 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
272 that Windows returns. If a double check fails, try to guess how
273 ExtTextOut is going to act.
274
275 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
276 in place of stricmp.
277 (w32_list_synthesized_fonts): Removed.
278 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
279 (struct enumfont_t): New element; list.
280 (enum_font_cb2): List all style and charset variations of a font.
281 (Fw32_select_font): New optional argument; include_proportional.
282 Exclude vertical fonts. Exclude proportional fonts unless
283 include_proportional is non-nil.
284 (w32_enable_synthesized_fonts): Change to a boolean.
285 (Fw32_send_sys_command): Doc fix.
286
287 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
288
289 * dispnew.c (update_frame): Move the variable `tem' to the block
290 where it is used.
291
292 2002-01-19 Jason Rumney <jasonr@gnu.org>
293
294 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
295 call to face-set-after-frame-default.
296
297 2002-01-18 Richard M. Stallman <rms@gnu.org>
298
299 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
300 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
301
302 2002-01-17 Richard M. Stallman <rms@gnu.org>
303
304 * window.c (enlarge_window): When exceeding size of parent,
305 directly delete all the siblings instead of trying to resize it.
306
307 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
308
309 * term.c (set_tty_color_mode): Remove unused variable `tem'.
310
311 2002-01-16 Henrik Enberg <henrik@enberg.org>
312
313 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
314
315 2002-01-16 Kim F. Storm <storm@cua.dk>
316
317 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
318 is invisible. This can happen if cursor is on top line of a
319 window, and we switch to a buffer with a header line.
320
321 * w32term.c (x_erase_phys_cursor): Ditto.
322
323 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
324
325 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
326 `dont_resize' only when used.
327
328 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
329
330 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
331
332 * xdisp.c (display_mode_element): When computing charpos, depend
333 on multibyteness of elt, not the text in field.
334
335 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
336
337 * buffer.c (Fkill_all_local_variables): Increment
338 `update_mode_lines' only once.
339
340 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
341
342 * lisp.h (adjust_after_replace_noundo)
343 (Fupdate_coding_systems_internal): Add prototypes.
344
345 * sound.c (Fplay_sound): Initialize header_size also for :data case.
346
347 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
348
349 Support for the --color command-line argument and tty-color-mode
350 frame parameter:
351
352 * term.c (tty_default_color_capabilities, tty_setup_colors)
353 (set_tty_color_mode): New functions.
354 (term_init): Call tty_default_color_capabilities.
355 (Qtty_color_mode_alist): New variable.
356 (syms_of_term): Intern and staticpro it.
357
358 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
359 frames.
360 (do_switch_frame): For termcap frames, switch the tty
361 color mode as specified by the frame's parameters.
362 (Qtty_color_mode): New variable.
363 (syms_of_frame): Intern and staticpro it.
364
365 * emacs.c (USAGE2): Add the --color option.
366 (standard_args): Ditto.
367
368 2002-01-13 Jan Djarv <Jan.Djarv@mbox200.swipnet.se>
369
370 * xterm.h (struct x_output): New members want_fullscreen,
371 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
372 y_pixels_outer_diff.
373 New enum for FULLSCREEN_* constants.
374 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
375 is NULL.
376 (x_fullscreen_adjust): Add prototype.
377
378 * emacs.c (USAGE2): Add the new full-screen arguments.
379 (standard_args): Ditto.
380
381 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
382 New variables.
383 (syms_of_xfns): Intern and staticpro them.
384 (x_frame_parms) <"fullscreen">: New parameter.
385 (x_fullscreen_move, x_set_fullscreen): New functions.
386 (x_set_frame_parameters): Support for Qfullscreen.
387 (x_real_positions): More accurate computation of the frame position.
388 (x_figure_window_size): Support full-screen frames.
389 (Fx_create_frame): Default the fullscreen parameter.
390
391 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
392 (XTread_socket) <Expose>: Call x_check_fullscreen.
393 <ConfigureNotify>: Don't resize to fullscreen.
394 Call x_check_fullscreen_move, and set the want_fullscreen member of
395 output_data.x.
396
397 2002-01-13 Jason Rumney <jasonr@gnu.org>
398
399 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
400 for mice with more than 3 buttons.
401
402 * w32term.c (parse_button): New parameter xbutton. Callers changed.
403 (w32_read_socket): Handle new "XBUTTON" messages.
404
405 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
406 (syms_of_w32fns): DEFVAR_BOOL it.
407 (w32_wnd_proc): Handle new "XBUTTON" messages.
408
409 2002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
410
411 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
412
413 2002-01-13 Andreas Schwab <schwab@suse.de>
414
415 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
416
417 2002-01-12 Andreas Schwab <schwab@suse.de>
418
419 * .gdbinit (xbuffer): Remove address operator since data is now a
420 pointer.
421
422 2002-01-11 Richard M. Stallman <rms@gnu.org>
423
424 * insdel.c (adjust_after_replace_noundo): New function.
425
426 * coding.c (code_convert_region): Don't copy old text if undo disabled.
427
428 2002-01-09 Jason Rumney <jasonr@gnu.org>
429
430 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
431 when checking for multiple frames.
432
433 2002-01-08 Richard M. Stallman <rms@gnu.org>
434
435 * window.c (delete_window): Rewrite the code for changing the
436 selected window to handle the case where WINDOW is not a leaf.
437
438 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
439
440 * process.c (send_process): Set src_multibyte to 1 after the call
441 top setup_coding_system, not before the call.
442
443 2002-01-07 Jason Rumney <jasonr@gnu.org>
444
445 * xmenu.c (set_frame_menubar, xmenu_show):
446 (xdialog_show): Initialize wv->help to Qnil.
447
448 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
449 (w32_dialog_show): Initialize wv->help to Qnil.
450
451 2002-01-06 Jason Rumney <jasonr@gnu.org>
452
453 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
454
455 * w32menu.c (w32_menu_display_help): Revert last change.
456
457 * xmenu.c (menu_highlight_callback): Revert last change.
458
459 2002-01-06 Andreas Schwab <schwab@suse.de>
460
461 * insdel.c (make_gap_larger): Make sure buffer size does not
462 overflow range of int.
463
464 2002-01-05 Jason Rumney <jasonr@gnu.org>
465
466 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
467 OVERLAPS_P.
468
469 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
470
471 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
472 to the left or to the right of the pointer, put it against
473 the left screen edge.
474 (x_frame_parms): Add missing braces around initializer.
475
476 * w32term.c (x_setup_relief_colors): Don't compute an image's
477 background color if it doesn't have a Pixmap.
478 (notice_overwritten_cursor): Don't depend on
479 output_cursor and updated_area. Compare pixel coordinates with
480 window's cursor pixel coordinates.
481 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
482 Call notice_overwritten_cursor with new arg list.
483 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
484 unconditionally.
485 (x_draw_image_relief): Use predefined macro instead of
486 constant when the value of `tool_bar_button_relief' is negative.
487
488 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
489
490 2002-01-04 Richard M. Stallman <rms@gnu.org>
491
492 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
493
494 2002-01-03 Richard M. Stallman <rms@gnu.org>
495
496 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
497 (Fkey_binding): Try the `keymap' property map first.
498 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
499 minor mode bindings.
500
501 2002-01-03 Kim F. Storm <storm@cua.dk>
502
503 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
504
505 2002-01-02 Richard M. Stallman <rms@gnu.org>
506
507 * keyboard.c (read_key_sequence): Handle the keymap property
508 before minor mode maps.
509
510 * editfns.c (Fformat): Update thissize from field_width
511 based on the actual width, in the string case.
512
513 2002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
514
515 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
516 when used as truth value to prevent gcc warnings.
517
518 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
519 * w32proc.c: Include <config.h>.
520
521 2002-01-01 Andreas Schwab <schwab@suse.de>
522
523 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
524 not EMACS_INT, to make them compatible with DEFVAR_INT.
525 * lisp.h (max_specpdl_size): Adjust declaration.
526
527 2002-01-01 Richard M. Stallman <rms@gnu.org>
528
529 * print.c (print_object): Test print_escape_nonascii only for
530 unibyte strings.
531 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
532 when outputting to a multibyte buffer.
533
534 2001-12-29 Richard M. Stallman <rms@gnu.org>
535
536 * print.c (print_object): In multibyte string, use hex escapes.
537 Use octal only for unibyte strings.
538 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
539
540 * lread.c (read_escape): New arg BYTEREP for reporting whether
541 escape forces unibyte or multibyte.
542 (read1): When reading a string, take note of that info.
543
544 2001-12-29 Ken Raeburn <raeburn@gnu.org>
545
546 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
547 comparison to test lisp value returned by Fget.
548
549 2001-12-29 Richard M. Stallman <rms@gnu.org>
550
551 * lisp.h (max_specpdl_size): Add declaration.
552
553 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
554
555 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
556 Handle modifier bits. Correct typo in error message.
557
558 2001-12-28 Richard M. Stallman <rms@gnu.org>
559
560 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
561 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
562 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
563 Update calls to Fdefine_abbrev.
564 (write_abbrev): Update for changed data format.
565 Don't list "system" abbrevs.
566 (Fexpand_abbrev): Update use count with new data format.
567 (describe_abbrev): Update for changed data format.
568 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
569
570 * config.in (HAVE_MBSINIT): Add #undef.
571
572 * strftime.c (mbsinit): Define as no-op if not available.
573
574 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
575 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
576
577 * keymap.c (Flookup_key): Error message if key has wrong data type.
578 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
579 (exclude_key): New variable.
580
581 2001-12-28 Gerd Moellmann <gerd@gnu.org>
582
583 * xterm.c (x_setup_relief_colors): Don't compute an image's
584 background color if it doesn't have a Pixmap.
585
586 * xterm.c (notice_overwritten_cursor): Don't depend on
587 output_cursor and updated_area. Compare pixel coordinates with
588 window's cursor pixel coordinates.
589 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
590 Call notice_overwritten_cursor with new arg list.
591 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
592 unconditionally.
593
594 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
595 height of the cursor line to the amount to scroll.
596
597 2001-12-27 Richard M. Stallman <rms@gnu.org>
598
599 * intervals.c (set_point_both): The position after an invisible,
600 intangible character is not an acceptable stopping point.
601
602 2001-12-27 Ken Raeburn <raeburn@gnu.org>
603
604 * window.c (enlarge_window): In new preserve_before code, convert
605 CURBEG from lisp object to integer before doing arithmetic.
606
607 2001-12-27 Richard M. Stallman <rms@gnu.org>
608
609 * bytecode.c (Fbyte_code): Undo previous change.
610
611 2001-12-26 Kim F. Storm <storm@cua.dk>
612
613 * keyboard.c (record_char): Ignore duplicate help-echo events only
614 separated by mouse-movement. When tracking mouse, only record
615 first and last mouse-movement event in same window.
616 Don't record mouse-movement events in keyboard macros.
617
618 2001-12-25 Richard M. Stallman <rms@gnu.org>
619
620 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
621 (Fenlarge_window): New arg PRESERVE_BEFORE.
622
623 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
624 instead of Fstring_as_unibyte.
625
626 2001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
627
628 The following changes remove mocklisp support:
629
630 * mocklisp.h, mocklisp.c: Files removed.
631
632 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
633 `Qmocklisp' and `Qmocklisp_arguments'.
634 Remove prototype of syms_of_mocklisp.
635
636 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
637
638 * callint.c: Do not include mocklisp.h.
639 (Fcall_interactively): Do not test for mocklisp case.
640
641 * eval.c: Remove variables `Qmocklisp_arguments',
642 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
643 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
644 Do not test for mocklisp case.
645 (Fwhile): Remove unused variable `tem'.
646 (syms_of_eval): Remove variable `moclisp-arguments'.
647
648 * data.c (wrong_type_argument): Remove mocklisp case.
649
650 * doc.c (Fdocumentation): Remove mocklisp case.
651
652 * emacs.c (main): Do not call syms_of_mocklisp.
653
654 2001-12-21 Richard M. Stallman <rms@gnu.org>
655
656 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
657 to the left or to the right of the pointer, put it against
658 the left screen edge.
659
660 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
661
662 * Makefile.in (distclean): Remove .gdbinit if we are building
663 outside the source tree.
664
665 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
666
667 * w32.c (emacs_root_dir): New function.
668
669 * msdos.c (emacs_root_dir): New function.
670
671 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
672 of the current drive as the fallback for default_directory.
673
674 * dired.c (file_name_completion): Run the elements of
675 completion-ignored-extensions through ENCODE_FILE.
676
677 * lisp.h (scmp): Remove prototype, since it's now a static
678 function private to dired.c.
679
680 2001-12-18 Richard M. Stallman <rms@gnu.org>
681
682 * dired.c (scmp): Function moved from minibuf.c.
683 Delete multibyte handling--used only on encoded strings.
684
685 * minibuf.c (scmp): Function moved to dired.c.
686
687 * fns.c (merge): Add QUIT call.
688
689 2001-12-18 Dave Love <fx@gnu.org>
690
691 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
692 language/georgian.el.
693
694 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
695
696 * Makefile.in (lisp, shortlisp): Synchronize with changes to
697 lisp/Makefile.in:DONTCOMPILE.
698
699 2001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
700
701 * xdisp.c (window_box_height): Do not return negative values.
702 From Gerd Moellmann <gerd@gnu.org>.
703
704 * keyboard.c (head_table): Add missing braces around initializer.
705
706 * term.c (keys): Likewise.
707
708 * xfns.c (x_frame_parms, visual_classes): Likewise.
709
710 2001-12-17 Sam Steingold <sds@gnu.org>
711
712 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
713 patch (COMPOSING_P, not COMPOSING).
714
715 2001-12-17 Richard M. Stallman <rms@gnu.org>
716
717 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
718
719 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
720 before calling decode_coding.
721
722 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
723
724 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
725 instead of only for COMPOSITION_DISABLED.
726
727 2001-12-16 Richard M. Stallman <rms@gnu.org>
728
729 * alloc.c (pure_alloc): After overflow, allocate just a small block.
730
731 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
732
733 * buffer.h (struct buffer): New field `display_error_modiff'.
734 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
735
736 * window.c (Frecenter): Clear display_error_modiff field.
737
738 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
739 Call redisplay_window, but not if display_error_modiff field says no.
740 (redisplay_window_error): New function.
741 (displayed_buffer): New variable.
742 (redisplay_internal, redisplay_windows): Call the new functions
743 instead of redisplay_window directly.
744
745 2001-12-15 Richard M. Stallman <rms@gnu.org>
746
747 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
748
749 2001-12-14 Andrew Innes <andrewi@gnu.org>
750
751 * makefile.w32-in (EMACSLOADPATH): Define.
752 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
753 (bootstrap-temacs): Remove dependency on bootstrap-clean.
754
755 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
756
757 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
758 parameter have a numeric value all the time.
759
760 * w32fns.c (x_report_frame_params): Likewise.
761
762 2001-12-12 Richard M. Stallman <rms@gnu.org>
763
764 * fileio.c (Fwrite_region): Doc fix.
765
766 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
767 (redisplay_internal): Call clear_image_cache only for window terminals.
768
769 2001-12-12 Gerd Moellmann <gerd@gnu.org>
770
771 * xdisp.c (move_it_vertically_backward): Change heuristic
772 for the case that we didn't move far enough initially.
773
774 * window.c (Frecenter): Simplify computation in the case of window
775 system frames and ARG < 0; use window_box_height.
776
777 2001-12-11 Richard M. Stallman <rms@gnu.org>
778
779 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
780 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
781
782 2001-12-11 Andrew Innes <andrewi@gnu.org>
783
784 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
785 arg is negative.
786
787 2001-12-11 Richard M. Stallman <rms@gnu.org>
788
789 * m/hp800.h: Split the __hpux conditional into the parts
790 that are right for GNU/Linux too and the parts that are not.
791 Use the former if GNU_LINUX.
792 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
793
794 * s/gnu-linux.h (GNU_LINUX): Defined.
795
796 2001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
797
798 * macros.c, msdos.c, w16select.c: Change doc-string comments to
799 `new style' [w/`doc:' keyword].
800
801 2001-12-10 Jason Rumney <jasonr@gnu.org>
802
803 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
804 before using.
805
806 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
807
808 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
809 keyword].
810
811 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
812
813 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
814
815 * s/hpux10.h (srand48): Don't undefine.
816
817 2001-12-09 Jason Rumney <jasonr@gnu.org>
818
819 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
820 Add comment to explain where the struct came from.
821 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
822 (add_menu_item): Process pop-up menus first to avoid memory leak.
823 (add_menu_item, w32_menu_display_help): Use `help' field as
824 Lisp_Object.
825 (w32_free_submenu_strings): Only free owner-drawn strings.
826
827 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
828
829 * COPYING: Moved back.
830
831 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
832 Add parentheses around && within ||.
833
834 * indent.c (compute_motion): Likewise.
835
836 * intervals.c (merge_properties_sticky): Likewise.
837
838 * coding.c (setup_coding_system, shrink_encoding_region)
839 (Fdecode_sjis_char): Likewise.
840
841 2001-12-07 Andreas Schwab <schwab@suse.de>
842
843 * xdisp.c (display_mode_element): Don't read past end of string if
844 it ends with '%'.
845
846 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
847 can hold.
848
849 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum): Rename
850 from most_positive_fixnum and most_negative_fixnum, resp., and
851 type changed to Lisp_Object.
852 (syms_of_data): DEFVAR_LISP them.
853
854 2001-12-07 Richard M. Stallman <rms@gnu.org>
855
856 * callproc.c (init_callproc): Set Vdata_directory based on the source
857 location whenever Emacs was run uninstalled.
858
859 2001-12-06 Paul Eggert <eggert@twinsun.com>
860
861 * config.in (HAVE_WORKING_VFORK): New #undefs.
862 * process.c (create_process):
863 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
864 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
865 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
866 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
867 * m/intel386.h (HAVE_VFORK): Likewise.
868 * m/mips-siemens.h (HAVE_VFORK): Likewise.
869 * m/mips.h (HAVE_VFORK): Likewise.
870 * s/freebsd.h (vfork): Remove #define.
871 * s/lynxos.h (HAVE_VFORK): Remove #undef.
872 * s/usg5-4-2.h: Fix comment about vfork.
873
874 2001-12-06 Richard M. Stallman <rms@gnu.org>
875
876 * s/hpux10.h (random): Add undef.
877 (HAVE_RANDOM): Define it just once.
878
879 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
880
881 * eval.c: Undo last change: the standard syntax is not wanted.
882
883 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
884
885 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
886 scroll bars of the frame before deleting the frame itself. If the
887 frame has a widget, delete the frame with XtDestroyWidget, and do
888 not call XDestroyWindow before that.
889
890 2001-12-06 Kim F. Storm <storm@cua.dk>
891
892 * xfns.c (x_report_frame_params): Return actual fringe widths.
893
894 * w32fns.c (x_report_frame_params): Return actual fringe widths.
895
896 2001-12-05 Andrew Innes <andrewi@gnu.org>
897
898 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
899 excessively large.
900
901 * insdel.c (make_gap_larger): New function.
902 (make_gap_smaller): New function.
903 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]: Call
904 make_gap_smaller if arg is negative.
905
906 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
907
908 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
909 Pass a dummy argument when calling interrupt_signal.
910 (parse_menu_item): Mark disabled items before checking for empty def.
911 (read_char_minibuf_menu_prompt): Make safety more visible.
912 (read_key_sequence): Add a `first_unbound' variable.
913 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
914 unbound prefix as soon as we can detect it.
915
916 * doc.c (Fsnarf_documentation): Add prototype.
917 (get_doc_string): Handle negative arguments.
918 (Fdocumentation): Use AREF and ASIZE.
919 Move the calls to get_doc_string to a single place.
920 Don't confuse an interactive-spec for a docstring reference.
921 (Fdocumentation_property): Take advantage of the fact that
922 get_doc_string now ignores the sign of the docstring position.
923
924 * eval.c: Use standard syntax for usage in docstrings.
925
926 2001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
927
928 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
929
930 2001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
931
932 * xterm.c (x_draw_image_relief): Use predefined macro instead of
933 constant when the value of `tool_bar_button_relief' is negative.
934
935 2001-12-02 Richard M. Stallman <rms@gnu.org>
936
937 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
938 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
939
940 * fileio.c (read_non_regular): Delete Fsignal call.
941
942 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
943
944 * lisp.h (run_hook_list_with_args): Undo last change.
945
946 2001-12-01 Gerd Moellmann <gerd@gnu.org>
947
948 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
949
950 2001-12-01 Jason Rumney <jasonr@gnu.org>
951
952 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
953
954 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
955 [!WM_MOUSELEAVE]: Define.
956
957 * w32menu.c (current_popup_menu, get_menu_item_info):
958 (set_menu_item_info): New vars.
959 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
960 (w32_menu_show): Set current_popup_menu.
961 (add_menu_item): Allocate new strings for owner-drawn menu items
962 and help strings.
963 Use owner-draw for disabled menu items again.
964 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
965 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
966
967 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
968 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
969 <WM_EXITMENULOOP>: Free menu strings.
970 <WM_MOUSELEAVE>: Stop tracking mouse.
971 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
972
973 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
974 and mouse face.
975
976 2001-12-01 Kim F. Storm <storm@cua.dk>
977
978 The following changes add left-fringe and right-fringe
979 frame parameters to adjust fringe widths, or remove one or
980 both fringes.
981
982 * frame.h (struct frame): Remove trunc_area_pixel_width and
983 trunc_area_cols fields.
984 (Qleft_fringe, Qright_fringe): Declare.
985 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
986
987 * frame.c (Qleft_fringe, Qright_fringe): New vars.
988 (syms_of_frame): Initialize them.
989
990 * window.c (coordinates_in_window): Handle separate left and right
991 fringe widths.
992
993 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
994 and fringe_cols fields.
995 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
996 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
997 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
998 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
999 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
1000 (x_compute_fringe_widths): Add prototype.
1001
1002 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
1003 fill fringe evenly with small dashes.
1004 (x_draw_fringe_bitmap): Clear background if necessary. Align and
1005 clip the new ZV bitmap to avoid jitter between rows.
1006 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
1007 background. Don't draw fringe bitmaps if fringe width is zero.
1008 (x_compute_fringe_widths): New function.
1009 (x_new_font, x_set_window_size_1): Use it.
1010
1011 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
1012 (x_set_frame_parameters): Process `font' parameter before other
1013 parameters as fringe widths depend on it.
1014 (x_set_fringe_width): New function.
1015 (x_figure_window_size): Use x_compute_fringe_widths.
1016 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
1017 parameters.
1018
1019 * widget.c (set_frame_size): Use x_compute_fringe_widths.
1020 (EmacsFrameSetCharSize): Ditto.
1021
1022 * w32term.h: Merged changes from xterm.h.
1023 * w32term.c: Merged changes from xterm.c.
1024 * w32fns.c: Merged changes from xfns.c.
1025
1026 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1027
1028 * COPYING: Removed.
1029
1030 2001-11-29 Dave Love <fx@gnu.org>
1031
1032 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
1033 extra extra slot.
1034 (detect_coding_mask): Fix call of detect_coding_iso2022.
1035
1036 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1037
1038 * fileio.c (file-name-coding-system)
1039 (default-file-name-coding-system): Doc fix (links to referenced
1040 variables added).
1041
1042 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
1043
1044 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
1045 Add dummy uses of gcproN variables.
1046
1047 * category.c (describe_category, describe_category_1)
1048 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
1049 (syms_of_category): Don't defsubr Sdescribe_categories.
1050
1051 2001-11-28 Richard M. Stallman <rms@gnu.org>
1052
1053 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
1054
1055 * Makefile.in (lispdir): New variable, referring to build dir.
1056 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
1057
1058 2001-11-28 Andrew Innes <andrewi@gnu.org>
1059
1060 * w32menu.c (w32_menu_display_help): Actually add the new argument
1061 OWNER.
1062
1063 2001-11-28 Jason Rumney <jasonr@gnu.org>
1064
1065 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
1066 menu items. From David Ponce <dponce@wanadoo.fr>.
1067 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
1068 conditionally.
1069 (w32_menu_display_help): New argument OWNER. Rewritten to store a
1070 help event in the owner frame's keyboard buffer.
1071
1072 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
1073 (Fx_show_tip): Don't subtract last width from row width.
1074
1075 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
1076 (w32_read_socket): Use EQ to compare frames.
1077
1078 2001-11-28 Gerd Moellmann <gerd@gnu.org>
1079
1080 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
1081 OVERLAPS_P.
1082
1083 2001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1084
1085 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
1086 `gcpro3' and `gcpro4'.
1087
1088 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
1089
1090 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
1091
1092 * ccl.c: Use AREF and ASIZE.
1093
1094 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
1095
1096 * lisp.h (run_hook_list_with_args): Remove.
1097 (LIST_END_P): Fix call to wrong_type_argument.
1098 (make_fixnum_or_float): Use EMACS_INT rather than int.
1099
1100 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
1101
1102 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
1103 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
1104
1105 * eval.c: Use AREF and ASIZE.
1106 (Ffetch_bytecode): Add the file name to the error message.
1107
1108 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
1109 which match the end of the file-name.
1110 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
1111 is not a valid env var, but leave it as is instead.
1112
1113 * keymap.c (access_keymap): Handle t bindings like nil bindings.
1114 Make nil bindings in char-tables transparent.
1115 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
1116
1117 2001-11-26 Richard M. Stallman <rms@gnu.org>
1118
1119 * textprop.c (set_text_properties_1): Allow START, END in either order.
1120 Do nothing if range is empty.
1121
1122 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
1123
1124 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
1125 (clean): Not here.
1126
1127 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
1128
1129 * textprop.c (set_text_properties_1): Clearly mark that the
1130 interval should not be empty.
1131
1132 * intervals.c (graft_intervals_into_buffer):
1133 Don't call set_text_properties_1 on an empty interval.
1134
1135 2001-11-25 Richard M. Stallman <rms@gnu.org>
1136
1137 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
1138
1139 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
1140 don't lose the data in it.
1141
1142 2001-11-25 Juanma Barranquero <lektu@terra.es>
1143
1144 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
1145
1146 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
1147
1148 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
1149
1150 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
1151
1152 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
1153
1154 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
1155
1156 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
1157 Niemitalo <kon@iki.fi>.
1158
1159 2001-11-25 Jason Rumney <jasonr@gnu.org>
1160
1161 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
1162
1163 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
1164 (Fx_show_tip): Block input during frame creation.
1165 (Fx_show_tip, Fx_hide_tip): Enable.
1166
1167 2001-11-24 Richard M. Stallman <rms@gnu.org>
1168
1169 * lread.c (Fload): Detect recursive load error for more than 3
1170 nestings of the same file.
1171 (Vrecursive_load_depth_limit): Variable deleted.
1172 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
1173
1174 2001-11-24 Jason Rumney <jasonr@gnu.org>
1175
1176 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
1177 mouse position if either left or top is not specified.
1178
1179 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
1180 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
1181 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
1182 (my_create_tip_window): Assign tip_window.
1183 (x_create_tip_frame): Use same defaults as X.
1184 (compute_tip_xy): Remove unused variable. Use full screen width.
1185 (Fx_show_tip): Do not double height. Call ShowWindow directly.
1186
1187 * w32term.c (x_after_update_window_line): Doc fix.
1188 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
1189 frames.
1190 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
1191
1192 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
1193 for all Windowed systems.
1194
1195 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
1196
1197 * msdos.c (IT_clear_screen): If the frame's faces are not yet
1198 realized, use the initial screen colors to clear the screen.
1199
1200 2001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1201
1202 * textprop.c (Fset_text_properties): Remove unused variables
1203 `unchanged', `prev_changed', `s' and `len'.
1204
1205 * search.c (Freplace_match): Remove unused variable `inslen'.
1206
1207 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
1208
1209 2001-11-22 Jason Rumney <jasonr@gnu.org>
1210
1211 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
1212 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
1213 (my_create_tip_window): New function.
1214 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
1215 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
1216
1217 2001-11-20 Jason Rumney <jasonr@gnu.org>
1218
1219 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
1220 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
1221
1222 * w32fns.c (Vw32_system_coding_system): Remove.
1223 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
1224
1225 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
1226
1227 * fileio.c (Fwrite_region): Move choose_write_coding_system to
1228 after build_annotations.
1229
1230 * syntax.c (describe_syntax): Add dummy arg.
1231 (describe_syntax_1): Update call to describe_vector.
1232
1233 * category.c (describe_category): Add dummy arg.
1234 (describe_category_1): Update call to describe_vector.
1235
1236 * keymap.c (Fdescribe_vector): Add `describer' parameter.
1237 (describe_command, describe_translation): Add dummy second param.
1238 (describe_map): Call elt_describer with two arguments.
1239 (describe_vector_princ): Add `fun' parameter.
1240 Call it instead of the hardcoded `princ'.
1241 (describe_vector): Add arg `args'.
1242 Pass it as a new second argument to elt_describer.
1243
1244 * keymap.h (describe_vector): Update prototype.
1245
1246 * frame.c: Don't include keymap.h any more.
1247 (keys_of_frame): Remove.
1248
1249 * lisp.h (keys_of_frame): Remove declaration.
1250
1251 * emacs.c (main): Don't call `keys_of_frame' any more.
1252
1253 2001-11-14 Andreas Schwab <schwab@suse.de>
1254
1255 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
1256 if defined, 0 otherwise.
1257 (MAP_FAILED): Define if not defined and use it to test mmap failure.
1258 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
1259
1260 2001-11-19 Richard M. Stallman <rms@gnu.org>
1261
1262 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
1263
1264 2001-11-18 Jason Rumney <jasonr@gnu.org>
1265
1266 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
1267 (x_draw_bar_cursor): If the background color of the glyph under
1268 the cursor equals the frame's cursor color, use the glyph's
1269 foreground color for drawing the bar cursor.
1270 (x_after_update_window_line): Clear internal border in different
1271 circumstances.
1272 (w32_set_vertical_scroll_bar): Check for width and height > 0.
1273 (w32_draw_relief_rect): Correct relief by 1 pixel.
1274 (x_set_glyph_string_background_width):
1275 Set extends_to_end_of_line_p if the row's fill_line_p is set and
1276 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
1277 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
1278 if cursor_in_non_selected_windows is false.
1279 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
1280 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
1281 Notice if cursor gets overwritten.
1282 (notice_overwritten_cursor): Renamed from
1283 note_overwritten_text_cursor. Rewritten to take glyph widths
1284 into account, and to take X positions as parameters.
1285 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
1286 around call to x_draw_glyphs.
1287 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
1288 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
1289 color to use for image glyph reliefs.
1290 (x_draw_image_relief): Accept zero tool_bar_button_relief.
1291 (glyph_rect): Remove unused variable `area'.
1292
1293 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
1294 some items.
1295 (x_set_internal_border_width): Set frame garbaged when window
1296 doesn't exist yet.
1297 (Fx_create_frame): Accept zero tool_bar_button_relief.
1298 (x_clear_image_1, four_corners_best, image_background)
1299 (image_background_transparent): New functions.
1300 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
1301 (gs_format): Add `:background' entry.
1302 (lookup_image): Set IMG's background color if specified.
1303 (pbm_load, xbm_load_image, png_load): Set IMG's background field
1304 when appropriate.
1305 (x_clear_image_1): Reset `background_valid' and
1306 `background_transparent_valid' fields.
1307 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
1308 calculating it here. Set IMG's background_transparent field.
1309 (enum xpm_keyword_index): Add XPM_BACKGROUND.
1310 (enum png_keyword_index): Add PNG_BACKGROUND.
1311 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
1312 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
1313 (enum gif_keyword_index): Add GIF_BACKGROUND.
1314 (enum gs_keyword_index): Add GS_BACKGROUND.
1315 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
1316 Pre-calculate image background color where necessary.
1317 (x_create_x_image_and_pixmap, xbm_load, gs_load):
1318 Use display info's n_cbits entry for screen depth.
1319 (Fx_show_tip): Remove unused variables `buffer', `top',
1320 `left', `max_width' and `max_height'.
1321
1322 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
1323
1324 2001-11-18 Gerd Moellmann <gerd@gnu.org>
1325
1326 * puresize.h (BASE_PURESIZE): Increase to 750000.
1327
1328 2001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1329
1330 * frame.c (Fframe_live_p): Doc fix.
1331
1332 2001-11-18 Richard M. Stallman <rms@gnu.org>
1333
1334 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
1335 (message_dolog_marker3): New static variables hold three markers.
1336 (syms_of_xdisp): Initialize and staticpro them.
1337 (message_dolog): Use message_dolog_marker1..3 instead of
1338 allocating markers each time. Unchain them when done.
1339
1340 2001-11-17 Richard M. Stallman <rms@gnu.org>
1341
1342 * doc.c (Fsnarf_documentation): Doc fix.
1343
1344 2001-11-17 Andreas Schwab <schwab@suse.de>
1345
1346 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
1347
1348 2001-11-17 Richard M. Stallman <rms@gnu.org>
1349
1350 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
1351
1352 2001-11-17 Jason Rumney <jasonr@gnu.org>
1353
1354 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
1355
1356 2001-11-17 Gerd Moellmann <gerd@gnu.org>
1357
1358 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
1359 with invalid position.
1360
1361 2001-11-16 Richard M. Stallman <rms@gnu.org>
1362
1363 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
1364
1365 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
1366 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
1367 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
1368
1369 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
1370
1371 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
1372
1373 * fileio.c (build_annotations): Split off the tail.
1374 (build_annotations_2): New fun. Extracted from build_annotations.
1375 (Fwrite_region): Split the call to build_annotations into two
1376 calls to build_annotations and build_annotations_2.
1377
1378 2001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1379
1380 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
1381 clear_waiting_for_input with argument.
1382
1383 * xterm.h (x_update_cursor): Remove duplicated prototype.
1384
1385 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
1386
1387 * xterm.c (waiting_for_input): Remove unnecessary declaration.
1388
1389 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
1390
1391 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
1392
1393 * fileio.c (choose_write_coding_system): New fun, extracted
1394 from Fwrite_region.
1395 (Fwrite_region): Use it.
1396
1397 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
1398 (funcall_lambda, run_hook_with_args): Make static and add prototype.
1399 (ml_apply, find_handler_clause): Add prototype.
1400
1401 2001-11-16 Eli Zaretskii <eliz@gnu.org>
1402
1403 * config.in: Add #undef HAVE_COFF_H.
1404
1405 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
1406 Required for ISC 4.1.
1407
1408 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
1409
1410 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
1411 Andrew Wiseman <a.wiseman@btclick.com>.
1412
1413 2001-11-16 Kim F. Storm <storm@cua.dk>
1414
1415 The following changes are made to clean up the various internal
1416 references to the fringes to actually use the term `fringe' for
1417 them. Previously, they were called `flags areas', `bitmap areas',
1418 `left/right side of windows', or implicitly as `flags' or
1419 `bitmaps':
1420
1421 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
1422 Comments fixed. Use renamed symbols.
1423
1424 * dispnew.c: Comment fix. Use renamed symbols.
1425
1426 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
1427 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
1428 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
1429
1430 * msdos.c: Comment fix.
1431
1432 * w32fns.c: Use renamed symbols.
1433
1434 * w32term.c: Comment fixes. Use renamed symbols.
1435 (fringe_bitmap_type): Renamed from bitmap_type.
1436 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
1437 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
1438 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
1439
1440 * w32term.h: Comment fixes. Use renamed symbols.
1441 (fringes_extra): Renamed from flags_areas_extra.
1442 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
1443 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
1444 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
1445 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
1446 (FRAME_X_LEFT_FRINGE_WIDTH):
1447 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
1448 (FRAME_X_RIGHT_FRINGE_WIDTH):
1449 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
1450
1451 * widget.c: Use renamed symbols.
1452
1453 * window.c: Comment fixes. Use renamed symbols.
1454 (coordinates-in-window-p): Doc fix.
1455
1456 * xdisp.c: Comment fixes. Use renamed symbols.
1457
1458 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
1459
1460 * xfns.c: Use renamed symbols.
1461
1462 * xterm.c: Comment fixes. Use renamed symbols.
1463 (fringe_bitmap_type): Renamed from bitmap_type.
1464 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
1465 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
1466 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
1467
1468 * xterm.h: Comment fixes. Use renamed symbols.
1469 (fringes_extra): Renamed from flags_areas_extra.
1470 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
1471 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
1472 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
1473 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
1474 (FRAME_X_LEFT_FRINGE_WIDTH):
1475 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
1476 (FRAME_X_RIGHT_FRINGE_WIDTH):
1477 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
1478
1479 2001-11-15 Jason Rumney <jasonr@gnu.org>
1480
1481 * w32menu.c (add-menu-item): Make help_echo and radio buttons
1482 work for most menu items. From David Ponce
1483 <david.ponce@wanadoo.fr>.
1484
1485 2001-11-15 Gerd Moellmann <gerd@gnu.org>
1486
1487 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
1488 Some x_set_* function expect to be called even if old and new
1489 value are equal.
1490
1491 * xdisp.c (build_desired_tool_bar_string): Accept zero
1492 tool_bar_button_relief.
1493
1494 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
1495
1496 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
1497
1498 * xterm.c (x_draw_bar_cursor): If the background color of the
1499 glyph under the cursor equals the frame's cursor color, use
1500 the glyph's foreground color for drawing the bar cursor.
1501
1502 * dispnew.c (direct_output_forward_char): Fix character/byte
1503 position comparison.
1504
1505 2001-11-15 Miles Bader <miles@gnu.org>
1506
1507 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
1508 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
1509 Update arguments to find_field.
1510 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
1511 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
1512 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
1513 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
1514
1515 2001-11-14 Richard M. Stallman <rms@gnu.org>
1516
1517 * editfns.c (Fpropertize): Allow call with 1 arg.
1518
1519 * dispextern.h (image_background, image_background_transparent):
1520 Conditionalize on HAVE_X_WINDOWS.
1521
1522 2001-11-13 Richard M. Stallman <rms@gnu.org>
1523
1524 * print.c (Fprin1_to_string): Doc fix.
1525
1526 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
1527
1528 * floatfns.c (Fceiling, Ffloor): Doc fixes.
1529
1530 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
1531
1532 * fileio.c (Ffile_accessible_directory_p): Doc fix.
1533
1534 * eval.c (syms_of_eval): Doc fix.
1535
1536 * coding.c (syms_of_coding): Doc fix.
1537
1538 * doc.c (Fsnarf_documentation): Doc fix.
1539
1540 * dispnew.c (syms_of_display): Doc fix.
1541
1542 * category.c (Fget_unused_category): Doc fix.
1543
1544 * buffer.c (syms_of_buffer): Doc fixes.
1545
1546 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
1547
1548 * print.c (prin1, print): Doc fix.
1549
1550 2001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1551
1552 * fontset.h: Remove declarations of variables
1553 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
1554
1555 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
1556 `Vclip_large_size_font'.
1557
1558 2001-11-13 Jason Rumney <jasonr@gnu.org>
1559
1560 * w32fns.c: Doc fix.
1561
1562 2001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1563
1564 * xfaces.c (Fface_attributes_as_vector): Doc fix.
1565
1566 * w32fns.c (Fx_synchronize): Reindent.
1567
1568 * fns.c: Doc fix.
1569
1570 * emacs.c: Doc fix.
1571
1572 * coding.c: Doc fix.
1573
1574 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
1575 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
1576 `new style' [w/`doc:' keyword].
1577
1578 * xmenu.c (x-popup-menu): Reindent.
1579 (x-popup-dialog): Likewise.
1580
1581 * xfaces.c (Finternal_set_alternative_font_family_alist): Reindent.
1582
1583 * xdisp.c (Fdump_tool_bar_row): Reindent.
1584
1585 * minibuf.c (Fminibuffer_complete_word): Reindent.
1586 (Fminibuffer_complete_and_exit): Likewise.
1587 (Fminibuffer_completion_help): Likewise.
1588 (Fminibuffer_message): Likewise.
1589
1590 * fns.c (Freverse): Reindent.
1591
1592 * eval.c (Fif): Reindent.
1593 (Fand): Likewise.
1594
1595 * editfns.c (Fuser_real_login_name): Reindent.
1596 (Finsert_buffer_substring): Likewise.
1597 (Fcompare_buffer_substrings): Likewise.
1598 (Fsubst_char_in_region): Likewise.
1599
1600 * dispnew.c (Fsit_for): Reindent.
1601 (Fframe_or_buffer_changed_p): Likewise.
1602 (Finternal_show_cursor_p): Likewise.
1603 (syms_of_display): Likewise.
1604
1605 * alloc.c (Flist): Reindent.
1606 (Fvector): Likewise.
1607
1608 2001-11-12 Richard M. Stallman <rms@gnu.org>
1609
1610 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
1611 LeaveNotify events. Only FocusIn and FocusOut do that now.
1612 (x_display_and_set_cursor): Do display hollow cursors in active
1613 minibuffer windows when they are not selected.
1614
1615 2001-11-12 Jason Rumney <jasonr@gnu.org>
1616
1617 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
1618 * w32term.c: Change doc-string comments to `new style'.
1619 [w/`doc:' keyword]. Doc fixes.
1620
1621 * w32fns.c: Don't define max.
1622 (Fx_open_connection): Only execute once.
1623
1624 2001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1625
1626 * ccl.c: Change macros to use do-while block instead of if-else.
1627 Use braces to follow GNU Coding Standards.
1628
1629 2001-11-11 Richard M. Stallman <rms@gnu.org>
1630
1631 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
1632
1633 * lread.c (read_escape): Use end_of_file_error for reporting eof.
1634
1635 * insdel.c (replace_range): Use adjust_markers_for_replace
1636 instead of adjust_markers_for_delete and adjust_markers_for_insert.
1637
1638 * intervals.h: Declare set_text_properties and set_text_properties_1.
1639
1640 * textprop.c (set_text_properties_1): New subroutine
1641 broken out of set_text_properties.
1642 (set_text_properties): Use set_text_properties_1.
1643
1644 * intervals.c (graft_intervals_into_buffer):
1645 Use set_text_properties_1 to clear out properties.
1646
1647 * search.c (Freplace_match): Use replace_range to insert
1648 and delete. Don't request property inheritance from
1649 surrounding text.
1650
1651 2001-11-10 Jason Rumney <jasonr@gnu.org>
1652
1653 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
1654 vertical fonts. Allow them if face name is explicitly specified.
1655 Do not give up if we find a font that cannot be converted to an xlfd.
1656
1657 2001-11-10 Gerd Moellmann <gerd@gnu.org>
1658
1659 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
1660 instead of malloc/free.
1661
1662 2001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1663
1664 * xfaces.c (merge_face_vectors): Use braces to follow GNU
1665 Coding Standards.
1666 (Finternal_set_lisp_face_attribute): Likewise.
1667
1668 * buffer.c (Fbury_buffer): Likewise.
1669
1670 * indent.c (current_column_1): Remove unused variable `prev_col'.
1671
1672 * coding.c (encode_coding): Use precomputed value of `src'.
1673 (encode_coding): Remove unused variable `src_end'.
1674 (code_convert_region): Remove unused variables `count'.
1675
1676 2001-11-07 Jason Rumney <jasonr@gnu.org>
1677
1678 * w32term.c (x_display_and_set_cursor): Do not move system caret
1679 if cursor_glyph is NULL.
1680
1681 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1682
1683 * keymap.c (access_keymap): Fix compilation error.
1684
1685 2001-11-07 Miles Bader <miles@gnu.org>
1686
1687 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
1688
1689 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1690
1691 * intervals.c (graft_intervals_into_buffer):
1692 Remove #ifdef'd-out code.
1693 (graft_intervals_into_buffer): Remove unused variable `middle'.
1694
1695 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
1696 code (eval-current-buffer).
1697 Change doc-string comments to `new style' [w/`doc:' keyword].
1698
1699 2001-11-06 Richard M. Stallman <rms@gnu.org>
1700
1701 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
1702
1703 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
1704
1705 * lread.c (read1): Fix behavior with nested backquoting.
1706
1707 * keyboard.c (make_lispy_event): Check integerness and fix
1708 Lisp_Object/int mixup.
1709
1710 2001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1711
1712 * fns.c (copy_hash_table): Remove unused variable `v'.
1713
1714 * fontset.c (fontset_font_pattern): Remove unused variable
1715 `family_registry'.
1716
1717 * indent.c (current_column_1): Remove unused variable `prev_col'.
1718
1719 2001-11-05 Richard M. Stallman <rms@gnu.org>
1720
1721 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
1722
1723 * buffer.c (Fkill_buffer): Don't delete auto save file
1724 if buffer is modified.
1725
1726 2001-11-05 Andrew Innes <andrewi@gnu.org>
1727
1728 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
1729 CHECK_NUMBER_CDR.
1730
1731 2001-11-05 Richard M. Stallman <rms@gnu.org>
1732
1733 * unexelf.c (unexec): Minor changes; clean up comments.
1734
1735 2001-11-05 Sam Steingold <sds@gnu.org>
1736
1737 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
1738
1739 2001-11-05 Andreas Schwab <schwab@suse.de>
1740
1741 * sound.c (sound_perror): Save errno from being clobbered.
1742
1743 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
1744
1745 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
1746 the program image directly.
1747
1748 2001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1749
1750 * buffer.h (Fbuffer_local_value): Add prototype.
1751
1752 2001-11-04 Richard M. Stallman <rms@gnu.org>
1753
1754 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
1755 and CHECK_BUFFER.
1756
1757 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
1758 (record_char): Likewise.
1759
1760 * keyboard.c (make_lispy_event): Don't insist a drag event must
1761 move to a different buffer position. Instead, check for moving at
1762 least double_click_fuzz.
1763
1764 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
1765
1766 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
1767
1768 * indent.c (current_column_1, Fmove_to_column): Separate the code
1769 for display-table glyphs from the code buffer text, to fix
1770 bugs in the former.
1771
1772 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
1773
1774 * buffer.c (Fbuffer_local_value): New function.
1775 (syms_of_buffer): Defsubr it.
1776
1777 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
1778 value of `cursor-in-non-selected-windows'.
1779
1780 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
1781 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
1782 (syms_of_xdisp): Initialize it.
1783
1784 2001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1785
1786 * xfns.c (Fx_create_frame): Doc fix.
1787
1788 * coding.c: Change doc-string comments to `new style' [w/`doc:'
1789 keyword].
1790
1791 * eval.c (top_level_value, top_level_set): Remove commented and
1792 #ifdef'd-out code.
1793 (Fdefvar): Fix usage in doc-string.
1794
1795 2001-11-03 Richard M. Stallman <rms@gnu.org>
1796
1797 * xfns.c: Include unistd.h, if it exists.
1798
1799 * editfns.c: Move the include of ctype.h after unistd.h.
1800
1801 * gmalloc.c: Test BROKEN_PROTOTYPES.
1802
1803 2001-11-03 Ken Raeburn <raeburn@gnu.org>
1804
1805 * lisp.h (CHECK_STRING_CAR): New macro.
1806 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
1807 treating XCAR and XCDR as lvalues.
1808 (openp): Use CHECK_STRING_CAR.
1809 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
1810
1811 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
1812
1813 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
1814 (SIGMASKTYPE): Define.
1815
1816 * syssignal.h (sigunblock): Don't define if already defined.
1817
1818 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1819
1820 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
1821 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
1822 Fix typos in comments.
1823
1824 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
1825 and #ifdef'd-out code.
1826 Fix and reindent comments.
1827
1828 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
1829
1830 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
1831 argument `i' in macros.
1832
1833 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
1834 `i' in macros.
1835
1836 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
1837 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
1838 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
1839 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
1840 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
1841 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
1842 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
1843 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
1844 in macros.
1845
1846 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
1847 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
1848 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
1849 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
1850 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
1851 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
1852 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
1853 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
1854 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
1855 (remove unused second argument).
1856
1857 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
1858
1859 * syntax.c (describe_syntax): New wrapper.
1860 (Finternal_describe_syntax_value): Rename from describe_syntax.
1861 Don't insert space at front and \n at the end.
1862 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
1863
1864 * regex.c (re_wctype): Try to fix some warnings.
1865 (regcomp, regexec): Don't forget the __restrict.
1866
1867 2001-11-02 Richard M. Stallman <rms@gnu.org>
1868
1869 * textprop.c (Fget_char_property): Doc fix.
1870
1871 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1872
1873 * process.c (Fstart_process): Add usage to doc-string.
1874
1875 * data.c (Fsetq_default): Ditto.
1876
1877 * callint.c (Finteractive): Ditto.
1878
1879 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
1880
1881 * macros.c: Don't include keymap.h any more.
1882
1883 2001-11-01 Richard M. Stallman <rms@gnu.org>
1884
1885 * data.c (Fmake_local_variable): Doc fix.
1886
1887 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
1888 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
1889
1890 * keymap.c (Fdescribe_buffer_bindings): Print character property
1891 bindings along with or instead of the buffer local map.
1892 Make the overriding maps override what they should.
1893
1894 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1895
1896 * window.c (grow_mini_window): Fix typo in comment.
1897
1898 2001-11-01 Gerd Moellmann <gerd@gnu.org>
1899
1900 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
1901 (XTset_vertical_scroll_bar): Likewise.
1902
1903 * xfns.c (x_build_heuristic_mask): Use four_corners_best
1904 instead of IMAGE_BACKGROUND.
1905
1906 * xfns.c (four_corners_best): Reindent.
1907
1908 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
1909 Handle :box so that it is possible to specify sexprs.
1910
1911 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1912
1913 * xfaces.c (Finternal_merge_in_global_face): Reindent.
1914 (Fface_font): Ditto.
1915 (Finternal_set_alternative_font_registry_alist): Ditto.
1916 (Ftty_suppress_bold_inverse_default_colors): Ditto.
1917
1918 * xfns.c (x-get-resource): Reindent.
1919
1920 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
1921
1922 * s/hpux11.h: New file.
1923
1924 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1925
1926 * emacs.c (USAGE1): Show command line option --no-window-system
1927 instead of --no-windows in usage.
1928 (standard_args): Rename --no-windows to --no-window-system.
1929 (bug_reporting_address): Follow Emacs coding conventions.
1930
1931 * eval.c (Fcommandp): Doc fix.
1932 Change doc-string comments to `new style' [w/`doc:' keyword].
1933
1934 * frame.c (Fframe_live_p): Doc fix.
1935
1936 * buffer.c (selective-display-ellipses): Doc fix.
1937
1938 2001-10-31 Gerd Moellmann <gerd@gnu.org>
1939
1940 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
1941
1942 * xfaces.c (realize_x_face): If C is not a single-byte character,
1943 set the face's colors_copied_bitwise_p instead of the defaulted_p
1944 members which have a different meaning.
1945 (free_face_colors): Do nothing for a face whose colors have been
1946 copied bitwise.
1947
1948 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
1949
1950 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1951
1952 * marker.c, mocklisp.c: Change doc-string comments to `new style'
1953 [w/`doc:' keyword].
1954
1955 2001-10-31 Gerd Moellmann <gerd@gnu.org>
1956
1957 * fns.c (require_unwind): Return Lisp_Object.
1958
1959 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1960
1961 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
1962 (last-input-char): Revert doc-string to be the same as the
1963 doc-string of `last-input-event'.
1964
1965 * xdisp.c: Fix typos in comments.
1966
1967 2001-10-31 Gerd Moellmann <gerd@gnu.org>
1968
1969 * window.c (grow_mini_window): Handle case that the root
1970 window is already smaller than the nominal mininum height.
1971
1972 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
1973
1974 * emacs.c (main): Don't call keys_of_macros any more.
1975
1976 * lisp.h (keys_of_macros): Remove.
1977
1978 * macros.c (keys_of_macros): Remove.
1979
1980 * xfaces.c (Fface_attribute_relative_p): Declare args.
1981
1982 2001-10-30 Jason Rumney <jasonr@gnu.org>
1983
1984 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
1985 (enum_font_cb2): Ignore fonts with vertical orientation.
1986
1987 2001-10-30 Richard M. Stallman <rms@gnu.org>
1988
1989 * keyboard.c (Finput_pending_p): Doc fix.
1990
1991 2001-10-30 Gerd Moellmann <gerd@gnu.org>
1992
1993 * xterm.c (x_after_update_window_line): Don't run the code
1994 clearing in borders for rows whose visible height is 0.
1995
1996 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
1997 resized_p flag is set. If not set, use the much less flickering
1998 method previously used.
1999
2000 * dispnew.c (change_frame_size_1): Set frame's resized_p.
2001
2002 * frame.h (struct frame) <resized_p>: New member.
2003
2004 * lread.c (to_multibyte): Ensure read_buffer is at least twice
2005 as large as the number of bytes to convert.
2006
2007 * lread.c (to_multibyte): New function.
2008 (read1): Use it.
2009
2010 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
2011
2012 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
2013
2014 2001-10-30 Gerd Moellmann <gerd@gnu.org>
2015
2016 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
2017 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
2018 if the row's fill_line_p is set and drawing the last glyph with
2019 DRAW_IMAGE_{RAISED,SUNKEN}.
2020
2021 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
2022
2023 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
2024
2025 * xmenu.c: Include coding.h and charset.h.
2026 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
2027 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
2028 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
2029 Explicitly set wv->help. Use `TRUE' rather than `True'.
2030 (menu_help_callback): Use empty_string.
2031
2032 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
2033 (Fx_popup_dialog): Explicitly init f.
2034 (w32_menu_display_help): Use empty_string.
2035
2036 2001-10-29 Richard M. Stallman <rms@gnu.org>
2037
2038 * fns.c (Frequire): Detect recursive try to require the same
2039 feature 3 or more levels deep, and get error.
2040 (require_unwind): New subroutine.
2041 (require_nesting_list): New variable.
2042 (syms_of_fns): Init and staticpro it.
2043
2044 * print.c (print_object): Clarify indication of insertion type.
2045
2046 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
2047
2048 * coding.c (syms_of_coding): Document that locale-coding-system is
2049 used for decoding input on X.
2050
2051 * window.c (Fscroll_left, Fscroll_right): Doc fix.
2052
2053 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2054
2055 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
2056 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
2057
2058 2001-10-29 Gerd Moellmann <gerd@gnu.org>
2059
2060 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
2061 use NO_CURSOR if cursor_in_non_selected_windows is false.
2062
2063 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
2064 the slant attribute if FRAME is t.
2065
2066 * xfns.c (x_set_internal_border_width): Set frame garbaged
2067 when X window doesn't exist yet.
2068
2069 * xterm.c (x_after_update_window_line): Clear internal border
2070 in different circumstances.
2071
2072 * xterm.c (XTread_socket) <KeyPress>: Don't use
2073 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
2074 <handa@etl.go.jp>.
2075
2076 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
2077
2078 * m/ibms390.h: New file. From Adam Thornton
2079 <athornton@sinenomine.net>.
2080
2081 2001-10-28 Gerd Moellmann <gerd@gnu.org>
2082
2083 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
2084
2085 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
2086 a loop counter.
2087
2088 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2089
2090 * emacs.c: Use argv[0] instead of emacs when -t was specified.
2091
2092 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
2093 keyword].
2094 Fix typos in comments.
2095
2096 * emacs.c (bug_reporting_address): New function.
2097 Use it when displaying usage message.
2098
2099 * minibuf.c (read_minibuf): Remove unused external declaration of
2100 variable `Qread_only'.
2101
2102 * keymap.c (access_keymap): Remove unused variable `charset'.
2103
2104 2001-10-28 Miles Bader <miles@gnu.org>
2105
2106 * xfaces.c (merge_face_heights): Handle TO being relative as well.
2107 Remove #ifdef'd-out code.
2108 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
2109 (syms_of_xfaces): Initialize them.
2110
2111 2001-10-27 Jason Rumney <jasonr@gnu.org>
2112
2113 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
2114 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
2115 position using the system caret.
2116
2117 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
2118 (w32_system_caret_height, w32_system_caret_x)
2119 (w32_system_caret_y): New variables for tracking system caret.
2120 (w32_initialize): Initialize them.
2121 (x_display_and_set_cursor): Make system caret follow the active cursor.
2122
2123 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
2124 New messages types.
2125
2126 * w32term.c (note_mouse_highlight): Clear old help_echo.
2127
2128 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2129
2130 * xterm.c: Fix typo in a comment.
2131
2132 * emacs.c: Fix typos in comments.
2133 Remove unnecessary spaces.
2134 Change doc-string comments to `new style' [w/`doc:' keyword].
2135 (USAGE2): Fix typos in usage string.
2136
2137 * xterm.c: Fix typo in a comment.
2138
2139 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
2140 emacs.c.
2141
2142 2001-10-27 Gerd Moellmann <gerd@gnu.org>
2143
2144 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
2145 instead of 1/2 line_height in the heuristic for skipping
2146 farther backward when target_y was not reached.
2147
2148 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
2149 Display errno only if non-zero.
2150 (sound_warning): New function.
2151 (vox_configure): Don't treat failing to set sample rate as error.
2152 (various places): Improve error messages.
2153
2154 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
2155
2156 * fileio.c (Faccess_file): Run the argument filename through
2157 Fexpand_file_name, before using it.
2158
2159 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
2160 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
2161
2162 2001-10-26 Gerd Moellmann <gerd@gnu.org>
2163
2164 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
2165
2166 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
2167 Fix clearing in the case of scroll bars on the right.
2168
2169 2001-10-26 Juanma Barranquero <lektu@terra.es>
2170
2171 * w32gui.h (XImage): Add a dummy typedef.
2172
2173 2001-10-26 Gerd Moellmann <gerd@gnu.org>
2174
2175 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
2176
2177 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
2178
2179 * frame.c (Fframe_parameter): Fix last change.
2180
2181 * fileio.c: Revert last change (which removed old commented-out
2182 version of expand-file-name). Add a comment that explains why
2183 this old version should not be removed.
2184
2185 2001-10-25 Gerd Moellmann <gerd@gnu.org>
2186
2187 * frame.c (Fframe_parameter): Fix a bug whereby some
2188 ``artificial'' frame parameters, like `minibuffer' were not
2189 obtained by calling Fframe_parameters.
2190
2191 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
2192 cursor differently.
2193
2194 * xdisp.c (move_it_vertically_backward): Compute line height
2195 differently. Add heuristic to try to be more compatible to 20.x.
2196
2197 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
2198
2199 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
2200
2201 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
2202 boolean.
2203
2204 2001-10-25 Miles Bader <miles@gnu.org>
2205
2206 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
2207 BG is a pointer to a structure, not a structure.
2208 (gif_format, png_format): Add missing commas.
2209
2210 2001-10-24 Richard M. Stallman <rms@gnu.org>
2211
2212 * xfaces.c (Fface_attributes_as_vector): New function.
2213 (syms_of_xfaces): Defsubr it.
2214
2215 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2216
2217 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
2218 variable `area'.
2219
2220 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2221
2222 * search.c (scan_newline): Remove unused variable `selective_display'.
2223
2224 2001-10-25 Miles Bader <miles@gnu.org>
2225
2226 * dispextern.h (struct image): Add `background',
2227 `background_valid', and `background_transparent' fields.
2228 (image_background, image_background_transparent): New declarations.
2229 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
2230 * xfns.c (image_background, image_background_transparent)
2231 (four_corners_best): New functions.
2232 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
2233 (gs_format): Add `:background' entry.
2234 (lookup_image): Set IMG's background color if specified.
2235 (pbm_load, xbm_load_image, png_load): Set IMG's background field
2236 when appropriate.
2237 (x_clear_image_1): Reset `background_valid' and
2238 `background_transparent_valid' fields.
2239 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
2240 calculating it here. Set IMG's background_transparent field.
2241 (enum xpm_keyword_index): Add XPM_BACKGROUND.
2242 (enum png_keyword_index): Add PNG_BACKGROUND.
2243 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
2244 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
2245 (enum gif_keyword_index): Add GIF_BACKGROUND.
2246 (enum gs_keyword_index): Add GS_BACKGROUND.
2247 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
2248 Pre-calculate image background color where necessary.
2249 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
2250 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
2251 color to use for image glyph reliefs.
2252
2253 2001-10-24 Gerd Moellmann <gerd@gnu.org>
2254
2255 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
2256 in full-width rows.
2257
2258 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
2259 Fix clearing of area not covered by scroll bar.
2260
2261 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2262
2263 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
2264 and `real_start'.
2265 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2266 (glyph_rect): Remove unused variable `area'.
2267
2268 2001-10-24 Gerd Moellmann <gerd@gnu.org>
2269
2270 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
2271
2272 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
2273 (row_containing_pos): Take additional argument DY.
2274 Treat rows ending in middle of char differently.
2275 (display_line): Handle tabs on window systems differently.
2276
2277 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
2278 with additional argument.
2279
2280 * dispextern.h (row_containing_pos): Adjust prototype.
2281
2282 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
2283 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
2284 (try_window_id, try_window_reusing_current_matrix)
2285 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
2286 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
2287
2288 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2289
2290 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
2291 gnuemacs).
2292 (HAVE_BOXES): Fix typo in comment.
2293 (push_menu_pane): Fix typo in comment.
2294
2295 * xdisp.c: (display_prop_string_p): Remove unused local declaration
2296 of `Qwhen'.
2297 (single_display_prop_string_p): Remove unused local declarations
2298 of `Qwhen' and `Qmargin'.
2299 (string_buffer_position): Remove unused variable `around'.
2300 (store_frame_title): Remove unused variable `width'.
2301
2302 * window.c: Don't define max.
2303 (coordinates_in_window): Remove unused variable `uy'.
2304
2305 * widget.c: Don't define max.
2306
2307 * process.c: Don't define max.
2308 (create_process): Remove unused variable `buffer'.
2309
2310 2001-10-23 Gerd Moellmann <gerd@gnu.org>
2311
2312 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
2313
2314 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
2315
2316 * xfaces.c (Finternal_set_lisp_face_attribute)
2317 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
2318 frame is on a windowed display.
2319
2320 2001-10-23 Gerd Moellmann <gerd@gnu.org>
2321
2322 * dispnew.c (sync_window_with_frame_matrix_rows):
2323 Fix handling of windows which aren't full-width, fix handling
2324 of marginal areas.
2325
2326 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
2327
2328 2001-10-23 Andreas Schwab <schwab@suse.de>
2329
2330 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
2331 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
2332
2333 2001-10-23 Gerd Moellmann <gerd@gnu.org>
2334
2335 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
2336 REAL_END. Notice if cursor gets overwritten.
2337 (notice_overwritten_cursor): Take X positions as parameters.
2338 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
2339 around call to x_draw_glyphs.
2340
2341 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2342
2343 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
2344 instead of C) and usage.
2345
2346 * editfns.c (char-to-string): Fix argument names (use CHAR instead
2347 of C) and usage.
2348
2349 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
2350 `left', `max_width' and `max_height'.
2351
2352 2001-10-23 Gerd Moellmann <gerd@gnu.org>
2353
2354 * xdisp.c (display_line): For a tab continued to the next line,
2355 set row's ends_in_middle_of_char_p.
2356
2357 2001-10-22 Gerd Moellmann <gerd@gnu.org>
2358
2359 * xdisp.c (display_line): Fix computation of continuation lines
2360 width for TABs.
2361
2362 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2363
2364 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
2365 `Qlaplace'.
2366
2367 * fileio.c: Remove unused code.
2368
2369 2001-10-22 Miles Bader <miles@gnu.org>
2370
2371 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
2372 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
2373 Remove `DOC_STRINGS_IN_COMMENTS' cases.
2374
2375 2001-10-21 Jason Rumney <jasonr@gnu.org>
2376
2377 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
2378
2379 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
2380
2381 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
2382 (Finsert_string): Avoid the multi-line string literals warning.
2383
2384 2001-10-22 Miles Bader <miles@gnu.org>
2385
2386 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
2387 (Fdocumentation): Don't use it.
2388 (syms_of_doc): Don't initialize it.
2389
2390 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
2391 * print.c (Fwith_output_to_temp_buffer): Likewise.
2392 * window.c (Fsave_window_excursion): Likewise.
2393 * editfns.c (Fsave_excursion, Fsave_current_buffer)
2394 (Fsave_restriction): Likewise.
2395 * eval.c (Frun_hooks, Frun_hook_with_args)
2396 (Frun_hook_with_args_until_failure)
2397 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
2398 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
2399 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
2400 (Funwind_protect, Fcondition_case): Likewise.
2401 * coding.c (Ffind_operation_coding_system): Likewise.
2402 * keyboard.c (Ftrack_mouse): Likewise.
2403
2404 2001-10-21 Miles Bader <miles@gnu.org>
2405
2406 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
2407 (Fmake_hash_table): Add usage: string to doc string.
2408 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
2409 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
2410 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
2411 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
2412 (Fml_prefix_argument_loop): Likewise.
2413
2414 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2415
2416 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
2417
2418 * sysdep.c (init_sys_modes): Change doc-string comments to `new
2419 style' [w/`doc:' keyword].
2420
2421 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
2422 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
2423 comments to `new style' [w/`doc:' keyword].
2424
2425 2001-10-21 Jason Rumney <jasonr@gnu.org>
2426
2427 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
2428
2429 * w32term.c (remember_mouse_glyph): New function.
2430 (w32_mouse_position): Use it.
2431 (note_mouse_movement): If the mouse moved off the glyph, remember
2432 its new position.
2433
2434 * w32term.h (struct w32_output): Correct spelling of x_compatible.
2435 (w32_display_info): Add mouse_face_overlay.
2436
2437 * w32term.c (notice_overwritten_cursor): Renamed from
2438 note_overwritten_text_cursor. Rewritten to take glyph widths into
2439 account.
2440 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
2441 (fast_find_string_pos): New function.
2442 (fast_find_position): Return the correct vpos. Add parameter
2443 STOP. In the final row, stop before glyphs having STOP as object.
2444 Don't consider glyphs that are not from a buffer.
2445 (fast_find_position) [0]: Add a presumably more correct version
2446 for after 21.1.
2447 (expose_window_tree, expose_frame): Don't compute intersections here.
2448 (expose_window): Do it here instead.
2449 (expose_window_tree, expose_window, expose_line): Return 1 when
2450 overwriting mouse-face.
2451 (expose_window): If W is the window currently being updated, mark
2452 the frame garbaged.
2453 (expose_frame): If mouse-face was overwritten, redo it.
2454 (x_use_underline_position_properties): New variable.
2455 (syms_of_xterm): DEFVAR_BOOL it.
2456 (x_draw_glyph_string): Add comment to use it in future.
2457 (x_draw_glyph_string): Restore clipping after drawing box.
2458 Fix a computation of the underline position.
2459 (w32_get_glyph_string_clip_rect): Minor cleanup.
2460 (x_fill_stretch_glyph_string): Remove an assertion.
2461 (x_produce_glyphs): Don't convert multibyte characters
2462 to unibyte characters in unibyte buffers.
2463 (cursor_in_mouse_face_p): New function.
2464 (x_draw_stretch_glyph_string): Use it to choose a different GC
2465 when drawing a cursor within highlighted text. Don't draw
2466 background again if it has already been drawn.
2467 (x_draw_glyph_string_box): Don't draw a full-width
2468 box just because the glyph row's full_width_p flag is set.
2469 (x_draw_glyphs): Fix computation of rightmost x for
2470 full-width rows.
2471 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
2472 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
2473 change bottom shadow accordingly. Some cleanup.
2474 (x_update_window_end): Handle overwritten mouse face
2475 also for tool bar windows.
2476 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
2477 DRAW is DRAW_IMAGE_RAISED.
2478 (clear_mouse_face): Return 1 if text with mouse face was
2479 actually redrawn. Make the function static. Reset
2480 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
2481 optimize away highlighting if we pass over that same overlay again.
2482 (note_mouse_highlight): Call mouse_face_overlay_overlaps
2483 to detect a case where we have to highlight a different region
2484 despite not having left the currently highlighted region.
2485 Set mouse_face_overlay in the x_display_info. Avoid changing the
2486 mouse pointer shape when show_mouse_face has already done it, or
2487 there is no need. Handle mouse-face and help-echo in strings.
2488 (glyph_rect): New function.
2489 (w32_mouse_position): Use it to raise the threshold for mouse
2490 movement event generation.
2491 (w32_initialize_display_info): Initialize the x_display_info's
2492 mouse_face_overlay.
2493 (w32_set_vertical_scroll_bar): Don't clear a zero height
2494 or width area.
2495 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
2496 a widget to zero height.
2497
2498 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
2499 Protect unibyte strings created by replacing their multibyte
2500 equivalents in menu_items.
2501 (w32_menu_show): Don't overwrite an item's name with its key
2502 description in case the description is a multibyte string.
2503 (single_submenu): Some cleanup.
2504
2505 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
2506 (postprocess_image): New function.
2507 (lookup_image): Call it for all image types except PostScript.
2508 (x_kill_gs_process): Call postprocess_image.
2509 (tiff_error_handler, tiff_warning_handler): New functions.
2510 (tiff_load): Install them as handlers.
2511 (x_kill_gs_process): Recognize if someone has cleared the image
2512 cache under us.
2513 (valid_image_p): Protect better against invalid image
2514 specifications. Previous code could signal an error.
2515 (Fx_hide_tip, Fshow_tip): Doc fix.
2516 (Fv_max_tooltip_size): New variable.
2517 (syns_of_xfns): DEFVAR_LISP it.
2518 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
2519 window buffer to *tip* right after creating the frame. Set frame's
2520 window_width. Use a maximum tooltip size specified by
2521 Vx_max_tooltip_size, if that has valid contents.
2522 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
2523 Make sure the tooltip is completely visible.
2524 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
2525 (Fx_create_frame): Adjust the frame's height for presence
2526 of the tool bar before calling x_figure_window_size.
2527 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
2528 when the window gets smaller.
2529 (x_set_foreground_color): Set frame's cursor_pixel.
2530 (x_set_foreground_color, x_set_background_color): Cleaned up.
2531 (x_set_font): Handle case of x_new_fontset returning the same name
2532 as before, although there was a change in fontsets.
2533
2534 2001-10-21 Miles Bader <miles@gnu.org>
2535
2536 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
2537 (Flogxor): Add usage: string to doc string.
2538 * charset.c (Fstring): Likewise.
2539 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
2540 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
2541
2542 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2543
2544 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
2545
2546 * alloc.c: Reindent DEFUNs with doc: keywords.
2547
2548 * abbrev.c (Finsert_abbrev_table_description): Reindent.
2549
2550 * frame.c: Change doc-string comments to `new style' [w/`doc:'
2551 keyword].
2552
2553 2001-10-20 Gerd Moellmann <gerd@gnu.org>
2554
2555 * (Version 21.1 released.)
2556
2557 2001-10-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2558
2559 * xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes removed.
2560
2561 * xdisp.c (invisible_text_between_p): Put prototype inside #if
2562 0 because unused.
2563
2564 * bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c
2565 * category.c, ccl.c, charset.c, process.c, syntax.c, window.c:
2566 Change doc-string comments to `new style' [w/`doc:' keyword].
2567
2568 2001-10-20 Miles Bader <miles@gnu.org>
2569
2570 The following changes remove the glyph_row `inverse_p' field,
2571 which is never set anymore, due to other changes:
2572
2573 * dispextern.h (struct glyph_row): Remove `inverse_p' field.
2574 (reassert_line_highlight, change_line_highlight): Declarations removed.
2575 * dispnew.c (update_frame_line): Don't call reassert_line_highlight.
2576 (line_hash_code, row_equal_p, fake_current_matrices)
2577 (build_frame_matrix_from_leaf_window, update_frame_line)
2578 (update_frame_line, update_frame_line, update_frame_line):
2579 Don't use `inverse_p' field.
2580 * xterm.c (x_initialize): Don't set reassert_line_highlight_hook or
2581 change_line_highlight_hook.
2582 (XTreassert_line_highlight, x_change_line_highlight):
2583 Functions removed.
2584 (x_fix_overlapping_area, x_write_glyphs, expose_area)
2585 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
2586 * xdisp.c (dump_glyph_row, display_mode_line): Don't use
2587 `inverse_p' field.
2588 * w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area)
2589 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
2590 (w32_reassert_line_highlight, x_change_line_highlight):
2591 Functions removed.
2592 * w32console.c (reassert_line_highlight, change_line_highlight):
2593 Functions removed.
2594 (initialize_w32_display): Don't set reassert_line_highlight_hook
2595 or change_line_highlight_hook.
2596 (hl_mode): Function removed.
2597 (reset_terminal_modes, set_terminal_modes, update_begin)
2598 (update_end, w32_face_attributes, initialize_w32_display):
2599 (clear_frame, ins_del_lines): Don't call it.
2600 * termhooks.h (reassert_line_highlight_hook)
2601 (change_line_highlight_hook): Declarations removed.
2602 * term.c (reassert_line_highlight_hook)
2603 (change_line_highlight_hook): Variables removed.
2604 (reassert_line_highlight, change_line_highlight): Functions removed.
2605 * msdos.c (IT_reassert_line_highlight)
2606 (IT_change_line_highlight): Functions removed.
2607 (internal_terminal_init): Don't set reassert_line_highlight_hook
2608 or change_line_highlight_hook.
2609 (highlight): Variable removed.
2610 (IT_set_face, IT_update_begin, IT_update_end)
2611 (IT_set_terminal_modes): Don't set or use it.
2612
2613 The following changes remove inverse-video support for terminals
2614 that use a `magic cookie' standout mode. Due to changes in the
2615 way mode-lines are displayed, such support no longer works
2616 anyway, and it's probable that almost no one uses such terminals
2617 anymore:
2618
2619 * term.c (standout_requested): Variable removed.
2620 (update_end, highlight_if_desired): Don't use it.
2621 (chars_wasted, copybuf): Variables removed.
2622 (write_standout_marker): Function removed.
2623 (cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
2624 (clear_end_of_line_raw, write_glyphs, ins_del_lines):
2625 Don't use `chars_wasted' or `copybuf'.
2626 (calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
2627 Set `costs_set' to true.
2628 (cursor_to, clear_end_of_line): Test `costs_set' instead of
2629 `chars_wasted'.
2630 (clear_end_of_line): Function removed.
2631 (clear_end_of_line_raw): Renamed to `clear_end_of_line'.
2632 (clear_to_end): Call `clear_end_of_line' instead of
2633 `clear_end_of_line_raw'.
2634 (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Vars removed.
2635 (term_init): Don't set them.
2636 Turn off any standout/underline modes that require magic cookies.
2637 (ins_del_lines, highlight_if_desired, background_highlight)
2638 (turn_on_highlight, turn_off_highlight, reset_terminal_modes):
2639 Remove special processing for magic-cookie standout modes.
2640 (turn_off_face, turn_on_face): Remove special processing for
2641 underline magic-cookie glitch.
2642
2643 2001-10-19 Richard M. Stallman <rms@gnu.org>
2644
2645 * eval.c (syms_of_eval): Doc fixes.
2646
2647 2001-10-19 Gerd Moellmann <gerd@gnu.org>
2648
2649 * xdisp.c (redisplay_internal): Don't clear echo area if the
2650 mini-window is selected.
2651
2652 2001-10-19 Miles Bader <miles@gnu.org>
2653
2654 * editfns.c (text_property_stickiness): Non-rear-non-stickiness
2655 doesn't take precedence if the affected property's value is nil.
2656
2657 * editfns.c (Fencode_time): Escape a BOL paren in the doc-string.
2658
2659 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify interaction
2660 with fields and suggest using `forward-line' to avoid them.
2661 * editfns.c (Fline_beginning_position, Fline_end_position):
2662 Clarify documentation.
2663
2664 2001-10-18 Stefan Monnier <monnier@cs.yale.edu>
2665
2666 * keymap.c (current_minor_maps): `override' only shadows its
2667 correspondent in minor-mode-map-alist, not the whole tail.
2668
2669 2001-10-18 Andrew Innes <andrewi@gnu.org>
2670
2671 * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
2672 optimization. The fontp->encoding array was not being initialized
2673 correctly when compiled with optimizations by MSVC.
2674
2675 2001-10-18 Gerd Moellmann <gerd@gnu.org>
2676
2677 * xdisp.c (display_line): Indicate empty lines in active mini-window.
2678
2679 2001-10-17 Andrew Innes <andrewi@gnu.org>
2680
2681 * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.
2682
2683 * w32fns.c (w32_load_system_font): Cache codepage for font, in
2684 font_info.charset field.
2685
2686 * w32term.c (w32_encode_char): Get cached codepage from font_info,
2687 rather than working it out by calling w32_codepage_for_font for
2688 every glyph.
2689
2690 2001-10-17 Andrew Innes <andrewi@gnu.org>
2691
2692 * w32term.c (w32_read_socket): Determine clipping rectangle for
2693 the entire frame, including areas covered by scrollbars and the
2694 menubar. This avoids internal arguments about whether a frame is
2695 fully obscured or not.
2696
2697 2001-10-17 Gerd Moellmann <gerd@gnu.org>
2698
2699 * xdisp.c (try_window_id): Undo last change. Give up if
2700 window ends in strings.
2701
2702 * xdisp.c (try_window_id): Don't display lines after the window
2703 end if the rest of the window after the window end was already blank.
2704
2705 * xdisp.c (try_window_id): Remove code that was only there
2706 for the release of 21.1.
2707
2708 * xdisp.c (display_line): Don't indicate empty lines in mini-windows.
2709
2710 2001-10-17 Miles Bader <miles@gnu.org>
2711
2712 * lisp.h (DEFUN): Remove `DOC_STRINGS_IN_COMMENTS' case.
2713 * xmenu.c, xdisp.c, term.c, dispnew.c, abbrev.c, editfns.c, buffer.c
2714 * xfns.c, alloc.c, minibuf.c, xterm.c, xfaces.c:
2715 Change doc-string comments to `new style' [w/`doc:' keyword].
2716 (DOC_STRINGS_IN_COMMENTS): Macro removed.
2717 * minibuf.c: Remove old commented-out-DEFUN that was used to fake
2718 out make-docfile.
2719
2720 2001-10-16 Miles Bader <miles@gnu.org>
2721
2722 * fns.c: Change doc-string comments to `new style' [w/`doc:' keyword].
2723
2724 2001-10-16 Gerd Moellmann <gerd@gnu.org>
2725
2726 * buffer.c (Fset_buffer_major_mode): Use initial-major-mode for
2727 *scratch*.
2728
2729 2001-10-16 Ken Raeburn <raeburn@gnu.org>
2730
2731 Avoid the assumption that car and cdr slots of cons cells are
2732 addressable lvalues; this allows for easier experimentation with
2733 other lisp implementations that may not permit such accesses for
2734 various reasons. Not quite complete -- buffer.c still needs some
2735 work, and w32/mac files need rechecking -- so compile-time
2736 enforcement is left disabled for now.
2737
2738 * lisp.h (LISP_MAKE_RVALUE): New macro, or function in the case of
2739 gcc with a union-based Lisp object rep. Redefine as no-op for now.
2740 (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Rename from old XCAR, XCDR.
2741 (XCAR, XCDR): Apply LISP_MAKE_RVALUE to the _AS_LVALUE versions.
2742 (XSETCAR, XSETCDR): New macros.
2743 (XSETCARFASTINT, XSETCDRFASTINT): New macros.
2744 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): New macros.
2745 * keyboard.h (POSN_BUFFER_SET_POSN): New macro.
2746 * alloc.c (Fcons, pure_cons, Fgarbage_collect): Use XSETCAR and
2747 XSETCDR.
2748 (mark_buffer): Use XCAR_AS_LVALUE, XCDR_AS_LVALUE.
2749 * buffer.c (record_buffer, Fbury_buffer)
2750 (swap_out_buffer_local_variables, recenter_overlay_lists)
2751 (Foverlay_put): Use XSETCAR and XSETCDR to set the car and cdr
2752 fields of a cons cell respectively.
2753 * callint.c (quotify_args, Fcall_interactively): Likewise.
2754 * ccl.c (Fregister_code_conversion_map): Likewise.
2755 * coding.c (detect_coding_system): Likewise.
2756 * composite.c (get_composition_id, make_composition_value_copy):
2757 Likewise.
2758 * data.c (Fsetcar, Fsetcdr, swap_in_global_binding)
2759 (swap_in_symval_forwarding, set_internal, Fset_default)
2760 (Fmake_variable_buffer_local, Fmake_local_variable)
2761 (Fmake_variable_frame_local): Likewise.
2762 * fns.c (concat, Fcopy_alist, Fwidget_put): Likewise.
2763 * keymap.c (Fset_keymap_parent, store_in_keymap)
2764 (accessible_keymaps_1, where_is_internal_2, Fcopy_keymap): Likewise.
2765 * minibuf.c (get_minibuffer): Likewise.
2766 * search.c (Fmatch_data): Likewise.
2767 * textprop.c (extend_property_ranges): Likewise.
2768 * undo.c (record_insert, Fundo_boundary, truncate_undo_list): Likewise.
2769 * w32fns.c (w32_msg_pump, Fw32_register_hot_key, w32_list_fonts):
2770 Likewise.
2771 * w32term.c (x_delete_display): Likewise.
2772 * xfaces.c (remove_duplicates, Finternal_set_lisp_face_attribute):
2773 Likewise.
2774 * xterm.c (x_list_fonts, x_load_font, x_delete_display): Likewise.
2775 * doc.c (store_function_docstring): Use XSETCARFASTINT.
2776 * fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT.
2777 (Fread_file_name): Use XSETCAR.
2778 * fontset.c (Fset_fontset_font): Use CHECK_NUMBER_CAR and
2779 CHECK_NUMBER_CDR.
2780 (accumulate_font_info, Ffontset_info): Use XSETCAR and XSETCDR.
2781 * frame.c (Fmake_terminal_frame): Use XSETCDR.
2782 * indent.c (Fcompute_motion): Use CHECK_NUMBER_CAR and
2783 CHECK_NUMBER_CDR.
2784 * keyboard.c (read_char): Alter list traversal to avoid taking the
2785 address of cons cell slots. Use POSN_BUFFER_SET_POSN.
2786 (parse_menu_item): Use XSETCAR and XSETCDR.
2787 (reach_char_x_menu_prompt): Use XSETCAR.
2788 (read_key_sequence): Use POSN_BUFFER_SET_POSN.
2789 (Fcommand_execute): Use XSETCDR.
2790 * lread.c (Fload): Use XSETCARFASTINT and XSETCDRFASTINT.
2791 (openp): Change list traversal to avoid using XCAR as lvalue.
2792 (read_list): Use XSETCDR.
2793 * process.c (wait_reading_process_input): Change wait_for_cell
2794 handling to avoid taking addresses of cons cell slots.
2795 * xselect.c (x_own_selection, x_handle_selection_clear)
2796 (x_clear_frame_selections): Use XSETCDR.
2797 (wait_for_property_change): Use XSETCARFASTINT and XSETCDRFASTINT.
2798 (x_handle_property_notify, x_get_foreign_selection)
2799 (x_handle_selection_notify): Use XSETCAR.
2800
2801 2001-10-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2802
2803 * buffer.c: Put doc strings in comments.
2804
2805 * sound.c: Include <sys/ioctl.h> also on systems without <soundcard.h>.
2806
2807 2001-10-15 Sam Steingold <sds@gnu.org>
2808
2809 * fns.c (Vafter_load_alist): Declare extern (w32 build problem).
2810
2811 2001-10-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2812
2813 * process.c (process-inherit-coding-system-flag)
2814 (get-buffer-process): Do not confuse make-docfile with doc strings
2815 in comment.
2816
2817 * editfns.c (Fchar_to_string): Make doc string consistent with
2818 arguments. Put doc strings in comments.
2819
2820 * abbrev.c, minibuf.c: Put doc strings in comments.
2821
2822 2001-10-15 Gerd Moellmann <gerd@gnu.org>
2823
2824 * window.c (window_loop): Don't check for Fother_buffer returning nil.
2825
2826 * window.c (select_window_1): Unfreeze window start. Remove a
2827 doubled test for WINDOW being live.
2828
2829 2001-10-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2830
2831 * fns.c (Fmapconcat): Fix typo in a doc string.
2832
2833 * dispnew.c (Fsleep_for): Fix typo in a doc string.
2834
2835 2001-10-15 Gerd Moellmann <gerd@gnu.org>
2836
2837 * xterm.c (x_draw_glyph_string): Restore clipping after
2838 drawing box.
2839
2840 2001-10-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2841
2842 * callint.c (prefix-arg, current-prefix-arg): Fix typo in a doc string.
2843
2844 2001-10-14 Stefan Monnier <monnier@cs.yale.edu>
2845
2846 * indent.c (skip_invisible): Use new retval of
2847 TEXT_PROP_MEANS_INVISIBLE.
2848
2849 * keymap.c (access_keymap): Unify handling of `t' and generic-char.
2850 If a parent is reached and noinherit is set, exit immediately.
2851 Use AREF and ASIZE macros. Call get_keyelt before checking KEYMAPP.
2852
2853 * s/ms-w32.h (EXEC_SUFFIXES):
2854 * s/msdos.h (EXEC_SUFFIXES):
2855 * process.h (EXEC_SUFFIXES): Remove.
2856
2857 * callproc.c (syms_of_callproc): Init Vexec_suffixes to Qnil.
2858 (decode_suffixes): Remove.
2859
2860 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS)
2861 (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS, invisible_noellipsis_p)
2862 (invisible_ellipsis_p): Remove.
2863
2864 * xdisp.c (DOLIST, LOOP_PROPVAL): Remove.
2865 (invisible_p): Return 1 or 2 depending on whether an ellipsis is used.
2866 (invisible_ellipsis_p, invisible_noellipsis_p): Remove.
2867 (in_ellipses_for_invisible_text_p, handle_invisible_prop):
2868 Use new retval of TEXT_PROP_MEANS_INVISIBLE.
2869
2870 2001-10-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2871
2872 * lisp.h (Ftop_level): Add prototype.
2873
2874 * xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
2875 (XTread_socket): Improve style of comments to follow other
2876 comments.
2877
2878 * keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
2879 is already prototyped in included lisp.h).
2880
2881 * frame.c (Fset_mouse_position): Improve style of comment to
2882 follow other comments.
2883 (Fset_mouse_pixel_position): Improve style of comment to follow
2884 other comments.
2885 (Fmake_frame_visible): Doc fix and typo in comment.
2886 (Fmake_frame_invisible): Doc fix and typo in comment.
2887 (Ficonify_frame): Fix typo in comment.
2888
2889 2001-10-14 Gerd Moellmann <gerd@gnu.org>
2890
2891 * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c
2892 * term.c, alloc.c: Put doc strings in comments.
2893
2894 2001-10-13 Gerd Moellmann <gerd@gnu.org>
2895
2896 * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
2897 Provide definitions for doc strings in comments.
2898
2899 * fns.c: Put doc strings in comments.
2900
2901 2001-10-13 Eli Zaretskii <eliz@is.elta.co.il>
2902
2903 * dired.c (file_name_completion): Ignore a candidate directory if
2904 it matches an element in completion-ignored-extensions that ends
2905 in a slash.
2906 (syms_of_dired) <completion-ignored-extensions>: Mention the above
2907 feature in the doc string.
2908 (Ffile_name_completion): Ditto.
2909
2910 2001-10-12 Stefan Monnier <monnier@cs.yale.edu>
2911
2912 * indent.c (skip_invisible): Don't skip "ellipsisized" text.
2913
2914 * xfns.c (syms_of_xfns): Update calls to Fprovide.
2915
2916 * lisp.h (Fprovide): Update prototype.
2917 (Ffeaturep, invisible_p): Remove.
2918
2919 * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
2920 (DOLIST, LOOP_PROPVAL): New macros.
2921 (invisible_p, invisible_ellipsis_p): Use them.
2922 (invisible_noellipsis_p): New function.
2923 (syms_of_xdisp): Use empty_string.
2924
2925 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
2926
2927 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
2928 (syms_of_lread) <Vafter_load_alist>: Update docstring.
2929
2930 * print.c (Fwith_output_to_temp_buffer): Align with
2931 internal_with_output_to_temp_buffer.
2932 (print_preprocess): Use traverse_intervals_noorder.
2933 (print_object): Update call to traverse_intervals.
2934
2935 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
2936 (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
2937
2938 * intervals.c (traverse_intervals_noorder): New function.
2939 (search_for_interval, count_intervals): Use it.
2940 (traverse_intervals): Use less stack space and drop `depth' arg.
2941
2942 * fns.c (Ffeaturep): Add new `subfeature' arg.
2943 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'.
2944 (Qsubfeatures): New var.
2945 (syms_of_fns): Initialize it.
2946
2947 * keymap.c (Fkey_description): Use empty_string.
2948 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
2949 (syms_of_keymap): Setup inheritance between maps.
2950 Don't export Sdescribe_bindings_internal any more.
2951
2952 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
2953
2954 2001-10-12 Gerd Moellmann <gerd@gnu.org>
2955
2956 * xterm.c (notice_overwritten_cursor): Renamed from
2957 note_overwritten_text_cursor. Rewritten to take glyph widths into
2958 account.
2959
2960 2001-10-12 Eli Zaretskii <eliz@is.elta.co.il>
2961
2962 * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
2963 multi-line strings without a trailing "\n\".
2964
2965 2001-10-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2966
2967 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
2968 defined.
2969
2970 2001-10-11 Stefan Monnier <monnier@cs.yale.edu>
2971
2972 * callint.c (Fcall_interactively): Remove unused code. Use XCAR.
2973
2974 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
2975 * w32proc.c (sys_spawnve):
2976 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
2977 * w32.c (check_windows_init_file):
2978 * sound.c (Fplay_sound):
2979 * emacs.c (init_cmdargs):
2980 * process.c (Fstart_process): Update calls to openp.
2981
2982 * callproc.c (Vexec_suffixes): New var.
2983 (Fcall_process): Update call to openp.
2984 (decode_suffixes): New function.
2985 (syms_of_callproc): Init exec-suffixes.
2986
2987 * lread.c (Vload_suffixes, default_suffixes): New vars.
2988 (openp): Take a lisp list of suffixes.
2989 Check for file-name-handlers even if the file was absolute already.
2990 (syms_of_lread): Declare load-suffixes.
2991 (Fload): Fix up call to openp.
2992 Don't bother checking for file-name-handler at the very beginning.
2993
2994 * keymap.h (Fcopy_keymap): Don't export.
2995
2996 * lisp.h (empty_string): Declare.
2997 (Vload_suffixes, Vexec_suffixes): Declare.
2998 (openp): Update prototype.
2999
3000 * emacs.c (empty_string): New var.
3001 (syms_of_emacs): Initialize it.
3002
3003 * search.c (wordify): Use it.
3004
3005 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
3006 selected window if it's not displayed there. Handle the case
3007 when the window is dedicated.
3008 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
3009
3010 * undo.c (Fprimitive_undo): Use XCAR/XCDR.
3011
3012 * syntax.h (struct gl_state_s): Change the meaning of b_property.
3013 Remove left_ok and right_ok.
3014 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
3015 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
3016 new meaning of b_property.
3017
3018 * syntax.c (update_syntax_table): Simplify.
3019 (Fforward_comment): Don't skip quoted chars when going backward.
3020
3021 2001-10-11 Gerd Moellmann <gerd@gnu.org>
3022
3023 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
3024 in case I is of some unsigned type, in which case
3025 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
3026 comparison becomes bogus.
3027
3028 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
3029 (Fuser_full_name): Fix bug treating a float as a fixnum.
3030
3031 * data.c (Fstring_to_number): Use make_fixnum_or_float.
3032
3033 * lisp.h (make_fixnum_or_float): New macro.
3034
3035 * lisp.h (circular_list_error): Add prototype.
3036
3037 * data.c (Qcircular_list): New variable.
3038 (circular_list_error): New function.
3039 (syms_of_data): Initialize it Qcircular_list.
3040
3041 2001-10-10 Stefan Monnier <monnier@cs.yale.edu>
3042
3043 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c
3044 * casefiddle.c, buffer.c: Include keymap.h.
3045
3046 2001-10-10 Gerd Moellmann <gerd@gnu.org>
3047
3048 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
3049 options. From Dave Love <d.love@dl.ac.uk>.
3050
3051 2001-10-09 Gerd Moellmann <gerd@gnu.org>
3052
3053 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
3054 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
3055
3056 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
3057 unsigned char.
3058 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
3059
3060 2001-10-08 Andrew Innes <andrewi@gnu.org>
3061
3062 * lisp.h [max]: Undef min and max before redefining them.
3063
3064 * w32gui.h: Do not undef min and max.
3065
3066 * w32heap.h: Do not undef min and max.
3067
3068 * s/ms-w32.h: Do not undef min and max.
3069
3070 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
3071
3072 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
3073
3074 2001-10-08 Sam Steingold <sds@gnu.org>
3075
3076 * keymap.c (current-active-maps): Quote newlines (compilation error).
3077
3078 2001-10-08 Eli Zaretskii <eliz@is.elta.co.il>
3079
3080 * Makefile.in (lisp, shortlisp): Replace bindings.el with
3081 bindings.elc, since otherwise doc strings in bindings.el get wrong
3082 offsets in etc/DOC.
3083
3084 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
3085
3086 * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
3087
3088 * keyboard.h (map_prompt): Remove.
3089
3090 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
3091 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
3092
3093 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
3094
3095 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
3096
3097 * keyboard.c (map_prompt): Remove.
3098 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
3099 Use Fkeymap_prompt.
3100
3101 * keymap.h: New file. Extracted from lisp.h.
3102
3103 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
3104 (accessible_keymaps_1): New function.
3105 (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
3106 (Fwhere_is_internal): Use Fcurrent_active_maps.
3107 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
3108 Insert in current buffer rather than standard-output.
3109 Don't call `help-mode'. Export to elisp.
3110 (describe_buffer_bindings): New wrapper.
3111 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
3112 and Sdescribe_buffer_bindings.
3113
3114 2001-10-08 Gerd Moellmann <gerd@gnu.org>
3115
3116 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
3117 Remove code setting signal handler.
3118
3119 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
3120 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>.
3121
3122 2001-10-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3123
3124 * keyboard.c: Don't define min/max.
3125
3126 2001-10-08 Gerd Moellmann <gerd@gnu.org>
3127
3128 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
3129 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
3130 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
3131 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
3132 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
3133 Don't define min/max.
3134
3135 * lisp.h (min, max): New macros.
3136
3137 * puresize.h (BASE_PURESIZE): Increase to 725000.
3138
3139 2001-10-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3140
3141 * xfaces.c (free_frame_menubar): Add prototype.
3142
3143 * lisp.h (init_window): Add prototype.
3144
3145 * editfns.c: Include ctype.h.
3146
3147 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
3148 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
3149 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
3150 variable `sb'.
3151
3152 * xfns.c (Fx_hide_tip): Fix typo in a doc string.
3153 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
3154 `popup_activated_flag' and `title'.
3155
3156 * doc.c (Fdocumentation_property): Fix typo in a doc string.
3157
3158 * emacs.c (main): Remove extra `;'.
3159
3160 * atimer.h (struct atimer): Fix typos in a comment.
3161
3162 * atimer.c: Fix typo.
3163
3164 * Makefile.in: Fix typo.
3165
3166 * README: Remove obsolete part mentioning removed VMS file.
3167
3168 2001-10-07 Miles Bader <miles@gnu.org>
3169
3170 * Makefile.in (lisp, shortlisp): Add `button.elc'.
3171
3172 2001-10-07 Ken Raeburn <raeburn@gnu.org>
3173
3174 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
3175 Lisp_Object.
3176
3177 * lisp.h (Ffield_end): Declare.
3178
3179 2001-10-07 Gerd Moellmann <gerd@gnu.org>
3180
3181 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
3182
3183 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
3184
3185 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
3186
3187 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
3188
3189 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
3190 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
3191
3192 * alloc.c (inhibit_garbage_collection): Simplify.
3193 (Fmemory_use_counts): Ditto.
3194
3195 * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
3196 (syms_of_data): DEFVAR_INT most-positive-fixnum and
3197 most-negative-fixnum.
3198
3199 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
3200 (FIXNUM_OVERFLOW_P): New macros.
3201
3202 2001-10-06 Miles Bader <miles@gnu.org>
3203
3204 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
3205 scroll_bar_bottom_shadow_pixel fields.
3206 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
3207 for the shadows, and tell the toolkit about them if we succeed.
3208 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
3209 Free scroll-bar shadow colors.
3210 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
3211 Free scroll-bar shadow colors when the background color changes.
3212 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
3213 Initialize scroll-bar shadow-color fields.
3214
3215 2001-10-05 Gerd Moellmann <gerd@gnu.org>
3216
3217 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
3218
3219 2001-10-05 Miles Bader <miles@gnu.org>
3220
3221 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
3222 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
3223 New functions (were in simple.el).
3224 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
3225 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
3226 (syms_of_minibuf): Initialize them.
3227
3228 2001-10-05 Gerd Moellmann <gerd@gnu.org>
3229
3230 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
3231 (tiff_load): Install them as error and warning handler.
3232
3233 2001-10-04 Andrew Innes <andrewi@gnu.org>
3234
3235 * w32fns.c (x_to_w32_color): Fix argument to alloca.
3236 (w32_load_system_font): Don't believe what GetLanguageFontInfo
3237 says; query codepage info directly to determine if font is double byte.
3238 (x_to_w32_charset): Handle private format for unknown charsets.
3239 Handle wildcards in charset spec, by ignoring them.
3240 (w32_codepage_for_font): Fix argument to alloca. Don't remove
3241 "*-" prefix from charset.
3242 (x_to_w32_font): Enlarge remainder array for safety. Specifically
3243 handle the truncated font spec form constructed by font_list_1, so
3244 that we correctly identify the charset fields. Don't remove "*-"
3245 prefix from charset.
3246 (w32_list_synthesized_fonts): Fix argument to alloca.
3247
3248 2001-10-04 Stefan Monnier <monnier@cs.yale.edu>
3249
3250 * window.h (MINI_WINDOW_P): Use NILP.
3251
3252 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
3253
3254 * termhooks.h (struct input_event): Use proper type for `kind'.
3255
3256 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3257
3258 This handles unknown keysyms better than before. For example,
3259 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
3260 Emacs formerly completely ignored F5. With the change, it derives
3261 a key symbol from the name of the X keysym, `ccaron' in this case.
3262 Reported by Martin Buchholz.
3263
3264 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
3265 unknown keysyms.
3266
3267 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
3268 that EVENT->code isn't a function key, use the keysym's name.
3269
3270 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3271
3272 FOREACH is a macro that should make it easier to loop over Lisp
3273 lists with checks for cycles and proper lists.
3274
3275 * lisp.h (LIST_END_P, FOREACH): New macros.
3276
3277 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3278
3279 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
3280 called for a lost connection. Prevent dumping core in this case.
3281 Instead print the X error, and exit. On user request.
3282
3283 * xterm.c (error_msg): New variable.
3284 (x_fatal_error_signal): New function.
3285 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
3286 as fatal_error_signal_hook around the call to XtCloseDisplay.
3287
3288 * emacs.c (fatal_error_signal_hook): New variable.
3289 (fatal_error_signal): Call that function.
3290
3291 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3292
3293 With this, Emacs prints how much pure storage it will
3294 approximately need in case pure storage overflows while dumping.
3295
3296 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
3297 New variables.
3298 (init_alloc_once): Initialize new variables.
3299 (PURE_POINTER_P): Use new variables.
3300 (pure_alloc): If pure storage overflows, allocate from the heap.
3301 (check_pure_size): New function.
3302 (Fgarbage_collect): Don't GC if pure storage has overflowed.
3303
3304 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
3305 (check_pure_size): Add prototype.
3306
3307 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
3308
3309 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3310
3311 This adds a post-gc-hook that's run with GC inhibited.
3312 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
3313
3314 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
3315 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
3316 (Fgarbage_collect): Run post-gc-hook.
3317
3318 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3319
3320 This adds `defvaralias' and `indirect-variable'. Changes not
3321 directly related to this feature are there to gain the same
3322 performance again as before variable aliases.
3323
3324 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
3325 code to get and set symbol values, to take defvaralias into account.
3326
3327 (Note: the new `constant' bit-flag in symbols would make it
3328 possible to define arbitrary read-only variables, e.g. with
3329 `defconst'.)
3330
3331 Documentation is in lispref/variables.texi. Added to NEWS.
3332
3333 * lisp.h (enum symbol_interned): New enumeration.
3334 (struct Lisp_Symbol): Remove member `obarray', add
3335 `indirect_variable', `constant', and `interned'.
3336 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
3337 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
3338 (indirect_variable): Add prototype.
3339
3340 * print.c (print_preprocess, print_object): Test internedness of
3341 symbols differently.
3342
3343 * lread.c (Fintern, Funintern): Set symbol's interned and constant
3344 bit-fields.
3345 (init_obarray): Likewise for t and nil.
3346
3347 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
3348 (Fdefvaralias): New function.
3349 (specbind): Simplify the test if symbol is a constant.
3350 (syms_of_eval): Defsubr Fdefvaralias.
3351
3352 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
3353 (Qcyclic_variable_indirection): New variable.
3354 (Fkeywordp): Check for internedness differently.
3355 (Fmakunbound): Simplify the test if symbol is a constant.
3356 (indirect_variable, Findirect_variable): New functions.
3357 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
3358 aliased symbol.
3359 (let_shadows_buffer_binding_p): Check for variable aliases.
3360 (set_internal): Simplify the test if SYMBOL is a constant.
3361 If SYMBOL has a buffer-local value and is an alias, use the aliased
3362 symbol instead.
3363 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
3364 Sindirect_variable.
3365
3366 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
3367 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
3368 set directly.
3369
3370 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
3371
3372 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
3373 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
3374 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
3375
3376 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3377
3378 * Branch for 21.1.
3379
3380 2001-10-03 Miles Bader <miles@gnu.org>
3381
3382 * callproc.c (syms_of_callproc): Explicitly state in the
3383 documentation for `process-environment' that earlier entries take
3384 precedence over later ones.
3385
3386 2001-10-02 Miles Bader <miles@gnu.org>
3387
3388 * textprop.c (Fnext_char_property_change)
3389 (Fprevious_char_property_change): Remove reference to non-existant
3390 argument OBJECT from doc-string.
3391
3392 2001-10-01 Gerd Moellmann <gerd@gnu.org>
3393
3394 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
3395 (try_window_id): Skip back over lines ending in a newline from a
3396 string.
3397
3398 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
3399 New bit flag
3400
3401 2001-10-01 Richard M. Stallman <rms@gnu.org>
3402
3403 * search.c (Freplace_match): Doc fix.
3404
3405 2001-09-28 Andrew Innes <andrewi@gnu.org>
3406
3407 * w32menu.c (set_frame_menubar): Take into account that
3408 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
3409 <raeburn@gnu.org>.
3410
3411 2001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
3412
3413 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
3414
3415 2001-09-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3416
3417 * s/gnu-linux.h: Fix a typo in comment.
3418
3419 2001-09-28 Andreas Schwab <schwab@suse.de>
3420
3421 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
3422 nocombreloc, in case -z combreloc is the default.
3423
3424 2001-09-28 Gerd Moellmann <gerd@gnu.org>
3425
3426 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
3427 really going on here.
3428
3429 2001-09-27 Stefan Monnier <monnier@cs.yale.edu>
3430
3431 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
3432
3433 2001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
3434
3435 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
3436 utf-8, menu-bar, and latin-N.
3437 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
3438 unconditionally now.
3439 (lisp): Add latin-N, since they are preloaded.
3440
3441 2001-09-27 Gerd Moellmann <gerd@gnu.org>
3442
3443 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
3444 to the left. Some cleanup.
3445
3446 * xdisp.c (display_mode_element): One more case where a string's
3447 multibyteness should be used for display.
3448
3449 2001-09-26 Gerd Moellmann <gerd@gnu.org>
3450
3451 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
3452 reading at EOF.
3453
3454 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
3455 of the only temporarily set echoing flag for deciding when
3456 the cancel echoing.
3457
3458 * keyboard.c (echo_kboard): Make externally visible.
3459
3460 * lisp.h (echo_kboard): Declare extern.
3461
3462 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
3463 fonts_changed_p if we need larger matrices due to vscrolling.
3464 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
3465 this round of redisplay if make_cursor_line_fully_visible fails.
3466 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
3467 (try_cursor_movement, try_scrolling): Use them instead of integers.
3468
3469 * dispextern.h (required_matrix_width, required_matrix_height):
3470 Add prototypes.
3471
3472 * dispnew.c (required_matrix_width, required_matrix_height):
3473 New functions.
3474 (allocate_matrices_for_window_redisplay)
3475 (allocate_matrices_for_frame_redisplay: Use them.
3476 Remove parameters CH_DIM.
3477
3478 * xdisp.c (display_mode_lines): Temporarily set selected_frame
3479 and selected_window to the frame of the window whose mode-lines
3480 are displayed, and to the window itself.
3481 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
3482 here.
3483
3484 2001-09-25 Gerd Moellmann <gerd@gnu.org>
3485
3486 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
3487 the image cache under us.
3488
3489 * xdisp.c (display_mode_element): If the mode element is a symbol
3490 with a string value, use that string's multibyteness for displaying.
3491
3492 * keyboard.c (read_char): Don't clear a message for a switch-frame
3493 event. From Stefan Monnier <monnier@cs.yale.edu>.
3494
3495 * xterm.c (fast_find_position) [0]: Add a presumably more correct
3496 version for after 21.1.
3497
3498 * xdisp.c (row_containing_pos): Make externally visible.
3499
3500 * dispextern.h (row_containing_pos): Add prototype.
3501
3502 * process.c (send_process): Disable composition if from_byte < 0.
3503 From Kenichi Handa <handa@etl.go.jp>.
3504
3505 2001-09-24 Gerd Moellmann <gerd@gnu.org>
3506
3507 * xterm.c (refreshicon): Function removed.
3508
3509 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
3510
3511 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
3512
3513 * xterm.c (toplevel): Remove includes in #if 0.
3514
3515 * process.c (sigchld_handler) [LINUX]: Don't return from
3516 the signal handler at the end of the loop.
3517
3518 2001-09-21 Gerd Moellmann <gerd@gnu.org>
3519
3520 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
3521 Terminate only if kill returns -1, and errno is ESRCH.
3522
3523 2001-09-21 Markus Rost <rost@math.ohio-state.edu>
3524
3525 * Makefile.in (shortlisp): Add ../lisp/env.elc.
3526
3527 2001-09-20 Gerd Moellmann <gerd@gnu.org>
3528
3529 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
3530 since this function can be called during GC.
3531
3532 * callproc.c (Fcall_process): Handle errors from pipe(2).
3533 (child_setup): Delete code in #ifdef vipc.
3534
3535 2001-09-19 Gerd Moellmann <gerd@gnu.org>
3536
3537 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
3538 (display_mode_element): Display the string from decode_mode_spec
3539 depending on its multibyteness.
3540
3541 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
3542
3543 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
3544
3545 2001-09-18 Gerd Moellmann <gerd@gnu.org>
3546
3547 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
3548 recursive_edit_unwind.
3549 (recursive_edit_unwind): Set kboard state according to
3550 SINGLE-KBOARD.
3551
3552 * buffer.c (modify_overlay): Don't do nothing if START == END;
3553 This can still be a modification, for example when an overlay has
3554 a before-string or after-string.
3555 (Fdelete_overlay): Prevent redisplay optimizations when deleting
3556 an overlay with before-string or after-string.
3557
3558 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
3559 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
3560
3561 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
3562 first_unchanged_at_end_row is in front of
3563 last_unchanged_at_beg_row. This code should be removed after the
3564 release of 21.1.
3565
3566 2001-09-17 Gerd Moellmann <gerd@gnu.org>
3567
3568 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
3569 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
3570
3571 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
3572 versions >= 2.95.
3573
3574 2001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
3575
3576 * dired.c (Ffile_attributes): Doc fix.
3577
3578 2001-09-14 Gerd Moellmann <gerd@gnu.org>
3579
3580 * fileio.c (Ffile_symlink_p): Fix last change.
3581
3582 * filelock.c (current_lock_owner): Fix last change.
3583
3584 2001-09-13 Gerd Moellmann <gerd@gnu.org>
3585
3586 * filelock.c (current_lock_owner): If readlink returns ERANGE,
3587 take that to mean that the buffer is too small.
3588
3589 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
3590 that to mean that the buffer is too small.
3591
3592 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
3593 current buffer's multibyteness when discarding the iterator's
3594 stack.
3595
3596 * xfns.c (Fx_window_property): Handle case that property gets
3597 deleted between the two calls to XGetWindowProperty.
3598
3599 2001-09-11 Gerd Moellmann <gerd@gnu.org>
3600
3601 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
3602
3603 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
3604 in addition to read-only.
3605
3606 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
3607 to t in addition to read-only.
3608
3609 * lisp.h (Qinhibit_modification_hooks): Declare.
3610
3611 * insdel.c (Qinhibit_modification_hooks): New variable.
3612 (syms_of_insdel): Initialize and staticpro it.
3613
3614 * textprop.c (verify_interval_modification): Don't run
3615 modification-hooks if inhibit_modification_hooks.
3616
3617 * dispnew.c (set_window_cursor_after_update): Fix code
3618 finding glyph row containing cursor when cursor_in_echo_area
3619 is >= 0.
3620
3621 * xdisp.c (init_from_display_pos): Put some code in #if 0.
3622 (add_to_log): Use bcopy instead of strcpy.
3623 (init_from_display_pos): Use an explicit loop over bytes in
3624 overlay strings instead of calling index.
3625
3626 2001-09-10 Gerd Moellmann <gerd@gnu.org>
3627
3628 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
3629
3630 * dispnew.c (direct_output_for_insert): Don't change IT's
3631 stop_charpos to something in front of its current position.
3632
3633 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
3634 `format'.
3635
3636 2001-09-10 Richard M. Stallman <rms@gnu.org>
3637
3638 * frame.c (Fmouse_position): Doc fix.
3639
3640 2001-09-07 Gerd Moellmann <gerd@gnu.org>
3641
3642 * xdisp.c (init_from_display_pos): Don't compare the result
3643 of calling index with NULL.
3644
3645 2001-09-06 Gerd Moellmann <gerd@gnu.org>
3646
3647 * xfns.c (x_set_background_color): Don't change the colors
3648 of the X window of scroll bar widgets.
3649
3650 2001-09-05 Andrew Innes <andrewi@gnu.org>
3651
3652 * w32fns.c (w32_createwindow): Undo last change.
3653
3654 2001-09-05 Gerd Moellmann <gerd@gnu.org>
3655
3656 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
3657
3658 * xdisp.c (string_buffer_position): Use *single_char_property*
3659 functions instead of the *single_property* functions.
3660
3661 2001-09-04 Andrew Innes <andrewi@gnu.org>
3662
3663 * w32term.c (w32_read_socket): Add more information to debugging
3664 output.
3665
3666 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
3667 from Emacs frames, so that calls to GetClipBox in w32term.c
3668 correctly report when part of a frame is visible (including
3669 scrollbars, etc). This prevents repeated redrawing of frames when
3670 only a scrollbar is visible.
3671 (w32_wnd_proc): Add more frame information to debugging output.
3672
3673 2001-09-03 Stefan Monnier <monnier@cs.yale.edu>
3674
3675 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
3676
3677 2001-09-03 Gerd Moellmann <gerd@gnu.org>
3678
3679 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
3680 help-echo for a string which doesn't have help-echo itself, use
3681 get-char-property to obtain the help-echo from the string's buffer
3682 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
3683 have mouse-face, look ``under'' the string for mouse-face from an
3684 overlay.
3685 (fast_find_position): Add parameter STOP. In the final row, stop
3686 before glyphs having STOP as object. Don't consider glyphs that
3687 are not from a buffer.
3688
3689 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
3690
3691 2001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
3692
3693 * fns.c (Fmd5): Doc fix.
3694
3695 2001-08-31 Gerd Moellmann <gerd@gnu.org>
3696
3697 * composite.c (update_compositions): Do nothing if
3698 inhibit-modification-hooks is set.
3699
3700 2001-08-30 Gerd Moellmann <gerd@gnu.org>
3701
3702 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
3703 and check_message_stack if terminating abnormally. We want
3704 glyph matrices etc. in a core dump.
3705
3706 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
3707 (syms_of_xdisp): Initialize them.
3708 (handle_single_display_prop): Don't change point, bind `object',
3709 `position', and `buffer-position' instead to the object having the
3710 `display' property, position in the object and position in the buffer.
3711
3712 * fileio.c (Finsert_file_contents): Don't change the multibyteness
3713 of the buffer if REPLACE is non-nil.
3714
3715 2001-08-29 Gerd Moellmann <gerd@gnu.org>
3716
3717 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
3718
3719 2001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
3720
3721 * w32term.c (x_set_glyph_string_background_width)
3722 (show_mouse_face): Track the last changes in xterm.c.
3723
3724 2001-08-28 Gerd Moellmann <gerd@gnu.org>
3725
3726 * xterm.c (x_set_glyph_string_background_width): Set the glyph
3727 string's background width so that multi-line mouse-face is drawn
3728 to the right edge of the window.
3729 (show_mouse_face): Set the row's mouse_face_p flag after drawing
3730 glyphs.
3731
3732 * dispnew.c (direct_output_for_insert): Set updated_area
3733 before inserting/writing glyphs.
3734
3735 * xdisp.c (display_mode_element): Use string_byte_to_char to
3736 determine character positions in strings, use chars_in_text
3737 instead of strwidth.
3738 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
3739 a matrix as parameter; this is easier to use from GDB.
3740
3741 2001-08-28 Miles Bader <miles@gnu.org>
3742
3743 * textprop.c (Fprevious_single_char_property_change)
3744 (Fnext_single_char_property_change): Doc fixes.
3745
3746 2001-08-27 Gerd Moellmann <gerd@gnu.org>
3747
3748 * fileio.c (Finsert_file_contents): Allocate, restore, and
3749 free composition data in the case of REPLACE not being nil.
3750
3751 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
3752 there exist overlay strings with newlines at POS.
3753 (text_outside_line_unchanged_p): Return 0 if changes start at
3754 START and overlays exist at START. Likewise for END.
3755 (try_window_id): Give up if init_to_row_end returns 0.
3756
3757 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
3758 unconditionally.
3759
3760 2001-08-24 Gerd Moellmann <gerd@gnu.org>
3761
3762 * keymap.c (access_keymap): Return the cdr of the binding of
3763 a generic character instead of its definition (KEY . BINDING).
3764
3765 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
3766 to 0 also in the REPLACE case.
3767
3768 2001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
3769
3770 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
3771 open to determine whether file is readable (as for DOS_NT).
3772
3773 2001-08-23 Gerd Moellmann <gerd@gnu.org>
3774
3775 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
3776 coding.type is coding_type_no_conversion or coding_type_raw_text,
3777 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
3778 non-nil instead of just setting enable_multibyte_characters in the
3779 buffer to nil.
3780
3781 2001-08-22 Gerd Moellmann <gerd@gnu.org>
3782
3783 * dispextern.h (struct face_cache): Add member
3784 menu_face_changed_p.
3785
3786 * xfaces.c (menu_face_changed_default): New variable.
3787 (menu_face_changed_count): Variable removed.
3788 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
3789 the menu_face_changed_default flag, otherwise set the FRAME's
3790 menu_face_changed_p flag if the `menu' face has been changed.
3791 Prevent calling set_font_frame_param if FRAME is t.
3792 (make_face_cache): Initialize cache's menu_face_changed_p
3793 from menu_face_changed_default.
3794 (realize_basic_faces): Look into the frame's face cache to
3795 determine if the menu appearance needs updating.
3796
3797 * keymap.c (access_keymap): Fix last change to not consider
3798 IDX when it has modifiers.
3799
3800 2001-08-21 Gerd Moellmann <gerd@gnu.org>
3801
3802 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
3803 . BINDING) exists, where GENERIC-CHAR is the generic character of
3804 the charset of IDX, return BINDING unless there exists a binding
3805 for IDX itself.
3806
3807 2001-08-16 Gerd Moellmann <gerd@gnu.org>
3808
3809 * xrdb.c (SYSV): Don't define on Solaris 2.
3810 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
3811
3812 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
3813 of the screen line, not text line, containing IT's current position.
3814
3815 2001-08-15 Gerd Moellmann <gerd@gnu.org>
3816
3817 * window.c (window_scroll_pixel_based): Don't recenter if
3818 PT is partially visible in the window.
3819
3820 * xterm.c (expose_window_tree, expose_window, expose_line):
3821 Return 1 when overwriting mouse-face.
3822 (expose_frame): If mouse-face was overwritten, redo it.
3823
3824 * xfaces.c (x_update_menu_appearance): Don't call
3825 set_frame_menubar, let the next redisplay do it.
3826
3827 2001-08-14 Andrew Innes <andrewi@gnu.org>
3828
3829 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
3830 drawing glyph string.
3831
3832 2001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
3833
3834 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
3835 running HI-UX/MPP.
3836
3837 2001-08-14 Gerd Moellmann <gerd@gnu.org>
3838
3839 * xfaces.c (x_update_menu_appearance): Save and restore value of
3840 interrupt_input_blocked.
3841
3842 2001-08-13 Gerd Moellmann <gerd@gnu.org>
3843
3844 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
3845 a line start, move back to the line start.
3846
3847 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
3848 exactly when a mini-buffer is active.
3849
3850 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
3851 in units of 1/8 character on non window-system frames.
3852 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
3853
3854 2001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
3855
3856 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
3857 a doc string.
3858
3859 2001-08-09 Gerd Moellmann <gerd@gnu.org>
3860
3861 * keyboard.c (Vpre_help_message): New variable.
3862 (syms_of_keyboard): Initialize and staticpro it.
3863 (show_help_echo): Record current message before displaying a
3864 help-echo, and restore that message when clearing the help.
3865
3866 * xfns.c (x_create_im): Remove prototype.
3867
3868 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
3869
3870 * dispnew.c (adjust_glyph_matrix): Undo last change.
3871
3872 2001-08-08 Gerd Moellmann <gerd@gnu.org>
3873
3874 * dispnew.c (adjust_glyph_matrix): In the optimization for
3875 windows whose height has changed, disable partially visible lines.
3876
3877 2001-08-07 Gerd Moellmann <gerd@gnu.org>
3878
3879 * window.c (Frecenter): If ARG < 0, and on a window system
3880 frame, count in some empty lines when we can't move -ARG lines down.
3881
3882 * xdisp.c (start_display): Don't try to determine the continuation
3883 lines width if lines are truncated. It's superfluous and leads to
3884 incorrect results if POS is not visible in the window after
3885 reseating the iterator at the previous line start.
3886
3887 2001-08-06 Gerd Moellmann <gerd@gnu.org>
3888
3889 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
3890
3891 2001-08-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3892
3893 * alloc.c (init_stack): Remove declaration.
3894
3895 2001-08-03 Gerd Moellmann <gerd@gnu.org>
3896
3897 * keyboard.c (read_key_sequence): Check that key is an integer
3898 before comparing it with quit_char.
3899 (add_command_key): Use larger_vector.
3900 (read_char_x_menu_prompt): Instead of converting symbol and
3901 integer events into conses (EVENT . nil), use (EVENT . disabled)
3902 which cannot be confused with valid events.
3903 (read_char): When reading from Vunread_command_events, check for
3904 events of the form (EVENT . disabled) instead of
3905 (EVENT . nil).
3906
3907 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
3908 a float, determine the max height from the frame's height.
3909
3910 2001-08-02 Gerd Moellmann <gerd@gnu.org>
3911
3912 * xdisp.c (redisplay_internal): Take message_cleared_p into
3913 account only if minibuf_level == 0.
3914
3915 2001-08-01 Gerd Moellmann <gerd@gnu.org>
3916
3917 * xdisp.c (redisplay_internal): Add a check for the last
3918 displayed message.
3919
3920 * xdisp.c (message_cleared_p): New variable.
3921 (clear_message): Set message_cleared_p when clearing the current
3922 message.
3923 (redisplay_internal): Look at message_cleared_p to capture
3924 the case that the echo area should be cleared.
3925
3926 * keyboard.c (command_loop_1): Fix spelling of
3927 resize_echo_area_exactly.
3928
3929 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
3930
3931 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
3932
3933 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
3934 current matrix when the window gets smaller.
3935
3936 2001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
3937
3938 * print.c (strout): Cast the character passed to insert_char to
3939 unsigned char, to avoid sign extension when it is promoted to int.
3940
3941 2001-07-31 Gerd Moellmann <gerd@gnu.org>
3942
3943 * fileio.c (Finsert_file_contents): Don't treat a return value
3944 of 0 from emacs_read as an IO error.
3945
3946 2001-07-30 Gerd Moellmann <gerd@gnu.org>
3947
3948 * keyboard.c (abs): New macro.
3949 (double_click_fuzz): New variable.
3950 (make_lispy_event): Use it to determine what makes a double-click.
3951 (syms_of_keyboard): DEFVAR_INT it.
3952
3953 * xmenu.c (set_frame_menubar): Take into account that
3954 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
3955 <raeburn@gnu.org>.
3956
3957 2001-07-27 Gerd Moellmann <gerd@gnu.org>
3958
3959 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
3960
3961 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
3962 of row's visible height.
3963
3964 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
3965 deal with the first overlay string having an image `display' property.
3966 (try_window_reusing_current_matrix, compute_line_metrics):
3967 Fix computation of row's visible height for the case that part of the
3968 row is invisible above and part of the row is at the same time
3969 invisible below the window.
3970
3971 2001-07-26 Gerd Moellmann <gerd@gnu.org>
3972
3973 * xfns.c (x-show-tip): Doc fix.
3974
3975 * xfns.c (Vx_max_tooltip_size): New variable.
3976 (syms_of_xfns): DEFVAR_LISP it.
3977 (Fx_show_tip): Set frame's window_width to the width of the
3978 window. Use a maximum tooltip size specified by
3979 Vx_max_tooltip_size, if that has valid contents.
3980 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
3981
3982 2001-07-26 Andrew Innes <andrewi@gnu.org>
3983
3984 * w32term.c (x_display_list): New variable.
3985 (w32_term_init): Set it.
3986
3987 * w32term.h (x_display_list): New extern.
3988
3989 2001-07-26 Gerd Moellmann <gerd@gnu.org>
3990
3991 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
3992 is non-nil, instead of when redisplaying_p is non-zero.
3993 See comment there.
3994 (mark_window_display_accurate_1): Add an assertion.
3995
3996 2001-07-25 Gerd Moellmann <gerd@gnu.org>
3997
3998 * dispextern.h (struct it): Increase size of ctl_chars to 16.
3999
4000 * xfns.c (Fx_file_dialog): Block/unblock input while processing
4001 events so that we get a chance of processing expose events.
4002
4003 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
4004
4005 2001-07-24 Gerd Moellmann <gerd@gnu.org>
4006
4007 * xfns.c (valid_image_p): Protect better against invalid image
4008 specifications. Previous code could signal an error.
4009
4010 2001-07-23 Gerd Moellmann <gerd@gnu.org>
4011
4012 * indent.c (current_column): Fix column computation in the
4013 presence of display table entries.
4014 (current_column_1, Fmove_to_column, compute_motion): Likewise.
4015
4016 * dispnew.c (adjust_glyph_matrix): In the optimization for
4017 windows whose height has changed, use the new window height
4018 to compute which rows to invalidate.
4019
4020 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
4021 (MAX_10_EXP): New macro.
4022 (Fformat): Use it.
4023
4024 * coding.c (code_convert_region): Handle the multibyte case if
4025 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
4026
4027 2001-07-20 Gerd Moellmann <gerd@gnu.org>
4028
4029 * dispextern.h (struct face): Change type of `stipple' to
4030 int; it's an ID.
4031
4032 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
4033
4034 2001-07-19 Gerd Moellmann <gerd@gnu.org>
4035
4036 * dispnew.c (update_window): Don't set the cursor at the end
4037 of the update if display update has been paused.
4038
4039 * composite.h (syms_of_composite): Renamed from syms_of_composition.
4040
4041 2001-07-18 Ken Raeburn <raeburn@gnu.org>
4042
4043 * fns.c (Fset_char_table_default): Check that a charset is defined
4044 before checking its dimension.
4045
4046 2001-07-17 Ken Raeburn <raeburn@gnu.org>
4047
4048 * coding.c (setup_coding_system): Don't do any designation based
4049 on reg_bits if charset is not yet defined.
4050
4051 * lisp.h (XVECTOR): Verify correct object type before returning a
4052 pointer, using eassert.
4053
4054 2001-07-17 Gerd Moellmann <gerd@gnu.org>
4055
4056 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
4057 Increase to 4096 because of paste problems reported on GNU/Linux.
4058
4059 2001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
4060
4061 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
4062
4063 2001-07-16 Gerd Moellmann <gerd@gnu.org>
4064
4065 * fileio.c (unwind_read): Function removed.
4066 (read_non_regular, read_non_regular_quit): New functions.
4067 (Finsert_file_contents): When reading from non-regular files,
4068 arrange to catch a `quit' and terminate the loop. Rearrange
4069 code so that a `quit' when reading from a regular file doesn't
4070 insert text in the buffer.
4071
4072 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
4073 Clear faces afterwards.
4074 (clear_font_table): Take a x_display_info parameter. Don't free
4075 fonts being the default font of any frame on the given display.
4076
4077 2001-07-13 Gerd Moellmann <gerd@gnu.org>
4078
4079 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
4080 instead of CHAR_STRING which can signal an error.
4081
4082 * charset.c (char_to_string_1): Extracted from char_to_string.
4083 Return -1 instead of signaling an error.
4084 (char_to_string): Use it.
4085
4086 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
4087
4088 2001-07-12 Stefan Monnier <monnier@cs.yale.edu>
4089
4090 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
4091 is t, don't try to append anything to it.
4092
4093 2001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
4094
4095 * dired.c (file_name_completion): Pass dp->d_name to
4096 Fstring_match, not elt, which is always nil here.
4097
4098 2001-07-12 Gerd Moellmann <gerd@gnu.org>
4099
4100 * xselect.c (x_decline_selection_request): Handle errors
4101 caused by receivers that have vanished.
4102
4103 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
4104 ignoring events on foreign windows in #if 0. Always dispatch
4105 the event after checking it with x_handle_property_notify.
4106
4107 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
4108 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
4109 TRACE macros to facilitate debugging. Add additional trace statements.
4110 (toplevel): Add prototypes for file-local functions.
4111 (x_atom_to_symbol): Remove DPYINFO parameter.
4112
4113 2001-07-11 Stefan Monnier <monnier@cs.yale.edu>
4114
4115 * w32menu.c (menubar_selection_callback, w32_menu_show):
4116 Initialize `entry' to nil.
4117 (w32_dialog_show): Remove unused `save_wv' variable.
4118 (name_is_separator): Recognize "--:foo" and "--foo-bar".
4119
4120 2001-07-11 Gerd Moellmann <gerd@gnu.org>
4121
4122 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
4123
4124 * fileio.c (unwind_read): Print a message when discarding inserted
4125 text or switching the buffer to unibyte. Change parameter.
4126 (Finsert_file_contents): Don't pass VISIT to unwind_read.
4127
4128 * fileio.c (unwind_read): New function.
4129 (Finsert_file_contents): Record it as unwind-function for
4130 the case that reading is interrupted by C-g.
4131
4132 2001-07-10 Gerd Moellmann <gerd@gnu.org>
4133
4134 * dispnew.c (update_window): Don't skip the header-line
4135 update when scrolling_window returns 0.
4136
4137 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
4138
4139 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
4140 for the case that x_decode_color signals an error.
4141
4142 * xdisp.c (add_to_log): Do nothing if called asynchronously.
4143
4144 2001-07-09 Gerd Moellmann <gerd@gnu.org>
4145
4146 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
4147 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
4148 around ioctls.
4149
4150 2001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
4151
4152 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
4153 doc string line for dos-timezone-offset.
4154
4155 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
4156 inline assembly, to avoid compiler warnings.
4157 (syms_of_msdos): Add \n\ at the end of a line in the doc string
4158 line for dos-unsupported-char-glyph.
4159
4160 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
4161
4162 2001-07-05 Gerd Moellmann <gerd@gnu.org>
4163
4164 * sound.c: Include Emacs' header files with #include "...".
4165
4166 * eval.c (specbind): Additionally record the buffer that was
4167 current when a buffer-local or frame-local variable was bound.
4168
4169 2001-07-04 Gerd Moellmann <gerd@gnu.org>
4170
4171 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
4172 to unibyte characters in unibyte buffers.
4173
4174 2001-07-03 Gerd Moellmann <gerd@gnu.org>
4175
4176 * eval.c (specbind): If SYMBOL has a frame-local binding, record
4177 the frame on the binding stack. Change format of entries for
4178 local bindings on the binding stack to '(SYMBOL . WHERE)'.
4179 (unbind_to): Handle unbinding a frame-local variable.
4180
4181 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
4182 glyphs and truncation glyphs at the end of a row from its pixel width.
4183 (dump_glyph_row): Print row's continuation_lines_width.
4184 (try_window_id): Take the shortcut if ZV is visible in the
4185 window, but there are actually no changes at ZV.
4186
4187 2001-07-02 Gerd Moellmann <gerd@gnu.org>
4188
4189 * xterm.h (x_free_dpy_colors): Add prototype.
4190
4191 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
4192 right number of arguments.
4193
4194 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
4195 ($(lwlibdir)TAGS): New target.
4196 (TAGS): Fix dependency list.
4197
4198 * xterm.c (x_list_fonts): Make sure XFreeFont is called
4199 with input blocked.
4200
4201 2001-06-30 Gerd Moellmann <gerd@gnu.org>
4202
4203 * emacs.c (main): Remove extern declaration for sys_nerr, which
4204 isn't used and causes a compilation error with GCC 3.0 on
4205 FreeBSD 4.3.
4206
4207 2001-06-27 Gerd Moellmann <gerd@gnu.org>
4208
4209 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
4210 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
4211 (toplevel): Include <signal.h> and syssignal.h.
4212
4213 * sound.c (vox_configure, vox_close): Turn off atimers
4214 around ioctls.
4215
4216 2001-06-26 Gerd Moellmann <gerd@gnu.org>
4217
4218 * keyboard.c (read_char) <non_reread>: Record the previous idle
4219 start time before calling timer_stop_idle.
4220 (read_char) <reread_first>: After processing a help-echo event,
4221 restore the previous idle start time.
4222
4223 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
4224 the start of invisible text.
4225 (setup_for_ellipsis): New function.
4226 (next_overlay_string): After all overlay strings have been
4227 processed, display an ellipsis if necessary.
4228 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
4229 (push_it): Initialize display_ellipsis_p on the iterator's stack.
4230
4231 * dispextern.h (struct iterator_stack_entry): Add member
4232 display_ellipsis_p.
4233
4234 2001-06-25 Gerd Moellmann <gerd@gnu.org>
4235
4236 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
4237 on the value of the wait-for-wm frame parameter.
4238
4239 * xterm.h (struct x_output): Add member wait_for_wm.
4240
4241 * xfns.c (Qwait_for_wm): New variable.
4242 (x_frame_parms): Add entry for `wait-for-wm".
4243 (x_set_wait_for_wm): New function.
4244 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
4245 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
4246
4247 * xdisp.c (try_window_id) <all changes below window end>: Don't
4248 take this shortcut if ZV is visible in the window.
4249 (try_window_id): When checking for window start being in changed
4250 text, don't check that the buffer's size has changed.
4251
4252 2001-06-23 Richard M. Stallman <rms@gnu.org>
4253
4254 * minibuf.c (Fcompleting_read): Doc fix.
4255
4256 2001-06-19 Gerd Moellmann <gerd@gnu.org>
4257
4258 * composite.c (Ffind_composition_internal): Accept ZV
4259 and a string's end position as POS.
4260
4261 2001-06-18 Gerd Moellmann <gerd@gnu.org>
4262
4263 * composite.c (Ffind_composition_internal): Check POS
4264 for validity.
4265
4266 2001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
4267
4268 * editfns.c (Fmessage_box): If the frame is not under a window
4269 system, output the message in the echo area.
4270
4271 2001-06-14 Richard M. Stallman <rms@gnu.org>
4272
4273 * xdisp.c (try_window_id): When EOB is visible, don't treat
4274 insertion at EOB as if it were "off the bottom of the screen."
4275
4276 2001-06-11 Andrew Innes <andrewi@gnu.org>
4277
4278 * w32proc.c (create_child): Add new parameter is_gui_app.
4279 (w32_executable_type): Add new parameter is_gui_app.
4280 (sys_spawnve): Use it.
4281 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
4282 SIGQUIT. This matches better how the signals are interpreted by
4283 MSVC compiled programs.
4284 (syms_of_ntproc): Update docstring.
4285
4286 2001-06-02 Stefan Monnier <monnier@cs.yale.edu>
4287
4288 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
4289 well otherwise note_mouse_highlight might optimize away highlighting
4290 if we pass over that same overlay again.
4291
4292 2001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
4293
4294 * lread.c (Fload): Document that the argument is run via
4295 substitute-in-file-name.
4296
4297 2001-05-31 Gerd Moellmann <gerd@gnu.org>
4298
4299 * Makefile.in (bootstrap-doc): New target.
4300 (bootstrap-emacs): Depend on it.
4301
4302 * fileio.c (Fdo_auto_save): Don't try to create the directory of
4303 auto-save-list-file-name when shutting down Emacs, because
4304 creating the directory might signal an error, and leaves
4305 Emacs in a strange state.
4306
4307 * term.c: (tty_cursor_hidden): New variable.
4308 (update_begin): Don't call tty_hide_cursor. Clean up.
4309 (update_end, set_terminal_window, set_scroll_region): Clean up.
4310 (ring_bell, reset_terminal_modes): Clean up.
4311 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
4312 on tty_cursor_hidden.
4313 (write_glyphs): Call tty_hide_cursor.
4314
4315 2001-05-30 Stefan Monnier <monnier@cs.yale.edu>
4316
4317 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
4318
4319 2001-05-30 Gerd Moellmann <gerd@gnu.org>
4320
4321 * xfns.c (enum image_value_type): New enumerator
4322 IMAGE_STRING_OR_NIL_VALUE.
4323 (parse_image_spec): Handle it.
4324 (xbm_format, pbm_format): Use it for :foreground and :background.
4325 (xbm_load, pbm_load): Check for nil color names.
4326
4327 * xterm.c (note_mouse_highlight): If an overlapping overlay
4328 exists, but we find that we highlight the same overlay as before,
4329 don't do the highlighting again.
4330
4331 2001-05-29 Gerd Moellmann <gerd@gnu.org>
4332
4333 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
4334 Protect unibyte strings created by replacing their multibyte
4335 equivalents in menu_items.
4336
4337 * keymap.c (Fsingle_key_description): NUL-terminate the string
4338 buffer before calling build_string.
4339
4340 * callproc.c (Fcall_process): Deal with decode_coding returning
4341 CODING_FINISH_INCONSISTENT_EOL.
4342
4343 2001-05-28 Gerd Moellmann <gerd@gnu.org>
4344
4345 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
4346 an item's name with its key description in case the description
4347 is a multibyte string.
4348
4349 * keymap.c (Fsingle_key_description): Create a multibyte string
4350 only if necessary.
4351
4352 * macros.c (Fstart_kbd_macro): Doc fix.
4353
4354 * xterm.c (cursor_in_mouse_face_p): New function.
4355 (x_draw_stretch_glyph_string): Use it to choose a different GC
4356 when drawing a cursor within highlighted text.
4357
4358 * editfns.c (char_property_eq): Put in #if 0.
4359
4360 * indent.c (string_display_width): Put in #if 0.
4361
4362 * lread.c (Fload): Remove unused label.
4363
4364 * termcap.c (speeds): Put in #if 0.
4365
4366 2001-05-18 Gerd Moellmann <gerd@gnu.org>
4367
4368 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
4369
4370 * xfaces.c (xlfd_point_size): Don't divide pixel size from
4371 transformation matrix by 10.
4372
4373 2001-05-16 Gerd Moellmann <gerd@gnu.org>
4374
4375 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
4376 only if it's equal to the former foreground pixel color.
4377 (x_set_foreground_color, x_set_background_color)
4378 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
4379
4380 2001-05-16 Dave Love <fx@gnu.org>
4381
4382 * insdel.c (signal_before_change, signal_after_change): Consider a
4383 local change hook which changes the buffer.
4384
4385 * process.c (read_process_output): Don't call signal_after_change
4386 and update_compositions after insert_from_string_before_markers.
4387
4388 2001-05-16 Gerd Moellmann <gerd@gnu.org>
4389
4390 * xfaces.c (split_font_name): Use the right field when
4391 checking for `[...]' syntax.
4392
4393 * buffer.c (copy_overlays): New function.
4394 (clone_per_buffer_values): Use it.
4395
4396 * buffer.h (OVERLAY_PLIST): New macro.
4397
4398 * keymap.c (Fsingle_key_description): Replace a build_string with
4399 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
4400
4401 * fontset.c (Ffontset_info): Check that face is non-null
4402 before accessing its fields.
4403
4404 2001-05-15 Gerd Moellmann <gerd@gnu.org>
4405
4406 * keyboard.c (read_key_sequence): Prevent generating a fake
4407 prefix key twice.
4408
4409 * xfaces.c (split_font_name): Handle `[...]' for the right
4410 font name fields.
4411
4412 * ccl.c (ccl_driver): Don't copy remaining bytes in case
4413 of CCL_STAT_INVALID_CMD.
4414
4415 2001-05-14 Stefan Monnier <monnier@cs.yale.edu>
4416
4417 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
4418 in <var> has no default value yet.
4419
4420 * xfaces.c (try_alternative_families): First try the FAMILY.
4421 And if nothing is found in the end, try again with scalable fonts.
4422 (try_font_list): Let try_alternative_families do a bit more of
4423 the work. Only use FAMILY if it is not nil.
4424 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
4425
4426 2001-05-14 Gerd Moellmann <gerd@gnu.org>
4427
4428 * xterm.c (note_mouse_highlight): Avoid changing the mouse
4429 pointer shape when show_mouse_face has already done it.
4430
4431 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
4432 full-width rows.
4433
4434 * xfaces.c (split_font_name): Make sure to leave the loop
4435 with the right value of `i'.
4436
4437 * xfaces.c (split_font_name): Handle matrix transformations
4438 in the pixel and point size fields of XLFD font names.
4439 (xlfd_point_size): Likewise.
4440
4441 2001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
4442
4443 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
4444 (x_to_w32_font): Add prototype.
4445
4446 * regex.c (malloc, realloc, free) [emacs]: Undefine before
4447 redefining, to avoid compiler warnings.
4448
4449 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
4450
4451 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
4452 (w32_get_bdf_glyph): Cast between unsigned char and char when
4453 passing arguments to subroutines, to shut up compiler warnings.
4454 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
4455 GET_HEX_VAL.
4456
4457 * xfaces.c: Include keyboard.h before frame.h, not after it.
4458
4459 * widget.c: Include keyboard.h before frame.h.
4460
4461 * w32term.h (struct image, struct face): Forward declaration, to
4462 avoid compiler warnings.
4463
4464 2001-05-11 Gerd Moellmann <gerd@gnu.org>
4465
4466 * keyboard.c (read_key_sequence): Don't modify events when
4467 generating fake prefix keys (mode-line, scroll-bar, ...) since
4468 this prevents proper processing of such events when pushed back
4469 into unread-command-events.
4470
4471 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
4472 actually redrawn. Make the function static.
4473 (note_mouse_highlight): Fix a case where the mouse cursor
4474 was changed back to the text cursor.
4475
4476 * xterm.h (clear_mouse_face): Remove prototype.
4477
4478 * xdisp.c (try_window_id): Fix the fix and set the right
4479 window_end_vpos.
4480
4481 * xdisp.c (try_window_id): Fix computation of window end in the
4482 case that lines were deleted at the end of the window. Add some
4483 more debug_method_adds.
4484
4485 * xfaces.c (try_alternative_families): New function.
4486 (try_font_list): Use it. If ATTRS specifies a family, check
4487 fonts from that family first.
4488 (choose_face_font): Remove code setting the family part of
4489 the pattern to nil.
4490
4491 2001-05-10 Gerd Moellmann <gerd@gnu.org>
4492
4493 * xdisp.c (try_window_id): Fix case of all changes before
4494 the window start.
4495
4496 * xdisp.c (try_window_id): Add some xasserts.
4497
4498 2001-05-09 Gerd Moellmann <gerd@gnu.org>
4499
4500 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
4501
4502 2001-05-09 Dave Love <fx@gnu.org>
4503
4504 * xdisp.c (GIVE_UP): Fix for K&R C.
4505
4506 2001-05-09 Gerd Moellmann <gerd@gnu.org>
4507
4508 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
4509
4510 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
4511 back to the text cursor shape without need.
4512
4513 2001-05-07 Gerd Moellmann <gerd@gnu.org>
4514
4515 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
4516
4517 * dispextern.h (inverse_video): Declare extern.
4518
4519 * keyboard.c (delete_kboard): Handle the case that selected_frame
4520 has been deleted in the course of x_connection_closed.
4521
4522 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
4523
4524 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
4525 Fix the change from 2001-04-30.
4526
4527 2001-05-03 Gerd Moellmann <gerd@gnu.org>
4528
4529 * xfns.c (file_dialog_unmap_cb): New function.
4530 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
4531 where a dialog is closed via the window manager.
4532
4533 * xdisp.c (try_window_id): Cases of changes all in front of
4534 the window start or all below the window end mostly rewritten.
4535 (redisplay_window): Move the tests if try_window_id is
4536 applicable to try_window_id.
4537 (GIVE_UP): New macro.
4538
4539 2001-05-02 Gerd Moellmann <gerd@gnu.org>
4540
4541 * xterm.c (expose_window): Return int. If W is the window
4542 currently being updated, mark the frame garbaged.
4543 Fix computation of rows intersecting the exposed rectangle.
4544 (expose_window_tree): Stop when expose_window returns 0.
4545
4546 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
4547 again if it has already been drawn.
4548
4549 2001-05-01 Stefan Monnier <monnier@cs.yale.edu>
4550
4551 * syntax.c (update_syntax_table): Check that oldi has the same
4552 properties as old_prop before deciding not to invalidate.
4553
4554 2001-04-30 Gerd Moellmann <gerd@gnu.org>
4555
4556 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
4557 read-only text that is so because of text properties.
4558
4559 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
4560 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
4561 windows that are components of a Lucid menu bar.
4562
4563 2001-04-27 Gerd Moellmann <gerd@gnu.org>
4564
4565 * term.c (turn_on_face): Fix reverse video handling on terminals
4566 that don't support colors.
4567
4568 2001-04-26 Gerd Moellmann <gerd@gnu.org>
4569
4570 * editfns.c (save_excursion_restore): Don't use XBUFFER on
4571 a non-buffer.
4572
4573 2001-04-25 Gerd Moellmann <gerd@gnu.org>
4574
4575 * term.c (toggle_highlight): New function.
4576 (turn_on_face): Change handling of reverse video.
4577
4578 * process.c (wait_reading_process_input):
4579 Call record_asynch_buffer_change only if a timer really changed buffers.
4580
4581 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
4582 of the number of overlays to check.
4583
4584 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
4585
4586 * xdisp.c (try_window_id): Fix a case where window_end_pos
4587 and window_end_bytepos were not adjusted.
4588
4589 2001-04-23 Gerd Moellmann <gerd@gnu.org>
4590
4591 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
4592 zero instead of -1.
4593
4594 2001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
4595
4596 * process.c (wait_reading_process_input) [!subprocesses]:
4597 Don't reference waiting_for_user_input_p, it's not defined in the
4598 branch without async subprocesses support.
4599
4600 2001-04-19 Gerd Moellmann <gerd@gnu.org>
4601
4602 * keyboard.c (delete_kboard): Prevent a dangling reference
4603 from current_kboard to KB, which is freed.
4604
4605 * process.c (wait_reading_process_input):
4606 Call record_asynch_buffer_change after running timers, to make
4607 read_key_sequence aware of buffer changes from under it.
4608
4609 2001-04-18 Gerd Moellmann <gerd@gnu.org>
4610
4611 * xfaces.c (Qscalable_fonts_allowed): New variable.
4612 (realizing_basic_faces_p): Removed.
4613 (x_face_list_fonts): Special handling for realizing_basic_faces_p
4614 removed.
4615 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
4616 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
4617 for scalable-fonts-allowed to t.
4618
4619 * fileio.c (Finsert_file_contents): If the file size returned from
4620 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
4621 read from files on a procfs whose contents are generated dynamically.
4622
4623 2001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
4624
4625 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
4626 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
4627 (__memalign_hook): Make the two prototypes consistent.
4628
4629 2001-04-17 Gerd Moellmann <gerd@gnu.org>
4630
4631 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
4632 matrix of mini-windows.
4633
4634 2001-04-12 Stefan Monnier <monnier@cs.yale.edu>
4635
4636 * intervals.c (find_interval): Don't rebalance during signal handling.
4637
4638 2001-04-11 Gerd Moellmann <gerd@gnu.org>
4639
4640 * fns.c: Include blockinput.h.
4641
4642 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
4643
4644 2001-04-10 Gerd Moellmann <gerd@gnu.org>
4645
4646 * fns.c (Fcompare_strings): Fix return values.
4647
4648 * window.c (window_scroll): Change the meaning of N to mean
4649 N screen-fulls or N lines.
4650 (window_scroll_pixel_based, window_scroll_line_based)
4651 (scroll_command, Fscroll_other_window): Change accordingly.
4652
4653 * window.c (window_scroll_pixel_based, Frecenter):
4654 Call window_box_height instead of using it.last_visible_y for the
4655 height of the window.
4656
4657 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
4658 instead of using it.last_visible_y for the height of the window.
4659
4660 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
4661 From Dan Holmsand <dan@eyebee.com>.
4662
4663 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
4664 able to write to hidden and system files. From Dan Holmsand
4665 <dan@eyebee.com>.
4666
4667 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
4668 Holmsand <dan@eyebee.com>.
4669
4670 2001-04-09 Gerd Moellmann <gerd@gnu.org>
4671
4672 * fns.c (Fplist_get, Fplist_put): Add QUITs.
4673
4674 * window.c (window_internal_height): Return 1 less if the
4675 window has a header line.
4676
4677 * xdisp.c (try_window_id): When scrolling on a terminal, take
4678 the change of window_internal_height into account.
4679
4680 2001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
4681
4682 * gmalloc.c (align): If the argument SIZE would overflow
4683 __malloc_ptrdiff_t, fail right away.
4684
4685 2001-04-06 Gerd Moellmann <gerd@gnu.org>
4686
4687 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
4688 Make sure the tooltip is completely visible.
4689 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
4690
4691 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
4692
4693 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
4694
4695 2001-04-06 Dave Love <fx@gnu.org>
4696
4697 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
4698 Fix test of `from'.
4699
4700 2001-04-06 Gerd Moellmann <gerd@gnu.org>
4701
4702 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
4703
4704 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
4705
4706 2001-04-05 Gerd Moellmann <gerd@gnu.org>
4707
4708 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
4709
4710 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
4711
4712 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
4713 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
4714
4715 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
4716 shell widget's position only if it is non-null.
4717
4718 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
4719 Set f->output_data.x->widget to null after destroying it.
4720
4721 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
4722 FILENAME to bring it in synch with the documentation.
4723
4724 * xfaces.c (realizing_basic_faces_p): Renamed from
4725 realize_default_face_p.
4726 (realize_basic_faces): Set/clear realizing_basic_faces_p.
4727 (realize_default_face): Don't set the flag.
4728
4729 2001-04-04 Gerd Moellmann <gerd@gnu.org>
4730
4731 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
4732
4733 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
4734
4735 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
4736 the buffer that was used for echoing.
4737
4738 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
4739 (first_font_matching): Removed unused function.
4740 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
4741 (may_use_scalable_font_p): Remove parameter FONT; rename
4742 parameter NAME to FONT.
4743 (x_face_list_fonts): Fix missing bounds check.
4744 (realizing_default_face_p): New variable.
4745 (realize_default_face): Set and clear that flag.
4746 (x_face_list_fonts): When called during the realization of the
4747 default face, and no matching fonts are found when ignoring
4748 scalable fonts and fonts matching a regexp from
4749 face-ignored-fonts, try without ignoring fonts.
4750
4751 2001-04-03 Gerd Moellmann <gerd@gnu.org>
4752
4753 * xfns.c (postprocess_image): New function.
4754 (lookup_image): Call it for all image types except PostScript.
4755 (x_kill_gs_process): Call postprocess_image.
4756
4757 * xterm.c (x_use_underline_position_properties): New variable.
4758 (x_draw_glyph_string): Use it.
4759 (syms_of_xterm): DEFVAR_BOOL it.
4760
4761 2001-04-02 Gerd Moellmann <gerd@gnu.org>
4762
4763 * xterm.c (x_alloc_nearest_color_1): New function.
4764 (x_alloc_nearest_color): Use it.
4765 (x_color_cells): Take a Display as argument, instead of a frame.
4766 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
4767 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
4768 (x_initialize): Register cvt_string_to_pixel as resource converter
4769 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
4770
4771 2001-03-30 Gerd Moellmann <gerd@gnu.org>
4772
4773 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
4774 (set_iterator_to_next): If a string from a display property ends,
4775 consider the case that this might also be the end of an
4776 overlay string having the display property.
4777
4778 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
4779
4780 * xdisp.c (reseat_to_string): Undo last change.
4781
4782 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
4783 matrix of a window when the header line changes, when
4784 new rows are allocated, or when the width changes.
4785
4786 2001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
4787
4788 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
4789
4790 2001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
4791
4792 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
4793 deprecated.
4794
4795 2001-03-29 Gerd Moellmann <gerd@gnu.org>
4796
4797 * data.c (Fsubr_interactive_form): New function.
4798 (syms_of_data): Defsubr it.
4799
4800 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
4801 (live_float_p, live_misc_p): Return 1 only if the offset of the
4802 pointer in its block is >= 0.
4803
4804 2001-03-28 Paul Eggert <eggert@twinsun.com>
4805
4806 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
4807 microseconds calcuation. Avoid double-rounding problem.
4808 In doc string, warn that the result is approximate.
4809
4810 2001-03-28 Gerd Moellmann <gerd@gnu.org>
4811
4812 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
4813 bind `inhibit-eval-during-redisplay' to t.
4814
4815 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
4816
4817 * xdisp.c (inhibit_eval_during_redisplay)
4818 (Qinhibit_eval_during_redisplay): New variables.
4819 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
4820 don't eval, return nil instead.
4821 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
4822 Initialize Qinhibit_eval_during_redisplay.
4823
4824 * xdisp.c (reseat_to_string): If STRING is multibyte, set
4825 the iterator's multibyte_p flag.
4826
4827 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
4828 instead of setting it to zero; it's incremented for each frame
4829 where the menu face is changed.
4830
4831 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
4832 change bottom shadow accordingly.
4833
4834 * xterm.c (expose_window_tree, expose_frame): Don't compute
4835 intersections here.
4836 (expose_window): Do it here instead.
4837 (x_draw_glyph_string): Fix a computation of the underline position.
4838
4839 * bytecode.c (BYTE_CODE_QUIT): New macro.
4840 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
4841
4842 2001-03-27 Gerd Moellmann <gerd@gnu.org>
4843
4844 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
4845 Give up if matrix starts in an ellipsis.
4846 (init_from_display_pos): Do nothing if POS doesn't specify
4847 a dpvec_index but the iterator has such a position.
4848
4849 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
4850
4851 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
4852 x/y position is (0, 0) after destroying the menu bar, restore
4853 its original position.
4854
4855 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
4856 (init_from_display_pos): Use it.
4857 (try_window_reusing_current_matrix): Don't use cursor_row_p.
4858
4859 2001-03-26 Gerd Moellmann <gerd@gnu.org>
4860
4861 * xdisp.c (try_window_id): Undo last change.
4862
4863 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
4864
4865 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
4866
4867 * buffer.c (syms_of_buffer): Doc fix.
4868
4869 2001-03-26 Gerd Moellmann <gerd@gnu.org>
4870
4871 * xfaces.c (x_update_menu_appearance): Use local variable
4872 popup_path for setting font resources.
4873
4874 2001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
4875
4876 * frame.c (Fframe_list): Don't reference tip_frame if
4877 HAVE_WINDOW_SYSTEM is not defined.
4878
4879 * emacs.c (main): Update the copyright year. From Werner LEMBERG
4880 <wl@gnu.org>.
4881
4882 2001-03-25 Gerd Moellmann <gerd@gnu.org>
4883
4884 * xdisp.c (init_from_display_pos): Test invisible property
4885 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
4886
4887 * xdisp.c (redisplay_internal) <update one window>: Make sure
4888 last_arrow_position and last_arrow_string are set.
4889
4890 * frame.c (Fframe_list): Don't return a tooltip frame.
4891
4892 2001-03-23 Gerd Moellmann <gerd@gnu.org>
4893
4894 * xdisp.c (mark_window_display_accurate_1): New function,
4895 extracted from mark_window_display_accurate.
4896 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
4897 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
4898 (mark_window_display_accurate): Use it.
4899 (redisplay_internal): Use it for the selected window.
4900 (redisplay_internal): Avoid duplicate mark_window_display_accurate
4901 for the selected frame.
4902
4903 * xdisp.c Use make_number, for readability.
4904 (try_window_id): Disable rows below the window end.
4905 (try_window_reusing_current_matrix): Use cursor_row_p.
4906 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
4907 of rows.
4908 (init_from_display_pos): If POS specifies a position in a display
4909 vector, maybe get the iterator set up for that ellipsis.
4910
4911 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
4912
4913 2001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
4914
4915 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
4916
4917 2001-03-23 Gerd Moellmann <gerd@gnu.org>
4918
4919 * xfaces.c (x_update_menu_appearance): Use a different path
4920 for Lucid popup menus.
4921
4922 2001-03-22 Stefan Monnier <monnier@cs.yale.edu>
4923
4924 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
4925
4926 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
4927 (string_buffer_position): Use `make_number'.
4928
4929 2001-03-22 Gerd Moellmann <gerd@gnu.org>
4930
4931 * xfaces.c (x_update_menu_appearance): Renamed from
4932 x_set_menu_face_resources. Use different resources for popups.
4933
4934 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
4935 (GC_CHECK_STRING_BYTES): Don't define.
4936
4937 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
4938 Removed, together with subroutines.
4939 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
4940 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
4941
4942 * dispextern.h (x_set_menu_resources_from_menu_face):
4943 Remove prototype.
4944
4945 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
4946 Remove calls to x_set_menu_resources_from_menu_face.
4947
4948 * xfaces.c (xm_set_menu_resources_from_menu_face):
4949 Remove #ifndef LESSTIF_VERSION.
4950
4951 * xmenu.c: Include widget.h.
4952 (single_submenu): Return int. Some cleanup.
4953 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
4954
4955 2001-03-21 Gerd Moellmann <gerd@gnu.org>
4956
4957 * xterm.c (x_update_window_end): Handle overwritten mouse face
4958 also for tool bar windows.
4959 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
4960 DRAW is DRAW_IMAGE_RAISED.
4961
4962 2001-03-20 Gerd Moellmann <gerd@gnu.org>
4963
4964 * print.c (syms_of_print): Doc fixes.
4965
4966 * fns.c (Fmd5): Doc fix.
4967
4968 2001-03-19 Gerd Moellmann <gerd@gnu.org>
4969
4970 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
4971 Clear area of the frame not occupied by the scroll bar.
4972
4973 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
4974 tip frame's root window buffer to *tip* right after creating
4975 the frame.
4976
4977 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
4978 is an integer don't have to be for space characters.
4979
4980 2001-03-16 Gerd Moellmann <gerd@gnu.org>
4981
4982 * indent.c (current_column, current_column_1, Fmove_to_column)
4983 (compute_motion): Handle characters from display vectors differently.
4984
4985 2001-03-15 Kenichi Handa <handa@etl.go.jp>
4986
4987 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
4988 drawing glyph string.
4989
4990 2001-03-15 Gerd Moellmann <gerd@gnu.org>
4991
4992 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
4993 (command_loop_1): Undo last change.
4994
4995 * xterm.c (fast_find_position): Return the correct vpos.
4996
4997 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
4998 non-null, set a per-buffer value in BUF instead of the current buffer.
4999 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
5000 Call store_symval_forwarding with BUF null.
5001 (set_internal): Call store_symval_forwarding with the BUF
5002 parameter passed to set_internal. Formerly, the value was always
5003 set in the current buffer; the buffer recorded in specbind for
5004 this case wasn't used.
5005 (arith_driver): Reindent.
5006
5007 * buffer.c (swap_out_buffer_local_variables):
5008 Call store_symval_forwarding with BUF null.
5009
5010 * lisp.h (store_symval_forwarding): Change prototype.
5011
5012 * eval.c (specbind): Call store_symval_forwarding with BUF null.
5013
5014 2001-03-14 Gerd Moellmann <gerd@gnu.org>
5015
5016 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
5017 FOR_DELETION. Avoid resizing the mini-window of the selected
5018 frame if FOR_DELETION is set.
5019 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
5020 (Fmake_frame_invisible): Change calls to do_switch_frame for new
5021 signature.
5022
5023 * window.c (Fset_window_configuration): Change call to
5024 do_switch_frame to new format.
5025
5026 * keyboard.c (quit_throw_to_read_char): Change call to
5027 do_switch_frame to new format.
5028
5029 * lisp.h (do_switch_frame): Change prototype.
5030
5031 * frame.c (Fframe_parameters): In the `buffer-list' frame
5032 parameter, store the buffer list of FRAME, not the list of the
5033 selected frame.
5034
5035 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
5036 box just because the glyph row's full_width_p flag is set.
5037
5038 2001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
5039
5040 * xdisp.c (highlight_trailing_whitespace): On character terminals,
5041 skip the padding blanks inserted in extend_face_to_end_of_line,
5042 before checking for trailing whitespace.
5043
5044 2001-03-13 Gerd Moellmann <gerd@gnu.org>
5045
5046 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
5047 Remove special handling for LessTif/Motif.
5048 (toplevel): Don't include Xm/Xm.h.
5049
5050 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
5051 Remove workaround code for LessTif; it doesn't work anymore.
5052
5053 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
5054 Xm/ScrollBarP.h.
5055
5056 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
5057 Don't access private scroll bar data; it's no longer necessary with
5058 contemporary LessTif.
5059
5060 * xfaces.c (xm_set_menu_resources_from_menu_face):
5061 Change #if 0 to #ifndef LESSTIF_VERSION.
5062
5063 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
5064 removing button grabs.
5065
5066 2001-03-13 Kenichi Handa <handa@etl.go.jp>
5067
5068 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
5069 and clip-large-size-font as obsolete.
5070
5071 * lread.c (read_multibyte): Check the validity of multibyte
5072 sequence. If invalid, return the first byte.
5073
5074 2001-03-12 Gerd Moellmann <gerd@gnu.org>
5075
5076 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
5077 before running the command; timer functions or process
5078 filters may have set it.
5079
5080 2001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
5081
5082 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
5083 Doc fix.
5084
5085 2001-03-12 Gerd Moellmann <gerd@gnu.org>
5086
5087 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
5088 to sprintf.
5089
5090 2001-03-09 Gerd Moellmann <gerd@gnu.org>
5091
5092 * dispextern.h (string_buffer_position): Add prototype.
5093
5094 * xdisp.c (string_buffer_position, display_prop_string_p)
5095 (single_display_prop_string_p): New functions.
5096
5097 * xterm.c (note_mouse_highlight): If there's no help-echo on
5098 a string, look at the buffer text ``under'' it.
5099
5100 * keyboard.c (make_lispy_event): Add string info to the event,
5101 analogous to what's done on mode lines.
5102 (read_key_sequence): For a click on a string, consider `local-map'
5103 and `keymap' of that string.
5104
5105 * keyboard.c (make_lispy_event, make_lispy_movement):
5106 Adjust calls to buffer_posn_from_coords to new format.
5107
5108 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
5109
5110 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
5111 POS; return void.
5112
5113 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
5114 flags argument to emacs_open; it seems to conflict with O_EXCL.
5115
5116 2001-03-09 Kenichi Handa <handa@etl.go.jp>
5117
5118 * composite.h (struct composition): Change types of members;
5119 glyph_len to unsigned, width to unsigned short.
5120
5121 2001-03-08 Andrew Innes <andrewi@gnu.org>
5122
5123 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
5124 menu titles.
5125
5126 2001-03-08 Gerd Moellmann <gerd@gnu.org>
5127
5128 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
5129 instead of nil.
5130
5131 * xterm.c (note_mouse_highlight): Handle mouse-face and
5132 help-echo in strings.
5133 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
5134 (fast_find_string_pos): New function.
5135
5136 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
5137 (display_string): Call face_at_string_position with new parameter.
5138
5139 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
5140 Handle `mouse-face'.
5141
5142 * dispextern.h (face_at_string_position): Change prototype.
5143
5144 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
5145
5146 * keyboard.c (make_lispy_event): Avoid generating drag events
5147 if the mouse hasn't actually moved to another buffer position.
5148
5149 2001-03-08 Dave Love <fx@gnu.org>
5150
5151 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
5152
5153 2001-03-08 Gerd Moellmann <gerd@gnu.org>
5154
5155 * process.c (Fset_process_window_size): Fix a typo.
5156
5157 2001-03-08 Kenichi Handa <handa@etl.go.jp>
5158
5159 * coding.c (detect_coding_sjis): Do more rigid check.
5160 (detect_coding_big5): Likewise.
5161 (decode_coding_sjis_big5): Likewise.
5162 (Fdetect_coding_region): Call detect_coding_system with tailing
5163 anchor byte `\0' for more rigid detection.
5164 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
5165 (Fdetect_coding_string): Likewise.
5166
5167 2001-03-07 Stefan Monnier <monnier@cs.yale.edu>
5168
5169 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
5170 a string before extracting its data.
5171
5172 2001-03-07 Gerd Moellmann <gerd@gnu.org>
5173
5174 * window.c (Frecenter): Rewrite code handling negative values
5175 of ARG on graphical frames.
5176
5177 2001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
5178
5179 * window.c (displayed_window_lines): If W->start is outside the
5180 accessible portion of the buffer, call start_display with BEGV or
5181 ZV instead of W->start.
5182
5183 2001-03-07 Gerd Moellmann <gerd@gnu.org>
5184
5185 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
5186
5187 * process.c (Fset_process_filter): Don't crash if the input
5188 file descriptor of PROCESS is closed.
5189 (Fset_process_window_size): Likewise.
5190
5191 2001-03-06 Kenichi Handa <handa@etl.go.jp>
5192
5193 * xterm.c (XTflash): Make the timeout of select shorter, and call
5194 select repeatedly until the desired time expires.
5195
5196 2001-03-06 Gerd Moellmann <gerd@gnu.org>
5197
5198 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
5199
5200 * xfns.c (Fx_create_frame): Clear Vwindow_list.
5201
5202 * lisp.h (Vwindow_list): Declare extern.
5203
5204 2001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
5205
5206 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
5207
5208 2001-03-06 Gerd Moellmann <gerd@gnu.org>
5209
5210 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
5211 to detect a case where we have to highlight a different region
5212 despite not having left the currently highlighted region.
5213 Set mouse_face_overlay in the x_display_info.
5214 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
5215
5216 * xterm.h (struct x_display_info): Add mouse_face_overlay.
5217
5218 * buffer.c (mouse_face_overlay_overlaps): New function.
5219
5220 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
5221 (Qmouse_face): Declare extern.
5222
5223 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
5224 if face_change_count is non-zero.
5225
5226 2001-03-06 Kenichi Handa <handa@etl.go.jp>
5227
5228 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
5229 that the source is unibyte.
5230
5231 2001-03-05 Dave Love <fx@gnu.org>
5232
5233 * xterm.c (XTmouse_position): Fix typo.
5234
5235 2001-03-05 Gerd Moellmann <gerd@gnu.org>
5236
5237 * minibuf.c (read_minibuf): Clean up the binding stack if
5238 called noninteractively.
5239
5240 2001-03-05 Kenichi Handa <handa@etl.go.jp>
5241
5242 * coding.c (syms_of_coding): Docstring modified.
5243
5244 2001-03-05 Kenichi Handa <handa@etl.go.jp>
5245
5246 * charset.c (char_to_string): If a single byte char has modifier
5247 bits that can't be reflected to the character code, ignore them
5248 instead of signaling an error.
5249
5250 2001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
5251
5252 * s/msdos.h: Update copyright notice.
5253
5254 * dosfns.h: Update copyright notice.
5255
5256 * dosfns.c: Update copyright notice.
5257
5258 * msdos.c: Update copyright notice.
5259
5260 2001-03-02 Gerd Moellmann <gerd@gnu.org>
5261
5262 * xterm.c (glyph_rect): New function.
5263 (XTmouse_position): Use it to raise the threshold for mouse
5264 movement event generation.
5265
5266 2001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
5267
5268 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
5269 specifies (reverse . t), reverse the initial screen colors.
5270 (IT_set_frame_parameters): If the property is foreground-color,
5271 but we are reversing the colors, set bg_set, not fg_set.
5272 Likewise for setting background-color and reversing: set fg_set.
5273 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
5274 in effect.
5275
5276 * xfaces.c (Finternal_set_lisp_face_attribute)
5277 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
5278 parameters alist.
5279
5280 2001-03-02 Gerd Moellmann <gerd@gnu.org>
5281
5282 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
5283 to a single slash in the middle of file names.
5284
5285 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
5286 Accept only alphanumeric time zone names.
5287
5288 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
5289 or width area.
5290 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
5291 a widget to zero height.
5292
5293 2001-03-01 Gerd Moellmann <gerd@gnu.org>
5294
5295 * window.c (Fwindow_end): Call move_it_past_eol only if
5296 ending up on a partially visible line.
5297
5298 2001-03-01 Dave Love <fx@gnu.org>
5299
5300 * ccl.c (Fccl_execute): Doc fix.
5301
5302 2001-03-01 Gerd Moellmann <gerd@gnu.org>
5303
5304 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
5305 of the tool bar before calling x_figure_window_size.
5306
5307 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
5308 NULL after destroying it, otherwise XTread_socket can access a
5309 destroyed widget when input is unblocked.
5310
5311 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
5312
5313 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
5314 same name as before, although there was a change in fontsets.
5315
5316 2001-02-28 Ken Raeburn <raeburn@gnu.org>
5317
5318 * lisp.h (Fframe_parameter): Declare.
5319
5320 * window.c (set_window_buffer): Field vscroll is an int, not a
5321 Lisp_Object.
5322
5323 2001-02-28 Gerd Moellmann <gerd@gnu.org>
5324
5325 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
5326 NULL instead.
5327
5328 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
5329 NULL instead.
5330
5331 * alloc.c (toplevel): Include process.h.
5332 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
5333 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
5334 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
5335 (allocate_vector, allocate_hash_table, allocate_window)
5336 (allocate_frame, allocate_process, allocate_other_vector):
5337 New functions.
5338 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
5339 (mark_maybe_pointer): New function.
5340 (mark_memory): Also mark Lisp data to which only pointers
5341 remain and not Lisp_Objects.
5342 (min_heap_address, max_heap_address): New variables.
5343 (mem_find): Return MEM_NIL if START is below min_heap_address or
5344 above max_heap_address.
5345 (mem_insert): Compute min_heap_address and max_heap_address.
5346
5347 * process.c (make_process): Use allocate_process.
5348
5349 * frame.c (make_frame): Use allocate_frame.
5350
5351 * window.c (make_window, make_dummy_parent): Use allocate_window.
5352 (Fcurrent_window_configuration): Use allocate_other_vector.
5353
5354 * lisp.h (allocate_vectorlike): Remove prototype.
5355 (allocate_vector, allocate_other_vector, allocate_frame)
5356 (allocate_window, allocate_process, allocate_hash_table):
5357 Add prototypes.
5358
5359 * fns.c (Fdelete, larger_vector): Use allocate_vector.
5360 (make_hash_table, copy_hash_table): Use allocate_hash_table.
5361
5362 2001-02-27 Kenichi Handa <handa@etl.go.jp>
5363
5364 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
5365 treat the produced bytes as a valid multibyte sequence.
5366
5367 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
5368 (ccl_driver) <CCL_WriteMultibyteChar2>:
5369 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
5370 <ccl_finish>: Set ccl->eight_bit_control properly.
5371
5372 * ccl.h (struct ccl_program): New member eight_bit_control.
5373
5374 2001-02-26 Stefan Monnier <monnier@cs.yale.edu>
5375
5376 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
5377 accessible_keymaps_char_table.
5378 (accessible_keymaps_char_table): Obey `is_metized'.
5379 (where_is_internal, Fwhere_is_internal): Don't confuse int and
5380 Lisp_Object.
5381
5382 2001-02-26 Gerd Moellmann <gerd@gnu.org>
5383
5384 * dispnew.c: Check HAVE_TERM_H before including term.h.
5385
5386 2001-02-24 Andrew Innes <andrewi@gnu.org>
5387
5388 * makefile.w32-in: Update copyright notice.
5389
5390 2001-02-24 Stefan Monnier <monnier@cs.yale.edu>
5391
5392 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
5393
5394 2001-02-24 Kenichi Handa <handa@etl.go.jp>
5395
5396 * Makefile.in (lisp): Add international/utf-8.elc.
5397
5398 * fontset.c (Fnew_fontset): Fix handling of the case that an
5399 element of FONTLIST is a cons of family and registry.
5400
5401 2001-02-23 Jason Rumney <jasonr@gnu.org>
5402
5403 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
5404 to height unconditionally.
5405
5406 * w32term.c (x_set_glyph_string_background_width): Extend the
5407 background face to the end of the drawing area in the text area, only.
5408 (x_insert_glyphs): Call window_box_left to obtain the left
5409 x-coordinate of the area to shift.
5410
5411 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
5412 safe_run_hooks.
5413
5414 2001-02-22 Andrew Innes <andrewi@gnu.org>
5415
5416 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
5417 ($(BLD)\dispnew.obj):
5418 ($(BLD)\editfns.obj):
5419 ($(BLD)\fileio.obj):
5420 ($(BLD)\filelock.obj):
5421 ($(BLD)\keyboard.obj):
5422 ($(BLD)\w32proc.obj):
5423 ($(BLD)\process.obj):
5424 ($(BLD)\sysdep.obj): Ditto.
5425
5426 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
5427 header files.
5428 ($(BLD)/dispnew.$(O)):
5429 ($(BLD)/editfns.$(O)):
5430 ($(BLD)/fileio.$(O)):
5431 ($(BLD)/filelock.$(O)):
5432 ($(BLD)/keyboard.$(O)):
5433 ($(BLD)/w32proc.$(O)):
5434 ($(BLD)/process.$(O)):
5435 ($(BLD)/sysdep.$(O)): Ditto.
5436
5437 2001-02-22 Gerd Moellmann <gerd@gnu.org>
5438
5439 * xdisp.c (forward_to_next_line_start): When taking the shortcut
5440 at the start of the function, check that the \n in it->c is
5441 from the iterator's current position.
5442
5443 * xdisp.c (handle_single_display_prop): Add parameter
5444 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
5445 properties which replace the display of text with something else.
5446 (handle_display_prop): Call handle_single_display_prop with
5447 additional argument saying if we already replaced text display
5448 with something else. Use AREF.
5449 (with_echo_area_buffer_unwind_data, display_menu_bar)
5450 (decode_mode_spec_coding): Use AREF and ASIZE.
5451
5452 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
5453 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
5454 * vmstime.h: Files removed.
5455
5456 * unexencap.c, unexfx2800.c: Files removed.
5457
5458 * dispnew.c (direct_output_for_insert): Give up if we are showing
5459 a message or just cleared the message because we might need to
5460 resize the echo area window or display an empty echo area.
5461
5462 2001-02-21 Gerd Moellmann <gerd@gnu.org>
5463
5464 * xdisp.c (redisplay_internal): Do the
5465 mark_window_display_accurate after all windows have been
5466 redisplayed because this call resets flags in buffers which are
5467 needed for proper redisplay.
5468
5469 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
5470 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
5471 the old names.
5472
5473 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
5474 busy_window to hourglass_window, busy_p to hourglass_p.
5475
5476 * msdos.h (struct x_output): Rename busy_window to
5477 hourglass_window, busy_p to hourglass_p.
5478
5479 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
5480 busy_window to hourglass_window, busy_p to hourglass_p.
5481
5482 * xfns.c: Rename everything containing *busy_cursor* and similar
5483 to *hourglass*.
5484 (syms_of_w32fns): Rename x-busy-pointer-shape to
5485 x-hourglass-pointer-shape, display-busy-cursor to
5486 display-hourglass, busy-cursor-delay to hourglass-delay.
5487
5488 * w32fns.c: Rename everything containing *busy_cursor* and similar
5489 to *hourglass*.
5490 (syms_of_w32fns): Rename x-busy-pointer-shape to
5491 x-hourglass-pointer-shape, display-busy-cursor to
5492 display-hourglass, busy-cursor-delay to hourglass-delay.
5493
5494 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
5495 of its busy_p flag.
5496
5497 * dispextern.h (start_hourglass, cancel_hourglass)
5498 (display_hourglass_p): Renamed from *busy_cursor*.
5499
5500 2001-02-20 Gerd Moellmann <gerd@gnu.org>
5501
5502 * keyboard.c (read_char): When an event from unread-command-events
5503 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
5504
5505 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
5506 equal to the current buffer.
5507
5508 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
5509 nil, otherwise we're left with truncate_lines t when a message
5510 is printed with message-truncate-lines bound to t.
5511
5512 2001-02-19 Gerd Moellmann <gerd@gnu.org>
5513
5514 * window.c (Fmove_to_window_line): Undo last change.
5515 (displayed_window_lines): Call line_bottom_y to determine
5516 the line's bottom position.
5517
5518 * dispextern.h (line_bottom_y): Add prototype.
5519
5520 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
5521 (pos_visible_p): Use it.
5522
5523 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
5524 set redisplaying_p to 0 here instead of in Frecursive_edit.
5525 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
5526 set redisplaying_p.
5527
5528 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
5529 New variables.
5530 (syms_of_xdisp): Initialize new variables.
5531 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
5532 Specbind `inhibit-menubar-update' when updating the menu bar.
5533
5534 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
5535 safe_run_hooks.
5536
5537 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
5538 safe_run_hooks.
5539
5540 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
5541 is null.
5542
5543 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
5544 to the start of the file.
5545
5546 2001-02-16 Gerd Moellmann <gerd@gnu.org>
5547
5548 * window.c (set_window_buffer): Fix last change.
5549
5550 * window.c (set_window_buffer): Set window's vscroll to 0.
5551
5552 * window.c (coordinates_in_window): Increase width of area
5553 where the vertical line can be dragged.
5554
5555 * xterm.c (x_set_glyph_string_background_width): Extend the
5556 background face to the end of the drawing area in the text
5557 area, only.
5558
5559 * xdisp.c (handle_single_display_prop): Set iterator's position
5560 to where the `display' property starts, like for images.
5561 (dump_glyph): New function.
5562 (dump_glyph_row): Use it. Dump info about marginal areas.
5563
5564 * dispnew.c (direct_output_for_insert): Recognize more cases where
5565 glyphs can be written instead of being inserted.
5566
5567 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
5568 the left x-coordinate of the area to shift.
5569
5570 * dired.c (directory_files_internal): Set result list to nil
5571 before retrying.
5572
5573 2001-02-15 Kenichi Handa <handa@etl.go.jp>
5574
5575 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
5576 invalid multibyte sequence, treat *SRC as a character of
5577 eight-bit-graphic.
5578
5579 2001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
5580
5581 * textprop.c (Fset_text_properties): Doc fix.
5582
5583 2001-02-15 Gerd Moellmann <gerd@gnu.org>
5584
5585 * dispnew.c (update_text_area): Undo change of 2001-01-12.
5586
5587 2001-02-14 Dave Love <fx@gnu.org>
5588
5589 * coding.c: Doc and message fixes.
5590
5591 2001-02-14 Andrew Innes <andrewi@gnu.org>
5592
5593 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
5594 Emacs frame above the screen size.
5595
5596 2001-02-14 Gerd Moellmann <gerd@gnu.org>
5597
5598 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
5599
5600 2001-02-13 Gerd Moellmann <gerd@gnu.org>
5601
5602 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
5603 case that TO ends up beyond ZV after running before-change-functions.
5604
5605 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
5606 the selected window if it is showing the buffer in question.
5607
5608 * dired.c (directory_files_internal): Initialize errno.
5609 (toplevel): Include errno.h.
5610
5611 2001-02-13 Kenichi Handa <handa@etl.go.jp>
5612
5613 * xfaces.c (best_matching_font): New parameter width_ratio.
5614 Multiply avgwidth by width_ratio.
5615 (choose_face_font): Call best_matching_font with width_ratio
5616 calculated from the column width of C.
5617
5618 2001-02-12 Andrew Innes <andrewi@gnu.org>
5619
5620 The following changes are to draw box lines inside characters area
5621 if line-width is negative.
5622
5623 * w32term.c (x_produce_image_glyph): Pay attention to the case that
5624 face->box_line_width is negative.
5625 (x_produce_stretch_glyph): Likewise.
5626 (x_produce_glyphs): Likewise.
5627 (x_estimate_mode_line_height): Likewise.
5628 (x_draw_glyph_string_background): Likewise.
5629 (x_draw_glyph_string_foreground): Likewise.
5630 (x_draw_composite_glyph_string_foreground): Likewise.
5631 (x_draw_glyph_string_box): Likewise.
5632 (x_draw_image_foreground): Likewise.
5633 (x_draw_image_relief): Likewise.
5634 (x_draw_image_foreground_1): Likewise.
5635 (x_draw_image_glyph_string): Likewise.
5636
5637 2001-02-09 Kenichi Handa <handa@etl.go.jp>
5638
5639 The following changes are to draw box lines inside characters area
5640 if line-width is negative.
5641
5642 * xterm.c (x_produce_image_glyph): Pay attention to the case that
5643 face->box_line_width is negative.
5644 (x_produce_stretch_glyph): Likewise.
5645 (x_produce_glyphs): Likewise.
5646 (x_estimate_mode_line_height): Likewise.
5647 (x_draw_glyph_string_background): Likewise.
5648 (x_draw_glyph_string_foreground): Likewise.
5649 (x_draw_composite_glyph_string_foreground): Likewise.
5650 (x_draw_glyph_string_box): Likewise.
5651 (x_draw_image_foreground): Likewise.
5652 (x_draw_image_relief): Likewise.
5653 (x_draw_image_foreground_1): Likewise.
5654 (x_draw_image_glyph_string): Likewise.
5655
5656 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
5657 and :line-width can be negative.
5658 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
5659
5660 2001-02-09 Jason Rumney <jasonr@gnu.org>
5661
5662 * w32term.c (w32_encode_char): Treat eight bit graphic and control
5663 characters the same as ASCII and latin-1.
5664 (x_display_and_set_cursor): Check for the focus frame's selected
5665 window instead of selected_window.
5666 (x_after_update_window_line): Don't clear if frame's internal
5667 border width is zero.
5668 (x_new_font): Don't change a tooltip's size.
5669 (w32_initialize): Set char_ins_del_ok to 1.
5670
5671 * w32fns.c (Fx_show_tip): Fix calls to make_number.
5672 (x_set_font): If font hasn't changed, avoid recomputing
5673 faces and other things.
5674 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
5675 (Fx_create_frame): Add the tool bar height to the frame height.
5676 (x_create_tip_frame): Prevent changing the tooltip's
5677 background color by specifying a color for the default font
5678 in .Xdefaults.
5679 (Qcancel_timer): New variable.
5680 (syms_of_w32fns): Initialize and staticpro it.
5681 (Fx_hide_tip, Fx_show_tip): Use it.
5682 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
5683 the timer.
5684 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
5685
5686 * w32.c (init_environment): Duplicate local string before putenv.
5687
5688 2001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
5689
5690 * charset.c (Fstring): A typo.
5691
5692 2001-02-09 Kenichi Handa <handa@etl.go.jp>
5693
5694 * charset.c (Fstring): If all arguments are less than 256, return
5695 a unibyte string.
5696
5697 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
5698 return a unibyte string.
5699
5700 * coding.c (code_convert_region): After detecting a coding, if
5701 nothing found, set coding->composing to COMPOSITION_NO.
5702 (decode_coding_string): Likewise.
5703
5704 2001-02-08 Stefan Monnier <monnier@cs.yale.edu>
5705
5706 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
5707 to avoid overflow.
5708
5709 2001-02-07 Kenichi Handa <handa@etl.go.jp>
5710
5711 * charset.c (parse_str_to_multibyte): New function.
5712
5713 * charset.h (parse_str_to_multibyte): Extern it.
5714
5715 * print.c (print_string): If we are going to print a unibyte
5716 string into a multibyte buffer, convert the string to multibyte by
5717 str_to_multibyte.
5718
5719 2001-02-06 Andrew Innes <andrewi@gnu.org>
5720
5721 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
5722 been created. It seems we can get sent window messages such as
5723 WM_ERASEBKGND before we properly update a frame.
5724
5725 2001-02-06 Gerd Moellmann <gerd@gnu.org>
5726
5727 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
5728 Avoid some unnecessary cursor positioning.
5729
5730 2001-02-05 Gerd Moellmann <gerd@gnu.org>
5731
5732 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
5733 (LFACE_AVGWIDTH): New macro.
5734 (LFACEP): Use AREF.
5735 (check_lface_attrs): Check LFACE_AVGWIDTH.
5736 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
5737 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
5738 (merge_face_vectors): Check LFACE_AVGWIDTH.
5739 (Finternal_make_lisp_face): Use AREF.
5740 (xm_set_menu_resources_from_menu_face)
5741 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
5742 (Finternal_lisp_face_empty_p): Use AREF.
5743 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
5744 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
5745 Compare average widths..
5746 (best_matching_font): Arrange for comparing average widths.
5747
5748 * dispextern.h (enum lface_attribute_index):
5749 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
5750
5751 2001-02-05 Dave Love <fx@gnu.org>
5752
5753 * puresize.h: Revert last change following loadup.el change.
5754
5755 2001-02-05 Andrew Innes <andrewi@gnu.org>
5756
5757 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
5758 invocation of temacs, to work with Windows 2000.
5759 (bootstrap-emacs): Ditto.
5760
5761 2001-02-05 Gerd Moellmann <gerd@gnu.org>
5762
5763 * xterm.c (x_display_and_set_cursor): Check for the focus
5764 frame's selected window instead of selected_window.
5765
5766 * xdisp.c (try_scrolling): If point is in the line below the
5767 window, make sure to move the iterator at least a canonical
5768 char height down.
5769
5770 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
5771
5772 2001-02-05 Kenichi Handa <handa@etl.go.jp>
5773
5774 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
5775 If invalid, execute CCL_INVALID_CMD.
5776 (ccl_driver): If the CCL program is terminated because of
5777 CCL_STAT_INVALID_CMD, copy the remaining source data to the
5778 destination instead of throwing them away.
5779
5780 2001-02-02 Gerd Moellmann <gerd@gnu.org>
5781
5782 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
5783 faces and other things.
5784
5785 * xdisp.c (get_next_display_element): Fix case of empty
5786 display table entry.
5787
5788 2001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
5789
5790 * editfns.c (Fconstrain_to_field): Doc fix.
5791
5792 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
5793 into `thoroughly', to make it consistent with the doc string.
5794
5795 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
5796
5797 2001-02-01 Gerd Moellmann <gerd@gnu.org>
5798
5799 * search.c (search_buffer): Call set_search_regs with a byte
5800 position, not a character position.
5801
5802 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
5803 minibuffer-only,
5804
5805 2001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
5806
5807 * frame.c (Fmodify_frame_parameters): Doc fix.
5808
5809 2001-01-31 Gerd Moellmann <gerd@gnu.org>
5810
5811 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
5812 identifier which is not reserved by Standard C.
5813
5814 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
5815
5816 * window.c (enum window_part): New enumeration.
5817 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
5818 Qright_bitmap_area.
5819 (coordinates_in_window): Return an enumerator from enum
5820 window_part. Fix handling of right scroll bar.
5821 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
5822 `right-fringe' instead of `left-bitmap-area' and
5823 `right-bitmap-area'. Use enumerators from enum window_part
5824 instead of hard-coded integers.
5825 (check_window_containing, window_from_coordinates):
5826 Use enumerators from enum window_part instead of hard-coded integers.
5827 (syms_of_window): Replace Qleft_bitmap_area and
5828 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
5829
5830 2001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
5831
5832 * editfns.c (Fformat_time_string): Doc fix.
5833
5834 2001-01-31 Stefan Monnier <monnier@cs.yale.edu>
5835
5836 * keymap.c (Fwhere_is_internal): Use the first valid binding
5837 if no ascii binding is found (when firstonly is t).
5838
5839 2001-01-31 Gerd Moellmann <gerd@gnu.org>
5840
5841 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
5842 instead of Finteractive_p.
5843
5844 * lisp.h (interactive_p): Add prototype.
5845
5846 * eval.c (interactive_p): New function.
5847 (Finteractive_p): Use it.
5848
5849 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
5850
5851 2001-01-31 Dave Love <fx@gnu.org>
5852
5853 * .gdbinit (hook-run): Define to run xreload.
5854
5855 * textprop.c (Fset_text_properties): Fix newline in doc string.
5856
5857 2001-01-30 Gerd Moellmann <gerd@gnu.org>
5858
5859 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
5860 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
5861
5862 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
5863 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
5864 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
5865
5866 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
5867 height.
5868
5869 2001-01-30 Dave Love <fx@gnu.org>
5870
5871 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
5872 AFTER_POTENTIAL_GC.
5873
5874 2001-01-29 Gerd Moellmann <gerd@gnu.org>
5875
5876 * bytecode.c (Fbyte_code) <Bcurrent_column>:
5877 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
5878
5879 2001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
5880
5881 * textprop.c (Fset_text_properties): Doc fix.
5882
5883 2001-01-29 Gerd Moellmann <gerd@gnu.org>
5884
5885 * xdisp.c (forward_to_next_line_start): Remove xassert.
5886
5887 2001-01-29 Jason Rumney <jasonr@gnu.org>
5888
5889 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
5890 returning without releasing it.
5891
5892 2001-01-29 Kenichi Handa <handa@etl.go.jp>
5893
5894 * w32fns.c (w32_font_match): Allocate three more bytes to regex
5895 for '^', '$', and '\0'.
5896
5897 2001-01-28 Andrew Choi <akochoi@i-cable.com>
5898
5899 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
5900 regex for '^', '$', and '\0'.
5901
5902 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
5903 only if current_sblock has been initialized.
5904
5905 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
5906 terminal frame even if it is the only visible frame.
5907
5908 2001-01-28 Kenichi Handa <handa@etl.go.jp>
5909
5910 * fontset.c (font_family_registry): Even if FONTNAME conform to
5911 XLFD, if it specifies other fields than family and registry,
5912 return FONTANME. New argument FORCE if nonzero cancel that feature.
5913 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
5914 a signle byte character. Don't set FAMILY part to nil here.
5915 It is handled by the caller choose_face_font.
5916 (Fnew_fontset): Call font_family_registry with FORCE 0.
5917 (Fset_fontset_font): Likewise.
5918
5919 2001-01-27 Gerd Moellmann <gerd@gnu.org>
5920
5921 * xdisp.c (display_line): Don't treat a newline as fitting
5922 on the line.
5923
5924 2001-01-26 Gerd Moellmann <gerd@gnu.org>
5925
5926 * window.c (size_window): Set the window's orig_top to nil when
5927 changing heights, so that a future shrink_mini_window won't
5928 restore a bogus height.
5929
5930 * frame.c (do_switch_frame): If selected frame has a mini-window,
5931 resize that to exact size.
5932
5933 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
5934
5935 * xdisp.c (display_line): Simplify check for glyphs fitting
5936 entirely in the line.
5937
5938 * xfns.c (xic_style): New variable.
5939 (create_frame_xic): Move static variable to global scope for
5940 the case that `static' gets defined away.
5941
5942 2001-01-26 Kenichi Handa <handa@etl.go.jp>
5943
5944 * coding.c (decode_coding): Set a flag for inhibiting
5945 inconsistent eol.
5946 (code_convert_region): Always set saved_coding_symbol.
5947 (decode_coding_string): Likewise. Update coding->symbol when we
5948 encounter a inconsistent eol by the same way as code_convert_region.
5949
5950 2001-01-25 Gerd Moellmann <gerd@gnu.org>
5951
5952 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
5953 XClearArea.
5954
5955 * xterm.c (x_after_update_window_line): Don't clear if frame's
5956 internal border width is zero.
5957 (x_clear_area): New function.
5958 (x_after_update_window_line, x_clear_end_of_line)
5959 (x_scroll_bar_create, x_scroll_bar_set_handle)
5960 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
5961 instead of XClearArea.
5962
5963 * xterm.h (x_clear_area): Add prototype.
5964
5965 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
5966 which doesn't seem necessary anymore with Lesstif 0.92.
5967
5968 2001-01-25 Dave Love <fx@gnu.org>
5969
5970 * puresize.h (BASE_PURESIZE): Up to 720000.
5971
5972 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
5973
5974 2001-01-25 Gerd Moellmann <gerd@gnu.org>
5975
5976 * xdisp.c (echo_area_display): Don't call redisplay_internal
5977 when Emacs is shutting down. We can't run hooks etc. that
5978 would be necessary to do a redisplay.
5979
5980 * lread.c (read_integer): Use type EMACS_INT instead of int.
5981
5982 2001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
5983
5984 * ccl.c (ccl_driver): Fix last change.
5985
5986 2001-01-25 Kenichi Handa <handa@etl.go.jp>
5987
5988 * ccl.h (sturct ccl_program): New member suppress_error.
5989
5990 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
5991 insert error message to the output.
5992 (setup_ccl_program): Initialize ccl->suppress_error to 0.
5993
5994 * coding.h (struct coding_system): New member suppress_error.
5995
5996 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
5997 (Fset_terminal_coding_system_internal): Set the member
5998 suppress_error to 1.
5999 (Fset_safe_terminal_coding_system_internal): Likewise.
6000
6001 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
6002
6003 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
6004 as if it was a `charset'.
6005
6006 2001-01-24 Gerd Moellmann <gerd@gnu.org>
6007
6008 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
6009 value in where_is_cache; the next lookup in the cache returns
6010 something bogus if we do.
6011
6012 2001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
6013
6014 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
6015 if HAVE_WINDOW_SYSTEM isn't defined.
6016
6017 2001-01-24 Gerd Moellmann <gerd@gnu.org>
6018
6019 * fns.c (sweep_weak_table): Fix code taking items out of
6020 the hash collision chain. Some cleanup.
6021
6022 * xterm.c (x_new_font): Don't change a tooltip's size.
6023
6024 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
6025 background color by specifying a color for the default font
6026 in .Xdefaults.
6027
6028 2001-01-24 Kenichi Handa <handa@etl.go.jp>
6029
6030 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
6031 a workaround for SunOS 4's cc.
6032 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
6033 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
6034 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
6035 statement.
6036
6037 2001-01-23 Gerd Moellmann <gerd@gnu.org>
6038
6039 * xterm.c (x_set_window_size_1): New function extracted from
6040 x_set_window_size.
6041 (x_set_window_size): Use it.
6042 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
6043 doesn't have a widget, like tooltips.
6044
6045 2001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
6046
6047 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
6048
6049 2001-01-23 Kenichi Handa <handa@etl.go.jp>
6050
6051 * fns.c (Fset_char_table_default): Fix to make sub char-table
6052 correctly.
6053
6054 2001-01-22 Gerd Moellmann <gerd@gnu.org>
6055
6056 * xdisp.c (build_desired_tool_bar_string): Make sure we have
6057 a desired tool bar string, even if there are no tool bar items.
6058
6059 * xdisp.c (Ftool_bar_lines_needed): New function.
6060 (syms_of_xdisp): Defsubr it.
6061
6062 * editfns.c (Fformat): Don't extend text properties from arguments
6063 to padding chars in the result.
6064
6065 2001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
6066
6067 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
6068
6069 2001-01-20 Andrew Innes <andrewi@gnu.org>
6070
6071 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
6072 (w32_initialize): Don't set term hooks that aren't actually needed
6073 in windowed mode.
6074
6075 * xfaces.c (realize_default_face):
6076 (realize_face):
6077 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
6078
6079 * xdisp.c (handle_single_display_prop): Remove references to
6080 FRAME_W32_CONSOLE_P.
6081
6082 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
6083
6084 * frame.h (output_method): Remove output_w32_console method.
6085 (FRAME_W32_CONSOLE_P): Remove macro.
6086
6087 * frame.c (Qw32_console): Remove variable.
6088 (Fframep): Remove references to it.
6089 (syms_of_frame): Ditto.
6090 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
6091
6092 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
6093 redefinition.
6094
6095 2001-01-20 Kenichi Handa <handa@etl.go.jp>
6096
6097 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
6098
6099 2001-01-19 Andrew Innes <andrewi@gnu.org>
6100
6101 * w32.c (init_environment): Add a version-independent site-lisp
6102 directory to EMACSLOADPATH, after the version dependent one.
6103
6104 2001-01-19 Gerd Moellmann <gerd@gnu.org>
6105
6106 * editfns.c (Fbuffer_substring): Doc fix.
6107
6108 * xdisp.c (message_dolog, message2, message2_nolog):
6109 Rename parameter LEN to NBYTES.
6110
6111 2001-01-19 Kenichi Handa <handa@etl.go.jp>
6112
6113 * charset.c (strwidth): Use c_string_width.
6114 (c_string_width): New function.
6115 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
6116 Caller changed.
6117
6118 * charset.h (c_string_width, lisp_string_width): Extern them.
6119
6120 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
6121
6122 * indent.c (check_composition): Check validity of composition.
6123
6124 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
6125 characters by calling c_string_width.
6126 (x_consider_frame_title): Get byte length of frame tile string
6127 correctly.
6128 (display_mode_element): Pay attention to width of non-ASCII
6129 characters by calling strwidth.
6130
6131 2001-01-18 Gerd Moellmann <gerd@gnu.org>
6132
6133 * xfns.c (Qcancel_timer): New variable.
6134 (syms_of_xfns): Initialize and staticpro it.
6135 (Fx_hide_tip, Fx_show_tip): Use it.
6136 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
6137 the timer.
6138 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
6139
6140 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
6141
6142 * window.h (WINDOW_LIVE_P): New macro.
6143
6144 * window.c (window_size_fixed): New variable.
6145 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
6146 the doc string.
6147
6148 * eval.c (specbind): If binding a per-buffer variable which
6149 doesn't have a buffer-local value in the current buffer, change
6150 the global value by changing the value of the symbol bound in all
6151 buffers not having their own value, to make it consistent with
6152 what happens with other buffer-local variables.
6153
6154 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
6155
6156 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
6157 when searching for a newline.
6158
6159 2001-01-18 Kenichi Handa <handa@etl.go.jp>
6160
6161 * xdisp.c (display_string): Fix previous change.
6162
6163 2001-01-18 Jason Rumney <jasonr@gnu.org>
6164
6165 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
6166 GLYPH_DEBUG is defined.
6167 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
6168 true for images with `:ascent 100'.
6169 (x_set_mouse_face_gc): If the last used mouse face has gone in the
6170 meantime, use face MOUSE_FACE_ID.
6171 If first glyph isn't a character glyph, use the ASCII NUL
6172 character to determine the face.
6173 (expose_area): Do not treat left margin specially.
6174 (note_mode_line_highlight): If no local_map, check global keymap.
6175 (note_mouse_highlight): Initialize overlay.
6176 (clear_mouse_face): Don't return if tip_frame is non-nil.
6177 (show_scroll_bars): Remove unused function.
6178 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
6179 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
6180 Clip to row.
6181 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
6182 (x_free_frame_resources): Unload relief colors.
6183
6184 2001-01-17 Gerd Moellmann <gerd@gnu.org>
6185
6186 * xdisp.c (forward_to_next_line_start): Avoid calling
6187 get_next_display_element when the newline is already found.
6188 This may change the iterator's position, when its current position is
6189 equal to the iterator's stop_charpos.
6190
6191 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
6192 zero, use this method only at the end of a line.
6193
6194 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
6195 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
6196 if SCALABLE_FONTS_P is set.
6197
6198 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
6199 so that scalable fonts are included.
6200
6201 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
6202 In the cache, use a key containing the information if scalable
6203 fonts are included.
6204 (x_load_font): Adapt to change of keys in the font cache.
6205
6206 2001-01-17 Kim F. Storm <storm@filanet.dk>
6207
6208 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
6209 XListFonts to take advantage of font caching.
6210
6211 * xterm.c (x_list_fonts): Ensure caching font information when
6212 called for a null frame, which is the case frequently when Emacs
6213 starts.
6214
6215 2001-01-17 Gerd Moellmann <gerd@gnu.org>
6216
6217 * xfns.c (QCconversion): Replaces QCalgorithm.
6218
6219 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
6220
6221 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
6222 of :algorithm.
6223
6224 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
6225 not everything could be displayed.
6226
6227 * line.h, x-list-font.c: Files removed because unused.
6228
6229 2001-01-17 Andrew Innes <andrewi@gnu.org>
6230
6231 * dired.c (directory_files_internal): Convert result from readdir
6232 to a unibyte string initially, to avoid possible misinterpretation
6233 of some bytes as the internal form of Emacs characters.
6234
6235 2001-01-17 Kenichi Handa <handa@etl.go.jp>
6236
6237 * fns.c (concat): Be sure to avoid putting the same `composition'
6238 property on the adjacent regions.
6239
6240 2001-01-16 Gerd Moellmann <gerd@gnu.org>
6241
6242 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
6243 (Fscroll_right, Fscroll_left): Set it here instead, if called
6244 interactively.
6245
6246 * buffer.c (Fset_buffer_modified_p): Set buffer's
6247 prevent_redisplay_optimizations_p flag.
6248
6249 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
6250 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
6251 with additional arg.
6252
6253 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
6254 Change prototype.
6255
6256 * xdisp.c (redisplay_preserve_echo_area): Add parameter
6257 FROM_WHERE, for debugging.
6258
6259 2001-01-16 Kenichi Handa <handa@etl.go.jp>
6260
6261 * ccl.c (Fregister_ccl_program): Handle the return value of
6262 resolve_symbol_ccl_program correctly.
6263 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
6264
6265 2001-01-15 Gerd Moellmann <gerd@gnu.org>
6266
6267 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
6268 has gone in the meantime, use face MOUSE_FACE_ID.
6269
6270 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
6271 If x_display_info_for_display returns null, don't try to close
6272 the display; we didn't open it.
6273
6274 * dispnew.c (save_or_restore_current_matrices): Function removed.
6275 (save_current_matrix, restore_current_matrix): New functions.
6276 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
6277 restore the frame's current matrix. Due to the glyph pointer
6278 setup done in adjust_glyph_matrix, there is no easy way to make
6279 saving the current matrix in the desired matrix generally correct,
6280 so don't try it.
6281
6282 2001-01-15 Kenichi Handa <handa@etl.go.jp>
6283
6284 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
6285 truncation glyphs.
6286 (display_line): Optimize for wide characters.
6287 (display_string): Don't try to display a multi-column character
6288 partially. On ttys, produce more than one truncation glyph for
6289 multi-column characters that don't fit on the line.
6290
6291 2001-01-13 Kenichi Handa <handa@etl.go.jp>
6292
6293 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
6294 Define it instead of WORDS_BIGENDIAN. Caller changed.
6295
6296 2001-01-13 Jason Rumney <jasonr@gnu.org>
6297
6298 * w32fns.c (Fimage_size, image_ascent, lookup_image)
6299 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
6300 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
6301 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
6302
6303 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
6304 (x_draw_image_relief, x_draw_image_foreground_1)
6305 (x_draw_image_glyph_string): Adapt to change of image margins.
6306
6307 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
6308 variables.
6309
6310 * w32bdf.c (search_file_line, get_cached_font_char)
6311 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
6312
6313 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
6314
6315 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
6316 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
6317 (Fw32_send_sys_command): Remove unused variables.
6318 (w32_msg_pump): Add parentheses.
6319
6320 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
6321 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
6322 Add parentheses.
6323
6324 2001-01-12 Gerd Moellmann <gerd@gnu.org>
6325
6326 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
6327 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
6328 being a pair of margins.
6329 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
6330 to DEFVAR_LISP. Extend doc.
6331
6332 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
6333 margins.
6334 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
6335 pair of integers `(X . Y)', use X for the horizontal and Y for the
6336 vertical margin.
6337 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
6338 (parse_image_spec): Check it.
6339 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
6340 (tiff_format, gif_format, gs_format):
6341 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
6342
6343 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
6344 (x_draw_image_relief, x_draw_image_foreground_1)
6345 (x_draw_image_glyph_string): Adapt to the change of image margins.
6346
6347 * dispextern.h (struct image): Replace member `margin' with
6348 `hmargin' and `vmargin'.
6349
6350 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
6351 and GLYPHS.
6352
6353 * dispnew.c (update_text_area): Put code which decrements the
6354 stop position when the row's face extends to the end of the
6355 line in #if 0.
6356
6357 * xfns.c (x_set_mouse_color): Fix color allocation.
6358
6359 * keyboard.c: Call get_local_map with new argument list.
6360
6361 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
6362
6363 * intervals.h (enum map_property): Removed.
6364 (get_local_map): Change prototype.
6365
6366 * keymap.c: Call get_local_map with new argument list.
6367 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
6368
6369 2001-01-11 Gerd Moellmann <gerd@gnu.org>
6370
6371 * xdisp.c (build_desired_tool_bar_string): Correct the computation
6372 of the size needed for the tool bar string. For the last image,
6373 use a `display' property that reaches to the end of the string.
6374
6375 * xselect.c (selection_request_dpyinfo): New variable.
6376 (x_handle_selection_request): Set it.
6377 (x_selection_request_lisp_error): Don't call
6378 x_decline_selection_request if selection request's display has
6379 been closed.
6380
6381 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
6382 Do the unregister_colors before calling XFreeColors.
6383
6384 2001-01-10 Dave Love <fx@gnu.org>
6385
6386 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
6387 ${SOME_MACHINE_LISP}, not ${lisp}.
6388
6389 2001-01-10 Gerd Moellmann <gerd@gnu.org>
6390
6391 * xdisp.c (display_line): On ttys, produce more than one truncation
6392 glyph for multi-column characters that don't fit on the line.
6393
6394 * xselect.c (x_reply_selection_request): Add a comment.
6395
6396 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
6397 XkbGetNames instead of XkbGetKeyboard.
6398
6399 2001-01-10 Dave Love <fx@gnu.org>
6400
6401 * sysdep.c (random): Revert the declaration.
6402
6403 2001-01-09 Gerd Moellmann <gerd@gnu.org>
6404
6405 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
6406 Call function string_bytes.
6407 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
6408
6409 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
6410 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
6411 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
6412 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
6413 the current sblock.
6414 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
6415 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
6416 after sweeping strings, and at the end.
6417 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
6418
6419 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
6420 ensure that pop_message is called.
6421
6422 * keyboard.c (Fexecute_extended_command): Use a
6423 record_unwind_protect to ensure that pop_message is called.
6424
6425 * lisp.h (push_message_unwind): Add prototype.
6426
6427 * xdisp.c (push_message_unwind): New function.
6428
6429 * fileio.c (do_auto_save_unwind): Do the pop_message here
6430 instead of in Fdo_auto_save.
6431 (Fdo_auto_save): Don't call pop_message.
6432
6433 2001-01-08 Ken Raeburn <raeburn@gnu.org>
6434
6435 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
6436 in inner block.
6437
6438 2001-01-08 Gerd Moellmann <gerd@gnu.org>
6439
6440 * window.c (window_scroll_pixel_based): Adjust glyph matrices
6441 when increasing window's vscroll.
6442
6443 * macros.c (Qkbd_macro_termination_hook): New variable.
6444 (syms_of_macros): Initialize and staticpro it.
6445 (pop_kbd_macro): Run kbd-macro-termination-hook.
6446
6447 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
6448
6449 2001-01-07 Dave Love <fx@gnu.org>
6450
6451 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
6452 arglist, for documentation's sake.
6453
6454 2001-01-06 Andrew Innes <andrewi@gnu.org>
6455
6456 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
6457 of *.pdb.
6458
6459 2001-01-05 Andrew Innes <andrewi@gnu.org>
6460
6461 * term.c (update_end): Don't check updating_frame; for some reason
6462 this can be 0 sometimes, such as after dismissing a popup menu,
6463 and isn't necessary given the explicit frame argument.
6464
6465 2001-01-05 Gerd Moellmann <gerd@gnu.org>
6466
6467 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
6468 on some systems, and an unsigned long on others, like FreeBSD 4.1.
6469
6470 2001-01-04 Gerd Moellmann <gerd@gnu.org>
6471
6472 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
6473
6474 * xfns.c (x_create_tip_frame): Preserve the value of
6475 face_change_count around the creation of the tip frame.
6476
6477 * xfns.c (last_show_tip_args): New variable.
6478 (compute_tip_xy): New function.
6479 (Fx_show_tip): Reuse an existing tip frame, if possible.
6480 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
6481
6482 2001-01-04 Dave Love <fx@gnu.org>
6483
6484 * editfns.c (Fformat): Doc fix.
6485
6486 * systime.h (set_file_times): Prototype.
6487
6488 * widget.h (EmacsFrameSetCharSize_): Prototype.
6489
6490 * sysdep.c (random, srandom): Declare explicitly.
6491
6492 * dispextern.h (move_it_vertically_backward): Declare.
6493
6494 2001-01-04 Gerd Moellmann <gerd@gnu.org>
6495
6496 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
6497 like in Fx_create_frame.
6498
6499 * xfaces.c (set_font_frame_param): Don't do anything for
6500 non-graphical frames.
6501
6502 * window.c (Fdelete_other_windows): Set window's window_end_valid
6503 to nil when changing the window's start. Don't change the
6504 window's start when its top position hasn't changed. If we do,
6505 this will set the window's optional_new_start, which act's like a
6506 force_start during redisplay with C-x 1 M-> under particular
6507 circumstances (see report from Per Starback to emacs-pretest-bug
6508 from 2000-12-13.).
6509
6510 2001-01-03 Gerd Moellmann <gerd@gnu.org>
6511
6512 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
6513 short cut at the start of the function. Add an assertion.
6514 (reseat_at_next_visible_line_start): Add an assertion.
6515
6516 * window.c (Frecenter): When changing the window start, set the
6517 window's window_end_valid to nil.
6518 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
6519
6520 * dispextern.h (move_it_past_eol): Add prototype.
6521
6522 * xdisp.c (move_it_past_eol): New function.
6523
6524 * window.c (Fwindow_end): Doc fix.
6525
6526 2001-01-03 Dave Love <fx@gnu.org>
6527
6528 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
6529
6530 2001-01-03 Gerd Moellmann <gerd@gnu.org>
6531
6532 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
6533 the enabled_p flag of the glyph row at window_end_vpos to 0.
6534 (handle_single_display_prop): Fix last change.
6535
6536 2001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
6537
6538 * window.c (Frecenter): Doc fix.
6539
6540 2001-01-02 Andrew Innes <andrewi@gnu.org>
6541
6542 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
6543
6544 * frame.h (output_method): Add output_w32_console method.
6545 (FRAME_W32_CONSOLE_P): New macro.
6546
6547 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
6548 use output_w32_console method.
6549 (Qw32_console): New Lisp_Object.
6550 (Fframep): Return it.
6551 (syms_of_frame): Init it.
6552 (Fframe_parameters): Report w32console as font for w32_console frames.
6553
6554 * xfaces.c (realize_default_face): Set face foreground and
6555 background to unspecified for w32_console frames.
6556 (realize_face): Realize face cache for w32_console frames.
6557 (realize_tty_face): Accept w32_console frames.
6558
6559 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
6560 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
6561 necessary, even if running interactively.
6562
6563 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
6564 w32_console frames.
6565
6566 * w32term.c (x_update_begin):
6567 (x_update_end):
6568 (x_clear_frame):
6569 (x_ins_del_lines):
6570 (x_change_line_highlight):
6571 (x_delete_glyphs):
6572 (w32_ring_bell):
6573 (x_update_begin):
6574 (x_update_end):
6575 (w32_reassert_line_highlight):
6576 (w32_frame_rehighlight):
6577 (w32_frame_raise_lower): Do nothing if not w32 frame.
6578
6579 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
6580
6581 * w32fns.c (Fx_display_color_cells): Determine correct value, when
6582 system doesn't tell us directly.
6583 (Fx_display_visual_class): Implement properly.
6584
6585 2001-01-02 Gerd Moellmann <gerd@gnu.org>
6586
6587 * window.c (Frecenter): Handle centering in graphical frames
6588 specially. Centering on the basis of line counts doesn't work
6589 reliably with variable-height lines.
6590
6591 2001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
6592
6593 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
6594 and al[].
6595
6596 * composite.c (run_composition_function): Remove unused var `val'.
6597 (update_compositions): Remove unused variable `hook'.
6598
6599 * intervals.c (get_local_map): Remove unused variable `tem'.
6600
6601 * doprnt.c (doprnt1): Remove unused variable `size'.
6602
6603 * fns.c (Flength): Remove unused variable `tail'.
6604 (Fdelete): Remove unused variable `size'.
6605
6606 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
6607 and `gcpro2'.
6608
6609 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
6610
6611 * data.c (find_symbol_value): Remove extra 3rd argument in the
6612 call to swap_in_symval_forwarding.
6613
6614 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
6615
6616 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
6617 (trivial_regexp_p): Remove unused variable `c'.
6618 (boyer_moore): Remove unused variable `k'.
6619
6620 * indent.c (current_column): Remove unused variable `stopchar'.
6621 (Fcompute_motion): Remove unused variable `contin'.
6622
6623 * casefiddle.c (casify_object): Remove unused variable `tolen'.
6624
6625 * dired.c (directory_files_internal): Fix a typo in a comment.
6626 Remove an unused variable `handler'.
6627 (file_name_completion): Remove unused function-scope variable `dp'.
6628 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
6629 on BSD4_2.
6630
6631 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
6632
6633 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
6634 and `buf'.
6635 (Fmarker_insertion_type): Remove unused variable `buf'.
6636
6637 * insdel.c (make_gap): Remove unused variable `result'.
6638
6639 * keyboard.c (record_char): Remove unused function-scope var `help'.
6640 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
6641 (menu_bar_items): Remove unused function-scope variable `tem'.
6642
6643 * fontset.c (fontset_ref): Remove unused variable `i'.
6644 (fontset_set): Remove unused variables `j' and `tmp'.
6645 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
6646 (make_fontset_for_ascii_face): Remove unused variable `name'.
6647 (fs_load_font): Remove unused variable `font_idx'.
6648 (fs_query_fontset): Remove unused function-local variable `fontset'.
6649 (list_fontsets): Remove unused variable `tail'.
6650 (Fnew_fontset): Remove unused variables `family' and `registry'.
6651 (accumulate_font_info): Remove unused variable `tmp'.
6652 (Ffontset_font): Remove unused variable `id'.
6653 (syms_of_fontset): Remove unused variable `i'.
6654
6655 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
6656 to x_term_init.
6657 (lookup_image): Remove unused variable `file'.
6658 (xbm_load): Remove unused variables `bitmap_data', `height', and
6659 `width'. Remove function-local variable `i', leave the
6660 block-local one.
6661 (gif_load): Remove unused variable `inc'.
6662
6663 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
6664 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
6665 leave only the one in the inner block.
6666
6667 * xfaces.c (face_fontset, realize_default_face): Remove unused
6668 variable `fontset'.
6669 (face_at_buffer_position): Remove unused variable `multibyte_p'.
6670
6671 * term.c (encode_terminal_code): Remove unused variable `c'.
6672
6673 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
6674 char *' instead of `char *'.
6675
6676 * category.c (Fcategory_docstring): Remove unused variable `doc'.
6677 (Fget_unused_category): Remove unused variable `docstring_vector'.
6678 (Fchar_category_set): Remove unused variables `val', `charset',
6679 `c1' and `c2'.
6680
6681 * coding.c (detect_coding_iso2022, setup_coding_system):
6682 Remove unused variable `i'.
6683 (detect_coding_mask): Remove unused variable `idx'.
6684 (detect_coding): Remove unused variable `i'.
6685 (ccl_coding_driver): Remove unused variable `result'.
6686 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
6687 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
6688 (encode_coding_string): Remove unused variables `gcpro1' and
6689 `saved_coding_symbol'.
6690 (Ffind_coding_systems_region_internal): Remove function-local
6691 variable args[], leave only the block-local one.
6692 (code_convert_region1): Remove unused variable `len'.
6693
6694 * charset.c (char_printable_p): Remove unused variable `chars'.
6695 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
6696 (str_to_multibyte): Remove unused variable `c'.
6697
6698 * window.c (size_window): Remove block-local variable `min_size'.
6699
6700 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
6701 `header_line_height'.
6702 (append_space, extend_face_to_end_of_line): Declare `saved_what'
6703 enum display_element_type.
6704
6705 2001-01-02 Gerd Moellmann <gerd@gnu.org>
6706
6707 * xterm.c (x_connection_closed): Catch X errors around all
6708 statements that call X. Save away the error message in a local copy.
6709
6710 * xterm.c (x_connection_closed): Set handling_signal to 0 at
6711 the start.
6712
6713 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
6714 in or at the start of invisible text.
6715
6716 * dispnew.c (update_window): Don't check_current_matrix_flags.
6717
6718 2001-01-01 Jason Rumney <jasonr@gnu.org>
6719
6720 * w32fns.c (x_figure_window_size): Do not allow new_height and
6721 new_width of frame to override specified values.
6722
6723 2000-12-30 Kenichi Handa <handa@etl.go.jp>
6724
6725 * composite.c (find_composition): Fix a code for searching backward.
6726
6727 2000-12-29 Gerd Moellmann <gerd@gnu.org>
6728
6729 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
6730 (update_window) [GLYPH_DEBUG]: Call it.
6731 (scrolling_window): Prevent including current rows which are below
6732 what's displayed in the window.
6733
6734 * xdisp.c (try_window_reusing_current_matrix)
6735 <new start <= old start>: Disable rows in the current matrix
6736 which are below the window after scrolling.
6737
6738 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
6739 is zero. It's not worth the complexity.
6740 (invisible_text_between_p): Put in #if 0 because unused.
6741
6742 2000-12-28 Gerd Moellmann <gerd@gnu.org>
6743
6744 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
6745 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
6746
6747 * keyboard.c (echo_char): If C is an integer, always call
6748 push_key_description. Former code could signal an invalid
6749 character error.
6750
6751 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
6752 If set, print multibyte text.
6753 (Fsingle_key_description): Call push_key_description with
6754 FORCE_MULTIBYTE set.
6755 (describe_buffer_bindings): Likewise.
6756
6757 * lisp.h (push_key_description): Add prototype.
6758
6759 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
6760 around the call to redisplay_internal.
6761
6762 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
6763
6764 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
6765
6766 2000-12-28 Kenichi Handa <handa@etl.go.jp>
6767
6768 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
6769 (ccl_driver): New local variable `extra_bytes'.
6770
6771 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
6772
6773 * coding.c (setup_coding_system):
6774 Initialize coding->spec.ccl.eight_bit_carryover.
6775 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
6776
6777 2000-12-28 Kenichi Handa <handa@etl.go.jp>
6778
6779 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
6780 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
6781 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
6782 (decode_composition_emacs_mule): New function.
6783 (decode_coding_emacs_mule): Decode composition sequence by calling
6784 decode_composition_emacs_mule.
6785 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
6786 (encode_coding_emacs_mule): Changed from macro to function.
6787 If a text contains compositions, encode them correctly.
6788 (setup_coding_system): Set coding->commong_flags for emacs-mule so
6789 that decoding and encoding are required.
6790
6791 2000-12-27 Gerd Moellmann <gerd@gnu.org>
6792
6793 * xfaces.c (PT_PER_INCH): New macro.
6794 (xlfd_point_size): Compute real point size from font's pixel size.
6795 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
6796 instead of 72.
6797
6798 * .gdbinit: Comment out the line pointing to the Lesstif source
6799 directory.
6800
6801 * window.c (Frecenter): Use displayed_window_lines instead
6802 of window_internal_height.
6803
6804 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
6805 instead of x-toolkit-scroll-bars-p.
6806 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
6807
6808 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
6809 instead of x-toolkit-scroll-bars-p.
6810 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
6811
6812 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
6813 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
6814 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
6815 New variables.
6816 (add_window_display_history, add_frame_display_history)
6817 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
6818 (build_frame_matrix_from_leaf_window): Remove unused code.
6819 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
6820 redisplay history.
6821 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
6822 (update_window) [GLYPH_DEBUG]: Likewise.
6823 (syms_of_display): Defsubr dump-redisplay-history.
6824
6825 2000-12-23 Gerd Moellmann <gerd@gnu.org>
6826
6827 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
6828 the end of the prompt. Set echo_after_prompt to the offset
6829 of echoptr in echobuf.
6830
6831 * xdisp.c (init_from_display_pos): Pop until the iterator's
6832 stack is empty; there may be frames for stretch or images
6833 on the stack.
6834
6835 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
6836 (save_or_restore_current_matrix): New function for the same
6837 purpose, but more efficient.
6838 (adjust_frame_glyphs_for_frame_redisplay): Use it.
6839
6840 2000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
6841
6842 * xdisp.c (syms_of_xdisp): Fix last change.
6843
6844 2000-12-23 Gerd Moellmann <gerd@gnu.org>
6845
6846 * xdisp.c (syms_of_xdisp): Doc fix.
6847
6848 * xdisp.c (redisplay_window): Remove label restore_buffers;
6849 use finish_scroll_bars instead to make sure that scroll bars
6850 are redeemed. If we don't do this, flickering can result from
6851 scroll bars being destroyed and recreated.
6852
6853 2000-12-22 Jason Rumney <jasonr@gnu.org>
6854
6855 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
6856 in the wrong colors when the foreground is not black.
6857 (expose_window): Don't redraw the window that's currently being
6858 updated.
6859
6860 2000-12-22 Gerd Moellmann <gerd@gnu.org>
6861
6862 * window.c (size_window): When setting the window's too_small_ok
6863 flag, compare old size with minimum size depending on WIDTH_P,
6864 don't compare with window_min_width.
6865
6866 * window.c (delete_window): Simplify somewhat.
6867 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
6868 freeing window matrices. The flag windows_or_buffers_changed is
6869 set, so the next redisplay will consider all windows; this should
6870 suffice.
6871
6872 2000-12-22 Kenichi Handa <handa@etl.go.jp>
6873
6874 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
6875
6876 * ccl.h (struct ccl_program): New member cr_consumed.
6877
6878 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
6879 (CCL_READ_CHAR): Handle EOL conversion here.
6880 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
6881
6882 2000-12-21 Gerd Moellmann <gerd@gnu.org>
6883
6884 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
6885
6886 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
6887 otherwise tabs of different size compare equal.
6888
6889 * callint.c (Fcall_interactively): Prevent a compiler warning.
6890
6891 * print.c (print_unwind): Return nil.
6892 (PRINTDECLARE): Initialize all local variables.
6893 (print_preprocess): Add a default case.
6894
6895 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
6896
6897 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
6898
6899 * window.c (delete_window, Fsplit_window)
6900 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
6901
6902 * dispextern.h (ensure_frame_matrix): Function declaration removed.
6903
6904 * dispnew.c (ensure_frame_matrix): Removed.
6905 (save_frame_matrix, restore_frame_matrix): New functions.
6906 (adjust_frame_glyphs_for_frame_redisplay): Use them.
6907
6908 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
6909 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
6910
6911 2000-12-21 Andrew Innes <andrewi@gnu.org>
6912
6913 * w32term.c (x_update_begin): Regenerate the palette here, rather
6914 than for each window.
6915
6916 * w32xfns.c (select_palette): Avoid calling SelectPalette if
6917 palette is NULL, since this corrupts memory! Also get
6918 display_info reference from frame.
6919
6920 2000-12-21 Jason Rumney <jasonr@gnu.org>
6921
6922 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
6923
6924 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
6925 to avoid returning without releasing it.
6926
6927 2000-12-21 Kenichi Handa <handa@etl.go.jp>
6928
6929 * keymap.c (push_key_description): Don't convert eight-bit-control
6930 and eight-bit-graphic to multibyte character.
6931
6932 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
6933 generic character and CODE1 is nil, return the smallest character
6934 in CHARSET.
6935
6936 2000-12-20 Dave Love <fx@gnu.org>
6937
6938 * s/osf5-0.h (NSIG): Don't redefine.
6939
6940 2000-12-20 Stefan Monnier <monnier@cs.yale.edu>
6941
6942 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
6943 excluding menu-bar and tool-bar.
6944 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
6945 (menu_item_p): Remove.
6946 (where_is_internal_1): Don't ignore menu-items.
6947
6948 2000-12-20 Gerd Moellmann <gerd@gnu.org>
6949
6950 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
6951 into account.
6952
6953 * window.c (make_window): Initialize window's min_hscroll.
6954 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
6955 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
6956 to zero.
6957 (struct saved_window): New member min_hscroll.
6958 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
6959 (Fset_window_configuration): Set window's min_hscroll.
6960 (save_window_save): Save window's min_hscroll.
6961 (compare_window_configurations): Compare min_hscroll values.
6962
6963 * window.h (struct window): New member min_hscroll.
6964
6965 * keyboard.c (echo_prompt): Prevent a compiler warning.
6966
6967 * xdisp.c (try_cursor_movement): Fix last change. The real
6968 condition is that PT is at the end of the row, and should
6969 be displayed at the start of the next row.
6970
6971 * xdisp.c (try_cursor_movement): If we end on a partially
6972 visible line, end we already decided to scroll, return -1.
6973
6974 * dispextern.h (ensure_frame_matrix): Add prototype.
6975
6976 * window.c (delete_window, Fsplit_window)
6977 (Fset_window_configuration): Call ensure_frame_matrix.
6978
6979 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
6980 New functions.
6981 (adjust_frame_glyphs_for_frame_redisplay): If display has been
6982 completed, call fake_current_matrices instead of marking frame
6983 garbaged.
6984
6985 2000-12-20 Jason Rumney <jasonr@gnu.org>
6986
6987 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
6988
6989 2000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
6990
6991 * fns.c (Frequire): Doc fix.
6992
6993 2000-12-19 Gerd Moellmann <gerd@gnu.org>
6994
6995 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
6996
6997 * dispnew.c (direct_output_for_insert): Fix check for mini-window
6998 currently displaying a message.
6999
7000 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
7001 xterm.h.
7002 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
7003
7004 2000-12-18 Andrew Innes <andrewi@gnu.org>
7005
7006 * w32.c (w32_strerror): New function.
7007
7008 * w32.h (w32_strerror): New extern.
7009
7010 * w32fns.c (Fw32_shell_execute): Use it.
7011
7012 2000-12-18 Gerd Moellmann <gerd@gnu.org>
7013
7014 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
7015
7016 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
7017
7018 * msdos.c (IT_set_face): Obey inverse_video.
7019
7020 2000-12-18 Kenichi Handa <handa@etl.go.jp>
7021
7022 * dired.c (directory_files_internal): Always return decoded filenames.
7023
7024 2000-12-18 Gerd Moellmann <gerd@gnu.org>
7025
7026 * xterm.c (x_connection_closed): Prevent being called recursively
7027 because of an error condition in XtCloseDisplay.
7028
7029 * xdisp.c (init_iterator): If noninteractive, and the frame's
7030 face cache is null, make one.
7031
7032 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
7033
7034 * process.c (wait_reading_process_input): Check for pending
7035 input when running timers.
7036
7037 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
7038
7039 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
7040
7041 2000-12-18 Kenichi Handa <handa@etl.go.jp>
7042
7043 * process.c (read_process_output): Don't run a filter if the code
7044 decoder produces nothing but carryover.
7045
7046 2000-12-17 Andrew Innes <andrewi@gnu.org>
7047
7048 * w32.c (sys_rename): Only check errno against EEXIST, and not
7049 EACCES, when determining whether rename failed because the target
7050 exists. This was resulting in indefinite looping on Windows 9x if
7051 the source file was locked by another process.
7052
7053 * w32fns.c (Ffile_system_info): New function.
7054 (syms_of_w32fns): Defsubr it.
7055
7056 2000-12-17 Gerd Moellmann <gerd@gnu.org>
7057
7058 * window.c (coordinates_in_window): Fix computation for
7059 position on vertical line between mode lines.
7060
7061 * xfns.c (unwind_create_frame): Return t if frame was deleted.
7062 Don't alter tip_frame or tip_window.
7063 (unwind_create_tip_frame): Set tip_frame to nil only if frame
7064 was deleted.
7065
7066 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
7067 Don't alter tip_frame or tip_window.
7068 (unwind_create_tip_frame): Set tip_frame to nil only if frame
7069 was deleted.
7070
7071 2000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
7072
7073 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
7074 be consistent with the doc string. Reported by NAKAJIMA Mikio
7075 <minakaji@osaka.email.ne.jp>.
7076
7077 2000-12-16 Kenichi Handa <handa@etl.go.jp>
7078
7079 * xfaces.c (Vface_ignored_fonts): New variable.
7080 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
7081 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
7082
7083 2000-12-15 Gerd Moellmann <gerd@gnu.org>
7084
7085 * dispnew.c (update_window): Detect pending input every nth line
7086 updated, i.e. do it depending on real work done, and not on the
7087 vpos of the line.
7088
7089 * xterm.c (expose_window): Don't redraw the window that's
7090 currently being updated.
7091
7092 * window.c (Fset_window_point): Remove test for
7093 cursor_in_non_selected_windows.
7094
7095 * lread.c (read1): Recognize end of file after `\\'.
7096
7097 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
7098 not unwind_create_frame.
7099
7100 2000-12-15 Dave Love <fx@gnu.org>
7101
7102 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
7103 bcopy & al.
7104
7105 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
7106
7107 2000-12-15 Kenichi Handa <handa@etl.go.jp>
7108
7109 * coding.c (setup_coding_system): Clear all members of the struct
7110 coding_system at first.
7111 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
7112 argument.
7113 (code_convert_region): Don't override coding->src_multibyte and
7114 coding->dst_multibyte.
7115
7116 * fns.c (Fmd5): Docstring improved.
7117
7118 2000-12-15 Miles Bader <miles@gnu.org>
7119
7120 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
7121 are actually marked as mode-lines; otherwise use
7122 estimate_mode_line_height.
7123
7124 2000-12-14 Gerd Moellmann <gerd@gnu.org>
7125
7126 * editfns.c (Fformat): Prevent a buffer overrun when the format
7127 specifies a precision.
7128
7129 2000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
7130
7131 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
7132 argument is outside the range [2..3].
7133
7134 2000-12-14 Andrew Innes <andrewi@gnu.org>
7135
7136 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
7137 nothing to do. Bind inhibit-quit.
7138 (tip_frame): Make it a Lisp_Object.
7139 (x_create_tip_frame): Set tip_frame after it has been added to
7140 Vframe_list.
7141 (Fx_show_tip): Don't set tip_frame here.
7142 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
7143 (unwind_create_frame, unwind_create_tip_frame): New functions.
7144 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
7145 while a frame is only partially constructed.
7146
7147 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
7148 (x_free_frame_resources): New function.
7149 (x_destroy_window): Use it.
7150
7151 2000-12-14 Gerd Moellmann <gerd@gnu.org>
7152
7153 * xfns.c (Fx_backspace_delete_keys_p): New function.
7154 (syms_of_xfns): Defsubr it.
7155
7156 * config.in (HAVE_XKBGETKEYBOARD): Add.
7157
7158 2000-12-14 Kenichi Handa <handa@etl.go.jp>
7159
7160 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
7161 Always store string in multibyte representation in echobuf.
7162 (echo_char): Always store string in multibyte representation in
7163 echobuf.
7164 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
7165 (read_key_sequence): Adjusted for the change of echo_prompt.
7166
7167 * fns.c (Fmd5): Docstring improved.
7168
7169 * lisp.h (detect_coding_system): Prototype adjusted.
7170
7171 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
7172 (detect_coding_emacs_mule, detect_coding_iso2022,)
7173 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
7174 (detect_coding_utf_16, detect_coding_ccl): Make them static.
7175 New argument MULTIBYTEP. Callers changed.
7176 (detect_coding_mask, detect_coding_system): New argument
7177 MULTIBYTEP. Callers changed.
7178 (decode_coding_string): Set coding->src_multibyte and
7179 coding->dst_multibyte before calling detect_coding and detect_eol.
7180 Update them after some coding system is detected.
7181
7182 2000-12-13 Stefan Monnier <monnier@cs.yale.edu>
7183
7184 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
7185
7186 * keyboard.c (menu_bar_items, tool_bar_items):
7187 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
7188
7189 2000-12-13 Gerd Moellmann <gerd@gnu.org>
7190
7191 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
7192 New variables.
7193 (unwind_create_frame, unwind_create_tip_frame): New functions.
7194 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
7195 while a frame is only partially constructed.
7196
7197 * xterm.h (x_free_frame_resources): Declare.
7198
7199 * xterm.c (x_free_frame_resources): New function.
7200 (x_destroy_window): Use it.
7201
7202 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
7203 don't interrupt the update for pending input initially, i.e.
7204 update at least some lines.
7205
7206 * keyboard.c (do_mouse_tracking): Make externally visible.
7207
7208 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
7209
7210 * xfns.c (gray_bitmap_bits): Declare `char *'.
7211
7212 2000-12-12 Gerd Moellmann <gerd@gnu.org>
7213
7214 * xdisp.c (display_tool_bar_line): Make sure that tool bar
7215 lines start with a relief line.
7216
7217 2000-12-12 Dave Love <fx@gnu.org>
7218
7219 * window.c (Fdisplay_buffer): Doc fix.
7220 (Fwindow_list): Remove unused var.
7221
7222 * buffer.h (mmap_set_vars): Declare.
7223
7224 * window.h (Fset_window_point): Declare.
7225
7226 2000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
7227
7228 * msdos.c (fast_find_position): Don't overstep the last window row.
7229 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
7230 variable `area'. When looking for a row under (X,Y), give up if some
7231 of the previous rows is not enabled.
7232
7233 2000-12-12 Gerd Moellmann <gerd@gnu.org>
7234
7235 * window.c (Fset_window_point): If displaying cursors in windows
7236 other than the selected window, make sure redisplay updates
7237 other windows to show the new value of point in the window.
7238
7239 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
7240
7241 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
7242 the buffer is the sole visible buffer when in the mini-buffer.
7243
7244 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
7245 Bind `inhibit-read-only' to t.
7246 (unwind_with_echo_area_buffer): Use AREF.
7247
7248 * xfns.c (Fx_hide_tip): Simplified.
7249
7250 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
7251 instead of `1'.
7252
7253 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
7254
7255 2000-12-11 Gerd Moellmann <gerd@gnu.org>
7256
7257 * xfns.c (Fx_hide_tip): Fix last change.
7258
7259 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
7260 nothing to do. Bind inhibit-quit.
7261 (tip_frame): Make it a Lisp_Object.
7262 (x_create_tip_frame): Set tip_frame after it has been added to
7263 Vframe_list.
7264 (Fx_show_tip): Don't set tip_frame here.
7265
7266 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
7267
7268 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
7269 Lisp_Object.
7270
7271 * dispextern.h: Change external declaration of tip_frame.
7272
7273 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
7274 return an empty string.
7275
7276 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
7277 of the window's update_mode_line flag, since the former is set by
7278 force-mode-line-update, not the latter. This makes
7279 column-number-mode slightly faster.
7280
7281 * xdisp.c (try_window_id) <all changes above window start>:
7282 Set the cursor.
7283
7284 2000-12-11 Paul Eggert <eggert@twinsun.com>
7285
7286 * config.in (HAVE_FTELLO): Remove.
7287 (HAVE_FSEEKO): Add.
7288 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
7289 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
7290 HAVE_FTELLO.
7291 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
7292 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
7293
7294 2000-12-11 Miles Bader <miles@gnu.org>
7295
7296 * window.c (displayed_window_lines): Don't round up when
7297 converting empty space at bottom to lines.
7298 Handle non-newline-terminated final lines properly.
7299 (Fwindow_text_height): New function (used to be in lisp).
7300 (syms_of_window): Initialize it.
7301
7302 2000-12-09 Stefan Monnier <monnier@cs.yale.edu>
7303
7304 * syntax.c (scan_lists): Check that the right quote char has the
7305 right Sstring syntax when jumping over strings.
7306 (init_syntax_once): Use Smax rather than 13.
7307
7308 2000-12-09 Miles Bader <miles@gnu.org>
7309
7310 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
7311 with PARTIALLY, inverting the sense.
7312 (window_scroll_pixel_based): Scroll partially visible lines into
7313 place if we hit the beginning or end of the buffer.
7314 (displayed_window_lines): Don't include partially visible lines.
7315 (Fmove_to_window_line): Skip past any partially visible first line.
7316
7317 2000-12-08 Gerd Moellmann <gerd@gnu.org>
7318
7319 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
7320
7321 * tparam.c (tparam1): Change the way buffers are reallocated to be
7322 portable and less obfuscated.
7323
7324 * termcap.c (tgetent): Change the way buffers are reallocated to
7325 be portable and less obfuscated.
7326
7327 * macros.c (store_kbd_macro_char): Change the way buffers are
7328 reallocated to be portable and less obfuscated.
7329
7330 * lread.c (read1): Change the way buffers are reallocated to be
7331 portable and less obfuscated.
7332
7333 * doc.c (Fsubstitute_command_keys): Change the way buffers
7334 are reallocated so that it is portable.
7335
7336 2000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
7337
7338 * dosfns.c (Ffile_system_info): New function.
7339 (syms_of_dosfns): Defsubr it.
7340
7341 2000-12-07 Stefan Monnier <monnier@cs.yale.edu>
7342
7343 * alloc.c (gc_sweep): Add comment.
7344
7345 2000-12-07 Gerd Moellmann <gerd@gnu.org>
7346
7347 * sound.c (vox_configure): Change order of ioctls.
7348 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
7349 Ignore errors when changing volume.
7350 (vox_close): Don't reset the device.
7351
7352 * process.c (read_process_output): Make sure the process marker's
7353 position is valid when the process buffer is changed in
7354 after-change functions. W3 does that.
7355
7356 * xfns.c (x_free_gcs): New function.
7357
7358 * xterm.h (x_free_gcs): Add prototype.
7359
7360 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
7361 freeing GCs here.
7362
7363 * xterm.c (x_destroy_window): Call x_free_gcs so that
7364 resources of non-toolkit X windows will be freed.
7365
7366 2000-12-07 Andrew Innes <andrewi@gnu.org>
7367
7368 * w32fns.c (xlfd_charset_of_font): Fix last change.
7369
7370 2000-12-06 Dave Love <fx@gnu.org>
7371
7372 * md5.h (__P): Don't define -- it comes from config.h.
7373
7374 * strftime.c: Change some #if foo to #ifdef foo.
7375
7376 2000-12-06 Andrew Innes <andrewi@gnu.org>
7377
7378 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
7379
7380 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
7381 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
7382 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
7383
7384 2000-12-06 Gerd Moellmann <gerd@gnu.org>
7385
7386 * alloc.c (gc_sweep): Prevent symbols read during loadup
7387 from being freed.
7388
7389 * xdisp.c (underlying_face_id): New function.
7390 (handle_face_prop, face_before_or_after_it_pos): Use it
7391 to determine the face ``under'' a string. Let strings inherit
7392 the face of the buffer under them.
7393
7394 * xfaces.c (face_at_string_position): Update function comment.
7395
7396 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
7397 matrix if the window's left position has changed; we need to
7398 redraw it in this case.
7399
7400 * dispextern.h (struct glyph_matrix): Add member window_left_x.
7401
7402 * window.c (coordinates_in_window): Check mouse on mode-line or
7403 header-line first.
7404
7405 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
7406 advertized by the function documentation.
7407
7408 * window.c (syms_of_window): Doc fix.
7409
7410 * sound.c (vox_configure): Set volume for left and right channel.
7411 (sound_cleanup): Return nil.
7412
7413 * xdisp.c (move_it_by_lines): Fix paren typo.
7414
7415 * xterm.c (x_load_font): Don't use the font's max_bounds for
7416 computing the height of the font. If max_bounds' ascent or
7417 descent are greater than the font's ascent or descent, this means
7418 glyphs overlap, which should be handled now by redisplay.
7419
7420 * window.c (Veven_window_heights): New variable.
7421 (syms_of_window): DEFVAR_LISP it.
7422 (Fdisplay_buffer): Check Veven_window_heights before evening the
7423 window heights.
7424
7425 2000-12-06 Miles Bader <miles@gnu.org>
7426
7427 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
7428 update `default-frame-alist' instead of setting no frame parameters.
7429
7430 2000-12-06 Kenichi Handa <handa@etl.go.jp>
7431
7432 * composite.c (update_compositions): Fix typo (use the correct
7433 variable).
7434
7435 2000-12-05 Jason Rumney <jasonr@gnu.org>
7436
7437 * md5.h: Remove underscores from function declarations.
7438 (__attribute__, __alignof__) [!__GNUC__]: Define.
7439
7440 * md5.c: Delay include of md5.h until after namespace cleaning.
7441
7442 * makefile.w32-in (fns.o): Depend on md5.h
7443 (md5.o): New target.
7444 (sunfns.o): Remove.
7445
7446 * makefile.nt: Likewise.
7447
7448 2000-12-05 Jason Rumney <jasonr@altavista.net>
7449
7450 * w32term.c (expose_area): Complete last change.
7451
7452 2000-12-05 Ken Raeburn <raeburn@gnu.org>
7453
7454 * minibuf.c: Include intervals.h.
7455
7456 2000-12-05 Jason Rumney <jasonr@gnu.org>
7457
7458 * w32term.c (x_produce_glyphs): If a font for a component of
7459 a composition is not found, use 1 pixel dot ascent and 0 dot
7460 descent value to avoid displaying terribly tall empty boxes.
7461 (expose_area): Pass x-coordinate relative to the exposed
7462 area to x_draw_glyphs instead of a window-relative coordinate.
7463
7464 2000-12-05 Gerd Moellmann <gerd@gnu.org>
7465
7466 * xdisp.c (next_element_from_ellipsis): Save face before selective
7467 display in saved_face_id, and set face_before_selective_p.
7468 (reseat_1): Reset face_before_selective_p.
7469 (append_space, extend_face_to_end_of_line): If iterator's
7470 face_before_selective_p is set, use the face from saved_face_id.
7471 (extend_face_to_end_of_line): For tty frames, make sure to
7472 use the right face id when producing spaces at the end of
7473 the line.
7474
7475 * dispextern.h (struct it): Add face_before_selective_p.
7476
7477 * keyboard.c (record_char): Don't record identical help-echo
7478 events in recent_keys.
7479
7480 * xterm.c [USE_X_TOOLKIT]: Close the display.
7481 (xim_close_dpy): Handle case that the display has been closed.
7482
7483 * xterm.c (x_destroy_window): Reset the frame's X window after
7484 destroying it.
7485
7486 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
7487 variable window_width.
7488 (line_draw_cost): Fix code skipping over spaces at the end of the
7489 line when must_write_spaces is not set.
7490 (scrolling_window): Fix code inserting runs in list of all runs.
7491
7492 2000-12-05 Kenichi Handa <handa@etl.go.jp>
7493
7494 * coding.c (setup_coding_system): Be sure to initialize
7495 coding->category_idx.
7496
7497 2000-12-04 Gerd Moellmann <gerd@gnu.org>
7498
7499 * xterm.c (PER_CHAR_METRIC): Removed because not used.
7500
7501 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
7502 area to x_draw_glyphs instead of a window-relative coordinate.
7503
7504 * fileio.c (auto_save_error): Add parameter ERROR. Show the
7505 error in the message.
7506
7507 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
7508 timer after having read a key. It's not good for code reading
7509 several keys in a loop, like an input method.
7510
7511 * fileio.c (Finsert_file_contents): When VISIT is t, don't
7512 record undo information for format-decode.
7513
7514 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
7515 current buffer is read-only, not if it isn't.
7516
7517 * keyboard.c (record_char): Record `help-echo' input events
7518 in recent_keys only if they display some help. Don't record
7519 `help-echo' events as macro char.
7520
7521 2000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
7522
7523 * editfns.c (save_excursion_restore): Don't move point
7524 in another window if it is showing the wrong buffer.
7525 Avoid the call to Fwindow_live_p, for speed.
7526
7527 2000-12-04 Kenichi Handa <handa@etl.go.jp>
7528
7529 * xfaces.c (struct font_name): New member registry_priority.
7530 (split_font_name): Initialize the above member to zero.
7531 (concat_font_list): New function.
7532 (font_list): Include fonts of all alternative registries.
7533 (FONT_POINT_SIZE_QUANTUM): New macro.
7534 (better_font_p): Ignore point size difference less than
7535 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
7536
7537 * xterm.c (x_produce_glyphs): If a font for a component of
7538 a composition is not found, use 1 pixel dot ascent and 0 dot
7539 descent value to avoid displaying terribly tall empty boxes.
7540
7541 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
7542
7543 2000-12-03 Ken Raeburn <raeburn@gnu.org>
7544
7545 * coding.h (code_convert_string1): Declare.
7546
7547 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
7548
7549 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
7550
7551 2000-12-02 Jason Rumney <jasonr@gnu.org>
7552
7553 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
7554 correctly for single byte character case.
7555 (w32_per_char_metric): Do not try to make any assumptions about
7556 the metrics of BDF fonts.
7557 (x_estimate_mode_line_height): If `mode-line' face
7558 hasn't a font, use that of the frame, as drawing glyphs does.
7559 (note_mouse_highlight): Change the cursor shape on the vertical
7560 border between windows [not enabled].
7561
7562 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
7563
7564 * w32fns.c (Fx_create_frame): Reintroduce the call to
7565 face-set-after-frame-defaults.
7566 (Vx_window_horizontal_drag_shape): New variable.
7567 (syms_of_xfns): DEFVAR_LISP it.
7568 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
7569 enabled].
7570
7571 2000-12-02 Simon Josefsson <simon@josefsson.org>
7572
7573 * fns.c (Fmd5): Use a different logic to decide the coding system
7574 to use.
7575
7576 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
7577
7578 2000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
7579
7580 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
7581
7582 2000-12-01 Gerd Moellmann <gerd@gnu.org>
7583
7584 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
7585 height for YNegative.
7586 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
7587 height; also see comment there.
7588
7589 * window.c (coordinates_in_window): Handle computations for
7590 positions on the vertical bar and fringes differently for
7591 window-system frames. Consider some pixels near the vertical bar
7592 as on the bar if the frame doesn't have vertical scroll bars.
7593 Associate positions between mode or header lines with the
7594 right window, the left one.
7595
7596 2000-12-01 Jason Rumney <jasonr@gnu.org>
7597
7598 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
7599
7600 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
7601 invalid frame.
7602
7603 2000-12-01 Gerd Moellmann <gerd@gnu.org>
7604
7605 * window.c (struct saved_window): Add members orig_top and orig_height.
7606 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
7607 (save_window_save, Fset_window_configuration): Save/restore
7608 window's orig_top and orig_height.
7609
7610 2000-12-01 Jason Rumney <jasonr@gnu.org>
7611
7612 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
7613
7614 * w32fns.c (x_set_cursor_color): Fix last change.
7615
7616 2000-11-30 Gerd Moellmann <gerd@gnu.org>
7617
7618 * xdisp.c (echo_area_display): If cursor is in the echo area, make
7619 sure that the next redisplay displays the minibuffer, so that
7620 the cursor will be replaced with what the minibuffer wants.
7621
7622 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
7623 #ifndef instead of using #if.
7624 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
7625 USE_TOOLKIT_SCROLL_BARS is defined.
7626
7627 2000-11-30 Jason Rumney <jasonr@gnu.org>
7628
7629 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
7630 x_display_cursor.
7631
7632 2000-11-30 Gerd Moellmann <gerd@gnu.org>
7633
7634 * fns.c (Fmd5): Doc fix.
7635
7636 2000-11-30 Simon Josefsson <simon@josefsson.org>
7637
7638 * fns.c (Fmd5): New function.
7639 (syms_of_fns): Defsubr md5.
7640
7641 * Makefile.in (obj): Add md5.o
7642
7643 2000-11-30 Gerd Moellmann <gerd@gnu.org>
7644
7645 * md5.h, md5.c: New files, taken from glibc.
7646
7647 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
7648
7649 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
7650 hasn't a font, use that of the frame, as drawing glyphs does.
7651
7652 2000-11-29 Stefan Monnier <monnier@cs.yale.edu>
7653
7654 * eval.c (Frun_hooks): Allow 0 arguments.
7655
7656 2000-11-29 Gerd Moellmann <gerd@gnu.org>
7657
7658 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
7659 is over the menu bar widget, say it's not on the frame.
7660
7661 * xfns.c (Fx_create_frame): Reintroduce the call to
7662 face-set-after-frame-defaults.
7663
7664 * eval.c (Fsignal): Reset handling_signal.
7665
7666 2000-11-28 Jason Rumney <jasonr@gnu.org>
7667
7668 * w32menu.c (add_menu_item): Reset menu item text when changing
7669 type to radio button.
7670
7671 2000-11-28 Gerd Moellmann <gerd@gnu.org>
7672
7673 * xselect.c: Update copyright.
7674
7675 * window.c (coordinates_in_window): If on a mode or header line,
7676 but sufficiently close to its start, return ``on vertical
7677 border''. This gives us a way to drag windows horizontally when
7678 using toolkit scroll bars.
7679
7680 * xterm.c (note_mouse_highlight): Change the cursor shape
7681 on the vertical border between windows.
7682
7683 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
7684
7685 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
7686 (syms_of_xfns): DEFVAR_LISP it.
7687 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
7688
7689 * textprop.c (text_read_only): New function.
7690 (verify_interval_modification): Use it instead of signaling
7691 `text-read-only'. This makes it easier to catch this error
7692 with a breakpoint.:
7693
7694 * xdisp.c (forward_to_next_line_start): Check for newlines,
7695 not end of line, which includes CR.
7696
7697 2000-11-28 Kenichi Handa <handa@etl.go.jp>
7698
7699 * coding.c (Ffind_coding_systems_region_internal): Be sure to
7700 include no-conversion.
7701
7702 2000-11-27 Jason Rumney <jasonr@gnu.org>
7703
7704 * w32fns.c (w32_load_system_font): Always mark font as double byte
7705 if codepage is unicode.
7706
7707 2000-11-27 Gerd Moellmann <gerd@gnu.org>
7708
7709 * xdisp.c (forward_to_next_line_start): If already on a newline,
7710 just consume it to avoid unintended skipping over invisible text below.
7711
7712 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
7713 `vertical-line', `mode-line' and `header-line' events.
7714
7715 * xdisp.c (try_window_id): Avoid starting to display in the middle
7716 of a character, a TAB for instance. This is easier than to set
7717 up the iterator exactly, and it's not a frequent case, so the
7718 additional effort wouldn't really pay off.
7719
7720 2000-11-26 Andrew Choi <akochoi@i-cable.com>
7721
7722 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
7723 init_window_once.
7724
7725 2000-11-25 Jason Rumney <jasonr@gnu.org>
7726
7727 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
7728 Args to window_from_coordinates should be pixel coordinates.
7729
7730 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
7731 redisplay handles them properly.
7732
7733 2000-11-25 Miles Bader <miles@gnu.org>
7734
7735 * indent.c (compute_motion): Keep pos_byte in sync with pos.
7736
7737 2000-11-24 Jason Rumney <jasonr@gnu.org>
7738
7739 * w32.c (init_environment): Set LANG environment variable based on
7740 locale settings, if not set.
7741
7742 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
7743 making tool bar smaller. When clearing the frame, also
7744 clear current matrices. Clear frame when tool bar disappears.
7745 Don't use more lines for the tool-bar than is available.
7746 (x_change_window_heights): New function.
7747
7748 2000-11-24 Gerd Moellmann <gerd@gnu.org>
7749
7750 * xdisp.c (init_from_display_pos): If POS says we're already after
7751 an overlay string ending at POS, make sure to pop the iterator
7752 because it will be in front of that overlay string. When POS is
7753 ZV, we've thereby also ``processed'' overlay strings at ZV.
7754
7755 * xfaces.c (lface_from_face_name): Function comment fix.
7756
7757 2000-11-24 Miles Bader <miles@gnu.org>
7758
7759 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
7760 apply `mode-line-inverse-video' -- zero means force display using
7761 the default face, non-zero means display using the specialized face.
7762 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
7763
7764 2000-11-23 Kenichi Handa <handa@etl.go.jp>
7765
7766 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
7767 hard coded `4'.
7768
7769 2000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
7770
7771 * coding.c (decode_coding_emacs_mule): Fix the case of
7772 CODING_EOL_LF, which used uninitialized value of c.
7773
7774 2000-11-23 Stefan Monnier <monnier@cs.yale.edu>
7775
7776 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
7777
7778 2000-11-22 Gerd Moellmann <gerd@gnu.org>
7779
7780 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
7781 buffer object.
7782
7783 * frame.h (struct frame): Replace desired_tool_bar_items,
7784 current_tool_bar_items, n_desired_tool_bar_items,
7785 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
7786
7787 * frame.c (make_frame): Change initialization of tool bar
7788 items accordingly.
7789
7790 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
7791 Change references to members deleted from struct frame to use the
7792 new ones.
7793
7794 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
7795 references to members deleted from struct frame to use the new ones.
7796
7797 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
7798
7799 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
7800
7801 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
7802 (note_tool_bar_highlight): Change references to members deleted
7803 from struct frame to use the new ones.
7804
7805 2000-11-23 Miles Bader <miles@gnu.org>
7806
7807 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
7808 the face's inverse-video attribute, rather than overriding it.
7809
7810 2000-11-22 Gerd Moellmann <gerd@gnu.org>
7811
7812 * xfns.c (x_set_tool_bar_lines): Clear internal border when
7813 making tool bar smaller.
7814
7815 2000-11-22 Dave Love <fx@gnu.org>
7816
7817 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
7818
7819 2000-11-22 Miles Bader <miles@gnu.org>
7820
7821 * keyboard.c (Vminibuffer_message_timeout): New variable.
7822 (command_loop_1): Use it to determine message timeout.
7823 (syms_of_keyboard): Initialize it.
7824
7825 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
7826
7827 2000-11-22 Kenichi Handa <handa@etl.go.jp>
7828
7829 * sysdep.c: Move the code for declaring h_errno after #include
7830 <netdb.h>.
7831
7832 2000-11-21 Gerd Moellmann <gerd@gnu.org>
7833
7834 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
7835 the menu bar when the tooltip is unmapped.
7836
7837 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
7838 sole visible buffer when we're currently in the mini-buffer, and
7839 give up if so.
7840
7841 2000-11-21 Jason Rumney <jasonr@gnu.org>
7842
7843 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
7844 put on the clipboard.
7845 (Fw32_get_clipboard_data): Compare data on clipboard with saved
7846 copy of what Emacs last put there. If they are the same, do not
7847 use the clipboard copy to avoid losing data due to coding conversions.
7848
7849 2000-11-22 Miles Bader <miles@gnu.org>
7850
7851 * minibuf.c (Vminibuffer_prompt_properties): New variable.
7852 (syms_of_minibuf): Initialize it.
7853 (read_minibuf): Add properties from Vminibuffer_prompt_properties
7854 to prompt, don't make read-only.
7855
7856 2000-11-21 Gerd Moellmann <gerd@gnu.org>
7857
7858 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
7859 Add BEFORE/AFTER_POTENTIAL_GC.
7860
7861 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
7862
7863 * buffer.c (mmap_free_1): Avoid a compiler warning.
7864
7865 * term.c, cm.c: Don't try to include termcap.h; see comment there.
7866
7867 2000-11-21 Kenichi Handa <handa@etl.go.jp>
7868
7869 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
7870 ... #endif scope.
7871
7872 2000-11-20 Gerd Moellmann <gerd@gnu.org>
7873
7874 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
7875 screen supports it.
7876
7877 * s/gnu-linux.h: Don't use `#cpu'.
7878
7879 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
7880 not defined in mman.h.
7881
7882 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
7883 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
7884 and store an index in the XClientMessageEvent. Storing a
7885 Lisp_Object or pointer can fail on a 64 bit system, since X only
7886 transfers 32 bits.
7887 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
7888
7889 2000-11-20 Dave Love <fx@gnu.org>
7890
7891 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
7892
7893 2000-11-20 Gerd Moellmann <gerd@gnu.org>
7894
7895 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
7896
7897 2000-11-20 Kenichi Handa <handa@etl.go.jp>
7898
7899 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
7900 by WIDTH.
7901
7902 * alloc.c (make_string): Fix previous change. Be sure to make
7903 unibyte string correctly.
7904
7905 2000-11-19 Gerd Moellmann <gerd@gnu.org>
7906
7907 * window.c (Fwindow_list): Change parameter list to be XEmacs
7908 compatible.
7909 (window_list_1): New function.
7910 (window_loop): Use it instead of Fwindow_list.
7911
7912 * sysdep.c (emacs_ospeed): New variable.
7913 (toplevel): Don't declare ospeed extern.
7914 (init_baud_rate): Use emacs_ospeed instead of ospeed.
7915
7916 * termcap.c (ospeed): Remove.
7917 (tputs) [!emacs]: Remove unused code.
7918 (tgetent): Avoid a compiler warning.
7919
7920 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
7921 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
7922 SCROLL_BAR_X_WIDGET with additional argument DPY.
7923
7924 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
7925 removed.
7926 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
7927 Take the X display as additional argument.
7928 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
7929 `Widget' is a pointer type that's not easily stored in Lisp_Object
7930 form in a portable way.
7931
7932 * dispnew.c (update_text_area): Fix last change.
7933
7934 2000-11-18 Gerd Moellmann <gerd@gnu.org>
7935
7936 * xdisp.c: Use BINDING_STACK_SIZE throughout.
7937
7938 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
7939 clear current matrices.
7940
7941 * buffer.c (mmap_enlarge): Don't print a message on stderr
7942 if mapping new memory at the end of the existing region fails.
7943
7944 * dispnew.c (update_text_area): Don't skip over equal glyphs
7945 when the last current glyph overlaps the glyph to its right.
7946
7947 2000-11-18 Miles Bader <miles@gnu.org>
7948
7949 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
7950 lines that *end* with "..." too (that's the most common case!).
7951
7952 2000-11-18 Gerd Moellmann <gerd@gnu.org>
7953
7954 * xdisp.c (resize_mini_window): Temporarily change to the
7955 mini-window's buffer if necessary.
7956
7957 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
7958 the tooltip obscures less text under it.
7959
7960 2000-11-17 Gerd Moellmann <gerd@gnu.org>
7961
7962 * puresize.h (BASE_PURESIZE): Increase to 700000.
7963
7964 2000-11-18 Jason Rumney <jasonr@gnu.org>
7965
7966 * w32term.c (w32_draw_bitmap): Use face to set colors.
7967
7968 2000-11-17 Dave Love <fx@gnu.org>
7969
7970 * lread.c (Fload): Fix #ifdef for pcc.
7971
7972 2000-11-17 Gerd Moellmann <gerd@gnu.org>
7973
7974 * xdisp.c (pos_visible_p): Compute the default character height
7975 differently.
7976
7977 2000-11-16 Gerd Moellmann <gerd@gnu.org>
7978
7979 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
7980 knowing the line's height; use the default font's height in that case.
7981
7982 * xfaces.c (weight_table): Add `demi' with the same meaning as
7983 `demibold'.
7984
7985 2000-11-16 Kenichi Handa <handa@etl.go.jp>
7986
7987 * dispnew.c (null_row): New global static variable.
7988 (clear_glyph_row): Delete local static variable null_row.
7989
7990 2000-11-15 Jason Rumney <jasonr@gnu.org>
7991
7992 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
7993 (w32_alloc_lighter_color): Use new brightness calculations from
7994 xterm.c. Scale delta to be in the range expected by W32.
7995 (w32_draw_relief_rect): Use frame relief colors.
7996
7997 2000-11-15 Gerd Moellmann <gerd@gnu.org>
7998
7999 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
8000 (Qinhibit_default_face_x_resources): New variable.
8001 (syms_of_frame): Initialize it.
8002 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
8003
8004 * xdisp.c (pos_visible_p): Improve function comment.
8005
8006 * lisp.h (BINDING_STACK_SIZE): New macro.
8007
8008 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
8009 reading the directory if readdir returns null and errno is EAGAIN
8010 or EINTR.
8011
8012 2000-11-14 Stefan Monnier <monnier@cs.yale.edu>
8013
8014 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
8015 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
8016 Set amount_to_scroll to max of dx and scroll_step so that
8017 scroll-conservatively doesn't defeat scroll-step>1.
8018 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
8019 scroll-conservatively for line-at-a-time scrolling.
8020
8021 2000-11-14 Gerd Moellmann <gerd@gnu.org>
8022
8023 * window.c (Fpos_visible_in_window_p): Call pos_visible with
8024 extra argument.
8025
8026 * xdisp.c (current_mode_line_height, current_header_line_height):
8027 New variables.
8028 (init_xdisp): Initialize them.
8029 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
8030 and use exact mode line heights if it is set.
8031
8032 * lisp.h (pos_visible_p): Change prototype.
8033
8034 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
8035 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
8036 and current_header_line_height first.
8037 (current_mode_line_height, current_header_line_height):
8038 Declare extern.
8039
8040 2000-11-14 Miles Bader <miles@lsi.nec.co.jp>
8041
8042 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
8043 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
8044 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
8045
8046 2000-11-14 Miles Bader <miles@gnu.org>
8047
8048 * xterm.c (x_alloc_lighter_color): Include an additive component
8049 too for dark colors, because FACTOR isn't enough.
8050 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
8051 New macros.
8052
8053 2000-11-13 Gerd Moellmann <gerd@gnu.org>
8054
8055 * keyboard.c (show_help_echo): Call message3_nolog with number of
8056 bytes in the help string as 2nd parameter, instead of the number
8057 of characters.
8058
8059 2000-11-13 Miles Bader <miles@gnu.org>
8060
8061 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
8062 (Fload): Use new openp return protocol.
8063 Don't try to use Vload_source_file_function to load .elc files.
8064 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
8065 openp return protocol.
8066 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
8067
8068 2000-11-11 Kenichi Handa <handa@etl.go.jp>
8069
8070 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
8071
8072 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
8073 Defined these macros.
8074 (NLIST_STRUCT): Avoid re-defining it.
8075
8076 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
8077 -I/usr/contrib/X11R6/include.
8078 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
8079
8080 2000-11-10 Jason Rumney <jasonr@gnu.org>
8081
8082 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
8083
8084 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
8085 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
8086
8087 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
8088 (Qw32_charset_vietnamese): New symbol.
8089 (xlfd_charset_of_font): New function.
8090 (w32_load_system_font): Use it.
8091 (x_to_w32_charset): Use Fassoc to find charset info. Special case
8092 when Vw32_charset_info_alist is nil to ensure default face always
8093 has font. Use Fcar and Fcdr for safety.
8094 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
8095 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
8096 pseudo-codepages for special cases.
8097 (w32_to_x_font): New parameter to allow charset portion to be
8098 specified where there is many to one mapping. Callers changed.
8099 (w32_list_fonts): Avoid listing fonts that won't display.
8100
8101 2000-11-10 Gerd Moellmann <gerd@gnu.org>
8102
8103 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
8104 (font_list_1): Renamed from font_list.
8105 (font_list): New function, trying alternative registries from
8106 Vface_alternative_font_registry_alist.
8107 (Finternal_set_alternative_font_registry_alist): New function.
8108 (syms_of_xfaces): Initialize and Staticpro
8109 Vface_alternative_font_registry_alist.
8110 Defsubr Finternal_set_alternative_font_registry_alist.
8111
8112 2000-11-09 Ken Raeburn <raeburn@gnu.org>
8113
8114 * lisp.h (Flooking_at): Declare.
8115
8116 2000-11-09 Gerd Moellmann <gerd@gnu.org>
8117
8118 * dired.c (directory_files_internal): Fix a braino.
8119
8120 * dired.c (directory_files_internal): Add missing GCPRO's.
8121 Some cleanup.
8122
8123 2000-11-08 Gerd Moellmann <gerd@gnu.org>
8124
8125 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
8126 (resize_mini_window): Return quickly if Vresize_mini_window is
8127 nil. Don't return if Vmax_mini_window_height is nil.
8128
8129 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
8130 (syms_of_xdisp): Initialize them.
8131 (resize_mini_window): Act according to the setting of
8132 Vresize_mini_window.
8133 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
8134
8135 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
8136 scroll bar widget after configuring it, so that it will appear at
8137 the right position from the start.
8138 (XTredeem_scroll_bar): Cleaned up.
8139
8140 2000-11-08 Kenichi Handa <handa@etl.go.jp>
8141
8142 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
8143 font is taller than the frame line, we don't have to bias the
8144 division by two.
8145
8146 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
8147
8148 2000-11-07 Dave Love <fx@gnu.org>
8149
8150 * config.in (HAVE_MKSTEMP): Add.
8151
8152 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
8153
8154 2000-11-07 Gerd Moellmann <gerd@gnu.org>
8155
8156 * window.c (Fset_window_configuration): Don't try to preserve
8157 point in the current buffer, if that buffer is displayed in more
8158 than one window.
8159
8160 * xfaces.c (lookup_named_face): If default face isn't realized,
8161 try to realize it. Return -1 if not successful.
8162 (Fx_list_fonts): Handle case that face cannot be determined.
8163 (Fface_font): Likewise.
8164
8165 2000-11-06 Gerd Moellmann <gerd@gnu.org>
8166
8167 * window.c (displayed_window_lines): Detect partially
8168 visible lines at the bottom correctly.
8169
8170 2000-11-06 Stefan Monnier <monnier@cs.yale.edu>
8171
8172 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
8173 when ensuring we don't do visit in indirect buffer.
8174
8175 2000-11-06 Kenichi Handa <handa@etl.go.jp>
8176
8177 * composite.h (compose_chars_in_text): Add prototype.
8178
8179 * composite.c (Vcomposition_function_table): New variable.
8180 (Qcomposition_function_table): New variable.
8181 (run_composition_function): Call
8182 Vcompose_chars_after_function with three arguments.
8183 (compose_chars_in_text): New function.
8184 (syms_of_composite): Modified the doc-string of
8185 Vcompose_chars_after_function. Declare composition-function-table
8186 as a lisp variable, and initialize it.
8187
8188 * xfns.c (x_encode_text): Suppress producing escape sequences for
8189 composition.
8190
8191 * xselect.c: Include composite.h.
8192 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
8193
8194 2000-11-05 Andrew Innes <andrewi@gnu.org>
8195
8196 * w32term.c (x_produce_glyphs): Fix typo in enum name.
8197
8198 * sysdep.c (read_input_waiting): Remove extraneous argument to
8199 read_socket_hook.
8200
8201 * w32fns.c (Fx_server_version): Include w32_build_number in the
8202 return list.
8203
8204 * w32heap.c (w32_build_number): New variable.
8205 (cache_system_info): Set it.
8206
8207 * w32heap.h (w32_build_number): Add extern.
8208
8209 * emacs.c (syms_of_emacs): Update docstring for
8210 system-configuration, to reflect the actual usage on MS-Windows.
8211
8212 2000-10-31 Gerd Moellmann <gerd@gnu.org>
8213
8214 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
8215 process idle timers while waiting for another event.
8216
8217 * dispnew.c (update_frame_line): Handle case where spaces in
8218 the default face are colored.
8219
8220 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
8221 window height hasn't changed.
8222
8223 2000-10-31 Jason Rumney <jasonr@gnu.org>
8224
8225 * w32term.c (x_produce_glyphs): Handle composite characters.
8226 (x_draw_glyph_string_foreground)
8227 (x_draw_composite_glyph_string_foreground): Restore old font.
8228
8229 2000-10-31 Miles Bader <miles@lsi.nec.co.jp>
8230
8231 * minibuf.c (read_minibuf): Reset the undo history just before
8232 starting the recursive-edit.
8233
8234 2000-10-30 Gerd Moellmann <gerd@gnu.org>
8235
8236 * xfaces.c (menu_face_change_count): New variable.
8237 (Finternal_set_lisp_face_attribute): Increment it for changes
8238 of the `menu' face.
8239 (realize_basic_faces): Reflect changes in the `menu' faces
8240 in menu bars.
8241
8242 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
8243 dy obtained from the iterator's y-position after moving from
8244 scroll_margin_pos to PT; see comment there.
8245
8246 * xdisp.c (safe_eval_handler): Call add_to_log.
8247
8248 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
8249 is not a symbol or string.
8250
8251 * xdisp.c (echo_area_display): Don't perform a display update from
8252 inside redisplay. The update will happen anyway at the end of
8253 redisplay, and it can confuse redisplay (GC messages while
8254 redisplaying, for instance.)
8255
8256 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
8257
8258 * xrdb.c (x_load_resources): Use the class name in the defaults.
8259
8260 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
8261 (regex_compile): Catch bogus \(\1\).
8262
8263 2000-10-30 Gerd Moellmann <gerd@gnu.org>
8264
8265 * xterm.c (x_alloc_nearest_color): Fix last change to compare
8266 RGB values.
8267
8268 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
8269 we have a color cache, check that the cached color equals the
8270 allocated color. If not, clear the color cache.
8271
8272 * window.c (displayed_window_lines): Change buffers if necessary.
8273 Fix computation of displayed lines.
8274
8275 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
8276 update_menu_bindings to DEFVAR_BOOL.
8277
8278 2000-10-30 Kenichi Handa <handa@etl.go.jp>
8279
8280 * search.c (Fset_match_data): Be sure to make search_regs always sane.
8281
8282 * puresize.h (BASE_PURESIZE): Increase to 680000.
8283
8284 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
8285
8286 2000-10-29 Jason Rumney <jasonr@gnu.org>
8287
8288 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
8289
8290 * w32term.c (w32_bdf_per_char_metric): Negate descent.
8291 (w32_cache_char_metrics): Handle possibility that 'x' does not
8292 exist in a BDF font.
8293 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
8294
8295 * w32bdf.h (bdffont): Add nchars.
8296
8297 * w32bdf.c (set_bdf_font_info): Set it.
8298 (w32_BDF_TextOut): Swap byte order of double byte characters.
8299 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
8300
8301 2000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
8302
8303 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
8304 don't override the colors in frame's param_alist, unless they are
8305 unspecified.
8306
8307 * term.c (reassert_line_highlight): If inverse_video is non-zero,
8308 reverse the effect of the highlight flag.
8309
8310 2000-10-27 Ken Raeburn <raeburn@gnu.org>
8311
8312 * window.h (Fwindow_live_p): Declare.
8313
8314 * undo.c (record_delete): Check that last_undo_buffer is really a
8315 buffer before applying XBUFFER to it.
8316
8317 * keymap.c (where_is_internal): Pass lisp object, not integer, to
8318 Faref.
8319
8320 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
8321
8322 * lisp.h (KEYMAPP): New macro.
8323 (get_keymap): Remove.
8324 (get_keymap_1): Rename get_keymap.
8325
8326 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
8327
8328 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
8329
8330 * xmenu.c (single_submenu): Use KEYMAPP.
8331 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
8332 Use KEYMAPP rather than Fkeymapp.
8333
8334 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
8335
8336 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
8337 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
8338 Use KEYMAPP rather than Fkeymapp.
8339 (single_submenu): Use KEYMAPP.
8340 (w32_menu_show, w32_dialog_show): Use TRUE.
8341
8342 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
8343
8344 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
8345 (Fkeymapp): Use KEYMAPP.
8346 (get_keymap): Rename from get_keymap_1. Remove old def.
8347 Return t when autoload=0 and error=0 and the keymap needs autoloading.
8348 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
8349 (Fminor_mode_key_binding): Don't raise an error if the binding
8350 is not a keymap.
8351 (Fuse_global_map, Fuse_local_map): Allow autoloading.
8352 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
8353
8354 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
8355 Allow Vspecial_event_map to be autoloaded.
8356 (menu_bar_items): Fetch the keymap rather than using keymapp.
8357 (menu_bar_one_keymap): No need to follow func-indirect any more.
8358 (parse_menu_item): get_keymap_1 -> get_keymap.
8359 (tool_bar_items): Fetch the keymap rather than using keymapp.
8360 (read_key_sequence): Use KEYMAPP.
8361
8362 * intervals.c (get_local_map): Use get_keymap rather than following
8363 function-indirections explicitly.
8364
8365 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
8366
8367 2000-10-27 Jason Rumney <jasonr@gnu.org>
8368
8369 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
8370 point, as Windows has oversized fonts.
8371
8372 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
8373
8374 2000-10-27 Gerd Moellmann <gerd@gnu.org>
8375
8376 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
8377 (freehook, reallochook): Handle null pointer arguments.
8378 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
8379
8380 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
8381
8382 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
8383 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
8384 Giving in to popular pressure to shut up the compiler with casts.
8385
8386 2000-10-27 Gerd Moellmann <gerd@gnu.org>
8387
8388 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
8389 signed value, and use a default value computed from the font's
8390 maximum descent.
8391
8392 2000-10-27 Miles Bader <miles@lsi.nec.co.jp>
8393
8394 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
8395 that specify a negative underline position can still use underlines.
8396
8397 * window.c (Fpos_visible_in_window_p): Make POS default to
8398 WINDOW's point, not the current buffer's point.
8399
8400 2000-10-26 Dave Love <fx@gnu.org>
8401
8402 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
8403 when it's necessary.
8404
8405 2000-10-26 Gerd Moellmann <gerd@gnu.org>
8406
8407 * window.c (size_window): Compute size difference from sum of old
8408 child window sizes instead of from parent's size.
8409
8410 * xdisp.c (pos_visible_p): Change current buffer if necessary.
8411 Handle obscured lines at the top of the window.
8412
8413 * frame.c (Fdelete_frame): Doc fix. Move running the hook
8414 down after the last error condition check.
8415
8416 * frame.c (Fdelete_frame): Run delete-frame-hook.
8417
8418 2000-10-26 Kenichi Handa <handa@etl.go.jp>
8419
8420 * coding.c (decode_coding): Fix previous change (check also
8421 CODING_MODE_LAST_BLOCK).
8422
8423 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
8424
8425 * regex.c: More `unsigned char' -> `re_char' changes.
8426 Also change several `int' into `re_wchar_t'.
8427 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
8428 (PUSH_FAILURE_POINTER): Don't cast any more.
8429 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
8430 We want GCC to complain, since this piece of code makes
8431 re_match non-reentrant, which *should* be fixed.
8432 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
8433 (EXTEND_BUFFER): Use RETALLOC.
8434 (SET_LIST_BIT): Don't cast.
8435 (re_wchar_t): New type.
8436 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
8437 that those two functions will always properly return.
8438 (IMMEDIATE_QUIT_CHECK): Cast to void.
8439 (analyse_first): Use recursion rather than an explicit stack.
8440 (re_compile_fastmap): Can't fail anymore.
8441 (re_search_2): Don't check re_compile_fastmap for failure.
8442 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
8443 Now also sets the new value (passed in a new argument).
8444 (re_match_2_internal): Use it.
8445 Also, use a new var `reg' of type size_t when looping through regs
8446 rather than reuse the inappropriate `mcnt'.
8447
8448 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
8449 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
8450 (where_is_internal): Renamed from Fwhere_is_internal.
8451 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
8452 (Fwhere_is_internal): New function wrapping where_is_internal.
8453 (where_is_internal_1): Handle the case where we're filling the cache.
8454 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
8455
8456 2000-10-25 Miles Bader <miles@gnu.org>
8457
8458 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
8459
8460 2000-10-25 Gerd Moellmann <gerd@gnu.org>
8461
8462 * window.c (pos_fully_visible_p): Removed.
8463 (Fpos_visible_in_window_p): Use pos_visible_p to determine
8464 if position is visible and/or fully visible.
8465
8466 * lisp.h (pos_visible_p): Add prototype.
8467
8468 * xdisp.c (pos_visible_p): New function.
8469
8470 2000-10-25 Kenichi Handa <handa@etl.go.jp>
8471
8472 * process.c (send_process): If OBJECT is t, it means that the data
8473 is from C string, but we should encode it. Before calling
8474 setup_raw_text_coding_system, be sure to flush out data by the
8475 previous coding system.
8476
8477 2000-10-25 Miles Bader <miles@lsi.nec.co.jp>
8478
8479 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
8480 assignment of startpos to prev when startpos == pos.
8481
8482 * editfns.c (find_field): Set the field stickiness correctly from
8483 overlay fields. Use renamed `text_property_stickiness'.
8484 (text_property_stickiness): Renamed from `char_property_stickiness'.
8485 Only check text properties, not overlays.
8486 * textprop.c (get_char_property_and_overlay): New function.
8487 (Fget_char_property): Use it.
8488 * intervals.h (get_char_property_and_overlay): Add declaration.
8489
8490 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
8491
8492 * keymap.c: Use AREF, ASET and ASIZE macros.
8493 (Fmake_sparse_keymap): Docstring fix.
8494 (synkey): Remove.
8495 (shadow_lookup): Move up.
8496 Handle the case where lookup-key returns an integer.
8497 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
8498 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
8499 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
8500 Simplify/rewrite the keymap-finding code.
8501 Add check for command shadowing, using shadow_lookup.
8502
8503 2000-10-24 Stefan Monnier <monnier@cs.yale.edu>
8504
8505 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
8506 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
8507 a symbol.
8508
8509 2000-10-24 Andrew Innes <andrewi@gnu.org>
8510
8511 * dired.c (directory_files_internal_unwind): New function.
8512 (directory_files_internal): Use it to ensure closedir is called
8513 even if expand-file-name or file-attributes throw, eg. because of
8514 a user interrupt. Also enable immediate_quit while calling
8515 re_search, so that matching can be interrupted as well.
8516
8517 2000-10-24 Andrew Innes <andrewi@gnu.org>
8518
8519 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
8520 NT-Emacs only.
8521 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
8522 so that re_search functions only quit when callers expect them to.
8523
8524 2000-10-24 Kenichi Handa <handa@etl.go.jp>
8525
8526 * regex.c (regex_compile): Change the way of handling a range from
8527 a char less than 256 to a char not less than 256.
8528
8529 2000-10-24 Gerd Moellmann <gerd@gnu.org>
8530
8531 * window.c (size_window): Prevent setting window's width or
8532 height to a negative value (esp. with XSETFASTINT).
8533
8534 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
8535 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
8536 (protect_malloc_state) [GC_MALLOC_CHECK &&
8537 GC_PROTECT_MALLOC_STATE]: New function.
8538 (PROTECT_MALLOC_STATE): New macro.
8539 (__malloc_initialize, morecore, _malloc_internal)
8540 (_free_internal) _realloc_internal): Use it to make _heapinfo
8541 read-only outside of gmalloc.
8542
8543 * keymap.c: Update copyright.
8544
8545 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
8546 a symbol.
8547
8548 2000-10-24 Colin Walters <walters@cis.ohio-state.edu>
8549
8550 * filelock.c (unlock_all_files): Use unlock_file to expand each
8551 buffer's file_truename before trying remove its lock file.
8552
8553 2000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
8554
8555 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
8556 or CRLF, decode EOLs.
8557
8558 2000-10-24 Kenichi Handa <handa@etl.go.jp>
8559
8560 * window.c (Fdisplay_buffer): Fix doc.
8561
8562 2000-10-23 Jason Rumney <jasonr@gnu.org>
8563
8564 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
8565 ASCII font of default fontset on Windows.
8566
8567 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
8568 xterm.c comment below).
8569
8570 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
8571
8572 2000-10-23 Gerd Moellmann <gerd@gnu.org>
8573
8574 * xterm.c (x_connection_closed): Reset handling_signal.
8575
8576 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
8577
8578 2000-10-23 Miles Bader <miles@gnu.org>
8579
8580 * window.c (window_scroll_pixel_based, window_scroll_line_based):
8581 Pass nil for FULLY argument to Fpos_visible_in_window_p to
8582 maintain old behavior.
8583 * minibuf.c (Fminibuffer_complete): Likewise.
8584
8585 2000-10-23 Miles Bader <miles@lsi.nec.co.jp>
8586
8587 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
8588 that when a font can't be exactly centered, it errs up rather than
8589 down.
8590
8591 2000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8592
8593 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
8594
8595 2000-10-23 Andrew Choi <akochoi@i-cable.com>
8596
8597 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
8598
8599 * dispnew.c [macintosh]: Include macterm.h.
8600 (init_display) [macintosh]: Initialization for window system.
8601
8602 * emacs.c (main) [macintosh]: Call syms_of_textprop,
8603 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
8604 syms_of_search, x_term_init, and init_keyboard before calling
8605 init_window_once. Also, call syms_of_xmenu.
8606
8607 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
8608 default fontset to Monaco.
8609
8610 * frame.c [macintosh]: Include macterm.h. Remove declarations of
8611 NewMacWindow and DisposeMacWindow.
8612 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
8613 instead of calling NewMacWindow and setting fields of
8614 f->output_data.mac directly. Call init_frame_faces.
8615 (Fdelete_frame) [macintosh]: Remove unused code.
8616 (Fmodify_frame_parameters) [macintosh]: Call
8617 x_set_frame_parameters instead of mac_set_frame_parameters.
8618
8619 * frame.h [macintosh]: Define menu_bar_lines field in struct
8620 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
8621
8622 * keyboard.c [macintosh]: Include macterm.h.
8623 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
8624 and menu_bar_activate_event type events as for X and NT.
8625 (make_lispy_event) [macintosh]: Construct lisp events of type
8626 MENU_BAR_EVENT as for X and NT.
8627
8628 * sysdep.c [macintosh]: Remove declaration for sys_signal.
8629 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
8630 (sys_subshell) [macintosh]: Remove definition entirely.
8631 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
8632 Vwindow_system_version here. Remove initialization of
8633 Vx_bitmap_file_path.
8634 (read_input_waiting): Correct the number of parameters passed to
8635 read_socket_hook.
8636 Move all Macintosh functions to mac/mac.c.
8637
8638 * term.c [macintosh]: Include macterm.h.
8639
8640 * window.c [macintosh]: Include macterm.h.
8641
8642 * xdisp.c [macintosh]: Include macterm.h. Declare
8643 set_frame_menubar and pending_menu_activation.
8644 (echo_area_display) [macintosh]: Do not return if terminal frame
8645 is the selected frame.
8646 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
8647 Allow only the selected frame to set menu bar.
8648 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
8649 calling FRAME_EXTERNAL_MENU_BAR (f).
8650 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
8651
8652 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
8653 and check_x. Declare XCreateGC. Define x_create_gc and
8654 x_free_gc. Initialize font_sort_order.
8655 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
8656 but call x_list_fonts instead of w32_list_fonts.
8657 (Finternal_face_x_get_resource) [macintosh]: Do not call
8658 display_x_get_resource.
8659 (prepare_face_for_display) [macintosh]: Set xgcv.font.
8660 (realize_x_face) [macintosh]: Load the font if it is specified in
8661 ATTRS.
8662 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
8663
8664 2000-10-22 Stefan Monnier <monnier@cs.yale.edu>
8665
8666 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
8667 is nil: since we go to the end of submap anyway, we'd end up
8668 setting nil to nil.
8669 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
8670 doesn't obey autoload.
8671
8672 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
8673
8674 * msdos.c (dos_set_window_size): Update screen dimension variables.
8675
8676 2000-10-21 Jason Rumney <jasonr@gnu.org>
8677
8678 * w32term.c (w32_cache_char_metrics): Double check that font is
8679 really fixed pitch before trusting tmPitchAndFamily.
8680
8681 2000-10-21 Andrew Innes <andrewi@gnu.org>
8682
8683 * w32gui.h (w32_char_font_type): Move enum from w32term.c
8684
8685 * w32term.h: Extern decl for w32_cache_char_metrics.
8686
8687 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
8688
8689 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
8690 (w32_unload_font): Free per_char array if present.
8691
8692 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
8693 cached information in emulated XFontStruct to handle common cases
8694 quickly. Do not allocate XCharStruct for return.
8695 (w32_native_per_char_metric): New function.
8696 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
8697 allocating one.
8698 (x_produce_glyphs): Don't get an HDC. Change calls to
8699 w32_per_char_metric to match arg change above. Remove calls to
8700 free results.
8701 (w32_get_glyph_overhangs): Ditto.
8702 (w32_cache_char_metrics): New function.
8703
8704 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
8705 ($(BLD)/casefiddle.$(O)): Remove compile command.
8706 ($(BLD)/gmalloc.$(O)): Remove compile command.
8707 ($(BLD)/dispnew.obj):
8708 ($(BLD)/keyboard.obj):
8709 ($(BLD)/w32inevt.obj):
8710 ($(BLD)/w32bdf.obj):
8711 ($(BLD)/alloc.obj):
8712 ($(BLD)/buffer.obj):
8713 ($(BLD)/editfns.obj):
8714 ($(BLD)/emacs.obj):
8715 ($(BLD)/fileio.obj):
8716 ($(BLD)/fns.obj):
8717 ($(BLD)/indent.obj):
8718 ($(BLD)/insdel.obj):
8719 ($(BLD)/intervals.obj):
8720 ($(BLD)/minibuf.obj):
8721 ($(BLD)/print.obj):
8722 ($(BLD)/scroll.obj):
8723 ($(BLD)/sysdep.obj):
8724 ($(BLD)/textprop.obj):
8725 ($(BLD)/widget.obj):
8726 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
8727 ($(BLD)/term.obj): Add dependency on dispextern.h.
8728
8729 * makefile.nt ($(BLD)\dispnew.obj):
8730 ($(BLD)\keyboard.obj):
8731 ($(BLD)\w32inevt.obj):
8732 ($(BLD)\w32bdf.obj):
8733 ($(BLD)\alloc.obj):
8734 ($(BLD)\buffer.obj):
8735 ($(BLD)\editfns.obj):
8736 ($(BLD)\emacs.obj):
8737 ($(BLD)\fileio.obj):
8738 ($(BLD)\fns.obj):
8739 ($(BLD)\indent.obj):
8740 ($(BLD)\insdel.obj):
8741 ($(BLD)\intervals.obj):
8742 ($(BLD)\minibuf.obj):
8743 ($(BLD)\print.obj):
8744 ($(BLD)\scroll.obj):
8745 ($(BLD)\sysdep.obj):
8746 ($(BLD)\textprop.obj):
8747 ($(BLD)\widget.obj):
8748 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
8749 ($(BLD)\term.obj): Add dependency on dispextern.h
8750
8751 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
8752
8753 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
8754 with an additional argument of Qt.
8755
8756 2000-10-21 Miles Bader <miles@gnu.org>
8757
8758 * window.c (pos_fully_visible_in_window_p): New function.
8759 (Fpos_visible_in_window_p): Add FULLY argument.
8760 Use pos_fully_visible_in_window_p.
8761 (window_scroll_pixel_based, window_scroll_line_based): Update
8762 calls to Fpos_visible_in_window_p.
8763 * lisp.h (Fpos_visible_in_window_p): Update prototype
8764
8765 2000-10-20 Gerd Moellmann <gerd@gnu.org>
8766
8767 * alloc.c (toplevel): Conditionalize compilation of mem_*
8768 functions differently.
8769
8770 2000-10-20 Jason Rumney <jasonr@gnu.org>
8771
8772 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
8773 mem_init where it used to be. mem_z etc not defined otherwise.
8774
8775 2000-10-20 Gerd Moellmann <gerd@gnu.org>
8776
8777 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
8778 GC_MALLOC_CHECK.
8779 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
8780 structure definition and related variabled to the top of the file.
8781 Include this code when GC_MALLOC_CHECK is defined.
8782 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
8783 register/unregister allocated region.
8784 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
8785 which isn't allocated.
8786 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
8787 something which is already in use.
8788 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
8789 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
8790 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
8791 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
8792
8793 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
8794 _malloc_internal instead of malloc.
8795 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
8796 of free.
8797
8798 2000-10-20 Andrew Innes <andrewi@gnu.org>
8799
8800 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
8801 Windows.
8802 (my_strftime) <macro>: Don't use macro arg list when redefining as
8803 _strftime_copytm.
8804 (my_strftime) <function>: Supply 0 as ut argument.
8805
8806 2000-10-19 Jason Rumney <jasonr@altavista.net>
8807
8808 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
8809 including dispextern.h, as it stops faces from working.
8810
8811 * w32fns.c (Fx_create_frame): Don't bother calling
8812 face-set-after-frame-default since the caller does it for us
8813 anyway. Clean up calls to x_get_arg to be consistent with X.
8814
8815 * w32term.c (x_produce_glyphs): Handle
8816 unibyte_display_via_language_environment correctly.
8817 (w32_draw_box_rect): Fix the calculation of width and height.
8818
8819 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
8820 as it has stopped working.
8821 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
8822 menu-bar.
8823
8824 2000-10-19 Gerd Moellmann <gerd@gnu.org>
8825
8826 * eval.c (skip_debugger): Prevent a compiler warning.
8827 (Fcondition_case): Likewise.
8828 (Fbacktrace_frame): Use a null interactive spec.
8829
8830 2000-10-19 Kenichi Handa <handa@etl.go.jp>
8831
8832 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
8833
8834 2000-10-18 Gerd Moellmann <gerd@gnu.org>
8835
8836 * strftime.c: Sync with glibc, file version 1.78.
8837 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
8838 should no longer be used according to ISO 8601.
8839
8840 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
8841 no map for meta_prefix_char, don't try to use it as a keymap.
8842 Instead, if T_OK is non-zero, look up a default binding, if any,
8843 otherwise, if T_OK is zero, return nil.
8844
8845 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
8846 (x_to_xcolors, png_load): Use x_query_color.
8847
8848 * xterm.c (x_color_cells, x_query_colors, x_query_color):
8849 New functions.
8850 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
8851 which can be slow.
8852 (x_copy_color, x_alloc_lighter_color): Likewise.
8853
8854 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
8855 (x_query_color, x_query_colors): Add prototype.
8856
8857 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
8858 check_string_bytes only if not noninteractive, increase count to 50.
8859
8860 2000-10-18 Miles Bader <miles@lsi.nec.co.jp>
8861
8862 * insdel.c (adjust_markers_for_delete): Handle before-insertion
8863 markers correctly.
8864
8865 2000-10-17 Gerd Moellmann <gerd@gnu.org>
8866
8867 * alloc.c (pure_bytes_used): Renamed from pureptr.
8868 (ALIGN): New macro.
8869 (pure_alloc): New function.
8870 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
8871 Use it.
8872 (Fpurecopy): Use PURE_POINTER_P.
8873
8874 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
8875 PT has moved backward.
8876
8877 * xdisp.c (cursor_row_p): Take continued lines into account.
8878
8879 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
8880 string's size_byte.
8881 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
8882 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
8883 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
8884 string allocated.
8885
8886 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
8887 of selective display off while searching for the next line start.
8888
8889 2000-10-17 Kenichi Handa <handa@etl.go.jp>
8890
8891 * Makefile.in (term.o): Depend on dispextern.h.
8892
8893 2000-10-16 Stefan Monnier <monnier@cs.yale.edu>
8894
8895 * keymap.c (keymap_memberp): Ensure that nil is not a member.
8896
8897 2000-10-16 Gerd Moellmann <gerd@gnu.org>
8898
8899 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
8900 the iterator at the beginning, so that they can be set later on,
8901 for instance in reseat_at_next_visible_line_start, without being
8902 overwritten.
8903
8904 * xfns.c (pbm_format): Add :foreground and :background keywords.
8905 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
8906 (xbm_load): Recognize foreground and background color specifications.
8907
8908 2000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
8909
8910 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
8911
8912 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
8913
8914 * msdos.c (IT_set_face): Compare highlighted face with the default
8915 face, and invert colors if these faces' colors are identical.
8916 (Fmsdos_remember_default_colors): Don't swap foreground and
8917 background colors in initial_colors[].
8918 (IT_set_frame_parameters): Don't swap frame's foreground and
8919 background pixels. If ALIST includes "(reverse . t)", swap
8920 foreground-color and background-color properties in frame's
8921 param_alist. If the original frame's param_alist doesn't specify
8922 the colors, store unspecified-fg and unspecified-bg, reversed if
8923 required.
8924
8925 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
8926 the colors are unspecified and reversed, reverse fore- and back-
8927 ground in the returned value.
8928 (Fframe_parameter): Ditto.
8929
8930 2000-10-16 Gerd Moellmann <gerd@gnu.org>
8931
8932 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
8933 get_last_unchanged_at_beg_row.
8934 (find_first_unchanged_at_end_row): Renamed from
8935 get_first_unchanged_at_end_row.
8936 (find_first_unchanged_at_end_row): Convert assertions to
8937 unconditional tests which abort. When looking for a row in
8938 unchanged text, don't go further back than first_text_row.
8939
8940 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
8941 Don't add in the last line's height when deciding if the new
8942 position is below the scroll margin.
8943
8944 2000-10-16 Miles Bader <miles@gnu.org>
8945
8946 * editfns.c (Fconstrain_to_field): Check carefully for field
8947 boundaries if either OLD_POS or NEW_POS has a non-nil field
8948 property, even if they're the same.
8949
8950 2000-10-16 Kenichi Handa <handa@etl.go.jp>
8951
8952 * xterm.c (x_draw_box_rect): Fix the calculation of width and
8953 height for XFillRectangle.
8954
8955 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
8956
8957 * syntax.c (Fstring_to_syntax): New function extracted from
8958 Fmodify_syntax_entry.
8959 (Fmodify_syntax_entry): Use it and document the ! and | fences.
8960 (skip_chars, Fforward_comment): Remove unused variables.
8961 (syms_of_syntax): Add defsubr for string-to-syntax.
8962 (describe_syntax): Add code for comment and string fences.
8963
8964 2000-10-14 Stefan Monnier <monnier@cs.yale.edu>
8965
8966 * keymap.c (access_keymap): Add AUTOLOAD parameter.
8967 Do the meta->esc mapping. Call get_keyelt before returning.
8968 Start scanning from the second element (the first is always `keymap')
8969 to make it easier to detect when we reach a parent map.
8970 Handle the case of inheriting from a symbol whose function is a map.
8971 (Fkeymap_parent): Also handle the `inherit from symbol' case.
8972 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
8973 (get_keyelt, Flookup_key): Update call to access_keymap.
8974 Remove the meta->esc mappings.
8975 (define_as_prefix): Delete old disabled code.
8976 (menu_item_p): New function.
8977 (where_is_internal_1): Skip over the few remaining menu items.
8978 * lisp.h (access_keymap): Update prototype.
8979 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
8980 Update call to access_keymap.
8981 (follow_key, read_key_sequence): Update calls to access_keymap.
8982 Remove the meta->esc mappings.
8983
8984 2000-10-13 Gerd Moellmann <gerd@gnu.org>
8985
8986 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
8987 with additional argument.
8988
8989 * xdisp.c (cursor_row_p): New function.
8990 (try_cursor_movement, display_line): Use it.
8991
8992 * xdisp.c (append_space): Also save/restore iterator's current
8993 character and its length.
8994
8995 * xdisp.c (init_from_display_pos): Add an assertion.
8996 (handle_stop): Don't set iterator's add_overlay_start.
8997 (handle_invisible_prop): Likewise.
8998 (load_overlay_strings): If text under an overlay is invisible,
8999 take both before- and after-strings into account when the iterator
9000 is positioned either at the start or at the end of the overlay.
9001 (forward_to_next_line_start): Rewritten.
9002 (reseat_at_next_visible_line_start): Rewritten.
9003 (set_iterator_to_next): Add parameter RESEAT_P.
9004
9005 * dispextern.h (struct it): Remove member add_overlay_start.
9006 (set_iterator_to_next): Change prototype.
9007
9008 2000-10-13 Kenichi Handa <handa@etl.go.jp>
9009
9010 * coding.c (code_convert_region): Be sure to initialize
9011 coding->category_idx.
9012 (decode_coding_string): Set coding->src_multibyte and
9013 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
9014 (encode_coding_string): Set coding->src_multibyte and
9015 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
9016
9017 2000-10-12 Stefan Monnier <monnier@cs.yale.edu>
9018
9019 * xfns.c (Fx_create_frame): Don't bother calling
9020 face-set-after-frame-default since the caller does it for us anyway.
9021
9022 2000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
9023
9024 * window.c (coordinates_in_window): Fix detection of vertical line
9025 on character terminals.
9026
9027 2000-10-12 Gerd Moellmann <gerd@gnu.org>
9028
9029 * editfns.c (save_excursion_save): Additionally record the
9030 selected window.
9031 (save_excursion_restore): If buffer was visible in a window, and a
9032 different window was selected, and the old selected window is
9033 still live, restore point in that window.
9034
9035 2000-10-12 Kenichi Handa <handa@etl.go.jp>
9036
9037 * xterm.c (x_produce_glyphs): Handle
9038 unibyte_display_via_language_environment correctly.
9039
9040 * regex.c (regex_compile): Change the way of handling a range from
9041 unibyte char to multibyte char.
9042
9043 * syntax.c (skip_chars): Change the way of handling a range from
9044 unibyte char to multibyte char.
9045
9046 * process.c (read_process_output): Cancel previous change.
9047
9048 2000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
9049
9050 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
9051
9052 * charset.c (Ffind_charset_string): Doc fix.
9053 (Ffind_charset_region): Doc fix.
9054
9055 2000-10-11 Kenichi Handa <handa@mule.m17n.org>
9056
9057 * process.c (read_process_output): Fix previous change. Adjust
9058 multibyteness of text to insert in a buffer by
9059 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
9060
9061 2000-10-10 Andreas Schwab <schwab@suse.de>
9062
9063 * alloc.c (mark_object): Remove all workarounds installed on
9064 1993-08-08.
9065
9066 2000-10-10 Kenichi Handa <handa@etl.go.jp>
9067
9068 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
9069 (base64_encode_1): Make it work for a text of multibyte form.
9070 (Fbase64_decode_region): Allocate sufficient memory for multibyte
9071 case. Don't call str_to_multibyte because base64_decode_1
9072 produces correct multibyte form for eight-bit codes.
9073 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
9074 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
9075 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
9076 codes.
9077
9078 * charset.h (CHAR_STRING): Optimized for single byte characters.
9079
9080 2000-10-09 Andreas Schwab <schwab@suse.de>
9081
9082 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
9083 -1 after socket is closed, to fall through to error processing.
9084
9085 2000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
9086
9087 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
9088 variables. If ALIST includes foreground-color or
9089 background-color, change also the colors of the default face for
9090 this frame.
9091
9092 2000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
9093
9094 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
9095 them extern (they are defined on xfaces.c).
9096 (syms_of_msdos): Don't intern and don't staticpro
9097 Qbackground_color and Qforeground_color.
9098
9099 2000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
9100
9101 * frame.c (Fframe_parameter): For non-windowed frames, if
9102 f->param_alist says foreground or background color is unspecified,
9103 call tty_color_name to return the color name computed from the
9104 frame's current colors.
9105
9106 2000-10-06 Dave Love <fx@gnu.org>
9107
9108 * terminfo.c (ospeed): Don't declare.
9109
9110 * sysdep.c: Don't include string.h.
9111 (h_errno): Declare conditional also on TRY_AGAIN.
9112
9113 * charset.c (Ffind_charset_string): Doc fix.
9114
9115 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
9116 (Fbase64_decode_region, Fbase64_decode_string): More explicit
9117 error messages.
9118
9119 2000-10-05 Dave Love <fx@gnu.org>
9120
9121 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
9122 position like menu-bar.
9123
9124 2000-10-05 Gerd Moellmann <gerd@gnu.org>
9125
9126 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
9127
9128 * xdisp.c (handle_single_display_prop): Use safe_call1.
9129 (safe_call): Renamed from call_function.
9130 (safe_call1): New function.
9131 (handle_fontified_prop): Use safe_call1 instead of call1.
9132 (safe_eval): Renamed from eval_form.
9133 (safe_eval_handler): Renamed from eval_handler.
9134 (handle_single_display_prop, display_mode_element): Use safe_eval
9135 instead of eval_form.
9136
9137 * xfaces.c (merge_face_heights): Use safe_call instead of
9138 call_function.
9139
9140 * keyboard.c (show_help_echo): Use safe_call instead of
9141 call_function; use safe_eval instead of eval_form.
9142
9143 * lisp.h (safe_call): Renamed from call_function.
9144 (safe_eval): Renamed from eval_form.
9145 (safe_call1): Add prototype.
9146
9147 2000-10-05 Miles Bader <miles@lsi.nec.co.jp>
9148
9149 * xfns.c (image_ascent): Rearrange ascent calculation for the
9150 has-a-font case.
9151
9152 2000-10-04 Stefan Monnier <monnier@cs.yale.edu>
9153
9154 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
9155 (where_is_internal_1): Don't bother ignoring menu-items any more.
9156
9157 2000-10-04 Gerd Moellmann <gerd@gnu.org>
9158
9159 * keyboard.c (update_menu_bindings): New variable.
9160 (parse_menu_item): Use AREF. If update_menu_bindings
9161 is 0, don't update menu bindings.
9162 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
9163
9164 2000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
9165
9166 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
9167 to `mark_object'.
9168
9169 2000-10-02 Stefan Monnier <monnier@cs.yale.edu>
9170
9171 * syntax.c (forw_comment): Match nestedness of ender/starter.
9172 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
9173 (prev_char_comstart_first): Remove.
9174 (back_comment): Check two-char comment markers more carefully
9175 to better handle overlapping cases like *//* or /* */* */ ...
9176 Match nestedness of ender/starter.
9177
9178 2000-10-02 Dave Love <fx@gnu.org>
9179
9180 * config.in (HAVE_GAI_STRERROR): Add undef.
9181
9182 * process.c (Fopen_network_stream): Use it.
9183
9184 * m/alpha.h (NO_REMAP): Don't define.
9185
9186 2000-10-02 Gerd Moellmann <gerd@gnu.org>
9187
9188 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
9189 return with a string converted to an integer or vice versa when
9190 Vmocklisp_arguments is t.
9191 (Fsignal): Likewise. The function can return for `quit'.
9192 (struct gcpro): Declare member `var' to point to a volatile
9193 Lisp_Object.
9194
9195 * eval.c (error): Prevent compiler warning.
9196
9197 2000-09-30 Stefan Monnier <monnier@cs.yale.edu>
9198
9199 * keymap.c (keymap_memberp): New function.
9200 (Fset_keymap_parent): Use it.
9201 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
9202 Use keymap_memberp to avoid creating cycles.
9203 (access_keymap): Use KEYMAPP.
9204
9205 2000-09-30 Gerd Moellmann <gerd@gnu.org>
9206
9207 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
9208 gai_strerror. Make sure xerrno is set if connect fails. Improve
9209 error recovery.
9210
9211 2000-09-29 Jason Rumney <jasonr@gnu.org>
9212
9213 * w32term.c (w32_char_font_type, w32_encode_char)
9214 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
9215 (w32_bdf_per_char_metric): New function.
9216 (w32_per_char_metric): Use it.
9217 (x_draw_glyph_string_background): Always draw background for BDF
9218 glyphs.
9219
9220 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
9221 GDI object which is a scarce resource.
9222
9223 * w32bdf.c (search_file_line): Fix skipping of whitespace.
9224 (get_quoted_string): Fix limit on memchr search.
9225 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
9226 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
9227 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
9228 (get_cached_font_char, cache_char_offset): Use macro
9229 BDF_CODEPOINT_RANGE_COVER_P.
9230 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
9231 (clear_cached_bitmap_slots): New function.
9232 (GET_HEX_VALUE): G-Z, g-z are not hex.
9233 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
9234 (get_bitmap_with_cache): Use new cache implementation.
9235 (create_offscreen_bitmap): New function.
9236 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
9237
9238 * w32term.c (x_produce_glyphs): If the distance from the current
9239 position to the next tab stop is less than a canonical character
9240 width, use the tab stop after that.
9241 (x_draw_glyphs): Handle case START and END are out of bounds more
9242 carefully.
9243 (x_clear_mouse_face): Block/unblock input.
9244 (x_display_and_set_cursor): Don't show a hollow box cursor for
9245 buffers whose cursor_type is nil.
9246
9247 2000-09-29 Gerd Moellmann <gerd@gnu.org>
9248
9249 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
9250
9251 * dispextern.h (updating_frame): Declare extern.
9252
9253 2000-09-29 Andreas Schwab <schwab@suse.de>
9254
9255 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
9256
9257 2000-09-29 Gerd Moellmann <gerd@gnu.org>
9258
9259 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
9260 use its function definition.
9261 (tool_bar_items): Likewise.
9262
9263 * lisp.h (fatal): Declare NO_RETURN.
9264
9265 2000-09-29 Kenichi Handa <handa@etl.go.jp>
9266
9267 * keymap.c: Remove the line "#undef NULL".
9268
9269 2000-09-28 Gerd Moellmann <gerd@gnu.org>
9270
9271 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
9272
9273 2000-09-28 Dave Love <fx@gnu.org>
9274
9275 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
9276
9277 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
9278
9279 * .gdbinit (xreload): Note its need on GNU/Linux.
9280
9281 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
9282 r_alloc, r_alloc_free.
9283
9284 2000-09-28 Kenichi Handa <handa@etl.go.jp>
9285
9286 * syntax.c (skip_chars): Handle negation correctly.
9287
9288 2000-09-27 Gerd Moellmann <gerd@gnu.org>
9289
9290 * xfaces.c (realize_default_face): Call set_lface_from_font_name
9291 with non-zero FORCE_P argument.
9292
9293 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
9294 Add assertions.
9295
9296 * xdisp.c (window_box_height): Add an assertion.
9297
9298 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
9299 tool-bar than is available.
9300 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
9301
9302 2000-09-27 Dave Love <fx@gnu.org>
9303
9304 * s/irix6-5.h: Now works 64-bit. Tidied.
9305
9306 2000-09-26 Gerd Moellmann <gerd@gnu.org>
9307
9308 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
9309 instead of BITS_PER_INT.
9310 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
9311 EMACS_UINT, respectively.
9312 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
9313
9314 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
9315
9316 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
9317
9318 * window.c (freeze_window_starts): Construct last argument for
9319 foreach_window differently.
9320
9321 * xfns.c (x_decode_color): Don't return a Lisp_Object.
9322
9323 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
9324 EMACS_UINT instead of `int' and `unsigned int'.
9325 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
9326
9327 * frame.h (struct frame): Make the `nothing' member of union
9328 output_data an EMACS_INT.
9329
9330 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
9331 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
9332 size in the sdata structure.
9333 (SDATA_NBYTES, SDATA_DATA): New macros.
9334 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
9335 differently for the different layout of the sdata structure.
9336 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
9337 in sdata.
9338 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
9339 Check that size recorded in the string size and size recorded in
9340 the sdata structure agree.
9341
9342 2000-09-25 Dave Love <fx@gnu.org>
9343
9344 * buffer.c: Include stdio.h.
9345
9346 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
9347
9348 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
9349
9350 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
9351 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
9352 (__malloc_extra_blocks): Declare as __malloc_size_t.
9353
9354 2000-09-25 Gerd Moellmann <gerd@gnu.org>
9355
9356 * alloc.c (mark_image): Use GC_NILP instead of NILP.
9357
9358 * keyboard.c (show_help_echo): Set help_echo_showing_p.
9359 (read_char): If help-echo is showing, preserve the echo area
9360 when redisplaying.
9361
9362 * xdisp.c (help_echo_showing_p): New variable.
9363 (set_message): Reset it to 0.
9364 (init_xdisp): Initialize help_echo_showing_p.
9365
9366 * dispextern.h (help_echo_showing_p): Declare extern.
9367
9368 * config.in: Fix typo in __GNUC_MINOR__.
9369
9370 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
9371
9372 * s/freebsd.h (POSIX_SIGNALS): Define.
9373
9374 * xterm.c (x_clear_mouse_face): Block/unblock input.
9375
9376 2000-09-24 Dave Love <fx@gnu.org>
9377
9378 * fns.c (base64_encode_1): Fix last change.
9379
9380 2000-09-22 Gerd Moellmann <gerd@gnu.org>
9381
9382 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
9383
9384 * xdisp.c (try_window_reusing_current_matrix): More fixes
9385 for the case window has a header-line.
9386
9387 2000-09-22 Dave Love <fx@gnu.org>
9388
9389 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
9390 a doc string.
9391
9392 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
9393
9394 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
9395
9396 2000-09-21 Gerd Moellmann <gerd@gnu.org>
9397
9398 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
9399 for GCC >= 2.5.
9400
9401 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
9402 Declare NO_RETURN.
9403
9404 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
9405 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
9406 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
9407 warnings.
9408
9409 * marker.c (byte_char_debug_check): Return void.
9410
9411 * xfns.c (Fx_create_frame): Set default frame parameter value
9412 for tool-bar-lines to 1.
9413
9414 * dispnew.c (scrolling_window): Compare y-positions of rows
9415 equal at the start. Some simplification.
9416
9417 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
9418 reused rows' y-position in the case window has a header-line, and
9419 new window start is greater than old window start.
9420
9421 * process.c (process_sent_to): New variable.
9422 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
9423 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
9424 Declare more parameters volatile.
9425
9426 * lread.c (Vrecursive_load_depth_limit): New variable.
9427 (Fload): Check recursive loads whose recursion depth exceeds
9428 Vrecursive_load_depth_limit.
9429 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
9430
9431 2000-09-20 Gerd Moellmann <gerd@gnu.org>
9432
9433 * fileio.c (Fread_file_name): Doc fix.
9434
9435 * editfns.c (Fmessage_or_box): Doc fix.
9436
9437 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
9438
9439 * xfns.c (xbm_scan): Allow C-style comments.
9440
9441 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
9442 symbols are specified, add color translations to the cache.
9443 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
9444 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
9445 xpm_cache_color.
9446 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
9447 structures to xpm_init_color_cache.
9448
9449 2000-09-19 Gerd Moellmann <gerd@gnu.org>
9450
9451 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
9452
9453 2000-09-19 Andrew Innes <andrewi@gnu.org>
9454
9455 * makefile.nt (bootstrap-emacs): Don't change directory.
9456
9457 2000-09-19 Kenichi Handa <handa@etl.go.jp>
9458
9459 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
9460
9461 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
9462 If output buffer is too small, signal an appropriated error.
9463
9464 2000-09-18 Dave Love <fx@gnu.org>
9465
9466 * keyboard.c (menu_bar_items, tool_bar_items)
9467 (current_active_maps): Remove redundant get_local_map call.
9468
9469 2000-09-18 Gerd Moellmann <gerd@gnu.org>
9470
9471 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
9472 cursor for buffers whose cursor_type is nil.
9473
9474 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
9475 a feature to implement that is already implemented.
9476 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
9477 warnings.
9478
9479 * xfns.c (x_clear_image_1): New function.
9480 (x_clear_image): Use it.
9481 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
9482
9483 * dispnew.c (update_window): Move test for invisible lines
9484 at the top to update_window_line.
9485 (update_window_line): Handle invisible lines here.
9486
9487 * xfns.c (clear_image_cache): Clear current matrices of all
9488 frames sharing an image cache. Block input while freeing
9489 images. Fix timestamp comparison.
9490 (x_clear_image): Also free the mask.
9491
9492 * xfns.c (lookup_image): Block input while loading the image so
9493 that we won't get interrupted in a state where the image isn't yet
9494 set up completely.
9495 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
9496 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
9497 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
9498 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
9499
9500 2000-09-16 Gerd Moellmann <gerd@gnu.org>
9501
9502 * dispnew.c (update_window): Make sure to make desired rows
9503 current even if they are completely invisible at the top
9504 of a window.
9505
9506 2000-09-15 Gerd Moellmann <gerd@gnu.org>
9507
9508 * xfns.c (lookup_image): Build mask before applying an algorithm.
9509 Recognize algorithm `disabled'.
9510 (cross_disabled_images): New variable.
9511 (COLOR_INTENSITY): New macro.
9512 (x_detect_edges): Use COLOR_INTENSITY.
9513 (x_disable_image): New function.
9514 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
9515
9516 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
9517 disabled state, don't apply an image transformation algorithm if
9518 the user specified an image for the disabled state. Use
9519 `:algorithm disabled' for creating a disabled item's image if the
9520 user hasn't specified an image.
9521
9522 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
9523 allocation functions with the XPM lib.
9524 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
9525 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
9526 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
9527 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
9528 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
9529 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
9530 functions, if possible, because these handle color allocation
9531 failure more gracefully.
9532 (Fimage_mask_p): New function.
9533
9534 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
9535 (Qedge_detection, Qheuristic): New symbols.
9536 (syms_of_xfns): Initialize new symbols.
9537 (lookup_image): Handle `:mask X', `:algorithm emboss', and
9538 `algorithm (edge-detection ...)'.
9539 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
9540 (tiff_format, gif_format, gs_format): Add `:mask'.
9541 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
9542 (GIF_MASK, GS_MASK): New enumerators.
9543 (x_laplace_read_row, x_laplace_write_row): Functions removed.
9544 (emboss_matrix, laplace_matrix): New variables.
9545 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
9546 (x_edge_detection): New functions.
9547 (x_laplace): Rewritten in terms of x_detect_edges.
9548 (x_build_heuristic_mask): If image has a mask, free it.
9549
9550 2000-09-14 Andrew Innes <andrewi@gnu.org>
9551
9552 * makefile.w32-in: Revert to Unix line endings.
9553
9554 2000-09-14 Andrew Innes <andrewi@gnu.org>
9555
9556 * makefile.w32-in: Standardize indentation somewhat.
9557 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
9558 cater for differences between shells.
9559
9560 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
9561
9562 2000-09-14 Gerd Moellmann <gerd@gnu.org>
9563
9564 * xterm.c (x_produce_glyphs): If the distance from the current
9565 position to the next tab stop is less than a canonical character
9566 width, use the tab stop after that.
9567
9568 2000-09-14 Dave Love <fx@gnu.org>
9569
9570 * buffer.c (alloc_buffer_text): Fix xmalloc call.
9571
9572 2000-09-14 Gerd Moellmann <gerd@gnu.org>
9573
9574 * xdisp.c (handle_fontified_prop): While running fontification
9575 functions, bind `fontification-functions' and
9576 `after-change-functions' to nil.
9577
9578 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
9579 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
9580
9581 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
9582
9583 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
9584 USE_MMAP_FOR_BUFFERS.
9585
9586 * insdel.c (make_gap): Use enlarge_buffer_text.
9587
9588 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
9589 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
9590 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
9591 from former r_alloc_* functions in ralloc.c.
9592 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
9593 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
9594 (mmap_init) [REL_ALLOC_MMAP]: New function.
9595 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
9596 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
9597 BUFFER_FREE.
9598
9599 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
9600 (enlarge_buffer_text): Add prototype.
9601
9602 * ralloc.c: Remove everything having to do with the use of mmap.
9603
9604 2000-09-13 Gerd Moellmann <gerd@gnu.org>
9605
9606 * sound.c (Fplay_sound): Doc fix.
9607
9608 * keyboard.c: Avoid some more compiler warnings.
9609 (parse_tool_bar_item): Ignore cached key bindings.
9610
9611 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
9612 and allocation of Lisp data.
9613
9614 2000-09-12 Gerd Moellmann <gerd@gnu.org>
9615
9616 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
9617 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
9618 defaults first.
9619
9620 * lread.c (Fload): Put code checking for recursive loads in #if 0.
9621
9622 2000-09-12 Miyashita Hisashi <himi@meadowy.org>
9623
9624 * ccl.c: Comment fixed.
9625 (MAX_MAP_SET_LEVEL): Increased to 30.
9626 (PUSH_MAPPING_STACK): Enclose with do-while block.
9627 (POP_MAPPING_STACK): Likewise.
9628 (stack_idx_of_map_multiple): New variable.
9629 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
9630 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
9631 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
9632 (ccl_driver) <CCL_MapSingle>: Likewise.
9633 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
9634 with the case where looking up process reaches to the end of
9635 map-set, and call CCL programs as the above change.
9636
9637 2000-09-11 Gerd Moellmann <gerd@gnu.org>
9638
9639 * xfns.c (png_load, jpeg_load): Declare some variables volatile
9640 that might be clobbered by longjmp.
9641 (check_x_display_info, x_decode_color, create_frame_xic)
9642 (Fx_display_backing_store, Fx_display_visual_class)
9643 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
9644
9645 * lread.c (init_lread): Set Vloads_in_progress to nil.
9646 (Fload): Show list of recursively loaded files, when signaling an
9647 error.
9648
9649 * lread.c (Vloads_in_progress): New variable.
9650 (record_load_unwind): New function.
9651 (Fload): Check for recursive loads.
9652 (syms_of_lread): Initialize Vloads_in_progress.
9653 (read_integer, read1): Avoid some compiler warnings.
9654
9655 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
9656 compiler warnings.
9657
9658 2000-09-11 Miles Bader <miles@gnu.org>
9659
9660 * editfns.c (Fbuffer_string): Doc fix.
9661
9662 2000-09-10 Gerd Moellmann <gerd@gnu.org>
9663
9664 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
9665
9666 2000-09-09 Ken Raeburn <raeburn@gnu.org>
9667
9668 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
9669 whether to include other header files.
9670
9671 2000-09-09 Gerd Moellmann <gerd@gnu.org>
9672
9673 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9674 by Fmemq as a boolean.
9675
9676 2000-09-08 Stefan Monnier <monnier@cs.yale.edu>
9677
9678 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
9679
9680 2000-09-08 Gerd Moellmann <gerd@gnu.org>
9681
9682 * ralloc.c (mmap_fd): Remove initializer which can make it
9683 read-only in a dumped Emacs.
9684 (mmap_fd_1): New variable.
9685 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
9686 restore it from there.
9687 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
9688 unconditionally so that mmap_fd can be initialized there.
9689 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
9690 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
9691 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
9692
9693 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
9694
9695 * xdisp.c (dump_glyph_row): Fix printf format string.
9696 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
9697
9698 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
9699
9700 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
9701 inheritance.
9702
9703 * xdisp.c (try_window_id): When trying to locate cursor in
9704 unchanged rows at the top, handle the case that we can't find it.
9705
9706 * xterm.c (x_draw_glyphs): Handle case START and END are out
9707 of bounds more carefully.
9708
9709 2000-09-08 Dave Love <fx@gnu.org>
9710
9711 * s/sol2.h (REL_ALLOC_MMAP): Define.
9712 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
9713
9714 * ralloc.c: Don't include string.h (redundant).
9715 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
9716 [!MAP_ANON]: Include fcntl.h.
9717 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
9718 (r_alloc, r_re_alloc, r_alloc_free)
9719 (mmap_enlarge, mmap_set_vars): Use it.
9720 (r_alloc_init_fd): New function.
9721 (__morecore) [SYSTEM_MALLOC]: Don't declare.
9722 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
9723 malloc type.
9724
9725 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
9726 Remove vm-limit.o.
9727
9728 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
9729 change to __NetBSD__.
9730
9731 2000-09-08 Kenichi Handa <handa@etl.go.jp>
9732
9733 * search.c (compile_pattern): Check the multibyteness of cached
9734 string and PATTERN.
9735
9736 2000-09-08 Miles Bader <miles@gnu.org>
9737
9738 * xfaces.c (default_face_vector): Function removed.
9739 (Finternal_merge_in_global_face): Restore old global/local
9740 attribute override order. Use inline loop instead of calling
9741 default_face_vector.
9742
9743 2000-09-07 Gerd Moellmann <gerd@gnu.org>
9744
9745 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
9746 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
9747 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
9748 where necessary, in case POINTER_TYPE is `void'.
9749
9750 2000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
9751
9752 * frame.c (make_terminal_frame): Initialize frame foreground and
9753 background colors to unspecified, for the initial instance of an
9754 MSDOS frame.
9755
9756 2000-09-07 Gerd Moellmann <gerd@gnu.org>
9757
9758 * ralloc.c (mmap_find): Fix overlap computation.
9759 (mmap_enlarge): Compute nbytes before trying to find an
9760 overlapping region.
9761
9762 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
9763 instead of `!='.
9764
9765 * lread.c (syms_of_lread): Change value of regexp
9766 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
9767
9768 * xmenu.c (xdialog_show): When looking up the selection in
9769 menu_items, take `quote' boundaries into account; this corresponds
9770 to a nil ITEM in x-popup-dialog.
9771
9772 2000-09-07 Kenichi Handa <handa@etl.go.jp>
9773
9774 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
9775 not 0x81.
9776 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
9777
9778 * coding.c (encode_coding_sjis_big5): Use translation table for
9779 encoding, not decoding. Fix the handling of latin-jisx0201.
9780 Check for the charset katakana-jisx0201 too.
9781 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
9782 (detect_coding_sjis): Check the byte sequence more rigidly.
9783
9784 2000-09-07 Gerd Moellmann <gerd@gnu.org>
9785
9786 * xfaces.c (Vparam_value_alist): New variable.
9787 (syms_of_xfaces): Initialize it.
9788 (Finternal_set_lisp_face_attribute): Avoid more consing.
9789
9790 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
9791 specially.
9792 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
9793 (Qbackground_mode): New variable.
9794 (syms_of_frame_1): Initialize Qbackground_mode.
9795
9796 * lisp.h (Qdisplay): Declare extern.
9797
9798 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
9799 change face on all frames, and change the default for new frames.
9800
9801 2000-09-07 Dave Love <fx@gnu.org>
9802
9803 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
9804
9805 2000-09-07 Kenichi Handa <handa@etl.go.jp>
9806
9807 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
9808
9809 * charset.c: Include composite.h
9810 (lisp_string_width): New function.
9811 (Fstring_width): Call lisp_string_width instead of strwidth.
9812
9813 * Makefile.in (charset.o): Depends on composite.h.
9814
9815 * process.c (read_process_output): Before inserting the decoded
9816 text in the buffer, adjust the multibyteness.
9817
9818 2000-09-06 Gerd Moellmann <gerd@gnu.org>
9819
9820 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
9821 buffer's text buffer is null, map new memory.
9822
9823 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
9824 POINTER_TYPE and size_t.
9825 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
9826 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
9827 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
9828 [REL_ALLOC_MMAP]: New macros.
9829 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
9830 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
9831 [REL_ALLOC_MMAP]: New functions.
9832
9833 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
9834 before and after unexec.
9835
9836 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
9837 text buffers if necessary.
9838
9839 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
9840 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
9841 in prototypes.
9842
9843 * config.in (HAVE_MMAP): Add #undef.
9844
9845 2000-09-05 Gerd Moellmann <gerd@gnu.org>
9846
9847 * frame.c (Qdisplay_type): New variable.
9848 (syms_of_frame_1): Initialize it.
9849 (Fframe_parameter): New function that avoids consing.
9850 (syms_of_frame): Defsubr it.
9851
9852 * buffer.c (Fother_buffer): Consider buffers as invisible when
9853 they are displayed in a window on an invisible frame.
9854
9855 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
9856 get-largest-window always return nil.
9857
9858 2000-09-04 Gerd Moellmann <gerd@gnu.org>
9859
9860 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
9861 variable; recognize Emacs 19 elc files.
9862
9863 2000-09-04 Miles Bader <miles@gnu.org>
9864
9865 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
9866 before initially popping up the menu, so the menu doesn't flash
9867 when the face settings are significantly different from the defaults.
9868
9869 2000-09-04 Stefan Monnier <monnier@cs.yale.edu>
9870
9871 * regex.c (WIDE_CHAR_SUPPORT): New macro.
9872 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
9873 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
9874 (BIT_UNIBYTE): Remove.
9875 (re_match_2_internal): Delete corresponding code and streamline the
9876 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
9877 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
9878 (re_wctype_t): New type.
9879 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
9880 (regex_compile): Use them and fix handling of overly long char classes.
9881
9882 2000-09-03 Andrew Innes <andrewi@gnu.org>
9883
9884 * makefile.w32-in: Change to DOS line endings.
9885
9886 * s/ms-w32.h (ORDINARY_LINK): New define.
9887
9888 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
9889 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
9890
9891 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
9892 (distclean): Delete them here instead.
9893
9894 * w32proc.c (compare_env): Convert to uppercase for comparison,
9895 not lowercase, to match how the native Windows shell works.
9896
9897 2000-09-03 Jason Rumney <jasonr@gnu.org>
9898
9899 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
9900 CVS changes the line-ends when checking in/out on DOS/Windows.
9901
9902 * makefile.nt (emacs): Do not change directory to run temacs, as
9903 the load-path is set relative to current directory.
9904
9905 2000-09-03 Miles Bader <miles@gnu.org>
9906
9907 * xterm.c (x_alloc_lighter_color_for_widget): New function.
9908
9909 2000-09-02 Gerd Moellmann <gerd@gnu.org>
9910
9911 * xdisp.c (redisplay_mode_lines): New function.
9912 (display_mode_lines): Return number of mode lines displayed.
9913 (echo_area_display): Use redisplay_mode_lines to draw garbaged
9914 mode lines. Don't temporarily bind redisplay-dont-pause to t.
9915
9916 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
9917 string.h and strings.h.
9918 (index) [HAVE_INDEX]: Add prototype.
9919
9920 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
9921 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
9922
9923 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
9924 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9925
9926 2000-09-01 Gerd Moellmann <gerd@gnu.org>
9927
9928 * lread.c (read1): Accept `?' as symbol constituent, for
9929 compatiblity with XEmacs.
9930
9931 2000-08-31 Stefan Monnier <monnier@cs.yale.edu>
9932
9933 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
9934 (struct re_pattern_buffer): Remove newline_anchor.
9935 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
9936 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
9937 (re_max_failures, fail_stack): Use size_t rather than unsigned.
9938 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
9939 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
9940 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
9941 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
9942 Get rid of references to newline_anchor.
9943 (regcomp): Allocate and precompute a fastmap.
9944
9945 2000-08-31 Gerd Moellmann <gerd@gnu.org>
9946
9947 * lread.c (openp): GCPRO local variable `filename'.
9948
9949 2000-08-30 Stefan Monnier <monnier@cs.yale.edu>
9950
9951 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
9952
9953 * regex.c: Merge some changes from GNU libc. Add prototypes.
9954 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
9955 Use memcmp and memcpy instead of bcopy and bcmp.
9956 (init_syntax_once): Use ISALNUM.
9957 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
9958 (REG_UNSET_VALUE): Remove. Use NULL instead.
9959 (REG_UNSET, re_match_2_internal): Use NULL.
9960 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
9961 New macros.
9962 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
9963 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
9964 (regex_compile): In handle_interval, return an error rather than try to
9965 unfetch the interval if we can't find the closing brace.
9966 Obey the RE_NO_GNU_OPS syntax bit.
9967 (TOLOWER): New macro.
9968 (regcomp): Use it.
9969 (regexec): Allocate regs.start and regs.end as one block.
9970
9971 2000-08-30 Gerd Moellmann <gerd@gnu.org>
9972
9973 * xdisp.c (echo_area_display): Check display_completed instead
9974 of calling detect_input_pending.
9975
9976 * dispnew.c (update_frame): Only set display_completed here; move
9977 the update_begin and update_end calls here from update_frame_1.
9978 (update_frame_1): Don't set display_completed here, don't call
9979 update_begin/update_end.
9980
9981 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
9982 instead of store_frame_param.
9983
9984 2000-08-29 Gerd Moellmann <gerd@gnu.org>
9985
9986 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
9987 desired window matrix hasn't been displayed, use the current row
9988 instead. Make sure that only those frame rows are updated for
9989 which there exists a corresponding enabled desired row.
9990
9991 2000-08-29 Miles Bader <miles@gnu.org>
9992
9993 * xfaces.c (default_face_vector): New function.
9994 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
9995
9996 2000-08-29 Gerd Moellmann <gerd@gnu.org>
9997
9998 * lread.c (openp): Prevent temporary string passed to
9999 Ffile_readable_p from being garbage collected.
10000
10001 2000-08-28 Dave Love <fx@gnu.org>
10002
10003 * keymap.c (store_in_keymap): Add `static' to declaration.
10004
10005 2000-08-28 Gerd Moellmann <gerd@gnu.org>
10006
10007 * emacs.c, callint.c, doc.c, editfns.c
10008 (toplevel) [HAVE_STRING_H]: Include string.h.
10009 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
10010 (index): Remove prototypes which might conflict with non-standard
10011 definitions of index/strchr.
10012
10013 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
10014 (rindex): Define only if !HAVE_RINDEX.
10015
10016 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
10017
10018 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
10019
10020 2000-08-28 Miles Bader <miles@gnu.org>
10021
10022 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
10023 made inconsistent by a font-related attribute in FROM.
10024 (merge_face_inheritance): Add function comment.
10025
10026 2000-08-28 Kenichi Handa <handa@etl.go.jp>
10027
10028 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
10029 the 4th arg (PREV_EVENT) Qt to suppress input method.
10030
10031 2000-08-27 Stefan Monnier <monnier@cs.yale.edu>
10032
10033 * regex.c: Indent cpp directives and remove parens after `defined'.
10034 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
10035 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
10036 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
10037 (re_compile_pattern): Use size_t for length.
10038 (init_syntax_once): Move to a better place.
10039 * regex.h: Merge changes from GNU libc. Indent cpp directives.
10040 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
10041
10042 * syntax.c (back_comment): Detect cases where a comment-starter is
10043 actually inside another comment as in: /* a // b */ c // d \n.
10044 Make it clear that `comstart_pos' is unused for nested comments.
10045
10046 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
10047 (KEYMAPP): New macro.
10048 (Fkeymap_parent, Fset_keymap_parent): Use it.
10049 (fix_submap_inheritance): Mark it static.
10050 (define_as_prefix, describe_buffer_bindings, describe_command)
10051 (describe_translation, describe_map): Complete prototypes.
10052
10053 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
10054
10055 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
10056 to better match the key-lookup behavior.
10057
10058 2000-08-27 Gerd Moellmann <gerd@gnu.org>
10059
10060 * xfaces.c (lface_fully_specified_p): Handle :inherit.
10061 (Finternal_set_lisp_face_attribute): Fix typo in error message.
10062
10063 2000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
10064
10065 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
10066 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
10067 (xterm.o): Depend on coding.h
10068
10069 2000-08-26 Kenichi Handa <handa@etl.go.jp>
10070
10071 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
10072 the corresponding '#endif'.
10073
10074 2000-08-26 Miles Bader <miles@gnu.org>
10075
10076 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
10077 * xfaces.c (QCinherit): New variable.
10078 (syms_of_xfaces): Initialize it.
10079 (LFACE_INHERIT): New macro.
10080 (Finternal_get_lisp_face_attribute)
10081 (merge_face_vector_with_property)
10082 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
10083 (check_lface_attrs): Allow new types of face height. Check
10084 inherit attribute.
10085 (CYCLE_CHECK): New macro.
10086 (merge_face_inheritance): New function.
10087 (merge_face_vectors): Merge inherited faces too. Add F and
10088 CYCLE_CHECK arguments.
10089 (merge_face_vector_with_property, Finternal_merge_in_global_face)
10090 (lookup_named_face, lookup_derived_face, realize_named_face)
10091 (face_at_string_position, face_at_buffer_position): Supply
10092 new F and CYCLE_CHECK arguments to merge_face_vectors.
10093 (merge_face_heights): New function.
10094 (merge_face_vectors, merge_face_vector_with_property)
10095 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
10096 handle relative face heights.
10097 (lface_same_font_attributes_p): Compare heights using EQ.
10098
10099 2000-08-26 Kenichi Handa <handa@etl.go.jp>
10100
10101 * charset.c (char_to_string): Check the character validity.
10102 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
10103
10104 2000-08-25 Stefan Monnier <monnier@cs.yale.edu>
10105
10106 * regex.c (PUSH_FAILURE_COUNT): New macro.
10107 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
10108 Handle popping of a register's or a counter's data.
10109 (POP_FAILURE_POINT): Use the new name.
10110 (re_match_2_internal): Push counter data on the stack for succeed_n,
10111 jump_n and set_number_at and remove misleading dead code in succeed_n.
10112
10113 2000-08-25 Gerd Moellmann <gerd@gnu.org>
10114
10115 * xdisp.c (redisplay_internal): If considering all windows on all
10116 frames, update the display for each frame as soon as possible,
10117 instead of first building all desired matrices for all frames, and
10118 then updating them all.
10119 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
10120
10121 2000-08-24 Gerd Moellmann <gerd@gnu.org>
10122
10123 * bytecode.c (mark_byte_stack): Add a comment.
10124
10125 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
10126 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
10127 a graphical frame.
10128
10129 2000-08-24 Kenichi Handa <handa@etl.go.jp>
10130
10131 * minibuf.c (do_completion): Always use compare-string, not
10132 string-equal because the latter doesn't pay attention to
10133 multibyteness of strings.
10134
10135 * process.c (create_process): Don't setup raw-text coding here.
10136 (Fopen_network_stream): Don't set coding->src_multibyte and
10137 coding->dst_multibyte here.
10138 (read_process_output): For process filter, return unibyte string
10139 if default-enable-multibyte-characters is nil.
10140 (send_process): If OBJECT is multibyte text, be sure to encoded it
10141 by the specified coding system for the process. Otherwise, setup
10142 raw-text coding.
10143 (init_process): Don't initialize default-process-coding-system here.
10144
10145 2000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
10146
10147 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
10148 <scroll-down-aggressively>: Likewise.
10149
10150 2000-08-23 Kenichi Handa <handa@etl.go.jp>
10151
10152 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
10153 zero. Set coding->produced_char correctly.
10154
10155 2000-08-22 Andrew Innes <andrewi@gnu.org>
10156
10157 * makefile.w32-in: New file.
10158
10159 * unexw32.c (unexec): Ignore old_name, and use the actual location
10160 of the current executable instead. Base new_name on this.
10161
10162 * w32proc.c (create_child): Remove reference to security
10163 descriptor, which isn't needed and doesn't compile with mingw32.
10164
10165 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10166 up dllimport attributes.
10167 (x_update_window_end): Update prototype.
10168
10169 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
10170 extern, which screws up dllimport attributes.
10171
10172 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10173 up dllimport attributes.
10174
10175 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
10176 screws up dllimport attributes.
10177
10178 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10179 up dllimport attributes.
10180 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
10181 screws up dllimport attributes.
10182
10183 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10184 up dllimport attributes.
10185
10186 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
10187 screws up dllimport attributes.
10188
10189 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
10190 screws up dllimport attributes.
10191
10192 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10193 up dllimport attributes.
10194
10195 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
10196 unnecessary extern, which screws up dllimport attributes.
10197 (main): Ditto.
10198
10199 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10200 up dllimport attributes.
10201
10202 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
10203 unnecessary extern, which screws up dllimport attributes.
10204
10205 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
10206 screws up dllimport attributes.
10207
10208 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10209 up dllimport attributes.
10210
10211 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
10212
10213 * w32bdf.c (search_file_line):
10214 (set_bdf_font_info):
10215 (seek_char):
10216 (w32_get_bdf_glyph):
10217 (w32_BDF_to_x_font): Fix compile warnings.
10218
10219 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
10220
10221 * w32select.c: Include keyboard.h before frame.h.
10222
10223 * w32fns.c (max): Define macro.
10224 (JOHAB_CHARSET): Define if not known.
10225 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
10226 (Fx_show_tip): Synch with X version.
10227
10228 * w32xfns.c: Include keyboard.h before frame.h.
10229
10230 * w32fns.c: Include keyboard.h before frame.h.
10231
10232 * w32term.c: Include keyboard.h before frame.h.
10233
10234 * fontset.c: Include keyboard.h before frame.h.
10235
10236 * w32inevt.c: Include keyboard.h before frame.h.
10237 (MOUSE_MOVED): Define if not known.
10238
10239 * minibuf.c: Include keyboard.h before frame.h.
10240
10241 * keyboard.c: Include keyboard.h before frame.h.
10242
10243 * indent.c: Include keyboard.h before frame.h.
10244
10245 * dispnew.c: Include keyboard.h before frame.h.
10246
10247 * buffer.c: Include keyboard.h before frame.h.
10248
10249 * alloc.c: Include keyboard.h before frame.h.
10250
10251 * print.c: Include keyboard.h before frame.h.
10252
10253 * process.c: Include keyboard.h before frame.h.
10254
10255 * scroll.c: Include keyboard.h before frame.h.
10256
10257 * sysdep.c: Include keyboard.h before frame.h.
10258
10259 * term.c: Include keyboard.h before frame.h.
10260
10261 * window.c: Include keyboard.h before frame.h.
10262
10263 * xdisp.c: Include keyboard.h before frame.h.
10264 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
10265
10266 * frame.c: Include keyboard.h before frame.h.
10267
10268 * w32heap.h: Undefine min, max.
10269
10270 * w32gui.h: Undefine min, max.
10271
10272 * unexw32.c: Change PUCHAR to PCHAR.
10273 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
10274 (relocate_offset):
10275 (get_section_info):
10276 (copy_executable_and_dump_data): Remove unnecessary static defs.
10277 (copy_executable_and_dump_data): Fix compile warnings.
10278
10279 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
10280
10281 * w32console.c (min): Define macro.
10282 (clear_frame, write_glyphs): Fix compile warning.
10283
10284 * w32proc.c (compare_env):
10285 (find_child_console): Fix compile warning.
10286
10287 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
10288 sys_errlist instead of _sys_errlist.
10289 (get_emacs_configuration_options): New function.
10290
10291 * s/ms-w32.h (sys_nerr): Provide default definition.
10292 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
10293 name with _ prepended.
10294 (NSIG): Define if not known.
10295 (get_emacs_configuration): Provide extern declaration.
10296 (get_emacs_configuration_options): Provide extern declaration.
10297 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
10298
10299 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
10300 (map_w32_filename):
10301 (read_unc_volume): Fix compile warning.
10302
10303 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
10304 definitions from being used.
10305
10306 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
10307
10308 * w32.c (unc_volume_file_attributes):
10309 (open_unc_volume): Make arg const.
10310
10311 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
10312 (read_input_waiting): Remove excess parameter.
10313
10314 * w32.c (init_environment): Call _access.
10315 (check_windows_init_file): Call _close.
10316 (init_user_info): Call _putenv.
10317 (init_environment): Call _putenv and _strdup.
10318 (init_ntproc): Reset volume info cache on startup.
10319
10320 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
10321 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
10322 cannot override the CRT malloc.
10323
10324 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
10325 (LINK_FLAGS): Append to original value of LINK_FLAGS.
10326
10327 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
10328 unless we are linking with a static CRT.
10329 (RVA_TO_PTR): Cast result to unsigned char*.
10330
10331 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
10332 (add_volume_info): Use xstrdup.
10333
10334 2000-08-22 Stefan Monnier <monnier@cs.yale.edu>
10335
10336 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
10337 (do_completion, Fminibuffer_complete_word): Use it.
10338 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
10339 var so it can take non-boolean values.
10340
10341 2000-08-21 Gerd Moellmann <gerd@gnu.org>
10342
10343 * editfns.c (find_field): Formatting changes.
10344 (toplevel): Some old-style function forward declarations
10345 changed to prototypes, some new protypes added, some functions
10346 made static.
10347
10348 * lisp.h (set_time_zone_rule): Add prototype.
10349 (use_dialog_box): External declaration.
10350
10351 * keyboard.c (gen_help_event): Add parameter SIZE.
10352 (kbd_buffer_events_waiting): Slightly rewritten.
10353 (clear_event): New function.
10354 (kbd_buffer_get_event): Use it, and clear the input_events of
10355 HELP_EVENTs.
10356 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
10357 don't fill the newly created array with nils.
10358 (toplevel): Convert some old-style function forward declarations
10359 to prototypes.
10360
10361 * keyboard.h (gen_help_event): Change prototype.
10362
10363 * xterm.c (XTread_socket): Change calls to gen_help_event.
10364
10365 * w32term.c (w32_read_socket): Change calls to gen_help_event.
10366
10367 * eval.c (Fmacroexpand): Doc fix.
10368
10369 2000-08-20 Jason Rumney <jasonr@gnu.org>
10370
10371 * w32term.h (x_display_info_for_display): Remove as this function
10372 does not exist on W32.
10373
10374 * w32term.c (help_echo_window): New variable.
10375 (syms_of_w32term): staticpro it.
10376 (note_mode_line_highlight): Set it.
10377 (XTextExtents16): Removed as there is no equivalent on W32.
10378 (x_compute_glyph_string_overhangs): Incomplete body removed, as
10379 the X way of doing this will not work for W32.
10380 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
10381 (x_draw_image_foreground): Avoid drawing outside of the clip area
10382 when image doesn't have a mask.
10383 (note_mouse_highlight): Process overlays in the right order of
10384 priority. Set help_echo_window.
10385 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
10386 because that's more visible for large images.
10387
10388 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
10389 name to single_keymap_panes.
10390 (w32_menu_show): Set wv->title when dealing with titles.
10391 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
10392
10393 2000-08-21 Miles Bader <miles@gnu.org>
10394
10395 * minibuf.c (do_completion): Try again if we rewrite the input
10396 string, but no completion was done, so that any completion message
10397 will be correct.
10398
10399 2000-08-20 Gerd Moellmann <gerd@gnu.org>
10400
10401 * xfaces.c (lface_equal_p): Compare strings differently.
10402 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
10403 (realize_tty_face): Use them.
10404 (syms_of_xfaces): Initialize new variables.
10405 (map_tty_color): New function, extracted from realize_tty_face.
10406 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
10407 foreground or background color, store the new color name in the
10408 realized face; previous code trying to do this had no effect.
10409 (realize_tty_face): Use map_tty_color.
10410 (Fclear_face_cache): Set face_change_count and ensure thorough
10411 redisplay.
10412
10413 2000-08-19 Gerd Moellmann <gerd@gnu.org>
10414
10415 * undo.c (record_first_change, record_marker_adjustment): Don't
10416 use XBUFFER on last_undo_buffer which might not be a buffer.
10417
10418 2000-08-18 Kenichi Handa <handa@etl.go.jp>
10419
10420 * coding.c (decode_coding_string): Set members consumed,
10421 consumed_char, produced, produced_char of *coding correctly. If
10422 decode_coding doesn't consume any byte, don't try anymore.
10423 (encode_coding_string): Likewise.
10424
10425 2000-08-18 Gerd Moellmann <gerd@gnu.org>
10426
10427 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
10428 conditional have void type, for Standard C compilers.
10429
10430 * xdisp.c (redisplay_internal): Compare windows for equality with
10431 EQ, instead of applying XWINDOW to something that might not
10432 be a window.
10433
10434 2000-08-18 Kenichi Handa <handa@etl.go.jp>
10435
10436 * fontset.c (Finternal_char_font): Search only the selected frame
10437 for a window of the current buffer.
10438
10439 2000-08-18 Gerd Moellmann <gerd@gnu.org>
10440
10441 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
10442 Lisp_Objects.
10443
10444 * keyboard.c (kbd_buffer_get_event): Handle the case that the
10445 second half of a HELP_EVENT is found at the start of kbd_buffer.
10446
10447 2000-08-18 Miles Bader <miles@gnu.org>
10448
10449 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
10450
10451 * editfns.c (save_restriction_save): Rewrite to use markers.
10452 (save_restriction_restore): Rewrite to understand new form of data
10453 saved by save_restriction_save.
10454 (Fsave_restriction): Remove cautionary note in doc-string.
10455
10456 2000-08-17 Gerd Moellmann <gerd@gnu.org>
10457
10458 * fileio.c (build_annotations): Add a comment explaining the
10459 return value of format-annotate-function. Replace a spurious call
10460 to Flength with a CONSP test. Call format-annotate-function with
10461 a fifth arg specifying how many times the function is been called
10462 in a row, to let it choose temporary buffers appropriately.
10463
10464 2000-08-17 Dave Love <fx@gnu.org>
10465
10466 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
10467 declare make_temp_name twice.
10468
10469 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
10470 (unreadpure): Give it an arg.
10471
10472 * unexalpha.c: Prototype fatal_unexec, mark_x,
10473 update_dynamic_symbols. Declare unexec as void.
10474
10475 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
10476 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
10477
10478 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
10479 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
10480
10481 * alloca.c: Use #error.
10482 [POINTER_TYPE]: Use it.
10483
10484 * eval.c (Fdefvar): Doc fix.
10485
10486 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
10487 INITIALIZE_INTERVAL.
10488
10489 * buffer.h: Avoid DECLARE_INTERVALS.
10490
10491 * config.in: Add size_t.
10492
10493 2000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
10494
10495 * w16select.c (set_clipboard_data): If there's not enough memory
10496 to put text into clipboard, return 1, as Fw16_set_clipboard_data
10497 expects. In case of other failures, return 3.
10498 (system_error_msg): New error message.
10499 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
10500 system_error_msg.
10501
10502 2000-08-16 Gerd Moellmann <gerd@gnu.org>
10503
10504 * term.c (write_glyphs): Also turn off inverse video after turning
10505 off other appearances in case TS_exit_attribute_mode is not equal
10506 to TS_end_standout_mode.
10507 (insert_glyphs): Turn inverse video on/off for each run of glyphs
10508 with the same face.
10509 (turn_off_face): Reset standout_mode only if
10510 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
10511 is equal to TS_end_standout_mode.
10512
10513 2000-08-16 Kenichi Handa <handa@etl.go.jp>
10514
10515 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
10516 sequence at the end of the source block.
10517
10518 * ccl.c (Fccl_program_p): Docstring modified.
10519 (Fccl_execute): Likewise.
10520 (Fccl_execute_on_string): Likewise.
10521
10522 2000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
10523
10524 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
10525
10526 2000-08-16 Kenichi Handa <handa@etl.go.jp>
10527
10528 The following changes are mainly to fix bugs of
10529 encode/decode-coding-string failing if encoding/decoding return
10530 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
10531 variable conversion_buffer.
10532
10533 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
10534 decrement dst_end to avoid buffer overflow in the later call of
10535 string_as_multibyte
10536
10537 * coding.h (conversion_buffer_size, conversion_buffer)
10538 (get_conversion_buffer): Extern deleted.
10539
10540 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
10541 (conversion_buffer, conversion_buffer_size): Variables deleted.
10542 (get_conversion_buffer): Function deleted.
10543 (struct conversion_buffer): New structure.
10544 (MAX_ALLOCA): New macro.
10545 (allocate_conversion_buffer): New macro.
10546 (extend_conversion_buffer, free_conversion_buffer): New functions.
10547 (ccl_coding_driver): Set coding->result.
10548 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
10549 this is the last block of source.
10550 (encode_coding): Likewise. Handle the source block as the last
10551 one only when the whole source text is consumed.
10552 (decode_coding_string): Handle the case that the output buffer is
10553 too small to decode the whole source text. Use
10554 allocate_conversion_buffer, extend_conversion_buffer and
10555 free_conversion_buffer, not get_conversion_buffer.
10556 (encode_coding_string): Likewise.
10557 (init_coding): Function deleted.
10558 (init_coding_once): Delete code to initialize conversion_buffer_size.
10559
10560 * emacs.c (main): Don't call init_coding.
10561
10562 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
10563
10564 * term.c (write_glyphs): Use a locally declared conversion_buffer.
10565 (insert_glyphs): Likewise.
10566
10567 * w32console.c (write_glyphs): Use a locally declared
10568 conversion_buffer.
10569
10570 2000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
10571
10572 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
10573 member of display_info is NULL.
10574
10575 2000-08-15 Gerd Moellmann <gerd@gnu.org>
10576
10577 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
10578
10579 * term.c (turn_off_face): Reset standout_mode when resetting
10580 appearances with capability `me'.
10581 (write_glyphs): Switch on inverse video before each face change.
10582
10583 2000-08-14 Dave Love <fx@gnu.org>
10584
10585 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
10586 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
10587 (lisp_free): Declare and make static.
10588
10589 * window.c: Fix embedded comment.
10590 (syms_of_window): Fix doc string.
10591
10592 2000-08-14 Gerd Moellmann <gerd@gnu.org>
10593
10594 * keymap.c (push_key_description): If C without modifiers is < 32,
10595 make sure to print `C-' before `M-', like in the manual.
10596
10597 2000-08-11 Gerd Moellmann <gerd@gnu.org>
10598
10599 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
10600 since they aren't relocated anymore.
10601 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
10602
10603 * xdisp.c (try_cursor_movement): Fix handling of cursor in
10604 partially visible line which is smaller than the window's height.
10605
10606 2000-08-11 Kenichi Handa <handa@etl.go.jp>
10607
10608 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
10609 the multibyte form of eight-bit-control characters.
10610 (Fccl_execute_on_string): Initialize ccl->multibyte.
10611
10612 * ccl.h (struct ccl_program): New member multibyte.
10613
10614 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
10615
10616 2000-08-11 Kenichi Handa <handa@etl.go.jp>
10617
10618 * regex.c (regex_compile) <normal_char>: Pay attention to
10619 multibyteness.
10620 (analyse_first) <exactn>: Setup fastmap correctly for
10621 eight-bit-control characters.
10622
10623 2000-08-11 Kenichi Handa <handa@etl.go.jp>
10624
10625 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
10626
10627 * keyboard.c (make_lispy_event): Handle the new event type
10628 multibyte_char_keystroke.
10629
10630 * xterm.c: Include coding.h.
10631 (XTread_socket): Work around a bug of XmbLookupString. If the
10632 input is from XIM, decode it according to the current locale. In
10633 that case, generate multibyte_char_keystroke events.
10634
10635 2000-08-11 Kenichi Handa <handa@etl.go.jp>
10636
10637 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
10638 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
10639
10640 2000-08-10 Gerd Moellmann <gerd@gnu.org>
10641
10642 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
10643 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
10644 (move_it_in_display_line_to): Record iterator's ascent and descent
10645 before producing glyphs, and restore them when we know the glyph
10646 doesn't fit on the line.
10647 (move_it_to): Restructured so that it's easier to debug. If
10648 moving to a vpos, and not moving to an x or character position,
10649 stop as soon as the specified vpos is reached; don't move further
10650 into that line because that might change the computed line height.
10651 (try_cursor_movement): New function, extracted from the cursor
10652 movement branch of redisplay_window. If ending on a partially
10653 visible line, don't try to scroll if the cursor line is taller
10654 than the window.
10655 (redisplay_window): Use try_cursor_movement.
10656
10657 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
10658 because that function doesn't cope with variable-height lines.
10659
10660 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
10661 box cursor because that's better visible for large images.
10662
10663 2000-08-10 Miles Bader <miles@gnu.org>
10664
10665 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
10666
10667 2000-08-10 Gerd Moellmann <gerd@gnu.org>
10668
10669 * xdisp.c (Vmessages_buffer_name): New variable.
10670 (message_dolog): Use it.
10671 (syms_of_xdisp): Initialize it.
10672
10673 2000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
10674
10675 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
10676 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
10677 redundant now that keyboard.h is included.
10678
10679 2000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
10680
10681 * keyboard.c (kbd_buffer_events_waiting): New function.
10682
10683 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
10684
10685 * msdos.c: Include keyboard.h.
10686 (XMenuActivate): Empty no_event events from the event buffer. If
10687 no events are left after that, call clear_input_pending.
10688 (mouse_clear_clicks): New function, code moved from mouse_init.
10689 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
10690 mouse driver to ``forget'' any past clicks.
10691
10692 * Makefile.in (msdos.o): Depend on keyboard.h.
10693
10694 2000-08-09 Gerd Moellmann <gerd@gnu.org>
10695
10696 * lisp.h (input_pending): External declaration.
10697
10698 * dispextern.h (Qredisplay_dont_pause): Declare extern.
10699
10700 * xdisp.c (echo_area_display): Display thoroughly if input is
10701 pending. Bind redisplay-dont-pause to t during the redisplay.
10702 in case input is pending.
10703
10704 * dispnew.c (Qredisplay_dont_pause): New variable.
10705 (syms_of_display): Initialize and staticpro it.
10706 (update_frame_1): Don't interrupt the display for pending input if
10707 redisplay_dont_pause is set.
10708
10709 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
10710
10711 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
10712
10713 2000-08-09 Miles Bader <miles@lsi.nec.co.jp>
10714
10715 * callproc.c (Fcall_process): Terminate the unwind-protect around
10716 the post-read-conversion of coding system.
10717
10718 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
10719 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
10720 * buffer.h (overlays_at): Update prototype.
10721 * xdisp.c (next_overlay_change): Update call to overlays_at.
10722 * xfaces.c (face_at_buffer_position): Likewise.
10723 * textprop.c (Fget_char_property): Likewise.
10724 * xterm.c (note_mouse_highlight): Likewise.
10725
10726 * minibuf.c (do_completion): Don't consider a simple change of
10727 case as `completion'.
10728
10729 2000-08-08 Ken Raeburn <raeburn@gnu.org>
10730
10731 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
10732 * undo.c (record_delete): Make sure last_point_position_buffer is
10733 a buffer before comparing pointers.
10734
10735 * coding.h (decode_coding_string): Declare.
10736
10737 * intervals.h (Fprevious_single_char_property_change): Declare.
10738
10739 * textprop.c (Fprevious_single_char_property_change): Don't do
10740 arithmetic directly on lisp objects.
10741
10742 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
10743
10744 * keyboard.h (menu_item_eval_property): Declare.
10745
10746 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
10747 reuse as buffer name, instead of recreating (and discarding) every
10748 time a message is logged.
10749 (with_echo_area_buffer): Make callback arg A2 a lisp object.
10750 (current_message_1, truncate_message_1, set_message_1)
10751 (display_echo_area_1, resize_mini_window_1): Signatures changed.
10752 (current_message, truncate_echo_area, display_echo_area)
10753 (resize_echo_area_axactly): Changed calls.
10754
10755 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
10756 Lisp object.
10757 (Ffind_coding_systems_region_internal): First argument to Fappend
10758 must be an integer, not a Lisp object.
10759
10760 2000-08-08 Kenichi Handa <handa@etl.go.jp>
10761
10762 * charset.c (Fchar_width): Doc fix.
10763
10764 2000-08-08 Gerd Moellmann <gerd@gnu.org>
10765
10766 * charset.c (Fstring_width): Doc fix.
10767
10768 2000-08-07 Gerd Moellmann <gerd@gnu.org>
10769
10770 * xdisp.c (start_display): When starting display on a continuation
10771 line, clear ascent and descent members of the iterator structure;
10772 the height of the continued line does not affect the height of the
10773 continuation line.
10774 (make_cursor_line_fully_visible): Do nothing if cursor is on a
10775 line taller than the window.
10776 (redisplay_window) <forced window start>: Handle case that the
10777 middle of the window is not found in any row.
10778 (dump_glyph_row): Show more information.
10779 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
10780 first text line in a glyph matrix.
10781
10782 * xterm.c (x_draw_image_foreground): Avoid drawing outside
10783 of the clip area when image doesn't have a mask.
10784
10785 * fns.c (sweep_weak_table): Fix survival conditions for
10786 key-or-value and key-and-value weakness.
10787
10788 * .gdbinit (xhashtable): New command.
10789
10790 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
10791 tables out of the list of all weak hash tables.
10792
10793 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
10794 a new buffer is created, make sure echo_area_buffer[] references
10795 the new buffer.
10796
10797 2000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
10798
10799 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
10800 the doc string.
10801
10802 2000-08-07 Kenichi Handa <handa@etl.go.jp>
10803
10804 * syntax.c (skip_chars): Fix previous change. Make the handling
10805 of unibyte string consistent with that of regex search.
10806
10807 2000-08-05 Gerd Moellmann <gerd@gnu.org>
10808
10809 * xmenu.c (popup_get_selection): Use xfree instead of free.
10810
10811 * fileio.c (Finsert_file_contents): Use xfree instead of free.
10812
10813 * editfns.c (Ftranspose_regions): Use xfree instead of free.
10814
10815 * callproc.c (child_setup): Use xfree instead of free.
10816
10817 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
10818 instead of malloc.
10819 (run_mac_command, closedir): Use `xfree' instead of `free'.
10820
10821 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
10822
10823 * eval.c (error): Use xfree instead of free.
10824
10825 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
10826
10827 * fns.c: Replace `illegal' with `invalid'.
10828 (Fmake_hash_table, make_hash_table): Allow table size of 0.
10829
10830 2000-08-05 Kenichi Handa <handa@etl.go.jp>
10831
10832 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
10833 conversion.
10834
10835 2000-08-04 Noah Friedman <friedman@splode.com>
10836
10837 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
10838 docstring.
10839
10840 2000-08-04 Gerd Moellmann <gerd@gnu.org>
10841
10842 * syntax.c (skip_chars): Fix typo in error message.
10843
10844 2000-08-04 Andreas Schwab <schwab@suse.de>
10845
10846 * m/ia64.h: Moved from s/ia64.h.
10847
10848 2000-08-04 Kenichi Handa <handa@etl.go.jp>
10849
10850 * process.c (read_process_output): Big simplification. Handle
10851 composition and post-read-conversion of coding system correctly.
10852 (send_process): Handle composition correctly.
10853
10854 * callproc.c (Fcall_process): Handle post-read-conversion of
10855 coding system if any.
10856
10857 * coding.c (decode_coding_iso2022): More strict check for handling
10858 single shifting.
10859 (coding_restore_composition): Pay attention to the case that
10860 cmp_data is not set properly (because of invalid code in the
10861 source text).
10862 (run_pre_post_conversion_on_str): Include text properties in the
10863 resulting string.
10864 (decode_coding_string): Set members of coding correctly.
10865
10866 2000-08-03 Gerd Moellmann <gerd@gnu.org>
10867
10868 * s/ia64.h: New file.
10869
10870 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
10871 Use NULL instead of 0 at the end of variable argument list of
10872 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
10873 sizeof (int) < sizeof (void *).
10874
10875 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
10876 of variable argument lists of XtVaGetValues and XtVaSetValues.
10877
10878 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
10879 variable argument lists of XtVaGetValues and XtVaSetValues.
10880
10881 2000-08-02 Gerd Moellmann <gerd@gnu.org>
10882
10883 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
10884 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
10885
10886 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
10887 prototype.
10888
10889 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
10890 in call to Fsingle_key_description.
10891
10892 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
10893 Callers changed.
10894
10895 2000-08-02 Colin Walters <walters@cis.ohio-state.edu>
10896
10897 * window.c (display_buffer_reuse_frames): New variable.
10898 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
10899 frames displaying BUFFER.
10900 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
10901
10902 2000-08-01 Miles Bader <miles@gnu.org>
10903
10904 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
10905 when to constrain NEW_POS (they were pretty screwed up before).
10906
10907 2000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
10908
10909 * msdos.c (run_msdos_command): Save and restore the master
10910 environment, for the case that child_setup signals an error.
10911 When mirroring slashes in DOS shell commands, don't fail when
10912 argv[2] has embedded blanks.
10913 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
10914 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
10915 (dos_ttraw): Call mouse_setup_buttons.
10916
10917 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
10918 using alloca; free it after run_msdos_command returns.
10919
10920 2000-07-27 Dave Love <fx@gnu.org>
10921
10922 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
10923 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
10924
10925 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
10926
10927 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
10928
10929 * editfns.c (lisp_time_argument): Fix last change.
10930
10931 2000-07-27 Gerd Moellmann <gerd@gnu.org>
10932
10933 * fns.c (Fdelete): Make it work on vectors and strings in addition
10934 to lists.
10935
10936 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
10937 (syms_of_fns): Initialize new variables.
10938 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
10939 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
10940 weakness, with t meaning the same as `key-and-value'.
10941
10942 2000-07-27 Kenichi Handa <handa@etl.go.jp>
10943
10944 * coding.h (struct coding_system): Member safe_charset deleted.
10945
10946 * coding.c (Qsafe_charsets): This variable deleted.
10947 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
10948 New variables.
10949 (coding_safe_chars): New function.
10950 (CODING_SAFE_CHAR_P): New macro.
10951 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
10952 checking safe_charsets member of the coding system. Caller changed.
10953 (detect_coding_iso2022): New local variable safe_chars.
10954 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
10955 safe_charsets member of the coding system.
10956 (decode_coding_iso2022): New local variable safe_chars.
10957 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
10958 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
10959 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
10960 (ENCODE_UNSAFE_CHARACTER): New macro.
10961 (encode_coding_iso2022): New local variable safe_chars. Check
10962 unsafe chars.
10963 (setup_coding_system): Delete the code to initialize
10964 coding->safe_charses
10965 (intersection, find_safe_codings): New functions.
10966 (Ffind_coding_systems_region_internal): New function.
10967 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
10968 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
10969 variable and initialize it.
10970
10971 * fns.c (char_table_ref_and_index): New function.
10972
10973 * lisp.h (char_table_ref_and_index): Add prototype.
10974
10975 2000-07-26 Sam Steingold <sds@gnu.org>
10976
10977 * editfns.c (lisp_time_argument): Added third argument `usec'.
10978 (Ffloat_time): New built-in Lisp function.
10979
10980 2000-07-26 Gerd Moellmann <gerd@gnu.org>
10981
10982 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
10983 for the character code.
10984
10985 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
10986 GNU/Linux.
10987
10988 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
10989 if called for a popup menu.
10990 (xmenu_show): Store help string in widget values.
10991
10992 2000-07-26 Dave Love <fx@gnu.org>
10993
10994 * syswait.h: Move some definitions.
10995 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
10996 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
10997 perspicuous definitions.
10998 (WTERMSIG): Fix bit pattern used.
10999
11000 2000-07-26 Kenichi Handa <handa@etl.go.jp>
11001
11002 * print.c (print_object): If vector printing is truncated, print
11003 "..." to indicate it as well as the case of list printing.
11004
11005 2000-07-25 Gerd Moellmann <gerd@gnu.org>
11006
11007 * xdisp.c (next_element_from_display_vector): Improve comments.
11008
11009 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
11010 for the character code, and the rest for the face id as in 20.x.
11011 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
11012
11013 * window.c (window_display_table): Cleaned up.
11014
11015 * syntax.c (Fforward_word): Add last arg nil in call of
11016 Fconstrain_to_field.
11017
11018 2000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
11019
11020 * fileio.c (Frename_file) [DOS_NT]: If the file names are
11021 identical but for the letter-case, don't call
11022 barf_or_query_if_file_exists.
11023
11024 2000-07-25 Miles Bader <miles@gnu.org>
11025
11026 * editfns.c (find_field): Honor special `boundary' fields.
11027 (Qboundary): New variables.
11028 (syms_of_editfns): Initialize Qboundary.
11029 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
11030 Use scan_buffer instead of find_before_next_newline, because it
11031 allows us to detect the boundary case where there's a newline at
11032 the search limit.
11033 * lisp.h (Fconstrain_to_field): Update external declaration.
11034
11035 2000-07-24 Gerd Moellmann <gerd@gnu.org>
11036
11037 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
11038 if that is nil.
11039
11040 2000-07-24 Dave Love <fx@gnu.org>
11041
11042 * s/sunos4-0.h, s/sol2.h:
11043 (LIBS_TERMCAP): Move from m/sparc.h.
11044
11045 * m/sparc.h (TERMINFO): Moved to system files (probably only
11046 relevant for sunos4 judging by its vintage).
11047 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
11048 __arch64__.
11049
11050 2000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
11051
11052 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
11053 name to single_keymap_panes.
11054
11055 2000-07-24 Andreas Schwab <schwab@suse.de>
11056
11057 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
11058
11059 2000-07-24 Gerd Moellmann <gerd@gnu.org>
11060
11061 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
11062 parameters instead of using int parameters. Expect FN to accept
11063 EMACS_INT parameters.
11064 (display_echo_area, resize_echo_area_axactly, current_message)
11065 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
11066 with new argument list.
11067 (resize_mini_window_1): New callback function.
11068 (current_message_1, truncate_message_1, set_message_1): Change
11069 parameter lists to the new format expected by with_echo_area_buffer.
11070
11071 2000-07-24 Kenichi Handa <handa@etl.go.jp>
11072
11073 * fontset.c (fontset_ref): Remove INLINE declaration.
11074 (fontset_ref_via_base): Likewise.
11075 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
11076 to downcase.
11077
11078 2000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
11079
11080 * msdos.c (IT_note_mouse_highlight): Process overlays in the
11081 correct order of priority. If help echo was found in an overlay,
11082 use that overlay as the object in which the help echo was found.
11083
11084 2000-07-22 Miles Bader <miles@gnu.org>
11085
11086 * textprop.c (Fprevious_single_char_property_change): The initial
11087 property value should be from the position preceding POSITION, not
11088 following it.
11089
11090 2000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
11091
11092 * coding.c (syms_of_coding): Doc fix for
11093 inhibit-iso-escape-detection.
11094
11095 2000-07-21 Gerd Moellmann <gerd@gnu.org>
11096
11097 * xterm.c (note_mouse_highlight): Process overlays in the right
11098 order of priority.
11099
11100 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
11101
11102 * xterm.c (note_mouse_highlight): If help-echo was found in an
11103 overlay, use that overlay as the object in which the help was found.
11104
11105 * window.c (foreach_window_1): Fix typo reversing an if-condition.
11106
11107 * window.c (foreach_window): Instead of a fake variable argument
11108 list, take one USER_DATA argument.
11109 (foreach_window_1): Likewise, and call callback functions with two
11110 args, the window and USER_DATA.
11111 (struct check_window_data): New struct.
11112 (check_window_containing): Use it.
11113 (window_from_coordinates): Set up a struct check_window_data for
11114 foreach_window.
11115 (add_window_to_list, freeze_window_start): Change parameters
11116 according to new calling convention.
11117
11118 * window.h (foreach_window): Change prototype.
11119
11120 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
11121
11122 2000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
11123
11124 * xmenu.c (menu_help_callback): Call show_help_echo with
11125 additional arguments OBJECT and POS.
11126
11127 2000-07-21 Kenichi Handa <handa@etl.go.jp>
11128
11129 * data.c (Faset): Allow storing any multibyte character in a
11130 string. Convert unibyte string to multibyte if necessary.
11131
11132 * xfns.c (x_encode_text): New function.
11133 (x_set_name): Use x_encode_text.
11134 (x_set_title): Likewise.
11135
11136 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
11137
11138 * xterm.h (x_encode_text): Add prototype.
11139
11140 2000-07-20 Dave Love <fx@gnu.org>
11141
11142 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
11143 xfree, not free.
11144
11145 2000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
11146
11147 * msdos.c (help_echo_window): New variable.
11148 (syms_of_msdos): Initialize and staticpro it.
11149 (IT_note_mode_line_highlight): Set help_echo_window.
11150 (IT_note_mouse_highlight): Ditto.
11151 (dos_rawgetc): Store help_echo_window in the second event produced
11152 for HELP_EVENTs.
11153
11154 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
11155 Record the object that generated the help echo and the position of
11156 that object in help_echo_object and help_echo_pos. Record that
11157 some glyphs in a row are displayed in mouse-face.
11158 (IT_update_begin): Don't clear mouse highlight unless one of the
11159 enabled glyph rows is marked as being displayed in mouse-face.
11160 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
11161 and position recorded in help_echo_object and help_echo_pos to the
11162 event queue.
11163 (IT_menu_display): Accept a new argument PN: the pane number of
11164 the current menu pane. Record the pane number and the item
11165 number of the item which has associated help string.
11166 (XMenuActivate): Update the prototype for help_callback in
11167 function declaration. Call IT_menu_display with the current menu
11168 pane number as an additional argument. Call help_callback with
11169 two additional arguments: the pane number and the item number of
11170 the menu item associated with the help text.
11171 (help_echo_object, help_echo_pos): New variables.
11172 (syms_of_msdos): Initialize them and staticpro help_echo_object.
11173
11174 * msdos.h (XMenuActivate): Update prototype.
11175
11176 2000-07-19 Gerd Moellmann <gerd@gnu.org>
11177
11178 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
11179 Add some more prototypes.
11180
11181 * xterm.c, xterm.h: Add some more prototypes.
11182
11183 * lisp.h (Fnext_single_char_property_change): Add prototype.
11184
11185 * dispnew.c (direct_output_for_insert): Remove confusing
11186 outer local variable mouse_face_overwritten_p.
11187 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
11188
11189 * alloc.c (allocate_string_data): Don't copy old string contents.
11190
11191 2000-07-19 Kenichi Handa <handa@etl.go.jp>
11192
11193 * coding.c (code_convert_region): Delete text properties before
11194 shrinking the conversion region.
11195
11196 2000-07-18 Gerd Moellmann <gerd@gnu.org>
11197
11198 * dispnew.c (update_text_area): Write the whole row if it
11199 has mouse-face in it.
11200
11201 * xfaces.c (face-alternative-font-family-alist): Remove
11202 DEFVAR_LISP; staticpro instead.
11203
11204 * xmenu.c (menu_help_callback): Call show_help_echo with
11205 new arguments.
11206
11207 * keyboard.c (show_help_echo): Add parameter WINDOW.
11208 (read_char): Call show_help_echo with window extracted from Lisp
11209 help event.
11210 (gen_help_event): Add parameter WINDOW.
11211
11212 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
11213
11214 * xterm.c (help_echo_window): New variable.
11215 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
11216 (XTread_socket): Pass help_echo_window to gen_help_event.
11217 (syms_of_xterm): Initialize and staticpro help_echo_window.
11218
11219 2000-07-18 Dave Love <fx@gnu.org>
11220
11221 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
11222
11223 2000-07-18 Gerd Moellmann <gerd@gnu.org>
11224
11225 * alloc.c (allocate_string_data): If string had already data
11226 assigned, copy old contents to new string data.
11227
11228 * coding.c (syms_of_coding): Fix typo in spelling of variable
11229 `inhibit-iso-escape-detection'.
11230
11231 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
11232
11233 * Makefile.in: Add dependencies on dispextern.h.
11234 (alloca.o): Don't define malloc and define EMACS_FREE instead of
11235 `free'; both can conflict with system header files.
11236
11237 2000-07-18 Kenichi Handa <handa@etl.go.jp>
11238
11239 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
11240 undefined.
11241
11242 2000-07-18 Dave Love <fx@gnu.org>
11243
11244 * window.c (Fwindow_list): Declare arg `window'.
11245
11246 2000-07-18 Kenichi Handa <handa@etl.go.jp>
11247
11248 * coding.c (setup_coding_system): Don't override the explicitly
11249 specified designations.
11250
11251 2000-07-15 Miles Bader <miles@gnu.org>
11252
11253 * editfns.c (char_property_eq, char_property_stickiness): Renamed
11254 from `text_property_eq' and `text_property_stickiness', respectively.
11255 (find_field, Fconstrain_to_field, char_property_eq)
11256 (char_property_stickiness): Changed to call char-property functions
11257 instead of text-property-only ones.
11258
11259 * textprop.c (Fnext_single_char_property_change): Made a subr (was
11260 `next_single_char_property_change'). Do more error checking, and
11261 cleanup limit behavior.
11262 (Fprevious_single_char_property_change): New function.
11263 (syms_of_textprop): Initialize new subrs.
11264
11265 * xdisp.c (display_prop_end, invisible_text_between_p):
11266 Call Fnext_single_char_property_change instead of
11267 next_single_char_property_change.
11268
11269 2000-07-15 Jason Rumney <jasonr@gnu.org>
11270
11271 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
11272 after menu is finished with.
11273 (add_menu_item): Only consider wv->title as a menu title.
11274 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
11275
11276 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
11277 null title.
11278 (FONT_REGEXP): Remove unused macro, and its sub-components.
11279 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
11280
11281 * w32term.c (help_echo_object, help_echo_pos): New variables.
11282 (note_mode_line_highlight): Store additional information about the
11283 help-echo in help_echo_object and help_echo_pos. Check both
11284 `local-map' and `keymap' properties for changing the cursor
11285 (note_mouse_highlight): Store additional information about the
11286 help-echo in help_echo_object and help_echo_pos.
11287 (note_tool_bar_highlight): Set help_echo_object to nil and
11288 help_echo_pos to -1.
11289 (w32_read_socket): Use gen_help_event instead of filling
11290 input_events manually.
11291 (syms_of_w32term): Staticpro help_echo_object.
11292 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
11293 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
11294 (x_clear_mouse_face): New function.
11295 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
11296 (x_update_window_begin): No need to turn off the mouse
11297 highlight here.
11298 (show_mouse_face): Set the mouse_face_p flag of glyph rows
11299 depending on whether they contain glyphs highlighted in mouse-face.
11300 (x_fill_stretch_glyph_string): Consume runs of stretch
11301 glyphs instead of a single one.
11302 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
11303 with new argument list.
11304 (x_set_glyph_string_gc): Make sure the face's GC is valid.
11305 (x_append_glyph, x_append_composite_glyph)
11306 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
11307 changes in struct glyph starting 1999-12-27. See comments for
11308 xterm.c on 2000-07-05.
11309
11310 2000-07-14 Sam Steingold <sds@gnu.org>
11311
11312 * xfaces.c (realize_x_face): Fix the last patch:
11313 check `default_face' before dereferencing.
11314
11315 2000-07-14 Dave Love <fx@gnu.org>
11316
11317 * syntax.c (back_comment): Add null default in switch (for pcc).
11318
11319 2000-07-14 Kenichi Handa <handa@etl.go.jp>
11320
11321 * xfaces.c (realize_x_face): Make fontset using the base of the
11322 default_face's fontset, not using the default fontset.
11323
11324 * coding.c (inhibit_iso_escape_detection): New variable.
11325 (syms_of_coding): Make it a Lisp variable.
11326 (detect_coding_iso2022): If inhibit_iso_escape_detection is
11327 nonzero, ignore ISO2022's escape sequence.
11328
11329 2000-07-14 Gerd Moellmann <gerd@gnu.org>
11330
11331 * alloca.c (malloc) [emacs]: Define as xmalloc.
11332
11333 * xfns.c (Fx_show_tip): If frame parameters contain a position,
11334 use that instead of the mouse position. Add parameters DX and DY.
11335
11336 * dispextern.h (Fx_show_tip): Adjust number of parameters
11337 in prototype.
11338
11339 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
11340 if HELP is a function, call it with OBJECT and POS as parameters
11341 to get the help to display.
11342 (gen_help_event, kbd_buffer_store_help_event): New functions.
11343 (kbd_buffer_get_event): Construct the Lisp help-event differently.
11344 (read_char): Call show_help_echo with new parameters.
11345
11346 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
11347 Add prototypes.
11348
11349 * xterm.c (help_echo_object, help_echo_pos): New variables.
11350 (note_mode_line_highlight): Store additional information about the
11351 help-echo in help_echo_object and help_echo_pos. Check both
11352 `local-map' and `keymap' properties for changing the cursor
11353 (note_mouse_highlight): Store additional information about the
11354 help-echo in help_echo_object and help_echo_pos.
11355 (note_tool_bar_highlight): Set help_echo_object to nil and
11356 help_echo_pos to -1.
11357 (XTread_socket): Use gen_help_event instead of filling
11358 input_events manually.
11359 (syms_of_xterm): Staticpro help_echo_object.
11360
11361 * xmenu.c (menu_highlight_callback): Use
11362 kbd_buffer_store_help_event instead of setting up and input_event
11363 structure manually.
11364
11365 * xdisp.c (eval_form): GCPRO argument sexpr.
11366 (call_function): New function.
11367 (handle_single_display_prop): Use call_function and FUNCTIONP
11368 instead of checking whether if font_height is a symbol and
11369 using eval_form.
11370
11371 * eval.c (internal_condition_case_2): New function.
11372
11373 * lisp.h (FUNCTIONP): New macro.
11374 (internal_condition_case_2, call_function): Add prototypes.
11375
11376 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
11377 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
11378 Always set `arg' member of input_events.
11379 (construct_menu_click): Unused function removed.
11380
11381 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
11382
11383 * w32term.c (construct_mouse_click, construct_mouse_wheel)
11384 (construct_drag_n_drop, x_scroll_bar_handle_click)
11385 (w32_read_socket): Always set `arg' member of input_events.
11386
11387 * keyboard.c (show_help_echo): Use eval_form. Add comment.
11388
11389 * lisp.h (eval_form): Add prototype.
11390
11391 * xdisp.c (eval_form): Make it externally visible.
11392
11393 2000-07-13 Gerd Moellmann <gerd@gnu.org>
11394
11395 * xterm.c (x_handle_tool_bar_click): Store the frame in the
11396 frame_or_window slot of TOOL_BAR_EVENT input events instead of
11397 consing. For prefix events, store the frame in the `arg' slot of
11398 the event, otherwise store the key there.
11399 (XTread_socket): Instead of consing, use the frame_or_window slot
11400 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
11401
11402 * xmenu.c (menu_highlight_callback): Store help string in the
11403 `arg' member of the input event; don't cons.
11404 (menubar_selection_callback): Use the `arg' slot of input events
11405 to queue additional information, instead of consing.
11406
11407 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
11408
11409 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
11410 TOOL_BAR_EVENTs.
11411 (w32_read_socket): Adapt to changes in HELP_EVENTs.
11412
11413 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
11414 input events to queue additional information, instead of consing.
11415
11416 * keyboard.c (kbd_buffer_gcpro): Renamed from
11417 kbd_buffer_frame_or_window. Now used for all Lisp objects
11418 referenced from the input queue.
11419 (kbd_buffer_store_event): Always use structure assignment for
11420 copying input events. Record all Lisp objects referenced from
11421 events in kbd_buffer_gcpro.
11422 (kbd_buffer_get_event): Construct Lisp `help-echo' events
11423 differently from input events. Test for prefix menu_bar_events
11424 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
11425 event in kbd_buffer_gcpro to nil.
11426 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
11427 frame_or_window is equal to its arg member as prefix events.
11428 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
11429 used by an input event to nil.
11430 (init_keyboard): Use two times the size of the input queue
11431 for kbd_buffer_gcpro.
11432 (syms_of_keyboard): Likewise.
11433
11434 * emacs.c (handle_USR2_signal, handle_USR1_signal):
11435 Use USER_SIGNAL_EVENT.
11436
11437 * termhooks.h (struct input_event): Add member `arg'.
11438 (MENU_BAR_EVENT): Renamed from menu_bar_event.
11439 (USER_SIGNAL_EVENT): Renamed from user_signal.
11440
11441 * xfaces.c (ASET): Remove definition.
11442
11443 * lisp.h (AREF, ASET, ASIZE): New macros.
11444
11445 * fontset.c (AREF, ASIZE): Remove definitions.
11446
11447 * fns.c (AREF): Remove definition.
11448
11449 * composite.c (AREF): Remove definition.
11450
11451 2000-07-12 Gerd Moellmann <gerd@gnu.org>
11452
11453 * dispnew.c (redraw_overlapped_rows): Add missing local.
11454 (scrolling_window): Remove debug code.
11455
11456 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
11457 Before scrolling, turn off a mouse-highlight in the window
11458 being scrolled.
11459
11460 * xterm.c (x_update_window_end): Add parameter
11461 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
11462 redisplay in XTframe_up_to_date.
11463 (x_clear_mouse_face): New function.
11464 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
11465
11466 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
11467 current glyph row.
11468 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
11469 it when any row is written to that contains glyphs highlighted in
11470 mouse-face.
11471 (update_window): Call the window update end hook with new
11472 parameter MOUSE_FACE_OVERWRITTEN_P.
11473 (direct_output_for_insert): Give up if row contains mouse-face.
11474
11475 * dispextern.h (struct redisplay_interface): Add parameter
11476 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
11477 (clear_mouse_face): New function pointer member.
11478
11479 2000-07-11 Stefan Monnier <monnier@cs.yale.edu>
11480
11481 * syntax.c (back_comment): Use one switch rather than a few `if's.
11482 Obey open_paren_in_column_0_is_defun_start.
11483 When reverting to the `slow' method, try to nicely handle the case
11484 of nested comments by checking that the comment-starter we found
11485 does indeed match the comment-ender.
11486 (scan_sexps_forward, scan_sexps_forward):
11487 Ignore excessive opening parenthesis rather than throwing an error.
11488
11489 2000-07-11 Gerd Moellmann <gerd@gnu.org>
11490
11491 * doc.c (Fsubstitute_command_keys): Handle case that a GC
11492 in Fwhere_is_internal or get_keymap_1 relocates string contents.
11493
11494 * dispnew.c (direct_output_forward_char): Give up if currently
11495 displaying a message instead of the minibuffer contents.
11496
11497 * xterm.c (x_update_window_begin): No need to turn off the mouse
11498 highlight here.
11499 (show_mouse_face): Set the mouse_face_p flag of glyph rows
11500 depending on whether they contain glyphs highlighted in mouse-face.
11501
11502 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
11503 compare the mouse_face_p flags of both rows.
11504
11505 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
11506
11507 2000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
11508
11509 * keyboard.c (show_help_echo): Accept additional parameter
11510 ok_to_overwrite_keystroke_echo.
11511 (read_char): Call show_help_echo with a zero
11512 ok_to_overwrite_keystroke_echo argument.
11513 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
11514 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
11515 ok_to_overwrite_keystroke_echo argument.
11516 * w32menu.c (w32_menu_display_help): Call show_help_echo with
11517 non-zero ok_to_overwrite_keystroke_echo argument.
11518
11519 2000-07-10 Gerd Moellmann <gerd@gnu.org>
11520
11521 * xdisp.c (try_window_id): If changes are all below what is
11522 displayed in the window, and point is in the window, we still
11523 might have to find point on the display.
11524
11525 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
11526 glyphs instead of a single one.
11527 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
11528 with new argument list.
11529 (x_set_glyph_string_gc): Make sure the face's GC is valid.
11530
11531 * keymap.c (get_keymap_1): Add comment that this function can GC.
11532 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
11533 comment that functions can GC.
11534 (Fset_keymap_parent): GCPRO arg KEYMAP.
11535
11536 2000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
11537
11538 * msdos.c (XMenuActivate): After exiting the menu, restore the
11539 echo area message and erase it.
11540
11541 2000-07-10 Kenichi Handa <handa@etl.go.jp>
11542
11543 * fontset.c (Ffontset_info): Make the return value more compatible
11544 with that of Emacs 20.
11545
11546 2000-07-07 Gerd Moellmann <gerd@gnu.org>
11547
11548 * eval.c (Fsignal): Handle case that backtrace_list is null.
11549
11550 2000-07-07 Kenichi Handa <handa@etl.go.jp>
11551
11552 * ccl.c (Fccl_execute): Typo fixed.
11553
11554 2000-07-06 Gerd Moellmann <gerd@gnu.org>
11555
11556 * window.c (window_loop): Add missing gcpro1 local variable.
11557
11558 * window.c (Fwindow_list): Reverse list at the end.
11559 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
11560 means allow windows on OWINDOW's frame, only.
11561 (window_loop): Simplified; use Fwindow_list.
11562
11563 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
11564
11565 2000-07-05 Gerd Moellmann <gerd@gnu.org>
11566
11567 * xterm.c (XTread_socket): Increment handling_signal at the start,
11568 decrement it at the end.
11569
11570 * eval.c (handling_signal): New variable.
11571 (Fsignal): Abort if handling_signal is non-zero.
11572
11573 * lisp.h (handling_signal): External declaration.
11574
11575 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
11576
11577 2000-07-05 Ken Raeburn <raeburn@gnu.org>
11578
11579 Sound support for NetBSD through "Linux emulation" support:
11580 * config.in (HAVE_SOUNDCARD_H): Undef.
11581 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
11582 * Makefile.in (LIBSOUND): New variable.
11583 (LIBES): Include it.
11584 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
11585 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
11586 (vox_open): Use DEFAULT_SOUND_DEVICE.
11587 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
11588
11589 2000-07-05 Gerd Moellmann <gerd@gnu.org>
11590
11591 * print.c (print_error_message): If Vsignaling_function is set,
11592 show it in *Messages*.
11593
11594 * lisp.h (Vsignaling_function): External declaration.
11595
11596 * eval.c (Vsignaling_function): New variable.
11597 (Fsignal): Compute it.
11598 (syms_of_eval): Staticpro it.
11599
11600 2000-07-05 Dave Love <fx@gnu.org>
11601
11602 * syswait.h: Use the autoconf recommended approach. Old code
11603 #if'd out in case we need to revert.
11604
11605 * config.in (HAVE_SYS_WAIT_H): Added.
11606
11607 2000-07-05 Andrew Innes <andrewi@gnu.org>
11608
11609 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
11610 when non-NULL instead of __morecore, to take account of buffer
11611 memory. This also solves a problem with spurious memory warnings
11612 on Windows.
11613
11614 * ralloc.c: Make real_morecore non-static.
11615
11616 * eval.c (internal_condition_case): Comment out abort if
11617 interrupt_input_blocked is not zero.
11618
11619 * makefile.nt: Add support for `bootstrap' and related targets.
11620 Include minimal debug info in emacs.exe in release build.
11621 Remove all dependencies on lisp.h, and fixup some others.
11622
11623 * w32.c (init_environment): Install code from 20.7 for providing
11624 default values for environment variables, based on the
11625 executable's own location.
11626 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
11627 (sys_socket): Install socket inheritance bug fix from 20.7.
11628
11629 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
11630 here via blockinput.h).
11631
11632 2000-07-05 Stefan Monnier <monnier@cs.yale.edu>
11633
11634 * w32menu.c (w32_menu_display_help):
11635 * xmenu.c (menu_help_callback): Use show_help_echo.
11636
11637 * keyboard.h (show_help_echo): Declare.
11638
11639 * keyboard.c (show_help_echo): New function, extracted from read_char.
11640 Feval its `msg' argument if it's a cons cell.
11641 (read_char): Use it.
11642 (follow_key): Pass `autoload' to get_keyelt.
11643
11644 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
11645 (note_tool_bar_highlight, XTread_socket):
11646 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
11647 (dos_rawgetc):
11648 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
11649 (note_tool_bar_highlight, w32_read_socket):
11650 Do not gratuitously ignore non-string `help-echo' properties.
11651
11652 2000-07-05 Gerd Moellmann <gerd@gnu.org>
11653
11654 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
11655
11656 * window.c (delete_all_subwindows): Reset Vwindow_list.
11657
11658 * xterm.c (x_append_glyph, x_append_composite_glyph)
11659 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
11660 changes in struct glyph starting 1999-12-27. Some bit-fields of
11661 struct glyph were not set, which made glyphs unequal when compared
11662 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
11663 effects were the result. This also depended on the contents of
11664 memory returned by xmalloc. If flickering happens again, activate
11665 the code in clear_glyph_row that's in #if 0. If the flickering is
11666 gone with that, chances are that it is caused by something similar.
11667
11668 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
11669
11670 * dispextern.h: Add some comments.
11671
11672 * window.c (add_window_to_list): Add parameter LIST.
11673 (window_list): Order list so that, for each frame, windows are
11674 in canonical order, and so that frames appear in the list in
11675 the order given by Vframe_list.
11676 (next_window): Reverse the handling of NEXT_P.
11677
11678 2000-07-04 Gerd Moellmann <gerd@gnu.org>
11679
11680 * window.c (Vwindow_list): New variable.
11681 (make_window, delete_window): Set Vwindow_list to nil.
11682 (check_window_containing): New function.
11683 (window_from_coordinates): Rewritten.
11684 (add_window_to_list, window_list, candidate_window_p)
11685 (decode_next_window_args, next_window): New functions.
11686 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
11687 (Fwindow_list): New function.
11688 (Fother_window): Cleaned up.
11689 (foreach_window): Add a longer "variable argument list". Let
11690 callback function return 0 to indicate that cycling over windows
11691 should stop.
11692 (foreach_window_1): Likewise.
11693 (freeze_window_start): Return int.
11694 (init_window): New function.
11695 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
11696
11697 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
11698 input_event with bzero.
11699 (main): Call init_window.
11700
11701 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
11702 a menu filter.
11703
11704 2000-07-04 Kenichi Handa <handa@etl.go.jp>
11705
11706 * composite.h (make_composition_value_copy): Extern it.
11707
11708 * composite.c (make_composition_value_copy): New function.
11709
11710 * editfns.c (Fformat): While copying text properties, make each
11711 composition property value a copy.
11712
11713 * fns.c (concat): While copying text properties, make each
11714 composition property value a copy.
11715
11716 2000-07-03 Gerd Moellmann <gerd@gnu.org>
11717
11718 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
11719
11720 * fns.c (sweep_weak_table): Mark only objects that are not
11721 marked already.
11722
11723 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
11724 include those frames as candidates which have their focus
11725 redirected to the minibuffer frame.
11726
11727 2000-07-03 Stefan Monnier <monnier@cs.yale.edu>
11728
11729 * fns.c (Fputhash): Return `value' rather than nil.
11730
11731 2000-06-30 Gerd Moellmann <gerd@gnu.org>
11732
11733 * frame.c (next_frame): Don't check focus redirection in case
11734 MINIBUF is a window. Doing so excludes frames using MINIBUF
11735 unless their focus is redirected, which contradicts the
11736 specification of next-frame, and leads to infinite loops in
11737 certain situations when cycling through windows with next-window.
11738
11739 2000-06-30 Kenichi Handa <handa@etl.go.jp>
11740
11741 * coding.c (code_convert_region): Even if the length of text is
11742 zero, try to convert it if coding->type is coding_type_ccl.
11743 (decode_coding_string, encode_coding_string): Likewise.
11744
11745 2000-06-28 Gerd Moellmann <gerd@gnu.org>
11746
11747 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
11748 the display if windows_or_buffers_changed.
11749
11750 * dispnew.c (struct row_entry): New structure.
11751 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
11752 (row_table_size, old_lines, new_lines, old_lines_size)
11753 (new_lines_size, run_pool, runs_size, runs): New variables.
11754 (add_row_entry): New function.
11755 (scrolling_window): Use data structures allocated with xmalloc and
11756 held in global variables, instead of allocating them with alloca and
11757 holding them in local variables. Use a larger hash table whose
11758 size depends on glyph matrix sizes. Don't use bzero to clear the
11759 hash table; instead, clear used slots only.
11760
11761 * fns.c (next_almost_prime): Make it externally visible.
11762
11763 * lisp.h (next_almost_prime): Add prototype.
11764
11765 * s/isc4-0.h (sigunblock): Define.
11766
11767 * s/sco5.h (sigunblock): Define.
11768
11769 2000-06-27 Dave Love <fx@gnu.org>
11770
11771 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
11772 (moved to osf5-0.h).
11773 [!NOT_C_CODE]: Protect string.h stuff.
11774
11775 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
11776 (sys_siglist, NSIG): Definitions moved here from osf1.h.
11777
11778 2000-06-27 Gerd Moellmann <gerd@gnu.org>
11779
11780 * xdisp.c (resize_mini_window): Subtract the extra line spacing
11781 below the last line from the needed window height.
11782
11783 2000-06-26 Stefan Monnier <monnier@cs.yale.edu>
11784
11785 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
11786 (Fwidget_get): Use it.
11787 (syms_of_fns): Defsubr it.
11788
11789 2000-06-26 Gerd Moellmann <gerd@gnu.org>
11790
11791 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
11792 display info for XIM.
11793 (xim_open_dpy): Likewise.
11794 (xim_close_dpy): Don't free the display info's XIM.
11795
11796 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
11797
11798 * config.in (USE_XIM): New define.
11799
11800 * keymap.c (get_keyelt): For menu-items containing a `:filter
11801 FILTER', apply FILTER to the menu-item's definition to get the
11802 real definition to use.
11803
11804 * lisp.h (QCfilter): External declaration.
11805
11806 * xfns.c (Fimage_size): New function.
11807 (syms_of_xfns): Defsubr it.
11808
11809 2000-06-26 Andreas Schwab <schwab@suse.de>
11810
11811 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
11812 Fstring_as_unibyte.
11813
11814 2000-06-25 Dave Love <fx@gnu.org>
11815
11816 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
11817
11818 * Makefile.in (blockinput.h): Depend on atimer.h.
11819 (atimer.h): Depend on systime.h.
11820
11821 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
11822
11823 * atimer.h: Protect against multiple inclusion. Include systime.h.
11824
11825 * lisp.h (swap_in_global_binding): Declare.
11826
11827 2000-06-24 Ken Raeburn <raeburn@gnu.org>
11828
11829 * process.c (Fopen_network_stream): Turn off atimers for duration
11830 of call to connect. (Patch from Gerd.)
11831
11832 2000-06-23 Dave Love <fx@gnu.org>
11833
11834 * ralloc.c: Maybe include unistd.h
11835
11836 * emacs.c (setgrp): Undefine before defining.
11837 (malloc_warning, set_time_zone_rule, index): Prototype.
11838
11839 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
11840 HAVE_STRUCT_TIMEZONE.
11841
11842 * s/osf1.h: Move string.h hack here from alpha.h and make it
11843 conditional.
11844 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
11845 _XOPEN_SOURCE.
11846 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
11847 (SOCKLEN_TYPE): Don't define.
11848
11849 * m/alpha.h: Remove string.h hack.
11850
11851 * s/osf5-0.h: New file.
11852
11853 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
11854 include time.h, done by systime.h.
11855 [__FreeBSD__]: Remove redundant includes.
11856
11857 * callproc.c (setpgrp): Undefine before defining.
11858 (delete_temp_file): Return Qnil to avoid warning.
11859
11860 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
11861
11862 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
11863 HAVE_X_WINDOWS.
11864
11865 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
11866
11867 * composite.h (compose_text): Declare.
11868
11869 * xterm.c: Don't include sys/types.h unconditionally. Don't
11870 protect its inclusion with !USG (following xmenu.c).
11871
11872 2000-06-23 Gerd Moellmann <gerd@gnu.org>
11873
11874 * xfns.c (x_create_tip_frame): Initialize frame's colors like
11875 in x_create_frame.
11876
11877 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
11878
11879 * coding.c (decode_eol_post_ccl): Special handling for undecided
11880 and inconsistent EOL types.
11881
11882 2000-06-22 Gerd Moellmann <gerd@gnu.org>
11883
11884 * xrdb.c (x_load_resources): Add default resource for scroll bar's
11885 trough color and main window's background color.
11886
11887 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
11888
11889 * xterm.h (Xt_app_con): External declaration.
11890
11891 * widget.c (EmacsFrameRealize): Fix typo.
11892
11893 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
11894
11895 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
11896 (handle_invisible_prop): Record the start of invisible text in
11897 it->add_overlay_start.
11898 (struct overlay_entry): Add member `overlay'.
11899 (handle_overlay_change): Simplify.
11900 (next_overlay_string): After having processed overlay strings at the
11901 end of the buffer, record that fact in
11902 it->overlay_strings_at_end_processed_p.
11903 (compare_overlay_entries): If before- and after-strings come
11904 from the same overlay, let before-strings come first.
11905 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
11906 (load_overlay_strings): Take it->add_overlay_start into account
11907 when adding overlay strings.
11908
11909 * dispextern.h (struct it): Add member add_overlay_start.
11910
11911 2000-06-22 Dave Love <fx@gnu.org>
11912
11913 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
11914
11915 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
11916
11917 2000-06-22 Kenichi Handa <handa@etl.go.jp>
11918
11919 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
11920 is greater than 0.
11921
11922 2000-06-21 Dave Love <fx@gnu.org>
11923
11924 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
11925
11926 2000-06-21 Stefan Monnier <monnier@cs.yale.edu>
11927
11928 * syntax.c (back_comment): Simplify string-parity counting (with
11929 the added benefit of handling multiple string-styles as long as
11930 they are not intertwined).
11931 Jump to the slow code as soon as a comment starter is found in
11932 a "string_lossage" position. Fixes the case: " /* " /* " */.
11933
11934 2000-06-21 Dave Love <fx@gnu.org>
11935
11936 * Makefile.in: Use GETLOADAVG_LIBS.
11937
11938 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
11939 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
11940
11941 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
11942
11943 * syntax.c (describe_syntax): Recognize the `n'estable bit.
11944 (Fforward_comment, scan_lists):
11945 Check the comstyle of single-char comment-starters.
11946 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
11947 we're just at the beginning of the comment (f.ex with (*) ... (*)).
11948 Check the comstyle of single-char comment-starters.
11949 Clarify control-flow around the Scomment case.
11950
11951 2000-06-20 Dave Love <fx@gnu.org>
11952
11953 * fns.c (make_hash_table, maybe_resize_hash_table):
11954 Cast arg of next_almost_prime.
11955
11956 * tparam.c [emacs]: Include lisp.h.
11957
11958 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
11959 and unistd.h.
11960
11961 2000-06-20 Gerd Moellmann <gerd@gnu.org>
11962
11963 * keyboard.c (adjust_point_for_property): Check if display
11964 property should be treated as intangible by looking at its value.
11965
11966 * xdisp.c (single_display_prop_intangible_p)
11967 (display_prop_intangible_p): New functions.
11968
11969 * dispextern.h (display_prop_intangible_p): Add prototype.
11970
11971 * xdisp.c (dump_glyph_row): Show type of glyph->object.
11972
11973 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
11974 argument to sigprocmask.
11975
11976 * s/sco5.h (sigblock): Redefined to pass a pointer as second
11977 argument to sigprocmask.
11978
11979 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
11980 sigprocmask_set, and pass a pointer to it to sigprocmask.
11981
11982 * sysdep.c (sigprocmask_set): New variable.
11983
11984 * fileio.c (make_temp_name): Don't use `%s' in string passed to
11985 report_file_error.
11986
11987 2000-06-20 Sam Steingold <sds@gnu.org>
11988
11989 * xrdb.c: Don't declare xmalloc, xrealloc.
11990
11991 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
11992
11993 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
11994 (re_comp): Cast gettext return value to avoid complaints when
11995 !HAVE_LIBINTL.
11996
11997 2000-06-20 Dave Love <fx@gnu.org>
11998
11999 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
12000
12001 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
12002
12003 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
12004
12005 * m/alpha.h: Don't declare xmalloc, xrealloc.
12006
12007 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
12008
12009 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
12010
12011 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
12012
12013 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
12014 HAVE_GETWD.
12015
12016 * keyboard.h (poll_for_input_1): Declare.
12017
12018 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
12019
12020 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
12021
12022 * doprnt.c: Don't declare xmalloc, xrealloc.
12023
12024 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
12025 (getenv, ctime, getwd): Removed.
12026 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
12027
12028 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
12029 x_set_tool_bar_lines.
12030
12031 * config.in: Add HAVE_GETWD. Move some definitions above
12032 machine/system includes.
12033
12034 2000-06-20 Kenichi Handa <handa@etl.go.jp>
12035
12036 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
12037
12038 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
12039 contain information about ENCODING.
12040
12041 * fontset.c (FONTSET_ASCII): Use the first element of char table
12042 for an ASCII font, not defalt slot.
12043 (fontset_ref_via_base): If FONTSET doesn't contain information for
12044 C, try the default fontset.
12045 (make_fontset): Don't copy the default fontset.
12046 (fontset_font_pattern): Likewise.
12047 (accumulate_font_info): If ELT is nil, use the corresponding
12048 element in the default fontset.
12049
12050 2000-06-19 Dave Love <fx@gnu.org>
12051
12052 * syntax.c (Fparse_partial_sexp): Doc fix.
12053
12054 * regex.h: Test PROTOTYPES as well as __STDC__.
12055
12056 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
12057 errno, strerror. Put text after #endif in comment.
12058
12059 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
12060
12061 * xterm.c (x_frame_of_widget): Likewise.
12062
12063 2000-06-19 Gerd Moellmann <gerd@gnu.org>
12064
12065 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
12066 to Vfundamental_mode_abbrev_table.
12067
12068 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
12069 bogus objects are marked. This slows down GC by ~80 percent, but
12070 it might be worth trying when debugging GC-related problems.
12071 This feature requires conservative stack marking to be enabled.
12072
12073 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
12074 returns XLookupChars, reset `modifiers' to zero.
12075
12076 2000-06-19 Dave Love <fx@gnu.org>
12077
12078 * mktime.c: Unprotoized.
12079
12080 2000-06-19 Richard Stallman <rms@gnu.org>
12081
12082 * data.c (set_internal): If variable is frame-local,
12083 store the new value immediately into the frame parameter alist.
12084
12085 2000-06-19 Ken Raeburn <raeburn@gnu.org>
12086
12087 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
12088 in the custom handler pointer.
12089
12090 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
12091 value, or checks for CHAR_META can fail when Lisp_Object is a
12092 union type.
12093 * keymap.c (get_keyelt): Likewise.
12094
12095 2000-06-19 Kenichi Handa <handa@etl.go.jp>
12096
12097 * ccl.h (struct ccl_program): New member eol_type.
12098 (struct ccl_spec): New member cr_carryover.
12099
12100 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
12101 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
12102
12103 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
12104 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
12105 (decode_eol_post_ccl): New function.
12106 (decode_coding): Don't detect EOL format here for CCL based coding
12107 systems.
12108 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
12109 decode_eol_post_ccl after running the CCL program.
12110 (code_convert_region): Don't detect EOL format here for CCL based
12111 coding systems.
12112 (decode_coding_string): Likewise.
12113
12114 2000-06-18 Ken Raeburn <raeburn@gnu.org>
12115
12116 * charset.c (update_charset_table): Use XINT on "iso_final_char"
12117 when treating it as an integer.
12118
12119 * coding.h (encode_coding_string): Declare.
12120
12121 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
12122 it as an integer.
12123
12124 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
12125 "xkeymap" to avoid shadowing the "enum map_type" value that needs
12126 to be passed to get_local_map.
12127
12128 * sound.c (Fplay_sound): Don't call make_number on
12129 Frun_hook_with_args count argument.
12130
12131 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
12132 for lisp objects in X event structure data field, when lisp
12133 objects are represented with unions.
12134 (x_scroll_bar_to_input_event): Ditto.
12135
12136 2000-06-16 Ken Raeburn <raeburn@gnu.org>
12137
12138 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
12139 termination of string. Fix sense of test whether
12140 Vline_number_display_limit is an integer.
12141
12142 2000-06-16 Gerd Moellmann <gerd@gnu.org>
12143
12144 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
12145 only if HAVE_X_WINDOWS.
12146
12147 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
12148 of titles.
12149
12150 * dispnew.c (update_frame_1): Handle case that cursor vpos is
12151 out of bounds.
12152
12153 2000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
12154
12155 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
12156 of its headers.
12157
12158 2000-06-15 Kenichi Handa <handa@etl.go.jp>
12159
12160 * coding.c (decode_coding_emacs_mule): Always set src_base at the
12161 start of the while loop.
12162
12163 2000-06-15 Gerd Moellmann <gerd@gnu.org>
12164
12165 * atimer.c (alarm_signal_handler): Add forward declaration.
12166
12167 * data.c (set_internal): Remove debug code.
12168
12169 2000-06-14 Gerd Moellmann <gerd@gnu.org>
12170
12171 * Makefile.in (bootstrap-temacs): Add `-I../src'.
12172
12173 * unexec.c (toplevel) [COFF]: Include coff.h.
12174
12175 * s/lynxos.h: New file.
12176
12177 * keymap.c (Fsingle_key_description): Enclose function key and
12178 event symbol names in angle brackets.
12179
12180 * xdisp.c (setup_echo_area_for_printing): Call
12181 message_log_maybe_newline if message_buf_print is not set.
12182
12183 * print.c (printchar, strout): Don't check message_buf_print
12184 before calling setup_echo_area_for_printing because that
12185 function does something useful even when message_buf_print is
12186 already set.
12187
12188 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
12189 New variables.
12190 (ensure_echo_area_buffers): Initialize echo buffer's
12191 truncate lines setting to nil.
12192 (with_echo_area_buffer): Don't set the echo buffer's truncate
12193 lines setting here.
12194 (set_message_1): Set it here instead, based on the value
12195 of message_truncate_lines.
12196 (resize_mini_window): Handle case that lines are truncated.
12197 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
12198 DEFVAR_BOOL message-truncate-lines.
12199
12200 * keyboard.c (read_char): Bind message-truncate-lines to t
12201 while displaying a help-echo.
12202
12203 * lisp.h (Qmessage_truncate_lines): External declaration.
12204
12205 2000-06-13 Gerd Moellmann <gerd@gnu.org>
12206
12207 * xdisp.c (Vline_number_display_limit): Renamed from
12208 line_number_display_limit.
12209 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
12210 Extend documentation string. Initialize
12211 Vline_number_display_limit to nil meaning no limit.
12212 (decode_mode_spec): Use Vline_number_display_limit with its new
12213 meaning.
12214
12215 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
12216
12217 2000-06-13 Richard Stallman <rms@gnu.org>
12218
12219 * frame.c (Fmodify_frame_parameters): Doc fix.
12220
12221 * xfns.c (x_set_frame_parameters): Comment fix.
12222
12223 * frame.c (store_frame_param): Call swap_in_global_binding if the
12224 variable's current binding was chosen based on this frame.
12225
12226 * data.c (swap_in_global_binding): New function.
12227
12228 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
12229
12230 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
12231 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
12232
12233 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
12234
12235 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
12236
12237 2000-06-12 Jason Rumney <jasonr@gnu.org>
12238
12239 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
12240
12241 * w32.h (EMACS_W32_H): Renamed from _NT_H_
12242
12243 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
12244
12245 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
12246
12247 2000-06-12 Gerd Moellmann <gerd@gnu.org>
12248
12249 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
12250 (syms_of_xfaces): Defsubr Sdump_colors.
12251 (x_free_colors): Don't treat b&w specially on default visual.
12252 (x_free_dpy_colors): New function.
12253 (free_face_colors): Don't check visual class; it's done
12254 in x_free_colors.
12255
12256 * xterm.c (x_frame_of_widget): New function.
12257 (x_alloc_nearest_color_for_widget): Use it.
12258 (x_copy_dpy_color): New function.
12259 (x_destroy_window): Free various colors.
12260
12261 2000-06-12 Kenichi Handa <handa@etl.go.jp>
12262
12263 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
12264
12265 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
12266
12267 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
12268
12269 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
12270
12271 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
12272
12273 2000-06-11 Dave Love <fx@gnu.org>
12274
12275 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
12276
12277 2000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
12278
12279 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
12280
12281 2000-06-11 Gerd Moellmann <gerd@gnu.org>
12282
12283 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
12284 to `XEvent *'.
12285
12286 2000-06-10 Kenichi Handa <handa@etl.go.jp>
12287
12288 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
12289 (regex_compile): Fix the code for handling the case of single byte
12290 char and multibyte char being mixed in a range within [...].
12291
12292 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
12293 and dst_multibyte members of coding.
12294
12295 * charset.c (update_charset_table): Update the table
12296 bytes_by_char_head.
12297 (init_charset_once): Initialize elements of bytes_by_char_head to
12298 1 except for leading codes for private charases.
12299
12300 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
12301 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
12302
12303 2000-06-09 Ken Raeburn <raeburn@gnu.org>
12304
12305 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
12306 access the data it doesn't point to.
12307
12308 2000-06-08 Gerd Moellmann <gerd@gnu.org>
12309
12310 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
12311 will be translated to a switch-frame event when reading the
12312 event queue. This is necessary because Emacs otherwise won't
12313 perform a switch-frame to a new frame until some other event, for
12314 example a keystroke event, forces it to do so. This has various
12315 effects, one visible being that the cursor of a frame created with
12316 C-x 5 2 or switched to with a window manager key binding like
12317 A-TAB stays hollow because selected_window isn't on the newly
12318 focused frame until the switch-frame is performed.
12319
12320 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
12321 generating a switch-frame event if necessary.
12322
12323 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
12324
12325 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
12326 it's an integer.
12327
12328 2000-06-08 Kenichi Handa <handa@etl.go.jp>
12329
12330 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
12331
12332 2000-06-07 Gerd Moellmann <gerd@gnu.org>
12333
12334 * window.c (displayed_window_lines): Take empty lines at
12335 the bottom of a window into account.
12336
12337 * window.c (displayed_window_lines): New function.
12338 (Fmove_to_window_line): Use displayed_window_lines to determine
12339 the number of lines to move, instead of using the window's height.
12340
12341 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
12342 to stop reading, even if the form read sets point to a different
12343 value when evaluated.
12344
12345 * xdisp.c (display_line): Fix code deciding in which line to
12346 put the cursor.
12347
12348 2000-06-07 Kenichi Handa <handa@etl.go.jp>
12349
12350 * fileio.c (e_write): Free composition data if stored in
12351 coding->cmp_data.
12352
12353 2000-06-06 Gerd Moellmann <gerd@gnu.org>
12354
12355 * xdisp.c (display_line): Set row's and iterator's
12356 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
12357 Set cursor even if row ends in the middle of a character.
12358 (dump_glyph_row): Print values of new flags.
12359 (redisplay_window) <cursor movement in unchanged window>: When
12360 point has been moved forward, and PT is at the end of the cursor
12361 row, don't place the cursor in the next row if the cursor row ends
12362 in the middle of a character or at ZV.
12363
12364 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
12365 (struct glyph_row): Add starts_in_middle_of_char_p and
12366 ends_in_middle_of_char_p.
12367 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
12368 ends_in_middle_of_char_p flag.
12369 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
12370
12371 * term.c (append_glyph): Revert change of 2000-06-06.
12372
12373 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
12374 padding glyph not fitting on line as whole character not
12375 fitting on line.
12376
12377 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
12378 this isn't true for images with `:ascent 100'.
12379
12380 2000-06-06 Kenichi Handa <handa@etl.go.jp>
12381
12382 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
12383 as modified if it is originally unmodified.
12384
12385 * term.c (encode_terminal_code): Change the way to check if
12386 terminal coding does any conversion.
12387 (append_glyph): Set glyph->pixel_width correctly.
12388
12389 * xdisp.c (display_line): While checking line continuation, pay
12390 attention to a padding glyph.
12391
12392 2000-06-05 Gerd Moellmann <gerd@gnu.org>
12393
12394 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
12395
12396 2000-06-05 Dave Love <fx@gnu.org>
12397
12398 * xdisp.c: Include fontset.h.
12399
12400 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
12401
12402 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
12403
12404 * dispnew.c: Conditionally include term.h.
12405
12406 * coding.h: Declare code_convert_string_norecord.
12407
12408 * frame.h (struct frame): Use volatile unconditionally.
12409
12410 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
12411
12412 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
12413
12414 * systime.h: Protect against multiple inclusion.
12415 (timezone) [USG5_4]: Define as time_t.
12416
12417 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
12418 (Foptimize_char_table, make_temp_name): Declare.
12419
12420 * Makefile.in (xdisp.o): Depend on fontset.h.
12421
12422 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
12423
12424 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
12425 (Foptimize_char_table, make_temp_name): Declare.
12426
12427 * s/irix4-0.h:
12428 * s/irix5-0.h:
12429 * s/netbsd.h: Don't define autoconfiscated MATHERR.
12430
12431 2000-06-02 Dave Love <fx@gnu.org>
12432
12433 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
12434
12435 2000-06-02 Gerd Moellmann <gerd@gnu.org>
12436
12437 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
12438 result face, set flags in that face indicating that colors may not
12439 be freed.
12440
12441 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
12442 glyph, use the ASCII NUL character to determine the face.
12443
12444 2000-06-02 Dave Love <fx@gnu.org>
12445
12446 * sysdep.c: Conditionally include stdlib.h, unistd.h.
12447 (VFORK_RETURN_TYPE): Remove.
12448
12449 * config.in: Add NO_MATHERR.
12450
12451 2000-06-01 Dave Love <fx@gnu.org>
12452
12453 * cmds.c (internal_self_insert): Don't check
12454 Vbefore_change_function, Vafter_change_function.
12455
12456 * insdel.c (signal_before_change, signal_after_change): Likewise.
12457
12458 * buffer.c (Vbefore_change_function, Vafter_change_function):
12459 Variables and their initializations deleted.
12460
12461 * callint.c (Fcall_interactively): Doc fix.
12462
12463 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
12464
12465 2000-05-31 Dave Love <fx@gnu.org>
12466
12467 * textprop.c: Revert last change -- duplicated.
12468
12469 2000-05-31 Gerd Moellmann <gerd@gnu.org>
12470
12471 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
12472 in #if 0.
12473
12474 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
12475
12476 2000-05-31 Jason Rumney <jasonr@gnu.org>
12477
12478 * search.c (Fre_search_forward, Fre_search_backward)
12479 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
12480
12481 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
12482
12483 2000-05-30 Jason Rumney <jasonr@gnu.org>
12484
12485 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
12486 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
12487
12488 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
12489
12490 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
12491 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
12492 expand a nil default_filename.
12493
12494 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
12495 pointer to glyph_to_pixel_coords, not a frame.
12496
12497 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
12498 coding.h to dependencies.
12499
12500 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
12501
12502 * w32console.c (glyph_to_pixel_coords): Change first parameter to
12503 window pointer to be consistent with w32term.c and xterm.c.
12504
12505 * w32fns.c: Format and doc changes to bring closer to xfns.c.
12506 (VIETNAMESE_CHARSET): Define if not defined in system headers.
12507 (Qline_spacing, Qcenter): New variables.
12508 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
12509 (x_set_line_spacing): New function.
12510 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
12511 (x_specified_cursor_type): New function.
12512 (x_set_cursor_type): Use it.
12513 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
12514 and icon strings.
12515 (validate_x_resource_name, x_get_resource_string): Measure lengths
12516 of external strings in bytes.
12517 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
12518 GetTextExtentPoint32 with NULL title.
12519 (Fx_create_frame): Initialize Qline_spacing.
12520 (w32_load_system_font): Initialize font->double_byte_p.
12521 (x_to_w32_charset): Use Vw32_charset_info_alist.
12522 (Image, busy cursor, tooltip functions): Merged changes from
12523 xfns.c. Not yet functional on Windows.
12524
12525 * w32gui.h (W32FontStruct): Add double_byte_p member.
12526
12527 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
12528 (emacs_button_translation): Use it.
12529 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
12530 in `mask' to be set.
12531
12532 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
12533 menu strings.
12534
12535 * w32term.c: Format and doc changes to bring closer to xterm.c.
12536 (w32_char_font_type): New enum.
12537 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
12538 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
12539 (w32_encode_char): New function.
12540 (x_encode_char): Removed.
12541 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
12542 x_encode_char and w32_font_is_double_byte.
12543 (x_produce_image_glyph): Use image_ascent.
12544 (x_produce_glyphs): Use new version of w32_per_char_metric and
12545 handle NULL return value. Allow extra line spacing.
12546 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
12547 (w32_get_glyph_overhangs): Remove unicode_p param. Use
12548 w32_font_type member of glyph instead.
12549 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
12550 (fast_find_position): Make sure not to consider rows not visible
12551 in the window.
12552 (w32_read_socket) [WM_MENUSELECT]: Cannot call
12553 w32_menu_display_help with input blocked, as it can abort.
12554 (x_display_and_set_cursor): Choose cursor depending
12555 on buffer-local value of cursor_type.
12556 (x_draw_bar_cursor): Add parameter WIDTH.
12557
12558 * w32term.h (CP_DEFAULT): Define.
12559 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
12560
12561 2000-05-30 Gerd Moellmann <gerd@gnu.org>
12562
12563 * search.c (Fre_search_forward, Fre_search_backward)
12564 (Fposix_search_backward, Fposix_search_forward): Doc fix.
12565
12566 2000-05-30 Kenichi Handa <handa@etl.go.jp>
12567
12568 * coding.c (detect_coding_iso2022): Fix code for checking
12569 CODING_CATEGORY_MASK_ISO_8_2.
12570
12571 2000-05-29 Stefan Monnier <monnier@cs.yale.edu>
12572
12573 * regex.c (PREFETCH_NOLIMIT): New function.
12574 (re_match_2_internal): Use it and adjust the end_match_2 logic.
12575
12576 2000-05-29 Gerd Moellmann <gerd@gnu.org>
12577
12578 * syntax.c (find_defun_start): Move test for
12579 open_paren_in_column_0_is_defun_start outside of the loop.
12580
12581 * xdisp.c (redisplay_window): Really switch buffers when
12582 displaying mode lines, and temporarily set selected_frame to the
12583 frame of the window that's redisplayed.
12584
12585 * xfaces.c (free_realized_faces): Block/unblock input.
12586 (free_realized_multibyte_face): Ditto.
12587
12588 2000-05-29 Dave Love <fx@gnu.org>
12589
12590 * textprop.c (Qkeymap): New variable.
12591 (syms_of_textprop): Intern it.
12592
12593 * keymap.c: Include intervals.h.
12594 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
12595
12596 * Makefile.in (keymap.o): Depend on intervals.h.
12597
12598 * keyboard.c (menu_bar_items, tool_bar_items)
12599 (Fexecute_extended_command): Deal with `keymap' property.
12600 (read_key_sequence): Track map from `keymap' property as well as
12601 `local_map'.
12602
12603 * intervals.c (get_local_map): Extra arg to allow looking for
12604 `keymap' too.
12605
12606 * intervals.h (map_property): New enum.
12607 (get_local_map): Extra arg using it.
12608 (Qkeymap): Declare.
12609
12610 * lisp.h (get_local_map): Don't declare here.
12611
12612 2000-05-29 Kenichi Handa <handa@etl.go.jp>
12613
12614 * Makefile.in (callproc.o): Depend on composite.h.
12615
12616 * callproc.c: Include composite.h.
12617 (Fcall_process): Handle composition correctly.
12618
12619 * coding.h (coding_allocate_composition_data): Extern it.
12620 (coding_restore_composition): Likewise.
12621
12622 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
12623 yet allocated, finish decoding with result
12624 CODING_FINISH_INSUFFICIENT_CMP.
12625 (coding_allocate_composition_data): Make it non-static.
12626 (coding_restore_composition): Likewise.
12627
12628 2000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
12629
12630 * charset.c (syms_of_charset): Revert last change.
12631
12632 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
12633
12634 * term.c (produce_glyphs): Treat characters from the eight-bit-*
12635 charsets as unibyte, with 1-column screen width. Sent by Kenichi
12636 Handa.
12637
12638 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
12639
12640 * charset.c (syms_of_charset): Set width of character sets
12641 eight-bit-control and eight-bit-graphic to 1 column.
12642
12643 2000-05-26 Gerd Moellmann <gerd@gnu.org>
12644
12645 * config.in (HAVE_SPEED_T): New define.
12646
12647 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
12648 `extern speed_t'.
12649
12650 2000-05-26 Dave Love <fx@gnu.org>
12651
12652 * coding.c (shrink_decoding_region): Initialize eol_conversion.
12653
12654 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
12655 (Fsubr_arity): New function.
12656 (syms_of_data): Install them.
12657
12658 2000-05-26 Kenichi Handa <handa@etl.go.jp>
12659
12660 * charset.c (init_charset_once): Set the table bytes_by_char_head
12661 correctly.
12662
12663 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
12664 the default fontset to what Emacs uses by default.
12665 (check_registry_encoding): This function deleted.
12666 (Fset_fontset_font): Remove the adhoc condition for the default
12667 fontset. Allow cons in FONTNAME.
12668
12669 * fns.c (map_char_table): Ignore char-table entries for
12670 charsets eight-bit-control and eight-bit-graphic.
12671
12672 2000-05-25 Ken Raeburn <raeburn@gnu.org>
12673
12674 * emacs.c (main): Initialize keyboard syms before initializing
12675 window code, so face names are available.
12676
12677 2000-05-25 Stefan Monnier <monnier@cs.yale.edu>
12678
12679 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
12680 of an anchor at the beginning of a shy-group.
12681
12682 2000-05-25 Gerd Moellmann <gerd@gnu.org>
12683
12684 * xdisp.c (handle_invisible_prop): Don't try to skip over
12685 invisible text if end of text is already reached.
12686
12687 2000-05-25 Dave Love <fx@gnu.org>
12688
12689 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
12690
12691 * coding.c (encode_eol): Add null statement after label.
12692
12693 2000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
12694
12695 * w16select.c (Fw16_set_clipboard_data): Fix the change from
12696 2000-05-20.
12697
12698 2000-05-25 Kenichi Handa <handa@etl.go.jp>
12699
12700 * ccl.c (ccl_driver): Fix previous change.
12701
12702 2000-05-25 Kenichi Handa <handa@etl.go.jp>
12703
12704 * coding.c (run_pre_post_conversion_on_str): Set point to the
12705 beginning of buffer before calling coding->post_read_conversion.
12706 (decode_coding_string): Give correct args to
12707 run_pre_post_conversion_on_str.
12708 (encode_coding_string): Likewise.
12709
12710 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
12711 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
12712 eight-bit-graphic correctly.
12713
12714 2000-05-24 Kenichi HANDA <handa@etl.go.jp>
12715
12716 * fileio.c (Finsert_file_contents): Even if a file is not found,
12717 execute codes for setting up coding system. Call
12718 after-insert-file-functions unconditionally.
12719
12720 2000-05-24 Gerd Moellmann <gerd@gnu.org>
12721
12722 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
12723 BSD_PGRPS are not defined.
12724
12725 2000-05-24 Kenichi Handa <handa@etl.go.jp>
12726
12727 * charset.c (update_charset_table): Accept nil in LONG_NAME and
12728 DESCRIPTION.
12729 (syms_of_charset): Avoid building same strings.
12730
12731 2000-05-23 Gerd Moellmann <gerd@gnu.org>
12732
12733 * lread.c (Fload): Add a comment about the meaning of
12734 Vuser_init_file being t.
12735
12736 * puresize.h (BASE_PURESIZE): Increase to 675000.
12737
12738 * s/gnu-linux.h (setpgrp): Don't define it here because this
12739 prevents compilation on GNU/Linux systems with glib 2.2.
12740
12741 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
12742 as setpgid.
12743
12744 2000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
12745
12746 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
12747 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
12748 version.
12749 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
12750
12751 2000-05-23 Kenichi Handa <handa@etl.go.jp>
12752
12753 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
12754
12755 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
12756
12757 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
12758
12759 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
12760
12761 2000-05-22 Kenichi Handa <handa@etl.go.jp>
12762
12763 * keyboard.c (read_char): Allow character codes 128..255 to be
12764 handled by input-method-function.
12765
12766 * insdel.c (adjust_markers_for_replace): Fix previous change.
12767 (adjust_after_replace): If PREV_TEXT is nil, call
12768 adjust_markers_for_insert, not adjust_markers_for_replace.
12769
12770 2000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
12771
12772 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
12773 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
12774 [HAVE_GRANDPT]: Define.
12775 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
12776
12777 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
12778 like SYSV_PTYS.
12779
12780 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
12781
12782 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
12783
12784 2000-05-20 Kenichi Handa <handa@etl.go.jp>
12785
12786 The following changes are to handle 8-bit characters in a
12787 multibyte buffer/string without facing with byte combining
12788 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
12789 eight-bit-graphic (for 0xA0..0xFF) are introduced.
12790
12791 * Makefile.in (fns.o): Depend on charset.h.
12792
12793 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
12794 convert it to unibyte.
12795 (make_string): Use parse_str_as_multibyte, not chars_in_text.
12796
12797 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
12798 apparent char boundary.
12799 (Fset_buffer_multibyte): Convert 8-bit characters in the range
12800 0x80..0x9F to/from multibyte form.
12801
12802 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
12803 to unibyte.
12804
12805 * callproc.c (Fcall_process): Always encode an argument string if
12806 it is multibyte. Setup src_multibyte and dst_multibyte members of
12807 process_coding properly.
12808
12809 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
12810 SPLIT_NON_ASCII_CHAR.
12811
12812 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
12813 as is.
12814 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
12815
12816 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
12817 (SPLIT_CHARACTER_SEQ): This macro deleted.
12818 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
12819 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
12820 and eight-bit-graphic.
12821 (char_to_string): Likewise. Signal an error for too large
12822 character code.
12823 (char_printable_p): Return 0 for 8-bit characters.
12824 (update_charset_table): Update iso_charset_table only when a final
12825 character is non-negative.
12826 (find_charset_in_text): Renamed from find_charset_in_str.
12827 Arguments and return value changed. Callers changed.
12828 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
12829 be -1 if CHARSET is used only internally.
12830 (Fmake_char_internal): Handle new charsets; eight-bit-control and
12831 eight-bit-graphic.
12832 (Fcharset_after): Simplified.
12833 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
12834 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
12835 (multibyte_chars_in_text): Simplified by assuming there's no
12836 invalid multibyte sequence.
12837 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
12838 (str_as_unibyte): New functions.
12839 (Fstring): Simpified by assuming that byte combining never happens.
12840 (init_charset_once): Initialization for
12841 LEADING_CODE_8_BIT_CONTROL.
12842 (syms_of_charset): Intern and staticpro Qeight_bit_control and
12843 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
12844 eight-bit-control and eight-bit-graphic.
12845
12846 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
12847 (CHARSET_8_BIT_GRAPHIC): New macros.
12848 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
12849 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
12850 (CHARSET_REVERSE_CHARSET): Likewise.
12851 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
12852 eight-bit-graphic.
12853 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
12854 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
12855 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
12856 encounter an invalid multibyte sequence.
12857 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
12858 sequence is always valid.
12859 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
12860 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
12861 (CHAR_STRING): For 8-bit characters, call char_to_string.
12862 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
12863 multibyte sequence is always valid.
12864 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
12865 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
12866 (str_as_unibyte): Extern them.
12867 (BCOPY_SHORT): Fix a bug.
12868 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
12869 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
12870 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
12871 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
12872
12873 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
12874 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
12875 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
12876 (EMIT_BYTES): New macros.
12877 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
12878 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
12879 macros deleted.
12880 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
12881 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
12882 check the validity of multibyte sequence.
12883 (decode_coding_emacs_mule): New function.
12884 (encode_coding_emacs_mule): New macro.
12885 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
12886 the source.
12887 (DECODE_ISO_CHARACTER): Just return a character code.
12888 (DECODE_COMPOSITION_START): Set coding->result instead of result.
12889 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
12890 EMIT_CHAR to produced decoded characters. Exit the loop only by
12891 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
12892 block here.
12893 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
12894 only position codes for an invalid character.
12895 (encode_designation_at_bol): Return new destination pointer. 5th
12896 arg DSTP is changed to DST.
12897 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
12898 from the source by ONE_MORE_CHAR. Don't handle the case of last
12899 block here.
12900 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
12901 macros deleted.
12902 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
12903 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
12904 TWO_MORE_BYTES to fetch a byte from the source.
12905 (encode_eol): Pay attention to coding->src_multibyte.
12906 (detect_coding, detect_eol): Preserve members src_multibyte and
12907 dst_multibyte.
12908 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
12909 (encoding_buffer_size): Set magnification to 3 for all coding
12910 systems that require encoding.
12911 (ccl_coding_driver): For decoding, be sure that the result is
12912 valid multibyte sequence.
12913 (decode_coding): Initialize coding->errors and coding->result.
12914 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
12915 and raw-text, always call decode_eol. Handle the case of last
12916 block here. If not coding->dst_multibyte, convert the resulting
12917 sequence to unibyte.
12918 (encode_coding): Initialize coding->errors and coding->result.
12919 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
12920 and raw-text, always call encode_eol. Handle the case of last
12921 block here.
12922 (shrink_decoding_region, shrink_encoding_region): Detect cases
12923 that we can't skip data more rigidly.
12924 (code_convert_region): Setup src_multibyte and dst_multibyte
12925 members of coding. For decoding, if the buffer is multibyte,
12926 convert the source sequence to unibyte in advance. For encoding,
12927 if the buffer is multibyte, convert the resulting sequence to
12928 multibyte afterward.
12929 (run_pre_post_conversion_on_str): New function.
12930 (code_convert_string): Deleted and divided into the following two.
12931 (decode_coding_string, encode_coding_string): New functions.
12932 (code_convert_string1, code_convert_string_norecord): Call one of
12933 above.
12934 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
12935 MAKE_NON_ASCII_CHAR.
12936 (Fset_terminal_coding_system_internal)
12937 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
12938 and dst_multibyte members.
12939 (init_coding_once): Initialize iso_code_class with new enum
12940 ISO_control_0 and ISO_control_1.
12941
12942 * coding.h (enum iso_code_class_type): Member ISO_control_code is
12943 devided into ISO_control_0 and ISO_control_1.
12944 (struct coding_system): New members src_multibyte, dst_multibyte,
12945 errors, and result. Delete member fake_multibyte.
12946 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
12947 nonzero.
12948 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
12949 nonzero.
12950
12951 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
12952 (Faset): Likewise.
12953
12954 * editfns.c (Fformat): Be sure to convert 8-bit characters to
12955 multibyte form.
12956 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
12957 combining occurs.
12958 (Ftranspose_region): Delete codes for handling byte combining.
12959
12960 * fileio.c (Finsert_file_contents): Setup src_multibyte and
12961 dst_multibyte members of coding. On handling REPLACE on unibyte
12962 buffer, convert the result of decode_coding to unibyte. On
12963 inserting into a mutibyte buffer, always call code_convert_region.
12964 (e_write): Setup coding->src_multibyte according to the
12965 multibyteness of the source (buffer or string).
12966
12967 * fns.c (concat): Handle 8-bit characters correctly.
12968 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
12969 unibyte in the result.
12970 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
12971 valid multibyte form in the result.
12972 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
12973 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
12974 return -1, signal an error.
12975 (base64_encode_1): New arg MULTIBYTE. Get each character by
12976 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
12977 character is found, return -1.
12978 (Fbase64_decode_region): Delete codes for handling byte-combining.
12979 Treat each decoded byte as a unibyte character.
12980 (Fbase64_decode_string): Return unibyte string.
12981 (Fcompare_strings, concat, string_byte_to_char): Use
12982 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
12983 FETCH_STRING_CHAR_ADVANCE.
12984 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
12985 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
12986
12987 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
12988 SPLIT_NON_ASCII_CHAR.
12989 (fontset_ref_via_base, fontset_set): Likewise
12990
12991 * insdel.c (adjust_markers_for_record_delete): Deleted.
12992 (adjust_markers_for_insert): Argument changed. Caller changed.
12993 (adjust_markers_for_replace): Likewise.
12994 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
12995 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
12996 (copy_text): Delete unused local varialbe c_save. For converting
12997 to multibyte, be sure to make all 8-bit characters in valid
12998 multibyte form.
12999 (count_size_as_multibyte): Handle 8-bit characters correctly.
13000 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
13001 (adjust_after_replace, replace_range, del_range_2)
13002 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
13003 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
13004 (adjust_after_replace, replace_range, del_range_2) Delete codes for
13005 handling byte combining.
13006 (adjust_before_replace): Deleted.
13007
13008 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
13009 SPLIT_NON_ASCII_CHAR.
13010 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
13011 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13012 (Fkey_description): Likewise.
13013
13014 * lread.c (read1): On reading multibyte string, be sure to make
13015 all 8-bit chararacters in valid multibyte form.
13016 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13017
13018 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
13019 unconditionally.
13020
13021 * process.c (Fstart_process): GCPRO current_dir before calling
13022 Ffind_operation_coding_system. Encode arguments here.
13023 (create_process): Don't encode arguments here. Setup
13024 src_multibyte and dst_multibyte members of struct coding.
13025 (read_process_output): Setup src_multibyte and dst_multibyte
13026 members of struct coding. If the output is to multibyte buffer,
13027 always decode the output of the process. Adjust the
13028 representation of 8-bit characters to the multibyteness of the output.
13029 (send_process): Setup coding->src_multibyte according to the
13030 multibyteness of the source.
13031
13032 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13033 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
13034 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
13035
13036 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
13037
13038 * w16select.c (Fw16_set_clipboard_data): Setup members
13039 src_multibyte and dst_multibyte of coding. Adjusted for the
13040 change for find_charset_in_str.
13041 (Fw16_get_clipboard_data): Likewise.
13042
13043 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
13044 dst_multibyte of coding.
13045 (x_to_w32_font): Likewise.
13046
13047 * w32select.c (Fw32_set_clipboard_data): Setup members
13048 src_multibyte and dst_multibyte of coding. Adjusted for the
13049 change for find_charset_in_str.
13050 (Fw32_get_clipboard_data): Likewise.
13051
13052 * xdisp.c (get_next_display_element): Handle 8-bit characters
13053 correctly.
13054 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
13055 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
13056
13057 * xselect.c (selection_data_to_lisp_data): Setup members
13058 src_multibyte and dst_multibyte of coding. Adjusted for the
13059 change for find_charset_in_str.
13060 (lisp_data_to_selection_data): Likewise.
13061
13062 2000-05-19 Gerd Moellmann <gerd@gnu.org>
13063
13064 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
13065
13066 * dispextern.h (Vimage_types): Add extern declaration.
13067
13068 * xdisp.c (Vimage_types): Moved here from xfns.c.
13069 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
13070
13071 * xfns.c (Vimages_types): Moved to xdisp.c.
13072 (syms_of_xfns): Move `image-types' to xdisp.c.
13073
13074 * w32fns.c (Vimage_types): Removed.
13075 (syms_of_w32fns): Remove `image-types'.
13076
13077 2000-05-18 Kenichi Handa <handa@etl.go.jp>
13078
13079 * fns.c (map_char_table): Pay attention to character number of
13080 charset. Check the validity of charset at the first level. For
13081 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
13082 the default value.
13083
13084 * fontset.c: Include "buffer.h".
13085 (fs_load_font): If the face has fontset, record the face ID in
13086 that fontset.
13087 (Finternal_char_font): New function.
13088 (accumulate_font_info): New function.
13089 (Ffontset_info): Rewritten for the new fontset implementation.
13090 (syms_of_fontset): Register Vdefault_fontset in the first element
13091 of Vfontset_table. Include Vdefault_fontset in
13092 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
13093 function.
13094
13095 2000-05-16 Dave Love <fx@gnu.org>
13096
13097 * m/iris5d.h: Deleted -- unused.
13098
13099 2000-05-16 Gerd Moellmann <gerd@gnu.org>
13100
13101 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
13102 `invalid' instead of `illegal'.
13103
13104 * indent.c (Fmove_to_column): When ending within a tab, insert
13105 spaces first so that markers at the end of the tab get adjusted.
13106
13107 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
13108 buffer list that wasn't selected in that frame.
13109
13110 * filelock.c (get_boot_time): To obtain an 8 char file name, which
13111 is needed on mescaline, use a 2 char prefix, and call
13112 make_temp_name with second arg non-zero.
13113
13114 * fileio.c (make_temp_name): New function, extracted from
13115 Fmake_temp_name.
13116 (Fmake_temp_name): Use it.
13117
13118 2000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
13119
13120 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
13121
13122 2000-05-15 Gerd Moellmann <gerd@gnu.org>
13123
13124 * Makefile.in (lisp): Add env.elc.
13125
13126 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
13127
13128 2000-05-12 Gerd Moellmann <gerd@gnu.org>
13129
13130 * search.c (Freplace_match): Handle case of `\N' in the
13131 replacement when there's no group N.
13132
13133 2000-05-11 Gerd Moellmann <gerd@gnu.org>
13134
13135 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
13136 of the message to message_dolog.
13137
13138 * keyboard.c (read_char): Don't clear current message for help
13139 events; let the code handling help events handle this. Change
13140 code detecting help events that should be ignored.
13141
13142 * xdisp.c (handle_single_display_prop): Don't try to set PT if
13143 we're interating over a string.
13144
13145 2000-05-09 Dave Love <fx@gnu.org>
13146
13147 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
13148 that offset before writing. Move gcpro region past call of
13149 Ffile_regular_p.
13150
13151 2000-05-04 Dave Love <fx@gnu.org>
13152
13153 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
13154
13155 2000-05-04 Gerd Moellmann <gerd@gnu.org>
13156
13157 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
13158 of inserted characters when BUF equals the current buffer, and PT
13159 is in front of or equal to FROM.
13160
13161 2000-05-03 Gerd Moellmann <gerd@gnu.org>
13162
13163 * xdisp.c (handle_single_display_prop): If display property value
13164 is invalid, or something not supported on the frame, restore
13165 iterator's position to what it was initially. Make sure to return
13166 0 for invalid and unsupported property values.
13167
13168 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
13169 that x_per_char_metric returns null.
13170
13171 2000-05-02 Gerd Moellmann <gerd@gnu.org>
13172
13173 * xterm.h (struct face): Add forward declaration.
13174 (struct image): Ditto.
13175 (image_ascent): Add prototype.
13176
13177 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
13178 (x_draw_image_relief, x_draw_image_foreground_1): Call function
13179 image_ascent instead of using IMAGE_ASCENT.
13180
13181 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
13182 (IMAGE_ASCENT): Removed.
13183
13184 * xfns.c (Qcenter): New variable.
13185 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
13186 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
13187 (image_ascent): New function.
13188 (lookup_image): Recognize `:ascent center'.
13189 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
13190 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
13191 (xbm_load): Don't set image's ascent here.
13192 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
13193 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
13194 check ascent values here.
13195 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
13196 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
13197 (syms_of_xfns): Initialize Qcenter.
13198
13199 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
13200 to the limits, increase the limits.
13201
13202 2000-05-01 Kenichi Handa <handa@etl.go.jp>
13203
13204 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
13205 Check Vfont_encoding_alist against the full name of the opened font.
13206
13207 2000-04-28 Gerd Moellmann <gerd@gnu.org>
13208
13209 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
13210 taller than the window.
13211
13212 2000-04-28 Kenichi Handa <handa@etl.go.jp>
13213
13214 * xfaces.c (realize_x_face): Fix the argument of the second
13215 xassert. BASE_FACE may not be a face for ASCII.
13216
13217 2000-04-27 Gerd Moellmann <gerd@gnu.org>
13218
13219 * print.c (print_object): Treat print-length < 0 as nil.
13220
13221 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
13222
13223 * s/freebsd.h (TERMCAP_OBJ): Removed.
13224 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
13225
13226 * lread.c (read1): Don't treat period followed by certain
13227 characters as symbol start.
13228
13229 * xfns.c (slurp_file): New function.
13230 (xbm_image_p): Handle case of in-memory XBM files.
13231 (xbm_scan): Rewritten to work on memory buffers instead of files.
13232 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
13233 Work on memory buffers instead of files. If DATA is null test
13234 if buffer looks like an in-memory XBM file.
13235 (xbm_load_image): Renamed from xbm_load_image_file. Work on
13236 memory buffers instead of files.
13237 (xbm_file_p): New function.
13238 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
13239
13240 * lread.c (end_of_file_error): New function.
13241 (read1): Call it instead of signaling `end-of-file' directly.
13242
13243 * print.c (print_error_message): Print data of `end-of-file'
13244 with Fprinc instead of Fprin1.
13245
13246 2000-04-26 Ken Raeburn <raeburn@gnu.org>
13247
13248 * window.c (freeze_window_start): Check that minibuffer scroll
13249 window isn't nil before extracting the window structure pointer
13250 from it.
13251
13252 * undo.c (record_delete): If we hit the end of the undo list, stop
13253 picking elements apart.
13254
13255 2000-04-26 Gerd Moellmann <gerd@gnu.org>
13256
13257 * xdisp.c (display_line): If lines are continued, restore
13258 iterator's ascent/descent information to the values before the
13259 first glyph not fitting on the line.
13260
13261 2000-04-25 Gerd Moellmann <gerd@gnu.org>
13262
13263 * xdisp.c (try_window_id) <all changes above window start>: Adjust
13264 positions in glyph matrix. Don't compute new window end positions.
13265
13266 * dispnew.c (increment_matrix_positions): Renamed from
13267 increment_glyph_matrix_buffer_positions.
13268 (increment_row_positions): Renamed from
13269 increment_glyph_row_buffer_positions.
13270
13271 * dispextern.h: Change names of renamed functions from dispnew.c
13272 in prototypes.
13273
13274 2000-04-24 Gerd Moellmann <gerd@gnu.org>
13275
13276 * fileio.c (Fdo_auto_save): Create directories for auto-save
13277 list file if necessary.
13278
13279 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
13280 from buffer or frame.
13281 (automatic_hscrolling_p): New variable.
13282 (hscroll_windows): Scroll windows horizontally only if automatic
13283 hscrolling is allowed.
13284 (syms_of_xdisp): New variable `automatic-hscrolling'.
13285
13286 * frame.h (struct frame): Add member extra_line_spacing.
13287
13288 * xfns.c (x_set_line_spacing): New function.
13289 (Fx_create_frame): Set line spacing from resources.
13290 (Qline_spacing): New variable.
13291 (syms_of_xfns): Initialize Qline_spacing.
13292
13293 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
13294
13295 * buffer.c (init_buffer_once): Handle extra_line_spacing.
13296 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
13297 (reset_buffer): Don't initialize extra2 and extra3. Initialize
13298 extra_line_spacing from default value.
13299 (init_buffer_once): Initialize default value of extra_line_spacing.
13300
13301 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
13302 and extra3.
13303
13304 * xterm.c (x_produce_glyphs): Remove reference to struct it's
13305 prompt_width. Add extra line spacing.
13306
13307 * term.c (produce_glyphs): Remove reference to struct it's
13308 prompt_width.
13309
13310 * dispextern.h (struct it): Remove member prompt_width, add
13311 extra_line_spacing.
13312
13313 2000-04-22 Gerd Moellmann <gerd@gnu.org>
13314
13315 * dispnew.c (update_frame_line): When writing a whole line, make
13316 sure cursor is in the right row afterwards, otherwise a use of
13317 capability `ch' in cmgoto might leave the cursor in the row below.
13318
13319 2000-04-21 Gerd Moellmann <gerd@gnu.org>
13320
13321 * lisp.h (struct Lisp_Buffer_Cons): Remove.
13322
13323 * keyboard.c (timer_check): Fix typo in comment.
13324
13325 2000-04-21 Kenichi Handa <handa@etl.go.jp>
13326
13327 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
13328 name change: ch -> character.
13329
13330 2000-04-20 Gerd Moellmann <gerd@gnu.org>
13331
13332 * keyboard.c (echo_message_buffer): New variable.
13333 (echo_now): Set echo_message_buffer to the echo area buffer used
13334 to display the echo.
13335 (cancel_echoing): Reset echo_message_buffer to nil.
13336 (read_char): Code rewritten that handles canceling an echo or
13337 echoing a dash, respectively.
13338
13339 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
13340 directory doesn't exist.
13341
13342 2000-04-19 Dave Love <fx@gnu.org>
13343
13344 * fns.c (syms_of_fns): Defsubr mapc.
13345 (concat): Don't allow numeric args.
13346 (Fconcat): Doc change.
13347
13348 2000-04-19 Stefan Monnier <monnier@cs.yale.edu>
13349
13350 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
13351 instead define end_match(1|2) more carefully.
13352 Use GET_CHAR_BEFORE_2 for `begline'.
13353
13354 2000-04-19 Gerd Moellmann <gerd@gnu.org>
13355
13356 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
13357 on 64-bit systems where NULL is defined as `0'.
13358
13359 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
13360 the `variable argument list' to make it work on Alpha.
13361
13362 * m/alpha.h (_LP64) [!_LP64]: Define.
13363 (ORDINARY_LINK): Define for NetBSD.
13364
13365 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
13366
13367 2000-04-19 Dave Love <fx@gnu.org>
13368
13369 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
13370 change.
13371
13372 * Makefile.in (LIBS): Don't use.
13373 (GETLOADAVG_OBJ): Define again.
13374 (otherobj): Add GETLOADAVG_OBJ.
13375
13376 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
13377
13378 2000-04-18 Gerd Moellmann <gerd@gnu.org>
13379
13380 * lread.c (read_filtered_event): Cancel and start busy cursor.
13381
13382 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
13383 that the per-character metrics may be null.
13384
13385 2000-04-17 Gerd Moellmann <gerd@gnu.org>
13386
13387 * buffer.c (clone_per_buffer_values): New function.
13388 (Fmake_indirect_buffer): Add optional argument CLONE. Call
13389 clone_per_buffer_values if CLONE is not nil.
13390
13391 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
13392
13393 2000-04-16 Dave Love <fx@gnu.org>
13394
13395 * Makefile.in: Remove obsolete localcpp stuff.
13396 (GETLOADAVG_OBJ): Don't define.
13397 (obj): Move LIBOBJS...
13398 (otherobj): ... to here.
13399 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
13400 whitespace-only lines after the continuation (Irix).
13401
13402 2000-04-14 Gerd Moellmann <gerd@gnu.org>
13403
13404 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
13405
13406 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
13407
13408 2000-04-14 Dave Love <fx@gnu.org>
13409
13410 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
13411 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
13412 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
13413 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
13414 NLIST_STRUCT.
13415
13416 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
13417 autoconfiscated HAVE_GETLOADAVG.
13418
13419 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
13420 BROKEN_MKTIME.
13421
13422 2000-04-14 Gerd Moellmann <gerd@gnu.org>
13423
13424 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
13425 (fill_in_lock_file_name): Avoid existing files that aren't links.
13426
13427 2000-04-14 Dave Love <fx@gnu.org>
13428
13429 * Makefile.in (LIBS, LIBOBJS): New variable.
13430 (INTERVAL_SRC): Convert to make variable.
13431 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
13432 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
13433 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
13434 add LIBOBJS.
13435 (SOME_MACHINE_OBJECTS): Remove interval stuff.
13436 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
13437 (shortlisp): Add facemenu, float-sup, frame.
13438 (SOME_MACHINE_LISP): Remove them from here.
13439 (LIBES): Change unused LDLIBS to autoconf LIBS.
13440
13441 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
13442
13443 2000-04-14 Kenichi Handa <handa@etl.go.jp>
13444
13445 * composite.c (update_compositions): If FROM and TO are not in a
13446 valid range, do nothing.
13447
13448 2000-04-13 Gerd Moellmann <gerd@gnu.org>
13449
13450 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
13451
13452 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
13453
13454 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
13455 as TERMCAP_OBJ.
13456
13457 2000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
13458
13459 * fileio.c (a_write): Remove redundant semi-colons.
13460 (e_write): Return -1 if failed to write all the data.
13461 This fixes the changes made at 1999-12-15.
13462
13463 2000-04-12 Dave Love <fx@gnu.org>
13464
13465 * fns.c (mapcar1): Test for null vals to support mapc.
13466 (Fmapc): New function.
13467
13468 2000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
13469
13470 * msdos.c (NUM_MOUSE_BUTTONS): Define.
13471 (IT_frame_up_to_date): Support the buffer local value of
13472 cursor-type, if defined.
13473
13474 2000-04-10 Dave Love <fx@gnu.org>
13475
13476 * editfns.c (preceding-char, following-char): Doc fix.
13477
13478 2000-04-10 Ken Raeburn <raeburn@gnu.org>
13479
13480 * Makefile.in (temacs): Revert 2000-03-12 change.
13481
13482 2000-04-10 Jason Rumney <jasonr@gnu.org>
13483
13484 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
13485
13486 2000-04-10 Gerd Moellmann <gerd@gnu.org>
13487
13488 * xdisp.c (setup_echo_area_for_printing): Choose an echo
13489 area buffer, if it's not set up yet.
13490
13491 * indent.c (compute_motion): Set immediate_quit.
13492
13493 2000-04-09 Gerd Moellmann <gerd@gnu.org>
13494
13495 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
13496 (realize_tty_face): Suppress boldness if colors are the inverse of
13497 the default colors, and tty_suppress_bold_inverse_default_colors_p
13498 is set.
13499 (Ftty_suppress_bold_inverse_default_colors): New function.
13500 (syms_of_xfaces): Defsubr it.
13501
13502 * buffer.c (Frestore_buffer_modified_p): New function.
13503 (syms_of_buffer): Defsubr it.
13504
13505 2000-04-08 Ken Raeburn <raeburn@gnu.org>
13506
13507 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
13508 charset id (int) argument, not a charset (Lisp_Object).
13509
13510 * coding.h (code_convert_string): Declare.
13511 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
13512 object, as the fourth argument to code_convert_string.
13513
13514 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
13515 (Fset_fontset_font): Use EQ to compare lisp objects.
13516
13517 2000-04-05 Ken Raeburn <raeburn@gnu.org>
13518
13519 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
13520 a pointer that looks like a lisp object.
13521 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
13522 zero, instead see whether it's an integer object, since they can't
13523 have intervals.
13524 (GET_INTERVAL_OBJECT): Simply assign to the destination.
13525
13526 * dispnew.c (allocate_matrices_for_frame_redisplay)
13527 (direct_output_forward_char): Use X(U)INT and make_number as needed
13528 to convert between (unsigned) int values and lisp integers.
13529 * keyboard.c (read_key_sequence): Likewise.
13530 * lread.c (substitute_object_recurse): Likewise.
13531 * fns.c (concat, hash_lookup, hash_remove): Likewise.
13532 * minibuf.c (do_completion, Fminibuffer_complete_word)
13533 (Fminibuffer_completion_help): Likewise.
13534 * term.c (produce_special_glyphs): Likewise.
13535
13536 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
13537 * print.c (print_preprocess, print_object): Likewise.
13538
13539 * search.c (compile_pattern): Use NILP when checking for nil.
13540
13541 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
13542 __OPTIMIZE__]: Provide a GNU C macro version that handles
13543 lisp-object unions.
13544 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
13545 field, to better cope with ENABLE_CHECKING and calls that modify a
13546 Lisp_Object using its old value.
13547
13548 2000-04-04 Gerd Moellmann <gerd@gnu.org>
13549
13550 * window.c (compare_window_configurations): Signal an error
13551 if parameters C1 or C2 aren't window configurations.
13552
13553 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
13554 AFTER_POTENTIAL_GC calls around calls to functions that can
13555 signal an error and thus invoke the debugger.
13556
13557 2000-04-03 Gerd Moellmann <gerd@gnu.org>
13558
13559 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
13560 an error if decoding fails.
13561
13562 * keyboard.c (lispy_mouse_names): Variable removed.
13563 (Vlispy_mouse_stem): New variable.
13564 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
13565 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
13566 for any mouse button number. Increase size of mouse_syms and
13567 button_down_location as needed. Call modify_event_symbol with
13568 different arguments.
13569 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
13570 Call modify_event_symbol with different arguments.
13571 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
13572 for any button number. Call modify_event_symbol with different
13573 arguments.
13574 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
13575 Accept a string for NAME_ALIST_OR_STEM.
13576
13577 * lisp.h (larger_vector): Add prototype.
13578
13579 * fns.c (larger_vector): Make externally visible.
13580
13581 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
13582
13583 2000-04-02 Stefan Monnier <monnier@cs.yale.edu>
13584
13585 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
13586 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
13587 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
13588 we are between str1 and str2.
13589 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
13590 (PATFETCH): Use `TRANSLATE'.
13591 (PATFETCH_RAW): Fetch multibyte char if applicable.
13592 (PATUNFETCH): Remove.
13593 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
13594 When writing a char, write it directly into the pattern buffer rather
13595 than going needlessly through a temp char-array.
13596 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
13597 multibyte magic and remove the useless `#ifdef emacs'.
13598 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
13599 buffer.
13600
13601 * regex.h (struct re_pattern_buffer): Make field `multibyte'
13602 conditional on `emacs'.
13603
13604 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
13605
13606 2000-04-01 Ken Raeburn <raeburn@gnu.org>
13607
13608 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
13609 non-union-type versions of XMARK and friends here, because XMARK
13610 and friends won't work on an integer field if NO_UNION_TYPE is not
13611 defined.
13612 (make_number): Define as a function if it's not defined as a macro.
13613
13614 * composite.c (run_composite_function): Use NILP when checking for nil.
13615 (syms_of_composite): Delete local var NARGS, pass an int as first
13616 argument to Fmake_hash_table.
13617
13618 * editfns.c (text_property_stickiness): Use NILP to test
13619 Lisp_Object boolean value.
13620 (Fmessage_or_box): Don't use NILP to test int variable.
13621 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
13622 problems reading from and changing the same lisp value in an
13623 XSETSTRING call.
13624
13625 2000-04-01 Gerd Moellmann <gerd@gnu.org>
13626
13627 * term.c (TN_no_color_video): New variable.
13628 (term_init): Intitialize TN_no_color_video.
13629 (enum no_color_bit): New enumeration.
13630 (MAY_USE_WITH_COLORS_P): New macro.
13631 (turn_on_face): Use it to determine if attributes may be used
13632 combined with colors.
13633
13634 2000-04-01 Ken Raeburn <raeburn@gnu.org>
13635
13636 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
13637 with int lvalues via casts; instead, just yield lisp object lvalues.
13638 (enlarge_window): Variable sizep now points to Lisp_Object. Use
13639 proper accessor macros.
13640 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
13641 (grow_mini_window): Fix typo getting int value of root->height.
13642
13643 * xdisp.c (compute_string_pos): Fix order of arguments to
13644 string_pos_nchars_ahead.
13645 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
13646 count arg to variable-arg routines like Frun_hook_with_args and
13647 Fformat.
13648 (back_to_previous_visible_line_start)
13649 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
13650 fixed-arg routines like Fget_char_property and Fmake_string.
13651 (reconsider_clip_changes): Use XINT when comparing integer lisp
13652 objects, or passing them as int arguments.
13653 (mark_window_display_accurate, insert_left_trunc_glyphs)
13654 (append_space, extend_face_to_end_of_line): Use make_number when
13655 storing or passing integer values as lisp objects.
13656 (set_cursor_from_row, highlight_trailing_whitespace): Use
13657 INTEGERP, not implicit test against zero, for glyph object.
13658 (try_window_id): Don't use make_number when we want an int value.
13659
13660 * xfaces.c (xlfd_symbolic_value): Make last argument a
13661 Lisp_Object, to be consistent with callers.
13662 (Fbitmap_spec_p): Use XINT to get numeric value of height.
13663 (lface_hash): Apply XFASTINT to lisp values before folding in.
13664
13665 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
13666 fill in window width and height. Pass an int, not a lisp object,
13667 as first arg to Finsert.
13668
13669 2000-04-01 Gerd Moellmann <gerd@gnu.org>
13670
13671 * xfaces.c (realize_basic_faces): Block input while realizing
13672 the faces.
13673
13674 * keyboard.c (lispy_mouse_names): Add additional mouse names.
13675
13676 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
13677
13678 2000-03-31 Gerd Moellmann <gerd@gnu.org>
13679
13680 * xterm.c (x_produce_glyphs): When displaying unibyte text
13681 or ASCII, handle case that per-char metric is null.
13682
13683 2000-03-30 Ken Raeburn <raeburn@gnu.org>
13684
13685 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
13686
13687 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
13688 (XSUBR, XBUFFER): Verify correct object type before returning
13689 pointer, using eassert.
13690 * frame.h (XFRAME): Likewise.
13691
13692 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
13693 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
13694 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
13695 * data.c (set_internal): Likewise.
13696 * dispextern.h (WINDOW_WANTS_MODELINE_P)
13697 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
13698 * fileio.c (auto_save_1): Likewise.
13699 * insdel.c (check_markers): Likewise.
13700 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
13701 * undo.c (record_insert): Likewise.
13702 * vmsproc.c (child_sig): Likewise.
13703 * window.c (unshow_buffer, window_loop): Likewise.
13704 * xterm.c (x_erase_phys_cursor): Likewise.
13705
13706 2000-03-30 Gerd Moellmann <gerd@gnu.org>
13707
13708 * xfns.c (free_image_cache): Free the cache structure itself
13709 last, after all its members have been freed.
13710
13711 * lisp.h (xstrdup): Add prototype.
13712
13713 * alloc.c (xstrdup): Moved here from xfaces.c.
13714 (allocating_for_lisp): Variable removed.
13715 (lisp_malloc): Block input around the calls to malloc and mem_insert.
13716
13717 * xfaces.c (realize_tty_face): Use find_symbol_value instead
13718 of Fsymbol_value.
13719 (xstrdup): Moved to alloc.c.
13720
13721 2000-03-29 Ken Raeburn <raeburn@gnu.org>
13722
13723 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
13724
13725 * emacs.c (main): Fix sense of no-loadup test.
13726
13727 * config.in (ENABLE_CHECKING): Undef.
13728
13729 * lisp.h (struct interval): Replace "parent" field with a union of
13730 interval pointer and Lisp_Object; add new bitfield to use as
13731 discriminant. Change other flag fields to bitfields.
13732 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
13733 is defined and the supplied test fails, print a message and abort.
13734 (eassert): New macro. Use CHECK to provide an assert-like facility.
13735
13736 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
13737 pointers; abort if the value looks like a lisp object.
13738 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
13739 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
13740 Modify for new interval parent definition.
13741
13742 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
13743 (UNMARK_BALANCE_INTERVALS): Update references that need an
13744 addressable lisp object in the interval structure.
13745 (die): New function.
13746 (suppress_checking): New variable.
13747
13748 * intervals.c (interval_start_pos): Just return 0 if there's no
13749 parent object.
13750
13751 2000-03-29 Gerd Moellmann <gerd@gnu.org>
13752
13753 * lread.c (read1): Accept `.' (period) as symbol start like in CL
13754 and earlier Emacs versions.
13755
13756 * keyboard.c (Ftop_level): Cancel busy-cursor.
13757
13758 * eval.c (call_debugger): Cancel busy-cursor.
13759
13760 2000-03-29 Kenichi Handa <handa@etl.go.jp>
13761
13762 * search.c (Freplace_match): Adjust multibyteness of the current
13763 buffer and NEWTEXT. Free allocated memory before signaling an error.
13764
13765 2000-03-28 Stefan Monnier <monnier@cs.yale.edu>
13766
13767 * regex.c (analyse_first): New function obtained by ripping out most
13768 of re_compile_fastmap and generalizing it a little bit so that it
13769 can also just return whether a given (sub)pattern can match the empty
13770 string or not.
13771 (regex_compile): Use `analyse_first' to decide whether the loop-check
13772 needs to be done or not for *, +, *? and +? (the loop check is costly
13773 for non-greedy repetition).
13774 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
13775
13776 2000-03-28 Dave Love <fx@gnu.org>
13777
13778 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
13779
13780 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
13781
13782 2000-03-27 Stefan Monnier <monnier@cs.yale.edu>
13783
13784 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
13785 an expression.
13786 (enum re_opcode_t): Update description of succeed_n.
13787 (PATFETCH): Always define.
13788 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
13789 operators, char classes, shy-groups and intervals).
13790 Optimize special cases of intervals so as to only use succeed_n and
13791 jump_n when really needed.
13792 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
13793 that we don't have to handle the special cases any more.
13794 Simplify on_failure_jump handling as well.
13795
13796 2000-03-28 Jason Rumney <jasonr@gnu.org>
13797
13798 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
13799
13800 2000-03-27 Gerd Moellmann <gerd@gnu.org>
13801
13802 * s/freebsd.h (GC_SETJMP_WORKS): Define.
13803
13804 * s/msdos.h (GC_SETJMP_WORKS): Define.
13805
13806 * alloc.c (mark_maybe_object): New function.
13807 (mark_memory): Use it.
13808 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
13809 (setjmp_tested_p, longjmp_done): New variables.
13810 (test_setjmp): New function.
13811 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
13812 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
13813
13814 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
13815 to DEC_TEXT_POS and INC_TEXT_POS.
13816
13817 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
13818 with parameter MULTIBYTE_P.
13819
13820 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
13821
13822 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
13823 buffers because it looks for multibyte character byte sequences
13824 which don't exist in unibyte text.
13825
13826 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
13827
13828 * xfaces.c (register_color, unregister_color, unregister_colors)
13829 [DEBUG_X_COLORS]: New functions.
13830 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
13831
13832 * xfns.c (x_set_cursor_color): Get color reference counts right.
13833
13834 * xterm.c (x_copy_color): New function.
13835 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
13836
13837 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
13838 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
13839 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
13840 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
13841 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
13842 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
13843 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
13844 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
13845 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
13846 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
13847
13848 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
13849 names for handling per-buffer variables.
13850
13851 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
13852 instead of MAX_BUFFER_LOCAL_VARS.
13853 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
13854
13855 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
13856
13857 * xfns.c (x_specified_cursor_type): New function.
13858 (x_set_cursor_type): Use it.
13859
13860 * buffer.h (struct buffer): Add cursor_type.
13861
13862 2000-03-26 Stefan Monnier <monnier@cs.yale.edu>
13863
13864 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
13865 (print_partial_compiled_pattern, re_compile_fastmap):
13866 Handle new opcode.
13867 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
13868 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
13869 executing it as well as when popping it off the stack to find infinite
13870 loops in non-greedy repetition operators.
13871
13872 2000-03-26 Gerd Moellmann <gerd@gnu.org>
13873
13874 * doc.c (Qfunction_documentation): New variable.
13875 (syms_of_doc): Initialize Qfunction_documentation.
13876 (Fdocumentation): If FUNCTION is a symbol with non-nil
13877 `function-documentation' property, return a documentation derived
13878 from that.
13879
13880 * buffer.c (syms_of_buffer): Add default-cursor-type.
13881 (init_buffer_once): Don't let cursor_type have a local value
13882 in every buffer.
13883
13884 * xterm.c (x_display_and_set_cursor): Choose cursor depending
13885 on buffer-local value of cursor_type.
13886 (x_draw_bar_cursor): Add parameter WIDTH.
13887
13888 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
13889 (init_buffer_once): Set default cursor_type value to t.
13890 Mark cursor_type as local everywhere.
13891 (syms_of_buffer): New per-buffer variable cursor-type.
13892
13893 * buffer.h (struct buffer): Remove member local_var_flags,
13894 add local_flags.
13895 (MAX_BUFFER_LOCAL_VARS): New macro.
13896 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
13897 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
13898 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
13899 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
13900
13901 * print.c (print_object): Use new macros for per-buffer variables.
13902
13903 * category.c (Fset_category_table): Use new macros for per-buffer
13904 variables.
13905
13906 * buffer.c (buffer_permanent_local_flags): Make a char array.
13907 (max_buffer_local_idx): New variable.
13908 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
13909 for new handling of per-buffer variables.
13910 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
13911 (init_buffer_once): Initialize per-buffer vars differently.
13912 Set max_buffer_local_idx.
13913
13914 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
13915 variables.
13916
13917 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
13918
13919 * data.c (do_symval_forwarding, store_symval_forwarding)
13920 (find_symbol_value, set_internal, default_value, Fset_default)
13921 (Fkill_local_variable, Flocal_variable_p): Use new macros for
13922 per-buffer variables.
13923
13924 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
13925
13926 2000-03-24 Gerd Moellmann <gerd@gnu.org>
13927
13928 * xterm.c (x_term_init): Unblock input around call1 of
13929 Qvendor_specific_keysyms.
13930
13931 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
13932 (find_defun_start): Consider an open parenthesis in column 0
13933 a defun start only if open_paren_in_column_0_is_defun_start is set.
13934 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
13935
13936 2000-03-24 Stefan Monnier <monnier@cs.yale.edu>
13937
13938 * eval.c (Fautoload): Add entry in load-history (if after dump).
13939 * lread.c (load-history): Update docstring.
13940
13941 2000-03-24 Gerd Moellmann <gerd@gnu.org>
13942
13943 * indent.c (Fvertical_motion): Always use the current buffer.
13944 Temporarily change the window's buffer, if necessary.
13945
13946 2000-03-23 Gerd Moellmann <gerd@gnu.org>
13947
13948 * xterm.c (fast_find_position): Make sure not to consider rows
13949 not visible in the window.
13950
13951 2000-03-22 Stefan Monnier <monnier@cs.yale.edu>
13952
13953 * regex.c (enum syntaxcode): Provide default for non-Emacs.
13954 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
13955
13956 2000-03-22 Jason Rumney <jasonr@gnu.org>
13957
13958 * w32menu.c (single_submenu): Set help string to NULL if none.
13959 (w32_menu_show): Set help string correctly.
13960 (add-menu-item): Set help string in MIIM_DATA for menu item.
13961 Load SetMenuItemInfoA explicitly.
13962 (w32_menu_display_help): New function.
13963
13964 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
13965 (QCdata): Moved to xdisp.c.
13966
13967 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
13968 (Vw32_charset_to_codepage_alist): Removed.
13969 (Vw32_charset_info_alist): New variable.
13970 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
13971 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
13972 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
13973 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
13974 with TODO comment.
13975 (w32_codepage_for_font): Use Vw32_charset_info_alist.
13976 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
13977 Define Vw32_charset_info_alist and w32_charset symbols.
13978
13979 2000-03-22 Jason Rumney <jasonr@gnu.org>
13980
13981 * makefile.nt (w32bdf.obj): Update dependencies.
13982
13983 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
13984
13985 * w32fns.c: Include fontset.h after dispextern.h.
13986 (Fx_create_frame): Do not create fontset.
13987 (w32_load_system_font): Doc fix.
13988 (Fx_close_connection): Free full_name if it is not shared.
13989
13990 * w32term.c: Include fontset.h after dispextern.h.
13991 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
13992 Callers updated.
13993 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
13994 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
13995 (w32_font_is_double_byte): New function, needs body.
13996 (x_append_glyph): Set glyph->glyph_not_available_p.
13997 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
13998 it->charset. If it->multibyte_p is zero and it->c is a multibyte
13999 character, convert it to a unibyte character.
14000 (struct glyph_string): Delete member `charset'.
14001 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
14002 calculating it is found.
14003 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
14004 the case that per char metric is not available correctly.
14005 (x_fill_glyph_string): Handle the case that the specific glyph is
14006 not available correctly.
14007 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
14008 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
14009 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
14010 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
14011 fontset. Don't call FS_LOAD_FONT.
14012
14013 2000-03-22 Ken Raeburn <raeburn@gnu.org>
14014
14015 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
14016 (INT_LISPLIKE): New macro.
14017 (NULL_INTERVAL_P): Use it.
14018 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
14019 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
14020 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
14021
14022 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
14023 explicit references to "parent" field of struct interval and
14024 associated unclean type conversions.
14025 * intervals.c (create_root_interval, root_interval, rotate_right)
14026 (rotate_left, balance_possible_root_interval, split_interval_right)
14027 (split_interval_left, interval_start_pos, find_interval)
14028 (next_interval, previous_interval, update_interval)
14029 (adjust_intervals_for_insertion, delete_node, delete_interval)
14030 (adjust_intervals_for_deletion, merge_interval_right)
14031 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
14032 (copy_intervals_to_string): Likewise.
14033 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
14034 Likewise.
14035 * syntax.c (update_syntax_table): Likewise.
14036
14037 * intervals.c (reproduce_tree_obj): New function, like
14038 reproduce_tree but takes a Lisp_Object for the parent. Declare
14039 with prototype.
14040 (graft_intervals_into_buffer): Use it when appropriate.
14041 (reproduce_tree): Declare with prototype.
14042 (balance_possible_root_interval): Check that the parent is a lisp
14043 object before trying to examine its type.
14044
14045 2000-03-22 Gerd Moellmann <gerd@gnu.org>
14046
14047 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
14048 as strings only if both are known to be strings.
14049
14050 * s/openbsd.h (LIBS_TERMCAP): Undef.
14051
14052 2000-03-21 Stefan Monnier <monnier@cs.yale.edu>
14053
14054 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
14055 definitions for non-Emacs compilation.
14056 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
14057 outside of `#ifdef emacs'.
14058 (print_partial_compiled_pattern): Update.
14059 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
14060 (re_compile_fastmap): Merge handling of charset and charset_not (for
14061 emacs and non-emacs compilation as well).
14062 Similarly for (not)categoryspec and (not)syntaxspec.
14063 Don't use the fastmap when reaching `anychar' since the added
14064 complexity is not justified.
14065 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
14066 and (not)syntaxspec. Merge (not)categoryspec.
14067
14068 2000-03-22 Kenichi Handa <handa@etl.go.jp>
14069
14070 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
14071 (FACE_FOR_CHAR): Define them differently for the configuration of
14072 --without-x.
14073
14074 2000-03-21 Dave Love <fx@gnu.org>
14075
14076 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
14077 doc string.
14078
14079 2000-03-21 Gerd Moellmann <gerd@gnu.org>
14080
14081 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
14082 (lface_fully_specified_p): Don't check contents of
14083 LFACE_FONT_INDEX because that attribute is optional.
14084 (realize_x_face): Remove now unwarranted xassert.
14085
14086 2000-03-21 Kenichi HANDA <handa@etl.go.jp>
14087
14088 The following changes are to make font selection based on
14089 characters, not charset. In addition, they recover fontset
14090 facilities while utilizing the new font selection mechanism.
14091
14092 * Makefile.in (fontset.o): Depend on dispextern.h.
14093
14094 * alloc.c (mark_face_cache): Don't mark face->registry.
14095
14096 * dispextern.h (struct glyph): New member glyph_not_available_p.
14097 Use 22 bits for face_id.
14098 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
14099 (struct face): Delete member registry, new member ascii_face.
14100 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
14101 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
14102 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
14103 (struct it): Delete member charset, new member glyph_not_available_p.
14104
14105 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
14106 (struct fontset_info, struct fontset_data): Structs removed.
14107 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
14108 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
14109 (fs_load_font, fs_query_fontset): Adjusted for new argument.
14110 (fs_free_face_fontset, fontset_font_pattern)
14111 (face_suitable_for_char_p, face_for_char)
14112 (make_fontset_for_ascii_face): Extern them.
14113 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
14114 (FS_LOAD_FACE_FONT): New macro.
14115
14116 * fontset.c: All codes rewritten or adjusted for the change of
14117 fontset implementation. Now fontset is represented by char table.
14118 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
14119 Variables removed.
14120 (my_strcasecmp): Function removed.
14121 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
14122 (AREF, ASIZE): New macros.
14123 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
14124 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
14125 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
14126 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
14127 (fontset_id_valid_p, font_family_registry, fontset_name)
14128 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
14129 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
14130 New functions.
14131 (fs_load_font): New arg FACE. Caller changed.
14132 (fs_query_fontset): Argument changed. Caller changed.
14133 (Fquery_fontset): call fs_query_fontset.
14134 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
14135 Functions removed.
14136 (clear_fontset_elements, check_registry_encoding)
14137 (check_fontset_name): New functions.
14138 (syms_of_fontset): Set char-table-extra-slots property of fontset
14139 to 3. Staticpro and initialize Vfontset_table and
14140 Vdefault_fontset. Defsubr fontset_font and fontset_list.
14141
14142 * frame.h (struct frame): Member `fontset_data' removed.
14143 (FRAME_FONTSET_DATA): Macro removed.
14144
14145 * frame.c (make_frame): Don't allocate f->fontset_data.
14146 (Fdelete_frame): Don't free f->fontset_data.
14147
14148 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
14149
14150 * xdisp.c (charset_at_position): Function removed.
14151 (init_iterator): Don't set member charset of struct `it'.
14152 (handle_face_prop, reseat_to_string, set_iterator_to_next)
14153 (next_element_from_display_vector, insert_left_trunc_glyphs):
14154 Likewise.
14155 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
14156 FACE_FOR_CHARSET.
14157 (get_next_display_element, append_space)
14158 (extend_face_to_end_of_line): Likewise.
14159
14160 * xfaces.c (Qx_charset_registry, Vface_default_registry):
14161 Variables removed.
14162 (clear_font_table, frame_update_line_height, load_face_font):
14163 Adjusted for the change of fontset implementation.
14164 (load_face_fontset_font): Function removed.
14165 (pixel_point_size): New function.
14166 (font_list): Argument type changed. Caller changed.
14167 (LFACE_FONT): New macro.
14168 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
14169 (set_lface_from_font_name): Type of arg FONTNAME is changed to
14170 Lisp_Object. Determine the font name by actually loading a font
14171 by the specified pattern. Set LFACE_FONT (lface) to the specified
14172 pattern. Even if a font is not found, don't try alternatives.
14173 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
14174 (set_font_frame_param): If `font' is specified in lface, use it.
14175 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
14176 (lface_same_font_attributes_p): Likewise.
14177 (make_realized_face): Arguent changed. Caller changed. Set
14178 face->ascii_face to face itself.
14179 (free_realized_face): Free face->fontset if face is for ASCII.
14180 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
14181 (deduce_unibyte_registry, x_charset_registry): Functions removed.
14182 (free_realized_multibyte_face): New function.
14183 (lookup_face, lookup_named_face, lookup_derived_face): Argument
14184 changed. Caller changed.
14185 (try_font_list): Argument type changed.
14186 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
14187 (choose_face_font): Argument changed. Handle fontset properly.
14188 (choose_face_fontset_font): Function removed.
14189 (realize_default_face, realize_named_face): Don't remove the
14190 former face here.
14191 (realize_face): Argument changed. Caller changed. Remove face
14192 with the arg former_face_id in advance. Load font for the new face.
14193 (realize_x_face): Argument changed. Caller changed. For a
14194 multibyte character, share fontset with base_face. For a single
14195 byte character, make a new realized fontset. Don't load a font here.
14196 (realize_tty_face): Argument changed. Caller changed.
14197 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
14198 (face_at_buffer_position): Don't check multibyte_p for returning
14199 DEFAULT_FACE_ID.
14200 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
14201 FACE_SUITABLE_FOR_CHARSET_P.
14202 (syms_of_xfaces): Remove code for Qx_charset_registry and
14203 Vface_default_registry.
14204
14205 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
14206 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
14207 (x_per_char_metric): Don't try FONT->default_char. Even if
14208 pcm->width is zero, glyph bits may exist.
14209 (x_encode_char): Always initialize char2b->byte1.
14210 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
14211 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
14212 (x_append_glyph): Set glyph->glyph_not_available_p.
14213 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
14214 it->charset. Handle the case that per char metric is not
14215 available. If it->multibyte_p is zero and it->c is a multibyte
14216 character, convert it to a unibyte character.
14217 (struct glyph_string): Delete member `charset'.
14218 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
14219 the case that per char metric is not available correctly.
14220 (x_fill_glyph_string): Handle the case that the specific glyph is
14221 not available correctly.
14222 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
14223 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
14224 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
14225 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
14226 fontset. Don't call FS_LOAD_FONT.
14227
14228 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
14229 (x_create_tip_frame): Likewise.
14230 (Fx_close_connection): Free full_name of font_info.
14231
14232 * fns.c (optimize_sub_char_table): New function.
14233 (Foptimize_char_table): New function.
14234 (syms_of_fns): Defsubr Soptimize_char_table.
14235
14236 2000-03-20 Gerd Moellmann <gerd@gnu.org>
14237
14238 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
14239 only if buffer is displayed in some window.
14240
14241 * xdisp.c (handle_single_display_prop): Initialize local `value'.
14242 (try_window_reusing_current_matrix): Don't call scroll run
14243 function if run's current and desired position are the same;
14244 this prevents cursor flickering.
14245
14246 2000-03-19 Stefan Monnier <monnier@cs.yale.edu>
14247
14248 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
14249
14250 * regex.c (RE_STRING_CHAR): New macro.
14251 (GET_CHAR_AFER_2): Remove.
14252 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
14253 (enum re_opcode_t): Remove on_failure_jump_exclusive.
14254 (print_partial_compiled_pattern, re_compile_fastmap)
14255 (re_match_2_internal): Remove on_failure_jump_exclusive.
14256 (regex_compile): Turn optimizable P+ loops into PP*, so that the
14257 optimization only need to work for * (ie. can use of_keep_string_jump).
14258 Remove the special case for .*\n since it is now covered by the general
14259 optimization.
14260 (re_search_2): Don't bother with `room'.
14261 (skip_one_char): New function.
14262 (skip_noops): Simplify since `memory' is not needed any more.
14263 (mutually_exclusive_p): Restructure slightly to use `switch' and
14264 add handling for "all" remaining cases.
14265 (re_match_2_internal): Change on_failure_jump_smart to use
14266 on_failure_keep_string_jump (and redirect the end-of-loop jump)
14267 rather than on_failure_jump_exclusive.
14268
14269 2000-03-19 Gerd Moellmann <gerd@gnu.org>
14270
14271 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
14272 number of bits per RGB because it's everywhere used as the depth
14273 of the visual.
14274
14275 * term.c (calculate_costs): Remove code dealing with X frames.
14276
14277 2000-03-19 Richard M. Stallman <rms@gnu.org>
14278
14279 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
14280
14281 2000-03-18 Gerd Moellmann <gerd@gnu.org>
14282
14283 * lread.c (read_integer): Unread the last char not consumed.
14284
14285 2000-03-17 Gerd Moellmann <gerd@gnu.org>
14286
14287 * xterm.c (x_update_window_cursor): Don't update in frames
14288 which are in the process of being deleted.
14289
14290 2000-03-16 Gerd Moellmann <gerd@gnu.org>
14291
14292 * Makefile.in (mostlyclean): Add `*.core'.
14293 (clean): Add `bootstrap-emacs'.
14294
14295 * lread.c (read_integer): New function.
14296 (read1): Support read syntax #o, #x, #b, #r.
14297
14298 2000-03-15 Stefan Monnier <monnier@cs.yale.edu>
14299
14300 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
14301 make sure POINTER_TO_OFFSET gives the same value before and after
14302 PREFETCH. Use `dfail' to guarantee "atomic" matching.
14303 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
14304 (debug): Now only active if > 0 rather than if != 0.
14305 (DEBUG_*): Update for the new meaning of `debug'.
14306 (print_partial_compiled_pattern): Add missing `succeed' case. Use
14307 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
14308 in `succeed_n', `jump_n' and `set_number_at'.
14309 (store_op1, store_op2, insert_op1, insert_op2)
14310 (at_begline_loc_p, at_endline_loc_p): Add prototype.
14311 (group_in_compile_stack): Move to after its arg's types are
14312 declared and add a prototype.
14313 (PATFETCH): Define in terms of PATFETCH_RAW.
14314 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
14315 (QUIT): Redefine as a nop except for NTemacs.
14316 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
14317 indentation of the greedy-op and shy-group code.
14318 (at_(beg|end)line_loc_p): Fix argument's types.
14319 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
14320 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
14321 (MATCHING_IN_FIRST_STRING): Remove.
14322 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
14323 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
14324 QUIT unconditionally.
14325
14326 2000-03-15 Gerd Moellmann <gerd@gnu.org>
14327
14328 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
14329 a sole completion.
14330
14331 * process.c (send_process): Add a hint that the function
14332 can call Lisp code to its comment.
14333
14334 * lread.c (load_dangerous_libraries): New variable.
14335 (Vbytecomp_version_regexp): New variable.
14336 (safe_to_load_p): New function.
14337 (Fload): Handle files not compiled with Emacs specially.
14338 (syms_of_lread): New Lisp variable load-dangerous-libraries.
14339
14340 2000-03-14 Gerd Moellmann <gerd@gnu.org>
14341
14342 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
14343
14344 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
14345 support functions only if HAVE_X11R6_XIM is defined.
14346 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
14347
14348 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
14349
14350 * xfns.c (X_I18N_INHIBITED): Don't define.
14351 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
14352 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
14353
14354 * config.in (HAVE_X_I18N): Moved here from xterm.h.
14355 (HAVE_X11R6_XIM): Define.
14356
14357 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
14358
14359 * xterm.c (x_term_init): Add support for X resource `synchronous'.
14360 If set, call XSynchronize.
14361
14362 2000-03-13 Stefan Monnier <monnier@cs.yale.edu>
14363
14364 * regex.c: Declare a new type `re_char' used throughout the code
14365 for the string char type. It's `const unsigned char' to match the
14366 rest of Emacs. Consistently make sure all pointers to strings use
14367 it and make sure all pointers into the pattern use `unsigned char'.
14368 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
14369 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
14370 code duplication.
14371
14372 * charset.h (GET_CHAR_AFTER_2): Remove.
14373 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
14374
14375 2000-03-12 Ken Raeburn <raeburn@gnu.org>
14376
14377 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
14378 variable before the invocation of YMF_PASS_LDFLAGS, in case both
14379 of them try to use backquotes.
14380
14381 2000-03-12 Dave Love <fx@gnu.org>
14382
14383 * unexelf.c: Restore changes of 1999-10-19.
14384 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
14385 fix its type and alignment; copy it from current process.
14386
14387 2000-03-12 Gerd Moellmann <gerd@gnu.org>
14388
14389 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
14390 has been found. Fix bug not computing timer's predecessor.
14391
14392 * fileio.c (Fread_file_name): Handle case that DIR contains a
14393 file name.
14394
14395 * window.c (Fsave_window_excursion): Doc fix.
14396
14397 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
14398
14399 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
14400
14401 * msdos.c (vga_installed): New function, code moved from
14402 dos_set_window_size.
14403 (Qbar, Qcursor_type, outside_cursor): New variables.
14404 (syms_of_msdos): Intern and staticpro them.
14405 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
14406 shape used outside Emacs when called for the first time.
14407 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
14408 cursor shape used outside Emacs.
14409 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
14410 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
14411 type has changed.
14412 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
14413 parameters specify the cursor. Make qreverse a global
14414 variable (renamed to Qreverse).
14415
14416 2000-03-09 Gerd Moellmann <gerd@gnu.org>
14417
14418 * fns.c (Fy_or_n_p): Cancel busy-cursor.
14419
14420 2000-03-08 Stefan Monnier <monnier@cs.yale.edu>
14421
14422 This is a big redesign of failure-stack and register handling, prompted
14423 by bugs revealed when trying to add shy-groups. Overall, what happened
14424 is that loops are now structured a little differently, groups can be
14425 shy and the code is a little simpler.
14426
14427 * regex.h: Update the copyright.
14428 (RE_SHY_GROUPS): New value.
14429 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
14430 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
14431
14432 * regex.c (enum re_opcode_t): Remove jump_past_alt,
14433 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
14434 on_failure_jump_(exclusive, loop and smart). Also fix the comment
14435 for (start|stop)_memory since they now only take one argument (the
14436 second has becomes unnecessary).
14437 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
14438 (print_compiled_pattern): Use %ld to printf long ints and flush to
14439 make debugging a little easier.
14440 (union fail_stack_elt): Make the integer unsigned.
14441 (struct fail_stack_type): Add a `frame' element.
14442 (INIT_FAIL_STACK): Init `frame' as well.
14443 (POP_PATTERN_OP): New macro for re_compile_fastmap.
14444 (DEBUG_PUSH, DEBUG_POP): Remove.
14445 (NUM_REG_ITEMS): Remove.
14446 (NUM_NONREG_ITEMS): Adjust.
14447 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
14448 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
14449 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
14450 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
14451 New macros.
14452 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
14453 address pushed is not the destination of the jump but the source
14454 of it instead.
14455 (NUM_FAILURE_ITEMS): Remove.
14456 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
14457 registers before the actual failure point). Don't hardcode any
14458 meaning for str==NULL anymore.
14459 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
14460 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
14461 Remove.
14462 (REG_UNSET_VALUE): Use NULL (why not?).
14463 (compile_range): Remove declaration since it doesn't exist.
14464 (struct compile_stack_elt_t): Remove inner_group_offset.
14465 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
14466 (regex_grow_registers): Remove dead code.
14467 (FIXUP_ALT_JUMP): New macro.
14468 (regex_compile): Add shy-groups Change loops to use
14469 on_failure_jump_smart&jump instead of
14470 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
14471 initial (dummy_failure_)jump. Remove c1_base (looks like unused
14472 variable to me). Use `jump' instead of `jump_past_alt' and don't
14473 bother with push_dummy_failure in alternatives since it is now
14474 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
14475 emacs' for (re)allocating the stack.
14476 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
14477 from loop when bufp->can_be_null rather than jumping to `done'.
14478 Avoid jumping backwards so as to ensure termination. Use
14479 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
14480 backreferences. Remove dead code in handling of `anychar'.
14481 (skip_noops, mutually_exclusive_p): New functions taken from the
14482 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
14483 improve mutually_exclusive_p to handle ".+\n".
14484 (lowest_active_reg, highest_active_reg)
14485 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
14486 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
14487 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
14488 variables. Push register (in `start_memory') on the stack rather
14489 than storing it in old_reg(start|end). Remove the cycle detection
14490 from `stop_memory', replaced by the use of on_failure_jump_loop
14491 for greedy loops. Add code for the new on_failure_jump_<foo>.
14492 Remove ad-hoc code in `on_failure_jump' to push more registers in
14493 the case of a loop. Take out code from `maybe_pop_jump' into
14494 separate functions and adapt it to the semantics of
14495 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
14496 and push_dummy_failure. Remove dummy_failure handling and
14497 handling of `failures to jump to on_failure_jump' (this last one
14498 was already dead code, it seems).
14499 (group_match_null_string_p, alt_match_null_string_p)
14500 (common_op_match_null_string_p): Remove.
14501
14502 2000-03-08 Dave Love <fx@gnu.org>
14503
14504 * config.in: Don't depend on __STDC__ for volatile.
14505 Add POINTER_TYPE, PTR, PROTOTYPES.
14506
14507 * hftctl.c, strftime.c: Use PROTOTYPES.
14508 * eval.c (find_handler_clause): Likewise.
14509
14510 * mem-limits.h: Use POINTER_TYPE.
14511
14512 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
14513 (memory_warnings): Declare using POINTER_TYPE.
14514
14515 2000-03-08 Gerd Moellmann <gerd@gnu.org>
14516
14517 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
14518
14519 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
14520
14521 * xfns.c: Remove obsolete code in #if 0.
14522 (Fx_focus_frame): New function.
14523
14524 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
14525
14526 * coding.c (coding_category_name): Add coding-category-utf-8,
14527 coding-category-utf-16-be, coding-category-utf-16-le.
14528 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
14529 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
14530 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
14531 (detect_coding_utf_8): New function.
14532 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
14533 UTF_16_LOW_SURROGATE_P): New macros.
14534 (detect_coding_utf_16): New function
14535 (detect_coding_mask): When priorities are specified, skip any
14536 categories that have `nil' coding-system. Fix bug of returning
14537 wrong mask when PRIORITIES is specified and detect_coding_XXX()
14538 returns a mask not set in PRIORITIES.
14539 (detect_eol_type_in_2_octet_form): New function.
14540 (detect_eol): selects detect_eol_type_XXX to call according to
14541 cooding->category_idx.
14542 (detect_coding_system): Remove `nil' coding-system in the result.
14543 (Fupdate_coding_systems_internal): Update all coding-categories.
14544
14545 * coding.h (CODING_CATEGORY_IDX_UTF_8)
14546 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
14547 New macros.
14548 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
14549 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
14550 (CODING_CATEGORY_IDX_UTF_16_LE)
14551 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
14552 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
14553 (CODING_CATEGORY_MASK_ANY): Include the above macros.
14554 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
14555
14556 2000-03-07 Gerd Moellmann <gerd@gnu.org>
14557
14558 * doc.c (Fdocumentation_property): If value is not a string,
14559 and doesn't refer to etc/DOC, evaluate it to obtain a string.
14560
14561 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
14562 close the display with XtCloseDisplay. This caused a bus error
14563 on OpenWindows.
14564
14565 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
14566 complete but not unique.
14567
14568 2000-03-06 Gerd Moellmann <gerd@gnu.org>
14569
14570 * process.c (send_process): Remove local variable `procname' that
14571 might become invalid when a GC happens. Instead, access the
14572 process name slot directly.
14573
14574 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
14575 orig_height if set.
14576
14577 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
14578 orig_height if set.
14579
14580 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
14581
14582 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
14583 glyph matrices have been freed.
14584
14585 2000-03-05 Gerd Moellmann <gerd@gnu.org>
14586
14587 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
14588 (bootstrap-temacs): Set LC_ALL to C like for temacs.
14589
14590 * xfns.c (QCdata): Moved to xdisp.c.
14591
14592 * xdisp.c (QCdata): Moved here from xfns.c.
14593 (syms_of_xdisp): Initialize QCdata.
14594
14595 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
14596
14597 * window.c (coordinates_in_window): Use
14598 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
14599 FRAME_INTERNAL_BORDER_WIDTH.
14600
14601 * xdisp.c (try_window_id): Recompute unchanged information if
14602 it is obviously invalid.
14603
14604 * xterm.c (x_term_init): Create a colormap if not using the
14605 default visual.
14606
14607 * xterm.h (select_visual): Change prototype.
14608
14609 * xfns.c (select_visual): Rewritten. Recognize user-specified
14610 visual classes.
14611 (visual_classes): New variable.
14612
14613 2000-03-04 Gerd Moellmann <gerd@gnu.org>
14614
14615 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
14616 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
14617 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
14618 (x_decode_color): Don't handle allocation of white and black specially.
14619 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
14620 XtNcolormap resources.
14621 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
14622 (Fx_create_frame): Initialize color members of x_output structure.
14623 (xpm_load): Pass colormap to XPM lib.
14624
14625 * xfaces.c (x_free_colors): Access colormap of frame using
14626 FRAME_X_COLORMAP. Be paranoid about freeing black and white
14627 when default colormap is used.
14628
14629 * xterm.c (x_term_init): Set Colormap member of x_display_info
14630 structure. Copy colormap if resource `privateColormap' is
14631 specified (PseudoColor only).
14632 (x_setup_relief_color): Access colormap of frame using
14633 FRAME_X_COLORMAP.
14634
14635 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
14636 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
14637
14638 2000-03-04 Jason Rumney <jasonr@gnu.org>
14639
14640 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
14641 other non-platform-specific equivalents.
14642 [WINDOWSNT]: Include w32term.h, fontset.h and define X
14643 specific functions and macros as their w32 equivalents where
14644 non-platform-specifics are not available.
14645 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
14646 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
14647 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
14648 (frame_update_line_height): Use macros to access f->output_data.
14649 (defined_color): Remove FIXME comments; fixed.
14650 (x_face_list_fonts, prepare_face_for_display): Put X specifics
14651 into #ifdef blocks. Add WINDOWSNT blocks.
14652 (Fx_list_fonts): Use macros for accessing font data.
14653 (set_lface_from_font_name): Different default fonts for X and
14654 WINDOWSNT.
14655 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
14656 scalable for backward compatibility.
14657 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
14658 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
14659
14660 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
14661 syms_of_w32faces.
14662
14663 * makefile.nt (w32faces.obj): Remove.
14664 (xfaces.obj): Add.
14665
14666 2000-03-03 Jason Rumney <jasonr@gnu.org>
14667
14668 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
14669 correct parameters.
14670
14671 2000-03-03 Ken Raeburn <raeburn@gnu.org>
14672
14673 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
14674 standard ELF definitions here if the system header does not.
14675
14676 2000-03-03 Gerd Moellmann <gerd@gnu.org>
14677
14678 * xterm.c (PER_CHAR_METRIC): Removed.
14679 (x_per_char_metric_1, x_default_char): New functions.
14680 (x_per_char_metric): If font's default char is invalid, return
14681 metrics of a suitably chosen usable default char.
14682 (x_draw_glyph_string_foreground): If font has an invalid default
14683 char, replace occurrences of unprintable chars with a suitably
14684 chosen usable default char.
14685
14686 2000-03-02 Gerd Moellmann <gerd@gnu.org>
14687
14688 * xterm.c (note_mouse_highlight): Return quickly if frame's
14689 glyph matrices have been freed.
14690
14691 * dispnew.c (free_glyphs): Block input while freeing matrices.
14692
14693 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
14694
14695 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
14696 Use x_free_colors.
14697
14698 * dispextern.h (x_free_colors): Add prototype.
14699
14700 * xfaces.c (x_free_colors): New function.
14701 (unload_color, free_face_colors): Use it.
14702
14703 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
14704
14705 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
14706
14707 * window.c [MSDOS]: Include msdos.h.
14708
14709 2000-03-02 Dave Love <fx@gnu.org>
14710
14711 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
14712
14713 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
14714 set C_OPTIMIZE_SWITCH for gcc.
14715
14716 2000-03-02 Kenichi Handa <handa@etl.go.jp>
14717
14718 * coding.c (coding_save_composition): Be sure to allocate
14719 composition data area in coding even if there's no composition in
14720 the current run.
14721
14722 2000-03-01 Jason Rumney <jasonr@gnu.org>
14723
14724 * w32term.c: Equivalent changes to those made to xterm.c on
14725 2000-02-25 and 2000-02-24.
14726
14727 * w32fns.c: Equivalent changes to those made to xfns.c on
14728 2000-02-25 and 2000-02-21.
14729
14730 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
14731 correct line-end convention is followed.
14732
14733 * w32menu.c [HAVE_BOXES]: Remove #undef.
14734 (single_keymap_panes): Remove code for simulating checkmarks.
14735 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
14736 Remove code for drawing simulated checkmarks.
14737 (w32_menu_show): make unibyte help string correctly.
14738 (add_menu_item): draw standard Windows checkmarks. Draw radio
14739 buttons as radio buttons if possible.
14740
14741 2000-03-01 Gerd Moellmann <gerd@gnu.org>
14742
14743 * sysdep.c (start_of_text): Don't define this function for NetBSD
14744 with ELF.
14745
14746 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
14747 Don't define.
14748 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
14749 (LINKER): Don't undef if __NetBSD__ is defined.
14750
14751 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
14752
14753 * fileio.c [__NetBSD__]: Define `unix'.
14754
14755 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
14756
14757 2000-02-29 Gerd Moellmann <gerd@gnu.org>
14758
14759 * atimer.c (start_atimer): Don't abort when timers are stopped.
14760 (append_atimer_lists): New function.
14761 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
14762 arbitrary lists of stopped and running atimers.
14763
14764 * atimer.c (cancel_atimer): Handle canceling an atimer when
14765 some timers are stopped.
14766
14767 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
14768 after canceling it.
14769
14770 * fns.c (maybe_resize_hash_table): Handle case of new size
14771 coming out as being the same as old size.
14772
14773 2000-02-27 Jason Rumney <jasonr@gnu.org>
14774
14775 * makefile.nt: Add atimer.h to dependencies.
14776 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
14777 * w32console.c: Only disable window system features for dispextern.h
14778 (initialize_w32_display): Build a display info for the console.
14779 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
14780 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
14781 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
14782 as 2 button mice.
14783 * w32gui.h (struct W32FontStruct): Revert last change after change
14784 to xdisp.c.
14785 * w32menu.c (single_submenu): Set up help string.
14786 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
14787 (w32_dialog_show): Set up help string.
14788 * w32term.c (w32_display_info_for_display): Remove unused function.
14789 (w32_draw_bitmap): Use pre-built bitmaps.
14790 (w32_initialize_display_info): New function to initialize parts of
14791 display info that are common to both GUI and console frames.
14792 (w32_term_init): Use w32_initialize_display_info. Do not set
14793 Vw32_num_mouse_buttons here, as it is not called for console
14794 frames. Build bitmaps for indicating truncated lines etc.
14795 (x_delete_display): Destroy pre-built bitmaps.
14796 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
14797 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
14798
14799 2000-02-27 Dave Love <fx@gnu.org>
14800
14801 * lisp.h: Add a bunch of prototypes.
14802
14803 2000-02-26 Kenichi Handa <handa@etl.go.jp>
14804
14805 * keyboard.c (read_char): Set `usec' correctly.
14806
14807 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
14808
14809 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
14810 `lambda', set reg[RRR] to the map index.
14811 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
14812 reg[RRR] to 0. Otherwise, set it to -1.
14813
14814 2000-02-25 Gerd Moellmann <gerd@gnu.org>
14815
14816 * emacs.c (main): Remove code snippet commented out with `//'.
14817
14818 2000-02-25 Richard M. Stallman <rms@gnu.org>
14819
14820 * fileio.c (Ffile_symlink_p): If result starts with a `/'
14821 and contains a `:', prepend `/:'.
14822
14823 * window.c (select_window_1): If selected_window is nil,
14824 don't "swap out" the buffer's point.
14825 (Fset_window_configuration): Set selected_window to nil
14826 before calling Fselect_window.
14827 (unshow_buffer): Don't set point in buffer from window's point
14828 if another more recently selected window also shows the buffer.
14829
14830 2000-02-25 Gerd Moellmann <gerd@gnu.org>
14831
14832 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
14833
14834 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
14835 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
14836 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
14837 New variables.
14838 (DEFAULT_BUSY_CURSOR_DELAY): New define.
14839 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
14840 (hide_busy_cursor): New functions.
14841 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
14842
14843 * minibuf.c (read_minibuf): Cancel busy-cursor.
14844
14845 * keyboard.c (command_loop_1): Call start_busy_cursor before
14846 Fcommand_execute and cancel_busy_cursor after it.
14847 (timer_check): Remove busy-cursor code.
14848 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
14849 cursor timer.
14850
14851 * process.c (wait_reading_process_input): Remove busy-cursor code.
14852
14853 * eval.c (Fsignal): Call cancel_busy_cursor instead of
14854 Fx_hide_busy_cursor.
14855
14856 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
14857 Remove prototyoes.
14858 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
14859
14860 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
14861
14862 * xterm.c (XTread_socket): Remove busy-cursor code.
14863
14864 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
14865 (build_frame_matrix_from_leaf_window): Put code handling
14866 glyph row's not being a slice of a frame row in #if 0.
14867 (sync_window_with_frame_matrix_rows): New function.
14868 (frame_row_to_window): New function.
14869 (mirror_line_dance): Handle copies between windows.
14870
14871 * lread.c (Fload): Use `xfree' instead of `free'.
14872 (init_obarray): Use `xmalloc' instead of `malloc'.
14873
14874 * window.c (Fset_window_buffer): Set WINDOW to the window
14875 after decoding.
14876 (coordinates_in_window): Take frame's internal border width
14877 into account.
14878
14879 2000-02-24 Gerd Moellmann <gerd@gnu.org>
14880
14881 * xterm.c (x_display_and_set_cursor): Display cursor of
14882 non-selected windows depending on the setting of
14883 cursor_in_non_selected_windows.
14884
14885 * xdisp.c (cursor_in_non_selected_windows): New variable.
14886 (syms_of_xdisp): DEFVAR_BOOL it.
14887
14888 2000-02-23 Gerd Moellmann <gerd@gnu.org>
14889
14890 * data.c (Fstring_to_number): If number is greater than what
14891 fits into an integer, return a float.
14892
14893 * eval.c (specbind): Remove references to
14894 keyword_symbols_constant_flag.
14895
14896 * data.c (keyword_symbols_constant_flag): Removed.
14897 (Fmakunbound, set_internal, syms_of_data): Remove references to
14898 keyword_symbols_constant_flag.
14899
14900 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
14901
14902 2000-02-23 Kenichi Handa <handa@etl.go.jp>
14903
14904 * syntax.c (multibyte_syntax_as_symbol): New variable.
14905 (syms_of_syntax): Declare it as a Lisp variable.
14906 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
14907 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
14908 nonzero, treat all multibyte characters as symbol.
14909 (init_syntax_once): Give syntax `word' to all multibyte characters.
14910
14911 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14912
14913 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
14914 a deleted frame.
14915
14916 2000-02-21 Gerd Moellmann <gerd@gnu.org>
14917
14918 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
14919
14920 * xfns.c (x_window_to_frame, x_any_window_to_frame)
14921 (x_non_menubar_window_to_frame): Check the busy-cursor window.
14922
14923 2000-02-21 Dave Love <fx@gnu.org>
14924
14925 * frame.c (Vmouse_position_function): New variable.
14926 (Fmouse_position): Use it.
14927 (syms_of_frame): Install it.
14928
14929 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
14930
14931 2000-02-20 Gerd Moellmann <gerd@gnu.org>
14932
14933 * fileio.c (Finsert_file_contents): Unbind the binding of
14934 standard-output done by temp_output_buffer_setup.
14935
14936 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
14937 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
14938 (specbind, unbind_to): Handle most common case of non-constant
14939 symbol with trivial value specially.
14940
14941 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
14942
14943 2000-02-20 Richard M. Stallman <rms@gnu.org>
14944
14945 * data.c (Fmake_variable_buffer_local): Doc fix.
14946 Init found_for_buffer to 0.
14947 (Fmake_variable_frame_local): If the variable has already
14948 been buffer-local, set the check_frame field.
14949
14950 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
14951
14952 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
14953 produced for CODING_MODE_LAST_BLOCK requires.
14954
14955 2000-02-18 Dave Love <fx@gnu.org>
14956
14957 * keyboard.c (echo_keystrokes): Remove declaration.
14958 (Vecho_keystrokes) New variable.
14959 (read_char, record_menu_key, read_key_sequence): Use it to allow
14960 use of float value.
14961 (syms_of_keyboard): Change Vecho_keystrokes declaration.
14962
14963 * lread.c: Undef feature selection macros before defining.
14964
14965 2000-02-18 Gerd Moellmann <gerd@gnu.org>
14966
14967 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
14968 for symbols other than the symbol in question.
14969
14970 2000-02-17 Dave Love <fx@gnu.org>
14971
14972 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
14973
14974 2000-02-17 Gerd Moellmann <gerd@gnu.org>
14975
14976 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
14977
14978 * alloc.c (enum mem_type): Compile unconditionally.
14979
14980 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
14981
14982 * xfaces.c (tty_defined_color): Don't return faulire indication
14983 for unspecified-fg and unspecified-bg pseudo-colors.
14984
14985 2000-02-17 Gerd Moellmann <gerd@gnu.org>
14986
14987 * alloc.c (mark_object): Don't mark symbol names in pure space.
14988 (gc_sweep): Don't unmark symbol names in pure space.
14989
14990 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
14991 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
14992 [GC_MARK_STACK]: New defines.
14993 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
14994 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
14995
14996 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
14997
14998 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
14999 allocate_buffer instead of xmalloc.
15000
15001 * alloc.c (toplevel): Include setjmp.h.
15002 (PURE_POINTER_P): New define.
15003 (enum mem_type) [GC_MARK_STACK]: New enumeration.
15004 (Vdead) [GC_MARK_STACK]: New variable.
15005 (lisp_malloc): Add parameter TYPE, call mem_insert if
15006 GC_MARK_STACK is defined.
15007 (allocate_buffer): New function.
15008 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
15009 (free_float) [GC_MARK_STACK]: Set type to Vdead.
15010 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
15011 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
15012 (MEM_NIL) [GC_MARK_STACK]: New define.
15013 (struct mem_node) [GC_MARK_STACK]: New structure.
15014 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
15015 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
15016 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
15017 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
15018 (mark_stack) [GC_MARK_STACK]: New functions.
15019 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
15020 (clear_marks): Removed.
15021 (gc_sweep): Set free conses' car, free floats' type, free
15022 symbols' function to Vdead. Use lisp_free to free buffers.
15023 (init_alloc_once): Initialize Vdead.
15024 (survives_gc_p): Return non-zero for pure objects.
15025
15026 * alloc.c: Add comments throughout the file.
15027
15028 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
15029 that unblocks alarms.
15030
15031 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
15032 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
15033 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
15034
15035 * frame.c (make_frame): Set frame initiallly to `garbaged'.
15036
15037 2000-02-17 Kenichi Handa <handa@etl.go.jp>
15038
15039 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
15040 avoid infinite error signaling. Allocate sufficient memory for
15041 eol_str in the case that eoltype is Lisp_Int.
15042
15043 2000-02-17 Stefan Monnier <monnier@cs.yale.edu>
15044
15045 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
15046 depends on the previous behavior.
15047
15048 2000-02-16 Gerd Moellmann <gerd@gnu.org>
15049
15050 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
15051
15052 2000-02-15 Gerd Moellmann <gerd@gnu.org>
15053
15054 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
15055
15056 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
15057 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
15058 write(2).
15059
15060 2000-02-15 Richard M. Stallman <rms@gnu.org>
15061
15062 * data.c (set_internal): Don't make variable buffer-local
15063 if within a let-binding for the same buffer.
15064 (let_shadows_buffer_binding_p): New function.
15065
15066 * eval.c (specbind): For buffer-local value,
15067 record the current buffer also.
15068 (unbind_to): Cope with that change.
15069
15070 2000-02-15 Gerd Moellmann <gerd@gnu.org>
15071
15072 * window.c (Fsave_window_excursion): Doc fix.
15073
15074 2000-02-15 Stefan Monnier <monnier@cs.yale.edu>
15075
15076 * syntax.c (back_comment): Make sure we only consider comment-starters
15077 of the relevant style and return -1 in case of a failure to find the
15078 beginning of the comment.
15079 (Fforward_comment): If back_comment fails, go back to the position just
15080 after the comment-end.
15081 (scan_lists): Add comment describing a very minor bug.
15082
15083 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
15084
15085 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
15086 `completion-regexp-list' in the docstring.
15087
15088 2000-02-14 Dave Love <fx@gnu.org>
15089
15090 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
15091
15092 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
15093
15094 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
15095 to Emacs' syntax. Also fix the comment about set/not-set meanings
15096 since Emacs syntax is not the value 0 any more.
15097 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
15098 since it's now part of RE_SYNTAX_EMACS.
15099
15100 2000-02-12 Dave Love <fx@gnu.org>
15101
15102 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
15103
15104 2000-02-12 Gerd Moellmann <gerd@gnu.org>
15105
15106 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
15107
15108 2000-02-12 Dave Love <fx@gnu.org>
15109
15110 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
15111
15112 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
15113 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
15114 * s/hpux.h: Don't define HAVE_VFORK.
15115
15116 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
15117
15118 * s/nextstep.h: Don't define HAVE_ALLOCA.
15119
15120 * config.in: Add vfork bits.
15121
15122 2000-02-12 Gerd Moellmann <gerd@gnu.org>
15123
15124 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
15125 unwind function to undo the effect of stopping atimers.
15126
15127 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
15128
15129 * atimer.c (stopped_atimers): New variable.
15130 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
15131 New functions.
15132
15133 * atimer.h (stop_other_atimers, run_all_atimers)
15134 (unwind_stop_other_atimers): Add function prototypes.
15135
15136 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
15137
15138 2000-02-11 Ken Raeburn <raeburn@gnu.org>
15139
15140 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
15141 library may depend on jpeg.
15142 (atimer.o): Depends on atimer.c.
15143
15144 2000-02-11 Kenichi Handa <handa@etl.go.jp>
15145
15146 * insdel.c (del_range_1): Call update_compositions.
15147 (del_range_both): Call update_compositions just once..
15148
15149 2000-02-10 Dave Love <fx@gnu.org>
15150
15151 * xfns.c (create_frame_xic): Fix initialization of automatic
15152 aggregates for pcc.
15153
15154 2000-02-09 Kenichi Handa <handa@etl.go.jp>
15155
15156 * ccl.c (CCL_MAKE_CHAR): New macro.
15157 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
15158 registers by CCL_MAKE_CHAR before calling translate_char.
15159 <CCL_TranslateCharacterConstTbl> Likewise.
15160
15161 2000-02-08 Dave Love <fx@gnu.org>
15162
15163 * lread.c (__EXTENSIONS__): Define.
15164
15165 2000-02-08 Gerd Moellmann <gerd@gnu.org>
15166
15167 * puresize.h (BASE_PURESIZE): Increase to 650000.
15168
15169 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
15170
15171 * msdos.c (XMenuActivate): Turn off the cursor after displaying
15172 the help message.
15173
15174 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
15175
15176 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
15177 md, mh, mb, mr, and me to the fake termcap entry.
15178
15179 2000-02-06 Ken Raeburn <raeburn@gnu.org>
15180
15181 * sound.c (sound_cleanup): Don't call device close routine if the
15182 function pointer is null.
15183
15184 2000-02-06 Andrew Innes <andrewi@gnu.org>
15185
15186 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
15187 around image definitions and prototypes.
15188 (gamma_correct) [WINDOWSNT]: New prototype.
15189
15190 * w32term.c (x_make_frame_visible): Replace call to
15191 input_poll_signal with poll_for_input.
15192
15193 * window.c [WINDOWSNT]: Include w32term.h.
15194
15195 * xdisp.c [WINDOWSNT]: Include w32term.h.
15196
15197 * makefile.nt: Add dependencies on w32gui.h.
15198 (OBJ1): Include atimer.obj.
15199 ($(BLD)\atimer.obj): New dependency rule.
15200
15201 * w32.c (sigmask): New function (does nothing).
15202 (sigunblock): Ditto.
15203
15204 * frame.c [WINDOWSNT]: Include w32term.h.
15205
15206 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
15207
15208 * lread.c (syms_of_lread): Fix literal newlines.
15209
15210 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
15211 the string constant limit (2048 bytes) in MSVC.
15212 (main): Ditto.
15213
15214 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
15215
15216 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
15217 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
15218 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
15219 dispatch the event.
15220
15221 2000-02-04 Dave Love <fx@gnu.org>
15222
15223 * fileio.c: Remove some unused vars.
15224 (_GNU_SOURCE): Define (for euidaccess).
15225
15226 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
15227
15228 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
15229 gcpro1, gcpro2.
15230 (read_minibuf): Deal with allow_props correctly.
15231
15232 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
15233
15234 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
15235
15236 2000-02-03 Ken Raeburn <raeburn@gnu.org>
15237
15238 * search.c (compile_pattern): If a cache entry has a nil regexp,
15239 fill in that entry instead of clobbering a previously cached
15240 string regexp.
15241
15242 2000-02-02 Ken Raeburn <raeburn@gnu.org>
15243
15244 * puresize.h (BASE_PURESIZE): Increase to 610000.
15245
15246 2000-02-02 Gerd Moellmann <gerd@gnu.org>
15247
15248 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
15249 can GC.
15250
15251 2000-02-02 Kenichi Handa <handa@etl.go.jp>
15252
15253 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
15254 instead of incrementing ic directly.
15255 <CCL_WriteExprConst> Likewise.
15256 <ccl_set_expr>: Set ic to jump_address.
15257
15258 * fileio.c (e_write): Fix the handling of
15259 CODING_FINISH_INSUFFICIENT_SRC.
15260
15261 2000-02-01 Dave Love <fx@gnu.org>
15262
15263 * editfns.c (Fpropertize): Doc fix.
15264
15265 * process.c (Fstart_process): Doc fix.
15266
15267 * eval.c: Fix various doc strings not to duplicate information
15268 from help-manyarg-func-alist.
15269
15270 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
15271
15272 * doc.c (Vhelp_manyarg_func_alist): New variable.
15273 (Fdocumentation): Use it.
15274 (syms_of_doc): Define it.
15275
15276 2000-01-31 Gerd Moellmann <gerd@gnu.org>
15277
15278 * xterm.c (xim_open_dpy): Remove unused local variable.
15279
15280 * emacs.c (USAGE): Use term `display options' instead of `X options'.
15281
15282 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
15283 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
15284
15285 * fns.c (sweep_weak_table): New function.
15286 (sweep_weak_hash_tables): Use it. Keep on marking until there
15287 is no more change.
15288
15289 2000-01-30 Gerd Moellmann <gerd@gnu.org>
15290
15291 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
15292 that XTread_socket does not crash by trying to call XNoOp on a
15293 closed display.
15294
15295 2000-01-30 Jason Rumney <jasonr@gnu.org>
15296
15297 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
15298 Change selected_frame to SELECTED_FRAME ().
15299 (w32_console_mouse_position): Remove #ifndef MULE from around
15300 `insist' parameter.
15301
15302 * makefile.nt: Remove dosfns.obj.
15303
15304 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
15305
15306 * w32fns.c (w32_defined_color): Check for valid frame before
15307 applying gamma correction. Eliminate dependency on frame elsewhere.
15308 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
15309 (w32_to_x_font): Use resx and resy not height_in and width_in.
15310 (x_to_w32_font): Doc fix.
15311 (xlfd_strip_height): New function to strip and return font height.
15312 (w32_font_match): Compare height separately from rest of xlfd
15313 spec, using xlfd_strip_height.
15314
15315 * w32term.c (w32_term_init): Swap resx and height_in, resy and
15316 width_in. Use w32_defined_color in place of defined_color.
15317
15318 * w32faces.c: Merge more of DOS and X specifics in preparation for
15319 merge with xfaces.c.
15320 (defined_color): Remove FIXME comment.
15321 (tty_color_name): Provide w32-specific function.
15322 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
15323
15324 * w32console.c (turn_on_face, turn_off_face): Removed.
15325 (w32_face_attributes): New function.
15326 (Global_variables): Reduce scope where possible.
15327 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
15328 fill attribute.
15329 (hl_mode): Don't modify text attributes.
15330 (write_glyphs): Don't do anything if len <= 0. Use
15331 w32_face_attributes to get attributes for drawing. Write
15332 terminating codes using char_attr_normal.
15333 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
15334 (update_begin, update_end): Likewise.
15335 (vga_stdcolor_name): New function.
15336 (initialize_w32_display): Remove char_attr_reverse and char_attr.
15337 (Fset_screen_color): Remove char_attr_reverse.
15338
15339 2000-01-29 Gerd Moellmann <gerd@gnu.org>
15340
15341 * xfns.c (xic_set_preeditarea): Take window parameter and
15342 window-relative pixel-positions.
15343
15344 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
15345 is its frame's selected window.
15346 (xim_instantiate_callback): Likewise.
15347
15348 * xfns.c (x_create_im): Removed.
15349 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
15350 (supported_xim_styles): Renamed from supported_styles.
15351 (best_xim_style): Renamed from best_style.
15352 (create_frame_xic): Renamed from xic_create_frame.
15353 (free_frame_xic): Renamed from xic_destroy_frame.
15354
15355 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
15356
15357 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
15358 our frames, call XFilterEvent with 2nd parameter `None'.
15359 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
15360 returning XBufferOverflow.
15361 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
15362 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
15363 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
15364 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
15365 (xim_initialize, xim_close)
15366 [HAVE_X_I18N && HAVE_X11R6]: New functions.
15367 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
15368 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
15369 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
15370
15371 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
15372 and `xim_styles'.
15373 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
15374 `xic_style' and `xic_xfs'.
15375 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
15376 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
15377 (FRAME_XIM): Removed.
15378
15379 * xfns.c (supported_styles): New variable.
15380 (DEFAULT_STYLE, DEFAULT_FONT): New macros
15381 (xic_create_xfontset, best_style, xic_create_frame)
15382 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
15383 (xic_set_xfontset): New functions.
15384
15385 2000-01-28 Dave Love <fx@gnu.org>
15386
15387 * s/irix6-5.h: Revert last change after change to irix5-0.h.
15388
15389 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
15390
15391 2000-01-28 Gerd Moellmann <gerd@gnu.org>
15392
15393 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
15394 for *scratch* if it already existed.
15395
15396 * emacs.c (USAGE): New macro.
15397 (main): Use it to display usage information.
15398
15399 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
15400
15401 Support for the menu-help feature:
15402
15403 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
15404
15405 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
15406 part of the line to the termscript file.
15407 (IT_clear_to_end): Clear the entire line, not just its beginning.
15408 (menu_help_message, prev_menu_help_message): New variables.
15409 (IT_menu_make_room): Make room for the help_text member.
15410 (IT_menu_display): New argument disp_help; all callers changed.
15411 If disp_help is non-zero, store the help text of the active menu
15412 item in menu_help_message.
15413 (XMenuAddPane): Initialize the help_text member to NULL.
15414 (XMenuAddSelection): New argument help_text. Store it in the
15415 XMenu structure.
15416 (XMenuActivate): New argument help_callback. If the value of
15417 menu_help_message has changed since the last time, display the
15418 menu help message text while waiting for the mouse to move. Clear
15419 the echo area before exiting.
15420 (XMenuDestroy): Free the help_text member.
15421
15422 2000-01-27 Gerd Moellmann <gerd@gnu.org>
15423
15424 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
15425 XMenuAddSelection. Pass help callback to XMenuActivate.
15426 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
15427
15428 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
15429
15430 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
15431 and EMACS_SET_USECS.
15432
15433 2000-01-26 Dave Love <fx@gnu.org>
15434
15435 * editfns.c (Fchar_after, Fchar_before): Doc fix.
15436
15437 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
15438 an error may be signalled.
15439
15440 2000-01-26 Gerd Moellmann <gerd@gnu.org>
15441
15442 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
15443 LD_SWITCH_SYSTEM inherited from irix5-0.h.
15444
15445 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
15446
15447 2000-01-25 Gerd Moellmann <gerd@gnu.org>
15448
15449 * charset.c (Fstring): If there is a multibyte char among
15450 the args, always return a multibyte string.
15451
15452 2000-01-25 Gerd Moellmann <gerd@gnu.org>
15453
15454 * sysdep.c (sys_select): Turn atimers off and on instead of
15455 recording and restoring old alarm handler
15456
15457 * process.c (toplevel): Include atimer.h.
15458 (create_process_1): Rewritten.
15459 (create_process): Use atimers instead of alarm.
15460 (wait_reading_process_input) [hpux]: Turn atimers off instead
15461 of turning off SIGALRM.
15462 (wait_reading_process_input): Turn off atimers instead off
15463 calling stop_polling.
15464
15465 * emacs.c (main): Call init_atimer.
15466
15467 * keyboard.c (toplevel): Include systime.h and atimer.h.
15468 (polling_for_input): Removed because unused.
15469 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
15470 (poll_timer): New variable.
15471 (poll_for_input, poll_for_input_1): New functions.
15472 (start_polling, stop_polling): Rewritten.
15473
15474 * keyboard.h (polling_for_input): Removed.
15475
15476 * atimer.h, atimer.c: New files.
15477
15478 * Makefile.in (obj): Add atimer.o.
15479 (atimer.o): New target.
15480
15481 * blockinput.h (pending_atimers): Add extern declaration.
15482 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
15483
15484 * lisp.h (popup_activated_flag): Add extern declaration.
15485
15486 * xmenu.c (popup_activated_flag): Make externally visible.
15487 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
15488 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
15489
15490 * xterm.c (toplevel): Include atimer.h.
15491 (toolkit_scroll_bar_interaction): New variable.
15492 (Fxt_process_timeouts): Removed.
15493 (x_process_timeouts): New function.
15494 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
15495 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
15496 (x_make_frame_visible): Call poll_for_input_1 instead of
15497 input_poll_signal. Don't call alarm.
15498 (x_initialize): Install timer calling x_process_timeouts.
15499
15500 2000-01-24 Dave Love <fx@gnu.org>
15501
15502 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
15503 Don't use -cckr -- apparently not now necessary.
15504
15505 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
15506
15507 * msdos.c (IT_menu_display): Truncate long menu lines at the right
15508 screen boundary.
15509
15510 2000-01-23 Jason Rumney <jasonr@gnu.org>
15511
15512 * w32fns.c (w32_defined_color): Apply gamma correction before
15513 trying to map to the palette.
15514 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
15515 to w32_clear_rect.
15516
15517 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
15518 here. Callers changed to always pass real device context.
15519 (w32_draw_bitmap): Likewise.
15520 (w32_get_glyph_overhangs): Likewise.
15521 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
15522 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
15523 pfnSetScrollInfo and SetScrollRange.
15524 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
15525 back into MULE characters after decoding them.
15526 (x_get_glyph_face_and_encoding): Likewise.
15527 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
15528 GetCharABCWidthsW fails, since this is defined on Windows 9x.
15529 (x_produce_glyphs): Calculate per char metrics for a character
15530 that we know exists in default font when font_not_found_p is true.
15531
15532 2000-01-22 Jason Rumney <jasonr@gnu.org>
15533
15534 * makefile.nt (intervals.obj, composite.obj): New modules.
15535 (composite.h): Added as dependency where appropriate.
15536
15537 * w32gui.h (XGCValue): New struct for emulating X GCs.
15538
15539 * w32term.h (XCharStruct): New struct for emulating X.
15540
15541 * w32console.c (turn_on_face, turn_off_face): New functions.
15542 (change_line_highlight): New prototype for new redisplay.
15543 (write_glyphs): Support multibyte text. Support faces.
15544
15545 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
15546
15547 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
15548 throughout. struct frame * in place of FRAME_PTR.
15549 Skeleton support for images, toolbars, tooltips from xfns.c.
15550 (Fx_create_frame): Use system default for default scroll bar width.
15551 (w32_get_arg): Renamed from x_get_arg.
15552 (Fx_file_dialog): New function.
15553 (w32_list_fonts): Check cache before asking system.
15554 (Vw32_enable_synthesized_fonts): New variable.
15555 (Vw32_enable_italics): Obsolete, removed.
15556
15557 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
15558 Use SELECTED_FRAME macro.
15559
15560 * w32menu.c: Add skeleton support for help strings on menus.
15561 (add_menu_item): Native checkbox and radio support added, but not
15562 yet enabled due to bugs.
15563 (push_menu_item): Add parameters type, selection and help.
15564 Callers updated.
15565 Formatting changes to reduce unnecessary diffs with xmenu.c.
15566
15567 * w32select.c (Fw32_set_clipboard_data): Update call to
15568 find_charset_in_str.
15569
15570 * w32term.c: Complete rewrite for new redisplay based on new
15571 xterm.c with necessary sections merged back in from old w32term.c.
15572
15573 2000-01-21 Richard M. Stallman <rms@gnu.org>
15574
15575 * data.c (set_internal): Further fix in same criterion.
15576
15577 2000-01-20 Richard M. Stallman <rms@gnu.org>
15578
15579 * data.c (set_internal): Fix the criteria for whether
15580 to swap out the old cached binding.
15581
15582 2000-01-19 Dave Love <fx@gnu.org>
15583
15584 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
15585
15586 2000-01-18 Kenichi Handa <handa@etl.go.jp>
15587
15588 * regex.c (re_compile_fastmap): While checking a range table for
15589 `charset', skip flag bits for a character class correctly.
15590
15591 2000-01-17 Gerd Moellmann <gerd@gnu.org>
15592
15593 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
15594
15595 * xfns.c (x_window): Call lw_create_widget with new parameter list.
15596
15597 * widget.c (EmacsFrameSetCharSize): Change size of children first
15598 because of problems with main window geometry management under Lesstif.
15599
15600 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
15601 MENU_ITEMS_ITEM_.*.
15602 (MENU_ITEMS_ITEM_HELP): New enumerator.
15603 (push_menu_item): Add parameter HELP. Record help in menu_items.
15604 (single_menu_item, single_submenu, list_of_items): Call
15605 push_menu_item with new parameter.
15606 (single_submenu): Set help string in widget value.
15607 (menu_highlight_callback): New function.
15608 (set_frame_menubar): Call lw_create_widget with new
15609 parameter list.
15610 (xmenu_show, xdialog_show): Ditto.
15611
15612 2000-01-13 Gerd Moellmann <gerd@gnu.org>
15613
15614 * sound.c (Fplay_sound): Improve doc string.
15615
15616 2000-01-11 Richard M. Stallman <rms@gnu.org>
15617
15618 * lisp.h (set_internal): Enter the new arg.
15619
15620 * eval.c (specbind): Record buffer-local variables specially,
15621 indicating which buffer's binding was saved.
15622 (unbind_to): Restore buffer-local variables specially
15623 in the proper buffer.
15624
15625 * data.c (set_internal): New arg BUF.
15626
15627 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
15628 * data.c (Fset): Pass new arg to set_internal.
15629 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
15630
15631 2000-01-11 Gerd Moellmann <gerd@gnu.org>
15632
15633 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
15634
15635 2000-01-11 Richard M. Stallman <rms@gnu.org>
15636
15637 * minibuf.c (Ftry_completion): Doc fix.
15638
15639 2000-01-11 Gerd Moellmann <gerd@gnu.org>
15640
15641 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
15642 vector, too.
15643
15644 2000-01-11 Andreas Schwab <schwab@suse.de>
15645
15646 * coding.c (code_convert_region): Initialize total_skip.
15647
15648 2000-01-08 Dave Love <fx@gnu.org>
15649
15650 * eval.c (Fuser_variable_p): Check customizability too.
15651
15652 2000-01-07 Gerd Moellmann <gerd@gnu.org>
15653
15654 * minibuf.c (Fcompleting_read): Doc fix.
15655
15656 2000-01-05 Gerd Moellmann <gerd@gnu.org>
15657
15658 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
15659 -L /usr/local/lib.
15660
15661 * xfns.c (x_create_im): New function to set IM and IC of a frame.
15662 Check that input style is supported before trying to create an
15663 IC for it.
15664 (x_window): Call x_create_im.
15665
15666 2000-01-04 Gerd Moellmann <gerd@gnu.org>
15667
15668 * xfns.c (current_gif_memory_src): New variable.
15669 (gif_load): Record the address of the current memory source
15670 in current_gif_memory_src.
15671 (gif_read_from_memory): Use current_gif_memory_src.
15672
15673 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
15674 macros statement form.
15675
15676 * sound.c (struct sound): Renamed from struct sound_file.
15677 (struct sound): Add members `data' and `header_size'.
15678 (enum sound_attr): Add SOUND_DATA.
15679 (current_sound, current_sound_device): Variables renamed from
15680 sound_file and sound_device.
15681 (parse_sound): Parse :data.
15682 (parse_sound): Handle sound data in strings.
15683 (find_sound_type): Function renamed from find_sound_file_type.
15684 (wav_init, au_init): Fail if sound's header_size is smaller than
15685 needed header size.
15686 (wav_play, au_play): Play sounds from string data.
15687
15688 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
15689
15690 * lisp.h: Add prototype for allocate_string_data.
15691
15692 * alloc.c (Fgarbage_collect): Return number of live and free strings.
15693
15694 * alloc.c (mark_buffer): Remove code in #if 0.
15695 (gc_sweep): Ditto.
15696 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
15697 (strings_consed): New variable.
15698 (allocate_string): Set it.
15699 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
15700 (Fmemory_use_counts): Return strings_consed. Use Flist.
15701
15702 * alloc.c: General cleanup in comments etc. Remove conditional
15703 compilation for `standalone'.
15704
15705 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
15706
15707 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
15708 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
15709 (DONT_COPY_FLAG): Removed.
15710 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
15711 (struct sdata, struct sblock): New
15712 (struct string_block): Rewritten.
15713 (STRINGS_IN_STRING_BLOCK): New macro.
15714 (oldest_sblock, current_sblock, total_strings, total_free_strings)
15715 (large_sblocks, string_blocks, string_free_list): New variables.
15716 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
15717 (init_strings): Rewritten.
15718 (allocate_string, allocate_string_data, compact_small_strings)
15719 (free_large_strings, sweep_strings): New functions.
15720 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
15721 (struct string_block_head, current_string_block)
15722 (first_string_block, large_string_blocks, STRING_FULLSIZE)
15723 (STRING_PAD): Removed.
15724 (make_uninit_multibyte_string, make_pure_string): Rewritten.
15725 (Fgarbage_collect): Don't set mark bit in large strings.
15726 (mark_object): Mark strings differently. Mark symbol names
15727 differently.
15728 (survives_gc_p): Test marked strings differently.
15729 (gc_sweep): Sweep strings differently, unmark strings in
15730 symbol names.
15731 (compact_strings): Removed.
15732
15733 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
15734
15735 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
15736 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
15737
15738 2000-01-04 Kenichi Handa <handa@etl.go.jp>
15739
15740 * fileio.c (Finsert_file_contents): Signal error if visiting file
15741 in a non-empty buffer.
15742
15743 * term.c (encode_terminal_code): Fix the previous change.
15744
15745 2000-01-03 Gerd Moellmann <gerd@gnu.org>
15746
15747 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
15748 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
15749
15750 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
15751
15752 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
15753
15754 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
15755 need to test for MSDOS frames.
15756
15757 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
15758
15759 * dosfns.c (unspecified_colors): Remove.
15760 (msdos_stdcolor_idx): Use global variables unspecified_fg and
15761 unspecified_bg.
15762 (msdos_stdcolor_name): Return strings for unspecified fore- and
15763 back-ground colors.
15764
15765 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
15766 (syms_of_xfaces): Remove their staticpro's.
15767 (tty_color_name): Return Lisp strings for unspecified fore- and
15768 back-ground colors.
15769 (Finternal_set_lisp_face_attribute): Remove the special treatment
15770 for Qunspecified_{f,b}g.
15771 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
15772
15773 2000-01-03 Gerd Moellmann <gerd@gnu.org>
15774
15775 * xdisp.c (reseat_at_next_visible_line_start): Position before
15776 newline only if ending up on a newline.
15777 (next_element_from_ellipsis): Return success. Handle case of
15778 displaying no ellipsis. Fix case of ellipsis defined in display table.
15779 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
15780 returns 0.
15781
15782 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
15783
15784 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
15785 (Fcolor_supported_p): Renamed from face-color-supported-p.
15786
15787 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
15788
15789 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
15790 list of colors renamed to tty-defined-color-alist.
15791 (tty_color_name): Pass the frame to tty-color-by-index.
15792 (realize_tty_face): tty-color-alist is now a function which
15793 accepts the frame as argument.
15794
15795 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
15796
15797 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
15798
15799 * term.c (insert_glyphs): Pass glyph, not &glyph, to
15800 encode_terminal_code.
15801
15802 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
15803
15804 * dispnew.c (mode_line_string): Support termcap frames as well.
15805
15806 2000-01-01 Gerd Moellmann <gerd@gnu.org>
15807
15808 * syntax.c (Fforward_word): Undo previous change.
15809
15810 * editfns.c (Fconstrain_to_field): Don't constrain if
15811 inhibit-field-text-motion is non-nil.
15812 (Fline_beginning_position): Undo previous change.
15813 (Fline_end_position): Ditto.
15814
15815 * syntax.c (Fforward_word): Notice field boundaries only if
15816 inhibit-field-text-motion is nil.
15817
15818 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
15819
15820 * editfns.c (Vinhibit_field_text_motion): New variable.
15821 (inhibit-field-text-motion): New DEFVAR_LISP.
15822 (Fline_beginning_position, Fline_end_position): Notice field
15823 boundaries only if inhibit-field-text-motion is nil.
15824
15825 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
15826 All calls adjusted.
15827 (x_build_heuristic_mask): Likewise.
15828 (xbm_load_image_from_file): Change error output.
15829 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
15830 (gif_load, gs_load, x_kill_gs_process): Ditto.
15831
15832 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
15833 color indices when accessing raster pixels.
15834 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
15835 one of :file or :data.
15836 (enum pbm_keyword_index): Add PBM_DATA.
15837 (pbm_format): Add :data.
15838 (pbm_image_p): Allow either :file or :data.
15839 (pbm_read_file): New function.
15840 (pbm_scan_number): Rewritten to read from string.
15841 (pbm_load): Support :data.
15842
15843 See ChangeLog.8 for earlier changes.
15844
15845 ;; Local Variables:
15846 ;; coding: iso-2022-7bit
15847 ;; End:
15848
15849 Copyright (C) 2001 Free Software Foundation, Inc.
15850 Copying and distribution of this file, with or without modification,
15851 are permitted provided the copyright notice and this notice are preserved.